trepur_components 2.3.4 → 2.3.6

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 (124) hide show
  1. package/archive/theme.ts +1 -1
  2. package/lib/components/Accordion/index.d.ts +1 -2
  3. package/lib/components/Accordion/index.js +8 -8
  4. package/lib/components/AlertBar/index.d.ts +1 -2
  5. package/lib/components/AlertBar/index.js +13 -13
  6. package/lib/components/index.d.ts +3 -3
  7. package/lib/index.js +4 -4
  8. package/lib/styles/{base.css → global.css} +1 -43
  9. package/lib/styles/themes/local.css +40 -0
  10. package/package.json +1 -1
  11. package/postcss.config.js +8 -0
  12. package/src/components/Accordion/Accordion.stories.tsx +1 -1
  13. package/src/components/Accordion/index.tsx +1 -3
  14. package/src/components/AlertBar/AlertBar.stories.tsx +1 -1
  15. package/src/components/AlertBar/index.tsx +2 -4
  16. package/src/components/index.ts +5 -5
  17. package/src/styles/{base.css → global.css} +1 -43
  18. package/src/styles/themes/local.css +40 -0
  19. package/tsconfig.json +1 -1
  20. package/storybook-build/assets/Accordion.stories-Cn994N1H.js +0 -103
  21. package/storybook-build/assets/AlertBar.stories-BkzNXFBh.js +0 -202
  22. package/storybook-build/assets/Avatar.stories-CpH6xVwM.js +0 -418
  23. package/storybook-build/assets/Color-6VNJS4EI-DQV2onvt.js +0 -1378
  24. package/storybook-build/assets/Colours-r29qjFlW.js +0 -324
  25. package/storybook-build/assets/DocsRenderer-NNNQARDV-OgWasCIs.js +0 -44
  26. package/storybook-build/assets/Introduction-Bs1PgnBZ.js +0 -40
  27. package/storybook-build/assets/WithTooltip-V3YHNWJZ-vi2V5TOO.js +0 -15
  28. package/storybook-build/assets/_commonjsHelpers-LQfde5yM.js +0 -35
  29. package/storybook-build/assets/axe-DnFZVv9V.js +0 -32561
  30. package/storybook-build/assets/chunk-EIRT5I3Z-DFD8udmD.js +0 -480
  31. package/storybook-build/assets/context-CIRBAiUz.js +0 -20
  32. package/storybook-build/assets/controls-DJSGrQKd.js +0 -23
  33. package/storybook-build/assets/entry-preview-DmlPV4-3.js +0 -41
  34. package/storybook-build/assets/entry-preview-docs-D46Drugi.js +0 -11861
  35. package/storybook-build/assets/formatter-SWP5E3XI-BWIasvKP.js +0 -14427
  36. package/storybook-build/assets/iframe-Dzzzanqi.js +0 -144
  37. package/storybook-build/assets/index-0FT4HXk-.js +0 -7222
  38. package/storybook-build/assets/index-B9Tccxv4.js +0 -107
  39. package/storybook-build/assets/index-BdOSk9or.js +0 -41
  40. package/storybook-build/assets/index-CU7cYjZD.js +0 -9604
  41. package/storybook-build/assets/index-Clz-aGG3.js +0 -39
  42. package/storybook-build/assets/index-CpyNLP69.js +0 -63
  43. package/storybook-build/assets/index-DM9bPmif.js +0 -319
  44. package/storybook-build/assets/index-ex9_VrIg.js +0 -3734
  45. package/storybook-build/assets/jsx-runtime-D2-sc1j1.js +0 -35
  46. package/storybook-build/assets/preview-3kSipVgK.js +0 -430
  47. package/storybook-build/assets/preview-B4rAxPmB.js +0 -27
  48. package/storybook-build/assets/preview-BMkwWyrh.js +0 -2920
  49. package/storybook-build/assets/preview-BeQelhbu.js +0 -204
  50. package/storybook-build/assets/preview-BiG-rflf.js +0 -2444
  51. package/storybook-build/assets/preview-BiYUJ7TP.js +0 -22
  52. package/storybook-build/assets/preview-C4ItOQzM.js +0 -34
  53. package/storybook-build/assets/preview-CWyhKACi.css +0 -886
  54. package/storybook-build/assets/preview-CtOV68TG.js +0 -10
  55. package/storybook-build/assets/preview-De9E9xaR.js +0 -140
  56. package/storybook-build/assets/preview-bL4x2zrN.js +0 -99
  57. package/storybook-build/assets/preview-gxqyGMHu.js +0 -323
  58. package/storybook-build/assets/react-18-B-gfo82w.js +0 -29
  59. package/storybook-build/assets/syntaxhighlighter-B5GMVT5T-DrY_Dc6-.js +0 -15
  60. package/storybook-build/favicon.svg +0 -7
  61. package/storybook-build/iframe.html +0 -458
  62. package/storybook-build/index.html +0 -163
  63. package/storybook-build/index.json +0 -1
  64. package/storybook-build/preview-stats.json +0 -172
  65. package/storybook-build/project.json +0 -1
  66. package/storybook-build/sb-addons/a11y-9/manager-bundle.js +0 -3
  67. package/storybook-build/sb-addons/a11y-9/manager-bundle.js.LEGAL.txt +0 -0
  68. package/storybook-build/sb-addons/essentials-actions-2/manager-bundle.js +0 -3
  69. package/storybook-build/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
  70. package/storybook-build/sb-addons/essentials-backgrounds-3/manager-bundle.js +0 -12
  71. package/storybook-build/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
  72. package/storybook-build/sb-addons/essentials-controls-1/manager-bundle.js +0 -63
  73. package/storybook-build/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +0 -18
  74. package/storybook-build/sb-addons/essentials-measure-6/manager-bundle.js +0 -3
  75. package/storybook-build/sb-addons/essentials-measure-6/manager-bundle.js.LEGAL.txt +0 -0
  76. package/storybook-build/sb-addons/essentials-outline-7/manager-bundle.js +0 -3
  77. package/storybook-build/sb-addons/essentials-outline-7/manager-bundle.js.LEGAL.txt +0 -0
  78. package/storybook-build/sb-addons/essentials-toolbars-5/manager-bundle.js +0 -3
  79. package/storybook-build/sb-addons/essentials-toolbars-5/manager-bundle.js.LEGAL.txt +0 -0
  80. package/storybook-build/sb-addons/essentials-viewport-4/manager-bundle.js +0 -3
  81. package/storybook-build/sb-addons/essentials-viewport-4/manager-bundle.js.LEGAL.txt +0 -0
  82. package/storybook-build/sb-addons/interactions-8/manager-bundle.js +0 -12
  83. package/storybook-build/sb-addons/interactions-8/manager-bundle.js.LEGAL.txt +0 -0
  84. package/storybook-build/sb-addons/links-0/manager-bundle.js +0 -3
  85. package/storybook-build/sb-addons/links-0/manager-bundle.js.LEGAL.txt +0 -0
  86. package/storybook-build/sb-addons/storybook-12/manager-bundle.js +0 -151
  87. package/storybook-build/sb-addons/storybook-12/manager-bundle.js.LEGAL.txt +0 -0
  88. package/storybook-build/sb-addons/storybook-react-i18next-11/manager-bundle.js +0 -3
  89. package/storybook-build/sb-addons/storybook-react-i18next-11/manager-bundle.js.LEGAL.txt +0 -0
  90. package/storybook-build/sb-addons/themes-10/register-bundle.js +0 -5
  91. package/storybook-build/sb-addons/themes-10/register-bundle.js.LEGAL.txt +0 -0
  92. package/storybook-build/sb-common-assets/fonts.css +0 -31
  93. package/storybook-build/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  94. package/storybook-build/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  95. package/storybook-build/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  96. package/storybook-build/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  97. package/storybook-build/sb-manager/WithTooltip-V3YHNWJZ-TRLNWEGW.js +0 -1
  98. package/storybook-build/sb-manager/chunk-4IYAVH3S.js +0 -348
  99. package/storybook-build/sb-manager/chunk-CXYKRFSY.js +0 -9
  100. package/storybook-build/sb-manager/chunk-KZYAAUOR.js +0 -406
  101. package/storybook-build/sb-manager/chunk-LVLAH4SI.js +0 -7
  102. package/storybook-build/sb-manager/chunk-ZEU7PDD3.js +0 -1
  103. package/storybook-build/sb-manager/formatter-SWP5E3XI-7BGIK6BL.js +0 -156
  104. package/storybook-build/sb-manager/globals-module-info.js +0 -1
  105. package/storybook-build/sb-manager/globals.js +0 -1
  106. package/storybook-build/sb-manager/index.js +0 -1
  107. package/storybook-build/sb-manager/runtime.js +0 -1
  108. package/storybook-build/sb-manager/syntaxhighlighter-B5GMVT5T-EA5ASEYD.js +0 -1
  109. package/storybook-build/sb-preview/globals.js +0 -1
  110. package/storybook-build/sb-preview/runtime.js +0 -112
  111. package/storybook-build/src/components/Accordion/Accordion.stories.d.ts +0 -94
  112. package/storybook-build/src/components/Accordion/index.d.ts +0 -9
  113. package/storybook-build/src/components/AlertBar/AlertBar.stories.d.ts +0 -162
  114. package/storybook-build/src/components/AlertBar/index.d.ts +0 -13
  115. package/storybook-build/src/components/Avatar/Avatar.stories.d.ts +0 -44
  116. package/storybook-build/src/components/Avatar/index.d.ts +0 -4
  117. package/storybook-build/src/components/index.d.ts +0 -7
  118. package/storybook-build/src/index.d.ts +0 -1
  119. package/storybook-build/src/utils/controls.d.ts +0 -36
  120. package/storybook-build/src/utils/matchMedia.d.ts +0 -2
  121. package/storybook-build/src/utils/screens.d.ts +0 -7
  122. package/storybook-build/src/utils/theme.d.ts +0 -3
  123. package/storybook-build/stories.json +0 -1
  124. package/storybook-build/styles/base.css +0 -116
@@ -1,3734 +0,0 @@
1
- import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./_commonjsHelpers-LQfde5yM.js";
2
- function arrayMap$1(array, iteratee) {
3
- var index = -1, length = array == null ? 0 : array.length, result = Array(length);
4
- while (++index < length) {
5
- result[index] = iteratee(array[index], index, array);
6
- }
7
- return result;
8
- }
9
- var _arrayMap = arrayMap$1;
10
- function listCacheClear$1() {
11
- this.__data__ = [];
12
- this.size = 0;
13
- }
14
- var _listCacheClear = listCacheClear$1;
15
- function eq$2(value, other) {
16
- return value === other || value !== value && other !== other;
17
- }
18
- var eq_1 = eq$2;
19
- var eq$1 = eq_1;
20
- function assocIndexOf$4(array, key) {
21
- var length = array.length;
22
- while (length--) {
23
- if (eq$1(array[length][0], key)) {
24
- return length;
25
- }
26
- }
27
- return -1;
28
- }
29
- var _assocIndexOf = assocIndexOf$4;
30
- var assocIndexOf$3 = _assocIndexOf;
31
- var arrayProto = Array.prototype;
32
- var splice = arrayProto.splice;
33
- function listCacheDelete$1(key) {
34
- var data = this.__data__, index = assocIndexOf$3(data, key);
35
- if (index < 0) {
36
- return false;
37
- }
38
- var lastIndex = data.length - 1;
39
- if (index == lastIndex) {
40
- data.pop();
41
- } else {
42
- splice.call(data, index, 1);
43
- }
44
- --this.size;
45
- return true;
46
- }
47
- var _listCacheDelete = listCacheDelete$1;
48
- var assocIndexOf$2 = _assocIndexOf;
49
- function listCacheGet$1(key) {
50
- var data = this.__data__, index = assocIndexOf$2(data, key);
51
- return index < 0 ? void 0 : data[index][1];
52
- }
53
- var _listCacheGet = listCacheGet$1;
54
- var assocIndexOf$1 = _assocIndexOf;
55
- function listCacheHas$1(key) {
56
- return assocIndexOf$1(this.__data__, key) > -1;
57
- }
58
- var _listCacheHas = listCacheHas$1;
59
- var assocIndexOf = _assocIndexOf;
60
- function listCacheSet$1(key, value) {
61
- var data = this.__data__, index = assocIndexOf(data, key);
62
- if (index < 0) {
63
- ++this.size;
64
- data.push([key, value]);
65
- } else {
66
- data[index][1] = value;
67
- }
68
- return this;
69
- }
70
- var _listCacheSet = listCacheSet$1;
71
- var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
72
- function ListCache$4(entries) {
73
- var index = -1, length = entries == null ? 0 : entries.length;
74
- this.clear();
75
- while (++index < length) {
76
- var entry = entries[index];
77
- this.set(entry[0], entry[1]);
78
- }
79
- }
80
- ListCache$4.prototype.clear = listCacheClear;
81
- ListCache$4.prototype["delete"] = listCacheDelete;
82
- ListCache$4.prototype.get = listCacheGet;
83
- ListCache$4.prototype.has = listCacheHas;
84
- ListCache$4.prototype.set = listCacheSet;
85
- var _ListCache = ListCache$4;
86
- var ListCache$3 = _ListCache;
87
- function stackClear$1() {
88
- this.__data__ = new ListCache$3();
89
- this.size = 0;
90
- }
91
- var _stackClear = stackClear$1;
92
- function stackDelete$1(key) {
93
- var data = this.__data__, result = data["delete"](key);
94
- this.size = data.size;
95
- return result;
96
- }
97
- var _stackDelete = stackDelete$1;
98
- function stackGet$1(key) {
99
- return this.__data__.get(key);
100
- }
101
- var _stackGet = stackGet$1;
102
- function stackHas$1(key) {
103
- return this.__data__.has(key);
104
- }
105
- var _stackHas = stackHas$1;
106
- var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
107
- var _freeGlobal = freeGlobal$1;
108
- var freeGlobal = _freeGlobal;
109
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
110
- var root$8 = freeGlobal || freeSelf || Function("return this")();
111
- var _root = root$8;
112
- var root$7 = _root;
113
- var Symbol$5 = root$7.Symbol;
114
- var _Symbol = Symbol$5;
115
- var Symbol$4 = _Symbol;
116
- var objectProto$b = Object.prototype;
117
- var hasOwnProperty$8 = objectProto$b.hasOwnProperty;
118
- var nativeObjectToString$1 = objectProto$b.toString;
119
- var symToStringTag$1 = Symbol$4 ? Symbol$4.toStringTag : void 0;
120
- function getRawTag$1(value) {
121
- var isOwn = hasOwnProperty$8.call(value, symToStringTag$1), tag = value[symToStringTag$1];
122
- try {
123
- value[symToStringTag$1] = void 0;
124
- var unmasked = true;
125
- } catch (e) {
126
- }
127
- var result = nativeObjectToString$1.call(value);
128
- if (unmasked) {
129
- if (isOwn) {
130
- value[symToStringTag$1] = tag;
131
- } else {
132
- delete value[symToStringTag$1];
133
- }
134
- }
135
- return result;
136
- }
137
- var _getRawTag = getRawTag$1;
138
- var objectProto$a = Object.prototype;
139
- var nativeObjectToString = objectProto$a.toString;
140
- function objectToString$1(value) {
141
- return nativeObjectToString.call(value);
142
- }
143
- var _objectToString = objectToString$1;
144
- var Symbol$3 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
145
- var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
146
- var symToStringTag = Symbol$3 ? Symbol$3.toStringTag : void 0;
147
- function baseGetTag$5(value) {
148
- if (value == null) {
149
- return value === void 0 ? undefinedTag : nullTag;
150
- }
151
- return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
152
- }
153
- var _baseGetTag = baseGetTag$5;
154
- function isObject$3(value) {
155
- var type = typeof value;
156
- return value != null && (type == "object" || type == "function");
157
- }
158
- var isObject_1 = isObject$3;
159
- var baseGetTag$4 = _baseGetTag, isObject$2 = isObject_1;
160
- var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
161
- function isFunction$2(value) {
162
- if (!isObject$2(value)) {
163
- return false;
164
- }
165
- var tag = baseGetTag$4(value);
166
- return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
167
- }
168
- var isFunction_1 = isFunction$2;
169
- const isFunction$3 = /* @__PURE__ */ getDefaultExportFromCjs(isFunction_1);
170
- var root$6 = _root;
171
- var coreJsData$1 = root$6["__core-js_shared__"];
172
- var _coreJsData = coreJsData$1;
173
- var coreJsData = _coreJsData;
174
- var maskSrcKey = function() {
175
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
176
- return uid ? "Symbol(src)_1." + uid : "";
177
- }();
178
- function isMasked$1(func) {
179
- return !!maskSrcKey && maskSrcKey in func;
180
- }
181
- var _isMasked = isMasked$1;
182
- var funcProto$1 = Function.prototype;
183
- var funcToString$1 = funcProto$1.toString;
184
- function toSource$2(func) {
185
- if (func != null) {
186
- try {
187
- return funcToString$1.call(func);
188
- } catch (e) {
189
- }
190
- try {
191
- return func + "";
192
- } catch (e) {
193
- }
194
- }
195
- return "";
196
- }
197
- var _toSource = toSource$2;
198
- var isFunction$1 = isFunction_1, isMasked = _isMasked, isObject$1 = isObject_1, toSource$1 = _toSource;
199
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
200
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
201
- var funcProto = Function.prototype, objectProto$9 = Object.prototype;
202
- var funcToString = funcProto.toString;
203
- var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
204
- var reIsNative = RegExp(
205
- "^" + funcToString.call(hasOwnProperty$7).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
206
- );
207
- function baseIsNative$1(value) {
208
- if (!isObject$1(value) || isMasked(value)) {
209
- return false;
210
- }
211
- var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
212
- return pattern.test(toSource$1(value));
213
- }
214
- var _baseIsNative = baseIsNative$1;
215
- function getValue$1(object, key) {
216
- return object == null ? void 0 : object[key];
217
- }
218
- var _getValue = getValue$1;
219
- var baseIsNative = _baseIsNative, getValue = _getValue;
220
- function getNative$7(object, key) {
221
- var value = getValue(object, key);
222
- return baseIsNative(value) ? value : void 0;
223
- }
224
- var _getNative = getNative$7;
225
- var getNative$6 = _getNative, root$5 = _root;
226
- var Map$3 = getNative$6(root$5, "Map");
227
- var _Map = Map$3;
228
- var getNative$5 = _getNative;
229
- var nativeCreate$4 = getNative$5(Object, "create");
230
- var _nativeCreate = nativeCreate$4;
231
- var nativeCreate$3 = _nativeCreate;
232
- function hashClear$1() {
233
- this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
234
- this.size = 0;
235
- }
236
- var _hashClear = hashClear$1;
237
- function hashDelete$1(key) {
238
- var result = this.has(key) && delete this.__data__[key];
239
- this.size -= result ? 1 : 0;
240
- return result;
241
- }
242
- var _hashDelete = hashDelete$1;
243
- var nativeCreate$2 = _nativeCreate;
244
- var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
245
- var objectProto$8 = Object.prototype;
246
- var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
247
- function hashGet$1(key) {
248
- var data = this.__data__;
249
- if (nativeCreate$2) {
250
- var result = data[key];
251
- return result === HASH_UNDEFINED$2 ? void 0 : result;
252
- }
253
- return hasOwnProperty$6.call(data, key) ? data[key] : void 0;
254
- }
255
- var _hashGet = hashGet$1;
256
- var nativeCreate$1 = _nativeCreate;
257
- var objectProto$7 = Object.prototype;
258
- var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
259
- function hashHas$1(key) {
260
- var data = this.__data__;
261
- return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$5.call(data, key);
262
- }
263
- var _hashHas = hashHas$1;
264
- var nativeCreate = _nativeCreate;
265
- var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
266
- function hashSet$1(key, value) {
267
- var data = this.__data__;
268
- this.size += this.has(key) ? 0 : 1;
269
- data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED$1 : value;
270
- return this;
271
- }
272
- var _hashSet = hashSet$1;
273
- var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
274
- function Hash$1(entries) {
275
- var index = -1, length = entries == null ? 0 : entries.length;
276
- this.clear();
277
- while (++index < length) {
278
- var entry = entries[index];
279
- this.set(entry[0], entry[1]);
280
- }
281
- }
282
- Hash$1.prototype.clear = hashClear;
283
- Hash$1.prototype["delete"] = hashDelete;
284
- Hash$1.prototype.get = hashGet;
285
- Hash$1.prototype.has = hashHas;
286
- Hash$1.prototype.set = hashSet;
287
- var _Hash = Hash$1;
288
- var Hash = _Hash, ListCache$2 = _ListCache, Map$2 = _Map;
289
- function mapCacheClear$1() {
290
- this.size = 0;
291
- this.__data__ = {
292
- "hash": new Hash(),
293
- "map": new (Map$2 || ListCache$2)(),
294
- "string": new Hash()
295
- };
296
- }
297
- var _mapCacheClear = mapCacheClear$1;
298
- function isKeyable$1(value) {
299
- var type = typeof value;
300
- return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
301
- }
302
- var _isKeyable = isKeyable$1;
303
- var isKeyable = _isKeyable;
304
- function getMapData$4(map, key) {
305
- var data = map.__data__;
306
- return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
307
- }
308
- var _getMapData = getMapData$4;
309
- var getMapData$3 = _getMapData;
310
- function mapCacheDelete$1(key) {
311
- var result = getMapData$3(this, key)["delete"](key);
312
- this.size -= result ? 1 : 0;
313
- return result;
314
- }
315
- var _mapCacheDelete = mapCacheDelete$1;
316
- var getMapData$2 = _getMapData;
317
- function mapCacheGet$1(key) {
318
- return getMapData$2(this, key).get(key);
319
- }
320
- var _mapCacheGet = mapCacheGet$1;
321
- var getMapData$1 = _getMapData;
322
- function mapCacheHas$1(key) {
323
- return getMapData$1(this, key).has(key);
324
- }
325
- var _mapCacheHas = mapCacheHas$1;
326
- var getMapData = _getMapData;
327
- function mapCacheSet$1(key, value) {
328
- var data = getMapData(this, key), size = data.size;
329
- data.set(key, value);
330
- this.size += data.size == size ? 0 : 1;
331
- return this;
332
- }
333
- var _mapCacheSet = mapCacheSet$1;
334
- var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
335
- function MapCache$3(entries) {
336
- var index = -1, length = entries == null ? 0 : entries.length;
337
- this.clear();
338
- while (++index < length) {
339
- var entry = entries[index];
340
- this.set(entry[0], entry[1]);
341
- }
342
- }
343
- MapCache$3.prototype.clear = mapCacheClear;
344
- MapCache$3.prototype["delete"] = mapCacheDelete;
345
- MapCache$3.prototype.get = mapCacheGet;
346
- MapCache$3.prototype.has = mapCacheHas;
347
- MapCache$3.prototype.set = mapCacheSet;
348
- var _MapCache = MapCache$3;
349
- var ListCache$1 = _ListCache, Map$1 = _Map, MapCache$2 = _MapCache;
350
- var LARGE_ARRAY_SIZE = 200;
351
- function stackSet$1(key, value) {
352
- var data = this.__data__;
353
- if (data instanceof ListCache$1) {
354
- var pairs = data.__data__;
355
- if (!Map$1 || pairs.length < LARGE_ARRAY_SIZE - 1) {
356
- pairs.push([key, value]);
357
- this.size = ++data.size;
358
- return this;
359
- }
360
- data = this.__data__ = new MapCache$2(pairs);
361
- }
362
- data.set(key, value);
363
- this.size = data.size;
364
- return this;
365
- }
366
- var _stackSet = stackSet$1;
367
- var ListCache = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet;
368
- function Stack$2(entries) {
369
- var data = this.__data__ = new ListCache(entries);
370
- this.size = data.size;
371
- }
372
- Stack$2.prototype.clear = stackClear;
373
- Stack$2.prototype["delete"] = stackDelete;
374
- Stack$2.prototype.get = stackGet;
375
- Stack$2.prototype.has = stackHas;
376
- Stack$2.prototype.set = stackSet;
377
- var _Stack = Stack$2;
378
- var HASH_UNDEFINED = "__lodash_hash_undefined__";
379
- function setCacheAdd$1(value) {
380
- this.__data__.set(value, HASH_UNDEFINED);
381
- return this;
382
- }
383
- var _setCacheAdd = setCacheAdd$1;
384
- function setCacheHas$1(value) {
385
- return this.__data__.has(value);
386
- }
387
- var _setCacheHas = setCacheHas$1;
388
- var MapCache$1 = _MapCache, setCacheAdd = _setCacheAdd, setCacheHas = _setCacheHas;
389
- function SetCache$1(values) {
390
- var index = -1, length = values == null ? 0 : values.length;
391
- this.__data__ = new MapCache$1();
392
- while (++index < length) {
393
- this.add(values[index]);
394
- }
395
- }
396
- SetCache$1.prototype.add = SetCache$1.prototype.push = setCacheAdd;
397
- SetCache$1.prototype.has = setCacheHas;
398
- var _SetCache = SetCache$1;
399
- function arraySome$1(array, predicate) {
400
- var index = -1, length = array == null ? 0 : array.length;
401
- while (++index < length) {
402
- if (predicate(array[index], index, array)) {
403
- return true;
404
- }
405
- }
406
- return false;
407
- }
408
- var _arraySome = arraySome$1;
409
- function cacheHas$1(cache, key) {
410
- return cache.has(key);
411
- }
412
- var _cacheHas = cacheHas$1;
413
- var SetCache = _SetCache, arraySome = _arraySome, cacheHas = _cacheHas;
414
- var COMPARE_PARTIAL_FLAG$5 = 1, COMPARE_UNORDERED_FLAG$3 = 2;
415
- function equalArrays$2(array, other, bitmask, customizer, equalFunc, stack) {
416
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$5, arrLength = array.length, othLength = other.length;
417
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
418
- return false;
419
- }
420
- var arrStacked = stack.get(array);
421
- var othStacked = stack.get(other);
422
- if (arrStacked && othStacked) {
423
- return arrStacked == other && othStacked == array;
424
- }
425
- var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
426
- stack.set(array, other);
427
- stack.set(other, array);
428
- while (++index < arrLength) {
429
- var arrValue = array[index], othValue = other[index];
430
- if (customizer) {
431
- var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
432
- }
433
- if (compared !== void 0) {
434
- if (compared) {
435
- continue;
436
- }
437
- result = false;
438
- break;
439
- }
440
- if (seen) {
441
- if (!arraySome(other, function(othValue2, othIndex) {
442
- if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
443
- return seen.push(othIndex);
444
- }
445
- })) {
446
- result = false;
447
- break;
448
- }
449
- } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
450
- result = false;
451
- break;
452
- }
453
- }
454
- stack["delete"](array);
455
- stack["delete"](other);
456
- return result;
457
- }
458
- var _equalArrays = equalArrays$2;
459
- var root$4 = _root;
460
- var Uint8Array$1 = root$4.Uint8Array;
461
- var _Uint8Array = Uint8Array$1;
462
- function mapToArray$1(map) {
463
- var index = -1, result = Array(map.size);
464
- map.forEach(function(value, key) {
465
- result[++index] = [key, value];
466
- });
467
- return result;
468
- }
469
- var _mapToArray = mapToArray$1;
470
- function setToArray$1(set) {
471
- var index = -1, result = Array(set.size);
472
- set.forEach(function(value) {
473
- result[++index] = value;
474
- });
475
- return result;
476
- }
477
- var _setToArray = setToArray$1;
478
- var Symbol$2 = _Symbol, Uint8Array = _Uint8Array, eq = eq_1, equalArrays$1 = _equalArrays, mapToArray = _mapToArray, setToArray = _setToArray;
479
- var COMPARE_PARTIAL_FLAG$4 = 1, COMPARE_UNORDERED_FLAG$2 = 2;
480
- var boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag$1 = "[object Symbol]";
481
- var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$2 = "[object DataView]";
482
- var symbolProto$1 = Symbol$2 ? Symbol$2.prototype : void 0, symbolValueOf = symbolProto$1 ? symbolProto$1.valueOf : void 0;
483
- function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack) {
484
- switch (tag) {
485
- case dataViewTag$2:
486
- if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
487
- return false;
488
- }
489
- object = object.buffer;
490
- other = other.buffer;
491
- case arrayBufferTag$1:
492
- if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
493
- return false;
494
- }
495
- return true;
496
- case boolTag$1:
497
- case dateTag$1:
498
- case numberTag$1:
499
- return eq(+object, +other);
500
- case errorTag$1:
501
- return object.name == other.name && object.message == other.message;
502
- case regexpTag$1:
503
- case stringTag$1:
504
- return object == other + "";
505
- case mapTag$2:
506
- var convert5 = mapToArray;
507
- case setTag$2:
508
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$4;
509
- convert5 || (convert5 = setToArray);
510
- if (object.size != other.size && !isPartial) {
511
- return false;
512
- }
513
- var stacked = stack.get(object);
514
- if (stacked) {
515
- return stacked == other;
516
- }
517
- bitmask |= COMPARE_UNORDERED_FLAG$2;
518
- stack.set(object, other);
519
- var result = equalArrays$1(convert5(object), convert5(other), bitmask, customizer, equalFunc, stack);
520
- stack["delete"](object);
521
- return result;
522
- case symbolTag$1:
523
- if (symbolValueOf) {
524
- return symbolValueOf.call(object) == symbolValueOf.call(other);
525
- }
526
- }
527
- return false;
528
- }
529
- var _equalByTag = equalByTag$1;
530
- function arrayPush$1(array, values) {
531
- var index = -1, length = values.length, offset = array.length;
532
- while (++index < length) {
533
- array[offset + index] = values[index];
534
- }
535
- return array;
536
- }
537
- var _arrayPush = arrayPush$1;
538
- var isArray$8 = Array.isArray;
539
- var isArray_1 = isArray$8;
540
- var arrayPush = _arrayPush, isArray$7 = isArray_1;
541
- function baseGetAllKeys$1(object, keysFunc, symbolsFunc) {
542
- var result = keysFunc(object);
543
- return isArray$7(object) ? result : arrayPush(result, symbolsFunc(object));
544
- }
545
- var _baseGetAllKeys = baseGetAllKeys$1;
546
- function arrayFilter$1(array, predicate) {
547
- var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
548
- while (++index < length) {
549
- var value = array[index];
550
- if (predicate(value, index, array)) {
551
- result[resIndex++] = value;
552
- }
553
- }
554
- return result;
555
- }
556
- var _arrayFilter = arrayFilter$1;
557
- function stubArray$1() {
558
- return [];
559
- }
560
- var stubArray_1 = stubArray$1;
561
- var arrayFilter = _arrayFilter, stubArray = stubArray_1;
562
- var objectProto$6 = Object.prototype;
563
- var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
564
- var nativeGetSymbols = Object.getOwnPropertySymbols;
565
- var getSymbols$1 = !nativeGetSymbols ? stubArray : function(object) {
566
- if (object == null) {
567
- return [];
568
- }
569
- object = Object(object);
570
- return arrayFilter(nativeGetSymbols(object), function(symbol) {
571
- return propertyIsEnumerable$1.call(object, symbol);
572
- });
573
- };
574
- var _getSymbols = getSymbols$1;
575
- function baseTimes$1(n, iteratee) {
576
- var index = -1, result = Array(n);
577
- while (++index < n) {
578
- result[index] = iteratee(index);
579
- }
580
- return result;
581
- }
582
- var _baseTimes = baseTimes$1;
583
- function isObjectLike$5(value) {
584
- return value != null && typeof value == "object";
585
- }
586
- var isObjectLike_1 = isObjectLike$5;
587
- var baseGetTag$3 = _baseGetTag, isObjectLike$4 = isObjectLike_1;
588
- var argsTag$2 = "[object Arguments]";
589
- function baseIsArguments$1(value) {
590
- return isObjectLike$4(value) && baseGetTag$3(value) == argsTag$2;
591
- }
592
- var _baseIsArguments = baseIsArguments$1;
593
- var baseIsArguments = _baseIsArguments, isObjectLike$3 = isObjectLike_1;
594
- var objectProto$5 = Object.prototype;
595
- var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
596
- var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
597
- var isArguments$2 = baseIsArguments(/* @__PURE__ */ function() {
598
- return arguments;
599
- }()) ? baseIsArguments : function(value) {
600
- return isObjectLike$3(value) && hasOwnProperty$4.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
601
- };
602
- var isArguments_1 = isArguments$2;
603
- var isBuffer$2 = { exports: {} };
604
- function stubFalse() {
605
- return false;
606
- }
607
- var stubFalse_1 = stubFalse;
608
- isBuffer$2.exports;
609
- (function(module, exports) {
610
- var root2 = _root, stubFalse2 = stubFalse_1;
611
- var freeExports = exports && !exports.nodeType && exports;
612
- var freeModule = freeExports && true && module && !module.nodeType && module;
613
- var moduleExports = freeModule && freeModule.exports === freeExports;
614
- var Buffer = moduleExports ? root2.Buffer : void 0;
615
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
616
- var isBuffer2 = nativeIsBuffer || stubFalse2;
617
- module.exports = isBuffer2;
618
- })(isBuffer$2, isBuffer$2.exports);
619
- var isBufferExports = isBuffer$2.exports;
620
- var MAX_SAFE_INTEGER$1 = 9007199254740991;
621
- var reIsUint = /^(?:0|[1-9]\d*)$/;
622
- function isIndex$2(value, length) {
623
- var type = typeof value;
624
- length = length == null ? MAX_SAFE_INTEGER$1 : length;
625
- return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
626
- }
627
- var _isIndex = isIndex$2;
628
- var MAX_SAFE_INTEGER = 9007199254740991;
629
- function isLength$3(value) {
630
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
631
- }
632
- var isLength_1 = isLength$3;
633
- var baseGetTag$2 = _baseGetTag, isLength$2 = isLength_1, isObjectLike$2 = isObjectLike_1;
634
- var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", mapTag$1 = "[object Map]", numberTag = "[object Number]", objectTag$2 = "[object Object]", regexpTag = "[object RegExp]", setTag$1 = "[object Set]", stringTag = "[object String]", weakMapTag$1 = "[object WeakMap]";
635
- var arrayBufferTag = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
636
- var typedArrayTags = {};
637
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
638
- typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag$1] = typedArrayTags[numberTag] = typedArrayTags[objectTag$2] = typedArrayTags[regexpTag] = typedArrayTags[setTag$1] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag$1] = false;
639
- function baseIsTypedArray$1(value) {
640
- return isObjectLike$2(value) && isLength$2(value.length) && !!typedArrayTags[baseGetTag$2(value)];
641
- }
642
- var _baseIsTypedArray = baseIsTypedArray$1;
643
- function baseUnary$1(func) {
644
- return function(value) {
645
- return func(value);
646
- };
647
- }
648
- var _baseUnary = baseUnary$1;
649
- var _nodeUtil = { exports: {} };
650
- _nodeUtil.exports;
651
- (function(module, exports) {
652
- var freeGlobal2 = _freeGlobal;
653
- var freeExports = exports && !exports.nodeType && exports;
654
- var freeModule = freeExports && true && module && !module.nodeType && module;
655
- var moduleExports = freeModule && freeModule.exports === freeExports;
656
- var freeProcess = moduleExports && freeGlobal2.process;
657
- var nodeUtil2 = function() {
658
- try {
659
- var types = freeModule && freeModule.require && freeModule.require("util").types;
660
- if (types) {
661
- return types;
662
- }
663
- return freeProcess && freeProcess.binding && freeProcess.binding("util");
664
- } catch (e) {
665
- }
666
- }();
667
- module.exports = nodeUtil2;
668
- })(_nodeUtil, _nodeUtil.exports);
669
- var _nodeUtilExports = _nodeUtil.exports;
670
- var baseIsTypedArray = _baseIsTypedArray, baseUnary = _baseUnary, nodeUtil = _nodeUtilExports;
671
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
672
- var isTypedArray$2 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
673
- var isTypedArray_1 = isTypedArray$2;
674
- var baseTimes = _baseTimes, isArguments$1 = isArguments_1, isArray$6 = isArray_1, isBuffer$1 = isBufferExports, isIndex$1 = _isIndex, isTypedArray$1 = isTypedArray_1;
675
- var objectProto$4 = Object.prototype;
676
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
677
- function arrayLikeKeys$1(value, inherited) {
678
- var isArr = isArray$6(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
679
- for (var key in value) {
680
- if ((inherited || hasOwnProperty$3.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
681
- (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
682
- isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
683
- isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
684
- isIndex$1(key, length)))) {
685
- result.push(key);
686
- }
687
- }
688
- return result;
689
- }
690
- var _arrayLikeKeys = arrayLikeKeys$1;
691
- var objectProto$3 = Object.prototype;
692
- function isPrototype$1(value) {
693
- var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$3;
694
- return value === proto;
695
- }
696
- var _isPrototype = isPrototype$1;
697
- function overArg$2(func, transform) {
698
- return function(arg) {
699
- return func(transform(arg));
700
- };
701
- }
702
- var _overArg = overArg$2;
703
- var overArg$1 = _overArg;
704
- var nativeKeys$1 = overArg$1(Object.keys, Object);
705
- var _nativeKeys = nativeKeys$1;
706
- var isPrototype = _isPrototype, nativeKeys = _nativeKeys;
707
- var objectProto$2 = Object.prototype;
708
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
709
- function baseKeys$1(object) {
710
- if (!isPrototype(object)) {
711
- return nativeKeys(object);
712
- }
713
- var result = [];
714
- for (var key in Object(object)) {
715
- if (hasOwnProperty$2.call(object, key) && key != "constructor") {
716
- result.push(key);
717
- }
718
- }
719
- return result;
720
- }
721
- var _baseKeys = baseKeys$1;
722
- var isFunction = isFunction_1, isLength$1 = isLength_1;
723
- function isArrayLike$1(value) {
724
- return value != null && isLength$1(value.length) && !isFunction(value);
725
- }
726
- var isArrayLike_1 = isArrayLike$1;
727
- var arrayLikeKeys = _arrayLikeKeys, baseKeys = _baseKeys, isArrayLike = isArrayLike_1;
728
- function keys$3(object) {
729
- return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
730
- }
731
- var keys_1 = keys$3;
732
- var baseGetAllKeys = _baseGetAllKeys, getSymbols = _getSymbols, keys$2 = keys_1;
733
- function getAllKeys$1(object) {
734
- return baseGetAllKeys(object, keys$2, getSymbols);
735
- }
736
- var _getAllKeys = getAllKeys$1;
737
- var getAllKeys = _getAllKeys;
738
- var COMPARE_PARTIAL_FLAG$3 = 1;
739
- var objectProto$1 = Object.prototype;
740
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
741
- function equalObjects$1(object, other, bitmask, customizer, equalFunc, stack) {
742
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
743
- if (objLength != othLength && !isPartial) {
744
- return false;
745
- }
746
- var index = objLength;
747
- while (index--) {
748
- var key = objProps[index];
749
- if (!(isPartial ? key in other : hasOwnProperty$1.call(other, key))) {
750
- return false;
751
- }
752
- }
753
- var objStacked = stack.get(object);
754
- var othStacked = stack.get(other);
755
- if (objStacked && othStacked) {
756
- return objStacked == other && othStacked == object;
757
- }
758
- var result = true;
759
- stack.set(object, other);
760
- stack.set(other, object);
761
- var skipCtor = isPartial;
762
- while (++index < objLength) {
763
- key = objProps[index];
764
- var objValue = object[key], othValue = other[key];
765
- if (customizer) {
766
- var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
767
- }
768
- if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
769
- result = false;
770
- break;
771
- }
772
- skipCtor || (skipCtor = key == "constructor");
773
- }
774
- if (result && !skipCtor) {
775
- var objCtor = object.constructor, othCtor = other.constructor;
776
- if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
777
- result = false;
778
- }
779
- }
780
- stack["delete"](object);
781
- stack["delete"](other);
782
- return result;
783
- }
784
- var _equalObjects = equalObjects$1;
785
- var getNative$4 = _getNative, root$3 = _root;
786
- var DataView$1 = getNative$4(root$3, "DataView");
787
- var _DataView = DataView$1;
788
- var getNative$3 = _getNative, root$2 = _root;
789
- var Promise$2 = getNative$3(root$2, "Promise");
790
- var _Promise = Promise$2;
791
- var getNative$2 = _getNative, root$1 = _root;
792
- var Set$1 = getNative$2(root$1, "Set");
793
- var _Set = Set$1;
794
- var getNative$1 = _getNative, root = _root;
795
- var WeakMap$1 = getNative$1(root, "WeakMap");
796
- var _WeakMap = WeakMap$1;
797
- var DataView = _DataView, Map = _Map, Promise$1 = _Promise, Set = _Set, WeakMap = _WeakMap, baseGetTag$1 = _baseGetTag, toSource = _toSource;
798
- var mapTag = "[object Map]", objectTag$1 = "[object Object]", promiseTag = "[object Promise]", setTag = "[object Set]", weakMapTag = "[object WeakMap]";
799
- var dataViewTag = "[object DataView]";
800
- var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
801
- var getTag$1 = baseGetTag$1;
802
- if (DataView && getTag$1(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag$1(new Map()) != mapTag || Promise$1 && getTag$1(Promise$1.resolve()) != promiseTag || Set && getTag$1(new Set()) != setTag || WeakMap && getTag$1(new WeakMap()) != weakMapTag) {
803
- getTag$1 = function(value) {
804
- var result = baseGetTag$1(value), Ctor = result == objectTag$1 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
805
- if (ctorString) {
806
- switch (ctorString) {
807
- case dataViewCtorString:
808
- return dataViewTag;
809
- case mapCtorString:
810
- return mapTag;
811
- case promiseCtorString:
812
- return promiseTag;
813
- case setCtorString:
814
- return setTag;
815
- case weakMapCtorString:
816
- return weakMapTag;
817
- }
818
- }
819
- return result;
820
- };
821
- }
822
- var _getTag = getTag$1;
823
- var Stack$1 = _Stack, equalArrays = _equalArrays, equalByTag = _equalByTag, equalObjects = _equalObjects, getTag = _getTag, isArray$5 = isArray_1, isBuffer = isBufferExports, isTypedArray = isTypedArray_1;
824
- var COMPARE_PARTIAL_FLAG$2 = 1;
825
- var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
826
- var objectProto = Object.prototype;
827
- var hasOwnProperty = objectProto.hasOwnProperty;
828
- function baseIsEqualDeep$1(object, other, bitmask, customizer, equalFunc, stack) {
829
- var objIsArr = isArray$5(object), othIsArr = isArray$5(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other);
830
- objTag = objTag == argsTag ? objectTag : objTag;
831
- othTag = othTag == argsTag ? objectTag : othTag;
832
- var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
833
- if (isSameTag && isBuffer(object)) {
834
- if (!isBuffer(other)) {
835
- return false;
836
- }
837
- objIsArr = true;
838
- objIsObj = false;
839
- }
840
- if (isSameTag && !objIsObj) {
841
- stack || (stack = new Stack$1());
842
- return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
843
- }
844
- if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
845
- var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__");
846
- if (objIsWrapped || othIsWrapped) {
847
- var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
848
- stack || (stack = new Stack$1());
849
- return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
850
- }
851
- }
852
- if (!isSameTag) {
853
- return false;
854
- }
855
- stack || (stack = new Stack$1());
856
- return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
857
- }
858
- var _baseIsEqualDeep = baseIsEqualDeep$1;
859
- var baseIsEqualDeep = _baseIsEqualDeep, isObjectLike$1 = isObjectLike_1;
860
- function baseIsEqual$2(value, other, bitmask, customizer, stack) {
861
- if (value === other) {
862
- return true;
863
- }
864
- if (value == null || other == null || !isObjectLike$1(value) && !isObjectLike$1(other)) {
865
- return value !== value && other !== other;
866
- }
867
- return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual$2, stack);
868
- }
869
- var _baseIsEqual = baseIsEqual$2;
870
- var Stack = _Stack, baseIsEqual$1 = _baseIsEqual;
871
- var COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
872
- function baseIsMatch$1(object, source, matchData, customizer) {
873
- var index = matchData.length, length = index, noCustomizer = !customizer;
874
- if (object == null) {
875
- return !length;
876
- }
877
- object = Object(object);
878
- while (index--) {
879
- var data = matchData[index];
880
- if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
881
- return false;
882
- }
883
- }
884
- while (++index < length) {
885
- data = matchData[index];
886
- var key = data[0], objValue = object[key], srcValue = data[1];
887
- if (noCustomizer && data[2]) {
888
- if (objValue === void 0 && !(key in object)) {
889
- return false;
890
- }
891
- } else {
892
- var stack = new Stack();
893
- if (customizer) {
894
- var result = customizer(objValue, srcValue, key, object, source, stack);
895
- }
896
- if (!(result === void 0 ? baseIsEqual$1(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack) : result)) {
897
- return false;
898
- }
899
- }
900
- }
901
- return true;
902
- }
903
- var _baseIsMatch = baseIsMatch$1;
904
- var isObject = isObject_1;
905
- function isStrictComparable$2(value) {
906
- return value === value && !isObject(value);
907
- }
908
- var _isStrictComparable = isStrictComparable$2;
909
- var isStrictComparable$1 = _isStrictComparable, keys$1 = keys_1;
910
- function getMatchData$1(object) {
911
- var result = keys$1(object), length = result.length;
912
- while (length--) {
913
- var key = result[length], value = object[key];
914
- result[length] = [key, value, isStrictComparable$1(value)];
915
- }
916
- return result;
917
- }
918
- var _getMatchData = getMatchData$1;
919
- function matchesStrictComparable$2(key, srcValue) {
920
- return function(object) {
921
- if (object == null) {
922
- return false;
923
- }
924
- return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));
925
- };
926
- }
927
- var _matchesStrictComparable = matchesStrictComparable$2;
928
- var baseIsMatch = _baseIsMatch, getMatchData = _getMatchData, matchesStrictComparable$1 = _matchesStrictComparable;
929
- function baseMatches$1(source) {
930
- var matchData = getMatchData(source);
931
- if (matchData.length == 1 && matchData[0][2]) {
932
- return matchesStrictComparable$1(matchData[0][0], matchData[0][1]);
933
- }
934
- return function(object) {
935
- return object === source || baseIsMatch(object, source, matchData);
936
- };
937
- }
938
- var _baseMatches = baseMatches$1;
939
- var baseGetTag = _baseGetTag, isObjectLike = isObjectLike_1;
940
- var symbolTag = "[object Symbol]";
941
- function isSymbol$3(value) {
942
- return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
943
- }
944
- var isSymbol_1 = isSymbol$3;
945
- var isArray$4 = isArray_1, isSymbol$2 = isSymbol_1;
946
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
947
- function isKey$3(value, object) {
948
- if (isArray$4(value)) {
949
- return false;
950
- }
951
- var type = typeof value;
952
- if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol$2(value)) {
953
- return true;
954
- }
955
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
956
- }
957
- var _isKey = isKey$3;
958
- var MapCache = _MapCache;
959
- var FUNC_ERROR_TEXT = "Expected a function";
960
- function memoize$1(func, resolver) {
961
- if (typeof func != "function" || resolver != null && typeof resolver != "function") {
962
- throw new TypeError(FUNC_ERROR_TEXT);
963
- }
964
- var memoized = function() {
965
- var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
966
- if (cache.has(key)) {
967
- return cache.get(key);
968
- }
969
- var result = func.apply(this, args);
970
- memoized.cache = cache.set(key, result) || cache;
971
- return result;
972
- };
973
- memoized.cache = new (memoize$1.Cache || MapCache)();
974
- return memoized;
975
- }
976
- memoize$1.Cache = MapCache;
977
- var memoize_1 = memoize$1;
978
- var memoize = memoize_1;
979
- var MAX_MEMOIZE_SIZE = 500;
980
- function memoizeCapped$1(func) {
981
- var result = memoize(func, function(key) {
982
- if (cache.size === MAX_MEMOIZE_SIZE) {
983
- cache.clear();
984
- }
985
- return key;
986
- });
987
- var cache = result.cache;
988
- return result;
989
- }
990
- var _memoizeCapped = memoizeCapped$1;
991
- var memoizeCapped = _memoizeCapped;
992
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
993
- var reEscapeChar = /\\(\\)?/g;
994
- var stringToPath$1 = memoizeCapped(function(string) {
995
- var result = [];
996
- if (string.charCodeAt(0) === 46) {
997
- result.push("");
998
- }
999
- string.replace(rePropName, function(match, number, quote, subString) {
1000
- result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
1001
- });
1002
- return result;
1003
- });
1004
- var _stringToPath = stringToPath$1;
1005
- var Symbol$1 = _Symbol, arrayMap = _arrayMap, isArray$3 = isArray_1, isSymbol$1 = isSymbol_1;
1006
- var INFINITY$1 = 1 / 0;
1007
- var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
1008
- function baseToString$1(value) {
1009
- if (typeof value == "string") {
1010
- return value;
1011
- }
1012
- if (isArray$3(value)) {
1013
- return arrayMap(value, baseToString$1) + "";
1014
- }
1015
- if (isSymbol$1(value)) {
1016
- return symbolToString ? symbolToString.call(value) : "";
1017
- }
1018
- var result = value + "";
1019
- return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
1020
- }
1021
- var _baseToString = baseToString$1;
1022
- var baseToString = _baseToString;
1023
- function toString$1(value) {
1024
- return value == null ? "" : baseToString(value);
1025
- }
1026
- var toString_1 = toString$1;
1027
- var isArray$2 = isArray_1, isKey$2 = _isKey, stringToPath = _stringToPath, toString = toString_1;
1028
- function castPath$2(value, object) {
1029
- if (isArray$2(value)) {
1030
- return value;
1031
- }
1032
- return isKey$2(value, object) ? [value] : stringToPath(toString(value));
1033
- }
1034
- var _castPath = castPath$2;
1035
- var isSymbol = isSymbol_1;
1036
- var INFINITY = 1 / 0;
1037
- function toKey$4(value) {
1038
- if (typeof value == "string" || isSymbol(value)) {
1039
- return value;
1040
- }
1041
- var result = value + "";
1042
- return result == "0" && 1 / value == -INFINITY ? "-0" : result;
1043
- }
1044
- var _toKey = toKey$4;
1045
- var castPath$1 = _castPath, toKey$3 = _toKey;
1046
- function baseGet$2(object, path) {
1047
- path = castPath$1(path, object);
1048
- var index = 0, length = path.length;
1049
- while (object != null && index < length) {
1050
- object = object[toKey$3(path[index++])];
1051
- }
1052
- return index && index == length ? object : void 0;
1053
- }
1054
- var _baseGet = baseGet$2;
1055
- var baseGet$1 = _baseGet;
1056
- function get$1(object, path, defaultValue) {
1057
- var result = object == null ? void 0 : baseGet$1(object, path);
1058
- return result === void 0 ? defaultValue : result;
1059
- }
1060
- var get_1 = get$1;
1061
- function baseHasIn$1(object, key) {
1062
- return object != null && key in Object(object);
1063
- }
1064
- var _baseHasIn = baseHasIn$1;
1065
- var castPath = _castPath, isArguments = isArguments_1, isArray$1 = isArray_1, isIndex = _isIndex, isLength = isLength_1, toKey$2 = _toKey;
1066
- function hasPath$1(object, path, hasFunc) {
1067
- path = castPath(path, object);
1068
- var index = -1, length = path.length, result = false;
1069
- while (++index < length) {
1070
- var key = toKey$2(path[index]);
1071
- if (!(result = object != null && hasFunc(object, key))) {
1072
- break;
1073
- }
1074
- object = object[key];
1075
- }
1076
- if (result || ++index != length) {
1077
- return result;
1078
- }
1079
- length = object == null ? 0 : object.length;
1080
- return !!length && isLength(length) && isIndex(key, length) && (isArray$1(object) || isArguments(object));
1081
- }
1082
- var _hasPath = hasPath$1;
1083
- var baseHasIn = _baseHasIn, hasPath = _hasPath;
1084
- function hasIn$1(object, path) {
1085
- return object != null && hasPath(object, path, baseHasIn);
1086
- }
1087
- var hasIn_1 = hasIn$1;
1088
- var baseIsEqual = _baseIsEqual, get = get_1, hasIn = hasIn_1, isKey$1 = _isKey, isStrictComparable = _isStrictComparable, matchesStrictComparable = _matchesStrictComparable, toKey$1 = _toKey;
1089
- var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
1090
- function baseMatchesProperty$1(path, srcValue) {
1091
- if (isKey$1(path) && isStrictComparable(srcValue)) {
1092
- return matchesStrictComparable(toKey$1(path), srcValue);
1093
- }
1094
- return function(object) {
1095
- var objValue = get(object, path);
1096
- return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
1097
- };
1098
- }
1099
- var _baseMatchesProperty = baseMatchesProperty$1;
1100
- function identity$1(value) {
1101
- return value;
1102
- }
1103
- var identity_1 = identity$1;
1104
- function baseProperty$1(key) {
1105
- return function(object) {
1106
- return object == null ? void 0 : object[key];
1107
- };
1108
- }
1109
- var _baseProperty = baseProperty$1;
1110
- var baseGet = _baseGet;
1111
- function basePropertyDeep$1(path) {
1112
- return function(object) {
1113
- return baseGet(object, path);
1114
- };
1115
- }
1116
- var _basePropertyDeep = basePropertyDeep$1;
1117
- var baseProperty = _baseProperty, basePropertyDeep = _basePropertyDeep, isKey = _isKey, toKey = _toKey;
1118
- function property$1(path) {
1119
- return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
1120
- }
1121
- var property_1 = property$1;
1122
- var baseMatches = _baseMatches, baseMatchesProperty = _baseMatchesProperty, identity = identity_1, isArray = isArray_1, property = property_1;
1123
- function baseIteratee$1(value) {
1124
- if (typeof value == "function") {
1125
- return value;
1126
- }
1127
- if (value == null) {
1128
- return identity;
1129
- }
1130
- if (typeof value == "object") {
1131
- return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
1132
- }
1133
- return property(value);
1134
- }
1135
- var _baseIteratee = baseIteratee$1;
1136
- var getNative = _getNative;
1137
- var defineProperty$1 = function() {
1138
- try {
1139
- var func = getNative(Object, "defineProperty");
1140
- func({}, "", {});
1141
- return func;
1142
- } catch (e) {
1143
- }
1144
- }();
1145
- var _defineProperty = defineProperty$1;
1146
- var defineProperty = _defineProperty;
1147
- function baseAssignValue$1(object, key, value) {
1148
- if (key == "__proto__" && defineProperty) {
1149
- defineProperty(object, key, {
1150
- "configurable": true,
1151
- "enumerable": true,
1152
- "value": value,
1153
- "writable": true
1154
- });
1155
- } else {
1156
- object[key] = value;
1157
- }
1158
- }
1159
- var _baseAssignValue = baseAssignValue$1;
1160
- var overArg = _overArg;
1161
- var getPrototype = overArg(Object.getPrototypeOf, Object);
1162
- var _getPrototype = getPrototype;
1163
- function createBaseFor$1(fromRight) {
1164
- return function(object, iteratee, keysFunc) {
1165
- var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
1166
- while (length--) {
1167
- var key = props[fromRight ? length : ++index];
1168
- if (iteratee(iterable[key], key, iterable) === false) {
1169
- break;
1170
- }
1171
- }
1172
- return object;
1173
- };
1174
- }
1175
- var _createBaseFor = createBaseFor$1;
1176
- var createBaseFor = _createBaseFor;
1177
- var baseFor$1 = createBaseFor();
1178
- var _baseFor = baseFor$1;
1179
- var baseFor = _baseFor, keys = keys_1;
1180
- function baseForOwn$1(object, iteratee) {
1181
- return object && baseFor(object, iteratee, keys);
1182
- }
1183
- var _baseForOwn = baseForOwn$1;
1184
- var baseAssignValue = _baseAssignValue, baseForOwn = _baseForOwn, baseIteratee = _baseIteratee;
1185
- function mapValues(object, iteratee) {
1186
- var result = {};
1187
- iteratee = baseIteratee(iteratee);
1188
- baseForOwn(object, function(value, key, object2) {
1189
- baseAssignValue(result, key, iteratee(value, key, object2));
1190
- });
1191
- return result;
1192
- }
1193
- var mapValues_1 = mapValues;
1194
- const mapValues$1 = /* @__PURE__ */ getDefaultExportFromCjs(mapValues_1);
1195
- var doctrine$1 = {};
1196
- var utils = {};
1197
- var ast = { exports: {} };
1198
- (function() {
1199
- function isExpression(node) {
1200
- if (node == null) {
1201
- return false;
1202
- }
1203
- switch (node.type) {
1204
- case "ArrayExpression":
1205
- case "AssignmentExpression":
1206
- case "BinaryExpression":
1207
- case "CallExpression":
1208
- case "ConditionalExpression":
1209
- case "FunctionExpression":
1210
- case "Identifier":
1211
- case "Literal":
1212
- case "LogicalExpression":
1213
- case "MemberExpression":
1214
- case "NewExpression":
1215
- case "ObjectExpression":
1216
- case "SequenceExpression":
1217
- case "ThisExpression":
1218
- case "UnaryExpression":
1219
- case "UpdateExpression":
1220
- return true;
1221
- }
1222
- return false;
1223
- }
1224
- function isIterationStatement(node) {
1225
- if (node == null) {
1226
- return false;
1227
- }
1228
- switch (node.type) {
1229
- case "DoWhileStatement":
1230
- case "ForInStatement":
1231
- case "ForStatement":
1232
- case "WhileStatement":
1233
- return true;
1234
- }
1235
- return false;
1236
- }
1237
- function isStatement(node) {
1238
- if (node == null) {
1239
- return false;
1240
- }
1241
- switch (node.type) {
1242
- case "BlockStatement":
1243
- case "BreakStatement":
1244
- case "ContinueStatement":
1245
- case "DebuggerStatement":
1246
- case "DoWhileStatement":
1247
- case "EmptyStatement":
1248
- case "ExpressionStatement":
1249
- case "ForInStatement":
1250
- case "ForStatement":
1251
- case "IfStatement":
1252
- case "LabeledStatement":
1253
- case "ReturnStatement":
1254
- case "SwitchStatement":
1255
- case "ThrowStatement":
1256
- case "TryStatement":
1257
- case "VariableDeclaration":
1258
- case "WhileStatement":
1259
- case "WithStatement":
1260
- return true;
1261
- }
1262
- return false;
1263
- }
1264
- function isSourceElement(node) {
1265
- return isStatement(node) || node != null && node.type === "FunctionDeclaration";
1266
- }
1267
- function trailingStatement(node) {
1268
- switch (node.type) {
1269
- case "IfStatement":
1270
- if (node.alternate != null) {
1271
- return node.alternate;
1272
- }
1273
- return node.consequent;
1274
- case "LabeledStatement":
1275
- case "ForStatement":
1276
- case "ForInStatement":
1277
- case "WhileStatement":
1278
- case "WithStatement":
1279
- return node.body;
1280
- }
1281
- return null;
1282
- }
1283
- function isProblematicIfStatement(node) {
1284
- var current;
1285
- if (node.type !== "IfStatement") {
1286
- return false;
1287
- }
1288
- if (node.alternate == null) {
1289
- return false;
1290
- }
1291
- current = node.consequent;
1292
- do {
1293
- if (current.type === "IfStatement") {
1294
- if (current.alternate == null) {
1295
- return true;
1296
- }
1297
- }
1298
- current = trailingStatement(current);
1299
- } while (current);
1300
- return false;
1301
- }
1302
- ast.exports = {
1303
- isExpression,
1304
- isStatement,
1305
- isIterationStatement,
1306
- isSourceElement,
1307
- isProblematicIfStatement,
1308
- trailingStatement
1309
- };
1310
- })();
1311
- var astExports = ast.exports;
1312
- var code = { exports: {} };
1313
- (function() {
1314
- var ES6Regex, ES5Regex, NON_ASCII_WHITESPACES, IDENTIFIER_START, IDENTIFIER_PART, ch;
1315
- ES5Regex = {
1316
- // ECMAScript 5.1/Unicode v9.0.0 NonAsciiIdentifierStart:
1317
- NonAsciiIdentifierStart: /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,
1318
- // ECMAScript 5.1/Unicode v9.0.0 NonAsciiIdentifierPart:
1319
- NonAsciiIdentifierPart: /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/
1320
- };
1321
- ES6Regex = {
1322
- // ECMAScript 6/Unicode v9.0.0 NonAsciiIdentifierStart:
1323
- NonAsciiIdentifierStart: /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,
1324
- // ECMAScript 6/Unicode v9.0.0 NonAsciiIdentifierPart:
1325
- NonAsciiIdentifierPart: /[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/
1326
- };
1327
- function isDecimalDigit(ch2) {
1328
- return 48 <= ch2 && ch2 <= 57;
1329
- }
1330
- function isHexDigit(ch2) {
1331
- return 48 <= ch2 && ch2 <= 57 || // 0..9
1332
- 97 <= ch2 && ch2 <= 102 || // a..f
1333
- 65 <= ch2 && ch2 <= 70;
1334
- }
1335
- function isOctalDigit(ch2) {
1336
- return ch2 >= 48 && ch2 <= 55;
1337
- }
1338
- NON_ASCII_WHITESPACES = [
1339
- 5760,
1340
- 8192,
1341
- 8193,
1342
- 8194,
1343
- 8195,
1344
- 8196,
1345
- 8197,
1346
- 8198,
1347
- 8199,
1348
- 8200,
1349
- 8201,
1350
- 8202,
1351
- 8239,
1352
- 8287,
1353
- 12288,
1354
- 65279
1355
- ];
1356
- function isWhiteSpace(ch2) {
1357
- return ch2 === 32 || ch2 === 9 || ch2 === 11 || ch2 === 12 || ch2 === 160 || ch2 >= 5760 && NON_ASCII_WHITESPACES.indexOf(ch2) >= 0;
1358
- }
1359
- function isLineTerminator(ch2) {
1360
- return ch2 === 10 || ch2 === 13 || ch2 === 8232 || ch2 === 8233;
1361
- }
1362
- function fromCodePoint(cp) {
1363
- if (cp <= 65535) {
1364
- return String.fromCharCode(cp);
1365
- }
1366
- var cu1 = String.fromCharCode(Math.floor((cp - 65536) / 1024) + 55296);
1367
- var cu2 = String.fromCharCode((cp - 65536) % 1024 + 56320);
1368
- return cu1 + cu2;
1369
- }
1370
- IDENTIFIER_START = new Array(128);
1371
- for (ch = 0; ch < 128; ++ch) {
1372
- IDENTIFIER_START[ch] = ch >= 97 && ch <= 122 || // a..z
1373
- ch >= 65 && ch <= 90 || // A..Z
1374
- ch === 36 || ch === 95;
1375
- }
1376
- IDENTIFIER_PART = new Array(128);
1377
- for (ch = 0; ch < 128; ++ch) {
1378
- IDENTIFIER_PART[ch] = ch >= 97 && ch <= 122 || // a..z
1379
- ch >= 65 && ch <= 90 || // A..Z
1380
- ch >= 48 && ch <= 57 || // 0..9
1381
- ch === 36 || ch === 95;
1382
- }
1383
- function isIdentifierStartES5(ch2) {
1384
- return ch2 < 128 ? IDENTIFIER_START[ch2] : ES5Regex.NonAsciiIdentifierStart.test(fromCodePoint(ch2));
1385
- }
1386
- function isIdentifierPartES5(ch2) {
1387
- return ch2 < 128 ? IDENTIFIER_PART[ch2] : ES5Regex.NonAsciiIdentifierPart.test(fromCodePoint(ch2));
1388
- }
1389
- function isIdentifierStartES6(ch2) {
1390
- return ch2 < 128 ? IDENTIFIER_START[ch2] : ES6Regex.NonAsciiIdentifierStart.test(fromCodePoint(ch2));
1391
- }
1392
- function isIdentifierPartES6(ch2) {
1393
- return ch2 < 128 ? IDENTIFIER_PART[ch2] : ES6Regex.NonAsciiIdentifierPart.test(fromCodePoint(ch2));
1394
- }
1395
- code.exports = {
1396
- isDecimalDigit,
1397
- isHexDigit,
1398
- isOctalDigit,
1399
- isWhiteSpace,
1400
- isLineTerminator,
1401
- isIdentifierStartES5,
1402
- isIdentifierPartES5,
1403
- isIdentifierStartES6,
1404
- isIdentifierPartES6
1405
- };
1406
- })();
1407
- var codeExports = code.exports;
1408
- var keyword = { exports: {} };
1409
- (function() {
1410
- var code2 = codeExports;
1411
- function isStrictModeReservedWordES6(id) {
1412
- switch (id) {
1413
- case "implements":
1414
- case "interface":
1415
- case "package":
1416
- case "private":
1417
- case "protected":
1418
- case "public":
1419
- case "static":
1420
- case "let":
1421
- return true;
1422
- default:
1423
- return false;
1424
- }
1425
- }
1426
- function isKeywordES5(id, strict) {
1427
- if (!strict && id === "yield") {
1428
- return false;
1429
- }
1430
- return isKeywordES6(id, strict);
1431
- }
1432
- function isKeywordES6(id, strict) {
1433
- if (strict && isStrictModeReservedWordES6(id)) {
1434
- return true;
1435
- }
1436
- switch (id.length) {
1437
- case 2:
1438
- return id === "if" || id === "in" || id === "do";
1439
- case 3:
1440
- return id === "var" || id === "for" || id === "new" || id === "try";
1441
- case 4:
1442
- return id === "this" || id === "else" || id === "case" || id === "void" || id === "with" || id === "enum";
1443
- case 5:
1444
- return id === "while" || id === "break" || id === "catch" || id === "throw" || id === "const" || id === "yield" || id === "class" || id === "super";
1445
- case 6:
1446
- return id === "return" || id === "typeof" || id === "delete" || id === "switch" || id === "export" || id === "import";
1447
- case 7:
1448
- return id === "default" || id === "finally" || id === "extends";
1449
- case 8:
1450
- return id === "function" || id === "continue" || id === "debugger";
1451
- case 10:
1452
- return id === "instanceof";
1453
- default:
1454
- return false;
1455
- }
1456
- }
1457
- function isReservedWordES5(id, strict) {
1458
- return id === "null" || id === "true" || id === "false" || isKeywordES5(id, strict);
1459
- }
1460
- function isReservedWordES6(id, strict) {
1461
- return id === "null" || id === "true" || id === "false" || isKeywordES6(id, strict);
1462
- }
1463
- function isRestrictedWord(id) {
1464
- return id === "eval" || id === "arguments";
1465
- }
1466
- function isIdentifierNameES5(id) {
1467
- var i, iz, ch;
1468
- if (id.length === 0) {
1469
- return false;
1470
- }
1471
- ch = id.charCodeAt(0);
1472
- if (!code2.isIdentifierStartES5(ch)) {
1473
- return false;
1474
- }
1475
- for (i = 1, iz = id.length; i < iz; ++i) {
1476
- ch = id.charCodeAt(i);
1477
- if (!code2.isIdentifierPartES5(ch)) {
1478
- return false;
1479
- }
1480
- }
1481
- return true;
1482
- }
1483
- function decodeUtf16(lead, trail) {
1484
- return (lead - 55296) * 1024 + (trail - 56320) + 65536;
1485
- }
1486
- function isIdentifierNameES6(id) {
1487
- var i, iz, ch, lowCh, check;
1488
- if (id.length === 0) {
1489
- return false;
1490
- }
1491
- check = code2.isIdentifierStartES6;
1492
- for (i = 0, iz = id.length; i < iz; ++i) {
1493
- ch = id.charCodeAt(i);
1494
- if (55296 <= ch && ch <= 56319) {
1495
- ++i;
1496
- if (i >= iz) {
1497
- return false;
1498
- }
1499
- lowCh = id.charCodeAt(i);
1500
- if (!(56320 <= lowCh && lowCh <= 57343)) {
1501
- return false;
1502
- }
1503
- ch = decodeUtf16(ch, lowCh);
1504
- }
1505
- if (!check(ch)) {
1506
- return false;
1507
- }
1508
- check = code2.isIdentifierPartES6;
1509
- }
1510
- return true;
1511
- }
1512
- function isIdentifierES5(id, strict) {
1513
- return isIdentifierNameES5(id) && !isReservedWordES5(id, strict);
1514
- }
1515
- function isIdentifierES6(id, strict) {
1516
- return isIdentifierNameES6(id) && !isReservedWordES6(id, strict);
1517
- }
1518
- keyword.exports = {
1519
- isKeywordES5,
1520
- isKeywordES6,
1521
- isReservedWordES5,
1522
- isReservedWordES6,
1523
- isRestrictedWord,
1524
- isIdentifierNameES5,
1525
- isIdentifierNameES6,
1526
- isIdentifierES5,
1527
- isIdentifierES6
1528
- };
1529
- })();
1530
- var keywordExports = keyword.exports;
1531
- (function() {
1532
- utils.ast = astExports;
1533
- utils.code = codeExports;
1534
- utils.keyword = keywordExports;
1535
- })();
1536
- var typed = {};
1537
- var utility = {};
1538
- const name = "doctrine";
1539
- const description = "JSDoc parser";
1540
- const homepage = "https://github.com/eslint/doctrine";
1541
- const main = "lib/doctrine.js";
1542
- const version = "3.0.0";
1543
- const engines = {
1544
- node: ">=6.0.0"
1545
- };
1546
- const directories = {
1547
- lib: "./lib"
1548
- };
1549
- const files = [
1550
- "lib"
1551
- ];
1552
- const maintainers = [
1553
- {
1554
- name: "Nicholas C. Zakas",
1555
- email: "nicholas+npm@nczconsulting.com",
1556
- web: "https://www.nczonline.net"
1557
- },
1558
- {
1559
- name: "Yusuke Suzuki",
1560
- email: "utatane.tea@gmail.com",
1561
- web: "https://github.com/Constellation"
1562
- }
1563
- ];
1564
- const repository = "eslint/doctrine";
1565
- const devDependencies = {
1566
- coveralls: "^3.0.1",
1567
- dateformat: "^1.0.11",
1568
- eslint: "^1.10.3",
1569
- "eslint-release": "^1.0.0",
1570
- linefix: "^0.1.1",
1571
- mocha: "^3.4.2",
1572
- "npm-license": "^0.3.1",
1573
- nyc: "^10.3.2",
1574
- semver: "^5.0.3",
1575
- shelljs: "^0.5.3",
1576
- "shelljs-nodecli": "^0.1.1",
1577
- should: "^5.0.1"
1578
- };
1579
- const license = "Apache-2.0";
1580
- const scripts = {
1581
- pretest: "npm run lint",
1582
- test: "nyc mocha",
1583
- coveralls: "nyc report --reporter=text-lcov | coveralls",
1584
- lint: "eslint lib/",
1585
- "generate-release": "eslint-generate-release",
1586
- "generate-alpharelease": "eslint-generate-prerelease alpha",
1587
- "generate-betarelease": "eslint-generate-prerelease beta",
1588
- "generate-rcrelease": "eslint-generate-prerelease rc",
1589
- "publish-release": "eslint-publish-release"
1590
- };
1591
- const dependencies = {
1592
- esutils: "^2.0.2"
1593
- };
1594
- const require$$0 = {
1595
- name,
1596
- description,
1597
- homepage,
1598
- main,
1599
- version,
1600
- engines,
1601
- directories,
1602
- files,
1603
- maintainers,
1604
- repository,
1605
- devDependencies,
1606
- license,
1607
- scripts,
1608
- dependencies
1609
- };
1610
- function assert(expr, message) {
1611
- if (!Boolean(expr)) {
1612
- throw new Error(message || "unknown assertion error");
1613
- }
1614
- }
1615
- var assert_1 = assert;
1616
- (function() {
1617
- var VERSION;
1618
- VERSION = require$$0.version;
1619
- utility.VERSION = VERSION;
1620
- function DoctrineError(message) {
1621
- this.name = "DoctrineError";
1622
- this.message = message;
1623
- }
1624
- DoctrineError.prototype = function() {
1625
- var Middle = function() {
1626
- };
1627
- Middle.prototype = Error.prototype;
1628
- return new Middle();
1629
- }();
1630
- DoctrineError.prototype.constructor = DoctrineError;
1631
- utility.DoctrineError = DoctrineError;
1632
- function throwError(message) {
1633
- throw new DoctrineError(message);
1634
- }
1635
- utility.throwError = throwError;
1636
- utility.assert = assert_1;
1637
- })();
1638
- (function() {
1639
- var Syntax, Token, source, length, index, previous, token, value, esutils, utility$1, rangeOffset, addRange;
1640
- esutils = utils;
1641
- utility$1 = utility;
1642
- Syntax = {
1643
- NullableLiteral: "NullableLiteral",
1644
- AllLiteral: "AllLiteral",
1645
- NullLiteral: "NullLiteral",
1646
- UndefinedLiteral: "UndefinedLiteral",
1647
- VoidLiteral: "VoidLiteral",
1648
- UnionType: "UnionType",
1649
- ArrayType: "ArrayType",
1650
- RecordType: "RecordType",
1651
- FieldType: "FieldType",
1652
- FunctionType: "FunctionType",
1653
- ParameterType: "ParameterType",
1654
- RestType: "RestType",
1655
- NonNullableType: "NonNullableType",
1656
- OptionalType: "OptionalType",
1657
- NullableType: "NullableType",
1658
- NameExpression: "NameExpression",
1659
- TypeApplication: "TypeApplication",
1660
- StringLiteralType: "StringLiteralType",
1661
- NumericLiteralType: "NumericLiteralType",
1662
- BooleanLiteralType: "BooleanLiteralType"
1663
- };
1664
- Token = {
1665
- ILLEGAL: 0,
1666
- // ILLEGAL
1667
- DOT_LT: 1,
1668
- // .<
1669
- REST: 2,
1670
- // ...
1671
- LT: 3,
1672
- // <
1673
- GT: 4,
1674
- // >
1675
- LPAREN: 5,
1676
- // (
1677
- RPAREN: 6,
1678
- // )
1679
- LBRACE: 7,
1680
- // {
1681
- RBRACE: 8,
1682
- // }
1683
- LBRACK: 9,
1684
- // [
1685
- RBRACK: 10,
1686
- // ]
1687
- COMMA: 11,
1688
- // ,
1689
- COLON: 12,
1690
- // :
1691
- STAR: 13,
1692
- // *
1693
- PIPE: 14,
1694
- // |
1695
- QUESTION: 15,
1696
- // ?
1697
- BANG: 16,
1698
- // !
1699
- EQUAL: 17,
1700
- // =
1701
- NAME: 18,
1702
- // name token
1703
- STRING: 19,
1704
- // string
1705
- NUMBER: 20,
1706
- // number
1707
- EOF: 21
1708
- };
1709
- function isTypeName(ch) {
1710
- return "><(){}[],:*|?!=".indexOf(String.fromCharCode(ch)) === -1 && !esutils.code.isWhiteSpace(ch) && !esutils.code.isLineTerminator(ch);
1711
- }
1712
- function Context(previous2, index2, token2, value2) {
1713
- this._previous = previous2;
1714
- this._index = index2;
1715
- this._token = token2;
1716
- this._value = value2;
1717
- }
1718
- Context.prototype.restore = function() {
1719
- previous = this._previous;
1720
- index = this._index;
1721
- token = this._token;
1722
- value = this._value;
1723
- };
1724
- Context.save = function() {
1725
- return new Context(previous, index, token, value);
1726
- };
1727
- function maybeAddRange(node, range) {
1728
- if (addRange) {
1729
- node.range = [range[0] + rangeOffset, range[1] + rangeOffset];
1730
- }
1731
- return node;
1732
- }
1733
- function advance() {
1734
- var ch = source.charAt(index);
1735
- index += 1;
1736
- return ch;
1737
- }
1738
- function scanHexEscape(prefix) {
1739
- var i, len, ch, code2 = 0;
1740
- len = prefix === "u" ? 4 : 2;
1741
- for (i = 0; i < len; ++i) {
1742
- if (index < length && esutils.code.isHexDigit(source.charCodeAt(index))) {
1743
- ch = advance();
1744
- code2 = code2 * 16 + "0123456789abcdef".indexOf(ch.toLowerCase());
1745
- } else {
1746
- return "";
1747
- }
1748
- }
1749
- return String.fromCharCode(code2);
1750
- }
1751
- function scanString() {
1752
- var str2 = "", quote, ch, code2, unescaped, restore;
1753
- quote = source.charAt(index);
1754
- ++index;
1755
- while (index < length) {
1756
- ch = advance();
1757
- if (ch === quote) {
1758
- quote = "";
1759
- break;
1760
- } else if (ch === "\\") {
1761
- ch = advance();
1762
- if (!esutils.code.isLineTerminator(ch.charCodeAt(0))) {
1763
- switch (ch) {
1764
- case "n":
1765
- str2 += "\n";
1766
- break;
1767
- case "r":
1768
- str2 += "\r";
1769
- break;
1770
- case "t":
1771
- str2 += " ";
1772
- break;
1773
- case "u":
1774
- case "x":
1775
- restore = index;
1776
- unescaped = scanHexEscape(ch);
1777
- if (unescaped) {
1778
- str2 += unescaped;
1779
- } else {
1780
- index = restore;
1781
- str2 += ch;
1782
- }
1783
- break;
1784
- case "b":
1785
- str2 += "\b";
1786
- break;
1787
- case "f":
1788
- str2 += "\f";
1789
- break;
1790
- case "v":
1791
- str2 += "\v";
1792
- break;
1793
- default:
1794
- if (esutils.code.isOctalDigit(ch.charCodeAt(0))) {
1795
- code2 = "01234567".indexOf(ch);
1796
- if (index < length && esutils.code.isOctalDigit(source.charCodeAt(index))) {
1797
- code2 = code2 * 8 + "01234567".indexOf(advance());
1798
- if ("0123".indexOf(ch) >= 0 && index < length && esutils.code.isOctalDigit(source.charCodeAt(index))) {
1799
- code2 = code2 * 8 + "01234567".indexOf(advance());
1800
- }
1801
- }
1802
- str2 += String.fromCharCode(code2);
1803
- } else {
1804
- str2 += ch;
1805
- }
1806
- break;
1807
- }
1808
- } else {
1809
- if (ch === "\r" && source.charCodeAt(index) === 10) {
1810
- ++index;
1811
- }
1812
- }
1813
- } else if (esutils.code.isLineTerminator(ch.charCodeAt(0))) {
1814
- break;
1815
- } else {
1816
- str2 += ch;
1817
- }
1818
- }
1819
- if (quote !== "") {
1820
- utility$1.throwError("unexpected quote");
1821
- }
1822
- value = str2;
1823
- return Token.STRING;
1824
- }
1825
- function scanNumber() {
1826
- var number, ch;
1827
- number = "";
1828
- ch = source.charCodeAt(index);
1829
- if (ch !== 46) {
1830
- number = advance();
1831
- ch = source.charCodeAt(index);
1832
- if (number === "0") {
1833
- if (ch === 120 || ch === 88) {
1834
- number += advance();
1835
- while (index < length) {
1836
- ch = source.charCodeAt(index);
1837
- if (!esutils.code.isHexDigit(ch)) {
1838
- break;
1839
- }
1840
- number += advance();
1841
- }
1842
- if (number.length <= 2) {
1843
- utility$1.throwError("unexpected token");
1844
- }
1845
- if (index < length) {
1846
- ch = source.charCodeAt(index);
1847
- if (esutils.code.isIdentifierStartES5(ch)) {
1848
- utility$1.throwError("unexpected token");
1849
- }
1850
- }
1851
- value = parseInt(number, 16);
1852
- return Token.NUMBER;
1853
- }
1854
- if (esutils.code.isOctalDigit(ch)) {
1855
- number += advance();
1856
- while (index < length) {
1857
- ch = source.charCodeAt(index);
1858
- if (!esutils.code.isOctalDigit(ch)) {
1859
- break;
1860
- }
1861
- number += advance();
1862
- }
1863
- if (index < length) {
1864
- ch = source.charCodeAt(index);
1865
- if (esutils.code.isIdentifierStartES5(ch) || esutils.code.isDecimalDigit(ch)) {
1866
- utility$1.throwError("unexpected token");
1867
- }
1868
- }
1869
- value = parseInt(number, 8);
1870
- return Token.NUMBER;
1871
- }
1872
- if (esutils.code.isDecimalDigit(ch)) {
1873
- utility$1.throwError("unexpected token");
1874
- }
1875
- }
1876
- while (index < length) {
1877
- ch = source.charCodeAt(index);
1878
- if (!esutils.code.isDecimalDigit(ch)) {
1879
- break;
1880
- }
1881
- number += advance();
1882
- }
1883
- }
1884
- if (ch === 46) {
1885
- number += advance();
1886
- while (index < length) {
1887
- ch = source.charCodeAt(index);
1888
- if (!esutils.code.isDecimalDigit(ch)) {
1889
- break;
1890
- }
1891
- number += advance();
1892
- }
1893
- }
1894
- if (ch === 101 || ch === 69) {
1895
- number += advance();
1896
- ch = source.charCodeAt(index);
1897
- if (ch === 43 || ch === 45) {
1898
- number += advance();
1899
- }
1900
- ch = source.charCodeAt(index);
1901
- if (esutils.code.isDecimalDigit(ch)) {
1902
- number += advance();
1903
- while (index < length) {
1904
- ch = source.charCodeAt(index);
1905
- if (!esutils.code.isDecimalDigit(ch)) {
1906
- break;
1907
- }
1908
- number += advance();
1909
- }
1910
- } else {
1911
- utility$1.throwError("unexpected token");
1912
- }
1913
- }
1914
- if (index < length) {
1915
- ch = source.charCodeAt(index);
1916
- if (esutils.code.isIdentifierStartES5(ch)) {
1917
- utility$1.throwError("unexpected token");
1918
- }
1919
- }
1920
- value = parseFloat(number);
1921
- return Token.NUMBER;
1922
- }
1923
- function scanTypeName() {
1924
- var ch, ch2;
1925
- value = advance();
1926
- while (index < length && isTypeName(source.charCodeAt(index))) {
1927
- ch = source.charCodeAt(index);
1928
- if (ch === 46) {
1929
- if (index + 1 >= length) {
1930
- return Token.ILLEGAL;
1931
- }
1932
- ch2 = source.charCodeAt(index + 1);
1933
- if (ch2 === 60) {
1934
- break;
1935
- }
1936
- }
1937
- value += advance();
1938
- }
1939
- return Token.NAME;
1940
- }
1941
- function next() {
1942
- var ch;
1943
- previous = index;
1944
- while (index < length && esutils.code.isWhiteSpace(source.charCodeAt(index))) {
1945
- advance();
1946
- }
1947
- if (index >= length) {
1948
- token = Token.EOF;
1949
- return token;
1950
- }
1951
- ch = source.charCodeAt(index);
1952
- switch (ch) {
1953
- case 39:
1954
- case 34:
1955
- token = scanString();
1956
- return token;
1957
- case 58:
1958
- advance();
1959
- token = Token.COLON;
1960
- return token;
1961
- case 44:
1962
- advance();
1963
- token = Token.COMMA;
1964
- return token;
1965
- case 40:
1966
- advance();
1967
- token = Token.LPAREN;
1968
- return token;
1969
- case 41:
1970
- advance();
1971
- token = Token.RPAREN;
1972
- return token;
1973
- case 91:
1974
- advance();
1975
- token = Token.LBRACK;
1976
- return token;
1977
- case 93:
1978
- advance();
1979
- token = Token.RBRACK;
1980
- return token;
1981
- case 123:
1982
- advance();
1983
- token = Token.LBRACE;
1984
- return token;
1985
- case 125:
1986
- advance();
1987
- token = Token.RBRACE;
1988
- return token;
1989
- case 46:
1990
- if (index + 1 < length) {
1991
- ch = source.charCodeAt(index + 1);
1992
- if (ch === 60) {
1993
- advance();
1994
- advance();
1995
- token = Token.DOT_LT;
1996
- return token;
1997
- }
1998
- if (ch === 46 && index + 2 < length && source.charCodeAt(index + 2) === 46) {
1999
- advance();
2000
- advance();
2001
- advance();
2002
- token = Token.REST;
2003
- return token;
2004
- }
2005
- if (esutils.code.isDecimalDigit(ch)) {
2006
- token = scanNumber();
2007
- return token;
2008
- }
2009
- }
2010
- token = Token.ILLEGAL;
2011
- return token;
2012
- case 60:
2013
- advance();
2014
- token = Token.LT;
2015
- return token;
2016
- case 62:
2017
- advance();
2018
- token = Token.GT;
2019
- return token;
2020
- case 42:
2021
- advance();
2022
- token = Token.STAR;
2023
- return token;
2024
- case 124:
2025
- advance();
2026
- token = Token.PIPE;
2027
- return token;
2028
- case 63:
2029
- advance();
2030
- token = Token.QUESTION;
2031
- return token;
2032
- case 33:
2033
- advance();
2034
- token = Token.BANG;
2035
- return token;
2036
- case 61:
2037
- advance();
2038
- token = Token.EQUAL;
2039
- return token;
2040
- case 45:
2041
- token = scanNumber();
2042
- return token;
2043
- default:
2044
- if (esutils.code.isDecimalDigit(ch)) {
2045
- token = scanNumber();
2046
- return token;
2047
- }
2048
- utility$1.assert(isTypeName(ch));
2049
- token = scanTypeName();
2050
- return token;
2051
- }
2052
- }
2053
- function consume(target, text) {
2054
- utility$1.assert(token === target, text || "consumed token not matched");
2055
- next();
2056
- }
2057
- function expect(target, message) {
2058
- if (token !== target) {
2059
- utility$1.throwError(message || "unexpected token");
2060
- }
2061
- next();
2062
- }
2063
- function parseUnionType() {
2064
- var elements, startIndex = index - 1;
2065
- consume(Token.LPAREN, "UnionType should start with (");
2066
- elements = [];
2067
- if (token !== Token.RPAREN) {
2068
- while (true) {
2069
- elements.push(parseTypeExpression());
2070
- if (token === Token.RPAREN) {
2071
- break;
2072
- }
2073
- expect(Token.PIPE);
2074
- }
2075
- }
2076
- consume(Token.RPAREN, "UnionType should end with )");
2077
- return maybeAddRange({
2078
- type: Syntax.UnionType,
2079
- elements
2080
- }, [startIndex, previous]);
2081
- }
2082
- function parseArrayType() {
2083
- var elements, startIndex = index - 1, restStartIndex;
2084
- consume(Token.LBRACK, "ArrayType should start with [");
2085
- elements = [];
2086
- while (token !== Token.RBRACK) {
2087
- if (token === Token.REST) {
2088
- restStartIndex = index - 3;
2089
- consume(Token.REST);
2090
- elements.push(maybeAddRange({
2091
- type: Syntax.RestType,
2092
- expression: parseTypeExpression()
2093
- }, [restStartIndex, previous]));
2094
- break;
2095
- } else {
2096
- elements.push(parseTypeExpression());
2097
- }
2098
- if (token !== Token.RBRACK) {
2099
- expect(Token.COMMA);
2100
- }
2101
- }
2102
- expect(Token.RBRACK);
2103
- return maybeAddRange({
2104
- type: Syntax.ArrayType,
2105
- elements
2106
- }, [startIndex, previous]);
2107
- }
2108
- function parseFieldName() {
2109
- var v = value;
2110
- if (token === Token.NAME || token === Token.STRING) {
2111
- next();
2112
- return v;
2113
- }
2114
- if (token === Token.NUMBER) {
2115
- consume(Token.NUMBER);
2116
- return String(v);
2117
- }
2118
- utility$1.throwError("unexpected token");
2119
- }
2120
- function parseFieldType() {
2121
- var key, rangeStart = previous;
2122
- key = parseFieldName();
2123
- if (token === Token.COLON) {
2124
- consume(Token.COLON);
2125
- return maybeAddRange({
2126
- type: Syntax.FieldType,
2127
- key,
2128
- value: parseTypeExpression()
2129
- }, [rangeStart, previous]);
2130
- }
2131
- return maybeAddRange({
2132
- type: Syntax.FieldType,
2133
- key,
2134
- value: null
2135
- }, [rangeStart, previous]);
2136
- }
2137
- function parseRecordType() {
2138
- var fields, rangeStart = index - 1, rangeEnd;
2139
- consume(Token.LBRACE, "RecordType should start with {");
2140
- fields = [];
2141
- if (token === Token.COMMA) {
2142
- consume(Token.COMMA);
2143
- } else {
2144
- while (token !== Token.RBRACE) {
2145
- fields.push(parseFieldType());
2146
- if (token !== Token.RBRACE) {
2147
- expect(Token.COMMA);
2148
- }
2149
- }
2150
- }
2151
- rangeEnd = index;
2152
- expect(Token.RBRACE);
2153
- return maybeAddRange({
2154
- type: Syntax.RecordType,
2155
- fields
2156
- }, [rangeStart, rangeEnd]);
2157
- }
2158
- function parseNameExpression() {
2159
- var name2 = value, rangeStart = index - name2.length;
2160
- expect(Token.NAME);
2161
- if (token === Token.COLON && (name2 === "module" || name2 === "external" || name2 === "event")) {
2162
- consume(Token.COLON);
2163
- name2 += ":" + value;
2164
- expect(Token.NAME);
2165
- }
2166
- return maybeAddRange({
2167
- type: Syntax.NameExpression,
2168
- name: name2
2169
- }, [rangeStart, previous]);
2170
- }
2171
- function parseTypeExpressionList() {
2172
- var elements = [];
2173
- elements.push(parseTop());
2174
- while (token === Token.COMMA) {
2175
- consume(Token.COMMA);
2176
- elements.push(parseTop());
2177
- }
2178
- return elements;
2179
- }
2180
- function parseTypeName() {
2181
- var expr, applications, startIndex = index - value.length;
2182
- expr = parseNameExpression();
2183
- if (token === Token.DOT_LT || token === Token.LT) {
2184
- next();
2185
- applications = parseTypeExpressionList();
2186
- expect(Token.GT);
2187
- return maybeAddRange({
2188
- type: Syntax.TypeApplication,
2189
- expression: expr,
2190
- applications
2191
- }, [startIndex, previous]);
2192
- }
2193
- return expr;
2194
- }
2195
- function parseResultType() {
2196
- consume(Token.COLON, "ResultType should start with :");
2197
- if (token === Token.NAME && value === "void") {
2198
- consume(Token.NAME);
2199
- return {
2200
- type: Syntax.VoidLiteral
2201
- };
2202
- }
2203
- return parseTypeExpression();
2204
- }
2205
- function parseParametersType() {
2206
- var params = [], optionalSequence = false, expr, rest = false, startIndex, restStartIndex = index - 3, nameStartIndex;
2207
- while (token !== Token.RPAREN) {
2208
- if (token === Token.REST) {
2209
- consume(Token.REST);
2210
- rest = true;
2211
- }
2212
- startIndex = previous;
2213
- expr = parseTypeExpression();
2214
- if (expr.type === Syntax.NameExpression && token === Token.COLON) {
2215
- nameStartIndex = previous - expr.name.length;
2216
- consume(Token.COLON);
2217
- expr = maybeAddRange({
2218
- type: Syntax.ParameterType,
2219
- name: expr.name,
2220
- expression: parseTypeExpression()
2221
- }, [nameStartIndex, previous]);
2222
- }
2223
- if (token === Token.EQUAL) {
2224
- consume(Token.EQUAL);
2225
- expr = maybeAddRange({
2226
- type: Syntax.OptionalType,
2227
- expression: expr
2228
- }, [startIndex, previous]);
2229
- optionalSequence = true;
2230
- } else {
2231
- if (optionalSequence) {
2232
- utility$1.throwError("unexpected token");
2233
- }
2234
- }
2235
- if (rest) {
2236
- expr = maybeAddRange({
2237
- type: Syntax.RestType,
2238
- expression: expr
2239
- }, [restStartIndex, previous]);
2240
- }
2241
- params.push(expr);
2242
- if (token !== Token.RPAREN) {
2243
- expect(Token.COMMA);
2244
- }
2245
- }
2246
- return params;
2247
- }
2248
- function parseFunctionType() {
2249
- var isNew, thisBinding, params, result, fnType, startIndex = index - value.length;
2250
- utility$1.assert(token === Token.NAME && value === "function", "FunctionType should start with 'function'");
2251
- consume(Token.NAME);
2252
- expect(Token.LPAREN);
2253
- isNew = false;
2254
- params = [];
2255
- thisBinding = null;
2256
- if (token !== Token.RPAREN) {
2257
- if (token === Token.NAME && (value === "this" || value === "new")) {
2258
- isNew = value === "new";
2259
- consume(Token.NAME);
2260
- expect(Token.COLON);
2261
- thisBinding = parseTypeName();
2262
- if (token === Token.COMMA) {
2263
- consume(Token.COMMA);
2264
- params = parseParametersType();
2265
- }
2266
- } else {
2267
- params = parseParametersType();
2268
- }
2269
- }
2270
- expect(Token.RPAREN);
2271
- result = null;
2272
- if (token === Token.COLON) {
2273
- result = parseResultType();
2274
- }
2275
- fnType = maybeAddRange({
2276
- type: Syntax.FunctionType,
2277
- params,
2278
- result
2279
- }, [startIndex, previous]);
2280
- if (thisBinding) {
2281
- fnType["this"] = thisBinding;
2282
- if (isNew) {
2283
- fnType["new"] = true;
2284
- }
2285
- }
2286
- return fnType;
2287
- }
2288
- function parseBasicTypeExpression() {
2289
- var context, startIndex;
2290
- switch (token) {
2291
- case Token.STAR:
2292
- consume(Token.STAR);
2293
- return maybeAddRange({
2294
- type: Syntax.AllLiteral
2295
- }, [previous - 1, previous]);
2296
- case Token.LPAREN:
2297
- return parseUnionType();
2298
- case Token.LBRACK:
2299
- return parseArrayType();
2300
- case Token.LBRACE:
2301
- return parseRecordType();
2302
- case Token.NAME:
2303
- startIndex = index - value.length;
2304
- if (value === "null") {
2305
- consume(Token.NAME);
2306
- return maybeAddRange({
2307
- type: Syntax.NullLiteral
2308
- }, [startIndex, previous]);
2309
- }
2310
- if (value === "undefined") {
2311
- consume(Token.NAME);
2312
- return maybeAddRange({
2313
- type: Syntax.UndefinedLiteral
2314
- }, [startIndex, previous]);
2315
- }
2316
- if (value === "true" || value === "false") {
2317
- consume(Token.NAME);
2318
- return maybeAddRange({
2319
- type: Syntax.BooleanLiteralType,
2320
- value: value === "true"
2321
- }, [startIndex, previous]);
2322
- }
2323
- context = Context.save();
2324
- if (value === "function") {
2325
- try {
2326
- return parseFunctionType();
2327
- } catch (e) {
2328
- context.restore();
2329
- }
2330
- }
2331
- return parseTypeName();
2332
- case Token.STRING:
2333
- next();
2334
- return maybeAddRange({
2335
- type: Syntax.StringLiteralType,
2336
- value
2337
- }, [previous - value.length - 2, previous]);
2338
- case Token.NUMBER:
2339
- next();
2340
- return maybeAddRange({
2341
- type: Syntax.NumericLiteralType,
2342
- value
2343
- }, [previous - String(value).length, previous]);
2344
- default:
2345
- utility$1.throwError("unexpected token");
2346
- }
2347
- }
2348
- function parseTypeExpression() {
2349
- var expr, rangeStart;
2350
- if (token === Token.QUESTION) {
2351
- rangeStart = index - 1;
2352
- consume(Token.QUESTION);
2353
- if (token === Token.COMMA || token === Token.EQUAL || token === Token.RBRACE || token === Token.RPAREN || token === Token.PIPE || token === Token.EOF || token === Token.RBRACK || token === Token.GT) {
2354
- return maybeAddRange({
2355
- type: Syntax.NullableLiteral
2356
- }, [rangeStart, previous]);
2357
- }
2358
- return maybeAddRange({
2359
- type: Syntax.NullableType,
2360
- expression: parseBasicTypeExpression(),
2361
- prefix: true
2362
- }, [rangeStart, previous]);
2363
- } else if (token === Token.BANG) {
2364
- rangeStart = index - 1;
2365
- consume(Token.BANG);
2366
- return maybeAddRange({
2367
- type: Syntax.NonNullableType,
2368
- expression: parseBasicTypeExpression(),
2369
- prefix: true
2370
- }, [rangeStart, previous]);
2371
- } else {
2372
- rangeStart = previous;
2373
- }
2374
- expr = parseBasicTypeExpression();
2375
- if (token === Token.BANG) {
2376
- consume(Token.BANG);
2377
- return maybeAddRange({
2378
- type: Syntax.NonNullableType,
2379
- expression: expr,
2380
- prefix: false
2381
- }, [rangeStart, previous]);
2382
- }
2383
- if (token === Token.QUESTION) {
2384
- consume(Token.QUESTION);
2385
- return maybeAddRange({
2386
- type: Syntax.NullableType,
2387
- expression: expr,
2388
- prefix: false
2389
- }, [rangeStart, previous]);
2390
- }
2391
- if (token === Token.LBRACK) {
2392
- consume(Token.LBRACK);
2393
- expect(Token.RBRACK, "expected an array-style type declaration (" + value + "[])");
2394
- return maybeAddRange({
2395
- type: Syntax.TypeApplication,
2396
- expression: maybeAddRange({
2397
- type: Syntax.NameExpression,
2398
- name: "Array"
2399
- }, [rangeStart, previous]),
2400
- applications: [expr]
2401
- }, [rangeStart, previous]);
2402
- }
2403
- return expr;
2404
- }
2405
- function parseTop() {
2406
- var expr, elements;
2407
- expr = parseTypeExpression();
2408
- if (token !== Token.PIPE) {
2409
- return expr;
2410
- }
2411
- elements = [expr];
2412
- consume(Token.PIPE);
2413
- while (true) {
2414
- elements.push(parseTypeExpression());
2415
- if (token !== Token.PIPE) {
2416
- break;
2417
- }
2418
- consume(Token.PIPE);
2419
- }
2420
- return maybeAddRange({
2421
- type: Syntax.UnionType,
2422
- elements
2423
- }, [0, index]);
2424
- }
2425
- function parseTopParamType() {
2426
- var expr;
2427
- if (token === Token.REST) {
2428
- consume(Token.REST);
2429
- return maybeAddRange({
2430
- type: Syntax.RestType,
2431
- expression: parseTop()
2432
- }, [0, index]);
2433
- }
2434
- expr = parseTop();
2435
- if (token === Token.EQUAL) {
2436
- consume(Token.EQUAL);
2437
- return maybeAddRange({
2438
- type: Syntax.OptionalType,
2439
- expression: expr
2440
- }, [0, index]);
2441
- }
2442
- return expr;
2443
- }
2444
- function parseType(src, opt) {
2445
- var expr;
2446
- source = src;
2447
- length = source.length;
2448
- index = 0;
2449
- previous = 0;
2450
- addRange = opt && opt.range;
2451
- rangeOffset = opt && opt.startIndex || 0;
2452
- next();
2453
- expr = parseTop();
2454
- if (opt && opt.midstream) {
2455
- return {
2456
- expression: expr,
2457
- index: previous
2458
- };
2459
- }
2460
- if (token !== Token.EOF) {
2461
- utility$1.throwError("not reach to EOF");
2462
- }
2463
- return expr;
2464
- }
2465
- function parseParamType(src, opt) {
2466
- var expr;
2467
- source = src;
2468
- length = source.length;
2469
- index = 0;
2470
- previous = 0;
2471
- addRange = opt && opt.range;
2472
- rangeOffset = opt && opt.startIndex || 0;
2473
- next();
2474
- expr = parseTopParamType();
2475
- if (opt && opt.midstream) {
2476
- return {
2477
- expression: expr,
2478
- index: previous
2479
- };
2480
- }
2481
- if (token !== Token.EOF) {
2482
- utility$1.throwError("not reach to EOF");
2483
- }
2484
- return expr;
2485
- }
2486
- function stringifyImpl(node, compact, topLevel) {
2487
- var result, i, iz;
2488
- switch (node.type) {
2489
- case Syntax.NullableLiteral:
2490
- result = "?";
2491
- break;
2492
- case Syntax.AllLiteral:
2493
- result = "*";
2494
- break;
2495
- case Syntax.NullLiteral:
2496
- result = "null";
2497
- break;
2498
- case Syntax.UndefinedLiteral:
2499
- result = "undefined";
2500
- break;
2501
- case Syntax.VoidLiteral:
2502
- result = "void";
2503
- break;
2504
- case Syntax.UnionType:
2505
- if (!topLevel) {
2506
- result = "(";
2507
- } else {
2508
- result = "";
2509
- }
2510
- for (i = 0, iz = node.elements.length; i < iz; ++i) {
2511
- result += stringifyImpl(node.elements[i], compact);
2512
- if (i + 1 !== iz) {
2513
- result += compact ? "|" : " | ";
2514
- }
2515
- }
2516
- if (!topLevel) {
2517
- result += ")";
2518
- }
2519
- break;
2520
- case Syntax.ArrayType:
2521
- result = "[";
2522
- for (i = 0, iz = node.elements.length; i < iz; ++i) {
2523
- result += stringifyImpl(node.elements[i], compact);
2524
- if (i + 1 !== iz) {
2525
- result += compact ? "," : ", ";
2526
- }
2527
- }
2528
- result += "]";
2529
- break;
2530
- case Syntax.RecordType:
2531
- result = "{";
2532
- for (i = 0, iz = node.fields.length; i < iz; ++i) {
2533
- result += stringifyImpl(node.fields[i], compact);
2534
- if (i + 1 !== iz) {
2535
- result += compact ? "," : ", ";
2536
- }
2537
- }
2538
- result += "}";
2539
- break;
2540
- case Syntax.FieldType:
2541
- if (node.value) {
2542
- result = node.key + (compact ? ":" : ": ") + stringifyImpl(node.value, compact);
2543
- } else {
2544
- result = node.key;
2545
- }
2546
- break;
2547
- case Syntax.FunctionType:
2548
- result = compact ? "function(" : "function (";
2549
- if (node["this"]) {
2550
- if (node["new"]) {
2551
- result += compact ? "new:" : "new: ";
2552
- } else {
2553
- result += compact ? "this:" : "this: ";
2554
- }
2555
- result += stringifyImpl(node["this"], compact);
2556
- if (node.params.length !== 0) {
2557
- result += compact ? "," : ", ";
2558
- }
2559
- }
2560
- for (i = 0, iz = node.params.length; i < iz; ++i) {
2561
- result += stringifyImpl(node.params[i], compact);
2562
- if (i + 1 !== iz) {
2563
- result += compact ? "," : ", ";
2564
- }
2565
- }
2566
- result += ")";
2567
- if (node.result) {
2568
- result += (compact ? ":" : ": ") + stringifyImpl(node.result, compact);
2569
- }
2570
- break;
2571
- case Syntax.ParameterType:
2572
- result = node.name + (compact ? ":" : ": ") + stringifyImpl(node.expression, compact);
2573
- break;
2574
- case Syntax.RestType:
2575
- result = "...";
2576
- if (node.expression) {
2577
- result += stringifyImpl(node.expression, compact);
2578
- }
2579
- break;
2580
- case Syntax.NonNullableType:
2581
- if (node.prefix) {
2582
- result = "!" + stringifyImpl(node.expression, compact);
2583
- } else {
2584
- result = stringifyImpl(node.expression, compact) + "!";
2585
- }
2586
- break;
2587
- case Syntax.OptionalType:
2588
- result = stringifyImpl(node.expression, compact) + "=";
2589
- break;
2590
- case Syntax.NullableType:
2591
- if (node.prefix) {
2592
- result = "?" + stringifyImpl(node.expression, compact);
2593
- } else {
2594
- result = stringifyImpl(node.expression, compact) + "?";
2595
- }
2596
- break;
2597
- case Syntax.NameExpression:
2598
- result = node.name;
2599
- break;
2600
- case Syntax.TypeApplication:
2601
- result = stringifyImpl(node.expression, compact) + ".<";
2602
- for (i = 0, iz = node.applications.length; i < iz; ++i) {
2603
- result += stringifyImpl(node.applications[i], compact);
2604
- if (i + 1 !== iz) {
2605
- result += compact ? "," : ", ";
2606
- }
2607
- }
2608
- result += ">";
2609
- break;
2610
- case Syntax.StringLiteralType:
2611
- result = '"' + node.value + '"';
2612
- break;
2613
- case Syntax.NumericLiteralType:
2614
- result = String(node.value);
2615
- break;
2616
- case Syntax.BooleanLiteralType:
2617
- result = String(node.value);
2618
- break;
2619
- default:
2620
- utility$1.throwError("Unknown type " + node.type);
2621
- }
2622
- return result;
2623
- }
2624
- function stringify(node, options) {
2625
- if (options == null) {
2626
- options = {};
2627
- }
2628
- return stringifyImpl(node, options.compact, options.topLevel);
2629
- }
2630
- typed.parseType = parseType;
2631
- typed.parseParamType = parseParamType;
2632
- typed.stringify = stringify;
2633
- typed.Syntax = Syntax;
2634
- })();
2635
- (function(exports) {
2636
- (function() {
2637
- var typed$1, utility$1, jsdoc, esutils, hasOwnProperty2;
2638
- esutils = utils;
2639
- typed$1 = typed;
2640
- utility$1 = utility;
2641
- function sliceSource(source, index, last) {
2642
- return source.slice(index, last);
2643
- }
2644
- hasOwnProperty2 = /* @__PURE__ */ function() {
2645
- var func = Object.prototype.hasOwnProperty;
2646
- return function hasOwnProperty3(obj, name2) {
2647
- return func.call(obj, name2);
2648
- };
2649
- }();
2650
- function shallowCopy(obj) {
2651
- var ret = {}, key;
2652
- for (key in obj) {
2653
- if (obj.hasOwnProperty(key)) {
2654
- ret[key] = obj[key];
2655
- }
2656
- }
2657
- return ret;
2658
- }
2659
- function isASCIIAlphanumeric(ch) {
2660
- return ch >= 97 && ch <= 122 || ch >= 65 && ch <= 90 || ch >= 48 && ch <= 57;
2661
- }
2662
- function isParamTitle(title) {
2663
- return title === "param" || title === "argument" || title === "arg";
2664
- }
2665
- function isReturnTitle(title) {
2666
- return title === "return" || title === "returns";
2667
- }
2668
- function isProperty(title) {
2669
- return title === "property" || title === "prop";
2670
- }
2671
- function isNameParameterRequired(title) {
2672
- return isParamTitle(title) || isProperty(title) || title === "alias" || title === "this" || title === "mixes" || title === "requires";
2673
- }
2674
- function isAllowedName(title) {
2675
- return isNameParameterRequired(title) || title === "const" || title === "constant";
2676
- }
2677
- function isAllowedNested(title) {
2678
- return isProperty(title) || isParamTitle(title);
2679
- }
2680
- function isAllowedOptional(title) {
2681
- return isProperty(title) || isParamTitle(title);
2682
- }
2683
- function isTypeParameterRequired(title) {
2684
- return isParamTitle(title) || isReturnTitle(title) || title === "define" || title === "enum" || title === "implements" || title === "this" || title === "type" || title === "typedef" || isProperty(title);
2685
- }
2686
- function isAllowedType(title) {
2687
- return isTypeParameterRequired(title) || title === "throws" || title === "const" || title === "constant" || title === "namespace" || title === "member" || title === "var" || title === "module" || title === "constructor" || title === "class" || title === "extends" || title === "augments" || title === "public" || title === "private" || title === "protected";
2688
- }
2689
- var WHITESPACE = "[ \\f\\t\\v\\u00a0\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]";
2690
- var STAR_MATCHER = "(" + WHITESPACE + "*(?:\\*" + WHITESPACE + "?)?)(.+|[\r\n\u2028\u2029])";
2691
- function unwrapComment(doc) {
2692
- return doc.replace(/^\/\*\*?/, "").replace(/\*\/$/, "").replace(new RegExp(STAR_MATCHER, "g"), "$2").replace(/\s*$/, "");
2693
- }
2694
- function convertUnwrappedCommentIndex(originalSource, unwrappedIndex) {
2695
- var replacedSource = originalSource.replace(/^\/\*\*?/, "");
2696
- var numSkippedChars = 0;
2697
- var matcher = new RegExp(STAR_MATCHER, "g");
2698
- var match;
2699
- while (match = matcher.exec(replacedSource)) {
2700
- numSkippedChars += match[1].length;
2701
- if (match.index + match[0].length > unwrappedIndex + numSkippedChars) {
2702
- return unwrappedIndex + numSkippedChars + originalSource.length - replacedSource.length;
2703
- }
2704
- }
2705
- return originalSource.replace(/\*\/$/, "").replace(/\s*$/, "").length;
2706
- }
2707
- (function(exports2) {
2708
- var Rules, index, lineNumber, length, source, originalSource, recoverable, sloppy, strict;
2709
- function advance() {
2710
- var ch = source.charCodeAt(index);
2711
- index += 1;
2712
- if (esutils.code.isLineTerminator(ch) && !(ch === 13 && source.charCodeAt(index) === 10)) {
2713
- lineNumber += 1;
2714
- }
2715
- return String.fromCharCode(ch);
2716
- }
2717
- function scanTitle() {
2718
- var title = "";
2719
- advance();
2720
- while (index < length && isASCIIAlphanumeric(source.charCodeAt(index))) {
2721
- title += advance();
2722
- }
2723
- return title;
2724
- }
2725
- function seekContent() {
2726
- var ch, waiting, last = index;
2727
- waiting = false;
2728
- while (last < length) {
2729
- ch = source.charCodeAt(last);
2730
- if (esutils.code.isLineTerminator(ch) && !(ch === 13 && source.charCodeAt(last + 1) === 10)) {
2731
- waiting = true;
2732
- } else if (waiting) {
2733
- if (ch === 64) {
2734
- break;
2735
- }
2736
- if (!esutils.code.isWhiteSpace(ch)) {
2737
- waiting = false;
2738
- }
2739
- }
2740
- last += 1;
2741
- }
2742
- return last;
2743
- }
2744
- function parseType(title, last, addRange) {
2745
- var ch, brace, type, startIndex, direct = false;
2746
- while (index < last) {
2747
- ch = source.charCodeAt(index);
2748
- if (esutils.code.isWhiteSpace(ch)) {
2749
- advance();
2750
- } else if (ch === 123) {
2751
- advance();
2752
- break;
2753
- } else {
2754
- direct = true;
2755
- break;
2756
- }
2757
- }
2758
- if (direct) {
2759
- return null;
2760
- }
2761
- brace = 1;
2762
- type = "";
2763
- while (index < last) {
2764
- ch = source.charCodeAt(index);
2765
- if (esutils.code.isLineTerminator(ch)) {
2766
- advance();
2767
- } else {
2768
- if (ch === 125) {
2769
- brace -= 1;
2770
- if (brace === 0) {
2771
- advance();
2772
- break;
2773
- }
2774
- } else if (ch === 123) {
2775
- brace += 1;
2776
- }
2777
- if (type === "") {
2778
- startIndex = index;
2779
- }
2780
- type += advance();
2781
- }
2782
- }
2783
- if (brace !== 0) {
2784
- return utility$1.throwError("Braces are not balanced");
2785
- }
2786
- if (isAllowedOptional(title)) {
2787
- return typed$1.parseParamType(type, { startIndex: convertIndex(startIndex), range: addRange });
2788
- }
2789
- return typed$1.parseType(type, { startIndex: convertIndex(startIndex), range: addRange });
2790
- }
2791
- function scanIdentifier(last) {
2792
- var identifier;
2793
- if (!esutils.code.isIdentifierStartES5(source.charCodeAt(index)) && !source[index].match(/[0-9]/)) {
2794
- return null;
2795
- }
2796
- identifier = advance();
2797
- while (index < last && esutils.code.isIdentifierPartES5(source.charCodeAt(index))) {
2798
- identifier += advance();
2799
- }
2800
- return identifier;
2801
- }
2802
- function skipWhiteSpace(last) {
2803
- while (index < last && (esutils.code.isWhiteSpace(source.charCodeAt(index)) || esutils.code.isLineTerminator(source.charCodeAt(index)))) {
2804
- advance();
2805
- }
2806
- }
2807
- function parseName(last, allowBrackets, allowNestedParams) {
2808
- var name2 = "", useBrackets, insideString;
2809
- skipWhiteSpace(last);
2810
- if (index >= last) {
2811
- return null;
2812
- }
2813
- if (source.charCodeAt(index) === 91) {
2814
- if (allowBrackets) {
2815
- useBrackets = true;
2816
- name2 = advance();
2817
- } else {
2818
- return null;
2819
- }
2820
- }
2821
- name2 += scanIdentifier(last);
2822
- if (allowNestedParams) {
2823
- if (source.charCodeAt(index) === 58 && (name2 === "module" || name2 === "external" || name2 === "event")) {
2824
- name2 += advance();
2825
- name2 += scanIdentifier(last);
2826
- }
2827
- if (source.charCodeAt(index) === 91 && source.charCodeAt(index + 1) === 93) {
2828
- name2 += advance();
2829
- name2 += advance();
2830
- }
2831
- while (source.charCodeAt(index) === 46 || source.charCodeAt(index) === 47 || source.charCodeAt(index) === 35 || source.charCodeAt(index) === 45 || source.charCodeAt(index) === 126) {
2832
- name2 += advance();
2833
- name2 += scanIdentifier(last);
2834
- }
2835
- }
2836
- if (useBrackets) {
2837
- skipWhiteSpace(last);
2838
- if (source.charCodeAt(index) === 61) {
2839
- name2 += advance();
2840
- skipWhiteSpace(last);
2841
- var ch;
2842
- var bracketDepth = 1;
2843
- while (index < last) {
2844
- ch = source.charCodeAt(index);
2845
- if (esutils.code.isWhiteSpace(ch)) {
2846
- if (!insideString) {
2847
- skipWhiteSpace(last);
2848
- ch = source.charCodeAt(index);
2849
- }
2850
- }
2851
- if (ch === 39) {
2852
- if (!insideString) {
2853
- insideString = "'";
2854
- } else {
2855
- if (insideString === "'") {
2856
- insideString = "";
2857
- }
2858
- }
2859
- }
2860
- if (ch === 34) {
2861
- if (!insideString) {
2862
- insideString = '"';
2863
- } else {
2864
- if (insideString === '"') {
2865
- insideString = "";
2866
- }
2867
- }
2868
- }
2869
- if (ch === 91) {
2870
- bracketDepth++;
2871
- } else if (ch === 93 && --bracketDepth === 0) {
2872
- break;
2873
- }
2874
- name2 += advance();
2875
- }
2876
- }
2877
- skipWhiteSpace(last);
2878
- if (index >= last || source.charCodeAt(index) !== 93) {
2879
- return null;
2880
- }
2881
- name2 += advance();
2882
- }
2883
- return name2;
2884
- }
2885
- function skipToTag() {
2886
- while (index < length && source.charCodeAt(index) !== 64) {
2887
- advance();
2888
- }
2889
- if (index >= length) {
2890
- return false;
2891
- }
2892
- utility$1.assert(
2893
- source.charCodeAt(index) === 64
2894
- /* '@' */
2895
- );
2896
- return true;
2897
- }
2898
- function convertIndex(rangeIndex) {
2899
- if (source === originalSource) {
2900
- return rangeIndex;
2901
- }
2902
- return convertUnwrappedCommentIndex(originalSource, rangeIndex);
2903
- }
2904
- function TagParser(options, title) {
2905
- this._options = options;
2906
- this._title = title.toLowerCase();
2907
- this._tag = {
2908
- title,
2909
- description: null
2910
- };
2911
- if (this._options.lineNumbers) {
2912
- this._tag.lineNumber = lineNumber;
2913
- }
2914
- this._first = index - title.length - 1;
2915
- this._last = 0;
2916
- this._extra = {};
2917
- }
2918
- TagParser.prototype.addError = function addError(errorText) {
2919
- var args = Array.prototype.slice.call(arguments, 1), msg = errorText.replace(
2920
- /%(\d)/g,
2921
- function(whole, index2) {
2922
- utility$1.assert(index2 < args.length, "Message reference must be in range");
2923
- return args[index2];
2924
- }
2925
- );
2926
- if (!this._tag.errors) {
2927
- this._tag.errors = [];
2928
- }
2929
- if (strict) {
2930
- utility$1.throwError(msg);
2931
- }
2932
- this._tag.errors.push(msg);
2933
- return recoverable;
2934
- };
2935
- TagParser.prototype.parseType = function() {
2936
- if (isTypeParameterRequired(this._title)) {
2937
- try {
2938
- this._tag.type = parseType(this._title, this._last, this._options.range);
2939
- if (!this._tag.type) {
2940
- if (!isParamTitle(this._title) && !isReturnTitle(this._title)) {
2941
- if (!this.addError("Missing or invalid tag type")) {
2942
- return false;
2943
- }
2944
- }
2945
- }
2946
- } catch (error) {
2947
- this._tag.type = null;
2948
- if (!this.addError(error.message)) {
2949
- return false;
2950
- }
2951
- }
2952
- } else if (isAllowedType(this._title)) {
2953
- try {
2954
- this._tag.type = parseType(this._title, this._last, this._options.range);
2955
- } catch (e) {
2956
- }
2957
- }
2958
- return true;
2959
- };
2960
- TagParser.prototype._parseNamePath = function(optional) {
2961
- var name2;
2962
- name2 = parseName(this._last, sloppy && isAllowedOptional(this._title), true);
2963
- if (!name2) {
2964
- if (!optional) {
2965
- if (!this.addError("Missing or invalid tag name")) {
2966
- return false;
2967
- }
2968
- }
2969
- }
2970
- this._tag.name = name2;
2971
- return true;
2972
- };
2973
- TagParser.prototype.parseNamePath = function() {
2974
- return this._parseNamePath(false);
2975
- };
2976
- TagParser.prototype.parseNamePathOptional = function() {
2977
- return this._parseNamePath(true);
2978
- };
2979
- TagParser.prototype.parseName = function() {
2980
- var assign, name2;
2981
- if (isAllowedName(this._title)) {
2982
- this._tag.name = parseName(this._last, sloppy && isAllowedOptional(this._title), isAllowedNested(this._title));
2983
- if (!this._tag.name) {
2984
- if (!isNameParameterRequired(this._title)) {
2985
- return true;
2986
- }
2987
- if (isParamTitle(this._title) && this._tag.type && this._tag.type.name) {
2988
- this._extra.name = this._tag.type;
2989
- this._tag.name = this._tag.type.name;
2990
- this._tag.type = null;
2991
- } else {
2992
- if (!this.addError("Missing or invalid tag name")) {
2993
- return false;
2994
- }
2995
- }
2996
- } else {
2997
- name2 = this._tag.name;
2998
- if (name2.charAt(0) === "[" && name2.charAt(name2.length - 1) === "]") {
2999
- assign = name2.substring(1, name2.length - 1).split("=");
3000
- if (assign.length > 1) {
3001
- this._tag["default"] = assign.slice(1).join("=");
3002
- }
3003
- this._tag.name = assign[0];
3004
- if (this._tag.type && this._tag.type.type !== "OptionalType") {
3005
- this._tag.type = {
3006
- type: "OptionalType",
3007
- expression: this._tag.type
3008
- };
3009
- }
3010
- }
3011
- }
3012
- }
3013
- return true;
3014
- };
3015
- TagParser.prototype.parseDescription = function parseDescription() {
3016
- var description2 = sliceSource(source, index, this._last).trim();
3017
- if (description2) {
3018
- if (/^-\s+/.test(description2)) {
3019
- description2 = description2.substring(2);
3020
- }
3021
- this._tag.description = description2;
3022
- }
3023
- return true;
3024
- };
3025
- TagParser.prototype.parseCaption = function parseDescription() {
3026
- var description2 = sliceSource(source, index, this._last).trim();
3027
- var captionStartTag = "<caption>";
3028
- var captionEndTag = "</caption>";
3029
- var captionStart = description2.indexOf(captionStartTag);
3030
- var captionEnd = description2.indexOf(captionEndTag);
3031
- if (captionStart >= 0 && captionEnd >= 0) {
3032
- this._tag.caption = description2.substring(
3033
- captionStart + captionStartTag.length,
3034
- captionEnd
3035
- ).trim();
3036
- this._tag.description = description2.substring(captionEnd + captionEndTag.length).trim();
3037
- } else {
3038
- this._tag.description = description2;
3039
- }
3040
- return true;
3041
- };
3042
- TagParser.prototype.parseKind = function parseKind() {
3043
- var kind, kinds;
3044
- kinds = {
3045
- "class": true,
3046
- "constant": true,
3047
- "event": true,
3048
- "external": true,
3049
- "file": true,
3050
- "function": true,
3051
- "member": true,
3052
- "mixin": true,
3053
- "module": true,
3054
- "namespace": true,
3055
- "typedef": true
3056
- };
3057
- kind = sliceSource(source, index, this._last).trim();
3058
- this._tag.kind = kind;
3059
- if (!hasOwnProperty2(kinds, kind)) {
3060
- if (!this.addError("Invalid kind name '%0'", kind)) {
3061
- return false;
3062
- }
3063
- }
3064
- return true;
3065
- };
3066
- TagParser.prototype.parseAccess = function parseAccess() {
3067
- var access;
3068
- access = sliceSource(source, index, this._last).trim();
3069
- this._tag.access = access;
3070
- if (access !== "private" && access !== "protected" && access !== "public") {
3071
- if (!this.addError("Invalid access name '%0'", access)) {
3072
- return false;
3073
- }
3074
- }
3075
- return true;
3076
- };
3077
- TagParser.prototype.parseThis = function parseThis() {
3078
- var value = sliceSource(source, index, this._last).trim();
3079
- if (value && value.charAt(0) === "{") {
3080
- var gotType = this.parseType();
3081
- if (gotType && this._tag.type.type === "NameExpression" || this._tag.type.type === "UnionType") {
3082
- this._tag.name = this._tag.type.name;
3083
- return true;
3084
- } else {
3085
- return this.addError("Invalid name for this");
3086
- }
3087
- } else {
3088
- return this.parseNamePath();
3089
- }
3090
- };
3091
- TagParser.prototype.parseVariation = function parseVariation() {
3092
- var variation, text;
3093
- text = sliceSource(source, index, this._last).trim();
3094
- variation = parseFloat(text, 10);
3095
- this._tag.variation = variation;
3096
- if (isNaN(variation)) {
3097
- if (!this.addError("Invalid variation '%0'", text)) {
3098
- return false;
3099
- }
3100
- }
3101
- return true;
3102
- };
3103
- TagParser.prototype.ensureEnd = function() {
3104
- var shouldBeEmpty = sliceSource(source, index, this._last).trim();
3105
- if (shouldBeEmpty) {
3106
- if (!this.addError("Unknown content '%0'", shouldBeEmpty)) {
3107
- return false;
3108
- }
3109
- }
3110
- return true;
3111
- };
3112
- TagParser.prototype.epilogue = function epilogue() {
3113
- var description2;
3114
- description2 = this._tag.description;
3115
- if (isAllowedOptional(this._title) && !this._tag.type && description2 && description2.charAt(0) === "[") {
3116
- this._tag.type = this._extra.name;
3117
- if (!this._tag.name) {
3118
- this._tag.name = void 0;
3119
- }
3120
- if (!sloppy) {
3121
- if (!this.addError("Missing or invalid tag name")) {
3122
- return false;
3123
- }
3124
- }
3125
- }
3126
- return true;
3127
- };
3128
- Rules = {
3129
- // http://usejsdoc.org/tags-access.html
3130
- "access": ["parseAccess"],
3131
- // http://usejsdoc.org/tags-alias.html
3132
- "alias": ["parseNamePath", "ensureEnd"],
3133
- // http://usejsdoc.org/tags-augments.html
3134
- "augments": ["parseType", "parseNamePathOptional", "ensureEnd"],
3135
- // http://usejsdoc.org/tags-constructor.html
3136
- "constructor": ["parseType", "parseNamePathOptional", "ensureEnd"],
3137
- // Synonym: http://usejsdoc.org/tags-constructor.html
3138
- "class": ["parseType", "parseNamePathOptional", "ensureEnd"],
3139
- // Synonym: http://usejsdoc.org/tags-extends.html
3140
- "extends": ["parseType", "parseNamePathOptional", "ensureEnd"],
3141
- // http://usejsdoc.org/tags-example.html
3142
- "example": ["parseCaption"],
3143
- // http://usejsdoc.org/tags-deprecated.html
3144
- "deprecated": ["parseDescription"],
3145
- // http://usejsdoc.org/tags-global.html
3146
- "global": ["ensureEnd"],
3147
- // http://usejsdoc.org/tags-inner.html
3148
- "inner": ["ensureEnd"],
3149
- // http://usejsdoc.org/tags-instance.html
3150
- "instance": ["ensureEnd"],
3151
- // http://usejsdoc.org/tags-kind.html
3152
- "kind": ["parseKind"],
3153
- // http://usejsdoc.org/tags-mixes.html
3154
- "mixes": ["parseNamePath", "ensureEnd"],
3155
- // http://usejsdoc.org/tags-mixin.html
3156
- "mixin": ["parseNamePathOptional", "ensureEnd"],
3157
- // http://usejsdoc.org/tags-member.html
3158
- "member": ["parseType", "parseNamePathOptional", "ensureEnd"],
3159
- // http://usejsdoc.org/tags-method.html
3160
- "method": ["parseNamePathOptional", "ensureEnd"],
3161
- // http://usejsdoc.org/tags-module.html
3162
- "module": ["parseType", "parseNamePathOptional", "ensureEnd"],
3163
- // Synonym: http://usejsdoc.org/tags-method.html
3164
- "func": ["parseNamePathOptional", "ensureEnd"],
3165
- // Synonym: http://usejsdoc.org/tags-method.html
3166
- "function": ["parseNamePathOptional", "ensureEnd"],
3167
- // Synonym: http://usejsdoc.org/tags-member.html
3168
- "var": ["parseType", "parseNamePathOptional", "ensureEnd"],
3169
- // http://usejsdoc.org/tags-name.html
3170
- "name": ["parseNamePath", "ensureEnd"],
3171
- // http://usejsdoc.org/tags-namespace.html
3172
- "namespace": ["parseType", "parseNamePathOptional", "ensureEnd"],
3173
- // http://usejsdoc.org/tags-private.html
3174
- "private": ["parseType", "parseDescription"],
3175
- // http://usejsdoc.org/tags-protected.html
3176
- "protected": ["parseType", "parseDescription"],
3177
- // http://usejsdoc.org/tags-public.html
3178
- "public": ["parseType", "parseDescription"],
3179
- // http://usejsdoc.org/tags-readonly.html
3180
- "readonly": ["ensureEnd"],
3181
- // http://usejsdoc.org/tags-requires.html
3182
- "requires": ["parseNamePath", "ensureEnd"],
3183
- // http://usejsdoc.org/tags-since.html
3184
- "since": ["parseDescription"],
3185
- // http://usejsdoc.org/tags-static.html
3186
- "static": ["ensureEnd"],
3187
- // http://usejsdoc.org/tags-summary.html
3188
- "summary": ["parseDescription"],
3189
- // http://usejsdoc.org/tags-this.html
3190
- "this": ["parseThis", "ensureEnd"],
3191
- // http://usejsdoc.org/tags-todo.html
3192
- "todo": ["parseDescription"],
3193
- // http://usejsdoc.org/tags-typedef.html
3194
- "typedef": ["parseType", "parseNamePathOptional"],
3195
- // http://usejsdoc.org/tags-variation.html
3196
- "variation": ["parseVariation"],
3197
- // http://usejsdoc.org/tags-version.html
3198
- "version": ["parseDescription"]
3199
- };
3200
- TagParser.prototype.parse = function parse3() {
3201
- var i, iz, sequences, method;
3202
- if (!this._title) {
3203
- if (!this.addError("Missing or invalid title")) {
3204
- return null;
3205
- }
3206
- }
3207
- this._last = seekContent(this._title);
3208
- if (this._options.range) {
3209
- this._tag.range = [this._first, source.slice(0, this._last).replace(/\s*$/, "").length].map(convertIndex);
3210
- }
3211
- if (hasOwnProperty2(Rules, this._title)) {
3212
- sequences = Rules[this._title];
3213
- } else {
3214
- sequences = ["parseType", "parseName", "parseDescription", "epilogue"];
3215
- }
3216
- for (i = 0, iz = sequences.length; i < iz; ++i) {
3217
- method = sequences[i];
3218
- if (!this[method]()) {
3219
- return null;
3220
- }
3221
- }
3222
- return this._tag;
3223
- };
3224
- function parseTag(options) {
3225
- var title, parser, tag;
3226
- if (!skipToTag()) {
3227
- return null;
3228
- }
3229
- title = scanTitle();
3230
- parser = new TagParser(options, title);
3231
- tag = parser.parse();
3232
- while (index < parser._last) {
3233
- advance();
3234
- }
3235
- return tag;
3236
- }
3237
- function scanJSDocDescription(preserveWhitespace) {
3238
- var description2 = "", ch, atAllowed;
3239
- atAllowed = true;
3240
- while (index < length) {
3241
- ch = source.charCodeAt(index);
3242
- if (atAllowed && ch === 64) {
3243
- break;
3244
- }
3245
- if (esutils.code.isLineTerminator(ch)) {
3246
- atAllowed = true;
3247
- } else if (atAllowed && !esutils.code.isWhiteSpace(ch)) {
3248
- atAllowed = false;
3249
- }
3250
- description2 += advance();
3251
- }
3252
- return preserveWhitespace ? description2 : description2.trim();
3253
- }
3254
- function parse2(comment, options) {
3255
- var tags = [], tag, description2, interestingTags, i, iz;
3256
- if (options === void 0) {
3257
- options = {};
3258
- }
3259
- if (typeof options.unwrap === "boolean" && options.unwrap) {
3260
- source = unwrapComment(comment);
3261
- } else {
3262
- source = comment;
3263
- }
3264
- originalSource = comment;
3265
- if (options.tags) {
3266
- if (Array.isArray(options.tags)) {
3267
- interestingTags = {};
3268
- for (i = 0, iz = options.tags.length; i < iz; i++) {
3269
- if (typeof options.tags[i] === "string") {
3270
- interestingTags[options.tags[i]] = true;
3271
- } else {
3272
- utility$1.throwError('Invalid "tags" parameter: ' + options.tags);
3273
- }
3274
- }
3275
- } else {
3276
- utility$1.throwError('Invalid "tags" parameter: ' + options.tags);
3277
- }
3278
- }
3279
- length = source.length;
3280
- index = 0;
3281
- lineNumber = 0;
3282
- recoverable = options.recoverable;
3283
- sloppy = options.sloppy;
3284
- strict = options.strict;
3285
- description2 = scanJSDocDescription(options.preserveWhitespace);
3286
- while (true) {
3287
- tag = parseTag(options);
3288
- if (!tag) {
3289
- break;
3290
- }
3291
- if (!interestingTags || interestingTags.hasOwnProperty(tag.title)) {
3292
- tags.push(tag);
3293
- }
3294
- }
3295
- return {
3296
- description: description2,
3297
- tags
3298
- };
3299
- }
3300
- exports2.parse = parse2;
3301
- })(jsdoc = {});
3302
- exports.version = utility$1.VERSION;
3303
- exports.parse = jsdoc.parse;
3304
- exports.parseType = typed$1.parseType;
3305
- exports.parseParamType = typed$1.parseParamType;
3306
- exports.unwrapComment = unwrapComment;
3307
- exports.Syntax = shallowCopy(typed$1.Syntax);
3308
- exports.Error = utility$1.DoctrineError;
3309
- exports.type = {
3310
- Syntax: exports.Syntax,
3311
- parseType: typed$1.parseType,
3312
- parseParamType: typed$1.parseParamType,
3313
- stringify: typed$1.stringify
3314
- };
3315
- })();
3316
- })(doctrine$1);
3317
- const doctrine = /* @__PURE__ */ getDefaultExportFromCjs(doctrine$1);
3318
- const { combineParameters } = __STORYBOOK_MODULE_PREVIEW_API__;
3319
- var QUOTE_REGEX = /^['"]|['"]$/g, trimQuotes = (str2) => str2.replace(QUOTE_REGEX, ""), includesQuotes = (str2) => QUOTE_REGEX.test(str2), parseLiteral = (str2) => {
3320
- let trimmedValue = trimQuotes(str2);
3321
- return includesQuotes(str2) || Number.isNaN(Number(trimmedValue)) ? trimmedValue : Number(trimmedValue);
3322
- };
3323
- var convertSig = (type) => {
3324
- switch (type.type) {
3325
- case "function":
3326
- return { name: "function" };
3327
- case "object":
3328
- let values = {};
3329
- return type.signature.properties.forEach((prop) => {
3330
- values[prop.key] = convert(prop.value);
3331
- }), { name: "object", value: values };
3332
- default:
3333
- throw new Error(`Unknown: ${type}`);
3334
- }
3335
- }, convert = (type) => {
3336
- let { name: name2, raw } = type, base = {};
3337
- switch (typeof raw < "u" && (base.raw = raw), type.name) {
3338
- case "string":
3339
- case "number":
3340
- case "symbol":
3341
- case "boolean":
3342
- return { ...base, name: name2 };
3343
- case "Array":
3344
- return { ...base, name: "array", value: type.elements.map(convert) };
3345
- case "signature":
3346
- return { ...base, ...convertSig(type) };
3347
- case "union":
3348
- let result;
3349
- return type.elements.every((element) => element.name === "literal") ? result = { ...base, name: "enum", value: type.elements.map((v) => parseLiteral(v.value)) } : result = { ...base, name: name2, value: type.elements.map(convert) }, result;
3350
- case "intersection":
3351
- return { ...base, name: name2, value: type.elements.map(convert) };
3352
- default:
3353
- return { ...base, name: "other", value: name2 };
3354
- }
3355
- };
3356
- var isLiteral = (type) => type.name === "literal", toEnumOption = (element) => element.value.replace(/['|"]/g, ""), convertSig2 = (type) => {
3357
- switch (type.type) {
3358
- case "function":
3359
- return { name: "function" };
3360
- case "object":
3361
- let values = {};
3362
- return type.signature.properties.forEach((prop) => {
3363
- values[prop.key] = convert2(prop.value);
3364
- }), { name: "object", value: values };
3365
- default:
3366
- throw new Error(`Unknown: ${type}`);
3367
- }
3368
- }, convert2 = (type) => {
3369
- let { name: name2, raw } = type, base = {};
3370
- switch (typeof raw < "u" && (base.raw = raw), type.name) {
3371
- case "literal":
3372
- return { ...base, name: "other", value: type.value };
3373
- case "string":
3374
- case "number":
3375
- case "symbol":
3376
- case "boolean":
3377
- return { ...base, name: name2 };
3378
- case "Array":
3379
- return { ...base, name: "array", value: type.elements.map(convert2) };
3380
- case "signature":
3381
- return { ...base, ...convertSig2(type) };
3382
- case "union":
3383
- return type.elements.every(isLiteral) ? { ...base, name: "enum", value: type.elements.map(toEnumOption) } : { ...base, name: name2, value: type.elements.map(convert2) };
3384
- case "intersection":
3385
- return { ...base, name: name2, value: type.elements.map(convert2) };
3386
- default:
3387
- return { ...base, name: "other", value: name2 };
3388
- }
3389
- };
3390
- var SIGNATURE_REGEXP = /^\(.*\) => /, convert3 = (type) => {
3391
- let { name: name2, raw, computed, value } = type, base = {};
3392
- switch (typeof raw < "u" && (base.raw = raw), name2) {
3393
- case "enum": {
3394
- let values2 = computed ? value : value.map((v) => parseLiteral(v.value));
3395
- return { ...base, name: name2, value: values2 };
3396
- }
3397
- case "string":
3398
- case "number":
3399
- case "symbol":
3400
- return { ...base, name: name2 };
3401
- case "func":
3402
- return { ...base, name: "function" };
3403
- case "bool":
3404
- case "boolean":
3405
- return { ...base, name: "boolean" };
3406
- case "arrayOf":
3407
- case "array":
3408
- return { ...base, name: "array", value: value && convert3(value) };
3409
- case "object":
3410
- return { ...base, name: name2 };
3411
- case "objectOf":
3412
- return { ...base, name: name2, value: convert3(value) };
3413
- case "shape":
3414
- case "exact":
3415
- let values = mapValues$1(value, (field) => convert3(field));
3416
- return { ...base, name: "object", value: values };
3417
- case "union":
3418
- return { ...base, name: "union", value: value.map((v) => convert3(v)) };
3419
- case "instanceOf":
3420
- case "element":
3421
- case "elementType":
3422
- default: {
3423
- if ((name2 == null ? void 0 : name2.indexOf("|")) > 0)
3424
- try {
3425
- let literalValues = name2.split("|").map((v) => JSON.parse(v));
3426
- return { ...base, name: "enum", value: literalValues };
3427
- } catch {
3428
- }
3429
- let otherVal = value ? `${name2}(${value})` : name2, otherName = SIGNATURE_REGEXP.test(name2) ? "function" : "other";
3430
- return { ...base, name: otherName, value: otherVal };
3431
- }
3432
- }
3433
- };
3434
- var convert4 = (docgenInfo) => {
3435
- let { type, tsType, flowType } = docgenInfo;
3436
- return type != null ? convert3(type) : tsType != null ? convert(tsType) : flowType != null ? convert2(flowType) : null;
3437
- };
3438
- var TypeSystem = ((TypeSystem2) => (TypeSystem2.JAVASCRIPT = "JavaScript", TypeSystem2.FLOW = "Flow", TypeSystem2.TYPESCRIPT = "TypeScript", TypeSystem2.UNKNOWN = "Unknown", TypeSystem2))(TypeSystem || {});
3439
- var BLACKLIST = ["null", "undefined"];
3440
- function isDefaultValueBlacklisted(value) {
3441
- return BLACKLIST.some((x) => x === value);
3442
- }
3443
- var str = (obj) => {
3444
- if (!obj)
3445
- return "";
3446
- if (typeof obj == "string")
3447
- return obj;
3448
- throw new Error(`Description: expected string, got: ${JSON.stringify(obj)}`);
3449
- };
3450
- function hasDocgen(component) {
3451
- return !!component.__docgenInfo;
3452
- }
3453
- function isValidDocgenSection(docgenSection) {
3454
- return docgenSection != null && Object.keys(docgenSection).length > 0;
3455
- }
3456
- function getDocgenSection(component, section) {
3457
- return hasDocgen(component) ? component.__docgenInfo[section] : null;
3458
- }
3459
- function getDocgenDescription(component) {
3460
- return hasDocgen(component) && str(component.__docgenInfo.description);
3461
- }
3462
- function containsJsDoc(value) {
3463
- return value != null && value.includes("@");
3464
- }
3465
- function parse(content, tags) {
3466
- let ast2;
3467
- try {
3468
- ast2 = doctrine.parse(content, { tags, sloppy: true });
3469
- } catch (e) {
3470
- throw console.error(e), new Error("Cannot parse JSDoc tags.");
3471
- }
3472
- return ast2;
3473
- }
3474
- var DEFAULT_OPTIONS = { tags: ["param", "arg", "argument", "returns", "ignore", "deprecated"] }, parseJsDoc = (value, options = DEFAULT_OPTIONS) => {
3475
- if (!containsJsDoc(value))
3476
- return { includesJsDoc: false, ignore: false };
3477
- let jsDocAst = parse(value, options.tags), extractedTags = extractJsDocTags(jsDocAst);
3478
- return extractedTags.ignore ? { includesJsDoc: true, ignore: true } : { includesJsDoc: true, ignore: false, description: jsDocAst.description, extractedTags };
3479
- };
3480
- function extractJsDocTags(ast2) {
3481
- let extractedTags = { params: null, deprecated: null, returns: null, ignore: false };
3482
- for (let i = 0; i < ast2.tags.length; i += 1) {
3483
- let tag = ast2.tags[i];
3484
- if (tag.title === "ignore") {
3485
- extractedTags.ignore = true;
3486
- break;
3487
- } else
3488
- switch (tag.title) {
3489
- case "param":
3490
- case "arg":
3491
- case "argument": {
3492
- let paramTag = extractParam(tag);
3493
- paramTag != null && (extractedTags.params == null && (extractedTags.params = []), extractedTags.params.push(paramTag));
3494
- break;
3495
- }
3496
- case "deprecated": {
3497
- let deprecatedTag = extractDeprecated(tag);
3498
- deprecatedTag != null && (extractedTags.deprecated = deprecatedTag);
3499
- break;
3500
- }
3501
- case "returns": {
3502
- let returnsTag = extractReturns(tag);
3503
- returnsTag != null && (extractedTags.returns = returnsTag);
3504
- break;
3505
- }
3506
- }
3507
- }
3508
- return extractedTags;
3509
- }
3510
- function extractParam(tag) {
3511
- let paramName = tag.name;
3512
- return paramName != null && paramName !== "null-null" ? { name: tag.name, type: tag.type, description: tag.description, getPrettyName: () => paramName.includes("null") ? paramName.replace("-null", "").replace(".null", "") : tag.name, getTypeName: () => tag.type != null ? extractTypeName(tag.type) : null } : null;
3513
- }
3514
- function extractDeprecated(tag) {
3515
- return tag.title != null ? tag.description : null;
3516
- }
3517
- function extractReturns(tag) {
3518
- return tag.type != null ? { type: tag.type, description: tag.description, getTypeName: () => extractTypeName(tag.type) } : null;
3519
- }
3520
- function extractTypeName(type) {
3521
- return type.type === "NameExpression" ? type.name : type.type === "RecordType" ? `({${type.fields.map((field) => {
3522
- if (field.value != null) {
3523
- let valueTypeName = extractTypeName(field.value);
3524
- return `${field.key}: ${valueTypeName}`;
3525
- }
3526
- return field.key;
3527
- }).join(", ")}})` : type.type === "UnionType" ? `(${type.elements.map(extractTypeName).join("|")})` : type.type === "ArrayType" ? "[]" : type.type === "TypeApplication" && type.expression != null && type.expression.name === "Array" ? `${extractTypeName(type.applications[0])}[]` : type.type === "NullableType" || type.type === "NonNullableType" || type.type === "OptionalType" ? extractTypeName(type.expression) : type.type === "AllLiteral" ? "any" : null;
3528
- }
3529
- function isTooLongForTypeSummary(value) {
3530
- return value.length > 90;
3531
- }
3532
- function isTooLongForDefaultValueSummary(value) {
3533
- return value.length > 50;
3534
- }
3535
- function createSummaryValue(summary, detail) {
3536
- return summary === detail ? { summary } : { summary, detail };
3537
- }
3538
- function generateUnionElement({ name: name2, value, elements, raw }) {
3539
- return value ?? (elements != null ? elements.map(generateUnionElement).join(" | ") : raw ?? name2);
3540
- }
3541
- function generateUnion({ name: name2, raw, elements }) {
3542
- return elements != null ? createSummaryValue(elements.map(generateUnionElement).join(" | ")) : raw != null ? createSummaryValue(raw.replace(/^\|\s*/, "")) : createSummaryValue(name2);
3543
- }
3544
- function generateFuncSignature({ type, raw }) {
3545
- return raw != null ? createSummaryValue(raw) : createSummaryValue(type);
3546
- }
3547
- function generateObjectSignature({ type, raw }) {
3548
- return raw != null ? isTooLongForTypeSummary(raw) ? createSummaryValue(type, raw) : createSummaryValue(raw) : createSummaryValue(type);
3549
- }
3550
- function generateSignature(flowType) {
3551
- let { type } = flowType;
3552
- return type === "object" ? generateObjectSignature(flowType) : generateFuncSignature(flowType);
3553
- }
3554
- function generateDefault({ name: name2, raw }) {
3555
- return raw != null ? isTooLongForTypeSummary(raw) ? createSummaryValue(name2, raw) : createSummaryValue(raw) : createSummaryValue(name2);
3556
- }
3557
- function createType(type) {
3558
- if (type == null)
3559
- return null;
3560
- switch (type.name) {
3561
- case "union":
3562
- return generateUnion(type);
3563
- case "signature":
3564
- return generateSignature(type);
3565
- default:
3566
- return generateDefault(type);
3567
- }
3568
- }
3569
- function createDefaultValue(defaultValue, type) {
3570
- if (defaultValue != null) {
3571
- let { value } = defaultValue;
3572
- if (!isDefaultValueBlacklisted(value))
3573
- return isTooLongForDefaultValueSummary(value) ? createSummaryValue(type.name, value) : createSummaryValue(value);
3574
- }
3575
- return null;
3576
- }
3577
- var createFlowPropDef = (propName, docgenInfo) => {
3578
- let { flowType, description: description2, required, defaultValue } = docgenInfo;
3579
- return { name: propName, type: createType(flowType), required, description: description2, defaultValue: createDefaultValue(defaultValue, flowType) };
3580
- };
3581
- function createType2({ tsType, required }) {
3582
- if (tsType == null)
3583
- return null;
3584
- let typeName = tsType.name;
3585
- return required || (typeName = typeName.replace(" | undefined", "")), createSummaryValue(["Array", "Record", "signature"].includes(tsType.name) ? tsType.raw : typeName);
3586
- }
3587
- function createDefaultValue2({ defaultValue }) {
3588
- if (defaultValue != null) {
3589
- let { value } = defaultValue;
3590
- if (!isDefaultValueBlacklisted(value))
3591
- return createSummaryValue(value);
3592
- }
3593
- return null;
3594
- }
3595
- var createTsPropDef = (propName, docgenInfo) => {
3596
- let { description: description2, required } = docgenInfo;
3597
- return { name: propName, type: createType2(docgenInfo), required, description: description2, defaultValue: createDefaultValue2(docgenInfo) };
3598
- };
3599
- function createType3(type) {
3600
- return type != null ? createSummaryValue(type.name) : null;
3601
- }
3602
- function isReactDocgenTypescript(defaultValue) {
3603
- let { computed, func } = defaultValue;
3604
- return typeof computed > "u" && typeof func > "u";
3605
- }
3606
- function isStringValued(type) {
3607
- return type ? type.name === "string" ? true : type.name === "enum" ? Array.isArray(type.value) && type.value.every(({ value: tv }) => typeof tv == "string" && tv[0] === '"' && tv[tv.length - 1] === '"') : false : false;
3608
- }
3609
- function createDefaultValue3(defaultValue, type) {
3610
- if (defaultValue != null) {
3611
- let { value } = defaultValue;
3612
- if (!isDefaultValueBlacklisted(value))
3613
- return isReactDocgenTypescript(defaultValue) && isStringValued(type) ? createSummaryValue(JSON.stringify(value)) : createSummaryValue(value);
3614
- }
3615
- return null;
3616
- }
3617
- function createBasicPropDef(name2, type, docgenInfo) {
3618
- let { description: description2, required, defaultValue } = docgenInfo;
3619
- return { name: name2, type: createType3(type), required, description: description2, defaultValue: createDefaultValue3(defaultValue, type) };
3620
- }
3621
- function applyJsDocResult(propDef, jsDocParsingResult) {
3622
- var _a;
3623
- if (jsDocParsingResult.includesJsDoc) {
3624
- let { description: description2, extractedTags } = jsDocParsingResult;
3625
- description2 != null && (propDef.description = jsDocParsingResult.description);
3626
- let value = { ...extractedTags, params: (_a = extractedTags == null ? void 0 : extractedTags.params) == null ? void 0 : _a.map((x) => ({ name: x.getPrettyName(), description: x.description })) };
3627
- Object.values(value).filter(Boolean).length > 0 && (propDef.jsDocTags = value);
3628
- }
3629
- return propDef;
3630
- }
3631
- var javaScriptFactory = (propName, docgenInfo, jsDocParsingResult) => {
3632
- let propDef = createBasicPropDef(propName, docgenInfo.type, docgenInfo);
3633
- return propDef.sbType = convert4(docgenInfo), applyJsDocResult(propDef, jsDocParsingResult);
3634
- }, tsFactory = (propName, docgenInfo, jsDocParsingResult) => {
3635
- let propDef = createTsPropDef(propName, docgenInfo);
3636
- return propDef.sbType = convert4(docgenInfo), applyJsDocResult(propDef, jsDocParsingResult);
3637
- }, flowFactory = (propName, docgenInfo, jsDocParsingResult) => {
3638
- let propDef = createFlowPropDef(propName, docgenInfo);
3639
- return propDef.sbType = convert4(docgenInfo), applyJsDocResult(propDef, jsDocParsingResult);
3640
- }, unknownFactory = (propName, docgenInfo, jsDocParsingResult) => {
3641
- let propDef = createBasicPropDef(propName, { name: "unknown" }, docgenInfo);
3642
- return applyJsDocResult(propDef, jsDocParsingResult);
3643
- }, getPropDefFactory = (typeSystem) => {
3644
- switch (typeSystem) {
3645
- case "JavaScript":
3646
- return javaScriptFactory;
3647
- case "TypeScript":
3648
- return tsFactory;
3649
- case "Flow":
3650
- return flowFactory;
3651
- default:
3652
- return unknownFactory;
3653
- }
3654
- };
3655
- var getTypeSystem = (docgenInfo) => docgenInfo.type != null ? "JavaScript" : docgenInfo.flowType != null ? "Flow" : docgenInfo.tsType != null ? "TypeScript" : "Unknown", extractComponentSectionArray = (docgenSection) => {
3656
- let typeSystem = getTypeSystem(docgenSection[0]), createPropDef = getPropDefFactory(typeSystem);
3657
- return docgenSection.map((item) => {
3658
- var _a;
3659
- let sanitizedItem = item;
3660
- return ((_a = item.type) == null ? void 0 : _a.elements) && (sanitizedItem = { ...item, type: { ...item.type, value: item.type.elements } }), extractProp(sanitizedItem.name, sanitizedItem, typeSystem, createPropDef);
3661
- });
3662
- }, extractComponentSectionObject = (docgenSection) => {
3663
- let docgenPropsKeys = Object.keys(docgenSection), typeSystem = getTypeSystem(docgenSection[docgenPropsKeys[0]]), createPropDef = getPropDefFactory(typeSystem);
3664
- return docgenPropsKeys.map((propName) => {
3665
- let docgenInfo = docgenSection[propName];
3666
- return docgenInfo != null ? extractProp(propName, docgenInfo, typeSystem, createPropDef) : null;
3667
- }).filter(Boolean);
3668
- }, extractComponentProps = (component, section) => {
3669
- let docgenSection = getDocgenSection(component, section);
3670
- return isValidDocgenSection(docgenSection) ? Array.isArray(docgenSection) ? extractComponentSectionArray(docgenSection) : extractComponentSectionObject(docgenSection) : [];
3671
- };
3672
- function extractProp(propName, docgenInfo, typeSystem, createPropDef) {
3673
- let jsDocParsingResult = parseJsDoc(docgenInfo.description);
3674
- return jsDocParsingResult.includesJsDoc && jsDocParsingResult.ignore ? null : { propDef: createPropDef(propName, docgenInfo, jsDocParsingResult), jsDocTags: jsDocParsingResult.extractedTags, docgenInfo, typeSystem };
3675
- }
3676
- function extractComponentDescription(component) {
3677
- return component != null && getDocgenDescription(component);
3678
- }
3679
- var enhanceArgTypes = (context) => {
3680
- let { component, argTypes: userArgTypes, parameters: { docs = {} } } = context, { extractArgTypes } = docs, extractedArgTypes = extractArgTypes && component ? extractArgTypes(component) : {};
3681
- return extractedArgTypes ? combineParameters(extractedArgTypes, userArgTypes) : userArgTypes;
3682
- };
3683
- var ADDON_ID = "storybook/docs", SNIPPET_RENDERED = `${ADDON_ID}/snippet-rendered`, SourceType = ((SourceType2) => (SourceType2.AUTO = "auto", SourceType2.CODE = "code", SourceType2.DYNAMIC = "dynamic", SourceType2))(SourceType || {});
3684
- export {
3685
- _isPrototype as A,
3686
- _arrayLikeKeys as B,
3687
- isArrayLike_1 as C,
3688
- _baseGetAllKeys as D,
3689
- _arrayMap as E,
3690
- _baseIteratee as F,
3691
- _Set as G,
3692
- _setToArray as H,
3693
- _SetCache as I,
3694
- _cacheHas as J,
3695
- keys_1 as K,
3696
- _Uint8Array as L,
3697
- _Symbol as M,
3698
- _getTag as N,
3699
- _nodeUtilExports as O,
3700
- _baseUnary as P,
3701
- _Stack as Q,
3702
- isBufferExports as R,
3703
- SNIPPET_RENDERED as S,
3704
- TypeSystem as T,
3705
- _getAllKeys as U,
3706
- str as V,
3707
- _root as _,
3708
- isSymbol_1 as a,
3709
- _baseGetTag as b,
3710
- _getPrototype as c,
3711
- isObjectLike_1 as d,
3712
- isArray_1 as e,
3713
- extractComponentDescription as f,
3714
- enhanceArgTypes as g,
3715
- createSummaryValue as h,
3716
- isObject_1 as i,
3717
- getDocgenSection as j,
3718
- SourceType as k,
3719
- isFunction$3 as l,
3720
- hasDocgen as m,
3721
- extractComponentProps as n,
3722
- isTooLongForDefaultValueSummary as o,
3723
- isTooLongForTypeSummary as p,
3724
- _baseAssignValue as q,
3725
- eq_1 as r,
3726
- _castPath as s,
3727
- _isIndex as t,
3728
- utils as u,
3729
- _toKey as v,
3730
- _baseGet as w,
3731
- _arrayPush as x,
3732
- _getSymbols as y,
3733
- stubArray_1 as z
3734
- };