@arcgis/create 4.34.0-next.67 → 4.34.0-next.68

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 +735 -681
  2. package/package.json +1 -1
package/dist/init.js CHANGED
@@ -1,26 +1,26 @@
1
- import br from "node:events";
2
- import Ar from "node:child_process";
3
- import vr from "node:path";
4
- import yr from "node:fs";
5
- import Z, { stdin as Ti, stdout as Mi } from "node:process";
1
+ import Ar from "node:events";
2
+ import vr from "node:child_process";
3
+ import yr from "node:path";
4
+ import wr from "node:fs";
5
+ import Z, { stdin as Mi, stdout as ki } from "node:process";
6
6
  import fe from "fs/promises";
7
7
  import He from "path";
8
- import Xe from "process";
9
- import wr from "child_process";
10
- import Lr, { promisify as Sr } from "util";
8
+ import Ke from "process";
9
+ import Lr from "child_process";
10
+ import Or, { promisify as Sr } from "util";
11
11
  import Gi from "url";
12
- import Or from "node:module";
12
+ import _r from "node:module";
13
13
  import * as _e from "node:readline";
14
- import Nt from "node:readline";
15
- import It, { WriteStream as _r } from "node:tty";
16
- import $r from "node:os";
17
- function qe(s) {
14
+ import It from "node:readline";
15
+ import Tt, { WriteStream as $r } from "node:tty";
16
+ import xr from "node:os";
17
+ function ze(s) {
18
18
  return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
19
19
  }
20
- var $e = { exports: {} }, ee = {}, xe = {}, Be = {}, Tt;
21
- function ze() {
22
- if (Tt) return Be;
23
- Tt = 1;
20
+ var $e = { exports: {} }, ee = {}, xe = {}, Be = {}, Mt;
21
+ function Ye() {
22
+ if (Mt) return Be;
23
+ Mt = 1;
24
24
  class s extends Error {
25
25
  /**
26
26
  * Constructs the CommanderError class
@@ -43,11 +43,11 @@ function ze() {
43
43
  }
44
44
  return Be.CommanderError = s, Be.InvalidArgumentError = r, Be;
45
45
  }
46
- var Mt;
47
- function _t() {
48
- if (Mt) return xe;
49
- Mt = 1;
50
- const { InvalidArgumentError: s } = ze();
46
+ var kt;
47
+ function $t() {
48
+ if (kt) return xe;
49
+ kt = 1;
50
+ const { InvalidArgumentError: s } = Ye();
51
51
  class r {
52
52
  /**
53
53
  * Initialize a new command argument with the given name and description.
@@ -143,10 +143,10 @@ function _t() {
143
143
  return xe.Argument = r, xe.humanReadableArgName = o, xe;
144
144
  }
145
145
  var Pe = {}, Re = {}, Gt;
146
- function ki() {
146
+ function Hi() {
147
147
  if (Gt) return Re;
148
148
  Gt = 1;
149
- const { humanReadableArgName: s } = _t();
149
+ const { humanReadableArgName: s } = $t();
150
150
  class r {
151
151
  constructor() {
152
152
  this.helpWidth = void 0, this.minWidthToWrap = 40, this.sortSubcommands = !1, this.sortOptions = !1, this.showGlobalOptions = !1;
@@ -622,11 +622,11 @@ ${C}`);
622
622
  }
623
623
  return Re.Help = r, Re.stripColor = o, Re;
624
624
  }
625
- var Ne = {}, kt;
626
- function Hi() {
627
- if (kt) return Ne;
628
- kt = 1;
629
- const { InvalidArgumentError: s } = ze();
625
+ var Ne = {}, Ht;
626
+ function Ui() {
627
+ if (Ht) return Ne;
628
+ Ht = 1;
629
+ const { InvalidArgumentError: s } = Ye();
630
630
  class r {
631
631
  /**
632
632
  * Initialize a new `Option` with the given `flags` and `description`.
@@ -853,10 +853,10 @@ function Hi() {
853
853
  }
854
854
  return Ne.Option = r, Ne.DualOptions = o, Ne;
855
855
  }
856
- var Ke = {}, Ht;
857
- function xr() {
858
- if (Ht) return Ke;
859
- Ht = 1;
856
+ var Je = {}, Ut;
857
+ function Br() {
858
+ if (Ut) return Je;
859
+ Ut = 1;
860
860
  const s = 3;
861
861
  function r(l, n) {
862
862
  if (Math.abs(l.length - n.length) > s)
@@ -895,13 +895,13 @@ function xr() {
895
895
  (Did you mean one of ${e.join(", ")}?)` : e.length === 1 ? `
896
896
  (Did you mean ${e[0]}?)` : "";
897
897
  }
898
- return Ke.suggestSimilar = o, Ke;
898
+ return Je.suggestSimilar = o, Je;
899
899
  }
900
- var Ut;
901
- function Br() {
902
- if (Ut) return Pe;
903
- Ut = 1;
904
- const s = br.EventEmitter, r = Ar, o = vr, l = yr, n = Z, { Argument: i, humanReadableArgName: e } = _t(), { CommanderError: a } = ze(), { Help: c, stripColor: C } = ki(), { Option: m, DualOptions: v } = Hi(), { suggestSimilar: w } = xr();
900
+ var jt;
901
+ function Pr() {
902
+ if (jt) return Pe;
903
+ jt = 1;
904
+ const s = Ar.EventEmitter, r = vr, o = yr, l = wr, n = Z, { Argument: i, humanReadableArgName: e } = $t(), { CommanderError: a } = Ye(), { Help: c, stripColor: C } = Hi(), { Option: m, DualOptions: v } = Ui(), { suggestSimilar: w } = Br();
905
905
  class D extends s {
906
906
  /**
907
907
  * Initialize a new `Command`.
@@ -968,8 +968,8 @@ function Br() {
968
968
  command(t, h, g) {
969
969
  let u = h, p = g;
970
970
  typeof u == "object" && u !== null && (p = u, u = null), p = p || {};
971
- const [, y, S] = t.match(/([^ ]+) *(.*)/), _ = this.createCommand(y);
972
- return u && (_.description(u), _._executableHandler = !0), p.isDefault && (this._defaultCommandName = _._name), _._hidden = !!(p.noHelp || p.hidden), _._executableFile = p.executableFile || null, S && _.arguments(S), this._registerCommand(_), _.parent = this, _.copyInheritedSettings(this), u ? this : _;
971
+ const [, y, O] = t.match(/([^ ]+) *(.*)/), _ = this.createCommand(y);
972
+ return u && (_.description(u), _._executableHandler = !0), p.isDefault && (this._defaultCommandName = _._name), _._hidden = !!(p.noHelp || p.hidden), _._executableFile = p.executableFile || null, O && _.arguments(O), this._registerCommand(_), _.parent = this, _.copyInheritedSettings(this), u ? this : _;
973
973
  }
974
974
  /**
975
975
  * Factory routine to create a new unattached command.
@@ -1147,8 +1147,8 @@ function Br() {
1147
1147
  helpCommand(t, h) {
1148
1148
  if (typeof t == "boolean")
1149
1149
  return this._addImplicitHelpCommand = t, t && this._defaultCommandGroup && this._initCommandGroup(this._getHelpCommand()), this;
1150
- const g = t ?? "help [command]", [, u, p] = g.match(/([^ ]+) *(.*)/), y = h ?? "display help for command", S = this.createCommand(u);
1151
- return S.helpOption(!1), p && S.arguments(p), y && S.description(y), this._addImplicitHelpCommand = !0, this._helpCommand = S, (t || h) && this._initCommandGroup(S), this;
1150
+ const g = t ?? "help [command]", [, u, p] = g.match(/([^ ]+) *(.*)/), y = h ?? "display help for command", O = this.createCommand(u);
1151
+ return O.helpOption(!1), p && O.arguments(p), y && O.description(y), this._addImplicitHelpCommand = !0, this._helpCommand = O, (t || h) && this._initCommandGroup(O), this;
1152
1152
  }
1153
1153
  /**
1154
1154
  * Add prepared custom help command.
@@ -1313,10 +1313,10 @@ Expecting one of '${g.join("', '")}'`);
1313
1313
  "default"
1314
1314
  );
1315
1315
  } else t.defaultValue !== void 0 && this.setOptionValueWithSource(g, t.defaultValue, "default");
1316
- const u = (p, y, S) => {
1316
+ const u = (p, y, O) => {
1317
1317
  p == null && t.presetArg !== void 0 && (p = t.presetArg);
1318
1318
  const _ = this.getOptionValue(g);
1319
- p !== null && t.parseArg ? p = this._callParseArg(t, p, _, y) : p !== null && t.variadic && (p = t._concatValue(p, _)), p == null && (t.negate ? p = !1 : t.isBoolean() || t.optional ? p = !0 : p = ""), this.setOptionValueWithSource(g, p, S);
1319
+ p !== null && t.parseArg ? p = this._callParseArg(t, p, _, y) : p !== null && t.variadic && (p = t._concatValue(p, _)), p == null && (t.negate ? p = !1 : t.isBoolean() || t.optional ? p = !0 : p = ""), this.setOptionValueWithSource(g, p, O);
1320
1320
  };
1321
1321
  return this.on("option:" + h, (p) => {
1322
1322
  const y = `error: option '${t.flags}' argument '${p}' is invalid.`;
@@ -1341,9 +1341,9 @@ Expecting one of '${g.join("', '")}'`);
1341
1341
  if (y.makeOptionMandatory(!!t.mandatory), typeof u == "function")
1342
1342
  y.default(p).argParser(u);
1343
1343
  else if (u instanceof RegExp) {
1344
- const S = u;
1344
+ const O = u;
1345
1345
  u = (_, x) => {
1346
- const P = S.exec(_);
1346
+ const P = O.exec(_);
1347
1347
  return P ? P[0] : x;
1348
1348
  }, y.default(p).argParser(u);
1349
1349
  } else
@@ -1682,7 +1682,7 @@ Expecting one of '${g.join("', '")}'`);
1682
1682
  if (I) return `${q}${I}`;
1683
1683
  }
1684
1684
  this._checkForMissingMandatoryOptions(), this._checkForConflictingOptions();
1685
- let y = t._executableFile || `${this._name}-${t._name}`, S = this._executableDir || "";
1685
+ let y = t._executableFile || `${this._name}-${t._name}`, O = this._executableDir || "";
1686
1686
  if (this._scriptPath) {
1687
1687
  let P;
1688
1688
  try {
@@ -1690,20 +1690,20 @@ Expecting one of '${g.join("', '")}'`);
1690
1690
  } catch {
1691
1691
  P = this._scriptPath;
1692
1692
  }
1693
- S = o.resolve(
1693
+ O = o.resolve(
1694
1694
  o.dirname(P),
1695
- S
1695
+ O
1696
1696
  );
1697
1697
  }
1698
- if (S) {
1699
- let P = p(S, y);
1698
+ if (O) {
1699
+ let P = p(O, y);
1700
1700
  if (!P && !t._executableFile && this._scriptPath) {
1701
1701
  const R = o.basename(
1702
1702
  this._scriptPath,
1703
1703
  o.extname(this._scriptPath)
1704
1704
  );
1705
1705
  R !== this._name && (P = p(
1706
- S,
1706
+ O,
1707
1707
  `${R}-${t._name}`
1708
1708
  ));
1709
1709
  }
@@ -1713,7 +1713,7 @@ Expecting one of '${g.join("', '")}'`);
1713
1713
  let _;
1714
1714
  n.platform !== "win32" ? g ? (h.unshift(y), h = d(n.execArgv).concat(h), _ = r.spawn(n.argv[0], h, { stdio: "inherit" })) : _ = r.spawn(y, h, { stdio: "inherit" }) : (this._checkForMissingExecutable(
1715
1715
  y,
1716
- S,
1716
+ O,
1717
1717
  t._name
1718
1718
  ), h.unshift(y), h = d(n.execArgv).concat(h), _ = r.spawn(n.execPath, h, { stdio: "inherit" })), _.killed || ["SIGUSR1", "SIGUSR2", "SIGTERM", "SIGINT", "SIGHUP"].forEach((R) => {
1719
1719
  n.on(R, () => {
@@ -1733,7 +1733,7 @@ Expecting one of '${g.join("', '")}'`);
1733
1733
  if (P.code === "ENOENT")
1734
1734
  this._checkForMissingExecutable(
1735
1735
  y,
1736
- S,
1736
+ O,
1737
1737
  t._name
1738
1738
  );
1739
1739
  else if (P.code === "EACCES")
@@ -1802,12 +1802,12 @@ Expecting one of '${g.join("', '")}'`);
1802
1802
  const t = (g, u, p) => {
1803
1803
  let y = u;
1804
1804
  if (u !== null && g.parseArg) {
1805
- const S = `error: command-argument value '${u}' is invalid for argument '${g.name()}'.`;
1805
+ const O = `error: command-argument value '${u}' is invalid for argument '${g.name()}'.`;
1806
1806
  y = this._callParseArg(
1807
1807
  g,
1808
1808
  u,
1809
1809
  p,
1810
- S
1810
+ O
1811
1811
  );
1812
1812
  }
1813
1813
  return y;
@@ -1816,7 +1816,7 @@ Expecting one of '${g.join("', '")}'`);
1816
1816
  const h = [];
1817
1817
  this.registeredArguments.forEach((g, u) => {
1818
1818
  let p = g.defaultValue;
1819
- g.variadic ? u < this.args.length ? (p = this.args.slice(u), g.parseArg && (p = p.reduce((y, S) => t(g, S, y), g.defaultValue))) : p === void 0 && (p = []) : u < this.args.length && (p = this.args[u], g.parseArg && (p = t(g, p, g.defaultValue))), h[u] = p;
1819
+ g.variadic ? u < this.args.length ? (p = this.args.slice(u), g.parseArg && (p = p.reduce((y, O) => t(g, O, y), g.defaultValue))) : p === void 0 && (p = []) : u < this.args.length && (p = this.args[u], g.parseArg && (p = t(g, p, g.defaultValue))), h[u] = p;
1820
1820
  }), this.processedArgs = h;
1821
1821
  }
1822
1822
  /**
@@ -1991,7 +1991,7 @@ Expecting one of '${g.join("', '")}'`);
1991
1991
  function y(x) {
1992
1992
  return x.length > 1 && x[0] === "-";
1993
1993
  }
1994
- const S = (x) => /^-\d*\.?\d+(e[+-]?\d+)?$/.test(x) ? !this._getCommandAndAncestors().some(
1994
+ const O = (x) => /^-\d*\.?\d+(e[+-]?\d+)?$/.test(x) ? !this._getCommandAndAncestors().some(
1995
1995
  (P) => P.options.map((R) => R.short).some((R) => /^-\d$/.test(R))
1996
1996
  ) : !1;
1997
1997
  let _ = null;
@@ -2001,7 +2001,7 @@ Expecting one of '${g.join("', '")}'`);
2001
2001
  u === g && u.push(x), u.push(...p);
2002
2002
  break;
2003
2003
  }
2004
- if (_ && (!y(x) || S(x))) {
2004
+ if (_ && (!y(x) || O(x))) {
2005
2005
  this.emit(`option:${_.name()}`, x);
2006
2006
  continue;
2007
2007
  }
@@ -2013,7 +2013,7 @@ Expecting one of '${g.join("', '")}'`);
2013
2013
  R === void 0 && this.optionMissingArgument(P), this.emit(`option:${P.name()}`, R);
2014
2014
  } else if (P.optional) {
2015
2015
  let R = null;
2016
- p.length > 0 && (!y(p[0]) || S(p[0])) && (R = p.shift()), this.emit(`option:${P.name()}`, R);
2016
+ p.length > 0 && (!y(p[0]) || O(p[0])) && (R = p.shift()), this.emit(`option:${P.name()}`, R);
2017
2017
  } else
2018
2018
  this.emit(`option:${P.name()}`);
2019
2019
  _ = P.variadic ? P : null;
@@ -2034,7 +2034,7 @@ Expecting one of '${g.join("', '")}'`);
2034
2034
  continue;
2035
2035
  }
2036
2036
  }
2037
- if (u === h && y(x) && !(this.commands.length === 0 && S(x)) && (u = g), (this._enablePositionalOptions || this._passThroughOptions) && h.length === 0 && g.length === 0) {
2037
+ if (u === h && y(x) && !(this.commands.length === 0 && O(x)) && (u = g), (this._enablePositionalOptions || this._passThroughOptions) && h.length === 0 && g.length === 0) {
2038
2038
  if (this._findCommand(x)) {
2039
2039
  h.push(x), p.length > 0 && g.push(...p);
2040
2040
  break;
@@ -2177,15 +2177,15 @@ Expecting one of '${g.join("', '")}'`);
2177
2177
  */
2178
2178
  _conflictingOption(t, h) {
2179
2179
  const g = (y) => {
2180
- const S = y.attributeName(), _ = this.getOptionValue(S), x = this.options.find(
2181
- (R) => R.negate && S === R.attributeName()
2180
+ const O = y.attributeName(), _ = this.getOptionValue(O), x = this.options.find(
2181
+ (R) => R.negate && O === R.attributeName()
2182
2182
  ), P = this.options.find(
2183
- (R) => !R.negate && S === R.attributeName()
2183
+ (R) => !R.negate && O === R.attributeName()
2184
2184
  );
2185
2185
  return x && (x.presetArg === void 0 && _ === !1 || x.presetArg !== void 0 && _ === x.presetArg) ? x : P || y;
2186
2186
  }, u = (y) => {
2187
- const S = g(y), _ = S.attributeName();
2188
- return this.getOptionValueSource(_) === "env" ? `environment variable '${S.envVar}'` : `option '${S.flags}'`;
2187
+ const O = g(y), _ = O.attributeName();
2188
+ return this.getOptionValueSource(_) === "env" ? `environment variable '${O.envVar}'` : `option '${O.flags}'`;
2189
2189
  }, p = `error: ${u(t)} cannot be used with ${u(h)}`;
2190
2190
  this.error(p, { code: "commander.conflictingOption" });
2191
2191
  }
@@ -2201,7 +2201,7 @@ Expecting one of '${g.join("', '")}'`);
2201
2201
  if (t.startsWith("--") && this._showSuggestionAfterError) {
2202
2202
  let u = [], p = this;
2203
2203
  do {
2204
- const y = p.createHelp().visibleOptions(p).filter((S) => S.long).map((S) => S.long);
2204
+ const y = p.createHelp().visibleOptions(p).filter((O) => O.long).map((O) => O.long);
2205
2205
  u = u.concat(y), p = p.parent;
2206
2206
  } while (p && !p._enablePositionalOptions);
2207
2207
  h = w(t, u);
@@ -2452,7 +2452,7 @@ Expecting one of '${g.join("', '")}'`);
2452
2452
  t = t || {};
2453
2453
  const h = !!t.error;
2454
2454
  let g, u, p;
2455
- return h ? (g = (S) => this._outputConfiguration.writeErr(S), u = this._outputConfiguration.getErrHasColors(), p = this._outputConfiguration.getErrHelpWidth()) : (g = (S) => this._outputConfiguration.writeOut(S), u = this._outputConfiguration.getOutHasColors(), p = this._outputConfiguration.getOutHelpWidth()), { error: h, write: (S) => (u || (S = this._outputConfiguration.stripColor(S)), g(S)), hasColors: u, helpWidth: p };
2455
+ return h ? (g = (O) => this._outputConfiguration.writeErr(O), u = this._outputConfiguration.getErrHasColors(), p = this._outputConfiguration.getErrHelpWidth()) : (g = (O) => this._outputConfiguration.writeOut(O), u = this._outputConfiguration.getOutHasColors(), p = this._outputConfiguration.getOutHelpWidth()), { error: h, write: (O) => (u || (O = this._outputConfiguration.stripColor(O)), g(O)), hasColors: u, helpWidth: p };
2456
2456
  }
2457
2457
  /**
2458
2458
  * Output help information for this command.
@@ -2584,37 +2584,65 @@ Expecting one of '${g.join("', '")}'`);
2584
2584
  }
2585
2585
  return Pe.Command = D, Pe.useColor = f, Pe;
2586
2586
  }
2587
- var jt;
2588
- function Pr() {
2589
- if (jt) return ee;
2590
- jt = 1;
2591
- const { Argument: s } = _t(), { Command: r } = Br(), { CommanderError: o, InvalidArgumentError: l } = ze(), { Help: n } = ki(), { Option: i } = Hi();
2592
- return ee.program = new r(), ee.createCommand = (e) => new r(e), ee.createOption = (e, a) => new i(e, a), ee.createArgument = (e, a) => new s(e, a), ee.Command = r, ee.Option = i, ee.Argument = s, ee.Help = n, ee.CommanderError = o, ee.InvalidArgumentError = l, ee.InvalidOptionArgumentError = l, ee;
2593
- }
2594
2587
  var Wt;
2595
2588
  function Rr() {
2596
- return Wt || (Wt = 1, function(s, r) {
2597
- const o = Pr();
2589
+ if (Wt) return ee;
2590
+ Wt = 1;
2591
+ const { Argument: s } = $t(), { Command: r } = Pr(), { CommanderError: o, InvalidArgumentError: l } = Ye(), { Help: n } = Hi(), { Option: i } = Ui();
2592
+ return ee.program = new r(), ee.createCommand = (e) => new r(e), ee.createOption = (e, a) => new i(e, a), ee.createArgument = (e, a) => new s(e, a), ee.Command = r, ee.Option = i, ee.Argument = s, ee.Help = n, ee.CommanderError = o, ee.InvalidArgumentError = l, ee.InvalidOptionArgumentError = l, ee;
2593
+ }
2594
+ var Vt;
2595
+ function Nr() {
2596
+ return Vt || (Vt = 1, function(s, r) {
2597
+ const o = Rr();
2598
2598
  r = s.exports = {}, r.program = new o.Command(), r.Argument = o.Argument, r.Command = o.Command, r.CommanderError = o.CommanderError, r.Help = o.Help, r.InvalidArgumentError = o.InvalidArgumentError, r.InvalidOptionArgumentError = o.InvalidArgumentError, r.Option = o.Option, r.createCommand = (l) => new o.Command(l), r.createOption = (l, n) => new o.Option(l, n), r.createArgument = (l, n) => new o.Argument(l, n);
2599
2599
  }($e, $e.exports)), $e.exports;
2600
2600
  }
2601
- var Nr = Rr();
2602
- const Ir = /* @__PURE__ */ qe(Nr), {
2603
- program: Ju,
2604
- createCommand: Zu,
2605
- createArgument: Qu,
2606
- createOption: eo,
2607
- CommanderError: to,
2608
- InvalidArgumentError: io,
2609
- InvalidOptionArgumentError: ro,
2601
+ var Ir = Nr();
2602
+ const Tr = /* @__PURE__ */ ze(Ir), {
2603
+ program: io,
2604
+ createCommand: ro,
2605
+ createArgument: no,
2606
+ createOption: so,
2607
+ CommanderError: uo,
2608
+ InvalidArgumentError: oo,
2609
+ InvalidOptionArgumentError: ao,
2610
2610
  // deprecated old name
2611
- Command: Tr,
2612
- Argument: no,
2613
- Option: so,
2614
- Help: uo
2615
- } = Ir, Mr = "4.34.0-next.67";
2616
- var me = /* @__PURE__ */ ((s) => (s.VANILLA = "vanilla JS", s.REACT = "react", s.ANGULAR = "angular", s.VITE = "vite", s.VUE = "vue", s.WEBPACK = "webpack", s.LUMINA_COMPONENTS = "lumina-components", s))(me || {}), Ue = /* @__PURE__ */ ((s) => (s.CHARTS = "charts", s.CODING = "coding", s))(Ue || {}), Ui = /* @__PURE__ */ ((s) => (s.CODE_SAMPLE = "CODE_SAMPLE", s.APP_SAMPLE = "APP_SAMPLE", s))(Ui || {});
2617
- const ji = "github.com", Wi = "main", Vi = {
2611
+ Command: Mr,
2612
+ Argument: lo,
2613
+ Option: co,
2614
+ Help: ho
2615
+ } = Tr, kr = "4.34.0-next.68";
2616
+ var me = /* @__PURE__ */ ((s) => (s.VANILLA = "vanilla JS", s.REACT = "react", s.ANGULAR = "angular", s.VITE = "vite", s.VUE = "vue", s.WEBPACK = "webpack", s.LUMINA_COMPONENTS = "lumina-components", s))(me || {}), Ue = /* @__PURE__ */ ((s) => (s.MAP_COMPONENTS = "map-components", s.CHARTS_COMPONENTS = "charts-components", s.CODING_COMPONENTS = "coding-components", s))(Ue || {});
2617
+ const Gr = {
2618
+ "map-components": {
2619
+ "vanilla JS": "component-samples/map-components/samples/vite",
2620
+ vite: "component-samples/map-components/samples/vite",
2621
+ react: "component-samples/map-components/samples/react",
2622
+ angular: "component-samples/map-components/samples/angular",
2623
+ vue: "component-samples/map-components/samples/vue",
2624
+ webpack: "component-samples/map-components/samples/webpack",
2625
+ "lumina-components": "packages/starter-packages/lumina-components"
2626
+ },
2627
+ "charts-components": {
2628
+ "vanilla JS": "component-samples/charts-components/samples/vite",
2629
+ vite: "component-samples/charts-components/samples/vite",
2630
+ react: "component-samples/charts-components/samples/react",
2631
+ angular: "component-samples/charts-components/samples/angular",
2632
+ vue: "component-samples/charts-components/samples/vue",
2633
+ webpack: "component-samples/charts-components/samples/webpack"
2634
+ },
2635
+ "coding-components": {
2636
+ "vanilla JS": "component-samples/coding-components/samples/vite",
2637
+ vite: "component-samples/coding-components/samples/vite",
2638
+ react: "component-samples/coding-components/samples/react",
2639
+ angular: "component-samples/coding-components/samples/angular",
2640
+ vue: "component-samples/coding-components/samples/vue",
2641
+ webpack: "component-samples/coding-components/samples/webpack"
2642
+ }
2643
+ };
2644
+ var je = /* @__PURE__ */ ((s) => (s.MAP = "map", s.CHARTS = "charts", s.CODING = "coding", s))(je || {}), ji = /* @__PURE__ */ ((s) => (s.CODE_SAMPLE = "CODE_SAMPLE", s.APP_SAMPLE = "APP_SAMPLE", s))(ji || {});
2645
+ const Wi = "github.com", Vi = "main", qi = {
2618
2646
  "vanilla JS": "Esri/jsapi-resources",
2619
2647
  vite: "Esri/jsapi-resources",
2620
2648
  react: "Esri/jsapi-resources",
@@ -2622,7 +2650,7 @@ const ji = "github.com", Wi = "main", Vi = {
2622
2650
  vue: "Esri/jsapi-resources",
2623
2651
  webpack: "Esri/jsapi-resources",
2624
2652
  "lumina-components": "WebGIS/arcgis-web-components"
2625
- }, qi = {
2653
+ }, Hr = {
2626
2654
  "vanilla JS": "component-samples/map-components/samples/vite",
2627
2655
  // alias for vite template
2628
2656
  vite: "component-samples/map-components/samples/vite",
@@ -2631,7 +2659,7 @@ const ji = "github.com", Wi = "main", Vi = {
2631
2659
  vue: "component-samples/map-components/samples/vue",
2632
2660
  webpack: "component-samples/map-components/samples/webpack",
2633
2661
  "lumina-components": "packages/starter-packages/lumina-components"
2634
- }, Gr = {
2662
+ }, Ur = {
2635
2663
  "vanilla JS": "APP_SAMPLE",
2636
2664
  vite: "APP_SAMPLE",
2637
2665
  react: "APP_SAMPLE",
@@ -2640,21 +2668,26 @@ const ji = "github.com", Wi = "main", Vi = {
2640
2668
  webpack: "APP_SAMPLE",
2641
2669
  "lumina-components": "CODE_SAMPLE"
2642
2670
  /* CODE_SAMPLE */
2643
- }, kr = {
2671
+ }, jr = {
2672
+ "map-components": "map",
2673
+ "charts-components": "charts",
2674
+ "coding-components": "coding"
2675
+ /* CODING */
2676
+ }, Wr = {
2644
2677
  "lumina-components": !0
2645
2678
  };
2646
- var Je, Vt;
2679
+ var Ze, qt;
2647
2680
  function zi() {
2648
- return Vt || (Vt = 1, Je = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...r) => console.error("SEMVER", ...r) : () => {
2649
- }), Je;
2681
+ return qt || (qt = 1, Ze = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...r) => console.error("SEMVER", ...r) : () => {
2682
+ }), Ze;
2650
2683
  }
2651
- var Ze, qt;
2684
+ var Qe, zt;
2652
2685
  function Yi() {
2653
- if (qt) return Ze;
2654
- qt = 1;
2686
+ if (zt) return Qe;
2687
+ zt = 1;
2655
2688
  const s = "2.0.0", r = 256, o = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
2656
2689
  9007199254740991, l = 16, n = r - 6;
2657
- return Ze = {
2690
+ return Qe = {
2658
2691
  MAX_LENGTH: r,
2659
2692
  MAX_SAFE_COMPONENT_LENGTH: l,
2660
2693
  MAX_SAFE_BUILD_LENGTH: n,
@@ -2671,11 +2704,11 @@ function Yi() {
2671
2704
  SEMVER_SPEC_VERSION: s,
2672
2705
  FLAG_INCLUDE_PRERELEASE: 1,
2673
2706
  FLAG_LOOSE: 2
2674
- }, Ze;
2707
+ }, Qe;
2675
2708
  }
2676
- var Ie = { exports: {} }, zt;
2677
- function Hr() {
2678
- return zt || (zt = 1, function(s, r) {
2709
+ var Ie = { exports: {} }, Yt;
2710
+ function Vr() {
2711
+ return Yt || (Yt = 1, function(s, r) {
2679
2712
  const {
2680
2713
  MAX_SAFE_COMPONENT_LENGTH: o,
2681
2714
  MAX_SAFE_BUILD_LENGTH: l,
@@ -2699,31 +2732,31 @@ function Hr() {
2699
2732
  f("NUMERICIDENTIFIER", "0|[1-9]\\d*"), f("NUMERICIDENTIFIERLOOSE", "\\d+"), f("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${w}*`), f("MAINVERSION", `(${c[m.NUMERICIDENTIFIER]})\\.(${c[m.NUMERICIDENTIFIER]})\\.(${c[m.NUMERICIDENTIFIER]})`), f("MAINVERSIONLOOSE", `(${c[m.NUMERICIDENTIFIERLOOSE]})\\.(${c[m.NUMERICIDENTIFIERLOOSE]})\\.(${c[m.NUMERICIDENTIFIERLOOSE]})`), f("PRERELEASEIDENTIFIER", `(?:${c[m.NONNUMERICIDENTIFIER]}|${c[m.NUMERICIDENTIFIER]})`), f("PRERELEASEIDENTIFIERLOOSE", `(?:${c[m.NONNUMERICIDENTIFIER]}|${c[m.NUMERICIDENTIFIERLOOSE]})`), f("PRERELEASE", `(?:-(${c[m.PRERELEASEIDENTIFIER]}(?:\\.${c[m.PRERELEASEIDENTIFIER]})*))`), f("PRERELEASELOOSE", `(?:-?(${c[m.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[m.PRERELEASEIDENTIFIERLOOSE]})*))`), f("BUILDIDENTIFIER", `${w}+`), f("BUILD", `(?:\\+(${c[m.BUILDIDENTIFIER]}(?:\\.${c[m.BUILDIDENTIFIER]})*))`), f("FULLPLAIN", `v?${c[m.MAINVERSION]}${c[m.PRERELEASE]}?${c[m.BUILD]}?`), f("FULL", `^${c[m.FULLPLAIN]}$`), f("LOOSEPLAIN", `[v=\\s]*${c[m.MAINVERSIONLOOSE]}${c[m.PRERELEASELOOSE]}?${c[m.BUILD]}?`), f("LOOSE", `^${c[m.LOOSEPLAIN]}$`), f("GTLT", "((?:<|>)?=?)"), f("XRANGEIDENTIFIERLOOSE", `${c[m.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), f("XRANGEIDENTIFIER", `${c[m.NUMERICIDENTIFIER]}|x|X|\\*`), f("XRANGEPLAIN", `[v=\\s]*(${c[m.XRANGEIDENTIFIER]})(?:\\.(${c[m.XRANGEIDENTIFIER]})(?:\\.(${c[m.XRANGEIDENTIFIER]})(?:${c[m.PRERELEASE]})?${c[m.BUILD]}?)?)?`), f("XRANGEPLAINLOOSE", `[v=\\s]*(${c[m.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[m.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[m.XRANGEIDENTIFIERLOOSE]})(?:${c[m.PRERELEASELOOSE]})?${c[m.BUILD]}?)?)?`), f("XRANGE", `^${c[m.GTLT]}\\s*${c[m.XRANGEPLAIN]}$`), f("XRANGELOOSE", `^${c[m.GTLT]}\\s*${c[m.XRANGEPLAINLOOSE]}$`), f("COERCEPLAIN", `(^|[^\\d])(\\d{1,${o}})(?:\\.(\\d{1,${o}}))?(?:\\.(\\d{1,${o}}))?`), f("COERCE", `${c[m.COERCEPLAIN]}(?:$|[^\\d])`), f("COERCEFULL", c[m.COERCEPLAIN] + `(?:${c[m.PRERELEASE]})?(?:${c[m.BUILD]})?(?:$|[^\\d])`), f("COERCERTL", c[m.COERCE], !0), f("COERCERTLFULL", c[m.COERCEFULL], !0), f("LONETILDE", "(?:~>?)"), f("TILDETRIM", `(\\s*)${c[m.LONETILDE]}\\s+`, !0), r.tildeTrimReplace = "$1~", f("TILDE", `^${c[m.LONETILDE]}${c[m.XRANGEPLAIN]}$`), f("TILDELOOSE", `^${c[m.LONETILDE]}${c[m.XRANGEPLAINLOOSE]}$`), f("LONECARET", "(?:\\^)"), f("CARETTRIM", `(\\s*)${c[m.LONECARET]}\\s+`, !0), r.caretTrimReplace = "$1^", f("CARET", `^${c[m.LONECARET]}${c[m.XRANGEPLAIN]}$`), f("CARETLOOSE", `^${c[m.LONECARET]}${c[m.XRANGEPLAINLOOSE]}$`), f("COMPARATORLOOSE", `^${c[m.GTLT]}\\s*(${c[m.LOOSEPLAIN]})$|^$`), f("COMPARATOR", `^${c[m.GTLT]}\\s*(${c[m.FULLPLAIN]})$|^$`), f("COMPARATORTRIM", `(\\s*)${c[m.GTLT]}\\s*(${c[m.LOOSEPLAIN]}|${c[m.XRANGEPLAIN]})`, !0), r.comparatorTrimReplace = "$1$2$3", f("HYPHENRANGE", `^\\s*(${c[m.XRANGEPLAIN]})\\s+-\\s+(${c[m.XRANGEPLAIN]})\\s*$`), f("HYPHENRANGELOOSE", `^\\s*(${c[m.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[m.XRANGEPLAINLOOSE]})\\s*$`), f("STAR", "(<|>)?=?\\s*\\*"), f("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), f("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
2700
2733
  }(Ie, Ie.exports)), Ie.exports;
2701
2734
  }
2702
- var Qe, Yt;
2703
- function Ur() {
2704
- if (Yt) return Qe;
2705
- Yt = 1;
2706
- const s = Object.freeze({ loose: !0 }), r = Object.freeze({});
2707
- return Qe = (l) => l ? typeof l != "object" ? s : l : r, Qe;
2708
- }
2709
2735
  var et, Xt;
2710
- function jr() {
2736
+ function qr() {
2711
2737
  if (Xt) return et;
2712
2738
  Xt = 1;
2739
+ const s = Object.freeze({ loose: !0 }), r = Object.freeze({});
2740
+ return et = (l) => l ? typeof l != "object" ? s : l : r, et;
2741
+ }
2742
+ var tt, Kt;
2743
+ function zr() {
2744
+ if (Kt) return tt;
2745
+ Kt = 1;
2713
2746
  const s = /^[0-9]+$/, r = (l, n) => {
2714
2747
  const i = s.test(l), e = s.test(n);
2715
2748
  return i && e && (l = +l, n = +n), l === n ? 0 : i && !e ? -1 : e && !i ? 1 : l < n ? -1 : 1;
2716
2749
  };
2717
- return et = {
2750
+ return tt = {
2718
2751
  compareIdentifiers: r,
2719
2752
  rcompareIdentifiers: (l, n) => r(n, l)
2720
- }, et;
2753
+ }, tt;
2721
2754
  }
2722
- var tt, Kt;
2723
- function Wr() {
2724
- if (Kt) return tt;
2725
- Kt = 1;
2726
- const s = zi(), { MAX_LENGTH: r, MAX_SAFE_INTEGER: o } = Yi(), { safeRe: l, t: n } = Hr(), i = Ur(), { compareIdentifiers: e } = jr();
2755
+ var it, Jt;
2756
+ function Yr() {
2757
+ if (Jt) return it;
2758
+ Jt = 1;
2759
+ const s = zi(), { MAX_LENGTH: r, MAX_SAFE_INTEGER: o } = Yi(), { safeRe: l, t: n } = Vr(), i = qr(), { compareIdentifiers: e } = zr();
2727
2760
  class a {
2728
2761
  constructor(C, m) {
2729
2762
  if (m = i(m), C instanceof a) {
@@ -2878,14 +2911,14 @@ function Wr() {
2878
2911
  return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
2879
2912
  }
2880
2913
  }
2881
- return tt = a, tt;
2914
+ return it = a, it;
2882
2915
  }
2883
- var it, Jt;
2916
+ var rt, Zt;
2884
2917
  function Xi() {
2885
- if (Jt) return it;
2886
- Jt = 1;
2887
- const s = Wr();
2888
- return it = (o, l, n = !1) => {
2918
+ if (Zt) return rt;
2919
+ Zt = 1;
2920
+ const s = Yr();
2921
+ return rt = (o, l, n = !1) => {
2889
2922
  if (o instanceof s)
2890
2923
  return o;
2891
2924
  try {
@@ -2895,29 +2928,29 @@ function Xi() {
2895
2928
  return null;
2896
2929
  throw i;
2897
2930
  }
2898
- }, it;
2899
- }
2900
- var rt, Zt;
2901
- function Vr() {
2902
- if (Zt) return rt;
2903
- Zt = 1;
2904
- const s = Xi();
2905
- return rt = (o, l) => {
2906
- const n = s(o, l);
2907
- return n ? n.version : null;
2908
2931
  }, rt;
2909
2932
  }
2910
2933
  var nt, Qt;
2911
- function qr() {
2934
+ function Xr() {
2912
2935
  if (Qt) return nt;
2913
2936
  Qt = 1;
2914
2937
  const s = Xi();
2915
2938
  return nt = (o, l) => {
2916
- const n = s(o.trim().replace(/^[=v]+/, ""), l);
2939
+ const n = s(o, l);
2917
2940
  return n ? n.version : null;
2918
2941
  }, nt;
2919
2942
  }
2920
- const Ki = /* @__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"]'), zr = [
2943
+ var st, ei;
2944
+ function Kr() {
2945
+ if (ei) return st;
2946
+ ei = 1;
2947
+ const s = Xi();
2948
+ return st = (o, l) => {
2949
+ const n = s(o.trim().replace(/^[=v]+/, ""), l);
2950
+ return n ? n.version : null;
2951
+ }, st;
2952
+ }
2953
+ const Ki = /* @__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"]'), Jr = [
2921
2954
  "AGPL-1.0",
2922
2955
  "AGPL-3.0",
2923
2956
  "BSD-2-Clause-FreeBSD",
@@ -2944,7 +2977,7 @@ const Ki = /* @__PURE__ */ JSON.parse('["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL
2944
2977
  "bzip2-1.0.5",
2945
2978
  "eCos-2.0",
2946
2979
  "wxWindows"
2947
- ], Yr = [
2980
+ ], Zr = [
2948
2981
  "389-exception",
2949
2982
  "Asterisk-exception",
2950
2983
  "Autoconf-exception-2.0",
@@ -3012,12 +3045,12 @@ const Ki = /* @__PURE__ */ JSON.parse('["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL
3012
3045
  "WxWindows-exception-3.1",
3013
3046
  "x11vnc-openssl-exception"
3014
3047
  ];
3015
- var st, ei;
3016
- function Xr() {
3017
- if (ei) return st;
3018
- ei = 1;
3019
- var s = [].concat(Ki).concat(zr), r = Yr;
3020
- return st = function(o) {
3048
+ var ut, ti;
3049
+ function Qr() {
3050
+ if (ti) return ut;
3051
+ ti = 1;
3052
+ var s = [].concat(Ki).concat(Jr), r = Zr;
3053
+ return ut = function(o) {
3021
3054
  var l = 0;
3022
3055
  function n() {
3023
3056
  return l < o.length;
@@ -3088,11 +3121,11 @@ function Xr() {
3088
3121
  d.push(f);
3089
3122
  }
3090
3123
  return d;
3091
- }, st;
3124
+ }, ut;
3092
3125
  }
3093
- var ut, ti;
3094
- function Kr() {
3095
- return ti || (ti = 1, ut = function(s) {
3126
+ var ot, ii;
3127
+ function en() {
3128
+ return ii || (ii = 1, ot = function(s) {
3096
3129
  var r = 0;
3097
3130
  function o() {
3098
3131
  return r < s.length;
@@ -3169,21 +3202,21 @@ function Kr() {
3169
3202
  if (!d || o())
3170
3203
  throw new Error("Syntax error");
3171
3204
  return d;
3172
- }), ut;
3173
- }
3174
- var ot, ii;
3175
- function Ji() {
3176
- if (ii) return ot;
3177
- ii = 1;
3178
- var s = Xr(), r = Kr();
3179
- return ot = function(o) {
3180
- return r(s(o));
3181
- }, ot;
3205
+ }), ot;
3182
3206
  }
3183
3207
  var at, ri;
3184
- function Jr() {
3208
+ function Ji() {
3185
3209
  if (ri) return at;
3186
3210
  ri = 1;
3211
+ var s = Qr(), r = en();
3212
+ return at = function(o) {
3213
+ return r(s(o));
3214
+ }, at;
3215
+ }
3216
+ var lt, ni;
3217
+ function tn() {
3218
+ if (ni) return lt;
3219
+ ni = 1;
3187
3220
  var s = Ji(), r = Ki;
3188
3221
  function o(t) {
3189
3222
  try {
@@ -3410,14 +3443,14 @@ function Jr() {
3410
3443
  var y = t.replace(
3411
3444
  p,
3412
3445
  u[e]
3413
- ), S = h(y);
3414
- if (S !== null)
3415
- return S;
3446
+ ), O = h(y);
3447
+ if (O !== null)
3448
+ return O;
3416
3449
  }
3417
3450
  }
3418
3451
  return null;
3419
3452
  };
3420
- at = function(t, h) {
3453
+ lt = function(t, h) {
3421
3454
  h = h || {};
3422
3455
  var g = h.upgrade === void 0 ? !0 : !!h.upgrade;
3423
3456
  function u(_) {
@@ -3431,10 +3464,10 @@ function Jr() {
3431
3464
  var y = t.replace(/\+$/, "").trim();
3432
3465
  if (o(y))
3433
3466
  return u(y);
3434
- var S = D(t);
3435
- return S !== null || (S = f(t, function(_) {
3467
+ var O = D(t);
3468
+ return O !== null || (O = f(t, function(_) {
3436
3469
  return o(_) ? _ : D(_);
3437
- }), S !== null) || (S = d(t), S !== null) || (S = f(t, d), S !== null) ? u(S) : null;
3470
+ }), O !== null) || (O = d(t), O !== null) || (O = f(t, d), O !== null) ? u(O) : null;
3438
3471
  };
3439
3472
  function A(t) {
3440
3473
  return [
@@ -3456,13 +3489,13 @@ function Jr() {
3456
3489
  "AGPL-3.0+"
3457
3490
  ].indexOf(t) !== -1 ? t.replace(/\+$/, "-or-later") : ["GPL-3.0", "LGPL-3.0", "AGPL-3.0"].indexOf(t) !== -1 ? t + "-or-later" : t;
3458
3491
  }
3459
- return at;
3492
+ return lt;
3460
3493
  }
3461
- var lt, ni;
3462
- function Zr() {
3463
- if (ni) return lt;
3464
- ni = 1;
3465
- var s = Ji(), r = Jr(), o = 'license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"', l = /^SEE LICEN[CS]E IN (.+)$/;
3494
+ var ct, si;
3495
+ function rn() {
3496
+ if (si) return ct;
3497
+ si = 1;
3498
+ var s = Ji(), r = tn(), o = 'license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"', l = /^SEE LICEN[CS]E IN (.+)$/;
3466
3499
  function n(e, a) {
3467
3500
  return a.slice(0, e.length) === e;
3468
3501
  }
@@ -3473,7 +3506,7 @@ function Zr() {
3473
3506
  } else
3474
3507
  return i(e.left) || i(e.right);
3475
3508
  }
3476
- return lt = function(e) {
3509
+ return ct = function(e) {
3477
3510
  var a;
3478
3511
  try {
3479
3512
  a = s(e);
@@ -3514,12 +3547,12 @@ function Zr() {
3514
3547
  validForOldPackages: !0,
3515
3548
  spdx: !0
3516
3549
  };
3517
- }, lt;
3550
+ }, ct;
3518
3551
  }
3519
- var Ae = {}, si;
3520
- function Qr() {
3521
- if (si) return Ae;
3522
- si = 1, Object.defineProperty(Ae, "__esModule", { value: !0 }), Ae.LRUCache = void 0;
3552
+ var Ae = {}, ui;
3553
+ function nn() {
3554
+ if (ui) return Ae;
3555
+ ui = 1, Object.defineProperty(Ae, "__esModule", { value: !0 }), Ae.LRUCache = void 0;
3523
3556
  const s = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, r = /* @__PURE__ */ new Set(), o = typeof process == "object" && process ? process : {}, l = (w, D, d, f) => {
3524
3557
  typeof o.emitWarning == "function" ? o.emitWarning(w, D, d, f) : console.error(`[${d}] ${D}: ${w}`);
3525
3558
  };
@@ -3752,7 +3785,7 @@ function Qr() {
3752
3785
  return this.#m;
3753
3786
  }
3754
3787
  constructor(D) {
3755
- const { max: d = 0, ttl: f, ttlResolution: A = 1, ttlAutopurge: t, updateAgeOnGet: h, updateAgeOnHas: g, allowStale: u, dispose: p, disposeAfter: y, noDisposeOnSet: S, noUpdateTTL: _, maxSize: x = 0, maxEntrySize: P = 0, sizeCalculation: R, fetchMethod: q, memoMethod: I, noDeleteOnFetchRejection: z, noDeleteOnStaleGet: T, allowStaleOnFetchRejection: j, allowStaleOnFetchAbort: k, ignoreFetchAbort: pe } = D;
3788
+ const { max: d = 0, ttl: f, ttlResolution: A = 1, ttlAutopurge: t, updateAgeOnGet: h, updateAgeOnHas: g, allowStale: u, dispose: p, disposeAfter: y, noDisposeOnSet: O, noUpdateTTL: _, maxSize: x = 0, maxEntrySize: P = 0, sizeCalculation: R, fetchMethod: q, memoMethod: I, noDeleteOnFetchRejection: z, noDeleteOnStaleGet: T, allowStaleOnFetchRejection: j, allowStaleOnFetchAbort: G, ignoreFetchAbort: pe } = D;
3756
3789
  if (d !== 0 && !a(d))
3757
3790
  throw new TypeError("max option must be a nonnegative integer");
3758
3791
  const ae = d ? c(d) : Array;
@@ -3768,7 +3801,7 @@ function Qr() {
3768
3801
  throw new TypeError("memoMethod must be a function if defined");
3769
3802
  if (this.#x = I, q !== void 0 && typeof q != "function")
3770
3803
  throw new TypeError("fetchMethod must be a function if specified");
3771
- if (this.#$ = q, this.#L = !!q, this.#s = /* @__PURE__ */ new Map(), this.#r = new Array(d).fill(void 0), this.#e = new Array(d).fill(void 0), this.#h = new ae(d), this.#f = new ae(d), this.#c = 0, this.#o = 0, this.#C = m.create(d), this.#u = 0, this.#g = 0, typeof p == "function" && (this.#t = p), typeof y == "function" ? (this.#m = y, this.#a = []) : (this.#m = void 0, this.#a = void 0), this.#b = !!this.#t, this.#D = !!this.#m, this.noDisposeOnSet = !!S, this.noUpdateTTL = !!_, this.noDeleteOnFetchRejection = !!z, this.allowStaleOnFetchRejection = !!j, this.allowStaleOnFetchAbort = !!k, this.ignoreFetchAbort = !!pe, this.maxEntrySize !== 0) {
3804
+ if (this.#$ = q, this.#L = !!q, this.#s = /* @__PURE__ */ new Map(), this.#r = new Array(d).fill(void 0), this.#e = new Array(d).fill(void 0), this.#h = new ae(d), this.#f = new ae(d), this.#c = 0, this.#o = 0, this.#C = m.create(d), this.#u = 0, this.#g = 0, typeof p == "function" && (this.#t = p), typeof y == "function" ? (this.#m = y, this.#a = []) : (this.#m = void 0, this.#a = void 0), this.#b = !!this.#t, this.#D = !!this.#m, this.noDisposeOnSet = !!O, this.noUpdateTTL = !!_, this.noDeleteOnFetchRejection = !!z, this.allowStaleOnFetchRejection = !!j, this.allowStaleOnFetchAbort = !!G, this.ignoreFetchAbort = !!pe, this.maxEntrySize !== 0) {
3772
3805
  if (this.#l !== 0 && !a(this.#l))
3773
3806
  throw new TypeError("maxSize must be a positive integer if specified");
3774
3807
  if (!a(this.maxEntrySize))
@@ -3803,7 +3836,7 @@ function Qr() {
3803
3836
  }, h + 1);
3804
3837
  u.unref && u.unref();
3805
3838
  }
3806
- }, this.#S = (t) => {
3839
+ }, this.#O = (t) => {
3807
3840
  d[t] = D[t] !== 0 ? s.now() : 0;
3808
3841
  }, this.#w = (t, h) => {
3809
3842
  if (D[h]) {
@@ -3840,7 +3873,7 @@ function Qr() {
3840
3873
  };
3841
3874
  }
3842
3875
  // conditionally set private methods related to TTL
3843
- #S = () => {
3876
+ #O = () => {
3844
3877
  };
3845
3878
  #w = () => {
3846
3879
  };
@@ -3850,7 +3883,7 @@ function Qr() {
3850
3883
  #d = () => !1;
3851
3884
  #H() {
3852
3885
  const D = new C(this.#n);
3853
- this.#g = 0, this.#E = D, this.#O = (d) => {
3886
+ this.#g = 0, this.#E = D, this.#S = (d) => {
3854
3887
  this.#g -= D[d], D[d] = 0;
3855
3888
  }, this.#T = (d, f, A, t) => {
3856
3889
  if (this.#i(f))
@@ -3873,7 +3906,7 @@ function Qr() {
3873
3906
  this.#g += D[d], A && (A.entrySize = f, A.totalCalculatedSize = this.#g);
3874
3907
  };
3875
3908
  }
3876
- #O = (D) => {
3909
+ #S = (D) => {
3877
3910
  };
3878
3911
  #B = (D, d, f) => {
3879
3912
  };
@@ -4129,26 +4162,26 @@ function Qr() {
4129
4162
  const y = this.#T(D, d, f.size || 0, g);
4130
4163
  if (this.maxEntrySize && y > this.maxEntrySize)
4131
4164
  return u && (u.set = "miss", u.maxEntrySizeExceeded = !0), this.#y(D, "set"), this;
4132
- let S = this.#u === 0 ? void 0 : this.#s.get(D);
4133
- if (S === void 0)
4134
- S = this.#u === 0 ? this.#o : this.#C.length !== 0 ? this.#C.pop() : this.#u === this.#n ? this.#P(!1) : this.#u, this.#r[S] = D, this.#e[S] = d, this.#s.set(D, S), this.#h[this.#o] = S, this.#f[S] = this.#o, this.#o = S, this.#u++, this.#B(S, y, u), u && (u.set = "add"), p = !1;
4165
+ let O = this.#u === 0 ? void 0 : this.#s.get(D);
4166
+ if (O === void 0)
4167
+ O = this.#u === 0 ? this.#o : this.#C.length !== 0 ? this.#C.pop() : this.#u === this.#n ? this.#P(!1) : this.#u, this.#r[O] = D, this.#e[O] = d, this.#s.set(D, O), this.#h[this.#o] = O, this.#f[O] = this.#o, this.#o = O, this.#u++, this.#B(O, y, u), u && (u.set = "add"), p = !1;
4135
4168
  else {
4136
- this.#_(S);
4137
- const _ = this.#e[S];
4169
+ this.#_(O);
4170
+ const _ = this.#e[O];
4138
4171
  if (d !== _) {
4139
4172
  if (this.#L && this.#i(_)) {
4140
4173
  _.__abortController.abort(new Error("replaced"));
4141
4174
  const { __staleWhileFetching: x } = _;
4142
4175
  x !== void 0 && !h && (this.#b && this.#t?.(x, D, "set"), this.#D && this.#a?.push([x, D, "set"]));
4143
4176
  } else h || (this.#b && this.#t?.(_, D, "set"), this.#D && this.#a?.push([_, D, "set"]));
4144
- if (this.#O(S), this.#B(S, y, u), this.#e[S] = d, u) {
4177
+ if (this.#S(O), this.#B(O, y, u), this.#e[O] = d, u) {
4145
4178
  u.set = "replace";
4146
4179
  const x = _ && this.#i(_) ? _.__staleWhileFetching : _;
4147
4180
  x !== void 0 && (u.oldValue = x);
4148
4181
  }
4149
4182
  } else u && (u.set = "update");
4150
4183
  }
4151
- if (A !== 0 && !this.#p && this.#N(), this.#p && (p || this.#I(S, A, t), u && this.#w(u, S)), !h && this.#D && this.#a) {
4184
+ if (A !== 0 && !this.#p && this.#N(), this.#p && (p || this.#I(O, A, t), u && this.#w(u, O)), !h && this.#D && this.#a) {
4152
4185
  const _ = this.#a;
4153
4186
  let x;
4154
4187
  for (; x = _?.shift(); )
@@ -4181,7 +4214,7 @@ function Qr() {
4181
4214
  }
4182
4215
  #P(D) {
4183
4216
  const d = this.#c, f = this.#r[d], A = this.#e[d];
4184
- return this.#L && this.#i(A) ? A.__abortController.abort(new Error("evicted")) : (this.#b || this.#D) && (this.#b && this.#t?.(A, f, "evict"), this.#D && this.#a?.push([A, f, "evict"])), this.#O(d), D && (this.#r[d] = void 0, this.#e[d] = void 0, this.#C.push(d)), this.#u === 1 ? (this.#c = this.#o = 0, this.#C.length = 0) : this.#c = this.#h[d], this.#s.delete(f), this.#u--, d;
4217
+ return this.#L && this.#i(A) ? A.__abortController.abort(new Error("evicted")) : (this.#b || this.#D) && (this.#b && this.#t?.(A, f, "evict"), this.#D && this.#a?.push([A, f, "evict"])), this.#S(d), D && (this.#r[d] = void 0, this.#e[d] = void 0, this.#C.push(d)), this.#u === 1 ? (this.#c = this.#o = 0, this.#C.length = 0) : this.#c = this.#h[d], this.#s.delete(f), this.#u--, d;
4185
4218
  }
4186
4219
  /**
4187
4220
  * Check if a key is in the cache, without updating the recency of use.
@@ -4207,7 +4240,7 @@ function Qr() {
4207
4240
  return !1;
4208
4241
  if (this.#d(t))
4209
4242
  A && (A.has = "stale", this.#w(A, t));
4210
- else return f && this.#S(t), A && (A.has = "hit", this.#w(A, t)), !0;
4243
+ else return f && this.#O(t), A && (A.has = "hit", this.#w(A, t)), !0;
4211
4244
  } else A && (A.has = "miss");
4212
4245
  return !1;
4213
4246
  }
@@ -4240,10 +4273,10 @@ function Qr() {
4240
4273
  }, p = (R, q = !1) => {
4241
4274
  const { aborted: I } = h.signal, z = f.ignoreFetchAbort && R !== void 0;
4242
4275
  if (f.status && (I && !q ? (f.status.fetchAborted = !0, f.status.fetchError = h.signal.reason, z && (f.status.fetchAbortIgnored = !0)) : f.status.fetchResolved = !0), I && !z && !q)
4243
- return S(h.signal.reason);
4276
+ return O(h.signal.reason);
4244
4277
  const T = x;
4245
4278
  return this.#e[d] === x && (R === void 0 ? T.__staleWhileFetching ? this.#e[d] = T.__staleWhileFetching : this.#y(D, "fetch") : (f.status && (f.status.fetchUpdated = !0), this.set(D, R, u.options))), R;
4246
- }, y = (R) => (f.status && (f.status.fetchRejected = !0, f.status.fetchError = R), S(R)), S = (R) => {
4279
+ }, y = (R) => (f.status && (f.status.fetchRejected = !0, f.status.fetchError = R), O(R)), O = (R) => {
4247
4280
  const { aborted: q } = h.signal, I = q && f.allowStaleOnFetchAbort, z = I || f.allowStaleOnFetchRejection, T = z || f.noDeleteOnFetchRejection, j = x;
4248
4281
  if (this.#e[d] === x && (!T || j.__staleWhileFetching === void 0 ? this.#y(D, "fetch") : I || (this.#e[d] = j.__staleWhileFetching)), z)
4249
4282
  return f.status && j.__staleWhileFetching !== void 0 && (f.status.returnedStale = !0), j.__staleWhileFetching;
@@ -4282,7 +4315,7 @@ function Qr() {
4282
4315
  sizeCalculation: p = this.sizeCalculation,
4283
4316
  noUpdateTTL: y = this.noUpdateTTL,
4284
4317
  // fetch exclusive options
4285
- noDeleteOnFetchRejection: S = this.noDeleteOnFetchRejection,
4318
+ noDeleteOnFetchRejection: O = this.noDeleteOnFetchRejection,
4286
4319
  allowStaleOnFetchRejection: _ = this.allowStaleOnFetchRejection,
4287
4320
  ignoreFetchAbort: x = this.ignoreFetchAbort,
4288
4321
  allowStaleOnFetchAbort: P = this.allowStaleOnFetchAbort,
@@ -4307,7 +4340,7 @@ function Qr() {
4307
4340
  size: u,
4308
4341
  sizeCalculation: p,
4309
4342
  noUpdateTTL: y,
4310
- noDeleteOnFetchRejection: S,
4343
+ noDeleteOnFetchRejection: O,
4311
4344
  allowStaleOnFetchRejection: _,
4312
4345
  allowStaleOnFetchAbort: P,
4313
4346
  ignoreFetchAbort: x,
@@ -4317,17 +4350,17 @@ function Qr() {
4317
4350
  let j = this.#s.get(D);
4318
4351
  if (j === void 0) {
4319
4352
  I && (I.fetch = "miss");
4320
- const k = this.#R(D, j, T, R);
4321
- return k.__returned = k;
4353
+ const G = this.#R(D, j, T, R);
4354
+ return G.__returned = G;
4322
4355
  } else {
4323
- const k = this.#e[j];
4324
- if (this.#i(k)) {
4325
- const Fe = f && k.__staleWhileFetching !== void 0;
4326
- return I && (I.fetch = "inflight", Fe && (I.returnedStale = !0)), Fe ? k.__staleWhileFetching : k.__returned = k;
4356
+ const G = this.#e[j];
4357
+ if (this.#i(G)) {
4358
+ const Fe = f && G.__staleWhileFetching !== void 0;
4359
+ return I && (I.fetch = "inflight", Fe && (I.returnedStale = !0)), Fe ? G.__staleWhileFetching : G.__returned = G;
4327
4360
  }
4328
4361
  const pe = this.#d(j);
4329
4362
  if (!q && !pe)
4330
- return I && (I.fetch = "hit"), this.#_(j), A && this.#S(j), I && this.#w(I, j), k;
4363
+ return I && (I.fetch = "hit"), this.#_(j), A && this.#O(j), I && this.#w(I, j), G;
4331
4364
  const ae = this.#R(D, j, T, R), he = ae.__staleWhileFetching !== void 0 && f;
4332
4365
  return I && (I.fetch = pe ? "stale" : "refresh", he && pe && (I.returnedStale = !0)), he ? ae.__staleWhileFetching : ae.__returned = ae;
4333
4366
  }
@@ -4361,14 +4394,14 @@ function Qr() {
4361
4394
  const { allowStale: f = this.allowStale, updateAgeOnGet: A = this.updateAgeOnGet, noDeleteOnStaleGet: t = this.noDeleteOnStaleGet, status: h } = d, g = this.#s.get(D);
4362
4395
  if (g !== void 0) {
4363
4396
  const u = this.#e[g], p = this.#i(u);
4364
- return h && this.#w(h, g), this.#d(g) ? (h && (h.get = "stale"), p ? (h && f && u.__staleWhileFetching !== void 0 && (h.returnedStale = !0), f ? u.__staleWhileFetching : void 0) : (t || this.#y(D, "expire"), h && f && (h.returnedStale = !0), f ? u : void 0)) : (h && (h.get = "hit"), p ? u.__staleWhileFetching : (this.#_(g), A && this.#S(g), u));
4397
+ return h && this.#w(h, g), this.#d(g) ? (h && (h.get = "stale"), p ? (h && f && u.__staleWhileFetching !== void 0 && (h.returnedStale = !0), f ? u.__staleWhileFetching : void 0) : (t || this.#y(D, "expire"), h && f && (h.returnedStale = !0), f ? u : void 0)) : (h && (h.get = "hit"), p ? u.__staleWhileFetching : (this.#_(g), A && this.#O(g), u));
4365
4398
  } else h && (h.get = "miss");
4366
4399
  }
4367
- #G(D, d) {
4400
+ #k(D, d) {
4368
4401
  this.#f[d] = D, this.#h[D] = d;
4369
4402
  }
4370
4403
  #_(D) {
4371
- D !== this.#o && (D === this.#c ? this.#c = this.#h[D] : this.#G(this.#f[D], this.#h[D]), this.#G(this.#o, D), this.#o = D);
4404
+ D !== this.#o && (D === this.#c ? this.#c = this.#h[D] : this.#k(this.#f[D], this.#h[D]), this.#k(this.#o, D), this.#o = D);
4372
4405
  }
4373
4406
  /**
4374
4407
  * Deletes a key out of the cache.
@@ -4384,9 +4417,9 @@ function Qr() {
4384
4417
  const A = this.#s.get(D);
4385
4418
  if (A !== void 0)
4386
4419
  if (f = !0, this.#u === 1)
4387
- this.#k(d);
4420
+ this.#G(d);
4388
4421
  else {
4389
- this.#O(A);
4422
+ this.#S(A);
4390
4423
  const t = this.#e[A];
4391
4424
  if (this.#i(t) ? t.__abortController.abort(new Error("deleted")) : (this.#b || this.#D) && (this.#b && this.#t?.(t, D, d), this.#D && this.#a?.push([t, D, d])), this.#s.delete(D), this.#r[A] = void 0, this.#e[A] = void 0, A === this.#o)
4392
4425
  this.#o = this.#f[A];
@@ -4413,9 +4446,9 @@ function Qr() {
4413
4446
  * Clear the cache entirely, throwing away all values.
4414
4447
  */
4415
4448
  clear() {
4416
- return this.#k("delete");
4449
+ return this.#G("delete");
4417
4450
  }
4418
- #k(D) {
4451
+ #G(D) {
4419
4452
  for (const d of this.#v({ allowStale: !0 })) {
4420
4453
  const f = this.#e[d];
4421
4454
  if (this.#i(f))
@@ -4435,10 +4468,10 @@ function Qr() {
4435
4468
  }
4436
4469
  return Ae.LRUCache = v, Ae;
4437
4470
  }
4438
- var ct, ui;
4439
- function en() {
4440
- if (ui) return ct;
4441
- ui = 1;
4471
+ var ht, oi;
4472
+ function sn() {
4473
+ if (oi) return ht;
4474
+ oi = 1;
4442
4475
  const s = (...i) => i.every((e) => e) ? i.join("") : "", r = (i) => i ? encodeURIComponent(i) : "", o = (i) => i.toLowerCase().replace(/^\W+/g, "").replace(/(?<!\W)\W+$/, "").replace(/\//g, "").replace(/\W+/g, "-"), l = {
4443
4476
  sshtemplate: ({ domain: i, user: e, project: a, committish: c }) => `git@${i}:${e}/${a}.git${s("#", c)}`,
4444
4477
  sshurltemplate: ({ domain: i, user: e, project: a, committish: c }) => `git+ssh://git@${i}/${e}/${a}.git${s("#", c)}`,
@@ -4551,12 +4584,12 @@ function en() {
4551
4584
  };
4552
4585
  for (const [i, e] of Object.entries(n))
4553
4586
  n[i] = Object.assign({}, l, e);
4554
- return ct = n, ct;
4587
+ return ht = n, ht;
4555
4588
  }
4556
- var ht, oi;
4589
+ var Dt, ai;
4557
4590
  function Zi() {
4558
- if (oi) return ht;
4559
- oi = 1;
4591
+ if (ai) return Dt;
4592
+ ai = 1;
4560
4593
  const s = Gi, r = (i, e, a) => {
4561
4594
  const c = i.indexOf(a);
4562
4595
  return i.lastIndexOf(e, c > -1 ? c : 1 / 0);
@@ -4575,20 +4608,20 @@ function Zi() {
4575
4608
  const e = r(i, "@", "#"), a = r(i, ":", "#");
4576
4609
  return a > e && (i = i.slice(0, a) + "/" + i.slice(a + 1)), r(i, ":", "#") === -1 && i.indexOf("//") === -1 && (i = `git+ssh://${i}`), i;
4577
4610
  };
4578
- return ht = (i, e) => {
4611
+ return Dt = (i, e) => {
4579
4612
  const a = e ? l(i, e) : i;
4580
4613
  return o(a) || o(n(a));
4581
- }, ht;
4614
+ }, Dt;
4582
4615
  }
4583
- var Dt, ai;
4584
- function tn() {
4585
- if (ai) return Dt;
4586
- ai = 1;
4616
+ var ft, li;
4617
+ function un() {
4618
+ if (li) return ft;
4619
+ li = 1;
4587
4620
  const s = Zi(), r = (o) => {
4588
4621
  const l = o.indexOf("#"), n = o.indexOf("/"), i = o.indexOf("/", n + 1), e = o.indexOf(":"), a = /\s/.exec(o), c = o.indexOf("@"), C = !a || l > -1 && a.index > l, m = c === -1 || l > -1 && c > l, v = e === -1 || l > -1 && e > l, w = i === -1 || l > -1 && i > l, D = n > 0, d = l > -1 ? o[l - 1] !== "/" : !o.endsWith("/"), f = !o.startsWith(".");
4589
4622
  return C && D && d && f && m && v && w;
4590
4623
  };
4591
- return Dt = (o, l, { gitHosts: n, protocols: i }) => {
4624
+ return ft = (o, l, { gitHosts: n, protocols: i }) => {
4592
4625
  if (!o)
4593
4626
  return;
4594
4627
  const e = r(o) ? `github:${o}` : o, a = s(e, i);
@@ -4622,13 +4655,13 @@ function tn() {
4622
4655
  throw t;
4623
4656
  }
4624
4657
  return [m, d, w, f, D, A, l];
4625
- }, Dt;
4658
+ }, ft;
4626
4659
  }
4627
- var ft, li;
4628
- function rn() {
4629
- if (li) return ft;
4630
- li = 1;
4631
- const { LRUCache: s } = /* @__PURE__ */ Qr(), r = en(), o = tn(), l = Zi(), n = new s({ max: 1e3 });
4660
+ var pt, ci;
4661
+ function on() {
4662
+ if (ci) return pt;
4663
+ ci = 1;
4664
+ const { LRUCache: s } = /* @__PURE__ */ nn(), r = sn(), o = un(), l = Zi(), n = new s({ max: 1e3 });
4632
4665
  function i(a) {
4633
4666
  try {
4634
4667
  const {
@@ -4761,12 +4794,12 @@ function rn() {
4761
4794
  }
4762
4795
  for (const [a, c] of Object.entries(r))
4763
4796
  e.addHost(a, c);
4764
- return ft = e, ft;
4797
+ return pt = e, pt;
4765
4798
  }
4766
- var pt, ci;
4767
- function nn() {
4768
- if (ci) return pt;
4769
- ci = 1, pt = s;
4799
+ var dt, hi;
4800
+ function an() {
4801
+ if (hi) return dt;
4802
+ hi = 1, dt = s;
4770
4803
  function s(r) {
4771
4804
  if (!r || r === "ERROR: No README data found!")
4772
4805
  return;
@@ -4781,19 +4814,19 @@ function nn() {
4781
4814
  n++;
4782
4815
  return r.slice(o, n).join(" ").trim();
4783
4816
  }
4784
- return pt;
4817
+ return dt;
4785
4818
  }
4786
- const sn = { 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" }, un = { web: "url", name: "url" }, on = { server: "start", tests: "test" }, an = {
4787
- topLevel: sn,
4788
- bugs: un,
4789
- script: on
4819
+ const ln = { 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" }, cn = { web: "url", name: "url" }, hn = { server: "start", tests: "test" }, Dn = {
4820
+ topLevel: ln,
4821
+ bugs: cn,
4822
+ script: hn
4790
4823
  };
4791
- var dt, hi;
4792
- function ln() {
4793
- if (hi) return dt;
4794
- hi = 1;
4795
- var s = Vr(), r = qr(), o = Zr(), l = rn(), n = Or, i = ["dependencies", "devDependencies", "optionalDependencies"], e = nn(), a = Gi, c = an, C = (u) => u.includes("@") && u.indexOf("@") < u.lastIndexOf(".");
4796
- dt = {
4824
+ var mt, Di;
4825
+ function fn() {
4826
+ if (Di) return mt;
4827
+ Di = 1;
4828
+ var s = Xr(), r = Kr(), o = rn(), l = on(), n = _r, i = ["dependencies", "devDependencies", "optionalDependencies"], e = an(), a = Gi, c = Dn, C = (u) => u.includes("@") && u.indexOf("@") < u.lastIndexOf(".");
4829
+ mt = {
4797
4830
  // default warning function
4798
4831
  warn: function() {
4799
4832
  },
@@ -4844,8 +4877,8 @@ function ln() {
4844
4877
  },
4845
4878
  fixBundleDependenciesField: function(u) {
4846
4879
  var p = "bundledDependencies", y = "bundleDependencies";
4847
- u[p] && !u[y] && (u[y] = u[p], delete u[p]), u[y] && !Array.isArray(u[y]) ? (this.warn("nonArrayBundleDependencies"), delete u[y]) : u[y] && (u[y] = u[y].filter(function(S) {
4848
- return !S || typeof S != "string" ? (this.warn("nonStringBundleDependency", S), !1) : (u.dependencies || (u.dependencies = {}), Object.prototype.hasOwnProperty.call(u.dependencies, S) || (this.warn("nonDependencyBundleDependency", S), u.dependencies[S] = "*"), !0);
4880
+ u[p] && !u[y] && (u[y] = u[p], delete u[p]), u[y] && !Array.isArray(u[y]) ? (this.warn("nonArrayBundleDependencies"), delete u[y]) : u[y] && (u[y] = u[y].filter(function(O) {
4881
+ return !O || typeof O != "string" ? (this.warn("nonStringBundleDependency", O), !1) : (u.dependencies || (u.dependencies = {}), Object.prototype.hasOwnProperty.call(u.dependencies, O) || (this.warn("nonDependencyBundleDependency", O), u.dependencies[O] = "*"), !0);
4849
4882
  }, this));
4850
4883
  },
4851
4884
  fixDependencies: function(u) {
@@ -4856,8 +4889,8 @@ function ln() {
4856
4889
  return;
4857
4890
  }
4858
4891
  Object.keys(u[p]).forEach(function(y) {
4859
- var S = u[p][y];
4860
- typeof S != "string" && (this.warn("nonStringDependency", y, JSON.stringify(S)), delete u[p][y]);
4892
+ var O = u[p][y];
4893
+ typeof O != "string" && (this.warn("nonStringDependency", y, JSON.stringify(O)), delete u[p][y]);
4861
4894
  var _ = l.fromUrl(u[p][y]);
4862
4895
  _ && (u[p][y] = _.toString());
4863
4896
  }, this);
@@ -4957,21 +4990,21 @@ function ln() {
4957
4990
  function d(u) {
4958
4991
  if (typeof u == "string")
4959
4992
  return u;
4960
- var p = u.name || "", y = u.url || u.web, S = y ? " (" + y + ")" : "", _ = u.email || u.mail, x = _ ? " <" + _ + ">" : "";
4961
- return p + x + S;
4993
+ var p = u.name || "", y = u.url || u.web, O = y ? " (" + y + ")" : "", _ = u.email || u.mail, x = _ ? " <" + _ + ">" : "";
4994
+ return p + x + O;
4962
4995
  }
4963
4996
  function f(u) {
4964
4997
  if (typeof u != "string")
4965
4998
  return u;
4966
- var p = u.match(/^([^(<]+)/), y = u.match(/\(([^()]+)\)/), S = u.match(/<([^<>]+)>/), _ = {};
4967
- return p && p[0].trim() && (_.name = p[0].trim()), S && (_.email = S[1]), y && (_.url = y[1]), _;
4999
+ var p = u.match(/^([^(<]+)/), y = u.match(/\(([^()]+)\)/), O = u.match(/<([^<>]+)>/), _ = {};
5000
+ return p && p[0].trim() && (_.name = p[0].trim()), O && (_.email = O[1]), y && (_.url = y[1]), _;
4968
5001
  }
4969
5002
  function A(u) {
4970
5003
  var p = u.optionalDependencies;
4971
5004
  if (p) {
4972
5005
  var y = u.dependencies || {};
4973
- Object.keys(p).forEach(function(S) {
4974
- y[S] = p[S];
5006
+ Object.keys(p).forEach(function(O) {
5007
+ y[O] = p[O];
4975
5008
  }), u.dependencies = y;
4976
5009
  }
4977
5010
  }
@@ -4981,14 +5014,14 @@ function ln() {
4981
5014
  if (typeof u == "string" && (u = u.trim().split(/[\n\r\s\t ,]+/)), !Array.isArray(u))
4982
5015
  return u;
4983
5016
  y("deprecatedArrayDependencies", p);
4984
- var S = {};
5017
+ var O = {};
4985
5018
  return u.filter(function(_) {
4986
5019
  return typeof _ == "string";
4987
5020
  }).forEach(function(_) {
4988
5021
  _ = _.trim().split(/(:?[@\s><=])/);
4989
5022
  var x = _.shift(), P = _.join("");
4990
- P = P.trim(), P = P.replace(/^@/, ""), S[x] = P;
4991
- }), S;
5023
+ P = P.trim(), P = P.replace(/^@/, ""), O[x] = P;
5024
+ }), O;
4992
5025
  }
4993
5026
  function h(u, p) {
4994
5027
  i.forEach(function(y) {
@@ -5000,44 +5033,44 @@ function ln() {
5000
5033
  c.bugs[y] && (p("typo", y, c.bugs[y], "bugs"), u[c.bugs[y]] = u[y], delete u[y]);
5001
5034
  });
5002
5035
  }
5003
- return dt;
5036
+ return mt;
5004
5037
  }
5005
- const cn = "'repositories' (plural) Not supported. Please pick one as the 'repository' field", hn = "No repository field.", Dn = "Probably broken git url: %s", fn = "scripts must be an object", pn = "script values must be string commands", dn = "Invalid 'files' member", mn = "Invalid filename in 'files' list: %s", gn = "Invalid 'bundleDependencies' list. Must be array of package names", Cn = "Invalid bundleDependencies member: %s", En = "Non-dependency in bundleDependencies: %s", Fn = "%s field must be an object", bn = "Invalid dependency: %s %s", An = "specifying %s as array is deprecated", vn = "modules field is deprecated", yn = "keywords should be an array of strings", wn = "keywords should be an array of strings", Ln = "%s is also the name of a node core module.", Sn = "'description' field should be a string", On = "No description", _n = "No README data", $n = "No license field.", xn = "Bug string field must be url, email, or {email,url}", Bn = "bugs.url field must be a string url. Deleted.", Pn = "bugs.email field must be a string email. Deleted.", Rn = "Normalized value of bugs field is an empty object. Deleted.", Nn = "homepage field must be a string url. Deleted.", In = "license should be a valid SPDX license expression", Tn = "%s should probably be %s.", Mn = {
5006
- repositories: cn,
5007
- missingRepository: hn,
5008
- brokenGitUrl: Dn,
5009
- nonObjectScripts: fn,
5010
- nonStringScript: pn,
5011
- nonArrayFiles: dn,
5012
- invalidFilename: mn,
5013
- nonArrayBundleDependencies: gn,
5014
- nonStringBundleDependency: Cn,
5015
- nonDependencyBundleDependency: En,
5016
- nonObjectDependencies: Fn,
5017
- nonStringDependency: bn,
5018
- deprecatedArrayDependencies: An,
5019
- deprecatedModules: vn,
5020
- nonArrayKeywords: yn,
5021
- nonStringKeyword: wn,
5022
- conflictingName: Ln,
5023
- nonStringDescription: Sn,
5024
- missingDescription: On,
5025
- missingReadme: _n,
5026
- missingLicense: $n,
5027
- nonEmailUrlBugsString: xn,
5028
- nonUrlBugsUrlField: Bn,
5029
- nonEmailBugsEmailField: Pn,
5030
- emptyNormalizedBugs: Rn,
5031
- nonUrlHomepage: Nn,
5032
- invalidLicense: In,
5033
- typo: Tn
5038
+ const pn = "'repositories' (plural) Not supported. Please pick one as the 'repository' field", dn = "No repository field.", mn = "Probably broken git url: %s", gn = "scripts must be an object", Cn = "script values must be string commands", En = "Invalid 'files' member", Fn = "Invalid filename in 'files' list: %s", bn = "Invalid 'bundleDependencies' list. Must be array of package names", An = "Invalid bundleDependencies member: %s", vn = "Non-dependency in bundleDependencies: %s", yn = "%s field must be an object", wn = "Invalid dependency: %s %s", Ln = "specifying %s as array is deprecated", On = "modules field is deprecated", Sn = "keywords should be an array of strings", _n = "keywords should be an array of strings", $n = "%s is also the name of a node core module.", xn = "'description' field should be a string", Bn = "No description", Pn = "No README data", Rn = "No license field.", Nn = "Bug string field must be url, email, or {email,url}", In = "bugs.url field must be a string url. Deleted.", Tn = "bugs.email field must be a string email. Deleted.", Mn = "Normalized value of bugs field is an empty object. Deleted.", kn = "homepage field must be a string url. Deleted.", Gn = "license should be a valid SPDX license expression", Hn = "%s should probably be %s.", Un = {
5039
+ repositories: pn,
5040
+ missingRepository: dn,
5041
+ brokenGitUrl: mn,
5042
+ nonObjectScripts: gn,
5043
+ nonStringScript: Cn,
5044
+ nonArrayFiles: En,
5045
+ invalidFilename: Fn,
5046
+ nonArrayBundleDependencies: bn,
5047
+ nonStringBundleDependency: An,
5048
+ nonDependencyBundleDependency: vn,
5049
+ nonObjectDependencies: yn,
5050
+ nonStringDependency: wn,
5051
+ deprecatedArrayDependencies: Ln,
5052
+ deprecatedModules: On,
5053
+ nonArrayKeywords: Sn,
5054
+ nonStringKeyword: _n,
5055
+ conflictingName: $n,
5056
+ nonStringDescription: xn,
5057
+ missingDescription: Bn,
5058
+ missingReadme: Pn,
5059
+ missingLicense: Rn,
5060
+ nonEmailUrlBugsString: Nn,
5061
+ nonUrlBugsUrlField: In,
5062
+ nonEmailBugsEmailField: Tn,
5063
+ emptyNormalizedBugs: Mn,
5064
+ nonUrlHomepage: kn,
5065
+ invalidLicense: Gn,
5066
+ typo: Hn
5034
5067
  };
5035
- var mt, Di;
5036
- function Gn() {
5037
- if (Di) return mt;
5038
- Di = 1;
5039
- var s = Lr, r = Mn;
5040
- mt = function() {
5068
+ var gt, fi;
5069
+ function jn() {
5070
+ if (fi) return gt;
5071
+ fi = 1;
5072
+ var s = Or, r = Un;
5073
+ gt = function() {
5041
5074
  var l = Array.prototype.slice.call(arguments, 0), n = l.shift();
5042
5075
  if (n === "typo")
5043
5076
  return o.apply(null, l);
@@ -5047,15 +5080,15 @@ function Gn() {
5047
5080
  function o(l, n, i) {
5048
5081
  return i && (l = i + "['" + l + "']", n = i + "['" + n + "']"), s.format(r.typo, l, n);
5049
5082
  }
5050
- return mt;
5083
+ return gt;
5051
5084
  }
5052
- var gt, fi;
5053
- function kn() {
5054
- if (fi) return gt;
5055
- fi = 1, gt = i;
5056
- var s = ln();
5085
+ var Ct, pi;
5086
+ function Wn() {
5087
+ if (pi) return Ct;
5088
+ pi = 1, Ct = i;
5089
+ var s = fn();
5057
5090
  i.fixer = s;
5058
- var r = Gn(), o = [
5091
+ var r = jn(), o = [
5059
5092
  "name",
5060
5093
  "version",
5061
5094
  "description",
@@ -5085,20 +5118,20 @@ function kn() {
5085
5118
  function e(a) {
5086
5119
  return a.charAt(0).toUpperCase() + a.slice(1);
5087
5120
  }
5088
- return gt;
5121
+ return Ct;
5089
5122
  }
5090
- var Hn = kn();
5091
- const Un = /* @__PURE__ */ qe(Hn), ge = Sr(wr.exec);
5092
- async function Qi(s, r, o, l = Wi) {
5093
- const n = Xe.cwd();
5123
+ var Vn = Wn();
5124
+ const qn = /* @__PURE__ */ ze(Vn), ge = Sr(Lr.exec);
5125
+ async function Qi(s, r, o, l = Vi) {
5126
+ const n = Ke.cwd();
5094
5127
  try {
5095
5128
  await fe.mkdir(s);
5096
5129
  } catch (i) {
5097
5130
  throw new Error(`could not create new directory in file system, details: ${String(i)}`);
5098
5131
  }
5099
- Xe.chdir(s), await ge("git init"), await ge(`git remote add origin ${r}`), await ge("git config core.sparseCheckout true"), await ge(`git sparse-checkout set --no-cone ${o}/*`), await ge(`git pull origin ${l}`), await jn(o, "."), await fe.rm(".git", { recursive: !0 }), Xe.chdir(n);
5132
+ Ke.chdir(s), await ge("git init"), await ge(`git remote add origin ${r}`), await ge("git config core.sparseCheckout true"), await ge(`git sparse-checkout set --no-cone ${o}/*`), await ge(`git pull origin ${l}`), await zn(o, "."), await fe.rm(".git", { recursive: !0 }), Ke.chdir(n);
5100
5133
  }
5101
- async function jn(s, r) {
5134
+ async function zn(s, r) {
5102
5135
  if (!(s === "." || s === "" || ["./", "/"].includes(s.split("/")[0])))
5103
5136
  try {
5104
5137
  const o = await fe.readdir(s);
@@ -5116,34 +5149,34 @@ async function jn(s, r) {
5116
5149
  }
5117
5150
  async function er(s) {
5118
5151
  const r = await fe.readFile(He.join(s, "package.json"), "utf-8"), o = JSON.parse(r), l = o._id, n = o.readme;
5119
- return Un(o, (e) => {
5152
+ return qn(o, (e) => {
5120
5153
  console.error(e);
5121
5154
  }), l || delete o._id, n || delete o.readme, o;
5122
5155
  }
5123
5156
  async function tr(s, r) {
5124
5157
  await fe.writeFile(He.join(s, "package.json"), JSON.stringify(r, null, 2));
5125
5158
  }
5126
- function Wn(s) {
5159
+ function Yn(s) {
5127
5160
  return s.scripts?.start ? "start" : "dev";
5128
5161
  }
5129
- function Vn(s, r, o) {
5130
- let l = "@arcgis/map-components";
5131
- const n = [me.REACT, me.ANGULAR].some((e) => e === o);
5132
- n && (l = `@arcgis/map-components-${o.toLowerCase()}`);
5133
- const i = s.dependencies[l];
5162
+ function Xn(s, r, o) {
5163
+ const l = [me.REACT, me.ANGULAR].some((a) => a === o), i = Object.keys(s.dependencies || {}).find((a) => a.startsWith("@arcgis/") && a.includes("-components"));
5164
+ if (!i)
5165
+ throw new Error("Could not find base component package version");
5166
+ const e = s.dependencies[i];
5134
5167
  s.dependencies = {
5135
5168
  ...s.dependencies,
5136
- ...r.reduce((e, a) => {
5137
- const c = `@arcgis/${a}-components${n ? `-${o.toLowerCase()}` : ""}`;
5169
+ ...r.reduce((a, c) => {
5170
+ const C = `@arcgis/${c}-components${l ? `-${o.toLowerCase()}` : ""}`;
5138
5171
  return {
5139
- ...e,
5140
- [c]: i
5141
- // use the same version as map-components
5172
+ ...a,
5173
+ [C]: e
5174
+ // use the same version as existing component package
5142
5175
  };
5143
5176
  }, {})
5144
5177
  };
5145
5178
  }
5146
- const qn = (s) => {
5179
+ const Kn = (s) => {
5147
5180
  const r = {};
5148
5181
  return Object.keys(s).forEach((o) => {
5149
5182
  const l = o;
@@ -5152,6 +5185,13 @@ const qn = (s) => {
5152
5185
  case "name":
5153
5186
  r.name = s.name;
5154
5187
  break;
5188
+ case "domain": {
5189
+ const n = s.domain?.toUpperCase().replace(/-/gu, "_") ?? "";
5190
+ if (!Object.keys(Ue).includes(n))
5191
+ throw new Error(`Invalid domain: ${s.domain}`);
5192
+ r.domain = Ue[n];
5193
+ break;
5194
+ }
5155
5195
  case "template": {
5156
5196
  const n = s.template?.toUpperCase().replace(/-/gu, "_") ?? "";
5157
5197
  if (!Object.keys(me).includes(n))
@@ -5162,9 +5202,9 @@ const qn = (s) => {
5162
5202
  case "packages": {
5163
5203
  const n = s.packages?.replace(/\s/gu, "").split(",") ?? [];
5164
5204
  r.packages = n?.reduce((i, e) => {
5165
- if (!(e.toUpperCase() in Ue))
5205
+ if (!(e.toUpperCase() in je))
5166
5206
  throw new Error(`Invalid package: ${e}`);
5167
- return i.push(Ue[e.toUpperCase()]), i;
5207
+ return i.push(je[e.toUpperCase()]), i;
5168
5208
  }, []);
5169
5209
  break;
5170
5210
  }
@@ -5179,12 +5219,12 @@ const qn = (s) => {
5179
5219
  }
5180
5220
  }), r;
5181
5221
  };
5182
- async function zn(s) {
5222
+ async function Jn(s) {
5183
5223
  await fe.stat(s) && await fe.rm(s, { recursive: !0 });
5184
5224
  }
5185
- async function Yn(s, r) {
5186
- const o = Vi[s];
5187
- let l = ji;
5225
+ async function Zn(s, r) {
5226
+ const o = qi[s];
5227
+ let l = Wi;
5188
5228
  r.host && (l = r.host);
5189
5229
  const n = `git@${l}:${o}.git`;
5190
5230
  try {
@@ -5195,13 +5235,13 @@ async function Yn(s, r) {
5195
5235
  return !0;
5196
5236
  }
5197
5237
  function ir(s, r) {
5198
- const o = Vi[s];
5199
- let l = ji;
5238
+ const o = qi[s];
5239
+ let l = Wi;
5200
5240
  r.host && (l = r.host);
5201
5241
  const n = r.ssh ? "git@" : "https://", i = r.accessToken ? `${r.accessToken}@` : "", e = r.ssh ? ":" : "/";
5202
5242
  return `${n}${i}${l}${e}${o}`;
5203
5243
  }
5204
- function Xn(s, r) {
5244
+ function Qn(s, r) {
5205
5245
  ["dependencies", "devDependencies", "peerDependencies"].forEach((l) => {
5206
5246
  if (r[l]) {
5207
5247
  const n = r[l];
@@ -5211,10 +5251,16 @@ function Xn(s, r) {
5211
5251
  }
5212
5252
  });
5213
5253
  }
5214
- var Ct, pi;
5215
- function Kn() {
5216
- if (pi) return Ct;
5217
- pi = 1;
5254
+ function es(s, r) {
5255
+ const l = Gr[s]?.[r];
5256
+ if (!l)
5257
+ throw new Error(`Template "${r}" is not available for domain "${s}"`);
5258
+ return l;
5259
+ }
5260
+ var Et, di;
5261
+ function ts() {
5262
+ if (di) return Et;
5263
+ di = 1;
5218
5264
  const s = "\x1B", r = `${s}[`, o = "\x07", l = {
5219
5265
  to(e, a) {
5220
5266
  return a ? `${r}${a + 1};${e + 1}H` : `${r}${e + 1}G`;
@@ -5251,12 +5297,12 @@ function Kn() {
5251
5297
  return e && (a += l.left), a;
5252
5298
  }
5253
5299
  };
5254
- return Ct = { cursor: l, scroll: n, erase: i, beep: o }, Ct;
5300
+ return Et = { cursor: l, scroll: n, erase: i, beep: o }, Et;
5255
5301
  }
5256
- var X = Kn(), Te = { exports: {} }, di;
5257
- function Jn() {
5258
- if (di) return Te.exports;
5259
- di = 1;
5302
+ var X = ts(), Te = { exports: {} }, mi;
5303
+ function is() {
5304
+ if (mi) return Te.exports;
5305
+ mi = 1;
5260
5306
  let s = process || {}, r = s.argv || [], o = s.env || {}, l = !(o.NO_COLOR || r.includes("--no-color")) && (!!o.FORCE_COLOR || r.includes("--color") || s.platform === "win32" || (s.stdout || {}).isTTY && o.TERM !== "dumb" || !!o.CI), n = (a, c, C = a) => (m) => {
5261
5307
  let v = "" + m, w = v.indexOf(c, a.length);
5262
5308
  return ~w ? a + i(v, c, C, w) + c : a + v + c;
@@ -5315,16 +5361,16 @@ function Jn() {
5315
5361
  };
5316
5362
  return Te.exports = e(), Te.exports.createColors = e, Te.exports;
5317
5363
  }
5318
- var Zn = /* @__PURE__ */ Jn();
5319
- const L = /* @__PURE__ */ qe(Zn);
5320
- function Qn({ onlyFirst: s = !1 } = {}) {
5364
+ var rs = /* @__PURE__ */ is();
5365
+ const L = /* @__PURE__ */ ze(rs);
5366
+ function ns({ onlyFirst: s = !1 } = {}) {
5321
5367
  const r = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
5322
5368
  return new RegExp(r, s ? void 0 : "g");
5323
5369
  }
5324
- const es = Qn();
5370
+ const ss = ns();
5325
5371
  function rr(s) {
5326
5372
  if (typeof s != "string") throw new TypeError(`Expected a \`string\`, got \`${typeof s}\``);
5327
- return s.replace(es, "");
5373
+ return s.replace(ss, "");
5328
5374
  }
5329
5375
  function nr(s) {
5330
5376
  return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
@@ -5356,21 +5402,21 @@ var sr = { exports: {} };
5356
5402
  return e;
5357
5403
  };
5358
5404
  })(sr);
5359
- var ts = sr.exports;
5360
- const is = nr(ts);
5361
- var rs = function() {
5405
+ var us = sr.exports;
5406
+ const os = nr(us);
5407
+ var as = function() {
5362
5408
  return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
5363
5409
  };
5364
- const ns = nr(rs);
5410
+ const ls = nr(as);
5365
5411
  function ye(s, r = {}) {
5366
5412
  if (typeof s != "string" || s.length === 0 || (r = { ambiguousIsNarrow: !0, ...r }, s = rr(s), s.length === 0)) return 0;
5367
- s = s.replace(ns(), " ");
5413
+ s = s.replace(ls(), " ");
5368
5414
  const o = r.ambiguousIsNarrow ? 1 : 2;
5369
5415
  let l = 0;
5370
5416
  for (const n of s) {
5371
5417
  const i = n.codePointAt(0);
5372
5418
  if (!(i <= 31 || i >= 127 && i <= 159 || i >= 768 && i <= 879))
5373
- switch (is.eastAsianWidth(n)) {
5419
+ switch (os.eastAsianWidth(n)) {
5374
5420
  case "F":
5375
5421
  case "W":
5376
5422
  l += 2;
@@ -5384,17 +5430,17 @@ function ye(s, r = {}) {
5384
5430
  }
5385
5431
  return l;
5386
5432
  }
5387
- const Et = 10, mi = (s = 0) => (r) => `\x1B[${r + s}m`, gi = (s = 0) => (r) => `\x1B[${38 + s};5;${r}m`, Ci = (s = 0) => (r, o, l) => `\x1B[${38 + s};2;${r};${o};${l}m`, H = { modifier: { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], overline: [53, 55], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29] }, color: { black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], blackBright: [90, 39], gray: [90, 39], grey: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39] }, bgColor: { bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], bgBlackBright: [100, 49], bgGray: [100, 49], bgGrey: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49] } };
5433
+ const Ft = 10, gi = (s = 0) => (r) => `\x1B[${r + s}m`, Ci = (s = 0) => (r) => `\x1B[${38 + s};5;${r}m`, Ei = (s = 0) => (r, o, l) => `\x1B[${38 + s};2;${r};${o};${l}m`, H = { modifier: { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], overline: [53, 55], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29] }, color: { black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], blackBright: [90, 39], gray: [90, 39], grey: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39] }, bgColor: { bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], bgBlackBright: [100, 49], bgGray: [100, 49], bgGrey: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49] } };
5388
5434
  Object.keys(H.modifier);
5389
- const ss = Object.keys(H.color), us = Object.keys(H.bgColor);
5390
- [...ss, ...us];
5391
- function os() {
5435
+ const cs = Object.keys(H.color), hs = Object.keys(H.bgColor);
5436
+ [...cs, ...hs];
5437
+ function Ds() {
5392
5438
  const s = /* @__PURE__ */ new Map();
5393
5439
  for (const [r, o] of Object.entries(H)) {
5394
5440
  for (const [l, n] of Object.entries(o)) H[l] = { open: `\x1B[${n[0]}m`, close: `\x1B[${n[1]}m` }, o[l] = H[l], s.set(n[0], n[1]);
5395
5441
  Object.defineProperty(H, r, { value: o, enumerable: !1 });
5396
5442
  }
5397
- return Object.defineProperty(H, "codes", { value: s, enumerable: !1 }), H.color.close = "\x1B[39m", H.bgColor.close = "\x1B[49m", H.color.ansi = mi(), H.color.ansi256 = gi(), H.color.ansi16m = Ci(), H.bgColor.ansi = mi(Et), H.bgColor.ansi256 = gi(Et), H.bgColor.ansi16m = Ci(Et), Object.defineProperties(H, { rgbToAnsi256: { value: (r, o, l) => r === o && o === l ? r < 8 ? 16 : r > 248 ? 231 : Math.round((r - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(o / 255 * 5) + Math.round(l / 255 * 5), enumerable: !1 }, hexToRgb: { value: (r) => {
5443
+ return Object.defineProperty(H, "codes", { value: s, enumerable: !1 }), H.color.close = "\x1B[39m", H.bgColor.close = "\x1B[49m", H.color.ansi = gi(), H.color.ansi256 = Ci(), H.color.ansi16m = Ei(), H.bgColor.ansi = gi(Ft), H.bgColor.ansi256 = Ci(Ft), H.bgColor.ansi16m = Ei(Ft), Object.defineProperties(H, { rgbToAnsi256: { value: (r, o, l) => r === o && o === l ? r < 8 ? 16 : r > 248 ? 231 : Math.round((r - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(o / 255 * 5) + Math.round(l / 255 * 5), enumerable: !1 }, hexToRgb: { value: (r) => {
5398
5444
  const o = /[a-f\d]{6}|[a-f\d]{3}/i.exec(r.toString(16));
5399
5445
  if (!o) return [0, 0, 0];
5400
5446
  let [l] = o;
@@ -5417,75 +5463,75 @@ function os() {
5417
5463
  return i === 2 && (e += 60), e;
5418
5464
  }, enumerable: !1 }, rgbToAnsi: { value: (r, o, l) => H.ansi256ToAnsi(H.rgbToAnsi256(r, o, l)), enumerable: !1 }, hexToAnsi: { value: (r) => H.ansi256ToAnsi(H.hexToAnsi256(r)), enumerable: !1 } }), H;
5419
5465
  }
5420
- const as = os(), Ye = /* @__PURE__ */ new Set(["\x1B", "›"]), ls = 39, $t = "\x07", ur = "[", cs = "]", or = "m", xt = `${cs}8;;`, Ei = (s) => `${Ye.values().next().value}${ur}${s}${or}`, Fi = (s) => `${Ye.values().next().value}${xt}${s}${$t}`, hs = (s) => s.split(" ").map((r) => ye(r)), Ft = (s, r, o) => {
5466
+ const fs = Ds(), Xe = /* @__PURE__ */ new Set(["\x1B", "›"]), ps = 39, xt = "\x07", ur = "[", ds = "]", or = "m", Bt = `${ds}8;;`, Fi = (s) => `${Xe.values().next().value}${ur}${s}${or}`, bi = (s) => `${Xe.values().next().value}${Bt}${s}${xt}`, ms = (s) => s.split(" ").map((r) => ye(r)), bt = (s, r, o) => {
5421
5467
  const l = [...r];
5422
5468
  let n = !1, i = !1, e = ye(rr(s[s.length - 1]));
5423
5469
  for (const [a, c] of l.entries()) {
5424
5470
  const C = ye(c);
5425
- if (e + C <= o ? s[s.length - 1] += c : (s.push(c), e = 0), Ye.has(c) && (n = !0, i = l.slice(a + 1).join("").startsWith(xt)), n) {
5426
- i ? c === $t && (n = !1, i = !1) : c === or && (n = !1);
5471
+ if (e + C <= o ? s[s.length - 1] += c : (s.push(c), e = 0), Xe.has(c) && (n = !0, i = l.slice(a + 1).join("").startsWith(Bt)), n) {
5472
+ i ? c === xt && (n = !1, i = !1) : c === or && (n = !1);
5427
5473
  continue;
5428
5474
  }
5429
5475
  e += C, e === o && a < l.length - 1 && (s.push(""), e = 0);
5430
5476
  }
5431
5477
  !e && s[s.length - 1].length > 0 && s.length > 1 && (s[s.length - 2] += s.pop());
5432
- }, Ds = (s) => {
5478
+ }, gs = (s) => {
5433
5479
  const r = s.split(" ");
5434
5480
  let o = r.length;
5435
5481
  for (; o > 0 && !(ye(r[o - 1]) > 0); ) o--;
5436
5482
  return o === r.length ? s : r.slice(0, o).join(" ") + r.slice(o).join("");
5437
- }, fs = (s, r, o = {}) => {
5483
+ }, Cs = (s, r, o = {}) => {
5438
5484
  if (o.trim !== !1 && s.trim() === "") return "";
5439
5485
  let l = "", n, i;
5440
- const e = hs(s);
5486
+ const e = ms(s);
5441
5487
  let a = [""];
5442
5488
  for (const [C, m] of s.split(" ").entries()) {
5443
5489
  o.trim !== !1 && (a[a.length - 1] = a[a.length - 1].trimStart());
5444
5490
  let v = ye(a[a.length - 1]);
5445
5491
  if (C !== 0 && (v >= r && (o.wordWrap === !1 || o.trim === !1) && (a.push(""), v = 0), (v > 0 || o.trim === !1) && (a[a.length - 1] += " ", v++)), o.hard && e[C] > r) {
5446
5492
  const w = r - v, D = 1 + Math.floor((e[C] - w - 1) / r);
5447
- Math.floor((e[C] - 1) / r) < D && a.push(""), Ft(a, m, r);
5493
+ Math.floor((e[C] - 1) / r) < D && a.push(""), bt(a, m, r);
5448
5494
  continue;
5449
5495
  }
5450
5496
  if (v + e[C] > r && v > 0 && e[C] > 0) {
5451
5497
  if (o.wordWrap === !1 && v < r) {
5452
- Ft(a, m, r);
5498
+ bt(a, m, r);
5453
5499
  continue;
5454
5500
  }
5455
5501
  a.push("");
5456
5502
  }
5457
5503
  if (v + e[C] > r && o.wordWrap === !1) {
5458
- Ft(a, m, r);
5504
+ bt(a, m, r);
5459
5505
  continue;
5460
5506
  }
5461
5507
  a[a.length - 1] += m;
5462
5508
  }
5463
- o.trim !== !1 && (a = a.map((C) => Ds(C)));
5509
+ o.trim !== !1 && (a = a.map((C) => gs(C)));
5464
5510
  const c = [...a.join(`
5465
5511
  `)];
5466
5512
  for (const [C, m] of c.entries()) {
5467
- if (l += m, Ye.has(m)) {
5468
- const { groups: w } = new RegExp(`(?:\\${ur}(?<code>\\d+)m|\\${xt}(?<uri>.*)${$t})`).exec(c.slice(C).join("")) || { groups: {} };
5513
+ if (l += m, Xe.has(m)) {
5514
+ const { groups: w } = new RegExp(`(?:\\${ur}(?<code>\\d+)m|\\${Bt}(?<uri>.*)${xt})`).exec(c.slice(C).join("")) || { groups: {} };
5469
5515
  if (w.code !== void 0) {
5470
5516
  const D = Number.parseFloat(w.code);
5471
- n = D === ls ? void 0 : D;
5517
+ n = D === ps ? void 0 : D;
5472
5518
  } else w.uri !== void 0 && (i = w.uri.length === 0 ? void 0 : w.uri);
5473
5519
  }
5474
- const v = as.codes.get(Number(n));
5520
+ const v = fs.codes.get(Number(n));
5475
5521
  c[C + 1] === `
5476
- ` ? (i && (l += Fi("")), n && v && (l += Ei(v))) : m === `
5477
- ` && (n && v && (l += Ei(n)), i && (l += Fi(i)));
5522
+ ` ? (i && (l += bi("")), n && v && (l += Fi(v))) : m === `
5523
+ ` && (n && v && (l += Fi(n)), i && (l += bi(i)));
5478
5524
  }
5479
5525
  return l;
5480
5526
  };
5481
- function bi(s, r, o) {
5527
+ function Ai(s, r, o) {
5482
5528
  return String(s).normalize().replace(/\r\n/g, `
5483
5529
  `).split(`
5484
- `).map((l) => fs(l, r, o)).join(`
5530
+ `).map((l) => Cs(l, r, o)).join(`
5485
5531
  `);
5486
5532
  }
5487
- var ps = Object.defineProperty, ds = (s, r, o) => r in s ? ps(s, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[r] = o, ne = (s, r, o) => (ds(s, typeof r != "symbol" ? r + "" : r, o), o);
5488
- function ms(s, r) {
5533
+ var Es = Object.defineProperty, Fs = (s, r, o) => r in s ? Es(s, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[r] = o, ne = (s, r, o) => (Fs(s, typeof r != "symbol" ? r + "" : r, o), o);
5534
+ function bs(s, r) {
5489
5535
  if (s === r) return;
5490
5536
  const o = s.split(`
5491
5537
  `), l = r.split(`
@@ -5494,22 +5540,22 @@ function ms(s, r) {
5494
5540
  return n;
5495
5541
  }
5496
5542
  const ar = Symbol("clack:cancel");
5497
- function je(s) {
5543
+ function We(s) {
5498
5544
  return s === ar;
5499
5545
  }
5500
5546
  function Me(s, r) {
5501
5547
  s.isTTY && s.setRawMode(r);
5502
5548
  }
5503
- const Ai = /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"]]), gs = /* @__PURE__ */ new Set(["up", "down", "left", "right", "space", "enter"]);
5549
+ const vi = /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"]]), As = /* @__PURE__ */ new Set(["up", "down", "left", "right", "space", "enter"]);
5504
5550
  let Le = class {
5505
- constructor({ render: r, input: o = Ti, output: l = Mi, ...n }, i = !0) {
5551
+ constructor({ render: r, input: o = Mi, output: l = ki, ...n }, i = !0) {
5506
5552
  ne(this, "input"), ne(this, "output"), ne(this, "rl"), ne(this, "opts"), ne(this, "_track", !1), ne(this, "_render"), ne(this, "_cursor", 0), ne(this, "state", "initial"), ne(this, "value"), ne(this, "error", ""), ne(this, "subscribers", /* @__PURE__ */ new Map()), ne(this, "_prevFrame", ""), this.opts = n, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = r.bind(this), this._track = i, this.input = o, this.output = l;
5507
5553
  }
5508
5554
  prompt() {
5509
- const r = new _r(0);
5555
+ const r = new $r(0);
5510
5556
  return r._write = (o, l, n) => {
5511
5557
  this._track && (this.value = this.rl.line.replace(/\t/g, ""), this._cursor = this.rl.cursor, this.emit("value", this.value)), n();
5512
- }, this.input.pipe(r), this.rl = Nt.createInterface({ input: this.input, output: r, tabSize: 2, prompt: "", escapeCodeTimeout: 50 }), Nt.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== void 0 && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), Me(this.input, !0), this.output.on("resize", this.render), this.render(), new Promise((o, l) => {
5558
+ }, this.input.pipe(r), this.rl = It.createInterface({ input: this.input, output: r, tabSize: 2, prompt: "", escapeCodeTimeout: 50 }), It.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== void 0 && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), Me(this.input, !0), this.output.on("resize", this.render), this.render(), new Promise((o, l) => {
5513
5559
  this.once("submit", () => {
5514
5560
  this.output.write(X.cursor.show), this.output.off("resize", this.render), Me(this.input, !1), o(this.value);
5515
5561
  }), this.once("cancel", () => {
@@ -5534,7 +5580,7 @@ let Le = class {
5534
5580
  this.subscribers.clear();
5535
5581
  }
5536
5582
  onKeypress(r, o) {
5537
- if (this.state === "error" && (this.state = "active"), o?.name && !this._track && Ai.has(o.name) && this.emit("cursor", Ai.get(o.name)), o?.name && gs.has(o.name) && this.emit("cursor", o.name), r && (r.toLowerCase() === "y" || r.toLowerCase() === "n") && this.emit("confirm", r.toLowerCase() === "y"), r === " " && this.opts.placeholder && (this.value || (this.rl.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), r && this.emit("key", r.toLowerCase()), o?.name === "return") {
5583
+ if (this.state === "error" && (this.state = "active"), o?.name && !this._track && vi.has(o.name) && this.emit("cursor", vi.get(o.name)), o?.name && As.has(o.name) && this.emit("cursor", o.name), r && (r.toLowerCase() === "y" || r.toLowerCase() === "n") && this.emit("confirm", r.toLowerCase() === "y"), r === " " && this.opts.placeholder && (this.value || (this.rl.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), r && this.emit("key", r.toLowerCase()), o?.name === "return") {
5538
5584
  if (this.opts.validate) {
5539
5585
  const l = this.opts.validate(this.value);
5540
5586
  l && (this.error = l, this.state = "error", this.rl.write(this.value));
@@ -5548,16 +5594,16 @@ let Le = class {
5548
5594
  `), Me(this.input, !1), this.rl.close(), this.emit(`${this.state}`, this.value), this.unsubscribe();
5549
5595
  }
5550
5596
  restoreCursor() {
5551
- const r = bi(this._prevFrame, process.stdout.columns, { hard: !0 }).split(`
5597
+ const r = Ai(this._prevFrame, process.stdout.columns, { hard: !0 }).split(`
5552
5598
  `).length - 1;
5553
5599
  this.output.write(X.cursor.move(-999, r * -1));
5554
5600
  }
5555
5601
  render() {
5556
- const r = bi(this._render(this) ?? "", process.stdout.columns, { hard: !0 });
5602
+ const r = Ai(this._render(this) ?? "", process.stdout.columns, { hard: !0 });
5557
5603
  if (r !== this._prevFrame) {
5558
5604
  if (this.state === "initial") this.output.write(X.cursor.hide);
5559
5605
  else {
5560
- const o = ms(this._prevFrame, r);
5606
+ const o = bs(this._prevFrame, r);
5561
5607
  if (this.restoreCursor(), o && o?.length === 1) {
5562
5608
  const l = o[0];
5563
5609
  this.output.write(X.cursor.move(0, l)), this.output.write(X.erase.lines(1));
@@ -5580,7 +5626,7 @@ let Le = class {
5580
5626
  }
5581
5627
  }
5582
5628
  };
5583
- class Cs extends Le {
5629
+ class vs extends Le {
5584
5630
  get cursor() {
5585
5631
  return this.value ? 0 : 1;
5586
5632
  }
@@ -5597,10 +5643,10 @@ class Cs extends Le {
5597
5643
  });
5598
5644
  }
5599
5645
  }
5600
- var Es = Object.defineProperty, Fs = (s, r, o) => r in s ? Es(s, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[r] = o, vi = (s, r, o) => (Fs(s, typeof r != "symbol" ? r + "" : r, o), o);
5601
- let bs = class extends Le {
5646
+ var ys = Object.defineProperty, ws = (s, r, o) => r in s ? ys(s, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[r] = o, yi = (s, r, o) => (ws(s, typeof r != "symbol" ? r + "" : r, o), o);
5647
+ let Ls = class extends Le {
5602
5648
  constructor(s) {
5603
- super(s, !1), vi(this, "options"), vi(this, "cursor", 0), this.options = s.options, this.value = [...s.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: r }) => r === s.cursorAt), 0), this.on("key", (r) => {
5649
+ super(s, !1), yi(this, "options"), yi(this, "cursor", 0), this.options = s.options, this.value = [...s.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: r }) => r === s.cursorAt), 0), this.on("key", (r) => {
5604
5650
  r === "a" && this.toggleAll();
5605
5651
  }), this.on("cursor", (r) => {
5606
5652
  switch (r) {
@@ -5630,10 +5676,10 @@ let bs = class extends Le {
5630
5676
  this.value = s ? this.value.filter((r) => r !== this._value) : [...this.value, this._value];
5631
5677
  }
5632
5678
  };
5633
- var As = Object.defineProperty, vs = (s, r, o) => r in s ? As(s, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[r] = o, yi = (s, r, o) => (vs(s, typeof r != "symbol" ? r + "" : r, o), o);
5634
- class ys extends Le {
5679
+ var Os = Object.defineProperty, Ss = (s, r, o) => r in s ? Os(s, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[r] = o, wi = (s, r, o) => (Ss(s, typeof r != "symbol" ? r + "" : r, o), o);
5680
+ class _s extends Le {
5635
5681
  constructor({ mask: r, ...o }) {
5636
- super(o), yi(this, "valueWithCursor", ""), yi(this, "_mask", "•"), this._mask = r ?? "•", this.on("finalize", () => {
5682
+ super(o), wi(this, "valueWithCursor", ""), wi(this, "_mask", "•"), this._mask = r ?? "•", this.on("finalize", () => {
5637
5683
  this.valueWithCursor = this.masked;
5638
5684
  }), this.on("value", () => {
5639
5685
  if (this.cursor >= this.value.length) this.valueWithCursor = `${this.masked}${L.inverse(L.hidden("_"))}`;
@@ -5650,10 +5696,10 @@ class ys extends Le {
5650
5696
  return this.value.replaceAll(/./g, this._mask);
5651
5697
  }
5652
5698
  }
5653
- var ws = Object.defineProperty, Ls = (s, r, o) => r in s ? ws(s, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[r] = o, wi = (s, r, o) => (Ls(s, typeof r != "symbol" ? r + "" : r, o), o);
5654
- let Ss = class extends Le {
5699
+ var $s = Object.defineProperty, xs = (s, r, o) => r in s ? $s(s, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[r] = o, Li = (s, r, o) => (xs(s, typeof r != "symbol" ? r + "" : r, o), o);
5700
+ let Bs = class extends Le {
5655
5701
  constructor(s) {
5656
- super(s, !1), wi(this, "options"), wi(this, "cursor", 0), this.options = s.options, this.cursor = this.options.findIndex(({ value: r }) => r === s.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (r) => {
5702
+ super(s, !1), Li(this, "options"), Li(this, "cursor", 0), this.options = s.options, this.cursor = this.options.findIndex(({ value: r }) => r === s.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (r) => {
5657
5703
  switch (r) {
5658
5704
  case "left":
5659
5705
  case "up":
@@ -5674,10 +5720,10 @@ let Ss = class extends Le {
5674
5720
  this.value = this._value.value;
5675
5721
  }
5676
5722
  };
5677
- var Os = Object.defineProperty, _s = (s, r, o) => r in s ? Os(s, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[r] = o, $s = (s, r, o) => (_s(s, r + "", o), o);
5678
- class xs extends Le {
5723
+ var Ps = Object.defineProperty, Rs = (s, r, o) => r in s ? Ps(s, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[r] = o, Ns = (s, r, o) => (Rs(s, r + "", o), o);
5724
+ class Is extends Le {
5679
5725
  constructor(r) {
5680
- super(r), $s(this, "valueWithCursor", ""), this.on("finalize", () => {
5726
+ super(r), Ns(this, "valueWithCursor", ""), this.on("finalize", () => {
5681
5727
  this.value || (this.value = r.defaultValue), this.valueWithCursor = this.value;
5682
5728
  }), this.on("value", () => {
5683
5729
  if (this.cursor >= this.value.length) this.valueWithCursor = `${this.value}${L.inverse(L.hidden("_"))}`;
@@ -5691,8 +5737,8 @@ class xs extends Le {
5691
5737
  return this._cursor;
5692
5738
  }
5693
5739
  }
5694
- const Bs = globalThis.process.platform.startsWith("win");
5695
- function Ps({ input: s = Ti, output: r = Mi, overwrite: o = !0, hideCursor: l = !0 } = {}) {
5740
+ const Ts = globalThis.process.platform.startsWith("win");
5741
+ function Ms({ input: s = Mi, output: r = ki, overwrite: o = !0, hideCursor: l = !0 } = {}) {
5696
5742
  const n = _e.createInterface({ input: s, output: r, prompt: "", tabSize: 1 });
5697
5743
  _e.emitKeypressEvents(s, n), s.isTTY && s.setRawMode(!0);
5698
5744
  const i = (e, { name: a }) => {
@@ -5709,27 +5755,27 @@ function Ps({ input: s = Ti, output: r = Mi, overwrite: o = !0, hideCursor: l =
5709
5755
  });
5710
5756
  };
5711
5757
  return l && r.write(X.cursor.hide), s.once("keypress", i), () => {
5712
- s.off("keypress", i), l && r.write(X.cursor.show), s.isTTY && !Bs && s.setRawMode(!1), n.terminal = !1, n.close();
5758
+ s.off("keypress", i), l && r.write(X.cursor.show), s.isTTY && !Ts && s.setRawMode(!1), n.terminal = !1, n.close();
5713
5759
  };
5714
5760
  }
5715
- function Rs() {
5761
+ function ks() {
5716
5762
  return Z.platform !== "win32" ? Z.env.TERM !== "linux" : !!Z.env.CI || !!Z.env.WT_SESSION || !!Z.env.TERMINUS_SUBLIME || Z.env.ConEmuTask === "{cmd::Cmder}" || Z.env.TERM_PROGRAM === "Terminus-Sublime" || Z.env.TERM_PROGRAM === "vscode" || Z.env.TERM === "xterm-256color" || Z.env.TERM === "alacritty" || Z.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
5717
5763
  }
5718
- const vt = Rs(), K = (s, r) => vt ? s : r, Ns = K("◆", "*"), lr = K("■", "x"), cr = K("▲", "x"), Bt = K("◇", "o"), Is = K("┌", "T"), N = K("│", "|"), ce = K("└", "—"), yt = K("●", ">"), wt = K("○", " "), Ts = K("◻", "[•]"), Li = K("◼", "[+]"), Ms = K("◻", "[ ]"), Gs = K("▪", "•"), ks = K("●", "•"), Hs = K("◆", "*"), Us = K("▲", "!"), js = K("■", "x"), Se = (s) => {
5764
+ const yt = ks(), K = (s, r) => yt ? s : r, Gs = K("◆", "*"), lr = K("■", "x"), cr = K("▲", "x"), Pt = K("◇", "o"), Hs = K("┌", "T"), N = K("│", "|"), ce = K("└", "—"), wt = K("●", ">"), Lt = K("○", " "), Us = K("◻", "[•]"), Oi = K("◼", "[+]"), js = K("◻", "[ ]"), Ws = K("▪", "•"), Vs = K("●", "•"), qs = K("◆", "*"), zs = K("▲", "!"), Ys = K("■", "x"), Oe = (s) => {
5719
5765
  switch (s) {
5720
5766
  case "initial":
5721
5767
  case "active":
5722
- return L.cyan(Ns);
5768
+ return L.cyan(Gs);
5723
5769
  case "cancel":
5724
5770
  return L.red(lr);
5725
5771
  case "error":
5726
5772
  return L.yellow(cr);
5727
5773
  case "submit":
5728
- return L.green(Bt);
5774
+ return L.green(Pt);
5729
5775
  }
5730
- }, Ws = (s) => new xs({ validate: s.validate, placeholder: s.placeholder, defaultValue: s.defaultValue, initialValue: s.initialValue, render() {
5776
+ }, Xs = (s) => new Is({ validate: s.validate, placeholder: s.placeholder, defaultValue: s.defaultValue, initialValue: s.initialValue, render() {
5731
5777
  const r = `${L.gray(N)}
5732
- ${Se(this.state)} ${s.message}
5778
+ ${Oe(this.state)} ${s.message}
5733
5779
  `, o = s.placeholder ? L.inverse(s.placeholder[0]) + L.dim(s.placeholder.slice(1)) : L.inverse(L.hidden("_")), l = this.value ? this.valueWithCursor : o;
5734
5780
  switch (this.state) {
5735
5781
  case "error":
@@ -5747,9 +5793,9 @@ ${L.yellow(ce)} ${L.yellow(this.error)}
5747
5793
  ${L.cyan(ce)}
5748
5794
  `;
5749
5795
  }
5750
- } }).prompt(), Vs = (s) => new ys({ validate: s.validate, mask: s.mask ?? Gs, render() {
5796
+ } }).prompt(), Ks = (s) => new _s({ validate: s.validate, mask: s.mask ?? Ws, render() {
5751
5797
  const r = `${L.gray(N)}
5752
- ${Se(this.state)} ${s.message}
5798
+ ${Oe(this.state)} ${s.message}
5753
5799
  `, o = this.valueWithCursor, l = this.masked;
5754
5800
  switch (this.state) {
5755
5801
  case "error":
@@ -5767,11 +5813,11 @@ ${L.yellow(ce)} ${L.yellow(this.error)}
5767
5813
  ${L.cyan(ce)}
5768
5814
  `;
5769
5815
  }
5770
- } }).prompt(), qs = (s) => {
5816
+ } }).prompt(), Js = (s) => {
5771
5817
  const r = s.active ?? "Yes", o = s.inactive ?? "No";
5772
- return new Cs({ active: r, inactive: o, initialValue: s.initialValue ?? !0, render() {
5818
+ return new vs({ active: r, inactive: o, initialValue: s.initialValue ?? !0, render() {
5773
5819
  const l = `${L.gray(N)}
5774
- ${Se(this.state)} ${s.message}
5820
+ ${Oe(this.state)} ${s.message}
5775
5821
  `, n = this.value ? r : o;
5776
5822
  switch (this.state) {
5777
5823
  case "submit":
@@ -5780,20 +5826,20 @@ ${Se(this.state)} ${s.message}
5780
5826
  return `${l}${L.gray(N)} ${L.strikethrough(L.dim(n))}
5781
5827
  ${L.gray(N)}`;
5782
5828
  default:
5783
- return `${l}${L.cyan(N)} ${this.value ? `${L.green(yt)} ${r}` : `${L.dim(wt)} ${L.dim(r)}`} ${L.dim("/")} ${this.value ? `${L.dim(wt)} ${L.dim(o)}` : `${L.green(yt)} ${o}`}
5829
+ return `${l}${L.cyan(N)} ${this.value ? `${L.green(wt)} ${r}` : `${L.dim(Lt)} ${L.dim(r)}`} ${L.dim("/")} ${this.value ? `${L.dim(Lt)} ${L.dim(o)}` : `${L.green(wt)} ${o}`}
5784
5830
  ${L.cyan(ce)}
5785
5831
  `;
5786
5832
  }
5787
5833
  } }).prompt();
5788
- }, zs = (s) => {
5834
+ }, hr = (s) => {
5789
5835
  const r = (l, n) => {
5790
5836
  const i = l.label ?? String(l.value);
5791
- return n === "active" ? `${L.green(yt)} ${i} ${l.hint ? L.dim(`(${l.hint})`) : ""}` : n === "selected" ? `${L.dim(i)}` : n === "cancelled" ? `${L.strikethrough(L.dim(i))}` : `${L.dim(wt)} ${L.dim(i)}`;
5837
+ return n === "active" ? `${L.green(wt)} ${i} ${l.hint ? L.dim(`(${l.hint})`) : ""}` : n === "selected" ? `${L.dim(i)}` : n === "cancelled" ? `${L.strikethrough(L.dim(i))}` : `${L.dim(Lt)} ${L.dim(i)}`;
5792
5838
  };
5793
5839
  let o = 0;
5794
- return new Ss({ options: s.options, initialValue: s.initialValue, render() {
5840
+ return new Bs({ options: s.options, initialValue: s.initialValue, render() {
5795
5841
  const l = `${L.gray(N)}
5796
- ${Se(this.state)} ${s.message}
5842
+ ${Oe(this.state)} ${s.message}
5797
5843
  `;
5798
5844
  switch (this.state) {
5799
5845
  case "submit":
@@ -5812,17 +5858,17 @@ ${L.cyan(ce)}
5812
5858
  }
5813
5859
  }
5814
5860
  } }).prompt();
5815
- }, Ys = (s) => {
5861
+ }, Zs = (s) => {
5816
5862
  const r = (o, l) => {
5817
5863
  const n = o.label ?? String(o.value);
5818
- return l === "active" ? `${L.cyan(Ts)} ${n} ${o.hint ? L.dim(`(${o.hint})`) : ""}` : l === "selected" ? `${L.green(Li)} ${L.dim(n)}` : l === "cancelled" ? `${L.strikethrough(L.dim(n))}` : l === "active-selected" ? `${L.green(Li)} ${n} ${o.hint ? L.dim(`(${o.hint})`) : ""}` : l === "submitted" ? `${L.dim(n)}` : `${L.dim(Ms)} ${L.dim(n)}`;
5864
+ return l === "active" ? `${L.cyan(Us)} ${n} ${o.hint ? L.dim(`(${o.hint})`) : ""}` : l === "selected" ? `${L.green(Oi)} ${L.dim(n)}` : l === "cancelled" ? `${L.strikethrough(L.dim(n))}` : l === "active-selected" ? `${L.green(Oi)} ${n} ${o.hint ? L.dim(`(${o.hint})`) : ""}` : l === "submitted" ? `${L.dim(n)}` : `${L.dim(js)} ${L.dim(n)}`;
5819
5865
  };
5820
- return new bs({ options: s.options, initialValues: s.initialValues, required: s.required ?? !0, cursorAt: s.cursorAt, validate(o) {
5866
+ return new Ls({ options: s.options, initialValues: s.initialValues, required: s.required ?? !0, cursorAt: s.cursorAt, validate(o) {
5821
5867
  if (this.required && o.length === 0) return `Please select at least one option.
5822
5868
  ${L.reset(L.dim(`Press ${L.gray(L.bgWhite(L.inverse(" space ")))} to select, ${L.gray(L.bgWhite(L.inverse(" enter ")))} to submit`))}`;
5823
5869
  }, render() {
5824
5870
  let o = `${L.gray(N)}
5825
- ${Se(this.state)} ${s.message}
5871
+ ${Oe(this.state)} ${s.message}
5826
5872
  `;
5827
5873
  switch (this.state) {
5828
5874
  case "submit":
@@ -5854,12 +5900,12 @@ ${L.cyan(ce)}
5854
5900
  `;
5855
5901
  }
5856
5902
  } }).prompt();
5857
- }, Ge = (s = "") => {
5903
+ }, ke = (s = "") => {
5858
5904
  process.stdout.write(`${L.gray(ce)} ${L.red(s)}
5859
5905
 
5860
5906
  `);
5861
- }, Xs = (s = "") => {
5862
- process.stdout.write(`${L.gray(Is)} ${s}
5907
+ }, Qs = (s = "") => {
5908
+ process.stdout.write(`${L.gray(Hs)} ${s}
5863
5909
  `);
5864
5910
  }, ve = (s = "") => {
5865
5911
  process.stdout.write(`${L.gray(N)}
@@ -5877,22 +5923,22 @@ ${L.gray(ce)} ${s}
5877
5923
  `)}
5878
5924
  `);
5879
5925
  }, info: (s) => {
5880
- de.message(s, { symbol: L.blue(ks) });
5926
+ de.message(s, { symbol: L.blue(Vs) });
5881
5927
  }, success: (s) => {
5882
- de.message(s, { symbol: L.green(Hs) });
5928
+ de.message(s, { symbol: L.green(qs) });
5883
5929
  }, step: (s) => {
5884
- de.message(s, { symbol: L.green(Bt) });
5930
+ de.message(s, { symbol: L.green(Pt) });
5885
5931
  }, warn: (s) => {
5886
- de.message(s, { symbol: L.yellow(Us) });
5932
+ de.message(s, { symbol: L.yellow(zs) });
5887
5933
  }, warning: (s) => {
5888
5934
  de.warn(s);
5889
5935
  }, error: (s) => {
5890
- de.message(s, { symbol: L.red(js) });
5891
- } }, Ks = () => {
5892
- const s = vt ? ["◒", "◐", "◓", "◑"] : ["•", "o", "O", "0"], r = vt ? 80 : 120;
5936
+ de.message(s, { symbol: L.red(Ys) });
5937
+ } }, eu = () => {
5938
+ const s = yt ? ["◒", "◐", "◓", "◑"] : ["•", "o", "O", "0"], r = yt ? 80 : 120;
5893
5939
  let o, l, n = !1, i = "";
5894
5940
  const e = (m = "") => {
5895
- n = !0, o = Ps(), i = m.replace(/\.+$/, ""), process.stdout.write(`${L.gray(N)}
5941
+ n = !0, o = Ms(), i = m.replace(/\.+$/, ""), process.stdout.write(`${L.gray(N)}
5896
5942
  `);
5897
5943
  let v = 0, w = 0;
5898
5944
  l = setInterval(() => {
@@ -5901,7 +5947,7 @@ ${L.gray(ce)} ${s}
5901
5947
  }, r);
5902
5948
  }, a = (m = "", v = 0) => {
5903
5949
  i = m ?? i, n = !1, clearInterval(l);
5904
- const w = v === 0 ? L.green(Bt) : v === 1 ? L.red(lr) : L.red(cr);
5950
+ const w = v === 0 ? L.green(Pt) : v === 1 ? L.red(lr) : L.red(cr);
5905
5951
  process.stdout.write(X.cursor.move(-999, 0)), process.stdout.write(X.erase.down(1)), process.stdout.write(`${w} ${i}
5906
5952
  `), o();
5907
5953
  }, c = (m = "") => {
@@ -5911,20 +5957,20 @@ ${L.gray(ce)} ${s}
5911
5957
  n && a(v, m);
5912
5958
  };
5913
5959
  return process.on("uncaughtExceptionMonitor", () => C(2)), process.on("unhandledRejection", () => C(2)), process.on("SIGINT", () => C(1)), process.on("SIGTERM", () => C(1)), process.on("exit", C), { start: e, stop: a, message: c };
5914
- }, Js = async (s, r) => {
5960
+ }, tu = async (s, r) => {
5915
5961
  const o = {}, l = Object.keys(s);
5916
5962
  for (const n of l) {
5917
5963
  const i = s[n], e = await i({ results: o })?.catch((a) => {
5918
5964
  throw a;
5919
5965
  });
5920
- if (typeof r?.onCancel == "function" && je(e)) {
5966
+ if (typeof r?.onCancel == "function" && We(e)) {
5921
5967
  o[n] = "canceled", r.onCancel({ results: o });
5922
5968
  continue;
5923
5969
  }
5924
5970
  o[n] = e;
5925
5971
  }
5926
5972
  return o;
5927
- }, bt = 10, Si = (s = 0) => (r) => `\x1B[${r + s}m`, Oi = (s = 0) => (r) => `\x1B[${38 + s};5;${r}m`, _i = (s = 0) => (r, o, l) => `\x1B[${38 + s};2;${r};${o};${l}m`, U = {
5973
+ }, At = 10, Si = (s = 0) => (r) => `\x1B[${r + s}m`, _i = (s = 0) => (r) => `\x1B[${38 + s};5;${r}m`, $i = (s = 0) => (r, o, l) => `\x1B[${38 + s};2;${r};${o};${l}m`, U = {
5928
5974
  modifier: {
5929
5975
  reset: [0, 0],
5930
5976
  // 21 isn't widely supported and 22 does the same thing
@@ -5985,9 +6031,9 @@ ${L.gray(ce)} ${s}
5985
6031
  }
5986
6032
  };
5987
6033
  Object.keys(U.modifier);
5988
- const Zs = Object.keys(U.color), Qs = Object.keys(U.bgColor);
5989
- [...Zs, ...Qs];
5990
- function eu() {
6034
+ const iu = Object.keys(U.color), ru = Object.keys(U.bgColor);
6035
+ [...iu, ...ru];
6036
+ function nu() {
5991
6037
  const s = /* @__PURE__ */ new Map();
5992
6038
  for (const [r, o] of Object.entries(U)) {
5993
6039
  for (const [l, n] of Object.entries(o))
@@ -6003,7 +6049,7 @@ function eu() {
6003
6049
  return Object.defineProperty(U, "codes", {
6004
6050
  value: s,
6005
6051
  enumerable: !1
6006
- }), U.color.close = "\x1B[39m", U.bgColor.close = "\x1B[49m", U.color.ansi = Si(), U.color.ansi256 = Oi(), U.color.ansi16m = _i(), U.bgColor.ansi = Si(bt), U.bgColor.ansi256 = Oi(bt), U.bgColor.ansi16m = _i(bt), Object.defineProperties(U, {
6052
+ }), U.color.close = "\x1B[39m", U.bgColor.close = "\x1B[49m", U.color.ansi = Si(), U.color.ansi256 = _i(), U.color.ansi16m = $i(), U.bgColor.ansi = Si(At), U.bgColor.ansi256 = _i(At), U.bgColor.ansi16m = $i(At), Object.defineProperties(U, {
6007
6053
  rgbToAnsi256: {
6008
6054
  value(r, o, l) {
6009
6055
  return r === o && o === l ? r < 8 ? 16 : r > 248 ? 231 : Math.round((r - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(o / 255 * 5) + Math.round(l / 255 * 5);
@@ -6064,19 +6110,19 @@ function eu() {
6064
6110
  }
6065
6111
  }), U;
6066
6112
  }
6067
- const le = eu();
6113
+ const le = nu();
6068
6114
  function se(s, r = globalThis.Deno ? globalThis.Deno.args : Z.argv) {
6069
6115
  const o = s.startsWith("-") ? "" : s.length === 1 ? "-" : "--", l = r.indexOf(o + s), n = r.indexOf("--");
6070
6116
  return l !== -1 && (n === -1 || l < n);
6071
6117
  }
6072
6118
  const { env: W } = Z;
6073
- let We;
6074
- se("no-color") || se("no-colors") || se("color=false") || se("color=never") ? We = 0 : (se("color") || se("colors") || se("color=true") || se("color=always")) && (We = 1);
6075
- function tu() {
6119
+ let Ve;
6120
+ se("no-color") || se("no-colors") || se("color=false") || se("color=never") ? Ve = 0 : (se("color") || se("colors") || se("color=true") || se("color=always")) && (Ve = 1);
6121
+ function su() {
6076
6122
  if ("FORCE_COLOR" in W)
6077
6123
  return W.FORCE_COLOR === "true" ? 1 : W.FORCE_COLOR === "false" ? 0 : W.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(W.FORCE_COLOR, 10), 3);
6078
6124
  }
6079
- function iu(s) {
6125
+ function uu(s) {
6080
6126
  return s === 0 ? !1 : {
6081
6127
  level: s,
6082
6128
  hasBasic: !0,
@@ -6084,10 +6130,10 @@ function iu(s) {
6084
6130
  has16m: s >= 3
6085
6131
  };
6086
6132
  }
6087
- function ru(s, { streamIsTTY: r, sniffFlags: o = !0 } = {}) {
6088
- const l = tu();
6089
- l !== void 0 && (We = l);
6090
- const n = o ? We : l;
6133
+ function ou(s, { streamIsTTY: r, sniffFlags: o = !0 } = {}) {
6134
+ const l = su();
6135
+ l !== void 0 && (Ve = l);
6136
+ const n = o ? Ve : l;
6091
6137
  if (n === 0)
6092
6138
  return 0;
6093
6139
  if (o) {
@@ -6104,7 +6150,7 @@ function ru(s, { streamIsTTY: r, sniffFlags: o = !0 } = {}) {
6104
6150
  if (W.TERM === "dumb")
6105
6151
  return i;
6106
6152
  if (Z.platform === "win32") {
6107
- const e = $r.release().split(".");
6153
+ const e = xr.release().split(".");
6108
6154
  return Number(e[0]) >= 10 && Number(e[2]) >= 10586 ? Number(e[2]) >= 14931 ? 3 : 2 : 1;
6109
6155
  }
6110
6156
  if ("CI" in W)
@@ -6124,18 +6170,18 @@ function ru(s, { streamIsTTY: r, sniffFlags: o = !0 } = {}) {
6124
6170
  }
6125
6171
  return /-256(color)?$/i.test(W.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(W.TERM) || "COLORTERM" in W ? 1 : i;
6126
6172
  }
6127
- function $i(s, r = {}) {
6128
- const o = ru(s, {
6173
+ function xi(s, r = {}) {
6174
+ const o = ou(s, {
6129
6175
  streamIsTTY: s && s.isTTY,
6130
6176
  ...r
6131
6177
  });
6132
- return iu(o);
6178
+ return uu(o);
6133
6179
  }
6134
- const nu = {
6135
- stdout: $i({ isTTY: It.isatty(1) }),
6136
- stderr: $i({ isTTY: It.isatty(2) })
6180
+ const au = {
6181
+ stdout: xi({ isTTY: Tt.isatty(1) }),
6182
+ stderr: xi({ isTTY: Tt.isatty(2) })
6137
6183
  };
6138
- function su(s, r, o) {
6184
+ function lu(s, r, o) {
6139
6185
  let l = s.indexOf(r);
6140
6186
  if (l === -1)
6141
6187
  return s;
@@ -6146,7 +6192,7 @@ function su(s, r, o) {
6146
6192
  while (l !== -1);
6147
6193
  return e += s.slice(i), e;
6148
6194
  }
6149
- function uu(s, r, o, l) {
6195
+ function cu(s, r, o, l) {
6150
6196
  let n = 0, i = "";
6151
6197
  do {
6152
6198
  const e = s[l - 1] === "\r";
@@ -6157,45 +6203,45 @@ function uu(s, r, o, l) {
6157
6203
  } while (l !== -1);
6158
6204
  return i += s.slice(n), i;
6159
6205
  }
6160
- const { stdout: xi, stderr: Bi } = nu, Lt = Symbol("GENERATOR"), Ce = Symbol("STYLER"), we = Symbol("IS_EMPTY"), Pi = [
6206
+ const { stdout: Bi, stderr: Pi } = au, Ot = Symbol("GENERATOR"), Ce = Symbol("STYLER"), we = Symbol("IS_EMPTY"), Ri = [
6161
6207
  "ansi",
6162
6208
  "ansi",
6163
6209
  "ansi256",
6164
6210
  "ansi16m"
6165
- ], Ee = /* @__PURE__ */ Object.create(null), ou = (s, r = {}) => {
6211
+ ], Ee = /* @__PURE__ */ Object.create(null), hu = (s, r = {}) => {
6166
6212
  if (r.level && !(Number.isInteger(r.level) && r.level >= 0 && r.level <= 3))
6167
6213
  throw new Error("The `level` option should be an integer from 0 to 3");
6168
- const o = xi ? xi.level : 0;
6214
+ const o = Bi ? Bi.level : 0;
6169
6215
  s.level = r.level === void 0 ? o : r.level;
6170
- }, au = (s) => {
6216
+ }, Du = (s) => {
6171
6217
  const r = (...o) => o.join(" ");
6172
- return ou(r, s), Object.setPrototypeOf(r, Oe.prototype), r;
6218
+ return hu(r, s), Object.setPrototypeOf(r, Se.prototype), r;
6173
6219
  };
6174
- function Oe(s) {
6175
- return au(s);
6220
+ function Se(s) {
6221
+ return Du(s);
6176
6222
  }
6177
- Object.setPrototypeOf(Oe.prototype, Function.prototype);
6223
+ Object.setPrototypeOf(Se.prototype, Function.prototype);
6178
6224
  for (const [s, r] of Object.entries(le))
6179
6225
  Ee[s] = {
6180
6226
  get() {
6181
- const o = Ve(this, Ot(r.open, r.close, this[Ce]), this[we]);
6227
+ const o = qe(this, _t(r.open, r.close, this[Ce]), this[we]);
6182
6228
  return Object.defineProperty(this, s, { value: o }), o;
6183
6229
  }
6184
6230
  };
6185
6231
  Ee.visible = {
6186
6232
  get() {
6187
- const s = Ve(this, this[Ce], !0);
6233
+ const s = qe(this, this[Ce], !0);
6188
6234
  return Object.defineProperty(this, "visible", { value: s }), s;
6189
6235
  }
6190
6236
  };
6191
- const St = (s, r, o, ...l) => s === "rgb" ? r === "ansi16m" ? le[o].ansi16m(...l) : r === "ansi256" ? le[o].ansi256(le.rgbToAnsi256(...l)) : le[o].ansi(le.rgbToAnsi(...l)) : s === "hex" ? St("rgb", r, o, ...le.hexToRgb(...l)) : le[o][s](...l), lu = ["rgb", "hex", "ansi256"];
6192
- for (const s of lu) {
6237
+ const St = (s, r, o, ...l) => s === "rgb" ? r === "ansi16m" ? le[o].ansi16m(...l) : r === "ansi256" ? le[o].ansi256(le.rgbToAnsi256(...l)) : le[o].ansi(le.rgbToAnsi(...l)) : s === "hex" ? St("rgb", r, o, ...le.hexToRgb(...l)) : le[o][s](...l), fu = ["rgb", "hex", "ansi256"];
6238
+ for (const s of fu) {
6193
6239
  Ee[s] = {
6194
6240
  get() {
6195
6241
  const { level: o } = this;
6196
6242
  return function(...l) {
6197
- const n = Ot(St(s, Pi[o], "color", ...l), le.color.close, this[Ce]);
6198
- return Ve(this, n, this[we]);
6243
+ const n = _t(St(s, Ri[o], "color", ...l), le.color.close, this[Ce]);
6244
+ return qe(this, n, this[we]);
6199
6245
  };
6200
6246
  }
6201
6247
  };
@@ -6204,25 +6250,25 @@ for (const s of lu) {
6204
6250
  get() {
6205
6251
  const { level: o } = this;
6206
6252
  return function(...l) {
6207
- const n = Ot(St(s, Pi[o], "bgColor", ...l), le.bgColor.close, this[Ce]);
6208
- return Ve(this, n, this[we]);
6253
+ const n = _t(St(s, Ri[o], "bgColor", ...l), le.bgColor.close, this[Ce]);
6254
+ return qe(this, n, this[we]);
6209
6255
  };
6210
6256
  }
6211
6257
  };
6212
6258
  }
6213
- const cu = Object.defineProperties(() => {
6259
+ const pu = Object.defineProperties(() => {
6214
6260
  }, {
6215
6261
  ...Ee,
6216
6262
  level: {
6217
6263
  enumerable: !0,
6218
6264
  get() {
6219
- return this[Lt].level;
6265
+ return this[Ot].level;
6220
6266
  },
6221
6267
  set(s) {
6222
- this[Lt].level = s;
6268
+ this[Ot].level = s;
6223
6269
  }
6224
6270
  }
6225
- }), Ot = (s, r, o) => {
6271
+ }), _t = (s, r, o) => {
6226
6272
  let l, n;
6227
6273
  return o === void 0 ? (l = s, n = r) : (l = o.openAll + s, n = r + o.closeAll), {
6228
6274
  open: s,
@@ -6231,10 +6277,10 @@ const cu = Object.defineProperties(() => {
6231
6277
  closeAll: n,
6232
6278
  parent: o
6233
6279
  };
6234
- }, Ve = (s, r, o) => {
6235
- const l = (...n) => hu(l, n.length === 1 ? "" + n[0] : n.join(" "));
6236
- return Object.setPrototypeOf(l, cu), l[Lt] = s, l[Ce] = r, l[we] = o, l;
6237
- }, hu = (s, r) => {
6280
+ }, qe = (s, r, o) => {
6281
+ const l = (...n) => du(l, n.length === 1 ? "" + n[0] : n.join(" "));
6282
+ return Object.setPrototypeOf(l, pu), l[Ot] = s, l[Ce] = r, l[we] = o, l;
6283
+ }, du = (s, r) => {
6238
6284
  if (s.level <= 0 || !r)
6239
6285
  return s[we] ? "" : r;
6240
6286
  let o = s[Ce];
@@ -6243,20 +6289,20 @@ const cu = Object.defineProperties(() => {
6243
6289
  const { openAll: l, closeAll: n } = o;
6244
6290
  if (r.includes("\x1B"))
6245
6291
  for (; o !== void 0; )
6246
- r = su(r, o.close, o.open), o = o.parent;
6292
+ r = lu(r, o.close, o.open), o = o.parent;
6247
6293
  const i = r.indexOf(`
6248
6294
  `);
6249
- return i !== -1 && (r = uu(r, n, l, i)), l + r + n;
6295
+ return i !== -1 && (r = cu(r, n, l, i)), l + r + n;
6250
6296
  };
6251
- Object.defineProperties(Oe.prototype, Ee);
6252
- const Y = Oe();
6253
- Oe({ level: Bi ? Bi.level : 0 });
6254
- var ke = { exports: {} }, Du = ke.exports, Ri;
6255
- function fu() {
6256
- return Ri || (Ri = 1, function(s, r) {
6297
+ Object.defineProperties(Se.prototype, Ee);
6298
+ const Y = Se();
6299
+ Se({ level: Pi ? Pi.level : 0 });
6300
+ var Ge = { exports: {} }, mu = Ge.exports, Ni;
6301
+ function gu() {
6302
+ return Ni || (Ni = 1, function(s, r) {
6257
6303
  (function(o, l) {
6258
6304
  s.exports = l();
6259
- })(Du, function() {
6305
+ })(mu, function() {
6260
6306
  function o(E) {
6261
6307
  "@babel/helpers - typeof";
6262
6308
  return o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(b) {
@@ -6298,8 +6344,8 @@ function fu() {
6298
6344
  return (b.r * 299 + b.g * 587 + b.b * 114) / 1e3;
6299
6345
  },
6300
6346
  getLuminance: function() {
6301
- var b = this.toRgb(), F, O, B, $, M, G;
6302
- return F = b.r / 255, O = b.g / 255, B = b.b / 255, F <= 0.03928 ? $ = F / 12.92 : $ = Math.pow((F + 0.055) / 1.055, 2.4), O <= 0.03928 ? M = O / 12.92 : M = Math.pow((O + 0.055) / 1.055, 2.4), B <= 0.03928 ? G = B / 12.92 : G = Math.pow((B + 0.055) / 1.055, 2.4), 0.2126 * $ + 0.7152 * M + 0.0722 * G;
6347
+ var b = this.toRgb(), F, S, B, $, M, k;
6348
+ return F = b.r / 255, S = b.g / 255, B = b.b / 255, F <= 0.03928 ? $ = F / 12.92 : $ = Math.pow((F + 0.055) / 1.055, 2.4), S <= 0.03928 ? M = S / 12.92 : M = Math.pow((S + 0.055) / 1.055, 2.4), B <= 0.03928 ? k = B / 12.92 : k = Math.pow((B + 0.055) / 1.055, 2.4), 0.2126 * $ + 0.7152 * M + 0.0722 * k;
6303
6349
  },
6304
6350
  setAlpha: function(b) {
6305
6351
  return this._a = z(b), this._roundA = Math.round(100 * this._a) / 100, this;
@@ -6314,8 +6360,8 @@ function fu() {
6314
6360
  };
6315
6361
  },
6316
6362
  toHsvString: function() {
6317
- var b = m(this._r, this._g, this._b), F = Math.round(b.h * 360), O = Math.round(b.s * 100), B = Math.round(b.v * 100);
6318
- return this._a == 1 ? "hsv(" + F + ", " + O + "%, " + B + "%)" : "hsva(" + F + ", " + O + "%, " + B + "%, " + this._roundA + ")";
6363
+ var b = m(this._r, this._g, this._b), F = Math.round(b.h * 360), S = Math.round(b.s * 100), B = Math.round(b.v * 100);
6364
+ return this._a == 1 ? "hsv(" + F + ", " + S + "%, " + B + "%)" : "hsva(" + F + ", " + S + "%, " + B + "%, " + this._roundA + ")";
6319
6365
  },
6320
6366
  toHsl: function() {
6321
6367
  var b = c(this._r, this._g, this._b);
@@ -6327,8 +6373,8 @@ function fu() {
6327
6373
  };
6328
6374
  },
6329
6375
  toHslString: function() {
6330
- var b = c(this._r, this._g, this._b), F = Math.round(b.h * 360), O = Math.round(b.s * 100), B = Math.round(b.l * 100);
6331
- return this._a == 1 ? "hsl(" + F + ", " + O + "%, " + B + "%)" : "hsla(" + F + ", " + O + "%, " + B + "%, " + this._roundA + ")";
6376
+ var b = c(this._r, this._g, this._b), F = Math.round(b.h * 360), S = Math.round(b.s * 100), B = Math.round(b.l * 100);
6377
+ return this._a == 1 ? "hsl(" + F + ", " + S + "%, " + B + "%)" : "hsla(" + F + ", " + S + "%, " + B + "%, " + this._roundA + ")";
6332
6378
  },
6333
6379
  toHex: function(b) {
6334
6380
  return w(this._r, this._g, this._b, b);
@@ -6368,25 +6414,25 @@ function fu() {
6368
6414
  return this._a === 0 ? "transparent" : this._a < 1 ? !1 : q[w(this._r, this._g, this._b, !0)] || !1;
6369
6415
  },
6370
6416
  toFilter: function(b) {
6371
- var F = "#" + d(this._r, this._g, this._b, this._a), O = F, B = this._gradientType ? "GradientType = 1, " : "";
6417
+ var F = "#" + d(this._r, this._g, this._b, this._a), S = F, B = this._gradientType ? "GradientType = 1, " : "";
6372
6418
  if (b) {
6373
6419
  var $ = i(b);
6374
- O = "#" + d($._r, $._g, $._b, $._a);
6420
+ S = "#" + d($._r, $._g, $._b, $._a);
6375
6421
  }
6376
- return "progid:DXImageTransform.Microsoft.gradient(" + B + "startColorstr=" + F + ",endColorstr=" + O + ")";
6422
+ return "progid:DXImageTransform.Microsoft.gradient(" + B + "startColorstr=" + F + ",endColorstr=" + S + ")";
6377
6423
  },
6378
6424
  toString: function(b) {
6379
6425
  var F = !!b;
6380
6426
  b = b || this._format;
6381
- var O = !1, B = this._a < 1 && this._a >= 0, $ = !F && B && (b === "hex" || b === "hex6" || b === "hex3" || b === "hex4" || b === "hex8" || b === "name");
6382
- return $ ? b === "name" && this._a === 0 ? this.toName() : this.toRgbString() : (b === "rgb" && (O = this.toRgbString()), b === "prgb" && (O = this.toPercentageRgbString()), (b === "hex" || b === "hex6") && (O = this.toHexString()), b === "hex3" && (O = this.toHexString(!0)), b === "hex4" && (O = this.toHex8String(!0)), b === "hex8" && (O = this.toHex8String()), b === "name" && (O = this.toName()), b === "hsl" && (O = this.toHslString()), b === "hsv" && (O = this.toHsvString()), O || this.toHexString());
6427
+ var S = !1, B = this._a < 1 && this._a >= 0, $ = !F && B && (b === "hex" || b === "hex6" || b === "hex3" || b === "hex4" || b === "hex8" || b === "name");
6428
+ return $ ? b === "name" && this._a === 0 ? this.toName() : this.toRgbString() : (b === "rgb" && (S = this.toRgbString()), b === "prgb" && (S = this.toPercentageRgbString()), (b === "hex" || b === "hex6") && (S = this.toHexString()), b === "hex3" && (S = this.toHexString(!0)), b === "hex4" && (S = this.toHex8String(!0)), b === "hex8" && (S = this.toHex8String()), b === "name" && (S = this.toName()), b === "hsl" && (S = this.toHslString()), b === "hsv" && (S = this.toHsvString()), S || this.toHexString());
6383
6429
  },
6384
6430
  clone: function() {
6385
6431
  return i(this.toString());
6386
6432
  },
6387
6433
  _applyModification: function(b, F) {
6388
- var O = b.apply(null, [this].concat([].slice.call(F)));
6389
- return this._r = O._r, this._g = O._g, this._b = O._b, this.setAlpha(O._a), this;
6434
+ var S = b.apply(null, [this].concat([].slice.call(F)));
6435
+ return this._r = S._r, this._g = S._g, this._b = S._b, this.setAlpha(S._a), this;
6390
6436
  },
6391
6437
  lighten: function() {
6392
6438
  return this._applyModification(h, arguments);
@@ -6429,16 +6475,16 @@ function fu() {
6429
6475
  // return this._applyCombination(polyad, [number]);
6430
6476
  // },
6431
6477
  triad: function() {
6432
- return this._applyCombination(S, [3]);
6478
+ return this._applyCombination(O, [3]);
6433
6479
  },
6434
6480
  tetrad: function() {
6435
- return this._applyCombination(S, [4]);
6481
+ return this._applyCombination(O, [4]);
6436
6482
  }
6437
6483
  }, i.fromRatio = function(E, b) {
6438
6484
  if (o(E) == "object") {
6439
6485
  var F = {};
6440
- for (var O in E)
6441
- E.hasOwnProperty(O) && (O === "a" ? F[O] = E[O] : F[O] = he(E[O]));
6486
+ for (var S in E)
6487
+ E.hasOwnProperty(S) && (S === "a" ? F[S] = E[S] : F[S] = he(E[S]));
6442
6488
  E = F;
6443
6489
  }
6444
6490
  return i(E, b);
@@ -6448,10 +6494,10 @@ function fu() {
6448
6494
  r: 0,
6449
6495
  g: 0,
6450
6496
  b: 0
6451
- }, F = 1, O = null, B = null, $ = null, M = !1, G = !1;
6452
- return typeof E == "string" && (E = Er(E)), o(E) == "object" && (De(E.r) && De(E.g) && De(E.b) ? (b = a(E.r, E.g, E.b), M = !0, G = String(E.r).substr(-1) === "%" ? "prgb" : "rgb") : De(E.h) && De(E.s) && De(E.v) ? (O = he(E.s), B = he(E.v), b = v(E.h, O, B), M = !0, G = "hsv") : De(E.h) && De(E.s) && De(E.l) && (O = he(E.s), $ = he(E.l), b = C(E.h, O, $), M = !0, G = "hsl"), E.hasOwnProperty("a") && (F = E.a)), F = z(F), {
6497
+ }, F = 1, S = null, B = null, $ = null, M = !1, k = !1;
6498
+ return typeof E == "string" && (E = Fr(E)), o(E) == "object" && (De(E.r) && De(E.g) && De(E.b) ? (b = a(E.r, E.g, E.b), M = !0, k = String(E.r).substr(-1) === "%" ? "prgb" : "rgb") : De(E.h) && De(E.s) && De(E.v) ? (S = he(E.s), B = he(E.v), b = v(E.h, S, B), M = !0, k = "hsv") : De(E.h) && De(E.s) && De(E.l) && (S = he(E.s), $ = he(E.l), b = C(E.h, S, $), M = !0, k = "hsl"), E.hasOwnProperty("a") && (F = E.a)), F = z(F), {
6453
6499
  ok: M,
6454
- format: E.format || G,
6500
+ format: E.format || k,
6455
6501
  r: Math.min(255, Math.max(b.r, 0)),
6456
6502
  g: Math.min(255, Math.max(b.g, 0)),
6457
6503
  b: Math.min(255, Math.max(b.b, 0)),
@@ -6467,12 +6513,12 @@ function fu() {
6467
6513
  }
6468
6514
  function c(E, b, F) {
6469
6515
  E = T(E, 255), b = T(b, 255), F = T(F, 255);
6470
- var O = Math.max(E, b, F), B = Math.min(E, b, F), $, M, G = (O + B) / 2;
6471
- if (O == B)
6516
+ var S = Math.max(E, b, F), B = Math.min(E, b, F), $, M, k = (S + B) / 2;
6517
+ if (S == B)
6472
6518
  $ = M = 0;
6473
6519
  else {
6474
- var V = O - B;
6475
- switch (M = G > 0.5 ? V / (2 - O - B) : V / (O + B), O) {
6520
+ var V = S - B;
6521
+ switch (M = k > 0.5 ? V / (2 - S - B) : V / (S + B), S) {
6476
6522
  case E:
6477
6523
  $ = (b - F) / V + (b < F ? 6 : 0);
6478
6524
  break;
@@ -6488,34 +6534,34 @@ function fu() {
6488
6534
  return {
6489
6535
  h: $,
6490
6536
  s: M,
6491
- l: G
6537
+ l: k
6492
6538
  };
6493
6539
  }
6494
6540
  function C(E, b, F) {
6495
- var O, B, $;
6541
+ var S, B, $;
6496
6542
  E = T(E, 360), b = T(b, 100), F = T(F, 100);
6497
6543
  function M(re, be, oe) {
6498
6544
  return oe < 0 && (oe += 1), oe > 1 && (oe -= 1), oe < 1 / 6 ? re + (be - re) * 6 * oe : oe < 1 / 2 ? be : oe < 2 / 3 ? re + (be - re) * (2 / 3 - oe) * 6 : re;
6499
6545
  }
6500
6546
  if (b === 0)
6501
- O = B = $ = F;
6547
+ S = B = $ = F;
6502
6548
  else {
6503
- var G = F < 0.5 ? F * (1 + b) : F + b - F * b, V = 2 * F - G;
6504
- O = M(V, G, E + 1 / 3), B = M(V, G, E), $ = M(V, G, E - 1 / 3);
6549
+ var k = F < 0.5 ? F * (1 + b) : F + b - F * b, V = 2 * F - k;
6550
+ S = M(V, k, E + 1 / 3), B = M(V, k, E), $ = M(V, k, E - 1 / 3);
6505
6551
  }
6506
6552
  return {
6507
- r: O * 255,
6553
+ r: S * 255,
6508
6554
  g: B * 255,
6509
6555
  b: $ * 255
6510
6556
  };
6511
6557
  }
6512
6558
  function m(E, b, F) {
6513
6559
  E = T(E, 255), b = T(b, 255), F = T(F, 255);
6514
- var O = Math.max(E, b, F), B = Math.min(E, b, F), $, M, G = O, V = O - B;
6515
- if (M = O === 0 ? 0 : V / O, O == B)
6560
+ var S = Math.max(E, b, F), B = Math.min(E, b, F), $, M, k = S, V = S - B;
6561
+ if (M = S === 0 ? 0 : V / S, S == B)
6516
6562
  $ = 0;
6517
6563
  else {
6518
- switch (O) {
6564
+ switch (S) {
6519
6565
  case E:
6520
6566
  $ = (b - F) / V + (b < F ? 6 : 0);
6521
6567
  break;
@@ -6531,28 +6577,28 @@ function fu() {
6531
6577
  return {
6532
6578
  h: $,
6533
6579
  s: M,
6534
- v: G
6580
+ v: k
6535
6581
  };
6536
6582
  }
6537
6583
  function v(E, b, F) {
6538
6584
  E = T(E, 360) * 6, b = T(b, 100), F = T(F, 100);
6539
- var O = Math.floor(E), B = E - O, $ = F * (1 - b), M = F * (1 - B * b), G = F * (1 - (1 - B) * b), V = O % 6, re = [F, M, $, $, G, F][V], be = [G, F, F, M, $, $][V], oe = [$, $, G, F, F, M][V];
6585
+ var S = Math.floor(E), B = E - S, $ = F * (1 - b), M = F * (1 - B * b), k = F * (1 - (1 - B) * b), V = S % 6, re = [F, M, $, $, k, F][V], be = [k, F, F, M, $, $][V], oe = [$, $, k, F, F, M][V];
6540
6586
  return {
6541
6587
  r: re * 255,
6542
6588
  g: be * 255,
6543
6589
  b: oe * 255
6544
6590
  };
6545
6591
  }
6546
- function w(E, b, F, O) {
6592
+ function w(E, b, F, S) {
6547
6593
  var B = [J(Math.round(E).toString(16)), J(Math.round(b).toString(16)), J(Math.round(F).toString(16))];
6548
- return O && B[0].charAt(0) == B[0].charAt(1) && B[1].charAt(0) == B[1].charAt(1) && B[2].charAt(0) == B[2].charAt(1) ? B[0].charAt(0) + B[1].charAt(0) + B[2].charAt(0) : B.join("");
6594
+ return S && B[0].charAt(0) == B[0].charAt(1) && B[1].charAt(0) == B[1].charAt(1) && B[2].charAt(0) == B[2].charAt(1) ? B[0].charAt(0) + B[1].charAt(0) + B[2].charAt(0) : B.join("");
6549
6595
  }
6550
- function D(E, b, F, O, B) {
6551
- var $ = [J(Math.round(E).toString(16)), J(Math.round(b).toString(16)), J(Math.round(F).toString(16)), J(Fe(O))];
6596
+ function D(E, b, F, S, B) {
6597
+ var $ = [J(Math.round(E).toString(16)), J(Math.round(b).toString(16)), J(Math.round(F).toString(16)), J(Fe(S))];
6552
6598
  return B && $[0].charAt(0) == $[0].charAt(1) && $[1].charAt(0) == $[1].charAt(1) && $[2].charAt(0) == $[2].charAt(1) && $[3].charAt(0) == $[3].charAt(1) ? $[0].charAt(0) + $[1].charAt(0) + $[2].charAt(0) + $[3].charAt(0) : $.join("");
6553
6599
  }
6554
- function d(E, b, F, O) {
6555
- var B = [J(Fe(O)), J(Math.round(E).toString(16)), J(Math.round(b).toString(16)), J(Math.round(F).toString(16))];
6600
+ function d(E, b, F, S) {
6601
+ var B = [J(Fe(S)), J(Math.round(E).toString(16)), J(Math.round(b).toString(16)), J(Math.round(F).toString(16))];
6556
6602
  return B.join("");
6557
6603
  }
6558
6604
  i.equals = function(E, b) {
@@ -6593,23 +6639,23 @@ function fu() {
6593
6639
  return F.l -= b / 100, F.l = j(F.l), i(F);
6594
6640
  }
6595
6641
  function p(E, b) {
6596
- var F = i(E).toHsl(), O = (F.h + b) % 360;
6597
- return F.h = O < 0 ? 360 + O : O, i(F);
6642
+ var F = i(E).toHsl(), S = (F.h + b) % 360;
6643
+ return F.h = S < 0 ? 360 + S : S, i(F);
6598
6644
  }
6599
6645
  function y(E) {
6600
6646
  var b = i(E).toHsl();
6601
6647
  return b.h = (b.h + 180) % 360, i(b);
6602
6648
  }
6603
- function S(E, b) {
6649
+ function O(E, b) {
6604
6650
  if (isNaN(b) || b <= 0)
6605
6651
  throw new Error("Argument to polyad must be a positive number");
6606
- for (var F = i(E).toHsl(), O = [i(E)], B = 360 / b, $ = 1; $ < b; $++)
6607
- O.push(i({
6652
+ for (var F = i(E).toHsl(), S = [i(E)], B = 360 / b, $ = 1; $ < b; $++)
6653
+ S.push(i({
6608
6654
  h: (F.h + $ * B) % 360,
6609
6655
  s: F.s,
6610
6656
  l: F.l
6611
6657
  }));
6612
- return O;
6658
+ return S;
6613
6659
  }
6614
6660
  function _(E) {
6615
6661
  var b = i(E).toHsl(), F = b.h;
@@ -6625,57 +6671,57 @@ function fu() {
6625
6671
  }
6626
6672
  function x(E, b, F) {
6627
6673
  b = b || 6, F = F || 30;
6628
- var O = i(E).toHsl(), B = 360 / F, $ = [i(E)];
6629
- for (O.h = (O.h - (B * b >> 1) + 720) % 360; --b; )
6630
- O.h = (O.h + B) % 360, $.push(i(O));
6674
+ var S = i(E).toHsl(), B = 360 / F, $ = [i(E)];
6675
+ for (S.h = (S.h - (B * b >> 1) + 720) % 360; --b; )
6676
+ S.h = (S.h + B) % 360, $.push(i(S));
6631
6677
  return $;
6632
6678
  }
6633
6679
  function P(E, b) {
6634
6680
  b = b || 6;
6635
- for (var F = i(E).toHsv(), O = F.h, B = F.s, $ = F.v, M = [], G = 1 / b; b--; )
6681
+ for (var F = i(E).toHsv(), S = F.h, B = F.s, $ = F.v, M = [], k = 1 / b; b--; )
6636
6682
  M.push(i({
6637
- h: O,
6683
+ h: S,
6638
6684
  s: B,
6639
6685
  v: $
6640
- })), $ = ($ + G) % 1;
6686
+ })), $ = ($ + k) % 1;
6641
6687
  return M;
6642
6688
  }
6643
6689
  i.mix = function(E, b, F) {
6644
6690
  F = F === 0 ? 0 : F || 50;
6645
- var O = i(E).toRgb(), B = i(b).toRgb(), $ = F / 100, M = {
6646
- r: (B.r - O.r) * $ + O.r,
6647
- g: (B.g - O.g) * $ + O.g,
6648
- b: (B.b - O.b) * $ + O.b,
6649
- a: (B.a - O.a) * $ + O.a
6691
+ var S = i(E).toRgb(), B = i(b).toRgb(), $ = F / 100, M = {
6692
+ r: (B.r - S.r) * $ + S.r,
6693
+ g: (B.g - S.g) * $ + S.g,
6694
+ b: (B.b - S.b) * $ + S.b,
6695
+ a: (B.a - S.a) * $ + S.a
6650
6696
  };
6651
6697
  return i(M);
6652
6698
  }, i.readability = function(E, b) {
6653
- var F = i(E), O = i(b);
6654
- return (Math.max(F.getLuminance(), O.getLuminance()) + 0.05) / (Math.min(F.getLuminance(), O.getLuminance()) + 0.05);
6699
+ var F = i(E), S = i(b);
6700
+ return (Math.max(F.getLuminance(), S.getLuminance()) + 0.05) / (Math.min(F.getLuminance(), S.getLuminance()) + 0.05);
6655
6701
  }, i.isReadable = function(E, b, F) {
6656
- var O = i.readability(E, b), B, $;
6657
- switch ($ = !1, B = Fr(F), B.level + B.size) {
6702
+ var S = i.readability(E, b), B, $;
6703
+ switch ($ = !1, B = br(F), B.level + B.size) {
6658
6704
  case "AAsmall":
6659
6705
  case "AAAlarge":
6660
- $ = O >= 4.5;
6706
+ $ = S >= 4.5;
6661
6707
  break;
6662
6708
  case "AAlarge":
6663
- $ = O >= 3;
6709
+ $ = S >= 3;
6664
6710
  break;
6665
6711
  case "AAAsmall":
6666
- $ = O >= 7;
6712
+ $ = S >= 7;
6667
6713
  break;
6668
6714
  }
6669
6715
  return $;
6670
6716
  }, i.mostReadable = function(E, b, F) {
6671
- var O = null, B = 0, $, M, G, V;
6672
- F = F || {}, M = F.includeFallbackColors, G = F.level, V = F.size;
6717
+ var S = null, B = 0, $, M, k, V;
6718
+ F = F || {}, M = F.includeFallbackColors, k = F.level, V = F.size;
6673
6719
  for (var re = 0; re < b.length; re++)
6674
- $ = i.readability(E, b[re]), $ > B && (B = $, O = i(b[re]));
6675
- return i.isReadable(E, O, {
6676
- level: G,
6720
+ $ = i.readability(E, b[re]), $ > B && (B = $, S = i(b[re]));
6721
+ return i.isReadable(E, S, {
6722
+ level: k,
6677
6723
  size: V
6678
- }) || !M ? O : (F.includeFallbackColors = !1, i.mostReadable(E, ["#fff", "#000"], F));
6724
+ }) || !M ? S : (F.includeFallbackColors = !1, i.mostReadable(E, ["#fff", "#000"], F));
6679
6725
  };
6680
6726
  var R = i.names = {
6681
6727
  aliceblue: "f0f8ff",
@@ -6845,7 +6891,7 @@ function fu() {
6845
6891
  function j(E) {
6846
6892
  return Math.min(1, Math.max(0, E));
6847
6893
  }
6848
- function k(E) {
6894
+ function G(E) {
6849
6895
  return parseInt(E, 16);
6850
6896
  }
6851
6897
  function pe(E) {
@@ -6863,18 +6909,18 @@ function fu() {
6863
6909
  function Fe(E) {
6864
6910
  return Math.round(parseFloat(E) * 255).toString(16);
6865
6911
  }
6866
- function Rt(E) {
6867
- return k(E) / 255;
6912
+ function Nt(E) {
6913
+ return G(E) / 255;
6868
6914
  }
6869
6915
  var ue = function() {
6870
- var E = "[-\\+]?\\d+%?", b = "[-\\+]?\\d*\\.\\d+%?", F = "(?:" + b + ")|(?:" + E + ")", O = "[\\s|\\(]+(" + F + ")[,|\\s]+(" + F + ")[,|\\s]+(" + F + ")\\s*\\)?", B = "[\\s|\\(]+(" + F + ")[,|\\s]+(" + F + ")[,|\\s]+(" + F + ")[,|\\s]+(" + F + ")\\s*\\)?";
6916
+ var E = "[-\\+]?\\d+%?", b = "[-\\+]?\\d*\\.\\d+%?", F = "(?:" + b + ")|(?:" + E + ")", S = "[\\s|\\(]+(" + F + ")[,|\\s]+(" + F + ")[,|\\s]+(" + F + ")\\s*\\)?", B = "[\\s|\\(]+(" + F + ")[,|\\s]+(" + F + ")[,|\\s]+(" + F + ")[,|\\s]+(" + F + ")\\s*\\)?";
6871
6917
  return {
6872
6918
  CSS_UNIT: new RegExp(F),
6873
- rgb: new RegExp("rgb" + O),
6919
+ rgb: new RegExp("rgb" + S),
6874
6920
  rgba: new RegExp("rgba" + B),
6875
- hsl: new RegExp("hsl" + O),
6921
+ hsl: new RegExp("hsl" + S),
6876
6922
  hsla: new RegExp("hsla" + B),
6877
- hsv: new RegExp("hsv" + O),
6923
+ hsv: new RegExp("hsv" + S),
6878
6924
  hsva: new RegExp("hsva" + B),
6879
6925
  hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
6880
6926
  hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
@@ -6885,7 +6931,7 @@ function fu() {
6885
6931
  function De(E) {
6886
6932
  return !!ue.CSS_UNIT.exec(E);
6887
6933
  }
6888
- function Er(E) {
6934
+ function Fr(E) {
6889
6935
  E = E.replace(l, "").replace(n, "").toLowerCase();
6890
6936
  var b = !1;
6891
6937
  if (R[E])
@@ -6927,30 +6973,30 @@ function fu() {
6927
6973
  v: F[3],
6928
6974
  a: F[4]
6929
6975
  } : (F = ue.hex8.exec(E)) ? {
6930
- r: k(F[1]),
6931
- g: k(F[2]),
6932
- b: k(F[3]),
6933
- a: Rt(F[4]),
6976
+ r: G(F[1]),
6977
+ g: G(F[2]),
6978
+ b: G(F[3]),
6979
+ a: Nt(F[4]),
6934
6980
  format: b ? "name" : "hex8"
6935
6981
  } : (F = ue.hex6.exec(E)) ? {
6936
- r: k(F[1]),
6937
- g: k(F[2]),
6938
- b: k(F[3]),
6982
+ r: G(F[1]),
6983
+ g: G(F[2]),
6984
+ b: G(F[3]),
6939
6985
  format: b ? "name" : "hex"
6940
6986
  } : (F = ue.hex4.exec(E)) ? {
6941
- r: k(F[1] + "" + F[1]),
6942
- g: k(F[2] + "" + F[2]),
6943
- b: k(F[3] + "" + F[3]),
6944
- a: Rt(F[4] + "" + F[4]),
6987
+ r: G(F[1] + "" + F[1]),
6988
+ g: G(F[2] + "" + F[2]),
6989
+ b: G(F[3] + "" + F[3]),
6990
+ a: Nt(F[4] + "" + F[4]),
6945
6991
  format: b ? "name" : "hex8"
6946
6992
  } : (F = ue.hex3.exec(E)) ? {
6947
- r: k(F[1] + "" + F[1]),
6948
- g: k(F[2] + "" + F[2]),
6949
- b: k(F[3] + "" + F[3]),
6993
+ r: G(F[1] + "" + F[1]),
6994
+ g: G(F[2] + "" + F[2]),
6995
+ b: G(F[3] + "" + F[3]),
6950
6996
  format: b ? "name" : "hex"
6951
6997
  } : !1;
6952
6998
  }
6953
- function Fr(E) {
6999
+ function br(E) {
6954
7000
  var b, F;
6955
7001
  return E = E || {
6956
7002
  level: "AA",
@@ -6962,13 +7008,13 @@ function fu() {
6962
7008
  }
6963
7009
  return i;
6964
7010
  });
6965
- }(ke)), ke.exports;
7011
+ }(Ge)), Ge.exports;
6966
7012
  }
6967
- var At, Ni;
6968
- function pu() {
6969
- if (Ni) return At;
6970
- Ni = 1;
6971
- const s = fu(), r = { r: 256, g: 256, b: 256, a: 1 }, o = { h: 360, s: 1, v: 1, a: 1 };
7013
+ var vt, Ii;
7014
+ function Cu() {
7015
+ if (Ii) return vt;
7016
+ Ii = 1;
7017
+ const s = gu(), r = { r: 256, g: 256, b: 256, a: 1 }, o = { h: 360, s: 1, v: 1, a: 1 };
6972
7018
  function l(m, v, w) {
6973
7019
  let D = {};
6974
7020
  for (let d in m)
@@ -7187,7 +7233,7 @@ function pu() {
7187
7233
  return c(this.stops, v, "toHsv", o);
7188
7234
  }
7189
7235
  }
7190
- return At = function(m) {
7236
+ return vt = function(m) {
7191
7237
  if (arguments.length === 1) {
7192
7238
  if (!Array.isArray(arguments[0]))
7193
7239
  throw new Error('"stops" is not an array');
@@ -7195,33 +7241,33 @@ function pu() {
7195
7241
  } else
7196
7242
  m = Array.prototype.slice.call(arguments);
7197
7243
  return new C(m);
7198
- }, At;
7244
+ }, vt;
7199
7245
  }
7200
- var du = pu();
7201
- const Ii = /* @__PURE__ */ qe(du), Q = (...s) => {
7246
+ var Eu = Cu();
7247
+ const Ti = /* @__PURE__ */ ze(Eu), Q = (...s) => {
7202
7248
  let r, o;
7203
7249
  if (s.length === 0)
7204
7250
  throw new Error("Missing gradient colors");
7205
7251
  if (Array.isArray(s[0]))
7206
- r = Ii(s[0]), o = Pt(s[1]);
7252
+ r = Ti(s[0]), o = Rt(s[1]);
7207
7253
  else {
7208
7254
  if (s.length === 1)
7209
7255
  throw new Error(`Expected an array of colors, received ${JSON.stringify(s[0])}`);
7210
- r = Ii(...s);
7256
+ r = Ti(...s);
7211
7257
  }
7212
- const l = (n, i) => mu(n ? n.toString() : "", r, i ?? o);
7213
- return l.multiline = (n, i) => gu(n ? n.toString() : "", r, i ?? o), l;
7214
- }, hr = (s, r, o) => r.interpolation?.toLowerCase() === "hsv" ? s.hsv(o, r.hsvSpin?.toLowerCase() || !1) : s.rgb(o);
7215
- function mu(s, r, o) {
7216
- const l = Pt(o), n = Math.max(s.replace(/\s/g, "").length, r.stops.length), i = hr(r, l, n);
7258
+ const l = (n, i) => Fu(n ? n.toString() : "", r, i ?? o);
7259
+ return l.multiline = (n, i) => bu(n ? n.toString() : "", r, i ?? o), l;
7260
+ }, Dr = (s, r, o) => r.interpolation?.toLowerCase() === "hsv" ? s.hsv(o, r.hsvSpin?.toLowerCase() || !1) : s.rgb(o);
7261
+ function Fu(s, r, o) {
7262
+ const l = Rt(o), n = Math.max(s.replace(/\s/g, "").length, r.stops.length), i = Dr(r, l, n);
7217
7263
  let e = "";
7218
7264
  for (const a of s)
7219
7265
  e += a.match(/\s/g) ? a : Y.hex(i.shift()?.toHex() || "#000")(a);
7220
7266
  return e;
7221
7267
  }
7222
- function gu(s, r, o) {
7223
- const l = Pt(o), n = s.split(`
7224
- `), i = Math.max(...n.map((c) => c.length), r.stops.length), e = hr(r, l, i), a = [];
7268
+ function bu(s, r, o) {
7269
+ const l = Rt(o), n = s.split(`
7270
+ `), i = Math.max(...n.map((c) => c.length), r.stops.length), e = Dr(r, l, i), a = [];
7225
7271
  for (const c of n) {
7226
7272
  const C = e.slice(0);
7227
7273
  let m = "";
@@ -7232,7 +7278,7 @@ function gu(s, r, o) {
7232
7278
  return a.join(`
7233
7279
  `);
7234
7280
  }
7235
- function Pt(s) {
7281
+ function Rt(s) {
7236
7282
  const r = { interpolation: "rgb", hsvSpin: "short", ...s };
7237
7283
  if (s !== void 0 && typeof s != "object")
7238
7284
  throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof s}\``);
@@ -7264,53 +7310,60 @@ function ie(s) {
7264
7310
  const r = (o) => Q(...s.colors)(o, s.options);
7265
7311
  return r.multiline = (o = "") => Q(...s.colors).multiline(o, s.options), r;
7266
7312
  }
7267
- const Cu = ie(te.atlas), Eu = ie(te.cristal), Fu = ie(te.teen), bu = ie(te.mind), Au = ie(te.morning), Dr = ie(te.vice), vu = ie(te.passion), yu = ie(te.fruit), wu = ie(te.instagram), Lu = ie(te.retro), Su = ie(te.summer), Ou = ie(te.rainbow), _u = ie(te.pastel);
7268
- Q.atlas = Cu;
7269
- Q.cristal = Eu;
7270
- Q.teen = Fu;
7271
- Q.mind = bu;
7272
- Q.morning = Au;
7273
- Q.vice = Dr;
7274
- Q.passion = vu;
7275
- Q.fruit = yu;
7276
- Q.instagram = wu;
7277
- Q.retro = Lu;
7278
- Q.summer = Su;
7279
- Q.rainbow = Ou;
7280
- Q.pastel = _u;
7281
- const $u = "my-arcgis-app";
7282
- function fr() {
7283
- Xs("initialize a new arcgis project");
7313
+ const Au = ie(te.atlas), vu = ie(te.cristal), yu = ie(te.teen), wu = ie(te.mind), Lu = ie(te.morning), fr = ie(te.vice), Ou = ie(te.passion), Su = ie(te.fruit), _u = ie(te.instagram), $u = ie(te.retro), xu = ie(te.summer), Bu = ie(te.rainbow), Pu = ie(te.pastel);
7314
+ Q.atlas = Au;
7315
+ Q.cristal = vu;
7316
+ Q.teen = yu;
7317
+ Q.mind = wu;
7318
+ Q.morning = Lu;
7319
+ Q.vice = fr;
7320
+ Q.passion = Ou;
7321
+ Q.fruit = Su;
7322
+ Q.instagram = _u;
7323
+ Q.retro = $u;
7324
+ Q.summer = xu;
7325
+ Q.rainbow = Bu;
7326
+ Q.pastel = Pu;
7327
+ const Ru = "my-arcgis-app";
7328
+ function pr() {
7329
+ Qs("initialize a new arcgis project");
7330
+ }
7331
+ async function Nu() {
7332
+ const s = Object.entries(Ue).map(([, r]) => ({ value: r, label: r }));
7333
+ return await hr({
7334
+ message: "What type of sample would you like to build?",
7335
+ options: s
7336
+ });
7284
7337
  }
7285
- async function pr() {
7286
- return await Ws({
7338
+ async function dr() {
7339
+ return await Xs({
7287
7340
  message: "What is the name of your project?",
7288
7341
  initialValue: "",
7289
- placeholder: $u,
7342
+ placeholder: Ru,
7290
7343
  validate(s) {
7291
7344
  if (s.length === 0)
7292
7345
  return "Value is required!";
7293
7346
  }
7294
7347
  });
7295
7348
  }
7296
- async function xu() {
7297
- const s = Object.entries(me).filter(([, r]) => !kr[r]).map(([, r]) => ({ value: r, label: r }));
7298
- return await zs({
7349
+ async function Iu() {
7350
+ const s = Object.entries(me).filter(([, r]) => !Wr[r]).map(([, r]) => ({ value: r, label: r }));
7351
+ return await hr({
7299
7352
  message: "Which template would you like to use?",
7300
7353
  options: s
7301
7354
  });
7302
7355
  }
7303
- function dr() {
7356
+ function mr() {
7304
7357
  ve(Y.greenBright("Your new project is ready!"));
7305
7358
  }
7306
- async function Bu(s) {
7359
+ async function Tu(s) {
7307
7360
  return de.info(`
7308
7361
  This command requires a ${s} personal access token with the 'repo' scope.
7309
7362
 
7310
7363
  See https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic
7311
7364
 
7312
7365
  for step-by-step instructions.
7313
- `), await Vs({
7366
+ `), await Ks({
7314
7367
  message: `Please enter your personal access token for ${s}`,
7315
7368
  mask: "*",
7316
7369
  validate(r) {
@@ -7319,14 +7372,14 @@ async function Bu(s) {
7319
7372
  }
7320
7373
  });
7321
7374
  }
7322
- function mr(s) {
7375
+ function gr(s) {
7323
7376
  return {
7324
7377
  name: s.name,
7325
7378
  shouldCleanup: !1,
7326
7379
  async doCleanup(o) {
7327
7380
  if (console.error(Y.bgRed(o)), this.shouldCleanup && this.name)
7328
7381
  try {
7329
- await zn(this.name);
7382
+ await Jn(this.name);
7330
7383
  } catch (l) {
7331
7384
  console.error(Y.bgRed(l));
7332
7385
  }
@@ -7334,32 +7387,33 @@ function mr(s) {
7334
7387
  }
7335
7388
  };
7336
7389
  }
7337
- async function gr(s, r, o) {
7338
- const { startMsg: l, successMsg: n, failureMsg: i } = s, e = Ks();
7390
+ async function Cr(s, r, o) {
7391
+ const { startMsg: l, successMsg: n, failureMsg: i } = s, e = eu();
7339
7392
  e.start(l), await r().then(() => e.stop(n)).catch((a) => {
7340
7393
  e.stop(Y.bgRed(i), 1), o(a, e);
7341
7394
  });
7342
7395
  }
7343
- async function Pu(s) {
7344
- const r = mr(s);
7396
+ async function Mu(s) {
7397
+ const r = gr(s);
7345
7398
  try {
7346
- fr();
7347
- const o = await Js(
7399
+ pr();
7400
+ const o = await tu(
7348
7401
  {
7349
- projectName: s.name ? async () => await Promise.resolve(s.name) : pr,
7350
- projectTemplate: s.template ? async () => await Promise.resolve(s.template) : xu
7402
+ projectName: s.name ? async () => await Promise.resolve(s.name) : dr,
7403
+ projectDomain: s.domain ? async () => await Promise.resolve(s.domain) : Nu,
7404
+ projectTemplate: s.template ? async () => await Promise.resolve(s.template) : Iu
7351
7405
  },
7352
7406
  {
7353
7407
  // On Cancel callback that wraps the group
7354
7408
  // So if the user cancels one of the prompts in the group this function will be called
7355
7409
  onCancel: () => {
7356
- Ge("Operation cancelled."), process.exit(0);
7410
+ ke("Operation cancelled."), process.exit(0);
7357
7411
  }
7358
7412
  }
7359
7413
  );
7360
7414
  r.name = o.projectName;
7361
- const l = qi[o.projectTemplate], n = ir(o.projectTemplate, s);
7362
- await gr(
7415
+ const l = es(o.projectDomain, o.projectTemplate), n = ir(o.projectTemplate, s);
7416
+ await Cr(
7363
7417
  {
7364
7418
  startMsg: "Downloading project template...",
7365
7419
  successMsg: "Project template downloaded successfully",
@@ -7374,38 +7428,38 @@ async function Pu(s) {
7374
7428
  );
7375
7429
  const i = await er(o.projectName);
7376
7430
  let e;
7377
- if (s.packages ? e = !0 : e = await qs({
7431
+ if (s.packages ? e = !0 : e = await Js({
7378
7432
  message: "Would you like to add any additional components?",
7379
7433
  initialValue: !1
7380
- }), je(e) && (Ge("Operation cancelled."), process.exit(0)), e) {
7381
- const c = s.packages ? s.packages : await Ys({
7434
+ }), We(e) && (ke("Operation cancelled."), process.exit(0)), e) {
7435
+ const c = Object.entries(je).filter(([, m]) => m !== jr[o.projectDomain]).map(([, m]) => ({ value: m, label: m })), C = s.packages ? s.packages : await Zs({
7382
7436
  message: "Would you like to add any additional components? (select multiple)",
7383
- options: Object.entries(Ue).map(([, C]) => ({ value: C, label: C }))
7437
+ options: c
7384
7438
  });
7385
- je(c) && (Ge("Operation cancelled."), process.exit(0)), Vn(i, c, o.projectTemplate), await tr(o.projectName, i);
7439
+ We(C) && (ke("Operation cancelled."), process.exit(0)), Xn(i, C, o.projectTemplate), await tr(o.projectName, i);
7386
7440
  }
7387
- const a = Wn(i);
7388
- dr(), console.log(Y.magenta(`To get started, run the following commands:
7389
- `)), console.log(Y.grey(`$ cd ${o.projectName}`)), console.log(Y.grey("$ npm install")), console.log(Y.grey(`$ npm run ${a}`)), console.log(Dr(`
7441
+ const a = Yn(i);
7442
+ mr(), console.log(Y.magenta(`To get started, run the following commands:
7443
+ `)), console.log(Y.grey(`$ cd ${o.projectName}`)), console.log(Y.grey("$ npm install")), console.log(Y.grey(`$ npm run ${a}`)), console.log(fr(`
7390
7444
 
7391
7445
  Happy mapping!`));
7392
7446
  } catch (o) {
7393
7447
  await r.doCleanup(o);
7394
7448
  }
7395
7449
  }
7396
- async function Ru(s) {
7397
- const { template: r, branch: o = Wi } = s;
7450
+ async function ku(s) {
7451
+ const { template: r, branch: o = Vi } = s;
7398
7452
  r !== me.LUMINA_COMPONENTS && (ve(Y.red("Template is not a code sample")), process.exit(1)), s.host || (ve(Y.red("Host option is required for the lumina-components template")), process.exit(1));
7399
- const l = mr(s);
7453
+ const l = gr(s);
7400
7454
  try {
7401
- fr();
7402
- const n = s.name ?? await pr();
7403
- je(n) && (Ge("Operation cancelled."), process.exit(0)), l.name = n;
7404
- const i = qi[r], e = await Yn(r, s);
7455
+ pr();
7456
+ const n = s.name ?? await dr();
7457
+ We(n) && (ke("Operation cancelled."), process.exit(0)), l.name = n;
7458
+ const i = Hr[r], e = await Zn(r, s);
7405
7459
  let a = "";
7406
- e || (a = await Bu(s.host));
7460
+ e || (a = await Tu(s.host));
7407
7461
  const c = ir(r, { ...s, ssh: e, accessToken: a });
7408
- await gr(
7462
+ await Cr(
7409
7463
  {
7410
7464
  startMsg: "Downloading project template...",
7411
7465
  successMsg: "Project template downloaded successfully",
@@ -7438,30 +7492,30 @@ async function Ru(s) {
7438
7492
  ...t ? { resolutions: t } : {},
7439
7493
  ...A ? { files: A } : {}
7440
7494
  };
7441
- Xn(f, h), await tr(n, h), dr(), console.log(Y.magenta(`To get started, run the following commands:
7495
+ Qn(f, h), await tr(n, h), mr(), console.log(Y.magenta(`To get started, run the following commands:
7442
7496
  `)), console.log(Y.grey(`$ cd ${n}`)), console.log(Y.grey("$ yarn set version 4.5.1")), console.log(Y.grey("$ yarn install")), console.log(Y.grey("$ yarn start"));
7443
7497
  } catch (n) {
7444
7498
  await l.doCleanup(n);
7445
7499
  }
7446
7500
  }
7447
- const Cr = (s) => {
7448
- const r = new Tr();
7501
+ const Er = (s) => {
7502
+ const r = new Mr();
7449
7503
  return s?.exitOverride && r.exitOverride(), s?.suppressOutput && r.configureOutput({
7450
7504
  writeOut: () => "",
7451
7505
  writeErr: () => ""
7452
- }), r.version(Mr), r.option("-n, --name <name>", "Name of the project").option("-t, --template <template>", "Template to use").option("-p, --packages <packages>", "Additional packages to add").option("--host <host>", "Host to use for the source control repository").option("--branch <branch>", "Branch to checkout in the source control repository"), r.command("init").description("Initialize a new ArcGIS project").action(async () => {
7453
- const o = qn(r.opts());
7454
- if (o.template && Gr[o.template] === Ui.CODE_SAMPLE) {
7455
- await Ru(o);
7506
+ }), r.version(kr), r.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("-p, --packages <packages>", "Additional packages to add").option("--host <host>", "Host to use for the source control repository").option("--branch <branch>", "Branch to checkout in the source control repository"), r.command("init").description("Initialize a new ArcGIS project").action(async () => {
7507
+ const o = Kn(r.opts());
7508
+ if (o.template && Ur[o.template] === ji.CODE_SAMPLE) {
7509
+ await ku(o);
7456
7510
  return;
7457
7511
  }
7458
- await Pu(o);
7512
+ await Mu(o);
7459
7513
  }), r;
7460
7514
  };
7461
- let Nu = {
7462
- makeProgram: Cr
7515
+ let Gu = {
7516
+ makeProgram: Er
7463
7517
  };
7464
- process.env.NODE_ENV !== "test" && (Nu = void 0, Cr().parse());
7518
+ process.env.NODE_ENV !== "test" && (Gu = void 0, Er().parse());
7465
7519
  export {
7466
- Nu as exportsForTests
7520
+ Gu as exportsForTests
7467
7521
  };