@dereekb/dbx-cli 13.12.0 → 13.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -15,13 +15,13 @@ import { readFile, glob, stat, readdir, writeFile } from 'node:fs/promises';
15
15
  import { Node, SyntaxKind, Project } from 'ts-morph';
16
16
  import { fileURLToPath } from 'node:url';
17
17
 
18
- function _array_like_to_array$10(arr, len) {
18
+ function _array_like_to_array$11(arr, len) {
19
19
  if (len == null || len > arr.length) len = arr.length;
20
20
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
21
21
  return arr2;
22
22
  }
23
23
  function _array_without_holes$Y(arr) {
24
- if (Array.isArray(arr)) return _array_like_to_array$10(arr);
24
+ if (Array.isArray(arr)) return _array_like_to_array$11(arr);
25
25
  }
26
26
  function _assert_this_initialized(self) {
27
27
  if (self === void 0) {
@@ -181,19 +181,19 @@ function _set_prototype_of(o, p) {
181
181
  return _set_prototype_of(o, p);
182
182
  }
183
183
  function _to_consumable_array$Y(arr) {
184
- return _array_without_holes$Y(arr) || _iterable_to_array$Y(arr) || _unsupported_iterable_to_array$10(arr) || _non_iterable_spread$Y();
184
+ return _array_without_holes$Y(arr) || _iterable_to_array$Y(arr) || _unsupported_iterable_to_array$11(arr) || _non_iterable_spread$Y();
185
185
  }
186
186
  function _type_of$2(obj) {
187
187
  "@swc/helpers - typeof";
188
188
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
189
189
  }
190
- function _unsupported_iterable_to_array$10(o, minLen) {
190
+ function _unsupported_iterable_to_array$11(o, minLen) {
191
191
  if (!o) return;
192
- if (typeof o === "string") return _array_like_to_array$10(o, minLen);
192
+ if (typeof o === "string") return _array_like_to_array$11(o, minLen);
193
193
  var n = Object.prototype.toString.call(o).slice(8, -1);
194
194
  if (n === "Object" && o.constructor) n = o.constructor.name;
195
195
  if (n === "Map" || n === "Set") return Array.from(n);
196
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$10(o, minLen);
196
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$11(o, minLen);
197
197
  }
198
198
  function _wrap_native_super(Class) {
199
199
  var _cache = typeof Map === "function" ? new Map() : undefined;
@@ -735,13 +735,13 @@ function stringifyEnvelope(value) {
735
735
  return result;
736
736
  }
737
737
 
738
- function _array_like_to_array$$(arr, len) {
738
+ function _array_like_to_array$10(arr, len) {
739
739
  if (len == null || len > arr.length) len = arr.length;
740
740
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
741
741
  return arr2;
742
742
  }
743
743
  function _array_without_holes$X(arr) {
744
- if (Array.isArray(arr)) return _array_like_to_array$$(arr);
744
+ if (Array.isArray(arr)) return _array_like_to_array$10(arr);
745
745
  }
746
746
  function asyncGeneratorStep$1e(gen, resolve, reject, _next, _throw, key, arg) {
747
747
  try {
@@ -826,19 +826,19 @@ function _object_spread_props$r(target, source) {
826
826
  return target;
827
827
  }
828
828
  function _to_consumable_array$X(arr) {
829
- return _array_without_holes$X(arr) || _iterable_to_array$X(arr) || _unsupported_iterable_to_array$$(arr) || _non_iterable_spread$X();
829
+ return _array_without_holes$X(arr) || _iterable_to_array$X(arr) || _unsupported_iterable_to_array$10(arr) || _non_iterable_spread$X();
830
830
  }
831
831
  function _type_of$1(obj) {
832
832
  "@swc/helpers - typeof";
833
833
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
834
834
  }
835
- function _unsupported_iterable_to_array$$(o, minLen) {
835
+ function _unsupported_iterable_to_array$10(o, minLen) {
836
836
  if (!o) return;
837
- if (typeof o === "string") return _array_like_to_array$$(o, minLen);
837
+ if (typeof o === "string") return _array_like_to_array$10(o, minLen);
838
838
  var n = Object.prototype.toString.call(o).slice(8, -1);
839
839
  if (n === "Object" && o.constructor) n = o.constructor.name;
840
840
  if (n === "Map" || n === "Set") return Array.from(n);
841
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$$(o, minLen);
841
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$10(o, minLen);
842
842
  }
843
843
  function _ts_generator$1e(thisArg, body) {
844
844
  var f, y, t, _ = {
@@ -1723,21 +1723,21 @@ function _ts_generator$1c(thisArg, body) {
1723
1723
  };
1724
1724
  }
1725
1725
 
1726
- function _array_like_to_array$_(arr, len) {
1726
+ function _array_like_to_array$$(arr, len) {
1727
1727
  if (len == null || len > arr.length) len = arr.length;
1728
1728
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
1729
1729
  return arr2;
1730
1730
  }
1731
- function _array_with_holes$f(arr) {
1731
+ function _array_with_holes$g(arr) {
1732
1732
  if (Array.isArray(arr)) return arr;
1733
1733
  }
1734
1734
  function _array_without_holes$W(arr) {
1735
- if (Array.isArray(arr)) return _array_like_to_array$_(arr);
1735
+ if (Array.isArray(arr)) return _array_like_to_array$$(arr);
1736
1736
  }
1737
1737
  function _iterable_to_array$W(iter) {
1738
1738
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1739
1739
  }
1740
- function _iterable_to_array_limit$f(arr, i) {
1740
+ function _iterable_to_array_limit$g(arr, i) {
1741
1741
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
1742
1742
  if (_i == null) return;
1743
1743
  var _arr = [];
@@ -1761,25 +1761,25 @@ function _iterable_to_array_limit$f(arr, i) {
1761
1761
  }
1762
1762
  return _arr;
1763
1763
  }
1764
- function _non_iterable_rest$f() {
1764
+ function _non_iterable_rest$g() {
1765
1765
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1766
1766
  }
1767
1767
  function _non_iterable_spread$W() {
1768
1768
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1769
1769
  }
1770
- function _sliced_to_array$f(arr, i) {
1771
- return _array_with_holes$f(arr) || _iterable_to_array_limit$f(arr, i) || _unsupported_iterable_to_array$_(arr, i) || _non_iterable_rest$f();
1770
+ function _sliced_to_array$g(arr, i) {
1771
+ return _array_with_holes$g(arr) || _iterable_to_array_limit$g(arr, i) || _unsupported_iterable_to_array$$(arr, i) || _non_iterable_rest$g();
1772
1772
  }
1773
1773
  function _to_consumable_array$W(arr) {
1774
- return _array_without_holes$W(arr) || _iterable_to_array$W(arr) || _unsupported_iterable_to_array$_(arr) || _non_iterable_spread$W();
1774
+ return _array_without_holes$W(arr) || _iterable_to_array$W(arr) || _unsupported_iterable_to_array$$(arr) || _non_iterable_spread$W();
1775
1775
  }
1776
- function _unsupported_iterable_to_array$_(o, minLen) {
1776
+ function _unsupported_iterable_to_array$$(o, minLen) {
1777
1777
  if (!o) return;
1778
- if (typeof o === "string") return _array_like_to_array$_(o, minLen);
1778
+ if (typeof o === "string") return _array_like_to_array$$(o, minLen);
1779
1779
  var n = Object.prototype.toString.call(o).slice(8, -1);
1780
1780
  if (n === "Object" && o.constructor) n = o.constructor.name;
1781
1781
  if (n === "Map" || n === "Set") return Array.from(n);
1782
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$_(o, minLen);
1782
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$$(o, minLen);
1783
1783
  }
1784
1784
  /**
1785
1785
  * Default name of the parent command that groups all registered action specs.
@@ -1835,7 +1835,7 @@ function _unsupported_iterable_to_array$_(o, minLen) {
1835
1835
  }
1836
1836
  }
1837
1837
  var sortedModels = _to_consumable_array$W(byModel.entries()).sort(function(param, param1) {
1838
- var _param = _sliced_to_array$f(param, 1), a = _param[0], _param1 = _sliced_to_array$f(param1, 1), b = _param1[0];
1838
+ var _param = _sliced_to_array$g(param, 1), a = _param[0], _param1 = _sliced_to_array$g(param1, 1), b = _param1[0];
1839
1839
  return a.localeCompare(b);
1840
1840
  });
1841
1841
  result = [
@@ -1866,7 +1866,7 @@ function _unsupported_iterable_to_array$_(o, minLen) {
1866
1866
  var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
1867
1867
  try {
1868
1868
  var _loop = function() {
1869
- var _step_value = _sliced_to_array$f(_step1.value, 2), model = _step_value[0], modelSpecs = _step_value[1];
1869
+ var _step_value = _sliced_to_array$g(_step1.value, 2), model = _step_value[0], modelSpecs = _step_value[1];
1870
1870
  yargs.command({
1871
1871
  command: "".concat(model, " <action>"),
1872
1872
  describe: "Composite actions scoped to model '".concat(model, "' (").concat(modelSpecs.length, ")."),
@@ -1924,16 +1924,16 @@ function _unsupported_iterable_to_array$_(o, minLen) {
1924
1924
  return result;
1925
1925
  }
1926
1926
 
1927
- function _array_like_to_array$Z(arr, len) {
1927
+ function _array_like_to_array$_(arr, len) {
1928
1928
  if (len == null || len > arr.length) len = arr.length;
1929
1929
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
1930
1930
  return arr2;
1931
1931
  }
1932
- function _array_with_holes$e(arr) {
1932
+ function _array_with_holes$f(arr) {
1933
1933
  if (Array.isArray(arr)) return arr;
1934
1934
  }
1935
1935
  function _array_without_holes$V(arr) {
1936
- if (Array.isArray(arr)) return _array_like_to_array$Z(arr);
1936
+ if (Array.isArray(arr)) return _array_like_to_array$_(arr);
1937
1937
  }
1938
1938
  function asyncGeneratorStep$1b(gen, resolve, reject, _next, _throw, key, arg) {
1939
1939
  try {
@@ -1980,7 +1980,7 @@ function _define_property$I(obj, key, value) {
1980
1980
  function _iterable_to_array$V(iter) {
1981
1981
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1982
1982
  }
1983
- function _iterable_to_array_limit$e(arr, i) {
1983
+ function _iterable_to_array_limit$f(arr, i) {
1984
1984
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
1985
1985
  if (_i == null) return;
1986
1986
  var _arr = [];
@@ -2004,7 +2004,7 @@ function _iterable_to_array_limit$e(arr, i) {
2004
2004
  }
2005
2005
  return _arr;
2006
2006
  }
2007
- function _non_iterable_rest$e() {
2007
+ function _non_iterable_rest$f() {
2008
2008
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2009
2009
  }
2010
2010
  function _non_iterable_spread$V() {
@@ -2044,19 +2044,19 @@ function _object_spread_props$q(target, source) {
2044
2044
  }
2045
2045
  return target;
2046
2046
  }
2047
- function _sliced_to_array$e(arr, i) {
2048
- return _array_with_holes$e(arr) || _iterable_to_array_limit$e(arr, i) || _unsupported_iterable_to_array$Z(arr, i) || _non_iterable_rest$e();
2047
+ function _sliced_to_array$f(arr, i) {
2048
+ return _array_with_holes$f(arr) || _iterable_to_array_limit$f(arr, i) || _unsupported_iterable_to_array$_(arr, i) || _non_iterable_rest$f();
2049
2049
  }
2050
2050
  function _to_consumable_array$V(arr) {
2051
- return _array_without_holes$V(arr) || _iterable_to_array$V(arr) || _unsupported_iterable_to_array$Z(arr) || _non_iterable_spread$V();
2051
+ return _array_without_holes$V(arr) || _iterable_to_array$V(arr) || _unsupported_iterable_to_array$_(arr) || _non_iterable_spread$V();
2052
2052
  }
2053
- function _unsupported_iterable_to_array$Z(o, minLen) {
2053
+ function _unsupported_iterable_to_array$_(o, minLen) {
2054
2054
  if (!o) return;
2055
- if (typeof o === "string") return _array_like_to_array$Z(o, minLen);
2055
+ if (typeof o === "string") return _array_like_to_array$_(o, minLen);
2056
2056
  var n = Object.prototype.toString.call(o).slice(8, -1);
2057
2057
  if (n === "Object" && o.constructor) n = o.constructor.name;
2058
2058
  if (n === "Map" || n === "Set") return Array.from(n);
2059
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$Z(o, minLen);
2059
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$_(o, minLen);
2060
2060
  }
2061
2061
  function _ts_generator$1b(thisArg, body) {
2062
2062
  var f, y, t, _ = {
@@ -2220,7 +2220,7 @@ function _runItemTasks(input) {
2220
2220
  return [
2221
2221
  2,
2222
2222
  performResult.results.map(function(param) {
2223
- var _param = _sliced_to_array$e(param, 2), output = _param[1];
2223
+ var _param = _sliced_to_array$f(param, 2), output = _param[1];
2224
2224
  return output;
2225
2225
  })
2226
2226
  ];
@@ -3382,12 +3382,12 @@ function _ts_generator$18(thisArg, body) {
3382
3382
  })
3383
3383
  };
3384
3384
 
3385
- function _array_like_to_array$Y(arr, len) {
3385
+ function _array_like_to_array$Z(arr, len) {
3386
3386
  if (len == null || len > arr.length) len = arr.length;
3387
3387
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
3388
3388
  return arr2;
3389
3389
  }
3390
- function _array_with_holes$d(arr) {
3390
+ function _array_with_holes$e(arr) {
3391
3391
  if (Array.isArray(arr)) return arr;
3392
3392
  }
3393
3393
  function _instanceof$m(left, right) {
@@ -3398,7 +3398,7 @@ function _instanceof$m(left, right) {
3398
3398
  return left instanceof right;
3399
3399
  }
3400
3400
  }
3401
- function _iterable_to_array_limit$d(arr, i) {
3401
+ function _iterable_to_array_limit$e(arr, i) {
3402
3402
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
3403
3403
  if (_i == null) return;
3404
3404
  var _arr = [];
@@ -3422,23 +3422,23 @@ function _iterable_to_array_limit$d(arr, i) {
3422
3422
  }
3423
3423
  return _arr;
3424
3424
  }
3425
- function _non_iterable_rest$d() {
3425
+ function _non_iterable_rest$e() {
3426
3426
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3427
3427
  }
3428
- function _sliced_to_array$d(arr, i) {
3429
- return _array_with_holes$d(arr) || _iterable_to_array_limit$d(arr, i) || _unsupported_iterable_to_array$Y(arr, i) || _non_iterable_rest$d();
3428
+ function _sliced_to_array$e(arr, i) {
3429
+ return _array_with_holes$e(arr) || _iterable_to_array_limit$e(arr, i) || _unsupported_iterable_to_array$Z(arr, i) || _non_iterable_rest$e();
3430
3430
  }
3431
3431
  function _type_of(obj) {
3432
3432
  "@swc/helpers - typeof";
3433
3433
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
3434
3434
  }
3435
- function _unsupported_iterable_to_array$Y(o, minLen) {
3435
+ function _unsupported_iterable_to_array$Z(o, minLen) {
3436
3436
  if (!o) return;
3437
- if (typeof o === "string") return _array_like_to_array$Y(o, minLen);
3437
+ if (typeof o === "string") return _array_like_to_array$Z(o, minLen);
3438
3438
  var n = Object.prototype.toString.call(o).slice(8, -1);
3439
3439
  if (n === "Object" && o.constructor) n = o.constructor.name;
3440
3440
  if (n === "Map" || n === "Set") return Array.from(n);
3441
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$Y(o, minLen);
3441
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$Z(o, minLen);
3442
3442
  }
3443
3443
  /**
3444
3444
  * Resolves the manifest entry for `modelType`. Lookup tries
@@ -3531,7 +3531,7 @@ function rewriteWithFields(value, fields) {
3531
3531
  var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
3532
3532
  try {
3533
3533
  for(var _iterator1 = Object.entries(value)[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
3534
- var _step_value = _sliced_to_array$d(_step1.value, 2), key = _step_value[0], raw = _step_value[1];
3534
+ var _step_value = _sliced_to_array$e(_step1.value, 2), key = _step_value[0], raw = _step_value[1];
3535
3535
  var field1 = fieldByName.get(key);
3536
3536
  if (field1) {
3537
3537
  var longKey = field1.longName.length > 0 ? field1.longName : key;
@@ -3591,13 +3591,13 @@ function isPlainObject(value) {
3591
3591
  return result;
3592
3592
  }
3593
3593
 
3594
- function _array_like_to_array$X(arr, len) {
3594
+ function _array_like_to_array$Y(arr, len) {
3595
3595
  if (len == null || len > arr.length) len = arr.length;
3596
3596
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
3597
3597
  return arr2;
3598
3598
  }
3599
3599
  function _array_without_holes$U(arr) {
3600
- if (Array.isArray(arr)) return _array_like_to_array$X(arr);
3600
+ if (Array.isArray(arr)) return _array_like_to_array$Y(arr);
3601
3601
  }
3602
3602
  function _iterable_to_array$U(iter) {
3603
3603
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -3606,15 +3606,15 @@ function _non_iterable_spread$U() {
3606
3606
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3607
3607
  }
3608
3608
  function _to_consumable_array$U(arr) {
3609
- return _array_without_holes$U(arr) || _iterable_to_array$U(arr) || _unsupported_iterable_to_array$X(arr) || _non_iterable_spread$U();
3609
+ return _array_without_holes$U(arr) || _iterable_to_array$U(arr) || _unsupported_iterable_to_array$Y(arr) || _non_iterable_spread$U();
3610
3610
  }
3611
- function _unsupported_iterable_to_array$X(o, minLen) {
3611
+ function _unsupported_iterable_to_array$Y(o, minLen) {
3612
3612
  if (!o) return;
3613
- if (typeof o === "string") return _array_like_to_array$X(o, minLen);
3613
+ if (typeof o === "string") return _array_like_to_array$Y(o, minLen);
3614
3614
  var n = Object.prototype.toString.call(o).slice(8, -1);
3615
3615
  if (n === "Object" && o.constructor) n = o.constructor.name;
3616
3616
  if (n === "Map" || n === "Set") return Array.from(n);
3617
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$X(o, minLen);
3617
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$Y(o, minLen);
3618
3618
  }
3619
3619
  /**
3620
3620
  * Default command name for the model-decode command. Top-level so it stays
@@ -3783,21 +3783,21 @@ function renderAncestorLine(ancestor) {
3783
3783
  return ancestor.modelName ? "- ".concat(ancestor.modelName, " — prefix ").concat(ancestor.prefix, ", id ").concat(ancestor.id) : "- <unknown> — prefix ".concat(ancestor.prefix, ", id ").concat(ancestor.id);
3784
3784
  }
3785
3785
 
3786
- function _array_like_to_array$W(arr, len) {
3786
+ function _array_like_to_array$X(arr, len) {
3787
3787
  if (len == null || len > arr.length) len = arr.length;
3788
3788
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
3789
3789
  return arr2;
3790
3790
  }
3791
- function _array_with_holes$c(arr) {
3791
+ function _array_with_holes$d(arr) {
3792
3792
  if (Array.isArray(arr)) return arr;
3793
3793
  }
3794
3794
  function _array_without_holes$T(arr) {
3795
- if (Array.isArray(arr)) return _array_like_to_array$W(arr);
3795
+ if (Array.isArray(arr)) return _array_like_to_array$X(arr);
3796
3796
  }
3797
3797
  function _iterable_to_array$T(iter) {
3798
3798
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
3799
3799
  }
3800
- function _iterable_to_array_limit$c(arr, i) {
3800
+ function _iterable_to_array_limit$d(arr, i) {
3801
3801
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
3802
3802
  if (_i == null) return;
3803
3803
  var _arr = [];
@@ -3821,25 +3821,25 @@ function _iterable_to_array_limit$c(arr, i) {
3821
3821
  }
3822
3822
  return _arr;
3823
3823
  }
3824
- function _non_iterable_rest$c() {
3824
+ function _non_iterable_rest$d() {
3825
3825
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3826
3826
  }
3827
3827
  function _non_iterable_spread$T() {
3828
3828
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3829
3829
  }
3830
- function _sliced_to_array$c(arr, i) {
3831
- return _array_with_holes$c(arr) || _iterable_to_array_limit$c(arr, i) || _unsupported_iterable_to_array$W(arr, i) || _non_iterable_rest$c();
3830
+ function _sliced_to_array$d(arr, i) {
3831
+ return _array_with_holes$d(arr) || _iterable_to_array_limit$d(arr, i) || _unsupported_iterable_to_array$X(arr, i) || _non_iterable_rest$d();
3832
3832
  }
3833
3833
  function _to_consumable_array$T(arr) {
3834
- return _array_without_holes$T(arr) || _iterable_to_array$T(arr) || _unsupported_iterable_to_array$W(arr) || _non_iterable_spread$T();
3834
+ return _array_without_holes$T(arr) || _iterable_to_array$T(arr) || _unsupported_iterable_to_array$X(arr) || _non_iterable_spread$T();
3835
3835
  }
3836
- function _unsupported_iterable_to_array$W(o, minLen) {
3836
+ function _unsupported_iterable_to_array$X(o, minLen) {
3837
3837
  if (!o) return;
3838
- if (typeof o === "string") return _array_like_to_array$W(o, minLen);
3838
+ if (typeof o === "string") return _array_like_to_array$X(o, minLen);
3839
3839
  var n = Object.prototype.toString.call(o).slice(8, -1);
3840
3840
  if (n === "Object" && o.constructor) n = o.constructor.name;
3841
3841
  if (n === "Map" || n === "Set") return Array.from(n);
3842
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$W(o, minLen);
3842
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$X(o, minLen);
3843
3843
  }
3844
3844
  /**
3845
3845
  * Parses the positionals for the top-level `get <modelOrKey> [key]` command into a
@@ -4007,7 +4007,7 @@ function inferModelTypeFromKeys(keys, manifest) {
4007
4007
  code: 'INVALID_ARGUMENT'
4008
4008
  });
4009
4009
  }
4010
- var _decodedTypes = _sliced_to_array$c(decodedTypes, 1), modelType = _decodedTypes[0];
4010
+ var _decodedTypes = _sliced_to_array$d(decodedTypes, 1), modelType = _decodedTypes[0];
4011
4011
  return {
4012
4012
  modelType: modelType,
4013
4013
  keys: keys
@@ -5691,12 +5691,12 @@ function trimSlash(url) {
5691
5691
  return url.endsWith('/') ? url.slice(0, -1) : url;
5692
5692
  }
5693
5693
 
5694
- function _array_like_to_array$V(arr, len) {
5694
+ function _array_like_to_array$W(arr, len) {
5695
5695
  if (len == null || len > arr.length) len = arr.length;
5696
5696
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
5697
5697
  return arr2;
5698
5698
  }
5699
- function _array_with_holes$b(arr) {
5699
+ function _array_with_holes$c(arr) {
5700
5700
  if (Array.isArray(arr)) return arr;
5701
5701
  }
5702
5702
  function asyncGeneratorStep$12(gen, resolve, reject, _next, _throw, key, arg) {
@@ -5728,7 +5728,7 @@ function _async_to_generator$12(fn) {
5728
5728
  });
5729
5729
  };
5730
5730
  }
5731
- function _iterable_to_array_limit$b(arr, i) {
5731
+ function _iterable_to_array_limit$c(arr, i) {
5732
5732
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
5733
5733
  if (_i == null) return;
5734
5734
  var _arr = [];
@@ -5752,19 +5752,19 @@ function _iterable_to_array_limit$b(arr, i) {
5752
5752
  }
5753
5753
  return _arr;
5754
5754
  }
5755
- function _non_iterable_rest$b() {
5755
+ function _non_iterable_rest$c() {
5756
5756
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5757
5757
  }
5758
- function _sliced_to_array$b(arr, i) {
5759
- return _array_with_holes$b(arr) || _iterable_to_array_limit$b(arr, i) || _unsupported_iterable_to_array$V(arr, i) || _non_iterable_rest$b();
5758
+ function _sliced_to_array$c(arr, i) {
5759
+ return _array_with_holes$c(arr) || _iterable_to_array_limit$c(arr, i) || _unsupported_iterable_to_array$W(arr, i) || _non_iterable_rest$c();
5760
5760
  }
5761
- function _unsupported_iterable_to_array$V(o, minLen) {
5761
+ function _unsupported_iterable_to_array$W(o, minLen) {
5762
5762
  if (!o) return;
5763
- if (typeof o === "string") return _array_like_to_array$V(o, minLen);
5763
+ if (typeof o === "string") return _array_like_to_array$W(o, minLen);
5764
5764
  var n = Object.prototype.toString.call(o).slice(8, -1);
5765
5765
  if (n === "Object" && o.constructor) n = o.constructor.name;
5766
5766
  if (n === "Map" || n === "Set") return Array.from(n);
5767
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$V(o, minLen);
5767
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$W(o, minLen);
5768
5768
  }
5769
5769
  function _ts_generator$12(thisArg, body) {
5770
5770
  var f, y, t, _ = {
@@ -5937,7 +5937,7 @@ function _ts_generator$12(thisArg, body) {
5937
5937
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
5938
5938
  try {
5939
5939
  for(var _iterator = Object.entries(authParams)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
5940
- var _step_value = _sliced_to_array$b(_step.value, 2), key = _step_value[0], value = _step_value[1];
5940
+ var _step_value = _sliced_to_array$c(_step.value, 2), key = _step_value[0], value = _step_value[1];
5941
5941
  url.searchParams.set(key, value);
5942
5942
  }
5943
5943
  } catch (err) {
@@ -7128,13 +7128,13 @@ function resolveAuthSetupPrompt(input) {
7128
7128
  };
7129
7129
  }
7130
7130
 
7131
- function _array_like_to_array$U(arr, len) {
7131
+ function _array_like_to_array$V(arr, len) {
7132
7132
  if (len == null || len > arr.length) len = arr.length;
7133
7133
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
7134
7134
  return arr2;
7135
7135
  }
7136
7136
  function _array_without_holes$S(arr) {
7137
- if (Array.isArray(arr)) return _array_like_to_array$U(arr);
7137
+ if (Array.isArray(arr)) return _array_like_to_array$V(arr);
7138
7138
  }
7139
7139
  function asyncGeneratorStep$10(gen, resolve, reject, _next, _throw, key, arg) {
7140
7140
  try {
@@ -7208,15 +7208,15 @@ function _object_spread$C(target) {
7208
7208
  return target;
7209
7209
  }
7210
7210
  function _to_consumable_array$S(arr) {
7211
- return _array_without_holes$S(arr) || _iterable_to_array$S(arr) || _unsupported_iterable_to_array$U(arr) || _non_iterable_spread$S();
7211
+ return _array_without_holes$S(arr) || _iterable_to_array$S(arr) || _unsupported_iterable_to_array$V(arr) || _non_iterable_spread$S();
7212
7212
  }
7213
- function _unsupported_iterable_to_array$U(o, minLen) {
7213
+ function _unsupported_iterable_to_array$V(o, minLen) {
7214
7214
  if (!o) return;
7215
- if (typeof o === "string") return _array_like_to_array$U(o, minLen);
7215
+ if (typeof o === "string") return _array_like_to_array$V(o, minLen);
7216
7216
  var n = Object.prototype.toString.call(o).slice(8, -1);
7217
7217
  if (n === "Object" && o.constructor) n = o.constructor.name;
7218
7218
  if (n === "Map" || n === "Set") return Array.from(n);
7219
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$U(o, minLen);
7219
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$V(o, minLen);
7220
7220
  }
7221
7221
  function _ts_generator$10(thisArg, body) {
7222
7222
  var f, y, t, _ = {
@@ -7842,12 +7842,12 @@ function _ts_generator$10(thisArg, body) {
7842
7842
  };
7843
7843
  }
7844
7844
 
7845
- function _array_like_to_array$T(arr, len) {
7845
+ function _array_like_to_array$U(arr, len) {
7846
7846
  if (len == null || len > arr.length) len = arr.length;
7847
7847
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
7848
7848
  return arr2;
7849
7849
  }
7850
- function _array_with_holes$a(arr) {
7850
+ function _array_with_holes$b(arr) {
7851
7851
  if (Array.isArray(arr)) return arr;
7852
7852
  }
7853
7853
  function asyncGeneratorStep$$(gen, resolve, reject, _next, _throw, key, arg) {
@@ -7900,7 +7900,7 @@ function _instanceof$j(left, right) {
7900
7900
  return left instanceof right;
7901
7901
  }
7902
7902
  }
7903
- function _iterable_to_array_limit$a(arr, i) {
7903
+ function _iterable_to_array_limit$b(arr, i) {
7904
7904
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
7905
7905
  if (_i == null) return;
7906
7906
  var _arr = [];
@@ -7924,7 +7924,7 @@ function _iterable_to_array_limit$a(arr, i) {
7924
7924
  }
7925
7925
  return _arr;
7926
7926
  }
7927
- function _non_iterable_rest$a() {
7927
+ function _non_iterable_rest$b() {
7928
7928
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
7929
7929
  }
7930
7930
  function _object_spread$B(target) {
@@ -7961,16 +7961,16 @@ function _object_spread_props$m(target, source) {
7961
7961
  }
7962
7962
  return target;
7963
7963
  }
7964
- function _sliced_to_array$a(arr, i) {
7965
- return _array_with_holes$a(arr) || _iterable_to_array_limit$a(arr, i) || _unsupported_iterable_to_array$T(arr, i) || _non_iterable_rest$a();
7964
+ function _sliced_to_array$b(arr, i) {
7965
+ return _array_with_holes$b(arr) || _iterable_to_array_limit$b(arr, i) || _unsupported_iterable_to_array$U(arr, i) || _non_iterable_rest$b();
7966
7966
  }
7967
- function _unsupported_iterable_to_array$T(o, minLen) {
7967
+ function _unsupported_iterable_to_array$U(o, minLen) {
7968
7968
  if (!o) return;
7969
- if (typeof o === "string") return _array_like_to_array$T(o, minLen);
7969
+ if (typeof o === "string") return _array_like_to_array$U(o, minLen);
7970
7970
  var n = Object.prototype.toString.call(o).slice(8, -1);
7971
7971
  if (n === "Object" && o.constructor) n = o.constructor.name;
7972
7972
  if (n === "Map" || n === "Set") return Array.from(n);
7973
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$T(o, minLen);
7973
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$U(o, minLen);
7974
7974
  }
7975
7975
  function _ts_generator$$(thisArg, body) {
7976
7976
  var f, y, t, _ = {
@@ -8132,7 +8132,7 @@ function resolveEnvWithDefault(input) {
8132
8132
  outputResult({
8133
8133
  activeEnv: config.activeEnv,
8134
8134
  envs: Object.entries(envs).map(function(param) {
8135
- var _param = _sliced_to_array$a(param, 2), name = _param[0], env = _param[1];
8135
+ var _param = _sliced_to_array$b(param, 2), name = _param[0], env = _param[1];
8136
8136
  var _ref;
8137
8137
  var resolved = resolveEnvWithDefault({
8138
8138
  name: name,
@@ -8433,13 +8433,13 @@ function resolveEnvWithDefault(input) {
8433
8433
  };
8434
8434
  }
8435
8435
 
8436
- function _array_like_to_array$S(arr, len) {
8436
+ function _array_like_to_array$T(arr, len) {
8437
8437
  if (len == null || len > arr.length) len = arr.length;
8438
8438
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
8439
8439
  return arr2;
8440
8440
  }
8441
8441
  function _array_without_holes$R(arr) {
8442
- if (Array.isArray(arr)) return _array_like_to_array$S(arr);
8442
+ if (Array.isArray(arr)) return _array_like_to_array$T(arr);
8443
8443
  }
8444
8444
  function _iterable_to_array$R(iter) {
8445
8445
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -8448,15 +8448,15 @@ function _non_iterable_spread$R() {
8448
8448
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8449
8449
  }
8450
8450
  function _to_consumable_array$R(arr) {
8451
- return _array_without_holes$R(arr) || _iterable_to_array$R(arr) || _unsupported_iterable_to_array$S(arr) || _non_iterable_spread$R();
8451
+ return _array_without_holes$R(arr) || _iterable_to_array$R(arr) || _unsupported_iterable_to_array$T(arr) || _non_iterable_spread$R();
8452
8452
  }
8453
- function _unsupported_iterable_to_array$S(o, minLen) {
8453
+ function _unsupported_iterable_to_array$T(o, minLen) {
8454
8454
  if (!o) return;
8455
- if (typeof o === "string") return _array_like_to_array$S(o, minLen);
8455
+ if (typeof o === "string") return _array_like_to_array$T(o, minLen);
8456
8456
  var n = Object.prototype.toString.call(o).slice(8, -1);
8457
8457
  if (n === "Object" && o.constructor) n = o.constructor.name;
8458
8458
  if (n === "Map" || n === "Set") return Array.from(n);
8459
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$S(o, minLen);
8459
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$T(o, minLen);
8460
8460
  }
8461
8461
  /**
8462
8462
  * Glosses for the closed `@dbxModelRead` enum surfaced on each model entry.
@@ -9809,13 +9809,13 @@ function resolveCallbacks(input) {
9809
9809
  };
9810
9810
  }
9811
9811
 
9812
- function _array_like_to_array$R(arr, len) {
9812
+ function _array_like_to_array$S(arr, len) {
9813
9813
  if (len == null || len > arr.length) len = arr.length;
9814
9814
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
9815
9815
  return arr2;
9816
9816
  }
9817
9817
  function _array_without_holes$Q(arr) {
9818
- if (Array.isArray(arr)) return _array_like_to_array$R(arr);
9818
+ if (Array.isArray(arr)) return _array_like_to_array$S(arr);
9819
9819
  }
9820
9820
  function asyncGeneratorStep$X(gen, resolve, reject, _next, _throw, key, arg) {
9821
9821
  try {
@@ -9853,15 +9853,15 @@ function _non_iterable_spread$Q() {
9853
9853
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
9854
9854
  }
9855
9855
  function _to_consumable_array$Q(arr) {
9856
- return _array_without_holes$Q(arr) || _iterable_to_array$Q(arr) || _unsupported_iterable_to_array$R(arr) || _non_iterable_spread$Q();
9856
+ return _array_without_holes$Q(arr) || _iterable_to_array$Q(arr) || _unsupported_iterable_to_array$S(arr) || _non_iterable_spread$Q();
9857
9857
  }
9858
- function _unsupported_iterable_to_array$R(o, minLen) {
9858
+ function _unsupported_iterable_to_array$S(o, minLen) {
9859
9859
  if (!o) return;
9860
- if (typeof o === "string") return _array_like_to_array$R(o, minLen);
9860
+ if (typeof o === "string") return _array_like_to_array$S(o, minLen);
9861
9861
  var n = Object.prototype.toString.call(o).slice(8, -1);
9862
9862
  if (n === "Object" && o.constructor) n = o.constructor.name;
9863
9863
  if (n === "Map" || n === "Set") return Array.from(n);
9864
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$R(o, minLen);
9864
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$S(o, minLen);
9865
9865
  }
9866
9866
  function _ts_generator$X(thisArg, body) {
9867
9867
  var f, y, t, _ = {
@@ -10176,16 +10176,16 @@ function commandName(cmd) {
10176
10176
  return result;
10177
10177
  }
10178
10178
 
10179
- function _array_like_to_array$Q(arr, len) {
10179
+ function _array_like_to_array$R(arr, len) {
10180
10180
  if (len == null || len > arr.length) len = arr.length;
10181
10181
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
10182
10182
  return arr2;
10183
10183
  }
10184
- function _array_with_holes$9(arr) {
10184
+ function _array_with_holes$a(arr) {
10185
10185
  if (Array.isArray(arr)) return arr;
10186
10186
  }
10187
10187
  function _array_without_holes$P(arr) {
10188
- if (Array.isArray(arr)) return _array_like_to_array$Q(arr);
10188
+ if (Array.isArray(arr)) return _array_like_to_array$R(arr);
10189
10189
  }
10190
10190
  function asyncGeneratorStep$W(gen, resolve, reject, _next, _throw, key, arg) {
10191
10191
  try {
@@ -10240,7 +10240,7 @@ function _instanceof$i(left, right) {
10240
10240
  function _iterable_to_array$P(iter) {
10241
10241
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
10242
10242
  }
10243
- function _iterable_to_array_limit$9(arr, i) {
10243
+ function _iterable_to_array_limit$a(arr, i) {
10244
10244
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
10245
10245
  if (_i == null) return;
10246
10246
  var _arr = [];
@@ -10264,7 +10264,7 @@ function _iterable_to_array_limit$9(arr, i) {
10264
10264
  }
10265
10265
  return _arr;
10266
10266
  }
10267
- function _non_iterable_rest$9() {
10267
+ function _non_iterable_rest$a() {
10268
10268
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
10269
10269
  }
10270
10270
  function _non_iterable_spread$P() {
@@ -10304,19 +10304,19 @@ function _object_spread_props$j(target, source) {
10304
10304
  }
10305
10305
  return target;
10306
10306
  }
10307
- function _sliced_to_array$9(arr, i) {
10308
- return _array_with_holes$9(arr) || _iterable_to_array_limit$9(arr, i) || _unsupported_iterable_to_array$Q(arr, i) || _non_iterable_rest$9();
10307
+ function _sliced_to_array$a(arr, i) {
10308
+ return _array_with_holes$a(arr) || _iterable_to_array_limit$a(arr, i) || _unsupported_iterable_to_array$R(arr, i) || _non_iterable_rest$a();
10309
10309
  }
10310
10310
  function _to_consumable_array$P(arr) {
10311
- return _array_without_holes$P(arr) || _iterable_to_array$P(arr) || _unsupported_iterable_to_array$Q(arr) || _non_iterable_spread$P();
10311
+ return _array_without_holes$P(arr) || _iterable_to_array$P(arr) || _unsupported_iterable_to_array$R(arr) || _non_iterable_spread$P();
10312
10312
  }
10313
- function _unsupported_iterable_to_array$Q(o, minLen) {
10313
+ function _unsupported_iterable_to_array$R(o, minLen) {
10314
10314
  if (!o) return;
10315
- if (typeof o === "string") return _array_like_to_array$Q(o, minLen);
10315
+ if (typeof o === "string") return _array_like_to_array$R(o, minLen);
10316
10316
  var n = Object.prototype.toString.call(o).slice(8, -1);
10317
10317
  if (n === "Object" && o.constructor) n = o.constructor.name;
10318
10318
  if (n === "Map" || n === "Set") return Array.from(n);
10319
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$Q(o, minLen);
10319
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$R(o, minLen);
10320
10320
  }
10321
10321
  function _ts_generator$W(thisArg, body) {
10322
10322
  var f, y, t, _ = {
@@ -10506,7 +10506,7 @@ var DATA_HELP_FLAG = '--data-help';
10506
10506
  var hideOnFocus = focusHelp ? (_ref4 = options === null || options === void 0 ? void 0 : options.hiddenWhenFocused) !== null && _ref4 !== void 0 ? _ref4 : STANDARD_GLOBAL_OPTION_NAMES : [];
10507
10507
  var modelCommandName = (_ref5 = options === null || options === void 0 ? void 0 : options.modelCommandName) !== null && _ref5 !== void 0 ? _ref5 : DEFAULT_MANIFEST_MODEL_COMMAND_NAME;
10508
10508
  var sortedModels = _to_consumable_array$P(byModel.entries()).sort(function(param, param1) {
10509
- var _param = _sliced_to_array$9(param, 1), a = _param[0], _param1 = _sliced_to_array$9(param1, 1), b = _param1[0];
10509
+ var _param = _sliced_to_array$a(param, 1), a = _param[0], _param1 = _sliced_to_array$a(param1, 1), b = _param1[0];
10510
10510
  return a.localeCompare(b);
10511
10511
  });
10512
10512
  var context = {
@@ -10523,7 +10523,7 @@ var DATA_HELP_FLAG = '--data-help';
10523
10523
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
10524
10524
  try {
10525
10525
  for(var _iterator = sortedModels[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
10526
- var _step_value = _sliced_to_array$9(_step.value, 2), model = _step_value[0], entries = _step_value[1];
10526
+ var _step_value = _sliced_to_array$a(_step.value, 2), model = _step_value[0], entries = _step_value[1];
10527
10527
  yargs.command(buildModelCommand(model, entries, context));
10528
10528
  }
10529
10529
  } catch (err) {
@@ -11493,13 +11493,13 @@ var DEFAULT_READ_FILE$f = function DEFAULT_READ_FILE(path) {
11493
11493
  })();
11494
11494
  }
11495
11495
 
11496
- function _array_like_to_array$P(arr, len) {
11496
+ function _array_like_to_array$Q(arr, len) {
11497
11497
  if (len == null || len > arr.length) len = arr.length;
11498
11498
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
11499
11499
  return arr2;
11500
11500
  }
11501
11501
  function _array_without_holes$O(arr) {
11502
- if (Array.isArray(arr)) return _array_like_to_array$P(arr);
11502
+ if (Array.isArray(arr)) return _array_like_to_array$Q(arr);
11503
11503
  }
11504
11504
  function _iterable_to_array$O(iter) {
11505
11505
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -11508,15 +11508,15 @@ function _non_iterable_spread$O() {
11508
11508
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
11509
11509
  }
11510
11510
  function _to_consumable_array$O(arr) {
11511
- return _array_without_holes$O(arr) || _iterable_to_array$O(arr) || _unsupported_iterable_to_array$P(arr) || _non_iterable_spread$O();
11511
+ return _array_without_holes$O(arr) || _iterable_to_array$O(arr) || _unsupported_iterable_to_array$Q(arr) || _non_iterable_spread$O();
11512
11512
  }
11513
- function _unsupported_iterable_to_array$P(o, minLen) {
11513
+ function _unsupported_iterable_to_array$Q(o, minLen) {
11514
11514
  if (!o) return;
11515
- if (typeof o === "string") return _array_like_to_array$P(o, minLen);
11515
+ if (typeof o === "string") return _array_like_to_array$Q(o, minLen);
11516
11516
  var n = Object.prototype.toString.call(o).slice(8, -1);
11517
11517
  if (n === "Object" && o.constructor) n = o.constructor.name;
11518
11518
  if (n === "Map" || n === "Set") return Array.from(n);
11519
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$P(o, minLen);
11519
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$Q(o, minLen);
11520
11520
  }
11521
11521
  /**
11522
11522
  * Semantic-types registry wrapper.
@@ -13118,13 +13118,13 @@ var FORM_FIELDS = [
13118
13118
  }
13119
13119
  ];
13120
13120
 
13121
- function _array_like_to_array$O(arr, len) {
13121
+ function _array_like_to_array$P(arr, len) {
13122
13122
  if (len == null || len > arr.length) len = arr.length;
13123
13123
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
13124
13124
  return arr2;
13125
13125
  }
13126
13126
  function _array_without_holes$N(arr) {
13127
- if (Array.isArray(arr)) return _array_like_to_array$O(arr);
13127
+ if (Array.isArray(arr)) return _array_like_to_array$P(arr);
13128
13128
  }
13129
13129
  function _define_property$w(obj, key, value) {
13130
13130
  if (key in obj) {
@@ -13161,15 +13161,15 @@ function _object_spread$w(target) {
13161
13161
  return target;
13162
13162
  }
13163
13163
  function _to_consumable_array$N(arr) {
13164
- return _array_without_holes$N(arr) || _iterable_to_array$N(arr) || _unsupported_iterable_to_array$O(arr) || _non_iterable_spread$N();
13164
+ return _array_without_holes$N(arr) || _iterable_to_array$N(arr) || _unsupported_iterable_to_array$P(arr) || _non_iterable_spread$N();
13165
13165
  }
13166
- function _unsupported_iterable_to_array$O(o, minLen) {
13166
+ function _unsupported_iterable_to_array$P(o, minLen) {
13167
13167
  if (!o) return;
13168
- if (typeof o === "string") return _array_like_to_array$O(o, minLen);
13168
+ if (typeof o === "string") return _array_like_to_array$P(o, minLen);
13169
13169
  var n = Object.prototype.toString.call(o).slice(8, -1);
13170
13170
  if (n === "Object" && o.constructor) n = o.constructor.name;
13171
13171
  if (n === "Map" || n === "Set") return Array.from(n);
13172
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$O(o, minLen);
13172
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$P(o, minLen);
13173
13173
  }
13174
13174
  /**
13175
13175
  * Actions runtime registry wrapper.
@@ -13405,13 +13405,13 @@ function pushInto$b(map, key, entry) {
13405
13405
  }
13406
13406
  }
13407
13407
 
13408
- function _array_like_to_array$N(arr, len) {
13408
+ function _array_like_to_array$O(arr, len) {
13409
13409
  if (len == null || len > arr.length) len = arr.length;
13410
13410
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
13411
13411
  return arr2;
13412
13412
  }
13413
13413
  function _array_without_holes$M(arr) {
13414
- if (Array.isArray(arr)) return _array_like_to_array$N(arr);
13414
+ if (Array.isArray(arr)) return _array_like_to_array$O(arr);
13415
13415
  }
13416
13416
  function _iterable_to_array$M(iter) {
13417
13417
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -13420,15 +13420,15 @@ function _non_iterable_spread$M() {
13420
13420
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
13421
13421
  }
13422
13422
  function _to_consumable_array$M(arr) {
13423
- return _array_without_holes$M(arr) || _iterable_to_array$M(arr) || _unsupported_iterable_to_array$N(arr) || _non_iterable_spread$M();
13423
+ return _array_without_holes$M(arr) || _iterable_to_array$M(arr) || _unsupported_iterable_to_array$O(arr) || _non_iterable_spread$M();
13424
13424
  }
13425
- function _unsupported_iterable_to_array$N(o, minLen) {
13425
+ function _unsupported_iterable_to_array$O(o, minLen) {
13426
13426
  if (!o) return;
13427
- if (typeof o === "string") return _array_like_to_array$N(o, minLen);
13427
+ if (typeof o === "string") return _array_like_to_array$O(o, minLen);
13428
13428
  var n = Object.prototype.toString.call(o).slice(8, -1);
13429
13429
  if (n === "Object" && o.constructor) n = o.constructor.name;
13430
13430
  if (n === "Map" || n === "Set") return Array.from(n);
13431
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$N(o, minLen);
13431
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$O(o, minLen);
13432
13432
  }
13433
13433
  /**
13434
13434
  * UI components runtime registry wrapper.
@@ -13623,21 +13623,21 @@ function splitSelectorTokens(selector) {
13623
13623
  return out;
13624
13624
  }
13625
13625
 
13626
- function _array_like_to_array$M(arr, len) {
13626
+ function _array_like_to_array$N(arr, len) {
13627
13627
  if (len == null || len > arr.length) len = arr.length;
13628
13628
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
13629
13629
  return arr2;
13630
13630
  }
13631
- function _array_with_holes$8(arr) {
13631
+ function _array_with_holes$9(arr) {
13632
13632
  if (Array.isArray(arr)) return arr;
13633
13633
  }
13634
13634
  function _array_without_holes$L(arr) {
13635
- if (Array.isArray(arr)) return _array_like_to_array$M(arr);
13635
+ if (Array.isArray(arr)) return _array_like_to_array$N(arr);
13636
13636
  }
13637
13637
  function _iterable_to_array$L(iter) {
13638
13638
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
13639
13639
  }
13640
- function _iterable_to_array_limit$8(arr, i) {
13640
+ function _iterable_to_array_limit$9(arr, i) {
13641
13641
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
13642
13642
  if (_i == null) return;
13643
13643
  var _arr = [];
@@ -13661,25 +13661,25 @@ function _iterable_to_array_limit$8(arr, i) {
13661
13661
  }
13662
13662
  return _arr;
13663
13663
  }
13664
- function _non_iterable_rest$8() {
13664
+ function _non_iterable_rest$9() {
13665
13665
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
13666
13666
  }
13667
13667
  function _non_iterable_spread$L() {
13668
13668
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
13669
13669
  }
13670
- function _sliced_to_array$8(arr, i) {
13671
- return _array_with_holes$8(arr) || _iterable_to_array_limit$8(arr, i) || _unsupported_iterable_to_array$M(arr, i) || _non_iterable_rest$8();
13670
+ function _sliced_to_array$9(arr, i) {
13671
+ return _array_with_holes$9(arr) || _iterable_to_array_limit$9(arr, i) || _unsupported_iterable_to_array$N(arr, i) || _non_iterable_rest$9();
13672
13672
  }
13673
13673
  function _to_consumable_array$L(arr) {
13674
- return _array_without_holes$L(arr) || _iterable_to_array$L(arr) || _unsupported_iterable_to_array$M(arr) || _non_iterable_spread$L();
13674
+ return _array_without_holes$L(arr) || _iterable_to_array$L(arr) || _unsupported_iterable_to_array$N(arr) || _non_iterable_spread$L();
13675
13675
  }
13676
- function _unsupported_iterable_to_array$M(o, minLen) {
13676
+ function _unsupported_iterable_to_array$N(o, minLen) {
13677
13677
  if (!o) return;
13678
- if (typeof o === "string") return _array_like_to_array$M(o, minLen);
13678
+ if (typeof o === "string") return _array_like_to_array$N(o, minLen);
13679
13679
  var n = Object.prototype.toString.call(o).slice(8, -1);
13680
13680
  if (n === "Object" && o.constructor) n = o.constructor.name;
13681
13681
  if (n === "Map" || n === "Set") return Array.from(n);
13682
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$M(o, minLen);
13682
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$N(o, minLen);
13683
13683
  }
13684
13684
  /**
13685
13685
  * CSS-utility-class runtime registry wrapper.
@@ -14170,7 +14170,7 @@ function freezeBuckets$1(map) {
14170
14170
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
14171
14171
  try {
14172
14172
  for(var _iterator = map[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
14173
- var _step_value = _sliced_to_array$8(_step.value, 2), key = _step_value[0], list = _step_value[1];
14173
+ var _step_value = _sliced_to_array$9(_step.value, 2), key = _step_value[0], list = _step_value[1];
14174
14174
  out.set(key, _to_consumable_array$L(list));
14175
14175
  }
14176
14176
  } catch (err) {
@@ -14190,13 +14190,13 @@ function freezeBuckets$1(map) {
14190
14190
  return out;
14191
14191
  }
14192
14192
 
14193
- function _array_like_to_array$L(arr, len) {
14193
+ function _array_like_to_array$M(arr, len) {
14194
14194
  if (len == null || len > arr.length) len = arr.length;
14195
14195
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
14196
14196
  return arr2;
14197
14197
  }
14198
14198
  function _array_without_holes$K(arr) {
14199
- if (Array.isArray(arr)) return _array_like_to_array$L(arr);
14199
+ if (Array.isArray(arr)) return _array_like_to_array$M(arr);
14200
14200
  }
14201
14201
  function _define_property$v(obj, key, value) {
14202
14202
  if (key in obj) {
@@ -14252,15 +14252,15 @@ function _object_spread_props$i(target, source) {
14252
14252
  return target;
14253
14253
  }
14254
14254
  function _to_consumable_array$K(arr) {
14255
- return _array_without_holes$K(arr) || _iterable_to_array$K(arr) || _unsupported_iterable_to_array$L(arr) || _non_iterable_spread$K();
14255
+ return _array_without_holes$K(arr) || _iterable_to_array$K(arr) || _unsupported_iterable_to_array$M(arr) || _non_iterable_spread$K();
14256
14256
  }
14257
- function _unsupported_iterable_to_array$L(o, minLen) {
14257
+ function _unsupported_iterable_to_array$M(o, minLen) {
14258
14258
  if (!o) return;
14259
- if (typeof o === "string") return _array_like_to_array$L(o, minLen);
14259
+ if (typeof o === "string") return _array_like_to_array$M(o, minLen);
14260
14260
  var n = Object.prototype.toString.call(o).slice(8, -1);
14261
14261
  if (n === "Object" && o.constructor) n = o.constructor.name;
14262
14262
  if (n === "Map" || n === "Set") return Array.from(n);
14263
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$L(o, minLen);
14263
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$M(o, minLen);
14264
14264
  }
14265
14265
  /**
14266
14266
  * Forge-fields runtime registry wrapper.
@@ -14552,13 +14552,13 @@ function toConfigRecord(properties) {
14552
14552
  return out;
14553
14553
  }
14554
14554
 
14555
- function _array_like_to_array$K(arr, len) {
14555
+ function _array_like_to_array$L(arr, len) {
14556
14556
  if (len == null || len > arr.length) len = arr.length;
14557
14557
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
14558
14558
  return arr2;
14559
14559
  }
14560
14560
  function _array_without_holes$J(arr) {
14561
- if (Array.isArray(arr)) return _array_like_to_array$K(arr);
14561
+ if (Array.isArray(arr)) return _array_like_to_array$L(arr);
14562
14562
  }
14563
14563
  function _iterable_to_array$J(iter) {
14564
14564
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -14567,15 +14567,15 @@ function _non_iterable_spread$J() {
14567
14567
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
14568
14568
  }
14569
14569
  function _to_consumable_array$J(arr) {
14570
- return _array_without_holes$J(arr) || _iterable_to_array$J(arr) || _unsupported_iterable_to_array$K(arr) || _non_iterable_spread$J();
14570
+ return _array_without_holes$J(arr) || _iterable_to_array$J(arr) || _unsupported_iterable_to_array$L(arr) || _non_iterable_spread$J();
14571
14571
  }
14572
- function _unsupported_iterable_to_array$K(o, minLen) {
14572
+ function _unsupported_iterable_to_array$L(o, minLen) {
14573
14573
  if (!o) return;
14574
- if (typeof o === "string") return _array_like_to_array$K(o, minLen);
14574
+ if (typeof o === "string") return _array_like_to_array$L(o, minLen);
14575
14575
  var n = Object.prototype.toString.call(o).slice(8, -1);
14576
14576
  if (n === "Object" && o.constructor) n = o.constructor.name;
14577
14577
  if (n === "Map" || n === "Set") return Array.from(n);
14578
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$K(o, minLen);
14578
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$L(o, minLen);
14579
14579
  }
14580
14580
  /**
14581
14581
  * Pipes runtime registry wrapper.
@@ -14742,13 +14742,13 @@ function pushInto$7(map, key, entry) {
14742
14742
  }
14743
14743
  }
14744
14744
 
14745
- function _array_like_to_array$J(arr, len) {
14745
+ function _array_like_to_array$K(arr, len) {
14746
14746
  if (len == null || len > arr.length) len = arr.length;
14747
14747
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
14748
14748
  return arr2;
14749
14749
  }
14750
14750
  function _array_without_holes$I(arr) {
14751
- if (Array.isArray(arr)) return _array_like_to_array$J(arr);
14751
+ if (Array.isArray(arr)) return _array_like_to_array$K(arr);
14752
14752
  }
14753
14753
  function _iterable_to_array$I(iter) {
14754
14754
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -14757,15 +14757,15 @@ function _non_iterable_spread$I() {
14757
14757
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
14758
14758
  }
14759
14759
  function _to_consumable_array$I(arr) {
14760
- return _array_without_holes$I(arr) || _iterable_to_array$I(arr) || _unsupported_iterable_to_array$J(arr) || _non_iterable_spread$I();
14760
+ return _array_without_holes$I(arr) || _iterable_to_array$I(arr) || _unsupported_iterable_to_array$K(arr) || _non_iterable_spread$I();
14761
14761
  }
14762
- function _unsupported_iterable_to_array$J(o, minLen) {
14762
+ function _unsupported_iterable_to_array$K(o, minLen) {
14763
14763
  if (!o) return;
14764
- if (typeof o === "string") return _array_like_to_array$J(o, minLen);
14764
+ if (typeof o === "string") return _array_like_to_array$K(o, minLen);
14765
14765
  var n = Object.prototype.toString.call(o).slice(8, -1);
14766
14766
  if (n === "Object" && o.constructor) n = o.constructor.name;
14767
14767
  if (n === "Map" || n === "Set") return Array.from(n);
14768
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$J(o, minLen);
14768
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$K(o, minLen);
14769
14769
  }
14770
14770
  /**
14771
14771
  * Utils runtime registry wrapper.
@@ -14960,21 +14960,21 @@ function pushInto$6(map, key, entry) {
14960
14960
  }
14961
14961
  }
14962
14962
 
14963
- function _array_like_to_array$I(arr, len) {
14963
+ function _array_like_to_array$J(arr, len) {
14964
14964
  if (len == null || len > arr.length) len = arr.length;
14965
14965
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
14966
14966
  return arr2;
14967
14967
  }
14968
- function _array_with_holes$7(arr) {
14968
+ function _array_with_holes$8(arr) {
14969
14969
  if (Array.isArray(arr)) return arr;
14970
14970
  }
14971
14971
  function _array_without_holes$H(arr) {
14972
- if (Array.isArray(arr)) return _array_like_to_array$I(arr);
14972
+ if (Array.isArray(arr)) return _array_like_to_array$J(arr);
14973
14973
  }
14974
14974
  function _iterable_to_array$H(iter) {
14975
14975
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
14976
14976
  }
14977
- function _iterable_to_array_limit$7(arr, i) {
14977
+ function _iterable_to_array_limit$8(arr, i) {
14978
14978
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
14979
14979
  if (_i == null) return;
14980
14980
  var _arr = [];
@@ -14998,25 +14998,25 @@ function _iterable_to_array_limit$7(arr, i) {
14998
14998
  }
14999
14999
  return _arr;
15000
15000
  }
15001
- function _non_iterable_rest$7() {
15001
+ function _non_iterable_rest$8() {
15002
15002
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
15003
15003
  }
15004
15004
  function _non_iterable_spread$H() {
15005
15005
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
15006
15006
  }
15007
- function _sliced_to_array$7(arr, i) {
15008
- return _array_with_holes$7(arr) || _iterable_to_array_limit$7(arr, i) || _unsupported_iterable_to_array$I(arr, i) || _non_iterable_rest$7();
15007
+ function _sliced_to_array$8(arr, i) {
15008
+ return _array_with_holes$8(arr) || _iterable_to_array_limit$8(arr, i) || _unsupported_iterable_to_array$J(arr, i) || _non_iterable_rest$8();
15009
15009
  }
15010
15010
  function _to_consumable_array$H(arr) {
15011
- return _array_without_holes$H(arr) || _iterable_to_array$H(arr) || _unsupported_iterable_to_array$I(arr) || _non_iterable_spread$H();
15011
+ return _array_without_holes$H(arr) || _iterable_to_array$H(arr) || _unsupported_iterable_to_array$J(arr) || _non_iterable_spread$H();
15012
15012
  }
15013
- function _unsupported_iterable_to_array$I(o, minLen) {
15013
+ function _unsupported_iterable_to_array$J(o, minLen) {
15014
15014
  if (!o) return;
15015
- if (typeof o === "string") return _array_like_to_array$I(o, minLen);
15015
+ if (typeof o === "string") return _array_like_to_array$J(o, minLen);
15016
15016
  var n = Object.prototype.toString.call(o).slice(8, -1);
15017
15017
  if (n === "Object" && o.constructor) n = o.constructor.name;
15018
15018
  if (n === "Map" || n === "Set") return Array.from(n);
15019
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$I(o, minLen);
15019
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$J(o, minLen);
15020
15020
  }
15021
15021
  /**
15022
15022
  * Tokens runtime registry wrapper.
@@ -15275,7 +15275,7 @@ function freezeBuckets(map) {
15275
15275
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
15276
15276
  try {
15277
15277
  for(var _iterator = map[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
15278
- var _step_value = _sliced_to_array$7(_step.value, 2), key = _step_value[0], list = _step_value[1];
15278
+ var _step_value = _sliced_to_array$8(_step.value, 2), key = _step_value[0], list = _step_value[1];
15279
15279
  out.set(key, _to_consumable_array$H(list));
15280
15280
  }
15281
15281
  } catch (err) {
@@ -15295,13 +15295,13 @@ function freezeBuckets(map) {
15295
15295
  return out;
15296
15296
  }
15297
15297
 
15298
- function _array_like_to_array$H(arr, len) {
15298
+ function _array_like_to_array$I(arr, len) {
15299
15299
  if (len == null || len > arr.length) len = arr.length;
15300
15300
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
15301
15301
  return arr2;
15302
15302
  }
15303
15303
  function _array_without_holes$G(arr) {
15304
- if (Array.isArray(arr)) return _array_like_to_array$H(arr);
15304
+ if (Array.isArray(arr)) return _array_like_to_array$I(arr);
15305
15305
  }
15306
15306
  function _iterable_to_array$G(iter) {
15307
15307
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -15310,15 +15310,15 @@ function _non_iterable_spread$G() {
15310
15310
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
15311
15311
  }
15312
15312
  function _to_consumable_array$G(arr) {
15313
- return _array_without_holes$G(arr) || _iterable_to_array$G(arr) || _unsupported_iterable_to_array$H(arr) || _non_iterable_spread$G();
15313
+ return _array_without_holes$G(arr) || _iterable_to_array$G(arr) || _unsupported_iterable_to_array$I(arr) || _non_iterable_spread$G();
15314
15314
  }
15315
- function _unsupported_iterable_to_array$H(o, minLen) {
15315
+ function _unsupported_iterable_to_array$I(o, minLen) {
15316
15316
  if (!o) return;
15317
- if (typeof o === "string") return _array_like_to_array$H(o, minLen);
15317
+ if (typeof o === "string") return _array_like_to_array$I(o, minLen);
15318
15318
  var n = Object.prototype.toString.call(o).slice(8, -1);
15319
15319
  if (n === "Object" && o.constructor) n = o.constructor.name;
15320
15320
  if (n === "Map" || n === "Set") return Array.from(n);
15321
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$H(o, minLen);
15321
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$I(o, minLen);
15322
15322
  }
15323
15323
  /**
15324
15324
  * Model-snapshot-fields runtime registry wrapper.
@@ -15515,13 +15515,13 @@ function pushInto$4(map, key, entry) {
15515
15515
  }
15516
15516
  }
15517
15517
 
15518
- function _array_like_to_array$G(arr, len) {
15518
+ function _array_like_to_array$H(arr, len) {
15519
15519
  if (len == null || len > arr.length) len = arr.length;
15520
15520
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
15521
15521
  return arr2;
15522
15522
  }
15523
15523
  function _array_without_holes$F(arr) {
15524
- if (Array.isArray(arr)) return _array_like_to_array$G(arr);
15524
+ if (Array.isArray(arr)) return _array_like_to_array$H(arr);
15525
15525
  }
15526
15526
  function _iterable_to_array$F(iter) {
15527
15527
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -15530,15 +15530,15 @@ function _non_iterable_spread$F() {
15530
15530
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
15531
15531
  }
15532
15532
  function _to_consumable_array$F(arr) {
15533
- return _array_without_holes$F(arr) || _iterable_to_array$F(arr) || _unsupported_iterable_to_array$G(arr) || _non_iterable_spread$F();
15533
+ return _array_without_holes$F(arr) || _iterable_to_array$F(arr) || _unsupported_iterable_to_array$H(arr) || _non_iterable_spread$F();
15534
15534
  }
15535
- function _unsupported_iterable_to_array$G(o, minLen) {
15535
+ function _unsupported_iterable_to_array$H(o, minLen) {
15536
15536
  if (!o) return;
15537
- if (typeof o === "string") return _array_like_to_array$G(o, minLen);
15537
+ if (typeof o === "string") return _array_like_to_array$H(o, minLen);
15538
15538
  var n = Object.prototype.toString.call(o).slice(8, -1);
15539
15539
  if (n === "Object" && o.constructor) n = o.constructor.name;
15540
15540
  if (n === "Map" || n === "Set") return Array.from(n);
15541
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$G(o, minLen);
15541
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$H(o, minLen);
15542
15542
  }
15543
15543
  /**
15544
15544
  * dbx-docs-ui-examples runtime registry wrapper.
@@ -15669,13 +15669,13 @@ function sortedKeys(map) {
15669
15669
  });
15670
15670
  }
15671
15671
 
15672
- function _array_like_to_array$F(arr, len) {
15672
+ function _array_like_to_array$G(arr, len) {
15673
15673
  if (len == null || len > arr.length) len = arr.length;
15674
15674
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
15675
15675
  return arr2;
15676
15676
  }
15677
15677
  function _array_without_holes$E(arr) {
15678
- if (Array.isArray(arr)) return _array_like_to_array$F(arr);
15678
+ if (Array.isArray(arr)) return _array_like_to_array$G(arr);
15679
15679
  }
15680
15680
  function _iterable_to_array$E(iter) {
15681
15681
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -15684,15 +15684,15 @@ function _non_iterable_spread$E() {
15684
15684
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
15685
15685
  }
15686
15686
  function _to_consumable_array$E(arr) {
15687
- return _array_without_holes$E(arr) || _iterable_to_array$E(arr) || _unsupported_iterable_to_array$F(arr) || _non_iterable_spread$E();
15687
+ return _array_without_holes$E(arr) || _iterable_to_array$E(arr) || _unsupported_iterable_to_array$G(arr) || _non_iterable_spread$E();
15688
15688
  }
15689
- function _unsupported_iterable_to_array$F(o, minLen) {
15689
+ function _unsupported_iterable_to_array$G(o, minLen) {
15690
15690
  if (!o) return;
15691
- if (typeof o === "string") return _array_like_to_array$F(o, minLen);
15691
+ if (typeof o === "string") return _array_like_to_array$G(o, minLen);
15692
15692
  var n = Object.prototype.toString.call(o).slice(8, -1);
15693
15693
  if (n === "Object" && o.constructor) n = o.constructor.name;
15694
15694
  if (n === "Map" || n === "Set") return Array.from(n);
15695
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$F(o, minLen);
15695
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$G(o, minLen);
15696
15696
  }
15697
15697
  /**
15698
15698
  * Filters runtime registry wrapper.
@@ -15884,13 +15884,13 @@ function stripSelectorBrackets(selector) {
15884
15884
  return selector.startsWith('[') && selector.endsWith(']') ? selector.slice(1, -1) : selector;
15885
15885
  }
15886
15886
 
15887
- function _array_like_to_array$E(arr, len) {
15887
+ function _array_like_to_array$F(arr, len) {
15888
15888
  if (len == null || len > arr.length) len = arr.length;
15889
15889
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
15890
15890
  return arr2;
15891
15891
  }
15892
15892
  function _array_without_holes$D(arr) {
15893
- if (Array.isArray(arr)) return _array_like_to_array$E(arr);
15893
+ if (Array.isArray(arr)) return _array_like_to_array$F(arr);
15894
15894
  }
15895
15895
  function _iterable_to_array$D(iter) {
15896
15896
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -15899,15 +15899,15 @@ function _non_iterable_spread$D() {
15899
15899
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
15900
15900
  }
15901
15901
  function _to_consumable_array$D(arr) {
15902
- return _array_without_holes$D(arr) || _iterable_to_array$D(arr) || _unsupported_iterable_to_array$E(arr) || _non_iterable_spread$D();
15902
+ return _array_without_holes$D(arr) || _iterable_to_array$D(arr) || _unsupported_iterable_to_array$F(arr) || _non_iterable_spread$D();
15903
15903
  }
15904
- function _unsupported_iterable_to_array$E(o, minLen) {
15904
+ function _unsupported_iterable_to_array$F(o, minLen) {
15905
15905
  if (!o) return;
15906
- if (typeof o === "string") return _array_like_to_array$E(o, minLen);
15906
+ if (typeof o === "string") return _array_like_to_array$F(o, minLen);
15907
15907
  var n = Object.prototype.toString.call(o).slice(8, -1);
15908
15908
  if (n === "Object" && o.constructor) n = o.constructor.name;
15909
15909
  if (n === "Map" || n === "Set") return Array.from(n);
15910
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$E(o, minLen);
15910
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$F(o, minLen);
15911
15911
  }
15912
15912
  /**
15913
15913
  * Auth runtime registry wrapper.
@@ -16189,21 +16189,21 @@ function indexApps(apps) {
16189
16189
  };
16190
16190
  }
16191
16191
 
16192
- function _array_like_to_array$D(arr, len) {
16192
+ function _array_like_to_array$E(arr, len) {
16193
16193
  if (len == null || len > arr.length) len = arr.length;
16194
16194
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
16195
16195
  return arr2;
16196
16196
  }
16197
- function _array_with_holes$6(arr) {
16197
+ function _array_with_holes$7(arr) {
16198
16198
  if (Array.isArray(arr)) return arr;
16199
16199
  }
16200
16200
  function _array_without_holes$C(arr) {
16201
- if (Array.isArray(arr)) return _array_like_to_array$D(arr);
16201
+ if (Array.isArray(arr)) return _array_like_to_array$E(arr);
16202
16202
  }
16203
16203
  function _iterable_to_array$C(iter) {
16204
16204
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
16205
16205
  }
16206
- function _iterable_to_array_limit$6(arr, i) {
16206
+ function _iterable_to_array_limit$7(arr, i) {
16207
16207
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
16208
16208
  if (_i == null) return;
16209
16209
  var _arr = [];
@@ -16227,25 +16227,25 @@ function _iterable_to_array_limit$6(arr, i) {
16227
16227
  }
16228
16228
  return _arr;
16229
16229
  }
16230
- function _non_iterable_rest$6() {
16230
+ function _non_iterable_rest$7() {
16231
16231
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
16232
16232
  }
16233
16233
  function _non_iterable_spread$C() {
16234
16234
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
16235
16235
  }
16236
- function _sliced_to_array$6(arr, i) {
16237
- return _array_with_holes$6(arr) || _iterable_to_array_limit$6(arr, i) || _unsupported_iterable_to_array$D(arr, i) || _non_iterable_rest$6();
16236
+ function _sliced_to_array$7(arr, i) {
16237
+ return _array_with_holes$7(arr) || _iterable_to_array_limit$7(arr, i) || _unsupported_iterable_to_array$E(arr, i) || _non_iterable_rest$7();
16238
16238
  }
16239
16239
  function _to_consumable_array$C(arr) {
16240
- return _array_without_holes$C(arr) || _iterable_to_array$C(arr) || _unsupported_iterable_to_array$D(arr) || _non_iterable_spread$C();
16240
+ return _array_without_holes$C(arr) || _iterable_to_array$C(arr) || _unsupported_iterable_to_array$E(arr) || _non_iterable_spread$C();
16241
16241
  }
16242
- function _unsupported_iterable_to_array$D(o, minLen) {
16242
+ function _unsupported_iterable_to_array$E(o, minLen) {
16243
16243
  if (!o) return;
16244
- if (typeof o === "string") return _array_like_to_array$D(o, minLen);
16244
+ if (typeof o === "string") return _array_like_to_array$E(o, minLen);
16245
16245
  var n = Object.prototype.toString.call(o).slice(8, -1);
16246
16246
  if (n === "Object" && o.constructor) n = o.constructor.name;
16247
16247
  if (n === "Map" || n === "Set") return Array.from(n);
16248
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$D(o, minLen);
16248
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$E(o, minLen);
16249
16249
  }
16250
16250
  var UTIL_ROLE_PATH = 'packages/util/src/lib/auth/auth.role.ts';
16251
16251
  var STORAGE_CLAIM_PATH = 'packages/firebase/src/lib/model/storagefile/storagefile.upload.claims.ts';
@@ -16368,7 +16368,7 @@ var DEMO_CLAIMS_PATH = 'components/demo-firebase/src/lib/auth/claims.ts';
16368
16368
  */ var BUILTIN_AUTH_SCOPES = CALL_MODEL_OIDC_SCOPES.map(function(scope) {
16369
16369
  var _Object_entries_find;
16370
16370
  var callType = ((_Object_entries_find = Object.entries(CALL_MODEL_OIDC_SCOPE_FOR_CALL_TYPE).find(function(param) {
16371
- var _param = _sliced_to_array$6(param, 2), s = _param[1];
16371
+ var _param = _sliced_to_array$7(param, 2), s = _param[1];
16372
16372
  return s === scope;
16373
16373
  })) !== null && _Object_entries_find !== void 0 ? _Object_entries_find : [])[0];
16374
16374
  var result = {
@@ -20818,13 +20818,13 @@ function identifierName(node) {
20818
20818
  return result;
20819
20819
  }
20820
20820
 
20821
- function _array_like_to_array$C(arr, len) {
20821
+ function _array_like_to_array$D(arr, len) {
20822
20822
  if (len == null || len > arr.length) len = arr.length;
20823
20823
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
20824
20824
  return arr2;
20825
20825
  }
20826
20826
  function _array_without_holes$B(arr) {
20827
- if (Array.isArray(arr)) return _array_like_to_array$C(arr);
20827
+ if (Array.isArray(arr)) return _array_like_to_array$D(arr);
20828
20828
  }
20829
20829
  function _iterable_to_array$B(iter) {
20830
20830
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -20833,15 +20833,15 @@ function _non_iterable_spread$B() {
20833
20833
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
20834
20834
  }
20835
20835
  function _to_consumable_array$B(arr) {
20836
- return _array_without_holes$B(arr) || _iterable_to_array$B(arr) || _unsupported_iterable_to_array$C(arr) || _non_iterable_spread$B();
20836
+ return _array_without_holes$B(arr) || _iterable_to_array$B(arr) || _unsupported_iterable_to_array$D(arr) || _non_iterable_spread$B();
20837
20837
  }
20838
- function _unsupported_iterable_to_array$C(o, minLen) {
20838
+ function _unsupported_iterable_to_array$D(o, minLen) {
20839
20839
  if (!o) return;
20840
- if (typeof o === "string") return _array_like_to_array$C(o, minLen);
20840
+ if (typeof o === "string") return _array_like_to_array$D(o, minLen);
20841
20841
  var n = Object.prototype.toString.call(o).slice(8, -1);
20842
20842
  if (n === "Object" && o.constructor) n = o.constructor.name;
20843
20843
  if (n === "Map" || n === "Set") return Array.from(n);
20844
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$C(o, minLen);
20844
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$D(o, minLen);
20845
20845
  }
20846
20846
  var CONTAINER_SUFFIX = 'FirestoreCollections';
20847
20847
  var MODEL_NAME_RE = /\b([A-Z][A-Za-z0-9]*)FirestoreCollection(?:Factory|Group)?\b/g;
@@ -20978,13 +20978,13 @@ function extractGroupModelNames(text) {
20978
20978
  });
20979
20979
  }
20980
20980
 
20981
- function _array_like_to_array$B(arr, len) {
20981
+ function _array_like_to_array$C(arr, len) {
20982
20982
  if (len == null || len > arr.length) len = arr.length;
20983
20983
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
20984
20984
  return arr2;
20985
20985
  }
20986
20986
  function _array_without_holes$A(arr) {
20987
- if (Array.isArray(arr)) return _array_like_to_array$B(arr);
20987
+ if (Array.isArray(arr)) return _array_like_to_array$C(arr);
20988
20988
  }
20989
20989
  function _iterable_to_array$A(iter) {
20990
20990
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -20993,15 +20993,15 @@ function _non_iterable_spread$A() {
20993
20993
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
20994
20994
  }
20995
20995
  function _to_consumable_array$A(arr) {
20996
- return _array_without_holes$A(arr) || _iterable_to_array$A(arr) || _unsupported_iterable_to_array$B(arr) || _non_iterable_spread$A();
20996
+ return _array_without_holes$A(arr) || _iterable_to_array$A(arr) || _unsupported_iterable_to_array$C(arr) || _non_iterable_spread$A();
20997
20997
  }
20998
- function _unsupported_iterable_to_array$B(o, minLen) {
20998
+ function _unsupported_iterable_to_array$C(o, minLen) {
20999
20999
  if (!o) return;
21000
- if (typeof o === "string") return _array_like_to_array$B(o, minLen);
21000
+ if (typeof o === "string") return _array_like_to_array$C(o, minLen);
21001
21001
  var n = Object.prototype.toString.call(o).slice(8, -1);
21002
21002
  if (n === "Object" && o.constructor) n = o.constructor.name;
21003
21003
  if (n === "Map" || n === "Set") return Array.from(n);
21004
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$B(o, minLen);
21004
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$C(o, minLen);
21005
21005
  }
21006
21006
  // MARK: Tagged-doc detection
21007
21007
  /**
@@ -21845,13 +21845,13 @@ function detectKind(fn) {
21845
21845
  return result;
21846
21846
  }
21847
21847
 
21848
- function _array_like_to_array$A(arr, len) {
21848
+ function _array_like_to_array$B(arr, len) {
21849
21849
  if (len == null || len > arr.length) len = arr.length;
21850
21850
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
21851
21851
  return arr2;
21852
21852
  }
21853
21853
  function _array_without_holes$z(arr) {
21854
- if (Array.isArray(arr)) return _array_like_to_array$A(arr);
21854
+ if (Array.isArray(arr)) return _array_like_to_array$B(arr);
21855
21855
  }
21856
21856
  function asyncGeneratorStep$T(gen, resolve, reject, _next, _throw, key, arg) {
21857
21857
  try {
@@ -21944,15 +21944,15 @@ function _object_spread_props$g(target, source) {
21944
21944
  return target;
21945
21945
  }
21946
21946
  function _to_consumable_array$z(arr) {
21947
- return _array_without_holes$z(arr) || _iterable_to_array$z(arr) || _unsupported_iterable_to_array$A(arr) || _non_iterable_spread$z();
21947
+ return _array_without_holes$z(arr) || _iterable_to_array$z(arr) || _unsupported_iterable_to_array$B(arr) || _non_iterable_spread$z();
21948
21948
  }
21949
- function _unsupported_iterable_to_array$A(o, minLen) {
21949
+ function _unsupported_iterable_to_array$B(o, minLen) {
21950
21950
  if (!o) return;
21951
- if (typeof o === "string") return _array_like_to_array$A(o, minLen);
21951
+ if (typeof o === "string") return _array_like_to_array$B(o, minLen);
21952
21952
  var n = Object.prototype.toString.call(o).slice(8, -1);
21953
21953
  if (n === "Object" && o.constructor) n = o.constructor.name;
21954
21954
  if (n === "Map" || n === "Set") return Array.from(n);
21955
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$A(o, minLen);
21955
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$B(o, minLen);
21956
21956
  }
21957
21957
  function _ts_generator$T(thisArg, body) {
21958
21958
  var f, y, t, _ = {
@@ -22842,13 +22842,13 @@ function collectIfSourceFile(name, full, out) {
22842
22842
  })();
22843
22843
  }
22844
22844
 
22845
- function _array_like_to_array$z(arr, len) {
22845
+ function _array_like_to_array$A(arr, len) {
22846
22846
  if (len == null || len > arr.length) len = arr.length;
22847
22847
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
22848
22848
  return arr2;
22849
22849
  }
22850
22850
  function _array_without_holes$y(arr) {
22851
- if (Array.isArray(arr)) return _array_like_to_array$z(arr);
22851
+ if (Array.isArray(arr)) return _array_like_to_array$A(arr);
22852
22852
  }
22853
22853
  function asyncGeneratorStep$S(gen, resolve, reject, _next, _throw, key, arg) {
22854
22854
  try {
@@ -22894,15 +22894,15 @@ function _non_iterable_spread$y() {
22894
22894
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
22895
22895
  }
22896
22896
  function _to_consumable_array$y(arr) {
22897
- return _array_without_holes$y(arr) || _iterable_to_array$y(arr) || _unsupported_iterable_to_array$z(arr) || _non_iterable_spread$y();
22897
+ return _array_without_holes$y(arr) || _iterable_to_array$y(arr) || _unsupported_iterable_to_array$A(arr) || _non_iterable_spread$y();
22898
22898
  }
22899
- function _unsupported_iterable_to_array$z(o, minLen) {
22899
+ function _unsupported_iterable_to_array$A(o, minLen) {
22900
22900
  if (!o) return;
22901
- if (typeof o === "string") return _array_like_to_array$z(o, minLen);
22901
+ if (typeof o === "string") return _array_like_to_array$A(o, minLen);
22902
22902
  var n = Object.prototype.toString.call(o).slice(8, -1);
22903
22903
  if (n === "Object" && o.constructor) n = o.constructor.name;
22904
22904
  if (n === "Map" || n === "Set") return Array.from(n);
22905
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$z(o, minLen);
22905
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$A(o, minLen);
22906
22906
  }
22907
22907
  function _ts_generator$S(thisArg, body) {
22908
22908
  var f, y, t, _ = {
@@ -23376,15 +23376,15 @@ function buildCatalog(input) {
23376
23376
  * and the CLI agree on the discovery path.
23377
23377
  */ var SCAN_CONFIG_FILENAME$1 = 'dbx-mcp.scan.json';
23378
23378
 
23379
- function _array_like_to_array$y(arr, len) {
23379
+ function _array_like_to_array$z(arr, len) {
23380
23380
  if (len == null || len > arr.length) len = arr.length;
23381
23381
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
23382
23382
  return arr2;
23383
23383
  }
23384
- function _array_with_holes$5(arr) {
23384
+ function _array_with_holes$6(arr) {
23385
23385
  if (Array.isArray(arr)) return arr;
23386
23386
  }
23387
- function _iterable_to_array_limit$5(arr, i) {
23387
+ function _iterable_to_array_limit$6(arr, i) {
23388
23388
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
23389
23389
  if (_i == null) return;
23390
23390
  var _arr = [];
@@ -23408,19 +23408,19 @@ function _iterable_to_array_limit$5(arr, i) {
23408
23408
  }
23409
23409
  return _arr;
23410
23410
  }
23411
- function _non_iterable_rest$5() {
23411
+ function _non_iterable_rest$6() {
23412
23412
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
23413
23413
  }
23414
- function _sliced_to_array$5(arr, i) {
23415
- return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$y(arr, i) || _non_iterable_rest$5();
23414
+ function _sliced_to_array$6(arr, i) {
23415
+ return _array_with_holes$6(arr) || _iterable_to_array_limit$6(arr, i) || _unsupported_iterable_to_array$z(arr, i) || _non_iterable_rest$6();
23416
23416
  }
23417
- function _unsupported_iterable_to_array$y(o, minLen) {
23417
+ function _unsupported_iterable_to_array$z(o, minLen) {
23418
23418
  if (!o) return;
23419
- if (typeof o === "string") return _array_like_to_array$y(o, minLen);
23419
+ if (typeof o === "string") return _array_like_to_array$z(o, minLen);
23420
23420
  var n = Object.prototype.toString.call(o).slice(8, -1);
23421
23421
  if (n === "Object" && o.constructor) n = o.constructor.name;
23422
23422
  if (n === "Map" || n === "Set") return Array.from(n);
23423
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$y(o, minLen);
23423
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$z(o, minLen);
23424
23424
  }
23425
23425
  var SEMANTIC_TYPE_MARKER = 'semanticType';
23426
23426
  var SEMANTIC_TOPIC_TAG = 'semanticTopic';
@@ -23923,7 +23923,7 @@ function buildEntryFromInterface(input) {
23923
23923
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
23924
23924
  try {
23925
23925
  for(var _iterator = sourceFile.getExportedDeclarations()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
23926
- var _step_value = _sliced_to_array$5(_step.value, 1), name = _step_value[0];
23926
+ var _step_value = _sliced_to_array$6(_step.value, 1), name = _step_value[0];
23927
23927
  names.add(name);
23928
23928
  }
23929
23929
  } catch (err) {
@@ -24889,13 +24889,13 @@ function parseJsonString(raw) {
24889
24889
  return new RegExp("^".concat(body, "$"));
24890
24890
  }
24891
24891
 
24892
- function _array_like_to_array$x(arr, len) {
24892
+ function _array_like_to_array$y(arr, len) {
24893
24893
  if (len == null || len > arr.length) len = arr.length;
24894
24894
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
24895
24895
  return arr2;
24896
24896
  }
24897
24897
  function _array_without_holes$x(arr) {
24898
- if (Array.isArray(arr)) return _array_like_to_array$x(arr);
24898
+ if (Array.isArray(arr)) return _array_like_to_array$y(arr);
24899
24899
  }
24900
24900
  function asyncGeneratorStep$Q(gen, resolve, reject, _next, _throw, key, arg) {
24901
24901
  try {
@@ -24969,15 +24969,15 @@ function _object_spread$q(target) {
24969
24969
  return target;
24970
24970
  }
24971
24971
  function _to_consumable_array$x(arr) {
24972
- return _array_without_holes$x(arr) || _iterable_to_array$x(arr) || _unsupported_iterable_to_array$x(arr) || _non_iterable_spread$x();
24972
+ return _array_without_holes$x(arr) || _iterable_to_array$x(arr) || _unsupported_iterable_to_array$y(arr) || _non_iterable_spread$x();
24973
24973
  }
24974
- function _unsupported_iterable_to_array$x(o, minLen) {
24974
+ function _unsupported_iterable_to_array$y(o, minLen) {
24975
24975
  if (!o) return;
24976
- if (typeof o === "string") return _array_like_to_array$x(o, minLen);
24976
+ if (typeof o === "string") return _array_like_to_array$y(o, minLen);
24977
24977
  var n = Object.prototype.toString.call(o).slice(8, -1);
24978
24978
  if (n === "Object" && o.constructor) n = o.constructor.name;
24979
24979
  if (n === "Map" || n === "Set") return Array.from(n);
24980
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$x(o, minLen);
24980
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$y(o, minLen);
24981
24981
  }
24982
24982
  function _ts_generator$Q(thisArg, body) {
24983
24983
  var f, y, t, _ = {
@@ -26920,13 +26920,13 @@ function extractOutputs$2(decl) {
26920
26920
  * the filters CLI does not have to import from a sibling scan config module.
26921
26921
  */ var FILTERS_SCAN_CONFIG_FILENAME = 'dbx-mcp.scan.json';
26922
26922
 
26923
- function _array_like_to_array$w(arr, len) {
26923
+ function _array_like_to_array$x(arr, len) {
26924
26924
  if (len == null || len > arr.length) len = arr.length;
26925
26925
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
26926
26926
  return arr2;
26927
26927
  }
26928
26928
  function _array_without_holes$w(arr) {
26929
- if (Array.isArray(arr)) return _array_like_to_array$w(arr);
26929
+ if (Array.isArray(arr)) return _array_like_to_array$x(arr);
26930
26930
  }
26931
26931
  function asyncGeneratorStep$O(gen, resolve, reject, _next, _throw, key, arg) {
26932
26932
  try {
@@ -27000,15 +27000,15 @@ function _object_spread$m(target) {
27000
27000
  return target;
27001
27001
  }
27002
27002
  function _to_consumable_array$w(arr) {
27003
- return _array_without_holes$w(arr) || _iterable_to_array$w(arr) || _unsupported_iterable_to_array$w(arr) || _non_iterable_spread$w();
27003
+ return _array_without_holes$w(arr) || _iterable_to_array$w(arr) || _unsupported_iterable_to_array$x(arr) || _non_iterable_spread$w();
27004
27004
  }
27005
- function _unsupported_iterable_to_array$w(o, minLen) {
27005
+ function _unsupported_iterable_to_array$x(o, minLen) {
27006
27006
  if (!o) return;
27007
- if (typeof o === "string") return _array_like_to_array$w(o, minLen);
27007
+ if (typeof o === "string") return _array_like_to_array$x(o, minLen);
27008
27008
  var n = Object.prototype.toString.call(o).slice(8, -1);
27009
27009
  if (n === "Object" && o.constructor) n = o.constructor.name;
27010
27010
  if (n === "Map" || n === "Set") return Array.from(n);
27011
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$w(o, minLen);
27011
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$x(o, minLen);
27012
27012
  }
27013
27013
  function _ts_generator$O(thisArg, body) {
27014
27014
  var f, y, t, _ = {
@@ -28880,13 +28880,13 @@ function readMethodDescription(method) {
28880
28880
  * Filename the loader looks for at `${projectRoot}/`.
28881
28881
  */ var ACTIONS_SCAN_CONFIG_FILENAME = 'dbx-mcp.scan.json';
28882
28882
 
28883
- function _array_like_to_array$v(arr, len) {
28883
+ function _array_like_to_array$w(arr, len) {
28884
28884
  if (len == null || len > arr.length) len = arr.length;
28885
28885
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
28886
28886
  return arr2;
28887
28887
  }
28888
28888
  function _array_without_holes$v(arr) {
28889
- if (Array.isArray(arr)) return _array_like_to_array$v(arr);
28889
+ if (Array.isArray(arr)) return _array_like_to_array$w(arr);
28890
28890
  }
28891
28891
  function asyncGeneratorStep$L(gen, resolve, reject, _next, _throw, key, arg) {
28892
28892
  try {
@@ -28960,15 +28960,15 @@ function _object_spread$j(target) {
28960
28960
  return target;
28961
28961
  }
28962
28962
  function _to_consumable_array$v(arr) {
28963
- return _array_without_holes$v(arr) || _iterable_to_array$v(arr) || _unsupported_iterable_to_array$v(arr) || _non_iterable_spread$v();
28963
+ return _array_without_holes$v(arr) || _iterable_to_array$v(arr) || _unsupported_iterable_to_array$w(arr) || _non_iterable_spread$v();
28964
28964
  }
28965
- function _unsupported_iterable_to_array$v(o, minLen) {
28965
+ function _unsupported_iterable_to_array$w(o, minLen) {
28966
28966
  if (!o) return;
28967
- if (typeof o === "string") return _array_like_to_array$v(o, minLen);
28967
+ if (typeof o === "string") return _array_like_to_array$w(o, minLen);
28968
28968
  var n = Object.prototype.toString.call(o).slice(8, -1);
28969
28969
  if (n === "Object" && o.constructor) n = o.constructor.name;
28970
28970
  if (n === "Map" || n === "Set") return Array.from(n);
28971
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$v(o, minLen);
28971
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$w(o, minLen);
28972
28972
  }
28973
28973
  function _ts_generator$L(thisArg, body) {
28974
28974
  var f, y, t, _ = {
@@ -29463,6 +29463,14 @@ function formatExtractWarning$7(warning) {
29463
29463
  return result;
29464
29464
  }
29465
29465
 
29466
+ function _array_like_to_array$v(arr, len) {
29467
+ if (len == null || len > arr.length) len = arr.length;
29468
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
29469
+ return arr2;
29470
+ }
29471
+ function _array_with_holes$5(arr) {
29472
+ if (Array.isArray(arr)) return arr;
29473
+ }
29466
29474
  function _define_property$i(obj, key, value) {
29467
29475
  if (key in obj) {
29468
29476
  Object.defineProperty(obj, key, {
@@ -29476,6 +29484,33 @@ function _define_property$i(obj, key, value) {
29476
29484
  }
29477
29485
  return obj;
29478
29486
  }
29487
+ function _iterable_to_array_limit$5(arr, i) {
29488
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
29489
+ if (_i == null) return;
29490
+ var _arr = [];
29491
+ var _n = true;
29492
+ var _d = false;
29493
+ var _s, _e;
29494
+ try {
29495
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
29496
+ _arr.push(_s.value);
29497
+ if (i && _arr.length === i) break;
29498
+ }
29499
+ } catch (err) {
29500
+ _d = true;
29501
+ _e = err;
29502
+ } finally{
29503
+ try {
29504
+ if (!_n && _i["return"] != null) _i["return"]();
29505
+ } finally{
29506
+ if (_d) throw _e;
29507
+ }
29508
+ }
29509
+ return _arr;
29510
+ }
29511
+ function _non_iterable_rest$5() {
29512
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
29513
+ }
29479
29514
  function _object_spread$i(target) {
29480
29515
  for(var i = 1; i < arguments.length; i++){
29481
29516
  var source = arguments[i] != null ? arguments[i] : {};
@@ -29510,6 +29545,17 @@ function _object_spread_props$c(target, source) {
29510
29545
  }
29511
29546
  return target;
29512
29547
  }
29548
+ function _sliced_to_array$5(arr, i) {
29549
+ return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$v(arr, i) || _non_iterable_rest$5();
29550
+ }
29551
+ function _unsupported_iterable_to_array$v(o, minLen) {
29552
+ if (!o) return;
29553
+ if (typeof o === "string") return _array_like_to_array$v(o, minLen);
29554
+ var n = Object.prototype.toString.call(o).slice(8, -1);
29555
+ if (n === "Object" && o.constructor) n = o.constructor.name;
29556
+ if (n === "Map" || n === "Set") return Array.from(n);
29557
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$v(o, minLen);
29558
+ }
29513
29559
  // MARK: Tag names
29514
29560
  var AUTH_CLAIMS_APP_TAG = 'dbxAuthClaimsApp';
29515
29561
  var AUTH_CLAIMS_SERVICE_TAG = 'dbxAuthClaimsService';
@@ -29528,6 +29574,11 @@ var AUTH_ROLE_CLAIMS_SERVICE_FN = 'authRoleClaimsService';
29528
29574
  */ function extractAuthEntries(input) {
29529
29575
  var project = input.project, knownRoles = input.knownRoles;
29530
29576
  var warnings = [];
29577
+ // Resolve role constants declared in the scanned source itself — downstream
29578
+ // apps define their own role consts in their `claims.ts`. Built-ins win on
29579
+ // conflict so an app can never shadow a `@dereekb/util` role string.
29580
+ var localRoleConsts = collectLocalRoleConsts(project);
29581
+ var mergedKnownRoles = mergeKnownRoles(knownRoles, localRoleConsts.scalars);
29531
29582
  var taggedAppDecls = collectTaggedAppDecls(project, warnings);
29532
29583
  var serviceMappings = collectServiceMappings(project, warnings, taggedAppDecls);
29533
29584
  var apps = [];
@@ -29544,7 +29595,8 @@ var AUTH_ROLE_CLAIMS_SERVICE_FN = 'authRoleClaimsService';
29544
29595
  interfaceName: tagged.interfaceName,
29545
29596
  filePath: tagged.filePath,
29546
29597
  service: serviceForApp,
29547
- knownRoles: knownRoles,
29598
+ knownRoles: mergedKnownRoles,
29599
+ localArrayRoles: localRoleConsts.arrays,
29548
29600
  warnings: warnings
29549
29601
  });
29550
29602
  var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
@@ -30024,6 +30076,16 @@ function readRoleAtom(node) {
30024
30076
  text: node.getText(),
30025
30077
  resolvable: false
30026
30078
  };
30079
+ } else if (Node.isSpreadElement(node)) {
30080
+ // `...ALL_ADMIN_ROLES` — carry the spread source through as an unresolved
30081
+ // const so the array-aggregate resolver can flatten it later.
30082
+ var inner = node.getExpression();
30083
+ if (Node.isIdentifier(inner)) {
30084
+ result = {
30085
+ text: inner.getText(),
30086
+ resolvable: false
30087
+ };
30088
+ }
30027
30089
  }
30028
30090
  return result;
30029
30091
  }
@@ -30155,7 +30217,7 @@ function collectPropertySignaturesFromTypeNode(typeNode, sink) {
30155
30217
  }
30156
30218
  }
30157
30219
  function buildClaimFromProperty(input) {
30158
- var property = input.property, app = input.app, interfaceName = input.interfaceName, filePath = input.filePath, service = input.service, knownRoles = input.knownRoles, warnings = input.warnings;
30220
+ var property = input.property, app = input.app, interfaceName = input.interfaceName, filePath = input.filePath, service = input.service, knownRoles = input.knownRoles, localArrayRoles = input.localArrayRoles, warnings = input.warnings;
30159
30221
  var tagState = readPropertyTagState(property.getJsDocs());
30160
30222
  var result;
30161
30223
  if (tagState.hasMarker) {
@@ -30183,6 +30245,7 @@ function buildClaimFromProperty(input) {
30183
30245
  mapping: parsed.mapping,
30184
30246
  unresolvedRoleConsts: parsed.unresolvedRoleConsts,
30185
30247
  knownRoles: knownRoles,
30248
+ localArrayRoles: localArrayRoles,
30186
30249
  app: app,
30187
30250
  key: key,
30188
30251
  filePath: filePath,
@@ -30204,7 +30267,7 @@ function buildClaimFromProperty(input) {
30204
30267
  return result;
30205
30268
  }
30206
30269
  function resolveMappingRoles(input) {
30207
- var mapping = input.mapping, knownRoles = input.knownRoles, app = input.app, key = input.key, filePath = input.filePath, line = input.line, warnings = input.warnings;
30270
+ var mapping = input.mapping, knownRoles = input.knownRoles, localArrayRoles = input.localArrayRoles, app = input.app, key = input.key, filePath = input.filePath, line = input.line, warnings = input.warnings;
30208
30271
  var resolved = [];
30209
30272
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
30210
30273
  try {
@@ -30213,15 +30276,45 @@ function resolveMappingRoles(input) {
30213
30276
  if (knownRoles.has(role)) {
30214
30277
  resolved.push(knownRoles.get(role));
30215
30278
  } else if (input.unresolvedRoleConsts.includes(role)) {
30216
- warnings.push({
30217
- kind: 'unresolved-role-const',
30218
- app: app,
30219
- key: key,
30220
- constName: role,
30221
- filePath: filePath,
30222
- line: line
30279
+ // Not a scalar const — try resolving it as a project-local array-aggregate
30280
+ // const (e.g. `ALL_ADMIN_ROLES = [...]`) before treating it as unresolved.
30281
+ var aggregate = resolveRoleConstByName(role, {
30282
+ knownRoles: knownRoles,
30283
+ localArrayRoles: localArrayRoles,
30284
+ seen: new Set()
30223
30285
  });
30224
- resolved.push(role);
30286
+ if (aggregate.unresolved.length === 0) {
30287
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
30288
+ try {
30289
+ for(var _iterator1 = aggregate.roles[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
30290
+ var aggregateRole = _step1.value;
30291
+ resolved.push(aggregateRole);
30292
+ }
30293
+ } catch (err) {
30294
+ _didIteratorError1 = true;
30295
+ _iteratorError1 = err;
30296
+ } finally{
30297
+ try {
30298
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
30299
+ _iterator1.return();
30300
+ }
30301
+ } finally{
30302
+ if (_didIteratorError1) {
30303
+ throw _iteratorError1;
30304
+ }
30305
+ }
30306
+ }
30307
+ } else {
30308
+ warnings.push({
30309
+ kind: 'unresolved-role-const',
30310
+ app: app,
30311
+ key: key,
30312
+ constName: role,
30313
+ filePath: filePath,
30314
+ line: line
30315
+ });
30316
+ resolved.push(role);
30317
+ }
30225
30318
  } else {
30226
30319
  resolved.push(role);
30227
30320
  }
@@ -30244,6 +30337,293 @@ function resolveMappingRoles(input) {
30244
30337
  roles: resolved
30245
30338
  });
30246
30339
  }
30340
+ /**
30341
+ * Walks every source file in the project for exported variable statements
30342
+ * whose declaration initializer is a string literal or an array literal,
30343
+ * building the {@link LocalRoleConsts} maps used to resolve app-defined role
30344
+ * constants. Purely syntactic — only initializer AST nodes are read.
30345
+ *
30346
+ * @param project - The ts-morph project to scan.
30347
+ * @returns The collected scalar and array role-const maps.
30348
+ */ function collectLocalRoleConsts(project) {
30349
+ var scalars = new Map();
30350
+ var arrays = new Map();
30351
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
30352
+ try {
30353
+ for(var _iterator = project.getSourceFiles()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
30354
+ var sourceFile = _step.value;
30355
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
30356
+ try {
30357
+ for(var _iterator1 = sourceFile.getVariableStatements()[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
30358
+ var stmt = _step1.value;
30359
+ if (!stmt.isExported()) continue;
30360
+ var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
30361
+ try {
30362
+ for(var _iterator2 = stmt.getDeclarations()[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true){
30363
+ var decl = _step2.value;
30364
+ var initializer = decl.getInitializer();
30365
+ var name = decl.getName();
30366
+ if (initializer === undefined) continue;
30367
+ if (Node.isStringLiteral(initializer) || Node.isNoSubstitutionTemplateLiteral(initializer)) {
30368
+ if (!scalars.has(name)) scalars.set(name, initializer.getLiteralText());
30369
+ } else if (Node.isArrayLiteralExpression(initializer) && !arrays.has(name)) arrays.set(name, initializer);
30370
+ }
30371
+ } catch (err) {
30372
+ _didIteratorError2 = true;
30373
+ _iteratorError2 = err;
30374
+ } finally{
30375
+ try {
30376
+ if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
30377
+ _iterator2.return();
30378
+ }
30379
+ } finally{
30380
+ if (_didIteratorError2) {
30381
+ throw _iteratorError2;
30382
+ }
30383
+ }
30384
+ }
30385
+ }
30386
+ } catch (err) {
30387
+ _didIteratorError1 = true;
30388
+ _iteratorError1 = err;
30389
+ } finally{
30390
+ try {
30391
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
30392
+ _iterator1.return();
30393
+ }
30394
+ } finally{
30395
+ if (_didIteratorError1) {
30396
+ throw _iteratorError1;
30397
+ }
30398
+ }
30399
+ }
30400
+ }
30401
+ } catch (err) {
30402
+ _didIteratorError = true;
30403
+ _iteratorError = err;
30404
+ } finally{
30405
+ try {
30406
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
30407
+ _iterator.return();
30408
+ }
30409
+ } finally{
30410
+ if (_didIteratorError) {
30411
+ throw _iteratorError;
30412
+ }
30413
+ }
30414
+ }
30415
+ return {
30416
+ scalars: scalars,
30417
+ arrays: arrays
30418
+ };
30419
+ }
30420
+ /**
30421
+ * Merges the project-local scalar role consts under the built-in map so the
30422
+ * built-ins always win on conflict (a downstream file can never redefine a
30423
+ * `@dereekb/util` role string).
30424
+ *
30425
+ * @param builtins - The built-in `constName → role` map supplied by the caller.
30426
+ * @param localScalars - Project-local string-literal role consts.
30427
+ * @returns The merged map with built-ins taking precedence.
30428
+ */ function mergeKnownRoles(builtins, localScalars) {
30429
+ var out = new Map();
30430
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
30431
+ try {
30432
+ for(var _iterator = localScalars[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
30433
+ var _step_value = _sliced_to_array$5(_step.value, 2), name = _step_value[0], role = _step_value[1];
30434
+ out.set(name, role);
30435
+ }
30436
+ } catch (err) {
30437
+ _didIteratorError = true;
30438
+ _iteratorError = err;
30439
+ } finally{
30440
+ try {
30441
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
30442
+ _iterator.return();
30443
+ }
30444
+ } finally{
30445
+ if (_didIteratorError) {
30446
+ throw _iteratorError;
30447
+ }
30448
+ }
30449
+ }
30450
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
30451
+ try {
30452
+ for(var _iterator1 = builtins[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
30453
+ var _step_value1 = _sliced_to_array$5(_step1.value, 2), name1 = _step_value1[0], role1 = _step_value1[1];
30454
+ out.set(name1, role1);
30455
+ }
30456
+ } catch (err) {
30457
+ _didIteratorError1 = true;
30458
+ _iteratorError1 = err;
30459
+ } finally{
30460
+ try {
30461
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
30462
+ _iterator1.return();
30463
+ }
30464
+ } finally{
30465
+ if (_didIteratorError1) {
30466
+ throw _iteratorError1;
30467
+ }
30468
+ }
30469
+ }
30470
+ return out;
30471
+ }
30472
+ var EMPTY_ROLE_CONST_RESOLUTION = {
30473
+ roles: [],
30474
+ unresolved: []
30475
+ };
30476
+ /**
30477
+ * Resolves a role-constant name to its role string(s). Scalar consts resolve
30478
+ * via `knownRoles`; array-aggregate consts are flattened recursively. A name
30479
+ * that matches neither (e.g. imported from another package with no literal in
30480
+ * scope) is reported in `unresolved`. Stays syntactic — no type checker.
30481
+ *
30482
+ * @param name - The role-constant identifier text.
30483
+ * @param ctx - The resolution context (known roles, local arrays, cycle guard).
30484
+ * @returns The resolved roles and any unresolved const names.
30485
+ */ function resolveRoleConstByName(name, ctx) {
30486
+ var result;
30487
+ var scalar = ctx.knownRoles.get(name);
30488
+ if (scalar !== undefined) {
30489
+ result = {
30490
+ roles: [
30491
+ scalar
30492
+ ],
30493
+ unresolved: []
30494
+ };
30495
+ } else {
30496
+ var arrayExpr = ctx.localArrayRoles.get(name);
30497
+ if (arrayExpr === undefined) {
30498
+ result = {
30499
+ roles: [],
30500
+ unresolved: [
30501
+ name
30502
+ ]
30503
+ };
30504
+ } else if (ctx.seen.has(name)) {
30505
+ result = EMPTY_ROLE_CONST_RESOLUTION; // cycle — stop without re-flagging
30506
+ } else {
30507
+ var nextSeen = new Set(ctx.seen);
30508
+ nextSeen.add(name);
30509
+ result = resolveRoleArrayLiteral(arrayExpr, _object_spread_props$c(_object_spread$i({}, ctx), {
30510
+ seen: nextSeen
30511
+ }));
30512
+ }
30513
+ }
30514
+ return result;
30515
+ }
30516
+ /**
30517
+ * Flattens an array-literal role aggregate into resolved role strings,
30518
+ * recursing through identifier elements and spreads of other array consts.
30519
+ *
30520
+ * @param arrayExpr - The array literal to flatten.
30521
+ * @param ctx - The resolution context.
30522
+ * @returns The flattened roles and any unresolved const names.
30523
+ */ function resolveRoleArrayLiteral(arrayExpr, ctx) {
30524
+ var roles = [];
30525
+ var unresolved = [];
30526
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
30527
+ try {
30528
+ for(var _iterator = arrayExpr.getElements()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
30529
+ var element = _step.value;
30530
+ var elementResult = resolveRoleArrayElement(element, ctx);
30531
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
30532
+ try {
30533
+ for(var _iterator1 = elementResult.roles[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
30534
+ var role = _step1.value;
30535
+ roles.push(role);
30536
+ }
30537
+ } catch (err) {
30538
+ _didIteratorError1 = true;
30539
+ _iteratorError1 = err;
30540
+ } finally{
30541
+ try {
30542
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
30543
+ _iterator1.return();
30544
+ }
30545
+ } finally{
30546
+ if (_didIteratorError1) {
30547
+ throw _iteratorError1;
30548
+ }
30549
+ }
30550
+ }
30551
+ var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
30552
+ try {
30553
+ for(var _iterator2 = elementResult.unresolved[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true){
30554
+ var name = _step2.value;
30555
+ unresolved.push(name);
30556
+ }
30557
+ } catch (err) {
30558
+ _didIteratorError2 = true;
30559
+ _iteratorError2 = err;
30560
+ } finally{
30561
+ try {
30562
+ if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
30563
+ _iterator2.return();
30564
+ }
30565
+ } finally{
30566
+ if (_didIteratorError2) {
30567
+ throw _iteratorError2;
30568
+ }
30569
+ }
30570
+ }
30571
+ }
30572
+ } catch (err) {
30573
+ _didIteratorError = true;
30574
+ _iteratorError = err;
30575
+ } finally{
30576
+ try {
30577
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
30578
+ _iterator.return();
30579
+ }
30580
+ } finally{
30581
+ if (_didIteratorError) {
30582
+ throw _iteratorError;
30583
+ }
30584
+ }
30585
+ }
30586
+ return {
30587
+ roles: roles,
30588
+ unresolved: unresolved
30589
+ };
30590
+ }
30591
+ /**
30592
+ * Resolves a single element of a role array literal: a string literal yields
30593
+ * its value, an identifier resolves via {@link resolveRoleConstByName}, and a
30594
+ * spread flattens its identifier or inline-array source.
30595
+ *
30596
+ * @param element - The array element node.
30597
+ * @param ctx - The resolution context.
30598
+ * @returns The resolved roles and any unresolved const names for this element.
30599
+ */ function resolveRoleArrayElement(element, ctx) {
30600
+ var result = EMPTY_ROLE_CONST_RESOLUTION;
30601
+ if (Node.isStringLiteral(element) || Node.isNoSubstitutionTemplateLiteral(element)) {
30602
+ result = {
30603
+ roles: [
30604
+ element.getLiteralText()
30605
+ ],
30606
+ unresolved: []
30607
+ };
30608
+ } else if (Node.isIdentifier(element)) {
30609
+ result = resolveRoleConstByName(element.getText(), ctx);
30610
+ } else if (Node.isSpreadElement(element)) {
30611
+ var inner = element.getExpression();
30612
+ if (Node.isIdentifier(inner)) {
30613
+ result = resolveRoleConstByName(inner.getText(), ctx);
30614
+ } else if (Node.isArrayLiteralExpression(inner)) {
30615
+ result = resolveRoleArrayLiteral(inner, ctx);
30616
+ } else {
30617
+ result = {
30618
+ roles: [],
30619
+ unresolved: [
30620
+ inner.getText()
30621
+ ]
30622
+ };
30623
+ }
30624
+ }
30625
+ return result;
30626
+ }
30247
30627
  function readPropertyTagState(jsDocs) {
30248
30628
  var summaries = [];
30249
30629
  var tags = [];