@arcgis/create 5.1.3 → 5.1.5

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 (2) hide show
  1. package/dist/init.js +205 -195
  2. package/package.json +1 -1
package/dist/init.js CHANGED
@@ -8,7 +8,7 @@ import _a from "node:readline";
8
8
  import Zn, { ReadStream as es } from "node:tty";
9
9
  import { styleText as le } from "node:util";
10
10
  import $a from "node:os";
11
- import ie from "fs/promises";
11
+ import ne from "fs/promises";
12
12
  import Je from "path";
13
13
  import Ae from "process";
14
14
  import Na from "child_process";
@@ -1675,13 +1675,13 @@ Expecting one of '${w.join("', '")}'`);
1675
1675
  let w = !1;
1676
1676
  const y = [".js", ".ts", ".tsx", ".mjs", ".cjs"];
1677
1677
  function S(N, P) {
1678
- const x = m.resolve(N, P);
1679
- if (g.existsSync(x)) return x;
1678
+ const M = m.resolve(N, P);
1679
+ if (g.existsSync(M)) return M;
1680
1680
  if (y.includes(m.extname(P))) return;
1681
1681
  const G = y.find(
1682
- (F) => g.existsSync(`${x}${F}`)
1682
+ (F) => g.existsSync(`${M}${F}`)
1683
1683
  );
1684
- if (G) return `${x}${G}`;
1684
+ if (G) return `${M}${G}`;
1685
1685
  }
1686
1686
  this._checkForMissingMandatoryOptions(), this._checkForConflictingOptions();
1687
1687
  let E = s._executableFile || `${this._name}-${s._name}`, C = this._executableDir || "";
@@ -1993,7 +1993,7 @@ Expecting one of '${w.join("', '")}'`);
1993
1993
  return N.length > 1 && N[0] === "-";
1994
1994
  }
1995
1995
  const E = (N) => /^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(N) ? !this._getCommandAndAncestors().some(
1996
- (P) => P.options.map((x) => x.short).some((x) => /^-\d$/.test(x))
1996
+ (P) => P.options.map((M) => M.short).some((M) => /^-\d$/.test(M))
1997
1997
  ) : !1;
1998
1998
  let C = null, _ = null, $ = 0;
1999
1999
  for (; $ < s.length || _; ) {
@@ -2010,11 +2010,11 @@ Expecting one of '${w.join("', '")}'`);
2010
2010
  const P = this._findOption(N);
2011
2011
  if (P) {
2012
2012
  if (P.required) {
2013
- const x = s[$++];
2014
- x === void 0 && this.optionMissingArgument(P), this.emit(`option:${P.name()}`, x);
2013
+ const M = s[$++];
2014
+ M === void 0 && this.optionMissingArgument(P), this.emit(`option:${P.name()}`, M);
2015
2015
  } else if (P.optional) {
2016
- let x = null;
2017
- $ < s.length && (!S(s[$]) || E(s[$])) && (x = s[$++]), this.emit(`option:${P.name()}`, x);
2016
+ let M = null;
2017
+ $ < s.length && (!S(s[$]) || E(s[$])) && (M = s[$++]), this.emit(`option:${P.name()}`, M);
2018
2018
  } else
2019
2019
  this.emit(`option:${P.name()}`);
2020
2020
  C = P.variadic ? P : null;
@@ -2029,9 +2029,9 @@ Expecting one of '${w.join("', '")}'`);
2029
2029
  }
2030
2030
  }
2031
2031
  if (/^--[^=]+=/.test(N)) {
2032
- const P = N.indexOf("="), x = this._findOption(N.slice(0, P));
2033
- if (x && (x.required || x.optional)) {
2034
- this.emit(`option:${x.name()}`, N.slice(P + 1));
2032
+ const P = N.indexOf("="), M = this._findOption(N.slice(0, P));
2033
+ if (M && (M.required || M.optional)) {
2034
+ this.emit(`option:${M.name()}`, N.slice(P + 1));
2035
2035
  continue;
2036
2036
  }
2037
2037
  }
@@ -2613,9 +2613,9 @@ const qa = /* @__PURE__ */ Mt(Ga), {
2613
2613
  Argument: jf,
2614
2614
  Option: Uf,
2615
2615
  Help: Hf
2616
- } = qa, Ua = "5.1.3", Ha = {
2616
+ } = qa, Ua = "5.1.5", Ha = {
2617
2617
  version: Ua
2618
- }, D = {
2618
+ }, x = {
2619
2619
  react: "react",
2620
2620
  vite: "vite",
2621
2621
  cdn: "cdn",
@@ -2626,6 +2626,8 @@ const qa = /* @__PURE__ */ Mt(Ga), {
2626
2626
  geometryOperatorWorker: "geometry-operator-worker",
2627
2627
  aiComponentsCustomAgentToolsReact: "ai-components-custom-agent-tools-react (beta)",
2628
2628
  aiComponentsCustomAgentHilReact: "ai-components-custom-agent-hil-react (beta)",
2629
+ aiComponentsAgentUtilsToolsReact: "ai-components-agent-utils-tools-react (beta)",
2630
+ aiComponentsAgentUtilsHilReact: "ai-components-agent-utils-hil-react (beta)",
2629
2631
  codingComponentsAngular: "coding-components-angular",
2630
2632
  codingComponentsReact: "coding-components-react",
2631
2633
  codingComponentsVite: "coding-components-vite",
@@ -2636,75 +2638,83 @@ const qa = /* @__PURE__ */ Mt(Ga), {
2636
2638
  webGisSdk: "web-gis-sdk"
2637
2639
  }, Va = {
2638
2640
  [In.webGisSdk]: {
2639
- [D.angular]: "templates/js-maps-sdk-angular",
2640
- [D.cdn]: "templates/js-maps-sdk-cdn",
2641
- [D.node]: "templates/js-maps-sdk-node",
2642
- [D.react]: "templates/js-maps-sdk-react",
2643
- [D.vite]: "templates/js-maps-sdk-vite",
2644
- [D.vue]: "templates/js-maps-sdk-vue",
2645
- [D.webpack]: "templates/js-maps-sdk-webpack",
2646
- [D.disconnectedEnvironment]: "templates/disconnected-environment",
2647
- [D.geometryOperatorWorker]: "templates/geometry-operator-worker",
2648
- [D.aiComponentsCustomAgentToolsReact]: "templates/ai-components-custom-agent-tools-react",
2649
- [D.aiComponentsCustomAgentHilReact]: "templates/ai-components-custom-agent-hil-react",
2650
- [D.codingComponentsAngular]: "templates/coding-components-angular",
2651
- [D.codingComponentsReact]: "templates/coding-components-react",
2652
- [D.codingComponentsVite]: "templates/coding-components-vite"
2653
- }
2654
- }, se = {
2641
+ [x.angular]: "templates/js-maps-sdk-angular",
2642
+ [x.cdn]: "templates/js-maps-sdk-cdn",
2643
+ [x.node]: "templates/js-maps-sdk-node",
2644
+ [x.react]: "templates/js-maps-sdk-react",
2645
+ [x.vite]: "templates/js-maps-sdk-vite",
2646
+ [x.vue]: "templates/js-maps-sdk-vue",
2647
+ [x.webpack]: "templates/js-maps-sdk-webpack",
2648
+ [x.disconnectedEnvironment]: "templates/disconnected-environment",
2649
+ [x.geometryOperatorWorker]: "templates/geometry-operator-worker",
2650
+ [x.aiComponentsCustomAgentToolsReact]: "templates/ai-components-custom-agent-tools-react",
2651
+ [x.aiComponentsCustomAgentHilReact]: "templates/ai-components-custom-agent-hil-react",
2652
+ [x.aiComponentsAgentUtilsToolsReact]: "templates/ai-components-agent-utils-tools-react",
2653
+ [x.aiComponentsAgentUtilsHilReact]: "templates/ai-components-agent-utils-hil-react",
2654
+ [x.codingComponentsAngular]: "templates/coding-components-angular",
2655
+ [x.codingComponentsReact]: "templates/coding-components-react",
2656
+ [x.codingComponentsVite]: "templates/coding-components-vite"
2657
+ }
2658
+ }, ie = {
2655
2659
  codeSample: "CODE_SAMPLE",
2656
2660
  appSample: "APP_SAMPLE"
2657
2661
  }, So = "github.com", Tn = "main", wo = {
2658
- [D.angular]: "Esri/jsapi-resources",
2659
- [D.cdn]: "Esri/jsapi-resources",
2660
- [D.node]: "Esri/jsapi-resources",
2661
- [D.react]: "Esri/jsapi-resources",
2662
- [D.vite]: "Esri/jsapi-resources",
2663
- [D.vue]: "Esri/jsapi-resources",
2664
- [D.webpack]: "Esri/jsapi-resources",
2665
- [D.codingComponentsAngular]: "Esri/jsapi-resources",
2666
- [D.codingComponentsReact]: "Esri/jsapi-resources",
2667
- [D.codingComponentsVite]: "Esri/jsapi-resources",
2668
- [D.disconnectedEnvironment]: "Esri/jsapi-resources",
2669
- [D.geometryOperatorWorker]: "Esri/jsapi-resources",
2670
- [D.aiComponentsCustomAgentToolsReact]: "Esri/jsapi-resources",
2671
- [D.aiComponentsCustomAgentHilReact]: "Esri/jsapi-resources",
2662
+ [x.angular]: "Esri/jsapi-resources",
2663
+ [x.cdn]: "Esri/jsapi-resources",
2664
+ [x.node]: "Esri/jsapi-resources",
2665
+ [x.react]: "Esri/jsapi-resources",
2666
+ [x.vite]: "Esri/jsapi-resources",
2667
+ [x.vue]: "Esri/jsapi-resources",
2668
+ [x.webpack]: "Esri/jsapi-resources",
2669
+ [x.codingComponentsAngular]: "Esri/jsapi-resources",
2670
+ [x.codingComponentsReact]: "Esri/jsapi-resources",
2671
+ [x.codingComponentsVite]: "Esri/jsapi-resources",
2672
+ [x.disconnectedEnvironment]: "Esri/jsapi-resources",
2673
+ [x.geometryOperatorWorker]: "Esri/jsapi-resources",
2674
+ [x.aiComponentsCustomAgentToolsReact]: "Esri/jsapi-resources",
2675
+ [x.aiComponentsCustomAgentHilReact]: "Esri/jsapi-resources",
2676
+ [x.aiComponentsAgentUtilsToolsReact]: "Esri/jsapi-resources",
2677
+ [x.aiComponentsAgentUtilsHilReact]: "Esri/jsapi-resources",
2672
2678
  // code sample templates
2673
- [D.luminaComponents]: "WebGIS/arcgis-web-components"
2679
+ [x.luminaComponents]: "WebGIS/arcgis-web-components"
2674
2680
  }, Wa = {
2675
- [D.angular]: "templates/js-maps-sdk-angular",
2676
- [D.cdn]: "templates/js-maps-sdk-cdn",
2677
- [D.node]: "templates/js-maps-sdk-node",
2678
- [D.react]: "templates/js-maps-sdk-react",
2679
- [D.vite]: "templates/js-maps-sdk-vite",
2680
- [D.vue]: "templates/js-maps-sdk-vue",
2681
- [D.webpack]: "templates/js-maps-sdk-webpack",
2682
- [D.codingComponentsAngular]: "templates/coding-components-angular",
2683
- [D.codingComponentsReact]: "templates/coding-components-react",
2684
- [D.codingComponentsVite]: "templates/coding-components-vite",
2685
- [D.disconnectedEnvironment]: "templates/disconnected-environment",
2686
- [D.geometryOperatorWorker]: "templates/geometry-operator-worker",
2687
- [D.aiComponentsCustomAgentToolsReact]: "templates/ai-components-custom-agent-tools-react",
2688
- [D.aiComponentsCustomAgentHilReact]: "templates/ai-components-custom-agent-hil-react",
2689
- [D.luminaComponents]: "packages/starter-packages/lumina-components"
2681
+ [x.angular]: "templates/js-maps-sdk-angular",
2682
+ [x.cdn]: "templates/js-maps-sdk-cdn",
2683
+ [x.node]: "templates/js-maps-sdk-node",
2684
+ [x.react]: "templates/js-maps-sdk-react",
2685
+ [x.vite]: "templates/js-maps-sdk-vite",
2686
+ [x.vue]: "templates/js-maps-sdk-vue",
2687
+ [x.webpack]: "templates/js-maps-sdk-webpack",
2688
+ [x.codingComponentsAngular]: "templates/coding-components-angular",
2689
+ [x.codingComponentsReact]: "templates/coding-components-react",
2690
+ [x.codingComponentsVite]: "templates/coding-components-vite",
2691
+ [x.disconnectedEnvironment]: "templates/disconnected-environment",
2692
+ [x.geometryOperatorWorker]: "templates/geometry-operator-worker",
2693
+ [x.aiComponentsCustomAgentToolsReact]: "templates/ai-components-custom-agent-tools-react",
2694
+ [x.aiComponentsCustomAgentHilReact]: "templates/ai-components-custom-agent-hil-react",
2695
+ [x.aiComponentsAgentUtilsToolsReact]: "templates/ai-components-agent-utils-tools-react",
2696
+ [x.aiComponentsAgentUtilsHilReact]: "templates/ai-components-agent-utils-hil-react",
2697
+ [x.luminaComponents]: "packages/starter-packages/lumina-components"
2690
2698
  }, Ya = {
2691
- [D.angular]: se.appSample,
2692
- [D.cdn]: se.appSample,
2693
- [D.node]: se.appSample,
2694
- [D.react]: se.appSample,
2695
- [D.vite]: se.appSample,
2696
- [D.vue]: se.appSample,
2697
- [D.webpack]: se.appSample,
2698
- [D.codingComponentsAngular]: se.appSample,
2699
- [D.codingComponentsReact]: se.appSample,
2700
- [D.codingComponentsVite]: se.appSample,
2701
- [D.disconnectedEnvironment]: se.appSample,
2702
- [D.geometryOperatorWorker]: se.appSample,
2703
- [D.aiComponentsCustomAgentToolsReact]: se.appSample,
2704
- [D.aiComponentsCustomAgentHilReact]: se.appSample,
2705
- [D.luminaComponents]: se.codeSample
2699
+ [x.angular]: ie.appSample,
2700
+ [x.cdn]: ie.appSample,
2701
+ [x.node]: ie.appSample,
2702
+ [x.react]: ie.appSample,
2703
+ [x.vite]: ie.appSample,
2704
+ [x.vue]: ie.appSample,
2705
+ [x.webpack]: ie.appSample,
2706
+ [x.codingComponentsAngular]: ie.appSample,
2707
+ [x.codingComponentsReact]: ie.appSample,
2708
+ [x.codingComponentsVite]: ie.appSample,
2709
+ [x.disconnectedEnvironment]: ie.appSample,
2710
+ [x.geometryOperatorWorker]: ie.appSample,
2711
+ [x.aiComponentsCustomAgentToolsReact]: ie.appSample,
2712
+ [x.aiComponentsCustomAgentHilReact]: ie.appSample,
2713
+ [x.aiComponentsAgentUtilsToolsReact]: ie.appSample,
2714
+ [x.aiComponentsAgentUtilsHilReact]: ie.appSample,
2715
+ [x.luminaComponents]: ie.codeSample
2706
2716
  }, Ka = {
2707
- [D.luminaComponents]: !0
2717
+ [x.luminaComponents]: !0
2708
2718
  };
2709
2719
  var ft = { exports: {} }, cs;
2710
2720
  function Ja() {
@@ -3385,7 +3395,7 @@ const Gl = (e, p, m, g, f) => {
3385
3395
  }
3386
3396
  if (w > l) {
3387
3397
  let C = 0, _ = 0, $ = w;
3388
- const N = p - y, P = (x, G) => Gl(b, $, x, G, l);
3398
+ const N = p - y, P = (M, G) => Gl(b, $, M, G, l);
3389
3399
  d ? ({ lineCount: $, removals: C } = P(0, N), $ > l && ({ lineCount: $, removals: _ } = P(N + 1, b.length))) : ({ lineCount: $, removals: _ } = P(N + 1, b.length), $ > l && ({ lineCount: $, removals: C } = P(0, N))), C > 0 && (d = !0, b.splice(0, C)), _ > 0 && (v = !0, b.splice(b.length - _, _));
3390
3400
  }
3391
3401
  const E = [];
@@ -3490,7 +3500,7 @@ ${n}
3490
3500
  }, $ = (F) => F.replace(/\.+$/, ""), N = (F) => {
3491
3501
  const B = (performance.now() - F) / 1e3, q = Math.floor(B / 60), T = Math.floor(B % 60);
3492
3502
  return q > 0 ? `[${q}m ${T}s]` : `[${T}s]`;
3493
- }, P = o.withGuide ?? Se.withGuide, x = (F = "") => {
3503
+ }, P = o.withGuide ?? Se.withGuide, M = (F = "") => {
3494
3504
  l = !0, r = pl({ output: m }), c = $(F), v = performance.now(), P && m.write(`${R.gray(J)}
3495
3505
  `);
3496
3506
  let B = 0, q = 0;
@@ -3516,7 +3526,7 @@ ${n}
3516
3526
  `) : m.write(`${T} ${c}
3517
3527
  `)), C(), r();
3518
3528
  };
3519
- return { start: x, stop: (F = "") => G(F, 0), message: (F = "") => {
3529
+ return { start: M, stop: (F = "") => G(F, 0), message: (F = "") => {
3520
3530
  c = $(F ?? c);
3521
3531
  }, cancel: (F = "") => G(F, 1), error: (F = "") => G(F, 2), clear: () => G("", 0, !0), get isCancelled() {
3522
3532
  return i;
@@ -3968,8 +3978,8 @@ function uc() {
3968
3978
  return (O.r * 299 + O.g * 587 + O.b * 114) / 1e3;
3969
3979
  },
3970
3980
  getLuminance: function() {
3971
- var O = this.toRgb(), L, I, M, k, V, K;
3972
- return L = O.r / 255, I = O.g / 255, M = O.b / 255, L <= 0.03928 ? k = L / 12.92 : k = Math.pow((L + 0.055) / 1.055, 2.4), I <= 0.03928 ? V = I / 12.92 : V = Math.pow((I + 0.055) / 1.055, 2.4), M <= 0.03928 ? K = M / 12.92 : K = Math.pow((M + 0.055) / 1.055, 2.4), 0.2126 * k + 0.7152 * V + 0.0722 * K;
3981
+ var O = this.toRgb(), L, I, D, k, V, K;
3982
+ return L = O.r / 255, I = O.g / 255, D = O.b / 255, L <= 0.03928 ? k = L / 12.92 : k = Math.pow((L + 0.055) / 1.055, 2.4), I <= 0.03928 ? V = I / 12.92 : V = Math.pow((I + 0.055) / 1.055, 2.4), D <= 0.03928 ? K = D / 12.92 : K = Math.pow((D + 0.055) / 1.055, 2.4), 0.2126 * k + 0.7152 * V + 0.0722 * K;
3973
3983
  },
3974
3984
  setAlpha: function(O) {
3975
3985
  return this._a = F(O), this._roundA = Math.round(100 * this._a) / 100, this;
@@ -3984,8 +3994,8 @@ function uc() {
3984
3994
  };
3985
3995
  },
3986
3996
  toHsvString: function() {
3987
- var O = r(this._r, this._g, this._b), L = Math.round(O.h * 360), I = Math.round(O.s * 100), M = Math.round(O.v * 100);
3988
- return this._a == 1 ? "hsv(" + L + ", " + I + "%, " + M + "%)" : "hsva(" + L + ", " + I + "%, " + M + "%, " + this._roundA + ")";
3997
+ var O = r(this._r, this._g, this._b), L = Math.round(O.h * 360), I = Math.round(O.s * 100), D = Math.round(O.v * 100);
3998
+ return this._a == 1 ? "hsv(" + L + ", " + I + "%, " + D + "%)" : "hsva(" + L + ", " + I + "%, " + D + "%, " + this._roundA + ")";
3989
3999
  },
3990
4000
  toHsl: function() {
3991
4001
  var O = o(this._r, this._g, this._b);
@@ -3997,8 +4007,8 @@ function uc() {
3997
4007
  };
3998
4008
  },
3999
4009
  toHslString: function() {
4000
- var O = o(this._r, this._g, this._b), L = Math.round(O.h * 360), I = Math.round(O.s * 100), M = Math.round(O.l * 100);
4001
- return this._a == 1 ? "hsl(" + L + ", " + I + "%, " + M + "%)" : "hsla(" + L + ", " + I + "%, " + M + "%, " + this._roundA + ")";
4010
+ var O = o(this._r, this._g, this._b), L = Math.round(O.h * 360), I = Math.round(O.s * 100), D = Math.round(O.l * 100);
4011
+ return this._a == 1 ? "hsl(" + L + ", " + I + "%, " + D + "%)" : "hsla(" + L + ", " + I + "%, " + D + "%, " + this._roundA + ")";
4002
4012
  },
4003
4013
  toHex: function(O) {
4004
4014
  return l(this._r, this._g, this._b, O);
@@ -4035,20 +4045,20 @@ function uc() {
4035
4045
  return this._a == 1 ? "rgb(" + Math.round(B(this._r, 255) * 100) + "%, " + Math.round(B(this._g, 255) * 100) + "%, " + Math.round(B(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(B(this._r, 255) * 100) + "%, " + Math.round(B(this._g, 255) * 100) + "%, " + Math.round(B(this._b, 255) * 100) + "%, " + this._roundA + ")";
4036
4046
  },
4037
4047
  toName: function() {
4038
- return this._a === 0 ? "transparent" : this._a < 1 ? !1 : x[l(this._r, this._g, this._b, !0)] || !1;
4048
+ return this._a === 0 ? "transparent" : this._a < 1 ? !1 : M[l(this._r, this._g, this._b, !0)] || !1;
4039
4049
  },
4040
4050
  toFilter: function(O) {
4041
- var L = "#" + c(this._r, this._g, this._b, this._a), I = L, M = this._gradientType ? "GradientType = 1, " : "";
4051
+ var L = "#" + c(this._r, this._g, this._b, this._a), I = L, D = this._gradientType ? "GradientType = 1, " : "";
4042
4052
  if (O) {
4043
4053
  var k = t(O);
4044
4054
  I = "#" + c(k._r, k._g, k._b, k._a);
4045
4055
  }
4046
- return "progid:DXImageTransform.Microsoft.gradient(" + M + "startColorstr=" + L + ",endColorstr=" + I + ")";
4056
+ return "progid:DXImageTransform.Microsoft.gradient(" + D + "startColorstr=" + L + ",endColorstr=" + I + ")";
4047
4057
  },
4048
4058
  toString: function(O) {
4049
4059
  var L = !!O;
4050
4060
  O = O || this._format;
4051
- var I = !1, M = this._a < 1 && this._a >= 0, k = !L && M && (O === "hex" || O === "hex6" || O === "hex3" || O === "hex4" || O === "hex8" || O === "name");
4061
+ var I = !1, D = this._a < 1 && this._a >= 0, k = !L && D && (O === "hex" || O === "hex6" || O === "hex3" || O === "hex4" || O === "hex8" || O === "name");
4052
4062
  return k ? O === "name" && this._a === 0 ? this.toName() : this.toRgbString() : (O === "rgb" && (I = this.toRgbString()), O === "prgb" && (I = this.toPercentageRgbString()), (O === "hex" || O === "hex6") && (I = this.toHexString()), O === "hex3" && (I = this.toHexString(!0)), O === "hex4" && (I = this.toHex8String(!0)), O === "hex8" && (I = this.toHex8String()), O === "name" && (I = this.toName()), O === "hsl" && (I = this.toHslString()), O === "hsv" && (I = this.toHsvString()), I || this.toHexString());
4053
4063
  },
4054
4064
  clone: function() {
@@ -4108,7 +4118,7 @@ function uc() {
4108
4118
  if (m(A) == "object") {
4109
4119
  var L = {};
4110
4120
  for (var I in A)
4111
- A.hasOwnProperty(I) && (I === "a" ? L[I] = A[I] : L[I] = ne(A[I]));
4121
+ A.hasOwnProperty(I) && (I === "a" ? L[I] = A[I] : L[I] = se(A[I]));
4112
4122
  A = L;
4113
4123
  }
4114
4124
  return t(A, O);
@@ -4118,8 +4128,8 @@ function uc() {
4118
4128
  r: 0,
4119
4129
  g: 0,
4120
4130
  b: 0
4121
- }, L = 1, I = null, M = null, k = null, V = !1, K = !1;
4122
- return typeof A == "string" && (A = wa(A)), m(A) == "object" && (Ce(A.r) && Ce(A.g) && Ce(A.b) ? (O = a(A.r, A.g, A.b), V = !0, K = String(A.r).substr(-1) === "%" ? "prgb" : "rgb") : Ce(A.h) && Ce(A.s) && Ce(A.v) ? (I = ne(A.s), M = ne(A.v), O = u(A.h, I, M), V = !0, K = "hsv") : Ce(A.h) && Ce(A.s) && Ce(A.l) && (I = ne(A.s), k = ne(A.l), O = h(A.h, I, k), V = !0, K = "hsl"), A.hasOwnProperty("a") && (L = A.a)), L = F(L), {
4131
+ }, L = 1, I = null, D = null, k = null, V = !1, K = !1;
4132
+ return typeof A == "string" && (A = wa(A)), m(A) == "object" && (Ce(A.r) && Ce(A.g) && Ce(A.b) ? (O = a(A.r, A.g, A.b), V = !0, K = String(A.r).substr(-1) === "%" ? "prgb" : "rgb") : Ce(A.h) && Ce(A.s) && Ce(A.v) ? (I = se(A.s), D = se(A.v), O = u(A.h, I, D), V = !0, K = "hsv") : Ce(A.h) && Ce(A.s) && Ce(A.l) && (I = se(A.s), k = se(A.l), O = h(A.h, I, k), V = !0, K = "hsl"), A.hasOwnProperty("a") && (L = A.a)), L = F(L), {
4123
4133
  ok: V,
4124
4134
  format: A.format || K,
4125
4135
  r: Math.min(255, Math.max(O.r, 0)),
@@ -4137,12 +4147,12 @@ function uc() {
4137
4147
  }
4138
4148
  function o(A, O, L) {
4139
4149
  A = B(A, 255), O = B(O, 255), L = B(L, 255);
4140
- var I = Math.max(A, O, L), M = Math.min(A, O, L), k, V, K = (I + M) / 2;
4141
- if (I == M)
4150
+ var I = Math.max(A, O, L), D = Math.min(A, O, L), k, V, K = (I + D) / 2;
4151
+ if (I == D)
4142
4152
  k = V = 0;
4143
4153
  else {
4144
- var Z = I - M;
4145
- switch (V = K > 0.5 ? Z / (2 - I - M) : Z / (I + M), I) {
4154
+ var Z = I - D;
4155
+ switch (V = K > 0.5 ? Z / (2 - I - D) : Z / (I + D), I) {
4146
4156
  case A:
4147
4157
  k = (O - L) / Z + (O < L ? 6 : 0);
4148
4158
  break;
@@ -4162,27 +4172,27 @@ function uc() {
4162
4172
  };
4163
4173
  }
4164
4174
  function h(A, O, L) {
4165
- var I, M, k;
4175
+ var I, D, k;
4166
4176
  A = B(A, 360), O = B(O, 100), L = B(L, 100);
4167
4177
  function V(ge, Fe, ve) {
4168
4178
  return ve < 0 && (ve += 1), ve > 1 && (ve -= 1), ve < 1 / 6 ? ge + (Fe - ge) * 6 * ve : ve < 1 / 2 ? Fe : ve < 2 / 3 ? ge + (Fe - ge) * (2 / 3 - ve) * 6 : ge;
4169
4179
  }
4170
4180
  if (O === 0)
4171
- I = M = k = L;
4181
+ I = D = k = L;
4172
4182
  else {
4173
4183
  var K = L < 0.5 ? L * (1 + O) : L + O - L * O, Z = 2 * L - K;
4174
- I = V(Z, K, A + 1 / 3), M = V(Z, K, A), k = V(Z, K, A - 1 / 3);
4184
+ I = V(Z, K, A + 1 / 3), D = V(Z, K, A), k = V(Z, K, A - 1 / 3);
4175
4185
  }
4176
4186
  return {
4177
4187
  r: I * 255,
4178
- g: M * 255,
4188
+ g: D * 255,
4179
4189
  b: k * 255
4180
4190
  };
4181
4191
  }
4182
4192
  function r(A, O, L) {
4183
4193
  A = B(A, 255), O = B(O, 255), L = B(L, 255);
4184
- var I = Math.max(A, O, L), M = Math.min(A, O, L), k, V, K = I, Z = I - M;
4185
- if (V = I === 0 ? 0 : Z / I, I == M)
4194
+ var I = Math.max(A, O, L), D = Math.min(A, O, L), k, V, K = I, Z = I - D;
4195
+ if (V = I === 0 ? 0 : Z / I, I == D)
4186
4196
  k = 0;
4187
4197
  else {
4188
4198
  switch (I) {
@@ -4206,7 +4216,7 @@ function uc() {
4206
4216
  }
4207
4217
  function u(A, O, L) {
4208
4218
  A = B(A, 360) * 6, O = B(O, 100), L = B(L, 100);
4209
- var I = Math.floor(A), M = A - I, k = L * (1 - O), V = L * (1 - M * O), K = L * (1 - (1 - M) * O), Z = I % 6, ge = [L, V, k, k, K, L][Z], Fe = [K, L, L, V, k, k][Z], ve = [k, k, K, L, L, V][Z];
4219
+ var I = Math.floor(A), D = A - I, k = L * (1 - O), V = L * (1 - D * O), K = L * (1 - (1 - D) * O), Z = I % 6, ge = [L, V, k, k, K, L][Z], Fe = [K, L, L, V, k, k][Z], ve = [k, k, K, L, L, V][Z];
4210
4220
  return {
4211
4221
  r: ge * 255,
4212
4222
  g: Fe * 255,
@@ -4214,16 +4224,16 @@ function uc() {
4214
4224
  };
4215
4225
  }
4216
4226
  function l(A, O, L, I) {
4217
- var M = [U(Math.round(A).toString(16)), U(Math.round(O).toString(16)), U(Math.round(L).toString(16))];
4218
- return I && 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("");
4227
+ var D = [U(Math.round(A).toString(16)), U(Math.round(O).toString(16)), U(Math.round(L).toString(16))];
4228
+ return I && D[0].charAt(0) == D[0].charAt(1) && D[1].charAt(0) == D[1].charAt(1) && D[2].charAt(0) == D[2].charAt(1) ? D[0].charAt(0) + D[1].charAt(0) + D[2].charAt(0) : D.join("");
4219
4229
  }
4220
- function i(A, O, L, I, M) {
4230
+ function i(A, O, L, I, D) {
4221
4231
  var k = [U(Math.round(A).toString(16)), U(Math.round(O).toString(16)), U(Math.round(L).toString(16)), U(Ee(I))];
4222
- 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("");
4232
+ return D && 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("");
4223
4233
  }
4224
4234
  function c(A, O, L, I) {
4225
- var M = [U(Ee(I)), U(Math.round(A).toString(16)), U(Math.round(O).toString(16)), U(Math.round(L).toString(16))];
4226
- return M.join("");
4235
+ var D = [U(Ee(I)), U(Math.round(A).toString(16)), U(Math.round(O).toString(16)), U(Math.round(L).toString(16))];
4236
+ return D.join("");
4227
4237
  }
4228
4238
  t.equals = function(A, O) {
4229
4239
  return !A || !O ? !1 : t(A).toRgbString() == t(O).toRgbString();
@@ -4273,9 +4283,9 @@ function uc() {
4273
4283
  function C(A, O) {
4274
4284
  if (isNaN(O) || O <= 0)
4275
4285
  throw new Error("Argument to polyad must be a positive number");
4276
- for (var L = t(A).toHsl(), I = [t(A)], M = 360 / O, k = 1; k < O; k++)
4286
+ for (var L = t(A).toHsl(), I = [t(A)], D = 360 / O, k = 1; k < O; k++)
4277
4287
  I.push(t({
4278
- h: (L.h + k * M) % 360,
4288
+ h: (L.h + k * D) % 360,
4279
4289
  s: L.s,
4280
4290
  l: L.l
4281
4291
  }));
@@ -4295,36 +4305,36 @@ function uc() {
4295
4305
  }
4296
4306
  function $(A, O, L) {
4297
4307
  O = O || 6, L = L || 30;
4298
- var I = t(A).toHsl(), M = 360 / L, k = [t(A)];
4299
- for (I.h = (I.h - (M * O >> 1) + 720) % 360; --O; )
4300
- I.h = (I.h + M) % 360, k.push(t(I));
4308
+ var I = t(A).toHsl(), D = 360 / L, k = [t(A)];
4309
+ for (I.h = (I.h - (D * O >> 1) + 720) % 360; --O; )
4310
+ I.h = (I.h + D) % 360, k.push(t(I));
4301
4311
  return k;
4302
4312
  }
4303
4313
  function N(A, O) {
4304
4314
  O = O || 6;
4305
- for (var L = t(A).toHsv(), I = L.h, M = L.s, k = L.v, V = [], K = 1 / O; O--; )
4315
+ for (var L = t(A).toHsv(), I = L.h, D = L.s, k = L.v, V = [], K = 1 / O; O--; )
4306
4316
  V.push(t({
4307
4317
  h: I,
4308
- s: M,
4318
+ s: D,
4309
4319
  v: k
4310
4320
  })), k = (k + K) % 1;
4311
4321
  return V;
4312
4322
  }
4313
4323
  t.mix = function(A, O, L) {
4314
4324
  L = L === 0 ? 0 : L || 50;
4315
- var I = t(A).toRgb(), M = t(O).toRgb(), k = L / 100, V = {
4316
- r: (M.r - I.r) * k + I.r,
4317
- g: (M.g - I.g) * k + I.g,
4318
- b: (M.b - I.b) * k + I.b,
4319
- a: (M.a - I.a) * k + I.a
4325
+ var I = t(A).toRgb(), D = t(O).toRgb(), k = L / 100, V = {
4326
+ r: (D.r - I.r) * k + I.r,
4327
+ g: (D.g - I.g) * k + I.g,
4328
+ b: (D.b - I.b) * k + I.b,
4329
+ a: (D.a - I.a) * k + I.a
4320
4330
  };
4321
4331
  return t(V);
4322
4332
  }, t.readability = function(A, O) {
4323
4333
  var L = t(A), I = t(O);
4324
4334
  return (Math.max(L.getLuminance(), I.getLuminance()) + 0.05) / (Math.min(L.getLuminance(), I.getLuminance()) + 0.05);
4325
4335
  }, t.isReadable = function(A, O, L) {
4326
- var I = t.readability(A, O), M, k;
4327
- switch (k = !1, M = Ea(L), M.level + M.size) {
4336
+ var I = t.readability(A, O), D, k;
4337
+ switch (k = !1, D = Ea(L), D.level + D.size) {
4328
4338
  case "AAsmall":
4329
4339
  case "AAAlarge":
4330
4340
  k = I >= 4.5;
@@ -4338,10 +4348,10 @@ function uc() {
4338
4348
  }
4339
4349
  return k;
4340
4350
  }, t.mostReadable = function(A, O, L) {
4341
- var I = null, M = 0, k, V, K, Z;
4351
+ var I = null, D = 0, k, V, K, Z;
4342
4352
  L = L || {}, V = L.includeFallbackColors, K = L.level, Z = L.size;
4343
4353
  for (var ge = 0; ge < O.length; ge++)
4344
- k = t.readability(A, O[ge]), k > M && (M = k, I = t(O[ge]));
4354
+ k = t.readability(A, O[ge]), k > D && (D = k, I = t(O[ge]));
4345
4355
  return t.isReadable(A, I, {
4346
4356
  level: K,
4347
4357
  size: Z
@@ -4497,7 +4507,7 @@ function uc() {
4497
4507
  whitesmoke: "f5f5f5",
4498
4508
  yellow: "ff0",
4499
4509
  yellowgreen: "9acd32"
4500
- }, x = t.hexNames = G(P);
4510
+ }, M = t.hexNames = G(P);
4501
4511
  function G(A) {
4502
4512
  var O = {};
4503
4513
  for (var L in A)
@@ -4527,7 +4537,7 @@ function uc() {
4527
4537
  function U(A) {
4528
4538
  return A.length == 1 ? "0" + A : "" + A;
4529
4539
  }
4530
- function ne(A) {
4540
+ function se(A) {
4531
4541
  return A <= 1 && (A = A * 100 + "%"), A;
4532
4542
  }
4533
4543
  function Ee(A) {
@@ -4537,15 +4547,15 @@ function uc() {
4537
4547
  return T(A) / 255;
4538
4548
  }
4539
4549
  var fe = (function() {
4540
- var A = "[-\\+]?\\d+%?", O = "[-\\+]?\\d*\\.\\d+%?", L = "(?:" + O + ")|(?:" + A + ")", I = "[\\s|\\(]+(" + L + ")[,|\\s]+(" + L + ")[,|\\s]+(" + L + ")\\s*\\)?", M = "[\\s|\\(]+(" + L + ")[,|\\s]+(" + L + ")[,|\\s]+(" + L + ")[,|\\s]+(" + L + ")\\s*\\)?";
4550
+ var A = "[-\\+]?\\d+%?", O = "[-\\+]?\\d*\\.\\d+%?", L = "(?:" + O + ")|(?:" + A + ")", I = "[\\s|\\(]+(" + L + ")[,|\\s]+(" + L + ")[,|\\s]+(" + L + ")\\s*\\)?", D = "[\\s|\\(]+(" + L + ")[,|\\s]+(" + L + ")[,|\\s]+(" + L + ")[,|\\s]+(" + L + ")\\s*\\)?";
4541
4551
  return {
4542
4552
  CSS_UNIT: new RegExp(L),
4543
4553
  rgb: new RegExp("rgb" + I),
4544
- rgba: new RegExp("rgba" + M),
4554
+ rgba: new RegExp("rgba" + D),
4545
4555
  hsl: new RegExp("hsl" + I),
4546
- hsla: new RegExp("hsla" + M),
4556
+ hsla: new RegExp("hsla" + D),
4547
4557
  hsv: new RegExp("hsv" + I),
4548
- hsva: new RegExp("hsva" + M),
4558
+ hsva: new RegExp("hsva" + D),
4549
4559
  hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
4550
4560
  hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
4551
4561
  hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
@@ -4964,7 +4974,7 @@ async function Fo() {
4964
4974
  });
4965
4975
  }
4966
4976
  async function $c() {
4967
- const e = Object.entries(D).filter(([, p]) => !Ka[p]).map(([, p]) => ({ value: p, label: p }));
4977
+ const e = Object.entries(x).filter(([, p]) => !Ka[p]).map(([, p]) => ({ value: p, label: p }));
4968
4978
  return await Yl({
4969
4979
  message: "Which template would you like to use?",
4970
4980
  options: e
@@ -6112,7 +6122,7 @@ function Uc() {
6112
6122
  return this.#g;
6113
6123
  }
6114
6124
  constructor(i) {
6115
- const { max: c = 0, ttl: d, ttlResolution: v = 1, ttlAutopurge: s, updateAgeOnGet: b, updateAgeOnHas: w, allowStale: y, dispose: S, disposeAfter: E, noDisposeOnSet: C, noUpdateTTL: _, maxSize: $ = 0, maxEntrySize: N = 0, sizeCalculation: P, fetchMethod: x, memoMethod: G, noDeleteOnFetchRejection: F, noDeleteOnStaleGet: B, allowStaleOnFetchRejection: q, allowStaleOnFetchAbort: T, ignoreFetchAbort: Y } = i;
6125
+ const { max: c = 0, ttl: d, ttlResolution: v = 1, ttlAutopurge: s, updateAgeOnGet: b, updateAgeOnHas: w, allowStale: y, dispose: S, disposeAfter: E, noDisposeOnSet: C, noUpdateTTL: _, maxSize: $ = 0, maxEntrySize: N = 0, sizeCalculation: P, fetchMethod: M, memoMethod: G, noDeleteOnFetchRejection: F, noDeleteOnStaleGet: B, allowStaleOnFetchRejection: q, allowStaleOnFetchAbort: T, ignoreFetchAbort: Y } = i;
6116
6126
  if (c !== 0 && !a(c))
6117
6127
  throw new TypeError("max option must be a nonnegative integer");
6118
6128
  const j = c ? o(c) : Array;
@@ -6126,9 +6136,9 @@ function Uc() {
6126
6136
  }
6127
6137
  if (G !== void 0 && typeof G != "function")
6128
6138
  throw new TypeError("memoMethod must be a function if defined");
6129
- if (this.#I = G, x !== void 0 && typeof x != "function")
6139
+ if (this.#I = G, M !== void 0 && typeof M != "function")
6130
6140
  throw new TypeError("fetchMethod must be a function if specified");
6131
- if (this.#P = x, this.#O = !!x, this.#r = /* @__PURE__ */ new Map(), this.#n = new Array(c).fill(void 0), this.#e = new Array(c).fill(void 0), this.#f = new j(c), this.#p = new j(c), this.#u = 0, this.#a = 0, this.#b = r.create(c), this.#o = 0, this.#y = 0, typeof S == "function" && (this.#t = S), typeof E == "function" ? (this.#g = E, this.#l = []) : (this.#g = void 0, this.#l = void 0), this.#w = !!this.#t, this.#h = !!this.#g, this.noDisposeOnSet = !!C, this.noUpdateTTL = !!_, this.noDeleteOnFetchRejection = !!F, this.allowStaleOnFetchRejection = !!q, this.allowStaleOnFetchAbort = !!T, this.ignoreFetchAbort = !!Y, this.maxEntrySize !== 0) {
6141
+ if (this.#P = M, this.#O = !!M, this.#r = /* @__PURE__ */ new Map(), this.#n = new Array(c).fill(void 0), this.#e = new Array(c).fill(void 0), this.#f = new j(c), this.#p = new j(c), this.#u = 0, this.#a = 0, this.#b = r.create(c), this.#o = 0, this.#y = 0, typeof S == "function" && (this.#t = S), typeof E == "function" ? (this.#g = E, this.#l = []) : (this.#g = void 0, this.#l = void 0), this.#w = !!this.#t, this.#h = !!this.#g, this.noDisposeOnSet = !!C, this.noUpdateTTL = !!_, this.noDeleteOnFetchRejection = !!F, this.allowStaleOnFetchRejection = !!q, this.allowStaleOnFetchAbort = !!T, this.ignoreFetchAbort = !!Y, this.maxEntrySize !== 0) {
6132
6142
  if (this.#c !== 0 && !a(this.#c))
6133
6143
  throw new TypeError("maxSize must be a positive integer if specified");
6134
6144
  if (!a(this.maxEntrySize))
@@ -6597,21 +6607,21 @@ function Uc() {
6597
6607
  signal: b.signal,
6598
6608
  options: d,
6599
6609
  context: v
6600
- }, S = (P, x = !1) => {
6610
+ }, S = (P, M = !1) => {
6601
6611
  const { aborted: G } = b.signal, F = d.ignoreFetchAbort && P !== void 0;
6602
- if (d.status && (G && !x ? (d.status.fetchAborted = !0, d.status.fetchError = b.signal.reason, F && (d.status.fetchAbortIgnored = !0)) : d.status.fetchResolved = !0), G && !F && !x)
6612
+ if (d.status && (G && !M ? (d.status.fetchAborted = !0, d.status.fetchError = b.signal.reason, F && (d.status.fetchAbortIgnored = !0)) : d.status.fetchResolved = !0), G && !F && !M)
6603
6613
  return C(b.signal.reason);
6604
6614
  const B = $;
6605
6615
  return this.#e[c] === $ && (P === void 0 ? B.__staleWhileFetching ? this.#e[c] = B.__staleWhileFetching : this.#A(i, "fetch") : (d.status && (d.status.fetchUpdated = !0), this.set(i, P, y.options))), P;
6606
6616
  }, E = (P) => (d.status && (d.status.fetchRejected = !0, d.status.fetchError = P), C(P)), C = (P) => {
6607
- const { aborted: x } = b.signal, G = x && d.allowStaleOnFetchAbort, F = G || d.allowStaleOnFetchRejection, B = F || d.noDeleteOnFetchRejection, q = $;
6617
+ const { aborted: M } = b.signal, G = M && d.allowStaleOnFetchAbort, F = G || d.allowStaleOnFetchRejection, B = F || d.noDeleteOnFetchRejection, q = $;
6608
6618
  if (this.#e[c] === $ && (!B || q.__staleWhileFetching === void 0 ? this.#A(i, "fetch") : G || (this.#e[c] = q.__staleWhileFetching)), F)
6609
6619
  return d.status && q.__staleWhileFetching !== void 0 && (d.status.returnedStale = !0), q.__staleWhileFetching;
6610
6620
  if (q.__returned === q)
6611
6621
  throw P;
6612
- }, _ = (P, x) => {
6622
+ }, _ = (P, M) => {
6613
6623
  const G = this.#P?.(i, s, y);
6614
- G && G instanceof Promise && G.then((F) => P(F === void 0 ? void 0 : F), x), b.signal.addEventListener("abort", () => {
6624
+ G && G instanceof Promise && G.then((F) => P(F === void 0 ? void 0 : F), M), b.signal.addEventListener("abort", () => {
6615
6625
  (!d.ignoreFetchAbort || d.allowStaleOnFetchAbort) && (P(void 0), d.allowStaleOnFetchAbort && (P = (F) => S(F, !0)));
6616
6626
  });
6617
6627
  };
@@ -6647,7 +6657,7 @@ function Uc() {
6647
6657
  ignoreFetchAbort: $ = this.ignoreFetchAbort,
6648
6658
  allowStaleOnFetchAbort: N = this.allowStaleOnFetchAbort,
6649
6659
  context: P,
6650
- forceRefresh: x = !1,
6660
+ forceRefresh: M = !1,
6651
6661
  status: G,
6652
6662
  signal: F
6653
6663
  } = c;
@@ -6686,10 +6696,10 @@ function Uc() {
6686
6696
  return G && (G.fetch = "inflight", Ee && (G.returnedStale = !0)), Ee ? T.__staleWhileFetching : T.__returned = T;
6687
6697
  }
6688
6698
  const Y = this.#m(q);
6689
- if (!x && !Y)
6699
+ if (!M && !Y)
6690
6700
  return G && (G.fetch = "hit"), this.#N(q), v && this.#_(q), G && this.#L(G, q), T;
6691
- const j = this.#R(i, q, B, P), ne = j.__staleWhileFetching !== void 0 && d;
6692
- return G && (G.fetch = Y ? "stale" : "refresh", ne && Y && (G.returnedStale = !0)), ne ? j.__staleWhileFetching : j.__returned = j;
6701
+ const j = this.#R(i, q, B, P), se = j.__staleWhileFetching !== void 0 && d;
6702
+ return G && (G.fetch = Y ? "stale" : "refresh", se && Y && (G.returnedStale = !0)), se ? j.__staleWhileFetching : j.__returned = j;
6693
6703
  }
6694
6704
  }
6695
6705
  async forceFetch(i, c = {}) {
@@ -8374,18 +8384,18 @@ ${c}`) + "'";
8374
8384
  `);
8375
8385
  N === -1 ? C = "-" : c === $ || N !== $.length - 1 ? (C = "+", s && s()) : C = "", $ && (c = c.slice(0, -$.length), $[$.length - 1] === `
8376
8386
  ` && ($ = $.slice(0, -1)), $ = $.replace(o, `$&${S}`));
8377
- let P = !1, x, G = -1;
8378
- for (x = 0; x < c.length; ++x) {
8379
- const T = c[x];
8387
+ let P = !1, M, G = -1;
8388
+ for (M = 0; M < c.length; ++M) {
8389
+ const T = c[M];
8380
8390
  if (T === " ")
8381
8391
  P = !0;
8382
8392
  else if (T === `
8383
8393
  `)
8384
- G = x;
8394
+ G = M;
8385
8395
  else
8386
8396
  break;
8387
8397
  }
8388
- let F = c.substring(0, G < x ? G + 1 : x);
8398
+ let F = c.substring(0, G < M ? G + 1 : M);
8389
8399
  F && (c = c.substring(F.length), F = F.replace(/\n+/g, `$&${S}`));
8390
8400
  let q = (P ? S ? "2" : "1" : "") + C;
8391
8401
  if (l && (q += " " + w(l.replace(/ ?[\r\n]+/g, " ")), v && v()), !E) {
@@ -8570,8 +8580,8 @@ function ku() {
8570
8580
  if (s)
8571
8581
  throw new Error("With simple keys, key nodes cannot have comments");
8572
8582
  if (e.isCollection(t) || !e.isNode(t) && typeof t == "object") {
8573
- const x = "With simple keys, collection cannot be used as a key value";
8574
- throw new Error(x);
8583
+ const M = "With simple keys, collection cannot be used as a key value";
8584
+ throw new Error(M);
8575
8585
  }
8576
8586
  }
8577
8587
  let b = !v && (!t || s && n == null && !a.inFlow || e.isCollection(t) || (e.isScalar(t) ? t.type === p.Scalar.BLOCK_FOLDED || t.type === p.Scalar.BLOCK_LITERAL : typeof t == "object"));
@@ -8601,9 +8611,9 @@ ${l}:`) : (S = `${S}:`, s && (S += g.lineComment(S, a.indent, c(s))));
8601
8611
  if (s || E || C) {
8602
8612
  if (P = E ? `
8603
8613
  ` : "", C) {
8604
- const x = c(C);
8614
+ const M = c(C);
8605
8615
  P += `
8606
- ${g.indentComment(x, a.indent)}`;
8616
+ ${g.indentComment(M, a.indent)}`;
8607
8617
  }
8608
8618
  N === "" && !a.inFlow ? P === `
8609
8619
  ` && _ && (P = `
@@ -8611,13 +8621,13 @@ ${g.indentComment(x, a.indent)}`;
8611
8621
  `) : P += `
8612
8622
  ${a.indent}`;
8613
8623
  } else if (!b && e.isCollection(n)) {
8614
- const x = N[0], G = N.indexOf(`
8624
+ const M = N[0], G = N.indexOf(`
8615
8625
  `), F = G !== -1, B = a.inFlow ?? n.flow ?? n.items.length === 0;
8616
8626
  if (F || !B) {
8617
8627
  let q = !1;
8618
- if (F && (x === "&" || x === "!")) {
8628
+ if (F && (M === "&" || M === "!")) {
8619
8629
  let T = N.indexOf(" ");
8620
- x === "&" && T !== -1 && T < G && N[T + 1] === "!" && (T = N.indexOf(" ", T + 1)), (T === -1 || G < T) && (q = !0);
8630
+ M === "&" && T !== -1 && T < G && N[T + 1] === "!" && (T = N.indexOf(" ", T + 1)), (T === -1 || G < T) && (q = !0);
8621
8631
  }
8622
8632
  q || (P = `
8623
8633
  ${a.indent}`);
@@ -9824,8 +9834,8 @@ function Gu() {
9824
9834
  return E && (_ = _.concat(r.merge)), _.reduce(($, N) => {
9825
9835
  const P = typeof N == "string" ? s[N] : N;
9826
9836
  if (!P) {
9827
- const x = JSON.stringify(N), G = Object.keys(s).map((F) => JSON.stringify(F)).join(", ");
9828
- throw new Error(`Unknown custom tag ${x}; use one of ${G}`);
9837
+ const M = JSON.stringify(N), G = Object.keys(s).map((F) => JSON.stringify(F)).join(", ");
9838
+ throw new Error(`Unknown custom tag ${M}; use one of ${G}`);
9829
9839
  }
9830
9840
  return $.includes(P) || $.push(P), $;
9831
9841
  }, []);
@@ -9979,8 +9989,8 @@ function Yt() {
9979
9989
  replacer: s,
9980
9990
  schema: this.schema,
9981
9991
  sourceObjects: N
9982
- }, x = h.createNode(c, C, P);
9983
- return y && m.isCollection(x) && (x.flow = !0), $(), x;
9992
+ }, M = h.createNode(c, C, P);
9993
+ return y && m.isCollection(M) && (M.flow = !0), $(), M;
9984
9994
  }
9985
9995
  /**
9986
9996
  * Convert a key and a value into a `Pair` using the current schema,
@@ -10333,15 +10343,15 @@ function ju() {
10333
10343
  });
10334
10344
  if (v = P.end, P.found) {
10335
10345
  _ && (E?.type === "block-map" && !P.hasNewline && l(v, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), r.options.strict && C.start < P.found.offset - 1024 && l(N.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
10336
- const x = E ? o(r, E, P, l) : h(r, v, S, null, P, l);
10337
- r.schema.compat && f.flowIndentCheck(u.indent, E, l), v = x.range[2];
10338
- const G = new e.Pair(N, x);
10346
+ const M = E ? o(r, E, P, l) : h(r, v, S, null, P, l);
10347
+ r.schema.compat && f.flowIndentCheck(u.indent, E, l), v = M.range[2];
10348
+ const G = new e.Pair(N, M);
10339
10349
  r.options.keepSourceTokens && (G.srcToken = b), d.items.push(G);
10340
10350
  } else {
10341
10351
  _ && l(N.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values"), P.comment && (N.comment ? N.comment += `
10342
10352
  ` + P.comment : N.comment = P.comment);
10343
- const x = new e.Pair(N);
10344
- r.options.keepSourceTokens && (x.srcToken = b), d.items.push(x);
10353
+ const M = new e.Pair(N);
10354
+ r.options.keepSourceTokens && (M.srcToken = b), d.items.push(M);
10345
10355
  }
10346
10356
  }
10347
10357
  return s && s < v && l(s, "IMPOSSIBLE", "Map comment with trailing content"), d.range = [u.offset, v, s ?? v], d;
@@ -10426,7 +10436,7 @@ function Hu() {
10426
10436
  S && (i.atRoot = !1), i.atKey && (i.atKey = !1);
10427
10437
  let E = c.offset + c.start.source.length;
10428
10438
  for (let P = 0; P < c.items.length; ++P) {
10429
- const x = c.items[P], { start: G, key: F, sep: B, value: q } = x, T = t.resolveProps(G, {
10439
+ const M = c.items[P], { start: G, key: F, sep: B, value: q } = M, T = t.resolveProps(G, {
10430
10440
  flow: b,
10431
10441
  indicator: "explicit-key-ind",
10432
10442
  next: F ?? B?.[0],
@@ -10499,20 +10509,20 @@ function Hu() {
10499
10509
  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");
10500
10510
  }
10501
10511
  } else q && ("source" in q && q.source?.[0] === ":" ? d(q, "MISSING_CHAR", `Missing space after : in ${b}`) : d(U.start, "MISSING_CHAR", `Missing , or : between ${b} items`));
10502
- const ne = q ? u(i, q, U, d) : U.found ? l(i, U.end, B, null, U, d) : null;
10503
- ne ? h(q) && d(ne.range, "BLOCK_IN_FLOW", o) : U.comment && (j.comment ? j.comment += `
10512
+ const se = q ? u(i, q, U, d) : U.found ? l(i, U.end, B, null, U, d) : null;
10513
+ se ? h(q) && d(se.range, "BLOCK_IN_FLOW", o) : U.comment && (j.comment ? j.comment += `
10504
10514
  ` + U.comment : j.comment = U.comment);
10505
- const Ee = new p.Pair(j, ne);
10506
- if (i.options.keepSourceTokens && (Ee.srcToken = x), s) {
10515
+ const Ee = new p.Pair(j, se);
10516
+ if (i.options.keepSourceTokens && (Ee.srcToken = M), s) {
10507
10517
  const ue = y;
10508
10518
  a.mapIncludes(i, ue.items, j) && d(Y, "DUPLICATE_KEY", "Map keys must be unique"), ue.items.push(Ee);
10509
10519
  } else {
10510
10520
  const ue = new m.YAMLMap(i.schema);
10511
10521
  ue.flow = !0, ue.items.push(Ee);
10512
- const fe = (ne ?? j).range;
10522
+ const fe = (se ?? j).range;
10513
10523
  ue.range = [j.range[0], fe[1], fe[2]], y.items.push(ue);
10514
10524
  }
10515
- E = ne ? ne.range[2] : U.end;
10525
+ E = se ? se.range[2] : U.end;
10516
10526
  }
10517
10527
  }
10518
10528
  const C = s ? "}" : "]", [_, ...$] = c.end;
@@ -10520,8 +10530,8 @@ function Hu() {
10520
10530
  if (_?.source === C)
10521
10531
  N = _.offset + _.source.length;
10522
10532
  else {
10523
- const P = b[0].toUpperCase() + b.substring(1), x = S ? `${P} must end with a ${C}` : `${P} in block collection must be sufficiently indented and end with a ${C}`;
10524
- d(E, S ? "MISSING_CHAR" : "BAD_INDENT", x), _ && _.source.length !== 1 && $.unshift(_);
10533
+ const P = b[0].toUpperCase() + b.substring(1), M = S ? `${P} must end with a ${C}` : `${P} in block collection must be sufficiently indented and end with a ${C}`;
10534
+ d(E, S ? "MISSING_CHAR" : "BAD_INDENT", M), _ && _.source.length !== 1 && $.unshift(_);
10525
10535
  }
10526
10536
  if ($.length > 0) {
10527
10537
  const P = f.resolveEnd($, N, i.options.strict, d);
@@ -12805,19 +12815,19 @@ async function sf(e, p, m, g = Tn) {
12805
12815
  await ma();
12806
12816
  const f = Ae.cwd();
12807
12817
  try {
12808
- await ie.mkdir(e);
12818
+ await ne.mkdir(e);
12809
12819
  } catch (t) {
12810
12820
  throw zt(t) && t.code === "EEXIST" ? new Error(Q.folderAlreadyExists(e)) : new Error(Q.generic);
12811
12821
  }
12812
12822
  try {
12813
12823
  Ae.chdir(e), await be("git init"), await be(`git remote add origin ${p}`), await be("git config core.sparseCheckout true"), await be(`git sparse-checkout set --no-cone ${m}/*`), await be(`git pull origin ${g}`);
12814
12824
  try {
12815
- if (!(await ie.stat(m)).isDirectory())
12825
+ if (!(await ne.stat(m)).isDirectory())
12816
12826
  throw new Error();
12817
12827
  } catch {
12818
12828
  throw new Error(Q.missingTemplate);
12819
12829
  }
12820
- await ga(m, "."), await ie.rm(".git", { recursive: !0, force: !0 });
12830
+ await ga(m, "."), await ne.rm(".git", { recursive: !0, force: !0 });
12821
12831
  } finally {
12822
12832
  Ae.chdir(f);
12823
12833
  }
@@ -12827,20 +12837,20 @@ async function rf(e, p, m, g = Tn) {
12827
12837
  const f = Ae.cwd();
12828
12838
  let t = {};
12829
12839
  try {
12830
- await ie.mkdir(e);
12840
+ await ne.mkdir(e);
12831
12841
  } catch (n) {
12832
12842
  throw zt(n) && n.code === "EEXIST" ? new Error(Q.folderAlreadyExists(e)) : new Error(Q.generic);
12833
12843
  }
12834
12844
  try {
12835
12845
  Ae.chdir(e), await be("git init"), await be(`git remote add origin ${p}`), await be("git config core.sparseCheckout true"), await be(`git sparse-checkout set --no-cone ${m}/* pnpm-workspace.yaml`), await be(`git pull origin ${g}`);
12836
12846
  try {
12837
- if (!(await ie.stat(m)).isDirectory())
12847
+ if (!(await ne.stat(m)).isDirectory())
12838
12848
  throw new Error();
12839
12849
  } catch {
12840
12850
  throw new Error(Q.missingTemplate);
12841
12851
  }
12842
- const n = await ie.readFile("pnpm-workspace.yaml", "utf-8");
12843
- t = tf.parse(n).catalog ?? {}, await ga(m, "."), await ie.rm(".git", { recursive: !0, force: !0 }), await ie.rm("pnpm-workspace.yaml", { force: !0 });
12852
+ const n = await ne.readFile("pnpm-workspace.yaml", "utf-8");
12853
+ t = tf.parse(n).catalog ?? {}, await ga(m, "."), await ne.rm(".git", { recursive: !0, force: !0 }), await ne.rm("pnpm-workspace.yaml", { force: !0 });
12844
12854
  } finally {
12845
12855
  Ae.chdir(f);
12846
12856
  }
@@ -12861,28 +12871,28 @@ async function ga(e, p) {
12861
12871
  if (Je.isAbsolute(e))
12862
12872
  throw new Error(Q.generic);
12863
12873
  try {
12864
- const m = await ie.readdir(e);
12874
+ const m = await ne.readdir(e);
12865
12875
  await Promise.all(
12866
12876
  m.map(async (f) => {
12867
12877
  const t = Je.join(e, f), n = Je.join(p, f);
12868
- await ie.rename(t, n);
12878
+ await ne.rename(t, n);
12869
12879
  })
12870
12880
  );
12871
12881
  const g = e.split("/")[0];
12872
- await ie.rm(g, { recursive: !0, force: !0 });
12882
+ await ne.rm(g, { recursive: !0, force: !0 });
12873
12883
  } catch (m) {
12874
12884
  throw zt(m) && m.code === "ENOENT" ? new Error(Q.missingTemplate) : m;
12875
12885
  }
12876
12886
  }
12877
12887
  }
12878
12888
  async function ya(e) {
12879
- const p = await ie.readFile(Je.join(e, "package.json"), "utf-8"), m = JSON.parse(p), g = m._id, f = m.readme;
12889
+ const p = await ne.readFile(Je.join(e, "package.json"), "utf-8"), m = JSON.parse(p), g = m._id, f = m.readme;
12880
12890
  return Iu(m, (n) => {
12881
12891
  console.error(n);
12882
12892
  }), g || delete m._id, f || delete m.readme, m;
12883
12893
  }
12884
12894
  async function af(e, p) {
12885
- await ie.writeFile(Je.join(e, "package.json"), JSON.stringify(p, null, 2));
12895
+ await ne.writeFile(Je.join(e, "package.json"), JSON.stringify(p, null, 2));
12886
12896
  }
12887
12897
  function lf(e) {
12888
12898
  return e.scripts?.start ? "start" : "dev";
@@ -12904,7 +12914,7 @@ const cf = (e) => {
12904
12914
  }
12905
12915
  case "template": {
12906
12916
  const f = e.template, t = f?.toLowerCase();
12907
- if (!t || !Object.values(D).includes(t))
12917
+ if (!t || !Object.values(x).includes(t))
12908
12918
  throw new Error(Q.invalidTemplate(f));
12909
12919
  p.template = t;
12910
12920
  break;
@@ -12924,7 +12934,7 @@ const cf = (e) => {
12924
12934
  };
12925
12935
  async function uf(e) {
12926
12936
  try {
12927
- await ie.stat(e) && await ie.rm(e, { recursive: !0 });
12937
+ await ne.stat(e) && await ne.rm(e, { recursive: !0 });
12928
12938
  } catch (p) {
12929
12939
  if (zt(p) && p.code === "ENOENT")
12930
12940
  return;
@@ -12962,7 +12972,7 @@ function hf(e, p) {
12962
12972
  }
12963
12973
  function pf(e, p) {
12964
12974
  const m = Va[e];
12965
- if (p === D.luminaComponents)
12975
+ if (p === x.luminaComponents)
12966
12976
  throw new Error(Q.templateNotAvailable(p, e));
12967
12977
  const g = m[p];
12968
12978
  if (!g)
@@ -12997,7 +13007,7 @@ async function df(e) {
12997
13007
  );
12998
13008
  if (p.name = m.projectName, process.env.NODE_ENV !== "test") {
12999
13009
  try {
13000
- throw await ie.stat(m.projectName), new Error(Q.folderAlreadyExists(m.projectName));
13010
+ throw await ne.stat(m.projectName), new Error(Q.folderAlreadyExists(m.projectName));
13001
13011
  } catch (a) {
13002
13012
  if (!(a && typeof a == "object" && "code" in a && a.code === "ENOENT"))
13003
13013
  throw a;
@@ -13017,7 +13027,7 @@ async function df(e) {
13017
13027
  (a) => {
13018
13028
  throw a;
13019
13029
  }
13020
- ), m.projectTemplate === D.cdn) {
13030
+ ), m.projectTemplate === x.cdn) {
13021
13031
  $n(), console.log(
13022
13032
  le(
13023
13033
  "magenta",
@@ -13040,7 +13050,7 @@ Happy mapping!`));
13040
13050
  async function mf(e) {
13041
13051
  const { template: p, branch: m = Tn } = e, g = Qn(e);
13042
13052
  try {
13043
- if (p !== D.luminaComponents)
13053
+ if (p !== x.luminaComponents)
13044
13054
  throw new Error(Q.invalidCodeSampleTemplate);
13045
13055
  if (!e.host)
13046
13056
  throw new Error(Q.missingHost);
@@ -13048,7 +13058,7 @@ async function mf(e) {
13048
13058
  const f = e.name ?? await Fo();
13049
13059
  if (Oo(f) && (Ro("Operation cancelled."), process.exit(0)), g.name = f, process.env.NODE_ENV !== "test") {
13050
13060
  try {
13051
- throw await ie.stat(f), new Error(Q.folderAlreadyExists(f));
13061
+ throw await ne.stat(f), new Error(Q.folderAlreadyExists(f));
13052
13062
  } catch (y) {
13053
13063
  if (!(y && typeof y == "object" && "code" in y && y.code === "ENOENT"))
13054
13064
  throw y;
@@ -13113,7 +13123,7 @@ const Sa = (e) => {
13113
13123
  await Qn({}).doCleanup(g);
13114
13124
  return;
13115
13125
  }
13116
- if (m.template && Ya[m.template] === se.codeSample) {
13126
+ if (m.template && Ya[m.template] === ie.codeSample) {
13117
13127
  await mf(m);
13118
13128
  return;
13119
13129
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/create",
3
- "version": "5.1.3",
3
+ "version": "5.1.5",
4
4
  "description": "The ArcGIS Maps SDK for JavaScript provides this CLI tool to streamline the process of creating a new web mapping application.",
5
5
  "keywords": [
6
6
  "ArcGIS",