@ebrains/react 0.0.1-alpha.0 → 0.2.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/README.md +4 -48
  2. package/arrow-diagonal-black-8f0494c3.esm.js +3 -0
  3. package/arrow-right-9322ba8a.esm.js +5 -0
  4. package/bluesky-cc5edd2d.esm.js +14 -0
  5. package/chevron-down-6144c823.esm.js +12 -0
  6. package/chevron-left-ca6c66e1.esm.js +11 -0
  7. package/chevron-right-b88ed2d4.esm.js +5 -0
  8. package/chevron-up-c66bd477.esm.js +12 -0
  9. package/close-87fc0d63.esm.js +5 -0
  10. package/color-0ba8ed56.esm.js +423 -0
  11. package/color-primary-palette_6.entry.esm.js +756 -0
  12. package/copy-03b72cb6.esm.js +5 -0
  13. package/correct-use-of-colors.entry.esm.js +243 -0
  14. package/eds-accordion.entry.esm.js +132 -0
  15. package/eds-alert_28.entry.esm.js +227 -0
  16. package/eds-block-break.entry.esm.js +22 -0
  17. package/eds-breadcrumb.entry.esm.js +169 -0
  18. package/eds-card-project.entry.esm.js +92 -0
  19. package/eds-card-section.entry.esm.js +60 -0
  20. package/eds-card-tags.entry.esm.js +27 -0
  21. package/eds-card-tool.entry.esm.js +106 -0
  22. package/eds-card-wrapper.entry.esm.js +39 -0
  23. package/eds-code-block.entry.esm.js +2243 -0
  24. package/eds-components-section.entry.esm.js +113 -0
  25. package/eds-docs-palettes.entry.esm.js +29 -0
  26. package/eds-docs-tokens.entry.esm.js +45 -0
  27. package/eds-footer.entry.esm.js +110 -0
  28. package/eds-frame.entry.esm.js +117 -0
  29. package/eds-fullscreen-menu.entry.esm.js +143 -0
  30. package/eds-icon-arrow-diagonal.entry.esm.js +21 -0
  31. package/eds-icon-arrow-right.entry.esm.js +21 -0
  32. package/eds-icon-bluesky.entry.esm.js +21 -0
  33. package/eds-icon-chevron-down.entry.esm.js +21 -0
  34. package/eds-icon-chevron-left.entry.esm.js +21 -0
  35. package/eds-icon-chevron-right.entry.esm.js +21 -0
  36. package/eds-icon-chevron-up.entry.esm.js +21 -0
  37. package/eds-icon-close.entry.esm.js +21 -0
  38. package/eds-icon-copy.entry.esm.js +21 -0
  39. package/eds-icon-eu.entry.esm.js +21 -0
  40. package/eds-icon-facebook.entry.esm.js +21 -0
  41. package/eds-icon-gitlab.entry.esm.js +21 -0
  42. package/eds-icon-linkedin.entry.esm.js +21 -0
  43. package/eds-icon-loader.entry.esm.js +21 -0
  44. package/eds-icon-mastodon.entry.esm.js +21 -0
  45. package/eds-icon-menu.entry.esm.js +21 -0
  46. package/eds-icon-more.entry.esm.js +21 -0
  47. package/eds-icon-search.entry.esm.js +21 -0
  48. package/eds-icon-success.entry.esm.js +21 -0
  49. package/eds-icon-twitter.entry.esm.js +21 -0
  50. package/eds-icon-user.entry.esm.js +21 -0
  51. package/eds-icon-youtube.entry.esm.js +21 -0
  52. package/eds-login.entry.esm.js +84 -0
  53. package/eds-matomo-notice.entry.esm.js +129 -0
  54. package/eds-modal.entry.esm.js +114 -0
  55. package/eds-navigator.entry.esm.js +72 -0
  56. package/eds-pagination.entry.esm.js +258 -0
  57. package/eds-rating.entry.esm.js +71 -0
  58. package/eds-section-core_2.entry.esm.js +69 -0
  59. package/eds-social-networks.entry.esm.js +74 -0
  60. package/eds-svg-repository.entry.esm.js +316 -0
  61. package/eds-tab.entry.esm.js +41 -0
  62. package/eds-table.entry.esm.js +196 -0
  63. package/eds-tabs-content.entry.esm.js +145 -0
  64. package/eds-tabs.entry.esm.js +136 -0
  65. package/eds-tooltip.entry.esm.js +116 -0
  66. package/eu-9ddde93a.esm.js +30 -0
  67. package/facebook-9cb5c17f.esm.js +14 -0
  68. package/incorrect-use-of-colors.entry.esm.js +70 -0
  69. package/index-39c58238.esm.js +58 -0
  70. package/index.esm.js +3 -2668
  71. package/index.esm2.js +4783 -0
  72. package/keycloak-13893af6.esm.js +1594 -0
  73. package/linkedin-e8650abb.esm.js +28 -0
  74. package/loader-c9628637.esm.js +30 -0
  75. package/logo-color-7f1fd803.esm.js +115 -0
  76. package/logo-color-margins-ff8ce71b.esm.js +118 -0
  77. package/logo-space.entry.esm.js +32 -0
  78. package/logo-variations-horizontal.entry.esm.js +50 -0
  79. package/logo-variations-vertical.entry.esm.js +53 -0
  80. package/logo-white-no-bg-f382f86f.esm.js +1021 -0
  81. package/logo-wrong-usage.entry.esm.js +137 -0
  82. package/mastodon-3703ec61.esm.js +14 -0
  83. package/menu-340ea948.esm.js +11 -0
  84. package/mono-53f70232.esm.js +11 -0
  85. package/more-4449d549.esm.js +13 -0
  86. package/package.json +1 -1
  87. package/search-fbcd79c2.esm.js +12 -0
  88. package/src/components.d.ts +38 -0
  89. package/src/index.d.ts +1 -1
  90. package/src/react-component-lib/attachProps.d.ts +16 -0
  91. package/src/react-component-lib/case.d.ts +2 -0
  92. package/src/react-component-lib/createComponent.d.ts +10 -0
  93. package/src/react-component-lib/createOverlayComponent.d.ts +21 -0
  94. package/src/react-component-lib/dev.d.ts +2 -0
  95. package/src/react-component-lib/index.d.ts +2 -0
  96. package/src/react-component-lib/interfaces.d.ts +29 -0
  97. package/src/react-component-lib/utils/attachProps.d.ts +16 -0
  98. package/src/react-component-lib/utils/case.d.ts +2 -0
  99. package/src/react-component-lib/utils/index.d.ts +10 -0
  100. package/success-443809da.esm.js +18 -0
  101. package/toastManager-d9eee791.esm.js +34 -0
  102. package/token-list_3.entry.esm.js +385 -0
  103. package/token-ratios.entry.esm.js +49 -0
  104. package/token-spacing.entry.esm.js +93 -0
  105. package/token-typography.entry.esm.js +264 -0
  106. package/twitter-ac21b505.esm.js +14 -0
  107. package/user-71ebdc15.esm.js +16 -0
  108. package/youtube-efbfbdc4.esm.js +14 -0
package/index.esm.js CHANGED
@@ -1,2669 +1,4 @@
1
- import React, { createElement as createElement$1 } from 'react';
2
- import { jsx } from 'react/jsx-runtime';
1
+ export { E as EdsAccordion, a as EdsAlert, b as EdsAvatar, d as EdsBlockBreak, e as EdsBreadcrumb, f as EdsButton, i as EdsCardDesc, j as EdsCardGeneric, k as EdsCardSection, l as EdsCodeBlock, m as EdsDropdown, n as EdsFooter, o as EdsForm, p as EdsFrame, q as EdsFullscreenMenu, s as EdsHeader, t as EdsIconWrapper, u as EdsImg, v as EdsInputField, w as EdsLink, x as EdsLogin, y as EdsLogo, z as EdsMatomoNotice, A as EdsModal, B as EdsPagination, C as EdsProgressBar, D as EdsRating, F as EdsSectionCore, G as EdsSectionHeading, H as EdsSocialNetworks, I as EdsTable, J as EdsTabs, K as EdsTag, L as EdsToast, M as EdsToastManager, N as EdsTooltip, O as EdsUser } from './index.esm2.js';
2
+ import 'react';
3
+ import 'react/jsx-runtime';
3
4
  import 'react-dom';
4
- import { defineCustomElements } from '@ebrains/components/loader';
5
-
6
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
7
-
8
- var check = function (it) {
9
- return it && it.Math === Math && it;
10
- };
11
-
12
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
13
- var globalThis_1 =
14
- // eslint-disable-next-line es/no-global-this -- safe
15
- check(typeof globalThis == 'object' && globalThis) ||
16
- check(typeof window == 'object' && window) ||
17
- // eslint-disable-next-line no-restricted-globals -- safe
18
- check(typeof self == 'object' && self) ||
19
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
20
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
21
- // eslint-disable-next-line no-new-func -- fallback
22
- (function () { return this; })() || Function('return this')();
23
-
24
- var objectGetOwnPropertyDescriptor = {};
25
-
26
- var fails$i = function (exec) {
27
- try {
28
- return !!exec();
29
- } catch (error) {
30
- return true;
31
- }
32
- };
33
-
34
- var fails$h = fails$i;
35
-
36
- // Detect IE8's incomplete defineProperty implementation
37
- var descriptors = !fails$h(function () {
38
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
39
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
40
- });
41
-
42
- var fails$g = fails$i;
43
-
44
- var functionBindNative = !fails$g(function () {
45
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
46
- var test = (function () { /* empty */ }).bind();
47
- // eslint-disable-next-line no-prototype-builtins -- safe
48
- return typeof test != 'function' || test.hasOwnProperty('prototype');
49
- });
50
-
51
- var NATIVE_BIND$2 = functionBindNative;
52
-
53
- var call$b = Function.prototype.call;
54
-
55
- var functionCall = NATIVE_BIND$2 ? call$b.bind(call$b) : function () {
56
- return call$b.apply(call$b, arguments);
57
- };
58
-
59
- var objectPropertyIsEnumerable = {};
60
-
61
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
62
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
63
- var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
64
-
65
- // Nashorn ~ JDK8 bug
66
- var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
67
-
68
- // `Object.prototype.propertyIsEnumerable` method implementation
69
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
70
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
71
- var descriptor = getOwnPropertyDescriptor$2(this, V);
72
- return !!descriptor && descriptor.enumerable;
73
- } : $propertyIsEnumerable;
74
-
75
- var createPropertyDescriptor$3 = function (bitmap, value) {
76
- return {
77
- enumerable: !(bitmap & 1),
78
- configurable: !(bitmap & 2),
79
- writable: !(bitmap & 4),
80
- value: value
81
- };
82
- };
83
-
84
- var NATIVE_BIND$1 = functionBindNative;
85
-
86
- var FunctionPrototype$2 = Function.prototype;
87
- var call$a = FunctionPrototype$2.call;
88
- var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$2.bind.bind(call$a, call$a);
89
-
90
- var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
91
- return function () {
92
- return call$a.apply(fn, arguments);
93
- };
94
- };
95
-
96
- var uncurryThis$e = functionUncurryThis;
97
-
98
- var toString$5 = uncurryThis$e({}.toString);
99
- var stringSlice$5 = uncurryThis$e(''.slice);
100
-
101
- var classofRaw$1 = function (it) {
102
- return stringSlice$5(toString$5(it), 8, -1);
103
- };
104
-
105
- var uncurryThis$d = functionUncurryThis;
106
- var fails$f = fails$i;
107
- var classof$5 = classofRaw$1;
108
-
109
- var $Object$4 = Object;
110
- var split = uncurryThis$d(''.split);
111
-
112
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
113
- var indexedObject = fails$f(function () {
114
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
115
- // eslint-disable-next-line no-prototype-builtins -- safe
116
- return !$Object$4('z').propertyIsEnumerable(0);
117
- }) ? function (it) {
118
- return classof$5(it) === 'String' ? split(it, '') : $Object$4(it);
119
- } : $Object$4;
120
-
121
- // we can't use just `it == null` since of `document.all` special case
122
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
123
- var isNullOrUndefined$3 = function (it) {
124
- return it === null || it === undefined;
125
- };
126
-
127
- var isNullOrUndefined$2 = isNullOrUndefined$3;
128
-
129
- var $TypeError$a = TypeError;
130
-
131
- // `RequireObjectCoercible` abstract operation
132
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
133
- var requireObjectCoercible$5 = function (it) {
134
- if (isNullOrUndefined$2(it)) throw new $TypeError$a("Can't call method on " + it);
135
- return it;
136
- };
137
-
138
- // toObject with fallback for non-array-like ES3 strings
139
- var IndexedObject$2 = indexedObject;
140
- var requireObjectCoercible$4 = requireObjectCoercible$5;
141
-
142
- var toIndexedObject$5 = function (it) {
143
- return IndexedObject$2(requireObjectCoercible$4(it));
144
- };
145
-
146
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
147
- var documentAll = typeof document == 'object' && document.all;
148
-
149
- // `IsCallable` abstract operation
150
- // https://tc39.es/ecma262/#sec-iscallable
151
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
152
- var isCallable$g = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
153
- return typeof argument == 'function' || argument === documentAll;
154
- } : function (argument) {
155
- return typeof argument == 'function';
156
- };
157
-
158
- var isCallable$f = isCallable$g;
159
-
160
- var isObject$8 = function (it) {
161
- return typeof it == 'object' ? it !== null : isCallable$f(it);
162
- };
163
-
164
- var globalThis$g = globalThis_1;
165
- var isCallable$e = isCallable$g;
166
-
167
- var aFunction = function (argument) {
168
- return isCallable$e(argument) ? argument : undefined;
169
- };
170
-
171
- var getBuiltIn$3 = function (namespace, method) {
172
- return arguments.length < 2 ? aFunction(globalThis$g[namespace]) : globalThis$g[namespace] && globalThis$g[namespace][method];
173
- };
174
-
175
- var uncurryThis$c = functionUncurryThis;
176
-
177
- var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
178
-
179
- var globalThis$f = globalThis_1;
180
-
181
- var navigator = globalThis$f.navigator;
182
- var userAgent$2 = navigator && navigator.userAgent;
183
-
184
- var environmentUserAgent = userAgent$2 ? String(userAgent$2) : '';
185
-
186
- var globalThis$e = globalThis_1;
187
- var userAgent$1 = environmentUserAgent;
188
-
189
- var process = globalThis$e.process;
190
- var Deno$1 = globalThis$e.Deno;
191
- var versions = process && process.versions || Deno$1 && Deno$1.version;
192
- var v8 = versions && versions.v8;
193
- var match, version;
194
-
195
- if (v8) {
196
- match = v8.split('.');
197
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
198
- // but their correct versions are not interesting for us
199
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
200
- }
201
-
202
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
203
- // so check `userAgent` even if `.v8` exists, but 0
204
- if (!version && userAgent$1) {
205
- match = userAgent$1.match(/Edge\/(\d+)/);
206
- if (!match || match[1] >= 74) {
207
- match = userAgent$1.match(/Chrome\/(\d+)/);
208
- if (match) version = +match[1];
209
- }
210
- }
211
-
212
- var environmentV8Version = version;
213
-
214
- /* eslint-disable es/no-symbol -- required for testing */
215
- var V8_VERSION = environmentV8Version;
216
- var fails$e = fails$i;
217
- var globalThis$d = globalThis_1;
218
-
219
- var $String$5 = globalThis$d.String;
220
-
221
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
222
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$e(function () {
223
- var symbol = Symbol('symbol detection');
224
- // Chrome 38 Symbol has incorrect toString conversion
225
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
226
- // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
227
- // of course, fail.
228
- return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
229
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
230
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
231
- });
232
-
233
- /* eslint-disable es/no-symbol -- required for testing */
234
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
235
-
236
- var useSymbolAsUid = NATIVE_SYMBOL$1
237
- && !Symbol.sham
238
- && typeof Symbol.iterator == 'symbol';
239
-
240
- var getBuiltIn$2 = getBuiltIn$3;
241
- var isCallable$d = isCallable$g;
242
- var isPrototypeOf = objectIsPrototypeOf;
243
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
244
-
245
- var $Object$3 = Object;
246
-
247
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
248
- return typeof it == 'symbol';
249
- } : function (it) {
250
- var $Symbol = getBuiltIn$2('Symbol');
251
- return isCallable$d($Symbol) && isPrototypeOf($Symbol.prototype, $Object$3(it));
252
- };
253
-
254
- var $String$4 = String;
255
-
256
- var tryToString$1 = function (argument) {
257
- try {
258
- return $String$4(argument);
259
- } catch (error) {
260
- return 'Object';
261
- }
262
- };
263
-
264
- var isCallable$c = isCallable$g;
265
- var tryToString = tryToString$1;
266
-
267
- var $TypeError$9 = TypeError;
268
-
269
- // `Assert: IsCallable(argument) is true`
270
- var aCallable$3 = function (argument) {
271
- if (isCallable$c(argument)) return argument;
272
- throw new $TypeError$9(tryToString(argument) + ' is not a function');
273
- };
274
-
275
- var aCallable$2 = aCallable$3;
276
- var isNullOrUndefined$1 = isNullOrUndefined$3;
277
-
278
- // `GetMethod` abstract operation
279
- // https://tc39.es/ecma262/#sec-getmethod
280
- var getMethod$2 = function (V, P) {
281
- var func = V[P];
282
- return isNullOrUndefined$1(func) ? undefined : aCallable$2(func);
283
- };
284
-
285
- var call$9 = functionCall;
286
- var isCallable$b = isCallable$g;
287
- var isObject$7 = isObject$8;
288
-
289
- var $TypeError$8 = TypeError;
290
-
291
- // `OrdinaryToPrimitive` abstract operation
292
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
293
- var ordinaryToPrimitive$1 = function (input, pref) {
294
- var fn, val;
295
- if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$7(val = call$9(fn, input))) return val;
296
- if (isCallable$b(fn = input.valueOf) && !isObject$7(val = call$9(fn, input))) return val;
297
- if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$7(val = call$9(fn, input))) return val;
298
- throw new $TypeError$8("Can't convert object to primitive value");
299
- };
300
-
301
- var sharedStore = {exports: {}};
302
-
303
- var globalThis$c = globalThis_1;
304
-
305
- // eslint-disable-next-line es/no-object-defineproperty -- safe
306
- var defineProperty$5 = Object.defineProperty;
307
-
308
- var defineGlobalProperty$3 = function (key, value) {
309
- try {
310
- defineProperty$5(globalThis$c, key, { value: value, configurable: true, writable: true });
311
- } catch (error) {
312
- globalThis$c[key] = value;
313
- } return value;
314
- };
315
-
316
- var globalThis$b = globalThis_1;
317
- var defineGlobalProperty$2 = defineGlobalProperty$3;
318
-
319
- var SHARED = '__core-js_shared__';
320
- var store$3 = sharedStore.exports = globalThis$b[SHARED] || defineGlobalProperty$2(SHARED, {});
321
-
322
- (store$3.versions || (store$3.versions = [])).push({
323
- version: '3.38.1',
324
- mode: 'global',
325
- copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
326
- license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
327
- source: 'https://github.com/zloirock/core-js'
328
- });
329
-
330
- var sharedStoreExports = sharedStore.exports;
331
-
332
- var store$2 = sharedStoreExports;
333
-
334
- var shared$4 = function (key, value) {
335
- return store$2[key] || (store$2[key] = value || {});
336
- };
337
-
338
- var requireObjectCoercible$3 = requireObjectCoercible$5;
339
-
340
- var $Object$2 = Object;
341
-
342
- // `ToObject` abstract operation
343
- // https://tc39.es/ecma262/#sec-toobject
344
- var toObject$6 = function (argument) {
345
- return $Object$2(requireObjectCoercible$3(argument));
346
- };
347
-
348
- var uncurryThis$b = functionUncurryThis;
349
- var toObject$5 = toObject$6;
350
-
351
- var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
352
-
353
- // `HasOwnProperty` abstract operation
354
- // https://tc39.es/ecma262/#sec-hasownproperty
355
- // eslint-disable-next-line es/no-object-hasown -- safe
356
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
357
- return hasOwnProperty(toObject$5(it), key);
358
- };
359
-
360
- var uncurryThis$a = functionUncurryThis;
361
-
362
- var id = 0;
363
- var postfix = Math.random();
364
- var toString$4 = uncurryThis$a(1.0.toString);
365
-
366
- var uid$2 = function (key) {
367
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
368
- };
369
-
370
- var globalThis$a = globalThis_1;
371
- var shared$3 = shared$4;
372
- var hasOwn$8 = hasOwnProperty_1;
373
- var uid$1 = uid$2;
374
- var NATIVE_SYMBOL = symbolConstructorDetection;
375
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
376
-
377
- var Symbol$1 = globalThis$a.Symbol;
378
- var WellKnownSymbolsStore = shared$3('wks');
379
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
380
-
381
- var wellKnownSymbol$a = function (name) {
382
- if (!hasOwn$8(WellKnownSymbolsStore, name)) {
383
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
384
- ? Symbol$1[name]
385
- : createWellKnownSymbol('Symbol.' + name);
386
- } return WellKnownSymbolsStore[name];
387
- };
388
-
389
- var call$8 = functionCall;
390
- var isObject$6 = isObject$8;
391
- var isSymbol$1 = isSymbol$2;
392
- var getMethod$1 = getMethod$2;
393
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
394
- var wellKnownSymbol$9 = wellKnownSymbol$a;
395
-
396
- var $TypeError$7 = TypeError;
397
- var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
398
-
399
- // `ToPrimitive` abstract operation
400
- // https://tc39.es/ecma262/#sec-toprimitive
401
- var toPrimitive$1 = function (input, pref) {
402
- if (!isObject$6(input) || isSymbol$1(input)) return input;
403
- var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
404
- var result;
405
- if (exoticToPrim) {
406
- if (pref === undefined) pref = 'default';
407
- result = call$8(exoticToPrim, input, pref);
408
- if (!isObject$6(result) || isSymbol$1(result)) return result;
409
- throw new $TypeError$7("Can't convert object to primitive value");
410
- }
411
- if (pref === undefined) pref = 'number';
412
- return ordinaryToPrimitive(input, pref);
413
- };
414
-
415
- var toPrimitive = toPrimitive$1;
416
- var isSymbol = isSymbol$2;
417
-
418
- // `ToPropertyKey` abstract operation
419
- // https://tc39.es/ecma262/#sec-topropertykey
420
- var toPropertyKey$2 = function (argument) {
421
- var key = toPrimitive(argument, 'string');
422
- return isSymbol(key) ? key : key + '';
423
- };
424
-
425
- var globalThis$9 = globalThis_1;
426
- var isObject$5 = isObject$8;
427
-
428
- var document$1 = globalThis$9.document;
429
- // typeof document.createElement is 'object' in old IE
430
- var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
431
-
432
- var documentCreateElement$2 = function (it) {
433
- return EXISTS$1 ? document$1.createElement(it) : {};
434
- };
435
-
436
- var DESCRIPTORS$a = descriptors;
437
- var fails$d = fails$i;
438
- var createElement = documentCreateElement$2;
439
-
440
- // Thanks to IE8 for its funny defineProperty
441
- var ie8DomDefine = !DESCRIPTORS$a && !fails$d(function () {
442
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
443
- return Object.defineProperty(createElement('div'), 'a', {
444
- get: function () { return 7; }
445
- }).a !== 7;
446
- });
447
-
448
- var DESCRIPTORS$9 = descriptors;
449
- var call$7 = functionCall;
450
- var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
451
- var createPropertyDescriptor$2 = createPropertyDescriptor$3;
452
- var toIndexedObject$4 = toIndexedObject$5;
453
- var toPropertyKey$1 = toPropertyKey$2;
454
- var hasOwn$7 = hasOwnProperty_1;
455
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
456
-
457
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
458
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
459
-
460
- // `Object.getOwnPropertyDescriptor` method
461
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
462
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
463
- O = toIndexedObject$4(O);
464
- P = toPropertyKey$1(P);
465
- if (IE8_DOM_DEFINE$1) try {
466
- return $getOwnPropertyDescriptor$1(O, P);
467
- } catch (error) { /* empty */ }
468
- if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$7(propertyIsEnumerableModule$1.f, O, P), O[P]);
469
- };
470
-
471
- var objectDefineProperty = {};
472
-
473
- var DESCRIPTORS$8 = descriptors;
474
- var fails$c = fails$i;
475
-
476
- // V8 ~ Chrome 36-
477
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
478
- var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$c(function () {
479
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
480
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
481
- value: 42,
482
- writable: false
483
- }).prototype !== 42;
484
- });
485
-
486
- var isObject$4 = isObject$8;
487
-
488
- var $String$3 = String;
489
- var $TypeError$6 = TypeError;
490
-
491
- // `Assert: Type(argument) is Object`
492
- var anObject$7 = function (argument) {
493
- if (isObject$4(argument)) return argument;
494
- throw new $TypeError$6($String$3(argument) + ' is not an object');
495
- };
496
-
497
- var DESCRIPTORS$7 = descriptors;
498
- var IE8_DOM_DEFINE = ie8DomDefine;
499
- var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
500
- var anObject$6 = anObject$7;
501
- var toPropertyKey = toPropertyKey$2;
502
-
503
- var $TypeError$5 = TypeError;
504
- // eslint-disable-next-line es/no-object-defineproperty -- safe
505
- var $defineProperty = Object.defineProperty;
506
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
507
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
508
- var ENUMERABLE = 'enumerable';
509
- var CONFIGURABLE$1 = 'configurable';
510
- var WRITABLE = 'writable';
511
-
512
- // `Object.defineProperty` method
513
- // https://tc39.es/ecma262/#sec-object.defineproperty
514
- objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
515
- anObject$6(O);
516
- P = toPropertyKey(P);
517
- anObject$6(Attributes);
518
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
519
- var current = $getOwnPropertyDescriptor(O, P);
520
- if (current && current[WRITABLE]) {
521
- O[P] = Attributes.value;
522
- Attributes = {
523
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
524
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
525
- writable: false
526
- };
527
- }
528
- } return $defineProperty(O, P, Attributes);
529
- } : $defineProperty : function defineProperty(O, P, Attributes) {
530
- anObject$6(O);
531
- P = toPropertyKey(P);
532
- anObject$6(Attributes);
533
- if (IE8_DOM_DEFINE) try {
534
- return $defineProperty(O, P, Attributes);
535
- } catch (error) { /* empty */ }
536
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$5('Accessors not supported');
537
- if ('value' in Attributes) O[P] = Attributes.value;
538
- return O;
539
- };
540
-
541
- var DESCRIPTORS$6 = descriptors;
542
- var definePropertyModule$3 = objectDefineProperty;
543
- var createPropertyDescriptor$1 = createPropertyDescriptor$3;
544
-
545
- var createNonEnumerableProperty$5 = DESCRIPTORS$6 ? function (object, key, value) {
546
- return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
547
- } : function (object, key, value) {
548
- object[key] = value;
549
- return object;
550
- };
551
-
552
- var makeBuiltIn$2 = {exports: {}};
553
-
554
- var DESCRIPTORS$5 = descriptors;
555
- var hasOwn$6 = hasOwnProperty_1;
556
-
557
- var FunctionPrototype$1 = Function.prototype;
558
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
559
- var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
560
-
561
- var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
562
- // additional protection from minified / mangled / dropped function names
563
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
564
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$1, 'name').configurable));
565
-
566
- var functionName = {
567
- EXISTS: EXISTS,
568
- PROPER: PROPER,
569
- CONFIGURABLE: CONFIGURABLE
570
- };
571
-
572
- var uncurryThis$9 = functionUncurryThis;
573
- var isCallable$a = isCallable$g;
574
- var store$1 = sharedStoreExports;
575
-
576
- var functionToString = uncurryThis$9(Function.toString);
577
-
578
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
579
- if (!isCallable$a(store$1.inspectSource)) {
580
- store$1.inspectSource = function (it) {
581
- return functionToString(it);
582
- };
583
- }
584
-
585
- var inspectSource$1 = store$1.inspectSource;
586
-
587
- var globalThis$8 = globalThis_1;
588
- var isCallable$9 = isCallable$g;
589
-
590
- var WeakMap$1 = globalThis$8.WeakMap;
591
-
592
- var weakMapBasicDetection = isCallable$9(WeakMap$1) && /native code/.test(String(WeakMap$1));
593
-
594
- var shared$2 = shared$4;
595
- var uid = uid$2;
596
-
597
- var keys = shared$2('keys');
598
-
599
- var sharedKey$3 = function (key) {
600
- return keys[key] || (keys[key] = uid(key));
601
- };
602
-
603
- var hiddenKeys$4 = {};
604
-
605
- var NATIVE_WEAK_MAP = weakMapBasicDetection;
606
- var globalThis$7 = globalThis_1;
607
- var isObject$3 = isObject$8;
608
- var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
609
- var hasOwn$5 = hasOwnProperty_1;
610
- var shared$1 = sharedStoreExports;
611
- var sharedKey$2 = sharedKey$3;
612
- var hiddenKeys$3 = hiddenKeys$4;
613
-
614
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
615
- var TypeError$1 = globalThis$7.TypeError;
616
- var WeakMap = globalThis$7.WeakMap;
617
- var set, get, has;
618
-
619
- var enforce = function (it) {
620
- return has(it) ? get(it) : set(it, {});
621
- };
622
-
623
- var getterFor = function (TYPE) {
624
- return function (it) {
625
- var state;
626
- if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
627
- throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
628
- } return state;
629
- };
630
- };
631
-
632
- if (NATIVE_WEAK_MAP || shared$1.state) {
633
- var store = shared$1.state || (shared$1.state = new WeakMap());
634
- /* eslint-disable no-self-assign -- prototype methods protection */
635
- store.get = store.get;
636
- store.has = store.has;
637
- store.set = store.set;
638
- /* eslint-enable no-self-assign -- prototype methods protection */
639
- set = function (it, metadata) {
640
- if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
641
- metadata.facade = it;
642
- store.set(it, metadata);
643
- return metadata;
644
- };
645
- get = function (it) {
646
- return store.get(it) || {};
647
- };
648
- has = function (it) {
649
- return store.has(it);
650
- };
651
- } else {
652
- var STATE = sharedKey$2('state');
653
- hiddenKeys$3[STATE] = true;
654
- set = function (it, metadata) {
655
- if (hasOwn$5(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
656
- metadata.facade = it;
657
- createNonEnumerableProperty$4(it, STATE, metadata);
658
- return metadata;
659
- };
660
- get = function (it) {
661
- return hasOwn$5(it, STATE) ? it[STATE] : {};
662
- };
663
- has = function (it) {
664
- return hasOwn$5(it, STATE);
665
- };
666
- }
667
-
668
- var internalState = {
669
- set: set,
670
- get: get,
671
- has: has,
672
- enforce: enforce,
673
- getterFor: getterFor
674
- };
675
-
676
- var uncurryThis$8 = functionUncurryThis;
677
- var fails$b = fails$i;
678
- var isCallable$8 = isCallable$g;
679
- var hasOwn$4 = hasOwnProperty_1;
680
- var DESCRIPTORS$4 = descriptors;
681
- var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
682
- var inspectSource = inspectSource$1;
683
- var InternalStateModule$1 = internalState;
684
-
685
- var enforceInternalState = InternalStateModule$1.enforce;
686
- var getInternalState$2 = InternalStateModule$1.get;
687
- var $String$2 = String;
688
- // eslint-disable-next-line es/no-object-defineproperty -- safe
689
- var defineProperty$4 = Object.defineProperty;
690
- var stringSlice$4 = uncurryThis$8(''.slice);
691
- var replace$2 = uncurryThis$8(''.replace);
692
- var join = uncurryThis$8([].join);
693
-
694
- var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$b(function () {
695
- return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
696
- });
697
-
698
- var TEMPLATE = String(String).split('String');
699
-
700
- var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
701
- if (stringSlice$4($String$2(name), 0, 7) === 'Symbol(') {
702
- name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
703
- }
704
- if (options && options.getter) name = 'get ' + name;
705
- if (options && options.setter) name = 'set ' + name;
706
- if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
707
- if (DESCRIPTORS$4) defineProperty$4(value, 'name', { value: name, configurable: true });
708
- else value.name = name;
709
- }
710
- if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
711
- defineProperty$4(value, 'length', { value: options.arity });
712
- }
713
- try {
714
- if (options && hasOwn$4(options, 'constructor') && options.constructor) {
715
- if (DESCRIPTORS$4) defineProperty$4(value, 'prototype', { writable: false });
716
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
717
- } else if (value.prototype) value.prototype = undefined;
718
- } catch (error) { /* empty */ }
719
- var state = enforceInternalState(value);
720
- if (!hasOwn$4(state, 'source')) {
721
- state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
722
- } return value;
723
- };
724
-
725
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
726
- // eslint-disable-next-line no-extend-native -- required
727
- Function.prototype.toString = makeBuiltIn$1(function toString() {
728
- return isCallable$8(this) && getInternalState$2(this).source || inspectSource(this);
729
- }, 'toString');
730
-
731
- var makeBuiltInExports = makeBuiltIn$2.exports;
732
-
733
- var isCallable$7 = isCallable$g;
734
- var definePropertyModule$2 = objectDefineProperty;
735
- var makeBuiltIn = makeBuiltInExports;
736
- var defineGlobalProperty$1 = defineGlobalProperty$3;
737
-
738
- var defineBuiltIn$4 = function (O, key, value, options) {
739
- if (!options) options = {};
740
- var simple = options.enumerable;
741
- var name = options.name !== undefined ? options.name : key;
742
- if (isCallable$7(value)) makeBuiltIn(value, name, options);
743
- if (options.global) {
744
- if (simple) O[key] = value;
745
- else defineGlobalProperty$1(key, value);
746
- } else {
747
- try {
748
- if (!options.unsafe) delete O[key];
749
- else if (O[key]) simple = true;
750
- } catch (error) { /* empty */ }
751
- if (simple) O[key] = value;
752
- else definePropertyModule$2.f(O, key, {
753
- value: value,
754
- enumerable: false,
755
- configurable: !options.nonConfigurable,
756
- writable: !options.nonWritable
757
- });
758
- } return O;
759
- };
760
-
761
- var objectGetOwnPropertyNames = {};
762
-
763
- var ceil = Math.ceil;
764
- var floor$1 = Math.floor;
765
-
766
- // `Math.trunc` method
767
- // https://tc39.es/ecma262/#sec-math.trunc
768
- // eslint-disable-next-line es/no-math-trunc -- safe
769
- var mathTrunc = Math.trunc || function trunc(x) {
770
- var n = +x;
771
- return (n > 0 ? floor$1 : ceil)(n);
772
- };
773
-
774
- var trunc = mathTrunc;
775
-
776
- // `ToIntegerOrInfinity` abstract operation
777
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
778
- var toIntegerOrInfinity$4 = function (argument) {
779
- var number = +argument;
780
- // eslint-disable-next-line no-self-compare -- NaN check
781
- return number !== number || number === 0 ? 0 : trunc(number);
782
- };
783
-
784
- var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
785
-
786
- var max$1 = Math.max;
787
- var min$2 = Math.min;
788
-
789
- // Helper for a popular repeating case of the spec:
790
- // Let integer be ? ToInteger(index).
791
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
792
- var toAbsoluteIndex$1 = function (index, length) {
793
- var integer = toIntegerOrInfinity$3(index);
794
- return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
795
- };
796
-
797
- var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
798
-
799
- var min$1 = Math.min;
800
-
801
- // `ToLength` abstract operation
802
- // https://tc39.es/ecma262/#sec-tolength
803
- var toLength$2 = function (argument) {
804
- var len = toIntegerOrInfinity$2(argument);
805
- return len > 0 ? min$1(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
806
- };
807
-
808
- var toLength$1 = toLength$2;
809
-
810
- // `LengthOfArrayLike` abstract operation
811
- // https://tc39.es/ecma262/#sec-lengthofarraylike
812
- var lengthOfArrayLike$3 = function (obj) {
813
- return toLength$1(obj.length);
814
- };
815
-
816
- var toIndexedObject$3 = toIndexedObject$5;
817
- var toAbsoluteIndex = toAbsoluteIndex$1;
818
- var lengthOfArrayLike$2 = lengthOfArrayLike$3;
819
-
820
- // `Array.prototype.{ indexOf, includes }` methods implementation
821
- var createMethod$2 = function (IS_INCLUDES) {
822
- return function ($this, el, fromIndex) {
823
- var O = toIndexedObject$3($this);
824
- var length = lengthOfArrayLike$2(O);
825
- if (length === 0) return !IS_INCLUDES && -1;
826
- var index = toAbsoluteIndex(fromIndex, length);
827
- var value;
828
- // Array#includes uses SameValueZero equality algorithm
829
- // eslint-disable-next-line no-self-compare -- NaN check
830
- if (IS_INCLUDES && el !== el) while (length > index) {
831
- value = O[index++];
832
- // eslint-disable-next-line no-self-compare -- NaN check
833
- if (value !== value) return true;
834
- // Array#indexOf ignores holes, Array#includes - not
835
- } else for (;length > index; index++) {
836
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
837
- } return !IS_INCLUDES && -1;
838
- };
839
- };
840
-
841
- var arrayIncludes = {
842
- // `Array.prototype.includes` method
843
- // https://tc39.es/ecma262/#sec-array.prototype.includes
844
- includes: createMethod$2(true),
845
- // `Array.prototype.indexOf` method
846
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
847
- indexOf: createMethod$2(false)
848
- };
849
-
850
- var uncurryThis$7 = functionUncurryThis;
851
- var hasOwn$3 = hasOwnProperty_1;
852
- var toIndexedObject$2 = toIndexedObject$5;
853
- var indexOf$1 = arrayIncludes.indexOf;
854
- var hiddenKeys$2 = hiddenKeys$4;
855
-
856
- var push$1 = uncurryThis$7([].push);
857
-
858
- var objectKeysInternal = function (object, names) {
859
- var O = toIndexedObject$2(object);
860
- var i = 0;
861
- var result = [];
862
- var key;
863
- for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push$1(result, key);
864
- // Don't enum bug & hidden keys
865
- while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
866
- ~indexOf$1(result, key) || push$1(result, key);
867
- }
868
- return result;
869
- };
870
-
871
- // IE8- don't enum bug keys
872
- var enumBugKeys$3 = [
873
- 'constructor',
874
- 'hasOwnProperty',
875
- 'isPrototypeOf',
876
- 'propertyIsEnumerable',
877
- 'toLocaleString',
878
- 'toString',
879
- 'valueOf'
880
- ];
881
-
882
- var internalObjectKeys$1 = objectKeysInternal;
883
- var enumBugKeys$2 = enumBugKeys$3;
884
-
885
- var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
886
-
887
- // `Object.getOwnPropertyNames` method
888
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
889
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
890
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
891
- return internalObjectKeys$1(O, hiddenKeys$1);
892
- };
893
-
894
- var objectGetOwnPropertySymbols = {};
895
-
896
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
897
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
898
-
899
- var getBuiltIn$1 = getBuiltIn$3;
900
- var uncurryThis$6 = functionUncurryThis;
901
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
902
- var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
903
- var anObject$5 = anObject$7;
904
-
905
- var concat$2 = uncurryThis$6([].concat);
906
-
907
- // all object keys, includes non-enumerable and symbols
908
- var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
909
- var keys = getOwnPropertyNamesModule.f(anObject$5(it));
910
- var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
911
- return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
912
- };
913
-
914
- var hasOwn$2 = hasOwnProperty_1;
915
- var ownKeys = ownKeys$1;
916
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
917
- var definePropertyModule$1 = objectDefineProperty;
918
-
919
- var copyConstructorProperties$1 = function (target, source, exceptions) {
920
- var keys = ownKeys(source);
921
- var defineProperty = definePropertyModule$1.f;
922
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
923
- for (var i = 0; i < keys.length; i++) {
924
- var key = keys[i];
925
- if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
926
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
927
- }
928
- }
929
- };
930
-
931
- var fails$a = fails$i;
932
- var isCallable$6 = isCallable$g;
933
-
934
- var replacement = /#|\.prototype\./;
935
-
936
- var isForced$1 = function (feature, detection) {
937
- var value = data[normalize(feature)];
938
- return value === POLYFILL ? true
939
- : value === NATIVE ? false
940
- : isCallable$6(detection) ? fails$a(detection)
941
- : !!detection;
942
- };
943
-
944
- var normalize = isForced$1.normalize = function (string) {
945
- return String(string).replace(replacement, '.').toLowerCase();
946
- };
947
-
948
- var data = isForced$1.data = {};
949
- var NATIVE = isForced$1.NATIVE = 'N';
950
- var POLYFILL = isForced$1.POLYFILL = 'P';
951
-
952
- var isForced_1 = isForced$1;
953
-
954
- var globalThis$6 = globalThis_1;
955
- var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
956
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
957
- var defineBuiltIn$3 = defineBuiltIn$4;
958
- var defineGlobalProperty = defineGlobalProperty$3;
959
- var copyConstructorProperties = copyConstructorProperties$1;
960
- var isForced = isForced_1;
961
-
962
- /*
963
- options.target - name of the target object
964
- options.global - target is the global object
965
- options.stat - export as static methods of target
966
- options.proto - export as prototype methods of target
967
- options.real - real prototype method for the `pure` version
968
- options.forced - export even if the native feature is available
969
- options.bind - bind methods to the target, required for the `pure` version
970
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
971
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
972
- options.sham - add a flag to not completely full polyfills
973
- options.enumerable - export as enumerable property
974
- options.dontCallGetSet - prevent calling a getter on target
975
- options.name - the .name of the function if it does not match the key
976
- */
977
- var _export = function (options, source) {
978
- var TARGET = options.target;
979
- var GLOBAL = options.global;
980
- var STATIC = options.stat;
981
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
982
- if (GLOBAL) {
983
- target = globalThis$6;
984
- } else if (STATIC) {
985
- target = globalThis$6[TARGET] || defineGlobalProperty(TARGET, {});
986
- } else {
987
- target = globalThis$6[TARGET] && globalThis$6[TARGET].prototype;
988
- }
989
- if (target) for (key in source) {
990
- sourceProperty = source[key];
991
- if (options.dontCallGetSet) {
992
- descriptor = getOwnPropertyDescriptor$1(target, key);
993
- targetProperty = descriptor && descriptor.value;
994
- } else targetProperty = target[key];
995
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
996
- // contained in target
997
- if (!FORCED && targetProperty !== undefined) {
998
- if (typeof sourceProperty == typeof targetProperty) continue;
999
- copyConstructorProperties(sourceProperty, targetProperty);
1000
- }
1001
- // add a flag to not completely full polyfills
1002
- if (options.sham || (targetProperty && targetProperty.sham)) {
1003
- createNonEnumerableProperty$3(sourceProperty, 'sham', true);
1004
- }
1005
- defineBuiltIn$3(target, key, sourceProperty, options);
1006
- }
1007
- };
1008
-
1009
- var aCallable$1 = aCallable$3;
1010
- var toObject$4 = toObject$6;
1011
- var IndexedObject$1 = indexedObject;
1012
- var lengthOfArrayLike$1 = lengthOfArrayLike$3;
1013
-
1014
- var $TypeError$4 = TypeError;
1015
-
1016
- var REDUCE_EMPTY = 'Reduce of empty array with no initial value';
1017
-
1018
- // `Array.prototype.{ reduce, reduceRight }` methods implementation
1019
- var createMethod$1 = function (IS_RIGHT) {
1020
- return function (that, callbackfn, argumentsLength, memo) {
1021
- var O = toObject$4(that);
1022
- var self = IndexedObject$1(O);
1023
- var length = lengthOfArrayLike$1(O);
1024
- aCallable$1(callbackfn);
1025
- if (length === 0 && argumentsLength < 2) throw new $TypeError$4(REDUCE_EMPTY);
1026
- var index = IS_RIGHT ? length - 1 : 0;
1027
- var i = IS_RIGHT ? -1 : 1;
1028
- if (argumentsLength < 2) while (true) {
1029
- if (index in self) {
1030
- memo = self[index];
1031
- index += i;
1032
- break;
1033
- }
1034
- index += i;
1035
- if (IS_RIGHT ? index < 0 : length <= index) {
1036
- throw new $TypeError$4(REDUCE_EMPTY);
1037
- }
1038
- }
1039
- for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
1040
- memo = callbackfn(memo, self[index], index, O);
1041
- }
1042
- return memo;
1043
- };
1044
- };
1045
-
1046
- var arrayReduce = {
1047
- // `Array.prototype.reduce` method
1048
- // https://tc39.es/ecma262/#sec-array.prototype.reduce
1049
- left: createMethod$1(false),
1050
- // `Array.prototype.reduceRight` method
1051
- // https://tc39.es/ecma262/#sec-array.prototype.reduceright
1052
- right: createMethod$1(true)
1053
- };
1054
-
1055
- var fails$9 = fails$i;
1056
-
1057
- var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
1058
- var method = [][METHOD_NAME];
1059
- return !!method && fails$9(function () {
1060
- // eslint-disable-next-line no-useless-call -- required for testing
1061
- method.call(null, argument || function () { return 1; }, 1);
1062
- });
1063
- };
1064
-
1065
- /* global Bun, Deno -- detection */
1066
- var globalThis$5 = globalThis_1;
1067
- var userAgent = environmentUserAgent;
1068
- var classof$4 = classofRaw$1;
1069
-
1070
- var userAgentStartsWith = function (string) {
1071
- return userAgent.slice(0, string.length) === string;
1072
- };
1073
-
1074
- var environment = (function () {
1075
- if (userAgentStartsWith('Bun/')) return 'BUN';
1076
- if (userAgentStartsWith('Cloudflare-Workers')) return 'CLOUDFLARE';
1077
- if (userAgentStartsWith('Deno/')) return 'DENO';
1078
- if (userAgentStartsWith('Node.js/')) return 'NODE';
1079
- if (globalThis$5.Bun && typeof Bun.version == 'string') return 'BUN';
1080
- if (globalThis$5.Deno && typeof Deno.version == 'object') return 'DENO';
1081
- if (classof$4(globalThis$5.process) === 'process') return 'NODE';
1082
- if (globalThis$5.window && globalThis$5.document) return 'BROWSER';
1083
- return 'REST';
1084
- })();
1085
-
1086
- var ENVIRONMENT = environment;
1087
-
1088
- var environmentIsNode = ENVIRONMENT === 'NODE';
1089
-
1090
- var $$4 = _export;
1091
- var $reduce = arrayReduce.left;
1092
- var arrayMethodIsStrict = arrayMethodIsStrict$1;
1093
- var CHROME_VERSION = environmentV8Version;
1094
- var IS_NODE = environmentIsNode;
1095
-
1096
- // Chrome 80-82 has a critical bug
1097
- // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
1098
- var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
1099
- var FORCED$1 = CHROME_BUG || !arrayMethodIsStrict('reduce');
1100
-
1101
- // `Array.prototype.reduce` method
1102
- // https://tc39.es/ecma262/#sec-array.prototype.reduce
1103
- $$4({ target: 'Array', proto: true, forced: FORCED$1 }, {
1104
- reduce: function reduce(callbackfn /* , initialValue */) {
1105
- var length = arguments.length;
1106
- return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
1107
- }
1108
- });
1109
-
1110
- var internalObjectKeys = objectKeysInternal;
1111
- var enumBugKeys$1 = enumBugKeys$3;
1112
-
1113
- // `Object.keys` method
1114
- // https://tc39.es/ecma262/#sec-object.keys
1115
- // eslint-disable-next-line es/no-object-keys -- safe
1116
- var objectKeys$2 = Object.keys || function keys(O) {
1117
- return internalObjectKeys(O, enumBugKeys$1);
1118
- };
1119
-
1120
- var DESCRIPTORS$3 = descriptors;
1121
- var uncurryThis$5 = functionUncurryThis;
1122
- var call$6 = functionCall;
1123
- var fails$8 = fails$i;
1124
- var objectKeys$1 = objectKeys$2;
1125
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1126
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1127
- var toObject$3 = toObject$6;
1128
- var IndexedObject = indexedObject;
1129
-
1130
- // eslint-disable-next-line es/no-object-assign -- safe
1131
- var $assign = Object.assign;
1132
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1133
- var defineProperty$3 = Object.defineProperty;
1134
- var concat$1 = uncurryThis$5([].concat);
1135
-
1136
- // `Object.assign` method
1137
- // https://tc39.es/ecma262/#sec-object.assign
1138
- var objectAssign = !$assign || fails$8(function () {
1139
- // should have correct order of operations (Edge bug)
1140
- if (DESCRIPTORS$3 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
1141
- enumerable: true,
1142
- get: function () {
1143
- defineProperty$3(this, 'b', {
1144
- value: 3,
1145
- enumerable: false
1146
- });
1147
- }
1148
- }), { b: 2 })).b !== 1) return true;
1149
- // should work with symbols and should have deterministic property order (V8 bug)
1150
- var A = {};
1151
- var B = {};
1152
- // eslint-disable-next-line es/no-symbol -- safe
1153
- var symbol = Symbol('assign detection');
1154
- var alphabet = 'abcdefghijklmnopqrst';
1155
- A[symbol] = 7;
1156
- alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1157
- return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
1158
- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1159
- var T = toObject$3(target);
1160
- var argumentsLength = arguments.length;
1161
- var index = 1;
1162
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1163
- var propertyIsEnumerable = propertyIsEnumerableModule.f;
1164
- while (argumentsLength > index) {
1165
- var S = IndexedObject(arguments[index++]);
1166
- var keys = getOwnPropertySymbols ? concat$1(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
1167
- var length = keys.length;
1168
- var j = 0;
1169
- var key;
1170
- while (length > j) {
1171
- key = keys[j++];
1172
- if (!DESCRIPTORS$3 || call$6(propertyIsEnumerable, S, key)) T[key] = S[key];
1173
- }
1174
- } return T;
1175
- } : $assign;
1176
-
1177
- var $$3 = _export;
1178
- var assign = objectAssign;
1179
-
1180
- // `Object.assign` method
1181
- // https://tc39.es/ecma262/#sec-object.assign
1182
- // eslint-disable-next-line es/no-object-assign -- required for testing
1183
- $$3({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1184
- assign: assign
1185
- });
1186
-
1187
- /******************************************************************************
1188
- Copyright (c) Microsoft Corporation.
1189
-
1190
- Permission to use, copy, modify, and/or distribute this software for any
1191
- purpose with or without fee is hereby granted.
1192
-
1193
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1194
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1195
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1196
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1197
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1198
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1199
- PERFORMANCE OF THIS SOFTWARE.
1200
- ***************************************************************************** */
1201
- /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
1202
-
1203
-
1204
- function __rest(s, e) {
1205
- var t = {};
1206
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1207
- t[p] = s[p];
1208
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
1209
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1210
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1211
- t[p[i]] = s[p[i]];
1212
- }
1213
- return t;
1214
- }
1215
-
1216
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1217
- var e = new Error(message);
1218
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1219
- };
1220
-
1221
- var objectDefineProperties = {};
1222
-
1223
- var DESCRIPTORS$2 = descriptors;
1224
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1225
- var definePropertyModule = objectDefineProperty;
1226
- var anObject$4 = anObject$7;
1227
- var toIndexedObject$1 = toIndexedObject$5;
1228
- var objectKeys = objectKeys$2;
1229
-
1230
- // `Object.defineProperties` method
1231
- // https://tc39.es/ecma262/#sec-object.defineproperties
1232
- // eslint-disable-next-line es/no-object-defineproperties -- safe
1233
- objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1234
- anObject$4(O);
1235
- var props = toIndexedObject$1(Properties);
1236
- var keys = objectKeys(Properties);
1237
- var length = keys.length;
1238
- var index = 0;
1239
- var key;
1240
- while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1241
- return O;
1242
- };
1243
-
1244
- var getBuiltIn = getBuiltIn$3;
1245
-
1246
- var html$1 = getBuiltIn('document', 'documentElement');
1247
-
1248
- /* global ActiveXObject -- old IE, WSH */
1249
- var anObject$3 = anObject$7;
1250
- var definePropertiesModule = objectDefineProperties;
1251
- var enumBugKeys = enumBugKeys$3;
1252
- var hiddenKeys = hiddenKeys$4;
1253
- var html = html$1;
1254
- var documentCreateElement$1 = documentCreateElement$2;
1255
- var sharedKey$1 = sharedKey$3;
1256
-
1257
- var GT = '>';
1258
- var LT = '<';
1259
- var PROTOTYPE = 'prototype';
1260
- var SCRIPT = 'script';
1261
- var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1262
-
1263
- var EmptyConstructor = function () { /* empty */ };
1264
-
1265
- var scriptTag = function (content) {
1266
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1267
- };
1268
-
1269
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1270
- var NullProtoObjectViaActiveX = function (activeXDocument) {
1271
- activeXDocument.write(scriptTag(''));
1272
- activeXDocument.close();
1273
- var temp = activeXDocument.parentWindow.Object;
1274
- // eslint-disable-next-line no-useless-assignment -- avoid memory leak
1275
- activeXDocument = null;
1276
- return temp;
1277
- };
1278
-
1279
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
1280
- var NullProtoObjectViaIFrame = function () {
1281
- // Thrash, waste and sodomy: IE GC bug
1282
- var iframe = documentCreateElement$1('iframe');
1283
- var JS = 'java' + SCRIPT + ':';
1284
- var iframeDocument;
1285
- iframe.style.display = 'none';
1286
- html.appendChild(iframe);
1287
- // https://github.com/zloirock/core-js/issues/475
1288
- iframe.src = String(JS);
1289
- iframeDocument = iframe.contentWindow.document;
1290
- iframeDocument.open();
1291
- iframeDocument.write(scriptTag('document.F=Object'));
1292
- iframeDocument.close();
1293
- return iframeDocument.F;
1294
- };
1295
-
1296
- // Check for document.domain and active x support
1297
- // No need to use active x approach when document.domain is not set
1298
- // see https://github.com/es-shims/es5-shim/issues/150
1299
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1300
- // avoid IE GC bug
1301
- var activeXDocument;
1302
- var NullProtoObject = function () {
1303
- try {
1304
- activeXDocument = new ActiveXObject('htmlfile');
1305
- } catch (error) { /* ignore */ }
1306
- NullProtoObject = typeof document != 'undefined'
1307
- ? document.domain && activeXDocument
1308
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1309
- : NullProtoObjectViaIFrame()
1310
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
1311
- var length = enumBugKeys.length;
1312
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1313
- return NullProtoObject();
1314
- };
1315
-
1316
- hiddenKeys[IE_PROTO$1] = true;
1317
-
1318
- // `Object.create` method
1319
- // https://tc39.es/ecma262/#sec-object.create
1320
- // eslint-disable-next-line es/no-object-create -- safe
1321
- var objectCreate = Object.create || function create(O, Properties) {
1322
- var result;
1323
- if (O !== null) {
1324
- EmptyConstructor[PROTOTYPE] = anObject$3(O);
1325
- result = new EmptyConstructor();
1326
- EmptyConstructor[PROTOTYPE] = null;
1327
- // add "__proto__" for Object.getPrototypeOf polyfill
1328
- result[IE_PROTO$1] = O;
1329
- } else result = NullProtoObject();
1330
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1331
- };
1332
-
1333
- var wellKnownSymbol$8 = wellKnownSymbol$a;
1334
- var create$2 = objectCreate;
1335
- var defineProperty$2 = objectDefineProperty.f;
1336
-
1337
- var UNSCOPABLES = wellKnownSymbol$8('unscopables');
1338
- var ArrayPrototype = Array.prototype;
1339
-
1340
- // Array.prototype[@@unscopables]
1341
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1342
- if (ArrayPrototype[UNSCOPABLES] === undefined) {
1343
- defineProperty$2(ArrayPrototype, UNSCOPABLES, {
1344
- configurable: true,
1345
- value: create$2(null)
1346
- });
1347
- }
1348
-
1349
- // add a key to Array.prototype[@@unscopables]
1350
- var addToUnscopables$1 = function (key) {
1351
- ArrayPrototype[UNSCOPABLES][key] = true;
1352
- };
1353
-
1354
- var iterators = {};
1355
-
1356
- var fails$7 = fails$i;
1357
-
1358
- var correctPrototypeGetter = !fails$7(function () {
1359
- function F() { /* empty */ }
1360
- F.prototype.constructor = null;
1361
- // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1362
- return Object.getPrototypeOf(new F()) !== F.prototype;
1363
- });
1364
-
1365
- var hasOwn$1 = hasOwnProperty_1;
1366
- var isCallable$5 = isCallable$g;
1367
- var toObject$2 = toObject$6;
1368
- var sharedKey = sharedKey$3;
1369
- var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1370
-
1371
- var IE_PROTO = sharedKey('IE_PROTO');
1372
- var $Object$1 = Object;
1373
- var ObjectPrototype = $Object$1.prototype;
1374
-
1375
- // `Object.getPrototypeOf` method
1376
- // https://tc39.es/ecma262/#sec-object.getprototypeof
1377
- // eslint-disable-next-line es/no-object-getprototypeof -- safe
1378
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1379
- var object = toObject$2(O);
1380
- if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
1381
- var constructor = object.constructor;
1382
- if (isCallable$5(constructor) && object instanceof constructor) {
1383
- return constructor.prototype;
1384
- } return object instanceof $Object$1 ? ObjectPrototype : null;
1385
- };
1386
-
1387
- var fails$6 = fails$i;
1388
- var isCallable$4 = isCallable$g;
1389
- var isObject$2 = isObject$8;
1390
- var getPrototypeOf$1 = objectGetPrototypeOf;
1391
- var defineBuiltIn$2 = defineBuiltIn$4;
1392
- var wellKnownSymbol$7 = wellKnownSymbol$a;
1393
-
1394
- var ITERATOR$2 = wellKnownSymbol$7('iterator');
1395
- var BUGGY_SAFARI_ITERATORS$1 = false;
1396
-
1397
- // `%IteratorPrototype%` object
1398
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1399
- var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1400
-
1401
- /* eslint-disable es/no-array-prototype-keys -- safe */
1402
- if ([].keys) {
1403
- arrayIterator = [].keys();
1404
- // Safari 8 has buggy iterators w/o `next`
1405
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1406
- else {
1407
- PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1408
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1409
- }
1410
- }
1411
-
1412
- var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$6(function () {
1413
- var test = {};
1414
- // FF44- legacy iterators case
1415
- return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
1416
- });
1417
-
1418
- if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1419
-
1420
- // `%IteratorPrototype%[@@iterator]()` method
1421
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1422
- if (!isCallable$4(IteratorPrototype$2[ITERATOR$2])) {
1423
- defineBuiltIn$2(IteratorPrototype$2, ITERATOR$2, function () {
1424
- return this;
1425
- });
1426
- }
1427
-
1428
- var iteratorsCore = {
1429
- IteratorPrototype: IteratorPrototype$2,
1430
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1431
- };
1432
-
1433
- var defineProperty$1 = objectDefineProperty.f;
1434
- var hasOwn = hasOwnProperty_1;
1435
- var wellKnownSymbol$6 = wellKnownSymbol$a;
1436
-
1437
- var TO_STRING_TAG$2 = wellKnownSymbol$6('toStringTag');
1438
-
1439
- var setToStringTag$3 = function (target, TAG, STATIC) {
1440
- if (target && !STATIC) target = target.prototype;
1441
- if (target && !hasOwn(target, TO_STRING_TAG$2)) {
1442
- defineProperty$1(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
1443
- }
1444
- };
1445
-
1446
- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1447
- var create$1 = objectCreate;
1448
- var createPropertyDescriptor = createPropertyDescriptor$3;
1449
- var setToStringTag$2 = setToStringTag$3;
1450
- var Iterators$2 = iterators;
1451
-
1452
- var returnThis$1 = function () { return this; };
1453
-
1454
- var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1455
- var TO_STRING_TAG = NAME + ' Iterator';
1456
- IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1457
- setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
1458
- Iterators$2[TO_STRING_TAG] = returnThis$1;
1459
- return IteratorConstructor;
1460
- };
1461
-
1462
- var uncurryThis$4 = functionUncurryThis;
1463
- var aCallable = aCallable$3;
1464
-
1465
- var functionUncurryThisAccessor = function (object, key, method) {
1466
- try {
1467
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1468
- return uncurryThis$4(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
1469
- } catch (error) { /* empty */ }
1470
- };
1471
-
1472
- var isObject$1 = isObject$8;
1473
-
1474
- var isPossiblePrototype$1 = function (argument) {
1475
- return isObject$1(argument) || argument === null;
1476
- };
1477
-
1478
- var isPossiblePrototype = isPossiblePrototype$1;
1479
-
1480
- var $String$1 = String;
1481
- var $TypeError$3 = TypeError;
1482
-
1483
- var aPossiblePrototype$1 = function (argument) {
1484
- if (isPossiblePrototype(argument)) return argument;
1485
- throw new $TypeError$3("Can't set " + $String$1(argument) + ' as a prototype');
1486
- };
1487
-
1488
- /* eslint-disable no-proto -- safe */
1489
- var uncurryThisAccessor = functionUncurryThisAccessor;
1490
- var isObject = isObject$8;
1491
- var requireObjectCoercible$2 = requireObjectCoercible$5;
1492
- var aPossiblePrototype = aPossiblePrototype$1;
1493
-
1494
- // `Object.setPrototypeOf` method
1495
- // https://tc39.es/ecma262/#sec-object.setprototypeof
1496
- // Works with __proto__ only. Old v8 can't work with null proto objects.
1497
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
1498
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1499
- var CORRECT_SETTER = false;
1500
- var test = {};
1501
- var setter;
1502
- try {
1503
- setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
1504
- setter(test, []);
1505
- CORRECT_SETTER = test instanceof Array;
1506
- } catch (error) { /* empty */ }
1507
- return function setPrototypeOf(O, proto) {
1508
- requireObjectCoercible$2(O);
1509
- aPossiblePrototype(proto);
1510
- if (!isObject(O)) return O;
1511
- if (CORRECT_SETTER) setter(O, proto);
1512
- else O.__proto__ = proto;
1513
- return O;
1514
- };
1515
- }() : undefined);
1516
-
1517
- var $$2 = _export;
1518
- var call$5 = functionCall;
1519
- var FunctionName = functionName;
1520
- var isCallable$3 = isCallable$g;
1521
- var createIteratorConstructor = iteratorCreateConstructor;
1522
- var getPrototypeOf = objectGetPrototypeOf;
1523
- var setPrototypeOf = objectSetPrototypeOf;
1524
- var setToStringTag$1 = setToStringTag$3;
1525
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
1526
- var defineBuiltIn$1 = defineBuiltIn$4;
1527
- var wellKnownSymbol$5 = wellKnownSymbol$a;
1528
- var Iterators$1 = iterators;
1529
- var IteratorsCore = iteratorsCore;
1530
-
1531
- var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1532
- var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1533
- var IteratorPrototype = IteratorsCore.IteratorPrototype;
1534
- var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1535
- var ITERATOR$1 = wellKnownSymbol$5('iterator');
1536
- var KEYS = 'keys';
1537
- var VALUES = 'values';
1538
- var ENTRIES = 'entries';
1539
-
1540
- var returnThis = function () { return this; };
1541
-
1542
- var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1543
- createIteratorConstructor(IteratorConstructor, NAME, next);
1544
-
1545
- var getIterationMethod = function (KIND) {
1546
- if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1547
- if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
1548
-
1549
- switch (KIND) {
1550
- case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1551
- case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1552
- case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1553
- }
1554
-
1555
- return function () { return new IteratorConstructor(this); };
1556
- };
1557
-
1558
- var TO_STRING_TAG = NAME + ' Iterator';
1559
- var INCORRECT_VALUES_NAME = false;
1560
- var IterablePrototype = Iterable.prototype;
1561
- var nativeIterator = IterablePrototype[ITERATOR$1]
1562
- || IterablePrototype['@@iterator']
1563
- || DEFAULT && IterablePrototype[DEFAULT];
1564
- var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1565
- var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1566
- var CurrentIteratorPrototype, methods, KEY;
1567
-
1568
- // fix native
1569
- if (anyNativeIterator) {
1570
- CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1571
- if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1572
- if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1573
- if (setPrototypeOf) {
1574
- setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1575
- } else if (!isCallable$3(CurrentIteratorPrototype[ITERATOR$1])) {
1576
- defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1577
- }
1578
- }
1579
- // Set @@toStringTag to native iterators
1580
- setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true);
1581
- }
1582
- }
1583
-
1584
- // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1585
- if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1586
- if (CONFIGURABLE_FUNCTION_NAME) {
1587
- createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
1588
- } else {
1589
- INCORRECT_VALUES_NAME = true;
1590
- defaultIterator = function values() { return call$5(nativeIterator, this); };
1591
- }
1592
- }
1593
-
1594
- // export additional methods
1595
- if (DEFAULT) {
1596
- methods = {
1597
- values: getIterationMethod(VALUES),
1598
- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1599
- entries: getIterationMethod(ENTRIES)
1600
- };
1601
- if (FORCED) for (KEY in methods) {
1602
- if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1603
- defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
1604
- }
1605
- } else $$2({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1606
- }
1607
-
1608
- // define iterator
1609
- if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
1610
- defineBuiltIn$1(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1611
- }
1612
- Iterators$1[NAME] = defaultIterator;
1613
-
1614
- return methods;
1615
- };
1616
-
1617
- // `CreateIterResultObject` abstract operation
1618
- // https://tc39.es/ecma262/#sec-createiterresultobject
1619
- var createIterResultObject$1 = function (value, done) {
1620
- return { value: value, done: done };
1621
- };
1622
-
1623
- var toIndexedObject = toIndexedObject$5;
1624
- var addToUnscopables = addToUnscopables$1;
1625
- var Iterators = iterators;
1626
- var InternalStateModule = internalState;
1627
- var defineProperty = objectDefineProperty.f;
1628
- var defineIterator = iteratorDefine;
1629
- var createIterResultObject = createIterResultObject$1;
1630
- var DESCRIPTORS$1 = descriptors;
1631
-
1632
- var ARRAY_ITERATOR = 'Array Iterator';
1633
- var setInternalState = InternalStateModule.set;
1634
- var getInternalState$1 = InternalStateModule.getterFor(ARRAY_ITERATOR);
1635
-
1636
- // `Array.prototype.entries` method
1637
- // https://tc39.es/ecma262/#sec-array.prototype.entries
1638
- // `Array.prototype.keys` method
1639
- // https://tc39.es/ecma262/#sec-array.prototype.keys
1640
- // `Array.prototype.values` method
1641
- // https://tc39.es/ecma262/#sec-array.prototype.values
1642
- // `Array.prototype[@@iterator]` method
1643
- // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
1644
- // `CreateArrayIterator` internal method
1645
- // https://tc39.es/ecma262/#sec-createarrayiterator
1646
- var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1647
- setInternalState(this, {
1648
- type: ARRAY_ITERATOR,
1649
- target: toIndexedObject(iterated), // target
1650
- index: 0, // next index
1651
- kind: kind // kind
1652
- });
1653
- // `%ArrayIteratorPrototype%.next` method
1654
- // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1655
- }, function () {
1656
- var state = getInternalState$1(this);
1657
- var target = state.target;
1658
- var index = state.index++;
1659
- if (!target || index >= target.length) {
1660
- state.target = null;
1661
- return createIterResultObject(undefined, true);
1662
- }
1663
- switch (state.kind) {
1664
- case 'keys': return createIterResultObject(index, false);
1665
- case 'values': return createIterResultObject(target[index], false);
1666
- } return createIterResultObject([index, target[index]], false);
1667
- }, 'values');
1668
-
1669
- // argumentsList[@@iterator] is %ArrayProto_values%
1670
- // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1671
- // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1672
- var values = Iterators.Arguments = Iterators.Array;
1673
-
1674
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1675
- addToUnscopables('keys');
1676
- addToUnscopables('values');
1677
- addToUnscopables('entries');
1678
-
1679
- // V8 ~ Chrome 45- bug
1680
- if (DESCRIPTORS$1 && values.name !== 'values') try {
1681
- defineProperty(values, 'name', { value: 'values' });
1682
- } catch (error) { /* empty */ }
1683
-
1684
- var classof$3 = classofRaw$1;
1685
-
1686
- // `IsArray` abstract operation
1687
- // https://tc39.es/ecma262/#sec-isarray
1688
- // eslint-disable-next-line es/no-array-isarray -- safe
1689
- var isArray$1 = Array.isArray || function isArray(argument) {
1690
- return classof$3(argument) === 'Array';
1691
- };
1692
-
1693
- var DESCRIPTORS = descriptors;
1694
- var isArray = isArray$1;
1695
-
1696
- var $TypeError$2 = TypeError;
1697
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1698
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1699
-
1700
- // Safari < 13 does not throw an error in this case
1701
- var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {
1702
- // makes no sense without proper strict mode support
1703
- if (this !== undefined) return true;
1704
- try {
1705
- // eslint-disable-next-line es/no-object-defineproperty -- safe
1706
- Object.defineProperty([], 'length', { writable: false }).length = 1;
1707
- } catch (error) {
1708
- return error instanceof TypeError;
1709
- }
1710
- }();
1711
-
1712
- var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
1713
- if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
1714
- throw new $TypeError$2('Cannot set read only .length');
1715
- } return O.length = length;
1716
- } : function (O, length) {
1717
- return O.length = length;
1718
- };
1719
-
1720
- var $TypeError$1 = TypeError;
1721
- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
1722
-
1723
- var doesNotExceedSafeInteger$1 = function (it) {
1724
- if (it > MAX_SAFE_INTEGER) throw $TypeError$1('Maximum allowed index exceeded');
1725
- return it;
1726
- };
1727
-
1728
- var $$1 = _export;
1729
- var toObject$1 = toObject$6;
1730
- var lengthOfArrayLike = lengthOfArrayLike$3;
1731
- var setArrayLength = arraySetLength;
1732
- var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
1733
- var fails$5 = fails$i;
1734
-
1735
- var INCORRECT_TO_LENGTH = fails$5(function () {
1736
- return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
1737
- });
1738
-
1739
- // V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
1740
- // https://bugs.chromium.org/p/v8/issues/detail?id=12681
1741
- var properErrorOnNonWritableLength = function () {
1742
- try {
1743
- // eslint-disable-next-line es/no-object-defineproperty -- safe
1744
- Object.defineProperty([], 'length', { writable: false }).push();
1745
- } catch (error) {
1746
- return error instanceof TypeError;
1747
- }
1748
- };
1749
-
1750
- var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
1751
-
1752
- // `Array.prototype.push` method
1753
- // https://tc39.es/ecma262/#sec-array.prototype.push
1754
- $$1({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
1755
- // eslint-disable-next-line no-unused-vars -- required for `.length`
1756
- push: function push(item) {
1757
- var O = toObject$1(this);
1758
- var len = lengthOfArrayLike(O);
1759
- var argCount = arguments.length;
1760
- doesNotExceedSafeInteger(len + argCount);
1761
- for (var i = 0; i < argCount; i++) {
1762
- O[len] = arguments[i];
1763
- len++;
1764
- }
1765
- setArrayLength(O, len);
1766
- return len;
1767
- }
1768
- });
1769
-
1770
- // iterable DOM collections
1771
- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1772
- var domIterables = {
1773
- CSSRuleList: 0,
1774
- CSSStyleDeclaration: 0,
1775
- CSSValueList: 0,
1776
- ClientRectList: 0,
1777
- DOMRectList: 0,
1778
- DOMStringList: 0,
1779
- DOMTokenList: 1,
1780
- DataTransferItemList: 0,
1781
- FileList: 0,
1782
- HTMLAllCollection: 0,
1783
- HTMLCollection: 0,
1784
- HTMLFormElement: 0,
1785
- HTMLSelectElement: 0,
1786
- MediaList: 0,
1787
- MimeTypeArray: 0,
1788
- NamedNodeMap: 0,
1789
- NodeList: 1,
1790
- PaintRequestList: 0,
1791
- Plugin: 0,
1792
- PluginArray: 0,
1793
- SVGLengthList: 0,
1794
- SVGNumberList: 0,
1795
- SVGPathSegList: 0,
1796
- SVGPointList: 0,
1797
- SVGStringList: 0,
1798
- SVGTransformList: 0,
1799
- SourceBufferList: 0,
1800
- StyleSheetList: 0,
1801
- TextTrackCueList: 0,
1802
- TextTrackList: 0,
1803
- TouchList: 0
1804
- };
1805
-
1806
- // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
1807
- var documentCreateElement = documentCreateElement$2;
1808
-
1809
- var classList = documentCreateElement('span').classList;
1810
- var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
1811
-
1812
- var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1813
-
1814
- var globalThis$4 = globalThis_1;
1815
- var DOMIterables = domIterables;
1816
- var DOMTokenListPrototype = domTokenListPrototype;
1817
- var ArrayIteratorMethods = es_array_iterator;
1818
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
1819
- var setToStringTag = setToStringTag$3;
1820
- var wellKnownSymbol$4 = wellKnownSymbol$a;
1821
-
1822
- var ITERATOR = wellKnownSymbol$4('iterator');
1823
- var ArrayValues = ArrayIteratorMethods.values;
1824
-
1825
- var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1826
- if (CollectionPrototype) {
1827
- // some Chrome versions have non-configurable methods on DOMTokenList
1828
- if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
1829
- createNonEnumerableProperty$1(CollectionPrototype, ITERATOR, ArrayValues);
1830
- } catch (error) {
1831
- CollectionPrototype[ITERATOR] = ArrayValues;
1832
- }
1833
- setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
1834
- if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1835
- // some Chrome versions have non-configurable methods on DOMTokenList
1836
- if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1837
- createNonEnumerableProperty$1(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1838
- } catch (error) {
1839
- CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
1840
- }
1841
- }
1842
- }
1843
- };
1844
-
1845
- for (var COLLECTION_NAME in DOMIterables) {
1846
- handlePrototype(globalThis$4[COLLECTION_NAME] && globalThis$4[COLLECTION_NAME].prototype, COLLECTION_NAME);
1847
- }
1848
-
1849
- handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1850
-
1851
- var wellKnownSymbol$3 = wellKnownSymbol$a;
1852
-
1853
- var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
1854
- var test = {};
1855
-
1856
- test[TO_STRING_TAG$1] = 'z';
1857
-
1858
- var toStringTagSupport = String(test) === '[object z]';
1859
-
1860
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1861
- var isCallable$2 = isCallable$g;
1862
- var classofRaw = classofRaw$1;
1863
- var wellKnownSymbol$2 = wellKnownSymbol$a;
1864
-
1865
- var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
1866
- var $Object = Object;
1867
-
1868
- // ES3 wrong here
1869
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
1870
-
1871
- // fallback for IE11 Script Access Denied error
1872
- var tryGet = function (it, key) {
1873
- try {
1874
- return it[key];
1875
- } catch (error) { /* empty */ }
1876
- };
1877
-
1878
- // getting tag from ES6+ `Object.prototype.toString`
1879
- var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1880
- var O, tag, result;
1881
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1882
- // @@toStringTag case
1883
- : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1884
- // builtinTag case
1885
- : CORRECT_ARGUMENTS ? classofRaw(O)
1886
- // ES3 arguments fallback
1887
- : (result = classofRaw(O)) === 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
1888
- };
1889
-
1890
- var classof$1 = classof$2;
1891
-
1892
- var $String = String;
1893
-
1894
- var toString$3 = function (argument) {
1895
- if (classof$1(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1896
- return $String(argument);
1897
- };
1898
-
1899
- var anObject$2 = anObject$7;
1900
-
1901
- // `RegExp.prototype.flags` getter implementation
1902
- // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1903
- var regexpFlags$1 = function () {
1904
- var that = anObject$2(this);
1905
- var result = '';
1906
- if (that.hasIndices) result += 'd';
1907
- if (that.global) result += 'g';
1908
- if (that.ignoreCase) result += 'i';
1909
- if (that.multiline) result += 'm';
1910
- if (that.dotAll) result += 's';
1911
- if (that.unicode) result += 'u';
1912
- if (that.unicodeSets) result += 'v';
1913
- if (that.sticky) result += 'y';
1914
- return result;
1915
- };
1916
-
1917
- var fails$4 = fails$i;
1918
- var globalThis$3 = globalThis_1;
1919
-
1920
- // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1921
- var $RegExp$2 = globalThis$3.RegExp;
1922
-
1923
- var UNSUPPORTED_Y$1 = fails$4(function () {
1924
- var re = $RegExp$2('a', 'y');
1925
- re.lastIndex = 2;
1926
- return re.exec('abcd') !== null;
1927
- });
1928
-
1929
- // UC Browser bug
1930
- // https://github.com/zloirock/core-js/issues/1008
1931
- var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$4(function () {
1932
- return !$RegExp$2('a', 'y').sticky;
1933
- });
1934
-
1935
- var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$4(function () {
1936
- // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1937
- var re = $RegExp$2('^r', 'gy');
1938
- re.lastIndex = 2;
1939
- return re.exec('str') !== null;
1940
- });
1941
-
1942
- var regexpStickyHelpers = {
1943
- BROKEN_CARET: BROKEN_CARET,
1944
- MISSED_STICKY: MISSED_STICKY,
1945
- UNSUPPORTED_Y: UNSUPPORTED_Y$1
1946
- };
1947
-
1948
- var fails$3 = fails$i;
1949
- var globalThis$2 = globalThis_1;
1950
-
1951
- // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1952
- var $RegExp$1 = globalThis$2.RegExp;
1953
-
1954
- var regexpUnsupportedDotAll = fails$3(function () {
1955
- var re = $RegExp$1('.', 's');
1956
- return !(re.dotAll && re.test('\n') && re.flags === 's');
1957
- });
1958
-
1959
- var fails$2 = fails$i;
1960
- var globalThis$1 = globalThis_1;
1961
-
1962
- // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1963
- var $RegExp = globalThis$1.RegExp;
1964
-
1965
- var regexpUnsupportedNcg = fails$2(function () {
1966
- var re = $RegExp('(?<a>b)', 'g');
1967
- return re.exec('b').groups.a !== 'b' ||
1968
- 'b'.replace(re, '$<a>c') !== 'bc';
1969
- });
1970
-
1971
- /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
1972
- /* eslint-disable regexp/no-useless-quantifier -- testing */
1973
- var call$4 = functionCall;
1974
- var uncurryThis$3 = functionUncurryThis;
1975
- var toString$2 = toString$3;
1976
- var regexpFlags = regexpFlags$1;
1977
- var stickyHelpers = regexpStickyHelpers;
1978
- var shared = shared$4;
1979
- var create = objectCreate;
1980
- var getInternalState = internalState.get;
1981
- var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
1982
- var UNSUPPORTED_NCG = regexpUnsupportedNcg;
1983
-
1984
- var nativeReplace = shared('native-string-replace', String.prototype.replace);
1985
- var nativeExec = RegExp.prototype.exec;
1986
- var patchedExec = nativeExec;
1987
- var charAt$3 = uncurryThis$3(''.charAt);
1988
- var indexOf = uncurryThis$3(''.indexOf);
1989
- var replace$1 = uncurryThis$3(''.replace);
1990
- var stringSlice$3 = uncurryThis$3(''.slice);
1991
-
1992
- var UPDATES_LAST_INDEX_WRONG = (function () {
1993
- var re1 = /a/;
1994
- var re2 = /b*/g;
1995
- call$4(nativeExec, re1, 'a');
1996
- call$4(nativeExec, re2, 'a');
1997
- return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1998
- })();
1999
-
2000
- var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
2001
-
2002
- // nonparticipating capturing group, copied from es5-shim's String#split patch.
2003
- var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
2004
-
2005
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
2006
-
2007
- if (PATCH) {
2008
- patchedExec = function exec(string) {
2009
- var re = this;
2010
- var state = getInternalState(re);
2011
- var str = toString$2(string);
2012
- var raw = state.raw;
2013
- var result, reCopy, lastIndex, match, i, object, group;
2014
-
2015
- if (raw) {
2016
- raw.lastIndex = re.lastIndex;
2017
- result = call$4(patchedExec, raw, str);
2018
- re.lastIndex = raw.lastIndex;
2019
- return result;
2020
- }
2021
-
2022
- var groups = state.groups;
2023
- var sticky = UNSUPPORTED_Y && re.sticky;
2024
- var flags = call$4(regexpFlags, re);
2025
- var source = re.source;
2026
- var charsAdded = 0;
2027
- var strCopy = str;
2028
-
2029
- if (sticky) {
2030
- flags = replace$1(flags, 'y', '');
2031
- if (indexOf(flags, 'g') === -1) {
2032
- flags += 'g';
2033
- }
2034
-
2035
- strCopy = stringSlice$3(str, re.lastIndex);
2036
- // Support anchored sticky behavior.
2037
- if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
2038
- source = '(?: ' + source + ')';
2039
- strCopy = ' ' + strCopy;
2040
- charsAdded++;
2041
- }
2042
- // ^(? + rx + ) is needed, in combination with some str slicing, to
2043
- // simulate the 'y' flag.
2044
- reCopy = new RegExp('^(?:' + source + ')', flags);
2045
- }
2046
-
2047
- if (NPCG_INCLUDED) {
2048
- reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
2049
- }
2050
- if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
2051
-
2052
- match = call$4(nativeExec, sticky ? reCopy : re, strCopy);
2053
-
2054
- if (sticky) {
2055
- if (match) {
2056
- match.input = stringSlice$3(match.input, charsAdded);
2057
- match[0] = stringSlice$3(match[0], charsAdded);
2058
- match.index = re.lastIndex;
2059
- re.lastIndex += match[0].length;
2060
- } else re.lastIndex = 0;
2061
- } else if (UPDATES_LAST_INDEX_WRONG && match) {
2062
- re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
2063
- }
2064
- if (NPCG_INCLUDED && match && match.length > 1) {
2065
- // Fix browsers whose `exec` methods don't consistently return `undefined`
2066
- // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
2067
- call$4(nativeReplace, match[0], reCopy, function () {
2068
- for (i = 1; i < arguments.length - 2; i++) {
2069
- if (arguments[i] === undefined) match[i] = undefined;
2070
- }
2071
- });
2072
- }
2073
-
2074
- if (match && groups) {
2075
- match.groups = object = create(null);
2076
- for (i = 0; i < groups.length; i++) {
2077
- group = groups[i];
2078
- object[group[0]] = match[group[1]];
2079
- }
2080
- }
2081
-
2082
- return match;
2083
- };
2084
- }
2085
-
2086
- var regexpExec$2 = patchedExec;
2087
-
2088
- var $ = _export;
2089
- var exec = regexpExec$2;
2090
-
2091
- // `RegExp.prototype.exec` method
2092
- // https://tc39.es/ecma262/#sec-regexp.prototype.exec
2093
- $({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
2094
- exec: exec
2095
- });
2096
-
2097
- var NATIVE_BIND = functionBindNative;
2098
-
2099
- var FunctionPrototype = Function.prototype;
2100
- var apply$1 = FunctionPrototype.apply;
2101
- var call$3 = FunctionPrototype.call;
2102
-
2103
- // eslint-disable-next-line es/no-reflect -- safe
2104
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$3.bind(apply$1) : function () {
2105
- return call$3.apply(apply$1, arguments);
2106
- });
2107
-
2108
- // TODO: Remove from `core-js@4` since it's moved to entry points
2109
-
2110
- var call$2 = functionCall;
2111
- var defineBuiltIn = defineBuiltIn$4;
2112
- var regexpExec$1 = regexpExec$2;
2113
- var fails$1 = fails$i;
2114
- var wellKnownSymbol$1 = wellKnownSymbol$a;
2115
- var createNonEnumerableProperty = createNonEnumerableProperty$5;
2116
-
2117
- var SPECIES = wellKnownSymbol$1('species');
2118
- var RegExpPrototype = RegExp.prototype;
2119
-
2120
- var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2121
- var SYMBOL = wellKnownSymbol$1(KEY);
2122
-
2123
- var DELEGATES_TO_SYMBOL = !fails$1(function () {
2124
- // String methods call symbol-named RegExp methods
2125
- var O = {};
2126
- O[SYMBOL] = function () { return 7; };
2127
- return ''[KEY](O) !== 7;
2128
- });
2129
-
2130
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
2131
- // Symbol-named RegExp methods call .exec
2132
- var execCalled = false;
2133
- var re = /a/;
2134
-
2135
- if (KEY === 'split') {
2136
- // We can't use real regex here since it causes deoptimization
2137
- // and serious performance degradation in V8
2138
- // https://github.com/zloirock/core-js/issues/306
2139
- re = {};
2140
- // RegExp[@@split] doesn't call the regex's exec method, but first creates
2141
- // a new one. We need to return the patched regex when creating the new one.
2142
- re.constructor = {};
2143
- re.constructor[SPECIES] = function () { return re; };
2144
- re.flags = '';
2145
- re[SYMBOL] = /./[SYMBOL];
2146
- }
2147
-
2148
- re.exec = function () {
2149
- execCalled = true;
2150
- return null;
2151
- };
2152
-
2153
- re[SYMBOL]('');
2154
- return !execCalled;
2155
- });
2156
-
2157
- if (
2158
- !DELEGATES_TO_SYMBOL ||
2159
- !DELEGATES_TO_EXEC ||
2160
- FORCED
2161
- ) {
2162
- var nativeRegExpMethod = /./[SYMBOL];
2163
- var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
2164
- var $exec = regexp.exec;
2165
- if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
2166
- if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
2167
- // The native String method already delegates to @@method (this
2168
- // polyfilled function), leasing to infinite recursion.
2169
- // We avoid it by directly calling the native @@method method.
2170
- return { done: true, value: call$2(nativeRegExpMethod, regexp, str, arg2) };
2171
- }
2172
- return { done: true, value: call$2(nativeMethod, str, regexp, arg2) };
2173
- }
2174
- return { done: false };
2175
- });
2176
-
2177
- defineBuiltIn(String.prototype, KEY, methods[0]);
2178
- defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
2179
- }
2180
-
2181
- if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
2182
- };
2183
-
2184
- var uncurryThis$2 = functionUncurryThis;
2185
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
2186
- var toString$1 = toString$3;
2187
- var requireObjectCoercible$1 = requireObjectCoercible$5;
2188
-
2189
- var charAt$2 = uncurryThis$2(''.charAt);
2190
- var charCodeAt = uncurryThis$2(''.charCodeAt);
2191
- var stringSlice$2 = uncurryThis$2(''.slice);
2192
-
2193
- var createMethod = function (CONVERT_TO_STRING) {
2194
- return function ($this, pos) {
2195
- var S = toString$1(requireObjectCoercible$1($this));
2196
- var position = toIntegerOrInfinity$1(pos);
2197
- var size = S.length;
2198
- var first, second;
2199
- if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
2200
- first = charCodeAt(S, position);
2201
- return first < 0xD800 || first > 0xDBFF || position + 1 === size
2202
- || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
2203
- ? CONVERT_TO_STRING
2204
- ? charAt$2(S, position)
2205
- : first
2206
- : CONVERT_TO_STRING
2207
- ? stringSlice$2(S, position, position + 2)
2208
- : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
2209
- };
2210
- };
2211
-
2212
- var stringMultibyte = {
2213
- // `String.prototype.codePointAt` method
2214
- // https://tc39.es/ecma262/#sec-string.prototype.codepointat
2215
- codeAt: createMethod(false),
2216
- // `String.prototype.at` method
2217
- // https://github.com/mathiasbynens/String.prototype.at
2218
- charAt: createMethod(true)
2219
- };
2220
-
2221
- var charAt$1 = stringMultibyte.charAt;
2222
-
2223
- // `AdvanceStringIndex` abstract operation
2224
- // https://tc39.es/ecma262/#sec-advancestringindex
2225
- var advanceStringIndex$1 = function (S, index, unicode) {
2226
- return index + (unicode ? charAt$1(S, index).length : 1);
2227
- };
2228
-
2229
- var uncurryThis$1 = functionUncurryThis;
2230
- var toObject = toObject$6;
2231
-
2232
- var floor = Math.floor;
2233
- var charAt = uncurryThis$1(''.charAt);
2234
- var replace = uncurryThis$1(''.replace);
2235
- var stringSlice$1 = uncurryThis$1(''.slice);
2236
- // eslint-disable-next-line redos/no-vulnerable -- safe
2237
- var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
2238
- var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
2239
-
2240
- // `GetSubstitution` abstract operation
2241
- // https://tc39.es/ecma262/#sec-getsubstitution
2242
- var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
2243
- var tailPos = position + matched.length;
2244
- var m = captures.length;
2245
- var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
2246
- if (namedCaptures !== undefined) {
2247
- namedCaptures = toObject(namedCaptures);
2248
- symbols = SUBSTITUTION_SYMBOLS;
2249
- }
2250
- return replace(replacement, symbols, function (match, ch) {
2251
- var capture;
2252
- switch (charAt(ch, 0)) {
2253
- case '$': return '$';
2254
- case '&': return matched;
2255
- case '`': return stringSlice$1(str, 0, position);
2256
- case "'": return stringSlice$1(str, tailPos);
2257
- case '<':
2258
- capture = namedCaptures[stringSlice$1(ch, 1, -1)];
2259
- break;
2260
- default: // \d\d?
2261
- var n = +ch;
2262
- if (n === 0) return match;
2263
- if (n > m) {
2264
- var f = floor(n / 10);
2265
- if (f === 0) return match;
2266
- if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
2267
- return match;
2268
- }
2269
- capture = captures[n - 1];
2270
- }
2271
- return capture === undefined ? '' : capture;
2272
- });
2273
- };
2274
-
2275
- var call$1 = functionCall;
2276
- var anObject$1 = anObject$7;
2277
- var isCallable$1 = isCallable$g;
2278
- var classof = classofRaw$1;
2279
- var regexpExec = regexpExec$2;
2280
-
2281
- var $TypeError = TypeError;
2282
-
2283
- // `RegExpExec` abstract operation
2284
- // https://tc39.es/ecma262/#sec-regexpexec
2285
- var regexpExecAbstract = function (R, S) {
2286
- var exec = R.exec;
2287
- if (isCallable$1(exec)) {
2288
- var result = call$1(exec, R, S);
2289
- if (result !== null) anObject$1(result);
2290
- return result;
2291
- }
2292
- if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
2293
- throw new $TypeError('RegExp#exec called on incompatible receiver');
2294
- };
2295
-
2296
- var apply = functionApply;
2297
- var call = functionCall;
2298
- var uncurryThis = functionUncurryThis;
2299
- var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
2300
- var fails = fails$i;
2301
- var anObject = anObject$7;
2302
- var isCallable = isCallable$g;
2303
- var isNullOrUndefined = isNullOrUndefined$3;
2304
- var toIntegerOrInfinity = toIntegerOrInfinity$4;
2305
- var toLength = toLength$2;
2306
- var toString = toString$3;
2307
- var requireObjectCoercible = requireObjectCoercible$5;
2308
- var advanceStringIndex = advanceStringIndex$1;
2309
- var getMethod = getMethod$2;
2310
- var getSubstitution = getSubstitution$1;
2311
- var regExpExec = regexpExecAbstract;
2312
- var wellKnownSymbol = wellKnownSymbol$a;
2313
-
2314
- var REPLACE = wellKnownSymbol('replace');
2315
- var max = Math.max;
2316
- var min = Math.min;
2317
- var concat = uncurryThis([].concat);
2318
- var push = uncurryThis([].push);
2319
- var stringIndexOf = uncurryThis(''.indexOf);
2320
- var stringSlice = uncurryThis(''.slice);
2321
-
2322
- var maybeToString = function (it) {
2323
- return it === undefined ? it : String(it);
2324
- };
2325
-
2326
- // IE <= 11 replaces $0 with the whole match, as if it was $&
2327
- // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
2328
- var REPLACE_KEEPS_$0 = (function () {
2329
- // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
2330
- return 'a'.replace(/./, '$0') === '$0';
2331
- })();
2332
-
2333
- // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
2334
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
2335
- if (/./[REPLACE]) {
2336
- return /./[REPLACE]('a', '$0') === '';
2337
- }
2338
- return false;
2339
- })();
2340
-
2341
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
2342
- var re = /./;
2343
- re.exec = function () {
2344
- var result = [];
2345
- result.groups = { a: '7' };
2346
- return result;
2347
- };
2348
- // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
2349
- return ''.replace(re, '$<a>') !== '7';
2350
- });
2351
-
2352
- // @@replace logic
2353
- fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
2354
- var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
2355
-
2356
- return [
2357
- // `String.prototype.replace` method
2358
- // https://tc39.es/ecma262/#sec-string.prototype.replace
2359
- function replace(searchValue, replaceValue) {
2360
- var O = requireObjectCoercible(this);
2361
- var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
2362
- return replacer
2363
- ? call(replacer, searchValue, O, replaceValue)
2364
- : call(nativeReplace, toString(O), searchValue, replaceValue);
2365
- },
2366
- // `RegExp.prototype[@@replace]` method
2367
- // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
2368
- function (string, replaceValue) {
2369
- var rx = anObject(this);
2370
- var S = toString(string);
2371
-
2372
- if (
2373
- typeof replaceValue == 'string' &&
2374
- stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
2375
- stringIndexOf(replaceValue, '$<') === -1
2376
- ) {
2377
- var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
2378
- if (res.done) return res.value;
2379
- }
2380
-
2381
- var functionalReplace = isCallable(replaceValue);
2382
- if (!functionalReplace) replaceValue = toString(replaceValue);
2383
-
2384
- var global = rx.global;
2385
- var fullUnicode;
2386
- if (global) {
2387
- fullUnicode = rx.unicode;
2388
- rx.lastIndex = 0;
2389
- }
2390
-
2391
- var results = [];
2392
- var result;
2393
- while (true) {
2394
- result = regExpExec(rx, S);
2395
- if (result === null) break;
2396
-
2397
- push(results, result);
2398
- if (!global) break;
2399
-
2400
- var matchStr = toString(result[0]);
2401
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
2402
- }
2403
-
2404
- var accumulatedResult = '';
2405
- var nextSourcePosition = 0;
2406
- for (var i = 0; i < results.length; i++) {
2407
- result = results[i];
2408
-
2409
- var matched = toString(result[0]);
2410
- var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
2411
- var captures = [];
2412
- var replacement;
2413
- // NOTE: This is equivalent to
2414
- // captures = result.slice(1).map(maybeToString)
2415
- // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
2416
- // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
2417
- // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
2418
- for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
2419
- var namedCaptures = result.groups;
2420
- if (functionalReplace) {
2421
- var replacerArgs = concat([matched], captures, position, S);
2422
- if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
2423
- replacement = toString(apply(replaceValue, undefined, replacerArgs));
2424
- } else {
2425
- replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
2426
- }
2427
- if (position >= nextSourcePosition) {
2428
- accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
2429
- nextSourcePosition = position + matched.length;
2430
- }
2431
- }
2432
-
2433
- return accumulatedResult + stringSlice(S, nextSourcePosition);
2434
- }
2435
- ];
2436
- }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
2437
-
2438
- const dashToPascalCase = str => str.toLowerCase().split('-').map(segment => segment.charAt(0).toUpperCase() + segment.slice(1)).join('');
2439
- const camelToDashCase = str => str.replace(/([A-Z])/g, m => `-${m[0].toLowerCase()}`);
2440
-
2441
- const attachProps = (node, newProps, oldProps = {}) => {
2442
- // some test frameworks don't render DOM elements, so we test here to make sure we are dealing with DOM first
2443
- if (node instanceof Element) {
2444
- // add any classes in className to the class list
2445
- const className = getClassName(node.classList, newProps, oldProps);
2446
- if (className !== '') {
2447
- node.className = className;
2448
- }
2449
- Object.keys(newProps).forEach(name => {
2450
- if (name === 'children' || name === 'style' || name === 'ref' || name === 'class' || name === 'className' || name === 'forwardedRef') {
2451
- return;
2452
- }
2453
- if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
2454
- const eventName = name.substring(2);
2455
- const eventNameLc = eventName[0].toLowerCase() + eventName.substring(1);
2456
- if (!isCoveredByReact(eventNameLc)) {
2457
- syncEvent(node, eventNameLc, newProps[name]);
2458
- }
2459
- } else {
2460
- node[name] = newProps[name];
2461
- const propType = typeof newProps[name];
2462
- if (propType === 'string') {
2463
- node.setAttribute(camelToDashCase(name), newProps[name]);
2464
- }
2465
- }
2466
- });
2467
- }
2468
- };
2469
- const getClassName = (classList, newProps, oldProps) => {
2470
- const newClassProp = newProps.className || newProps.class;
2471
- const oldClassProp = oldProps.className || oldProps.class;
2472
- // map the classes to Maps for performance
2473
- const currentClasses = arrayToMap(classList);
2474
- const incomingPropClasses = arrayToMap(newClassProp ? newClassProp.split(' ') : []);
2475
- const oldPropClasses = arrayToMap(oldClassProp ? oldClassProp.split(' ') : []);
2476
- const finalClassNames = [];
2477
- // loop through each of the current classes on the component
2478
- // to see if it should be a part of the classNames added
2479
- currentClasses.forEach(currentClass => {
2480
- if (incomingPropClasses.has(currentClass)) {
2481
- // add it as its already included in classnames coming in from newProps
2482
- finalClassNames.push(currentClass);
2483
- incomingPropClasses.delete(currentClass);
2484
- } else if (!oldPropClasses.has(currentClass)) {
2485
- // add it as it has NOT been removed by user
2486
- finalClassNames.push(currentClass);
2487
- }
2488
- });
2489
- incomingPropClasses.forEach(s => finalClassNames.push(s));
2490
- return finalClassNames.join(' ');
2491
- };
2492
- /**
2493
- * Transforms a React event name to a browser event name.
2494
- */
2495
- const transformReactEventName = eventNameSuffix => {
2496
- switch (eventNameSuffix) {
2497
- case 'doubleclick':
2498
- return 'dblclick';
2499
- }
2500
- return eventNameSuffix;
2501
- };
2502
- /**
2503
- * Checks if an event is supported in the current execution environment.
2504
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
2505
- */
2506
- const isCoveredByReact = eventNameSuffix => {
2507
- if (typeof document === 'undefined') {
2508
- return true;
2509
- } else {
2510
- const eventName = 'on' + transformReactEventName(eventNameSuffix);
2511
- let isSupported = eventName in document;
2512
- if (!isSupported) {
2513
- const element = document.createElement('div');
2514
- element.setAttribute(eventName, 'return;');
2515
- isSupported = typeof element[eventName] === 'function';
2516
- }
2517
- return isSupported;
2518
- }
2519
- };
2520
- const syncEvent = (node, eventName, newEventHandler) => {
2521
- const eventStore = node.__events || (node.__events = {});
2522
- const oldEventHandler = eventStore[eventName];
2523
- // Remove old listener so they don't double up.
2524
- if (oldEventHandler) {
2525
- node.removeEventListener(eventName, oldEventHandler);
2526
- }
2527
- // Bind new listener.
2528
- node.addEventListener(eventName, eventStore[eventName] = function handler(e) {
2529
- if (newEventHandler) {
2530
- newEventHandler.call(this, e);
2531
- }
2532
- });
2533
- };
2534
- const arrayToMap = arr => {
2535
- const map = new Map();
2536
- arr.forEach(s => map.set(s, s));
2537
- return map;
2538
- };
2539
-
2540
- const setRef = (ref, value) => {
2541
- if (typeof ref === 'function') {
2542
- ref(value);
2543
- } else if (ref != null) {
2544
- // Cast as a MutableRef so we can assign current
2545
- ref.current = value;
2546
- }
2547
- };
2548
- const mergeRefs = (...refs) => {
2549
- return value => {
2550
- refs.forEach(ref => {
2551
- setRef(ref, value);
2552
- });
2553
- };
2554
- };
2555
- const createForwardRef = (ReactComponent, displayName) => {
2556
- const forwardRef = (props, ref) => {
2557
- return jsx(ReactComponent, Object.assign({}, props, {
2558
- forwardedRef: ref
2559
- }));
2560
- };
2561
- forwardRef.displayName = displayName;
2562
- return /*#__PURE__*/React.forwardRef(forwardRef);
2563
- };
2564
-
2565
- const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFunction, defineCustomElement) => {
2566
- const displayName = dashToPascalCase(tagName);
2567
- const ReactComponent = class extends React.Component {
2568
- constructor(props) {
2569
- super(props);
2570
- this.setComponentElRef = element => {
2571
- this.componentEl = element;
2572
- };
2573
- }
2574
- componentDidMount() {
2575
- this.componentDidUpdate(this.props);
2576
- }
2577
- componentDidUpdate(prevProps) {
2578
- attachProps(this.componentEl, this.props, prevProps);
2579
- }
2580
- render() {
2581
- const _a = this.props,
2582
- {
2583
- children,
2584
- forwardedRef,
2585
- style,
2586
- className,
2587
- ref
2588
- } = _a,
2589
- cProps = __rest(_a, ["children", "forwardedRef", "style", "className", "ref"]);
2590
- let propsToPass = Object.keys(cProps).reduce((acc, name) => {
2591
- const value = cProps[name];
2592
- if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
2593
- const eventName = name.substring(2).toLowerCase();
2594
- if (typeof document !== 'undefined' && isCoveredByReact(eventName)) {
2595
- acc[name] = value;
2596
- }
2597
- } else {
2598
- // we should only render strings, booleans, and numbers as attrs in html.
2599
- // objects, functions, arrays etc get synced via properties on mount.
2600
- const type = typeof value;
2601
- if (type === 'string' || type === 'boolean' || type === 'number') {
2602
- acc[camelToDashCase(name)] = value;
2603
- }
2604
- }
2605
- return acc;
2606
- }, {});
2607
- const newProps = Object.assign(Object.assign({}, propsToPass), {
2608
- ref: mergeRefs(forwardedRef, this.setComponentElRef),
2609
- style
2610
- });
2611
- /**
2612
- * We use createElement here instead of
2613
- * React.createElement to work around a
2614
- * bug in Vite (https://github.com/vitejs/vite/issues/6104).
2615
- * React.createElement causes all elements to be rendered
2616
- * as <tagname> instead of the actual Web Component.
2617
- */
2618
- return /*#__PURE__*/createElement$1(tagName, newProps, children);
2619
- }
2620
- static get displayName() {
2621
- return displayName;
2622
- }
2623
- };
2624
- return createForwardRef(ReactComponent, displayName);
2625
- };
2626
-
2627
- /* eslint-disable */
2628
- /* tslint:disable */
2629
- /* auto-generated react proxies */
2630
- defineCustomElements();
2631
- const EdsAccordion = /*@__PURE__*/createReactComponent('eds-accordion');
2632
- const EdsAlert = /*@__PURE__*/createReactComponent('eds-alert');
2633
- const EdsAvatar = /*@__PURE__*/createReactComponent('eds-avatar');
2634
- const EdsBlockBreak = /*@__PURE__*/createReactComponent('eds-block-break');
2635
- const EdsBreadcrumb = /*@__PURE__*/createReactComponent('eds-breadcrumb');
2636
- const EdsButton = /*@__PURE__*/createReactComponent('eds-button');
2637
- const EdsCardDesc = /*@__PURE__*/createReactComponent('eds-card-desc');
2638
- const EdsCardGeneric = /*@__PURE__*/createReactComponent('eds-card-generic');
2639
- const EdsCardSection = /*@__PURE__*/createReactComponent('eds-card-section');
2640
- const EdsCodeBlock = /*@__PURE__*/createReactComponent('eds-code-block');
2641
- const EdsDropdown = /*@__PURE__*/createReactComponent('eds-dropdown');
2642
- const EdsFooter = /*@__PURE__*/createReactComponent('eds-footer');
2643
- const EdsForm = /*@__PURE__*/createReactComponent('eds-form');
2644
- const EdsFrame = /*@__PURE__*/createReactComponent('eds-frame');
2645
- const EdsFullscreenMenu = /*@__PURE__*/createReactComponent('eds-fullscreen-menu');
2646
- const EdsHeader = /*@__PURE__*/createReactComponent('eds-header');
2647
- const EdsIconWrapper = /*@__PURE__*/createReactComponent('eds-icon-wrapper');
2648
- const EdsImg = /*@__PURE__*/createReactComponent('eds-img');
2649
- const EdsInputField = /*@__PURE__*/createReactComponent('eds-input-field');
2650
- const EdsLink = /*@__PURE__*/createReactComponent('eds-link');
2651
- const EdsLogin = /*@__PURE__*/createReactComponent('eds-login');
2652
- const EdsLogo = /*@__PURE__*/createReactComponent('eds-logo');
2653
- const EdsMatomoNotice = /*@__PURE__*/createReactComponent('eds-matomo-notice');
2654
- const EdsModal = /*@__PURE__*/createReactComponent('eds-modal');
2655
- const EdsPagination = /*@__PURE__*/createReactComponent('eds-pagination');
2656
- const EdsProgressBar = /*@__PURE__*/createReactComponent('eds-progress-bar');
2657
- const EdsRating = /*@__PURE__*/createReactComponent('eds-rating');
2658
- const EdsSectionCore = /*@__PURE__*/createReactComponent('eds-section-core');
2659
- const EdsSectionHeading = /*@__PURE__*/createReactComponent('eds-section-heading');
2660
- const EdsSocialNetworks = /*@__PURE__*/createReactComponent('eds-social-networks');
2661
- const EdsTable = /*@__PURE__*/createReactComponent('eds-table');
2662
- const EdsTabs = /*@__PURE__*/createReactComponent('eds-tabs');
2663
- const EdsTag = /*@__PURE__*/createReactComponent('eds-tag');
2664
- const EdsToast = /*@__PURE__*/createReactComponent('eds-toast');
2665
- const EdsToastManager = /*@__PURE__*/createReactComponent('eds-toast-manager');
2666
- const EdsTooltip = /*@__PURE__*/createReactComponent('eds-tooltip');
2667
- const EdsUser = /*@__PURE__*/createReactComponent('eds-user');
2668
-
2669
- export { EdsAccordion, EdsAlert, EdsAvatar, EdsBlockBreak, EdsBreadcrumb, EdsButton, EdsCardDesc, EdsCardGeneric, EdsCardSection, EdsCodeBlock, EdsDropdown, EdsFooter, EdsForm, EdsFrame, EdsFullscreenMenu, EdsHeader, EdsIconWrapper, EdsImg, EdsInputField, EdsLink, EdsLogin, EdsLogo, EdsMatomoNotice, EdsModal, EdsPagination, EdsProgressBar, EdsRating, EdsSectionCore, EdsSectionHeading, EdsSocialNetworks, EdsTable, EdsTabs, EdsTag, EdsToast, EdsToastManager, EdsTooltip, EdsUser };