@gadgetinc/ggt 1.0.6 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/add-DCE6CV2D.js +78 -0
- package/dist/add-DCE6CV2D.js.map +7 -0
- package/dist/chunk-3Q3GPB6Z.js +2 -0
- package/dist/chunk-3Q3GPB6Z.js.map +7 -0
- package/dist/chunk-6FBP46EB.js +18 -0
- package/dist/chunk-6FBP46EB.js.map +7 -0
- package/dist/chunk-AB4I3BMD.js +33 -0
- package/dist/{chunk-BOQUW6DS.js.map → chunk-AB4I3BMD.js.map} +3 -3
- package/dist/{chunk-GACF5GYF.js → chunk-BYMG3KOL.js} +4 -6
- package/dist/{chunk-GACF5GYF.js.map → chunk-BYMG3KOL.js.map} +2 -2
- package/dist/chunk-BZSAGSV3.js +8 -0
- package/dist/{chunk-APHXRHNI.js.map → chunk-BZSAGSV3.js.map} +3 -3
- package/dist/chunk-CXYA3RFX.js +117 -0
- package/dist/chunk-CXYA3RFX.js.map +7 -0
- package/dist/chunk-DVKNBG4P.js +180 -0
- package/dist/chunk-DVKNBG4P.js.map +7 -0
- package/dist/chunk-EFU2JNKY.js +9 -0
- package/dist/chunk-EFU2JNKY.js.map +7 -0
- package/dist/chunk-KGOVR5SK.js +67 -0
- package/dist/chunk-KGOVR5SK.js.map +7 -0
- package/dist/chunk-KMCOZJPU.js +12 -0
- package/dist/chunk-KMCOZJPU.js.map +7 -0
- package/dist/{chunk-Q5N5L6H3.js → chunk-M4PNFOA5.js} +2 -2
- package/dist/chunk-M4PNFOA5.js.map +7 -0
- package/dist/chunk-OLKWG2EP.js +12 -0
- package/dist/chunk-OLKWG2EP.js.map +7 -0
- package/dist/{chunk-ERYUXLYS.js → chunk-THZRTDWW.js} +8 -8
- package/dist/{chunk-ERYUXLYS.js.map → chunk-THZRTDWW.js.map} +3 -3
- package/dist/context-L5YSPF3X.js +2 -0
- package/dist/deploy-PBJEUYGH.js +25 -0
- package/dist/deploy-PBJEUYGH.js.map +7 -0
- package/dist/{dev-VHJ52BEA.js → dev-OT7PEKUN.js} +9 -11
- package/dist/{dev-VHJ52BEA.js.map → dev-OT7PEKUN.js.map} +3 -3
- package/dist/esm-GJ7RK6IC.js +34 -0
- package/dist/esm-GJ7RK6IC.js.map +7 -0
- package/dist/list-CC5PICEF.js +11 -0
- package/dist/list-CC5PICEF.js.map +7 -0
- package/dist/login-SE7XIHRW.js +2 -0
- package/dist/logout-B3YAZN6R.js +7 -0
- package/dist/{logout-HX6MM4S6.js.map → logout-B3YAZN6R.js.map} +3 -3
- package/dist/main.js +6 -8
- package/dist/main.js.map +3 -3
- package/dist/{open-GEEWPSF4.js → open-OVK3YL4O.js} +3 -3
- package/dist/{open-GEEWPSF4.js.map → open-OVK3YL4O.js.map} +2 -2
- package/dist/{pull-T2Q4M4UN.js → pull-SLPBOP6Z.js} +3 -5
- package/dist/{pull-T2Q4M4UN.js.map → pull-SLPBOP6Z.js.map} +2 -2
- package/dist/push-3HGVWCKW.js +2 -0
- package/dist/push-3HGVWCKW.js.map +7 -0
- package/dist/status-7GLNL7D5.js +14 -0
- package/dist/{status-5VZH3KXH.js.map → status-7GLNL7D5.js.map} +1 -1
- package/dist/user-C34J52UL.js +2 -0
- package/dist/user-C34J52UL.js.map +7 -0
- package/dist/{version-OF4TQ2K6.js → version-AUI4NRDS.js} +2 -2
- package/dist/whoami-TXO7VJXC.js +7 -0
- package/dist/{whoami-V3XD27QH.js.map → whoami-TXO7VJXC.js.map} +2 -2
- package/package.json +20 -20
- package/dist/add-JIIVAOWH.js +0 -84
- package/dist/add-JIIVAOWH.js.map +0 -7
- package/dist/chunk-APHXRHNI.js +0 -8
- package/dist/chunk-AQRCAWW4.js +0 -24
- package/dist/chunk-AQRCAWW4.js.map +0 -7
- package/dist/chunk-BOQUW6DS.js +0 -33
- package/dist/chunk-CKSTMUDN.js +0 -17
- package/dist/chunk-CKSTMUDN.js.map +0 -7
- package/dist/chunk-GBCD37US.js +0 -57
- package/dist/chunk-GBCD37US.js.map +0 -7
- package/dist/chunk-P2XPMNL6.js +0 -183
- package/dist/chunk-P2XPMNL6.js.map +0 -7
- package/dist/chunk-PSRZ5JH5.js +0 -27
- package/dist/chunk-PSRZ5JH5.js.map +0 -7
- package/dist/chunk-Q5N5L6H3.js.map +0 -7
- package/dist/chunk-RJOIQTYZ.js +0 -126
- package/dist/chunk-RJOIQTYZ.js.map +0 -7
- package/dist/chunk-XCHCCJJZ.js +0 -2
- package/dist/chunk-XCHCCJJZ.js.map +0 -7
- package/dist/deploy-KMGAGIDE.js +0 -30
- package/dist/deploy-KMGAGIDE.js.map +0 -7
- package/dist/esm-BL3OM5UJ.js +0 -33
- package/dist/esm-BL3OM5UJ.js.map +0 -7
- package/dist/list-5E3R22IC.js +0 -11
- package/dist/list-5E3R22IC.js.map +0 -7
- package/dist/login-3DL45WY7.js +0 -2
- package/dist/logout-HX6MM4S6.js +0 -7
- package/dist/push-LUW25FYF.js +0 -2
- package/dist/status-5VZH3KXH.js +0 -14
- package/dist/whoami-V3XD27QH.js +0 -7
- /package/dist/{login-3DL45WY7.js.map → context-L5YSPF3X.js.map} +0 -0
- /package/dist/{push-LUW25FYF.js.map → login-SE7XIHRW.js.map} +0 -0
- /package/dist/{version-OF4TQ2K6.js.map → version-AUI4NRDS.js.map} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{E as $,I as u,x as E}from"./chunk-KGOVR5SK.js";import{c as N,e as g,g as a}from"./chunk-5WC5D4WL.js";var k=N((_e,F)=>{a();function G(t){return Array.isArray(t)?t:[t]}var S="",C=" ",p="\\",B=/^\s+$/,W=/(?:[^\\]|^)\\$/,K=/^\\!/,V=/^\\#/,Y=/\r?\n/g,M=/^\.*\/|^\.+$/,y="/",T="node-ignore";typeof Symbol<"u"&&(T=Symbol.for("node-ignore"));var I=T,q=(t,e,s)=>Object.defineProperty(t,e,{value:s}),J=/([0-z])-([0-z])/g,H=()=>!1,Q=t=>t.replace(J,(e,s,r)=>s.charCodeAt(0)<=r.charCodeAt(0)?e:S),U=t=>{let{length:e}=t;return t.slice(0,e-e%2)},Z=[[/^\uFEFF/,()=>S],[/((?:\\\\)*?)(\\?\s+)$/,(t,e,s)=>e+(s.indexOf("\\")===0?C:S)],[/(\\+?)\s/g,(t,e)=>{let{length:s}=e;return e.slice(0,s-s%2)+C}],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,s)=>e+6<s.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(t,e,s)=>{let r=s.replace(/\\\*/g,"[^\\/]*");return e+r}],[/\\\\\\(?=[$.|*+(){^])/g,()=>p],[/\\\\/g,()=>p],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,s,r,n)=>e===p?`\\[${s}${U(r)}${n}`:n==="]"&&r.length%2===0?`[${Q(s)}${r}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,e)=>`${e?`${e}[^/]+`:"[^/]*"}(?=$|\\/$)`]],O=Object.create(null),ee=(t,e)=>{let s=O[t];return s||(s=Z.reduce((r,[n,i])=>r.replace(n,i.bind(t)),t),O[t]=s),e?new RegExp(s,"i"):new RegExp(s)},R=t=>typeof t=="string",te=t=>t&&R(t)&&!B.test(t)&&!W.test(t)&&t.indexOf("#")!==0,se=t=>t.split(Y),x=class{constructor(e,s,r,n){this.origin=e,this.pattern=s,this.negative=r,this.regex=n}},re=(t,e)=>{let s=t,r=!1;t.indexOf("!")===0&&(r=!0,t=t.substr(1)),t=t.replace(K,"!").replace(V,"#");let n=ee(t,e);return new x(s,t,r,n)},ne=(t,e)=>{throw new e(t)},o=(t,e,s)=>R(t)?t?o.isNotRelative(t)?s(`path should be a \`path.relative()\`d string, but got "${e}"`,RangeError):!0:s("path must not be empty",TypeError):s(`path must be a string, but got \`${e}\``,TypeError),L=t=>M.test(t);o.isNotRelative=L;o.convert=t=>t;var v=class{constructor({ignorecase:e=!0,ignoreCase:s=e,allowRelativePaths:r=!1}={}){q(this,I,!0),this._rules=[],this._ignoreCase=s,this._allowRelativePaths=r,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[I]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(te(e)){let s=re(e,this._ignoreCase);this._added=!0,this._rules.push(s)}}add(e){return this._added=!1,G(R(e)?se(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,s){let r=!1,n=!1;return this._rules.forEach(i=>{let{negative:l}=i;if(n===l&&r!==n||l&&!r&&!n&&!s)return;i.regex.test(e)&&(r=!l,n=l)}),{ignored:r,unignored:n}}_test(e,s,r,n){let i=e&&o.convert(e);return o(i,e,this._allowRelativePaths?H:ne),this._t(i,s,r,n)}_t(e,s,r,n){if(e in s)return s[e];if(n||(n=e.split(y)),n.pop(),!n.length)return s[e]=this._testOne(e,r);let i=this._t(n.join(y)+y,s,r,n);return s[e]=i.ignored?i:this._testOne(e,r)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return G(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}},d=t=>new v(t),ie=t=>o(t&&o.convert(t),t,H);d.isPathValid=ie;d.default=d;F.exports=d;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let t=s=>/^\\\\\?\\/.test(s)||/["<>|\u0000-\u001F]+/u.test(s)?s:s.replace(/\\/g,"/");o.convert=t;let e=/^[a-z]:\//i;o.isNotRelative=s=>e.test(s)||L(s)}});var D=N((Ee,X)=>{a();X.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var s=t.length;if(s<=1)return t;var r="";if(s>4&&t[3]==="\\"){var n=t[2];(n==="?"||n===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),r="//")}var i=t.split(/[/\\]+/);return e!==!1&&i[i.length-1]===""&&i.pop(),r+i.join("/")}});a();var _=g($(),1);a();var f=g($(),1),j=g(k(),1),A=g(D(),1);import oe from"node:assert";import{createHash as ae}from"node:crypto";import c from"node:path";import{Transform as ce}from"node:stream";import{pipeline as le}from"node:stream/promises";var ue=[".DS_Store","node_modules",".git"],fe=[".gadget/sync.json",".gadget/backup","yarn-error.log"],z=class t{constructor(e){this.path=e}_ignorer;_isHashing=!1;static async init(e){let s=new t(e);return await s.loadIgnoreFile(),s}relative(e){return c.isAbsolute(e)?c.relative(this.path,e):e}absolute(...e){let s=c.resolve(this.path,...e);return oe(s.startsWith(this.path),`expected ${s} to be within ${this.path}`),s}normalize(e,s){return c.isAbsolute(e)&&(e=this.relative(e)),e=(0,A.default)(e,!0),s&&(e+="/"),e}async loadIgnoreFile(){this._ignorer=j.default.default(),this._ignorer.add(ue);try{let e=await f.default.readFile(this.absolute(".ignore"),"utf8");this._ignorer.add(e)}catch(e){h(e)}}ignores(e){return e=this.relative(e),e===""?!1:e.startsWith("..")||(e=(0,A.default)(e,!1),this._isHashing&&fe.some(s=>e.startsWith(s)))?!0:this._ignorer.ignores(e)}async*walk({dir:e=this.path}={}){e!==this.path&&(yield this.normalize(e,!0));for await(let s of await f.default.opendir(e)){let r=c.join(e,s.name);this.ignores(r)||(s.isDirectory()?yield*this.walk({dir:r}):s.isFile()&&(yield this.normalize(r,!1)))}}async hashes(){try{this._isHashing=!0;let e={};for await(let s of this.walk()){let r=this.absolute(s);e[s]=await de(r)}return e}finally{this._isHashing=!1}}async hasFiles(){return!await this.isEmptyOrNonExistent()}async isEmptyOrNonExistent(){let e=!0;try{for await(let s of this.walk()){e=!1;break}}catch(s){h(s)}return e}},ge=process.platform==="linux"||process.platform==="darwin",de=async t=>{let e=ae("sha1");e.update(c.basename(t));let s=await f.default.stat(t),r;if(ge&&(r=s.mode&511),s.isDirectory())return{sha1:e.digest("hex"),permissions:r};let n=new ce({transform(i,l,m){if(!i.includes(13)){m(void 0,i);return}let w=Buffer.alloc(i.length),P=0;for(let b of i)b!==13&&(w[P++]=b);m(void 0,w.subarray(0,P))}});return await le(f.default.createReadStream(t),n,e),{sha1:e.digest("hex"),permissions:r}},h=t=>{if(!(t&&typeof t=="object"&&"code"in t&&t.code==="ENOENT"))throw t};var he=E(t=>{if(process.env.GGT_SESSION)return t.log.debug("reading session from env"),process.env.GGT_SESSION;try{return t.log.debug("reading session from disk"),_.default.readFileSync(u("session.txt"),"utf8")}catch(e){h(e);return}}),$e=(t,e)=>{he.clear(),process.env.GGT_SESSION&&(t.log.debug("writing session to env",{session:!!e}),process.env.GGT_SESSION=e),t.log.debug("writing session to disk",{session:!!e,path:u("session.txt")}),e?_.default.outputFileSync(u("session.txt"),e):_.default.removeSync(u("session.txt"))},Ge=E(t=>(t.log.debug("reading token from env"),process.env.GGT_TOKEN));export{z as a,ge as b,h as c,he as d,$e as e,Ge as f};
|
|
2
|
+
/*! Bundled license information:
|
|
3
|
+
|
|
4
|
+
normalize-path/index.js:
|
|
5
|
+
(*!
|
|
6
|
+
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) 2014-2018, Jon Schlinkert.
|
|
9
|
+
* Released under the MIT License.
|
|
10
|
+
*)
|
|
11
|
+
*/
|
|
12
|
+
//# sourceMappingURL=chunk-KMCOZJPU.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../node_modules/.pnpm/ignore@5.3.2/node_modules/ignore/index.js", "../node_modules/.pnpm/normalize-path@3.0.0/node_modules/normalize-path/index.js", "../src/services/user/session.ts", "../src/services/filesync/directory.ts"],
|
|
4
|
+
"sourcesContent": ["// A simple implementation of make-array\nfunction makeArray (subject) {\n return Array.isArray(subject)\n ? subject\n : [subject]\n}\n\nconst EMPTY = ''\nconst SPACE = ' '\nconst ESCAPE = '\\\\'\nconst REGEX_TEST_BLANK_LINE = /^\\s+$/\nconst REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\\\]|^)\\\\$/\nconst REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\\\!/\nconst REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\\\#/\nconst REGEX_SPLITALL_CRLF = /\\r?\\n/g\n// /foo,\n// ./foo,\n// ../foo,\n// .\n// ..\nconst REGEX_TEST_INVALID_PATH = /^\\.*\\/|^\\.+$/\n\nconst SLASH = '/'\n\n// Do not use ternary expression here, since \"istanbul ignore next\" is buggy\nlet TMP_KEY_IGNORE = 'node-ignore'\n/* istanbul ignore else */\nif (typeof Symbol !== 'undefined') {\n TMP_KEY_IGNORE = Symbol.for('node-ignore')\n}\nconst KEY_IGNORE = TMP_KEY_IGNORE\n\nconst define = (object, key, value) =>\n Object.defineProperty(object, key, {value})\n\nconst REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g\n\nconst RETURN_FALSE = () => false\n\n// Sanitize the range of a regular expression\n// The cases are complicated, see test cases for details\nconst sanitizeRange = range => range.replace(\n REGEX_REGEXP_RANGE,\n (match, from, to) => from.charCodeAt(0) <= to.charCodeAt(0)\n ? match\n // Invalid range (out of order) which is ok for gitignore rules but\n // fatal for JavaScript regular expression, so eliminate it.\n : EMPTY\n)\n\n// See fixtures #59\nconst cleanRangeBackSlash = slashes => {\n const {length} = slashes\n return slashes.slice(0, length - length % 2)\n}\n\n// > If the pattern ends with a slash,\n// > it is removed for the purpose of the following description,\n// > but it would only find a match with a directory.\n// > In other words, foo/ will match a directory foo and paths underneath it,\n// > but will not match a regular file or a symbolic link foo\n// > (this is consistent with the way how pathspec works in general in Git).\n// '`foo/`' will not match regular file '`foo`' or symbolic link '`foo`'\n// -> ignore-rules will not deal with it, because it costs extra `fs.stat` call\n// you could use option `mark: true` with `glob`\n\n// '`foo/`' should not continue with the '`..`'\nconst REPLACERS = [\n\n [\n // remove BOM\n // TODO:\n // Other similar zero-width characters?\n /^\\uFEFF/,\n () => EMPTY\n ],\n\n // > Trailing spaces are ignored unless they are quoted with backslash (\"\\\")\n [\n // (a\\ ) -> (a )\n // (a ) -> (a)\n // (a ) -> (a)\n // (a \\ ) -> (a )\n /((?:\\\\\\\\)*?)(\\\\?\\s+)$/,\n (_, m1, m2) => m1 + (\n m2.indexOf('\\\\') === 0\n ? SPACE\n : EMPTY\n )\n ],\n\n // replace (\\ ) with ' '\n // (\\ ) -> ' '\n // (\\\\ ) -> '\\\\ '\n // (\\\\\\ ) -> '\\\\ '\n [\n /(\\\\+?)\\s/g,\n (_, m1) => {\n const {length} = m1\n return m1.slice(0, length - length % 2) + SPACE\n }\n ],\n\n // Escape metacharacters\n // which is written down by users but means special for regular expressions.\n\n // > There are 12 characters with special meanings:\n // > - the backslash \\,\n // > - the caret ^,\n // > - the dollar sign $,\n // > - the period or dot .,\n // > - the vertical bar or pipe symbol |,\n // > - the question mark ?,\n // > - the asterisk or star *,\n // > - the plus sign +,\n // > - the opening parenthesis (,\n // > - the closing parenthesis ),\n // > - and the opening square bracket [,\n // > - the opening curly brace {,\n // > These special characters are often called \"metacharacters\".\n [\n /[\\\\$.|*+(){^]/g,\n match => `\\\\${match}`\n ],\n\n [\n // > a question mark (?) matches a single character\n /(?!\\\\)\\?/g,\n () => '[^/]'\n ],\n\n // leading slash\n [\n\n // > A leading slash matches the beginning of the pathname.\n // > For example, \"/*.c\" matches \"cat-file.c\" but not \"mozilla-sha1/sha1.c\".\n // A leading slash matches the beginning of the pathname\n /^\\//,\n () => '^'\n ],\n\n // replace special metacharacter slash after the leading slash\n [\n /\\//g,\n () => '\\\\/'\n ],\n\n [\n // > A leading \"**\" followed by a slash means match in all directories.\n // > For example, \"**/foo\" matches file or directory \"foo\" anywhere,\n // > the same as pattern \"foo\".\n // > \"**/foo/bar\" matches file or directory \"bar\" anywhere that is directly\n // > under directory \"foo\".\n // Notice that the '*'s have been replaced as '\\\\*'\n /^\\^*\\\\\\*\\\\\\*\\\\\\//,\n\n // '**/foo' <-> 'foo'\n () => '^(?:.*\\\\/)?'\n ],\n\n // starting\n [\n // there will be no leading '/'\n // (which has been replaced by section \"leading slash\")\n // If starts with '**', adding a '^' to the regular expression also works\n /^(?=[^^])/,\n function startingReplacer () {\n // If has a slash `/` at the beginning or middle\n return !/\\/(?!$)/.test(this)\n // > Prior to 2.22.1\n // > If the pattern does not contain a slash /,\n // > Git treats it as a shell glob pattern\n // Actually, if there is only a trailing slash,\n // git also treats it as a shell glob pattern\n\n // After 2.22.1 (compatible but clearer)\n // > If there is a separator at the beginning or middle (or both)\n // > of the pattern, then the pattern is relative to the directory\n // > level of the particular .gitignore file itself.\n // > Otherwise the pattern may also match at any level below\n // > the .gitignore level.\n ? '(?:^|\\\\/)'\n\n // > Otherwise, Git treats the pattern as a shell glob suitable for\n // > consumption by fnmatch(3)\n : '^'\n }\n ],\n\n // two globstars\n [\n // Use lookahead assertions so that we could match more than one `'/**'`\n /\\\\\\/\\\\\\*\\\\\\*(?=\\\\\\/|$)/g,\n\n // Zero, one or several directories\n // should not use '*', or it will be replaced by the next replacer\n\n // Check if it is not the last `'/**'`\n (_, index, str) => index + 6 < str.length\n\n // case: /**/\n // > A slash followed by two consecutive asterisks then a slash matches\n // > zero or more directories.\n // > For example, \"a/**/b\" matches \"a/b\", \"a/x/b\", \"a/x/y/b\" and so on.\n // '/**/'\n ? '(?:\\\\/[^\\\\/]+)*'\n\n // case: /**\n // > A trailing `\"/**\"` matches everything inside.\n\n // #21: everything inside but it should not include the current folder\n : '\\\\/.+'\n ],\n\n // normal intermediate wildcards\n [\n // Never replace escaped '*'\n // ignore rule '\\*' will match the path '*'\n\n // 'abc.*/' -> go\n // 'abc.*' -> skip this rule,\n // coz trailing single wildcard will be handed by [trailing wildcard]\n /(^|[^\\\\]+)(\\\\\\*)+(?=.+)/g,\n\n // '*.js' matches '.js'\n // '*.js' doesn't match 'abc'\n (_, p1, p2) => {\n // 1.\n // > An asterisk \"*\" matches anything except a slash.\n // 2.\n // > Other consecutive asterisks are considered regular asterisks\n // > and will match according to the previous rules.\n const unescaped = p2.replace(/\\\\\\*/g, '[^\\\\/]*')\n return p1 + unescaped\n }\n ],\n\n [\n // unescape, revert step 3 except for back slash\n // For example, if a user escape a '\\\\*',\n // after step 3, the result will be '\\\\\\\\\\\\*'\n /\\\\\\\\\\\\(?=[$.|*+(){^])/g,\n () => ESCAPE\n ],\n\n [\n // '\\\\\\\\' -> '\\\\'\n /\\\\\\\\/g,\n () => ESCAPE\n ],\n\n [\n // > The range notation, e.g. [a-zA-Z],\n // > can be used to match one of the characters in a range.\n\n // `\\` is escaped by step 3\n /(\\\\)?\\[([^\\]/]*?)(\\\\*)($|\\])/g,\n (match, leadEscape, range, endEscape, close) => leadEscape === ESCAPE\n // '\\\\[bar]' -> '\\\\\\\\[bar\\\\]'\n ? `\\\\[${range}${cleanRangeBackSlash(endEscape)}${close}`\n : close === ']'\n ? endEscape.length % 2 === 0\n // A normal case, and it is a range notation\n // '[bar]'\n // '[bar\\\\\\\\]'\n ? `[${sanitizeRange(range)}${endEscape}]`\n // Invalid range notaton\n // '[bar\\\\]' -> '[bar\\\\\\\\]'\n : '[]'\n : '[]'\n ],\n\n // ending\n [\n // 'js' will not match 'js.'\n // 'ab' will not match 'abc'\n /(?:[^*])$/,\n\n // WTF!\n // https://git-scm.com/docs/gitignore\n // changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1)\n // which re-fixes #24, #38\n\n // > If there is a separator at the end of the pattern then the pattern\n // > will only match directories, otherwise the pattern can match both\n // > files and directories.\n\n // 'js*' will not match 'a.js'\n // 'js/' will not match 'a.js'\n // 'js' will match 'a.js' and 'a.js/'\n match => /\\/$/.test(match)\n // foo/ will not match 'foo'\n ? `${match}$`\n // foo matches 'foo' and 'foo/'\n : `${match}(?=$|\\\\/$)`\n ],\n\n // trailing wildcard\n [\n /(\\^|\\\\\\/)?\\\\\\*$/,\n (_, p1) => {\n const prefix = p1\n // '\\^':\n // '/*' does not match EMPTY\n // '/*' does not match everything\n\n // '\\\\\\/':\n // 'abc/*' does not match 'abc/'\n ? `${p1}[^/]+`\n\n // 'a*' matches 'a'\n // 'a*' matches 'aa'\n : '[^/]*'\n\n return `${prefix}(?=$|\\\\/$)`\n }\n ],\n]\n\n// A simple cache, because an ignore rule only has only one certain meaning\nconst regexCache = Object.create(null)\n\n// @param {pattern}\nconst makeRegex = (pattern, ignoreCase) => {\n let source = regexCache[pattern]\n\n if (!source) {\n source = REPLACERS.reduce(\n (prev, [matcher, replacer]) =>\n prev.replace(matcher, replacer.bind(pattern)),\n pattern\n )\n regexCache[pattern] = source\n }\n\n return ignoreCase\n ? new RegExp(source, 'i')\n : new RegExp(source)\n}\n\nconst isString = subject => typeof subject === 'string'\n\n// > A blank line matches no files, so it can serve as a separator for readability.\nconst checkPattern = pattern => pattern\n && isString(pattern)\n && !REGEX_TEST_BLANK_LINE.test(pattern)\n && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern)\n\n // > A line starting with # serves as a comment.\n && pattern.indexOf('#') !== 0\n\nconst splitPattern = pattern => pattern.split(REGEX_SPLITALL_CRLF)\n\nclass IgnoreRule {\n constructor (\n origin,\n pattern,\n negative,\n regex\n ) {\n this.origin = origin\n this.pattern = pattern\n this.negative = negative\n this.regex = regex\n }\n}\n\nconst createRule = (pattern, ignoreCase) => {\n const origin = pattern\n let negative = false\n\n // > An optional prefix \"!\" which negates the pattern;\n if (pattern.indexOf('!') === 0) {\n negative = true\n pattern = pattern.substr(1)\n }\n\n pattern = pattern\n // > Put a backslash (\"\\\") in front of the first \"!\" for patterns that\n // > begin with a literal \"!\", for example, `\"\\!important!.txt\"`.\n .replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, '!')\n // > Put a backslash (\"\\\") in front of the first hash for patterns that\n // > begin with a hash.\n .replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, '#')\n\n const regex = makeRegex(pattern, ignoreCase)\n\n return new IgnoreRule(\n origin,\n pattern,\n negative,\n regex\n )\n}\n\nconst throwError = (message, Ctor) => {\n throw new Ctor(message)\n}\n\nconst checkPath = (path, originalPath, doThrow) => {\n if (!isString(path)) {\n return doThrow(\n `path must be a string, but got \\`${originalPath}\\``,\n TypeError\n )\n }\n\n // We don't know if we should ignore EMPTY, so throw\n if (!path) {\n return doThrow(`path must not be empty`, TypeError)\n }\n\n // Check if it is a relative path\n if (checkPath.isNotRelative(path)) {\n const r = '`path.relative()`d'\n return doThrow(\n `path should be a ${r} string, but got \"${originalPath}\"`,\n RangeError\n )\n }\n\n return true\n}\n\nconst isNotRelative = path => REGEX_TEST_INVALID_PATH.test(path)\n\ncheckPath.isNotRelative = isNotRelative\ncheckPath.convert = p => p\n\nclass Ignore {\n constructor ({\n ignorecase = true,\n ignoreCase = ignorecase,\n allowRelativePaths = false\n } = {}) {\n define(this, KEY_IGNORE, true)\n\n this._rules = []\n this._ignoreCase = ignoreCase\n this._allowRelativePaths = allowRelativePaths\n this._initCache()\n }\n\n _initCache () {\n this._ignoreCache = Object.create(null)\n this._testCache = Object.create(null)\n }\n\n _addPattern (pattern) {\n // #32\n if (pattern && pattern[KEY_IGNORE]) {\n this._rules = this._rules.concat(pattern._rules)\n this._added = true\n return\n }\n\n if (checkPattern(pattern)) {\n const rule = createRule(pattern, this._ignoreCase)\n this._added = true\n this._rules.push(rule)\n }\n }\n\n // @param {Array<string> | string | Ignore} pattern\n add (pattern) {\n this._added = false\n\n makeArray(\n isString(pattern)\n ? splitPattern(pattern)\n : pattern\n ).forEach(this._addPattern, this)\n\n // Some rules have just added to the ignore,\n // making the behavior changed.\n if (this._added) {\n this._initCache()\n }\n\n return this\n }\n\n // legacy\n addPattern (pattern) {\n return this.add(pattern)\n }\n\n // | ignored : unignored\n // negative | 0:0 | 0:1 | 1:0 | 1:1\n // -------- | ------- | ------- | ------- | --------\n // 0 | TEST | TEST | SKIP | X\n // 1 | TESTIF | SKIP | TEST | X\n\n // - SKIP: always skip\n // - TEST: always test\n // - TESTIF: only test if checkUnignored\n // - X: that never happen\n\n // @param {boolean} whether should check if the path is unignored,\n // setting `checkUnignored` to `false` could reduce additional\n // path matching.\n\n // @returns {TestResult} true if a file is ignored\n _testOne (path, checkUnignored) {\n let ignored = false\n let unignored = false\n\n this._rules.forEach(rule => {\n const {negative} = rule\n if (\n unignored === negative && ignored !== unignored\n || negative && !ignored && !unignored && !checkUnignored\n ) {\n return\n }\n\n const matched = rule.regex.test(path)\n\n if (matched) {\n ignored = !negative\n unignored = negative\n }\n })\n\n return {\n ignored,\n unignored\n }\n }\n\n // @returns {TestResult}\n _test (originalPath, cache, checkUnignored, slices) {\n const path = originalPath\n // Supports nullable path\n && checkPath.convert(originalPath)\n\n checkPath(\n path,\n originalPath,\n this._allowRelativePaths\n ? RETURN_FALSE\n : throwError\n )\n\n return this._t(path, cache, checkUnignored, slices)\n }\n\n _t (path, cache, checkUnignored, slices) {\n if (path in cache) {\n return cache[path]\n }\n\n if (!slices) {\n // path/to/a.js\n // ['path', 'to', 'a.js']\n slices = path.split(SLASH)\n }\n\n slices.pop()\n\n // If the path has no parent directory, just test it\n if (!slices.length) {\n return cache[path] = this._testOne(path, checkUnignored)\n }\n\n const parent = this._t(\n slices.join(SLASH) + SLASH,\n cache,\n checkUnignored,\n slices\n )\n\n // If the path contains a parent directory, check the parent first\n return cache[path] = parent.ignored\n // > It is not possible to re-include a file if a parent directory of\n // > that file is excluded.\n ? parent\n : this._testOne(path, checkUnignored)\n }\n\n ignores (path) {\n return this._test(path, this._ignoreCache, false).ignored\n }\n\n createFilter () {\n return path => !this.ignores(path)\n }\n\n filter (paths) {\n return makeArray(paths).filter(this.createFilter())\n }\n\n // @returns {TestResult}\n test (path) {\n return this._test(path, this._testCache, true)\n }\n}\n\nconst factory = options => new Ignore(options)\n\nconst isPathValid = path =>\n checkPath(path && checkPath.convert(path), path, RETURN_FALSE)\n\nfactory.isPathValid = isPathValid\n\n// Fixes typescript\nfactory.default = factory\n\nmodule.exports = factory\n\n// Windows\n// --------------------------------------------------------------\n/* istanbul ignore if */\nif (\n // Detect `process` so that it can run in browsers.\n typeof process !== 'undefined'\n && (\n process.env && process.env.IGNORE_TEST_WIN32\n || process.platform === 'win32'\n )\n) {\n /* eslint no-control-regex: \"off\" */\n const makePosix = str => /^\\\\\\\\\\?\\\\/.test(str)\n || /[\"<>|\\u0000-\\u001F]+/u.test(str)\n ? str\n : str.replace(/\\\\/g, '/')\n\n checkPath.convert = makePosix\n\n // 'C:\\\\foo' <- 'C:\\\\foo' has been converted to 'C:/'\n // 'd:\\\\foo'\n const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\\//i\n checkPath.isNotRelative = path =>\n REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path)\n || isNotRelative(path)\n}\n", "/*!\n * normalize-path <https://github.com/jonschlinkert/normalize-path>\n *\n * Copyright (c) 2014-2018, Jon Schlinkert.\n * Released under the MIT License.\n */\n\nmodule.exports = function(path, stripTrailing) {\n if (typeof path !== 'string') {\n throw new TypeError('expected path to be a string');\n }\n\n if (path === '\\\\' || path === '/') return '/';\n\n var len = path.length;\n if (len <= 1) return path;\n\n // ensure that win32 namespaces has two leading slashes, so that the path is\n // handled properly by the win32 version of path.parse() after being normalized\n // https://msdn.microsoft.com/library/windows/desktop/aa365247(v=vs.85).aspx#namespaces\n var prefix = '';\n if (len > 4 && path[3] === '\\\\') {\n var ch = path[2];\n if ((ch === '?' || ch === '.') && path.slice(0, 2) === '\\\\\\\\') {\n path = path.slice(2);\n prefix = '//';\n }\n }\n\n var segs = path.split(/[/\\\\]+/);\n if (stripTrailing !== false && segs[segs.length - 1] === '') {\n segs.pop();\n }\n return prefix + segs.join('/');\n};\n", "import fs from \"fs-extra\";\nimport type { Context } from \"../command/context.js\";\nimport { configPath } from \"../config/config.js\";\nimport { swallowEnoent } from \"../filesync/directory.js\";\nimport { memo } from \"../util/function.js\";\n\n/**\n * Reads the session from either the environment variable `GGT_SESSION`\n * or from the `session.txt` file in the config directory.\n *\n * @returns The session string if found, otherwise undefined.\n */\nexport const readSession = memo((ctx: Context): string | undefined => {\n if (process.env[\"GGT_SESSION\"]) {\n ctx.log.debug(\"reading session from env\");\n return process.env[\"GGT_SESSION\"];\n }\n\n try {\n ctx.log.debug(\"reading session from disk\");\n return fs.readFileSync(configPath(\"session.txt\"), \"utf8\");\n } catch (error) {\n swallowEnoent(error);\n return undefined;\n }\n});\n\n/**\n * Writes the session to disk in the `session.txt` file in the config.\n *\n * @param ctx - The context object.\n * @param session - The session to write to disk.\n */\nexport const writeSession = (ctx: Context, session: string | undefined): void => {\n readSession.clear();\n\n if (process.env[\"GGT_SESSION\"]) {\n ctx.log.debug(\"writing session to env\", { session: Boolean(session) });\n process.env[\"GGT_SESSION\"] = session;\n }\n\n ctx.log.debug(\"writing session to disk\", { session: Boolean(session), path: configPath(\"session.txt\") });\n\n if (session) {\n fs.outputFileSync(configPath(\"session.txt\"), session);\n } else {\n fs.removeSync(configPath(\"session.txt\"));\n }\n};\n\nexport const readToken = memo((ctx: Context): string | undefined => {\n ctx.log.debug(\"reading token from env\");\n return process.env[\"GGT_TOKEN\"];\n});\n", "/**\n * DO NOT MODIFY\n *\n * Everything in this file also exists in gadget to ensure that this logic\n * is the same between the two projects.\n */\nimport fs from \"fs-extra\";\nimport type { Ignore } from \"ignore\";\nimport ignore from \"ignore\";\nimport assert from \"node:assert\";\nimport { createHash } from \"node:crypto\";\nimport path from \"node:path\";\nimport { Transform } from \"node:stream\";\nimport { pipeline } from \"node:stream/promises\";\nimport normalizePath from \"normalize-path\";\n\n/**\n * Paths that are always ignored, regardless of the contents of the `.ignore` file.\n */\nexport const ALWAYS_IGNORE_PATHS = [\".DS_Store\", \"node_modules\", \".git\"] as const;\n\n/**\n * Paths that are ignored when hashing the directory.\n *\n * NOTE: This is the _only_ thing that is allowed to be different between gadget and ggt.\n */\nexport const HASHING_IGNORE_PATHS = [\".gadget/sync.json\", \".gadget/backup\", \"yarn-error.log\"] as const;\n\n/**\n * Represents a directory that is being synced.\n */\nexport class Directory {\n /**\n * A gitignore-style file parser used to determine which files to\n * ignore while syncing.\n *\n * @see https://www.npmjs.com/package/ignore\n */\n private _ignorer!: Ignore;\n\n /**\n * Whether the directory is currently being hashed.\n */\n private _isHashing = false;\n\n private constructor(\n /**\n * An absolute path to the directory that is being synced.\n */\n readonly path: string,\n ) {}\n\n /**\n * Initializes a directory to be synced.\n *\n * If the directory does not exist, it is created.\n *\n * @param dir - The directory to initialize.\n * @returns A Promise that resolves to a Directory instance.\n */\n static async init(dir: string): Promise<Directory> {\n const directory = new Directory(dir);\n await directory.loadIgnoreFile();\n return directory;\n }\n\n /**\n * Returns the relative path from this directory to the specified path.\n *\n * @param to - The path to which the relative path is calculated.\n * @returns The relative path from this directory to the specified path.\n */\n relative(to: string): string {\n if (!path.isAbsolute(to)) {\n // the filepath is already relative\n return to;\n }\n\n return path.relative(this.path, to);\n }\n\n /**\n * Returns the absolute path by resolving the given path segments\n * relative to the directory path.\n *\n * @param pathSegments - The path segments to resolve.\n * @returns The absolute path.\n */\n absolute(...pathSegments: string[]): string {\n const result = path.resolve(this.path, ...pathSegments);\n assert(result.startsWith(this.path), `expected ${result} to be within ${this.path}`);\n return result;\n }\n\n /**\n * Similar to {@linkcode relative} in that it converts an absolute\n * path into a relative one from {@linkcode path}. However, it also\n * changes any slashes to be posix/unix-like forward slashes,\n * condenses repeated slashes into a single slash, and adds a trailing\n * slash if the path is a directory.\n *\n * This is used when sending files to Gadget to ensure that the paths\n * are consistent across platforms.\n *\n * @see https://www.npmjs.com/package/normalize-path\n */\n normalize(filepath: string, isDirectory: boolean): string {\n if (path.isAbsolute(filepath)) {\n filepath = this.relative(filepath);\n }\n\n // true = trim trailing slashes\n filepath = normalizePath(filepath, true);\n\n if (isDirectory) {\n filepath += \"/\";\n }\n\n return filepath;\n }\n\n /**\n * Loads the `.ignore` file in the directory. If the file does not\n * exist, it is silently ignored.\n */\n async loadIgnoreFile(): Promise<void> {\n this._ignorer = ignore.default();\n this._ignorer.add(ALWAYS_IGNORE_PATHS);\n\n try {\n const content = await fs.readFile(this.absolute(\".ignore\"), \"utf8\");\n this._ignorer.add(content);\n } catch (error) {\n swallowEnoent(error);\n }\n }\n\n /**\n * Determines if a file should be ignored based on its filepath.\n *\n * @param filepath - The filepath of the file to check.\n * @returns True if the file should be ignored, false otherwise.\n */\n ignores(filepath: string): boolean {\n filepath = this.relative(filepath);\n if (filepath === \"\") {\n // don't ignore the root dir\n return false;\n }\n\n if (filepath.startsWith(\"..\")) {\n // anything above the root dir is ignored\n return true;\n }\n\n // false = don't trim trailing slashes\n filepath = normalizePath(filepath, false);\n if (this._isHashing && HASHING_IGNORE_PATHS.some((ignored) => filepath.startsWith(ignored))) {\n // special case for hashing\n return true;\n }\n\n return this._ignorer.ignores(filepath);\n }\n\n /**\n * Recursively walks through the directory and yields all non-ignored\n * files and directories within it.\n *\n * @yields - The normalized path of each file and directory.\n */\n async *walk({ dir = this.path } = {}): AsyncGenerator<string> {\n // don't yield the root directory\n if (dir !== this.path) {\n yield this.normalize(dir, true);\n }\n\n for await (const entry of await fs.opendir(dir)) {\n const filepath = path.join(dir, entry.name);\n if (this.ignores(filepath)) {\n continue;\n }\n\n if (entry.isDirectory()) {\n yield* this.walk({ dir: filepath });\n } else if (entry.isFile()) {\n yield this.normalize(filepath, false);\n }\n }\n }\n\n /**\n * Calculates the hash of each file and directory and returns an\n * object containing the hashes keyed by the normalized file path.\n *\n * @returns A Promise that resolves to an object containing the hashes\n * of each file.\n */\n async hashes(): Promise<Hashes> {\n try {\n this._isHashing = true;\n const files = {} as Hashes;\n\n for await (const normalizedPath of this.walk()) {\n const absolutePath = this.absolute(normalizedPath);\n files[normalizedPath] = await hash(absolutePath);\n }\n\n return files;\n } finally {\n this._isHashing = false;\n }\n }\n\n async hasFiles(): Promise<boolean> {\n return !(await this.isEmptyOrNonExistent());\n }\n\n async isEmptyOrNonExistent(): Promise<boolean> {\n let isEmptyOrNonExistent = true;\n try {\n for await (const _ of this.walk()) {\n isEmptyOrNonExistent = false;\n break;\n }\n } catch (error) {\n swallowEnoent(error);\n }\n return isEmptyOrNonExistent;\n }\n}\n\n/**\n * Key/value pairs where the key is the normalized path and the value is\n * the result of {@linkcode hash} for that path.\n */\nexport type Hashes = Record<string, Hash>;\n\nexport type Hash = {\n /**\n * The SHA-1 hash of the file or directory.\n *\n * If the path points to a directory, the hash is calculated based on\n * the directory's basename. If the path points to a file, the hash is\n * calculated based on the file's basename and contents.\n */\n sha1: string;\n\n /**\n * The Unix-style file permissions of the file or directory, or\n * undefined if the platform that generated this hash doesn't support\n * them.\n *\n * @example 0o644\n * @see supportsPermissions\n */\n permissions?: number;\n};\n\n/**\n * Whether the current platform supports Unix-style file permissions.\n *\n * Windows doesn't support Unix-style file permissions and all file\n * permissions retrieved via `node:fs` on Windows are translated to 666\n * or 444.\n */\nexport const supportsPermissions = process.platform === \"linux\" || process.platform === \"darwin\";\n\n/**\n * Calculates the {@linkcode Hash} of the file or directory at the\n * specified absolute path.\n *\n * @param absolutePath - The absolute path to the file or directory.\n * @returns A Promise that resolves to the {@linkcode Hash} of the file\n * or directory.\n */\nconst hash = async (absolutePath: string): Promise<Hash> => {\n const sha1 = createHash(\"sha1\");\n sha1.update(path.basename(absolutePath));\n\n const stats = await fs.stat(absolutePath);\n\n let permissions;\n if (supportsPermissions) {\n // strip everything but the permissions\n permissions = stats.mode & 0o777;\n }\n\n if (stats.isDirectory()) {\n return { sha1: sha1.digest(\"hex\"), permissions };\n }\n\n // windows uses CRLF line endings whereas unix uses LF line endings so\n // we always strip out CR bytes (0x0d) when hashing files. this does\n // make us blind to files that only differ by CR bytes, but that's a\n // tradeoff we're willing to make.\n const removeCR = new Transform({\n transform(chunk: Buffer, _encoding, callback) {\n if (!chunk.includes(0x0d)) {\n callback(undefined, chunk);\n return;\n }\n\n const filteredChunk = Buffer.alloc(chunk.length);\n let i = 0;\n for (const byte of chunk) {\n if (byte !== 0x0d) {\n filteredChunk[i++] = byte;\n }\n }\n\n callback(undefined, filteredChunk.subarray(0, i));\n },\n });\n\n await pipeline(fs.createReadStream(absolutePath), removeCR, sha1);\n\n return { sha1: sha1.digest(\"hex\"), permissions };\n};\n\n/**\n * Swallows ENOENT errors and throws any other errors.\n *\n * @param error - The error to handle.\n * @throws The original error if it is not an ENOENT error.\n */\nexport const swallowEnoent = (error: unknown): void => {\n if (error && typeof error === \"object\" && \"code\" in error && error.code === \"ENOENT\") {\n return;\n }\n throw error;\n};\n"],
|
|
5
|
+
"mappings": "4GAAA,IAAAA,EAAAC,EAAA,CAAAC,GAAAC,IAAA,CAAAC,IACA,SAASC,EAAWC,EAAS,CAC3B,OAAO,MAAM,QAAQA,CAAO,EACxBA,EACA,CAACA,CAAO,CACd,CAEA,IAAMC,EAAQ,GACRC,EAAQ,IACRC,EAAS,KACTC,EAAwB,QACxBC,EAAmC,iBACnCC,EAA4C,OAC5CC,EAAqC,OACrCC,EAAsB,SAMtBC,EAA0B,eAE1BC,EAAQ,IAGVC,EAAiB,cAEjB,OAAO,OAAW,MACpBA,EAAiB,OAAO,IAAI,aAAa,GAE3C,IAAMC,EAAaD,EAEbE,EAAS,CAACC,EAAQC,EAAKC,IAC3B,OAAO,eAAeF,EAAQC,EAAK,CAAC,MAAAC,CAAK,CAAC,EAEtCC,EAAqB,mBAErBC,EAAe,IAAM,GAIrBC,EAAgBC,GAASA,EAAM,QACnCH,EACA,CAACI,EAAOC,EAAMC,IAAOD,EAAK,WAAW,CAAC,GAAKC,EAAG,WAAW,CAAC,EACtDF,EAGApB,CACN,EAGMuB,EAAsBC,GAAW,CACrC,GAAM,CAAC,O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aAAa,CAAC,CAE3C,EAEaK,GAAYR,EAAMC,IAC7BA,EAAI,IAAI,MAAM,wBAAwB,EAC/B,QAAQ,IAAI,UACpB",
|
|
6
|
+
"names": ["require_ignore", "__commonJSMin", "exports", "module", "init_cjs", "makeArray", "subject", "EMPTY", "SPACE", "ESCAPE", "REGEX_TEST_BLANK_LINE", "REGEX_INVALID_TRAILING_BACKSLASH", "REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION", "REGEX_REPLACE_LEADING_EXCAPED_HASH", "REGEX_SPLITALL_CRLF", "REGEX_TEST_INVALID_PATH", "SLASH", "TMP_KEY_IGNORE", "KEY_IGNORE", "define", "object", "key", "value", "REGEX_REGEXP_RANGE", "RETURN_FALSE", "sanitizeRange", "range", "match", "from", "to", "cleanRangeBackSlash", "slashes", "length", "REPLACERS", "_", "m1", "m2", "index", "str", "p1", "p2", "unescaped", "leadEscape", "endEscape", "close", "regexCache", "makeRegex", "pattern", "ignoreCase", "source", "prev", "matcher", "replacer", "isString", "checkPattern", "splitPattern", "IgnoreRule", "origin", "negative", "regex", "createRule", "throwError", "message", "Ctor", "checkPath", "path", "originalPath", "doThrow", "isNotRelative", "p", "Ignore", "ignorecase", "allowRelativePaths", "rule", "checkUnignored", "ignored", "unignored", "cache", "slices", "parent", "paths", "factory", "options", "isPathValid", "makePosix", "REGIX_IS_WINDOWS_PATH_ABSOLUTE", "require_normalize_path", "__commonJSMin", "exports", "module", "init_cjs", "path", "stripTrailing", "len", "prefix", "ch", "segs", "init_cjs", "import_fs_extra", "init_cjs", "import_fs_extra", "import_ignore", "import_normalize_path", "assert", "createHash", "path", "Transform", "pipeline", "ALWAYS_IGNORE_PATHS", "HASHING_IGNORE_PATHS", "Directory", "_Directory", "dir", "directory", "to", "pathSegments", "result", "filepath", "isDirectory", "normalizePath", "ignore", "content", "fs", "error", "swallowEnoent", "ignored", "entry", "files", "normalizedPath", "absolutePath", "hash", "isEmptyOrNonExistent", "_", "supportsPermissions", "sha1", "stats", "permissions", "removeCR", "chunk", "_encoding", "callback", "filteredChunk", "i", "byte", "readSession", "memo", "ctx", "fs", "configPath", "error", "swallowEnoent", "writeSession", "session", "readToken"]
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{a as X}from"./chunk-F3EZ4KS3.js";import{a as I,c as y,g as C}from"./chunk-5WC5D4WL.js";var
|
|
1
|
+
import{a as X}from"./chunk-F3EZ4KS3.js";import{a as I,c as y,g as C}from"./chunk-5WC5D4WL.js";var G=y((Ie,q)=>{C();var b=1e3,O=b*60,w=O*60,g=w*24,ee=g*7,re=g*365.25;q.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return te(e);if(r==="number"&&isFinite(e))return t.long?oe(e):ne(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function te(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),s=(t[2]||"ms").toLowerCase();switch(s){case"years":case"year":case"yrs":case"yr":case"y":return r*re;case"weeks":case"week":case"w":return r*ee;case"days":case"day":case"d":return r*g;case"hours":case"hour":case"hrs":case"hr":case"h":return r*w;case"minutes":case"minute":case"mins":case"min":case"m":return r*O;case"seconds":case"second":case"secs":case"sec":case"s":return r*b;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function ne(e){var t=Math.abs(e);return t>=g?Math.round(e/g)+"d":t>=w?Math.round(e/w)+"h":t>=O?Math.round(e/O)+"m":t>=b?Math.round(e/b)+"s":e+"ms"}function oe(e){var t=Math.abs(e);return t>=g?A(e,t,g,"day"):t>=w?A(e,t,w,"hour"):t>=O?A(e,t,O,"minute"):t>=b?A(e,t,b,"second"):e+" ms"}function A(e,t,r,s){var l=t>=r*1.5;return Math.round(e/r)+" "+s+(l?"s":"")}});var N=y((Te,$)=>{C();function se(e){r.debug=r,r.default=r,r.coerce=W,r.disable=p,r.enable=l,r.enabled=m,r.humanize=G(),r.destroy=Z,Object.keys(e).forEach(n=>{r[n]=e[n]}),r.names=[],r.skips=[],r.formatters={};function t(n){let o=0;for(let i=0;i<n.length;i++)o=(o<<5)-o+n.charCodeAt(i),o|=0;return r.colors[Math.abs(o)%r.colors.length]}r.selectColor=t;function r(n){let o,i=null,v,B;function h(...f){if(!h.enabled)return;let F=h,E=Number(new Date),H=E-(o||E);F.diff=H,F.prev=o,F.curr=E,o=E,f[0]=r.coerce(f[0]),typeof f[0]!="string"&&f.unshift("%O");let R=0;f[0]=f[0].replace(/%([a-zA-Z%])/g,(L,K)=>{if(L==="%%")return"%";R++;let D=r.formatters[K];if(typeof D=="function"){let Q=f[R];L=D.call(F,Q),f.splice(R,1),R--}return L}),r.formatArgs.call(F,f),(F.log||r.log).apply(F,f)}return h.namespace=n,h.useColors=r.useColors(),h.color=r.selectColor(n),h.extend=s,h.destroy=r.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>i!==null?i:(v!==r.namespaces&&(v=r.namespaces,B=r.enabled(n)),B),set:f=>{i=f}}),typeof r.init=="function"&&r.init(h),h}function s(n,o){let i=r(this.namespace+(typeof o>"u"?":":o)+n);return i.log=this.log,i}function l(n){r.save(n),r.namespaces=n,r.names=[],r.skips=[];let o,i=(typeof n=="string"?n:"").split(/[\s,]+/),v=i.length;for(o=0;o<v;o++)i[o]&&(n=i[o].replace(/\*/g,".*?"),n[0]==="-"?r.skips.push(new RegExp("^"+n.slice(1)+"$")):r.names.push(new RegExp("^"+n+"$")))}function p(){let n=[...r.names.map(j),...r.skips.map(j).map(o=>"-"+o)].join(",");return r.enable(""),n}function m(n){if(n[n.length-1]==="*")return!0;let o,i;for(o=0,i=r.skips.length;o<i;o++)if(r.skips[o].test(n))return!1;for(o=0,i=r.names.length;o<i;o++)if(r.names[o].test(n))return!0;return!1}function j(n){return n.toString().substring(2,n.toString().length-2).replace(/\.\*\?$/,"*")}function W(n){return n instanceof Error?n.stack||n.message:n}function Z(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}$.exports=se});var P=y((a,T)=>{C();a.formatArgs=ce;a.save=ue;a.load=le;a.useColors=ie;a.storage=ae();a.destroy=(()=>{let e=!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`."))}})();a.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"];function ie(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function ce(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+T.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,s=0;e[0].replace(/%[a-zA-Z%]/g,l=>{l!=="%%"&&(r++,l==="%c"&&(s=r))}),e.splice(s,0,t)}a.log=console.debug||console.log||(()=>{});function ue(e){try{e?a.storage.setItem("debug",e):a.storage.removeItem("debug")}catch{}}function le(){let e;try{e=a.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function ae(){try{return localStorage}catch{}}T.exports=N()(a);var{formatters:fe}=T.exports;fe.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var z=y((_e,Y)=>{"use strict";C();var Ce=I("os"),U=I("tty"),d=X(),{env:c}=process,x;d("no-color")||d("no-colors")||d("color=false")||d("color=never")?x=0:(d("color")||d("colors")||d("color=true")||d("color=always"))&&(x=1);function de(){if("FORCE_COLOR"in c)return c.FORCE_COLOR==="true"?1:c.FORCE_COLOR==="false"?0:c.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(c.FORCE_COLOR,10),3)}function pe(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function he(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let s=de();s!==void 0&&(x=s);let l=r?x:s;if(l===0)return 0;if(r){if(d("color=16m")||d("color=full")||d("color=truecolor"))return 3;if(d("color=256"))return 2}if(e&&!t&&l===void 0)return 0;let p=l||0;if(c.TERM==="dumb")return p;if(process.platform==="win32"){let m=Ce.release().split(".");return Number(m[0])>=10&&Number(m[2])>=10586?Number(m[2])>=14931?3:2:1}if("CI"in c)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(m=>m in c)||c.CI_NAME==="codeship"?1:p;if("TEAMCITY_VERSION"in c)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(c.TEAMCITY_VERSION)?1:0;if(c.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in c){let m=Number.parseInt((c.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(c.TERM_PROGRAM){case"iTerm.app":return m>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(c.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(c.TERM)||"COLORTERM"in c?1:p}function S(e,t={}){let r=he(e,{streamIsTTY:e&&e.isTTY,...t});return pe(r)}Y.exports={supportsColor:S,stdout:S({isTTY:U.isatty(1)}),stderr:S({isTTY:U.isatty(2)})}});var J=y((u,_)=>{C();var me=I("tty"),M=I("util");u.init=ve;u.log=be;u.formatArgs=ge;u.save=Oe;u.load=we;u.useColors=Fe;u.destroy=M.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");u.colors=[6,2,3,4,5,1];try{let e=z();e&&(e.stderr||e).level>=2&&(u.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{}u.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(l,p)=>p.toUpperCase()),s=process.env[t];return/^(yes|on|true|enabled)$/i.test(s)?s=!0:/^(no|off|false|disabled)$/i.test(s)?s=!1:s==="null"?s=null:s=Number(s),e[r]=s,e},{});function Fe(){return"colors"in u.inspectOpts?!!u.inspectOpts.colors:me.isatty(process.stderr.fd)}function ge(e){let{namespace:t,useColors:r}=this;if(r){let s=this.color,l="\x1B[3"+(s<8?s:"8;5;"+s),p=` ${l};1m${t} \x1B[0m`;e[0]=p+e[0].split(`
|
|
2
2
|
`).join(`
|
|
3
3
|
`+p),e.push(l+"m+"+_.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=ye()+t+" "+e[0]}function ye(){return u.inspectOpts.hideDate?"":new Date().toISOString()+" "}function be(...e){return process.stderr.write(M.formatWithOptions(u.inspectOpts,...e)+`
|
|
4
4
|
`)}function Oe(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function we(){return process.env.DEBUG}function ve(e){e.inspectOpts={};let t=Object.keys(u.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=u.inspectOpts[t[r]]}_.exports=N()(u);var{formatters:V}=_.exports;V.o=function(e){return this.inspectOpts.colors=this.useColors,M.inspect(e,this.inspectOpts).split(`
|
|
5
5
|
`).map(t=>t.trim()).join(" ")};V.O=function(e){return this.inspectOpts.colors=this.useColors,M.inspect(e,this.inspectOpts)}});var Ee=y((Se,k)=>{C();typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?k.exports=P():k.exports=J()});export{Ee as a};
|
|
6
|
-
//# sourceMappingURL=chunk-
|
|
6
|
+
//# sourceMappingURL=chunk-M4PNFOA5.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js", "../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/common.js", "../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/browser.js", "../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js", "../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/node.js", "../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/index.js"],
|
|
4
|
+
"sourcesContent": ["/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n", "\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\n\nfunction setup(env) {\n\tcreateDebug.debug = createDebug;\n\tcreateDebug.default = createDebug;\n\tcreateDebug.coerce = coerce;\n\tcreateDebug.disable = disable;\n\tcreateDebug.enable = enable;\n\tcreateDebug.enabled = enabled;\n\tcreateDebug.humanize = require('ms');\n\tcreateDebug.destroy = destroy;\n\n\tObject.keys(env).forEach(key => {\n\t\tcreateDebug[key] = env[key];\n\t});\n\n\t/**\n\t* The currently active debug mode names, and names to skip.\n\t*/\n\n\tcreateDebug.names = [];\n\tcreateDebug.skips = [];\n\n\t/**\n\t* Map of special \"%n\" handling functions, for the debug \"format\" argument.\n\t*\n\t* Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n\t*/\n\tcreateDebug.formatters = {};\n\n\t/**\n\t* Selects a color for a debug namespace\n\t* @param {String} namespace The namespace string for the debug instance to be colored\n\t* @return {Number|String} An ANSI color code for the given namespace\n\t* @api private\n\t*/\n\tfunction selectColor(namespace) {\n\t\tlet hash = 0;\n\n\t\tfor (let i = 0; i < namespace.length; i++) {\n\t\t\thash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n\t\t\thash |= 0; // Convert to 32bit integer\n\t\t}\n\n\t\treturn createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n\t}\n\tcreateDebug.selectColor = selectColor;\n\n\t/**\n\t* Create a debugger with the given `namespace`.\n\t*\n\t* @param {String} namespace\n\t* @return {Function}\n\t* @api public\n\t*/\n\tfunction createDebug(namespace) {\n\t\tlet prevTime;\n\t\tlet enableOverride = null;\n\t\tlet namespacesCache;\n\t\tlet enabledCache;\n\n\t\tfunction debug(...args) {\n\t\t\t// Disabled?\n\t\t\tif (!debug.enabled) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst self = debug;\n\n\t\t\t// Set `diff` timestamp\n\t\t\tconst curr = Number(new Date());\n\t\t\tconst ms = curr - (prevTime || curr);\n\t\t\tself.diff = ms;\n\t\t\tself.prev = prevTime;\n\t\t\tself.curr = curr;\n\t\t\tprevTime = curr;\n\n\t\t\targs[0] = createDebug.coerce(args[0]);\n\n\t\t\tif (typeof args[0] !== 'string') {\n\t\t\t\t// Anything else let's inspect with %O\n\t\t\t\targs.unshift('%O');\n\t\t\t}\n\n\t\t\t// Apply any `formatters` transformations\n\t\t\tlet index = 0;\n\t\t\targs[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {\n\t\t\t\t// If we encounter an escaped % then don't increase the array index\n\t\t\t\tif (match === '%%') {\n\t\t\t\t\treturn '%';\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t\tconst formatter = createDebug.formatters[format];\n\t\t\t\tif (typeof formatter === 'function') {\n\t\t\t\t\tconst val = args[index];\n\t\t\t\t\tmatch = formatter.call(self, val);\n\n\t\t\t\t\t// Now we need to remove `args[index]` since it's inlined in the `format`\n\t\t\t\t\targs.splice(index, 1);\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t\treturn match;\n\t\t\t});\n\n\t\t\t// Apply env-specific formatting (colors, etc.)\n\t\t\tcreateDebug.formatArgs.call(self, args);\n\n\t\t\tconst logFn = self.log || createDebug.log;\n\t\t\tlogFn.apply(self, args);\n\t\t}\n\n\t\tdebug.namespace = namespace;\n\t\tdebug.useColors = createDebug.useColors();\n\t\tdebug.color = createDebug.selectColor(namespace);\n\t\tdebug.extend = extend;\n\t\tdebug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.\n\n\t\tObject.defineProperty(debug, 'enabled', {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: false,\n\t\t\tget: () => {\n\t\t\t\tif (enableOverride !== null) {\n\t\t\t\t\treturn enableOverride;\n\t\t\t\t}\n\t\t\t\tif (namespacesCache !== createDebug.namespaces) {\n\t\t\t\t\tnamespacesCache = createDebug.namespaces;\n\t\t\t\t\tenabledCache = createDebug.enabled(namespace);\n\t\t\t\t}\n\n\t\t\t\treturn enabledCache;\n\t\t\t},\n\t\t\tset: v => {\n\t\t\t\tenableOverride = v;\n\t\t\t}\n\t\t});\n\n\t\t// Env-specific initialization logic for debug instances\n\t\tif (typeof createDebug.init === 'function') {\n\t\t\tcreateDebug.init(debug);\n\t\t}\n\n\t\treturn debug;\n\t}\n\n\tfunction extend(namespace, delimiter) {\n\t\tconst newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n\t\tnewDebug.log = this.log;\n\t\treturn newDebug;\n\t}\n\n\t/**\n\t* Enables a debug mode by namespaces. This can include modes\n\t* separated by a colon and wildcards.\n\t*\n\t* @param {String} namespaces\n\t* @api public\n\t*/\n\tfunction enable(namespaces) {\n\t\tcreateDebug.save(namespaces);\n\t\tcreateDebug.namespaces = namespaces;\n\n\t\tcreateDebug.names = [];\n\t\tcreateDebug.skips = [];\n\n\t\tlet i;\n\t\tconst split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n\t\tconst len = split.length;\n\n\t\tfor (i = 0; i < len; i++) {\n\t\t\tif (!split[i]) {\n\t\t\t\t// ignore empty strings\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tnamespaces = split[i].replace(/\\*/g, '.*?');\n\n\t\t\tif (namespaces[0] === '-') {\n\t\t\t\tcreateDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$'));\n\t\t\t} else {\n\t\t\t\tcreateDebug.names.push(new RegExp('^' + namespaces + '$'));\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t* Disable debug output.\n\t*\n\t* @return {String} namespaces\n\t* @api public\n\t*/\n\tfunction disable() {\n\t\tconst namespaces = [\n\t\t\t...createDebug.names.map(toNamespace),\n\t\t\t...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)\n\t\t].join(',');\n\t\tcreateDebug.enable('');\n\t\treturn namespaces;\n\t}\n\n\t/**\n\t* Returns true if the given mode name is enabled, false otherwise.\n\t*\n\t* @param {String} name\n\t* @return {Boolean}\n\t* @api public\n\t*/\n\tfunction enabled(name) {\n\t\tif (name[name.length - 1] === '*') {\n\t\t\treturn true;\n\t\t}\n\n\t\tlet i;\n\t\tlet len;\n\n\t\tfor (i = 0, len = createDebug.skips.length; i < len; i++) {\n\t\t\tif (createDebug.skips[i].test(name)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 0, len = createDebug.names.length; i < len; i++) {\n\t\t\tif (createDebug.names[i].test(name)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t* Convert regexp to namespace\n\t*\n\t* @param {RegExp} regxep\n\t* @return {String} namespace\n\t* @api private\n\t*/\n\tfunction toNamespace(regexp) {\n\t\treturn regexp.toString()\n\t\t\t.substring(2, regexp.toString().length - 2)\n\t\t\t.replace(/\\.\\*\\?$/, '*');\n\t}\n\n\t/**\n\t* Coerce `val`.\n\t*\n\t* @param {Mixed} val\n\t* @return {Mixed}\n\t* @api private\n\t*/\n\tfunction coerce(val) {\n\t\tif (val instanceof Error) {\n\t\t\treturn val.stack || val.message;\n\t\t}\n\t\treturn val;\n\t}\n\n\t/**\n\t* XXX DO NOT USE. This is a temporary stub function.\n\t* XXX It WILL be removed in the next major release.\n\t*/\n\tfunction destroy() {\n\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t}\n\n\tcreateDebug.enable(createDebug.load());\n\n\treturn createDebug;\n}\n\nmodule.exports = setup;\n", "/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\n\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\nexports.destroy = (() => {\n\tlet warned = false;\n\n\treturn () => {\n\t\tif (!warned) {\n\t\t\twarned = true;\n\t\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t\t}\n\t};\n})();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n\t'#0000CC',\n\t'#0000FF',\n\t'#0033CC',\n\t'#0033FF',\n\t'#0066CC',\n\t'#0066FF',\n\t'#0099CC',\n\t'#0099FF',\n\t'#00CC00',\n\t'#00CC33',\n\t'#00CC66',\n\t'#00CC99',\n\t'#00CCCC',\n\t'#00CCFF',\n\t'#3300CC',\n\t'#3300FF',\n\t'#3333CC',\n\t'#3333FF',\n\t'#3366CC',\n\t'#3366FF',\n\t'#3399CC',\n\t'#3399FF',\n\t'#33CC00',\n\t'#33CC33',\n\t'#33CC66',\n\t'#33CC99',\n\t'#33CCCC',\n\t'#33CCFF',\n\t'#6600CC',\n\t'#6600FF',\n\t'#6633CC',\n\t'#6633FF',\n\t'#66CC00',\n\t'#66CC33',\n\t'#9900CC',\n\t'#9900FF',\n\t'#9933CC',\n\t'#9933FF',\n\t'#99CC00',\n\t'#99CC33',\n\t'#CC0000',\n\t'#CC0033',\n\t'#CC0066',\n\t'#CC0099',\n\t'#CC00CC',\n\t'#CC00FF',\n\t'#CC3300',\n\t'#CC3333',\n\t'#CC3366',\n\t'#CC3399',\n\t'#CC33CC',\n\t'#CC33FF',\n\t'#CC6600',\n\t'#CC6633',\n\t'#CC9900',\n\t'#CC9933',\n\t'#CCCC00',\n\t'#CCCC33',\n\t'#FF0000',\n\t'#FF0033',\n\t'#FF0066',\n\t'#FF0099',\n\t'#FF00CC',\n\t'#FF00FF',\n\t'#FF3300',\n\t'#FF3333',\n\t'#FF3366',\n\t'#FF3399',\n\t'#FF33CC',\n\t'#FF33FF',\n\t'#FF6600',\n\t'#FF6633',\n\t'#FF9900',\n\t'#FF9933',\n\t'#FFCC00',\n\t'#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\n// eslint-disable-next-line complexity\nfunction useColors() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\tif (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n\t\treturn true;\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false;\n\t}\n\n\tlet m;\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\treturn (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/)) && parseInt(m[1], 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\targs[0] = (this.useColors ? '%c' : '') +\n\t\tthis.namespace +\n\t\t(this.useColors ? ' %c' : ' ') +\n\t\targs[0] +\n\t\t(this.useColors ? '%c ' : ' ') +\n\t\t'+' + module.exports.humanize(this.diff);\n\n\tif (!this.useColors) {\n\t\treturn;\n\t}\n\n\tconst c = 'color: ' + this.color;\n\targs.splice(1, 0, c, 'color: inherit');\n\n\t// The final \"%c\" is somewhat tricky, because there could be other\n\t// arguments passed either before or after the %c, so we need to\n\t// figure out the correct index to insert the CSS into\n\tlet index = 0;\n\tlet lastC = 0;\n\targs[0].replace(/%[a-zA-Z%]/g, match => {\n\t\tif (match === '%%') {\n\t\t\treturn;\n\t\t}\n\t\tindex++;\n\t\tif (match === '%c') {\n\t\t\t// We only are interested in the *last* %c\n\t\t\t// (the user may have provided their own)\n\t\t\tlastC = index;\n\t\t}\n\t});\n\n\targs.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.debug()` when available.\n * No-op when `console.debug` is not a \"function\".\n * If `console.debug` is not available, falls back\n * to `console.log`.\n *\n * @api public\n */\nexports.log = console.debug || console.log || (() => {});\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\ttry {\n\t\tif (namespaces) {\n\t\t\texports.storage.setItem('debug', namespaces);\n\t\t} else {\n\t\t\texports.storage.removeItem('debug');\n\t\t}\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\nfunction load() {\n\tlet r;\n\ttry {\n\t\tr = exports.storage.getItem('debug');\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n\n\t// If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\tif (!r && typeof process !== 'undefined' && 'env' in process) {\n\t\tr = process.env.DEBUG;\n\t}\n\n\treturn r;\n}\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n\ttry {\n\t\t// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n\t\t// The Browser also has localStorage in the global context.\n\t\treturn localStorage;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n\ttry {\n\t\treturn JSON.stringify(v);\n\t} catch (error) {\n\t\treturn '[UnexpectedJSONParseError]: ' + error.message;\n\t}\n};\n", "'use strict';\nconst os = require('os');\nconst tty = require('tty');\nconst hasFlag = require('has-flag');\n\nconst {env} = process;\n\nlet flagForceColor;\nif (hasFlag('no-color') ||\n\thasFlag('no-colors') ||\n\thasFlag('color=false') ||\n\thasFlag('color=never')) {\n\tflagForceColor = 0;\n} else if (hasFlag('color') ||\n\thasFlag('colors') ||\n\thasFlag('color=true') ||\n\thasFlag('color=always')) {\n\tflagForceColor = 1;\n}\n\nfunction envForceColor() {\n\tif ('FORCE_COLOR' in env) {\n\t\tif (env.FORCE_COLOR === 'true') {\n\t\t\treturn 1;\n\t\t}\n\n\t\tif (env.FORCE_COLOR === 'false') {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);\n\t}\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3\n\t};\n}\n\nfunction supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {\n\tconst noFlagForceColor = envForceColor();\n\tif (noFlagForceColor !== undefined) {\n\t\tflagForceColor = noFlagForceColor;\n\t}\n\n\tconst forceColor = sniffFlags ? flagForceColor : noFlagForceColor;\n\n\tif (forceColor === 0) {\n\t\treturn 0;\n\t}\n\n\tif (sniffFlags) {\n\t\tif (hasFlag('color=16m') ||\n\t\t\thasFlag('color=full') ||\n\t\t\thasFlag('color=truecolor')) {\n\t\t\treturn 3;\n\t\t}\n\n\t\tif (hasFlag('color=256')) {\n\t\t\treturn 2;\n\t\t}\n\t}\n\n\tif (haveStream && !streamIsTTY && forceColor === undefined) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor || 0;\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\tif (process.platform === 'win32') {\n\t\t// Windows 10 build 10586 is the first Windows release that supports 256 colors.\n\t\t// Windows 10 build 14931 is the first release that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(osRelease[0]) >= 10 &&\n\t\t\tNumber(osRelease[2]) >= 10586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app':\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\tcase 'Apple_Terminal':\n\t\t\t\treturn 2;\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\treturn min;\n}\n\nfunction getSupportLevel(stream, options = {}) {\n\tconst level = supportsColor(stream, {\n\t\tstreamIsTTY: stream && stream.isTTY,\n\t\t...options\n\t});\n\n\treturn translateLevel(level);\n}\n\nmodule.exports = {\n\tsupportsColor: getSupportLevel,\n\tstdout: getSupportLevel({isTTY: tty.isatty(1)}),\n\tstderr: getSupportLevel({isTTY: tty.isatty(2)})\n};\n", "/**\n * Module dependencies.\n */\n\nconst tty = require('tty');\nconst util = require('util');\n\n/**\n * This is the Node.js implementation of `debug()`.\n */\n\nexports.init = init;\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.destroy = util.deprecate(\n\t() => {},\n\t'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'\n);\n\n/**\n * Colors.\n */\n\nexports.colors = [6, 2, 3, 4, 5, 1];\n\ntry {\n\t// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)\n\t// eslint-disable-next-line import/no-extraneous-dependencies\n\tconst supportsColor = require('supports-color');\n\n\tif (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {\n\t\texports.colors = [\n\t\t\t20,\n\t\t\t21,\n\t\t\t26,\n\t\t\t27,\n\t\t\t32,\n\t\t\t33,\n\t\t\t38,\n\t\t\t39,\n\t\t\t40,\n\t\t\t41,\n\t\t\t42,\n\t\t\t43,\n\t\t\t44,\n\t\t\t45,\n\t\t\t56,\n\t\t\t57,\n\t\t\t62,\n\t\t\t63,\n\t\t\t68,\n\t\t\t69,\n\t\t\t74,\n\t\t\t75,\n\t\t\t76,\n\t\t\t77,\n\t\t\t78,\n\t\t\t79,\n\t\t\t80,\n\t\t\t81,\n\t\t\t92,\n\t\t\t93,\n\t\t\t98,\n\t\t\t99,\n\t\t\t112,\n\t\t\t113,\n\t\t\t128,\n\t\t\t129,\n\t\t\t134,\n\t\t\t135,\n\t\t\t148,\n\t\t\t149,\n\t\t\t160,\n\t\t\t161,\n\t\t\t162,\n\t\t\t163,\n\t\t\t164,\n\t\t\t165,\n\t\t\t166,\n\t\t\t167,\n\t\t\t168,\n\t\t\t169,\n\t\t\t170,\n\t\t\t171,\n\t\t\t172,\n\t\t\t173,\n\t\t\t178,\n\t\t\t179,\n\t\t\t184,\n\t\t\t185,\n\t\t\t196,\n\t\t\t197,\n\t\t\t198,\n\t\t\t199,\n\t\t\t200,\n\t\t\t201,\n\t\t\t202,\n\t\t\t203,\n\t\t\t204,\n\t\t\t205,\n\t\t\t206,\n\t\t\t207,\n\t\t\t208,\n\t\t\t209,\n\t\t\t214,\n\t\t\t215,\n\t\t\t220,\n\t\t\t221\n\t\t];\n\t}\n} catch (error) {\n\t// Swallow - we only care if `supports-color` is available; it doesn't have to be.\n}\n\n/**\n * Build up the default `inspectOpts` object from the environment variables.\n *\n * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js\n */\n\nexports.inspectOpts = Object.keys(process.env).filter(key => {\n\treturn /^debug_/i.test(key);\n}).reduce((obj, key) => {\n\t// Camel-case\n\tconst prop = key\n\t\t.substring(6)\n\t\t.toLowerCase()\n\t\t.replace(/_([a-z])/g, (_, k) => {\n\t\t\treturn k.toUpperCase();\n\t\t});\n\n\t// Coerce string value into JS value\n\tlet val = process.env[key];\n\tif (/^(yes|on|true|enabled)$/i.test(val)) {\n\t\tval = true;\n\t} else if (/^(no|off|false|disabled)$/i.test(val)) {\n\t\tval = false;\n\t} else if (val === 'null') {\n\t\tval = null;\n\t} else {\n\t\tval = Number(val);\n\t}\n\n\tobj[prop] = val;\n\treturn obj;\n}, {});\n\n/**\n * Is stdout a TTY? Colored output is enabled when `true`.\n */\n\nfunction useColors() {\n\treturn 'colors' in exports.inspectOpts ?\n\t\tBoolean(exports.inspectOpts.colors) :\n\t\ttty.isatty(process.stderr.fd);\n}\n\n/**\n * Adds ANSI color escape codes if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\tconst {namespace: name, useColors} = this;\n\n\tif (useColors) {\n\t\tconst c = this.color;\n\t\tconst colorCode = '\\u001B[3' + (c < 8 ? c : '8;5;' + c);\n\t\tconst prefix = ` ${colorCode};1m${name} \\u001B[0m`;\n\n\t\targs[0] = prefix + args[0].split('\\n').join('\\n' + prefix);\n\t\targs.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\\u001B[0m');\n\t} else {\n\t\targs[0] = getDate() + name + ' ' + args[0];\n\t}\n}\n\nfunction getDate() {\n\tif (exports.inspectOpts.hideDate) {\n\t\treturn '';\n\t}\n\treturn new Date().toISOString() + ' ';\n}\n\n/**\n * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.\n */\n\nfunction log(...args) {\n\treturn process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + '\\n');\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\tif (namespaces) {\n\t\tprocess.env.DEBUG = namespaces;\n\t} else {\n\t\t// If you set a process.env field to null or undefined, it gets cast to the\n\t\t// string 'null' or 'undefined'. Just delete instead.\n\t\tdelete process.env.DEBUG;\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n\treturn process.env.DEBUG;\n}\n\n/**\n * Init logic for `debug` instances.\n *\n * Create a new `inspectOpts` object in case `useColors` is set\n * differently for a particular `debug` instance.\n */\n\nfunction init(debug) {\n\tdebug.inspectOpts = {};\n\n\tconst keys = Object.keys(exports.inspectOpts);\n\tfor (let i = 0; i < keys.length; i++) {\n\t\tdebug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %o to `util.inspect()`, all on a single line.\n */\n\nformatters.o = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts)\n\t\t.split('\\n')\n\t\t.map(str => str.trim())\n\t\t.join(' ');\n};\n\n/**\n * Map %O to `util.inspect()`, allowing multiple lines if needed.\n */\n\nformatters.O = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts);\n};\n", "/**\n * Detect Electron renderer / nwjs process, which is node, but we should\n * treat as a browser.\n */\n\nif (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {\n\tmodule.exports = require('./browser.js');\n} else {\n\tmodule.exports = require('./node.js');\n}\n"],
|
|
5
|
+
"mappings": "8FAAA,IAAAA,EAAAC,EAAA,CAAAC,GAAAC,IAAA,CAAAC,IAIA,IAAIC,EAAI,IACJC,EAAID,EAAI,GACRE,EAAID,EAAI,GACRE,EAAID,EAAI,GACRE,GAAID,EAAI,EACRE,GAAIF,EAAI,OAgBZL,EAAO,QAAU,SAASQ,EAAKC,EAAS,CACtCA,EAAUA,GAAW,CAAC,EACtB,IAAIC,EAAO,OAAOF,EAClB,GAAIE,IAAS,UAAYF,EAAI,OAAS,EACpC,OAAOG,GAAMH,CAAG,EACX,GAAIE,IAAS,UAAY,SAASF,CAAG,EAC1C,OAAOC,EAAQ,KAAOG,GAAQJ,CAAG,EAAIK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AO,KAAK1B,EAAQ,WAAW,EAC5C,QAAS2B,EAAI,EAAGA,EAAID,EAAK,OAAQC,IAChCF,EAAM,YAAYC,EAAKC,CAAC,CAAC,EAAI3B,EAAQ,YAAY0B,EAAKC,CAAC,CAAC,CAE1D,CAEA1B,EAAO,QAAU,IAAoBD,CAAO,EAE5C,GAAM,CAAC,WAAA4B,CAAU,EAAI3B,EAAO,QAM5B2B,EAAW,EAAI,SAAUC,EAAG,CAC3B,YAAK,YAAY,OAAS,KAAK,UACxBzB,EAAK,QAAQyB,EAAG,KAAK,WAAW,EACrC,MAAM;AAAA,CAAI,EACV,IAAIC,GAAOA,EAAI,KAAK,CAAC,EACrB,KAAK,GAAG,CACX,EAMAF,EAAW,EAAI,SAAUC,EAAG,CAC3B,YAAK,YAAY,OAAS,KAAK,UACxBzB,EAAK,QAAQyB,EAAG,KAAK,WAAW,CACxC,ICtQA,IAAAE,GAAAC,EAAA,CAAAC,GAAAC,IAAA,CAAAC,IAKI,OAAO,QAAY,KAAe,QAAQ,OAAS,YAAc,QAAQ,UAAY,IAAQ,QAAQ,OACxGD,EAAO,QAAU,IAEjBA,EAAO,QAAU",
|
|
6
|
+
"names": ["require_ms", "__commonJSMin", "exports", "module", "init_cjs", "s", "m", "h", "d", "w", "y", "val", "options", "type", "parse", "fmtLong", "fmtShort", "str", "match", "n", "ms", "msAbs", "plural", "name", "isPlural", "require_common", "__commonJSMin", "exports", "module", "init_cjs", "setup", "env", "createDebug", "coerce", "disable", "enable", "enabled", "destroy", "key", "selectColor", "namespace", "hash", "prevTime", "enableOverride", "namespacesCache", "enabledCache", "debug", "args", "self", "curr", "ms", "index", "match", "format", "formatter", "val", "extend", "v", "delimiter", "newDebug", "namespaces", "i", "split", "len", "toNamespace", "name", "regexp", "require_browser", "__commonJSMin", "exports", "module", "init_cjs", "formatArgs", "save", "load", "useColors", "localstorage", "warned", "m", "args", "c", "index", "lastC", "match", "namespaces", "r", "formatters", "v", "error", "require_supports_color", "__commonJSMin", "exports", "module", "init_cjs", "os", "tty", "hasFlag", "env", "flagForceColor", "envForceColor", "translateLevel", "level", "supportsColor", "haveStream", "streamIsTTY", "sniffFlags", "noFlagForceColor", "forceColor", "min", "osRelease", "sign", "version", "getSupportLevel", "stream", "options", "require_node", "__commonJSMin", "exports", "module", "init_cjs", "tty", "util", "init", "log", "formatArgs", "save", "load", "useColors", "supportsColor", "key", "obj", "prop", "_", "k", "val", "args", "name", "c", "colorCode", "prefix", "getDate", "namespaces", "debug", "keys", "i", "formatters", "v", "str", "require_src", "__commonJSMin", "exports", "module", "init_cjs"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{$ as ft,B as k,F as oe,G as N,H as U,L as Ie,M as at,R as lt,U as ut,W as ct,X as me,Y as Q,Z as Ne,_ as Ee,a as nt,b as Se,f as it,g as ot,h as Be,o as st,z as V}from"./chunk-KGOVR5SK.js";import{a as dt}from"./chunk-F3EZ4KS3.js";import{a as rt,c as he,e as ge,g as h}from"./chunk-5WC5D4WL.js";var Fe=he((Rr,pt)=>{h();var se=1e3,ae=se*60,le=ae*60,Z=le*24,qt=Z*7,Kt=Z*365.25;pt.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Wt(t);if(r==="number"&&isFinite(t))return e.long?Jt(t):zt(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Wt(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),o=(e[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return r*Kt;case"weeks":case"week":case"w":return r*qt;case"days":case"day":case"d":return r*Z;case"hours":case"hour":case"hrs":case"hr":case"h":return r*le;case"minutes":case"minute":case"mins":case"min":case"m":return r*ae;case"seconds":case"second":case"secs":case"sec":case"s":return r*se;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function zt(t){var e=Math.abs(t);return e>=Z?Math.round(t/Z)+"d":e>=le?Math.round(t/le)+"h":e>=ae?Math.round(t/ae)+"m":e>=se?Math.round(t/se)+"s":t+"ms"}function Jt(t){var e=Math.abs(t);return e>=Z?Te(t,e,Z,"day"):e>=le?Te(t,e,le,"hour"):e>=ae?Te(t,e,ae,"minute"):e>=se?Te(t,e,se,"second"):t+" ms"}function Te(t,e,r,o){var n=e>=r*1.5;return Math.round(t/r)+" "+o+(n?"s":"")}});var ht=he((Pe,je)=>{h();(function(t,e){typeof Pe=="object"&&typeof je<"u"?je.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(Pe,function(){"use strict";var t=1e3,e=6e4,r=36e5,o="millisecond",n="second",c="minute",b="hour",p="day",A="week",w="month",L="quarter",O="year",x="date",M="Invalid Date",Le=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,K={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(u){var a=["th","st","nd","rd"],i=u%100;return"["+u+(a[(i-20)%10]||a[i]||a[0])+"]"}},ne=function(u,a,i){var l=String(u);return!l||l.length>=a?u:""+Array(a+1-l.length).join(i)+u},Ue={s:ne,z:function(u){var a=-u.utcOffset(),i=Math.abs(a),l=Math.floor(i/60),s=i%60;return(a<=0?"+":"-")+ne(l,2,"0")+":"+ne(s,2,"0")},m:function u(a,i){if(a.date()<i.date())return-u(i,a);var l=12*(i.year()-a.year())+(i.month()-a.month()),s=a.clone().add(l,w),f=i-s<0,d=a.clone().add(l+(f?-1:1),w);return+(-(l+(i-s)/(f?s-d:d-s))||0)},a:function(u){return u<0?Math.ceil(u)||0:Math.floor(u)},p:function(u){return{M:w,y:O,w:A,d:p,D:x,h:b,m:c,s:n,ms:o,Q:L}[u]||String(u||"").toLowerCase().replace(/s$/,"")},u:function(u){return u===void 0}},fe="en",W={};W[fe]=K;var et="$isDayjsObject",_e=function(u){return u instanceof Oe||!(!u||!u[et])},Ae=function u(a,i,l){var s;if(!a)return fe;if(typeof a=="string"){var f=a.toLowerCase();W[f]&&(s=f),i&&(W[f]=i,s=f);var d=a.split("-");if(!s&&d.length>1)return u(d[0])}else{var D=a.name;W[D]=a,s=D}return!l&&s&&(fe=s),s||!l&&fe},S=function(u,a){if(_e(u))return u.clone();var i=typeof a=="object"?a:{};return i.date=u,i.args=arguments,new Oe(i)},y=Ue;y.l=Ae,y.i=_e,y.w=function(u,a){return S(u,{locale:a.$L,utc:a.$u,x:a.$x,$offset:a.$offset})};var Oe=function(){function u(i){this.$L=Ae(i.locale,null,!0),this.parse(i),this.$x=this.$x||i.x||{},this[et]=!0}var a=u.prototype;return a.parse=function(i){this.$d=function(l){var s=l.date,f=l.utc;if(s===null)return new Date(NaN);if(y.u(s))return new Date;if(s instanceof Date)return new Date(s);if(typeof s=="string"&&!/Z$/i.test(s)){var d=s.match(Le);if(d){var D=d[2]-1||0,R=(d[7]||"0").substring(0,3);return f?new Date(Date.UTC(d[1],D,d[3]||1,d[4]||0,d[5]||0,d[6]||0,R)):new Date(d[1],D,d[3]||1,d[4]||0,d[5]||0,d[6]||0,R)}}return new Date(s)}(i),this.init()},a.init=function(){var i=this.$d;this.$y=i.getFullYear(),this.$M=i.getMonth(),this.$D=i.getDate(),this.$W=i.getDay(),this.$H=i.getHours(),this.$m=i.getMinutes(),this.$s=i.getSeconds(),this.$ms=i.getMilliseconds()},a.$utils=function(){return y},a.isValid=function(){return this.$d.toString()!==M},a.isSame=function(i,l){var s=S(i);return this.startOf(l)<=s&&s<=this.endOf(l)},a.isAfter=function(i,l){return S(i)<this.startOf(l)},a.isBefore=function(i,l){return this.endOf(l)<S(i)},a.$g=function(i,l,s){return y.u(i)?this[l]:this.set(s,i)},a.unix=function(){return Math.floor(this.valueOf()/1e3)},a.valueOf=function(){return this.$d.getTime()},a.startOf=function(i,l){var s=this,f=!!y.u(l)||l,d=y.p(i),D=function(J,$){var G=y.w(s.$u?Date.UTC(s.$y,$,J):new Date(s.$y,$,J),s);return f?G:G.endOf(p)},R=function(J,$){return y.w(s.toDate()[J].apply(s.toDate("s"),(f?[0,0,0,0]:[23,59,59,999]).slice($)),s)},B=this.$W,T=this.$M,C=this.$D,ie="set"+(this.$u?"UTC":"");switch(d){case O:return f?D(1,0):D(31,11);case w:return f?D(1,T):D(0,T+1);case A:var z=this.$locale().weekStart||0,de=(B<z?B+7:B)-z;return D(f?C-de:C+(6-de),T);case p:case x:return R(ie+"Hours",0);case b:return R(ie+"Minutes",1);case c:return R(ie+"Seconds",2);case n:return R(ie+"Milliseconds",3);default:return this.clone()}},a.endOf=function(i){return this.startOf(i,!1)},a.$set=function(i,l){var s,f=y.p(i),d="set"+(this.$u?"UTC":""),D=(s={},s[p]=d+"Date",s[x]=d+"Date",s[w]=d+"Month",s[O]=d+"FullYear",s[b]=d+"Hours",s[c]=d+"Minutes",s[n]=d+"Seconds",s[o]=d+"Milliseconds",s)[f],R=f===p?this.$D+(l-this.$W):l;if(f===w||f===O){var B=this.clone().set(x,1);B.$d[D](R),B.init(),this.$d=B.set(x,Math.min(this.$D,B.daysInMonth())).$d}else D&&this.$d[D](R);return this.init(),this},a.set=function(i,l){return this.clone().$set(i,l)},a.get=function(i){return this[y.p(i)]()},a.add=function(i,l){var s,f=this;i=Number(i);var d=y.p(l),D=function(T){var C=S(f);return y.w(C.date(C.date()+Math.round(T*i)),f)};if(d===w)return this.set(w,this.$M+i);if(d===O)return this.set(O,this.$y+i);if(d===p)return D(1);if(d===A)return D(7);var R=(s={},s[c]=e,s[b]=r,s[n]=t,s)[d]||1,B=this.$d.getTime()+i*R;return y.w(B,this)},a.subtract=function(i,l){return this.add(-1*i,l)},a.format=function(i){var l=this,s=this.$locale();if(!this.isValid())return s.invalidDate||M;var f=i||"YYYY-MM-DDTHH:mm:ssZ",d=y.z(this),D=this.$H,R=this.$m,B=this.$M,T=s.weekdays,C=s.months,ie=s.meridiem,z=function($,G,pe,ve){return $&&($[G]||$(l,f))||pe[G].slice(0,ve)},de=function($){return y.s(D%12||12,$,"0")},J=ie||function($,G,pe){var ve=$<12?"AM":"PM";return pe?ve.toLowerCase():ve};return f.replace(v,function($,G){return G||function(pe){switch(pe){case"YY":return String(l.$y).slice(-2);case"YYYY":return y.s(l.$y,4,"0");case"M":return B+1;case"MM":return y.s(B+1,2,"0");case"MMM":return z(s.monthsShort,B,C,3);case"MMMM":return z(C,B);case"D":return l.$D;case"DD":return y.s(l.$D,2,"0");case"d":return String(l.$W);case"dd":return z(s.weekdaysMin,l.$W,T,2);case"ddd":return z(s.weekdaysShort,l.$W,T,3);case"dddd":return T[l.$W];case"H":return String(D);case"HH":return y.s(D,2,"0");case"h":return de(1);case"hh":return de(2);case"a":return J(D,R,!0);case"A":return J(D,R,!1);case"m":return String(R);case"mm":return y.s(R,2,"0");case"s":return String(l.$s);case"ss":return y.s(l.$s,2,"0");case"SSS":return y.s(l.$ms,3,"0");case"Z":return d}return null}($)||d.replace(":","")})},a.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},a.diff=function(i,l,s){var f,d=this,D=y.p(l),R=S(i),B=(R.utcOffset()-this.utcOffset())*e,T=this-R,C=function(){return y.m(d,R)};switch(D){case O:f=C()/12;break;case w:f=C();break;case L:f=C()/3;break;case A:f=(T-B)/6048e5;break;case p:f=(T-B)/864e5;break;case b:f=T/r;break;case c:f=T/e;break;case n:f=T/t;break;default:f=T}return s?f:y.a(f)},a.daysInMonth=function(){return this.endOf(w).$D},a.$locale=function(){return W[this.$L]},a.locale=function(i,l){if(!i)return this.$L;var s=this.clone(),f=Ae(i,l,!0);return f&&(s.$L=f),s},a.clone=function(){return y.w(this.$d,this)},a.toDate=function(){return new Date(this.valueOf())},a.toJSON=function(){return this.isValid()?this.toISOString():null},a.toISOString=function(){return this.$d.toISOString()},a.toString=function(){return this.$d.toUTCString()},u}(),tt=Oe.prototype;return S.prototype=tt,[["$ms",o],["$s",n],["$m",c],["$H",b],["$W",p],["$M",w],["$y",O],["$D",x]].forEach(function(u){tt[u[1]]=function(a){return this.$g(a,u[0],u[1])}}),S.extend=function(u,a){return u.$i||(u(a,Oe,S),u.$i=!0),S},S.locale=Ae,S.isDayjs=_e,S.unix=function(u){return S(1e3*u)},S.en=W[fe],S.Ls=W,S.p={},S})});var Lt=he((Fr,Rt)=>{"use strict";h();var tr=rt("os"),bt=rt("tty"),_=dt(),{env:E}=process,H;_("no-color")||_("no-colors")||_("color=false")||_("color=never")?H=0:(_("color")||_("colors")||_("color=true")||_("color=always"))&&(H=1);"FORCE_COLOR"in E&&(E.FORCE_COLOR==="true"?H=1:E.FORCE_COLOR==="false"?H=0:H=E.FORCE_COLOR.length===0?1:Math.min(parseInt(E.FORCE_COLOR,10),3));function Ve(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function He(t,e){if(H===0)return 0;if(_("color=16m")||_("color=full")||_("color=truecolor"))return 3;if(_("color=256"))return 2;if(t&&!e&&H===void 0)return 0;let r=H||0;if(E.TERM==="dumb")return r;if(process.platform==="win32"){let o=tr.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in E)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(o=>o in E)||E.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in E)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(E.TEAMCITY_VERSION)?1:0;if(E.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in E){let o=parseInt((E.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(E.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(E.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(E.TERM)||"COLORTERM"in E?1:r}function rr(t){let e=He(t,t&&t.isTTY);return Ve(e)}Rt.exports={supportsColor:rr,stdout:Ve(He(!0,bt.isatty(1))),stderr:Ve(He(!0,bt.isatty(2)))}});var vt=he((jr,Ot)=>{"use strict";h();var nr=Lt(),ce=dt();function At(t){if(/^\d{3,4}$/.test(t)){let r=/(\d{1,2})(\d{2})/.exec(t);return{major:0,minor:parseInt(r[1],10),patch:parseInt(r[2],10)}}let e=(t||"").split(".").map(r=>parseInt(r,10));return{major:e[0],minor:e[1],patch:e[2]}}function Ye(t){let{env:e}=process;if("FORCE_HYPERLINK"in e)return!(e.FORCE_HYPERLINK.length>0&&parseInt(e.FORCE_HYPERLINK,10)===0);if(ce("no-hyperlink")||ce("no-hyperlinks")||ce("hyperlink=false")||ce("hyperlink=never"))return!1;if(ce("hyperlink=true")||ce("hyperlink=always")||"NETLIFY"in e)return!0;if(!nr.supportsColor(t)||t&&!t.isTTY||process.platform==="win32"||"CI"in e||"TEAMCITY_VERSION"in e)return!1;if("TERM_PROGRAM"in e){let r=At(e.TERM_PROGRAM_VERSION);switch(e.TERM_PROGRAM){case"iTerm.app":return r.major===3?r.minor>=1:r.major>3;case"WezTerm":return r.major>=20200620;case"vscode":return r.major>1||r.major===1&&r.minor>=72}}if("VTE_VERSION"in e){if(e.VTE_VERSION==="0.50.0")return!1;let r=At(e.VTE_VERSION);return r.major>0||r.minor>=50}return!1}Ot.exports={supportsHyperlink:Ye,stdout:Ye(process.stdout),stderr:Ye(process.stderr)}});var Et=he((Jr,Bt)=>{h();var Ke=Symbol("arg flag"),I=class t extends Error{constructor(e,r){super(e),this.name="ArgError",this.code=r,Object.setPrototypeOf(this,t.prototype)}};function be(t,{argv:e=process.argv.slice(2),permissive:r=!1,stopAtPositional:o=!1}={}){if(!t)throw new I("argument specification object is required","ARG_CONFIG_NO_SPEC");let n={_:[]},c={},b={};for(let p of Object.keys(t)){if(!p)throw new I("argument key cannot be an empty string","ARG_CONFIG_EMPTY_KEY");if(p[0]!=="-")throw new I(`argument key must start with '-' but found: '${p}'`,"ARG_CONFIG_NONOPT_KEY");if(p.length===1)throw new I(`argument key must have a name; singular '-' keys are not allowed: ${p}`,"ARG_CONFIG_NONAME_KEY");if(typeof t[p]=="string"){c[p]=t[p];continue}let A=t[p],w=!1;if(Array.isArray(A)&&A.length===1&&typeof A[0]=="function"){let[L]=A;A=(O,x,M=[])=>(M.push(L(O,x,M[M.length-1])),M),w=L===Boolean||L[Ke]===!0}else if(typeof A=="function")w=A===Boolean||A[Ke]===!0;else throw new I(`type missing or not a function or valid array type: ${p}`,"ARG_CONFIG_VAD_TYPE");if(p[1]!=="-"&&p.length>2)throw new I(`short argument keys (with a single hyphen) must have only one character: ${p}`,"ARG_CONFIG_SHORTOPT_TOOLONG");b[p]=[A,w]}for(let p=0,A=e.length;p<A;p++){let w=e[p];if(o&&n._.length>0){n._=n._.concat(e.slice(p));break}if(w==="--"){n._=n._.concat(e.slice(p+1));break}if(w.length>1&&w[0]==="-"){let L=w[1]==="-"||w.length===2?[w]:w.slice(1).split("").map(O=>`-${O}`);for(let O=0;O<L.length;O++){let x=L[O],[M,Le]=x[1]==="-"?x.split(/=(.*)/,2):[x,void 0],v=M;for(;v in c;)v=c[v];if(!(v in b))if(r){n._.push(x);continue}else throw new I(`unknown or unexpected option: ${M}`,"ARG_UNKNOWN_OPTION");let[K,ne]=b[v];if(!ne&&O+1<L.length)throw new I(`option requires argument (but was followed by another short argument): ${M}`,"ARG_MISSING_REQUIRED_SHORTARG");if(ne)n[v]=K(!0,v,n[v]);else if(Le===void 0){if(e.length<p+2||e[p+1].length>1&&e[p+1][0]==="-"&&!(e[p+1].match(/^-?\d*(\.(?=\d))?\d*$/)&&(K===Number||typeof BigInt<"u"&&K===BigInt))){let Ue=M===v?"":` (alias for ${v})`;throw new I(`option requires argument: ${M}${Ue}`,"ARG_MISSING_REQUIRED_LONGARG")}n[v]=K(e[p+1],v,n[v]),++p}else n[v]=K(Le,v,n[v])}}else n._.push(w)}return n}be.flag=t=>(t[Ke]=!0,t);be.COUNT=be.flag((t,e,r)=>(r||0)+1);be.ArgError=I;Bt.exports=be});h();h();h();import P from"node:process";function ye(){return P.platform!=="win32"?P.env.TERM!=="linux":!!P.env.WT_SESSION||!!P.env.TERMINUS_SUBLIME||P.env.ConEmuTask==="{cmd::Cmder}"||P.env.TERM_PROGRAM==="Terminus-Sublime"||P.env.TERM_PROGRAM==="vscode"||P.env.TERM==="xterm-256color"||P.env.TERM==="alacritty"||P.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var gt={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},mt={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},Qt={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},Ge={...gt,...mt},Zt={...gt,...Qt},Xt=ye(),er=Xt?Ge:Zt,yt=er,Er=Object.entries(mt);var we={...N.testLike?Ge:yt};if(ye()&&U.windowsOrWsl)for(let t of["tick","cross"])we[t]+=" ";h();h();var m="\x1B[",De="\x1B]",ue="\x07",ke=";",wt=process.env.TERM_PROGRAM==="Apple_Terminal",g={};g.cursorTo=(t,e)=>{if(typeof t!="number")throw new TypeError("The `x` argument is required");return typeof e!="number"?m+(t+1)+"G":m+(e+1)+";"+(t+1)+"H"};g.cursorMove=(t,e)=>{if(typeof t!="number")throw new TypeError("The `x` argument is required");let r="";return t<0?r+=m+-t+"D":t>0&&(r+=m+t+"C"),e<0?r+=m+-e+"A":e>0&&(r+=m+e+"B"),r};g.cursorUp=(t=1)=>m+t+"A";g.cursorDown=(t=1)=>m+t+"B";g.cursorForward=(t=1)=>m+t+"C";g.cursorBackward=(t=1)=>m+t+"D";g.cursorLeft=m+"G";g.cursorSavePosition=wt?"\x1B7":m+"s";g.cursorRestorePosition=wt?"\x1B8":m+"u";g.cursorGetPosition=m+"6n";g.cursorNextLine=m+"E";g.cursorPrevLine=m+"F";g.cursorHide=m+"?25l";g.cursorShow=m+"?25h";g.eraseLines=t=>{let e="";for(let r=0;r<t;r++)e+=g.eraseLine+(r<t-1?g.cursorUp():"");return t&&(e+=g.cursorLeft),e};g.eraseEndLine=m+"K";g.eraseStartLine=m+"1K";g.eraseLine=m+"2K";g.eraseDown=m+"J";g.eraseUp=m+"1J";g.eraseScreen=m+"2J";g.scrollUp=m+"S";g.scrollDown=m+"T";g.clearScreen="\x1Bc";g.clearTerminal=process.platform==="win32"?`${g.eraseScreen}${m}0f`:`${g.eraseScreen}${m}3J${m}H`;g.beep=ue;g.link=(t,e)=>[De,"8",ke,ke,e,ue,t,De,"8",ke,ke,ue].join("");g.image=(t,e={})=>{let r=`${De}1337;File=inline=1`;return e.width&&(r+=`;width=${e.width}`),e.height&&(r+=`;height=${e.height}`),e.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0"),r+":"+t.toString("base64")+ue};g.iTerm={setCwd:(t=process.cwd())=>`${De}50;CurrentDir=${t}${ue}`,annotation:(t,e={})=>{let r=`${De}1337;`,o=typeof e.x<"u",n=typeof e.y<"u";if((o||n)&&!(o&&n&&typeof e.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return t=t.replace(/\|/g,""),r+=e.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",e.length>0?r+=(o?[t,e.length,e.x,e.y]:[e.length,t]).join("|"):r+=t,r+ue}};var Dt=g;var $e=ge(vt(),1);function Y(t,e,{target:r="stdout",...o}={}){return $e.default[r]?Dt.link(t,e):o.fallback===!1?t:typeof o.fallback=="function"?o.fallback(t,e):`${t} (\u200B${e}\u200B)`}Y.isSupported=$e.default.stdout;Y.stderr=(t,e,r={})=>Y(t,e,{target:"stderr",...r});Y.stderr.isSupported=$e.default.stderr;h();var St=ge(Fe(),1);import{setTimeout as ir}from"node:timers/promises";var Kr=(t,e)=>ir((0,St.default)(t),void 0,e),qe=class{resolution;rejection;pendingPromise;constructor(e){this.pendingPromise=e,e.then(r=>(this.resolution=r,r)).catch(r=>{this.rejection=r}).finally(()=>{delete this.pendingPromise})}async unwrap(){if(this.pendingPromise)return await this.pendingPromise;if(this.rejection)throw this.rejection;return this.resolution}},xe=class{[Symbol.toStringTag];resolve;reject;_promise;constructor(){this._promise=new qe(new Promise((e,r)=>{this.resolve=e,this.reject=r})),this[Symbol.toStringTag]=String(this._promise.pendingPromise)}then(e,r){return this._promise.unwrap().then(e,r)}catch(e){return this._promise.unwrap().catch(e)}finally(e){return this._promise.unwrap().finally(e)}};h();var ze=ge(Et(),1);h();import{randomUUID as or}from"node:crypto";h();var Tt=ge(Fe(),1);import We from"node:os";var X,kt=async t=>{t.args["--telemetry"]&&(X=await import("./esm-GJ7RK6IC.js"),X.init({dsn:"https://0c26e0d8afd94e77a88ee1c3aa9e7065@o250689.ingest.sentry.io/6703266",enabled:N.productionLike&&(t.args["--telemetry"]??!1),release:oe.version,environment:oe.version.includes("experimental")?"experimental":"production"}))},$t=async(t,e)=>{if(!X)return;let{maybeGetCurrentApp:r,maybeGetCurrentEnv:o}=await import("./context-L5YSPF3X.js"),{maybeGetCurrentUser:n}=await import("./user-C34J52UL.js"),c=n(t);X.captureException(e,{event_id:e.id,captureContext:{user:c&&{id:String(c.id),email:c.email,username:c.name??void 0},tags:{application_id:r(t)?.id,environment_id:o(t)?.id,arch:U.arch,bug:e.isBug,environment:N.value,platform:U.platform,shell:U.shell,version:oe.version},contexts:{ctx:{argv:process.argv,args:t.args},cause:e.cause?Q(e.cause):void 0,app:{app_name:oe.name,app_version:oe.version},device:{name:We.hostname(),family:We.type(),arch:We.arch()},runtime:{name:process.release.name,version:process.version}}}}),await X.flush((0,Tt.default)("2s"))},xt=t=>{X&&X.addBreadcrumb(t)};var sr=async(t,e)=>{if(st(e))return t.log.debug("aborting without reporting error",{error:e}),process.exit(1);t.log.error("reporting error and exiting",{error:e});try{let r=q.from(e);if(r.print(),r.isBug===ee.NO)return;await $t(t,r)}finally{process.exit(1)}},mn=async t=>{t.log.debug("installing error handlers"),await kt(t);let e=r=>void sr(t,r);process.once("uncaughtException",e),process.once("unhandledRejection",e)},ee=Object.freeze({YES:"yes",NO:"no",MAYBE:"maybe"}),q=class t extends Error{id=N.testLike?"00000000-0000-0000-0000-000000000000":or();cause;stack;constructor(e){super(e),Error.captureStackTrace(this,this.constructor),this.stack=lt(this.stack,{pretty:!0,basePath:ut})}static from(e){return e instanceof t?e:new Re(e)}sprint(){let e=this.render();if(this.isBug!==ee.NO){e=Ee(e);let r=this.isBug===ee.YES?"This is a bug":"If you think this is a bug",o=`https://github.com/gadget-inc/ggt/issues/new?template=bug_report.yml&error-id=${this.id}`;Y.isSupported?e+=Ee({ensureEmptyLineAbove:!0,content:Ne`
|
|
2
|
+
${r}, ${Y("click here",o)} to create an issue on GitHub.
|
|
3
|
+
`}):e+=Ee({ensureEmptyLineAbove:!0,content:Ne`
|
|
4
|
+
${r}, use the link below to create an issue on GitHub.
|
|
5
|
+
|
|
6
|
+
${o}
|
|
7
|
+
`})}return e}print(e){ft({ensureEmptyLineAbove:!0,...e,content:this.sprint()})}},Re=class extends q{constructor(r){super("An unexpected error occurred");this.cause=r}isBug=ee.YES;render(){let r=Q(this.cause),o=r.stack||r.message||this.stack;return this.message+`.
|
|
8
|
+
|
|
9
|
+
`+o}},Mt=class extends q{constructor(r,o){super(r);this.cause=o}isBug=ee.MAYBE;render(){return this.message}};var Qe=(t,e)=>{let r={},o={};for(let[n,c]of Object.entries(t)){if(!("type"in c)){r[n]=c;continue}if(r[n]=c.type,o[n]=c.default,c.alias)for(let b of Array.isArray(c.alias)?c.alias:[c.alias])r[b]=n}try{let n=(0,ze.default)(r,e);for(let[c,b]of Object.entries(o))it(n[c])&&(n[c]=b);return n}catch(n){throw n instanceof ze.default.ArgError&&(n=new Je(n.message)),n instanceof q?n:new Re(n)}},Je=class extends q{isBug=ee.NO;render(){return`${Se.redBright(we.cross)} `+this.message}};h();h();h();h();h();var Ct=(t,e,r,o)=>JSON.stringify({level:t,name:e,msg:Ie(r).trim(),fields:Ut(o)})+`
|
|
10
|
+
`,Ut=t=>{let e={};for(let[r,o]of Object.entries(t))e[r]=_t(o);return e},_t=t=>(t instanceof Set&&(t=Array.from(t)),Array.isArray(t)?t.map(_t):(t instanceof Map&&(t=Object.fromEntries(t.entries())),Be(t)?Ut(t):ot(t)?Ie(t).trim():t));h();var Ft=ge(ht(),1);import ar from"node:assert";var Pt=(t,e,r,o)=>`${yr()} ${wr(t)} ${Dr(e)}:${br(r)}${Gt(o)}${j}`,F=new nt({level:N.testLike&&U.logLevel<k.PRINT?3:Se.level}),lr=F.hex("#86B5F7"),ur=F.hex("#B2D0FA"),Me=F.hex("#D6D6D6"),cr=F.hex("#C2C2C2"),fr=F.hex("#9DE6A4"),dr=F.hex("#BEEEC3"),pr=F.hex("#EEAC78"),It=F.hex("#F4C7A4"),hr=F.hex("#FAACB5"),jt=F.hex("#A64E4E"),Ze=F.hex("#FFFFFF"),Ce="",re=" ",j=`
|
|
11
|
+
`,gr=":",Nt="'",mr=(t,e)=>{let r=t==="error"?jt:Me,o=[];o.push(j);for(let n=0;n<e;n++)o.push(re);return o.push(r(t)),o.push(gr),o.join("")},te=(t,e,r)=>{let o=t.split(j);if(o.length===0)return Ce;let n=[],c=o.shift();ar(c),n.push(e(c));for(let b of o)if(b){n.push(j);for(let p=0;p<r;p++)n.push(re);n.push(e(b))}return n.join(Ce)},Gt=(t,e=2)=>{if(Object.keys(t).length===0)return Ce;let r=[];for(let[o,n]of Object.entries(t)){if(r.push(mr(o,e)),n instanceof Set&&(n=Array.from(n)),Array.isArray(n)){if(n.length===0){r.push(te(" []",Me,e));continue}n=Object.fromEntries(n.entries())}if(n instanceof Map&&(n=Object.fromEntries(n)),Be(n)){let c=Object.entries(n);if(c.length===0){r.push(te(" {}",Me,e));continue}c.length>10&&U.logLevel>k.TRACE&&(n=Object.fromEntries([...c.slice(0,10),[we.ellipsis,`${c.length-10} more`]])),r.push(Gt(n,e+2));continue}switch(r.push(re),typeof n){case"string":r.push(te(Nt+n.replaceAll(j,j+re.repeat(e+o.length))+Nt,ur,e));break;case"number":r.push(te(String(n),It,e));break;case"bigint":r.push(te(String(n)+"n",It,e));break;case"boolean":r.push(te(String(n),dr,e));break;default:r.push(te(String(n),Ze,e));break}}return r.join(Ce)},yr=()=>{let t=(0,Ft.default)().format("hh:mm:ss");return cr(t)},wr=t=>{switch(t){case k.PRINT:return Me("PRINT");case k.TRACE:return lr("TRACE");case k.DEBUG:return pr("DEBUG");case k.INFO:return fr("INFO");case k.WARN:return hr("WARN");case k.ERROR:return jt("ERROR")}},Dr=t=>Ze(t),br=t=>{let e=t.split(j);return e.length===1?re+Ze(t):j+e.map(r=>re+re+r).join(j)};var Vt={pretty:Pt,json:Ct};var Ht=({name:t,fields:e={},devFields:r={}})=>{let o=n=>(c,b,p)=>{let A=n>=U.logLevel,w=n>=k.INFO;if(!A&&!w)return;let L={...V(e),...b};if(N.developmentOrTestLike&&Object.assign(L,V(r),p),"error"in L&&(L.error=Q(L.error)),"reason"in L&&(L.reason=Q(L.reason)),A){let O=Vt[U.logFormat];at.writeStderr(O(n,t,c,L))}w&&xt({level:"log",message:c,data:L})};return{trace:o(k.TRACE),debug:o(k.DEBUG),info:o(k.INFO),warn:o(k.WARN),error:o(k.ERROR)}};var Xe=({name:t,fields:e,devFields:r})=>({...Ht({name:t,fields:e,devFields:r}),child:({name:o,fields:n,devFields:c})=>Xe({name:o||t,fields:()=>({...V(e),...V(n)}),devFields:{...V(r),...V(c)}})});var Yt=class t extends AbortController{args;done=new xe;#t;#e;#r=[];constructor({args:e,log:r,values:o}){super(),this.args=e,this.#t=r,this.#e=o,this.abort=this.abort.bind(this),this.child=this.child.bind(this),this.onAbort=this.onAbort.bind(this),this.signal.addEventListener("abort",async()=>{let n;for(let c of this.#r.reverse())try{await c(this.signal.reason)}catch(b){n??=b,this.log.error("error during abort",{error:n})}n?this.done.reject(n):this.done.resolve()})}get log(){return this.#t}static init({parse:e,...r}){return new t({args:e?Qe(e,me(r,["argv","permissive","stopAtPositional"])):{},log:Xe(me(r,["name","fields","devFields"])),values:{}})}get(e){return this.#e[e]}set(e,r){this.#e[e]=r}child({parse:e,...r}){let o=new t({args:{...this.args,...r.overwrite,...e?Qe(e,ct(me(r,["argv","permissive","stopAtPositional"]),{argv:this.args._})):{}},log:this.log.child(me(r,["name","fields","devFields"])),values:this.#e});return this.onAbort(()=>o.abort()),o}onAbort(e){this.#r.push(e)}};export{Fe as a,Et as b,ht as c,we as d,Y as e,Kr as f,Je as g,Yt as h,sr as i,mn as j,ee as k,q as l,Re as m,Mt as n};
|
|
12
|
+
//# sourceMappingURL=chunk-OLKWG2EP.js.map
|