From d8896dc4f5057d09d5f8a84a8269ac613977e5f2 Mon Sep 17 00:00:00 2001 From: Webber Date: Mon, 27 Jan 2020 23:07:26 +0100 Subject: [PATCH] Update references --- builder/index.js | 2 +- src/model/cache.js | 8 +++++--- src/model/index.js | 4 +++- src/model/index.test.js | 19 +++++++++++++------ 4 files changed, 22 insertions(+), 11 deletions(-) diff --git a/builder/index.js b/builder/index.js index 695b2468..941c66ba 100644 --- a/builder/index.js +++ b/builder/index.js @@ -1 +1 @@ -module.exports=function(e,r){"use strict";var t={};function __webpack_require__(r){if(t[r]){return t[r].exports}var n=t[r]={i:r,l:false,exports:{}};e[r].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(384)}r(__webpack_require__);return startup()}({1:function(e,r,t){"use strict";var n=this&&this.__awaiter||function(e,r,t,n){function adopt(e){return e instanceof t?e:new t(function(r){r(e)})}return new(t||(t=Promise))(function(t,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});const i=t(129);const a=t(622);const o=t(669);const u=t(672);const s=o.promisify(i.exec);function cp(e,r,t={}){return n(this,void 0,void 0,function*(){const{force:n,recursive:i}=readCopyOptions(t);const o=(yield u.exists(r))?yield u.stat(r):null;if(o&&o.isFile()&&!n){return}const s=o&&o.isDirectory()?a.join(r,a.basename(e)):r;if(!(yield u.exists(e))){throw new Error(`no such file or directory: ${e}`)}const f=yield u.stat(e);if(f.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,s,0,n)}}else{if(a.relative(e,s)===""){throw new Error(`'${s}' and '${e}' are the same file`)}yield copyFile(e,s,n)}})}r.cp=cp;function mv(e,r,t={}){return n(this,void 0,void 0,function*(){if(yield u.exists(r)){let n=true;if(yield u.isDirectory(r)){r=a.join(r,a.basename(e));n=yield u.exists(r)}if(n){if(t.force==null||t.force){yield rmRF(r)}else{throw new Error("Destination already exists")}}}yield mkdirP(a.dirname(r));yield u.rename(e,r)})}r.mv=mv;function rmRF(e){return n(this,void 0,void 0,function*(){if(u.IS_WINDOWS){try{if(yield u.isDirectory(e,true)){yield s(`rd /s /q "${e}"`)}else{yield s(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield u.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let r=false;try{r=yield u.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(r){yield s(`rm -rf "${e}"`)}else{yield u.unlink(e)}}})}r.rmRF=rmRF;function mkdirP(e){return n(this,void 0,void 0,function*(){yield u.mkdirP(e)})}r.mkdirP=mkdirP;function which(e,r){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'tool' is required")}if(r){const r=yield which(e,false);if(!r){if(u.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}}try{const r=[];if(u.IS_WINDOWS&&process.env.PATHEXT){for(const e of process.env.PATHEXT.split(a.delimiter)){if(e){r.push(e)}}}if(u.isRooted(e)){const t=yield u.tryGetExecutablePath(e,r);if(t){return t}return""}if(e.includes("/")||u.IS_WINDOWS&&e.includes("\\")){return""}const t=[];if(process.env.PATH){for(const e of process.env.PATH.split(a.delimiter)){if(e){t.push(e)}}}for(const n of t){const t=yield u.tryGetExecutablePath(n+a.sep+e,r);if(t){return t}}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}})}r.which=which;function readCopyOptions(e){const r=e.force==null?true:e.force;const t=Boolean(e.recursive);return{force:r,recursive:t}}function cpDirRecursive(e,r,t,i){return n(this,void 0,void 0,function*(){if(t>=255)return;t++;yield mkdirP(r);const n=yield u.readdir(e);for(const a of n){const n=`${e}/${a}`;const o=`${r}/${a}`;const s=yield u.lstat(n);if(s.isDirectory()){yield cpDirRecursive(n,o,t,i)}else{yield copyFile(n,o,i)}}yield u.chmod(r,(yield u.stat(e)).mode)})}function copyFile(e,r,t){return n(this,void 0,void 0,function*(){if((yield u.lstat(e)).isSymbolicLink()){try{yield u.lstat(r);yield u.unlink(r)}catch(e){if(e.code==="EPERM"){yield u.chmod(r,"0666");yield u.unlink(r)}}const t=yield u.readlink(e);yield u.symlink(t,r,u.IS_WINDOWS?"junction":null)}else if(!(yield u.exists(r))||t){yield u.copyFile(e,r)}})}},9:function(e,r,t){"use strict";var n=this&&this.__awaiter||function(e,r,t,n){function adopt(e){return e instanceof t?e:new t(function(r){r(e)})}return new(t||(t=Promise))(function(t,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});const i=t(87);const a=t(614);const o=t(129);const u=t(622);const s=t(1);const f=t(672);const c=process.platform==="win32";class ToolRunner extends a.EventEmitter{constructor(e,r,t){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=r||[];this.options=t||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,r){const t=this._getSpawnFileName();const n=this._getSpawnArgs(e);let i=r?"":"[command]";if(c){if(this._isCmdFile()){i+=t;for(const e of n){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${t}"`;for(const e of n){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(t);for(const e of n){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=t;for(const e of n){i+=` ${e}`}}return i}_processLineBuffer(e,r,t){try{let n=r+e.toString();let a=n.indexOf(i.EOL);while(a>-1){const e=n.substring(0,a);t(e);n=n.substring(a+i.EOL.length);a=n.indexOf(i.EOL)}r=n}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){if(c){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(c){if(this._isCmdFile()){let r=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const t of this.args){r+=" ";r+=e.windowsVerbatimArguments?t:this._windowsQuoteCmdArg(t)}r+='"';return[r]}}return this.args}_endsWith(e,r){return e.endsWith(r)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const r=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let t=false;for(const n of e){if(r.some(e=>e===n)){t=true;break}}if(!t){return e}let n='"';let i=true;for(let r=e.length;r>0;r--){n+=e[r-1];if(i&&e[r-1]==="\\"){n+="\\"}else if(e[r-1]==='"'){i=true;n+='"'}else{i=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let r='"';let t=true;for(let n=e.length;n>0;n--){r+=e[n-1];if(t&&e[n-1]==="\\"){r+="\\"}else if(e[n-1]==='"'){t=true;r+="\\"}else{t=false}}r+='"';return r.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const r={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};r.outStream=e.outStream||process.stdout;r.errStream=e.errStream||process.stderr;return r}_getSpawnOptions(e,r){e=e||{};const t={};t.cwd=e.cwd;t.env=e.env;t["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){t.argv0=`"${r}"`}return t}exec(){return n(this,void 0,void 0,function*(){if(!f.isRooted(this.toolPath)&&(this.toolPath.includes("/")||c&&this.toolPath.includes("\\"))){this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield s.which(this.toolPath,true);return new Promise((e,r)=>{this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const t=this._cloneExecOptions(this.options);if(!t.silent&&t.outStream){t.outStream.write(this._getCommandString(t)+i.EOL)}const n=new ExecState(t,this.toolPath);n.on("debug",e=>{this._debug(e)});const a=this._getSpawnFileName();const u=o.spawn(a,this._getSpawnArgs(t),this._getSpawnOptions(this.options,a));const s="";if(u.stdout){u.stdout.on("data",e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!t.silent&&t.outStream){t.outStream.write(e)}this._processLineBuffer(e,s,e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}})})}const f="";if(u.stderr){u.stderr.on("data",e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!t.silent&&t.errStream&&t.outStream){const r=t.failOnStdErr?t.errStream:t.outStream;r.write(e)}this._processLineBuffer(e,f,e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}})})}u.on("error",e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()});u.on("exit",e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()});u.on("close",e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()});n.on("done",(t,n)=>{if(s.length>0){this.emit("stdline",s)}if(f.length>0){this.emit("errline",f)}u.removeAllListeners();if(t){r(t)}else{e(n)}})})})}}r.ToolRunner=ToolRunner;function argStringToArray(e){const r=[];let t=false;let n=false;let i="";function append(e){if(n&&e!=='"'){i+="\\"}i+=e;n=false}for(let a=0;a0){r.push(i);i=""}continue}append(o)}if(i.length>0){r.push(i.trim())}return r}r.argStringToArray=argStringToArray;class ExecState extends a.EventEmitter{constructor(e,r){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!r){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=r;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const r=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(r)}e._setResult()}}},87:function(e){e.exports=require("os")},129:function(e){e.exports=require("child_process")},357:function(e){e.exports=require("assert")},384:function(e,r,t){"use strict";t.r(r);var n=t(622);var i=t.n(n);class action_Action{static get supportedPlatforms(){return["linux"]}static get isRunningLocally(){return process.env.RUNNER_WORKSPACE===undefined}static get isRunningFromSource(){return i().basename(__dirname)==="model"}static get name(){return"unity-builder"}static get rootFolder(){if(action_Action.isRunningFromSource){return i().dirname(i().dirname(i().dirname(__filename)))}return i().dirname(i().dirname(__filename))}static get builderFolder(){return`${action_Action.rootFolder}/builder`}static get dockerfile(){return`${action_Action.builderFolder}/Dockerfile`}static get workspace(){return process.env.GITHUB_WORKSPACE}static checkCompatibility(){const e=process.platform;if(!action_Action.supportedPlatforms.includes(e)){throw new Error(`Currently ${e}-platform is not supported`)}}}var a=action_Action;class Platform{static get default(){return Platform.types.StandaloneWindows64}static get types(){return{StandaloneOSX:"StandaloneOSX",StandaloneWindows:"StandaloneWindows",StandaloneWindows64:"StandaloneWindows64",StandaloneLinux64:"StandaloneLinux64",iOS:"iOS",Android:"Android",WebGL:"WebGL",WSAPlayer:"WSAPlayer",PS4:"PS4",XboxOne:"XboxOne",tvOS:"tvOS",Switch:"Switch",Lumin:"Lumin",BJM:"BJM",Stadia:"Stadia",Facebook:"Facebook",NoTarget:"NoTarget",Test:"Test"}}static isWindows(e){switch(e){case Platform.types.StandaloneWindows:case Platform.types.StandaloneWindows64:return true;default:return false}}static isAndroid(e){switch(e){case Platform.types.Android:return true;default:return false}}}var o=Platform;class build_parameters_BuildParameters{static create(e){const{unityVersion:r,targetPlatform:t,projectPath:n,buildName:i,buildsPath:a,buildMethod:o,customParameters:u}=e;return{version:r,platform:t,projectPath:n,buildName:i,buildPath:`${a}/${t}`,buildFile:this.parseBuildFile(i,t),buildMethod:o,customParameters:u}}static parseBuildFile(e,r){if(o.isWindows(r)){return`${e}.exe`}if(o.isAndroid(r)){return`${e}.apk`}return e}}var u=build_parameters_BuildParameters;var s=t(747);var f=t.n(s);class Unity{static get libraryFolder(){return"Library"}}var c=Unity;const l=t(470);class input_Input{static getFromUser(){const e=l.getInput("unityVersion");const r=l.getInput("targetPlatform")||o.default;const t=l.getInput("projectPath")||".";const n=l.getInput("buildName")||r;const i=l.getInput("buildsPath")||"build";const a=l.getInput("buildMethod");const u=l.getInput("customParameters")||"";const s=t.replace(/\/$/,"");return{unityVersion:e,targetPlatform:r,projectPath:s,buildName:n,buildsPath:i,buildMethod:a,customParameters:u}}}var v=input_Input;class project_Project{static get relativePath(){const{projectPath:e}=v.getFromUser();return`${e}`}static get absolutePath(){const{workspace:e}=a;return`${e}/${this.relativePath}`}static get libraryFolder(){return`${this.relativePath}/${c.libraryFolder}`}}var d=project_Project;class cache_Cache{static verify(){if(!f().existsSync(d.libraryFolder)){this.notifyAboutCachingPossibility()}}static notifyAboutCachingPossibility(){if(a.isRunningLocally){return}console.log("Library folder does not exist.");console.log("Consider setting up caching to speed up your workflow.");console.log("If this is not your first build.")}}var p=cache_Cache;var h=t(986);var y=typeof global=="object"&&global&&global.Object===Object&&global;var g=y;var b=typeof self=="object"&&self&&self.Object===Object&&self;var m=g||b||Function("return this")();var _=m;var w=_.Symbol;var x=w;var S=Object.prototype;var O=S.hasOwnProperty;var E=S.toString;var I=x?x.toStringTag:undefined;function getRawTag(e){var r=O.call(e,I),t=e[I];try{e[I]=undefined;var n=true}catch(e){}var i=E.call(e);if(n){if(r){e[I]=t}else{delete e[I]}}return i}var j=getRawTag;var A=Object.prototype;var R=A.toString;function objectToString(e){return R.call(e)}var k=objectToString;var W="[object Null]",C="[object Undefined]";var P=x?x.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?C:W}return P&&P in Object(e)?j(e):k(e)}var M=baseGetTag;function isObjectLike(e){return e!=null&&typeof e=="object"}var T=isObjectLike;var B="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||T(e)&&M(e)==B}var D=isSymbol;var L=0/0;function baseToNumber(e){if(typeof e=="number"){return e}if(D(e)){return L}return+e}var $=baseToNumber;function arrayMap(e,r){var t=-1,n=e==null?0:e.length,i=Array(n);while(++t0){if(++r>=hr){return arguments[0]}}else{r=0}return e.apply(undefined,arguments)}}var br=shortOut;var mr=br(Le);var _r=mr;var wr=/\{\n\/\* \[wrapped with (.+)\] \*/,xr=/,? & /;function getWrapDetails(e){var r=e.match(wr);return r?r[1].split(xr):[]}var Sr=getWrapDetails;var Or=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function insertWrapDetails(e,r){var t=r.length;if(!t){return e}var n=t-1;r[n]=(t>1?"& ":"")+r[n];r=r.join(t>2?", ":" ");return e.replace(Or,"{\n/* [wrapped with "+r+"] */\n")}var Er=insertWrapDetails;function constant(e){return function(){return e}}var Ir=constant;var jr=function(){try{var e=Ce(Object,"defineProperty");e({},"",{});return e}catch(e){}}();var Ar=jr;var Rr=!Ar?ce:function(e,r){return Ar(e,"toString",{configurable:true,enumerable:false,value:Ir(r),writable:true})};var kr=Rr;var Wr=br(kr);var Cr=Wr;function arrayEach(e,r){var t=-1,n=e==null?0:e.length;while(++t-1}var Lr=arrayIncludes;var $r=1,Nr=2,Fr=8,zr=16,Ur=32,qr=64,Gr=128,Kr=256,Hr=512;var Zr=[["ary",Gr],["bind",$r],["bindKey",Nr],["curry",Fr],["curryRight",zr],["flip",Hr],["partial",Ur],["partialRight",qr],["rearg",Kr]];function updateWrapDetails(e,r){Pr(Zr,function(t){var n="_."+t[0];if(r&t[1]&&!Lr(e,n)){e.push(n)}});return e.sort()}var Xr=updateWrapDetails;function setWrapToString(e,r,t){var n=r+"";return Cr(e,Er(n,Xr(Sr(n),t)))}var Yr=setWrapToString;var Jr=1,Qr=2,Vr=4,et=8,rt=32,tt=64;function createRecurry(e,r,t,n,i,a,o,u,s,f){var c=r&et,l=c?o:undefined,v=c?undefined:o,d=c?a:undefined,p=c?undefined:a;r|=c?rt:tt;r&=~(c?tt:rt);if(!(r&Vr)){r&=~(Jr|Qr)}var h=[e,r,i,d,l,p,v,u,s,f];var y=t.apply(undefined,h);if(pr(e)){_r(y,h)}y.placeholder=n;return Yr(y,e,r)}var nt=createRecurry;function getHolder(e){var r=e;return r.placeholder}var it=getHolder;var at=9007199254740991;var ot=/^(?:0|[1-9]\d*)$/;function isIndex(e,r){var t=typeof e;r=r==null?at:r;return!!r&&(t=="number"||t!="symbol"&&ot.test(e))&&(e>-1&&e%1==0&&e1){g.reverse()}if(c&&s-1&&e%1==0&&e<=Jt}var Qt=isLength;function isArrayLike(e){return e!=null&&Qt(e.length)&&!he(e)}var Vt=isArrayLike;function isIterateeCall(e,r,t){if(!Y(t)){return false}var n=typeof r;if(n=="number"?Vt(t)&&ut(r,t.length):n=="string"&&r in t){return Ut(t[r],e)}return false}var en=isIterateeCall;function createAssigner(e){return Yt(function(r,t){var n=-1,i=t.length,a=i>1?t[i-1]:undefined,o=i>2?t[2]:undefined;a=e.length>3&&typeof a=="function"?(i--,a):undefined;if(o&&en(t[0],t[1],o)){a=i<3?undefined:a;i=1}r=Object(r);while(++n-1}var Ji=listCacheHas;function listCacheSet(e,r){var t=this.__data__,n=Ki(t,e);if(n<0){++this.size;t.push([e,r])}else{t[n][1]=r}return this}var Qi=listCacheSet;function ListCache(e){var r=-1,t=e==null?0:e.length;this.clear();while(++r0&&t(u)){if(r>1){baseFlatten(u,r-1,t,n,i)}else{Ea(i,u)}}else if(!n){i[i.length]=u}}return i}var Aa=baseFlatten;function flatten(e){var r=e==null?0:e.length;return r?Aa(e,1):[]}var Ra=flatten;function flatRest(e){return Cr(Xt(e,undefined,Ra),e+"")}var ka=flatRest;var Wa=ka(Oa);var Ca=Wa;var Pa=oi(Object.getPrototypeOf,Object);var Ma=Pa;var Ta="[object Object]";var Ba=Function.prototype,Da=Object.prototype;var La=Ba.toString;var $a=Da.hasOwnProperty;var Na=La.call(Object);function isPlainObject(e){if(!T(e)||M(e)!=Ta){return false}var r=Ma(e);if(r===null){return true}var t=$a.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&La.call(t)==Na}var Fa=isPlainObject;var za="[object DOMException]",Ua="[object Error]";function isError(e){if(!T(e)){return false}var r=M(e);return r==Ua||r==za||typeof e.message=="string"&&typeof e.name=="string"&&!Fa(e)}var qa=isError;var Ga=Yt(function(e,r){try{return Ge(e,undefined,r)}catch(e){return qa(e)?e:new Error(e)}});var Ka=Ga;var Ha="Expected a function";function before(e,r){var t;if(typeof r!="function"){throw new TypeError(Ha)}e=ue(e);return function(){if(--e>0){t=r.apply(this,arguments)}if(e<=1){r=undefined}return t}}var Za=before;var Xa=1,Ya=32;var Ja=Yt(function(e,r,t){var n=Xa;if(t.length){var i=lt(t,it(Ja));n|=Ya}return $t(e,n,r,t,i)});Ja.placeholder={};var Qa=Ja;var Va=ka(function(e,r){Pr(r,function(r){r=wa(r);zt(e,r,Qa(e[r],e))});return e});var eo=Va;var ro=1,to=2,no=32;var io=Yt(function(e,r,t){var n=ro|to;if(t.length){var i=lt(t,it(io));n|=no}return $t(r,n,e,t,i)});io.placeholder={};var ao=io;function baseSlice(e,r,t){var n=-1,i=e.length;if(r<0){r=-r>i?0:i+r}t=t>i?i:t;if(t<0){t+=i}i=r>t?0:t-r>>>0;r>>>=0;var a=Array(i);while(++n=n?e:oo(e,r,t)}var uo=castSlice;var so="\\ud800-\\udfff",fo="\\u0300-\\u036f",co="\\ufe20-\\ufe2f",lo="\\u20d0-\\u20ff",vo=fo+co+lo,po="\\ufe0e\\ufe0f";var ho="\\u200d";var yo=RegExp("["+ho+so+vo+po+"]");function hasUnicode(e){return yo.test(e)}var go=hasUnicode;function asciiToArray(e){return e.split("")}var bo=asciiToArray;var mo="\\ud800-\\udfff",_o="\\u0300-\\u036f",wo="\\ufe20-\\ufe2f",xo="\\u20d0-\\u20ff",So=_o+wo+xo,Oo="\\ufe0e\\ufe0f";var Eo="["+mo+"]",Io="["+So+"]",jo="\\ud83c[\\udffb-\\udfff]",Ao="(?:"+Io+"|"+jo+")",Ro="[^"+mo+"]",ko="(?:\\ud83c[\\udde6-\\uddff]){2}",Wo="[\\ud800-\\udbff][\\udc00-\\udfff]",Co="\\u200d";var Po=Ao+"?",Mo="["+Oo+"]?",To="(?:"+Co+"(?:"+[Ro,ko,Wo].join("|")+")"+Mo+Po+")*",Bo=Mo+Po+To,Do="(?:"+[Ro+Io+"?",Io,ko,Wo,Eo].join("|")+")";var Lo=RegExp(jo+"(?="+jo+")|"+Do+Bo,"g");function unicodeToArray(e){return e.match(Lo)||[]}var $o=unicodeToArray;function stringToArray(e){return go(e)?$o(e):bo(e)}var No=stringToArray;function createCaseFirst(e){return function(r){r=ba(r);var t=go(r)?No(r):undefined;var n=t?t[0]:r.charAt(0);var i=t?uo(t,1).join(""):r.slice(1);return n[e]()+i}}var Fo=createCaseFirst;var zo=Fo("toUpperCase");var Uo=zo;function capitalize(e){return Uo(ba(e).toLowerCase())}var qo=capitalize;function arrayReduce(e,r,t,n){var i=-1,a=e==null?0:e.length;if(n&&a){t=e[++i]}while(++i=r?e:r}}return e}var ls=baseClamp;function clamp(e,r,t){if(t===undefined){t=r;r=undefined}if(t!==undefined){t=ne(t);t=t===t?t:0}if(r!==undefined){r=ne(r);r=r===r?r:0}return ls(ne(e),r,t)}var vs=clamp;function stackClear(){this.__data__=new Vi;this.size=0}var ds=stackClear;function stackDelete(e){var r=this.__data__,t=r["delete"](e);this.size=r.size;return t}var ps=stackDelete;function stackGet(e){return this.__data__.get(e)}var hs=stackGet;function stackHas(e){return this.__data__.has(e)}var ys=stackHas;var gs=200;function stackSet(e,r){var t=this.__data__;if(t instanceof Vi){var n=t.__data__;if(!ra||n.lengthu)){return false}var f=a.get(e);if(f&&a.get(r)){return f==r}var c=-1,l=true,v=t&Yc?new Kc:undefined;a.set(e,r);a.set(r,e);while(++c=r||t<0||l&&n>=a}function timerExpired(){var e=bv();if(shouldInvoke(e)){return trailingEdge(e)}u=setTimeout(timerExpired,remainingWait(e))}function trailingEdge(e){u=undefined;if(v&&n){return invokeFunc(e)}n=i=undefined;return o}function cancel(){if(u!==undefined){clearTimeout(u)}f=0;n=s=i=u=undefined}function flush(){return u===undefined?o:trailingEdge(bv())}function debounced(){var e=bv(),t=shouldInvoke(e);n=arguments;i=this;s=e;if(t){if(u===undefined){return leadingEdge(s)}if(l){clearTimeout(u);u=setTimeout(timerExpired,r);return invokeFunc(s)}}if(u===undefined){u=setTimeout(timerExpired,r)}return o}debounced.cancel=cancel;debounced.flush=flush;return debounced}var xv=debounce;function defaultTo(e,r){return e==null||e!==e?r:e}var Sv=defaultTo;var Ov=Object.prototype;var Ev=Ov.hasOwnProperty;var Iv=Yt(function(e,r){e=Object(e);var t=-1;var n=r.length;var i=n>2?r[2]:undefined;if(i&&en(r[0],r[1],i)){n=1}while(++t=Kv){a=Zc;o=false;r=new Kc(r)}e:while(++i=0&&e.slice(t,i)==r}var gd=endsWith;function baseToPairs(e,r){return N(r,function(r){return[r,e[r]]})}var bd=baseToPairs;function setToPairs(e){var r=-1,t=Array(e.size);e.forEach(function(e){t[++r]=[e,e]});return t}var md=setToPairs;var _d="[object Map]",wd="[object Set]";function createToPairs(e){return function(r){var t=sf(r);if(t==_d){return Qc(r)}if(t==wd){return md(r)}return bd(r,e(r))}}var xd=createToPairs;var Sd=xd(vi);var Od=Sd;var Ed=xd(wi);var Id=Ed;var jd={"&":"&","<":"<",">":">",'"':""","'":"'"};var Ad=Ko(jd);var Rd=Ad;var kd=/[&<>"']/g,Wd=RegExp(kd.source);function escape_escape(e){e=ba(e);return e&&Wd.test(e)?e.replace(kd,Rd):e}var Cd=escape_escape;var Pd=/[\\^$.*+?()[\]{}|]/g,Md=RegExp(Pd.source);function escapeRegExp(e){e=ba(e);return e&&Md.test(e)?e.replace(Pd,"\\$&"):e}var Td=escapeRegExp;function arrayEvery(e,r){var t=-1,n=e==null?0:e.length;while(++ti?0:i+t}n=n===undefined||n>i?i:ue(n);if(n<0){n+=i}n=t>n?0:Nd(n);while(t-1?i[a?r[o]:o]:undefined}}var Gd=createFind;var Kd=Math.max;function findIndex(e,r,t){var n=e==null?0:e.length;if(!n){return-1}var i=t==null?0:ue(t);if(i<0){i=Kd(n+i,0)}return Mr(e,ql(r,3),i)}var Hd=findIndex;var Zd=Gd(Hd);var Xd=Zd;function baseFindKey(e,r,t){var n;t(e,function(e,t,i){if(r(e,t,i)){n=t;return false}});return n}var Yd=baseFindKey;function findKey(e,r){return Yd(e,ql(r,3),tv)}var Jd=findKey;var Qd=Math.max,Vd=Math.min;function findLastIndex(e,r,t){var n=e==null?0:e.length;if(!n){return-1}var i=n-1;if(t!==undefined){i=ue(t);i=t<0?Qd(n+i,0):Vd(i,n-1)}return Mr(e,ql(r,3),i,true)}var ep=findLastIndex;var rp=Gd(ep);var tp=rp;function findLastKey(e,r){return Yd(e,ql(r,3),dd)}var np=findLastKey;function head(e){return e&&e.length?e[0]:undefined}var ip=head;function baseMap(e,r){var t=-1,n=Vt(e)?Array(e.length):[];av(e,function(e,i,a){n[++t]=r(e,i,a)});return n}var ap=baseMap;function map_map(e,r){var t=z(e)?N:ap;return t(e,ql(r,3))}var op=map_map;function flatMap(e,r){return Aa(op(e,r),1)}var up=flatMap;var sp=1/0;function flatMapDeep(e,r){return Aa(op(e,r),sp)}var fp=flatMapDeep;function flatMapDepth(e,r,t){t=t===undefined?1:ue(t);return Aa(op(e,r),t)}var cp=flatMapDepth;var lp=1/0;function flattenDeep(e){var r=e==null?0:e.length;return r?Aa(e,lp):[]}var vp=flattenDeep;function flattenDepth(e,r){var t=e==null?0:e.length;if(!t){return[]}r=r===undefined?1:ue(r);return Aa(e,r)}var dp=flattenDepth;var pp=512;function flip(e){return $t(e,pp)}var hp=flip;var yp=is("floor");var gp=yp;var bp="Expected a function";var mp=8,_p=32,wp=128,xp=256;function createFlow(e){return ka(function(r){var t=r.length,n=t,i=sr.prototype.thru;if(e){r.reverse()}while(n--){var a=r[n];if(typeof a!="function"){throw new TypeError(bp)}if(i&&!o&&ur(a)=="wrapper"){var o=new sr([],true)}}n=o?n:t;while(++nr}var Np=baseGt;function createRelationalOperation(e){return function(r,t){if(!(typeof r=="string"&&typeof t=="string")){r=ne(r);t=ne(t)}return e(r,t)}}var Fp=createRelationalOperation;var zp=Fp(Np);var Up=zp;var qp=Fp(function(e,r){return e>=r});var Gp=qp;var Kp=Object.prototype;var Hp=Kp.hasOwnProperty;function baseHas(e,r){return e!=null&&Hp.call(e,r)}var Zp=baseHas;function has(e,r){return e!=null&&Bl(e,r,Zp)}var Xp=has;var Yp=Math.max,Jp=Math.min;function baseInRange(e,r,t){return e>=Jp(r,t)&&e-1:!!i&&Dr(e,r,t)>-1}var ah=includes_includes;var oh=Math.max;function indexOf_indexOf(e,r,t){var n=e==null?0:e.length;if(!n){return-1}var i=t==null?0:ue(t);if(i<0){i=oh(n+i,0)}return Dr(e,r,i)}var uh=indexOf_indexOf;function initial(e){var r=e==null?0:e.length;return r?oo(e,0,-1):[]}var sh=initial;var fh=Math.min;function baseIntersection(e,r,t){var n=t?Gv:Lr,i=e[0].length,a=e.length,o=a,u=Array(a),s=Infinity,f=[];while(o--){var c=e[o];if(o&&r){c=N(c,Hn(r))}s=fh(c.length,s);u[o]=!t&&(r||i>=120&&c.length>=120)?new Kc(o&&c):undefined}c=e[0];var l=-1,v=u[0];e:while(++l=-_y&&e<=_y}var wy=isSafeInteger;function isUndefined(e){return e===undefined}var xy=isUndefined;var Sy="[object WeakMap]";function isWeakMap(e){return T(e)&&sf(e)==Sy}var Oy=isWeakMap;var Ey="[object WeakSet]";function isWeakSet(e){return T(e)&&M(e)==Ey}var Iy=isWeakSet;var jy=1;function iteratee_iteratee(e){return ql(typeof e=="function"?e:Rc(e,jy))}var Ay=iteratee_iteratee;var Ry=Array.prototype;var ky=Ry.join;function join(e,r){return e==null?"":ky.call(e,r)}var Wy=join;var Cy=Qu(function(e,r,t){return e+(t?"-":"")+r.toLowerCase()});var Py=Cy;var My=uv(function(e,r,t){zt(e,t,r)});var Ty=My;function strictLastIndexOf(e,r,t){var n=t+1;while(n--){if(e[n]===r){return n}}return n}var By=strictLastIndexOf;var Dy=Math.max,Ly=Math.min;function lastIndexOf(e,r,t){var n=e==null?0:e.length;if(!n){return-1}var i=n;if(t!==undefined){i=ue(t);i=i<0?Dy(n+i,0):Ly(i,n-1)}return r===r?By(e,r,i):Mr(e,Tr,i,true)}var $y=lastIndexOf;var Ny=Qu(function(e,r,t){return e+(t?" ":"")+r.toLowerCase()});var Fy=Ny;var zy=Fo("toLowerCase");var Uy=zy;function baseLt(e,r){return e=this.__values__.length,r=e?undefined:this.__values__[this.__index__++];return{done:e,value:r}}var jg=wrapperNext;function baseNth(e,r){var t=e.length;if(!t){return}r+=r<0?t:0;return ut(r,t)?e[r]:undefined}var Ag=baseNth;function nth(e,r){return e&&e.length?Ag(e,ue(r)):undefined}var Rg=nth;function nthArg(e){e=ue(e);return Yt(function(r){return Ag(r,e)})}var kg=nthArg;function baseUnset(e,r){r=ma(r,e);e=Rh(e,r);return e==null||delete e[wa(Yv(r))]}var Wg=baseUnset;function customOmitClone(e){return Fa(e)?undefined:e}var Cg=customOmitClone;var Pg=1,Mg=2,Tg=4;var Bg=ka(function(e,r){var t={};if(e==null){return t}var n=false;r=N(r,function(r){r=ma(r,e);n||(n=r.length>1);return r});Ht(e,zs(e),t);if(n){t=Rc(t,Pg|Mg|Tg,Cg)}var i=r.length;while(i--){Wg(t,r[i])}return t});var Dg=Bg;function baseSet(e,r,t,n){if(!Y(e)){return e}r=ma(r,e);var i=-1,a=r.length,o=a-1,u=e;while(u!=null&&++ir||a&&o&&s&&!u&&!f||n&&o&&s||!t&&s||!i){return 1}if(!n&&!a&&!f&&e=u){return s}var f=t[n];return s*(f=="desc"?-1:1)}}return e.index-r.index}var Gg=compareMultiple;function baseOrderBy(e,r,t){var n=-1;r=N(r.length?r:[ce],Hn(ql));var i=ap(e,function(e,t,i){var a=N(r,function(r){return r(e)});return{criteria:a,index:++n,value:e}});return Ug(i,function(e,r){return Gg(e,r,t)})}var Kg=baseOrderBy;function orderBy(e,r,t,n){if(e==null){return[]}if(!z(r)){r=r==null?[]:[r]}t=n?undefined:t;if(!z(t)){t=t==null?[]:[t]}return Kg(e,r,t)}var Hg=orderBy;function createOver(e){return ka(function(r){r=N(r,Hn(ql));return Yt(function(t){var n=this;return e(r,function(e){return Ge(e,n,t)})})})}var Zg=createOver;var Xg=Zg(N);var Yg=Xg;var Jg=Yt;var Qg=Jg;var Vg=Math.min;var eb=Qg(function(e,r){r=r.length==1&&z(r[0])?N(r[0],Hn(ql)):N(Aa(r,1),Hn(ql));var t=r.length;return Yt(function(n){var i=-1,a=Vg(n.length,t);while(++iob){return t}do{if(r%2){t+=e}r=ub(r/2);if(r){e+=e}}while(r);return t}var sb=baseRepeat;var fb=Fl("length");var cb=fb;var lb="\\ud800-\\udfff",vb="\\u0300-\\u036f",db="\\ufe20-\\ufe2f",pb="\\u20d0-\\u20ff",hb=vb+db+pb,yb="\\ufe0e\\ufe0f";var gb="["+lb+"]",bb="["+hb+"]",mb="\\ud83c[\\udffb-\\udfff]",_b="(?:"+bb+"|"+mb+")",wb="[^"+lb+"]",xb="(?:\\ud83c[\\udde6-\\uddff]){2}",Sb="[\\ud800-\\udbff][\\udc00-\\udfff]",Ob="\\u200d";var Eb=_b+"?",Ib="["+yb+"]?",jb="(?:"+Ob+"(?:"+[wb,xb,Sb].join("|")+")"+Ib+Eb+")*",Ab=Ib+Eb+jb,Rb="(?:"+[wb+bb+"?",bb,xb,Sb,gb].join("|")+")";var kb=RegExp(mb+"(?="+mb+")|"+Rb+Ab,"g");function unicodeSize(e){var r=kb.lastIndex=0;while(kb.test(e)){++r}return r}var Wb=unicodeSize;function stringSize(e){return go(e)?Wb(e):cb(e)}var Cb=stringSize;var Pb=Math.ceil;function createPadding(e,r){r=r===undefined?" ":K(r);var t=r.length;if(t<2){return t?sb(r,e):r}var n=sb(r,Pb(e/Cb(r)));return go(r)?uo(No(n),0,e).join(""):n.slice(0,e)}var Mb=createPadding;var Tb=Math.ceil,Bb=Math.floor;function pad(e,r,t){e=ba(e);r=ue(r);var n=r?Cb(e):0;if(!r||n>=r){return e}var i=(r-n)/2;return Mb(Bb(i),t)+e+Mb(Tb(i),t)}var Db=pad;function padEnd(e,r,t){e=ba(e);r=ue(r);var n=r?Cb(e):0;return r&&n-1){if(u!==e){im.call(u,s,1)}im.call(e,s,1)}}return e}var am=basePullAll;function pullAll(e,r){return e&&e.length&&r&&r.length?am(e,r):e}var om=pullAll;var um=Yt(om);var sm=um;function pullAllBy(e,r,t){return e&&e.length&&r&&r.length?am(e,r,ql(t,2)):e}var fm=pullAllBy;function pullAllWith(e,r,t){return e&&e.length&&r&&r.length?am(e,r,undefined,t):e}var cm=pullAllWith;var lm=Array.prototype;var vm=lm.splice;function basePullAt(e,r){var t=e?r.length:0,n=t-1;while(t--){var i=r[t];if(t==n||i!==a){var a=i;if(ut(i)){vm.call(e,i,1)}else{Wg(e,i)}}}return e}var dm=basePullAt;var pm=ka(function(e,r){var t=e==null?0:e.length,n=Oa(e,r);dm(e,N(r,function(e){return ut(e,t)?+e:e}).sort(qg));return n});var hm=pm;var ym=Math.floor,gm=Math.random;function baseRandom(e,r){return e+ym(gm()*(r-e+1))}var bm=baseRandom;var mm=parseFloat;var _m=Math.min,wm=Math.random;function random(e,r,t){if(t&&typeof t!="boolean"&&en(e,r,t)){r=t=undefined}if(t===undefined){if(typeof r=="boolean"){t=r;r=undefined}else if(typeof e=="boolean"){t=e;e=undefined}}if(e===undefined&&r===undefined){e=0;r=1}else{e=oe(e);if(r===undefined){r=e;e=0}else{r=oe(r)}}if(e>r){var n=e;e=r;r=n}if(t||e%1||r%1){var i=wm();return _m(e+i*(r-e+mm("1e-"+((i+"").length-1))),r)}return bm(e,r)}var xm=random;var Sm=Math.ceil,Om=Math.max;function baseRange(e,r,t,n){var i=-1,a=Om(Sm((r-e)/(t||1)),0),o=Array(a);while(a--){o[n?a:++i]=e;e+=t}return o}var Em=baseRange;function createRange(e){return function(r,t,n){if(n&&typeof n!="number"&&en(r,t,n)){t=n=undefined}r=oe(r);if(t===undefined){t=r;r=0}else{t=oe(t)}n=n===undefined?r1&&en(e,r[0],r[1])){r=[]}else if(t>2&&en(r[0],r[1],r[2])){r=[r[0]]}return Kg(e,Aa(r,1),[])});var g_=y_;var b_=4294967295,m_=b_-1;var __=Math.floor,w_=Math.min;function baseSortedIndexBy(e,r,t,n){r=t(r);var i=0,a=e==null?0:e.length,o=r!==r,u=r===null,s=D(r),f=r===undefined;while(i>>1;function baseSortedIndex(e,r,t){var n=0,i=e==null?n:e.length;if(typeof r=="number"&&r===r&&i<=O_){while(n>>1,o=e[a];if(o!==null&&!D(o)&&(t?o<=r:o>>0;if(!t){return[]}e=ba(e);if(e&&(typeof r=="string"||r!=null&&!my(r))){r=K(r);if(!r&&go(e)){return uo(No(e),0,t)}}return e.split(r,t)}var B_=split;var D_="Expected a function";var L_=Math.max;function spread(e,r){if(typeof e!="function"){throw new TypeError(D_)}r=r==null?0:L_(ue(r),0);return Yt(function(t){var n=t[r],i=uo(t,0,r);if(n){Ea(i,n)}return Ge(e,this,i)})}var $_=spread;var N_=Qu(function(e,r,t){return e+(t?" ":"")+Uo(r)});var F_=N_;function startsWith(e,r,t){e=ba(e);t=t==null?0:ls(ue(t),0,e.length);r=K(r);return e.slice(t,t+r.length)==r}var z_=startsWith;function stubObject(){return{}}var U_=stubObject;function stubString(){return""}var q_=stubString;function stubTrue(){return true}var G_=stubTrue;var K_=H(function(e,r){return e-r},0);var H_=K_;function sum(e){return e&&e.length?ig(e,ce):0}var Z_=sum;function sumBy(e,r){return e&&e.length?ig(e,ql(r,2)):0}var X_=sumBy;function tail(e){var r=e==null?0:e.length;return r?oo(e,1,r):[]}var Y_=tail;function take(e,r,t){if(!(e&&e.length)){return[]}r=t||r===undefined?1:ue(r);return oo(e,0,r<0?0:r)}var J_=take;function takeRight(e,r,t){var n=e==null?0:e.length;if(!n){return[]}r=t||r===undefined?1:ue(r);r=n-r;return oo(e,r<0?0:r,n)}var Q_=takeRight;function takeRightWhile(e,r){return e&&e.length?ad(e,ql(r,3),false,true):[]}var V_=takeRightWhile;function takeWhile(e,r){return e&&e.length?ad(e,ql(r,3)):[]}var ew=takeWhile;function tap(e,r){r(e);return e}var rw=tap;var tw=Object.prototype;var nw=tw.hasOwnProperty;function customDefaultsAssignIn(e,r,t,n){if(e===undefined||Ut(e,tw[t])&&!nw.call(n,t)){return r}return e}var iw=customDefaultsAssignIn;var aw={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function escapeStringChar(e){return"\\"+aw[e]}var ow=escapeStringChar;var uw=/<%=([\s\S]+?)%>/g;var sw=uw;var fw=/<%-([\s\S]+?)%>/g;var cw=fw;var lw=/<%([\s\S]+?)%>/g;var vw=lw;var dw={escape:cw,evaluate:vw,interpolate:sw,variable:"",imports:{_:{escape:Cd}}};var pw=dw;var hw=/\b__p \+= '';/g,yw=/\b(__p \+=) '' \+/g,gw=/(__e\(.*?\)|\b__t\)) \+\n'';/g;var bw=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;var mw=/($^)/;var _w=/['\n\r\u2028\u2029\\]/g;var ww=Object.prototype;var xw=ww.hasOwnProperty;function template(e,r,t){var n=pw.imports._.templateSettings||pw;if(t&&en(e,r,t)){r=undefined}e=ba(e);r=Ei({},r,n,iw);var i=Ei({},r.imports,n.imports,iw),a=vi(i),o=th(i,a);var u,s,f=0,c=r.interpolate||mw,l="__p += '";var v=RegExp((r.escape||mw).source+"|"+c.source+"|"+(c===sw?bw:mw).source+"|"+(r.evaluate||mw).source+"|$","g");var d=xw.call(r,"sourceURL")?"//# sourceURL="+(r.sourceURL+"").replace(/[\r\n]/g," ")+"\n":"";e.replace(v,function(r,t,n,i,a,o){n||(n=i);l+=e.slice(f,o).replace(_w,ow);if(t){u=true;l+="' +\n__e("+t+") +\n'"}if(a){s=true;l+="';\n"+a+";\n__p += '"}if(n){l+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"}f=o+r.length;return r});l+="';\n";var p=xw.call(r,"variable")&&r.variable;if(!p){l="with (obj) {\n"+l+"\n}\n"}l=(s?l.replace(hw,""):l).replace(yw,"$1").replace(gw,"$1;");l="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(u?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+l+"return __p\n}";var h=Ka(function(){return Function(a,d+"return "+l).apply(undefined,o)});h.source=l;if(qa(h)){throw h}return h}var Sw=template;var Ow="Expected a function";function throttle(e,r,t){var n=true,i=true;if(typeof e!="function"){throw new TypeError(Ow)}if(Y(t)){n="leading"in t?!!t.leading:n;i="trailing"in t?!!t.trailing:i}return xv(e,r,{leading:n,maxWait:r,trailing:i})}var Ew=throttle;function thru(e,r){return r(e)}var Iw=thru;var jw=9007199254740991;var Aw=4294967295;var Rw=Math.min;function times(e,r){e=ue(e);if(e<1||e>jw){return[]}var t=Aw,n=Rw(e,Aw);r=sd(r);e-=Aw;var i=an(n,r);while(++t-1){}return t}var Nw=charsEndIndex;function charsStartIndex(e,r){var t=-1,n=e.length;while(++t-1){}return t}var Fw=charsStartIndex;var zw=/^\s+|\s+$/g;function trim(e,r,t){e=ba(e);if(e&&(t||r===undefined)){return e.replace(zw,"")}if(!e||!(r=K(r))){return e}var n=No(e),i=No(r),a=Fw(n,i),o=Nw(n,i)+1;return uo(n,a,o).join("")}var Uw=trim;var qw=/\s+$/;function trimEnd(e,r,t){e=ba(e);if(e&&(t||r===undefined)){return e.replace(qw,"")}if(!e||!(r=K(r))){return e}var n=No(e),i=Nw(n,No(r))+1;return uo(n,0,i).join("")}var Gw=trimEnd;var Kw=/^\s+/;function trimStart(e,r,t){e=ba(e);if(e&&(t||r===undefined)){return e.replace(Kw,"")}if(!e||!(r=K(r))){return e}var n=No(e),i=Fw(n,No(r));return uo(n,i).join("")}var Hw=trimStart;var Zw=30,Xw="...";var Yw=/\w*$/;function truncate(e,r){var t=Zw,n=Xw;if(Y(r)){var i="separator"in r?r.separator:i;t="length"in r?ue(r.length):t;n="omission"in r?K(r.omission):n}e=ba(e);var a=e.length;if(go(e)){var o=No(e);a=o.length}if(t>=a){return e}var u=t-Cb(n);if(u<1){return n}var s=o?uo(o,0,u).join(""):e.slice(0,u);if(i===undefined){return s+n}if(o){u+=s.length-u}if(my(i)){if(e.slice(u).search(i)){var f,c=s;if(!i.global){i=RegExp(i.source,ba(Yw.exec(i))+"g")}i.lastIndex=0;while(f=i.exec(c)){var l=f.index}s=s.slice(0,l===undefined?u:l)}}else if(e.indexOf(K(i),u)!=u){var v=s.lastIndexOf(i);if(v>-1){s=s.slice(0,v)}}return s+n}var Jw=truncate;function unary(e){return Ft(e,1)}var Qw=unary;var Vw={"&":"&","<":"<",">":">",""":'"',"'":"'"};var ex=Ko(Vw);var rx=ex;var tx=/&(?:amp|lt|gt|quot|#39);/g,nx=RegExp(tx.source);function unescape_unescape(e){e=ba(e);return e&&nx.test(e)?e.replace(tx,rx):e}var ix=unescape_unescape;var ax=1/0;var ox=!(Zs&&1/Vc(new Zs([,-0]))[1]==ax)?er:function(e){return new Zs(e)};var ux=ox;var sx=200;function baseUniq(e,r,t){var n=-1,i=Lr,a=e.length,o=true,u=[],s=u;if(t){o=false;i=Gv}else if(a>=sx){var f=r?null:ux(e);if(f){return Vc(f)}o=false;i=Zc;s=new Kc}else{s=r?[]:u}e:while(++n1||this.__actions__.length||!(n instanceof Ve)||!ut(t)){return this.thru(i)}n=n.slice(t,+t+(r?1:0));n.__actions__.push({func:Iw,args:[i],thisArg:undefined});return new sr(n,this.__chain__).thru(function(e){if(r&&!e.length){e.push(undefined)}return e})});var Tx=Mx;function wrapperChain(){return us(this)}var Bx=wrapperChain;function wrapperReverse(){var e=this.__wrapped__;if(e instanceof Ve){var r=e;if(this.__actions__.length){r=new Ve(this)}r=r.reverse();r.__actions__.push({func:Iw,args:[Hm],thisArg:undefined});return new sr(r,this.__chain__)}return this.thru(Hm)}var Dx=wrapperReverse;function baseXor(e,r,t){var n=e.length;if(n<2){return n?fx(e[0]):[]}var i=-1,a=Array(n);while(++i1?e[r-1]:undefined;t=typeof t=="function"?(e.pop(),t):undefined;return Ox(e,t)});var Jx=Yx;var Qx={chunk:cs,compact:Fc,concat:zc,difference:Xv,differenceBy:Qv,differenceWith:ed,drop:nd,dropRight:id,dropRightWhile:od,dropWhile:ud,fill:zd,findIndex:Hd,findLastIndex:ep,first:ip,flatten:Ra,flattenDeep:vp,flattenDepth:dp,fromPairs:Cp,head:ip,indexOf:uh,initial:sh,intersection:dh,intersectionBy:hh,intersectionWith:gh,join:Wy,last:Yv,lastIndexOf:$y,nth:Rg,pull:sm,pullAll:om,pullAllBy:fm,pullAllWith:cm,pullAt:hm,remove:$m,reverse:Hm,slice:l_,sortedIndex:I_,sortedIndexBy:j_,sortedIndexOf:A_,sortedLastIndex:R_,sortedLastIndexBy:k_,sortedLastIndexOf:W_,sortedUniq:P_,sortedUniqBy:M_,tail:Y_,take:J_,takeRight:Q_,takeRightWhile:V_,takeWhile:ew,union:lx,unionBy:dx,unionWith:hx,uniq:yx,uniqBy:gx,uniqWith:bx,unzip:Sx,unzipWith:Ox,without:Cx,xor:Nx,xorBy:zx,xorWith:qx,zip:Kx,zipObject:Zx,zipObjectDeep:Xx,zipWith:Jx};var Vx={countBy:lv,each:fd,eachRight:yd,every:Ld,filter:qd,find:Xd,findLast:tp,flatMap:up,flatMapDeep:fp,flatMapDepth:cp,forEach:fd,forEachRight:yd,groupBy:$p,includes:ah,invokeMap:Mh,keyBy:Ty,map:op,orderBy:Hg,partition:Yb,reduce:Tm,reduceRight:Dm,reject:Lm,sample:Qm,sampleSize:t_,shuffle:u_,size:c_,some:h_,sortBy:g_};var eS={now:bv};var rS={after:fe,ary:Ft,before:Za,bind:Qa,bindKey:ao,curry:pv,curryRight:yv,debounce:xv,defer:zv,delay:qv,flip:hp,memoize:la,negate:wg,once:zg,overArgs:rb,partial:Gb,partialRight:Zb,rearg:Pm,rest:Um,spread:$_,throttle:Ew,unary:Qw,wrap:Px};var tS={castArray:rs,clone:Wc,cloneDeep:Mc,cloneDeepWith:Dc,cloneWith:$c,conformsTo:Jl,eq:Ut,gt:Up,gte:Gp,isArguments:vn,isArray:z,isArrayBuffer:$h,isArrayLike:Vt,isArrayLikeObject:Rv,isBoolean:Fh,isBuffer:_n,isDate:Kh,isElement:Hh,isEmpty:Qh,isEqual:Vh,isEqualWith:ey,isError:qa,isFinite:ty,isFunction:he,isInteger:ny,isLength:Qt,isMap:Hf,isMatch:iy,isMatchWith:ay,isNaN:sy,isNative:vy,isNil:dy,isNull:py,isNumber:uy,isObject:Y,isObjectLike:T,isPlainObject:Fa,isRegExp:my,isSafeInteger:wy,isSet:Qf,isString:rh,isSymbol:D,isTypedArray:ti,isUndefined:xy,isWeakMap:Oy,isWeakSet:Iy,lt:Ky,lte:Zy,toArray:Ig,toFinite:oe,toInteger:ue,toLength:Nd,toNumber:ne,toPlainObject:Wv,toSafeInteger:Dw,toString:ba};var nS={add:X,ceil:os,divide:td,floor:gp,max:tg,maxBy:ng,mean:ug,meanBy:sg,min:hg,minBy:yg,multiply:mg,round:Xm,subtract:H_,sum:Z_,sumBy:X_};var iS={clamp:vs,inRange:Vp,random:xm};var aS={assign:yi,assignIn:Si,assignInWith:Ei,assignWith:ji,at:Ca,create:vv,defaults:jv,defaultsDeep:Lv,entries:Od,entriesIn:Id,extend:Si,extendWith:Ei,findKey:Jd,findLastKey:np,forIn:Ap,forInRight:Rp,forOwn:kp,forOwnRight:Wp,functions:Mp,functionsIn:Tp,get:Sa,has:Xp,hasIn:Dl,invert:Sh,invertBy:Ah,invoke:Ch,keys:vi,keysIn:wi,mapKeys:Xy,mapValues:Yy,merge:cg,mergeWith:Bv,omit:Dg,omitBy:Fg,pick:Vb,pickBy:Ng,result:qm,set:n_,setWith:i_,toPairs:Od,toPairsIn:Id,transform:$w,unset:wx,update:Ix,updateWith:jx,values:nh,valuesIn:kx};var oS={at:Tx,chain:us,commit:Nc,lodash:dr,next:jg,plant:em,reverse:Dx,tap:rw,thru:Iw,toIterator:Ww,toJSON:Pw,value:Pw,valueOf:Pw,wrapperChain:Bx};var uS={camelCase:es,capitalize:qo,deburr:nu,endsWith:gd,escape:Cd,escapeRegExp:Td,kebabCase:Py,lowerCase:Fy,lowerFirst:Uy,pad:Db,padEnd:Lb,padStart:$b,parseInt:zb,repeat:Nm,replace:Fm,snakeCase:d_,split:B_,startCase:F_,startsWith:z_,template:Sw,templateSettings:pw,toLower:Mw,toUpper:Lw,trim:Uw,trimEnd:Gw,trimStart:Hw,truncate:Jw,unescape:ix,upperCase:Rx,upperFirst:Uo,words:Xu};var sS={attempt:Ka,bindAll:eo,cond:Kl,conforms:Yl,constant:Ir,defaultTo:Sv,flow:Ep,flowRight:jp,identity:ce,iteratee:Ay,matches:Qy,matchesProperty:eg,method:vg,methodOf:pg,mixin:gg,noop:er,nthArg:kg,over:Yg,overEvery:nb,overSome:ab,property:Ul,propertyOf:rm,range:Am,rangeRight:km,stubArray:Rs,stubFalse:dn,stubObject:U_,stubString:q_,stubTrue:G_,times:kw,toPath:Tw,uniqueId:_x};function lazyClone(){var e=new Ve(this.__wrapped__);e.__actions__=fr(this.__actions__);e.__dir__=this.__dir__;e.__filtered__=this.__filtered__;e.__iteratees__=fr(this.__iteratees__);e.__takeCount__=this.__takeCount__;e.__views__=fr(this.__views__);return e}var fS=lazyClone;function lazyReverse(){if(this.__filtered__){var e=new Ve(this);e.__dir__=-1;e.__filtered__=true}else{e=this.clone();e.__dir__*=-1}return e}var cS=lazyReverse;var lS=Math.max,vS=Math.min;function getView(e,r,t){var n=-1,i=t.length;while(++n0||r<0)){return new Ve(t)}if(e<0){t=t.takeRight(-e)}else if(e){t=t.drop(e)}if(r!==undefined){r=ue(r);t=r<0?t.dropRight(-r):t.take(r-e)}return t};Ve.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()};Ve.prototype.toArray=function(){return this.take(xS)};tv(Ve.prototype,function(e,r){var t=/^(?:filter|find|map|reject)|While$/.test(r),n=/^(?:head|last)$/.test(r),i=dr[n?"take"+(r=="last"?"Right":""):r],a=n||/^find/.test(r);if(!i){return}dr.prototype[r]=function(){var r=this.__wrapped__,o=n?[1]:arguments,u=r instanceof Ve,s=o[0],f=u||z(r);var c=function(e){var r=i.apply(dr,Ea([e],o));return n&&l?r[0]:r};if(f&&t&&typeof s=="function"&&s.length!=1){u=f=false}var l=this.__chain__,v=!!this.__actions__.length,d=a&&!l,p=u&&!v;if(!a&&f){r=p?r:new Ve(this);var h=e.apply(r,o);h.__actions__.push({func:Iw,args:[c],thisArg:undefined});return new sr(h,l)}if(d&&p){return e.apply(this,o)}h=this.thru(c);return d?n?h.value()[0]:h.value():h}});Pr(["pop","push","shift","sort","splice","unshift"],function(e){var r=SS[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);dr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return r.apply(z(i)?i:[],e)}return this[t](function(t){return r.apply(z(t)?t:[],e)})}});tv(Ve.prototype,function(e,r){var t=dr[r];if(t){var n=t.name+"";if(!ES.call(ir,n)){ir[n]=[]}ir[n].push({name:r,func:t})}});ir[bt(undefined,mS).name]=[{name:"wrapper",func:undefined}];Ve.prototype.clone=fS;Ve.prototype.reverse=cS;Ve.prototype.value=gS;dr.prototype.at=oS.at;dr.prototype.chain=oS.wrapperChain;dr.prototype.commit=oS.commit;dr.prototype.next=oS.next;dr.prototype.plant=oS.plant;dr.prototype.reverse=oS.reverse;dr.prototype.toJSON=dr.prototype.valueOf=dr.prototype.value=oS.value;dr.prototype.first=dr.prototype.head;if(IS){dr.prototype[IS]=oS.toIterator}var kS=dr;class image_tag_ImageTag{constructor(e){const{repository:r="gableroux",name:t="unity3d",version:n="2019.2.11f1",platform:i}=e;if(!image_tag_ImageTag.versionPattern.test(n)){throw new Error(`Invalid version "${n}".`)}if(!Xp(image_tag_ImageTag.targetPlatformToImageSuffixMap,i)){throw new Error(`Platform "${i}" is currently not supported.`)}const a=Sa(image_tag_ImageTag.targetPlatformToImageSuffixMap,i,image_tag_ImageTag.imageSuffixes.generic);Object.assign(this,{repository:r,name:t,version:n,platform:i,builderPlatform:a})}static get versionPattern(){return/^20\d{2}\.\d\.\w{3,4}|3$/}static get imageSuffixes(){return{generic:"",webgl:"webgl",mac:"mac",windows:"windows",android:"android",ios:"ios",facebook:"facebook"}}static get targetPlatformToImageSuffixMap(){const{generic:e,webgl:r,mac:t,windows:n,android:i,ios:a,facebook:u}=image_tag_ImageTag.imageSuffixes;return{[o.types.StandaloneOSX]:t,[o.types.StandaloneWindows]:n,[o.types.StandaloneWindows64]:n,[o.types.StandaloneLinux64]:n,[o.types.iOS]:a,[o.types.Android]:i,[o.types.WebGL]:r,[o.types.WSAPlayer]:n,[o.types.PS4]:n,[o.types.XboxOne]:n,[o.types.tvOS]:n,[o.types.Switch]:n,[o.types.Lumin]:n,[o.types.BJM]:n,[o.types.Stadia]:n,[o.types.Facebook]:u,[o.types.NoTarget]:e,[o.types.Test]:e}}get tag(){return Gw(`${this.version}-${this.builderPlatform}`,"-")}get image(){return Hw(`${this.repository}/${this.name}`,"/")}toString(){const{image:e,tag:r}=this;return`${e}:${r}`}}var WS=image_tag_ImageTag;class docker_Docker{static async build(e,r=false){const{path:t,dockerfile:n,baseImage:i}=e;const{version:a,platform:o}=i;const u=new WS({repository:"",name:"unity-builder",version:a,platform:o});const s=`docker build ${t} --file ${n} --build-arg IMAGE=${i} --tag ${u}`;await Object(h.exec)(s,null,{silent:r});return u}static async run(e,r,t=false){const{version:n,workspace:i,platform:a,projectPath:o,buildName:u,buildPath:s,buildFile:f,buildMethod:c,customParameters:l}=r;const v=`docker run --workdir /github/workspace --rm --env UNITY_LICENSE --env UNITY_EMAIL --env UNITY_PASSWORD --env UNITY_SERIAL --env UNITY_VERSION=${n} --env PROJECT_PATH=${o} --env BUILD_TARGET=${a} --env BUILD_NAME=${u} --env BUILD_PATH=${s} --env BUILD_FILE=${f} --env BUILD_METHOD=${c} --env CUSTOM_PARAMETERS=${l} --env HOME=/github/home --env GITHUB_REF --env GITHUB_SHA --env GITHUB_REPOSITORY --env GITHUB_ACTOR --env GITHUB_WORKFLOW --env GITHUB_HEAD_REF --env GITHUB_BASE_REF --env GITHUB_EVENT_NAME --env GITHUB_WORKSPACE=/github/workspace --env GITHUB_ACTION --env GITHUB_EVENT_PATH --env RUNNER_OS --env RUNNER_TOOL_CACHE --env RUNNER_TEMP --env RUNNER_WORKSPACE --volume "/var/run/docker.sock":"/var/run/docker.sock" --volume "/home/runner/work/_temp/_github_home":"/github/home" --volume "/home/runner/work/_temp/_github_workflow":"/github/workflow" --volume "${i}":"/github/workspace" ${e}`;await Object(h.exec)(v,null,{silent:t})}}var CS=docker_Docker;const PS=t(470);async function src_action(){a.checkCompatibility();p.verify();const{dockerfile:e,workspace:r,builderFolder:t}=a;const n=u.create(v.getFromUser());const i=new WS(n);const o=await CS.build({path:t,dockerfile:e,baseImage:i});await CS.run(o,{workspace:r,...n})}src_action().catch(e=>{PS.setFailed(e.message)})},431:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:true});const n=t(87);function issueCommand(e,r,t){const i=new Command(e,r,t);process.stdout.write(i.toString()+n.EOL)}r.issueCommand=issueCommand;function issue(e,r=""){issueCommand(e,{},r)}r.issue=issue;const i="::";class Command{constructor(e,r,t){if(!e){e="missing.command"}this.command=e;this.properties=r;this.message=t}toString(){let e=i+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const t=this.properties[r];if(t){e+=`${r}=${escape(`${t||""}`)},`}}}}e+=i;const r=`${this.message||""}`;e+=escapeData(r);return e}}function escapeData(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escape(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")}},470:function(e,r,t){"use strict";var n=this&&this.__awaiter||function(e,r,t,n){function adopt(e){return e instanceof t?e:new t(function(r){r(e)})}return new(t||(t=Promise))(function(t,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});const i=t(431);const a=t(87);const o=t(622);var u;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(u=r.ExitCode||(r.ExitCode={}));function exportVariable(e,r){process.env[e]=r;i.issueCommand("set-env",{name:e},r)}r.exportVariable=exportVariable;function setSecret(e){i.issueCommand("add-mask",{},e)}r.setSecret=setSecret;function addPath(e){i.issueCommand("add-path",{},e);process.env["PATH"]=`${e}${o.delimiter}${process.env["PATH"]}`}r.addPath=addPath;function getInput(e,r){const t=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(r&&r.required&&!t){throw new Error(`Input required and not supplied: ${e}`)}return t.trim()}r.getInput=getInput;function setOutput(e,r){i.issueCommand("set-output",{name:e},r)}r.setOutput=setOutput;function setFailed(e){process.exitCode=u.Failure;error(e)}r.setFailed=setFailed;function debug(e){i.issueCommand("debug",{},e)}r.debug=debug;function error(e){i.issue("error",e)}r.error=error;function warning(e){i.issue("warning",e)}r.warning=warning;function info(e){process.stdout.write(e+a.EOL)}r.info=info;function startGroup(e){i.issue("group",e)}r.startGroup=startGroup;function endGroup(){i.issue("endgroup")}r.endGroup=endGroup;function group(e,r){return n(this,void 0,void 0,function*(){startGroup(e);let t;try{t=yield r()}finally{endGroup()}return t})}r.group=group;function saveState(e,r){i.issueCommand("save-state",{name:e},r)}r.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}r.getState=getState},614:function(e){e.exports=require("events")},622:function(e){e.exports=require("path")},669:function(e){e.exports=require("util")},672:function(e,r,t){"use strict";var n=this&&this.__awaiter||function(e,r,t,n){function adopt(e){return e instanceof t?e:new t(function(r){r(e)})}return new(t||(t=Promise))(function(t,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())})};var i;Object.defineProperty(r,"__esModule",{value:true});const a=t(357);const o=t(747);const u=t(622);i=o.promises,r.chmod=i.chmod,r.copyFile=i.copyFile,r.lstat=i.lstat,r.mkdir=i.mkdir,r.readdir=i.readdir,r.readlink=i.readlink,r.rename=i.rename,r.rmdir=i.rmdir,r.stat=i.stat,r.symlink=i.symlink,r.unlink=i.unlink;r.IS_WINDOWS=process.platform==="win32";function exists(e){return n(this,void 0,void 0,function*(){try{yield r.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true})}r.exists=exists;function isDirectory(e,t=false){return n(this,void 0,void 0,function*(){const n=t?yield r.stat(e):yield r.lstat(e);return n.isDirectory()})}r.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(r.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}r.isRooted=isRooted;function mkdirP(e,t=1e3,i=1){return n(this,void 0,void 0,function*(){a.ok(e,"a path argument must be provided");e=u.resolve(e);if(i>=t)return r.mkdir(e);try{yield r.mkdir(e);return}catch(n){switch(n.code){case"ENOENT":{yield mkdirP(u.dirname(e),t,i+1);yield r.mkdir(e);return}default:{let t;try{t=yield r.stat(e)}catch(e){throw n}if(!t.isDirectory())throw n}}}})}r.mkdirP=mkdirP;function tryGetExecutablePath(e,t){return n(this,void 0,void 0,function*(){let n=undefined;try{n=yield r.stat(e)}catch(r){if(r.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${r}`)}}if(n&&n.isFile()){if(r.IS_WINDOWS){const r=u.extname(e).toUpperCase();if(t.some(e=>e.toUpperCase()===r)){return e}}else{if(isUnixExecutable(n)){return e}}}const i=e;for(const a of t){e=i+a;n=undefined;try{n=yield r.stat(e)}catch(r){if(r.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${r}`)}}if(n&&n.isFile()){if(r.IS_WINDOWS){try{const t=u.dirname(e);const n=u.basename(e).toUpperCase();for(const i of yield r.readdir(t)){if(n===i.toUpperCase()){e=u.join(t,i);break}}}catch(r){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${r}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""})}r.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(r.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}},747:function(e){e.exports=require("fs")},986:function(e,r,t){"use strict";var n=this&&this.__awaiter||function(e,r,t,n){function adopt(e){return e instanceof t?e:new t(function(r){r(e)})}return new(t||(t=Promise))(function(t,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});const i=t(9);function exec(e,r,t){return n(this,void 0,void 0,function*(){const n=i.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const a=n[0];r=n.slice(1).concat(r||[]);const o=new i.ToolRunner(a,r,t);return o.exec()})}r.exec=exec}},function(e){"use strict";!function(){e.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}}();!function(){var r=Object.prototype.hasOwnProperty;e.d=function(e,t,n){if(!r.call(e,t)){Object.defineProperty(e,t,{enumerable:true,get:n})}}}();!function(){e.t=function(r,t){if(t&1)r=this(r);if(t&8)return r;if(t&4&&typeof r==="object"&&r&&r.__esModule)return r;var n=Object.create(null);e.r(n);Object.defineProperty(n,"default",{enumerable:true,value:r});if(t&2&&typeof r!="string")for(var i in r)e.d(n,i,function(e){return r[e]}.bind(null,i));return n}}();!function(){e.n=function(r){var t=r&&r.__esModule?function getDefault(){return r["default"]}:function getModuleExports(){return r};e.d(t,"a",t);return t}}();!function(){e.hmd=function(e){e=Object.create(e);if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function(){return e.i}});Object.defineProperty(e,"exports",{enumerable:true,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}});return e}}()}); \ No newline at end of file +module.exports=function(e,r){"use strict";var t={};function __webpack_require__(r){if(t[r]){return t[r].exports}var n=t[r]={i:r,l:false,exports:{}};e[r].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(384)}r(__webpack_require__);return startup()}({1:function(e,r,t){"use strict";var n=this&&this.__awaiter||function(e,r,t,n){function adopt(e){return e instanceof t?e:new t(function(r){r(e)})}return new(t||(t=Promise))(function(t,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});const i=t(129);const a=t(622);const o=t(669);const u=t(672);const s=o.promisify(i.exec);function cp(e,r,t={}){return n(this,void 0,void 0,function*(){const{force:n,recursive:i}=readCopyOptions(t);const o=(yield u.exists(r))?yield u.stat(r):null;if(o&&o.isFile()&&!n){return}const s=o&&o.isDirectory()?a.join(r,a.basename(e)):r;if(!(yield u.exists(e))){throw new Error(`no such file or directory: ${e}`)}const f=yield u.stat(e);if(f.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,s,0,n)}}else{if(a.relative(e,s)===""){throw new Error(`'${s}' and '${e}' are the same file`)}yield copyFile(e,s,n)}})}r.cp=cp;function mv(e,r,t={}){return n(this,void 0,void 0,function*(){if(yield u.exists(r)){let n=true;if(yield u.isDirectory(r)){r=a.join(r,a.basename(e));n=yield u.exists(r)}if(n){if(t.force==null||t.force){yield rmRF(r)}else{throw new Error("Destination already exists")}}}yield mkdirP(a.dirname(r));yield u.rename(e,r)})}r.mv=mv;function rmRF(e){return n(this,void 0,void 0,function*(){if(u.IS_WINDOWS){try{if(yield u.isDirectory(e,true)){yield s(`rd /s /q "${e}"`)}else{yield s(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield u.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let r=false;try{r=yield u.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(r){yield s(`rm -rf "${e}"`)}else{yield u.unlink(e)}}})}r.rmRF=rmRF;function mkdirP(e){return n(this,void 0,void 0,function*(){yield u.mkdirP(e)})}r.mkdirP=mkdirP;function which(e,r){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'tool' is required")}if(r){const r=yield which(e,false);if(!r){if(u.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}}try{const r=[];if(u.IS_WINDOWS&&process.env.PATHEXT){for(const e of process.env.PATHEXT.split(a.delimiter)){if(e){r.push(e)}}}if(u.isRooted(e)){const t=yield u.tryGetExecutablePath(e,r);if(t){return t}return""}if(e.includes("/")||u.IS_WINDOWS&&e.includes("\\")){return""}const t=[];if(process.env.PATH){for(const e of process.env.PATH.split(a.delimiter)){if(e){t.push(e)}}}for(const n of t){const t=yield u.tryGetExecutablePath(n+a.sep+e,r);if(t){return t}}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}})}r.which=which;function readCopyOptions(e){const r=e.force==null?true:e.force;const t=Boolean(e.recursive);return{force:r,recursive:t}}function cpDirRecursive(e,r,t,i){return n(this,void 0,void 0,function*(){if(t>=255)return;t++;yield mkdirP(r);const n=yield u.readdir(e);for(const a of n){const n=`${e}/${a}`;const o=`${r}/${a}`;const s=yield u.lstat(n);if(s.isDirectory()){yield cpDirRecursive(n,o,t,i)}else{yield copyFile(n,o,i)}}yield u.chmod(r,(yield u.stat(e)).mode)})}function copyFile(e,r,t){return n(this,void 0,void 0,function*(){if((yield u.lstat(e)).isSymbolicLink()){try{yield u.lstat(r);yield u.unlink(r)}catch(e){if(e.code==="EPERM"){yield u.chmod(r,"0666");yield u.unlink(r)}}const t=yield u.readlink(e);yield u.symlink(t,r,u.IS_WINDOWS?"junction":null)}else if(!(yield u.exists(r))||t){yield u.copyFile(e,r)}})}},9:function(e,r,t){"use strict";var n=this&&this.__awaiter||function(e,r,t,n){function adopt(e){return e instanceof t?e:new t(function(r){r(e)})}return new(t||(t=Promise))(function(t,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});const i=t(87);const a=t(614);const o=t(129);const u=t(622);const s=t(1);const f=t(672);const c=process.platform==="win32";class ToolRunner extends a.EventEmitter{constructor(e,r,t){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=r||[];this.options=t||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,r){const t=this._getSpawnFileName();const n=this._getSpawnArgs(e);let i=r?"":"[command]";if(c){if(this._isCmdFile()){i+=t;for(const e of n){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${t}"`;for(const e of n){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(t);for(const e of n){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=t;for(const e of n){i+=` ${e}`}}return i}_processLineBuffer(e,r,t){try{let n=r+e.toString();let a=n.indexOf(i.EOL);while(a>-1){const e=n.substring(0,a);t(e);n=n.substring(a+i.EOL.length);a=n.indexOf(i.EOL)}r=n}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){if(c){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(c){if(this._isCmdFile()){let r=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const t of this.args){r+=" ";r+=e.windowsVerbatimArguments?t:this._windowsQuoteCmdArg(t)}r+='"';return[r]}}return this.args}_endsWith(e,r){return e.endsWith(r)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const r=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let t=false;for(const n of e){if(r.some(e=>e===n)){t=true;break}}if(!t){return e}let n='"';let i=true;for(let r=e.length;r>0;r--){n+=e[r-1];if(i&&e[r-1]==="\\"){n+="\\"}else if(e[r-1]==='"'){i=true;n+='"'}else{i=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let r='"';let t=true;for(let n=e.length;n>0;n--){r+=e[n-1];if(t&&e[n-1]==="\\"){r+="\\"}else if(e[n-1]==='"'){t=true;r+="\\"}else{t=false}}r+='"';return r.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const r={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};r.outStream=e.outStream||process.stdout;r.errStream=e.errStream||process.stderr;return r}_getSpawnOptions(e,r){e=e||{};const t={};t.cwd=e.cwd;t.env=e.env;t["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){t.argv0=`"${r}"`}return t}exec(){return n(this,void 0,void 0,function*(){if(!f.isRooted(this.toolPath)&&(this.toolPath.includes("/")||c&&this.toolPath.includes("\\"))){this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield s.which(this.toolPath,true);return new Promise((e,r)=>{this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const t=this._cloneExecOptions(this.options);if(!t.silent&&t.outStream){t.outStream.write(this._getCommandString(t)+i.EOL)}const n=new ExecState(t,this.toolPath);n.on("debug",e=>{this._debug(e)});const a=this._getSpawnFileName();const u=o.spawn(a,this._getSpawnArgs(t),this._getSpawnOptions(this.options,a));const s="";if(u.stdout){u.stdout.on("data",e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!t.silent&&t.outStream){t.outStream.write(e)}this._processLineBuffer(e,s,e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}})})}const f="";if(u.stderr){u.stderr.on("data",e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!t.silent&&t.errStream&&t.outStream){const r=t.failOnStdErr?t.errStream:t.outStream;r.write(e)}this._processLineBuffer(e,f,e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}})})}u.on("error",e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()});u.on("exit",e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()});u.on("close",e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()});n.on("done",(t,n)=>{if(s.length>0){this.emit("stdline",s)}if(f.length>0){this.emit("errline",f)}u.removeAllListeners();if(t){r(t)}else{e(n)}})})})}}r.ToolRunner=ToolRunner;function argStringToArray(e){const r=[];let t=false;let n=false;let i="";function append(e){if(n&&e!=='"'){i+="\\"}i+=e;n=false}for(let a=0;a0){r.push(i);i=""}continue}append(o)}if(i.length>0){r.push(i.trim())}return r}r.argStringToArray=argStringToArray;class ExecState extends a.EventEmitter{constructor(e,r){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!r){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=r;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const r=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(r)}e._setResult()}}},87:function(e){e.exports=require("os")},129:function(e){e.exports=require("child_process")},357:function(e){e.exports=require("assert")},384:function(e,r,t){"use strict";t.r(r);var n=t(622);var i=t.n(n);class action_Action{static get supportedPlatforms(){return["linux"]}static get isRunningLocally(){return process.env.RUNNER_WORKSPACE===undefined}static get isRunningFromSource(){return i().basename(__dirname)==="model"}static get name(){return"unity-builder"}static get rootFolder(){if(action_Action.isRunningFromSource){return i().dirname(i().dirname(i().dirname(__filename)))}return i().dirname(i().dirname(__filename))}static get builderFolder(){return`${action_Action.rootFolder}/builder`}static get dockerfile(){return`${action_Action.builderFolder}/Dockerfile`}static get workspace(){return process.env.GITHUB_WORKSPACE}static checkCompatibility(){const e=process.platform;if(!action_Action.supportedPlatforms.includes(e)){throw new Error(`Currently ${e}-platform is not supported`)}}}var a=action_Action;class Platform{static get default(){return Platform.types.StandaloneWindows64}static get types(){return{StandaloneOSX:"StandaloneOSX",StandaloneWindows:"StandaloneWindows",StandaloneWindows64:"StandaloneWindows64",StandaloneLinux64:"StandaloneLinux64",iOS:"iOS",Android:"Android",WebGL:"WebGL",WSAPlayer:"WSAPlayer",PS4:"PS4",XboxOne:"XboxOne",tvOS:"tvOS",Switch:"Switch",Lumin:"Lumin",BJM:"BJM",Stadia:"Stadia",Facebook:"Facebook",NoTarget:"NoTarget",Test:"Test"}}static isWindows(e){switch(e){case Platform.types.StandaloneWindows:case Platform.types.StandaloneWindows64:return true;default:return false}}static isAndroid(e){switch(e){case Platform.types.Android:return true;default:return false}}}var o=Platform;class build_parameters_BuildParameters{static create(e){const{unityVersion:r,targetPlatform:t,projectPath:n,buildName:i,buildsPath:a,buildMethod:o,customParameters:u}=e;return{version:r,platform:t,projectPath:n,buildName:i,buildPath:`${a}/${t}`,buildFile:this.parseBuildFile(i,t),buildMethod:o,customParameters:u}}static parseBuildFile(e,r){if(o.isWindows(r)){return`${e}.exe`}if(o.isAndroid(r)){return`${e}.apk`}return e}}var u=build_parameters_BuildParameters;var s=t(747);var f=t.n(s);class Unity{static get libraryFolder(){return"Library"}}var c=Unity;const l=t(470);class input_Input{static getFromUser(){const e=l.getInput("unityVersion");const r=l.getInput("targetPlatform")||o.default;const t=l.getInput("projectPath")||".";const n=l.getInput("buildName")||r;const i=l.getInput("buildsPath")||"build";const a=l.getInput("buildMethod");const u=l.getInput("customParameters")||"";const s=t.replace(/\/$/,"");return{unityVersion:e,targetPlatform:r,projectPath:s,buildName:n,buildsPath:i,buildMethod:a,customParameters:u}}}var v=input_Input;class project_Project{static get relativePath(){const{projectPath:e}=v.getFromUser();return`${e}`}static get absolutePath(){const{workspace:e}=a;return`${e}/${this.relativePath}`}static get libraryFolder(){return`${this.relativePath}/${c.libraryFolder}`}}var d=project_Project;class cache_Cache{static verify(){if(!f().existsSync(d.libraryFolder)){this.notifyAboutCachingPossibility()}}static notifyAboutCachingPossibility(){if(a.isRunningLocally){return}console.log(`\n Library folder does not exist.\n Consider setting up caching to speed up your workflow\n If this is not your first build.`)}}var p=cache_Cache;var h=t(986);var y=typeof global=="object"&&global&&global.Object===Object&&global;var g=y;var b=typeof self=="object"&&self&&self.Object===Object&&self;var m=g||b||Function("return this")();var _=m;var w=_.Symbol;var x=w;var S=Object.prototype;var O=S.hasOwnProperty;var E=S.toString;var I=x?x.toStringTag:undefined;function getRawTag(e){var r=O.call(e,I),t=e[I];try{e[I]=undefined;var n=true}catch(e){}var i=E.call(e);if(n){if(r){e[I]=t}else{delete e[I]}}return i}var j=getRawTag;var A=Object.prototype;var R=A.toString;function objectToString(e){return R.call(e)}var k=objectToString;var W="[object Null]",C="[object Undefined]";var P=x?x.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?C:W}return P&&P in Object(e)?j(e):k(e)}var M=baseGetTag;function isObjectLike(e){return e!=null&&typeof e=="object"}var T=isObjectLike;var B="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||T(e)&&M(e)==B}var D=isSymbol;var L=0/0;function baseToNumber(e){if(typeof e=="number"){return e}if(D(e)){return L}return+e}var $=baseToNumber;function arrayMap(e,r){var t=-1,n=e==null?0:e.length,i=Array(n);while(++t0){if(++r>=hr){return arguments[0]}}else{r=0}return e.apply(undefined,arguments)}}var br=shortOut;var mr=br(Le);var _r=mr;var wr=/\{\n\/\* \[wrapped with (.+)\] \*/,xr=/,? & /;function getWrapDetails(e){var r=e.match(wr);return r?r[1].split(xr):[]}var Sr=getWrapDetails;var Or=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function insertWrapDetails(e,r){var t=r.length;if(!t){return e}var n=t-1;r[n]=(t>1?"& ":"")+r[n];r=r.join(t>2?", ":" ");return e.replace(Or,"{\n/* [wrapped with "+r+"] */\n")}var Er=insertWrapDetails;function constant(e){return function(){return e}}var Ir=constant;var jr=function(){try{var e=Ce(Object,"defineProperty");e({},"",{});return e}catch(e){}}();var Ar=jr;var Rr=!Ar?ce:function(e,r){return Ar(e,"toString",{configurable:true,enumerable:false,value:Ir(r),writable:true})};var kr=Rr;var Wr=br(kr);var Cr=Wr;function arrayEach(e,r){var t=-1,n=e==null?0:e.length;while(++t-1}var Lr=arrayIncludes;var $r=1,Nr=2,Fr=8,zr=16,Ur=32,qr=64,Gr=128,Kr=256,Hr=512;var Zr=[["ary",Gr],["bind",$r],["bindKey",Nr],["curry",Fr],["curryRight",zr],["flip",Hr],["partial",Ur],["partialRight",qr],["rearg",Kr]];function updateWrapDetails(e,r){Pr(Zr,function(t){var n="_."+t[0];if(r&t[1]&&!Lr(e,n)){e.push(n)}});return e.sort()}var Xr=updateWrapDetails;function setWrapToString(e,r,t){var n=r+"";return Cr(e,Er(n,Xr(Sr(n),t)))}var Yr=setWrapToString;var Jr=1,Qr=2,Vr=4,et=8,rt=32,tt=64;function createRecurry(e,r,t,n,i,a,o,u,s,f){var c=r&et,l=c?o:undefined,v=c?undefined:o,d=c?a:undefined,p=c?undefined:a;r|=c?rt:tt;r&=~(c?tt:rt);if(!(r&Vr)){r&=~(Jr|Qr)}var h=[e,r,i,d,l,p,v,u,s,f];var y=t.apply(undefined,h);if(pr(e)){_r(y,h)}y.placeholder=n;return Yr(y,e,r)}var nt=createRecurry;function getHolder(e){var r=e;return r.placeholder}var it=getHolder;var at=9007199254740991;var ot=/^(?:0|[1-9]\d*)$/;function isIndex(e,r){var t=typeof e;r=r==null?at:r;return!!r&&(t=="number"||t!="symbol"&&ot.test(e))&&(e>-1&&e%1==0&&e1){g.reverse()}if(c&&s-1&&e%1==0&&e<=Jt}var Qt=isLength;function isArrayLike(e){return e!=null&&Qt(e.length)&&!he(e)}var Vt=isArrayLike;function isIterateeCall(e,r,t){if(!Y(t)){return false}var n=typeof r;if(n=="number"?Vt(t)&&ut(r,t.length):n=="string"&&r in t){return Ut(t[r],e)}return false}var en=isIterateeCall;function createAssigner(e){return Yt(function(r,t){var n=-1,i=t.length,a=i>1?t[i-1]:undefined,o=i>2?t[2]:undefined;a=e.length>3&&typeof a=="function"?(i--,a):undefined;if(o&&en(t[0],t[1],o)){a=i<3?undefined:a;i=1}r=Object(r);while(++n-1}var Ji=listCacheHas;function listCacheSet(e,r){var t=this.__data__,n=Ki(t,e);if(n<0){++this.size;t.push([e,r])}else{t[n][1]=r}return this}var Qi=listCacheSet;function ListCache(e){var r=-1,t=e==null?0:e.length;this.clear();while(++r0&&t(u)){if(r>1){baseFlatten(u,r-1,t,n,i)}else{Ea(i,u)}}else if(!n){i[i.length]=u}}return i}var Aa=baseFlatten;function flatten(e){var r=e==null?0:e.length;return r?Aa(e,1):[]}var Ra=flatten;function flatRest(e){return Cr(Xt(e,undefined,Ra),e+"")}var ka=flatRest;var Wa=ka(Oa);var Ca=Wa;var Pa=oi(Object.getPrototypeOf,Object);var Ma=Pa;var Ta="[object Object]";var Ba=Function.prototype,Da=Object.prototype;var La=Ba.toString;var $a=Da.hasOwnProperty;var Na=La.call(Object);function isPlainObject(e){if(!T(e)||M(e)!=Ta){return false}var r=Ma(e);if(r===null){return true}var t=$a.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&La.call(t)==Na}var Fa=isPlainObject;var za="[object DOMException]",Ua="[object Error]";function isError(e){if(!T(e)){return false}var r=M(e);return r==Ua||r==za||typeof e.message=="string"&&typeof e.name=="string"&&!Fa(e)}var qa=isError;var Ga=Yt(function(e,r){try{return Ge(e,undefined,r)}catch(e){return qa(e)?e:new Error(e)}});var Ka=Ga;var Ha="Expected a function";function before(e,r){var t;if(typeof r!="function"){throw new TypeError(Ha)}e=ue(e);return function(){if(--e>0){t=r.apply(this,arguments)}if(e<=1){r=undefined}return t}}var Za=before;var Xa=1,Ya=32;var Ja=Yt(function(e,r,t){var n=Xa;if(t.length){var i=lt(t,it(Ja));n|=Ya}return $t(e,n,r,t,i)});Ja.placeholder={};var Qa=Ja;var Va=ka(function(e,r){Pr(r,function(r){r=wa(r);zt(e,r,Qa(e[r],e))});return e});var eo=Va;var ro=1,to=2,no=32;var io=Yt(function(e,r,t){var n=ro|to;if(t.length){var i=lt(t,it(io));n|=no}return $t(r,n,e,t,i)});io.placeholder={};var ao=io;function baseSlice(e,r,t){var n=-1,i=e.length;if(r<0){r=-r>i?0:i+r}t=t>i?i:t;if(t<0){t+=i}i=r>t?0:t-r>>>0;r>>>=0;var a=Array(i);while(++n=n?e:oo(e,r,t)}var uo=castSlice;var so="\\ud800-\\udfff",fo="\\u0300-\\u036f",co="\\ufe20-\\ufe2f",lo="\\u20d0-\\u20ff",vo=fo+co+lo,po="\\ufe0e\\ufe0f";var ho="\\u200d";var yo=RegExp("["+ho+so+vo+po+"]");function hasUnicode(e){return yo.test(e)}var go=hasUnicode;function asciiToArray(e){return e.split("")}var bo=asciiToArray;var mo="\\ud800-\\udfff",_o="\\u0300-\\u036f",wo="\\ufe20-\\ufe2f",xo="\\u20d0-\\u20ff",So=_o+wo+xo,Oo="\\ufe0e\\ufe0f";var Eo="["+mo+"]",Io="["+So+"]",jo="\\ud83c[\\udffb-\\udfff]",Ao="(?:"+Io+"|"+jo+")",Ro="[^"+mo+"]",ko="(?:\\ud83c[\\udde6-\\uddff]){2}",Wo="[\\ud800-\\udbff][\\udc00-\\udfff]",Co="\\u200d";var Po=Ao+"?",Mo="["+Oo+"]?",To="(?:"+Co+"(?:"+[Ro,ko,Wo].join("|")+")"+Mo+Po+")*",Bo=Mo+Po+To,Do="(?:"+[Ro+Io+"?",Io,ko,Wo,Eo].join("|")+")";var Lo=RegExp(jo+"(?="+jo+")|"+Do+Bo,"g");function unicodeToArray(e){return e.match(Lo)||[]}var $o=unicodeToArray;function stringToArray(e){return go(e)?$o(e):bo(e)}var No=stringToArray;function createCaseFirst(e){return function(r){r=ba(r);var t=go(r)?No(r):undefined;var n=t?t[0]:r.charAt(0);var i=t?uo(t,1).join(""):r.slice(1);return n[e]()+i}}var Fo=createCaseFirst;var zo=Fo("toUpperCase");var Uo=zo;function capitalize(e){return Uo(ba(e).toLowerCase())}var qo=capitalize;function arrayReduce(e,r,t,n){var i=-1,a=e==null?0:e.length;if(n&&a){t=e[++i]}while(++i=r?e:r}}return e}var ls=baseClamp;function clamp(e,r,t){if(t===undefined){t=r;r=undefined}if(t!==undefined){t=ne(t);t=t===t?t:0}if(r!==undefined){r=ne(r);r=r===r?r:0}return ls(ne(e),r,t)}var vs=clamp;function stackClear(){this.__data__=new Vi;this.size=0}var ds=stackClear;function stackDelete(e){var r=this.__data__,t=r["delete"](e);this.size=r.size;return t}var ps=stackDelete;function stackGet(e){return this.__data__.get(e)}var hs=stackGet;function stackHas(e){return this.__data__.has(e)}var ys=stackHas;var gs=200;function stackSet(e,r){var t=this.__data__;if(t instanceof Vi){var n=t.__data__;if(!ra||n.lengthu)){return false}var f=a.get(e);if(f&&a.get(r)){return f==r}var c=-1,l=true,v=t&Yc?new Kc:undefined;a.set(e,r);a.set(r,e);while(++c=r||t<0||l&&n>=a}function timerExpired(){var e=bv();if(shouldInvoke(e)){return trailingEdge(e)}u=setTimeout(timerExpired,remainingWait(e))}function trailingEdge(e){u=undefined;if(v&&n){return invokeFunc(e)}n=i=undefined;return o}function cancel(){if(u!==undefined){clearTimeout(u)}f=0;n=s=i=u=undefined}function flush(){return u===undefined?o:trailingEdge(bv())}function debounced(){var e=bv(),t=shouldInvoke(e);n=arguments;i=this;s=e;if(t){if(u===undefined){return leadingEdge(s)}if(l){clearTimeout(u);u=setTimeout(timerExpired,r);return invokeFunc(s)}}if(u===undefined){u=setTimeout(timerExpired,r)}return o}debounced.cancel=cancel;debounced.flush=flush;return debounced}var xv=debounce;function defaultTo(e,r){return e==null||e!==e?r:e}var Sv=defaultTo;var Ov=Object.prototype;var Ev=Ov.hasOwnProperty;var Iv=Yt(function(e,r){e=Object(e);var t=-1;var n=r.length;var i=n>2?r[2]:undefined;if(i&&en(r[0],r[1],i)){n=1}while(++t=Kv){a=Zc;o=false;r=new Kc(r)}e:while(++i=0&&e.slice(t,i)==r}var gd=endsWith;function baseToPairs(e,r){return N(r,function(r){return[r,e[r]]})}var bd=baseToPairs;function setToPairs(e){var r=-1,t=Array(e.size);e.forEach(function(e){t[++r]=[e,e]});return t}var md=setToPairs;var _d="[object Map]",wd="[object Set]";function createToPairs(e){return function(r){var t=sf(r);if(t==_d){return Qc(r)}if(t==wd){return md(r)}return bd(r,e(r))}}var xd=createToPairs;var Sd=xd(vi);var Od=Sd;var Ed=xd(wi);var Id=Ed;var jd={"&":"&","<":"<",">":">",'"':""","'":"'"};var Ad=Ko(jd);var Rd=Ad;var kd=/[&<>"']/g,Wd=RegExp(kd.source);function escape_escape(e){e=ba(e);return e&&Wd.test(e)?e.replace(kd,Rd):e}var Cd=escape_escape;var Pd=/[\\^$.*+?()[\]{}|]/g,Md=RegExp(Pd.source);function escapeRegExp(e){e=ba(e);return e&&Md.test(e)?e.replace(Pd,"\\$&"):e}var Td=escapeRegExp;function arrayEvery(e,r){var t=-1,n=e==null?0:e.length;while(++ti?0:i+t}n=n===undefined||n>i?i:ue(n);if(n<0){n+=i}n=t>n?0:Nd(n);while(t-1?i[a?r[o]:o]:undefined}}var Gd=createFind;var Kd=Math.max;function findIndex(e,r,t){var n=e==null?0:e.length;if(!n){return-1}var i=t==null?0:ue(t);if(i<0){i=Kd(n+i,0)}return Mr(e,ql(r,3),i)}var Hd=findIndex;var Zd=Gd(Hd);var Xd=Zd;function baseFindKey(e,r,t){var n;t(e,function(e,t,i){if(r(e,t,i)){n=t;return false}});return n}var Yd=baseFindKey;function findKey(e,r){return Yd(e,ql(r,3),tv)}var Jd=findKey;var Qd=Math.max,Vd=Math.min;function findLastIndex(e,r,t){var n=e==null?0:e.length;if(!n){return-1}var i=n-1;if(t!==undefined){i=ue(t);i=t<0?Qd(n+i,0):Vd(i,n-1)}return Mr(e,ql(r,3),i,true)}var ep=findLastIndex;var rp=Gd(ep);var tp=rp;function findLastKey(e,r){return Yd(e,ql(r,3),dd)}var np=findLastKey;function head(e){return e&&e.length?e[0]:undefined}var ip=head;function baseMap(e,r){var t=-1,n=Vt(e)?Array(e.length):[];av(e,function(e,i,a){n[++t]=r(e,i,a)});return n}var ap=baseMap;function map_map(e,r){var t=z(e)?N:ap;return t(e,ql(r,3))}var op=map_map;function flatMap(e,r){return Aa(op(e,r),1)}var up=flatMap;var sp=1/0;function flatMapDeep(e,r){return Aa(op(e,r),sp)}var fp=flatMapDeep;function flatMapDepth(e,r,t){t=t===undefined?1:ue(t);return Aa(op(e,r),t)}var cp=flatMapDepth;var lp=1/0;function flattenDeep(e){var r=e==null?0:e.length;return r?Aa(e,lp):[]}var vp=flattenDeep;function flattenDepth(e,r){var t=e==null?0:e.length;if(!t){return[]}r=r===undefined?1:ue(r);return Aa(e,r)}var dp=flattenDepth;var pp=512;function flip(e){return $t(e,pp)}var hp=flip;var yp=is("floor");var gp=yp;var bp="Expected a function";var mp=8,_p=32,wp=128,xp=256;function createFlow(e){return ka(function(r){var t=r.length,n=t,i=sr.prototype.thru;if(e){r.reverse()}while(n--){var a=r[n];if(typeof a!="function"){throw new TypeError(bp)}if(i&&!o&&ur(a)=="wrapper"){var o=new sr([],true)}}n=o?n:t;while(++nr}var Np=baseGt;function createRelationalOperation(e){return function(r,t){if(!(typeof r=="string"&&typeof t=="string")){r=ne(r);t=ne(t)}return e(r,t)}}var Fp=createRelationalOperation;var zp=Fp(Np);var Up=zp;var qp=Fp(function(e,r){return e>=r});var Gp=qp;var Kp=Object.prototype;var Hp=Kp.hasOwnProperty;function baseHas(e,r){return e!=null&&Hp.call(e,r)}var Zp=baseHas;function has(e,r){return e!=null&&Bl(e,r,Zp)}var Xp=has;var Yp=Math.max,Jp=Math.min;function baseInRange(e,r,t){return e>=Jp(r,t)&&e-1:!!i&&Dr(e,r,t)>-1}var ah=includes_includes;var oh=Math.max;function indexOf_indexOf(e,r,t){var n=e==null?0:e.length;if(!n){return-1}var i=t==null?0:ue(t);if(i<0){i=oh(n+i,0)}return Dr(e,r,i)}var uh=indexOf_indexOf;function initial(e){var r=e==null?0:e.length;return r?oo(e,0,-1):[]}var sh=initial;var fh=Math.min;function baseIntersection(e,r,t){var n=t?Gv:Lr,i=e[0].length,a=e.length,o=a,u=Array(a),s=Infinity,f=[];while(o--){var c=e[o];if(o&&r){c=N(c,Hn(r))}s=fh(c.length,s);u[o]=!t&&(r||i>=120&&c.length>=120)?new Kc(o&&c):undefined}c=e[0];var l=-1,v=u[0];e:while(++l=-_y&&e<=_y}var wy=isSafeInteger;function isUndefined(e){return e===undefined}var xy=isUndefined;var Sy="[object WeakMap]";function isWeakMap(e){return T(e)&&sf(e)==Sy}var Oy=isWeakMap;var Ey="[object WeakSet]";function isWeakSet(e){return T(e)&&M(e)==Ey}var Iy=isWeakSet;var jy=1;function iteratee_iteratee(e){return ql(typeof e=="function"?e:Rc(e,jy))}var Ay=iteratee_iteratee;var Ry=Array.prototype;var ky=Ry.join;function join(e,r){return e==null?"":ky.call(e,r)}var Wy=join;var Cy=Qu(function(e,r,t){return e+(t?"-":"")+r.toLowerCase()});var Py=Cy;var My=uv(function(e,r,t){zt(e,t,r)});var Ty=My;function strictLastIndexOf(e,r,t){var n=t+1;while(n--){if(e[n]===r){return n}}return n}var By=strictLastIndexOf;var Dy=Math.max,Ly=Math.min;function lastIndexOf(e,r,t){var n=e==null?0:e.length;if(!n){return-1}var i=n;if(t!==undefined){i=ue(t);i=i<0?Dy(n+i,0):Ly(i,n-1)}return r===r?By(e,r,i):Mr(e,Tr,i,true)}var $y=lastIndexOf;var Ny=Qu(function(e,r,t){return e+(t?" ":"")+r.toLowerCase()});var Fy=Ny;var zy=Fo("toLowerCase");var Uy=zy;function baseLt(e,r){return e=this.__values__.length,r=e?undefined:this.__values__[this.__index__++];return{done:e,value:r}}var jg=wrapperNext;function baseNth(e,r){var t=e.length;if(!t){return}r+=r<0?t:0;return ut(r,t)?e[r]:undefined}var Ag=baseNth;function nth(e,r){return e&&e.length?Ag(e,ue(r)):undefined}var Rg=nth;function nthArg(e){e=ue(e);return Yt(function(r){return Ag(r,e)})}var kg=nthArg;function baseUnset(e,r){r=ma(r,e);e=Rh(e,r);return e==null||delete e[wa(Yv(r))]}var Wg=baseUnset;function customOmitClone(e){return Fa(e)?undefined:e}var Cg=customOmitClone;var Pg=1,Mg=2,Tg=4;var Bg=ka(function(e,r){var t={};if(e==null){return t}var n=false;r=N(r,function(r){r=ma(r,e);n||(n=r.length>1);return r});Ht(e,zs(e),t);if(n){t=Rc(t,Pg|Mg|Tg,Cg)}var i=r.length;while(i--){Wg(t,r[i])}return t});var Dg=Bg;function baseSet(e,r,t,n){if(!Y(e)){return e}r=ma(r,e);var i=-1,a=r.length,o=a-1,u=e;while(u!=null&&++ir||a&&o&&s&&!u&&!f||n&&o&&s||!t&&s||!i){return 1}if(!n&&!a&&!f&&e=u){return s}var f=t[n];return s*(f=="desc"?-1:1)}}return e.index-r.index}var Gg=compareMultiple;function baseOrderBy(e,r,t){var n=-1;r=N(r.length?r:[ce],Hn(ql));var i=ap(e,function(e,t,i){var a=N(r,function(r){return r(e)});return{criteria:a,index:++n,value:e}});return Ug(i,function(e,r){return Gg(e,r,t)})}var Kg=baseOrderBy;function orderBy(e,r,t,n){if(e==null){return[]}if(!z(r)){r=r==null?[]:[r]}t=n?undefined:t;if(!z(t)){t=t==null?[]:[t]}return Kg(e,r,t)}var Hg=orderBy;function createOver(e){return ka(function(r){r=N(r,Hn(ql));return Yt(function(t){var n=this;return e(r,function(e){return Ge(e,n,t)})})})}var Zg=createOver;var Xg=Zg(N);var Yg=Xg;var Jg=Yt;var Qg=Jg;var Vg=Math.min;var eb=Qg(function(e,r){r=r.length==1&&z(r[0])?N(r[0],Hn(ql)):N(Aa(r,1),Hn(ql));var t=r.length;return Yt(function(n){var i=-1,a=Vg(n.length,t);while(++iob){return t}do{if(r%2){t+=e}r=ub(r/2);if(r){e+=e}}while(r);return t}var sb=baseRepeat;var fb=Fl("length");var cb=fb;var lb="\\ud800-\\udfff",vb="\\u0300-\\u036f",db="\\ufe20-\\ufe2f",pb="\\u20d0-\\u20ff",hb=vb+db+pb,yb="\\ufe0e\\ufe0f";var gb="["+lb+"]",bb="["+hb+"]",mb="\\ud83c[\\udffb-\\udfff]",_b="(?:"+bb+"|"+mb+")",wb="[^"+lb+"]",xb="(?:\\ud83c[\\udde6-\\uddff]){2}",Sb="[\\ud800-\\udbff][\\udc00-\\udfff]",Ob="\\u200d";var Eb=_b+"?",Ib="["+yb+"]?",jb="(?:"+Ob+"(?:"+[wb,xb,Sb].join("|")+")"+Ib+Eb+")*",Ab=Ib+Eb+jb,Rb="(?:"+[wb+bb+"?",bb,xb,Sb,gb].join("|")+")";var kb=RegExp(mb+"(?="+mb+")|"+Rb+Ab,"g");function unicodeSize(e){var r=kb.lastIndex=0;while(kb.test(e)){++r}return r}var Wb=unicodeSize;function stringSize(e){return go(e)?Wb(e):cb(e)}var Cb=stringSize;var Pb=Math.ceil;function createPadding(e,r){r=r===undefined?" ":K(r);var t=r.length;if(t<2){return t?sb(r,e):r}var n=sb(r,Pb(e/Cb(r)));return go(r)?uo(No(n),0,e).join(""):n.slice(0,e)}var Mb=createPadding;var Tb=Math.ceil,Bb=Math.floor;function pad(e,r,t){e=ba(e);r=ue(r);var n=r?Cb(e):0;if(!r||n>=r){return e}var i=(r-n)/2;return Mb(Bb(i),t)+e+Mb(Tb(i),t)}var Db=pad;function padEnd(e,r,t){e=ba(e);r=ue(r);var n=r?Cb(e):0;return r&&n-1){if(u!==e){im.call(u,s,1)}im.call(e,s,1)}}return e}var am=basePullAll;function pullAll(e,r){return e&&e.length&&r&&r.length?am(e,r):e}var om=pullAll;var um=Yt(om);var sm=um;function pullAllBy(e,r,t){return e&&e.length&&r&&r.length?am(e,r,ql(t,2)):e}var fm=pullAllBy;function pullAllWith(e,r,t){return e&&e.length&&r&&r.length?am(e,r,undefined,t):e}var cm=pullAllWith;var lm=Array.prototype;var vm=lm.splice;function basePullAt(e,r){var t=e?r.length:0,n=t-1;while(t--){var i=r[t];if(t==n||i!==a){var a=i;if(ut(i)){vm.call(e,i,1)}else{Wg(e,i)}}}return e}var dm=basePullAt;var pm=ka(function(e,r){var t=e==null?0:e.length,n=Oa(e,r);dm(e,N(r,function(e){return ut(e,t)?+e:e}).sort(qg));return n});var hm=pm;var ym=Math.floor,gm=Math.random;function baseRandom(e,r){return e+ym(gm()*(r-e+1))}var bm=baseRandom;var mm=parseFloat;var _m=Math.min,wm=Math.random;function random(e,r,t){if(t&&typeof t!="boolean"&&en(e,r,t)){r=t=undefined}if(t===undefined){if(typeof r=="boolean"){t=r;r=undefined}else if(typeof e=="boolean"){t=e;e=undefined}}if(e===undefined&&r===undefined){e=0;r=1}else{e=oe(e);if(r===undefined){r=e;e=0}else{r=oe(r)}}if(e>r){var n=e;e=r;r=n}if(t||e%1||r%1){var i=wm();return _m(e+i*(r-e+mm("1e-"+((i+"").length-1))),r)}return bm(e,r)}var xm=random;var Sm=Math.ceil,Om=Math.max;function baseRange(e,r,t,n){var i=-1,a=Om(Sm((r-e)/(t||1)),0),o=Array(a);while(a--){o[n?a:++i]=e;e+=t}return o}var Em=baseRange;function createRange(e){return function(r,t,n){if(n&&typeof n!="number"&&en(r,t,n)){t=n=undefined}r=oe(r);if(t===undefined){t=r;r=0}else{t=oe(t)}n=n===undefined?r1&&en(e,r[0],r[1])){r=[]}else if(t>2&&en(r[0],r[1],r[2])){r=[r[0]]}return Kg(e,Aa(r,1),[])});var g_=y_;var b_=4294967295,m_=b_-1;var __=Math.floor,w_=Math.min;function baseSortedIndexBy(e,r,t,n){r=t(r);var i=0,a=e==null?0:e.length,o=r!==r,u=r===null,s=D(r),f=r===undefined;while(i>>1;function baseSortedIndex(e,r,t){var n=0,i=e==null?n:e.length;if(typeof r=="number"&&r===r&&i<=O_){while(n>>1,o=e[a];if(o!==null&&!D(o)&&(t?o<=r:o>>0;if(!t){return[]}e=ba(e);if(e&&(typeof r=="string"||r!=null&&!my(r))){r=K(r);if(!r&&go(e)){return uo(No(e),0,t)}}return e.split(r,t)}var B_=split;var D_="Expected a function";var L_=Math.max;function spread(e,r){if(typeof e!="function"){throw new TypeError(D_)}r=r==null?0:L_(ue(r),0);return Yt(function(t){var n=t[r],i=uo(t,0,r);if(n){Ea(i,n)}return Ge(e,this,i)})}var $_=spread;var N_=Qu(function(e,r,t){return e+(t?" ":"")+Uo(r)});var F_=N_;function startsWith(e,r,t){e=ba(e);t=t==null?0:ls(ue(t),0,e.length);r=K(r);return e.slice(t,t+r.length)==r}var z_=startsWith;function stubObject(){return{}}var U_=stubObject;function stubString(){return""}var q_=stubString;function stubTrue(){return true}var G_=stubTrue;var K_=H(function(e,r){return e-r},0);var H_=K_;function sum(e){return e&&e.length?ig(e,ce):0}var Z_=sum;function sumBy(e,r){return e&&e.length?ig(e,ql(r,2)):0}var X_=sumBy;function tail(e){var r=e==null?0:e.length;return r?oo(e,1,r):[]}var Y_=tail;function take(e,r,t){if(!(e&&e.length)){return[]}r=t||r===undefined?1:ue(r);return oo(e,0,r<0?0:r)}var J_=take;function takeRight(e,r,t){var n=e==null?0:e.length;if(!n){return[]}r=t||r===undefined?1:ue(r);r=n-r;return oo(e,r<0?0:r,n)}var Q_=takeRight;function takeRightWhile(e,r){return e&&e.length?ad(e,ql(r,3),false,true):[]}var V_=takeRightWhile;function takeWhile(e,r){return e&&e.length?ad(e,ql(r,3)):[]}var ew=takeWhile;function tap(e,r){r(e);return e}var rw=tap;var tw=Object.prototype;var nw=tw.hasOwnProperty;function customDefaultsAssignIn(e,r,t,n){if(e===undefined||Ut(e,tw[t])&&!nw.call(n,t)){return r}return e}var iw=customDefaultsAssignIn;var aw={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function escapeStringChar(e){return"\\"+aw[e]}var ow=escapeStringChar;var uw=/<%=([\s\S]+?)%>/g;var sw=uw;var fw=/<%-([\s\S]+?)%>/g;var cw=fw;var lw=/<%([\s\S]+?)%>/g;var vw=lw;var dw={escape:cw,evaluate:vw,interpolate:sw,variable:"",imports:{_:{escape:Cd}}};var pw=dw;var hw=/\b__p \+= '';/g,yw=/\b(__p \+=) '' \+/g,gw=/(__e\(.*?\)|\b__t\)) \+\n'';/g;var bw=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;var mw=/($^)/;var _w=/['\n\r\u2028\u2029\\]/g;var ww=Object.prototype;var xw=ww.hasOwnProperty;function template(e,r,t){var n=pw.imports._.templateSettings||pw;if(t&&en(e,r,t)){r=undefined}e=ba(e);r=Ei({},r,n,iw);var i=Ei({},r.imports,n.imports,iw),a=vi(i),o=th(i,a);var u,s,f=0,c=r.interpolate||mw,l="__p += '";var v=RegExp((r.escape||mw).source+"|"+c.source+"|"+(c===sw?bw:mw).source+"|"+(r.evaluate||mw).source+"|$","g");var d=xw.call(r,"sourceURL")?"//# sourceURL="+(r.sourceURL+"").replace(/[\r\n]/g," ")+"\n":"";e.replace(v,function(r,t,n,i,a,o){n||(n=i);l+=e.slice(f,o).replace(_w,ow);if(t){u=true;l+="' +\n__e("+t+") +\n'"}if(a){s=true;l+="';\n"+a+";\n__p += '"}if(n){l+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"}f=o+r.length;return r});l+="';\n";var p=xw.call(r,"variable")&&r.variable;if(!p){l="with (obj) {\n"+l+"\n}\n"}l=(s?l.replace(hw,""):l).replace(yw,"$1").replace(gw,"$1;");l="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(u?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+l+"return __p\n}";var h=Ka(function(){return Function(a,d+"return "+l).apply(undefined,o)});h.source=l;if(qa(h)){throw h}return h}var Sw=template;var Ow="Expected a function";function throttle(e,r,t){var n=true,i=true;if(typeof e!="function"){throw new TypeError(Ow)}if(Y(t)){n="leading"in t?!!t.leading:n;i="trailing"in t?!!t.trailing:i}return xv(e,r,{leading:n,maxWait:r,trailing:i})}var Ew=throttle;function thru(e,r){return r(e)}var Iw=thru;var jw=9007199254740991;var Aw=4294967295;var Rw=Math.min;function times(e,r){e=ue(e);if(e<1||e>jw){return[]}var t=Aw,n=Rw(e,Aw);r=sd(r);e-=Aw;var i=an(n,r);while(++t-1){}return t}var Nw=charsEndIndex;function charsStartIndex(e,r){var t=-1,n=e.length;while(++t-1){}return t}var Fw=charsStartIndex;var zw=/^\s+|\s+$/g;function trim(e,r,t){e=ba(e);if(e&&(t||r===undefined)){return e.replace(zw,"")}if(!e||!(r=K(r))){return e}var n=No(e),i=No(r),a=Fw(n,i),o=Nw(n,i)+1;return uo(n,a,o).join("")}var Uw=trim;var qw=/\s+$/;function trimEnd(e,r,t){e=ba(e);if(e&&(t||r===undefined)){return e.replace(qw,"")}if(!e||!(r=K(r))){return e}var n=No(e),i=Nw(n,No(r))+1;return uo(n,0,i).join("")}var Gw=trimEnd;var Kw=/^\s+/;function trimStart(e,r,t){e=ba(e);if(e&&(t||r===undefined)){return e.replace(Kw,"")}if(!e||!(r=K(r))){return e}var n=No(e),i=Fw(n,No(r));return uo(n,i).join("")}var Hw=trimStart;var Zw=30,Xw="...";var Yw=/\w*$/;function truncate(e,r){var t=Zw,n=Xw;if(Y(r)){var i="separator"in r?r.separator:i;t="length"in r?ue(r.length):t;n="omission"in r?K(r.omission):n}e=ba(e);var a=e.length;if(go(e)){var o=No(e);a=o.length}if(t>=a){return e}var u=t-Cb(n);if(u<1){return n}var s=o?uo(o,0,u).join(""):e.slice(0,u);if(i===undefined){return s+n}if(o){u+=s.length-u}if(my(i)){if(e.slice(u).search(i)){var f,c=s;if(!i.global){i=RegExp(i.source,ba(Yw.exec(i))+"g")}i.lastIndex=0;while(f=i.exec(c)){var l=f.index}s=s.slice(0,l===undefined?u:l)}}else if(e.indexOf(K(i),u)!=u){var v=s.lastIndexOf(i);if(v>-1){s=s.slice(0,v)}}return s+n}var Jw=truncate;function unary(e){return Ft(e,1)}var Qw=unary;var Vw={"&":"&","<":"<",">":">",""":'"',"'":"'"};var ex=Ko(Vw);var rx=ex;var tx=/&(?:amp|lt|gt|quot|#39);/g,nx=RegExp(tx.source);function unescape_unescape(e){e=ba(e);return e&&nx.test(e)?e.replace(tx,rx):e}var ix=unescape_unescape;var ax=1/0;var ox=!(Zs&&1/Vc(new Zs([,-0]))[1]==ax)?er:function(e){return new Zs(e)};var ux=ox;var sx=200;function baseUniq(e,r,t){var n=-1,i=Lr,a=e.length,o=true,u=[],s=u;if(t){o=false;i=Gv}else if(a>=sx){var f=r?null:ux(e);if(f){return Vc(f)}o=false;i=Zc;s=new Kc}else{s=r?[]:u}e:while(++n1||this.__actions__.length||!(n instanceof Ve)||!ut(t)){return this.thru(i)}n=n.slice(t,+t+(r?1:0));n.__actions__.push({func:Iw,args:[i],thisArg:undefined});return new sr(n,this.__chain__).thru(function(e){if(r&&!e.length){e.push(undefined)}return e})});var Tx=Mx;function wrapperChain(){return us(this)}var Bx=wrapperChain;function wrapperReverse(){var e=this.__wrapped__;if(e instanceof Ve){var r=e;if(this.__actions__.length){r=new Ve(this)}r=r.reverse();r.__actions__.push({func:Iw,args:[Hm],thisArg:undefined});return new sr(r,this.__chain__)}return this.thru(Hm)}var Dx=wrapperReverse;function baseXor(e,r,t){var n=e.length;if(n<2){return n?fx(e[0]):[]}var i=-1,a=Array(n);while(++i1?e[r-1]:undefined;t=typeof t=="function"?(e.pop(),t):undefined;return Ox(e,t)});var Jx=Yx;var Qx={chunk:cs,compact:Fc,concat:zc,difference:Xv,differenceBy:Qv,differenceWith:ed,drop:nd,dropRight:id,dropRightWhile:od,dropWhile:ud,fill:zd,findIndex:Hd,findLastIndex:ep,first:ip,flatten:Ra,flattenDeep:vp,flattenDepth:dp,fromPairs:Cp,head:ip,indexOf:uh,initial:sh,intersection:dh,intersectionBy:hh,intersectionWith:gh,join:Wy,last:Yv,lastIndexOf:$y,nth:Rg,pull:sm,pullAll:om,pullAllBy:fm,pullAllWith:cm,pullAt:hm,remove:$m,reverse:Hm,slice:l_,sortedIndex:I_,sortedIndexBy:j_,sortedIndexOf:A_,sortedLastIndex:R_,sortedLastIndexBy:k_,sortedLastIndexOf:W_,sortedUniq:P_,sortedUniqBy:M_,tail:Y_,take:J_,takeRight:Q_,takeRightWhile:V_,takeWhile:ew,union:lx,unionBy:dx,unionWith:hx,uniq:yx,uniqBy:gx,uniqWith:bx,unzip:Sx,unzipWith:Ox,without:Cx,xor:Nx,xorBy:zx,xorWith:qx,zip:Kx,zipObject:Zx,zipObjectDeep:Xx,zipWith:Jx};var Vx={countBy:lv,each:fd,eachRight:yd,every:Ld,filter:qd,find:Xd,findLast:tp,flatMap:up,flatMapDeep:fp,flatMapDepth:cp,forEach:fd,forEachRight:yd,groupBy:$p,includes:ah,invokeMap:Mh,keyBy:Ty,map:op,orderBy:Hg,partition:Yb,reduce:Tm,reduceRight:Dm,reject:Lm,sample:Qm,sampleSize:t_,shuffle:u_,size:c_,some:h_,sortBy:g_};var eS={now:bv};var rS={after:fe,ary:Ft,before:Za,bind:Qa,bindKey:ao,curry:pv,curryRight:yv,debounce:xv,defer:zv,delay:qv,flip:hp,memoize:la,negate:wg,once:zg,overArgs:rb,partial:Gb,partialRight:Zb,rearg:Pm,rest:Um,spread:$_,throttle:Ew,unary:Qw,wrap:Px};var tS={castArray:rs,clone:Wc,cloneDeep:Mc,cloneDeepWith:Dc,cloneWith:$c,conformsTo:Jl,eq:Ut,gt:Up,gte:Gp,isArguments:vn,isArray:z,isArrayBuffer:$h,isArrayLike:Vt,isArrayLikeObject:Rv,isBoolean:Fh,isBuffer:_n,isDate:Kh,isElement:Hh,isEmpty:Qh,isEqual:Vh,isEqualWith:ey,isError:qa,isFinite:ty,isFunction:he,isInteger:ny,isLength:Qt,isMap:Hf,isMatch:iy,isMatchWith:ay,isNaN:sy,isNative:vy,isNil:dy,isNull:py,isNumber:uy,isObject:Y,isObjectLike:T,isPlainObject:Fa,isRegExp:my,isSafeInteger:wy,isSet:Qf,isString:rh,isSymbol:D,isTypedArray:ti,isUndefined:xy,isWeakMap:Oy,isWeakSet:Iy,lt:Ky,lte:Zy,toArray:Ig,toFinite:oe,toInteger:ue,toLength:Nd,toNumber:ne,toPlainObject:Wv,toSafeInteger:Dw,toString:ba};var nS={add:X,ceil:os,divide:td,floor:gp,max:tg,maxBy:ng,mean:ug,meanBy:sg,min:hg,minBy:yg,multiply:mg,round:Xm,subtract:H_,sum:Z_,sumBy:X_};var iS={clamp:vs,inRange:Vp,random:xm};var aS={assign:yi,assignIn:Si,assignInWith:Ei,assignWith:ji,at:Ca,create:vv,defaults:jv,defaultsDeep:Lv,entries:Od,entriesIn:Id,extend:Si,extendWith:Ei,findKey:Jd,findLastKey:np,forIn:Ap,forInRight:Rp,forOwn:kp,forOwnRight:Wp,functions:Mp,functionsIn:Tp,get:Sa,has:Xp,hasIn:Dl,invert:Sh,invertBy:Ah,invoke:Ch,keys:vi,keysIn:wi,mapKeys:Xy,mapValues:Yy,merge:cg,mergeWith:Bv,omit:Dg,omitBy:Fg,pick:Vb,pickBy:Ng,result:qm,set:n_,setWith:i_,toPairs:Od,toPairsIn:Id,transform:$w,unset:wx,update:Ix,updateWith:jx,values:nh,valuesIn:kx};var oS={at:Tx,chain:us,commit:Nc,lodash:dr,next:jg,plant:em,reverse:Dx,tap:rw,thru:Iw,toIterator:Ww,toJSON:Pw,value:Pw,valueOf:Pw,wrapperChain:Bx};var uS={camelCase:es,capitalize:qo,deburr:nu,endsWith:gd,escape:Cd,escapeRegExp:Td,kebabCase:Py,lowerCase:Fy,lowerFirst:Uy,pad:Db,padEnd:Lb,padStart:$b,parseInt:zb,repeat:Nm,replace:Fm,snakeCase:d_,split:B_,startCase:F_,startsWith:z_,template:Sw,templateSettings:pw,toLower:Mw,toUpper:Lw,trim:Uw,trimEnd:Gw,trimStart:Hw,truncate:Jw,unescape:ix,upperCase:Rx,upperFirst:Uo,words:Xu};var sS={attempt:Ka,bindAll:eo,cond:Kl,conforms:Yl,constant:Ir,defaultTo:Sv,flow:Ep,flowRight:jp,identity:ce,iteratee:Ay,matches:Qy,matchesProperty:eg,method:vg,methodOf:pg,mixin:gg,noop:er,nthArg:kg,over:Yg,overEvery:nb,overSome:ab,property:Ul,propertyOf:rm,range:Am,rangeRight:km,stubArray:Rs,stubFalse:dn,stubObject:U_,stubString:q_,stubTrue:G_,times:kw,toPath:Tw,uniqueId:_x};function lazyClone(){var e=new Ve(this.__wrapped__);e.__actions__=fr(this.__actions__);e.__dir__=this.__dir__;e.__filtered__=this.__filtered__;e.__iteratees__=fr(this.__iteratees__);e.__takeCount__=this.__takeCount__;e.__views__=fr(this.__views__);return e}var fS=lazyClone;function lazyReverse(){if(this.__filtered__){var e=new Ve(this);e.__dir__=-1;e.__filtered__=true}else{e=this.clone();e.__dir__*=-1}return e}var cS=lazyReverse;var lS=Math.max,vS=Math.min;function getView(e,r,t){var n=-1,i=t.length;while(++n0||r<0)){return new Ve(t)}if(e<0){t=t.takeRight(-e)}else if(e){t=t.drop(e)}if(r!==undefined){r=ue(r);t=r<0?t.dropRight(-r):t.take(r-e)}return t};Ve.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()};Ve.prototype.toArray=function(){return this.take(xS)};tv(Ve.prototype,function(e,r){var t=/^(?:filter|find|map|reject)|While$/.test(r),n=/^(?:head|last)$/.test(r),i=dr[n?"take"+(r=="last"?"Right":""):r],a=n||/^find/.test(r);if(!i){return}dr.prototype[r]=function(){var r=this.__wrapped__,o=n?[1]:arguments,u=r instanceof Ve,s=o[0],f=u||z(r);var c=function(e){var r=i.apply(dr,Ea([e],o));return n&&l?r[0]:r};if(f&&t&&typeof s=="function"&&s.length!=1){u=f=false}var l=this.__chain__,v=!!this.__actions__.length,d=a&&!l,p=u&&!v;if(!a&&f){r=p?r:new Ve(this);var h=e.apply(r,o);h.__actions__.push({func:Iw,args:[c],thisArg:undefined});return new sr(h,l)}if(d&&p){return e.apply(this,o)}h=this.thru(c);return d?n?h.value()[0]:h.value():h}});Pr(["pop","push","shift","sort","splice","unshift"],function(e){var r=SS[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);dr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return r.apply(z(i)?i:[],e)}return this[t](function(t){return r.apply(z(t)?t:[],e)})}});tv(Ve.prototype,function(e,r){var t=dr[r];if(t){var n=t.name+"";if(!ES.call(ir,n)){ir[n]=[]}ir[n].push({name:r,func:t})}});ir[bt(undefined,mS).name]=[{name:"wrapper",func:undefined}];Ve.prototype.clone=fS;Ve.prototype.reverse=cS;Ve.prototype.value=gS;dr.prototype.at=oS.at;dr.prototype.chain=oS.wrapperChain;dr.prototype.commit=oS.commit;dr.prototype.next=oS.next;dr.prototype.plant=oS.plant;dr.prototype.reverse=oS.reverse;dr.prototype.toJSON=dr.prototype.valueOf=dr.prototype.value=oS.value;dr.prototype.first=dr.prototype.head;if(IS){dr.prototype[IS]=oS.toIterator}var kS=dr;class image_tag_ImageTag{constructor(e){const{repository:r="gableroux",name:t="unity3d",version:n="2019.2.11f1",platform:i}=e;if(!image_tag_ImageTag.versionPattern.test(n)){throw new Error(`Invalid version "${n}".`)}if(!Xp(image_tag_ImageTag.targetPlatformToImageSuffixMap,i)){throw new Error(`Platform "${i}" is currently not supported.`)}const a=Sa(image_tag_ImageTag.targetPlatformToImageSuffixMap,i,image_tag_ImageTag.imageSuffixes.generic);Object.assign(this,{repository:r,name:t,version:n,platform:i,builderPlatform:a})}static get versionPattern(){return/^20\d{2}\.\d\.\w{3,4}|3$/}static get imageSuffixes(){return{generic:"",webgl:"webgl",mac:"mac",windows:"windows",android:"android",ios:"ios",facebook:"facebook"}}static get targetPlatformToImageSuffixMap(){const{generic:e,webgl:r,mac:t,windows:n,android:i,ios:a,facebook:u}=image_tag_ImageTag.imageSuffixes;return{[o.types.StandaloneOSX]:t,[o.types.StandaloneWindows]:n,[o.types.StandaloneWindows64]:n,[o.types.StandaloneLinux64]:n,[o.types.iOS]:a,[o.types.Android]:i,[o.types.WebGL]:r,[o.types.WSAPlayer]:n,[o.types.PS4]:n,[o.types.XboxOne]:n,[o.types.tvOS]:n,[o.types.Switch]:n,[o.types.Lumin]:n,[o.types.BJM]:n,[o.types.Stadia]:n,[o.types.Facebook]:u,[o.types.NoTarget]:e,[o.types.Test]:e}}get tag(){return Gw(`${this.version}-${this.builderPlatform}`,"-")}get image(){return Hw(`${this.repository}/${this.name}`,"/")}toString(){const{image:e,tag:r}=this;return`${e}:${r}`}}var WS=image_tag_ImageTag;class docker_Docker{static async build(e,r=false){const{path:t,dockerfile:n,baseImage:i}=e;const{version:a,platform:o}=i;const u=new WS({repository:"",name:"unity-builder",version:a,platform:o});const s=`docker build ${t} --file ${n} --build-arg IMAGE=${i} --tag ${u}`;await Object(h.exec)(s,null,{silent:r});return u}static async run(e,r,t=false){const{version:n,workspace:i,platform:a,projectPath:o,buildName:u,buildPath:s,buildFile:f,buildMethod:c,customParameters:l}=r;const v=`docker run --workdir /github/workspace --rm --env UNITY_LICENSE --env UNITY_EMAIL --env UNITY_PASSWORD --env UNITY_SERIAL --env UNITY_VERSION=${n} --env PROJECT_PATH=${o} --env BUILD_TARGET=${a} --env BUILD_NAME=${u} --env BUILD_PATH=${s} --env BUILD_FILE=${f} --env BUILD_METHOD=${c} --env CUSTOM_PARAMETERS=${l} --env HOME=/github/home --env GITHUB_REF --env GITHUB_SHA --env GITHUB_REPOSITORY --env GITHUB_ACTOR --env GITHUB_WORKFLOW --env GITHUB_HEAD_REF --env GITHUB_BASE_REF --env GITHUB_EVENT_NAME --env GITHUB_WORKSPACE=/github/workspace --env GITHUB_ACTION --env GITHUB_EVENT_PATH --env RUNNER_OS --env RUNNER_TOOL_CACHE --env RUNNER_TEMP --env RUNNER_WORKSPACE --volume "/var/run/docker.sock":"/var/run/docker.sock" --volume "/home/runner/work/_temp/_github_home":"/github/home" --volume "/home/runner/work/_temp/_github_workflow":"/github/workflow" --volume "${i}":"/github/workspace" ${e}`;await Object(h.exec)(v,null,{silent:t})}}var CS=docker_Docker;const PS=t(470);async function src_action(){a.checkCompatibility();p.verify();const{dockerfile:e,workspace:r,builderFolder:t}=a;const n=u.create(v.getFromUser());const i=new WS(n);const o=await CS.build({path:t,dockerfile:e,baseImage:i});await CS.run(o,{workspace:r,...n})}src_action().catch(e=>{PS.setFailed(e.message)})},431:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:true});const n=t(87);function issueCommand(e,r,t){const i=new Command(e,r,t);process.stdout.write(i.toString()+n.EOL)}r.issueCommand=issueCommand;function issue(e,r=""){issueCommand(e,{},r)}r.issue=issue;const i="::";class Command{constructor(e,r,t){if(!e){e="missing.command"}this.command=e;this.properties=r;this.message=t}toString(){let e=i+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const t=this.properties[r];if(t){e+=`${r}=${escape(`${t||""}`)},`}}}}e+=i;const r=`${this.message||""}`;e+=escapeData(r);return e}}function escapeData(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escape(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")}},470:function(e,r,t){"use strict";var n=this&&this.__awaiter||function(e,r,t,n){function adopt(e){return e instanceof t?e:new t(function(r){r(e)})}return new(t||(t=Promise))(function(t,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});const i=t(431);const a=t(87);const o=t(622);var u;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(u=r.ExitCode||(r.ExitCode={}));function exportVariable(e,r){process.env[e]=r;i.issueCommand("set-env",{name:e},r)}r.exportVariable=exportVariable;function setSecret(e){i.issueCommand("add-mask",{},e)}r.setSecret=setSecret;function addPath(e){i.issueCommand("add-path",{},e);process.env["PATH"]=`${e}${o.delimiter}${process.env["PATH"]}`}r.addPath=addPath;function getInput(e,r){const t=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(r&&r.required&&!t){throw new Error(`Input required and not supplied: ${e}`)}return t.trim()}r.getInput=getInput;function setOutput(e,r){i.issueCommand("set-output",{name:e},r)}r.setOutput=setOutput;function setFailed(e){process.exitCode=u.Failure;error(e)}r.setFailed=setFailed;function debug(e){i.issueCommand("debug",{},e)}r.debug=debug;function error(e){i.issue("error",e)}r.error=error;function warning(e){i.issue("warning",e)}r.warning=warning;function info(e){process.stdout.write(e+a.EOL)}r.info=info;function startGroup(e){i.issue("group",e)}r.startGroup=startGroup;function endGroup(){i.issue("endgroup")}r.endGroup=endGroup;function group(e,r){return n(this,void 0,void 0,function*(){startGroup(e);let t;try{t=yield r()}finally{endGroup()}return t})}r.group=group;function saveState(e,r){i.issueCommand("save-state",{name:e},r)}r.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}r.getState=getState},614:function(e){e.exports=require("events")},622:function(e){e.exports=require("path")},669:function(e){e.exports=require("util")},672:function(e,r,t){"use strict";var n=this&&this.__awaiter||function(e,r,t,n){function adopt(e){return e instanceof t?e:new t(function(r){r(e)})}return new(t||(t=Promise))(function(t,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())})};var i;Object.defineProperty(r,"__esModule",{value:true});const a=t(357);const o=t(747);const u=t(622);i=o.promises,r.chmod=i.chmod,r.copyFile=i.copyFile,r.lstat=i.lstat,r.mkdir=i.mkdir,r.readdir=i.readdir,r.readlink=i.readlink,r.rename=i.rename,r.rmdir=i.rmdir,r.stat=i.stat,r.symlink=i.symlink,r.unlink=i.unlink;r.IS_WINDOWS=process.platform==="win32";function exists(e){return n(this,void 0,void 0,function*(){try{yield r.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true})}r.exists=exists;function isDirectory(e,t=false){return n(this,void 0,void 0,function*(){const n=t?yield r.stat(e):yield r.lstat(e);return n.isDirectory()})}r.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(r.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}r.isRooted=isRooted;function mkdirP(e,t=1e3,i=1){return n(this,void 0,void 0,function*(){a.ok(e,"a path argument must be provided");e=u.resolve(e);if(i>=t)return r.mkdir(e);try{yield r.mkdir(e);return}catch(n){switch(n.code){case"ENOENT":{yield mkdirP(u.dirname(e),t,i+1);yield r.mkdir(e);return}default:{let t;try{t=yield r.stat(e)}catch(e){throw n}if(!t.isDirectory())throw n}}}})}r.mkdirP=mkdirP;function tryGetExecutablePath(e,t){return n(this,void 0,void 0,function*(){let n=undefined;try{n=yield r.stat(e)}catch(r){if(r.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${r}`)}}if(n&&n.isFile()){if(r.IS_WINDOWS){const r=u.extname(e).toUpperCase();if(t.some(e=>e.toUpperCase()===r)){return e}}else{if(isUnixExecutable(n)){return e}}}const i=e;for(const a of t){e=i+a;n=undefined;try{n=yield r.stat(e)}catch(r){if(r.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${r}`)}}if(n&&n.isFile()){if(r.IS_WINDOWS){try{const t=u.dirname(e);const n=u.basename(e).toUpperCase();for(const i of yield r.readdir(t)){if(n===i.toUpperCase()){e=u.join(t,i);break}}}catch(r){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${r}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""})}r.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(r.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}},747:function(e){e.exports=require("fs")},986:function(e,r,t){"use strict";var n=this&&this.__awaiter||function(e,r,t,n){function adopt(e){return e instanceof t?e:new t(function(r){r(e)})}return new(t||(t=Promise))(function(t,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});const i=t(9);function exec(e,r,t){return n(this,void 0,void 0,function*(){const n=i.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const a=n[0];r=n.slice(1).concat(r||[]);const o=new i.ToolRunner(a,r,t);return o.exec()})}r.exec=exec}},function(e){"use strict";!function(){e.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}}();!function(){var r=Object.prototype.hasOwnProperty;e.d=function(e,t,n){if(!r.call(e,t)){Object.defineProperty(e,t,{enumerable:true,get:n})}}}();!function(){e.t=function(r,t){if(t&1)r=this(r);if(t&8)return r;if(t&4&&typeof r==="object"&&r&&r.__esModule)return r;var n=Object.create(null);e.r(n);Object.defineProperty(n,"default",{enumerable:true,value:r});if(t&2&&typeof r!="string")for(var i in r)e.d(n,i,function(e){return r[e]}.bind(null,i));return n}}();!function(){e.n=function(r){var t=r&&r.__esModule?function getDefault(){return r["default"]}:function getModuleExports(){return r};e.d(t,"a",t);return t}}();!function(){e.hmd=function(e){e=Object.create(e);if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function(){return e.i}});Object.defineProperty(e,"exports",{enumerable:true,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}});return e}}()}); \ No newline at end of file diff --git a/src/model/cache.js b/src/model/cache.js index 48a30930..c9d6258a 100644 --- a/src/model/cache.js +++ b/src/model/cache.js @@ -14,9 +14,11 @@ class Cache { return; } - console.log('Library folder does not exist.'); - console.log('Consider setting up caching to speed up your workflow.'); - console.log('If this is not your first build.'); + // eslint-disable-next-line no-console + console.log(` + Library folder does not exist. + Consider setting up caching to speed up your workflow + If this is not your first build.`); } } diff --git a/src/model/index.js b/src/model/index.js index 401db162..69ff89c5 100644 --- a/src/model/index.js +++ b/src/model/index.js @@ -5,5 +5,7 @@ import Docker from './docker'; import Input from './input'; import ImageTag from './image-tag'; import Platform from './platform'; +import Project from './project'; +import Unity from './unity'; -export { Action, BuildParameters, Cache, Docker, Input, ImageTag, Platform }; +export { Action, BuildParameters, Cache, Docker, Input, ImageTag, Platform, Project, Unity }; diff --git a/src/model/index.test.js b/src/model/index.test.js index e3337235..188fe50e 100644 --- a/src/model/index.test.js +++ b/src/model/index.test.js @@ -1,10 +1,17 @@ import * as Index from '.'; describe('Index', () => { - test.each(['Action', 'BuildParameters', 'Cache', 'Docker', 'Input', 'ImageTag', 'Platform'])( - 'exports %s', - exportedModule => { - expect(typeof Index[exportedModule]).toStrictEqual('function'); - }, - ); + test.each([ + 'Action', + 'BuildParameters', + 'Cache', + 'Docker', + 'Input', + 'ImageTag', + 'Platform', + 'Project', + 'Unity', + ])('exports %s', exportedModule => { + expect(typeof Index[exportedModule]).toStrictEqual('function'); + }); });