@arcgis/create 5.2.0-next.112 → 5.2.0-next.113
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/init.js +846 -830
- package/package.json +1 -1
package/dist/init.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { EventEmitter as
|
|
1
|
+
import { EventEmitter as Ca } from "node:events";
|
|
2
2
|
import Yt from "node:child_process";
|
|
3
|
-
import
|
|
3
|
+
import Se from "node:path";
|
|
4
4
|
import nt from "node:fs";
|
|
5
5
|
import q, { stdout as Ln, stdin as ho } from "node:process";
|
|
6
6
|
import { stripVTControlCharacters as po, styleText as oe } from "node:util";
|
|
7
7
|
import * as st from "node:readline";
|
|
8
|
-
import
|
|
8
|
+
import Aa from "node:readline";
|
|
9
9
|
import Qn, { ReadStream as Zn } from "node:tty";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
10
|
+
import La from "node:os";
|
|
11
|
+
import se from "fs/promises";
|
|
12
|
+
import Re from "path";
|
|
13
13
|
import Ee from "process";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
14
|
+
import Oa from "child_process";
|
|
15
|
+
import $a, { promisify as _a } from "util";
|
|
16
|
+
import Na from "node:url";
|
|
17
|
+
import Pa from "url";
|
|
18
|
+
import Ia from "node:module";
|
|
19
|
+
import Ta from "buffer";
|
|
20
20
|
class Ot extends Error {
|
|
21
21
|
/**
|
|
22
22
|
* Constructs the CommanderError class
|
|
@@ -37,7 +37,7 @@ class mo extends Ot {
|
|
|
37
37
|
super(1, "commander.invalidArgument", t), Error.captureStackTrace(this, this.constructor), this.name = this.constructor.name;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
class
|
|
40
|
+
class ka {
|
|
41
41
|
/**
|
|
42
42
|
* Initialize a new command argument with the given name and description.
|
|
43
43
|
* The default is that the argument is required, and you can explicitly
|
|
@@ -129,7 +129,7 @@ function go(e) {
|
|
|
129
129
|
const t = e.name() + (e.variadic === !0 ? "..." : "");
|
|
130
130
|
return e.required ? "<" + t + ">" : "[" + t + "]";
|
|
131
131
|
}
|
|
132
|
-
class
|
|
132
|
+
class xa {
|
|
133
133
|
constructor() {
|
|
134
134
|
this.helpWidth = void 0, this.minWidthToWrap = 40, this.sortSubcommands = !1, this.sortOptions = !1, this.showGlobalOptions = !1;
|
|
135
135
|
}
|
|
@@ -607,7 +607,7 @@ class es {
|
|
|
607
607
|
*/
|
|
608
608
|
constructor(t, i) {
|
|
609
609
|
this.flags = t, this.description = i || "", this.required = t.includes("<"), this.optional = t.includes("["), this.variadic = /\w\.\.\.[>\]]$/.test(t), this.mandatory = !1;
|
|
610
|
-
const l =
|
|
610
|
+
const l = Ma(t);
|
|
611
611
|
this.short = l.shortFlag, this.long = l.longFlag, this.negate = !1, this.long && (this.negate = this.long.startsWith("--no-")), this.defaultValue = void 0, this.defaultValueDescription = void 0, this.presetArg = void 0, this.envVar = void 0, this.parseArg = void 0, this.hidden = !1, this.argChoices = void 0, this.conflictsWith = [], this.implied = void 0, this.helpGroupHeading = void 0;
|
|
612
612
|
}
|
|
613
613
|
/**
|
|
@@ -773,7 +773,7 @@ class es {
|
|
|
773
773
|
return !this.required && !this.optional && !this.negate;
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
|
-
class
|
|
776
|
+
class Ra {
|
|
777
777
|
/**
|
|
778
778
|
* @param {Option[]} options
|
|
779
779
|
*/
|
|
@@ -801,7 +801,7 @@ class xa {
|
|
|
801
801
|
function ts(e) {
|
|
802
802
|
return e.split("-").reduce((t, i) => t + i[0].toUpperCase() + i.slice(1));
|
|
803
803
|
}
|
|
804
|
-
function
|
|
804
|
+
function Ma(e) {
|
|
805
805
|
let t, i;
|
|
806
806
|
const l = /^-[^-]$/, p = /^--[^-]/, s = e.split(/[ |,]+/).concat("guard");
|
|
807
807
|
if (l.test(s[0]) && (t = s.shift()), p.test(s[0]) && (i = s.shift()), !t && l.test(s[0]) && (t = s.shift()), !t && p.test(s[0]) && (t = i, i = s.shift()), s[0].startsWith("-")) {
|
|
@@ -823,7 +823,7 @@ function Ra(e) {
|
|
|
823
823
|
return { shortFlag: t, longFlag: i };
|
|
824
824
|
}
|
|
825
825
|
const yo = 3;
|
|
826
|
-
function
|
|
826
|
+
function Da(e, t) {
|
|
827
827
|
if (Math.abs(e.length - t.length) > yo)
|
|
828
828
|
return Math.max(e.length, t.length);
|
|
829
829
|
const i = [];
|
|
@@ -854,13 +854,13 @@ function is(e, t) {
|
|
|
854
854
|
const s = 0.4;
|
|
855
855
|
return t.forEach((c) => {
|
|
856
856
|
if (c.length <= 1) return;
|
|
857
|
-
const h =
|
|
857
|
+
const h = Da(e, c), o = Math.max(e.length, c.length);
|
|
858
858
|
(o - h) / o > s && (h < p ? (p = h, l = [c]) : h === p && l.push(c));
|
|
859
859
|
}), l.sort((c, h) => c.localeCompare(h)), i && (l = l.map((c) => `--${c}`)), l.length > 1 ? `
|
|
860
860
|
(Did you mean one of ${l.join(", ")}?)` : l.length === 1 ? `
|
|
861
861
|
(Did you mean ${l[0]}?)` : "";
|
|
862
862
|
}
|
|
863
|
-
class It extends
|
|
863
|
+
class It extends Ca {
|
|
864
864
|
/**
|
|
865
865
|
* Initialize a new `Command`.
|
|
866
866
|
*
|
|
@@ -948,7 +948,7 @@ class It extends Ea {
|
|
|
948
948
|
* @return {Help}
|
|
949
949
|
*/
|
|
950
950
|
createHelp() {
|
|
951
|
-
return Object.assign(new
|
|
951
|
+
return Object.assign(new xa(), this.configureHelp());
|
|
952
952
|
}
|
|
953
953
|
/**
|
|
954
954
|
* You can customise the help by overriding Help properties using configureHelp(),
|
|
@@ -1032,7 +1032,7 @@ class It extends Ea {
|
|
|
1032
1032
|
* @return {Argument} new argument
|
|
1033
1033
|
*/
|
|
1034
1034
|
createArgument(t, i) {
|
|
1035
|
-
return new
|
|
1035
|
+
return new ka(t, i);
|
|
1036
1036
|
}
|
|
1037
1037
|
/**
|
|
1038
1038
|
* Define argument syntax for command.
|
|
@@ -1631,9 +1631,9 @@ Expecting one of '${l.join("', '")}'`);
|
|
|
1631
1631
|
i = i.slice();
|
|
1632
1632
|
const l = [".js", ".ts", ".tsx", ".mjs", ".cjs"];
|
|
1633
1633
|
function p(n, u) {
|
|
1634
|
-
const a =
|
|
1634
|
+
const a = Se.resolve(n, u);
|
|
1635
1635
|
if (nt.existsSync(a)) return a;
|
|
1636
|
-
if (l.includes(
|
|
1636
|
+
if (l.includes(Se.extname(u))) return;
|
|
1637
1637
|
const r = l.find(
|
|
1638
1638
|
(f) => nt.existsSync(`${a}${f}`)
|
|
1639
1639
|
);
|
|
@@ -1648,17 +1648,17 @@ Expecting one of '${l.join("', '")}'`);
|
|
|
1648
1648
|
} catch {
|
|
1649
1649
|
n = this._scriptPath;
|
|
1650
1650
|
}
|
|
1651
|
-
c =
|
|
1652
|
-
|
|
1651
|
+
c = Se.resolve(
|
|
1652
|
+
Se.dirname(n),
|
|
1653
1653
|
c
|
|
1654
1654
|
);
|
|
1655
1655
|
}
|
|
1656
1656
|
if (c) {
|
|
1657
1657
|
let n = p(c, s);
|
|
1658
1658
|
if (!n && !t._executableFile && this._scriptPath) {
|
|
1659
|
-
const u =
|
|
1659
|
+
const u = Se.basename(
|
|
1660
1660
|
this._scriptPath,
|
|
1661
|
-
|
|
1661
|
+
Se.extname(this._scriptPath)
|
|
1662
1662
|
);
|
|
1663
1663
|
u !== this._name && (n = p(
|
|
1664
1664
|
c,
|
|
@@ -1667,7 +1667,7 @@ Expecting one of '${l.join("', '")}'`);
|
|
|
1667
1667
|
}
|
|
1668
1668
|
s = n || s;
|
|
1669
1669
|
}
|
|
1670
|
-
const h = l.includes(
|
|
1670
|
+
const h = l.includes(Se.extname(s));
|
|
1671
1671
|
let o;
|
|
1672
1672
|
q.platform !== "win32" ? h ? (i.unshift(s), i = ns(q.execArgv).concat(i), o = Yt.spawn(q.argv[0], i, { stdio: "inherit" })) : o = Yt.spawn(s, i, { stdio: "inherit" }) : (this._checkForMissingExecutable(
|
|
1673
1673
|
s,
|
|
@@ -2079,7 +2079,7 @@ Expecting one of '${l.join("', '")}'`);
|
|
|
2079
2079
|
* @private
|
|
2080
2080
|
*/
|
|
2081
2081
|
_parseOptionsImplied() {
|
|
2082
|
-
const t = new
|
|
2082
|
+
const t = new Ra(this.options), i = (l) => this.getOptionValue(l) !== void 0 && !["default", "implied"].includes(this.getOptionValueSource(l));
|
|
2083
2083
|
this.options.filter(
|
|
2084
2084
|
(l) => l.implied !== void 0 && i(l.attributeName()) && t.valueFromOption(
|
|
2085
2085
|
this.getOptionValue(l.attributeName()),
|
|
@@ -2362,7 +2362,7 @@ Expecting one of '${l.join("', '")}'`);
|
|
|
2362
2362
|
* @return {Command}
|
|
2363
2363
|
*/
|
|
2364
2364
|
nameFromFilename(t) {
|
|
2365
|
-
return this._name =
|
|
2365
|
+
return this._name = Se.basename(t, Se.extname(t)), this;
|
|
2366
2366
|
}
|
|
2367
2367
|
/**
|
|
2368
2368
|
* Get or set the directory for searching for executable subcommands of this command.
|
|
@@ -2540,9 +2540,9 @@ function ss() {
|
|
|
2540
2540
|
return !0;
|
|
2541
2541
|
}
|
|
2542
2542
|
new It();
|
|
2543
|
-
const
|
|
2544
|
-
version:
|
|
2545
|
-
},
|
|
2543
|
+
const Fa = "1.0.0-0", Ba = {
|
|
2544
|
+
version: Fa
|
|
2545
|
+
}, Ga = [
|
|
2546
2546
|
{
|
|
2547
2547
|
folder: "js-maps-sdk-react",
|
|
2548
2548
|
label: "react"
|
|
@@ -2602,13 +2602,13 @@ const Da = "1.0.0-0", Fa = {
|
|
|
2602
2602
|
{
|
|
2603
2603
|
folder: "geometry-operator-worker"
|
|
2604
2604
|
}
|
|
2605
|
-
], On = "lumina-components",
|
|
2605
|
+
], On = "lumina-components", qa = "js-maps-sdk-cdn", Tt = {
|
|
2606
2606
|
webGisSdk: "web-gis-sdk"
|
|
2607
2607
|
}, kt = {
|
|
2608
2608
|
codeSample: "CODE_SAMPLE",
|
|
2609
2609
|
appSample: "APP_SAMPLE"
|
|
2610
2610
|
};
|
|
2611
|
-
function
|
|
2611
|
+
function ja(e, t) {
|
|
2612
2612
|
const i = `templates/${e}`;
|
|
2613
2613
|
return {
|
|
2614
2614
|
handlerType: kt.appSample,
|
|
@@ -2619,13 +2619,13 @@ function qa(e, t) {
|
|
|
2619
2619
|
...t ? { customName: t } : {}
|
|
2620
2620
|
};
|
|
2621
2621
|
}
|
|
2622
|
-
function
|
|
2622
|
+
function Ua() {
|
|
2623
2623
|
const e = {};
|
|
2624
|
-
for (const t of
|
|
2624
|
+
for (const t of Ga) {
|
|
2625
2625
|
const { folder: i } = t, l = i;
|
|
2626
2626
|
if (e[l])
|
|
2627
2627
|
throw new Error(`Template registry collision detected for "${l}".`);
|
|
2628
|
-
e[l] =
|
|
2628
|
+
e[l] = ja(i, "label" in t ? t.label : void 0);
|
|
2629
2629
|
}
|
|
2630
2630
|
return e[On] = {
|
|
2631
2631
|
handlerType: kt.codeSample,
|
|
@@ -2634,27 +2634,27 @@ function ja() {
|
|
|
2634
2634
|
excludedFromPrompts: !0
|
|
2635
2635
|
}, e;
|
|
2636
2636
|
}
|
|
2637
|
-
const
|
|
2637
|
+
const Ha = Ua(), Ce = Object.entries(Ha), bo = {
|
|
2638
2638
|
[Tt.webGisSdk]: {}
|
|
2639
2639
|
};
|
|
2640
2640
|
for (const [e, t] of Ce)
|
|
2641
2641
|
t.handlerType === kt.appSample && (bo[t.domain][e] = t.templatePath);
|
|
2642
2642
|
const vo = "github.com", $n = "main", _n = Object.fromEntries(
|
|
2643
2643
|
Ce.map(([e, t]) => [e, t.repo])
|
|
2644
|
-
), Ha = Object.fromEntries(
|
|
2645
|
-
Ce.map(([e, t]) => [e, t.filesPath])
|
|
2646
2644
|
), Va = Object.fromEntries(
|
|
2647
|
-
Ce.map(([e, t]) => [e, t.
|
|
2645
|
+
Ce.map(([e, t]) => [e, t.filesPath])
|
|
2648
2646
|
), Wa = Object.fromEntries(
|
|
2649
|
-
Ce.
|
|
2647
|
+
Ce.map(([e, t]) => [e, t.handlerType])
|
|
2650
2648
|
), Ya = Object.fromEntries(
|
|
2649
|
+
Ce.filter(([, e]) => !!e.excludedFromPrompts).map(([e]) => [e, !0])
|
|
2650
|
+
), Ka = Object.fromEntries(
|
|
2651
2651
|
Ce.map(([e, t]) => [e, t.customName ?? e])
|
|
2652
2652
|
);
|
|
2653
2653
|
function Nn(e) {
|
|
2654
2654
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2655
2655
|
}
|
|
2656
2656
|
var rt = { exports: {} }, rs;
|
|
2657
|
-
function
|
|
2657
|
+
function Ja() {
|
|
2658
2658
|
if (rs) return rt.exports;
|
|
2659
2659
|
rs = 1;
|
|
2660
2660
|
let e = process || {}, t = e.argv || [], i = e.env || {}, l = !(i.NO_COLOR || t.includes("--no-color")) && (!!i.FORCE_COLOR || t.includes("--color") || e.platform === "win32" || (e.stdout || {}).isTTY && i.TERM !== "dumb" || !!i.CI), p = (h, o, m = h) => (n) => {
|
|
@@ -2715,10 +2715,10 @@ function Ka() {
|
|
|
2715
2715
|
};
|
|
2716
2716
|
return rt.exports = c(), rt.exports.createColors = c, rt.exports;
|
|
2717
2717
|
}
|
|
2718
|
-
var
|
|
2719
|
-
const x = /* @__PURE__ */ Nn(
|
|
2718
|
+
var za = /* @__PURE__ */ Ja();
|
|
2719
|
+
const x = /* @__PURE__ */ Nn(za);
|
|
2720
2720
|
var Kt, os;
|
|
2721
|
-
function
|
|
2721
|
+
function Xa() {
|
|
2722
2722
|
if (os) return Kt;
|
|
2723
2723
|
os = 1;
|
|
2724
2724
|
const e = "\x1B", t = `${e}[`, i = "\x07", l = {
|
|
@@ -2759,74 +2759,74 @@ function za() {
|
|
|
2759
2759
|
};
|
|
2760
2760
|
return Kt = { cursor: l, scroll: p, erase: s, beep: i }, Kt;
|
|
2761
2761
|
}
|
|
2762
|
-
var
|
|
2762
|
+
var ne = Xa();
|
|
2763
2763
|
function $t(e, t, i) {
|
|
2764
2764
|
if (!i.some((c) => !c.disabled)) return e;
|
|
2765
2765
|
const l = e + t, p = Math.max(i.length - 1, 0), s = l < 0 ? p : l > p ? 0 : l;
|
|
2766
2766
|
return i[s].disabled ? $t(s, t < 0 ? -1 : 1, i) : s;
|
|
2767
2767
|
}
|
|
2768
|
-
const
|
|
2769
|
-
const l = t.limit ?? 1 / 0, p = t.ellipsis ?? "", s = t?.ellipsisWidth ?? (p ?
|
|
2770
|
-
let f = 0, d = 0, g = e.length, y = 0, v = !1,
|
|
2768
|
+
const Qa = (e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170 || e === 173 || e === 174 || e >= 176 && e <= 180 || e >= 182 && e <= 186 || e >= 188 && e <= 191 || e === 198 || e === 208 || e === 215 || e === 216 || e >= 222 && e <= 225 || e === 230 || e >= 232 && e <= 234 || e === 236 || e === 237 || e === 240 || e === 242 || e === 243 || e >= 247 && e <= 250 || e === 252 || e === 254 || e === 257 || e === 273 || e === 275 || e === 283 || e === 294 || e === 295 || e === 299 || e >= 305 && e <= 307 || e === 312 || e >= 319 && e <= 322 || e === 324 || e >= 328 && e <= 331 || e === 333 || e === 338 || e === 339 || e === 358 || e === 359 || e === 363 || e === 462 || e === 464 || e === 466 || e === 468 || e === 470 || e === 472 || e === 474 || e === 476 || e === 593 || e === 609 || e === 708 || e === 711 || e >= 713 && e <= 715 || e === 717 || e === 720 || e >= 728 && e <= 731 || e === 733 || e === 735 || e >= 768 && e <= 879 || e >= 913 && e <= 929 || e >= 931 && e <= 937 || e >= 945 && e <= 961 || e >= 963 && e <= 969 || e === 1025 || e >= 1040 && e <= 1103 || e === 1105 || e === 8208 || e >= 8211 && e <= 8214 || e === 8216 || e === 8217 || e === 8220 || e === 8221 || e >= 8224 && e <= 8226 || e >= 8228 && e <= 8231 || e === 8240 || e === 8242 || e === 8243 || e === 8245 || e === 8251 || e === 8254 || e === 8308 || e === 8319 || e >= 8321 && e <= 8324 || e === 8364 || e === 8451 || e === 8453 || e === 8457 || e === 8467 || e === 8470 || e === 8481 || e === 8482 || e === 8486 || e === 8491 || e === 8531 || e === 8532 || e >= 8539 && e <= 8542 || e >= 8544 && e <= 8555 || e >= 8560 && e <= 8569 || e === 8585 || e >= 8592 && e <= 8601 || e === 8632 || e === 8633 || e === 8658 || e === 8660 || e === 8679 || e === 8704 || e === 8706 || e === 8707 || e === 8711 || e === 8712 || e === 8715 || e === 8719 || e === 8721 || e === 8725 || e === 8730 || e >= 8733 && e <= 8736 || e === 8739 || e === 8741 || e >= 8743 && e <= 8748 || e === 8750 || e >= 8756 && e <= 8759 || e === 8764 || e === 8765 || e === 8776 || e === 8780 || e === 8786 || e === 8800 || e === 8801 || e >= 8804 && e <= 8807 || e === 8810 || e === 8811 || e === 8814 || e === 8815 || e === 8834 || e === 8835 || e === 8838 || e === 8839 || e === 8853 || e === 8857 || e === 8869 || e === 8895 || e === 8978 || e >= 9312 && e <= 9449 || e >= 9451 && e <= 9547 || e >= 9552 && e <= 9587 || e >= 9600 && e <= 9615 || e >= 9618 && e <= 9621 || e === 9632 || e === 9633 || e >= 9635 && e <= 9641 || e === 9650 || e === 9651 || e === 9654 || e === 9655 || e === 9660 || e === 9661 || e === 9664 || e === 9665 || e >= 9670 && e <= 9672 || e === 9675 || e >= 9678 && e <= 9681 || e >= 9698 && e <= 9701 || e === 9711 || e === 9733 || e === 9734 || e === 9737 || e === 9742 || e === 9743 || e === 9756 || e === 9758 || e === 9792 || e === 9794 || e === 9824 || e === 9825 || e >= 9827 && e <= 9829 || e >= 9831 && e <= 9834 || e === 9836 || e === 9837 || e === 9839 || e === 9886 || e === 9887 || e === 9919 || e >= 9926 && e <= 9933 || e >= 9935 && e <= 9939 || e >= 9941 && e <= 9953 || e === 9955 || e === 9960 || e === 9961 || e >= 9963 && e <= 9969 || e === 9972 || e >= 9974 && e <= 9977 || e === 9979 || e === 9980 || e === 9982 || e === 9983 || e === 10045 || e >= 10102 && e <= 10111 || e >= 11094 && e <= 11097 || e >= 12872 && e <= 12879 || e >= 57344 && e <= 63743 || e >= 65024 && e <= 65039 || e === 65533 || e >= 127232 && e <= 127242 || e >= 127248 && e <= 127277 || e >= 127280 && e <= 127337 || e >= 127344 && e <= 127373 || e === 127375 || e === 127376 || e >= 127387 && e <= 127404 || e >= 917760 && e <= 917999 || e >= 983040 && e <= 1048573 || e >= 1048576 && e <= 1114109, Za = (e) => e === 12288 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510, el = (e) => e >= 4352 && e <= 4447 || e === 8986 || e === 8987 || e === 9001 || e === 9002 || e >= 9193 && e <= 9196 || e === 9200 || e === 9203 || e === 9725 || e === 9726 || e === 9748 || e === 9749 || e >= 9800 && e <= 9811 || e === 9855 || e === 9875 || e === 9889 || e === 9898 || e === 9899 || e === 9917 || e === 9918 || e === 9924 || e === 9925 || e === 9934 || e === 9940 || e === 9962 || e === 9970 || e === 9971 || e === 9973 || e === 9978 || e === 9981 || e === 9989 || e === 9994 || e === 9995 || e === 10024 || e === 10060 || e === 10062 || e >= 10067 && e <= 10069 || e === 10071 || e >= 10133 && e <= 10135 || e === 10160 || e === 10175 || e === 11035 || e === 11036 || e === 11088 || e === 11093 || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12287 || e >= 12289 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12591 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12771 || e >= 12783 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 19903 || e >= 19968 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 94176 && e <= 94180 || e === 94192 || e === 94193 || e >= 94208 && e <= 100343 || e >= 100352 && e <= 101589 || e >= 101632 && e <= 101640 || e >= 110576 && e <= 110579 || e >= 110581 && e <= 110587 || e === 110589 || e === 110590 || e >= 110592 && e <= 110882 || e === 110898 || e >= 110928 && e <= 110930 || e === 110933 || e >= 110948 && e <= 110951 || e >= 110960 && e <= 111355 || e === 126980 || e === 127183 || e === 127374 || e >= 127377 && e <= 127386 || e >= 127488 && e <= 127490 || e >= 127504 && e <= 127547 || e >= 127552 && e <= 127560 || e === 127568 || e === 127569 || e >= 127584 && e <= 127589 || e >= 127744 && e <= 127776 || e >= 127789 && e <= 127797 || e >= 127799 && e <= 127868 || e >= 127870 && e <= 127891 || e >= 127904 && e <= 127946 || e >= 127951 && e <= 127955 || e >= 127968 && e <= 127984 || e === 127988 || e >= 127992 && e <= 128062 || e === 128064 || e >= 128066 && e <= 128252 || e >= 128255 && e <= 128317 || e >= 128331 && e <= 128334 || e >= 128336 && e <= 128359 || e === 128378 || e === 128405 || e === 128406 || e === 128420 || e >= 128507 && e <= 128591 || e >= 128640 && e <= 128709 || e === 128716 || e >= 128720 && e <= 128722 || e >= 128725 && e <= 128727 || e >= 128732 && e <= 128735 || e === 128747 || e === 128748 || e >= 128756 && e <= 128764 || e >= 128992 && e <= 129003 || e === 129008 || e >= 129292 && e <= 129338 || e >= 129340 && e <= 129349 || e >= 129351 && e <= 129535 || e >= 129648 && e <= 129660 || e >= 129664 && e <= 129672 || e >= 129680 && e <= 129725 || e >= 129727 && e <= 129733 || e >= 129742 && e <= 129755 || e >= 129760 && e <= 129768 || e >= 129776 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141, Jt = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y, ot = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y, at = /\t{1,1000}/y, zt = new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*", "yu"), lt = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y, tl = new RegExp("\\p{M}+", "gu"), il = { limit: 1 / 0, ellipsis: "" }, wo = (e, t = {}, i = {}) => {
|
|
2769
|
+
const l = t.limit ?? 1 / 0, p = t.ellipsis ?? "", s = t?.ellipsisWidth ?? (p ? wo(p, il, i).width : 0), c = i.ansiWidth ?? 0, h = i.controlWidth ?? 0, o = i.tabWidth ?? 8, m = i.ambiguousWidth ?? 1, n = i.emojiWidth ?? 2, u = i.fullWidthWidth ?? 2, a = i.regularWidth ?? 1, r = i.wideWidth ?? 2;
|
|
2770
|
+
let f = 0, d = 0, g = e.length, y = 0, v = !1, S = g, b = Math.max(0, l - s), w = 0, L = 0, O = 0, $ = 0;
|
|
2771
2771
|
e: for (; ; ) {
|
|
2772
|
-
if (L >
|
|
2773
|
-
const _ = e.slice(
|
|
2772
|
+
if (L > w || d >= g && d > f) {
|
|
2773
|
+
const _ = e.slice(w, L) || e.slice(f, d);
|
|
2774
2774
|
y = 0;
|
|
2775
|
-
for (const P of _.replaceAll(
|
|
2775
|
+
for (const P of _.replaceAll(tl, "")) {
|
|
2776
2776
|
const I = P.codePointAt(0) || 0;
|
|
2777
|
-
if (
|
|
2777
|
+
if (Za(I) ? $ = u : el(I) ? $ = r : m !== a && Qa(I) ? $ = m : $ = a, O + $ > b && (S = Math.min(S, Math.max(w, f) + y)), O + $ > l) {
|
|
2778
2778
|
v = !0;
|
|
2779
2779
|
break e;
|
|
2780
2780
|
}
|
|
2781
2781
|
y += P.length, O += $;
|
|
2782
2782
|
}
|
|
2783
|
-
|
|
2783
|
+
w = L = 0;
|
|
2784
2784
|
}
|
|
2785
2785
|
if (d >= g) break;
|
|
2786
2786
|
if (lt.lastIndex = d, lt.test(e)) {
|
|
2787
|
-
if (y = lt.lastIndex - d, $ = y * a, O + $ > b && (
|
|
2787
|
+
if (y = lt.lastIndex - d, $ = y * a, O + $ > b && (S = Math.min(S, d + Math.floor((b - O) / a))), O + $ > l) {
|
|
2788
2788
|
v = !0;
|
|
2789
2789
|
break;
|
|
2790
2790
|
}
|
|
2791
|
-
O += $,
|
|
2791
|
+
O += $, w = f, L = d, d = f = lt.lastIndex;
|
|
2792
2792
|
continue;
|
|
2793
2793
|
}
|
|
2794
2794
|
if (Jt.lastIndex = d, Jt.test(e)) {
|
|
2795
|
-
if (O + c > b && (
|
|
2795
|
+
if (O + c > b && (S = Math.min(S, d)), O + c > l) {
|
|
2796
2796
|
v = !0;
|
|
2797
2797
|
break;
|
|
2798
2798
|
}
|
|
2799
|
-
O += c,
|
|
2799
|
+
O += c, w = f, L = d, d = f = Jt.lastIndex;
|
|
2800
2800
|
continue;
|
|
2801
2801
|
}
|
|
2802
2802
|
if (ot.lastIndex = d, ot.test(e)) {
|
|
2803
|
-
if (y = ot.lastIndex - d, $ = y * h, O + $ > b && (
|
|
2803
|
+
if (y = ot.lastIndex - d, $ = y * h, O + $ > b && (S = Math.min(S, d + Math.floor((b - O) / h))), O + $ > l) {
|
|
2804
2804
|
v = !0;
|
|
2805
2805
|
break;
|
|
2806
2806
|
}
|
|
2807
|
-
O += $,
|
|
2807
|
+
O += $, w = f, L = d, d = f = ot.lastIndex;
|
|
2808
2808
|
continue;
|
|
2809
2809
|
}
|
|
2810
2810
|
if (at.lastIndex = d, at.test(e)) {
|
|
2811
|
-
if (y = at.lastIndex - d, $ = y * o, O + $ > b && (
|
|
2811
|
+
if (y = at.lastIndex - d, $ = y * o, O + $ > b && (S = Math.min(S, d + Math.floor((b - O) / o))), O + $ > l) {
|
|
2812
2812
|
v = !0;
|
|
2813
2813
|
break;
|
|
2814
2814
|
}
|
|
2815
|
-
O += $,
|
|
2815
|
+
O += $, w = f, L = d, d = f = at.lastIndex;
|
|
2816
2816
|
continue;
|
|
2817
2817
|
}
|
|
2818
2818
|
if (zt.lastIndex = d, zt.test(e)) {
|
|
2819
|
-
if (O + n > b && (
|
|
2819
|
+
if (O + n > b && (S = Math.min(S, d)), O + n > l) {
|
|
2820
2820
|
v = !0;
|
|
2821
2821
|
break;
|
|
2822
2822
|
}
|
|
2823
|
-
O += n,
|
|
2823
|
+
O += n, w = f, L = d, d = f = zt.lastIndex;
|
|
2824
2824
|
continue;
|
|
2825
2825
|
}
|
|
2826
2826
|
d += 1;
|
|
2827
2827
|
}
|
|
2828
|
-
return { width: v ? b : O, index: v ?
|
|
2829
|
-
},
|
|
2828
|
+
return { width: v ? b : O, index: v ? S : g, truncated: v, ellipsed: v && l >= s };
|
|
2829
|
+
}, nl = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 }, Je = (e, t = {}) => wo(e, nl, t).width, xt = "\x1B", So = "", sl = 39, Pn = "\x07", Eo = "[", rl = "]", Co = "m", In = `${rl}8;;`, as = new RegExp(`(?:\\${Eo}(?<code>\\d+)m|\\${In}(?<uri>.*)${Pn})`, "y"), ol = (e) => {
|
|
2830
2830
|
if (e >= 30 && e <= 37 || e >= 90 && e <= 97) return 39;
|
|
2831
2831
|
if (e >= 40 && e <= 47 || e >= 100 && e <= 107) return 49;
|
|
2832
2832
|
if (e === 1 || e === 2) return 22;
|
|
@@ -2836,23 +2836,23 @@ const Xa = (e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170
|
|
|
2836
2836
|
if (e === 8) return 28;
|
|
2837
2837
|
if (e === 9) return 29;
|
|
2838
2838
|
if (e === 0) return 0;
|
|
2839
|
-
}, ls = (e) => `${xt}${Eo}${e}${Co}`, cs = (e) => `${xt}${In}${e}${Pn}`,
|
|
2839
|
+
}, ls = (e) => `${xt}${Eo}${e}${Co}`, cs = (e) => `${xt}${In}${e}${Pn}`, al = (e) => e.map((t) => Je(t)), Xt = (e, t, i) => {
|
|
2840
2840
|
const l = t[Symbol.iterator]();
|
|
2841
2841
|
let p = !1, s = !1, c = e.at(-1), h = c === void 0 ? 0 : Je(c), o = l.next(), m = l.next(), n = 0;
|
|
2842
2842
|
for (; !o.done; ) {
|
|
2843
2843
|
const u = o.value, a = Je(u);
|
|
2844
|
-
h + a <= i ? e[e.length - 1] += u : (e.push(u), h = 0), (u === xt || u ===
|
|
2844
|
+
h + a <= i ? e[e.length - 1] += u : (e.push(u), h = 0), (u === xt || u === So) && (p = !0, s = t.startsWith(In, n + 1)), p ? s ? u === Pn && (p = !1, s = !1) : u === Co && (p = !1) : (h += a, h === i && !m.done && (e.push(""), h = 0)), o = m, m = l.next(), n += u.length;
|
|
2845
2845
|
}
|
|
2846
2846
|
c = e.at(-1), !h && c !== void 0 && c.length > 0 && e.length > 1 && (e[e.length - 2] += e.pop());
|
|
2847
|
-
},
|
|
2847
|
+
}, ll = (e) => {
|
|
2848
2848
|
const t = e.split(" ");
|
|
2849
2849
|
let i = t.length;
|
|
2850
2850
|
for (; i > 0 && !(Je(t[i - 1]) > 0); ) i--;
|
|
2851
2851
|
return i === t.length ? e : t.slice(0, i).join(" ") + t.slice(i).join("");
|
|
2852
|
-
},
|
|
2852
|
+
}, cl = (e, t, i = {}) => {
|
|
2853
2853
|
if (i.trim !== !1 && e.trim() === "") return "";
|
|
2854
2854
|
let l = "", p, s;
|
|
2855
|
-
const c = e.split(" "), h =
|
|
2855
|
+
const c = e.split(" "), h = al(c);
|
|
2856
2856
|
let o = [""];
|
|
2857
2857
|
for (const [f, d] of c.entries()) {
|
|
2858
2858
|
i.trim !== !1 && (o[o.length - 1] = (o.at(-1) ?? "").trimStart());
|
|
@@ -2875,21 +2875,21 @@ const Xa = (e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170
|
|
|
2875
2875
|
}
|
|
2876
2876
|
o[o.length - 1] += d;
|
|
2877
2877
|
}
|
|
2878
|
-
i.trim !== !1 && (o = o.map((f) =>
|
|
2878
|
+
i.trim !== !1 && (o = o.map((f) => ll(f)));
|
|
2879
2879
|
const m = o.join(`
|
|
2880
2880
|
`), n = m[Symbol.iterator]();
|
|
2881
2881
|
let u = n.next(), a = n.next(), r = 0;
|
|
2882
2882
|
for (; !u.done; ) {
|
|
2883
2883
|
const f = u.value, d = a.value;
|
|
2884
|
-
if (l += f, f === xt || f ===
|
|
2884
|
+
if (l += f, f === xt || f === So) {
|
|
2885
2885
|
as.lastIndex = r + 1;
|
|
2886
2886
|
const y = as.exec(m)?.groups;
|
|
2887
2887
|
if (y?.code !== void 0) {
|
|
2888
2888
|
const v = Number.parseFloat(y.code);
|
|
2889
|
-
p = v ===
|
|
2889
|
+
p = v === sl ? void 0 : v;
|
|
2890
2890
|
} else y?.uri !== void 0 && (s = y.uri.length === 0 ? void 0 : y.uri);
|
|
2891
2891
|
}
|
|
2892
|
-
const g = p ?
|
|
2892
|
+
const g = p ? ol(p) : void 0;
|
|
2893
2893
|
d === `
|
|
2894
2894
|
` ? (s && (l += cs("")), p && g && (l += ls(g))) : f === `
|
|
2895
2895
|
` && (p && g && (l += ls(p)), s && (l += cs(s))), r += f.length, u = a, a = n.next();
|
|
@@ -2900,16 +2900,16 @@ function gn(e, t, i) {
|
|
|
2900
2900
|
return String(e).normalize().replaceAll(`\r
|
|
2901
2901
|
`, `
|
|
2902
2902
|
`).split(`
|
|
2903
|
-
`).map((l) =>
|
|
2903
|
+
`).map((l) => cl(l, t, i)).join(`
|
|
2904
2904
|
`);
|
|
2905
2905
|
}
|
|
2906
|
-
const
|
|
2906
|
+
const ul = ["up", "down", "left", "right", "space", "enter", "cancel"], ye = { actions: new Set(ul), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]), messages: { cancel: "Canceled", error: "Something went wrong" }, withGuide: !0 };
|
|
2907
2907
|
function Tn(e, t) {
|
|
2908
2908
|
if (typeof e == "string") return ye.aliases.get(e) === t;
|
|
2909
2909
|
for (const i of e) if (i !== void 0 && Tn(i, t)) return !0;
|
|
2910
2910
|
return !1;
|
|
2911
2911
|
}
|
|
2912
|
-
function
|
|
2912
|
+
function fl(e, t) {
|
|
2913
2913
|
if (e === t) return;
|
|
2914
2914
|
const i = e.split(`
|
|
2915
2915
|
`), l = t.split(`
|
|
@@ -2917,7 +2917,7 @@ function ul(e, t) {
|
|
|
2917
2917
|
for (let c = 0; c < p; c++) i[c] !== l[c] && s.push(c);
|
|
2918
2918
|
return { lines: s, numLinesBefore: i.length, numLinesAfter: l.length, numLines: p };
|
|
2919
2919
|
}
|
|
2920
|
-
const
|
|
2920
|
+
const hl = globalThis.process.platform.startsWith("win"), yn = /* @__PURE__ */ Symbol("clack:cancel");
|
|
2921
2921
|
function Ao(e) {
|
|
2922
2922
|
return e === yn;
|
|
2923
2923
|
}
|
|
@@ -2925,13 +2925,13 @@ function ct(e, t) {
|
|
|
2925
2925
|
const i = e;
|
|
2926
2926
|
i.isTTY && i.setRawMode(t);
|
|
2927
2927
|
}
|
|
2928
|
-
function
|
|
2928
|
+
function pl({ input: e = ho, output: t = Ln, overwrite: i = !0, hideCursor: l = !0 } = {}) {
|
|
2929
2929
|
const p = st.createInterface({ input: e, output: t, prompt: "", tabSize: 1 });
|
|
2930
2930
|
st.emitKeypressEvents(e, p), e instanceof Zn && e.isTTY && e.setRawMode(!0);
|
|
2931
2931
|
const s = (c, { name: h, sequence: o }) => {
|
|
2932
2932
|
const m = String(c);
|
|
2933
2933
|
if (Tn([m, h, o], "cancel")) {
|
|
2934
|
-
l && t.write(
|
|
2934
|
+
l && t.write(ne.cursor.show), process.exit(0);
|
|
2935
2935
|
return;
|
|
2936
2936
|
}
|
|
2937
2937
|
if (!i) return;
|
|
@@ -2942,8 +2942,8 @@ function hl({ input: e = ho, output: t = Ln, overwrite: i = !0, hideCursor: l =
|
|
|
2942
2942
|
});
|
|
2943
2943
|
});
|
|
2944
2944
|
};
|
|
2945
|
-
return l && t.write(
|
|
2946
|
-
e.off("keypress", s), l && t.write(
|
|
2945
|
+
return l && t.write(ne.cursor.hide), e.once("keypress", s), () => {
|
|
2946
|
+
e.off("keypress", s), l && t.write(ne.cursor.show), e instanceof Zn && e.isTTY && !hl && e.setRawMode(!1), p.terminal = !1, p.close();
|
|
2947
2947
|
};
|
|
2948
2948
|
}
|
|
2949
2949
|
const kn = (e) => "columns" in e && typeof e.columns == "number" ? e.columns : 80, Lo = (e) => "rows" in e && typeof e.rows == "number" ? e.rows : 20;
|
|
@@ -2998,10 +2998,10 @@ let xn = class {
|
|
|
2998
2998
|
this.state = "cancel", this.close();
|
|
2999
2999
|
}, { once: !0 });
|
|
3000
3000
|
}
|
|
3001
|
-
this.rl =
|
|
3002
|
-
this.output.write(
|
|
3001
|
+
this.rl = Aa.createInterface({ input: this.input, tabSize: 2, prompt: "", escapeCodeTimeout: 50, terminal: !0 }), this.rl.prompt(), this.opts.initialUserInput !== void 0 && this._setUserInput(this.opts.initialUserInput, !0), this.input.on("keypress", this.onKeypress), ct(this.input, !0), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
|
|
3002
|
+
this.output.write(ne.cursor.show), this.output.off("resize", this.render), ct(this.input, !1), t(this.value);
|
|
3003
3003
|
}), this.once("cancel", () => {
|
|
3004
|
-
this.output.write(
|
|
3004
|
+
this.output.write(ne.cursor.show), this.output.off("resize", this.render), ct(this.input, !1), t(yn);
|
|
3005
3005
|
});
|
|
3006
3006
|
});
|
|
3007
3007
|
}
|
|
@@ -3034,14 +3034,14 @@ let xn = class {
|
|
|
3034
3034
|
restoreCursor() {
|
|
3035
3035
|
const t = gn(this._prevFrame, process.stdout.columns, { hard: !0, trim: !1 }).split(`
|
|
3036
3036
|
`).length - 1;
|
|
3037
|
-
this.output.write(
|
|
3037
|
+
this.output.write(ne.cursor.move(-999, t * -1));
|
|
3038
3038
|
}
|
|
3039
3039
|
render() {
|
|
3040
3040
|
const t = gn(this._render(this) ?? "", process.stdout.columns, { hard: !0, trim: !1 });
|
|
3041
3041
|
if (t !== this._prevFrame) {
|
|
3042
|
-
if (this.state === "initial") this.output.write(
|
|
3042
|
+
if (this.state === "initial") this.output.write(ne.cursor.hide);
|
|
3043
3043
|
else {
|
|
3044
|
-
const i =
|
|
3044
|
+
const i = fl(this._prevFrame, t), l = Lo(this.output);
|
|
3045
3045
|
if (this.restoreCursor(), i) {
|
|
3046
3046
|
const p = Math.max(0, i.numLinesAfter - l), s = Math.max(0, i.numLinesBefore - l);
|
|
3047
3047
|
let c = i.lines.find((h) => h >= p);
|
|
@@ -3050,18 +3050,18 @@ let xn = class {
|
|
|
3050
3050
|
return;
|
|
3051
3051
|
}
|
|
3052
3052
|
if (i.lines.length === 1) {
|
|
3053
|
-
this.output.write(
|
|
3053
|
+
this.output.write(ne.cursor.move(0, c - s)), this.output.write(ne.erase.lines(1));
|
|
3054
3054
|
const h = t.split(`
|
|
3055
3055
|
`);
|
|
3056
|
-
this.output.write(h[c]), this._prevFrame = t, this.output.write(
|
|
3056
|
+
this.output.write(h[c]), this._prevFrame = t, this.output.write(ne.cursor.move(0, h.length - c - 1));
|
|
3057
3057
|
return;
|
|
3058
3058
|
} else if (i.lines.length > 1) {
|
|
3059
3059
|
if (p < s) c = p;
|
|
3060
3060
|
else {
|
|
3061
3061
|
const o = c - s;
|
|
3062
|
-
o > 0 && this.output.write(
|
|
3062
|
+
o > 0 && this.output.write(ne.cursor.move(0, o));
|
|
3063
3063
|
}
|
|
3064
|
-
this.output.write(
|
|
3064
|
+
this.output.write(ne.erase.down());
|
|
3065
3065
|
const h = t.split(`
|
|
3066
3066
|
`).slice(c);
|
|
3067
3067
|
this.output.write(h.join(`
|
|
@@ -3069,12 +3069,12 @@ let xn = class {
|
|
|
3069
3069
|
return;
|
|
3070
3070
|
}
|
|
3071
3071
|
}
|
|
3072
|
-
this.output.write(
|
|
3072
|
+
this.output.write(ne.erase.down());
|
|
3073
3073
|
}
|
|
3074
3074
|
this.output.write(t), this.state === "initial" && (this.state = "active"), this._prevFrame = t;
|
|
3075
3075
|
}
|
|
3076
3076
|
}
|
|
3077
|
-
},
|
|
3077
|
+
}, dl = class extends xn {
|
|
3078
3078
|
_mask = "•";
|
|
3079
3079
|
get cursor() {
|
|
3080
3080
|
return this._cursor;
|
|
@@ -3098,7 +3098,7 @@ let xn = class {
|
|
|
3098
3098
|
});
|
|
3099
3099
|
}
|
|
3100
3100
|
};
|
|
3101
|
-
class
|
|
3101
|
+
class ml extends xn {
|
|
3102
3102
|
options;
|
|
3103
3103
|
cursor = 0;
|
|
3104
3104
|
get _selectedValue() {
|
|
@@ -3125,7 +3125,7 @@ class dl extends xn {
|
|
|
3125
3125
|
});
|
|
3126
3126
|
}
|
|
3127
3127
|
}
|
|
3128
|
-
let
|
|
3128
|
+
let gl = class extends xn {
|
|
3129
3129
|
get userInputWithCursor() {
|
|
3130
3130
|
if (this.state === "submit") return this.userInput;
|
|
3131
3131
|
const t = this.userInput;
|
|
@@ -3144,14 +3144,14 @@ let ml = class extends xn {
|
|
|
3144
3144
|
});
|
|
3145
3145
|
}
|
|
3146
3146
|
};
|
|
3147
|
-
function
|
|
3147
|
+
function yl() {
|
|
3148
3148
|
return q.platform !== "win32" ? q.env.TERM !== "linux" : !!q.env.CI || !!q.env.WT_SESSION || !!q.env.TERMINUS_SUBLIME || q.env.ConEmuTask === "{cmd::Cmder}" || q.env.TERM_PROGRAM === "Terminus-Sublime" || q.env.TERM_PROGRAM === "vscode" || q.env.TERM === "xterm-256color" || q.env.TERM === "alacritty" || q.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
3149
3149
|
}
|
|
3150
|
-
const bn =
|
|
3150
|
+
const bn = yl(), bl = () => process.env.CI === "true", fe = (e, t) => bn ? e : t, vl = fe("◆", "*"), Oo = fe("■", "x"), $o = fe("▲", "x"), Rn = fe("◇", "o"), wl = fe("┌", "T"), J = fe("│", "|"), Le = fe("└", "—"), Sl = fe("●", ">"), us = fe("○", " "), El = fe("▪", "•"), Cl = fe("●", "•"), Al = fe("◆", "*"), Ll = fe("▲", "!"), Ol = fe("■", "x"), Mn = (e) => {
|
|
3151
3151
|
switch (e) {
|
|
3152
3152
|
case "initial":
|
|
3153
3153
|
case "active":
|
|
3154
|
-
return x.cyan(
|
|
3154
|
+
return x.cyan(vl);
|
|
3155
3155
|
case "cancel":
|
|
3156
3156
|
return x.red(Oo);
|
|
3157
3157
|
case "error":
|
|
@@ -3159,7 +3159,7 @@ const bn = gl(), yl = () => process.env.CI === "true", ue = (e, t) => bn ? e : t
|
|
|
3159
3159
|
case "submit":
|
|
3160
3160
|
return x.green(Rn);
|
|
3161
3161
|
}
|
|
3162
|
-
},
|
|
3162
|
+
}, $l = (e) => {
|
|
3163
3163
|
switch (e) {
|
|
3164
3164
|
case "initial":
|
|
3165
3165
|
case "active":
|
|
@@ -3171,68 +3171,68 @@ const bn = gl(), yl = () => process.env.CI === "true", ue = (e, t) => bn ? e : t
|
|
|
3171
3171
|
case "submit":
|
|
3172
3172
|
return x.green(J);
|
|
3173
3173
|
}
|
|
3174
|
-
},
|
|
3175
|
-
const l = t.limit ?? 1 / 0, p = t.ellipsis ?? "", s = t?.ellipsisWidth ?? (p ? _o(p,
|
|
3176
|
-
let f = 0, d = 0, g = e.length, y = 0, v = !1,
|
|
3174
|
+
}, _l = (e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170 || e === 173 || e === 174 || e >= 176 && e <= 180 || e >= 182 && e <= 186 || e >= 188 && e <= 191 || e === 198 || e === 208 || e === 215 || e === 216 || e >= 222 && e <= 225 || e === 230 || e >= 232 && e <= 234 || e === 236 || e === 237 || e === 240 || e === 242 || e === 243 || e >= 247 && e <= 250 || e === 252 || e === 254 || e === 257 || e === 273 || e === 275 || e === 283 || e === 294 || e === 295 || e === 299 || e >= 305 && e <= 307 || e === 312 || e >= 319 && e <= 322 || e === 324 || e >= 328 && e <= 331 || e === 333 || e === 338 || e === 339 || e === 358 || e === 359 || e === 363 || e === 462 || e === 464 || e === 466 || e === 468 || e === 470 || e === 472 || e === 474 || e === 476 || e === 593 || e === 609 || e === 708 || e === 711 || e >= 713 && e <= 715 || e === 717 || e === 720 || e >= 728 && e <= 731 || e === 733 || e === 735 || e >= 768 && e <= 879 || e >= 913 && e <= 929 || e >= 931 && e <= 937 || e >= 945 && e <= 961 || e >= 963 && e <= 969 || e === 1025 || e >= 1040 && e <= 1103 || e === 1105 || e === 8208 || e >= 8211 && e <= 8214 || e === 8216 || e === 8217 || e === 8220 || e === 8221 || e >= 8224 && e <= 8226 || e >= 8228 && e <= 8231 || e === 8240 || e === 8242 || e === 8243 || e === 8245 || e === 8251 || e === 8254 || e === 8308 || e === 8319 || e >= 8321 && e <= 8324 || e === 8364 || e === 8451 || e === 8453 || e === 8457 || e === 8467 || e === 8470 || e === 8481 || e === 8482 || e === 8486 || e === 8491 || e === 8531 || e === 8532 || e >= 8539 && e <= 8542 || e >= 8544 && e <= 8555 || e >= 8560 && e <= 8569 || e === 8585 || e >= 8592 && e <= 8601 || e === 8632 || e === 8633 || e === 8658 || e === 8660 || e === 8679 || e === 8704 || e === 8706 || e === 8707 || e === 8711 || e === 8712 || e === 8715 || e === 8719 || e === 8721 || e === 8725 || e === 8730 || e >= 8733 && e <= 8736 || e === 8739 || e === 8741 || e >= 8743 && e <= 8748 || e === 8750 || e >= 8756 && e <= 8759 || e === 8764 || e === 8765 || e === 8776 || e === 8780 || e === 8786 || e === 8800 || e === 8801 || e >= 8804 && e <= 8807 || e === 8810 || e === 8811 || e === 8814 || e === 8815 || e === 8834 || e === 8835 || e === 8838 || e === 8839 || e === 8853 || e === 8857 || e === 8869 || e === 8895 || e === 8978 || e >= 9312 && e <= 9449 || e >= 9451 && e <= 9547 || e >= 9552 && e <= 9587 || e >= 9600 && e <= 9615 || e >= 9618 && e <= 9621 || e === 9632 || e === 9633 || e >= 9635 && e <= 9641 || e === 9650 || e === 9651 || e === 9654 || e === 9655 || e === 9660 || e === 9661 || e === 9664 || e === 9665 || e >= 9670 && e <= 9672 || e === 9675 || e >= 9678 && e <= 9681 || e >= 9698 && e <= 9701 || e === 9711 || e === 9733 || e === 9734 || e === 9737 || e === 9742 || e === 9743 || e === 9756 || e === 9758 || e === 9792 || e === 9794 || e === 9824 || e === 9825 || e >= 9827 && e <= 9829 || e >= 9831 && e <= 9834 || e === 9836 || e === 9837 || e === 9839 || e === 9886 || e === 9887 || e === 9919 || e >= 9926 && e <= 9933 || e >= 9935 && e <= 9939 || e >= 9941 && e <= 9953 || e === 9955 || e === 9960 || e === 9961 || e >= 9963 && e <= 9969 || e === 9972 || e >= 9974 && e <= 9977 || e === 9979 || e === 9980 || e === 9982 || e === 9983 || e === 10045 || e >= 10102 && e <= 10111 || e >= 11094 && e <= 11097 || e >= 12872 && e <= 12879 || e >= 57344 && e <= 63743 || e >= 65024 && e <= 65039 || e === 65533 || e >= 127232 && e <= 127242 || e >= 127248 && e <= 127277 || e >= 127280 && e <= 127337 || e >= 127344 && e <= 127373 || e === 127375 || e === 127376 || e >= 127387 && e <= 127404 || e >= 917760 && e <= 917999 || e >= 983040 && e <= 1048573 || e >= 1048576 && e <= 1114109, Nl = (e) => e === 12288 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510, Pl = (e) => e >= 4352 && e <= 4447 || e === 8986 || e === 8987 || e === 9001 || e === 9002 || e >= 9193 && e <= 9196 || e === 9200 || e === 9203 || e === 9725 || e === 9726 || e === 9748 || e === 9749 || e >= 9800 && e <= 9811 || e === 9855 || e === 9875 || e === 9889 || e === 9898 || e === 9899 || e === 9917 || e === 9918 || e === 9924 || e === 9925 || e === 9934 || e === 9940 || e === 9962 || e === 9970 || e === 9971 || e === 9973 || e === 9978 || e === 9981 || e === 9989 || e === 9994 || e === 9995 || e === 10024 || e === 10060 || e === 10062 || e >= 10067 && e <= 10069 || e === 10071 || e >= 10133 && e <= 10135 || e === 10160 || e === 10175 || e === 11035 || e === 11036 || e === 11088 || e === 11093 || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12287 || e >= 12289 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12591 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12771 || e >= 12783 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 19903 || e >= 19968 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 94176 && e <= 94180 || e === 94192 || e === 94193 || e >= 94208 && e <= 100343 || e >= 100352 && e <= 101589 || e >= 101632 && e <= 101640 || e >= 110576 && e <= 110579 || e >= 110581 && e <= 110587 || e === 110589 || e === 110590 || e >= 110592 && e <= 110882 || e === 110898 || e >= 110928 && e <= 110930 || e === 110933 || e >= 110948 && e <= 110951 || e >= 110960 && e <= 111355 || e === 126980 || e === 127183 || e === 127374 || e >= 127377 && e <= 127386 || e >= 127488 && e <= 127490 || e >= 127504 && e <= 127547 || e >= 127552 && e <= 127560 || e === 127568 || e === 127569 || e >= 127584 && e <= 127589 || e >= 127744 && e <= 127776 || e >= 127789 && e <= 127797 || e >= 127799 && e <= 127868 || e >= 127870 && e <= 127891 || e >= 127904 && e <= 127946 || e >= 127951 && e <= 127955 || e >= 127968 && e <= 127984 || e === 127988 || e >= 127992 && e <= 128062 || e === 128064 || e >= 128066 && e <= 128252 || e >= 128255 && e <= 128317 || e >= 128331 && e <= 128334 || e >= 128336 && e <= 128359 || e === 128378 || e === 128405 || e === 128406 || e === 128420 || e >= 128507 && e <= 128591 || e >= 128640 && e <= 128709 || e === 128716 || e >= 128720 && e <= 128722 || e >= 128725 && e <= 128727 || e >= 128732 && e <= 128735 || e === 128747 || e === 128748 || e >= 128756 && e <= 128764 || e >= 128992 && e <= 129003 || e === 129008 || e >= 129292 && e <= 129338 || e >= 129340 && e <= 129349 || e >= 129351 && e <= 129535 || e >= 129648 && e <= 129660 || e >= 129664 && e <= 129672 || e >= 129680 && e <= 129725 || e >= 129727 && e <= 129733 || e >= 129742 && e <= 129755 || e >= 129760 && e <= 129768 || e >= 129776 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141, Zt = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y, ut = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y, ft = /\t{1,1000}/y, ei = new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*", "yu"), ht = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y, Il = new RegExp("\\p{M}+", "gu"), Tl = { limit: 1 / 0, ellipsis: "" }, _o = (e, t = {}, i = {}) => {
|
|
3175
|
+
const l = t.limit ?? 1 / 0, p = t.ellipsis ?? "", s = t?.ellipsisWidth ?? (p ? _o(p, Tl, i).width : 0), c = i.ansiWidth ?? 0, h = i.controlWidth ?? 0, o = i.tabWidth ?? 8, m = i.ambiguousWidth ?? 1, n = i.emojiWidth ?? 2, u = i.fullWidthWidth ?? 2, a = i.regularWidth ?? 1, r = i.wideWidth ?? 2;
|
|
3176
|
+
let f = 0, d = 0, g = e.length, y = 0, v = !1, S = g, b = Math.max(0, l - s), w = 0, L = 0, O = 0, $ = 0;
|
|
3177
3177
|
e: for (; ; ) {
|
|
3178
|
-
if (L >
|
|
3179
|
-
const _ = e.slice(
|
|
3178
|
+
if (L > w || d >= g && d > f) {
|
|
3179
|
+
const _ = e.slice(w, L) || e.slice(f, d);
|
|
3180
3180
|
y = 0;
|
|
3181
|
-
for (const P of _.replaceAll(
|
|
3181
|
+
for (const P of _.replaceAll(Il, "")) {
|
|
3182
3182
|
const I = P.codePointAt(0) || 0;
|
|
3183
|
-
if (
|
|
3183
|
+
if (Nl(I) ? $ = u : Pl(I) ? $ = r : m !== a && _l(I) ? $ = m : $ = a, O + $ > b && (S = Math.min(S, Math.max(w, f) + y)), O + $ > l) {
|
|
3184
3184
|
v = !0;
|
|
3185
3185
|
break e;
|
|
3186
3186
|
}
|
|
3187
3187
|
y += P.length, O += $;
|
|
3188
3188
|
}
|
|
3189
|
-
|
|
3189
|
+
w = L = 0;
|
|
3190
3190
|
}
|
|
3191
3191
|
if (d >= g) break;
|
|
3192
3192
|
if (ht.lastIndex = d, ht.test(e)) {
|
|
3193
|
-
if (y = ht.lastIndex - d, $ = y * a, O + $ > b && (
|
|
3193
|
+
if (y = ht.lastIndex - d, $ = y * a, O + $ > b && (S = Math.min(S, d + Math.floor((b - O) / a))), O + $ > l) {
|
|
3194
3194
|
v = !0;
|
|
3195
3195
|
break;
|
|
3196
3196
|
}
|
|
3197
|
-
O += $,
|
|
3197
|
+
O += $, w = f, L = d, d = f = ht.lastIndex;
|
|
3198
3198
|
continue;
|
|
3199
3199
|
}
|
|
3200
3200
|
if (Zt.lastIndex = d, Zt.test(e)) {
|
|
3201
|
-
if (O + c > b && (
|
|
3201
|
+
if (O + c > b && (S = Math.min(S, d)), O + c > l) {
|
|
3202
3202
|
v = !0;
|
|
3203
3203
|
break;
|
|
3204
3204
|
}
|
|
3205
|
-
O += c,
|
|
3205
|
+
O += c, w = f, L = d, d = f = Zt.lastIndex;
|
|
3206
3206
|
continue;
|
|
3207
3207
|
}
|
|
3208
3208
|
if (ut.lastIndex = d, ut.test(e)) {
|
|
3209
|
-
if (y = ut.lastIndex - d, $ = y * h, O + $ > b && (
|
|
3209
|
+
if (y = ut.lastIndex - d, $ = y * h, O + $ > b && (S = Math.min(S, d + Math.floor((b - O) / h))), O + $ > l) {
|
|
3210
3210
|
v = !0;
|
|
3211
3211
|
break;
|
|
3212
3212
|
}
|
|
3213
|
-
O += $,
|
|
3213
|
+
O += $, w = f, L = d, d = f = ut.lastIndex;
|
|
3214
3214
|
continue;
|
|
3215
3215
|
}
|
|
3216
3216
|
if (ft.lastIndex = d, ft.test(e)) {
|
|
3217
|
-
if (y = ft.lastIndex - d, $ = y * o, O + $ > b && (
|
|
3217
|
+
if (y = ft.lastIndex - d, $ = y * o, O + $ > b && (S = Math.min(S, d + Math.floor((b - O) / o))), O + $ > l) {
|
|
3218
3218
|
v = !0;
|
|
3219
3219
|
break;
|
|
3220
3220
|
}
|
|
3221
|
-
O += $,
|
|
3221
|
+
O += $, w = f, L = d, d = f = ft.lastIndex;
|
|
3222
3222
|
continue;
|
|
3223
3223
|
}
|
|
3224
3224
|
if (ei.lastIndex = d, ei.test(e)) {
|
|
3225
|
-
if (O + n > b && (
|
|
3225
|
+
if (O + n > b && (S = Math.min(S, d)), O + n > l) {
|
|
3226
3226
|
v = !0;
|
|
3227
3227
|
break;
|
|
3228
3228
|
}
|
|
3229
|
-
O += n,
|
|
3229
|
+
O += n, w = f, L = d, d = f = ei.lastIndex;
|
|
3230
3230
|
continue;
|
|
3231
3231
|
}
|
|
3232
3232
|
d += 1;
|
|
3233
3233
|
}
|
|
3234
|
-
return { width: v ? b : O, index: v ?
|
|
3235
|
-
},
|
|
3234
|
+
return { width: v ? b : O, index: v ? S : g, truncated: v, ellipsed: v && l >= s };
|
|
3235
|
+
}, kl = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 }, ze = (e, t = {}) => _o(e, kl, t).width, Rt = "\x1B", No = "", xl = 39, Dn = "\x07", Po = "[", Rl = "]", Io = "m", Fn = `${Rl}8;;`, fs = new RegExp(`(?:\\${Po}(?<code>\\d+)m|\\${Fn}(?<uri>.*)${Dn})`, "y"), Ml = (e) => {
|
|
3236
3236
|
if (e >= 30 && e <= 37 || e >= 90 && e <= 97) return 39;
|
|
3237
3237
|
if (e >= 40 && e <= 47 || e >= 100 && e <= 107) return 49;
|
|
3238
3238
|
if (e === 1 || e === 2) return 22;
|
|
@@ -3242,7 +3242,7 @@ const bn = gl(), yl = () => process.env.CI === "true", ue = (e, t) => bn ? e : t
|
|
|
3242
3242
|
if (e === 8) return 28;
|
|
3243
3243
|
if (e === 9) return 29;
|
|
3244
3244
|
if (e === 0) return 0;
|
|
3245
|
-
}, hs = (e) => `${Rt}${Po}${e}${Io}`, ps = (e) => `${Rt}${Fn}${e}${Dn}`,
|
|
3245
|
+
}, hs = (e) => `${Rt}${Po}${e}${Io}`, ps = (e) => `${Rt}${Fn}${e}${Dn}`, Dl = (e) => e.map((t) => ze(t)), ti = (e, t, i) => {
|
|
3246
3246
|
const l = t[Symbol.iterator]();
|
|
3247
3247
|
let p = !1, s = !1, c = e.at(-1), h = c === void 0 ? 0 : ze(c), o = l.next(), m = l.next(), n = 0;
|
|
3248
3248
|
for (; !o.done; ) {
|
|
@@ -3250,15 +3250,15 @@ const bn = gl(), yl = () => process.env.CI === "true", ue = (e, t) => bn ? e : t
|
|
|
3250
3250
|
h + a <= i ? e[e.length - 1] += u : (e.push(u), h = 0), (u === Rt || u === No) && (p = !0, s = t.startsWith(Fn, n + 1)), p ? s ? u === Dn && (p = !1, s = !1) : u === Io && (p = !1) : (h += a, h === i && !m.done && (e.push(""), h = 0)), o = m, m = l.next(), n += u.length;
|
|
3251
3251
|
}
|
|
3252
3252
|
c = e.at(-1), !h && c !== void 0 && c.length > 0 && e.length > 1 && (e[e.length - 2] += e.pop());
|
|
3253
|
-
},
|
|
3253
|
+
}, Fl = (e) => {
|
|
3254
3254
|
const t = e.split(" ");
|
|
3255
3255
|
let i = t.length;
|
|
3256
3256
|
for (; i > 0 && !(ze(t[i - 1]) > 0); ) i--;
|
|
3257
3257
|
return i === t.length ? e : t.slice(0, i).join(" ") + t.slice(i).join("");
|
|
3258
|
-
},
|
|
3258
|
+
}, Bl = (e, t, i = {}) => {
|
|
3259
3259
|
if (i.trim !== !1 && e.trim() === "") return "";
|
|
3260
3260
|
let l = "", p, s;
|
|
3261
|
-
const c = e.split(" "), h =
|
|
3261
|
+
const c = e.split(" "), h = Dl(c);
|
|
3262
3262
|
let o = [""];
|
|
3263
3263
|
for (const [f, d] of c.entries()) {
|
|
3264
3264
|
i.trim !== !1 && (o[o.length - 1] = (o.at(-1) ?? "").trimStart());
|
|
@@ -3281,7 +3281,7 @@ const bn = gl(), yl = () => process.env.CI === "true", ue = (e, t) => bn ? e : t
|
|
|
3281
3281
|
}
|
|
3282
3282
|
o[o.length - 1] += d;
|
|
3283
3283
|
}
|
|
3284
|
-
i.trim !== !1 && (o = o.map((f) =>
|
|
3284
|
+
i.trim !== !1 && (o = o.map((f) => Fl(f)));
|
|
3285
3285
|
const m = o.join(`
|
|
3286
3286
|
`), n = m[Symbol.iterator]();
|
|
3287
3287
|
let u = n.next(), a = n.next(), r = 0;
|
|
@@ -3292,10 +3292,10 @@ const bn = gl(), yl = () => process.env.CI === "true", ue = (e, t) => bn ? e : t
|
|
|
3292
3292
|
const y = fs.exec(m)?.groups;
|
|
3293
3293
|
if (y?.code !== void 0) {
|
|
3294
3294
|
const v = Number.parseFloat(y.code);
|
|
3295
|
-
p = v ===
|
|
3295
|
+
p = v === xl ? void 0 : v;
|
|
3296
3296
|
} else y?.uri !== void 0 && (s = y.uri.length === 0 ? void 0 : y.uri);
|
|
3297
3297
|
}
|
|
3298
|
-
const g = p ?
|
|
3298
|
+
const g = p ? Ml(p) : void 0;
|
|
3299
3299
|
d === `
|
|
3300
3300
|
` ? (s && (l += ps("")), p && g && (l += hs(g))) : f === `
|
|
3301
3301
|
` && (p && g && (l += hs(p)), s && (l += ps(s))), r += f.length, u = a, a = n.next();
|
|
@@ -3306,40 +3306,40 @@ function vn(e, t, i) {
|
|
|
3306
3306
|
return String(e).normalize().replaceAll(`\r
|
|
3307
3307
|
`, `
|
|
3308
3308
|
`).split(`
|
|
3309
|
-
`).map((l) =>
|
|
3309
|
+
`).map((l) => Bl(l, t, i)).join(`
|
|
3310
3310
|
`);
|
|
3311
3311
|
}
|
|
3312
|
-
const
|
|
3312
|
+
const Gl = (e, t, i, l, p) => {
|
|
3313
3313
|
let s = t, c = 0;
|
|
3314
3314
|
for (let h = i; h < l; h++) {
|
|
3315
3315
|
const o = e[h];
|
|
3316
3316
|
if (s = s - o.length, c++, s <= p) break;
|
|
3317
3317
|
}
|
|
3318
3318
|
return { lineCount: s, removals: c };
|
|
3319
|
-
},
|
|
3319
|
+
}, ql = (e) => {
|
|
3320
3320
|
const { cursor: t, options: i, style: l } = e, p = e.output ?? process.stdout, s = kn(p), c = e.columnPadding ?? 0, h = e.rowPadding ?? 4, o = s - c, m = Lo(p), n = x.dim("..."), u = e.maxItems ?? Number.POSITIVE_INFINITY, a = Math.max(m - h, 0), r = Math.max(Math.min(u, a), 5);
|
|
3321
3321
|
let f = 0;
|
|
3322
3322
|
t >= r - 3 && (f = Math.max(Math.min(t - r + 3, i.length - r), 0));
|
|
3323
3323
|
let d = r < i.length && f > 0, g = r < i.length && f + r < i.length;
|
|
3324
3324
|
const y = Math.min(f + r, i.length), v = [];
|
|
3325
|
-
let
|
|
3326
|
-
d &&
|
|
3327
|
-
const b = f + (d ? 1 : 0),
|
|
3328
|
-
for (let O = b; O <
|
|
3325
|
+
let S = 0;
|
|
3326
|
+
d && S++, g && S++;
|
|
3327
|
+
const b = f + (d ? 1 : 0), w = y - (g ? 1 : 0);
|
|
3328
|
+
for (let O = b; O < w; O++) {
|
|
3329
3329
|
const $ = vn(l(i[O], O === t), o, { hard: !0, trim: !1 }).split(`
|
|
3330
3330
|
`);
|
|
3331
|
-
v.push($),
|
|
3331
|
+
v.push($), S += $.length;
|
|
3332
3332
|
}
|
|
3333
|
-
if (
|
|
3334
|
-
let O = 0, $ = 0, _ =
|
|
3335
|
-
const P = t - b, I = (B, F) =>
|
|
3333
|
+
if (S > a) {
|
|
3334
|
+
let O = 0, $ = 0, _ = S;
|
|
3335
|
+
const P = t - b, I = (B, F) => Gl(v, _, B, F, a);
|
|
3336
3336
|
d ? ({ lineCount: _, removals: O } = I(0, P), _ > a && ({ lineCount: _, removals: $ } = I(P + 1, v.length))) : ({ lineCount: _, removals: $ } = I(P + 1, v.length), _ > a && ({ lineCount: _, removals: O } = I(0, P))), O > 0 && (d = !0, v.splice(0, O)), $ > 0 && (g = !0, v.splice(v.length - $, $));
|
|
3337
3337
|
}
|
|
3338
3338
|
const L = [];
|
|
3339
3339
|
d && L.push(n);
|
|
3340
3340
|
for (const O of v) for (const $ of O) L.push($);
|
|
3341
3341
|
return g && L.push(n), L;
|
|
3342
|
-
},
|
|
3342
|
+
}, jl = async (e, t) => {
|
|
3343
3343
|
const i = {}, l = Object.keys(e);
|
|
3344
3344
|
for (const p of l) {
|
|
3345
3345
|
const s = e[p], c = await s({ results: i })?.catch((h) => {
|
|
@@ -3366,30 +3366,30 @@ const Bl = (e, t, i, l, p) => {
|
|
|
3366
3366
|
`)}
|
|
3367
3367
|
`);
|
|
3368
3368
|
}, info: (e, t) => {
|
|
3369
|
-
Ae.message(e, { ...t, symbol: x.blue(
|
|
3369
|
+
Ae.message(e, { ...t, symbol: x.blue(Cl) });
|
|
3370
3370
|
}, success: (e, t) => {
|
|
3371
|
-
Ae.message(e, { ...t, symbol: x.green(
|
|
3371
|
+
Ae.message(e, { ...t, symbol: x.green(Al) });
|
|
3372
3372
|
}, step: (e, t) => {
|
|
3373
3373
|
Ae.message(e, { ...t, symbol: x.green(Rn) });
|
|
3374
3374
|
}, warn: (e, t) => {
|
|
3375
|
-
Ae.message(e, { ...t, symbol: x.yellow(
|
|
3375
|
+
Ae.message(e, { ...t, symbol: x.yellow(Ll) });
|
|
3376
3376
|
}, warning: (e, t) => {
|
|
3377
3377
|
Ae.warn(e, t);
|
|
3378
3378
|
}, error: (e, t) => {
|
|
3379
|
-
Ae.message(e, { ...t, symbol: x.red(
|
|
3379
|
+
Ae.message(e, { ...t, symbol: x.red(Ol) });
|
|
3380
3380
|
} }, To = (e = "", t) => {
|
|
3381
3381
|
process.stdout.write(`${x.gray(Le)} ${x.red(e)}
|
|
3382
3382
|
|
|
3383
3383
|
`);
|
|
3384
|
-
},
|
|
3385
|
-
process.stdout.write(`${x.gray(
|
|
3384
|
+
}, Ul = (e = "", t) => {
|
|
3385
|
+
process.stdout.write(`${x.gray(wl)} ${e}
|
|
3386
3386
|
`);
|
|
3387
3387
|
}, Bn = (e = "", t) => {
|
|
3388
3388
|
process.stdout.write(`${x.gray(J)}
|
|
3389
3389
|
${x.gray(Le)} ${e}
|
|
3390
3390
|
|
|
3391
3391
|
`);
|
|
3392
|
-
},
|
|
3392
|
+
}, Hl = (e) => new dl({ validate: e.validate, mask: e.mask ?? El, signal: e.signal, input: e.input, output: e.output, render() {
|
|
3393
3393
|
const t = e.withGuide ?? ye.withGuide, i = `${t ? `${x.gray(J)}
|
|
3394
3394
|
` : ""}${Mn(this.state)} ${e.message}
|
|
3395
3395
|
`, l = this.userInputWithCursor, p = this.masked;
|
|
@@ -3417,28 +3417,28 @@ ${c}
|
|
|
3417
3417
|
`;
|
|
3418
3418
|
}
|
|
3419
3419
|
}
|
|
3420
|
-
} }).prompt(),
|
|
3421
|
-
const m =
|
|
3420
|
+
} }).prompt(), Vl = x.magenta, Wl = ({ indicator: e = "dots", onCancel: t, output: i = process.stdout, cancelMessage: l, errorMessage: p, frames: s = bn ? ["◒", "◐", "◓", "◑"] : ["•", "o", "O", "0"], delay: c = bn ? 80 : 120, signal: h, ...o } = {}) => {
|
|
3421
|
+
const m = bl();
|
|
3422
3422
|
let n, u, a = !1, r = !1, f = "", d, g = performance.now();
|
|
3423
|
-
const y = kn(i), v = o?.styleFrame ??
|
|
3423
|
+
const y = kn(i), v = o?.styleFrame ?? Vl, S = (D) => {
|
|
3424
3424
|
const M = D > 1 ? p ?? ye.messages.error : l ?? ye.messages.cancel;
|
|
3425
3425
|
r = D === 1, a && (F(M, D), r && typeof t == "function" && t());
|
|
3426
|
-
}, b = () =>
|
|
3427
|
-
process.on("uncaughtExceptionMonitor", b), process.on("unhandledRejection", b), process.on("SIGINT",
|
|
3426
|
+
}, b = () => S(2), w = () => S(1), L = () => {
|
|
3427
|
+
process.on("uncaughtExceptionMonitor", b), process.on("unhandledRejection", b), process.on("SIGINT", w), process.on("SIGTERM", w), process.on("exit", S), h && h.addEventListener("abort", w);
|
|
3428
3428
|
}, O = () => {
|
|
3429
|
-
process.removeListener("uncaughtExceptionMonitor", b), process.removeListener("unhandledRejection", b), process.removeListener("SIGINT",
|
|
3429
|
+
process.removeListener("uncaughtExceptionMonitor", b), process.removeListener("unhandledRejection", b), process.removeListener("SIGINT", w), process.removeListener("SIGTERM", w), process.removeListener("exit", S), h && h.removeEventListener("abort", w);
|
|
3430
3430
|
}, $ = () => {
|
|
3431
3431
|
if (d === void 0) return;
|
|
3432
3432
|
m && i.write(`
|
|
3433
3433
|
`);
|
|
3434
3434
|
const D = vn(d, y, { hard: !0, trim: !1 }).split(`
|
|
3435
3435
|
`);
|
|
3436
|
-
D.length > 1 && i.write(
|
|
3436
|
+
D.length > 1 && i.write(ne.cursor.up(D.length - 1)), i.write(ne.cursor.to(0)), i.write(ne.erase.down());
|
|
3437
3437
|
}, _ = (D) => D.replace(/\.+$/, ""), P = (D) => {
|
|
3438
3438
|
const M = (performance.now() - D) / 1e3, G = Math.floor(M / 60), T = Math.floor(M % 60);
|
|
3439
3439
|
return G > 0 ? `[${G}m ${T}s]` : `[${T}s]`;
|
|
3440
3440
|
}, I = o.withGuide ?? ye.withGuide, B = (D = "") => {
|
|
3441
|
-
a = !0, n =
|
|
3441
|
+
a = !0, n = pl({ output: i }), f = _(D), g = performance.now(), I && i.write(`${x.gray(J)}
|
|
3442
3442
|
`);
|
|
3443
3443
|
let M = 0, G = 0;
|
|
3444
3444
|
L(), u = setInterval(() => {
|
|
@@ -3471,7 +3471,7 @@ ${c}
|
|
|
3471
3471
|
}, pt = (e, t) => e.includes(`
|
|
3472
3472
|
`) ? e.split(`
|
|
3473
3473
|
`).map((i) => t(i)).join(`
|
|
3474
|
-
`) : t(e),
|
|
3474
|
+
`) : t(e), Yl = (e) => {
|
|
3475
3475
|
const t = (i, l) => {
|
|
3476
3476
|
const p = i.label ?? String(i.value);
|
|
3477
3477
|
switch (l) {
|
|
@@ -3487,8 +3487,8 @@ ${c}
|
|
|
3487
3487
|
return `${x.dim(us)} ${pt(p, x.dim)}`;
|
|
3488
3488
|
}
|
|
3489
3489
|
};
|
|
3490
|
-
return new
|
|
3491
|
-
const i = e.withGuide ?? ye.withGuide, l = `${Mn(this.state)} `, p = `${
|
|
3490
|
+
return new ml({ options: e.options, signal: e.signal, input: e.input, output: e.output, initialValue: e.initialValue, render() {
|
|
3491
|
+
const i = e.withGuide ?? ye.withGuide, l = `${Mn(this.state)} `, p = `${$l(this.state)} `, s = Qt(e.output, e.message, p, l), c = `${i ? `${x.gray(J)}
|
|
3492
3492
|
` : ""}${s}
|
|
3493
3493
|
`;
|
|
3494
3494
|
switch (this.state) {
|
|
@@ -3504,7 +3504,7 @@ ${x.gray(J)}` : ""}`;
|
|
|
3504
3504
|
default: {
|
|
3505
3505
|
const h = i ? `${x.cyan(J)} ` : "", o = i ? x.cyan(Le) : "", m = c.split(`
|
|
3506
3506
|
`).length, n = i ? 2 : 1;
|
|
3507
|
-
return `${c}${h}${
|
|
3507
|
+
return `${c}${h}${ql({ output: e.output, cursor: this.cursor, options: this.options, maxItems: e.maxItems, columnPadding: h.length, rowPadding: m + n, style: (u, a) => t(u, u.disabled ? "disabled" : a ? "active" : "inactive") }).join(`
|
|
3508
3508
|
${h}`)}
|
|
3509
3509
|
${o}
|
|
3510
3510
|
`;
|
|
@@ -3513,7 +3513,7 @@ ${o}
|
|
|
3513
3513
|
} }).prompt();
|
|
3514
3514
|
};
|
|
3515
3515
|
`${x.gray(J)}`;
|
|
3516
|
-
const
|
|
3516
|
+
const Kl = (e) => new gl({ validate: e.validate, placeholder: e.placeholder, defaultValue: e.defaultValue, initialValue: e.initialValue, output: e.output, signal: e.signal, input: e.input, render() {
|
|
3517
3517
|
const t = e?.withGuide ?? ye.withGuide, i = `${`${t ? `${x.gray(J)}
|
|
3518
3518
|
` : ""}${Mn(this.state)} `}${e.message}
|
|
3519
3519
|
`, l = e.placeholder ? x.inverse(e.placeholder[0]) + x.dim(e.placeholder.slice(1)) : x.inverse(x.hidden("_")), p = this.userInput ? this.userInputWithCursor : l, s = this.value ?? "";
|
|
@@ -3602,9 +3602,9 @@ ${h}
|
|
|
3602
3602
|
}
|
|
3603
3603
|
};
|
|
3604
3604
|
Object.keys(z.modifier);
|
|
3605
|
-
const
|
|
3606
|
-
[...
|
|
3607
|
-
function
|
|
3605
|
+
const Jl = Object.keys(z.color), zl = Object.keys(z.bgColor);
|
|
3606
|
+
[...Jl, ...zl];
|
|
3607
|
+
function Xl() {
|
|
3608
3608
|
const e = /* @__PURE__ */ new Map();
|
|
3609
3609
|
for (const [t, i] of Object.entries(z)) {
|
|
3610
3610
|
for (const [l, p] of Object.entries(i))
|
|
@@ -3681,19 +3681,19 @@ function zl() {
|
|
|
3681
3681
|
}
|
|
3682
3682
|
}), z;
|
|
3683
3683
|
}
|
|
3684
|
-
const be =
|
|
3685
|
-
function
|
|
3684
|
+
const be = Xl();
|
|
3685
|
+
function me(e, t = globalThis.Deno ? globalThis.Deno.args : q.argv) {
|
|
3686
3686
|
const i = e.startsWith("-") ? "" : e.length === 1 ? "-" : "--", l = t.indexOf(i + e), p = t.indexOf("--");
|
|
3687
3687
|
return l !== -1 && (p === -1 || l < p);
|
|
3688
3688
|
}
|
|
3689
3689
|
const { env: X } = q;
|
|
3690
3690
|
let Nt;
|
|
3691
|
-
|
|
3692
|
-
function
|
|
3691
|
+
me("no-color") || me("no-colors") || me("color=false") || me("color=never") ? Nt = 0 : (me("color") || me("colors") || me("color=true") || me("color=always")) && (Nt = 1);
|
|
3692
|
+
function Ql() {
|
|
3693
3693
|
if ("FORCE_COLOR" in X)
|
|
3694
3694
|
return X.FORCE_COLOR === "true" ? 1 : X.FORCE_COLOR === "false" ? 0 : X.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(X.FORCE_COLOR, 10), 3);
|
|
3695
3695
|
}
|
|
3696
|
-
function
|
|
3696
|
+
function Zl(e) {
|
|
3697
3697
|
return e === 0 ? !1 : {
|
|
3698
3698
|
level: e,
|
|
3699
3699
|
hasBasic: !0,
|
|
@@ -3701,16 +3701,16 @@ function Ql(e) {
|
|
|
3701
3701
|
has16m: e >= 3
|
|
3702
3702
|
};
|
|
3703
3703
|
}
|
|
3704
|
-
function
|
|
3705
|
-
const l =
|
|
3704
|
+
function ec(e, { streamIsTTY: t, sniffFlags: i = !0 } = {}) {
|
|
3705
|
+
const l = Ql();
|
|
3706
3706
|
l !== void 0 && (Nt = l);
|
|
3707
3707
|
const p = i ? Nt : l;
|
|
3708
3708
|
if (p === 0)
|
|
3709
3709
|
return 0;
|
|
3710
3710
|
if (i) {
|
|
3711
|
-
if (
|
|
3711
|
+
if (me("color=16m") || me("color=full") || me("color=truecolor"))
|
|
3712
3712
|
return 3;
|
|
3713
|
-
if (
|
|
3713
|
+
if (me("color=256"))
|
|
3714
3714
|
return 2;
|
|
3715
3715
|
}
|
|
3716
3716
|
if ("TF_BUILD" in X && "AGENT_NAME" in X)
|
|
@@ -3721,7 +3721,7 @@ function Zl(e, { streamIsTTY: t, sniffFlags: i = !0 } = {}) {
|
|
|
3721
3721
|
if (X.TERM === "dumb")
|
|
3722
3722
|
return s;
|
|
3723
3723
|
if (q.platform === "win32") {
|
|
3724
|
-
const c =
|
|
3724
|
+
const c = La.release().split(".");
|
|
3725
3725
|
return Number(c[0]) >= 10 && Number(c[2]) >= 10586 ? Number(c[2]) >= 14931 ? 3 : 2 : 1;
|
|
3726
3726
|
}
|
|
3727
3727
|
if ("CI" in X)
|
|
@@ -3742,17 +3742,17 @@ function Zl(e, { streamIsTTY: t, sniffFlags: i = !0 } = {}) {
|
|
|
3742
3742
|
return /-256(color)?$/i.test(X.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(X.TERM) || "COLORTERM" in X ? 1 : s;
|
|
3743
3743
|
}
|
|
3744
3744
|
function ys(e, t = {}) {
|
|
3745
|
-
const i =
|
|
3745
|
+
const i = ec(e, {
|
|
3746
3746
|
streamIsTTY: e && e.isTTY,
|
|
3747
3747
|
...t
|
|
3748
3748
|
});
|
|
3749
|
-
return
|
|
3749
|
+
return Zl(i);
|
|
3750
3750
|
}
|
|
3751
|
-
const
|
|
3751
|
+
const tc = {
|
|
3752
3752
|
stdout: ys({ isTTY: Qn.isatty(1) }),
|
|
3753
3753
|
stderr: ys({ isTTY: Qn.isatty(2) })
|
|
3754
3754
|
};
|
|
3755
|
-
function
|
|
3755
|
+
function ic(e, t, i) {
|
|
3756
3756
|
let l = e.indexOf(t);
|
|
3757
3757
|
if (l === -1)
|
|
3758
3758
|
return e;
|
|
@@ -3763,7 +3763,7 @@ function tc(e, t, i) {
|
|
|
3763
3763
|
while (l !== -1);
|
|
3764
3764
|
return c += e.slice(s), c;
|
|
3765
3765
|
}
|
|
3766
|
-
function
|
|
3766
|
+
function nc(e, t, i, l) {
|
|
3767
3767
|
let p = 0, s = "";
|
|
3768
3768
|
do {
|
|
3769
3769
|
const c = e[l - 1] === "\r";
|
|
@@ -3774,69 +3774,69 @@ function ic(e, t, i, l) {
|
|
|
3774
3774
|
} while (l !== -1);
|
|
3775
3775
|
return s += e.slice(p), s;
|
|
3776
3776
|
}
|
|
3777
|
-
const { stdout: bs, stderr: vs } =
|
|
3777
|
+
const { stdout: bs, stderr: vs } = tc, wn = /* @__PURE__ */ Symbol("GENERATOR"), Me = /* @__PURE__ */ Symbol("STYLER"), Xe = /* @__PURE__ */ Symbol("IS_EMPTY"), ws = [
|
|
3778
3778
|
"ansi",
|
|
3779
3779
|
"ansi",
|
|
3780
3780
|
"ansi256",
|
|
3781
3781
|
"ansi16m"
|
|
3782
|
-
],
|
|
3782
|
+
], De = /* @__PURE__ */ Object.create(null), sc = (e, t = {}) => {
|
|
3783
3783
|
if (t.level && !(Number.isInteger(t.level) && t.level >= 0 && t.level <= 3))
|
|
3784
3784
|
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
3785
3785
|
const i = bs ? bs.level : 0;
|
|
3786
3786
|
e.level = t.level === void 0 ? i : t.level;
|
|
3787
|
-
},
|
|
3787
|
+
}, rc = (e) => {
|
|
3788
3788
|
const t = (...i) => i.join(" ");
|
|
3789
|
-
return
|
|
3789
|
+
return sc(t, e), Object.setPrototypeOf(t, Qe.prototype), t;
|
|
3790
3790
|
};
|
|
3791
3791
|
function Qe(e) {
|
|
3792
|
-
return
|
|
3792
|
+
return rc(e);
|
|
3793
3793
|
}
|
|
3794
3794
|
Object.setPrototypeOf(Qe.prototype, Function.prototype);
|
|
3795
3795
|
for (const [e, t] of Object.entries(be))
|
|
3796
|
-
|
|
3796
|
+
De[e] = {
|
|
3797
3797
|
get() {
|
|
3798
|
-
const i = Pt(this, En(t.open, t.close, this[
|
|
3798
|
+
const i = Pt(this, En(t.open, t.close, this[Me]), this[Xe]);
|
|
3799
3799
|
return Object.defineProperty(this, e, { value: i }), i;
|
|
3800
3800
|
}
|
|
3801
3801
|
};
|
|
3802
|
-
|
|
3802
|
+
De.visible = {
|
|
3803
3803
|
get() {
|
|
3804
|
-
const e = Pt(this, this[
|
|
3804
|
+
const e = Pt(this, this[Me], !0);
|
|
3805
3805
|
return Object.defineProperty(this, "visible", { value: e }), e;
|
|
3806
3806
|
}
|
|
3807
3807
|
};
|
|
3808
|
-
const
|
|
3809
|
-
for (const e of
|
|
3810
|
-
|
|
3808
|
+
const Sn = (e, t, i, ...l) => e === "rgb" ? t === "ansi16m" ? be[i].ansi16m(...l) : t === "ansi256" ? be[i].ansi256(be.rgbToAnsi256(...l)) : be[i].ansi(be.rgbToAnsi(...l)) : e === "hex" ? Sn("rgb", t, i, ...be.hexToRgb(...l)) : be[i][e](...l), oc = ["rgb", "hex", "ansi256"];
|
|
3809
|
+
for (const e of oc) {
|
|
3810
|
+
De[e] = {
|
|
3811
3811
|
get() {
|
|
3812
3812
|
const { level: i } = this;
|
|
3813
3813
|
return function(...l) {
|
|
3814
|
-
const p = En(
|
|
3814
|
+
const p = En(Sn(e, ws[i], "color", ...l), be.color.close, this[Me]);
|
|
3815
3815
|
return Pt(this, p, this[Xe]);
|
|
3816
3816
|
};
|
|
3817
3817
|
}
|
|
3818
3818
|
};
|
|
3819
3819
|
const t = "bg" + e[0].toUpperCase() + e.slice(1);
|
|
3820
|
-
|
|
3820
|
+
De[t] = {
|
|
3821
3821
|
get() {
|
|
3822
3822
|
const { level: i } = this;
|
|
3823
3823
|
return function(...l) {
|
|
3824
|
-
const p = En(
|
|
3824
|
+
const p = En(Sn(e, ws[i], "bgColor", ...l), be.bgColor.close, this[Me]);
|
|
3825
3825
|
return Pt(this, p, this[Xe]);
|
|
3826
3826
|
};
|
|
3827
3827
|
}
|
|
3828
3828
|
};
|
|
3829
3829
|
}
|
|
3830
|
-
const
|
|
3830
|
+
const ac = Object.defineProperties(() => {
|
|
3831
3831
|
}, {
|
|
3832
|
-
...
|
|
3832
|
+
...De,
|
|
3833
3833
|
level: {
|
|
3834
3834
|
enumerable: !0,
|
|
3835
3835
|
get() {
|
|
3836
|
-
return this[
|
|
3836
|
+
return this[wn].level;
|
|
3837
3837
|
},
|
|
3838
3838
|
set(e) {
|
|
3839
|
-
this[
|
|
3839
|
+
this[wn].level = e;
|
|
3840
3840
|
}
|
|
3841
3841
|
}
|
|
3842
3842
|
}), En = (e, t, i) => {
|
|
@@ -3849,31 +3849,31 @@ const oc = Object.defineProperties(() => {
|
|
|
3849
3849
|
parent: i
|
|
3850
3850
|
};
|
|
3851
3851
|
}, Pt = (e, t, i) => {
|
|
3852
|
-
const l = (...p) =>
|
|
3853
|
-
return Object.setPrototypeOf(l,
|
|
3854
|
-
},
|
|
3852
|
+
const l = (...p) => lc(l, p.length === 1 ? "" + p[0] : p.join(" "));
|
|
3853
|
+
return Object.setPrototypeOf(l, ac), l[wn] = e, l[Me] = t, l[Xe] = i, l;
|
|
3854
|
+
}, lc = (e, t) => {
|
|
3855
3855
|
if (e.level <= 0 || !t)
|
|
3856
3856
|
return e[Xe] ? "" : t;
|
|
3857
|
-
let i = e[
|
|
3857
|
+
let i = e[Me];
|
|
3858
3858
|
if (i === void 0)
|
|
3859
3859
|
return t;
|
|
3860
3860
|
const { openAll: l, closeAll: p } = i;
|
|
3861
3861
|
if (t.includes("\x1B"))
|
|
3862
3862
|
for (; i !== void 0; )
|
|
3863
|
-
t =
|
|
3863
|
+
t = ic(t, i.close, i.open), i = i.parent;
|
|
3864
3864
|
const s = t.indexOf(`
|
|
3865
3865
|
`);
|
|
3866
|
-
return s !== -1 && (t =
|
|
3866
|
+
return s !== -1 && (t = nc(t, p, l, s)), l + t + p;
|
|
3867
3867
|
};
|
|
3868
|
-
Object.defineProperties(Qe.prototype,
|
|
3868
|
+
Object.defineProperties(Qe.prototype, De);
|
|
3869
3869
|
const ko = Qe();
|
|
3870
3870
|
Qe({ level: vs ? vs.level : 0 });
|
|
3871
|
-
var _t = { exports: {} },
|
|
3872
|
-
function
|
|
3873
|
-
return
|
|
3871
|
+
var _t = { exports: {} }, cc = _t.exports, Ss;
|
|
3872
|
+
function uc() {
|
|
3873
|
+
return Ss || (Ss = 1, (function(e, t) {
|
|
3874
3874
|
(function(i, l) {
|
|
3875
3875
|
e.exports = l();
|
|
3876
|
-
})(
|
|
3876
|
+
})(cc, (function() {
|
|
3877
3877
|
function i(E) {
|
|
3878
3878
|
"@babel/helpers - typeof";
|
|
3879
3879
|
return i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(A) {
|
|
@@ -4009,7 +4009,7 @@ function cc() {
|
|
|
4009
4009
|
return this._applyModification(v, arguments);
|
|
4010
4010
|
},
|
|
4011
4011
|
brighten: function() {
|
|
4012
|
-
return this._applyModification(
|
|
4012
|
+
return this._applyModification(S, arguments);
|
|
4013
4013
|
},
|
|
4014
4014
|
darken: function() {
|
|
4015
4015
|
return this._applyModification(b, arguments);
|
|
@@ -4024,7 +4024,7 @@ function cc() {
|
|
|
4024
4024
|
return this._applyModification(y, arguments);
|
|
4025
4025
|
},
|
|
4026
4026
|
spin: function() {
|
|
4027
|
-
return this._applyModification(
|
|
4027
|
+
return this._applyModification(w, arguments);
|
|
4028
4028
|
},
|
|
4029
4029
|
_applyCombination: function(A, C) {
|
|
4030
4030
|
return A.apply(null, [this].concat([].slice.call(C)));
|
|
@@ -4055,7 +4055,7 @@ function cc() {
|
|
|
4055
4055
|
if (i(E) == "object") {
|
|
4056
4056
|
var C = {};
|
|
4057
4057
|
for (var N in E)
|
|
4058
|
-
E.hasOwnProperty(N) && (N === "a" ? C[N] = E[N] : C[N] =
|
|
4058
|
+
E.hasOwnProperty(N) && (N === "a" ? C[N] = E[N] : C[N] = ie(E[N]));
|
|
4059
4059
|
E = C;
|
|
4060
4060
|
}
|
|
4061
4061
|
return s(E, A);
|
|
@@ -4066,7 +4066,7 @@ function cc() {
|
|
|
4066
4066
|
g: 0,
|
|
4067
4067
|
b: 0
|
|
4068
4068
|
}, C = 1, N = null, R = null, k = null, V = !1, K = !1;
|
|
4069
|
-
return typeof E == "string" && (E = Sa(E)), i(E) == "object" && (
|
|
4069
|
+
return typeof E == "string" && (E = Sa(E)), i(E) == "object" && (we(E.r) && we(E.g) && we(E.b) ? (A = h(E.r, E.g, E.b), V = !0, K = String(E.r).substr(-1) === "%" ? "prgb" : "rgb") : we(E.h) && we(E.s) && we(E.v) ? (N = ie(E.s), R = ie(E.v), A = u(E.h, N, R), V = !0, K = "hsv") : we(E.h) && we(E.s) && we(E.l) && (N = ie(E.s), k = ie(E.l), A = m(E.h, N, k), V = !0, K = "hsl"), E.hasOwnProperty("a") && (C = E.a)), C = D(C), {
|
|
4070
4070
|
ok: V,
|
|
4071
4071
|
format: E.format || K,
|
|
4072
4072
|
r: Math.min(255, Math.max(A.r, 0)),
|
|
@@ -4111,8 +4111,8 @@ function cc() {
|
|
|
4111
4111
|
function m(E, A, C) {
|
|
4112
4112
|
var N, R, k;
|
|
4113
4113
|
E = M(E, 360), A = M(A, 100), C = M(C, 100);
|
|
4114
|
-
function V(
|
|
4115
|
-
return ge < 0 && (ge += 1), ge > 1 && (ge -= 1), ge < 1 / 6 ?
|
|
4114
|
+
function V(de, Fe, ge) {
|
|
4115
|
+
return ge < 0 && (ge += 1), ge > 1 && (ge -= 1), ge < 1 / 6 ? de + (Fe - de) * 6 * ge : ge < 1 / 2 ? Fe : ge < 2 / 3 ? de + (Fe - de) * (2 / 3 - ge) * 6 : de;
|
|
4116
4116
|
}
|
|
4117
4117
|
if (A === 0)
|
|
4118
4118
|
N = R = k = C;
|
|
@@ -4153,10 +4153,10 @@ function cc() {
|
|
|
4153
4153
|
}
|
|
4154
4154
|
function u(E, A, C) {
|
|
4155
4155
|
E = M(E, 360) * 6, A = M(A, 100), C = M(C, 100);
|
|
4156
|
-
var N = Math.floor(E), R = E - N, k = C * (1 - A), V = C * (1 - R * A), K = C * (1 - (1 - R) * A), Z = N % 6,
|
|
4156
|
+
var N = Math.floor(E), R = E - N, k = C * (1 - A), V = C * (1 - R * A), K = C * (1 - (1 - R) * A), Z = N % 6, de = [C, V, k, k, K, C][Z], Fe = [K, C, C, V, k, k][Z], ge = [k, k, K, C, C, V][Z];
|
|
4157
4157
|
return {
|
|
4158
|
-
r:
|
|
4159
|
-
g:
|
|
4158
|
+
r: de * 255,
|
|
4159
|
+
g: Fe * 255,
|
|
4160
4160
|
b: ge * 255
|
|
4161
4161
|
};
|
|
4162
4162
|
}
|
|
@@ -4199,7 +4199,7 @@ function cc() {
|
|
|
4199
4199
|
var C = s(E).toHsl();
|
|
4200
4200
|
return C.l += A / 100, C.l = G(C.l), s(C);
|
|
4201
4201
|
}
|
|
4202
|
-
function
|
|
4202
|
+
function S(E, A) {
|
|
4203
4203
|
A = A === 0 ? 0 : A || 10;
|
|
4204
4204
|
var C = s(E).toRgb();
|
|
4205
4205
|
return C.r = Math.max(0, Math.min(255, C.r - Math.round(255 * -(A / 100)))), C.g = Math.max(0, Math.min(255, C.g - Math.round(255 * -(A / 100)))), C.b = Math.max(0, Math.min(255, C.b - Math.round(255 * -(A / 100)))), s(C);
|
|
@@ -4209,7 +4209,7 @@ function cc() {
|
|
|
4209
4209
|
var C = s(E).toHsl();
|
|
4210
4210
|
return C.l -= A / 100, C.l = G(C.l), s(C);
|
|
4211
4211
|
}
|
|
4212
|
-
function
|
|
4212
|
+
function w(E, A) {
|
|
4213
4213
|
var C = s(E).toHsl(), N = (C.h + A) % 360;
|
|
4214
4214
|
return C.h = N < 0 ? 360 + N : N, s(C);
|
|
4215
4215
|
}
|
|
@@ -4271,7 +4271,7 @@ function cc() {
|
|
|
4271
4271
|
return (Math.max(C.getLuminance(), N.getLuminance()) + 0.05) / (Math.min(C.getLuminance(), N.getLuminance()) + 0.05);
|
|
4272
4272
|
}, s.isReadable = function(E, A, C) {
|
|
4273
4273
|
var N = s.readability(E, A), R, k;
|
|
4274
|
-
switch (k = !1, R =
|
|
4274
|
+
switch (k = !1, R = Ea(C), R.level + R.size) {
|
|
4275
4275
|
case "AAsmall":
|
|
4276
4276
|
case "AAAlarge":
|
|
4277
4277
|
k = N >= 4.5;
|
|
@@ -4287,8 +4287,8 @@ function cc() {
|
|
|
4287
4287
|
}, s.mostReadable = function(E, A, C) {
|
|
4288
4288
|
var N = null, R = 0, k, V, K, Z;
|
|
4289
4289
|
C = C || {}, V = C.includeFallbackColors, K = C.level, Z = C.size;
|
|
4290
|
-
for (var
|
|
4291
|
-
k = s.readability(E, A[
|
|
4290
|
+
for (var de = 0; de < A.length; de++)
|
|
4291
|
+
k = s.readability(E, A[de]), k > R && (R = k, N = s(A[de]));
|
|
4292
4292
|
return s.isReadable(E, N, {
|
|
4293
4293
|
level: K,
|
|
4294
4294
|
size: Z
|
|
@@ -4474,7 +4474,7 @@ function cc() {
|
|
|
4474
4474
|
function U(E) {
|
|
4475
4475
|
return E.length == 1 ? "0" + E : "" + E;
|
|
4476
4476
|
}
|
|
4477
|
-
function
|
|
4477
|
+
function ie(E) {
|
|
4478
4478
|
return E <= 1 && (E = E * 100 + "%"), E;
|
|
4479
4479
|
}
|
|
4480
4480
|
function ve(E) {
|
|
@@ -4499,7 +4499,7 @@ function cc() {
|
|
|
4499
4499
|
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
|
4500
4500
|
};
|
|
4501
4501
|
})();
|
|
4502
|
-
function
|
|
4502
|
+
function we(E) {
|
|
4503
4503
|
return !!ce.CSS_UNIT.exec(E);
|
|
4504
4504
|
}
|
|
4505
4505
|
function Sa(E) {
|
|
@@ -4567,7 +4567,7 @@ function cc() {
|
|
|
4567
4567
|
format: A ? "name" : "hex"
|
|
4568
4568
|
} : !1;
|
|
4569
4569
|
}
|
|
4570
|
-
function
|
|
4570
|
+
function Ea(E) {
|
|
4571
4571
|
var A, C;
|
|
4572
4572
|
return E = E || {
|
|
4573
4573
|
level: "AA",
|
|
@@ -4582,10 +4582,10 @@ function cc() {
|
|
|
4582
4582
|
})(_t)), _t.exports;
|
|
4583
4583
|
}
|
|
4584
4584
|
var ni, Es;
|
|
4585
|
-
function
|
|
4585
|
+
function fc() {
|
|
4586
4586
|
if (Es) return ni;
|
|
4587
4587
|
Es = 1;
|
|
4588
|
-
const e =
|
|
4588
|
+
const e = uc(), t = { r: 256, g: 256, b: 256, a: 1 }, i = { h: 360, s: 1, v: 1, a: 1 };
|
|
4589
4589
|
function l(n, u, a) {
|
|
4590
4590
|
let r = {};
|
|
4591
4591
|
for (let f in n)
|
|
@@ -4619,11 +4619,11 @@ function uc() {
|
|
|
4619
4619
|
g = r === "long" && b || r === "short" && !b;
|
|
4620
4620
|
}
|
|
4621
4621
|
const y = l(f, d, a);
|
|
4622
|
-
let v = [n.color],
|
|
4623
|
-
f.h <= d.h && !g || f.h >= d.h && g ?
|
|
4622
|
+
let v = [n.color], S;
|
|
4623
|
+
f.h <= d.h && !g || f.h >= d.h && g ? S = d.h - f.h : g ? S = 360 - d.h + f.h : S = 360 - f.h + d.h, y.h = Math.pow(-1, g ? 1 : 0) * Math.abs(S) / a;
|
|
4624
4624
|
for (let b = 1; b < a; b++) {
|
|
4625
|
-
const
|
|
4626
|
-
v.push(e(
|
|
4625
|
+
const w = p(y, f, b, i);
|
|
4626
|
+
v.push(e(w));
|
|
4627
4627
|
}
|
|
4628
4628
|
return v;
|
|
4629
4629
|
}
|
|
@@ -4654,7 +4654,7 @@ function uc() {
|
|
|
4654
4654
|
if (u < 0 || u > 1)
|
|
4655
4655
|
throw new Error("Position must be between 0 and 1");
|
|
4656
4656
|
let f, d;
|
|
4657
|
-
for (let v = 0,
|
|
4657
|
+
for (let v = 0, S = n.length; v < S - 1; v++)
|
|
4658
4658
|
if (u >= n[v].pos && u < n[v + 1].pos) {
|
|
4659
4659
|
f = n[v], d = n[v + 1];
|
|
4660
4660
|
break;
|
|
@@ -4678,12 +4678,12 @@ function uc() {
|
|
|
4678
4678
|
if (a ^ v)
|
|
4679
4679
|
throw new Error("Cannot mix positionned and not posionned color stops");
|
|
4680
4680
|
if (v) {
|
|
4681
|
-
const
|
|
4682
|
-
if (!
|
|
4681
|
+
const S = g.color !== void 0;
|
|
4682
|
+
if (!S && (d || y === 0 || y === r - 1))
|
|
4683
4683
|
throw new Error("Cannot define two consecutive position-only stops");
|
|
4684
|
-
if (d = !
|
|
4685
|
-
color:
|
|
4686
|
-
colorLess: !
|
|
4684
|
+
if (d = !S, g = {
|
|
4685
|
+
color: S ? e(g.color) : null,
|
|
4686
|
+
colorLess: !S,
|
|
4687
4687
|
pos: g.pos
|
|
4688
4688
|
}, g.pos < 0 || g.pos > 1)
|
|
4689
4689
|
throw new Error("Color stops positions must be between 0 and 1");
|
|
@@ -4814,8 +4814,8 @@ function uc() {
|
|
|
4814
4814
|
return new m(n);
|
|
4815
4815
|
}, ni;
|
|
4816
4816
|
}
|
|
4817
|
-
var
|
|
4818
|
-
const Cs = /* @__PURE__ */ Nn(
|
|
4817
|
+
var hc = fc();
|
|
4818
|
+
const Cs = /* @__PURE__ */ Nn(hc), ae = (...e) => {
|
|
4819
4819
|
let t, i;
|
|
4820
4820
|
if (e.length === 0)
|
|
4821
4821
|
throw new Error("Missing gradient colors");
|
|
@@ -4826,17 +4826,17 @@ const Cs = /* @__PURE__ */ Nn(fc), ae = (...e) => {
|
|
|
4826
4826
|
throw new Error(`Expected an array of colors, received ${JSON.stringify(e[0])}`);
|
|
4827
4827
|
t = Cs(...e);
|
|
4828
4828
|
}
|
|
4829
|
-
const l = (p, s) =>
|
|
4830
|
-
return l.multiline = (p, s) =>
|
|
4829
|
+
const l = (p, s) => pc(p ? p.toString() : "", t, s ?? i);
|
|
4830
|
+
return l.multiline = (p, s) => dc(p ? p.toString() : "", t, s ?? i), l;
|
|
4831
4831
|
}, xo = (e, t, i) => t.interpolation?.toLowerCase() === "hsv" ? e.hsv(i, t.hsvSpin?.toLowerCase() || !1) : e.rgb(i);
|
|
4832
|
-
function
|
|
4832
|
+
function pc(e, t, i) {
|
|
4833
4833
|
const l = Gn(i), p = Math.max(e.replace(/\s/g, "").length, t.stops.length), s = xo(t, l, p);
|
|
4834
4834
|
let c = "";
|
|
4835
4835
|
for (const h of e)
|
|
4836
4836
|
c += h.match(/\s/g) ? h : ko.hex(s.shift()?.toHex() || "#000")(h);
|
|
4837
4837
|
return c;
|
|
4838
4838
|
}
|
|
4839
|
-
function
|
|
4839
|
+
function dc(e, t, i) {
|
|
4840
4840
|
const l = Gn(i), p = e.split(`
|
|
4841
4841
|
`), s = Math.max(...p.map((o) => o.length), t.stops.length), c = xo(t, l, s), h = [];
|
|
4842
4842
|
for (const o of p) {
|
|
@@ -4859,7 +4859,7 @@ function Gn(e) {
|
|
|
4859
4859
|
throw new TypeError(`Expected \`options.hsvSpin\` to be a \`short\` or \`long\`, got \`${typeof t.hsvSpin}\``);
|
|
4860
4860
|
return t;
|
|
4861
4861
|
}
|
|
4862
|
-
const
|
|
4862
|
+
const he = {
|
|
4863
4863
|
atlas: { colors: ["#feac5e", "#c779d0", "#4bc0c8"], options: {} },
|
|
4864
4864
|
cristal: { colors: ["#bdfff3", "#4ac29a"], options: {} },
|
|
4865
4865
|
teen: { colors: ["#77a1d3", "#79cbca", "#e684ae"], options: {} },
|
|
@@ -4877,42 +4877,42 @@ const fe = {
|
|
|
4877
4877
|
rainbow: { colors: ["#ff0000", "#ff0100"], options: { interpolation: "hsv", hsvSpin: "long" } },
|
|
4878
4878
|
pastel: { colors: ["#74ebd5", "#74ecd5"], options: { interpolation: "hsv", hsvSpin: "long" } }
|
|
4879
4879
|
};
|
|
4880
|
-
function
|
|
4880
|
+
function pe(e) {
|
|
4881
4881
|
const t = (i) => ae(...e.colors)(i, e.options);
|
|
4882
4882
|
return t.multiline = (i = "") => ae(...e.colors).multiline(i, e.options), t;
|
|
4883
4883
|
}
|
|
4884
|
-
const
|
|
4885
|
-
ae.atlas =
|
|
4886
|
-
ae.cristal =
|
|
4887
|
-
ae.teen =
|
|
4888
|
-
ae.mind =
|
|
4889
|
-
ae.morning =
|
|
4884
|
+
const mc = pe(he.atlas), gc = pe(he.cristal), yc = pe(he.teen), bc = pe(he.mind), vc = pe(he.morning), Cn = pe(he.vice), wc = pe(he.passion), Sc = pe(he.fruit), Ec = pe(he.instagram), Cc = pe(he.retro), Ac = pe(he.summer), Lc = pe(he.rainbow), Oc = pe(he.pastel);
|
|
4885
|
+
ae.atlas = mc;
|
|
4886
|
+
ae.cristal = gc;
|
|
4887
|
+
ae.teen = yc;
|
|
4888
|
+
ae.mind = bc;
|
|
4889
|
+
ae.morning = vc;
|
|
4890
4890
|
ae.vice = Cn;
|
|
4891
|
-
ae.passion =
|
|
4891
|
+
ae.passion = wc;
|
|
4892
4892
|
ae.fruit = Sc;
|
|
4893
|
-
ae.instagram =
|
|
4894
|
-
ae.retro =
|
|
4895
|
-
ae.summer =
|
|
4896
|
-
ae.rainbow =
|
|
4897
|
-
ae.pastel =
|
|
4898
|
-
const
|
|
4893
|
+
ae.instagram = Ec;
|
|
4894
|
+
ae.retro = Cc;
|
|
4895
|
+
ae.summer = Ac;
|
|
4896
|
+
ae.rainbow = Lc;
|
|
4897
|
+
ae.pastel = Oc;
|
|
4898
|
+
const $c = "my-arcgis-app";
|
|
4899
4899
|
function Ro() {
|
|
4900
|
-
|
|
4900
|
+
Ul("initialize a new arcgis project");
|
|
4901
4901
|
}
|
|
4902
4902
|
async function Mo() {
|
|
4903
|
-
return await
|
|
4903
|
+
return await Kl({
|
|
4904
4904
|
message: "What is the name of your project?",
|
|
4905
4905
|
initialValue: "",
|
|
4906
|
-
placeholder:
|
|
4906
|
+
placeholder: $c,
|
|
4907
4907
|
validate(e) {
|
|
4908
4908
|
if (!e || e.length === 0)
|
|
4909
4909
|
return "Value is required!";
|
|
4910
4910
|
}
|
|
4911
4911
|
});
|
|
4912
4912
|
}
|
|
4913
|
-
async function
|
|
4914
|
-
const e = Ce.map(([t]) => t).filter((t) => !
|
|
4915
|
-
return await
|
|
4913
|
+
async function _c() {
|
|
4914
|
+
const e = Ce.map(([t]) => t).filter((t) => !Ya[t]).map((t) => ({ value: t, label: Ka[t] }));
|
|
4915
|
+
return await Yl({
|
|
4916
4916
|
message: "Which template would you like to use?",
|
|
4917
4917
|
options: e
|
|
4918
4918
|
});
|
|
@@ -4920,7 +4920,7 @@ async function $c() {
|
|
|
4920
4920
|
function An() {
|
|
4921
4921
|
Bn(oe("greenBright", "Your new project is ready!"));
|
|
4922
4922
|
}
|
|
4923
|
-
function
|
|
4923
|
+
function Nc() {
|
|
4924
4924
|
Bn(
|
|
4925
4925
|
oe(
|
|
4926
4926
|
"greenBright",
|
|
@@ -4932,14 +4932,14 @@ Configuration files created: .npmrc, eslint.config.js, prettier.config.js, and l
|
|
|
4932
4932
|
)
|
|
4933
4933
|
);
|
|
4934
4934
|
}
|
|
4935
|
-
async function
|
|
4935
|
+
async function Pc(e) {
|
|
4936
4936
|
return Ae.info(`
|
|
4937
4937
|
This command requires a ${e} personal access token with the 'repo' scope.
|
|
4938
4938
|
|
|
4939
4939
|
See https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic
|
|
4940
4940
|
|
|
4941
4941
|
for step-by-step instructions.
|
|
4942
|
-
`), await
|
|
4942
|
+
`), await Hl({
|
|
4943
4943
|
message: `Please enter your personal access token for ${e}`,
|
|
4944
4944
|
mask: "*",
|
|
4945
4945
|
validate(t) {
|
|
@@ -4979,7 +4979,7 @@ function Fo() {
|
|
|
4979
4979
|
}, ri;
|
|
4980
4980
|
}
|
|
4981
4981
|
var dt = { exports: {} }, Os;
|
|
4982
|
-
function
|
|
4982
|
+
function Ic() {
|
|
4983
4983
|
return Os || (Os = 1, (function(e, t) {
|
|
4984
4984
|
const {
|
|
4985
4985
|
MAX_SAFE_COMPONENT_LENGTH: i,
|
|
@@ -4998,21 +4998,21 @@ function Pc() {
|
|
|
4998
4998
|
g = g.split(`${y}*`).join(`${y}{0,${v}}`).split(`${y}+`).join(`${y}{1,${v}}`);
|
|
4999
4999
|
return g;
|
|
5000
5000
|
}, d = (g, y, v) => {
|
|
5001
|
-
const
|
|
5002
|
-
s(g, b, y), n[g] = b, o[b] = y, m[b] =
|
|
5001
|
+
const S = f(y), b = u++;
|
|
5002
|
+
s(g, b, y), n[g] = b, o[b] = y, m[b] = S, c[b] = new RegExp(y, v ? "g" : void 0), h[b] = new RegExp(S, v ? "g" : void 0);
|
|
5003
5003
|
};
|
|
5004
5004
|
d("NUMERICIDENTIFIER", "0|[1-9]\\d*"), d("NUMERICIDENTIFIERLOOSE", "\\d+"), d("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${a}*`), d("MAINVERSION", `(${o[n.NUMERICIDENTIFIER]})\\.(${o[n.NUMERICIDENTIFIER]})\\.(${o[n.NUMERICIDENTIFIER]})`), d("MAINVERSIONLOOSE", `(${o[n.NUMERICIDENTIFIERLOOSE]})\\.(${o[n.NUMERICIDENTIFIERLOOSE]})\\.(${o[n.NUMERICIDENTIFIERLOOSE]})`), d("PRERELEASEIDENTIFIER", `(?:${o[n.NONNUMERICIDENTIFIER]}|${o[n.NUMERICIDENTIFIER]})`), d("PRERELEASEIDENTIFIERLOOSE", `(?:${o[n.NONNUMERICIDENTIFIER]}|${o[n.NUMERICIDENTIFIERLOOSE]})`), d("PRERELEASE", `(?:-(${o[n.PRERELEASEIDENTIFIER]}(?:\\.${o[n.PRERELEASEIDENTIFIER]})*))`), d("PRERELEASELOOSE", `(?:-?(${o[n.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[n.PRERELEASEIDENTIFIERLOOSE]})*))`), d("BUILDIDENTIFIER", `${a}+`), d("BUILD", `(?:\\+(${o[n.BUILDIDENTIFIER]}(?:\\.${o[n.BUILDIDENTIFIER]})*))`), d("FULLPLAIN", `v?${o[n.MAINVERSION]}${o[n.PRERELEASE]}?${o[n.BUILD]}?`), d("FULL", `^${o[n.FULLPLAIN]}$`), d("LOOSEPLAIN", `[v=\\s]*${o[n.MAINVERSIONLOOSE]}${o[n.PRERELEASELOOSE]}?${o[n.BUILD]}?`), d("LOOSE", `^${o[n.LOOSEPLAIN]}$`), d("GTLT", "((?:<|>)?=?)"), d("XRANGEIDENTIFIERLOOSE", `${o[n.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), d("XRANGEIDENTIFIER", `${o[n.NUMERICIDENTIFIER]}|x|X|\\*`), d("XRANGEPLAIN", `[v=\\s]*(${o[n.XRANGEIDENTIFIER]})(?:\\.(${o[n.XRANGEIDENTIFIER]})(?:\\.(${o[n.XRANGEIDENTIFIER]})(?:${o[n.PRERELEASE]})?${o[n.BUILD]}?)?)?`), d("XRANGEPLAINLOOSE", `[v=\\s]*(${o[n.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[n.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[n.XRANGEIDENTIFIERLOOSE]})(?:${o[n.PRERELEASELOOSE]})?${o[n.BUILD]}?)?)?`), d("XRANGE", `^${o[n.GTLT]}\\s*${o[n.XRANGEPLAIN]}$`), d("XRANGELOOSE", `^${o[n.GTLT]}\\s*${o[n.XRANGEPLAINLOOSE]}$`), d("COERCEPLAIN", `(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?`), d("COERCE", `${o[n.COERCEPLAIN]}(?:$|[^\\d])`), d("COERCEFULL", o[n.COERCEPLAIN] + `(?:${o[n.PRERELEASE]})?(?:${o[n.BUILD]})?(?:$|[^\\d])`), d("COERCERTL", o[n.COERCE], !0), d("COERCERTLFULL", o[n.COERCEFULL], !0), d("LONETILDE", "(?:~>?)"), d("TILDETRIM", `(\\s*)${o[n.LONETILDE]}\\s+`, !0), t.tildeTrimReplace = "$1~", d("TILDE", `^${o[n.LONETILDE]}${o[n.XRANGEPLAIN]}$`), d("TILDELOOSE", `^${o[n.LONETILDE]}${o[n.XRANGEPLAINLOOSE]}$`), d("LONECARET", "(?:\\^)"), d("CARETTRIM", `(\\s*)${o[n.LONECARET]}\\s+`, !0), t.caretTrimReplace = "$1^", d("CARET", `^${o[n.LONECARET]}${o[n.XRANGEPLAIN]}$`), d("CARETLOOSE", `^${o[n.LONECARET]}${o[n.XRANGEPLAINLOOSE]}$`), d("COMPARATORLOOSE", `^${o[n.GTLT]}\\s*(${o[n.LOOSEPLAIN]})$|^$`), d("COMPARATOR", `^${o[n.GTLT]}\\s*(${o[n.FULLPLAIN]})$|^$`), d("COMPARATORTRIM", `(\\s*)${o[n.GTLT]}\\s*(${o[n.LOOSEPLAIN]}|${o[n.XRANGEPLAIN]})`, !0), t.comparatorTrimReplace = "$1$2$3", d("HYPHENRANGE", `^\\s*(${o[n.XRANGEPLAIN]})\\s+-\\s+(${o[n.XRANGEPLAIN]})\\s*$`), d("HYPHENRANGELOOSE", `^\\s*(${o[n.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[n.XRANGEPLAINLOOSE]})\\s*$`), d("STAR", "(<|>)?=?\\s*\\*"), d("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), d("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
5005
5005
|
})(dt, dt.exports)), dt.exports;
|
|
5006
5006
|
}
|
|
5007
5007
|
var oi, $s;
|
|
5008
|
-
function
|
|
5008
|
+
function Tc() {
|
|
5009
5009
|
if ($s) return oi;
|
|
5010
5010
|
$s = 1;
|
|
5011
5011
|
const e = Object.freeze({ loose: !0 }), t = Object.freeze({});
|
|
5012
5012
|
return oi = (l) => l ? typeof l != "object" ? e : l : t, oi;
|
|
5013
5013
|
}
|
|
5014
5014
|
var ai, _s;
|
|
5015
|
-
function
|
|
5015
|
+
function kc() {
|
|
5016
5016
|
if (_s) return ai;
|
|
5017
5017
|
_s = 1;
|
|
5018
5018
|
const e = /^[0-9]+$/, t = (l, p) => {
|
|
@@ -5027,10 +5027,10 @@ function Tc() {
|
|
|
5027
5027
|
}, ai;
|
|
5028
5028
|
}
|
|
5029
5029
|
var li, Ns;
|
|
5030
|
-
function
|
|
5030
|
+
function xc() {
|
|
5031
5031
|
if (Ns) return li;
|
|
5032
5032
|
Ns = 1;
|
|
5033
|
-
const e = Do(), { MAX_LENGTH: t, MAX_SAFE_INTEGER: i } = Fo(), { safeRe: l, t: p } =
|
|
5033
|
+
const e = Do(), { MAX_LENGTH: t, MAX_SAFE_INTEGER: i } = Fo(), { safeRe: l, t: p } = Ic(), s = Tc(), { compareIdentifiers: c } = kc(), h = (m, n) => {
|
|
5034
5034
|
const u = n.split(".");
|
|
5035
5035
|
if (u.length > m.length)
|
|
5036
5036
|
return !1;
|
|
@@ -5203,7 +5203,7 @@ var ci, Ps;
|
|
|
5203
5203
|
function Bo() {
|
|
5204
5204
|
if (Ps) return ci;
|
|
5205
5205
|
Ps = 1;
|
|
5206
|
-
const e =
|
|
5206
|
+
const e = xc();
|
|
5207
5207
|
return ci = (i, l, p = !1) => {
|
|
5208
5208
|
if (i instanceof e)
|
|
5209
5209
|
return i;
|
|
@@ -5217,7 +5217,7 @@ function Bo() {
|
|
|
5217
5217
|
}, ci;
|
|
5218
5218
|
}
|
|
5219
5219
|
var ui, Is;
|
|
5220
|
-
function
|
|
5220
|
+
function Rc() {
|
|
5221
5221
|
if (Is) return ui;
|
|
5222
5222
|
Is = 1;
|
|
5223
5223
|
const e = Bo();
|
|
@@ -5227,7 +5227,7 @@ function xc() {
|
|
|
5227
5227
|
}, ui;
|
|
5228
5228
|
}
|
|
5229
5229
|
var fi, Ts;
|
|
5230
|
-
function
|
|
5230
|
+
function Mc() {
|
|
5231
5231
|
if (Ts) return fi;
|
|
5232
5232
|
Ts = 1;
|
|
5233
5233
|
const e = Bo();
|
|
@@ -5236,7 +5236,7 @@ function Rc() {
|
|
|
5236
5236
|
return p ? p.version : null;
|
|
5237
5237
|
}, fi;
|
|
5238
5238
|
}
|
|
5239
|
-
const Go = /* @__PURE__ */ JSON.parse('["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","metamail","mpi-permissive","mpich2","mplus","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]'),
|
|
5239
|
+
const Go = /* @__PURE__ */ JSON.parse('["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","metamail","mpi-permissive","mpich2","mplus","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]'), Dc = [
|
|
5240
5240
|
"AGPL-1.0",
|
|
5241
5241
|
"AGPL-3.0",
|
|
5242
5242
|
"BSD-2-Clause-FreeBSD",
|
|
@@ -5263,7 +5263,7 @@ const Go = /* @__PURE__ */ JSON.parse('["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL
|
|
|
5263
5263
|
"bzip2-1.0.5",
|
|
5264
5264
|
"eCos-2.0",
|
|
5265
5265
|
"wxWindows"
|
|
5266
|
-
],
|
|
5266
|
+
], Fc = [
|
|
5267
5267
|
"389-exception",
|
|
5268
5268
|
"Asterisk-exception",
|
|
5269
5269
|
"Autoconf-exception-2.0",
|
|
@@ -5332,10 +5332,10 @@ const Go = /* @__PURE__ */ JSON.parse('["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL
|
|
|
5332
5332
|
"x11vnc-openssl-exception"
|
|
5333
5333
|
];
|
|
5334
5334
|
var hi, ks;
|
|
5335
|
-
function
|
|
5335
|
+
function Bc() {
|
|
5336
5336
|
if (ks) return hi;
|
|
5337
5337
|
ks = 1;
|
|
5338
|
-
var e = [].concat(Go).concat(
|
|
5338
|
+
var e = [].concat(Go).concat(Dc), t = Fc;
|
|
5339
5339
|
return hi = function(i) {
|
|
5340
5340
|
var l = 0;
|
|
5341
5341
|
function p() {
|
|
@@ -5410,7 +5410,7 @@ function Fc() {
|
|
|
5410
5410
|
}, hi;
|
|
5411
5411
|
}
|
|
5412
5412
|
var pi, xs;
|
|
5413
|
-
function
|
|
5413
|
+
function Gc() {
|
|
5414
5414
|
return xs || (xs = 1, pi = function(e) {
|
|
5415
5415
|
var t = 0;
|
|
5416
5416
|
function i() {
|
|
@@ -5473,13 +5473,13 @@ function Bc() {
|
|
|
5473
5473
|
if (v) {
|
|
5474
5474
|
if (!s(d))
|
|
5475
5475
|
return v;
|
|
5476
|
-
var
|
|
5477
|
-
if (!
|
|
5476
|
+
var S = y();
|
|
5477
|
+
if (!S)
|
|
5478
5478
|
throw new Error("Expected expression");
|
|
5479
5479
|
return {
|
|
5480
5480
|
left: v,
|
|
5481
5481
|
conjunction: d.toLowerCase(),
|
|
5482
|
-
right:
|
|
5482
|
+
right: S
|
|
5483
5483
|
};
|
|
5484
5484
|
}
|
|
5485
5485
|
};
|
|
@@ -5494,13 +5494,13 @@ var di, Rs;
|
|
|
5494
5494
|
function qo() {
|
|
5495
5495
|
if (Rs) return di;
|
|
5496
5496
|
Rs = 1;
|
|
5497
|
-
var e =
|
|
5497
|
+
var e = Bc(), t = Gc();
|
|
5498
5498
|
return di = function(i) {
|
|
5499
5499
|
return t(e(i));
|
|
5500
5500
|
}, di;
|
|
5501
5501
|
}
|
|
5502
5502
|
var mi, Ms;
|
|
5503
|
-
function
|
|
5503
|
+
function qc() {
|
|
5504
5504
|
if (Ms) return mi;
|
|
5505
5505
|
Ms = 1;
|
|
5506
5506
|
var e = qo(), t = Go;
|
|
@@ -5512,8 +5512,8 @@ function Gc() {
|
|
|
5512
5512
|
}
|
|
5513
5513
|
}
|
|
5514
5514
|
function l(y, v) {
|
|
5515
|
-
var
|
|
5516
|
-
return
|
|
5515
|
+
var S = v[0].length - y[0].length;
|
|
5516
|
+
return S !== 0 ? S : y[0].toUpperCase().localeCompare(v[0].toUpperCase());
|
|
5517
5517
|
}
|
|
5518
5518
|
var p = [
|
|
5519
5519
|
["APGL", "AGPL"],
|
|
@@ -5664,8 +5664,8 @@ function Gc() {
|
|
|
5664
5664
|
var v = /^(.*)-\d+\.\d+$/.exec(y);
|
|
5665
5665
|
return v ? [v[0], v[1]] : [y, null];
|
|
5666
5666
|
}).reduce(function(y, v) {
|
|
5667
|
-
var
|
|
5668
|
-
return y[
|
|
5667
|
+
var S = v[1];
|
|
5668
|
+
return y[S] = y[S] || [], y[S].push(v[0]), y;
|
|
5669
5669
|
}, {}), m = Object.keys(o).map(function(v) {
|
|
5670
5670
|
return [v, o[v]];
|
|
5671
5671
|
}).filter(function(v) {
|
|
@@ -5710,24 +5710,24 @@ function Gc() {
|
|
|
5710
5710
|
["ZLIB", "Zlib"]
|
|
5711
5711
|
].concat(m).sort(l), u = 0, a = 1, r = function(y) {
|
|
5712
5712
|
for (var v = 0; v < h.length; v++) {
|
|
5713
|
-
var
|
|
5714
|
-
if (
|
|
5715
|
-
return
|
|
5713
|
+
var S = h[v](y).trim();
|
|
5714
|
+
if (S !== y && i(S))
|
|
5715
|
+
return S;
|
|
5716
5716
|
}
|
|
5717
5717
|
return null;
|
|
5718
5718
|
}, f = function(y) {
|
|
5719
|
-
for (var v = y.toUpperCase(),
|
|
5720
|
-
var b = n[
|
|
5719
|
+
for (var v = y.toUpperCase(), S = 0; S < n.length; S++) {
|
|
5720
|
+
var b = n[S];
|
|
5721
5721
|
if (v.indexOf(b[u]) > -1)
|
|
5722
5722
|
return b[a];
|
|
5723
5723
|
}
|
|
5724
5724
|
return null;
|
|
5725
5725
|
}, d = function(y, v) {
|
|
5726
|
-
for (var
|
|
5727
|
-
var b = p[
|
|
5728
|
-
if (y.indexOf(
|
|
5726
|
+
for (var S = 0; S < p.length; S++) {
|
|
5727
|
+
var b = p[S], w = b[s];
|
|
5728
|
+
if (y.indexOf(w) > -1) {
|
|
5729
5729
|
var L = y.replace(
|
|
5730
|
-
|
|
5730
|
+
w,
|
|
5731
5731
|
b[c]
|
|
5732
5732
|
), O = v(L);
|
|
5733
5733
|
if (O !== null)
|
|
@@ -5738,12 +5738,12 @@ function Gc() {
|
|
|
5738
5738
|
};
|
|
5739
5739
|
mi = function(y, v) {
|
|
5740
5740
|
v = v || {};
|
|
5741
|
-
var
|
|
5741
|
+
var S = v.upgrade === void 0 ? !0 : !!v.upgrade;
|
|
5742
5742
|
function b($) {
|
|
5743
|
-
return
|
|
5743
|
+
return S ? g($) : $;
|
|
5744
5744
|
}
|
|
5745
|
-
var
|
|
5746
|
-
if (!
|
|
5745
|
+
var w = typeof y == "string" && y.trim().length !== 0;
|
|
5746
|
+
if (!w)
|
|
5747
5747
|
throw Error("Invalid argument. Expected non-empty string.");
|
|
5748
5748
|
if (y = y.trim(), i(y))
|
|
5749
5749
|
return b(y);
|
|
@@ -5778,10 +5778,10 @@ function Gc() {
|
|
|
5778
5778
|
return mi;
|
|
5779
5779
|
}
|
|
5780
5780
|
var gi, Ds;
|
|
5781
|
-
function
|
|
5781
|
+
function jc() {
|
|
5782
5782
|
if (Ds) return gi;
|
|
5783
5783
|
Ds = 1;
|
|
5784
|
-
var e = qo(), t =
|
|
5784
|
+
var e = qo(), t = qc(), i = 'license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"', l = /^SEE LICEN[CS]E IN (.+)$/;
|
|
5785
5785
|
function p(c, h) {
|
|
5786
5786
|
return h.slice(0, c.length) === c;
|
|
5787
5787
|
}
|
|
@@ -5835,10 +5835,10 @@ function qc() {
|
|
|
5835
5835
|
};
|
|
5836
5836
|
}, gi;
|
|
5837
5837
|
}
|
|
5838
|
-
var
|
|
5839
|
-
function
|
|
5840
|
-
if (Fs) return
|
|
5841
|
-
Fs = 1, Object.defineProperty(
|
|
5838
|
+
var Be = {}, Fs;
|
|
5839
|
+
function Uc() {
|
|
5840
|
+
if (Fs) return Be;
|
|
5841
|
+
Fs = 1, Object.defineProperty(Be, "__esModule", { value: !0 }), Be.LRUCache = void 0;
|
|
5842
5842
|
const e = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, t = /* @__PURE__ */ new Set(), i = typeof process == "object" && process ? process : {}, l = (a, r, f, d) => {
|
|
5843
5843
|
typeof i.emitWarning == "function" ? i.emitWarning(a, r, f, d) : console.error(`[${f}] ${r}: ${a}`);
|
|
5844
5844
|
};
|
|
@@ -5983,9 +5983,9 @@ function jc() {
|
|
|
5983
5983
|
#b;
|
|
5984
5984
|
#l;
|
|
5985
5985
|
#v;
|
|
5986
|
-
#S;
|
|
5987
|
-
#d;
|
|
5988
5986
|
#w;
|
|
5987
|
+
#d;
|
|
5988
|
+
#S;
|
|
5989
5989
|
#O;
|
|
5990
5990
|
#h;
|
|
5991
5991
|
/**
|
|
@@ -6000,7 +6000,7 @@ function jc() {
|
|
|
6000
6000
|
static unsafeExposeInternals(r) {
|
|
6001
6001
|
return {
|
|
6002
6002
|
// properties
|
|
6003
|
-
starts: r.#
|
|
6003
|
+
starts: r.#w,
|
|
6004
6004
|
ttls: r.#d,
|
|
6005
6005
|
sizes: r.#v,
|
|
6006
6006
|
keyMap: r.#r,
|
|
@@ -6071,7 +6071,7 @@ function jc() {
|
|
|
6071
6071
|
return this.#g;
|
|
6072
6072
|
}
|
|
6073
6073
|
constructor(r) {
|
|
6074
|
-
const { max: f = 0, ttl: d, ttlResolution: g = 1, ttlAutopurge: y, updateAgeOnGet: v, updateAgeOnHas:
|
|
6074
|
+
const { max: f = 0, ttl: d, ttlResolution: g = 1, ttlAutopurge: y, updateAgeOnGet: v, updateAgeOnHas: S, allowStale: b, dispose: w, disposeAfter: L, noDisposeOnSet: O, noUpdateTTL: $, maxSize: _ = 0, maxEntrySize: P = 0, sizeCalculation: I, fetchMethod: B, memoMethod: F, noDeleteOnFetchRejection: D, noDeleteOnStaleGet: M, allowStaleOnFetchRejection: G, allowStaleOnFetchAbort: T, ignoreFetchAbort: Y } = r;
|
|
6075
6075
|
if (f !== 0 && !h(f))
|
|
6076
6076
|
throw new TypeError("max option must be a nonnegative integer");
|
|
6077
6077
|
const j = f ? o(f) : Array;
|
|
@@ -6087,14 +6087,14 @@ function jc() {
|
|
|
6087
6087
|
throw new TypeError("memoMethod must be a function if defined");
|
|
6088
6088
|
if (this.#I = F, B !== void 0 && typeof B != "function")
|
|
6089
6089
|
throw new TypeError("fetchMethod must be a function if specified");
|
|
6090
|
-
if (this.#P = B, this.#O = !!B, this.#r = /* @__PURE__ */ new Map(), this.#n = new Array(f).fill(void 0), this.#e = new Array(f).fill(void 0), this.#f = new j(f), this.#p = new j(f), this.#u = 0, this.#a = 0, this.#b = n.create(f), this.#o = 0, this.#y = 0, typeof
|
|
6090
|
+
if (this.#P = B, this.#O = !!B, this.#r = /* @__PURE__ */ new Map(), this.#n = new Array(f).fill(void 0), this.#e = new Array(f).fill(void 0), this.#f = new j(f), this.#p = new j(f), this.#u = 0, this.#a = 0, this.#b = n.create(f), this.#o = 0, this.#y = 0, typeof w == "function" && (this.#t = w), typeof L == "function" ? (this.#g = L, this.#l = []) : (this.#g = void 0, this.#l = void 0), this.#S = !!this.#t, this.#h = !!this.#g, this.noDisposeOnSet = !!O, this.noUpdateTTL = !!$, this.noDeleteOnFetchRejection = !!D, this.allowStaleOnFetchRejection = !!G, this.allowStaleOnFetchAbort = !!T, this.ignoreFetchAbort = !!Y, this.maxEntrySize !== 0) {
|
|
6091
6091
|
if (this.#c !== 0 && !h(this.#c))
|
|
6092
6092
|
throw new TypeError("maxSize must be a positive integer if specified");
|
|
6093
6093
|
if (!h(this.maxEntrySize))
|
|
6094
6094
|
throw new TypeError("maxEntrySize must be a positive integer if specified");
|
|
6095
6095
|
this.#q();
|
|
6096
6096
|
}
|
|
6097
|
-
if (this.allowStale = !!b, this.noDeleteOnStaleGet = !!M, this.updateAgeOnGet = !!v, this.updateAgeOnHas = !!
|
|
6097
|
+
if (this.allowStale = !!b, this.noDeleteOnStaleGet = !!M, this.updateAgeOnGet = !!v, this.updateAgeOnHas = !!S, this.ttlResolution = h(g) || g === 0 ? g : 1, this.ttlAutopurge = !!y, this.ttl = d || 0, this.ttl) {
|
|
6098
6098
|
if (!h(this.ttl))
|
|
6099
6099
|
throw new TypeError("ttl must be a positive integer if specified");
|
|
6100
6100
|
this.#R();
|
|
@@ -6115,8 +6115,8 @@ function jc() {
|
|
|
6115
6115
|
}
|
|
6116
6116
|
#R() {
|
|
6117
6117
|
const r = new m(this.#s), f = new m(this.#s);
|
|
6118
|
-
this.#d = r, this.#
|
|
6119
|
-
if (f[y] = v !== 0 ?
|
|
6118
|
+
this.#d = r, this.#w = f, this.#M = (y, v, S = e.now()) => {
|
|
6119
|
+
if (f[y] = v !== 0 ? S : 0, r[y] = v, v !== 0 && this.ttlAutopurge) {
|
|
6120
6120
|
const b = setTimeout(() => {
|
|
6121
6121
|
this.#m(y) && this.#A(this.#n[y], "expire");
|
|
6122
6122
|
}, v + 1);
|
|
@@ -6126,12 +6126,12 @@ function jc() {
|
|
|
6126
6126
|
f[y] = r[y] !== 0 ? e.now() : 0;
|
|
6127
6127
|
}, this.#L = (y, v) => {
|
|
6128
6128
|
if (r[v]) {
|
|
6129
|
-
const
|
|
6130
|
-
if (!
|
|
6129
|
+
const S = r[v], b = f[v];
|
|
6130
|
+
if (!S || !b)
|
|
6131
6131
|
return;
|
|
6132
|
-
y.ttl =
|
|
6133
|
-
const
|
|
6134
|
-
y.remainingTTL =
|
|
6132
|
+
y.ttl = S, y.start = b, y.now = d || g();
|
|
6133
|
+
const w = y.now - b;
|
|
6134
|
+
y.remainingTTL = S - w;
|
|
6135
6135
|
}
|
|
6136
6136
|
};
|
|
6137
6137
|
let d = 0;
|
|
@@ -6148,14 +6148,14 @@ function jc() {
|
|
|
6148
6148
|
const v = this.#r.get(y);
|
|
6149
6149
|
if (v === void 0)
|
|
6150
6150
|
return 0;
|
|
6151
|
-
const
|
|
6152
|
-
if (!
|
|
6151
|
+
const S = r[v], b = f[v];
|
|
6152
|
+
if (!S || !b)
|
|
6153
6153
|
return 1 / 0;
|
|
6154
|
-
const
|
|
6155
|
-
return
|
|
6154
|
+
const w = (d || g()) - b;
|
|
6155
|
+
return S - w;
|
|
6156
6156
|
}, this.#m = (y) => {
|
|
6157
|
-
const v = f[y],
|
|
6158
|
-
return !!
|
|
6157
|
+
const v = f[y], S = r[y];
|
|
6158
|
+
return !!S && !!v && (d || g()) - v > S;
|
|
6159
6159
|
};
|
|
6160
6160
|
}
|
|
6161
6161
|
// conditionally set private methods related to TTL
|
|
@@ -6353,10 +6353,10 @@ function jc() {
|
|
|
6353
6353
|
if (g === void 0)
|
|
6354
6354
|
return;
|
|
6355
6355
|
const y = { value: g };
|
|
6356
|
-
if (this.#d && this.#
|
|
6357
|
-
const v = this.#d[f],
|
|
6358
|
-
if (v &&
|
|
6359
|
-
const b = v - (e.now() -
|
|
6356
|
+
if (this.#d && this.#w) {
|
|
6357
|
+
const v = this.#d[f], S = this.#w[f];
|
|
6358
|
+
if (v && S) {
|
|
6359
|
+
const b = v - (e.now() - S);
|
|
6360
6360
|
y.ttl = b, y.start = Date.now();
|
|
6361
6361
|
}
|
|
6362
6362
|
}
|
|
@@ -6382,10 +6382,10 @@ function jc() {
|
|
|
6382
6382
|
if (y === void 0 || d === void 0)
|
|
6383
6383
|
continue;
|
|
6384
6384
|
const v = { value: y };
|
|
6385
|
-
if (this.#d && this.#
|
|
6385
|
+
if (this.#d && this.#w) {
|
|
6386
6386
|
v.ttl = this.#d[f];
|
|
6387
|
-
const
|
|
6388
|
-
v.start = Math.floor(Date.now() -
|
|
6387
|
+
const S = e.now() - this.#w[f];
|
|
6388
|
+
v.start = Math.floor(Date.now() - S);
|
|
6389
6389
|
}
|
|
6390
6390
|
this.#v && (v.size = this.#v[f]), r.unshift([d, v]);
|
|
6391
6391
|
}
|
|
@@ -6443,14 +6443,14 @@ function jc() {
|
|
|
6443
6443
|
set(r, f, d = {}) {
|
|
6444
6444
|
if (f === void 0)
|
|
6445
6445
|
return this.delete(r), this;
|
|
6446
|
-
const { ttl: g = this.ttl, start: y, noDisposeOnSet: v = this.noDisposeOnSet, sizeCalculation:
|
|
6447
|
-
let { noUpdateTTL:
|
|
6448
|
-
const L = this.#D(r, f, d.size || 0,
|
|
6446
|
+
const { ttl: g = this.ttl, start: y, noDisposeOnSet: v = this.noDisposeOnSet, sizeCalculation: S = this.sizeCalculation, status: b } = d;
|
|
6447
|
+
let { noUpdateTTL: w = this.noUpdateTTL } = d;
|
|
6448
|
+
const L = this.#D(r, f, d.size || 0, S);
|
|
6449
6449
|
if (this.maxEntrySize && L > this.maxEntrySize)
|
|
6450
6450
|
return b && (b.set = "miss", b.maxEntrySizeExceeded = !0), this.#A(r, "set"), this;
|
|
6451
6451
|
let O = this.#o === 0 ? void 0 : this.#r.get(r);
|
|
6452
6452
|
if (O === void 0)
|
|
6453
|
-
O = this.#o === 0 ? this.#a : this.#b.length !== 0 ? this.#b.pop() : this.#o === this.#s ? this.#k(!1) : this.#o, this.#n[O] = r, this.#e[O] = f, this.#r.set(r, O), this.#f[this.#a] = O, this.#p[O] = this.#a, this.#a = O, this.#o++, this.#T(O, L, b), b && (b.set = "add"),
|
|
6453
|
+
O = this.#o === 0 ? this.#a : this.#b.length !== 0 ? this.#b.pop() : this.#o === this.#s ? this.#k(!1) : this.#o, this.#n[O] = r, this.#e[O] = f, this.#r.set(r, O), this.#f[this.#a] = O, this.#p[O] = this.#a, this.#a = O, this.#o++, this.#T(O, L, b), b && (b.set = "add"), w = !1;
|
|
6454
6454
|
else {
|
|
6455
6455
|
this.#N(O);
|
|
6456
6456
|
const $ = this.#e[O];
|
|
@@ -6458,8 +6458,8 @@ function jc() {
|
|
|
6458
6458
|
if (this.#O && this.#i($)) {
|
|
6459
6459
|
$.__abortController.abort(new Error("replaced"));
|
|
6460
6460
|
const { __staleWhileFetching: _ } = $;
|
|
6461
|
-
_ !== void 0 && !v && (this.#
|
|
6462
|
-
} else v || (this.#
|
|
6461
|
+
_ !== void 0 && !v && (this.#S && this.#t?.(_, r, "set"), this.#h && this.#l?.push([_, r, "set"]));
|
|
6462
|
+
} else v || (this.#S && this.#t?.($, r, "set"), this.#h && this.#l?.push([$, r, "set"]));
|
|
6463
6463
|
if (this.#_(O), this.#T(O, L, b), this.#e[O] = f, b) {
|
|
6464
6464
|
b.set = "replace";
|
|
6465
6465
|
const _ = $ && this.#i($) ? $.__staleWhileFetching : $;
|
|
@@ -6467,7 +6467,7 @@ function jc() {
|
|
|
6467
6467
|
}
|
|
6468
6468
|
} else b && (b.set = "update");
|
|
6469
6469
|
}
|
|
6470
|
-
if (g !== 0 && !this.#d && this.#R(), this.#d && (
|
|
6470
|
+
if (g !== 0 && !this.#d && this.#R(), this.#d && (w || this.#M(O, g, y), b && this.#L(b, O)), !v && this.#h && this.#l) {
|
|
6471
6471
|
const $ = this.#l;
|
|
6472
6472
|
let _;
|
|
6473
6473
|
for (; _ = $?.shift(); )
|
|
@@ -6500,7 +6500,7 @@ function jc() {
|
|
|
6500
6500
|
}
|
|
6501
6501
|
#k(r) {
|
|
6502
6502
|
const f = this.#u, d = this.#n[f], g = this.#e[f];
|
|
6503
|
-
return this.#O && this.#i(g) ? g.__abortController.abort(new Error("evicted")) : (this.#
|
|
6503
|
+
return this.#O && this.#i(g) ? g.__abortController.abort(new Error("evicted")) : (this.#S || this.#h) && (this.#S && this.#t?.(g, d, "evict"), this.#h && this.#l?.push([g, d, "evict"])), this.#_(f), r && (this.#n[f] = void 0, this.#e[f] = void 0, this.#b.push(f)), this.#o === 1 ? (this.#u = this.#a = 0, this.#b.length = 0) : this.#u = this.#f[f], this.#r.delete(d), this.#o--, f;
|
|
6504
6504
|
}
|
|
6505
6505
|
/**
|
|
6506
6506
|
* Check if a key is in the cache, without updating the recency of use.
|
|
@@ -6548,15 +6548,15 @@ function jc() {
|
|
|
6548
6548
|
const y = f === void 0 ? void 0 : this.#e[f];
|
|
6549
6549
|
if (this.#i(y))
|
|
6550
6550
|
return y;
|
|
6551
|
-
const v = new p(), { signal:
|
|
6552
|
-
|
|
6551
|
+
const v = new p(), { signal: S } = d;
|
|
6552
|
+
S?.addEventListener("abort", () => v.abort(S.reason), {
|
|
6553
6553
|
signal: v.signal
|
|
6554
6554
|
});
|
|
6555
6555
|
const b = {
|
|
6556
6556
|
signal: v.signal,
|
|
6557
6557
|
options: d,
|
|
6558
6558
|
context: g
|
|
6559
|
-
},
|
|
6559
|
+
}, w = (I, B = !1) => {
|
|
6560
6560
|
const { aborted: F } = v.signal, D = d.ignoreFetchAbort && I !== void 0;
|
|
6561
6561
|
if (d.status && (F && !B ? (d.status.fetchAborted = !0, d.status.fetchError = v.signal.reason, D && (d.status.fetchAbortIgnored = !0)) : d.status.fetchResolved = !0), F && !D && !B)
|
|
6562
6562
|
return O(v.signal.reason);
|
|
@@ -6571,11 +6571,11 @@ function jc() {
|
|
|
6571
6571
|
}, $ = (I, B) => {
|
|
6572
6572
|
const F = this.#P?.(r, y, b);
|
|
6573
6573
|
F && F instanceof Promise && F.then((D) => I(D === void 0 ? void 0 : D), B), v.signal.addEventListener("abort", () => {
|
|
6574
|
-
(!d.ignoreFetchAbort || d.allowStaleOnFetchAbort) && (I(void 0), d.allowStaleOnFetchAbort && (I = (D) =>
|
|
6574
|
+
(!d.ignoreFetchAbort || d.allowStaleOnFetchAbort) && (I(void 0), d.allowStaleOnFetchAbort && (I = (D) => w(D, !0)));
|
|
6575
6575
|
});
|
|
6576
6576
|
};
|
|
6577
6577
|
d.status && (d.status.fetchDispatched = !0);
|
|
6578
|
-
const _ = new Promise($).then(
|
|
6578
|
+
const _ = new Promise($).then(w, L), P = Object.assign(_, {
|
|
6579
6579
|
__abortController: v,
|
|
6580
6580
|
__staleWhileFetching: y,
|
|
6581
6581
|
__returned: void 0
|
|
@@ -6596,9 +6596,9 @@ function jc() {
|
|
|
6596
6596
|
noDeleteOnStaleGet: y = this.noDeleteOnStaleGet,
|
|
6597
6597
|
// set options
|
|
6598
6598
|
ttl: v = this.ttl,
|
|
6599
|
-
noDisposeOnSet:
|
|
6599
|
+
noDisposeOnSet: S = this.noDisposeOnSet,
|
|
6600
6600
|
size: b = 0,
|
|
6601
|
-
sizeCalculation:
|
|
6601
|
+
sizeCalculation: w = this.sizeCalculation,
|
|
6602
6602
|
noUpdateTTL: L = this.noUpdateTTL,
|
|
6603
6603
|
// fetch exclusive options
|
|
6604
6604
|
noDeleteOnFetchRejection: O = this.noDeleteOnFetchRejection,
|
|
@@ -6622,9 +6622,9 @@ function jc() {
|
|
|
6622
6622
|
updateAgeOnGet: g,
|
|
6623
6623
|
noDeleteOnStaleGet: y,
|
|
6624
6624
|
ttl: v,
|
|
6625
|
-
noDisposeOnSet:
|
|
6625
|
+
noDisposeOnSet: S,
|
|
6626
6626
|
size: b,
|
|
6627
|
-
sizeCalculation:
|
|
6627
|
+
sizeCalculation: w,
|
|
6628
6628
|
noUpdateTTL: L,
|
|
6629
6629
|
noDeleteOnFetchRejection: O,
|
|
6630
6630
|
allowStaleOnFetchRejection: $,
|
|
@@ -6647,8 +6647,8 @@ function jc() {
|
|
|
6647
6647
|
const Y = this.#m(G);
|
|
6648
6648
|
if (!B && !Y)
|
|
6649
6649
|
return F && (F.fetch = "hit"), this.#N(G), g && this.#$(G), F && this.#L(F, G), T;
|
|
6650
|
-
const j = this.#x(r, G, M, I),
|
|
6651
|
-
return F && (F.fetch = Y ? "stale" : "refresh",
|
|
6650
|
+
const j = this.#x(r, G, M, I), ie = j.__staleWhileFetching !== void 0 && d;
|
|
6651
|
+
return F && (F.fetch = Y ? "stale" : "refresh", ie && Y && (F.returnedStale = !0)), ie ? j.__staleWhileFetching : j.__returned = j;
|
|
6652
6652
|
}
|
|
6653
6653
|
}
|
|
6654
6654
|
async forceFetch(r, f = {}) {
|
|
@@ -6661,10 +6661,10 @@ function jc() {
|
|
|
6661
6661
|
const d = this.#I;
|
|
6662
6662
|
if (!d)
|
|
6663
6663
|
throw new Error("no memoMethod provided to constructor");
|
|
6664
|
-
const { context: g, forceRefresh: y, ...v } = f,
|
|
6665
|
-
if (!y &&
|
|
6666
|
-
return
|
|
6667
|
-
const b = d(r,
|
|
6664
|
+
const { context: g, forceRefresh: y, ...v } = f, S = this.get(r, v);
|
|
6665
|
+
if (!y && S !== void 0)
|
|
6666
|
+
return S;
|
|
6667
|
+
const b = d(r, S, {
|
|
6668
6668
|
options: v,
|
|
6669
6669
|
context: g
|
|
6670
6670
|
});
|
|
@@ -6677,10 +6677,10 @@ function jc() {
|
|
|
6677
6677
|
* If the key is not found, get() will return `undefined`.
|
|
6678
6678
|
*/
|
|
6679
6679
|
get(r, f = {}) {
|
|
6680
|
-
const { allowStale: d = this.allowStale, updateAgeOnGet: g = this.updateAgeOnGet, noDeleteOnStaleGet: y = this.noDeleteOnStaleGet, status: v } = f,
|
|
6681
|
-
if (
|
|
6682
|
-
const b = this.#e[
|
|
6683
|
-
return v && this.#L(v,
|
|
6680
|
+
const { allowStale: d = this.allowStale, updateAgeOnGet: g = this.updateAgeOnGet, noDeleteOnStaleGet: y = this.noDeleteOnStaleGet, status: v } = f, S = this.#r.get(r);
|
|
6681
|
+
if (S !== void 0) {
|
|
6682
|
+
const b = this.#e[S], w = this.#i(b);
|
|
6683
|
+
return v && this.#L(v, S), this.#m(S) ? (v && (v.get = "stale"), w ? (v && d && b.__staleWhileFetching !== void 0 && (v.returnedStale = !0), d ? b.__staleWhileFetching : void 0) : (y || this.#A(r, "expire"), v && d && (v.returnedStale = !0), d ? b : void 0)) : (v && (v.get = "hit"), w ? b.__staleWhileFetching : (this.#N(S), g && this.#$(S), b));
|
|
6684
6684
|
} else v && (v.get = "miss");
|
|
6685
6685
|
}
|
|
6686
6686
|
#B(r, f) {
|
|
@@ -6707,15 +6707,15 @@ function jc() {
|
|
|
6707
6707
|
else {
|
|
6708
6708
|
this.#_(g);
|
|
6709
6709
|
const y = this.#e[g];
|
|
6710
|
-
if (this.#i(y) ? y.__abortController.abort(new Error("deleted")) : (this.#
|
|
6710
|
+
if (this.#i(y) ? y.__abortController.abort(new Error("deleted")) : (this.#S || this.#h) && (this.#S && this.#t?.(y, r, f), this.#h && this.#l?.push([y, r, f])), this.#r.delete(r), this.#n[g] = void 0, this.#e[g] = void 0, g === this.#a)
|
|
6711
6711
|
this.#a = this.#p[g];
|
|
6712
6712
|
else if (g === this.#u)
|
|
6713
6713
|
this.#u = this.#f[g];
|
|
6714
6714
|
else {
|
|
6715
6715
|
const v = this.#p[g];
|
|
6716
6716
|
this.#f[v] = this.#f[g];
|
|
6717
|
-
const
|
|
6718
|
-
this.#p[
|
|
6717
|
+
const S = this.#f[g];
|
|
6718
|
+
this.#p[S] = this.#p[g];
|
|
6719
6719
|
}
|
|
6720
6720
|
this.#o--, this.#b.push(g);
|
|
6721
6721
|
}
|
|
@@ -6741,10 +6741,10 @@ function jc() {
|
|
|
6741
6741
|
d.__abortController.abort(new Error("deleted"));
|
|
6742
6742
|
else {
|
|
6743
6743
|
const g = this.#n[f];
|
|
6744
|
-
this.#
|
|
6744
|
+
this.#S && this.#t?.(d, g, r), this.#h && this.#l?.push([d, g, r]);
|
|
6745
6745
|
}
|
|
6746
6746
|
}
|
|
6747
|
-
if (this.#r.clear(), this.#e.fill(void 0), this.#n.fill(void 0), this.#d && this.#
|
|
6747
|
+
if (this.#r.clear(), this.#e.fill(void 0), this.#n.fill(void 0), this.#d && this.#w && (this.#d.fill(0), this.#w.fill(0)), this.#v && this.#v.fill(0), this.#u = 0, this.#a = 0, this.#b.length = 0, this.#y = 0, this.#o = 0, this.#h && this.#l) {
|
|
6748
6748
|
const f = this.#l;
|
|
6749
6749
|
let d;
|
|
6750
6750
|
for (; d = f?.shift(); )
|
|
@@ -6752,10 +6752,10 @@ function jc() {
|
|
|
6752
6752
|
}
|
|
6753
6753
|
}
|
|
6754
6754
|
}
|
|
6755
|
-
return
|
|
6755
|
+
return Be.LRUCache = u, Be;
|
|
6756
6756
|
}
|
|
6757
6757
|
var yi, Bs;
|
|
6758
|
-
function
|
|
6758
|
+
function Hc() {
|
|
6759
6759
|
if (Bs) return yi;
|
|
6760
6760
|
Bs = 1;
|
|
6761
6761
|
const e = (...s) => s.every((c) => c) ? s.join("") : "", t = (s) => s ? encodeURIComponent(s) : "", i = (s) => s.toLowerCase().replace(/^\W+/g, "").replace(/(?<!\W)\W+$/, "").replace(/\//g, "").replace(/\W+/g, "-"), l = {
|
|
@@ -6876,7 +6876,7 @@ var bi, Gs;
|
|
|
6876
6876
|
function jo() {
|
|
6877
6877
|
if (Gs) return bi;
|
|
6878
6878
|
Gs = 1;
|
|
6879
|
-
const e =
|
|
6879
|
+
const e = Pa, t = (s, c, h) => {
|
|
6880
6880
|
const o = s.indexOf(h);
|
|
6881
6881
|
return s.lastIndexOf(c, o > -1 ? o : 1 / 0);
|
|
6882
6882
|
}, i = (s) => {
|
|
@@ -6900,7 +6900,7 @@ function jo() {
|
|
|
6900
6900
|
}, bi;
|
|
6901
6901
|
}
|
|
6902
6902
|
var vi, qs;
|
|
6903
|
-
function
|
|
6903
|
+
function Vc() {
|
|
6904
6904
|
if (qs) return vi;
|
|
6905
6905
|
qs = 1;
|
|
6906
6906
|
const e = jo(), t = (i) => {
|
|
@@ -6925,8 +6925,8 @@ function Hc() {
|
|
|
6925
6925
|
let y = h.pathname.startsWith("/") ? h.pathname.slice(1) : h.pathname;
|
|
6926
6926
|
const v = y.indexOf("@");
|
|
6927
6927
|
v > -1 && (y = y.slice(v + 1));
|
|
6928
|
-
const
|
|
6929
|
-
|
|
6928
|
+
const S = y.lastIndexOf("/");
|
|
6929
|
+
S > -1 ? (f = decodeURIComponent(y.slice(0, S)), f || (f = null), d = decodeURIComponent(y.slice(S + 1))) : d = decodeURIComponent(y), d.endsWith(".git") && (d = d.slice(0, -4)), h.hash && (r = decodeURIComponent(h.hash.slice(1))), g = "shortcut";
|
|
6930
6930
|
} else {
|
|
6931
6931
|
if (!u.protocols.includes(h.protocol))
|
|
6932
6932
|
return;
|
|
@@ -6943,11 +6943,11 @@ function Hc() {
|
|
|
6943
6943
|
return [n, f, a, d, r, g, l];
|
|
6944
6944
|
}, vi;
|
|
6945
6945
|
}
|
|
6946
|
-
var
|
|
6947
|
-
function
|
|
6948
|
-
if (js) return
|
|
6946
|
+
var wi, js;
|
|
6947
|
+
function Wc() {
|
|
6948
|
+
if (js) return wi;
|
|
6949
6949
|
js = 1;
|
|
6950
|
-
const { LRUCache: e } = /* @__PURE__ */
|
|
6950
|
+
const { LRUCache: e } = /* @__PURE__ */ Uc(), t = Hc(), i = Vc(), l = jo(), p = new e({ max: 1e3 });
|
|
6951
6951
|
function s(h) {
|
|
6952
6952
|
try {
|
|
6953
6953
|
const {
|
|
@@ -7080,12 +7080,12 @@ function Vc() {
|
|
|
7080
7080
|
}
|
|
7081
7081
|
for (const [h, o] of Object.entries(t))
|
|
7082
7082
|
c.addHost(h, o);
|
|
7083
|
-
return
|
|
7083
|
+
return wi = c, wi;
|
|
7084
7084
|
}
|
|
7085
|
-
var
|
|
7086
|
-
function
|
|
7087
|
-
if (Us) return
|
|
7088
|
-
Us = 1,
|
|
7085
|
+
var Si, Us;
|
|
7086
|
+
function Yc() {
|
|
7087
|
+
if (Us) return Si;
|
|
7088
|
+
Us = 1, Si = e;
|
|
7089
7089
|
function e(t) {
|
|
7090
7090
|
if (!t || t === "ERROR: No README data found!")
|
|
7091
7091
|
return;
|
|
@@ -7100,18 +7100,18 @@ function Wc() {
|
|
|
7100
7100
|
p++;
|
|
7101
7101
|
return t.slice(i, p).join(" ").trim();
|
|
7102
7102
|
}
|
|
7103
|
-
return
|
|
7103
|
+
return Si;
|
|
7104
7104
|
}
|
|
7105
|
-
const
|
|
7106
|
-
topLevel:
|
|
7107
|
-
bugs:
|
|
7108
|
-
script:
|
|
7105
|
+
const Kc = { dependancies: "dependencies", dependecies: "dependencies", depdenencies: "dependencies", devEependencies: "devDependencies", depends: "dependencies", "dev-dependencies": "devDependencies", devDependences: "devDependencies", devDepenencies: "devDependencies", devdependencies: "devDependencies", repostitory: "repository", repo: "repository", prefereGlobal: "preferGlobal", hompage: "homepage", hampage: "homepage", autohr: "author", autor: "author", contributers: "contributors", publicationConfig: "publishConfig", script: "scripts" }, Jc = { web: "url", name: "url" }, zc = { server: "start", tests: "test" }, Xc = {
|
|
7106
|
+
topLevel: Kc,
|
|
7107
|
+
bugs: Jc,
|
|
7108
|
+
script: zc
|
|
7109
7109
|
};
|
|
7110
7110
|
var Ei, Hs;
|
|
7111
|
-
function
|
|
7111
|
+
function Qc() {
|
|
7112
7112
|
if (Hs) return Ei;
|
|
7113
7113
|
Hs = 1;
|
|
7114
|
-
var { URL: e } =
|
|
7114
|
+
var { URL: e } = Na, t = Rc(), i = Mc(), l = jc(), p = Wc(), { isBuiltin: s } = Ia, c = ["dependencies", "devDependencies", "optionalDependencies"], h = Yc(), o = Xc, m = (b) => b.includes("@") && b.indexOf("@") < b.lastIndexOf(".");
|
|
7115
7115
|
Ei = {
|
|
7116
7116
|
// default warning function
|
|
7117
7117
|
warn: function() {
|
|
@@ -7123,16 +7123,16 @@ function Xc() {
|
|
|
7123
7123
|
type: "git",
|
|
7124
7124
|
url: b.repository
|
|
7125
7125
|
});
|
|
7126
|
-
var
|
|
7127
|
-
if (
|
|
7128
|
-
var L = p.fromUrl(
|
|
7129
|
-
L && (
|
|
7126
|
+
var w = b.repository.url || "";
|
|
7127
|
+
if (w) {
|
|
7128
|
+
var L = p.fromUrl(w);
|
|
7129
|
+
L && (w = b.repository.url = L.getDefaultRepresentation() === "shortcut" ? L.https() : L.toString());
|
|
7130
7130
|
}
|
|
7131
|
-
|
|
7131
|
+
w.match(/github.com\/[^/]+\/[^/]+\.git\.git$/) && this.warn("brokenGitUrl", w);
|
|
7132
7132
|
},
|
|
7133
7133
|
fixTypos: function(b) {
|
|
7134
|
-
Object.keys(o.topLevel).forEach(function(
|
|
7135
|
-
Object.prototype.hasOwnProperty.call(b,
|
|
7134
|
+
Object.keys(o.topLevel).forEach(function(w) {
|
|
7135
|
+
Object.prototype.hasOwnProperty.call(b, w) && this.warn("typo", w, o.topLevel[w]);
|
|
7136
7136
|
}, this);
|
|
7137
7137
|
},
|
|
7138
7138
|
fixScriptsField: function(b) {
|
|
@@ -7141,44 +7141,44 @@ function Xc() {
|
|
|
7141
7141
|
this.warn("nonObjectScripts"), delete b.scripts;
|
|
7142
7142
|
return;
|
|
7143
7143
|
}
|
|
7144
|
-
Object.keys(b.scripts).forEach(function(
|
|
7145
|
-
typeof b.scripts[
|
|
7144
|
+
Object.keys(b.scripts).forEach(function(w) {
|
|
7145
|
+
typeof b.scripts[w] != "string" ? (this.warn("nonStringScript"), delete b.scripts[w]) : o.script[w] && !b.scripts[o.script[w]] && this.warn("typo", w, o.script[w], "scripts");
|
|
7146
7146
|
}, this);
|
|
7147
7147
|
}
|
|
7148
7148
|
},
|
|
7149
7149
|
fixFilesField: function(b) {
|
|
7150
|
-
var
|
|
7151
|
-
|
|
7150
|
+
var w = b.files;
|
|
7151
|
+
w && !Array.isArray(w) ? (this.warn("nonArrayFiles"), delete b.files) : b.files && (b.files = b.files.filter(function(L) {
|
|
7152
7152
|
return !L || typeof L != "string" ? (this.warn("invalidFilename", L), !1) : !0;
|
|
7153
7153
|
}, this));
|
|
7154
7154
|
},
|
|
7155
7155
|
fixBinField: function(b) {
|
|
7156
7156
|
if (b.bin && typeof b.bin == "string") {
|
|
7157
|
-
var
|
|
7158
|
-
(L = b.name.match(/^@[^/]+[/](.*)$/)) ?
|
|
7157
|
+
var w = {}, L;
|
|
7158
|
+
(L = b.name.match(/^@[^/]+[/](.*)$/)) ? w[L[1]] = b.bin : w[b.name] = b.bin, b.bin = w;
|
|
7159
7159
|
}
|
|
7160
7160
|
},
|
|
7161
7161
|
fixManField: function(b) {
|
|
7162
7162
|
b.man && typeof b.man == "string" && (b.man = [b.man]);
|
|
7163
7163
|
},
|
|
7164
7164
|
fixBundleDependenciesField: function(b) {
|
|
7165
|
-
var
|
|
7166
|
-
b[
|
|
7165
|
+
var w = "bundledDependencies", L = "bundleDependencies";
|
|
7166
|
+
b[w] && !b[L] && (b[L] = b[w], delete b[w]), b[L] && !Array.isArray(b[L]) ? (this.warn("nonArrayBundleDependencies"), delete b[L]) : b[L] && (b[L] = b[L].filter(function(O) {
|
|
7167
7167
|
return !O || typeof O != "string" ? (this.warn("nonStringBundleDependency", O), !1) : (b.dependencies || (b.dependencies = {}), Object.prototype.hasOwnProperty.call(b.dependencies, O) || (this.warn("nonDependencyBundleDependency", O), b.dependencies[O] = "*"), !0);
|
|
7168
7168
|
}, this));
|
|
7169
7169
|
},
|
|
7170
7170
|
fixDependencies: function(b) {
|
|
7171
|
-
v(b, this.warn), g(b, this.warn), this.fixBundleDependenciesField(b), ["dependencies", "devDependencies"].forEach(function(
|
|
7172
|
-
if (
|
|
7173
|
-
if (!b[
|
|
7174
|
-
this.warn("nonObjectDependencies",
|
|
7171
|
+
v(b, this.warn), g(b, this.warn), this.fixBundleDependenciesField(b), ["dependencies", "devDependencies"].forEach(function(w) {
|
|
7172
|
+
if (w in b) {
|
|
7173
|
+
if (!b[w] || typeof b[w] != "object") {
|
|
7174
|
+
this.warn("nonObjectDependencies", w), delete b[w];
|
|
7175
7175
|
return;
|
|
7176
7176
|
}
|
|
7177
|
-
Object.keys(b[
|
|
7178
|
-
var O = b[
|
|
7179
|
-
typeof O != "string" && (this.warn("nonStringDependency", L, JSON.stringify(O)), delete b[
|
|
7180
|
-
var $ = p.fromUrl(b[
|
|
7181
|
-
$ && (b[
|
|
7177
|
+
Object.keys(b[w]).forEach(function(L) {
|
|
7178
|
+
var O = b[w][L];
|
|
7179
|
+
typeof O != "string" && (this.warn("nonStringDependency", L, JSON.stringify(O)), delete b[w][L]);
|
|
7180
|
+
var $ = p.fromUrl(b[w][L]);
|
|
7181
|
+
$ && (b[w][L] = $.toString());
|
|
7182
7182
|
}, this);
|
|
7183
7183
|
}
|
|
7184
7184
|
}, this);
|
|
@@ -7187,12 +7187,12 @@ function Xc() {
|
|
|
7187
7187
|
b.modules && (this.warn("deprecatedModules"), delete b.modules);
|
|
7188
7188
|
},
|
|
7189
7189
|
fixKeywordsField: function(b) {
|
|
7190
|
-
typeof b.keywords == "string" && (b.keywords = b.keywords.split(/,\s+/)), b.keywords && !Array.isArray(b.keywords) ? (delete b.keywords, this.warn("nonArrayKeywords")) : b.keywords && (b.keywords = b.keywords.filter(function(
|
|
7191
|
-
return typeof
|
|
7190
|
+
typeof b.keywords == "string" && (b.keywords = b.keywords.split(/,\s+/)), b.keywords && !Array.isArray(b.keywords) ? (delete b.keywords, this.warn("nonArrayKeywords")) : b.keywords && (b.keywords = b.keywords.filter(function(w) {
|
|
7191
|
+
return typeof w != "string" || !w ? (this.warn("nonStringKeyword"), !1) : !0;
|
|
7192
7192
|
}, this));
|
|
7193
7193
|
},
|
|
7194
|
-
fixVersionField: function(b,
|
|
7195
|
-
var L = !
|
|
7194
|
+
fixVersionField: function(b, w) {
|
|
7195
|
+
var L = !w;
|
|
7196
7196
|
if (!b.version)
|
|
7197
7197
|
return b.version = "", !0;
|
|
7198
7198
|
if (!t(b.version, L))
|
|
@@ -7202,16 +7202,16 @@ function Xc() {
|
|
|
7202
7202
|
fixPeople: function(b) {
|
|
7203
7203
|
r(b, f), r(b, d);
|
|
7204
7204
|
},
|
|
7205
|
-
fixNameField: function(b,
|
|
7206
|
-
typeof
|
|
7207
|
-
var L =
|
|
7205
|
+
fixNameField: function(b, w) {
|
|
7206
|
+
typeof w == "boolean" ? w = { strict: w } : typeof w > "u" && (w = {});
|
|
7207
|
+
var L = w.strict;
|
|
7208
7208
|
if (!b.name && !L) {
|
|
7209
7209
|
b.name = "";
|
|
7210
7210
|
return;
|
|
7211
7211
|
}
|
|
7212
7212
|
if (typeof b.name != "string")
|
|
7213
7213
|
throw new Error("name field must be a string.");
|
|
7214
|
-
L || (b.name = b.name.trim()), a(b.name, L,
|
|
7214
|
+
L || (b.name = b.name.trim()), a(b.name, L, w.allowLegacyCase), s(b.name) && this.warn("conflictingName", b.name);
|
|
7215
7215
|
},
|
|
7216
7216
|
fixDescriptionField: function(b) {
|
|
7217
7217
|
b.description && typeof b.description != "string" && (this.warn("nonStringDescription"), delete b.description), b.readme && !b.description && (b.description = h(b.readme)), b.description === void 0 && delete b.description, b.description || this.warn("missingDescription");
|
|
@@ -7221,13 +7221,13 @@ function Xc() {
|
|
|
7221
7221
|
},
|
|
7222
7222
|
fixBugsField: function(b) {
|
|
7223
7223
|
if (!b.bugs && b.repository && b.repository.url) {
|
|
7224
|
-
var
|
|
7225
|
-
|
|
7224
|
+
var w = p.fromUrl(b.repository.url);
|
|
7225
|
+
w && w.bugs() && (b.bugs = { url: w.bugs() });
|
|
7226
7226
|
} else if (b.bugs) {
|
|
7227
7227
|
if (typeof b.bugs == "string")
|
|
7228
7228
|
m(b.bugs) ? b.bugs = { email: b.bugs } : e.canParse(b.bugs) ? b.bugs = { url: b.bugs } : this.warn("nonEmailUrlBugsString");
|
|
7229
7229
|
else {
|
|
7230
|
-
|
|
7230
|
+
S(b.bugs, this.warn);
|
|
7231
7231
|
var L = b.bugs;
|
|
7232
7232
|
b.bugs = {}, L.url && (e.canParse(L.url) ? b.bugs.url = L.url : this.warn("nonUrlBugsUrlField")), L.email && (typeof L.email == "string" && m(L.email) ? b.bugs.email = L.email : this.warn("nonEmailBugsEmailField"));
|
|
7233
7233
|
}
|
|
@@ -7236,8 +7236,8 @@ function Xc() {
|
|
|
7236
7236
|
},
|
|
7237
7237
|
fixHomepageField: function(b) {
|
|
7238
7238
|
if (!b.homepage && b.repository && b.repository.url) {
|
|
7239
|
-
var
|
|
7240
|
-
|
|
7239
|
+
var w = p.fromUrl(b.repository.url);
|
|
7240
|
+
w && w.docs() && (b.homepage = w.docs());
|
|
7241
7241
|
}
|
|
7242
7242
|
if (b.homepage) {
|
|
7243
7243
|
if (typeof b.homepage != "string")
|
|
@@ -7246,60 +7246,60 @@ function Xc() {
|
|
|
7246
7246
|
}
|
|
7247
7247
|
},
|
|
7248
7248
|
fixLicenseField: function(b) {
|
|
7249
|
-
const
|
|
7250
|
-
if (!
|
|
7249
|
+
const w = b.license || b.licence;
|
|
7250
|
+
if (!w)
|
|
7251
7251
|
return this.warn("missingLicense");
|
|
7252
|
-
if (typeof
|
|
7252
|
+
if (typeof w != "string" || w.length < 1 || w.trim() === "")
|
|
7253
7253
|
return this.warn("invalidLicense");
|
|
7254
|
-
if (!l(
|
|
7254
|
+
if (!l(w).validForNewPackages)
|
|
7255
7255
|
return this.warn("invalidLicense");
|
|
7256
7256
|
}
|
|
7257
7257
|
};
|
|
7258
7258
|
function n(b) {
|
|
7259
7259
|
if (b.charAt(0) !== "@")
|
|
7260
7260
|
return !1;
|
|
7261
|
-
var
|
|
7262
|
-
return
|
|
7261
|
+
var w = b.slice(1).split("/");
|
|
7262
|
+
return w.length !== 2 ? !1 : w[0] && w[1] && w[0] === encodeURIComponent(w[0]) && w[1] === encodeURIComponent(w[1]);
|
|
7263
7263
|
}
|
|
7264
7264
|
function u(b) {
|
|
7265
7265
|
return !b.match(/[/@\s+%:]/) && b === encodeURIComponent(b);
|
|
7266
7266
|
}
|
|
7267
|
-
function a(b,
|
|
7268
|
-
if (b.charAt(0) === "." || !(n(b) || u(b)) ||
|
|
7267
|
+
function a(b, w, L) {
|
|
7268
|
+
if (b.charAt(0) === "." || !(n(b) || u(b)) || w && !L && b !== b.toLowerCase() || b.toLowerCase() === "node_modules" || b.toLowerCase() === "favicon.ico")
|
|
7269
7269
|
throw new Error("Invalid name: " + JSON.stringify(b));
|
|
7270
7270
|
}
|
|
7271
|
-
function r(b,
|
|
7272
|
-
return b.author && (b.author =
|
|
7273
|
-
Array.isArray(b[L]) && (b[L] = b[L].map(
|
|
7271
|
+
function r(b, w) {
|
|
7272
|
+
return b.author && (b.author = w(b.author)), ["maintainers", "contributors"].forEach(function(L) {
|
|
7273
|
+
Array.isArray(b[L]) && (b[L] = b[L].map(w));
|
|
7274
7274
|
}), b;
|
|
7275
7275
|
}
|
|
7276
7276
|
function f(b) {
|
|
7277
7277
|
if (typeof b == "string")
|
|
7278
7278
|
return b;
|
|
7279
|
-
var
|
|
7280
|
-
return
|
|
7279
|
+
var w = b.name || "", L = b.url || b.web, O = L ? " (" + L + ")" : "", $ = b.email || b.mail, _ = $ ? " <" + $ + ">" : "";
|
|
7280
|
+
return w + _ + O;
|
|
7281
7281
|
}
|
|
7282
7282
|
function d(b) {
|
|
7283
7283
|
if (typeof b != "string")
|
|
7284
7284
|
return b;
|
|
7285
|
-
var
|
|
7286
|
-
return
|
|
7285
|
+
var w = b.match(/^([^(<]+)/), L = b.match(/\(([^()]+)\)/), O = b.match(/<([^<>]+)>/), $ = {};
|
|
7286
|
+
return w && w[0].trim() && ($.name = w[0].trim()), O && ($.email = O[1]), L && ($.url = L[1]), $;
|
|
7287
7287
|
}
|
|
7288
7288
|
function g(b) {
|
|
7289
|
-
var
|
|
7290
|
-
if (
|
|
7289
|
+
var w = b.optionalDependencies;
|
|
7290
|
+
if (w) {
|
|
7291
7291
|
var L = b.dependencies || {};
|
|
7292
|
-
Object.keys(
|
|
7293
|
-
L[O] =
|
|
7292
|
+
Object.keys(w).forEach(function(O) {
|
|
7293
|
+
L[O] = w[O];
|
|
7294
7294
|
}), b.dependencies = L;
|
|
7295
7295
|
}
|
|
7296
7296
|
}
|
|
7297
|
-
function y(b,
|
|
7297
|
+
function y(b, w, L) {
|
|
7298
7298
|
if (!b)
|
|
7299
7299
|
return {};
|
|
7300
7300
|
if (typeof b == "string" && (b = b.trim().split(/[\n\r\s\t ,]+/)), !Array.isArray(b))
|
|
7301
7301
|
return b;
|
|
7302
|
-
L("deprecatedArrayDependencies",
|
|
7302
|
+
L("deprecatedArrayDependencies", w);
|
|
7303
7303
|
var O = {};
|
|
7304
7304
|
return b.filter(function($) {
|
|
7305
7305
|
return typeof $ == "string";
|
|
@@ -7309,53 +7309,53 @@ function Xc() {
|
|
|
7309
7309
|
P = P.trim(), P = P.replace(/^@/, ""), O[_] = P;
|
|
7310
7310
|
}), O;
|
|
7311
7311
|
}
|
|
7312
|
-
function v(b,
|
|
7312
|
+
function v(b, w) {
|
|
7313
7313
|
c.forEach(function(L) {
|
|
7314
|
-
b[L] && (b[L] = y(b[L], L,
|
|
7314
|
+
b[L] && (b[L] = y(b[L], L, w));
|
|
7315
7315
|
});
|
|
7316
7316
|
}
|
|
7317
|
-
function
|
|
7317
|
+
function S(b, w) {
|
|
7318
7318
|
b && Object.keys(b).forEach(function(L) {
|
|
7319
|
-
o.bugs[L] && (
|
|
7319
|
+
o.bugs[L] && (w("typo", L, o.bugs[L], "bugs"), b[o.bugs[L]] = b[L], delete b[L]);
|
|
7320
7320
|
});
|
|
7321
7321
|
}
|
|
7322
7322
|
return Ei;
|
|
7323
7323
|
}
|
|
7324
|
-
const
|
|
7325
|
-
repositories:
|
|
7326
|
-
missingRepository:
|
|
7327
|
-
brokenGitUrl:
|
|
7328
|
-
nonObjectScripts:
|
|
7329
|
-
nonStringScript:
|
|
7330
|
-
nonArrayFiles:
|
|
7331
|
-
invalidFilename:
|
|
7332
|
-
nonArrayBundleDependencies:
|
|
7333
|
-
nonStringBundleDependency:
|
|
7334
|
-
nonDependencyBundleDependency:
|
|
7335
|
-
nonObjectDependencies:
|
|
7336
|
-
nonStringDependency:
|
|
7337
|
-
deprecatedArrayDependencies:
|
|
7338
|
-
deprecatedModules:
|
|
7339
|
-
nonArrayKeywords:
|
|
7340
|
-
nonStringKeyword:
|
|
7341
|
-
conflictingName:
|
|
7342
|
-
nonStringDescription:
|
|
7343
|
-
missingDescription:
|
|
7344
|
-
missingReadme:
|
|
7345
|
-
missingLicense:
|
|
7346
|
-
nonEmailUrlBugsString:
|
|
7324
|
+
const Zc = "'repositories' (plural) Not supported. Please pick one as the 'repository' field", eu = "No repository field.", tu = "Probably broken git url: %s", iu = "scripts must be an object", nu = "script values must be string commands", su = "Invalid 'files' member", ru = "Invalid filename in 'files' list: %s", ou = "Invalid 'bundleDependencies' list. Must be array of package names", au = "Invalid bundleDependencies member: %s", lu = "Non-dependency in bundleDependencies: %s", cu = "%s field must be an object", uu = "Invalid dependency: %s %s", fu = "specifying %s as array is deprecated", hu = "modules field is deprecated", pu = "keywords should be an array of strings", du = "keywords should be an array of strings", mu = "%s is also the name of a node core module.", gu = "'description' field should be a string", yu = "No description", bu = "No README data", vu = "No license field.", wu = "Bug string field must be url, email, or {email,url}", Su = "bugs.url field must be a string url. Deleted.", Eu = "bugs.email field must be a string email. Deleted.", Cu = "Normalized value of bugs field is an empty object. Deleted.", Au = "homepage field must be a string url. Deleted.", Lu = "license should be a valid SPDX license expression", Ou = "%s should probably be %s.", $u = {
|
|
7325
|
+
repositories: Zc,
|
|
7326
|
+
missingRepository: eu,
|
|
7327
|
+
brokenGitUrl: tu,
|
|
7328
|
+
nonObjectScripts: iu,
|
|
7329
|
+
nonStringScript: nu,
|
|
7330
|
+
nonArrayFiles: su,
|
|
7331
|
+
invalidFilename: ru,
|
|
7332
|
+
nonArrayBundleDependencies: ou,
|
|
7333
|
+
nonStringBundleDependency: au,
|
|
7334
|
+
nonDependencyBundleDependency: lu,
|
|
7335
|
+
nonObjectDependencies: cu,
|
|
7336
|
+
nonStringDependency: uu,
|
|
7337
|
+
deprecatedArrayDependencies: fu,
|
|
7338
|
+
deprecatedModules: hu,
|
|
7339
|
+
nonArrayKeywords: pu,
|
|
7340
|
+
nonStringKeyword: du,
|
|
7341
|
+
conflictingName: mu,
|
|
7342
|
+
nonStringDescription: gu,
|
|
7343
|
+
missingDescription: yu,
|
|
7344
|
+
missingReadme: bu,
|
|
7345
|
+
missingLicense: vu,
|
|
7346
|
+
nonEmailUrlBugsString: wu,
|
|
7347
7347
|
nonUrlBugsUrlField: Su,
|
|
7348
|
-
nonEmailBugsEmailField:
|
|
7349
|
-
emptyNormalizedBugs:
|
|
7350
|
-
nonUrlHomepage:
|
|
7351
|
-
invalidLicense:
|
|
7352
|
-
typo:
|
|
7348
|
+
nonEmailBugsEmailField: Eu,
|
|
7349
|
+
emptyNormalizedBugs: Cu,
|
|
7350
|
+
nonUrlHomepage: Au,
|
|
7351
|
+
invalidLicense: Lu,
|
|
7352
|
+
typo: Ou
|
|
7353
7353
|
};
|
|
7354
7354
|
var Ci, Vs;
|
|
7355
|
-
function
|
|
7355
|
+
function _u() {
|
|
7356
7356
|
if (Vs) return Ci;
|
|
7357
7357
|
Vs = 1;
|
|
7358
|
-
var e =
|
|
7358
|
+
var e = $a, t = $u;
|
|
7359
7359
|
Ci = function() {
|
|
7360
7360
|
var l = Array.prototype.slice.call(arguments, 0), p = l.shift();
|
|
7361
7361
|
if (p === "typo")
|
|
@@ -7369,12 +7369,12 @@ function $u() {
|
|
|
7369
7369
|
return Ci;
|
|
7370
7370
|
}
|
|
7371
7371
|
var Ai, Ws;
|
|
7372
|
-
function
|
|
7372
|
+
function Nu() {
|
|
7373
7373
|
if (Ws) return Ai;
|
|
7374
7374
|
Ws = 1, Ai = s;
|
|
7375
|
-
var e =
|
|
7375
|
+
var e = Qc();
|
|
7376
7376
|
s.fixer = e;
|
|
7377
|
-
var t =
|
|
7377
|
+
var t = _u(), i = [
|
|
7378
7378
|
"name",
|
|
7379
7379
|
"version",
|
|
7380
7380
|
"description",
|
|
@@ -7406,8 +7406,8 @@ function _u() {
|
|
|
7406
7406
|
}
|
|
7407
7407
|
return Ai;
|
|
7408
7408
|
}
|
|
7409
|
-
var
|
|
7410
|
-
const
|
|
7409
|
+
var Pu = Nu();
|
|
7410
|
+
const Iu = /* @__PURE__ */ Nn(Pu);
|
|
7411
7411
|
var W = {}, Li = {}, Oi = {}, te = {}, Ys;
|
|
7412
7412
|
function H() {
|
|
7413
7413
|
if (Ys) return te;
|
|
@@ -7909,7 +7909,7 @@ function Dt() {
|
|
|
7909
7909
|
}
|
|
7910
7910
|
return _i.Alias = s, _i;
|
|
7911
7911
|
}
|
|
7912
|
-
var
|
|
7912
|
+
var Ge = {}, Ti = {}, gt = {}, tr;
|
|
7913
7913
|
function ee() {
|
|
7914
7914
|
if (tr) return gt;
|
|
7915
7915
|
tr = 1;
|
|
@@ -7975,7 +7975,7 @@ function Ft() {
|
|
|
7975
7975
|
}
|
|
7976
7976
|
var nr;
|
|
7977
7977
|
function Un() {
|
|
7978
|
-
if (nr) return
|
|
7978
|
+
if (nr) return Ge;
|
|
7979
7979
|
nr = 1;
|
|
7980
7980
|
var e = Ft(), t = H(), i = jn();
|
|
7981
7981
|
function l(c, h, o) {
|
|
@@ -8094,11 +8094,11 @@ function Un() {
|
|
|
8094
8094
|
}
|
|
8095
8095
|
}
|
|
8096
8096
|
};
|
|
8097
|
-
return
|
|
8097
|
+
return Ge.Collection = s, Ge.collectionFromPath = l, Ge.isEmptyPath = p, Ge;
|
|
8098
8098
|
}
|
|
8099
|
-
var yt = {}, ki = {}, bt = {},
|
|
8099
|
+
var yt = {}, ki = {}, bt = {}, qe = {}, sr;
|
|
8100
8100
|
function Bt() {
|
|
8101
|
-
if (sr) return
|
|
8101
|
+
if (sr) return qe;
|
|
8102
8102
|
sr = 1;
|
|
8103
8103
|
const e = (l) => l.replace(/^(?!$)(?: $)?/gm, "#");
|
|
8104
8104
|
function t(l, p) {
|
|
@@ -8108,10 +8108,10 @@ function Bt() {
|
|
|
8108
8108
|
`) ? t(s, p) : s.includes(`
|
|
8109
8109
|
`) ? `
|
|
8110
8110
|
` + t(s, p) : (l.endsWith(" ") ? "" : " ") + s;
|
|
8111
|
-
return
|
|
8111
|
+
return qe.indentComment = t, qe.lineComment = i, qe.stringifyComment = e, qe;
|
|
8112
8112
|
}
|
|
8113
8113
|
var xi = {}, Ie = {}, rr;
|
|
8114
|
-
function
|
|
8114
|
+
function Tu() {
|
|
8115
8115
|
if (rr) return Ie;
|
|
8116
8116
|
rr = 1;
|
|
8117
8117
|
const e = "flow", t = "block", i = "quoted";
|
|
@@ -8125,11 +8125,11 @@ function Iu() {
|
|
|
8125
8125
|
const f = [], d = {};
|
|
8126
8126
|
let g = m - c.length;
|
|
8127
8127
|
typeof o == "number" && (o > m - Math.max(2, n) ? f.push(0) : g = m - o);
|
|
8128
|
-
let y, v,
|
|
8128
|
+
let y, v, S = !1, b = -1, w = -1, L = -1;
|
|
8129
8129
|
h === t && (b = p(s, b, c.length), b !== -1 && (g = b + r));
|
|
8130
8130
|
for (let $; $ = s[b += 1]; ) {
|
|
8131
8131
|
if (h === i && $ === "\\") {
|
|
8132
|
-
switch (
|
|
8132
|
+
switch (w = b, s[b + 1]) {
|
|
8133
8133
|
case "x":
|
|
8134
8134
|
b += 3;
|
|
8135
8135
|
break;
|
|
@@ -8159,17 +8159,17 @@ function Iu() {
|
|
|
8159
8159
|
f.push(y), g = y + r, y = void 0;
|
|
8160
8160
|
else if (h === i) {
|
|
8161
8161
|
for (; v === " " || v === " "; )
|
|
8162
|
-
v = $, $ = s[b += 1],
|
|
8163
|
-
const _ = b > L + 1 ? b - 2 :
|
|
8162
|
+
v = $, $ = s[b += 1], S = !0;
|
|
8163
|
+
const _ = b > L + 1 ? b - 2 : w - 1;
|
|
8164
8164
|
if (d[_])
|
|
8165
8165
|
return s;
|
|
8166
8166
|
f.push(_), d[_] = !0, g = _ + r, y = void 0;
|
|
8167
8167
|
} else
|
|
8168
|
-
|
|
8168
|
+
S = !0;
|
|
8169
8169
|
}
|
|
8170
8170
|
v = $;
|
|
8171
8171
|
}
|
|
8172
|
-
if (
|
|
8172
|
+
if (S && a && a(), f.length === 0)
|
|
8173
8173
|
return s;
|
|
8174
8174
|
u && u();
|
|
8175
8175
|
let O = s.slice(0, f[0]);
|
|
@@ -8201,7 +8201,7 @@ var or;
|
|
|
8201
8201
|
function Gt() {
|
|
8202
8202
|
if (or) return xi;
|
|
8203
8203
|
or = 1;
|
|
8204
|
-
var e = ee(), t =
|
|
8204
|
+
var e = ee(), t = Tu();
|
|
8205
8205
|
const i = (a, r) => ({
|
|
8206
8206
|
indentAtStart: r ? a.indent.length : a.indentAtStart,
|
|
8207
8207
|
lineWidth: a.options.lineWidth,
|
|
@@ -8228,13 +8228,13 @@ function Gt() {
|
|
|
8228
8228
|
if (r.options.doubleQuotedAsJSON)
|
|
8229
8229
|
return f;
|
|
8230
8230
|
const { implicitKey: d } = r, g = r.options.doubleQuotedMinMultiLineLength, y = r.indent || (l(a) ? " " : "");
|
|
8231
|
-
let v = "",
|
|
8232
|
-
for (let b = 0,
|
|
8233
|
-
if (
|
|
8231
|
+
let v = "", S = 0;
|
|
8232
|
+
for (let b = 0, w = f[b]; w; w = f[++b])
|
|
8233
|
+
if (w === " " && f[b + 1] === "\\" && f[b + 2] === "n" && (v += f.slice(S, b) + "\\ ", b += 1, S = b, w = "\\"), w === "\\")
|
|
8234
8234
|
switch (f[b + 1]) {
|
|
8235
8235
|
case "u":
|
|
8236
8236
|
{
|
|
8237
|
-
v += f.slice(
|
|
8237
|
+
v += f.slice(S, b);
|
|
8238
8238
|
const L = f.substr(b + 2, 4);
|
|
8239
8239
|
switch (L) {
|
|
8240
8240
|
case "0000":
|
|
@@ -8264,25 +8264,25 @@ function Gt() {
|
|
|
8264
8264
|
default:
|
|
8265
8265
|
L.substr(0, 2) === "00" ? v += "\\x" + L.substr(2) : v += f.substr(b, 6);
|
|
8266
8266
|
}
|
|
8267
|
-
b += 5,
|
|
8267
|
+
b += 5, S = b + 1;
|
|
8268
8268
|
}
|
|
8269
8269
|
break;
|
|
8270
8270
|
case "n":
|
|
8271
8271
|
if (d || f[b + 2] === '"' || f.length < g)
|
|
8272
8272
|
b += 1;
|
|
8273
8273
|
else {
|
|
8274
|
-
for (v += f.slice(
|
|
8274
|
+
for (v += f.slice(S, b) + `
|
|
8275
8275
|
|
|
8276
8276
|
`; f[b + 2] === "\\" && f[b + 3] === "n" && f[b + 4] !== '"'; )
|
|
8277
8277
|
v += `
|
|
8278
8278
|
`, b += 2;
|
|
8279
|
-
v += y, f[b + 2] === " " && (v += "\\"), b += 1,
|
|
8279
|
+
v += y, f[b + 2] === " " && (v += "\\"), b += 1, S = b + 1;
|
|
8280
8280
|
}
|
|
8281
8281
|
break;
|
|
8282
8282
|
default:
|
|
8283
8283
|
b += 1;
|
|
8284
8284
|
}
|
|
8285
|
-
return v =
|
|
8285
|
+
return v = S ? v + f.slice(S) : f, d ? v : t.foldFlowLines(v, y, t.FOLD_QUOTED, i(r, !1));
|
|
8286
8286
|
}
|
|
8287
8287
|
function c(a, r) {
|
|
8288
8288
|
if (r.options.singleQuote === !1 || r.implicitKey && a.includes(`
|
|
@@ -8313,10 +8313,10 @@ ${f}`) + "'";
|
|
|
8313
8313
|
o = /\n+(?!\n|$)/g;
|
|
8314
8314
|
}
|
|
8315
8315
|
function m({ comment: a, type: r, value: f }, d, g, y) {
|
|
8316
|
-
const { blockQuote: v, commentString:
|
|
8316
|
+
const { blockQuote: v, commentString: S, lineWidth: b } = d.options;
|
|
8317
8317
|
if (!v || /\n[\t ]+$/.test(f))
|
|
8318
8318
|
return h(f, d);
|
|
8319
|
-
const
|
|
8319
|
+
const w = d.indent || (d.forceBlockIndent || l(f) ? " " : ""), L = v === "literal" ? !0 : v === "folded" || r === e.Scalar.BLOCK_FOLDED ? !1 : r === e.Scalar.BLOCK_LITERAL ? !0 : !p(f, b, w.length);
|
|
8320
8320
|
if (!f)
|
|
8321
8321
|
return L ? `|
|
|
8322
8322
|
` : `>
|
|
@@ -8332,7 +8332,7 @@ ${f}`) + "'";
|
|
|
8332
8332
|
const P = _.indexOf(`
|
|
8333
8333
|
`);
|
|
8334
8334
|
P === -1 ? O = "-" : f === _ || P !== _.length - 1 ? (O = "+", y && y()) : O = "", _ && (f = f.slice(0, -_.length), _[_.length - 1] === `
|
|
8335
|
-
` && (_ = _.slice(0, -1)), _ = _.replace(o, `$&${
|
|
8335
|
+
` && (_ = _.slice(0, -1)), _ = _.replace(o, `$&${w}`));
|
|
8336
8336
|
let I = !1, B, F = -1;
|
|
8337
8337
|
for (B = 0; B < f.length; ++B) {
|
|
8338
8338
|
const T = f[B];
|
|
@@ -8345,39 +8345,39 @@ ${f}`) + "'";
|
|
|
8345
8345
|
break;
|
|
8346
8346
|
}
|
|
8347
8347
|
let D = f.substring(0, F < B ? F + 1 : B);
|
|
8348
|
-
D && (f = f.substring(D.length), D = D.replace(/\n+/g, `$&${
|
|
8349
|
-
let G = (I ?
|
|
8350
|
-
if (a && (G += " " +
|
|
8348
|
+
D && (f = f.substring(D.length), D = D.replace(/\n+/g, `$&${w}`));
|
|
8349
|
+
let G = (I ? w ? "2" : "1" : "") + O;
|
|
8350
|
+
if (a && (G += " " + S(a.replace(/ ?[\r\n]+/g, " ")), g && g()), !L) {
|
|
8351
8351
|
const T = f.replace(/\n+/g, `
|
|
8352
|
-
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${
|
|
8352
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${w}`);
|
|
8353
8353
|
let Y = !1;
|
|
8354
8354
|
const j = i(d, !0);
|
|
8355
8355
|
v !== "folded" && r !== e.Scalar.BLOCK_FOLDED && (j.onOverflow = () => {
|
|
8356
8356
|
Y = !0;
|
|
8357
8357
|
});
|
|
8358
|
-
const U = t.foldFlowLines(`${D}${T}${_}`,
|
|
8358
|
+
const U = t.foldFlowLines(`${D}${T}${_}`, w, t.FOLD_BLOCK, j);
|
|
8359
8359
|
if (!Y)
|
|
8360
8360
|
return `>${G}
|
|
8361
|
-
${
|
|
8361
|
+
${w}${U}`;
|
|
8362
8362
|
}
|
|
8363
|
-
return f = f.replace(/\n+/g, `$&${
|
|
8364
|
-
${
|
|
8363
|
+
return f = f.replace(/\n+/g, `$&${w}`), `|${G}
|
|
8364
|
+
${w}${D}${f}${_}`;
|
|
8365
8365
|
}
|
|
8366
8366
|
function n(a, r, f, d) {
|
|
8367
|
-
const { type: g, value: y } = a, { actualString: v, implicitKey:
|
|
8368
|
-
if (
|
|
8367
|
+
const { type: g, value: y } = a, { actualString: v, implicitKey: S, indent: b, indentStep: w, inFlow: L } = r;
|
|
8368
|
+
if (S && y.includes(`
|
|
8369
8369
|
`) || L && /[[\]{},]/.test(y))
|
|
8370
8370
|
return h(y, r);
|
|
8371
8371
|
if (/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(y))
|
|
8372
|
-
return
|
|
8372
|
+
return S || L || !y.includes(`
|
|
8373
8373
|
`) ? h(y, r) : m(a, r, f, d);
|
|
8374
|
-
if (!
|
|
8374
|
+
if (!S && !L && g !== e.Scalar.PLAIN && y.includes(`
|
|
8375
8375
|
`))
|
|
8376
8376
|
return m(a, r, f, d);
|
|
8377
8377
|
if (l(y)) {
|
|
8378
8378
|
if (b === "")
|
|
8379
8379
|
return r.forceBlockIndent = !0, m(a, r, f, d);
|
|
8380
|
-
if (
|
|
8380
|
+
if (S && b === w)
|
|
8381
8381
|
return h(y, r);
|
|
8382
8382
|
}
|
|
8383
8383
|
const O = y.replace(/\n+/g, `$&
|
|
@@ -8387,12 +8387,12 @@ ${b}`);
|
|
|
8387
8387
|
if (P.some($) || _?.some($))
|
|
8388
8388
|
return h(y, r);
|
|
8389
8389
|
}
|
|
8390
|
-
return
|
|
8390
|
+
return S ? O : t.foldFlowLines(O, b, t.FOLD_FLOW, i(r, !1));
|
|
8391
8391
|
}
|
|
8392
8392
|
function u(a, r, f, d) {
|
|
8393
8393
|
const { implicitKey: g, inFlow: y } = r, v = typeof a.value == "string" ? a : Object.assign({}, a, { value: String(a.value) });
|
|
8394
|
-
let { type:
|
|
8395
|
-
|
|
8394
|
+
let { type: S } = a;
|
|
8395
|
+
S !== e.Scalar.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(v.value) && (S = e.Scalar.QUOTE_DOUBLE);
|
|
8396
8396
|
const b = (L) => {
|
|
8397
8397
|
switch (L) {
|
|
8398
8398
|
case e.Scalar.BLOCK_FOLDED:
|
|
@@ -8408,13 +8408,13 @@ ${b}`);
|
|
|
8408
8408
|
return null;
|
|
8409
8409
|
}
|
|
8410
8410
|
};
|
|
8411
|
-
let
|
|
8412
|
-
if (
|
|
8411
|
+
let w = b(S);
|
|
8412
|
+
if (w === null) {
|
|
8413
8413
|
const { defaultKeyType: L, defaultStringType: O } = r.options, $ = g && L || O;
|
|
8414
|
-
if (
|
|
8414
|
+
if (w = b($), w === null)
|
|
8415
8415
|
throw new Error(`Unsupported default string type ${$}`);
|
|
8416
8416
|
}
|
|
8417
|
-
return
|
|
8417
|
+
return w;
|
|
8418
8418
|
}
|
|
8419
8419
|
return xi.stringifyString = u, xi;
|
|
8420
8420
|
}
|
|
@@ -8518,7 +8518,7 @@ ${m.indent}${d}` : d;
|
|
|
8518
8518
|
return bt.createStringifyContext = p, bt.stringify = h, bt;
|
|
8519
8519
|
}
|
|
8520
8520
|
var lr;
|
|
8521
|
-
function
|
|
8521
|
+
function ku() {
|
|
8522
8522
|
if (lr) return ki;
|
|
8523
8523
|
lr = 1;
|
|
8524
8524
|
var e = H(), t = ee(), i = qt(), l = Bt();
|
|
@@ -8539,21 +8539,21 @@ function Tu() {
|
|
|
8539
8539
|
implicitKey: !v && (g || !n),
|
|
8540
8540
|
indent: a + r
|
|
8541
8541
|
});
|
|
8542
|
-
let
|
|
8543
|
-
if (!v && !h.inFlow &&
|
|
8542
|
+
let S = !1, b = !1, w = i.stringify(s, h, () => S = !0, () => b = !0);
|
|
8543
|
+
if (!v && !h.inFlow && w.length > 1024) {
|
|
8544
8544
|
if (g)
|
|
8545
8545
|
throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
|
|
8546
8546
|
v = !0;
|
|
8547
8547
|
}
|
|
8548
8548
|
if (h.inFlow) {
|
|
8549
8549
|
if (n || c == null)
|
|
8550
|
-
return
|
|
8550
|
+
return S && o && o(), w === "" ? "?" : v ? `? ${w}` : w;
|
|
8551
8551
|
} else if (n && !g || c == null && v)
|
|
8552
|
-
return
|
|
8553
|
-
|
|
8554
|
-
${a}:`) : (
|
|
8552
|
+
return w = `? ${w}`, y && !S ? w += l.lineComment(w, h.indent, f(y)) : b && m && m(), w;
|
|
8553
|
+
S && (y = null), v ? (y && (w += l.lineComment(w, h.indent, f(y))), w = `? ${w}
|
|
8554
|
+
${a}:`) : (w = `${w}:`, y && (w += l.lineComment(w, h.indent, f(y))));
|
|
8555
8555
|
let L, O, $;
|
|
8556
|
-
e.isNode(c) ? (L = !!c.spaceBefore, O = c.commentBefore, $ = c.comment) : (L = !1, O = null, $ = null, c && typeof c == "object" && (c = u.createNode(c))), h.implicitKey = !1, !v && !y && e.isScalar(c) && (h.indentAtStart =
|
|
8556
|
+
e.isNode(c) ? (L = !!c.spaceBefore, O = c.commentBefore, $ = c.comment) : (L = !1, O = null, $ = null, c && typeof c == "object" && (c = u.createNode(c))), h.implicitKey = !1, !v && !y && e.isScalar(c) && (h.indentAtStart = w.length + 1), b = !1, !d && r.length >= 2 && !h.inFlow && !v && e.isSeq(c) && !c.flow && !c.tag && !c.anchor && (h.indent = h.indent.substring(2));
|
|
8557
8557
|
let _ = !1;
|
|
8558
8558
|
const P = i.stringify(c, h, () => _ = !0, () => b = !0);
|
|
8559
8559
|
let I = " ";
|
|
@@ -8583,7 +8583,7 @@ ${h.indent}`);
|
|
|
8583
8583
|
}
|
|
8584
8584
|
} else (P === "" || P[0] === `
|
|
8585
8585
|
`) && (I = "");
|
|
8586
|
-
return
|
|
8586
|
+
return w += I + P, h.inFlow ? _ && o && o() : $ && !_ ? w += l.lineComment(w, h.indent, f($)) : b && m && m(), w;
|
|
8587
8587
|
}
|
|
8588
8588
|
return ki.stringifyPair = p, ki;
|
|
8589
8589
|
}
|
|
@@ -8600,9 +8600,9 @@ function Vo() {
|
|
|
8600
8600
|
}
|
|
8601
8601
|
return vt.debug = t, vt.warn = i, vt;
|
|
8602
8602
|
}
|
|
8603
|
-
var
|
|
8603
|
+
var je = {}, ur;
|
|
8604
8604
|
function Hn() {
|
|
8605
|
-
if (ur) return
|
|
8605
|
+
if (ur) return je;
|
|
8606
8606
|
ur = 1;
|
|
8607
8607
|
var e = H(), t = ee();
|
|
8608
8608
|
const i = "<<", l = {
|
|
@@ -8643,7 +8643,7 @@ function Hn() {
|
|
|
8643
8643
|
function h(o, m) {
|
|
8644
8644
|
return o && e.isAlias(m) ? m.resolve(o.doc, o) : m;
|
|
8645
8645
|
}
|
|
8646
|
-
return
|
|
8646
|
+
return je.addMergeToJSMap = s, je.isMergeKey = p, je.merge = l, je;
|
|
8647
8647
|
}
|
|
8648
8648
|
var fr;
|
|
8649
8649
|
function Wo() {
|
|
@@ -8699,7 +8699,7 @@ var hr;
|
|
|
8699
8699
|
function $e() {
|
|
8700
8700
|
if (hr) return yt;
|
|
8701
8701
|
hr = 1;
|
|
8702
|
-
var e = Ft(), t =
|
|
8702
|
+
var e = Ft(), t = ku(), i = Wo(), l = H();
|
|
8703
8703
|
function p(c, h, o) {
|
|
8704
8704
|
const m = e.createNode(c, void 0, o), n = e.createNode(h, void 0, o);
|
|
8705
8705
|
return new s(m, n);
|
|
@@ -8722,7 +8722,7 @@ function $e() {
|
|
|
8722
8722
|
};
|
|
8723
8723
|
return yt.Pair = s, yt.createPair = p, yt;
|
|
8724
8724
|
}
|
|
8725
|
-
var Mi = {}, Di = {},
|
|
8725
|
+
var Mi = {}, Di = {}, wt = {}, Fi = {}, pr;
|
|
8726
8726
|
function Ko() {
|
|
8727
8727
|
if (pr) return Fi;
|
|
8728
8728
|
pr = 1;
|
|
@@ -8733,27 +8733,27 @@ function Ko() {
|
|
|
8733
8733
|
function p({ comment: h, items: o }, m, { blockItemPrefix: n, flowChars: u, itemIndent: a, onChompKeep: r, onComment: f }) {
|
|
8734
8734
|
const { indent: d, options: { commentString: g } } = m, y = Object.assign({}, m, { indent: a, type: null });
|
|
8735
8735
|
let v = !1;
|
|
8736
|
-
const
|
|
8737
|
-
for (let
|
|
8738
|
-
const L = o[
|
|
8736
|
+
const S = [];
|
|
8737
|
+
for (let w = 0; w < o.length; ++w) {
|
|
8738
|
+
const L = o[w];
|
|
8739
8739
|
let O = null;
|
|
8740
8740
|
if (e.isNode(L))
|
|
8741
|
-
!v && L.spaceBefore &&
|
|
8741
|
+
!v && L.spaceBefore && S.push(""), c(m, S, L.commentBefore, v), L.comment && (O = L.comment);
|
|
8742
8742
|
else if (e.isPair(L)) {
|
|
8743
8743
|
const _ = e.isNode(L.key) ? L.key : null;
|
|
8744
|
-
_ && (!v && _.spaceBefore &&
|
|
8744
|
+
_ && (!v && _.spaceBefore && S.push(""), c(m, S, _.commentBefore, v));
|
|
8745
8745
|
}
|
|
8746
8746
|
v = !1;
|
|
8747
8747
|
let $ = t.stringify(L, y, () => O = null, () => v = !0);
|
|
8748
|
-
O && ($ += i.lineComment($, a, g(O))), v && O && (v = !1),
|
|
8748
|
+
O && ($ += i.lineComment($, a, g(O))), v && O && (v = !1), S.push(n + $);
|
|
8749
8749
|
}
|
|
8750
8750
|
let b;
|
|
8751
|
-
if (
|
|
8751
|
+
if (S.length === 0)
|
|
8752
8752
|
b = u.start + u.end;
|
|
8753
8753
|
else {
|
|
8754
|
-
b =
|
|
8755
|
-
for (let
|
|
8756
|
-
const L = w
|
|
8754
|
+
b = S[0];
|
|
8755
|
+
for (let w = 1; w < S.length; ++w) {
|
|
8756
|
+
const L = S[w];
|
|
8757
8757
|
b += L ? `
|
|
8758
8758
|
${d}${L}` : `
|
|
8759
8759
|
`;
|
|
@@ -8772,8 +8772,8 @@ ${d}${L}` : `
|
|
|
8772
8772
|
});
|
|
8773
8773
|
let g = !1, y = 0;
|
|
8774
8774
|
const v = [];
|
|
8775
|
-
for (let
|
|
8776
|
-
const L = h[
|
|
8775
|
+
for (let w = 0; w < h.length; ++w) {
|
|
8776
|
+
const L = h[w];
|
|
8777
8777
|
let O = null;
|
|
8778
8778
|
if (e.isNode(L))
|
|
8779
8779
|
L.spaceBefore && v.push(""), c(o, v, L.commentBefore, !1), L.comment && (O = L.comment);
|
|
@@ -8786,25 +8786,25 @@ ${d}${L}` : `
|
|
|
8786
8786
|
O && (g = !0);
|
|
8787
8787
|
let $ = t.stringify(L, d, () => O = null);
|
|
8788
8788
|
g || (g = v.length > y || $.includes(`
|
|
8789
|
-
`)),
|
|
8789
|
+
`)), w < h.length - 1 ? $ += "," : o.options.trailingComma && (o.options.lineWidth > 0 && (g || (g = v.reduce((_, P) => _ + P.length + 2, 2) + ($.length + 2) > o.options.lineWidth)), g && ($ += ",")), O && ($ += i.lineComment($, n, f(O))), v.push($), y = v.length;
|
|
8790
8790
|
}
|
|
8791
|
-
const { start:
|
|
8791
|
+
const { start: S, end: b } = m;
|
|
8792
8792
|
if (v.length === 0)
|
|
8793
|
-
return
|
|
8793
|
+
return S + b;
|
|
8794
8794
|
if (!g) {
|
|
8795
|
-
const
|
|
8796
|
-
g = o.options.lineWidth > 0 &&
|
|
8795
|
+
const w = v.reduce((L, O) => L + O.length + 2, 2);
|
|
8796
|
+
g = o.options.lineWidth > 0 && w > o.options.lineWidth;
|
|
8797
8797
|
}
|
|
8798
8798
|
if (g) {
|
|
8799
|
-
let
|
|
8799
|
+
let w = S;
|
|
8800
8800
|
for (const L of v)
|
|
8801
|
-
|
|
8801
|
+
w += L ? `
|
|
8802
8802
|
${a}${u}${L}` : `
|
|
8803
8803
|
`;
|
|
8804
|
-
return `${
|
|
8804
|
+
return `${w}
|
|
8805
8805
|
${u}${b}`;
|
|
8806
8806
|
} else
|
|
8807
|
-
return `${
|
|
8807
|
+
return `${S}${r}${v.join(" ")}${r}${b}`;
|
|
8808
8808
|
}
|
|
8809
8809
|
function c({ indent: h, options: { commentString: o } }, m, n, u) {
|
|
8810
8810
|
if (n && u && (n = n.replace(/^\n+/, "")), n) {
|
|
@@ -8816,7 +8816,7 @@ ${u}${b}`;
|
|
|
8816
8816
|
}
|
|
8817
8817
|
var dr;
|
|
8818
8818
|
function _e() {
|
|
8819
|
-
if (dr) return
|
|
8819
|
+
if (dr) return wt;
|
|
8820
8820
|
dr = 1;
|
|
8821
8821
|
var e = Ko(), t = Wo(), i = Un(), l = H(), p = $e(), s = ee();
|
|
8822
8822
|
function c(o, m) {
|
|
@@ -8913,7 +8913,7 @@ function _e() {
|
|
|
8913
8913
|
});
|
|
8914
8914
|
}
|
|
8915
8915
|
};
|
|
8916
|
-
return
|
|
8916
|
+
return wt.YAMLMap = h, wt.findPair = c, wt;
|
|
8917
8917
|
}
|
|
8918
8918
|
var mr;
|
|
8919
8919
|
function Ze() {
|
|
@@ -9061,7 +9061,7 @@ function jt() {
|
|
|
9061
9061
|
};
|
|
9062
9062
|
return qi.string = t, qi;
|
|
9063
9063
|
}
|
|
9064
|
-
var
|
|
9064
|
+
var St = {}, ji = {}, vr;
|
|
9065
9065
|
function Vn() {
|
|
9066
9066
|
if (vr) return ji;
|
|
9067
9067
|
vr = 1;
|
|
@@ -9077,10 +9077,10 @@ function Vn() {
|
|
|
9077
9077
|
};
|
|
9078
9078
|
return ji.nullTag = t, ji;
|
|
9079
9079
|
}
|
|
9080
|
-
var Ui = {},
|
|
9080
|
+
var Ui = {}, wr;
|
|
9081
9081
|
function Jo() {
|
|
9082
|
-
if (
|
|
9083
|
-
|
|
9082
|
+
if (wr) return Ui;
|
|
9083
|
+
wr = 1;
|
|
9084
9084
|
var e = ee();
|
|
9085
9085
|
const t = {
|
|
9086
9086
|
identify: (i) => typeof i == "boolean",
|
|
@@ -9099,10 +9099,10 @@ function Jo() {
|
|
|
9099
9099
|
};
|
|
9100
9100
|
return Ui.boolTag = t, Ui;
|
|
9101
9101
|
}
|
|
9102
|
-
var
|
|
9102
|
+
var Ue = {}, Hi = {}, Sr;
|
|
9103
9103
|
function tt() {
|
|
9104
|
-
if (
|
|
9105
|
-
|
|
9104
|
+
if (Sr) return Hi;
|
|
9105
|
+
Sr = 1;
|
|
9106
9106
|
function e({ format: t, minFractionDigits: i, tag: l, value: p }) {
|
|
9107
9107
|
if (typeof p == "bigint")
|
|
9108
9108
|
return String(p);
|
|
@@ -9123,7 +9123,7 @@ function tt() {
|
|
|
9123
9123
|
}
|
|
9124
9124
|
var Er;
|
|
9125
9125
|
function zo() {
|
|
9126
|
-
if (Er) return
|
|
9126
|
+
if (Er) return Ue;
|
|
9127
9127
|
Er = 1;
|
|
9128
9128
|
var e = ee(), t = tt();
|
|
9129
9129
|
const i = {
|
|
@@ -9155,11 +9155,11 @@ function zo() {
|
|
|
9155
9155
|
},
|
|
9156
9156
|
stringify: t.stringifyNumber
|
|
9157
9157
|
};
|
|
9158
|
-
return
|
|
9158
|
+
return Ue.float = p, Ue.floatExp = l, Ue.floatNaN = i, Ue;
|
|
9159
9159
|
}
|
|
9160
|
-
var
|
|
9160
|
+
var He = {}, Cr;
|
|
9161
9161
|
function Xo() {
|
|
9162
|
-
if (Cr) return
|
|
9162
|
+
if (Cr) return He;
|
|
9163
9163
|
Cr = 1;
|
|
9164
9164
|
var e = tt();
|
|
9165
9165
|
const t = (h) => typeof h == "bigint" || Number.isInteger(h), i = (h, o, m, { intAsBigInt: n }) => n ? BigInt(h) : parseInt(h.substring(o), m);
|
|
@@ -9191,10 +9191,10 @@ function Xo() {
|
|
|
9191
9191
|
resolve: (h, o, m) => i(h, 2, 16, m),
|
|
9192
9192
|
stringify: (h) => l(h, 16, "0x")
|
|
9193
9193
|
};
|
|
9194
|
-
return
|
|
9194
|
+
return He.int = s, He.intHex = c, He.intOct = p, He;
|
|
9195
9195
|
}
|
|
9196
9196
|
var Vi = {}, Ar;
|
|
9197
|
-
function
|
|
9197
|
+
function xu() {
|
|
9198
9198
|
if (Ar) return Vi;
|
|
9199
9199
|
Ar = 1;
|
|
9200
9200
|
var e = Ze(), t = Vn(), i = et(), l = jt(), p = Jo(), s = zo(), c = Xo();
|
|
@@ -9214,7 +9214,7 @@ function ku() {
|
|
|
9214
9214
|
return Vi.schema = h, Vi;
|
|
9215
9215
|
}
|
|
9216
9216
|
var Wi = {}, Lr;
|
|
9217
|
-
function
|
|
9217
|
+
function Ru() {
|
|
9218
9218
|
if (Lr) return Wi;
|
|
9219
9219
|
Lr = 1;
|
|
9220
9220
|
var e = ee(), t = Ze(), i = et();
|
|
@@ -9276,7 +9276,7 @@ var Yi = {}, Or;
|
|
|
9276
9276
|
function Qo() {
|
|
9277
9277
|
if (Or) return Yi;
|
|
9278
9278
|
Or = 1;
|
|
9279
|
-
var e =
|
|
9279
|
+
var e = Ta, t = ee(), i = Gt();
|
|
9280
9280
|
const l = {
|
|
9281
9281
|
identify: (p) => p instanceof Uint8Array,
|
|
9282
9282
|
// Buffer inherits from Uint8Array
|
|
@@ -9327,9 +9327,9 @@ function Qo() {
|
|
|
9327
9327
|
};
|
|
9328
9328
|
return Yi.binary = l, Yi;
|
|
9329
9329
|
}
|
|
9330
|
-
var Et = {},
|
|
9330
|
+
var Et = {}, Ve = {}, $r;
|
|
9331
9331
|
function Wn() {
|
|
9332
|
-
if ($r) return
|
|
9332
|
+
if ($r) return Ve;
|
|
9333
9333
|
$r = 1;
|
|
9334
9334
|
var e = H(), t = $e(), i = ee(), l = Ne();
|
|
9335
9335
|
function p(h, o) {
|
|
@@ -9387,7 +9387,7 @@ ${a.comment}` : n.comment;
|
|
|
9387
9387
|
resolve: p,
|
|
9388
9388
|
createNode: s
|
|
9389
9389
|
};
|
|
9390
|
-
return
|
|
9390
|
+
return Ve.createPairs = s, Ve.pairs = c, Ve.resolvePairs = p, Ve;
|
|
9391
9391
|
}
|
|
9392
9392
|
var _r;
|
|
9393
9393
|
function Zo() {
|
|
@@ -9438,7 +9438,7 @@ function Zo() {
|
|
|
9438
9438
|
return Et.YAMLOMap = s, Et.omap = c, Et;
|
|
9439
9439
|
}
|
|
9440
9440
|
var Ki = {}, Ct = {}, Nr;
|
|
9441
|
-
function
|
|
9441
|
+
function Mu() {
|
|
9442
9442
|
if (Nr) return Ct;
|
|
9443
9443
|
Nr = 1;
|
|
9444
9444
|
var e = ee();
|
|
@@ -9462,9 +9462,9 @@ function Ru() {
|
|
|
9462
9462
|
};
|
|
9463
9463
|
return Ct.falseTag = l, Ct.trueTag = i, Ct;
|
|
9464
9464
|
}
|
|
9465
|
-
var
|
|
9466
|
-
function
|
|
9467
|
-
if (Pr) return
|
|
9465
|
+
var We = {}, Pr;
|
|
9466
|
+
function Du() {
|
|
9467
|
+
if (Pr) return We;
|
|
9468
9468
|
Pr = 1;
|
|
9469
9469
|
var e = ee(), t = tt();
|
|
9470
9470
|
const i = {
|
|
@@ -9500,10 +9500,10 @@ function Mu() {
|
|
|
9500
9500
|
},
|
|
9501
9501
|
stringify: t.stringifyNumber
|
|
9502
9502
|
};
|
|
9503
|
-
return
|
|
9503
|
+
return We.float = p, We.floatExp = l, We.floatNaN = i, We;
|
|
9504
9504
|
}
|
|
9505
9505
|
var Te = {}, Ir;
|
|
9506
|
-
function
|
|
9506
|
+
function Fu() {
|
|
9507
9507
|
if (Ir) return Te;
|
|
9508
9508
|
Ir = 1;
|
|
9509
9509
|
var e = tt();
|
|
@@ -9635,9 +9635,9 @@ function ea() {
|
|
|
9635
9635
|
};
|
|
9636
9636
|
return At.YAMLSet = l, At.set = p, At;
|
|
9637
9637
|
}
|
|
9638
|
-
var
|
|
9638
|
+
var Ye = {}, kr;
|
|
9639
9639
|
function ta() {
|
|
9640
|
-
if (kr) return
|
|
9640
|
+
if (kr) return Ye;
|
|
9641
9641
|
kr = 1;
|
|
9642
9642
|
var e = tt();
|
|
9643
9643
|
function t(c, h) {
|
|
@@ -9694,13 +9694,13 @@ function ta() {
|
|
|
9694
9694
|
},
|
|
9695
9695
|
stringify: ({ value: c }) => c?.toISOString().replace(/(T00:00:00)?\.000Z$/, "") ?? ""
|
|
9696
9696
|
};
|
|
9697
|
-
return
|
|
9697
|
+
return Ye.floatTime = p, Ye.intTime = l, Ye.timestamp = s, Ye;
|
|
9698
9698
|
}
|
|
9699
9699
|
var xr;
|
|
9700
|
-
function
|
|
9700
|
+
function Bu() {
|
|
9701
9701
|
if (xr) return Ki;
|
|
9702
9702
|
xr = 1;
|
|
9703
|
-
var e = Ze(), t = Vn(), i = et(), l = jt(), p = Qo(), s =
|
|
9703
|
+
var e = Ze(), t = Vn(), i = et(), l = jt(), p = Qo(), s = Mu(), c = Du(), h = Fu(), o = Hn(), m = Zo(), n = Wn(), u = ea(), a = ta();
|
|
9704
9704
|
const r = [
|
|
9705
9705
|
e.map,
|
|
9706
9706
|
i.seq,
|
|
@@ -9727,10 +9727,10 @@ function Fu() {
|
|
|
9727
9727
|
return Ki.schema = r, Ki;
|
|
9728
9728
|
}
|
|
9729
9729
|
var Rr;
|
|
9730
|
-
function
|
|
9731
|
-
if (Rr) return
|
|
9730
|
+
function Gu() {
|
|
9731
|
+
if (Rr) return St;
|
|
9732
9732
|
Rr = 1;
|
|
9733
|
-
var e = Ze(), t = Vn(), i = et(), l = jt(), p = Jo(), s = zo(), c = Xo(), h =
|
|
9733
|
+
var e = Ze(), t = Vn(), i = et(), l = jt(), p = Jo(), s = zo(), c = Xo(), h = xu(), o = Ru(), m = Qo(), n = Hn(), u = Zo(), a = Wn(), r = Bu(), f = ea(), d = ta();
|
|
9734
9734
|
const g = /* @__PURE__ */ new Map([
|
|
9735
9735
|
["core", h.schema],
|
|
9736
9736
|
["failsafe", [e.map, i.seq, l.string]],
|
|
@@ -9764,8 +9764,8 @@ function Bu() {
|
|
|
9764
9764
|
"tag:yaml.org,2002:set": f.set,
|
|
9765
9765
|
"tag:yaml.org,2002:timestamp": d.timestamp
|
|
9766
9766
|
};
|
|
9767
|
-
function
|
|
9768
|
-
const O = g.get(
|
|
9767
|
+
function S(b, w, L) {
|
|
9768
|
+
const O = g.get(w);
|
|
9769
9769
|
if (O && !b)
|
|
9770
9770
|
return L && !O.includes(n.merge) ? O.concat(n.merge) : O.slice();
|
|
9771
9771
|
let $ = O;
|
|
@@ -9774,7 +9774,7 @@ function Bu() {
|
|
|
9774
9774
|
$ = [];
|
|
9775
9775
|
else {
|
|
9776
9776
|
const _ = Array.from(g.keys()).filter((P) => P !== "yaml11").map((P) => JSON.stringify(P)).join(", ");
|
|
9777
|
-
throw new Error(`Unknown schema "${
|
|
9777
|
+
throw new Error(`Unknown schema "${w}"; use one of ${_} or define customTags array`);
|
|
9778
9778
|
}
|
|
9779
9779
|
if (Array.isArray(b))
|
|
9780
9780
|
for (const _ of b)
|
|
@@ -9789,13 +9789,13 @@ function Bu() {
|
|
|
9789
9789
|
return _.includes(I) || _.push(I), _;
|
|
9790
9790
|
}, []);
|
|
9791
9791
|
}
|
|
9792
|
-
return
|
|
9792
|
+
return St.coreKnownTags = v, St.getTags = S, St;
|
|
9793
9793
|
}
|
|
9794
9794
|
var Mr;
|
|
9795
9795
|
function na() {
|
|
9796
9796
|
if (Mr) return Mi;
|
|
9797
9797
|
Mr = 1;
|
|
9798
|
-
var e = H(), t = Ze(), i = et(), l = jt(), p =
|
|
9798
|
+
var e = H(), t = Ze(), i = et(), l = jt(), p = Gu();
|
|
9799
9799
|
const s = (h, o) => h.key < o.key ? -1 : h.key > o.key ? 1 : 0;
|
|
9800
9800
|
let c = class ia {
|
|
9801
9801
|
constructor({ compat: o, customTags: m, merge: n, resolveKnownTags: u, schema: a, sortMapEntries: r, toStringDefaults: f }) {
|
|
@@ -9809,7 +9809,7 @@ function na() {
|
|
|
9809
9809
|
return Mi.Schema = c, Mi;
|
|
9810
9810
|
}
|
|
9811
9811
|
var Ji = {}, Dr;
|
|
9812
|
-
function
|
|
9812
|
+
function qu() {
|
|
9813
9813
|
if (Dr) return Ji;
|
|
9814
9814
|
Dr = 1;
|
|
9815
9815
|
var e = H(), t = qt(), i = Bt();
|
|
@@ -9862,7 +9862,7 @@ var Fr;
|
|
|
9862
9862
|
function Ut() {
|
|
9863
9863
|
if (Fr) return $i;
|
|
9864
9864
|
Fr = 1;
|
|
9865
|
-
var e = Dt(), t = Un(), i = H(), l = $e(), p = Oe(), s = na(), c =
|
|
9865
|
+
var e = Dt(), t = Un(), i = H(), l = $e(), p = Oe(), s = na(), c = qu(), h = qn(), o = Ho(), m = Ft(), n = Uo();
|
|
9866
9866
|
let u = class sa {
|
|
9867
9867
|
constructor(f, d, g) {
|
|
9868
9868
|
this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, i.NODE_TYPE, { value: i.DOC });
|
|
@@ -9879,8 +9879,8 @@ function Ut() {
|
|
|
9879
9879
|
version: "1.2"
|
|
9880
9880
|
}, g);
|
|
9881
9881
|
this.options = v;
|
|
9882
|
-
let { version:
|
|
9883
|
-
g?._directives ? (this.directives = g._directives.atDocument(), this.directives.yaml.explicit && (
|
|
9882
|
+
let { version: S } = v;
|
|
9883
|
+
g?._directives ? (this.directives = g._directives.atDocument(), this.directives.yaml.explicit && (S = this.directives.yaml.version)) : this.directives = new n.Directives({ version: S }), this.setSchema(S, g), this.contents = f === void 0 ? null : this.createNode(f, y, g);
|
|
9884
9884
|
}
|
|
9885
9885
|
/**
|
|
9886
9886
|
* Create a deep copy of this Document and its contents.
|
|
@@ -9926,13 +9926,13 @@ function Ut() {
|
|
|
9926
9926
|
const F = (M) => typeof M == "number" || M instanceof String || M instanceof Number, D = d.filter(F).map(String);
|
|
9927
9927
|
D.length > 0 && (d = d.concat(D)), y = d;
|
|
9928
9928
|
} else g === void 0 && d && (g = d, d = void 0);
|
|
9929
|
-
const { aliasDuplicateObjects: v, anchorPrefix:
|
|
9929
|
+
const { aliasDuplicateObjects: v, anchorPrefix: S, flow: b, keepUndefined: w, onTagObj: L, tag: O } = g ?? {}, { onAnchor: $, setAnchors: _, sourceObjects: P } = h.createNodeAnchors(
|
|
9930
9930
|
this,
|
|
9931
9931
|
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
9932
|
-
|
|
9932
|
+
S || "a"
|
|
9933
9933
|
), I = {
|
|
9934
9934
|
aliasDuplicateObjects: v ?? !0,
|
|
9935
|
-
keepUndefined:
|
|
9935
|
+
keepUndefined: w ?? !1,
|
|
9936
9936
|
onAnchor: $,
|
|
9937
9937
|
onTagObj: L,
|
|
9938
9938
|
replacer: y,
|
|
@@ -10039,7 +10039,7 @@ function Ut() {
|
|
|
10039
10039
|
throw new Error("With a null YAML version, the { schema: Schema } option is required");
|
|
10040
10040
|
}
|
|
10041
10041
|
// json & jsonArg are only used from toJSON()
|
|
10042
|
-
toJS({ json: f, jsonArg: d, mapAsMap: g, maxAliasCount: y, onAnchor: v, reviver:
|
|
10042
|
+
toJS({ json: f, jsonArg: d, mapAsMap: g, maxAliasCount: y, onAnchor: v, reviver: S } = {}) {
|
|
10043
10043
|
const b = {
|
|
10044
10044
|
anchors: /* @__PURE__ */ new Map(),
|
|
10045
10045
|
doc: this,
|
|
@@ -10047,11 +10047,11 @@ function Ut() {
|
|
|
10047
10047
|
mapAsMap: g === !0,
|
|
10048
10048
|
mapKeyWarned: !1,
|
|
10049
10049
|
maxAliasCount: typeof y == "number" ? y : 100
|
|
10050
|
-
},
|
|
10050
|
+
}, w = p.toJS(this.contents, d ?? "", b);
|
|
10051
10051
|
if (typeof v == "function")
|
|
10052
10052
|
for (const { count: L, res: O } of b.anchors.values())
|
|
10053
10053
|
v(O, L);
|
|
10054
|
-
return typeof
|
|
10054
|
+
return typeof S == "function" ? o.applyReviver(S, { "": w }, "", w) : w;
|
|
10055
10055
|
}
|
|
10056
10056
|
/**
|
|
10057
10057
|
* A JSON representation of the document `contents`.
|
|
@@ -10134,7 +10134,7 @@ function Vt() {
|
|
|
10134
10134
|
if (Gr) return Zi;
|
|
10135
10135
|
Gr = 1;
|
|
10136
10136
|
function e(t, { flow: i, indicator: l, next: p, offset: s, onError: c, parentIndent: h, startOnNewline: o }) {
|
|
10137
|
-
let m = !1, n = o, u = o, a = "", r = "", f = !1, d = !1, g = null, y = null, v = null,
|
|
10137
|
+
let m = !1, n = o, u = o, a = "", r = "", f = !1, d = !1, g = null, y = null, v = null, S = null, b = null, w = null, L = null;
|
|
10138
10138
|
for (const _ of t)
|
|
10139
10139
|
switch (d && (_.type !== "space" && _.type !== "newline" && _.type !== "comma" && c(_.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), d = !1), g && (n && _.type !== "comment" && _.type !== "newline" && c(g, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), g = null), _.type) {
|
|
10140
10140
|
case "space":
|
|
@@ -10147,7 +10147,7 @@ function Vt() {
|
|
|
10147
10147
|
break;
|
|
10148
10148
|
}
|
|
10149
10149
|
case "newline":
|
|
10150
|
-
n ? a ? a += _.source : (!
|
|
10150
|
+
n ? a ? a += _.source : (!w || l !== "seq-item-ind") && (m = !0) : r += _.source, n = !0, f = !0, (y || v) && (S = _), u = !0;
|
|
10151
10151
|
break;
|
|
10152
10152
|
case "anchor":
|
|
10153
10153
|
y && c(_, "MULTIPLE_ANCHORS", "A node can have at most one anchor"), _.source.endsWith(":") && c(_.offset + _.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", !0), y = _, L ?? (L = _.offset), n = !1, u = !1, d = !0;
|
|
@@ -10157,7 +10157,7 @@ function Vt() {
|
|
|
10157
10157
|
break;
|
|
10158
10158
|
}
|
|
10159
10159
|
case l:
|
|
10160
|
-
(y || v) && c(_, "BAD_PROP_ORDER", `Anchors and tags must be after the ${_.source} indicator`),
|
|
10160
|
+
(y || v) && c(_, "BAD_PROP_ORDER", `Anchors and tags must be after the ${_.source} indicator`), w && c(_, "UNEXPECTED_TOKEN", `Unexpected ${_.source} in ${i ?? "collection"}`), w = _, n = l === "seq-item-ind" || l === "explicit-key-ind", u = !1;
|
|
10161
10161
|
break;
|
|
10162
10162
|
case "comma":
|
|
10163
10163
|
if (i) {
|
|
@@ -10171,13 +10171,13 @@ function Vt() {
|
|
|
10171
10171
|
const O = t[t.length - 1], $ = O ? O.offset + O.source.length : s;
|
|
10172
10172
|
return d && p && p.type !== "space" && p.type !== "newline" && p.type !== "comma" && (p.type !== "scalar" || p.source !== "") && c(p.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), g && (n && g.indent <= h || p?.type === "block-map" || p?.type === "block-seq") && c(g, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), {
|
|
10173
10173
|
comma: b,
|
|
10174
|
-
found:
|
|
10174
|
+
found: w,
|
|
10175
10175
|
spaceBefore: m,
|
|
10176
10176
|
comment: a,
|
|
10177
10177
|
hasNewline: f,
|
|
10178
10178
|
anchor: y,
|
|
10179
10179
|
tag: v,
|
|
10180
|
-
newlineAfterProp:
|
|
10180
|
+
newlineAfterProp: S,
|
|
10181
10181
|
end: $,
|
|
10182
10182
|
start: L ?? $
|
|
10183
10183
|
};
|
|
@@ -10253,7 +10253,7 @@ function oa() {
|
|
|
10253
10253
|
return nn.mapIncludes = t, nn;
|
|
10254
10254
|
}
|
|
10255
10255
|
var Hr;
|
|
10256
|
-
function
|
|
10256
|
+
function ju() {
|
|
10257
10257
|
if (Hr) return Qi;
|
|
10258
10258
|
Hr = 1;
|
|
10259
10259
|
var e = $e(), t = _e(), i = Vt(), l = Yn(), p = ra(), s = oa();
|
|
@@ -10263,26 +10263,26 @@ function qu() {
|
|
|
10263
10263
|
n.atRoot && (n.atRoot = !1);
|
|
10264
10264
|
let g = u.offset, y = null;
|
|
10265
10265
|
for (const v of u.items) {
|
|
10266
|
-
const { start:
|
|
10266
|
+
const { start: S, key: b, sep: w, value: L } = v, O = i.resolveProps(S, {
|
|
10267
10267
|
indicator: "explicit-key-ind",
|
|
10268
|
-
next: b ??
|
|
10268
|
+
next: b ?? w?.[0],
|
|
10269
10269
|
offset: g,
|
|
10270
10270
|
onError: a,
|
|
10271
10271
|
parentIndent: u.indent,
|
|
10272
10272
|
startOnNewline: !0
|
|
10273
10273
|
}), $ = !O.found;
|
|
10274
10274
|
if ($) {
|
|
10275
|
-
if (b && (b.type === "block-seq" ? a(g, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in b && b.indent !== u.indent && a(g, "BAD_INDENT", c)), !O.anchor && !O.tag && !
|
|
10275
|
+
if (b && (b.type === "block-seq" ? a(g, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in b && b.indent !== u.indent && a(g, "BAD_INDENT", c)), !O.anchor && !O.tag && !w) {
|
|
10276
10276
|
y = O.end, O.comment && (d.comment ? d.comment += `
|
|
10277
10277
|
` + O.comment : d.comment = O.comment);
|
|
10278
10278
|
continue;
|
|
10279
10279
|
}
|
|
10280
|
-
(O.newlineAfterProp || l.containsNewline(b)) && a(b ??
|
|
10280
|
+
(O.newlineAfterProp || l.containsNewline(b)) && a(b ?? S[S.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
|
10281
10281
|
} else O.found?.indent !== u.indent && a(g, "BAD_INDENT", c);
|
|
10282
10282
|
n.atKey = !0;
|
|
10283
|
-
const _ = O.end, P = b ? o(n, b, O, a) : m(n, _,
|
|
10283
|
+
const _ = O.end, P = b ? o(n, b, O, a) : m(n, _, S, null, O, a);
|
|
10284
10284
|
n.schema.compat && p.flowIndentCheck(u.indent, b, a), n.atKey = !1, s.mapIncludes(n, d.items, P) && a(_, "DUPLICATE_KEY", "Map keys must be unique");
|
|
10285
|
-
const I = i.resolveProps(
|
|
10285
|
+
const I = i.resolveProps(w ?? [], {
|
|
10286
10286
|
indicator: "map-value-ind",
|
|
10287
10287
|
next: L,
|
|
10288
10288
|
offset: P.range[2],
|
|
@@ -10292,7 +10292,7 @@ function qu() {
|
|
|
10292
10292
|
});
|
|
10293
10293
|
if (g = I.end, I.found) {
|
|
10294
10294
|
$ && (L?.type === "block-map" && !I.hasNewline && a(g, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), n.options.strict && O.start < I.found.offset - 1024 && a(P.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
|
|
10295
|
-
const B = L ? o(n, L, I, a) : m(n, g,
|
|
10295
|
+
const B = L ? o(n, L, I, a) : m(n, g, w, null, I, a);
|
|
10296
10296
|
n.schema.compat && p.flowIndentCheck(u.indent, L, a), g = B.range[2];
|
|
10297
10297
|
const F = new e.Pair(P, B);
|
|
10298
10298
|
n.options.keepSourceTokens && (F.srcToken = v), d.items.push(F);
|
|
@@ -10308,7 +10308,7 @@ function qu() {
|
|
|
10308
10308
|
return Qi.resolveBlockMap = h, Qi;
|
|
10309
10309
|
}
|
|
10310
10310
|
var sn = {}, Vr;
|
|
10311
|
-
function
|
|
10311
|
+
function Uu() {
|
|
10312
10312
|
if (Vr) return sn;
|
|
10313
10313
|
Vr = 1;
|
|
10314
10314
|
var e = Ne(), t = Vt(), i = ra();
|
|
@@ -10373,16 +10373,16 @@ function it() {
|
|
|
10373
10373
|
return on.resolveEnd = e, on;
|
|
10374
10374
|
}
|
|
10375
10375
|
var Yr;
|
|
10376
|
-
function
|
|
10376
|
+
function Hu() {
|
|
10377
10377
|
if (Yr) return rn;
|
|
10378
10378
|
Yr = 1;
|
|
10379
10379
|
var e = H(), t = $e(), i = _e(), l = Ne(), p = it(), s = Vt(), c = Yn(), h = oa();
|
|
10380
10380
|
const o = "Block collections are not allowed within flow collections", m = (u) => u && (u.type === "block-map" || u.type === "block-seq");
|
|
10381
10381
|
function n({ composeNode: u, composeEmptyNode: a }, r, f, d, g) {
|
|
10382
|
-
const y = f.start.source === "{", v = y ? "flow map" : "flow sequence",
|
|
10382
|
+
const y = f.start.source === "{", v = y ? "flow map" : "flow sequence", S = g?.nodeClass ?? (y ? i.YAMLMap : l.YAMLSeq), b = new S(r.schema);
|
|
10383
10383
|
b.flow = !0;
|
|
10384
|
-
const
|
|
10385
|
-
|
|
10384
|
+
const w = r.atRoot;
|
|
10385
|
+
w && (r.atRoot = !1), r.atKey && (r.atKey = !1);
|
|
10386
10386
|
let L = f.offset + f.start.source.length;
|
|
10387
10387
|
for (let I = 0; I < f.items.length; ++I) {
|
|
10388
10388
|
const B = f.items[I], { start: F, key: D, sep: M, value: G } = B, T = s.resolveProps(F, {
|
|
@@ -10458,20 +10458,20 @@ function Uu() {
|
|
|
10458
10458
|
T.start < U.found.offset - 1024 && d(U.found, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");
|
|
10459
10459
|
}
|
|
10460
10460
|
} else G && ("source" in G && G.source?.[0] === ":" ? d(G, "MISSING_CHAR", `Missing space after : in ${v}`) : d(U.start, "MISSING_CHAR", `Missing , or : between ${v} items`));
|
|
10461
|
-
const
|
|
10462
|
-
|
|
10461
|
+
const ie = G ? u(r, G, U, d) : U.found ? a(r, U.end, M, null, U, d) : null;
|
|
10462
|
+
ie ? m(G) && d(ie.range, "BLOCK_IN_FLOW", o) : U.comment && (j.comment ? j.comment += `
|
|
10463
10463
|
` + U.comment : j.comment = U.comment);
|
|
10464
|
-
const ve = new t.Pair(j,
|
|
10464
|
+
const ve = new t.Pair(j, ie);
|
|
10465
10465
|
if (r.options.keepSourceTokens && (ve.srcToken = B), y) {
|
|
10466
10466
|
const le = b;
|
|
10467
10467
|
h.mapIncludes(r, le.items, j) && d(Y, "DUPLICATE_KEY", "Map keys must be unique"), le.items.push(ve);
|
|
10468
10468
|
} else {
|
|
10469
10469
|
const le = new i.YAMLMap(r.schema);
|
|
10470
10470
|
le.flow = !0, le.items.push(ve);
|
|
10471
|
-
const ce = (
|
|
10471
|
+
const ce = (ie ?? j).range;
|
|
10472
10472
|
le.range = [j.range[0], ce[1], ce[2]], b.items.push(le);
|
|
10473
10473
|
}
|
|
10474
|
-
L =
|
|
10474
|
+
L = ie ? ie.range[2] : U.end;
|
|
10475
10475
|
}
|
|
10476
10476
|
}
|
|
10477
10477
|
const O = y ? "}" : "]", [$, ..._] = f.end;
|
|
@@ -10479,8 +10479,8 @@ function Uu() {
|
|
|
10479
10479
|
if ($?.source === O)
|
|
10480
10480
|
P = $.offset + $.source.length;
|
|
10481
10481
|
else {
|
|
10482
|
-
const I = v[0].toUpperCase() + v.substring(1), B =
|
|
10483
|
-
d(L,
|
|
10482
|
+
const I = v[0].toUpperCase() + v.substring(1), B = w ? `${I} must end with a ${O}` : `${I} in block collection must be sufficiently indented and end with a ${O}`;
|
|
10483
|
+
d(L, w ? "MISSING_CHAR" : "BAD_INDENT", B), $ && $.source.length !== 1 && _.unshift($);
|
|
10484
10484
|
}
|
|
10485
10485
|
if (_.length > 0) {
|
|
10486
10486
|
const I = p.resolveEnd(_, P, r.options.strict, d);
|
|
@@ -10493,32 +10493,32 @@ function Uu() {
|
|
|
10493
10493
|
return rn.resolveFlowCollection = n, rn;
|
|
10494
10494
|
}
|
|
10495
10495
|
var Kr;
|
|
10496
|
-
function
|
|
10496
|
+
function Vu() {
|
|
10497
10497
|
if (Kr) return Xi;
|
|
10498
10498
|
Kr = 1;
|
|
10499
|
-
var e = H(), t = ee(), i = _e(), l = Ne(), p =
|
|
10499
|
+
var e = H(), t = ee(), i = _e(), l = Ne(), p = ju(), s = Uu(), c = Hu();
|
|
10500
10500
|
function h(m, n, u, a, r, f) {
|
|
10501
10501
|
const d = u.type === "block-map" ? p.resolveBlockMap(m, n, u, a, f) : u.type === "block-seq" ? s.resolveBlockSeq(m, n, u, a, f) : c.resolveFlowCollection(m, n, u, a, f), g = d.constructor;
|
|
10502
10502
|
return r === "!" || r === g.tagName ? (d.tag = g.tagName, d) : (r && (d.tag = r), d);
|
|
10503
10503
|
}
|
|
10504
10504
|
function o(m, n, u, a, r) {
|
|
10505
|
-
const f = a.tag, d = f ? n.directives.tagName(f.source, (
|
|
10505
|
+
const f = a.tag, d = f ? n.directives.tagName(f.source, (w) => r(f, "TAG_RESOLVE_FAILED", w)) : null;
|
|
10506
10506
|
if (u.type === "block-seq") {
|
|
10507
|
-
const { anchor:
|
|
10507
|
+
const { anchor: w, newlineAfterProp: L } = a, O = w && f ? w.offset > f.offset ? w : f : w ?? f;
|
|
10508
10508
|
O && (!L || L.offset < O.offset) && r(O, "MISSING_CHAR", "Missing newline after block sequence props");
|
|
10509
10509
|
}
|
|
10510
10510
|
const g = u.type === "block-map" ? "map" : u.type === "block-seq" ? "seq" : u.start.source === "{" ? "map" : "seq";
|
|
10511
10511
|
if (!f || !d || d === "!" || d === i.YAMLMap.tagName && g === "map" || d === l.YAMLSeq.tagName && g === "seq")
|
|
10512
10512
|
return h(m, n, u, r, d);
|
|
10513
|
-
let y = n.schema.tags.find((
|
|
10513
|
+
let y = n.schema.tags.find((w) => w.tag === d && w.collection === g);
|
|
10514
10514
|
if (!y) {
|
|
10515
|
-
const
|
|
10516
|
-
if (
|
|
10517
|
-
n.schema.tags.push(Object.assign({},
|
|
10515
|
+
const w = n.schema.knownTags[d];
|
|
10516
|
+
if (w?.collection === g)
|
|
10517
|
+
n.schema.tags.push(Object.assign({}, w, { default: !1 })), y = w;
|
|
10518
10518
|
else
|
|
10519
|
-
return
|
|
10519
|
+
return w ? r(f, "BAD_COLLECTION_TYPE", `${w.tag} used for ${g} collection, but expects ${w.collection ?? "scalar"}`, !0) : r(f, "TAG_RESOLVE_FAILED", `Unresolved tag: ${d}`, !0), h(m, n, u, r, d);
|
|
10520
10520
|
}
|
|
10521
|
-
const v = h(m, n, u, r, d, y),
|
|
10521
|
+
const v = h(m, n, u, r, d, y), S = y.resolve?.(v, (w) => r(f, "TAG_RESOLVE_FAILED", w), n.options) ?? v, b = e.isNode(S) ? S : new t.Scalar(S);
|
|
10522
10522
|
return b.range = v.range, b.tag = d, y?.format && (b.format = y.format), b;
|
|
10523
10523
|
}
|
|
10524
10524
|
return Xi.composeCollection = o, Xi;
|
|
@@ -10534,62 +10534,62 @@ function aa() {
|
|
|
10534
10534
|
return { value: "", type: null, comment: "", range: [h, h, h] };
|
|
10535
10535
|
const m = o.mode === ">" ? e.Scalar.BLOCK_FOLDED : e.Scalar.BLOCK_LITERAL, n = s.source ? l(s.source) : [];
|
|
10536
10536
|
let u = n.length;
|
|
10537
|
-
for (let
|
|
10538
|
-
const b = n[
|
|
10537
|
+
for (let S = n.length - 1; S >= 0; --S) {
|
|
10538
|
+
const b = n[S][1];
|
|
10539
10539
|
if (b === "" || b === "\r")
|
|
10540
|
-
u =
|
|
10540
|
+
u = S;
|
|
10541
10541
|
else
|
|
10542
10542
|
break;
|
|
10543
10543
|
}
|
|
10544
10544
|
if (u === 0) {
|
|
10545
|
-
const
|
|
10545
|
+
const S = o.chomp === "+" && n.length > 0 ? `
|
|
10546
10546
|
`.repeat(Math.max(1, n.length - 1)) : "";
|
|
10547
10547
|
let b = h + o.length;
|
|
10548
|
-
return s.source && (b += s.source.length), { value:
|
|
10548
|
+
return s.source && (b += s.source.length), { value: S, type: m, comment: o.comment, range: [h, b, b] };
|
|
10549
10549
|
}
|
|
10550
10550
|
let a = s.indent + o.indent, r = s.offset + o.length, f = 0;
|
|
10551
|
-
for (let
|
|
10552
|
-
const [b,
|
|
10553
|
-
if (
|
|
10551
|
+
for (let S = 0; S < u; ++S) {
|
|
10552
|
+
const [b, w] = n[S];
|
|
10553
|
+
if (w === "" || w === "\r")
|
|
10554
10554
|
o.indent === 0 && b.length > a && (a = b.length);
|
|
10555
10555
|
else {
|
|
10556
|
-
b.length < a && c(r + b.length, "MISSING_CHAR", "Block scalars with more-indented leading empty lines must use an explicit indentation indicator"), o.indent === 0 && (a = b.length), f =
|
|
10556
|
+
b.length < a && c(r + b.length, "MISSING_CHAR", "Block scalars with more-indented leading empty lines must use an explicit indentation indicator"), o.indent === 0 && (a = b.length), f = S, a === 0 && !p.atRoot && c(r, "BAD_INDENT", "Block scalar values in collections must be indented");
|
|
10557
10557
|
break;
|
|
10558
10558
|
}
|
|
10559
|
-
r += b.length +
|
|
10559
|
+
r += b.length + w.length + 1;
|
|
10560
10560
|
}
|
|
10561
|
-
for (let
|
|
10562
|
-
n[
|
|
10561
|
+
for (let S = n.length - 1; S >= u; --S)
|
|
10562
|
+
n[S][0].length > a && (u = S + 1);
|
|
10563
10563
|
let d = "", g = "", y = !1;
|
|
10564
|
-
for (let
|
|
10565
|
-
d += n[
|
|
10564
|
+
for (let S = 0; S < f; ++S)
|
|
10565
|
+
d += n[S][0].slice(a) + `
|
|
10566
10566
|
`;
|
|
10567
|
-
for (let
|
|
10568
|
-
let [b,
|
|
10569
|
-
r += b.length +
|
|
10570
|
-
const L =
|
|
10571
|
-
if (L && (
|
|
10567
|
+
for (let S = f; S < u; ++S) {
|
|
10568
|
+
let [b, w] = n[S];
|
|
10569
|
+
r += b.length + w.length + 1;
|
|
10570
|
+
const L = w[w.length - 1] === "\r";
|
|
10571
|
+
if (L && (w = w.slice(0, -1)), w && b.length < a) {
|
|
10572
10572
|
const $ = `Block scalar lines must not be less indented than their ${o.indent ? "explicit indentation indicator" : "first line"}`;
|
|
10573
|
-
c(r -
|
|
10573
|
+
c(r - w.length - (L ? 2 : 1), "BAD_INDENT", $), b = "";
|
|
10574
10574
|
}
|
|
10575
|
-
m === e.Scalar.BLOCK_LITERAL ? (d += g + b.slice(a) +
|
|
10576
|
-
`) : b.length > a ||
|
|
10575
|
+
m === e.Scalar.BLOCK_LITERAL ? (d += g + b.slice(a) + w, g = `
|
|
10576
|
+
`) : b.length > a || w[0] === " " ? (g === " " ? g = `
|
|
10577
10577
|
` : !y && g === `
|
|
10578
10578
|
` && (g = `
|
|
10579
10579
|
|
|
10580
|
-
`), d += g + b.slice(a) +
|
|
10581
|
-
`, y = !0) :
|
|
10580
|
+
`), d += g + b.slice(a) + w, g = `
|
|
10581
|
+
`, y = !0) : w === "" ? g === `
|
|
10582
10582
|
` ? d += `
|
|
10583
10583
|
` : g = `
|
|
10584
|
-
` : (d += g +
|
|
10584
|
+
` : (d += g + w, g = " ", y = !1);
|
|
10585
10585
|
}
|
|
10586
10586
|
switch (o.chomp) {
|
|
10587
10587
|
case "-":
|
|
10588
10588
|
break;
|
|
10589
10589
|
case "+":
|
|
10590
|
-
for (let
|
|
10590
|
+
for (let S = u; S < n.length; ++S)
|
|
10591
10591
|
d += `
|
|
10592
|
-
` + n[
|
|
10592
|
+
` + n[S][0].slice(a);
|
|
10593
10593
|
d[d.length - 1] !== `
|
|
10594
10594
|
` && (d += `
|
|
10595
10595
|
`);
|
|
@@ -10636,8 +10636,8 @@ function aa() {
|
|
|
10636
10636
|
default: {
|
|
10637
10637
|
const v = `Unexpected token in block scalar header: ${y.type}`;
|
|
10638
10638
|
h(y, "UNEXPECTED_TOKEN", v);
|
|
10639
|
-
const
|
|
10640
|
-
|
|
10639
|
+
const S = y.source;
|
|
10640
|
+
S && typeof S == "string" && (d += S.length);
|
|
10641
10641
|
}
|
|
10642
10642
|
}
|
|
10643
10643
|
}
|
|
@@ -10659,16 +10659,16 @@ function la() {
|
|
|
10659
10659
|
function i(n, u, a) {
|
|
10660
10660
|
const { offset: r, type: f, source: d, end: g } = n;
|
|
10661
10661
|
let y, v;
|
|
10662
|
-
const
|
|
10662
|
+
const S = (L, O, $) => a(r + L, O, $);
|
|
10663
10663
|
switch (f) {
|
|
10664
10664
|
case "scalar":
|
|
10665
|
-
y = e.Scalar.PLAIN, v = l(d,
|
|
10665
|
+
y = e.Scalar.PLAIN, v = l(d, S);
|
|
10666
10666
|
break;
|
|
10667
10667
|
case "single-quoted-scalar":
|
|
10668
|
-
y = e.Scalar.QUOTE_SINGLE, v = p(d,
|
|
10668
|
+
y = e.Scalar.QUOTE_SINGLE, v = p(d, S);
|
|
10669
10669
|
break;
|
|
10670
10670
|
case "double-quoted-scalar":
|
|
10671
|
-
y = e.Scalar.QUOTE_DOUBLE, v = c(d,
|
|
10671
|
+
y = e.Scalar.QUOTE_DOUBLE, v = c(d, S);
|
|
10672
10672
|
break;
|
|
10673
10673
|
/* istanbul ignore next should not happen */
|
|
10674
10674
|
default:
|
|
@@ -10679,12 +10679,12 @@ function la() {
|
|
|
10679
10679
|
range: [r, r + d.length, r + d.length]
|
|
10680
10680
|
};
|
|
10681
10681
|
}
|
|
10682
|
-
const b = r + d.length,
|
|
10682
|
+
const b = r + d.length, w = t.resolveEnd(g, b, u, a);
|
|
10683
10683
|
return {
|
|
10684
10684
|
value: v,
|
|
10685
10685
|
type: y,
|
|
10686
|
-
comment:
|
|
10687
|
-
range: [r, b,
|
|
10686
|
+
comment: w.comment,
|
|
10687
|
+
range: [r, b, w.offset]
|
|
10688
10688
|
};
|
|
10689
10689
|
}
|
|
10690
10690
|
function l(n, u) {
|
|
@@ -10835,7 +10835,7 @@ function la() {
|
|
|
10835
10835
|
return cn.resolveFlowScalar = i, cn;
|
|
10836
10836
|
}
|
|
10837
10837
|
var Xr;
|
|
10838
|
-
function
|
|
10838
|
+
function Wu() {
|
|
10839
10839
|
if (Xr) return an;
|
|
10840
10840
|
Xr = 1;
|
|
10841
10841
|
var e = H(), t = ee(), i = aa(), l = la();
|
|
@@ -10845,11 +10845,11 @@ function Vu() {
|
|
|
10845
10845
|
h.options.stringKeys && h.atKey ? g = h.schema[e.SCALAR] : d ? g = s(h.schema, u, d, m, n) : o.type === "scalar" ? g = c(h, u, o, n) : g = h.schema[e.SCALAR];
|
|
10846
10846
|
let y;
|
|
10847
10847
|
try {
|
|
10848
|
-
const v = g.resolve(u, (
|
|
10848
|
+
const v = g.resolve(u, (S) => n(m ?? o, "TAG_RESOLVE_FAILED", S), h.options);
|
|
10849
10849
|
y = e.isScalar(v) ? v : new t.Scalar(v);
|
|
10850
10850
|
} catch (v) {
|
|
10851
|
-
const
|
|
10852
|
-
n(m ?? o, "TAG_RESOLVE_FAILED",
|
|
10851
|
+
const S = v instanceof Error ? v.message : String(v);
|
|
10852
|
+
n(m ?? o, "TAG_RESOLVE_FAILED", S), y = new t.Scalar(u);
|
|
10853
10853
|
}
|
|
10854
10854
|
return y.range = f, y.source = u, a && (y.type = a), d && (y.tag = d), g.format && (y.format = g.format), r && (y.comment = r), y;
|
|
10855
10855
|
}
|
|
@@ -10883,7 +10883,7 @@ function Vu() {
|
|
|
10883
10883
|
return an.composeScalar = p, an;
|
|
10884
10884
|
}
|
|
10885
10885
|
var un = {}, Qr;
|
|
10886
|
-
function
|
|
10886
|
+
function Yu() {
|
|
10887
10887
|
if (Qr) return un;
|
|
10888
10888
|
Qr = 1;
|
|
10889
10889
|
function e(t, i, l) {
|
|
@@ -10908,49 +10908,49 @@ function Wu() {
|
|
|
10908
10908
|
return un.emptyScalarPosition = e, un;
|
|
10909
10909
|
}
|
|
10910
10910
|
var Zr;
|
|
10911
|
-
function
|
|
10911
|
+
function Ku() {
|
|
10912
10912
|
if (Zr) return Lt;
|
|
10913
10913
|
Zr = 1;
|
|
10914
|
-
var e = Dt(), t = H(), i =
|
|
10914
|
+
var e = Dt(), t = H(), i = Vu(), l = Wu(), p = it(), s = Yu();
|
|
10915
10915
|
const c = { composeNode: h, composeEmptyNode: o };
|
|
10916
10916
|
function h(n, u, a, r) {
|
|
10917
10917
|
const f = n.atKey, { spaceBefore: d, comment: g, anchor: y, tag: v } = a;
|
|
10918
|
-
let
|
|
10918
|
+
let S, b = !0;
|
|
10919
10919
|
switch (u.type) {
|
|
10920
10920
|
case "alias":
|
|
10921
|
-
|
|
10921
|
+
S = m(n, u, r), (y || v) && r(u, "ALIAS_PROPS", "An alias node must not specify any properties");
|
|
10922
10922
|
break;
|
|
10923
10923
|
case "scalar":
|
|
10924
10924
|
case "single-quoted-scalar":
|
|
10925
10925
|
case "double-quoted-scalar":
|
|
10926
10926
|
case "block-scalar":
|
|
10927
|
-
|
|
10927
|
+
S = l.composeScalar(n, u, v, r), y && (S.anchor = y.source.substring(1));
|
|
10928
10928
|
break;
|
|
10929
10929
|
case "block-map":
|
|
10930
10930
|
case "block-seq":
|
|
10931
10931
|
case "flow-collection":
|
|
10932
10932
|
try {
|
|
10933
|
-
|
|
10934
|
-
} catch (
|
|
10935
|
-
const L =
|
|
10933
|
+
S = i.composeCollection(c, n, u, a, r), y && (S.anchor = y.source.substring(1));
|
|
10934
|
+
} catch (w) {
|
|
10935
|
+
const L = w instanceof Error ? w.message : String(w);
|
|
10936
10936
|
r(u, "RESOURCE_EXHAUSTION", L);
|
|
10937
10937
|
}
|
|
10938
10938
|
break;
|
|
10939
10939
|
default: {
|
|
10940
|
-
const
|
|
10941
|
-
r(u, "UNEXPECTED_TOKEN",
|
|
10940
|
+
const w = u.type === "error" ? u.message : `Unsupported token (type: ${u.type})`;
|
|
10941
|
+
r(u, "UNEXPECTED_TOKEN", w), b = !1;
|
|
10942
10942
|
}
|
|
10943
10943
|
}
|
|
10944
|
-
return
|
|
10944
|
+
return S ?? (S = o(n, u.offset, void 0, null, a, r)), y && S.anchor === "" && r(y, "BAD_ALIAS", "Anchor cannot be an empty string"), f && n.options.stringKeys && (!t.isScalar(S) || typeof S.value != "string" || S.tag && S.tag !== "tag:yaml.org,2002:str") && r(v ?? u, "NON_STRING_KEY", "With stringKeys, all keys must be strings"), d && (S.spaceBefore = !0), g && (u.type === "scalar" && u.source === "" ? S.comment = g : S.commentBefore = g), n.options.keepSourceTokens && b && (S.srcToken = u), S;
|
|
10945
10945
|
}
|
|
10946
|
-
function o(n, u, a, r, { spaceBefore: f, comment: d, anchor: g, tag: y, end: v },
|
|
10946
|
+
function o(n, u, a, r, { spaceBefore: f, comment: d, anchor: g, tag: y, end: v }, S) {
|
|
10947
10947
|
const b = {
|
|
10948
10948
|
type: "scalar",
|
|
10949
10949
|
offset: s.emptyScalarPosition(u, a, r),
|
|
10950
10950
|
indent: -1,
|
|
10951
10951
|
source: ""
|
|
10952
|
-
},
|
|
10953
|
-
return g && (
|
|
10952
|
+
}, w = l.composeScalar(n, b, y, S);
|
|
10953
|
+
return g && (w.anchor = g.source.substring(1), w.anchor === "" && S(g, "BAD_ALIAS", "Anchor cannot be an empty string")), f && (w.spaceBefore = !0), d && (w.comment = d, w.range[2] = v), w;
|
|
10954
10954
|
}
|
|
10955
10955
|
function m({ options: n }, { offset: u, source: a, end: r }, f) {
|
|
10956
10956
|
const d = new e.Alias(a.substring(1));
|
|
@@ -10961,10 +10961,10 @@ function Yu() {
|
|
|
10961
10961
|
return Lt.composeEmptyNode = o, Lt.composeNode = h, Lt;
|
|
10962
10962
|
}
|
|
10963
10963
|
var eo;
|
|
10964
|
-
function
|
|
10964
|
+
function Ju() {
|
|
10965
10965
|
if (eo) return zi;
|
|
10966
10966
|
eo = 1;
|
|
10967
|
-
var e = Ut(), t =
|
|
10967
|
+
var e = Ut(), t = Ku(), i = it(), l = Vt();
|
|
10968
10968
|
function p(s, c, { offset: h, start: o, value: m, end: n }, u) {
|
|
10969
10969
|
const a = Object.assign({ _directives: c }, s), r = new e.Document(void 0, a), f = {
|
|
10970
10970
|
atKey: !1,
|
|
@@ -10990,7 +10990,7 @@ var to;
|
|
|
10990
10990
|
function ca() {
|
|
10991
10991
|
if (to) return Li;
|
|
10992
10992
|
to = 1;
|
|
10993
|
-
var e = Ee, t = Uo(), i = Ut(), l = Ht(), p = H(), s =
|
|
10993
|
+
var e = Ee, t = Uo(), i = Ut(), l = Ht(), p = H(), s = Ju(), c = it();
|
|
10994
10994
|
function h(n) {
|
|
10995
10995
|
if (typeof n == "number")
|
|
10996
10996
|
return [n, n + 1];
|
|
@@ -11143,9 +11143,9 @@ ${a.comment}` : a.comment;
|
|
|
11143
11143
|
}
|
|
11144
11144
|
return Li.Composer = m, Li;
|
|
11145
11145
|
}
|
|
11146
|
-
var re = {},
|
|
11147
|
-
function
|
|
11148
|
-
if (io) return
|
|
11146
|
+
var re = {}, Ke = {}, io;
|
|
11147
|
+
function zu() {
|
|
11148
|
+
if (io) return Ke;
|
|
11149
11149
|
io = 1;
|
|
11150
11150
|
var e = aa(), t = la(), i = Ht(), l = Gt();
|
|
11151
11151
|
function p(n, u = !0, a) {
|
|
@@ -11181,13 +11181,13 @@ function Ju() {
|
|
|
11181
11181
|
switch (y[0]) {
|
|
11182
11182
|
case "|":
|
|
11183
11183
|
case ">": {
|
|
11184
|
-
const
|
|
11185
|
-
`), b = y.substring(0,
|
|
11184
|
+
const S = y.indexOf(`
|
|
11185
|
+
`), b = y.substring(0, S), w = y.substring(S + 1) + `
|
|
11186
11186
|
`, L = [
|
|
11187
11187
|
{ type: "block-scalar-header", offset: d, indent: r, source: b }
|
|
11188
11188
|
];
|
|
11189
11189
|
return o(L, v) || L.push({ type: "newline", offset: -1, indent: r, source: `
|
|
11190
|
-
` }), { type: "block-scalar", offset: d, indent: r, props: L, source:
|
|
11190
|
+
` }), { type: "block-scalar", offset: d, indent: r, props: L, source: w };
|
|
11191
11191
|
}
|
|
11192
11192
|
case '"':
|
|
11193
11193
|
return { type: "double-quoted-scalar", offset: d, indent: r, source: y, end: v };
|
|
@@ -11208,10 +11208,10 @@ function Ju() {
|
|
|
11208
11208
|
g = "QUOTE_DOUBLE";
|
|
11209
11209
|
break;
|
|
11210
11210
|
case "block-scalar": {
|
|
11211
|
-
const
|
|
11212
|
-
if (
|
|
11211
|
+
const S = n.props[0];
|
|
11212
|
+
if (S.type !== "block-scalar-header")
|
|
11213
11213
|
throw new Error("Invalid block scalar header");
|
|
11214
|
-
g =
|
|
11214
|
+
g = S.source[0] === ">" ? "BLOCK_FOLDED" : "BLOCK_LITERAL";
|
|
11215
11215
|
break;
|
|
11216
11216
|
}
|
|
11217
11217
|
default:
|
|
@@ -11302,10 +11302,10 @@ function Ju() {
|
|
|
11302
11302
|
}
|
|
11303
11303
|
}
|
|
11304
11304
|
}
|
|
11305
|
-
return
|
|
11305
|
+
return Ke.createScalarToken = s, Ke.resolveAsScalar = p, Ke.setScalarValue = c, Ke;
|
|
11306
11306
|
}
|
|
11307
11307
|
var fn = {}, no;
|
|
11308
|
-
function
|
|
11308
|
+
function Xu() {
|
|
11309
11309
|
if (no) return fn;
|
|
11310
11310
|
no = 1;
|
|
11311
11311
|
const e = (l) => "type" in l ? t(l) : i(l);
|
|
@@ -11360,7 +11360,7 @@ function zu() {
|
|
|
11360
11360
|
return fn.stringify = e, fn;
|
|
11361
11361
|
}
|
|
11362
11362
|
var hn = {}, so;
|
|
11363
|
-
function
|
|
11363
|
+
function Qu() {
|
|
11364
11364
|
if (so) return hn;
|
|
11365
11365
|
so = 1;
|
|
11366
11366
|
const e = /* @__PURE__ */ Symbol("break visit"), t = /* @__PURE__ */ Symbol("skip children"), i = /* @__PURE__ */ Symbol("remove item");
|
|
@@ -11411,7 +11411,7 @@ var ro;
|
|
|
11411
11411
|
function Kn() {
|
|
11412
11412
|
if (ro) return re;
|
|
11413
11413
|
ro = 1;
|
|
11414
|
-
var e =
|
|
11414
|
+
var e = zu(), t = Xu(), i = Qu();
|
|
11415
11415
|
const l = "\uFEFF", p = "", s = "", c = "", h = (u) => !!u && "items" in u, o = (u) => !!u && (u.type === "scalar" || u.type === "single-quoted-scalar" || u.type === "double-quoted-scalar" || u.type === "block-scalar");
|
|
11416
11416
|
function m(u) {
|
|
11417
11417
|
switch (u) {
|
|
@@ -12319,15 +12319,15 @@ function ha() {
|
|
|
12319
12319
|
if (d && r.sep && !r.value) {
|
|
12320
12320
|
const y = [];
|
|
12321
12321
|
for (let v = 0; v < r.sep.length; ++v) {
|
|
12322
|
-
const
|
|
12323
|
-
switch (
|
|
12322
|
+
const S = r.sep[v];
|
|
12323
|
+
switch (S.type) {
|
|
12324
12324
|
case "newline":
|
|
12325
12325
|
y.push(v);
|
|
12326
12326
|
break;
|
|
12327
12327
|
case "space":
|
|
12328
12328
|
break;
|
|
12329
12329
|
case "comment":
|
|
12330
|
-
|
|
12330
|
+
S.indent > a.indent && (y.length = 0);
|
|
12331
12331
|
break;
|
|
12332
12332
|
default:
|
|
12333
12333
|
y.length = 0;
|
|
@@ -12361,12 +12361,12 @@ function ha() {
|
|
|
12361
12361
|
items: [{ start: g, key: null, sep: [this.sourceToken] }]
|
|
12362
12362
|
});
|
|
12363
12363
|
else if (s(r.key) && !l(r.sep, "newline")) {
|
|
12364
|
-
const y = h(r.start), v = r.key,
|
|
12365
|
-
|
|
12364
|
+
const y = h(r.start), v = r.key, S = r.sep;
|
|
12365
|
+
S.push(this.sourceToken), delete r.key, delete r.sep, this.stack.push({
|
|
12366
12366
|
type: "block-map",
|
|
12367
12367
|
offset: this.offset,
|
|
12368
12368
|
indent: this.indent,
|
|
12369
|
-
items: [{ start: y, key: v, sep:
|
|
12369
|
+
items: [{ start: y, key: v, sep: S }]
|
|
12370
12370
|
});
|
|
12371
12371
|
} else g.length > 0 ? r.sep = r.sep.concat(g, this.sourceToken) : r.sep.push(this.sourceToken);
|
|
12372
12372
|
else if (l(r.start, "newline"))
|
|
@@ -12619,7 +12619,7 @@ function ha() {
|
|
|
12619
12619
|
return mn.Parser = n, mn;
|
|
12620
12620
|
}
|
|
12621
12621
|
var xe = {}, co;
|
|
12622
|
-
function
|
|
12622
|
+
function Zu() {
|
|
12623
12623
|
if (co) return xe;
|
|
12624
12624
|
co = 1;
|
|
12625
12625
|
var e = ca(), t = Ut(), i = Ht(), l = Vo(), p = H(), s = fa(), c = ha();
|
|
@@ -12630,18 +12630,18 @@ function Qu() {
|
|
|
12630
12630
|
function o(a, r = {}) {
|
|
12631
12631
|
const { lineCounter: f, prettyErrors: d } = h(r), g = new c.Parser(f?.addNewLine), y = new e.Composer(r), v = Array.from(y.compose(g.parse(a)));
|
|
12632
12632
|
if (d && f)
|
|
12633
|
-
for (const
|
|
12634
|
-
|
|
12633
|
+
for (const S of v)
|
|
12634
|
+
S.errors.forEach(i.prettifyError(a, f)), S.warnings.forEach(i.prettifyError(a, f));
|
|
12635
12635
|
return v.length > 0 ? v : Object.assign([], { empty: !0 }, y.streamInfo());
|
|
12636
12636
|
}
|
|
12637
12637
|
function m(a, r = {}) {
|
|
12638
12638
|
const { lineCounter: f, prettyErrors: d } = h(r), g = new c.Parser(f?.addNewLine), y = new e.Composer(r);
|
|
12639
12639
|
let v = null;
|
|
12640
|
-
for (const
|
|
12640
|
+
for (const S of y.compose(g.parse(a), !0, a.length))
|
|
12641
12641
|
if (!v)
|
|
12642
|
-
v =
|
|
12642
|
+
v = S;
|
|
12643
12643
|
else if (v.options.logLevel !== "silent") {
|
|
12644
|
-
v.errors.push(new i.YAMLParseError(
|
|
12644
|
+
v.errors.push(new i.YAMLParseError(S.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
|
|
12645
12645
|
break;
|
|
12646
12646
|
}
|
|
12647
12647
|
return d && f && (v.errors.forEach(i.prettifyError(a, f)), v.warnings.forEach(i.prettifyError(a, f))), v;
|
|
@@ -12675,13 +12675,13 @@ function Qu() {
|
|
|
12675
12675
|
return xe.parse = n, xe.parseAllDocuments = o, xe.parseDocument = m, xe.stringify = u, xe;
|
|
12676
12676
|
}
|
|
12677
12677
|
var uo;
|
|
12678
|
-
function
|
|
12678
|
+
function ef() {
|
|
12679
12679
|
if (uo) return W;
|
|
12680
12680
|
uo = 1;
|
|
12681
|
-
var e = ca(), t = Ut(), i = na(), l = Ht(), p = Dt(), s = H(), c = $e(), h = ee(), o = _e(), m = Ne(), n = Kn(), u = ua(), a = fa(), r = ha(), f =
|
|
12681
|
+
var e = ca(), t = Ut(), i = na(), l = Ht(), p = Dt(), s = H(), c = $e(), h = ee(), o = _e(), m = Ne(), n = Kn(), u = ua(), a = fa(), r = ha(), f = Zu(), d = Mt();
|
|
12682
12682
|
return W.Composer = e.Composer, W.Document = t.Document, W.Schema = i.Schema, W.YAMLError = l.YAMLError, W.YAMLParseError = l.YAMLParseError, W.YAMLWarning = l.YAMLWarning, W.Alias = p.Alias, W.isAlias = s.isAlias, W.isCollection = s.isCollection, W.isDocument = s.isDocument, W.isMap = s.isMap, W.isNode = s.isNode, W.isPair = s.isPair, W.isScalar = s.isScalar, W.isSeq = s.isSeq, W.Pair = c.Pair, W.Scalar = h.Scalar, W.YAMLMap = o.YAMLMap, W.YAMLSeq = m.YAMLSeq, W.CST = n, W.Lexer = u.Lexer, W.LineCounter = a.LineCounter, W.Parser = r.Parser, W.parse = f.parse, W.parseAllDocuments = f.parseAllDocuments, W.parseDocument = f.parseDocument, W.stringify = f.stringify, W.visit = d.visit, W.visitAsync = d.visitAsync, W;
|
|
12683
12683
|
}
|
|
12684
|
-
var
|
|
12684
|
+
var pa = ef();
|
|
12685
12685
|
const Q = {
|
|
12686
12686
|
missingGit: "Git is required to fetch templates, but it is not installed or not available on PATH. Please install Git and try again.",
|
|
12687
12687
|
missingTemplate: [
|
|
@@ -12743,7 +12743,7 @@ function Jn(e) {
|
|
|
12743
12743
|
async doCleanup(i) {
|
|
12744
12744
|
if (Bn(oe("bgRed", fo(i))), this.shouldCleanup && this.name)
|
|
12745
12745
|
try {
|
|
12746
|
-
await
|
|
12746
|
+
await uf(this.name);
|
|
12747
12747
|
} catch (l) {
|
|
12748
12748
|
console.error(oe("bgRed", fo(l)));
|
|
12749
12749
|
}
|
|
@@ -12752,54 +12752,59 @@ function Jn(e) {
|
|
|
12752
12752
|
}
|
|
12753
12753
|
};
|
|
12754
12754
|
}
|
|
12755
|
-
const
|
|
12756
|
-
async function
|
|
12755
|
+
const ue = _a(Oa.exec), Wt = (e) => typeof e == "object" && e !== null && "code" in e;
|
|
12756
|
+
async function da() {
|
|
12757
12757
|
try {
|
|
12758
|
-
await
|
|
12758
|
+
await ue("git --version");
|
|
12759
12759
|
} catch {
|
|
12760
12760
|
throw new Error(Q.missingGit);
|
|
12761
12761
|
}
|
|
12762
12762
|
}
|
|
12763
12763
|
async function nf(e, t, i, l = $n) {
|
|
12764
|
-
await
|
|
12764
|
+
await da();
|
|
12765
12765
|
const p = Ee.cwd();
|
|
12766
12766
|
try {
|
|
12767
|
-
await
|
|
12767
|
+
await se.mkdir(e);
|
|
12768
12768
|
} catch (s) {
|
|
12769
12769
|
throw Wt(s) && s.code === "EEXIST" ? new Error(Q.folderAlreadyExists(e)) : new Error(Q.generic);
|
|
12770
12770
|
}
|
|
12771
12771
|
try {
|
|
12772
|
-
Ee.chdir(e), await
|
|
12772
|
+
Ee.chdir(e), await ue("git init"), await ue(`git remote add origin ${t}`), await ue("git config core.sparseCheckout true"), await ue(`git sparse-checkout set --no-cone ${i}/*`), await ue(`git pull origin ${l}`);
|
|
12773
12773
|
try {
|
|
12774
|
-
if (!(await
|
|
12774
|
+
if (!(await se.stat(i)).isDirectory())
|
|
12775
12775
|
throw new Error();
|
|
12776
12776
|
} catch {
|
|
12777
12777
|
throw new Error(Q.missingTemplate);
|
|
12778
12778
|
}
|
|
12779
|
-
await
|
|
12779
|
+
await ma(i, "."), await se.rm(".git", { recursive: !0, force: !0 });
|
|
12780
12780
|
} finally {
|
|
12781
12781
|
Ee.chdir(p);
|
|
12782
12782
|
}
|
|
12783
12783
|
}
|
|
12784
12784
|
async function sf(e, t, i, l = $n) {
|
|
12785
|
-
await
|
|
12785
|
+
await da();
|
|
12786
12786
|
const p = Ee.cwd();
|
|
12787
|
-
let s = {};
|
|
12787
|
+
let s = { catalog: {}, version: "" };
|
|
12788
12788
|
try {
|
|
12789
|
-
await
|
|
12789
|
+
await se.mkdir(e);
|
|
12790
12790
|
} catch (c) {
|
|
12791
12791
|
throw Wt(c) && c.code === "EEXIST" ? new Error(Q.folderAlreadyExists(e)) : new Error(Q.generic);
|
|
12792
12792
|
}
|
|
12793
12793
|
try {
|
|
12794
|
-
Ee.chdir(e), await
|
|
12794
|
+
Ee.chdir(e), await ue("git init"), await ue(`git remote add origin ${t}`), await ue("git config core.sparseCheckout true"), await ue(`git sparse-checkout set --no-cone ${i}/*`), await ue(`git pull origin ${l}`);
|
|
12795
12795
|
try {
|
|
12796
|
-
if (!(await
|
|
12796
|
+
if (!(await se.stat(i)).isDirectory())
|
|
12797
12797
|
throw new Error();
|
|
12798
12798
|
} catch {
|
|
12799
12799
|
throw new Error(Q.missingTemplate);
|
|
12800
12800
|
}
|
|
12801
|
-
const c = await
|
|
12802
|
-
|
|
12801
|
+
const [{ stdout: c }, { stdout: h }] = await Promise.all([
|
|
12802
|
+
ue("git show FETCH_HEAD:pnpm-workspace.yaml"),
|
|
12803
|
+
ue("git show FETCH_HEAD:package.json")
|
|
12804
|
+
]), o = pa.parse(c), m = JSON.parse(h);
|
|
12805
|
+
if (!m.version)
|
|
12806
|
+
throw new Error("Root package.json does not have a version defined");
|
|
12807
|
+
s = { catalog: o.catalog ?? {}, version: m.version }, await ma(i, "."), await se.rm(".git", { recursive: !0, force: !0 });
|
|
12803
12808
|
} finally {
|
|
12804
12809
|
Ee.chdir(p);
|
|
12805
12810
|
}
|
|
@@ -12815,38 +12820,45 @@ function rf(e, t) {
|
|
|
12815
12820
|
}
|
|
12816
12821
|
});
|
|
12817
12822
|
}
|
|
12818
|
-
async function
|
|
12823
|
+
async function ma(e, t) {
|
|
12819
12824
|
if (!(e === "." || e === "" || ["./", "/"].includes(e.split("/")[0]))) {
|
|
12820
|
-
if (
|
|
12825
|
+
if (Re.isAbsolute(e))
|
|
12821
12826
|
throw new Error(Q.generic);
|
|
12822
12827
|
try {
|
|
12823
|
-
const i = await
|
|
12828
|
+
const i = await se.readdir(e);
|
|
12824
12829
|
await Promise.all(
|
|
12825
12830
|
i.map(async (p) => {
|
|
12826
|
-
const s =
|
|
12827
|
-
await
|
|
12831
|
+
const s = Re.join(e, p), c = Re.join(t, p);
|
|
12832
|
+
await se.rename(s, c);
|
|
12828
12833
|
})
|
|
12829
12834
|
);
|
|
12830
12835
|
const l = e.split("/")[0];
|
|
12831
|
-
await
|
|
12836
|
+
await se.rm(l, { recursive: !0, force: !0 });
|
|
12832
12837
|
} catch (i) {
|
|
12833
12838
|
throw Wt(i) && i.code === "ENOENT" ? new Error(Q.missingTemplate) : i;
|
|
12834
12839
|
}
|
|
12835
12840
|
}
|
|
12836
12841
|
}
|
|
12837
|
-
async function
|
|
12838
|
-
const t = await
|
|
12839
|
-
return
|
|
12842
|
+
async function ga(e) {
|
|
12843
|
+
const t = await se.readFile(Re.join(e, "package.json"), "utf-8"), i = JSON.parse(t), l = i._id, p = i.readme;
|
|
12844
|
+
return Iu(i, (c) => {
|
|
12840
12845
|
console.error(c);
|
|
12841
12846
|
}), l || delete i._id, p || delete i.readme, i;
|
|
12842
12847
|
}
|
|
12843
12848
|
async function of(e, t) {
|
|
12844
|
-
await
|
|
12849
|
+
await se.writeFile(Re.join(e, "package.json"), JSON.stringify(t, null, 2));
|
|
12845
12850
|
}
|
|
12846
|
-
function af(e) {
|
|
12851
|
+
async function af(e, t) {
|
|
12852
|
+
const i = {
|
|
12853
|
+
...t ? { overrides: t } : {},
|
|
12854
|
+
minimumReleaseAgeExclude: ["@arcgis/*", "@esri/*"]
|
|
12855
|
+
};
|
|
12856
|
+
await se.writeFile(Re.join(e, "pnpm-workspace.yaml"), pa.stringify(i));
|
|
12857
|
+
}
|
|
12858
|
+
function lf(e) {
|
|
12847
12859
|
return e.scripts?.start ? "start" : "dev";
|
|
12848
12860
|
}
|
|
12849
|
-
const
|
|
12861
|
+
const cf = (e) => {
|
|
12850
12862
|
const t = {};
|
|
12851
12863
|
return Object.keys(e).forEach((i) => {
|
|
12852
12864
|
const l = i;
|
|
@@ -12865,7 +12877,7 @@ const lf = (e) => {
|
|
|
12865
12877
|
const p = e.template;
|
|
12866
12878
|
if (!p)
|
|
12867
12879
|
return;
|
|
12868
|
-
const s =
|
|
12880
|
+
const s = mf(p);
|
|
12869
12881
|
if (!s || !_n[s])
|
|
12870
12882
|
throw new Error(`Invalid template: ${p}`);
|
|
12871
12883
|
t.template = s;
|
|
@@ -12884,35 +12896,35 @@ const lf = (e) => {
|
|
|
12884
12896
|
}
|
|
12885
12897
|
}), t;
|
|
12886
12898
|
};
|
|
12887
|
-
async function
|
|
12899
|
+
async function uf(e) {
|
|
12888
12900
|
try {
|
|
12889
|
-
await
|
|
12901
|
+
await se.stat(e) && await se.rm(e, { recursive: !0 });
|
|
12890
12902
|
} catch (t) {
|
|
12891
12903
|
if (Wt(t) && t.code === "ENOENT")
|
|
12892
12904
|
return;
|
|
12893
12905
|
throw t;
|
|
12894
12906
|
}
|
|
12895
12907
|
}
|
|
12896
|
-
async function
|
|
12908
|
+
async function ff(e, t) {
|
|
12897
12909
|
const i = _n[e];
|
|
12898
12910
|
let l = vo;
|
|
12899
12911
|
t.host && (l = t.host);
|
|
12900
12912
|
const p = `git@${l}:${i}.git`;
|
|
12901
12913
|
try {
|
|
12902
|
-
await
|
|
12914
|
+
await ue(`git ls-remote ${p}`);
|
|
12903
12915
|
} catch (s) {
|
|
12904
12916
|
return console.error(s), !1;
|
|
12905
12917
|
}
|
|
12906
12918
|
return !0;
|
|
12907
12919
|
}
|
|
12908
|
-
function
|
|
12920
|
+
function ya(e, t) {
|
|
12909
12921
|
const i = _n[e];
|
|
12910
12922
|
let l = vo;
|
|
12911
12923
|
t.host && (l = t.host);
|
|
12912
12924
|
const p = t.ssh ? "git@" : "https://", s = t.accessToken ? `${t.accessToken}@` : "", c = t.ssh ? ":" : "/";
|
|
12913
12925
|
return `${p}${s}${l}${c}${i}`;
|
|
12914
12926
|
}
|
|
12915
|
-
function
|
|
12927
|
+
function hf(e, t) {
|
|
12916
12928
|
["dependencies", "devDependencies", "peerDependencies"].forEach((l) => {
|
|
12917
12929
|
if (t[l]) {
|
|
12918
12930
|
const p = t[l];
|
|
@@ -12922,7 +12934,7 @@ function ff(e, t) {
|
|
|
12922
12934
|
}
|
|
12923
12935
|
});
|
|
12924
12936
|
}
|
|
12925
|
-
function
|
|
12937
|
+
function pf(e, t) {
|
|
12926
12938
|
const i = bo[e];
|
|
12927
12939
|
if (t === On)
|
|
12928
12940
|
throw new Error(Q.templateNotAvailable(t, e));
|
|
@@ -12934,7 +12946,7 @@ function hf(e, t) {
|
|
|
12934
12946
|
function zn(e) {
|
|
12935
12947
|
return e.trim().toLowerCase();
|
|
12936
12948
|
}
|
|
12937
|
-
function
|
|
12949
|
+
function ba(e, t, i) {
|
|
12938
12950
|
if (!t)
|
|
12939
12951
|
return;
|
|
12940
12952
|
const l = e.get(t);
|
|
@@ -12944,18 +12956,18 @@ function ya(e, t, i) {
|
|
|
12944
12956
|
}
|
|
12945
12957
|
l !== i && e.set(t, null);
|
|
12946
12958
|
}
|
|
12947
|
-
const Xn = /* @__PURE__ */ new Map(),
|
|
12948
|
-
for (const e of
|
|
12949
|
-
|
|
12959
|
+
const Xn = /* @__PURE__ */ new Map(), df = Ce.map(([e]) => e);
|
|
12960
|
+
for (const e of df)
|
|
12961
|
+
ba(Xn, zn(e), e);
|
|
12950
12962
|
for (const [e, t] of Ce)
|
|
12951
|
-
t.customName &&
|
|
12952
|
-
function
|
|
12963
|
+
t.customName && ba(Xn, zn(t.customName), e);
|
|
12964
|
+
function mf(e) {
|
|
12953
12965
|
const t = zn(e), i = Xn.get(t);
|
|
12954
12966
|
if (i && i !== null)
|
|
12955
12967
|
return i;
|
|
12956
12968
|
}
|
|
12957
|
-
async function
|
|
12958
|
-
const { startMsg: l, successMsg: p, failureMsg: s } = e, c =
|
|
12969
|
+
async function va(e, t, i) {
|
|
12970
|
+
const { startMsg: l, successMsg: p, failureMsg: s } = e, c = Wl();
|
|
12959
12971
|
c.start(l);
|
|
12960
12972
|
try {
|
|
12961
12973
|
await t(), c.stop(p);
|
|
@@ -12963,14 +12975,14 @@ async function ba(e, t, i) {
|
|
|
12963
12975
|
c.stop(oe("bgRed", s)), i(h, c);
|
|
12964
12976
|
}
|
|
12965
12977
|
}
|
|
12966
|
-
async function
|
|
12978
|
+
async function gf(e) {
|
|
12967
12979
|
const t = Jn(e);
|
|
12968
12980
|
try {
|
|
12969
12981
|
Ro();
|
|
12970
|
-
const i = await
|
|
12982
|
+
const i = await jl(
|
|
12971
12983
|
{
|
|
12972
12984
|
projectName: e.name ? async () => await Promise.resolve(e.name) : Mo,
|
|
12973
|
-
projectTemplate: e.template ? async () => await Promise.resolve(e.template) :
|
|
12985
|
+
projectTemplate: e.template ? async () => await Promise.resolve(e.template) : _c
|
|
12974
12986
|
},
|
|
12975
12987
|
{
|
|
12976
12988
|
// On Cancel callback that wraps the group
|
|
@@ -12982,15 +12994,15 @@ async function mf(e) {
|
|
|
12982
12994
|
);
|
|
12983
12995
|
if (t.name = i.projectName, process.env.NODE_ENV !== "test") {
|
|
12984
12996
|
try {
|
|
12985
|
-
throw await
|
|
12997
|
+
throw await se.stat(i.projectName), new Error(Q.folderAlreadyExists(i.projectName));
|
|
12986
12998
|
} catch (h) {
|
|
12987
12999
|
if (!(h && typeof h == "object" && "code" in h && h.code === "ENOENT"))
|
|
12988
13000
|
throw h;
|
|
12989
13001
|
}
|
|
12990
13002
|
t.shouldCleanup = !0;
|
|
12991
13003
|
}
|
|
12992
|
-
const l =
|
|
12993
|
-
if (await
|
|
13004
|
+
const l = pf(Tt.webGisSdk, i.projectTemplate), p = ya(i.projectTemplate, e);
|
|
13005
|
+
if (await va(
|
|
12994
13006
|
{
|
|
12995
13007
|
startMsg: "Downloading project template...",
|
|
12996
13008
|
successMsg: "Project template downloaded successfully",
|
|
@@ -13002,7 +13014,7 @@ async function mf(e) {
|
|
|
13002
13014
|
(h) => {
|
|
13003
13015
|
throw h;
|
|
13004
13016
|
}
|
|
13005
|
-
), i.projectTemplate ===
|
|
13017
|
+
), i.projectTemplate === qa) {
|
|
13006
13018
|
An(), console.log(
|
|
13007
13019
|
oe(
|
|
13008
13020
|
"magenta",
|
|
@@ -13013,7 +13025,7 @@ async function mf(e) {
|
|
|
13013
13025
|
Happy mapping!`));
|
|
13014
13026
|
return;
|
|
13015
13027
|
}
|
|
13016
|
-
const s = await
|
|
13028
|
+
const s = await ga(i.projectName), c = lf(s);
|
|
13017
13029
|
An(), console.log(oe("magenta", `To get started, run the following commands:
|
|
13018
13030
|
`)), console.log(oe("grey", `$ cd ${i.projectName}`)), console.log(oe("grey", "$ npm install")), console.log(oe("grey", `$ npm run ${c}`)), console.log(Cn(`
|
|
13019
13031
|
|
|
@@ -13022,7 +13034,7 @@ Happy mapping!`));
|
|
|
13022
13034
|
await t.doCleanup(i);
|
|
13023
13035
|
}
|
|
13024
13036
|
}
|
|
13025
|
-
async function
|
|
13037
|
+
async function yf(e) {
|
|
13026
13038
|
const { template: t, branch: i = $n } = e, l = Jn(e);
|
|
13027
13039
|
try {
|
|
13028
13040
|
if (!t || t !== On)
|
|
@@ -13033,19 +13045,19 @@ async function gf(e) {
|
|
|
13033
13045
|
const p = e.name ?? await Mo();
|
|
13034
13046
|
if (Ao(p) && (To("Operation cancelled."), process.exit(0)), l.name = p, process.env.NODE_ENV !== "test") {
|
|
13035
13047
|
try {
|
|
13036
|
-
throw await
|
|
13037
|
-
} catch (
|
|
13038
|
-
if (!(
|
|
13039
|
-
throw
|
|
13048
|
+
throw await se.stat(p), new Error(Q.folderAlreadyExists(p));
|
|
13049
|
+
} catch (w) {
|
|
13050
|
+
if (!(w && typeof w == "object" && "code" in w && w.code === "ENOENT"))
|
|
13051
|
+
throw w;
|
|
13040
13052
|
}
|
|
13041
13053
|
l.shouldCleanup = !0;
|
|
13042
13054
|
}
|
|
13043
|
-
const s =
|
|
13055
|
+
const s = Va[t], c = await ff(t, e);
|
|
13044
13056
|
let h = "";
|
|
13045
|
-
c || (h = await
|
|
13046
|
-
const o =
|
|
13047
|
-
let m = {};
|
|
13048
|
-
await
|
|
13057
|
+
c || (h = await Pc(e.host));
|
|
13058
|
+
const o = ya(t, { ...e, ssh: c, accessToken: h });
|
|
13059
|
+
let m = {}, n = "";
|
|
13060
|
+
await va(
|
|
13049
13061
|
{
|
|
13050
13062
|
startMsg: "Downloading project template...",
|
|
13051
13063
|
successMsg: "Project template downloaded successfully",
|
|
@@ -13053,62 +13065,66 @@ async function gf(e) {
|
|
|
13053
13065
|
},
|
|
13054
13066
|
async () => {
|
|
13055
13067
|
try {
|
|
13056
|
-
m = await sf(
|
|
13057
|
-
|
|
13058
|
-
|
|
13068
|
+
({ catalog: m, version: n } = await sf(
|
|
13069
|
+
p,
|
|
13070
|
+
o,
|
|
13071
|
+
s,
|
|
13072
|
+
i
|
|
13073
|
+
));
|
|
13074
|
+
} catch (w) {
|
|
13075
|
+
throw w;
|
|
13059
13076
|
}
|
|
13060
13077
|
},
|
|
13061
|
-
(
|
|
13062
|
-
throw
|
|
13078
|
+
(w) => {
|
|
13079
|
+
throw w;
|
|
13063
13080
|
}
|
|
13064
13081
|
);
|
|
13065
13082
|
const {
|
|
13066
|
-
name:
|
|
13067
|
-
version:
|
|
13068
|
-
"acme:scripts":
|
|
13069
|
-
...
|
|
13070
|
-
} = await
|
|
13071
|
-
"@esri/calcite-components>@arcgis/lumina":
|
|
13072
|
-
"@esri/calcite-components>@arcgis/toolkit":
|
|
13073
|
-
},
|
|
13083
|
+
name: u,
|
|
13084
|
+
version: a,
|
|
13085
|
+
"acme:scripts": r,
|
|
13086
|
+
...f
|
|
13087
|
+
} = await ga(p), d = n.split(".").slice(0, 2), g = i.includes("release"), y = g ? `~${d.join(".")}.0` : `>=${d.join(".")}.0-next <${d[0]}.${Number.parseInt(d[1]) + 1}.0`, v = f.files, S = g ? void 0 : {
|
|
13088
|
+
"@esri/calcite-components>@arcgis/lumina": y,
|
|
13089
|
+
"@esri/calcite-components>@arcgis/toolkit": y
|
|
13090
|
+
}, b = {
|
|
13074
13091
|
name: p,
|
|
13075
13092
|
version: "0.0.1",
|
|
13076
13093
|
description: "A new Lumina components project",
|
|
13077
|
-
scripts:
|
|
13078
|
-
...
|
|
13079
|
-
...v ? {
|
|
13080
|
-
...y ? { files: y } : {}
|
|
13094
|
+
scripts: r ?? {},
|
|
13095
|
+
...f,
|
|
13096
|
+
...v ? { files: v } : {}
|
|
13081
13097
|
};
|
|
13082
|
-
rf(m,
|
|
13098
|
+
rf(m, b), hf(y, b), await of(p, b), await af(p, S), An(), Nc(), console.log(oe("magenta", `To get started, run the following commands:
|
|
13083
13099
|
`)), console.log(oe("grey", `$ cd ${p}`)), console.log(oe("grey", "$ pnpm install")), console.log(oe("grey", "$ pnpm start"));
|
|
13084
13100
|
} catch (p) {
|
|
13085
13101
|
await l.doCleanup(p);
|
|
13086
13102
|
}
|
|
13087
13103
|
}
|
|
13088
|
-
const
|
|
13104
|
+
const wa = (e) => {
|
|
13089
13105
|
const t = new It();
|
|
13090
13106
|
return e?.exitOverride && t.exitOverride(), e?.suppressOutput && t.configureOutput({
|
|
13091
13107
|
writeOut: () => "",
|
|
13092
13108
|
writeErr: () => ""
|
|
13093
|
-
}), t.version(
|
|
13109
|
+
}), t.version(Ba.version), t.option("-n, --name <name>", "Name of the project").option("-d, --domain <domain>", "Domain of the sample to create").option("-t, --template <template>", "Template to use").option("--host <host>", "Host to use for the source control repository").option("--branch <branch>", "Branch to checkout in the source control repository"), t.command("init").description("Initialize a new ArcGIS project").action(async () => {
|
|
13094
13110
|
let i;
|
|
13095
13111
|
try {
|
|
13096
|
-
i =
|
|
13112
|
+
i = cf(t.opts());
|
|
13097
13113
|
} catch (l) {
|
|
13098
13114
|
await Jn({}).doCleanup(l);
|
|
13099
13115
|
return;
|
|
13100
13116
|
}
|
|
13101
|
-
if (i.template &&
|
|
13102
|
-
await
|
|
13117
|
+
if (i.template && Wa[i.template] === kt.codeSample) {
|
|
13118
|
+
await yf(i);
|
|
13103
13119
|
return;
|
|
13104
13120
|
}
|
|
13105
|
-
await
|
|
13121
|
+
await gf(i);
|
|
13106
13122
|
}), t;
|
|
13107
13123
|
};
|
|
13108
|
-
let
|
|
13109
|
-
makeProgram:
|
|
13124
|
+
let bf = {
|
|
13125
|
+
makeProgram: wa
|
|
13110
13126
|
};
|
|
13111
|
-
process.env.NODE_ENV !== "test" && (
|
|
13127
|
+
process.env.NODE_ENV !== "test" && (bf = void 0, wa().parse());
|
|
13112
13128
|
export {
|
|
13113
|
-
|
|
13129
|
+
bf as exportsForTests
|
|
13114
13130
|
};
|