@fluxo-dev/shell-reporting 26.1.1 → 26.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +5671 -9
- package/package.json +4 -4
- package/src/index.d.ts +5 -1
- package/src/lib/print-report-button/index.d.ts +2 -0
- package/src/lib/print-report-button/print-report-button.d.ts +24 -0
- package/src/lib/print-report-button/print-report-configuration.d.ts +18 -0
- package/src/lib/reports-manager/reports-manager.d.ts +1 -1
- package/index.esm2.js +0 -4326
- package/reports-manager.esm.js +0 -694
- package/src/lib/fluxo-module.d.ts +0 -2
- package/src/lib/reports-manager/reports-navigation.d.ts +0 -3
package/index.esm2.js
DELETED
|
@@ -1,4326 +0,0 @@
|
|
|
1
|
-
import { EmbeddedModule, FluxoClientSys } from '@fluxo-dev/api-client-base';
|
|
2
|
-
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
3
|
-
import { lazy, Suspense, forwardRef, createElement as createElement$2, useState, useEffect, useCallback, useRef } from 'react';
|
|
4
|
-
import { Stack, TextInput, NumberInput, Switch, Loader, Select, Box, Group, Text, Divider, Button, Center, LoadingOverlay, Modal } from '@mantine/core';
|
|
5
|
-
import { DatePickerInput } from '@mantine/dates';
|
|
6
|
-
import { showNotification } from '@mantine/notifications';
|
|
7
|
-
import { NoData } from '@fluxo-dev/ui-components';
|
|
8
|
-
import { useParams } from 'react-router-dom';
|
|
9
|
-
|
|
10
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
11
|
-
|
|
12
|
-
var check = function (it) {
|
|
13
|
-
return it && it.Math === Math && it;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
17
|
-
var global$m =
|
|
18
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
|
19
|
-
check(typeof globalThis == 'object' && globalThis) ||
|
|
20
|
-
check(typeof window == 'object' && window) ||
|
|
21
|
-
// eslint-disable-next-line no-restricted-globals -- safe
|
|
22
|
-
check(typeof self == 'object' && self) ||
|
|
23
|
-
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
24
|
-
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
25
|
-
// eslint-disable-next-line no-new-func -- fallback
|
|
26
|
-
(function () { return this; })() || Function('return this')();
|
|
27
|
-
|
|
28
|
-
var objectGetOwnPropertyDescriptor = {};
|
|
29
|
-
|
|
30
|
-
var fails$m = function (exec) {
|
|
31
|
-
try {
|
|
32
|
-
return !!exec();
|
|
33
|
-
} catch (error) {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
var fails$l = fails$m;
|
|
39
|
-
|
|
40
|
-
// Detect IE8's incomplete defineProperty implementation
|
|
41
|
-
var descriptors = !fails$l(function () {
|
|
42
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
43
|
-
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
var fails$k = fails$m;
|
|
47
|
-
|
|
48
|
-
var functionBindNative = !fails$k(function () {
|
|
49
|
-
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
50
|
-
var test = (function () { /* empty */ }).bind();
|
|
51
|
-
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
52
|
-
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
var NATIVE_BIND$3 = functionBindNative;
|
|
56
|
-
|
|
57
|
-
var call$l = Function.prototype.call;
|
|
58
|
-
|
|
59
|
-
var functionCall = NATIVE_BIND$3 ? call$l.bind(call$l) : function () {
|
|
60
|
-
return call$l.apply(call$l, arguments);
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
var objectPropertyIsEnumerable = {};
|
|
64
|
-
|
|
65
|
-
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
66
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
67
|
-
var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
|
|
68
|
-
|
|
69
|
-
// Nashorn ~ JDK8 bug
|
|
70
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$3 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
71
|
-
|
|
72
|
-
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
73
|
-
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
74
|
-
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
75
|
-
var descriptor = getOwnPropertyDescriptor$3(this, V);
|
|
76
|
-
return !!descriptor && descriptor.enumerable;
|
|
77
|
-
} : $propertyIsEnumerable;
|
|
78
|
-
|
|
79
|
-
var createPropertyDescriptor$4 = function (bitmap, value) {
|
|
80
|
-
return {
|
|
81
|
-
enumerable: !(bitmap & 1),
|
|
82
|
-
configurable: !(bitmap & 2),
|
|
83
|
-
writable: !(bitmap & 4),
|
|
84
|
-
value: value
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
var NATIVE_BIND$2 = functionBindNative;
|
|
89
|
-
|
|
90
|
-
var FunctionPrototype$2 = Function.prototype;
|
|
91
|
-
var call$k = FunctionPrototype$2.call;
|
|
92
|
-
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$k, call$k);
|
|
93
|
-
|
|
94
|
-
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
95
|
-
return function () {
|
|
96
|
-
return call$k.apply(fn, arguments);
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
var uncurryThis$i = functionUncurryThis;
|
|
101
|
-
|
|
102
|
-
var toString$5 = uncurryThis$i({}.toString);
|
|
103
|
-
var stringSlice$5 = uncurryThis$i(''.slice);
|
|
104
|
-
|
|
105
|
-
var classofRaw$2 = function (it) {
|
|
106
|
-
return stringSlice$5(toString$5(it), 8, -1);
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
var uncurryThis$h = functionUncurryThis;
|
|
110
|
-
var fails$j = fails$m;
|
|
111
|
-
var classof$7 = classofRaw$2;
|
|
112
|
-
|
|
113
|
-
var $Object$4 = Object;
|
|
114
|
-
var split = uncurryThis$h(''.split);
|
|
115
|
-
|
|
116
|
-
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
117
|
-
var indexedObject = fails$j(function () {
|
|
118
|
-
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
119
|
-
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
120
|
-
return !$Object$4('z').propertyIsEnumerable(0);
|
|
121
|
-
}) ? function (it) {
|
|
122
|
-
return classof$7(it) === 'String' ? split(it, '') : $Object$4(it);
|
|
123
|
-
} : $Object$4;
|
|
124
|
-
|
|
125
|
-
// we can't use just `it == null` since of `document.all` special case
|
|
126
|
-
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
127
|
-
var isNullOrUndefined$5 = function (it) {
|
|
128
|
-
return it === null || it === undefined;
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
var isNullOrUndefined$4 = isNullOrUndefined$5;
|
|
132
|
-
|
|
133
|
-
var $TypeError$g = TypeError;
|
|
134
|
-
|
|
135
|
-
// `RequireObjectCoercible` abstract operation
|
|
136
|
-
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
137
|
-
var requireObjectCoercible$5 = function (it) {
|
|
138
|
-
if (isNullOrUndefined$4(it)) throw new $TypeError$g("Can't call method on " + it);
|
|
139
|
-
return it;
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
// toObject with fallback for non-array-like ES3 strings
|
|
143
|
-
var IndexedObject$1 = indexedObject;
|
|
144
|
-
var requireObjectCoercible$4 = requireObjectCoercible$5;
|
|
145
|
-
|
|
146
|
-
var toIndexedObject$5 = function (it) {
|
|
147
|
-
return IndexedObject$1(requireObjectCoercible$4(it));
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
151
|
-
var documentAll = typeof document == 'object' && document.all;
|
|
152
|
-
|
|
153
|
-
// `IsCallable` abstract operation
|
|
154
|
-
// https://tc39.es/ecma262/#sec-iscallable
|
|
155
|
-
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
156
|
-
var isCallable$m = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
157
|
-
return typeof argument == 'function' || argument === documentAll;
|
|
158
|
-
} : function (argument) {
|
|
159
|
-
return typeof argument == 'function';
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
var isCallable$l = isCallable$m;
|
|
163
|
-
|
|
164
|
-
var isObject$a = function (it) {
|
|
165
|
-
return typeof it == 'object' ? it !== null : isCallable$l(it);
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
var global$l = global$m;
|
|
169
|
-
var isCallable$k = isCallable$m;
|
|
170
|
-
|
|
171
|
-
var aFunction = function (argument) {
|
|
172
|
-
return isCallable$k(argument) ? argument : undefined;
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
var getBuiltIn$7 = function (namespace, method) {
|
|
176
|
-
return arguments.length < 2 ? aFunction(global$l[namespace]) : global$l[namespace] && global$l[namespace][method];
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
var uncurryThis$g = functionUncurryThis;
|
|
180
|
-
|
|
181
|
-
var objectIsPrototypeOf = uncurryThis$g({}.isPrototypeOf);
|
|
182
|
-
|
|
183
|
-
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
184
|
-
|
|
185
|
-
var global$k = global$m;
|
|
186
|
-
var userAgent$3 = engineUserAgent;
|
|
187
|
-
|
|
188
|
-
var process$3 = global$k.process;
|
|
189
|
-
var Deno$1 = global$k.Deno;
|
|
190
|
-
var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
|
|
191
|
-
var v8 = versions && versions.v8;
|
|
192
|
-
var match, version;
|
|
193
|
-
|
|
194
|
-
if (v8) {
|
|
195
|
-
match = v8.split('.');
|
|
196
|
-
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
197
|
-
// but their correct versions are not interesting for us
|
|
198
|
-
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
202
|
-
// so check `userAgent` even if `.v8` exists, but 0
|
|
203
|
-
if (!version && userAgent$3) {
|
|
204
|
-
match = userAgent$3.match(/Edge\/(\d+)/);
|
|
205
|
-
if (!match || match[1] >= 74) {
|
|
206
|
-
match = userAgent$3.match(/Chrome\/(\d+)/);
|
|
207
|
-
if (match) version = +match[1];
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
var engineV8Version = version;
|
|
212
|
-
|
|
213
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
214
|
-
var V8_VERSION$1 = engineV8Version;
|
|
215
|
-
var fails$i = fails$m;
|
|
216
|
-
var global$j = global$m;
|
|
217
|
-
|
|
218
|
-
var $String$5 = global$j.String;
|
|
219
|
-
|
|
220
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
221
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$i(function () {
|
|
222
|
-
var symbol = Symbol('symbol detection');
|
|
223
|
-
// Chrome 38 Symbol has incorrect toString conversion
|
|
224
|
-
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
225
|
-
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
226
|
-
// of course, fail.
|
|
227
|
-
return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
228
|
-
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
229
|
-
!Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
|
|
230
|
-
});
|
|
231
|
-
|
|
232
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
233
|
-
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
234
|
-
|
|
235
|
-
var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
236
|
-
&& !Symbol.sham
|
|
237
|
-
&& typeof Symbol.iterator == 'symbol';
|
|
238
|
-
|
|
239
|
-
var getBuiltIn$6 = getBuiltIn$7;
|
|
240
|
-
var isCallable$j = isCallable$m;
|
|
241
|
-
var isPrototypeOf$3 = objectIsPrototypeOf;
|
|
242
|
-
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
243
|
-
|
|
244
|
-
var $Object$3 = Object;
|
|
245
|
-
|
|
246
|
-
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
247
|
-
return typeof it == 'symbol';
|
|
248
|
-
} : function (it) {
|
|
249
|
-
var $Symbol = getBuiltIn$6('Symbol');
|
|
250
|
-
return isCallable$j($Symbol) && isPrototypeOf$3($Symbol.prototype, $Object$3(it));
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
var $String$4 = String;
|
|
254
|
-
|
|
255
|
-
var tryToString$4 = function (argument) {
|
|
256
|
-
try {
|
|
257
|
-
return $String$4(argument);
|
|
258
|
-
} catch (error) {
|
|
259
|
-
return 'Object';
|
|
260
|
-
}
|
|
261
|
-
};
|
|
262
|
-
|
|
263
|
-
var isCallable$i = isCallable$m;
|
|
264
|
-
var tryToString$3 = tryToString$4;
|
|
265
|
-
|
|
266
|
-
var $TypeError$f = TypeError;
|
|
267
|
-
|
|
268
|
-
// `Assert: IsCallable(argument) is true`
|
|
269
|
-
var aCallable$c = function (argument) {
|
|
270
|
-
if (isCallable$i(argument)) return argument;
|
|
271
|
-
throw new $TypeError$f(tryToString$3(argument) + ' is not a function');
|
|
272
|
-
};
|
|
273
|
-
|
|
274
|
-
var aCallable$b = aCallable$c;
|
|
275
|
-
var isNullOrUndefined$3 = isNullOrUndefined$5;
|
|
276
|
-
|
|
277
|
-
// `GetMethod` abstract operation
|
|
278
|
-
// https://tc39.es/ecma262/#sec-getmethod
|
|
279
|
-
var getMethod$5 = function (V, P) {
|
|
280
|
-
var func = V[P];
|
|
281
|
-
return isNullOrUndefined$3(func) ? undefined : aCallable$b(func);
|
|
282
|
-
};
|
|
283
|
-
|
|
284
|
-
var call$j = functionCall;
|
|
285
|
-
var isCallable$h = isCallable$m;
|
|
286
|
-
var isObject$9 = isObject$a;
|
|
287
|
-
|
|
288
|
-
var $TypeError$e = TypeError;
|
|
289
|
-
|
|
290
|
-
// `OrdinaryToPrimitive` abstract operation
|
|
291
|
-
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
292
|
-
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
293
|
-
var fn, val;
|
|
294
|
-
if (pref === 'string' && isCallable$h(fn = input.toString) && !isObject$9(val = call$j(fn, input))) return val;
|
|
295
|
-
if (isCallable$h(fn = input.valueOf) && !isObject$9(val = call$j(fn, input))) return val;
|
|
296
|
-
if (pref !== 'string' && isCallable$h(fn = input.toString) && !isObject$9(val = call$j(fn, input))) return val;
|
|
297
|
-
throw new $TypeError$e("Can't convert object to primitive value");
|
|
298
|
-
};
|
|
299
|
-
|
|
300
|
-
var sharedStore = {exports: {}};
|
|
301
|
-
|
|
302
|
-
var isPure = false;
|
|
303
|
-
|
|
304
|
-
var global$i = global$m;
|
|
305
|
-
|
|
306
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
307
|
-
var defineProperty$6 = Object.defineProperty;
|
|
308
|
-
|
|
309
|
-
var defineGlobalProperty$3 = function (key, value) {
|
|
310
|
-
try {
|
|
311
|
-
defineProperty$6(global$i, key, { value: value, configurable: true, writable: true });
|
|
312
|
-
} catch (error) {
|
|
313
|
-
global$i[key] = value;
|
|
314
|
-
} return value;
|
|
315
|
-
};
|
|
316
|
-
|
|
317
|
-
var globalThis$1 = global$m;
|
|
318
|
-
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
319
|
-
|
|
320
|
-
var SHARED = '__core-js_shared__';
|
|
321
|
-
var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
322
|
-
|
|
323
|
-
(store$3.versions || (store$3.versions = [])).push({
|
|
324
|
-
version: '3.36.1',
|
|
325
|
-
mode: 'global',
|
|
326
|
-
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
327
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
|
|
328
|
-
source: 'https://github.com/zloirock/core-js'
|
|
329
|
-
});
|
|
330
|
-
|
|
331
|
-
var sharedStoreExports = sharedStore.exports;
|
|
332
|
-
|
|
333
|
-
var store$2 = sharedStoreExports;
|
|
334
|
-
|
|
335
|
-
var shared$4 = function (key, value) {
|
|
336
|
-
return store$2[key] || (store$2[key] = value || {});
|
|
337
|
-
};
|
|
338
|
-
|
|
339
|
-
var requireObjectCoercible$3 = requireObjectCoercible$5;
|
|
340
|
-
|
|
341
|
-
var $Object$2 = Object;
|
|
342
|
-
|
|
343
|
-
// `ToObject` abstract operation
|
|
344
|
-
// https://tc39.es/ecma262/#sec-toobject
|
|
345
|
-
var toObject$5 = function (argument) {
|
|
346
|
-
return $Object$2(requireObjectCoercible$3(argument));
|
|
347
|
-
};
|
|
348
|
-
|
|
349
|
-
var uncurryThis$f = functionUncurryThis;
|
|
350
|
-
var toObject$4 = toObject$5;
|
|
351
|
-
|
|
352
|
-
var hasOwnProperty = uncurryThis$f({}.hasOwnProperty);
|
|
353
|
-
|
|
354
|
-
// `HasOwnProperty` abstract operation
|
|
355
|
-
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
356
|
-
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
357
|
-
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
358
|
-
return hasOwnProperty(toObject$4(it), key);
|
|
359
|
-
};
|
|
360
|
-
|
|
361
|
-
var uncurryThis$e = functionUncurryThis;
|
|
362
|
-
|
|
363
|
-
var id = 0;
|
|
364
|
-
var postfix = Math.random();
|
|
365
|
-
var toString$4 = uncurryThis$e(1.0.toString);
|
|
366
|
-
|
|
367
|
-
var uid$2 = function (key) {
|
|
368
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
|
|
369
|
-
};
|
|
370
|
-
|
|
371
|
-
var global$h = global$m;
|
|
372
|
-
var shared$3 = shared$4;
|
|
373
|
-
var hasOwn$b = hasOwnProperty_1;
|
|
374
|
-
var uid$1 = uid$2;
|
|
375
|
-
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
376
|
-
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
377
|
-
|
|
378
|
-
var Symbol$1 = global$h.Symbol;
|
|
379
|
-
var WellKnownSymbolsStore = shared$3('wks');
|
|
380
|
-
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
381
|
-
|
|
382
|
-
var wellKnownSymbol$i = function (name) {
|
|
383
|
-
if (!hasOwn$b(WellKnownSymbolsStore, name)) {
|
|
384
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$b(Symbol$1, name)
|
|
385
|
-
? Symbol$1[name]
|
|
386
|
-
: createWellKnownSymbol('Symbol.' + name);
|
|
387
|
-
} return WellKnownSymbolsStore[name];
|
|
388
|
-
};
|
|
389
|
-
|
|
390
|
-
var call$i = functionCall;
|
|
391
|
-
var isObject$8 = isObject$a;
|
|
392
|
-
var isSymbol$1 = isSymbol$2;
|
|
393
|
-
var getMethod$4 = getMethod$5;
|
|
394
|
-
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
395
|
-
var wellKnownSymbol$h = wellKnownSymbol$i;
|
|
396
|
-
|
|
397
|
-
var $TypeError$d = TypeError;
|
|
398
|
-
var TO_PRIMITIVE = wellKnownSymbol$h('toPrimitive');
|
|
399
|
-
|
|
400
|
-
// `ToPrimitive` abstract operation
|
|
401
|
-
// https://tc39.es/ecma262/#sec-toprimitive
|
|
402
|
-
var toPrimitive$1 = function (input, pref) {
|
|
403
|
-
if (!isObject$8(input) || isSymbol$1(input)) return input;
|
|
404
|
-
var exoticToPrim = getMethod$4(input, TO_PRIMITIVE);
|
|
405
|
-
var result;
|
|
406
|
-
if (exoticToPrim) {
|
|
407
|
-
if (pref === undefined) pref = 'default';
|
|
408
|
-
result = call$i(exoticToPrim, input, pref);
|
|
409
|
-
if (!isObject$8(result) || isSymbol$1(result)) return result;
|
|
410
|
-
throw new $TypeError$d("Can't convert object to primitive value");
|
|
411
|
-
}
|
|
412
|
-
if (pref === undefined) pref = 'number';
|
|
413
|
-
return ordinaryToPrimitive(input, pref);
|
|
414
|
-
};
|
|
415
|
-
|
|
416
|
-
var toPrimitive = toPrimitive$1;
|
|
417
|
-
var isSymbol = isSymbol$2;
|
|
418
|
-
|
|
419
|
-
// `ToPropertyKey` abstract operation
|
|
420
|
-
// https://tc39.es/ecma262/#sec-topropertykey
|
|
421
|
-
var toPropertyKey$2 = function (argument) {
|
|
422
|
-
var key = toPrimitive(argument, 'string');
|
|
423
|
-
return isSymbol(key) ? key : key + '';
|
|
424
|
-
};
|
|
425
|
-
|
|
426
|
-
var global$g = global$m;
|
|
427
|
-
var isObject$7 = isObject$a;
|
|
428
|
-
|
|
429
|
-
var document$3 = global$g.document;
|
|
430
|
-
// typeof document.createElement is 'object' in old IE
|
|
431
|
-
var EXISTS$1 = isObject$7(document$3) && isObject$7(document$3.createElement);
|
|
432
|
-
|
|
433
|
-
var documentCreateElement$2 = function (it) {
|
|
434
|
-
return EXISTS$1 ? document$3.createElement(it) : {};
|
|
435
|
-
};
|
|
436
|
-
|
|
437
|
-
var DESCRIPTORS$e = descriptors;
|
|
438
|
-
var fails$h = fails$m;
|
|
439
|
-
var createElement$1 = documentCreateElement$2;
|
|
440
|
-
|
|
441
|
-
// Thanks to IE8 for its funny defineProperty
|
|
442
|
-
var ie8DomDefine = !DESCRIPTORS$e && !fails$h(function () {
|
|
443
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
444
|
-
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
445
|
-
get: function () { return 7; }
|
|
446
|
-
}).a !== 7;
|
|
447
|
-
});
|
|
448
|
-
|
|
449
|
-
var DESCRIPTORS$d = descriptors;
|
|
450
|
-
var call$h = functionCall;
|
|
451
|
-
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
452
|
-
var createPropertyDescriptor$3 = createPropertyDescriptor$4;
|
|
453
|
-
var toIndexedObject$4 = toIndexedObject$5;
|
|
454
|
-
var toPropertyKey$1 = toPropertyKey$2;
|
|
455
|
-
var hasOwn$a = hasOwnProperty_1;
|
|
456
|
-
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
457
|
-
|
|
458
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
459
|
-
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
460
|
-
|
|
461
|
-
// `Object.getOwnPropertyDescriptor` method
|
|
462
|
-
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
463
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$d ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
464
|
-
O = toIndexedObject$4(O);
|
|
465
|
-
P = toPropertyKey$1(P);
|
|
466
|
-
if (IE8_DOM_DEFINE$1) try {
|
|
467
|
-
return $getOwnPropertyDescriptor$1(O, P);
|
|
468
|
-
} catch (error) { /* empty */ }
|
|
469
|
-
if (hasOwn$a(O, P)) return createPropertyDescriptor$3(!call$h(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
470
|
-
};
|
|
471
|
-
|
|
472
|
-
var objectDefineProperty = {};
|
|
473
|
-
|
|
474
|
-
var DESCRIPTORS$c = descriptors;
|
|
475
|
-
var fails$g = fails$m;
|
|
476
|
-
|
|
477
|
-
// V8 ~ Chrome 36-
|
|
478
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
479
|
-
var v8PrototypeDefineBug = DESCRIPTORS$c && fails$g(function () {
|
|
480
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
481
|
-
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
482
|
-
value: 42,
|
|
483
|
-
writable: false
|
|
484
|
-
}).prototype !== 42;
|
|
485
|
-
});
|
|
486
|
-
|
|
487
|
-
var isObject$6 = isObject$a;
|
|
488
|
-
|
|
489
|
-
var $String$3 = String;
|
|
490
|
-
var $TypeError$c = TypeError;
|
|
491
|
-
|
|
492
|
-
// `Assert: Type(argument) is Object`
|
|
493
|
-
var anObject$j = function (argument) {
|
|
494
|
-
if (isObject$6(argument)) return argument;
|
|
495
|
-
throw new $TypeError$c($String$3(argument) + ' is not an object');
|
|
496
|
-
};
|
|
497
|
-
|
|
498
|
-
var DESCRIPTORS$b = descriptors;
|
|
499
|
-
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
500
|
-
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
501
|
-
var anObject$i = anObject$j;
|
|
502
|
-
var toPropertyKey = toPropertyKey$2;
|
|
503
|
-
|
|
504
|
-
var $TypeError$b = TypeError;
|
|
505
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
506
|
-
var $defineProperty = Object.defineProperty;
|
|
507
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
508
|
-
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
509
|
-
var ENUMERABLE = 'enumerable';
|
|
510
|
-
var CONFIGURABLE$1 = 'configurable';
|
|
511
|
-
var WRITABLE = 'writable';
|
|
512
|
-
|
|
513
|
-
// `Object.defineProperty` method
|
|
514
|
-
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
515
|
-
objectDefineProperty.f = DESCRIPTORS$b ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
516
|
-
anObject$i(O);
|
|
517
|
-
P = toPropertyKey(P);
|
|
518
|
-
anObject$i(Attributes);
|
|
519
|
-
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
520
|
-
var current = $getOwnPropertyDescriptor(O, P);
|
|
521
|
-
if (current && current[WRITABLE]) {
|
|
522
|
-
O[P] = Attributes.value;
|
|
523
|
-
Attributes = {
|
|
524
|
-
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
|
525
|
-
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
|
526
|
-
writable: false
|
|
527
|
-
};
|
|
528
|
-
}
|
|
529
|
-
} return $defineProperty(O, P, Attributes);
|
|
530
|
-
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
531
|
-
anObject$i(O);
|
|
532
|
-
P = toPropertyKey(P);
|
|
533
|
-
anObject$i(Attributes);
|
|
534
|
-
if (IE8_DOM_DEFINE) try {
|
|
535
|
-
return $defineProperty(O, P, Attributes);
|
|
536
|
-
} catch (error) { /* empty */ }
|
|
537
|
-
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$b('Accessors not supported');
|
|
538
|
-
if ('value' in Attributes) O[P] = Attributes.value;
|
|
539
|
-
return O;
|
|
540
|
-
};
|
|
541
|
-
|
|
542
|
-
var DESCRIPTORS$a = descriptors;
|
|
543
|
-
var definePropertyModule$4 = objectDefineProperty;
|
|
544
|
-
var createPropertyDescriptor$2 = createPropertyDescriptor$4;
|
|
545
|
-
|
|
546
|
-
var createNonEnumerableProperty$6 = DESCRIPTORS$a ? function (object, key, value) {
|
|
547
|
-
return definePropertyModule$4.f(object, key, createPropertyDescriptor$2(1, value));
|
|
548
|
-
} : function (object, key, value) {
|
|
549
|
-
object[key] = value;
|
|
550
|
-
return object;
|
|
551
|
-
};
|
|
552
|
-
|
|
553
|
-
var makeBuiltIn$3 = {exports: {}};
|
|
554
|
-
|
|
555
|
-
var DESCRIPTORS$9 = descriptors;
|
|
556
|
-
var hasOwn$9 = hasOwnProperty_1;
|
|
557
|
-
|
|
558
|
-
var FunctionPrototype$1 = Function.prototype;
|
|
559
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
560
|
-
var getDescriptor = DESCRIPTORS$9 && Object.getOwnPropertyDescriptor;
|
|
561
|
-
|
|
562
|
-
var EXISTS = hasOwn$9(FunctionPrototype$1, 'name');
|
|
563
|
-
// additional protection from minified / mangled / dropped function names
|
|
564
|
-
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
565
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$9 || (DESCRIPTORS$9 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
566
|
-
|
|
567
|
-
var functionName = {
|
|
568
|
-
PROPER: PROPER,
|
|
569
|
-
CONFIGURABLE: CONFIGURABLE
|
|
570
|
-
};
|
|
571
|
-
|
|
572
|
-
var uncurryThis$d = functionUncurryThis;
|
|
573
|
-
var isCallable$g = isCallable$m;
|
|
574
|
-
var store$1 = sharedStoreExports;
|
|
575
|
-
|
|
576
|
-
var functionToString = uncurryThis$d(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$g(store$1.inspectSource)) {
|
|
580
|
-
store$1.inspectSource = function (it) {
|
|
581
|
-
return functionToString(it);
|
|
582
|
-
};
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
var inspectSource$3 = store$1.inspectSource;
|
|
586
|
-
|
|
587
|
-
var global$f = global$m;
|
|
588
|
-
var isCallable$f = isCallable$m;
|
|
589
|
-
|
|
590
|
-
var WeakMap$1 = global$f.WeakMap;
|
|
591
|
-
|
|
592
|
-
var weakMapBasicDetection = isCallable$f(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 global$e = global$m;
|
|
607
|
-
var isObject$5 = isObject$a;
|
|
608
|
-
var createNonEnumerableProperty$5 = createNonEnumerableProperty$6;
|
|
609
|
-
var hasOwn$8 = 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$2 = global$e.TypeError;
|
|
616
|
-
var WeakMap = global$e.WeakMap;
|
|
617
|
-
var set$1, get, has;
|
|
618
|
-
|
|
619
|
-
var enforce = function (it) {
|
|
620
|
-
return has(it) ? get(it) : set$1(it, {});
|
|
621
|
-
};
|
|
622
|
-
|
|
623
|
-
var getterFor = function (TYPE) {
|
|
624
|
-
return function (it) {
|
|
625
|
-
var state;
|
|
626
|
-
if (!isObject$5(it) || (state = get(it)).type !== TYPE) {
|
|
627
|
-
throw new TypeError$2('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$1 = function (it, metadata) {
|
|
640
|
-
if (store.has(it)) throw new TypeError$2(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$1 = function (it, metadata) {
|
|
655
|
-
if (hasOwn$8(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
656
|
-
metadata.facade = it;
|
|
657
|
-
createNonEnumerableProperty$5(it, STATE, metadata);
|
|
658
|
-
return metadata;
|
|
659
|
-
};
|
|
660
|
-
get = function (it) {
|
|
661
|
-
return hasOwn$8(it, STATE) ? it[STATE] : {};
|
|
662
|
-
};
|
|
663
|
-
has = function (it) {
|
|
664
|
-
return hasOwn$8(it, STATE);
|
|
665
|
-
};
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
var internalState = {
|
|
669
|
-
set: set$1,
|
|
670
|
-
get: get,
|
|
671
|
-
has: has,
|
|
672
|
-
enforce: enforce,
|
|
673
|
-
getterFor: getterFor
|
|
674
|
-
};
|
|
675
|
-
|
|
676
|
-
var uncurryThis$c = functionUncurryThis;
|
|
677
|
-
var fails$f = fails$m;
|
|
678
|
-
var isCallable$e = isCallable$m;
|
|
679
|
-
var hasOwn$7 = hasOwnProperty_1;
|
|
680
|
-
var DESCRIPTORS$8 = descriptors;
|
|
681
|
-
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
682
|
-
var inspectSource$2 = inspectSource$3;
|
|
683
|
-
var InternalStateModule$3 = internalState;
|
|
684
|
-
|
|
685
|
-
var enforceInternalState = InternalStateModule$3.enforce;
|
|
686
|
-
var getInternalState$2 = InternalStateModule$3.get;
|
|
687
|
-
var $String$2 = String;
|
|
688
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
689
|
-
var defineProperty$5 = Object.defineProperty;
|
|
690
|
-
var stringSlice$4 = uncurryThis$c(''.slice);
|
|
691
|
-
var replace$2 = uncurryThis$c(''.replace);
|
|
692
|
-
var join = uncurryThis$c([].join);
|
|
693
|
-
|
|
694
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$8 && !fails$f(function () {
|
|
695
|
-
return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
696
|
-
});
|
|
697
|
-
|
|
698
|
-
var TEMPLATE = String(String).split('String');
|
|
699
|
-
|
|
700
|
-
var makeBuiltIn$2 = makeBuiltIn$3.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$7(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
707
|
-
if (DESCRIPTORS$8) defineProperty$5(value, 'name', { value: name, configurable: true });
|
|
708
|
-
else value.name = name;
|
|
709
|
-
}
|
|
710
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$7(options, 'arity') && value.length !== options.arity) {
|
|
711
|
-
defineProperty$5(value, 'length', { value: options.arity });
|
|
712
|
-
}
|
|
713
|
-
try {
|
|
714
|
-
if (options && hasOwn$7(options, 'constructor') && options.constructor) {
|
|
715
|
-
if (DESCRIPTORS$8) defineProperty$5(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$7(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$2(function toString() {
|
|
728
|
-
return isCallable$e(this) && getInternalState$2(this).source || inspectSource$2(this);
|
|
729
|
-
}, 'toString');
|
|
730
|
-
|
|
731
|
-
var makeBuiltInExports = makeBuiltIn$3.exports;
|
|
732
|
-
|
|
733
|
-
var isCallable$d = isCallable$m;
|
|
734
|
-
var definePropertyModule$3 = objectDefineProperty;
|
|
735
|
-
var makeBuiltIn$1 = makeBuiltInExports;
|
|
736
|
-
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
737
|
-
|
|
738
|
-
var defineBuiltIn$8 = 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$d(value)) makeBuiltIn$1(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$3.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$1 = 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$1(true),
|
|
845
|
-
// `Array.prototype.indexOf` method
|
|
846
|
-
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
847
|
-
indexOf: createMethod$1(false)
|
|
848
|
-
};
|
|
849
|
-
|
|
850
|
-
var uncurryThis$b = functionUncurryThis;
|
|
851
|
-
var hasOwn$6 = 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$b([].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$6(hiddenKeys$2, key) && hasOwn$6(O, key) && push$1(result, key);
|
|
864
|
-
// Don't enum bug & hidden keys
|
|
865
|
-
while (names.length > i) if (hasOwn$6(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$5 = getBuiltIn$7;
|
|
900
|
-
var uncurryThis$a = functionUncurryThis;
|
|
901
|
-
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
902
|
-
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
903
|
-
var anObject$h = anObject$j;
|
|
904
|
-
|
|
905
|
-
var concat$2 = uncurryThis$a([].concat);
|
|
906
|
-
|
|
907
|
-
// all object keys, includes non-enumerable and symbols
|
|
908
|
-
var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
909
|
-
var keys = getOwnPropertyNamesModule.f(anObject$h(it));
|
|
910
|
-
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
911
|
-
return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
|
|
912
|
-
};
|
|
913
|
-
|
|
914
|
-
var hasOwn$5 = hasOwnProperty_1;
|
|
915
|
-
var ownKeys = ownKeys$1;
|
|
916
|
-
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
917
|
-
var definePropertyModule$2 = objectDefineProperty;
|
|
918
|
-
|
|
919
|
-
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
920
|
-
var keys = ownKeys(source);
|
|
921
|
-
var defineProperty = definePropertyModule$2.f;
|
|
922
|
-
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
923
|
-
for (var i = 0; i < keys.length; i++) {
|
|
924
|
-
var key = keys[i];
|
|
925
|
-
if (!hasOwn$5(target, key) && !(exceptions && hasOwn$5(exceptions, key))) {
|
|
926
|
-
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
};
|
|
930
|
-
|
|
931
|
-
var fails$e = fails$m;
|
|
932
|
-
var isCallable$c = isCallable$m;
|
|
933
|
-
|
|
934
|
-
var replacement = /#|\.prototype\./;
|
|
935
|
-
|
|
936
|
-
var isForced$2 = function (feature, detection) {
|
|
937
|
-
var value = data[normalize(feature)];
|
|
938
|
-
return value === POLYFILL ? true
|
|
939
|
-
: value === NATIVE ? false
|
|
940
|
-
: isCallable$c(detection) ? fails$e(detection)
|
|
941
|
-
: !!detection;
|
|
942
|
-
};
|
|
943
|
-
|
|
944
|
-
var normalize = isForced$2.normalize = function (string) {
|
|
945
|
-
return String(string).replace(replacement, '.').toLowerCase();
|
|
946
|
-
};
|
|
947
|
-
|
|
948
|
-
var data = isForced$2.data = {};
|
|
949
|
-
var NATIVE = isForced$2.NATIVE = 'N';
|
|
950
|
-
var POLYFILL = isForced$2.POLYFILL = 'P';
|
|
951
|
-
|
|
952
|
-
var isForced_1 = isForced$2;
|
|
953
|
-
|
|
954
|
-
var global$d = global$m;
|
|
955
|
-
var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
|
|
956
|
-
var createNonEnumerableProperty$4 = createNonEnumerableProperty$6;
|
|
957
|
-
var defineBuiltIn$7 = defineBuiltIn$8;
|
|
958
|
-
var defineGlobalProperty = defineGlobalProperty$3;
|
|
959
|
-
var copyConstructorProperties = copyConstructorProperties$1;
|
|
960
|
-
var isForced$1 = 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 = global$d;
|
|
984
|
-
} else if (STATIC) {
|
|
985
|
-
target = global$d[TARGET] || defineGlobalProperty(TARGET, {});
|
|
986
|
-
} else {
|
|
987
|
-
target = global$d[TARGET] && global$d[TARGET].prototype;
|
|
988
|
-
}
|
|
989
|
-
if (target) for (key in source) {
|
|
990
|
-
sourceProperty = source[key];
|
|
991
|
-
if (options.dontCallGetSet) {
|
|
992
|
-
descriptor = getOwnPropertyDescriptor$2(target, key);
|
|
993
|
-
targetProperty = descriptor && descriptor.value;
|
|
994
|
-
} else targetProperty = target[key];
|
|
995
|
-
FORCED = isForced$1(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$4(sourceProperty, 'sham', true);
|
|
1004
|
-
}
|
|
1005
|
-
defineBuiltIn$7(target, key, sourceProperty, options);
|
|
1006
|
-
}
|
|
1007
|
-
};
|
|
1008
|
-
|
|
1009
|
-
var internalObjectKeys = objectKeysInternal;
|
|
1010
|
-
var enumBugKeys$1 = enumBugKeys$3;
|
|
1011
|
-
|
|
1012
|
-
// `Object.keys` method
|
|
1013
|
-
// https://tc39.es/ecma262/#sec-object.keys
|
|
1014
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
|
1015
|
-
var objectKeys$2 = Object.keys || function keys(O) {
|
|
1016
|
-
return internalObjectKeys(O, enumBugKeys$1);
|
|
1017
|
-
};
|
|
1018
|
-
|
|
1019
|
-
var DESCRIPTORS$7 = descriptors;
|
|
1020
|
-
var uncurryThis$9 = functionUncurryThis;
|
|
1021
|
-
var call$g = functionCall;
|
|
1022
|
-
var fails$d = fails$m;
|
|
1023
|
-
var objectKeys$1 = objectKeys$2;
|
|
1024
|
-
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1025
|
-
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1026
|
-
var toObject$3 = toObject$5;
|
|
1027
|
-
var IndexedObject = indexedObject;
|
|
1028
|
-
|
|
1029
|
-
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1030
|
-
var $assign = Object.assign;
|
|
1031
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1032
|
-
var defineProperty$4 = Object.defineProperty;
|
|
1033
|
-
var concat$1 = uncurryThis$9([].concat);
|
|
1034
|
-
|
|
1035
|
-
// `Object.assign` method
|
|
1036
|
-
// https://tc39.es/ecma262/#sec-object.assign
|
|
1037
|
-
var objectAssign = !$assign || fails$d(function () {
|
|
1038
|
-
// should have correct order of operations (Edge bug)
|
|
1039
|
-
if (DESCRIPTORS$7 && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', {
|
|
1040
|
-
enumerable: true,
|
|
1041
|
-
get: function () {
|
|
1042
|
-
defineProperty$4(this, 'b', {
|
|
1043
|
-
value: 3,
|
|
1044
|
-
enumerable: false
|
|
1045
|
-
});
|
|
1046
|
-
}
|
|
1047
|
-
}), { b: 2 })).b !== 1) return true;
|
|
1048
|
-
// should work with symbols and should have deterministic property order (V8 bug)
|
|
1049
|
-
var A = {};
|
|
1050
|
-
var B = {};
|
|
1051
|
-
// eslint-disable-next-line es/no-symbol -- safe
|
|
1052
|
-
var symbol = Symbol('assign detection');
|
|
1053
|
-
var alphabet = 'abcdefghijklmnopqrst';
|
|
1054
|
-
A[symbol] = 7;
|
|
1055
|
-
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1056
|
-
return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
|
|
1057
|
-
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1058
|
-
var T = toObject$3(target);
|
|
1059
|
-
var argumentsLength = arguments.length;
|
|
1060
|
-
var index = 1;
|
|
1061
|
-
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
1062
|
-
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
1063
|
-
while (argumentsLength > index) {
|
|
1064
|
-
var S = IndexedObject(arguments[index++]);
|
|
1065
|
-
var keys = getOwnPropertySymbols ? concat$1(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
|
|
1066
|
-
var length = keys.length;
|
|
1067
|
-
var j = 0;
|
|
1068
|
-
var key;
|
|
1069
|
-
while (length > j) {
|
|
1070
|
-
key = keys[j++];
|
|
1071
|
-
if (!DESCRIPTORS$7 || call$g(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1072
|
-
}
|
|
1073
|
-
} return T;
|
|
1074
|
-
} : $assign;
|
|
1075
|
-
|
|
1076
|
-
var $$f = _export;
|
|
1077
|
-
var assign = objectAssign;
|
|
1078
|
-
|
|
1079
|
-
// `Object.assign` method
|
|
1080
|
-
// https://tc39.es/ecma262/#sec-object.assign
|
|
1081
|
-
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1082
|
-
$$f({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1083
|
-
assign: assign
|
|
1084
|
-
});
|
|
1085
|
-
|
|
1086
|
-
var global$c = global$m;
|
|
1087
|
-
var classof$6 = classofRaw$2;
|
|
1088
|
-
|
|
1089
|
-
var engineIsNode = classof$6(global$c.process) === 'process';
|
|
1090
|
-
|
|
1091
|
-
var uncurryThis$8 = functionUncurryThis;
|
|
1092
|
-
var aCallable$a = aCallable$c;
|
|
1093
|
-
|
|
1094
|
-
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1095
|
-
try {
|
|
1096
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1097
|
-
return uncurryThis$8(aCallable$a(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1098
|
-
} catch (error) { /* empty */ }
|
|
1099
|
-
};
|
|
1100
|
-
|
|
1101
|
-
var isObject$4 = isObject$a;
|
|
1102
|
-
|
|
1103
|
-
var isPossiblePrototype$1 = function (argument) {
|
|
1104
|
-
return isObject$4(argument) || argument === null;
|
|
1105
|
-
};
|
|
1106
|
-
|
|
1107
|
-
var isPossiblePrototype = isPossiblePrototype$1;
|
|
1108
|
-
|
|
1109
|
-
var $String$1 = String;
|
|
1110
|
-
var $TypeError$a = TypeError;
|
|
1111
|
-
|
|
1112
|
-
var aPossiblePrototype$1 = function (argument) {
|
|
1113
|
-
if (isPossiblePrototype(argument)) return argument;
|
|
1114
|
-
throw new $TypeError$a("Can't set " + $String$1(argument) + ' as a prototype');
|
|
1115
|
-
};
|
|
1116
|
-
|
|
1117
|
-
/* eslint-disable no-proto -- safe */
|
|
1118
|
-
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
1119
|
-
var isObject$3 = isObject$a;
|
|
1120
|
-
var requireObjectCoercible$2 = requireObjectCoercible$5;
|
|
1121
|
-
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1122
|
-
|
|
1123
|
-
// `Object.setPrototypeOf` method
|
|
1124
|
-
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
1125
|
-
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
1126
|
-
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
1127
|
-
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
1128
|
-
var CORRECT_SETTER = false;
|
|
1129
|
-
var test = {};
|
|
1130
|
-
var setter;
|
|
1131
|
-
try {
|
|
1132
|
-
setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
|
|
1133
|
-
setter(test, []);
|
|
1134
|
-
CORRECT_SETTER = test instanceof Array;
|
|
1135
|
-
} catch (error) { /* empty */ }
|
|
1136
|
-
return function setPrototypeOf(O, proto) {
|
|
1137
|
-
requireObjectCoercible$2(O);
|
|
1138
|
-
aPossiblePrototype(proto);
|
|
1139
|
-
if (!isObject$3(O)) return O;
|
|
1140
|
-
if (CORRECT_SETTER) setter(O, proto);
|
|
1141
|
-
else O.__proto__ = proto;
|
|
1142
|
-
return O;
|
|
1143
|
-
};
|
|
1144
|
-
}() : undefined);
|
|
1145
|
-
|
|
1146
|
-
var defineProperty$3 = objectDefineProperty.f;
|
|
1147
|
-
var hasOwn$4 = hasOwnProperty_1;
|
|
1148
|
-
var wellKnownSymbol$g = wellKnownSymbol$i;
|
|
1149
|
-
|
|
1150
|
-
var TO_STRING_TAG$4 = wellKnownSymbol$g('toStringTag');
|
|
1151
|
-
|
|
1152
|
-
var setToStringTag$4 = function (target, TAG, STATIC) {
|
|
1153
|
-
if (target && !STATIC) target = target.prototype;
|
|
1154
|
-
if (target && !hasOwn$4(target, TO_STRING_TAG$4)) {
|
|
1155
|
-
defineProperty$3(target, TO_STRING_TAG$4, { configurable: true, value: TAG });
|
|
1156
|
-
}
|
|
1157
|
-
};
|
|
1158
|
-
|
|
1159
|
-
var makeBuiltIn = makeBuiltInExports;
|
|
1160
|
-
var defineProperty$2 = objectDefineProperty;
|
|
1161
|
-
|
|
1162
|
-
var defineBuiltInAccessor$2 = function (target, name, descriptor) {
|
|
1163
|
-
if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
|
|
1164
|
-
if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
|
|
1165
|
-
return defineProperty$2.f(target, name, descriptor);
|
|
1166
|
-
};
|
|
1167
|
-
|
|
1168
|
-
var getBuiltIn$4 = getBuiltIn$7;
|
|
1169
|
-
var defineBuiltInAccessor$1 = defineBuiltInAccessor$2;
|
|
1170
|
-
var wellKnownSymbol$f = wellKnownSymbol$i;
|
|
1171
|
-
var DESCRIPTORS$6 = descriptors;
|
|
1172
|
-
|
|
1173
|
-
var SPECIES$3 = wellKnownSymbol$f('species');
|
|
1174
|
-
|
|
1175
|
-
var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
1176
|
-
var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
|
|
1177
|
-
|
|
1178
|
-
if (DESCRIPTORS$6 && Constructor && !Constructor[SPECIES$3]) {
|
|
1179
|
-
defineBuiltInAccessor$1(Constructor, SPECIES$3, {
|
|
1180
|
-
configurable: true,
|
|
1181
|
-
get: function () { return this; }
|
|
1182
|
-
});
|
|
1183
|
-
}
|
|
1184
|
-
};
|
|
1185
|
-
|
|
1186
|
-
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
1187
|
-
|
|
1188
|
-
var $TypeError$9 = TypeError;
|
|
1189
|
-
|
|
1190
|
-
var anInstance$2 = function (it, Prototype) {
|
|
1191
|
-
if (isPrototypeOf$2(Prototype, it)) return it;
|
|
1192
|
-
throw new $TypeError$9('Incorrect invocation');
|
|
1193
|
-
};
|
|
1194
|
-
|
|
1195
|
-
var wellKnownSymbol$e = wellKnownSymbol$i;
|
|
1196
|
-
|
|
1197
|
-
var TO_STRING_TAG$3 = wellKnownSymbol$e('toStringTag');
|
|
1198
|
-
var test = {};
|
|
1199
|
-
|
|
1200
|
-
test[TO_STRING_TAG$3] = 'z';
|
|
1201
|
-
|
|
1202
|
-
var toStringTagSupport = String(test) === '[object z]';
|
|
1203
|
-
|
|
1204
|
-
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1205
|
-
var isCallable$b = isCallable$m;
|
|
1206
|
-
var classofRaw$1 = classofRaw$2;
|
|
1207
|
-
var wellKnownSymbol$d = wellKnownSymbol$i;
|
|
1208
|
-
|
|
1209
|
-
var TO_STRING_TAG$2 = wellKnownSymbol$d('toStringTag');
|
|
1210
|
-
var $Object$1 = Object;
|
|
1211
|
-
|
|
1212
|
-
// ES3 wrong here
|
|
1213
|
-
var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
|
|
1214
|
-
|
|
1215
|
-
// fallback for IE11 Script Access Denied error
|
|
1216
|
-
var tryGet = function (it, key) {
|
|
1217
|
-
try {
|
|
1218
|
-
return it[key];
|
|
1219
|
-
} catch (error) { /* empty */ }
|
|
1220
|
-
};
|
|
1221
|
-
|
|
1222
|
-
// getting tag from ES6+ `Object.prototype.toString`
|
|
1223
|
-
var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
1224
|
-
var O, tag, result;
|
|
1225
|
-
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1226
|
-
// @@toStringTag case
|
|
1227
|
-
: typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$2)) == 'string' ? tag
|
|
1228
|
-
// builtinTag case
|
|
1229
|
-
: CORRECT_ARGUMENTS ? classofRaw$1(O)
|
|
1230
|
-
// ES3 arguments fallback
|
|
1231
|
-
: (result = classofRaw$1(O)) === 'Object' && isCallable$b(O.callee) ? 'Arguments' : result;
|
|
1232
|
-
};
|
|
1233
|
-
|
|
1234
|
-
var uncurryThis$7 = functionUncurryThis;
|
|
1235
|
-
var fails$c = fails$m;
|
|
1236
|
-
var isCallable$a = isCallable$m;
|
|
1237
|
-
var classof$4 = classof$5;
|
|
1238
|
-
var getBuiltIn$3 = getBuiltIn$7;
|
|
1239
|
-
var inspectSource$1 = inspectSource$3;
|
|
1240
|
-
|
|
1241
|
-
var noop = function () { /* empty */ };
|
|
1242
|
-
var construct = getBuiltIn$3('Reflect', 'construct');
|
|
1243
|
-
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
1244
|
-
var exec$1 = uncurryThis$7(constructorRegExp.exec);
|
|
1245
|
-
var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
|
|
1246
|
-
|
|
1247
|
-
var isConstructorModern = function isConstructor(argument) {
|
|
1248
|
-
if (!isCallable$a(argument)) return false;
|
|
1249
|
-
try {
|
|
1250
|
-
construct(noop, [], argument);
|
|
1251
|
-
return true;
|
|
1252
|
-
} catch (error) {
|
|
1253
|
-
return false;
|
|
1254
|
-
}
|
|
1255
|
-
};
|
|
1256
|
-
|
|
1257
|
-
var isConstructorLegacy = function isConstructor(argument) {
|
|
1258
|
-
if (!isCallable$a(argument)) return false;
|
|
1259
|
-
switch (classof$4(argument)) {
|
|
1260
|
-
case 'AsyncFunction':
|
|
1261
|
-
case 'GeneratorFunction':
|
|
1262
|
-
case 'AsyncGeneratorFunction': return false;
|
|
1263
|
-
}
|
|
1264
|
-
try {
|
|
1265
|
-
// we can't check .prototype since constructors produced by .bind haven't it
|
|
1266
|
-
// `Function#toString` throws on some built-it function in some legacy engines
|
|
1267
|
-
// (for example, `DOMQuad` and similar in FF41-)
|
|
1268
|
-
return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource$1(argument));
|
|
1269
|
-
} catch (error) {
|
|
1270
|
-
return true;
|
|
1271
|
-
}
|
|
1272
|
-
};
|
|
1273
|
-
|
|
1274
|
-
isConstructorLegacy.sham = true;
|
|
1275
|
-
|
|
1276
|
-
// `IsConstructor` abstract operation
|
|
1277
|
-
// https://tc39.es/ecma262/#sec-isconstructor
|
|
1278
|
-
var isConstructor$1 = !construct || fails$c(function () {
|
|
1279
|
-
var called;
|
|
1280
|
-
return isConstructorModern(isConstructorModern.call)
|
|
1281
|
-
|| !isConstructorModern(Object)
|
|
1282
|
-
|| !isConstructorModern(function () { called = true; })
|
|
1283
|
-
|| called;
|
|
1284
|
-
}) ? isConstructorLegacy : isConstructorModern;
|
|
1285
|
-
|
|
1286
|
-
var isConstructor = isConstructor$1;
|
|
1287
|
-
var tryToString$2 = tryToString$4;
|
|
1288
|
-
|
|
1289
|
-
var $TypeError$8 = TypeError;
|
|
1290
|
-
|
|
1291
|
-
// `Assert: IsConstructor(argument) is true`
|
|
1292
|
-
var aConstructor$1 = function (argument) {
|
|
1293
|
-
if (isConstructor(argument)) return argument;
|
|
1294
|
-
throw new $TypeError$8(tryToString$2(argument) + ' is not a constructor');
|
|
1295
|
-
};
|
|
1296
|
-
|
|
1297
|
-
var anObject$g = anObject$j;
|
|
1298
|
-
var aConstructor = aConstructor$1;
|
|
1299
|
-
var isNullOrUndefined$2 = isNullOrUndefined$5;
|
|
1300
|
-
var wellKnownSymbol$c = wellKnownSymbol$i;
|
|
1301
|
-
|
|
1302
|
-
var SPECIES$2 = wellKnownSymbol$c('species');
|
|
1303
|
-
|
|
1304
|
-
// `SpeciesConstructor` abstract operation
|
|
1305
|
-
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
1306
|
-
var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
1307
|
-
var C = anObject$g(O).constructor;
|
|
1308
|
-
var S;
|
|
1309
|
-
return C === undefined || isNullOrUndefined$2(S = anObject$g(C)[SPECIES$2]) ? defaultConstructor : aConstructor(S);
|
|
1310
|
-
};
|
|
1311
|
-
|
|
1312
|
-
var NATIVE_BIND$1 = functionBindNative;
|
|
1313
|
-
|
|
1314
|
-
var FunctionPrototype = Function.prototype;
|
|
1315
|
-
var apply$2 = FunctionPrototype.apply;
|
|
1316
|
-
var call$f = FunctionPrototype.call;
|
|
1317
|
-
|
|
1318
|
-
// eslint-disable-next-line es/no-reflect -- safe
|
|
1319
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$f.bind(apply$2) : function () {
|
|
1320
|
-
return call$f.apply(apply$2, arguments);
|
|
1321
|
-
});
|
|
1322
|
-
|
|
1323
|
-
var classofRaw = classofRaw$2;
|
|
1324
|
-
var uncurryThis$6 = functionUncurryThis;
|
|
1325
|
-
|
|
1326
|
-
var functionUncurryThisClause = function (fn) {
|
|
1327
|
-
// Nashorn bug:
|
|
1328
|
-
// https://github.com/zloirock/core-js/issues/1128
|
|
1329
|
-
// https://github.com/zloirock/core-js/issues/1130
|
|
1330
|
-
if (classofRaw(fn) === 'Function') return uncurryThis$6(fn);
|
|
1331
|
-
};
|
|
1332
|
-
|
|
1333
|
-
var uncurryThis$5 = functionUncurryThisClause;
|
|
1334
|
-
var aCallable$9 = aCallable$c;
|
|
1335
|
-
var NATIVE_BIND = functionBindNative;
|
|
1336
|
-
|
|
1337
|
-
var bind$4 = uncurryThis$5(uncurryThis$5.bind);
|
|
1338
|
-
|
|
1339
|
-
// optional / simple context binding
|
|
1340
|
-
var functionBindContext = function (fn, that) {
|
|
1341
|
-
aCallable$9(fn);
|
|
1342
|
-
return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
|
|
1343
|
-
return fn.apply(that, arguments);
|
|
1344
|
-
};
|
|
1345
|
-
};
|
|
1346
|
-
|
|
1347
|
-
var getBuiltIn$2 = getBuiltIn$7;
|
|
1348
|
-
|
|
1349
|
-
var html$2 = getBuiltIn$2('document', 'documentElement');
|
|
1350
|
-
|
|
1351
|
-
var uncurryThis$4 = functionUncurryThis;
|
|
1352
|
-
|
|
1353
|
-
var arraySlice$1 = uncurryThis$4([].slice);
|
|
1354
|
-
|
|
1355
|
-
var $TypeError$7 = TypeError;
|
|
1356
|
-
|
|
1357
|
-
var validateArgumentsLength$1 = function (passed, required) {
|
|
1358
|
-
if (passed < required) throw new $TypeError$7('Not enough arguments');
|
|
1359
|
-
return passed;
|
|
1360
|
-
};
|
|
1361
|
-
|
|
1362
|
-
var userAgent$2 = engineUserAgent;
|
|
1363
|
-
|
|
1364
|
-
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
1365
|
-
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
1366
|
-
|
|
1367
|
-
var global$b = global$m;
|
|
1368
|
-
var apply$1 = functionApply;
|
|
1369
|
-
var bind$3 = functionBindContext;
|
|
1370
|
-
var isCallable$9 = isCallable$m;
|
|
1371
|
-
var hasOwn$3 = hasOwnProperty_1;
|
|
1372
|
-
var fails$b = fails$m;
|
|
1373
|
-
var html$1 = html$2;
|
|
1374
|
-
var arraySlice = arraySlice$1;
|
|
1375
|
-
var createElement = documentCreateElement$2;
|
|
1376
|
-
var validateArgumentsLength = validateArgumentsLength$1;
|
|
1377
|
-
var IS_IOS$1 = engineIsIos;
|
|
1378
|
-
var IS_NODE$3 = engineIsNode;
|
|
1379
|
-
|
|
1380
|
-
var set = global$b.setImmediate;
|
|
1381
|
-
var clear = global$b.clearImmediate;
|
|
1382
|
-
var process$2 = global$b.process;
|
|
1383
|
-
var Dispatch = global$b.Dispatch;
|
|
1384
|
-
var Function$1 = global$b.Function;
|
|
1385
|
-
var MessageChannel = global$b.MessageChannel;
|
|
1386
|
-
var String$1 = global$b.String;
|
|
1387
|
-
var counter = 0;
|
|
1388
|
-
var queue$2 = {};
|
|
1389
|
-
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
1390
|
-
var $location, defer, channel, port;
|
|
1391
|
-
|
|
1392
|
-
fails$b(function () {
|
|
1393
|
-
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
1394
|
-
$location = global$b.location;
|
|
1395
|
-
});
|
|
1396
|
-
|
|
1397
|
-
var run = function (id) {
|
|
1398
|
-
if (hasOwn$3(queue$2, id)) {
|
|
1399
|
-
var fn = queue$2[id];
|
|
1400
|
-
delete queue$2[id];
|
|
1401
|
-
fn();
|
|
1402
|
-
}
|
|
1403
|
-
};
|
|
1404
|
-
|
|
1405
|
-
var runner = function (id) {
|
|
1406
|
-
return function () {
|
|
1407
|
-
run(id);
|
|
1408
|
-
};
|
|
1409
|
-
};
|
|
1410
|
-
|
|
1411
|
-
var eventListener = function (event) {
|
|
1412
|
-
run(event.data);
|
|
1413
|
-
};
|
|
1414
|
-
|
|
1415
|
-
var globalPostMessageDefer = function (id) {
|
|
1416
|
-
// old engines have not location.origin
|
|
1417
|
-
global$b.postMessage(String$1(id), $location.protocol + '//' + $location.host);
|
|
1418
|
-
};
|
|
1419
|
-
|
|
1420
|
-
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
1421
|
-
if (!set || !clear) {
|
|
1422
|
-
set = function setImmediate(handler) {
|
|
1423
|
-
validateArgumentsLength(arguments.length, 1);
|
|
1424
|
-
var fn = isCallable$9(handler) ? handler : Function$1(handler);
|
|
1425
|
-
var args = arraySlice(arguments, 1);
|
|
1426
|
-
queue$2[++counter] = function () {
|
|
1427
|
-
apply$1(fn, undefined, args);
|
|
1428
|
-
};
|
|
1429
|
-
defer(counter);
|
|
1430
|
-
return counter;
|
|
1431
|
-
};
|
|
1432
|
-
clear = function clearImmediate(id) {
|
|
1433
|
-
delete queue$2[id];
|
|
1434
|
-
};
|
|
1435
|
-
// Node.js 0.8-
|
|
1436
|
-
if (IS_NODE$3) {
|
|
1437
|
-
defer = function (id) {
|
|
1438
|
-
process$2.nextTick(runner(id));
|
|
1439
|
-
};
|
|
1440
|
-
// Sphere (JS game engine) Dispatch API
|
|
1441
|
-
} else if (Dispatch && Dispatch.now) {
|
|
1442
|
-
defer = function (id) {
|
|
1443
|
-
Dispatch.now(runner(id));
|
|
1444
|
-
};
|
|
1445
|
-
// Browsers with MessageChannel, includes WebWorkers
|
|
1446
|
-
// except iOS - https://github.com/zloirock/core-js/issues/624
|
|
1447
|
-
} else if (MessageChannel && !IS_IOS$1) {
|
|
1448
|
-
channel = new MessageChannel();
|
|
1449
|
-
port = channel.port2;
|
|
1450
|
-
channel.port1.onmessage = eventListener;
|
|
1451
|
-
defer = bind$3(port.postMessage, port);
|
|
1452
|
-
// Browsers with postMessage, skip WebWorkers
|
|
1453
|
-
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
1454
|
-
} else if (
|
|
1455
|
-
global$b.addEventListener &&
|
|
1456
|
-
isCallable$9(global$b.postMessage) &&
|
|
1457
|
-
!global$b.importScripts &&
|
|
1458
|
-
$location && $location.protocol !== 'file:' &&
|
|
1459
|
-
!fails$b(globalPostMessageDefer)
|
|
1460
|
-
) {
|
|
1461
|
-
defer = globalPostMessageDefer;
|
|
1462
|
-
global$b.addEventListener('message', eventListener, false);
|
|
1463
|
-
// IE8-
|
|
1464
|
-
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
1465
|
-
defer = function (id) {
|
|
1466
|
-
html$1.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
|
|
1467
|
-
html$1.removeChild(this);
|
|
1468
|
-
run(id);
|
|
1469
|
-
};
|
|
1470
|
-
};
|
|
1471
|
-
// Rest old browsers
|
|
1472
|
-
} else {
|
|
1473
|
-
defer = function (id) {
|
|
1474
|
-
setTimeout(runner(id), 0);
|
|
1475
|
-
};
|
|
1476
|
-
}
|
|
1477
|
-
}
|
|
1478
|
-
|
|
1479
|
-
var task$1 = {
|
|
1480
|
-
set: set};
|
|
1481
|
-
|
|
1482
|
-
var global$a = global$m;
|
|
1483
|
-
var DESCRIPTORS$5 = descriptors;
|
|
1484
|
-
|
|
1485
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1486
|
-
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
1487
|
-
|
|
1488
|
-
// Avoid NodeJS experimental warning
|
|
1489
|
-
var safeGetBuiltIn$1 = function (name) {
|
|
1490
|
-
if (!DESCRIPTORS$5) return global$a[name];
|
|
1491
|
-
var descriptor = getOwnPropertyDescriptor$1(global$a, name);
|
|
1492
|
-
return descriptor && descriptor.value;
|
|
1493
|
-
};
|
|
1494
|
-
|
|
1495
|
-
var Queue$2 = function () {
|
|
1496
|
-
this.head = null;
|
|
1497
|
-
this.tail = null;
|
|
1498
|
-
};
|
|
1499
|
-
|
|
1500
|
-
Queue$2.prototype = {
|
|
1501
|
-
add: function (item) {
|
|
1502
|
-
var entry = { item: item, next: null };
|
|
1503
|
-
var tail = this.tail;
|
|
1504
|
-
if (tail) tail.next = entry;
|
|
1505
|
-
else this.head = entry;
|
|
1506
|
-
this.tail = entry;
|
|
1507
|
-
},
|
|
1508
|
-
get: function () {
|
|
1509
|
-
var entry = this.head;
|
|
1510
|
-
if (entry) {
|
|
1511
|
-
var next = this.head = entry.next;
|
|
1512
|
-
if (next === null) this.tail = null;
|
|
1513
|
-
return entry.item;
|
|
1514
|
-
}
|
|
1515
|
-
}
|
|
1516
|
-
};
|
|
1517
|
-
|
|
1518
|
-
var queue$1 = Queue$2;
|
|
1519
|
-
|
|
1520
|
-
var userAgent$1 = engineUserAgent;
|
|
1521
|
-
|
|
1522
|
-
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && typeof Pebble != 'undefined';
|
|
1523
|
-
|
|
1524
|
-
var userAgent = engineUserAgent;
|
|
1525
|
-
|
|
1526
|
-
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
1527
|
-
|
|
1528
|
-
var global$9 = global$m;
|
|
1529
|
-
var safeGetBuiltIn = safeGetBuiltIn$1;
|
|
1530
|
-
var bind$2 = functionBindContext;
|
|
1531
|
-
var macrotask = task$1.set;
|
|
1532
|
-
var Queue$1 = queue$1;
|
|
1533
|
-
var IS_IOS = engineIsIos;
|
|
1534
|
-
var IS_IOS_PEBBLE = engineIsIosPebble;
|
|
1535
|
-
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
|
1536
|
-
var IS_NODE$2 = engineIsNode;
|
|
1537
|
-
|
|
1538
|
-
var MutationObserver = global$9.MutationObserver || global$9.WebKitMutationObserver;
|
|
1539
|
-
var document$2 = global$9.document;
|
|
1540
|
-
var process$1 = global$9.process;
|
|
1541
|
-
var Promise$1 = global$9.Promise;
|
|
1542
|
-
var microtask$1 = safeGetBuiltIn('queueMicrotask');
|
|
1543
|
-
var notify$1, toggle, node, promise, then;
|
|
1544
|
-
|
|
1545
|
-
// modern engines have queueMicrotask method
|
|
1546
|
-
if (!microtask$1) {
|
|
1547
|
-
var queue = new Queue$1();
|
|
1548
|
-
|
|
1549
|
-
var flush = function () {
|
|
1550
|
-
var parent, fn;
|
|
1551
|
-
if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
|
|
1552
|
-
while (fn = queue.get()) try {
|
|
1553
|
-
fn();
|
|
1554
|
-
} catch (error) {
|
|
1555
|
-
if (queue.head) notify$1();
|
|
1556
|
-
throw error;
|
|
1557
|
-
}
|
|
1558
|
-
if (parent) parent.enter();
|
|
1559
|
-
};
|
|
1560
|
-
|
|
1561
|
-
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
1562
|
-
// also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
|
|
1563
|
-
if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
|
|
1564
|
-
toggle = true;
|
|
1565
|
-
node = document$2.createTextNode('');
|
|
1566
|
-
new MutationObserver(flush).observe(node, { characterData: true });
|
|
1567
|
-
notify$1 = function () {
|
|
1568
|
-
node.data = toggle = !toggle;
|
|
1569
|
-
};
|
|
1570
|
-
// environments with maybe non-completely correct, but existent Promise
|
|
1571
|
-
} else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
|
|
1572
|
-
// Promise.resolve without an argument throws an error in LG WebOS 2
|
|
1573
|
-
promise = Promise$1.resolve(undefined);
|
|
1574
|
-
// workaround of WebKit ~ iOS Safari 10.1 bug
|
|
1575
|
-
promise.constructor = Promise$1;
|
|
1576
|
-
then = bind$2(promise.then, promise);
|
|
1577
|
-
notify$1 = function () {
|
|
1578
|
-
then(flush);
|
|
1579
|
-
};
|
|
1580
|
-
// Node.js without promises
|
|
1581
|
-
} else if (IS_NODE$2) {
|
|
1582
|
-
notify$1 = function () {
|
|
1583
|
-
process$1.nextTick(flush);
|
|
1584
|
-
};
|
|
1585
|
-
// for other environments - macrotask based on:
|
|
1586
|
-
// - setImmediate
|
|
1587
|
-
// - MessageChannel
|
|
1588
|
-
// - window.postMessage
|
|
1589
|
-
// - onreadystatechange
|
|
1590
|
-
// - setTimeout
|
|
1591
|
-
} else {
|
|
1592
|
-
// `webpack` dev server bug on IE global methods - use bind(fn, global)
|
|
1593
|
-
macrotask = bind$2(macrotask, global$9);
|
|
1594
|
-
notify$1 = function () {
|
|
1595
|
-
macrotask(flush);
|
|
1596
|
-
};
|
|
1597
|
-
}
|
|
1598
|
-
|
|
1599
|
-
microtask$1 = function (fn) {
|
|
1600
|
-
if (!queue.head) notify$1();
|
|
1601
|
-
queue.add(fn);
|
|
1602
|
-
};
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1605
|
-
var microtask_1 = microtask$1;
|
|
1606
|
-
|
|
1607
|
-
var hostReportErrors$1 = function (a, b) {
|
|
1608
|
-
try {
|
|
1609
|
-
// eslint-disable-next-line no-console -- safe
|
|
1610
|
-
arguments.length === 1 ? console.error(a) : console.error(a, b);
|
|
1611
|
-
} catch (error) { /* empty */ }
|
|
1612
|
-
};
|
|
1613
|
-
|
|
1614
|
-
var perform$3 = function (exec) {
|
|
1615
|
-
try {
|
|
1616
|
-
return { error: false, value: exec() };
|
|
1617
|
-
} catch (error) {
|
|
1618
|
-
return { error: true, value: error };
|
|
1619
|
-
}
|
|
1620
|
-
};
|
|
1621
|
-
|
|
1622
|
-
var global$8 = global$m;
|
|
1623
|
-
|
|
1624
|
-
var promiseNativeConstructor = global$8.Promise;
|
|
1625
|
-
|
|
1626
|
-
/* global Deno -- Deno case */
|
|
1627
|
-
var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
|
|
1628
|
-
|
|
1629
|
-
var IS_DENO$1 = engineIsDeno;
|
|
1630
|
-
var IS_NODE$1 = engineIsNode;
|
|
1631
|
-
|
|
1632
|
-
var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
|
|
1633
|
-
&& typeof window == 'object'
|
|
1634
|
-
&& typeof document == 'object';
|
|
1635
|
-
|
|
1636
|
-
var global$7 = global$m;
|
|
1637
|
-
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
1638
|
-
var isCallable$8 = isCallable$m;
|
|
1639
|
-
var isForced = isForced_1;
|
|
1640
|
-
var inspectSource = inspectSource$3;
|
|
1641
|
-
var wellKnownSymbol$b = wellKnownSymbol$i;
|
|
1642
|
-
var IS_BROWSER = engineIsBrowser;
|
|
1643
|
-
var IS_DENO = engineIsDeno;
|
|
1644
|
-
var V8_VERSION = engineV8Version;
|
|
1645
|
-
|
|
1646
|
-
NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
|
|
1647
|
-
var SPECIES$1 = wellKnownSymbol$b('species');
|
|
1648
|
-
var SUBCLASSING = false;
|
|
1649
|
-
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$8(global$7.PromiseRejectionEvent);
|
|
1650
|
-
|
|
1651
|
-
var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
1652
|
-
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
|
|
1653
|
-
var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
|
|
1654
|
-
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
|
1655
|
-
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
|
|
1656
|
-
// We can't detect it synchronously, so just check versions
|
|
1657
|
-
if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
|
|
1658
|
-
// We can't use @@species feature detection in V8 since it causes
|
|
1659
|
-
// deoptimization and performance degradation
|
|
1660
|
-
// https://github.com/zloirock/core-js/issues/679
|
|
1661
|
-
if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
|
|
1662
|
-
// Detect correctness of subclassing with @@species support
|
|
1663
|
-
var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
|
|
1664
|
-
var FakePromise = function (exec) {
|
|
1665
|
-
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
1666
|
-
};
|
|
1667
|
-
var constructor = promise.constructor = {};
|
|
1668
|
-
constructor[SPECIES$1] = FakePromise;
|
|
1669
|
-
SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
|
|
1670
|
-
if (!SUBCLASSING) return true;
|
|
1671
|
-
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
1672
|
-
} return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
|
|
1673
|
-
});
|
|
1674
|
-
|
|
1675
|
-
var promiseConstructorDetection = {
|
|
1676
|
-
CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
|
|
1677
|
-
REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
|
|
1678
|
-
SUBCLASSING: SUBCLASSING
|
|
1679
|
-
};
|
|
1680
|
-
|
|
1681
|
-
var newPromiseCapability$2 = {};
|
|
1682
|
-
|
|
1683
|
-
var aCallable$8 = aCallable$c;
|
|
1684
|
-
|
|
1685
|
-
var $TypeError$6 = TypeError;
|
|
1686
|
-
|
|
1687
|
-
var PromiseCapability = function (C) {
|
|
1688
|
-
var resolve, reject;
|
|
1689
|
-
this.promise = new C(function ($$resolve, $$reject) {
|
|
1690
|
-
if (resolve !== undefined || reject !== undefined) throw new $TypeError$6('Bad Promise constructor');
|
|
1691
|
-
resolve = $$resolve;
|
|
1692
|
-
reject = $$reject;
|
|
1693
|
-
});
|
|
1694
|
-
this.resolve = aCallable$8(resolve);
|
|
1695
|
-
this.reject = aCallable$8(reject);
|
|
1696
|
-
};
|
|
1697
|
-
|
|
1698
|
-
// `NewPromiseCapability` abstract operation
|
|
1699
|
-
// https://tc39.es/ecma262/#sec-newpromisecapability
|
|
1700
|
-
newPromiseCapability$2.f = function (C) {
|
|
1701
|
-
return new PromiseCapability(C);
|
|
1702
|
-
};
|
|
1703
|
-
|
|
1704
|
-
var $$e = _export;
|
|
1705
|
-
var IS_NODE = engineIsNode;
|
|
1706
|
-
var global$6 = global$m;
|
|
1707
|
-
var call$e = functionCall;
|
|
1708
|
-
var defineBuiltIn$6 = defineBuiltIn$8;
|
|
1709
|
-
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
1710
|
-
var setToStringTag$3 = setToStringTag$4;
|
|
1711
|
-
var setSpecies = setSpecies$1;
|
|
1712
|
-
var aCallable$7 = aCallable$c;
|
|
1713
|
-
var isCallable$7 = isCallable$m;
|
|
1714
|
-
var isObject$2 = isObject$a;
|
|
1715
|
-
var anInstance$1 = anInstance$2;
|
|
1716
|
-
var speciesConstructor = speciesConstructor$1;
|
|
1717
|
-
var task = task$1.set;
|
|
1718
|
-
var microtask = microtask_1;
|
|
1719
|
-
var hostReportErrors = hostReportErrors$1;
|
|
1720
|
-
var perform$2 = perform$3;
|
|
1721
|
-
var Queue = queue$1;
|
|
1722
|
-
var InternalStateModule$2 = internalState;
|
|
1723
|
-
var NativePromiseConstructor$2 = promiseNativeConstructor;
|
|
1724
|
-
var PromiseConstructorDetection = promiseConstructorDetection;
|
|
1725
|
-
var newPromiseCapabilityModule$3 = newPromiseCapability$2;
|
|
1726
|
-
|
|
1727
|
-
var PROMISE = 'Promise';
|
|
1728
|
-
var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
|
|
1729
|
-
var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
|
|
1730
|
-
var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
|
|
1731
|
-
var getInternalPromiseState = InternalStateModule$2.getterFor(PROMISE);
|
|
1732
|
-
var setInternalState$2 = InternalStateModule$2.set;
|
|
1733
|
-
var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
|
|
1734
|
-
var PromiseConstructor = NativePromiseConstructor$2;
|
|
1735
|
-
var PromisePrototype = NativePromisePrototype$1;
|
|
1736
|
-
var TypeError$1 = global$6.TypeError;
|
|
1737
|
-
var document$1 = global$6.document;
|
|
1738
|
-
var process = global$6.process;
|
|
1739
|
-
var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
|
|
1740
|
-
var newGenericPromiseCapability = newPromiseCapability$1;
|
|
1741
|
-
|
|
1742
|
-
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$6.dispatchEvent);
|
|
1743
|
-
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
1744
|
-
var REJECTION_HANDLED = 'rejectionhandled';
|
|
1745
|
-
var PENDING = 0;
|
|
1746
|
-
var FULFILLED = 1;
|
|
1747
|
-
var REJECTED = 2;
|
|
1748
|
-
var HANDLED = 1;
|
|
1749
|
-
var UNHANDLED = 2;
|
|
1750
|
-
|
|
1751
|
-
var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
1752
|
-
|
|
1753
|
-
// helpers
|
|
1754
|
-
var isThenable = function (it) {
|
|
1755
|
-
var then;
|
|
1756
|
-
return isObject$2(it) && isCallable$7(then = it.then) ? then : false;
|
|
1757
|
-
};
|
|
1758
|
-
|
|
1759
|
-
var callReaction = function (reaction, state) {
|
|
1760
|
-
var value = state.value;
|
|
1761
|
-
var ok = state.state === FULFILLED;
|
|
1762
|
-
var handler = ok ? reaction.ok : reaction.fail;
|
|
1763
|
-
var resolve = reaction.resolve;
|
|
1764
|
-
var reject = reaction.reject;
|
|
1765
|
-
var domain = reaction.domain;
|
|
1766
|
-
var result, then, exited;
|
|
1767
|
-
try {
|
|
1768
|
-
if (handler) {
|
|
1769
|
-
if (!ok) {
|
|
1770
|
-
if (state.rejection === UNHANDLED) onHandleUnhandled(state);
|
|
1771
|
-
state.rejection = HANDLED;
|
|
1772
|
-
}
|
|
1773
|
-
if (handler === true) result = value;
|
|
1774
|
-
else {
|
|
1775
|
-
if (domain) domain.enter();
|
|
1776
|
-
result = handler(value); // can throw
|
|
1777
|
-
if (domain) {
|
|
1778
|
-
domain.exit();
|
|
1779
|
-
exited = true;
|
|
1780
|
-
}
|
|
1781
|
-
}
|
|
1782
|
-
if (result === reaction.promise) {
|
|
1783
|
-
reject(new TypeError$1('Promise-chain cycle'));
|
|
1784
|
-
} else if (then = isThenable(result)) {
|
|
1785
|
-
call$e(then, result, resolve, reject);
|
|
1786
|
-
} else resolve(result);
|
|
1787
|
-
} else reject(value);
|
|
1788
|
-
} catch (error) {
|
|
1789
|
-
if (domain && !exited) domain.exit();
|
|
1790
|
-
reject(error);
|
|
1791
|
-
}
|
|
1792
|
-
};
|
|
1793
|
-
|
|
1794
|
-
var notify = function (state, isReject) {
|
|
1795
|
-
if (state.notified) return;
|
|
1796
|
-
state.notified = true;
|
|
1797
|
-
microtask(function () {
|
|
1798
|
-
var reactions = state.reactions;
|
|
1799
|
-
var reaction;
|
|
1800
|
-
while (reaction = reactions.get()) {
|
|
1801
|
-
callReaction(reaction, state);
|
|
1802
|
-
}
|
|
1803
|
-
state.notified = false;
|
|
1804
|
-
if (isReject && !state.rejection) onUnhandled(state);
|
|
1805
|
-
});
|
|
1806
|
-
};
|
|
1807
|
-
|
|
1808
|
-
var dispatchEvent = function (name, promise, reason) {
|
|
1809
|
-
var event, handler;
|
|
1810
|
-
if (DISPATCH_EVENT) {
|
|
1811
|
-
event = document$1.createEvent('Event');
|
|
1812
|
-
event.promise = promise;
|
|
1813
|
-
event.reason = reason;
|
|
1814
|
-
event.initEvent(name, false, true);
|
|
1815
|
-
global$6.dispatchEvent(event);
|
|
1816
|
-
} else event = { promise: promise, reason: reason };
|
|
1817
|
-
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$6['on' + name])) handler(event);
|
|
1818
|
-
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
1819
|
-
};
|
|
1820
|
-
|
|
1821
|
-
var onUnhandled = function (state) {
|
|
1822
|
-
call$e(task, global$6, function () {
|
|
1823
|
-
var promise = state.facade;
|
|
1824
|
-
var value = state.value;
|
|
1825
|
-
var IS_UNHANDLED = isUnhandled(state);
|
|
1826
|
-
var result;
|
|
1827
|
-
if (IS_UNHANDLED) {
|
|
1828
|
-
result = perform$2(function () {
|
|
1829
|
-
if (IS_NODE) {
|
|
1830
|
-
process.emit('unhandledRejection', value, promise);
|
|
1831
|
-
} else dispatchEvent(UNHANDLED_REJECTION, promise, value);
|
|
1832
|
-
});
|
|
1833
|
-
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
|
|
1834
|
-
state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
|
|
1835
|
-
if (result.error) throw result.value;
|
|
1836
|
-
}
|
|
1837
|
-
});
|
|
1838
|
-
};
|
|
1839
|
-
|
|
1840
|
-
var isUnhandled = function (state) {
|
|
1841
|
-
return state.rejection !== HANDLED && !state.parent;
|
|
1842
|
-
};
|
|
1843
|
-
|
|
1844
|
-
var onHandleUnhandled = function (state) {
|
|
1845
|
-
call$e(task, global$6, function () {
|
|
1846
|
-
var promise = state.facade;
|
|
1847
|
-
if (IS_NODE) {
|
|
1848
|
-
process.emit('rejectionHandled', promise);
|
|
1849
|
-
} else dispatchEvent(REJECTION_HANDLED, promise, state.value);
|
|
1850
|
-
});
|
|
1851
|
-
};
|
|
1852
|
-
|
|
1853
|
-
var bind$1 = function (fn, state, unwrap) {
|
|
1854
|
-
return function (value) {
|
|
1855
|
-
fn(state, value, unwrap);
|
|
1856
|
-
};
|
|
1857
|
-
};
|
|
1858
|
-
|
|
1859
|
-
var internalReject = function (state, value, unwrap) {
|
|
1860
|
-
if (state.done) return;
|
|
1861
|
-
state.done = true;
|
|
1862
|
-
if (unwrap) state = unwrap;
|
|
1863
|
-
state.value = value;
|
|
1864
|
-
state.state = REJECTED;
|
|
1865
|
-
notify(state, true);
|
|
1866
|
-
};
|
|
1867
|
-
|
|
1868
|
-
var internalResolve = function (state, value, unwrap) {
|
|
1869
|
-
if (state.done) return;
|
|
1870
|
-
state.done = true;
|
|
1871
|
-
if (unwrap) state = unwrap;
|
|
1872
|
-
try {
|
|
1873
|
-
if (state.facade === value) throw new TypeError$1("Promise can't be resolved itself");
|
|
1874
|
-
var then = isThenable(value);
|
|
1875
|
-
if (then) {
|
|
1876
|
-
microtask(function () {
|
|
1877
|
-
var wrapper = { done: false };
|
|
1878
|
-
try {
|
|
1879
|
-
call$e(then, value,
|
|
1880
|
-
bind$1(internalResolve, wrapper, state),
|
|
1881
|
-
bind$1(internalReject, wrapper, state)
|
|
1882
|
-
);
|
|
1883
|
-
} catch (error) {
|
|
1884
|
-
internalReject(wrapper, error, state);
|
|
1885
|
-
}
|
|
1886
|
-
});
|
|
1887
|
-
} else {
|
|
1888
|
-
state.value = value;
|
|
1889
|
-
state.state = FULFILLED;
|
|
1890
|
-
notify(state, false);
|
|
1891
|
-
}
|
|
1892
|
-
} catch (error) {
|
|
1893
|
-
internalReject({ done: false }, error, state);
|
|
1894
|
-
}
|
|
1895
|
-
};
|
|
1896
|
-
|
|
1897
|
-
// constructor polyfill
|
|
1898
|
-
if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
1899
|
-
// 25.4.3.1 Promise(executor)
|
|
1900
|
-
PromiseConstructor = function Promise(executor) {
|
|
1901
|
-
anInstance$1(this, PromisePrototype);
|
|
1902
|
-
aCallable$7(executor);
|
|
1903
|
-
call$e(Internal, this);
|
|
1904
|
-
var state = getInternalPromiseState(this);
|
|
1905
|
-
try {
|
|
1906
|
-
executor(bind$1(internalResolve, state), bind$1(internalReject, state));
|
|
1907
|
-
} catch (error) {
|
|
1908
|
-
internalReject(state, error);
|
|
1909
|
-
}
|
|
1910
|
-
};
|
|
1911
|
-
|
|
1912
|
-
PromisePrototype = PromiseConstructor.prototype;
|
|
1913
|
-
|
|
1914
|
-
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
1915
|
-
Internal = function Promise(executor) {
|
|
1916
|
-
setInternalState$2(this, {
|
|
1917
|
-
type: PROMISE,
|
|
1918
|
-
done: false,
|
|
1919
|
-
notified: false,
|
|
1920
|
-
parent: false,
|
|
1921
|
-
reactions: new Queue(),
|
|
1922
|
-
rejection: false,
|
|
1923
|
-
state: PENDING,
|
|
1924
|
-
value: undefined
|
|
1925
|
-
});
|
|
1926
|
-
};
|
|
1927
|
-
|
|
1928
|
-
// `Promise.prototype.then` method
|
|
1929
|
-
// https://tc39.es/ecma262/#sec-promise.prototype.then
|
|
1930
|
-
Internal.prototype = defineBuiltIn$6(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
|
|
1931
|
-
var state = getInternalPromiseState(this);
|
|
1932
|
-
var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
|
|
1933
|
-
state.parent = true;
|
|
1934
|
-
reaction.ok = isCallable$7(onFulfilled) ? onFulfilled : true;
|
|
1935
|
-
reaction.fail = isCallable$7(onRejected) && onRejected;
|
|
1936
|
-
reaction.domain = IS_NODE ? process.domain : undefined;
|
|
1937
|
-
if (state.state === PENDING) state.reactions.add(reaction);
|
|
1938
|
-
else microtask(function () {
|
|
1939
|
-
callReaction(reaction, state);
|
|
1940
|
-
});
|
|
1941
|
-
return reaction.promise;
|
|
1942
|
-
});
|
|
1943
|
-
|
|
1944
|
-
OwnPromiseCapability = function () {
|
|
1945
|
-
var promise = new Internal();
|
|
1946
|
-
var state = getInternalPromiseState(promise);
|
|
1947
|
-
this.promise = promise;
|
|
1948
|
-
this.resolve = bind$1(internalResolve, state);
|
|
1949
|
-
this.reject = bind$1(internalReject, state);
|
|
1950
|
-
};
|
|
1951
|
-
|
|
1952
|
-
newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
|
|
1953
|
-
return C === PromiseConstructor || C === PromiseWrapper
|
|
1954
|
-
? new OwnPromiseCapability(C)
|
|
1955
|
-
: newGenericPromiseCapability(C);
|
|
1956
|
-
};
|
|
1957
|
-
|
|
1958
|
-
if (isCallable$7(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
|
|
1959
|
-
nativeThen = NativePromisePrototype$1.then;
|
|
1960
|
-
|
|
1961
|
-
if (!NATIVE_PROMISE_SUBCLASSING) {
|
|
1962
|
-
// make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
|
|
1963
|
-
defineBuiltIn$6(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
|
|
1964
|
-
var that = this;
|
|
1965
|
-
return new PromiseConstructor(function (resolve, reject) {
|
|
1966
|
-
call$e(nativeThen, that, resolve, reject);
|
|
1967
|
-
}).then(onFulfilled, onRejected);
|
|
1968
|
-
// https://github.com/zloirock/core-js/issues/640
|
|
1969
|
-
}, { unsafe: true });
|
|
1970
|
-
}
|
|
1971
|
-
|
|
1972
|
-
// make `.constructor === Promise` work for native promise-based APIs
|
|
1973
|
-
try {
|
|
1974
|
-
delete NativePromisePrototype$1.constructor;
|
|
1975
|
-
} catch (error) { /* empty */ }
|
|
1976
|
-
|
|
1977
|
-
// make `instanceof Promise` work for native promise-based APIs
|
|
1978
|
-
if (setPrototypeOf$1) {
|
|
1979
|
-
setPrototypeOf$1(NativePromisePrototype$1, PromisePrototype);
|
|
1980
|
-
}
|
|
1981
|
-
}
|
|
1982
|
-
}
|
|
1983
|
-
|
|
1984
|
-
$$e({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
|
|
1985
|
-
Promise: PromiseConstructor
|
|
1986
|
-
});
|
|
1987
|
-
|
|
1988
|
-
setToStringTag$3(PromiseConstructor, PROMISE, false);
|
|
1989
|
-
setSpecies(PROMISE);
|
|
1990
|
-
|
|
1991
|
-
var iterators = {};
|
|
1992
|
-
|
|
1993
|
-
var wellKnownSymbol$a = wellKnownSymbol$i;
|
|
1994
|
-
var Iterators$4 = iterators;
|
|
1995
|
-
|
|
1996
|
-
var ITERATOR$6 = wellKnownSymbol$a('iterator');
|
|
1997
|
-
var ArrayPrototype$1 = Array.prototype;
|
|
1998
|
-
|
|
1999
|
-
// check on default Array iterator
|
|
2000
|
-
var isArrayIteratorMethod$1 = function (it) {
|
|
2001
|
-
return it !== undefined && (Iterators$4.Array === it || ArrayPrototype$1[ITERATOR$6] === it);
|
|
2002
|
-
};
|
|
2003
|
-
|
|
2004
|
-
var classof$3 = classof$5;
|
|
2005
|
-
var getMethod$3 = getMethod$5;
|
|
2006
|
-
var isNullOrUndefined$1 = isNullOrUndefined$5;
|
|
2007
|
-
var Iterators$3 = iterators;
|
|
2008
|
-
var wellKnownSymbol$9 = wellKnownSymbol$i;
|
|
2009
|
-
|
|
2010
|
-
var ITERATOR$5 = wellKnownSymbol$9('iterator');
|
|
2011
|
-
|
|
2012
|
-
var getIteratorMethod$2 = function (it) {
|
|
2013
|
-
if (!isNullOrUndefined$1(it)) return getMethod$3(it, ITERATOR$5)
|
|
2014
|
-
|| getMethod$3(it, '@@iterator')
|
|
2015
|
-
|| Iterators$3[classof$3(it)];
|
|
2016
|
-
};
|
|
2017
|
-
|
|
2018
|
-
var call$d = functionCall;
|
|
2019
|
-
var aCallable$6 = aCallable$c;
|
|
2020
|
-
var anObject$f = anObject$j;
|
|
2021
|
-
var tryToString$1 = tryToString$4;
|
|
2022
|
-
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
2023
|
-
|
|
2024
|
-
var $TypeError$5 = TypeError;
|
|
2025
|
-
|
|
2026
|
-
var getIterator$1 = function (argument, usingIterator) {
|
|
2027
|
-
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
2028
|
-
if (aCallable$6(iteratorMethod)) return anObject$f(call$d(iteratorMethod, argument));
|
|
2029
|
-
throw new $TypeError$5(tryToString$1(argument) + ' is not iterable');
|
|
2030
|
-
};
|
|
2031
|
-
|
|
2032
|
-
var call$c = functionCall;
|
|
2033
|
-
var anObject$e = anObject$j;
|
|
2034
|
-
var getMethod$2 = getMethod$5;
|
|
2035
|
-
|
|
2036
|
-
var iteratorClose$3 = function (iterator, kind, value) {
|
|
2037
|
-
var innerResult, innerError;
|
|
2038
|
-
anObject$e(iterator);
|
|
2039
|
-
try {
|
|
2040
|
-
innerResult = getMethod$2(iterator, 'return');
|
|
2041
|
-
if (!innerResult) {
|
|
2042
|
-
if (kind === 'throw') throw value;
|
|
2043
|
-
return value;
|
|
2044
|
-
}
|
|
2045
|
-
innerResult = call$c(innerResult, iterator);
|
|
2046
|
-
} catch (error) {
|
|
2047
|
-
innerError = true;
|
|
2048
|
-
innerResult = error;
|
|
2049
|
-
}
|
|
2050
|
-
if (kind === 'throw') throw value;
|
|
2051
|
-
if (innerError) throw innerResult;
|
|
2052
|
-
anObject$e(innerResult);
|
|
2053
|
-
return value;
|
|
2054
|
-
};
|
|
2055
|
-
|
|
2056
|
-
var bind = functionBindContext;
|
|
2057
|
-
var call$b = functionCall;
|
|
2058
|
-
var anObject$d = anObject$j;
|
|
2059
|
-
var tryToString = tryToString$4;
|
|
2060
|
-
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
2061
|
-
var lengthOfArrayLike$1 = lengthOfArrayLike$3;
|
|
2062
|
-
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
2063
|
-
var getIterator = getIterator$1;
|
|
2064
|
-
var getIteratorMethod = getIteratorMethod$2;
|
|
2065
|
-
var iteratorClose$2 = iteratorClose$3;
|
|
2066
|
-
|
|
2067
|
-
var $TypeError$4 = TypeError;
|
|
2068
|
-
|
|
2069
|
-
var Result = function (stopped, result) {
|
|
2070
|
-
this.stopped = stopped;
|
|
2071
|
-
this.result = result;
|
|
2072
|
-
};
|
|
2073
|
-
|
|
2074
|
-
var ResultPrototype = Result.prototype;
|
|
2075
|
-
|
|
2076
|
-
var iterate$4 = function (iterable, unboundFunction, options) {
|
|
2077
|
-
var that = options && options.that;
|
|
2078
|
-
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
2079
|
-
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
2080
|
-
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
2081
|
-
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
2082
|
-
var fn = bind(unboundFunction, that);
|
|
2083
|
-
var iterator, iterFn, index, length, result, next, step;
|
|
2084
|
-
|
|
2085
|
-
var stop = function (condition) {
|
|
2086
|
-
if (iterator) iteratorClose$2(iterator, 'normal', condition);
|
|
2087
|
-
return new Result(true, condition);
|
|
2088
|
-
};
|
|
2089
|
-
|
|
2090
|
-
var callFn = function (value) {
|
|
2091
|
-
if (AS_ENTRIES) {
|
|
2092
|
-
anObject$d(value);
|
|
2093
|
-
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
2094
|
-
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
2095
|
-
};
|
|
2096
|
-
|
|
2097
|
-
if (IS_RECORD) {
|
|
2098
|
-
iterator = iterable.iterator;
|
|
2099
|
-
} else if (IS_ITERATOR) {
|
|
2100
|
-
iterator = iterable;
|
|
2101
|
-
} else {
|
|
2102
|
-
iterFn = getIteratorMethod(iterable);
|
|
2103
|
-
if (!iterFn) throw new $TypeError$4(tryToString(iterable) + ' is not iterable');
|
|
2104
|
-
// optimisation for array iterators
|
|
2105
|
-
if (isArrayIteratorMethod(iterFn)) {
|
|
2106
|
-
for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) {
|
|
2107
|
-
result = callFn(iterable[index]);
|
|
2108
|
-
if (result && isPrototypeOf$1(ResultPrototype, result)) return result;
|
|
2109
|
-
} return new Result(false);
|
|
2110
|
-
}
|
|
2111
|
-
iterator = getIterator(iterable, iterFn);
|
|
2112
|
-
}
|
|
2113
|
-
|
|
2114
|
-
next = IS_RECORD ? iterable.next : iterator.next;
|
|
2115
|
-
while (!(step = call$b(next, iterator)).done) {
|
|
2116
|
-
try {
|
|
2117
|
-
result = callFn(step.value);
|
|
2118
|
-
} catch (error) {
|
|
2119
|
-
iteratorClose$2(iterator, 'throw', error);
|
|
2120
|
-
}
|
|
2121
|
-
if (typeof result == 'object' && result && isPrototypeOf$1(ResultPrototype, result)) return result;
|
|
2122
|
-
} return new Result(false);
|
|
2123
|
-
};
|
|
2124
|
-
|
|
2125
|
-
var wellKnownSymbol$8 = wellKnownSymbol$i;
|
|
2126
|
-
|
|
2127
|
-
var ITERATOR$4 = wellKnownSymbol$8('iterator');
|
|
2128
|
-
var SAFE_CLOSING = false;
|
|
2129
|
-
|
|
2130
|
-
try {
|
|
2131
|
-
var called = 0;
|
|
2132
|
-
var iteratorWithReturn = {
|
|
2133
|
-
next: function () {
|
|
2134
|
-
return { done: !!called++ };
|
|
2135
|
-
},
|
|
2136
|
-
'return': function () {
|
|
2137
|
-
SAFE_CLOSING = true;
|
|
2138
|
-
}
|
|
2139
|
-
};
|
|
2140
|
-
iteratorWithReturn[ITERATOR$4] = function () {
|
|
2141
|
-
return this;
|
|
2142
|
-
};
|
|
2143
|
-
// eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
|
|
2144
|
-
Array.from(iteratorWithReturn, function () { throw 2; });
|
|
2145
|
-
} catch (error) { /* empty */ }
|
|
2146
|
-
|
|
2147
|
-
var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
|
|
2148
|
-
try {
|
|
2149
|
-
if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
|
|
2150
|
-
} catch (error) { return false; } // workaround of old WebKit + `eval` bug
|
|
2151
|
-
var ITERATION_SUPPORT = false;
|
|
2152
|
-
try {
|
|
2153
|
-
var object = {};
|
|
2154
|
-
object[ITERATOR$4] = function () {
|
|
2155
|
-
return {
|
|
2156
|
-
next: function () {
|
|
2157
|
-
return { done: ITERATION_SUPPORT = true };
|
|
2158
|
-
}
|
|
2159
|
-
};
|
|
2160
|
-
};
|
|
2161
|
-
exec(object);
|
|
2162
|
-
} catch (error) { /* empty */ }
|
|
2163
|
-
return ITERATION_SUPPORT;
|
|
2164
|
-
};
|
|
2165
|
-
|
|
2166
|
-
var NativePromiseConstructor$1 = promiseNativeConstructor;
|
|
2167
|
-
var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
|
|
2168
|
-
var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2169
|
-
|
|
2170
|
-
var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
|
|
2171
|
-
NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
|
|
2172
|
-
});
|
|
2173
|
-
|
|
2174
|
-
var $$d = _export;
|
|
2175
|
-
var call$a = functionCall;
|
|
2176
|
-
var aCallable$5 = aCallable$c;
|
|
2177
|
-
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
2178
|
-
var perform$1 = perform$3;
|
|
2179
|
-
var iterate$3 = iterate$4;
|
|
2180
|
-
var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
|
|
2181
|
-
|
|
2182
|
-
// `Promise.all` method
|
|
2183
|
-
// https://tc39.es/ecma262/#sec-promise.all
|
|
2184
|
-
$$d({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
|
|
2185
|
-
all: function all(iterable) {
|
|
2186
|
-
var C = this;
|
|
2187
|
-
var capability = newPromiseCapabilityModule$2.f(C);
|
|
2188
|
-
var resolve = capability.resolve;
|
|
2189
|
-
var reject = capability.reject;
|
|
2190
|
-
var result = perform$1(function () {
|
|
2191
|
-
var $promiseResolve = aCallable$5(C.resolve);
|
|
2192
|
-
var values = [];
|
|
2193
|
-
var counter = 0;
|
|
2194
|
-
var remaining = 1;
|
|
2195
|
-
iterate$3(iterable, function (promise) {
|
|
2196
|
-
var index = counter++;
|
|
2197
|
-
var alreadyCalled = false;
|
|
2198
|
-
remaining++;
|
|
2199
|
-
call$a($promiseResolve, C, promise).then(function (value) {
|
|
2200
|
-
if (alreadyCalled) return;
|
|
2201
|
-
alreadyCalled = true;
|
|
2202
|
-
values[index] = value;
|
|
2203
|
-
--remaining || resolve(values);
|
|
2204
|
-
}, reject);
|
|
2205
|
-
});
|
|
2206
|
-
--remaining || resolve(values);
|
|
2207
|
-
});
|
|
2208
|
-
if (result.error) reject(result.value);
|
|
2209
|
-
return capability.promise;
|
|
2210
|
-
}
|
|
2211
|
-
});
|
|
2212
|
-
|
|
2213
|
-
var $$c = _export;
|
|
2214
|
-
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2215
|
-
var NativePromiseConstructor = promiseNativeConstructor;
|
|
2216
|
-
var getBuiltIn$1 = getBuiltIn$7;
|
|
2217
|
-
var isCallable$6 = isCallable$m;
|
|
2218
|
-
var defineBuiltIn$5 = defineBuiltIn$8;
|
|
2219
|
-
|
|
2220
|
-
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
|
|
2221
|
-
|
|
2222
|
-
// `Promise.prototype.catch` method
|
|
2223
|
-
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
2224
|
-
$$c({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
|
|
2225
|
-
'catch': function (onRejected) {
|
|
2226
|
-
return this.then(undefined, onRejected);
|
|
2227
|
-
}
|
|
2228
|
-
});
|
|
2229
|
-
|
|
2230
|
-
// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
|
|
2231
|
-
if (isCallable$6(NativePromiseConstructor)) {
|
|
2232
|
-
var method = getBuiltIn$1('Promise').prototype['catch'];
|
|
2233
|
-
if (NativePromisePrototype['catch'] !== method) {
|
|
2234
|
-
defineBuiltIn$5(NativePromisePrototype, 'catch', method, { unsafe: true });
|
|
2235
|
-
}
|
|
2236
|
-
}
|
|
2237
|
-
|
|
2238
|
-
var $$b = _export;
|
|
2239
|
-
var call$9 = functionCall;
|
|
2240
|
-
var aCallable$4 = aCallable$c;
|
|
2241
|
-
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
2242
|
-
var perform = perform$3;
|
|
2243
|
-
var iterate$2 = iterate$4;
|
|
2244
|
-
var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
|
|
2245
|
-
|
|
2246
|
-
// `Promise.race` method
|
|
2247
|
-
// https://tc39.es/ecma262/#sec-promise.race
|
|
2248
|
-
$$b({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
|
|
2249
|
-
race: function race(iterable) {
|
|
2250
|
-
var C = this;
|
|
2251
|
-
var capability = newPromiseCapabilityModule$1.f(C);
|
|
2252
|
-
var reject = capability.reject;
|
|
2253
|
-
var result = perform(function () {
|
|
2254
|
-
var $promiseResolve = aCallable$4(C.resolve);
|
|
2255
|
-
iterate$2(iterable, function (promise) {
|
|
2256
|
-
call$9($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
2257
|
-
});
|
|
2258
|
-
});
|
|
2259
|
-
if (result.error) reject(result.value);
|
|
2260
|
-
return capability.promise;
|
|
2261
|
-
}
|
|
2262
|
-
});
|
|
2263
|
-
|
|
2264
|
-
var $$a = _export;
|
|
2265
|
-
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
2266
|
-
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2267
|
-
|
|
2268
|
-
// `Promise.reject` method
|
|
2269
|
-
// https://tc39.es/ecma262/#sec-promise.reject
|
|
2270
|
-
$$a({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
2271
|
-
reject: function reject(r) {
|
|
2272
|
-
var capability = newPromiseCapabilityModule.f(this);
|
|
2273
|
-
var capabilityReject = capability.reject;
|
|
2274
|
-
capabilityReject(r);
|
|
2275
|
-
return capability.promise;
|
|
2276
|
-
}
|
|
2277
|
-
});
|
|
2278
|
-
|
|
2279
|
-
var anObject$c = anObject$j;
|
|
2280
|
-
var isObject$1 = isObject$a;
|
|
2281
|
-
var newPromiseCapability = newPromiseCapability$2;
|
|
2282
|
-
|
|
2283
|
-
var promiseResolve$1 = function (C, x) {
|
|
2284
|
-
anObject$c(C);
|
|
2285
|
-
if (isObject$1(x) && x.constructor === C) return x;
|
|
2286
|
-
var promiseCapability = newPromiseCapability.f(C);
|
|
2287
|
-
var resolve = promiseCapability.resolve;
|
|
2288
|
-
resolve(x);
|
|
2289
|
-
return promiseCapability.promise;
|
|
2290
|
-
};
|
|
2291
|
-
|
|
2292
|
-
var $$9 = _export;
|
|
2293
|
-
var getBuiltIn = getBuiltIn$7;
|
|
2294
|
-
var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
|
|
2295
|
-
var promiseResolve = promiseResolve$1;
|
|
2296
|
-
|
|
2297
|
-
getBuiltIn('Promise');
|
|
2298
|
-
|
|
2299
|
-
// `Promise.resolve` method
|
|
2300
|
-
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
2301
|
-
$$9({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
2302
|
-
resolve: function resolve(x) {
|
|
2303
|
-
return promiseResolve(this, x);
|
|
2304
|
-
}
|
|
2305
|
-
});
|
|
2306
|
-
|
|
2307
|
-
const PReportsManager = /*#__PURE__*/lazy(() => import('./reports-manager.esm.js'));
|
|
2308
|
-
const PReportDesigner = /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return reportDesigner; }));
|
|
2309
|
-
const SuspenseWrapper = props => {
|
|
2310
|
-
const Component = props.component;
|
|
2311
|
-
return jsx(Suspense, {
|
|
2312
|
-
fallback: jsx("div", {
|
|
2313
|
-
children: "Loading..."
|
|
2314
|
-
}),
|
|
2315
|
-
children: jsx(Component, Object.assign({}, props))
|
|
2316
|
-
});
|
|
2317
|
-
};
|
|
2318
|
-
const reportsNavigation = {
|
|
2319
|
-
menu: {
|
|
2320
|
-
name: "Reports",
|
|
2321
|
-
identifier: "reports",
|
|
2322
|
-
items: [{
|
|
2323
|
-
name: "Gestione reports",
|
|
2324
|
-
identifier: "manager",
|
|
2325
|
-
route: "reports"
|
|
2326
|
-
}]
|
|
2327
|
-
},
|
|
2328
|
-
routes: [{
|
|
2329
|
-
route: "reports",
|
|
2330
|
-
title: "Gestione reports",
|
|
2331
|
-
routes: [{
|
|
2332
|
-
route: "/",
|
|
2333
|
-
component: jsx(SuspenseWrapper, {
|
|
2334
|
-
component: PReportsManager
|
|
2335
|
-
}),
|
|
2336
|
-
title: "Gestione reports"
|
|
2337
|
-
}, {
|
|
2338
|
-
route: ":id",
|
|
2339
|
-
component: jsx(SuspenseWrapper, {
|
|
2340
|
-
component: PReportDesigner,
|
|
2341
|
-
mode: 'designer'
|
|
2342
|
-
}),
|
|
2343
|
-
title: "Report designer"
|
|
2344
|
-
}, {
|
|
2345
|
-
route: "preview/:id",
|
|
2346
|
-
component: jsx(SuspenseWrapper, {
|
|
2347
|
-
component: PReportDesigner,
|
|
2348
|
-
mode: 'viewer'
|
|
2349
|
-
}),
|
|
2350
|
-
title: "Anteprima report"
|
|
2351
|
-
}]
|
|
2352
|
-
}]
|
|
2353
|
-
};
|
|
2354
|
-
|
|
2355
|
-
const reportsModule = new EmbeddedModule("reporting", "Reporting", "Fluxo", "0.0.1", "fluxo");
|
|
2356
|
-
// Navigations
|
|
2357
|
-
reportsModule.attachNavigation(reportsNavigation);
|
|
2358
|
-
|
|
2359
|
-
var objectDefineProperties = {};
|
|
2360
|
-
|
|
2361
|
-
var DESCRIPTORS$4 = descriptors;
|
|
2362
|
-
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
2363
|
-
var definePropertyModule$1 = objectDefineProperty;
|
|
2364
|
-
var anObject$b = anObject$j;
|
|
2365
|
-
var toIndexedObject$1 = toIndexedObject$5;
|
|
2366
|
-
var objectKeys = objectKeys$2;
|
|
2367
|
-
|
|
2368
|
-
// `Object.defineProperties` method
|
|
2369
|
-
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
2370
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
2371
|
-
objectDefineProperties.f = DESCRIPTORS$4 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
2372
|
-
anObject$b(O);
|
|
2373
|
-
var props = toIndexedObject$1(Properties);
|
|
2374
|
-
var keys = objectKeys(Properties);
|
|
2375
|
-
var length = keys.length;
|
|
2376
|
-
var index = 0;
|
|
2377
|
-
var key;
|
|
2378
|
-
while (length > index) definePropertyModule$1.f(O, key = keys[index++], props[key]);
|
|
2379
|
-
return O;
|
|
2380
|
-
};
|
|
2381
|
-
|
|
2382
|
-
/* global ActiveXObject -- old IE, WSH */
|
|
2383
|
-
var anObject$a = anObject$j;
|
|
2384
|
-
var definePropertiesModule = objectDefineProperties;
|
|
2385
|
-
var enumBugKeys = enumBugKeys$3;
|
|
2386
|
-
var hiddenKeys = hiddenKeys$4;
|
|
2387
|
-
var html = html$2;
|
|
2388
|
-
var documentCreateElement$1 = documentCreateElement$2;
|
|
2389
|
-
var sharedKey$1 = sharedKey$3;
|
|
2390
|
-
|
|
2391
|
-
var GT = '>';
|
|
2392
|
-
var LT = '<';
|
|
2393
|
-
var PROTOTYPE = 'prototype';
|
|
2394
|
-
var SCRIPT = 'script';
|
|
2395
|
-
var IE_PROTO$1 = sharedKey$1('IE_PROTO');
|
|
2396
|
-
|
|
2397
|
-
var EmptyConstructor = function () { /* empty */ };
|
|
2398
|
-
|
|
2399
|
-
var scriptTag = function (content) {
|
|
2400
|
-
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
2401
|
-
};
|
|
2402
|
-
|
|
2403
|
-
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
2404
|
-
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
2405
|
-
activeXDocument.write(scriptTag(''));
|
|
2406
|
-
activeXDocument.close();
|
|
2407
|
-
var temp = activeXDocument.parentWindow.Object;
|
|
2408
|
-
activeXDocument = null; // avoid memory leak
|
|
2409
|
-
return temp;
|
|
2410
|
-
};
|
|
2411
|
-
|
|
2412
|
-
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
2413
|
-
var NullProtoObjectViaIFrame = function () {
|
|
2414
|
-
// Thrash, waste and sodomy: IE GC bug
|
|
2415
|
-
var iframe = documentCreateElement$1('iframe');
|
|
2416
|
-
var JS = 'java' + SCRIPT + ':';
|
|
2417
|
-
var iframeDocument;
|
|
2418
|
-
iframe.style.display = 'none';
|
|
2419
|
-
html.appendChild(iframe);
|
|
2420
|
-
// https://github.com/zloirock/core-js/issues/475
|
|
2421
|
-
iframe.src = String(JS);
|
|
2422
|
-
iframeDocument = iframe.contentWindow.document;
|
|
2423
|
-
iframeDocument.open();
|
|
2424
|
-
iframeDocument.write(scriptTag('document.F=Object'));
|
|
2425
|
-
iframeDocument.close();
|
|
2426
|
-
return iframeDocument.F;
|
|
2427
|
-
};
|
|
2428
|
-
|
|
2429
|
-
// Check for document.domain and active x support
|
|
2430
|
-
// No need to use active x approach when document.domain is not set
|
|
2431
|
-
// see https://github.com/es-shims/es5-shim/issues/150
|
|
2432
|
-
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
2433
|
-
// avoid IE GC bug
|
|
2434
|
-
var activeXDocument;
|
|
2435
|
-
var NullProtoObject = function () {
|
|
2436
|
-
try {
|
|
2437
|
-
activeXDocument = new ActiveXObject('htmlfile');
|
|
2438
|
-
} catch (error) { /* ignore */ }
|
|
2439
|
-
NullProtoObject = typeof document != 'undefined'
|
|
2440
|
-
? document.domain && activeXDocument
|
|
2441
|
-
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
2442
|
-
: NullProtoObjectViaIFrame()
|
|
2443
|
-
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
2444
|
-
var length = enumBugKeys.length;
|
|
2445
|
-
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
2446
|
-
return NullProtoObject();
|
|
2447
|
-
};
|
|
2448
|
-
|
|
2449
|
-
hiddenKeys[IE_PROTO$1] = true;
|
|
2450
|
-
|
|
2451
|
-
// `Object.create` method
|
|
2452
|
-
// https://tc39.es/ecma262/#sec-object.create
|
|
2453
|
-
// eslint-disable-next-line es/no-object-create -- safe
|
|
2454
|
-
var objectCreate = Object.create || function create(O, Properties) {
|
|
2455
|
-
var result;
|
|
2456
|
-
if (O !== null) {
|
|
2457
|
-
EmptyConstructor[PROTOTYPE] = anObject$a(O);
|
|
2458
|
-
result = new EmptyConstructor();
|
|
2459
|
-
EmptyConstructor[PROTOTYPE] = null;
|
|
2460
|
-
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
2461
|
-
result[IE_PROTO$1] = O;
|
|
2462
|
-
} else result = NullProtoObject();
|
|
2463
|
-
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
2464
|
-
};
|
|
2465
|
-
|
|
2466
|
-
var wellKnownSymbol$7 = wellKnownSymbol$i;
|
|
2467
|
-
var create$3 = objectCreate;
|
|
2468
|
-
var defineProperty$1 = objectDefineProperty.f;
|
|
2469
|
-
|
|
2470
|
-
var UNSCOPABLES = wellKnownSymbol$7('unscopables');
|
|
2471
|
-
var ArrayPrototype = Array.prototype;
|
|
2472
|
-
|
|
2473
|
-
// Array.prototype[@@unscopables]
|
|
2474
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
2475
|
-
if (ArrayPrototype[UNSCOPABLES] === undefined) {
|
|
2476
|
-
defineProperty$1(ArrayPrototype, UNSCOPABLES, {
|
|
2477
|
-
configurable: true,
|
|
2478
|
-
value: create$3(null)
|
|
2479
|
-
});
|
|
2480
|
-
}
|
|
2481
|
-
|
|
2482
|
-
// add a key to Array.prototype[@@unscopables]
|
|
2483
|
-
var addToUnscopables$2 = function (key) {
|
|
2484
|
-
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
2485
|
-
};
|
|
2486
|
-
|
|
2487
|
-
var fails$a = fails$m;
|
|
2488
|
-
|
|
2489
|
-
var correctPrototypeGetter = !fails$a(function () {
|
|
2490
|
-
function F() { /* empty */ }
|
|
2491
|
-
F.prototype.constructor = null;
|
|
2492
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
2493
|
-
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
2494
|
-
});
|
|
2495
|
-
|
|
2496
|
-
var hasOwn$2 = hasOwnProperty_1;
|
|
2497
|
-
var isCallable$5 = isCallable$m;
|
|
2498
|
-
var toObject$2 = toObject$5;
|
|
2499
|
-
var sharedKey = sharedKey$3;
|
|
2500
|
-
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
2501
|
-
|
|
2502
|
-
var IE_PROTO = sharedKey('IE_PROTO');
|
|
2503
|
-
var $Object = Object;
|
|
2504
|
-
var ObjectPrototype = $Object.prototype;
|
|
2505
|
-
|
|
2506
|
-
// `Object.getPrototypeOf` method
|
|
2507
|
-
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
2508
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
2509
|
-
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
|
|
2510
|
-
var object = toObject$2(O);
|
|
2511
|
-
if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
|
|
2512
|
-
var constructor = object.constructor;
|
|
2513
|
-
if (isCallable$5(constructor) && object instanceof constructor) {
|
|
2514
|
-
return constructor.prototype;
|
|
2515
|
-
} return object instanceof $Object ? ObjectPrototype : null;
|
|
2516
|
-
};
|
|
2517
|
-
|
|
2518
|
-
var fails$9 = fails$m;
|
|
2519
|
-
var isCallable$4 = isCallable$m;
|
|
2520
|
-
var isObject = isObject$a;
|
|
2521
|
-
var getPrototypeOf$2 = objectGetPrototypeOf;
|
|
2522
|
-
var defineBuiltIn$4 = defineBuiltIn$8;
|
|
2523
|
-
var wellKnownSymbol$6 = wellKnownSymbol$i;
|
|
2524
|
-
|
|
2525
|
-
var ITERATOR$3 = wellKnownSymbol$6('iterator');
|
|
2526
|
-
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
2527
|
-
|
|
2528
|
-
// `%IteratorPrototype%` object
|
|
2529
|
-
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
2530
|
-
var IteratorPrototype$4, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
2531
|
-
|
|
2532
|
-
/* eslint-disable es/no-array-prototype-keys -- safe */
|
|
2533
|
-
if ([].keys) {
|
|
2534
|
-
arrayIterator = [].keys();
|
|
2535
|
-
// Safari 8 has buggy iterators w/o `next`
|
|
2536
|
-
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
|
|
2537
|
-
else {
|
|
2538
|
-
PrototypeOfArrayIteratorPrototype = getPrototypeOf$2(getPrototypeOf$2(arrayIterator));
|
|
2539
|
-
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$4 = PrototypeOfArrayIteratorPrototype;
|
|
2540
|
-
}
|
|
2541
|
-
}
|
|
2542
|
-
|
|
2543
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$4) || fails$9(function () {
|
|
2544
|
-
var test = {};
|
|
2545
|
-
// FF44- legacy iterators case
|
|
2546
|
-
return IteratorPrototype$4[ITERATOR$3].call(test) !== test;
|
|
2547
|
-
});
|
|
2548
|
-
|
|
2549
|
-
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$4 = {};
|
|
2550
|
-
|
|
2551
|
-
// `%IteratorPrototype%[@@iterator]()` method
|
|
2552
|
-
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
2553
|
-
if (!isCallable$4(IteratorPrototype$4[ITERATOR$3])) {
|
|
2554
|
-
defineBuiltIn$4(IteratorPrototype$4, ITERATOR$3, function () {
|
|
2555
|
-
return this;
|
|
2556
|
-
});
|
|
2557
|
-
}
|
|
2558
|
-
|
|
2559
|
-
var iteratorsCore = {
|
|
2560
|
-
IteratorPrototype: IteratorPrototype$4,
|
|
2561
|
-
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
2562
|
-
};
|
|
2563
|
-
|
|
2564
|
-
var IteratorPrototype$3 = iteratorsCore.IteratorPrototype;
|
|
2565
|
-
var create$2 = objectCreate;
|
|
2566
|
-
var createPropertyDescriptor$1 = createPropertyDescriptor$4;
|
|
2567
|
-
var setToStringTag$2 = setToStringTag$4;
|
|
2568
|
-
var Iterators$2 = iterators;
|
|
2569
|
-
|
|
2570
|
-
var returnThis$1 = function () { return this; };
|
|
2571
|
-
|
|
2572
|
-
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
2573
|
-
var TO_STRING_TAG = NAME + ' Iterator';
|
|
2574
|
-
IteratorConstructor.prototype = create$2(IteratorPrototype$3, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
|
|
2575
|
-
setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
|
|
2576
|
-
Iterators$2[TO_STRING_TAG] = returnThis$1;
|
|
2577
|
-
return IteratorConstructor;
|
|
2578
|
-
};
|
|
2579
|
-
|
|
2580
|
-
var $$8 = _export;
|
|
2581
|
-
var call$8 = functionCall;
|
|
2582
|
-
var FunctionName = functionName;
|
|
2583
|
-
var isCallable$3 = isCallable$m;
|
|
2584
|
-
var createIteratorConstructor = iteratorCreateConstructor;
|
|
2585
|
-
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
2586
|
-
var setPrototypeOf = objectSetPrototypeOf;
|
|
2587
|
-
var setToStringTag$1 = setToStringTag$4;
|
|
2588
|
-
var createNonEnumerableProperty$3 = createNonEnumerableProperty$6;
|
|
2589
|
-
var defineBuiltIn$3 = defineBuiltIn$8;
|
|
2590
|
-
var wellKnownSymbol$5 = wellKnownSymbol$i;
|
|
2591
|
-
var Iterators$1 = iterators;
|
|
2592
|
-
var IteratorsCore = iteratorsCore;
|
|
2593
|
-
|
|
2594
|
-
var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
|
|
2595
|
-
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
2596
|
-
var IteratorPrototype$2 = IteratorsCore.IteratorPrototype;
|
|
2597
|
-
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
2598
|
-
var ITERATOR$2 = wellKnownSymbol$5('iterator');
|
|
2599
|
-
var KEYS = 'keys';
|
|
2600
|
-
var VALUES = 'values';
|
|
2601
|
-
var ENTRIES = 'entries';
|
|
2602
|
-
|
|
2603
|
-
var returnThis = function () { return this; };
|
|
2604
|
-
|
|
2605
|
-
var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
|
2606
|
-
createIteratorConstructor(IteratorConstructor, NAME, next);
|
|
2607
|
-
|
|
2608
|
-
var getIterationMethod = function (KIND) {
|
|
2609
|
-
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
|
2610
|
-
if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
2611
|
-
|
|
2612
|
-
switch (KIND) {
|
|
2613
|
-
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
|
|
2614
|
-
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
|
|
2615
|
-
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
|
|
2616
|
-
}
|
|
2617
|
-
|
|
2618
|
-
return function () { return new IteratorConstructor(this); };
|
|
2619
|
-
};
|
|
2620
|
-
|
|
2621
|
-
var TO_STRING_TAG = NAME + ' Iterator';
|
|
2622
|
-
var INCORRECT_VALUES_NAME = false;
|
|
2623
|
-
var IterablePrototype = Iterable.prototype;
|
|
2624
|
-
var nativeIterator = IterablePrototype[ITERATOR$2]
|
|
2625
|
-
|| IterablePrototype['@@iterator']
|
|
2626
|
-
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
2627
|
-
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
2628
|
-
var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
|
2629
|
-
var CurrentIteratorPrototype, methods, KEY;
|
|
2630
|
-
|
|
2631
|
-
// fix native
|
|
2632
|
-
if (anyNativeIterator) {
|
|
2633
|
-
CurrentIteratorPrototype = getPrototypeOf$1(anyNativeIterator.call(new Iterable()));
|
|
2634
|
-
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
2635
|
-
if (getPrototypeOf$1(CurrentIteratorPrototype) !== IteratorPrototype$2) {
|
|
2636
|
-
if (setPrototypeOf) {
|
|
2637
|
-
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
|
|
2638
|
-
} else if (!isCallable$3(CurrentIteratorPrototype[ITERATOR$2])) {
|
|
2639
|
-
defineBuiltIn$3(CurrentIteratorPrototype, ITERATOR$2, returnThis);
|
|
2640
|
-
}
|
|
2641
|
-
}
|
|
2642
|
-
// Set @@toStringTag to native iterators
|
|
2643
|
-
setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true);
|
|
2644
|
-
}
|
|
2645
|
-
}
|
|
2646
|
-
|
|
2647
|
-
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
2648
|
-
if (PROPER_FUNCTION_NAME$1 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
2649
|
-
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
2650
|
-
createNonEnumerableProperty$3(IterablePrototype, 'name', VALUES);
|
|
2651
|
-
} else {
|
|
2652
|
-
INCORRECT_VALUES_NAME = true;
|
|
2653
|
-
defaultIterator = function values() { return call$8(nativeIterator, this); };
|
|
2654
|
-
}
|
|
2655
|
-
}
|
|
2656
|
-
|
|
2657
|
-
// export additional methods
|
|
2658
|
-
if (DEFAULT) {
|
|
2659
|
-
methods = {
|
|
2660
|
-
values: getIterationMethod(VALUES),
|
|
2661
|
-
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
|
2662
|
-
entries: getIterationMethod(ENTRIES)
|
|
2663
|
-
};
|
|
2664
|
-
if (FORCED) for (KEY in methods) {
|
|
2665
|
-
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
2666
|
-
defineBuiltIn$3(IterablePrototype, KEY, methods[KEY]);
|
|
2667
|
-
}
|
|
2668
|
-
} else $$8({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
2669
|
-
}
|
|
2670
|
-
|
|
2671
|
-
// define iterator
|
|
2672
|
-
if (IterablePrototype[ITERATOR$2] !== defaultIterator) {
|
|
2673
|
-
defineBuiltIn$3(IterablePrototype, ITERATOR$2, defaultIterator, { name: DEFAULT });
|
|
2674
|
-
}
|
|
2675
|
-
Iterators$1[NAME] = defaultIterator;
|
|
2676
|
-
|
|
2677
|
-
return methods;
|
|
2678
|
-
};
|
|
2679
|
-
|
|
2680
|
-
// `CreateIterResultObject` abstract operation
|
|
2681
|
-
// https://tc39.es/ecma262/#sec-createiterresultobject
|
|
2682
|
-
var createIterResultObject$2 = function (value, done) {
|
|
2683
|
-
return { value: value, done: done };
|
|
2684
|
-
};
|
|
2685
|
-
|
|
2686
|
-
var toIndexedObject = toIndexedObject$5;
|
|
2687
|
-
var addToUnscopables$1 = addToUnscopables$2;
|
|
2688
|
-
var Iterators = iterators;
|
|
2689
|
-
var InternalStateModule$1 = internalState;
|
|
2690
|
-
var defineProperty = objectDefineProperty.f;
|
|
2691
|
-
var defineIterator = iteratorDefine;
|
|
2692
|
-
var createIterResultObject$1 = createIterResultObject$2;
|
|
2693
|
-
var DESCRIPTORS$3 = descriptors;
|
|
2694
|
-
|
|
2695
|
-
var ARRAY_ITERATOR = 'Array Iterator';
|
|
2696
|
-
var setInternalState$1 = InternalStateModule$1.set;
|
|
2697
|
-
var getInternalState$1 = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
|
|
2698
|
-
|
|
2699
|
-
// `Array.prototype.entries` method
|
|
2700
|
-
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
2701
|
-
// `Array.prototype.keys` method
|
|
2702
|
-
// https://tc39.es/ecma262/#sec-array.prototype.keys
|
|
2703
|
-
// `Array.prototype.values` method
|
|
2704
|
-
// https://tc39.es/ecma262/#sec-array.prototype.values
|
|
2705
|
-
// `Array.prototype[@@iterator]` method
|
|
2706
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@iterator
|
|
2707
|
-
// `CreateArrayIterator` internal method
|
|
2708
|
-
// https://tc39.es/ecma262/#sec-createarrayiterator
|
|
2709
|
-
var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
|
|
2710
|
-
setInternalState$1(this, {
|
|
2711
|
-
type: ARRAY_ITERATOR,
|
|
2712
|
-
target: toIndexedObject(iterated), // target
|
|
2713
|
-
index: 0, // next index
|
|
2714
|
-
kind: kind // kind
|
|
2715
|
-
});
|
|
2716
|
-
// `%ArrayIteratorPrototype%.next` method
|
|
2717
|
-
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
|
2718
|
-
}, function () {
|
|
2719
|
-
var state = getInternalState$1(this);
|
|
2720
|
-
var target = state.target;
|
|
2721
|
-
var index = state.index++;
|
|
2722
|
-
if (!target || index >= target.length) {
|
|
2723
|
-
state.target = undefined;
|
|
2724
|
-
return createIterResultObject$1(undefined, true);
|
|
2725
|
-
}
|
|
2726
|
-
switch (state.kind) {
|
|
2727
|
-
case 'keys': return createIterResultObject$1(index, false);
|
|
2728
|
-
case 'values': return createIterResultObject$1(target[index], false);
|
|
2729
|
-
} return createIterResultObject$1([index, target[index]], false);
|
|
2730
|
-
}, 'values');
|
|
2731
|
-
|
|
2732
|
-
// argumentsList[@@iterator] is %ArrayProto_values%
|
|
2733
|
-
// https://tc39.es/ecma262/#sec-createunmappedargumentsobject
|
|
2734
|
-
// https://tc39.es/ecma262/#sec-createmappedargumentsobject
|
|
2735
|
-
var values = Iterators.Arguments = Iterators.Array;
|
|
2736
|
-
|
|
2737
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
2738
|
-
addToUnscopables$1('keys');
|
|
2739
|
-
addToUnscopables$1('values');
|
|
2740
|
-
addToUnscopables$1('entries');
|
|
2741
|
-
|
|
2742
|
-
// V8 ~ Chrome 45- bug
|
|
2743
|
-
if (DESCRIPTORS$3 && values.name !== 'values') try {
|
|
2744
|
-
defineProperty(values, 'name', { value: 'values' });
|
|
2745
|
-
} catch (error) { /* empty */ }
|
|
2746
|
-
|
|
2747
|
-
// iterable DOM collections
|
|
2748
|
-
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
|
2749
|
-
var domIterables = {
|
|
2750
|
-
CSSRuleList: 0,
|
|
2751
|
-
CSSStyleDeclaration: 0,
|
|
2752
|
-
CSSValueList: 0,
|
|
2753
|
-
ClientRectList: 0,
|
|
2754
|
-
DOMRectList: 0,
|
|
2755
|
-
DOMStringList: 0,
|
|
2756
|
-
DOMTokenList: 1,
|
|
2757
|
-
DataTransferItemList: 0,
|
|
2758
|
-
FileList: 0,
|
|
2759
|
-
HTMLAllCollection: 0,
|
|
2760
|
-
HTMLCollection: 0,
|
|
2761
|
-
HTMLFormElement: 0,
|
|
2762
|
-
HTMLSelectElement: 0,
|
|
2763
|
-
MediaList: 0,
|
|
2764
|
-
MimeTypeArray: 0,
|
|
2765
|
-
NamedNodeMap: 0,
|
|
2766
|
-
NodeList: 1,
|
|
2767
|
-
PaintRequestList: 0,
|
|
2768
|
-
Plugin: 0,
|
|
2769
|
-
PluginArray: 0,
|
|
2770
|
-
SVGLengthList: 0,
|
|
2771
|
-
SVGNumberList: 0,
|
|
2772
|
-
SVGPathSegList: 0,
|
|
2773
|
-
SVGPointList: 0,
|
|
2774
|
-
SVGStringList: 0,
|
|
2775
|
-
SVGTransformList: 0,
|
|
2776
|
-
SourceBufferList: 0,
|
|
2777
|
-
StyleSheetList: 0,
|
|
2778
|
-
TextTrackCueList: 0,
|
|
2779
|
-
TextTrackList: 0,
|
|
2780
|
-
TouchList: 0
|
|
2781
|
-
};
|
|
2782
|
-
|
|
2783
|
-
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
|
2784
|
-
var documentCreateElement = documentCreateElement$2;
|
|
2785
|
-
|
|
2786
|
-
var classList = documentCreateElement('span').classList;
|
|
2787
|
-
var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
|
|
2788
|
-
|
|
2789
|
-
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
2790
|
-
|
|
2791
|
-
var global$5 = global$m;
|
|
2792
|
-
var DOMIterables = domIterables;
|
|
2793
|
-
var DOMTokenListPrototype = domTokenListPrototype;
|
|
2794
|
-
var ArrayIteratorMethods = es_array_iterator;
|
|
2795
|
-
var createNonEnumerableProperty$2 = createNonEnumerableProperty$6;
|
|
2796
|
-
var setToStringTag = setToStringTag$4;
|
|
2797
|
-
var wellKnownSymbol$4 = wellKnownSymbol$i;
|
|
2798
|
-
|
|
2799
|
-
var ITERATOR$1 = wellKnownSymbol$4('iterator');
|
|
2800
|
-
var ArrayValues = ArrayIteratorMethods.values;
|
|
2801
|
-
|
|
2802
|
-
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
2803
|
-
if (CollectionPrototype) {
|
|
2804
|
-
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
2805
|
-
if (CollectionPrototype[ITERATOR$1] !== ArrayValues) try {
|
|
2806
|
-
createNonEnumerableProperty$2(CollectionPrototype, ITERATOR$1, ArrayValues);
|
|
2807
|
-
} catch (error) {
|
|
2808
|
-
CollectionPrototype[ITERATOR$1] = ArrayValues;
|
|
2809
|
-
}
|
|
2810
|
-
setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
|
|
2811
|
-
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
2812
|
-
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
2813
|
-
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
2814
|
-
createNonEnumerableProperty$2(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
2815
|
-
} catch (error) {
|
|
2816
|
-
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
2817
|
-
}
|
|
2818
|
-
}
|
|
2819
|
-
}
|
|
2820
|
-
};
|
|
2821
|
-
|
|
2822
|
-
for (var COLLECTION_NAME in DOMIterables) {
|
|
2823
|
-
handlePrototype(global$5[COLLECTION_NAME] && global$5[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
2824
|
-
}
|
|
2825
|
-
|
|
2826
|
-
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
2827
|
-
|
|
2828
|
-
/**
|
|
2829
|
-
* @license @tabler/icons-react v3.36.0 - MIT
|
|
2830
|
-
*
|
|
2831
|
-
* This source code is licensed under the MIT license.
|
|
2832
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
2833
|
-
*/
|
|
2834
|
-
|
|
2835
|
-
var defaultAttributes = {
|
|
2836
|
-
outline: {
|
|
2837
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2838
|
-
width: 24,
|
|
2839
|
-
height: 24,
|
|
2840
|
-
viewBox: "0 0 24 24",
|
|
2841
|
-
fill: "none",
|
|
2842
|
-
stroke: "currentColor",
|
|
2843
|
-
strokeWidth: 2,
|
|
2844
|
-
strokeLinecap: "round",
|
|
2845
|
-
strokeLinejoin: "round"
|
|
2846
|
-
},
|
|
2847
|
-
filled: {
|
|
2848
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2849
|
-
width: 24,
|
|
2850
|
-
height: 24,
|
|
2851
|
-
viewBox: "0 0 24 24",
|
|
2852
|
-
fill: "currentColor",
|
|
2853
|
-
stroke: "none"
|
|
2854
|
-
}
|
|
2855
|
-
};
|
|
2856
|
-
|
|
2857
|
-
/**
|
|
2858
|
-
* @license @tabler/icons-react v3.36.0 - MIT
|
|
2859
|
-
*
|
|
2860
|
-
* This source code is licensed under the MIT license.
|
|
2861
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
2862
|
-
*/
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
const createReactComponent = (type, iconName, iconNamePascal, iconNode) => {
|
|
2866
|
-
const Component = forwardRef(
|
|
2867
|
-
({ color = "currentColor", size = 24, stroke = 2, title, className, children, ...rest }, ref) => createElement$2(
|
|
2868
|
-
"svg",
|
|
2869
|
-
{
|
|
2870
|
-
ref,
|
|
2871
|
-
...defaultAttributes[type],
|
|
2872
|
-
width: size,
|
|
2873
|
-
height: size,
|
|
2874
|
-
className: [`tabler-icon`, `tabler-icon-${iconName}`, className].join(" "),
|
|
2875
|
-
...{
|
|
2876
|
-
strokeWidth: stroke,
|
|
2877
|
-
stroke: color
|
|
2878
|
-
},
|
|
2879
|
-
...rest
|
|
2880
|
-
},
|
|
2881
|
-
[
|
|
2882
|
-
title && createElement$2("title", { key: "svg-title" }, title),
|
|
2883
|
-
...iconNode.map(([tag, attrs]) => createElement$2(tag, attrs)),
|
|
2884
|
-
...Array.isArray(children) ? children : [children]
|
|
2885
|
-
]
|
|
2886
|
-
)
|
|
2887
|
-
);
|
|
2888
|
-
Component.displayName = `${iconNamePascal}`;
|
|
2889
|
-
return Component;
|
|
2890
|
-
};
|
|
2891
|
-
|
|
2892
|
-
/**
|
|
2893
|
-
* @license @tabler/icons-react v3.36.0 - MIT
|
|
2894
|
-
*
|
|
2895
|
-
* This source code is licensed under the MIT license.
|
|
2896
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
2897
|
-
*/
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
const __iconNode$1 = [["path", { "d": "M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z", "key": "svg-0" }]];
|
|
2901
|
-
const IconFilter = createReactComponent("outline", "filter", "Filter", __iconNode$1);
|
|
2902
|
-
|
|
2903
|
-
/**
|
|
2904
|
-
* @license @tabler/icons-react v3.36.0 - MIT
|
|
2905
|
-
*
|
|
2906
|
-
* This source code is licensed under the MIT license.
|
|
2907
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
2908
|
-
*/
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
const __iconNode = [["path", { "d": "M17 17h2a2 2 0 0 0 2 -2v-4a2 2 0 0 0 -2 -2h-14a2 2 0 0 0 -2 2v4a2 2 0 0 0 2 2h2", "key": "svg-0" }], ["path", { "d": "M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4", "key": "svg-1" }], ["path", { "d": "M7 13m0 2a2 2 0 0 1 2 -2h6a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2z", "key": "svg-2" }]];
|
|
2912
|
-
const IconPrinter = createReactComponent("outline", "printer", "Printer", __iconNode);
|
|
2913
|
-
|
|
2914
|
-
var classof$2 = classof$5;
|
|
2915
|
-
|
|
2916
|
-
var $String = String;
|
|
2917
|
-
|
|
2918
|
-
var toString$3 = function (argument) {
|
|
2919
|
-
if (classof$2(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
2920
|
-
return $String(argument);
|
|
2921
|
-
};
|
|
2922
|
-
|
|
2923
|
-
var anObject$9 = anObject$j;
|
|
2924
|
-
|
|
2925
|
-
// `RegExp.prototype.flags` getter implementation
|
|
2926
|
-
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
2927
|
-
var regexpFlags$1 = function () {
|
|
2928
|
-
var that = anObject$9(this);
|
|
2929
|
-
var result = '';
|
|
2930
|
-
if (that.hasIndices) result += 'd';
|
|
2931
|
-
if (that.global) result += 'g';
|
|
2932
|
-
if (that.ignoreCase) result += 'i';
|
|
2933
|
-
if (that.multiline) result += 'm';
|
|
2934
|
-
if (that.dotAll) result += 's';
|
|
2935
|
-
if (that.unicode) result += 'u';
|
|
2936
|
-
if (that.unicodeSets) result += 'v';
|
|
2937
|
-
if (that.sticky) result += 'y';
|
|
2938
|
-
return result;
|
|
2939
|
-
};
|
|
2940
|
-
|
|
2941
|
-
var call$7 = functionCall;
|
|
2942
|
-
var hasOwn$1 = hasOwnProperty_1;
|
|
2943
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
2944
|
-
var regExpFlags = regexpFlags$1;
|
|
2945
|
-
|
|
2946
|
-
var RegExpPrototype$2 = RegExp.prototype;
|
|
2947
|
-
|
|
2948
|
-
var regexpGetFlags = function (R) {
|
|
2949
|
-
var flags = R.flags;
|
|
2950
|
-
return flags === undefined && !('flags' in RegExpPrototype$2) && !hasOwn$1(R, 'flags') && isPrototypeOf(RegExpPrototype$2, R)
|
|
2951
|
-
? call$7(regExpFlags, R) : flags;
|
|
2952
|
-
};
|
|
2953
|
-
|
|
2954
|
-
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
2955
|
-
var defineBuiltIn$2 = defineBuiltIn$8;
|
|
2956
|
-
var anObject$8 = anObject$j;
|
|
2957
|
-
var $toString = toString$3;
|
|
2958
|
-
var fails$8 = fails$m;
|
|
2959
|
-
var getRegExpFlags = regexpGetFlags;
|
|
2960
|
-
|
|
2961
|
-
var TO_STRING = 'toString';
|
|
2962
|
-
var RegExpPrototype$1 = RegExp.prototype;
|
|
2963
|
-
var nativeToString = RegExpPrototype$1[TO_STRING];
|
|
2964
|
-
|
|
2965
|
-
var NOT_GENERIC = fails$8(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
|
|
2966
|
-
// FF44- RegExp#toString has a wrong name
|
|
2967
|
-
var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
|
|
2968
|
-
|
|
2969
|
-
// `RegExp.prototype.toString` method
|
|
2970
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
2971
|
-
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
2972
|
-
defineBuiltIn$2(RegExpPrototype$1, TO_STRING, function toString() {
|
|
2973
|
-
var R = anObject$8(this);
|
|
2974
|
-
var pattern = $toString(R.source);
|
|
2975
|
-
var flags = $toString(getRegExpFlags(R));
|
|
2976
|
-
return '/' + pattern + '/' + flags;
|
|
2977
|
-
}, { unsafe: true });
|
|
2978
|
-
}
|
|
2979
|
-
|
|
2980
|
-
var DESCRIPTORS$2 = descriptors;
|
|
2981
|
-
var definePropertyModule = objectDefineProperty;
|
|
2982
|
-
var createPropertyDescriptor = createPropertyDescriptor$4;
|
|
2983
|
-
|
|
2984
|
-
var createProperty$1 = function (object, key, value) {
|
|
2985
|
-
if (DESCRIPTORS$2) definePropertyModule.f(object, key, createPropertyDescriptor(0, value));
|
|
2986
|
-
else object[key] = value;
|
|
2987
|
-
};
|
|
2988
|
-
|
|
2989
|
-
var $$7 = _export;
|
|
2990
|
-
var global$4 = global$m;
|
|
2991
|
-
var anInstance = anInstance$2;
|
|
2992
|
-
var anObject$7 = anObject$j;
|
|
2993
|
-
var isCallable$2 = isCallable$m;
|
|
2994
|
-
var getPrototypeOf = objectGetPrototypeOf;
|
|
2995
|
-
var defineBuiltInAccessor = defineBuiltInAccessor$2;
|
|
2996
|
-
var createProperty = createProperty$1;
|
|
2997
|
-
var fails$7 = fails$m;
|
|
2998
|
-
var hasOwn = hasOwnProperty_1;
|
|
2999
|
-
var wellKnownSymbol$3 = wellKnownSymbol$i;
|
|
3000
|
-
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
3001
|
-
var DESCRIPTORS$1 = descriptors;
|
|
3002
|
-
|
|
3003
|
-
var CONSTRUCTOR = 'constructor';
|
|
3004
|
-
var ITERATOR = 'Iterator';
|
|
3005
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
|
|
3006
|
-
|
|
3007
|
-
var $TypeError$3 = TypeError;
|
|
3008
|
-
var NativeIterator = global$4[ITERATOR];
|
|
3009
|
-
|
|
3010
|
-
// FF56- have non-standard global helper `Iterator`
|
|
3011
|
-
var FORCED$1 = !isCallable$2(NativeIterator)
|
|
3012
|
-
|| NativeIterator.prototype !== IteratorPrototype$1
|
|
3013
|
-
// FF44- non-standard `Iterator` passes previous tests
|
|
3014
|
-
|| !fails$7(function () { NativeIterator({}); });
|
|
3015
|
-
|
|
3016
|
-
var IteratorConstructor = function Iterator() {
|
|
3017
|
-
anInstance(this, IteratorPrototype$1);
|
|
3018
|
-
if (getPrototypeOf(this) === IteratorPrototype$1) throw new $TypeError$3('Abstract class Iterator not directly constructable');
|
|
3019
|
-
};
|
|
3020
|
-
|
|
3021
|
-
var defineIteratorPrototypeAccessor = function (key, value) {
|
|
3022
|
-
if (DESCRIPTORS$1) {
|
|
3023
|
-
defineBuiltInAccessor(IteratorPrototype$1, key, {
|
|
3024
|
-
configurable: true,
|
|
3025
|
-
get: function () {
|
|
3026
|
-
return value;
|
|
3027
|
-
},
|
|
3028
|
-
set: function (replacement) {
|
|
3029
|
-
anObject$7(this);
|
|
3030
|
-
if (this === IteratorPrototype$1) throw new $TypeError$3("You can't redefine this property");
|
|
3031
|
-
if (hasOwn(this, key)) this[key] = replacement;
|
|
3032
|
-
else createProperty(this, key, replacement);
|
|
3033
|
-
}
|
|
3034
|
-
});
|
|
3035
|
-
} else IteratorPrototype$1[key] = value;
|
|
3036
|
-
};
|
|
3037
|
-
|
|
3038
|
-
if (!hasOwn(IteratorPrototype$1, TO_STRING_TAG$1)) defineIteratorPrototypeAccessor(TO_STRING_TAG$1, ITERATOR);
|
|
3039
|
-
|
|
3040
|
-
if (FORCED$1 || !hasOwn(IteratorPrototype$1, CONSTRUCTOR) || IteratorPrototype$1[CONSTRUCTOR] === Object) {
|
|
3041
|
-
defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
|
|
3042
|
-
}
|
|
3043
|
-
|
|
3044
|
-
IteratorConstructor.prototype = IteratorPrototype$1;
|
|
3045
|
-
|
|
3046
|
-
// `Iterator` constructor
|
|
3047
|
-
// https://github.com/tc39/proposal-iterator-helpers
|
|
3048
|
-
$$7({ global: true, constructor: true, forced: FORCED$1 }, {
|
|
3049
|
-
Iterator: IteratorConstructor
|
|
3050
|
-
});
|
|
3051
|
-
|
|
3052
|
-
// `GetIteratorDirect(obj)` abstract operation
|
|
3053
|
-
// https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
|
|
3054
|
-
var getIteratorDirect$4 = function (obj) {
|
|
3055
|
-
return {
|
|
3056
|
-
iterator: obj,
|
|
3057
|
-
next: obj.next,
|
|
3058
|
-
done: false
|
|
3059
|
-
};
|
|
3060
|
-
};
|
|
3061
|
-
|
|
3062
|
-
var $$6 = _export;
|
|
3063
|
-
var iterate$1 = iterate$4;
|
|
3064
|
-
var aCallable$3 = aCallable$c;
|
|
3065
|
-
var anObject$6 = anObject$j;
|
|
3066
|
-
var getIteratorDirect$3 = getIteratorDirect$4;
|
|
3067
|
-
|
|
3068
|
-
// `Iterator.prototype.forEach` method
|
|
3069
|
-
// https://github.com/tc39/proposal-iterator-helpers
|
|
3070
|
-
$$6({ target: 'Iterator', proto: true, real: true }, {
|
|
3071
|
-
forEach: function forEach(fn) {
|
|
3072
|
-
anObject$6(this);
|
|
3073
|
-
aCallable$3(fn);
|
|
3074
|
-
var record = getIteratorDirect$3(this);
|
|
3075
|
-
var counter = 0;
|
|
3076
|
-
iterate$1(record, function (value) {
|
|
3077
|
-
fn(value, counter++);
|
|
3078
|
-
}, { IS_RECORD: true });
|
|
3079
|
-
}
|
|
3080
|
-
});
|
|
3081
|
-
|
|
3082
|
-
var defineBuiltIn$1 = defineBuiltIn$8;
|
|
3083
|
-
|
|
3084
|
-
var defineBuiltIns$1 = function (target, src, options) {
|
|
3085
|
-
for (var key in src) defineBuiltIn$1(target, key, src[key], options);
|
|
3086
|
-
return target;
|
|
3087
|
-
};
|
|
3088
|
-
|
|
3089
|
-
var call$6 = functionCall;
|
|
3090
|
-
var create$1 = objectCreate;
|
|
3091
|
-
var createNonEnumerableProperty$1 = createNonEnumerableProperty$6;
|
|
3092
|
-
var defineBuiltIns = defineBuiltIns$1;
|
|
3093
|
-
var wellKnownSymbol$2 = wellKnownSymbol$i;
|
|
3094
|
-
var InternalStateModule = internalState;
|
|
3095
|
-
var getMethod$1 = getMethod$5;
|
|
3096
|
-
var IteratorPrototype = iteratorsCore.IteratorPrototype;
|
|
3097
|
-
var createIterResultObject = createIterResultObject$2;
|
|
3098
|
-
var iteratorClose$1 = iteratorClose$3;
|
|
3099
|
-
|
|
3100
|
-
var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
|
|
3101
|
-
var ITERATOR_HELPER = 'IteratorHelper';
|
|
3102
|
-
var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
|
|
3103
|
-
var setInternalState = InternalStateModule.set;
|
|
3104
|
-
|
|
3105
|
-
var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
3106
|
-
var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
|
|
3107
|
-
|
|
3108
|
-
return defineBuiltIns(create$1(IteratorPrototype), {
|
|
3109
|
-
next: function next() {
|
|
3110
|
-
var state = getInternalState(this);
|
|
3111
|
-
// for simplification:
|
|
3112
|
-
// for `%WrapForValidIteratorPrototype%.next` our `nextHandler` returns `IterResultObject`
|
|
3113
|
-
// for `%IteratorHelperPrototype%.next` - just a value
|
|
3114
|
-
if (IS_ITERATOR) return state.nextHandler();
|
|
3115
|
-
try {
|
|
3116
|
-
var result = state.done ? undefined : state.nextHandler();
|
|
3117
|
-
return createIterResultObject(result, state.done);
|
|
3118
|
-
} catch (error) {
|
|
3119
|
-
state.done = true;
|
|
3120
|
-
throw error;
|
|
3121
|
-
}
|
|
3122
|
-
},
|
|
3123
|
-
'return': function () {
|
|
3124
|
-
var state = getInternalState(this);
|
|
3125
|
-
var iterator = state.iterator;
|
|
3126
|
-
state.done = true;
|
|
3127
|
-
if (IS_ITERATOR) {
|
|
3128
|
-
var returnMethod = getMethod$1(iterator, 'return');
|
|
3129
|
-
return returnMethod ? call$6(returnMethod, iterator) : createIterResultObject(undefined, true);
|
|
3130
|
-
}
|
|
3131
|
-
if (state.inner) try {
|
|
3132
|
-
iteratorClose$1(state.inner.iterator, 'normal');
|
|
3133
|
-
} catch (error) {
|
|
3134
|
-
return iteratorClose$1(iterator, 'throw', error);
|
|
3135
|
-
}
|
|
3136
|
-
iteratorClose$1(iterator, 'normal');
|
|
3137
|
-
return createIterResultObject(undefined, true);
|
|
3138
|
-
}
|
|
3139
|
-
});
|
|
3140
|
-
};
|
|
3141
|
-
|
|
3142
|
-
var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
|
|
3143
|
-
var IteratorHelperPrototype = createIteratorProxyPrototype(false);
|
|
3144
|
-
|
|
3145
|
-
createNonEnumerableProperty$1(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper');
|
|
3146
|
-
|
|
3147
|
-
var iteratorCreateProxy = function (nextHandler, IS_ITERATOR) {
|
|
3148
|
-
var IteratorProxy = function Iterator(record, state) {
|
|
3149
|
-
if (state) {
|
|
3150
|
-
state.iterator = record.iterator;
|
|
3151
|
-
state.next = record.next;
|
|
3152
|
-
} else state = record;
|
|
3153
|
-
state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
|
|
3154
|
-
state.nextHandler = nextHandler;
|
|
3155
|
-
state.counter = 0;
|
|
3156
|
-
state.done = false;
|
|
3157
|
-
setInternalState(this, state);
|
|
3158
|
-
};
|
|
3159
|
-
|
|
3160
|
-
IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
|
|
3161
|
-
|
|
3162
|
-
return IteratorProxy;
|
|
3163
|
-
};
|
|
3164
|
-
|
|
3165
|
-
var anObject$5 = anObject$j;
|
|
3166
|
-
var iteratorClose = iteratorClose$3;
|
|
3167
|
-
|
|
3168
|
-
// call something on iterator step with safe closing on error
|
|
3169
|
-
var callWithSafeIterationClosing$2 = function (iterator, fn, value, ENTRIES) {
|
|
3170
|
-
try {
|
|
3171
|
-
return ENTRIES ? fn(anObject$5(value)[0], value[1]) : fn(value);
|
|
3172
|
-
} catch (error) {
|
|
3173
|
-
iteratorClose(iterator, 'throw', error);
|
|
3174
|
-
}
|
|
3175
|
-
};
|
|
3176
|
-
|
|
3177
|
-
var call$5 = functionCall;
|
|
3178
|
-
var aCallable$2 = aCallable$c;
|
|
3179
|
-
var anObject$4 = anObject$j;
|
|
3180
|
-
var getIteratorDirect$2 = getIteratorDirect$4;
|
|
3181
|
-
var createIteratorProxy$1 = iteratorCreateProxy;
|
|
3182
|
-
var callWithSafeIterationClosing$1 = callWithSafeIterationClosing$2;
|
|
3183
|
-
|
|
3184
|
-
var IteratorProxy$1 = createIteratorProxy$1(function () {
|
|
3185
|
-
var iterator = this.iterator;
|
|
3186
|
-
var result = anObject$4(call$5(this.next, iterator));
|
|
3187
|
-
var done = this.done = !!result.done;
|
|
3188
|
-
if (!done) return callWithSafeIterationClosing$1(iterator, this.mapper, [result.value, this.counter++], true);
|
|
3189
|
-
});
|
|
3190
|
-
|
|
3191
|
-
// `Iterator.prototype.map` method
|
|
3192
|
-
// https://github.com/tc39/proposal-iterator-helpers
|
|
3193
|
-
var iteratorMap = function map(mapper) {
|
|
3194
|
-
anObject$4(this);
|
|
3195
|
-
aCallable$2(mapper);
|
|
3196
|
-
return new IteratorProxy$1(getIteratorDirect$2(this), {
|
|
3197
|
-
mapper: mapper
|
|
3198
|
-
});
|
|
3199
|
-
};
|
|
3200
|
-
|
|
3201
|
-
var $$5 = _export;
|
|
3202
|
-
var map = iteratorMap;
|
|
3203
|
-
var IS_PURE$1 = isPure;
|
|
3204
|
-
|
|
3205
|
-
// `Iterator.prototype.map` method
|
|
3206
|
-
// https://github.com/tc39/proposal-iterator-helpers
|
|
3207
|
-
$$5({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$1 }, {
|
|
3208
|
-
map: map
|
|
3209
|
-
});
|
|
3210
|
-
|
|
3211
|
-
var $$4 = _export;
|
|
3212
|
-
var iterate = iterate$4;
|
|
3213
|
-
var aCallable$1 = aCallable$c;
|
|
3214
|
-
var anObject$3 = anObject$j;
|
|
3215
|
-
var getIteratorDirect$1 = getIteratorDirect$4;
|
|
3216
|
-
|
|
3217
|
-
// `Iterator.prototype.find` method
|
|
3218
|
-
// https://github.com/tc39/proposal-iterator-helpers
|
|
3219
|
-
$$4({ target: 'Iterator', proto: true, real: true }, {
|
|
3220
|
-
find: function find(predicate) {
|
|
3221
|
-
anObject$3(this);
|
|
3222
|
-
aCallable$1(predicate);
|
|
3223
|
-
var record = getIteratorDirect$1(this);
|
|
3224
|
-
var counter = 0;
|
|
3225
|
-
return iterate(record, function (value, stop) {
|
|
3226
|
-
if (predicate(value, counter++)) return stop(value);
|
|
3227
|
-
}, { IS_RECORD: true, INTERRUPTED: true }).result;
|
|
3228
|
-
}
|
|
3229
|
-
});
|
|
3230
|
-
|
|
3231
|
-
function FiltersPanel(props) {
|
|
3232
|
-
const [parametersSchema, setParametersSchema] = useState(props.parametersSchema);
|
|
3233
|
-
const [useParametersSchema] = useState(props.useParametersSchema);
|
|
3234
|
-
const [values, setValues] = useState({});
|
|
3235
|
-
useEffect(() => {
|
|
3236
|
-
parametersSchema.parameters.forEach(parameter => {
|
|
3237
|
-
if (parameter.type === 'boolean') {
|
|
3238
|
-
setValues(Object.assign(Object.assign({}, values), {
|
|
3239
|
-
[parameter.key]: false
|
|
3240
|
-
}));
|
|
3241
|
-
}
|
|
3242
|
-
});
|
|
3243
|
-
}, [parametersSchema]);
|
|
3244
|
-
useEffect(() => {
|
|
3245
|
-
props.onFiltersChange(values);
|
|
3246
|
-
}, [values]);
|
|
3247
|
-
const onTextInputChange = (key, value) => {
|
|
3248
|
-
setValues(Object.assign(Object.assign({}, values), {
|
|
3249
|
-
[key]: value
|
|
3250
|
-
}));
|
|
3251
|
-
};
|
|
3252
|
-
const onNumberInputChange = (key, value) => {
|
|
3253
|
-
setValues(Object.assign(Object.assign({}, values), {
|
|
3254
|
-
[key]: value
|
|
3255
|
-
}));
|
|
3256
|
-
};
|
|
3257
|
-
const onSwitchChange = (key, value) => {
|
|
3258
|
-
setValues(Object.assign(Object.assign({}, values), {
|
|
3259
|
-
[key]: value
|
|
3260
|
-
}));
|
|
3261
|
-
};
|
|
3262
|
-
const onDateInputChange = (key, value) => {
|
|
3263
|
-
setValues(Object.assign(Object.assign({}, values), {
|
|
3264
|
-
[key]: value
|
|
3265
|
-
}));
|
|
3266
|
-
};
|
|
3267
|
-
return jsx("div", {
|
|
3268
|
-
children: useParametersSchema && parametersSchema ? jsx(Stack, {
|
|
3269
|
-
children: parametersSchema.parameters.map(parameter => {
|
|
3270
|
-
var _a, _b, _c, _d;
|
|
3271
|
-
if (parameter.type === 'string' && !((_a = props.initialParameters) === null || _a === void 0 ? void 0 : _a.find(a => a.key === parameter.key))) {
|
|
3272
|
-
return jsx(TextInput, {
|
|
3273
|
-
required: parameter.isRequired,
|
|
3274
|
-
label: parameter.displayName,
|
|
3275
|
-
onChange: v => onTextInputChange(parameter.key, v.target.value)
|
|
3276
|
-
});
|
|
3277
|
-
} else if (parameter.type === 'date' && !((_b = props.initialParameters) === null || _b === void 0 ? void 0 : _b.find(a => a.key === parameter.key))) {
|
|
3278
|
-
return jsx(DatePickerInput, {
|
|
3279
|
-
required: parameter.isRequired,
|
|
3280
|
-
label: parameter.displayName,
|
|
3281
|
-
onChange: v => onDateInputChange(parameter.key, v ? new Date(v.getDate()) : undefined)
|
|
3282
|
-
});
|
|
3283
|
-
} else if (parameter.type === 'number' && !((_c = props.initialParameters) === null || _c === void 0 ? void 0 : _c.find(a => a.key === parameter.key))) {
|
|
3284
|
-
return jsx(NumberInput, {
|
|
3285
|
-
required: parameter.isRequired,
|
|
3286
|
-
label: parameter.displayName,
|
|
3287
|
-
onChange: v => onNumberInputChange(parameter.key, v !== "" ? +v : undefined)
|
|
3288
|
-
});
|
|
3289
|
-
} else if (parameter.type === 'boolean' && !((_d = props.initialParameters) === null || _d === void 0 ? void 0 : _d.find(a => a.key === parameter.key))) {
|
|
3290
|
-
return jsx(Switch, {
|
|
3291
|
-
required: parameter.isRequired,
|
|
3292
|
-
label: parameter.displayName,
|
|
3293
|
-
onChange: v => onSwitchChange(parameter.key, v.target.checked)
|
|
3294
|
-
});
|
|
3295
|
-
}
|
|
3296
|
-
return jsx(Fragment, {});
|
|
3297
|
-
})
|
|
3298
|
-
}) : jsx(Loader, {})
|
|
3299
|
-
});
|
|
3300
|
-
}
|
|
3301
|
-
FiltersPanel.defaultProps = {
|
|
3302
|
-
useParametersSchema: true
|
|
3303
|
-
};
|
|
3304
|
-
|
|
3305
|
-
function ReportChooser(props) {
|
|
3306
|
-
var _a, _b;
|
|
3307
|
-
const [reportsListLoaded, setReportsListLoaded] = useState(false);
|
|
3308
|
-
const [reportsListOptions, setReportsListOptions] = useState([]);
|
|
3309
|
-
const [selectedReportId, setSelectedReportId] = useState(null);
|
|
3310
|
-
const [filtersValue, setFiltersValue] = useState(null);
|
|
3311
|
-
const [parametersSchema, setParametersSchema] = useState();
|
|
3312
|
-
const [parametersSchemaLoaded, setParametersSchemaLoaded] = useState(false);
|
|
3313
|
-
const [noReportsExist, setNoReportsExist] = useState(false);
|
|
3314
|
-
const [onlyOneReportExist, setOnlyOneReportExist] = useState(false);
|
|
3315
|
-
const [values, setValues] = useState({});
|
|
3316
|
-
useEffect(() => {
|
|
3317
|
-
FluxoClientSys.Instance.reporting.getReportsList(`${props.reportScope}.${props.reportPackageName}.${props.reportNamespace}.${props.reportId}`).then(res => {
|
|
3318
|
-
if (res.length === 0) {
|
|
3319
|
-
setNoReportsExist(true);
|
|
3320
|
-
setReportsListOptions([]);
|
|
3321
|
-
setReportsListLoaded(true);
|
|
3322
|
-
return;
|
|
3323
|
-
}
|
|
3324
|
-
if (res[0].reports.length === 0) {
|
|
3325
|
-
setNoReportsExist(true);
|
|
3326
|
-
setReportsListOptions([]);
|
|
3327
|
-
setReportsListLoaded(true);
|
|
3328
|
-
return;
|
|
3329
|
-
}
|
|
3330
|
-
if (res[0].reports.length === 1) {
|
|
3331
|
-
setSelectedReportId(res[0].reports[0].id.toString());
|
|
3332
|
-
setOnlyOneReportExist(true);
|
|
3333
|
-
setReportsListLoaded(true);
|
|
3334
|
-
return;
|
|
3335
|
-
}
|
|
3336
|
-
setReportsListOptions(res[0].reports.map(report => {
|
|
3337
|
-
return {
|
|
3338
|
-
value: report.id.toString(),
|
|
3339
|
-
label: report.name
|
|
3340
|
-
};
|
|
3341
|
-
}));
|
|
3342
|
-
setReportsListLoaded(true);
|
|
3343
|
-
}).catch(err => {
|
|
3344
|
-
setReportsListLoaded(true);
|
|
3345
|
-
setParametersSchemaLoaded(true);
|
|
3346
|
-
setNoReportsExist(true);
|
|
3347
|
-
});
|
|
3348
|
-
}, []);
|
|
3349
|
-
useEffect(() => {
|
|
3350
|
-
FluxoClientSys.Instance.reporting.getParametersSchema(`${props.reportScope}.${props.reportPackageName}.${props.reportNamespace}.${props.reportId}`).then(res => {
|
|
3351
|
-
setParametersSchema(res);
|
|
3352
|
-
setParametersSchemaLoaded(true);
|
|
3353
|
-
}).catch(err => {
|
|
3354
|
-
setReportsListLoaded(true);
|
|
3355
|
-
setParametersSchemaLoaded(true);
|
|
3356
|
-
setNoReportsExist(true);
|
|
3357
|
-
showNotification({
|
|
3358
|
-
title: "Errore",
|
|
3359
|
-
message: err.message,
|
|
3360
|
-
color: "red"
|
|
3361
|
-
});
|
|
3362
|
-
});
|
|
3363
|
-
}, []);
|
|
3364
|
-
useEffect(() => {
|
|
3365
|
-
if (props.initialParameters) {
|
|
3366
|
-
const values = {};
|
|
3367
|
-
props.initialParameters.forEach(p => {
|
|
3368
|
-
values[p.key] = p.value;
|
|
3369
|
-
});
|
|
3370
|
-
setValues(values);
|
|
3371
|
-
}
|
|
3372
|
-
}, [props.initialParameters]);
|
|
3373
|
-
useEffect(() => {
|
|
3374
|
-
generateFilterString();
|
|
3375
|
-
}, [values]);
|
|
3376
|
-
useEffect(() => {
|
|
3377
|
-
var _a;
|
|
3378
|
-
if (!parametersSchemaLoaded || !reportsListLoaded) return;
|
|
3379
|
-
if (onlyOneReportExist && (parametersSchema.parametersCount === 0 || props.initialParameters && parametersSchema.parametersCount === ((_a = props.initialParameters) === null || _a === void 0 ? void 0 : _a.length))) {
|
|
3380
|
-
props.onSubmit(selectedReportId, filtersValue !== null && filtersValue !== void 0 ? filtersValue : "");
|
|
3381
|
-
}
|
|
3382
|
-
}, [parametersSchemaLoaded, reportsListLoaded]);
|
|
3383
|
-
const updateParameters = parameters => {
|
|
3384
|
-
if (props.initialParameters) {
|
|
3385
|
-
const values = {};
|
|
3386
|
-
props.initialParameters.forEach(p => {
|
|
3387
|
-
values[p.key] = p.value;
|
|
3388
|
-
});
|
|
3389
|
-
setValues(Object.assign(Object.assign({}, values), parameters));
|
|
3390
|
-
} else {
|
|
3391
|
-
setValues(parameters);
|
|
3392
|
-
}
|
|
3393
|
-
};
|
|
3394
|
-
const generateFilterString = () => {
|
|
3395
|
-
const params = Object.keys(values).map(key => {
|
|
3396
|
-
if (values[key] !== undefined && values[key] !== null) {
|
|
3397
|
-
return `${key}=${values[key]}`;
|
|
3398
|
-
}
|
|
3399
|
-
return null;
|
|
3400
|
-
}).join('&');
|
|
3401
|
-
setFiltersValue(params);
|
|
3402
|
-
};
|
|
3403
|
-
const checkIfAllRequiredParametersAreSet = useCallback(() => {
|
|
3404
|
-
if (!parametersSchema) return false;
|
|
3405
|
-
let allRequiredParametersAreSet = true;
|
|
3406
|
-
parametersSchema.parameters.forEach(p => {
|
|
3407
|
-
if (!allRequiredParametersAreSet) return;
|
|
3408
|
-
if (p.isRequired && values[p.key] === undefined) {
|
|
3409
|
-
allRequiredParametersAreSet = false;
|
|
3410
|
-
return;
|
|
3411
|
-
}
|
|
3412
|
-
});
|
|
3413
|
-
return allRequiredParametersAreSet;
|
|
3414
|
-
}, [parametersSchema, values]);
|
|
3415
|
-
return jsx(Stack, {
|
|
3416
|
-
children: reportsListLoaded && parametersSchemaLoaded ? jsxs(Fragment, {
|
|
3417
|
-
children: [!onlyOneReportExist && !noReportsExist && jsx(Select, {
|
|
3418
|
-
required: true,
|
|
3419
|
-
label: 'Scegli il formato',
|
|
3420
|
-
data: reportsListOptions,
|
|
3421
|
-
onChange: value => setSelectedReportId(value)
|
|
3422
|
-
}), !noReportsExist && parametersSchema && props.initialParameters && parametersSchema.parametersCount > ((_a = props.initialParameters) === null || _a === void 0 ? void 0 : _a.length) && jsxs("div", {
|
|
3423
|
-
children: [jsx(Box, {
|
|
3424
|
-
pt: 8,
|
|
3425
|
-
pb: 8,
|
|
3426
|
-
pr: 8,
|
|
3427
|
-
pl: 8,
|
|
3428
|
-
bg: '#ececec',
|
|
3429
|
-
mb: 8,
|
|
3430
|
-
children: jsxs(Group, {
|
|
3431
|
-
gap: 4,
|
|
3432
|
-
children: [jsx(IconFilter, {
|
|
3433
|
-
size: 16
|
|
3434
|
-
}), jsx(Text, {
|
|
3435
|
-
size: 'xs',
|
|
3436
|
-
fw: 500,
|
|
3437
|
-
children: "Parametri"
|
|
3438
|
-
})]
|
|
3439
|
-
})
|
|
3440
|
-
}), jsx(FiltersPanel, {
|
|
3441
|
-
initialParameters: props.initialParameters,
|
|
3442
|
-
parametersSchema: parametersSchema,
|
|
3443
|
-
onFiltersChange: parameters => updateParameters(parameters),
|
|
3444
|
-
useParametersSchema: true
|
|
3445
|
-
})]
|
|
3446
|
-
}), noReportsExist && jsx(NoData, {
|
|
3447
|
-
iconSize: 48,
|
|
3448
|
-
message: 'Non ci sono formati disponibili'
|
|
3449
|
-
}), (!onlyOneReportExist && !noReportsExist || !noReportsExist && parametersSchema && props.initialParameters && parametersSchema.parametersCount > ((_b = props.initialParameters) === null || _b === void 0 ? void 0 : _b.length)) && jsxs(Fragment, {
|
|
3450
|
-
children: [jsx(Divider, {}), jsxs(Group, {
|
|
3451
|
-
justify: 'right',
|
|
3452
|
-
children: [jsx(Button, {
|
|
3453
|
-
variant: 'subtle',
|
|
3454
|
-
onClick: props.onCancel,
|
|
3455
|
-
children: "Annulla"
|
|
3456
|
-
}), jsx(Button, {
|
|
3457
|
-
disabled: !selectedReportId || !checkIfAllRequiredParametersAreSet(),
|
|
3458
|
-
onClick: () => props.onSubmit(selectedReportId, filtersValue !== null && filtersValue !== void 0 ? filtersValue : ""),
|
|
3459
|
-
children: "Mostra anteprima"
|
|
3460
|
-
})]
|
|
3461
|
-
})]
|
|
3462
|
-
})]
|
|
3463
|
-
}) : jsx(Center, {
|
|
3464
|
-
children: jsx(Loader, {})
|
|
3465
|
-
})
|
|
3466
|
-
});
|
|
3467
|
-
}
|
|
3468
|
-
|
|
3469
|
-
var $$3 = _export;
|
|
3470
|
-
var $includes = arrayIncludes.includes;
|
|
3471
|
-
var fails$6 = fails$m;
|
|
3472
|
-
var addToUnscopables = addToUnscopables$2;
|
|
3473
|
-
|
|
3474
|
-
// FF99+ bug
|
|
3475
|
-
var BROKEN_ON_SPARSE = fails$6(function () {
|
|
3476
|
-
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
3477
|
-
return !Array(1).includes();
|
|
3478
|
-
});
|
|
3479
|
-
|
|
3480
|
-
// `Array.prototype.includes` method
|
|
3481
|
-
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
3482
|
-
$$3({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
3483
|
-
includes: function includes(el /* , fromIndex = 0 */) {
|
|
3484
|
-
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
3485
|
-
}
|
|
3486
|
-
});
|
|
3487
|
-
|
|
3488
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
3489
|
-
addToUnscopables('includes');
|
|
3490
|
-
|
|
3491
|
-
var classof$1 = classofRaw$2;
|
|
3492
|
-
|
|
3493
|
-
// `IsArray` abstract operation
|
|
3494
|
-
// https://tc39.es/ecma262/#sec-isarray
|
|
3495
|
-
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
3496
|
-
var isArray$1 = Array.isArray || function isArray(argument) {
|
|
3497
|
-
return classof$1(argument) === 'Array';
|
|
3498
|
-
};
|
|
3499
|
-
|
|
3500
|
-
var DESCRIPTORS = descriptors;
|
|
3501
|
-
var isArray = isArray$1;
|
|
3502
|
-
|
|
3503
|
-
var $TypeError$2 = TypeError;
|
|
3504
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
3505
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
3506
|
-
|
|
3507
|
-
// Safari < 13 does not throw an error in this case
|
|
3508
|
-
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {
|
|
3509
|
-
// makes no sense without proper strict mode support
|
|
3510
|
-
if (this !== undefined) return true;
|
|
3511
|
-
try {
|
|
3512
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
3513
|
-
Object.defineProperty([], 'length', { writable: false }).length = 1;
|
|
3514
|
-
} catch (error) {
|
|
3515
|
-
return error instanceof TypeError;
|
|
3516
|
-
}
|
|
3517
|
-
}();
|
|
3518
|
-
|
|
3519
|
-
var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
|
3520
|
-
if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
|
|
3521
|
-
throw new $TypeError$2('Cannot set read only .length');
|
|
3522
|
-
} return O.length = length;
|
|
3523
|
-
} : function (O, length) {
|
|
3524
|
-
return O.length = length;
|
|
3525
|
-
};
|
|
3526
|
-
|
|
3527
|
-
var $TypeError$1 = TypeError;
|
|
3528
|
-
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
3529
|
-
|
|
3530
|
-
var doesNotExceedSafeInteger$1 = function (it) {
|
|
3531
|
-
if (it > MAX_SAFE_INTEGER) throw $TypeError$1('Maximum allowed index exceeded');
|
|
3532
|
-
return it;
|
|
3533
|
-
};
|
|
3534
|
-
|
|
3535
|
-
var $$2 = _export;
|
|
3536
|
-
var toObject$1 = toObject$5;
|
|
3537
|
-
var lengthOfArrayLike = lengthOfArrayLike$3;
|
|
3538
|
-
var setArrayLength = arraySetLength;
|
|
3539
|
-
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
3540
|
-
var fails$5 = fails$m;
|
|
3541
|
-
|
|
3542
|
-
var INCORRECT_TO_LENGTH = fails$5(function () {
|
|
3543
|
-
return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
|
|
3544
|
-
});
|
|
3545
|
-
|
|
3546
|
-
// V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
|
|
3547
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=12681
|
|
3548
|
-
var properErrorOnNonWritableLength = function () {
|
|
3549
|
-
try {
|
|
3550
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
3551
|
-
Object.defineProperty([], 'length', { writable: false }).push();
|
|
3552
|
-
} catch (error) {
|
|
3553
|
-
return error instanceof TypeError;
|
|
3554
|
-
}
|
|
3555
|
-
};
|
|
3556
|
-
|
|
3557
|
-
var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
|
|
3558
|
-
|
|
3559
|
-
// `Array.prototype.push` method
|
|
3560
|
-
// https://tc39.es/ecma262/#sec-array.prototype.push
|
|
3561
|
-
$$2({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
|
3562
|
-
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
3563
|
-
push: function push(item) {
|
|
3564
|
-
var O = toObject$1(this);
|
|
3565
|
-
var len = lengthOfArrayLike(O);
|
|
3566
|
-
var argCount = arguments.length;
|
|
3567
|
-
doesNotExceedSafeInteger(len + argCount);
|
|
3568
|
-
for (var i = 0; i < argCount; i++) {
|
|
3569
|
-
O[len] = arguments[i];
|
|
3570
|
-
len++;
|
|
3571
|
-
}
|
|
3572
|
-
setArrayLength(O, len);
|
|
3573
|
-
return len;
|
|
3574
|
-
}
|
|
3575
|
-
});
|
|
3576
|
-
|
|
3577
|
-
var fails$4 = fails$m;
|
|
3578
|
-
var global$3 = global$m;
|
|
3579
|
-
|
|
3580
|
-
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
3581
|
-
var $RegExp$2 = global$3.RegExp;
|
|
3582
|
-
|
|
3583
|
-
var UNSUPPORTED_Y$1 = fails$4(function () {
|
|
3584
|
-
var re = $RegExp$2('a', 'y');
|
|
3585
|
-
re.lastIndex = 2;
|
|
3586
|
-
return re.exec('abcd') !== null;
|
|
3587
|
-
});
|
|
3588
|
-
|
|
3589
|
-
// UC Browser bug
|
|
3590
|
-
// https://github.com/zloirock/core-js/issues/1008
|
|
3591
|
-
UNSUPPORTED_Y$1 || fails$4(function () {
|
|
3592
|
-
return !$RegExp$2('a', 'y').sticky;
|
|
3593
|
-
});
|
|
3594
|
-
|
|
3595
|
-
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$4(function () {
|
|
3596
|
-
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
3597
|
-
var re = $RegExp$2('^r', 'gy');
|
|
3598
|
-
re.lastIndex = 2;
|
|
3599
|
-
return re.exec('str') !== null;
|
|
3600
|
-
});
|
|
3601
|
-
|
|
3602
|
-
var regexpStickyHelpers = {
|
|
3603
|
-
BROKEN_CARET: BROKEN_CARET};
|
|
3604
|
-
|
|
3605
|
-
var fails$3 = fails$m;
|
|
3606
|
-
var global$2 = global$m;
|
|
3607
|
-
|
|
3608
|
-
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
3609
|
-
var $RegExp$1 = global$2.RegExp;
|
|
3610
|
-
|
|
3611
|
-
var regexpUnsupportedDotAll = fails$3(function () {
|
|
3612
|
-
var re = $RegExp$1('.', 's');
|
|
3613
|
-
return !(re.dotAll && re.test('\n') && re.flags === 's');
|
|
3614
|
-
});
|
|
3615
|
-
|
|
3616
|
-
var fails$2 = fails$m;
|
|
3617
|
-
var global$1 = global$m;
|
|
3618
|
-
|
|
3619
|
-
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
3620
|
-
var $RegExp = global$1.RegExp;
|
|
3621
|
-
|
|
3622
|
-
var regexpUnsupportedNcg = fails$2(function () {
|
|
3623
|
-
var re = $RegExp('(?<a>b)', 'g');
|
|
3624
|
-
return re.exec('b').groups.a !== 'b' ||
|
|
3625
|
-
'b'.replace(re, '$<a>c') !== 'bc';
|
|
3626
|
-
});
|
|
3627
|
-
|
|
3628
|
-
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
3629
|
-
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
3630
|
-
var call$4 = functionCall;
|
|
3631
|
-
var uncurryThis$3 = functionUncurryThis;
|
|
3632
|
-
var toString$2 = toString$3;
|
|
3633
|
-
var regexpFlags = regexpFlags$1;
|
|
3634
|
-
var stickyHelpers = regexpStickyHelpers;
|
|
3635
|
-
var shared = shared$4;
|
|
3636
|
-
var create = objectCreate;
|
|
3637
|
-
var getInternalState = internalState.get;
|
|
3638
|
-
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
3639
|
-
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
3640
|
-
|
|
3641
|
-
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
3642
|
-
var nativeExec = RegExp.prototype.exec;
|
|
3643
|
-
var patchedExec = nativeExec;
|
|
3644
|
-
var charAt$3 = uncurryThis$3(''.charAt);
|
|
3645
|
-
var indexOf = uncurryThis$3(''.indexOf);
|
|
3646
|
-
var replace$1 = uncurryThis$3(''.replace);
|
|
3647
|
-
var stringSlice$3 = uncurryThis$3(''.slice);
|
|
3648
|
-
|
|
3649
|
-
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
3650
|
-
var re1 = /a/;
|
|
3651
|
-
var re2 = /b*/g;
|
|
3652
|
-
call$4(nativeExec, re1, 'a');
|
|
3653
|
-
call$4(nativeExec, re2, 'a');
|
|
3654
|
-
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
3655
|
-
})();
|
|
3656
|
-
|
|
3657
|
-
var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
|
|
3658
|
-
|
|
3659
|
-
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
3660
|
-
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
3661
|
-
|
|
3662
|
-
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
3663
|
-
|
|
3664
|
-
if (PATCH) {
|
|
3665
|
-
patchedExec = function exec(string) {
|
|
3666
|
-
var re = this;
|
|
3667
|
-
var state = getInternalState(re);
|
|
3668
|
-
var str = toString$2(string);
|
|
3669
|
-
var raw = state.raw;
|
|
3670
|
-
var result, reCopy, lastIndex, match, i, object, group;
|
|
3671
|
-
|
|
3672
|
-
if (raw) {
|
|
3673
|
-
raw.lastIndex = re.lastIndex;
|
|
3674
|
-
result = call$4(patchedExec, raw, str);
|
|
3675
|
-
re.lastIndex = raw.lastIndex;
|
|
3676
|
-
return result;
|
|
3677
|
-
}
|
|
3678
|
-
|
|
3679
|
-
var groups = state.groups;
|
|
3680
|
-
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
3681
|
-
var flags = call$4(regexpFlags, re);
|
|
3682
|
-
var source = re.source;
|
|
3683
|
-
var charsAdded = 0;
|
|
3684
|
-
var strCopy = str;
|
|
3685
|
-
|
|
3686
|
-
if (sticky) {
|
|
3687
|
-
flags = replace$1(flags, 'y', '');
|
|
3688
|
-
if (indexOf(flags, 'g') === -1) {
|
|
3689
|
-
flags += 'g';
|
|
3690
|
-
}
|
|
3691
|
-
|
|
3692
|
-
strCopy = stringSlice$3(str, re.lastIndex);
|
|
3693
|
-
// Support anchored sticky behavior.
|
|
3694
|
-
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
|
|
3695
|
-
source = '(?: ' + source + ')';
|
|
3696
|
-
strCopy = ' ' + strCopy;
|
|
3697
|
-
charsAdded++;
|
|
3698
|
-
}
|
|
3699
|
-
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
|
3700
|
-
// simulate the 'y' flag.
|
|
3701
|
-
reCopy = new RegExp('^(?:' + source + ')', flags);
|
|
3702
|
-
}
|
|
3703
|
-
|
|
3704
|
-
if (NPCG_INCLUDED) {
|
|
3705
|
-
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
|
3706
|
-
}
|
|
3707
|
-
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
3708
|
-
|
|
3709
|
-
match = call$4(nativeExec, sticky ? reCopy : re, strCopy);
|
|
3710
|
-
|
|
3711
|
-
if (sticky) {
|
|
3712
|
-
if (match) {
|
|
3713
|
-
match.input = stringSlice$3(match.input, charsAdded);
|
|
3714
|
-
match[0] = stringSlice$3(match[0], charsAdded);
|
|
3715
|
-
match.index = re.lastIndex;
|
|
3716
|
-
re.lastIndex += match[0].length;
|
|
3717
|
-
} else re.lastIndex = 0;
|
|
3718
|
-
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
|
3719
|
-
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
|
3720
|
-
}
|
|
3721
|
-
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
3722
|
-
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
3723
|
-
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
3724
|
-
call$4(nativeReplace, match[0], reCopy, function () {
|
|
3725
|
-
for (i = 1; i < arguments.length - 2; i++) {
|
|
3726
|
-
if (arguments[i] === undefined) match[i] = undefined;
|
|
3727
|
-
}
|
|
3728
|
-
});
|
|
3729
|
-
}
|
|
3730
|
-
|
|
3731
|
-
if (match && groups) {
|
|
3732
|
-
match.groups = object = create(null);
|
|
3733
|
-
for (i = 0; i < groups.length; i++) {
|
|
3734
|
-
group = groups[i];
|
|
3735
|
-
object[group[0]] = match[group[1]];
|
|
3736
|
-
}
|
|
3737
|
-
}
|
|
3738
|
-
|
|
3739
|
-
return match;
|
|
3740
|
-
};
|
|
3741
|
-
}
|
|
3742
|
-
|
|
3743
|
-
var regexpExec$2 = patchedExec;
|
|
3744
|
-
|
|
3745
|
-
var $$1 = _export;
|
|
3746
|
-
var exec = regexpExec$2;
|
|
3747
|
-
|
|
3748
|
-
// `RegExp.prototype.exec` method
|
|
3749
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
3750
|
-
$$1({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
3751
|
-
exec: exec
|
|
3752
|
-
});
|
|
3753
|
-
|
|
3754
|
-
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
3755
|
-
|
|
3756
|
-
var call$3 = functionCall;
|
|
3757
|
-
var defineBuiltIn = defineBuiltIn$8;
|
|
3758
|
-
var regexpExec$1 = regexpExec$2;
|
|
3759
|
-
var fails$1 = fails$m;
|
|
3760
|
-
var wellKnownSymbol$1 = wellKnownSymbol$i;
|
|
3761
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$6;
|
|
3762
|
-
|
|
3763
|
-
var SPECIES = wellKnownSymbol$1('species');
|
|
3764
|
-
var RegExpPrototype = RegExp.prototype;
|
|
3765
|
-
|
|
3766
|
-
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
3767
|
-
var SYMBOL = wellKnownSymbol$1(KEY);
|
|
3768
|
-
|
|
3769
|
-
var DELEGATES_TO_SYMBOL = !fails$1(function () {
|
|
3770
|
-
// String methods call symbol-named RegExp methods
|
|
3771
|
-
var O = {};
|
|
3772
|
-
O[SYMBOL] = function () { return 7; };
|
|
3773
|
-
return ''[KEY](O) !== 7;
|
|
3774
|
-
});
|
|
3775
|
-
|
|
3776
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
|
|
3777
|
-
// Symbol-named RegExp methods call .exec
|
|
3778
|
-
var execCalled = false;
|
|
3779
|
-
var re = /a/;
|
|
3780
|
-
|
|
3781
|
-
if (KEY === 'split') {
|
|
3782
|
-
// We can't use real regex here since it causes deoptimization
|
|
3783
|
-
// and serious performance degradation in V8
|
|
3784
|
-
// https://github.com/zloirock/core-js/issues/306
|
|
3785
|
-
re = {};
|
|
3786
|
-
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
3787
|
-
// a new one. We need to return the patched regex when creating the new one.
|
|
3788
|
-
re.constructor = {};
|
|
3789
|
-
re.constructor[SPECIES] = function () { return re; };
|
|
3790
|
-
re.flags = '';
|
|
3791
|
-
re[SYMBOL] = /./[SYMBOL];
|
|
3792
|
-
}
|
|
3793
|
-
|
|
3794
|
-
re.exec = function () {
|
|
3795
|
-
execCalled = true;
|
|
3796
|
-
return null;
|
|
3797
|
-
};
|
|
3798
|
-
|
|
3799
|
-
re[SYMBOL]('');
|
|
3800
|
-
return !execCalled;
|
|
3801
|
-
});
|
|
3802
|
-
|
|
3803
|
-
if (
|
|
3804
|
-
!DELEGATES_TO_SYMBOL ||
|
|
3805
|
-
!DELEGATES_TO_EXEC ||
|
|
3806
|
-
FORCED
|
|
3807
|
-
) {
|
|
3808
|
-
var nativeRegExpMethod = /./[SYMBOL];
|
|
3809
|
-
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
3810
|
-
var $exec = regexp.exec;
|
|
3811
|
-
if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
|
|
3812
|
-
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
3813
|
-
// The native String method already delegates to @@method (this
|
|
3814
|
-
// polyfilled function), leasing to infinite recursion.
|
|
3815
|
-
// We avoid it by directly calling the native @@method method.
|
|
3816
|
-
return { done: true, value: call$3(nativeRegExpMethod, regexp, str, arg2) };
|
|
3817
|
-
}
|
|
3818
|
-
return { done: true, value: call$3(nativeMethod, str, regexp, arg2) };
|
|
3819
|
-
}
|
|
3820
|
-
return { done: false };
|
|
3821
|
-
});
|
|
3822
|
-
|
|
3823
|
-
defineBuiltIn(String.prototype, KEY, methods[0]);
|
|
3824
|
-
defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
|
|
3825
|
-
}
|
|
3826
|
-
|
|
3827
|
-
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
3828
|
-
};
|
|
3829
|
-
|
|
3830
|
-
var uncurryThis$2 = functionUncurryThis;
|
|
3831
|
-
var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
|
|
3832
|
-
var toString$1 = toString$3;
|
|
3833
|
-
var requireObjectCoercible$1 = requireObjectCoercible$5;
|
|
3834
|
-
|
|
3835
|
-
var charAt$2 = uncurryThis$2(''.charAt);
|
|
3836
|
-
var charCodeAt = uncurryThis$2(''.charCodeAt);
|
|
3837
|
-
var stringSlice$2 = uncurryThis$2(''.slice);
|
|
3838
|
-
|
|
3839
|
-
var createMethod = function (CONVERT_TO_STRING) {
|
|
3840
|
-
return function ($this, pos) {
|
|
3841
|
-
var S = toString$1(requireObjectCoercible$1($this));
|
|
3842
|
-
var position = toIntegerOrInfinity$1(pos);
|
|
3843
|
-
var size = S.length;
|
|
3844
|
-
var first, second;
|
|
3845
|
-
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
3846
|
-
first = charCodeAt(S, position);
|
|
3847
|
-
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
3848
|
-
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
3849
|
-
? CONVERT_TO_STRING
|
|
3850
|
-
? charAt$2(S, position)
|
|
3851
|
-
: first
|
|
3852
|
-
: CONVERT_TO_STRING
|
|
3853
|
-
? stringSlice$2(S, position, position + 2)
|
|
3854
|
-
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
3855
|
-
};
|
|
3856
|
-
};
|
|
3857
|
-
|
|
3858
|
-
var stringMultibyte = {
|
|
3859
|
-
// `String.prototype.at` method
|
|
3860
|
-
// https://github.com/mathiasbynens/String.prototype.at
|
|
3861
|
-
charAt: createMethod(true)
|
|
3862
|
-
};
|
|
3863
|
-
|
|
3864
|
-
var charAt$1 = stringMultibyte.charAt;
|
|
3865
|
-
|
|
3866
|
-
// `AdvanceStringIndex` abstract operation
|
|
3867
|
-
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
3868
|
-
var advanceStringIndex$1 = function (S, index, unicode) {
|
|
3869
|
-
return index + (unicode ? charAt$1(S, index).length : 1);
|
|
3870
|
-
};
|
|
3871
|
-
|
|
3872
|
-
var uncurryThis$1 = functionUncurryThis;
|
|
3873
|
-
var toObject = toObject$5;
|
|
3874
|
-
|
|
3875
|
-
var floor = Math.floor;
|
|
3876
|
-
var charAt = uncurryThis$1(''.charAt);
|
|
3877
|
-
var replace = uncurryThis$1(''.replace);
|
|
3878
|
-
var stringSlice$1 = uncurryThis$1(''.slice);
|
|
3879
|
-
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
3880
|
-
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
|
3881
|
-
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
|
3882
|
-
|
|
3883
|
-
// `GetSubstitution` abstract operation
|
|
3884
|
-
// https://tc39.es/ecma262/#sec-getsubstitution
|
|
3885
|
-
var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
|
|
3886
|
-
var tailPos = position + matched.length;
|
|
3887
|
-
var m = captures.length;
|
|
3888
|
-
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
3889
|
-
if (namedCaptures !== undefined) {
|
|
3890
|
-
namedCaptures = toObject(namedCaptures);
|
|
3891
|
-
symbols = SUBSTITUTION_SYMBOLS;
|
|
3892
|
-
}
|
|
3893
|
-
return replace(replacement, symbols, function (match, ch) {
|
|
3894
|
-
var capture;
|
|
3895
|
-
switch (charAt(ch, 0)) {
|
|
3896
|
-
case '$': return '$';
|
|
3897
|
-
case '&': return matched;
|
|
3898
|
-
case '`': return stringSlice$1(str, 0, position);
|
|
3899
|
-
case "'": return stringSlice$1(str, tailPos);
|
|
3900
|
-
case '<':
|
|
3901
|
-
capture = namedCaptures[stringSlice$1(ch, 1, -1)];
|
|
3902
|
-
break;
|
|
3903
|
-
default: // \d\d?
|
|
3904
|
-
var n = +ch;
|
|
3905
|
-
if (n === 0) return match;
|
|
3906
|
-
if (n > m) {
|
|
3907
|
-
var f = floor(n / 10);
|
|
3908
|
-
if (f === 0) return match;
|
|
3909
|
-
if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
|
|
3910
|
-
return match;
|
|
3911
|
-
}
|
|
3912
|
-
capture = captures[n - 1];
|
|
3913
|
-
}
|
|
3914
|
-
return capture === undefined ? '' : capture;
|
|
3915
|
-
});
|
|
3916
|
-
};
|
|
3917
|
-
|
|
3918
|
-
var call$2 = functionCall;
|
|
3919
|
-
var anObject$2 = anObject$j;
|
|
3920
|
-
var isCallable$1 = isCallable$m;
|
|
3921
|
-
var classof = classofRaw$2;
|
|
3922
|
-
var regexpExec = regexpExec$2;
|
|
3923
|
-
|
|
3924
|
-
var $TypeError = TypeError;
|
|
3925
|
-
|
|
3926
|
-
// `RegExpExec` abstract operation
|
|
3927
|
-
// https://tc39.es/ecma262/#sec-regexpexec
|
|
3928
|
-
var regexpExecAbstract = function (R, S) {
|
|
3929
|
-
var exec = R.exec;
|
|
3930
|
-
if (isCallable$1(exec)) {
|
|
3931
|
-
var result = call$2(exec, R, S);
|
|
3932
|
-
if (result !== null) anObject$2(result);
|
|
3933
|
-
return result;
|
|
3934
|
-
}
|
|
3935
|
-
if (classof(R) === 'RegExp') return call$2(regexpExec, R, S);
|
|
3936
|
-
throw new $TypeError('RegExp#exec called on incompatible receiver');
|
|
3937
|
-
};
|
|
3938
|
-
|
|
3939
|
-
var apply = functionApply;
|
|
3940
|
-
var call$1 = functionCall;
|
|
3941
|
-
var uncurryThis = functionUncurryThis;
|
|
3942
|
-
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
3943
|
-
var fails = fails$m;
|
|
3944
|
-
var anObject$1 = anObject$j;
|
|
3945
|
-
var isCallable = isCallable$m;
|
|
3946
|
-
var isNullOrUndefined = isNullOrUndefined$5;
|
|
3947
|
-
var toIntegerOrInfinity = toIntegerOrInfinity$4;
|
|
3948
|
-
var toLength = toLength$2;
|
|
3949
|
-
var toString = toString$3;
|
|
3950
|
-
var requireObjectCoercible = requireObjectCoercible$5;
|
|
3951
|
-
var advanceStringIndex = advanceStringIndex$1;
|
|
3952
|
-
var getMethod = getMethod$5;
|
|
3953
|
-
var getSubstitution = getSubstitution$1;
|
|
3954
|
-
var regExpExec = regexpExecAbstract;
|
|
3955
|
-
var wellKnownSymbol = wellKnownSymbol$i;
|
|
3956
|
-
|
|
3957
|
-
var REPLACE = wellKnownSymbol('replace');
|
|
3958
|
-
var max = Math.max;
|
|
3959
|
-
var min = Math.min;
|
|
3960
|
-
var concat = uncurryThis([].concat);
|
|
3961
|
-
var push = uncurryThis([].push);
|
|
3962
|
-
var stringIndexOf = uncurryThis(''.indexOf);
|
|
3963
|
-
var stringSlice = uncurryThis(''.slice);
|
|
3964
|
-
|
|
3965
|
-
var maybeToString = function (it) {
|
|
3966
|
-
return it === undefined ? it : String(it);
|
|
3967
|
-
};
|
|
3968
|
-
|
|
3969
|
-
// IE <= 11 replaces $0 with the whole match, as if it was $&
|
|
3970
|
-
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
|
|
3971
|
-
var REPLACE_KEEPS_$0 = (function () {
|
|
3972
|
-
// eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
|
|
3973
|
-
return 'a'.replace(/./, '$0') === '$0';
|
|
3974
|
-
})();
|
|
3975
|
-
|
|
3976
|
-
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
|
3977
|
-
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
3978
|
-
if (/./[REPLACE]) {
|
|
3979
|
-
return /./[REPLACE]('a', '$0') === '';
|
|
3980
|
-
}
|
|
3981
|
-
return false;
|
|
3982
|
-
})();
|
|
3983
|
-
|
|
3984
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
|
3985
|
-
var re = /./;
|
|
3986
|
-
re.exec = function () {
|
|
3987
|
-
var result = [];
|
|
3988
|
-
result.groups = { a: '7' };
|
|
3989
|
-
return result;
|
|
3990
|
-
};
|
|
3991
|
-
// eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
|
|
3992
|
-
return ''.replace(re, '$<a>') !== '7';
|
|
3993
|
-
});
|
|
3994
|
-
|
|
3995
|
-
// @@replace logic
|
|
3996
|
-
fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
|
|
3997
|
-
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
|
3998
|
-
|
|
3999
|
-
return [
|
|
4000
|
-
// `String.prototype.replace` method
|
|
4001
|
-
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
4002
|
-
function replace(searchValue, replaceValue) {
|
|
4003
|
-
var O = requireObjectCoercible(this);
|
|
4004
|
-
var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
|
|
4005
|
-
return replacer
|
|
4006
|
-
? call$1(replacer, searchValue, O, replaceValue)
|
|
4007
|
-
: call$1(nativeReplace, toString(O), searchValue, replaceValue);
|
|
4008
|
-
},
|
|
4009
|
-
// `RegExp.prototype[@@replace]` method
|
|
4010
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
4011
|
-
function (string, replaceValue) {
|
|
4012
|
-
var rx = anObject$1(this);
|
|
4013
|
-
var S = toString(string);
|
|
4014
|
-
|
|
4015
|
-
if (
|
|
4016
|
-
typeof replaceValue == 'string' &&
|
|
4017
|
-
stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
|
|
4018
|
-
stringIndexOf(replaceValue, '$<') === -1
|
|
4019
|
-
) {
|
|
4020
|
-
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
|
4021
|
-
if (res.done) return res.value;
|
|
4022
|
-
}
|
|
4023
|
-
|
|
4024
|
-
var functionalReplace = isCallable(replaceValue);
|
|
4025
|
-
if (!functionalReplace) replaceValue = toString(replaceValue);
|
|
4026
|
-
|
|
4027
|
-
var global = rx.global;
|
|
4028
|
-
var fullUnicode;
|
|
4029
|
-
if (global) {
|
|
4030
|
-
fullUnicode = rx.unicode;
|
|
4031
|
-
rx.lastIndex = 0;
|
|
4032
|
-
}
|
|
4033
|
-
|
|
4034
|
-
var results = [];
|
|
4035
|
-
var result;
|
|
4036
|
-
while (true) {
|
|
4037
|
-
result = regExpExec(rx, S);
|
|
4038
|
-
if (result === null) break;
|
|
4039
|
-
|
|
4040
|
-
push(results, result);
|
|
4041
|
-
if (!global) break;
|
|
4042
|
-
|
|
4043
|
-
var matchStr = toString(result[0]);
|
|
4044
|
-
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
4045
|
-
}
|
|
4046
|
-
|
|
4047
|
-
var accumulatedResult = '';
|
|
4048
|
-
var nextSourcePosition = 0;
|
|
4049
|
-
for (var i = 0; i < results.length; i++) {
|
|
4050
|
-
result = results[i];
|
|
4051
|
-
|
|
4052
|
-
var matched = toString(result[0]);
|
|
4053
|
-
var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
|
|
4054
|
-
var captures = [];
|
|
4055
|
-
var replacement;
|
|
4056
|
-
// NOTE: This is equivalent to
|
|
4057
|
-
// captures = result.slice(1).map(maybeToString)
|
|
4058
|
-
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
4059
|
-
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
|
4060
|
-
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
|
4061
|
-
for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
|
|
4062
|
-
var namedCaptures = result.groups;
|
|
4063
|
-
if (functionalReplace) {
|
|
4064
|
-
var replacerArgs = concat([matched], captures, position, S);
|
|
4065
|
-
if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
|
|
4066
|
-
replacement = toString(apply(replaceValue, undefined, replacerArgs));
|
|
4067
|
-
} else {
|
|
4068
|
-
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
4069
|
-
}
|
|
4070
|
-
if (position >= nextSourcePosition) {
|
|
4071
|
-
accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
|
|
4072
|
-
nextSourcePosition = position + matched.length;
|
|
4073
|
-
}
|
|
4074
|
-
}
|
|
4075
|
-
|
|
4076
|
-
return accumulatedResult + stringSlice(S, nextSourcePosition);
|
|
4077
|
-
}
|
|
4078
|
-
];
|
|
4079
|
-
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
|
4080
|
-
|
|
4081
|
-
var $ = _export;
|
|
4082
|
-
var call = functionCall;
|
|
4083
|
-
var aCallable = aCallable$c;
|
|
4084
|
-
var anObject = anObject$j;
|
|
4085
|
-
var getIteratorDirect = getIteratorDirect$4;
|
|
4086
|
-
var createIteratorProxy = iteratorCreateProxy;
|
|
4087
|
-
var callWithSafeIterationClosing = callWithSafeIterationClosing$2;
|
|
4088
|
-
var IS_PURE = isPure;
|
|
4089
|
-
|
|
4090
|
-
var IteratorProxy = createIteratorProxy(function () {
|
|
4091
|
-
var iterator = this.iterator;
|
|
4092
|
-
var predicate = this.predicate;
|
|
4093
|
-
var next = this.next;
|
|
4094
|
-
var result, done, value;
|
|
4095
|
-
while (true) {
|
|
4096
|
-
result = anObject(call(next, iterator));
|
|
4097
|
-
done = this.done = !!result.done;
|
|
4098
|
-
if (done) return;
|
|
4099
|
-
value = result.value;
|
|
4100
|
-
if (callWithSafeIterationClosing(iterator, predicate, [value, this.counter++], true)) return value;
|
|
4101
|
-
}
|
|
4102
|
-
});
|
|
4103
|
-
|
|
4104
|
-
// `Iterator.prototype.filter` method
|
|
4105
|
-
// https://github.com/tc39/proposal-iterator-helpers
|
|
4106
|
-
$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
|
|
4107
|
-
filter: function filter(predicate) {
|
|
4108
|
-
anObject(this);
|
|
4109
|
-
aCallable(predicate);
|
|
4110
|
-
return new IteratorProxy(getIteratorDirect(this), {
|
|
4111
|
-
predicate: predicate
|
|
4112
|
-
});
|
|
4113
|
-
}
|
|
4114
|
-
});
|
|
4115
|
-
|
|
4116
|
-
/******************************************************************************
|
|
4117
|
-
Copyright (c) Microsoft Corporation.
|
|
4118
|
-
|
|
4119
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
4120
|
-
purpose with or without fee is hereby granted.
|
|
4121
|
-
|
|
4122
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
4123
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
4124
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
4125
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
4126
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
4127
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
4128
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
4129
|
-
***************************************************************************** */
|
|
4130
|
-
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
4134
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4135
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4136
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
4137
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
4138
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
4139
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
4140
|
-
});
|
|
4141
|
-
}
|
|
4142
|
-
|
|
4143
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
4144
|
-
var e = new Error(message);
|
|
4145
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
4146
|
-
};
|
|
4147
|
-
|
|
4148
|
-
const ReportDesigner = props => {
|
|
4149
|
-
var _a;
|
|
4150
|
-
const {
|
|
4151
|
-
id
|
|
4152
|
-
} = useParams();
|
|
4153
|
-
const [report, setReport] = useState();
|
|
4154
|
-
const designerRef = useRef(null);
|
|
4155
|
-
const [designerLoaded, setDesignerLoaded] = useState(false);
|
|
4156
|
-
const [designerInstance, setDesignerInstance] = useState(null);
|
|
4157
|
-
// Use reportId from props if available, otherwise use id from params
|
|
4158
|
-
const effectiveReportId = (_a = props.reportId) !== null && _a !== void 0 ? _a : id ? +id : undefined;
|
|
4159
|
-
const requestOptions = {
|
|
4160
|
-
host: FluxoClientSys.Instance.clientConfig.fluxoInstanceUrl.replace('/api', ''),
|
|
4161
|
-
getDesignerModelAction: "/DXXRD/GetDesignerModel"
|
|
4162
|
-
};
|
|
4163
|
-
useEffect(() => {
|
|
4164
|
-
if (props.mode === 'designer' && !effectiveReportId || props.mode === 'viewer' && !props.reportId) return;
|
|
4165
|
-
FluxoClientSys.Instance.reporting.getReportById(props.mode === 'designer' ? effectiveReportId : props.reportId).then(res => {
|
|
4166
|
-
setReport(res);
|
|
4167
|
-
});
|
|
4168
|
-
}, [effectiveReportId, props.mode, props.reportId]);
|
|
4169
|
-
useEffect(() => {
|
|
4170
|
-
if (!report || !(designerRef === null || designerRef === void 0 ? void 0 : designerRef.current)) return;
|
|
4171
|
-
const loadDesigner = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
4172
|
-
setDesignerLoaded(false);
|
|
4173
|
-
try {
|
|
4174
|
-
let designer;
|
|
4175
|
-
if (props.mode === 'designer') {
|
|
4176
|
-
const {
|
|
4177
|
-
DxReportDesigner
|
|
4178
|
-
} = yield import('devexpress-reporting/dx-reportdesigner.js');
|
|
4179
|
-
designer = new DxReportDesigner(designerRef.current, {
|
|
4180
|
-
reportUrl: report.id.toString(),
|
|
4181
|
-
requestOptions,
|
|
4182
|
-
callbacks: {
|
|
4183
|
-
customizeActions: e => {
|
|
4184
|
-
const itemsToRemove = ['dxrd-newreport', 'dxrd-newreport-via-wizard', 'dxrd-open-report', 'dxrd-save-as', 'dxrd-exit'];
|
|
4185
|
-
const newActions = e.filter(action => !itemsToRemove.includes(action.id));
|
|
4186
|
-
e.length = 0;
|
|
4187
|
-
Array.prototype.push.apply(e, newActions);
|
|
4188
|
-
}
|
|
4189
|
-
}
|
|
4190
|
-
});
|
|
4191
|
-
} else {
|
|
4192
|
-
const {
|
|
4193
|
-
DxReportViewer
|
|
4194
|
-
} = yield import('devexpress-reporting/dx-webdocumentviewer.js');
|
|
4195
|
-
designer = new DxReportViewer(designerRef.current, {
|
|
4196
|
-
reportUrl: report.id.toString() + '?' + props.reportParameters,
|
|
4197
|
-
requestOptions: {
|
|
4198
|
-
host: FluxoClientSys.Instance.clientConfig.fluxoInstanceUrl.replace('/api', '/'),
|
|
4199
|
-
invokeAction: "DXXRDV"
|
|
4200
|
-
}
|
|
4201
|
-
});
|
|
4202
|
-
}
|
|
4203
|
-
if (designer) {
|
|
4204
|
-
designer.render();
|
|
4205
|
-
setDesignerInstance(designer);
|
|
4206
|
-
// Fallback: rimuovi i pulsanti dal DOM se CustomizeMenuActions non funziona
|
|
4207
|
-
setTimeout(() => {
|
|
4208
|
-
setDesignerLoaded(true);
|
|
4209
|
-
// Rimuovi manualmente i pulsanti dal DOM
|
|
4210
|
-
if (props.mode === 'designer') {
|
|
4211
|
-
const selectors = ['[data-bind*="dxrd-newreport"]', '[data-bind*="dxrd-newreport-via-wizard"]', '[data-bind*="dxrd-open-report"]', '[data-bind*="dxrd-save-as"]'];
|
|
4212
|
-
selectors.forEach(selector => {
|
|
4213
|
-
const elements = document.querySelectorAll(selector);
|
|
4214
|
-
elements.forEach(el => {
|
|
4215
|
-
if (el.parentElement) {
|
|
4216
|
-
el.parentElement.style.display = 'none';
|
|
4217
|
-
}
|
|
4218
|
-
el.style.display = 'none';
|
|
4219
|
-
});
|
|
4220
|
-
});
|
|
4221
|
-
}
|
|
4222
|
-
}, 2000);
|
|
4223
|
-
}
|
|
4224
|
-
} catch (error) {
|
|
4225
|
-
console.error('Error loading designer:', error);
|
|
4226
|
-
}
|
|
4227
|
-
});
|
|
4228
|
-
loadDesigner();
|
|
4229
|
-
return () => {
|
|
4230
|
-
if (designerInstance) {
|
|
4231
|
-
designerInstance.dispose();
|
|
4232
|
-
}
|
|
4233
|
-
};
|
|
4234
|
-
}, [designerRef, report]);
|
|
4235
|
-
const renderContent = () => {
|
|
4236
|
-
if (props.mode === 'viewer') {
|
|
4237
|
-
return jsxs(Box, {
|
|
4238
|
-
pos: 'relative',
|
|
4239
|
-
children: [jsx(LoadingOverlay, {
|
|
4240
|
-
visible: !designerLoaded
|
|
4241
|
-
}), jsx("div", {
|
|
4242
|
-
style: {
|
|
4243
|
-
width: "100%",
|
|
4244
|
-
height: "calc(100vh - 38px)",
|
|
4245
|
-
marginTop: -16
|
|
4246
|
-
},
|
|
4247
|
-
children: jsx("div", {
|
|
4248
|
-
ref: designerRef
|
|
4249
|
-
})
|
|
4250
|
-
})]
|
|
4251
|
-
});
|
|
4252
|
-
}
|
|
4253
|
-
return jsxs(Box, {
|
|
4254
|
-
pos: 'relative',
|
|
4255
|
-
children: [jsx(LoadingOverlay, {
|
|
4256
|
-
visible: !designerLoaded
|
|
4257
|
-
}), jsx("div", {
|
|
4258
|
-
style: {
|
|
4259
|
-
width: "100%",
|
|
4260
|
-
height: "calc(100vh - 48px)"
|
|
4261
|
-
},
|
|
4262
|
-
children: jsx("div", {
|
|
4263
|
-
ref: designerRef
|
|
4264
|
-
})
|
|
4265
|
-
})]
|
|
4266
|
-
});
|
|
4267
|
-
};
|
|
4268
|
-
return renderContent();
|
|
4269
|
-
};
|
|
4270
|
-
|
|
4271
|
-
var reportDesigner = /*#__PURE__*/Object.freeze({
|
|
4272
|
-
__proto__: null,
|
|
4273
|
-
ReportDesigner: ReportDesigner,
|
|
4274
|
-
default: ReportDesigner
|
|
4275
|
-
});
|
|
4276
|
-
|
|
4277
|
-
function ReportButton(props) {
|
|
4278
|
-
var _a, _b;
|
|
4279
|
-
const [showReportChooser, setShowReportChooser] = useState(false);
|
|
4280
|
-
const [showReportPreview, setShowReportPreview] = useState(false);
|
|
4281
|
-
const [selectedReportId, setSelectedReportId] = useState(null);
|
|
4282
|
-
const [parametersString, setParametersString] = useState(null);
|
|
4283
|
-
return jsxs(Fragment, {
|
|
4284
|
-
children: [jsx(Button, {
|
|
4285
|
-
variant: props.variant,
|
|
4286
|
-
onClick: () => setShowReportChooser(true),
|
|
4287
|
-
leftSection: (_a = props.icon) !== null && _a !== void 0 ? _a : jsx(IconPrinter, {
|
|
4288
|
-
size: 18
|
|
4289
|
-
}),
|
|
4290
|
-
children: (_b = props.label) !== null && _b !== void 0 ? _b : 'Stampa'
|
|
4291
|
-
}), jsx(Modal, {
|
|
4292
|
-
title: 'Dettagli report',
|
|
4293
|
-
centered: true,
|
|
4294
|
-
opened: showReportChooser,
|
|
4295
|
-
onClose: () => setShowReportChooser(false),
|
|
4296
|
-
children: jsx(ReportChooser, {
|
|
4297
|
-
reportScope: props.reportScope,
|
|
4298
|
-
reportPackageName: props.reportPackageName,
|
|
4299
|
-
reportNamespace: props.reportNamespace,
|
|
4300
|
-
reportId: props.reportId,
|
|
4301
|
-
initialParameters: props.initialParameters,
|
|
4302
|
-
onCancel: () => setShowReportChooser(false),
|
|
4303
|
-
onSubmit: (reportId, parameters) => {
|
|
4304
|
-
setSelectedReportId(reportId);
|
|
4305
|
-
setParametersString(parameters);
|
|
4306
|
-
setShowReportChooser(false);
|
|
4307
|
-
setShowReportPreview(true);
|
|
4308
|
-
}
|
|
4309
|
-
})
|
|
4310
|
-
}), selectedReportId && jsx(Modal, {
|
|
4311
|
-
title: 'Anteprima di stampa',
|
|
4312
|
-
padding: 0,
|
|
4313
|
-
centered: true,
|
|
4314
|
-
fullScreen: true,
|
|
4315
|
-
opened: showReportPreview,
|
|
4316
|
-
onClose: () => setShowReportPreview(false),
|
|
4317
|
-
children: jsx(ReportDesigner, {
|
|
4318
|
-
mode: 'viewer',
|
|
4319
|
-
reportId: +selectedReportId,
|
|
4320
|
-
reportParameters: parametersString !== null && parametersString !== void 0 ? parametersString : ''
|
|
4321
|
-
})
|
|
4322
|
-
})]
|
|
4323
|
-
});
|
|
4324
|
-
}
|
|
4325
|
-
|
|
4326
|
-
export { ReportDesigner as R, _export as _, promiseResolve$1 as a, ReportButton as b, createReactComponent as c, defineBuiltIn$8 as d, ReportChooser as e, fails$m as f, getBuiltIn$7 as g, isCallable$m as i, promiseNativeConstructor as p, reportsModule as r, speciesConstructor$1 as s };
|