@taiga-ui/addon-doc 3.60.0 → 3.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/bundles/taiga-ui-addon-doc-components.umd.js +45 -191
  2. package/bundles/taiga-ui-addon-doc-components.umd.js.map +1 -1
  3. package/bundles/taiga-ui-addon-doc-interfaces.umd.js +3 -3
  4. package/bundles/taiga-ui-addon-doc-interfaces.umd.js.map +1 -1
  5. package/bundles/taiga-ui-addon-doc-languages.umd.js +11 -11
  6. package/bundles/taiga-ui-addon-doc-languages.umd.js.map +1 -1
  7. package/bundles/taiga-ui-addon-doc-services.umd.js +438 -584
  8. package/bundles/taiga-ui-addon-doc-services.umd.js.map +1 -1
  9. package/bundles/taiga-ui-addon-doc-tokens.umd.js +25 -25
  10. package/bundles/taiga-ui-addon-doc-tokens.umd.js.map +1 -1
  11. package/bundles/taiga-ui-addon-doc-utils.umd.js +80 -226
  12. package/bundles/taiga-ui-addon-doc-utils.umd.js.map +1 -1
  13. package/esm2015/components/documentation/pipes/cleaner.pipe.js +3 -3
  14. package/esm2015/components/documentation/pipes/color.pipe.js +13 -13
  15. package/esm2015/components/documentation/pipes/inspect.pipe.js +4 -4
  16. package/esm2015/components/documentation/pipes/opacity.pipe.js +8 -8
  17. package/esm2015/components/documentation/pipes/optional.pipe.js +3 -3
  18. package/esm2015/components/documentation/pipes/primitive-polymorpheus-content.pipe.js +2 -2
  19. package/esm2015/components/documentation/pipes/strip-optional.pipe.js +3 -3
  20. package/esm2015/components/documentation/pipes/type-reference.pipe.js +3 -3
  21. package/esm2015/components/example/example-get-tabs.pipe.js +2 -2
  22. package/esm2015/components/example/example.options.js +2 -2
  23. package/esm2015/components/navigation/navigation.providers.js +4 -4
  24. package/esm2015/components/page/page.providers.js +4 -4
  25. package/esm2015/interfaces/page.js +4 -4
  26. package/esm2015/languages/russian.js +12 -12
  27. package/esm2015/services/theme-night.options.js +2 -2
  28. package/esm2015/services/theme-night.service.js +5 -5
  29. package/esm2015/services/theme.options.js +3 -3
  30. package/esm2015/services/theme.service.js +3 -3
  31. package/esm2015/tokens/code-actions.js +2 -2
  32. package/esm2015/tokens/code-editor.js +2 -2
  33. package/esm2015/tokens/doc-icons.js +6 -6
  34. package/esm2015/tokens/i18n.js +16 -16
  35. package/esm2015/tokens/logo.js +2 -2
  36. package/esm2015/tokens/scroll-behavior.js +2 -2
  37. package/esm2015/tokens/title.js +2 -2
  38. package/esm2015/utils/coerce-boolean.js +2 -2
  39. package/esm2015/utils/coerce-value.js +7 -7
  40. package/esm2015/utils/generate-routes.js +3 -3
  41. package/esm2015/utils/inspect.js +14 -14
  42. package/esm2015/utils/is-page-group.js +2 -2
  43. package/esm2015/utils/parse-code-block.js +3 -3
  44. package/esm2015/utils/sort-pages.js +3 -3
  45. package/esm2015/utils/to-flat-map-pages.js +3 -3
  46. package/esm2015/utils/transliterate-keyboard-layout.js +34 -34
  47. package/esm2015/utils/type-reference-parser.js +13 -13
  48. package/fesm2015/taiga-ui-addon-doc-components.js +39 -39
  49. package/fesm2015/taiga-ui-addon-doc-components.js.map +1 -1
  50. package/fesm2015/taiga-ui-addon-doc-interfaces.js +3 -3
  51. package/fesm2015/taiga-ui-addon-doc-interfaces.js.map +1 -1
  52. package/fesm2015/taiga-ui-addon-doc-languages.js +11 -11
  53. package/fesm2015/taiga-ui-addon-doc-languages.js.map +1 -1
  54. package/fesm2015/taiga-ui-addon-doc-services.js +9 -9
  55. package/fesm2015/taiga-ui-addon-doc-services.js.map +1 -1
  56. package/fesm2015/taiga-ui-addon-doc-tokens.js +25 -25
  57. package/fesm2015/taiga-ui-addon-doc-tokens.js.map +1 -1
  58. package/fesm2015/taiga-ui-addon-doc-utils.js +74 -74
  59. package/fesm2015/taiga-ui-addon-doc-utils.js.map +1 -1
  60. package/package.json +5 -5
@@ -9,23 +9,23 @@
9
9
  var MarkdownIt__default = /*#__PURE__*/_interopDefaultLegacy(MarkdownIt);
10
10
 
11
11
  function tuiCoerceValueIsTrue(value) {
12
- return (value === null || value === void 0 ? void 0 : value.toString()) === "true";
12
+ return (value === null || value === void 0 ? void 0 : value.toString()) === 'true';
13
13
  }
14
14
 
15
15
  function isEmptyParamValue(value) {
16
- return ["undefined", "null", "NaN"].includes(value);
16
+ return ['undefined', 'null', 'NaN'].includes(value);
17
17
  }
18
18
  function isBooleanParamValue(value) {
19
- return value === "true" || value === "false";
19
+ return value === 'true' || value === 'false';
20
20
  }
21
21
  function isNumberParamValue(value) {
22
- return !!value.trim() && !Number.isNaN(Number(value)) && !value.startsWith("+");
22
+ return !!value.trim() && !Number.isNaN(Number(value)) && !value.startsWith('+');
23
23
  }
24
24
  function isPossibleArray(value) {
25
- return value.startsWith("[") && value.endsWith("]");
25
+ return value.startsWith('[') && value.endsWith(']');
26
26
  }
27
27
  function isPossibleObject(value) {
28
- return value.startsWith("{") && value.endsWith("}");
28
+ return value.startsWith('{') && value.endsWith('}');
29
29
  }
30
30
  function tuiCoerceValue(value) {
31
31
  var prepared = String(value).trim();
@@ -33,7 +33,7 @@
33
33
  return null;
34
34
  }
35
35
  if (isBooleanParamValue(prepared)) {
36
- return String(prepared) === "true";
36
+ return String(prepared) === 'true';
37
37
  }
38
38
  if (isNumberParamValue(prepared)) {
39
39
  return Number(prepared);
@@ -52,11 +52,11 @@
52
52
  function tuiGenerateRoutes(type) {
53
53
  return [
54
54
  {
55
- path: "",
55
+ path: '',
56
56
  component: type,
57
57
  children: [
58
58
  {
59
- path: ":tab",
59
+ path: ':tab',
60
60
  component: type,
61
61
  },
62
62
  ],
@@ -66,26 +66,26 @@
66
66
 
67
67
  function inspectArray(array, depth) {
68
68
  if (depth === 0) {
69
- return "[\u2026]";
69
+ return '[]';
70
70
  }
71
- var result = "";
71
+ var result = '';
72
72
  var first = true;
73
73
  for (var index = 0; index < array.length; index++) {
74
74
  if (first) {
75
75
  first = false;
76
76
  }
77
77
  else {
78
- result += ", ";
78
+ result += ', ';
79
79
  }
80
- result += index in array ? tuiInspectAny(array[index], depth - 1) : "empty";
80
+ result += index in array ? tuiInspectAny(array[index], depth - 1) : 'empty';
81
81
  }
82
82
  return "[" + result + "]";
83
83
  }
84
84
  function inspectObject(object, depth) {
85
85
  if (depth === 0) {
86
- return "{\u2026}";
86
+ return '{}';
87
87
  }
88
- var result = "";
88
+ var result = '';
89
89
  var first = true;
90
90
  for (var key in object) {
91
91
  if (!object.hasOwnProperty(key)) {
@@ -95,7 +95,7 @@
95
95
  first = false;
96
96
  }
97
97
  else {
98
- result += ", ";
98
+ result += ', ';
99
99
  }
100
100
  result += key + ": " + tuiInspectAny(object[key], depth - 1);
101
101
  }
@@ -109,15 +109,15 @@
109
109
  */
110
110
  function tuiInspectAny(data, depth) {
111
111
  if (data === null) {
112
- return "null";
112
+ return 'null';
113
113
  }
114
114
  switch (typeof data) {
115
- case "string":
115
+ case 'string':
116
116
  return "'" + data + "'";
117
- case "undefined":
118
- case "number":
119
- case "boolean":
120
- case "function":
117
+ case 'undefined':
118
+ case 'number':
119
+ case 'boolean':
120
+ case 'function':
121
121
  return String(data);
122
122
  default:
123
123
  break;
@@ -132,16 +132,16 @@
132
132
  }
133
133
 
134
134
  function tuiIsPageGroup(page) {
135
- return "subPages" in page;
135
+ return 'subPages' in page;
136
136
  }
137
137
 
138
138
  function tuiTryParseMarkdownCodeBlock(text) {
139
- if (text === void 0) { text = ""; }
139
+ if (text === void 0) { text = ''; }
140
140
  var tokens = new MarkdownIt__default["default"]().parse(text, {});
141
141
  var result = tokens
142
142
  .filter(function (_a) {
143
143
  var tag = _a.tag, type = _a.type;
144
- return tag === "code" && type === "fence";
144
+ return tag === 'code' && type === 'fence';
145
145
  })
146
146
  .map(function (_a) {
147
147
  var content = _a.content;
@@ -150,7 +150,7 @@
150
150
  return result.length ? result : [text];
151
151
  }
152
152
 
153
- /******************************************************************************
153
+ /*! *****************************************************************************
154
154
  Copyright (c) Microsoft Corporation.
155
155
 
156
156
  Permission to use, copy, modify, and/or distribute this software for any
@@ -164,7 +164,7 @@
164
164
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
165
165
  PERFORMANCE OF THIS SOFTWARE.
166
166
  ***************************************************************************** */
167
- /* global Reflect, Promise, SuppressedError, Symbol */
167
+ /* global Reflect, Promise */
168
168
  var extendStatics = function (d, b) {
169
169
  extendStatics = Object.setPrototypeOf ||
170
170
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -217,64 +217,6 @@
217
217
  function __param(paramIndex, decorator) {
218
218
  return function (target, key) { decorator(target, key, paramIndex); };
219
219
  }
220
- function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
221
- function accept(f) { if (f !== void 0 && typeof f !== "function")
222
- throw new TypeError("Function expected"); return f; }
223
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
224
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
225
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
226
- var _, done = false;
227
- for (var i = decorators.length - 1; i >= 0; i--) {
228
- var context = {};
229
- for (var p in contextIn)
230
- context[p] = p === "access" ? {} : contextIn[p];
231
- for (var p in contextIn.access)
232
- context.access[p] = contextIn.access[p];
233
- context.addInitializer = function (f) { if (done)
234
- throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
235
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
236
- if (kind === "accessor") {
237
- if (result === void 0)
238
- continue;
239
- if (result === null || typeof result !== "object")
240
- throw new TypeError("Object expected");
241
- if (_ = accept(result.get))
242
- descriptor.get = _;
243
- if (_ = accept(result.set))
244
- descriptor.set = _;
245
- if (_ = accept(result.init))
246
- initializers.unshift(_);
247
- }
248
- else if (_ = accept(result)) {
249
- if (kind === "field")
250
- initializers.unshift(_);
251
- else
252
- descriptor[key] = _;
253
- }
254
- }
255
- if (target)
256
- Object.defineProperty(target, contextIn.name, descriptor);
257
- done = true;
258
- }
259
- ;
260
- function __runInitializers(thisArg, initializers, value) {
261
- var useValue = arguments.length > 2;
262
- for (var i = 0; i < initializers.length; i++) {
263
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
264
- }
265
- return useValue ? value : void 0;
266
- }
267
- ;
268
- function __propKey(x) {
269
- return typeof x === "symbol" ? x : "".concat(x);
270
- }
271
- ;
272
- function __setFunctionName(f, name, prefix) {
273
- if (typeof name === "symbol")
274
- name = name.description ? "[".concat(name.description, "]") : "";
275
- return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
276
- }
277
- ;
278
220
  function __metadata(metadataKey, metadataValue) {
279
221
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
280
222
  return Reflect.metadata(metadataKey, metadataValue);
@@ -306,7 +248,7 @@
306
248
  function step(op) {
307
249
  if (f)
308
250
  throw new TypeError("Generator is already executing.");
309
- while (g && (g = 0, op[0] && (_ = 0)), _)
251
+ while (_)
310
252
  try {
311
253
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
312
254
  return t;
@@ -370,11 +312,7 @@
370
312
  var __createBinding = Object.create ? (function (o, m, k, k2) {
371
313
  if (k2 === undefined)
372
314
  k2 = k;
373
- var desc = Object.getOwnPropertyDescriptor(m, k);
374
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
375
- desc = { enumerable: true, get: function () { return m[k]; } };
376
- }
377
- Object.defineProperty(o, k2, desc);
315
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
378
316
  }) : (function (o, m, k, k2) {
379
317
  if (k2 === undefined)
380
318
  k2 = k;
@@ -447,7 +385,7 @@
447
385
  ar[i] = from[i];
448
386
  }
449
387
  }
450
- return to.concat(ar || Array.prototype.slice.call(from));
388
+ return to.concat(ar || from);
451
389
  }
452
390
  function __await(v) {
453
391
  return this instanceof __await ? (this.v = v, this) : new __await(v);
@@ -474,7 +412,7 @@
474
412
  function __asyncDelegator(o) {
475
413
  var i, p;
476
414
  return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
477
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
415
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
478
416
  }
479
417
  function __asyncValues(o) {
480
418
  if (!Symbol.asyncIterator)
@@ -529,90 +467,6 @@
529
467
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
530
468
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
531
469
  }
532
- function __classPrivateFieldIn(state, receiver) {
533
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
534
- throw new TypeError("Cannot use 'in' operator on non-object");
535
- return typeof state === "function" ? receiver === state : state.has(receiver);
536
- }
537
- function __addDisposableResource(env, value, async) {
538
- if (value !== null && value !== void 0) {
539
- if (typeof value !== "object" && typeof value !== "function")
540
- throw new TypeError("Object expected.");
541
- var dispose;
542
- if (async) {
543
- if (!Symbol.asyncDispose)
544
- throw new TypeError("Symbol.asyncDispose is not defined.");
545
- dispose = value[Symbol.asyncDispose];
546
- }
547
- if (dispose === void 0) {
548
- if (!Symbol.dispose)
549
- throw new TypeError("Symbol.dispose is not defined.");
550
- dispose = value[Symbol.dispose];
551
- }
552
- if (typeof dispose !== "function")
553
- throw new TypeError("Object not disposable.");
554
- env.stack.push({ value: value, dispose: dispose, async: async });
555
- }
556
- else if (async) {
557
- env.stack.push({ async: true });
558
- }
559
- return value;
560
- }
561
- var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
562
- var e = new Error(message);
563
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
564
- };
565
- function __disposeResources(env) {
566
- function fail(e) {
567
- env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
568
- env.hasError = true;
569
- }
570
- function next() {
571
- while (env.stack.length) {
572
- var rec = env.stack.pop();
573
- try {
574
- var result = rec.dispose && rec.dispose.call(rec.value);
575
- if (rec.async)
576
- return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
577
- }
578
- catch (e) {
579
- fail(e);
580
- }
581
- }
582
- if (env.hasError)
583
- throw env.error;
584
- }
585
- return next();
586
- }
587
- var tslib_es6 = {
588
- __extends: __extends,
589
- __assign: __assign,
590
- __rest: __rest,
591
- __decorate: __decorate,
592
- __param: __param,
593
- __metadata: __metadata,
594
- __awaiter: __awaiter,
595
- __generator: __generator,
596
- __createBinding: __createBinding,
597
- __exportStar: __exportStar,
598
- __values: __values,
599
- __read: __read,
600
- __spread: __spread,
601
- __spreadArrays: __spreadArrays,
602
- __spreadArray: __spreadArray,
603
- __await: __await,
604
- __asyncGenerator: __asyncGenerator,
605
- __asyncDelegator: __asyncDelegator,
606
- __asyncValues: __asyncValues,
607
- __makeTemplateObject: __makeTemplateObject,
608
- __importStar: __importStar,
609
- __importDefault: __importDefault,
610
- __classPrivateFieldGet: __classPrivateFieldGet,
611
- __classPrivateFieldSet: __classPrivateFieldSet,
612
- __classPrivateFieldIn: __classPrivateFieldIn,
613
- __addDisposableResource: __addDisposableResource,
614
- __disposeResources: __disposeResources,
615
- };
616
470
 
617
471
  function tuiRawLoad(content) {
618
472
  return __awaiter(this, void 0, void 0, function () {
@@ -682,8 +536,8 @@
682
536
  var sections = Array.from(new Set(pages.map(function (page) { return page.section; })));
683
537
  var sortedPages = pages.slice().sort(function (a, b) {
684
538
  var _a, _b;
685
- if (excludeSections.has((_a = a.section) !== null && _a !== void 0 ? _a : "") ||
686
- excludeSections.has((_b = b.section) !== null && _b !== void 0 ? _b : "")) {
539
+ if (excludeSections.has((_a = a.section) !== null && _a !== void 0 ? _a : '') ||
540
+ excludeSections.has((_b = b.section) !== null && _b !== void 0 ? _b : '')) {
687
541
  return 0;
688
542
  }
689
543
  var aSectionIndex = sections.indexOf(a.section);
@@ -703,13 +557,13 @@
703
557
  function assertTitle(page, map) {
704
558
  var _a;
705
559
  if (map.has(page.title) && ((_a = map.get(page.title)) === null || _a === void 0 ? void 0 : _a.route) !== page.route) {
706
- console.error("Title for page should be unique for prevent inconsistent page names", page, "<== Collisions between ==>", map.get(page.title));
560
+ console.error('Title for page should be unique for prevent inconsistent page names', page, '<== Collisions between ==>', map.get(page.title));
707
561
  }
708
562
  }
709
563
  function tuiToFlatMapPages(pages) {
710
564
  var map = new Map();
711
565
  pages.forEach(function (page) {
712
- if ("subPages" in page) {
566
+ if ('subPages' in page) {
713
567
  page.subPages.forEach(function (subPage) {
714
568
  ngDevMode && assertTitle(subPage, map);
715
569
  map.set(subPage.title, subPage);
@@ -724,38 +578,38 @@
724
578
  }
725
579
 
726
580
  var MAP = {
727
- а: "f",
728
- б: ",",
729
- в: "d",
730
- г: "u",
731
- д: "l",
732
- е: "t",
733
- ё: "`",
734
- ж: ";",
735
- з: "p",
736
- и: "b",
737
- й: "q",
738
- к: "r",
739
- л: "k",
740
- м: "v",
741
- н: "y",
742
- о: "j",
743
- п: "g",
744
- р: "h",
745
- с: "c",
746
- т: "n",
747
- у: "e",
748
- ф: "a",
749
- х: "[",
750
- ц: "w",
751
- ч: "x",
752
- ш: "i",
753
- щ: "o",
754
- ъ: "]",
755
- ы: "s",
756
- ь: "m",
757
- ю: ".",
758
- я: "z",
581
+ а: 'f',
582
+ б: ',',
583
+ в: 'd',
584
+ г: 'u',
585
+ д: 'l',
586
+ е: 't',
587
+ ё: '`',
588
+ ж: ';',
589
+ з: 'p',
590
+ и: 'b',
591
+ й: 'q',
592
+ к: 'r',
593
+ л: 'k',
594
+ м: 'v',
595
+ н: 'y',
596
+ о: 'j',
597
+ п: 'g',
598
+ р: 'h',
599
+ с: 'c',
600
+ т: 'n',
601
+ у: 'e',
602
+ ф: 'a',
603
+ х: '[',
604
+ ц: 'w',
605
+ ч: 'x',
606
+ ш: 'i',
607
+ щ: 'o',
608
+ ъ: ']',
609
+ ы: 's',
610
+ ь: 'm',
611
+ ю: '.',
612
+ я: 'z',
759
613
  };
760
614
  /**
761
615
  * Translates text mistakenly typed in the Russian layout into English
@@ -763,7 +617,7 @@
763
617
  * @return string with English layout characters
764
618
  */
765
619
  function tuiTransliterateKeyboardLayout(string) {
766
- var newStr = "";
620
+ var newStr = '';
767
621
  for (var i = 0; i < string.length; i++) {
768
622
  newStr += string.charAt(i) in MAP ? MAP[string.charAt(i)] : string.charAt(i);
769
623
  }
@@ -774,24 +628,24 @@
774
628
  var generics = types.match(/<([^>]+)>/g);
775
629
  var escaped = generics
776
630
  ? generics
777
- .reduce(function (result, current) { return result.replace(current, current.replace(/\|/g, "&")); }, types)
778
- .split("|")
631
+ .reduce(function (result, current) { return result.replace(current, current.replace(/\|/g, '&')); }, types)
632
+ .split('|')
779
633
  .map(function (item) { return item.trim(); })
780
- : types.split("|").map(function (item) { return item.trim(); });
634
+ : types.split('|').map(function (item) { return item.trim(); });
781
635
  return escaped.reduce(function (result, type) {
782
636
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
783
637
  var extracted = type
784
638
  .trim()
785
- .replace(/readonly /g, "")
786
- .replace(/\[\]/g, "");
639
+ .replace(/readonly /g, '')
640
+ .replace(/\[\]/g, '');
787
641
  extracted =
788
- (_d = (_c = (_b = (_a = extracted.match(/ReadonlyArray<([^>]+)>/)) === null || _a === void 0 ? void 0 : _a[1]) === null || _b === void 0 ? void 0 : _b.split("&")) === null || _c === void 0 ? void 0 : _c[0]) !== null && _d !== void 0 ? _d : extracted;
789
- extracted = (_h = (_g = (_f = (_e = extracted.match(/\[([^\]]+)\]/)) === null || _e === void 0 ? void 0 : _e[1]) === null || _f === void 0 ? void 0 : _f.split(",")) === null || _g === void 0 ? void 0 : _g[0]) !== null && _h !== void 0 ? _h : extracted;
790
- extracted = (_m = (_l = ((_k = (_j = extracted.split("<")) === null || _j === void 0 ? void 0 : _j[0]) !== null && _k !== void 0 ? _k : extracted)) === null || _l === void 0 ? void 0 : _l.trim()) !== null && _m !== void 0 ? _m : "";
791
- extracted = Number.isNaN(parseFloat(extracted)) ? extracted : "number";
792
- extracted = /^'(.+)'$|^"(.+)"$|^`(.+)`$/.test(extracted) ? "string" : extracted;
793
- extracted = extracted.length === 1 ? "unknown" : extracted;
794
- return result.concat({ type: type.replace(/&/g, "|"), extracted: extracted });
642
+ (_d = (_c = (_b = (_a = extracted.match(/ReadonlyArray<([^>]+)>/)) === null || _a === void 0 ? void 0 : _a[1]) === null || _b === void 0 ? void 0 : _b.split('&')) === null || _c === void 0 ? void 0 : _c[0]) !== null && _d !== void 0 ? _d : extracted;
643
+ extracted = (_h = (_g = (_f = (_e = extracted.match(/\[([^\]]+)\]/)) === null || _e === void 0 ? void 0 : _e[1]) === null || _f === void 0 ? void 0 : _f.split(',')) === null || _g === void 0 ? void 0 : _g[0]) !== null && _h !== void 0 ? _h : extracted;
644
+ extracted = (_m = (_l = ((_k = (_j = extracted.split('<')) === null || _j === void 0 ? void 0 : _j[0]) !== null && _k !== void 0 ? _k : extracted)) === null || _l === void 0 ? void 0 : _l.trim()) !== null && _m !== void 0 ? _m : '';
645
+ extracted = Number.isNaN(parseFloat(extracted)) ? extracted : 'number';
646
+ extracted = /^'(.+)'$|^"(.+)"$|^`(.+)`$/.test(extracted) ? 'string' : extracted;
647
+ extracted = extracted.length === 1 ? 'unknown' : extracted;
648
+ return result.concat({ type: type.replace(/&/g, '|'), extracted: extracted });
795
649
  }, []);
796
650
  }
797
651