@lm_fe/core 0.2.7 → 0.2.9

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.
@@ -7,8 +7,8 @@ var _excluded = ["key_name", "parentid"],
7
7
  _excluded2 = ["type"],
8
8
  _excluded3 = ["type"];
9
9
  import _regeneratorRuntime from "@babel/runtime/regenerator";
10
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10
+ function _ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : _ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
12
12
  import { StyleProvider, legacyLogicalPropertiesTransformer } from '@ant-design/cssinjs';
13
13
  import { OkButton, MyIcon, MyLazyComponent, MountMchcModal as MountMchcModal$1 } from '@lm_fe/components_m';
14
14
  import { mchcEnv, mchcConfig, mchcEvent, mchcUtils, mchcMacro, mchcLogger, mchcBoot, mchcDriver, mchcRouterContainer__, MchcRouterContainer } from '@lm_fe/env';
@@ -23,6 +23,7 @@ import { useHistory, BrowserRouter } from 'react-router-dom';
23
23
  import { Space, Modal, message, notification, theme, ConfigProvider } from 'antd';
24
24
  import zhCN from 'antd/lib/locale/zh_CN';
25
25
  import { use_provoke } from '@lm_fe/provoke';
26
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
26
27
  var isImplemented$1 = function isImplemented() {
27
28
  return Object.prototype.hasOwnProperty.call(Node.prototype, 'getRootNode');
28
29
  };
@@ -80,6 +81,1598 @@ if (!isImplemented()) {
80
81
  value: getRootNodePolyfill.exports
81
82
  });
82
83
  }
84
+ var check = function check(it) {
85
+ return it && it.Math === Math && it;
86
+ };
87
+
88
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
89
+ var globalThis_1 =
90
+ // eslint-disable-next-line es/no-global-this -- safe
91
+ check((typeof globalThis === "undefined" ? "undefined" : _typeof(globalThis)) == 'object' && globalThis) || check((typeof window === "undefined" ? "undefined" : _typeof(window)) == 'object' && window) ||
92
+ // eslint-disable-next-line no-restricted-globals -- safe
93
+ check((typeof self === "undefined" ? "undefined" : _typeof(self)) == 'object' && self) || check(_typeof(commonjsGlobal) == 'object' && commonjsGlobal) || check(_typeof(commonjsGlobal) == 'object' && commonjsGlobal) ||
94
+ // eslint-disable-next-line no-new-func -- fallback
95
+ function () {
96
+ return this;
97
+ }() || Function('return this')();
98
+ var objectGetOwnPropertyDescriptor = {};
99
+ var fails$d = function fails$d(exec) {
100
+ try {
101
+ return !!exec();
102
+ } catch (error) {
103
+ return true;
104
+ }
105
+ };
106
+ var fails$c = fails$d;
107
+
108
+ // Detect IE8's incomplete defineProperty implementation
109
+ var descriptors = !fails$c(function () {
110
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
111
+ return Object.defineProperty({}, 1, {
112
+ get: function get() {
113
+ return 7;
114
+ }
115
+ })[1] !== 7;
116
+ });
117
+ var fails$b = fails$d;
118
+ var functionBindNative = !fails$b(function () {
119
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
120
+ var test = function () {/* empty */}.bind();
121
+ // eslint-disable-next-line no-prototype-builtins -- safe
122
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
123
+ });
124
+ var NATIVE_BIND$2 = functionBindNative;
125
+ var call$b = Function.prototype.call;
126
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
127
+ var functionCall = NATIVE_BIND$2 ? call$b.bind(call$b) : function () {
128
+ return call$b.apply(call$b, arguments);
129
+ };
130
+ var objectPropertyIsEnumerable = {};
131
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
132
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
133
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
134
+
135
+ // Nashorn ~ JDK8 bug
136
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({
137
+ 1: 2
138
+ }, 1);
139
+
140
+ // `Object.prototype.propertyIsEnumerable` method implementation
141
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
142
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
143
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
144
+ return !!descriptor && descriptor.enumerable;
145
+ } : $propertyIsEnumerable;
146
+ var createPropertyDescriptor$2 = function createPropertyDescriptor$2(bitmap, value) {
147
+ return {
148
+ enumerable: !(bitmap & 1),
149
+ configurable: !(bitmap & 2),
150
+ writable: !(bitmap & 4),
151
+ value: value
152
+ };
153
+ };
154
+ var NATIVE_BIND$1 = functionBindNative;
155
+ var FunctionPrototype$2 = Function.prototype;
156
+ var call$a = FunctionPrototype$2.call;
157
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
158
+ var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$2.bind.bind(call$a, call$a);
159
+ var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
160
+ return function () {
161
+ return call$a.apply(fn, arguments);
162
+ };
163
+ };
164
+ var uncurryThis$e = functionUncurryThis;
165
+ var toString$6 = uncurryThis$e({}.toString);
166
+ var stringSlice$6 = uncurryThis$e(''.slice);
167
+ var classofRaw$1 = function classofRaw$1(it) {
168
+ return stringSlice$6(toString$6(it), 8, -1);
169
+ };
170
+ var uncurryThis$d = functionUncurryThis;
171
+ var fails$a = fails$d;
172
+ var classof$4 = classofRaw$1;
173
+ var $Object$3 = Object;
174
+ var split = uncurryThis$d(''.split);
175
+
176
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
177
+ var indexedObject = fails$a(function () {
178
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
179
+ // eslint-disable-next-line no-prototype-builtins -- safe
180
+ return !$Object$3('z').propertyIsEnumerable(0);
181
+ }) ? function (it) {
182
+ return classof$4(it) === 'String' ? split(it, '') : $Object$3(it);
183
+ } : $Object$3;
184
+
185
+ // we can't use just `it == null` since of `document.all` special case
186
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
187
+ var isNullOrUndefined$4 = function isNullOrUndefined$4(it) {
188
+ return it === null || it === undefined;
189
+ };
190
+ var isNullOrUndefined$3 = isNullOrUndefined$4;
191
+ var $TypeError$7 = TypeError;
192
+
193
+ // `RequireObjectCoercible` abstract operation
194
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
195
+ var requireObjectCoercible$5 = function requireObjectCoercible$5(it) {
196
+ if (isNullOrUndefined$3(it)) throw new $TypeError$7("Can't call method on " + it);
197
+ return it;
198
+ };
199
+
200
+ // toObject with fallback for non-array-like ES3 strings
201
+ var IndexedObject = indexedObject;
202
+ var requireObjectCoercible$4 = requireObjectCoercible$5;
203
+ var toIndexedObject$4 = function toIndexedObject$4(it) {
204
+ return IndexedObject(requireObjectCoercible$4(it));
205
+ };
206
+
207
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
208
+ var documentAll = (typeof document === "undefined" ? "undefined" : _typeof(document)) == 'object' && document.all;
209
+
210
+ // `IsCallable` abstract operation
211
+ // https://tc39.es/ecma262/#sec-iscallable
212
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
213
+ var isCallable$e = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
214
+ return typeof argument == 'function' || argument === documentAll;
215
+ } : function (argument) {
216
+ return typeof argument == 'function';
217
+ };
218
+ var isCallable$d = isCallable$e;
219
+ var isObject$6 = function isObject$6(it) {
220
+ return _typeof(it) == 'object' ? it !== null : isCallable$d(it);
221
+ };
222
+ var globalThis$f = globalThis_1;
223
+ var isCallable$c = isCallable$e;
224
+ var aFunction = function aFunction(argument) {
225
+ return isCallable$c(argument) ? argument : undefined;
226
+ };
227
+ var getBuiltIn$3 = function getBuiltIn$3(namespace, method) {
228
+ return arguments.length < 2 ? aFunction(globalThis$f[namespace]) : globalThis$f[namespace] && globalThis$f[namespace][method];
229
+ };
230
+ var uncurryThis$c = functionUncurryThis;
231
+ var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
232
+ var globalThis$e = globalThis_1;
233
+ var navigator = globalThis$e.navigator;
234
+ var userAgent$1 = navigator && navigator.userAgent;
235
+ var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
236
+ var globalThis$d = globalThis_1;
237
+ var userAgent = environmentUserAgent;
238
+ var process = globalThis$d.process;
239
+ var Deno = globalThis$d.Deno;
240
+ var versions = process && process.versions || Deno && Deno.version;
241
+ var v8 = versions && versions.v8;
242
+ var match, version;
243
+ if (v8) {
244
+ match = v8.split('.');
245
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
246
+ // but their correct versions are not interesting for us
247
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
248
+ }
249
+
250
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
251
+ // so check `userAgent` even if `.v8` exists, but 0
252
+ if (!version && userAgent) {
253
+ match = userAgent.match(/Edge\/(\d+)/);
254
+ if (!match || match[1] >= 74) {
255
+ match = userAgent.match(/Chrome\/(\d+)/);
256
+ if (match) version = +match[1];
257
+ }
258
+ }
259
+ var environmentV8Version = version;
260
+
261
+ /* eslint-disable es/no-symbol -- required for testing */
262
+ var V8_VERSION = environmentV8Version;
263
+ var fails$9 = fails$d;
264
+ var globalThis$c = globalThis_1;
265
+ var $String$4 = globalThis$c.String;
266
+
267
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
268
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$9(function () {
269
+ var symbol = Symbol('symbol detection');
270
+ // Chrome 38 Symbol has incorrect toString conversion
271
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
272
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
273
+ // of course, fail.
274
+ return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
275
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
276
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
277
+ });
278
+
279
+ /* eslint-disable es/no-symbol -- required for testing */
280
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
281
+ var useSymbolAsUid = NATIVE_SYMBOL$1 && !Symbol.sham && _typeof(Symbol.iterator) == 'symbol';
282
+ var getBuiltIn$2 = getBuiltIn$3;
283
+ var isCallable$b = isCallable$e;
284
+ var isPrototypeOf$1 = objectIsPrototypeOf;
285
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
286
+ var $Object$2 = Object;
287
+ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
288
+ return _typeof(it) == 'symbol';
289
+ } : function (it) {
290
+ var $Symbol = getBuiltIn$2('Symbol');
291
+ return isCallable$b($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$2(it));
292
+ };
293
+ var $String$3 = String;
294
+ var tryToString$1 = function tryToString$1(argument) {
295
+ try {
296
+ return $String$3(argument);
297
+ } catch (error) {
298
+ return 'Object';
299
+ }
300
+ };
301
+ var isCallable$a = isCallable$e;
302
+ var tryToString = tryToString$1;
303
+ var $TypeError$6 = TypeError;
304
+
305
+ // `Assert: IsCallable(argument) is true`
306
+ var aCallable$1 = function aCallable$1(argument) {
307
+ if (isCallable$a(argument)) return argument;
308
+ throw new $TypeError$6(tryToString(argument) + ' is not a function');
309
+ };
310
+ var aCallable = aCallable$1;
311
+ var isNullOrUndefined$2 = isNullOrUndefined$4;
312
+
313
+ // `GetMethod` abstract operation
314
+ // https://tc39.es/ecma262/#sec-getmethod
315
+ var getMethod$3 = function getMethod$3(V, P) {
316
+ var func = V[P];
317
+ return isNullOrUndefined$2(func) ? undefined : aCallable(func);
318
+ };
319
+ var call$9 = functionCall;
320
+ var isCallable$9 = isCallable$e;
321
+ var isObject$5 = isObject$6;
322
+ var $TypeError$5 = TypeError;
323
+
324
+ // `OrdinaryToPrimitive` abstract operation
325
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
326
+ var ordinaryToPrimitive$1 = function ordinaryToPrimitive$1(input, pref) {
327
+ var fn, val;
328
+ if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$9(fn, input))) return val;
329
+ if (isCallable$9(fn = input.valueOf) && !isObject$5(val = call$9(fn, input))) return val;
330
+ if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$9(fn, input))) return val;
331
+ throw new $TypeError$5("Can't convert object to primitive value");
332
+ };
333
+ var sharedStore = {
334
+ exports: {}
335
+ };
336
+ var globalThis$b = globalThis_1;
337
+
338
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
339
+ var defineProperty$1 = Object.defineProperty;
340
+ var defineGlobalProperty$3 = function defineGlobalProperty$3(key, value) {
341
+ try {
342
+ defineProperty$1(globalThis$b, key, {
343
+ value: value,
344
+ configurable: true,
345
+ writable: true
346
+ });
347
+ } catch (error) {
348
+ globalThis$b[key] = value;
349
+ }
350
+ return value;
351
+ };
352
+ var globalThis$a = globalThis_1;
353
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
354
+ var SHARED = '__core-js_shared__';
355
+ var store$3 = sharedStore.exports = globalThis$a[SHARED] || defineGlobalProperty$2(SHARED, {});
356
+ (store$3.versions || (store$3.versions = [])).push({
357
+ version: '3.41.0',
358
+ mode: 'global',
359
+ copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)',
360
+ license: 'https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE',
361
+ source: 'https://github.com/zloirock/core-js'
362
+ });
363
+ var store$2 = sharedStore.exports;
364
+ var shared$4 = function shared$4(key, value) {
365
+ return store$2[key] || (store$2[key] = value || {});
366
+ };
367
+ var requireObjectCoercible$3 = requireObjectCoercible$5;
368
+ var $Object$1 = Object;
369
+
370
+ // `ToObject` abstract operation
371
+ // https://tc39.es/ecma262/#sec-toobject
372
+ var toObject$2 = function toObject$2(argument) {
373
+ return $Object$1(requireObjectCoercible$3(argument));
374
+ };
375
+ var uncurryThis$b = functionUncurryThis;
376
+ var toObject$1 = toObject$2;
377
+ var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
378
+
379
+ // `HasOwnProperty` abstract operation
380
+ // https://tc39.es/ecma262/#sec-hasownproperty
381
+ // eslint-disable-next-line es/no-object-hasown -- safe
382
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
383
+ return hasOwnProperty(toObject$1(it), key);
384
+ };
385
+ var uncurryThis$a = functionUncurryThis;
386
+ var id = 0;
387
+ var postfix = Math.random();
388
+ var toString$5 = uncurryThis$a(1.0.toString);
389
+ var uid$2 = function uid$2(key) {
390
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
391
+ };
392
+ var globalThis$9 = globalThis_1;
393
+ var shared$3 = shared$4;
394
+ var hasOwn$7 = hasOwnProperty_1;
395
+ var uid$1 = uid$2;
396
+ var NATIVE_SYMBOL = symbolConstructorDetection;
397
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
398
+ var Symbol$1 = globalThis$9.Symbol;
399
+ var WellKnownSymbolsStore = shared$3('wks');
400
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
401
+ var wellKnownSymbol$7 = function wellKnownSymbol$7(name) {
402
+ if (!hasOwn$7(WellKnownSymbolsStore, name)) {
403
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$7(Symbol$1, name) ? Symbol$1[name] : createWellKnownSymbol('Symbol.' + name);
404
+ }
405
+ return WellKnownSymbolsStore[name];
406
+ };
407
+ var call$8 = functionCall;
408
+ var isObject$4 = isObject$6;
409
+ var isSymbol$1 = isSymbol$2;
410
+ var getMethod$2 = getMethod$3;
411
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
412
+ var wellKnownSymbol$6 = wellKnownSymbol$7;
413
+ var $TypeError$4 = TypeError;
414
+ var TO_PRIMITIVE = wellKnownSymbol$6('toPrimitive');
415
+
416
+ // `ToPrimitive` abstract operation
417
+ // https://tc39.es/ecma262/#sec-toprimitive
418
+ var toPrimitive$1 = function toPrimitive$1(input, pref) {
419
+ if (!isObject$4(input) || isSymbol$1(input)) return input;
420
+ var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
421
+ var result;
422
+ if (exoticToPrim) {
423
+ if (pref === undefined) pref = 'default';
424
+ result = call$8(exoticToPrim, input, pref);
425
+ if (!isObject$4(result) || isSymbol$1(result)) return result;
426
+ throw new $TypeError$4("Can't convert object to primitive value");
427
+ }
428
+ if (pref === undefined) pref = 'number';
429
+ return ordinaryToPrimitive(input, pref);
430
+ };
431
+ var toPrimitive = toPrimitive$1;
432
+ var isSymbol = isSymbol$2;
433
+
434
+ // `ToPropertyKey` abstract operation
435
+ // https://tc39.es/ecma262/#sec-topropertykey
436
+ var toPropertyKey$2 = function toPropertyKey$2(argument) {
437
+ var key = toPrimitive(argument, 'string');
438
+ return isSymbol(key) ? key : key + '';
439
+ };
440
+ var globalThis$8 = globalThis_1;
441
+ var isObject$3 = isObject$6;
442
+ var document$1 = globalThis$8.document;
443
+ // typeof document.createElement is 'object' in old IE
444
+ var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
445
+ var documentCreateElement$1 = function documentCreateElement$1(it) {
446
+ return EXISTS$1 ? document$1.createElement(it) : {};
447
+ };
448
+ var DESCRIPTORS$7 = descriptors;
449
+ var fails$8 = fails$d;
450
+ var createElement = documentCreateElement$1;
451
+
452
+ // Thanks to IE8 for its funny defineProperty
453
+ var ie8DomDefine = !DESCRIPTORS$7 && !fails$8(function () {
454
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
455
+ return Object.defineProperty(createElement('div'), 'a', {
456
+ get: function get() {
457
+ return 7;
458
+ }
459
+ }).a !== 7;
460
+ });
461
+ var DESCRIPTORS$6 = descriptors;
462
+ var call$7 = functionCall;
463
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
464
+ var createPropertyDescriptor$1 = createPropertyDescriptor$2;
465
+ var toIndexedObject$3 = toIndexedObject$4;
466
+ var toPropertyKey$1 = toPropertyKey$2;
467
+ var hasOwn$6 = hasOwnProperty_1;
468
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
469
+
470
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
471
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
472
+
473
+ // `Object.getOwnPropertyDescriptor` method
474
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
475
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
476
+ O = toIndexedObject$3(O);
477
+ P = toPropertyKey$1(P);
478
+ if (IE8_DOM_DEFINE$1) try {
479
+ return $getOwnPropertyDescriptor$1(O, P);
480
+ } catch (error) {/* empty */}
481
+ if (hasOwn$6(O, P)) return createPropertyDescriptor$1(!call$7(propertyIsEnumerableModule.f, O, P), O[P]);
482
+ };
483
+ var objectDefineProperty = {};
484
+ var DESCRIPTORS$5 = descriptors;
485
+ var fails$7 = fails$d;
486
+
487
+ // V8 ~ Chrome 36-
488
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
489
+ var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$7(function () {
490
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
491
+ return Object.defineProperty(function () {/* empty */}, 'prototype', {
492
+ value: 42,
493
+ writable: false
494
+ }).prototype !== 42;
495
+ });
496
+ var isObject$2 = isObject$6;
497
+ var $String$2 = String;
498
+ var $TypeError$3 = TypeError;
499
+
500
+ // `Assert: Type(argument) is Object`
501
+ var anObject$7 = function anObject$7(argument) {
502
+ if (isObject$2(argument)) return argument;
503
+ throw new $TypeError$3($String$2(argument) + ' is not an object');
504
+ };
505
+ var DESCRIPTORS$4 = descriptors;
506
+ var IE8_DOM_DEFINE = ie8DomDefine;
507
+ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
508
+ var anObject$6 = anObject$7;
509
+ var toPropertyKey = toPropertyKey$2;
510
+ var $TypeError$2 = TypeError;
511
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
512
+ var $defineProperty = Object.defineProperty;
513
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
514
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
515
+ var ENUMERABLE = 'enumerable';
516
+ var CONFIGURABLE$1 = 'configurable';
517
+ var WRITABLE = 'writable';
518
+
519
+ // `Object.defineProperty` method
520
+ // https://tc39.es/ecma262/#sec-object.defineproperty
521
+ objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
522
+ anObject$6(O);
523
+ P = toPropertyKey(P);
524
+ anObject$6(Attributes);
525
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
526
+ var current = $getOwnPropertyDescriptor(O, P);
527
+ if (current && current[WRITABLE]) {
528
+ O[P] = Attributes.value;
529
+ Attributes = {
530
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
531
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
532
+ writable: false
533
+ };
534
+ }
535
+ }
536
+ return $defineProperty(O, P, Attributes);
537
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
538
+ anObject$6(O);
539
+ P = toPropertyKey(P);
540
+ anObject$6(Attributes);
541
+ if (IE8_DOM_DEFINE) try {
542
+ return $defineProperty(O, P, Attributes);
543
+ } catch (error) {/* empty */}
544
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$2('Accessors not supported');
545
+ if ('value' in Attributes) O[P] = Attributes.value;
546
+ return O;
547
+ };
548
+ var DESCRIPTORS$3 = descriptors;
549
+ var definePropertyModule$3 = objectDefineProperty;
550
+ var createPropertyDescriptor = createPropertyDescriptor$2;
551
+ var createNonEnumerableProperty$3 = DESCRIPTORS$3 ? function (object, key, value) {
552
+ return definePropertyModule$3.f(object, key, createPropertyDescriptor(1, value));
553
+ } : function (object, key, value) {
554
+ object[key] = value;
555
+ return object;
556
+ };
557
+ var makeBuiltIn$2 = {
558
+ exports: {}
559
+ };
560
+ var DESCRIPTORS$2 = descriptors;
561
+ var hasOwn$5 = hasOwnProperty_1;
562
+ var FunctionPrototype$1 = Function.prototype;
563
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
564
+ var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
565
+ var EXISTS = hasOwn$5(FunctionPrototype$1, 'name');
566
+ // additional protection from minified / mangled / dropped function names
567
+ var PROPER = EXISTS && function something() {/* empty */}.name === 'something';
568
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || DESCRIPTORS$2 && getDescriptor(FunctionPrototype$1, 'name').configurable);
569
+ var functionName = {
570
+ EXISTS: EXISTS,
571
+ PROPER: PROPER,
572
+ CONFIGURABLE: CONFIGURABLE
573
+ };
574
+ var uncurryThis$9 = functionUncurryThis;
575
+ var isCallable$8 = isCallable$e;
576
+ var store$1 = sharedStore.exports;
577
+ var functionToString = uncurryThis$9(Function.toString);
578
+
579
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
580
+ if (!isCallable$8(store$1.inspectSource)) {
581
+ store$1.inspectSource = function (it) {
582
+ return functionToString(it);
583
+ };
584
+ }
585
+ var inspectSource$1 = store$1.inspectSource;
586
+ var globalThis$7 = globalThis_1;
587
+ var isCallable$7 = isCallable$e;
588
+ var WeakMap$1 = globalThis$7.WeakMap;
589
+ var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
590
+ var shared$2 = shared$4;
591
+ var uid = uid$2;
592
+ var keys = shared$2('keys');
593
+ var sharedKey$2 = function sharedKey$2(key) {
594
+ return keys[key] || (keys[key] = uid(key));
595
+ };
596
+ var hiddenKeys$4 = {};
597
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
598
+ var globalThis$6 = globalThis_1;
599
+ var isObject$1 = isObject$6;
600
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
601
+ var hasOwn$4 = hasOwnProperty_1;
602
+ var shared$1 = sharedStore.exports;
603
+ var sharedKey$1 = sharedKey$2;
604
+ var hiddenKeys$3 = hiddenKeys$4;
605
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
606
+ var TypeError$1 = globalThis$6.TypeError;
607
+ var WeakMap = globalThis$6.WeakMap;
608
+ var set, get, has;
609
+ var enforce = function enforce(it) {
610
+ return has(it) ? get(it) : set(it, {});
611
+ };
612
+ var getterFor = function getterFor(TYPE) {
613
+ return function (it) {
614
+ var state;
615
+ if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
616
+ throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
617
+ }
618
+ return state;
619
+ };
620
+ };
621
+ if (NATIVE_WEAK_MAP || shared$1.state) {
622
+ var store = shared$1.state || (shared$1.state = new WeakMap());
623
+ /* eslint-disable no-self-assign -- prototype methods protection */
624
+ store.get = store.get;
625
+ store.has = store.has;
626
+ store.set = store.set;
627
+ /* eslint-enable no-self-assign -- prototype methods protection */
628
+ set = function set(it, metadata) {
629
+ if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
630
+ metadata.facade = it;
631
+ store.set(it, metadata);
632
+ return metadata;
633
+ };
634
+ get = function get(it) {
635
+ return store.get(it) || {};
636
+ };
637
+ has = function has(it) {
638
+ return store.has(it);
639
+ };
640
+ } else {
641
+ var STATE = sharedKey$1('state');
642
+ hiddenKeys$3[STATE] = true;
643
+ set = function set(it, metadata) {
644
+ if (hasOwn$4(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
645
+ metadata.facade = it;
646
+ createNonEnumerableProperty$2(it, STATE, metadata);
647
+ return metadata;
648
+ };
649
+ get = function get(it) {
650
+ return hasOwn$4(it, STATE) ? it[STATE] : {};
651
+ };
652
+ has = function has(it) {
653
+ return hasOwn$4(it, STATE);
654
+ };
655
+ }
656
+ var internalState = {
657
+ set: set,
658
+ get: get,
659
+ has: has,
660
+ enforce: enforce,
661
+ getterFor: getterFor
662
+ };
663
+ var uncurryThis$8 = functionUncurryThis;
664
+ var fails$6 = fails$d;
665
+ var isCallable$6 = isCallable$e;
666
+ var hasOwn$3 = hasOwnProperty_1;
667
+ var DESCRIPTORS$1 = descriptors;
668
+ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
669
+ var inspectSource = inspectSource$1;
670
+ var InternalStateModule = internalState;
671
+ var enforceInternalState = InternalStateModule.enforce;
672
+ var getInternalState$1 = InternalStateModule.get;
673
+ var $String$1 = String;
674
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
675
+ var defineProperty = Object.defineProperty;
676
+ var stringSlice$5 = uncurryThis$8(''.slice);
677
+ var replace$2 = uncurryThis$8(''.replace);
678
+ var join = uncurryThis$8([].join);
679
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$6(function () {
680
+ return defineProperty(function () {/* empty */}, 'length', {
681
+ value: 8
682
+ }).length !== 8;
683
+ });
684
+ var TEMPLATE = String(String).split('String');
685
+ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
686
+ if (stringSlice$5($String$1(name), 0, 7) === 'Symbol(') {
687
+ name = '[' + replace$2($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
688
+ }
689
+ if (options && options.getter) name = 'get ' + name;
690
+ if (options && options.setter) name = 'set ' + name;
691
+ if (!hasOwn$3(value, 'name') || CONFIGURABLE_FUNCTION_NAME && value.name !== name) {
692
+ if (DESCRIPTORS$1) defineProperty(value, 'name', {
693
+ value: name,
694
+ configurable: true
695
+ });else value.name = name;
696
+ }
697
+ if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
698
+ defineProperty(value, 'length', {
699
+ value: options.arity
700
+ });
701
+ }
702
+ try {
703
+ if (options && hasOwn$3(options, 'constructor') && options.constructor) {
704
+ if (DESCRIPTORS$1) defineProperty(value, 'prototype', {
705
+ writable: false
706
+ });
707
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
708
+ } else if (value.prototype) value.prototype = undefined;
709
+ } catch (error) {/* empty */}
710
+ var state = enforceInternalState(value);
711
+ if (!hasOwn$3(state, 'source')) {
712
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
713
+ }
714
+ return value;
715
+ };
716
+
717
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
718
+ // eslint-disable-next-line no-extend-native -- required
719
+ Function.prototype.toString = makeBuiltIn$1(function toString() {
720
+ return isCallable$6(this) && getInternalState$1(this).source || inspectSource(this);
721
+ }, 'toString');
722
+ var isCallable$5 = isCallable$e;
723
+ var definePropertyModule$2 = objectDefineProperty;
724
+ var makeBuiltIn = makeBuiltIn$2.exports;
725
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
726
+ var defineBuiltIn$2 = function defineBuiltIn$2(O, key, value, options) {
727
+ if (!options) options = {};
728
+ var simple = options.enumerable;
729
+ var name = options.name !== undefined ? options.name : key;
730
+ if (isCallable$5(value)) makeBuiltIn(value, name, options);
731
+ if (options.global) {
732
+ if (simple) O[key] = value;else defineGlobalProperty$1(key, value);
733
+ } else {
734
+ try {
735
+ if (!options.unsafe) delete O[key];else if (O[key]) simple = true;
736
+ } catch (error) {/* empty */}
737
+ if (simple) O[key] = value;else definePropertyModule$2.f(O, key, {
738
+ value: value,
739
+ enumerable: false,
740
+ configurable: !options.nonConfigurable,
741
+ writable: !options.nonWritable
742
+ });
743
+ }
744
+ return O;
745
+ };
746
+ var objectGetOwnPropertyNames = {};
747
+ var ceil = Math.ceil;
748
+ var floor$1 = Math.floor;
749
+
750
+ // `Math.trunc` method
751
+ // https://tc39.es/ecma262/#sec-math.trunc
752
+ // eslint-disable-next-line es/no-math-trunc -- safe
753
+ var mathTrunc = Math.trunc || function trunc(x) {
754
+ var n = +x;
755
+ return (n > 0 ? floor$1 : ceil)(n);
756
+ };
757
+ var trunc = mathTrunc;
758
+
759
+ // `ToIntegerOrInfinity` abstract operation
760
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
761
+ var toIntegerOrInfinity$4 = function toIntegerOrInfinity$4(argument) {
762
+ var number = +argument;
763
+ // eslint-disable-next-line no-self-compare -- NaN check
764
+ return number !== number || number === 0 ? 0 : trunc(number);
765
+ };
766
+ var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
767
+ var max$2 = Math.max;
768
+ var min$2 = Math.min;
769
+
770
+ // Helper for a popular repeating case of the spec:
771
+ // Let integer be ? ToInteger(index).
772
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
773
+ var toAbsoluteIndex$1 = function toAbsoluteIndex$1(index, length) {
774
+ var integer = toIntegerOrInfinity$3(index);
775
+ return integer < 0 ? max$2(integer + length, 0) : min$2(integer, length);
776
+ };
777
+ var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
778
+ var min$1 = Math.min;
779
+
780
+ // `ToLength` abstract operation
781
+ // https://tc39.es/ecma262/#sec-tolength
782
+ var toLength$2 = function toLength$2(argument) {
783
+ var len = toIntegerOrInfinity$2(argument);
784
+ return len > 0 ? min$1(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
785
+ };
786
+ var toLength$1 = toLength$2;
787
+
788
+ // `LengthOfArrayLike` abstract operation
789
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
790
+ var lengthOfArrayLike$1 = function lengthOfArrayLike$1(obj) {
791
+ return toLength$1(obj.length);
792
+ };
793
+ var toIndexedObject$2 = toIndexedObject$4;
794
+ var toAbsoluteIndex = toAbsoluteIndex$1;
795
+ var lengthOfArrayLike = lengthOfArrayLike$1;
796
+
797
+ // `Array.prototype.{ indexOf, includes }` methods implementation
798
+ var createMethod$1 = function createMethod$1(IS_INCLUDES) {
799
+ return function ($this, el, fromIndex) {
800
+ var O = toIndexedObject$2($this);
801
+ var length = lengthOfArrayLike(O);
802
+ if (length === 0) return !IS_INCLUDES && -1;
803
+ var index = toAbsoluteIndex(fromIndex, length);
804
+ var value;
805
+ // Array#includes uses SameValueZero equality algorithm
806
+ // eslint-disable-next-line no-self-compare -- NaN check
807
+ if (IS_INCLUDES && el !== el) while (length > index) {
808
+ value = O[index++];
809
+ // eslint-disable-next-line no-self-compare -- NaN check
810
+ if (value !== value) return true;
811
+ // Array#indexOf ignores holes, Array#includes - not
812
+ } else for (; length > index; index++) {
813
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
814
+ }
815
+ return !IS_INCLUDES && -1;
816
+ };
817
+ };
818
+ var arrayIncludes = {
819
+ // `Array.prototype.includes` method
820
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
821
+ includes: createMethod$1(true),
822
+ // `Array.prototype.indexOf` method
823
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
824
+ indexOf: createMethod$1(false)
825
+ };
826
+ var uncurryThis$7 = functionUncurryThis;
827
+ var hasOwn$2 = hasOwnProperty_1;
828
+ var toIndexedObject$1 = toIndexedObject$4;
829
+ var indexOf$2 = arrayIncludes.indexOf;
830
+ var hiddenKeys$2 = hiddenKeys$4;
831
+ var push$1 = uncurryThis$7([].push);
832
+ var objectKeysInternal = function objectKeysInternal(object, names) {
833
+ var O = toIndexedObject$1(object);
834
+ var i = 0;
835
+ var result = [];
836
+ var key;
837
+ for (key in O) !hasOwn$2(hiddenKeys$2, key) && hasOwn$2(O, key) && push$1(result, key);
838
+ // Don't enum bug & hidden keys
839
+ while (names.length > i) if (hasOwn$2(O, key = names[i++])) {
840
+ ~indexOf$2(result, key) || push$1(result, key);
841
+ }
842
+ return result;
843
+ };
844
+
845
+ // IE8- don't enum bug keys
846
+ var enumBugKeys$3 = ['constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf'];
847
+ var internalObjectKeys$1 = objectKeysInternal;
848
+ var enumBugKeys$2 = enumBugKeys$3;
849
+ var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
850
+
851
+ // `Object.getOwnPropertyNames` method
852
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
853
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
854
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
855
+ return internalObjectKeys$1(O, hiddenKeys$1);
856
+ };
857
+ var objectGetOwnPropertySymbols = {};
858
+
859
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
860
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
861
+ var getBuiltIn$1 = getBuiltIn$3;
862
+ var uncurryThis$6 = functionUncurryThis;
863
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
864
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
865
+ var anObject$5 = anObject$7;
866
+ var concat$1 = uncurryThis$6([].concat);
867
+
868
+ // all object keys, includes non-enumerable and symbols
869
+ var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
870
+ var keys = getOwnPropertyNamesModule.f(anObject$5(it));
871
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
872
+ return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
873
+ };
874
+ var hasOwn$1 = hasOwnProperty_1;
875
+ var ownKeys = ownKeys$1;
876
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
877
+ var definePropertyModule$1 = objectDefineProperty;
878
+ var copyConstructorProperties$1 = function copyConstructorProperties$1(target, source, exceptions) {
879
+ var keys = ownKeys(source);
880
+ var defineProperty = definePropertyModule$1.f;
881
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
882
+ for (var i = 0; i < keys.length; i++) {
883
+ var key = keys[i];
884
+ if (!hasOwn$1(target, key) && !(exceptions && hasOwn$1(exceptions, key))) {
885
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
886
+ }
887
+ }
888
+ };
889
+ var fails$5 = fails$d;
890
+ var isCallable$4 = isCallable$e;
891
+ var replacement = /#|\.prototype\./;
892
+ var isForced$1 = function isForced$1(feature, detection) {
893
+ var value = data[normalize(feature)];
894
+ return value === POLYFILL ? true : value === NATIVE ? false : isCallable$4(detection) ? fails$5(detection) : !!detection;
895
+ };
896
+ var normalize = isForced$1.normalize = function (string) {
897
+ return String(string).replace(replacement, '.').toLowerCase();
898
+ };
899
+ var data = isForced$1.data = {};
900
+ var NATIVE = isForced$1.NATIVE = 'N';
901
+ var POLYFILL = isForced$1.POLYFILL = 'P';
902
+ var isForced_1 = isForced$1;
903
+ var globalThis$5 = globalThis_1;
904
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
905
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
906
+ var defineBuiltIn$1 = defineBuiltIn$2;
907
+ var defineGlobalProperty = defineGlobalProperty$3;
908
+ var copyConstructorProperties = copyConstructorProperties$1;
909
+ var isForced = isForced_1;
910
+
911
+ /*
912
+ options.target - name of the target object
913
+ options.global - target is the global object
914
+ options.stat - export as static methods of target
915
+ options.proto - export as prototype methods of target
916
+ options.real - real prototype method for the `pure` version
917
+ options.forced - export even if the native feature is available
918
+ options.bind - bind methods to the target, required for the `pure` version
919
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
920
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
921
+ options.sham - add a flag to not completely full polyfills
922
+ options.enumerable - export as enumerable property
923
+ options.dontCallGetSet - prevent calling a getter on target
924
+ options.name - the .name of the function if it does not match the key
925
+ */
926
+ var _export = function _export(options, source) {
927
+ var TARGET = options.target;
928
+ var GLOBAL = options.global;
929
+ var STATIC = options.stat;
930
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
931
+ if (GLOBAL) {
932
+ target = globalThis$5;
933
+ } else if (STATIC) {
934
+ target = globalThis$5[TARGET] || defineGlobalProperty(TARGET, {});
935
+ } else {
936
+ target = globalThis$5[TARGET] && globalThis$5[TARGET].prototype;
937
+ }
938
+ if (target) for (key in source) {
939
+ sourceProperty = source[key];
940
+ if (options.dontCallGetSet) {
941
+ descriptor = getOwnPropertyDescriptor(target, key);
942
+ targetProperty = descriptor && descriptor.value;
943
+ } else targetProperty = target[key];
944
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
945
+ // contained in target
946
+ if (!FORCED && targetProperty !== undefined) {
947
+ if (_typeof(sourceProperty) == _typeof(targetProperty)) continue;
948
+ copyConstructorProperties(sourceProperty, targetProperty);
949
+ }
950
+ // add a flag to not completely full polyfills
951
+ if (options.sham || targetProperty && targetProperty.sham) {
952
+ createNonEnumerableProperty$1(sourceProperty, 'sham', true);
953
+ }
954
+ defineBuiltIn$1(target, key, sourceProperty, options);
955
+ }
956
+ };
957
+ var isObject = isObject$6;
958
+ var classof$3 = classofRaw$1;
959
+ var wellKnownSymbol$5 = wellKnownSymbol$7;
960
+ var MATCH = wellKnownSymbol$5('match');
961
+
962
+ // `IsRegExp` abstract operation
963
+ // https://tc39.es/ecma262/#sec-isregexp
964
+ var isRegexp = function isRegexp(it) {
965
+ var isRegExp;
966
+ return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof$3(it) === 'RegExp');
967
+ };
968
+ var wellKnownSymbol$4 = wellKnownSymbol$7;
969
+ var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag');
970
+ var test = {};
971
+ test[TO_STRING_TAG$1] = 'z';
972
+ var toStringTagSupport = String(test) === '[object z]';
973
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
974
+ var isCallable$3 = isCallable$e;
975
+ var classofRaw = classofRaw$1;
976
+ var wellKnownSymbol$3 = wellKnownSymbol$7;
977
+ var TO_STRING_TAG = wellKnownSymbol$3('toStringTag');
978
+ var $Object = Object;
979
+
980
+ // ES3 wrong here
981
+ var CORRECT_ARGUMENTS = classofRaw(function () {
982
+ return arguments;
983
+ }()) === 'Arguments';
984
+
985
+ // fallback for IE11 Script Access Denied error
986
+ var tryGet = function tryGet(it, key) {
987
+ try {
988
+ return it[key];
989
+ } catch (error) {/* empty */}
990
+ };
991
+
992
+ // getting tag from ES6+ `Object.prototype.toString`
993
+ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
994
+ var O, tag, result;
995
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
996
+ // @@toStringTag case
997
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
998
+ // builtinTag case
999
+ : CORRECT_ARGUMENTS ? classofRaw(O)
1000
+ // ES3 arguments fallback
1001
+ : (result = classofRaw(O)) === 'Object' && isCallable$3(O.callee) ? 'Arguments' : result;
1002
+ };
1003
+ var classof$1 = classof$2;
1004
+ var $String = String;
1005
+ var toString$4 = function toString$4(argument) {
1006
+ if (classof$1(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1007
+ return $String(argument);
1008
+ };
1009
+ var anObject$4 = anObject$7;
1010
+
1011
+ // `RegExp.prototype.flags` getter implementation
1012
+ // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1013
+ var regexpFlags$1 = function regexpFlags$1() {
1014
+ var that = anObject$4(this);
1015
+ var result = '';
1016
+ if (that.hasIndices) result += 'd';
1017
+ if (that.global) result += 'g';
1018
+ if (that.ignoreCase) result += 'i';
1019
+ if (that.multiline) result += 'm';
1020
+ if (that.dotAll) result += 's';
1021
+ if (that.unicode) result += 'u';
1022
+ if (that.unicodeSets) result += 'v';
1023
+ if (that.sticky) result += 'y';
1024
+ return result;
1025
+ };
1026
+ var call$6 = functionCall;
1027
+ var hasOwn = hasOwnProperty_1;
1028
+ var isPrototypeOf = objectIsPrototypeOf;
1029
+ var regExpFlags = regexpFlags$1;
1030
+ var RegExpPrototype$1 = RegExp.prototype;
1031
+ var regexpGetFlags = function regexpGetFlags(R) {
1032
+ var flags = R.flags;
1033
+ return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R) ? call$6(regExpFlags, R) : flags;
1034
+ };
1035
+ var uncurryThis$5 = functionUncurryThis;
1036
+ var toObject = toObject$2;
1037
+ var floor = Math.floor;
1038
+ var charAt$3 = uncurryThis$5(''.charAt);
1039
+ var replace$1 = uncurryThis$5(''.replace);
1040
+ var stringSlice$4 = uncurryThis$5(''.slice);
1041
+ // eslint-disable-next-line redos/no-vulnerable -- safe
1042
+ var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
1043
+ var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
1044
+
1045
+ // `GetSubstitution` abstract operation
1046
+ // https://tc39.es/ecma262/#sec-getsubstitution
1047
+ var getSubstitution$2 = function getSubstitution$2(matched, str, position, captures, namedCaptures, replacement) {
1048
+ var tailPos = position + matched.length;
1049
+ var m = captures.length;
1050
+ var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
1051
+ if (namedCaptures !== undefined) {
1052
+ namedCaptures = toObject(namedCaptures);
1053
+ symbols = SUBSTITUTION_SYMBOLS;
1054
+ }
1055
+ return replace$1(replacement, symbols, function (match, ch) {
1056
+ var capture;
1057
+ switch (charAt$3(ch, 0)) {
1058
+ case '$':
1059
+ return '$';
1060
+ case '&':
1061
+ return matched;
1062
+ case '`':
1063
+ return stringSlice$4(str, 0, position);
1064
+ case "'":
1065
+ return stringSlice$4(str, tailPos);
1066
+ case '<':
1067
+ capture = namedCaptures[stringSlice$4(ch, 1, -1)];
1068
+ break;
1069
+ default:
1070
+ // \d\d?
1071
+ var n = +ch;
1072
+ if (n === 0) return match;
1073
+ if (n > m) {
1074
+ var f = floor(n / 10);
1075
+ if (f === 0) return match;
1076
+ if (f <= m) return captures[f - 1] === undefined ? charAt$3(ch, 1) : captures[f - 1] + charAt$3(ch, 1);
1077
+ return match;
1078
+ }
1079
+ capture = captures[n - 1];
1080
+ }
1081
+ return capture === undefined ? '' : capture;
1082
+ });
1083
+ };
1084
+ var $$1 = _export;
1085
+ var call$5 = functionCall;
1086
+ var uncurryThis$4 = functionUncurryThis;
1087
+ var requireObjectCoercible$2 = requireObjectCoercible$5;
1088
+ var isCallable$2 = isCallable$e;
1089
+ var isNullOrUndefined$1 = isNullOrUndefined$4;
1090
+ var isRegExp = isRegexp;
1091
+ var toString$3 = toString$4;
1092
+ var getMethod$1 = getMethod$3;
1093
+ var getRegExpFlags = regexpGetFlags;
1094
+ var getSubstitution$1 = getSubstitution$2;
1095
+ var wellKnownSymbol$2 = wellKnownSymbol$7;
1096
+ var REPLACE$1 = wellKnownSymbol$2('replace');
1097
+ var $TypeError$1 = TypeError;
1098
+ var indexOf$1 = uncurryThis$4(''.indexOf);
1099
+ uncurryThis$4(''.replace);
1100
+ var stringSlice$3 = uncurryThis$4(''.slice);
1101
+ var max$1 = Math.max;
1102
+
1103
+ // `String.prototype.replaceAll` method
1104
+ // https://tc39.es/ecma262/#sec-string.prototype.replaceall
1105
+ $$1({
1106
+ target: 'String',
1107
+ proto: true
1108
+ }, {
1109
+ replaceAll: function replaceAll(searchValue, replaceValue) {
1110
+ var O = requireObjectCoercible$2(this);
1111
+ var IS_REG_EXP, flags, replacer, string, searchString, functionalReplace, searchLength, advanceBy, position, replacement;
1112
+ var endOfLastMatch = 0;
1113
+ var result = '';
1114
+ if (!isNullOrUndefined$1(searchValue)) {
1115
+ IS_REG_EXP = isRegExp(searchValue);
1116
+ if (IS_REG_EXP) {
1117
+ flags = toString$3(requireObjectCoercible$2(getRegExpFlags(searchValue)));
1118
+ if (!~indexOf$1(flags, 'g')) throw new $TypeError$1('`.replaceAll` does not allow non-global regexes');
1119
+ }
1120
+ replacer = getMethod$1(searchValue, REPLACE$1);
1121
+ if (replacer) return call$5(replacer, searchValue, O, replaceValue);
1122
+ }
1123
+ string = toString$3(O);
1124
+ searchString = toString$3(searchValue);
1125
+ functionalReplace = isCallable$2(replaceValue);
1126
+ if (!functionalReplace) replaceValue = toString$3(replaceValue);
1127
+ searchLength = searchString.length;
1128
+ advanceBy = max$1(1, searchLength);
1129
+ position = indexOf$1(string, searchString);
1130
+ while (position !== -1) {
1131
+ replacement = functionalReplace ? toString$3(replaceValue(searchString, position, string)) : getSubstitution$1(searchString, string, position, [], undefined, replaceValue);
1132
+ result += stringSlice$3(string, endOfLastMatch, position) + replacement;
1133
+ endOfLastMatch = position + searchLength;
1134
+ position = position + advanceBy > string.length ? -1 : indexOf$1(string, searchString, position + advanceBy);
1135
+ }
1136
+ if (endOfLastMatch < string.length) {
1137
+ result += stringSlice$3(string, endOfLastMatch);
1138
+ }
1139
+ return result;
1140
+ }
1141
+ });
1142
+ var fails$4 = fails$d;
1143
+ var globalThis$4 = globalThis_1;
1144
+
1145
+ // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1146
+ var $RegExp$2 = globalThis$4.RegExp;
1147
+ var UNSUPPORTED_Y$1 = fails$4(function () {
1148
+ var re = $RegExp$2('a', 'y');
1149
+ re.lastIndex = 2;
1150
+ return re.exec('abcd') !== null;
1151
+ });
1152
+
1153
+ // UC Browser bug
1154
+ // https://github.com/zloirock/core-js/issues/1008
1155
+ var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$4(function () {
1156
+ return !$RegExp$2('a', 'y').sticky;
1157
+ });
1158
+ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$4(function () {
1159
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1160
+ var re = $RegExp$2('^r', 'gy');
1161
+ re.lastIndex = 2;
1162
+ return re.exec('str') !== null;
1163
+ });
1164
+ var regexpStickyHelpers = {
1165
+ BROKEN_CARET: BROKEN_CARET,
1166
+ MISSED_STICKY: MISSED_STICKY,
1167
+ UNSUPPORTED_Y: UNSUPPORTED_Y$1
1168
+ };
1169
+ var objectDefineProperties = {};
1170
+ var internalObjectKeys = objectKeysInternal;
1171
+ var enumBugKeys$1 = enumBugKeys$3;
1172
+
1173
+ // `Object.keys` method
1174
+ // https://tc39.es/ecma262/#sec-object.keys
1175
+ // eslint-disable-next-line es/no-object-keys -- safe
1176
+ var objectKeys$1 = Object.keys || function keys(O) {
1177
+ return internalObjectKeys(O, enumBugKeys$1);
1178
+ };
1179
+ var DESCRIPTORS = descriptors;
1180
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1181
+ var definePropertyModule = objectDefineProperty;
1182
+ var anObject$3 = anObject$7;
1183
+ var toIndexedObject = toIndexedObject$4;
1184
+ var objectKeys = objectKeys$1;
1185
+
1186
+ // `Object.defineProperties` method
1187
+ // https://tc39.es/ecma262/#sec-object.defineproperties
1188
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
1189
+ objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1190
+ anObject$3(O);
1191
+ var props = toIndexedObject(Properties);
1192
+ var keys = objectKeys(Properties);
1193
+ var length = keys.length;
1194
+ var index = 0;
1195
+ var key;
1196
+ while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1197
+ return O;
1198
+ };
1199
+ var getBuiltIn = getBuiltIn$3;
1200
+ var html$1 = getBuiltIn('document', 'documentElement');
1201
+
1202
+ /* global ActiveXObject -- old IE, WSH */
1203
+ var anObject$2 = anObject$7;
1204
+ var definePropertiesModule = objectDefineProperties;
1205
+ var enumBugKeys = enumBugKeys$3;
1206
+ var hiddenKeys = hiddenKeys$4;
1207
+ var html = html$1;
1208
+ var documentCreateElement = documentCreateElement$1;
1209
+ var sharedKey = sharedKey$2;
1210
+ var GT = '>';
1211
+ var LT = '<';
1212
+ var PROTOTYPE = 'prototype';
1213
+ var SCRIPT = 'script';
1214
+ var IE_PROTO = sharedKey('IE_PROTO');
1215
+ var EmptyConstructor = function EmptyConstructor() {/* empty */};
1216
+ var scriptTag = function scriptTag(content) {
1217
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1218
+ };
1219
+
1220
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1221
+ var NullProtoObjectViaActiveX = function NullProtoObjectViaActiveX(activeXDocument) {
1222
+ activeXDocument.write(scriptTag(''));
1223
+ activeXDocument.close();
1224
+ var temp = activeXDocument.parentWindow.Object;
1225
+ // eslint-disable-next-line no-useless-assignment -- avoid memory leak
1226
+ activeXDocument = null;
1227
+ return temp;
1228
+ };
1229
+
1230
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
1231
+ var NullProtoObjectViaIFrame = function NullProtoObjectViaIFrame() {
1232
+ // Thrash, waste and sodomy: IE GC bug
1233
+ var iframe = documentCreateElement('iframe');
1234
+ var JS = 'java' + SCRIPT + ':';
1235
+ var iframeDocument;
1236
+ iframe.style.display = 'none';
1237
+ html.appendChild(iframe);
1238
+ // https://github.com/zloirock/core-js/issues/475
1239
+ iframe.src = String(JS);
1240
+ iframeDocument = iframe.contentWindow.document;
1241
+ iframeDocument.open();
1242
+ iframeDocument.write(scriptTag('document.F=Object'));
1243
+ iframeDocument.close();
1244
+ return iframeDocument.F;
1245
+ };
1246
+
1247
+ // Check for document.domain and active x support
1248
+ // No need to use active x approach when document.domain is not set
1249
+ // see https://github.com/es-shims/es5-shim/issues/150
1250
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1251
+ // avoid IE GC bug
1252
+ var activeXDocument;
1253
+ var _NullProtoObject = function NullProtoObject() {
1254
+ try {
1255
+ activeXDocument = new ActiveXObject('htmlfile');
1256
+ } catch (error) {/* ignore */}
1257
+ _NullProtoObject = typeof document != 'undefined' ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1258
+ : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument); // WSH
1259
+ var length = enumBugKeys.length;
1260
+ while (length--) delete _NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1261
+ return _NullProtoObject();
1262
+ };
1263
+ hiddenKeys[IE_PROTO] = true;
1264
+
1265
+ // `Object.create` method
1266
+ // https://tc39.es/ecma262/#sec-object.create
1267
+ // eslint-disable-next-line es/no-object-create -- safe
1268
+ var objectCreate = Object.create || function create(O, Properties) {
1269
+ var result;
1270
+ if (O !== null) {
1271
+ EmptyConstructor[PROTOTYPE] = anObject$2(O);
1272
+ result = new EmptyConstructor();
1273
+ EmptyConstructor[PROTOTYPE] = null;
1274
+ // add "__proto__" for Object.getPrototypeOf polyfill
1275
+ result[IE_PROTO] = O;
1276
+ } else result = _NullProtoObject();
1277
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1278
+ };
1279
+ var fails$3 = fails$d;
1280
+ var globalThis$3 = globalThis_1;
1281
+
1282
+ // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1283
+ var $RegExp$1 = globalThis$3.RegExp;
1284
+ var regexpUnsupportedDotAll = fails$3(function () {
1285
+ var re = $RegExp$1('.', 's');
1286
+ return !(re.dotAll && re.test('\n') && re.flags === 's');
1287
+ });
1288
+ var fails$2 = fails$d;
1289
+ var globalThis$2 = globalThis_1;
1290
+
1291
+ // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1292
+ var $RegExp = globalThis$2.RegExp;
1293
+ var regexpUnsupportedNcg = fails$2(function () {
1294
+ var re = $RegExp('(?<a>b)', 'g');
1295
+ return re.exec('b').groups.a !== 'b' || 'b'.replace(re, '$<a>c') !== 'bc';
1296
+ });
1297
+
1298
+ /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
1299
+ /* eslint-disable regexp/no-useless-quantifier -- testing */
1300
+ var call$4 = functionCall;
1301
+ var uncurryThis$3 = functionUncurryThis;
1302
+ var toString$2 = toString$4;
1303
+ var regexpFlags = regexpFlags$1;
1304
+ var stickyHelpers = regexpStickyHelpers;
1305
+ var shared = shared$4;
1306
+ var create = objectCreate;
1307
+ var getInternalState = internalState.get;
1308
+ var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
1309
+ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
1310
+ var nativeReplace = shared('native-string-replace', String.prototype.replace);
1311
+ var nativeExec = RegExp.prototype.exec;
1312
+ var patchedExec = nativeExec;
1313
+ var charAt$2 = uncurryThis$3(''.charAt);
1314
+ var indexOf = uncurryThis$3(''.indexOf);
1315
+ var replace = uncurryThis$3(''.replace);
1316
+ var stringSlice$2 = uncurryThis$3(''.slice);
1317
+ var UPDATES_LAST_INDEX_WRONG = function () {
1318
+ var re1 = /a/;
1319
+ var re2 = /b*/g;
1320
+ call$4(nativeExec, re1, 'a');
1321
+ call$4(nativeExec, re2, 'a');
1322
+ return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1323
+ }();
1324
+ var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
1325
+
1326
+ // nonparticipating capturing group, copied from es5-shim's String#split patch.
1327
+ var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1328
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
1329
+ if (PATCH) {
1330
+ patchedExec = function exec(string) {
1331
+ var re = this;
1332
+ var state = getInternalState(re);
1333
+ var str = toString$2(string);
1334
+ var raw = state.raw;
1335
+ var result, reCopy, lastIndex, match, i, object, group;
1336
+ if (raw) {
1337
+ raw.lastIndex = re.lastIndex;
1338
+ result = call$4(patchedExec, raw, str);
1339
+ re.lastIndex = raw.lastIndex;
1340
+ return result;
1341
+ }
1342
+ var groups = state.groups;
1343
+ var sticky = UNSUPPORTED_Y && re.sticky;
1344
+ var flags = call$4(regexpFlags, re);
1345
+ var source = re.source;
1346
+ var charsAdded = 0;
1347
+ var strCopy = str;
1348
+ if (sticky) {
1349
+ flags = replace(flags, 'y', '');
1350
+ if (indexOf(flags, 'g') === -1) {
1351
+ flags += 'g';
1352
+ }
1353
+ strCopy = stringSlice$2(str, re.lastIndex);
1354
+ // Support anchored sticky behavior.
1355
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$2(str, re.lastIndex - 1) !== '\n')) {
1356
+ source = '(?: ' + source + ')';
1357
+ strCopy = ' ' + strCopy;
1358
+ charsAdded++;
1359
+ }
1360
+ // ^(? + rx + ) is needed, in combination with some str slicing, to
1361
+ // simulate the 'y' flag.
1362
+ reCopy = new RegExp('^(?:' + source + ')', flags);
1363
+ }
1364
+ if (NPCG_INCLUDED) {
1365
+ reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
1366
+ }
1367
+ if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
1368
+ match = call$4(nativeExec, sticky ? reCopy : re, strCopy);
1369
+ if (sticky) {
1370
+ if (match) {
1371
+ match.input = stringSlice$2(match.input, charsAdded);
1372
+ match[0] = stringSlice$2(match[0], charsAdded);
1373
+ match.index = re.lastIndex;
1374
+ re.lastIndex += match[0].length;
1375
+ } else re.lastIndex = 0;
1376
+ } else if (UPDATES_LAST_INDEX_WRONG && match) {
1377
+ re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
1378
+ }
1379
+ if (NPCG_INCLUDED && match && match.length > 1) {
1380
+ // Fix browsers whose `exec` methods don't consistently return `undefined`
1381
+ // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
1382
+ call$4(nativeReplace, match[0], reCopy, function () {
1383
+ for (i = 1; i < arguments.length - 2; i++) {
1384
+ if (arguments[i] === undefined) match[i] = undefined;
1385
+ }
1386
+ });
1387
+ }
1388
+ if (match && groups) {
1389
+ match.groups = object = create(null);
1390
+ for (i = 0; i < groups.length; i++) {
1391
+ group = groups[i];
1392
+ object[group[0]] = match[group[1]];
1393
+ }
1394
+ }
1395
+ return match;
1396
+ };
1397
+ }
1398
+ var regexpExec$2 = patchedExec;
1399
+ var $ = _export;
1400
+ var exec = regexpExec$2;
1401
+
1402
+ // `RegExp.prototype.exec` method
1403
+ // https://tc39.es/ecma262/#sec-regexp.prototype.exec
1404
+ $({
1405
+ target: 'RegExp',
1406
+ proto: true,
1407
+ forced: /./.exec !== exec
1408
+ }, {
1409
+ exec: exec
1410
+ });
1411
+ var NATIVE_BIND = functionBindNative;
1412
+ var FunctionPrototype = Function.prototype;
1413
+ var apply$1 = FunctionPrototype.apply;
1414
+ var call$3 = FunctionPrototype.call;
1415
+
1416
+ // eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe
1417
+ var functionApply = (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) == 'object' && Reflect.apply || (NATIVE_BIND ? call$3.bind(apply$1) : function () {
1418
+ return call$3.apply(apply$1, arguments);
1419
+ });
1420
+
1421
+ // TODO: Remove from `core-js@4` since it's moved to entry points
1422
+
1423
+ var call$2 = functionCall;
1424
+ var defineBuiltIn = defineBuiltIn$2;
1425
+ var regexpExec$1 = regexpExec$2;
1426
+ var fails$1 = fails$d;
1427
+ var wellKnownSymbol$1 = wellKnownSymbol$7;
1428
+ var createNonEnumerableProperty = createNonEnumerableProperty$3;
1429
+ var SPECIES = wellKnownSymbol$1('species');
1430
+ var RegExpPrototype = RegExp.prototype;
1431
+ var fixRegexpWellKnownSymbolLogic = function fixRegexpWellKnownSymbolLogic(KEY, exec, FORCED, SHAM) {
1432
+ var SYMBOL = wellKnownSymbol$1(KEY);
1433
+ var DELEGATES_TO_SYMBOL = !fails$1(function () {
1434
+ // String methods call symbol-named RegExp methods
1435
+ var O = {};
1436
+ O[SYMBOL] = function () {
1437
+ return 7;
1438
+ };
1439
+ return ''[KEY](O) !== 7;
1440
+ });
1441
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
1442
+ // Symbol-named RegExp methods call .exec
1443
+ var execCalled = false;
1444
+ var re = /a/;
1445
+ if (KEY === 'split') {
1446
+ // We can't use real regex here since it causes deoptimization
1447
+ // and serious performance degradation in V8
1448
+ // https://github.com/zloirock/core-js/issues/306
1449
+ re = {};
1450
+ // RegExp[@@split] doesn't call the regex's exec method, but first creates
1451
+ // a new one. We need to return the patched regex when creating the new one.
1452
+ re.constructor = {};
1453
+ re.constructor[SPECIES] = function () {
1454
+ return re;
1455
+ };
1456
+ re.flags = '';
1457
+ re[SYMBOL] = /./[SYMBOL];
1458
+ }
1459
+ re.exec = function () {
1460
+ execCalled = true;
1461
+ return null;
1462
+ };
1463
+ re[SYMBOL]('');
1464
+ return !execCalled;
1465
+ });
1466
+ if (!DELEGATES_TO_SYMBOL || !DELEGATES_TO_EXEC || FORCED) {
1467
+ var nativeRegExpMethod = /./[SYMBOL];
1468
+ var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
1469
+ var $exec = regexp.exec;
1470
+ if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
1471
+ if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1472
+ // The native String method already delegates to @@method (this
1473
+ // polyfilled function), leasing to infinite recursion.
1474
+ // We avoid it by directly calling the native @@method method.
1475
+ return {
1476
+ done: true,
1477
+ value: call$2(nativeRegExpMethod, regexp, str, arg2)
1478
+ };
1479
+ }
1480
+ return {
1481
+ done: true,
1482
+ value: call$2(nativeMethod, str, regexp, arg2)
1483
+ };
1484
+ }
1485
+ return {
1486
+ done: false
1487
+ };
1488
+ });
1489
+ defineBuiltIn(String.prototype, KEY, methods[0]);
1490
+ defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
1491
+ }
1492
+ if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
1493
+ };
1494
+ var uncurryThis$2 = functionUncurryThis;
1495
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
1496
+ var toString$1 = toString$4;
1497
+ var requireObjectCoercible$1 = requireObjectCoercible$5;
1498
+ var charAt$1 = uncurryThis$2(''.charAt);
1499
+ var charCodeAt = uncurryThis$2(''.charCodeAt);
1500
+ var stringSlice$1 = uncurryThis$2(''.slice);
1501
+ var createMethod = function createMethod(CONVERT_TO_STRING) {
1502
+ return function ($this, pos) {
1503
+ var S = toString$1(requireObjectCoercible$1($this));
1504
+ var position = toIntegerOrInfinity$1(pos);
1505
+ var size = S.length;
1506
+ var first, second;
1507
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1508
+ first = charCodeAt(S, position);
1509
+ return first < 0xD800 || first > 0xDBFF || position + 1 === size || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF ? CONVERT_TO_STRING ? charAt$1(S, position) : first : CONVERT_TO_STRING ? stringSlice$1(S, position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1510
+ };
1511
+ };
1512
+ var stringMultibyte = {
1513
+ // `String.prototype.codePointAt` method
1514
+ // https://tc39.es/ecma262/#sec-string.prototype.codepointat
1515
+ codeAt: createMethod(false),
1516
+ // `String.prototype.at` method
1517
+ // https://github.com/mathiasbynens/String.prototype.at
1518
+ charAt: createMethod(true)
1519
+ };
1520
+ var charAt = stringMultibyte.charAt;
1521
+
1522
+ // `AdvanceStringIndex` abstract operation
1523
+ // https://tc39.es/ecma262/#sec-advancestringindex
1524
+ var advanceStringIndex$1 = function advanceStringIndex$1(S, index, unicode) {
1525
+ return index + (unicode ? charAt(S, index).length : 1);
1526
+ };
1527
+ var call$1 = functionCall;
1528
+ var anObject$1 = anObject$7;
1529
+ var isCallable$1 = isCallable$e;
1530
+ var classof = classofRaw$1;
1531
+ var regexpExec = regexpExec$2;
1532
+ var $TypeError = TypeError;
1533
+
1534
+ // `RegExpExec` abstract operation
1535
+ // https://tc39.es/ecma262/#sec-regexpexec
1536
+ var regexpExecAbstract = function regexpExecAbstract(R, S) {
1537
+ var exec = R.exec;
1538
+ if (isCallable$1(exec)) {
1539
+ var result = call$1(exec, R, S);
1540
+ if (result !== null) anObject$1(result);
1541
+ return result;
1542
+ }
1543
+ if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
1544
+ throw new $TypeError('RegExp#exec called on incompatible receiver');
1545
+ };
1546
+ var apply = functionApply;
1547
+ var call = functionCall;
1548
+ var uncurryThis$1 = functionUncurryThis;
1549
+ var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
1550
+ var fails = fails$d;
1551
+ var anObject = anObject$7;
1552
+ var isCallable = isCallable$e;
1553
+ var isNullOrUndefined = isNullOrUndefined$4;
1554
+ var toIntegerOrInfinity = toIntegerOrInfinity$4;
1555
+ var toLength = toLength$2;
1556
+ var toString = toString$4;
1557
+ var requireObjectCoercible = requireObjectCoercible$5;
1558
+ var advanceStringIndex = advanceStringIndex$1;
1559
+ var getMethod = getMethod$3;
1560
+ var getSubstitution = getSubstitution$2;
1561
+ var regExpExec = regexpExecAbstract;
1562
+ var wellKnownSymbol = wellKnownSymbol$7;
1563
+ var REPLACE = wellKnownSymbol('replace');
1564
+ var max = Math.max;
1565
+ var min = Math.min;
1566
+ var concat = uncurryThis$1([].concat);
1567
+ var push = uncurryThis$1([].push);
1568
+ var stringIndexOf = uncurryThis$1(''.indexOf);
1569
+ var stringSlice = uncurryThis$1(''.slice);
1570
+ var maybeToString = function maybeToString(it) {
1571
+ return it === undefined ? it : String(it);
1572
+ };
1573
+
1574
+ // IE <= 11 replaces $0 with the whole match, as if it was $&
1575
+ // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
1576
+ var REPLACE_KEEPS_$0 = function () {
1577
+ // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
1578
+ return 'a'.replace(/./, '$0') === '$0';
1579
+ }();
1580
+
1581
+ // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
1582
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = function () {
1583
+ if (/./[REPLACE]) {
1584
+ return /./[REPLACE]('a', '$0') === '';
1585
+ }
1586
+ return false;
1587
+ }();
1588
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
1589
+ var re = /./;
1590
+ re.exec = function () {
1591
+ var result = [];
1592
+ result.groups = {
1593
+ a: '7'
1594
+ };
1595
+ return result;
1596
+ };
1597
+ // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
1598
+ return ''.replace(re, '$<a>') !== '7';
1599
+ });
1600
+
1601
+ // @@replace logic
1602
+ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
1603
+ var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
1604
+ return [
1605
+ // `String.prototype.replace` method
1606
+ // https://tc39.es/ecma262/#sec-string.prototype.replace
1607
+ function replace(searchValue, replaceValue) {
1608
+ var O = requireObjectCoercible(this);
1609
+ var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
1610
+ return replacer ? call(replacer, searchValue, O, replaceValue) : call(nativeReplace, toString(O), searchValue, replaceValue);
1611
+ },
1612
+ // `RegExp.prototype[@@replace]` method
1613
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
1614
+ function (string, replaceValue) {
1615
+ var rx = anObject(this);
1616
+ var S = toString(string);
1617
+ if (typeof replaceValue == 'string' && stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 && stringIndexOf(replaceValue, '$<') === -1) {
1618
+ var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
1619
+ if (res.done) return res.value;
1620
+ }
1621
+ var functionalReplace = isCallable(replaceValue);
1622
+ if (!functionalReplace) replaceValue = toString(replaceValue);
1623
+ var global = rx.global;
1624
+ var fullUnicode;
1625
+ if (global) {
1626
+ fullUnicode = rx.unicode;
1627
+ rx.lastIndex = 0;
1628
+ }
1629
+ var results = [];
1630
+ var result;
1631
+ while (true) {
1632
+ result = regExpExec(rx, S);
1633
+ if (result === null) break;
1634
+ push(results, result);
1635
+ if (!global) break;
1636
+ var matchStr = toString(result[0]);
1637
+ if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1638
+ }
1639
+ var accumulatedResult = '';
1640
+ var nextSourcePosition = 0;
1641
+ for (var i = 0; i < results.length; i++) {
1642
+ result = results[i];
1643
+ var matched = toString(result[0]);
1644
+ var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
1645
+ var captures = [];
1646
+ var replacement;
1647
+ // NOTE: This is equivalent to
1648
+ // captures = result.slice(1).map(maybeToString)
1649
+ // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
1650
+ // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
1651
+ // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
1652
+ for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
1653
+ var namedCaptures = result.groups;
1654
+ if (functionalReplace) {
1655
+ var replacerArgs = concat([matched], captures, position, S);
1656
+ if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
1657
+ replacement = toString(apply(replaceValue, undefined, replacerArgs));
1658
+ } else {
1659
+ replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
1660
+ }
1661
+ if (position >= nextSourcePosition) {
1662
+ accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
1663
+ nextSourcePosition = position + matched.length;
1664
+ }
1665
+ }
1666
+ return accumulatedResult + stringSlice(S, nextSourcePosition);
1667
+ }];
1668
+ }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
1669
+ var globalThis$1 = globalThis_1;
1670
+ var uncurryThis = functionUncurryThis;
1671
+ var entryUnbind$1 = function entryUnbind$1(CONSTRUCTOR, METHOD) {
1672
+ return uncurryThis(globalThis$1[CONSTRUCTOR].prototype[METHOD]);
1673
+ };
1674
+ var entryUnbind = entryUnbind$1;
1675
+ entryUnbind('String', 'replaceAll');
83
1676
  function styleInject(css, ref) {
84
1677
  if (ref === void 0) ref = {};
85
1678
  var insertAt = ref.insertAt;