"use strict";vare=require("fs"),t=require("path"),n=require("os"),r=require("crypto"),u=require("child_process"),o=require("constants"),i=require("stream"),s=require("util"),c=require("assert"),a=require("tty"),l=require("zlib"),f=require("net");functiond(e){returne&&"object"==typeofe&&"default"ine?e:{default:e}}varD=d(e),p=d(t),E=d(n),m=d(r),h=d(u),y=d(o),C=d(i),F=d(s),g=d(c),A=d(a),v=d(l),S=d(f),w="undefined"!=typeofglobalThis?globalThis:"undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:{},O={},b={},_={},B=w&&w.__importDefault||function(e){returne&&e.__esModule?e:{default:e}};Object.defineProperty(_,"__esModule",{value:!0}),_.isMac=_.isLinux=_.isWindows=void0;constP=B(E.default),k="Windows_NT",x="Linux",N="Darwin";_.isWindows=function(){returnP.default.type()===k},_.isLinux=function(){returnP.default.type()===x},_.isMac=function(){returnP.default.type()===N};varI={},T=w&&w.__createBinding||(Object.create?function(e,t,n,r){void0===r&&(r=n);varu=Object.getOwnPropertyDescriptor(t,n);u&&!("get"inu?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){returnt[n]}}),Object.defineProperty(e,r,u)}:function(e,t,n,r){void0===r&&(r=n),e[r]=t[n]}),R=w&&w.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),M=w&&w.__importStar||function(e){if(e&&e.__esModule)returne;vart={};if(null!=e)for(varnine)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&T(t,e,n);returnR(t,e),t};Object.defineProperty(I,"__esModule",{value:!0}),I.hash=void0;constL=M(m.default);I.hash=function(e,t="md5"){returnL.createHash(t).update(e,"utf-8").digest("hex")},function(e){vart=w&&w.__createBinding||(Object.create?function(e,t,n,r){void0===r&&(r=n);varu=Object.getOwnPropertyDescriptor(t,n);u&&!("get"inu?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){returnt[n]}}),Object.defineProperty(e,r,u)}:function(e,t,n,r){void0===r&&(r=n),e[r]=t[n]}),n=w&&w.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=w&&w.__importStar||function(e){if(e&&e.__esModule)returne;varr={};if(null!=e)for(varuine)"default"!==u&&Object.prototype.hasOwnProperty.call(e,u)&&t(r,e,u);returnn(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.HVIGOR_BOOT_JS_FILE_PATH=e.HVIGOR_PROJECT_DEPENDENCY_PACKAGE_JSON_PATH=e.HVIGOR_PROJECT_DEPENDENCIES_HOME=e.HVIGOR_PROJECT_WRAPPER_HOME=e.HVIGOR_PROJECT_NAME=e.HVIGOR_PROJECT_ROOT_DIR=e.HVIGOR_PROJECT_CACHES_HOME=e.HVIGOR_PNPM_STORE_PATH=e.HVIGOR_WRAPPER_PNPM_SCRIPT_PATH=e.HVIGOR_WRAPPER_TOOLS_HOME=e.HVIGOR_USER_HOME=e.DEFAULT_PACKAGE_JSON=e.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME=e.PNPM=e.HVIGOR=e.NPM_TOOL=e.PNPM_TOOL=e.HVIGOR_ENGINE_PACKAGE_NAME=void0;constu=r(p.default),o=r(E.default),i=_,s=I;e.HVIGOR_ENGINE_PACKAGE_NAME="@ohos/hvigor",e.PNPM_TOOL=(0,i.isWindows)()?"pnpm.cmd":"pnpm",e.NPM_TOOL=(0,i.isWindows)()?"npm.cmd":"npm",e.HVIGOR="hvigor",e.PNPM="pnpm",e.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME="hvigor-config.json5",e.DEFAULT_PACKAGE_JSON="package.json",e.HVIGOR_USER_HOME=u.resolve(o.homedir(),".hvigor"),e.HVIGOR_WRAPPER_TOOLS_HOME=u.resolve(e.HVIGOR_USER_HOME,"wrapper","tools"),e.HVIGOR_WRAPPER_PNPM_SCRIPT_PATH=u.resolve(e.HVIGOR_WRAPPER_TOOLS_HOME,"node_modules",".bin",e.PNPM_TOOL),e.HVIGOR_PNPM_STORE_PATH=u.resolve(e.HVIGOR_USER_HOME,"caches"),e.HVIGOR_PROJECT_CACHES_HOME=u.resolve(e.HVIGOR_USER_HOME,"project_caches"),e.HVIGOR_PROJECT_ROOT_DIR=process.cwd(),e.HVIGOR_PROJECT_NAME=u.basename((0,s.hash)(e.HVIGOR_PROJECT_ROOT_DIR)),e.HVIGOR_PROJECT_WRAPPER_HOME=u.resolve(e.HVIGOR_PROJECT_ROOT_DIR,e.HVIGOR),e.HVIGOR_PROJECT_DEPENDENCIES_HOME=u.resolve(e.HVIGOR_PROJECT_CACHES_HOME,e.HVIGOR_PROJECT_NAME,"workspace"),e.HVIGOR_PROJECT_DEPENDENCY_PACKAGE_JSON_PATH=u.resolve(e.HVIGOR_PROJECT_DEPENDENCIES_HOME,e.DEFAULT_PACKAGE_JSON),e.HVIGOR_BOOT_JS_FILE_PATH=u.resolve(e.HVIGOR_PROJECT_DEPENDENCIES_HOME,"node_modules","@ohos","hvigor","bin","hvigor.js")}(b);varj={},$={};Object.defineProperty($,"__esModule",{value:!0}),$.logInfoPrintConsole=$.logErrorAndExit=void0,$.logErrorAndExit=function(e){einstanceofError?console.error(e.message):console.error(e),process.exit(-1)},$.logInfoPrintConsole=function(e){console.log(e)};varH=w&&w.__createBinding||(Object.create?function(e,t,n,r){void0===r&&(r=n);varu=Object.getOwnPropertyDescriptor(t,n);u&&!("get"inu?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){returnt[n]}}),Object.defineProperty(e,r,u)}:function(e,t,n,r){void0===r&&(r=n),e[r]=t[n]}),J=w&&w.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),G=w&&w.__importStar||function(e){if(e&&e.__esModule)returne;vart={};if(null!=e)for(varnine)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&H(t,e,n);returnJ(t,e),t},V=w&&w.__importDefault||function(e){returne&&e.__esModule?e:{default:e}};Object.defineProperty(j,"__esModule",{value:!0}),j.isFileExists=j.offlinePluginConversion=j.executeCommand=j.getNpmPath=j.hasNpmPackInPaths=void0;constU=h.default,W=G(p.default),z=b,K=$,q=V(D.default);j.hasNpmPackInPaths=function(e,t){try{returnrequire.resolve(e,{paths:[...t]}),!0}catch(e){return!1}},j.getNpmPath=function(){conste=process.execPath;returnW.join(W.dirname(e),z.NPM_TOOL)},j.executeCommand=function(e,t,n){0!==(0,U.spawnSync)(e,t,n).status&&(0,K.logErrorAndExit)(`Error: ${e}${t} execute failed.See above for details.`)},j.offlinePluginConversion=function(e,t){returnt.startsWith("file:")||t.endsWith(".tgz")?W.resolve(e,z.HVIGOR,t.replace("file:","")):t},j.isFileExists=function(e){returnq.default.existsSync(e)&&q.default.statSync(e).isFile()},function(e){vart=w&&w.__createBinding||(Object.create?function(e,t,n,r){void0===r&&(r=n);varu=Object.getOwnPropertyDescriptor(t,n);u&&!("get"inu?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){returnt[n]}}),Object.defineProperty(e,r,u)}:function(e,t,n,r){void0===r&&(r=n),e[r]=t[n]}),n=w&&w.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=w&&w.__importStar||function(e){if(e&&e.__esModule)returne;varr={};if(null!=e)for(varuine)"default"!==u&&Object.prototype.hasOwnProperty.call(e,u)&&t(r,e,u);returnn(r,e),r},u=w&&w.__importDefault||function(e){returne&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.executeInstallPnpm=e.isPnpmAvailable=e.environmentHandler=e.checkNpmConifg=e.PNPM_VERSION=void0;consto=r(D.default),i=b,s=j,c=r(p.default),a=$,l=h.default,f=u(E.default);e.PNPM_VERSION="7.30.0",e.checkNpmConifg=function(){conste=c.resolve(i.HVIGOR_PROJECT_ROOT_DIR,".npmrc"),t=c.resolve(f.default.homedir(),".npmrc");if((0,s.isFileExists)(e)||(0,s.isFileExists)(t))return;constn=(0,s.getNpmPath)(),r=(0,l.spawnSync)(n,["config","get","prefix"],{cwd:i.HVIGOR_PROJECT_ROOT_DIR});if(0!==r.status||!r.stdout)returnvoid(0,a.logErrorAndExit)("Error: The hvigor depends on the npmrc file. Configure the npmrc file first.");constu=c.resolve(`${r.stdout}`.replace(/[\r\n]/gi,""),".npmrc");(0,s.isFileExists)(u)||(0,a.logErrorAndExit)("Error: The hvigor depends on the npmrc file. Configure the npmrc file first.")},e.environmentHandler=function(){process.env["npm_config_update-notifier"]="false"},e.isPnpmAvailable=function(){return!!o.existsSync(i.HVIGOR_WRAPPER_PNPM_SCRIPT_PATH)&&(0,s.hasNpmPackInPaths)("pnpm",[i.HVIGOR_WRAPPER_TOOLS_HOME])},e.executeInstallPnpm=function(){(0,a.logInfoPrintConsole)(`Installing pnpm@${e.PNPM_VERSION}...`);constt=(0,s.getNpmPath)();!function(){constt=c.resolve(i.HVIGOR_WRAPPER_TOOLS_HOME,i.DEFAULT_PACKAGE_JSON);try{o.existsSync(i.HVIGOR_WRAPPER_TOOLS_HOME)||o.mkdirSync(i.HVIGOR_WRAPPER_TOOLS_HOME,{recursive:!0});constn={dependencies:{}};n.dependencies[i.PNPM]=e.PNPM_VERSION,o.writeFileSync(t,JSON.stringify(n))}catch(e){(0,a.logErrorAndExit)(`Error: EPERM: operation not permitted,create ${t} failed.`)}}(),(0,s.executeCommand)(t,["install","pnpm"],{cwd:i.HVIGOR_WRAPPER_TOOLS_HOME,stdio:["inherit","inherit","inherit"],env:process.env}),(0,a.logInfoPrintConsole)("Pnpm install success.")}}(O);varY={},X={},Z={},Q={};Object.defineProperty(Q,"__esModule",{value:!0}),Q.Unicode=void0;classee{}Q.Unicode=ee,ee.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ee.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ee.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Object.defineProperty(Z,"__esModule",{value:!0}),Z.JudgeUtil=void0;constte=Q;Z.JudgeUtil=class{staticisIgnoreChar(e){return"string"==typeofe&&("\t"===e||"\v"===e||"\f"===e||""===e||""===e||"\ufeff"===e||"\n"===e||"\r"===e||"\u2028"===e||"\u2029"===e)}staticisSpaceSeparator(e){return"string"==typeofe&&te.Unicode.Space_Separator.test(e)}staticisIdStartChar(e){return"string"==typeofe&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||"$"===e||"_"===e||te.Unicode.ID_Start.test(e))}staticisIdContinueChar(e){return"string"==typeofe&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"$"===e||"_"===e||""===e||""===e||te.Unicode.ID_Continue.test(e))}staticisDigitWithoutZero(e){return/[1-9]/.test(e)}staticisDigit(e){return"string"==typeofe&&/[0-9]/.test(e)}staticisHexDigit(e){return"string"==typeofe&&/[0-9A-Fa-f]/.test(e)}};varne={},re={fromCallback:function(e){returnObject.defineProperty((function(...t){if("function"!=typeoft[t.length-1])returnnewPromise(((n,r)=>{e.call(this,...t,((e,t)=>null!=e?r(e):n(t)))}));e.apply(this,t)}),"name",{value:e.name})},fromPromise:function(e){returnObject.defineProperty((function(...t){constn=t[t.length-1];if("function"!=typeofn)returne.apply(this,t);e.apply(this,t.slice(0,-1)).then((e=>n(null,e)),n)}),"name",{value:e.name})}},ue=y.default,oe=process.cwd,ie=null,se=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){returnie||(ie=oe.call(process)),ie};try{process.cwd()}catch(e){}if("function"==typeofprocess.chdir){varce=process.chdir;process.chdir=function(e){ie=null,ce.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,ce)}varae=function(e){ue.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,n,r){e.open(t,ue.O_WRONLY|ue.O_SYMLINK,n,(function(t,u){t?r&&r(t):e.fchmod(u,n,(function(t){e.close(u,(function(e){r&&r(t||e)}))}))}))},e.lchmodSync=function(t,n){varr,u=e.openSync(t,ue.O_WRONLY|ue.O_SYMLINK,n),o=!0;try{r=e.fchmodSync(u,n),o=!1}finally{if(o)try{e.closeSync(u)}catch(e){}elsee.closeSync(u)}returnr}}(e);e.lutimes||function(e){ue.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,n,r,u){e.open(t,ue.O_SYMLINK,(function(t,o){t?u&&u(t):e.futimes(o,n,r,(function(t){e.close(o,(function(e){u&&u(t||e)}))}))}))},e.lutimesSync=function(t,n,r){varu,o=e.openSync(t,ue.O_SYMLINK),i=!0;try{u=e.futimesSync(o,n,r),i=!1}finally{if(i)try{e.closeSync(o)}catch(e){}elsee.closeSync(o)}returnu}):e.futimes&&(e.lutimes=function(e,t,n,r){r&&process.nextTick(r)},e.lutimesSync=function(){})}(e);e.chown=r(e.chown),e.fchown=r(e.fchown),e.lchown=r(e.lchown),e.chmod=t(e.chmod),e.fchmod=t(e.fchmod),e.lchmod=t(e.lchmod),e.chownSync=u(e.chownSync),e.fchownSync=u(e.fchownSync),e.lchownSync=u(e.lchownSync),e.chmodSync=n(e.chmodSync),e.fchmodSync=n(e.fchmodSync),e.lchmodSync=n(e.lchmodSync),e.stat=o(e.stat),e.fstat=o(e.fstat),e.lstat=o(e.lstat),e.statSync=i(e.statSync),e.fstatSync=i(e.fstatSync),e.lstatSync=i(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,n){n&&process.nextTick(n)},e.lchmodSync=function(){});e.chown&&!e.lchown&&(e.lchown=function(e,t,n,r){r&&process.nextTick(r)},e.lchownSync=function(){});"win32"===se&&(e.rename="function"!=typeofe.rename?e.rename:function(t){functionn(n,r,u){varo=Date.now(),i=0;t(n,r,(functions(c){if(c&&("EACCES"===c.code||"EPERM"===c.code||"EBUSY"===c.code)&&Date.now()-o<6e4)returnsetTimeout((function(){e.stat(r,(function(e,o){e&&"ENOENT"===e.code?t(n,r,s):u(c)}))}),i),void(i<100&&(i+=10));u&&u(c)}))}returnObject.setPrototypeOf&&Object.setPrototypeOf(n,t),n}(e.rename));functiont(t){returnt?function(n,r,u){returnt.call(e,n,r,(function(e){s(e)&&(e=null),u&&u.apply(this,arguments)}))}:t}functionn(t){returnt?function(n,r){try{returnt.call(e,n,r)}catch(e){if(!s(e))throwe}}:t}functionr(t){returnt?function(n,r,u,o){returnt.call(e,n,r,u,(function(e){s(e)&&(e=null),o&&o.apply(this,arguments)}))}:t}functionu(t){returnt?function(n,r,u){try{returnt.call(e,n,r,u)}catch(e){if(!s(e))throwe}}:t}functiono(t){returnt?function(n,r,u){functiono(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),u&&u.apply(this,arguments)}return"function"==typeofr&&(u=r,r=null),r?t.call(e,n,r,o):t.call(e,n,o)}:t}functioni(t){returnt?function(n,r){varu=r?t.call(e,n,r):t.call(e,n);returnu&&(u.uid<0&&(u.uid+=4294967296),u.gid<0&&(u.gid+=4294967296)),u}:t}functions(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}e.read="function"!=typeofe.read?e.read:function(t){functionn(n,r,u,o,i,s){varc;if(s&&"function"==typeofs){vara=0;c=function(l,f,d){if(l&&"EAGAIN"===l.code&&a<10)returna++,t.call(e,n,r,u,o,i,c);s.apply(this,arguments)}}returnt.call(e,n,r,u,o,i,c)}returnObject.setPrototypeOf&&Object.setPrototypeOf(n,t),n}(e.read),e.readSync="function"!=typeofe.readSync?e.readSync:(c=e.readSync,function(t,n,r,u,o){for(vari=0;;)try{returnc.call(e,t,n,r,u,o)}catch(e){if("EAGAIN"===e.code&&i<10){i++;continue}throwe}});varc};varle=C.default.Stream,fe=function(e){return{ReadStream:functiont(n,r){if(!(thisinstanceoft))returnnewt(n,r);le.call(this);varu=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,r=r||{};for(varo=Object.keys(r),i=0,s=o.length;i<s;i++){varc=o[i];this[c]=r[c]}this.encoding&&this.setEncoding(this.encoding);if(void0!==this.start){if("number"!=typeofthis.start)throwTypeError("start must be a Number");if(void0===this.end)this.end=1/0;elseif("number"!=typeofthis.end)throwTypeError("end must be a Number");if(this.start>this.end)thrownewError("start must be <= end");this.pos=this.start}if(null!==this.fd)returnvoidprocess.nextTick((function(){u._read()}));e.open(this.path,this.flags,this.mode,(function(e,t){if(e)returnu.emit("error",e),void(u.readable=!1);u.fd=t,u.emit("open",t),u._read()}))},WriteStream:functiont(n,r){if(!(thisinstanceoft))returnnewt(n,r);le.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,r=r||{};for(varu=Object.keys(r),o=0,i=u.length;o<i;o++){vars=u[o];this[s]=r[s]}if(void0!==this.start){if("number"!=typeofthis.start)throwTypeError("start must be a Number");if(this.start<0)thrownewError("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void0]),this.flush())}}};varde=function(e){if(null===e||"object"!=typeofe)returne;if(einstanceofObject)vart={__proto__:De(e)};elset=Object.create(null);returnObject.getOwnPropertyNames(e).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t},De=Object.getPrototypeOf||function(e){returne.__proto__};varpe,Ee,me=D.default,he=ae,ye=fe,Ce=de,Fe=F.default;functionge(e,t){Object.defineProperty(e,pe,{get:function(){returnt}})}"function"==typeofSymbol&&"function"==typeofSymbol.for?(pe=Symbol.for("graceful-fs.queue"),Ee=Symbol.for("graceful-fs.previous")):(pe="___graceful-fs.queue",Ee="___graceful-fs.previous");varAe=function(){};if(Fe.debuglog?Ae=Fe.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Ae=function(){vare=Fe.format.apply(Fe,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!me[pe]){varve=w[pe]||[];ge(me,ve),me.close=function(e){functiont(t,n){returne.call(me,t,(function(e){e||_e(),"function"==typeofn&&n.apply(this,arguments)}))}returnObject.defineProperty(t,Ee,{value:e}),t}(me.close),me.closeSync=function(e){functiont(t){e.apply(me,arguments),_e()}returnObject.defineProperty(t,Ee,{value:e}),t}(me.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){Ae(me[pe]),g.default.equal(me[pe].length,0)}))}w[pe]||ge(w,me[pe]);varSe,we=Oe(Ce(me));functionOe(e){he(e),e.gracefulify=Oe,e.createReadStream=function(t,n){returnnewe.ReadStream(t,n)},e.createWriteStream=function(t,n){returnnewe.WriteStream(t,n)};vart=e.readFile;e.readFile=function(e,n,r){"function"==typeofn&&(r=n,n=null);returnfunctione(n,r,u,o){returnt(n,r,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeofu&&u.apply(this,arguments):be([e,[n,r,u],t,o||Date.now(),Date.now()])}))}(e,n,r)};varn=e.writeFile;e.writeFile=function(e,t,r,u){"function"==typeofr&&(u=r,r=null);returnfunctione(t,r,u,o,i){returnn(t,r,u,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeofo&&o.apply(this,arguments):be([e,[t,r,u,o],n,i||Date.now(),Date.now()])}))}(e,t,r,u)};varr=e.appendFile;r&&(e.appendFile=function(e,t,n,u){"function"==typeofn&&(u=n,n=null);returnfunctione(t,n,u,o,i){returnr(t,n,u,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeofo&&o.apply(this,arguments):be([e,[t,n,u,o],r,i||Date.now(),Date.now()])}))}(e,t,n,u)});varu=e.copyFile;u&&(e.copyFile=function(e,t,n,r){"function"==typeofn&&(r=n,n=0);returnfunctione(t,n,r,o,i){returnu(t,n,r,(function(u){!u||"EMFILE"!==u.code&&"ENFILE"!==u.code?"function"==typeofo&&o.apply(this,arguments):be([e,[t,n,r,o],u,i||Date.now(),Date.now()])}))}(e,t,n,r)});varo=e.readdir;e.readdir=function(e,t,n){"function"==typeoft&&(n=t,t=null);varr=i.test(process.version)?function(e,t,n,r){returno(e,u(e,t,n,r))}:function(e,t,n,r){returno(e,t,u(e,t,n,r))};returnr(e,t,n);functionu(e,t,n,u){returnfunction(o,i){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?(i&&i.sort&&i.sort(),"function"==typeofn&&n.call(this,o,i)):be([r,[e,t,n],o,u||Date.now(),Date.now()])}}};vari=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){vars=ye(e);d=s.ReadStream,D=s.WriteStream}varc=e.ReadStream;c&&(d.prototype=Object.create(c.prototype),d.prototype.open=function(){vare=this;E(e.path,e.flags,e.mode,(function(t,n){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n),e.read())}))});vara=e.WriteStream;a&&(D.prototype=Object.create(a.prototype),D.prototype.open=function(){vare=this;E(e.path,e.flags,e.mode,(function(t,n){t?(e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n))}))}),Object.defineProperty(e,"ReadStream",{get:function(){returnd},set:function(e){d=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){returnD},set:function(e){D=e},enumerable:!0,configurable:!0});varl=d;Object.defineProperty(e,"FileReadStream",{get:function(){returnl},set:function(e){l=e},enumerable:!0,configurable:!0});varf=D;functiond(e,t){returnthisinstanceofd?(c.apply(this,arguments),this):d.apply(Object.create(d.prototype),arguments)}functionD(e,t){returnthisinstanceofD?(a.apply(this,arguments),this):D.apply(Object.create(D.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){returnf},set:function(e){f=e},enumerable:!0,configurable:!0});varp=e.open;functionE(e,t,n,r){return"function"==typeofn&&(r=n,n=null),functione(t,n,r,u,o){returnp(t,n,r,(function(i,s){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeofu&&u.apply(this,arguments):be([e,[t,n,r,u],i,o||Date.now(),Date.now()])}))}(e,t,n,r)}returne.open=E,e}functionbe(e){Ae("ENQUEUE",e[0].name,e[1]),me[pe].push(e),Be()}function_e(){for(vare=Date.now(),t=0;t<me[pe].length;++t)me[pe][t].length>2&&(me[pe][t][3]=e,me[pe][t][4]=e);Be()}functionBe(){if(clearTimeout(Se),Se=void0,0!==me[pe].length){vare=me[pe].shift(),t=e[0],n=e[1],r=e[2],u=e[3],o=e[4];if(void0===u)Ae("RETRY",t.name,n),t.apply(null,n);elseif(Date.now()-u>=6e4){Ae("TIMEOUT",t.name,n);vari=n.pop();"function"==typeofi&&i.call(null,r)}else{vars=Date.now()-o,c=Math.max(o-u,1);s>=Math.min(1.2*c,100)?(Ae("RETRY",t.name,n),t.apply(null,n.concat([u]))):me[pe].push(e)}void0===Se&&(Se=setTimeout(Be,0))}}process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!me.__patched&&(we=Oe(me),me.__patched=!0),function(e){constt=re.fromCallback,n=we,r=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>"function"==typeofn[e]));Object.assign(e,n),r.forEach((r=>{e[r]=t(n[r])})),e.realpath.native=t(n.realpath.native),e.exists=function(e,t){return"function"==typeoft?n.exists(e,t):newPromise((t=>n.exists(e,t)))},e.read=function(e,t,r,u,o,i){return"function"==typeofi?n.read(e,t,r,u,o,i):newPromise(((i,s)=>{n.read(e,t,r,u,o,((e,t,n)=>{if(e)returns(e);i({bytesRead:t,buffer:n})}))}))},e.write=function(e,t,...r){return"function"==typeofr[r.length-1]?n.write(e,t,...r):newPromise(((u,o)=>{n.write(e,t,...r,((e,t,n)=>{if(e)returno(e);u({bytesWritten:t,buffer:n})}))}))},"function"==typeofn.writev&&(e.writev=function(e,t,...r){return"function"==typeofr[r.length-1]?n.writev(e,t,...r):newPromise(((u,o)=>{n.writev(e,t,...r,((e,t,n)=>{if(e)returno(e);u({bytesWritten:t,buffers:n})}))}))})}(ne);varPe={},ke={};constxe=p.default;ke.checkPath=function(e){if("win32"===process.platform){if(/[<>:"|?*]/.test(e.replace(xe.parse(e).root,""))){constt=newError(`Path contains invalid characters: ${e}`);throwt.code="EINVAL",t}}};constNe=ne,{checkPath:Ie}=ke,Te=e=>"number"==typeofe?e:{mode:511,...e}.mode;Pe.makeDir=async(e,t)=>(Ie(e),Ne.mkdir(e,{mode:Te(t),recursive:!0})),Pe.makeDirSync=(e,t)=>(Ie(e),Ne.mkdirSync(e,{mode:Te(t),recursive:!0}));constRe=re.fromPromise,{makeDir:Me,makeDirSync:Le}=Pe,je=Re(Me);var$e={mkdirs:je,mkdirsSync:Le,mkdirp:je,mkdirpSync:Le,ensureDir:je,ensureDirSync:Le};constHe=re.fromPromise,Je=ne;varGe={pathExists:He((function(e){returnJe.access(e).then((()=>!0)).catch((()=>!1))})),pathExistsSync:Je.existsSync};constVe=we;varUe=function(e,t,n,r){Ve.open(e,"r+",((e,u)=>{if(e)returnr(e);Ve.futimes(u,t,n,(e=>{Ve.close(u,(t=>{r&&r(e||t)}))}))}))},We=function(e,t,n){constr=Ve.openSync(e,"r+");returnVe.futimesSync(r,t,n),Ve.closeSync(r)};constze=ne,Ke=p.default,qe=F.default;functionYe(e,t,n){constr=n.dereference?e=>ze.stat(e,{bigint:!0}):e=>ze.lstat(e,{bigint:!0});returnPromise.all([r(e),r(t).catch((e=>{if("ENOENT"===e.code)returnnull;throwe}))]).then((([e,t])=>({srcStat:e,destStat:t})))}functionXe(e,t){returnt.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}functionZe(e,t){constn=Ke.resolve(e).split(Ke.sep).filter((e=>e)),r=Ke.resolve(t).split(Ke.sep).filter((e=>e));returnn.reduce(((e,t,n)=>e&&r[n]===t),!0)}functionQe(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}varet={checkPaths:function(e,t,n,r,u){qe.callbackify(Ye)(e,t,r,((r,o)=>{if(r)returnu(r);const{srcStat:i,destStat:s}=o;if(s){if(Xe(i,s)){constr=Ke.basename(e),o=Ke.basename(t);return"move"===n&&r!==o&&r.toLowerCase()===o.toLowerCase()?u(null,{srcStat:i,destStat:s,isChangingCase:!0}):u(newError("Source and destination must not be the same."))}if(i.isDirectory()&&!s.isDirectory())returnu(newError(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!i.isDirectory()&&s.isDirectory())returnu(newError(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}returni.isDirectory()&&Ze(e,t)?u(newError(Qe(e,t,n))):u(null,{srcStat:i,destStat:s})}))},checkPathsSync:function(e,t,n,r){const{srcStat:u,destStat:o}=function(e,t,n){letr;constu=n.dereference?e=>ze.statSync(e,{bigint:!0}):e=>ze.lstatSync(e,{bigint:!0}),o=u(e);try{r=u(t)}catch(e){if("ENOENT"===e.code)return{srcStat:o,destStat:null};throwe}return{srcStat:o,destStat:r}}(e,t,r);if(o){if(Xe(u,o)){constr=Ke.basename(e),i=Ke.basename(t);if("move"===n&&r!==i&&r.toLowerCase()===i.toLowerCase())return{srcStat:u,destStat:o,isChangingCase:!0};thrownewError("Source and destination must not be the same.")}if(u.isDirectory()&&!o.isDirectory())thrownewError(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!u.isDirectory()&&o.isDirectory())thrownewError(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(u.isDirectory()&&Ze(e,t))thrownewError(Qe(e,t,n));return{srcStat:u,destStat:o}},checkParentPaths:functione(t,n,r,u,o){consti=Ke.resolve(Ke.dirname(t)),s=Ke.resolve(Ke.dirname(r));if(s===i||s===Ke.parse(s).root)returno();ze.stat(s,{bigint:!0},((i,c)=>i?"ENOENT"===i.code?o():o(i):Xe(n,c)?o(newError(Qe(t,r,u))):e(t,n,s,u,o)))},checkParentPathsSync:functione(t,n,r,u){consto=Ke.resolve(Ke.dirname(t)),i=Ke.resolve(Ke.dirname(r));if(i===o||i===Ke.parse(i).root)return;lets;try{s=ze.statSync(i,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throwe}if(Xe(n,s))thrownewError(Qe(t,r,u));returne(t,n,i,u)},isSrcSubdir:Ze,areIdentical:Xe};consttt=we,nt=p.default,rt=$e.mkdirs,ut=Ge.pathExists,ot=Ue,it=et;functionst(e,t,n,r,u){consto=nt.dirname(n);ut(o,((i,s)=>i?u(i):s?at(e,t,n,r,u):voidrt(o,(o=>o?u(o):at(e,t,n,r,u)))))}functionct(e,t,n,r,u,o){Promise.resolve(u.filter(n,r)).then((i=>i?e(t,n,r,u,o):o()),(e=>o(e)))}functionat(e,t,n,r,u){(r.dereference?tt.stat:tt.lstat)(t,((o,i)=>o?u(o):i.isDirectory()?function(e,t,n,r,u,o){returnt?Dt(n,r,u,o):function(e,t,n,r,u){tt.mkdir(n,(o=>{if(o)returnu(o);Dt(t,n,r,(t=>t?u(t):dt(n,e,u)))}))}(e.mode,n,r,u,o)}(i,e,t,n,r,u):i.isFile()||i.isCharacterDevice()||i.isBlockDevice()?function(e,t,n,r,u,o){returnt?function(e,t,n,r,u){if(!r.overwrite)returnr.errorOnExist?u(newError(`'${n}' already exists`)):u();tt.unlink(n,(o=>o?u(o):lt(e,t,n,r,u)))}(e,n,r,u,o):lt(e,n,r,u,o)}(i,e,t,n,r,u):i.isSymbolicLink()?function(e,t,n,r,u){tt.readlink(t,((t,o)=>t?u(t):(r.dereference&&(o=nt.resolve(process.cwd(),o)),e?voidtt.readlink(n,((t,i)=>t?"EINVAL"===t.code||"UNKNOWN"===t.code?tt.symlink(o,n,u):u(t):(r.dereference&&(i=nt.resolve(process.cwd(),i)),it.isSrcSubdir(o,i)?u(newError(`Cannot copy '${o}' to a subdirectory of itself, '${i}'.`)):e.isDirectory()&&it.isSrcSubdir(i,o)?u(newError(`Cannot overwrite '${i}' with '${o}'.`)):function(e,t,n){tt.unlink(t,(r=>r?n(r):tt.symlink(e,t,n)))}(o,n,u)))):tt.symlink(o,n,u))))}(e,t,n,r,u):i.isSocket()?u(newError(`Cannot copy a socket file: ${t}`)):i.isFIFO()?u(newError(`Cannot copy a FIFO pipe: ${t}`)):u(newError(`Unknown file: ${t}`))))}functionlt(e,t,n,r,u){tt.copyFile(t,n,(o=>o?u(o):r.preserveTimestamps?function(e,t,n,r){if(function(e){return0==(128&e)}(e))returnfunction(e,t,n){returndt(e,128|t,n)}(n,e,(u=>u?r(u):ft(e,t,n,r)));returnft(e,t,n,r)}(e.mode,t,n,u):dt(n,e.mode,u)))}functionft(e,t,n,r){!function(e,t,n){tt.stat(e,((e,r)=>e?n(e):ot(t,r.atime,r.mtime,n)))}(t,n,(t=>t?r(t):dt(n,e,r)))}functiondt(e,t,n){returntt.chmod(e,t,n)}functionDt(e,t,n,r){tt.readdir(e,((u,o)=>u?r(u):pt(o,e,t,n,r)))}functionpt(e,t,n,r,u){consto=e.pop();returno?function(e,t,n,r,u,o){consti=nt.join(n,t),s=nt.join(r,t);it.checkPaths(i,s,"copy",u,((t,c)=>{if(t)returno(t);const{destStat:a}=c;!function(e,t,n,r,u){r.filter?ct(at,e,t,n,r,u):at(e,t,n,r,u)}(a,i,s,u,(t=>t?o(t):pt(e,n,r,u,o)))}))}(e,o,t,n,r,u):u()}varEt=function(e,t,n,r){"function"!=typeofn||r?"function"==typeofn&&(n={filter:n}):(r=n,n={}),r=r||function(){},(n=n||{}).clobber=!("clobber"inn)||!!n.clobber,n.overwrite="overwrite"inn?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),it.checkPaths(e,t,"copy",n,((u,o)=>{if(u)returnr(u);const{srcStat:i,destStat:s}=o;it.checkParentPaths(e,i,t,"copy",(u=>u?r(u):n.filter?ct(st,s,e,t,n,r):st(s,e,t,n,r)))}))};constmt=we,ht=p.default,yt=$e.mkdirsSync,Ct=We,Ft=et;functiongt(e,t,n,r){constu=(r.dereference?mt.statSync:mt.lstatSync)(t);if(u.isDirectory())returnfunction(e,t,n,r,u){returnt?St(n,r,u):function(e,t,n,r){returnmt.mkdirSync(n),St(t,n,r),vt(n,e)}(e.mode,n,r,u)}(u,e,t,n,r);if(u.isFile()||u.isCharacterDevice()||u.isBlockDevice())returnfunction(e,t,n,r,u){returnt?function(e,t,n,r){if(r.overwrite)returnmt.unlinkSync(n),At(e,t,n,r);if(r.errorOnExist)thrownewError(`'${n}' already exists`)}(e,n,r,u):At(e,n,r,u)}(u,e,t,n,r);if(u.isSymbolicLink())returnfunction(e,t,n,r){letu=mt.readlinkSync(t);r.dereference&&(u=ht.resolve(process.cwd(),u));if(e){lete;try{e=mt.readlinkSync(n)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)returnmt.symlinkSync(u,n);throwe}if(r.dereference&&(e=ht.resolve(process.cwd(),e)),Ft.isSrcSubdir(u,e))thrownewError(`Cannot copy '${u}' to a subdirectory of itself, '${e}'.`);if(mt.statSync(n).isDirectory()&&Ft.isSrcSubdir(e,u))thrownewError(`Cannot overwrite '${e}' with '${u}'.`);returnfunction(e,t){returnmt.unlinkSync(t),mt.symlinkSync(e,t)}(u,n)}returnmt.symlinkSync(u,n)}(e,t,n,r);if(u.isSocket())thrownewError(`Cannot copy a socket file: ${t}`);if(u.isFIFO())thrownewError(`Cannot copy a FIFO pipe: ${t}`);thrownewError(`Unknown file: ${t}`)}functionAt(e,t,n,r){returnmt.copyFileSync(t,n),r.preserveTimestamps&&function(e,t,n){(function(e){return0==(128&e)})(e)&&function(e,t){vt(e,128|t)}(n,e);(function(e,t){constn=mt.statSync(e);Ct(t,n.atime,n.mtime)})(t,n)}(e.mode,t,n),vt(n,e.mode)}functionvt(e,t){returnmt.chmodSync(e,t)}functionSt(e,t,n){mt.readdirSync(e).forEach((r=>function(e,t,n,r){constu=ht.join(t,e),o=ht.join(n,e),{destStat:i}=Ft.checkPathsSync(u,o,"copy",r);returnfunction(e,t,n,r){if(!r.filter||r.filter(t,n))returngt(e,t,n,r)}(i,u,o,r)}(r,e,t,n)))}varwt=function(e,t,n){"function"==typeofn&&(n={filter:n}),(n=n||{}).clobber=!("clobber"inn)||!!n.clobber,n.overwrite="overwrite"inn?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const{srcStat:r,destStat:u}=Ft.checkPathsSync(e,t,"copy",n);returnFt.checkParentPathsSync(e,r,t,"copy"),function(e,t,n,r){if(r.filter&&!r.filter(t,n))return;constu=ht.dirname(n);mt.existsSync(u)||yt(u);returngt(e,t,n,r)}(u,e,t,n)};varOt={copy:(0,re.fromCallback)(Et),copySync:wt};constbt=we,_t=p.default,Bt=g.default,Pt="win32"===process.platform;functionkt(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach((t=>{e[t]=e[t]||bt[t],e[t+="Sync"]=e[t]||bt[t]})),e.maxBusyTries=e.maxBusyTries||3}functionxt(e,t,n){letr=0;"function"==typeoft&&(n=t,t={}),Bt(e,"rimraf: missing path"),Bt.strictEqual(typeofe,"string","rimraf: path should be a string"),Bt.strictEqual(typeofn,"function","rimraf: callback function required"),Bt(t,"rimraf: invalid options argument provided"),Bt.strictEqual(typeoft,"object","rimraf: options should be object"),kt(t),Nt(e,t,(functionu(o){if(o){if(("EBUSY"===o.code||"ENOTEMPTY"===o.code||"EPERM"===o.code)&&r<t.maxBusyTries){r++;returnsetTimeout((()=>Nt(e,t,u)),100*r)}"ENOENT"===o.code&&(o=null)}n(o)}))}functionNt(e,t,n){Bt(e),Bt(t),Bt("function"==typeofn),t.lstat(e,((r,u)=>r&&"ENOENT"===r.code?n(null):r&&"EPERM"===r.code&&Pt?It(e,t,r,n):u&&u.isDirectory()?Rt(e,t,r,n):voidt.unlink(e,(r=>{if(r){if("ENOENT"===r.code)returnn(null);if("EPERM"===r.code)returnPt?It(e,t,r,n):Rt(e,t,r,n);if("EISDIR"===r.code)returnRt(e,t,r,n)}returnn(r)}))))}functionIt(e,t,n,r){Bt(e),Bt(t),Bt("function"==typeofr),t.chmod(e,438,(u=>{u?r("ENOENT"===u.code?null:n):t.stat(e,((u,o)=>{u?r("ENOENT"===u.code?null:n):o.isDirectory()?Rt(e,t,n,r):t.unlink(e,r)}))}))}functionTt(e,t,n){letr;Bt(e),Bt(t);try{t.chmodSync(e,438)}catch(e){if("ENOENT"===e.code)return;thrown}try{r=t.statSync(e)}catch(e){if("ENOENT"===e.code)return;thrown}r.isDirectory()?Lt(e,t,n):t.unlinkSync(e)}functionRt(e,t,n,r){Bt(e),Bt(t),Bt("function"==typeofr),t.rmdir(e,(u=>{!u||"ENOTEMPTY"!==u.code&&"EEXIST"!==u.code&&"EPERM"!==u.code?u&&"ENOTDIR"===u.code?r(n):r(u):function(e,t,n){Bt(e),Bt(t),Bt("function"==typeofn),t.readdir(e,((r,u)=>{if(r)returnn(r);leto,i=u.length;if(0===i)returnt.rmdir(e,n);u.forEach((r=>{xt(_t.join(e,r),t,(r=>{if(!o)returnr?n(o=r):void(0==--i&&t.rmdir(e,n))}))}))}))}(e,t,r)}))}functionMt(e,t){letn;kt(t=t||{}),Bt(e,"rimraf: missing path"),Bt.strictEqual(typeofe,"string","rimraf: path should be a string"),Bt(t,"rimraf: missing options"),Bt.strictEqual(typeoft,"object","rimraf: options should be object");try{n=t.lstatSync(e)}catch(n){if("ENOENT"===n.code)return;"EPERM"===n.code&&Pt&&Tt(e,t,n)}try{n&&n.isDirectory()?Lt(e,t,null):t.unlinkSync(e)}catch(n){if("ENOENT"===n.code)return;if("EPERM"===n.code)returnPt?Tt(e,t,n):Lt(e,t,n);if("EISDIR"!==n.code)thrown;Lt(e,t,n)}}functionLt(e,t,n){Bt(e),Bt(t);try{t.rmdirSync(e)}catch(r){if("ENOTDIR"===r.code)thrown;if("ENOTEMPTY"===r.code||"EEXIST"===r.code||"EPERM"===r.code)!function(e,t){if(Bt(e),Bt(t),t.readdirSync(e).forEach((n=>Mt(_t.join(e,n),t))),!Pt){returnt.rmdirSync(e,t)}{constn=Date.now();do{try{returnt.rmdirSync(e,t)}catch{}}while(Date.now()-n<500)}}(e,t);elseif("ENOENT"!==r.code)throwr}}varjt=xt;xt.sync=Mt;const$t=we,Ht=re.fromCallback,Jt=jt;varGt={remove:Ht((function(e,t){if($t.rm)return$t.rm(e,{recursive:!0,force:!0},t);Jt(e,t)})),removeSync:function(e){if($t.rmSync)return$t.rmSync(e,{recursive:!0,force:!0});Jt.sync(e)}};constVt=re.fromPromise,Ut=ne,Wt=p.default,zt=$e,Kt=Gt,qt=Vt((asyncfunction(e){lett;try{t=awaitUt.readdir(e)}catch{returnzt.mkdirs(e)}returnPromise.all(t.map((t=>Kt.remove(Wt.join(e,t)))))}));functionYt(e){lett;try{t=Ut.readdirSync(e)}catch{returnzt.mkdirsSync(e)}t.forEach((t=>{t=Wt.join(e,t),Kt.removeSync(t)}))}varXt={emptyDirSync:Yt,emptydirSync:Yt,emptyDir:qt,emptydir:qt};constZt=re.fromCallback,Qt=p.default,en=we,tn=$e;varnn={createFile:Zt((function(e,t){functionn(){en.writeFile(e,"",(e=>{if(e)returnt(e);t()}))}en.stat(e,((r,u)=>{if(!r&&u.isFile())returnt();consto=Qt.dirname(e);en.stat(o,((e,r)=>{if(e)return"ENOENT"===e.code?tn.mkdirs(o,(e=>{if(e)returnt(e);n()})):t(e);r.isDirectory()?n():en.readdir(o,(e=>{if(e)returnt(e)}))}))}))})),createFileSync:function(e){lett;try{t=en.statSync(e)}catch{}if(t&&t.isFile())return;constn=Qt.dirname(e);try{en.statSync(n).isDirectory()||en.readdirSync(n)}catch(e){if(!e||"ENOENT"!==e.code)throwe;tn.mkdirsSync(n)}en.writeFileSync(e,"")}};constrn=re.fromCallback,un=p.default,on=we,sn=$e,cn=Ge.pathExists,{areIdentical:an}=et;varln={createLink:rn((function(e,t,n){functionr(e,t){on.link(e,t,(e=>{if(e)returnn(e);n(null)}))}on.lstat(t,((u,o)=>{on.lstat(e,((u,i)=>{if(u)returnu.message=u.message.replace("lstat","ensureLink"),n(u);if(o&&an(i,o))returnn(null);consts=un.dirname(t);cn(s,((u,o)=>u?n(u):o?r(e,t):voidsn.mkdirs(s,(u=>{if(u)returnn(u);r(e,t)}))))}))}))})),createLinkSync:function(e,t){letn;try{n=on.lstatSync(t)}catch{}try{constt=on.lstatSync(e);if(n&&an(t,n))return}catch(e){throwe.message=e.message.replace("lstat","ensureLink"),e}constr=un.dirname(t);returnon.existsSync(r)||sn.mkdirsSync(r),on.linkSync(e,t)}};constfn=p.default,dn=we,Dn=Ge.pathExists;varpn={symlinkPaths:function(e,t,n){if(fn.isAbsolute(e))returndn.lstat(e,(t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),n(t)):n(null,{toCwd:e,toDst:e})));{constr=fn.dirname(t),u=fn.join(r,e);returnDn(u,((t,o)=>t?n(t):o?n(null,{toCwd:u,toDst:e}):dn.lstat(e,(t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),n(t)):n(null,{toCwd:e,toDst:fn.relative(r,e)})))))}},symlinkPathsSync:function(e,t){letn;if(fn.isAbsolute(e)){if(n=dn.existsSync(e),!n)thrownewError("absolute srcpath does not exist");return{toCwd:e,toDst:e}}{constr=fn.dirname(t),u=fn.join(r,e);if(n=dn.existsSync(u),n)return{toCwd:u,toDst:e};if(n=dn.existsSync(e),!n)thrownewError("relative srcpath does not exist");return{toCwd:e,toDst:fn.relative(r,e)}}}};constEn=we;varmn={symlinkType:function(e,t,n){if(n="function"==typeoft?t:n,t="function"!=typeoft&&t)returnn(null,t);En.lstat(e,((e,r)=>{if(e)returnn(null,"file");t=r&&r.isDirectory()?"dir":"file",n(null,t)}))},symlinkTypeSync:function(e,t){letn;if(t)returnt;try{n=En.lstatSync(e)}catch{return"file"}returnn&&n.isDirectory()?"dir":"file"}};consthn=re.fromCallback,yn=p.default,Cn=ne,Fn=$e.mkdirs,gn=$e.mkdirsSync,An=pn.symlinkPaths,vn=pn.symlinkPathsSync,Sn=mn.symlinkType,wn=mn.symlinkTypeSync,On=Ge.pathExists,{areIdentical:bn}=et;function_n(e,t,n,r){An(e,t,((u,o)=>{if(u)returnr(u);e=o.toDst,Sn(o.toCwd,n,((n,u)=>{if(n)returnr(n);consto=yn.dirname(t);On(o,((n,i)=>n?r(n):i?Cn.symlink(e,t,u,r):voidFn(o,(n=>{if(n)returnr(n);Cn.symlink(e,t,u,r)}))))}))}))}varBn={createSymlink:hn((function(e,t,n,r){r="function"==typeofn?n:r,n="function"!=typeofn&&n,Cn.lstat(t,((u,o)=>{!u&&o.isSymbolicLink()?Promise.all([Cn.stat(e),Cn.stat(t)]).then((([u,o])=>{if(bn(u,o))returnr(null);_n(e,t,n,r)})):_n(e,t,n,r)}))})),createSymlinkSync:function(e,t,n){letr;try{r=Cn.lstatSync(t)}catch{}if(r&&r.isSymbolicLink()){constn=Cn.statSync(e),r=Cn.statSync(t);if(bn(n,r))return}constu=vn(e,t);e=u.toDst,n=wn(u.toCwd,n);consto=yn.dirname(t);returnCn.existsSync(o)||gn(o),Cn.symlinkSync(e,t,n)}};const{createFile:Pn,createFileSync:kn}=nn,{createLink:xn,createLinkSync:Nn}=ln,{createSymlink:In,createSymlinkSync:Tn}=Bn;varRn={createFile:Pn,createFileSync:kn,ensureFile:Pn,ensureFileSync:kn,createLink:xn,createLinkSync:Nn,ensureLink:xn,ensureLinkSync:Nn,createSymlink:In,createSymlinkSync:Tn,ensureSymlink:In,ensureSymlinkSync:Tn};varMn={stringify:function(e,{EOL:t="\n",finalEOL:n=!0,replacer:r=null,spaces:u}={}){consto=n?t:"";returnJSON.stringify(e,r,u).replace(/\n/g,t)+o},stripBom:function(e){returnBuffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}};letLn;try{Ln=we}catch(e){Ln=D.default}constjn=re,{stringify:$n,stripBom:Hn}=Mn;constJn=jn.fromPromise((asyncfunction(e,t={}){"string"==typeoft&&(t={encoding:t});constn=t.fs||Ln,r=!("throws"int)||t.throws;letu,o=awaitjn.fromCallback(n.readFile)(e,t);o=Hn(o);try{u=JSON.parse(o,t?t.reviver:null)}catch(t){if(r)throwt.message=`${e}: ${t.message}`,t;returnnull}returnu}));constGn=jn.fromPromise((asyncfunction(e,t,n={}){constr=n.fs||Ln,u=$n(t,n);awaitjn.fromCallback(r.writeFile)(e,u,n)}));constVn={readFile:Jn,readFileSync:function(e,t={}){"string"==typeoft&&(t={encoding:t});constn=t.fs||Ln,r=!("throws"int)||t.throws;try{letr=n.readFileSync(e,t);returnr=Hn(r),JSON.parse(r,t.reviver)}catch(t){if(r)throwt.message=`${e}: ${t.message}`,t;returnnull}},writeFile:Gn,writeFileSync:function(e,t,n={}){constr=n.fs||Ln,u=$n(t,n);returnr.writeFileSync(e,u,n)}};varUn={readJson:Vn.readFile,readJsonSync:Vn.readFileSync,writeJson:Vn.writeFile,writeJsonSync:Vn.writeFileSync};constWn=re.fromCallback,zn=we,Kn=p.default,qn=$e,Yn=Ge.pathExists;varXn={outputFile:Wn((function(e,t,n,r){"function"==typeofn&&(r=n,n="utf8");constu=Kn.dirname(e);Yn(u,((o,i)=>o?r(o):i?zn.writeFile(e,t,n,r):voidqn.mkdirs(u,(u=>{if(u)returnr(u);zn.writeFile(e,t,n,r)}))))})),outputFileSync:function(e,...t){constn=Kn.dirname(e);if(zn.existsSync(n))returnzn.writeFileSync(e,...t);qn.mkdirsSync(n),zn.writeFileSync(e,...t)}};const{stringify:Zn}=Mn,{outputFile:Qn}=Xn;varer=asyncfunction(e,t,n={}){constr=Zn(t,n);awaitQn(e,r,n)};const{stringify:tr}=Mn,{outputFileSync:nr}=Xn;varrr=function(e,t,n){constr=tr(t,n);nr(e,r,n)};constur=re.fromPromise,or=Un;or.outputJson=ur(er),or.outputJsonSync=rr,or.outputJSON=or.outputJson,or.outputJSONSync=or.outputJsonSync,or.writeJSON=or.writeJson,or.writeJSONSync=or.writeJsonSync,or.readJSON=or.readJson,or.readJSONSync=or.readJsonSync;varir=or;constsr=we,cr=p.default,ar=Ot.copy,lr=Gt.remove,fr=$e.mkdirp,dr=Ge.pathExists,Dr=et;functionpr(e,t,n,r,u){returnr?Er(e,t,n,u):n?lr(t,(r=>r?u(r):Er(e,t,n,u))):voiddr(t,((r,o)=>r?u(r):o?u(newError("dest already exists.")):Er(e,t,n,u)))}functionEr(e,t,n,r){sr.rename(e,t,(u=>u?"EXDEV"!==u.code?r(u):function(e,t,n,r){constu={overwrite:n,errorOnExist:!0};ar(e,t,u,(t=>t?r(t):lr(e,r)))}(e,t,n,r):r()))}varmr=function(e,t,n,r){"function"==typeofn&&(r=n,n={});constu=n.overwrite||n.clobber||!1;Dr.checkPaths(e,t,"move",n,((n,o)=>{if(n)returnr(n);const{srcStat:i,isChangingCase:s=!1}=o;Dr.checkParentPaths(e,i,t,"move",(n=>n?r(n):function(e){constt=cr.dirname(e);returncr.parse(t).root===t}(t)?pr(e,t,u,s,r):voidfr(cr.dirname(t),(n=>n?r(n):pr(e,t,u,s,r)))))}))};consthr=we,yr=p.default,Cr=Ot.copySync,Fr=Gt.removeSync,gr=$e.mkdirpSync,Ar=et;functionvr(e,t,n){try{hr.renameSync(e,t)}catch(r){if("EXDEV"!==r.code)throwr;returnfunction(e,t,n){constr={overwrite:n,errorOnExist:!0};returnCr(e,t,r),Fr(e)}(e,t,n)}}varSr=function(e,t,n){constr=(n=n||{}).overwrite||n.clobber||!1,{srcStat:u,isChangingCase:o=!1}=Ar.checkPathsSync(e,t,"move",n);returnAr.checkParentPathsSync(e,u,t,"move"),function(e){constt=yr.dirname(e);returnyr.parse(t).root===t}(t)||gr(yr.dirname(t)),function(e,t,n,r){if(r)returnvr(e,t,n);if(n)returnFr(t),vr(e,t,n);if(hr.existsSync(t))thrownewError("dest already exists.");returnvr(e,t,n)}(e,t,r,o)};varwr,Or,br,_r,Br,Pr={move:(0,re.fromCallback)(mr),moveSync:Sr},kr={...ne,...Ot,...Xt,...Rn,...ir,...$e,...Pr,...Xn,...Ge,...Gt},xr={},Nr={exports:{}},Ir={exports:{}};functionTr(){if(Or)returnwr;Or=1;vare=1e3,t=60*e,n=60*t,r=24*n,u=7*r,o=365.25*r;functioni(e,t,n,r){varu=t>=1.5*n;returnMath.round(e/n)+""+r+(u?"s":"")}returnwr=function(s,c){c=c||{};vara=typeofs;if("string"===a&&s.length>0)returnfunction(i){if((i=String(i)).length>100)return;vars=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!s)return;varc=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":returnc*o;case"weeks":case"week":case"w":returnc*u;case"days":case"day":case"d":returnc*r;case"hours":case"hour":case"hrs":case"hr":case"h":returnc*n;case"minutes":case"minute":case"mins":case"min":case"m":returnc*t;case"seconds":case"second":case"secs":case"sec":case"s":returnc*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":returnc;default:return}}(s);if("number"===a&&isFinite(s))returnc.long?function(u){varo=Math.abs(u);if(o>=r)returni(u,o,r,"day");if(o>=n)returni(u,o,n,"hour");if(o>=t)returni(u,o,t,"minute");if(o>=e)returni(u,o,e,"second");returnu+" ms"}(s):function(u){varo=Math.abs(u);if(o>=r)returnMath.round(u/r)+"d";if(o>=n)returnMath.round(u/n)+"h";if(o>=t)returnMath.round(u/t)+"m";if(o>=e)returnMath.round(u/e)+"s";returnu+"ms"}(s);thrownewError("val is not a non-empty string or a valid number. val="+JSON.stringify(s))}}functionRr(){if(_r)returnbr;return_r=1,br=function(e){functiont(e){letr,u,o,i=null;functions(...e){if(!s.enabled)return;constn=s,u=Number(newDate),o=u-(r||u);n.diff=o,n.prev=r,n.curr=u,r=u,e[0]=t.coerce(e[0]),"string"!=typeofe[0]&&e.unshift("%O");leti=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,u)=>{if("%%"===r)return"%";i++;consto=t.formatters[u];if("function"==typeofo){constt=e[i];r=o.call(n,t),e.splice(i,1),i--}returnr})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}returns.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(u!==t.namespaces&&(u=t.namespaces,o=t.enabled(e)),o),set:e=>{i=e}}),"function"==typeoft.init&&t.init(s),s}functionn(e,n){constr=t(this.namespace+(void0===n?":":n)+e);returnr.log=this.log,r}functionr(e){returne.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}returnt.debug=t,t.default=t,t.coerce=function(e){if(einstanceofError)returne.stack||e.message;returne},t.disable=function(){conste=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");returnt.enable(""),e},t.enable=function(e){letn;t.save(e),t.namespaces=e,t.names=[],t.skips=[];constr=("string"==typeofe?e:"").split(/[\s,]+/),u=r.length;for(n=0;n<u;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(newRegExp("^"+e.slice(1)+"$")):t.names.push(newRegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;letn,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=Tr(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){letn=0;for(lett=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;returnt.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t},br}varMr,Lr,jr,$r,Hr,Jr,Gr={exports:{}};functionVr(){returnLr?Mr:(Lr=1,Mr=(e,t=process.argv)=>{constn=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),u=t.indexOf("--");return-1!==r&&(-1===u||r<u)})}functionUr(){returnHr||(Hr=1,function(e,t){constn=A.default,r=F.default;t.init=function(e){e.inspectOpts={};constn=Object.keys(t.inspectOpts);for(letr=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]},t.log=function(...e){returnprocess.stderr.write(r.format(...e)+"\n")},t.formatArgs=function(n){const{namespace:r,useColors:u}=this;if(u){constt=this.color,u="[3"+(t<8?t:"8;5;"+t),o=` ${u};1m${r} [0m`;n[0]=o+n[0].split("\n").join("\n"+o),n.push(u+"m+"+e.exports.humanize(this.diff)+"[0m")}elsen[0]=function(){if(t.inspectOpts.hideDate)return"";return(newDate).toISOString()+""}()+r+""+n[0]},t.save=function(e){e?process.env.DEBUG=e:deleteprocess.env.DEBUG},t.load=function(){returnprocess.env.DEBUG},t.useColors=function(){return"colors"int.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)},t.destroy=r.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{conste=function(){if($r)returnjr;$r=1;conste=E.default,t=A.default,n=Vr(),{env:r}=process;letu;functiono(e){return0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}functioni(t,o){if(0===u)return0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return3;if(n("color=256"))return2;if(t&&!o&&void0===u)return0;consti=u||0;if("dumb"===r.TERM)returni;if("win32"===process.platform){constt=e.release().split(".");returnNumber(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"inr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>einr))||"codeship"===r.CI_NAME?1:i;if("TEAMCITY_VERSION"inr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?1:0;if("truecolor"===r.COLORTERM)return3;if("TERM_PROGRAM"inr){conste=parseInt((r.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r.TERM_PROGRAM){case"iTerm.app":returne>=3?3:2;case"Apple_Terminal":return2}}return/-256(color)?$/i.test(r.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r.TERM)||"COLORTERM"inr?1:i}returnn("no-color")||n("no-colors")||n("color=false")||n("color=never")?u=0:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(u=1),"FORCE_COLOR"inr&&(u="true"===r.FORCE_COLOR?1:"false"===r.FORCE_COLOR?0:0===r.FORCE_COLOR.length?1:Math.min(parseInt(r.FORCE_COLOR,10),3)),jr={supportsColor:function(e){returno(i(e,e&&e.isTTY))},stdout:o(i(!0,t.isatty(1))),stderr:o(i(!0,t.isatty(2)))}}();e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{constn=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));letr=process.env[t];returnr=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e}),{}),e.exports=Rr()(t);const{formatters:u}=e.exports;u.o=function(e){returnthis.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join("")},u.O=function(e){returnthis.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)}}(Gr,Gr.exports)),Gr.exports}Jr=Nr,"undefined"==typeofprocess||"renderer"===process.type||!0===process.browser||process.__nwjs?Jr.exports=(Br||(Br=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":"")+t[0]+(this.useColors?"%c ":"")+"+"+e.exports.humanize(this.diff),!this.useColors)return;constn="color: "+this.color;t.splice(1,0,n,"color: inherit");letr=0,u=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(u=r))})),t.splice(u,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){lete;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeofprocess&&"env"inprocess&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeofwindow||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeofnavigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeofdocument&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeofwindow&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeofnavigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeofnavigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{returnlocalStorage}catch(e){}}(),t.destroy=(()=>{lete=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=Rr()(t);const{formatters:n}=e.exports;n.j=function(e){try{returnJSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(Ir,Ir.exports)),Ir.exports):Jr.exports=Ur();varWr=function(e){return(e=e||{}).circles?function(e){vart=[],n=[];returne.proto?functione(u){if("object"!=typeofu||null===u)returnu;if(uinstanceofDate)returnnewDate(u);if(Array.isArray(u))returnr(u,e);if(uinstanceofMap)returnnewMap(r(Array.from(u),e));if(uinstanceofSet)returnnewSet(r(Array.from(u),e));varo={};for(variint.push(u),n.push(o),u){vars=u[i];if("object"!=typeofs||null===s)o[i]=s;elseif(sinstanceofDate)o[i]=newDate(s);elseif(sinstanceofMap)o[i]=newMap(r(Array.from(s),e));elseif(sinstanceofSet)o[i]=newSet(r(Array.from(s),e));elseif(ArrayBuffer.isView(s))o[i]=zr(s);else{varc=t.indexOf(s);o[i]=-1!==c?n[c]:e(s)}}returnt.pop(),n.pop(),o}:functione(u){if("object"!=typeofu||null===u)returnu;if(uinstanceofDate)returnnewDate(u);if(Array.isArray(u))returnr(u,e);if(uinstanceofMap)returnnewMap(r(Array.from(u),e));if(uinstanceofSet)returnnewSet(r(Array.from(u),e));varo={};for(variint.push(u),n.push(o),u)if(!1!==Object.hasOwnProperty.call(u,i)){vars=u[i];if("object"!=typeofs||null===s)o[i]=s;elseif(sinstanceofDate)o[i]=newDate(s);elseif(sinstanceofMap)o[i]=newMap(r(Array.from(s),e));elseif(sinstanceofSet)o[i]=newSet(r(Array.from(s),e));elseif(ArrayBuffer.isView(s))o[i]=zr(s);else{varc=t.indexOf(s);o[i]=-1!==c?n[c]:e(s)}}returnt.pop(),n.pop(),o};functionr(e,r){for(varu=Object.keys(e),o=newArray(u.length),i=0;i<u.length;i++){vars=u[i],c=e[s];if("object"!=typeofc||null===c)o[s]=c;elseif(cinstanceofDate)o[s]=newDate(c);elseif(ArrayBuffer.isView(c))o[s]=zr(c);else{vara=t.indexOf(c);o[s]=-1!==a?n[a]:r(c)}}returno}}(e):e.proto?functione(n){if("object"!=typeofn||null===n)returnn;if(ninstanceofDate)returnnewDate(n);if(Array.isArray(n))returnt(n,e);if(ninstanceofMap)returnnewMap(t(Array.from(n),e));if(ninstanceofSet)returnnewSet(t(Array.from(n),e));varr={};for(varuinn){varo=n[u];"object"!=typeofo||null===o?r[u]=o:oinstanceofDate?r[u]=newDate(o):oinstanceofMap?r[u]=newMap(t(Array.from(o),e)):oinstanceofSet?r[u]=newSet(t(Array.from(o),e)):ArrayBuffer.isView(o)?r[u]=zr(o):r[u]=e(o)}returnr}:n;functiont(e,t){for(varn=Object.keys(e),r=newArray(n.length),u=0;u<n.length;u++){varo=n[u],i=e[o];"object"!=typeofi||null===i?r[o]=i:iinstanceofDate?r[o]=newDate(i):ArrayBuffer.isView(i)?r[o]=zr(i):r[o]=t(i)}returnr}functionn(e){if("object"!=typeofe||null===e)returne;if(einstanceofDate)returnnewDate(e);if(Array.isArray(e))returnt(e,n);if(einstanceofMap)returnnewMap(t(Array.from(e),n));if(einstanceofSet)returnnewSet(t(Array.from(e),n));varr={};for(varuine)if(!1!==Object.hasOwnProperty.call(e,u)){varo=e[u];"object"!=typeofo||null===o?r[u]=o:oinstanceofDate?r[u]=newDate(o):oinstanceofMap?r[u]=newMap(t(Array.from(o),n)):oinstanceofSet?r[u]=newSet(t(Array.from(o),n)):ArrayBuffer.isView(o)?r[u]=zr(o):r[u]=n(o)}returnr}};functionzr(e){returneinstanceofBuffer?Buffer.from(e):newe.constructor(e.buffer.slice(),e.byteOffset,e.length)}constKr=F.default,qr=Nr.exports("log4js:configuration"),Yr=[],Xr=[],Zr=e=>!e,Qr=e=>e&&"object"==typeofe&&!Array.isArray(e),eu=(e,t,n)=>{(Array.isArray(t)?t:[t]).forEach((t=>{if(t)thrownewError(`Problem with log4js configuration: (${Kr.inspect(e,{depth:5})}) - ${n}`)}))};vartu={configure:e=>{qr("New configuration to be validated: ",e),eu(e,Zr(Qr(e)),"must be an object."),qr(`Calling pre-processing listeners (${Yr.length})`),Yr.forEach((t=>t(e))),qr("Configuration pre-processing finished."),qr(`Calling configuration listeners (${Xr.length})`),Xr.forEach((t=>t(e))),qr("Configuration finished.")},addListener:e=>{Xr.push(e),qr(`Added listener, now ${Xr.length} listeners`)},addPreProcessingListener:e=>{Yr.push(e),qr(`Added pre-processing listener, now ${Yr.length} listeners`)},throwExceptionIf:eu,anObject:Qr,anInteger:e=>e&&"number"==typeofe&&Number.isInteger(e),validIdentifier:e=>/^[A-Za-z][A-Za-z0-9_]*$/g.test(e),not:Zr},nu={exports:{}};!function(e){functiont(e,t){for(varn=e.toString();n.length<t;)n="0"+n;returnn}functionn(e){returnt(e,2)}functionr(r,u){"string"!=typeofr&&(u=r,r=e.exports.ISO8601_FORMAT),u||(u=e.exports.now());varo=n(u.getDate()),i=n(u.getMonth()+1),s=n(u.getFullYear()),c=n(s.substring(2,4)),a=r.indexOf("yyyy")>-1?s:c,l=n(u.getHours()),f=n(u.getMinutes()),d=n(u.getSeconds()),D=t(u.getMilliseconds(),3),p=function(e){vart=Math.abs(e),n=String(Math.floor(t/60)),r=String(t%60);returnn=("0"+n).slice(-2),r=("0"+r).slice(-2),0===e?"Z":(e<0?"+":"-")+n+":"+r}(u.getTimezoneOffset());returnr.replace(/dd/g,o).replace(/MM/g,i).replace(/y{1,4}/g,a).replace(/hh/g,l).replace(/mm/g,f).replace(/ss/g,d).replace(/SSS/g,D).replace(/O/g,p)}functionu(e,t,n,r){e["set"+(r?"":"UTC")+t](n)}e.exports=r,e.exports.asString=r,e.exports.parse=function(t,n,r){if(!t)thrownewError("pattern must be supplied");returnfunction(t,n,r){varo=t.indexOf("O")<0,i=!1,s=[{pattern:/y{1,4}/,regexp:"\\d{1,4}",fn:function(e,t){u(e,"FullYear",t,o)}},{pattern:/MM/,regexp:"\\d{1,2}",fn:function(e,t){u(e,"Month",t-1,o),e.getMonth()!==t-1&&(i=!0)}},{pattern:/dd/,regexp:"\\d{1,2}",fn:function(e,t){i&&u(e,"Month",e.getMonth()-1,o),u(e,"Date",t,o)}},{pattern:/hh/,regexp:"\\d{1,2}",fn:function(e,t){u(e,"Hours",t,o)}},{pattern:/mm/,regexp:"\\d\\d",fn:function(e,t){u(e,"Minutes",t,o)}},{pattern:/ss/,regexp:"\\d\\d",fn:function(e,t){u(e,"Seconds",t,o)}},{pattern:/SSS/,regexp:"\\d\\d\\d",fn:function(e,t){u(e,"Milliseconds",t,o)}},{pattern:/O/,regexp:"[+-]\\d{1,2}:?\\d{2}?|Z",fn:function(e,t){t="Z"===t?0:t.replace(":","");varn=Math.abs(t),r=(t>0?-1:1)*(n%100+60*Math.floor(n/100));e.setUTCMinutes(e.getUTCMinutes()+r)}}],c=s.reduce((function(e,t){returnt.pattern.test(e.regexp)?(t.index=e.regexp.match(t.pattern).index,e.regexp=e.regexp.replace(t.pattern,"("+t.regexp+")")):t.index=-1,e}),{regexp:t,index:[]}),a=s.filter((function(e){returne.index>-1}));a.sort((function(e,t){returne.index-t.index}));varl=newRegExp(c.regexp).exec(n);if(l){varf=r||e.exports.now();returna.forEach((function(e,t){e.fn(f,l[t+1])})),f}thrownewError("String '"+n+"' could not be parsed as '"+t+"'")}(t,n,r)},e.exports.now=function(){returnnewDate},e.exports.ISO8601_FORMAT="yyyy-MM-ddThh:mm:ss.SSS",e.exports.ISO8601_WITH_TZ_OFFSET_FORMAT="yyyy-MM-ddThh:mm:ss.SSSO",e.exports.DATETIME_FORMAT="dd MM yyyy hh:mm:ss.SSS",e.exports.ABSOLUTETIME_FORMAT="hh:mm:ss.SSS"}(nu);constru=nu.exports,uu=E.default,ou=F.default,iu=p.default,su={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[90,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[91,39],yellow:[33,39]};functioncu(e){returne?`[${su[e][0]}m`:""}functionau(e){returne?`[${su[e][1]}m`:""}functionlu(e,t){returnn=ou.format("[%s] [%s] %s - ",ru.asString(e.startTime),e.level.toString(),e.categoryName),cu(r=t)+n+au(r);varn,r}functionfu(e){returnlu(e)+ou.format(...e.data)}functiondu(e){returnlu(e,e.level.colour)+ou.format(...e.data)}functionDu(e){returnou.format(...e.data)}functionpu(e){returne.data[0]}functionEu(e,t){constn=/%(-?[0-9]+)?(\.?-?[0-9]+)?([[\]cdhmnprzxXyflos%])(\{([^}]+)\})?|([^%]+)/;functionr(e){returne&&e.pid?e.pid.toString():process.pid.toString()}e=e||"%r %p %c - %m%n";constu={c:function(e,t){letn=e.categoryName;if(t){conste=parseInt(t,10),r=n.split(".");e<r.length&&(n=r.slice(r.length-e).join("."))}returnn},d:function(e,t){letn=ru.ISO8601_FORMAT;returnt&&(n=t,"ISO8601"===n?n=ru.ISO8601_FORMAT:"ISO8601_WITH_TZ_OFFSET"===n?n=ru.ISO8601_WITH_TZ_OFFSET_FORMAT:"ABSOLUTE"===n?n=ru.ABSOLUTETIME_FORMAT:"DATE"===n&&(n=ru.DATETIME_FORMAT)),ru.asString(n,e.startTime)},h:function(){returnuu.hostname().toString()},m:function(e){returnou.format(...e.data)},n:function(){returnuu.EOL},p:function(e){returne.level.toString()},r:function(e){returnru.asString("hh:mm:ss",e.startTime)},"[":function(e){returncu(e.level.colour)},"]":function(e){returnau(e.level.colour)},y:function(){returnr()},z:r,"%":function(){return"%"},x:function(e,n){returnvoid0!==t[n]?"function"==typeoft[n]?t[n](e):t[n]:null},X:function(e,t){constn=e.context[t];returnvoid0!==n?"function"==typeofn?n(e):n:null},f:function(e,t){letn=e.fileName||"";if(t){conste=parseInt(t,10),r=n.split(iu.sep);r.length>e&&(n=r.slice(-e).join(iu.sep))}returnn},l:function(e){returne.lineNumber?`${e.lineNumber}`:""},o:function(e){returne.columnNumber?`${e.columnNumber}`:""},s:function(e){returne.callStack||""}};functiono(e,t,n){returnu[e](t,n)}functioni(e,t,n){letr=e;returnr=function(e,t){letn;returne?(n=parseInt(e.substr(1),10),n>0?t.slice(0,n):t.slice(n)):t}(t,r),r=function(e,t){letn;if(e)if("-"===e.charAt(0))for(n=parseInt(e.substr(1),10);t.length<n;)t+="";elsefor(n=parseInt(e,10);t.length<n;)t=` ${t}`;returnt}(n,r),r}returnfunction(t){letr,u="",s=e;for(;null!==(r=n.exec(s));){conste=r[1],n=r[2],c=r[3],a=r[5],l=r[6];if(l)u+=l.toString();else{u+=i(o(c,t,a),n,e)}s=s.substr(r.index+r[0].length)}returnu}}constmu={messagePassThrough:()=>Du,basic:()=>fu,colored:()=>du,coloured:()=>du,pattern:e=>Eu(e&&e.pattern,e&&e.tokens),dummy:()=>pu};varhu={basicLayout:fu,messagePassThroughLayout:Du,patternLayout:Eu,colouredLayout:du,coloredLayout:du,dummyLayout:pu,addLayout(e,t){mu[e]=t},layout:(e,t)=>mu[e]&&mu[e](t)};constyu=tu,Cu=["white","grey","black","blue","cyan","green","magenta","red","yellow"];classFu{constructor(e,t,n){this.level=e,this.levelStr=t,this.colour=n}toString(){returnthis.levelStr}staticgetLevel(e,t){returne?einstanceofFu?e:(einstanceofObject&&e.levelStr&&(e=e.levelStr),Fu[e.toString().toUpperCase()]||t):t}staticaddLevels(e){if(e){Object.keys(e).forEach((t=>{constn=t.toUpperCase();Fu[n]=newFu(e[t].value,n,e[t].colour);constr=Fu.levels.findIndex((e=>e.levelStr===n));r>-1?Fu.levels[r]=Fu[n]:Fu.levels.push(Fu[n])})),Fu.levels.sort(((e,t)=>e.level-t.level))}}isLessThanOrEqualTo(e){return"string"==typeofe&&(e=Fu.getLevel(e)),this.level<=e.level}isGreaterThanOrEqualTo(e){return"string"==typeofe&&(e=Fu.getLevel(e)),this.level>=e.level}isEqualTo(e){return"string"==typeofe&&(e=Fu.getLevel(e)),this.level===e.level}}Fu.levels=[],Fu.addLevels({ALL:{value:Number.MIN_VALUE,colour:"grey"},TRACE:{value:5e3,colour:"blue"},DEBUG:{value:1e4,colour:"cyan"},INFO:{value:2e4,colour:"green"},WARN:{value:3e4,colour:"yellow"},ERROR:{value:4e4,colour:"red"},FATAL:{value:5e4,colour:"magenta"},MARK:{value:9007199254740992,colour:"grey"},OFF:{value:Number.MAX_VALUE,colour:"grey"}}),yu.addListener((e=>{constt=e.levels;if(t){yu.throwExceptionIf(e,yu.not(yu.anObject(t)),"levels must be an object");Object.keys(t).forEach((n=>{yu.throwExceptionIf(e,yu.not(yu.validIdentifier(n)),`level name "${n}" is not a valid identifier (must start with a letter, only contain A-Z,a-z,0-9,_)`),yu.throwExceptionIf(e,yu.not(yu.anObject(t[n])),`level "${n}" must be an object`),yu.throwExceptionIf(e,yu.not(t[n].value),`level "${n}" must have a 'value' property`),yu.throwExceptionIf(e,yu.not(yu.anInteger(t[n].value)),`level "${n}".value must have an integer value`),yu.throwExceptionIf(e,yu.not(t[n].colour),`level "${n}" must have a 'colour' property`),yu.throwExceptionIf(e,yu.not(Cu.indexOf(t[n].colour)>-1),`level "${n}".colour must be one of ${Cu.join(", ")}`)}))}})),yu.addListener((e=>{Fu.addLevels(e.levels)}));vargu=Fu,Au={exports:{}},vu={};/*! (c) 2020 Andrea Giammarchi */const{parse:Su,stringify:wu}=JSON,{keys:Ou}=Object,bu=String,_u="string",Bu={},Pu="object",ku=(e,t)=>t,xu=e=>einstanceofbu?bu(e):e,Nu=(e,t)=>typeoft===_u?newbu(t):t,Iu=(e,t,n,r)=>{constu=[];for(leto=Ou(n),{length:i}=o,s=0;s<i;s++){consti=o[s],c=n[i];if(cinstanceofbu){consto=e[c];typeofo!==Pu||t.has(o)?n[i]=r.call(n,i,o):(t.add(o),n[i]=Bu,u.push({k:i,a:[e,t,o,r]}))}elsen[i]!==Bu&&(n[i]=r.call(n,i,c))}for(let{length:e}=u,t=0;t<e;t++){const{k:e,a:o}=u[t];n[e]=r.call(n,e,Iu.apply(null,o))}returnn},Tu=(e,t,n)=>{constr=bu(t.push(n)-1);returne.set(n,r),r},Ru=(e,t)=>{constn=Su(e,Nu).map(xu),r=n[0],u=t||ku,o=typeofr===Pu&&r?Iu(n,newSet,r,u):r;returnu.call({"":o},"",o)};vu.parse=Ru;constMu=(e,t,n)=>{constr=t&&typeoft===Pu?(e,n)=>""===e||-1<t.indexOf(e)?n:void0:t||ku,u=newMap,o=[],i=[];lets=+Tu(u,o,r.call({"":e},"",e)),c=!s;for(;s<o.length;)c=!0,i[s]=wu(o[s++],a,n);return"["+i.join(",")+"]";functiona(e,t){if(c)returnc=!c,t;constn=r.call(this,e,t);switch(typeofn){casePu:if(null===n)returnn;case_u:returnu.get(n)||Tu(u,o,n)}returnn}};vu.stringify=Mu;vu.toJSON=e=>Su(Mu(e));vu.fromJSON=e=>Ru(wu(e));constLu=vu,ju=gu;class$u{constructor(e,t,n,r,u){this.startTime=newDate,this.categoryName=e,this.data=n,this.level=t,this.context=Object.assign({},r),this.pid=process.pid,u&&(this.functionName=u.functionName,this.fileName=u.fileName,this.lineNumber=u.lineNumber,this.columnNumber=u.columnNumber,this.callStack=u.callStack)}serialise(){conste=this.data.map((e=>(e&&e.message&&e.stack&&(e=Object.assign({message:e.message,stack:e.stack},e)),e)));returnthis.data=e,Lu.stringify(this)}staticdeserialise(e){lett;try{constn=Lu.parse(e);n.data=n.data.map((e=>{if(e&&e.message&&e.stack){constt=newError(e);Object.keys(e).forEach((n=>{t[n]=e[n]})),e=t}returne})),t=new$u(n.categoryName,ju.getLevel(n.level.levelStr),n.data,n.context),t.startTime=newDate(n.startTime),t.pid=n.pid,t.cluster=n.cluster}catch(n){t=new$u("log4js",ju.ERROR,["Unable to parse log:",e,"because: ",n])}returnt}}varHu=$u;constJu=Nr.exports("log4js:clustering"),Gu=Hu,Vu=tu;letUu=!1,Wu=null;try{Wu=require("cluster")}catch(e){Ju("cluster module not present"),Uu=!0}constzu=[];letKu=!1,qu="NODE_APP_INSTANCE";constYu=()=>Ku&&"0"===process.env[qu],Xu=()=>Uu||Wu.isMaster||Yu(),Zu=e=>{zu.forEach((t=>t(e)))},Qu=(e,t)=>{if(Ju("cluster message received from worker ",e,": ",t),e.topic&&e.data&&(t=e,e=void0),t&&t.topic&&"log4js:message"===t.topic){Ju("received message: ",t.data);conste=Gu.deserialise(t.data);Zu(e)}};Uu||Vu.addListener((e=>{zu.length=0,({pm2:Ku,disableClustering:Uu,pm2InstanceVar:qu="NODE_APP_INSTANCE"}=e),Ju(`clustering disabled ? ${Uu}`),Ju(`cluster.isMaster ? ${Wu&&Wu.isMaster}`),Ju(`pm2 enabled ? ${Ku}`),Ju(`pm2InstanceVar = ${qu}`),Ju(`process.env[${qu}] = ${process.env[qu]}`),Ku&&process.removeListener("message",Qu),Wu&&Wu.removeListener&&Wu.removeListener("message",Qu),Uu||e.disableClustering?Ju("Not listening for cluster messages, because clustering disabled."):Yu()?(Ju("listening for PM2 broadcast messages"),process.on("message",Qu)):Wu.isMaster?(Ju("listening for cluster messages"),Wu.on("message",Qu)):Ju("not listening for messages, because we are not a master process")}));vareo={onlyOnMaster:(e,t)=>Xu()?e():t,isMaster:Xu,send:e=>{Xu()?Zu(e):(Ku||(e.cluster={workerId:Wu.worker.id,worker:process.pid}),process.send({topic:"log4js:message",data:e.serialise()}))},onMessage:e=>{zu.push(e)}},to={};functionno(e){if("number"==typeofe&&Number.isInteger(e))returne;constt={K:1024,M:1048576,G:1073741824},n=Object.keys(t),r=e.substr(e.length-1).toLocaleUpperCase(),u=e.substring(0,e.length-1).trim();if(n.indexOf(r)<0||!Number.isInteger(Number(u)))throwError(`maxLogSize: "${e}" is invalid`);returnu*t[r]}functionro(e){returnfunction(e,t){constn=Object.assign({},t);returnObject.keys(e).forEach((r=>{n[r]&&(n[r]=e[r](t[r]))})),n}({maxLogSize:no},e)}constuo={file:ro,fileSync:ro};to.modifyConfig=e=>uo[e.type]?uo[e.type](e):e;varoo={};constio=console.log.bind(console);oo.configure=function(e,t){letn=t.colouredLayout;returne.layout&&(n=t.layout(e.layout.type,e.layout)),function(e,t){returnn=>{io(e(n,t))}}(n,e.timezoneOffset)};varso={};so.configure=function(e,t){letn=t.colouredLayout;returne.layout&&(n=t.layout(e.layout.type,e.layout)),function(e,t){returnn=>{process.stdout.write(`${e(n,t)}\n`)}}(n,e.timezoneOffset)};varco={};co.configure=function(e,t){letn=t.colouredLayout;returne.layout&&(n=t.layout(e.layout.type,e.layout)),function(e,t){returnn=>{process.stderr.write(`${e(n,t)}\n`)}}(n,e.timezoneOffset)};varao={};ao.configure=function(e,t,n,r){constu=n(e.appender);returnfunction(e,t,n,r){constu=r.getLevel(e),o=r.getLevel(t,r.FATAL);returne=>{constt=e.level;t.isGreaterThanOrEqualTo(u)&&t.isLessThanOrEqualTo(o)&&n(e)}}(e.level,e.maxLevel,u,r)};varlo={};constfo=Nr.exports("log4js:categoryFilter");lo.configure=function(e,t,n){constr=n(e.appender);returnfunction(e,t){return"string"==typeofe&&(e=[e]),n=>{fo(`Checking ${n.categoryName} against ${e}`),-1===e.indexOf(n.categoryName)&&(fo("Not excluded, sending to appender"),t(n))}}(e.exclude,r)};varDo={};constpo=Nr.exports("log4js:noLogFilter");Do.configure=function(e,t,n){constr=n(e.appender);returnfunction(e,t){returnn=>{po(`Checking data: ${n.data} against filters: ${e}`),"string"==typeofe&&(e=[e]),e=e.filter((e=>null!=e&&""!==e));constr=newRegExp(e.join("|"),"i");(0===e.length||n.data.findIndex((e=>r.test(e)))<0)&&(po("Not excluded, sending to appender"),t(n))}}(e.exclude,r)};varEo={},mo={exports:{}},ho={},yo={fromCallback:function(e){returnObject.defineProperty((function(){if("function"!=typeofarguments[arguments.length-1])returnnewPromise(((t,n)=>{arguments[arguments.length]=(e,r)=>{if(e)returnn(e);t(r)},arguments.length++,e.apply(this,arguments)}));e.apply(this,arguments)}),"name",{value:e.name})},fromPromise:function(e){returnObject.defineProperty((function(){constt=arguments[arguments.length-1];if("function"!=typeoft)returne.apply(this,arguments);e.apply(this,arguments).then((e=>t(null,e)),t)}),"name",{value:e.name})}};!function(e){constt=yo.fromCallback,n=we,r=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>"function"==typeofn[e]));Object.keys(n).forEach((t=>{"promises"!==t&&(e[t]=n[t])})),r.forEach((r=>{e[r]=t(n[r])})),e.exists=function(e,t){return"function"==typeoft?n.exists(e,t):newPromise((t=>n.exists(e,t)))},e.read=function(e,t,r,u,o,i){return"function"==typeofi?n.read(e,t,r,u,o,i):newPromise(((i,s)=>{n.read(e,t,r,u,o,((e,t,n)=>{if(e)returns(e);i({bytesRead:t,buffer:n})}))}))},e.write=function(e,t,...r){return"function"==typeofr[r.length-1]?n.write(e,t,...r):newPromise(((u,o)=>{n.write(e,t,...r,((e,t,n)=>{if(e)returno(e);u({bytesWritten:t,buffer:n})}))}))},"function"==typeofn.realpath.native&&(e.realpath.native=t(n.realpath.native))}(ho);constCo=p.default;functionFo(e){return(e=Co.normalize(Co.resolve(e)).split(Co.sep)).length>0?e[0]:null}constgo=/[<>:"|?*]/;varAo=function(e){constt=Fo(e);returne=e.replace(t,""),go.test(e)};constvo=we,So=p.default,wo=Ao,Oo=parseInt("0777",8);varbo=functione(t,n,r,u){if("function"==typeofn?(r=n,n={}):n&&"object"==typeofn||(n={mode:n}),"win32"===process.platform&&wo(t)){conste=newError(t+" contains invalid WIN32 path characters.");returne.code="EINVAL",r(e)}leto=n.mode;consti=n.fs||vo;void0===o&&(o=Oo&~process.umask()),u||(u=null),r=r||function(){},t=So.resolve(t),i.mkdir(t,o,(o=>{if(!o)returnr(null,u=u||t);if("ENOENT"===o.code){if(So.dirname(t)===t)returnr(o);e(So.dirname(t),n,((u,o)=>{u?r(u,o):e(t,n,r,o)}))}elsei.stat(t,((e,t)=>{e||!t.isDirectory()?r(o,u):r(null,u)}))}))};const_o=we,Bo=p.default,Po=Ao,ko=parseInt("0777",8);varxo=functione(t,n,r){n&&"object"==typeofn||(n={mode:n});letu=n.mode;consto=n.fs||_o;if("win32"===process.platform&&Po(t)){conste=newError(t+" contains invalid WIN32 path characters.");throwe.code="EINVAL",e}void0===u&&(u=ko&~process.umask()),r||(r=null),t=Bo.resolve(t);try{o.mkdirSync(t,u),r=r||t}catch(u){if("ENOENT"===u.code){if(Bo.dirname(t)===t)throwu;r=e(Bo.dirname(t),n,r),e(t,n,r)}else{lete;try{e=o.statSync(t)}catch(e){throwu}if(!e.isDirectory())throwu}}returnr};constNo=(0,yo.fromCallback)(bo);varIo={mkdirs:No,mkdirsSync:xo,mkdirp:No,mkdirpSync:xo,ensureDir:No,ensureDirSync:xo};constTo=we;E.default,p.default;varRo=function(e,t,n,r){To.open(e,"r+",((e,u)=>{if(e)returnr(e);To.futimes(u,t,n,(e=>{To.close(u,(t=>{r&&r(e||t)}))}))}))},Mo=function(e,t,n){constr=To.openSync(e,"r+");returnTo.futimesSync(r,t,n),To.closeSync(r)};constLo=we,jo=p.default,$o=10,Ho=5,Jo=0,Go=process.versions.node.split("."),Vo=Number.parseInt(Go[0],10),Uo=Number.parseInt(Go[1],10),Wo=Number.parseInt(Go[2],10);functionzo(){if(Vo>$o)return!0;if(Vo===$o){if(Uo>Ho)return!0;if(Uo===Ho&&Wo>=Jo)return!0}return!1}functionKo(e,t){constn=jo.resolve(e).split(jo.sep).filter((e=>e)),r=jo.resolve(t).split(jo.sep).filter((e=>e));returnn.reduce(((e,t,n)=>e&&r[n]===t),!0)}functionqo(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}varYo,Xo,Zo={checkPaths:function(e,t,n,r){!function(e,t,n){zo()?Lo.stat(e,{bigint:!0},((e,r)=>{if(e)returnn(e);Lo.stat(t,{bigint:!0},((e,t)=>e?"ENOENT"===e.code?n(null,{srcStat:r,destStat:null}):n(e):n(null,{srcStat:r,destStat:t})))})):Lo.stat(e,((e,r)=>{if(e)returnn(e);Lo.stat(t,((e,t)=>e?"ENOENT"===e.code?n(null,{srcStat:r,destStat:null}):n(e):n(null,{srcStat:r,destStat:t})))}))}(e,t,((u,o)=>{if(u)returnr(u);const{srcStat:i,destStat:s}=o;returns&&s.ino&&s.dev&&s.ino===i.ino&&s.dev===i.dev?r(newError("Source and destination must not be the same.")):i.isDirectory()&&Ko(e,t)?r(newError(qo(e,t,n))):r(null,{srcStat:i,destStat:s})}))},checkPathsSync:function(e,t,n){const{srcStat:r,destStat:u}=function(e,t){letn,r;n=zo()?Lo.statSync(e,{bigint:!0}):Lo.statSync(e);try{r=zo()?Lo.statSync(t,{bigint:!0}):Lo.statSync(t)}catch(e){if("ENOENT"===e.code)return{srcStat:n,destStat:null};throwe}return{srcStat:n,destStat:r}}(e,t);if(u&&u.ino&&u.dev&&u.ino===r.ino&&u.dev===r.dev)thrownewError("Source and destination must not be the same.");if(r.isDirectory()&&Ko(e,t))thrownewError(qo(e,t,n));return{srcStat:r,destStat:u}},checkParentPaths:functione(t,n,r,u,o){consti=jo.resolve(jo.dirname(t)),s=jo.resolve(jo.dirname(r));if(s===i||s===jo.parse(s).root)returno();zo()?Lo.stat(s,{bigint:!0},((i,c)=>i?"ENOENT"===i.code?o():o(i):c.ino&&c.dev&&c.ino===n.ino&&c.dev===n.dev?o(newError(qo(t,r,u))):e(t,n,s,u,o))):Lo.stat(s,((i,c)=>i?"ENOENT"===i.code?o():o(i):c.ino&&c.dev&&c.ino===n.ino&&c.dev===n.dev?o(newError(qo(t,r,u))):e(t,n,s,u,o)))},checkParentPathsSync:functione(t,n,r,u){consto=jo.resolve(jo.dirname(t)),i=jo.resolve(jo.dirname(r));if(i===o||i===jo.parse(i).root)return;lets;try{s=zo()?Lo.statSync(i,{bigint:!0}):Lo.statSync(i)}catch(e){if("ENOENT"===e.code)return;throwe}if(s.ino&&s.dev&&s.ino===n.ino&&s.dev===n.dev)thrownewError(qo(t,r,u));returne(t,n,i,u)},isSrcSubdir:Ko};constQo=we,ei=p.default,ti=Io.mkdirsSync,ni=Mo,ri=Zo;functionui(e,t,n,r){if(!r.filter||r.filter(t,n))returnfunction(e,t,n,r){constu=r.dereference?Qo.statSync:Qo.lstatSync,o=u(t);if(o.isDirectory())returnfunction(e,t,n,r,u){if(!t)returnfunction(e,t,n,r){returnQo.mkdirSync(n),ii(t,n,r),Qo.chmodSync(n,e.mode)}(e,n,r,u);if(t&&!t.isDirectory())thrownewError(`Cannot overwrite non-directory '${r}' with directory '${n}'.`);returnii(n,r,u)}(o,e,t,n,r);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())returnfunction(e,t,n,r,u){returnt?function(e,t,n,r){if(r.overwrite)returnQo.unlinkSync(n),oi(e,t,n,r);if(r.errorOnExist)thrownewError(`'${n}' already exists`)}(e,n,r,u):oi(e,n,r,u)}(o,e,t,n,r);if(o.isSymbolicLink())returnfunction(e,t,n,r){letu=Qo.readlinkSync(t);r.dereference&&(u=ei.resolve(process.cwd(),u));if(e){lete;try{e=Qo.readlinkSync(n)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)returnQo.symlinkSync(u,n);throwe}if(r.dereference&&(e=ei.resolve(process.cwd(),e)),ri.isSrcSubdir(u,e))thrownewError(`Cannot copy '${u}' to a subdirectory of itself, '${e}'.`);if(Qo.statSync(n).isDirectory()&&ri.isSrcSubdir(e,u))thrownewError(`Cannot overwrite '${e}' with '${u}'.`);returnfunction(e,t){returnQo.unlinkSync(t),Qo.symlinkSync(e,t)}(u,n)}returnQo.symlinkSync(u,n)}(e,t,n,r)}(e,t,n,r)}functionoi(e,t,n,r){return"function"==typeofQo.copyFileSync?(Qo.copyFileSync(t,n),Qo.chmodSync(n,e.mode),r.preserveTimestamps?ni(n,e.atime,e.mtime):void0):function(e,t,n,r){constu=65536,o=(Xo?Yo:(Xo=1,Yo=function(e){if("function"==typeofBuffer.allocUnsafe)try{returnBuffer.allocUnsafe(e)}catch(t){returnnewBuffer(e)}returnnewBuffer(e)}))(u),i=Qo.openSync(t,"r"),s=Qo.openSync(n,"w",e.mode);letc=0;for(;c<e.size;){conste=Qo.readSync(i,o,0,u,c);Qo.writeSync(s,o,0,e),c+=e}r.preserveTimestamps&&Qo.futimesSync(s,e.atime,e.mtime);Qo.closeSync(i),Qo.closeSync(s)}(e,t,n,r)}functionii(e,t,n){Qo.readdirSync(e).forEach((r=>function(e,t,n,r){constu=ei.join(t,e),o=ei.join(n,e),{destStat:i}=ri.checkPathsSync(u,o,"copy");returnui(i,u,o,r)}(r,e,t,n)))}varsi=function(e,t,n){"function"==typeofn&&(n={filter:n}),(n=n||{}).clobber=!("clobber"inn)||!!n.clobber,n.overwrite="overwrite"inn?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const{srcStat:r,destStat:u}=ri.checkPathsSync(e,t,"copy");returnri.checkParentPathsSync(e,r,t,"copy"),function(e,t,n,r){if(r.filter&&!r.filter(t,n))return;constu=ei.dirname(n);Qo.existsSync(u)||ti(u);returnui(e,t,n,r)}(u,e,t,n)},ci={copySync:si};constai=yo.fromPromise,li=ho;varfi={pathExists:ai((function(e){returnli.access(e).then((()=>!0)).catch((()=>!1))})),pathExistsSync:li.existsSync};constdi=we,Di=p.default,pi=Io.mkdirs,Ei=fi.pathExists,mi=Ro,hi=Zo;functionyi(e,t,n,r,u){consto=Di.dirname(n);Ei(o,((i,s)=>i?u(i):s?Fi(e,t,n,r,u):voidpi(o,(o=>o?u(o):Fi(e,t,n,r,u)))))}functionCi(e,t,n,r,u,o){Promise.resolve(u.filter(n,r)).then((i=>i?e(t,n,r,u,o):o()),(e=>o(e)))}functionFi(e,t,n,r,u){returnr.filter?Ci(gi,e,t,n,r,u):gi(e,t,n,r,u)}functiongi(e,t,n,r,u){(r.dereference?di.stat:di.lstat)(t,((o,i)=>o?u(o):i.isDirectory()?function(e,t,n,r,u,o){if(!t)returnfunction(e,t,n,r,u){di.mkdir(n,(o=>{if(o)returnu(o);Si(t,n,r,(t=>t?u(t):di.chmod(n,e.mode,u)))}))}(e,n,r,u,o);if(t&&!t.isDirectory())returno(newError(`Cannot overwrite non-directory '${r}' with directory '${n}'.`));returnSi(n,r,u,o)}(i,e,t,n,r,u):i.isFile()||i.isCharacterDevice()||i.isBlockDevice()?function(e,t,n,r,u,o){returnt?function(e,t,n,r,u){if(!r.overwrite)returnr.errorOnExist?u(newError(`'${n}' already exists`)):u();di.unlink(n,(o=>o?u(o):Ai(e,t,n,r,u)))}(e,n,r,u,o):Ai(e,n,r,u,o)}(i,e,t,n,r,u):i.isSymbolicLink()?function(e,t,n,r,u){di.readlink(t,((t,o)=>t?u(t):(r.dereference&&(o=Di.resolve(process.cwd(),o)),e?voiddi.readlink(n,((t,i)=>t?"EINVAL"===t.code||"UNKNOWN"===t.code?di.symlink(o,n,u):u(t):(r.dereference&&(i=Di.resolve(process.cwd(),i)),hi.isSrcSubdir(o,i)?u(newError(`Cannot copy '${o}' to a subdirectory of itself, '${i}'.`)):e.isDirectory()&&hi.isSrcSubdir(i,o)?u(newError(`Cannot overwrite '${i}' with '${o}'.`)):function(e,t,n){di.unlink(t,(r=>r?n(r):di.symlink(e,t,n)))}(o,n,u)))):di.symlink(o,n,u))))}(e,t,n,r,u):void0))}functionAi(e,t,n,r,u){return"function"==typeofdi.copyFile?di.copyFile(t,n,(t=>t?u(t):vi(e,n,r,u))):function(e,t,n,r,u){consto=di.createReadStream(t);o.on("error",(e=>u(e))).once("open",(()=>{constt=di.createWriteStream(n,{mode:e.mode});t.on("error",(e=>u(e))).on("open",(()=>o.pipe(t))).once("close",(()=>vi(e,n,r,u)))}))}(e,t,n,r,u)}functionvi(e,t,n,r){di.chmod(t,e.mode,(u=>u?r(u):n.preserveTimestamps?mi(t,e.atime,e.mtime,r):r()))}functionSi(e,t,n,r){di.readdir(e,((u,o)=>u?r(u):wi(o,e,t,n,r)))}functionwi(e,t,n,r,u){consto=e.pop();returno?function(e,t,n,r,u,o){consti=Di.join(n,t),s=Di.join(r,t);hi.checkPaths(i,s,"copy",((t,c)=>{if(t)returno(t);const{destStat:a}=c;Fi(a,i,s,u,(t=>t?o(t):wi(e,n,r,u,o)))}))}(e,o,t,n,r,u):u()}varOi=function(e,t,n,r){"function"!=typeofn||r?"function"==typeofn&&(n={filter:n}):(r=n,n={}),r=r||function(){},(n=n||{}).clobber=!("clobber"inn)||!!n.clobber,n.overwrite="overwrite"inn?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),hi.checkPaths(e,t,"copy",((u,o)=>{if(u)returnr(u);const{srcStat:i,destStat:s}=o;hi.checkParentPaths(e,i,t,"copy",(u=>u?r(u):n.filter?Ci(yi,s,e,t,n,r):yi(s,e,t,n,r)))}))};varbi={copy:(0,yo.fromCallback)(Oi)};const_i=we,Bi=p.default,Pi=g.default,ki="win32"===process.platform;functionxi(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach((t=>{e[t]=e[t]||_i[t],e[t+="Sync"]=e[t]||_i[t]})),e.maxBusyTries=e.maxBusyTries||3}functionNi(e,t,n){letr=0;"function"==typeoft&&(n=t,t={}),Pi(e,"rimraf: missing path"),Pi.strictEqual(typeofe,"string","rimraf: path should be a string"),Pi.strictEqual(typeofn,"function","rimraf: callback function required"),Pi(t,"rimraf: invalid options argument provided"),Pi.strictEqual(typeoft,"object","rimraf: options should be object"),xi(t),Ii(e,t,(functionu(o){if(o){if(("EBUSY"===o.code||"ENOTEMPTY"===o.code||"EPERM"===o.code)&&r<t.maxBusyTries){r++;returnsetTimeout((()=>Ii(e,t,u)),100*r)}"ENOENT"===o.code&&(o=null)}n(o)}))}functionIi(e,t,n){Pi(e),Pi(t),Pi("function"==typeofn),t.lstat(e,((r,u)=>r&&"ENOENT"===r.code?n(null):r&&"EPERM"===r.code&&ki?Ti(e,t,r,n):u&&u.isDirectory()?Mi(e,t,r,n):voidt.unlink(e,(r=>{if(r){if("ENOENT"===r.code)returnn(null);if("EPERM"===r.code)returnki?Ti(e,t,r,n):Mi(e,t,r,n);if("EISDIR"===r.code)returnMi(e,t,r,n)}returnn(r)}))))}functionTi(e,t,n,r){Pi(e),Pi(t),Pi("function"==typeofr),n&&Pi(ninstanceofError),t.chmod(e,438,(u=>{u?r("ENOENT"===u.code?null:n):t.stat(e,((u,o)=>{u?r("ENOENT"===u.code?null:n):o.isDirectory()?Mi(e,t,n,r):t.unlink(e,r)}))}))}functionRi(e,t,n){letr;Pi(e),Pi(t),n&&Pi(ninstanceofError);try{t.chmodSync(e,438)}catch(e){if("ENOENT"===e.code)return;thrown}try{r=t.statSync(e)}catch(e){if("ENOENT"===e.code)return;thrown}r.isDirectory()?ji(e,t,n):t.unlinkSync(e)}functionMi(e,t,n,r){Pi(e),Pi(t),n&&Pi(ninstanceofError),Pi("function"==typeofr),t.rmdir(e,(u=>{!u||"ENOTEMPTY"!==u.code&&"EEXIST"!==u.code&&"EPERM"!==u.code?u&&"ENOTDIR"===u.code?r(n):r(u):function(e,t,n){Pi(e),Pi(t),Pi("function"==typeofn),t.readdir(e,((r,u)=>{if(r)returnn(r);leto,i=u.length;if(0===i)returnt.rmdir(e,n);u.forEach((r=>{Ni(Bi.join(e,r),t,(r=>{if(!o)returnr?n(o=r):void(0==--i&&t.rmdir(e,n))}))}))}))}(e,t,r)}))}functionLi(e,t){letn;xi(t=t||{}),Pi(e,"rimraf: missing path"),Pi.strictEqual(typeofe,"string","rimraf: path should be a string"),Pi(t,"rimraf: missing options"),Pi.strictEqual(typeoft,"object","rimraf: options should be object");try{n=t.lstatSync(e)}catch(n){if("ENOENT"===n.code)return;"EPERM"===n.code&&ki&&Ri(e,t,n)}try{n&&n.isDirectory()?ji(e,t,null):t.unlinkSync(e)}catch(n){if("ENOENT"===n.code)return;if("EPERM"===n.code)returnki?Ri(e,t,n):ji(e,t,n);if("EISDIR"!==n.code)thrown;ji(e,t,n)}}functionji(e,t,n){Pi(e),Pi(t),n&&Pi(ninstanceofError);try{t.rmdirSync(e)}catch(r){if("ENOTDIR"===r.code)thrown;if("ENOTEMPTY"===r.code||"EEXIST"===r.code||"EPERM"===r.code)!function(e,t){if(Pi(e),Pi(t),t.readdirSync(e).forEach((n=>Li(Bi.join(e,n),t))),!ki){returnt.rmdirSync(e,t)}{constn=Date.now();do{try{returnt.rmdirSync(e,t)}catch(e){}}while(Date.now()-n<500)}}(e,t);elseif("ENOENT"!==r.code)throwr}}var$i=Ni;Ni.sync=Li;constHi=$i;varJi={remove:(0,yo.fromCallback)(Hi),removeSync:Hi.sync};constGi=yo.fromCallback,Vi=we,Ui=p.default,Wi=Io,zi=Ji,Ki=Gi((function(e,t){t=t||function(){},Vi.readdir(e,((n,r)=>{if(n)returnWi.mkdirs(e,t);r=r.map((t=>Ui.join(e,t))),functione(){constn=r.pop();if(!n)returnt();zi.remove(n,(n=>{if(n)returnt(n);e()}))}()}))}));functionqi(e){lett;try{t=Vi.readdirSync(e)}catch(t){returnWi.mkdirsSync(e)}t.forEach((t=>{t=Ui.join(e,t),zi.removeSync(t)}))}varYi={emptyDirSync:qi,emptydirSync:qi,emptyDir:Ki,emptydir:Ki};constXi=yo.fromCallback,Zi=p.default,Qi=we,es=Io,ts=fi.pathExists;varns={createFile:Xi((function(e,t){functionn(){Qi.writeFile(e,"",(e=>{if(e)returnt(e);t()}))}Qi.stat(e,((r,u)=>{if(!r&&u.isFile())returnt();consto=Zi.dirname(e);ts(o,((e,r)=>e?t(e):r?n():voides.mkdirs(o,(e=>{if(e)returnt(e);n()}))))}))})),createFileSync:function(e){lett;try{t=Qi.statSync(e)}catch(e){}if(t&&t.isFile())return;constn=Zi.dirname(e);Qi.existsSync(n)||es.mkdirsSync(n),Qi.writeFileSync(e,"")}};constrs=yo.fromCallback,us=p.default,os=we,is=Io,ss=fi.pathExists;varcs={createLink:rs((function(e,t,n){functionr(e,t){os.link(e,t,(e=>{if(e)returnn(e);n(null)}))}ss(t,((u,o)=>u?n(u):o?n(null):voidos.lstat(e,(u=>{if(u)returnu.message=u.message.replace("lstat","ensureLink"),n(u);consto=us.dirname(t);ss(o,((u,i)=>u?n(u):i?r(e,t):voidis.mkdirs(o,(u=>{if(u)returnn(u);r(e,t)}))))}))))})),createLinkSync:function(e,t){if(os.existsSync(t))return;try{os.lstatSync(e)}catch(e){throwe.message=e.message.replace("lstat","ensureLink"),e}constn=us.dirname(t);returnos.existsSync(n)||is.mkdirsSync(n),os.linkSync(e,t)}};constas=p.default,ls=we,fs=fi.pathExists;vards={symlinkPaths:function(e,t,n){if(as.isAbsolute(e))returnls.lstat(e,(t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),n(t)):n(null,{toCwd:e,toDst:e})));{constr=as.dirname(t),u=as.join(r,e);returnfs(u,((t,o)=>t?n(t):o?n(null,{toCwd:u,toDst:e}):ls.lstat(e,(t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),n(t)):n(null,{toCwd:e,toDst:as.relative(r,e)})))))}},symlinkPathsSync:function(e,t){letn;if(as.isAbsolute(e)){if(n=ls.existsSync(e),!n)thrownewError("absolute srcpath does not exist");return{toCwd:e,toDst:e}}{constr=as.dirname(t),u=as.join(r,e);if(n=ls.existsSync(u),n)return{toCwd:u,toDst:e};if(n=ls.existsSync(e),!n)thrownewError("relative srcpath does not exist");return{toCwd:e,toDst:as.relative(r,e)}}}};constDs=we;varps={symlinkType:function(e,t,n){if(n="function"==typeoft?t:n,t="function"!=typeoft&&t)returnn(null,t);Ds.lstat(e,((e,r)=>{if(e)returnn(null,"file");t=r&&r.isDirectory()?"dir":"file",n(null,t)}))},symlinkTypeSync:function(e,t){letn;if(t)returnt;try{n=Ds.lstatSync(e)}catch(e){return"file"}returnn&&n.isDirectory()?"dir":"file"}};constEs=yo.fromCallback,ms=p.default,hs=we,ys=Io.mkdirs,Cs=Io.mkdirsSync,Fs=ds.symlinkPaths,gs=ds.symlinkPathsSync,As=ps.symlinkType,vs=ps.symlinkTypeSync,Ss=fi.pathExists;varws={createSymlink:Es((function(e,t,n,r){r="function"==typeofn?n:r,n="function"!=typeofn&&n,Ss(t,((u,o)=>u?r(u):o?r(null):voidFs(e,t,((u,o)=>{if(u)returnr(u);e=o.toDst,As(o.toCwd,n,((n,u)=>{if(n)returnr(n);consto=ms.dirname(t);Ss(o,((n,i)=>n?r(n):i?hs.symlink(e,t,u,r):voidys(o,(n=>{if(n)returnr(n);hs.symlink(e,t,u,r)}))))}))}))))})),createSymlinkSync:function(e,t,n){if(hs.existsSync(t))return;constr=gs(e,t);e=r.toDst,n=vs(r.toCwd,n);constu=ms.dirname(t);returnhs.existsSync(u)||Cs(u),hs.symlinkSync(e,t,n)}};varOs,bs={createFile:ns.createFile,createFileSync:ns.createFileSync,ensureFile:ns.createFile,ensureFileSync:ns.createFileSync,createLink:cs.createLink,createLinkSync:cs.createLinkSync,ensureLink:cs.createLink,ensureLinkSync:cs.createLinkSync,createSymlink:ws.createSymlink,createSymlinkSync:ws.createSymlinkSync,ensureSymlink:ws.createSymlink,ensureSymlinkSync:ws.createSymlinkSync};try{Os=we}catch(e){Os=D.default}function_s(e,t){varn,r="\n";return"object"==typeoft&&null!==t&&(t.spaces&&(n=t.spaces),t.EOL&&(r=t.EOL)),JSON.stringify(e,t?t.replacer:null,n).replace(/\n/g,r)+r}functionBs(e){returnBuffer.isBuffer(e)&&(e=e.toString("utf8")),e=e.replace(/^\uFEFF/,"")}varPs={readFile:function(e,t,n){null==n&&(n=t,t={}),"string"==typeoft&&(t={encoding:t});varr=(t=t||{}).fs||Os,u=!0;"throws"int&&(u=t.throws),r.readFile(e,t,(function(r,o){if(r)returnn(r);vari;o=Bs(o);try{i=JSON.parse(o,t?t.reviver:null)}catch(t){returnu?(t.message=e+": "+t.message,n(t)):n(null,null)}n(null,i)}))},readFileSync:function(e,t){"string"==typeof(t=t||{})&&(t={encoding:t});varn=t.fs||Os,r=!0;"throws"int&&(r=t.throws);try{varu=n.readFileSync(e,t);returnu=Bs(u),JSON.parse(u,t.reviver)}catch(t){if(r)throwt.message=e+": "+t.message,t;returnnull}},writeFile:function(e,t,n,r){null==r&&(r=n,n={});varu=(n=n||{}).fs||Os,o="";try{o=_s(t,n)}catch(e){returnvoid(r&&r(e,null))}u.writeFile(e,o,n,r)},writeFileSync:function(e,t,n){varr=(n=n||{}).fs||Os,u=_s(t,n);returnr.writeFileSync(e,u,n)}},ks=Ps;constxs=yo.fromCallback,Ns=ks;varIs={readJson:xs(Ns.readFile),readJsonSync:Ns.readFileSync,writeJson:xs(Ns.writeFile),writeJsonSync:Ns.writeFileSync};constTs=p.default,Rs=Io,Ms=fi.pathExists,Ls=Is;varjs=function(e,t,n,r){"function"==typeofn&&(r=n,n={});constu=Ts.dirname(e);Ms(u,((o,i)=>o?r(o):i?Ls.writeJson(e,t,n,r):voidRs.mkdirs(u,(u=>{if(u)returnr(u);Ls.writeJson(e,t,n,r)}))))};const$s=we,Hs=p.default,Js=Io,Gs=Is;varVs=function(e,t,n){constr=Hs.dirname(e);$s.existsSync(r)||Js.mkdirsSync(r),Gs.writeJsonSync(e,t,n)};constUs=yo.fromCallback,Ws=Is;Ws.outputJson=Us(js),Ws.outputJsonSync=Vs,Ws.outputJSON=Ws.outputJson,Ws.outputJSONSync=Ws.outputJsonSync,Ws.writeJSON=Ws.writeJson,Ws.writeJSONSync=Ws.writeJsonSync,Ws.readJSON=Ws.readJson,Ws.readJSONSync=Ws.readJsonSync;varzs=Ws;constKs=we,qs=p.default,Ys=ci.copySync,Xs=Ji.removeSync,Zs=Io.mkdirpSync,Qs=Zo;functionec(e,t,n){try{Ks.renameSync(e,t)}catch(r){if("EXDEV"!==r.code)throwr;returnfunction(e,t,n){constr={overwrite:n,errorOnExist:!0};returnYs(e,t,r),Xs(e)}(e,t,n)}}vartc=function(e,t,n){constr=(n=n||{}).overwrite||n.clobber||!1,{srcStat:u}=Qs.checkPathsSync(e,t,"move");returnQs.checkParentPathsSync(e,u,t,"move"),Zs(qs.dirname(t)),function(e,t,n){if(n)returnXs(t),ec(e,t,n);if(Ks.existsSync(t))thrownewError("dest already exists.");returnec(e,t,n)}(e,t,r)},nc={moveSync:tc};constrc=we,uc=p.default,oc=bi.copy,ic=Ji.remove,sc=Io.mkdirp,cc=fi.pathExists,ac=Zo;functionlc(e,t,n,r){rc.rename(e,t,(u=>u?"EXDEV"!==u.code?r(u):function(e,t,n,r){constu={overwrite:n,errorOnExist:!0};oc(e,t,u,(t=>t?r(t):ic(e,r)))}(e,t,n,r):r()))}varfc=function(e,t,n,r){"function"==typeofn&&(r=n,n={});constu=n.overwrite||n.clobber||!1;ac.checkPaths(e,t,"move",((n,o)=>{if(n)returnr(n);const{srcStat:i}=o;ac.checkParentPaths(e,i,t,"move",(n=>{if(n)returnr(n);sc(uc.dirname(t),(n=>n?r(n):function(e,t,n,r){if(n)returnic(t,(u=>u?r(u):lc(e,t,n,r)));cc(t,((u,o)=>u?r(u):o?r(newError("dest already exists.")):lc(e,t,n,r)))}(e,t,u,r)))}))}))};vardc={move:(0,yo.fromCallback)(fc)};constDc=yo.fromCallback,pc=we,Ec=p.default,mc=Io,hc=fi.pathExists;varyc={outputFile:Dc((function(e,t,n,r){"function"==typeofn&&(r=n,n="utf8");constu=Ec.dirname(e);hc(u,((o,i)=>o?r(o):i?pc.writeFile(e,t,n,r):voidmc.mkdirs(u,(u=>{if(u)returnr(u);pc.writeFile(e,t,n,r)}))))})),outputFileSync:function(e,...t){constn=Ec.dirname(e);if(pc.existsSync(n))returnpc.writeFileSync(e,...t);mc.mkdirsSync(n),pc.writeFileSync(e,...t)}};!function(e){e.exports=Object.assign({},ho,ci,bi,Yi,bs,zs,Io,nc,dc,yc,fi,Ji);constt=D.default;Object.getOwnPropertyDescriptor(t,"promises")&&Object.defineProperty(e.exports,"promises",{get:()=>t.promises})}(mo);constCc=Nr.exports("streamroller:fileNameFormatter"),Fc=p.default;constgc=Nr.exports("streamroller:fileNameParser"),Ac=nu.exports;constvc=Nr.exports("streamroller:moveAndMaybeCompressFile"),Sc=mo.exports,wc=v.default;varOc=async(e,t,n)=>{if(n=function(e){constt={mode:parseInt("0600",8),compress:!1},n=Object.assign({},t,e);returnvc(`_parseOption: moveAndMaybeCompressFile called with option=${JSON.stringify(n)}`),n}(n),e!==t){if(awaitSc.pathExists(e))if(vc(`moveAndMaybeCompressFile: moving file from ${e} to ${t}${n.compress?"with":"without"} compress`),n.compress)awaitnewPromise(((r,u)=>{leto=!1;consti=Sc.createWriteStream(t,{mode:n.mode,flags:"wx"}).on("open",(()=>{o=!0;constt=Sc.createReadStream(e).on("open",(()=>{t.pipe(wc.createGzip()).pipe(i)})).on("error",(t=>{vc(`moveAndMaybeCompressFile: error reading ${e}`,t),i.destroy(t)}))})).on("finish",(()=>{vc(`moveAndMaybeCompressFile: finished compressing ${t}, deleting ${e}`),Sc.unlink(e).then(r).catch((t=>{vc(`moveAndMaybeCompressFile: error deleting ${e}, truncating instead`,t),Sc.truncate(e).then(r).catch((t=>{vc(`moveAndMaybeCompressFile: error truncating ${e}`,t),u(t)}))}))})).on("error",(e=>{o?(vc(`moveAndMaybeCompressFile: error writing ${t}, deleting`,e),Sc.unlink(t).then((()=>{u(e)})).catch((e=>{vc(`moveAndMaybeCompressFile: error deleting ${t}`,e),u(e)}))):(vc(`moveAndMaybeCompressFile: error creating ${t}`,e),u(e))}))})).catch((()=>{}));else{vc(`moveAndMaybeCompressFile: renaming ${e} to ${t}`);try{awaitSc.move(e,t,{overwrite:!0})}catch(n){if(vc(`moveAndMaybeCompressFile: error renaming ${e} to ${t}`,n),"ENOENT"!==n.code){vc("moveAndMaybeCompressFile: trying copy+truncate instead");try{awaitSc.copy(e,t,{overwrite:!0}),awaitSc.truncate(e)}catch(e){vc("moveAndMaybeCompressFile: error copy+truncate",e)}}}}}elsevc("moveAndMaybeCompressFile: source and target are the same, not doing anything")};constbc=Nr.exports("streamroller:RollingFileWriteStream"),_c=mo.exports,Bc=p.default,Pc=E.default,kc=()=>newDate,xc=nu.exports,{Writable:Nc}=C.default,Ic=({file:e,keepFileExt:t,needsIndex:n,alwaysIncludeDate:r,compress:u,fileNameSep:o})=>{leti=o||".";consts=Fc.join(e.dir,e.name),c=t=>t+e.ext,a=(e,t,r)=>!n&&r||!t?e:e+i+t,l=(e,t,n)=>(t>0||r)&&n?e+i+n:e,f=(e,t)=>t&&u?e+".gz":e,d=t?[l,a,c,f]:[c,l,a,f];return({date:e,index:t})=>(Cc(`_formatFileName: date=${e}, index=${t}`),d.reduce(((n,r)=>r(n,t,e)),s))},Tc=({file:e,keepFileExt:t,pattern:n,fileNameSep:r})=>{letu=r||".";consto="__NOT_MATCHING__";leti=[(e,t)=>e.endsWith(".gz")?(gc("it is gzipped"),t.isCompressed=!0,e.slice(0,-1*".gz".length)):e,t?t=>t.startsWith(e.name)&&t.endsWith(e.ext)?(gc("it starts and ends with the right things"),t.slice(e.name.length+1,-1*e.ext.length)):o:t=>t.startsWith(e.base)?(gc("it starts with the right things"),t.slice(e.base.length+1)):o,n?(e,t)=>{constr=e.split(u);leto=r[r.length-1];gc("items: ",r,", indexStr: ",o);leti=e;void0!==o&&o.match(/^\d+$/)?(i=e.slice(0,-1*(o.length+1)),gc(`dateStr is ${i}`),n&&!i&&(i=o,o="0")):o="0";try{constr=Ac.parse(n,i,newDate(0,0));returnAc.asString(n,r)!==i?e:(t.index=parseInt(o,10),t.date=i,t.timestamp=r.getTime(),"")}catch(t){returngc(`Problem parsing ${i} as ${n}, error was: `,t),e}}:(e,t)=>e.match(/^\d+$/)?(gc("it has an index"),t.index=parseInt(e,10),""):e];returne=>{lett={filename:e,index:0,isCompressed:!1};returni.reduce(((e,n)=>n(e,t)),e)?null:t}},Rc=Oc;varMc=classextendsNc{constructor(e,t){if(bc(`constructor: creating RollingFileWriteStream. path=${e}`),"string"!=typeofe||0===e.length)thrownewError(`Invalid filename: ${e}`);if(e.endsWith(Bc.sep))thrownewError(`Filename is a directory: ${e}`);0===e.indexOf(`~${Bc.sep}`)&&(e=e.replace("~",Pc.homedir())),super(t),this.options=this._parseOption(t),this.fileObject=Bc.parse(e),""===this.fileObject.dir&&(this.fileObject=Bc.parse(Bc.join(process.cwd(),e))),this.fileFormatter=Ic({file:this.fileObject,alwaysIncludeDate:this.options.alwaysIncludePattern,needsIndex:this.options.maxSize<Number.MAX_SAFE_INTEGER,compress:this.options.compress,keepFileExt:this.options.keepFileExt,fileNameSep:this.options.fileNameSep}),this.fileNameParser=Tc({file:this.fileObject,keepFileExt:this.options.keepFileExt,pattern:this.options.pattern,fileNameSep:this.options.fileNameSep}),this.state={currentSize:0},this.options.pattern&&(this.state.currentDate=xc(this.options.pattern,kc())),this.filename=this.fileFormatter({index:0,date:this.state.currentDate}),["a","a+","as","as+"].includes(this.options.flags)&&this._setExistingSizeAndDate(),bc(`constructor: create new file ${this.filename}, state=${JSON.stringify(this.state)}`),this._renewWriteStream()}_setExistingSizeAndDate(){try{conste=_c.statSync(this.filename);this.state.currentSize=e.size,this.options.pattern&&(this.state.currentDate=xc(this.options.pattern,e.mtime))}catch(e){return}}_parseOption(e){constt={maxSize:0,numToKeep:Number.MAX_SAFE_INTEGER,encoding:"utf8",mode:parseInt("0600",8),flags:"a",compress:!1,keepFileExt:!1,alwaysIncludePattern:!1},n=Object.assign({},t,e);if(n.maxSize){if(n.maxSize<=0)thrownewError(`options.maxSize (${n.maxSize}) should be > 0`)}elsedeleten.maxSize;if(n.numBackups||0===n.numBackups){if(n.numBackups<0)thrownewError(`options.numBackups (${n.numBackups}) should be >= 0`);if(n.numBackups>=Number.MAX_SAFE_INTEGER)thrownewError(`options.numBackups (${n.numBackups}) should be < Number.MAX_SAFE_INTEGER`);n.numToKeep=n.numBackups+1}elseif(n.numToKeep<=0)thrownewError(`options.numToKeep (${n.numToKeep}) should be > 0`);returnbc(`_parseOption: creating stream with option=${JSON.stringify(n)}`),n}_final(e){this.currentFileStream.end("",this.options.encoding,e)}_write(e,t,n){this._shouldRoll().then((()=>{bc(`_write: writing chunk. file=${this.currentFileStream.path} state=${JSON.stringify(this.state)} chunk=${e}`),this.currentFileStream.write(e,t,(t=>{this.state.currentSize+=e.length,n(t)}))}))}async_shouldRoll(){(this._dateChanged()||this._tooBig())&&(bc(`_shouldRoll: rolling because dateChanged? ${this._dateChanged()} or tooBig? ${this._tooBig()}`),awaitthis._roll())}_dateChanged(){returnthis.state.currentDate&&this.state.currentDate!==xc(this.options.pattern,kc())}_tooBig(){returnthis.state.currentSize>=this.options.maxSize}_roll(){returnbc("_roll: closing the current stream"),newPromise(((e,t)=>{this.currentFileStream.end("",this.options.encoding,(()=>{this._moveOldFiles().then(e).catch(t)}))}))}async_moveOldFiles(){conste=awaitthis._getExistingFiles();for(lett=(this.state.currentDate?e.filter((e=>e.date===this.state.currentDate)):e).length;t>=0;t--){bc(`_moveOldFiles: i = ${t}`);conste=this.fileFormatter({date:this.state.currentDate,index:t}),n=this.fileFormatter({date:this.state.currentDate,index:t+1}),r={compress:this.options.compress&&0===t,mode:this.options.mode};awaitRc(e,n,r)}this.state.currentSize=0,this.state.currentDate=this.state.currentDate?xc(this.options.pattern,kc()):null,bc(`_moveOldFiles: finished rolling files. state=${JSON.stringify(this.state)}`),this._renewWriteStream(),awaitnewPromise(((e,t)=>{this.currentFileStream.write("","utf8",(()=>{this._clean().then(e).catch(t)}))}))}async_getExistingFiles(){conste=await_c.readdir(this.fileObject.dir).catch((()=>[]));bc(`_getExistingFiles: files=${e}`);constt=e.map((e=>this.fileNameParser(e))).filter((e=>e)),n=e=>(e.timestamp?e.timestamp:kc().getTime())-e.index;returnt.sort(((e,t)=>n(e)-n(t))),t}_renewWriteStream(){conste=this.fileFormatter({date:this.state.currentDate,index:0}),t=e=>{try{return_c.mkdirSync(e,{recursive:!0})}catch(n){if("ENOENT"===n.code)returnt(Bc.dirname(e)),t(e);if("EEXIST"!==n.code&&"EROFS"!==n.code)thrown;try{if(_c.statSync(e).isDirectory())returne;thrown}catch(e){thrown}}};t(this.fileObject.dir);constn={flags:this.options.flags,encoding:this.options.encoding,mode:this.options.mode};varr,u;_c.appendFileSync(e,"",(r={...n},u="flags",r["flag"]=r[u],deleter[u],r)),this.currentFileStream=_c.createWriteStream(e,n),this.currentFileStream.on("error",(e=>{this.emit("error",e)}))}async_clean(){conste=awaitthis._getExistingFiles();if(bc(`_clean: numToKeep = ${this.options.numToKeep}, existingFiles = ${e.length}`),bc("_clean: existing files are: ",e),this._tooManyFiles(e.length)){constn=e.slice(0,e.length-this.options.numToKeep).map((e=>Bc.format({dir:this.fileObject.dir,base:e.filename})));await(t=n,bc(`deleteFiles: files to delete: ${t}`),Promise.all(t.map((e=>_c.unlink(e).catch((t=>{bc(`deleteFiles: error when unlinking ${e}, ignoring. Error was ${t}`)}))))))}vart}_tooManyFiles(e){returnthis.options.numToKeep>0&&e>this.options.numToKeep}};constLc=Mc;varjc=classextendsLc{constructor(e,t,n,r){r||(r={}),t&&(r.maxSize=t),r.numBackups||0===r.numBackups||(n||0===n||(n=1),r.numBackups=n),super(e,r),this.backups=r.numBackups,this.size=this.options.maxSize}gettheStream(){returnthis.currentFileStream}};const$c=Mc;varHc={RollingFileWriteStream:Mc,RollingFileStream:jc,DateRollingFileStream:classextends$c{constructor(e,t,n){t&&"object"==typeoft&&(n=t,t=null),n||(n={}),t||(t="yyyy-MM-dd"),n.pattern=t,n.numBackups||0===n.numBackups?n.daysToKeep=n.numBackups:(n.daysToKeep||0===n.daysToKeep?process.emitWarning("options.daysToKeep is deprecated due to the confusion it causes when used together with file size rolling. Please use options.numBackups instead.","DeprecationWarning","streamroller-DEP0001"):n.daysToKeep=1,n.numBackups=n.daysToKeep),super(e,n),this.mode=this.options.mode}gettheStream(){returnthis.currentFileStream}}};constJc=Nr.exports("log4js:file"),Gc=p.default,Vc=Hc,Uc=E.default.EOL;letWc=!1;constzc=newSet;functionKc(){zc.forEach((e=>{e.sighupHandler()}))}functionqc(e,t,n,r){constu=newVc.RollingFileStream(e,t,n,r);returnu.on("error",(t=>{console.error("log4js.fileAppender - Writing to file %s, error happened ",e,t)})),u.on("drain",(()=>{process.emit("log4js:pause",!1)})),u}Eo.configure=function(e,t){letn=t.basicLayout;returne.layout&&(n=t.layout(e.layout.type,e.layout)),e.mode=e.mode||384,function(e,t,n,r,u,o){e=Gc.normalize(e),Jc("Creating file appender (",e,", ",n,", ",r=r||0===r?r:5,", ",u,", ",o,")");leti=qc(e,n,r,u);consts=function(e){if(i.writable){if(!0===u.removeColor){constt=/\x1b[[0-9;]*m/g;e.data=e.data.map((e=>"string"==typeofe?e.replace(t,""):e))}i.write(t(e,o)+Uc,"utf8")||process.emit("log4js:pause",!0)}};returns.reopen=function(){i.end((()=>{i=qc(e,n,r,u)}))},s.sighupHandler=function(){Jc("SIGHUP handler called."),s.reopen()},s.shutdown=function(e){zc.delete(s),0===zc.size&&Wc&&(process.removeListener("SIGHUP",Kc),Wc=!1),i.end("","utf-8",e)},zc.add(s),Wc||(process.on("SIGHUP",Kc),Wc=!0),s}(e.filename,n,e.maxLogSize,e.backups,e,e.timezoneOffset)};varYc={};constXc=Hc,Zc=E.default.EOL;functionQc(e,t,n,r,u){r.maxSize=r.maxLogSize;consto=function(e,t,n){constr=newXc.DateRollingFileStream(e,t,n);returnr.on("error",(t=>{console.error("log4js.dateFileAppender - Writing to file %s, error happened ",e,t)})),r.on("drain",(()=>{process.emit("log4js:pause",!1)})),r}(e,t,r),i=function(e){o.writable&&(o.write(n(e,u)+Zc,"utf8")||process.emit("log4js:pause",!0))};returni.shutdown=function(e){o.end("","utf-8",e)},i}Yc.configure=function(e,t){letn=t.basicLayout;returne.layout&&(n=t.layout(e.layout.type,e.layout)),e.alwaysIncludePattern||(e.alwaysIncludePattern=!1),e.mode=e.mode||384,Qc(e.filename,e.pattern,n,e,e.timezoneOffset)};varea={};constta=Nr.exports("log4js:fileSync"),na=p.default,ra=D.default,ua=E.default.EOL||"\n";functionoa(e,t){if(ra.existsSync(e))return;constn=ra.openSync(e,t.flags,t.mode);ra.closeSync(n)}classia{constructor(e,t,n,r){ta("In RollingFileStream"),function(){if(!e||!t||t<=0)thrownewError("You must specify a filename and file size")}(),this.filename=e,this.size=t,this.backups=n,this.options=r,this.currentSize=0,this.currentSize=function(e){lett=0;try{t=ra.statSync(e).size}catch(t){oa(e,r)}returnt}(this.filename)}shouldRoll(){returnta("should roll with current size %d, and max size %d",this.currentSize,this.size),this.currentSize>=this.size}roll(e){constt=this,n=newRegExp(`^${na.basename(e)}`);functionr(e){returnn.test(e)}functionu(t){returnparseInt(t.substring(`${na.basename(e)}.`.length),10)||0}functiono(e,t){returnu(e)>u(t)?1:u(e)<u(t)?-1:0}functioni(n){constr=u(n);if(ta(`Index of ${n} is ${r}`),0===t.backups)ra.truncateSync(e,0);elseif(r<t.backups){try{ra.unlinkSync(`${e}.${r+1}`)}catch(e){}ta(`Renaming ${n} -> ${e}.${r+1}`),ra.renameSync(na.join(na.dirname(e),n),`${e}.${r+1}`)}}ta("Rolling, rolling, rolling"),ta("Renaming the old files"),ra.readdirSync(na.dirname(e)).filter(r).sort(o).reverse().forEach(i)}write(e,t){constn=this;ta("in write"),this.shouldRoll()&&(this.currentSize=0,this.roll(this.filename)),ta("writing the chunk to the file"),n.currentSize+=e.length,ra.appendFileSync(n.filename,e)}}ea.configure=function(e,t){letn=t.basicLayout;e.layout&&(n=t.layout(e.layout.type,e.layout));constr={flags:e.flags||"a",encoding:e.encoding||"utf8",mode:e.mode||384};returnfunction(e,t,n,r,u,o){ta("fileSync appender created");consti=function(e,t,n){letr;varu;returnt?r=newia(e,t,n,o):(oa(u=e,o),r={write(e){ra.appendFileSync(u,e)}}),r}(e=na.normalize(e),n,r=r||0===r?r:5);returne=>{i.write(t(e,u)+ua)}}(e.filename,n,e.maxLogSize,e.backups,e.timezoneOffset,r)};varsa={};constca=Nr.exports("log4js:tcp"),aa=S.default;sa.configure=function(e,t){ca(`configure with config = ${e}`);letn=function(e){returne.serialise()};returne.layout&&(n=t.layout(e.layout.type,e.layout)),function(e,t){letn=!1;constr=[];letu,o=3,i="__LOG4JS__";functions(e){ca("Writing log event to socket"),n=u.write(`${t(e)}${i}`,"utf8")}functionc(){lete;for(ca("emptying buffer");e=r.shift();)s(e)}functiona(e){n?s(e):(ca("buffering log event because it cannot write at the moment"),r.push(e))}returnfunctiont(){ca(`appender creating socket to ${e.host||"localhost"}:${e.port||5e3}`),i=`${e.endMsg||"__LOG4JS__"}`,u=aa.createConnection(e.port||5e3,e.host||"localhost"),u.on("connect",(()=>{ca("socket connected"),c(),n=!0})),u.on("drain",(()=>{ca("drain event received, emptying buffer"),n=!0,c()})),u.on("timeout",u.end.bind(u)),u.on("error",(e=>{ca("connection error",e),n=!1,c()})),u.on("close",t)}(),a.shutdown=function(e){ca("shutdown called"),r.length&&o?(ca("buffer has items, waiting 100ms to empty"),o-=1,setTimeout((()=>{a.shutdown(e)}),100)):(u.removeAllListeners("close"),u.end(e))},a}(e,n)};constla=p.default,fa=Nr.exports("log4js:appenders"),da=tu,Da=eo,pa=gu,Ea=hu,ma=to,ha=newMap;ha.set("console",oo),ha.set("stdout",so),ha.set("stderr",co),ha.set("logLevelFilter",ao),ha.set("categoryFilter",lo),ha.set("noLogFilter",Do),ha.set("file",Eo),ha.set("dateFile",Yc),ha.set("fileSync",ea),ha.set("tcp",sa);constya=newMap,Ca=(e,t)=>{fa("Loading module from ",e);try{returnrequire(e)}catch(n){returnvoidda.throwExceptionIf(t,"MODULE_NOT_FOUND"!==n.code,`appender "${e}" could not be loaded (error was: ${n})`)}},Fa=newSet,ga=(e,t)=>{if(ya.has(e))returnya.get(e);if(!t.appenders[e])return!1;if(Fa.has(e))thrownewError(`Dependency loop detected for appender ${e}.`);Fa.add(e),fa(`Creating appender ${e}`);constn=Aa(e,t);returnFa.delete(e),ya.set(e,n),n},Aa=(e,t)=>{constn=t.appenders[e],r=n.type.configure?n.type:((e,t)=>ha.get(e)||Ca(`./${e}`,t)||Ca(e,t)||require.main&&Ca(la.join(la.dirname(require.main.filename),e),t)||Ca(la.join(process.cwd(),e),t))(n.type,t);returnda.throwExceptionIf(t,da.not(r),`appender "${e}" is not valid (type "${n.type}" could not be found)`),r.appender&&fa(`DEPRECATION: Appender ${n.type} exports an appender function.`),r.shutdown&&fa(`DEPRECATION: Appender ${n.type} exports a shutdown function.`),fa(`${e}: clustering.isMaster ? ${Da.isMaster()}`),fa(`${e}: appenderModule is ${F.default.inspect(r)}`),Da.onlyOnMaster((()=>(fa(`calling appenderModule.configure for ${e} / ${n.type}`),r.configure(ma.modifyConfig(n),Ea,(e=>ga(e,t)),pa))),(()=>{}))},va=e=>{ya.clear(),Fa.clear();constt=[];Object.values(e.categories).forEach((e=>{t.push(...e.appenders)})),Object.keys(e.appenders).forEach((n=>{(t.includes(n)||"tcp-server"===e.appenders[n].type)&&ga(n,e)}))},Sa=()=>{va({appenders:{out:{type:"stdout"}},categories:{default:{appenders:["out"],level:"trace"}}})};Sa(),da.addListener((e=>{da.throwExceptionIf(e,da.not(da.anObject(e.appenders)),'must have a property "appenders" of type object.');constt=Object.keys(e.appenders);da.throwExceptionIf(e,da.not(t.length),"must define at least one appender."),t.forEach((t=>{da.throwExceptionIf(e,da.not(e.appenders[t].type),`appender "${t}" is not valid (must be an object with property "type")`)}))})),da.addListener(va),Au.exports=ya,Au.exports.init=Sa;varwa={exports:{}};!function(e){constt=Nr.exports("log4js:categories"),n=tu,r=gu,u=Au.exports,o=newMap;functioni(e,t,n){if(!1===t.inherit)return;constr=n.lastIndexOf(".");if(r<0)return;constu=n.substring(0,r);leto=e.categories[u];o||(o={inherit:!0,appenders:[]}),i(e,o,u),!e.categories[u]&&o.appenders&&o.appenders.length&&o.level&&(e.categories[u]=o),t.appenders=t.appenders||[],t.level=t.level||o.level,o.appenders.forEach((e=>{t.appenders.includes(e)||t.appenders.push(e)})),t.parent=o}functions(e){if(!e.categories)return;Object.keys(e.categories).forEach((t=>{constn=e.categories[t];i(e,n,t)}))}n.addPreProcessingListener((e=>s(e))),n.addListener((e=>{n.throwExceptionIf(e,n.not(n.anObject(e.categories)),'must have a property "categories" of type object.');constt=Object.keys(e.categories);n.throwExceptionIf(e,n.not(t.length),"must define at least one category."),t.forEach((t=>{consto=e.categories[t];n.throwExceptionIf(e,[n.not(o.appenders),n.not(o.level)],`category "${t}" is not valid (must be an object with properties "appenders" and "level")`),n.throwExceptionIf(e,n.not(Array.isArray(o.appenders)),`category "${t}" is not valid (appenders must be an array of appender names)`),n.throwExceptionIf(e,n.not(o.appenders.length),`category "${t}" is not valid (appenders must contain at least one appender name)`),Object.prototype.hasOwnProperty.call(o,"enableCallStack")&&n.throwExceptionIf(e,"boolean"!=typeofo.enableCallStack,`category "${t}" is not valid (enableCallStack must be boolean type)`),o.appenders.forEach((r=>{n.throwExceptionIf(e,n.not(u.get(r)),`category "${t}" is not valid (appender "${r}" is not defined)`)})),n.throwExceptionIf(e,n.not(r.getLevel(o.level)),`category "${t}" is not valid (level "${o.level}" not recognised; valid levels are ${r.levels.join(", ")})`)})),n.throwExceptionIf(e,n.not(e.categories.default),'must define a "default" category.')}));constc=e=>{o.clear();Object.keys(e.categories).forEach((n=>{consti=e.categories[n],s=[];i.appenders.forEach((e=>{s.push(u.get(e)),t(`Creating category ${n}`),o.set(n,{appenders:s,level:r.getLevel(i.level),enableCallStack:i.enableCallStack||!1})}))}))},a=()=>{c({categories:{default:{appenders:["out"],level:"OFF"}}})};a(),n.addListener(c);constl=e=>(t(`configForCategory: searching for config for ${e}`),o.has(e)?(t(`configForCategory: ${e} exists in config, returning it`),o.get(e)):e.indexOf(".")>0?(t(`configForCategory: ${e} has hierarchy, searching for parents`),l(e.substring(0,e.lastIndexOf(".")))):(t("configForCategory: returning config for default category"),l("default")));e.exports=o,e.exports=Object.assign(e.exports,{appendersForCategory:e=>l(e).appenders,getLevelForCategory:e=>l(e).level,setLevelForCategory:(e,n)=>{letr=o.get(e);if(t(`setLevelForCategory: found ${r} for ${e}`),!r){constn=l(e);t(`setLevelForCategory: no config found for category, found ${n} for parents of ${e}`),r={appenders:n.appenders}}r.level=n,o.set(e,r)},getEnableCallStackForCategory:e=>!0===l(e).enableCallStack,setEnableCallStackForCategory:(e,t)=>{l(e).enableCallStack=t},init:a})}(wa);constOa=Nr.exports("log4js:logger"),ba=Hu,_a=gu,Ba=eo,Pa=wa.exports,ka=tu,xa=/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/;functionNa(e,t=4){constn=e.stack.split("\n").slice(t),r=xa.exec(n[0]);returnr&&6===r.length?{functionName:r[1],fileName:r[2],lineNumber:parseInt(r[3],10),columnNumber:parseInt(r[4],10),callStack:n.join("\n")}:null}classIa{constructor(e){if(!e)thrownewError("No category provided.");this.category=e,this.context={},this.parseCallStack=Na,Oa(`Logger created (${this.category}, ${this.level})`)}getlevel(){return_a.getLevel(Pa.getLevelForCategory(this.category),_a.TRACE)}setlevel(e){Pa.setLevelForCategory(this.category,_a.getLevel(e,this.level))}getuseCallStack(){returnPa.getEnableCallStackForCategory(this.category)}setuseCallStack(e){Pa.setEnableCallStackForCategory(this.category,!0===e)}log(e,...t){letn=_a.getLevel(e);n||(this._log(_a.WARN,"log4js:logger.log: invalid value for log-level as first parameter given: ",e),n=_a.INFO),this.isLevelEnabled(n)&&this._log(n,t)}isLevelEnabled(e){returnthis.level.isLessThanOrEqualTo(e)}_log(e,t){Oa(`sending log data (${e}) to appenders`);constn=newba(this.category,e,t,this.context,this.useCallStack&&this.parseCallStack(newError));Ba.send(n)}addContext(e,t){this.context[e]=t}removeContext(e){deletethis.context[e]}clearContext(){this.context={}}setParseCallStackFunction(e){this.parseCallStack=e}}functionTa(e){constt=_a.getLevel(e),n=t.toString().toLowerCase().replace(/_([a-z])/g,(e=>e[1].toUpperCase())),r=n[0].toUpperCase()+n.slice(1);Ia.prototype[`is${r}Enabled`]=function(){returnthis.isLevelEnabled(t)},Ia.prototype[n]=function(...e){this.log(t,...e)}}_a.levels.forEach(Ta),ka.addListener((()=>{_a.levels.forEach(Ta)}));varRa=Ia;constMa=gu;functionLa(e){returne.originalUrl||e.url}functionja(e,t){for(letn=0;n<t.length;n++)e=e.replace(t[n].token,t[n].replacement);returne}const$a=Nr.exports("log4js:recording"),Ha=[];functionJa(){returnHa.slice()}functionGa(){Ha.length=0}varVa={configure:function(){returnfunction(e){$a(`received logEvent, number of events now ${Ha.length+1}`),$a("log event was ",e),Ha.push(e)}},replay:Ja,playback:Ja,reset:Ga,erase:Ga};constUa=Nr.exports("log4js:main"),Wa=D.default,za=Wr({proto:!0}),Ka=tu,qa=hu,Ya=gu,Xa=Au.exports,Za=wa.exports,Qa=Ra,el=eo,tl=function(e,t){t="string"==typeoft||"function"==typeoft?{format:t}:t||{};constn=e;letr=Ma.getLevel(t.level,Ma.INFO);constu=t.format||':remote-addr - - ":method :url HTTP/:http-version" :status :content-length ":referrer" ":user-agent"',o=function(e){lett=null;if(einstanceofRegExp&&(t=e),"string"==typeofe&&(t=newRegExp(e)),Array.isArray(e)){constn=e.map((e=>e.source?e.source:e));t=newRegExp(n.join("|"))}returnt}(t.nolog);return(e,i,s)=>{if(e._logging)returns();if(o&&o.test(e.originalUrl))returns();if(n.isLevelEnabled(r)||"auto"===t.level){consto=newDate,{writeHead:s}=i;e._logging=!0,i.writeHead=(e,t)=>{i.writeHead=s,i.writeHead(e,t),i.__statusCode=e,i.__headers=t||{}},i.on("finish",(()=>{i.responseTime=newDate-o,i.statusCode&&"auto"===t.level&&(r=Ma.INFO,i.statusCode>=300&&(r=Ma.WARN),i.statusCode>=400&&(r=Ma.ERROR)),r=function(e,t,n){letr=t;if(n){constt=n.find((t=>{letn=!1;returnn=t.from&&t.to?e>=t.from&&e<=t.to:-1!==t.codes.indexOf(e),n}));t&&(r=Ma.getLevel(t.level,r))}returnr}(i.statusCode,r,t.statusRules);consts=function(e,t,n){constr=[];returnr.push({token:":url",replacement:La(e)}),r.push({token:":protocol",replacement:e.protocol}),r.push({token:":hostname",replacement:e.hostname}),r.push({token:":method",replacement:e.method}),r.push({token:":status",replacement:t.__statusCode||t.statusCode}),r.push({token:":response-time",replacement:t.responseTime}),r.push({token:":date",replacement:(newDate).toUTCString()}),r.push({token:":referrer",replacement:e.headers.referer||e.headers.referrer||""}),r.push({token:":http-version",replacement:`${e.httpVersionMajor}.${e.httpVersionMinor}`}),r.push({token:":remote-addr",replacement:e.headers["x-forwarded-for"]||e.ip||e._remoteAddress||e.socket&&(e.socket.remoteAddress||e.socket.socket&&e.socket.socket.remoteAddress)}),r.push({token:":user-agent",replacement:e.headers["user-agent"]}),r.push({token:":content-length",replacement:t.getHeader("content-length")||t.__headers&&t.__headers["Content-Length"]||"-"}),r.push({token:/:req\[([^\]]+)]/g,replacement:(t,n)=>e.headers[n.toLowerCase()]}),r.push({token:/:res\[([^\]]+)]/g,replacement:(e,n)=>t.getHeader(n.toLowerCase())||t.__headers&&t.__headers[n]}),(e=>{constt=e.concat();for(lete=0;e<t.length;++e)for(letn=e+1;n<t.length;++n)t[e].token==t[n].token&&t.splice(n--,1);returnt})(n.concat(r))}(e,i,t.tokens||[]);if(t.context&&n.addContext("res",i),"function"==typeofu){constt=u(e,i,(e=>ja(e,s)));t&&n.log(r,t)}elsen.log(r,ja(u,s));t.context&&n.removeContext("res")}))}returns()}},nl=Va;letrl=!1;functionul(e){if(!rl)return;Ua("Received log event ",e);Za.appendersForCategory(e.categoryName).forEach((t=>{t(e)}))}functionol(e){rl&&il();lett=e;return"string"==typeoft&&(t=function(e){Ua(`Loading configuration from ${e}`);try{returnJSON.parse(Wa.readFileSync(e,"utf8"))}catch(t){thrownewError(`Problem reading config from file "${e}". Error was ${t.message}`,t)}}(e)),Ua(`Configuration is ${t}`),Ka.configure(za(t)),el.onMessage(ul),rl=!0,sl}functionil(e){Ua("Shutdown called. Disabling all log writing."),rl=!1;constt=Array.from(Xa.values());Xa.init(),Za.init();constn=t.reduceRight(((e,t)=>t.shutdown?e+1:e),0);if(0===n)returnUa("No appenders with shutdown functions found."),void0!==e&&e();letr,u=0;functiono(t){r=r||t,u+=1,Ua(`Appender shutdowns complete: ${u} / ${n}`),u>=n&&(Ua("All shutdown functions completed."),e&&e(r))}returnUa(`Found ${n} appenders with shutdown functions.`),t.filter((e=>e.shutdown)).forEach((e=>e.shutdown(o))),null}constsl={getLogger:function(e){returnrl||ol(process.env.LOG4JS_CONFIG||{appenders:{out:{type:"stdout"}},categories:{default:{appenders:["out"],level:"OFF"}}}),newQa(e||"default")},configure:ol,shutdown:il,connectLogger:tl,levels:Ya,addLayout:qa.addLayout,recording:function(){returnnl}};varcl=sl,al={};Object.defineProperty(al,"__esModule",{value:!0}),al.levelMap=al.getLevel=al.setCategoriesLevel=al.getConfiguration=al.setConfiguration=void0;constll=cl;letfl={appenders:{debug:{type:"stdout",layout:{type:"pattern",pattern:"[%d] > hvigor %p %c %[%m%]"}},info:{type:"stdout",layout:{type:"pattern",pattern:"[%d] > hvigor %[%m%]"}},"no-pattern-info":{type:"stdout",layout:{type:"pattern",pattern:"%m"}},wrong:{type:"stderr",layout:{type:"pattern",pattern:"[%d] > hvigor %[%p: %m%]"}},"just-debug":{type:"logLevelFilter",appender:"debug",level:"debug",maxLevel:"debug"},"just-info":{type:"logLevelFilter",appender:"info",level:"info",maxLevel:"info"},"just-wrong":{type:"logLevelFilter",appender:"wrong",level:"warn",maxLevel:"error"}},categories:{default:{appenders:["just-debug","just-info","just-wrong"],level:"debug"},"no-pattern-info":{appenders:["no-pattern-info"],level:"info"}}};al.setConfiguration=e=>{fl=e};al.getConfiguration=()=>fl;letdl=ll.levels.DEBUG;al.setCategoriesLevel=(e,t)=>{dl=e;constn=fl.categories;for(constrinn)(null==t?void0:t.includes(r))||Object.prototype.hasOwnProperty.call(n,r)&&(n[r].level=e.levelStr)};al.getLevel=()=>dl,al.levelMap=newMap([["ALL",ll.levels.ALL],["MARK",ll.levels.MARK],["TRACE",ll.levels.TRACE],["DEBUG",ll.levels.DEBUG],["INFO",ll.levels.INFO],["WARN",ll.levels.WARN],["ERROR",ll.levels.ERROR],["FATAL",ll.levels.FATAL],["OFF",ll.levels.OFF]]);varDl=w&&w.__createBinding||(Object.create?function(e,t,n,r){void0===r&&(r=n);varu=Object.getOwnPropertyDescriptor(t,n);u&&!("get"inu?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){returnt[n]}}),Object.defineProperty(e,r,u)}:function(e,t,n,r){void0===r&&(r=n),e[r]=t[n]}),pl=w&&w.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),El=w&&w.__importStar||function(e){if(e&&e.__esModule)returne;vart={};if(null!=e)for(varnine)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&Dl(t,e,n);returnpl(t,e),t};Object.defineProperty(xr,"__esModule",{value:!0}),xr.evaluateLogLevel=xr.HvigorLogger=void0;constml=El(cl),hl=cl,yl=El(F.default),Cl=al;classFl{constructor(e){ml.configure((0,Cl.getConfiguration)()),this._logger=ml.getLogger(e),this._logger.level=(0,Cl.getLevel)()}staticgetLogger(e){returnnewFl(e)}log(e,...t){this._logger.log(e,...t)}debug(e,...t){this._logger.debug(e,...t)}info(e,...t){this._logger.info(e,...t)}warn(e,...t){void0!==e&&""!==e&&this._logger.warn(e,...t)}error(e,...t){this._logger.error(e,...t)}_printTaskExecuteInfo(e,t){this.info(`Finished :${e}... after ${t}`)}_printFailedTaskInfo(e){this.error(`Failed :${e}... `)}_printDisabledTaskInfo(e){this.info(`Disabled :${e}... `)}_printUpToDateTaskInfo(e){this.info(`UP-TO-DATE :${e}... `)}errorMessageExit(e,...t){thrownewError(yl.format(e,...t))}errorExit(e,t,...n){t&&this._logger.error(t,n),this._logger.error(e.stack)}setLevel(e,t){(0,Cl.setCategoriesLevel)(e,t),ml.shutdown(),ml.configure((0,Cl.getConfiguration)())}getLevel(){returnthis._logger.level}configure(e){constt=(0,Cl.getConfiguration)(),n={appenders:{...t.appenders,...e.appenders},categories:{...t.categories,...e.categories}};(0,Cl.setConfiguration)(n),ml.shutdown(),ml.configure(n)}}xr.HvigorLogger=Fl,xr.evaluateLogLevel=function(e,t){t.debug?e.setLevel(hl.levels.DEBUG):t.warn?e.setLevel(hl.levels.WARN):t.error?e.setLevel(hl.levels.ERROR):e.setLevel(hl.levels.INFO)};vargl=w&&w.__importDefault||function(e){returne&&e.__esModule?e:{default:e}};Object.defineProperty(X,"__esModule",{value:!0}),X.parseJsonText=X.parseJsonFile=void0;constAl=Z,vl=gl(kr),Sl=gl(p.default),wl=gl(E.default),Ol=xr.HvigorLogger.getLogger("parse-json-util");varbl;!function(e){e[e.Char=0]="Char",e[e.EOF=1]="EOF",e[e.Identifier=2]="Identifier"}(bl||(bl={}));let_l,Bl,Pl,kl,xl,Nl,Il="start",Tl=[],Rl=0,Ml=1,Ll=0,jl=!1,$l="default",Hl="'",Jl=1;functionGl(e,t=!1){Bl=String(e),Il="start",Tl=[],Rl=0,Ml=1,Ll=0,kl=void0,jl=t;do{_l=Vl(),Xl[Il]()}while("eof"!==_l.type);returnkl}functionVl(){for($l="default",xl="",Hl="'",Jl=1;;){Nl=Ul();conste=zl[$l]();if(e)returne}}functionUl(){if(Bl[Rl])returnString.fromCodePoint(Bl.codePointAt(Rl))}functionWl(){conste=Ul();return"\n"===e?(Ml++,Ll=0):e?Ll+=e.length:Ll++,e&&(Rl+=e.length),e}X.parseJsonFile=function(e,t=!1,n="utf-8"){constr=vl.default.readFileSync(Sl.default.resolve(e),{encoding:n});try{returnGl(r,t)}catch(t){if(tinstanceofSyntaxError){constn=t.message.split("at");2===n.length&&Ol.errorMessageExit(`${n[0].trim()}${wl.default.EOL}\t at ${e}:${n[1].trim()}`)}Ol.errorMessageExit(`${e} is not in valid JSON/JSON5 format.`)}},X.parseJsonText=Gl;constzl={default(){switch(Nl){case"/":returnWl(),void($l="comment");casevoid0:returnWl(),Kl("eof")}if(!Al.JudgeUtil.isIgnoreChar(Nl)&&!Al.JudgeUtil.isSpaceSeparator(Nl))returnzl[Il]();Wl()},start(){$l="value"},beforePropertyName(){switch(Nl){case"$":case"_":returnxl=Wl(),void($l="identifierName");case"\\":returnWl(),void($l="identifierNameStartEscape");case"}":returnKl("punctuator",Wl());case'"':case"'":returnHl=Nl,Wl(),void($l="string")}if(Al.JudgeUtil.isIdStartChar(Nl))returnxl+=Wl(),void($l="identifierName");throwtf(bl.Char,Wl())},afterPropertyName(){if(":"===Nl)returnKl("punctuator",Wl());throwtf(bl.Char,Wl())},beforePropertyValue(){$l="value"},afterPropertyValue(){switch(Nl){case",":case"}":returnKl("punctuator",Wl())}throwtf(bl.Char,Wl())},beforeArrayValue(){if("]"===Nl)returnKl("punctuator",Wl());$l="value"},afterArrayValue(){switch(Nl){case",":case"]":returnKl("punctuator",Wl())}throwtf(bl.Char,Wl())},end(){throwtf(bl.Char,Wl())},comment(){switch(Nl){case"*":returnWl(),void($l="multiLineComment");case"/":returnWl(),void($l="singleLineComment")}throwtf(bl.Char,Wl())},multiLineComment(){switch(Nl){case"*":returnWl(),void($l="multiLineCommentAsterisk");casevoid0:throwtf(bl.Char,Wl())}Wl()},multiLineCommentAsterisk(){switch(Nl){case"*":returnvoidWl();case"/":returnWl(),void($l="default");casevoid0:throwtf(bl.Char,Wl())}Wl(),$l="multiLineComment"},singleLineComment(){switch(Nl){case"\n":case"\r":case"\u2028":case"\u2029":returnWl(),void($l="default");casevoid0:returnWl(),Kl("eof")}Wl()},value(){switch(Nl){case"{":case"[":returnKl("punctuator",Wl());case"n":returnWl(),ql("ull"),Kl("null",null);case"t":returnWl(),ql("rue"),Kl("boolean",!0);case"f":returnWl(),ql("alse"),Kl("boolean",!1);case"-":case"+":return"-"===Wl()&&(Jl=-1),void($l="numerical");case".":case"0":case"I":case"N":returnvoid($l="numerical");case'"':case"'":returnHl=Nl,Wl(),xl="",void($l="string")}if(void0===Nl||!Al.JudgeUtil.isDigitWithoutZero(Nl))throwtf(bl.Char,Wl());$l="numerical"},numerical(){switch(Nl){case".":returnxl=Wl(),void($l="decimalPointLeading");case"0":returnxl=Wl(),void($l="zero");case"I":returnWl(),ql("nfinity"),Kl("numeric",Jl*(1/0));case"N":returnWl(),ql("aN"),Kl("numeric",NaN)}if(void0!==Nl&&Al.JudgeUtil.isDigitWithoutZero(Nl))returnxl=Wl(),void($l="decimalInteger");throwtf(bl.Char,Wl())},zero(){switch(Nl){case".":case"e":case"E":returnvoid($l="decimal");case"x":case"X":returnxl+=Wl(),void($l="hexadecimal")}returnKl("numeric",0)},decimalInteger(){switch(Nl){case".":case"e":case"E":returnvoid($l="decimal")}if(!Al.JudgeUtil.isDigit(Nl))returnKl("numeric",Jl*Number(xl));xl+=Wl()},decimal(){switch(Nl){case".":xl+=Wl(),$l="decimalFraction";break;case"e":case"E":xl+=Wl(),$l="decimalExponent"}},decimalPointLeading(){if(Al.JudgeUtil.isDigit(Nl))returnxl+=Wl(),void($l="decimalFraction");throwtf(bl.Char,Wl())},decimalFraction(){switch(Nl){case"e":case"E":returnxl+=Wl(),void($l="decimalExponent")}if(!Al.JudgeUtil.isDigit(Nl))returnKl("numeric",Jl*Number(xl));xl+=Wl()},decimalExponent(){switch(Nl){case"+":case"-":returnxl+=Wl(),void($l="decimalExponentSign")}if(Al.JudgeUtil.isDigit(Nl))returnxl+=Wl(),void($l="decimalExponentInteger");throwtf(bl.Char,Wl())},decimalExponentSign(){if(Al.JudgeUtil.isDigit(Nl))returnxl+=Wl(),void($l="decimalExponentInteger");throwtf(bl.Char,Wl())},decimalExponentInteger(){if(!Al.JudgeUtil.isDigit(Nl))returnKl("numeric",Jl*Number(xl));xl+=Wl()},hexadecimal(){if(Al.JudgeUtil.isHexDigit(Nl))returnxl+=Wl(),void($l="hexadecimalInteger");throwtf(bl.Char,Wl())},hexadecimalInteger(){if(!Al.JudgeUtil.isHexDigit(Nl))returnKl("numeric",Jl*Number(xl));xl+=Wl()},identifierNameStartEscape(){if("u"!==Nl)throwtf(bl.Char,Wl());Wl();conste=Yl();switch(e){case"$":case"_":break;default:if(!Al.JudgeUtil.isIdStartChar(e))throwtf(bl.Identifier)}xl+=e,$l="identifierName"},identifierName(){switch(Nl){case"$":case"_":case"":case"":returnvoid(xl+=Wl());case"\\":returnWl(),void($l="identifierNameEscape")}if(!Al.JudgeUtil.isIdContinueChar(Nl))returnKl("identifier",xl);xl+=Wl()},identifierNameEscape(){if("u"!==Nl)throwtf(bl.Char,Wl());Wl();conste=Yl();switch(e){case"$":case"_":case"":case"":break;default:if(!Al.JudgeUtil.isIdContinueChar(e))throwtf(bl.Identifier)}xl+=e,$l="identifierName"},string(){switch(Nl){case"\\":returnWl(),void(xl+=function(){conste=Ul(),t=function(){switch(Ul()){case"b":returnWl(),"\b";case"f":returnWl(),"\f";case"n":returnWl(),"\n";case"r":returnWl(),"\r";case"t":returnWl(),"\t";case"v":returnWl(),"\v"}return}();if(t)returnt;switch(e){case"0":if(Wl(),Al.JudgeUtil.isDigit(Ul()))throwtf(bl.Char,Wl());return"\0";case"x":returnWl(),function(){lete="",t=Ul();if(!Al.JudgeUtil.isHexDigit(t))throwtf(bl.Char,Wl());if(e+=Wl(),t=Ul(),!Al.JudgeUtil.isHexDigit(t))throwtf(bl.Char,Wl());returne+=Wl(),String.fromCodePoint(parseInt(e,16))}();case"u":returnWl(),Yl();case"\n":case"\u2028":case"\u2029":returnWl(),"";case"\r":returnWl(),"\n"===Ul()&&Wl(),""}if(void0===e||Al.JudgeUtil.isDigitWithoutZero(e))throwtf(bl.Char,Wl());returnWl()}());case'"':case"'":if(Nl===Hl){conste=Kl("string",xl);returnWl(),e}returnvoid(xl+=Wl());case"\n":case"\r":casevoid0:throwtf(bl.Char,Wl());case"\u2028":case"\u2029":!function(e){Ol.warn(`JSON5: '${ef(e)}' in strings is not valid ECMAScript; consider escaping.`)}(Nl)}xl+=Wl()}};functionKl(e,t){return{type:e,value:t,line:Ml,column:Ll}}functionql(e){for(consttofe){if(Ul()!==t)throwtf(bl.Char,Wl());Wl()}}functionYl(){lete="",t=4;for(;t-->0;){constt=Ul();if(!Al.JudgeUtil.isHexDigit(t))throwtf(bl.Char,Wl());e+=Wl()}returnString.fromCodePoint(parseInt(e,16))}constXl={start(){if("eof"===_l.type)throwtf(bl.EOF);Zl()},beforePropertyName(){switch(_l.type){case"identifier":case"string":returnPl=_l.value,void(Il="afterPropertyName");case"punctuator":returnvoidQl();case"eof":throwtf(bl.EOF)}},afterPropertyName(){if("eof"===_l.type)throwtf(bl.EOF);Il="beforePropertyValue"},beforePropertyValue(){if("eof"===_l.type)throwtf(bl.EOF);Zl()},afterPropertyValue(){if("eof"===_l.type)throwtf(bl.EOF);switch(_l.value){case",":returnvoid(Il="beforePropertyName");case"}":Ql()}},beforeArrayValue(){if("eof"===_l.type)throwtf(bl.EOF);"punctuator"!==_l.type||"]"!==_l.value?Zl():Ql()},afterArrayValue(){if("eof"===_l.type)throwtf(bl.EOF);switch(_l.value){case",":returnvoid(Il="beforeArrayValue");case"]":Ql()}},end(){}};functionZl(){conste=function(){lete;switch(_l.type){case"punctuator":switch(_l.value){case"{":e={};break;case"[":e=[]}break;case"null":case"boolean":case"numeric":case"string":e=_l.value}returne}();if(jl&&"object"==typeofe&&(e._line=Ml,e._column=Ll),void0===kl)kl=e;else{constt=Tl[Tl.length-1];Array.isArray(t)?jl&&"object"!=typeofe?t.push({value:e,_line:Ml,_column:Ll}):t.push(e):t[Pl]=jl&&"object"!=typeofe?{value:e,_line:Ml,_column:Ll}:e}!function(e){if(e&&"object"==typeofe)Tl.push(e),Il=Array.isArray(e)?"beforeArrayValue":"beforePropertyName";else{conste=Tl[Tl.length-1];Il=e?Array.isArray(e)?"afterArrayValue":"afterPropertyValue":"end"}}(e)}functionQl(){Tl.pop();conste=Tl[Tl.length-1];Il=e?Array.isArray(e)?"afterArrayValue":"afterPropertyValue":"end"}functionef(e){constt={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])returnt[e];if(e<""){constt=e.charCodeAt(0).toString(16);return`\\x${`00${t}`.substring(t.length)}`}returne}functiontf(e,t){letn="";switch(e){casebl.Char:n=void0===t?`JSON5: invalid end of input at ${Ml}:${Ll}`:`JSON5: invalid character '${ef(t)}' at ${Ml}:${Ll}`;break;casebl.EOF:n=`JSON5: invalid end of input at ${Ml}:${Ll}`;break;casebl.Identifier:Ll-=5,n=`JSON5: invalid identifier character at ${Ml}:${Ll}`}constr=newnf(n);returnr.lineNumber=Ml,r.columnNumber=Ll,r}classnfextendsSyntaxError{}varrf=w&&w.__createBinding||(Object.create?function(e,t,n,r){void0===r&&(r=n);varu=Object.getOwnPropertyDescriptor(t,n);u&&!("get"inu?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){returnt[n]}}),Object.defineProperty(e,r,u)}:function(e,t,n,r){void0===r&&(r=n),e[r]=t[n]}),uf=w&&w.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),of=w&&w.__importStar||function(e){if(e&&e.__esModule)returne;vart={};if(null!=e)for(varnine)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&rf(t,e,n);returnuf(t,e),t};Object.defineProperty(Y,"__esModule",{value:!0});varsf=Y.cleanWorkSpace=Ff=Y.executeInstallHvigor=yf=Y.isHvigorInstalled=mf=Y.isAllDependenciesInstalled=void0;constcf=of(D.default),af=of(p.default),lf=b,ff=j,df=$,Df=X;letpf,Ef;varmf=Y.isAllDependenciesInstalled=function(){functione(e){constt=null==e?void0:e.dependencies;returnvoid0===t?0:Object.getOwnPropertyNames(t).length}if(pf=gf(),Ef=Af(),e(pf)+1!==e(Ef))return!1;for(consteinnull==pf?void0:pf.dependencies)if(!(0,ff.hasNpmPackInPaths)(e,[lf.HVIGOR_PROJECT_DEPENDENCIES_HOME])||!hf(e,pf,Ef))return!1;return!0};functionhf(e,t,n){returnvoid0!==n.dependencies&&(0,ff.offlinePluginConversion)(lf.HVIGOR_PROJECT_ROOT_DIR,t.dependencies[e])===n.dependencies[e]}varyf=Y.isHvigorInstalled=function(){returnpf=gf(),Ef=Af(),(0,ff.hasNpmPackInPaths)(lf.HVIGOR_ENGINE_PACKAGE_NAME,[lf.HVIGOR_PROJECT_DEPENDENCIES_HOME])&&(0,ff.offlinePluginConversion)(lf.HVIGOR_PROJECT_ROOT_DIR,pf.hvigorVersion)===Ef.dependencies[lf.HVIGOR_ENGINE_PACKAGE_NAME]};constCf={cwd:lf.HVIGOR_PROJECT_DEPENDENCIES_HOME,stdio:["inherit","inherit","inherit"]};varFf=Y.executeInstallHvigor=function(){(0,df.logInfoPrintConsole)("Hvigor installing...");conste={dependencies:{}};e.dependencies[lf.HVIGOR_ENGINE_PACKAGE_NAME]=(0,ff.offlinePluginConversion)(lf.HVIGOR_PROJECT_ROOT_DIR,pf.hvigorVersion);try{cf.mkdirSync(lf.HVIGOR_PROJECT_DEPENDENCIES_HOME,{recursive:!0});constt=af.resolve(lf.HVIGOR_PROJECT_DEPENDENCIES_HOME,lf.DEFAULT_PACKAGE_JSON);cf.writeFileSync(t,JSON.stringify(e))}catch(e){(0,df.logErrorAndExit)(e)}!function(){conste=["config","set","store-dir",lf.HVIGOR_PNPM_STORE_PATH];(0,ff.executeCommand)(lf.HVIGOR_WRAPPER_PNPM_SCRIPT_PATH,e,Cf)}(),(0,ff.executeCommand)(lf.HVIGOR_WRAPPER_PNPM_SCRIPT_PATH,["install"],Cf)};functiongf(){conste=af.resolve(lf.HVIGOR_PROJECT_WRAPPER_HOME,lf.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME);returncf.existsSync(e)||(0,df.logErrorAndExit)(`Error: Hvigor config file ${e} does not exist.`),(0,Df.parseJsonFile)(e)}functionAf(){returncf.existsSync(lf.HVIGOR_PROJECT_DEPENDENCY_PACKAGE_JSON_PATH)?(0,Df.parseJsonFile)(lf.HVIGOR_PROJECT_DEPENDENCY_PACKAGE_JSON_PATH):{dependencies:{}}}sf=Y.cleanWorkSpace=function(){if((0,df.logInfoPrintConsole)("Hvigor cleaning..."),!cf.existsSync(lf.HVIGOR_PROJECT_DEPENDENCIES_HOME))return;conste=cf.readdirSync(lf.HVIGOR_PROJECT_DEPENDENCIES_HOME);if(e&&0!==e.length){cf.existsSync(lf.HVIGOR_BOOT_JS_FILE_PATH)&&(0,ff.executeCommand)(process.argv[0],[lf.HVIGOR_BOOT_JS_FILE_PATH,"--stop-daemon"],{});try{e.forEach((e=>{cf.rmSync(af.resolve(lf.HVIGOR_PROJECT_DEPENDENCIES_HOME,e),{recursive:!0})}))}catch(e){(0,df.logErrorAndExit)(`The hvigor build tool cannot be installed. Please manually clear the workspace directory and synchronize the project again.\n\n Workspace Path: ${lf.HVIGOR_PROJECT_DEPENDENCIES_HOME}.`)}}};varvf={},Sf=w&&w.__createBinding||(Object.create?function(e,t,n,r){void0===r&&(r=n);varu=Object.getOwnPropertyDescriptor(t,n);u&&!("get"inu?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){returnt[n]}}),Object.defineProperty(e,r,u)}:function(e,t,n,r){void0===r&&(r=n),e[r]=t[n]}),wf=w&&w.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Of=w&&w.__importStar||function(e){if(e&&e.__esModule)returne;vart={};if(null!=e)for(varnine)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&Sf(t,e,n);returnwf(t,e),t};Object.defineProperty(vf,"__esModule",{value:!0});varbf=vf.executeBuild=void0;const_f=b,Bf=Of(D.default),Pf=Of(p.default),kf=$;bf=vf.executeBuild=function(){conste=Pf.resolve(_f.HVIGOR_PROJECT_DEPENDENCIES_HOME,"node_modules","@ohos","hvigor","bin","hvigor.js");try{constt=Bf.realpathSync(e);require(t)}catch(t){(0,kf.logErrorAndExit)(`Error: ENOENT: no such file ${e},delete ${_f.HVIGOR_PROJECT_DEPENDENCIES_HOME} and retry.`)}},function(){if(O.checkNpmConifg(),O.environmentHandler(),O.isPnpmAvailable()||O.executeInstallPnpm(),yf()&&mf())bf();else{sf();try{Ff()}catch(e){returnvoidsf()}bf()}}();