diff --git a/action/index.js b/action/index.js index 39fdb3393..af84ed202 100644 --- a/action/index.js +++ b/action/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__(77)}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())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)if(Object.hasOwnProperty.call(e,t))r[t]=e[t];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const a=i(t(87));const o=i(t(614));const u=i(t(129));const s=i(t(622));const f=i(t(1));const c=i(t(672));const l=process.platform==="win32";class ToolRunner extends o.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(l){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 i=n.indexOf(a.EOL);while(i>-1){const e=n.substring(0,i);t(e);n=n.substring(i+a.EOL.length);i=n.indexOf(a.EOL)}r=n}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){if(l){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(l){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(!c.isRooted(this.toolPath)&&(this.toolPath.includes("/")||l&&this.toolPath.includes("\\"))){this.toolPath=s.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield f.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)+a.EOL)}const n=new ExecState(t,this.toolPath);n.on("debug",e=>{this._debug(e)});const i=this._getSpawnFileName();const o=u.spawn(i,this._getSpawnArgs(t),this._getSpawnOptions(this.options,i));const s="";if(o.stdout){o.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(o.stderr){o.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)}})})}o.on("error",e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()});o.on("exit",e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()});o.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)}o.removeAllListeners();if(t){r(t)}else{e(n)}});if(this.options.input){if(!o.stdin){throw new Error("child process missing stdin")}o.stdin.end(this.options.input)}})})}}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 o.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()}}},77: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 actionFolder(){return`${action_Action.rootFolder}/action`}static get dockerfile(){return`${action_Action.actionFolder}/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{version:r,targetPlatform:t,projectPath:n,buildName:i,buildsPath:a,buildMethod:o,buildVersion:u,customParameters:s}=e;return{version:r,platform:t,projectPath:n,buildName:i,buildPath:`${a}/${t}`,buildFile:this.parseBuildFile(i,t),buildMethod:o,buildVersion:u,customParameters:s}}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);var c=t(470);class Unity{static get libraryFolder(){return"Library"}}var l=Unity;class project_Project{static get relativePath(){const e=Object(c.getInput)("projectPath")||".";return`${e}`}static get absolutePath(){const{workspace:e}=a;return`${e}/${this.relativePath}`}static get libraryFolder(){return`${this.relativePath}/${l.libraryFolder}`}}var v=project_Project;class cache_Cache{static verify(){if(!f().existsSync(v.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 d=cache_Cache;var p=t(986);var h=typeof global=="object"&&global&&global.Object===Object&&global;var g=h;var y=typeof self=="object"&&self&&self.Object===Object&&self;var b=g||y||Function("return this")();var m=b;var _=m.Symbol;var w=_;var S=Object.prototype;var O=S.hasOwnProperty;var x=S.toString;var E=w?w.toStringTag:undefined;function getRawTag(e){var r=O.call(e,E),t=e[E];try{e[E]=undefined;var n=true}catch(e){}var i=x.call(e);if(n){if(r){e[E]=t}else{delete e[E]}}return i}var j=getRawTag;var I=Object.prototype;var A=I.toString;function objectToString(e){return A.call(e)}var R=objectToString;var k="[object Null]",W="[object Undefined]";var C=w?w.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?W:k}return C&&C in Object(e)?j(e):R(e)}var T=baseGetTag;function isObjectLike(e){return e!=null&&typeof e=="object"}var P=isObjectLike;var M="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||P(e)&&T(e)==M}var B=isSymbol;var D=0/0;function baseToNumber(e){if(typeof e=="number"){return e}if(B(e)){return D}return+e}var L=baseToNumber;function arrayMap(e,r){var t=-1,n=e==null?0:e.length,i=Array(n);while(++t0){if(++r>=pr){return arguments[0]}}else{r=0}return e.apply(undefined,arguments)}}var yr=shortOut;var br=yr(De);var mr=br;var _r=/\{\n\/\* \[wrapped with (.+)\] \*/,wr=/,? & /;function getWrapDetails(e){var r=e.match(_r);return r?r[1].split(wr):[]}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 xr=insertWrapDetails;function constant(e){return function(){return e}}var Er=constant;var jr=function(){try{var e=We(Object,"defineProperty");e({},"",{});return e}catch(e){}}();var Ir=jr;var Ar=!Ir?fe:function(e,r){return Ir(e,"toString",{configurable:true,enumerable:false,value:Er(r),writable:true})};var Rr=Ar;var kr=yr(Rr);var Wr=kr;function arrayEach(e,r){var t=-1,n=e==null?0:e.length;while(++t-1}var Dr=arrayIncludes;var Lr=1,$r=2,Nr=8,Fr=16,zr=32,Ur=64,qr=128,Gr=256,Hr=512;var Kr=[["ary",qr],["bind",Lr],["bindKey",$r],["curry",Nr],["curryRight",Fr],["flip",Hr],["partial",zr],["partialRight",Ur],["rearg",Gr]];function updateWrapDetails(e,r){Cr(Kr,function(t){var n="_."+t[0];if(r&t[1]&&!Dr(e,n)){e.push(n)}});return e.sort()}var Zr=updateWrapDetails;function setWrapToString(e,r,t){var n=r+"";return Wr(e,xr(n,Zr(Sr(n),t)))}var Xr=setWrapToString;var Yr=1,Jr=2,Qr=4,Vr=8,et=32,rt=64;function createRecurry(e,r,t,n,i,a,o,u,s,f){var c=r&Vr,l=c?o:undefined,v=c?undefined:o,d=c?a:undefined,p=c?undefined:a;r|=c?et:rt;r&=~(c?rt:et);if(!(r&Qr)){r&=~(Yr|Jr)}var h=[e,r,i,d,l,p,v,u,s,f];var g=t.apply(undefined,h);if(dr(e)){mr(g,h)}g.placeholder=n;return Xr(g,e,r)}var tt=createRecurry;function getHolder(e){var r=e;return r.placeholder}var nt=getHolder;var it=9007199254740991;var at=/^(?:0|[1-9]\d*)$/;function isIndex(e,r){var t=typeof e;r=r==null?it:r;return!!r&&(t=="number"||t!="symbol"&&at.test(e))&&(e>-1&&e%1==0&&e1){y.reverse()}if(c&&s-1&&e%1==0&&e<=Yt}var Jt=isLength;function isArrayLike(e){return e!=null&&Jt(e.length)&&!pe(e)}var Qt=isArrayLike;function isIterateeCall(e,r,t){if(!X(t)){return false}var n=typeof r;if(n=="number"?Qt(t)&&ot(r,t.length):n=="string"&&r in t){return zt(t[r],e)}return false}var Vt=isIterateeCall;function createAssigner(e){return Xt(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&&Vt(t[0],t[1],o)){a=i<3?undefined:a;i=1}r=Object(r);while(++n-1}var Yi=listCacheHas;function listCacheSet(e,r){var t=this.__data__,n=Gi(t,e);if(n<0){++this.size;t.push([e,r])}else{t[n][1]=r}return this}var Ji=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{xa(i,u)}}else if(!n){i[i.length]=u}}return i}var Ia=baseFlatten;function flatten(e){var r=e==null?0:e.length;return r?Ia(e,1):[]}var Aa=flatten;function flatRest(e){return Wr(Zt(e,undefined,Aa),e+"")}var Ra=flatRest;var ka=Ra(Oa);var Wa=ka;var Ca=ai(Object.getPrototypeOf,Object);var Ta=Ca;var Pa="[object Object]";var Ma=Function.prototype,Ba=Object.prototype;var Da=Ma.toString;var La=Ba.hasOwnProperty;var $a=Da.call(Object);function isPlainObject(e){if(!P(e)||T(e)!=Pa){return false}var r=Ta(e);if(r===null){return true}var t=La.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&Da.call(t)==$a}var Na=isPlainObject;var Fa="[object DOMException]",za="[object Error]";function isError(e){if(!P(e)){return false}var r=T(e);return r==za||r==Fa||typeof e.message=="string"&&typeof e.name=="string"&&!Na(e)}var Ua=isError;var qa=Xt(function(e,r){try{return qe(e,undefined,r)}catch(e){return Ua(e)?e:new Error(e)}});var Ga=qa;var Ha="Expected a function";function before(e,r){var t;if(typeof r!="function"){throw new TypeError(Ha)}e=oe(e);return function(){if(--e>0){t=r.apply(this,arguments)}if(e<=1){r=undefined}return t}}var Ka=before;var Za=1,Xa=32;var Ya=Xt(function(e,r,t){var n=Za;if(t.length){var i=ct(t,nt(Ya));n|=Xa}return Lt(e,n,r,t,i)});Ya.placeholder={};var Ja=Ya;var Qa=Ra(function(e,r){Cr(r,function(r){r=_a(r);Ft(e,r,Ja(e[r],e))});return e});var Va=Qa;var eo=1,ro=2,to=32;var no=Xt(function(e,r,t){var n=eo|ro;if(t.length){var i=ct(t,nt(no));n|=to}return Lt(r,n,e,t,i)});no.placeholder={};var io=no;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:ao(e,r,t)}var oo=castSlice;var uo="\\ud800-\\udfff",so="\\u0300-\\u036f",fo="\\ufe20-\\ufe2f",co="\\u20d0-\\u20ff",lo=so+fo+co,vo="\\ufe0e\\ufe0f";var po="\\u200d";var ho=RegExp("["+po+uo+lo+vo+"]");function hasUnicode(e){return ho.test(e)}var go=hasUnicode;function asciiToArray(e){return e.split("")}var yo=asciiToArray;var bo="\\ud800-\\udfff",mo="\\u0300-\\u036f",_o="\\ufe20-\\ufe2f",wo="\\u20d0-\\u20ff",So=mo+_o+wo,Oo="\\ufe0e\\ufe0f";var xo="["+bo+"]",Eo="["+So+"]",jo="\\ud83c[\\udffb-\\udfff]",Io="(?:"+Eo+"|"+jo+")",Ao="[^"+bo+"]",Ro="(?:\\ud83c[\\udde6-\\uddff]){2}",ko="[\\ud800-\\udbff][\\udc00-\\udfff]",Wo="\\u200d";var Co=Io+"?",To="["+Oo+"]?",Po="(?:"+Wo+"(?:"+[Ao,Ro,ko].join("|")+")"+To+Co+")*",Mo=To+Co+Po,Bo="(?:"+[Ao+Eo+"?",Eo,Ro,ko,xo].join("|")+")";var Do=RegExp(jo+"(?="+jo+")|"+Bo+Mo,"g");function unicodeToArray(e){return e.match(Do)||[]}var Lo=unicodeToArray;function stringToArray(e){return go(e)?Lo(e):yo(e)}var $o=stringToArray;function createCaseFirst(e){return function(r){r=ya(r);var t=go(r)?$o(r):undefined;var n=t?t[0]:r.charAt(0);var i=t?oo(t,1).join(""):r.slice(1);return n[e]()+i}}var No=createCaseFirst;var Fo=No("toUpperCase");var zo=Fo;function capitalize(e){return zo(ya(e).toLowerCase())}var Uo=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 cs=baseClamp;function clamp(e,r,t){if(t===undefined){t=r;r=undefined}if(t!==undefined){t=te(t);t=t===t?t:0}if(r!==undefined){r=te(r);r=r===r?r:0}return cs(te(e),r,t)}var ls=clamp;function stackClear(){this.__data__=new Qi;this.size=0}var vs=stackClear;function stackDelete(e){var r=this.__data__,t=r["delete"](e);this.size=r.size;return t}var ds=stackDelete;function stackGet(e){return this.__data__.get(e)}var ps=stackGet;function stackHas(e){return this.__data__.has(e)}var hs=stackHas;var gs=200;function stackSet(e,r){var t=this.__data__;if(t instanceof Qi){var n=t.__data__;if(!ea||n.lengthu)){return false}var f=a.get(e);if(f&&a.get(r)){return f==r}var c=-1,l=true,v=t&Xc?new Gc:undefined;a.set(e,r);a.set(r,e);while(++c=r||t<0||l&&n>=a}function timerExpired(){var e=yv();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(yv())}function debounced(){var e=yv(),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 wv=debounce;function defaultTo(e,r){return e==null||e!==e?r:e}var Sv=defaultTo;var Ov=Object.prototype;var xv=Ov.hasOwnProperty;var Ev=Xt(function(e,r){e=Object(e);var t=-1;var n=r.length;var i=n>2?r[2]:undefined;if(i&&Vt(r[0],r[1],i)){n=1}while(++t=Gv){a=Kc;o=false;r=new Gc(r)}e:while(++i=0&&e.slice(t,i)==r}var gd=endsWith;function baseToPairs(e,r){return $(r,function(r){return[r,e[r]]})}var yd=baseToPairs;function setToPairs(e){var r=-1,t=Array(e.size);e.forEach(function(e){t[++r]=[e,e]});return t}var bd=setToPairs;var md="[object Map]",_d="[object Set]";function createToPairs(e){return function(r){var t=uf(r);if(t==md){return Jc(r)}if(t==_d){return bd(r)}return yd(r,e(r))}}var wd=createToPairs;var Sd=wd(li);var Od=Sd;var xd=wd(_i);var Ed=xd;var jd={"&":"&","<":"<",">":">",'"':""","'":"'"};var Id=Go(jd);var Ad=Id;var Rd=/[&<>"']/g,kd=RegExp(Rd.source);function escape_escape(e){e=ya(e);return e&&kd.test(e)?e.replace(Rd,Ad):e}var Wd=escape_escape;var Cd=/[\\^$.*+?()[\]{}|]/g,Td=RegExp(Cd.source);function escapeRegExp(e){e=ya(e);return e&&Td.test(e)?e.replace(Cd,"\\$&"):e}var Pd=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:oe(n);if(n<0){n+=i}n=t>n?0:$d(n);while(t-1?i[a?r[o]:o]:undefined}}var qd=createFind;var Gd=Math.max;function findIndex(e,r,t){var n=e==null?0:e.length;if(!n){return-1}var i=t==null?0:oe(t);if(i<0){i=Gd(n+i,0)}return Tr(e,Ul(r,3),i)}var Hd=findIndex;var Kd=qd(Hd);var Zd=Kd;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 Xd=baseFindKey;function findKey(e,r){return Xd(e,Ul(r,3),rv)}var Yd=findKey;var Jd=Math.max,Qd=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=oe(t);i=t<0?Jd(n+i,0):Qd(i,n-1)}return Tr(e,Ul(r,3),i,true)}var Vd=findLastIndex;var ep=qd(Vd);var rp=ep;function findLastKey(e,r){return Xd(e,Ul(r,3),vd)}var tp=findLastKey;function head(e){return e&&e.length?e[0]:undefined}var np=head;function baseMap(e,r){var t=-1,n=Qt(e)?Array(e.length):[];iv(e,function(e,i,a){n[++t]=r(e,i,a)});return n}var ip=baseMap;function map_map(e,r){var t=F(e)?$:ip;return t(e,Ul(r,3))}var ap=map_map;function flatMap(e,r){return Ia(ap(e,r),1)}var op=flatMap;var up=1/0;function flatMapDeep(e,r){return Ia(ap(e,r),up)}var sp=flatMapDeep;function flatMapDepth(e,r,t){t=t===undefined?1:oe(t);return Ia(ap(e,r),t)}var fp=flatMapDepth;var cp=1/0;function flattenDeep(e){var r=e==null?0:e.length;return r?Ia(e,cp):[]}var lp=flattenDeep;function flattenDepth(e,r){var t=e==null?0:e.length;if(!t){return[]}r=r===undefined?1:oe(r);return Ia(e,r)}var vp=flattenDepth;var dp=512;function flip(e){return Lt(e,dp)}var pp=flip;var hp=ns("floor");var gp=hp;var yp="Expected a function";var bp=8,mp=32,_p=128,wp=256;function createFlow(e){return Ra(function(r){var t=r.length,n=t,i=ur.prototype.thru;if(e){r.reverse()}while(n--){var a=r[n];if(typeof a!="function"){throw new TypeError(yp)}if(i&&!o&&or(a)=="wrapper"){var o=new ur([],true)}}n=o?n:t;while(++nr}var $p=baseGt;function createRelationalOperation(e){return function(r,t){if(!(typeof r=="string"&&typeof t=="string")){r=te(r);t=te(t)}return e(r,t)}}var Np=createRelationalOperation;var Fp=Np($p);var zp=Fp;var Up=Np(function(e,r){return e>=r});var qp=Up;var Gp=Object.prototype;var Hp=Gp.hasOwnProperty;function baseHas(e,r){return e!=null&&Hp.call(e,r)}var Kp=baseHas;function has(e,r){return e!=null&&Ml(e,r,Kp)}var Zp=has;var Xp=Math.max,Yp=Math.min;function baseInRange(e,r,t){return e>=Yp(r,t)&&e-1:!!i&&Br(e,r,t)>-1}var ih=includes_includes;var ah=Math.max;function indexOf_indexOf(e,r,t){var n=e==null?0:e.length;if(!n){return-1}var i=t==null?0:oe(t);if(i<0){i=ah(n+i,0)}return Br(e,r,i)}var oh=indexOf_indexOf;function initial(e){var r=e==null?0:e.length;return r?ao(e,0,-1):[]}var uh=initial;var sh=Math.min;function baseIntersection(e,r,t){var n=t?qv:Dr,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=$(c,Hn(r))}s=sh(c.length,s);u[o]=!t&&(r||i>=120&&c.length>=120)?new Gc(o&&c):undefined}c=e[0];var l=-1,v=u[0];e:while(++l=-mg&&e<=mg}var _g=isSafeInteger;function isUndefined(e){return e===undefined}var wg=isUndefined;var Sg="[object WeakMap]";function isWeakMap(e){return P(e)&&uf(e)==Sg}var Og=isWeakMap;var xg="[object WeakSet]";function isWeakSet(e){return P(e)&&T(e)==xg}var Eg=isWeakSet;var jg=1;function iteratee_iteratee(e){return Ul(typeof e=="function"?e:Ac(e,jg))}var Ig=iteratee_iteratee;var Ag=Array.prototype;var Rg=Ag.join;function join(e,r){return e==null?"":Rg.call(e,r)}var kg=join;var Wg=Ju(function(e,r,t){return e+(t?"-":"")+r.toLowerCase()});var Cg=Wg;var Tg=ov(function(e,r,t){Ft(e,t,r)});var Pg=Tg;function strictLastIndexOf(e,r,t){var n=t+1;while(n--){if(e[n]===r){return n}}return n}var Mg=strictLastIndexOf;var Bg=Math.max,Dg=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=oe(t);i=i<0?Bg(n+i,0):Dg(i,n-1)}return r===r?Mg(e,r,i):Tr(e,Pr,i,true)}var Lg=lastIndexOf;var $g=Ju(function(e,r,t){return e+(t?" ":"")+r.toLowerCase()});var Ng=$g;var Fg=No("toLowerCase");var zg=Fg;function baseLt(e,r){return e=this.__values__.length,r=e?undefined:this.__values__[this.__index__++];return{done:e,value:r}}var jy=wrapperNext;function baseNth(e,r){var t=e.length;if(!t){return}r+=r<0?t:0;return ot(r,t)?e[r]:undefined}var Iy=baseNth;function nth(e,r){return e&&e.length?Iy(e,oe(r)):undefined}var Ay=nth;function nthArg(e){e=oe(e);return Xt(function(r){return Iy(r,e)})}var Ry=nthArg;function baseUnset(e,r){r=ba(r,e);e=Ah(e,r);return e==null||delete e[_a(Xv(r))]}var ky=baseUnset;function customOmitClone(e){return Na(e)?undefined:e}var Wy=customOmitClone;var Cy=1,Ty=2,Py=4;var My=Ra(function(e,r){var t={};if(e==null){return t}var n=false;r=$(r,function(r){r=ba(r,e);n||(n=r.length>1);return r});Ht(e,Fs(e),t);if(n){t=Ac(t,Cy|Ty|Py,Wy)}var i=r.length;while(i--){ky(t,r[i])}return t});var By=My;function baseSet(e,r,t,n){if(!X(e)){return e}r=ba(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 qy=compareMultiple;function baseOrderBy(e,r,t){var n=-1;r=$(r.length?r:[fe],Hn(Ul));var i=ip(e,function(e,t,i){var a=$(r,function(r){return r(e)});return{criteria:a,index:++n,value:e}});return zy(i,function(e,r){return qy(e,r,t)})}var Gy=baseOrderBy;function orderBy(e,r,t,n){if(e==null){return[]}if(!F(r)){r=r==null?[]:[r]}t=n?undefined:t;if(!F(t)){t=t==null?[]:[t]}return Gy(e,r,t)}var Hy=orderBy;function createOver(e){return Ra(function(r){r=$(r,Hn(Ul));return Xt(function(t){var n=this;return e(r,function(e){return qe(e,n,t)})})})}var Ky=createOver;var Zy=Ky($);var Xy=Zy;var Yy=Xt;var Jy=Yy;var Qy=Math.min;var Vy=Jy(function(e,r){r=r.length==1&&F(r[0])?$(r[0],Hn(Ul)):$(Ia(r,1),Hn(Ul));var t=r.length;return Xt(function(n){var i=-1,a=Qy(n.length,t);while(++iab){return t}do{if(r%2){t+=e}r=ob(r/2);if(r){e+=e}}while(r);return t}var ub=baseRepeat;var sb=Nl("length");var fb=sb;var cb="\\ud800-\\udfff",lb="\\u0300-\\u036f",vb="\\ufe20-\\ufe2f",db="\\u20d0-\\u20ff",pb=lb+vb+db,hb="\\ufe0e\\ufe0f";var gb="["+cb+"]",yb="["+pb+"]",bb="\\ud83c[\\udffb-\\udfff]",mb="(?:"+yb+"|"+bb+")",_b="[^"+cb+"]",wb="(?:\\ud83c[\\udde6-\\uddff]){2}",Sb="[\\ud800-\\udbff][\\udc00-\\udfff]",Ob="\\u200d";var xb=mb+"?",Eb="["+hb+"]?",jb="(?:"+Ob+"(?:"+[_b,wb,Sb].join("|")+")"+Eb+xb+")*",Ib=Eb+xb+jb,Ab="(?:"+[_b+yb+"?",yb,wb,Sb,gb].join("|")+")";var Rb=RegExp(bb+"(?="+bb+")|"+Ab+Ib,"g");function unicodeSize(e){var r=Rb.lastIndex=0;while(Rb.test(e)){++r}return r}var kb=unicodeSize;function stringSize(e){return go(e)?kb(e):fb(e)}var Wb=stringSize;var Cb=Math.ceil;function createPadding(e,r){r=r===undefined?" ":G(r);var t=r.length;if(t<2){return t?ub(r,e):r}var n=ub(r,Cb(e/Wb(r)));return go(r)?oo($o(n),0,e).join(""):n.slice(0,e)}var Tb=createPadding;var Pb=Math.ceil,Mb=Math.floor;function pad(e,r,t){e=ya(e);r=oe(r);var n=r?Wb(e):0;if(!r||n>=r){return e}var i=(r-n)/2;return Tb(Mb(i),t)+e+Tb(Pb(i),t)}var Bb=pad;function padEnd(e,r,t){e=ya(e);r=oe(r);var n=r?Wb(e):0;return r&&n-1){if(u!==e){nm.call(u,s,1)}nm.call(e,s,1)}}return e}var im=basePullAll;function pullAll(e,r){return e&&e.length&&r&&r.length?im(e,r):e}var am=pullAll;var om=Xt(am);var um=om;function pullAllBy(e,r,t){return e&&e.length&&r&&r.length?im(e,r,Ul(t,2)):e}var sm=pullAllBy;function pullAllWith(e,r,t){return e&&e.length&&r&&r.length?im(e,r,undefined,t):e}var fm=pullAllWith;var cm=Array.prototype;var lm=cm.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(ot(i)){lm.call(e,i,1)}else{ky(e,i)}}}return e}var vm=basePullAt;var dm=Ra(function(e,r){var t=e==null?0:e.length,n=Oa(e,r);vm(e,$(r,function(e){return ot(e,t)?+e:e}).sort(Uy));return n});var pm=dm;var hm=Math.floor,gm=Math.random;function baseRandom(e,r){return e+hm(gm()*(r-e+1))}var ym=baseRandom;var bm=parseFloat;var mm=Math.min,_m=Math.random;function random(e,r,t){if(t&&typeof t!="boolean"&&Vt(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=ae(e);if(r===undefined){r=e;e=0}else{r=ae(r)}}if(e>r){var n=e;e=r;r=n}if(t||e%1||r%1){var i=_m();return mm(e+i*(r-e+bm("1e-"+((i+"").length-1))),r)}return ym(e,r)}var wm=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 xm=baseRange;function createRange(e){return function(r,t,n){if(n&&typeof n!="number"&&Vt(r,t,n)){t=n=undefined}r=ae(r);if(t===undefined){t=r;r=0}else{t=ae(t)}n=n===undefined?r1&&Vt(e,r[0],r[1])){r=[]}else if(t>2&&Vt(r[0],r[1],r[2])){r=[r[0]]}return Gy(e,Ia(r,1),[])});var g_=h_;var y_=4294967295,b_=y_-1;var m_=Math.floor,__=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=B(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&&!B(o)&&(t?o<=r:o>>0;if(!t){return[]}e=ya(e);if(e&&(typeof r=="string"||r!=null&&!bg(r))){r=G(r);if(!r&&go(e)){return oo($o(e),0,t)}}return e.split(r,t)}var M_=split;var B_="Expected a function";var D_=Math.max;function spread(e,r){if(typeof e!="function"){throw new TypeError(B_)}r=r==null?0:D_(oe(r),0);return Xt(function(t){var n=t[r],i=oo(t,0,r);if(n){xa(i,n)}return qe(e,this,i)})}var L_=spread;var $_=Ju(function(e,r,t){return e+(t?" ":"")+zo(r)});var N_=$_;function startsWith(e,r,t){e=ya(e);t=t==null?0:cs(oe(t),0,e.length);r=G(r);return e.slice(t,t+r.length)==r}var F_=startsWith;function stubObject(){return{}}var z_=stubObject;function stubString(){return""}var U_=stubString;function stubTrue(){return true}var q_=stubTrue;var G_=H(function(e,r){return e-r},0);var H_=G_;function sum(e){return e&&e.length?ny(e,fe):0}var K_=sum;function sumBy(e,r){return e&&e.length?ny(e,Ul(r,2)):0}var Z_=sumBy;function tail(e){var r=e==null?0:e.length;return r?ao(e,1,r):[]}var X_=tail;function take(e,r,t){if(!(e&&e.length)){return[]}r=t||r===undefined?1:oe(r);return ao(e,0,r<0?0:r)}var Y_=take;function takeRight(e,r,t){var n=e==null?0:e.length;if(!n){return[]}r=t||r===undefined?1:oe(r);r=n-r;return ao(e,r<0?0:r,n)}var J_=takeRight;function takeRightWhile(e,r){return e&&e.length?id(e,Ul(r,3),false,true):[]}var Q_=takeRightWhile;function takeWhile(e,r){return e&&e.length?id(e,Ul(r,3)):[]}var V_=takeWhile;function tap(e,r){r(e);return e}var ew=tap;var rw=Object.prototype;var tw=rw.hasOwnProperty;function customDefaultsAssignIn(e,r,t,n){if(e===undefined||zt(e,rw[t])&&!tw.call(n,t)){return r}return e}var nw=customDefaultsAssignIn;var iw={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function escapeStringChar(e){return"\\"+iw[e]}var aw=escapeStringChar;var ow=/<%=([\s\S]+?)%>/g;var uw=ow;var sw=/<%-([\s\S]+?)%>/g;var fw=sw;var cw=/<%([\s\S]+?)%>/g;var lw=cw;var vw={escape:fw,evaluate:lw,interpolate:uw,variable:"",imports:{_:{escape:Wd}}};var dw=vw;var pw=/\b__p \+= '';/g,hw=/\b(__p \+=) '' \+/g,gw=/(__e\(.*?\)|\b__t\)) \+\n'';/g;var yw=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;var bw=/($^)/;var mw=/['\n\r\u2028\u2029\\]/g;var _w=Object.prototype;var ww=_w.hasOwnProperty;function template(e,r,t){var n=dw.imports._.templateSettings||dw;if(t&&Vt(e,r,t)){r=undefined}e=ya(e);r=xi({},r,n,nw);var i=xi({},r.imports,n.imports,nw),a=li(i),o=rh(i,a);var u,s,f=0,c=r.interpolate||bw,l="__p += '";var v=RegExp((r.escape||bw).source+"|"+c.source+"|"+(c===uw?yw:bw).source+"|"+(r.evaluate||bw).source+"|$","g");var d=ww.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(mw,aw);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=ww.call(r,"variable")&&r.variable;if(!p){l="with (obj) {\n"+l+"\n}\n"}l=(s?l.replace(pw,""):l).replace(hw,"$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=Ga(function(){return Function(a,d+"return "+l).apply(undefined,o)});h.source=l;if(Ua(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(X(t)){n="leading"in t?!!t.leading:n;i="trailing"in t?!!t.trailing:i}return wv(e,r,{leading:n,maxWait:r,trailing:i})}var xw=throttle;function thru(e,r){return r(e)}var Ew=thru;var jw=9007199254740991;var Iw=4294967295;var Aw=Math.min;function times(e,r){e=oe(e);if(e<1||e>jw){return[]}var t=Iw,n=Aw(e,Iw);r=ud(r);e-=Iw;var i=nn(n,r);while(++t-1){}return t}var $w=charsEndIndex;function charsStartIndex(e,r){var t=-1,n=e.length;while(++t-1){}return t}var Nw=charsStartIndex;var Fw=/^\s+|\s+$/g;function trim(e,r,t){e=ya(e);if(e&&(t||r===undefined)){return e.replace(Fw,"")}if(!e||!(r=G(r))){return e}var n=$o(e),i=$o(r),a=Nw(n,i),o=$w(n,i)+1;return oo(n,a,o).join("")}var zw=trim;var Uw=/\s+$/;function trimEnd(e,r,t){e=ya(e);if(e&&(t||r===undefined)){return e.replace(Uw,"")}if(!e||!(r=G(r))){return e}var n=$o(e),i=$w(n,$o(r))+1;return oo(n,0,i).join("")}var qw=trimEnd;var Gw=/^\s+/;function trimStart(e,r,t){e=ya(e);if(e&&(t||r===undefined)){return e.replace(Gw,"")}if(!e||!(r=G(r))){return e}var n=$o(e),i=Nw(n,$o(r));return oo(n,i).join("")}var Hw=trimStart;var Kw=30,Zw="...";var Xw=/\w*$/;function truncate(e,r){var t=Kw,n=Zw;if(X(r)){var i="separator"in r?r.separator:i;t="length"in r?oe(r.length):t;n="omission"in r?G(r.omission):n}e=ya(e);var a=e.length;if(go(e)){var o=$o(e);a=o.length}if(t>=a){return e}var u=t-Wb(n);if(u<1){return n}var s=o?oo(o,0,u).join(""):e.slice(0,u);if(i===undefined){return s+n}if(o){u+=s.length-u}if(bg(i)){if(e.slice(u).search(i)){var f,c=s;if(!i.global){i=RegExp(i.source,ya(Xw.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(G(i),u)!=u){var v=s.lastIndexOf(i);if(v>-1){s=s.slice(0,v)}}return s+n}var Yw=truncate;function unary(e){return Nt(e,1)}var Jw=unary;var Qw={"&":"&","<":"<",">":">",""":'"',"'":"'"};var Vw=Go(Qw);var eS=Vw;var rS=/&(?:amp|lt|gt|quot|#39);/g,tS=RegExp(rS.source);function unescape_unescape(e){e=ya(e);return e&&tS.test(e)?e.replace(rS,eS):e}var nS=unescape_unescape;var iS=1/0;var aS=!(Ks&&1/Qc(new Ks([,-0]))[1]==iS)?Ve:function(e){return new Ks(e)};var oS=aS;var uS=200;function baseUniq(e,r,t){var n=-1,i=Dr,a=e.length,o=true,u=[],s=u;if(t){o=false;i=qv}else if(a>=uS){var f=r?null:oS(e);if(f){return Qc(f)}o=false;i=Kc;s=new Gc}else{s=r?[]:u}e:while(++n1||this.__actions__.length||!(n instanceof Qe)||!ot(t)){return this.thru(i)}n=n.slice(t,+t+(r?1:0));n.__actions__.push({func:Ew,args:[i],thisArg:undefined});return new ur(n,this.__chain__).thru(function(e){if(r&&!e.length){e.push(undefined)}return e})});var PS=TS;function wrapperChain(){return os(this)}var MS=wrapperChain;function wrapperReverse(){var e=this.__wrapped__;if(e instanceof Qe){var r=e;if(this.__actions__.length){r=new Qe(this)}r=r.reverse();r.__actions__.push({func:Ew,args:[Hm],thisArg:undefined});return new ur(r,this.__chain__)}return this.thru(Hm)}var BS=wrapperReverse;function baseXor(e,r,t){var n=e.length;if(n<2){return n?sS(e[0]):[]}var i=-1,a=Array(n);while(++i1?e[r-1]:undefined;t=typeof t=="function"?(e.pop(),t):undefined;return OS(e,t)});var YS=XS;var JS={chunk:fs,compact:Nc,concat:Fc,difference:Zv,differenceBy:Jv,differenceWith:Vv,drop:td,dropRight:nd,dropRightWhile:ad,dropWhile:od,fill:Fd,findIndex:Hd,findLastIndex:Vd,first:np,flatten:Aa,flattenDeep:lp,flattenDepth:vp,fromPairs:Wp,head:np,indexOf:oh,initial:uh,intersection:vh,intersectionBy:ph,intersectionWith:gh,join:kg,last:Xv,lastIndexOf:Lg,nth:Ay,pull:um,pullAll:am,pullAllBy:sm,pullAllWith:fm,pullAt:pm,remove:Lm,reverse:Hm,slice:c_,sortedIndex:E_,sortedIndexBy:j_,sortedIndexOf:I_,sortedLastIndex:A_,sortedLastIndexBy:R_,sortedLastIndexOf:k_,sortedUniq:C_,sortedUniqBy:T_,tail:X_,take:Y_,takeRight:J_,takeRightWhile:Q_,takeWhile:V_,union:cS,unionBy:vS,unionWith:pS,uniq:hS,uniqBy:gS,uniqWith:yS,unzip:SS,unzipWith:OS,without:WS,xor:$S,xorBy:FS,xorWith:US,zip:GS,zipObject:KS,zipObjectDeep:ZS,zipWith:YS};var QS={countBy:cv,each:sd,eachRight:hd,every:Dd,filter:Ud,find:Zd,findLast:rp,flatMap:op,flatMapDeep:sp,flatMapDepth:fp,forEach:sd,forEachRight:hd,groupBy:Lp,includes:ih,invokeMap:Th,keyBy:Pg,map:ap,orderBy:Hy,partition:Xb,reduce:Pm,reduceRight:Bm,reject:Dm,sample:Jm,sampleSize:r_,shuffle:o_,size:f_,some:p_,sortBy:g_};var VS={now:yv};var eO={after:se,ary:Nt,before:Ka,bind:Ja,bindKey:io,curry:dv,curryRight:hv,debounce:wv,defer:Fv,delay:Uv,flip:pp,memoize:ca,negate:_y,once:Fy,overArgs:eb,partial:qb,partialRight:Kb,rearg:Cm,rest:zm,spread:L_,throttle:xw,unary:Jw,wrap:CS};var rO={castArray:es,clone:kc,cloneDeep:Tc,cloneDeepWith:Bc,cloneWith:Lc,conformsTo:Yl,eq:zt,gt:zp,gte:qp,isArguments:ln,isArray:F,isArrayBuffer:Lh,isArrayLike:Qt,isArrayLikeObject:Av,isBoolean:Nh,isBuffer:mn,isDate:Gh,isElement:Hh,isEmpty:Jh,isEqual:Qh,isEqualWith:Vh,isError:Ua,isFinite:rg,isFunction:pe,isInteger:tg,isLength:Jt,isMap:Hf,isMatch:ng,isMatchWith:ig,isNaN:ug,isNative:lg,isNil:vg,isNull:dg,isNumber:og,isObject:X,isObjectLike:P,isPlainObject:Na,isRegExp:bg,isSafeInteger:_g,isSet:Jf,isString:eh,isSymbol:B,isTypedArray:ri,isUndefined:wg,isWeakMap:Og,isWeakSet:Eg,lt:Gg,lte:Kg,toArray:Ey,toFinite:ae,toInteger:oe,toLength:$d,toNumber:te,toPlainObject:kv,toSafeInteger:Bw,toString:ya};var tO={add:Z,ceil:as,divide:rd,floor:gp,max:ry,maxBy:ty,mean:oy,meanBy:uy,min:py,minBy:hy,multiply:by,round:Zm,subtract:H_,sum:K_,sumBy:Z_};var nO={clamp:ls,inRange:Qp,random:wm};var iO={assign:hi,assignIn:Si,assignInWith:xi,assignWith:ji,at:Wa,create:lv,defaults:jv,defaultsDeep:Dv,entries:Od,entriesIn:Ed,extend:Si,extendWith:xi,findKey:Yd,findLastKey:tp,forIn:Ip,forInRight:Ap,forOwn:Rp,forOwnRight:kp,functions:Tp,functionsIn:Pp,get:Sa,has:Zp,hasIn:Bl,invert:Sh,invertBy:Ih,invoke:Wh,keys:li,keysIn:_i,mapKeys:Zg,mapValues:Xg,merge:fy,mergeWith:Mv,omit:By,omitBy:Ny,pick:Qb,pickBy:$y,result:Um,set:t_,setWith:n_,toPairs:Od,toPairsIn:Ed,transform:Lw,unset:_S,update:ES,updateWith:jS,values:th,valuesIn:RS};var aO={at:PS,chain:os,commit:$c,lodash:vr,next:jy,plant:Vb,reverse:BS,tap:ew,thru:Ew,toIterator:kw,toJSON:Cw,value:Cw,valueOf:Cw,wrapperChain:MS};var oO={camelCase:Vu,capitalize:Uo,deburr:tu,endsWith:gd,escape:Wd,escapeRegExp:Pd,kebabCase:Cg,lowerCase:Ng,lowerFirst:zg,pad:Bb,padEnd:Db,padStart:Lb,parseInt:Fb,repeat:$m,replace:Nm,snakeCase:v_,split:M_,startCase:N_,startsWith:F_,template:Sw,templateSettings:dw,toLower:Tw,toUpper:Dw,trim:zw,trimEnd:qw,trimStart:Hw,truncate:Yw,unescape:nS,upperCase:AS,upperFirst:zo,words:Zu};var uO={attempt:Ga,bindAll:Va,cond:Gl,conforms:Xl,constant:Er,defaultTo:Sv,flow:xp,flowRight:jp,identity:fe,iteratee:Ig,matches:Jg,matchesProperty:Vg,method:ly,methodOf:dy,mixin:gy,noop:Ve,nthArg:Ry,over:Xy,overEvery:tb,overSome:ib,property:zl,propertyOf:em,range:Im,rangeRight:Rm,stubArray:As,stubFalse:vn,stubObject:z_,stubString:U_,stubTrue:q_,times:Rw,toPath:Pw,uniqueId:mS};function lazyClone(){var e=new Qe(this.__wrapped__);e.__actions__=sr(this.__actions__);e.__dir__=this.__dir__;e.__filtered__=this.__filtered__;e.__iteratees__=sr(this.__iteratees__);e.__takeCount__=this.__takeCount__;e.__views__=sr(this.__views__);return e}var sO=lazyClone;function lazyReverse(){if(this.__filtered__){var e=new Qe(this);e.__dir__=-1;e.__filtered__=true}else{e=this.clone();e.__dir__*=-1}return e}var fO=lazyReverse;var cO=Math.max,lO=Math.min;function getView(e,r,t){var n=-1,i=t.length;while(++n0||r<0)){return new Qe(t)}if(e<0){t=t.takeRight(-e)}else if(e){t=t.drop(e)}if(r!==undefined){r=oe(r);t=r<0?t.dropRight(-r):t.take(r-e)}return t};Qe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()};Qe.prototype.toArray=function(){return this.take(wO)};rv(Qe.prototype,function(e,r){var t=/^(?:filter|find|map|reject)|While$/.test(r),n=/^(?:head|last)$/.test(r),i=vr[n?"take"+(r=="last"?"Right":""):r],a=n||/^find/.test(r);if(!i){return}vr.prototype[r]=function(){var r=this.__wrapped__,o=n?[1]:arguments,u=r instanceof Qe,s=o[0],f=u||F(r);var c=function(e){var r=i.apply(vr,xa([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 Qe(this);var h=e.apply(r,o);h.__actions__.push({func:Ew,args:[c],thisArg:undefined});return new ur(h,l)}if(d&&p){return e.apply(this,o)}h=this.thru(c);return d?n?h.value()[0]:h.value():h}});Cr(["pop","push","shift","sort","splice","unshift"],function(e){var r=SO[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);vr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return r.apply(F(i)?i:[],e)}return this[t](function(t){return r.apply(F(t)?t:[],e)})}});rv(Qe.prototype,function(e,r){var t=vr[r];if(t){var n=t.name+"";if(!xO.call(nr,n)){nr[n]=[]}nr[n].push({name:r,func:t})}});nr[yt(undefined,bO).name]=[{name:"wrapper",func:undefined}];Qe.prototype.clone=sO;Qe.prototype.reverse=fO;Qe.prototype.value=gO;vr.prototype.at=aO.at;vr.prototype.chain=aO.wrapperChain;vr.prototype.commit=aO.commit;vr.prototype.next=aO.next;vr.prototype.plant=aO.plant;vr.prototype.reverse=aO.reverse;vr.prototype.toJSON=vr.prototype.valueOf=vr.prototype.value=aO.value;vr.prototype.first=vr.prototype.head;if(EO){vr.prototype[EO]=aO.toIterator}var RO=vr;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(!Zp(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 qw(`${this.version}-${this.builderPlatform}`,"-")}get image(){return Hw(`${this.repository}/${this.name}`,"/")}toString(){const{image:e,tag:r}=this;return`${e}:${r}`}}var kO=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 kO({repository:"",name:"unity-builder",version:a,platform:o});const s=`docker build ${t} --file ${n} --build-arg IMAGE=${i} --tag ${u}`;await Object(p.exec)(s,undefined,{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,buildVersion:l,customParameters:v}=r;const d=`docker run --workdir /github/workspace --rm --env UNITY_LICENSE --env UNITY_LICENSE_FILE --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 VERSION="${l}" --env CUSTOM_PARAMETERS="${v}" --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(p.exec)(d,undefined,{silent:t})}}var WO=docker_Docker;class NotImplementedException extends Error{constructor(e){super(e);this.name="NotImplementedException"}}var CO=NotImplementedException;class ValidationError extends Error{constructor(e){super(e);this.name="ValidationError"}}var TO=ValidationError;class system_System{static async run(e,r,t){let n="";let i="";let a="";const o={stdout:e=>{n+=e.toString()},stderr:e=>{i+=e.toString()},debug:e=>{a+=e.toString()}};const u=await Object(p.exec)(e,r,{silent:true,listeners:o,...t});if(a!==""){Object(c.debug)(a)}if(n!==""){Object(c.info)(n)}if(u!==0){throw new Error(i)}if(i!==""){Object(c.warning)(i)}return n}}var PO=system_System;class versioning_Versioning{static get strategies(){return{None:"None",Semantic:"Semantic",Tag:"Tag",Custom:"Custom"}}static get branch(){return this.headRef||this.ref&&this.ref.slice(11)}static get headRef(){return process.env.GITHUB_HEAD_REF}static get ref(){return process.env.GITHUB_REF}static get descriptionRegex(){return/^v([\d.]+)-(\d+)-g(\w+)-?(\w+)*/g}static async determineVersion(e,r){if(!Object.hasOwnProperty.call(this.strategies,e)){throw new TO(`Versioning strategy should be one of ${Object.values(this.strategies).join(", ")}.`)}let t;switch(e){case this.strategies.None:t="none";break;case this.strategies.Custom:t=r;break;case this.strategies.Semantic:t=await this.generateSemanticVersion();break;case this.strategies.Tag:t=await this.generateTagVersion();break;default:throw new CO(`Strategy ${e} is not implemented.`)}return t}static async generateSemanticVersion(){await this.fetch();if(await this.isDirty()){throw new Error("Branch is dirty. Refusing to base semantic version on uncommitted changes")}if(!await this.hasAnyVersionTags()){const e=`0.0.${await this.getTotalNumberOfCommits()}`;Object(c.info)(`Generated version ${e} (no version tags found).`);return e}const{tag:e,commits:r,hash:t}=await this.parseSemanticVersion();Object(c.info)(`Found semantic version ${e}.${r} for ${this.branch}@${t}`);return`${e}.${r}`}static async generateTagVersion(){let e=await this.getTag();if(e.charAt(0)==="v"){e=e.slice(1)}return e}static async parseSemanticVersion(){const e=await this.getVersionDescription();try{const[r,t,n,i]=this.descriptionRegex.exec(e);return{match:r,tag:t,commits:n,hash:i}}catch(r){throw new Error(`Failed to parse git describe output: "${e}".`)}}static async fetch(){try{await PO.run("git",["fetch","--unshallow"])}catch(e){Object(c.warning)(e);await PO.run("git",["fetch"])}}static async getVersionDescription(){return PO.run("git",["describe","--long","--tags","--always","--debug",`origin/${this.branch}`])}static async isDirty(){const e=await PO.run("git",["status","--porcelain"]);return e!==""}static async getTag(){return PO.run("git",["tag","--points-at","HEAD"])}static async hasAnyVersionTags(){const e=await PO.run("sh",undefined,{input:Buffer.from("git tag --list --merged HEAD | grep v[0-9]* | wc -l"),silent:false});const r=Number.parseInt(e,10);return r!==0}static async getTotalNumberOfCommits(){const e=await PO.run("git",["rev-list","--count",this.branch]);return Number.parseInt(e,10)}}const MO=t(470);class input_Input{static async getFromUser(){const e=MO.getInput("unityVersion");const r=MO.getInput("targetPlatform")||o.default;const t=MO.getInput("projectPath")||".";const n=MO.getInput("buildName")||r;const i=MO.getInput("buildsPath")||"build";const a=MO.getInput("buildMethod");const u=MO.getInput("versioning")||"Semantic";const s=MO.getInput("version")||"";const f=MO.getInput("customParameters")||"";const c=t.replace(/\/$/,"");const l=await versioning_Versioning.determineVersion(u,s);return{version:e,targetPlatform:r,projectPath:c,buildName:n,buildsPath:i,buildMethod:a,buildVersion:l,customParameters:f}}}var BO=input_Input;const DO=t(470);async function src_action(){a.checkCompatibility();d.verify();const{dockerfile:e,workspace:r,actionFolder:t}=a;const n=u.create(await BO.getFromUser());const i=new kO(n);const o=await WO.build({path:t,dockerfile:e,baseImage:i});await WO.run(o,{workspace:r,...n})}src_action().catch(e=>{DO.setFailed(e.message)})},87:function(e){e.exports=require("os")},129:function(e){e.exports=require("child_process")},357:function(e){e.exports=require("assert")},431:function(e,r,t){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)if(Object.hasOwnProperty.call(e,t))r[t]=e[t];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const i=n(t(87));function issueCommand(e,r,t){const n=new Command(e,r,t);process.stdout.write(n.toString()+i.EOL)}r.issueCommand=issueCommand;function issue(e,r=""){issueCommand(e,{},r)}r.issue=issue;const a="::";class Command{constructor(e,r,t){if(!e){e="missing.command"}this.command=e;this.properties=r;this.message=t}toString(){let e=a+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=true;for(const t in this.properties){if(this.properties.hasOwnProperty(t)){const n=this.properties[t];if(n){if(r){r=false}else{e+=","}e+=`${t}=${escapeProperty(n)}`}}}}e+=`${a}${escapeData(this.message)}`;return e}}function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}r.toCommandValue=toCommandValue;function escapeData(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},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())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)if(Object.hasOwnProperty.call(e,t))r[t]=e[t];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const a=t(431);const o=i(t(87));const u=i(t(622));var s;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(s=r.ExitCode||(r.ExitCode={}));function exportVariable(e,r){const t=a.toCommandValue(r);process.env[e]=t;a.issueCommand("set-env",{name:e},t)}r.exportVariable=exportVariable;function setSecret(e){a.issueCommand("add-mask",{},e)}r.setSecret=setSecret;function addPath(e){a.issueCommand("add-path",{},e);process.env["PATH"]=`${e}${u.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){a.issueCommand("set-output",{name:e},r)}r.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}r.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=s.Failure;error(e)}r.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}r.isDebug=isDebug;function debug(e){a.issueCommand("debug",{},e)}r.debug=debug;function error(e){a.issue("error",e instanceof Error?e.toString():e)}r.error=error;function warning(e){a.issue("warning",e instanceof Error?e.toString():e)}r.warning=warning;function info(e){process.stdout.write(e+o.EOL)}r.info=info;function startGroup(e){a.issue("group",e)}r.startGroup=startGroup;function endGroup(){a.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){a.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())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)if(Object.hasOwnProperty.call(e,t))r[t]=e[t];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const a=i(t(9));function exec(e,r,t){return n(this,void 0,void 0,function*(){const n=a.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=n[0];r=n.slice(1).concat(r||[]);const o=new a.ToolRunner(i,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__(77)}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())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)if(Object.hasOwnProperty.call(e,t))r[t]=e[t];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const a=i(t(87));const o=i(t(614));const u=i(t(129));const s=i(t(622));const f=i(t(1));const c=i(t(672));const l=process.platform==="win32";class ToolRunner extends o.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(l){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 i=n.indexOf(a.EOL);while(i>-1){const e=n.substring(0,i);t(e);n=n.substring(i+a.EOL.length);i=n.indexOf(a.EOL)}r=n}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){if(l){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(l){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(!c.isRooted(this.toolPath)&&(this.toolPath.includes("/")||l&&this.toolPath.includes("\\"))){this.toolPath=s.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield f.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)+a.EOL)}const n=new ExecState(t,this.toolPath);n.on("debug",e=>{this._debug(e)});const i=this._getSpawnFileName();const o=u.spawn(i,this._getSpawnArgs(t),this._getSpawnOptions(this.options,i));const s="";if(o.stdout){o.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(o.stderr){o.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)}})})}o.on("error",e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()});o.on("exit",e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()});o.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)}o.removeAllListeners();if(t){r(t)}else{e(n)}});if(this.options.input){if(!o.stdin){throw new Error("child process missing stdin")}o.stdin.end(this.options.input)}})})}}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 o.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()}}},77: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 actionFolder(){return`${action_Action.rootFolder}/action`}static get dockerfile(){return`${action_Action.actionFolder}/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{version:r,targetPlatform:t,projectPath:n,buildName:i,buildsPath:a,buildMethod:o,buildVersion:u,customParameters:s}=e;return{version:r,platform:t,projectPath:n,buildName:i,buildPath:`${a}/${t}`,buildFile:this.parseBuildFile(i,t),buildMethod:o,buildVersion:u,customParameters:s}}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);var c=t(470);class Unity{static get libraryFolder(){return"Library"}}var l=Unity;class project_Project{static get relativePath(){const e=Object(c.getInput)("projectPath")||".";return`${e}`}static get absolutePath(){const{workspace:e}=a;return`${e}/${this.relativePath}`}static get libraryFolder(){return`${this.relativePath}/${l.libraryFolder}`}}var v=project_Project;class cache_Cache{static verify(){if(!f().existsSync(v.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 d=cache_Cache;var p=t(986);var h=typeof global=="object"&&global&&global.Object===Object&&global;var g=h;var y=typeof self=="object"&&self&&self.Object===Object&&self;var b=g||y||Function("return this")();var m=b;var _=m.Symbol;var w=_;var S=Object.prototype;var O=S.hasOwnProperty;var x=S.toString;var E=w?w.toStringTag:undefined;function getRawTag(e){var r=O.call(e,E),t=e[E];try{e[E]=undefined;var n=true}catch(e){}var i=x.call(e);if(n){if(r){e[E]=t}else{delete e[E]}}return i}var j=getRawTag;var I=Object.prototype;var A=I.toString;function objectToString(e){return A.call(e)}var R=objectToString;var k="[object Null]",W="[object Undefined]";var C=w?w.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?W:k}return C&&C in Object(e)?j(e):R(e)}var T=baseGetTag;function isObjectLike(e){return e!=null&&typeof e=="object"}var P=isObjectLike;var M="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||P(e)&&T(e)==M}var B=isSymbol;var D=0/0;function baseToNumber(e){if(typeof e=="number"){return e}if(B(e)){return D}return+e}var L=baseToNumber;function arrayMap(e,r){var t=-1,n=e==null?0:e.length,i=Array(n);while(++t0){if(++r>=pr){return arguments[0]}}else{r=0}return e.apply(undefined,arguments)}}var yr=shortOut;var br=yr(De);var mr=br;var _r=/\{\n\/\* \[wrapped with (.+)\] \*/,wr=/,? & /;function getWrapDetails(e){var r=e.match(_r);return r?r[1].split(wr):[]}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 xr=insertWrapDetails;function constant(e){return function(){return e}}var Er=constant;var jr=function(){try{var e=We(Object,"defineProperty");e({},"",{});return e}catch(e){}}();var Ir=jr;var Ar=!Ir?fe:function(e,r){return Ir(e,"toString",{configurable:true,enumerable:false,value:Er(r),writable:true})};var Rr=Ar;var kr=yr(Rr);var Wr=kr;function arrayEach(e,r){var t=-1,n=e==null?0:e.length;while(++t-1}var Dr=arrayIncludes;var Lr=1,$r=2,Nr=8,Fr=16,zr=32,Ur=64,qr=128,Gr=256,Hr=512;var Kr=[["ary",qr],["bind",Lr],["bindKey",$r],["curry",Nr],["curryRight",Fr],["flip",Hr],["partial",zr],["partialRight",Ur],["rearg",Gr]];function updateWrapDetails(e,r){Cr(Kr,function(t){var n="_."+t[0];if(r&t[1]&&!Dr(e,n)){e.push(n)}});return e.sort()}var Zr=updateWrapDetails;function setWrapToString(e,r,t){var n=r+"";return Wr(e,xr(n,Zr(Sr(n),t)))}var Xr=setWrapToString;var Yr=1,Jr=2,Qr=4,Vr=8,et=32,rt=64;function createRecurry(e,r,t,n,i,a,o,u,s,f){var c=r&Vr,l=c?o:undefined,v=c?undefined:o,d=c?a:undefined,p=c?undefined:a;r|=c?et:rt;r&=~(c?rt:et);if(!(r&Qr)){r&=~(Yr|Jr)}var h=[e,r,i,d,l,p,v,u,s,f];var g=t.apply(undefined,h);if(dr(e)){mr(g,h)}g.placeholder=n;return Xr(g,e,r)}var tt=createRecurry;function getHolder(e){var r=e;return r.placeholder}var nt=getHolder;var it=9007199254740991;var at=/^(?:0|[1-9]\d*)$/;function isIndex(e,r){var t=typeof e;r=r==null?it:r;return!!r&&(t=="number"||t!="symbol"&&at.test(e))&&(e>-1&&e%1==0&&e1){y.reverse()}if(c&&s-1&&e%1==0&&e<=Yt}var Jt=isLength;function isArrayLike(e){return e!=null&&Jt(e.length)&&!pe(e)}var Qt=isArrayLike;function isIterateeCall(e,r,t){if(!X(t)){return false}var n=typeof r;if(n=="number"?Qt(t)&&ot(r,t.length):n=="string"&&r in t){return zt(t[r],e)}return false}var Vt=isIterateeCall;function createAssigner(e){return Xt(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&&Vt(t[0],t[1],o)){a=i<3?undefined:a;i=1}r=Object(r);while(++n-1}var Yi=listCacheHas;function listCacheSet(e,r){var t=this.__data__,n=Gi(t,e);if(n<0){++this.size;t.push([e,r])}else{t[n][1]=r}return this}var Ji=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{xa(i,u)}}else if(!n){i[i.length]=u}}return i}var Ia=baseFlatten;function flatten(e){var r=e==null?0:e.length;return r?Ia(e,1):[]}var Aa=flatten;function flatRest(e){return Wr(Zt(e,undefined,Aa),e+"")}var Ra=flatRest;var ka=Ra(Oa);var Wa=ka;var Ca=ai(Object.getPrototypeOf,Object);var Ta=Ca;var Pa="[object Object]";var Ma=Function.prototype,Ba=Object.prototype;var Da=Ma.toString;var La=Ba.hasOwnProperty;var $a=Da.call(Object);function isPlainObject(e){if(!P(e)||T(e)!=Pa){return false}var r=Ta(e);if(r===null){return true}var t=La.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&Da.call(t)==$a}var Na=isPlainObject;var Fa="[object DOMException]",za="[object Error]";function isError(e){if(!P(e)){return false}var r=T(e);return r==za||r==Fa||typeof e.message=="string"&&typeof e.name=="string"&&!Na(e)}var Ua=isError;var qa=Xt(function(e,r){try{return qe(e,undefined,r)}catch(e){return Ua(e)?e:new Error(e)}});var Ga=qa;var Ha="Expected a function";function before(e,r){var t;if(typeof r!="function"){throw new TypeError(Ha)}e=oe(e);return function(){if(--e>0){t=r.apply(this,arguments)}if(e<=1){r=undefined}return t}}var Ka=before;var Za=1,Xa=32;var Ya=Xt(function(e,r,t){var n=Za;if(t.length){var i=ct(t,nt(Ya));n|=Xa}return Lt(e,n,r,t,i)});Ya.placeholder={};var Ja=Ya;var Qa=Ra(function(e,r){Cr(r,function(r){r=_a(r);Ft(e,r,Ja(e[r],e))});return e});var Va=Qa;var eo=1,ro=2,to=32;var no=Xt(function(e,r,t){var n=eo|ro;if(t.length){var i=ct(t,nt(no));n|=to}return Lt(r,n,e,t,i)});no.placeholder={};var io=no;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:ao(e,r,t)}var oo=castSlice;var uo="\\ud800-\\udfff",so="\\u0300-\\u036f",fo="\\ufe20-\\ufe2f",co="\\u20d0-\\u20ff",lo=so+fo+co,vo="\\ufe0e\\ufe0f";var po="\\u200d";var ho=RegExp("["+po+uo+lo+vo+"]");function hasUnicode(e){return ho.test(e)}var go=hasUnicode;function asciiToArray(e){return e.split("")}var yo=asciiToArray;var bo="\\ud800-\\udfff",mo="\\u0300-\\u036f",_o="\\ufe20-\\ufe2f",wo="\\u20d0-\\u20ff",So=mo+_o+wo,Oo="\\ufe0e\\ufe0f";var xo="["+bo+"]",Eo="["+So+"]",jo="\\ud83c[\\udffb-\\udfff]",Io="(?:"+Eo+"|"+jo+")",Ao="[^"+bo+"]",Ro="(?:\\ud83c[\\udde6-\\uddff]){2}",ko="[\\ud800-\\udbff][\\udc00-\\udfff]",Wo="\\u200d";var Co=Io+"?",To="["+Oo+"]?",Po="(?:"+Wo+"(?:"+[Ao,Ro,ko].join("|")+")"+To+Co+")*",Mo=To+Co+Po,Bo="(?:"+[Ao+Eo+"?",Eo,Ro,ko,xo].join("|")+")";var Do=RegExp(jo+"(?="+jo+")|"+Bo+Mo,"g");function unicodeToArray(e){return e.match(Do)||[]}var Lo=unicodeToArray;function stringToArray(e){return go(e)?Lo(e):yo(e)}var $o=stringToArray;function createCaseFirst(e){return function(r){r=ya(r);var t=go(r)?$o(r):undefined;var n=t?t[0]:r.charAt(0);var i=t?oo(t,1).join(""):r.slice(1);return n[e]()+i}}var No=createCaseFirst;var Fo=No("toUpperCase");var zo=Fo;function capitalize(e){return zo(ya(e).toLowerCase())}var Uo=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 cs=baseClamp;function clamp(e,r,t){if(t===undefined){t=r;r=undefined}if(t!==undefined){t=te(t);t=t===t?t:0}if(r!==undefined){r=te(r);r=r===r?r:0}return cs(te(e),r,t)}var ls=clamp;function stackClear(){this.__data__=new Qi;this.size=0}var vs=stackClear;function stackDelete(e){var r=this.__data__,t=r["delete"](e);this.size=r.size;return t}var ds=stackDelete;function stackGet(e){return this.__data__.get(e)}var ps=stackGet;function stackHas(e){return this.__data__.has(e)}var hs=stackHas;var gs=200;function stackSet(e,r){var t=this.__data__;if(t instanceof Qi){var n=t.__data__;if(!ea||n.lengthu)){return false}var f=a.get(e);if(f&&a.get(r)){return f==r}var c=-1,l=true,v=t&Xc?new Gc:undefined;a.set(e,r);a.set(r,e);while(++c=r||t<0||l&&n>=a}function timerExpired(){var e=yv();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(yv())}function debounced(){var e=yv(),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 wv=debounce;function defaultTo(e,r){return e==null||e!==e?r:e}var Sv=defaultTo;var Ov=Object.prototype;var xv=Ov.hasOwnProperty;var Ev=Xt(function(e,r){e=Object(e);var t=-1;var n=r.length;var i=n>2?r[2]:undefined;if(i&&Vt(r[0],r[1],i)){n=1}while(++t=Gv){a=Kc;o=false;r=new Gc(r)}e:while(++i=0&&e.slice(t,i)==r}var gd=endsWith;function baseToPairs(e,r){return $(r,function(r){return[r,e[r]]})}var yd=baseToPairs;function setToPairs(e){var r=-1,t=Array(e.size);e.forEach(function(e){t[++r]=[e,e]});return t}var bd=setToPairs;var md="[object Map]",_d="[object Set]";function createToPairs(e){return function(r){var t=uf(r);if(t==md){return Jc(r)}if(t==_d){return bd(r)}return yd(r,e(r))}}var wd=createToPairs;var Sd=wd(li);var Od=Sd;var xd=wd(_i);var Ed=xd;var jd={"&":"&","<":"<",">":">",'"':""","'":"'"};var Id=Go(jd);var Ad=Id;var Rd=/[&<>"']/g,kd=RegExp(Rd.source);function escape_escape(e){e=ya(e);return e&&kd.test(e)?e.replace(Rd,Ad):e}var Wd=escape_escape;var Cd=/[\\^$.*+?()[\]{}|]/g,Td=RegExp(Cd.source);function escapeRegExp(e){e=ya(e);return e&&Td.test(e)?e.replace(Cd,"\\$&"):e}var Pd=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:oe(n);if(n<0){n+=i}n=t>n?0:$d(n);while(t-1?i[a?r[o]:o]:undefined}}var qd=createFind;var Gd=Math.max;function findIndex(e,r,t){var n=e==null?0:e.length;if(!n){return-1}var i=t==null?0:oe(t);if(i<0){i=Gd(n+i,0)}return Tr(e,Ul(r,3),i)}var Hd=findIndex;var Kd=qd(Hd);var Zd=Kd;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 Xd=baseFindKey;function findKey(e,r){return Xd(e,Ul(r,3),rv)}var Yd=findKey;var Jd=Math.max,Qd=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=oe(t);i=t<0?Jd(n+i,0):Qd(i,n-1)}return Tr(e,Ul(r,3),i,true)}var Vd=findLastIndex;var ep=qd(Vd);var rp=ep;function findLastKey(e,r){return Xd(e,Ul(r,3),vd)}var tp=findLastKey;function head(e){return e&&e.length?e[0]:undefined}var np=head;function baseMap(e,r){var t=-1,n=Qt(e)?Array(e.length):[];iv(e,function(e,i,a){n[++t]=r(e,i,a)});return n}var ip=baseMap;function map_map(e,r){var t=F(e)?$:ip;return t(e,Ul(r,3))}var ap=map_map;function flatMap(e,r){return Ia(ap(e,r),1)}var op=flatMap;var up=1/0;function flatMapDeep(e,r){return Ia(ap(e,r),up)}var sp=flatMapDeep;function flatMapDepth(e,r,t){t=t===undefined?1:oe(t);return Ia(ap(e,r),t)}var fp=flatMapDepth;var cp=1/0;function flattenDeep(e){var r=e==null?0:e.length;return r?Ia(e,cp):[]}var lp=flattenDeep;function flattenDepth(e,r){var t=e==null?0:e.length;if(!t){return[]}r=r===undefined?1:oe(r);return Ia(e,r)}var vp=flattenDepth;var dp=512;function flip(e){return Lt(e,dp)}var pp=flip;var hp=ns("floor");var gp=hp;var yp="Expected a function";var bp=8,mp=32,_p=128,wp=256;function createFlow(e){return Ra(function(r){var t=r.length,n=t,i=ur.prototype.thru;if(e){r.reverse()}while(n--){var a=r[n];if(typeof a!="function"){throw new TypeError(yp)}if(i&&!o&&or(a)=="wrapper"){var o=new ur([],true)}}n=o?n:t;while(++nr}var $p=baseGt;function createRelationalOperation(e){return function(r,t){if(!(typeof r=="string"&&typeof t=="string")){r=te(r);t=te(t)}return e(r,t)}}var Np=createRelationalOperation;var Fp=Np($p);var zp=Fp;var Up=Np(function(e,r){return e>=r});var qp=Up;var Gp=Object.prototype;var Hp=Gp.hasOwnProperty;function baseHas(e,r){return e!=null&&Hp.call(e,r)}var Kp=baseHas;function has(e,r){return e!=null&&Ml(e,r,Kp)}var Zp=has;var Xp=Math.max,Yp=Math.min;function baseInRange(e,r,t){return e>=Yp(r,t)&&e-1:!!i&&Br(e,r,t)>-1}var ih=includes_includes;var ah=Math.max;function indexOf_indexOf(e,r,t){var n=e==null?0:e.length;if(!n){return-1}var i=t==null?0:oe(t);if(i<0){i=ah(n+i,0)}return Br(e,r,i)}var oh=indexOf_indexOf;function initial(e){var r=e==null?0:e.length;return r?ao(e,0,-1):[]}var uh=initial;var sh=Math.min;function baseIntersection(e,r,t){var n=t?qv:Dr,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=$(c,Hn(r))}s=sh(c.length,s);u[o]=!t&&(r||i>=120&&c.length>=120)?new Gc(o&&c):undefined}c=e[0];var l=-1,v=u[0];e:while(++l=-mg&&e<=mg}var _g=isSafeInteger;function isUndefined(e){return e===undefined}var wg=isUndefined;var Sg="[object WeakMap]";function isWeakMap(e){return P(e)&&uf(e)==Sg}var Og=isWeakMap;var xg="[object WeakSet]";function isWeakSet(e){return P(e)&&T(e)==xg}var Eg=isWeakSet;var jg=1;function iteratee_iteratee(e){return Ul(typeof e=="function"?e:Ac(e,jg))}var Ig=iteratee_iteratee;var Ag=Array.prototype;var Rg=Ag.join;function join(e,r){return e==null?"":Rg.call(e,r)}var kg=join;var Wg=Ju(function(e,r,t){return e+(t?"-":"")+r.toLowerCase()});var Cg=Wg;var Tg=ov(function(e,r,t){Ft(e,t,r)});var Pg=Tg;function strictLastIndexOf(e,r,t){var n=t+1;while(n--){if(e[n]===r){return n}}return n}var Mg=strictLastIndexOf;var Bg=Math.max,Dg=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=oe(t);i=i<0?Bg(n+i,0):Dg(i,n-1)}return r===r?Mg(e,r,i):Tr(e,Pr,i,true)}var Lg=lastIndexOf;var $g=Ju(function(e,r,t){return e+(t?" ":"")+r.toLowerCase()});var Ng=$g;var Fg=No("toLowerCase");var zg=Fg;function baseLt(e,r){return e=this.__values__.length,r=e?undefined:this.__values__[this.__index__++];return{done:e,value:r}}var jy=wrapperNext;function baseNth(e,r){var t=e.length;if(!t){return}r+=r<0?t:0;return ot(r,t)?e[r]:undefined}var Iy=baseNth;function nth(e,r){return e&&e.length?Iy(e,oe(r)):undefined}var Ay=nth;function nthArg(e){e=oe(e);return Xt(function(r){return Iy(r,e)})}var Ry=nthArg;function baseUnset(e,r){r=ba(r,e);e=Ah(e,r);return e==null||delete e[_a(Xv(r))]}var ky=baseUnset;function customOmitClone(e){return Na(e)?undefined:e}var Wy=customOmitClone;var Cy=1,Ty=2,Py=4;var My=Ra(function(e,r){var t={};if(e==null){return t}var n=false;r=$(r,function(r){r=ba(r,e);n||(n=r.length>1);return r});Ht(e,Fs(e),t);if(n){t=Ac(t,Cy|Ty|Py,Wy)}var i=r.length;while(i--){ky(t,r[i])}return t});var By=My;function baseSet(e,r,t,n){if(!X(e)){return e}r=ba(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 qy=compareMultiple;function baseOrderBy(e,r,t){var n=-1;r=$(r.length?r:[fe],Hn(Ul));var i=ip(e,function(e,t,i){var a=$(r,function(r){return r(e)});return{criteria:a,index:++n,value:e}});return zy(i,function(e,r){return qy(e,r,t)})}var Gy=baseOrderBy;function orderBy(e,r,t,n){if(e==null){return[]}if(!F(r)){r=r==null?[]:[r]}t=n?undefined:t;if(!F(t)){t=t==null?[]:[t]}return Gy(e,r,t)}var Hy=orderBy;function createOver(e){return Ra(function(r){r=$(r,Hn(Ul));return Xt(function(t){var n=this;return e(r,function(e){return qe(e,n,t)})})})}var Ky=createOver;var Zy=Ky($);var Xy=Zy;var Yy=Xt;var Jy=Yy;var Qy=Math.min;var Vy=Jy(function(e,r){r=r.length==1&&F(r[0])?$(r[0],Hn(Ul)):$(Ia(r,1),Hn(Ul));var t=r.length;return Xt(function(n){var i=-1,a=Qy(n.length,t);while(++iab){return t}do{if(r%2){t+=e}r=ob(r/2);if(r){e+=e}}while(r);return t}var ub=baseRepeat;var sb=Nl("length");var fb=sb;var cb="\\ud800-\\udfff",lb="\\u0300-\\u036f",vb="\\ufe20-\\ufe2f",db="\\u20d0-\\u20ff",pb=lb+vb+db,hb="\\ufe0e\\ufe0f";var gb="["+cb+"]",yb="["+pb+"]",bb="\\ud83c[\\udffb-\\udfff]",mb="(?:"+yb+"|"+bb+")",_b="[^"+cb+"]",wb="(?:\\ud83c[\\udde6-\\uddff]){2}",Sb="[\\ud800-\\udbff][\\udc00-\\udfff]",Ob="\\u200d";var xb=mb+"?",Eb="["+hb+"]?",jb="(?:"+Ob+"(?:"+[_b,wb,Sb].join("|")+")"+Eb+xb+")*",Ib=Eb+xb+jb,Ab="(?:"+[_b+yb+"?",yb,wb,Sb,gb].join("|")+")";var Rb=RegExp(bb+"(?="+bb+")|"+Ab+Ib,"g");function unicodeSize(e){var r=Rb.lastIndex=0;while(Rb.test(e)){++r}return r}var kb=unicodeSize;function stringSize(e){return go(e)?kb(e):fb(e)}var Wb=stringSize;var Cb=Math.ceil;function createPadding(e,r){r=r===undefined?" ":G(r);var t=r.length;if(t<2){return t?ub(r,e):r}var n=ub(r,Cb(e/Wb(r)));return go(r)?oo($o(n),0,e).join(""):n.slice(0,e)}var Tb=createPadding;var Pb=Math.ceil,Mb=Math.floor;function pad(e,r,t){e=ya(e);r=oe(r);var n=r?Wb(e):0;if(!r||n>=r){return e}var i=(r-n)/2;return Tb(Mb(i),t)+e+Tb(Pb(i),t)}var Bb=pad;function padEnd(e,r,t){e=ya(e);r=oe(r);var n=r?Wb(e):0;return r&&n-1){if(u!==e){nm.call(u,s,1)}nm.call(e,s,1)}}return e}var im=basePullAll;function pullAll(e,r){return e&&e.length&&r&&r.length?im(e,r):e}var am=pullAll;var om=Xt(am);var um=om;function pullAllBy(e,r,t){return e&&e.length&&r&&r.length?im(e,r,Ul(t,2)):e}var sm=pullAllBy;function pullAllWith(e,r,t){return e&&e.length&&r&&r.length?im(e,r,undefined,t):e}var fm=pullAllWith;var cm=Array.prototype;var lm=cm.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(ot(i)){lm.call(e,i,1)}else{ky(e,i)}}}return e}var vm=basePullAt;var dm=Ra(function(e,r){var t=e==null?0:e.length,n=Oa(e,r);vm(e,$(r,function(e){return ot(e,t)?+e:e}).sort(Uy));return n});var pm=dm;var hm=Math.floor,gm=Math.random;function baseRandom(e,r){return e+hm(gm()*(r-e+1))}var ym=baseRandom;var bm=parseFloat;var mm=Math.min,_m=Math.random;function random(e,r,t){if(t&&typeof t!="boolean"&&Vt(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=ae(e);if(r===undefined){r=e;e=0}else{r=ae(r)}}if(e>r){var n=e;e=r;r=n}if(t||e%1||r%1){var i=_m();return mm(e+i*(r-e+bm("1e-"+((i+"").length-1))),r)}return ym(e,r)}var wm=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 xm=baseRange;function createRange(e){return function(r,t,n){if(n&&typeof n!="number"&&Vt(r,t,n)){t=n=undefined}r=ae(r);if(t===undefined){t=r;r=0}else{t=ae(t)}n=n===undefined?r1&&Vt(e,r[0],r[1])){r=[]}else if(t>2&&Vt(r[0],r[1],r[2])){r=[r[0]]}return Gy(e,Ia(r,1),[])});var g_=h_;var y_=4294967295,b_=y_-1;var m_=Math.floor,__=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=B(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&&!B(o)&&(t?o<=r:o>>0;if(!t){return[]}e=ya(e);if(e&&(typeof r=="string"||r!=null&&!bg(r))){r=G(r);if(!r&&go(e)){return oo($o(e),0,t)}}return e.split(r,t)}var M_=split;var B_="Expected a function";var D_=Math.max;function spread(e,r){if(typeof e!="function"){throw new TypeError(B_)}r=r==null?0:D_(oe(r),0);return Xt(function(t){var n=t[r],i=oo(t,0,r);if(n){xa(i,n)}return qe(e,this,i)})}var L_=spread;var $_=Ju(function(e,r,t){return e+(t?" ":"")+zo(r)});var N_=$_;function startsWith(e,r,t){e=ya(e);t=t==null?0:cs(oe(t),0,e.length);r=G(r);return e.slice(t,t+r.length)==r}var F_=startsWith;function stubObject(){return{}}var z_=stubObject;function stubString(){return""}var U_=stubString;function stubTrue(){return true}var q_=stubTrue;var G_=H(function(e,r){return e-r},0);var H_=G_;function sum(e){return e&&e.length?ny(e,fe):0}var K_=sum;function sumBy(e,r){return e&&e.length?ny(e,Ul(r,2)):0}var Z_=sumBy;function tail(e){var r=e==null?0:e.length;return r?ao(e,1,r):[]}var X_=tail;function take(e,r,t){if(!(e&&e.length)){return[]}r=t||r===undefined?1:oe(r);return ao(e,0,r<0?0:r)}var Y_=take;function takeRight(e,r,t){var n=e==null?0:e.length;if(!n){return[]}r=t||r===undefined?1:oe(r);r=n-r;return ao(e,r<0?0:r,n)}var J_=takeRight;function takeRightWhile(e,r){return e&&e.length?id(e,Ul(r,3),false,true):[]}var Q_=takeRightWhile;function takeWhile(e,r){return e&&e.length?id(e,Ul(r,3)):[]}var V_=takeWhile;function tap(e,r){r(e);return e}var ew=tap;var rw=Object.prototype;var tw=rw.hasOwnProperty;function customDefaultsAssignIn(e,r,t,n){if(e===undefined||zt(e,rw[t])&&!tw.call(n,t)){return r}return e}var nw=customDefaultsAssignIn;var iw={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function escapeStringChar(e){return"\\"+iw[e]}var aw=escapeStringChar;var ow=/<%=([\s\S]+?)%>/g;var uw=ow;var sw=/<%-([\s\S]+?)%>/g;var fw=sw;var cw=/<%([\s\S]+?)%>/g;var lw=cw;var vw={escape:fw,evaluate:lw,interpolate:uw,variable:"",imports:{_:{escape:Wd}}};var dw=vw;var pw=/\b__p \+= '';/g,hw=/\b(__p \+=) '' \+/g,gw=/(__e\(.*?\)|\b__t\)) \+\n'';/g;var yw=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;var bw=/($^)/;var mw=/['\n\r\u2028\u2029\\]/g;var _w=Object.prototype;var ww=_w.hasOwnProperty;function template(e,r,t){var n=dw.imports._.templateSettings||dw;if(t&&Vt(e,r,t)){r=undefined}e=ya(e);r=xi({},r,n,nw);var i=xi({},r.imports,n.imports,nw),a=li(i),o=rh(i,a);var u,s,f=0,c=r.interpolate||bw,l="__p += '";var v=RegExp((r.escape||bw).source+"|"+c.source+"|"+(c===uw?yw:bw).source+"|"+(r.evaluate||bw).source+"|$","g");var d=ww.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(mw,aw);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=ww.call(r,"variable")&&r.variable;if(!p){l="with (obj) {\n"+l+"\n}\n"}l=(s?l.replace(pw,""):l).replace(hw,"$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=Ga(function(){return Function(a,d+"return "+l).apply(undefined,o)});h.source=l;if(Ua(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(X(t)){n="leading"in t?!!t.leading:n;i="trailing"in t?!!t.trailing:i}return wv(e,r,{leading:n,maxWait:r,trailing:i})}var xw=throttle;function thru(e,r){return r(e)}var Ew=thru;var jw=9007199254740991;var Iw=4294967295;var Aw=Math.min;function times(e,r){e=oe(e);if(e<1||e>jw){return[]}var t=Iw,n=Aw(e,Iw);r=ud(r);e-=Iw;var i=nn(n,r);while(++t-1){}return t}var $w=charsEndIndex;function charsStartIndex(e,r){var t=-1,n=e.length;while(++t-1){}return t}var Nw=charsStartIndex;var Fw=/^\s+|\s+$/g;function trim(e,r,t){e=ya(e);if(e&&(t||r===undefined)){return e.replace(Fw,"")}if(!e||!(r=G(r))){return e}var n=$o(e),i=$o(r),a=Nw(n,i),o=$w(n,i)+1;return oo(n,a,o).join("")}var zw=trim;var Uw=/\s+$/;function trimEnd(e,r,t){e=ya(e);if(e&&(t||r===undefined)){return e.replace(Uw,"")}if(!e||!(r=G(r))){return e}var n=$o(e),i=$w(n,$o(r))+1;return oo(n,0,i).join("")}var qw=trimEnd;var Gw=/^\s+/;function trimStart(e,r,t){e=ya(e);if(e&&(t||r===undefined)){return e.replace(Gw,"")}if(!e||!(r=G(r))){return e}var n=$o(e),i=Nw(n,$o(r));return oo(n,i).join("")}var Hw=trimStart;var Kw=30,Zw="...";var Xw=/\w*$/;function truncate(e,r){var t=Kw,n=Zw;if(X(r)){var i="separator"in r?r.separator:i;t="length"in r?oe(r.length):t;n="omission"in r?G(r.omission):n}e=ya(e);var a=e.length;if(go(e)){var o=$o(e);a=o.length}if(t>=a){return e}var u=t-Wb(n);if(u<1){return n}var s=o?oo(o,0,u).join(""):e.slice(0,u);if(i===undefined){return s+n}if(o){u+=s.length-u}if(bg(i)){if(e.slice(u).search(i)){var f,c=s;if(!i.global){i=RegExp(i.source,ya(Xw.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(G(i),u)!=u){var v=s.lastIndexOf(i);if(v>-1){s=s.slice(0,v)}}return s+n}var Yw=truncate;function unary(e){return Nt(e,1)}var Jw=unary;var Qw={"&":"&","<":"<",">":">",""":'"',"'":"'"};var Vw=Go(Qw);var eS=Vw;var rS=/&(?:amp|lt|gt|quot|#39);/g,tS=RegExp(rS.source);function unescape_unescape(e){e=ya(e);return e&&tS.test(e)?e.replace(rS,eS):e}var nS=unescape_unescape;var iS=1/0;var aS=!(Ks&&1/Qc(new Ks([,-0]))[1]==iS)?Ve:function(e){return new Ks(e)};var oS=aS;var uS=200;function baseUniq(e,r,t){var n=-1,i=Dr,a=e.length,o=true,u=[],s=u;if(t){o=false;i=qv}else if(a>=uS){var f=r?null:oS(e);if(f){return Qc(f)}o=false;i=Kc;s=new Gc}else{s=r?[]:u}e:while(++n1||this.__actions__.length||!(n instanceof Qe)||!ot(t)){return this.thru(i)}n=n.slice(t,+t+(r?1:0));n.__actions__.push({func:Ew,args:[i],thisArg:undefined});return new ur(n,this.__chain__).thru(function(e){if(r&&!e.length){e.push(undefined)}return e})});var PS=TS;function wrapperChain(){return os(this)}var MS=wrapperChain;function wrapperReverse(){var e=this.__wrapped__;if(e instanceof Qe){var r=e;if(this.__actions__.length){r=new Qe(this)}r=r.reverse();r.__actions__.push({func:Ew,args:[Hm],thisArg:undefined});return new ur(r,this.__chain__)}return this.thru(Hm)}var BS=wrapperReverse;function baseXor(e,r,t){var n=e.length;if(n<2){return n?sS(e[0]):[]}var i=-1,a=Array(n);while(++i1?e[r-1]:undefined;t=typeof t=="function"?(e.pop(),t):undefined;return OS(e,t)});var YS=XS;var JS={chunk:fs,compact:Nc,concat:Fc,difference:Zv,differenceBy:Jv,differenceWith:Vv,drop:td,dropRight:nd,dropRightWhile:ad,dropWhile:od,fill:Fd,findIndex:Hd,findLastIndex:Vd,first:np,flatten:Aa,flattenDeep:lp,flattenDepth:vp,fromPairs:Wp,head:np,indexOf:oh,initial:uh,intersection:vh,intersectionBy:ph,intersectionWith:gh,join:kg,last:Xv,lastIndexOf:Lg,nth:Ay,pull:um,pullAll:am,pullAllBy:sm,pullAllWith:fm,pullAt:pm,remove:Lm,reverse:Hm,slice:c_,sortedIndex:E_,sortedIndexBy:j_,sortedIndexOf:I_,sortedLastIndex:A_,sortedLastIndexBy:R_,sortedLastIndexOf:k_,sortedUniq:C_,sortedUniqBy:T_,tail:X_,take:Y_,takeRight:J_,takeRightWhile:Q_,takeWhile:V_,union:cS,unionBy:vS,unionWith:pS,uniq:hS,uniqBy:gS,uniqWith:yS,unzip:SS,unzipWith:OS,without:WS,xor:$S,xorBy:FS,xorWith:US,zip:GS,zipObject:KS,zipObjectDeep:ZS,zipWith:YS};var QS={countBy:cv,each:sd,eachRight:hd,every:Dd,filter:Ud,find:Zd,findLast:rp,flatMap:op,flatMapDeep:sp,flatMapDepth:fp,forEach:sd,forEachRight:hd,groupBy:Lp,includes:ih,invokeMap:Th,keyBy:Pg,map:ap,orderBy:Hy,partition:Xb,reduce:Pm,reduceRight:Bm,reject:Dm,sample:Jm,sampleSize:r_,shuffle:o_,size:f_,some:p_,sortBy:g_};var VS={now:yv};var eO={after:se,ary:Nt,before:Ka,bind:Ja,bindKey:io,curry:dv,curryRight:hv,debounce:wv,defer:Fv,delay:Uv,flip:pp,memoize:ca,negate:_y,once:Fy,overArgs:eb,partial:qb,partialRight:Kb,rearg:Cm,rest:zm,spread:L_,throttle:xw,unary:Jw,wrap:CS};var rO={castArray:es,clone:kc,cloneDeep:Tc,cloneDeepWith:Bc,cloneWith:Lc,conformsTo:Yl,eq:zt,gt:zp,gte:qp,isArguments:ln,isArray:F,isArrayBuffer:Lh,isArrayLike:Qt,isArrayLikeObject:Av,isBoolean:Nh,isBuffer:mn,isDate:Gh,isElement:Hh,isEmpty:Jh,isEqual:Qh,isEqualWith:Vh,isError:Ua,isFinite:rg,isFunction:pe,isInteger:tg,isLength:Jt,isMap:Hf,isMatch:ng,isMatchWith:ig,isNaN:ug,isNative:lg,isNil:vg,isNull:dg,isNumber:og,isObject:X,isObjectLike:P,isPlainObject:Na,isRegExp:bg,isSafeInteger:_g,isSet:Jf,isString:eh,isSymbol:B,isTypedArray:ri,isUndefined:wg,isWeakMap:Og,isWeakSet:Eg,lt:Gg,lte:Kg,toArray:Ey,toFinite:ae,toInteger:oe,toLength:$d,toNumber:te,toPlainObject:kv,toSafeInteger:Bw,toString:ya};var tO={add:Z,ceil:as,divide:rd,floor:gp,max:ry,maxBy:ty,mean:oy,meanBy:uy,min:py,minBy:hy,multiply:by,round:Zm,subtract:H_,sum:K_,sumBy:Z_};var nO={clamp:ls,inRange:Qp,random:wm};var iO={assign:hi,assignIn:Si,assignInWith:xi,assignWith:ji,at:Wa,create:lv,defaults:jv,defaultsDeep:Dv,entries:Od,entriesIn:Ed,extend:Si,extendWith:xi,findKey:Yd,findLastKey:tp,forIn:Ip,forInRight:Ap,forOwn:Rp,forOwnRight:kp,functions:Tp,functionsIn:Pp,get:Sa,has:Zp,hasIn:Bl,invert:Sh,invertBy:Ih,invoke:Wh,keys:li,keysIn:_i,mapKeys:Zg,mapValues:Xg,merge:fy,mergeWith:Mv,omit:By,omitBy:Ny,pick:Qb,pickBy:$y,result:Um,set:t_,setWith:n_,toPairs:Od,toPairsIn:Ed,transform:Lw,unset:_S,update:ES,updateWith:jS,values:th,valuesIn:RS};var aO={at:PS,chain:os,commit:$c,lodash:vr,next:jy,plant:Vb,reverse:BS,tap:ew,thru:Ew,toIterator:kw,toJSON:Cw,value:Cw,valueOf:Cw,wrapperChain:MS};var oO={camelCase:Vu,capitalize:Uo,deburr:tu,endsWith:gd,escape:Wd,escapeRegExp:Pd,kebabCase:Cg,lowerCase:Ng,lowerFirst:zg,pad:Bb,padEnd:Db,padStart:Lb,parseInt:Fb,repeat:$m,replace:Nm,snakeCase:v_,split:M_,startCase:N_,startsWith:F_,template:Sw,templateSettings:dw,toLower:Tw,toUpper:Dw,trim:zw,trimEnd:qw,trimStart:Hw,truncate:Yw,unescape:nS,upperCase:AS,upperFirst:zo,words:Zu};var uO={attempt:Ga,bindAll:Va,cond:Gl,conforms:Xl,constant:Er,defaultTo:Sv,flow:xp,flowRight:jp,identity:fe,iteratee:Ig,matches:Jg,matchesProperty:Vg,method:ly,methodOf:dy,mixin:gy,noop:Ve,nthArg:Ry,over:Xy,overEvery:tb,overSome:ib,property:zl,propertyOf:em,range:Im,rangeRight:Rm,stubArray:As,stubFalse:vn,stubObject:z_,stubString:U_,stubTrue:q_,times:Rw,toPath:Pw,uniqueId:mS};function lazyClone(){var e=new Qe(this.__wrapped__);e.__actions__=sr(this.__actions__);e.__dir__=this.__dir__;e.__filtered__=this.__filtered__;e.__iteratees__=sr(this.__iteratees__);e.__takeCount__=this.__takeCount__;e.__views__=sr(this.__views__);return e}var sO=lazyClone;function lazyReverse(){if(this.__filtered__){var e=new Qe(this);e.__dir__=-1;e.__filtered__=true}else{e=this.clone();e.__dir__*=-1}return e}var fO=lazyReverse;var cO=Math.max,lO=Math.min;function getView(e,r,t){var n=-1,i=t.length;while(++n0||r<0)){return new Qe(t)}if(e<0){t=t.takeRight(-e)}else if(e){t=t.drop(e)}if(r!==undefined){r=oe(r);t=r<0?t.dropRight(-r):t.take(r-e)}return t};Qe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()};Qe.prototype.toArray=function(){return this.take(wO)};rv(Qe.prototype,function(e,r){var t=/^(?:filter|find|map|reject)|While$/.test(r),n=/^(?:head|last)$/.test(r),i=vr[n?"take"+(r=="last"?"Right":""):r],a=n||/^find/.test(r);if(!i){return}vr.prototype[r]=function(){var r=this.__wrapped__,o=n?[1]:arguments,u=r instanceof Qe,s=o[0],f=u||F(r);var c=function(e){var r=i.apply(vr,xa([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 Qe(this);var h=e.apply(r,o);h.__actions__.push({func:Ew,args:[c],thisArg:undefined});return new ur(h,l)}if(d&&p){return e.apply(this,o)}h=this.thru(c);return d?n?h.value()[0]:h.value():h}});Cr(["pop","push","shift","sort","splice","unshift"],function(e){var r=SO[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);vr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return r.apply(F(i)?i:[],e)}return this[t](function(t){return r.apply(F(t)?t:[],e)})}});rv(Qe.prototype,function(e,r){var t=vr[r];if(t){var n=t.name+"";if(!xO.call(nr,n)){nr[n]=[]}nr[n].push({name:r,func:t})}});nr[yt(undefined,bO).name]=[{name:"wrapper",func:undefined}];Qe.prototype.clone=sO;Qe.prototype.reverse=fO;Qe.prototype.value=gO;vr.prototype.at=aO.at;vr.prototype.chain=aO.wrapperChain;vr.prototype.commit=aO.commit;vr.prototype.next=aO.next;vr.prototype.plant=aO.plant;vr.prototype.reverse=aO.reverse;vr.prototype.toJSON=vr.prototype.valueOf=vr.prototype.value=aO.value;vr.prototype.first=vr.prototype.head;if(EO){vr.prototype[EO]=aO.toIterator}var RO=vr;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(!Zp(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 qw(`${this.version}-${this.builderPlatform}`,"-")}get image(){return Hw(`${this.repository}/${this.name}`,"/")}toString(){const{image:e,tag:r}=this;return`${e}:${r}`}}var kO=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 kO({repository:"",name:"unity-builder",version:a,platform:o});const s=`docker build ${t} --file ${n} --build-arg IMAGE=${i} --tag ${u}`;await Object(p.exec)(s,undefined,{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,buildVersion:l,customParameters:v}=r;const d=`docker run --workdir /github/workspace --rm --env UNITY_LICENSE --env UNITY_LICENSE_FILE --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 VERSION="${l}" --env CUSTOM_PARAMETERS="${v}" --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(p.exec)(d,undefined,{silent:t})}}var WO=docker_Docker;class NotImplementedException extends Error{constructor(e){super(e);this.name="NotImplementedException"}}var CO=NotImplementedException;class ValidationError extends Error{constructor(e){super(e);this.name="ValidationError"}}var TO=ValidationError;class system_System{static async run(e,r,t){let n="";let i="";let a="";const o={stdout:e=>{n+=e.toString()},stderr:e=>{i+=e.toString()},debug:e=>{a+=e.toString()}};const u=await Object(p.exec)(e,r,{silent:true,listeners:o,...t});if(a!==""){Object(c.debug)(a)}if(n!==""){Object(c.info)(n)}if(u!==0){throw new Error(i)}if(i!==""){Object(c.warning)(i)}return n}}var PO=system_System;class versioning_Versioning{static get strategies(){return{None:"None",Semantic:"Semantic",Tag:"Tag",Custom:"Custom"}}static get branch(){return this.headRef||this.ref&&this.ref.slice(11)}static get headRef(){return process.env.GITHUB_HEAD_REF}static get ref(){return process.env.GITHUB_REF}static get descriptionRegex(){return/^v([\d.]+)-(\d+)-g(\w+)-?(\w+)*/g}static async determineVersion(e,r){if(!Object.hasOwnProperty.call(this.strategies,e)){throw new TO(`Versioning strategy should be one of ${Object.values(this.strategies).join(", ")}.`)}let t;switch(e){case this.strategies.None:t="none";break;case this.strategies.Custom:t=r;break;case this.strategies.Semantic:t=await this.generateSemanticVersion();break;case this.strategies.Tag:t=await this.generateTagVersion();break;default:throw new CO(`Strategy ${e} is not implemented.`)}return t}static async generateSemanticVersion(){await this.fetch();if(await this.isDirty()){throw new Error("Branch is dirty. Refusing to base semantic version on uncommitted changes")}if(!await this.hasAnyVersionTags()){const e=`0.0.${await this.getTotalNumberOfCommits()}`;Object(c.info)(`Generated version ${e} (no version tags found).`);return e}const{tag:e,commits:r,hash:t}=await this.parseSemanticVersion();Object(c.info)(`Found semantic version ${e}.${r} for ${this.branch}@${t}`);return`${e}.${r}`}static async generateTagVersion(){let e=await this.getTag();if(e.charAt(0)==="v"){e=e.slice(1)}return e}static async parseSemanticVersion(){const e=await this.getVersionDescription();try{const[r,t,n,i]=this.descriptionRegex.exec(e);return{match:r,tag:t,commits:n,hash:i}}catch(r){throw new Error(`Failed to parse git describe output: "${e}".`)}}static async fetch(){try{await PO.run("git",["fetch","--unshallow"])}catch(e){Object(c.warning)(e);await PO.run("git",["fetch"])}}static async getVersionDescription(){return PO.run("git",["describe","--long","--tags","--always","--debug",`origin/${this.branch}`])}static async isDirty(){const e=await PO.run("git",["status","--porcelain"]);return e!==""}static async getTag(){return PO.run("git",["tag","--points-at","HEAD"])}static async hasAnyVersionTags(){const e=await PO.run("sh",undefined,{input:Buffer.from("git tag --list --merged HEAD | grep v[0-9]* | wc -l"),silent:false});const r=Number.parseInt(e,10);return r!==0}static async getTotalNumberOfCommits(){const e=await PO.run("git",["rev-list","--count",`origin/${this.branch}`]);return Number.parseInt(e,10)}}const MO=t(470);class input_Input{static async getFromUser(){const e=MO.getInput("unityVersion");const r=MO.getInput("targetPlatform")||o.default;const t=MO.getInput("projectPath")||".";const n=MO.getInput("buildName")||r;const i=MO.getInput("buildsPath")||"build";const a=MO.getInput("buildMethod");const u=MO.getInput("versioning")||"Semantic";const s=MO.getInput("version")||"";const f=MO.getInput("customParameters")||"";const c=t.replace(/\/$/,"");const l=await versioning_Versioning.determineVersion(u,s);return{version:e,targetPlatform:r,projectPath:c,buildName:n,buildsPath:i,buildMethod:a,buildVersion:l,customParameters:f}}}var BO=input_Input;const DO=t(470);async function src_action(){a.checkCompatibility();d.verify();const{dockerfile:e,workspace:r,actionFolder:t}=a;const n=u.create(await BO.getFromUser());const i=new kO(n);const o=await WO.build({path:t,dockerfile:e,baseImage:i});await WO.run(o,{workspace:r,...n})}src_action().catch(e=>{DO.setFailed(e.message)})},87:function(e){e.exports=require("os")},129:function(e){e.exports=require("child_process")},357:function(e){e.exports=require("assert")},431:function(e,r,t){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)if(Object.hasOwnProperty.call(e,t))r[t]=e[t];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const i=n(t(87));function issueCommand(e,r,t){const n=new Command(e,r,t);process.stdout.write(n.toString()+i.EOL)}r.issueCommand=issueCommand;function issue(e,r=""){issueCommand(e,{},r)}r.issue=issue;const a="::";class Command{constructor(e,r,t){if(!e){e="missing.command"}this.command=e;this.properties=r;this.message=t}toString(){let e=a+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=true;for(const t in this.properties){if(this.properties.hasOwnProperty(t)){const n=this.properties[t];if(n){if(r){r=false}else{e+=","}e+=`${t}=${escapeProperty(n)}`}}}}e+=`${a}${escapeData(this.message)}`;return e}}function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}r.toCommandValue=toCommandValue;function escapeData(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},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())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)if(Object.hasOwnProperty.call(e,t))r[t]=e[t];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const a=t(431);const o=i(t(87));const u=i(t(622));var s;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(s=r.ExitCode||(r.ExitCode={}));function exportVariable(e,r){const t=a.toCommandValue(r);process.env[e]=t;a.issueCommand("set-env",{name:e},t)}r.exportVariable=exportVariable;function setSecret(e){a.issueCommand("add-mask",{},e)}r.setSecret=setSecret;function addPath(e){a.issueCommand("add-path",{},e);process.env["PATH"]=`${e}${u.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){a.issueCommand("set-output",{name:e},r)}r.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}r.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=s.Failure;error(e)}r.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}r.isDebug=isDebug;function debug(e){a.issueCommand("debug",{},e)}r.debug=debug;function error(e){a.issue("error",e instanceof Error?e.toString():e)}r.error=error;function warning(e){a.issue("warning",e instanceof Error?e.toString():e)}r.warning=warning;function info(e){process.stdout.write(e+o.EOL)}r.info=info;function startGroup(e){a.issue("group",e)}r.startGroup=startGroup;function endGroup(){a.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){a.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())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)if(Object.hasOwnProperty.call(e,t))r[t]=e[t];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const a=i(t(9));function exec(e,r,t){return n(this,void 0,void 0,function*(){const n=a.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=n[0];r=n.slice(1).concat(r||[]);const o=new a.ToolRunner(i,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/versioning.js b/src/model/versioning.js index 0f28b263a..4b25834f9 100644 --- a/src/model/versioning.js +++ b/src/model/versioning.js @@ -199,7 +199,11 @@ export default class Versioning { * Note: HEAD should not be used, as it may be detached, resulting in an additional count. */ static async getTotalNumberOfCommits() { - const numberOfCommitsAsString = await System.run('git', ['rev-list', '--count', this.branch]); + const numberOfCommitsAsString = await System.run('git', [ + 'rev-list', + '--count', + `origin/${this.branch}`, + ]); return Number.parseInt(numberOfCommitsAsString, 10); }