hot-updater 0.21.7 → 0.21.9
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/dist/chunk-DWy1uDak.cjs +39 -0
- package/dist/config.cjs +1 -2
- package/dist/config.d.cts +2 -1
- package/dist/config.d.ts +2 -1
- package/dist/config.js +1 -2
- package/dist/{fingerprint-CUyLNgcg.js → fingerprint-BBD702SI.js} +34 -9
- package/dist/{fingerprint-xeLO0LG3.cjs → fingerprint-DqX6r8Tm.cjs} +184 -187
- package/dist/index.cjs +923 -708
- package/dist/index.js +531 -320
- package/dist/plugins/babel.cjs +6 -5
- package/dist/plugins/babel.js +2 -3
- package/package.json +13 -12
- package/dist/picocolors-O3YZQBCJ.js +0 -99
- package/dist/picocolors-y8lGs7d-.cjs +0 -114
package/dist/index.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import { a as nativeFingerprint, c as showFingerprintDiff, d as IosConfigParser, f as require_plist, i as generateFingerprints, l as isFingerprintEquals, m as AndroidConfigParser, o as readLocalFingerprint, p as require_base64_js, s as getFingerprintDiff, t as createAndInjectFingerprintFiles, u as require_out } from "./fingerprint-CUyLNgcg.js";
|
|
4
|
-
import * as p from "@clack/prompts";
|
|
2
|
+
import { _ as __toESM, a as nativeFingerprint, c as showFingerprintDiff, d as IosConfigParser, f as require_plist, g as __require, h as __commonJS, i as generateFingerprints, l as isFingerprintEquals, m as AndroidConfigParser, o as readLocalFingerprint, p as require_base64_js, s as getFingerprintDiff, t as createAndInjectFingerprintFiles, u as require_out } from "./fingerprint-BBD702SI.js";
|
|
5
3
|
import { EventEmitter, addAbortListener, on, once, setMaxListeners } from "node:events";
|
|
6
4
|
import childProcess, { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
|
|
7
5
|
import path from "node:path";
|
|
8
6
|
import fs, { appendFileSync, createReadStream, createWriteStream, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
9
7
|
import process$1, { execArgv, execPath, hrtime, platform } from "node:process";
|
|
10
|
-
import { banner, createTarBrTargetFiles, createTarGzTargetFiles, createZipTargetFiles,
|
|
8
|
+
import { banner, colors, createTarBrTargetFiles, createTarGzTargetFiles, createZipTargetFiles, getCwd, loadConfig, log, p, printBanner } from "@hot-updater/cli-tools";
|
|
11
9
|
import { fileURLToPath } from "node:url";
|
|
12
10
|
import { StringDecoder } from "node:string_decoder";
|
|
13
11
|
import { aborted, callbackify, debuglog, inspect, promisify, stripVTControlCharacters } from "node:util";
|
|
@@ -23,6 +21,7 @@ import { Duplex, PassThrough, Readable, Transform, Writable, getDefaultHighWater
|
|
|
23
21
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
24
22
|
import { promisify as promisify$1 } from "util";
|
|
25
23
|
import { Readable as Readable$1 } from "stream";
|
|
24
|
+
import { generateMinBundleId } from "@hot-updater/plugin-core";
|
|
26
25
|
import fs$2, { constants as constants$1 } from "node:fs/promises";
|
|
27
26
|
import fs$3, { access, mkdir, readFile, readdir, writeFile } from "fs/promises";
|
|
28
27
|
import crypto, { createHash } from "crypto";
|
|
@@ -30,6 +29,9 @@ import { createServer } from "http";
|
|
|
30
29
|
import { Http2ServerRequest } from "http2";
|
|
31
30
|
import app from "@hot-updater/console";
|
|
32
31
|
import net from "node:net";
|
|
32
|
+
import { HotUpdaterDB } from "@hot-updater/server";
|
|
33
|
+
import { kyselyAdapter } from "@hot-updater/server/adapters/kysely";
|
|
34
|
+
import { Kysely, MysqlDialect, PostgresDialect, SqliteDialect } from "kysely";
|
|
33
35
|
import { format } from "sql-formatter";
|
|
34
36
|
import { createJiti } from "jiti";
|
|
35
37
|
|
|
@@ -1815,34 +1817,34 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1815
1817
|
*
|
|
1816
1818
|
* @private
|
|
1817
1819
|
*/
|
|
1818
|
-
_prepareUserArgs(argv, parseOptions$6) {
|
|
1819
|
-
if (argv !== void 0 && !Array.isArray(argv)) throw new Error("first parameter to parse must be array or undefined");
|
|
1820
|
+
_prepareUserArgs(argv$1, parseOptions$6) {
|
|
1821
|
+
if (argv$1 !== void 0 && !Array.isArray(argv$1)) throw new Error("first parameter to parse must be array or undefined");
|
|
1820
1822
|
parseOptions$6 = parseOptions$6 || {};
|
|
1821
|
-
if (argv === void 0 && parseOptions$6.from === void 0) {
|
|
1823
|
+
if (argv$1 === void 0 && parseOptions$6.from === void 0) {
|
|
1822
1824
|
if (process$3.versions?.electron) parseOptions$6.from = "electron";
|
|
1823
1825
|
const execArgv$1 = process$3.execArgv ?? [];
|
|
1824
1826
|
if (execArgv$1.includes("-e") || execArgv$1.includes("--eval") || execArgv$1.includes("-p") || execArgv$1.includes("--print")) parseOptions$6.from = "eval";
|
|
1825
1827
|
}
|
|
1826
|
-
if (argv === void 0) argv = process$3.argv;
|
|
1827
|
-
this.rawArgs = argv.slice();
|
|
1828
|
+
if (argv$1 === void 0) argv$1 = process$3.argv;
|
|
1829
|
+
this.rawArgs = argv$1.slice();
|
|
1828
1830
|
let userArgs;
|
|
1829
1831
|
switch (parseOptions$6.from) {
|
|
1830
1832
|
case void 0:
|
|
1831
1833
|
case "node":
|
|
1832
|
-
this._scriptPath = argv[1];
|
|
1833
|
-
userArgs = argv.slice(2);
|
|
1834
|
+
this._scriptPath = argv$1[1];
|
|
1835
|
+
userArgs = argv$1.slice(2);
|
|
1834
1836
|
break;
|
|
1835
1837
|
case "electron":
|
|
1836
1838
|
if (process$3.defaultApp) {
|
|
1837
|
-
this._scriptPath = argv[1];
|
|
1838
|
-
userArgs = argv.slice(2);
|
|
1839
|
-
} else userArgs = argv.slice(1);
|
|
1839
|
+
this._scriptPath = argv$1[1];
|
|
1840
|
+
userArgs = argv$1.slice(2);
|
|
1841
|
+
} else userArgs = argv$1.slice(1);
|
|
1840
1842
|
break;
|
|
1841
1843
|
case "user":
|
|
1842
|
-
userArgs = argv.slice(0);
|
|
1844
|
+
userArgs = argv$1.slice(0);
|
|
1843
1845
|
break;
|
|
1844
1846
|
case "eval":
|
|
1845
|
-
userArgs = argv.slice(1);
|
|
1847
|
+
userArgs = argv$1.slice(1);
|
|
1846
1848
|
break;
|
|
1847
1849
|
default: throw new Error(`unexpected parse option { from: '${parseOptions$6.from}' }`);
|
|
1848
1850
|
}
|
|
@@ -1872,9 +1874,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1872
1874
|
* @param {string} [parseOptions.from] - where the args are from: 'node', 'user', 'electron'
|
|
1873
1875
|
* @return {Command} `this` command for chaining
|
|
1874
1876
|
*/
|
|
1875
|
-
parse(argv, parseOptions$6) {
|
|
1877
|
+
parse(argv$1, parseOptions$6) {
|
|
1876
1878
|
this._prepareForParse();
|
|
1877
|
-
const userArgs = this._prepareUserArgs(argv, parseOptions$6);
|
|
1879
|
+
const userArgs = this._prepareUserArgs(argv$1, parseOptions$6);
|
|
1878
1880
|
this._parseCommand([], userArgs);
|
|
1879
1881
|
return this;
|
|
1880
1882
|
}
|
|
@@ -1898,9 +1900,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1898
1900
|
* @param {string} parseOptions.from - where the args are from: 'node', 'user', 'electron'
|
|
1899
1901
|
* @return {Promise}
|
|
1900
1902
|
*/
|
|
1901
|
-
async parseAsync(argv, parseOptions$6) {
|
|
1903
|
+
async parseAsync(argv$1, parseOptions$6) {
|
|
1902
1904
|
this._prepareForParse();
|
|
1903
|
-
const userArgs = this._prepareUserArgs(argv, parseOptions$6);
|
|
1905
|
+
const userArgs = this._prepareUserArgs(argv$1, parseOptions$6);
|
|
1904
1906
|
await this._parseCommand([], userArgs);
|
|
1905
1907
|
return this;
|
|
1906
1908
|
}
|
|
@@ -2301,11 +2303,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2301
2303
|
* @param {string[]} argv
|
|
2302
2304
|
* @return {{operands: string[], unknown: string[]}}
|
|
2303
2305
|
*/
|
|
2304
|
-
parseOptions(argv) {
|
|
2306
|
+
parseOptions(argv$1) {
|
|
2305
2307
|
const operands = [];
|
|
2306
2308
|
const unknown = [];
|
|
2307
2309
|
let dest = operands;
|
|
2308
|
-
const args = argv.slice();
|
|
2310
|
+
const args = argv$1.slice();
|
|
2309
2311
|
function maybeOption(arg) {
|
|
2310
2312
|
return arg.length > 1 && arg[0] === "-";
|
|
2311
2313
|
}
|
|
@@ -3740,16 +3742,16 @@ var require_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semve
|
|
|
3740
3742
|
};
|
|
3741
3743
|
const replaceTilde = (comp, options) => {
|
|
3742
3744
|
const r = options.loose ? re$3[t$3.TILDELOOSE] : re$3[t$3.TILDE];
|
|
3743
|
-
return comp.replace(r, (_, M, m$1, p$
|
|
3744
|
-
debug$7("tilde", comp, _, M, m$1, p$
|
|
3745
|
+
return comp.replace(r, (_, M, m$1, p$2, pr) => {
|
|
3746
|
+
debug$7("tilde", comp, _, M, m$1, p$2, pr);
|
|
3745
3747
|
let ret;
|
|
3746
3748
|
if (isX(M)) ret = "";
|
|
3747
3749
|
else if (isX(m$1)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
3748
|
-
else if (isX(p$
|
|
3750
|
+
else if (isX(p$2)) ret = `>=${M}.${m$1}.0 <${M}.${+m$1 + 1}.0-0`;
|
|
3749
3751
|
else if (pr) {
|
|
3750
3752
|
debug$7("replaceTilde pr", pr);
|
|
3751
|
-
ret = `>=${M}.${m$1}.${p$
|
|
3752
|
-
} else ret = `>=${M}.${m$1}.${p$
|
|
3753
|
+
ret = `>=${M}.${m$1}.${p$2}-${pr} <${M}.${+m$1 + 1}.0-0`;
|
|
3754
|
+
} else ret = `>=${M}.${m$1}.${p$2} <${M}.${+m$1 + 1}.0-0`;
|
|
3753
3755
|
debug$7("tilde return", ret);
|
|
3754
3756
|
return ret;
|
|
3755
3757
|
});
|
|
@@ -3761,23 +3763,23 @@ var require_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semve
|
|
|
3761
3763
|
debug$7("caret", comp, options);
|
|
3762
3764
|
const r = options.loose ? re$3[t$3.CARETLOOSE] : re$3[t$3.CARET];
|
|
3763
3765
|
const z = options.includePrerelease ? "-0" : "";
|
|
3764
|
-
return comp.replace(r, (_, M, m$1, p$
|
|
3765
|
-
debug$7("caret", comp, _, M, m$1, p$
|
|
3766
|
+
return comp.replace(r, (_, M, m$1, p$2, pr) => {
|
|
3767
|
+
debug$7("caret", comp, _, M, m$1, p$2, pr);
|
|
3766
3768
|
let ret;
|
|
3767
3769
|
if (isX(M)) ret = "";
|
|
3768
3770
|
else if (isX(m$1)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
3769
|
-
else if (isX(p$
|
|
3771
|
+
else if (isX(p$2)) if (M === "0") ret = `>=${M}.${m$1}.0${z} <${M}.${+m$1 + 1}.0-0`;
|
|
3770
3772
|
else ret = `>=${M}.${m$1}.0${z} <${+M + 1}.0.0-0`;
|
|
3771
3773
|
else if (pr) {
|
|
3772
3774
|
debug$7("replaceCaret pr", pr);
|
|
3773
|
-
if (M === "0") if (m$1 === "0") ret = `>=${M}.${m$1}.${p$
|
|
3774
|
-
else ret = `>=${M}.${m$1}.${p$
|
|
3775
|
-
else ret = `>=${M}.${m$1}.${p$
|
|
3775
|
+
if (M === "0") if (m$1 === "0") ret = `>=${M}.${m$1}.${p$2}-${pr} <${M}.${m$1}.${+p$2 + 1}-0`;
|
|
3776
|
+
else ret = `>=${M}.${m$1}.${p$2}-${pr} <${M}.${+m$1 + 1}.0-0`;
|
|
3777
|
+
else ret = `>=${M}.${m$1}.${p$2}-${pr} <${+M + 1}.0.0-0`;
|
|
3776
3778
|
} else {
|
|
3777
3779
|
debug$7("no pr");
|
|
3778
|
-
if (M === "0") if (m$1 === "0") ret = `>=${M}.${m$1}.${p$
|
|
3779
|
-
else ret = `>=${M}.${m$1}.${p$
|
|
3780
|
-
else ret = `>=${M}.${m$1}.${p$
|
|
3780
|
+
if (M === "0") if (m$1 === "0") ret = `>=${M}.${m$1}.${p$2}${z} <${M}.${m$1}.${+p$2 + 1}-0`;
|
|
3781
|
+
else ret = `>=${M}.${m$1}.${p$2}${z} <${M}.${+m$1 + 1}.0-0`;
|
|
3782
|
+
else ret = `>=${M}.${m$1}.${p$2} <${+M + 1}.0.0-0`;
|
|
3781
3783
|
}
|
|
3782
3784
|
debug$7("caret return", ret);
|
|
3783
3785
|
return ret;
|
|
@@ -3790,11 +3792,11 @@ var require_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semve
|
|
|
3790
3792
|
const replaceXRange = (comp, options) => {
|
|
3791
3793
|
comp = comp.trim();
|
|
3792
3794
|
const r = options.loose ? re$3[t$3.XRANGELOOSE] : re$3[t$3.XRANGE];
|
|
3793
|
-
return comp.replace(r, (ret, gtlt, M, m$1, p$
|
|
3794
|
-
debug$7("xRange", comp, ret, gtlt, M, m$1, p$
|
|
3795
|
+
return comp.replace(r, (ret, gtlt, M, m$1, p$2, pr) => {
|
|
3796
|
+
debug$7("xRange", comp, ret, gtlt, M, m$1, p$2, pr);
|
|
3795
3797
|
const xM = isX(M);
|
|
3796
3798
|
const xm = xM || isX(m$1);
|
|
3797
|
-
const xp = xm || isX(p$
|
|
3799
|
+
const xp = xm || isX(p$2);
|
|
3798
3800
|
const anyX = xp;
|
|
3799
3801
|
if (gtlt === "=" && anyX) gtlt = "";
|
|
3800
3802
|
pr = options.includePrerelease ? "-0" : "";
|
|
@@ -3802,16 +3804,16 @@ var require_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semve
|
|
|
3802
3804
|
else ret = "*";
|
|
3803
3805
|
else if (gtlt && anyX) {
|
|
3804
3806
|
if (xm) m$1 = 0;
|
|
3805
|
-
p$
|
|
3807
|
+
p$2 = 0;
|
|
3806
3808
|
if (gtlt === ">") {
|
|
3807
3809
|
gtlt = ">=";
|
|
3808
3810
|
if (xm) {
|
|
3809
3811
|
M = +M + 1;
|
|
3810
3812
|
m$1 = 0;
|
|
3811
|
-
p$
|
|
3813
|
+
p$2 = 0;
|
|
3812
3814
|
} else {
|
|
3813
3815
|
m$1 = +m$1 + 1;
|
|
3814
|
-
p$
|
|
3816
|
+
p$2 = 0;
|
|
3815
3817
|
}
|
|
3816
3818
|
} else if (gtlt === "<=") {
|
|
3817
3819
|
gtlt = "<";
|
|
@@ -3819,7 +3821,7 @@ var require_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semve
|
|
|
3819
3821
|
else m$1 = +m$1 + 1;
|
|
3820
3822
|
}
|
|
3821
3823
|
if (gtlt === "<") pr = "-0";
|
|
3822
|
-
ret = `${gtlt + M}.${m$1}.${p$
|
|
3824
|
+
ret = `${gtlt + M}.${m$1}.${p$2}${pr}`;
|
|
3823
3825
|
} else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
3824
3826
|
else if (xp) ret = `>=${M}.${m$1}.0${pr} <${M}.${+m$1 + 1}.0-0`;
|
|
3825
3827
|
debug$7("xRange return", ret);
|
|
@@ -3882,7 +3884,6 @@ var require_valid$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/sem
|
|
|
3882
3884
|
//#endregion
|
|
3883
3885
|
//#region src/commandOptions/index.ts
|
|
3884
3886
|
var import_valid$4 = /* @__PURE__ */ __toESM(require_valid$2(), 1);
|
|
3885
|
-
var import_picocolors$5 = /* @__PURE__ */ __toESM(require_picocolors(), 1);
|
|
3886
3887
|
const platformCommandOption = new Option("-p, --platform <platform>", "specify the platform").choices(["ios", "android"]);
|
|
3887
3888
|
const interactiveCommandOption = new Option("-i, --interactive", "interactive mode").default(false);
|
|
3888
3889
|
|
|
@@ -4183,10 +4184,10 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
|
|
|
4183
4184
|
//#endregion
|
|
4184
4185
|
//#region ../../node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
|
|
4185
4186
|
function isUnicodeSupported() {
|
|
4186
|
-
const { env: env$
|
|
4187
|
-
const { TERM, TERM_PROGRAM } = env$
|
|
4187
|
+
const { env: env$2 } = process$1;
|
|
4188
|
+
const { TERM, TERM_PROGRAM } = env$2;
|
|
4188
4189
|
if (process$1.platform !== "win32") return TERM !== "linux";
|
|
4189
|
-
return Boolean(env$
|
|
4190
|
+
return Boolean(env$2.WT_SESSION) || Boolean(env$2.TERMINUS_SUBLIME) || env$2.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env$2.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
4190
4191
|
}
|
|
4191
4192
|
|
|
4192
4193
|
//#endregion
|
|
@@ -4684,8 +4685,8 @@ var require_windows = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ise
|
|
|
4684
4685
|
pathext = pathext.split(";");
|
|
4685
4686
|
if (pathext.indexOf("") !== -1) return true;
|
|
4686
4687
|
for (var i$1 = 0; i$1 < pathext.length; i$1++) {
|
|
4687
|
-
var p$
|
|
4688
|
-
if (p$
|
|
4688
|
+
var p$2 = pathext[i$1].toLowerCase();
|
|
4689
|
+
if (p$2 && path$6.substr(-p$2.length).toLowerCase() === p$2) return true;
|
|
4689
4690
|
}
|
|
4690
4691
|
return false;
|
|
4691
4692
|
}
|
|
@@ -4814,13 +4815,13 @@ var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which
|
|
|
4814
4815
|
const pCmd = path$4.join(pathPart, cmd);
|
|
4815
4816
|
resolve(subStep(!pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd, i$1, 0));
|
|
4816
4817
|
});
|
|
4817
|
-
const subStep = (p$
|
|
4818
|
+
const subStep = (p$2, i$1, ii) => new Promise((resolve, reject) => {
|
|
4818
4819
|
if (ii === pathExt.length) return resolve(step(i$1 + 1));
|
|
4819
4820
|
const ext = pathExt[ii];
|
|
4820
|
-
isexe(p$
|
|
4821
|
-
if (!er && is) if (opt.all) found.push(p$
|
|
4822
|
-
else return resolve(p$
|
|
4823
|
-
return resolve(subStep(p$
|
|
4821
|
+
isexe(p$2 + ext, { pathExt: pathExtExe }, (er, is) => {
|
|
4822
|
+
if (!er && is) if (opt.all) found.push(p$2 + ext);
|
|
4823
|
+
else return resolve(p$2 + ext);
|
|
4824
|
+
return resolve(subStep(p$2, i$1, ii + 1));
|
|
4824
4825
|
});
|
|
4825
4826
|
});
|
|
4826
4827
|
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
@@ -4833,9 +4834,9 @@ var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which
|
|
|
4833
4834
|
const ppRaw = pathEnv[i$1];
|
|
4834
4835
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
4835
4836
|
const pCmd = path$4.join(pathPart, cmd);
|
|
4836
|
-
const p$
|
|
4837
|
+
const p$2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
4837
4838
|
for (let j = 0; j < pathExt.length; j++) {
|
|
4838
|
-
const cur = p$
|
|
4839
|
+
const cur = p$2 + pathExt[j];
|
|
4839
4840
|
try {
|
|
4840
4841
|
if (isexe.sync(cur, { pathExt: pathExtExe })) if (opt.all) found.push(cur);
|
|
4841
4842
|
else return cur;
|
|
@@ -4869,7 +4870,7 @@ var require_resolveCommand = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
4869
4870
|
const which = require_which();
|
|
4870
4871
|
const getPathKey = require_path_key();
|
|
4871
4872
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
4872
|
-
const env$
|
|
4873
|
+
const env$2 = parsed.options.env || process.env;
|
|
4873
4874
|
const cwd = process.cwd();
|
|
4874
4875
|
const hasCustomCwd = parsed.options.cwd != null;
|
|
4875
4876
|
const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
|
|
@@ -4879,7 +4880,7 @@ var require_resolveCommand = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
4879
4880
|
let resolved;
|
|
4880
4881
|
try {
|
|
4881
4882
|
resolved = which.sync(parsed.command, {
|
|
4882
|
-
path: env$
|
|
4883
|
+
path: env$2[getPathKey({ env: env$2 })],
|
|
4883
4884
|
pathExt: withoutPathExt ? path$3.delimiter : void 0
|
|
4884
4885
|
});
|
|
4885
4886
|
} catch (e) {} finally {
|
|
@@ -5085,9 +5086,9 @@ var require_cross_spawn = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
5085
5086
|
//#region ../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
|
|
5086
5087
|
var import_cross_spawn = /* @__PURE__ */ __toESM(require_cross_spawn(), 1);
|
|
5087
5088
|
function pathKey(options = {}) {
|
|
5088
|
-
const { env: env$
|
|
5089
|
+
const { env: env$2 = process.env, platform: platform$2 = process.platform } = options;
|
|
5089
5090
|
if (platform$2 !== "win32") return "PATH";
|
|
5090
|
-
return Object.keys(env$
|
|
5091
|
+
return Object.keys(env$2).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
5091
5092
|
}
|
|
5092
5093
|
|
|
5093
5094
|
//#endregion
|
|
@@ -5129,12 +5130,12 @@ const applyExecPath = (result, pathParts, execPath$1, cwdPath) => {
|
|
|
5129
5130
|
const pathPart = path.resolve(cwdPath, toPath$2(execPath$1), "..");
|
|
5130
5131
|
if (!pathParts.includes(pathPart)) result.push(pathPart);
|
|
5131
5132
|
};
|
|
5132
|
-
const npmRunPathEnv = ({ env: env$
|
|
5133
|
-
env$
|
|
5134
|
-
const pathName = pathKey({ env: env$
|
|
5135
|
-
options.path = env$
|
|
5136
|
-
env$
|
|
5137
|
-
return env$
|
|
5133
|
+
const npmRunPathEnv = ({ env: env$2 = process$1.env,...options } = {}) => {
|
|
5134
|
+
env$2 = { ...env$2 };
|
|
5135
|
+
const pathName = pathKey({ env: env$2 });
|
|
5136
|
+
options.path = env$2[pathName];
|
|
5137
|
+
env$2[pathName] = npmRunPath(options);
|
|
5138
|
+
return env$2;
|
|
5138
5139
|
};
|
|
5139
5140
|
|
|
5140
5141
|
//#endregion
|
|
@@ -6325,18 +6326,18 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
|
|
|
6325
6326
|
serialization
|
|
6326
6327
|
});
|
|
6327
6328
|
const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
|
|
6328
|
-
const env$
|
|
6329
|
+
const env$2 = extendEnv ? {
|
|
6329
6330
|
...process$1.env,
|
|
6330
6331
|
...envOption
|
|
6331
6332
|
} : envOption;
|
|
6332
6333
|
if (preferLocal || node) return npmRunPathEnv({
|
|
6333
|
-
env: env$
|
|
6334
|
+
env: env$2,
|
|
6334
6335
|
cwd: localDirectory,
|
|
6335
6336
|
execPath: nodePath,
|
|
6336
6337
|
preferLocal,
|
|
6337
6338
|
addExecPath: node
|
|
6338
6339
|
});
|
|
6339
|
-
return env$
|
|
6340
|
+
return env$2;
|
|
6340
6341
|
};
|
|
6341
6342
|
|
|
6342
6343
|
//#endregion
|
|
@@ -8878,8 +8879,8 @@ var SignalExit = class extends SignalExitBase {
|
|
|
8878
8879
|
const listeners = this.#process.listeners(sig);
|
|
8879
8880
|
let { count: count$1 } = this.#emitter;
|
|
8880
8881
|
/* c8 ignore start */
|
|
8881
|
-
const p$
|
|
8882
|
-
if (typeof p$
|
|
8882
|
+
const p$2 = process$4;
|
|
8883
|
+
if (typeof p$2.__signal_exit_emitter__ === "object" && typeof p$2.__signal_exit_emitter__.count === "number") count$1 += p$2.__signal_exit_emitter__.count;
|
|
8883
8884
|
/* c8 ignore stop */
|
|
8884
8885
|
if (listeners.length === count$1) {
|
|
8885
8886
|
this.unload();
|
|
@@ -10350,6 +10351,75 @@ function findUpSync(name, { cwd = process$1.cwd(), type: type$1 = "file", stopAt
|
|
|
10350
10351
|
}
|
|
10351
10352
|
}
|
|
10352
10353
|
|
|
10354
|
+
//#endregion
|
|
10355
|
+
//#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
10356
|
+
var require_picocolors = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js": ((exports, module) => {
|
|
10357
|
+
let p$1 = process || {}, argv = p$1.argv || [], env$1 = p$1.env || {};
|
|
10358
|
+
let isColorSupported$1 = !(!!env$1.NO_COLOR || argv.includes("--no-color")) && (!!env$1.FORCE_COLOR || argv.includes("--color") || p$1.platform === "win32" || (p$1.stdout || {}).isTTY && env$1.TERM !== "dumb" || !!env$1.CI);
|
|
10359
|
+
let formatter = (open$1, close, replace = open$1) => (input) => {
|
|
10360
|
+
let string = "" + input, index = string.indexOf(close, open$1.length);
|
|
10361
|
+
return ~index ? open$1 + replaceClose(string, close, replace, index) + close : open$1 + string + close;
|
|
10362
|
+
};
|
|
10363
|
+
let replaceClose = (string, close, replace, index) => {
|
|
10364
|
+
let result = "", cursor = 0;
|
|
10365
|
+
do {
|
|
10366
|
+
result += string.substring(cursor, index) + replace;
|
|
10367
|
+
cursor = index + close.length;
|
|
10368
|
+
index = string.indexOf(close, cursor);
|
|
10369
|
+
} while (~index);
|
|
10370
|
+
return result + string.substring(cursor);
|
|
10371
|
+
};
|
|
10372
|
+
let createColors = (enabled = isColorSupported$1) => {
|
|
10373
|
+
let f = enabled ? formatter : () => String;
|
|
10374
|
+
return {
|
|
10375
|
+
isColorSupported: enabled,
|
|
10376
|
+
reset: f("\x1B[0m", "\x1B[0m"),
|
|
10377
|
+
bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
10378
|
+
dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
10379
|
+
italic: f("\x1B[3m", "\x1B[23m"),
|
|
10380
|
+
underline: f("\x1B[4m", "\x1B[24m"),
|
|
10381
|
+
inverse: f("\x1B[7m", "\x1B[27m"),
|
|
10382
|
+
hidden: f("\x1B[8m", "\x1B[28m"),
|
|
10383
|
+
strikethrough: f("\x1B[9m", "\x1B[29m"),
|
|
10384
|
+
black: f("\x1B[30m", "\x1B[39m"),
|
|
10385
|
+
red: f("\x1B[31m", "\x1B[39m"),
|
|
10386
|
+
green: f("\x1B[32m", "\x1B[39m"),
|
|
10387
|
+
yellow: f("\x1B[33m", "\x1B[39m"),
|
|
10388
|
+
blue: f("\x1B[34m", "\x1B[39m"),
|
|
10389
|
+
magenta: f("\x1B[35m", "\x1B[39m"),
|
|
10390
|
+
cyan: f("\x1B[36m", "\x1B[39m"),
|
|
10391
|
+
white: f("\x1B[37m", "\x1B[39m"),
|
|
10392
|
+
gray: f("\x1B[90m", "\x1B[39m"),
|
|
10393
|
+
bgBlack: f("\x1B[40m", "\x1B[49m"),
|
|
10394
|
+
bgRed: f("\x1B[41m", "\x1B[49m"),
|
|
10395
|
+
bgGreen: f("\x1B[42m", "\x1B[49m"),
|
|
10396
|
+
bgYellow: f("\x1B[43m", "\x1B[49m"),
|
|
10397
|
+
bgBlue: f("\x1B[44m", "\x1B[49m"),
|
|
10398
|
+
bgMagenta: f("\x1B[45m", "\x1B[49m"),
|
|
10399
|
+
bgCyan: f("\x1B[46m", "\x1B[49m"),
|
|
10400
|
+
bgWhite: f("\x1B[47m", "\x1B[49m"),
|
|
10401
|
+
blackBright: f("\x1B[90m", "\x1B[39m"),
|
|
10402
|
+
redBright: f("\x1B[91m", "\x1B[39m"),
|
|
10403
|
+
greenBright: f("\x1B[92m", "\x1B[39m"),
|
|
10404
|
+
yellowBright: f("\x1B[93m", "\x1B[39m"),
|
|
10405
|
+
blueBright: f("\x1B[94m", "\x1B[39m"),
|
|
10406
|
+
magentaBright: f("\x1B[95m", "\x1B[39m"),
|
|
10407
|
+
cyanBright: f("\x1B[96m", "\x1B[39m"),
|
|
10408
|
+
whiteBright: f("\x1B[97m", "\x1B[39m"),
|
|
10409
|
+
bgBlackBright: f("\x1B[100m", "\x1B[49m"),
|
|
10410
|
+
bgRedBright: f("\x1B[101m", "\x1B[49m"),
|
|
10411
|
+
bgGreenBright: f("\x1B[102m", "\x1B[49m"),
|
|
10412
|
+
bgYellowBright: f("\x1B[103m", "\x1B[49m"),
|
|
10413
|
+
bgBlueBright: f("\x1B[104m", "\x1B[49m"),
|
|
10414
|
+
bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
|
|
10415
|
+
bgCyanBright: f("\x1B[106m", "\x1B[49m"),
|
|
10416
|
+
bgWhiteBright: f("\x1B[107m", "\x1B[49m")
|
|
10417
|
+
};
|
|
10418
|
+
};
|
|
10419
|
+
module.exports = createColors();
|
|
10420
|
+
module.exports.createColors = createColors;
|
|
10421
|
+
}) });
|
|
10422
|
+
|
|
10353
10423
|
//#endregion
|
|
10354
10424
|
//#region ../../node_modules/.pnpm/js-tokens@4.0.0/node_modules/js-tokens/index.js
|
|
10355
10425
|
var require_js_tokens = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/js-tokens@4.0.0/node_modules/js-tokens/index.js": ((exports) => {
|
|
@@ -11490,32 +11560,32 @@ var require_lib$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babe
|
|
|
11490
11560
|
//#region ../../node_modules/.pnpm/@babel+code-frame@7.27.1/node_modules/@babel/code-frame/lib/index.js
|
|
11491
11561
|
var require_lib$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+code-frame@7.27.1/node_modules/@babel/code-frame/lib/index.js": ((exports) => {
|
|
11492
11562
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11493
|
-
var picocolors
|
|
11563
|
+
var picocolors = require_picocolors();
|
|
11494
11564
|
var jsTokens = require_js_tokens();
|
|
11495
11565
|
var helperValidatorIdentifier = require_lib$4();
|
|
11496
11566
|
function isColorSupported() {
|
|
11497
|
-
return typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? false : picocolors
|
|
11567
|
+
return typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? false : picocolors.isColorSupported;
|
|
11498
11568
|
}
|
|
11499
11569
|
const compose = (f, g) => (v) => f(g(v));
|
|
11500
|
-
function buildDefs(colors) {
|
|
11570
|
+
function buildDefs(colors$1) {
|
|
11501
11571
|
return {
|
|
11502
|
-
keyword: colors.cyan,
|
|
11503
|
-
capitalized: colors.yellow,
|
|
11504
|
-
jsxIdentifier: colors.yellow,
|
|
11505
|
-
punctuator: colors.yellow,
|
|
11506
|
-
number: colors.magenta,
|
|
11507
|
-
string: colors.green,
|
|
11508
|
-
regex: colors.magenta,
|
|
11509
|
-
comment: colors.gray,
|
|
11510
|
-
invalid: compose(compose(colors.white, colors.bgRed), colors.bold),
|
|
11511
|
-
gutter: colors.gray,
|
|
11512
|
-
marker: compose(colors.red, colors.bold),
|
|
11513
|
-
message: compose(colors.red, colors.bold),
|
|
11514
|
-
reset: colors.reset
|
|
11572
|
+
keyword: colors$1.cyan,
|
|
11573
|
+
capitalized: colors$1.yellow,
|
|
11574
|
+
jsxIdentifier: colors$1.yellow,
|
|
11575
|
+
punctuator: colors$1.yellow,
|
|
11576
|
+
number: colors$1.magenta,
|
|
11577
|
+
string: colors$1.green,
|
|
11578
|
+
regex: colors$1.magenta,
|
|
11579
|
+
comment: colors$1.gray,
|
|
11580
|
+
invalid: compose(compose(colors$1.white, colors$1.bgRed), colors$1.bold),
|
|
11581
|
+
gutter: colors$1.gray,
|
|
11582
|
+
marker: compose(colors$1.red, colors$1.bold),
|
|
11583
|
+
message: compose(colors$1.red, colors$1.bold),
|
|
11584
|
+
reset: colors$1.reset
|
|
11515
11585
|
};
|
|
11516
11586
|
}
|
|
11517
|
-
const defsOn = buildDefs(picocolors
|
|
11518
|
-
const defsOff = buildDefs(picocolors
|
|
11587
|
+
const defsOn = buildDefs(picocolors.createColors(true));
|
|
11588
|
+
const defsOff = buildDefs(picocolors.createColors(false));
|
|
11519
11589
|
function getDefs(enabled) {
|
|
11520
11590
|
return enabled ? defsOn : defsOff;
|
|
11521
11591
|
}
|
|
@@ -13560,7 +13630,7 @@ var require_commonjs = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/lr
|
|
|
13560
13630
|
return c$1.#tail;
|
|
13561
13631
|
},
|
|
13562
13632
|
free: c$1.#free,
|
|
13563
|
-
isBackgroundFetch: (p$
|
|
13633
|
+
isBackgroundFetch: (p$2) => c$1.#isBackgroundFetch(p$2),
|
|
13564
13634
|
backgroundFetch: (k, index, options, context) => c$1.#backgroundFetch(k, index, options, context),
|
|
13565
13635
|
moveToTail: (index) => c$1.#moveToTail(index),
|
|
13566
13636
|
indexes: (options) => c$1.#indexes(options),
|
|
@@ -14168,8 +14238,8 @@ var require_commonjs = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/lr
|
|
|
14168
14238
|
if (ignoreAbort) options.status.fetchAbortIgnored = true;
|
|
14169
14239
|
} else options.status.fetchResolved = true;
|
|
14170
14240
|
if (aborted$1 && !ignoreAbort && !updateCache) return fetchFail(ac.signal.reason);
|
|
14171
|
-
const bf$1 = p$
|
|
14172
|
-
if (this.#valList[index] === p$
|
|
14241
|
+
const bf$1 = p$2;
|
|
14242
|
+
if (this.#valList[index] === p$2) if (v$1 === void 0) if (bf$1.__staleWhileFetching) this.#valList[index] = bf$1.__staleWhileFetching;
|
|
14173
14243
|
else this.delete(k);
|
|
14174
14244
|
else {
|
|
14175
14245
|
if (options.status) options.status.fetchUpdated = true;
|
|
@@ -14189,8 +14259,8 @@ var require_commonjs = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/lr
|
|
|
14189
14259
|
const allowStaleAborted = aborted$1 && options.allowStaleOnFetchAbort;
|
|
14190
14260
|
const allowStale = allowStaleAborted || options.allowStaleOnFetchRejection;
|
|
14191
14261
|
const noDelete = allowStale || options.noDeleteOnFetchRejection;
|
|
14192
|
-
const bf$1 = p$
|
|
14193
|
-
if (this.#valList[index] === p$
|
|
14262
|
+
const bf$1 = p$2;
|
|
14263
|
+
if (this.#valList[index] === p$2) {
|
|
14194
14264
|
if (!noDelete || bf$1.__staleWhileFetching === void 0) this.delete(k);
|
|
14195
14265
|
else if (!allowStaleAborted) this.#valList[index] = bf$1.__staleWhileFetching;
|
|
14196
14266
|
}
|
|
@@ -14210,8 +14280,8 @@ var require_commonjs = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/lr
|
|
|
14210
14280
|
});
|
|
14211
14281
|
};
|
|
14212
14282
|
if (options.status) options.status.fetchDispatched = true;
|
|
14213
|
-
const p$
|
|
14214
|
-
const bf = Object.assign(p$
|
|
14283
|
+
const p$2 = new Promise(pcall).then(cb, eb);
|
|
14284
|
+
const bf = Object.assign(p$2, {
|
|
14215
14285
|
__abortController: ac,
|
|
14216
14286
|
__staleWhileFetching: v,
|
|
14217
14287
|
__returned: void 0
|
|
@@ -14225,9 +14295,9 @@ var require_commonjs = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/lr
|
|
|
14225
14295
|
} else this.#valList[index] = bf;
|
|
14226
14296
|
return bf;
|
|
14227
14297
|
}
|
|
14228
|
-
#isBackgroundFetch(p$
|
|
14298
|
+
#isBackgroundFetch(p$2) {
|
|
14229
14299
|
if (!this.#hasFetchMethod) return false;
|
|
14230
|
-
const b = p$
|
|
14300
|
+
const b = p$2;
|
|
14231
14301
|
return !!b && b instanceof Promise && b.hasOwnProperty("__staleWhileFetching") && b.__abortController instanceof AC;
|
|
14232
14302
|
}
|
|
14233
14303
|
async fetch(k, fetchOptions = {}) {
|
|
@@ -14260,8 +14330,8 @@ var require_commonjs = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/lr
|
|
|
14260
14330
|
let index = this.#keyMap.get(k);
|
|
14261
14331
|
if (index === void 0) {
|
|
14262
14332
|
if (status) status.fetch = "miss";
|
|
14263
|
-
const p$
|
|
14264
|
-
return p$
|
|
14333
|
+
const p$2 = this.#backgroundFetch(k, index, options, context);
|
|
14334
|
+
return p$2.__returned = p$2;
|
|
14265
14335
|
} else {
|
|
14266
14336
|
const v = this.#valList[index];
|
|
14267
14337
|
if (this.#isBackgroundFetch(v)) {
|
|
@@ -14280,13 +14350,13 @@ var require_commonjs = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/lr
|
|
|
14280
14350
|
if (status) this.#statusTTL(status, index);
|
|
14281
14351
|
return v;
|
|
14282
14352
|
}
|
|
14283
|
-
const p$
|
|
14284
|
-
const staleVal = p$
|
|
14353
|
+
const p$2 = this.#backgroundFetch(k, index, options, context);
|
|
14354
|
+
const staleVal = p$2.__staleWhileFetching !== void 0 && allowStale;
|
|
14285
14355
|
if (status) {
|
|
14286
14356
|
status.fetch = isStale ? "stale" : "refresh";
|
|
14287
14357
|
if (staleVal && isStale) status.returnedStale = true;
|
|
14288
14358
|
}
|
|
14289
|
-
return staleVal ? p$
|
|
14359
|
+
return staleVal ? p$2.__staleWhileFetching : p$2.__returned = p$2;
|
|
14290
14360
|
}
|
|
14291
14361
|
}
|
|
14292
14362
|
/**
|
|
@@ -14321,9 +14391,9 @@ var require_commonjs = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/lr
|
|
|
14321
14391
|
}
|
|
14322
14392
|
} else if (status) status.get = "miss";
|
|
14323
14393
|
}
|
|
14324
|
-
#connect(p$
|
|
14325
|
-
this.#prev[n$1] = p$
|
|
14326
|
-
this.#next[p$
|
|
14394
|
+
#connect(p$2, n$1) {
|
|
14395
|
+
this.#prev[n$1] = p$2;
|
|
14396
|
+
this.#next[p$2] = n$1;
|
|
14327
14397
|
}
|
|
14328
14398
|
#moveToTail(index) {
|
|
14329
14399
|
if (index !== this.#tail) {
|
|
@@ -15869,7 +15939,7 @@ var require_common = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/debu
|
|
|
15869
15939
|
* This is the common logic for both the Node.js and web browser
|
|
15870
15940
|
* implementations of `debug()`.
|
|
15871
15941
|
*/
|
|
15872
|
-
function setup(env$
|
|
15942
|
+
function setup(env$2) {
|
|
15873
15943
|
createDebug.debug = createDebug;
|
|
15874
15944
|
createDebug.default = createDebug;
|
|
15875
15945
|
createDebug.coerce = coerce$2;
|
|
@@ -15878,8 +15948,8 @@ var require_common = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/debu
|
|
|
15878
15948
|
createDebug.enabled = enabled;
|
|
15879
15949
|
createDebug.humanize = require_ms();
|
|
15880
15950
|
createDebug.destroy = destroy;
|
|
15881
|
-
Object.keys(env$
|
|
15882
|
-
createDebug[key] = env$
|
|
15951
|
+
Object.keys(env$2).forEach((key) => {
|
|
15952
|
+
createDebug[key] = env$2[key];
|
|
15883
15953
|
});
|
|
15884
15954
|
/**
|
|
15885
15955
|
* The currently active debug mode names, and names to skip.
|
|
@@ -15933,10 +16003,10 @@ var require_common = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/debu
|
|
|
15933
16003
|
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format$2) => {
|
|
15934
16004
|
if (match === "%%") return "%";
|
|
15935
16005
|
index++;
|
|
15936
|
-
const formatter = createDebug.formatters[format$2];
|
|
15937
|
-
if (typeof formatter === "function") {
|
|
16006
|
+
const formatter$1 = createDebug.formatters[format$2];
|
|
16007
|
+
if (typeof formatter$1 === "function") {
|
|
15938
16008
|
const val = args[index];
|
|
15939
|
-
match = formatter.call(self$1, val);
|
|
16009
|
+
match = formatter$1.call(self$1, val);
|
|
15940
16010
|
args.splice(index, 1);
|
|
15941
16011
|
index--;
|
|
15942
16012
|
}
|
|
@@ -16265,10 +16335,10 @@ var require_browser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/deb
|
|
|
16265
16335
|
//#endregion
|
|
16266
16336
|
//#region ../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js
|
|
16267
16337
|
var require_has_flag = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js": ((exports, module) => {
|
|
16268
|
-
module.exports = (flag, argv = process.argv) => {
|
|
16338
|
+
module.exports = (flag, argv$1 = process.argv) => {
|
|
16269
16339
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
16270
|
-
const position$1 = argv.indexOf(prefix + flag);
|
|
16271
|
-
const terminatorPosition = argv.indexOf("--");
|
|
16340
|
+
const position$1 = argv$1.indexOf(prefix + flag);
|
|
16341
|
+
const terminatorPosition = argv$1.indexOf("--");
|
|
16272
16342
|
return position$1 !== -1 && (terminatorPosition === -1 || position$1 < terminatorPosition);
|
|
16273
16343
|
};
|
|
16274
16344
|
}) });
|
|
@@ -16866,8 +16936,8 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
16866
16936
|
1634: (t$8, e$1, r$1) => {
|
|
16867
16937
|
var n$2 = r$1(6473), o$1 = r$1(9631), i$1 = r$1(6152), a$1 = r$1(3226), s$1 = r$1(9045), u$1 = r$1(7598), c$1 = Object.prototype.hasOwnProperty;
|
|
16868
16938
|
t$8.exports = function(t$9, e$2) {
|
|
16869
|
-
var r$2 = i$1(t$9), l = !r$2 && o$1(t$9), f = !r$2 && !l && a$1(t$9), p$
|
|
16870
|
-
for (var y$1 in t$9) !e$2 && !c$1.call(t$9, y$1) || d$1 && ("length" == y$1 || f && ("offset" == y$1 || "parent" == y$1) || p$
|
|
16939
|
+
var r$2 = i$1(t$9), l = !r$2 && o$1(t$9), f = !r$2 && !l && a$1(t$9), p$2 = !r$2 && !l && !f && u$1(t$9), d$1 = r$2 || l || f || p$2, h$2 = d$1 ? n$2(t$9.length, String) : [], v = h$2.length;
|
|
16940
|
+
for (var y$1 in t$9) !e$2 && !c$1.call(t$9, y$1) || d$1 && ("length" == y$1 || f && ("offset" == y$1 || "parent" == y$1) || p$2 && ("buffer" == y$1 || "byteLength" == y$1 || "byteOffset" == y$1) || s$1(y$1, v)) || h$2.push(y$1);
|
|
16871
16941
|
return h$2;
|
|
16872
16942
|
};
|
|
16873
16943
|
},
|
|
@@ -16947,7 +17017,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
16947
17017
|
};
|
|
16948
17018
|
},
|
|
16949
17019
|
8874: (t$8, e$1, r$1) => {
|
|
16950
|
-
var n$2 = r$1(6571), o$1 = r$1(2517), i$1 = r$1(91), a$1 = r$1(7993), s$1 = r$1(5906), u$1 = r$1(2175), c$1 = r$1(1522), l = r$1(7680), f = r$1(9987), p$
|
|
17020
|
+
var n$2 = r$1(6571), o$1 = r$1(2517), i$1 = r$1(91), a$1 = r$1(7993), s$1 = r$1(5906), u$1 = r$1(2175), c$1 = r$1(1522), l = r$1(7680), f = r$1(9987), p$2 = r$1(3483), d$1 = r$1(6939), h$2 = r$1(940), v = r$1(9917), y$1 = r$1(8222), m$1 = r$1(8725), T = r$1(6152), E = r$1(3226), _ = r$1(4714), g = r$1(9259), O = r$1(3679), R$2 = r$1(249), A = r$1(8582), I = "[object Arguments]", x = "[object Function]", N = "[object Object]", P = {};
|
|
16951
17021
|
P[I] = P["[object Array]"] = P["[object ArrayBuffer]"] = P["[object DataView]"] = P["[object Boolean]"] = P["[object Date]"] = P["[object Float32Array]"] = P["[object Float64Array]"] = P["[object Int8Array]"] = P["[object Int16Array]"] = P["[object Int32Array]"] = P["[object Map]"] = P["[object Number]"] = P[N] = P["[object RegExp]"] = P["[object Set]"] = P["[object String]"] = P["[object Symbol]"] = P["[object Uint8Array]"] = P["[object Uint8ClampedArray]"] = P["[object Uint16Array]"] = P["[object Uint32Array]"] = !0, P["[object Error]"] = P[x] = P["[object WeakMap]"] = !1, t$8.exports = function t$9(e$2, r$2, S, b, k, L) {
|
|
16952
17022
|
var C, M = 1 & r$2, D = 2 & r$2, w$1 = 4 & r$2;
|
|
16953
17023
|
if (S && (C = k ? S(e$2, b, k, L) : S(e$2)), void 0 !== C) return C;
|
|
@@ -16973,7 +17043,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
16973
17043
|
})) : _(e$2) && e$2.forEach((function(n$3, o$2) {
|
|
16974
17044
|
C.set(o$2, t$9(n$3, r$2, S, o$2, e$2, L));
|
|
16975
17045
|
}));
|
|
16976
|
-
var G = F ? void 0 : (w$1 ? D ? d$1 : p$
|
|
17046
|
+
var G = F ? void 0 : (w$1 ? D ? d$1 : p$2 : D ? A : R$2)(e$2);
|
|
16977
17047
|
return o$1(G || e$2, (function(n$3, o$2) {
|
|
16978
17048
|
G && (n$3 = e$2[o$2 = n$3]), i$1(C, o$2, t$9(n$3, r$2, S, o$2, e$2, L));
|
|
16979
17049
|
})), C;
|
|
@@ -16995,12 +17065,12 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
16995
17065
|
5246: (t$8, e$1, r$1) => {
|
|
16996
17066
|
var n$2 = r$1(5386), o$1 = r$1(8333), i$1 = r$1(4893), a$1 = r$1(343), s$1 = r$1(7826), u$1 = r$1(9950);
|
|
16997
17067
|
t$8.exports = function(t$9, e$2, r$2, c$1) {
|
|
16998
|
-
var l = -1, f = o$1, p$
|
|
17068
|
+
var l = -1, f = o$1, p$2 = !0, d$1 = t$9.length, h$2 = [], v = e$2.length;
|
|
16999
17069
|
if (!d$1) return h$2;
|
|
17000
|
-
r$2 && (e$2 = a$1(e$2, s$1(r$2))), c$1 ? (f = i$1, p$
|
|
17070
|
+
r$2 && (e$2 = a$1(e$2, s$1(r$2))), c$1 ? (f = i$1, p$2 = !1) : e$2.length >= 200 && (f = u$1, p$2 = !1, e$2 = new n$2(e$2));
|
|
17001
17071
|
t: for (; ++l < d$1;) {
|
|
17002
17072
|
var y$1 = t$9[l], m$1 = null == r$2 ? y$1 : r$2(y$1);
|
|
17003
|
-
if (y$1 = c$1 || 0 !== y$1 ? y$1 : 0, p$
|
|
17073
|
+
if (y$1 = c$1 || 0 !== y$1 ? y$1 : 0, p$2 && m$1 == m$1) {
|
|
17004
17074
|
for (var T = v; T--;) if (e$2[T] === m$1) continue t;
|
|
17005
17075
|
h$2.push(y$1);
|
|
17006
17076
|
} else f(e$2, m$1, c$1) || h$2.push(y$1);
|
|
@@ -17106,9 +17176,9 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
17106
17176
|
};
|
|
17107
17177
|
},
|
|
17108
17178
|
1952: (t$8, e$1, r$1) => {
|
|
17109
|
-
var n$2 = r$1(6571), o$1 = r$1(4871), i$1 = r$1(1491), a$1 = r$1(7416), s$1 = r$1(940), u$1 = r$1(6152), c$1 = r$1(3226), l = r$1(7598), f = "[object Arguments]", p$
|
|
17179
|
+
var n$2 = r$1(6571), o$1 = r$1(4871), i$1 = r$1(1491), a$1 = r$1(7416), s$1 = r$1(940), u$1 = r$1(6152), c$1 = r$1(3226), l = r$1(7598), f = "[object Arguments]", p$2 = "[object Array]", d$1 = "[object Object]", h$2 = Object.prototype.hasOwnProperty;
|
|
17110
17180
|
t$8.exports = function(t$9, e$2, r$2, v, y$1, m$1) {
|
|
17111
|
-
var T = u$1(t$9), E = u$1(e$2), _ = T ? p$
|
|
17181
|
+
var T = u$1(t$9), E = u$1(e$2), _ = T ? p$2 : s$1(t$9), g = E ? p$2 : s$1(e$2), O = (_ = _ == f ? d$1 : _) == d$1, R$2 = (g = g == f ? d$1 : g) == d$1, A = _ == g;
|
|
17112
17182
|
if (A && c$1(t$9)) {
|
|
17113
17183
|
if (!c$1(e$2)) return !1;
|
|
17114
17184
|
T = !0, O = !1;
|
|
@@ -17140,13 +17210,13 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
17140
17210
|
if (u$1 && c$1[2] ? c$1[1] !== t$9[c$1[0]] : !(c$1[0] in t$9)) return !1;
|
|
17141
17211
|
}
|
|
17142
17212
|
for (; ++a$1 < s$1;) {
|
|
17143
|
-
var l = (c$1 = r$2[a$1])[0], f = t$9[l], p$
|
|
17213
|
+
var l = (c$1 = r$2[a$1])[0], f = t$9[l], p$2 = c$1[1];
|
|
17144
17214
|
if (u$1 && c$1[2]) {
|
|
17145
17215
|
if (void 0 === f && !(l in t$9)) return !1;
|
|
17146
17216
|
} else {
|
|
17147
17217
|
var d$1 = new n$2();
|
|
17148
|
-
if (i$1) var h$2 = i$1(f, p$
|
|
17149
|
-
if (!(void 0 === h$2 ? o$1(p$
|
|
17218
|
+
if (i$1) var h$2 = i$1(f, p$2, l, t$9, e$2, d$1);
|
|
17219
|
+
if (!(void 0 === h$2 ? o$1(p$2, f, 3, i$1, d$1) : h$2)) return !1;
|
|
17150
17220
|
}
|
|
17151
17221
|
}
|
|
17152
17222
|
return !0;
|
|
@@ -17158,9 +17228,9 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
17158
17228
|
};
|
|
17159
17229
|
},
|
|
17160
17230
|
6840: (t$8, e$1, r$1) => {
|
|
17161
|
-
var n$2 = r$1(1049), o$1 = r$1(7394), i$1 = r$1(9259), a$1 = r$1(7035), s$1 = /^\[object .+?Constructor\]$/, u$1 = Function.prototype, c$1 = Object.prototype, l = u$1.toString, f = c$1.hasOwnProperty, p$
|
|
17231
|
+
var n$2 = r$1(1049), o$1 = r$1(7394), i$1 = r$1(9259), a$1 = r$1(7035), s$1 = /^\[object .+?Constructor\]$/, u$1 = Function.prototype, c$1 = Object.prototype, l = u$1.toString, f = c$1.hasOwnProperty, p$2 = RegExp("^" + l.call(f).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
17162
17232
|
t$8.exports = function(t$9) {
|
|
17163
|
-
return !(!i$1(t$9) || o$1(t$9)) && (n$2(t$9) ? p$
|
|
17233
|
+
return !(!i$1(t$9) || o$1(t$9)) && (n$2(t$9) ? p$2 : s$1).test(a$1(t$9));
|
|
17164
17234
|
};
|
|
17165
17235
|
},
|
|
17166
17236
|
4333: (t$8, e$1, r$1) => {
|
|
@@ -17274,14 +17344,14 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
17274
17344
|
var n$2 = r$1(91), o$1 = r$1(7297), i$1 = r$1(9045), a$1 = r$1(9259), s$1 = r$1(3812);
|
|
17275
17345
|
t$8.exports = function(t$9, e$2, r$2, u$1) {
|
|
17276
17346
|
if (!a$1(t$9)) return t$9;
|
|
17277
|
-
for (var c$1 = -1, l = (e$2 = o$1(e$2, t$9)).length, f = l - 1, p$
|
|
17347
|
+
for (var c$1 = -1, l = (e$2 = o$1(e$2, t$9)).length, f = l - 1, p$2 = t$9; null != p$2 && ++c$1 < l;) {
|
|
17278
17348
|
var d$1 = s$1(e$2[c$1]), h$2 = r$2;
|
|
17279
17349
|
if ("__proto__" === d$1 || "constructor" === d$1 || "prototype" === d$1) return t$9;
|
|
17280
17350
|
if (c$1 != f) {
|
|
17281
|
-
var v = p$
|
|
17282
|
-
void 0 === (h$2 = u$1 ? u$1(v, d$1, p$
|
|
17351
|
+
var v = p$2[d$1];
|
|
17352
|
+
void 0 === (h$2 = u$1 ? u$1(v, d$1, p$2) : void 0) && (h$2 = a$1(v) ? v : i$1(e$2[c$1 + 1]) ? [] : {});
|
|
17283
17353
|
}
|
|
17284
|
-
n$2(p$
|
|
17354
|
+
n$2(p$2, d$1, h$2), p$2 = p$2[d$1];
|
|
17285
17355
|
}
|
|
17286
17356
|
return t$9;
|
|
17287
17357
|
};
|
|
@@ -17346,16 +17416,16 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
17346
17416
|
7326: (t$8, e$1, r$1) => {
|
|
17347
17417
|
var n$2 = r$1(5386), o$1 = r$1(8333), i$1 = r$1(4893), a$1 = r$1(9950), s$1 = r$1(8803), u$1 = r$1(4207);
|
|
17348
17418
|
t$8.exports = function(t$9, e$2, r$2) {
|
|
17349
|
-
var c$1 = -1, l = o$1, f = t$9.length, p$
|
|
17350
|
-
if (r$2) p$
|
|
17419
|
+
var c$1 = -1, l = o$1, f = t$9.length, p$2 = !0, d$1 = [], h$2 = d$1;
|
|
17420
|
+
if (r$2) p$2 = !1, l = i$1;
|
|
17351
17421
|
else if (f >= 200) {
|
|
17352
17422
|
var v = e$2 ? null : s$1(t$9);
|
|
17353
17423
|
if (v) return u$1(v);
|
|
17354
|
-
p$
|
|
17424
|
+
p$2 = !1, l = a$1, h$2 = new n$2();
|
|
17355
17425
|
} else h$2 = e$2 ? [] : d$1;
|
|
17356
17426
|
t: for (; ++c$1 < f;) {
|
|
17357
17427
|
var y$1 = t$9[c$1], m$1 = e$2 ? e$2(y$1) : y$1;
|
|
17358
|
-
if (y$1 = r$2 || 0 !== y$1 ? y$1 : 0, p$
|
|
17428
|
+
if (y$1 = r$2 || 0 !== y$1 ? y$1 : 0, p$2 && m$1 == m$1) {
|
|
17359
17429
|
for (var T = h$2.length; T--;) if (h$2[T] === m$1) continue t;
|
|
17360
17430
|
e$2 && h$2.push(m$1), d$1.push(y$1);
|
|
17361
17431
|
} else l(h$2, m$1, r$2) || (h$2 !== d$1 && h$2.push(m$1), d$1.push(y$1));
|
|
@@ -17562,8 +17632,8 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
17562
17632
|
t$8.exports = function(t$9, e$2, r$2, a$1, s$1, u$1) {
|
|
17563
17633
|
var c$1 = 1 & r$2, l = t$9.length, f = e$2.length;
|
|
17564
17634
|
if (l != f && !(c$1 && f > l)) return !1;
|
|
17565
|
-
var p$
|
|
17566
|
-
if (p$
|
|
17635
|
+
var p$2 = u$1.get(t$9), d$1 = u$1.get(e$2);
|
|
17636
|
+
if (p$2 && d$1) return p$2 == e$2 && d$1 == t$9;
|
|
17567
17637
|
var h$2 = -1, v = !0, y$1 = 2 & r$2 ? new n$2() : void 0;
|
|
17568
17638
|
for (u$1.set(t$9, e$2), u$1.set(e$2, t$9); ++h$2 < l;) {
|
|
17569
17639
|
var m$1 = t$9[h$2], T = e$2[h$2];
|
|
@@ -17590,7 +17660,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
17590
17660
|
},
|
|
17591
17661
|
1491: (t$8, e$1, r$1) => {
|
|
17592
17662
|
var n$2 = r$1(857), o$1 = r$1(9162), i$1 = r$1(1225), a$1 = r$1(4871), s$1 = r$1(5179), u$1 = r$1(4207), c$1 = n$2 ? n$2.prototype : void 0, l = c$1 ? c$1.valueOf : void 0;
|
|
17593
|
-
t$8.exports = function(t$9, e$2, r$2, n$3, c$2, f, p$
|
|
17663
|
+
t$8.exports = function(t$9, e$2, r$2, n$3, c$2, f, p$2) {
|
|
17594
17664
|
switch (r$2) {
|
|
17595
17665
|
case "[object DataView]":
|
|
17596
17666
|
if (t$9.byteLength != e$2.byteLength || t$9.byteOffset != e$2.byteOffset) return !1;
|
|
@@ -17606,11 +17676,11 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
17606
17676
|
case "[object Set]":
|
|
17607
17677
|
var h$2 = 1 & n$3;
|
|
17608
17678
|
if (d$1 || (d$1 = u$1), t$9.size != e$2.size && !h$2) return !1;
|
|
17609
|
-
var v = p$
|
|
17679
|
+
var v = p$2.get(t$9);
|
|
17610
17680
|
if (v) return v == e$2;
|
|
17611
|
-
n$3 |= 2, p$
|
|
17612
|
-
var y$1 = a$1(d$1(t$9), d$1(e$2), n$3, c$2, f, p$
|
|
17613
|
-
return p$
|
|
17681
|
+
n$3 |= 2, p$2.set(t$9, e$2);
|
|
17682
|
+
var y$1 = a$1(d$1(t$9), d$1(e$2), n$3, c$2, f, p$2);
|
|
17683
|
+
return p$2.delete(t$9), y$1;
|
|
17614
17684
|
case "[object Symbol]": if (l) return l.call(t$9) == l.call(e$2);
|
|
17615
17685
|
}
|
|
17616
17686
|
return !1;
|
|
@@ -17622,21 +17692,21 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
17622
17692
|
var u$1 = 1 & r$2, c$1 = n$2(t$9), l = c$1.length;
|
|
17623
17693
|
if (l != n$2(e$2).length && !u$1) return !1;
|
|
17624
17694
|
for (var f = l; f--;) {
|
|
17625
|
-
var p$
|
|
17626
|
-
if (!(u$1 ? p$
|
|
17695
|
+
var p$2 = c$1[f];
|
|
17696
|
+
if (!(u$1 ? p$2 in e$2 : o$1.call(e$2, p$2))) return !1;
|
|
17627
17697
|
}
|
|
17628
17698
|
var d$1 = s$1.get(t$9), h$2 = s$1.get(e$2);
|
|
17629
17699
|
if (d$1 && h$2) return d$1 == e$2 && h$2 == t$9;
|
|
17630
17700
|
var v = !0;
|
|
17631
17701
|
s$1.set(t$9, e$2), s$1.set(e$2, t$9);
|
|
17632
17702
|
for (var y$1 = u$1; ++f < l;) {
|
|
17633
|
-
var m$1 = t$9[p$
|
|
17634
|
-
if (i$1) var E = u$1 ? i$1(T, m$1, p$
|
|
17703
|
+
var m$1 = t$9[p$2 = c$1[f]], T = e$2[p$2];
|
|
17704
|
+
if (i$1) var E = u$1 ? i$1(T, m$1, p$2, e$2, t$9, s$1) : i$1(m$1, T, p$2, t$9, e$2, s$1);
|
|
17635
17705
|
if (!(void 0 === E ? m$1 === T || a$1(m$1, T, r$2, i$1, s$1) : E)) {
|
|
17636
17706
|
v = !1;
|
|
17637
17707
|
break;
|
|
17638
17708
|
}
|
|
17639
|
-
y$1 || (y$1 = "constructor" == p$
|
|
17709
|
+
y$1 || (y$1 = "constructor" == p$2);
|
|
17640
17710
|
}
|
|
17641
17711
|
if (v && !y$1) {
|
|
17642
17712
|
var _ = t$9.constructor, g = e$2.constructor;
|
|
@@ -17719,14 +17789,14 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
17719
17789
|
} : a$1;
|
|
17720
17790
|
},
|
|
17721
17791
|
940: (t$8, e$1, r$1) => {
|
|
17722
|
-
var n$2 = r$1(9515), o$1 = r$1(326), i$1 = r$1(2760), a$1 = r$1(2143), s$1 = r$1(3215), u$1 = r$1(3366), c$1 = r$1(7035), l = "[object Map]", f = "[object Promise]", p$
|
|
17723
|
-
(n$2 && _(new n$2(/* @__PURE__ */ new ArrayBuffer(1))) != h$2 || o$1 && _(new o$1()) != l || i$1 && _(i$1.resolve()) != f || a$1 && _(new a$1()) != p$
|
|
17792
|
+
var n$2 = r$1(9515), o$1 = r$1(326), i$1 = r$1(2760), a$1 = r$1(2143), s$1 = r$1(3215), u$1 = r$1(3366), c$1 = r$1(7035), l = "[object Map]", f = "[object Promise]", p$2 = "[object Set]", d$1 = "[object WeakMap]", h$2 = "[object DataView]", v = c$1(n$2), y$1 = c$1(o$1), m$1 = c$1(i$1), T = c$1(a$1), E = c$1(s$1), _ = u$1;
|
|
17793
|
+
(n$2 && _(new n$2(/* @__PURE__ */ new ArrayBuffer(1))) != h$2 || o$1 && _(new o$1()) != l || i$1 && _(i$1.resolve()) != f || a$1 && _(new a$1()) != p$2 || s$1 && _(new s$1()) != d$1) && (_ = function(t$9) {
|
|
17724
17794
|
var e$2 = u$1(t$9), r$2 = "[object Object]" == e$2 ? t$9.constructor : void 0, n$3 = r$2 ? c$1(r$2) : "";
|
|
17725
17795
|
if (n$3) switch (n$3) {
|
|
17726
17796
|
case v: return h$2;
|
|
17727
17797
|
case y$1: return l;
|
|
17728
17798
|
case m$1: return f;
|
|
17729
|
-
case T: return p$
|
|
17799
|
+
case T: return p$2;
|
|
17730
17800
|
case E: return d$1;
|
|
17731
17801
|
}
|
|
17732
17802
|
return e$2;
|
|
@@ -17741,11 +17811,11 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
17741
17811
|
var n$2 = r$1(7297), o$1 = r$1(9631), i$1 = r$1(6152), a$1 = r$1(9045), s$1 = r$1(1158), u$1 = r$1(3812);
|
|
17742
17812
|
t$8.exports = function(t$9, e$2, r$2) {
|
|
17743
17813
|
for (var c$1 = -1, l = (e$2 = n$2(e$2, t$9)).length, f = !1; ++c$1 < l;) {
|
|
17744
|
-
var p$
|
|
17745
|
-
if (!(f = null != t$9 && r$2(t$9, p$
|
|
17746
|
-
t$9 = t$9[p$
|
|
17814
|
+
var p$2 = u$1(e$2[c$1]);
|
|
17815
|
+
if (!(f = null != t$9 && r$2(t$9, p$2))) break;
|
|
17816
|
+
t$9 = t$9[p$2];
|
|
17747
17817
|
}
|
|
17748
|
-
return f || ++c$1 != l ? f : !!(l = null == t$9 ? 0 : t$9.length) && s$1(l) && a$1(p$
|
|
17818
|
+
return f || ++c$1 != l ? f : !!(l = null == t$9 ? 0 : t$9.length) && s$1(l) && a$1(p$2, l) && (i$1(t$9) || o$1(t$9));
|
|
17749
17819
|
};
|
|
17750
17820
|
},
|
|
17751
17821
|
3880: (t$8) => {
|
|
@@ -18196,8 +18266,8 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
18196
18266
|
t$8.exports = n$2((function(t$9, e$2) {
|
|
18197
18267
|
t$9 = Object(t$9);
|
|
18198
18268
|
var r$2 = -1, n$3 = e$2.length, c$1 = n$3 > 2 ? e$2[2] : void 0;
|
|
18199
|
-
for (c$1 && i$1(e$2[0], e$2[1], c$1) && (n$3 = 1); ++r$2 < n$3;) for (var l = e$2[r$2], f = a$1(l), p$
|
|
18200
|
-
var h$2 = f[p$
|
|
18269
|
+
for (c$1 && i$1(e$2[0], e$2[1], c$1) && (n$3 = 1); ++r$2 < n$3;) for (var l = e$2[r$2], f = a$1(l), p$2 = -1, d$1 = f.length; ++p$2 < d$1;) {
|
|
18270
|
+
var h$2 = f[p$2], v = t$9[h$2];
|
|
18201
18271
|
(void 0 === v || o$1(v, s$1[h$2]) && !u$1.call(t$9, h$2)) && (t$9[h$2] = l[h$2]);
|
|
18202
18272
|
}
|
|
18203
18273
|
return t$9;
|
|
@@ -19117,15 +19187,15 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
19117
19187
|
i$1(" "),
|
|
19118
19188
|
i$1("")
|
|
19119
19189
|
];
|
|
19120
|
-
function p$
|
|
19121
|
-
return p$
|
|
19190
|
+
function p$2() {}
|
|
19191
|
+
return p$2.prototype.visitChildren = function(t$10) {
|
|
19122
19192
|
for (var e$3 in t$10) {
|
|
19123
19193
|
var r$3 = t$10[e$3];
|
|
19124
19194
|
t$10.hasOwnProperty(e$3) && (void 0 !== r$3.type ? this.visit(r$3) : Array.isArray(r$3) && r$3.forEach((function(t$11) {
|
|
19125
19195
|
this.visit(t$11);
|
|
19126
19196
|
}), this));
|
|
19127
19197
|
}
|
|
19128
|
-
}, p$
|
|
19198
|
+
}, p$2.prototype.visit = function(t$10) {
|
|
19129
19199
|
switch (t$10.type) {
|
|
19130
19200
|
case "Pattern":
|
|
19131
19201
|
this.visitPattern(t$10);
|
|
@@ -19172,9 +19242,9 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
19172
19242
|
case "Quantifier": this.visitQuantifier(t$10);
|
|
19173
19243
|
}
|
|
19174
19244
|
this.visitChildren(t$10);
|
|
19175
|
-
}, p$
|
|
19245
|
+
}, p$2.prototype.visitPattern = function(t$10) {}, p$2.prototype.visitFlags = function(t$10) {}, p$2.prototype.visitDisjunction = function(t$10) {}, p$2.prototype.visitAlternative = function(t$10) {}, p$2.prototype.visitStartAnchor = function(t$10) {}, p$2.prototype.visitEndAnchor = function(t$10) {}, p$2.prototype.visitWordBoundary = function(t$10) {}, p$2.prototype.visitNonWordBoundary = function(t$10) {}, p$2.prototype.visitLookahead = function(t$10) {}, p$2.prototype.visitNegativeLookahead = function(t$10) {}, p$2.prototype.visitCharacter = function(t$10) {}, p$2.prototype.visitSet = function(t$10) {}, p$2.prototype.visitGroup = function(t$10) {}, p$2.prototype.visitGroupBackReference = function(t$10) {}, p$2.prototype.visitQuantifier = function(t$10) {}, {
|
|
19176
19246
|
RegExpParser: t$9,
|
|
19177
|
-
BaseRegExpVisitor: p$
|
|
19247
|
+
BaseRegExpVisitor: p$2,
|
|
19178
19248
|
VERSION: "0.5.0"
|
|
19179
19249
|
};
|
|
19180
19250
|
}) ? r$1.apply(e$1, []) : r$1) || (t$8.exports = n$2);
|
|
@@ -19216,7 +19286,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
19216
19286
|
return t$9 && t$9.__esModule ? t$9 : { default: t$9 };
|
|
19217
19287
|
};
|
|
19218
19288
|
Object.defineProperty(e$1, "__esModule", { value: !0 }), e$1.validateRedundantMethods = e$1.validateMissingCstMethods = e$1.validateVisitor = e$1.CstVisitorDefinitionError = e$1.createBaseVisitorConstructorWithDefaults = e$1.createBaseSemanticVisitorConstructor = e$1.defaultVisit = void 0;
|
|
19219
|
-
var o$1, i$1 = n$2(r$1(5455)), a$1 = n$2(r$1(417)), s$1 = n$2(r$1(6152)), u$1 = n$2(r$1(6760)), c$1 = n$2(r$1(9756)), l = n$2(r$1(882)), f = n$2(r$1(249)), p$
|
|
19289
|
+
var o$1, i$1 = n$2(r$1(5455)), a$1 = n$2(r$1(417)), s$1 = n$2(r$1(6152)), u$1 = n$2(r$1(6760)), c$1 = n$2(r$1(9756)), l = n$2(r$1(882)), f = n$2(r$1(249)), p$2 = n$2(r$1(1049)), d$1 = n$2(r$1(4336)), h$2 = n$2(r$1(1886)), v = r$1(4105);
|
|
19220
19290
|
function y$1(t$9, e$2) {
|
|
19221
19291
|
for (var r$2 = (0, f.default)(t$9), n$3 = r$2.length, o$2 = 0; o$2 < n$3; o$2++) for (var i$2 = t$9[r$2[o$2]], a$2 = i$2.length, s$2 = 0; s$2 < a$2; s$2++) {
|
|
19222
19292
|
var u$2 = i$2[s$2];
|
|
@@ -19229,7 +19299,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
19229
19299
|
}
|
|
19230
19300
|
function T(t$9, e$2) {
|
|
19231
19301
|
var r$2 = (0, l.default)(e$2, (function(e$3) {
|
|
19232
|
-
return !1 === (0, p$
|
|
19302
|
+
return !1 === (0, p$2.default)(t$9[e$3]);
|
|
19233
19303
|
})), n$3 = (0, u$1.default)(r$2, (function(e$3) {
|
|
19234
19304
|
return {
|
|
19235
19305
|
msg: "Missing visitor method: <".concat(e$3, "> on ").concat(t$9.constructor.name, " CST Visitor."),
|
|
@@ -19272,7 +19342,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
19272
19342
|
];
|
|
19273
19343
|
function _(t$9, e$2) {
|
|
19274
19344
|
var r$2 = [];
|
|
19275
|
-
for (var n$3 in t$9) !(0, p$
|
|
19345
|
+
for (var n$3 in t$9) !(0, p$2.default)(t$9[n$3]) || (0, h$2.default)(E, n$3) || (0, h$2.default)(e$2, n$3) || r$2.push({
|
|
19276
19346
|
msg: "Redundant visitor method: <".concat(n$3, "> on ").concat(t$9.constructor.name, " CST Visitor\n") + "There is no Grammar Rule corresponding to this method's name.\n",
|
|
19277
19347
|
type: o$1.REDUNDANT_METHOD,
|
|
19278
19348
|
methodName: n$3
|
|
@@ -19305,10 +19375,10 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
19305
19375
|
return "[".concat((0, a$1.default)(t$10, (function(t$11) {
|
|
19306
19376
|
return (0, o$1.tokenLabel)(t$11);
|
|
19307
19377
|
})).join(", "), "]");
|
|
19308
|
-
})), p$
|
|
19378
|
+
})), p$2 = (0, a$1.default)(f, (function(t$10, e$3) {
|
|
19309
19379
|
return " ".concat(e$3 + 1, ". ").concat(t$10);
|
|
19310
19380
|
}));
|
|
19311
|
-
return u$2 + "one of these possible Token sequences:\n".concat(p$
|
|
19381
|
+
return u$2 + "one of these possible Token sequences:\n".concat(p$2.join("\n")) + c$2;
|
|
19312
19382
|
},
|
|
19313
19383
|
buildEarlyExitMessage: function(t$9) {
|
|
19314
19384
|
var e$2 = t$9.expectedIterationPaths, r$2 = t$9.actual, n$3 = t$9.customUserDescription, s$2 = (t$9.ruleName, "Expecting: "), u$2 = "\nbut found: '" + (0, i$1.default)(r$2).image + "'";
|
|
@@ -19324,8 +19394,8 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
19324
19394
|
return "Invalid grammar, reference to a rule which is not defined: ->" + e$2.nonTerminalName + "<-\ninside top level rule: ->" + t$9.name + "<-";
|
|
19325
19395
|
} }, e$1.defaultGrammarValidatorErrorProvider = {
|
|
19326
19396
|
buildDuplicateFoundError: function(t$9, e$2) {
|
|
19327
|
-
var r$2, n$3 = t$9.name, o$2 = (0, i$1.default)(e$2), a$2 = o$2.idx, s$2 = (0, c$1.getProductionDslName)(o$2), l = (r$2 = o$2) instanceof u$1.Terminal ? r$2.terminalType.name : r$2 instanceof u$1.NonTerminal ? r$2.nonTerminalName : "", f = a$2 > 0, p$
|
|
19328
|
-
return (p$
|
|
19397
|
+
var r$2, n$3 = t$9.name, o$2 = (0, i$1.default)(e$2), a$2 = o$2.idx, s$2 = (0, c$1.getProductionDslName)(o$2), l = (r$2 = o$2) instanceof u$1.Terminal ? r$2.terminalType.name : r$2 instanceof u$1.NonTerminal ? r$2.nonTerminalName : "", f = a$2 > 0, p$2 = "->".concat(s$2).concat(f ? a$2 : "", "<- ").concat(l ? "with argument: ->".concat(l, "<-") : "", "\n appears more than once (").concat(e$2.length, " times) in the top level rule: ->").concat(n$3, "<-. \n For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES \n ");
|
|
19398
|
+
return (p$2 = p$2.replace(/[ \t]+/g, " ")).replace(/\s\s+/g, "\n");
|
|
19329
19399
|
},
|
|
19330
19400
|
buildNamespaceConflictError: function(t$9) {
|
|
19331
19401
|
return "Namespace conflict found in grammar.\n" + "The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <".concat(t$9.name, ">.\n") + "To resolve this make sure each Terminal and Non-Terminal names are unique\nThis is easy to accomplish by using the convention that Terminal names start with an uppercase letter\nand Non-Terminal names start with a lower case letter.";
|
|
@@ -19396,7 +19466,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
19396
19466
|
Object.freeze(f), e$1.isRecognitionException = function(t$9) {
|
|
19397
19467
|
return (0, a$1.default)(f, t$9.name);
|
|
19398
19468
|
};
|
|
19399
|
-
var p$
|
|
19469
|
+
var p$2 = function(t$9) {
|
|
19400
19470
|
function e$2(e$3, r$2) {
|
|
19401
19471
|
var n$3 = this.constructor, o$2 = t$9.call(this, e$3) || this;
|
|
19402
19472
|
return o$2.token = r$2, o$2.resyncedTokens = [], Object.setPrototypeOf(o$2, n$3.prototype), Error.captureStackTrace && Error.captureStackTrace(o$2, o$2.constructor), o$2;
|
|
@@ -19409,28 +19479,28 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
19409
19479
|
return o$2.previousToken = n$3, o$2.name = s$1, o$2;
|
|
19410
19480
|
}
|
|
19411
19481
|
return o$1(e$2, t$9), e$2;
|
|
19412
|
-
}(p$
|
|
19482
|
+
}(p$2);
|
|
19413
19483
|
e$1.NoViableAltException = function(t$9) {
|
|
19414
19484
|
function e$2(e$3, r$2, n$3) {
|
|
19415
19485
|
var o$2 = t$9.call(this, e$3, r$2) || this;
|
|
19416
19486
|
return o$2.previousToken = n$3, o$2.name = u$1, o$2;
|
|
19417
19487
|
}
|
|
19418
19488
|
return o$1(e$2, t$9), e$2;
|
|
19419
|
-
}(p$
|
|
19489
|
+
}(p$2);
|
|
19420
19490
|
e$1.NotAllInputParsedException = function(t$9) {
|
|
19421
19491
|
function e$2(e$3, r$2) {
|
|
19422
19492
|
var n$3 = t$9.call(this, e$3, r$2) || this;
|
|
19423
19493
|
return n$3.name = l, n$3;
|
|
19424
19494
|
}
|
|
19425
19495
|
return o$1(e$2, t$9), e$2;
|
|
19426
|
-
}(p$
|
|
19496
|
+
}(p$2);
|
|
19427
19497
|
e$1.EarlyExitException = function(t$9) {
|
|
19428
19498
|
function e$2(e$3, r$2, n$3) {
|
|
19429
19499
|
var o$2 = t$9.call(this, e$3, r$2) || this;
|
|
19430
19500
|
return o$2.previousToken = n$3, o$2.name = c$1, o$2;
|
|
19431
19501
|
}
|
|
19432
19502
|
return o$1(e$2, t$9), e$2;
|
|
19433
|
-
}(p$
|
|
19503
|
+
}(p$2);
|
|
19434
19504
|
},
|
|
19435
19505
|
3870: function(t$8, e$1, r$1) {
|
|
19436
19506
|
var n$2, o$1 = this && this.__extends || (n$2 = function(t$9, e$2) {
|
|
@@ -19449,7 +19519,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
19449
19519
|
return t$9 && t$9.__esModule ? t$9 : { default: t$9 };
|
|
19450
19520
|
};
|
|
19451
19521
|
Object.defineProperty(e$1, "__esModule", { value: !0 }), e$1.checkPrefixAlternativesAmbiguities = e$1.validateSomeNonEmptyLookaheadPath = e$1.validateTooManyAlts = e$1.RepetitionCollector = e$1.validateAmbiguousAlternationAlternatives = e$1.validateEmptyOrAlternative = e$1.getFirstNoneTerminal = e$1.validateNoLeftRecursion = e$1.validateRuleIsOverridden = e$1.validateRuleDoesNotAlreadyExist = e$1.OccurrenceValidationCollector = e$1.identifyProductionForDuplicates = e$1.validateGrammar = void 0;
|
|
19452
|
-
var a$1 = i$1(r$1(3237)), s$1 = i$1(r$1(5455)), u$1 = i$1(r$1(7264)), c$1 = i$1(r$1(5676)), l = i$1(r$1(882)), f = i$1(r$1(2070)), p$
|
|
19522
|
+
var a$1 = i$1(r$1(3237)), s$1 = i$1(r$1(5455)), u$1 = i$1(r$1(7264)), c$1 = i$1(r$1(5676)), l = i$1(r$1(882)), f = i$1(r$1(2070)), p$2 = i$1(r$1(7335)), d$1 = i$1(r$1(6760)), h$2 = i$1(r$1(9756)), v = i$1(r$1(3440)), y$1 = i$1(r$1(8215)), m$1 = i$1(r$1(2208)), T = i$1(r$1(8346)), E = i$1(r$1(1886)), _ = i$1(r$1(5838)), g = i$1(r$1(4004)), O = r$1(2941), R$2 = r$1(7729), A = r$1(4677), I = r$1(9985), x = r$1(7729), N = r$1(7729), P = i$1(r$1(4934)), S = i$1(r$1(417)), b = r$1(1201);
|
|
19453
19523
|
function k(t$9) {
|
|
19454
19524
|
return "".concat((0, R$2.getProductionDslName)(t$9), "_#_").concat(t$9.idx, "_#_").concat(L(t$9));
|
|
19455
19525
|
}
|
|
@@ -19483,7 +19553,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
19483
19553
|
})), l$1 = (0, _.default)(t$9, (function(t$10) {
|
|
19484
19554
|
return U(t$10, e$2, n$3);
|
|
19485
19555
|
})), f$1 = W(t$9, e$2, n$3));
|
|
19486
|
-
var p$
|
|
19556
|
+
var p$3 = function(t$10, e$3, r$3) {
|
|
19487
19557
|
var n$4 = [], o$3 = (0, d$1.default)(e$3, (function(t$11) {
|
|
19488
19558
|
return t$11.name;
|
|
19489
19559
|
}));
|
|
@@ -19503,7 +19573,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
19503
19573
|
})), g$1 = (0, _.default)(t$9, (function(e$3) {
|
|
19504
19574
|
return M(e$3, t$9, o$2, n$3);
|
|
19505
19575
|
}));
|
|
19506
|
-
return i$2.concat(f$1, u$2, c$2, l$1, p$
|
|
19576
|
+
return i$2.concat(f$1, u$2, c$2, l$1, p$3, y$2, g$1);
|
|
19507
19577
|
}, e$1.identifyProductionForDuplicates = k;
|
|
19508
19578
|
var C = function(t$9) {
|
|
19509
19579
|
function e$2() {
|
|
@@ -19558,7 +19628,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
19558
19628
|
type: O.ParserDefinitionErrorType.LEFT_RECURSION,
|
|
19559
19629
|
ruleName: a$2
|
|
19560
19630
|
});
|
|
19561
|
-
var u$2 = (0, p$
|
|
19631
|
+
var u$2 = (0, p$2.default)(i$2, n$3.concat([t$9])), c$2 = (0, _.default)(u$2, (function(e$3) {
|
|
19562
19632
|
var o$3 = (0, g.default)(n$3);
|
|
19563
19633
|
return o$3.push(e$3), D(t$9, e$3, r$2, o$3);
|
|
19564
19634
|
}));
|
|
@@ -19756,7 +19826,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
19756
19826
|
var o$1 = n$2(r$1(5676)), i$1 = n$2(r$1(5652)), a$1 = n$2(r$1(6760)), s$1 = r$1(7729), u$1 = r$1(7729);
|
|
19757
19827
|
function c$1(t$9) {
|
|
19758
19828
|
if (t$9 instanceof s$1.NonTerminal) return c$1(t$9.referencedRule);
|
|
19759
|
-
if (t$9 instanceof s$1.Terminal) return p$
|
|
19829
|
+
if (t$9 instanceof s$1.Terminal) return p$2(t$9);
|
|
19760
19830
|
if ((0, u$1.isSequenceProd)(t$9)) return l(t$9);
|
|
19761
19831
|
if ((0, u$1.isBranchingProd)(t$9)) return f(t$9);
|
|
19762
19832
|
throw Error("non exhaustive match");
|
|
@@ -19771,10 +19841,10 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
19771
19841
|
}));
|
|
19772
19842
|
return (0, i$1.default)((0, o$1.default)(e$2));
|
|
19773
19843
|
}
|
|
19774
|
-
function p$
|
|
19844
|
+
function p$2(t$9) {
|
|
19775
19845
|
return [t$9.terminalType];
|
|
19776
19846
|
}
|
|
19777
|
-
e$1.first = c$1, e$1.firstForSequence = l, e$1.firstForBranching = f, e$1.firstForTerminal = p$
|
|
19847
|
+
e$1.first = c$1, e$1.firstForSequence = l, e$1.firstForBranching = f, e$1.firstForTerminal = p$2;
|
|
19778
19848
|
},
|
|
19779
19849
|
4917: function(t$8, e$1, r$1) {
|
|
19780
19850
|
var n$2, o$1 = this && this.__extends || (n$2 = function(t$9, e$2) {
|
|
@@ -19793,7 +19863,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
19793
19863
|
return t$9 && t$9.__esModule ? t$9 : { default: t$9 };
|
|
19794
19864
|
};
|
|
19795
19865
|
Object.defineProperty(e$1, "__esModule", { value: !0 }), e$1.buildInProdFollowPrefix = e$1.buildBetweenProdsFollowPrefix = e$1.computeAllProdsFollows = e$1.ResyncFollowsWalker = void 0;
|
|
19796
|
-
var a$1 = r$1(8567), s$1 = r$1(8052), u$1 = i$1(r$1(9756)), c$1 = i$1(r$1(19)), l = r$1(3710), f = r$1(7729), p$
|
|
19866
|
+
var a$1 = r$1(8567), s$1 = r$1(8052), u$1 = i$1(r$1(9756)), c$1 = i$1(r$1(19)), l = r$1(3710), f = r$1(7729), p$2 = function(t$9) {
|
|
19797
19867
|
function e$2(e$3) {
|
|
19798
19868
|
var r$2 = t$9.call(this) || this;
|
|
19799
19869
|
return r$2.topProd = e$3, r$2.follows = {}, r$2;
|
|
@@ -19808,10 +19878,10 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
19808
19878
|
function d$1(t$9, e$2) {
|
|
19809
19879
|
return t$9.name + e$2 + l.IN;
|
|
19810
19880
|
}
|
|
19811
|
-
e$1.ResyncFollowsWalker = p$
|
|
19881
|
+
e$1.ResyncFollowsWalker = p$2, e$1.computeAllProdsFollows = function(t$9) {
|
|
19812
19882
|
var e$2 = {};
|
|
19813
19883
|
return (0, u$1.default)(t$9, (function(t$10) {
|
|
19814
|
-
var r$2 = new p$
|
|
19884
|
+
var r$2 = new p$2(t$10).startWalking();
|
|
19815
19885
|
(0, c$1.default)(e$2, r$2);
|
|
19816
19886
|
})), e$2;
|
|
19817
19887
|
}, e$1.buildBetweenProdsFollowPrefix = d$1, e$1.buildInProdFollowPrefix = function(t$9) {
|
|
@@ -19850,7 +19920,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
19850
19920
|
return t$9 && t$9.__esModule ? t$9 : { default: t$9 };
|
|
19851
19921
|
};
|
|
19852
19922
|
Object.defineProperty(e$1, "__esModule", { value: !0 }), e$1.nextPossibleTokensAfter = e$1.possiblePathsFrom = e$1.NextTerminalAfterAtLeastOneSepWalker = e$1.NextTerminalAfterAtLeastOneWalker = e$1.NextTerminalAfterManySepWalker = e$1.NextTerminalAfterManyWalker = e$1.AbstractNextTerminalAfterProductionWalker = e$1.NextAfterTokenWalker = e$1.AbstractNextPossibleTokensWalker = void 0;
|
|
19853
|
-
var a$1 = r$1(8567), s$1 = i$1(r$1(3237)), u$1 = i$1(r$1(5455)), c$1 = i$1(r$1(4934)), l = i$1(r$1(7264)), f = i$1(r$1(6974)), p$
|
|
19923
|
+
var a$1 = r$1(8567), s$1 = i$1(r$1(3237)), u$1 = i$1(r$1(5455)), c$1 = i$1(r$1(4934)), l = i$1(r$1(7264)), f = i$1(r$1(6974)), p$2 = i$1(r$1(9756)), d$1 = i$1(r$1(4004)), h$2 = r$1(8052), v = r$1(7729), y$1 = function(t$9) {
|
|
19854
19924
|
function e$2(e$3, r$2) {
|
|
19855
19925
|
var n$3 = t$9.call(this) || this;
|
|
19856
19926
|
return n$3.topProd = e$3, n$3.path = r$2, n$3.possibleTokTypes = [], n$3.nextProductionName = "", n$3.nextProductionOccurrence = 0, n$3.found = !1, n$3.isAtEndOfPath = !1, n$3;
|
|
@@ -19971,7 +20041,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
19971
20041
|
o$2 = a$2(c$2);
|
|
19972
20042
|
} else if (s$2 instanceof v.Repetition) c$2 = s$2.definition.concat([new v.Repetition({ definition: s$2.definition })]), o$2 = a$2(c$2);
|
|
19973
20043
|
else {
|
|
19974
|
-
if (s$2 instanceof v.Alternation) return (0, p$
|
|
20044
|
+
if (s$2 instanceof v.Alternation) return (0, p$2.default)(s$2.definition, (function(t$10) {
|
|
19975
20045
|
!1 === (0, u$1.default)(t$10.definition) && (o$2 = a$2(t$10.definition));
|
|
19976
20046
|
})), o$2;
|
|
19977
20047
|
if (!(s$2 instanceof v.Terminal)) throw Error("non exhaustive match");
|
|
@@ -19985,7 +20055,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
19985
20055
|
suffixDef: (0, l.default)(e$2, i$2)
|
|
19986
20056
|
}), o$2;
|
|
19987
20057
|
}, e$1.nextPossibleTokensAfter = function(t$9, e$2, r$2, n$3) {
|
|
19988
|
-
var o$2 = "EXIT_NONE_TERMINAL", i$2 = [o$2], a$2 = "EXIT_ALTERNATIVE", s$2 = !1, p$
|
|
20058
|
+
var o$2 = "EXIT_NONE_TERMINAL", i$2 = [o$2], a$2 = "EXIT_ALTERNATIVE", s$2 = !1, p$3 = e$2.length, h$3 = p$3 - n$3 - 1, y$2 = [], m$1 = [];
|
|
19989
20059
|
for (m$1.push({
|
|
19990
20060
|
idx: -1,
|
|
19991
20061
|
def: t$9,
|
|
@@ -20005,7 +20075,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
20005
20075
|
occurrenceStack: (0, c$1.default)(O$1)
|
|
20006
20076
|
};
|
|
20007
20077
|
m$1.push(I);
|
|
20008
|
-
} else if (A instanceof v.Terminal) if (_ < p$
|
|
20078
|
+
} else if (A instanceof v.Terminal) if (_ < p$3 - 1) {
|
|
20009
20079
|
var x = _ + 1;
|
|
20010
20080
|
r$2(e$2[x], A.terminalType) && (I = {
|
|
20011
20081
|
idx: x,
|
|
@@ -20014,7 +20084,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
20014
20084
|
occurrenceStack: O$1
|
|
20015
20085
|
}, m$1.push(I));
|
|
20016
20086
|
} else {
|
|
20017
|
-
if (_ !== p$
|
|
20087
|
+
if (_ !== p$3 - 1) throw Error("non exhaustive match");
|
|
20018
20088
|
y$2.push({
|
|
20019
20089
|
nextTokenType: A.terminalType,
|
|
20020
20090
|
nextTokenOccurrence: A.idx,
|
|
@@ -20147,7 +20217,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
20147
20217
|
return t$9 && t$9.__esModule ? t$9 : { default: t$9 };
|
|
20148
20218
|
};
|
|
20149
20219
|
Object.defineProperty(e$1, "__esModule", { value: !0 }), e$1.areTokenCategoriesNotUsed = e$1.isStrictPrefixOfPath = e$1.containsPath = e$1.getLookaheadPathsForOptionalProd = e$1.getLookaheadPathsForOr = e$1.lookAheadSequenceFromAlternatives = e$1.buildSingleAlternativeLookaheadFunction = e$1.buildAlternativesLookAheadFunc = e$1.buildLookaheadFuncForOptionalProd = e$1.buildLookaheadFuncForOr = e$1.getProdType = e$1.PROD_TYPE = void 0;
|
|
20150
|
-
var a$1, s$1 = i$1(r$1(5455)), u$1 = i$1(r$1(5676)), c$1 = i$1(r$1(9794)), l = i$1(r$1(6760)), f = i$1(r$1(9756)), p$
|
|
20220
|
+
var a$1, s$1 = i$1(r$1(5455)), u$1 = i$1(r$1(5676)), c$1 = i$1(r$1(9794)), l = i$1(r$1(6760)), f = i$1(r$1(9756)), p$2 = i$1(r$1(3352)), d$1 = i$1(r$1(8215)), h$2 = r$1(9985), v = r$1(8567), y$1 = r$1(1201), m$1 = r$1(7729), T = r$1(7729);
|
|
20151
20221
|
(function(t$9) {
|
|
20152
20222
|
t$9[t$9.OPTION = 0] = "OPTION", t$9[t$9.REPETITION = 1] = "REPETITION", t$9[t$9.REPETITION_MANDATORY = 2] = "REPETITION_MANDATORY", t$9[t$9.REPETITION_MANDATORY_WITH_SEPARATOR = 3] = "REPETITION_MANDATORY_WITH_SEPARATOR", t$9[t$9.REPETITION_WITH_SEPARATOR = 4] = "REPETITION_WITH_SEPARATOR", t$9[t$9.ALTERNATION = 5] = "ALTERNATION";
|
|
20153
20223
|
})(a$1 = e$1.PROD_TYPE || (e$1.PROD_TYPE = {})), e$1.getProdType = function(t$9) {
|
|
@@ -20176,7 +20246,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
20176
20246
|
})), i$3 = 0; i$3 < o$2; i$3++) {
|
|
20177
20247
|
var a$3 = t$9[i$3], s$3 = a$3.length, u$2 = n$4[i$3];
|
|
20178
20248
|
if (void 0 === u$2 || !1 !== u$2.call(this)) t: for (var c$2 = 0; c$2 < s$3; c$2++) {
|
|
20179
|
-
for (var f$1 = a$3[c$2], p$
|
|
20249
|
+
for (var f$1 = a$3[c$2], p$3 = f$1.length, d$2 = 0; d$2 < p$3; d$2++) if (!1 === r$2(this.LA(d$2 + 1), f$1[d$2])) continue t;
|
|
20180
20250
|
return i$3;
|
|
20181
20251
|
}
|
|
20182
20252
|
}
|
|
@@ -20186,8 +20256,8 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
20186
20256
|
return (0, u$1.default)(t$10);
|
|
20187
20257
|
})), s$2 = (0, d$1.default)(a$2, (function(t$10, e$3, r$3) {
|
|
20188
20258
|
return (0, f.default)(e$3, (function(e$4) {
|
|
20189
|
-
(0, p$
|
|
20190
|
-
(0, p$
|
|
20259
|
+
(0, p$2.default)(t$10, e$4.tokenTypeIdx) || (t$10[e$4.tokenTypeIdx] = r$3), (0, f.default)(e$4.categoryMatches, (function(e$5) {
|
|
20260
|
+
(0, p$2.default)(t$10, e$5) || (t$10[e$5] = r$3);
|
|
20191
20261
|
}));
|
|
20192
20262
|
})), t$10;
|
|
20193
20263
|
}), {});
|
|
@@ -20314,8 +20384,8 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
20314
20384
|
i$2 = g(u$2.length);
|
|
20315
20385
|
for (var c$2 = function(t$10) {
|
|
20316
20386
|
for (var r$3 = u$2[t$10], c$3 = 0; c$3 < r$3.length; c$3++) {
|
|
20317
|
-
var l$1 = r$3[c$3].partialPath, p$
|
|
20318
|
-
if (R$2(o$2, d$2, t$10) || (0, s$1.default)(p$
|
|
20387
|
+
var l$1 = r$3[c$3].partialPath, p$4 = r$3[c$3].suffixDef, d$2 = O(l$1);
|
|
20388
|
+
if (R$2(o$2, d$2, t$10) || (0, s$1.default)(p$4) || l$1.length === e$2) {
|
|
20319
20389
|
var v$1 = n$3[t$10];
|
|
20320
20390
|
if (!1 === N(v$1, l$1)) {
|
|
20321
20391
|
v$1.push(l$1);
|
|
@@ -20325,7 +20395,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
20325
20395
|
}
|
|
20326
20396
|
}
|
|
20327
20397
|
} else {
|
|
20328
|
-
var T$1 = (0, h$2.possiblePathsFrom)(p$
|
|
20398
|
+
var T$1 = (0, h$2.possiblePathsFrom)(p$4, a$2 + 1, l$1);
|
|
20329
20399
|
i$2[t$10] = i$2[t$10].concat(T$1), (0, f.default)(T$1, (function(e$3) {
|
|
20330
20400
|
var r$4 = O(e$3.partialPath);
|
|
20331
20401
|
(0, f.default)(r$4, (function(e$4) {
|
|
@@ -20334,7 +20404,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
20334
20404
|
}));
|
|
20335
20405
|
}
|
|
20336
20406
|
}
|
|
20337
|
-
}, p$
|
|
20407
|
+
}, p$3 = 0; p$3 < u$2.length; p$3++) c$2(p$3);
|
|
20338
20408
|
}
|
|
20339
20409
|
return n$3;
|
|
20340
20410
|
}
|
|
@@ -20497,7 +20567,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
20497
20567
|
return t$9 && t$9.__esModule ? t$9 : { default: t$9 };
|
|
20498
20568
|
};
|
|
20499
20569
|
Object.defineProperty(e$1, "__esModule", { value: !0 }), e$1.EmbeddedActionsParser = e$1.CstParser = e$1.Parser = e$1.EMPTY_ALT = e$1.ParserDefinitionErrorType = e$1.DEFAULT_RULE_CONFIG = e$1.DEFAULT_PARSER_CONFIG = e$1.END_OF_FILE = void 0;
|
|
20500
|
-
var a$1, s$1 = i$1(r$1(5455)), u$1 = i$1(r$1(6760)), c$1 = i$1(r$1(9756)), l = i$1(r$1(8346)), f = i$1(r$1(3352)), p$
|
|
20570
|
+
var a$1, s$1 = i$1(r$1(5455)), u$1 = i$1(r$1(6760)), c$1 = i$1(r$1(9756)), l = i$1(r$1(8346)), f = i$1(r$1(3352)), p$2 = i$1(r$1(4004)), d$1 = r$1(7146), h$2 = r$1(4917), v = r$1(6736), y$1 = r$1(1007), m$1 = r$1(1665), T = r$1(9992), E = r$1(161), _ = r$1(3225), g = r$1(598), O = r$1(8503), R$2 = r$1(3273), A = r$1(9464), I = r$1(1625), x = r$1(6688), N = r$1(146), P = r$1(4803);
|
|
20501
20571
|
e$1.END_OF_FILE = (0, v.createTokenInstance)(v.EOF, "", NaN, NaN, NaN, NaN, NaN, NaN), Object.freeze(e$1.END_OF_FILE), e$1.DEFAULT_PARSER_CONFIG = Object.freeze({
|
|
20502
20572
|
recoveryEnabled: !1,
|
|
20503
20573
|
maxLookahead: 3,
|
|
@@ -20583,7 +20653,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
20583
20653
|
e$1.CstParser = function(t$9) {
|
|
20584
20654
|
function r$2(r$3, n$3) {
|
|
20585
20655
|
void 0 === n$3 && (n$3 = e$1.DEFAULT_PARSER_CONFIG);
|
|
20586
|
-
var o$2 = (0, p$
|
|
20656
|
+
var o$2 = (0, p$2.default)(n$3);
|
|
20587
20657
|
return o$2.outputCst = !0, t$9.call(this, r$3, o$2) || this;
|
|
20588
20658
|
}
|
|
20589
20659
|
return o$1(r$2, t$9), r$2;
|
|
@@ -20591,7 +20661,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
20591
20661
|
e$1.EmbeddedActionsParser = function(t$9) {
|
|
20592
20662
|
function r$2(r$3, n$3) {
|
|
20593
20663
|
void 0 === n$3 && (n$3 = e$1.DEFAULT_PARSER_CONFIG);
|
|
20594
|
-
var o$2 = (0, p$
|
|
20664
|
+
var o$2 = (0, p$2.default)(n$3);
|
|
20595
20665
|
return o$2.outputCst = !1, t$9.call(this, r$3, o$2) || this;
|
|
20596
20666
|
}
|
|
20597
20667
|
return o$1(r$2, t$9), r$2;
|
|
@@ -20668,13 +20738,13 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
20668
20738
|
return t$9 && t$9.__esModule ? t$9 : { default: t$9 };
|
|
20669
20739
|
};
|
|
20670
20740
|
Object.defineProperty(e$1, "__esModule", { value: !0 }), e$1.GastRecorder = void 0;
|
|
20671
|
-
var o$1 = n$2(r$1(6974)), i$1 = n$2(r$1(6152)), a$1 = n$2(r$1(1525)), s$1 = n$2(r$1(9756)), u$1 = n$2(r$1(1049)), c$1 = n$2(r$1(3352)), l = r$1(7729), f = r$1(9027), p$
|
|
20741
|
+
var o$1 = n$2(r$1(6974)), i$1 = n$2(r$1(6152)), a$1 = n$2(r$1(1525)), s$1 = n$2(r$1(9756)), u$1 = n$2(r$1(1049)), c$1 = n$2(r$1(3352)), l = r$1(7729), f = r$1(9027), p$2 = r$1(1201), d$1 = r$1(6736), h$2 = r$1(2941), v = r$1(8209), y$1 = { description: "This Object indicates the Parser is during Recording Phase" };
|
|
20672
20742
|
Object.freeze(y$1);
|
|
20673
20743
|
var m$1 = Math.pow(2, v.BITS_FOR_OCCURRENCE_IDX) - 1, T = (0, d$1.createToken)({
|
|
20674
20744
|
name: "RECORDING_PHASE_TOKEN",
|
|
20675
20745
|
pattern: f.Lexer.NA
|
|
20676
20746
|
});
|
|
20677
|
-
(0, p$
|
|
20747
|
+
(0, p$2.augmentTokenTypes)([T]);
|
|
20678
20748
|
var E = (0, d$1.createTokenInstance)(T, "This IToken indicates the Parser is in Recording Phase\n See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details", -1, -1, -1, -1, -1, -1);
|
|
20679
20749
|
Object.freeze(E);
|
|
20680
20750
|
var _ = {
|
|
@@ -20776,7 +20846,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
20776
20846
|
});
|
|
20777
20847
|
return i$2.definition.push(s$2), this.outputCst ? _ : y$1;
|
|
20778
20848
|
}, t$9.prototype.consumeInternalRecord = function(t$10, e$2, r$2) {
|
|
20779
|
-
if (I(e$2), !(0, p$
|
|
20849
|
+
if (I(e$2), !(0, p$2.hasShortKeyProperty)(t$10)) {
|
|
20780
20850
|
var n$3 = new Error("<CONSUME".concat(A(e$2), "> argument is invalid") + " expecting a TokenType reference but got: <".concat(JSON.stringify(t$10), ">") + "\n inside top level rule: <".concat(this.recordingProdStack[0].name, ">"));
|
|
20781
20851
|
throw n$3.KNOWN_RECORDER_ERROR = !0, n$3;
|
|
20782
20852
|
}
|
|
@@ -20799,15 +20869,15 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
20799
20869
|
function R$2(t$9, e$2) {
|
|
20800
20870
|
var r$2 = this;
|
|
20801
20871
|
I(e$2);
|
|
20802
|
-
var n$3 = (0, o$1.default)(this.recordingProdStack), f$1 = !1 === (0, i$1.default)(t$9), p$
|
|
20872
|
+
var n$3 = (0, o$1.default)(this.recordingProdStack), f$1 = !1 === (0, i$1.default)(t$9), p$3 = !1 === f$1 ? t$9 : t$9.DEF, d$2 = new l.Alternation({
|
|
20803
20873
|
definition: [],
|
|
20804
20874
|
idx: e$2,
|
|
20805
20875
|
ignoreAmbiguities: f$1 && !0 === t$9.IGNORE_AMBIGUITIES
|
|
20806
20876
|
});
|
|
20807
20877
|
(0, c$1.default)(t$9, "MAX_LOOKAHEAD") && (d$2.maxLookahead = t$9.MAX_LOOKAHEAD);
|
|
20808
|
-
return d$2.hasPredicates = (0, a$1.default)(p$
|
|
20878
|
+
return d$2.hasPredicates = (0, a$1.default)(p$3, (function(t$10) {
|
|
20809
20879
|
return (0, u$1.default)(t$10.GATE);
|
|
20810
|
-
})), n$3.definition.push(d$2), (0, s$1.default)(p$
|
|
20880
|
+
})), n$3.definition.push(d$2), (0, s$1.default)(p$3, (function(t$10) {
|
|
20811
20881
|
var e$3 = new l.Alternative({ definition: [] });
|
|
20812
20882
|
d$2.definition.push(e$3), (0, c$1.default)(t$10, "IGNORE_AMBIGUITIES") ? e$3.ignoreAmbiguities = t$10.IGNORE_AMBIGUITIES : (0, c$1.default)(t$10, "GATE") && (e$3.ignoreAmbiguities = !0), r$2.recordingProdStack.push(e$3), t$10.ALT.call(r$2), r$2.recordingProdStack.pop();
|
|
20813
20883
|
})), y$1;
|
|
@@ -20877,7 +20947,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
20877
20947
|
return t$9 && t$9.__esModule ? t$9 : { default: t$9 };
|
|
20878
20948
|
};
|
|
20879
20949
|
Object.defineProperty(e$1, "__esModule", { value: !0 }), e$1.collectMethods = e$1.LooksAhead = void 0;
|
|
20880
|
-
var a$1 = r$1(4677), s$1 = i$1(r$1(9756)), u$1 = i$1(r$1(3352)), c$1 = r$1(2941), l = r$1(8209), f = r$1(7729), p$
|
|
20950
|
+
var a$1 = r$1(4677), s$1 = i$1(r$1(9756)), u$1 = i$1(r$1(3352)), c$1 = r$1(2941), l = r$1(8209), f = r$1(7729), p$2 = r$1(7729);
|
|
20881
20951
|
e$1.LooksAhead = function() {
|
|
20882
20952
|
function t$9() {}
|
|
20883
20953
|
return t$9.prototype.initLooksAhead = function(t$10) {
|
|
@@ -20889,20 +20959,20 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
20889
20959
|
var r$2 = v(t$11), n$3 = r$2.alternation, o$2 = r$2.repetition, i$2 = r$2.option, u$2 = r$2.repetitionMandatory, c$2 = r$2.repetitionMandatoryWithSeparator, f$1 = r$2.repetitionWithSeparator;
|
|
20890
20960
|
(0, s$1.default)(n$3, (function(r$3) {
|
|
20891
20961
|
var n$4 = 0 === r$3.idx ? "" : r$3.idx;
|
|
20892
|
-
e$2.TRACE_INIT("".concat((0, p$
|
|
20962
|
+
e$2.TRACE_INIT("".concat((0, p$2.getProductionDslName)(r$3)).concat(n$4), (function() {
|
|
20893
20963
|
var n$5 = (0, a$1.buildLookaheadFuncForOr)(r$3.idx, t$11, r$3.maxLookahead || e$2.maxLookahead, r$3.hasPredicates, e$2.dynamicTokensEnabled, e$2.lookAheadBuilderForAlternatives), o$3 = (0, l.getKeyForAutomaticLookahead)(e$2.fullRuleNameToShort[t$11.name], l.OR_IDX, r$3.idx);
|
|
20894
20964
|
e$2.setLaFuncCache(o$3, n$5);
|
|
20895
20965
|
}));
|
|
20896
20966
|
})), (0, s$1.default)(o$2, (function(r$3) {
|
|
20897
|
-
e$2.computeLookaheadFunc(t$11, r$3.idx, l.MANY_IDX, a$1.PROD_TYPE.REPETITION, r$3.maxLookahead, (0, p$
|
|
20967
|
+
e$2.computeLookaheadFunc(t$11, r$3.idx, l.MANY_IDX, a$1.PROD_TYPE.REPETITION, r$3.maxLookahead, (0, p$2.getProductionDslName)(r$3));
|
|
20898
20968
|
})), (0, s$1.default)(i$2, (function(r$3) {
|
|
20899
|
-
e$2.computeLookaheadFunc(t$11, r$3.idx, l.OPTION_IDX, a$1.PROD_TYPE.OPTION, r$3.maxLookahead, (0, p$
|
|
20969
|
+
e$2.computeLookaheadFunc(t$11, r$3.idx, l.OPTION_IDX, a$1.PROD_TYPE.OPTION, r$3.maxLookahead, (0, p$2.getProductionDslName)(r$3));
|
|
20900
20970
|
})), (0, s$1.default)(u$2, (function(r$3) {
|
|
20901
|
-
e$2.computeLookaheadFunc(t$11, r$3.idx, l.AT_LEAST_ONE_IDX, a$1.PROD_TYPE.REPETITION_MANDATORY, r$3.maxLookahead, (0, p$
|
|
20971
|
+
e$2.computeLookaheadFunc(t$11, r$3.idx, l.AT_LEAST_ONE_IDX, a$1.PROD_TYPE.REPETITION_MANDATORY, r$3.maxLookahead, (0, p$2.getProductionDslName)(r$3));
|
|
20902
20972
|
})), (0, s$1.default)(c$2, (function(r$3) {
|
|
20903
|
-
e$2.computeLookaheadFunc(t$11, r$3.idx, l.AT_LEAST_ONE_SEP_IDX, a$1.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR, r$3.maxLookahead, (0, p$
|
|
20973
|
+
e$2.computeLookaheadFunc(t$11, r$3.idx, l.AT_LEAST_ONE_SEP_IDX, a$1.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR, r$3.maxLookahead, (0, p$2.getProductionDslName)(r$3));
|
|
20904
20974
|
})), (0, s$1.default)(f$1, (function(r$3) {
|
|
20905
|
-
e$2.computeLookaheadFunc(t$11, r$3.idx, l.MANY_SEP_IDX, a$1.PROD_TYPE.REPETITION_WITH_SEPARATOR, r$3.maxLookahead, (0, p$
|
|
20975
|
+
e$2.computeLookaheadFunc(t$11, r$3.idx, l.MANY_SEP_IDX, a$1.PROD_TYPE.REPETITION_WITH_SEPARATOR, r$3.maxLookahead, (0, p$2.getProductionDslName)(r$3));
|
|
20906
20976
|
}));
|
|
20907
20977
|
}));
|
|
20908
20978
|
}));
|
|
@@ -21221,7 +21291,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
21221
21291
|
return t$9 && t$9.__esModule ? t$9 : { default: t$9 };
|
|
21222
21292
|
};
|
|
21223
21293
|
Object.defineProperty(e$1, "__esModule", { value: !0 }), e$1.RecognizerEngine = void 0;
|
|
21224
|
-
var o$1 = n$2(r$1(5455)), i$1 = n$2(r$1(6152)), a$1 = n$2(r$1(5676)), s$1 = n$2(r$1(9794)), u$1 = n$2(r$1(5652)), c$1 = n$2(r$1(9259)), l = n$2(r$1(3352)), f = n$2(r$1(8346)), p$
|
|
21294
|
+
var o$1 = n$2(r$1(5455)), i$1 = n$2(r$1(6152)), a$1 = n$2(r$1(5676)), s$1 = n$2(r$1(9794)), u$1 = n$2(r$1(5652)), c$1 = n$2(r$1(9259)), l = n$2(r$1(3352)), f = n$2(r$1(8346)), p$2 = n$2(r$1(8215)), d$1 = n$2(r$1(4004)), h$2 = r$1(8209), v = r$1(643), y$1 = r$1(4677), m$1 = r$1(9985), T = r$1(2941), E = r$1(9992), _ = r$1(6736), g = r$1(1201);
|
|
21225
21295
|
e$1.RecognizerEngine = function() {
|
|
21226
21296
|
function t$9() {}
|
|
21227
21297
|
return t$9.prototype.initRecognizerEngine = function(t$10, e$2) {
|
|
@@ -21230,12 +21300,12 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
21230
21300
|
if ((0, o$1.default)(t$10)) throw Error("A Token Vocabulary cannot be empty.\n Note that the first argument for the parser constructor\n is no longer a Token vector (since v4.0).");
|
|
21231
21301
|
if ("number" == typeof t$10[0].startOffset) throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n For Further details.");
|
|
21232
21302
|
}
|
|
21233
|
-
if ((0, i$1.default)(t$10)) this.tokensMap = (0, p$
|
|
21303
|
+
if ((0, i$1.default)(t$10)) this.tokensMap = (0, p$2.default)(t$10, (function(t$11, e$3) {
|
|
21234
21304
|
return t$11[e$3.name] = e$3, t$11;
|
|
21235
21305
|
}), {});
|
|
21236
21306
|
else if ((0, l.default)(t$10, "modes") && (0, s$1.default)((0, a$1.default)((0, f.default)(t$10.modes)), g.isTokenType)) {
|
|
21237
21307
|
var r$2 = (0, a$1.default)((0, f.default)(t$10.modes)), n$3 = (0, u$1.default)(r$2);
|
|
21238
|
-
this.tokensMap = (0, p$
|
|
21308
|
+
this.tokensMap = (0, p$2.default)(n$3, (function(t$11, e$3) {
|
|
21239
21309
|
return t$11[e$3.name] = e$3, t$11;
|
|
21240
21310
|
}), {});
|
|
21241
21311
|
} else {
|
|
@@ -21475,7 +21545,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
21475
21545
|
return t$9 && t$9.__esModule ? t$9 : { default: t$9 };
|
|
21476
21546
|
};
|
|
21477
21547
|
Object.defineProperty(e$1, "__esModule", { value: !0 }), e$1.attemptInRepetitionRecovery = e$1.Recoverable = e$1.InRuleRecoveryException = e$1.IN_RULE_RECOVERY_EXCEPTION = e$1.EOF_FOLLOW_KEY = void 0;
|
|
21478
|
-
var a$1 = r$1(6736), s$1 = i$1(r$1(5455)), u$1 = i$1(r$1(4934)), c$1 = i$1(r$1(5676)), l = i$1(r$1(6760)), f = i$1(r$1(5281)), p$
|
|
21548
|
+
var a$1 = r$1(6736), s$1 = i$1(r$1(5455)), u$1 = i$1(r$1(4934)), c$1 = i$1(r$1(5676)), l = i$1(r$1(6760)), f = i$1(r$1(5281)), p$2 = i$1(r$1(3352)), d$1 = i$1(r$1(1886)), h$2 = i$1(r$1(4004)), v = r$1(643), y$1 = r$1(3710), m$1 = r$1(2941);
|
|
21479
21549
|
e$1.EOF_FOLLOW_KEY = {}, e$1.IN_RULE_RECOVERY_EXCEPTION = "InRuleRecoveryException";
|
|
21480
21550
|
var T = function(t$9) {
|
|
21481
21551
|
function r$2(r$3) {
|
|
@@ -21488,7 +21558,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
21488
21558
|
var E = function() {
|
|
21489
21559
|
function t$9() {}
|
|
21490
21560
|
return t$9.prototype.initRecoverable = function(t$10) {
|
|
21491
|
-
this.firstAfterRepMap = {}, this.resyncFollows = {}, this.recoveryEnabled = (0, p$
|
|
21561
|
+
this.firstAfterRepMap = {}, this.resyncFollows = {}, this.recoveryEnabled = (0, p$2.default)(t$10, "recoveryEnabled") ? t$10.recoveryEnabled : m$1.DEFAULT_PARSER_CONFIG.recoveryEnabled, this.recoveryEnabled && (this.attemptInRepetitionRecovery = _);
|
|
21492
21562
|
}, t$9.prototype.getTokenToInsert = function(t$10) {
|
|
21493
21563
|
var e$2 = (0, a$1.createTokenInstance)(t$10, "", NaN, NaN, NaN, NaN, NaN, NaN);
|
|
21494
21564
|
return e$2.isInsertedInRecovery = !0, e$2;
|
|
@@ -21497,7 +21567,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
21497
21567
|
}, t$9.prototype.canTokenTypeBeDeletedInRecovery = function(t$10) {
|
|
21498
21568
|
return !0;
|
|
21499
21569
|
}, t$9.prototype.tryInRepetitionRecovery = function(t$10, e$2, r$2, n$3) {
|
|
21500
|
-
for (var o$2 = this, i$2 = this.findReSyncTokenType(), a$2 = this.exportLexerState(), s$2 = [], c$2 = !1, l$1 = this.LA(1), f$1 = this.LA(1), p$
|
|
21570
|
+
for (var o$2 = this, i$2 = this.findReSyncTokenType(), a$2 = this.exportLexerState(), s$2 = [], c$2 = !1, l$1 = this.LA(1), f$1 = this.LA(1), p$3 = function() {
|
|
21501
21571
|
var t$11 = o$2.LA(0), e$3 = o$2.errorMessageProvider.buildMismatchTokenMessage({
|
|
21502
21572
|
expected: n$3,
|
|
21503
21573
|
actual: l$1,
|
|
@@ -21506,8 +21576,8 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
21506
21576
|
}), r$3 = new v.MismatchedTokenException(e$3, l$1, o$2.LA(0));
|
|
21507
21577
|
r$3.resyncedTokens = (0, u$1.default)(s$2), o$2.SAVE_ERROR(r$3);
|
|
21508
21578
|
}; !c$2;) {
|
|
21509
|
-
if (this.tokenMatcher(f$1, n$3)) return void p$
|
|
21510
|
-
if (r$2.call(this)) return p$
|
|
21579
|
+
if (this.tokenMatcher(f$1, n$3)) return void p$3();
|
|
21580
|
+
if (r$2.call(this)) return p$3(), void t$10.apply(this, e$2);
|
|
21511
21581
|
this.tokenMatcher(f$1, i$2) ? c$2 = !0 : (f$1 = this.SKIP_TOKEN(), this.addToResyncTokens(f$1, s$2));
|
|
21512
21582
|
}
|
|
21513
21583
|
this.importLexerState(a$2);
|
|
@@ -21597,8 +21667,8 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
21597
21667
|
var l$1 = this.getCurrRuleFullName();
|
|
21598
21668
|
c$2 = new i$2(this.getGAstProductions()[l$1], o$2).startWalking(), this.firstAfterRepMap[u$2] = c$2;
|
|
21599
21669
|
}
|
|
21600
|
-
var f$1 = c$2.token, p$
|
|
21601
|
-
1 === this.RULE_STACK.length && d$2 && void 0 === f$1 && (f$1 = a$1.EOF, p$
|
|
21670
|
+
var f$1 = c$2.token, p$3 = c$2.occurrence, d$2 = c$2.isEndOfRule;
|
|
21671
|
+
1 === this.RULE_STACK.length && d$2 && void 0 === f$1 && (f$1 = a$1.EOF, p$3 = 1), void 0 !== f$1 && void 0 !== p$3 && this.shouldInRepetitionRecoveryBeTried(f$1, p$3, s$2) && this.tryInRepetitionRecovery(t$9, e$2, r$2, f$1);
|
|
21602
21672
|
}
|
|
21603
21673
|
e$1.Recoverable = E, e$1.attemptInRepetitionRecovery = _;
|
|
21604
21674
|
},
|
|
@@ -21721,7 +21791,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
21721
21791
|
return t$9 && t$9.__esModule ? t$9 : { default: t$9 };
|
|
21722
21792
|
};
|
|
21723
21793
|
Object.defineProperty(e$1, "__esModule", { value: !0 }), e$1.charCodeToOptimizedIndex = e$1.minOptimizationVal = e$1.buildLineBreakIssueMessage = e$1.LineTerminatorOptimizedTester = e$1.isShortPattern = e$1.isCustomPattern = e$1.cloneEmptyGroups = e$1.performWarningRuntimeChecks = e$1.performRuntimeChecks = e$1.addStickyFlag = e$1.addStartOfInput = e$1.findUnreachablePatterns = e$1.findModesThatDoNotExist = e$1.findInvalidGroupType = e$1.findDuplicatePatterns = e$1.findUnsupportedFlags = e$1.findStartOfInputAnchor = e$1.findEmptyMatchRegExps = e$1.findEndOfInputAnchor = e$1.findInvalidPatterns = e$1.findMissingPatterns = e$1.validatePatterns = e$1.analyzeTokenTypes = e$1.enableSticky = e$1.disableSticky = e$1.SUPPORT_STICKY = e$1.MODES = e$1.DEFAULT_MODE = void 0;
|
|
21724
|
-
var a$1 = r$1(4844), s$1 = r$1(9027), u$1 = i$1(r$1(3237)), c$1 = i$1(r$1(5455)), l = i$1(r$1(417)), f = i$1(r$1(6152)), p$
|
|
21794
|
+
var a$1 = r$1(4844), s$1 = r$1(9027), u$1 = i$1(r$1(3237)), c$1 = i$1(r$1(5455)), l = i$1(r$1(417)), f = i$1(r$1(6152)), p$2 = i$1(r$1(8346)), d$1 = i$1(r$1(5676)), h$2 = i$1(r$1(2070)), v = i$1(r$1(7335)), y$1 = i$1(r$1(3493)), m$1 = i$1(r$1(6760)), T = i$1(r$1(9756)), E = i$1(r$1(5505)), _ = i$1(r$1(1049)), g = i$1(r$1(4336)), O = i$1(r$1(5281)), R$2 = i$1(r$1(3352)), A = i$1(r$1(249)), I = i$1(r$1(859)), x = i$1(r$1(882)), N = i$1(r$1(4573)), P = i$1(r$1(8215)), S = i$1(r$1(1886)), b = r$1(7146), k = r$1(1480), L = r$1(3067);
|
|
21725
21795
|
function C(t$9) {
|
|
21726
21796
|
var e$2 = (0, x.default)(t$9, (function(t$10) {
|
|
21727
21797
|
return !(0, R$2.default)(t$10, "PATTERN");
|
|
@@ -21780,7 +21850,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
21780
21850
|
return t$10.PATTERN === s$1.Lexer.NA;
|
|
21781
21851
|
}));
|
|
21782
21852
|
}));
|
|
21783
|
-
var i$2, a$2, u$2, l$1, p$
|
|
21853
|
+
var i$2, a$2, u$2, l$1, p$3, d$2, v$1, O$1, A$1, x$1, L$1, C$1 = !1;
|
|
21784
21854
|
o$2("Transform Patterns", (function() {
|
|
21785
21855
|
C$1 = !1, i$2 = (0, m$1.default)(n$3, (function(t$10) {
|
|
21786
21856
|
var e$2 = t$10.PATTERN;
|
|
@@ -21829,7 +21899,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
21829
21899
|
if (e$2) return (0, f.default)(e$2) ? (0, m$1.default)(e$2, (function(t$11) {
|
|
21830
21900
|
return (0, y$1.default)(n$3, t$11);
|
|
21831
21901
|
})) : [(0, y$1.default)(n$3, e$2)];
|
|
21832
|
-
})), p$
|
|
21902
|
+
})), p$3 = (0, m$1.default)(n$3, (function(t$10) {
|
|
21833
21903
|
return t$10.PUSH_MODE;
|
|
21834
21904
|
})), d$2 = (0, m$1.default)(n$3, (function(t$10) {
|
|
21835
21905
|
return (0, R$2.default)(t$10, "POP_MODE");
|
|
@@ -21853,7 +21923,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
21853
21923
|
isCustom: O$1[e$2],
|
|
21854
21924
|
short: A$1[e$2],
|
|
21855
21925
|
group: u$2[e$2],
|
|
21856
|
-
push: p$
|
|
21926
|
+
push: p$3[e$2],
|
|
21857
21927
|
pop: d$2[e$2],
|
|
21858
21928
|
tokenTypeIdx: a$2[e$2],
|
|
21859
21929
|
tokenType: n$3[e$2]
|
|
@@ -22146,7 +22216,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
22146
22216
|
}));
|
|
22147
22217
|
})), o$2;
|
|
22148
22218
|
}, e$1.performWarningRuntimeChecks = function(t$9, e$2, r$2) {
|
|
22149
|
-
var n$3 = [], o$2 = !1, i$2 = (0, l.default)((0, d$1.default)((0, p$
|
|
22219
|
+
var n$3 = [], o$2 = !1, i$2 = (0, l.default)((0, d$1.default)((0, p$2.default)(t$9.modes))), a$2 = (0, h$2.default)(i$2, (function(t$10) {
|
|
22150
22220
|
return t$10.PATTERN === s$1.Lexer.NA;
|
|
22151
22221
|
})), u$2 = Q(r$2);
|
|
22152
22222
|
return e$2 && (0, T.default)(a$2, (function(t$10) {
|
|
@@ -22202,7 +22272,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
22202
22272
|
return t$9 && t$9.__esModule ? t$9 : { default: t$9 };
|
|
22203
22273
|
};
|
|
22204
22274
|
Object.defineProperty(e$1, "__esModule", { value: !0 }), e$1.Lexer = e$1.LexerDefinitionErrorType = void 0;
|
|
22205
|
-
var o$1, i$1 = r$1(6178), a$1 = n$2(r$1(4291)), s$1 = n$2(r$1(5455)), u$1 = n$2(r$1(6152)), c$1 = n$2(r$1(6974)), l = n$2(r$1(2070)), f = n$2(r$1(6760)), p$
|
|
22275
|
+
var o$1, i$1 = r$1(6178), a$1 = n$2(r$1(4291)), s$1 = n$2(r$1(5455)), u$1 = n$2(r$1(6152)), c$1 = n$2(r$1(6974)), l = n$2(r$1(2070)), f = n$2(r$1(6760)), p$2 = n$2(r$1(9756)), d$1 = n$2(r$1(249)), h$2 = n$2(r$1(4336)), v = n$2(r$1(3059)), y$1 = n$2(r$1(19)), m$1 = n$2(r$1(8215)), T = n$2(r$1(4004)), E = r$1(7146), _ = r$1(1201), g = r$1(495), O = r$1(3067);
|
|
22206
22276
|
(o$1 = e$1.LexerDefinitionErrorType || (e$1.LexerDefinitionErrorType = {}))[o$1.MISSING_PATTERN = 0] = "MISSING_PATTERN", o$1[o$1.INVALID_PATTERN = 1] = "INVALID_PATTERN", o$1[o$1.EOI_ANCHOR_FOUND = 2] = "EOI_ANCHOR_FOUND", o$1[o$1.UNSUPPORTED_FLAGS_FOUND = 3] = "UNSUPPORTED_FLAGS_FOUND", o$1[o$1.DUPLICATE_PATTERNS_FOUND = 4] = "DUPLICATE_PATTERNS_FOUND", o$1[o$1.INVALID_GROUP_TYPE_FOUND = 5] = "INVALID_GROUP_TYPE_FOUND", o$1[o$1.PUSH_MODE_DOES_NOT_EXIST = 6] = "PUSH_MODE_DOES_NOT_EXIST", o$1[o$1.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE = 7] = "MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE", o$1[o$1.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY = 8] = "MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY", o$1[o$1.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST = 9] = "MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST", o$1[o$1.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED = 10] = "LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED", o$1[o$1.SOI_ANCHOR_FOUND = 11] = "SOI_ANCHOR_FOUND", o$1[o$1.EMPTY_MATCH_PATTERN = 12] = "EMPTY_MATCH_PATTERN", o$1[o$1.NO_LINE_BREAKS_FLAGS = 13] = "NO_LINE_BREAKS_FLAGS", o$1[o$1.UNREACHABLE_PATTERN = 14] = "UNREACHABLE_PATTERN", o$1[o$1.IDENTIFY_TERMINATOR = 15] = "IDENTIFY_TERMINATOR", o$1[o$1.CUSTOM_LINE_BREAK = 16] = "CUSTOM_LINE_BREAK";
|
|
22207
22277
|
var R$2 = {
|
|
22208
22278
|
deferDefinitionErrorsHandling: !1,
|
|
@@ -22246,13 +22316,13 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
22246
22316
|
r$2.lexerDefinitionErrors = r$2.lexerDefinitionErrors.concat((0, i$1.performRuntimeChecks)(n$4, r$2.trackStartLines, r$2.config.lineTerminatorCharacters));
|
|
22247
22317
|
})), r$2.TRACE_INIT("performWarningRuntimeChecks", (function() {
|
|
22248
22318
|
r$2.lexerDefinitionWarning = r$2.lexerDefinitionWarning.concat((0, i$1.performWarningRuntimeChecks)(n$4, r$2.trackStartLines, r$2.config.lineTerminatorCharacters));
|
|
22249
|
-
}))), n$4.modes = n$4.modes ? n$4.modes : {}, (0, p$
|
|
22319
|
+
}))), n$4.modes = n$4.modes ? n$4.modes : {}, (0, p$2.default)(n$4.modes, (function(t$11, e$3) {
|
|
22250
22320
|
n$4.modes[e$3] = (0, l.default)(t$11, (function(t$12) {
|
|
22251
22321
|
return (0, h$2.default)(t$12);
|
|
22252
22322
|
}));
|
|
22253
22323
|
}));
|
|
22254
22324
|
var c$2 = (0, d$1.default)(n$4.modes);
|
|
22255
|
-
if ((0, p$
|
|
22325
|
+
if ((0, p$2.default)(n$4.modes, (function(t$11, n$5) {
|
|
22256
22326
|
r$2.TRACE_INIT("Mode: <".concat(n$5, "> processing"), (function() {
|
|
22257
22327
|
var o$3;
|
|
22258
22328
|
r$2.modes.push(n$5), !1 === r$2.config.skipValidations && r$2.TRACE_INIT("validatePatterns", (function() {
|
|
@@ -22273,7 +22343,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
22273
22343
|
})).join("-----------------------\n");
|
|
22274
22344
|
throw new Error("Errors detected in definition of Lexer:\n" + g$1);
|
|
22275
22345
|
}
|
|
22276
|
-
(0, p$
|
|
22346
|
+
(0, p$2.default)(r$2.lexerDefinitionWarning, (function(t$11) {
|
|
22277
22347
|
(0, E.PRINT_WARNING)(t$11.message);
|
|
22278
22348
|
})), r$2.TRACE_INIT("Choosing sub-methods implementations", (function() {
|
|
22279
22349
|
if (i$1.SUPPORT_STICKY ? (r$2.chopInput = v.default, r$2.match = r$2.matchWithTest) : (r$2.updateLastIndex = a$1.default, r$2.match = r$2.matchWithExec), o$2 && (r$2.handleModes = a$1.default), !1 === r$2.trackStartLines && (r$2.computeNewColumn = v.default), !1 === r$2.trackEndLines && (r$2.updateTokenEndLineColumnLocation = a$1.default), /full/i.test(r$2.config.positionTracking)) r$2.createTokenInstance = r$2.createFullToken;
|
|
@@ -22304,7 +22374,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
22304
22374
|
}
|
|
22305
22375
|
return this.tokenizeInternal(t$10, e$2);
|
|
22306
22376
|
}, t$9.prototype.tokenizeInternal = function(t$10, e$2) {
|
|
22307
|
-
var r$2, n$3, o$2, a$2, s$2, u$2, l$1, f$1, p$
|
|
22377
|
+
var r$2, n$3, o$2, a$2, s$2, u$2, l$1, f$1, p$3, d$2, h$3, v$1, y$2, m$2, T$1, E$1, _$1 = this, g$1 = t$10, O$1 = g$1.length, R$3 = 0, A = 0, I = this.hasCustom ? 0 : Math.floor(t$10.length / 10), x = new Array(I), N = [], P = this.trackStartLines ? 1 : void 0, S = this.trackStartLines ? 1 : void 0, b = (0, i$1.cloneEmptyGroups)(this.emptyGroups), k = this.trackStartLines, L = this.config.lineTerminatorsPattern, C = 0, M = [], D = [], w$1 = [], F = [];
|
|
22308
22378
|
function j() {
|
|
22309
22379
|
return M;
|
|
22310
22380
|
}
|
|
@@ -22356,13 +22426,13 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
22356
22426
|
}
|
|
22357
22427
|
}
|
|
22358
22428
|
if (null !== u$2) {
|
|
22359
|
-
if (p$
|
|
22429
|
+
if (p$3 = u$2.length, void 0 !== (d$2 = B.group) && (h$3 = B.tokenTypeIdx, v$1 = this.createTokenInstance(u$2, R$3, h$3, B.tokenType, P, S, p$3), this.handlePayload(v$1, l$1), !1 === d$2 ? A = this.addToken(x, A, v$1) : b[d$2].push(v$1)), t$10 = this.chopInput(t$10, p$3), R$3 += p$3, S = this.computeNewColumn(S, p$3), !0 === k && !0 === B.canLineTerminator) {
|
|
22360
22430
|
var $$1 = 0, Q = void 0, Z = void 0;
|
|
22361
22431
|
L.lastIndex = 0;
|
|
22362
22432
|
do
|
|
22363
22433
|
!0 === (Q = L.test(u$2)) && (Z = L.lastIndex - 1, $$1++);
|
|
22364
22434
|
while (!0 === Q);
|
|
22365
|
-
0 !== $$1 && (P += $$1, S = p$
|
|
22435
|
+
0 !== $$1 && (P += $$1, S = p$3 - Z, this.updateTokenEndLineColumnLocation(v$1, d$2, Z, $$1, P, S, p$3));
|
|
22366
22436
|
}
|
|
22367
22437
|
this.handleModes(B, G, W, v$1);
|
|
22368
22438
|
} else {
|
|
@@ -22457,7 +22527,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
22457
22527
|
return t$9 && t$9.__esModule ? t$9 : { default: t$9 };
|
|
22458
22528
|
};
|
|
22459
22529
|
Object.defineProperty(e$1, "__esModule", { value: !0 }), e$1.canMatchCharCode = e$1.firstCharOptimizedIndices = e$1.getOptimizedStartCodesIndices = e$1.failedOptimizationPrefixMsg = void 0;
|
|
22460
|
-
var a$1 = r$1(4844), s$1 = i$1(r$1(6152)), u$1 = i$1(r$1(9794)), c$1 = i$1(r$1(9756)), l = i$1(r$1(5281)), f = i$1(r$1(8346)), p$
|
|
22530
|
+
var a$1 = r$1(4844), s$1 = i$1(r$1(6152)), u$1 = i$1(r$1(9794)), c$1 = i$1(r$1(9756)), l = i$1(r$1(5281)), f = i$1(r$1(8346)), p$2 = i$1(r$1(1886)), d$1 = r$1(7146), h$2 = r$1(3067), v = r$1(6178), y$1 = "Complement Sets are not supported for first char optimization";
|
|
22461
22531
|
function m$1(t$9, e$2, r$2) {
|
|
22462
22532
|
switch (t$9.type) {
|
|
22463
22533
|
case "Disjunction":
|
|
@@ -22521,7 +22591,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
22521
22591
|
}
|
|
22522
22592
|
function E(t$9, e$2) {
|
|
22523
22593
|
return (0, l.default)(t$9.value, (function(t$10) {
|
|
22524
|
-
if ("number" == typeof t$10) return (0, p$
|
|
22594
|
+
if ("number" == typeof t$10) return (0, p$2.default)(e$2, t$10);
|
|
22525
22595
|
var r$2 = t$10;
|
|
22526
22596
|
return void 0 !== (0, l.default)(e$2, (function(t$11) {
|
|
22527
22597
|
return r$2.from <= t$11 && t$11 <= r$2.to;
|
|
@@ -22564,7 +22634,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
22564
22634
|
t$9.prototype.visitChildren.call(this, e$3);
|
|
22565
22635
|
}
|
|
22566
22636
|
}, e$2.prototype.visitCharacter = function(t$10) {
|
|
22567
|
-
(0, p$
|
|
22637
|
+
(0, p$2.default)(this.targetCharCodes, t$10.value) && (this.found = !0);
|
|
22568
22638
|
}, e$2.prototype.visitSet = function(t$10) {
|
|
22569
22639
|
t$10.complement ? void 0 === E(t$10, this.targetCharCodes) && (this.found = !0) : void 0 !== E(t$10, this.targetCharCodes) && (this.found = !0);
|
|
22570
22640
|
}, e$2;
|
|
@@ -22575,7 +22645,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
22575
22645
|
return n$3.visit(r$2), n$3.found;
|
|
22576
22646
|
}
|
|
22577
22647
|
return void 0 !== (0, l.default)(e$2, (function(e$3) {
|
|
22578
|
-
return (0, p$
|
|
22648
|
+
return (0, p$2.default)(t$9, e$3.charCodeAt(0));
|
|
22579
22649
|
}));
|
|
22580
22650
|
};
|
|
22581
22651
|
},
|
|
@@ -22596,7 +22666,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
22596
22666
|
return t$9 && t$9.__esModule ? t$9 : { default: t$9 };
|
|
22597
22667
|
};
|
|
22598
22668
|
Object.defineProperty(e$1, "__esModule", { value: !0 }), e$1.isTokenType = e$1.hasExtendingTokensTypesMapProperty = e$1.hasExtendingTokensTypesProperty = e$1.hasCategoriesProperty = e$1.hasShortKeyProperty = e$1.singleAssignCategoriesToksMap = e$1.assignCategoriesMapProp = e$1.assignCategoriesTokensProp = e$1.assignTokenDefaultProps = e$1.expandCategories = e$1.augmentTokenTypes = e$1.tokenIdxToClass = e$1.tokenShortNameIdx = e$1.tokenStructuredMatcherNoCategories = e$1.tokenStructuredMatcher = void 0;
|
|
22599
|
-
var o$1 = n$2(r$1(5455)), i$1 = n$2(r$1(417)), a$1 = n$2(r$1(6152)), s$1 = n$2(r$1(5676)), u$1 = n$2(r$1(7335)), c$1 = n$2(r$1(6760)), l = n$2(r$1(9756)), f = n$2(r$1(3352)), p$
|
|
22669
|
+
var o$1 = n$2(r$1(5455)), i$1 = n$2(r$1(417)), a$1 = n$2(r$1(6152)), s$1 = n$2(r$1(5676)), u$1 = n$2(r$1(7335)), c$1 = n$2(r$1(6760)), l = n$2(r$1(9756)), f = n$2(r$1(3352)), p$2 = n$2(r$1(1886)), d$1 = n$2(r$1(4004));
|
|
22600
22670
|
function h$2(t$9) {
|
|
22601
22671
|
for (var e$2 = (0, d$1.default)(t$9), r$2 = t$9, n$3 = !0; n$3;) {
|
|
22602
22672
|
r$2 = (0, i$1.default)((0, s$1.default)((0, c$1.default)(r$2, (function(t$10) {
|
|
@@ -22629,7 +22699,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
22629
22699
|
e$2.categoryMatchesMap[t$10.tokenTypeIdx] = !0;
|
|
22630
22700
|
})), (0, l.default)(e$2.CATEGORIES, (function(r$2) {
|
|
22631
22701
|
var n$3 = t$9.concat(e$2);
|
|
22632
|
-
(0, p$
|
|
22702
|
+
(0, p$2.default)(n$3, r$2) || T(n$3, r$2);
|
|
22633
22703
|
}));
|
|
22634
22704
|
}
|
|
22635
22705
|
function E(t$9) {
|
|
@@ -22730,7 +22800,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
22730
22800
|
function f(t$9) {
|
|
22731
22801
|
return (0, c$1.default)(t$9) + "CstNode";
|
|
22732
22802
|
}
|
|
22733
|
-
function p$
|
|
22803
|
+
function p$2(t$9) {
|
|
22734
22804
|
return (0, c$1.default)(t$9) + "CstChildren";
|
|
22735
22805
|
}
|
|
22736
22806
|
e$1.genDts = function(t$9, e$2) {
|
|
@@ -22738,10 +22808,10 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
22738
22808
|
return c$2 = (c$2 = c$2.concat("import type { CstNode, ICstVisitor, IToken } from \"chevrotain\";")).concat((0, o$1.default)((0, a$1.default)(t$9, (function(t$10) {
|
|
22739
22809
|
return function(t$11) {
|
|
22740
22810
|
return [function(t$12) {
|
|
22741
|
-
var e$3 = f(t$12.name), r$3 = p$
|
|
22811
|
+
var e$3 = f(t$12.name), r$3 = p$2(t$12.name);
|
|
22742
22812
|
return "export interface ".concat(e$3, " extends CstNode {\n name: \"").concat(t$12.name, "\";\n children: ").concat(r$3, ";\n}");
|
|
22743
22813
|
}(t$11), function(t$12) {
|
|
22744
|
-
var e$3 = p$
|
|
22814
|
+
var e$3 = p$2(t$12.name);
|
|
22745
22815
|
return "export type ".concat(e$3, " = {\n ").concat((0, a$1.default)(t$12.properties, (function(t$13) {
|
|
22746
22816
|
return function(t$14) {
|
|
22747
22817
|
var e$4 = function(t$15) {
|
|
@@ -22762,7 +22832,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
22762
22832
|
}(t$10);
|
|
22763
22833
|
})))), e$2.includeVisitorInterface && (c$2 = c$2.concat((r$2 = e$2.visitorInterfaceName, n$3 = t$9, "export interface ".concat(r$2, "<IN, OUT> extends ICstVisitor<IN, OUT> {\n ").concat((0, a$1.default)(n$3, (function(t$10) {
|
|
22764
22834
|
return function(t$11) {
|
|
22765
|
-
var e$3 = p$
|
|
22835
|
+
var e$3 = p$2(t$11.name);
|
|
22766
22836
|
return "".concat(t$11.name, "(children: ").concat(e$3, ", param?: IN): OUT;");
|
|
22767
22837
|
}(t$10);
|
|
22768
22838
|
})).join("\n "), "\n}")))), c$2.join("\n\n") + "\n";
|
|
@@ -22785,7 +22855,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
22785
22855
|
return t$9 && t$9.__esModule ? t$9 : { default: t$9 };
|
|
22786
22856
|
};
|
|
22787
22857
|
Object.defineProperty(e$1, "__esModule", { value: !0 }), e$1.buildModel = void 0;
|
|
22788
|
-
var a$1 = r$1(7729), s$1 = i$1(r$1(6760)), u$1 = i$1(r$1(5676)), c$1 = i$1(r$1(8346)), l = i$1(r$1(1525)), f = i$1(r$1(3440)), p$
|
|
22858
|
+
var a$1 = r$1(7729), s$1 = i$1(r$1(6760)), u$1 = i$1(r$1(5676)), c$1 = i$1(r$1(8346)), l = i$1(r$1(1525)), f = i$1(r$1(3440)), p$2 = i$1(r$1(19));
|
|
22789
22859
|
e$1.buildModel = function(t$9) {
|
|
22790
22860
|
var e$2 = new d$1(), r$2 = (0, c$1.default)(t$9);
|
|
22791
22861
|
return (0, s$1.default)(r$2, (function(t$10) {
|
|
@@ -22851,7 +22921,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
22851
22921
|
}];
|
|
22852
22922
|
}, e$2.prototype.visitEachAndOverrideWith = function(t$10, e$3) {
|
|
22853
22923
|
return (0, s$1.default)(this.visitEach(t$10), (function(t$11) {
|
|
22854
|
-
return (0, p$
|
|
22924
|
+
return (0, p$2.default)({}, t$11, e$3);
|
|
22855
22925
|
}));
|
|
22856
22926
|
}, e$2.prototype.visitEach = function(t$10) {
|
|
22857
22927
|
var e$3 = this;
|
|
@@ -23007,7 +23077,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
23007
23077
|
};
|
|
23008
23078
|
Object.defineProperty(e$1, "__esModule", { value: !0 }), e$1.serializeProduction = e$1.serializeGrammar = e$1.Terminal = e$1.Alternation = e$1.RepetitionWithSeparator = e$1.Repetition = e$1.RepetitionMandatoryWithSeparator = e$1.RepetitionMandatory = e$1.Option = e$1.Alternative = e$1.Rule = e$1.NonTerminal = e$1.AbstractProduction = void 0;
|
|
23009
23079
|
var a$1 = i$1(r$1(6760)), s$1 = i$1(r$1(9756)), u$1 = i$1(r$1(5505)), c$1 = i$1(r$1(859)), l = i$1(r$1(2208)), f = i$1(r$1(19));
|
|
23010
|
-
var p$
|
|
23080
|
+
var p$2 = function() {
|
|
23011
23081
|
function t$9(t$10) {
|
|
23012
23082
|
this._definition = t$10;
|
|
23013
23083
|
}
|
|
@@ -23026,7 +23096,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
23026
23096
|
}));
|
|
23027
23097
|
}, t$9;
|
|
23028
23098
|
}();
|
|
23029
|
-
e$1.AbstractProduction = p$
|
|
23099
|
+
e$1.AbstractProduction = p$2;
|
|
23030
23100
|
var d$1 = function(t$9) {
|
|
23031
23101
|
function e$2(e$3) {
|
|
23032
23102
|
var r$2 = t$9.call(this, []) || this;
|
|
@@ -23044,7 +23114,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
23044
23114
|
}), e$2.prototype.accept = function(t$10) {
|
|
23045
23115
|
t$10.visit(this);
|
|
23046
23116
|
}, e$2;
|
|
23047
|
-
}(p$
|
|
23117
|
+
}(p$2);
|
|
23048
23118
|
e$1.NonTerminal = d$1;
|
|
23049
23119
|
var h$2 = function(t$9) {
|
|
23050
23120
|
function e$2(e$3) {
|
|
@@ -23054,7 +23124,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
23054
23124
|
}))), r$2;
|
|
23055
23125
|
}
|
|
23056
23126
|
return o$1(e$2, t$9), e$2;
|
|
23057
|
-
}(p$
|
|
23127
|
+
}(p$2);
|
|
23058
23128
|
e$1.Rule = h$2;
|
|
23059
23129
|
var v = function(t$9) {
|
|
23060
23130
|
function e$2(e$3) {
|
|
@@ -23064,7 +23134,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
23064
23134
|
}))), r$2;
|
|
23065
23135
|
}
|
|
23066
23136
|
return o$1(e$2, t$9), e$2;
|
|
23067
|
-
}(p$
|
|
23137
|
+
}(p$2);
|
|
23068
23138
|
e$1.Alternative = v;
|
|
23069
23139
|
var y$1 = function(t$9) {
|
|
23070
23140
|
function e$2(e$3) {
|
|
@@ -23074,7 +23144,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
23074
23144
|
}))), r$2;
|
|
23075
23145
|
}
|
|
23076
23146
|
return o$1(e$2, t$9), e$2;
|
|
23077
|
-
}(p$
|
|
23147
|
+
}(p$2);
|
|
23078
23148
|
e$1.Option = y$1;
|
|
23079
23149
|
var m$1 = function(t$9) {
|
|
23080
23150
|
function e$2(e$3) {
|
|
@@ -23084,7 +23154,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
23084
23154
|
}))), r$2;
|
|
23085
23155
|
}
|
|
23086
23156
|
return o$1(e$2, t$9), e$2;
|
|
23087
|
-
}(p$
|
|
23157
|
+
}(p$2);
|
|
23088
23158
|
e$1.RepetitionMandatory = m$1;
|
|
23089
23159
|
var T = function(t$9) {
|
|
23090
23160
|
function e$2(e$3) {
|
|
@@ -23094,7 +23164,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
23094
23164
|
}))), r$2;
|
|
23095
23165
|
}
|
|
23096
23166
|
return o$1(e$2, t$9), e$2;
|
|
23097
|
-
}(p$
|
|
23167
|
+
}(p$2);
|
|
23098
23168
|
e$1.RepetitionMandatoryWithSeparator = T;
|
|
23099
23169
|
var E = function(t$9) {
|
|
23100
23170
|
function e$2(e$3) {
|
|
@@ -23104,7 +23174,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
23104
23174
|
}))), r$2;
|
|
23105
23175
|
}
|
|
23106
23176
|
return o$1(e$2, t$9), e$2;
|
|
23107
|
-
}(p$
|
|
23177
|
+
}(p$2);
|
|
23108
23178
|
e$1.Repetition = E;
|
|
23109
23179
|
var _ = function(t$9) {
|
|
23110
23180
|
function e$2(e$3) {
|
|
@@ -23114,7 +23184,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
23114
23184
|
}))), r$2;
|
|
23115
23185
|
}
|
|
23116
23186
|
return o$1(e$2, t$9), e$2;
|
|
23117
|
-
}(p$
|
|
23187
|
+
}(p$2);
|
|
23118
23188
|
e$1.RepetitionWithSeparator = _;
|
|
23119
23189
|
var g = function(t$9) {
|
|
23120
23190
|
function e$2(e$3) {
|
|
@@ -23133,7 +23203,7 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
23133
23203
|
enumerable: !1,
|
|
23134
23204
|
configurable: !0
|
|
23135
23205
|
}), e$2;
|
|
23136
|
-
}(p$
|
|
23206
|
+
}(p$2);
|
|
23137
23207
|
e$1.Alternation = g;
|
|
23138
23208
|
var O = function() {
|
|
23139
23209
|
function t$9(t$10) {
|
|
@@ -23502,11 +23572,11 @@ var require_chevrotain = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
23502
23572
|
return f.GAstVisitor;
|
|
23503
23573
|
}
|
|
23504
23574
|
});
|
|
23505
|
-
var p$
|
|
23575
|
+
var p$2 = r(8962);
|
|
23506
23576
|
Object.defineProperty(t$8, "generateCstDts", {
|
|
23507
23577
|
enumerable: !0,
|
|
23508
23578
|
get: function() {
|
|
23509
|
-
return p$
|
|
23579
|
+
return p$2.generateCstDts;
|
|
23510
23580
|
}
|
|
23511
23581
|
}), t$8.clearCache = function() {
|
|
23512
23582
|
console.warn("The clearCache function was 'soft' removed from the Chevrotain API.\n It performs no action other than printing this message.\n Please avoid using it as it will be completely removed in the future");
|
|
@@ -24381,7 +24451,7 @@ var require_json = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@bacon
|
|
|
24381
24451
|
return result;
|
|
24382
24452
|
};
|
|
24383
24453
|
var __exportStar$1 = exports && exports.__exportStar || function(m$1, exports$1) {
|
|
24384
|
-
for (var p$
|
|
24454
|
+
for (var p$2 in m$1) if (p$2 !== "default" && !Object.prototype.hasOwnProperty.call(exports$1, p$2)) __createBinding$23(exports$1, m$1, p$2);
|
|
24385
24455
|
};
|
|
24386
24456
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24387
24457
|
exports.build = exports.parse = void 0;
|
|
@@ -28005,7 +28075,7 @@ var require_dom = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@xmldom
|
|
|
28005
28075
|
};
|
|
28006
28076
|
}
|
|
28007
28077
|
function copy(src$2, dest) {
|
|
28008
|
-
for (var p$
|
|
28078
|
+
for (var p$2 in src$2) if (Object.prototype.hasOwnProperty.call(src$2, p$2)) dest[p$2] = src$2[p$2];
|
|
28009
28079
|
}
|
|
28010
28080
|
/**
|
|
28011
28081
|
^\w+\.prototype\.([_\w]+)\s*=\s*((?:.*\{\s*?[\r\n][\s\S]*?^})|\S.*?(?=[;\r\n]));?
|
|
@@ -31419,13 +31489,13 @@ var require_sax = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@xmldom
|
|
|
31419
31489
|
start = end$1;
|
|
31420
31490
|
}
|
|
31421
31491
|
}
|
|
31422
|
-
function position$1(p$
|
|
31423
|
-
while (p$
|
|
31492
|
+
function position$1(p$2, m$1) {
|
|
31493
|
+
while (p$2 >= lineEnd && (m$1 = linePattern.exec(source))) {
|
|
31424
31494
|
lineStart = m$1.index;
|
|
31425
31495
|
lineEnd = lineStart + m$1[0].length;
|
|
31426
31496
|
locator.lineNumber++;
|
|
31427
31497
|
}
|
|
31428
|
-
locator.columnNumber = p$
|
|
31498
|
+
locator.columnNumber = p$2 - lineStart + 1;
|
|
31429
31499
|
}
|
|
31430
31500
|
var lineStart = 0;
|
|
31431
31501
|
var lineEnd = 0;
|
|
@@ -31534,14 +31604,14 @@ var require_sax = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@xmldom
|
|
|
31534
31604
|
}
|
|
31535
31605
|
var attrName;
|
|
31536
31606
|
var value;
|
|
31537
|
-
var p$
|
|
31607
|
+
var p$2 = ++start;
|
|
31538
31608
|
var s$1 = S_TAG;
|
|
31539
31609
|
while (true) {
|
|
31540
|
-
var c$1 = source.charAt(p$
|
|
31610
|
+
var c$1 = source.charAt(p$2);
|
|
31541
31611
|
switch (c$1) {
|
|
31542
31612
|
case "=":
|
|
31543
31613
|
if (s$1 === S_ATTR) {
|
|
31544
|
-
attrName = source.slice(start, p$
|
|
31614
|
+
attrName = source.slice(start, p$2);
|
|
31545
31615
|
s$1 = S_EQ;
|
|
31546
31616
|
} else if (s$1 === S_ATTR_SPACE) s$1 = S_EQ;
|
|
31547
31617
|
else throw new Error("attribute equal must after attrName");
|
|
@@ -31551,26 +31621,26 @@ var require_sax = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@xmldom
|
|
|
31551
31621
|
if (s$1 === S_EQ || s$1 === S_ATTR) {
|
|
31552
31622
|
if (s$1 === S_ATTR) {
|
|
31553
31623
|
errorHandler.warning("attribute value must after \"=\"");
|
|
31554
|
-
attrName = source.slice(start, p$
|
|
31624
|
+
attrName = source.slice(start, p$2);
|
|
31555
31625
|
}
|
|
31556
|
-
start = p$
|
|
31557
|
-
p$
|
|
31558
|
-
if (p$
|
|
31559
|
-
value = source.slice(start, p$
|
|
31626
|
+
start = p$2 + 1;
|
|
31627
|
+
p$2 = source.indexOf(c$1, start);
|
|
31628
|
+
if (p$2 > 0) {
|
|
31629
|
+
value = source.slice(start, p$2).replace(/&#?\w+;/g, entityReplacer);
|
|
31560
31630
|
addAttribute(attrName, value, start - 1);
|
|
31561
31631
|
s$1 = S_ATTR_END;
|
|
31562
31632
|
} else throw new Error("attribute value no end '" + c$1 + "' match");
|
|
31563
31633
|
} else if (s$1 == S_ATTR_NOQUOT_VALUE) {
|
|
31564
|
-
value = source.slice(start, p$
|
|
31634
|
+
value = source.slice(start, p$2).replace(/&#?\w+;/g, entityReplacer);
|
|
31565
31635
|
addAttribute(attrName, value, start);
|
|
31566
31636
|
errorHandler.warning("attribute \"" + attrName + "\" missed start quot(" + c$1 + ")!!");
|
|
31567
|
-
start = p$
|
|
31637
|
+
start = p$2 + 1;
|
|
31568
31638
|
s$1 = S_ATTR_END;
|
|
31569
31639
|
} else throw new Error("attribute value must after \"=\"");
|
|
31570
31640
|
break;
|
|
31571
31641
|
case "/":
|
|
31572
31642
|
switch (s$1) {
|
|
31573
|
-
case S_TAG: el.setTagName(source.slice(start, p$
|
|
31643
|
+
case S_TAG: el.setTagName(source.slice(start, p$2));
|
|
31574
31644
|
case S_ATTR_END:
|
|
31575
31645
|
case S_TAG_SPACE:
|
|
31576
31646
|
case S_TAG_CLOSE:
|
|
@@ -31586,17 +31656,17 @@ var require_sax = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@xmldom
|
|
|
31586
31656
|
break;
|
|
31587
31657
|
case "":
|
|
31588
31658
|
errorHandler.error("unexpected end of input");
|
|
31589
|
-
if (s$1 == S_TAG) el.setTagName(source.slice(start, p$
|
|
31590
|
-
return p$
|
|
31659
|
+
if (s$1 == S_TAG) el.setTagName(source.slice(start, p$2));
|
|
31660
|
+
return p$2;
|
|
31591
31661
|
case ">":
|
|
31592
31662
|
switch (s$1) {
|
|
31593
|
-
case S_TAG: el.setTagName(source.slice(start, p$
|
|
31663
|
+
case S_TAG: el.setTagName(source.slice(start, p$2));
|
|
31594
31664
|
case S_ATTR_END:
|
|
31595
31665
|
case S_TAG_SPACE:
|
|
31596
31666
|
case S_TAG_CLOSE: break;
|
|
31597
31667
|
case S_ATTR_NOQUOT_VALUE:
|
|
31598
31668
|
case S_ATTR:
|
|
31599
|
-
value = source.slice(start, p$
|
|
31669
|
+
value = source.slice(start, p$2);
|
|
31600
31670
|
if (value.slice(-1) === "/") {
|
|
31601
31671
|
el.closed = true;
|
|
31602
31672
|
value = value.slice(0, -1);
|
|
@@ -31613,19 +31683,19 @@ var require_sax = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@xmldom
|
|
|
31613
31683
|
break;
|
|
31614
31684
|
case S_EQ: throw new Error("attribute value missed!!");
|
|
31615
31685
|
}
|
|
31616
|
-
return p$
|
|
31686
|
+
return p$2;
|
|
31617
31687
|
case "": c$1 = " ";
|
|
31618
31688
|
default: if (c$1 <= " ") switch (s$1) {
|
|
31619
31689
|
case S_TAG:
|
|
31620
|
-
el.setTagName(source.slice(start, p$
|
|
31690
|
+
el.setTagName(source.slice(start, p$2));
|
|
31621
31691
|
s$1 = S_TAG_SPACE;
|
|
31622
31692
|
break;
|
|
31623
31693
|
case S_ATTR:
|
|
31624
|
-
attrName = source.slice(start, p$
|
|
31694
|
+
attrName = source.slice(start, p$2);
|
|
31625
31695
|
s$1 = S_ATTR_SPACE;
|
|
31626
31696
|
break;
|
|
31627
31697
|
case S_ATTR_NOQUOT_VALUE:
|
|
31628
|
-
var value = source.slice(start, p$
|
|
31698
|
+
var value = source.slice(start, p$2).replace(/&#?\w+;/g, entityReplacer);
|
|
31629
31699
|
errorHandler.warning("attribute \"" + value + "\" missed quot(\")!!");
|
|
31630
31700
|
addAttribute(attrName, value, start);
|
|
31631
31701
|
case S_ATTR_END:
|
|
@@ -31637,22 +31707,22 @@ var require_sax = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@xmldom
|
|
|
31637
31707
|
el.tagName;
|
|
31638
31708
|
if (!NAMESPACE$1.isHTML(currentNSMap[""]) || !attrName.match(/^(?:disabled|checked|selected)$/i)) errorHandler.warning("attribute \"" + attrName + "\" missed value!! \"" + attrName + "\" instead2!!");
|
|
31639
31709
|
addAttribute(attrName, attrName, start);
|
|
31640
|
-
start = p$
|
|
31710
|
+
start = p$2;
|
|
31641
31711
|
s$1 = S_ATTR;
|
|
31642
31712
|
break;
|
|
31643
31713
|
case S_ATTR_END: errorHandler.warning("attribute space is required\"" + attrName + "\"!!");
|
|
31644
31714
|
case S_TAG_SPACE:
|
|
31645
31715
|
s$1 = S_ATTR;
|
|
31646
|
-
start = p$
|
|
31716
|
+
start = p$2;
|
|
31647
31717
|
break;
|
|
31648
31718
|
case S_EQ:
|
|
31649
31719
|
s$1 = S_ATTR_NOQUOT_VALUE;
|
|
31650
|
-
start = p$
|
|
31720
|
+
start = p$2;
|
|
31651
31721
|
break;
|
|
31652
31722
|
case S_TAG_CLOSE: throw new Error("elements closed character '/' and '>' must be connected to");
|
|
31653
31723
|
}
|
|
31654
31724
|
}
|
|
31655
|
-
p$
|
|
31725
|
+
p$2++;
|
|
31656
31726
|
}
|
|
31657
31727
|
}
|
|
31658
31728
|
/**
|
|
@@ -34305,7 +34375,7 @@ var require_build = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@baco
|
|
|
34305
34375
|
o$1[k2] = m$1[k];
|
|
34306
34376
|
}));
|
|
34307
34377
|
var __exportStar = exports && exports.__exportStar || function(m$1, exports$1) {
|
|
34308
|
-
for (var p$
|
|
34378
|
+
for (var p$2 in m$1) if (p$2 !== "default" && !Object.prototype.hasOwnProperty.call(exports$1, p$2)) __createBinding(exports$1, m$1, p$2);
|
|
34309
34379
|
};
|
|
34310
34380
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34311
34381
|
__exportStar(require_api(), exports);
|
|
@@ -34423,7 +34493,7 @@ const nativeBuild = async (options) => {
|
|
|
34423
34493
|
s$1.start(`Fingerprinting (${platform$2})`);
|
|
34424
34494
|
const generatedFingerprint = (await createAndInjectFingerprintFiles()).fingerprint[platform$2];
|
|
34425
34495
|
s$1.stop(`Fingerprint(${platform$2}): ${generatedFingerprint}`);
|
|
34426
|
-
if (!isFingerprintEquals(localFingerprint, generatedFingerprint)) p.log.info(`${
|
|
34496
|
+
if (!isFingerprintEquals(localFingerprint, generatedFingerprint)) p.log.info(`${colors.blue(`fingerprint.json, ${platform$2} fingerprint config files`)} have been changed.`);
|
|
34427
34497
|
target.fingerprintHash = generatedFingerprint.hash;
|
|
34428
34498
|
} else if (config.updateStrategy === "appVersion") {
|
|
34429
34499
|
const s$1 = p.spinner();
|
|
@@ -34461,7 +34531,7 @@ const nativeBuild = async (options) => {
|
|
|
34461
34531
|
taskRef.buildResult.buildDirectory = buildDirectory;
|
|
34462
34532
|
await buildPlugin.nativeBuild?.postbuild?.({ platform: platform$2 });
|
|
34463
34533
|
await fs$1.promises.mkdir(normalizeOutputPath, { recursive: true });
|
|
34464
|
-
p.log.success(`Artifact stored at ${
|
|
34534
|
+
p.log.success(`Artifact stored at ${colors.blueBright(path$1.relative(getCwd(), artifactResultStorePath))}.`);
|
|
34465
34535
|
await fs$1.promises.rm(artifactResultStorePath, {
|
|
34466
34536
|
recursive: true,
|
|
34467
34537
|
force: true
|
|
@@ -35387,7 +35457,6 @@ const getDefaultTargetAppVersion = async (platform$2) => {
|
|
|
35387
35457
|
|
|
35388
35458
|
//#endregion
|
|
35389
35459
|
//#region src/commands/deploy.ts
|
|
35390
|
-
var import_picocolors$4 = /* @__PURE__ */ __toESM(require_picocolors(), 1);
|
|
35391
35460
|
var import_valid$1 = /* @__PURE__ */ __toESM(require_valid$2(), 1);
|
|
35392
35461
|
const getExtensionFromCompressStrategy = (compressStrategy) => {
|
|
35393
35462
|
switch (compressStrategy) {
|
|
@@ -35520,7 +35589,7 @@ const deploy = async (options) => {
|
|
|
35520
35589
|
}
|
|
35521
35590
|
bundleId = taskRef.buildResult.bundleId;
|
|
35522
35591
|
fileHash = await getFileHashFromFile(bundlePath);
|
|
35523
|
-
p.log.success(`Bundle stored at ${
|
|
35592
|
+
p.log.success(`Bundle stored at ${colors.blueBright(path$1.relative(cwd, bundlePath))}`);
|
|
35524
35593
|
return `✅ Build Complete (${buildPlugin.name})`;
|
|
35525
35594
|
}
|
|
35526
35595
|
}]);
|
|
@@ -35854,27 +35923,26 @@ const getChannel = async (platform$2) => {
|
|
|
35854
35923
|
|
|
35855
35924
|
//#endregion
|
|
35856
35925
|
//#region src/commands/channel.ts
|
|
35857
|
-
var import_picocolors$3 = /* @__PURE__ */ __toESM(require_picocolors(), 1);
|
|
35858
35926
|
const handleChannel = async () => {
|
|
35859
35927
|
const androidChannel = await getChannel("android");
|
|
35860
35928
|
const iosChannel = await getChannel("ios");
|
|
35861
|
-
p.log.info(`Current Android channel: ${
|
|
35862
|
-
p.log.info(` from: ${
|
|
35863
|
-
p.log.info(`Current iOS channel: ${
|
|
35864
|
-
p.log.info(` from: ${
|
|
35929
|
+
p.log.info(`Current Android channel: ${colors.green(androidChannel.value)}`);
|
|
35930
|
+
p.log.info(` from: ${colors.blue(androidChannel.paths[0])}`);
|
|
35931
|
+
p.log.info(`Current iOS channel: ${colors.green(iosChannel.value)}`);
|
|
35932
|
+
p.log.info(` from: ${colors.blue(iosChannel.paths[0])}`);
|
|
35865
35933
|
};
|
|
35866
35934
|
const handleSetChannel = async (channel) => {
|
|
35867
35935
|
const { paths: androidPaths } = await setChannel("android", channel);
|
|
35868
|
-
p.log.success(`Set Android channel to: ${
|
|
35936
|
+
p.log.success(`Set Android channel to: ${colors.green(channel)}`);
|
|
35869
35937
|
if (androidPaths.length > 0) {
|
|
35870
|
-
p.log.info(
|
|
35871
|
-
for (const path$6 of androidPaths) p.log.info(` ${
|
|
35938
|
+
p.log.info(colors.bold("Changed Android paths:"));
|
|
35939
|
+
for (const path$6 of androidPaths) p.log.info(` ${colors.green(path$6)}`);
|
|
35872
35940
|
}
|
|
35873
35941
|
const { paths: iosPaths } = await setChannel("ios", channel);
|
|
35874
|
-
p.log.success(`Set iOS channel to: ${
|
|
35942
|
+
p.log.success(`Set iOS channel to: ${colors.green(channel)}`);
|
|
35875
35943
|
if (iosPaths.length > 0) {
|
|
35876
|
-
p.log.info(
|
|
35877
|
-
for (const path$6 of iosPaths) p.log.info(` ${
|
|
35944
|
+
p.log.info(colors.bold("Changed iOS paths:"));
|
|
35945
|
+
for (const path$6 of iosPaths) p.log.info(` ${colors.green(path$6)}`);
|
|
35878
35946
|
}
|
|
35879
35947
|
p.log.success("You need to rebuild the native app if the channel has changed.");
|
|
35880
35948
|
};
|
|
@@ -36604,7 +36672,6 @@ const handleDoctor = async ({ fix }) => {
|
|
|
36604
36672
|
|
|
36605
36673
|
//#endregion
|
|
36606
36674
|
//#region src/commands/fingerprint.ts
|
|
36607
|
-
var import_picocolors$2 = /* @__PURE__ */ __toESM(require_picocolors(), 1);
|
|
36608
36675
|
const handleFingerprint = async () => {
|
|
36609
36676
|
const s$1 = p.spinner();
|
|
36610
36677
|
s$1.start("Generating fingerprints");
|
|
@@ -36659,14 +36726,14 @@ const handleCreateFingerprint = async () => {
|
|
|
36659
36726
|
}
|
|
36660
36727
|
if (diffChanged && result) {
|
|
36661
36728
|
if (result.androidPaths.length > 0) {
|
|
36662
|
-
p.log.info(
|
|
36663
|
-
for (const path$6 of result.androidPaths) p.log.info(` ${
|
|
36729
|
+
p.log.info(colors.bold("Changed Android paths:"));
|
|
36730
|
+
for (const path$6 of result.androidPaths) p.log.info(` ${colors.green(path$6)}`);
|
|
36664
36731
|
}
|
|
36665
36732
|
if (result.iosPaths.length > 0) {
|
|
36666
|
-
p.log.info(
|
|
36667
|
-
for (const path$6 of result.iosPaths) p.log.info(` ${
|
|
36733
|
+
p.log.info(colors.bold("Changed iOS paths:"));
|
|
36734
|
+
for (const path$6 of result.iosPaths) p.log.info(` ${colors.green(path$6)}`);
|
|
36668
36735
|
}
|
|
36669
|
-
p.log.success(
|
|
36736
|
+
p.log.success(colors.bold(`${colors.blue("fingerprint.json")} has changed, you need to rebuild the native app.`));
|
|
36670
36737
|
if (localFingerprint && result.fingerprint) {
|
|
36671
36738
|
const fingerprintConfig = (await loadConfig(null)).fingerprint;
|
|
36672
36739
|
try {
|
|
@@ -36682,7 +36749,7 @@ const handleCreateFingerprint = async () => {
|
|
|
36682
36749
|
p.log.warn("Could not generate fingerprint diff");
|
|
36683
36750
|
}
|
|
36684
36751
|
}
|
|
36685
|
-
} else p.log.success(
|
|
36752
|
+
} else p.log.success(colors.bold(`${colors.blue("fingerprint.json")} is up to date.`));
|
|
36686
36753
|
};
|
|
36687
36754
|
|
|
36688
36755
|
//#endregion
|
|
@@ -36890,8 +36957,18 @@ function mergePrismaSchema(existingSchema, hotUpdaterModels) {
|
|
|
36890
36957
|
|
|
36891
36958
|
//#endregion
|
|
36892
36959
|
//#region src/commands/generate.ts
|
|
36960
|
+
const SUPPORTED_PROVIDERS = [
|
|
36961
|
+
"postgresql",
|
|
36962
|
+
"mysql",
|
|
36963
|
+
"sqlite"
|
|
36964
|
+
];
|
|
36893
36965
|
async function generate(options) {
|
|
36894
|
-
const { configPath, outputDir = void 0, skipConfirm = false } = options;
|
|
36966
|
+
const { configPath, outputDir = void 0, skipConfirm = false, sql = false } = options;
|
|
36967
|
+
if (sql) return generateStandaloneSQL({
|
|
36968
|
+
outputDir: outputDir || ".",
|
|
36969
|
+
skipConfirm,
|
|
36970
|
+
provider: typeof sql === "string" ? sql : void 0
|
|
36971
|
+
});
|
|
36895
36972
|
try {
|
|
36896
36973
|
const s$1 = p.spinner();
|
|
36897
36974
|
s$1.start("Loading configuration and analyzing schema");
|
|
@@ -37053,10 +37130,144 @@ async function generatePrismaSchema(schemaCode, outputDir, skipConfirm) {
|
|
|
37053
37130
|
p.log.success(schemaExists ? "Updated prisma/schema.prisma" : "Created prisma/schema.prisma");
|
|
37054
37131
|
p.log.info("Next steps:\n 1. Run: npx prisma generate\n 2. Run: npx prisma migrate dev");
|
|
37055
37132
|
}
|
|
37133
|
+
/**
|
|
37134
|
+
* Creates a minimal dummy pool implementation for SQL-only generation
|
|
37135
|
+
* This won't be used for actual database operations
|
|
37136
|
+
*/
|
|
37137
|
+
function createDummyPool() {
|
|
37138
|
+
return {
|
|
37139
|
+
connect: async () => ({
|
|
37140
|
+
query: async () => ({
|
|
37141
|
+
rows: [],
|
|
37142
|
+
command: "SELECT",
|
|
37143
|
+
rowCount: 0
|
|
37144
|
+
}),
|
|
37145
|
+
release: () => {}
|
|
37146
|
+
}),
|
|
37147
|
+
end: async () => {}
|
|
37148
|
+
};
|
|
37149
|
+
}
|
|
37150
|
+
/**
|
|
37151
|
+
* Creates a minimal dummy SQLite database implementation for SQL-only generation
|
|
37152
|
+
* This won't be used for actual database operations
|
|
37153
|
+
*/
|
|
37154
|
+
function createDummySqliteDatabase() {
|
|
37155
|
+
return {
|
|
37156
|
+
close: async () => {},
|
|
37157
|
+
prepare: () => ({
|
|
37158
|
+
all: async () => [],
|
|
37159
|
+
get: async () => void 0,
|
|
37160
|
+
run: async () => ({ changes: 0 }),
|
|
37161
|
+
finalize: async () => {}
|
|
37162
|
+
})
|
|
37163
|
+
};
|
|
37164
|
+
}
|
|
37165
|
+
/**
|
|
37166
|
+
* Creates a Kysely dialect based on the selected database provider
|
|
37167
|
+
*/
|
|
37168
|
+
function createDialect(provider) {
|
|
37169
|
+
switch (provider) {
|
|
37170
|
+
case "postgresql": return new PostgresDialect({ pool: createDummyPool() });
|
|
37171
|
+
case "mysql": return new MysqlDialect({ pool: createDummyPool() });
|
|
37172
|
+
case "sqlite": return new SqliteDialect({ database: createDummySqliteDatabase() });
|
|
37173
|
+
}
|
|
37174
|
+
}
|
|
37175
|
+
/**
|
|
37176
|
+
* Generate standalone SQL file using Kysely preset without reading config
|
|
37177
|
+
*/
|
|
37178
|
+
async function generateStandaloneSQL(options) {
|
|
37179
|
+
const { outputDir, skipConfirm, provider } = options;
|
|
37180
|
+
try {
|
|
37181
|
+
let dbType;
|
|
37182
|
+
if (provider) {
|
|
37183
|
+
if (!SUPPORTED_PROVIDERS.includes(provider)) {
|
|
37184
|
+
p.log.error(`Invalid provider: ${provider}\nValid options: ${SUPPORTED_PROVIDERS.join(", ")}`);
|
|
37185
|
+
process.exit(1);
|
|
37186
|
+
}
|
|
37187
|
+
dbType = provider;
|
|
37188
|
+
} else if (skipConfirm) dbType = "postgresql";
|
|
37189
|
+
else {
|
|
37190
|
+
const selected = await p.select({
|
|
37191
|
+
message: "Select database type",
|
|
37192
|
+
options: [
|
|
37193
|
+
{
|
|
37194
|
+
value: "postgresql",
|
|
37195
|
+
label: "PostgreSQL"
|
|
37196
|
+
},
|
|
37197
|
+
{
|
|
37198
|
+
value: "mysql",
|
|
37199
|
+
label: "MySQL"
|
|
37200
|
+
},
|
|
37201
|
+
{
|
|
37202
|
+
value: "sqlite",
|
|
37203
|
+
label: "SQLite"
|
|
37204
|
+
}
|
|
37205
|
+
]
|
|
37206
|
+
});
|
|
37207
|
+
if (p.isCancel(selected)) {
|
|
37208
|
+
p.cancel("Operation cancelled");
|
|
37209
|
+
process.exit(0);
|
|
37210
|
+
}
|
|
37211
|
+
dbType = selected;
|
|
37212
|
+
}
|
|
37213
|
+
const s$1 = p.spinner();
|
|
37214
|
+
s$1.start("Generating SQL from database schema");
|
|
37215
|
+
const adapter = kyselyAdapter({
|
|
37216
|
+
db: new Kysely({ dialect: createDialect(dbType) }),
|
|
37217
|
+
provider: dbType
|
|
37218
|
+
});
|
|
37219
|
+
const result = await HotUpdaterDB.client(adapter).createMigrator().migrateToLatest({
|
|
37220
|
+
mode: "from-schema",
|
|
37221
|
+
updateSettings: false
|
|
37222
|
+
});
|
|
37223
|
+
s$1.stop("SQL generation complete");
|
|
37224
|
+
if (!result.getSQL) {
|
|
37225
|
+
p.log.error("SQL generation is not supported by the database adapter.\nThis may indicate a configuration issue.");
|
|
37226
|
+
process.exit(1);
|
|
37227
|
+
}
|
|
37228
|
+
const sql = result.getSQL();
|
|
37229
|
+
if (!sql || sql.trim() === "") {
|
|
37230
|
+
p.log.error("No SQL was generated from the schema.\nThe schema may be empty or invalid.");
|
|
37231
|
+
process.exit(1);
|
|
37232
|
+
}
|
|
37233
|
+
const formattedSql = format(sql, {
|
|
37234
|
+
language: dbType,
|
|
37235
|
+
tabWidth: 2,
|
|
37236
|
+
keywordCase: "upper"
|
|
37237
|
+
});
|
|
37238
|
+
const absoluteOutputDir = path$1.resolve(process.cwd(), outputDir);
|
|
37239
|
+
await mkdir(absoluteOutputDir, { recursive: true });
|
|
37240
|
+
const filename = "hot-updater.sql";
|
|
37241
|
+
const outputPath = path$1.join(absoluteOutputDir, filename);
|
|
37242
|
+
const fileExists = await access(outputPath).then(() => true).catch(() => false);
|
|
37243
|
+
if (!skipConfirm) {
|
|
37244
|
+
p.log.info("\nGenerated SQL preview:\n");
|
|
37245
|
+
console.log(formattedSql);
|
|
37246
|
+
console.log("");
|
|
37247
|
+
if (fileExists) p.log.warn(`File ${filename} already exists and will be overwritten.`);
|
|
37248
|
+
const shouldContinue = await p.confirm({
|
|
37249
|
+
message: `Save to ${filename}?`,
|
|
37250
|
+
initialValue: true
|
|
37251
|
+
});
|
|
37252
|
+
if (p.isCancel(shouldContinue) || !shouldContinue) {
|
|
37253
|
+
p.cancel("Operation cancelled");
|
|
37254
|
+
process.exit(0);
|
|
37255
|
+
}
|
|
37256
|
+
} else if (fileExists) p.log.warn(`Overwriting existing file: ${outputPath}`);
|
|
37257
|
+
await writeFile(outputPath, formattedSql, "utf-8");
|
|
37258
|
+
p.log.success(`SQL file created: ${outputPath}`);
|
|
37259
|
+
} catch (error) {
|
|
37260
|
+
p.log.error("Failed to generate standalone SQL");
|
|
37261
|
+
if (error instanceof Error) {
|
|
37262
|
+
p.log.error(error.message);
|
|
37263
|
+
if (process.env["DEBUG"]) console.error(error.stack);
|
|
37264
|
+
}
|
|
37265
|
+
process.exit(1);
|
|
37266
|
+
}
|
|
37267
|
+
}
|
|
37056
37268
|
|
|
37057
37269
|
//#endregion
|
|
37058
37270
|
//#region src/commands/migrate.ts
|
|
37059
|
-
var import_picocolors$1 = /* @__PURE__ */ __toESM(require_picocolors(), 1);
|
|
37060
37271
|
/**
|
|
37061
37272
|
* Format migration operations into human-readable changes
|
|
37062
37273
|
*/
|
|
@@ -37080,7 +37291,7 @@ function formatOperations(operations) {
|
|
|
37080
37291
|
const maxNameLength = Math.max(...columns.map((c$1) => c$1.name.length));
|
|
37081
37292
|
for (const col of columns) {
|
|
37082
37293
|
const paddedName = col.name.padEnd(maxNameLength);
|
|
37083
|
-
changes.push(` ${
|
|
37294
|
+
changes.push(` ${colors.cyan(paddedName)} ${colors.yellow(col.type)}`);
|
|
37084
37295
|
}
|
|
37085
37296
|
}
|
|
37086
37297
|
}
|
|
@@ -37224,7 +37435,6 @@ async function migrateWithMigrator(hotUpdater, skipConfirm, s$1) {
|
|
|
37224
37435
|
|
|
37225
37436
|
//#endregion
|
|
37226
37437
|
//#region src/index.ts
|
|
37227
|
-
var import_picocolors = /* @__PURE__ */ __toESM(require_picocolors(), 1);
|
|
37228
37438
|
var import_valid = /* @__PURE__ */ __toESM(require_valid$2(), 1);
|
|
37229
37439
|
const DEFAULT_CHANNEL = "production";
|
|
37230
37440
|
const program = new Command();
|
|
@@ -37249,7 +37459,7 @@ program.command("deploy").description("deploy a new version").addOption(platform
|
|
|
37249
37459
|
program.command("console").description("open the console").action(async () => {
|
|
37250
37460
|
printBanner$1();
|
|
37251
37461
|
await openConsole(await getConsolePort(), (info) => {
|
|
37252
|
-
console.log(`Server running on ${
|
|
37462
|
+
console.log(`Server running on ${colors.magenta(colors.underline(`http://localhost:${info.port}`))}`);
|
|
37253
37463
|
});
|
|
37254
37464
|
});
|
|
37255
37465
|
program.command("app-version").description("get the current app version").action(async () => {
|
|
@@ -37265,11 +37475,12 @@ dbCommand.command("migrate").description("Run database migration (creates tables
|
|
|
37265
37475
|
skipConfirm: options.yes
|
|
37266
37476
|
});
|
|
37267
37477
|
});
|
|
37268
|
-
dbCommand.command("generate").description("Generate SQL migration file (does not execute)").argument("
|
|
37478
|
+
dbCommand.command("generate").description("Generate SQL migration file (does not execute)").argument("[configPath]", "path to the config file that exports hotUpdater (not required with --sql)").argument("[outputDir]", "output directory (default: hot-updater_migrations)").option("-y, --yes", "skip confirmation prompt", false).option("--sql [provider]", "generate standalone SQL file without reading config. Optional provider: postgresql, mysql, sqlite (default: interactive selection)").action(async (configPath, outputDir, options) => {
|
|
37269
37479
|
await generate({
|
|
37270
|
-
configPath,
|
|
37480
|
+
configPath: configPath || "",
|
|
37271
37481
|
outputDir,
|
|
37272
|
-
skipConfirm: options.yes
|
|
37482
|
+
skipConfirm: options.yes,
|
|
37483
|
+
sql: options.sql === true ? true : options.sql || false
|
|
37273
37484
|
});
|
|
37274
37485
|
});
|
|
37275
37486
|
if (process.env["NODE_ENV"] === "development") program.command("build:native").description("build a new native artifact and deploy").addOption(new Option("-p, --platform <platform>", "specify the platform").choices(["ios", "android"])).addOption(new Option("-o, --output-path <outputPath>", "the path where the artifacts will be generated")).addOption(interactiveCommandOption).addOption(new Option("-m, --message <message>", "Specify a custom message for this deployment. If not provided, the latest git commit message will be used as the deployment message")).action(async (options) => {
|