@arcgis/create 5.2.0 → 5.2.2

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.
Files changed (3) hide show
  1. package/README.md +1 -0
  2. package/dist/init.js +884 -863
  3. package/package.json +1 -1
package/dist/init.js CHANGED
@@ -1,22 +1,22 @@
1
- import { EventEmitter as Ca } from "node:events";
2
- import Yt from "node:child_process";
3
- import Se from "node:path";
1
+ import { EventEmitter as Aa } from "node:events";
2
+ import Kt from "node:child_process";
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 Aa from "node:readline";
9
- import Qn, { ReadStream as Zn } from "node:tty";
10
- import La from "node:os";
8
+ import La from "node:readline";
9
+ import Zn, { ReadStream as es } from "node:tty";
10
+ import Oa from "node:os";
11
11
  import se from "fs/promises";
12
- import Re from "path";
12
+ import Me from "path";
13
13
  import Ee from "process";
14
- import Oa from "child_process";
15
- import $a, { promisify as _a } from "util";
16
- import Na from "node:url";
17
- import Pa from "url";
18
- import Ia from "node:module";
19
- import Ta from "buffer";
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 ka {
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 xa {
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 es {
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 = Ma(t);
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
  /**
@@ -801,7 +801,7 @@ class Ra {
801
801
  function ts(e) {
802
802
  return e.split("-").reduce((t, i) => t + i[0].toUpperCase() + i.slice(1));
803
803
  }
804
- function Ma(e) {
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 Ma(e) {
823
823
  return { shortFlag: t, longFlag: i };
824
824
  }
825
825
  const yo = 3;
826
- function Da(e, t) {
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 = Da(e, c), o = Math.max(e.length, c.length);
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 It extends Ca {
863
+ class Tt extends Aa {
864
864
  /**
865
865
  * Initialize a new `Command`.
866
866
  *
@@ -939,7 +939,7 @@ class It extends Ca {
939
939
  * @return {Command} new command
940
940
  */
941
941
  createCommand(t) {
942
- return new It(t);
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 Ca {
948
948
  * @return {Help}
949
949
  */
950
950
  createHelp() {
951
- return Object.assign(new xa(), this.configureHelp());
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 Ca {
1032
1032
  * @return {Argument} new argument
1033
1033
  */
1034
1034
  createArgument(t, i) {
1035
- return new ka(t, i);
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 es(t, i);
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 es)
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
  );
@@ -1631,9 +1631,9 @@ Expecting one of '${l.join("', '")}'`);
1631
1631
  i = i.slice();
1632
1632
  const l = [".js", ".ts", ".tsx", ".mjs", ".cjs"];
1633
1633
  function p(n, u) {
1634
- const a = Se.resolve(n, u);
1634
+ const a = we.resolve(n, u);
1635
1635
  if (nt.existsSync(a)) return a;
1636
- if (l.includes(Se.extname(u))) return;
1636
+ if (l.includes(we.extname(u))) return;
1637
1637
  const r = l.find(
1638
1638
  (f) => nt.existsSync(`${a}${f}`)
1639
1639
  );
@@ -1648,17 +1648,17 @@ Expecting one of '${l.join("', '")}'`);
1648
1648
  } catch {
1649
1649
  n = this._scriptPath;
1650
1650
  }
1651
- c = Se.resolve(
1652
- Se.dirname(n),
1651
+ c = we.resolve(
1652
+ we.dirname(n),
1653
1653
  c
1654
1654
  );
1655
1655
  }
1656
1656
  if (c) {
1657
1657
  let n = p(c, s);
1658
1658
  if (!n && !t._executableFile && this._scriptPath) {
1659
- const u = Se.basename(
1659
+ const u = we.basename(
1660
1660
  this._scriptPath,
1661
- Se.extname(this._scriptPath)
1661
+ we.extname(this._scriptPath)
1662
1662
  );
1663
1663
  u !== this._name && (n = p(
1664
1664
  c,
@@ -1667,13 +1667,13 @@ Expecting one of '${l.join("', '")}'`);
1667
1667
  }
1668
1668
  s = n || s;
1669
1669
  }
1670
- const h = l.includes(Se.extname(s));
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 = Yt.spawn(q.argv[0], i, { stdio: "inherit" })) : o = Yt.spawn(s, i, { stdio: "inherit" }) : (this._checkForMissingExecutable(
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 = Yt.spawn(q.execPath, i, { stdio: "inherit" })), o.killed || ["SIGUSR1", "SIGUSR2", "SIGTERM", "SIGINT", "SIGHUP"].forEach((u) => {
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
  });
@@ -2362,7 +2362,7 @@ Expecting one of '${l.join("', '")}'`);
2362
2362
  * @return {Command}
2363
2363
  */
2364
2364
  nameFromFilename(t) {
2365
- return this._name = Se.basename(t, Se.extname(t)), this;
2365
+ return this._name = we.basename(t, we.extname(t)), this;
2366
2366
  }
2367
2367
  /**
2368
2368
  * Get or set the directory for searching for executable subcommands of this command.
@@ -2539,74 +2539,91 @@ function ss() {
2539
2539
  if (q.env.FORCE_COLOR || q.env.CLICOLOR_FORCE !== void 0)
2540
2540
  return !0;
2541
2541
  }
2542
- new It();
2543
- const Fa = "1.0.0-0", Ba = {
2544
- version: Fa
2545
- }, Ga = [
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."
2561
2565
  },
2562
2566
  {
2563
2567
  folder: "js-maps-sdk-astro",
2564
- label: "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."
2565
2570
  },
2566
2571
  {
2567
2572
  folder: "js-maps-sdk-angular",
2568
- 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."
2569
2575
  },
2570
2576
  {
2571
2577
  folder: "js-maps-sdk-node",
2572
- 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.."
2573
2580
  },
2574
2581
  {
2575
2582
  folder: "js-maps-sdk-webpack",
2576
- 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."
2577
2585
  },
2578
2586
  {
2579
2587
  folder: "ai-components-custom-agent-hil-react",
2580
- 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."
2581
2590
  },
2582
2591
  {
2583
2592
  folder: "ai-components-custom-agent-tools-react",
2584
- 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."
2585
2595
  },
2586
2596
  {
2587
2597
  folder: "ai-components-agent-utils-hil-react",
2588
- 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."
2589
2600
  },
2590
2601
  {
2591
2602
  folder: "ai-components-agent-utils-tools-react",
2592
- 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."
2593
2605
  },
2594
2606
  {
2595
- 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."
2596
2609
  },
2597
2610
  {
2598
- 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."
2599
2613
  },
2600
2614
  {
2601
- 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."
2602
2617
  },
2603
2618
  {
2604
- 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."
2605
2621
  },
2606
2622
  {
2607
- 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."
2608
2625
  }
2609
- ], On = "lumina-components", qa = "js-maps-sdk-cdn", Tt = {
2626
+ ], On = "lumina-components", qa = "js-maps-sdk-cdn", $n = {
2610
2627
  webGisSdk: "web-gis-sdk"
2611
2628
  }, kt = {
2612
2629
  codeSample: "CODE_SAMPLE",
@@ -2617,7 +2634,7 @@ function ja(e, t) {
2617
2634
  return {
2618
2635
  handlerType: kt.appSample,
2619
2636
  repo: "Esri/jsapi-resources",
2620
- domain: Tt.webGisSdk,
2637
+ domain: $n.webGisSdk,
2621
2638
  templatePath: i,
2622
2639
  filesPath: i,
2623
2640
  ...t ? { customName: t } : {}
@@ -2625,7 +2642,7 @@ function ja(e, t) {
2625
2642
  }
2626
2643
  function Ua() {
2627
2644
  const e = {};
2628
- for (const t of Ga) {
2645
+ for (const t of bo) {
2629
2646
  const { folder: i } = t, l = i;
2630
2647
  if (e[l])
2631
2648
  throw new Error(`Template registry collision detected for "${l}".`);
@@ -2638,23 +2655,23 @@ function Ua() {
2638
2655
  excludedFromPrompts: !0
2639
2656
  }, e;
2640
2657
  }
2641
- const Ha = Ua(), Ce = Object.entries(Ha), bo = {
2642
- [Tt.webGisSdk]: {}
2658
+ const Ha = Ua(), Ce = Object.entries(Ha), vo = {
2659
+ [$n.webGisSdk]: {}
2643
2660
  };
2644
2661
  for (const [e, t] of Ce)
2645
- t.handlerType === kt.appSample && (bo[t.domain][e] = t.templatePath);
2646
- const vo = "github.com", $n = "main", _n = Object.fromEntries(
2662
+ t.handlerType === kt.appSample && (vo[t.domain][e] = t.templatePath);
2663
+ const So = "github.com", _n = "main", Nn = Object.fromEntries(
2647
2664
  Ce.map(([e, t]) => [e, t.repo])
2648
2665
  ), Va = Object.fromEntries(
2649
2666
  Ce.map(([e, t]) => [e, t.filesPath])
2650
2667
  ), Wa = Object.fromEntries(
2651
2668
  Ce.map(([e, t]) => [e, t.handlerType])
2652
- ), Ya = Object.fromEntries(
2653
- Ce.filter(([, e]) => !!e.excludedFromPrompts).map(([e]) => [e, !0])
2654
2669
  ), Ka = Object.fromEntries(
2670
+ Ce.filter(([, e]) => !!e.excludedFromPrompts).map(([e]) => [e, !0])
2671
+ ), Ya = Object.fromEntries(
2655
2672
  Ce.map(([e, t]) => [e, t.customName ?? e])
2656
2673
  );
2657
- function Nn(e) {
2674
+ function Pn(e) {
2658
2675
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2659
2676
  }
2660
2677
  var rt = { exports: {} }, rs;
@@ -2720,10 +2737,10 @@ function Ja() {
2720
2737
  return rt.exports = c(), rt.exports.createColors = c, rt.exports;
2721
2738
  }
2722
2739
  var za = /* @__PURE__ */ Ja();
2723
- const x = /* @__PURE__ */ Nn(za);
2724
- var Kt, os;
2740
+ const x = /* @__PURE__ */ Pn(za);
2741
+ var Yt, os;
2725
2742
  function Xa() {
2726
- if (os) return Kt;
2743
+ if (os) return Yt;
2727
2744
  os = 1;
2728
2745
  const e = "\x1B", t = `${e}[`, i = "\x07", l = {
2729
2746
  to(c, h) {
@@ -2761,7 +2778,7 @@ function Xa() {
2761
2778
  return c && (h += l.left), h;
2762
2779
  }
2763
2780
  };
2764
- return Kt = { cursor: l, scroll: p, erase: s, beep: i }, Kt;
2781
+ return Yt = { cursor: l, scroll: p, erase: s, beep: i }, Yt;
2765
2782
  }
2766
2783
  var ne = Xa();
2767
2784
  function $t(e, t, i) {
@@ -2771,66 +2788,66 @@ function $t(e, t, i) {
2771
2788
  }
2772
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 = {}) => {
2773
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;
2774
- let f = 0, d = 0, g = e.length, y = 0, v = !1, S = g, b = Math.max(0, l - s), w = 0, L = 0, O = 0, $ = 0;
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;
2775
2792
  e: for (; ; ) {
2776
- if (L > w || d >= g && d > f) {
2777
- const _ = e.slice(w, L) || e.slice(f, d);
2793
+ if (L > S || d >= g && d > f) {
2794
+ const _ = e.slice(S, L) || e.slice(f, d);
2778
2795
  y = 0;
2779
2796
  for (const P of _.replaceAll(tl, "")) {
2780
2797
  const I = P.codePointAt(0) || 0;
2781
- if (Za(I) ? $ = u : el(I) ? $ = r : m !== a && Qa(I) ? $ = m : $ = a, O + $ > b && (S = Math.min(S, Math.max(w, f) + y)), O + $ > l) {
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) {
2782
2799
  v = !0;
2783
2800
  break e;
2784
2801
  }
2785
2802
  y += P.length, O += $;
2786
2803
  }
2787
- w = L = 0;
2804
+ S = L = 0;
2788
2805
  }
2789
2806
  if (d >= g) break;
2790
2807
  if (lt.lastIndex = d, lt.test(e)) {
2791
- if (y = lt.lastIndex - d, $ = y * a, O + $ > b && (S = Math.min(S, d + Math.floor((b - O) / a))), O + $ > l) {
2808
+ if (y = lt.lastIndex - d, $ = y * a, O + $ > b && (w = Math.min(w, d + Math.floor((b - O) / a))), O + $ > l) {
2792
2809
  v = !0;
2793
2810
  break;
2794
2811
  }
2795
- O += $, w = f, L = d, d = f = lt.lastIndex;
2812
+ O += $, S = f, L = d, d = f = lt.lastIndex;
2796
2813
  continue;
2797
2814
  }
2798
2815
  if (Jt.lastIndex = d, Jt.test(e)) {
2799
- if (O + c > b && (S = Math.min(S, d)), O + c > l) {
2816
+ if (O + c > b && (w = Math.min(w, d)), O + c > l) {
2800
2817
  v = !0;
2801
2818
  break;
2802
2819
  }
2803
- O += c, w = f, L = d, d = f = Jt.lastIndex;
2820
+ O += c, S = f, L = d, d = f = Jt.lastIndex;
2804
2821
  continue;
2805
2822
  }
2806
2823
  if (ot.lastIndex = d, ot.test(e)) {
2807
- if (y = ot.lastIndex - d, $ = y * h, O + $ > b && (S = Math.min(S, d + Math.floor((b - O) / h))), O + $ > l) {
2824
+ if (y = ot.lastIndex - d, $ = y * h, O + $ > b && (w = Math.min(w, d + Math.floor((b - O) / h))), O + $ > l) {
2808
2825
  v = !0;
2809
2826
  break;
2810
2827
  }
2811
- O += $, w = f, L = d, d = f = ot.lastIndex;
2828
+ O += $, S = f, L = d, d = f = ot.lastIndex;
2812
2829
  continue;
2813
2830
  }
2814
2831
  if (at.lastIndex = d, at.test(e)) {
2815
- if (y = at.lastIndex - d, $ = y * o, O + $ > b && (S = Math.min(S, d + Math.floor((b - O) / o))), O + $ > l) {
2832
+ if (y = at.lastIndex - d, $ = y * o, O + $ > b && (w = Math.min(w, d + Math.floor((b - O) / o))), O + $ > l) {
2816
2833
  v = !0;
2817
2834
  break;
2818
2835
  }
2819
- O += $, w = f, L = d, d = f = at.lastIndex;
2836
+ O += $, S = f, L = d, d = f = at.lastIndex;
2820
2837
  continue;
2821
2838
  }
2822
2839
  if (zt.lastIndex = d, zt.test(e)) {
2823
- if (O + n > b && (S = Math.min(S, d)), O + n > l) {
2840
+ if (O + n > b && (w = Math.min(w, d)), O + n > l) {
2824
2841
  v = !0;
2825
2842
  break;
2826
2843
  }
2827
- O += n, w = f, L = d, d = f = zt.lastIndex;
2844
+ O += n, S = f, L = d, d = f = zt.lastIndex;
2828
2845
  continue;
2829
2846
  }
2830
2847
  d += 1;
2831
2848
  }
2832
- return { width: v ? b : O, index: v ? S : g, truncated: v, ellipsed: v && l >= s };
2833
- }, nl = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 }, Je = (e, t = {}) => wo(e, nl, t).width, xt = "\x1B", So = "›", sl = 39, Pn = "\x07", Eo = "[", rl = "]", Co = "m", In = `${rl}8;;`, as = new RegExp(`(?:\\${Eo}(?<code>\\d+)m|\\${In}(?<uri>.*)${Pn})`, "y"), ol = (e) => {
2849
+ return { width: v ? b : O, index: v ? w : g, truncated: v, ellipsed: v && l >= s };
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) => {
2834
2851
  if (e >= 30 && e <= 37 || e >= 90 && e <= 97) return 39;
2835
2852
  if (e >= 40 && e <= 47 || e >= 100 && e <= 107) return 49;
2836
2853
  if (e === 1 || e === 2) return 22;
@@ -2840,12 +2857,12 @@ const Qa = (e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170
2840
2857
  if (e === 8) return 28;
2841
2858
  if (e === 9) return 29;
2842
2859
  if (e === 0) return 0;
2843
- }, ls = (e) => `${xt}${Eo}${e}${Co}`, cs = (e) => `${xt}${In}${e}${Pn}`, al = (e) => e.map((t) => Je(t)), Xt = (e, t, i) => {
2860
+ }, ls = (e) => `${xt}${Co}${e}${Ao}`, cs = (e) => `${xt}${Tn}${e}${In}`, al = (e) => e.map((t) => Je(t)), Xt = (e, t, i) => {
2844
2861
  const l = t[Symbol.iterator]();
2845
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;
2846
2863
  for (; !o.done; ) {
2847
2864
  const u = o.value, a = Je(u);
2848
- h + a <= i ? e[e.length - 1] += u : (e.push(u), h = 0), (u === xt || u === So) && (p = !0, s = t.startsWith(In, n + 1)), p ? s ? u === Pn && (p = !1, s = !1) : u === Co && (p = !1) : (h += a, h === i && !m.done && (e.push(""), h = 0)), o = m, m = l.next(), n += u.length;
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;
2849
2866
  }
2850
2867
  c = e.at(-1), !h && c !== void 0 && c.length > 0 && e.length > 1 && (e[e.length - 2] += e.pop());
2851
2868
  }, ll = (e) => {
@@ -2885,7 +2902,7 @@ const Qa = (e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170
2885
2902
  let u = n.next(), a = n.next(), r = 0;
2886
2903
  for (; !u.done; ) {
2887
2904
  const f = u.value, d = a.value;
2888
- if (l += f, f === xt || f === So) {
2905
+ if (l += f, f === xt || f === Eo) {
2889
2906
  as.lastIndex = r + 1;
2890
2907
  const y = as.exec(m)?.groups;
2891
2908
  if (y?.code !== void 0) {
@@ -2908,9 +2925,9 @@ function gn(e, t, i) {
2908
2925
  `);
2909
2926
  }
2910
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 };
2911
- function Tn(e, t) {
2928
+ function kn(e, t) {
2912
2929
  if (typeof e == "string") return ye.aliases.get(e) === t;
2913
- for (const i of e) if (i !== void 0 && Tn(i, t)) return !0;
2930
+ for (const i of e) if (i !== void 0 && kn(i, t)) return !0;
2914
2931
  return !1;
2915
2932
  }
2916
2933
  function fl(e, t) {
@@ -2922,7 +2939,7 @@ function fl(e, t) {
2922
2939
  return { lines: s, numLinesBefore: i.length, numLinesAfter: l.length, numLines: p };
2923
2940
  }
2924
2941
  const hl = globalThis.process.platform.startsWith("win"), yn = /* @__PURE__ */ Symbol("clack:cancel");
2925
- function Ao(e) {
2942
+ function Lo(e) {
2926
2943
  return e === yn;
2927
2944
  }
2928
2945
  function ct(e, t) {
@@ -2931,10 +2948,10 @@ function ct(e, t) {
2931
2948
  }
2932
2949
  function pl({ input: e = ho, output: t = Ln, overwrite: i = !0, hideCursor: l = !0 } = {}) {
2933
2950
  const p = st.createInterface({ input: e, output: t, prompt: "", tabSize: 1 });
2934
- st.emitKeypressEvents(e, p), e instanceof Zn && e.isTTY && e.setRawMode(!0);
2951
+ st.emitKeypressEvents(e, p), e instanceof es && e.isTTY && e.setRawMode(!0);
2935
2952
  const s = (c, { name: h, sequence: o }) => {
2936
2953
  const m = String(c);
2937
- if (Tn([m, h, o], "cancel")) {
2954
+ if (kn([m, h, o], "cancel")) {
2938
2955
  l && t.write(ne.cursor.show), process.exit(0);
2939
2956
  return;
2940
2957
  }
@@ -2947,17 +2964,17 @@ function pl({ input: e = ho, output: t = Ln, overwrite: i = !0, hideCursor: l =
2947
2964
  });
2948
2965
  };
2949
2966
  return l && t.write(ne.cursor.hide), e.once("keypress", s), () => {
2950
- e.off("keypress", s), l && t.write(ne.cursor.show), e instanceof Zn && e.isTTY && !hl && e.setRawMode(!1), p.terminal = !1, p.close();
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();
2951
2968
  };
2952
2969
  }
2953
- const kn = (e) => "columns" in e && typeof e.columns == "number" ? e.columns : 80, Lo = (e) => "rows" in e && typeof e.rows == "number" ? e.rows : 20;
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;
2954
2971
  function Qt(e, t, i, l = i) {
2955
- const p = kn(e ?? Ln);
2972
+ const p = xn(e ?? Ln);
2956
2973
  return gn(t, p - i.length, { hard: !0, trim: !1 }).split(`
2957
2974
  `).map((s, c) => `${c === 0 ? l : i}${s}`).join(`
2958
2975
  `);
2959
2976
  }
2960
- let xn = class {
2977
+ let Mn = class {
2961
2978
  input;
2962
2979
  output;
2963
2980
  _abortSignal;
@@ -3002,7 +3019,7 @@ let xn = class {
3002
3019
  this.state = "cancel", this.close();
3003
3020
  }, { once: !0 });
3004
3021
  }
3005
- this.rl = Aa.createInterface({ input: this.input, tabSize: 2, prompt: "", escapeCodeTimeout: 50, terminal: !0 }), this.rl.prompt(), this.opts.initialUserInput !== void 0 && this._setUserInput(this.opts.initialUserInput, !0), this.input.on("keypress", this.onKeypress), ct(this.input, !0), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
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", () => {
3006
3023
  this.output.write(ne.cursor.show), this.output.off("resize", this.render), ct(this.input, !1), t(this.value);
3007
3024
  }), this.once("cancel", () => {
3008
3025
  this.output.write(ne.cursor.show), this.output.off("resize", this.render), ct(this.input, !1), t(yn);
@@ -3029,7 +3046,7 @@ let xn = class {
3029
3046
  }
3030
3047
  this.state !== "error" && (this.state = "submit");
3031
3048
  }
3032
- Tn([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();
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();
3033
3050
  }
3034
3051
  close() {
3035
3052
  this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
@@ -3045,7 +3062,7 @@ let xn = class {
3045
3062
  if (t !== this._prevFrame) {
3046
3063
  if (this.state === "initial") this.output.write(ne.cursor.hide);
3047
3064
  else {
3048
- const i = fl(this._prevFrame, t), l = Lo(this.output);
3065
+ const i = fl(this._prevFrame, t), l = Oo(this.output);
3049
3066
  if (this.restoreCursor(), i) {
3050
3067
  const p = Math.max(0, i.numLinesAfter - l), s = Math.max(0, i.numLinesBefore - l);
3051
3068
  let c = i.lines.find((h) => h >= p);
@@ -3078,7 +3095,7 @@ let xn = class {
3078
3095
  this.output.write(t), this.state === "initial" && (this.state = "active"), this._prevFrame = t;
3079
3096
  }
3080
3097
  }
3081
- }, dl = class extends xn {
3098
+ }, dl = class extends Mn {
3082
3099
  _mask = "•";
3083
3100
  get cursor() {
3084
3101
  return this._cursor;
@@ -3102,7 +3119,7 @@ let xn = class {
3102
3119
  });
3103
3120
  }
3104
3121
  };
3105
- class ml extends xn {
3122
+ class ml extends Mn {
3106
3123
  options;
3107
3124
  cursor = 0;
3108
3125
  get _selectedValue() {
@@ -3129,7 +3146,7 @@ class ml extends xn {
3129
3146
  });
3130
3147
  }
3131
3148
  }
3132
- let gl = class extends xn {
3149
+ let gl = class extends Mn {
3133
3150
  get userInputWithCursor() {
3134
3151
  if (this.state === "submit") return this.userInput;
3135
3152
  const t = this.userInput;
@@ -3151,15 +3168,15 @@ let gl = class extends xn {
3151
3168
  function yl() {
3152
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";
3153
3170
  }
3154
- const bn = yl(), bl = () => process.env.CI === "true", fe = (e, t) => bn ? e : t, vl = fe("◆", "*"), Oo = fe("■", "x"), $o = fe("▲", "x"), Rn = fe("◇", "o"), wl = fe("┌", "T"), J = fe("│", "|"), Le = fe("└", "—"), Sl = fe("●", ">"), us = fe("○", " "), El = fe("▪", "•"), Cl = fe("●", "•"), Al = fe("◆", "*"), Ll = fe("▲", "!"), Ol = fe("■", "x"), Mn = (e) => {
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) => {
3155
3172
  switch (e) {
3156
3173
  case "initial":
3157
3174
  case "active":
3158
3175
  return x.cyan(vl);
3159
3176
  case "cancel":
3160
- return x.red(Oo);
3177
+ return x.red($o);
3161
3178
  case "error":
3162
- return x.yellow($o);
3179
+ return x.yellow(_o);
3163
3180
  case "submit":
3164
3181
  return x.green(Rn);
3165
3182
  }
@@ -3175,68 +3192,68 @@ const bn = yl(), bl = () => process.env.CI === "true", fe = (e, t) => bn ? e : t
3175
3192
  case "submit":
3176
3193
  return x.green(J);
3177
3194
  }
3178
- }, _l = (e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170 || e === 173 || e === 174 || e >= 176 && e <= 180 || e >= 182 && e <= 186 || e >= 188 && e <= 191 || e === 198 || e === 208 || e === 215 || e === 216 || e >= 222 && e <= 225 || e === 230 || e >= 232 && e <= 234 || e === 236 || e === 237 || e === 240 || e === 242 || e === 243 || e >= 247 && e <= 250 || e === 252 || e === 254 || e === 257 || e === 273 || e === 275 || e === 283 || e === 294 || e === 295 || e === 299 || e >= 305 && e <= 307 || e === 312 || e >= 319 && e <= 322 || e === 324 || e >= 328 && e <= 331 || e === 333 || e === 338 || e === 339 || e === 358 || e === 359 || e === 363 || e === 462 || e === 464 || e === 466 || e === 468 || e === 470 || e === 472 || e === 474 || e === 476 || e === 593 || e === 609 || e === 708 || e === 711 || e >= 713 && e <= 715 || e === 717 || e === 720 || e >= 728 && e <= 731 || e === 733 || e === 735 || e >= 768 && e <= 879 || e >= 913 && e <= 929 || e >= 931 && e <= 937 || e >= 945 && e <= 961 || e >= 963 && e <= 969 || e === 1025 || e >= 1040 && e <= 1103 || e === 1105 || e === 8208 || e >= 8211 && e <= 8214 || e === 8216 || e === 8217 || e === 8220 || e === 8221 || e >= 8224 && e <= 8226 || e >= 8228 && e <= 8231 || e === 8240 || e === 8242 || e === 8243 || e === 8245 || e === 8251 || e === 8254 || e === 8308 || e === 8319 || e >= 8321 && e <= 8324 || e === 8364 || e === 8451 || e === 8453 || e === 8457 || e === 8467 || e === 8470 || e === 8481 || e === 8482 || e === 8486 || e === 8491 || e === 8531 || e === 8532 || e >= 8539 && e <= 8542 || e >= 8544 && e <= 8555 || e >= 8560 && e <= 8569 || e === 8585 || e >= 8592 && e <= 8601 || e === 8632 || e === 8633 || e === 8658 || e === 8660 || e === 8679 || e === 8704 || e === 8706 || e === 8707 || e === 8711 || e === 8712 || e === 8715 || e === 8719 || e === 8721 || e === 8725 || e === 8730 || e >= 8733 && e <= 8736 || e === 8739 || e === 8741 || e >= 8743 && e <= 8748 || e === 8750 || e >= 8756 && e <= 8759 || e === 8764 || e === 8765 || e === 8776 || e === 8780 || e === 8786 || e === 8800 || e === 8801 || e >= 8804 && e <= 8807 || e === 8810 || e === 8811 || e === 8814 || e === 8815 || e === 8834 || e === 8835 || e === 8838 || e === 8839 || e === 8853 || e === 8857 || e === 8869 || e === 8895 || e === 8978 || e >= 9312 && e <= 9449 || e >= 9451 && e <= 9547 || e >= 9552 && e <= 9587 || e >= 9600 && e <= 9615 || e >= 9618 && e <= 9621 || e === 9632 || e === 9633 || e >= 9635 && e <= 9641 || e === 9650 || e === 9651 || e === 9654 || e === 9655 || e === 9660 || e === 9661 || e === 9664 || e === 9665 || e >= 9670 && e <= 9672 || e === 9675 || e >= 9678 && e <= 9681 || e >= 9698 && e <= 9701 || e === 9711 || e === 9733 || e === 9734 || e === 9737 || e === 9742 || e === 9743 || e === 9756 || e === 9758 || e === 9792 || e === 9794 || e === 9824 || e === 9825 || e >= 9827 && e <= 9829 || e >= 9831 && e <= 9834 || e === 9836 || e === 9837 || e === 9839 || e === 9886 || e === 9887 || e === 9919 || e >= 9926 && e <= 9933 || e >= 9935 && e <= 9939 || e >= 9941 && e <= 9953 || e === 9955 || e === 9960 || e === 9961 || e >= 9963 && e <= 9969 || e === 9972 || e >= 9974 && e <= 9977 || e === 9979 || e === 9980 || e === 9982 || e === 9983 || e === 10045 || e >= 10102 && e <= 10111 || e >= 11094 && e <= 11097 || e >= 12872 && e <= 12879 || e >= 57344 && e <= 63743 || e >= 65024 && e <= 65039 || e === 65533 || e >= 127232 && e <= 127242 || e >= 127248 && e <= 127277 || e >= 127280 && e <= 127337 || e >= 127344 && e <= 127373 || e === 127375 || e === 127376 || e >= 127387 && e <= 127404 || e >= 917760 && e <= 917999 || e >= 983040 && e <= 1048573 || e >= 1048576 && e <= 1114109, Nl = (e) => e === 12288 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510, Pl = (e) => e >= 4352 && e <= 4447 || e === 8986 || e === 8987 || e === 9001 || e === 9002 || e >= 9193 && e <= 9196 || e === 9200 || e === 9203 || e === 9725 || e === 9726 || e === 9748 || e === 9749 || e >= 9800 && e <= 9811 || e === 9855 || e === 9875 || e === 9889 || e === 9898 || e === 9899 || e === 9917 || e === 9918 || e === 9924 || e === 9925 || e === 9934 || e === 9940 || e === 9962 || e === 9970 || e === 9971 || e === 9973 || e === 9978 || e === 9981 || e === 9989 || e === 9994 || e === 9995 || e === 10024 || e === 10060 || e === 10062 || e >= 10067 && e <= 10069 || e === 10071 || e >= 10133 && e <= 10135 || e === 10160 || e === 10175 || e === 11035 || e === 11036 || e === 11088 || e === 11093 || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12287 || e >= 12289 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12591 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12771 || e >= 12783 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 19903 || e >= 19968 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 94176 && e <= 94180 || e === 94192 || e === 94193 || e >= 94208 && e <= 100343 || e >= 100352 && e <= 101589 || e >= 101632 && e <= 101640 || e >= 110576 && e <= 110579 || e >= 110581 && e <= 110587 || e === 110589 || e === 110590 || e >= 110592 && e <= 110882 || e === 110898 || e >= 110928 && e <= 110930 || e === 110933 || e >= 110948 && e <= 110951 || e >= 110960 && e <= 111355 || e === 126980 || e === 127183 || e === 127374 || e >= 127377 && e <= 127386 || e >= 127488 && e <= 127490 || e >= 127504 && e <= 127547 || e >= 127552 && e <= 127560 || e === 127568 || e === 127569 || e >= 127584 && e <= 127589 || e >= 127744 && e <= 127776 || e >= 127789 && e <= 127797 || e >= 127799 && e <= 127868 || e >= 127870 && e <= 127891 || e >= 127904 && e <= 127946 || e >= 127951 && e <= 127955 || e >= 127968 && e <= 127984 || e === 127988 || e >= 127992 && e <= 128062 || e === 128064 || e >= 128066 && e <= 128252 || e >= 128255 && e <= 128317 || e >= 128331 && e <= 128334 || e >= 128336 && e <= 128359 || e === 128378 || e === 128405 || e === 128406 || e === 128420 || e >= 128507 && e <= 128591 || e >= 128640 && e <= 128709 || e === 128716 || e >= 128720 && e <= 128722 || e >= 128725 && e <= 128727 || e >= 128732 && e <= 128735 || e === 128747 || e === 128748 || e >= 128756 && e <= 128764 || e >= 128992 && e <= 129003 || e === 129008 || e >= 129292 && e <= 129338 || e >= 129340 && e <= 129349 || e >= 129351 && e <= 129535 || e >= 129648 && e <= 129660 || e >= 129664 && e <= 129672 || e >= 129680 && e <= 129725 || e >= 129727 && e <= 129733 || e >= 129742 && e <= 129755 || e >= 129760 && e <= 129768 || e >= 129776 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141, Zt = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y, ut = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y, ft = /\t{1,1000}/y, ei = new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*", "yu"), ht = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y, Il = new RegExp("\\p{M}+", "gu"), Tl = { limit: 1 / 0, ellipsis: "" }, _o = (e, t = {}, i = {}) => {
3179
- const l = t.limit ?? 1 / 0, p = t.ellipsis ?? "", s = t?.ellipsisWidth ?? (p ? _o(p, Tl, i).width : 0), c = i.ansiWidth ?? 0, h = i.controlWidth ?? 0, o = i.tabWidth ?? 8, m = i.ambiguousWidth ?? 1, n = i.emojiWidth ?? 2, u = i.fullWidthWidth ?? 2, a = i.regularWidth ?? 1, r = i.wideWidth ?? 2;
3180
- let f = 0, d = 0, g = e.length, y = 0, v = !1, S = g, b = Math.max(0, l - s), w = 0, L = 0, O = 0, $ = 0;
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;
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;
3181
3198
  e: for (; ; ) {
3182
- if (L > w || d >= g && d > f) {
3183
- const _ = e.slice(w, L) || e.slice(f, d);
3199
+ if (L > S || d >= g && d > f) {
3200
+ const _ = e.slice(S, L) || e.slice(f, d);
3184
3201
  y = 0;
3185
3202
  for (const P of _.replaceAll(Il, "")) {
3186
3203
  const I = P.codePointAt(0) || 0;
3187
- if (Nl(I) ? $ = u : Pl(I) ? $ = r : m !== a && _l(I) ? $ = m : $ = a, O + $ > b && (S = Math.min(S, Math.max(w, f) + y)), O + $ > l) {
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) {
3188
3205
  v = !0;
3189
3206
  break e;
3190
3207
  }
3191
3208
  y += P.length, O += $;
3192
3209
  }
3193
- w = L = 0;
3210
+ S = L = 0;
3194
3211
  }
3195
3212
  if (d >= g) break;
3196
3213
  if (ht.lastIndex = d, ht.test(e)) {
3197
- if (y = ht.lastIndex - d, $ = y * a, O + $ > b && (S = Math.min(S, d + Math.floor((b - O) / a))), O + $ > l) {
3214
+ if (y = ht.lastIndex - d, $ = y * a, O + $ > b && (w = Math.min(w, d + Math.floor((b - O) / a))), O + $ > l) {
3198
3215
  v = !0;
3199
3216
  break;
3200
3217
  }
3201
- O += $, w = f, L = d, d = f = ht.lastIndex;
3218
+ O += $, S = f, L = d, d = f = ht.lastIndex;
3202
3219
  continue;
3203
3220
  }
3204
3221
  if (Zt.lastIndex = d, Zt.test(e)) {
3205
- if (O + c > b && (S = Math.min(S, d)), O + c > l) {
3222
+ if (O + c > b && (w = Math.min(w, d)), O + c > l) {
3206
3223
  v = !0;
3207
3224
  break;
3208
3225
  }
3209
- O += c, w = f, L = d, d = f = Zt.lastIndex;
3226
+ O += c, S = f, L = d, d = f = Zt.lastIndex;
3210
3227
  continue;
3211
3228
  }
3212
3229
  if (ut.lastIndex = d, ut.test(e)) {
3213
- if (y = ut.lastIndex - d, $ = y * h, O + $ > b && (S = Math.min(S, d + Math.floor((b - O) / h))), O + $ > l) {
3230
+ if (y = ut.lastIndex - d, $ = y * h, O + $ > b && (w = Math.min(w, d + Math.floor((b - O) / h))), O + $ > l) {
3214
3231
  v = !0;
3215
3232
  break;
3216
3233
  }
3217
- O += $, w = f, L = d, d = f = ut.lastIndex;
3234
+ O += $, S = f, L = d, d = f = ut.lastIndex;
3218
3235
  continue;
3219
3236
  }
3220
3237
  if (ft.lastIndex = d, ft.test(e)) {
3221
- if (y = ft.lastIndex - d, $ = y * o, O + $ > b && (S = Math.min(S, d + Math.floor((b - O) / o))), O + $ > l) {
3238
+ if (y = ft.lastIndex - d, $ = y * o, O + $ > b && (w = Math.min(w, d + Math.floor((b - O) / o))), O + $ > l) {
3222
3239
  v = !0;
3223
3240
  break;
3224
3241
  }
3225
- O += $, w = f, L = d, d = f = ft.lastIndex;
3242
+ O += $, S = f, L = d, d = f = ft.lastIndex;
3226
3243
  continue;
3227
3244
  }
3228
3245
  if (ei.lastIndex = d, ei.test(e)) {
3229
- if (O + n > b && (S = Math.min(S, d)), O + n > l) {
3246
+ if (O + n > b && (w = Math.min(w, d)), O + n > l) {
3230
3247
  v = !0;
3231
3248
  break;
3232
3249
  }
3233
- O += n, w = f, L = d, d = f = ei.lastIndex;
3250
+ O += n, S = f, L = d, d = f = ei.lastIndex;
3234
3251
  continue;
3235
3252
  }
3236
3253
  d += 1;
3237
3254
  }
3238
- return { width: v ? b : O, index: v ? S : g, truncated: v, ellipsed: v && l >= s };
3239
- }, kl = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 }, ze = (e, t = {}) => _o(e, kl, t).width, Rt = "\x1B", No = "›", xl = 39, Dn = "\x07", Po = "[", Rl = "]", Io = "m", Fn = `${Rl}8;;`, fs = new RegExp(`(?:\\${Po}(?<code>\\d+)m|\\${Fn}(?<uri>.*)${Dn})`, "y"), Ml = (e) => {
3255
+ return { width: v ? b : O, index: v ? w : g, truncated: v, ellipsed: v && l >= s };
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) => {
3240
3257
  if (e >= 30 && e <= 37 || e >= 90 && e <= 97) return 39;
3241
3258
  if (e >= 40 && e <= 47 || e >= 100 && e <= 107) return 49;
3242
3259
  if (e === 1 || e === 2) return 22;
@@ -3246,12 +3263,12 @@ const bn = yl(), bl = () => process.env.CI === "true", fe = (e, t) => bn ? e : t
3246
3263
  if (e === 8) return 28;
3247
3264
  if (e === 9) return 29;
3248
3265
  if (e === 0) return 0;
3249
- }, hs = (e) => `${Rt}${Po}${e}${Io}`, ps = (e) => `${Rt}${Fn}${e}${Dn}`, Dl = (e) => e.map((t) => ze(t)), ti = (e, t, i) => {
3266
+ }, hs = (e) => `${Mt}${Io}${e}${To}`, ps = (e) => `${Mt}${Bn}${e}${Fn}`, Dl = (e) => e.map((t) => ze(t)), ti = (e, t, i) => {
3250
3267
  const l = t[Symbol.iterator]();
3251
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;
3252
3269
  for (; !o.done; ) {
3253
3270
  const u = o.value, a = ze(u);
3254
- h + a <= i ? e[e.length - 1] += u : (e.push(u), h = 0), (u === Rt || u === No) && (p = !0, s = t.startsWith(Fn, n + 1)), p ? s ? u === Dn && (p = !1, s = !1) : u === Io && (p = !1) : (h += a, h === i && !m.done && (e.push(""), h = 0)), o = m, m = l.next(), n += u.length;
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;
3255
3272
  }
3256
3273
  c = e.at(-1), !h && c !== void 0 && c.length > 0 && e.length > 1 && (e[e.length - 2] += e.pop());
3257
3274
  }, Fl = (e) => {
@@ -3291,7 +3308,7 @@ const bn = yl(), bl = () => process.env.CI === "true", fe = (e, t) => bn ? e : t
3291
3308
  let u = n.next(), a = n.next(), r = 0;
3292
3309
  for (; !u.done; ) {
3293
3310
  const f = u.value, d = a.value;
3294
- if (l += f, f === Rt || f === No) {
3311
+ if (l += f, f === Mt || f === Po) {
3295
3312
  fs.lastIndex = r + 1;
3296
3313
  const y = fs.exec(m)?.groups;
3297
3314
  if (y?.code !== void 0) {
@@ -3299,7 +3316,7 @@ const bn = yl(), bl = () => process.env.CI === "true", fe = (e, t) => bn ? e : t
3299
3316
  p = v === xl ? void 0 : v;
3300
3317
  } else y?.uri !== void 0 && (s = y.uri.length === 0 ? void 0 : y.uri);
3301
3318
  }
3302
- const g = p ? Ml(p) : void 0;
3319
+ const g = p ? Rl(p) : void 0;
3303
3320
  d === `
3304
3321
  ` ? (s && (l += ps("")), p && g && (l += hs(g))) : f === `
3305
3322
  ` && (p && g && (l += hs(p)), s && (l += ps(s))), r += f.length, u = a, a = n.next();
@@ -3321,21 +3338,21 @@ const Gl = (e, t, i, l, p) => {
3321
3338
  }
3322
3339
  return { lineCount: s, removals: c };
3323
3340
  }, ql = (e) => {
3324
- const { cursor: t, options: i, style: l } = e, p = e.output ?? process.stdout, s = kn(p), c = e.columnPadding ?? 0, h = e.rowPadding ?? 4, o = s - c, m = Lo(p), n = x.dim("..."), u = e.maxItems ?? Number.POSITIVE_INFINITY, a = Math.max(m - h, 0), r = Math.max(Math.min(u, a), 5);
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);
3325
3342
  let f = 0;
3326
3343
  t >= r - 3 && (f = Math.max(Math.min(t - r + 3, i.length - r), 0));
3327
3344
  let d = r < i.length && f > 0, g = r < i.length && f + r < i.length;
3328
3345
  const y = Math.min(f + r, i.length), v = [];
3329
- let S = 0;
3330
- d && S++, g && S++;
3331
- const b = f + (d ? 1 : 0), w = y - (g ? 1 : 0);
3332
- for (let O = b; O < w; O++) {
3346
+ let w = 0;
3347
+ d && w++, g && w++;
3348
+ const b = f + (d ? 1 : 0), S = y - (g ? 1 : 0);
3349
+ for (let O = b; O < S; O++) {
3333
3350
  const $ = vn(l(i[O], O === t), o, { hard: !0, trim: !1 }).split(`
3334
3351
  `);
3335
- v.push($), S += $.length;
3352
+ v.push($), w += $.length;
3336
3353
  }
3337
- if (S > a) {
3338
- let O = 0, $ = 0, _ = S;
3354
+ if (w > a) {
3355
+ let O = 0, $ = 0, _ = w;
3339
3356
  const P = t - b, I = (B, F) => Gl(v, _, B, F, a);
3340
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 - $, $));
3341
3358
  }
@@ -3349,7 +3366,7 @@ const Gl = (e, t, i, l, p) => {
3349
3366
  const s = e[p], c = await s({ results: i })?.catch((h) => {
3350
3367
  throw h;
3351
3368
  });
3352
- if (typeof t?.onCancel == "function" && Ao(c)) {
3369
+ if (typeof t?.onCancel == "function" && Lo(c)) {
3353
3370
  i[p] = "canceled", t.onCancel({ results: i });
3354
3371
  continue;
3355
3372
  }
@@ -3381,21 +3398,21 @@ const Gl = (e, t, i, l, p) => {
3381
3398
  Ae.warn(e, t);
3382
3399
  }, error: (e, t) => {
3383
3400
  Ae.message(e, { ...t, symbol: x.red(Ol) });
3384
- } }, To = (e = "", t) => {
3401
+ } }, ko = (e = "", t) => {
3385
3402
  process.stdout.write(`${x.gray(Le)} ${x.red(e)}
3386
3403
 
3387
3404
  `);
3388
3405
  }, Ul = (e = "", t) => {
3389
- process.stdout.write(`${x.gray(wl)} ${e}
3406
+ process.stdout.write(`${x.gray(Sl)} ${e}
3390
3407
  `);
3391
- }, Bn = (e = "", t) => {
3408
+ }, Gn = (e = "", t) => {
3392
3409
  process.stdout.write(`${x.gray(J)}
3393
3410
  ${x.gray(Le)} ${e}
3394
3411
 
3395
3412
  `);
3396
3413
  }, Hl = (e) => new dl({ validate: e.validate, mask: e.mask ?? El, signal: e.signal, input: e.input, output: e.output, render() {
3397
3414
  const t = e.withGuide ?? ye.withGuide, i = `${t ? `${x.gray(J)}
3398
- ` : ""}${Mn(this.state)} ${e.message}
3415
+ ` : ""}${Dn(this.state)} ${e.message}
3399
3416
  `, l = this.userInputWithCursor, p = this.masked;
3400
3417
  switch (this.state) {
3401
3418
  case "error": {
@@ -3424,13 +3441,13 @@ ${c}
3424
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 } = {}) => {
3425
3442
  const m = bl();
3426
3443
  let n, u, a = !1, r = !1, f = "", d, g = performance.now();
3427
- const y = kn(i), v = o?.styleFrame ?? Vl, S = (D) => {
3428
- const M = D > 1 ? p ?? ye.messages.error : l ?? ye.messages.cancel;
3429
- r = D === 1, a && (F(M, D), r && typeof t == "function" && t());
3430
- }, b = () => S(2), w = () => S(1), L = () => {
3431
- process.on("uncaughtExceptionMonitor", b), process.on("unhandledRejection", b), process.on("SIGINT", w), process.on("SIGTERM", w), process.on("exit", S), h && h.addEventListener("abort", w);
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());
3447
+ }, b = () => w(2), S = () => w(1), L = () => {
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);
3432
3449
  }, O = () => {
3433
- process.removeListener("uncaughtExceptionMonitor", b), process.removeListener("unhandledRejection", b), process.removeListener("SIGINT", w), process.removeListener("SIGTERM", w), process.removeListener("exit", S), h && h.removeEventListener("abort", w);
3450
+ process.removeListener("uncaughtExceptionMonitor", b), process.removeListener("unhandledRejection", b), process.removeListener("SIGINT", S), process.removeListener("SIGTERM", S), process.removeListener("exit", w), h && h.removeEventListener("abort", S);
3434
3451
  }, $ = () => {
3435
3452
  if (d === void 0) return;
3436
3453
  m && i.write(`
@@ -3439,30 +3456,30 @@ ${c}
3439
3456
  `);
3440
3457
  D.length > 1 && i.write(ne.cursor.up(D.length - 1)), i.write(ne.cursor.to(0)), i.write(ne.erase.down());
3441
3458
  }, _ = (D) => D.replace(/\.+$/, ""), P = (D) => {
3442
- const M = (performance.now() - D) / 1e3, G = Math.floor(M / 60), T = Math.floor(M % 60);
3459
+ const R = (performance.now() - D) / 1e3, G = Math.floor(R / 60), T = Math.floor(R % 60);
3443
3460
  return G > 0 ? `[${G}m ${T}s]` : `[${T}s]`;
3444
3461
  }, I = o.withGuide ?? ye.withGuide, B = (D = "") => {
3445
3462
  a = !0, n = pl({ output: i }), f = _(D), g = performance.now(), I && i.write(`${x.gray(J)}
3446
3463
  `);
3447
- let M = 0, G = 0;
3464
+ let R = 0, G = 0;
3448
3465
  L(), u = setInterval(() => {
3449
3466
  if (m && f === d) return;
3450
3467
  $(), d = f;
3451
- const T = v(s[M]);
3452
- let Y;
3453
- if (m) Y = `${T} ${f}...`;
3454
- else if (e === "timer") Y = `${T} ${f} ${P(g)}`;
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)}`;
3455
3472
  else {
3456
3473
  const U = ".".repeat(Math.floor(G)).slice(0, 3);
3457
- Y = `${T} ${f}${U}`;
3474
+ K = `${T} ${f}${U}`;
3458
3475
  }
3459
- const j = vn(Y, y, { hard: !0, trim: !1 });
3460
- i.write(j), M = M + 1 < s.length ? M + 1 : 0, G = G < 4 ? G + 0.125 : 0;
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;
3461
3478
  }, c);
3462
- }, F = (D = "", M = 0, G = !1) => {
3479
+ }, F = (D = "", R = 0, G = !1) => {
3463
3480
  if (!a) return;
3464
3481
  a = !1, clearInterval(u), $();
3465
- const T = M === 0 ? x.green(Rn) : M === 1 ? x.red(Oo) : x.red($o);
3482
+ const T = R === 0 ? x.green(Rn) : R === 1 ? x.red($o) : x.red(_o);
3466
3483
  f = D ?? f, G || (e === "timer" ? i.write(`${T} ${f} ${P(g)}
3467
3484
  `) : i.write(`${T} ${f}
3468
3485
  `)), O(), n();
@@ -3475,7 +3492,7 @@ ${c}
3475
3492
  }, pt = (e, t) => e.includes(`
3476
3493
  `) ? e.split(`
3477
3494
  `).map((i) => t(i)).join(`
3478
- `) : t(e), Yl = (e) => {
3495
+ `) : t(e), Kl = (e) => {
3479
3496
  const t = (i, l) => {
3480
3497
  const p = i.label ?? String(i.value);
3481
3498
  switch (l) {
@@ -3484,7 +3501,7 @@ ${c}
3484
3501
  case "selected":
3485
3502
  return `${pt(p, x.dim)}`;
3486
3503
  case "active":
3487
- return `${x.green(Sl)} ${p}${i.hint ? ` ${x.dim(`(${i.hint})`)}` : ""}`;
3504
+ return `${x.green(wl)} ${p}${i.hint ? ` ${x.dim(`(${i.hint})`)}` : ""}`;
3488
3505
  case "cancelled":
3489
3506
  return `${pt(p, (s) => x.strikethrough(x.dim(s)))}`;
3490
3507
  default:
@@ -3492,7 +3509,7 @@ ${c}
3492
3509
  }
3493
3510
  };
3494
3511
  return new ml({ options: e.options, signal: e.signal, input: e.input, output: e.output, initialValue: e.initialValue, render() {
3495
- const i = e.withGuide ?? ye.withGuide, l = `${Mn(this.state)} `, p = `${$l(this.state)} `, s = Qt(e.output, e.message, p, l), c = `${i ? `${x.gray(J)}
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)}
3496
3513
  ` : ""}${s}
3497
3514
  `;
3498
3515
  switch (this.state) {
@@ -3517,9 +3534,9 @@ ${o}
3517
3534
  } }).prompt();
3518
3535
  };
3519
3536
  `${x.gray(J)}`;
3520
- const Kl = (e) => new gl({ validate: e.validate, placeholder: e.placeholder, defaultValue: e.defaultValue, initialValue: e.initialValue, output: e.output, signal: e.signal, input: e.input, render() {
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() {
3521
3538
  const t = e?.withGuide ?? ye.withGuide, i = `${`${t ? `${x.gray(J)}
3522
- ` : ""}${Mn(this.state)} `}${e.message}
3539
+ ` : ""}${Dn(this.state)} `}${e.message}
3523
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 ?? "";
3524
3541
  switch (this.state) {
3525
3542
  case "error": {
@@ -3691,8 +3708,8 @@ function me(e, t = globalThis.Deno ? globalThis.Deno.args : q.argv) {
3691
3708
  return l !== -1 && (p === -1 || l < p);
3692
3709
  }
3693
3710
  const { env: X } = q;
3694
- let Nt;
3695
- me("no-color") || me("no-colors") || me("color=false") || me("color=never") ? Nt = 0 : (me("color") || me("colors") || me("color=true") || me("color=always")) && (Nt = 1);
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);
3696
3713
  function Ql() {
3697
3714
  if ("FORCE_COLOR" in X)
3698
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);
@@ -3707,8 +3724,8 @@ function Zl(e) {
3707
3724
  }
3708
3725
  function ec(e, { streamIsTTY: t, sniffFlags: i = !0 } = {}) {
3709
3726
  const l = Ql();
3710
- l !== void 0 && (Nt = l);
3711
- const p = i ? Nt : l;
3727
+ l !== void 0 && (Pt = l);
3728
+ const p = i ? Pt : l;
3712
3729
  if (p === 0)
3713
3730
  return 0;
3714
3731
  if (i) {
@@ -3725,7 +3742,7 @@ function ec(e, { streamIsTTY: t, sniffFlags: i = !0 } = {}) {
3725
3742
  if (X.TERM === "dumb")
3726
3743
  return s;
3727
3744
  if (q.platform === "win32") {
3728
- const c = La.release().split(".");
3745
+ const c = Oa.release().split(".");
3729
3746
  return Number(c[0]) >= 10 && Number(c[2]) >= 10586 ? Number(c[2]) >= 14931 ? 3 : 2 : 1;
3730
3747
  }
3731
3748
  if ("CI" in X)
@@ -3753,8 +3770,8 @@ function ys(e, t = {}) {
3753
3770
  return Zl(i);
3754
3771
  }
3755
3772
  const tc = {
3756
- stdout: ys({ isTTY: Qn.isatty(1) }),
3757
- stderr: ys({ isTTY: Qn.isatty(2) })
3773
+ stdout: ys({ isTTY: Zn.isatty(1) }),
3774
+ stderr: ys({ isTTY: Zn.isatty(2) })
3758
3775
  };
3759
3776
  function ic(e, t, i) {
3760
3777
  let l = e.indexOf(t);
@@ -3778,7 +3795,7 @@ function nc(e, t, i, l) {
3778
3795
  } while (l !== -1);
3779
3796
  return s += e.slice(p), s;
3780
3797
  }
3781
- const { stdout: bs, stderr: vs } = tc, wn = /* @__PURE__ */ Symbol("GENERATOR"), Me = /* @__PURE__ */ Symbol("STYLER"), Xe = /* @__PURE__ */ Symbol("IS_EMPTY"), ws = [
3798
+ const { stdout: bs, stderr: vs } = tc, Sn = /* @__PURE__ */ Symbol("GENERATOR"), Re = /* @__PURE__ */ Symbol("STYLER"), Xe = /* @__PURE__ */ Symbol("IS_EMPTY"), Ss = [
3782
3799
  "ansi",
3783
3800
  "ansi",
3784
3801
  "ansi256",
@@ -3799,24 +3816,24 @@ Object.setPrototypeOf(Qe.prototype, Function.prototype);
3799
3816
  for (const [e, t] of Object.entries(be))
3800
3817
  De[e] = {
3801
3818
  get() {
3802
- const i = Pt(this, En(t.open, t.close, this[Me]), this[Xe]);
3819
+ const i = It(this, En(t.open, t.close, this[Re]), this[Xe]);
3803
3820
  return Object.defineProperty(this, e, { value: i }), i;
3804
3821
  }
3805
3822
  };
3806
3823
  De.visible = {
3807
3824
  get() {
3808
- const e = Pt(this, this[Me], !0);
3825
+ const e = It(this, this[Re], !0);
3809
3826
  return Object.defineProperty(this, "visible", { value: e }), e;
3810
3827
  }
3811
3828
  };
3812
- const Sn = (e, t, i, ...l) => e === "rgb" ? t === "ansi16m" ? be[i].ansi16m(...l) : t === "ansi256" ? be[i].ansi256(be.rgbToAnsi256(...l)) : be[i].ansi(be.rgbToAnsi(...l)) : e === "hex" ? Sn("rgb", t, i, ...be.hexToRgb(...l)) : be[i][e](...l), oc = ["rgb", "hex", "ansi256"];
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"];
3813
3830
  for (const e of oc) {
3814
3831
  De[e] = {
3815
3832
  get() {
3816
3833
  const { level: i } = this;
3817
3834
  return function(...l) {
3818
- const p = En(Sn(e, ws[i], "color", ...l), be.color.close, this[Me]);
3819
- return Pt(this, p, this[Xe]);
3835
+ const p = En(wn(e, Ss[i], "color", ...l), be.color.close, this[Re]);
3836
+ return It(this, p, this[Xe]);
3820
3837
  };
3821
3838
  }
3822
3839
  };
@@ -3825,8 +3842,8 @@ for (const e of oc) {
3825
3842
  get() {
3826
3843
  const { level: i } = this;
3827
3844
  return function(...l) {
3828
- const p = En(Sn(e, ws[i], "bgColor", ...l), be.bgColor.close, this[Me]);
3829
- return Pt(this, p, this[Xe]);
3845
+ const p = En(wn(e, Ss[i], "bgColor", ...l), be.bgColor.close, this[Re]);
3846
+ return It(this, p, this[Xe]);
3830
3847
  };
3831
3848
  }
3832
3849
  };
@@ -3837,10 +3854,10 @@ const ac = Object.defineProperties(() => {
3837
3854
  level: {
3838
3855
  enumerable: !0,
3839
3856
  get() {
3840
- return this[wn].level;
3857
+ return this[Sn].level;
3841
3858
  },
3842
3859
  set(e) {
3843
- this[wn].level = e;
3860
+ this[Sn].level = e;
3844
3861
  }
3845
3862
  }
3846
3863
  }), En = (e, t, i) => {
@@ -3852,13 +3869,13 @@ const ac = Object.defineProperties(() => {
3852
3869
  closeAll: p,
3853
3870
  parent: i
3854
3871
  };
3855
- }, Pt = (e, t, i) => {
3872
+ }, It = (e, t, i) => {
3856
3873
  const l = (...p) => lc(l, p.length === 1 ? "" + p[0] : p.join(" "));
3857
- return Object.setPrototypeOf(l, ac), l[wn] = e, l[Me] = t, l[Xe] = i, l;
3874
+ return Object.setPrototypeOf(l, ac), l[Sn] = e, l[Re] = t, l[Xe] = i, l;
3858
3875
  }, lc = (e, t) => {
3859
3876
  if (e.level <= 0 || !t)
3860
3877
  return e[Xe] ? "" : t;
3861
- let i = e[Me];
3878
+ let i = e[Re];
3862
3879
  if (i === void 0)
3863
3880
  return t;
3864
3881
  const { openAll: l, closeAll: p } = i;
@@ -3870,11 +3887,11 @@ const ac = Object.defineProperties(() => {
3870
3887
  return s !== -1 && (t = nc(t, p, l, s)), l + t + p;
3871
3888
  };
3872
3889
  Object.defineProperties(Qe.prototype, De);
3873
- const ko = Qe();
3890
+ const xo = Qe();
3874
3891
  Qe({ level: vs ? vs.level : 0 });
3875
- var _t = { exports: {} }, cc = _t.exports, Ss;
3892
+ var _t = { exports: {} }, cc = _t.exports, ws;
3876
3893
  function uc() {
3877
- return Ss || (Ss = 1, (function(e, t) {
3894
+ return ws || (ws = 1, (function(e, t) {
3878
3895
  (function(i, l) {
3879
3896
  e.exports = l();
3880
3897
  })(cc, (function() {
@@ -3919,8 +3936,8 @@ function uc() {
3919
3936
  return (A.r * 299 + A.g * 587 + A.b * 114) / 1e3;
3920
3937
  },
3921
3938
  getLuminance: function() {
3922
- var A = this.toRgb(), C, N, R, k, V, K;
3923
- return C = A.r / 255, N = A.g / 255, R = 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), R <= 0.03928 ? K = R / 12.92 : K = Math.pow((R + 0.055) / 1.055, 2.4), 0.2126 * k + 0.7152 * V + 0.0722 * K;
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;
3924
3941
  },
3925
3942
  setAlpha: function(A) {
3926
3943
  return this._a = D(A), this._roundA = Math.round(100 * this._a) / 100, this;
@@ -3935,8 +3952,8 @@ function uc() {
3935
3952
  };
3936
3953
  },
3937
3954
  toHsvString: function() {
3938
- var A = n(this._r, this._g, this._b), C = Math.round(A.h * 360), N = Math.round(A.s * 100), R = Math.round(A.v * 100);
3939
- return this._a == 1 ? "hsv(" + C + ", " + N + "%, " + R + "%)" : "hsva(" + C + ", " + N + "%, " + R + "%, " + this._roundA + ")";
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 + ")";
3940
3957
  },
3941
3958
  toHsl: function() {
3942
3959
  var A = o(this._r, this._g, this._b);
@@ -3948,8 +3965,8 @@ function uc() {
3948
3965
  };
3949
3966
  },
3950
3967
  toHslString: function() {
3951
- var A = o(this._r, this._g, this._b), C = Math.round(A.h * 360), N = Math.round(A.s * 100), R = Math.round(A.l * 100);
3952
- return this._a == 1 ? "hsl(" + C + ", " + N + "%, " + R + "%)" : "hsla(" + C + ", " + N + "%, " + R + "%, " + this._roundA + ")";
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 + ")";
3953
3970
  },
3954
3971
  toHex: function(A) {
3955
3972
  return a(this._r, this._g, this._b, A);
@@ -3976,30 +3993,30 @@ function uc() {
3976
3993
  },
3977
3994
  toPercentageRgb: function() {
3978
3995
  return {
3979
- r: Math.round(M(this._r, 255) * 100) + "%",
3980
- g: Math.round(M(this._g, 255) * 100) + "%",
3981
- b: Math.round(M(this._b, 255) * 100) + "%",
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) + "%",
3982
3999
  a: this._a
3983
4000
  };
3984
4001
  },
3985
4002
  toPercentageRgbString: function() {
3986
- return this._a == 1 ? "rgb(" + Math.round(M(this._r, 255) * 100) + "%, " + Math.round(M(this._g, 255) * 100) + "%, " + Math.round(M(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(M(this._r, 255) * 100) + "%, " + Math.round(M(this._g, 255) * 100) + "%, " + Math.round(M(this._b, 255) * 100) + "%, " + this._roundA + ")";
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 + ")";
3987
4004
  },
3988
4005
  toName: function() {
3989
4006
  return this._a === 0 ? "transparent" : this._a < 1 ? !1 : B[a(this._r, this._g, this._b, !0)] || !1;
3990
4007
  },
3991
4008
  toFilter: function(A) {
3992
- var C = "#" + f(this._r, this._g, this._b, this._a), N = C, R = this._gradientType ? "GradientType = 1, " : "";
4009
+ var C = "#" + f(this._r, this._g, this._b, this._a), N = C, M = this._gradientType ? "GradientType = 1, " : "";
3993
4010
  if (A) {
3994
4011
  var k = s(A);
3995
4012
  N = "#" + f(k._r, k._g, k._b, k._a);
3996
4013
  }
3997
- return "progid:DXImageTransform.Microsoft.gradient(" + R + "startColorstr=" + C + ",endColorstr=" + N + ")";
4014
+ return "progid:DXImageTransform.Microsoft.gradient(" + M + "startColorstr=" + C + ",endColorstr=" + N + ")";
3998
4015
  },
3999
4016
  toString: function(A) {
4000
4017
  var C = !!A;
4001
4018
  A = A || this._format;
4002
- var N = !1, R = this._a < 1 && this._a >= 0, k = !C && R && (A === "hex" || A === "hex6" || A === "hex3" || A === "hex4" || A === "hex8" || A === "name");
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");
4003
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());
4004
4021
  },
4005
4022
  clone: function() {
@@ -4013,7 +4030,7 @@ function uc() {
4013
4030
  return this._applyModification(v, arguments);
4014
4031
  },
4015
4032
  brighten: function() {
4016
- return this._applyModification(S, arguments);
4033
+ return this._applyModification(w, arguments);
4017
4034
  },
4018
4035
  darken: function() {
4019
4036
  return this._applyModification(b, arguments);
@@ -4028,7 +4045,7 @@ function uc() {
4028
4045
  return this._applyModification(y, arguments);
4029
4046
  },
4030
4047
  spin: function() {
4031
- return this._applyModification(w, arguments);
4048
+ return this._applyModification(S, arguments);
4032
4049
  },
4033
4050
  _applyCombination: function(A, C) {
4034
4051
  return A.apply(null, [this].concat([].slice.call(C)));
@@ -4069,10 +4086,10 @@ function uc() {
4069
4086
  r: 0,
4070
4087
  g: 0,
4071
4088
  b: 0
4072
- }, C = 1, N = null, R = null, k = null, V = !1, K = !1;
4073
- return typeof E == "string" && (E = Sa(E)), i(E) == "object" && (we(E.r) && we(E.g) && we(E.b) ? (A = h(E.r, E.g, E.b), V = !0, K = String(E.r).substr(-1) === "%" ? "prgb" : "rgb") : we(E.h) && we(E.s) && we(E.v) ? (N = ie(E.s), R = ie(E.v), A = u(E.h, N, R), V = !0, K = "hsv") : we(E.h) && we(E.s) && we(E.l) && (N = ie(E.s), k = ie(E.l), A = m(E.h, N, k), V = !0, K = "hsl"), E.hasOwnProperty("a") && (C = E.a)), C = D(C), {
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), {
4074
4091
  ok: V,
4075
- format: E.format || K,
4092
+ format: E.format || Y,
4076
4093
  r: Math.min(255, Math.max(A.r, 0)),
4077
4094
  g: Math.min(255, Math.max(A.g, 0)),
4078
4095
  b: Math.min(255, Math.max(A.b, 0)),
@@ -4081,19 +4098,19 @@ function uc() {
4081
4098
  }
4082
4099
  function h(E, A, C) {
4083
4100
  return {
4084
- r: M(E, 255) * 255,
4085
- g: M(A, 255) * 255,
4086
- b: M(C, 255) * 255
4101
+ r: R(E, 255) * 255,
4102
+ g: R(A, 255) * 255,
4103
+ b: R(C, 255) * 255
4087
4104
  };
4088
4105
  }
4089
4106
  function o(E, A, C) {
4090
- E = M(E, 255), A = M(A, 255), C = M(C, 255);
4091
- var N = Math.max(E, A, C), R = Math.min(E, A, C), k, V, K = (N + R) / 2;
4092
- if (N == R)
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)
4093
4110
  k = V = 0;
4094
4111
  else {
4095
- var Z = N - R;
4096
- switch (V = K > 0.5 ? Z / (2 - N - R) : Z / (N + R), N) {
4112
+ var Z = N - M;
4113
+ switch (V = Y > 0.5 ? Z / (2 - N - M) : Z / (N + M), N) {
4097
4114
  case E:
4098
4115
  k = (A - C) / Z + (A < C ? 6 : 0);
4099
4116
  break;
@@ -4109,31 +4126,31 @@ function uc() {
4109
4126
  return {
4110
4127
  h: k,
4111
4128
  s: V,
4112
- l: K
4129
+ l: Y
4113
4130
  };
4114
4131
  }
4115
4132
  function m(E, A, C) {
4116
- var N, R, k;
4117
- E = M(E, 360), A = M(A, 100), C = M(C, 100);
4133
+ var N, M, k;
4134
+ E = R(E, 360), A = R(A, 100), C = R(C, 100);
4118
4135
  function V(de, Fe, ge) {
4119
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;
4120
4137
  }
4121
4138
  if (A === 0)
4122
- N = R = k = C;
4139
+ N = M = k = C;
4123
4140
  else {
4124
- var K = C < 0.5 ? C * (1 + A) : C + A - C * A, Z = 2 * C - K;
4125
- N = V(Z, K, E + 1 / 3), R = V(Z, K, E), k = V(Z, K, E - 1 / 3);
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);
4126
4143
  }
4127
4144
  return {
4128
4145
  r: N * 255,
4129
- g: R * 255,
4146
+ g: M * 255,
4130
4147
  b: k * 255
4131
4148
  };
4132
4149
  }
4133
4150
  function n(E, A, C) {
4134
- E = M(E, 255), A = M(A, 255), C = M(C, 255);
4135
- var N = Math.max(E, A, C), R = Math.min(E, A, C), k, V, K = N, Z = N - R;
4136
- if (V = N === 0 ? 0 : Z / N, N == R)
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)
4137
4154
  k = 0;
4138
4155
  else {
4139
4156
  switch (N) {
@@ -4152,12 +4169,12 @@ function uc() {
4152
4169
  return {
4153
4170
  h: k,
4154
4171
  s: V,
4155
- v: K
4172
+ v: Y
4156
4173
  };
4157
4174
  }
4158
4175
  function u(E, A, C) {
4159
- E = M(E, 360) * 6, A = M(A, 100), C = M(C, 100);
4160
- var N = Math.floor(E), R = E - N, k = C * (1 - A), V = C * (1 - R * A), K = C * (1 - (1 - R) * A), Z = N % 6, de = [C, V, k, k, K, C][Z], Fe = [K, C, C, V, k, k][Z], ge = [k, k, K, C, C, V][Z];
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];
4161
4178
  return {
4162
4179
  r: de * 255,
4163
4180
  g: Fe * 255,
@@ -4165,16 +4182,16 @@ function uc() {
4165
4182
  };
4166
4183
  }
4167
4184
  function a(E, A, C, N) {
4168
- var R = [U(Math.round(E).toString(16)), U(Math.round(A).toString(16)), U(Math.round(C).toString(16))];
4169
- return N && R[0].charAt(0) == R[0].charAt(1) && R[1].charAt(0) == R[1].charAt(1) && R[2].charAt(0) == R[2].charAt(1) ? R[0].charAt(0) + R[1].charAt(0) + R[2].charAt(0) : R.join("");
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("");
4170
4187
  }
4171
- function r(E, A, C, N, R) {
4188
+ function r(E, A, C, N, M) {
4172
4189
  var k = [U(Math.round(E).toString(16)), U(Math.round(A).toString(16)), U(Math.round(C).toString(16)), U(ve(N))];
4173
- return R && 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("");
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("");
4174
4191
  }
4175
4192
  function f(E, A, C, N) {
4176
- var R = [U(ve(N)), U(Math.round(E).toString(16)), U(Math.round(A).toString(16)), U(Math.round(C).toString(16))];
4177
- return R.join("");
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("");
4178
4195
  }
4179
4196
  s.equals = function(E, A) {
4180
4197
  return !E || !A ? !1 : s(E).toRgbString() == s(A).toRgbString();
@@ -4203,7 +4220,7 @@ function uc() {
4203
4220
  var C = s(E).toHsl();
4204
4221
  return C.l += A / 100, C.l = G(C.l), s(C);
4205
4222
  }
4206
- function S(E, A) {
4223
+ function w(E, A) {
4207
4224
  A = A === 0 ? 0 : A || 10;
4208
4225
  var C = s(E).toRgb();
4209
4226
  return C.r = Math.max(0, Math.min(255, C.r - Math.round(255 * -(A / 100)))), C.g = Math.max(0, Math.min(255, C.g - Math.round(255 * -(A / 100)))), C.b = Math.max(0, Math.min(255, C.b - Math.round(255 * -(A / 100)))), s(C);
@@ -4213,7 +4230,7 @@ function uc() {
4213
4230
  var C = s(E).toHsl();
4214
4231
  return C.l -= A / 100, C.l = G(C.l), s(C);
4215
4232
  }
4216
- function w(E, A) {
4233
+ function S(E, A) {
4217
4234
  var C = s(E).toHsl(), N = (C.h + A) % 360;
4218
4235
  return C.h = N < 0 ? 360 + N : N, s(C);
4219
4236
  }
@@ -4224,9 +4241,9 @@ function uc() {
4224
4241
  function O(E, A) {
4225
4242
  if (isNaN(A) || A <= 0)
4226
4243
  throw new Error("Argument to polyad must be a positive number");
4227
- for (var C = s(E).toHsl(), N = [s(E)], R = 360 / A, k = 1; k < A; k++)
4244
+ for (var C = s(E).toHsl(), N = [s(E)], M = 360 / A, k = 1; k < A; k++)
4228
4245
  N.push(s({
4229
- h: (C.h + k * R) % 360,
4246
+ h: (C.h + k * M) % 360,
4230
4247
  s: C.s,
4231
4248
  l: C.l
4232
4249
  }));
@@ -4246,36 +4263,36 @@ function uc() {
4246
4263
  }
4247
4264
  function _(E, A, C) {
4248
4265
  A = A || 6, C = C || 30;
4249
- var N = s(E).toHsl(), R = 360 / C, k = [s(E)];
4250
- for (N.h = (N.h - (R * A >> 1) + 720) % 360; --A; )
4251
- N.h = (N.h + R) % 360, k.push(s(N));
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));
4252
4269
  return k;
4253
4270
  }
4254
4271
  function P(E, A) {
4255
4272
  A = A || 6;
4256
- for (var C = s(E).toHsv(), N = C.h, R = C.s, k = C.v, V = [], K = 1 / A; A--; )
4273
+ for (var C = s(E).toHsv(), N = C.h, M = C.s, k = C.v, V = [], Y = 1 / A; A--; )
4257
4274
  V.push(s({
4258
4275
  h: N,
4259
- s: R,
4276
+ s: M,
4260
4277
  v: k
4261
- })), k = (k + K) % 1;
4278
+ })), k = (k + Y) % 1;
4262
4279
  return V;
4263
4280
  }
4264
4281
  s.mix = function(E, A, C) {
4265
4282
  C = C === 0 ? 0 : C || 50;
4266
- var N = s(E).toRgb(), R = s(A).toRgb(), k = C / 100, V = {
4267
- r: (R.r - N.r) * k + N.r,
4268
- g: (R.g - N.g) * k + N.g,
4269
- b: (R.b - N.b) * k + N.b,
4270
- a: (R.a - N.a) * k + N.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
4271
4288
  };
4272
4289
  return s(V);
4273
4290
  }, s.readability = function(E, A) {
4274
4291
  var C = s(E), N = s(A);
4275
4292
  return (Math.max(C.getLuminance(), N.getLuminance()) + 0.05) / (Math.min(C.getLuminance(), N.getLuminance()) + 0.05);
4276
4293
  }, s.isReadable = function(E, A, C) {
4277
- var N = s.readability(E, A), R, k;
4278
- switch (k = !1, R = Ea(C), R.level + R.size) {
4294
+ var N = s.readability(E, A), M, k;
4295
+ switch (k = !1, M = Ca(C), M.level + M.size) {
4279
4296
  case "AAsmall":
4280
4297
  case "AAAlarge":
4281
4298
  k = N >= 4.5;
@@ -4289,12 +4306,12 @@ function uc() {
4289
4306
  }
4290
4307
  return k;
4291
4308
  }, s.mostReadable = function(E, A, C) {
4292
- var N = null, R = 0, k, V, K, Z;
4293
- C = C || {}, V = C.includeFallbackColors, K = C.level, Z = C.size;
4309
+ var N = null, M = 0, k, V, Y, Z;
4310
+ C = C || {}, V = C.includeFallbackColors, Y = C.level, Z = C.size;
4294
4311
  for (var de = 0; de < A.length; de++)
4295
- k = s.readability(E, A[de]), k > R && (R = k, N = s(A[de]));
4312
+ k = s.readability(E, A[de]), k > M && (M = k, N = s(A[de]));
4296
4313
  return s.isReadable(E, N, {
4297
- level: K,
4314
+ level: Y,
4298
4315
  size: Z
4299
4316
  }) || !V ? N : (C.includeFallbackColors = !1, s.mostReadable(E, ["#fff", "#000"], C));
4300
4317
  };
@@ -4458,8 +4475,8 @@ function uc() {
4458
4475
  function D(E) {
4459
4476
  return E = parseFloat(E), (isNaN(E) || E < 0 || E > 1) && (E = 1), E;
4460
4477
  }
4461
- function M(E, A) {
4462
- Y(E) && (E = "100%");
4478
+ function R(E, A) {
4479
+ K(E) && (E = "100%");
4463
4480
  var C = j(E);
4464
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);
4465
4482
  }
@@ -4469,7 +4486,7 @@ function uc() {
4469
4486
  function T(E) {
4470
4487
  return parseInt(E, 16);
4471
4488
  }
4472
- function Y(E) {
4489
+ function K(E) {
4473
4490
  return typeof E == "string" && E.indexOf(".") != -1 && parseFloat(E) === 1;
4474
4491
  }
4475
4492
  function j(E) {
@@ -4488,25 +4505,25 @@ function uc() {
4488
4505
  return T(E) / 255;
4489
4506
  }
4490
4507
  var ce = (function() {
4491
- var E = "[-\\+]?\\d+%?", A = "[-\\+]?\\d*\\.\\d+%?", C = "(?:" + A + ")|(?:" + E + ")", N = "[\\s|\\(]+(" + C + ")[,|\\s]+(" + C + ")[,|\\s]+(" + C + ")\\s*\\)?", R = "[\\s|\\(]+(" + C + ")[,|\\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*\\)?";
4492
4509
  return {
4493
4510
  CSS_UNIT: new RegExp(C),
4494
4511
  rgb: new RegExp("rgb" + N),
4495
- rgba: new RegExp("rgba" + R),
4512
+ rgba: new RegExp("rgba" + M),
4496
4513
  hsl: new RegExp("hsl" + N),
4497
- hsla: new RegExp("hsla" + R),
4514
+ hsla: new RegExp("hsla" + M),
4498
4515
  hsv: new RegExp("hsv" + N),
4499
- hsva: new RegExp("hsva" + R),
4516
+ hsva: new RegExp("hsva" + M),
4500
4517
  hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
4501
4518
  hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
4502
4519
  hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
4503
4520
  hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
4504
4521
  };
4505
4522
  })();
4506
- function we(E) {
4523
+ function Se(E) {
4507
4524
  return !!ce.CSS_UNIT.exec(E);
4508
4525
  }
4509
- function Sa(E) {
4526
+ function Ea(E) {
4510
4527
  E = E.replace(l, "").replace(p, "").toLowerCase();
4511
4528
  var A = !1;
4512
4529
  if (I[E])
@@ -4571,7 +4588,7 @@ function uc() {
4571
4588
  format: A ? "name" : "hex"
4572
4589
  } : !1;
4573
4590
  }
4574
- function Ea(E) {
4591
+ function Ca(E) {
4575
4592
  var A, C;
4576
4593
  return E = E || {
4577
4594
  level: "AA",
@@ -4623,11 +4640,11 @@ function fc() {
4623
4640
  g = r === "long" && b || r === "short" && !b;
4624
4641
  }
4625
4642
  const y = l(f, d, a);
4626
- let v = [n.color], S;
4627
- f.h <= d.h && !g || f.h >= d.h && g ? S = d.h - f.h : g ? S = 360 - d.h + f.h : S = 360 - f.h + d.h, y.h = Math.pow(-1, g ? 1 : 0) * Math.abs(S) / a;
4643
+ let v = [n.color], w;
4644
+ f.h <= d.h && !g || f.h >= d.h && g ? w = d.h - f.h : g ? w = 360 - d.h + f.h : w = 360 - f.h + d.h, y.h = Math.pow(-1, g ? 1 : 0) * Math.abs(w) / a;
4628
4645
  for (let b = 1; b < a; b++) {
4629
- const w = p(y, f, b, i);
4630
- v.push(e(w));
4646
+ const S = p(y, f, b, i);
4647
+ v.push(e(S));
4631
4648
  }
4632
4649
  return v;
4633
4650
  }
@@ -4658,7 +4675,7 @@ function fc() {
4658
4675
  if (u < 0 || u > 1)
4659
4676
  throw new Error("Position must be between 0 and 1");
4660
4677
  let f, d;
4661
- for (let v = 0, S = n.length; v < S - 1; v++)
4678
+ for (let v = 0, w = n.length; v < w - 1; v++)
4662
4679
  if (u >= n[v].pos && u < n[v + 1].pos) {
4663
4680
  f = n[v], d = n[v + 1];
4664
4681
  break;
@@ -4682,12 +4699,12 @@ function fc() {
4682
4699
  if (a ^ v)
4683
4700
  throw new Error("Cannot mix positionned and not posionned color stops");
4684
4701
  if (v) {
4685
- const S = g.color !== void 0;
4686
- if (!S && (d || y === 0 || y === r - 1))
4702
+ const w = g.color !== void 0;
4703
+ if (!w && (d || y === 0 || y === r - 1))
4687
4704
  throw new Error("Cannot define two consecutive position-only stops");
4688
- if (d = !S, g = {
4689
- color: S ? e(g.color) : null,
4690
- colorLess: !S,
4705
+ if (d = !w, g = {
4706
+ color: w ? e(g.color) : null,
4707
+ colorLess: !w,
4691
4708
  pos: g.pos
4692
4709
  }, g.pos < 0 || g.pos > 1)
4693
4710
  throw new Error("Color stops positions must be between 0 and 1");
@@ -4819,12 +4836,12 @@ function fc() {
4819
4836
  }, ni;
4820
4837
  }
4821
4838
  var hc = fc();
4822
- const Cs = /* @__PURE__ */ Nn(hc), ae = (...e) => {
4839
+ const Cs = /* @__PURE__ */ Pn(hc), ae = (...e) => {
4823
4840
  let t, i;
4824
4841
  if (e.length === 0)
4825
4842
  throw new Error("Missing gradient colors");
4826
4843
  if (Array.isArray(e[0]))
4827
- t = Cs(e[0]), i = Gn(e[1]);
4844
+ t = Cs(e[0]), i = qn(e[1]);
4828
4845
  else {
4829
4846
  if (e.length === 1)
4830
4847
  throw new Error(`Expected an array of colors, received ${JSON.stringify(e[0])}`);
@@ -4832,28 +4849,28 @@ const Cs = /* @__PURE__ */ Nn(hc), ae = (...e) => {
4832
4849
  }
4833
4850
  const l = (p, s) => pc(p ? p.toString() : "", t, s ?? i);
4834
4851
  return l.multiline = (p, s) => dc(p ? p.toString() : "", t, s ?? i), l;
4835
- }, xo = (e, t, i) => t.interpolation?.toLowerCase() === "hsv" ? e.hsv(i, t.hsvSpin?.toLowerCase() || !1) : e.rgb(i);
4852
+ }, Mo = (e, t, i) => t.interpolation?.toLowerCase() === "hsv" ? e.hsv(i, t.hsvSpin?.toLowerCase() || !1) : e.rgb(i);
4836
4853
  function pc(e, t, i) {
4837
- const l = Gn(i), p = Math.max(e.replace(/\s/g, "").length, t.stops.length), s = xo(t, l, p);
4854
+ const l = qn(i), p = Math.max(e.replace(/\s/g, "").length, t.stops.length), s = Mo(t, l, p);
4838
4855
  let c = "";
4839
4856
  for (const h of e)
4840
- c += h.match(/\s/g) ? h : ko.hex(s.shift()?.toHex() || "#000")(h);
4857
+ c += h.match(/\s/g) ? h : xo.hex(s.shift()?.toHex() || "#000")(h);
4841
4858
  return c;
4842
4859
  }
4843
4860
  function dc(e, t, i) {
4844
- const l = Gn(i), p = e.split(`
4845
- `), s = Math.max(...p.map((o) => o.length), t.stops.length), c = xo(t, l, s), h = [];
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 = [];
4846
4863
  for (const o of p) {
4847
4864
  const m = c.slice(0);
4848
4865
  let n = "";
4849
4866
  for (const u of o)
4850
- n += ko.hex(m.shift()?.toHex() || "#000")(u);
4867
+ n += xo.hex(m.shift()?.toHex() || "#000")(u);
4851
4868
  h.push(n);
4852
4869
  }
4853
4870
  return h.join(`
4854
4871
  `);
4855
4872
  }
4856
- function Gn(e) {
4873
+ function qn(e) {
4857
4874
  const t = { interpolation: "rgb", hsvSpin: "short", ...e };
4858
4875
  if (e !== void 0 && typeof e != "object")
4859
4876
  throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof e}\``);
@@ -4885,15 +4902,15 @@ function pe(e) {
4885
4902
  const t = (i) => ae(...e.colors)(i, e.options);
4886
4903
  return t.multiline = (i = "") => ae(...e.colors).multiline(i, e.options), t;
4887
4904
  }
4888
- const mc = pe(he.atlas), gc = pe(he.cristal), yc = pe(he.teen), bc = pe(he.mind), vc = pe(he.morning), Cn = pe(he.vice), wc = pe(he.passion), Sc = pe(he.fruit), Ec = pe(he.instagram), Cc = pe(he.retro), Ac = pe(he.summer), Lc = pe(he.rainbow), Oc = pe(he.pastel);
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);
4889
4906
  ae.atlas = mc;
4890
4907
  ae.cristal = gc;
4891
4908
  ae.teen = yc;
4892
4909
  ae.mind = bc;
4893
4910
  ae.morning = vc;
4894
4911
  ae.vice = Cn;
4895
- ae.passion = wc;
4896
- ae.fruit = Sc;
4912
+ ae.passion = Sc;
4913
+ ae.fruit = wc;
4897
4914
  ae.instagram = Ec;
4898
4915
  ae.retro = Cc;
4899
4916
  ae.summer = Ac;
@@ -4903,8 +4920,8 @@ const $c = "my-arcgis-app";
4903
4920
  function Ro() {
4904
4921
  Ul("initialize a new arcgis project");
4905
4922
  }
4906
- async function Mo() {
4907
- return await Kl({
4923
+ async function Do() {
4924
+ return await Yl({
4908
4925
  message: "What is the name of your project?",
4909
4926
  initialValue: "",
4910
4927
  placeholder: $c,
@@ -4915,17 +4932,17 @@ async function Mo() {
4915
4932
  });
4916
4933
  }
4917
4934
  async function _c() {
4918
- const e = Ce.map(([t]) => t).filter((t) => !Ya[t]).map((t) => ({ value: t, label: Ka[t] }));
4919
- return await Yl({
4935
+ const e = Ce.map(([t]) => t).filter((t) => !Ka[t]).map((t) => ({ value: t, label: Ya[t] }));
4936
+ return await Kl({
4920
4937
  message: "Which template would you like to use?",
4921
4938
  options: e
4922
4939
  });
4923
4940
  }
4924
4941
  function An() {
4925
- Bn(oe("greenBright", "Your new project is ready!"));
4942
+ Gn(oe("greenBright", "Your new project is ready!"));
4926
4943
  }
4927
4944
  function Nc() {
4928
- Bn(
4945
+ Gn(
4929
4946
  oe(
4930
4947
  "greenBright",
4931
4948
  `The starter is pre-configured to use pnpm.
@@ -4953,12 +4970,12 @@ async function Pc(e) {
4953
4970
  });
4954
4971
  }
4955
4972
  var si, As;
4956
- function Do() {
4973
+ function Fo() {
4957
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) : () => {
4958
4975
  }), si;
4959
4976
  }
4960
4977
  var ri, Ls;
4961
- function Fo() {
4978
+ function Bo() {
4962
4979
  if (Ls) return ri;
4963
4980
  Ls = 1;
4964
4981
  const e = "2.0.0", t = 256, i = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
@@ -4989,7 +5006,7 @@ function Ic() {
4989
5006
  MAX_SAFE_COMPONENT_LENGTH: i,
4990
5007
  MAX_SAFE_BUILD_LENGTH: l,
4991
5008
  MAX_LENGTH: p
4992
- } = Fo(), s = Do();
5009
+ } = Bo(), s = Fo();
4993
5010
  t = e.exports = {};
4994
5011
  const c = t.re = [], h = t.safeRe = [], o = t.src = [], m = t.safeSrc = [], n = t.t = {};
4995
5012
  let u = 0;
@@ -5002,8 +5019,8 @@ function Ic() {
5002
5019
  g = g.split(`${y}*`).join(`${y}{0,${v}}`).split(`${y}+`).join(`${y}{1,${v}}`);
5003
5020
  return g;
5004
5021
  }, d = (g, y, v) => {
5005
- const S = f(y), b = u++;
5006
- s(g, b, y), n[g] = b, o[b] = y, m[b] = S, c[b] = new RegExp(y, v ? "g" : void 0), h[b] = new RegExp(S, v ? "g" : void 0);
5022
+ const w = f(y), b = u++;
5023
+ s(g, b, y), n[g] = b, o[b] = y, m[b] = w, c[b] = new RegExp(y, v ? "g" : void 0), h[b] = new RegExp(w, v ? "g" : void 0);
5007
5024
  };
5008
5025
  d("NUMERICIDENTIFIER", "0|[1-9]\\d*"), d("NUMERICIDENTIFIERLOOSE", "\\d+"), d("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${a}*`), d("MAINVERSION", `(${o[n.NUMERICIDENTIFIER]})\\.(${o[n.NUMERICIDENTIFIER]})\\.(${o[n.NUMERICIDENTIFIER]})`), d("MAINVERSIONLOOSE", `(${o[n.NUMERICIDENTIFIERLOOSE]})\\.(${o[n.NUMERICIDENTIFIERLOOSE]})\\.(${o[n.NUMERICIDENTIFIERLOOSE]})`), d("PRERELEASEIDENTIFIER", `(?:${o[n.NONNUMERICIDENTIFIER]}|${o[n.NUMERICIDENTIFIER]})`), d("PRERELEASEIDENTIFIERLOOSE", `(?:${o[n.NONNUMERICIDENTIFIER]}|${o[n.NUMERICIDENTIFIERLOOSE]})`), d("PRERELEASE", `(?:-(${o[n.PRERELEASEIDENTIFIER]}(?:\\.${o[n.PRERELEASEIDENTIFIER]})*))`), d("PRERELEASELOOSE", `(?:-?(${o[n.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[n.PRERELEASEIDENTIFIERLOOSE]})*))`), d("BUILDIDENTIFIER", `${a}+`), d("BUILD", `(?:\\+(${o[n.BUILDIDENTIFIER]}(?:\\.${o[n.BUILDIDENTIFIER]})*))`), d("FULLPLAIN", `v?${o[n.MAINVERSION]}${o[n.PRERELEASE]}?${o[n.BUILD]}?`), d("FULL", `^${o[n.FULLPLAIN]}$`), d("LOOSEPLAIN", `[v=\\s]*${o[n.MAINVERSIONLOOSE]}${o[n.PRERELEASELOOSE]}?${o[n.BUILD]}?`), d("LOOSE", `^${o[n.LOOSEPLAIN]}$`), d("GTLT", "((?:<|>)?=?)"), d("XRANGEIDENTIFIERLOOSE", `${o[n.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), d("XRANGEIDENTIFIER", `${o[n.NUMERICIDENTIFIER]}|x|X|\\*`), d("XRANGEPLAIN", `[v=\\s]*(${o[n.XRANGEIDENTIFIER]})(?:\\.(${o[n.XRANGEIDENTIFIER]})(?:\\.(${o[n.XRANGEIDENTIFIER]})(?:${o[n.PRERELEASE]})?${o[n.BUILD]}?)?)?`), d("XRANGEPLAINLOOSE", `[v=\\s]*(${o[n.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[n.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[n.XRANGEIDENTIFIERLOOSE]})(?:${o[n.PRERELEASELOOSE]})?${o[n.BUILD]}?)?)?`), d("XRANGE", `^${o[n.GTLT]}\\s*${o[n.XRANGEPLAIN]}$`), d("XRANGELOOSE", `^${o[n.GTLT]}\\s*${o[n.XRANGEPLAINLOOSE]}$`), d("COERCEPLAIN", `(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?`), d("COERCE", `${o[n.COERCEPLAIN]}(?:$|[^\\d])`), d("COERCEFULL", o[n.COERCEPLAIN] + `(?:${o[n.PRERELEASE]})?(?:${o[n.BUILD]})?(?:$|[^\\d])`), d("COERCERTL", o[n.COERCE], !0), d("COERCERTLFULL", o[n.COERCEFULL], !0), d("LONETILDE", "(?:~>?)"), d("TILDETRIM", `(\\s*)${o[n.LONETILDE]}\\s+`, !0), t.tildeTrimReplace = "$1~", d("TILDE", `^${o[n.LONETILDE]}${o[n.XRANGEPLAIN]}$`), d("TILDELOOSE", `^${o[n.LONETILDE]}${o[n.XRANGEPLAINLOOSE]}$`), d("LONECARET", "(?:\\^)"), d("CARETTRIM", `(\\s*)${o[n.LONECARET]}\\s+`, !0), t.caretTrimReplace = "$1^", d("CARET", `^${o[n.LONECARET]}${o[n.XRANGEPLAIN]}$`), d("CARETLOOSE", `^${o[n.LONECARET]}${o[n.XRANGEPLAINLOOSE]}$`), d("COMPARATORLOOSE", `^${o[n.GTLT]}\\s*(${o[n.LOOSEPLAIN]})$|^$`), d("COMPARATOR", `^${o[n.GTLT]}\\s*(${o[n.FULLPLAIN]})$|^$`), d("COMPARATORTRIM", `(\\s*)${o[n.GTLT]}\\s*(${o[n.LOOSEPLAIN]}|${o[n.XRANGEPLAIN]})`, !0), t.comparatorTrimReplace = "$1$2$3", d("HYPHENRANGE", `^\\s*(${o[n.XRANGEPLAIN]})\\s+-\\s+(${o[n.XRANGEPLAIN]})\\s*$`), d("HYPHENRANGELOOSE", `^\\s*(${o[n.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[n.XRANGEPLAINLOOSE]})\\s*$`), d("STAR", "(<|>)?=?\\s*\\*"), d("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), d("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
5009
5026
  })(dt, dt.exports)), dt.exports;
@@ -5034,7 +5051,7 @@ var li, Ns;
5034
5051
  function xc() {
5035
5052
  if (Ns) return li;
5036
5053
  Ns = 1;
5037
- const e = Do(), { MAX_LENGTH: t, MAX_SAFE_INTEGER: i } = Fo(), { safeRe: l, t: p } = Ic(), s = Tc(), { compareIdentifiers: c } = kc(), h = (m, n) => {
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) => {
5038
5055
  const u = n.split(".");
5039
5056
  if (u.length > m.length)
5040
5057
  return !1;
@@ -5204,7 +5221,7 @@ function xc() {
5204
5221
  return li = o, li;
5205
5222
  }
5206
5223
  var ci, Ps;
5207
- function Bo() {
5224
+ function Go() {
5208
5225
  if (Ps) return ci;
5209
5226
  Ps = 1;
5210
5227
  const e = xc();
@@ -5221,26 +5238,26 @@ function Bo() {
5221
5238
  }, ci;
5222
5239
  }
5223
5240
  var ui, Is;
5224
- function Rc() {
5241
+ function Mc() {
5225
5242
  if (Is) return ui;
5226
5243
  Is = 1;
5227
- const e = Bo();
5244
+ const e = Go();
5228
5245
  return ui = (i, l) => {
5229
5246
  const p = e(i, l);
5230
5247
  return p ? p.version : null;
5231
5248
  }, ui;
5232
5249
  }
5233
5250
  var fi, Ts;
5234
- function Mc() {
5251
+ function Rc() {
5235
5252
  if (Ts) return fi;
5236
5253
  Ts = 1;
5237
- const e = Bo();
5254
+ const e = Go();
5238
5255
  return fi = (i, l) => {
5239
5256
  const p = e(i.trim().replace(/^[=v]+/, ""), l);
5240
5257
  return p ? p.version : null;
5241
5258
  }, fi;
5242
5259
  }
5243
- const Go = /* @__PURE__ */ JSON.parse('["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","metamail","mpi-permissive","mpich2","mplus","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]'), Dc = [
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 = [
5244
5261
  "AGPL-1.0",
5245
5262
  "AGPL-3.0",
5246
5263
  "BSD-2-Clause-FreeBSD",
@@ -5339,7 +5356,7 @@ var hi, ks;
5339
5356
  function Bc() {
5340
5357
  if (ks) return hi;
5341
5358
  ks = 1;
5342
- var e = [].concat(Go).concat(Dc), t = Fc;
5359
+ var e = [].concat(qo).concat(Dc), t = Fc;
5343
5360
  return hi = function(i) {
5344
5361
  var l = 0;
5345
5362
  function p() {
@@ -5477,13 +5494,13 @@ function Gc() {
5477
5494
  if (v) {
5478
5495
  if (!s(d))
5479
5496
  return v;
5480
- var S = y();
5481
- if (!S)
5497
+ var w = y();
5498
+ if (!w)
5482
5499
  throw new Error("Expected expression");
5483
5500
  return {
5484
5501
  left: v,
5485
5502
  conjunction: d.toLowerCase(),
5486
- right: S
5503
+ right: w
5487
5504
  };
5488
5505
  }
5489
5506
  };
@@ -5494,20 +5511,20 @@ function Gc() {
5494
5511
  return f;
5495
5512
  }), pi;
5496
5513
  }
5497
- var di, Rs;
5498
- function qo() {
5499
- if (Rs) return di;
5500
- Rs = 1;
5514
+ var di, Ms;
5515
+ function jo() {
5516
+ if (Ms) return di;
5517
+ Ms = 1;
5501
5518
  var e = Bc(), t = Gc();
5502
5519
  return di = function(i) {
5503
5520
  return t(e(i));
5504
5521
  }, di;
5505
5522
  }
5506
- var mi, Ms;
5523
+ var mi, Rs;
5507
5524
  function qc() {
5508
- if (Ms) return mi;
5509
- Ms = 1;
5510
- var e = qo(), t = Go;
5525
+ if (Rs) return mi;
5526
+ Rs = 1;
5527
+ var e = jo(), t = qo;
5511
5528
  function i(y) {
5512
5529
  try {
5513
5530
  return e(y), !0;
@@ -5516,8 +5533,8 @@ function qc() {
5516
5533
  }
5517
5534
  }
5518
5535
  function l(y, v) {
5519
- var S = v[0].length - y[0].length;
5520
- return S !== 0 ? S : y[0].toUpperCase().localeCompare(v[0].toUpperCase());
5536
+ var w = v[0].length - y[0].length;
5537
+ return w !== 0 ? w : y[0].toUpperCase().localeCompare(v[0].toUpperCase());
5521
5538
  }
5522
5539
  var p = [
5523
5540
  ["APGL", "AGPL"],
@@ -5668,8 +5685,8 @@ function qc() {
5668
5685
  var v = /^(.*)-\d+\.\d+$/.exec(y);
5669
5686
  return v ? [v[0], v[1]] : [y, null];
5670
5687
  }).reduce(function(y, v) {
5671
- var S = v[1];
5672
- return y[S] = y[S] || [], y[S].push(v[0]), y;
5688
+ var w = v[1];
5689
+ return y[w] = y[w] || [], y[w].push(v[0]), y;
5673
5690
  }, {}), m = Object.keys(o).map(function(v) {
5674
5691
  return [v, o[v]];
5675
5692
  }).filter(function(v) {
@@ -5714,24 +5731,24 @@ function qc() {
5714
5731
  ["ZLIB", "Zlib"]
5715
5732
  ].concat(m).sort(l), u = 0, a = 1, r = function(y) {
5716
5733
  for (var v = 0; v < h.length; v++) {
5717
- var S = h[v](y).trim();
5718
- if (S !== y && i(S))
5719
- return S;
5734
+ var w = h[v](y).trim();
5735
+ if (w !== y && i(w))
5736
+ return w;
5720
5737
  }
5721
5738
  return null;
5722
5739
  }, f = function(y) {
5723
- for (var v = y.toUpperCase(), S = 0; S < n.length; S++) {
5724
- var b = n[S];
5740
+ for (var v = y.toUpperCase(), w = 0; w < n.length; w++) {
5741
+ var b = n[w];
5725
5742
  if (v.indexOf(b[u]) > -1)
5726
5743
  return b[a];
5727
5744
  }
5728
5745
  return null;
5729
5746
  }, d = function(y, v) {
5730
- for (var S = 0; S < p.length; S++) {
5731
- var b = p[S], w = b[s];
5732
- if (y.indexOf(w) > -1) {
5747
+ for (var w = 0; w < p.length; w++) {
5748
+ var b = p[w], S = b[s];
5749
+ if (y.indexOf(S) > -1) {
5733
5750
  var L = y.replace(
5734
- w,
5751
+ S,
5735
5752
  b[c]
5736
5753
  ), O = v(L);
5737
5754
  if (O !== null)
@@ -5742,12 +5759,12 @@ function qc() {
5742
5759
  };
5743
5760
  mi = function(y, v) {
5744
5761
  v = v || {};
5745
- var S = v.upgrade === void 0 ? !0 : !!v.upgrade;
5762
+ var w = v.upgrade === void 0 ? !0 : !!v.upgrade;
5746
5763
  function b($) {
5747
- return S ? g($) : $;
5764
+ return w ? g($) : $;
5748
5765
  }
5749
- var w = typeof y == "string" && y.trim().length !== 0;
5750
- if (!w)
5766
+ var S = typeof y == "string" && y.trim().length !== 0;
5767
+ if (!S)
5751
5768
  throw Error("Invalid argument. Expected non-empty string.");
5752
5769
  if (y = y.trim(), i(y))
5753
5770
  return b(y);
@@ -5785,7 +5802,7 @@ var gi, Ds;
5785
5802
  function jc() {
5786
5803
  if (Ds) return gi;
5787
5804
  Ds = 1;
5788
- var e = qo(), t = qc(), i = 'license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"', l = /^SEE LICEN[CS]E IN (.+)$/;
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 (.+)$/;
5789
5806
  function p(c, h) {
5790
5807
  return h.slice(0, c.length) === c;
5791
5808
  }
@@ -5987,9 +6004,9 @@ function Uc() {
5987
6004
  #b;
5988
6005
  #l;
5989
6006
  #v;
5990
- #w;
5991
- #d;
5992
6007
  #S;
6008
+ #d;
6009
+ #w;
5993
6010
  #O;
5994
6011
  #h;
5995
6012
  /**
@@ -6004,7 +6021,7 @@ function Uc() {
6004
6021
  static unsafeExposeInternals(r) {
6005
6022
  return {
6006
6023
  // properties
6007
- starts: r.#w,
6024
+ starts: r.#S,
6008
6025
  ttls: r.#d,
6009
6026
  sizes: r.#v,
6010
6027
  keyMap: r.#r,
@@ -6075,7 +6092,7 @@ function Uc() {
6075
6092
  return this.#g;
6076
6093
  }
6077
6094
  constructor(r) {
6078
- const { max: f = 0, ttl: d, ttlResolution: g = 1, ttlAutopurge: y, updateAgeOnGet: v, updateAgeOnHas: S, allowStale: b, dispose: w, disposeAfter: L, noDisposeOnSet: O, noUpdateTTL: $, maxSize: _ = 0, maxEntrySize: P = 0, sizeCalculation: I, fetchMethod: B, memoMethod: F, noDeleteOnFetchRejection: D, noDeleteOnStaleGet: M, allowStaleOnFetchRejection: G, allowStaleOnFetchAbort: T, ignoreFetchAbort: Y } = r;
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;
6079
6096
  if (f !== 0 && !h(f))
6080
6097
  throw new TypeError("max option must be a nonnegative integer");
6081
6098
  const j = f ? o(f) : Array;
@@ -6091,17 +6108,17 @@ function Uc() {
6091
6108
  throw new TypeError("memoMethod must be a function if defined");
6092
6109
  if (this.#I = F, B !== void 0 && typeof B != "function")
6093
6110
  throw new TypeError("fetchMethod must be a function if specified");
6094
- if (this.#P = B, this.#O = !!B, this.#r = /* @__PURE__ */ new Map(), this.#n = new Array(f).fill(void 0), this.#e = new Array(f).fill(void 0), this.#f = new j(f), this.#p = new j(f), this.#u = 0, this.#a = 0, this.#b = n.create(f), this.#o = 0, this.#y = 0, typeof w == "function" && (this.#t = w), typeof L == "function" ? (this.#g = L, this.#l = []) : (this.#g = void 0, this.#l = void 0), this.#S = !!this.#t, this.#h = !!this.#g, this.noDisposeOnSet = !!O, this.noUpdateTTL = !!$, this.noDeleteOnFetchRejection = !!D, this.allowStaleOnFetchRejection = !!G, this.allowStaleOnFetchAbort = !!T, this.ignoreFetchAbort = !!Y, this.maxEntrySize !== 0) {
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) {
6095
6112
  if (this.#c !== 0 && !h(this.#c))
6096
6113
  throw new TypeError("maxSize must be a positive integer if specified");
6097
6114
  if (!h(this.maxEntrySize))
6098
6115
  throw new TypeError("maxEntrySize must be a positive integer if specified");
6099
6116
  this.#q();
6100
6117
  }
6101
- if (this.allowStale = !!b, this.noDeleteOnStaleGet = !!M, this.updateAgeOnGet = !!v, this.updateAgeOnHas = !!S, this.ttlResolution = h(g) || g === 0 ? g : 1, this.ttlAutopurge = !!y, this.ttl = d || 0, this.ttl) {
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) {
6102
6119
  if (!h(this.ttl))
6103
6120
  throw new TypeError("ttl must be a positive integer if specified");
6104
- this.#R();
6121
+ this.#M();
6105
6122
  }
6106
6123
  if (this.#s === 0 && this.ttl === 0 && this.#c === 0)
6107
6124
  throw new TypeError("At least one of max, maxSize, or ttl is required");
@@ -6117,10 +6134,10 @@ function Uc() {
6117
6134
  getRemainingTTL(r) {
6118
6135
  return this.#r.has(r) ? 1 / 0 : 0;
6119
6136
  }
6120
- #R() {
6137
+ #M() {
6121
6138
  const r = new m(this.#s), f = new m(this.#s);
6122
- this.#d = r, this.#w = f, this.#M = (y, v, S = e.now()) => {
6123
- if (f[y] = v !== 0 ? S : 0, r[y] = v, v !== 0 && this.ttlAutopurge) {
6139
+ this.#d = r, this.#S = f, this.#R = (y, v, w = e.now()) => {
6140
+ if (f[y] = v !== 0 ? w : 0, r[y] = v, v !== 0 && this.ttlAutopurge) {
6124
6141
  const b = setTimeout(() => {
6125
6142
  this.#m(y) && this.#A(this.#n[y], "expire");
6126
6143
  }, v + 1);
@@ -6130,12 +6147,12 @@ function Uc() {
6130
6147
  f[y] = r[y] !== 0 ? e.now() : 0;
6131
6148
  }, this.#L = (y, v) => {
6132
6149
  if (r[v]) {
6133
- const S = r[v], b = f[v];
6134
- if (!S || !b)
6150
+ const w = r[v], b = f[v];
6151
+ if (!w || !b)
6135
6152
  return;
6136
- y.ttl = S, y.start = b, y.now = d || g();
6137
- const w = y.now - b;
6138
- y.remainingTTL = S - w;
6153
+ y.ttl = w, y.start = b, y.now = d || g();
6154
+ const S = y.now - b;
6155
+ y.remainingTTL = w - S;
6139
6156
  }
6140
6157
  };
6141
6158
  let d = 0;
@@ -6152,14 +6169,14 @@ function Uc() {
6152
6169
  const v = this.#r.get(y);
6153
6170
  if (v === void 0)
6154
6171
  return 0;
6155
- const S = r[v], b = f[v];
6156
- if (!S || !b)
6172
+ const w = r[v], b = f[v];
6173
+ if (!w || !b)
6157
6174
  return 1 / 0;
6158
- const w = (d || g()) - b;
6159
- return S - w;
6175
+ const S = (d || g()) - b;
6176
+ return w - S;
6160
6177
  }, this.#m = (y) => {
6161
- const v = f[y], S = r[y];
6162
- return !!S && !!v && (d || g()) - v > S;
6178
+ const v = f[y], w = r[y];
6179
+ return !!w && !!v && (d || g()) - v > w;
6163
6180
  };
6164
6181
  }
6165
6182
  // conditionally set private methods related to TTL
@@ -6167,7 +6184,7 @@ function Uc() {
6167
6184
  };
6168
6185
  #L = () => {
6169
6186
  };
6170
- #M = () => {
6187
+ #R = () => {
6171
6188
  };
6172
6189
  /* c8 ignore stop */
6173
6190
  #m = () => !1;
@@ -6357,10 +6374,10 @@ function Uc() {
6357
6374
  if (g === void 0)
6358
6375
  return;
6359
6376
  const y = { value: g };
6360
- if (this.#d && this.#w) {
6361
- const v = this.#d[f], S = this.#w[f];
6362
- if (v && S) {
6363
- const b = v - (e.now() - S);
6377
+ if (this.#d && this.#S) {
6378
+ const v = this.#d[f], w = this.#S[f];
6379
+ if (v && w) {
6380
+ const b = v - (e.now() - w);
6364
6381
  y.ttl = b, y.start = Date.now();
6365
6382
  }
6366
6383
  }
@@ -6386,10 +6403,10 @@ function Uc() {
6386
6403
  if (y === void 0 || d === void 0)
6387
6404
  continue;
6388
6405
  const v = { value: y };
6389
- if (this.#d && this.#w) {
6406
+ if (this.#d && this.#S) {
6390
6407
  v.ttl = this.#d[f];
6391
- const S = e.now() - this.#w[f];
6392
- v.start = Math.floor(Date.now() - S);
6408
+ const w = e.now() - this.#S[f];
6409
+ v.start = Math.floor(Date.now() - w);
6393
6410
  }
6394
6411
  this.#v && (v.size = this.#v[f]), r.unshift([d, v]);
6395
6412
  }
@@ -6447,14 +6464,14 @@ function Uc() {
6447
6464
  set(r, f, d = {}) {
6448
6465
  if (f === void 0)
6449
6466
  return this.delete(r), this;
6450
- const { ttl: g = this.ttl, start: y, noDisposeOnSet: v = this.noDisposeOnSet, sizeCalculation: S = this.sizeCalculation, status: b } = d;
6451
- let { noUpdateTTL: w = this.noUpdateTTL } = d;
6452
- const L = this.#D(r, f, d.size || 0, S);
6467
+ const { ttl: g = this.ttl, start: y, noDisposeOnSet: v = this.noDisposeOnSet, sizeCalculation: w = this.sizeCalculation, status: b } = d;
6468
+ let { noUpdateTTL: S = this.noUpdateTTL } = d;
6469
+ const L = this.#D(r, f, d.size || 0, w);
6453
6470
  if (this.maxEntrySize && L > this.maxEntrySize)
6454
6471
  return b && (b.set = "miss", b.maxEntrySizeExceeded = !0), this.#A(r, "set"), this;
6455
6472
  let O = this.#o === 0 ? void 0 : this.#r.get(r);
6456
6473
  if (O === void 0)
6457
- O = this.#o === 0 ? this.#a : this.#b.length !== 0 ? this.#b.pop() : this.#o === this.#s ? this.#k(!1) : this.#o, this.#n[O] = r, this.#e[O] = f, this.#r.set(r, O), this.#f[this.#a] = O, this.#p[O] = this.#a, this.#a = O, this.#o++, this.#T(O, L, b), b && (b.set = "add"), w = !1;
6474
+ O = this.#o === 0 ? this.#a : this.#b.length !== 0 ? this.#b.pop() : this.#o === this.#s ? this.#k(!1) : this.#o, this.#n[O] = r, this.#e[O] = f, this.#r.set(r, O), this.#f[this.#a] = O, this.#p[O] = this.#a, this.#a = O, this.#o++, this.#T(O, L, b), b && (b.set = "add"), S = !1;
6458
6475
  else {
6459
6476
  this.#N(O);
6460
6477
  const $ = this.#e[O];
@@ -6462,8 +6479,8 @@ function Uc() {
6462
6479
  if (this.#O && this.#i($)) {
6463
6480
  $.__abortController.abort(new Error("replaced"));
6464
6481
  const { __staleWhileFetching: _ } = $;
6465
- _ !== void 0 && !v && (this.#S && this.#t?.(_, r, "set"), this.#h && this.#l?.push([_, r, "set"]));
6466
- } else v || (this.#S && this.#t?.($, r, "set"), this.#h && this.#l?.push([$, r, "set"]));
6482
+ _ !== void 0 && !v && (this.#w && this.#t?.(_, r, "set"), this.#h && this.#l?.push([_, r, "set"]));
6483
+ } else v || (this.#w && this.#t?.($, r, "set"), this.#h && this.#l?.push([$, r, "set"]));
6467
6484
  if (this.#_(O), this.#T(O, L, b), this.#e[O] = f, b) {
6468
6485
  b.set = "replace";
6469
6486
  const _ = $ && this.#i($) ? $.__staleWhileFetching : $;
@@ -6471,7 +6488,7 @@ function Uc() {
6471
6488
  }
6472
6489
  } else b && (b.set = "update");
6473
6490
  }
6474
- if (g !== 0 && !this.#d && this.#R(), this.#d && (w || this.#M(O, g, y), b && this.#L(b, O)), !v && this.#h && this.#l) {
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) {
6475
6492
  const $ = this.#l;
6476
6493
  let _;
6477
6494
  for (; _ = $?.shift(); )
@@ -6504,7 +6521,7 @@ function Uc() {
6504
6521
  }
6505
6522
  #k(r) {
6506
6523
  const f = this.#u, d = this.#n[f], g = this.#e[f];
6507
- return this.#O && this.#i(g) ? g.__abortController.abort(new Error("evicted")) : (this.#S || this.#h) && (this.#S && this.#t?.(g, d, "evict"), this.#h && this.#l?.push([g, d, "evict"])), this.#_(f), r && (this.#n[f] = void 0, this.#e[f] = void 0, this.#b.push(f)), this.#o === 1 ? (this.#u = this.#a = 0, this.#b.length = 0) : this.#u = this.#f[f], this.#r.delete(d), this.#o--, f;
6524
+ return this.#O && this.#i(g) ? g.__abortController.abort(new Error("evicted")) : (this.#w || this.#h) && (this.#w && this.#t?.(g, d, "evict"), this.#h && this.#l?.push([g, d, "evict"])), this.#_(f), r && (this.#n[f] = void 0, this.#e[f] = void 0, this.#b.push(f)), this.#o === 1 ? (this.#u = this.#a = 0, this.#b.length = 0) : this.#u = this.#f[f], this.#r.delete(d), this.#o--, f;
6508
6525
  }
6509
6526
  /**
6510
6527
  * Check if a key is in the cache, without updating the recency of use.
@@ -6552,34 +6569,34 @@ function Uc() {
6552
6569
  const y = f === void 0 ? void 0 : this.#e[f];
6553
6570
  if (this.#i(y))
6554
6571
  return y;
6555
- const v = new p(), { signal: S } = d;
6556
- S?.addEventListener("abort", () => v.abort(S.reason), {
6572
+ const v = new p(), { signal: w } = d;
6573
+ w?.addEventListener("abort", () => v.abort(w.reason), {
6557
6574
  signal: v.signal
6558
6575
  });
6559
6576
  const b = {
6560
6577
  signal: v.signal,
6561
6578
  options: d,
6562
6579
  context: g
6563
- }, w = (I, B = !1) => {
6580
+ }, S = (I, B = !1) => {
6564
6581
  const { aborted: F } = v.signal, D = d.ignoreFetchAbort && I !== void 0;
6565
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)
6566
6583
  return O(v.signal.reason);
6567
- const M = _;
6568
- return this.#e[f] === _ && (I === void 0 ? M.__staleWhileFetching ? this.#e[f] = M.__staleWhileFetching : this.#A(r, "fetch") : (d.status && (d.status.fetchUpdated = !0), this.set(r, I, b.options))), I;
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;
6569
6586
  }, L = (I) => (d.status && (d.status.fetchRejected = !0, d.status.fetchError = I), O(I)), O = (I) => {
6570
- const { aborted: B } = v.signal, F = B && d.allowStaleOnFetchAbort, D = F || d.allowStaleOnFetchRejection, M = D || d.noDeleteOnFetchRejection, G = _;
6571
- if (this.#e[f] === _ && (!M || G.__staleWhileFetching === void 0 ? this.#A(r, "fetch") : F || (this.#e[f] = G.__staleWhileFetching)), D)
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)
6572
6589
  return d.status && G.__staleWhileFetching !== void 0 && (d.status.returnedStale = !0), G.__staleWhileFetching;
6573
6590
  if (G.__returned === G)
6574
6591
  throw I;
6575
6592
  }, $ = (I, B) => {
6576
6593
  const F = this.#P?.(r, y, b);
6577
6594
  F && F instanceof Promise && F.then((D) => I(D === void 0 ? void 0 : D), B), v.signal.addEventListener("abort", () => {
6578
- (!d.ignoreFetchAbort || d.allowStaleOnFetchAbort) && (I(void 0), d.allowStaleOnFetchAbort && (I = (D) => w(D, !0)));
6595
+ (!d.ignoreFetchAbort || d.allowStaleOnFetchAbort) && (I(void 0), d.allowStaleOnFetchAbort && (I = (D) => S(D, !0)));
6579
6596
  });
6580
6597
  };
6581
6598
  d.status && (d.status.fetchDispatched = !0);
6582
- const _ = new Promise($).then(w, L), P = Object.assign(_, {
6599
+ const _ = new Promise($).then(S, L), P = Object.assign(_, {
6583
6600
  __abortController: v,
6584
6601
  __staleWhileFetching: y,
6585
6602
  __returned: void 0
@@ -6600,9 +6617,9 @@ function Uc() {
6600
6617
  noDeleteOnStaleGet: y = this.noDeleteOnStaleGet,
6601
6618
  // set options
6602
6619
  ttl: v = this.ttl,
6603
- noDisposeOnSet: S = this.noDisposeOnSet,
6620
+ noDisposeOnSet: w = this.noDisposeOnSet,
6604
6621
  size: b = 0,
6605
- sizeCalculation: w = this.sizeCalculation,
6622
+ sizeCalculation: S = this.sizeCalculation,
6606
6623
  noUpdateTTL: L = this.noUpdateTTL,
6607
6624
  // fetch exclusive options
6608
6625
  noDeleteOnFetchRejection: O = this.noDeleteOnFetchRejection,
@@ -6621,14 +6638,14 @@ function Uc() {
6621
6638
  noDeleteOnStaleGet: y,
6622
6639
  status: F
6623
6640
  });
6624
- const M = {
6641
+ const R = {
6625
6642
  allowStale: d,
6626
6643
  updateAgeOnGet: g,
6627
6644
  noDeleteOnStaleGet: y,
6628
6645
  ttl: v,
6629
- noDisposeOnSet: S,
6646
+ noDisposeOnSet: w,
6630
6647
  size: b,
6631
- sizeCalculation: w,
6648
+ sizeCalculation: S,
6632
6649
  noUpdateTTL: L,
6633
6650
  noDeleteOnFetchRejection: O,
6634
6651
  allowStaleOnFetchRejection: $,
@@ -6640,7 +6657,7 @@ function Uc() {
6640
6657
  let G = this.#r.get(r);
6641
6658
  if (G === void 0) {
6642
6659
  F && (F.fetch = "miss");
6643
- const T = this.#x(r, G, M, I);
6660
+ const T = this.#x(r, G, R, I);
6644
6661
  return T.__returned = T;
6645
6662
  } else {
6646
6663
  const T = this.#e[G];
@@ -6648,11 +6665,11 @@ function Uc() {
6648
6665
  const ve = d && T.__staleWhileFetching !== void 0;
6649
6666
  return F && (F.fetch = "inflight", ve && (F.returnedStale = !0)), ve ? T.__staleWhileFetching : T.__returned = T;
6650
6667
  }
6651
- const Y = this.#m(G);
6652
- if (!B && !Y)
6668
+ const K = this.#m(G);
6669
+ if (!B && !K)
6653
6670
  return F && (F.fetch = "hit"), this.#N(G), g && this.#$(G), F && this.#L(F, G), T;
6654
- const j = this.#x(r, G, M, I), ie = j.__staleWhileFetching !== void 0 && d;
6655
- return F && (F.fetch = Y ? "stale" : "refresh", ie && Y && (F.returnedStale = !0)), ie ? j.__staleWhileFetching : j.__returned = j;
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;
6656
6673
  }
6657
6674
  }
6658
6675
  async forceFetch(r, f = {}) {
@@ -6665,10 +6682,10 @@ function Uc() {
6665
6682
  const d = this.#I;
6666
6683
  if (!d)
6667
6684
  throw new Error("no memoMethod provided to constructor");
6668
- const { context: g, forceRefresh: y, ...v } = f, S = this.get(r, v);
6669
- if (!y && S !== void 0)
6670
- return S;
6671
- const b = d(r, S, {
6685
+ const { context: g, forceRefresh: y, ...v } = f, w = this.get(r, v);
6686
+ if (!y && w !== void 0)
6687
+ return w;
6688
+ const b = d(r, w, {
6672
6689
  options: v,
6673
6690
  context: g
6674
6691
  });
@@ -6681,10 +6698,10 @@ function Uc() {
6681
6698
  * If the key is not found, get() will return `undefined`.
6682
6699
  */
6683
6700
  get(r, f = {}) {
6684
- const { allowStale: d = this.allowStale, updateAgeOnGet: g = this.updateAgeOnGet, noDeleteOnStaleGet: y = this.noDeleteOnStaleGet, status: v } = f, S = this.#r.get(r);
6685
- if (S !== void 0) {
6686
- const b = this.#e[S], w = this.#i(b);
6687
- return v && this.#L(v, S), this.#m(S) ? (v && (v.get = "stale"), w ? (v && d && b.__staleWhileFetching !== void 0 && (v.returnedStale = !0), d ? b.__staleWhileFetching : void 0) : (y || this.#A(r, "expire"), v && d && (v.returnedStale = !0), d ? b : void 0)) : (v && (v.get = "hit"), w ? b.__staleWhileFetching : (this.#N(S), g && this.#$(S), b));
6701
+ const { allowStale: d = this.allowStale, updateAgeOnGet: g = this.updateAgeOnGet, noDeleteOnStaleGet: y = this.noDeleteOnStaleGet, status: v } = f, w = this.#r.get(r);
6702
+ if (w !== void 0) {
6703
+ const b = this.#e[w], S = this.#i(b);
6704
+ return v && this.#L(v, w), this.#m(w) ? (v && (v.get = "stale"), S ? (v && d && b.__staleWhileFetching !== void 0 && (v.returnedStale = !0), d ? b.__staleWhileFetching : void 0) : (y || this.#A(r, "expire"), v && d && (v.returnedStale = !0), d ? b : void 0)) : (v && (v.get = "hit"), S ? b.__staleWhileFetching : (this.#N(w), g && this.#$(w), b));
6688
6705
  } else v && (v.get = "miss");
6689
6706
  }
6690
6707
  #B(r, f) {
@@ -6711,15 +6728,15 @@ function Uc() {
6711
6728
  else {
6712
6729
  this.#_(g);
6713
6730
  const y = this.#e[g];
6714
- if (this.#i(y) ? y.__abortController.abort(new Error("deleted")) : (this.#S || this.#h) && (this.#S && this.#t?.(y, r, f), this.#h && this.#l?.push([y, r, f])), this.#r.delete(r), this.#n[g] = void 0, this.#e[g] = void 0, g === this.#a)
6731
+ if (this.#i(y) ? y.__abortController.abort(new Error("deleted")) : (this.#w || this.#h) && (this.#w && this.#t?.(y, r, f), this.#h && this.#l?.push([y, r, f])), this.#r.delete(r), this.#n[g] = void 0, this.#e[g] = void 0, g === this.#a)
6715
6732
  this.#a = this.#p[g];
6716
6733
  else if (g === this.#u)
6717
6734
  this.#u = this.#f[g];
6718
6735
  else {
6719
6736
  const v = this.#p[g];
6720
6737
  this.#f[v] = this.#f[g];
6721
- const S = this.#f[g];
6722
- this.#p[S] = this.#p[g];
6738
+ const w = this.#f[g];
6739
+ this.#p[w] = this.#p[g];
6723
6740
  }
6724
6741
  this.#o--, this.#b.push(g);
6725
6742
  }
@@ -6745,10 +6762,10 @@ function Uc() {
6745
6762
  d.__abortController.abort(new Error("deleted"));
6746
6763
  else {
6747
6764
  const g = this.#n[f];
6748
- this.#S && this.#t?.(d, g, r), this.#h && this.#l?.push([d, g, r]);
6765
+ this.#w && this.#t?.(d, g, r), this.#h && this.#l?.push([d, g, r]);
6749
6766
  }
6750
6767
  }
6751
- if (this.#r.clear(), this.#e.fill(void 0), this.#n.fill(void 0), this.#d && this.#w && (this.#d.fill(0), this.#w.fill(0)), this.#v && this.#v.fill(0), this.#u = 0, this.#a = 0, this.#b.length = 0, this.#y = 0, this.#o = 0, this.#h && this.#l) {
6768
+ if (this.#r.clear(), this.#e.fill(void 0), this.#n.fill(void 0), this.#d && this.#S && (this.#d.fill(0), this.#S.fill(0)), this.#v && this.#v.fill(0), this.#u = 0, this.#a = 0, this.#b.length = 0, this.#y = 0, this.#o = 0, this.#h && this.#l) {
6752
6769
  const f = this.#l;
6753
6770
  let d;
6754
6771
  for (; d = f?.shift(); )
@@ -6877,10 +6894,10 @@ function Hc() {
6877
6894
  return yi = p, yi;
6878
6895
  }
6879
6896
  var bi, Gs;
6880
- function jo() {
6897
+ function Uo() {
6881
6898
  if (Gs) return bi;
6882
6899
  Gs = 1;
6883
- const e = Pa, t = (s, c, h) => {
6900
+ const e = Ia, t = (s, c, h) => {
6884
6901
  const o = s.indexOf(h);
6885
6902
  return s.lastIndexOf(c, o > -1 ? o : 1 / 0);
6886
6903
  }, i = (s) => {
@@ -6907,7 +6924,7 @@ var vi, qs;
6907
6924
  function Vc() {
6908
6925
  if (qs) return vi;
6909
6926
  qs = 1;
6910
- const e = jo(), t = (i) => {
6927
+ const e = Uo(), t = (i) => {
6911
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(".");
6912
6929
  return m && r && f && d && n && u && a;
6913
6930
  };
@@ -6929,8 +6946,8 @@ function Vc() {
6929
6946
  let y = h.pathname.startsWith("/") ? h.pathname.slice(1) : h.pathname;
6930
6947
  const v = y.indexOf("@");
6931
6948
  v > -1 && (y = y.slice(v + 1));
6932
- const S = y.lastIndexOf("/");
6933
- S > -1 ? (f = decodeURIComponent(y.slice(0, S)), f || (f = null), d = decodeURIComponent(y.slice(S + 1))) : d = decodeURIComponent(y), d.endsWith(".git") && (d = d.slice(0, -4)), h.hash && (r = decodeURIComponent(h.hash.slice(1))), g = "shortcut";
6949
+ const w = y.lastIndexOf("/");
6950
+ w > -1 ? (f = decodeURIComponent(y.slice(0, w)), f || (f = null), d = decodeURIComponent(y.slice(w + 1))) : d = decodeURIComponent(y), d.endsWith(".git") && (d = d.slice(0, -4)), h.hash && (r = decodeURIComponent(h.hash.slice(1))), g = "shortcut";
6934
6951
  } else {
6935
6952
  if (!u.protocols.includes(h.protocol))
6936
6953
  return;
@@ -6947,11 +6964,11 @@ function Vc() {
6947
6964
  return [n, f, a, d, r, g, l];
6948
6965
  }, vi;
6949
6966
  }
6950
- var wi, js;
6967
+ var Si, js;
6951
6968
  function Wc() {
6952
- if (js) return wi;
6969
+ if (js) return Si;
6953
6970
  js = 1;
6954
- const { LRUCache: e } = /* @__PURE__ */ Uc(), t = Hc(), i = Vc(), l = jo(), p = new e({ max: 1e3 });
6971
+ const { LRUCache: e } = /* @__PURE__ */ Uc(), t = Hc(), i = Vc(), l = Uo(), p = new e({ max: 1e3 });
6955
6972
  function s(h) {
6956
6973
  try {
6957
6974
  const {
@@ -7084,12 +7101,12 @@ function Wc() {
7084
7101
  }
7085
7102
  for (const [h, o] of Object.entries(t))
7086
7103
  c.addHost(h, o);
7087
- return wi = c, wi;
7104
+ return Si = c, Si;
7088
7105
  }
7089
- var Si, Us;
7090
- function Yc() {
7091
- if (Us) return Si;
7092
- Us = 1, Si = e;
7106
+ var wi, Us;
7107
+ function Kc() {
7108
+ if (Us) return wi;
7109
+ Us = 1, wi = e;
7093
7110
  function e(t) {
7094
7111
  if (!t || t === "ERROR: No README data found!")
7095
7112
  return;
@@ -7104,10 +7121,10 @@ function Yc() {
7104
7121
  p++;
7105
7122
  return t.slice(i, p).join(" ").trim();
7106
7123
  }
7107
- return Si;
7124
+ return wi;
7108
7125
  }
7109
- const Kc = { dependancies: "dependencies", dependecies: "dependencies", depdenencies: "dependencies", devEependencies: "devDependencies", depends: "dependencies", "dev-dependencies": "devDependencies", devDependences: "devDependencies", devDepenencies: "devDependencies", devdependencies: "devDependencies", repostitory: "repository", repo: "repository", prefereGlobal: "preferGlobal", hompage: "homepage", hampage: "homepage", autohr: "author", autor: "author", contributers: "contributors", publicationConfig: "publishConfig", script: "scripts" }, Jc = { web: "url", name: "url" }, zc = { server: "start", tests: "test" }, Xc = {
7110
- topLevel: Kc,
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 = {
7127
+ topLevel: Yc,
7111
7128
  bugs: Jc,
7112
7129
  script: zc
7113
7130
  };
@@ -7115,7 +7132,7 @@ var Ei, Hs;
7115
7132
  function Qc() {
7116
7133
  if (Hs) return Ei;
7117
7134
  Hs = 1;
7118
- var { URL: e } = Na, t = Rc(), i = Mc(), l = jc(), p = Wc(), { isBuiltin: s } = Ia, c = ["dependencies", "devDependencies", "optionalDependencies"], h = Yc(), o = Xc, m = (b) => b.includes("@") && b.indexOf("@") < b.lastIndexOf(".");
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(".");
7119
7136
  Ei = {
7120
7137
  // default warning function
7121
7138
  warn: function() {
@@ -7127,16 +7144,16 @@ function Qc() {
7127
7144
  type: "git",
7128
7145
  url: b.repository
7129
7146
  });
7130
- var w = b.repository.url || "";
7131
- if (w) {
7132
- var L = p.fromUrl(w);
7133
- L && (w = b.repository.url = L.getDefaultRepresentation() === "shortcut" ? L.https() : L.toString());
7147
+ var S = b.repository.url || "";
7148
+ if (S) {
7149
+ var L = p.fromUrl(S);
7150
+ L && (S = b.repository.url = L.getDefaultRepresentation() === "shortcut" ? L.https() : L.toString());
7134
7151
  }
7135
- w.match(/github.com\/[^/]+\/[^/]+\.git\.git$/) && this.warn("brokenGitUrl", w);
7152
+ S.match(/github.com\/[^/]+\/[^/]+\.git\.git$/) && this.warn("brokenGitUrl", S);
7136
7153
  },
7137
7154
  fixTypos: function(b) {
7138
- Object.keys(o.topLevel).forEach(function(w) {
7139
- Object.prototype.hasOwnProperty.call(b, w) && this.warn("typo", w, o.topLevel[w]);
7155
+ Object.keys(o.topLevel).forEach(function(S) {
7156
+ Object.prototype.hasOwnProperty.call(b, S) && this.warn("typo", S, o.topLevel[S]);
7140
7157
  }, this);
7141
7158
  },
7142
7159
  fixScriptsField: function(b) {
@@ -7145,44 +7162,44 @@ function Qc() {
7145
7162
  this.warn("nonObjectScripts"), delete b.scripts;
7146
7163
  return;
7147
7164
  }
7148
- Object.keys(b.scripts).forEach(function(w) {
7149
- typeof b.scripts[w] != "string" ? (this.warn("nonStringScript"), delete b.scripts[w]) : o.script[w] && !b.scripts[o.script[w]] && this.warn("typo", w, o.script[w], "scripts");
7165
+ Object.keys(b.scripts).forEach(function(S) {
7166
+ typeof b.scripts[S] != "string" ? (this.warn("nonStringScript"), delete b.scripts[S]) : o.script[S] && !b.scripts[o.script[S]] && this.warn("typo", S, o.script[S], "scripts");
7150
7167
  }, this);
7151
7168
  }
7152
7169
  },
7153
7170
  fixFilesField: function(b) {
7154
- var w = b.files;
7155
- w && !Array.isArray(w) ? (this.warn("nonArrayFiles"), delete b.files) : b.files && (b.files = b.files.filter(function(L) {
7171
+ var S = b.files;
7172
+ S && !Array.isArray(S) ? (this.warn("nonArrayFiles"), delete b.files) : b.files && (b.files = b.files.filter(function(L) {
7156
7173
  return !L || typeof L != "string" ? (this.warn("invalidFilename", L), !1) : !0;
7157
7174
  }, this));
7158
7175
  },
7159
7176
  fixBinField: function(b) {
7160
7177
  if (b.bin && typeof b.bin == "string") {
7161
- var w = {}, L;
7162
- (L = b.name.match(/^@[^/]+[/](.*)$/)) ? w[L[1]] = b.bin : w[b.name] = b.bin, b.bin = w;
7178
+ var S = {}, L;
7179
+ (L = b.name.match(/^@[^/]+[/](.*)$/)) ? S[L[1]] = b.bin : S[b.name] = b.bin, b.bin = S;
7163
7180
  }
7164
7181
  },
7165
7182
  fixManField: function(b) {
7166
7183
  b.man && typeof b.man == "string" && (b.man = [b.man]);
7167
7184
  },
7168
7185
  fixBundleDependenciesField: function(b) {
7169
- var w = "bundledDependencies", L = "bundleDependencies";
7170
- b[w] && !b[L] && (b[L] = b[w], delete b[w]), b[L] && !Array.isArray(b[L]) ? (this.warn("nonArrayBundleDependencies"), delete b[L]) : b[L] && (b[L] = b[L].filter(function(O) {
7186
+ var S = "bundledDependencies", L = "bundleDependencies";
7187
+ b[S] && !b[L] && (b[L] = b[S], delete b[S]), b[L] && !Array.isArray(b[L]) ? (this.warn("nonArrayBundleDependencies"), delete b[L]) : b[L] && (b[L] = b[L].filter(function(O) {
7171
7188
  return !O || typeof O != "string" ? (this.warn("nonStringBundleDependency", O), !1) : (b.dependencies || (b.dependencies = {}), Object.prototype.hasOwnProperty.call(b.dependencies, O) || (this.warn("nonDependencyBundleDependency", O), b.dependencies[O] = "*"), !0);
7172
7189
  }, this));
7173
7190
  },
7174
7191
  fixDependencies: function(b) {
7175
- v(b, this.warn), g(b, this.warn), this.fixBundleDependenciesField(b), ["dependencies", "devDependencies"].forEach(function(w) {
7176
- if (w in b) {
7177
- if (!b[w] || typeof b[w] != "object") {
7178
- this.warn("nonObjectDependencies", w), delete b[w];
7192
+ v(b, this.warn), g(b, this.warn), this.fixBundleDependenciesField(b), ["dependencies", "devDependencies"].forEach(function(S) {
7193
+ if (S in b) {
7194
+ if (!b[S] || typeof b[S] != "object") {
7195
+ this.warn("nonObjectDependencies", S), delete b[S];
7179
7196
  return;
7180
7197
  }
7181
- Object.keys(b[w]).forEach(function(L) {
7182
- var O = b[w][L];
7183
- typeof O != "string" && (this.warn("nonStringDependency", L, JSON.stringify(O)), delete b[w][L]);
7184
- var $ = p.fromUrl(b[w][L]);
7185
- $ && (b[w][L] = $.toString());
7198
+ Object.keys(b[S]).forEach(function(L) {
7199
+ var O = b[S][L];
7200
+ typeof O != "string" && (this.warn("nonStringDependency", L, JSON.stringify(O)), delete b[S][L]);
7201
+ var $ = p.fromUrl(b[S][L]);
7202
+ $ && (b[S][L] = $.toString());
7186
7203
  }, this);
7187
7204
  }
7188
7205
  }, this);
@@ -7191,12 +7208,12 @@ function Qc() {
7191
7208
  b.modules && (this.warn("deprecatedModules"), delete b.modules);
7192
7209
  },
7193
7210
  fixKeywordsField: function(b) {
7194
- typeof b.keywords == "string" && (b.keywords = b.keywords.split(/,\s+/)), b.keywords && !Array.isArray(b.keywords) ? (delete b.keywords, this.warn("nonArrayKeywords")) : b.keywords && (b.keywords = b.keywords.filter(function(w) {
7195
- return typeof w != "string" || !w ? (this.warn("nonStringKeyword"), !1) : !0;
7211
+ typeof b.keywords == "string" && (b.keywords = b.keywords.split(/,\s+/)), b.keywords && !Array.isArray(b.keywords) ? (delete b.keywords, this.warn("nonArrayKeywords")) : b.keywords && (b.keywords = b.keywords.filter(function(S) {
7212
+ return typeof S != "string" || !S ? (this.warn("nonStringKeyword"), !1) : !0;
7196
7213
  }, this));
7197
7214
  },
7198
- fixVersionField: function(b, w) {
7199
- var L = !w;
7215
+ fixVersionField: function(b, S) {
7216
+ var L = !S;
7200
7217
  if (!b.version)
7201
7218
  return b.version = "", !0;
7202
7219
  if (!t(b.version, L))
@@ -7206,16 +7223,16 @@ function Qc() {
7206
7223
  fixPeople: function(b) {
7207
7224
  r(b, f), r(b, d);
7208
7225
  },
7209
- fixNameField: function(b, w) {
7210
- typeof w == "boolean" ? w = { strict: w } : typeof w > "u" && (w = {});
7211
- var L = w.strict;
7226
+ fixNameField: function(b, S) {
7227
+ typeof S == "boolean" ? S = { strict: S } : typeof S > "u" && (S = {});
7228
+ var L = S.strict;
7212
7229
  if (!b.name && !L) {
7213
7230
  b.name = "";
7214
7231
  return;
7215
7232
  }
7216
7233
  if (typeof b.name != "string")
7217
7234
  throw new Error("name field must be a string.");
7218
- L || (b.name = b.name.trim()), a(b.name, L, w.allowLegacyCase), s(b.name) && this.warn("conflictingName", b.name);
7235
+ L || (b.name = b.name.trim()), a(b.name, L, S.allowLegacyCase), s(b.name) && this.warn("conflictingName", b.name);
7219
7236
  },
7220
7237
  fixDescriptionField: function(b) {
7221
7238
  b.description && typeof b.description != "string" && (this.warn("nonStringDescription"), delete b.description), b.readme && !b.description && (b.description = h(b.readme)), b.description === void 0 && delete b.description, b.description || this.warn("missingDescription");
@@ -7225,13 +7242,13 @@ function Qc() {
7225
7242
  },
7226
7243
  fixBugsField: function(b) {
7227
7244
  if (!b.bugs && b.repository && b.repository.url) {
7228
- var w = p.fromUrl(b.repository.url);
7229
- w && w.bugs() && (b.bugs = { url: w.bugs() });
7245
+ var S = p.fromUrl(b.repository.url);
7246
+ S && S.bugs() && (b.bugs = { url: S.bugs() });
7230
7247
  } else if (b.bugs) {
7231
7248
  if (typeof b.bugs == "string")
7232
7249
  m(b.bugs) ? b.bugs = { email: b.bugs } : e.canParse(b.bugs) ? b.bugs = { url: b.bugs } : this.warn("nonEmailUrlBugsString");
7233
7250
  else {
7234
- S(b.bugs, this.warn);
7251
+ w(b.bugs, this.warn);
7235
7252
  var L = b.bugs;
7236
7253
  b.bugs = {}, L.url && (e.canParse(L.url) ? b.bugs.url = L.url : this.warn("nonUrlBugsUrlField")), L.email && (typeof L.email == "string" && m(L.email) ? b.bugs.email = L.email : this.warn("nonEmailBugsEmailField"));
7237
7254
  }
@@ -7240,8 +7257,8 @@ function Qc() {
7240
7257
  },
7241
7258
  fixHomepageField: function(b) {
7242
7259
  if (!b.homepage && b.repository && b.repository.url) {
7243
- var w = p.fromUrl(b.repository.url);
7244
- w && w.docs() && (b.homepage = w.docs());
7260
+ var S = p.fromUrl(b.repository.url);
7261
+ S && S.docs() && (b.homepage = S.docs());
7245
7262
  }
7246
7263
  if (b.homepage) {
7247
7264
  if (typeof b.homepage != "string")
@@ -7250,60 +7267,60 @@ function Qc() {
7250
7267
  }
7251
7268
  },
7252
7269
  fixLicenseField: function(b) {
7253
- const w = b.license || b.licence;
7254
- if (!w)
7270
+ const S = b.license || b.licence;
7271
+ if (!S)
7255
7272
  return this.warn("missingLicense");
7256
- if (typeof w != "string" || w.length < 1 || w.trim() === "")
7273
+ if (typeof S != "string" || S.length < 1 || S.trim() === "")
7257
7274
  return this.warn("invalidLicense");
7258
- if (!l(w).validForNewPackages)
7275
+ if (!l(S).validForNewPackages)
7259
7276
  return this.warn("invalidLicense");
7260
7277
  }
7261
7278
  };
7262
7279
  function n(b) {
7263
7280
  if (b.charAt(0) !== "@")
7264
7281
  return !1;
7265
- var w = b.slice(1).split("/");
7266
- return w.length !== 2 ? !1 : w[0] && w[1] && w[0] === encodeURIComponent(w[0]) && w[1] === encodeURIComponent(w[1]);
7282
+ var S = b.slice(1).split("/");
7283
+ return S.length !== 2 ? !1 : S[0] && S[1] && S[0] === encodeURIComponent(S[0]) && S[1] === encodeURIComponent(S[1]);
7267
7284
  }
7268
7285
  function u(b) {
7269
7286
  return !b.match(/[/@\s+%:]/) && b === encodeURIComponent(b);
7270
7287
  }
7271
- function a(b, w, L) {
7272
- if (b.charAt(0) === "." || !(n(b) || u(b)) || w && !L && b !== b.toLowerCase() || b.toLowerCase() === "node_modules" || b.toLowerCase() === "favicon.ico")
7288
+ function a(b, S, L) {
7289
+ if (b.charAt(0) === "." || !(n(b) || u(b)) || S && !L && b !== b.toLowerCase() || b.toLowerCase() === "node_modules" || b.toLowerCase() === "favicon.ico")
7273
7290
  throw new Error("Invalid name: " + JSON.stringify(b));
7274
7291
  }
7275
- function r(b, w) {
7276
- return b.author && (b.author = w(b.author)), ["maintainers", "contributors"].forEach(function(L) {
7277
- Array.isArray(b[L]) && (b[L] = b[L].map(w));
7292
+ function r(b, S) {
7293
+ return b.author && (b.author = S(b.author)), ["maintainers", "contributors"].forEach(function(L) {
7294
+ Array.isArray(b[L]) && (b[L] = b[L].map(S));
7278
7295
  }), b;
7279
7296
  }
7280
7297
  function f(b) {
7281
7298
  if (typeof b == "string")
7282
7299
  return b;
7283
- var w = b.name || "", L = b.url || b.web, O = L ? " (" + L + ")" : "", $ = b.email || b.mail, _ = $ ? " <" + $ + ">" : "";
7284
- return w + _ + O;
7300
+ var S = b.name || "", L = b.url || b.web, O = L ? " (" + L + ")" : "", $ = b.email || b.mail, _ = $ ? " <" + $ + ">" : "";
7301
+ return S + _ + O;
7285
7302
  }
7286
7303
  function d(b) {
7287
7304
  if (typeof b != "string")
7288
7305
  return b;
7289
- var w = b.match(/^([^(<]+)/), L = b.match(/\(([^()]+)\)/), O = b.match(/<([^<>]+)>/), $ = {};
7290
- return w && w[0].trim() && ($.name = w[0].trim()), O && ($.email = O[1]), L && ($.url = L[1]), $;
7306
+ var S = b.match(/^([^(<]+)/), L = b.match(/\(([^()]+)\)/), O = b.match(/<([^<>]+)>/), $ = {};
7307
+ return S && S[0].trim() && ($.name = S[0].trim()), O && ($.email = O[1]), L && ($.url = L[1]), $;
7291
7308
  }
7292
7309
  function g(b) {
7293
- var w = b.optionalDependencies;
7294
- if (w) {
7310
+ var S = b.optionalDependencies;
7311
+ if (S) {
7295
7312
  var L = b.dependencies || {};
7296
- Object.keys(w).forEach(function(O) {
7297
- L[O] = w[O];
7313
+ Object.keys(S).forEach(function(O) {
7314
+ L[O] = S[O];
7298
7315
  }), b.dependencies = L;
7299
7316
  }
7300
7317
  }
7301
- function y(b, w, L) {
7318
+ function y(b, S, L) {
7302
7319
  if (!b)
7303
7320
  return {};
7304
7321
  if (typeof b == "string" && (b = b.trim().split(/[\n\r\s\t ,]+/)), !Array.isArray(b))
7305
7322
  return b;
7306
- L("deprecatedArrayDependencies", w);
7323
+ L("deprecatedArrayDependencies", S);
7307
7324
  var O = {};
7308
7325
  return b.filter(function($) {
7309
7326
  return typeof $ == "string";
@@ -7313,19 +7330,19 @@ function Qc() {
7313
7330
  P = P.trim(), P = P.replace(/^@/, ""), O[_] = P;
7314
7331
  }), O;
7315
7332
  }
7316
- function v(b, w) {
7333
+ function v(b, S) {
7317
7334
  c.forEach(function(L) {
7318
- b[L] && (b[L] = y(b[L], L, w));
7335
+ b[L] && (b[L] = y(b[L], L, S));
7319
7336
  });
7320
7337
  }
7321
- function S(b, w) {
7338
+ function w(b, S) {
7322
7339
  b && Object.keys(b).forEach(function(L) {
7323
- o.bugs[L] && (w("typo", L, o.bugs[L], "bugs"), b[o.bugs[L]] = b[L], delete b[L]);
7340
+ o.bugs[L] && (S("typo", L, o.bugs[L], "bugs"), b[o.bugs[L]] = b[L], delete b[L]);
7324
7341
  });
7325
7342
  }
7326
7343
  return Ei;
7327
7344
  }
7328
- const Zc = "'repositories' (plural) Not supported. Please pick one as the 'repository' field", eu = "No repository field.", tu = "Probably broken git url: %s", iu = "scripts must be an object", nu = "script values must be string commands", su = "Invalid 'files' member", ru = "Invalid filename in 'files' list: %s", ou = "Invalid 'bundleDependencies' list. Must be array of package names", au = "Invalid bundleDependencies member: %s", lu = "Non-dependency in bundleDependencies: %s", cu = "%s field must be an object", uu = "Invalid dependency: %s %s", fu = "specifying %s as array is deprecated", hu = "modules field is deprecated", pu = "keywords should be an array of strings", du = "keywords should be an array of strings", mu = "%s is also the name of a node core module.", gu = "'description' field should be a string", yu = "No description", bu = "No README data", vu = "No license field.", wu = "Bug string field must be url, email, or {email,url}", Su = "bugs.url field must be a string url. Deleted.", Eu = "bugs.email field must be a string email. Deleted.", Cu = "Normalized value of bugs field is an empty object. Deleted.", Au = "homepage field must be a string url. Deleted.", Lu = "license should be a valid SPDX license expression", Ou = "%s should probably be %s.", $u = {
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 = {
7329
7346
  repositories: Zc,
7330
7347
  missingRepository: eu,
7331
7348
  brokenGitUrl: tu,
@@ -7347,8 +7364,8 @@ const Zc = "'repositories' (plural) Not supported. Please pick one as the 'repos
7347
7364
  missingDescription: yu,
7348
7365
  missingReadme: bu,
7349
7366
  missingLicense: vu,
7350
- nonEmailUrlBugsString: wu,
7351
- nonUrlBugsUrlField: Su,
7367
+ nonEmailUrlBugsString: Su,
7368
+ nonUrlBugsUrlField: wu,
7352
7369
  nonEmailBugsEmailField: Eu,
7353
7370
  emptyNormalizedBugs: Cu,
7354
7371
  nonUrlHomepage: Au,
@@ -7359,7 +7376,7 @@ var Ci, Vs;
7359
7376
  function _u() {
7360
7377
  if (Vs) return Ci;
7361
7378
  Vs = 1;
7362
- var e = $a, t = $u;
7379
+ var e = _a, t = $u;
7363
7380
  Ci = function() {
7364
7381
  var l = Array.prototype.slice.call(arguments, 0), p = l.shift();
7365
7382
  if (p === "typo")
@@ -7411,11 +7428,11 @@ function Nu() {
7411
7428
  return Ai;
7412
7429
  }
7413
7430
  var Pu = Nu();
7414
- const Iu = /* @__PURE__ */ Nn(Pu);
7415
- var W = {}, Li = {}, Oi = {}, te = {}, Ys;
7431
+ const Iu = /* @__PURE__ */ Pn(Pu);
7432
+ var W = {}, Li = {}, Oi = {}, te = {}, Ks;
7416
7433
  function H() {
7417
- if (Ys) return te;
7418
- Ys = 1;
7434
+ if (Ks) return te;
7435
+ Ks = 1;
7419
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;
7420
7437
  function r(g) {
7421
7438
  if (g && typeof g == "object")
@@ -7440,10 +7457,10 @@ function H() {
7440
7457
  const d = (g) => (u(g) || r(g)) && !!g.anchor;
7441
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;
7442
7459
  }
7443
- var mt = {}, Ks;
7444
- function Mt() {
7445
- if (Ks) return mt;
7446
- Ks = 1;
7460
+ var mt = {}, Ys;
7461
+ function Rt() {
7462
+ if (Ys) return mt;
7463
+ Ys = 1;
7447
7464
  var e = H();
7448
7465
  const t = /* @__PURE__ */ Symbol("break visit"), i = /* @__PURE__ */ Symbol("skip children"), l = /* @__PURE__ */ Symbol("remove node");
7449
7466
  function p(u, a) {
@@ -7563,10 +7580,10 @@ function Mt() {
7563
7580
  return mt.visit = p, mt.visitAsync = c, mt;
7564
7581
  }
7565
7582
  var Js;
7566
- function Uo() {
7583
+ function Ho() {
7567
7584
  if (Js) return Oi;
7568
7585
  Js = 1;
7569
- var e = H(), t = Mt();
7586
+ var e = H(), t = Rt();
7570
7587
  const i = {
7571
7588
  "!": "%21",
7572
7589
  ",": "%2C",
@@ -7686,10 +7703,10 @@ function Uo() {
7686
7703
  return p.defaultYaml = { explicit: !1, version: "1.2" }, p.defaultTags = { "!!": "tag:yaml.org,2002:" }, Oi.Directives = p, Oi;
7687
7704
  }
7688
7705
  var $i = {}, _i = {}, Pe = {}, zs;
7689
- function qn() {
7706
+ function jn() {
7690
7707
  if (zs) return Pe;
7691
7708
  zs = 1;
7692
- var e = H(), t = Mt();
7709
+ var e = H(), t = Rt();
7693
7710
  function i(c) {
7694
7711
  if (/[\x00-\x19\s,[\]{}]/.test(c)) {
7695
7712
  const o = `Anchor must not contain whitespace or control characters: ${JSON.stringify(c)}`;
@@ -7743,7 +7760,7 @@ function qn() {
7743
7760
  return Pe.anchorIsValid = i, Pe.anchorNames = l, Pe.createNodeAnchors = s, Pe.findNewAnchor = p, Pe;
7744
7761
  }
7745
7762
  var Ni = {}, Pi = {}, Xs;
7746
- function Ho() {
7763
+ function Vo() {
7747
7764
  if (Xs) return Pi;
7748
7765
  Xs = 1;
7749
7766
  function e(t, i, l, p) {
@@ -7795,10 +7812,10 @@ function Oe() {
7795
7812
  return Ii.toJS = t, Ii;
7796
7813
  }
7797
7814
  var Zs;
7798
- function jn() {
7815
+ function Un() {
7799
7816
  if (Zs) return Ni;
7800
7817
  Zs = 1;
7801
- var e = Ho(), t = H(), i = Oe();
7818
+ var e = Vo(), t = H(), i = Oe();
7802
7819
  class l {
7803
7820
  constructor(s) {
7804
7821
  Object.defineProperty(this, t.NODE_TYPE, { value: s });
@@ -7832,7 +7849,7 @@ var er;
7832
7849
  function Dt() {
7833
7850
  if (er) return _i;
7834
7851
  er = 1;
7835
- var e = qn(), t = Mt(), i = H(), l = jn(), p = Oe();
7852
+ var e = jn(), t = Rt(), i = H(), l = Un(), p = Oe();
7836
7853
  let s = class extends l.NodeBase {
7837
7854
  constructor(o) {
7838
7855
  super(i.ALIAS), this.source = o, Object.defineProperty(this, "tag", {
@@ -7917,7 +7934,7 @@ var Ge = {}, Ti = {}, gt = {}, tr;
7917
7934
  function ee() {
7918
7935
  if (tr) return gt;
7919
7936
  tr = 1;
7920
- var e = H(), t = jn(), i = Oe();
7937
+ var e = H(), t = Un(), i = Oe();
7921
7938
  const l = (s) => !s || typeof s != "function" && typeof s != "object";
7922
7939
  let p = class extends t.NodeBase {
7923
7940
  constructor(c) {
@@ -7978,10 +7995,10 @@ function Ft() {
7978
7995
  return Ti.createNode = s, Ti;
7979
7996
  }
7980
7997
  var nr;
7981
- function Un() {
7998
+ function Hn() {
7982
7999
  if (nr) return Ge;
7983
8000
  nr = 1;
7984
- var e = Ft(), t = H(), i = jn();
8001
+ var e = Ft(), t = H(), i = Un();
7985
8002
  function l(c, h, o) {
7986
8003
  let m = o;
7987
8004
  for (let n = h.length - 1; n >= 0; --n) {
@@ -8129,11 +8146,11 @@ function Tu() {
8129
8146
  const f = [], d = {};
8130
8147
  let g = m - c.length;
8131
8148
  typeof o == "number" && (o > m - Math.max(2, n) ? f.push(0) : g = m - o);
8132
- let y, v, S = !1, b = -1, w = -1, L = -1;
8149
+ let y, v, w = !1, b = -1, S = -1, L = -1;
8133
8150
  h === t && (b = p(s, b, c.length), b !== -1 && (g = b + r));
8134
8151
  for (let $; $ = s[b += 1]; ) {
8135
8152
  if (h === i && $ === "\\") {
8136
- switch (w = b, s[b + 1]) {
8153
+ switch (S = b, s[b + 1]) {
8137
8154
  case "x":
8138
8155
  b += 3;
8139
8156
  break;
@@ -8163,17 +8180,17 @@ function Tu() {
8163
8180
  f.push(y), g = y + r, y = void 0;
8164
8181
  else if (h === i) {
8165
8182
  for (; v === " " || v === " "; )
8166
- v = $, $ = s[b += 1], S = !0;
8167
- const _ = b > L + 1 ? b - 2 : w - 1;
8183
+ v = $, $ = s[b += 1], w = !0;
8184
+ const _ = b > L + 1 ? b - 2 : S - 1;
8168
8185
  if (d[_])
8169
8186
  return s;
8170
8187
  f.push(_), d[_] = !0, g = _ + r, y = void 0;
8171
8188
  } else
8172
- S = !0;
8189
+ w = !0;
8173
8190
  }
8174
8191
  v = $;
8175
8192
  }
8176
- if (S && a && a(), f.length === 0)
8193
+ if (w && a && a(), f.length === 0)
8177
8194
  return s;
8178
8195
  u && u();
8179
8196
  let O = s.slice(0, f[0]);
@@ -8232,13 +8249,13 @@ function Gt() {
8232
8249
  if (r.options.doubleQuotedAsJSON)
8233
8250
  return f;
8234
8251
  const { implicitKey: d } = r, g = r.options.doubleQuotedMinMultiLineLength, y = r.indent || (l(a) ? " " : "");
8235
- let v = "", S = 0;
8236
- for (let b = 0, w = f[b]; w; w = f[++b])
8237
- if (w === " " && f[b + 1] === "\\" && f[b + 2] === "n" && (v += f.slice(S, b) + "\\ ", b += 1, S = b, w = "\\"), w === "\\")
8252
+ let v = "", w = 0;
8253
+ for (let b = 0, S = f[b]; S; S = f[++b])
8254
+ if (S === " " && f[b + 1] === "\\" && f[b + 2] === "n" && (v += f.slice(w, b) + "\\ ", b += 1, w = b, S = "\\"), S === "\\")
8238
8255
  switch (f[b + 1]) {
8239
8256
  case "u":
8240
8257
  {
8241
- v += f.slice(S, b);
8258
+ v += f.slice(w, b);
8242
8259
  const L = f.substr(b + 2, 4);
8243
8260
  switch (L) {
8244
8261
  case "0000":
@@ -8268,25 +8285,25 @@ function Gt() {
8268
8285
  default:
8269
8286
  L.substr(0, 2) === "00" ? v += "\\x" + L.substr(2) : v += f.substr(b, 6);
8270
8287
  }
8271
- b += 5, S = b + 1;
8288
+ b += 5, w = b + 1;
8272
8289
  }
8273
8290
  break;
8274
8291
  case "n":
8275
8292
  if (d || f[b + 2] === '"' || f.length < g)
8276
8293
  b += 1;
8277
8294
  else {
8278
- for (v += f.slice(S, b) + `
8295
+ for (v += f.slice(w, b) + `
8279
8296
 
8280
8297
  `; f[b + 2] === "\\" && f[b + 3] === "n" && f[b + 4] !== '"'; )
8281
8298
  v += `
8282
8299
  `, b += 2;
8283
- v += y, f[b + 2] === " " && (v += "\\"), b += 1, S = b + 1;
8300
+ v += y, f[b + 2] === " " && (v += "\\"), b += 1, w = b + 1;
8284
8301
  }
8285
8302
  break;
8286
8303
  default:
8287
8304
  b += 1;
8288
8305
  }
8289
- return v = S ? v + f.slice(S) : f, d ? v : t.foldFlowLines(v, y, t.FOLD_QUOTED, i(r, !1));
8306
+ return v = w ? v + f.slice(w) : f, d ? v : t.foldFlowLines(v, y, t.FOLD_QUOTED, i(r, !1));
8290
8307
  }
8291
8308
  function c(a, r) {
8292
8309
  if (r.options.singleQuote === !1 || r.implicitKey && a.includes(`
@@ -8317,10 +8334,10 @@ ${f}`) + "'";
8317
8334
  o = /\n+(?!\n|$)/g;
8318
8335
  }
8319
8336
  function m({ comment: a, type: r, value: f }, d, g, y) {
8320
- const { blockQuote: v, commentString: S, lineWidth: b } = d.options;
8337
+ const { blockQuote: v, commentString: w, lineWidth: b } = d.options;
8321
8338
  if (!v || /\n[\t ]+$/.test(f))
8322
8339
  return h(f, d);
8323
- const w = d.indent || (d.forceBlockIndent || l(f) ? " " : ""), L = v === "literal" ? !0 : v === "folded" || r === e.Scalar.BLOCK_FOLDED ? !1 : r === e.Scalar.BLOCK_LITERAL ? !0 : !p(f, b, w.length);
8340
+ const S = d.indent || (d.forceBlockIndent || l(f) ? " " : ""), L = v === "literal" ? !0 : v === "folded" || r === e.Scalar.BLOCK_FOLDED ? !1 : r === e.Scalar.BLOCK_LITERAL ? !0 : !p(f, b, S.length);
8324
8341
  if (!f)
8325
8342
  return L ? `|
8326
8343
  ` : `>
@@ -8336,7 +8353,7 @@ ${f}`) + "'";
8336
8353
  const P = _.indexOf(`
8337
8354
  `);
8338
8355
  P === -1 ? O = "-" : f === _ || P !== _.length - 1 ? (O = "+", y && y()) : O = "", _ && (f = f.slice(0, -_.length), _[_.length - 1] === `
8339
- ` && (_ = _.slice(0, -1)), _ = _.replace(o, `$&${w}`));
8356
+ ` && (_ = _.slice(0, -1)), _ = _.replace(o, `$&${S}`));
8340
8357
  let I = !1, B, F = -1;
8341
8358
  for (B = 0; B < f.length; ++B) {
8342
8359
  const T = f[B];
@@ -8349,39 +8366,39 @@ ${f}`) + "'";
8349
8366
  break;
8350
8367
  }
8351
8368
  let D = f.substring(0, F < B ? F + 1 : B);
8352
- D && (f = f.substring(D.length), D = D.replace(/\n+/g, `$&${w}`));
8353
- let G = (I ? w ? "2" : "1" : "") + O;
8354
- if (a && (G += " " + S(a.replace(/ ?[\r\n]+/g, " ")), g && g()), !L) {
8369
+ D && (f = f.substring(D.length), D = D.replace(/\n+/g, `$&${S}`));
8370
+ let G = (I ? S ? "2" : "1" : "") + O;
8371
+ if (a && (G += " " + w(a.replace(/ ?[\r\n]+/g, " ")), g && g()), !L) {
8355
8372
  const T = f.replace(/\n+/g, `
8356
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${w}`);
8357
- let Y = !1;
8373
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${S}`);
8374
+ let K = !1;
8358
8375
  const j = i(d, !0);
8359
8376
  v !== "folded" && r !== e.Scalar.BLOCK_FOLDED && (j.onOverflow = () => {
8360
- Y = !0;
8377
+ K = !0;
8361
8378
  });
8362
- const U = t.foldFlowLines(`${D}${T}${_}`, w, t.FOLD_BLOCK, j);
8363
- if (!Y)
8379
+ const U = t.foldFlowLines(`${D}${T}${_}`, S, t.FOLD_BLOCK, j);
8380
+ if (!K)
8364
8381
  return `>${G}
8365
- ${w}${U}`;
8382
+ ${S}${U}`;
8366
8383
  }
8367
- return f = f.replace(/\n+/g, `$&${w}`), `|${G}
8368
- ${w}${D}${f}${_}`;
8384
+ return f = f.replace(/\n+/g, `$&${S}`), `|${G}
8385
+ ${S}${D}${f}${_}`;
8369
8386
  }
8370
8387
  function n(a, r, f, d) {
8371
- const { type: g, value: y } = a, { actualString: v, implicitKey: S, indent: b, indentStep: w, inFlow: L } = r;
8372
- if (S && y.includes(`
8388
+ const { type: g, value: y } = a, { actualString: v, implicitKey: w, indent: b, indentStep: S, inFlow: L } = r;
8389
+ if (w && y.includes(`
8373
8390
  `) || L && /[[\]{},]/.test(y))
8374
8391
  return h(y, r);
8375
8392
  if (/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(y))
8376
- return S || L || !y.includes(`
8393
+ return w || L || !y.includes(`
8377
8394
  `) ? h(y, r) : m(a, r, f, d);
8378
- if (!S && !L && g !== e.Scalar.PLAIN && y.includes(`
8395
+ if (!w && !L && g !== e.Scalar.PLAIN && y.includes(`
8379
8396
  `))
8380
8397
  return m(a, r, f, d);
8381
8398
  if (l(y)) {
8382
8399
  if (b === "")
8383
8400
  return r.forceBlockIndent = !0, m(a, r, f, d);
8384
- if (S && b === w)
8401
+ if (w && b === S)
8385
8402
  return h(y, r);
8386
8403
  }
8387
8404
  const O = y.replace(/\n+/g, `$&
@@ -8391,12 +8408,12 @@ ${b}`);
8391
8408
  if (P.some($) || _?.some($))
8392
8409
  return h(y, r);
8393
8410
  }
8394
- return S ? O : t.foldFlowLines(O, b, t.FOLD_FLOW, i(r, !1));
8411
+ return w ? O : t.foldFlowLines(O, b, t.FOLD_FLOW, i(r, !1));
8395
8412
  }
8396
8413
  function u(a, r, f, d) {
8397
8414
  const { implicitKey: g, inFlow: y } = r, v = typeof a.value == "string" ? a : Object.assign({}, a, { value: String(a.value) });
8398
- let { type: S } = a;
8399
- S !== e.Scalar.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(v.value) && (S = e.Scalar.QUOTE_DOUBLE);
8415
+ let { type: w } = a;
8416
+ w !== e.Scalar.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(v.value) && (w = e.Scalar.QUOTE_DOUBLE);
8400
8417
  const b = (L) => {
8401
8418
  switch (L) {
8402
8419
  case e.Scalar.BLOCK_FOLDED:
@@ -8412,13 +8429,13 @@ ${b}`);
8412
8429
  return null;
8413
8430
  }
8414
8431
  };
8415
- let w = b(S);
8416
- if (w === null) {
8432
+ let S = b(w);
8433
+ if (S === null) {
8417
8434
  const { defaultKeyType: L, defaultStringType: O } = r.options, $ = g && L || O;
8418
- if (w = b($), w === null)
8435
+ if (S = b($), S === null)
8419
8436
  throw new Error(`Unsupported default string type ${$}`);
8420
8437
  }
8421
- return w;
8438
+ return S;
8422
8439
  }
8423
8440
  return xi.stringifyString = u, xi;
8424
8441
  }
@@ -8426,7 +8443,7 @@ var ar;
8426
8443
  function qt() {
8427
8444
  if (ar) return bt;
8428
8445
  ar = 1;
8429
- var e = qn(), t = H(), i = Bt(), l = Gt();
8446
+ var e = jn(), t = H(), i = Bt(), l = Gt();
8430
8447
  function p(o, m) {
8431
8448
  const n = Object.assign({
8432
8449
  blockQuote: !0,
@@ -8543,21 +8560,21 @@ function ku() {
8543
8560
  implicitKey: !v && (g || !n),
8544
8561
  indent: a + r
8545
8562
  });
8546
- let S = !1, b = !1, w = i.stringify(s, h, () => S = !0, () => b = !0);
8547
- if (!v && !h.inFlow && w.length > 1024) {
8563
+ let w = !1, b = !1, S = i.stringify(s, h, () => w = !0, () => b = !0);
8564
+ if (!v && !h.inFlow && S.length > 1024) {
8548
8565
  if (g)
8549
8566
  throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
8550
8567
  v = !0;
8551
8568
  }
8552
8569
  if (h.inFlow) {
8553
8570
  if (n || c == null)
8554
- return S && o && o(), w === "" ? "?" : v ? `? ${w}` : w;
8571
+ return w && o && o(), S === "" ? "?" : v ? `? ${S}` : S;
8555
8572
  } else if (n && !g || c == null && v)
8556
- return w = `? ${w}`, y && !S ? w += l.lineComment(w, h.indent, f(y)) : b && m && m(), w;
8557
- S && (y = null), v ? (y && (w += l.lineComment(w, h.indent, f(y))), w = `? ${w}
8558
- ${a}:`) : (w = `${w}:`, y && (w += l.lineComment(w, h.indent, f(y))));
8573
+ return S = `? ${S}`, y && !w ? S += l.lineComment(S, h.indent, f(y)) : b && m && m(), S;
8574
+ w && (y = null), v ? (y && (S += l.lineComment(S, h.indent, f(y))), S = `? ${S}
8575
+ ${a}:`) : (S = `${S}:`, y && (S += l.lineComment(S, h.indent, f(y))));
8559
8576
  let L, O, $;
8560
- e.isNode(c) ? (L = !!c.spaceBefore, O = c.commentBefore, $ = c.comment) : (L = !1, O = null, $ = null, c && typeof c == "object" && (c = u.createNode(c))), h.implicitKey = !1, !v && !y && e.isScalar(c) && (h.indentAtStart = w.length + 1), b = !1, !d && r.length >= 2 && !h.inFlow && !v && e.isSeq(c) && !c.flow && !c.tag && !c.anchor && (h.indent = h.indent.substring(2));
8577
+ e.isNode(c) ? (L = !!c.spaceBefore, O = c.commentBefore, $ = c.comment) : (L = !1, O = null, $ = null, c && typeof c == "object" && (c = u.createNode(c))), h.implicitKey = !1, !v && !y && e.isScalar(c) && (h.indentAtStart = S.length + 1), b = !1, !d && r.length >= 2 && !h.inFlow && !v && e.isSeq(c) && !c.flow && !c.tag && !c.anchor && (h.indent = h.indent.substring(2));
8561
8578
  let _ = !1;
8562
8579
  const P = i.stringify(c, h, () => _ = !0, () => b = !0);
8563
8580
  let I = " ";
@@ -8575,8 +8592,8 @@ ${l.indentComment(B, h.indent)}`;
8575
8592
  ${h.indent}`;
8576
8593
  } else if (!v && e.isCollection(c)) {
8577
8594
  const B = P[0], F = P.indexOf(`
8578
- `), D = F !== -1, M = h.inFlow ?? c.flow ?? c.items.length === 0;
8579
- if (D || !M) {
8595
+ `), D = F !== -1, R = h.inFlow ?? c.flow ?? c.items.length === 0;
8596
+ if (D || !R) {
8580
8597
  let G = !1;
8581
8598
  if (D && (B === "&" || B === "!")) {
8582
8599
  let T = P.indexOf(" ");
@@ -8587,12 +8604,12 @@ ${h.indent}`);
8587
8604
  }
8588
8605
  } else (P === "" || P[0] === `
8589
8606
  `) && (I = "");
8590
- return w += I + P, h.inFlow ? _ && o && o() : $ && !_ ? w += l.lineComment(w, h.indent, f($)) : b && m && m(), w;
8607
+ return S += I + P, h.inFlow ? _ && o && o() : $ && !_ ? S += l.lineComment(S, h.indent, f($)) : b && m && m(), S;
8591
8608
  }
8592
8609
  return ki.stringifyPair = p, ki;
8593
8610
  }
8594
- var Ri = {}, vt = {}, cr;
8595
- function Vo() {
8611
+ var Mi = {}, vt = {}, cr;
8612
+ function Wo() {
8596
8613
  if (cr) return vt;
8597
8614
  cr = 1;
8598
8615
  var e = Ee;
@@ -8605,7 +8622,7 @@ function Vo() {
8605
8622
  return vt.debug = t, vt.warn = i, vt;
8606
8623
  }
8607
8624
  var je = {}, ur;
8608
- function Hn() {
8625
+ function Vn() {
8609
8626
  if (ur) return je;
8610
8627
  ur = 1;
8611
8628
  var e = H(), t = ee();
@@ -8650,10 +8667,10 @@ function Hn() {
8650
8667
  return je.addMergeToJSMap = s, je.isMergeKey = p, je.merge = l, je;
8651
8668
  }
8652
8669
  var fr;
8653
- function Wo() {
8654
- if (fr) return Ri;
8670
+ function Ko() {
8671
+ if (fr) return Mi;
8655
8672
  fr = 1;
8656
- var e = Vo(), t = Hn(), i = qt(), l = H(), p = Oe();
8673
+ var e = Wo(), t = Vn(), i = qt(), l = H(), p = Oe();
8657
8674
  function s(h, o, { key: m, value: n }) {
8658
8675
  if (l.isNode(m) && m.addToJSMap)
8659
8676
  m.addToJSMap(h, o, n);
@@ -8697,13 +8714,13 @@ function Wo() {
8697
8714
  }
8698
8715
  return JSON.stringify(o);
8699
8716
  }
8700
- return Ri.addPairToJSMap = s, Ri;
8717
+ return Mi.addPairToJSMap = s, Mi;
8701
8718
  }
8702
8719
  var hr;
8703
8720
  function $e() {
8704
8721
  if (hr) return yt;
8705
8722
  hr = 1;
8706
- var e = Ft(), t = ku(), i = Wo(), l = H();
8723
+ var e = Ft(), t = ku(), i = Ko(), l = H();
8707
8724
  function p(c, h, o) {
8708
8725
  const m = e.createNode(c, void 0, o), n = e.createNode(h, void 0, o);
8709
8726
  return new s(m, n);
@@ -8726,8 +8743,8 @@ function $e() {
8726
8743
  };
8727
8744
  return yt.Pair = s, yt.createPair = p, yt;
8728
8745
  }
8729
- var Mi = {}, Di = {}, wt = {}, Fi = {}, pr;
8730
- function Ko() {
8746
+ var Ri = {}, Di = {}, St = {}, Fi = {}, pr;
8747
+ function Jo() {
8731
8748
  if (pr) return Fi;
8732
8749
  pr = 1;
8733
8750
  var e = H(), t = qt(), i = Bt();
@@ -8737,27 +8754,27 @@ function Ko() {
8737
8754
  function p({ comment: h, items: o }, m, { blockItemPrefix: n, flowChars: u, itemIndent: a, onChompKeep: r, onComment: f }) {
8738
8755
  const { indent: d, options: { commentString: g } } = m, y = Object.assign({}, m, { indent: a, type: null });
8739
8756
  let v = !1;
8740
- const S = [];
8741
- for (let w = 0; w < o.length; ++w) {
8742
- const L = o[w];
8757
+ const w = [];
8758
+ for (let S = 0; S < o.length; ++S) {
8759
+ const L = o[S];
8743
8760
  let O = null;
8744
8761
  if (e.isNode(L))
8745
- !v && L.spaceBefore && S.push(""), c(m, S, L.commentBefore, v), L.comment && (O = L.comment);
8762
+ !v && L.spaceBefore && w.push(""), c(m, w, L.commentBefore, v), L.comment && (O = L.comment);
8746
8763
  else if (e.isPair(L)) {
8747
8764
  const _ = e.isNode(L.key) ? L.key : null;
8748
- _ && (!v && _.spaceBefore && S.push(""), c(m, S, _.commentBefore, v));
8765
+ _ && (!v && _.spaceBefore && w.push(""), c(m, w, _.commentBefore, v));
8749
8766
  }
8750
8767
  v = !1;
8751
8768
  let $ = t.stringify(L, y, () => O = null, () => v = !0);
8752
- O && ($ += i.lineComment($, a, g(O))), v && O && (v = !1), S.push(n + $);
8769
+ O && ($ += i.lineComment($, a, g(O))), v && O && (v = !1), w.push(n + $);
8753
8770
  }
8754
8771
  let b;
8755
- if (S.length === 0)
8772
+ if (w.length === 0)
8756
8773
  b = u.start + u.end;
8757
8774
  else {
8758
- b = S[0];
8759
- for (let w = 1; w < S.length; ++w) {
8760
- const L = S[w];
8775
+ b = w[0];
8776
+ for (let S = 1; S < w.length; ++S) {
8777
+ const L = w[S];
8761
8778
  b += L ? `
8762
8779
  ${d}${L}` : `
8763
8780
  `;
@@ -8776,8 +8793,8 @@ ${d}${L}` : `
8776
8793
  });
8777
8794
  let g = !1, y = 0;
8778
8795
  const v = [];
8779
- for (let w = 0; w < h.length; ++w) {
8780
- const L = h[w];
8796
+ for (let S = 0; S < h.length; ++S) {
8797
+ const L = h[S];
8781
8798
  let O = null;
8782
8799
  if (e.isNode(L))
8783
8800
  L.spaceBefore && v.push(""), c(o, v, L.commentBefore, !1), L.comment && (O = L.comment);
@@ -8790,25 +8807,25 @@ ${d}${L}` : `
8790
8807
  O && (g = !0);
8791
8808
  let $ = t.stringify(L, d, () => O = null);
8792
8809
  g || (g = v.length > y || $.includes(`
8793
- `)), w < h.length - 1 ? $ += "," : o.options.trailingComma && (o.options.lineWidth > 0 && (g || (g = v.reduce((_, P) => _ + P.length + 2, 2) + ($.length + 2) > o.options.lineWidth)), g && ($ += ",")), O && ($ += i.lineComment($, n, f(O))), v.push($), y = v.length;
8810
+ `)), S < h.length - 1 ? $ += "," : o.options.trailingComma && (o.options.lineWidth > 0 && (g || (g = v.reduce((_, P) => _ + P.length + 2, 2) + ($.length + 2) > o.options.lineWidth)), g && ($ += ",")), O && ($ += i.lineComment($, n, f(O))), v.push($), y = v.length;
8794
8811
  }
8795
- const { start: S, end: b } = m;
8812
+ const { start: w, end: b } = m;
8796
8813
  if (v.length === 0)
8797
- return S + b;
8814
+ return w + b;
8798
8815
  if (!g) {
8799
- const w = v.reduce((L, O) => L + O.length + 2, 2);
8800
- g = o.options.lineWidth > 0 && w > o.options.lineWidth;
8816
+ const S = v.reduce((L, O) => L + O.length + 2, 2);
8817
+ g = o.options.lineWidth > 0 && S > o.options.lineWidth;
8801
8818
  }
8802
8819
  if (g) {
8803
- let w = S;
8820
+ let S = w;
8804
8821
  for (const L of v)
8805
- w += L ? `
8822
+ S += L ? `
8806
8823
  ${a}${u}${L}` : `
8807
8824
  `;
8808
- return `${w}
8825
+ return `${S}
8809
8826
  ${u}${b}`;
8810
8827
  } else
8811
- return `${S}${r}${v.join(" ")}${r}${b}`;
8828
+ return `${w}${r}${v.join(" ")}${r}${b}`;
8812
8829
  }
8813
8830
  function c({ indent: h, options: { commentString: o } }, m, n, u) {
8814
8831
  if (n && u && (n = n.replace(/^\n+/, "")), n) {
@@ -8820,9 +8837,9 @@ ${u}${b}`;
8820
8837
  }
8821
8838
  var dr;
8822
8839
  function _e() {
8823
- if (dr) return wt;
8840
+ if (dr) return St;
8824
8841
  dr = 1;
8825
- var e = Ko(), t = Wo(), i = Un(), l = H(), p = $e(), s = ee();
8842
+ var e = Jo(), t = Ko(), i = Hn(), l = H(), p = $e(), s = ee();
8826
8843
  function c(o, m) {
8827
8844
  const n = l.isScalar(m) ? m.value : m;
8828
8845
  for (const u of o)
@@ -8917,7 +8934,7 @@ function _e() {
8917
8934
  });
8918
8935
  }
8919
8936
  };
8920
- return wt.YAMLMap = h, wt.findPair = c, wt;
8937
+ return St.YAMLMap = h, St.findPair = c, St;
8921
8938
  }
8922
8939
  var mr;
8923
8940
  function Ze() {
@@ -8940,7 +8957,7 @@ var Bi = {}, Gi = {}, gr;
8940
8957
  function Ne() {
8941
8958
  if (gr) return Gi;
8942
8959
  gr = 1;
8943
- var e = Ft(), t = Ko(), i = Un(), l = H(), p = ee(), s = Oe();
8960
+ var e = Ft(), t = Jo(), i = Hn(), l = H(), p = ee(), s = Oe();
8944
8961
  let c = class extends i.Collection {
8945
8962
  static get tagName() {
8946
8963
  return "tag:yaml.org,2002:seq";
@@ -9065,8 +9082,8 @@ function jt() {
9065
9082
  };
9066
9083
  return qi.string = t, qi;
9067
9084
  }
9068
- var St = {}, ji = {}, vr;
9069
- function Vn() {
9085
+ var wt = {}, ji = {}, vr;
9086
+ function Wn() {
9070
9087
  if (vr) return ji;
9071
9088
  vr = 1;
9072
9089
  var e = ee();
@@ -9081,10 +9098,10 @@ function Vn() {
9081
9098
  };
9082
9099
  return ji.nullTag = t, ji;
9083
9100
  }
9084
- var Ui = {}, wr;
9085
- function Jo() {
9086
- if (wr) return Ui;
9087
- wr = 1;
9101
+ var Ui = {}, Sr;
9102
+ function zo() {
9103
+ if (Sr) return Ui;
9104
+ Sr = 1;
9088
9105
  var e = ee();
9089
9106
  const t = {
9090
9107
  identify: (i) => typeof i == "boolean",
@@ -9103,10 +9120,10 @@ function Jo() {
9103
9120
  };
9104
9121
  return Ui.boolTag = t, Ui;
9105
9122
  }
9106
- var Ue = {}, Hi = {}, Sr;
9123
+ var Ue = {}, Hi = {}, wr;
9107
9124
  function tt() {
9108
- if (Sr) return Hi;
9109
- Sr = 1;
9125
+ if (wr) return Hi;
9126
+ wr = 1;
9110
9127
  function e({ format: t, minFractionDigits: i, tag: l, value: p }) {
9111
9128
  if (typeof p == "bigint")
9112
9129
  return String(p);
@@ -9126,7 +9143,7 @@ function tt() {
9126
9143
  return Hi.stringifyNumber = e, Hi;
9127
9144
  }
9128
9145
  var Er;
9129
- function zo() {
9146
+ function Xo() {
9130
9147
  if (Er) return Ue;
9131
9148
  Er = 1;
9132
9149
  var e = ee(), t = tt();
@@ -9162,7 +9179,7 @@ function zo() {
9162
9179
  return Ue.float = p, Ue.floatExp = l, Ue.floatNaN = i, Ue;
9163
9180
  }
9164
9181
  var He = {}, Cr;
9165
- function Xo() {
9182
+ function Qo() {
9166
9183
  if (Cr) return He;
9167
9184
  Cr = 1;
9168
9185
  var e = tt();
@@ -9201,7 +9218,7 @@ var Vi = {}, Ar;
9201
9218
  function xu() {
9202
9219
  if (Ar) return Vi;
9203
9220
  Ar = 1;
9204
- var e = Ze(), t = Vn(), i = et(), l = jt(), p = Jo(), s = zo(), c = Xo();
9221
+ var e = Ze(), t = Wn(), i = et(), l = jt(), p = zo(), s = Xo(), c = Qo();
9205
9222
  const h = [
9206
9223
  e.map,
9207
9224
  i.seq,
@@ -9218,7 +9235,7 @@ function xu() {
9218
9235
  return Vi.schema = h, Vi;
9219
9236
  }
9220
9237
  var Wi = {}, Lr;
9221
- function Ru() {
9238
+ function Mu() {
9222
9239
  if (Lr) return Wi;
9223
9240
  Lr = 1;
9224
9241
  var e = ee(), t = Ze(), i = et();
@@ -9276,11 +9293,11 @@ function Ru() {
9276
9293
  }, h = [t.map, i.seq].concat(s, c);
9277
9294
  return Wi.schema = h, Wi;
9278
9295
  }
9279
- var Yi = {}, Or;
9280
- function Qo() {
9281
- if (Or) return Yi;
9296
+ var Ki = {}, Or;
9297
+ function Zo() {
9298
+ if (Or) return Ki;
9282
9299
  Or = 1;
9283
- var e = Ta, t = ee(), i = Gt();
9300
+ var e = ka, t = ee(), i = Gt();
9284
9301
  const l = {
9285
9302
  identify: (p) => p instanceof Uint8Array,
9286
9303
  // Buffer inherits from Uint8Array
@@ -9329,10 +9346,10 @@ function Qo() {
9329
9346
  return i.stringifyString({ comment: p, type: s, value: u }, h, o, m);
9330
9347
  }
9331
9348
  };
9332
- return Yi.binary = l, Yi;
9349
+ return Ki.binary = l, Ki;
9333
9350
  }
9334
9351
  var Et = {}, Ve = {}, $r;
9335
- function Wn() {
9352
+ function Kn() {
9336
9353
  if ($r) return Ve;
9337
9354
  $r = 1;
9338
9355
  var e = H(), t = $e(), i = ee(), l = Ne();
@@ -9394,10 +9411,10 @@ ${a.comment}` : n.comment;
9394
9411
  return Ve.createPairs = s, Ve.pairs = c, Ve.resolvePairs = p, Ve;
9395
9412
  }
9396
9413
  var _r;
9397
- function Zo() {
9414
+ function ea() {
9398
9415
  if (_r) return Et;
9399
9416
  _r = 1;
9400
- var e = H(), t = Oe(), i = _e(), l = Ne(), p = Wn();
9417
+ var e = H(), t = Oe(), i = _e(), l = Ne(), p = Kn();
9401
9418
  class s extends l.YAMLSeq {
9402
9419
  constructor() {
9403
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;
@@ -9441,8 +9458,8 @@ function Zo() {
9441
9458
  };
9442
9459
  return Et.YAMLOMap = s, Et.omap = c, Et;
9443
9460
  }
9444
- var Ki = {}, Ct = {}, Nr;
9445
- function Mu() {
9461
+ var Yi = {}, Ct = {}, Nr;
9462
+ function Ru() {
9446
9463
  if (Nr) return Ct;
9447
9464
  Nr = 1;
9448
9465
  var e = ee();
@@ -9575,7 +9592,7 @@ function Fu() {
9575
9592
  return Te.int = c, Te.intBin = p, Te.intHex = h, Te.intOct = s, Te;
9576
9593
  }
9577
9594
  var At = {}, Tr;
9578
- function ea() {
9595
+ function ta() {
9579
9596
  if (Tr) return At;
9580
9597
  Tr = 1;
9581
9598
  var e = H(), t = $e(), i = _e();
@@ -9639,9 +9656,9 @@ function ea() {
9639
9656
  };
9640
9657
  return At.YAMLSet = l, At.set = p, At;
9641
9658
  }
9642
- var Ye = {}, kr;
9643
- function ta() {
9644
- if (kr) return Ye;
9659
+ var Ke = {}, kr;
9660
+ function ia() {
9661
+ if (kr) return Ke;
9645
9662
  kr = 1;
9646
9663
  var e = tt();
9647
9664
  function t(c, h) {
@@ -9698,13 +9715,13 @@ function ta() {
9698
9715
  },
9699
9716
  stringify: ({ value: c }) => c?.toISOString().replace(/(T00:00:00)?\.000Z$/, "") ?? ""
9700
9717
  };
9701
- return Ye.floatTime = p, Ye.intTime = l, Ye.timestamp = s, Ye;
9718
+ return Ke.floatTime = p, Ke.intTime = l, Ke.timestamp = s, Ke;
9702
9719
  }
9703
9720
  var xr;
9704
9721
  function Bu() {
9705
- if (xr) return Ki;
9722
+ if (xr) return Yi;
9706
9723
  xr = 1;
9707
- var e = Ze(), t = Vn(), i = et(), l = jt(), p = Qo(), s = Mu(), c = Du(), h = Fu(), o = Hn(), m = Zo(), n = Wn(), u = ea(), a = ta();
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();
9708
9725
  const r = [
9709
9726
  e.map,
9710
9727
  i.seq,
@@ -9728,13 +9745,13 @@ function Bu() {
9728
9745
  a.floatTime,
9729
9746
  a.timestamp
9730
9747
  ];
9731
- return Ki.schema = r, Ki;
9748
+ return Yi.schema = r, Yi;
9732
9749
  }
9733
- var Rr;
9750
+ var Mr;
9734
9751
  function Gu() {
9735
- if (Rr) return St;
9736
- Rr = 1;
9737
- var e = Ze(), t = Vn(), i = et(), l = jt(), p = Jo(), s = zo(), c = Xo(), h = xu(), o = Ru(), m = Qo(), n = Hn(), u = Zo(), a = Wn(), r = Bu(), f = ea(), d = ta();
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();
9738
9755
  const g = /* @__PURE__ */ new Map([
9739
9756
  ["core", h.schema],
9740
9757
  ["failsafe", [e.map, i.seq, l.string]],
@@ -9768,8 +9785,8 @@ function Gu() {
9768
9785
  "tag:yaml.org,2002:set": f.set,
9769
9786
  "tag:yaml.org,2002:timestamp": d.timestamp
9770
9787
  };
9771
- function S(b, w, L) {
9772
- const O = g.get(w);
9788
+ function w(b, S, L) {
9789
+ const O = g.get(S);
9773
9790
  if (O && !b)
9774
9791
  return L && !O.includes(n.merge) ? O.concat(n.merge) : O.slice();
9775
9792
  let $ = O;
@@ -9778,7 +9795,7 @@ function Gu() {
9778
9795
  $ = [];
9779
9796
  else {
9780
9797
  const _ = Array.from(g.keys()).filter((P) => P !== "yaml11").map((P) => JSON.stringify(P)).join(", ");
9781
- throw new Error(`Unknown schema "${w}"; use one of ${_} or define customTags array`);
9798
+ throw new Error(`Unknown schema "${S}"; use one of ${_} or define customTags array`);
9782
9799
  }
9783
9800
  if (Array.isArray(b))
9784
9801
  for (const _ of b)
@@ -9793,24 +9810,24 @@ function Gu() {
9793
9810
  return _.includes(I) || _.push(I), _;
9794
9811
  }, []);
9795
9812
  }
9796
- return St.coreKnownTags = v, St.getTags = S, St;
9813
+ return wt.coreKnownTags = v, wt.getTags = w, wt;
9797
9814
  }
9798
- var Mr;
9799
- function na() {
9800
- if (Mr) return Mi;
9801
- Mr = 1;
9815
+ var Rr;
9816
+ function sa() {
9817
+ if (Rr) return Ri;
9818
+ Rr = 1;
9802
9819
  var e = H(), t = Ze(), i = et(), l = jt(), p = Gu();
9803
9820
  const s = (h, o) => h.key < o.key ? -1 : h.key > o.key ? 1 : 0;
9804
- let c = class ia {
9821
+ let c = class na {
9805
9822
  constructor({ compat: o, customTags: m, merge: n, resolveKnownTags: u, schema: a, sortMapEntries: r, toStringDefaults: f }) {
9806
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;
9807
9824
  }
9808
9825
  clone() {
9809
- const o = Object.create(ia.prototype, Object.getOwnPropertyDescriptors(this));
9826
+ const o = Object.create(na.prototype, Object.getOwnPropertyDescriptors(this));
9810
9827
  return o.tags = this.tags.slice(), o;
9811
9828
  }
9812
9829
  };
9813
- return Mi.Schema = c, Mi;
9830
+ return Ri.Schema = c, Ri;
9814
9831
  }
9815
9832
  var Ji = {}, Dr;
9816
9833
  function qu() {
@@ -9866,8 +9883,8 @@ var Fr;
9866
9883
  function Ut() {
9867
9884
  if (Fr) return $i;
9868
9885
  Fr = 1;
9869
- var e = Dt(), t = Un(), i = H(), l = $e(), p = Oe(), s = na(), c = qu(), h = qn(), o = Ho(), m = Ft(), n = Uo();
9870
- let u = class sa {
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 {
9871
9888
  constructor(f, d, g) {
9872
9889
  this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, i.NODE_TYPE, { value: i.DOC });
9873
9890
  let y = null;
@@ -9883,8 +9900,8 @@ function Ut() {
9883
9900
  version: "1.2"
9884
9901
  }, g);
9885
9902
  this.options = v;
9886
- let { version: S } = v;
9887
- g?._directives ? (this.directives = g._directives.atDocument(), this.directives.yaml.explicit && (S = this.directives.yaml.version)) : this.directives = new n.Directives({ version: S }), this.setSchema(S, g), this.contents = f === void 0 ? null : this.createNode(f, y, g);
9903
+ let { version: w } = v;
9904
+ g?._directives ? (this.directives = g._directives.atDocument(), this.directives.yaml.explicit && (w = this.directives.yaml.version)) : this.directives = new n.Directives({ version: w }), this.setSchema(w, g), this.contents = f === void 0 ? null : this.createNode(f, y, g);
9888
9905
  }
9889
9906
  /**
9890
9907
  * Create a deep copy of this Document and its contents.
@@ -9892,7 +9909,7 @@ function Ut() {
9892
9909
  * Custom Node values that inherit from `Object` still refer to their original instances.
9893
9910
  */
9894
9911
  clone() {
9895
- const f = Object.create(sa.prototype, {
9912
+ const f = Object.create(ra.prototype, {
9896
9913
  [i.NODE_TYPE]: { value: i.DOC }
9897
9914
  });
9898
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;
@@ -9927,16 +9944,16 @@ function Ut() {
9927
9944
  if (typeof d == "function")
9928
9945
  f = d.call({ "": f }, "", f), y = d;
9929
9946
  else if (Array.isArray(d)) {
9930
- const F = (M) => typeof M == "number" || M instanceof String || M instanceof Number, D = d.filter(F).map(String);
9947
+ const F = (R) => typeof R == "number" || R instanceof String || R instanceof Number, D = d.filter(F).map(String);
9931
9948
  D.length > 0 && (d = d.concat(D)), y = d;
9932
9949
  } else g === void 0 && d && (g = d, d = void 0);
9933
- const { aliasDuplicateObjects: v, anchorPrefix: S, flow: b, keepUndefined: w, onTagObj: L, tag: O } = g ?? {}, { onAnchor: $, setAnchors: _, sourceObjects: P } = h.createNodeAnchors(
9950
+ const { aliasDuplicateObjects: v, anchorPrefix: w, flow: b, keepUndefined: S, onTagObj: L, tag: O } = g ?? {}, { onAnchor: $, setAnchors: _, sourceObjects: P } = h.createNodeAnchors(
9934
9951
  this,
9935
9952
  // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
9936
- S || "a"
9953
+ w || "a"
9937
9954
  ), I = {
9938
9955
  aliasDuplicateObjects: v ?? !0,
9939
- keepUndefined: w ?? !1,
9956
+ keepUndefined: S ?? !1,
9940
9957
  onAnchor: $,
9941
9958
  onTagObj: L,
9942
9959
  replacer: y,
@@ -10043,7 +10060,7 @@ function Ut() {
10043
10060
  throw new Error("With a null YAML version, the { schema: Schema } option is required");
10044
10061
  }
10045
10062
  // json & jsonArg are only used from toJSON()
10046
- toJS({ json: f, jsonArg: d, mapAsMap: g, maxAliasCount: y, onAnchor: v, reviver: S } = {}) {
10063
+ toJS({ json: f, jsonArg: d, mapAsMap: g, maxAliasCount: y, onAnchor: v, reviver: w } = {}) {
10047
10064
  const b = {
10048
10065
  anchors: /* @__PURE__ */ new Map(),
10049
10066
  doc: this,
@@ -10051,11 +10068,11 @@ function Ut() {
10051
10068
  mapAsMap: g === !0,
10052
10069
  mapKeyWarned: !1,
10053
10070
  maxAliasCount: typeof y == "number" ? y : 100
10054
- }, w = p.toJS(this.contents, d ?? "", b);
10071
+ }, S = p.toJS(this.contents, d ?? "", b);
10055
10072
  if (typeof v == "function")
10056
10073
  for (const { count: L, res: O } of b.anchors.values())
10057
10074
  v(O, L);
10058
- return typeof S == "function" ? o.applyReviver(S, { "": w }, "", w) : w;
10075
+ return typeof w == "function" ? o.applyReviver(w, { "": S }, "", S) : S;
10059
10076
  }
10060
10077
  /**
10061
10078
  * A JSON representation of the document `contents`.
@@ -10138,7 +10155,7 @@ function Vt() {
10138
10155
  if (Gr) return Zi;
10139
10156
  Gr = 1;
10140
10157
  function e(t, { flow: i, indicator: l, next: p, offset: s, onError: c, parentIndent: h, startOnNewline: o }) {
10141
- let m = !1, n = o, u = o, a = "", r = "", f = !1, d = !1, g = null, y = null, v = null, S = null, b = null, w = null, L = null;
10158
+ let m = !1, n = o, u = o, a = "", r = "", f = !1, d = !1, g = null, y = null, v = null, w = null, b = null, S = null, L = null;
10142
10159
  for (const _ of t)
10143
10160
  switch (d && (_.type !== "space" && _.type !== "newline" && _.type !== "comma" && c(_.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), d = !1), g && (n && _.type !== "comment" && _.type !== "newline" && c(g, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), g = null), _.type) {
10144
10161
  case "space":
@@ -10151,7 +10168,7 @@ function Vt() {
10151
10168
  break;
10152
10169
  }
10153
10170
  case "newline":
10154
- n ? a ? a += _.source : (!w || l !== "seq-item-ind") && (m = !0) : r += _.source, n = !0, f = !0, (y || v) && (S = _), u = !0;
10171
+ n ? a ? a += _.source : (!S || l !== "seq-item-ind") && (m = !0) : r += _.source, n = !0, f = !0, (y || v) && (w = _), u = !0;
10155
10172
  break;
10156
10173
  case "anchor":
10157
10174
  y && c(_, "MULTIPLE_ANCHORS", "A node can have at most one anchor"), _.source.endsWith(":") && c(_.offset + _.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", !0), y = _, L ?? (L = _.offset), n = !1, u = !1, d = !0;
@@ -10161,7 +10178,7 @@ function Vt() {
10161
10178
  break;
10162
10179
  }
10163
10180
  case l:
10164
- (y || v) && c(_, "BAD_PROP_ORDER", `Anchors and tags must be after the ${_.source} indicator`), w && c(_, "UNEXPECTED_TOKEN", `Unexpected ${_.source} in ${i ?? "collection"}`), w = _, n = l === "seq-item-ind" || l === "explicit-key-ind", u = !1;
10181
+ (y || v) && c(_, "BAD_PROP_ORDER", `Anchors and tags must be after the ${_.source} indicator`), S && c(_, "UNEXPECTED_TOKEN", `Unexpected ${_.source} in ${i ?? "collection"}`), S = _, n = l === "seq-item-ind" || l === "explicit-key-ind", u = !1;
10165
10182
  break;
10166
10183
  case "comma":
10167
10184
  if (i) {
@@ -10175,13 +10192,13 @@ function Vt() {
10175
10192
  const O = t[t.length - 1], $ = O ? O.offset + O.source.length : s;
10176
10193
  return d && p && p.type !== "space" && p.type !== "newline" && p.type !== "comma" && (p.type !== "scalar" || p.source !== "") && c(p.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), g && (n && g.indent <= h || p?.type === "block-map" || p?.type === "block-seq") && c(g, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), {
10177
10194
  comma: b,
10178
- found: w,
10195
+ found: S,
10179
10196
  spaceBefore: m,
10180
10197
  comment: a,
10181
10198
  hasNewline: f,
10182
10199
  anchor: y,
10183
10200
  tag: v,
10184
- newlineAfterProp: S,
10201
+ newlineAfterProp: w,
10185
10202
  end: $,
10186
10203
  start: L ?? $
10187
10204
  };
@@ -10230,7 +10247,7 @@ function Yn() {
10230
10247
  return en.containsNewline = e, en;
10231
10248
  }
10232
10249
  var tn = {}, jr;
10233
- function ra() {
10250
+ function oa() {
10234
10251
  if (jr) return tn;
10235
10252
  jr = 1;
10236
10253
  var e = Yn();
@@ -10243,7 +10260,7 @@ function ra() {
10243
10260
  return tn.flowIndentCheck = t, tn;
10244
10261
  }
10245
10262
  var nn = {}, Ur;
10246
- function oa() {
10263
+ function aa() {
10247
10264
  if (Ur) return nn;
10248
10265
  Ur = 1;
10249
10266
  var e = H();
@@ -10260,33 +10277,33 @@ var Hr;
10260
10277
  function ju() {
10261
10278
  if (Hr) return Qi;
10262
10279
  Hr = 1;
10263
- var e = $e(), t = _e(), i = Vt(), l = Yn(), p = ra(), s = oa();
10280
+ var e = $e(), t = _e(), i = Vt(), l = Yn(), p = oa(), s = aa();
10264
10281
  const c = "All mapping items must start at the same column";
10265
10282
  function h({ composeNode: o, composeEmptyNode: m }, n, u, a, r) {
10266
10283
  const f = r?.nodeClass ?? t.YAMLMap, d = new f(n.schema);
10267
10284
  n.atRoot && (n.atRoot = !1);
10268
10285
  let g = u.offset, y = null;
10269
10286
  for (const v of u.items) {
10270
- const { start: S, key: b, sep: w, value: L } = v, O = i.resolveProps(S, {
10287
+ const { start: w, key: b, sep: S, value: L } = v, O = i.resolveProps(w, {
10271
10288
  indicator: "explicit-key-ind",
10272
- next: b ?? w?.[0],
10289
+ next: b ?? S?.[0],
10273
10290
  offset: g,
10274
10291
  onError: a,
10275
10292
  parentIndent: u.indent,
10276
10293
  startOnNewline: !0
10277
10294
  }), $ = !O.found;
10278
10295
  if ($) {
10279
- if (b && (b.type === "block-seq" ? a(g, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in b && b.indent !== u.indent && a(g, "BAD_INDENT", c)), !O.anchor && !O.tag && !w) {
10296
+ if (b && (b.type === "block-seq" ? a(g, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in b && b.indent !== u.indent && a(g, "BAD_INDENT", c)), !O.anchor && !O.tag && !S) {
10280
10297
  y = O.end, O.comment && (d.comment ? d.comment += `
10281
10298
  ` + O.comment : d.comment = O.comment);
10282
10299
  continue;
10283
10300
  }
10284
- (O.newlineAfterProp || l.containsNewline(b)) && a(b ?? S[S.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
10301
+ (O.newlineAfterProp || l.containsNewline(b)) && a(b ?? w[w.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
10285
10302
  } else O.found?.indent !== u.indent && a(g, "BAD_INDENT", c);
10286
10303
  n.atKey = !0;
10287
- const _ = O.end, P = b ? o(n, b, O, a) : m(n, _, S, null, O, a);
10304
+ const _ = O.end, P = b ? o(n, b, O, a) : m(n, _, w, null, O, a);
10288
10305
  n.schema.compat && p.flowIndentCheck(u.indent, b, a), n.atKey = !1, s.mapIncludes(n, d.items, P) && a(_, "DUPLICATE_KEY", "Map keys must be unique");
10289
- const I = i.resolveProps(w ?? [], {
10306
+ const I = i.resolveProps(S ?? [], {
10290
10307
  indicator: "map-value-ind",
10291
10308
  next: L,
10292
10309
  offset: P.range[2],
@@ -10296,7 +10313,7 @@ function ju() {
10296
10313
  });
10297
10314
  if (g = I.end, I.found) {
10298
10315
  $ && (L?.type === "block-map" && !I.hasNewline && a(g, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), n.options.strict && O.start < I.found.offset - 1024 && a(P.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
10299
- const B = L ? o(n, L, I, a) : m(n, g, w, null, I, a);
10316
+ const B = L ? o(n, L, I, a) : m(n, g, S, null, I, a);
10300
10317
  n.schema.compat && p.flowIndentCheck(u.indent, L, a), g = B.range[2];
10301
10318
  const F = new e.Pair(P, B);
10302
10319
  n.options.keepSourceTokens && (F.srcToken = v), d.items.push(F);
@@ -10315,7 +10332,7 @@ var sn = {}, Vr;
10315
10332
  function Uu() {
10316
10333
  if (Vr) return sn;
10317
10334
  Vr = 1;
10318
- var e = Ne(), t = Vt(), i = ra();
10335
+ var e = Ne(), t = Vt(), i = oa();
10319
10336
  function l({ composeNode: p, composeEmptyNode: s }, c, h, o, m) {
10320
10337
  const n = m?.nodeClass ?? e.YAMLSeq, u = new n(c.schema);
10321
10338
  c.atRoot && (c.atRoot = !1), c.atKey && (c.atKey = !1);
@@ -10376,30 +10393,30 @@ function it() {
10376
10393
  }
10377
10394
  return on.resolveEnd = e, on;
10378
10395
  }
10379
- var Yr;
10396
+ var Kr;
10380
10397
  function Hu() {
10381
- if (Yr) return rn;
10382
- Yr = 1;
10383
- var e = H(), t = $e(), i = _e(), l = Ne(), p = it(), s = Vt(), c = Yn(), h = oa();
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();
10384
10401
  const o = "Block collections are not allowed within flow collections", m = (u) => u && (u.type === "block-map" || u.type === "block-seq");
10385
10402
  function n({ composeNode: u, composeEmptyNode: a }, r, f, d, g) {
10386
- const y = f.start.source === "{", v = y ? "flow map" : "flow sequence", S = g?.nodeClass ?? (y ? i.YAMLMap : l.YAMLSeq), b = new S(r.schema);
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);
10387
10404
  b.flow = !0;
10388
- const w = r.atRoot;
10389
- w && (r.atRoot = !1), r.atKey && (r.atKey = !1);
10405
+ const S = r.atRoot;
10406
+ S && (r.atRoot = !1), r.atKey && (r.atKey = !1);
10390
10407
  let L = f.offset + f.start.source.length;
10391
10408
  for (let I = 0; I < f.items.length; ++I) {
10392
- const B = f.items[I], { start: F, key: D, sep: M, value: G } = B, T = s.resolveProps(F, {
10409
+ const B = f.items[I], { start: F, key: D, sep: R, value: G } = B, T = s.resolveProps(F, {
10393
10410
  flow: v,
10394
10411
  indicator: "explicit-key-ind",
10395
- next: D ?? M?.[0],
10412
+ next: D ?? R?.[0],
10396
10413
  offset: L,
10397
10414
  onError: d,
10398
10415
  parentIndent: f.indent,
10399
10416
  startOnNewline: !1
10400
10417
  });
10401
10418
  if (!T.found) {
10402
- if (!T.anchor && !T.tag && !M && !G) {
10419
+ if (!T.anchor && !T.tag && !R && !G) {
10403
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 += `
10404
10421
  ` + T.comment : b.comment = T.comment), L = T.end;
10405
10422
  continue;
@@ -10414,32 +10431,32 @@ function Hu() {
10414
10431
  if (I === 0)
10415
10432
  T.comma && d(T.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${v}`);
10416
10433
  else if (T.comma || d(T.start, "MISSING_CHAR", `Missing , between ${v} items`), T.comment) {
10417
- let Y = "";
10434
+ let K = "";
10418
10435
  e: for (const j of F)
10419
10436
  switch (j.type) {
10420
10437
  case "comma":
10421
10438
  case "space":
10422
10439
  break;
10423
10440
  case "comment":
10424
- Y = j.source.substring(1);
10441
+ K = j.source.substring(1);
10425
10442
  break e;
10426
10443
  default:
10427
10444
  break e;
10428
10445
  }
10429
- if (Y) {
10446
+ if (K) {
10430
10447
  let j = b.items[b.items.length - 1];
10431
10448
  e.isPair(j) && (j = j.value ?? j.key), j.comment ? j.comment += `
10432
- ` + Y : j.comment = Y, T.comment = T.comment.substring(Y.length + 1);
10449
+ ` + K : j.comment = K, T.comment = T.comment.substring(K.length + 1);
10433
10450
  }
10434
10451
  }
10435
- if (!y && !M && !T.found) {
10436
- const Y = G ? u(r, G, T, d) : a(r, T.end, M, null, T, d);
10437
- b.items.push(Y), L = Y.range[2], m(G) && d(Y.range, "BLOCK_IN_FLOW", o);
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);
10438
10455
  } else {
10439
10456
  r.atKey = !0;
10440
- const Y = T.end, j = D ? u(r, D, T, d) : a(r, Y, F, null, T, d);
10457
+ const K = T.end, j = D ? u(r, D, T, d) : a(r, K, F, null, T, d);
10441
10458
  m(D) && d(j.range, "BLOCK_IN_FLOW", o), r.atKey = !1;
10442
- const U = s.resolveProps(M ?? [], {
10459
+ const U = s.resolveProps(R ?? [], {
10443
10460
  flow: v,
10444
10461
  indicator: "map-value-ind",
10445
10462
  next: G,
@@ -10450,8 +10467,8 @@ function Hu() {
10450
10467
  });
10451
10468
  if (U.found) {
10452
10469
  if (!y && !T.found && r.options.strict) {
10453
- if (M)
10454
- for (const le of M) {
10470
+ if (R)
10471
+ for (const le of R) {
10455
10472
  if (le === U.found)
10456
10473
  break;
10457
10474
  if (le.type === "newline") {
@@ -10462,13 +10479,13 @@ function Hu() {
10462
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");
10463
10480
  }
10464
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`));
10465
- const ie = G ? u(r, G, U, d) : U.found ? a(r, U.end, M, null, U, d) : null;
10482
+ const ie = G ? u(r, G, U, d) : U.found ? a(r, U.end, R, null, U, d) : null;
10466
10483
  ie ? m(G) && d(ie.range, "BLOCK_IN_FLOW", o) : U.comment && (j.comment ? j.comment += `
10467
10484
  ` + U.comment : j.comment = U.comment);
10468
10485
  const ve = new t.Pair(j, ie);
10469
10486
  if (r.options.keepSourceTokens && (ve.srcToken = B), y) {
10470
10487
  const le = b;
10471
- h.mapIncludes(r, le.items, j) && d(Y, "DUPLICATE_KEY", "Map keys must be unique"), le.items.push(ve);
10488
+ h.mapIncludes(r, le.items, j) && d(K, "DUPLICATE_KEY", "Map keys must be unique"), le.items.push(ve);
10472
10489
  } else {
10473
10490
  const le = new i.YAMLMap(r.schema);
10474
10491
  le.flow = !0, le.items.push(ve);
@@ -10483,8 +10500,8 @@ function Hu() {
10483
10500
  if ($?.source === O)
10484
10501
  P = $.offset + $.source.length;
10485
10502
  else {
10486
- const I = v[0].toUpperCase() + v.substring(1), B = w ? `${I} must end with a ${O}` : `${I} in block collection must be sufficiently indented and end with a ${O}`;
10487
- d(L, w ? "MISSING_CHAR" : "BAD_INDENT", B), $ && $.source.length !== 1 && _.unshift($);
10503
+ const I = v[0].toUpperCase() + v.substring(1), B = S ? `${I} must end with a ${O}` : `${I} in block collection must be sufficiently indented and end with a ${O}`;
10504
+ d(L, S ? "MISSING_CHAR" : "BAD_INDENT", B), $ && $.source.length !== 1 && _.unshift($);
10488
10505
  }
10489
10506
  if (_.length > 0) {
10490
10507
  const I = p.resolveEnd(_, P, r.options.strict, d);
@@ -10496,39 +10513,39 @@ function Hu() {
10496
10513
  }
10497
10514
  return rn.resolveFlowCollection = n, rn;
10498
10515
  }
10499
- var Kr;
10516
+ var Yr;
10500
10517
  function Vu() {
10501
- if (Kr) return Xi;
10502
- Kr = 1;
10518
+ if (Yr) return Xi;
10519
+ Yr = 1;
10503
10520
  var e = H(), t = ee(), i = _e(), l = Ne(), p = ju(), s = Uu(), c = Hu();
10504
10521
  function h(m, n, u, a, r, f) {
10505
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;
10506
10523
  return r === "!" || r === g.tagName ? (d.tag = g.tagName, d) : (r && (d.tag = r), d);
10507
10524
  }
10508
10525
  function o(m, n, u, a, r) {
10509
- const f = a.tag, d = f ? n.directives.tagName(f.source, (w) => r(f, "TAG_RESOLVE_FAILED", w)) : null;
10526
+ const f = a.tag, d = f ? n.directives.tagName(f.source, (S) => r(f, "TAG_RESOLVE_FAILED", S)) : null;
10510
10527
  if (u.type === "block-seq") {
10511
- const { anchor: w, newlineAfterProp: L } = a, O = w && f ? w.offset > f.offset ? w : f : w ?? f;
10528
+ const { anchor: S, newlineAfterProp: L } = a, O = S && f ? S.offset > f.offset ? S : f : S ?? f;
10512
10529
  O && (!L || L.offset < O.offset) && r(O, "MISSING_CHAR", "Missing newline after block sequence props");
10513
10530
  }
10514
10531
  const g = u.type === "block-map" ? "map" : u.type === "block-seq" ? "seq" : u.start.source === "{" ? "map" : "seq";
10515
10532
  if (!f || !d || d === "!" || d === i.YAMLMap.tagName && g === "map" || d === l.YAMLSeq.tagName && g === "seq")
10516
10533
  return h(m, n, u, r, d);
10517
- let y = n.schema.tags.find((w) => w.tag === d && w.collection === g);
10534
+ let y = n.schema.tags.find((S) => S.tag === d && S.collection === g);
10518
10535
  if (!y) {
10519
- const w = n.schema.knownTags[d];
10520
- if (w?.collection === g)
10521
- n.schema.tags.push(Object.assign({}, w, { default: !1 })), y = w;
10536
+ const S = n.schema.knownTags[d];
10537
+ if (S?.collection === g)
10538
+ n.schema.tags.push(Object.assign({}, S, { default: !1 })), y = S;
10522
10539
  else
10523
- return w ? r(f, "BAD_COLLECTION_TYPE", `${w.tag} used for ${g} collection, but expects ${w.collection ?? "scalar"}`, !0) : r(f, "TAG_RESOLVE_FAILED", `Unresolved tag: ${d}`, !0), h(m, n, u, r, d);
10540
+ return S ? r(f, "BAD_COLLECTION_TYPE", `${S.tag} used for ${g} collection, but expects ${S.collection ?? "scalar"}`, !0) : r(f, "TAG_RESOLVE_FAILED", `Unresolved tag: ${d}`, !0), h(m, n, u, r, d);
10524
10541
  }
10525
- const v = h(m, n, u, r, d, y), S = y.resolve?.(v, (w) => r(f, "TAG_RESOLVE_FAILED", w), n.options) ?? v, b = e.isNode(S) ? S : new t.Scalar(S);
10542
+ const v = h(m, n, u, r, d, y), w = y.resolve?.(v, (S) => r(f, "TAG_RESOLVE_FAILED", S), n.options) ?? v, b = e.isNode(w) ? w : new t.Scalar(w);
10526
10543
  return b.range = v.range, b.tag = d, y?.format && (b.format = y.format), b;
10527
10544
  }
10528
10545
  return Xi.composeCollection = o, Xi;
10529
10546
  }
10530
10547
  var an = {}, ln = {}, Jr;
10531
- function aa() {
10548
+ function la() {
10532
10549
  if (Jr) return ln;
10533
10550
  Jr = 1;
10534
10551
  var e = ee();
@@ -10538,62 +10555,62 @@ function aa() {
10538
10555
  return { value: "", type: null, comment: "", range: [h, h, h] };
10539
10556
  const m = o.mode === ">" ? e.Scalar.BLOCK_FOLDED : e.Scalar.BLOCK_LITERAL, n = s.source ? l(s.source) : [];
10540
10557
  let u = n.length;
10541
- for (let S = n.length - 1; S >= 0; --S) {
10542
- const b = n[S][1];
10558
+ for (let w = n.length - 1; w >= 0; --w) {
10559
+ const b = n[w][1];
10543
10560
  if (b === "" || b === "\r")
10544
- u = S;
10561
+ u = w;
10545
10562
  else
10546
10563
  break;
10547
10564
  }
10548
10565
  if (u === 0) {
10549
- const S = o.chomp === "+" && n.length > 0 ? `
10566
+ const w = o.chomp === "+" && n.length > 0 ? `
10550
10567
  `.repeat(Math.max(1, n.length - 1)) : "";
10551
10568
  let b = h + o.length;
10552
- return s.source && (b += s.source.length), { value: S, type: m, comment: o.comment, range: [h, b, b] };
10569
+ return s.source && (b += s.source.length), { value: w, type: m, comment: o.comment, range: [h, b, b] };
10553
10570
  }
10554
10571
  let a = s.indent + o.indent, r = s.offset + o.length, f = 0;
10555
- for (let S = 0; S < u; ++S) {
10556
- const [b, w] = n[S];
10557
- if (w === "" || w === "\r")
10572
+ for (let w = 0; w < u; ++w) {
10573
+ const [b, S] = n[w];
10574
+ if (S === "" || S === "\r")
10558
10575
  o.indent === 0 && b.length > a && (a = b.length);
10559
10576
  else {
10560
- b.length < a && c(r + b.length, "MISSING_CHAR", "Block scalars with more-indented leading empty lines must use an explicit indentation indicator"), o.indent === 0 && (a = b.length), f = S, a === 0 && !p.atRoot && c(r, "BAD_INDENT", "Block scalar values in collections must be indented");
10577
+ b.length < a && c(r + b.length, "MISSING_CHAR", "Block scalars with more-indented leading empty lines must use an explicit indentation indicator"), o.indent === 0 && (a = b.length), f = w, a === 0 && !p.atRoot && c(r, "BAD_INDENT", "Block scalar values in collections must be indented");
10561
10578
  break;
10562
10579
  }
10563
- r += b.length + w.length + 1;
10580
+ r += b.length + S.length + 1;
10564
10581
  }
10565
- for (let S = n.length - 1; S >= u; --S)
10566
- n[S][0].length > a && (u = S + 1);
10582
+ for (let w = n.length - 1; w >= u; --w)
10583
+ n[w][0].length > a && (u = w + 1);
10567
10584
  let d = "", g = "", y = !1;
10568
- for (let S = 0; S < f; ++S)
10569
- d += n[S][0].slice(a) + `
10585
+ for (let w = 0; w < f; ++w)
10586
+ d += n[w][0].slice(a) + `
10570
10587
  `;
10571
- for (let S = f; S < u; ++S) {
10572
- let [b, w] = n[S];
10573
- r += b.length + w.length + 1;
10574
- const L = w[w.length - 1] === "\r";
10575
- if (L && (w = w.slice(0, -1)), w && b.length < a) {
10588
+ for (let w = f; w < u; ++w) {
10589
+ let [b, S] = n[w];
10590
+ r += b.length + S.length + 1;
10591
+ const L = S[S.length - 1] === "\r";
10592
+ if (L && (S = S.slice(0, -1)), S && b.length < a) {
10576
10593
  const $ = `Block scalar lines must not be less indented than their ${o.indent ? "explicit indentation indicator" : "first line"}`;
10577
- c(r - w.length - (L ? 2 : 1), "BAD_INDENT", $), b = "";
10594
+ c(r - S.length - (L ? 2 : 1), "BAD_INDENT", $), b = "";
10578
10595
  }
10579
- m === e.Scalar.BLOCK_LITERAL ? (d += g + b.slice(a) + w, g = `
10580
- `) : b.length > a || w[0] === " " ? (g === " " ? g = `
10596
+ m === e.Scalar.BLOCK_LITERAL ? (d += g + b.slice(a) + S, g = `
10597
+ `) : b.length > a || S[0] === " " ? (g === " " ? g = `
10581
10598
  ` : !y && g === `
10582
10599
  ` && (g = `
10583
10600
 
10584
- `), d += g + b.slice(a) + w, g = `
10585
- `, y = !0) : w === "" ? g === `
10601
+ `), d += g + b.slice(a) + S, g = `
10602
+ `, y = !0) : S === "" ? g === `
10586
10603
  ` ? d += `
10587
10604
  ` : g = `
10588
- ` : (d += g + w, g = " ", y = !1);
10605
+ ` : (d += g + S, g = " ", y = !1);
10589
10606
  }
10590
10607
  switch (o.chomp) {
10591
10608
  case "-":
10592
10609
  break;
10593
10610
  case "+":
10594
- for (let S = u; S < n.length; ++S)
10611
+ for (let w = u; w < n.length; ++w)
10595
10612
  d += `
10596
- ` + n[S][0].slice(a);
10613
+ ` + n[w][0].slice(a);
10597
10614
  d[d.length - 1] !== `
10598
10615
  ` && (d += `
10599
10616
  `);
@@ -10640,8 +10657,8 @@ function aa() {
10640
10657
  default: {
10641
10658
  const v = `Unexpected token in block scalar header: ${y.type}`;
10642
10659
  h(y, "UNEXPECTED_TOKEN", v);
10643
- const S = y.source;
10644
- S && typeof S == "string" && (d += S.length);
10660
+ const w = y.source;
10661
+ w && typeof w == "string" && (d += w.length);
10645
10662
  }
10646
10663
  }
10647
10664
  }
@@ -10656,23 +10673,23 @@ function aa() {
10656
10673
  return ln.resolveBlockScalar = t, ln;
10657
10674
  }
10658
10675
  var cn = {}, zr;
10659
- function la() {
10676
+ function ca() {
10660
10677
  if (zr) return cn;
10661
10678
  zr = 1;
10662
10679
  var e = ee(), t = it();
10663
10680
  function i(n, u, a) {
10664
10681
  const { offset: r, type: f, source: d, end: g } = n;
10665
10682
  let y, v;
10666
- const S = (L, O, $) => a(r + L, O, $);
10683
+ const w = (L, O, $) => a(r + L, O, $);
10667
10684
  switch (f) {
10668
10685
  case "scalar":
10669
- y = e.Scalar.PLAIN, v = l(d, S);
10686
+ y = e.Scalar.PLAIN, v = l(d, w);
10670
10687
  break;
10671
10688
  case "single-quoted-scalar":
10672
- y = e.Scalar.QUOTE_SINGLE, v = p(d, S);
10689
+ y = e.Scalar.QUOTE_SINGLE, v = p(d, w);
10673
10690
  break;
10674
10691
  case "double-quoted-scalar":
10675
- y = e.Scalar.QUOTE_DOUBLE, v = c(d, S);
10692
+ y = e.Scalar.QUOTE_DOUBLE, v = c(d, w);
10676
10693
  break;
10677
10694
  /* istanbul ignore next should not happen */
10678
10695
  default:
@@ -10683,12 +10700,12 @@ function la() {
10683
10700
  range: [r, r + d.length, r + d.length]
10684
10701
  };
10685
10702
  }
10686
- const b = r + d.length, w = t.resolveEnd(g, b, u, a);
10703
+ const b = r + d.length, S = t.resolveEnd(g, b, u, a);
10687
10704
  return {
10688
10705
  value: v,
10689
10706
  type: y,
10690
- comment: w.comment,
10691
- range: [r, b, w.offset]
10707
+ comment: S.comment,
10708
+ range: [r, b, S.offset]
10692
10709
  };
10693
10710
  }
10694
10711
  function l(n, u) {
@@ -10842,18 +10859,18 @@ var Xr;
10842
10859
  function Wu() {
10843
10860
  if (Xr) return an;
10844
10861
  Xr = 1;
10845
- var e = H(), t = ee(), i = aa(), l = la();
10862
+ var e = H(), t = ee(), i = la(), l = ca();
10846
10863
  function p(h, o, m, n) {
10847
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;
10848
10865
  let g;
10849
10866
  h.options.stringKeys && h.atKey ? g = h.schema[e.SCALAR] : d ? g = s(h.schema, u, d, m, n) : o.type === "scalar" ? g = c(h, u, o, n) : g = h.schema[e.SCALAR];
10850
10867
  let y;
10851
10868
  try {
10852
- const v = g.resolve(u, (S) => n(m ?? o, "TAG_RESOLVE_FAILED", S), h.options);
10869
+ const v = g.resolve(u, (w) => n(m ?? o, "TAG_RESOLVE_FAILED", w), h.options);
10853
10870
  y = e.isScalar(v) ? v : new t.Scalar(v);
10854
10871
  } catch (v) {
10855
- const S = v instanceof Error ? v.message : String(v);
10856
- n(m ?? o, "TAG_RESOLVE_FAILED", S), y = new t.Scalar(u);
10872
+ const w = v instanceof Error ? v.message : String(v);
10873
+ n(m ?? o, "TAG_RESOLVE_FAILED", w), y = new t.Scalar(u);
10857
10874
  }
10858
10875
  return y.range = f, y.source = u, a && (y.type = a), d && (y.tag = d), g.format && (y.format = g.format), r && (y.comment = r), y;
10859
10876
  }
@@ -10887,7 +10904,7 @@ function Wu() {
10887
10904
  return an.composeScalar = p, an;
10888
10905
  }
10889
10906
  var un = {}, Qr;
10890
- function Yu() {
10907
+ function Ku() {
10891
10908
  if (Qr) return un;
10892
10909
  Qr = 1;
10893
10910
  function e(t, i, l) {
@@ -10912,49 +10929,49 @@ function Yu() {
10912
10929
  return un.emptyScalarPosition = e, un;
10913
10930
  }
10914
10931
  var Zr;
10915
- function Ku() {
10932
+ function Yu() {
10916
10933
  if (Zr) return Lt;
10917
10934
  Zr = 1;
10918
- var e = Dt(), t = H(), i = Vu(), l = Wu(), p = it(), s = Yu();
10935
+ var e = Dt(), t = H(), i = Vu(), l = Wu(), p = it(), s = Ku();
10919
10936
  const c = { composeNode: h, composeEmptyNode: o };
10920
10937
  function h(n, u, a, r) {
10921
10938
  const f = n.atKey, { spaceBefore: d, comment: g, anchor: y, tag: v } = a;
10922
- let S, b = !0;
10939
+ let w, b = !0;
10923
10940
  switch (u.type) {
10924
10941
  case "alias":
10925
- S = m(n, u, r), (y || v) && r(u, "ALIAS_PROPS", "An alias node must not specify any properties");
10942
+ w = m(n, u, r), (y || v) && r(u, "ALIAS_PROPS", "An alias node must not specify any properties");
10926
10943
  break;
10927
10944
  case "scalar":
10928
10945
  case "single-quoted-scalar":
10929
10946
  case "double-quoted-scalar":
10930
10947
  case "block-scalar":
10931
- S = l.composeScalar(n, u, v, r), y && (S.anchor = y.source.substring(1));
10948
+ w = l.composeScalar(n, u, v, r), y && (w.anchor = y.source.substring(1));
10932
10949
  break;
10933
10950
  case "block-map":
10934
10951
  case "block-seq":
10935
10952
  case "flow-collection":
10936
10953
  try {
10937
- S = i.composeCollection(c, n, u, a, r), y && (S.anchor = y.source.substring(1));
10938
- } catch (w) {
10939
- const L = w instanceof Error ? w.message : String(w);
10954
+ w = i.composeCollection(c, n, u, a, r), y && (w.anchor = y.source.substring(1));
10955
+ } catch (S) {
10956
+ const L = S instanceof Error ? S.message : String(S);
10940
10957
  r(u, "RESOURCE_EXHAUSTION", L);
10941
10958
  }
10942
10959
  break;
10943
10960
  default: {
10944
- const w = u.type === "error" ? u.message : `Unsupported token (type: ${u.type})`;
10945
- r(u, "UNEXPECTED_TOKEN", w), b = !1;
10961
+ const S = u.type === "error" ? u.message : `Unsupported token (type: ${u.type})`;
10962
+ r(u, "UNEXPECTED_TOKEN", S), b = !1;
10946
10963
  }
10947
10964
  }
10948
- return S ?? (S = o(n, u.offset, void 0, null, a, r)), y && S.anchor === "" && r(y, "BAD_ALIAS", "Anchor cannot be an empty string"), f && n.options.stringKeys && (!t.isScalar(S) || typeof S.value != "string" || S.tag && S.tag !== "tag:yaml.org,2002:str") && r(v ?? u, "NON_STRING_KEY", "With stringKeys, all keys must be strings"), d && (S.spaceBefore = !0), g && (u.type === "scalar" && u.source === "" ? S.comment = g : S.commentBefore = g), n.options.keepSourceTokens && b && (S.srcToken = u), S;
10965
+ return w ?? (w = o(n, u.offset, void 0, null, a, r)), y && w.anchor === "" && r(y, "BAD_ALIAS", "Anchor cannot be an empty string"), f && n.options.stringKeys && (!t.isScalar(w) || typeof w.value != "string" || w.tag && w.tag !== "tag:yaml.org,2002:str") && r(v ?? u, "NON_STRING_KEY", "With stringKeys, all keys must be strings"), d && (w.spaceBefore = !0), g && (u.type === "scalar" && u.source === "" ? w.comment = g : w.commentBefore = g), n.options.keepSourceTokens && b && (w.srcToken = u), w;
10949
10966
  }
10950
- function o(n, u, a, r, { spaceBefore: f, comment: d, anchor: g, tag: y, end: v }, S) {
10967
+ function o(n, u, a, r, { spaceBefore: f, comment: d, anchor: g, tag: y, end: v }, w) {
10951
10968
  const b = {
10952
10969
  type: "scalar",
10953
10970
  offset: s.emptyScalarPosition(u, a, r),
10954
10971
  indent: -1,
10955
10972
  source: ""
10956
- }, w = l.composeScalar(n, b, y, S);
10957
- return g && (w.anchor = g.source.substring(1), w.anchor === "" && S(g, "BAD_ALIAS", "Anchor cannot be an empty string")), f && (w.spaceBefore = !0), d && (w.comment = d, w.range[2] = v), w;
10973
+ }, S = l.composeScalar(n, b, y, w);
10974
+ return g && (S.anchor = g.source.substring(1), S.anchor === "" && w(g, "BAD_ALIAS", "Anchor cannot be an empty string")), f && (S.spaceBefore = !0), d && (S.comment = d, S.range[2] = v), S;
10958
10975
  }
10959
10976
  function m({ options: n }, { offset: u, source: a, end: r }, f) {
10960
10977
  const d = new e.Alias(a.substring(1));
@@ -10968,7 +10985,7 @@ var eo;
10968
10985
  function Ju() {
10969
10986
  if (eo) return zi;
10970
10987
  eo = 1;
10971
- var e = Ut(), t = Ku(), i = it(), l = Vt();
10988
+ var e = Ut(), t = Yu(), i = it(), l = Vt();
10972
10989
  function p(s, c, { offset: h, start: o, value: m, end: n }, u) {
10973
10990
  const a = Object.assign({ _directives: c }, s), r = new e.Document(void 0, a), f = {
10974
10991
  atKey: !1,
@@ -10991,10 +11008,10 @@ function Ju() {
10991
11008
  return zi.composeDoc = p, zi;
10992
11009
  }
10993
11010
  var to;
10994
- function ca() {
11011
+ function ua() {
10995
11012
  if (to) return Li;
10996
11013
  to = 1;
10997
- var e = Ee, t = Uo(), i = Ut(), l = Ht(), p = H(), s = Ju(), c = it();
11014
+ var e = Ee, t = Ho(), i = Ut(), l = Ht(), p = H(), s = Ju(), c = it();
10998
11015
  function h(n) {
10999
11016
  if (typeof n == "number")
11000
11017
  return [n, n + 1];
@@ -11147,11 +11164,11 @@ ${a.comment}` : a.comment;
11147
11164
  }
11148
11165
  return Li.Composer = m, Li;
11149
11166
  }
11150
- var re = {}, Ke = {}, io;
11167
+ var re = {}, Ye = {}, io;
11151
11168
  function zu() {
11152
- if (io) return Ke;
11169
+ if (io) return Ye;
11153
11170
  io = 1;
11154
- var e = aa(), t = la(), i = Ht(), l = Gt();
11171
+ var e = la(), t = ca(), i = Ht(), l = Gt();
11155
11172
  function p(n, u = !0, a) {
11156
11173
  if (n) {
11157
11174
  const r = (f, d, g) => {
@@ -11185,13 +11202,13 @@ function zu() {
11185
11202
  switch (y[0]) {
11186
11203
  case "|":
11187
11204
  case ">": {
11188
- const S = y.indexOf(`
11189
- `), b = y.substring(0, S), w = y.substring(S + 1) + `
11205
+ const w = y.indexOf(`
11206
+ `), b = y.substring(0, w), S = y.substring(w + 1) + `
11190
11207
  `, L = [
11191
11208
  { type: "block-scalar-header", offset: d, indent: r, source: b }
11192
11209
  ];
11193
11210
  return o(L, v) || L.push({ type: "newline", offset: -1, indent: r, source: `
11194
- ` }), { type: "block-scalar", offset: d, indent: r, props: L, source: w };
11211
+ ` }), { type: "block-scalar", offset: d, indent: r, props: L, source: S };
11195
11212
  }
11196
11213
  case '"':
11197
11214
  return { type: "double-quoted-scalar", offset: d, indent: r, source: y, end: v };
@@ -11212,10 +11229,10 @@ function zu() {
11212
11229
  g = "QUOTE_DOUBLE";
11213
11230
  break;
11214
11231
  case "block-scalar": {
11215
- const S = n.props[0];
11216
- if (S.type !== "block-scalar-header")
11232
+ const w = n.props[0];
11233
+ if (w.type !== "block-scalar-header")
11217
11234
  throw new Error("Invalid block scalar header");
11218
- g = S.source[0] === ">" ? "BLOCK_FOLDED" : "BLOCK_LITERAL";
11235
+ g = w.source[0] === ">" ? "BLOCK_FOLDED" : "BLOCK_LITERAL";
11219
11236
  break;
11220
11237
  }
11221
11238
  default:
@@ -11306,7 +11323,7 @@ function zu() {
11306
11323
  }
11307
11324
  }
11308
11325
  }
11309
- return Ke.createScalarToken = s, Ke.resolveAsScalar = p, Ke.setScalarValue = c, Ke;
11326
+ return Ye.createScalarToken = s, Ye.resolveAsScalar = p, Ye.setScalarValue = c, Ye;
11310
11327
  }
11311
11328
  var fn = {}, no;
11312
11329
  function Xu() {
@@ -11412,7 +11429,7 @@ function Qu() {
11412
11429
  return hn.visit = l, hn;
11413
11430
  }
11414
11431
  var ro;
11415
- function Kn() {
11432
+ function Jn() {
11416
11433
  if (ro) return re;
11417
11434
  ro = 1;
11418
11435
  var e = zu(), t = Xu(), i = Qu();
@@ -11495,10 +11512,10 @@ function Kn() {
11495
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;
11496
11513
  }
11497
11514
  var pn = {}, oo;
11498
- function ua() {
11515
+ function fa() {
11499
11516
  if (oo) return pn;
11500
11517
  oo = 1;
11501
- var e = Kn();
11518
+ var e = Jn();
11502
11519
  function t(o) {
11503
11520
  switch (o) {
11504
11521
  case void 0:
@@ -11940,7 +11957,7 @@ function ua() {
11940
11957
  return pn.Lexer = h, pn;
11941
11958
  }
11942
11959
  var dn = {}, ao;
11943
- function fa() {
11960
+ function ha() {
11944
11961
  if (ao) return dn;
11945
11962
  ao = 1;
11946
11963
  class e {
@@ -11963,10 +11980,10 @@ function fa() {
11963
11980
  return dn.LineCounter = e, dn;
11964
11981
  }
11965
11982
  var mn = {}, lo;
11966
- function ha() {
11983
+ function pa() {
11967
11984
  if (lo) return mn;
11968
11985
  lo = 1;
11969
- var e = Ee, t = Kn(), i = ua();
11986
+ var e = Ee, t = Jn(), i = fa();
11970
11987
  function l(u, a) {
11971
11988
  for (let r = 0; r < u.length; ++r)
11972
11989
  if (u[r].type === a)
@@ -12323,15 +12340,15 @@ function ha() {
12323
12340
  if (d && r.sep && !r.value) {
12324
12341
  const y = [];
12325
12342
  for (let v = 0; v < r.sep.length; ++v) {
12326
- const S = r.sep[v];
12327
- switch (S.type) {
12343
+ const w = r.sep[v];
12344
+ switch (w.type) {
12328
12345
  case "newline":
12329
12346
  y.push(v);
12330
12347
  break;
12331
12348
  case "space":
12332
12349
  break;
12333
12350
  case "comment":
12334
- S.indent > a.indent && (y.length = 0);
12351
+ w.indent > a.indent && (y.length = 0);
12335
12352
  break;
12336
12353
  default:
12337
12354
  y.length = 0;
@@ -12365,12 +12382,12 @@ function ha() {
12365
12382
  items: [{ start: g, key: null, sep: [this.sourceToken] }]
12366
12383
  });
12367
12384
  else if (s(r.key) && !l(r.sep, "newline")) {
12368
- const y = h(r.start), v = r.key, S = r.sep;
12369
- S.push(this.sourceToken), delete r.key, delete r.sep, this.stack.push({
12385
+ const y = h(r.start), v = r.key, w = r.sep;
12386
+ w.push(this.sourceToken), delete r.key, delete r.sep, this.stack.push({
12370
12387
  type: "block-map",
12371
12388
  offset: this.offset,
12372
12389
  indent: this.indent,
12373
- items: [{ start: y, key: v, sep: S }]
12390
+ items: [{ start: y, key: v, sep: w }]
12374
12391
  });
12375
12392
  } else g.length > 0 ? r.sep = r.sep.concat(g, this.sourceToken) : r.sep.push(this.sourceToken);
12376
12393
  else if (l(r.start, "newline"))
@@ -12626,7 +12643,7 @@ var xe = {}, co;
12626
12643
  function Zu() {
12627
12644
  if (co) return xe;
12628
12645
  co = 1;
12629
- var e = ca(), t = Ut(), i = Ht(), l = Vo(), p = H(), s = fa(), c = ha();
12646
+ var e = ua(), t = Ut(), i = Ht(), l = Wo(), p = H(), s = ha(), c = pa();
12630
12647
  function h(a) {
12631
12648
  const r = a.prettyErrors !== !1;
12632
12649
  return { lineCounter: a.lineCounter || r && new s.LineCounter() || null, prettyErrors: r };
@@ -12634,18 +12651,18 @@ function Zu() {
12634
12651
  function o(a, r = {}) {
12635
12652
  const { lineCounter: f, prettyErrors: d } = h(r), g = new c.Parser(f?.addNewLine), y = new e.Composer(r), v = Array.from(y.compose(g.parse(a)));
12636
12653
  if (d && f)
12637
- for (const S of v)
12638
- S.errors.forEach(i.prettifyError(a, f)), S.warnings.forEach(i.prettifyError(a, f));
12654
+ for (const w of v)
12655
+ w.errors.forEach(i.prettifyError(a, f)), w.warnings.forEach(i.prettifyError(a, f));
12639
12656
  return v.length > 0 ? v : Object.assign([], { empty: !0 }, y.streamInfo());
12640
12657
  }
12641
12658
  function m(a, r = {}) {
12642
12659
  const { lineCounter: f, prettyErrors: d } = h(r), g = new c.Parser(f?.addNewLine), y = new e.Composer(r);
12643
12660
  let v = null;
12644
- for (const S of y.compose(g.parse(a), !0, a.length))
12661
+ for (const w of y.compose(g.parse(a), !0, a.length))
12645
12662
  if (!v)
12646
- v = S;
12663
+ v = w;
12647
12664
  else if (v.options.logLevel !== "silent") {
12648
- v.errors.push(new i.YAMLParseError(S.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
12665
+ v.errors.push(new i.YAMLParseError(w.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
12649
12666
  break;
12650
12667
  }
12651
12668
  return d && f && (v.errors.forEach(i.prettifyError(a, f)), v.warnings.forEach(i.prettifyError(a, f))), v;
@@ -12682,10 +12699,10 @@ var uo;
12682
12699
  function ef() {
12683
12700
  if (uo) return W;
12684
12701
  uo = 1;
12685
- var e = ca(), t = Ut(), i = na(), l = Ht(), p = Dt(), s = H(), c = $e(), h = ee(), o = _e(), m = Ne(), n = Kn(), u = ua(), a = fa(), r = ha(), f = Zu(), d = Mt();
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();
12686
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;
12687
12704
  }
12688
- var pa = ef();
12705
+ var da = ef();
12689
12706
  const Q = {
12690
12707
  missingGit: "Git is required to fetch templates, but it is not installed or not available on PATH. Please install Git and try again.",
12691
12708
  missingTemplate: [
@@ -12699,7 +12716,6 @@ const Q = {
12699
12716
  ].join(""),
12700
12717
  missingHost: "Host option is required for the lumina-components template.",
12701
12718
  invalidCodeSampleTemplate: "Template option is required for code sample initialization.",
12702
- invalidDomain: (e) => `Invalid domain: ${e ?? "(none)"}`,
12703
12719
  invalidTemplate: (e) => `Invalid template: ${e ?? "(none)"}`,
12704
12720
  invalidOption: (e) => `Invalid option: ${e}`,
12705
12721
  templateNotAvailable: (e, t) => `Template "${e}" is not available for domain "${t}"`,
@@ -12727,7 +12743,7 @@ function fo(e) {
12727
12743
  Q.missingHost,
12728
12744
  Q.invalidCodeSampleTemplate,
12729
12745
  Q.generic
12730
- ], i = ['Directory "', "Invalid domain", "Invalid template", "Invalid option", 'Template "'], l = (p) => t.includes(p) || i.some((s) => p.startsWith(s));
12746
+ ], i = ['Directory "', "Invalid template", "Invalid option", 'Template "'], l = (p) => t.includes(p) || i.some((s) => p.startsWith(s));
12731
12747
  if (e instanceof Error) {
12732
12748
  const p = e.message || "Unknown error";
12733
12749
  return l(p) ? p : Q.generic;
@@ -12740,12 +12756,12 @@ function fo(e) {
12740
12756
  return String(e);
12741
12757
  }
12742
12758
  }
12743
- function Jn(e) {
12759
+ function zn(e) {
12744
12760
  return {
12745
12761
  name: e.name,
12746
12762
  shouldCleanup: !1,
12747
12763
  async doCleanup(i) {
12748
- if (Bn(oe("bgRed", fo(i))), this.shouldCleanup && this.name)
12764
+ if (Gn(oe("bgRed", fo(i))), this.shouldCleanup && this.name)
12749
12765
  try {
12750
12766
  await uf(this.name);
12751
12767
  } catch (l) {
@@ -12756,16 +12772,16 @@ function Jn(e) {
12756
12772
  }
12757
12773
  };
12758
12774
  }
12759
- const ue = _a(Oa.exec), Wt = (e) => typeof e == "object" && e !== null && "code" in e;
12760
- async function da() {
12775
+ const ue = Na($a.exec), Wt = (e) => typeof e == "object" && e !== null && "code" in e;
12776
+ async function ma() {
12761
12777
  try {
12762
12778
  await ue("git --version");
12763
12779
  } catch {
12764
12780
  throw new Error(Q.missingGit);
12765
12781
  }
12766
12782
  }
12767
- async function nf(e, t, i, l = $n) {
12768
- await da();
12783
+ async function nf(e, t, i, l = _n) {
12784
+ await ma();
12769
12785
  const p = Ee.cwd();
12770
12786
  try {
12771
12787
  await se.mkdir(e);
@@ -12780,13 +12796,13 @@ async function nf(e, t, i, l = $n) {
12780
12796
  } catch {
12781
12797
  throw new Error(Q.missingTemplate);
12782
12798
  }
12783
- await ma(i, "."), await se.rm(".git", { recursive: !0, force: !0 });
12799
+ await ga(i, "."), await se.rm(".git", { recursive: !0, force: !0 });
12784
12800
  } finally {
12785
12801
  Ee.chdir(p);
12786
12802
  }
12787
12803
  }
12788
- async function sf(e, t, i, l = $n) {
12789
- await da();
12804
+ async function sf(e, t, i, l = _n) {
12805
+ await ma();
12790
12806
  const p = Ee.cwd();
12791
12807
  let s = { catalog: {}, version: "" };
12792
12808
  try {
@@ -12805,10 +12821,10 @@ async function sf(e, t, i, l = $n) {
12805
12821
  const [{ stdout: c }, { stdout: h }] = await Promise.all([
12806
12822
  ue("git show FETCH_HEAD:pnpm-workspace.yaml"),
12807
12823
  ue("git show FETCH_HEAD:package.json")
12808
- ]), o = pa.parse(c), m = JSON.parse(h);
12824
+ ]), o = da.parse(c), m = JSON.parse(h);
12809
12825
  if (!m.version)
12810
12826
  throw new Error("Root package.json does not have a version defined");
12811
- s = { catalog: o.catalog ?? {}, version: m.version }, await ma(i, "."), await se.rm(".git", { recursive: !0, force: !0 });
12827
+ s = { catalog: o.catalog ?? {}, version: m.version }, await ga(i, "."), await se.rm(".git", { recursive: !0, force: !0 });
12812
12828
  } finally {
12813
12829
  Ee.chdir(p);
12814
12830
  }
@@ -12824,15 +12840,15 @@ function rf(e, t) {
12824
12840
  }
12825
12841
  });
12826
12842
  }
12827
- async function ma(e, t) {
12843
+ async function ga(e, t) {
12828
12844
  if (!(e === "." || e === "" || ["./", "/"].includes(e.split("/")[0]))) {
12829
- if (Re.isAbsolute(e))
12845
+ if (Me.isAbsolute(e))
12830
12846
  throw new Error(Q.generic);
12831
12847
  try {
12832
12848
  const i = await se.readdir(e);
12833
12849
  await Promise.all(
12834
12850
  i.map(async (p) => {
12835
- const s = Re.join(e, p), c = Re.join(t, p);
12851
+ const s = Me.join(e, p), c = Me.join(t, p);
12836
12852
  await se.rename(s, c);
12837
12853
  })
12838
12854
  );
@@ -12843,21 +12859,21 @@ async function ma(e, t) {
12843
12859
  }
12844
12860
  }
12845
12861
  }
12846
- async function ga(e) {
12847
- const t = await se.readFile(Re.join(e, "package.json"), "utf-8"), i = JSON.parse(t), l = i._id, p = i.readme;
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;
12848
12864
  return Iu(i, (c) => {
12849
12865
  console.error(c);
12850
12866
  }), l || delete i._id, p || delete i.readme, i;
12851
12867
  }
12852
12868
  async function of(e, t) {
12853
- await se.writeFile(Re.join(e, "package.json"), JSON.stringify(t, null, 2));
12869
+ await se.writeFile(Me.join(e, "package.json"), JSON.stringify(t, null, 2));
12854
12870
  }
12855
12871
  async function af(e, t) {
12856
12872
  const i = {
12857
12873
  ...t ? { overrides: t } : {},
12858
12874
  minimumReleaseAgeExclude: ["@arcgis/*", "@esri/*"]
12859
12875
  };
12860
- await se.writeFile(Re.join(e, "pnpm-workspace.yaml"), pa.stringify(i));
12876
+ await se.writeFile(Me.join(e, "pnpm-workspace.yaml"), da.stringify(i));
12861
12877
  }
12862
12878
  function lf(e) {
12863
12879
  return e.scripts?.start ? "start" : "dev";
@@ -12871,18 +12887,12 @@ const cf = (e) => {
12871
12887
  case "name":
12872
12888
  t.name = e.name;
12873
12889
  break;
12874
- case "domain": {
12875
- if (!e.domain || !Object.values(Tt).includes(e.domain))
12876
- throw new Error(Q.invalidDomain(e.domain));
12877
- t.domain = e.domain;
12878
- break;
12879
- }
12880
12890
  case "template": {
12881
12891
  const p = e.template;
12882
12892
  if (!p)
12883
12893
  return;
12884
12894
  const s = mf(p);
12885
- if (!s || !_n[s])
12895
+ if (!s || !Nn[s])
12886
12896
  throw new Error(`Invalid template: ${p}`);
12887
12897
  t.template = s;
12888
12898
  break;
@@ -12910,8 +12920,8 @@ async function uf(e) {
12910
12920
  }
12911
12921
  }
12912
12922
  async function ff(e, t) {
12913
- const i = _n[e];
12914
- let l = vo;
12923
+ const i = Nn[e];
12924
+ let l = So;
12915
12925
  t.host && (l = t.host);
12916
12926
  const p = `git@${l}:${i}.git`;
12917
12927
  try {
@@ -12921,9 +12931,9 @@ async function ff(e, t) {
12921
12931
  }
12922
12932
  return !0;
12923
12933
  }
12924
- function ya(e, t) {
12925
- const i = _n[e];
12926
- let l = vo;
12934
+ function ba(e, t) {
12935
+ const i = Nn[e];
12936
+ let l = So;
12927
12937
  t.host && (l = t.host);
12928
12938
  const p = t.ssh ? "git@" : "https://", s = t.accessToken ? `${t.accessToken}@` : "", c = t.ssh ? ":" : "/";
12929
12939
  return `${p}${s}${l}${c}${i}`;
@@ -12939,7 +12949,7 @@ function hf(e, t) {
12939
12949
  });
12940
12950
  }
12941
12951
  function pf(e, t) {
12942
- const i = bo[e];
12952
+ const i = vo[e];
12943
12953
  if (t === On)
12944
12954
  throw new Error(Q.templateNotAvailable(t, e));
12945
12955
  const l = i[t];
@@ -12947,10 +12957,10 @@ function pf(e, t) {
12947
12957
  throw new Error(Q.templateNotAvailable(t, e));
12948
12958
  return l;
12949
12959
  }
12950
- function zn(e) {
12960
+ function Xn(e) {
12951
12961
  return e.trim().toLowerCase();
12952
12962
  }
12953
- function ba(e, t, i) {
12963
+ function va(e, t, i) {
12954
12964
  if (!t)
12955
12965
  return;
12956
12966
  const l = e.get(t);
@@ -12960,17 +12970,17 @@ function ba(e, t, i) {
12960
12970
  }
12961
12971
  l !== i && e.set(t, null);
12962
12972
  }
12963
- const Xn = /* @__PURE__ */ new Map(), df = Ce.map(([e]) => e);
12973
+ const Qn = /* @__PURE__ */ new Map(), df = Ce.map(([e]) => e);
12964
12974
  for (const e of df)
12965
- ba(Xn, zn(e), e);
12975
+ va(Qn, Xn(e), e);
12966
12976
  for (const [e, t] of Ce)
12967
- t.customName && ba(Xn, zn(t.customName), e);
12977
+ t.customName && va(Qn, Xn(t.customName), e);
12968
12978
  function mf(e) {
12969
- const t = zn(e), i = Xn.get(t);
12979
+ const t = Xn(e), i = Qn.get(t);
12970
12980
  if (i && i !== null)
12971
12981
  return i;
12972
12982
  }
12973
- async function va(e, t, i) {
12983
+ async function Sa(e, t, i) {
12974
12984
  const { startMsg: l, successMsg: p, failureMsg: s } = e, c = Wl();
12975
12985
  c.start(l);
12976
12986
  try {
@@ -12980,19 +12990,19 @@ async function va(e, t, i) {
12980
12990
  }
12981
12991
  }
12982
12992
  async function gf(e) {
12983
- const t = Jn(e);
12993
+ const t = zn(e);
12984
12994
  try {
12985
12995
  Ro();
12986
12996
  const i = await jl(
12987
12997
  {
12988
- projectName: e.name ? async () => await Promise.resolve(e.name) : Mo,
12998
+ projectName: e.name ? async () => await Promise.resolve(e.name) : Do,
12989
12999
  projectTemplate: e.template ? async () => await Promise.resolve(e.template) : _c
12990
13000
  },
12991
13001
  {
12992
13002
  // On Cancel callback that wraps the group
12993
13003
  // So if the user cancels one of the prompts in the group this function will be called
12994
13004
  onCancel: () => {
12995
- To("Operation cancelled."), process.exit(0);
13005
+ ko("Operation cancelled."), process.exit(0);
12996
13006
  }
12997
13007
  }
12998
13008
  );
@@ -13005,8 +13015,8 @@ async function gf(e) {
13005
13015
  }
13006
13016
  t.shouldCleanup = !0;
13007
13017
  }
13008
- const l = pf(Tt.webGisSdk, i.projectTemplate), p = ya(i.projectTemplate, e);
13009
- if (await va(
13018
+ const l = pf($n.webGisSdk, i.projectTemplate), p = ba(i.projectTemplate, e);
13019
+ if (await Sa(
13010
13020
  {
13011
13021
  startMsg: "Downloading project template...",
13012
13022
  successMsg: "Project template downloaded successfully",
@@ -13029,7 +13039,7 @@ async function gf(e) {
13029
13039
  Happy mapping!`));
13030
13040
  return;
13031
13041
  }
13032
- const s = await ga(i.projectName), c = lf(s);
13042
+ const s = await ya(i.projectName), c = lf(s);
13033
13043
  An(), console.log(oe("magenta", `To get started, run the following commands:
13034
13044
  `)), console.log(oe("grey", `$ cd ${i.projectName}`)), console.log(oe("grey", "$ npm install")), console.log(oe("grey", `$ npm run ${c}`)), console.log(Cn(`
13035
13045
 
@@ -13039,29 +13049,29 @@ Happy mapping!`));
13039
13049
  }
13040
13050
  }
13041
13051
  async function yf(e) {
13042
- const { template: t, branch: i = $n } = e, l = Jn(e);
13052
+ const { template: t, branch: i = _n } = e, l = zn(e);
13043
13053
  try {
13044
13054
  if (!t || t !== On)
13045
13055
  throw new Error(Q.invalidCodeSampleTemplate);
13046
13056
  if (!e.host)
13047
13057
  throw new Error(Q.missingHost);
13048
13058
  Ro();
13049
- const p = e.name ?? await Mo();
13050
- if (Ao(p) && (To("Operation cancelled."), process.exit(0)), l.name = p, process.env.NODE_ENV !== "test") {
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") {
13051
13061
  try {
13052
13062
  throw await se.stat(p), new Error(Q.folderAlreadyExists(p));
13053
- } catch (w) {
13054
- if (!(w && typeof w == "object" && "code" in w && w.code === "ENOENT"))
13055
- throw w;
13063
+ } catch (S) {
13064
+ if (!(S && typeof S == "object" && "code" in S && S.code === "ENOENT"))
13065
+ throw S;
13056
13066
  }
13057
13067
  l.shouldCleanup = !0;
13058
13068
  }
13059
13069
  const s = Va[t], c = await ff(t, e);
13060
13070
  let h = "";
13061
13071
  c || (h = await Pc(e.host));
13062
- const o = ya(t, { ...e, ssh: c, accessToken: h });
13072
+ const o = ba(t, { ...e, ssh: c, accessToken: h });
13063
13073
  let m = {}, n = "";
13064
- await va(
13074
+ await Sa(
13065
13075
  {
13066
13076
  startMsg: "Downloading project template...",
13067
13077
  successMsg: "Project template downloaded successfully",
@@ -13075,12 +13085,12 @@ async function yf(e) {
13075
13085
  s,
13076
13086
  i
13077
13087
  ));
13078
- } catch (w) {
13079
- throw w;
13088
+ } catch (S) {
13089
+ throw S;
13080
13090
  }
13081
13091
  },
13082
- (w) => {
13083
- throw w;
13092
+ (S) => {
13093
+ throw S;
13084
13094
  }
13085
13095
  );
13086
13096
  const {
@@ -13088,7 +13098,7 @@ async function yf(e) {
13088
13098
  version: a,
13089
13099
  "acme:scripts": r,
13090
13100
  ...f
13091
- } = await ga(p), d = n.split(".").slice(0, 2), g = i.includes("release"), y = g ? `~${d.join(".")}.0` : `>=${d.join(".")}.0-next <${d[0]}.${Number.parseInt(d[1]) + 1}.0`, v = f.files, S = g ? void 0 : {
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 : {
13092
13102
  "@esri/calcite-components>@arcgis/lumina": y,
13093
13103
  "@esri/calcite-components>@arcgis/toolkit": y
13094
13104
  }, b = {
@@ -13099,30 +13109,41 @@ async function yf(e) {
13099
13109
  ...f,
13100
13110
  ...v ? { files: v } : {}
13101
13111
  };
13102
- rf(m, b), hf(y, b), await of(p, b), await af(p, S), An(), Nc(), console.log(oe("magenta", `To get started, run the following commands:
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:
13103
13113
  `)), console.log(oe("grey", `$ cd ${p}`)), console.log(oe("grey", "$ pnpm install")), console.log(oe("grey", "$ pnpm start"));
13104
13114
  } catch (p) {
13105
13115
  await l.doCleanup(p);
13106
13116
  }
13107
13117
  }
13108
13118
  const wa = (e) => {
13109
- const t = new It();
13110
- return e?.exitOverride && t.exitOverride(), e?.suppressOutput && t.configureOutput({
13119
+ const t = new Tt();
13120
+ e?.exitOverride && t.exitOverride(), e?.suppressOutput && t.configureOutput({
13111
13121
  writeOut: () => "",
13112
13122
  writeErr: () => ""
13113
- }), t.version(Ba.version), t.option("-n, --name <name>", "Name of the project").option("-d, --domain <domain>", "Domain of the sample to create").option("-t, --template <template>", "Template to use").option("--host <host>", "Host to use for the source control repository").option("--branch <branch>", "Branch to checkout in the source control repository"), t.command("init").description("Initialize a new ArcGIS project").action(async () => {
13114
- let i;
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;
13115
13136
  try {
13116
- i = cf(t.opts());
13117
- } catch (l) {
13118
- await Jn({}).doCleanup(l);
13137
+ l = cf(i.opts());
13138
+ } catch (p) {
13139
+ await zn({}).doCleanup(p);
13119
13140
  return;
13120
13141
  }
13121
- if (i.template && Wa[i.template] === kt.codeSample) {
13122
- await yf(i);
13142
+ if (l.template && Wa[l.template] === kt.codeSample) {
13143
+ await yf(l);
13123
13144
  return;
13124
13145
  }
13125
- await gf(i);
13146
+ await gf(l);
13126
13147
  }), t;
13127
13148
  };
13128
13149
  let bf = {