@arcgis/create 5.2.0-next.99 → 5.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/init.js +780 -739
- package/package.json +1 -1
package/dist/init.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { EventEmitter as
|
|
2
|
-
import
|
|
1
|
+
import { EventEmitter as Aa } from "node:events";
|
|
2
|
+
import Kt from "node:child_process";
|
|
3
3
|
import we 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
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
8
|
+
import La from "node:readline";
|
|
9
|
+
import Zn, { ReadStream as es } from "node:tty";
|
|
10
|
+
import Oa from "node:os";
|
|
11
|
+
import se from "fs/promises";
|
|
12
|
+
import Me from "path";
|
|
13
13
|
import Ee from "process";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
14
|
+
import $a from "child_process";
|
|
15
|
+
import _a, { promisify as Na } from "util";
|
|
16
|
+
import Pa from "node:url";
|
|
17
|
+
import Ia from "url";
|
|
18
|
+
import Ta from "node:module";
|
|
19
|
+
import ka 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 xa {
|
|
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 Ma {
|
|
133
133
|
constructor() {
|
|
134
134
|
this.helpWidth = void 0, this.minWidthToWrap = 40, this.sortSubcommands = !1, this.sortOptions = !1, this.showGlobalOptions = !1;
|
|
135
135
|
}
|
|
@@ -598,7 +598,7 @@ ${c}`);
|
|
|
598
598
|
`);
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
class
|
|
601
|
+
class Nt {
|
|
602
602
|
/**
|
|
603
603
|
* Initialize a new `Option` with the given `flags` and `description`.
|
|
604
604
|
*
|
|
@@ -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 = Da(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 Da(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 Fa(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 = Fa(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
|
|
863
|
+
class Tt extends Aa {
|
|
864
864
|
/**
|
|
865
865
|
* Initialize a new `Command`.
|
|
866
866
|
*
|
|
@@ -939,7 +939,7 @@ class It extends Ea {
|
|
|
939
939
|
* @return {Command} new command
|
|
940
940
|
*/
|
|
941
941
|
createCommand(t) {
|
|
942
|
-
return new
|
|
942
|
+
return new Tt(t);
|
|
943
943
|
}
|
|
944
944
|
/**
|
|
945
945
|
* You can customise the help with a subclass of Help by overriding createHelp,
|
|
@@ -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 Ma(), 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 xa(t, i);
|
|
1036
1036
|
}
|
|
1037
1037
|
/**
|
|
1038
1038
|
* Define argument syntax for command.
|
|
@@ -1196,7 +1196,7 @@ Expecting one of '${l.join("', '")}'`);
|
|
|
1196
1196
|
* @return {Option} new option
|
|
1197
1197
|
*/
|
|
1198
1198
|
createOption(t, i) {
|
|
1199
|
-
return new
|
|
1199
|
+
return new Nt(t, i);
|
|
1200
1200
|
}
|
|
1201
1201
|
/**
|
|
1202
1202
|
* Wrap parseArgs to catch 'commander.invalidArgument'.
|
|
@@ -1283,7 +1283,7 @@ Expecting one of '${l.join("', '")}'`);
|
|
|
1283
1283
|
* @private
|
|
1284
1284
|
*/
|
|
1285
1285
|
_optionEx(t, i, l, p, s) {
|
|
1286
|
-
if (typeof i == "object" && i instanceof
|
|
1286
|
+
if (typeof i == "object" && i instanceof Nt)
|
|
1287
1287
|
throw new Error(
|
|
1288
1288
|
"To add an Option object use addOption() instead of option() or requiredOption()"
|
|
1289
1289
|
);
|
|
@@ -1669,11 +1669,11 @@ Expecting one of '${l.join("', '")}'`);
|
|
|
1669
1669
|
}
|
|
1670
1670
|
const h = l.includes(we.extname(s));
|
|
1671
1671
|
let o;
|
|
1672
|
-
q.platform !== "win32" ? h ? (i.unshift(s), i = ns(q.execArgv).concat(i), o =
|
|
1672
|
+
q.platform !== "win32" ? h ? (i.unshift(s), i = ns(q.execArgv).concat(i), o = Kt.spawn(q.argv[0], i, { stdio: "inherit" })) : o = Kt.spawn(s, i, { stdio: "inherit" }) : (this._checkForMissingExecutable(
|
|
1673
1673
|
s,
|
|
1674
1674
|
c,
|
|
1675
1675
|
t._name
|
|
1676
|
-
), i.unshift(s), i = ns(q.execArgv).concat(i), o =
|
|
1676
|
+
), i.unshift(s), i = ns(q.execArgv).concat(i), o = Kt.spawn(q.execPath, i, { stdio: "inherit" })), o.killed || ["SIGUSR1", "SIGUSR2", "SIGTERM", "SIGINT", "SIGHUP"].forEach((u) => {
|
|
1677
1677
|
q.on(u, () => {
|
|
1678
1678
|
o.killed === !1 && o.exitCode === null && o.kill(u);
|
|
1679
1679
|
});
|
|
@@ -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()),
|
|
@@ -2539,93 +2539,114 @@ function ss() {
|
|
|
2539
2539
|
if (q.env.FORCE_COLOR || q.env.CLICOLOR_FORCE !== void 0)
|
|
2540
2540
|
return !0;
|
|
2541
2541
|
}
|
|
2542
|
-
new
|
|
2543
|
-
const
|
|
2544
|
-
version:
|
|
2545
|
-
},
|
|
2542
|
+
new Tt();
|
|
2543
|
+
const Ba = "1.0.0-0", Ga = {
|
|
2544
|
+
version: Ba
|
|
2545
|
+
}, bo = [
|
|
2546
2546
|
{
|
|
2547
2547
|
folder: "js-maps-sdk-react",
|
|
2548
|
-
label: "react"
|
|
2548
|
+
label: "react",
|
|
2549
|
+
description: "This React template includes preconfigured SDK essentials such as the core API, Map components, Charts components, Calcite, TypeScript, and optional OAuth."
|
|
2549
2550
|
},
|
|
2550
2551
|
{
|
|
2551
2552
|
folder: "js-maps-sdk-vite",
|
|
2552
|
-
label: "vite"
|
|
2553
|
+
label: "vite",
|
|
2554
|
+
description: "This Vite template includes preconfigured SDK essentials such as the core API, Map components, Charts components, Calcite, TypeScript, and optional OAuth."
|
|
2553
2555
|
},
|
|
2554
2556
|
{
|
|
2555
2557
|
folder: "js-maps-sdk-cdn",
|
|
2556
|
-
label: "cdn"
|
|
2558
|
+
label: "cdn",
|
|
2559
|
+
description: "This CDN template includes the core API, Map components, Charts components, Calcite, vanilla JavaScript, and an optional OAuth example. It loads the SDK's prebuilt distribution from the ArcGIS CDN without a build step."
|
|
2557
2560
|
},
|
|
2558
2561
|
{
|
|
2559
2562
|
folder: "js-maps-sdk-vue",
|
|
2560
|
-
label: "vue"
|
|
2563
|
+
label: "vue",
|
|
2564
|
+
description: "This Vue template includes preconfigured SDK essentials such as the core API, Map components, Charts components, Calcite, and optional OAuth."
|
|
2565
|
+
},
|
|
2566
|
+
{
|
|
2567
|
+
folder: "js-maps-sdk-astro",
|
|
2568
|
+
label: "astro",
|
|
2569
|
+
description: "This Astro template for content-driven applications includes preconfigured SDK essentials such as the core API, Map components, Charts components, Calcite, TypeScript, and optional OAuth."
|
|
2561
2570
|
},
|
|
2562
2571
|
{
|
|
2563
2572
|
folder: "js-maps-sdk-angular",
|
|
2564
|
-
label: "angular"
|
|
2573
|
+
label: "angular",
|
|
2574
|
+
description: "This Angular template includes preconfigured SDK essentials such as the core API, Map components, Charts components, Calcite, TypeScript, and optional OAuth."
|
|
2565
2575
|
},
|
|
2566
2576
|
{
|
|
2567
2577
|
folder: "js-maps-sdk-node",
|
|
2568
|
-
label: "node"
|
|
2578
|
+
label: "node",
|
|
2579
|
+
description: "This Node.js template includes examples of geometry projection, making HTTP requests, and loading a WebMap using the core API and ES Modules.."
|
|
2569
2580
|
},
|
|
2570
2581
|
{
|
|
2571
2582
|
folder: "js-maps-sdk-webpack",
|
|
2572
|
-
label: "webpack"
|
|
2583
|
+
label: "webpack",
|
|
2584
|
+
description: "This Webpack template includes preconfigured SDK essentials such as the core API, Map components, Charts components, Calcite, vanilla JavaScript, and optional OAuth."
|
|
2573
2585
|
},
|
|
2574
2586
|
{
|
|
2575
2587
|
folder: "ai-components-custom-agent-hil-react",
|
|
2576
|
-
label: "ai-components-custom-agent-hil-react (beta)"
|
|
2588
|
+
label: "ai-components-custom-agent-hil-react (beta)",
|
|
2589
|
+
description: "This React template includes the SDK's AI components (beta), Map components, the Core API, Calcite, and a custom LangGraph agent that asks for approval before saving a road maintenance report to a feature layer."
|
|
2577
2590
|
},
|
|
2578
2591
|
{
|
|
2579
2592
|
folder: "ai-components-custom-agent-tools-react",
|
|
2580
|
-
label: "ai-components-custom-agent-tools-react (beta)"
|
|
2593
|
+
label: "ai-components-custom-agent-tools-react (beta)",
|
|
2594
|
+
description: "This React template includes the SDK's AI components (beta), Map components, the Core API, Calcite, and a custom LangGraph agent that calls an ArcGIS network service to calculate drive-time service areas from chat requests."
|
|
2581
2595
|
},
|
|
2582
2596
|
{
|
|
2583
2597
|
folder: "ai-components-agent-utils-hil-react",
|
|
2584
|
-
label: "ai-components-agent-utils-hil-react (beta)"
|
|
2598
|
+
label: "ai-components-agent-utils-hil-react (beta)",
|
|
2599
|
+
description: "This React template includes the SDK's AI components (beta), Map components, the Core API, and Calcite. It demonstrates the SDK's agent utilities with a workflow that requests approval before saving a road maintenance report, plus navigation and data-exploration agents."
|
|
2585
2600
|
},
|
|
2586
2601
|
{
|
|
2587
2602
|
folder: "ai-components-agent-utils-tools-react",
|
|
2588
|
-
label: "ai-components-agent-utils-tools-react (beta)"
|
|
2603
|
+
label: "ai-components-agent-utils-tools-react (beta)",
|
|
2604
|
+
description: "This React template includes the SDK's AI components (beta), Map components, the Core API, and Calcite. It demonstrates the SDK's agent utilities with an LLM agent and middleware that calls an ArcGIS network service to calculate travel-mode service areas."
|
|
2589
2605
|
},
|
|
2590
2606
|
{
|
|
2591
|
-
folder: "coding-components-react"
|
|
2607
|
+
folder: "coding-components-react",
|
|
2608
|
+
description: "This React template includes Coding components, an Arcade editor configured for the popup profile, and Core API test data loaded from a WebMap."
|
|
2592
2609
|
},
|
|
2593
2610
|
{
|
|
2594
|
-
folder: "coding-components-vite"
|
|
2611
|
+
folder: "coding-components-vite",
|
|
2612
|
+
description: "This Vanilla JavaScript Vite template includes Coding components, an Arcade editor configured for the labeling profile, and a Core API feature layer."
|
|
2595
2613
|
},
|
|
2596
2614
|
{
|
|
2597
|
-
folder: "coding-components-angular"
|
|
2615
|
+
folder: "coding-components-angular",
|
|
2616
|
+
description: "This Angular template includes Coding components, a TypeScript Arcade editor configured for the popup profile, and Core API test data loaded from a WebMap."
|
|
2598
2617
|
},
|
|
2599
2618
|
{
|
|
2600
|
-
folder: "disconnected-environment"
|
|
2619
|
+
folder: "disconnected-environment",
|
|
2620
|
+
description: "This disconnected Vite template includes an Arcade editor, map, and chart using an in-memory feature layer. It bundles the Core API, Map, Charts, Coding, and Common components, and Calcite assets locally, so SDK asset requests are served locally instead of being sent to js.arcgis.com."
|
|
2601
2621
|
},
|
|
2602
2622
|
{
|
|
2603
|
-
folder: "geometry-operator-worker"
|
|
2623
|
+
folder: "geometry-operator-worker",
|
|
2624
|
+
description: "This Vite template includes Map components and the Core API. It demonstrates geometry operators in a web worker to query nearby rivers, create buffers, and measure their length."
|
|
2604
2625
|
}
|
|
2605
|
-
], On = "lumina-components",
|
|
2626
|
+
], On = "lumina-components", qa = "js-maps-sdk-cdn", $n = {
|
|
2606
2627
|
webGisSdk: "web-gis-sdk"
|
|
2607
2628
|
}, kt = {
|
|
2608
2629
|
codeSample: "CODE_SAMPLE",
|
|
2609
2630
|
appSample: "APP_SAMPLE"
|
|
2610
2631
|
};
|
|
2611
|
-
function
|
|
2632
|
+
function ja(e, t) {
|
|
2612
2633
|
const i = `templates/${e}`;
|
|
2613
2634
|
return {
|
|
2614
2635
|
handlerType: kt.appSample,
|
|
2615
2636
|
repo: "Esri/jsapi-resources",
|
|
2616
|
-
domain:
|
|
2637
|
+
domain: $n.webGisSdk,
|
|
2617
2638
|
templatePath: i,
|
|
2618
2639
|
filesPath: i,
|
|
2619
2640
|
...t ? { customName: t } : {}
|
|
2620
2641
|
};
|
|
2621
2642
|
}
|
|
2622
|
-
function
|
|
2643
|
+
function Ua() {
|
|
2623
2644
|
const e = {};
|
|
2624
|
-
for (const t of
|
|
2645
|
+
for (const t of bo) {
|
|
2625
2646
|
const { folder: i } = t, l = i;
|
|
2626
2647
|
if (e[l])
|
|
2627
2648
|
throw new Error(`Template registry collision detected for "${l}".`);
|
|
2628
|
-
e[l] =
|
|
2649
|
+
e[l] = ja(i, "label" in t ? t.label : void 0);
|
|
2629
2650
|
}
|
|
2630
2651
|
return e[On] = {
|
|
2631
2652
|
handlerType: kt.codeSample,
|
|
@@ -2634,27 +2655,27 @@ function ja() {
|
|
|
2634
2655
|
excludedFromPrompts: !0
|
|
2635
2656
|
}, e;
|
|
2636
2657
|
}
|
|
2637
|
-
const
|
|
2638
|
-
[
|
|
2658
|
+
const Ha = Ua(), Ce = Object.entries(Ha), vo = {
|
|
2659
|
+
[$n.webGisSdk]: {}
|
|
2639
2660
|
};
|
|
2640
2661
|
for (const [e, t] of Ce)
|
|
2641
|
-
t.handlerType === kt.appSample && (
|
|
2642
|
-
const
|
|
2662
|
+
t.handlerType === kt.appSample && (vo[t.domain][e] = t.templatePath);
|
|
2663
|
+
const So = "github.com", _n = "main", Nn = Object.fromEntries(
|
|
2643
2664
|
Ce.map(([e, t]) => [e, t.repo])
|
|
2644
|
-
), Ha = Object.fromEntries(
|
|
2645
|
-
Ce.map(([e, t]) => [e, t.filesPath])
|
|
2646
2665
|
), Va = Object.fromEntries(
|
|
2647
|
-
Ce.map(([e, t]) => [e, t.
|
|
2666
|
+
Ce.map(([e, t]) => [e, t.filesPath])
|
|
2648
2667
|
), Wa = Object.fromEntries(
|
|
2668
|
+
Ce.map(([e, t]) => [e, t.handlerType])
|
|
2669
|
+
), Ka = Object.fromEntries(
|
|
2649
2670
|
Ce.filter(([, e]) => !!e.excludedFromPrompts).map(([e]) => [e, !0])
|
|
2650
2671
|
), Ya = Object.fromEntries(
|
|
2651
2672
|
Ce.map(([e, t]) => [e, t.customName ?? e])
|
|
2652
2673
|
);
|
|
2653
|
-
function
|
|
2674
|
+
function Pn(e) {
|
|
2654
2675
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2655
2676
|
}
|
|
2656
2677
|
var rt = { exports: {} }, rs;
|
|
2657
|
-
function
|
|
2678
|
+
function Ja() {
|
|
2658
2679
|
if (rs) return rt.exports;
|
|
2659
2680
|
rs = 1;
|
|
2660
2681
|
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,11 +2736,11 @@ function Ka() {
|
|
|
2715
2736
|
};
|
|
2716
2737
|
return rt.exports = c(), rt.exports.createColors = c, rt.exports;
|
|
2717
2738
|
}
|
|
2718
|
-
var
|
|
2719
|
-
const x = /* @__PURE__ */
|
|
2720
|
-
var
|
|
2721
|
-
function
|
|
2722
|
-
if (os) return
|
|
2739
|
+
var za = /* @__PURE__ */ Ja();
|
|
2740
|
+
const x = /* @__PURE__ */ Pn(za);
|
|
2741
|
+
var Yt, os;
|
|
2742
|
+
function Xa() {
|
|
2743
|
+
if (os) return Yt;
|
|
2723
2744
|
os = 1;
|
|
2724
2745
|
const e = "\x1B", t = `${e}[`, i = "\x07", l = {
|
|
2725
2746
|
to(c, h) {
|
|
@@ -2757,24 +2778,24 @@ function za() {
|
|
|
2757
2778
|
return c && (h += l.left), h;
|
|
2758
2779
|
}
|
|
2759
2780
|
};
|
|
2760
|
-
return
|
|
2781
|
+
return Yt = { cursor: l, scroll: p, erase: s, beep: i }, Yt;
|
|
2761
2782
|
}
|
|
2762
|
-
var
|
|
2783
|
+
var ne = Xa();
|
|
2763
2784
|
function $t(e, t, i) {
|
|
2764
2785
|
if (!i.some((c) => !c.disabled)) return e;
|
|
2765
2786
|
const l = e + t, p = Math.max(i.length - 1, 0), s = l < 0 ? p : l > p ? 0 : l;
|
|
2766
2787
|
return i[s].disabled ? $t(s, t < 0 ? -1 : 1, i) : s;
|
|
2767
2788
|
}
|
|
2768
|
-
const
|
|
2769
|
-
const l = t.limit ?? 1 / 0, p = t.ellipsis ?? "", s = t?.ellipsisWidth ?? (p ?
|
|
2789
|
+
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 = {}) => {
|
|
2790
|
+
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
2791
|
let f = 0, d = 0, g = e.length, y = 0, v = !1, w = g, b = Math.max(0, l - s), S = 0, L = 0, O = 0, $ = 0;
|
|
2771
2792
|
e: for (; ; ) {
|
|
2772
2793
|
if (L > S || d >= g && d > f) {
|
|
2773
2794
|
const _ = e.slice(S, L) || e.slice(f, d);
|
|
2774
2795
|
y = 0;
|
|
2775
|
-
for (const P of _.replaceAll(
|
|
2796
|
+
for (const P of _.replaceAll(tl, "")) {
|
|
2776
2797
|
const I = P.codePointAt(0) || 0;
|
|
2777
|
-
if (
|
|
2798
|
+
if (Za(I) ? $ = u : el(I) ? $ = r : m !== a && Qa(I) ? $ = m : $ = a, O + $ > b && (w = Math.min(w, Math.max(S, f) + y)), O + $ > l) {
|
|
2778
2799
|
v = !0;
|
|
2779
2800
|
break e;
|
|
2780
2801
|
}
|
|
@@ -2826,7 +2847,7 @@ const Xa = (e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170
|
|
|
2826
2847
|
d += 1;
|
|
2827
2848
|
}
|
|
2828
2849
|
return { width: v ? b : O, index: v ? w : g, truncated: v, ellipsed: v && l >= s };
|
|
2829
|
-
},
|
|
2850
|
+
}, nl = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 }, Je = (e, t = {}) => wo(e, nl, t).width, xt = "\x1B", Eo = "", sl = 39, In = "\x07", Co = "[", rl = "]", Ao = "m", Tn = `${rl}8;;`, as = new RegExp(`(?:\\${Co}(?<code>\\d+)m|\\${Tn}(?<uri>.*)${In})`, "y"), ol = (e) => {
|
|
2830
2851
|
if (e >= 30 && e <= 37 || e >= 90 && e <= 97) return 39;
|
|
2831
2852
|
if (e >= 40 && e <= 47 || e >= 100 && e <= 107) return 49;
|
|
2832
2853
|
if (e === 1 || e === 2) return 22;
|
|
@@ -2836,23 +2857,23 @@ const Xa = (e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170
|
|
|
2836
2857
|
if (e === 8) return 28;
|
|
2837
2858
|
if (e === 9) return 29;
|
|
2838
2859
|
if (e === 0) return 0;
|
|
2839
|
-
}, ls = (e) => `${xt}${
|
|
2860
|
+
}, ls = (e) => `${xt}${Co}${e}${Ao}`, cs = (e) => `${xt}${Tn}${e}${In}`, al = (e) => e.map((t) => Je(t)), Xt = (e, t, i) => {
|
|
2840
2861
|
const l = t[Symbol.iterator]();
|
|
2841
2862
|
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
2863
|
for (; !o.done; ) {
|
|
2843
2864
|
const u = o.value, a = Je(u);
|
|
2844
|
-
h + a <= i ? e[e.length - 1] += u : (e.push(u), h = 0), (u === xt || u ===
|
|
2865
|
+
h + a <= i ? e[e.length - 1] += u : (e.push(u), h = 0), (u === xt || u === Eo) && (p = !0, s = t.startsWith(Tn, n + 1)), p ? s ? u === In && (p = !1, s = !1) : u === Ao && (p = !1) : (h += a, h === i && !m.done && (e.push(""), h = 0)), o = m, m = l.next(), n += u.length;
|
|
2845
2866
|
}
|
|
2846
2867
|
c = e.at(-1), !h && c !== void 0 && c.length > 0 && e.length > 1 && (e[e.length - 2] += e.pop());
|
|
2847
|
-
},
|
|
2868
|
+
}, ll = (e) => {
|
|
2848
2869
|
const t = e.split(" ");
|
|
2849
2870
|
let i = t.length;
|
|
2850
2871
|
for (; i > 0 && !(Je(t[i - 1]) > 0); ) i--;
|
|
2851
2872
|
return i === t.length ? e : t.slice(0, i).join(" ") + t.slice(i).join("");
|
|
2852
|
-
},
|
|
2873
|
+
}, cl = (e, t, i = {}) => {
|
|
2853
2874
|
if (i.trim !== !1 && e.trim() === "") return "";
|
|
2854
2875
|
let l = "", p, s;
|
|
2855
|
-
const c = e.split(" "), h =
|
|
2876
|
+
const c = e.split(" "), h = al(c);
|
|
2856
2877
|
let o = [""];
|
|
2857
2878
|
for (const [f, d] of c.entries()) {
|
|
2858
2879
|
i.trim !== !1 && (o[o.length - 1] = (o.at(-1) ?? "").trimStart());
|
|
@@ -2875,21 +2896,21 @@ const Xa = (e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170
|
|
|
2875
2896
|
}
|
|
2876
2897
|
o[o.length - 1] += d;
|
|
2877
2898
|
}
|
|
2878
|
-
i.trim !== !1 && (o = o.map((f) =>
|
|
2899
|
+
i.trim !== !1 && (o = o.map((f) => ll(f)));
|
|
2879
2900
|
const m = o.join(`
|
|
2880
2901
|
`), n = m[Symbol.iterator]();
|
|
2881
2902
|
let u = n.next(), a = n.next(), r = 0;
|
|
2882
2903
|
for (; !u.done; ) {
|
|
2883
2904
|
const f = u.value, d = a.value;
|
|
2884
|
-
if (l += f, f === xt || f ===
|
|
2905
|
+
if (l += f, f === xt || f === Eo) {
|
|
2885
2906
|
as.lastIndex = r + 1;
|
|
2886
2907
|
const y = as.exec(m)?.groups;
|
|
2887
2908
|
if (y?.code !== void 0) {
|
|
2888
2909
|
const v = Number.parseFloat(y.code);
|
|
2889
|
-
p = v ===
|
|
2910
|
+
p = v === sl ? void 0 : v;
|
|
2890
2911
|
} else y?.uri !== void 0 && (s = y.uri.length === 0 ? void 0 : y.uri);
|
|
2891
2912
|
}
|
|
2892
|
-
const g = p ?
|
|
2913
|
+
const g = p ? ol(p) : void 0;
|
|
2893
2914
|
d === `
|
|
2894
2915
|
` ? (s && (l += cs("")), p && g && (l += ls(g))) : f === `
|
|
2895
2916
|
` && (p && g && (l += ls(p)), s && (l += cs(s))), r += f.length, u = a, a = n.next();
|
|
@@ -2900,16 +2921,16 @@ function gn(e, t, i) {
|
|
|
2900
2921
|
return String(e).normalize().replaceAll(`\r
|
|
2901
2922
|
`, `
|
|
2902
2923
|
`).split(`
|
|
2903
|
-
`).map((l) =>
|
|
2924
|
+
`).map((l) => cl(l, t, i)).join(`
|
|
2904
2925
|
`);
|
|
2905
2926
|
}
|
|
2906
|
-
const
|
|
2907
|
-
function
|
|
2927
|
+
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 };
|
|
2928
|
+
function kn(e, t) {
|
|
2908
2929
|
if (typeof e == "string") return ye.aliases.get(e) === t;
|
|
2909
|
-
for (const i of e) if (i !== void 0 &&
|
|
2930
|
+
for (const i of e) if (i !== void 0 && kn(i, t)) return !0;
|
|
2910
2931
|
return !1;
|
|
2911
2932
|
}
|
|
2912
|
-
function
|
|
2933
|
+
function fl(e, t) {
|
|
2913
2934
|
if (e === t) return;
|
|
2914
2935
|
const i = e.split(`
|
|
2915
2936
|
`), l = t.split(`
|
|
@@ -2917,21 +2938,21 @@ function ul(e, t) {
|
|
|
2917
2938
|
for (let c = 0; c < p; c++) i[c] !== l[c] && s.push(c);
|
|
2918
2939
|
return { lines: s, numLinesBefore: i.length, numLinesAfter: l.length, numLines: p };
|
|
2919
2940
|
}
|
|
2920
|
-
const
|
|
2921
|
-
function
|
|
2941
|
+
const hl = globalThis.process.platform.startsWith("win"), yn = /* @__PURE__ */ Symbol("clack:cancel");
|
|
2942
|
+
function Lo(e) {
|
|
2922
2943
|
return e === yn;
|
|
2923
2944
|
}
|
|
2924
2945
|
function ct(e, t) {
|
|
2925
2946
|
const i = e;
|
|
2926
2947
|
i.isTTY && i.setRawMode(t);
|
|
2927
2948
|
}
|
|
2928
|
-
function
|
|
2949
|
+
function pl({ input: e = ho, output: t = Ln, overwrite: i = !0, hideCursor: l = !0 } = {}) {
|
|
2929
2950
|
const p = st.createInterface({ input: e, output: t, prompt: "", tabSize: 1 });
|
|
2930
|
-
st.emitKeypressEvents(e, p), e instanceof
|
|
2951
|
+
st.emitKeypressEvents(e, p), e instanceof es && e.isTTY && e.setRawMode(!0);
|
|
2931
2952
|
const s = (c, { name: h, sequence: o }) => {
|
|
2932
2953
|
const m = String(c);
|
|
2933
|
-
if (
|
|
2934
|
-
l && t.write(
|
|
2954
|
+
if (kn([m, h, o], "cancel")) {
|
|
2955
|
+
l && t.write(ne.cursor.show), process.exit(0);
|
|
2935
2956
|
return;
|
|
2936
2957
|
}
|
|
2937
2958
|
if (!i) return;
|
|
@@ -2942,18 +2963,18 @@ function hl({ input: e = ho, output: t = Ln, overwrite: i = !0, hideCursor: l =
|
|
|
2942
2963
|
});
|
|
2943
2964
|
});
|
|
2944
2965
|
};
|
|
2945
|
-
return l && t.write(
|
|
2946
|
-
e.off("keypress", s), l && t.write(
|
|
2966
|
+
return l && t.write(ne.cursor.hide), e.once("keypress", s), () => {
|
|
2967
|
+
e.off("keypress", s), l && t.write(ne.cursor.show), e instanceof es && e.isTTY && !hl && e.setRawMode(!1), p.terminal = !1, p.close();
|
|
2947
2968
|
};
|
|
2948
2969
|
}
|
|
2949
|
-
const
|
|
2970
|
+
const xn = (e) => "columns" in e && typeof e.columns == "number" ? e.columns : 80, Oo = (e) => "rows" in e && typeof e.rows == "number" ? e.rows : 20;
|
|
2950
2971
|
function Qt(e, t, i, l = i) {
|
|
2951
|
-
const p =
|
|
2972
|
+
const p = xn(e ?? Ln);
|
|
2952
2973
|
return gn(t, p - i.length, { hard: !0, trim: !1 }).split(`
|
|
2953
2974
|
`).map((s, c) => `${c === 0 ? l : i}${s}`).join(`
|
|
2954
2975
|
`);
|
|
2955
2976
|
}
|
|
2956
|
-
let
|
|
2977
|
+
let Mn = class {
|
|
2957
2978
|
input;
|
|
2958
2979
|
output;
|
|
2959
2980
|
_abortSignal;
|
|
@@ -2998,10 +3019,10 @@ let xn = class {
|
|
|
2998
3019
|
this.state = "cancel", this.close();
|
|
2999
3020
|
}, { once: !0 });
|
|
3000
3021
|
}
|
|
3001
|
-
this.rl =
|
|
3002
|
-
this.output.write(
|
|
3022
|
+
this.rl = La.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", () => {
|
|
3023
|
+
this.output.write(ne.cursor.show), this.output.off("resize", this.render), ct(this.input, !1), t(this.value);
|
|
3003
3024
|
}), this.once("cancel", () => {
|
|
3004
|
-
this.output.write(
|
|
3025
|
+
this.output.write(ne.cursor.show), this.output.off("resize", this.render), ct(this.input, !1), t(yn);
|
|
3005
3026
|
});
|
|
3006
3027
|
});
|
|
3007
3028
|
}
|
|
@@ -3025,7 +3046,7 @@ let xn = class {
|
|
|
3025
3046
|
}
|
|
3026
3047
|
this.state !== "error" && (this.state = "submit");
|
|
3027
3048
|
}
|
|
3028
|
-
|
|
3049
|
+
kn([t, i?.name, i?.sequence], "cancel") && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
|
|
3029
3050
|
}
|
|
3030
3051
|
close() {
|
|
3031
3052
|
this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
|
|
@@ -3034,14 +3055,14 @@ let xn = class {
|
|
|
3034
3055
|
restoreCursor() {
|
|
3035
3056
|
const t = gn(this._prevFrame, process.stdout.columns, { hard: !0, trim: !1 }).split(`
|
|
3036
3057
|
`).length - 1;
|
|
3037
|
-
this.output.write(
|
|
3058
|
+
this.output.write(ne.cursor.move(-999, t * -1));
|
|
3038
3059
|
}
|
|
3039
3060
|
render() {
|
|
3040
3061
|
const t = gn(this._render(this) ?? "", process.stdout.columns, { hard: !0, trim: !1 });
|
|
3041
3062
|
if (t !== this._prevFrame) {
|
|
3042
|
-
if (this.state === "initial") this.output.write(
|
|
3063
|
+
if (this.state === "initial") this.output.write(ne.cursor.hide);
|
|
3043
3064
|
else {
|
|
3044
|
-
const i =
|
|
3065
|
+
const i = fl(this._prevFrame, t), l = Oo(this.output);
|
|
3045
3066
|
if (this.restoreCursor(), i) {
|
|
3046
3067
|
const p = Math.max(0, i.numLinesAfter - l), s = Math.max(0, i.numLinesBefore - l);
|
|
3047
3068
|
let c = i.lines.find((h) => h >= p);
|
|
@@ -3050,18 +3071,18 @@ let xn = class {
|
|
|
3050
3071
|
return;
|
|
3051
3072
|
}
|
|
3052
3073
|
if (i.lines.length === 1) {
|
|
3053
|
-
this.output.write(
|
|
3074
|
+
this.output.write(ne.cursor.move(0, c - s)), this.output.write(ne.erase.lines(1));
|
|
3054
3075
|
const h = t.split(`
|
|
3055
3076
|
`);
|
|
3056
|
-
this.output.write(h[c]), this._prevFrame = t, this.output.write(
|
|
3077
|
+
this.output.write(h[c]), this._prevFrame = t, this.output.write(ne.cursor.move(0, h.length - c - 1));
|
|
3057
3078
|
return;
|
|
3058
3079
|
} else if (i.lines.length > 1) {
|
|
3059
3080
|
if (p < s) c = p;
|
|
3060
3081
|
else {
|
|
3061
3082
|
const o = c - s;
|
|
3062
|
-
o > 0 && this.output.write(
|
|
3083
|
+
o > 0 && this.output.write(ne.cursor.move(0, o));
|
|
3063
3084
|
}
|
|
3064
|
-
this.output.write(
|
|
3085
|
+
this.output.write(ne.erase.down());
|
|
3065
3086
|
const h = t.split(`
|
|
3066
3087
|
`).slice(c);
|
|
3067
3088
|
this.output.write(h.join(`
|
|
@@ -3069,12 +3090,12 @@ let xn = class {
|
|
|
3069
3090
|
return;
|
|
3070
3091
|
}
|
|
3071
3092
|
}
|
|
3072
|
-
this.output.write(
|
|
3093
|
+
this.output.write(ne.erase.down());
|
|
3073
3094
|
}
|
|
3074
3095
|
this.output.write(t), this.state === "initial" && (this.state = "active"), this._prevFrame = t;
|
|
3075
3096
|
}
|
|
3076
3097
|
}
|
|
3077
|
-
},
|
|
3098
|
+
}, dl = class extends Mn {
|
|
3078
3099
|
_mask = "•";
|
|
3079
3100
|
get cursor() {
|
|
3080
3101
|
return this._cursor;
|
|
@@ -3098,7 +3119,7 @@ let xn = class {
|
|
|
3098
3119
|
});
|
|
3099
3120
|
}
|
|
3100
3121
|
};
|
|
3101
|
-
class
|
|
3122
|
+
class ml extends Mn {
|
|
3102
3123
|
options;
|
|
3103
3124
|
cursor = 0;
|
|
3104
3125
|
get _selectedValue() {
|
|
@@ -3125,7 +3146,7 @@ class dl extends xn {
|
|
|
3125
3146
|
});
|
|
3126
3147
|
}
|
|
3127
3148
|
}
|
|
3128
|
-
let
|
|
3149
|
+
let gl = class extends Mn {
|
|
3129
3150
|
get userInputWithCursor() {
|
|
3130
3151
|
if (this.state === "submit") return this.userInput;
|
|
3131
3152
|
const t = this.userInput;
|
|
@@ -3144,22 +3165,22 @@ let ml = class extends xn {
|
|
|
3144
3165
|
});
|
|
3145
3166
|
}
|
|
3146
3167
|
};
|
|
3147
|
-
function
|
|
3168
|
+
function yl() {
|
|
3148
3169
|
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
3170
|
}
|
|
3150
|
-
const bn =
|
|
3171
|
+
const bn = yl(), bl = () => process.env.CI === "true", fe = (e, t) => bn ? e : t, vl = fe("◆", "*"), $o = fe("■", "x"), _o = fe("▲", "x"), Rn = fe("◇", "o"), Sl = fe("┌", "T"), J = fe("│", "|"), Le = fe("└", "—"), wl = fe("●", ">"), us = fe("○", " "), El = fe("▪", "•"), Cl = fe("●", "•"), Al = fe("◆", "*"), Ll = fe("▲", "!"), Ol = fe("■", "x"), Dn = (e) => {
|
|
3151
3172
|
switch (e) {
|
|
3152
3173
|
case "initial":
|
|
3153
3174
|
case "active":
|
|
3154
|
-
return x.cyan(
|
|
3175
|
+
return x.cyan(vl);
|
|
3155
3176
|
case "cancel":
|
|
3156
|
-
return x.red(
|
|
3177
|
+
return x.red($o);
|
|
3157
3178
|
case "error":
|
|
3158
|
-
return x.yellow(
|
|
3179
|
+
return x.yellow(_o);
|
|
3159
3180
|
case "submit":
|
|
3160
3181
|
return x.green(Rn);
|
|
3161
3182
|
}
|
|
3162
|
-
},
|
|
3183
|
+
}, $l = (e) => {
|
|
3163
3184
|
switch (e) {
|
|
3164
3185
|
case "initial":
|
|
3165
3186
|
case "active":
|
|
@@ -3171,16 +3192,16 @@ const bn = gl(), yl = () => process.env.CI === "true", ue = (e, t) => bn ? e : t
|
|
|
3171
3192
|
case "submit":
|
|
3172
3193
|
return x.green(J);
|
|
3173
3194
|
}
|
|
3174
|
-
},
|
|
3175
|
-
const l = t.limit ?? 1 / 0, p = t.ellipsis ?? "", s = t?.ellipsisWidth ?? (p ?
|
|
3195
|
+
}, _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: "" }, No = (e, t = {}, i = {}) => {
|
|
3196
|
+
const l = t.limit ?? 1 / 0, p = t.ellipsis ?? "", s = t?.ellipsisWidth ?? (p ? No(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
3197
|
let f = 0, d = 0, g = e.length, y = 0, v = !1, w = g, b = Math.max(0, l - s), S = 0, L = 0, O = 0, $ = 0;
|
|
3177
3198
|
e: for (; ; ) {
|
|
3178
3199
|
if (L > S || d >= g && d > f) {
|
|
3179
3200
|
const _ = e.slice(S, L) || e.slice(f, d);
|
|
3180
3201
|
y = 0;
|
|
3181
|
-
for (const P of _.replaceAll(
|
|
3202
|
+
for (const P of _.replaceAll(Il, "")) {
|
|
3182
3203
|
const I = P.codePointAt(0) || 0;
|
|
3183
|
-
if (
|
|
3204
|
+
if (Nl(I) ? $ = u : Pl(I) ? $ = r : m !== a && _l(I) ? $ = m : $ = a, O + $ > b && (w = Math.min(w, Math.max(S, f) + y)), O + $ > l) {
|
|
3184
3205
|
v = !0;
|
|
3185
3206
|
break e;
|
|
3186
3207
|
}
|
|
@@ -3232,7 +3253,7 @@ const bn = gl(), yl = () => process.env.CI === "true", ue = (e, t) => bn ? e : t
|
|
|
3232
3253
|
d += 1;
|
|
3233
3254
|
}
|
|
3234
3255
|
return { width: v ? b : O, index: v ? w : g, truncated: v, ellipsed: v && l >= s };
|
|
3235
|
-
},
|
|
3256
|
+
}, kl = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 }, ze = (e, t = {}) => No(e, kl, t).width, Mt = "\x1B", Po = "", xl = 39, Fn = "\x07", Io = "[", Ml = "]", To = "m", Bn = `${Ml}8;;`, fs = new RegExp(`(?:\\${Io}(?<code>\\d+)m|\\${Bn}(?<uri>.*)${Fn})`, "y"), Rl = (e) => {
|
|
3236
3257
|
if (e >= 30 && e <= 37 || e >= 90 && e <= 97) return 39;
|
|
3237
3258
|
if (e >= 40 && e <= 47 || e >= 100 && e <= 107) return 49;
|
|
3238
3259
|
if (e === 1 || e === 2) return 22;
|
|
@@ -3242,23 +3263,23 @@ const bn = gl(), yl = () => process.env.CI === "true", ue = (e, t) => bn ? e : t
|
|
|
3242
3263
|
if (e === 8) return 28;
|
|
3243
3264
|
if (e === 9) return 29;
|
|
3244
3265
|
if (e === 0) return 0;
|
|
3245
|
-
}, hs = (e) => `${
|
|
3266
|
+
}, hs = (e) => `${Mt}${Io}${e}${To}`, ps = (e) => `${Mt}${Bn}${e}${Fn}`, Dl = (e) => e.map((t) => ze(t)), ti = (e, t, i) => {
|
|
3246
3267
|
const l = t[Symbol.iterator]();
|
|
3247
3268
|
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
3269
|
for (; !o.done; ) {
|
|
3249
3270
|
const u = o.value, a = ze(u);
|
|
3250
|
-
h + a <= i ? e[e.length - 1] += u : (e.push(u), h = 0), (u ===
|
|
3271
|
+
h + a <= i ? e[e.length - 1] += u : (e.push(u), h = 0), (u === Mt || u === Po) && (p = !0, s = t.startsWith(Bn, n + 1)), p ? s ? u === Fn && (p = !1, s = !1) : u === To && (p = !1) : (h += a, h === i && !m.done && (e.push(""), h = 0)), o = m, m = l.next(), n += u.length;
|
|
3251
3272
|
}
|
|
3252
3273
|
c = e.at(-1), !h && c !== void 0 && c.length > 0 && e.length > 1 && (e[e.length - 2] += e.pop());
|
|
3253
|
-
},
|
|
3274
|
+
}, Fl = (e) => {
|
|
3254
3275
|
const t = e.split(" ");
|
|
3255
3276
|
let i = t.length;
|
|
3256
3277
|
for (; i > 0 && !(ze(t[i - 1]) > 0); ) i--;
|
|
3257
3278
|
return i === t.length ? e : t.slice(0, i).join(" ") + t.slice(i).join("");
|
|
3258
|
-
},
|
|
3279
|
+
}, Bl = (e, t, i = {}) => {
|
|
3259
3280
|
if (i.trim !== !1 && e.trim() === "") return "";
|
|
3260
3281
|
let l = "", p, s;
|
|
3261
|
-
const c = e.split(" "), h =
|
|
3282
|
+
const c = e.split(" "), h = Dl(c);
|
|
3262
3283
|
let o = [""];
|
|
3263
3284
|
for (const [f, d] of c.entries()) {
|
|
3264
3285
|
i.trim !== !1 && (o[o.length - 1] = (o.at(-1) ?? "").trimStart());
|
|
@@ -3281,18 +3302,18 @@ const bn = gl(), yl = () => process.env.CI === "true", ue = (e, t) => bn ? e : t
|
|
|
3281
3302
|
}
|
|
3282
3303
|
o[o.length - 1] += d;
|
|
3283
3304
|
}
|
|
3284
|
-
i.trim !== !1 && (o = o.map((f) =>
|
|
3305
|
+
i.trim !== !1 && (o = o.map((f) => Fl(f)));
|
|
3285
3306
|
const m = o.join(`
|
|
3286
3307
|
`), n = m[Symbol.iterator]();
|
|
3287
3308
|
let u = n.next(), a = n.next(), r = 0;
|
|
3288
3309
|
for (; !u.done; ) {
|
|
3289
3310
|
const f = u.value, d = a.value;
|
|
3290
|
-
if (l += f, f ===
|
|
3311
|
+
if (l += f, f === Mt || f === Po) {
|
|
3291
3312
|
fs.lastIndex = r + 1;
|
|
3292
3313
|
const y = fs.exec(m)?.groups;
|
|
3293
3314
|
if (y?.code !== void 0) {
|
|
3294
3315
|
const v = Number.parseFloat(y.code);
|
|
3295
|
-
p = v ===
|
|
3316
|
+
p = v === xl ? void 0 : v;
|
|
3296
3317
|
} else y?.uri !== void 0 && (s = y.uri.length === 0 ? void 0 : y.uri);
|
|
3297
3318
|
}
|
|
3298
3319
|
const g = p ? Rl(p) : void 0;
|
|
@@ -3306,18 +3327,18 @@ function vn(e, t, i) {
|
|
|
3306
3327
|
return String(e).normalize().replaceAll(`\r
|
|
3307
3328
|
`, `
|
|
3308
3329
|
`).split(`
|
|
3309
|
-
`).map((l) =>
|
|
3330
|
+
`).map((l) => Bl(l, t, i)).join(`
|
|
3310
3331
|
`);
|
|
3311
3332
|
}
|
|
3312
|
-
const
|
|
3333
|
+
const Gl = (e, t, i, l, p) => {
|
|
3313
3334
|
let s = t, c = 0;
|
|
3314
3335
|
for (let h = i; h < l; h++) {
|
|
3315
3336
|
const o = e[h];
|
|
3316
3337
|
if (s = s - o.length, c++, s <= p) break;
|
|
3317
3338
|
}
|
|
3318
3339
|
return { lineCount: s, removals: c };
|
|
3319
|
-
},
|
|
3320
|
-
const { cursor: t, options: i, style: l } = e, p = e.output ?? process.stdout, s =
|
|
3340
|
+
}, ql = (e) => {
|
|
3341
|
+
const { cursor: t, options: i, style: l } = e, p = e.output ?? process.stdout, s = xn(p), c = e.columnPadding ?? 0, h = e.rowPadding ?? 4, o = s - c, m = Oo(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
3342
|
let f = 0;
|
|
3322
3343
|
t >= r - 3 && (f = Math.max(Math.min(t - r + 3, i.length - r), 0));
|
|
3323
3344
|
let d = r < i.length && f > 0, g = r < i.length && f + r < i.length;
|
|
@@ -3332,20 +3353,20 @@ const Bl = (e, t, i, l, p) => {
|
|
|
3332
3353
|
}
|
|
3333
3354
|
if (w > a) {
|
|
3334
3355
|
let O = 0, $ = 0, _ = w;
|
|
3335
|
-
const P = t - b, I = (B, F) =>
|
|
3356
|
+
const P = t - b, I = (B, F) => Gl(v, _, B, F, a);
|
|
3336
3357
|
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
3358
|
}
|
|
3338
3359
|
const L = [];
|
|
3339
3360
|
d && L.push(n);
|
|
3340
3361
|
for (const O of v) for (const $ of O) L.push($);
|
|
3341
3362
|
return g && L.push(n), L;
|
|
3342
|
-
},
|
|
3363
|
+
}, jl = async (e, t) => {
|
|
3343
3364
|
const i = {}, l = Object.keys(e);
|
|
3344
3365
|
for (const p of l) {
|
|
3345
3366
|
const s = e[p], c = await s({ results: i })?.catch((h) => {
|
|
3346
3367
|
throw h;
|
|
3347
3368
|
});
|
|
3348
|
-
if (typeof t?.onCancel == "function" &&
|
|
3369
|
+
if (typeof t?.onCancel == "function" && Lo(c)) {
|
|
3349
3370
|
i[p] = "canceled", t.onCancel({ results: i });
|
|
3350
3371
|
continue;
|
|
3351
3372
|
}
|
|
@@ -3366,32 +3387,32 @@ const Bl = (e, t, i, l, p) => {
|
|
|
3366
3387
|
`)}
|
|
3367
3388
|
`);
|
|
3368
3389
|
}, info: (e, t) => {
|
|
3369
|
-
Ae.message(e, { ...t, symbol: x.blue(
|
|
3390
|
+
Ae.message(e, { ...t, symbol: x.blue(Cl) });
|
|
3370
3391
|
}, success: (e, t) => {
|
|
3371
|
-
Ae.message(e, { ...t, symbol: x.green(
|
|
3392
|
+
Ae.message(e, { ...t, symbol: x.green(Al) });
|
|
3372
3393
|
}, step: (e, t) => {
|
|
3373
3394
|
Ae.message(e, { ...t, symbol: x.green(Rn) });
|
|
3374
3395
|
}, warn: (e, t) => {
|
|
3375
|
-
Ae.message(e, { ...t, symbol: x.yellow(
|
|
3396
|
+
Ae.message(e, { ...t, symbol: x.yellow(Ll) });
|
|
3376
3397
|
}, warning: (e, t) => {
|
|
3377
3398
|
Ae.warn(e, t);
|
|
3378
3399
|
}, error: (e, t) => {
|
|
3379
|
-
Ae.message(e, { ...t, symbol: x.red(
|
|
3380
|
-
} },
|
|
3400
|
+
Ae.message(e, { ...t, symbol: x.red(Ol) });
|
|
3401
|
+
} }, ko = (e = "", t) => {
|
|
3381
3402
|
process.stdout.write(`${x.gray(Le)} ${x.red(e)}
|
|
3382
3403
|
|
|
3383
3404
|
`);
|
|
3384
|
-
},
|
|
3385
|
-
process.stdout.write(`${x.gray(
|
|
3405
|
+
}, Ul = (e = "", t) => {
|
|
3406
|
+
process.stdout.write(`${x.gray(Sl)} ${e}
|
|
3386
3407
|
`);
|
|
3387
|
-
},
|
|
3408
|
+
}, Gn = (e = "", t) => {
|
|
3388
3409
|
process.stdout.write(`${x.gray(J)}
|
|
3389
3410
|
${x.gray(Le)} ${e}
|
|
3390
3411
|
|
|
3391
3412
|
`);
|
|
3392
|
-
},
|
|
3413
|
+
}, Hl = (e) => new dl({ validate: e.validate, mask: e.mask ?? El, signal: e.signal, input: e.input, output: e.output, render() {
|
|
3393
3414
|
const t = e.withGuide ?? ye.withGuide, i = `${t ? `${x.gray(J)}
|
|
3394
|
-
` : ""}${
|
|
3415
|
+
` : ""}${Dn(this.state)} ${e.message}
|
|
3395
3416
|
`, l = this.userInputWithCursor, p = this.masked;
|
|
3396
3417
|
switch (this.state) {
|
|
3397
3418
|
case "error": {
|
|
@@ -3417,12 +3438,12 @@ ${c}
|
|
|
3417
3438
|
`;
|
|
3418
3439
|
}
|
|
3419
3440
|
}
|
|
3420
|
-
} }).prompt(),
|
|
3421
|
-
const m =
|
|
3441
|
+
} }).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 } = {}) => {
|
|
3442
|
+
const m = bl();
|
|
3422
3443
|
let n, u, a = !1, r = !1, f = "", d, g = performance.now();
|
|
3423
|
-
const y =
|
|
3424
|
-
const
|
|
3425
|
-
r = D === 1, a && (F(
|
|
3444
|
+
const y = xn(i), v = o?.styleFrame ?? Vl, w = (D) => {
|
|
3445
|
+
const R = D > 1 ? p ?? ye.messages.error : l ?? ye.messages.cancel;
|
|
3446
|
+
r = D === 1, a && (F(R, D), r && typeof t == "function" && t());
|
|
3426
3447
|
}, b = () => w(2), S = () => w(1), L = () => {
|
|
3427
3448
|
process.on("uncaughtExceptionMonitor", b), process.on("unhandledRejection", b), process.on("SIGINT", S), process.on("SIGTERM", S), process.on("exit", w), h && h.addEventListener("abort", S);
|
|
3428
3449
|
}, O = () => {
|
|
@@ -3433,32 +3454,32 @@ ${c}
|
|
|
3433
3454
|
`);
|
|
3434
3455
|
const D = vn(d, y, { hard: !0, trim: !1 }).split(`
|
|
3435
3456
|
`);
|
|
3436
|
-
D.length > 1 && i.write(
|
|
3457
|
+
D.length > 1 && i.write(ne.cursor.up(D.length - 1)), i.write(ne.cursor.to(0)), i.write(ne.erase.down());
|
|
3437
3458
|
}, _ = (D) => D.replace(/\.+$/, ""), P = (D) => {
|
|
3438
|
-
const
|
|
3459
|
+
const R = (performance.now() - D) / 1e3, G = Math.floor(R / 60), T = Math.floor(R % 60);
|
|
3439
3460
|
return G > 0 ? `[${G}m ${T}s]` : `[${T}s]`;
|
|
3440
3461
|
}, I = o.withGuide ?? ye.withGuide, B = (D = "") => {
|
|
3441
|
-
a = !0, n =
|
|
3462
|
+
a = !0, n = pl({ output: i }), f = _(D), g = performance.now(), I && i.write(`${x.gray(J)}
|
|
3442
3463
|
`);
|
|
3443
|
-
let
|
|
3464
|
+
let R = 0, G = 0;
|
|
3444
3465
|
L(), u = setInterval(() => {
|
|
3445
3466
|
if (m && f === d) return;
|
|
3446
3467
|
$(), d = f;
|
|
3447
|
-
const T = v(s[
|
|
3448
|
-
let
|
|
3449
|
-
if (m)
|
|
3450
|
-
else if (e === "timer")
|
|
3468
|
+
const T = v(s[R]);
|
|
3469
|
+
let K;
|
|
3470
|
+
if (m) K = `${T} ${f}...`;
|
|
3471
|
+
else if (e === "timer") K = `${T} ${f} ${P(g)}`;
|
|
3451
3472
|
else {
|
|
3452
3473
|
const U = ".".repeat(Math.floor(G)).slice(0, 3);
|
|
3453
|
-
|
|
3474
|
+
K = `${T} ${f}${U}`;
|
|
3454
3475
|
}
|
|
3455
|
-
const j = vn(
|
|
3456
|
-
i.write(j),
|
|
3476
|
+
const j = vn(K, y, { hard: !0, trim: !1 });
|
|
3477
|
+
i.write(j), R = R + 1 < s.length ? R + 1 : 0, G = G < 4 ? G + 0.125 : 0;
|
|
3457
3478
|
}, c);
|
|
3458
|
-
}, F = (D = "",
|
|
3479
|
+
}, F = (D = "", R = 0, G = !1) => {
|
|
3459
3480
|
if (!a) return;
|
|
3460
3481
|
a = !1, clearInterval(u), $();
|
|
3461
|
-
const T =
|
|
3482
|
+
const T = R === 0 ? x.green(Rn) : R === 1 ? x.red($o) : x.red(_o);
|
|
3462
3483
|
f = D ?? f, G || (e === "timer" ? i.write(`${T} ${f} ${P(g)}
|
|
3463
3484
|
`) : i.write(`${T} ${f}
|
|
3464
3485
|
`)), O(), n();
|
|
@@ -3471,7 +3492,7 @@ ${c}
|
|
|
3471
3492
|
}, pt = (e, t) => e.includes(`
|
|
3472
3493
|
`) ? e.split(`
|
|
3473
3494
|
`).map((i) => t(i)).join(`
|
|
3474
|
-
`) : t(e),
|
|
3495
|
+
`) : t(e), Kl = (e) => {
|
|
3475
3496
|
const t = (i, l) => {
|
|
3476
3497
|
const p = i.label ?? String(i.value);
|
|
3477
3498
|
switch (l) {
|
|
@@ -3480,15 +3501,15 @@ ${c}
|
|
|
3480
3501
|
case "selected":
|
|
3481
3502
|
return `${pt(p, x.dim)}`;
|
|
3482
3503
|
case "active":
|
|
3483
|
-
return `${x.green(
|
|
3504
|
+
return `${x.green(wl)} ${p}${i.hint ? ` ${x.dim(`(${i.hint})`)}` : ""}`;
|
|
3484
3505
|
case "cancelled":
|
|
3485
3506
|
return `${pt(p, (s) => x.strikethrough(x.dim(s)))}`;
|
|
3486
3507
|
default:
|
|
3487
3508
|
return `${x.dim(us)} ${pt(p, x.dim)}`;
|
|
3488
3509
|
}
|
|
3489
3510
|
};
|
|
3490
|
-
return new
|
|
3491
|
-
const i = e.withGuide ?? ye.withGuide, l = `${
|
|
3511
|
+
return new ml({ options: e.options, signal: e.signal, input: e.input, output: e.output, initialValue: e.initialValue, render() {
|
|
3512
|
+
const i = e.withGuide ?? ye.withGuide, l = `${Dn(this.state)} `, p = `${$l(this.state)} `, s = Qt(e.output, e.message, p, l), c = `${i ? `${x.gray(J)}
|
|
3492
3513
|
` : ""}${s}
|
|
3493
3514
|
`;
|
|
3494
3515
|
switch (this.state) {
|
|
@@ -3504,7 +3525,7 @@ ${x.gray(J)}` : ""}`;
|
|
|
3504
3525
|
default: {
|
|
3505
3526
|
const h = i ? `${x.cyan(J)} ` : "", o = i ? x.cyan(Le) : "", m = c.split(`
|
|
3506
3527
|
`).length, n = i ? 2 : 1;
|
|
3507
|
-
return `${c}${h}${
|
|
3528
|
+
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
3529
|
${h}`)}
|
|
3509
3530
|
${o}
|
|
3510
3531
|
`;
|
|
@@ -3513,9 +3534,9 @@ ${o}
|
|
|
3513
3534
|
} }).prompt();
|
|
3514
3535
|
};
|
|
3515
3536
|
`${x.gray(J)}`;
|
|
3516
|
-
const Yl = (e) => new
|
|
3537
|
+
const Yl = (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
3538
|
const t = e?.withGuide ?? ye.withGuide, i = `${`${t ? `${x.gray(J)}
|
|
3518
|
-
` : ""}${
|
|
3539
|
+
` : ""}${Dn(this.state)} `}${e.message}
|
|
3519
3540
|
`, 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 ?? "";
|
|
3520
3541
|
switch (this.state) {
|
|
3521
3542
|
case "error": {
|
|
@@ -3602,9 +3623,9 @@ ${h}
|
|
|
3602
3623
|
}
|
|
3603
3624
|
};
|
|
3604
3625
|
Object.keys(z.modifier);
|
|
3605
|
-
const
|
|
3606
|
-
[...
|
|
3607
|
-
function
|
|
3626
|
+
const Jl = Object.keys(z.color), zl = Object.keys(z.bgColor);
|
|
3627
|
+
[...Jl, ...zl];
|
|
3628
|
+
function Xl() {
|
|
3608
3629
|
const e = /* @__PURE__ */ new Map();
|
|
3609
3630
|
for (const [t, i] of Object.entries(z)) {
|
|
3610
3631
|
for (const [l, p] of Object.entries(i))
|
|
@@ -3681,19 +3702,19 @@ function zl() {
|
|
|
3681
3702
|
}
|
|
3682
3703
|
}), z;
|
|
3683
3704
|
}
|
|
3684
|
-
const be =
|
|
3685
|
-
function
|
|
3705
|
+
const be = Xl();
|
|
3706
|
+
function me(e, t = globalThis.Deno ? globalThis.Deno.args : q.argv) {
|
|
3686
3707
|
const i = e.startsWith("-") ? "" : e.length === 1 ? "-" : "--", l = t.indexOf(i + e), p = t.indexOf("--");
|
|
3687
3708
|
return l !== -1 && (p === -1 || l < p);
|
|
3688
3709
|
}
|
|
3689
3710
|
const { env: X } = q;
|
|
3690
|
-
let
|
|
3691
|
-
|
|
3692
|
-
function
|
|
3711
|
+
let Pt;
|
|
3712
|
+
me("no-color") || me("no-colors") || me("color=false") || me("color=never") ? Pt = 0 : (me("color") || me("colors") || me("color=true") || me("color=always")) && (Pt = 1);
|
|
3713
|
+
function Ql() {
|
|
3693
3714
|
if ("FORCE_COLOR" in X)
|
|
3694
3715
|
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
3716
|
}
|
|
3696
|
-
function
|
|
3717
|
+
function Zl(e) {
|
|
3697
3718
|
return e === 0 ? !1 : {
|
|
3698
3719
|
level: e,
|
|
3699
3720
|
hasBasic: !0,
|
|
@@ -3701,16 +3722,16 @@ function Ql(e) {
|
|
|
3701
3722
|
has16m: e >= 3
|
|
3702
3723
|
};
|
|
3703
3724
|
}
|
|
3704
|
-
function
|
|
3705
|
-
const l =
|
|
3706
|
-
l !== void 0 && (
|
|
3707
|
-
const p = i ?
|
|
3725
|
+
function ec(e, { streamIsTTY: t, sniffFlags: i = !0 } = {}) {
|
|
3726
|
+
const l = Ql();
|
|
3727
|
+
l !== void 0 && (Pt = l);
|
|
3728
|
+
const p = i ? Pt : l;
|
|
3708
3729
|
if (p === 0)
|
|
3709
3730
|
return 0;
|
|
3710
3731
|
if (i) {
|
|
3711
|
-
if (
|
|
3732
|
+
if (me("color=16m") || me("color=full") || me("color=truecolor"))
|
|
3712
3733
|
return 3;
|
|
3713
|
-
if (
|
|
3734
|
+
if (me("color=256"))
|
|
3714
3735
|
return 2;
|
|
3715
3736
|
}
|
|
3716
3737
|
if ("TF_BUILD" in X && "AGENT_NAME" in X)
|
|
@@ -3721,7 +3742,7 @@ function Zl(e, { streamIsTTY: t, sniffFlags: i = !0 } = {}) {
|
|
|
3721
3742
|
if (X.TERM === "dumb")
|
|
3722
3743
|
return s;
|
|
3723
3744
|
if (q.platform === "win32") {
|
|
3724
|
-
const c =
|
|
3745
|
+
const c = Oa.release().split(".");
|
|
3725
3746
|
return Number(c[0]) >= 10 && Number(c[2]) >= 10586 ? Number(c[2]) >= 14931 ? 3 : 2 : 1;
|
|
3726
3747
|
}
|
|
3727
3748
|
if ("CI" in X)
|
|
@@ -3742,17 +3763,17 @@ function Zl(e, { streamIsTTY: t, sniffFlags: i = !0 } = {}) {
|
|
|
3742
3763
|
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
3764
|
}
|
|
3744
3765
|
function ys(e, t = {}) {
|
|
3745
|
-
const i =
|
|
3766
|
+
const i = ec(e, {
|
|
3746
3767
|
streamIsTTY: e && e.isTTY,
|
|
3747
3768
|
...t
|
|
3748
3769
|
});
|
|
3749
|
-
return
|
|
3770
|
+
return Zl(i);
|
|
3750
3771
|
}
|
|
3751
|
-
const
|
|
3752
|
-
stdout: ys({ isTTY:
|
|
3753
|
-
stderr: ys({ isTTY:
|
|
3772
|
+
const tc = {
|
|
3773
|
+
stdout: ys({ isTTY: Zn.isatty(1) }),
|
|
3774
|
+
stderr: ys({ isTTY: Zn.isatty(2) })
|
|
3754
3775
|
};
|
|
3755
|
-
function
|
|
3776
|
+
function ic(e, t, i) {
|
|
3756
3777
|
let l = e.indexOf(t);
|
|
3757
3778
|
if (l === -1)
|
|
3758
3779
|
return e;
|
|
@@ -3763,7 +3784,7 @@ function tc(e, t, i) {
|
|
|
3763
3784
|
while (l !== -1);
|
|
3764
3785
|
return c += e.slice(s), c;
|
|
3765
3786
|
}
|
|
3766
|
-
function
|
|
3787
|
+
function nc(e, t, i, l) {
|
|
3767
3788
|
let p = 0, s = "";
|
|
3768
3789
|
do {
|
|
3769
3790
|
const c = e[l - 1] === "\r";
|
|
@@ -3774,62 +3795,62 @@ function ic(e, t, i, l) {
|
|
|
3774
3795
|
} while (l !== -1);
|
|
3775
3796
|
return s += e.slice(p), s;
|
|
3776
3797
|
}
|
|
3777
|
-
const { stdout: bs, stderr: vs } =
|
|
3798
|
+
const { stdout: bs, stderr: vs } = tc, Sn = /* @__PURE__ */ Symbol("GENERATOR"), Re = /* @__PURE__ */ Symbol("STYLER"), Xe = /* @__PURE__ */ Symbol("IS_EMPTY"), Ss = [
|
|
3778
3799
|
"ansi",
|
|
3779
3800
|
"ansi",
|
|
3780
3801
|
"ansi256",
|
|
3781
3802
|
"ansi16m"
|
|
3782
|
-
],
|
|
3803
|
+
], De = /* @__PURE__ */ Object.create(null), sc = (e, t = {}) => {
|
|
3783
3804
|
if (t.level && !(Number.isInteger(t.level) && t.level >= 0 && t.level <= 3))
|
|
3784
3805
|
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
3785
3806
|
const i = bs ? bs.level : 0;
|
|
3786
3807
|
e.level = t.level === void 0 ? i : t.level;
|
|
3787
|
-
},
|
|
3808
|
+
}, rc = (e) => {
|
|
3788
3809
|
const t = (...i) => i.join(" ");
|
|
3789
|
-
return
|
|
3810
|
+
return sc(t, e), Object.setPrototypeOf(t, Qe.prototype), t;
|
|
3790
3811
|
};
|
|
3791
3812
|
function Qe(e) {
|
|
3792
|
-
return
|
|
3813
|
+
return rc(e);
|
|
3793
3814
|
}
|
|
3794
3815
|
Object.setPrototypeOf(Qe.prototype, Function.prototype);
|
|
3795
3816
|
for (const [e, t] of Object.entries(be))
|
|
3796
|
-
|
|
3817
|
+
De[e] = {
|
|
3797
3818
|
get() {
|
|
3798
|
-
const i =
|
|
3819
|
+
const i = It(this, En(t.open, t.close, this[Re]), this[Xe]);
|
|
3799
3820
|
return Object.defineProperty(this, e, { value: i }), i;
|
|
3800
3821
|
}
|
|
3801
3822
|
};
|
|
3802
|
-
|
|
3823
|
+
De.visible = {
|
|
3803
3824
|
get() {
|
|
3804
|
-
const e =
|
|
3825
|
+
const e = It(this, this[Re], !0);
|
|
3805
3826
|
return Object.defineProperty(this, "visible", { value: e }), e;
|
|
3806
3827
|
}
|
|
3807
3828
|
};
|
|
3808
|
-
const wn = (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" ? wn("rgb", t, i, ...be.hexToRgb(...l)) : be[i][e](...l),
|
|
3809
|
-
for (const e of
|
|
3810
|
-
|
|
3829
|
+
const wn = (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" ? wn("rgb", t, i, ...be.hexToRgb(...l)) : be[i][e](...l), oc = ["rgb", "hex", "ansi256"];
|
|
3830
|
+
for (const e of oc) {
|
|
3831
|
+
De[e] = {
|
|
3811
3832
|
get() {
|
|
3812
3833
|
const { level: i } = this;
|
|
3813
3834
|
return function(...l) {
|
|
3814
3835
|
const p = En(wn(e, Ss[i], "color", ...l), be.color.close, this[Re]);
|
|
3815
|
-
return
|
|
3836
|
+
return It(this, p, this[Xe]);
|
|
3816
3837
|
};
|
|
3817
3838
|
}
|
|
3818
3839
|
};
|
|
3819
3840
|
const t = "bg" + e[0].toUpperCase() + e.slice(1);
|
|
3820
|
-
|
|
3841
|
+
De[t] = {
|
|
3821
3842
|
get() {
|
|
3822
3843
|
const { level: i } = this;
|
|
3823
3844
|
return function(...l) {
|
|
3824
3845
|
const p = En(wn(e, Ss[i], "bgColor", ...l), be.bgColor.close, this[Re]);
|
|
3825
|
-
return
|
|
3846
|
+
return It(this, p, this[Xe]);
|
|
3826
3847
|
};
|
|
3827
3848
|
}
|
|
3828
3849
|
};
|
|
3829
3850
|
}
|
|
3830
|
-
const
|
|
3851
|
+
const ac = Object.defineProperties(() => {
|
|
3831
3852
|
}, {
|
|
3832
|
-
...
|
|
3853
|
+
...De,
|
|
3833
3854
|
level: {
|
|
3834
3855
|
enumerable: !0,
|
|
3835
3856
|
get() {
|
|
@@ -3848,10 +3869,10 @@ const oc = Object.defineProperties(() => {
|
|
|
3848
3869
|
closeAll: p,
|
|
3849
3870
|
parent: i
|
|
3850
3871
|
};
|
|
3851
|
-
},
|
|
3852
|
-
const l = (...p) =>
|
|
3853
|
-
return Object.setPrototypeOf(l,
|
|
3854
|
-
},
|
|
3872
|
+
}, It = (e, t, i) => {
|
|
3873
|
+
const l = (...p) => lc(l, p.length === 1 ? "" + p[0] : p.join(" "));
|
|
3874
|
+
return Object.setPrototypeOf(l, ac), l[Sn] = e, l[Re] = t, l[Xe] = i, l;
|
|
3875
|
+
}, lc = (e, t) => {
|
|
3855
3876
|
if (e.level <= 0 || !t)
|
|
3856
3877
|
return e[Xe] ? "" : t;
|
|
3857
3878
|
let i = e[Re];
|
|
@@ -3860,20 +3881,20 @@ const oc = Object.defineProperties(() => {
|
|
|
3860
3881
|
const { openAll: l, closeAll: p } = i;
|
|
3861
3882
|
if (t.includes("\x1B"))
|
|
3862
3883
|
for (; i !== void 0; )
|
|
3863
|
-
t =
|
|
3884
|
+
t = ic(t, i.close, i.open), i = i.parent;
|
|
3864
3885
|
const s = t.indexOf(`
|
|
3865
3886
|
`);
|
|
3866
|
-
return s !== -1 && (t =
|
|
3887
|
+
return s !== -1 && (t = nc(t, p, l, s)), l + t + p;
|
|
3867
3888
|
};
|
|
3868
|
-
Object.defineProperties(Qe.prototype,
|
|
3869
|
-
const
|
|
3889
|
+
Object.defineProperties(Qe.prototype, De);
|
|
3890
|
+
const xo = Qe();
|
|
3870
3891
|
Qe({ level: vs ? vs.level : 0 });
|
|
3871
|
-
var _t = { exports: {} },
|
|
3872
|
-
function
|
|
3892
|
+
var _t = { exports: {} }, cc = _t.exports, ws;
|
|
3893
|
+
function uc() {
|
|
3873
3894
|
return ws || (ws = 1, (function(e, t) {
|
|
3874
3895
|
(function(i, l) {
|
|
3875
3896
|
e.exports = l();
|
|
3876
|
-
})(
|
|
3897
|
+
})(cc, (function() {
|
|
3877
3898
|
function i(E) {
|
|
3878
3899
|
"@babel/helpers - typeof";
|
|
3879
3900
|
return i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(A) {
|
|
@@ -3915,8 +3936,8 @@ function cc() {
|
|
|
3915
3936
|
return (A.r * 299 + A.g * 587 + A.b * 114) / 1e3;
|
|
3916
3937
|
},
|
|
3917
3938
|
getLuminance: function() {
|
|
3918
|
-
var A = this.toRgb(), C, N,
|
|
3919
|
-
return C = A.r / 255, N = A.g / 255,
|
|
3939
|
+
var A = this.toRgb(), C, N, M, k, V, Y;
|
|
3940
|
+
return C = A.r / 255, N = A.g / 255, M = A.b / 255, C <= 0.03928 ? k = C / 12.92 : k = Math.pow((C + 0.055) / 1.055, 2.4), N <= 0.03928 ? V = N / 12.92 : V = Math.pow((N + 0.055) / 1.055, 2.4), M <= 0.03928 ? Y = M / 12.92 : Y = Math.pow((M + 0.055) / 1.055, 2.4), 0.2126 * k + 0.7152 * V + 0.0722 * Y;
|
|
3920
3941
|
},
|
|
3921
3942
|
setAlpha: function(A) {
|
|
3922
3943
|
return this._a = D(A), this._roundA = Math.round(100 * this._a) / 100, this;
|
|
@@ -3931,8 +3952,8 @@ function cc() {
|
|
|
3931
3952
|
};
|
|
3932
3953
|
},
|
|
3933
3954
|
toHsvString: function() {
|
|
3934
|
-
var A = n(this._r, this._g, this._b), C = Math.round(A.h * 360), N = Math.round(A.s * 100),
|
|
3935
|
-
return this._a == 1 ? "hsv(" + C + ", " + N + "%, " +
|
|
3955
|
+
var A = n(this._r, this._g, this._b), C = Math.round(A.h * 360), N = Math.round(A.s * 100), M = Math.round(A.v * 100);
|
|
3956
|
+
return this._a == 1 ? "hsv(" + C + ", " + N + "%, " + M + "%)" : "hsva(" + C + ", " + N + "%, " + M + "%, " + this._roundA + ")";
|
|
3936
3957
|
},
|
|
3937
3958
|
toHsl: function() {
|
|
3938
3959
|
var A = o(this._r, this._g, this._b);
|
|
@@ -3944,8 +3965,8 @@ function cc() {
|
|
|
3944
3965
|
};
|
|
3945
3966
|
},
|
|
3946
3967
|
toHslString: function() {
|
|
3947
|
-
var A = o(this._r, this._g, this._b), C = Math.round(A.h * 360), N = Math.round(A.s * 100),
|
|
3948
|
-
return this._a == 1 ? "hsl(" + C + ", " + N + "%, " +
|
|
3968
|
+
var A = o(this._r, this._g, this._b), C = Math.round(A.h * 360), N = Math.round(A.s * 100), M = Math.round(A.l * 100);
|
|
3969
|
+
return this._a == 1 ? "hsl(" + C + ", " + N + "%, " + M + "%)" : "hsla(" + C + ", " + N + "%, " + M + "%, " + this._roundA + ")";
|
|
3949
3970
|
},
|
|
3950
3971
|
toHex: function(A) {
|
|
3951
3972
|
return a(this._r, this._g, this._b, A);
|
|
@@ -3972,30 +3993,30 @@ function cc() {
|
|
|
3972
3993
|
},
|
|
3973
3994
|
toPercentageRgb: function() {
|
|
3974
3995
|
return {
|
|
3975
|
-
r: Math.round(
|
|
3976
|
-
g: Math.round(
|
|
3977
|
-
b: Math.round(
|
|
3996
|
+
r: Math.round(R(this._r, 255) * 100) + "%",
|
|
3997
|
+
g: Math.round(R(this._g, 255) * 100) + "%",
|
|
3998
|
+
b: Math.round(R(this._b, 255) * 100) + "%",
|
|
3978
3999
|
a: this._a
|
|
3979
4000
|
};
|
|
3980
4001
|
},
|
|
3981
4002
|
toPercentageRgbString: function() {
|
|
3982
|
-
return this._a == 1 ? "rgb(" + Math.round(
|
|
4003
|
+
return this._a == 1 ? "rgb(" + Math.round(R(this._r, 255) * 100) + "%, " + Math.round(R(this._g, 255) * 100) + "%, " + Math.round(R(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(R(this._r, 255) * 100) + "%, " + Math.round(R(this._g, 255) * 100) + "%, " + Math.round(R(this._b, 255) * 100) + "%, " + this._roundA + ")";
|
|
3983
4004
|
},
|
|
3984
4005
|
toName: function() {
|
|
3985
4006
|
return this._a === 0 ? "transparent" : this._a < 1 ? !1 : B[a(this._r, this._g, this._b, !0)] || !1;
|
|
3986
4007
|
},
|
|
3987
4008
|
toFilter: function(A) {
|
|
3988
|
-
var C = "#" + f(this._r, this._g, this._b, this._a), N = C,
|
|
4009
|
+
var C = "#" + f(this._r, this._g, this._b, this._a), N = C, M = this._gradientType ? "GradientType = 1, " : "";
|
|
3989
4010
|
if (A) {
|
|
3990
4011
|
var k = s(A);
|
|
3991
4012
|
N = "#" + f(k._r, k._g, k._b, k._a);
|
|
3992
4013
|
}
|
|
3993
|
-
return "progid:DXImageTransform.Microsoft.gradient(" +
|
|
4014
|
+
return "progid:DXImageTransform.Microsoft.gradient(" + M + "startColorstr=" + C + ",endColorstr=" + N + ")";
|
|
3994
4015
|
},
|
|
3995
4016
|
toString: function(A) {
|
|
3996
4017
|
var C = !!A;
|
|
3997
4018
|
A = A || this._format;
|
|
3998
|
-
var N = !1,
|
|
4019
|
+
var N = !1, M = this._a < 1 && this._a >= 0, k = !C && M && (A === "hex" || A === "hex6" || A === "hex3" || A === "hex4" || A === "hex8" || A === "name");
|
|
3999
4020
|
return k ? A === "name" && this._a === 0 ? this.toName() : this.toRgbString() : (A === "rgb" && (N = this.toRgbString()), A === "prgb" && (N = this.toPercentageRgbString()), (A === "hex" || A === "hex6") && (N = this.toHexString()), A === "hex3" && (N = this.toHexString(!0)), A === "hex4" && (N = this.toHex8String(!0)), A === "hex8" && (N = this.toHex8String()), A === "name" && (N = this.toName()), A === "hsl" && (N = this.toHslString()), A === "hsv" && (N = this.toHsvString()), N || this.toHexString());
|
|
4000
4021
|
},
|
|
4001
4022
|
clone: function() {
|
|
@@ -4055,7 +4076,7 @@ function cc() {
|
|
|
4055
4076
|
if (i(E) == "object") {
|
|
4056
4077
|
var C = {};
|
|
4057
4078
|
for (var N in E)
|
|
4058
|
-
E.hasOwnProperty(N) && (N === "a" ? C[N] = E[N] : C[N] =
|
|
4079
|
+
E.hasOwnProperty(N) && (N === "a" ? C[N] = E[N] : C[N] = ie(E[N]));
|
|
4059
4080
|
E = C;
|
|
4060
4081
|
}
|
|
4061
4082
|
return s(E, A);
|
|
@@ -4065,10 +4086,10 @@ function cc() {
|
|
|
4065
4086
|
r: 0,
|
|
4066
4087
|
g: 0,
|
|
4067
4088
|
b: 0
|
|
4068
|
-
}, C = 1, N = null,
|
|
4069
|
-
return typeof E == "string" && (E =
|
|
4089
|
+
}, C = 1, N = null, M = null, k = null, V = !1, Y = !1;
|
|
4090
|
+
return typeof E == "string" && (E = Ea(E)), i(E) == "object" && (Se(E.r) && Se(E.g) && Se(E.b) ? (A = h(E.r, E.g, E.b), V = !0, Y = String(E.r).substr(-1) === "%" ? "prgb" : "rgb") : Se(E.h) && Se(E.s) && Se(E.v) ? (N = ie(E.s), M = ie(E.v), A = u(E.h, N, M), V = !0, Y = "hsv") : Se(E.h) && Se(E.s) && Se(E.l) && (N = ie(E.s), k = ie(E.l), A = m(E.h, N, k), V = !0, Y = "hsl"), E.hasOwnProperty("a") && (C = E.a)), C = D(C), {
|
|
4070
4091
|
ok: V,
|
|
4071
|
-
format: E.format ||
|
|
4092
|
+
format: E.format || Y,
|
|
4072
4093
|
r: Math.min(255, Math.max(A.r, 0)),
|
|
4073
4094
|
g: Math.min(255, Math.max(A.g, 0)),
|
|
4074
4095
|
b: Math.min(255, Math.max(A.b, 0)),
|
|
@@ -4077,19 +4098,19 @@ function cc() {
|
|
|
4077
4098
|
}
|
|
4078
4099
|
function h(E, A, C) {
|
|
4079
4100
|
return {
|
|
4080
|
-
r:
|
|
4081
|
-
g:
|
|
4082
|
-
b:
|
|
4101
|
+
r: R(E, 255) * 255,
|
|
4102
|
+
g: R(A, 255) * 255,
|
|
4103
|
+
b: R(C, 255) * 255
|
|
4083
4104
|
};
|
|
4084
4105
|
}
|
|
4085
4106
|
function o(E, A, C) {
|
|
4086
|
-
E =
|
|
4087
|
-
var N = Math.max(E, A, C),
|
|
4088
|
-
if (N ==
|
|
4107
|
+
E = R(E, 255), A = R(A, 255), C = R(C, 255);
|
|
4108
|
+
var N = Math.max(E, A, C), M = Math.min(E, A, C), k, V, Y = (N + M) / 2;
|
|
4109
|
+
if (N == M)
|
|
4089
4110
|
k = V = 0;
|
|
4090
4111
|
else {
|
|
4091
|
-
var Z = N -
|
|
4092
|
-
switch (V =
|
|
4112
|
+
var Z = N - M;
|
|
4113
|
+
switch (V = Y > 0.5 ? Z / (2 - N - M) : Z / (N + M), N) {
|
|
4093
4114
|
case E:
|
|
4094
4115
|
k = (A - C) / Z + (A < C ? 6 : 0);
|
|
4095
4116
|
break;
|
|
@@ -4105,31 +4126,31 @@ function cc() {
|
|
|
4105
4126
|
return {
|
|
4106
4127
|
h: k,
|
|
4107
4128
|
s: V,
|
|
4108
|
-
l:
|
|
4129
|
+
l: Y
|
|
4109
4130
|
};
|
|
4110
4131
|
}
|
|
4111
4132
|
function m(E, A, C) {
|
|
4112
|
-
var N,
|
|
4113
|
-
E =
|
|
4114
|
-
function V(
|
|
4115
|
-
return ge < 0 && (ge += 1), ge > 1 && (ge -= 1), ge < 1 / 6 ?
|
|
4133
|
+
var N, M, k;
|
|
4134
|
+
E = R(E, 360), A = R(A, 100), C = R(C, 100);
|
|
4135
|
+
function V(de, Fe, ge) {
|
|
4136
|
+
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
4137
|
}
|
|
4117
4138
|
if (A === 0)
|
|
4118
|
-
N =
|
|
4139
|
+
N = M = k = C;
|
|
4119
4140
|
else {
|
|
4120
|
-
var
|
|
4121
|
-
N = V(Z,
|
|
4141
|
+
var Y = C < 0.5 ? C * (1 + A) : C + A - C * A, Z = 2 * C - Y;
|
|
4142
|
+
N = V(Z, Y, E + 1 / 3), M = V(Z, Y, E), k = V(Z, Y, E - 1 / 3);
|
|
4122
4143
|
}
|
|
4123
4144
|
return {
|
|
4124
4145
|
r: N * 255,
|
|
4125
|
-
g:
|
|
4146
|
+
g: M * 255,
|
|
4126
4147
|
b: k * 255
|
|
4127
4148
|
};
|
|
4128
4149
|
}
|
|
4129
4150
|
function n(E, A, C) {
|
|
4130
|
-
E =
|
|
4131
|
-
var N = Math.max(E, A, C),
|
|
4132
|
-
if (V = N === 0 ? 0 : Z / N, N ==
|
|
4151
|
+
E = R(E, 255), A = R(A, 255), C = R(C, 255);
|
|
4152
|
+
var N = Math.max(E, A, C), M = Math.min(E, A, C), k, V, Y = N, Z = N - M;
|
|
4153
|
+
if (V = N === 0 ? 0 : Z / N, N == M)
|
|
4133
4154
|
k = 0;
|
|
4134
4155
|
else {
|
|
4135
4156
|
switch (N) {
|
|
@@ -4148,29 +4169,29 @@ function cc() {
|
|
|
4148
4169
|
return {
|
|
4149
4170
|
h: k,
|
|
4150
4171
|
s: V,
|
|
4151
|
-
v:
|
|
4172
|
+
v: Y
|
|
4152
4173
|
};
|
|
4153
4174
|
}
|
|
4154
4175
|
function u(E, A, C) {
|
|
4155
|
-
E =
|
|
4156
|
-
var N = Math.floor(E),
|
|
4176
|
+
E = R(E, 360) * 6, A = R(A, 100), C = R(C, 100);
|
|
4177
|
+
var N = Math.floor(E), M = E - N, k = C * (1 - A), V = C * (1 - M * A), Y = C * (1 - (1 - M) * A), Z = N % 6, de = [C, V, k, k, Y, C][Z], Fe = [Y, C, C, V, k, k][Z], ge = [k, k, Y, C, C, V][Z];
|
|
4157
4178
|
return {
|
|
4158
|
-
r:
|
|
4159
|
-
g:
|
|
4179
|
+
r: de * 255,
|
|
4180
|
+
g: Fe * 255,
|
|
4160
4181
|
b: ge * 255
|
|
4161
4182
|
};
|
|
4162
4183
|
}
|
|
4163
4184
|
function a(E, A, C, N) {
|
|
4164
|
-
var
|
|
4165
|
-
return N &&
|
|
4185
|
+
var M = [U(Math.round(E).toString(16)), U(Math.round(A).toString(16)), U(Math.round(C).toString(16))];
|
|
4186
|
+
return N && M[0].charAt(0) == M[0].charAt(1) && M[1].charAt(0) == M[1].charAt(1) && M[2].charAt(0) == M[2].charAt(1) ? M[0].charAt(0) + M[1].charAt(0) + M[2].charAt(0) : M.join("");
|
|
4166
4187
|
}
|
|
4167
|
-
function r(E, A, C, N,
|
|
4188
|
+
function r(E, A, C, N, M) {
|
|
4168
4189
|
var k = [U(Math.round(E).toString(16)), U(Math.round(A).toString(16)), U(Math.round(C).toString(16)), U(ve(N))];
|
|
4169
|
-
return
|
|
4190
|
+
return M && k[0].charAt(0) == k[0].charAt(1) && k[1].charAt(0) == k[1].charAt(1) && k[2].charAt(0) == k[2].charAt(1) && k[3].charAt(0) == k[3].charAt(1) ? k[0].charAt(0) + k[1].charAt(0) + k[2].charAt(0) + k[3].charAt(0) : k.join("");
|
|
4170
4191
|
}
|
|
4171
4192
|
function f(E, A, C, N) {
|
|
4172
|
-
var
|
|
4173
|
-
return
|
|
4193
|
+
var M = [U(ve(N)), U(Math.round(E).toString(16)), U(Math.round(A).toString(16)), U(Math.round(C).toString(16))];
|
|
4194
|
+
return M.join("");
|
|
4174
4195
|
}
|
|
4175
4196
|
s.equals = function(E, A) {
|
|
4176
4197
|
return !E || !A ? !1 : s(E).toRgbString() == s(A).toRgbString();
|
|
@@ -4220,9 +4241,9 @@ function cc() {
|
|
|
4220
4241
|
function O(E, A) {
|
|
4221
4242
|
if (isNaN(A) || A <= 0)
|
|
4222
4243
|
throw new Error("Argument to polyad must be a positive number");
|
|
4223
|
-
for (var C = s(E).toHsl(), N = [s(E)],
|
|
4244
|
+
for (var C = s(E).toHsl(), N = [s(E)], M = 360 / A, k = 1; k < A; k++)
|
|
4224
4245
|
N.push(s({
|
|
4225
|
-
h: (C.h + k *
|
|
4246
|
+
h: (C.h + k * M) % 360,
|
|
4226
4247
|
s: C.s,
|
|
4227
4248
|
l: C.l
|
|
4228
4249
|
}));
|
|
@@ -4242,36 +4263,36 @@ function cc() {
|
|
|
4242
4263
|
}
|
|
4243
4264
|
function _(E, A, C) {
|
|
4244
4265
|
A = A || 6, C = C || 30;
|
|
4245
|
-
var N = s(E).toHsl(),
|
|
4246
|
-
for (N.h = (N.h - (
|
|
4247
|
-
N.h = (N.h +
|
|
4266
|
+
var N = s(E).toHsl(), M = 360 / C, k = [s(E)];
|
|
4267
|
+
for (N.h = (N.h - (M * A >> 1) + 720) % 360; --A; )
|
|
4268
|
+
N.h = (N.h + M) % 360, k.push(s(N));
|
|
4248
4269
|
return k;
|
|
4249
4270
|
}
|
|
4250
4271
|
function P(E, A) {
|
|
4251
4272
|
A = A || 6;
|
|
4252
|
-
for (var C = s(E).toHsv(), N = C.h,
|
|
4273
|
+
for (var C = s(E).toHsv(), N = C.h, M = C.s, k = C.v, V = [], Y = 1 / A; A--; )
|
|
4253
4274
|
V.push(s({
|
|
4254
4275
|
h: N,
|
|
4255
|
-
s:
|
|
4276
|
+
s: M,
|
|
4256
4277
|
v: k
|
|
4257
|
-
})), k = (k +
|
|
4278
|
+
})), k = (k + Y) % 1;
|
|
4258
4279
|
return V;
|
|
4259
4280
|
}
|
|
4260
4281
|
s.mix = function(E, A, C) {
|
|
4261
4282
|
C = C === 0 ? 0 : C || 50;
|
|
4262
|
-
var N = s(E).toRgb(),
|
|
4263
|
-
r: (
|
|
4264
|
-
g: (
|
|
4265
|
-
b: (
|
|
4266
|
-
a: (
|
|
4283
|
+
var N = s(E).toRgb(), M = s(A).toRgb(), k = C / 100, V = {
|
|
4284
|
+
r: (M.r - N.r) * k + N.r,
|
|
4285
|
+
g: (M.g - N.g) * k + N.g,
|
|
4286
|
+
b: (M.b - N.b) * k + N.b,
|
|
4287
|
+
a: (M.a - N.a) * k + N.a
|
|
4267
4288
|
};
|
|
4268
4289
|
return s(V);
|
|
4269
4290
|
}, s.readability = function(E, A) {
|
|
4270
4291
|
var C = s(E), N = s(A);
|
|
4271
4292
|
return (Math.max(C.getLuminance(), N.getLuminance()) + 0.05) / (Math.min(C.getLuminance(), N.getLuminance()) + 0.05);
|
|
4272
4293
|
}, s.isReadable = function(E, A, C) {
|
|
4273
|
-
var N = s.readability(E, A),
|
|
4274
|
-
switch (k = !1,
|
|
4294
|
+
var N = s.readability(E, A), M, k;
|
|
4295
|
+
switch (k = !1, M = Ca(C), M.level + M.size) {
|
|
4275
4296
|
case "AAsmall":
|
|
4276
4297
|
case "AAAlarge":
|
|
4277
4298
|
k = N >= 4.5;
|
|
@@ -4285,12 +4306,12 @@ function cc() {
|
|
|
4285
4306
|
}
|
|
4286
4307
|
return k;
|
|
4287
4308
|
}, s.mostReadable = function(E, A, C) {
|
|
4288
|
-
var N = null,
|
|
4289
|
-
C = C || {}, V = C.includeFallbackColors,
|
|
4290
|
-
for (var
|
|
4291
|
-
k = s.readability(E, A[
|
|
4309
|
+
var N = null, M = 0, k, V, Y, Z;
|
|
4310
|
+
C = C || {}, V = C.includeFallbackColors, Y = C.level, Z = C.size;
|
|
4311
|
+
for (var de = 0; de < A.length; de++)
|
|
4312
|
+
k = s.readability(E, A[de]), k > M && (M = k, N = s(A[de]));
|
|
4292
4313
|
return s.isReadable(E, N, {
|
|
4293
|
-
level:
|
|
4314
|
+
level: Y,
|
|
4294
4315
|
size: Z
|
|
4295
4316
|
}) || !V ? N : (C.includeFallbackColors = !1, s.mostReadable(E, ["#fff", "#000"], C));
|
|
4296
4317
|
};
|
|
@@ -4454,8 +4475,8 @@ function cc() {
|
|
|
4454
4475
|
function D(E) {
|
|
4455
4476
|
return E = parseFloat(E), (isNaN(E) || E < 0 || E > 1) && (E = 1), E;
|
|
4456
4477
|
}
|
|
4457
|
-
function
|
|
4458
|
-
|
|
4478
|
+
function R(E, A) {
|
|
4479
|
+
K(E) && (E = "100%");
|
|
4459
4480
|
var C = j(E);
|
|
4460
4481
|
return E = Math.min(A, Math.max(0, parseFloat(E))), C && (E = parseInt(E * A, 10) / 100), Math.abs(E - A) < 1e-6 ? 1 : E % A / parseFloat(A);
|
|
4461
4482
|
}
|
|
@@ -4465,7 +4486,7 @@ function cc() {
|
|
|
4465
4486
|
function T(E) {
|
|
4466
4487
|
return parseInt(E, 16);
|
|
4467
4488
|
}
|
|
4468
|
-
function
|
|
4489
|
+
function K(E) {
|
|
4469
4490
|
return typeof E == "string" && E.indexOf(".") != -1 && parseFloat(E) === 1;
|
|
4470
4491
|
}
|
|
4471
4492
|
function j(E) {
|
|
@@ -4474,7 +4495,7 @@ function cc() {
|
|
|
4474
4495
|
function U(E) {
|
|
4475
4496
|
return E.length == 1 ? "0" + E : "" + E;
|
|
4476
4497
|
}
|
|
4477
|
-
function
|
|
4498
|
+
function ie(E) {
|
|
4478
4499
|
return E <= 1 && (E = E * 100 + "%"), E;
|
|
4479
4500
|
}
|
|
4480
4501
|
function ve(E) {
|
|
@@ -4484,15 +4505,15 @@ function cc() {
|
|
|
4484
4505
|
return T(E) / 255;
|
|
4485
4506
|
}
|
|
4486
4507
|
var ce = (function() {
|
|
4487
|
-
var E = "[-\\+]?\\d+%?", A = "[-\\+]?\\d*\\.\\d+%?", C = "(?:" + A + ")|(?:" + E + ")", N = "[\\s|\\(]+(" + C + ")[,|\\s]+(" + C + ")[,|\\s]+(" + C + ")\\s*\\)?",
|
|
4508
|
+
var E = "[-\\+]?\\d+%?", A = "[-\\+]?\\d*\\.\\d+%?", C = "(?:" + A + ")|(?:" + E + ")", N = "[\\s|\\(]+(" + C + ")[,|\\s]+(" + C + ")[,|\\s]+(" + C + ")\\s*\\)?", M = "[\\s|\\(]+(" + C + ")[,|\\s]+(" + C + ")[,|\\s]+(" + C + ")[,|\\s]+(" + C + ")\\s*\\)?";
|
|
4488
4509
|
return {
|
|
4489
4510
|
CSS_UNIT: new RegExp(C),
|
|
4490
4511
|
rgb: new RegExp("rgb" + N),
|
|
4491
|
-
rgba: new RegExp("rgba" +
|
|
4512
|
+
rgba: new RegExp("rgba" + M),
|
|
4492
4513
|
hsl: new RegExp("hsl" + N),
|
|
4493
|
-
hsla: new RegExp("hsla" +
|
|
4514
|
+
hsla: new RegExp("hsla" + M),
|
|
4494
4515
|
hsv: new RegExp("hsv" + N),
|
|
4495
|
-
hsva: new RegExp("hsva" +
|
|
4516
|
+
hsva: new RegExp("hsva" + M),
|
|
4496
4517
|
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
4497
4518
|
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
|
4498
4519
|
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
@@ -4502,7 +4523,7 @@ function cc() {
|
|
|
4502
4523
|
function Se(E) {
|
|
4503
4524
|
return !!ce.CSS_UNIT.exec(E);
|
|
4504
4525
|
}
|
|
4505
|
-
function
|
|
4526
|
+
function Ea(E) {
|
|
4506
4527
|
E = E.replace(l, "").replace(p, "").toLowerCase();
|
|
4507
4528
|
var A = !1;
|
|
4508
4529
|
if (I[E])
|
|
@@ -4567,7 +4588,7 @@ function cc() {
|
|
|
4567
4588
|
format: A ? "name" : "hex"
|
|
4568
4589
|
} : !1;
|
|
4569
4590
|
}
|
|
4570
|
-
function
|
|
4591
|
+
function Ca(E) {
|
|
4571
4592
|
var A, C;
|
|
4572
4593
|
return E = E || {
|
|
4573
4594
|
level: "AA",
|
|
@@ -4582,10 +4603,10 @@ function cc() {
|
|
|
4582
4603
|
})(_t)), _t.exports;
|
|
4583
4604
|
}
|
|
4584
4605
|
var ni, Es;
|
|
4585
|
-
function
|
|
4606
|
+
function fc() {
|
|
4586
4607
|
if (Es) return ni;
|
|
4587
4608
|
Es = 1;
|
|
4588
|
-
const e =
|
|
4609
|
+
const e = uc(), t = { r: 256, g: 256, b: 256, a: 1 }, i = { h: 360, s: 1, v: 1, a: 1 };
|
|
4589
4610
|
function l(n, u, a) {
|
|
4590
4611
|
let r = {};
|
|
4591
4612
|
for (let f in n)
|
|
@@ -4814,42 +4835,42 @@ function uc() {
|
|
|
4814
4835
|
return new m(n);
|
|
4815
4836
|
}, ni;
|
|
4816
4837
|
}
|
|
4817
|
-
var
|
|
4818
|
-
const Cs = /* @__PURE__ */
|
|
4838
|
+
var hc = fc();
|
|
4839
|
+
const Cs = /* @__PURE__ */ Pn(hc), ae = (...e) => {
|
|
4819
4840
|
let t, i;
|
|
4820
4841
|
if (e.length === 0)
|
|
4821
4842
|
throw new Error("Missing gradient colors");
|
|
4822
4843
|
if (Array.isArray(e[0]))
|
|
4823
|
-
t = Cs(e[0]), i =
|
|
4844
|
+
t = Cs(e[0]), i = qn(e[1]);
|
|
4824
4845
|
else {
|
|
4825
4846
|
if (e.length === 1)
|
|
4826
4847
|
throw new Error(`Expected an array of colors, received ${JSON.stringify(e[0])}`);
|
|
4827
4848
|
t = Cs(...e);
|
|
4828
4849
|
}
|
|
4829
|
-
const l = (p, s) =>
|
|
4830
|
-
return l.multiline = (p, s) =>
|
|
4831
|
-
},
|
|
4832
|
-
function
|
|
4833
|
-
const l =
|
|
4850
|
+
const l = (p, s) => pc(p ? p.toString() : "", t, s ?? i);
|
|
4851
|
+
return l.multiline = (p, s) => dc(p ? p.toString() : "", t, s ?? i), l;
|
|
4852
|
+
}, Mo = (e, t, i) => t.interpolation?.toLowerCase() === "hsv" ? e.hsv(i, t.hsvSpin?.toLowerCase() || !1) : e.rgb(i);
|
|
4853
|
+
function pc(e, t, i) {
|
|
4854
|
+
const l = qn(i), p = Math.max(e.replace(/\s/g, "").length, t.stops.length), s = Mo(t, l, p);
|
|
4834
4855
|
let c = "";
|
|
4835
4856
|
for (const h of e)
|
|
4836
|
-
c += h.match(/\s/g) ? h :
|
|
4857
|
+
c += h.match(/\s/g) ? h : xo.hex(s.shift()?.toHex() || "#000")(h);
|
|
4837
4858
|
return c;
|
|
4838
4859
|
}
|
|
4839
|
-
function
|
|
4840
|
-
const l =
|
|
4841
|
-
`), s = Math.max(...p.map((o) => o.length), t.stops.length), c =
|
|
4860
|
+
function dc(e, t, i) {
|
|
4861
|
+
const l = qn(i), p = e.split(`
|
|
4862
|
+
`), s = Math.max(...p.map((o) => o.length), t.stops.length), c = Mo(t, l, s), h = [];
|
|
4842
4863
|
for (const o of p) {
|
|
4843
4864
|
const m = c.slice(0);
|
|
4844
4865
|
let n = "";
|
|
4845
4866
|
for (const u of o)
|
|
4846
|
-
n +=
|
|
4867
|
+
n += xo.hex(m.shift()?.toHex() || "#000")(u);
|
|
4847
4868
|
h.push(n);
|
|
4848
4869
|
}
|
|
4849
4870
|
return h.join(`
|
|
4850
4871
|
`);
|
|
4851
4872
|
}
|
|
4852
|
-
function
|
|
4873
|
+
function qn(e) {
|
|
4853
4874
|
const t = { interpolation: "rgb", hsvSpin: "short", ...e };
|
|
4854
4875
|
if (e !== void 0 && typeof e != "object")
|
|
4855
4876
|
throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof e}\``);
|
|
@@ -4859,7 +4880,7 @@ function Gn(e) {
|
|
|
4859
4880
|
throw new TypeError(`Expected \`options.hsvSpin\` to be a \`short\` or \`long\`, got \`${typeof t.hsvSpin}\``);
|
|
4860
4881
|
return t;
|
|
4861
4882
|
}
|
|
4862
|
-
const
|
|
4883
|
+
const he = {
|
|
4863
4884
|
atlas: { colors: ["#feac5e", "#c779d0", "#4bc0c8"], options: {} },
|
|
4864
4885
|
cristal: { colors: ["#bdfff3", "#4ac29a"], options: {} },
|
|
4865
4886
|
teen: { colors: ["#77a1d3", "#79cbca", "#e684ae"], options: {} },
|
|
@@ -4877,51 +4898,51 @@ const fe = {
|
|
|
4877
4898
|
rainbow: { colors: ["#ff0000", "#ff0100"], options: { interpolation: "hsv", hsvSpin: "long" } },
|
|
4878
4899
|
pastel: { colors: ["#74ebd5", "#74ecd5"], options: { interpolation: "hsv", hsvSpin: "long" } }
|
|
4879
4900
|
};
|
|
4880
|
-
function
|
|
4901
|
+
function pe(e) {
|
|
4881
4902
|
const t = (i) => ae(...e.colors)(i, e.options);
|
|
4882
4903
|
return t.multiline = (i = "") => ae(...e.colors).multiline(i, e.options), t;
|
|
4883
4904
|
}
|
|
4884
|
-
const
|
|
4885
|
-
ae.atlas =
|
|
4886
|
-
ae.cristal =
|
|
4887
|
-
ae.teen =
|
|
4888
|
-
ae.mind =
|
|
4889
|
-
ae.morning =
|
|
4905
|
+
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), Sc = pe(he.passion), wc = pe(he.fruit), Ec = pe(he.instagram), Cc = pe(he.retro), Ac = pe(he.summer), Lc = pe(he.rainbow), Oc = pe(he.pastel);
|
|
4906
|
+
ae.atlas = mc;
|
|
4907
|
+
ae.cristal = gc;
|
|
4908
|
+
ae.teen = yc;
|
|
4909
|
+
ae.mind = bc;
|
|
4910
|
+
ae.morning = vc;
|
|
4890
4911
|
ae.vice = Cn;
|
|
4891
|
-
ae.passion =
|
|
4892
|
-
ae.fruit =
|
|
4893
|
-
ae.instagram =
|
|
4894
|
-
ae.retro =
|
|
4895
|
-
ae.summer =
|
|
4896
|
-
ae.rainbow =
|
|
4897
|
-
ae.pastel =
|
|
4898
|
-
const
|
|
4912
|
+
ae.passion = Sc;
|
|
4913
|
+
ae.fruit = wc;
|
|
4914
|
+
ae.instagram = Ec;
|
|
4915
|
+
ae.retro = Cc;
|
|
4916
|
+
ae.summer = Ac;
|
|
4917
|
+
ae.rainbow = Lc;
|
|
4918
|
+
ae.pastel = Oc;
|
|
4919
|
+
const $c = "my-arcgis-app";
|
|
4899
4920
|
function Ro() {
|
|
4900
|
-
|
|
4921
|
+
Ul("initialize a new arcgis project");
|
|
4901
4922
|
}
|
|
4902
|
-
async function
|
|
4923
|
+
async function Do() {
|
|
4903
4924
|
return await Yl({
|
|
4904
4925
|
message: "What is the name of your project?",
|
|
4905
4926
|
initialValue: "",
|
|
4906
|
-
placeholder:
|
|
4927
|
+
placeholder: $c,
|
|
4907
4928
|
validate(e) {
|
|
4908
4929
|
if (!e || e.length === 0)
|
|
4909
4930
|
return "Value is required!";
|
|
4910
4931
|
}
|
|
4911
4932
|
});
|
|
4912
4933
|
}
|
|
4913
|
-
async function
|
|
4914
|
-
const e = Ce.map(([t]) => t).filter((t) => !
|
|
4915
|
-
return await
|
|
4934
|
+
async function _c() {
|
|
4935
|
+
const e = Ce.map(([t]) => t).filter((t) => !Ka[t]).map((t) => ({ value: t, label: Ya[t] }));
|
|
4936
|
+
return await Kl({
|
|
4916
4937
|
message: "Which template would you like to use?",
|
|
4917
4938
|
options: e
|
|
4918
4939
|
});
|
|
4919
4940
|
}
|
|
4920
4941
|
function An() {
|
|
4921
|
-
|
|
4942
|
+
Gn(oe("greenBright", "Your new project is ready!"));
|
|
4922
4943
|
}
|
|
4923
|
-
function
|
|
4924
|
-
|
|
4944
|
+
function Nc() {
|
|
4945
|
+
Gn(
|
|
4925
4946
|
oe(
|
|
4926
4947
|
"greenBright",
|
|
4927
4948
|
`The starter is pre-configured to use pnpm.
|
|
@@ -4932,14 +4953,14 @@ Configuration files created: .npmrc, eslint.config.js, prettier.config.js, and l
|
|
|
4932
4953
|
)
|
|
4933
4954
|
);
|
|
4934
4955
|
}
|
|
4935
|
-
async function
|
|
4956
|
+
async function Pc(e) {
|
|
4936
4957
|
return Ae.info(`
|
|
4937
4958
|
This command requires a ${e} personal access token with the 'repo' scope.
|
|
4938
4959
|
|
|
4939
4960
|
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
4961
|
|
|
4941
4962
|
for step-by-step instructions.
|
|
4942
|
-
`), await
|
|
4963
|
+
`), await Hl({
|
|
4943
4964
|
message: `Please enter your personal access token for ${e}`,
|
|
4944
4965
|
mask: "*",
|
|
4945
4966
|
validate(t) {
|
|
@@ -4949,12 +4970,12 @@ async function Nc(e) {
|
|
|
4949
4970
|
});
|
|
4950
4971
|
}
|
|
4951
4972
|
var si, As;
|
|
4952
|
-
function
|
|
4973
|
+
function Fo() {
|
|
4953
4974
|
return As || (As = 1, si = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...t) => console.error("SEMVER", ...t) : () => {
|
|
4954
4975
|
}), si;
|
|
4955
4976
|
}
|
|
4956
4977
|
var ri, Ls;
|
|
4957
|
-
function
|
|
4978
|
+
function Bo() {
|
|
4958
4979
|
if (Ls) return ri;
|
|
4959
4980
|
Ls = 1;
|
|
4960
4981
|
const e = "2.0.0", t = 256, i = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
@@ -4979,13 +5000,13 @@ function Fo() {
|
|
|
4979
5000
|
}, ri;
|
|
4980
5001
|
}
|
|
4981
5002
|
var dt = { exports: {} }, Os;
|
|
4982
|
-
function
|
|
5003
|
+
function Ic() {
|
|
4983
5004
|
return Os || (Os = 1, (function(e, t) {
|
|
4984
5005
|
const {
|
|
4985
5006
|
MAX_SAFE_COMPONENT_LENGTH: i,
|
|
4986
5007
|
MAX_SAFE_BUILD_LENGTH: l,
|
|
4987
5008
|
MAX_LENGTH: p
|
|
4988
|
-
} =
|
|
5009
|
+
} = Bo(), s = Fo();
|
|
4989
5010
|
t = e.exports = {};
|
|
4990
5011
|
const c = t.re = [], h = t.safeRe = [], o = t.src = [], m = t.safeSrc = [], n = t.t = {};
|
|
4991
5012
|
let u = 0;
|
|
@@ -5005,14 +5026,14 @@ function Pc() {
|
|
|
5005
5026
|
})(dt, dt.exports)), dt.exports;
|
|
5006
5027
|
}
|
|
5007
5028
|
var oi, $s;
|
|
5008
|
-
function
|
|
5029
|
+
function Tc() {
|
|
5009
5030
|
if ($s) return oi;
|
|
5010
5031
|
$s = 1;
|
|
5011
5032
|
const e = Object.freeze({ loose: !0 }), t = Object.freeze({});
|
|
5012
5033
|
return oi = (l) => l ? typeof l != "object" ? e : l : t, oi;
|
|
5013
5034
|
}
|
|
5014
5035
|
var ai, _s;
|
|
5015
|
-
function
|
|
5036
|
+
function kc() {
|
|
5016
5037
|
if (_s) return ai;
|
|
5017
5038
|
_s = 1;
|
|
5018
5039
|
const e = /^[0-9]+$/, t = (l, p) => {
|
|
@@ -5027,10 +5048,10 @@ function Tc() {
|
|
|
5027
5048
|
}, ai;
|
|
5028
5049
|
}
|
|
5029
5050
|
var li, Ns;
|
|
5030
|
-
function
|
|
5051
|
+
function xc() {
|
|
5031
5052
|
if (Ns) return li;
|
|
5032
5053
|
Ns = 1;
|
|
5033
|
-
const e =
|
|
5054
|
+
const e = Fo(), { MAX_LENGTH: t, MAX_SAFE_INTEGER: i } = Bo(), { safeRe: l, t: p } = Ic(), s = Tc(), { compareIdentifiers: c } = kc(), h = (m, n) => {
|
|
5034
5055
|
const u = n.split(".");
|
|
5035
5056
|
if (u.length > m.length)
|
|
5036
5057
|
return !1;
|
|
@@ -5200,10 +5221,10 @@ function kc() {
|
|
|
5200
5221
|
return li = o, li;
|
|
5201
5222
|
}
|
|
5202
5223
|
var ci, Ps;
|
|
5203
|
-
function
|
|
5224
|
+
function Go() {
|
|
5204
5225
|
if (Ps) return ci;
|
|
5205
5226
|
Ps = 1;
|
|
5206
|
-
const e =
|
|
5227
|
+
const e = xc();
|
|
5207
5228
|
return ci = (i, l, p = !1) => {
|
|
5208
5229
|
if (i instanceof e)
|
|
5209
5230
|
return i;
|
|
@@ -5217,10 +5238,10 @@ function Bo() {
|
|
|
5217
5238
|
}, ci;
|
|
5218
5239
|
}
|
|
5219
5240
|
var ui, Is;
|
|
5220
|
-
function
|
|
5241
|
+
function Mc() {
|
|
5221
5242
|
if (Is) return ui;
|
|
5222
5243
|
Is = 1;
|
|
5223
|
-
const e =
|
|
5244
|
+
const e = Go();
|
|
5224
5245
|
return ui = (i, l) => {
|
|
5225
5246
|
const p = e(i, l);
|
|
5226
5247
|
return p ? p.version : null;
|
|
@@ -5230,13 +5251,13 @@ var fi, Ts;
|
|
|
5230
5251
|
function Rc() {
|
|
5231
5252
|
if (Ts) return fi;
|
|
5232
5253
|
Ts = 1;
|
|
5233
|
-
const e =
|
|
5254
|
+
const e = Go();
|
|
5234
5255
|
return fi = (i, l) => {
|
|
5235
5256
|
const p = e(i.trim().replace(/^[=v]+/, ""), l);
|
|
5236
5257
|
return p ? p.version : null;
|
|
5237
5258
|
}, fi;
|
|
5238
5259
|
}
|
|
5239
|
-
const
|
|
5260
|
+
const qo = /* @__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
5261
|
"AGPL-1.0",
|
|
5241
5262
|
"AGPL-3.0",
|
|
5242
5263
|
"BSD-2-Clause-FreeBSD",
|
|
@@ -5263,7 +5284,7 @@ const Go = /* @__PURE__ */ JSON.parse('["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL
|
|
|
5263
5284
|
"bzip2-1.0.5",
|
|
5264
5285
|
"eCos-2.0",
|
|
5265
5286
|
"wxWindows"
|
|
5266
|
-
],
|
|
5287
|
+
], Fc = [
|
|
5267
5288
|
"389-exception",
|
|
5268
5289
|
"Asterisk-exception",
|
|
5269
5290
|
"Autoconf-exception-2.0",
|
|
@@ -5332,10 +5353,10 @@ const Go = /* @__PURE__ */ JSON.parse('["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL
|
|
|
5332
5353
|
"x11vnc-openssl-exception"
|
|
5333
5354
|
];
|
|
5334
5355
|
var hi, ks;
|
|
5335
|
-
function
|
|
5356
|
+
function Bc() {
|
|
5336
5357
|
if (ks) return hi;
|
|
5337
5358
|
ks = 1;
|
|
5338
|
-
var e = [].concat(
|
|
5359
|
+
var e = [].concat(qo).concat(Dc), t = Fc;
|
|
5339
5360
|
return hi = function(i) {
|
|
5340
5361
|
var l = 0;
|
|
5341
5362
|
function p() {
|
|
@@ -5410,7 +5431,7 @@ function Fc() {
|
|
|
5410
5431
|
}, hi;
|
|
5411
5432
|
}
|
|
5412
5433
|
var pi, xs;
|
|
5413
|
-
function
|
|
5434
|
+
function Gc() {
|
|
5414
5435
|
return xs || (xs = 1, pi = function(e) {
|
|
5415
5436
|
var t = 0;
|
|
5416
5437
|
function i() {
|
|
@@ -5490,20 +5511,20 @@ function Bc() {
|
|
|
5490
5511
|
return f;
|
|
5491
5512
|
}), pi;
|
|
5492
5513
|
}
|
|
5493
|
-
var di,
|
|
5494
|
-
function
|
|
5495
|
-
if (
|
|
5496
|
-
|
|
5497
|
-
var e =
|
|
5514
|
+
var di, Ms;
|
|
5515
|
+
function jo() {
|
|
5516
|
+
if (Ms) return di;
|
|
5517
|
+
Ms = 1;
|
|
5518
|
+
var e = Bc(), t = Gc();
|
|
5498
5519
|
return di = function(i) {
|
|
5499
5520
|
return t(e(i));
|
|
5500
5521
|
}, di;
|
|
5501
5522
|
}
|
|
5502
|
-
var mi,
|
|
5503
|
-
function
|
|
5504
|
-
if (
|
|
5505
|
-
|
|
5506
|
-
var e =
|
|
5523
|
+
var mi, Rs;
|
|
5524
|
+
function qc() {
|
|
5525
|
+
if (Rs) return mi;
|
|
5526
|
+
Rs = 1;
|
|
5527
|
+
var e = jo(), t = qo;
|
|
5507
5528
|
function i(y) {
|
|
5508
5529
|
try {
|
|
5509
5530
|
return e(y), !0;
|
|
@@ -5778,10 +5799,10 @@ function Gc() {
|
|
|
5778
5799
|
return mi;
|
|
5779
5800
|
}
|
|
5780
5801
|
var gi, Ds;
|
|
5781
|
-
function
|
|
5802
|
+
function jc() {
|
|
5782
5803
|
if (Ds) return gi;
|
|
5783
5804
|
Ds = 1;
|
|
5784
|
-
var e =
|
|
5805
|
+
var e = jo(), 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
5806
|
function p(c, h) {
|
|
5786
5807
|
return h.slice(0, c.length) === c;
|
|
5787
5808
|
}
|
|
@@ -5835,10 +5856,10 @@ function qc() {
|
|
|
5835
5856
|
};
|
|
5836
5857
|
}, gi;
|
|
5837
5858
|
}
|
|
5838
|
-
var
|
|
5839
|
-
function
|
|
5840
|
-
if (Fs) return
|
|
5841
|
-
Fs = 1, Object.defineProperty(
|
|
5859
|
+
var Be = {}, Fs;
|
|
5860
|
+
function Uc() {
|
|
5861
|
+
if (Fs) return Be;
|
|
5862
|
+
Fs = 1, Object.defineProperty(Be, "__esModule", { value: !0 }), Be.LRUCache = void 0;
|
|
5842
5863
|
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
5864
|
typeof i.emitWarning == "function" ? i.emitWarning(a, r, f, d) : console.error(`[${f}] ${r}: ${a}`);
|
|
5844
5865
|
};
|
|
@@ -6071,7 +6092,7 @@ function jc() {
|
|
|
6071
6092
|
return this.#g;
|
|
6072
6093
|
}
|
|
6073
6094
|
constructor(r) {
|
|
6074
|
-
const { max: f = 0, ttl: d, ttlResolution: g = 1, ttlAutopurge: y, updateAgeOnGet: v, updateAgeOnHas: w, allowStale: b, dispose: S, disposeAfter: L, noDisposeOnSet: O, noUpdateTTL: $, maxSize: _ = 0, maxEntrySize: P = 0, sizeCalculation: I, fetchMethod: B, memoMethod: F, noDeleteOnFetchRejection: D, noDeleteOnStaleGet:
|
|
6095
|
+
const { max: f = 0, ttl: d, ttlResolution: g = 1, ttlAutopurge: y, updateAgeOnGet: v, updateAgeOnHas: w, allowStale: b, dispose: S, disposeAfter: L, noDisposeOnSet: O, noUpdateTTL: $, maxSize: _ = 0, maxEntrySize: P = 0, sizeCalculation: I, fetchMethod: B, memoMethod: F, noDeleteOnFetchRejection: D, noDeleteOnStaleGet: R, allowStaleOnFetchRejection: G, allowStaleOnFetchAbort: T, ignoreFetchAbort: K } = r;
|
|
6075
6096
|
if (f !== 0 && !h(f))
|
|
6076
6097
|
throw new TypeError("max option must be a nonnegative integer");
|
|
6077
6098
|
const j = f ? o(f) : Array;
|
|
@@ -6087,17 +6108,17 @@ function jc() {
|
|
|
6087
6108
|
throw new TypeError("memoMethod must be a function if defined");
|
|
6088
6109
|
if (this.#I = F, B !== void 0 && typeof B != "function")
|
|
6089
6110
|
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 S == "function" && (this.#t = S), typeof L == "function" ? (this.#g = L, this.#l = []) : (this.#g = void 0, this.#l = void 0), this.#w = !!this.#t, this.#h = !!this.#g, this.noDisposeOnSet = !!O, this.noUpdateTTL = !!$, this.noDeleteOnFetchRejection = !!D, this.allowStaleOnFetchRejection = !!G, this.allowStaleOnFetchAbort = !!T, this.ignoreFetchAbort = !!
|
|
6111
|
+
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 S == "function" && (this.#t = S), typeof L == "function" ? (this.#g = L, this.#l = []) : (this.#g = void 0, this.#l = void 0), this.#w = !!this.#t, this.#h = !!this.#g, this.noDisposeOnSet = !!O, this.noUpdateTTL = !!$, this.noDeleteOnFetchRejection = !!D, this.allowStaleOnFetchRejection = !!G, this.allowStaleOnFetchAbort = !!T, this.ignoreFetchAbort = !!K, this.maxEntrySize !== 0) {
|
|
6091
6112
|
if (this.#c !== 0 && !h(this.#c))
|
|
6092
6113
|
throw new TypeError("maxSize must be a positive integer if specified");
|
|
6093
6114
|
if (!h(this.maxEntrySize))
|
|
6094
6115
|
throw new TypeError("maxEntrySize must be a positive integer if specified");
|
|
6095
6116
|
this.#q();
|
|
6096
6117
|
}
|
|
6097
|
-
if (this.allowStale = !!b, this.noDeleteOnStaleGet = !!
|
|
6118
|
+
if (this.allowStale = !!b, this.noDeleteOnStaleGet = !!R, this.updateAgeOnGet = !!v, this.updateAgeOnHas = !!w, this.ttlResolution = h(g) || g === 0 ? g : 1, this.ttlAutopurge = !!y, this.ttl = d || 0, this.ttl) {
|
|
6098
6119
|
if (!h(this.ttl))
|
|
6099
6120
|
throw new TypeError("ttl must be a positive integer if specified");
|
|
6100
|
-
this.#
|
|
6121
|
+
this.#M();
|
|
6101
6122
|
}
|
|
6102
6123
|
if (this.#s === 0 && this.ttl === 0 && this.#c === 0)
|
|
6103
6124
|
throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
@@ -6113,9 +6134,9 @@ function jc() {
|
|
|
6113
6134
|
getRemainingTTL(r) {
|
|
6114
6135
|
return this.#r.has(r) ? 1 / 0 : 0;
|
|
6115
6136
|
}
|
|
6116
|
-
#
|
|
6137
|
+
#M() {
|
|
6117
6138
|
const r = new m(this.#s), f = new m(this.#s);
|
|
6118
|
-
this.#d = r, this.#S = f, this.#
|
|
6139
|
+
this.#d = r, this.#S = f, this.#R = (y, v, w = e.now()) => {
|
|
6119
6140
|
if (f[y] = v !== 0 ? w : 0, r[y] = v, v !== 0 && this.ttlAutopurge) {
|
|
6120
6141
|
const b = setTimeout(() => {
|
|
6121
6142
|
this.#m(y) && this.#A(this.#n[y], "expire");
|
|
@@ -6163,7 +6184,7 @@ function jc() {
|
|
|
6163
6184
|
};
|
|
6164
6185
|
#L = () => {
|
|
6165
6186
|
};
|
|
6166
|
-
#
|
|
6187
|
+
#R = () => {
|
|
6167
6188
|
};
|
|
6168
6189
|
/* c8 ignore stop */
|
|
6169
6190
|
#m = () => !1;
|
|
@@ -6467,7 +6488,7 @@ function jc() {
|
|
|
6467
6488
|
}
|
|
6468
6489
|
} else b && (b.set = "update");
|
|
6469
6490
|
}
|
|
6470
|
-
if (g !== 0 && !this.#d && this.#
|
|
6491
|
+
if (g !== 0 && !this.#d && this.#M(), this.#d && (S || this.#R(O, g, y), b && this.#L(b, O)), !v && this.#h && this.#l) {
|
|
6471
6492
|
const $ = this.#l;
|
|
6472
6493
|
let _;
|
|
6473
6494
|
for (; _ = $?.shift(); )
|
|
@@ -6560,11 +6581,11 @@ function jc() {
|
|
|
6560
6581
|
const { aborted: F } = v.signal, D = d.ignoreFetchAbort && I !== void 0;
|
|
6561
6582
|
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
6583
|
return O(v.signal.reason);
|
|
6563
|
-
const
|
|
6564
|
-
return this.#e[f] === _ && (I === void 0 ?
|
|
6584
|
+
const R = _;
|
|
6585
|
+
return this.#e[f] === _ && (I === void 0 ? R.__staleWhileFetching ? this.#e[f] = R.__staleWhileFetching : this.#A(r, "fetch") : (d.status && (d.status.fetchUpdated = !0), this.set(r, I, b.options))), I;
|
|
6565
6586
|
}, L = (I) => (d.status && (d.status.fetchRejected = !0, d.status.fetchError = I), O(I)), O = (I) => {
|
|
6566
|
-
const { aborted: B } = v.signal, F = B && d.allowStaleOnFetchAbort, D = F || d.allowStaleOnFetchRejection,
|
|
6567
|
-
if (this.#e[f] === _ && (!
|
|
6587
|
+
const { aborted: B } = v.signal, F = B && d.allowStaleOnFetchAbort, D = F || d.allowStaleOnFetchRejection, R = D || d.noDeleteOnFetchRejection, G = _;
|
|
6588
|
+
if (this.#e[f] === _ && (!R || G.__staleWhileFetching === void 0 ? this.#A(r, "fetch") : F || (this.#e[f] = G.__staleWhileFetching)), D)
|
|
6568
6589
|
return d.status && G.__staleWhileFetching !== void 0 && (d.status.returnedStale = !0), G.__staleWhileFetching;
|
|
6569
6590
|
if (G.__returned === G)
|
|
6570
6591
|
throw I;
|
|
@@ -6617,7 +6638,7 @@ function jc() {
|
|
|
6617
6638
|
noDeleteOnStaleGet: y,
|
|
6618
6639
|
status: F
|
|
6619
6640
|
});
|
|
6620
|
-
const
|
|
6641
|
+
const R = {
|
|
6621
6642
|
allowStale: d,
|
|
6622
6643
|
updateAgeOnGet: g,
|
|
6623
6644
|
noDeleteOnStaleGet: y,
|
|
@@ -6636,7 +6657,7 @@ function jc() {
|
|
|
6636
6657
|
let G = this.#r.get(r);
|
|
6637
6658
|
if (G === void 0) {
|
|
6638
6659
|
F && (F.fetch = "miss");
|
|
6639
|
-
const T = this.#x(r, G,
|
|
6660
|
+
const T = this.#x(r, G, R, I);
|
|
6640
6661
|
return T.__returned = T;
|
|
6641
6662
|
} else {
|
|
6642
6663
|
const T = this.#e[G];
|
|
@@ -6644,11 +6665,11 @@ function jc() {
|
|
|
6644
6665
|
const ve = d && T.__staleWhileFetching !== void 0;
|
|
6645
6666
|
return F && (F.fetch = "inflight", ve && (F.returnedStale = !0)), ve ? T.__staleWhileFetching : T.__returned = T;
|
|
6646
6667
|
}
|
|
6647
|
-
const
|
|
6648
|
-
if (!B && !
|
|
6668
|
+
const K = this.#m(G);
|
|
6669
|
+
if (!B && !K)
|
|
6649
6670
|
return F && (F.fetch = "hit"), this.#N(G), g && this.#$(G), F && this.#L(F, G), T;
|
|
6650
|
-
const j = this.#x(r, G,
|
|
6651
|
-
return F && (F.fetch =
|
|
6671
|
+
const j = this.#x(r, G, R, I), ie = j.__staleWhileFetching !== void 0 && d;
|
|
6672
|
+
return F && (F.fetch = K ? "stale" : "refresh", ie && K && (F.returnedStale = !0)), ie ? j.__staleWhileFetching : j.__returned = j;
|
|
6652
6673
|
}
|
|
6653
6674
|
}
|
|
6654
6675
|
async forceFetch(r, f = {}) {
|
|
@@ -6752,10 +6773,10 @@ function jc() {
|
|
|
6752
6773
|
}
|
|
6753
6774
|
}
|
|
6754
6775
|
}
|
|
6755
|
-
return
|
|
6776
|
+
return Be.LRUCache = u, Be;
|
|
6756
6777
|
}
|
|
6757
6778
|
var yi, Bs;
|
|
6758
|
-
function
|
|
6779
|
+
function Hc() {
|
|
6759
6780
|
if (Bs) return yi;
|
|
6760
6781
|
Bs = 1;
|
|
6761
6782
|
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 = {
|
|
@@ -6873,10 +6894,10 @@ function Uc() {
|
|
|
6873
6894
|
return yi = p, yi;
|
|
6874
6895
|
}
|
|
6875
6896
|
var bi, Gs;
|
|
6876
|
-
function
|
|
6897
|
+
function Uo() {
|
|
6877
6898
|
if (Gs) return bi;
|
|
6878
6899
|
Gs = 1;
|
|
6879
|
-
const e =
|
|
6900
|
+
const e = Ia, t = (s, c, h) => {
|
|
6880
6901
|
const o = s.indexOf(h);
|
|
6881
6902
|
return s.lastIndexOf(c, o > -1 ? o : 1 / 0);
|
|
6882
6903
|
}, i = (s) => {
|
|
@@ -6900,10 +6921,10 @@ function jo() {
|
|
|
6900
6921
|
}, bi;
|
|
6901
6922
|
}
|
|
6902
6923
|
var vi, qs;
|
|
6903
|
-
function
|
|
6924
|
+
function Vc() {
|
|
6904
6925
|
if (qs) return vi;
|
|
6905
6926
|
qs = 1;
|
|
6906
|
-
const e =
|
|
6927
|
+
const e = Uo(), t = (i) => {
|
|
6907
6928
|
const l = i.indexOf("#"), p = i.indexOf("/"), s = i.indexOf("/", p + 1), c = i.indexOf(":"), h = /\s/.exec(i), o = i.indexOf("@"), m = !h || l > -1 && h.index > l, n = o === -1 || l > -1 && o > l, u = c === -1 || l > -1 && c > l, a = s === -1 || l > -1 && s > l, r = p > 0, f = l > -1 ? i[l - 1] !== "/" : !i.endsWith("/"), d = !i.startsWith(".");
|
|
6908
6929
|
return m && r && f && d && n && u && a;
|
|
6909
6930
|
};
|
|
@@ -6944,10 +6965,10 @@ function Hc() {
|
|
|
6944
6965
|
}, vi;
|
|
6945
6966
|
}
|
|
6946
6967
|
var Si, js;
|
|
6947
|
-
function
|
|
6968
|
+
function Wc() {
|
|
6948
6969
|
if (js) return Si;
|
|
6949
6970
|
js = 1;
|
|
6950
|
-
const { LRUCache: e } = /* @__PURE__ */
|
|
6971
|
+
const { LRUCache: e } = /* @__PURE__ */ Uc(), t = Hc(), i = Vc(), l = Uo(), p = new e({ max: 1e3 });
|
|
6951
6972
|
function s(h) {
|
|
6952
6973
|
try {
|
|
6953
6974
|
const {
|
|
@@ -7083,7 +7104,7 @@ function Vc() {
|
|
|
7083
7104
|
return Si = c, Si;
|
|
7084
7105
|
}
|
|
7085
7106
|
var wi, Us;
|
|
7086
|
-
function
|
|
7107
|
+
function Kc() {
|
|
7087
7108
|
if (Us) return wi;
|
|
7088
7109
|
Us = 1, wi = e;
|
|
7089
7110
|
function e(t) {
|
|
@@ -7102,16 +7123,16 @@ function Wc() {
|
|
|
7102
7123
|
}
|
|
7103
7124
|
return wi;
|
|
7104
7125
|
}
|
|
7105
|
-
const Yc = { 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" },
|
|
7126
|
+
const Yc = { 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
7127
|
topLevel: Yc,
|
|
7107
|
-
bugs:
|
|
7108
|
-
script:
|
|
7128
|
+
bugs: Jc,
|
|
7129
|
+
script: zc
|
|
7109
7130
|
};
|
|
7110
7131
|
var Ei, Hs;
|
|
7111
|
-
function
|
|
7132
|
+
function Qc() {
|
|
7112
7133
|
if (Hs) return Ei;
|
|
7113
7134
|
Hs = 1;
|
|
7114
|
-
var { URL: e } =
|
|
7135
|
+
var { URL: e } = Pa, t = Mc(), i = Rc(), l = jc(), p = Wc(), { isBuiltin: s } = Ta, c = ["dependencies", "devDependencies", "optionalDependencies"], h = Kc(), o = Xc, m = (b) => b.includes("@") && b.indexOf("@") < b.lastIndexOf(".");
|
|
7115
7136
|
Ei = {
|
|
7116
7137
|
// default warning function
|
|
7117
7138
|
warn: function() {
|
|
@@ -7321,41 +7342,41 @@ function Xc() {
|
|
|
7321
7342
|
}
|
|
7322
7343
|
return Ei;
|
|
7323
7344
|
}
|
|
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:
|
|
7347
|
-
nonUrlBugsUrlField:
|
|
7348
|
-
nonEmailBugsEmailField:
|
|
7349
|
-
emptyNormalizedBugs:
|
|
7350
|
-
nonUrlHomepage:
|
|
7351
|
-
invalidLicense:
|
|
7352
|
-
typo:
|
|
7345
|
+
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.", Su = "Bug string field must be url, email, or {email,url}", wu = "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 = {
|
|
7346
|
+
repositories: Zc,
|
|
7347
|
+
missingRepository: eu,
|
|
7348
|
+
brokenGitUrl: tu,
|
|
7349
|
+
nonObjectScripts: iu,
|
|
7350
|
+
nonStringScript: nu,
|
|
7351
|
+
nonArrayFiles: su,
|
|
7352
|
+
invalidFilename: ru,
|
|
7353
|
+
nonArrayBundleDependencies: ou,
|
|
7354
|
+
nonStringBundleDependency: au,
|
|
7355
|
+
nonDependencyBundleDependency: lu,
|
|
7356
|
+
nonObjectDependencies: cu,
|
|
7357
|
+
nonStringDependency: uu,
|
|
7358
|
+
deprecatedArrayDependencies: fu,
|
|
7359
|
+
deprecatedModules: hu,
|
|
7360
|
+
nonArrayKeywords: pu,
|
|
7361
|
+
nonStringKeyword: du,
|
|
7362
|
+
conflictingName: mu,
|
|
7363
|
+
nonStringDescription: gu,
|
|
7364
|
+
missingDescription: yu,
|
|
7365
|
+
missingReadme: bu,
|
|
7366
|
+
missingLicense: vu,
|
|
7367
|
+
nonEmailUrlBugsString: Su,
|
|
7368
|
+
nonUrlBugsUrlField: wu,
|
|
7369
|
+
nonEmailBugsEmailField: Eu,
|
|
7370
|
+
emptyNormalizedBugs: Cu,
|
|
7371
|
+
nonUrlHomepage: Au,
|
|
7372
|
+
invalidLicense: Lu,
|
|
7373
|
+
typo: Ou
|
|
7353
7374
|
};
|
|
7354
7375
|
var Ci, Vs;
|
|
7355
|
-
function
|
|
7376
|
+
function _u() {
|
|
7356
7377
|
if (Vs) return Ci;
|
|
7357
7378
|
Vs = 1;
|
|
7358
|
-
var e =
|
|
7379
|
+
var e = _a, t = $u;
|
|
7359
7380
|
Ci = function() {
|
|
7360
7381
|
var l = Array.prototype.slice.call(arguments, 0), p = l.shift();
|
|
7361
7382
|
if (p === "typo")
|
|
@@ -7369,12 +7390,12 @@ function $u() {
|
|
|
7369
7390
|
return Ci;
|
|
7370
7391
|
}
|
|
7371
7392
|
var Ai, Ws;
|
|
7372
|
-
function
|
|
7393
|
+
function Nu() {
|
|
7373
7394
|
if (Ws) return Ai;
|
|
7374
7395
|
Ws = 1, Ai = s;
|
|
7375
|
-
var e =
|
|
7396
|
+
var e = Qc();
|
|
7376
7397
|
s.fixer = e;
|
|
7377
|
-
var t =
|
|
7398
|
+
var t = _u(), i = [
|
|
7378
7399
|
"name",
|
|
7379
7400
|
"version",
|
|
7380
7401
|
"description",
|
|
@@ -7406,12 +7427,12 @@ function _u() {
|
|
|
7406
7427
|
}
|
|
7407
7428
|
return Ai;
|
|
7408
7429
|
}
|
|
7409
|
-
var
|
|
7410
|
-
const
|
|
7411
|
-
var W = {}, Li = {}, Oi = {}, te = {},
|
|
7430
|
+
var Pu = Nu();
|
|
7431
|
+
const Iu = /* @__PURE__ */ Pn(Pu);
|
|
7432
|
+
var W = {}, Li = {}, Oi = {}, te = {}, Ks;
|
|
7412
7433
|
function H() {
|
|
7413
|
-
if (
|
|
7414
|
-
|
|
7434
|
+
if (Ks) return te;
|
|
7435
|
+
Ks = 1;
|
|
7415
7436
|
const e = /* @__PURE__ */ Symbol.for("yaml.alias"), t = /* @__PURE__ */ Symbol.for("yaml.document"), i = /* @__PURE__ */ Symbol.for("yaml.map"), l = /* @__PURE__ */ Symbol.for("yaml.pair"), p = /* @__PURE__ */ Symbol.for("yaml.scalar"), s = /* @__PURE__ */ Symbol.for("yaml.seq"), c = /* @__PURE__ */ Symbol.for("yaml.node.type"), h = (g) => !!g && typeof g == "object" && g[c] === e, o = (g) => !!g && typeof g == "object" && g[c] === t, m = (g) => !!g && typeof g == "object" && g[c] === i, n = (g) => !!g && typeof g == "object" && g[c] === l, u = (g) => !!g && typeof g == "object" && g[c] === p, a = (g) => !!g && typeof g == "object" && g[c] === s;
|
|
7416
7437
|
function r(g) {
|
|
7417
7438
|
if (g && typeof g == "object")
|
|
@@ -7436,10 +7457,10 @@ function H() {
|
|
|
7436
7457
|
const d = (g) => (u(g) || r(g)) && !!g.anchor;
|
|
7437
7458
|
return te.ALIAS = e, te.DOC = t, te.MAP = i, te.NODE_TYPE = c, te.PAIR = l, te.SCALAR = p, te.SEQ = s, te.hasAnchor = d, te.isAlias = h, te.isCollection = r, te.isDocument = o, te.isMap = m, te.isNode = f, te.isPair = n, te.isScalar = u, te.isSeq = a, te;
|
|
7438
7459
|
}
|
|
7439
|
-
var mt = {},
|
|
7440
|
-
function
|
|
7441
|
-
if (
|
|
7442
|
-
|
|
7460
|
+
var mt = {}, Ys;
|
|
7461
|
+
function Rt() {
|
|
7462
|
+
if (Ys) return mt;
|
|
7463
|
+
Ys = 1;
|
|
7443
7464
|
var e = H();
|
|
7444
7465
|
const t = /* @__PURE__ */ Symbol("break visit"), i = /* @__PURE__ */ Symbol("skip children"), l = /* @__PURE__ */ Symbol("remove node");
|
|
7445
7466
|
function p(u, a) {
|
|
@@ -7559,10 +7580,10 @@ function Mt() {
|
|
|
7559
7580
|
return mt.visit = p, mt.visitAsync = c, mt;
|
|
7560
7581
|
}
|
|
7561
7582
|
var Js;
|
|
7562
|
-
function
|
|
7583
|
+
function Ho() {
|
|
7563
7584
|
if (Js) return Oi;
|
|
7564
7585
|
Js = 1;
|
|
7565
|
-
var e = H(), t =
|
|
7586
|
+
var e = H(), t = Rt();
|
|
7566
7587
|
const i = {
|
|
7567
7588
|
"!": "%21",
|
|
7568
7589
|
",": "%2C",
|
|
@@ -7682,10 +7703,10 @@ function Uo() {
|
|
|
7682
7703
|
return p.defaultYaml = { explicit: !1, version: "1.2" }, p.defaultTags = { "!!": "tag:yaml.org,2002:" }, Oi.Directives = p, Oi;
|
|
7683
7704
|
}
|
|
7684
7705
|
var $i = {}, _i = {}, Pe = {}, zs;
|
|
7685
|
-
function
|
|
7706
|
+
function jn() {
|
|
7686
7707
|
if (zs) return Pe;
|
|
7687
7708
|
zs = 1;
|
|
7688
|
-
var e = H(), t =
|
|
7709
|
+
var e = H(), t = Rt();
|
|
7689
7710
|
function i(c) {
|
|
7690
7711
|
if (/[\x00-\x19\s,[\]{}]/.test(c)) {
|
|
7691
7712
|
const o = `Anchor must not contain whitespace or control characters: ${JSON.stringify(c)}`;
|
|
@@ -7739,7 +7760,7 @@ function qn() {
|
|
|
7739
7760
|
return Pe.anchorIsValid = i, Pe.anchorNames = l, Pe.createNodeAnchors = s, Pe.findNewAnchor = p, Pe;
|
|
7740
7761
|
}
|
|
7741
7762
|
var Ni = {}, Pi = {}, Xs;
|
|
7742
|
-
function
|
|
7763
|
+
function Vo() {
|
|
7743
7764
|
if (Xs) return Pi;
|
|
7744
7765
|
Xs = 1;
|
|
7745
7766
|
function e(t, i, l, p) {
|
|
@@ -7791,10 +7812,10 @@ function Oe() {
|
|
|
7791
7812
|
return Ii.toJS = t, Ii;
|
|
7792
7813
|
}
|
|
7793
7814
|
var Zs;
|
|
7794
|
-
function
|
|
7815
|
+
function Un() {
|
|
7795
7816
|
if (Zs) return Ni;
|
|
7796
7817
|
Zs = 1;
|
|
7797
|
-
var e =
|
|
7818
|
+
var e = Vo(), t = H(), i = Oe();
|
|
7798
7819
|
class l {
|
|
7799
7820
|
constructor(s) {
|
|
7800
7821
|
Object.defineProperty(this, t.NODE_TYPE, { value: s });
|
|
@@ -7828,7 +7849,7 @@ var er;
|
|
|
7828
7849
|
function Dt() {
|
|
7829
7850
|
if (er) return _i;
|
|
7830
7851
|
er = 1;
|
|
7831
|
-
var e =
|
|
7852
|
+
var e = jn(), t = Rt(), i = H(), l = Un(), p = Oe();
|
|
7832
7853
|
let s = class extends l.NodeBase {
|
|
7833
7854
|
constructor(o) {
|
|
7834
7855
|
super(i.ALIAS), this.source = o, Object.defineProperty(this, "tag", {
|
|
@@ -7909,11 +7930,11 @@ function Dt() {
|
|
|
7909
7930
|
}
|
|
7910
7931
|
return _i.Alias = s, _i;
|
|
7911
7932
|
}
|
|
7912
|
-
var
|
|
7933
|
+
var Ge = {}, Ti = {}, gt = {}, tr;
|
|
7913
7934
|
function ee() {
|
|
7914
7935
|
if (tr) return gt;
|
|
7915
7936
|
tr = 1;
|
|
7916
|
-
var e = H(), t =
|
|
7937
|
+
var e = H(), t = Un(), i = Oe();
|
|
7917
7938
|
const l = (s) => !s || typeof s != "function" && typeof s != "object";
|
|
7918
7939
|
let p = class extends t.NodeBase {
|
|
7919
7940
|
constructor(c) {
|
|
@@ -7974,10 +7995,10 @@ function Ft() {
|
|
|
7974
7995
|
return Ti.createNode = s, Ti;
|
|
7975
7996
|
}
|
|
7976
7997
|
var nr;
|
|
7977
|
-
function
|
|
7978
|
-
if (nr) return
|
|
7998
|
+
function Hn() {
|
|
7999
|
+
if (nr) return Ge;
|
|
7979
8000
|
nr = 1;
|
|
7980
|
-
var e = Ft(), t = H(), i =
|
|
8001
|
+
var e = Ft(), t = H(), i = Un();
|
|
7981
8002
|
function l(c, h, o) {
|
|
7982
8003
|
let m = o;
|
|
7983
8004
|
for (let n = h.length - 1; n >= 0; --n) {
|
|
@@ -8094,11 +8115,11 @@ function Un() {
|
|
|
8094
8115
|
}
|
|
8095
8116
|
}
|
|
8096
8117
|
};
|
|
8097
|
-
return
|
|
8118
|
+
return Ge.Collection = s, Ge.collectionFromPath = l, Ge.isEmptyPath = p, Ge;
|
|
8098
8119
|
}
|
|
8099
|
-
var yt = {}, ki = {}, bt = {},
|
|
8120
|
+
var yt = {}, ki = {}, bt = {}, qe = {}, sr;
|
|
8100
8121
|
function Bt() {
|
|
8101
|
-
if (sr) return
|
|
8122
|
+
if (sr) return qe;
|
|
8102
8123
|
sr = 1;
|
|
8103
8124
|
const e = (l) => l.replace(/^(?!$)(?: $)?/gm, "#");
|
|
8104
8125
|
function t(l, p) {
|
|
@@ -8108,10 +8129,10 @@ function Bt() {
|
|
|
8108
8129
|
`) ? t(s, p) : s.includes(`
|
|
8109
8130
|
`) ? `
|
|
8110
8131
|
` + t(s, p) : (l.endsWith(" ") ? "" : " ") + s;
|
|
8111
|
-
return
|
|
8132
|
+
return qe.indentComment = t, qe.lineComment = i, qe.stringifyComment = e, qe;
|
|
8112
8133
|
}
|
|
8113
8134
|
var xi = {}, Ie = {}, rr;
|
|
8114
|
-
function
|
|
8135
|
+
function Tu() {
|
|
8115
8136
|
if (rr) return Ie;
|
|
8116
8137
|
rr = 1;
|
|
8117
8138
|
const e = "flow", t = "block", i = "quoted";
|
|
@@ -8201,7 +8222,7 @@ var or;
|
|
|
8201
8222
|
function Gt() {
|
|
8202
8223
|
if (or) return xi;
|
|
8203
8224
|
or = 1;
|
|
8204
|
-
var e = ee(), t =
|
|
8225
|
+
var e = ee(), t = Tu();
|
|
8205
8226
|
const i = (a, r) => ({
|
|
8206
8227
|
indentAtStart: r ? a.indent.length : a.indentAtStart,
|
|
8207
8228
|
lineWidth: a.options.lineWidth,
|
|
@@ -8350,13 +8371,13 @@ ${f}`) + "'";
|
|
|
8350
8371
|
if (a && (G += " " + w(a.replace(/ ?[\r\n]+/g, " ")), g && g()), !L) {
|
|
8351
8372
|
const T = f.replace(/\n+/g, `
|
|
8352
8373
|
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${S}`);
|
|
8353
|
-
let
|
|
8374
|
+
let K = !1;
|
|
8354
8375
|
const j = i(d, !0);
|
|
8355
8376
|
v !== "folded" && r !== e.Scalar.BLOCK_FOLDED && (j.onOverflow = () => {
|
|
8356
|
-
|
|
8377
|
+
K = !0;
|
|
8357
8378
|
});
|
|
8358
8379
|
const U = t.foldFlowLines(`${D}${T}${_}`, S, t.FOLD_BLOCK, j);
|
|
8359
|
-
if (!
|
|
8380
|
+
if (!K)
|
|
8360
8381
|
return `>${G}
|
|
8361
8382
|
${S}${U}`;
|
|
8362
8383
|
}
|
|
@@ -8422,7 +8443,7 @@ var ar;
|
|
|
8422
8443
|
function qt() {
|
|
8423
8444
|
if (ar) return bt;
|
|
8424
8445
|
ar = 1;
|
|
8425
|
-
var e =
|
|
8446
|
+
var e = jn(), t = H(), i = Bt(), l = Gt();
|
|
8426
8447
|
function p(o, m) {
|
|
8427
8448
|
const n = Object.assign({
|
|
8428
8449
|
blockQuote: !0,
|
|
@@ -8518,7 +8539,7 @@ ${m.indent}${d}` : d;
|
|
|
8518
8539
|
return bt.createStringifyContext = p, bt.stringify = h, bt;
|
|
8519
8540
|
}
|
|
8520
8541
|
var lr;
|
|
8521
|
-
function
|
|
8542
|
+
function ku() {
|
|
8522
8543
|
if (lr) return ki;
|
|
8523
8544
|
lr = 1;
|
|
8524
8545
|
var e = H(), t = ee(), i = qt(), l = Bt();
|
|
@@ -8571,8 +8592,8 @@ ${l.indentComment(B, h.indent)}`;
|
|
|
8571
8592
|
${h.indent}`;
|
|
8572
8593
|
} else if (!v && e.isCollection(c)) {
|
|
8573
8594
|
const B = P[0], F = P.indexOf(`
|
|
8574
|
-
`), D = F !== -1,
|
|
8575
|
-
if (D || !
|
|
8595
|
+
`), D = F !== -1, R = h.inFlow ?? c.flow ?? c.items.length === 0;
|
|
8596
|
+
if (D || !R) {
|
|
8576
8597
|
let G = !1;
|
|
8577
8598
|
if (D && (B === "&" || B === "!")) {
|
|
8578
8599
|
let T = P.indexOf(" ");
|
|
@@ -8587,8 +8608,8 @@ ${h.indent}`);
|
|
|
8587
8608
|
}
|
|
8588
8609
|
return ki.stringifyPair = p, ki;
|
|
8589
8610
|
}
|
|
8590
|
-
var
|
|
8591
|
-
function
|
|
8611
|
+
var Mi = {}, vt = {}, cr;
|
|
8612
|
+
function Wo() {
|
|
8592
8613
|
if (cr) return vt;
|
|
8593
8614
|
cr = 1;
|
|
8594
8615
|
var e = Ee;
|
|
@@ -8600,9 +8621,9 @@ function Vo() {
|
|
|
8600
8621
|
}
|
|
8601
8622
|
return vt.debug = t, vt.warn = i, vt;
|
|
8602
8623
|
}
|
|
8603
|
-
var
|
|
8604
|
-
function
|
|
8605
|
-
if (ur) return
|
|
8624
|
+
var je = {}, ur;
|
|
8625
|
+
function Vn() {
|
|
8626
|
+
if (ur) return je;
|
|
8606
8627
|
ur = 1;
|
|
8607
8628
|
var e = H(), t = ee();
|
|
8608
8629
|
const i = "<<", l = {
|
|
@@ -8643,13 +8664,13 @@ function Hn() {
|
|
|
8643
8664
|
function h(o, m) {
|
|
8644
8665
|
return o && e.isAlias(m) ? m.resolve(o.doc, o) : m;
|
|
8645
8666
|
}
|
|
8646
|
-
return
|
|
8667
|
+
return je.addMergeToJSMap = s, je.isMergeKey = p, je.merge = l, je;
|
|
8647
8668
|
}
|
|
8648
8669
|
var fr;
|
|
8649
|
-
function
|
|
8650
|
-
if (fr) return
|
|
8670
|
+
function Ko() {
|
|
8671
|
+
if (fr) return Mi;
|
|
8651
8672
|
fr = 1;
|
|
8652
|
-
var e =
|
|
8673
|
+
var e = Wo(), t = Vn(), i = qt(), l = H(), p = Oe();
|
|
8653
8674
|
function s(h, o, { key: m, value: n }) {
|
|
8654
8675
|
if (l.isNode(m) && m.addToJSMap)
|
|
8655
8676
|
m.addToJSMap(h, o, n);
|
|
@@ -8693,13 +8714,13 @@ function Wo() {
|
|
|
8693
8714
|
}
|
|
8694
8715
|
return JSON.stringify(o);
|
|
8695
8716
|
}
|
|
8696
|
-
return
|
|
8717
|
+
return Mi.addPairToJSMap = s, Mi;
|
|
8697
8718
|
}
|
|
8698
8719
|
var hr;
|
|
8699
8720
|
function $e() {
|
|
8700
8721
|
if (hr) return yt;
|
|
8701
8722
|
hr = 1;
|
|
8702
|
-
var e = Ft(), t =
|
|
8723
|
+
var e = Ft(), t = ku(), i = Ko(), l = H();
|
|
8703
8724
|
function p(c, h, o) {
|
|
8704
8725
|
const m = e.createNode(c, void 0, o), n = e.createNode(h, void 0, o);
|
|
8705
8726
|
return new s(m, n);
|
|
@@ -8722,8 +8743,8 @@ function $e() {
|
|
|
8722
8743
|
};
|
|
8723
8744
|
return yt.Pair = s, yt.createPair = p, yt;
|
|
8724
8745
|
}
|
|
8725
|
-
var
|
|
8726
|
-
function
|
|
8746
|
+
var Ri = {}, Di = {}, St = {}, Fi = {}, pr;
|
|
8747
|
+
function Jo() {
|
|
8727
8748
|
if (pr) return Fi;
|
|
8728
8749
|
pr = 1;
|
|
8729
8750
|
var e = H(), t = qt(), i = Bt();
|
|
@@ -8818,7 +8839,7 @@ var dr;
|
|
|
8818
8839
|
function _e() {
|
|
8819
8840
|
if (dr) return St;
|
|
8820
8841
|
dr = 1;
|
|
8821
|
-
var e =
|
|
8842
|
+
var e = Jo(), t = Ko(), i = Hn(), l = H(), p = $e(), s = ee();
|
|
8822
8843
|
function c(o, m) {
|
|
8823
8844
|
const n = l.isScalar(m) ? m.value : m;
|
|
8824
8845
|
for (const u of o)
|
|
@@ -8936,7 +8957,7 @@ var Bi = {}, Gi = {}, gr;
|
|
|
8936
8957
|
function Ne() {
|
|
8937
8958
|
if (gr) return Gi;
|
|
8938
8959
|
gr = 1;
|
|
8939
|
-
var e = Ft(), t =
|
|
8960
|
+
var e = Ft(), t = Jo(), i = Hn(), l = H(), p = ee(), s = Oe();
|
|
8940
8961
|
let c = class extends i.Collection {
|
|
8941
8962
|
static get tagName() {
|
|
8942
8963
|
return "tag:yaml.org,2002:seq";
|
|
@@ -9062,7 +9083,7 @@ function jt() {
|
|
|
9062
9083
|
return qi.string = t, qi;
|
|
9063
9084
|
}
|
|
9064
9085
|
var wt = {}, ji = {}, vr;
|
|
9065
|
-
function
|
|
9086
|
+
function Wn() {
|
|
9066
9087
|
if (vr) return ji;
|
|
9067
9088
|
vr = 1;
|
|
9068
9089
|
var e = ee();
|
|
@@ -9078,7 +9099,7 @@ function Vn() {
|
|
|
9078
9099
|
return ji.nullTag = t, ji;
|
|
9079
9100
|
}
|
|
9080
9101
|
var Ui = {}, Sr;
|
|
9081
|
-
function
|
|
9102
|
+
function zo() {
|
|
9082
9103
|
if (Sr) return Ui;
|
|
9083
9104
|
Sr = 1;
|
|
9084
9105
|
var e = ee();
|
|
@@ -9099,7 +9120,7 @@ function Jo() {
|
|
|
9099
9120
|
};
|
|
9100
9121
|
return Ui.boolTag = t, Ui;
|
|
9101
9122
|
}
|
|
9102
|
-
var
|
|
9123
|
+
var Ue = {}, Hi = {}, wr;
|
|
9103
9124
|
function tt() {
|
|
9104
9125
|
if (wr) return Hi;
|
|
9105
9126
|
wr = 1;
|
|
@@ -9122,8 +9143,8 @@ function tt() {
|
|
|
9122
9143
|
return Hi.stringifyNumber = e, Hi;
|
|
9123
9144
|
}
|
|
9124
9145
|
var Er;
|
|
9125
|
-
function
|
|
9126
|
-
if (Er) return
|
|
9146
|
+
function Xo() {
|
|
9147
|
+
if (Er) return Ue;
|
|
9127
9148
|
Er = 1;
|
|
9128
9149
|
var e = ee(), t = tt();
|
|
9129
9150
|
const i = {
|
|
@@ -9155,11 +9176,11 @@ function zo() {
|
|
|
9155
9176
|
},
|
|
9156
9177
|
stringify: t.stringifyNumber
|
|
9157
9178
|
};
|
|
9158
|
-
return
|
|
9179
|
+
return Ue.float = p, Ue.floatExp = l, Ue.floatNaN = i, Ue;
|
|
9159
9180
|
}
|
|
9160
|
-
var
|
|
9161
|
-
function
|
|
9162
|
-
if (Cr) return
|
|
9181
|
+
var He = {}, Cr;
|
|
9182
|
+
function Qo() {
|
|
9183
|
+
if (Cr) return He;
|
|
9163
9184
|
Cr = 1;
|
|
9164
9185
|
var e = tt();
|
|
9165
9186
|
const t = (h) => typeof h == "bigint" || Number.isInteger(h), i = (h, o, m, { intAsBigInt: n }) => n ? BigInt(h) : parseInt(h.substring(o), m);
|
|
@@ -9191,13 +9212,13 @@ function Xo() {
|
|
|
9191
9212
|
resolve: (h, o, m) => i(h, 2, 16, m),
|
|
9192
9213
|
stringify: (h) => l(h, 16, "0x")
|
|
9193
9214
|
};
|
|
9194
|
-
return
|
|
9215
|
+
return He.int = s, He.intHex = c, He.intOct = p, He;
|
|
9195
9216
|
}
|
|
9196
9217
|
var Vi = {}, Ar;
|
|
9197
|
-
function
|
|
9218
|
+
function xu() {
|
|
9198
9219
|
if (Ar) return Vi;
|
|
9199
9220
|
Ar = 1;
|
|
9200
|
-
var e = Ze(), t =
|
|
9221
|
+
var e = Ze(), t = Wn(), i = et(), l = jt(), p = zo(), s = Xo(), c = Qo();
|
|
9201
9222
|
const h = [
|
|
9202
9223
|
e.map,
|
|
9203
9224
|
i.seq,
|
|
@@ -9214,7 +9235,7 @@ function ku() {
|
|
|
9214
9235
|
return Vi.schema = h, Vi;
|
|
9215
9236
|
}
|
|
9216
9237
|
var Wi = {}, Lr;
|
|
9217
|
-
function
|
|
9238
|
+
function Mu() {
|
|
9218
9239
|
if (Lr) return Wi;
|
|
9219
9240
|
Lr = 1;
|
|
9220
9241
|
var e = ee(), t = Ze(), i = et();
|
|
@@ -9272,11 +9293,11 @@ function xu() {
|
|
|
9272
9293
|
}, h = [t.map, i.seq].concat(s, c);
|
|
9273
9294
|
return Wi.schema = h, Wi;
|
|
9274
9295
|
}
|
|
9275
|
-
var
|
|
9276
|
-
function
|
|
9277
|
-
if (Or) return
|
|
9296
|
+
var Ki = {}, Or;
|
|
9297
|
+
function Zo() {
|
|
9298
|
+
if (Or) return Ki;
|
|
9278
9299
|
Or = 1;
|
|
9279
|
-
var e =
|
|
9300
|
+
var e = ka, t = ee(), i = Gt();
|
|
9280
9301
|
const l = {
|
|
9281
9302
|
identify: (p) => p instanceof Uint8Array,
|
|
9282
9303
|
// Buffer inherits from Uint8Array
|
|
@@ -9325,11 +9346,11 @@ function Qo() {
|
|
|
9325
9346
|
return i.stringifyString({ comment: p, type: s, value: u }, h, o, m);
|
|
9326
9347
|
}
|
|
9327
9348
|
};
|
|
9328
|
-
return
|
|
9349
|
+
return Ki.binary = l, Ki;
|
|
9329
9350
|
}
|
|
9330
|
-
var Et = {},
|
|
9331
|
-
function
|
|
9332
|
-
if ($r) return
|
|
9351
|
+
var Et = {}, Ve = {}, $r;
|
|
9352
|
+
function Kn() {
|
|
9353
|
+
if ($r) return Ve;
|
|
9333
9354
|
$r = 1;
|
|
9334
9355
|
var e = H(), t = $e(), i = ee(), l = Ne();
|
|
9335
9356
|
function p(h, o) {
|
|
@@ -9387,13 +9408,13 @@ ${a.comment}` : n.comment;
|
|
|
9387
9408
|
resolve: p,
|
|
9388
9409
|
createNode: s
|
|
9389
9410
|
};
|
|
9390
|
-
return
|
|
9411
|
+
return Ve.createPairs = s, Ve.pairs = c, Ve.resolvePairs = p, Ve;
|
|
9391
9412
|
}
|
|
9392
9413
|
var _r;
|
|
9393
|
-
function
|
|
9414
|
+
function ea() {
|
|
9394
9415
|
if (_r) return Et;
|
|
9395
9416
|
_r = 1;
|
|
9396
|
-
var e = H(), t = Oe(), i = _e(), l = Ne(), p =
|
|
9417
|
+
var e = H(), t = Oe(), i = _e(), l = Ne(), p = Kn();
|
|
9397
9418
|
class s extends l.YAMLSeq {
|
|
9398
9419
|
constructor() {
|
|
9399
9420
|
super(), this.add = i.YAMLMap.prototype.add.bind(this), this.delete = i.YAMLMap.prototype.delete.bind(this), this.get = i.YAMLMap.prototype.get.bind(this), this.has = i.YAMLMap.prototype.has.bind(this), this.set = i.YAMLMap.prototype.set.bind(this), this.tag = s.tag;
|
|
@@ -9437,7 +9458,7 @@ function Zo() {
|
|
|
9437
9458
|
};
|
|
9438
9459
|
return Et.YAMLOMap = s, Et.omap = c, Et;
|
|
9439
9460
|
}
|
|
9440
|
-
var
|
|
9461
|
+
var Yi = {}, Ct = {}, Nr;
|
|
9441
9462
|
function Ru() {
|
|
9442
9463
|
if (Nr) return Ct;
|
|
9443
9464
|
Nr = 1;
|
|
@@ -9462,9 +9483,9 @@ function Ru() {
|
|
|
9462
9483
|
};
|
|
9463
9484
|
return Ct.falseTag = l, Ct.trueTag = i, Ct;
|
|
9464
9485
|
}
|
|
9465
|
-
var
|
|
9466
|
-
function
|
|
9467
|
-
if (Pr) return
|
|
9486
|
+
var We = {}, Pr;
|
|
9487
|
+
function Du() {
|
|
9488
|
+
if (Pr) return We;
|
|
9468
9489
|
Pr = 1;
|
|
9469
9490
|
var e = ee(), t = tt();
|
|
9470
9491
|
const i = {
|
|
@@ -9500,10 +9521,10 @@ function Mu() {
|
|
|
9500
9521
|
},
|
|
9501
9522
|
stringify: t.stringifyNumber
|
|
9502
9523
|
};
|
|
9503
|
-
return
|
|
9524
|
+
return We.float = p, We.floatExp = l, We.floatNaN = i, We;
|
|
9504
9525
|
}
|
|
9505
9526
|
var Te = {}, Ir;
|
|
9506
|
-
function
|
|
9527
|
+
function Fu() {
|
|
9507
9528
|
if (Ir) return Te;
|
|
9508
9529
|
Ir = 1;
|
|
9509
9530
|
var e = tt();
|
|
@@ -9571,7 +9592,7 @@ function Du() {
|
|
|
9571
9592
|
return Te.int = c, Te.intBin = p, Te.intHex = h, Te.intOct = s, Te;
|
|
9572
9593
|
}
|
|
9573
9594
|
var At = {}, Tr;
|
|
9574
|
-
function
|
|
9595
|
+
function ta() {
|
|
9575
9596
|
if (Tr) return At;
|
|
9576
9597
|
Tr = 1;
|
|
9577
9598
|
var e = H(), t = $e(), i = _e();
|
|
@@ -9635,9 +9656,9 @@ function ea() {
|
|
|
9635
9656
|
};
|
|
9636
9657
|
return At.YAMLSet = l, At.set = p, At;
|
|
9637
9658
|
}
|
|
9638
|
-
var
|
|
9639
|
-
function
|
|
9640
|
-
if (kr) return
|
|
9659
|
+
var Ke = {}, kr;
|
|
9660
|
+
function ia() {
|
|
9661
|
+
if (kr) return Ke;
|
|
9641
9662
|
kr = 1;
|
|
9642
9663
|
var e = tt();
|
|
9643
9664
|
function t(c, h) {
|
|
@@ -9694,13 +9715,13 @@ function ta() {
|
|
|
9694
9715
|
},
|
|
9695
9716
|
stringify: ({ value: c }) => c?.toISOString().replace(/(T00:00:00)?\.000Z$/, "") ?? ""
|
|
9696
9717
|
};
|
|
9697
|
-
return
|
|
9718
|
+
return Ke.floatTime = p, Ke.intTime = l, Ke.timestamp = s, Ke;
|
|
9698
9719
|
}
|
|
9699
9720
|
var xr;
|
|
9700
|
-
function
|
|
9701
|
-
if (xr) return
|
|
9721
|
+
function Bu() {
|
|
9722
|
+
if (xr) return Yi;
|
|
9702
9723
|
xr = 1;
|
|
9703
|
-
var e = Ze(), t =
|
|
9724
|
+
var e = Ze(), t = Wn(), i = et(), l = jt(), p = Zo(), s = Ru(), c = Du(), h = Fu(), o = Vn(), m = ea(), n = Kn(), u = ta(), a = ia();
|
|
9704
9725
|
const r = [
|
|
9705
9726
|
e.map,
|
|
9706
9727
|
i.seq,
|
|
@@ -9724,13 +9745,13 @@ function Fu() {
|
|
|
9724
9745
|
a.floatTime,
|
|
9725
9746
|
a.timestamp
|
|
9726
9747
|
];
|
|
9727
|
-
return
|
|
9748
|
+
return Yi.schema = r, Yi;
|
|
9728
9749
|
}
|
|
9729
|
-
var
|
|
9730
|
-
function
|
|
9731
|
-
if (
|
|
9732
|
-
|
|
9733
|
-
var e = Ze(), t =
|
|
9750
|
+
var Mr;
|
|
9751
|
+
function Gu() {
|
|
9752
|
+
if (Mr) return wt;
|
|
9753
|
+
Mr = 1;
|
|
9754
|
+
var e = Ze(), t = Wn(), i = et(), l = jt(), p = zo(), s = Xo(), c = Qo(), h = xu(), o = Mu(), m = Zo(), n = Vn(), u = ea(), a = Kn(), r = Bu(), f = ta(), d = ia();
|
|
9734
9755
|
const g = /* @__PURE__ */ new Map([
|
|
9735
9756
|
["core", h.schema],
|
|
9736
9757
|
["failsafe", [e.map, i.seq, l.string]],
|
|
@@ -9791,25 +9812,25 @@ function Bu() {
|
|
|
9791
9812
|
}
|
|
9792
9813
|
return wt.coreKnownTags = v, wt.getTags = w, wt;
|
|
9793
9814
|
}
|
|
9794
|
-
var
|
|
9795
|
-
function
|
|
9796
|
-
if (
|
|
9797
|
-
|
|
9798
|
-
var e = H(), t = Ze(), i = et(), l = jt(), p =
|
|
9815
|
+
var Rr;
|
|
9816
|
+
function sa() {
|
|
9817
|
+
if (Rr) return Ri;
|
|
9818
|
+
Rr = 1;
|
|
9819
|
+
var e = H(), t = Ze(), i = et(), l = jt(), p = Gu();
|
|
9799
9820
|
const s = (h, o) => h.key < o.key ? -1 : h.key > o.key ? 1 : 0;
|
|
9800
|
-
let c = class
|
|
9821
|
+
let c = class na {
|
|
9801
9822
|
constructor({ compat: o, customTags: m, merge: n, resolveKnownTags: u, schema: a, sortMapEntries: r, toStringDefaults: f }) {
|
|
9802
9823
|
this.compat = Array.isArray(o) ? p.getTags(o, "compat") : o ? p.getTags(null, o) : null, this.name = typeof a == "string" && a || "core", this.knownTags = u ? p.coreKnownTags : {}, this.tags = p.getTags(m, this.name, n), this.toStringOptions = f ?? null, Object.defineProperty(this, e.MAP, { value: t.map }), Object.defineProperty(this, e.SCALAR, { value: l.string }), Object.defineProperty(this, e.SEQ, { value: i.seq }), this.sortMapEntries = typeof r == "function" ? r : r === !0 ? s : null;
|
|
9803
9824
|
}
|
|
9804
9825
|
clone() {
|
|
9805
|
-
const o = Object.create(
|
|
9826
|
+
const o = Object.create(na.prototype, Object.getOwnPropertyDescriptors(this));
|
|
9806
9827
|
return o.tags = this.tags.slice(), o;
|
|
9807
9828
|
}
|
|
9808
9829
|
};
|
|
9809
|
-
return
|
|
9830
|
+
return Ri.Schema = c, Ri;
|
|
9810
9831
|
}
|
|
9811
9832
|
var Ji = {}, Dr;
|
|
9812
|
-
function
|
|
9833
|
+
function qu() {
|
|
9813
9834
|
if (Dr) return Ji;
|
|
9814
9835
|
Dr = 1;
|
|
9815
9836
|
var e = H(), t = qt(), i = Bt();
|
|
@@ -9862,8 +9883,8 @@ var Fr;
|
|
|
9862
9883
|
function Ut() {
|
|
9863
9884
|
if (Fr) return $i;
|
|
9864
9885
|
Fr = 1;
|
|
9865
|
-
var e = Dt(), t =
|
|
9866
|
-
let u = class
|
|
9886
|
+
var e = Dt(), t = Hn(), i = H(), l = $e(), p = Oe(), s = sa(), c = qu(), h = jn(), o = Vo(), m = Ft(), n = Ho();
|
|
9887
|
+
let u = class ra {
|
|
9867
9888
|
constructor(f, d, g) {
|
|
9868
9889
|
this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, i.NODE_TYPE, { value: i.DOC });
|
|
9869
9890
|
let y = null;
|
|
@@ -9888,7 +9909,7 @@ function Ut() {
|
|
|
9888
9909
|
* Custom Node values that inherit from `Object` still refer to their original instances.
|
|
9889
9910
|
*/
|
|
9890
9911
|
clone() {
|
|
9891
|
-
const f = Object.create(
|
|
9912
|
+
const f = Object.create(ra.prototype, {
|
|
9892
9913
|
[i.NODE_TYPE]: { value: i.DOC }
|
|
9893
9914
|
});
|
|
9894
9915
|
return f.commentBefore = this.commentBefore, f.comment = this.comment, f.errors = this.errors.slice(), f.warnings = this.warnings.slice(), f.options = Object.assign({}, this.options), this.directives && (f.directives = this.directives.clone()), f.schema = this.schema.clone(), f.contents = i.isNode(this.contents) ? this.contents.clone(f.schema) : this.contents, this.range && (f.range = this.range.slice()), f;
|
|
@@ -9923,7 +9944,7 @@ function Ut() {
|
|
|
9923
9944
|
if (typeof d == "function")
|
|
9924
9945
|
f = d.call({ "": f }, "", f), y = d;
|
|
9925
9946
|
else if (Array.isArray(d)) {
|
|
9926
|
-
const F = (
|
|
9947
|
+
const F = (R) => typeof R == "number" || R instanceof String || R instanceof Number, D = d.filter(F).map(String);
|
|
9927
9948
|
D.length > 0 && (d = d.concat(D)), y = d;
|
|
9928
9949
|
} else g === void 0 && d && (g = d, d = void 0);
|
|
9929
9950
|
const { aliasDuplicateObjects: v, anchorPrefix: w, flow: b, keepUndefined: S, onTagObj: L, tag: O } = g ?? {}, { onAnchor: $, setAnchors: _, sourceObjects: P } = h.createNodeAnchors(
|
|
@@ -10226,7 +10247,7 @@ function Yn() {
|
|
|
10226
10247
|
return en.containsNewline = e, en;
|
|
10227
10248
|
}
|
|
10228
10249
|
var tn = {}, jr;
|
|
10229
|
-
function
|
|
10250
|
+
function oa() {
|
|
10230
10251
|
if (jr) return tn;
|
|
10231
10252
|
jr = 1;
|
|
10232
10253
|
var e = Yn();
|
|
@@ -10239,7 +10260,7 @@ function ra() {
|
|
|
10239
10260
|
return tn.flowIndentCheck = t, tn;
|
|
10240
10261
|
}
|
|
10241
10262
|
var nn = {}, Ur;
|
|
10242
|
-
function
|
|
10263
|
+
function aa() {
|
|
10243
10264
|
if (Ur) return nn;
|
|
10244
10265
|
Ur = 1;
|
|
10245
10266
|
var e = H();
|
|
@@ -10253,10 +10274,10 @@ function oa() {
|
|
|
10253
10274
|
return nn.mapIncludes = t, nn;
|
|
10254
10275
|
}
|
|
10255
10276
|
var Hr;
|
|
10256
|
-
function
|
|
10277
|
+
function ju() {
|
|
10257
10278
|
if (Hr) return Qi;
|
|
10258
10279
|
Hr = 1;
|
|
10259
|
-
var e = $e(), t = _e(), i = Vt(), l = Yn(), p =
|
|
10280
|
+
var e = $e(), t = _e(), i = Vt(), l = Yn(), p = oa(), s = aa();
|
|
10260
10281
|
const c = "All mapping items must start at the same column";
|
|
10261
10282
|
function h({ composeNode: o, composeEmptyNode: m }, n, u, a, r) {
|
|
10262
10283
|
const f = r?.nodeClass ?? t.YAMLMap, d = new f(n.schema);
|
|
@@ -10308,10 +10329,10 @@ function qu() {
|
|
|
10308
10329
|
return Qi.resolveBlockMap = h, Qi;
|
|
10309
10330
|
}
|
|
10310
10331
|
var sn = {}, Vr;
|
|
10311
|
-
function
|
|
10332
|
+
function Uu() {
|
|
10312
10333
|
if (Vr) return sn;
|
|
10313
10334
|
Vr = 1;
|
|
10314
|
-
var e = Ne(), t = Vt(), i =
|
|
10335
|
+
var e = Ne(), t = Vt(), i = oa();
|
|
10315
10336
|
function l({ composeNode: p, composeEmptyNode: s }, c, h, o, m) {
|
|
10316
10337
|
const n = m?.nodeClass ?? e.YAMLSeq, u = new n(c.schema);
|
|
10317
10338
|
c.atRoot && (c.atRoot = !1), c.atKey && (c.atKey = !1);
|
|
@@ -10372,11 +10393,11 @@ function it() {
|
|
|
10372
10393
|
}
|
|
10373
10394
|
return on.resolveEnd = e, on;
|
|
10374
10395
|
}
|
|
10375
|
-
var
|
|
10376
|
-
function
|
|
10377
|
-
if (
|
|
10378
|
-
|
|
10379
|
-
var e = H(), t = $e(), i = _e(), l = Ne(), p = it(), s = Vt(), c = Yn(), h =
|
|
10396
|
+
var Kr;
|
|
10397
|
+
function Hu() {
|
|
10398
|
+
if (Kr) return rn;
|
|
10399
|
+
Kr = 1;
|
|
10400
|
+
var e = H(), t = $e(), i = _e(), l = Ne(), p = it(), s = Vt(), c = Yn(), h = aa();
|
|
10380
10401
|
const o = "Block collections are not allowed within flow collections", m = (u) => u && (u.type === "block-map" || u.type === "block-seq");
|
|
10381
10402
|
function n({ composeNode: u, composeEmptyNode: a }, r, f, d, g) {
|
|
10382
10403
|
const y = f.start.source === "{", v = y ? "flow map" : "flow sequence", w = g?.nodeClass ?? (y ? i.YAMLMap : l.YAMLSeq), b = new w(r.schema);
|
|
@@ -10385,17 +10406,17 @@ function Uu() {
|
|
|
10385
10406
|
S && (r.atRoot = !1), r.atKey && (r.atKey = !1);
|
|
10386
10407
|
let L = f.offset + f.start.source.length;
|
|
10387
10408
|
for (let I = 0; I < f.items.length; ++I) {
|
|
10388
|
-
const B = f.items[I], { start: F, key: D, sep:
|
|
10409
|
+
const B = f.items[I], { start: F, key: D, sep: R, value: G } = B, T = s.resolveProps(F, {
|
|
10389
10410
|
flow: v,
|
|
10390
10411
|
indicator: "explicit-key-ind",
|
|
10391
|
-
next: D ??
|
|
10412
|
+
next: D ?? R?.[0],
|
|
10392
10413
|
offset: L,
|
|
10393
10414
|
onError: d,
|
|
10394
10415
|
parentIndent: f.indent,
|
|
10395
10416
|
startOnNewline: !1
|
|
10396
10417
|
});
|
|
10397
10418
|
if (!T.found) {
|
|
10398
|
-
if (!T.anchor && !T.tag && !
|
|
10419
|
+
if (!T.anchor && !T.tag && !R && !G) {
|
|
10399
10420
|
I === 0 && T.comma ? d(T.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${v}`) : I < f.items.length - 1 && d(T.start, "UNEXPECTED_TOKEN", `Unexpected empty item in ${v}`), T.comment && (b.comment ? b.comment += `
|
|
10400
10421
|
` + T.comment : b.comment = T.comment), L = T.end;
|
|
10401
10422
|
continue;
|
|
@@ -10410,32 +10431,32 @@ function Uu() {
|
|
|
10410
10431
|
if (I === 0)
|
|
10411
10432
|
T.comma && d(T.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${v}`);
|
|
10412
10433
|
else if (T.comma || d(T.start, "MISSING_CHAR", `Missing , between ${v} items`), T.comment) {
|
|
10413
|
-
let
|
|
10434
|
+
let K = "";
|
|
10414
10435
|
e: for (const j of F)
|
|
10415
10436
|
switch (j.type) {
|
|
10416
10437
|
case "comma":
|
|
10417
10438
|
case "space":
|
|
10418
10439
|
break;
|
|
10419
10440
|
case "comment":
|
|
10420
|
-
|
|
10441
|
+
K = j.source.substring(1);
|
|
10421
10442
|
break e;
|
|
10422
10443
|
default:
|
|
10423
10444
|
break e;
|
|
10424
10445
|
}
|
|
10425
|
-
if (
|
|
10446
|
+
if (K) {
|
|
10426
10447
|
let j = b.items[b.items.length - 1];
|
|
10427
10448
|
e.isPair(j) && (j = j.value ?? j.key), j.comment ? j.comment += `
|
|
10428
|
-
` +
|
|
10449
|
+
` + K : j.comment = K, T.comment = T.comment.substring(K.length + 1);
|
|
10429
10450
|
}
|
|
10430
10451
|
}
|
|
10431
|
-
if (!y && !
|
|
10432
|
-
const
|
|
10433
|
-
b.items.push(
|
|
10452
|
+
if (!y && !R && !T.found) {
|
|
10453
|
+
const K = G ? u(r, G, T, d) : a(r, T.end, R, null, T, d);
|
|
10454
|
+
b.items.push(K), L = K.range[2], m(G) && d(K.range, "BLOCK_IN_FLOW", o);
|
|
10434
10455
|
} else {
|
|
10435
10456
|
r.atKey = !0;
|
|
10436
|
-
const
|
|
10457
|
+
const K = T.end, j = D ? u(r, D, T, d) : a(r, K, F, null, T, d);
|
|
10437
10458
|
m(D) && d(j.range, "BLOCK_IN_FLOW", o), r.atKey = !1;
|
|
10438
|
-
const U = s.resolveProps(
|
|
10459
|
+
const U = s.resolveProps(R ?? [], {
|
|
10439
10460
|
flow: v,
|
|
10440
10461
|
indicator: "map-value-ind",
|
|
10441
10462
|
next: G,
|
|
@@ -10446,8 +10467,8 @@ function Uu() {
|
|
|
10446
10467
|
});
|
|
10447
10468
|
if (U.found) {
|
|
10448
10469
|
if (!y && !T.found && r.options.strict) {
|
|
10449
|
-
if (
|
|
10450
|
-
for (const le of
|
|
10470
|
+
if (R)
|
|
10471
|
+
for (const le of R) {
|
|
10451
10472
|
if (le === U.found)
|
|
10452
10473
|
break;
|
|
10453
10474
|
if (le.type === "newline") {
|
|
@@ -10458,20 +10479,20 @@ function Uu() {
|
|
|
10458
10479
|
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
10480
|
}
|
|
10460
10481
|
} 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
|
-
|
|
10482
|
+
const ie = G ? u(r, G, U, d) : U.found ? a(r, U.end, R, null, U, d) : null;
|
|
10483
|
+
ie ? m(G) && d(ie.range, "BLOCK_IN_FLOW", o) : U.comment && (j.comment ? j.comment += `
|
|
10463
10484
|
` + U.comment : j.comment = U.comment);
|
|
10464
|
-
const ve = new t.Pair(j,
|
|
10485
|
+
const ve = new t.Pair(j, ie);
|
|
10465
10486
|
if (r.options.keepSourceTokens && (ve.srcToken = B), y) {
|
|
10466
10487
|
const le = b;
|
|
10467
|
-
h.mapIncludes(r, le.items, j) && d(
|
|
10488
|
+
h.mapIncludes(r, le.items, j) && d(K, "DUPLICATE_KEY", "Map keys must be unique"), le.items.push(ve);
|
|
10468
10489
|
} else {
|
|
10469
10490
|
const le = new i.YAMLMap(r.schema);
|
|
10470
10491
|
le.flow = !0, le.items.push(ve);
|
|
10471
|
-
const ce = (
|
|
10492
|
+
const ce = (ie ?? j).range;
|
|
10472
10493
|
le.range = [j.range[0], ce[1], ce[2]], b.items.push(le);
|
|
10473
10494
|
}
|
|
10474
|
-
L =
|
|
10495
|
+
L = ie ? ie.range[2] : U.end;
|
|
10475
10496
|
}
|
|
10476
10497
|
}
|
|
10477
10498
|
const O = y ? "}" : "]", [$, ..._] = f.end;
|
|
@@ -10492,11 +10513,11 @@ function Uu() {
|
|
|
10492
10513
|
}
|
|
10493
10514
|
return rn.resolveFlowCollection = n, rn;
|
|
10494
10515
|
}
|
|
10495
|
-
var
|
|
10496
|
-
function
|
|
10497
|
-
if (
|
|
10498
|
-
|
|
10499
|
-
var e = H(), t = ee(), i = _e(), l = Ne(), p =
|
|
10516
|
+
var Yr;
|
|
10517
|
+
function Vu() {
|
|
10518
|
+
if (Yr) return Xi;
|
|
10519
|
+
Yr = 1;
|
|
10520
|
+
var e = H(), t = ee(), i = _e(), l = Ne(), p = ju(), s = Uu(), c = Hu();
|
|
10500
10521
|
function h(m, n, u, a, r, f) {
|
|
10501
10522
|
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
10523
|
return r === "!" || r === g.tagName ? (d.tag = g.tagName, d) : (r && (d.tag = r), d);
|
|
@@ -10524,7 +10545,7 @@ function Hu() {
|
|
|
10524
10545
|
return Xi.composeCollection = o, Xi;
|
|
10525
10546
|
}
|
|
10526
10547
|
var an = {}, ln = {}, Jr;
|
|
10527
|
-
function
|
|
10548
|
+
function la() {
|
|
10528
10549
|
if (Jr) return ln;
|
|
10529
10550
|
Jr = 1;
|
|
10530
10551
|
var e = ee();
|
|
@@ -10652,7 +10673,7 @@ function aa() {
|
|
|
10652
10673
|
return ln.resolveBlockScalar = t, ln;
|
|
10653
10674
|
}
|
|
10654
10675
|
var cn = {}, zr;
|
|
10655
|
-
function
|
|
10676
|
+
function ca() {
|
|
10656
10677
|
if (zr) return cn;
|
|
10657
10678
|
zr = 1;
|
|
10658
10679
|
var e = ee(), t = it();
|
|
@@ -10835,10 +10856,10 @@ function la() {
|
|
|
10835
10856
|
return cn.resolveFlowScalar = i, cn;
|
|
10836
10857
|
}
|
|
10837
10858
|
var Xr;
|
|
10838
|
-
function
|
|
10859
|
+
function Wu() {
|
|
10839
10860
|
if (Xr) return an;
|
|
10840
10861
|
Xr = 1;
|
|
10841
|
-
var e = H(), t = ee(), i =
|
|
10862
|
+
var e = H(), t = ee(), i = la(), l = ca();
|
|
10842
10863
|
function p(h, o, m, n) {
|
|
10843
10864
|
const { value: u, type: a, comment: r, range: f } = o.type === "block-scalar" ? i.resolveBlockScalar(h, o, n) : l.resolveFlowScalar(o, h.options.strict, n), d = m ? h.directives.tagName(m.source, (v) => n(m, "TAG_RESOLVE_FAILED", v)) : null;
|
|
10844
10865
|
let g;
|
|
@@ -10883,7 +10904,7 @@ function Vu() {
|
|
|
10883
10904
|
return an.composeScalar = p, an;
|
|
10884
10905
|
}
|
|
10885
10906
|
var un = {}, Qr;
|
|
10886
|
-
function
|
|
10907
|
+
function Ku() {
|
|
10887
10908
|
if (Qr) return un;
|
|
10888
10909
|
Qr = 1;
|
|
10889
10910
|
function e(t, i, l) {
|
|
@@ -10911,7 +10932,7 @@ var Zr;
|
|
|
10911
10932
|
function Yu() {
|
|
10912
10933
|
if (Zr) return Lt;
|
|
10913
10934
|
Zr = 1;
|
|
10914
|
-
var e = Dt(), t = H(), i =
|
|
10935
|
+
var e = Dt(), t = H(), i = Vu(), l = Wu(), p = it(), s = Ku();
|
|
10915
10936
|
const c = { composeNode: h, composeEmptyNode: o };
|
|
10916
10937
|
function h(n, u, a, r) {
|
|
10917
10938
|
const f = n.atKey, { spaceBefore: d, comment: g, anchor: y, tag: v } = a;
|
|
@@ -10961,7 +10982,7 @@ function Yu() {
|
|
|
10961
10982
|
return Lt.composeEmptyNode = o, Lt.composeNode = h, Lt;
|
|
10962
10983
|
}
|
|
10963
10984
|
var eo;
|
|
10964
|
-
function
|
|
10985
|
+
function Ju() {
|
|
10965
10986
|
if (eo) return zi;
|
|
10966
10987
|
eo = 1;
|
|
10967
10988
|
var e = Ut(), t = Yu(), i = it(), l = Vt();
|
|
@@ -10987,10 +11008,10 @@ function Ku() {
|
|
|
10987
11008
|
return zi.composeDoc = p, zi;
|
|
10988
11009
|
}
|
|
10989
11010
|
var to;
|
|
10990
|
-
function
|
|
11011
|
+
function ua() {
|
|
10991
11012
|
if (to) return Li;
|
|
10992
11013
|
to = 1;
|
|
10993
|
-
var e = Ee, t =
|
|
11014
|
+
var e = Ee, t = Ho(), i = Ut(), l = Ht(), p = H(), s = Ju(), c = it();
|
|
10994
11015
|
function h(n) {
|
|
10995
11016
|
if (typeof n == "number")
|
|
10996
11017
|
return [n, n + 1];
|
|
@@ -11144,10 +11165,10 @@ ${a.comment}` : a.comment;
|
|
|
11144
11165
|
return Li.Composer = m, Li;
|
|
11145
11166
|
}
|
|
11146
11167
|
var re = {}, Ye = {}, io;
|
|
11147
|
-
function
|
|
11168
|
+
function zu() {
|
|
11148
11169
|
if (io) return Ye;
|
|
11149
11170
|
io = 1;
|
|
11150
|
-
var e =
|
|
11171
|
+
var e = la(), t = ca(), i = Ht(), l = Gt();
|
|
11151
11172
|
function p(n, u = !0, a) {
|
|
11152
11173
|
if (n) {
|
|
11153
11174
|
const r = (f, d, g) => {
|
|
@@ -11305,7 +11326,7 @@ function Ju() {
|
|
|
11305
11326
|
return Ye.createScalarToken = s, Ye.resolveAsScalar = p, Ye.setScalarValue = c, Ye;
|
|
11306
11327
|
}
|
|
11307
11328
|
var fn = {}, no;
|
|
11308
|
-
function
|
|
11329
|
+
function Xu() {
|
|
11309
11330
|
if (no) return fn;
|
|
11310
11331
|
no = 1;
|
|
11311
11332
|
const e = (l) => "type" in l ? t(l) : i(l);
|
|
@@ -11360,7 +11381,7 @@ function zu() {
|
|
|
11360
11381
|
return fn.stringify = e, fn;
|
|
11361
11382
|
}
|
|
11362
11383
|
var hn = {}, so;
|
|
11363
|
-
function
|
|
11384
|
+
function Qu() {
|
|
11364
11385
|
if (so) return hn;
|
|
11365
11386
|
so = 1;
|
|
11366
11387
|
const e = /* @__PURE__ */ Symbol("break visit"), t = /* @__PURE__ */ Symbol("skip children"), i = /* @__PURE__ */ Symbol("remove item");
|
|
@@ -11408,10 +11429,10 @@ function Xu() {
|
|
|
11408
11429
|
return hn.visit = l, hn;
|
|
11409
11430
|
}
|
|
11410
11431
|
var ro;
|
|
11411
|
-
function
|
|
11432
|
+
function Jn() {
|
|
11412
11433
|
if (ro) return re;
|
|
11413
11434
|
ro = 1;
|
|
11414
|
-
var e =
|
|
11435
|
+
var e = zu(), t = Xu(), i = Qu();
|
|
11415
11436
|
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
11437
|
function m(u) {
|
|
11417
11438
|
switch (u) {
|
|
@@ -11491,10 +11512,10 @@ function Kn() {
|
|
|
11491
11512
|
return re.createScalarToken = e.createScalarToken, re.resolveAsScalar = e.resolveAsScalar, re.setScalarValue = e.setScalarValue, re.stringify = t.stringify, re.visit = i.visit, re.BOM = l, re.DOCUMENT = p, re.FLOW_END = s, re.SCALAR = c, re.isCollection = h, re.isScalar = o, re.prettyToken = m, re.tokenType = n, re;
|
|
11492
11513
|
}
|
|
11493
11514
|
var pn = {}, oo;
|
|
11494
|
-
function
|
|
11515
|
+
function fa() {
|
|
11495
11516
|
if (oo) return pn;
|
|
11496
11517
|
oo = 1;
|
|
11497
|
-
var e =
|
|
11518
|
+
var e = Jn();
|
|
11498
11519
|
function t(o) {
|
|
11499
11520
|
switch (o) {
|
|
11500
11521
|
case void 0:
|
|
@@ -11936,7 +11957,7 @@ function ua() {
|
|
|
11936
11957
|
return pn.Lexer = h, pn;
|
|
11937
11958
|
}
|
|
11938
11959
|
var dn = {}, ao;
|
|
11939
|
-
function
|
|
11960
|
+
function ha() {
|
|
11940
11961
|
if (ao) return dn;
|
|
11941
11962
|
ao = 1;
|
|
11942
11963
|
class e {
|
|
@@ -11959,10 +11980,10 @@ function fa() {
|
|
|
11959
11980
|
return dn.LineCounter = e, dn;
|
|
11960
11981
|
}
|
|
11961
11982
|
var mn = {}, lo;
|
|
11962
|
-
function
|
|
11983
|
+
function pa() {
|
|
11963
11984
|
if (lo) return mn;
|
|
11964
11985
|
lo = 1;
|
|
11965
|
-
var e = Ee, t =
|
|
11986
|
+
var e = Ee, t = Jn(), i = fa();
|
|
11966
11987
|
function l(u, a) {
|
|
11967
11988
|
for (let r = 0; r < u.length; ++r)
|
|
11968
11989
|
if (u[r].type === a)
|
|
@@ -12619,10 +12640,10 @@ function ha() {
|
|
|
12619
12640
|
return mn.Parser = n, mn;
|
|
12620
12641
|
}
|
|
12621
12642
|
var xe = {}, co;
|
|
12622
|
-
function
|
|
12643
|
+
function Zu() {
|
|
12623
12644
|
if (co) return xe;
|
|
12624
12645
|
co = 1;
|
|
12625
|
-
var e =
|
|
12646
|
+
var e = ua(), t = Ut(), i = Ht(), l = Wo(), p = H(), s = ha(), c = pa();
|
|
12626
12647
|
function h(a) {
|
|
12627
12648
|
const r = a.prettyErrors !== !1;
|
|
12628
12649
|
return { lineCounter: a.lineCounter || r && new s.LineCounter() || null, prettyErrors: r };
|
|
@@ -12675,13 +12696,13 @@ function Qu() {
|
|
|
12675
12696
|
return xe.parse = n, xe.parseAllDocuments = o, xe.parseDocument = m, xe.stringify = u, xe;
|
|
12676
12697
|
}
|
|
12677
12698
|
var uo;
|
|
12678
|
-
function
|
|
12699
|
+
function ef() {
|
|
12679
12700
|
if (uo) return W;
|
|
12680
12701
|
uo = 1;
|
|
12681
|
-
var e =
|
|
12702
|
+
var e = ua(), t = Ut(), i = sa(), l = Ht(), p = Dt(), s = H(), c = $e(), h = ee(), o = _e(), m = Ne(), n = Jn(), u = fa(), a = ha(), r = pa(), f = Zu(), d = Rt();
|
|
12682
12703
|
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
12704
|
}
|
|
12684
|
-
var
|
|
12705
|
+
var da = ef();
|
|
12685
12706
|
const Q = {
|
|
12686
12707
|
missingGit: "Git is required to fetch templates, but it is not installed or not available on PATH. Please install Git and try again.",
|
|
12687
12708
|
missingTemplate: [
|
|
@@ -12695,7 +12716,6 @@ const Q = {
|
|
|
12695
12716
|
].join(""),
|
|
12696
12717
|
missingHost: "Host option is required for the lumina-components template.",
|
|
12697
12718
|
invalidCodeSampleTemplate: "Template option is required for code sample initialization.",
|
|
12698
|
-
invalidDomain: (e) => `Invalid domain: ${e ?? "(none)"}`,
|
|
12699
12719
|
invalidTemplate: (e) => `Invalid template: ${e ?? "(none)"}`,
|
|
12700
12720
|
invalidOption: (e) => `Invalid option: ${e}`,
|
|
12701
12721
|
templateNotAvailable: (e, t) => `Template "${e}" is not available for domain "${t}"`,
|
|
@@ -12723,7 +12743,7 @@ function fo(e) {
|
|
|
12723
12743
|
Q.missingHost,
|
|
12724
12744
|
Q.invalidCodeSampleTemplate,
|
|
12725
12745
|
Q.generic
|
|
12726
|
-
], i = ['Directory "', "Invalid
|
|
12746
|
+
], i = ['Directory "', "Invalid template", "Invalid option", 'Template "'], l = (p) => t.includes(p) || i.some((s) => p.startsWith(s));
|
|
12727
12747
|
if (e instanceof Error) {
|
|
12728
12748
|
const p = e.message || "Unknown error";
|
|
12729
12749
|
return l(p) ? p : Q.generic;
|
|
@@ -12736,14 +12756,14 @@ function fo(e) {
|
|
|
12736
12756
|
return String(e);
|
|
12737
12757
|
}
|
|
12738
12758
|
}
|
|
12739
|
-
function
|
|
12759
|
+
function zn(e) {
|
|
12740
12760
|
return {
|
|
12741
12761
|
name: e.name,
|
|
12742
12762
|
shouldCleanup: !1,
|
|
12743
12763
|
async doCleanup(i) {
|
|
12744
|
-
if (
|
|
12764
|
+
if (Gn(oe("bgRed", fo(i))), this.shouldCleanup && this.name)
|
|
12745
12765
|
try {
|
|
12746
|
-
await
|
|
12766
|
+
await uf(this.name);
|
|
12747
12767
|
} catch (l) {
|
|
12748
12768
|
console.error(oe("bgRed", fo(l)));
|
|
12749
12769
|
}
|
|
@@ -12752,54 +12772,59 @@ function Jn(e) {
|
|
|
12752
12772
|
}
|
|
12753
12773
|
};
|
|
12754
12774
|
}
|
|
12755
|
-
const
|
|
12756
|
-
async function
|
|
12775
|
+
const ue = Na($a.exec), Wt = (e) => typeof e == "object" && e !== null && "code" in e;
|
|
12776
|
+
async function ma() {
|
|
12757
12777
|
try {
|
|
12758
|
-
await
|
|
12778
|
+
await ue("git --version");
|
|
12759
12779
|
} catch {
|
|
12760
12780
|
throw new Error(Q.missingGit);
|
|
12761
12781
|
}
|
|
12762
12782
|
}
|
|
12763
|
-
async function nf(e, t, i, l =
|
|
12764
|
-
await
|
|
12783
|
+
async function nf(e, t, i, l = _n) {
|
|
12784
|
+
await ma();
|
|
12765
12785
|
const p = Ee.cwd();
|
|
12766
12786
|
try {
|
|
12767
|
-
await
|
|
12787
|
+
await se.mkdir(e);
|
|
12768
12788
|
} catch (s) {
|
|
12769
12789
|
throw Wt(s) && s.code === "EEXIST" ? new Error(Q.folderAlreadyExists(e)) : new Error(Q.generic);
|
|
12770
12790
|
}
|
|
12771
12791
|
try {
|
|
12772
|
-
Ee.chdir(e), await
|
|
12792
|
+
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
12793
|
try {
|
|
12774
|
-
if (!(await
|
|
12794
|
+
if (!(await se.stat(i)).isDirectory())
|
|
12775
12795
|
throw new Error();
|
|
12776
12796
|
} catch {
|
|
12777
12797
|
throw new Error(Q.missingTemplate);
|
|
12778
12798
|
}
|
|
12779
|
-
await
|
|
12799
|
+
await ga(i, "."), await se.rm(".git", { recursive: !0, force: !0 });
|
|
12780
12800
|
} finally {
|
|
12781
12801
|
Ee.chdir(p);
|
|
12782
12802
|
}
|
|
12783
12803
|
}
|
|
12784
|
-
async function sf(e, t, i, l =
|
|
12785
|
-
await
|
|
12804
|
+
async function sf(e, t, i, l = _n) {
|
|
12805
|
+
await ma();
|
|
12786
12806
|
const p = Ee.cwd();
|
|
12787
|
-
let s = {};
|
|
12807
|
+
let s = { catalog: {}, version: "" };
|
|
12788
12808
|
try {
|
|
12789
|
-
await
|
|
12809
|
+
await se.mkdir(e);
|
|
12790
12810
|
} catch (c) {
|
|
12791
12811
|
throw Wt(c) && c.code === "EEXIST" ? new Error(Q.folderAlreadyExists(e)) : new Error(Q.generic);
|
|
12792
12812
|
}
|
|
12793
12813
|
try {
|
|
12794
|
-
Ee.chdir(e), await
|
|
12814
|
+
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
12815
|
try {
|
|
12796
|
-
if (!(await
|
|
12816
|
+
if (!(await se.stat(i)).isDirectory())
|
|
12797
12817
|
throw new Error();
|
|
12798
12818
|
} catch {
|
|
12799
12819
|
throw new Error(Q.missingTemplate);
|
|
12800
12820
|
}
|
|
12801
|
-
const c = await
|
|
12802
|
-
|
|
12821
|
+
const [{ stdout: c }, { stdout: h }] = await Promise.all([
|
|
12822
|
+
ue("git show FETCH_HEAD:pnpm-workspace.yaml"),
|
|
12823
|
+
ue("git show FETCH_HEAD:package.json")
|
|
12824
|
+
]), o = da.parse(c), m = JSON.parse(h);
|
|
12825
|
+
if (!m.version)
|
|
12826
|
+
throw new Error("Root package.json does not have a version defined");
|
|
12827
|
+
s = { catalog: o.catalog ?? {}, version: m.version }, await ga(i, "."), await se.rm(".git", { recursive: !0, force: !0 });
|
|
12803
12828
|
} finally {
|
|
12804
12829
|
Ee.chdir(p);
|
|
12805
12830
|
}
|
|
@@ -12815,38 +12840,45 @@ function rf(e, t) {
|
|
|
12815
12840
|
}
|
|
12816
12841
|
});
|
|
12817
12842
|
}
|
|
12818
|
-
async function
|
|
12843
|
+
async function ga(e, t) {
|
|
12819
12844
|
if (!(e === "." || e === "" || ["./", "/"].includes(e.split("/")[0]))) {
|
|
12820
|
-
if (
|
|
12845
|
+
if (Me.isAbsolute(e))
|
|
12821
12846
|
throw new Error(Q.generic);
|
|
12822
12847
|
try {
|
|
12823
|
-
const i = await
|
|
12848
|
+
const i = await se.readdir(e);
|
|
12824
12849
|
await Promise.all(
|
|
12825
12850
|
i.map(async (p) => {
|
|
12826
|
-
const s =
|
|
12827
|
-
await
|
|
12851
|
+
const s = Me.join(e, p), c = Me.join(t, p);
|
|
12852
|
+
await se.rename(s, c);
|
|
12828
12853
|
})
|
|
12829
12854
|
);
|
|
12830
12855
|
const l = e.split("/")[0];
|
|
12831
|
-
await
|
|
12856
|
+
await se.rm(l, { recursive: !0, force: !0 });
|
|
12832
12857
|
} catch (i) {
|
|
12833
12858
|
throw Wt(i) && i.code === "ENOENT" ? new Error(Q.missingTemplate) : i;
|
|
12834
12859
|
}
|
|
12835
12860
|
}
|
|
12836
12861
|
}
|
|
12837
|
-
async function
|
|
12838
|
-
const t = await
|
|
12839
|
-
return
|
|
12862
|
+
async function ya(e) {
|
|
12863
|
+
const t = await se.readFile(Me.join(e, "package.json"), "utf-8"), i = JSON.parse(t), l = i._id, p = i.readme;
|
|
12864
|
+
return Iu(i, (c) => {
|
|
12840
12865
|
console.error(c);
|
|
12841
12866
|
}), l || delete i._id, p || delete i.readme, i;
|
|
12842
12867
|
}
|
|
12843
12868
|
async function of(e, t) {
|
|
12844
|
-
await
|
|
12869
|
+
await se.writeFile(Me.join(e, "package.json"), JSON.stringify(t, null, 2));
|
|
12845
12870
|
}
|
|
12846
|
-
function af(e) {
|
|
12871
|
+
async function af(e, t) {
|
|
12872
|
+
const i = {
|
|
12873
|
+
...t ? { overrides: t } : {},
|
|
12874
|
+
minimumReleaseAgeExclude: ["@arcgis/*", "@esri/*"]
|
|
12875
|
+
};
|
|
12876
|
+
await se.writeFile(Me.join(e, "pnpm-workspace.yaml"), da.stringify(i));
|
|
12877
|
+
}
|
|
12878
|
+
function lf(e) {
|
|
12847
12879
|
return e.scripts?.start ? "start" : "dev";
|
|
12848
12880
|
}
|
|
12849
|
-
const
|
|
12881
|
+
const cf = (e) => {
|
|
12850
12882
|
const t = {};
|
|
12851
12883
|
return Object.keys(e).forEach((i) => {
|
|
12852
12884
|
const l = i;
|
|
@@ -12855,18 +12887,12 @@ const lf = (e) => {
|
|
|
12855
12887
|
case "name":
|
|
12856
12888
|
t.name = e.name;
|
|
12857
12889
|
break;
|
|
12858
|
-
case "domain": {
|
|
12859
|
-
if (!e.domain || !Object.values(Tt).includes(e.domain))
|
|
12860
|
-
throw new Error(Q.invalidDomain(e.domain));
|
|
12861
|
-
t.domain = e.domain;
|
|
12862
|
-
break;
|
|
12863
|
-
}
|
|
12864
12890
|
case "template": {
|
|
12865
12891
|
const p = e.template;
|
|
12866
12892
|
if (!p)
|
|
12867
12893
|
return;
|
|
12868
|
-
const s =
|
|
12869
|
-
if (!s || !
|
|
12894
|
+
const s = mf(p);
|
|
12895
|
+
if (!s || !Nn[s])
|
|
12870
12896
|
throw new Error(`Invalid template: ${p}`);
|
|
12871
12897
|
t.template = s;
|
|
12872
12898
|
break;
|
|
@@ -12884,35 +12910,35 @@ const lf = (e) => {
|
|
|
12884
12910
|
}
|
|
12885
12911
|
}), t;
|
|
12886
12912
|
};
|
|
12887
|
-
async function
|
|
12913
|
+
async function uf(e) {
|
|
12888
12914
|
try {
|
|
12889
|
-
await
|
|
12915
|
+
await se.stat(e) && await se.rm(e, { recursive: !0 });
|
|
12890
12916
|
} catch (t) {
|
|
12891
12917
|
if (Wt(t) && t.code === "ENOENT")
|
|
12892
12918
|
return;
|
|
12893
12919
|
throw t;
|
|
12894
12920
|
}
|
|
12895
12921
|
}
|
|
12896
|
-
async function
|
|
12897
|
-
const i =
|
|
12898
|
-
let l =
|
|
12922
|
+
async function ff(e, t) {
|
|
12923
|
+
const i = Nn[e];
|
|
12924
|
+
let l = So;
|
|
12899
12925
|
t.host && (l = t.host);
|
|
12900
12926
|
const p = `git@${l}:${i}.git`;
|
|
12901
12927
|
try {
|
|
12902
|
-
await
|
|
12928
|
+
await ue(`git ls-remote ${p} HEAD`);
|
|
12903
12929
|
} catch (s) {
|
|
12904
12930
|
return console.error(s), !1;
|
|
12905
12931
|
}
|
|
12906
12932
|
return !0;
|
|
12907
12933
|
}
|
|
12908
|
-
function
|
|
12909
|
-
const i =
|
|
12910
|
-
let l =
|
|
12934
|
+
function ba(e, t) {
|
|
12935
|
+
const i = Nn[e];
|
|
12936
|
+
let l = So;
|
|
12911
12937
|
t.host && (l = t.host);
|
|
12912
12938
|
const p = t.ssh ? "git@" : "https://", s = t.accessToken ? `${t.accessToken}@` : "", c = t.ssh ? ":" : "/";
|
|
12913
12939
|
return `${p}${s}${l}${c}${i}`;
|
|
12914
12940
|
}
|
|
12915
|
-
function
|
|
12941
|
+
function hf(e, t) {
|
|
12916
12942
|
["dependencies", "devDependencies", "peerDependencies"].forEach((l) => {
|
|
12917
12943
|
if (t[l]) {
|
|
12918
12944
|
const p = t[l];
|
|
@@ -12922,8 +12948,8 @@ function ff(e, t) {
|
|
|
12922
12948
|
}
|
|
12923
12949
|
});
|
|
12924
12950
|
}
|
|
12925
|
-
function
|
|
12926
|
-
const i =
|
|
12951
|
+
function pf(e, t) {
|
|
12952
|
+
const i = vo[e];
|
|
12927
12953
|
if (t === On)
|
|
12928
12954
|
throw new Error(Q.templateNotAvailable(t, e));
|
|
12929
12955
|
const l = i[t];
|
|
@@ -12931,10 +12957,10 @@ function hf(e, t) {
|
|
|
12931
12957
|
throw new Error(Q.templateNotAvailable(t, e));
|
|
12932
12958
|
return l;
|
|
12933
12959
|
}
|
|
12934
|
-
function
|
|
12960
|
+
function Xn(e) {
|
|
12935
12961
|
return e.trim().toLowerCase();
|
|
12936
12962
|
}
|
|
12937
|
-
function
|
|
12963
|
+
function va(e, t, i) {
|
|
12938
12964
|
if (!t)
|
|
12939
12965
|
return;
|
|
12940
12966
|
const l = e.get(t);
|
|
@@ -12944,18 +12970,18 @@ function ya(e, t, i) {
|
|
|
12944
12970
|
}
|
|
12945
12971
|
l !== i && e.set(t, null);
|
|
12946
12972
|
}
|
|
12947
|
-
const
|
|
12948
|
-
for (const e of
|
|
12949
|
-
|
|
12973
|
+
const Qn = /* @__PURE__ */ new Map(), df = Ce.map(([e]) => e);
|
|
12974
|
+
for (const e of df)
|
|
12975
|
+
va(Qn, Xn(e), e);
|
|
12950
12976
|
for (const [e, t] of Ce)
|
|
12951
|
-
t.customName &&
|
|
12952
|
-
function
|
|
12953
|
-
const t =
|
|
12977
|
+
t.customName && va(Qn, Xn(t.customName), e);
|
|
12978
|
+
function mf(e) {
|
|
12979
|
+
const t = Xn(e), i = Qn.get(t);
|
|
12954
12980
|
if (i && i !== null)
|
|
12955
12981
|
return i;
|
|
12956
12982
|
}
|
|
12957
|
-
async function
|
|
12958
|
-
const { startMsg: l, successMsg: p, failureMsg: s } = e, c =
|
|
12983
|
+
async function Sa(e, t, i) {
|
|
12984
|
+
const { startMsg: l, successMsg: p, failureMsg: s } = e, c = Wl();
|
|
12959
12985
|
c.start(l);
|
|
12960
12986
|
try {
|
|
12961
12987
|
await t(), c.stop(p);
|
|
@@ -12963,34 +12989,34 @@ async function ba(e, t, i) {
|
|
|
12963
12989
|
c.stop(oe("bgRed", s)), i(h, c);
|
|
12964
12990
|
}
|
|
12965
12991
|
}
|
|
12966
|
-
async function
|
|
12967
|
-
const t =
|
|
12992
|
+
async function gf(e) {
|
|
12993
|
+
const t = zn(e);
|
|
12968
12994
|
try {
|
|
12969
12995
|
Ro();
|
|
12970
|
-
const i = await
|
|
12996
|
+
const i = await jl(
|
|
12971
12997
|
{
|
|
12972
|
-
projectName: e.name ? async () => await Promise.resolve(e.name) :
|
|
12973
|
-
projectTemplate: e.template ? async () => await Promise.resolve(e.template) :
|
|
12998
|
+
projectName: e.name ? async () => await Promise.resolve(e.name) : Do,
|
|
12999
|
+
projectTemplate: e.template ? async () => await Promise.resolve(e.template) : _c
|
|
12974
13000
|
},
|
|
12975
13001
|
{
|
|
12976
13002
|
// On Cancel callback that wraps the group
|
|
12977
13003
|
// So if the user cancels one of the prompts in the group this function will be called
|
|
12978
13004
|
onCancel: () => {
|
|
12979
|
-
|
|
13005
|
+
ko("Operation cancelled."), process.exit(0);
|
|
12980
13006
|
}
|
|
12981
13007
|
}
|
|
12982
13008
|
);
|
|
12983
13009
|
if (t.name = i.projectName, process.env.NODE_ENV !== "test") {
|
|
12984
13010
|
try {
|
|
12985
|
-
throw await
|
|
13011
|
+
throw await se.stat(i.projectName), new Error(Q.folderAlreadyExists(i.projectName));
|
|
12986
13012
|
} catch (h) {
|
|
12987
13013
|
if (!(h && typeof h == "object" && "code" in h && h.code === "ENOENT"))
|
|
12988
13014
|
throw h;
|
|
12989
13015
|
}
|
|
12990
13016
|
t.shouldCleanup = !0;
|
|
12991
13017
|
}
|
|
12992
|
-
const l =
|
|
12993
|
-
if (await
|
|
13018
|
+
const l = pf($n.webGisSdk, i.projectTemplate), p = ba(i.projectTemplate, e);
|
|
13019
|
+
if (await Sa(
|
|
12994
13020
|
{
|
|
12995
13021
|
startMsg: "Downloading project template...",
|
|
12996
13022
|
successMsg: "Project template downloaded successfully",
|
|
@@ -13002,7 +13028,7 @@ async function mf(e) {
|
|
|
13002
13028
|
(h) => {
|
|
13003
13029
|
throw h;
|
|
13004
13030
|
}
|
|
13005
|
-
), i.projectTemplate ===
|
|
13031
|
+
), i.projectTemplate === qa) {
|
|
13006
13032
|
An(), console.log(
|
|
13007
13033
|
oe(
|
|
13008
13034
|
"magenta",
|
|
@@ -13013,7 +13039,7 @@ async function mf(e) {
|
|
|
13013
13039
|
Happy mapping!`));
|
|
13014
13040
|
return;
|
|
13015
13041
|
}
|
|
13016
|
-
const s = await
|
|
13042
|
+
const s = await ya(i.projectName), c = lf(s);
|
|
13017
13043
|
An(), console.log(oe("magenta", `To get started, run the following commands:
|
|
13018
13044
|
`)), console.log(oe("grey", `$ cd ${i.projectName}`)), console.log(oe("grey", "$ npm install")), console.log(oe("grey", `$ npm run ${c}`)), console.log(Cn(`
|
|
13019
13045
|
|
|
@@ -13022,30 +13048,30 @@ Happy mapping!`));
|
|
|
13022
13048
|
await t.doCleanup(i);
|
|
13023
13049
|
}
|
|
13024
13050
|
}
|
|
13025
|
-
async function
|
|
13026
|
-
const { template: t, branch: i =
|
|
13051
|
+
async function yf(e) {
|
|
13052
|
+
const { template: t, branch: i = _n } = e, l = zn(e);
|
|
13027
13053
|
try {
|
|
13028
13054
|
if (!t || t !== On)
|
|
13029
13055
|
throw new Error(Q.invalidCodeSampleTemplate);
|
|
13030
13056
|
if (!e.host)
|
|
13031
13057
|
throw new Error(Q.missingHost);
|
|
13032
13058
|
Ro();
|
|
13033
|
-
const p = e.name ?? await
|
|
13034
|
-
if (
|
|
13059
|
+
const p = e.name ?? await Do();
|
|
13060
|
+
if (Lo(p) && (ko("Operation cancelled."), process.exit(0)), l.name = p, process.env.NODE_ENV !== "test") {
|
|
13035
13061
|
try {
|
|
13036
|
-
throw await
|
|
13037
|
-
} catch (
|
|
13038
|
-
if (!(
|
|
13039
|
-
throw
|
|
13062
|
+
throw await se.stat(p), new Error(Q.folderAlreadyExists(p));
|
|
13063
|
+
} catch (S) {
|
|
13064
|
+
if (!(S && typeof S == "object" && "code" in S && S.code === "ENOENT"))
|
|
13065
|
+
throw S;
|
|
13040
13066
|
}
|
|
13041
13067
|
l.shouldCleanup = !0;
|
|
13042
13068
|
}
|
|
13043
|
-
const s =
|
|
13069
|
+
const s = Va[t], c = await ff(t, e);
|
|
13044
13070
|
let h = "";
|
|
13045
|
-
c || (h = await
|
|
13046
|
-
const o =
|
|
13047
|
-
let m = {};
|
|
13048
|
-
await
|
|
13071
|
+
c || (h = await Pc(e.host));
|
|
13072
|
+
const o = ba(t, { ...e, ssh: c, accessToken: h });
|
|
13073
|
+
let m = {}, n = "";
|
|
13074
|
+
await Sa(
|
|
13049
13075
|
{
|
|
13050
13076
|
startMsg: "Downloading project template...",
|
|
13051
13077
|
successMsg: "Project template downloaded successfully",
|
|
@@ -13053,62 +13079,77 @@ async function gf(e) {
|
|
|
13053
13079
|
},
|
|
13054
13080
|
async () => {
|
|
13055
13081
|
try {
|
|
13056
|
-
m = await sf(
|
|
13057
|
-
|
|
13058
|
-
|
|
13082
|
+
({ catalog: m, version: n } = await sf(
|
|
13083
|
+
p,
|
|
13084
|
+
o,
|
|
13085
|
+
s,
|
|
13086
|
+
i
|
|
13087
|
+
));
|
|
13088
|
+
} catch (S) {
|
|
13089
|
+
throw S;
|
|
13059
13090
|
}
|
|
13060
13091
|
},
|
|
13061
|
-
(
|
|
13062
|
-
throw
|
|
13092
|
+
(S) => {
|
|
13093
|
+
throw S;
|
|
13063
13094
|
}
|
|
13064
13095
|
);
|
|
13065
13096
|
const {
|
|
13066
|
-
name:
|
|
13067
|
-
version:
|
|
13068
|
-
"acme:scripts":
|
|
13069
|
-
...
|
|
13070
|
-
} = await
|
|
13071
|
-
"@esri/calcite-components>@arcgis/lumina":
|
|
13072
|
-
"@esri/calcite-components>@arcgis/toolkit":
|
|
13073
|
-
},
|
|
13097
|
+
name: u,
|
|
13098
|
+
version: a,
|
|
13099
|
+
"acme:scripts": r,
|
|
13100
|
+
...f
|
|
13101
|
+
} = await ya(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, w = g ? void 0 : {
|
|
13102
|
+
"@esri/calcite-components>@arcgis/lumina": y,
|
|
13103
|
+
"@esri/calcite-components>@arcgis/toolkit": y
|
|
13104
|
+
}, b = {
|
|
13074
13105
|
name: p,
|
|
13075
13106
|
version: "0.0.1",
|
|
13076
13107
|
description: "A new Lumina components project",
|
|
13077
|
-
scripts:
|
|
13078
|
-
...
|
|
13079
|
-
...v ? {
|
|
13080
|
-
...y ? { files: y } : {}
|
|
13108
|
+
scripts: r ?? {},
|
|
13109
|
+
...f,
|
|
13110
|
+
...v ? { files: v } : {}
|
|
13081
13111
|
};
|
|
13082
|
-
rf(m,
|
|
13112
|
+
rf(m, b), hf(y, b), await of(p, b), await af(p, w), An(), Nc(), console.log(oe("magenta", `To get started, run the following commands:
|
|
13083
13113
|
`)), console.log(oe("grey", `$ cd ${p}`)), console.log(oe("grey", "$ pnpm install")), console.log(oe("grey", "$ pnpm start"));
|
|
13084
13114
|
} catch (p) {
|
|
13085
13115
|
await l.doCleanup(p);
|
|
13086
13116
|
}
|
|
13087
13117
|
}
|
|
13088
|
-
const
|
|
13089
|
-
const t = new
|
|
13090
|
-
|
|
13118
|
+
const wa = (e) => {
|
|
13119
|
+
const t = new Tt();
|
|
13120
|
+
e?.exitOverride && t.exitOverride(), e?.suppressOutput && t.configureOutput({
|
|
13091
13121
|
writeOut: () => "",
|
|
13092
13122
|
writeErr: () => ""
|
|
13093
|
-
}), t.version(
|
|
13094
|
-
|
|
13123
|
+
}), t.version(Ga.version);
|
|
13124
|
+
const i = t.option("-n, --name <name>", "Name of the project").option("-t, --template <template>", "Template to use").addOption(new Nt("--host <host>", "Host to use for the source control repository").hideHelp()).addOption(new Nt("--branch <branch>", "Branch to checkout in the source control repository").hideHelp());
|
|
13125
|
+
return t.addHelpText(
|
|
13126
|
+
"after",
|
|
13127
|
+
[
|
|
13128
|
+
"",
|
|
13129
|
+
"Available templates:",
|
|
13130
|
+
"",
|
|
13131
|
+
...bo.flatMap(({ folder: l, description: p }) => [l, ` ${p}`, ""])
|
|
13132
|
+
].join(`
|
|
13133
|
+
`)
|
|
13134
|
+
), t.command("init", { isDefault: !0 }).description("Initialize a new ArcGIS project").action(async () => {
|
|
13135
|
+
let l;
|
|
13095
13136
|
try {
|
|
13096
|
-
|
|
13097
|
-
} catch (
|
|
13098
|
-
await
|
|
13137
|
+
l = cf(i.opts());
|
|
13138
|
+
} catch (p) {
|
|
13139
|
+
await zn({}).doCleanup(p);
|
|
13099
13140
|
return;
|
|
13100
13141
|
}
|
|
13101
|
-
if (
|
|
13102
|
-
await
|
|
13142
|
+
if (l.template && Wa[l.template] === kt.codeSample) {
|
|
13143
|
+
await yf(l);
|
|
13103
13144
|
return;
|
|
13104
13145
|
}
|
|
13105
|
-
await
|
|
13146
|
+
await gf(l);
|
|
13106
13147
|
}), t;
|
|
13107
13148
|
};
|
|
13108
|
-
let
|
|
13109
|
-
makeProgram:
|
|
13149
|
+
let bf = {
|
|
13150
|
+
makeProgram: wa
|
|
13110
13151
|
};
|
|
13111
|
-
process.env.NODE_ENV !== "test" && (
|
|
13152
|
+
process.env.NODE_ENV !== "test" && (bf = void 0, wa().parse());
|
|
13112
13153
|
export {
|
|
13113
|
-
|
|
13154
|
+
bf as exportsForTests
|
|
13114
13155
|
};
|