@fluxo-dev/api-client-base 0.0.33 → 0.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/index.cjs.js +2364 -1073
  2. package/package.json +4 -3
  3. package/src/index.d.ts +1 -0
  4. package/src/lib/apps/models/flx-route.d.ts +0 -1
  5. package/src/lib/fluxo-client-interface.d.ts +2 -0
  6. package/src/lib/fluxo-client.d.ts +3 -0
  7. package/src/lib/ravify/index.d.ts +3 -0
  8. package/src/lib/ravify/models/index.d.ts +4 -0
  9. package/src/lib/ravify/models/ravify-global-state.d.ts +35 -0
  10. package/src/lib/ravify/models/ravify-instance-create-command.d.ts +9 -0
  11. package/src/lib/ravify/models/ravify-instance-update-command.d.ts +8 -0
  12. package/src/lib/ravify/models/ravify-instance.d.ts +17 -0
  13. package/src/lib/ravify/ravify-management.service.d.ts +9 -0
  14. package/src/lib/ravify/ravify.facade.d.ts +9 -0
  15. package/src/lib/ravify/v1/index.d.ts +2 -0
  16. package/src/lib/ravify/v1/models/index.d.ts +14 -0
  17. package/src/lib/ravify/v1/models/ravify-directory-create-v1.d.ts +3 -0
  18. package/src/lib/ravify/v1/models/ravify-directory-rename-v1.d.ts +3 -0
  19. package/src/lib/ravify/v1/models/ravify-directory-stats-v1.d.ts +18 -0
  20. package/src/lib/ravify/v1/models/ravify-domain-v1.d.ts +7 -0
  21. package/src/lib/ravify/v1/models/ravify-file-upload-v1.d.ts +3 -0
  22. package/src/lib/ravify/v1/models/ravify-file-v1.d.ts +8 -0
  23. package/src/lib/ravify/v1/models/ravify-fs-directory-v1.d.ts +8 -0
  24. package/src/lib/ravify/v1/models/ravify-job-create-v1.d.ts +7 -0
  25. package/src/lib/ravify/v1/models/ravify-job-history-v1.d.ts +6 -0
  26. package/src/lib/ravify/v1/models/ravify-job-state-v1.d.ts +7 -0
  27. package/src/lib/ravify/v1/models/ravify-job-update-execution-v1.d.ts +7 -0
  28. package/src/lib/ravify/v1/models/ravify-job-update-info-v1.d.ts +5 -0
  29. package/src/lib/ravify/v1/models/ravify-job-v1.d.ts +35 -0
  30. package/src/lib/ravify/v1/models/ravify-scope-create-v1.d.ts +6 -0
  31. package/src/lib/ravify/v1/models/ravify-scope-v1.d.ts +6 -0
  32. package/src/lib/ravify/v1/ravifyV1.service.d.ts +22 -0
package/index.cjs.js CHANGED
@@ -1,63 +1,29 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var axios = require('axios');
6
4
  var state = require('@fluxo-dev/state');
7
5
 
8
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
-
10
- var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
11
-
12
- /******************************************************************************
13
- Copyright (c) Microsoft Corporation.
14
-
15
- Permission to use, copy, modify, and/or distribute this software for any
16
- purpose with or without fee is hereby granted.
17
-
18
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
19
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
20
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
21
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
22
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
23
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
24
- PERFORMANCE OF THIS SOFTWARE.
25
- ***************************************************************************** */
26
-
27
- function __awaiter(thisArg, _arguments, P, generator) {
28
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
29
- return new (P || (P = Promise))(function (resolve, reject) {
30
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
31
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
32
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
33
- step((generator = generator.apply(thisArg, _arguments || [])).next());
34
- });
35
- }
36
-
37
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
38
- var e = new Error(message);
39
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
40
- };
41
-
42
6
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
43
7
 
44
8
  var check = function (it) {
45
- return it && it.Math == Math && it;
9
+ return it && it.Math === Math && it;
46
10
  };
47
11
 
48
12
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
49
- var global$i =
50
- // eslint-disable-next-line no-undef
13
+ var global$j =
14
+ // eslint-disable-next-line es/no-global-this -- safe
51
15
  check(typeof globalThis == 'object' && globalThis) ||
52
16
  check(typeof window == 'object' && window) ||
17
+ // eslint-disable-next-line no-restricted-globals -- safe
53
18
  check(typeof self == 'object' && self) ||
54
19
  check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
55
- // eslint-disable-next-line no-new-func
56
- Function('return this')();
20
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
21
+ // eslint-disable-next-line no-new-func -- fallback
22
+ (function () { return this; })() || Function('return this')();
57
23
 
58
24
  var objectGetOwnPropertyDescriptor = {};
59
25
 
60
- var fails$8 = function (exec) {
26
+ var fails$f = function (exec) {
61
27
  try {
62
28
  return !!exec();
63
29
  } catch (error) {
@@ -65,29 +31,48 @@ var fails$8 = function (exec) {
65
31
  }
66
32
  };
67
33
 
68
- var fails$7 = fails$8;
34
+ var fails$e = fails$f;
35
+
36
+ // Detect IE8's incomplete defineProperty implementation
37
+ var descriptors = !fails$e(function () {
38
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
39
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
40
+ });
41
+
42
+ var fails$d = fails$f;
69
43
 
70
- // Thank's IE8 for his funny defineProperty
71
- var descriptors = !fails$7(function () {
72
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
44
+ var functionBindNative = !fails$d(function () {
45
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
46
+ var test = (function () { /* empty */ }).bind();
47
+ // eslint-disable-next-line no-prototype-builtins -- safe
48
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
73
49
  });
74
50
 
51
+ var NATIVE_BIND$3 = functionBindNative;
52
+
53
+ var call$d = Function.prototype.call;
54
+
55
+ var functionCall = NATIVE_BIND$3 ? call$d.bind(call$d) : function () {
56
+ return call$d.apply(call$d, arguments);
57
+ };
58
+
75
59
  var objectPropertyIsEnumerable = {};
76
60
 
77
- var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
78
- var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
61
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
62
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
63
+ var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
79
64
 
80
65
  // Nashorn ~ JDK8 bug
81
- var NASHORN_BUG = getOwnPropertyDescriptor$2 && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
66
+ var NASHORN_BUG = getOwnPropertyDescriptor$3 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
82
67
 
83
68
  // `Object.prototype.propertyIsEnumerable` method implementation
84
- // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable
69
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
85
70
  objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
86
- var descriptor = getOwnPropertyDescriptor$2(this, V);
71
+ var descriptor = getOwnPropertyDescriptor$3(this, V);
87
72
  return !!descriptor && descriptor.enumerable;
88
- } : nativePropertyIsEnumerable;
73
+ } : $propertyIsEnumerable;
89
74
 
90
- var createPropertyDescriptor$2 = function (bitmap, value) {
75
+ var createPropertyDescriptor$3 = function (bitmap, value) {
91
76
  return {
92
77
  enumerable: !(bitmap & 1),
93
78
  configurable: !(bitmap & 2),
@@ -96,333 +81,676 @@ var createPropertyDescriptor$2 = function (bitmap, value) {
96
81
  };
97
82
  };
98
83
 
99
- var toString = {}.toString;
84
+ var NATIVE_BIND$2 = functionBindNative;
85
+
86
+ var FunctionPrototype$2 = Function.prototype;
87
+ var call$c = FunctionPrototype$2.call;
88
+ var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$c, call$c);
89
+
90
+ var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
91
+ return function () {
92
+ return call$c.apply(fn, arguments);
93
+ };
94
+ };
95
+
96
+ var uncurryThis$j = functionUncurryThis;
97
+
98
+ var toString$6 = uncurryThis$j({}.toString);
99
+ var stringSlice$2 = uncurryThis$j(''.slice);
100
100
 
101
- var classofRaw$1 = function (it) {
102
- return toString.call(it).slice(8, -1);
101
+ var classofRaw$2 = function (it) {
102
+ return stringSlice$2(toString$6(it), 8, -1);
103
103
  };
104
104
 
105
- var fails$6 = fails$8;
106
- var classof$7 = classofRaw$1;
105
+ var uncurryThis$i = functionUncurryThis;
106
+ var fails$c = fails$f;
107
+ var classof$8 = classofRaw$2;
107
108
 
108
- var split = ''.split;
109
+ var $Object$3 = Object;
110
+ var split = uncurryThis$i(''.split);
109
111
 
110
112
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
111
- var indexedObject = fails$6(function () {
113
+ var indexedObject = fails$c(function () {
112
114
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
113
- // eslint-disable-next-line no-prototype-builtins
114
- return !Object('z').propertyIsEnumerable(0);
115
+ // eslint-disable-next-line no-prototype-builtins -- safe
116
+ return !$Object$3('z').propertyIsEnumerable(0);
115
117
  }) ? function (it) {
116
- return classof$7(it) == 'String' ? split.call(it, '') : Object(it);
117
- } : Object;
118
+ return classof$8(it) === 'String' ? split(it, '') : $Object$3(it);
119
+ } : $Object$3;
120
+
121
+ // we can't use just `it == null` since of `document.all` special case
122
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
123
+ var isNullOrUndefined$4 = function (it) {
124
+ return it === null || it === undefined;
125
+ };
126
+
127
+ var isNullOrUndefined$3 = isNullOrUndefined$4;
128
+
129
+ var $TypeError$f = TypeError;
118
130
 
119
131
  // `RequireObjectCoercible` abstract operation
120
- // https://tc39.github.io/ecma262/#sec-requireobjectcoercible
121
- var requireObjectCoercible$3 = function (it) {
122
- if (it == undefined) throw TypeError("Can't call method on " + it);
132
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
133
+ var requireObjectCoercible$4 = function (it) {
134
+ if (isNullOrUndefined$3(it)) throw new $TypeError$f("Can't call method on " + it);
123
135
  return it;
124
136
  };
125
137
 
126
138
  // toObject with fallback for non-array-like ES3 strings
127
139
  var IndexedObject$1 = indexedObject;
128
- var requireObjectCoercible$2 = requireObjectCoercible$3;
140
+ var requireObjectCoercible$3 = requireObjectCoercible$4;
129
141
 
130
- var toIndexedObject$3 = function (it) {
131
- return IndexedObject$1(requireObjectCoercible$2(it));
142
+ var toIndexedObject$4 = function (it) {
143
+ return IndexedObject$1(requireObjectCoercible$3(it));
132
144
  };
133
145
 
134
- var isObject$9 = function (it) {
135
- return typeof it === 'object' ? it !== null : typeof it === 'function';
146
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
147
+ var documentAll = typeof document == 'object' && document.all;
148
+
149
+ // `IsCallable` abstract operation
150
+ // https://tc39.es/ecma262/#sec-iscallable
151
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
152
+ var isCallable$k = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
153
+ return typeof argument == 'function' || argument === documentAll;
154
+ } : function (argument) {
155
+ return typeof argument == 'function';
136
156
  };
137
157
 
138
- var isObject$8 = isObject$9;
158
+ var isCallable$j = isCallable$k;
139
159
 
140
- // `ToPrimitive` abstract operation
141
- // https://tc39.github.io/ecma262/#sec-toprimitive
142
- // instead of the ES6 spec version, we didn't implement @@toPrimitive case
143
- // and the second argument - flag - preferred type is a string
144
- var toPrimitive$2 = function (input, PREFERRED_STRING) {
145
- if (!isObject$8(input)) return input;
160
+ var isObject$d = function (it) {
161
+ return typeof it == 'object' ? it !== null : isCallable$j(it);
162
+ };
163
+
164
+ var global$i = global$j;
165
+ var isCallable$i = isCallable$k;
166
+
167
+ var aFunction = function (argument) {
168
+ return isCallable$i(argument) ? argument : undefined;
169
+ };
170
+
171
+ var getBuiltIn$9 = function (namespace, method) {
172
+ return arguments.length < 2 ? aFunction(global$i[namespace]) : global$i[namespace] && global$i[namespace][method];
173
+ };
174
+
175
+ var uncurryThis$h = functionUncurryThis;
176
+
177
+ var objectIsPrototypeOf = uncurryThis$h({}.isPrototypeOf);
178
+
179
+ var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
180
+
181
+ var global$h = global$j;
182
+ var userAgent$3 = engineUserAgent;
183
+
184
+ var process$3 = global$h.process;
185
+ var Deno$1 = global$h.Deno;
186
+ var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
187
+ var v8 = versions && versions.v8;
188
+ var match, version;
189
+
190
+ if (v8) {
191
+ match = v8.split('.');
192
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
193
+ // but their correct versions are not interesting for us
194
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
195
+ }
196
+
197
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
198
+ // so check `userAgent` even if `.v8` exists, but 0
199
+ if (!version && userAgent$3) {
200
+ match = userAgent$3.match(/Edge\/(\d+)/);
201
+ if (!match || match[1] >= 74) {
202
+ match = userAgent$3.match(/Chrome\/(\d+)/);
203
+ if (match) version = +match[1];
204
+ }
205
+ }
206
+
207
+ var engineV8Version = version;
208
+
209
+ /* eslint-disable es/no-symbol -- required for testing */
210
+ var V8_VERSION$1 = engineV8Version;
211
+ var fails$b = fails$f;
212
+ var global$g = global$j;
213
+
214
+ var $String$6 = global$g.String;
215
+
216
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
217
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$b(function () {
218
+ var symbol = Symbol('symbol detection');
219
+ // Chrome 38 Symbol has incorrect toString conversion
220
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
221
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
222
+ // of course, fail.
223
+ return !$String$6(symbol) || !(Object(symbol) instanceof Symbol) ||
224
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
225
+ !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
226
+ });
227
+
228
+ /* eslint-disable es/no-symbol -- required for testing */
229
+ var NATIVE_SYMBOL$3 = symbolConstructorDetection;
230
+
231
+ var useSymbolAsUid = NATIVE_SYMBOL$3
232
+ && !Symbol.sham
233
+ && typeof Symbol.iterator == 'symbol';
234
+
235
+ var getBuiltIn$8 = getBuiltIn$9;
236
+ var isCallable$h = isCallable$k;
237
+ var isPrototypeOf$4 = objectIsPrototypeOf;
238
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
239
+
240
+ var $Object$2 = Object;
241
+
242
+ var isSymbol$3 = USE_SYMBOL_AS_UID$1 ? function (it) {
243
+ return typeof it == 'symbol';
244
+ } : function (it) {
245
+ var $Symbol = getBuiltIn$8('Symbol');
246
+ return isCallable$h($Symbol) && isPrototypeOf$4($Symbol.prototype, $Object$2(it));
247
+ };
248
+
249
+ var $String$5 = String;
250
+
251
+ var tryToString$4 = function (argument) {
252
+ try {
253
+ return $String$5(argument);
254
+ } catch (error) {
255
+ return 'Object';
256
+ }
257
+ };
258
+
259
+ var isCallable$g = isCallable$k;
260
+ var tryToString$3 = tryToString$4;
261
+
262
+ var $TypeError$e = TypeError;
263
+
264
+ // `Assert: IsCallable(argument) is true`
265
+ var aCallable$8 = function (argument) {
266
+ if (isCallable$g(argument)) return argument;
267
+ throw new $TypeError$e(tryToString$3(argument) + ' is not a function');
268
+ };
269
+
270
+ var aCallable$7 = aCallable$8;
271
+ var isNullOrUndefined$2 = isNullOrUndefined$4;
272
+
273
+ // `GetMethod` abstract operation
274
+ // https://tc39.es/ecma262/#sec-getmethod
275
+ var getMethod$3 = function (V, P) {
276
+ var func = V[P];
277
+ return isNullOrUndefined$2(func) ? undefined : aCallable$7(func);
278
+ };
279
+
280
+ var call$b = functionCall;
281
+ var isCallable$f = isCallable$k;
282
+ var isObject$c = isObject$d;
283
+
284
+ var $TypeError$d = TypeError;
285
+
286
+ // `OrdinaryToPrimitive` abstract operation
287
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
288
+ var ordinaryToPrimitive$1 = function (input, pref) {
146
289
  var fn, val;
147
- if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject$8(val = fn.call(input))) return val;
148
- if (typeof (fn = input.valueOf) == 'function' && !isObject$8(val = fn.call(input))) return val;
149
- if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject$8(val = fn.call(input))) return val;
150
- throw TypeError("Can't convert object to primitive value");
290
+ if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$c(val = call$b(fn, input))) return val;
291
+ if (isCallable$f(fn = input.valueOf) && !isObject$c(val = call$b(fn, input))) return val;
292
+ if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$c(val = call$b(fn, input))) return val;
293
+ throw new $TypeError$d("Can't convert object to primitive value");
294
+ };
295
+
296
+ var sharedStore = {exports: {}};
297
+
298
+ var global$f = global$j;
299
+
300
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
301
+ var defineProperty$6 = Object.defineProperty;
302
+
303
+ var defineGlobalProperty$3 = function (key, value) {
304
+ try {
305
+ defineProperty$6(global$f, key, { value: value, configurable: true, writable: true });
306
+ } catch (error) {
307
+ global$f[key] = value;
308
+ } return value;
309
+ };
310
+
311
+ var globalThis$1 = global$j;
312
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
313
+
314
+ var SHARED = '__core-js_shared__';
315
+ var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
316
+
317
+ (store$3.versions || (store$3.versions = [])).push({
318
+ version: '3.36.1',
319
+ mode: 'global',
320
+ copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
321
+ license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
322
+ source: 'https://github.com/zloirock/core-js'
323
+ });
324
+
325
+ var sharedStoreExports = sharedStore.exports;
326
+
327
+ var store$2 = sharedStoreExports;
328
+
329
+ var shared$3 = function (key, value) {
330
+ return store$2[key] || (store$2[key] = value || {});
331
+ };
332
+
333
+ var requireObjectCoercible$2 = requireObjectCoercible$4;
334
+
335
+ var $Object$1 = Object;
336
+
337
+ // `ToObject` abstract operation
338
+ // https://tc39.es/ecma262/#sec-toobject
339
+ var toObject$4 = function (argument) {
340
+ return $Object$1(requireObjectCoercible$2(argument));
151
341
  };
152
342
 
153
- var hasOwnProperty = {}.hasOwnProperty;
343
+ var uncurryThis$g = functionUncurryThis;
344
+ var toObject$3 = toObject$4;
154
345
 
155
- var has$9 = function (it, key) {
156
- return hasOwnProperty.call(it, key);
346
+ var hasOwnProperty = uncurryThis$g({}.hasOwnProperty);
347
+
348
+ // `HasOwnProperty` abstract operation
349
+ // https://tc39.es/ecma262/#sec-hasownproperty
350
+ // eslint-disable-next-line es/no-object-hasown -- safe
351
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
352
+ return hasOwnProperty(toObject$3(it), key);
353
+ };
354
+
355
+ var uncurryThis$f = functionUncurryThis;
356
+
357
+ var id = 0;
358
+ var postfix = Math.random();
359
+ var toString$5 = uncurryThis$f(1.0.toString);
360
+
361
+ var uid$2 = function (key) {
362
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
363
+ };
364
+
365
+ var global$e = global$j;
366
+ var shared$2 = shared$3;
367
+ var hasOwn$a = hasOwnProperty_1;
368
+ var uid$1 = uid$2;
369
+ var NATIVE_SYMBOL$2 = symbolConstructorDetection;
370
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
371
+
372
+ var Symbol$1 = global$e.Symbol;
373
+ var WellKnownSymbolsStore = shared$2('wks');
374
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
375
+
376
+ var wellKnownSymbol$e = function (name) {
377
+ if (!hasOwn$a(WellKnownSymbolsStore, name)) {
378
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL$2 && hasOwn$a(Symbol$1, name)
379
+ ? Symbol$1[name]
380
+ : createWellKnownSymbol('Symbol.' + name);
381
+ } return WellKnownSymbolsStore[name];
382
+ };
383
+
384
+ var call$a = functionCall;
385
+ var isObject$b = isObject$d;
386
+ var isSymbol$2 = isSymbol$3;
387
+ var getMethod$2 = getMethod$3;
388
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
389
+ var wellKnownSymbol$d = wellKnownSymbol$e;
390
+
391
+ var $TypeError$c = TypeError;
392
+ var TO_PRIMITIVE = wellKnownSymbol$d('toPrimitive');
393
+
394
+ // `ToPrimitive` abstract operation
395
+ // https://tc39.es/ecma262/#sec-toprimitive
396
+ var toPrimitive$1 = function (input, pref) {
397
+ if (!isObject$b(input) || isSymbol$2(input)) return input;
398
+ var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
399
+ var result;
400
+ if (exoticToPrim) {
401
+ if (pref === undefined) pref = 'default';
402
+ result = call$a(exoticToPrim, input, pref);
403
+ if (!isObject$b(result) || isSymbol$2(result)) return result;
404
+ throw new $TypeError$c("Can't convert object to primitive value");
405
+ }
406
+ if (pref === undefined) pref = 'number';
407
+ return ordinaryToPrimitive(input, pref);
408
+ };
409
+
410
+ var toPrimitive = toPrimitive$1;
411
+ var isSymbol$1 = isSymbol$3;
412
+
413
+ // `ToPropertyKey` abstract operation
414
+ // https://tc39.es/ecma262/#sec-topropertykey
415
+ var toPropertyKey$2 = function (argument) {
416
+ var key = toPrimitive(argument, 'string');
417
+ return isSymbol$1(key) ? key : key + '';
157
418
  };
158
419
 
159
- var global$h = global$i;
160
- var isObject$7 = isObject$9;
420
+ var global$d = global$j;
421
+ var isObject$a = isObject$d;
161
422
 
162
- var document$2 = global$h.document;
423
+ var document$3 = global$d.document;
163
424
  // typeof document.createElement is 'object' in old IE
164
- var EXISTS = isObject$7(document$2) && isObject$7(document$2.createElement);
425
+ var EXISTS$1 = isObject$a(document$3) && isObject$a(document$3.createElement);
165
426
 
166
427
  var documentCreateElement$1 = function (it) {
167
- return EXISTS ? document$2.createElement(it) : {};
428
+ return EXISTS$1 ? document$3.createElement(it) : {};
168
429
  };
169
430
 
170
- var DESCRIPTORS$8 = descriptors;
171
- var fails$5 = fails$8;
431
+ var DESCRIPTORS$d = descriptors;
432
+ var fails$a = fails$f;
172
433
  var createElement$1 = documentCreateElement$1;
173
434
 
174
- // Thank's IE8 for his funny defineProperty
175
- var ie8DomDefine = !DESCRIPTORS$8 && !fails$5(function () {
435
+ // Thanks to IE8 for its funny defineProperty
436
+ var ie8DomDefine = !DESCRIPTORS$d && !fails$a(function () {
437
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
176
438
  return Object.defineProperty(createElement$1('div'), 'a', {
177
439
  get: function () { return 7; }
178
- }).a != 7;
440
+ }).a !== 7;
179
441
  });
180
442
 
181
- var DESCRIPTORS$7 = descriptors;
443
+ var DESCRIPTORS$c = descriptors;
444
+ var call$9 = functionCall;
182
445
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
183
- var createPropertyDescriptor$1 = createPropertyDescriptor$2;
184
- var toIndexedObject$2 = toIndexedObject$3;
185
- var toPrimitive$1 = toPrimitive$2;
186
- var has$8 = has$9;
446
+ var createPropertyDescriptor$2 = createPropertyDescriptor$3;
447
+ var toIndexedObject$3 = toIndexedObject$4;
448
+ var toPropertyKey$1 = toPropertyKey$2;
449
+ var hasOwn$9 = hasOwnProperty_1;
187
450
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
188
451
 
189
- var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
452
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
453
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
190
454
 
191
455
  // `Object.getOwnPropertyDescriptor` method
192
- // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
193
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
194
- O = toIndexedObject$2(O);
195
- P = toPrimitive$1(P, true);
456
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
457
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$c ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
458
+ O = toIndexedObject$3(O);
459
+ P = toPropertyKey$1(P);
196
460
  if (IE8_DOM_DEFINE$1) try {
197
- return nativeGetOwnPropertyDescriptor(O, P);
461
+ return $getOwnPropertyDescriptor$1(O, P);
198
462
  } catch (error) { /* empty */ }
199
- if (has$8(O, P)) return createPropertyDescriptor$1(!propertyIsEnumerableModule$1.f.call(O, P), O[P]);
463
+ if (hasOwn$9(O, P)) return createPropertyDescriptor$2(!call$9(propertyIsEnumerableModule$1.f, O, P), O[P]);
200
464
  };
201
465
 
202
466
  var objectDefineProperty = {};
203
467
 
204
- var isObject$6 = isObject$9;
468
+ var DESCRIPTORS$b = descriptors;
469
+ var fails$9 = fails$f;
470
+
471
+ // V8 ~ Chrome 36-
472
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
473
+ var v8PrototypeDefineBug = DESCRIPTORS$b && fails$9(function () {
474
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
475
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
476
+ value: 42,
477
+ writable: false
478
+ }).prototype !== 42;
479
+ });
205
480
 
206
- var anObject$8 = function (it) {
207
- if (!isObject$6(it)) {
208
- throw TypeError(String(it) + ' is not an object');
209
- } return it;
481
+ var isObject$9 = isObject$d;
482
+
483
+ var $String$4 = String;
484
+ var $TypeError$b = TypeError;
485
+
486
+ // `Assert: Type(argument) is Object`
487
+ var anObject$9 = function (argument) {
488
+ if (isObject$9(argument)) return argument;
489
+ throw new $TypeError$b($String$4(argument) + ' is not an object');
210
490
  };
211
491
 
212
- var DESCRIPTORS$6 = descriptors;
492
+ var DESCRIPTORS$a = descriptors;
213
493
  var IE8_DOM_DEFINE = ie8DomDefine;
214
- var anObject$7 = anObject$8;
215
- var toPrimitive = toPrimitive$2;
216
-
217
- var nativeDefineProperty = Object.defineProperty;
494
+ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
495
+ var anObject$8 = anObject$9;
496
+ var toPropertyKey = toPropertyKey$2;
497
+
498
+ var $TypeError$a = TypeError;
499
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
500
+ var $defineProperty = Object.defineProperty;
501
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
502
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
503
+ var ENUMERABLE = 'enumerable';
504
+ var CONFIGURABLE$1 = 'configurable';
505
+ var WRITABLE = 'writable';
218
506
 
219
507
  // `Object.defineProperty` method
220
- // https://tc39.github.io/ecma262/#sec-object.defineproperty
221
- objectDefineProperty.f = DESCRIPTORS$6 ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
222
- anObject$7(O);
223
- P = toPrimitive(P, true);
224
- anObject$7(Attributes);
508
+ // https://tc39.es/ecma262/#sec-object.defineproperty
509
+ objectDefineProperty.f = DESCRIPTORS$a ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
510
+ anObject$8(O);
511
+ P = toPropertyKey(P);
512
+ anObject$8(Attributes);
513
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
514
+ var current = $getOwnPropertyDescriptor(O, P);
515
+ if (current && current[WRITABLE]) {
516
+ O[P] = Attributes.value;
517
+ Attributes = {
518
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
519
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
520
+ writable: false
521
+ };
522
+ }
523
+ } return $defineProperty(O, P, Attributes);
524
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
525
+ anObject$8(O);
526
+ P = toPropertyKey(P);
527
+ anObject$8(Attributes);
225
528
  if (IE8_DOM_DEFINE) try {
226
- return nativeDefineProperty(O, P, Attributes);
529
+ return $defineProperty(O, P, Attributes);
227
530
  } catch (error) { /* empty */ }
228
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
531
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$a('Accessors not supported');
229
532
  if ('value' in Attributes) O[P] = Attributes.value;
230
533
  return O;
231
534
  };
232
535
 
233
- var DESCRIPTORS$5 = descriptors;
234
- var definePropertyModule$4 = objectDefineProperty;
235
- var createPropertyDescriptor = createPropertyDescriptor$2;
536
+ var DESCRIPTORS$9 = descriptors;
537
+ var definePropertyModule$3 = objectDefineProperty;
538
+ var createPropertyDescriptor$1 = createPropertyDescriptor$3;
236
539
 
237
- var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
238
- return definePropertyModule$4.f(object, key, createPropertyDescriptor(1, value));
540
+ var createNonEnumerableProperty$5 = DESCRIPTORS$9 ? function (object, key, value) {
541
+ return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
239
542
  } : function (object, key, value) {
240
543
  object[key] = value;
241
544
  return object;
242
545
  };
243
546
 
244
- var redefine$3 = {exports: {}};
547
+ var makeBuiltIn$3 = {exports: {}};
245
548
 
246
- var global$g = global$i;
247
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
248
-
249
- var setGlobal$3 = function (key, value) {
250
- try {
251
- createNonEnumerableProperty$3(global$g, key, value);
252
- } catch (error) {
253
- global$g[key] = value;
254
- } return value;
255
- };
549
+ var DESCRIPTORS$8 = descriptors;
550
+ var hasOwn$8 = hasOwnProperty_1;
256
551
 
257
- var global$f = global$i;
258
- var setGlobal$2 = setGlobal$3;
552
+ var FunctionPrototype$1 = Function.prototype;
553
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
554
+ var getDescriptor = DESCRIPTORS$8 && Object.getOwnPropertyDescriptor;
259
555
 
260
- var SHARED = '__core-js_shared__';
261
- var store$3 = global$f[SHARED] || setGlobal$2(SHARED, {});
556
+ var EXISTS = hasOwn$8(FunctionPrototype$1, 'name');
557
+ // additional protection from minified / mangled / dropped function names
558
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
559
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$8 || (DESCRIPTORS$8 && getDescriptor(FunctionPrototype$1, 'name').configurable));
262
560
 
263
- var sharedStore = store$3;
561
+ var functionName = {
562
+ EXISTS: EXISTS,
563
+ PROPER: PROPER,
564
+ CONFIGURABLE: CONFIGURABLE
565
+ };
264
566
 
265
- var store$2 = sharedStore;
567
+ var uncurryThis$e = functionUncurryThis;
568
+ var isCallable$e = isCallable$k;
569
+ var store$1 = sharedStoreExports;
266
570
 
267
- var functionToString = Function.toString;
571
+ var functionToString = uncurryThis$e(Function.toString);
268
572
 
269
- // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
270
- if (typeof store$2.inspectSource != 'function') {
271
- store$2.inspectSource = function (it) {
272
- return functionToString.call(it);
573
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
574
+ if (!isCallable$e(store$1.inspectSource)) {
575
+ store$1.inspectSource = function (it) {
576
+ return functionToString(it);
273
577
  };
274
578
  }
275
579
 
276
- var inspectSource$3 = store$2.inspectSource;
277
-
278
- var global$e = global$i;
279
- var inspectSource$2 = inspectSource$3;
280
-
281
- var WeakMap$1 = global$e.WeakMap;
282
-
283
- var nativeWeakMap = typeof WeakMap$1 === 'function' && /native code/.test(inspectSource$2(WeakMap$1));
580
+ var inspectSource$3 = store$1.inspectSource;
284
581
 
285
- var shared$2 = {exports: {}};
582
+ var global$c = global$j;
583
+ var isCallable$d = isCallable$k;
286
584
 
287
- var store$1 = sharedStore;
585
+ var WeakMap$1 = global$c.WeakMap;
288
586
 
289
- (shared$2.exports = function (key, value) {
290
- return store$1[key] || (store$1[key] = value !== undefined ? value : {});
291
- })('versions', []).push({
292
- version: '3.6.5',
293
- mode: 'global',
294
- copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
295
- });
296
-
297
- var id = 0;
298
- var postfix = Math.random();
299
-
300
- var uid$2 = function (key) {
301
- return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
302
- };
587
+ var weakMapBasicDetection = isCallable$d(WeakMap$1) && /native code/.test(String(WeakMap$1));
303
588
 
304
- var shared$1 = shared$2.exports;
305
- var uid$1 = uid$2;
589
+ var shared$1 = shared$3;
590
+ var uid = uid$2;
306
591
 
307
592
  var keys = shared$1('keys');
308
593
 
309
594
  var sharedKey$2 = function (key) {
310
- return keys[key] || (keys[key] = uid$1(key));
595
+ return keys[key] || (keys[key] = uid(key));
311
596
  };
312
597
 
313
598
  var hiddenKeys$4 = {};
314
599
 
315
- var NATIVE_WEAK_MAP = nativeWeakMap;
316
- var global$d = global$i;
317
- var isObject$5 = isObject$9;
318
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
319
- var objectHas = has$9;
600
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
601
+ var global$b = global$j;
602
+ var isObject$8 = isObject$d;
603
+ var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
604
+ var hasOwn$7 = hasOwnProperty_1;
605
+ var shared = sharedStoreExports;
320
606
  var sharedKey$1 = sharedKey$2;
321
607
  var hiddenKeys$3 = hiddenKeys$4;
322
608
 
323
- var WeakMap = global$d.WeakMap;
324
- var set$1, get, has$7;
609
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
610
+ var TypeError$2 = global$b.TypeError;
611
+ var WeakMap = global$b.WeakMap;
612
+ var set$1, get, has;
325
613
 
326
614
  var enforce = function (it) {
327
- return has$7(it) ? get(it) : set$1(it, {});
615
+ return has(it) ? get(it) : set$1(it, {});
328
616
  };
329
617
 
330
618
  var getterFor = function (TYPE) {
331
619
  return function (it) {
332
620
  var state;
333
- if (!isObject$5(it) || (state = get(it)).type !== TYPE) {
334
- throw TypeError('Incompatible receiver, ' + TYPE + ' required');
621
+ if (!isObject$8(it) || (state = get(it)).type !== TYPE) {
622
+ throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
335
623
  } return state;
336
624
  };
337
625
  };
338
626
 
339
- if (NATIVE_WEAK_MAP) {
340
- var store = new WeakMap();
341
- var wmget = store.get;
342
- var wmhas = store.has;
343
- var wmset = store.set;
627
+ if (NATIVE_WEAK_MAP || shared.state) {
628
+ var store = shared.state || (shared.state = new WeakMap());
629
+ /* eslint-disable no-self-assign -- prototype methods protection */
630
+ store.get = store.get;
631
+ store.has = store.has;
632
+ store.set = store.set;
633
+ /* eslint-enable no-self-assign -- prototype methods protection */
344
634
  set$1 = function (it, metadata) {
345
- wmset.call(store, it, metadata);
635
+ if (store.has(it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
636
+ metadata.facade = it;
637
+ store.set(it, metadata);
346
638
  return metadata;
347
639
  };
348
640
  get = function (it) {
349
- return wmget.call(store, it) || {};
641
+ return store.get(it) || {};
350
642
  };
351
- has$7 = function (it) {
352
- return wmhas.call(store, it);
643
+ has = function (it) {
644
+ return store.has(it);
353
645
  };
354
646
  } else {
355
647
  var STATE = sharedKey$1('state');
356
648
  hiddenKeys$3[STATE] = true;
357
649
  set$1 = function (it, metadata) {
358
- createNonEnumerableProperty$2(it, STATE, metadata);
650
+ if (hasOwn$7(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
651
+ metadata.facade = it;
652
+ createNonEnumerableProperty$4(it, STATE, metadata);
359
653
  return metadata;
360
654
  };
361
655
  get = function (it) {
362
- return objectHas(it, STATE) ? it[STATE] : {};
656
+ return hasOwn$7(it, STATE) ? it[STATE] : {};
363
657
  };
364
- has$7 = function (it) {
365
- return objectHas(it, STATE);
658
+ has = function (it) {
659
+ return hasOwn$7(it, STATE);
366
660
  };
367
661
  }
368
662
 
369
663
  var internalState = {
370
664
  set: set$1,
371
665
  get: get,
372
- has: has$7,
666
+ has: has,
373
667
  enforce: enforce,
374
668
  getterFor: getterFor
375
669
  };
376
670
 
377
- var global$c = global$i;
378
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
379
- var has$6 = has$9;
380
- var setGlobal$1 = setGlobal$3;
381
- var inspectSource$1 = inspectSource$3;
671
+ var uncurryThis$d = functionUncurryThis;
672
+ var fails$8 = fails$f;
673
+ var isCallable$c = isCallable$k;
674
+ var hasOwn$6 = hasOwnProperty_1;
675
+ var DESCRIPTORS$7 = descriptors;
676
+ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
677
+ var inspectSource$2 = inspectSource$3;
382
678
  var InternalStateModule$1 = internalState;
383
679
 
384
- var getInternalState$1 = InternalStateModule$1.get;
385
680
  var enforceInternalState = InternalStateModule$1.enforce;
681
+ var getInternalState = InternalStateModule$1.get;
682
+ var $String$3 = String;
683
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
684
+ var defineProperty$5 = Object.defineProperty;
685
+ var stringSlice$1 = uncurryThis$d(''.slice);
686
+ var replace$3 = uncurryThis$d(''.replace);
687
+ var join = uncurryThis$d([].join);
688
+
689
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$7 && !fails$8(function () {
690
+ return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
691
+ });
692
+
386
693
  var TEMPLATE = String(String).split('String');
387
694
 
388
- (redefine$3.exports = function (O, key, value, options) {
389
- var unsafe = options ? !!options.unsafe : false;
390
- var simple = options ? !!options.enumerable : false;
391
- var noTargetGet = options ? !!options.noTargetGet : false;
392
- if (typeof value == 'function') {
393
- if (typeof key == 'string' && !has$6(value, 'name')) createNonEnumerableProperty$1(value, 'name', key);
394
- enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
695
+ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
696
+ if (stringSlice$1($String$3(name), 0, 7) === 'Symbol(') {
697
+ name = '[' + replace$3($String$3(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
395
698
  }
396
- if (O === global$c) {
397
- if (simple) O[key] = value;
398
- else setGlobal$1(key, value);
399
- return;
400
- } else if (!unsafe) {
401
- delete O[key];
402
- } else if (!noTargetGet && O[key]) {
403
- simple = true;
404
- }
405
- if (simple) O[key] = value;
406
- else createNonEnumerableProperty$1(O, key, value);
407
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
408
- })(Function.prototype, 'toString', function toString() {
409
- return typeof this == 'function' && getInternalState$1(this).source || inspectSource$1(this);
410
- });
411
-
412
- var global$b = global$i;
699
+ if (options && options.getter) name = 'get ' + name;
700
+ if (options && options.setter) name = 'set ' + name;
701
+ if (!hasOwn$6(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
702
+ if (DESCRIPTORS$7) defineProperty$5(value, 'name', { value: name, configurable: true });
703
+ else value.name = name;
704
+ }
705
+ if (CONFIGURABLE_LENGTH && options && hasOwn$6(options, 'arity') && value.length !== options.arity) {
706
+ defineProperty$5(value, 'length', { value: options.arity });
707
+ }
708
+ try {
709
+ if (options && hasOwn$6(options, 'constructor') && options.constructor) {
710
+ if (DESCRIPTORS$7) defineProperty$5(value, 'prototype', { writable: false });
711
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
712
+ } else if (value.prototype) value.prototype = undefined;
713
+ } catch (error) { /* empty */ }
714
+ var state = enforceInternalState(value);
715
+ if (!hasOwn$6(state, 'source')) {
716
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
717
+ } return value;
718
+ };
413
719
 
414
- var path$1 = global$b;
720
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
721
+ // eslint-disable-next-line no-extend-native -- required
722
+ Function.prototype.toString = makeBuiltIn$2(function toString() {
723
+ return isCallable$c(this) && getInternalState(this).source || inspectSource$2(this);
724
+ }, 'toString');
415
725
 
416
- var path = path$1;
417
- var global$a = global$i;
726
+ var makeBuiltInExports = makeBuiltIn$3.exports;
418
727
 
419
- var aFunction$5 = function (variable) {
420
- return typeof variable == 'function' ? variable : undefined;
421
- };
728
+ var isCallable$b = isCallable$k;
729
+ var definePropertyModule$2 = objectDefineProperty;
730
+ var makeBuiltIn$1 = makeBuiltInExports;
731
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
422
732
 
423
- var getBuiltIn$5 = function (namespace, method) {
424
- return arguments.length < 2 ? aFunction$5(path[namespace]) || aFunction$5(global$a[namespace])
425
- : path[namespace] && path[namespace][method] || global$a[namespace] && global$a[namespace][method];
733
+ var defineBuiltIn$3 = function (O, key, value, options) {
734
+ if (!options) options = {};
735
+ var simple = options.enumerable;
736
+ var name = options.name !== undefined ? options.name : key;
737
+ if (isCallable$b(value)) makeBuiltIn$1(value, name, options);
738
+ if (options.global) {
739
+ if (simple) O[key] = value;
740
+ else defineGlobalProperty$1(key, value);
741
+ } else {
742
+ try {
743
+ if (!options.unsafe) delete O[key];
744
+ else if (O[key]) simple = true;
745
+ } catch (error) { /* empty */ }
746
+ if (simple) O[key] = value;
747
+ else definePropertyModule$2.f(O, key, {
748
+ value: value,
749
+ enumerable: false,
750
+ configurable: !options.nonConfigurable,
751
+ writable: !options.nonWritable
752
+ });
753
+ } return O;
426
754
  };
427
755
 
428
756
  var objectGetOwnPropertyNames = {};
@@ -430,52 +758,74 @@ var objectGetOwnPropertyNames = {};
430
758
  var ceil = Math.ceil;
431
759
  var floor = Math.floor;
432
760
 
433
- // `ToInteger` abstract operation
434
- // https://tc39.github.io/ecma262/#sec-tointeger
435
- var toInteger$3 = function (argument) {
436
- return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
761
+ // `Math.trunc` method
762
+ // https://tc39.es/ecma262/#sec-math.trunc
763
+ // eslint-disable-next-line es/no-math-trunc -- safe
764
+ var mathTrunc = Math.trunc || function trunc(x) {
765
+ var n = +x;
766
+ return (n > 0 ? floor : ceil)(n);
437
767
  };
438
768
 
439
- var toInteger$2 = toInteger$3;
440
-
441
- var min$1 = Math.min;
769
+ var trunc = mathTrunc;
442
770
 
443
- // `ToLength` abstract operation
444
- // https://tc39.github.io/ecma262/#sec-tolength
445
- var toLength$4 = function (argument) {
446
- return argument > 0 ? min$1(toInteger$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
771
+ // `ToIntegerOrInfinity` abstract operation
772
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
773
+ var toIntegerOrInfinity$3 = function (argument) {
774
+ var number = +argument;
775
+ // eslint-disable-next-line no-self-compare -- NaN check
776
+ return number !== number || number === 0 ? 0 : trunc(number);
447
777
  };
448
778
 
449
- var toInteger$1 = toInteger$3;
779
+ var toIntegerOrInfinity$2 = toIntegerOrInfinity$3;
450
780
 
451
781
  var max = Math.max;
452
- var min = Math.min;
782
+ var min$1 = Math.min;
453
783
 
454
784
  // Helper for a popular repeating case of the spec:
455
785
  // Let integer be ? ToInteger(index).
456
786
  // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
457
787
  var toAbsoluteIndex$1 = function (index, length) {
458
- var integer = toInteger$1(index);
459
- return integer < 0 ? max(integer + length, 0) : min(integer, length);
788
+ var integer = toIntegerOrInfinity$2(index);
789
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
790
+ };
791
+
792
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$3;
793
+
794
+ var min = Math.min;
795
+
796
+ // `ToLength` abstract operation
797
+ // https://tc39.es/ecma262/#sec-tolength
798
+ var toLength$1 = function (argument) {
799
+ var len = toIntegerOrInfinity$1(argument);
800
+ return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
801
+ };
802
+
803
+ var toLength = toLength$1;
804
+
805
+ // `LengthOfArrayLike` abstract operation
806
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
807
+ var lengthOfArrayLike$5 = function (obj) {
808
+ return toLength(obj.length);
460
809
  };
461
810
 
462
- var toIndexedObject$1 = toIndexedObject$3;
463
- var toLength$3 = toLength$4;
811
+ var toIndexedObject$2 = toIndexedObject$4;
464
812
  var toAbsoluteIndex = toAbsoluteIndex$1;
813
+ var lengthOfArrayLike$4 = lengthOfArrayLike$5;
465
814
 
466
815
  // `Array.prototype.{ indexOf, includes }` methods implementation
467
816
  var createMethod = function (IS_INCLUDES) {
468
817
  return function ($this, el, fromIndex) {
469
- var O = toIndexedObject$1($this);
470
- var length = toLength$3(O.length);
818
+ var O = toIndexedObject$2($this);
819
+ var length = lengthOfArrayLike$4(O);
820
+ if (length === 0) return !IS_INCLUDES && -1;
471
821
  var index = toAbsoluteIndex(fromIndex, length);
472
822
  var value;
473
823
  // Array#includes uses SameValueZero equality algorithm
474
- // eslint-disable-next-line no-self-compare
475
- if (IS_INCLUDES && el != el) while (length > index) {
824
+ // eslint-disable-next-line no-self-compare -- NaN check
825
+ if (IS_INCLUDES && el !== el) while (length > index) {
476
826
  value = O[index++];
477
- // eslint-disable-next-line no-self-compare
478
- if (value != value) return true;
827
+ // eslint-disable-next-line no-self-compare -- NaN check
828
+ if (value !== value) return true;
479
829
  // Array#indexOf ignores holes, Array#includes - not
480
830
  } else for (;length > index; index++) {
481
831
  if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
@@ -485,27 +835,30 @@ var createMethod = function (IS_INCLUDES) {
485
835
 
486
836
  var arrayIncludes = {
487
837
  // `Array.prototype.includes` method
488
- // https://tc39.github.io/ecma262/#sec-array.prototype.includes
838
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
489
839
  includes: createMethod(true),
490
840
  // `Array.prototype.indexOf` method
491
- // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
841
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
492
842
  indexOf: createMethod(false)
493
843
  };
494
844
 
495
- var has$5 = has$9;
496
- var toIndexedObject = toIndexedObject$3;
845
+ var uncurryThis$c = functionUncurryThis;
846
+ var hasOwn$5 = hasOwnProperty_1;
847
+ var toIndexedObject$1 = toIndexedObject$4;
497
848
  var indexOf = arrayIncludes.indexOf;
498
849
  var hiddenKeys$2 = hiddenKeys$4;
499
850
 
851
+ var push$1 = uncurryThis$c([].push);
852
+
500
853
  var objectKeysInternal = function (object, names) {
501
- var O = toIndexedObject(object);
854
+ var O = toIndexedObject$1(object);
502
855
  var i = 0;
503
856
  var result = [];
504
857
  var key;
505
- for (key in O) !has$5(hiddenKeys$2, key) && has$5(O, key) && result.push(key);
858
+ for (key in O) !hasOwn$5(hiddenKeys$2, key) && hasOwn$5(O, key) && push$1(result, key);
506
859
  // Don't enum bug & hidden keys
507
- while (names.length > i) if (has$5(O, key = names[i++])) {
508
- ~indexOf(result, key) || result.push(key);
860
+ while (names.length > i) if (hasOwn$5(O, key = names[i++])) {
861
+ ~indexOf(result, key) || push$1(result, key);
509
862
  }
510
863
  return result;
511
864
  };
@@ -527,51 +880,59 @@ var enumBugKeys$2 = enumBugKeys$3;
527
880
  var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
528
881
 
529
882
  // `Object.getOwnPropertyNames` method
530
- // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
883
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
884
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
531
885
  objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
532
886
  return internalObjectKeys$1(O, hiddenKeys$1);
533
887
  };
534
888
 
535
889
  var objectGetOwnPropertySymbols = {};
536
890
 
891
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
537
892
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
538
893
 
539
- var getBuiltIn$4 = getBuiltIn$5;
894
+ var getBuiltIn$7 = getBuiltIn$9;
895
+ var uncurryThis$b = functionUncurryThis;
540
896
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
541
897
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
542
- var anObject$6 = anObject$8;
898
+ var anObject$7 = anObject$9;
899
+
900
+ var concat$1 = uncurryThis$b([].concat);
543
901
 
544
902
  // all object keys, includes non-enumerable and symbols
545
- var ownKeys$1 = getBuiltIn$4('Reflect', 'ownKeys') || function ownKeys(it) {
546
- var keys = getOwnPropertyNamesModule.f(anObject$6(it));
903
+ var ownKeys$1 = getBuiltIn$7('Reflect', 'ownKeys') || function ownKeys(it) {
904
+ var keys = getOwnPropertyNamesModule.f(anObject$7(it));
547
905
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
548
- return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
906
+ return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
549
907
  };
550
908
 
551
- var has$4 = has$9;
909
+ var hasOwn$4 = hasOwnProperty_1;
552
910
  var ownKeys = ownKeys$1;
553
911
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
554
- var definePropertyModule$3 = objectDefineProperty;
912
+ var definePropertyModule$1 = objectDefineProperty;
555
913
 
556
- var copyConstructorProperties$2 = function (target, source) {
914
+ var copyConstructorProperties$3 = function (target, source, exceptions) {
557
915
  var keys = ownKeys(source);
558
- var defineProperty = definePropertyModule$3.f;
916
+ var defineProperty = definePropertyModule$1.f;
559
917
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
560
918
  for (var i = 0; i < keys.length; i++) {
561
919
  var key = keys[i];
562
- if (!has$4(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
920
+ if (!hasOwn$4(target, key) && !(exceptions && hasOwn$4(exceptions, key))) {
921
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
922
+ }
563
923
  }
564
924
  };
565
925
 
566
- var fails$4 = fails$8;
926
+ var fails$7 = fails$f;
927
+ var isCallable$a = isCallable$k;
567
928
 
568
929
  var replacement = /#|\.prototype\./;
569
930
 
570
931
  var isForced$2 = function (feature, detection) {
571
932
  var value = data[normalize(feature)];
572
- return value == POLYFILL ? true
573
- : value == NATIVE ? false
574
- : typeof detection == 'function' ? fails$4(detection)
933
+ return value === POLYFILL ? true
934
+ : value === NATIVE ? false
935
+ : isCallable$a(detection) ? fails$7(detection)
575
936
  : !!detection;
576
937
  };
577
938
 
@@ -585,27 +946,28 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
585
946
 
586
947
  var isForced_1 = isForced$2;
587
948
 
588
- var global$9 = global$i;
589
- var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
590
- var createNonEnumerableProperty = createNonEnumerableProperty$4;
591
- var redefine$2 = redefine$3.exports;
592
- var setGlobal = setGlobal$3;
593
- var copyConstructorProperties$1 = copyConstructorProperties$2;
949
+ var global$a = global$j;
950
+ var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
951
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
952
+ var defineBuiltIn$2 = defineBuiltIn$3;
953
+ var defineGlobalProperty = defineGlobalProperty$3;
954
+ var copyConstructorProperties$2 = copyConstructorProperties$3;
594
955
  var isForced$1 = isForced_1;
595
956
 
596
957
  /*
597
- options.target - name of the target object
598
- options.global - target is the global object
599
- options.stat - export as static methods of target
600
- options.proto - export as prototype methods of target
601
- options.real - real prototype method for the `pure` version
602
- options.forced - export even if the native feature is available
603
- options.bind - bind methods to the target, required for the `pure` version
604
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
605
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
606
- options.sham - add a flag to not completely full polyfills
607
- options.enumerable - export as enumerable property
608
- options.noTargetGet - prevent calling a getter on target
958
+ options.target - name of the target object
959
+ options.global - target is the global object
960
+ options.stat - export as static methods of target
961
+ options.proto - export as prototype methods of target
962
+ options.real - real prototype method for the `pure` version
963
+ options.forced - export even if the native feature is available
964
+ options.bind - bind methods to the target, required for the `pure` version
965
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
966
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
967
+ options.sham - add a flag to not completely full polyfills
968
+ options.enumerable - export as enumerable property
969
+ options.dontCallGetSet - prevent calling a getter on target
970
+ options.name - the .name of the function if it does not match the key
609
971
  */
610
972
  var _export = function (options, source) {
611
973
  var TARGET = options.target;
@@ -613,434 +975,760 @@ var _export = function (options, source) {
613
975
  var STATIC = options.stat;
614
976
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
615
977
  if (GLOBAL) {
616
- target = global$9;
978
+ target = global$a;
617
979
  } else if (STATIC) {
618
- target = global$9[TARGET] || setGlobal(TARGET, {});
980
+ target = global$a[TARGET] || defineGlobalProperty(TARGET, {});
619
981
  } else {
620
- target = (global$9[TARGET] || {}).prototype;
982
+ target = global$a[TARGET] && global$a[TARGET].prototype;
621
983
  }
622
984
  if (target) for (key in source) {
623
985
  sourceProperty = source[key];
624
- if (options.noTargetGet) {
625
- descriptor = getOwnPropertyDescriptor$1(target, key);
986
+ if (options.dontCallGetSet) {
987
+ descriptor = getOwnPropertyDescriptor$2(target, key);
626
988
  targetProperty = descriptor && descriptor.value;
627
989
  } else targetProperty = target[key];
628
990
  FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
629
991
  // contained in target
630
992
  if (!FORCED && targetProperty !== undefined) {
631
- if (typeof sourceProperty === typeof targetProperty) continue;
632
- copyConstructorProperties$1(sourceProperty, targetProperty);
993
+ if (typeof sourceProperty == typeof targetProperty) continue;
994
+ copyConstructorProperties$2(sourceProperty, targetProperty);
633
995
  }
634
996
  // add a flag to not completely full polyfills
635
997
  if (options.sham || (targetProperty && targetProperty.sham)) {
636
- createNonEnumerableProperty(sourceProperty, 'sham', true);
998
+ createNonEnumerableProperty$3(sourceProperty, 'sham', true);
637
999
  }
638
- // extend global
639
- redefine$2(target, key, sourceProperty, options);
1000
+ defineBuiltIn$2(target, key, sourceProperty, options);
640
1001
  }
641
1002
  };
642
1003
 
643
- var internalObjectKeys = objectKeysInternal;
644
- var enumBugKeys$1 = enumBugKeys$3;
1004
+ var NATIVE_BIND$1 = functionBindNative;
645
1005
 
646
- // `Object.keys` method
647
- // https://tc39.github.io/ecma262/#sec-object.keys
648
- var objectKeys$2 = Object.keys || function keys(O) {
649
- return internalObjectKeys(O, enumBugKeys$1);
1006
+ var FunctionPrototype = Function.prototype;
1007
+ var apply$3 = FunctionPrototype.apply;
1008
+ var call$8 = FunctionPrototype.call;
1009
+
1010
+ // eslint-disable-next-line es/no-reflect -- safe
1011
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$8.bind(apply$3) : function () {
1012
+ return call$8.apply(apply$3, arguments);
1013
+ });
1014
+
1015
+ var uncurryThis$a = functionUncurryThis;
1016
+ var aCallable$6 = aCallable$8;
1017
+
1018
+ var functionUncurryThisAccessor = function (object, key, method) {
1019
+ try {
1020
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1021
+ return uncurryThis$a(aCallable$6(Object.getOwnPropertyDescriptor(object, key)[method]));
1022
+ } catch (error) { /* empty */ }
650
1023
  };
651
1024
 
652
- var requireObjectCoercible$1 = requireObjectCoercible$3;
1025
+ var isObject$7 = isObject$d;
653
1026
 
654
- // `ToObject` abstract operation
655
- // https://tc39.github.io/ecma262/#sec-toobject
656
- var toObject$2 = function (argument) {
657
- return Object(requireObjectCoercible$1(argument));
1027
+ var isPossiblePrototype$1 = function (argument) {
1028
+ return isObject$7(argument) || argument === null;
658
1029
  };
659
1030
 
660
- var DESCRIPTORS$4 = descriptors;
661
- var fails$3 = fails$8;
662
- var objectKeys$1 = objectKeys$2;
663
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
664
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
665
- var toObject$1 = toObject$2;
666
- var IndexedObject = indexedObject;
1031
+ var isPossiblePrototype = isPossiblePrototype$1;
667
1032
 
668
- var nativeAssign = Object.assign;
669
- var defineProperty$3 = Object.defineProperty;
1033
+ var $String$2 = String;
1034
+ var $TypeError$9 = TypeError;
670
1035
 
671
- // `Object.assign` method
672
- // https://tc39.github.io/ecma262/#sec-object.assign
673
- var objectAssign = !nativeAssign || fails$3(function () {
674
- // should have correct order of operations (Edge bug)
675
- if (DESCRIPTORS$4 && nativeAssign({ b: 1 }, nativeAssign(defineProperty$3({}, 'a', {
676
- enumerable: true,
677
- get: function () {
678
- defineProperty$3(this, 'b', {
679
- value: 3,
680
- enumerable: false
681
- });
682
- }
683
- }), { b: 2 })).b !== 1) return true;
684
- // should work with symbols and should have deterministic property order (V8 bug)
685
- var A = {};
686
- var B = {};
687
- // eslint-disable-next-line no-undef
688
- var symbol = Symbol();
689
- var alphabet = 'abcdefghijklmnopqrst';
690
- A[symbol] = 7;
691
- alphabet.split('').forEach(function (chr) { B[chr] = chr; });
692
- return nativeAssign({}, A)[symbol] != 7 || objectKeys$1(nativeAssign({}, B)).join('') != alphabet;
693
- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars
694
- var T = toObject$1(target);
695
- var argumentsLength = arguments.length;
696
- var index = 1;
697
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
698
- var propertyIsEnumerable = propertyIsEnumerableModule.f;
699
- while (argumentsLength > index) {
700
- var S = IndexedObject(arguments[index++]);
701
- var keys = getOwnPropertySymbols ? objectKeys$1(S).concat(getOwnPropertySymbols(S)) : objectKeys$1(S);
702
- var length = keys.length;
703
- var j = 0;
704
- var key;
705
- while (length > j) {
706
- key = keys[j++];
707
- if (!DESCRIPTORS$4 || propertyIsEnumerable.call(S, key)) T[key] = S[key];
708
- }
709
- } return T;
710
- } : nativeAssign;
1036
+ var aPossiblePrototype$1 = function (argument) {
1037
+ if (isPossiblePrototype(argument)) return argument;
1038
+ throw new $TypeError$9("Can't set " + $String$2(argument) + ' as a prototype');
1039
+ };
711
1040
 
712
- var $$5 = _export;
713
- var assign = objectAssign;
1041
+ /* eslint-disable no-proto -- safe */
1042
+ var uncurryThisAccessor = functionUncurryThisAccessor;
1043
+ var isObject$6 = isObject$d;
1044
+ var requireObjectCoercible$1 = requireObjectCoercible$4;
1045
+ var aPossiblePrototype = aPossiblePrototype$1;
1046
+
1047
+ // `Object.setPrototypeOf` method
1048
+ // https://tc39.es/ecma262/#sec-object.setprototypeof
1049
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
1050
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
1051
+ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1052
+ var CORRECT_SETTER = false;
1053
+ var test = {};
1054
+ var setter;
1055
+ try {
1056
+ setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
1057
+ setter(test, []);
1058
+ CORRECT_SETTER = test instanceof Array;
1059
+ } catch (error) { /* empty */ }
1060
+ return function setPrototypeOf(O, proto) {
1061
+ requireObjectCoercible$1(O);
1062
+ aPossiblePrototype(proto);
1063
+ if (!isObject$6(O)) return O;
1064
+ if (CORRECT_SETTER) setter(O, proto);
1065
+ else O.__proto__ = proto;
1066
+ return O;
1067
+ };
1068
+ }() : undefined);
714
1069
 
715
- // `Object.assign` method
716
- // https://tc39.github.io/ecma262/#sec-object.assign
717
- $$5({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
718
- assign: assign
719
- });
1070
+ var defineProperty$4 = objectDefineProperty.f;
720
1071
 
721
- var global$8 = global$i;
1072
+ var proxyAccessor$1 = function (Target, Source, key) {
1073
+ key in Target || defineProperty$4(Target, key, {
1074
+ configurable: true,
1075
+ get: function () { return Source[key]; },
1076
+ set: function (it) { Source[key] = it; }
1077
+ });
1078
+ };
722
1079
 
723
- var nativePromiseConstructor = global$8.Promise;
1080
+ var isCallable$9 = isCallable$k;
1081
+ var isObject$5 = isObject$d;
1082
+ var setPrototypeOf$2 = objectSetPrototypeOf;
1083
+
1084
+ // makes subclassing work correct for wrapped built-ins
1085
+ var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
1086
+ var NewTarget, NewTargetPrototype;
1087
+ if (
1088
+ // it can work only with native `setPrototypeOf`
1089
+ setPrototypeOf$2 &&
1090
+ // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
1091
+ isCallable$9(NewTarget = dummy.constructor) &&
1092
+ NewTarget !== Wrapper &&
1093
+ isObject$5(NewTargetPrototype = NewTarget.prototype) &&
1094
+ NewTargetPrototype !== Wrapper.prototype
1095
+ ) setPrototypeOf$2($this, NewTargetPrototype);
1096
+ return $this;
1097
+ };
724
1098
 
725
- var redefine$1 = redefine$3.exports;
1099
+ var wellKnownSymbol$c = wellKnownSymbol$e;
726
1100
 
727
- var redefineAll$1 = function (target, src, options) {
728
- for (var key in src) redefine$1(target, key, src[key], options);
729
- return target;
730
- };
1101
+ var TO_STRING_TAG$2 = wellKnownSymbol$c('toStringTag');
1102
+ var test = {};
731
1103
 
732
- var fails$2 = fails$8;
1104
+ test[TO_STRING_TAG$2] = 'z';
733
1105
 
734
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$2(function () {
735
- // Chrome 38 Symbol has incorrect toString conversion
736
- // eslint-disable-next-line no-undef
737
- return !String(Symbol());
738
- });
1106
+ var toStringTagSupport = String(test) === '[object z]';
739
1107
 
740
- var NATIVE_SYMBOL$1 = nativeSymbol;
1108
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1109
+ var isCallable$8 = isCallable$k;
1110
+ var classofRaw$1 = classofRaw$2;
1111
+ var wellKnownSymbol$b = wellKnownSymbol$e;
741
1112
 
742
- var useSymbolAsUid = NATIVE_SYMBOL$1
743
- // eslint-disable-next-line no-undef
744
- && !Symbol.sham
745
- // eslint-disable-next-line no-undef
746
- && typeof Symbol.iterator == 'symbol';
1113
+ var TO_STRING_TAG$1 = wellKnownSymbol$b('toStringTag');
1114
+ var $Object = Object;
747
1115
 
748
- var global$7 = global$i;
749
- var shared = shared$2.exports;
750
- var has$3 = has$9;
751
- var uid = uid$2;
752
- var NATIVE_SYMBOL = nativeSymbol;
753
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
1116
+ // ES3 wrong here
1117
+ var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
754
1118
 
755
- var WellKnownSymbolsStore = shared('wks');
756
- var Symbol$1 = global$7.Symbol;
757
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
1119
+ // fallback for IE11 Script Access Denied error
1120
+ var tryGet = function (it, key) {
1121
+ try {
1122
+ return it[key];
1123
+ } catch (error) { /* empty */ }
1124
+ };
758
1125
 
759
- var wellKnownSymbol$d = function (name) {
760
- if (!has$3(WellKnownSymbolsStore, name)) {
761
- if (NATIVE_SYMBOL && has$3(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name];
762
- else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
763
- } return WellKnownSymbolsStore[name];
1126
+ // getting tag from ES6+ `Object.prototype.toString`
1127
+ var classof$7 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1128
+ var O, tag, result;
1129
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1130
+ // @@toStringTag case
1131
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG$1)) == 'string' ? tag
1132
+ // builtinTag case
1133
+ : CORRECT_ARGUMENTS ? classofRaw$1(O)
1134
+ // ES3 arguments fallback
1135
+ : (result = classofRaw$1(O)) === 'Object' && isCallable$8(O.callee) ? 'Arguments' : result;
764
1136
  };
765
1137
 
766
- var defineProperty$2 = objectDefineProperty.f;
767
- var has$2 = has$9;
768
- var wellKnownSymbol$c = wellKnownSymbol$d;
1138
+ var classof$6 = classof$7;
769
1139
 
770
- var TO_STRING_TAG$2 = wellKnownSymbol$c('toStringTag');
1140
+ var $String$1 = String;
771
1141
 
772
- var setToStringTag$1 = function (it, TAG, STATIC) {
773
- if (it && !has$2(it = STATIC ? it : it.prototype, TO_STRING_TAG$2)) {
774
- defineProperty$2(it, TO_STRING_TAG$2, { configurable: true, value: TAG });
775
- }
1142
+ var toString$4 = function (argument) {
1143
+ if (classof$6(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1144
+ return $String$1(argument);
776
1145
  };
777
1146
 
778
- var getBuiltIn$3 = getBuiltIn$5;
779
- var definePropertyModule$2 = objectDefineProperty;
780
- var wellKnownSymbol$b = wellKnownSymbol$d;
781
- var DESCRIPTORS$3 = descriptors;
1147
+ var toString$3 = toString$4;
782
1148
 
783
- var SPECIES$3 = wellKnownSymbol$b('species');
1149
+ var normalizeStringArgument$1 = function (argument, $default) {
1150
+ return argument === undefined ? arguments.length < 2 ? '' : $default : toString$3(argument);
1151
+ };
784
1152
 
785
- var setSpecies$1 = function (CONSTRUCTOR_NAME) {
786
- var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
787
- var defineProperty = definePropertyModule$2.f;
1153
+ var isObject$4 = isObject$d;
1154
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
788
1155
 
789
- if (DESCRIPTORS$3 && Constructor && !Constructor[SPECIES$3]) {
790
- defineProperty(Constructor, SPECIES$3, {
791
- configurable: true,
792
- get: function () { return this; }
793
- });
1156
+ // `InstallErrorCause` abstract operation
1157
+ // https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
1158
+ var installErrorCause$1 = function (O, options) {
1159
+ if (isObject$4(options) && 'cause' in options) {
1160
+ createNonEnumerableProperty$2(O, 'cause', options.cause);
794
1161
  }
795
1162
  };
796
1163
 
797
- var aFunction$4 = function (it) {
798
- if (typeof it != 'function') {
799
- throw TypeError(String(it) + ' is not a function');
800
- } return it;
801
- };
1164
+ var uncurryThis$9 = functionUncurryThis;
802
1165
 
803
- var anInstance$1 = function (it, Constructor, name) {
804
- if (!(it instanceof Constructor)) {
805
- throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
806
- } return it;
807
- };
1166
+ var $Error = Error;
1167
+ var replace$2 = uncurryThis$9(''.replace);
808
1168
 
809
- var iterate$2 = {exports: {}};
1169
+ var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
1170
+ // eslint-disable-next-line redos/no-vulnerable -- safe
1171
+ var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
1172
+ var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
810
1173
 
811
- var iterators = {};
1174
+ var errorStackClear = function (stack, dropEntries) {
1175
+ if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
1176
+ while (dropEntries--) stack = replace$2(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
1177
+ } return stack;
1178
+ };
812
1179
 
813
- var wellKnownSymbol$a = wellKnownSymbol$d;
814
- var Iterators$1 = iterators;
1180
+ var fails$6 = fails$f;
1181
+ var createPropertyDescriptor = createPropertyDescriptor$3;
815
1182
 
816
- var ITERATOR$2 = wellKnownSymbol$a('iterator');
817
- var ArrayPrototype$1 = Array.prototype;
1183
+ var errorStackInstallable = !fails$6(function () {
1184
+ var error = new Error('a');
1185
+ if (!('stack' in error)) return true;
1186
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
1187
+ Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
1188
+ return error.stack !== 7;
1189
+ });
818
1190
 
819
- // check on default Array iterator
820
- var isArrayIteratorMethod$1 = function (it) {
821
- return it !== undefined && (Iterators$1.Array === it || ArrayPrototype$1[ITERATOR$2] === it);
822
- };
1191
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
1192
+ var clearErrorStack = errorStackClear;
1193
+ var ERROR_STACK_INSTALLABLE = errorStackInstallable;
823
1194
 
824
- var aFunction$3 = aFunction$4;
1195
+ // non-standard V8
1196
+ var captureStackTrace = Error.captureStackTrace;
825
1197
 
826
- // optional / simple context binding
827
- var functionBindContext = function (fn, that, length) {
828
- aFunction$3(fn);
829
- if (that === undefined) return fn;
830
- switch (length) {
831
- case 0: return function () {
832
- return fn.call(that);
833
- };
834
- case 1: return function (a) {
835
- return fn.call(that, a);
836
- };
837
- case 2: return function (a, b) {
838
- return fn.call(that, a, b);
839
- };
840
- case 3: return function (a, b, c) {
841
- return fn.call(that, a, b, c);
842
- };
1198
+ var errorStackInstall = function (error, C, stack, dropEntries) {
1199
+ if (ERROR_STACK_INSTALLABLE) {
1200
+ if (captureStackTrace) captureStackTrace(error, C);
1201
+ else createNonEnumerableProperty$1(error, 'stack', clearErrorStack(stack, dropEntries));
843
1202
  }
844
- return function (/* ...args */) {
845
- return fn.apply(that, arguments);
846
- };
847
1203
  };
848
1204
 
849
- var wellKnownSymbol$9 = wellKnownSymbol$d;
1205
+ var getBuiltIn$6 = getBuiltIn$9;
1206
+ var hasOwn$3 = hasOwnProperty_1;
1207
+ var createNonEnumerableProperty = createNonEnumerableProperty$5;
1208
+ var isPrototypeOf$3 = objectIsPrototypeOf;
1209
+ var setPrototypeOf$1 = objectSetPrototypeOf;
1210
+ var copyConstructorProperties$1 = copyConstructorProperties$3;
1211
+ var proxyAccessor = proxyAccessor$1;
1212
+ var inheritIfRequired = inheritIfRequired$1;
1213
+ var normalizeStringArgument = normalizeStringArgument$1;
1214
+ var installErrorCause = installErrorCause$1;
1215
+ var installErrorStack = errorStackInstall;
1216
+ var DESCRIPTORS$6 = descriptors;
850
1217
 
851
- var TO_STRING_TAG$1 = wellKnownSymbol$9('toStringTag');
852
- var test = {};
1218
+ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
1219
+ var STACK_TRACE_LIMIT = 'stackTraceLimit';
1220
+ var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
1221
+ var path = FULL_NAME.split('.');
1222
+ var ERROR_NAME = path[path.length - 1];
1223
+ var OriginalError = getBuiltIn$6.apply(null, path);
853
1224
 
854
- test[TO_STRING_TAG$1] = 'z';
1225
+ if (!OriginalError) return;
855
1226
 
856
- var toStringTagSupport = String(test) === '[object z]';
1227
+ var OriginalErrorPrototype = OriginalError.prototype;
857
1228
 
858
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
859
- var classofRaw = classofRaw$1;
860
- var wellKnownSymbol$8 = wellKnownSymbol$d;
1229
+ // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
1230
+ if (hasOwn$3(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
861
1231
 
862
- var TO_STRING_TAG = wellKnownSymbol$8('toStringTag');
863
- // ES3 wrong here
864
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1232
+ if (!FORCED) return OriginalError;
1233
+
1234
+ var BaseError = getBuiltIn$6('Error');
1235
+
1236
+ var WrappedError = wrapper(function (a, b) {
1237
+ var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
1238
+ var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
1239
+ if (message !== undefined) createNonEnumerableProperty(result, 'message', message);
1240
+ installErrorStack(result, WrappedError, result.stack, 2);
1241
+ if (this && isPrototypeOf$3(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
1242
+ if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
1243
+ return result;
1244
+ });
1245
+
1246
+ WrappedError.prototype = OriginalErrorPrototype;
1247
+
1248
+ if (ERROR_NAME !== 'Error') {
1249
+ if (setPrototypeOf$1) setPrototypeOf$1(WrappedError, BaseError);
1250
+ else copyConstructorProperties$1(WrappedError, BaseError, { name: true });
1251
+ } else if (DESCRIPTORS$6 && STACK_TRACE_LIMIT in OriginalError) {
1252
+ proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
1253
+ proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
1254
+ }
1255
+
1256
+ copyConstructorProperties$1(WrappedError, OriginalError);
865
1257
 
866
- // fallback for IE11 Script Access Denied error
867
- var tryGet = function (it, key) {
868
1258
  try {
869
- return it[key];
1259
+ // Safari 13- bug: WebAssembly errors does not have a proper `.name`
1260
+ if (OriginalErrorPrototype.name !== ERROR_NAME) {
1261
+ createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME);
1262
+ }
1263
+ OriginalErrorPrototype.constructor = WrappedError;
870
1264
  } catch (error) { /* empty */ }
1265
+
1266
+ return WrappedError;
871
1267
  };
872
1268
 
873
- // getting tag from ES6+ `Object.prototype.toString`
874
- var classof$6 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
875
- var O, tag, result;
876
- return it === undefined ? 'Undefined' : it === null ? 'Null'
877
- // @@toStringTag case
878
- : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag
879
- // builtinTag case
880
- : CORRECT_ARGUMENTS ? classofRaw(O)
881
- // ES3 arguments fallback
882
- : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
1269
+ /* eslint-disable no-unused-vars -- required for functions `.length` */
1270
+ var $$d = _export;
1271
+ var global$9 = global$j;
1272
+ var apply$2 = functionApply;
1273
+ var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
1274
+
1275
+ var WEB_ASSEMBLY = 'WebAssembly';
1276
+ var WebAssembly = global$9[WEB_ASSEMBLY];
1277
+
1278
+ // eslint-disable-next-line es/no-error-cause -- feature detection
1279
+ var FORCED$1 = new Error('e', { cause: 7 }).cause !== 7;
1280
+
1281
+ var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
1282
+ var O = {};
1283
+ O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$1);
1284
+ $$d({ global: true, constructor: true, arity: 1, forced: FORCED$1 }, O);
883
1285
  };
884
1286
 
885
- var classof$5 = classof$6;
886
- var Iterators = iterators;
887
- var wellKnownSymbol$7 = wellKnownSymbol$d;
1287
+ var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
1288
+ if (WebAssembly && WebAssembly[ERROR_NAME]) {
1289
+ var O = {};
1290
+ O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$1);
1291
+ $$d({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$1 }, O);
1292
+ }
1293
+ };
888
1294
 
889
- var ITERATOR$1 = wellKnownSymbol$7('iterator');
1295
+ // https://tc39.es/ecma262/#sec-nativeerror
1296
+ exportGlobalErrorCauseWrapper('Error', function (init) {
1297
+ return function Error(message) { return apply$2(init, this, arguments); };
1298
+ });
1299
+ exportGlobalErrorCauseWrapper('EvalError', function (init) {
1300
+ return function EvalError(message) { return apply$2(init, this, arguments); };
1301
+ });
1302
+ exportGlobalErrorCauseWrapper('RangeError', function (init) {
1303
+ return function RangeError(message) { return apply$2(init, this, arguments); };
1304
+ });
1305
+ exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
1306
+ return function ReferenceError(message) { return apply$2(init, this, arguments); };
1307
+ });
1308
+ exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
1309
+ return function SyntaxError(message) { return apply$2(init, this, arguments); };
1310
+ });
1311
+ exportGlobalErrorCauseWrapper('TypeError', function (init) {
1312
+ return function TypeError(message) { return apply$2(init, this, arguments); };
1313
+ });
1314
+ exportGlobalErrorCauseWrapper('URIError', function (init) {
1315
+ return function URIError(message) { return apply$2(init, this, arguments); };
1316
+ });
1317
+ exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
1318
+ return function CompileError(message) { return apply$2(init, this, arguments); };
1319
+ });
1320
+ exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
1321
+ return function LinkError(message) { return apply$2(init, this, arguments); };
1322
+ });
1323
+ exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
1324
+ return function RuntimeError(message) { return apply$2(init, this, arguments); };
1325
+ });
890
1326
 
891
- var getIteratorMethod$1 = function (it) {
892
- if (it != undefined) return it[ITERATOR$1]
893
- || it['@@iterator']
894
- || Iterators[classof$5(it)];
1327
+ var classof$5 = classofRaw$2;
1328
+
1329
+ // `IsArray` abstract operation
1330
+ // https://tc39.es/ecma262/#sec-isarray
1331
+ // eslint-disable-next-line es/no-array-isarray -- safe
1332
+ var isArray$4 = Array.isArray || function isArray(argument) {
1333
+ return classof$5(argument) === 'Array';
895
1334
  };
896
1335
 
897
- var anObject$5 = anObject$8;
1336
+ var DESCRIPTORS$5 = descriptors;
1337
+ var isArray$3 = isArray$4;
1338
+
1339
+ var $TypeError$8 = TypeError;
1340
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1341
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
898
1342
 
899
- // call something on iterator step with safe closing on error
900
- var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
1343
+ // Safari < 13 does not throw an error in this case
1344
+ var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$5 && !function () {
1345
+ // makes no sense without proper strict mode support
1346
+ if (this !== undefined) return true;
901
1347
  try {
902
- return ENTRIES ? fn(anObject$5(value)[0], value[1]) : fn(value);
903
- // 7.4.6 IteratorClose(iterator, completion)
1348
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
1349
+ Object.defineProperty([], 'length', { writable: false }).length = 1;
904
1350
  } catch (error) {
905
- var returnMethod = iterator['return'];
906
- if (returnMethod !== undefined) anObject$5(returnMethod.call(iterator));
907
- throw error;
1351
+ return error instanceof TypeError;
908
1352
  }
1353
+ }();
1354
+
1355
+ var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
1356
+ if (isArray$3(O) && !getOwnPropertyDescriptor$1(O, 'length').writable) {
1357
+ throw new $TypeError$8('Cannot set read only .length');
1358
+ } return O.length = length;
1359
+ } : function (O, length) {
1360
+ return O.length = length;
909
1361
  };
910
1362
 
911
- var anObject$4 = anObject$8;
912
- var isArrayIteratorMethod = isArrayIteratorMethod$1;
913
- var toLength$2 = toLength$4;
914
- var bind$3 = functionBindContext;
915
- var getIteratorMethod = getIteratorMethod$1;
916
- var callWithSafeIterationClosing = callWithSafeIterationClosing$1;
1363
+ var $TypeError$7 = TypeError;
1364
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
917
1365
 
918
- var Result = function (stopped, result) {
919
- this.stopped = stopped;
920
- this.result = result;
1366
+ var doesNotExceedSafeInteger$2 = function (it) {
1367
+ if (it > MAX_SAFE_INTEGER) throw $TypeError$7('Maximum allowed index exceeded');
1368
+ return it;
921
1369
  };
922
1370
 
923
- var iterate$1 = iterate$2.exports = function (iterable, fn, that, AS_ENTRIES, IS_ITERATOR) {
924
- var boundFunction = bind$3(fn, that, AS_ENTRIES ? 2 : 1);
925
- var iterator, iterFn, index, length, result, next, step;
1371
+ var $$c = _export;
1372
+ var toObject$2 = toObject$4;
1373
+ var lengthOfArrayLike$3 = lengthOfArrayLike$5;
1374
+ var setArrayLength = arraySetLength;
1375
+ var doesNotExceedSafeInteger$1 = doesNotExceedSafeInteger$2;
1376
+ var fails$5 = fails$f;
926
1377
 
927
- if (IS_ITERATOR) {
928
- iterator = iterable;
929
- } else {
930
- iterFn = getIteratorMethod(iterable);
931
- if (typeof iterFn != 'function') throw TypeError('Target is not iterable');
932
- // optimisation for array iterators
933
- if (isArrayIteratorMethod(iterFn)) {
934
- for (index = 0, length = toLength$2(iterable.length); length > index; index++) {
935
- result = AS_ENTRIES
936
- ? boundFunction(anObject$4(step = iterable[index])[0], step[1])
937
- : boundFunction(iterable[index]);
938
- if (result && result instanceof Result) return result;
939
- } return new Result(false);
1378
+ var INCORRECT_TO_LENGTH = fails$5(function () {
1379
+ return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
1380
+ });
1381
+
1382
+ // V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
1383
+ // https://bugs.chromium.org/p/v8/issues/detail?id=12681
1384
+ var properErrorOnNonWritableLength = function () {
1385
+ try {
1386
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
1387
+ Object.defineProperty([], 'length', { writable: false }).push();
1388
+ } catch (error) {
1389
+ return error instanceof TypeError;
1390
+ }
1391
+ };
1392
+
1393
+ var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
1394
+
1395
+ // `Array.prototype.push` method
1396
+ // https://tc39.es/ecma262/#sec-array.prototype.push
1397
+ $$c({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
1398
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
1399
+ push: function push(item) {
1400
+ var O = toObject$2(this);
1401
+ var len = lengthOfArrayLike$3(O);
1402
+ var argCount = arguments.length;
1403
+ doesNotExceedSafeInteger$1(len + argCount);
1404
+ for (var i = 0; i < argCount; i++) {
1405
+ O[len] = arguments[i];
1406
+ len++;
940
1407
  }
941
- iterator = iterFn.call(iterable);
1408
+ setArrayLength(O, len);
1409
+ return len;
942
1410
  }
1411
+ });
943
1412
 
944
- next = iterator.next;
945
- while (!(step = next.call(iterator)).done) {
946
- result = callWithSafeIterationClosing(iterator, boundFunction, step.value, AS_ENTRIES);
947
- if (typeof result == 'object' && result && result instanceof Result) return result;
948
- } return new Result(false);
1413
+ /******************************************************************************
1414
+ Copyright (c) Microsoft Corporation.
1415
+
1416
+ Permission to use, copy, modify, and/or distribute this software for any
1417
+ purpose with or without fee is hereby granted.
1418
+
1419
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1420
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1421
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1422
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1423
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1424
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1425
+ PERFORMANCE OF THIS SOFTWARE.
1426
+ ***************************************************************************** */
1427
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
1428
+
1429
+
1430
+ function __awaiter(thisArg, _arguments, P, generator) {
1431
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1432
+ return new (P || (P = Promise))(function (resolve, reject) {
1433
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
1434
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
1435
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
1436
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
1437
+ });
1438
+ }
1439
+
1440
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1441
+ var e = new Error(message);
1442
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1443
+ };
1444
+
1445
+ var internalObjectKeys = objectKeysInternal;
1446
+ var enumBugKeys$1 = enumBugKeys$3;
1447
+
1448
+ // `Object.keys` method
1449
+ // https://tc39.es/ecma262/#sec-object.keys
1450
+ // eslint-disable-next-line es/no-object-keys -- safe
1451
+ var objectKeys$2 = Object.keys || function keys(O) {
1452
+ return internalObjectKeys(O, enumBugKeys$1);
1453
+ };
1454
+
1455
+ var DESCRIPTORS$4 = descriptors;
1456
+ var uncurryThis$8 = functionUncurryThis;
1457
+ var call$7 = functionCall;
1458
+ var fails$4 = fails$f;
1459
+ var objectKeys$1 = objectKeys$2;
1460
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1461
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1462
+ var toObject$1 = toObject$4;
1463
+ var IndexedObject = indexedObject;
1464
+
1465
+ // eslint-disable-next-line es/no-object-assign -- safe
1466
+ var $assign = Object.assign;
1467
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1468
+ var defineProperty$3 = Object.defineProperty;
1469
+ var concat = uncurryThis$8([].concat);
1470
+
1471
+ // `Object.assign` method
1472
+ // https://tc39.es/ecma262/#sec-object.assign
1473
+ var objectAssign = !$assign || fails$4(function () {
1474
+ // should have correct order of operations (Edge bug)
1475
+ if (DESCRIPTORS$4 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
1476
+ enumerable: true,
1477
+ get: function () {
1478
+ defineProperty$3(this, 'b', {
1479
+ value: 3,
1480
+ enumerable: false
1481
+ });
1482
+ }
1483
+ }), { b: 2 })).b !== 1) return true;
1484
+ // should work with symbols and should have deterministic property order (V8 bug)
1485
+ var A = {};
1486
+ var B = {};
1487
+ // eslint-disable-next-line es/no-symbol -- safe
1488
+ var symbol = Symbol('assign detection');
1489
+ var alphabet = 'abcdefghijklmnopqrst';
1490
+ A[symbol] = 7;
1491
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1492
+ return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
1493
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1494
+ var T = toObject$1(target);
1495
+ var argumentsLength = arguments.length;
1496
+ var index = 1;
1497
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1498
+ var propertyIsEnumerable = propertyIsEnumerableModule.f;
1499
+ while (argumentsLength > index) {
1500
+ var S = IndexedObject(arguments[index++]);
1501
+ var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
1502
+ var length = keys.length;
1503
+ var j = 0;
1504
+ var key;
1505
+ while (length > j) {
1506
+ key = keys[j++];
1507
+ if (!DESCRIPTORS$4 || call$7(propertyIsEnumerable, S, key)) T[key] = S[key];
1508
+ }
1509
+ } return T;
1510
+ } : $assign;
1511
+
1512
+ var $$b = _export;
1513
+ var assign = objectAssign;
1514
+
1515
+ // `Object.assign` method
1516
+ // https://tc39.es/ecma262/#sec-object.assign
1517
+ // eslint-disable-next-line es/no-object-assign -- required for testing
1518
+ $$b({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1519
+ assign: assign
1520
+ });
1521
+
1522
+ var global$8 = global$j;
1523
+ var classof$4 = classofRaw$2;
1524
+
1525
+ var engineIsNode = classof$4(global$8.process) === 'process';
1526
+
1527
+ var defineProperty$2 = objectDefineProperty.f;
1528
+ var hasOwn$2 = hasOwnProperty_1;
1529
+ var wellKnownSymbol$a = wellKnownSymbol$e;
1530
+
1531
+ var TO_STRING_TAG = wellKnownSymbol$a('toStringTag');
1532
+
1533
+ var setToStringTag$1 = function (target, TAG, STATIC) {
1534
+ if (target && !STATIC) target = target.prototype;
1535
+ if (target && !hasOwn$2(target, TO_STRING_TAG)) {
1536
+ defineProperty$2(target, TO_STRING_TAG, { configurable: true, value: TAG });
1537
+ }
1538
+ };
1539
+
1540
+ var makeBuiltIn = makeBuiltInExports;
1541
+ var defineProperty$1 = objectDefineProperty;
1542
+
1543
+ var defineBuiltInAccessor$2 = function (target, name, descriptor) {
1544
+ if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1545
+ if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1546
+ return defineProperty$1.f(target, name, descriptor);
1547
+ };
1548
+
1549
+ var getBuiltIn$5 = getBuiltIn$9;
1550
+ var defineBuiltInAccessor$1 = defineBuiltInAccessor$2;
1551
+ var wellKnownSymbol$9 = wellKnownSymbol$e;
1552
+ var DESCRIPTORS$3 = descriptors;
1553
+
1554
+ var SPECIES$3 = wellKnownSymbol$9('species');
1555
+
1556
+ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1557
+ var Constructor = getBuiltIn$5(CONSTRUCTOR_NAME);
1558
+
1559
+ if (DESCRIPTORS$3 && Constructor && !Constructor[SPECIES$3]) {
1560
+ defineBuiltInAccessor$1(Constructor, SPECIES$3, {
1561
+ configurable: true,
1562
+ get: function () { return this; }
1563
+ });
1564
+ }
1565
+ };
1566
+
1567
+ var isPrototypeOf$2 = objectIsPrototypeOf;
1568
+
1569
+ var $TypeError$6 = TypeError;
1570
+
1571
+ var anInstance$1 = function (it, Prototype) {
1572
+ if (isPrototypeOf$2(Prototype, it)) return it;
1573
+ throw new $TypeError$6('Incorrect invocation');
1574
+ };
1575
+
1576
+ var uncurryThis$7 = functionUncurryThis;
1577
+ var fails$3 = fails$f;
1578
+ var isCallable$7 = isCallable$k;
1579
+ var classof$3 = classof$7;
1580
+ var getBuiltIn$4 = getBuiltIn$9;
1581
+ var inspectSource$1 = inspectSource$3;
1582
+
1583
+ var noop = function () { /* empty */ };
1584
+ var construct = getBuiltIn$4('Reflect', 'construct');
1585
+ var constructorRegExp = /^\s*(?:class|function)\b/;
1586
+ var exec$1 = uncurryThis$7(constructorRegExp.exec);
1587
+ var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
1588
+
1589
+ var isConstructorModern = function isConstructor(argument) {
1590
+ if (!isCallable$7(argument)) return false;
1591
+ try {
1592
+ construct(noop, [], argument);
1593
+ return true;
1594
+ } catch (error) {
1595
+ return false;
1596
+ }
1597
+ };
1598
+
1599
+ var isConstructorLegacy = function isConstructor(argument) {
1600
+ if (!isCallable$7(argument)) return false;
1601
+ switch (classof$3(argument)) {
1602
+ case 'AsyncFunction':
1603
+ case 'GeneratorFunction':
1604
+ case 'AsyncGeneratorFunction': return false;
1605
+ }
1606
+ try {
1607
+ // we can't check .prototype since constructors produced by .bind haven't it
1608
+ // `Function#toString` throws on some built-it function in some legacy engines
1609
+ // (for example, `DOMQuad` and similar in FF41-)
1610
+ return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource$1(argument));
1611
+ } catch (error) {
1612
+ return true;
1613
+ }
949
1614
  };
950
1615
 
951
- iterate$1.stop = function (result) {
952
- return new Result(true, result);
953
- };
1616
+ isConstructorLegacy.sham = true;
954
1617
 
955
- var wellKnownSymbol$6 = wellKnownSymbol$d;
1618
+ // `IsConstructor` abstract operation
1619
+ // https://tc39.es/ecma262/#sec-isconstructor
1620
+ var isConstructor$2 = !construct || fails$3(function () {
1621
+ var called;
1622
+ return isConstructorModern(isConstructorModern.call)
1623
+ || !isConstructorModern(Object)
1624
+ || !isConstructorModern(function () { called = true; })
1625
+ || called;
1626
+ }) ? isConstructorLegacy : isConstructorModern;
956
1627
 
957
- var ITERATOR = wellKnownSymbol$6('iterator');
958
- var SAFE_CLOSING = false;
1628
+ var isConstructor$1 = isConstructor$2;
1629
+ var tryToString$2 = tryToString$4;
959
1630
 
960
- try {
961
- var called = 0;
962
- var iteratorWithReturn = {
963
- next: function () {
964
- return { done: !!called++ };
965
- },
966
- 'return': function () {
967
- SAFE_CLOSING = true;
968
- }
969
- };
970
- iteratorWithReturn[ITERATOR] = function () {
971
- return this;
972
- };
973
- // eslint-disable-next-line no-throw-literal
974
- Array.from(iteratorWithReturn, function () { throw 2; });
975
- } catch (error) { /* empty */ }
1631
+ var $TypeError$5 = TypeError;
976
1632
 
977
- var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
978
- if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
979
- var ITERATION_SUPPORT = false;
980
- try {
981
- var object = {};
982
- object[ITERATOR] = function () {
983
- return {
984
- next: function () {
985
- return { done: ITERATION_SUPPORT = true };
986
- }
987
- };
988
- };
989
- exec(object);
990
- } catch (error) { /* empty */ }
991
- return ITERATION_SUPPORT;
1633
+ // `Assert: IsConstructor(argument) is true`
1634
+ var aConstructor$1 = function (argument) {
1635
+ if (isConstructor$1(argument)) return argument;
1636
+ throw new $TypeError$5(tryToString$2(argument) + ' is not a constructor');
992
1637
  };
993
1638
 
994
- var anObject$3 = anObject$8;
995
- var aFunction$2 = aFunction$4;
996
- var wellKnownSymbol$5 = wellKnownSymbol$d;
1639
+ var anObject$6 = anObject$9;
1640
+ var aConstructor = aConstructor$1;
1641
+ var isNullOrUndefined$1 = isNullOrUndefined$4;
1642
+ var wellKnownSymbol$8 = wellKnownSymbol$e;
997
1643
 
998
- var SPECIES$2 = wellKnownSymbol$5('species');
1644
+ var SPECIES$2 = wellKnownSymbol$8('species');
999
1645
 
1000
1646
  // `SpeciesConstructor` abstract operation
1001
- // https://tc39.github.io/ecma262/#sec-speciesconstructor
1647
+ // https://tc39.es/ecma262/#sec-speciesconstructor
1002
1648
  var speciesConstructor$1 = function (O, defaultConstructor) {
1003
- var C = anObject$3(O).constructor;
1649
+ var C = anObject$6(O).constructor;
1004
1650
  var S;
1005
- return C === undefined || (S = anObject$3(C)[SPECIES$2]) == undefined ? defaultConstructor : aFunction$2(S);
1651
+ return C === undefined || isNullOrUndefined$1(S = anObject$6(C)[SPECIES$2]) ? defaultConstructor : aConstructor(S);
1652
+ };
1653
+
1654
+ var classofRaw = classofRaw$2;
1655
+ var uncurryThis$6 = functionUncurryThis;
1656
+
1657
+ var functionUncurryThisClause = function (fn) {
1658
+ // Nashorn bug:
1659
+ // https://github.com/zloirock/core-js/issues/1128
1660
+ // https://github.com/zloirock/core-js/issues/1130
1661
+ if (classofRaw(fn) === 'Function') return uncurryThis$6(fn);
1006
1662
  };
1007
1663
 
1008
- var getBuiltIn$2 = getBuiltIn$5;
1664
+ var uncurryThis$5 = functionUncurryThisClause;
1665
+ var aCallable$5 = aCallable$8;
1666
+ var NATIVE_BIND = functionBindNative;
1009
1667
 
1010
- var html$2 = getBuiltIn$2('document', 'documentElement');
1668
+ var bind$5 = uncurryThis$5(uncurryThis$5.bind);
1669
+
1670
+ // optional / simple context binding
1671
+ var functionBindContext = function (fn, that) {
1672
+ aCallable$5(fn);
1673
+ return that === undefined ? fn : NATIVE_BIND ? bind$5(fn, that) : function (/* ...args */) {
1674
+ return fn.apply(that, arguments);
1675
+ };
1676
+ };
1011
1677
 
1012
- var getBuiltIn$1 = getBuiltIn$5;
1678
+ var getBuiltIn$3 = getBuiltIn$9;
1013
1679
 
1014
- var engineUserAgent = getBuiltIn$1('navigator', 'userAgent') || '';
1680
+ var html$2 = getBuiltIn$3('document', 'documentElement');
1015
1681
 
1016
- var userAgent$1 = engineUserAgent;
1682
+ var uncurryThis$4 = functionUncurryThis;
1017
1683
 
1018
- var engineIsIos = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent$1);
1684
+ var arraySlice$2 = uncurryThis$4([].slice);
1019
1685
 
1020
- var global$6 = global$i;
1021
- var fails$1 = fails$8;
1022
- var classof$4 = classofRaw$1;
1023
- var bind$2 = functionBindContext;
1686
+ var $TypeError$4 = TypeError;
1687
+
1688
+ var validateArgumentsLength$1 = function (passed, required) {
1689
+ if (passed < required) throw new $TypeError$4('Not enough arguments');
1690
+ return passed;
1691
+ };
1692
+
1693
+ var userAgent$2 = engineUserAgent;
1694
+
1695
+ // eslint-disable-next-line redos/no-vulnerable -- safe
1696
+ var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
1697
+
1698
+ var global$7 = global$j;
1699
+ var apply$1 = functionApply;
1700
+ var bind$4 = functionBindContext;
1701
+ var isCallable$6 = isCallable$k;
1702
+ var hasOwn$1 = hasOwnProperty_1;
1703
+ var fails$2 = fails$f;
1024
1704
  var html$1 = html$2;
1705
+ var arraySlice$1 = arraySlice$2;
1025
1706
  var createElement = documentCreateElement$1;
1707
+ var validateArgumentsLength = validateArgumentsLength$1;
1026
1708
  var IS_IOS$1 = engineIsIos;
1027
-
1028
- var location = global$6.location;
1029
- var set = global$6.setImmediate;
1030
- var clear = global$6.clearImmediate;
1031
- var process$3 = global$6.process;
1032
- var MessageChannel = global$6.MessageChannel;
1033
- var Dispatch = global$6.Dispatch;
1709
+ var IS_NODE$3 = engineIsNode;
1710
+
1711
+ var set = global$7.setImmediate;
1712
+ var clear = global$7.clearImmediate;
1713
+ var process$2 = global$7.process;
1714
+ var Dispatch = global$7.Dispatch;
1715
+ var Function$1 = global$7.Function;
1716
+ var MessageChannel = global$7.MessageChannel;
1717
+ var String$1 = global$7.String;
1034
1718
  var counter = 0;
1035
- var queue = {};
1719
+ var queue$2 = {};
1036
1720
  var ONREADYSTATECHANGE = 'onreadystatechange';
1037
- var defer, channel, port;
1721
+ var $location, defer, channel, port;
1722
+
1723
+ fails$2(function () {
1724
+ // Deno throws a ReferenceError on `location` access without `--location` flag
1725
+ $location = global$7.location;
1726
+ });
1038
1727
 
1039
1728
  var run = function (id) {
1040
- // eslint-disable-next-line no-prototype-builtins
1041
- if (queue.hasOwnProperty(id)) {
1042
- var fn = queue[id];
1043
- delete queue[id];
1729
+ if (hasOwn$1(queue$2, id)) {
1730
+ var fn = queue$2[id];
1731
+ delete queue$2[id];
1044
1732
  fn();
1045
1733
  }
1046
1734
  };
@@ -1051,35 +1739,34 @@ var runner = function (id) {
1051
1739
  };
1052
1740
  };
1053
1741
 
1054
- var listener = function (event) {
1742
+ var eventListener = function (event) {
1055
1743
  run(event.data);
1056
1744
  };
1057
1745
 
1058
- var post = function (id) {
1746
+ var globalPostMessageDefer = function (id) {
1059
1747
  // old engines have not location.origin
1060
- global$6.postMessage(id + '', location.protocol + '//' + location.host);
1748
+ global$7.postMessage(String$1(id), $location.protocol + '//' + $location.host);
1061
1749
  };
1062
1750
 
1063
1751
  // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
1064
1752
  if (!set || !clear) {
1065
- set = function setImmediate(fn) {
1066
- var args = [];
1067
- var i = 1;
1068
- while (arguments.length > i) args.push(arguments[i++]);
1069
- queue[++counter] = function () {
1070
- // eslint-disable-next-line no-new-func
1071
- (typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args);
1753
+ set = function setImmediate(handler) {
1754
+ validateArgumentsLength(arguments.length, 1);
1755
+ var fn = isCallable$6(handler) ? handler : Function$1(handler);
1756
+ var args = arraySlice$1(arguments, 1);
1757
+ queue$2[++counter] = function () {
1758
+ apply$1(fn, undefined, args);
1072
1759
  };
1073
1760
  defer(counter);
1074
1761
  return counter;
1075
1762
  };
1076
1763
  clear = function clearImmediate(id) {
1077
- delete queue[id];
1764
+ delete queue$2[id];
1078
1765
  };
1079
1766
  // Node.js 0.8-
1080
- if (classof$4(process$3) == 'process') {
1767
+ if (IS_NODE$3) {
1081
1768
  defer = function (id) {
1082
- process$3.nextTick(runner(id));
1769
+ process$2.nextTick(runner(id));
1083
1770
  };
1084
1771
  // Sphere (JS game engine) Dispatch API
1085
1772
  } else if (Dispatch && Dispatch.now) {
@@ -1091,19 +1778,19 @@ if (!set || !clear) {
1091
1778
  } else if (MessageChannel && !IS_IOS$1) {
1092
1779
  channel = new MessageChannel();
1093
1780
  port = channel.port2;
1094
- channel.port1.onmessage = listener;
1095
- defer = bind$2(port.postMessage, port, 1);
1781
+ channel.port1.onmessage = eventListener;
1782
+ defer = bind$4(port.postMessage, port);
1096
1783
  // Browsers with postMessage, skip WebWorkers
1097
1784
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
1098
1785
  } else if (
1099
- global$6.addEventListener &&
1100
- typeof postMessage == 'function' &&
1101
- !global$6.importScripts &&
1102
- !fails$1(post) &&
1103
- location.protocol !== 'file:'
1786
+ global$7.addEventListener &&
1787
+ isCallable$6(global$7.postMessage) &&
1788
+ !global$7.importScripts &&
1789
+ $location && $location.protocol !== 'file:' &&
1790
+ !fails$2(globalPostMessageDefer)
1104
1791
  ) {
1105
- defer = post;
1106
- global$6.addEventListener('message', listener, false);
1792
+ defer = globalPostMessageDefer;
1793
+ global$7.addEventListener('message', eventListener, false);
1107
1794
  // IE8-
1108
1795
  } else if (ONREADYSTATECHANGE in createElement('script')) {
1109
1796
  defer = function (id) {
@@ -1125,196 +1812,266 @@ var task$1 = {
1125
1812
  clear: clear
1126
1813
  };
1127
1814
 
1128
- var global$5 = global$i;
1129
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1130
- var classof$3 = classofRaw$1;
1815
+ var global$6 = global$j;
1816
+ var DESCRIPTORS$2 = descriptors;
1817
+
1818
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1819
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1820
+
1821
+ // Avoid NodeJS experimental warning
1822
+ var safeGetBuiltIn$1 = function (name) {
1823
+ if (!DESCRIPTORS$2) return global$6[name];
1824
+ var descriptor = getOwnPropertyDescriptor(global$6, name);
1825
+ return descriptor && descriptor.value;
1826
+ };
1827
+
1828
+ var Queue$2 = function () {
1829
+ this.head = null;
1830
+ this.tail = null;
1831
+ };
1832
+
1833
+ Queue$2.prototype = {
1834
+ add: function (item) {
1835
+ var entry = { item: item, next: null };
1836
+ var tail = this.tail;
1837
+ if (tail) tail.next = entry;
1838
+ else this.head = entry;
1839
+ this.tail = entry;
1840
+ },
1841
+ get: function () {
1842
+ var entry = this.head;
1843
+ if (entry) {
1844
+ var next = this.head = entry.next;
1845
+ if (next === null) this.tail = null;
1846
+ return entry.item;
1847
+ }
1848
+ }
1849
+ };
1850
+
1851
+ var queue$1 = Queue$2;
1852
+
1853
+ var userAgent$1 = engineUserAgent;
1854
+
1855
+ var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && typeof Pebble != 'undefined';
1856
+
1857
+ var userAgent = engineUserAgent;
1858
+
1859
+ var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
1860
+
1861
+ var global$5 = global$j;
1862
+ var safeGetBuiltIn = safeGetBuiltIn$1;
1863
+ var bind$3 = functionBindContext;
1131
1864
  var macrotask = task$1.set;
1865
+ var Queue$1 = queue$1;
1132
1866
  var IS_IOS = engineIsIos;
1867
+ var IS_IOS_PEBBLE = engineIsIosPebble;
1868
+ var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
1869
+ var IS_NODE$2 = engineIsNode;
1133
1870
 
1134
1871
  var MutationObserver = global$5.MutationObserver || global$5.WebKitMutationObserver;
1135
- var process$2 = global$5.process;
1872
+ var document$2 = global$5.document;
1873
+ var process$1 = global$5.process;
1136
1874
  var Promise$1 = global$5.Promise;
1137
- var IS_NODE$1 = classof$3(process$2) == 'process';
1138
- // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
1139
- var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$5, 'queueMicrotask');
1140
- var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
1141
-
1142
- var flush, head, last, notify$1, toggle, node, promise, then;
1875
+ var microtask$1 = safeGetBuiltIn('queueMicrotask');
1876
+ var notify$1, toggle, node, promise, then;
1143
1877
 
1144
1878
  // modern engines have queueMicrotask method
1145
- if (!queueMicrotask) {
1146
- flush = function () {
1879
+ if (!microtask$1) {
1880
+ var queue = new Queue$1();
1881
+
1882
+ var flush = function () {
1147
1883
  var parent, fn;
1148
- if (IS_NODE$1 && (parent = process$2.domain)) parent.exit();
1149
- while (head) {
1150
- fn = head.fn;
1151
- head = head.next;
1152
- try {
1153
- fn();
1154
- } catch (error) {
1155
- if (head) notify$1();
1156
- else last = undefined;
1157
- throw error;
1158
- }
1159
- } last = undefined;
1884
+ if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
1885
+ while (fn = queue.get()) try {
1886
+ fn();
1887
+ } catch (error) {
1888
+ if (queue.head) notify$1();
1889
+ throw error;
1890
+ }
1160
1891
  if (parent) parent.enter();
1161
1892
  };
1162
1893
 
1163
- // Node.js
1164
- if (IS_NODE$1) {
1165
- notify$1 = function () {
1166
- process$2.nextTick(flush);
1167
- };
1168
1894
  // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
1169
- } else if (MutationObserver && !IS_IOS) {
1895
+ // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
1896
+ if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
1170
1897
  toggle = true;
1171
- node = document.createTextNode('');
1898
+ node = document$2.createTextNode('');
1172
1899
  new MutationObserver(flush).observe(node, { characterData: true });
1173
1900
  notify$1 = function () {
1174
1901
  node.data = toggle = !toggle;
1175
1902
  };
1176
1903
  // environments with maybe non-completely correct, but existent Promise
1177
- } else if (Promise$1 && Promise$1.resolve) {
1904
+ } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
1178
1905
  // Promise.resolve without an argument throws an error in LG WebOS 2
1179
1906
  promise = Promise$1.resolve(undefined);
1180
- then = promise.then;
1907
+ // workaround of WebKit ~ iOS Safari 10.1 bug
1908
+ promise.constructor = Promise$1;
1909
+ then = bind$3(promise.then, promise);
1181
1910
  notify$1 = function () {
1182
- then.call(promise, flush);
1911
+ then(flush);
1912
+ };
1913
+ // Node.js without promises
1914
+ } else if (IS_NODE$2) {
1915
+ notify$1 = function () {
1916
+ process$1.nextTick(flush);
1183
1917
  };
1184
1918
  // for other environments - macrotask based on:
1185
1919
  // - setImmediate
1186
1920
  // - MessageChannel
1187
- // - window.postMessag
1921
+ // - window.postMessage
1188
1922
  // - onreadystatechange
1189
1923
  // - setTimeout
1190
1924
  } else {
1925
+ // `webpack` dev server bug on IE global methods - use bind(fn, global)
1926
+ macrotask = bind$3(macrotask, global$5);
1191
1927
  notify$1 = function () {
1192
- // strange IE + webpack dev server bug - use .call(global)
1193
- macrotask.call(global$5, flush);
1928
+ macrotask(flush);
1194
1929
  };
1195
1930
  }
1931
+
1932
+ microtask$1 = function (fn) {
1933
+ if (!queue.head) notify$1();
1934
+ queue.add(fn);
1935
+ };
1196
1936
  }
1197
1937
 
1198
- var microtask$1 = queueMicrotask || function (fn) {
1199
- var task = { fn: fn, next: undefined };
1200
- if (last) last.next = task;
1201
- if (!head) {
1202
- head = task;
1203
- notify$1();
1204
- } last = task;
1938
+ var microtask_1 = microtask$1;
1939
+
1940
+ var hostReportErrors$1 = function (a, b) {
1941
+ try {
1942
+ // eslint-disable-next-line no-console -- safe
1943
+ arguments.length === 1 ? console.error(a) : console.error(a, b);
1944
+ } catch (error) { /* empty */ }
1945
+ };
1946
+
1947
+ var perform$3 = function (exec) {
1948
+ try {
1949
+ return { error: false, value: exec() };
1950
+ } catch (error) {
1951
+ return { error: true, value: error };
1952
+ }
1953
+ };
1954
+
1955
+ var global$4 = global$j;
1956
+
1957
+ var promiseNativeConstructor = global$4.Promise;
1958
+
1959
+ /* global Deno -- Deno case */
1960
+ var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
1961
+
1962
+ var IS_DENO$1 = engineIsDeno;
1963
+ var IS_NODE$1 = engineIsNode;
1964
+
1965
+ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
1966
+ && typeof window == 'object'
1967
+ && typeof document == 'object';
1968
+
1969
+ var global$3 = global$j;
1970
+ var NativePromiseConstructor$3 = promiseNativeConstructor;
1971
+ var isCallable$5 = isCallable$k;
1972
+ var isForced = isForced_1;
1973
+ var inspectSource = inspectSource$3;
1974
+ var wellKnownSymbol$7 = wellKnownSymbol$e;
1975
+ var IS_BROWSER = engineIsBrowser;
1976
+ var IS_DENO = engineIsDeno;
1977
+ var V8_VERSION = engineV8Version;
1978
+
1979
+ NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
1980
+ var SPECIES$1 = wellKnownSymbol$7('species');
1981
+ var SUBCLASSING = false;
1982
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$5(global$3.PromiseRejectionEvent);
1983
+
1984
+ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
1985
+ var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
1986
+ var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
1987
+ // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
1988
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
1989
+ // We can't detect it synchronously, so just check versions
1990
+ if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
1991
+ // We can't use @@species feature detection in V8 since it causes
1992
+ // deoptimization and performance degradation
1993
+ // https://github.com/zloirock/core-js/issues/679
1994
+ if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
1995
+ // Detect correctness of subclassing with @@species support
1996
+ var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
1997
+ var FakePromise = function (exec) {
1998
+ exec(function () { /* empty */ }, function () { /* empty */ });
1999
+ };
2000
+ var constructor = promise.constructor = {};
2001
+ constructor[SPECIES$1] = FakePromise;
2002
+ SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
2003
+ if (!SUBCLASSING) return true;
2004
+ // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
2005
+ } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
2006
+ });
2007
+
2008
+ var promiseConstructorDetection = {
2009
+ CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
2010
+ REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
2011
+ SUBCLASSING: SUBCLASSING
1205
2012
  };
1206
2013
 
1207
2014
  var newPromiseCapability$2 = {};
1208
2015
 
1209
- var aFunction$1 = aFunction$4;
2016
+ var aCallable$4 = aCallable$8;
2017
+
2018
+ var $TypeError$3 = TypeError;
1210
2019
 
1211
2020
  var PromiseCapability = function (C) {
1212
2021
  var resolve, reject;
1213
2022
  this.promise = new C(function ($$resolve, $$reject) {
1214
- if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
2023
+ if (resolve !== undefined || reject !== undefined) throw new $TypeError$3('Bad Promise constructor');
1215
2024
  resolve = $$resolve;
1216
2025
  reject = $$reject;
1217
2026
  });
1218
- this.resolve = aFunction$1(resolve);
1219
- this.reject = aFunction$1(reject);
2027
+ this.resolve = aCallable$4(resolve);
2028
+ this.reject = aCallable$4(reject);
1220
2029
  };
1221
2030
 
1222
- // 25.4.1.5 NewPromiseCapability(C)
2031
+ // `NewPromiseCapability` abstract operation
2032
+ // https://tc39.es/ecma262/#sec-newpromisecapability
1223
2033
  newPromiseCapability$2.f = function (C) {
1224
2034
  return new PromiseCapability(C);
1225
2035
  };
1226
2036
 
1227
- var anObject$2 = anObject$8;
1228
- var isObject$4 = isObject$9;
1229
- var newPromiseCapability$1 = newPromiseCapability$2;
1230
-
1231
- var promiseResolve$1 = function (C, x) {
1232
- anObject$2(C);
1233
- if (isObject$4(x) && x.constructor === C) return x;
1234
- var promiseCapability = newPromiseCapability$1.f(C);
1235
- var resolve = promiseCapability.resolve;
1236
- resolve(x);
1237
- return promiseCapability.promise;
1238
- };
1239
-
1240
- var global$4 = global$i;
1241
-
1242
- var hostReportErrors$1 = function (a, b) {
1243
- var console = global$4.console;
1244
- if (console && console.error) {
1245
- arguments.length === 1 ? console.error(a) : console.error(a, b);
1246
- }
1247
- };
1248
-
1249
- var perform$1 = function (exec) {
1250
- try {
1251
- return { error: false, value: exec() };
1252
- } catch (error) {
1253
- return { error: true, value: error };
1254
- }
1255
- };
1256
-
1257
- var global$3 = global$i;
1258
- var userAgent = engineUserAgent;
1259
-
1260
- var process$1 = global$3.process;
1261
- var versions = process$1 && process$1.versions;
1262
- var v8 = versions && versions.v8;
1263
- var match, version;
1264
-
1265
- if (v8) {
1266
- match = v8.split('.');
1267
- version = match[0] + match[1];
1268
- } else if (userAgent) {
1269
- match = userAgent.match(/Edge\/(\d+)/);
1270
- if (!match || match[1] >= 74) {
1271
- match = userAgent.match(/Chrome\/(\d+)/);
1272
- if (match) version = match[1];
1273
- }
1274
- }
1275
-
1276
- var engineV8Version = version && +version;
1277
-
1278
- var $$4 = _export;
1279
- var global$2 = global$i;
1280
- var getBuiltIn = getBuiltIn$5;
1281
- var NativePromise = nativePromiseConstructor;
1282
- var redefine = redefine$3.exports;
1283
- var redefineAll = redefineAll$1;
2037
+ var $$a = _export;
2038
+ var IS_NODE = engineIsNode;
2039
+ var global$2 = global$j;
2040
+ var call$6 = functionCall;
2041
+ var defineBuiltIn$1 = defineBuiltIn$3;
2042
+ var setPrototypeOf = objectSetPrototypeOf;
1284
2043
  var setToStringTag = setToStringTag$1;
1285
2044
  var setSpecies = setSpecies$1;
1286
- var isObject$3 = isObject$9;
1287
- var aFunction = aFunction$4;
2045
+ var aCallable$3 = aCallable$8;
2046
+ var isCallable$4 = isCallable$k;
2047
+ var isObject$3 = isObject$d;
1288
2048
  var anInstance = anInstance$1;
1289
- var classof$2 = classofRaw$1;
1290
- var inspectSource = inspectSource$3;
1291
- var iterate = iterate$2.exports;
1292
- var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
1293
2049
  var speciesConstructor = speciesConstructor$1;
1294
2050
  var task = task$1.set;
1295
- var microtask = microtask$1;
1296
- var promiseResolve = promiseResolve$1;
2051
+ var microtask = microtask_1;
1297
2052
  var hostReportErrors = hostReportErrors$1;
1298
- var newPromiseCapabilityModule = newPromiseCapability$2;
1299
- var perform = perform$1;
2053
+ var perform$2 = perform$3;
2054
+ var Queue = queue$1;
1300
2055
  var InternalStateModule = internalState;
1301
- var isForced = isForced_1;
1302
- var wellKnownSymbol$4 = wellKnownSymbol$d;
1303
- var V8_VERSION = engineV8Version;
2056
+ var NativePromiseConstructor$2 = promiseNativeConstructor;
2057
+ var PromiseConstructorDetection = promiseConstructorDetection;
2058
+ var newPromiseCapabilityModule$3 = newPromiseCapability$2;
1304
2059
 
1305
- var SPECIES$1 = wellKnownSymbol$4('species');
1306
2060
  var PROMISE = 'Promise';
1307
- var getInternalState = InternalStateModule.get;
1308
- var setInternalState = InternalStateModule.set;
2061
+ var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
2062
+ var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
2063
+ var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
1309
2064
  var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
1310
- var PromiseConstructor = NativePromise;
2065
+ var setInternalState = InternalStateModule.set;
2066
+ var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
2067
+ var PromiseConstructor = NativePromiseConstructor$2;
2068
+ var PromisePrototype = NativePromisePrototype$1;
1311
2069
  var TypeError$1 = global$2.TypeError;
1312
2070
  var document$1 = global$2.document;
1313
2071
  var process = global$2.process;
1314
- var $fetch = getBuiltIn('fetch');
1315
- var newPromiseCapability = newPromiseCapabilityModule.f;
1316
- var newGenericPromiseCapability = newPromiseCapability;
1317
- var IS_NODE = classof$2(process) == 'process';
2072
+ var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
2073
+ var newGenericPromiseCapability = newPromiseCapability$1;
2074
+
1318
2075
  var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$2.dispatchEvent);
1319
2076
  var UNHANDLED_REJECTION = 'unhandledrejection';
1320
2077
  var REJECTION_HANDLED = 'rejectionhandled';
@@ -1323,87 +2080,61 @@ var FULFILLED = 1;
1323
2080
  var REJECTED = 2;
1324
2081
  var HANDLED = 1;
1325
2082
  var UNHANDLED = 2;
1326
- var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
1327
-
1328
- var FORCED = isForced(PROMISE, function () {
1329
- var GLOBAL_CORE_JS_PROMISE = inspectSource(PromiseConstructor) !== String(PromiseConstructor);
1330
- if (!GLOBAL_CORE_JS_PROMISE) {
1331
- // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
1332
- // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
1333
- // We can't detect it synchronously, so just check versions
1334
- if (V8_VERSION === 66) return true;
1335
- // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
1336
- if (!IS_NODE && typeof PromiseRejectionEvent != 'function') return true;
1337
- }
1338
- // We can't use @@species feature detection in V8 since it causes
1339
- // deoptimization and performance degradation
1340
- // https://github.com/zloirock/core-js/issues/679
1341
- if (V8_VERSION >= 51 && /native code/.test(PromiseConstructor)) return false;
1342
- // Detect correctness of subclassing with @@species support
1343
- var promise = PromiseConstructor.resolve(1);
1344
- var FakePromise = function (exec) {
1345
- exec(function () { /* empty */ }, function () { /* empty */ });
1346
- };
1347
- var constructor = promise.constructor = {};
1348
- constructor[SPECIES$1] = FakePromise;
1349
- return !(promise.then(function () { /* empty */ }) instanceof FakePromise);
1350
- });
1351
2083
 
1352
- var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
1353
- PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
1354
- });
2084
+ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
1355
2085
 
1356
2086
  // helpers
1357
2087
  var isThenable = function (it) {
1358
2088
  var then;
1359
- return isObject$3(it) && typeof (then = it.then) == 'function' ? then : false;
2089
+ return isObject$3(it) && isCallable$4(then = it.then) ? then : false;
2090
+ };
2091
+
2092
+ var callReaction = function (reaction, state) {
2093
+ var value = state.value;
2094
+ var ok = state.state === FULFILLED;
2095
+ var handler = ok ? reaction.ok : reaction.fail;
2096
+ var resolve = reaction.resolve;
2097
+ var reject = reaction.reject;
2098
+ var domain = reaction.domain;
2099
+ var result, then, exited;
2100
+ try {
2101
+ if (handler) {
2102
+ if (!ok) {
2103
+ if (state.rejection === UNHANDLED) onHandleUnhandled(state);
2104
+ state.rejection = HANDLED;
2105
+ }
2106
+ if (handler === true) result = value;
2107
+ else {
2108
+ if (domain) domain.enter();
2109
+ result = handler(value); // can throw
2110
+ if (domain) {
2111
+ domain.exit();
2112
+ exited = true;
2113
+ }
2114
+ }
2115
+ if (result === reaction.promise) {
2116
+ reject(new TypeError$1('Promise-chain cycle'));
2117
+ } else if (then = isThenable(result)) {
2118
+ call$6(then, result, resolve, reject);
2119
+ } else resolve(result);
2120
+ } else reject(value);
2121
+ } catch (error) {
2122
+ if (domain && !exited) domain.exit();
2123
+ reject(error);
2124
+ }
1360
2125
  };
1361
2126
 
1362
- var notify = function (promise, state, isReject) {
2127
+ var notify = function (state, isReject) {
1363
2128
  if (state.notified) return;
1364
2129
  state.notified = true;
1365
- var chain = state.reactions;
1366
2130
  microtask(function () {
1367
- var value = state.value;
1368
- var ok = state.state == FULFILLED;
1369
- var index = 0;
1370
- // variable length - can't use forEach
1371
- while (chain.length > index) {
1372
- var reaction = chain[index++];
1373
- var handler = ok ? reaction.ok : reaction.fail;
1374
- var resolve = reaction.resolve;
1375
- var reject = reaction.reject;
1376
- var domain = reaction.domain;
1377
- var result, then, exited;
1378
- try {
1379
- if (handler) {
1380
- if (!ok) {
1381
- if (state.rejection === UNHANDLED) onHandleUnhandled(promise, state);
1382
- state.rejection = HANDLED;
1383
- }
1384
- if (handler === true) result = value;
1385
- else {
1386
- if (domain) domain.enter();
1387
- result = handler(value); // can throw
1388
- if (domain) {
1389
- domain.exit();
1390
- exited = true;
1391
- }
1392
- }
1393
- if (result === reaction.promise) {
1394
- reject(TypeError$1('Promise-chain cycle'));
1395
- } else if (then = isThenable(result)) {
1396
- then.call(result, resolve, reject);
1397
- } else resolve(result);
1398
- } else reject(value);
1399
- } catch (error) {
1400
- if (domain && !exited) domain.exit();
1401
- reject(error);
1402
- }
2131
+ var reactions = state.reactions;
2132
+ var reaction;
2133
+ while (reaction = reactions.get()) {
2134
+ callReaction(reaction, state);
1403
2135
  }
1404
- state.reactions = [];
1405
2136
  state.notified = false;
1406
- if (isReject && !state.rejection) onUnhandled(promise, state);
2137
+ if (isReject && !state.rejection) onUnhandled(state);
1407
2138
  });
1408
2139
  };
1409
2140
 
@@ -1416,17 +2147,18 @@ var dispatchEvent = function (name, promise, reason) {
1416
2147
  event.initEvent(name, false, true);
1417
2148
  global$2.dispatchEvent(event);
1418
2149
  } else event = { promise: promise, reason: reason };
1419
- if (handler = global$2['on' + name]) handler(event);
2150
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$2['on' + name])) handler(event);
1420
2151
  else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
1421
2152
  };
1422
2153
 
1423
- var onUnhandled = function (promise, state) {
1424
- task.call(global$2, function () {
2154
+ var onUnhandled = function (state) {
2155
+ call$6(task, global$2, function () {
2156
+ var promise = state.facade;
1425
2157
  var value = state.value;
1426
2158
  var IS_UNHANDLED = isUnhandled(state);
1427
2159
  var result;
1428
2160
  if (IS_UNHANDLED) {
1429
- result = perform(function () {
2161
+ result = perform$2(function () {
1430
2162
  if (IS_NODE) {
1431
2163
  process.emit('unhandledRejection', value, promise);
1432
2164
  } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
@@ -1442,187 +2174,362 @@ var isUnhandled = function (state) {
1442
2174
  return state.rejection !== HANDLED && !state.parent;
1443
2175
  };
1444
2176
 
1445
- var onHandleUnhandled = function (promise, state) {
1446
- task.call(global$2, function () {
2177
+ var onHandleUnhandled = function (state) {
2178
+ call$6(task, global$2, function () {
2179
+ var promise = state.facade;
1447
2180
  if (IS_NODE) {
1448
2181
  process.emit('rejectionHandled', promise);
1449
2182
  } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
1450
2183
  });
1451
2184
  };
1452
2185
 
1453
- var bind$1 = function (fn, promise, state, unwrap) {
2186
+ var bind$2 = function (fn, state, unwrap) {
1454
2187
  return function (value) {
1455
- fn(promise, state, value, unwrap);
2188
+ fn(state, value, unwrap);
1456
2189
  };
1457
2190
  };
1458
2191
 
1459
- var internalReject = function (promise, state, value, unwrap) {
2192
+ var internalReject = function (state, value, unwrap) {
1460
2193
  if (state.done) return;
1461
2194
  state.done = true;
1462
2195
  if (unwrap) state = unwrap;
1463
2196
  state.value = value;
1464
2197
  state.state = REJECTED;
1465
- notify(promise, state, true);
2198
+ notify(state, true);
1466
2199
  };
1467
2200
 
1468
- var internalResolve = function (promise, state, value, unwrap) {
2201
+ var internalResolve = function (state, value, unwrap) {
1469
2202
  if (state.done) return;
1470
2203
  state.done = true;
1471
2204
  if (unwrap) state = unwrap;
1472
2205
  try {
1473
- if (promise === value) throw TypeError$1("Promise can't be resolved itself");
2206
+ if (state.facade === value) throw new TypeError$1("Promise can't be resolved itself");
1474
2207
  var then = isThenable(value);
1475
2208
  if (then) {
1476
2209
  microtask(function () {
1477
2210
  var wrapper = { done: false };
1478
2211
  try {
1479
- then.call(value,
1480
- bind$1(internalResolve, promise, wrapper, state),
1481
- bind$1(internalReject, promise, wrapper, state)
2212
+ call$6(then, value,
2213
+ bind$2(internalResolve, wrapper, state),
2214
+ bind$2(internalReject, wrapper, state)
1482
2215
  );
1483
2216
  } catch (error) {
1484
- internalReject(promise, wrapper, error, state);
2217
+ internalReject(wrapper, error, state);
1485
2218
  }
1486
2219
  });
1487
2220
  } else {
1488
2221
  state.value = value;
1489
2222
  state.state = FULFILLED;
1490
- notify(promise, state, false);
2223
+ notify(state, false);
1491
2224
  }
1492
2225
  } catch (error) {
1493
- internalReject(promise, { done: false }, error, state);
2226
+ internalReject({ done: false }, error, state);
1494
2227
  }
1495
2228
  };
1496
2229
 
1497
2230
  // constructor polyfill
1498
- if (FORCED) {
2231
+ if (FORCED_PROMISE_CONSTRUCTOR$4) {
1499
2232
  // 25.4.3.1 Promise(executor)
1500
2233
  PromiseConstructor = function Promise(executor) {
1501
- anInstance(this, PromiseConstructor, PROMISE);
1502
- aFunction(executor);
1503
- Internal.call(this);
1504
- var state = getInternalState(this);
2234
+ anInstance(this, PromisePrototype);
2235
+ aCallable$3(executor);
2236
+ call$6(Internal, this);
2237
+ var state = getInternalPromiseState(this);
1505
2238
  try {
1506
- executor(bind$1(internalResolve, this, state), bind$1(internalReject, this, state));
2239
+ executor(bind$2(internalResolve, state), bind$2(internalReject, state));
1507
2240
  } catch (error) {
1508
- internalReject(this, state, error);
2241
+ internalReject(state, error);
1509
2242
  }
1510
2243
  };
1511
- // eslint-disable-next-line no-unused-vars
2244
+
2245
+ PromisePrototype = PromiseConstructor.prototype;
2246
+
2247
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
1512
2248
  Internal = function Promise(executor) {
1513
2249
  setInternalState(this, {
1514
2250
  type: PROMISE,
1515
2251
  done: false,
1516
2252
  notified: false,
1517
2253
  parent: false,
1518
- reactions: [],
2254
+ reactions: new Queue(),
1519
2255
  rejection: false,
1520
2256
  state: PENDING,
1521
2257
  value: undefined
1522
2258
  });
1523
2259
  };
1524
- Internal.prototype = redefineAll(PromiseConstructor.prototype, {
1525
- // `Promise.prototype.then` method
1526
- // https://tc39.github.io/ecma262/#sec-promise.prototype.then
1527
- then: function then(onFulfilled, onRejected) {
1528
- var state = getInternalPromiseState(this);
1529
- var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
1530
- reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
1531
- reaction.fail = typeof onRejected == 'function' && onRejected;
1532
- reaction.domain = IS_NODE ? process.domain : undefined;
1533
- state.parent = true;
1534
- state.reactions.push(reaction);
1535
- if (state.state != PENDING) notify(this, state, false);
1536
- return reaction.promise;
1537
- },
1538
- // `Promise.prototype.catch` method
1539
- // https://tc39.github.io/ecma262/#sec-promise.prototype.catch
1540
- 'catch': function (onRejected) {
1541
- return this.then(undefined, onRejected);
1542
- }
2260
+
2261
+ // `Promise.prototype.then` method
2262
+ // https://tc39.es/ecma262/#sec-promise.prototype.then
2263
+ Internal.prototype = defineBuiltIn$1(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
2264
+ var state = getInternalPromiseState(this);
2265
+ var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
2266
+ state.parent = true;
2267
+ reaction.ok = isCallable$4(onFulfilled) ? onFulfilled : true;
2268
+ reaction.fail = isCallable$4(onRejected) && onRejected;
2269
+ reaction.domain = IS_NODE ? process.domain : undefined;
2270
+ if (state.state === PENDING) state.reactions.add(reaction);
2271
+ else microtask(function () {
2272
+ callReaction(reaction, state);
2273
+ });
2274
+ return reaction.promise;
1543
2275
  });
2276
+
1544
2277
  OwnPromiseCapability = function () {
1545
2278
  var promise = new Internal();
1546
- var state = getInternalState(promise);
2279
+ var state = getInternalPromiseState(promise);
1547
2280
  this.promise = promise;
1548
- this.resolve = bind$1(internalResolve, promise, state);
1549
- this.reject = bind$1(internalReject, promise, state);
2281
+ this.resolve = bind$2(internalResolve, state);
2282
+ this.reject = bind$2(internalReject, state);
1550
2283
  };
1551
- newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
2284
+
2285
+ newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
1552
2286
  return C === PromiseConstructor || C === PromiseWrapper
1553
2287
  ? new OwnPromiseCapability(C)
1554
2288
  : newGenericPromiseCapability(C);
1555
2289
  };
1556
2290
 
1557
- if (typeof NativePromise == 'function') {
1558
- nativeThen = NativePromise.prototype.then;
1559
-
1560
- // wrap native Promise#then for native async functions
1561
- redefine(NativePromise.prototype, 'then', function then(onFulfilled, onRejected) {
1562
- var that = this;
1563
- return new PromiseConstructor(function (resolve, reject) {
1564
- nativeThen.call(that, resolve, reject);
1565
- }).then(onFulfilled, onRejected);
1566
- // https://github.com/zloirock/core-js/issues/640
1567
- }, { unsafe: true });
1568
-
1569
- // wrap fetch result
1570
- if (typeof $fetch == 'function') $$4({ global: true, enumerable: true, forced: true }, {
1571
- // eslint-disable-next-line no-unused-vars
1572
- fetch: function fetch(input /* , init */) {
1573
- return promiseResolve(PromiseConstructor, $fetch.apply(global$2, arguments));
1574
- }
1575
- });
2291
+ if (isCallable$4(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
2292
+ nativeThen = NativePromisePrototype$1.then;
2293
+
2294
+ if (!NATIVE_PROMISE_SUBCLASSING) {
2295
+ // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
2296
+ defineBuiltIn$1(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
2297
+ var that = this;
2298
+ return new PromiseConstructor(function (resolve, reject) {
2299
+ call$6(nativeThen, that, resolve, reject);
2300
+ }).then(onFulfilled, onRejected);
2301
+ // https://github.com/zloirock/core-js/issues/640
2302
+ }, { unsafe: true });
2303
+ }
2304
+
2305
+ // make `.constructor === Promise` work for native promise-based APIs
2306
+ try {
2307
+ delete NativePromisePrototype$1.constructor;
2308
+ } catch (error) { /* empty */ }
2309
+
2310
+ // make `instanceof Promise` work for native promise-based APIs
2311
+ if (setPrototypeOf) {
2312
+ setPrototypeOf(NativePromisePrototype$1, PromisePrototype);
2313
+ }
1576
2314
  }
1577
2315
  }
1578
2316
 
1579
- $$4({ global: true, wrap: true, forced: FORCED }, {
2317
+ $$a({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
1580
2318
  Promise: PromiseConstructor
1581
2319
  });
1582
2320
 
1583
2321
  setToStringTag(PromiseConstructor, PROMISE, false);
1584
2322
  setSpecies(PROMISE);
1585
2323
 
1586
- PromiseWrapper = getBuiltIn(PROMISE);
2324
+ var iterators = {};
2325
+
2326
+ var wellKnownSymbol$6 = wellKnownSymbol$e;
2327
+ var Iterators$1 = iterators;
2328
+
2329
+ var ITERATOR$2 = wellKnownSymbol$6('iterator');
2330
+ var ArrayPrototype$1 = Array.prototype;
2331
+
2332
+ // check on default Array iterator
2333
+ var isArrayIteratorMethod$1 = function (it) {
2334
+ return it !== undefined && (Iterators$1.Array === it || ArrayPrototype$1[ITERATOR$2] === it);
2335
+ };
2336
+
2337
+ var classof$2 = classof$7;
2338
+ var getMethod$1 = getMethod$3;
2339
+ var isNullOrUndefined = isNullOrUndefined$4;
2340
+ var Iterators = iterators;
2341
+ var wellKnownSymbol$5 = wellKnownSymbol$e;
2342
+
2343
+ var ITERATOR$1 = wellKnownSymbol$5('iterator');
2344
+
2345
+ var getIteratorMethod$2 = function (it) {
2346
+ if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$1)
2347
+ || getMethod$1(it, '@@iterator')
2348
+ || Iterators[classof$2(it)];
2349
+ };
2350
+
2351
+ var call$5 = functionCall;
2352
+ var aCallable$2 = aCallable$8;
2353
+ var anObject$5 = anObject$9;
2354
+ var tryToString$1 = tryToString$4;
2355
+ var getIteratorMethod$1 = getIteratorMethod$2;
2356
+
2357
+ var $TypeError$2 = TypeError;
2358
+
2359
+ var getIterator$1 = function (argument, usingIterator) {
2360
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
2361
+ if (aCallable$2(iteratorMethod)) return anObject$5(call$5(iteratorMethod, argument));
2362
+ throw new $TypeError$2(tryToString$1(argument) + ' is not iterable');
2363
+ };
2364
+
2365
+ var call$4 = functionCall;
2366
+ var anObject$4 = anObject$9;
2367
+ var getMethod = getMethod$3;
2368
+
2369
+ var iteratorClose$1 = function (iterator, kind, value) {
2370
+ var innerResult, innerError;
2371
+ anObject$4(iterator);
2372
+ try {
2373
+ innerResult = getMethod(iterator, 'return');
2374
+ if (!innerResult) {
2375
+ if (kind === 'throw') throw value;
2376
+ return value;
2377
+ }
2378
+ innerResult = call$4(innerResult, iterator);
2379
+ } catch (error) {
2380
+ innerError = true;
2381
+ innerResult = error;
2382
+ }
2383
+ if (kind === 'throw') throw value;
2384
+ if (innerError) throw innerResult;
2385
+ anObject$4(innerResult);
2386
+ return value;
2387
+ };
2388
+
2389
+ var bind$1 = functionBindContext;
2390
+ var call$3 = functionCall;
2391
+ var anObject$3 = anObject$9;
2392
+ var tryToString = tryToString$4;
2393
+ var isArrayIteratorMethod = isArrayIteratorMethod$1;
2394
+ var lengthOfArrayLike$2 = lengthOfArrayLike$5;
2395
+ var isPrototypeOf$1 = objectIsPrototypeOf;
2396
+ var getIterator = getIterator$1;
2397
+ var getIteratorMethod = getIteratorMethod$2;
2398
+ var iteratorClose = iteratorClose$1;
2399
+
2400
+ var $TypeError$1 = TypeError;
2401
+
2402
+ var Result = function (stopped, result) {
2403
+ this.stopped = stopped;
2404
+ this.result = result;
2405
+ };
2406
+
2407
+ var ResultPrototype = Result.prototype;
2408
+
2409
+ var iterate$2 = function (iterable, unboundFunction, options) {
2410
+ var that = options && options.that;
2411
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
2412
+ var IS_RECORD = !!(options && options.IS_RECORD);
2413
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
2414
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
2415
+ var fn = bind$1(unboundFunction, that);
2416
+ var iterator, iterFn, index, length, result, next, step;
2417
+
2418
+ var stop = function (condition) {
2419
+ if (iterator) iteratorClose(iterator, 'normal', condition);
2420
+ return new Result(true, condition);
2421
+ };
2422
+
2423
+ var callFn = function (value) {
2424
+ if (AS_ENTRIES) {
2425
+ anObject$3(value);
2426
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
2427
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
2428
+ };
2429
+
2430
+ if (IS_RECORD) {
2431
+ iterator = iterable.iterator;
2432
+ } else if (IS_ITERATOR) {
2433
+ iterator = iterable;
2434
+ } else {
2435
+ iterFn = getIteratorMethod(iterable);
2436
+ if (!iterFn) throw new $TypeError$1(tryToString(iterable) + ' is not iterable');
2437
+ // optimisation for array iterators
2438
+ if (isArrayIteratorMethod(iterFn)) {
2439
+ for (index = 0, length = lengthOfArrayLike$2(iterable); length > index; index++) {
2440
+ result = callFn(iterable[index]);
2441
+ if (result && isPrototypeOf$1(ResultPrototype, result)) return result;
2442
+ } return new Result(false);
2443
+ }
2444
+ iterator = getIterator(iterable, iterFn);
2445
+ }
2446
+
2447
+ next = IS_RECORD ? iterable.next : iterator.next;
2448
+ while (!(step = call$3(next, iterator)).done) {
2449
+ try {
2450
+ result = callFn(step.value);
2451
+ } catch (error) {
2452
+ iteratorClose(iterator, 'throw', error);
2453
+ }
2454
+ if (typeof result == 'object' && result && isPrototypeOf$1(ResultPrototype, result)) return result;
2455
+ } return new Result(false);
2456
+ };
2457
+
2458
+ var wellKnownSymbol$4 = wellKnownSymbol$e;
2459
+
2460
+ var ITERATOR = wellKnownSymbol$4('iterator');
2461
+ var SAFE_CLOSING = false;
2462
+
2463
+ try {
2464
+ var called = 0;
2465
+ var iteratorWithReturn = {
2466
+ next: function () {
2467
+ return { done: !!called++ };
2468
+ },
2469
+ 'return': function () {
2470
+ SAFE_CLOSING = true;
2471
+ }
2472
+ };
2473
+ iteratorWithReturn[ITERATOR] = function () {
2474
+ return this;
2475
+ };
2476
+ // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
2477
+ Array.from(iteratorWithReturn, function () { throw 2; });
2478
+ } catch (error) { /* empty */ }
2479
+
2480
+ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
2481
+ try {
2482
+ if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
2483
+ } catch (error) { return false; } // workaround of old WebKit + `eval` bug
2484
+ var ITERATION_SUPPORT = false;
2485
+ try {
2486
+ var object = {};
2487
+ object[ITERATOR] = function () {
2488
+ return {
2489
+ next: function () {
2490
+ return { done: ITERATION_SUPPORT = true };
2491
+ }
2492
+ };
2493
+ };
2494
+ exec(object);
2495
+ } catch (error) { /* empty */ }
2496
+ return ITERATION_SUPPORT;
2497
+ };
1587
2498
 
1588
- // statics
1589
- $$4({ target: PROMISE, stat: true, forced: FORCED }, {
1590
- // `Promise.reject` method
1591
- // https://tc39.github.io/ecma262/#sec-promise.reject
1592
- reject: function reject(r) {
1593
- var capability = newPromiseCapability(this);
1594
- capability.reject.call(undefined, r);
1595
- return capability.promise;
1596
- }
1597
- });
2499
+ var NativePromiseConstructor$1 = promiseNativeConstructor;
2500
+ var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
2501
+ var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
1598
2502
 
1599
- $$4({ target: PROMISE, stat: true, forced: FORCED }, {
1600
- // `Promise.resolve` method
1601
- // https://tc39.github.io/ecma262/#sec-promise.resolve
1602
- resolve: function resolve(x) {
1603
- return promiseResolve(this, x);
1604
- }
2503
+ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
2504
+ NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
1605
2505
  });
1606
2506
 
1607
- $$4({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
1608
- // `Promise.all` method
1609
- // https://tc39.github.io/ecma262/#sec-promise.all
2507
+ var $$9 = _export;
2508
+ var call$2 = functionCall;
2509
+ var aCallable$1 = aCallable$8;
2510
+ var newPromiseCapabilityModule$2 = newPromiseCapability$2;
2511
+ var perform$1 = perform$3;
2512
+ var iterate$1 = iterate$2;
2513
+ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
2514
+
2515
+ // `Promise.all` method
2516
+ // https://tc39.es/ecma262/#sec-promise.all
2517
+ $$9({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
1610
2518
  all: function all(iterable) {
1611
2519
  var C = this;
1612
- var capability = newPromiseCapability(C);
2520
+ var capability = newPromiseCapabilityModule$2.f(C);
1613
2521
  var resolve = capability.resolve;
1614
2522
  var reject = capability.reject;
1615
- var result = perform(function () {
1616
- var $promiseResolve = aFunction(C.resolve);
2523
+ var result = perform$1(function () {
2524
+ var $promiseResolve = aCallable$1(C.resolve);
1617
2525
  var values = [];
1618
2526
  var counter = 0;
1619
2527
  var remaining = 1;
1620
- iterate(iterable, function (promise) {
2528
+ iterate$1(iterable, function (promise) {
1621
2529
  var index = counter++;
1622
2530
  var alreadyCalled = false;
1623
- values.push(undefined);
1624
2531
  remaining++;
1625
- $promiseResolve.call(C, promise).then(function (value) {
2532
+ call$2($promiseResolve, C, promise).then(function (value) {
1626
2533
  if (alreadyCalled) return;
1627
2534
  alreadyCalled = true;
1628
2535
  values[index] = value;
@@ -1633,17 +2540,53 @@ $$4({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
1633
2540
  });
1634
2541
  if (result.error) reject(result.value);
1635
2542
  return capability.promise;
1636
- },
1637
- // `Promise.race` method
1638
- // https://tc39.github.io/ecma262/#sec-promise.race
2543
+ }
2544
+ });
2545
+
2546
+ var $$8 = _export;
2547
+ var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
2548
+ var NativePromiseConstructor = promiseNativeConstructor;
2549
+ var getBuiltIn$2 = getBuiltIn$9;
2550
+ var isCallable$3 = isCallable$k;
2551
+ var defineBuiltIn = defineBuiltIn$3;
2552
+
2553
+ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
2554
+
2555
+ // `Promise.prototype.catch` method
2556
+ // https://tc39.es/ecma262/#sec-promise.prototype.catch
2557
+ $$8({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2558
+ 'catch': function (onRejected) {
2559
+ return this.then(undefined, onRejected);
2560
+ }
2561
+ });
2562
+
2563
+ // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
2564
+ if (isCallable$3(NativePromiseConstructor)) {
2565
+ var method = getBuiltIn$2('Promise').prototype['catch'];
2566
+ if (NativePromisePrototype['catch'] !== method) {
2567
+ defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
2568
+ }
2569
+ }
2570
+
2571
+ var $$7 = _export;
2572
+ var call$1 = functionCall;
2573
+ var aCallable = aCallable$8;
2574
+ var newPromiseCapabilityModule$1 = newPromiseCapability$2;
2575
+ var perform = perform$3;
2576
+ var iterate = iterate$2;
2577
+ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
2578
+
2579
+ // `Promise.race` method
2580
+ // https://tc39.es/ecma262/#sec-promise.race
2581
+ $$7({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
1639
2582
  race: function race(iterable) {
1640
2583
  var C = this;
1641
- var capability = newPromiseCapability(C);
2584
+ var capability = newPromiseCapabilityModule$1.f(C);
1642
2585
  var reject = capability.reject;
1643
2586
  var result = perform(function () {
1644
- var $promiseResolve = aFunction(C.resolve);
2587
+ var $promiseResolve = aCallable(C.resolve);
1645
2588
  iterate(iterable, function (promise) {
1646
- $promiseResolve.call(C, promise).then(capability.resolve, reject);
2589
+ call$1($promiseResolve, C, promise).then(capability.resolve, reject);
1647
2590
  });
1648
2591
  });
1649
2592
  if (result.error) reject(result.value);
@@ -1651,6 +2594,49 @@ $$4({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
1651
2594
  }
1652
2595
  });
1653
2596
 
2597
+ var $$6 = _export;
2598
+ var newPromiseCapabilityModule = newPromiseCapability$2;
2599
+ var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
2600
+
2601
+ // `Promise.reject` method
2602
+ // https://tc39.es/ecma262/#sec-promise.reject
2603
+ $$6({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2604
+ reject: function reject(r) {
2605
+ var capability = newPromiseCapabilityModule.f(this);
2606
+ var capabilityReject = capability.reject;
2607
+ capabilityReject(r);
2608
+ return capability.promise;
2609
+ }
2610
+ });
2611
+
2612
+ var anObject$2 = anObject$9;
2613
+ var isObject$2 = isObject$d;
2614
+ var newPromiseCapability = newPromiseCapability$2;
2615
+
2616
+ var promiseResolve$1 = function (C, x) {
2617
+ anObject$2(C);
2618
+ if (isObject$2(x) && x.constructor === C) return x;
2619
+ var promiseCapability = newPromiseCapability.f(C);
2620
+ var resolve = promiseCapability.resolve;
2621
+ resolve(x);
2622
+ return promiseCapability.promise;
2623
+ };
2624
+
2625
+ var $$5 = _export;
2626
+ var getBuiltIn$1 = getBuiltIn$9;
2627
+ var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
2628
+ var promiseResolve = promiseResolve$1;
2629
+
2630
+ getBuiltIn$1('Promise');
2631
+
2632
+ // `Promise.resolve` method
2633
+ // https://tc39.es/ecma262/#sec-promise.resolve
2634
+ $$5({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2635
+ resolve: function resolve(x) {
2636
+ return promiseResolve(this, x);
2637
+ }
2638
+ });
2639
+
1654
2640
  const LocalStorageConstants = {
1655
2641
  accessToken: 'access-token',
1656
2642
  userData: 'user-data'
@@ -1661,7 +2647,7 @@ class HttpClient {
1661
2647
  return this._axiosInstance;
1662
2648
  }
1663
2649
  constructor(authenticationType, baseUrl) {
1664
- this._axiosInstance = axios__default["default"].create({
2650
+ this._axiosInstance = axios.create({
1665
2651
  baseURL: baseUrl,
1666
2652
  headers: {
1667
2653
  'Content-Type': 'application/json; charset=utf-8'
@@ -1701,6 +2687,109 @@ class HttpClient {
1701
2687
  }
1702
2688
  }
1703
2689
 
2690
+ var uncurryThis$3 = functionUncurryThis;
2691
+ var isArray$2 = isArray$4;
2692
+ var isCallable$2 = isCallable$k;
2693
+ var classof$1 = classofRaw$2;
2694
+ var toString$2 = toString$4;
2695
+
2696
+ var push = uncurryThis$3([].push);
2697
+
2698
+ var getJsonReplacerFunction = function (replacer) {
2699
+ if (isCallable$2(replacer)) return replacer;
2700
+ if (!isArray$2(replacer)) return;
2701
+ var rawLength = replacer.length;
2702
+ var keys = [];
2703
+ for (var i = 0; i < rawLength; i++) {
2704
+ var element = replacer[i];
2705
+ if (typeof element == 'string') push(keys, element);
2706
+ else if (typeof element == 'number' || classof$1(element) === 'Number' || classof$1(element) === 'String') push(keys, toString$2(element));
2707
+ }
2708
+ var keysLength = keys.length;
2709
+ var root = true;
2710
+ return function (key, value) {
2711
+ if (root) {
2712
+ root = false;
2713
+ return value;
2714
+ }
2715
+ if (isArray$2(this)) return value;
2716
+ for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;
2717
+ };
2718
+ };
2719
+
2720
+ var $$4 = _export;
2721
+ var getBuiltIn = getBuiltIn$9;
2722
+ var apply = functionApply;
2723
+ var call = functionCall;
2724
+ var uncurryThis$2 = functionUncurryThis;
2725
+ var fails$1 = fails$f;
2726
+ var isCallable$1 = isCallable$k;
2727
+ var isSymbol = isSymbol$3;
2728
+ var arraySlice = arraySlice$2;
2729
+ var getReplacerFunction = getJsonReplacerFunction;
2730
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
2731
+
2732
+ var $String = String;
2733
+ var $stringify = getBuiltIn('JSON', 'stringify');
2734
+ var exec = uncurryThis$2(/./.exec);
2735
+ var charAt = uncurryThis$2(''.charAt);
2736
+ var charCodeAt = uncurryThis$2(''.charCodeAt);
2737
+ var replace$1 = uncurryThis$2(''.replace);
2738
+ var numberToString = uncurryThis$2(1.0.toString);
2739
+
2740
+ var tester = /[\uD800-\uDFFF]/g;
2741
+ var low = /^[\uD800-\uDBFF]$/;
2742
+ var hi = /^[\uDC00-\uDFFF]$/;
2743
+
2744
+ var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL$1 || fails$1(function () {
2745
+ var symbol = getBuiltIn('Symbol')('stringify detection');
2746
+ // MS Edge converts symbol values to JSON as {}
2747
+ return $stringify([symbol]) !== '[null]'
2748
+ // WebKit converts symbol values to JSON as null
2749
+ || $stringify({ a: symbol }) !== '{}'
2750
+ // V8 throws on boxed symbols
2751
+ || $stringify(Object(symbol)) !== '{}';
2752
+ });
2753
+
2754
+ // https://github.com/tc39/proposal-well-formed-stringify
2755
+ var ILL_FORMED_UNICODE = fails$1(function () {
2756
+ return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
2757
+ || $stringify('\uDEAD') !== '"\\udead"';
2758
+ });
2759
+
2760
+ var stringifyWithSymbolsFix = function (it, replacer) {
2761
+ var args = arraySlice(arguments);
2762
+ var $replacer = getReplacerFunction(replacer);
2763
+ if (!isCallable$1($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
2764
+ args[1] = function (key, value) {
2765
+ // some old implementations (like WebKit) could pass numbers as keys
2766
+ if (isCallable$1($replacer)) value = call($replacer, this, $String(key), value);
2767
+ if (!isSymbol(value)) return value;
2768
+ };
2769
+ return apply($stringify, null, args);
2770
+ };
2771
+
2772
+ var fixIllFormed = function (match, offset, string) {
2773
+ var prev = charAt(string, offset - 1);
2774
+ var next = charAt(string, offset + 1);
2775
+ if ((exec(low, match) && !exec(hi, next)) || (exec(hi, match) && !exec(low, prev))) {
2776
+ return '\\u' + numberToString(charCodeAt(match, 0), 16);
2777
+ } return match;
2778
+ };
2779
+
2780
+ if ($stringify) {
2781
+ // `JSON.stringify` method
2782
+ // https://tc39.es/ecma262/#sec-json.stringify
2783
+ $$4({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
2784
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
2785
+ stringify: function stringify(it, replacer, space) {
2786
+ var args = arraySlice(arguments);
2787
+ var result = apply(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);
2788
+ return ILL_FORMED_UNICODE && typeof result == 'string' ? replace$1(result, tester, fixIllFormed) : result;
2789
+ }
2790
+ });
2791
+ }
2792
+
1704
2793
  function e(e){this.message=e;}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var r="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var t=String(r).replace(/=+$/,"");if(t.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,a=0,i=0,c="";o=t.charAt(i++);~o&&(n=a%4?64*n+o:o,a++%4)?c+=String.fromCharCode(255&n>>(-2*a&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return c};function t(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw "Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,r){var t=r.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(t)}catch(e){return r(t)}}function n(e){this.message=e;}function o(e,r){if("string"!=typeof e)throw new n("Invalid token specified");var o=!0===(r=r||{}).header?0:1;try{return JSON.parse(t(e.split(".")[o]))}catch(e){throw new n("Invalid token specified: "+e.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";
1705
2794
 
1706
2795
  class FluxoStateDispatcher {
@@ -2210,16 +3299,9 @@ exports.AppState = void 0;
2210
3299
  AppState[AppState["Inactive"] = 1] = "Inactive";
2211
3300
  })(exports.AppState || (exports.AppState = {}));
2212
3301
 
2213
- var classof$1 = classofRaw$1;
2214
-
2215
- // `IsArray` abstract operation
2216
- // https://tc39.github.io/ecma262/#sec-isarray
2217
- var isArray$2 = Array.isArray || function isArray(arg) {
2218
- return classof$1(arg) == 'Array';
2219
- };
2220
-
2221
- var isArray$1 = isArray$2;
2222
- var toLength$1 = toLength$4;
3302
+ var isArray$1 = isArray$4;
3303
+ var lengthOfArrayLike$1 = lengthOfArrayLike$5;
3304
+ var doesNotExceedSafeInteger = doesNotExceedSafeInteger$2;
2223
3305
  var bind = functionBindContext;
2224
3306
 
2225
3307
  // `FlattenIntoArray` abstract operation
@@ -2227,17 +3309,18 @@ var bind = functionBindContext;
2227
3309
  var flattenIntoArray$1 = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {
2228
3310
  var targetIndex = start;
2229
3311
  var sourceIndex = 0;
2230
- var mapFn = mapper ? bind(mapper, thisArg, 3) : false;
2231
- var element;
3312
+ var mapFn = mapper ? bind(mapper, thisArg) : false;
3313
+ var element, elementLen;
2232
3314
 
2233
3315
  while (sourceIndex < sourceLen) {
2234
3316
  if (sourceIndex in source) {
2235
3317
  element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
2236
3318
 
2237
3319
  if (depth > 0 && isArray$1(element)) {
2238
- targetIndex = flattenIntoArray$1(target, original, element, toLength$1(element.length), targetIndex, depth - 1) - 1;
3320
+ elementLen = lengthOfArrayLike$1(element);
3321
+ targetIndex = flattenIntoArray$1(target, original, element, elementLen, targetIndex, depth - 1) - 1;
2239
3322
  } else {
2240
- if (targetIndex >= 0x1FFFFFFFFFFFFF) throw TypeError('Exceed the acceptable array length');
3323
+ doesNotExceedSafeInteger(targetIndex + 1);
2241
3324
  target[targetIndex] = element;
2242
3325
  }
2243
3326
 
@@ -2250,66 +3333,83 @@ var flattenIntoArray$1 = function (target, original, source, sourceLen, start, d
2250
3333
 
2251
3334
  var flattenIntoArray_1 = flattenIntoArray$1;
2252
3335
 
2253
- var isObject$2 = isObject$9;
2254
- var isArray = isArray$2;
2255
- var wellKnownSymbol$3 = wellKnownSymbol$d;
3336
+ var isArray = isArray$4;
3337
+ var isConstructor = isConstructor$2;
3338
+ var isObject$1 = isObject$d;
3339
+ var wellKnownSymbol$3 = wellKnownSymbol$e;
2256
3340
 
2257
3341
  var SPECIES = wellKnownSymbol$3('species');
3342
+ var $Array = Array;
2258
3343
 
2259
- // `ArraySpeciesCreate` abstract operation
2260
- // https://tc39.github.io/ecma262/#sec-arrayspeciescreate
2261
- var arraySpeciesCreate$1 = function (originalArray, length) {
3344
+ // a part of `ArraySpeciesCreate` abstract operation
3345
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
3346
+ var arraySpeciesConstructor$1 = function (originalArray) {
2262
3347
  var C;
2263
3348
  if (isArray(originalArray)) {
2264
3349
  C = originalArray.constructor;
2265
3350
  // cross-realm fallback
2266
- if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
2267
- else if (isObject$2(C)) {
3351
+ if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;
3352
+ else if (isObject$1(C)) {
2268
3353
  C = C[SPECIES];
2269
3354
  if (C === null) C = undefined;
2270
3355
  }
2271
- } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
3356
+ } return C === undefined ? $Array : C;
3357
+ };
3358
+
3359
+ var arraySpeciesConstructor = arraySpeciesConstructor$1;
3360
+
3361
+ // `ArraySpeciesCreate` abstract operation
3362
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
3363
+ var arraySpeciesCreate$1 = function (originalArray, length) {
3364
+ return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
2272
3365
  };
2273
3366
 
2274
3367
  var $$3 = _export;
2275
3368
  var flattenIntoArray = flattenIntoArray_1;
2276
- var toObject = toObject$2;
2277
- var toLength = toLength$4;
2278
- var toInteger = toInteger$3;
3369
+ var toObject = toObject$4;
3370
+ var lengthOfArrayLike = lengthOfArrayLike$5;
3371
+ var toIntegerOrInfinity = toIntegerOrInfinity$3;
2279
3372
  var arraySpeciesCreate = arraySpeciesCreate$1;
2280
3373
 
2281
3374
  // `Array.prototype.flat` method
2282
- // https://github.com/tc39/proposal-flatMap
3375
+ // https://tc39.es/ecma262/#sec-array.prototype.flat
2283
3376
  $$3({ target: 'Array', proto: true }, {
2284
3377
  flat: function flat(/* depthArg = 1 */) {
2285
3378
  var depthArg = arguments.length ? arguments[0] : undefined;
2286
3379
  var O = toObject(this);
2287
- var sourceLen = toLength(O.length);
3380
+ var sourceLen = lengthOfArrayLike(O);
2288
3381
  var A = arraySpeciesCreate(O, 0);
2289
- A.length = flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toInteger(depthArg));
3382
+ A.length = flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toIntegerOrInfinity(depthArg));
2290
3383
  return A;
2291
3384
  }
2292
3385
  });
2293
3386
 
2294
- var DESCRIPTORS$2 = descriptors;
2295
- var definePropertyModule$1 = objectDefineProperty;
2296
- var anObject$1 = anObject$8;
3387
+ var objectDefineProperties = {};
3388
+
3389
+ var DESCRIPTORS$1 = descriptors;
3390
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
3391
+ var definePropertyModule = objectDefineProperty;
3392
+ var anObject$1 = anObject$9;
3393
+ var toIndexedObject = toIndexedObject$4;
2297
3394
  var objectKeys = objectKeys$2;
2298
3395
 
2299
3396
  // `Object.defineProperties` method
2300
- // https://tc39.github.io/ecma262/#sec-object.defineproperties
2301
- var objectDefineProperties = DESCRIPTORS$2 ? Object.defineProperties : function defineProperties(O, Properties) {
3397
+ // https://tc39.es/ecma262/#sec-object.defineproperties
3398
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
3399
+ objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
2302
3400
  anObject$1(O);
3401
+ var props = toIndexedObject(Properties);
2303
3402
  var keys = objectKeys(Properties);
2304
3403
  var length = keys.length;
2305
3404
  var index = 0;
2306
3405
  var key;
2307
- while (length > index) definePropertyModule$1.f(O, key = keys[index++], Properties[key]);
3406
+ while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
2308
3407
  return O;
2309
3408
  };
2310
3409
 
2311
- var anObject = anObject$8;
2312
- var defineProperties = objectDefineProperties;
3410
+ /* global ActiveXObject -- old IE, WSH */
3411
+ var anObject = anObject$9;
3412
+ var definePropertiesModule = objectDefineProperties;
2313
3413
  var enumBugKeys = enumBugKeys$3;
2314
3414
  var hiddenKeys = hiddenKeys$4;
2315
3415
  var html = html$2;
@@ -2362,10 +3462,13 @@ var NullProtoObjectViaIFrame = function () {
2362
3462
  var activeXDocument;
2363
3463
  var NullProtoObject = function () {
2364
3464
  try {
2365
- /* global ActiveXObject */
2366
- activeXDocument = document.domain && new ActiveXObject('htmlfile');
3465
+ activeXDocument = new ActiveXObject('htmlfile');
2367
3466
  } catch (error) { /* ignore */ }
2368
- NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
3467
+ NullProtoObject = typeof document != 'undefined'
3468
+ ? document.domain && activeXDocument
3469
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
3470
+ : NullProtoObjectViaIFrame()
3471
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
2369
3472
  var length = enumBugKeys.length;
2370
3473
  while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
2371
3474
  return NullProtoObject();
@@ -2374,7 +3477,8 @@ var NullProtoObject = function () {
2374
3477
  hiddenKeys[IE_PROTO] = true;
2375
3478
 
2376
3479
  // `Object.create` method
2377
- // https://tc39.github.io/ecma262/#sec-object.create
3480
+ // https://tc39.es/ecma262/#sec-object.create
3481
+ // eslint-disable-next-line es/no-object-create -- safe
2378
3482
  var objectCreate = Object.create || function create(O, Properties) {
2379
3483
  var result;
2380
3484
  if (O !== null) {
@@ -2384,20 +3488,20 @@ var objectCreate = Object.create || function create(O, Properties) {
2384
3488
  // add "__proto__" for Object.getPrototypeOf polyfill
2385
3489
  result[IE_PROTO] = O;
2386
3490
  } else result = NullProtoObject();
2387
- return Properties === undefined ? result : defineProperties(result, Properties);
3491
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
2388
3492
  };
2389
3493
 
2390
- var wellKnownSymbol$2 = wellKnownSymbol$d;
3494
+ var wellKnownSymbol$2 = wellKnownSymbol$e;
2391
3495
  var create = objectCreate;
2392
- var definePropertyModule = objectDefineProperty;
3496
+ var defineProperty = objectDefineProperty.f;
2393
3497
 
2394
3498
  var UNSCOPABLES = wellKnownSymbol$2('unscopables');
2395
3499
  var ArrayPrototype = Array.prototype;
2396
3500
 
2397
3501
  // Array.prototype[@@unscopables]
2398
- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
2399
- if (ArrayPrototype[UNSCOPABLES] == undefined) {
2400
- definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
3502
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
3503
+ if (ArrayPrototype[UNSCOPABLES] === undefined) {
3504
+ defineProperty(ArrayPrototype, UNSCOPABLES, {
2401
3505
  configurable: true,
2402
3506
  value: create(null)
2403
3507
  });
@@ -2412,6 +3516,7 @@ var addToUnscopables$2 = function (key) {
2412
3516
  // in popular engines, so it's moved to a separate module
2413
3517
  var addToUnscopables$1 = addToUnscopables$2;
2414
3518
 
3519
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2415
3520
  addToUnscopables$1('flat');
2416
3521
 
2417
3522
  class EmbeddedModule {
@@ -2621,6 +3726,151 @@ class CommunicationFacade {
2621
3726
  }
2622
3727
  }
2623
3728
 
3729
+ class RavifyV1Service {
3730
+ constructor() {}
3731
+ ping() {
3732
+ return __awaiter(this, void 0, void 0, function* () {
3733
+ return HttpClient.Instance().client.get(`/ravify/ping`);
3734
+ });
3735
+ }
3736
+ getScopes(domainId) {
3737
+ return __awaiter(this, void 0, void 0, function* () {
3738
+ return HttpClient.Instance().client.get(`/ravify/v1/domain/${domainId}/scope`);
3739
+ });
3740
+ }
3741
+ createScope(domainId, command) {
3742
+ return __awaiter(this, void 0, void 0, function* () {
3743
+ return HttpClient.Instance().client.post(`/ravify/v1/domain/${domainId}/scope`, command);
3744
+ });
3745
+ }
3746
+ updateScope(domainId, scopeId, command) {
3747
+ return __awaiter(this, void 0, void 0, function* () {
3748
+ return HttpClient.Instance().client.put(`/ravify/v1/domain/${domainId}/scope/${scopeId}`, command);
3749
+ });
3750
+ }
3751
+ deleteScope(domainId, scopeId) {
3752
+ return __awaiter(this, void 0, void 0, function* () {
3753
+ return HttpClient.Instance().client.delete(`/ravify/v1/domain/${domainId}/scope/${scopeId}`);
3754
+ });
3755
+ }
3756
+ // Fileserver
3757
+ uploadFile(domainId, content, parentDirId) {
3758
+ return __awaiter(this, void 0, void 0, function* () {
3759
+ const formData = new FormData();
3760
+ if (parentDirId) formData.append('parentId', parentDirId);
3761
+ formData.append('file', content);
3762
+ return HttpClient.Instance().client.post(`/ravify/v1/domain/${domainId}/fs/file`, formData, {
3763
+ headers: {
3764
+ "Content-Type": "multipart/form-data"
3765
+ }
3766
+ });
3767
+ });
3768
+ }
3769
+ deleteFile(domainId, fileId) {
3770
+ return __awaiter(this, void 0, void 0, function* () {
3771
+ return HttpClient.Instance().client.delete(`/ravify/v1/domain/${domainId}/fs/file/${fileId}`);
3772
+ });
3773
+ }
3774
+ getDirectoryStats(domainId, dirId) {
3775
+ return __awaiter(this, void 0, void 0, function* () {
3776
+ return HttpClient.Instance().client.get(`/ravify/v1/domain/${domainId}/fs/dir/${dirId}`);
3777
+ });
3778
+ }
3779
+ createDirectory(domainId, name, parentId) {
3780
+ return __awaiter(this, void 0, void 0, function* () {
3781
+ return HttpClient.Instance().client.post(`/ravify/v1/domain/${domainId}/fs/dir`, {
3782
+ name,
3783
+ parentId
3784
+ });
3785
+ });
3786
+ }
3787
+ deleteDirectory(domainId, dirId) {
3788
+ return __awaiter(this, void 0, void 0, function* () {
3789
+ return HttpClient.Instance().client.delete(`/ravify/v1/domain/${domainId}/fs/dir/${dirId}`);
3790
+ });
3791
+ }
3792
+ renameDirectory(domainId, dirId, name) {
3793
+ return __awaiter(this, void 0, void 0, function* () {
3794
+ return HttpClient.Instance().client.put(`/ravify/v1/domain/${domainId}/fs/dir/${dirId}`, {
3795
+ name
3796
+ });
3797
+ });
3798
+ }
3799
+ // Jobs
3800
+ getJobs(domainId, scopeId) {
3801
+ return __awaiter(this, void 0, void 0, function* () {
3802
+ return HttpClient.Instance().client.get(`/ravify/v1/domain/${domainId}/scope/${scopeId}/job`);
3803
+ });
3804
+ }
3805
+ createJob(domainId, scopeId, command) {
3806
+ return __awaiter(this, void 0, void 0, function* () {
3807
+ return HttpClient.Instance().client.post(`/ravify/v1/domain/${domainId}/scope/${scopeId}/job`, command);
3808
+ });
3809
+ }
3810
+ updateJobInfo(domainId, scopeId, jobId, command) {
3811
+ return __awaiter(this, void 0, void 0, function* () {
3812
+ return HttpClient.Instance().client.put(`/ravify/v1/domain/${domainId}/scope/${scopeId}/job/${jobId}/info`, command);
3813
+ });
3814
+ }
3815
+ updateJobExecution(domainId, scopeId, jobId, command) {
3816
+ return __awaiter(this, void 0, void 0, function* () {
3817
+ return HttpClient.Instance().client.put(`/ravify/v1/domain/${domainId}/scope/${scopeId}/job/${jobId}/execution`, command);
3818
+ });
3819
+ }
3820
+ executeJob(domainId, scopeId, jobId) {
3821
+ return __awaiter(this, void 0, void 0, function* () {
3822
+ return HttpClient.Instance().client.post(`/ravify/v1/domain/${domainId}/scope/${scopeId}/job/${jobId}/execute`);
3823
+ });
3824
+ }
3825
+ getJobHistory(domainId, scopeId, jobId, page, size) {
3826
+ return __awaiter(this, void 0, void 0, function* () {
3827
+ return HttpClient.Instance().client.get(`/ravify/v1/domain/${domainId}/scope/${scopeId}/job/${jobId}/history?page=${page}&size=${size}`);
3828
+ });
3829
+ }
3830
+ }
3831
+
3832
+ class RavifyManagementService {
3833
+ constructor() {}
3834
+ getInstances() {
3835
+ return __awaiter(this, void 0, void 0, function* () {
3836
+ return HttpClient.Instance().client.get('/ravify/management/instance');
3837
+ });
3838
+ }
3839
+ createInstance(command) {
3840
+ return __awaiter(this, void 0, void 0, function* () {
3841
+ return HttpClient.Instance().client.post('/ravify/management/instance', command);
3842
+ });
3843
+ }
3844
+ updateInstance(id, command) {
3845
+ return __awaiter(this, void 0, void 0, function* () {
3846
+ return HttpClient.Instance().client.put(`/ravify/management/instance/${id}`, command);
3847
+ });
3848
+ }
3849
+ deleteInstance(id) {
3850
+ return __awaiter(this, void 0, void 0, function* () {
3851
+ return HttpClient.Instance().client.delete(`/ravify/management/instance/${id}`);
3852
+ });
3853
+ }
3854
+ getState() {
3855
+ return __awaiter(this, void 0, void 0, function* () {
3856
+ return HttpClient.Instance().client.get(`/ravify/management/state`);
3857
+ });
3858
+ }
3859
+ }
3860
+
3861
+ class RavifyFacade {
3862
+ constructor() {
3863
+ this._ravifyV1 = new RavifyV1Service();
3864
+ this._management = new RavifyManagementService();
3865
+ }
3866
+ get management() {
3867
+ return this._management;
3868
+ }
3869
+ get v1() {
3870
+ return this._ravifyV1;
3871
+ }
3872
+ }
3873
+
2624
3874
  class FluxoClientBase {
2625
3875
  constructor() {
2626
3876
  this._authenticationType = null;
@@ -2634,6 +3884,7 @@ class FluxoClientBase {
2634
3884
  this._workflowService = null;
2635
3885
  this._communicationFacade = null;
2636
3886
  this._config = null;
3887
+ this._ravify = null;
2637
3888
  this._modules = [];
2638
3889
  this.getBearerToken = () => {
2639
3890
  const jwtToken = localStorage.getItem('access-token');
@@ -2680,6 +3931,7 @@ class FluxoClientBase {
2680
3931
  this._printingService = new PrintingService();
2681
3932
  this._workflowService = new WorkflowService();
2682
3933
  this._communicationFacade = new CommunicationFacade();
3934
+ this._ravify = new RavifyFacade();
2683
3935
  console.info('7) Sub services initialized');
2684
3936
  if (setState) state.store.dispatch(state.setFluxoClientConfiguration(config));
2685
3937
  console.info('-*-*-*- FluxoClient setup finished -*-*-*-');
@@ -2716,6 +3968,9 @@ class FluxoClientBase {
2716
3968
  get workflow() {
2717
3969
  return this._workflowService;
2718
3970
  }
3971
+ get ravify() {
3972
+ return this._ravify;
3973
+ }
2719
3974
  }
2720
3975
 
2721
3976
  class FluxoClientSys {
@@ -2742,74 +3997,109 @@ exports.AppMenuContextType = void 0;
2742
3997
  AppMenuContextType[AppMenuContextType["User"] = 2] = "User";
2743
3998
  })(exports.AppMenuContextType || (exports.AppMenuContextType = {}));
2744
3999
 
2745
- var DESCRIPTORS$1 = descriptors;
2746
- var fails = fails$8;
2747
- var has$1 = has$9;
4000
+ var $$2 = _export;
4001
+ var DESCRIPTORS = descriptors;
4002
+ var global$1 = global$j;
4003
+ var uncurryThis$1 = functionUncurryThis;
4004
+ var hasOwn = hasOwnProperty_1;
4005
+ var isCallable = isCallable$k;
4006
+ var isPrototypeOf = objectIsPrototypeOf;
4007
+ var toString$1 = toString$4;
4008
+ var defineBuiltInAccessor = defineBuiltInAccessor$2;
4009
+ var copyConstructorProperties = copyConstructorProperties$3;
2748
4010
 
2749
- var defineProperty$1 = Object.defineProperty;
2750
- var cache = {};
4011
+ var NativeSymbol = global$1.Symbol;
4012
+ var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
2751
4013
 
2752
- var thrower = function (it) { throw it; };
4014
+ if (DESCRIPTORS && isCallable(NativeSymbol) && (!('description' in SymbolPrototype) ||
4015
+ // Safari 12 bug
4016
+ NativeSymbol().description !== undefined
4017
+ )) {
4018
+ var EmptyStringDescriptionStore = {};
4019
+ // wrap Symbol constructor for correct work with undefined description
4020
+ var SymbolWrapper = function Symbol() {
4021
+ var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString$1(arguments[0]);
4022
+ var result = isPrototypeOf(SymbolPrototype, this)
4023
+ ? new NativeSymbol(description)
4024
+ // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
4025
+ : description === undefined ? NativeSymbol() : NativeSymbol(description);
4026
+ if (description === '') EmptyStringDescriptionStore[result] = true;
4027
+ return result;
4028
+ };
2753
4029
 
2754
- var arrayMethodUsesToLength$1 = function (METHOD_NAME, options) {
2755
- if (has$1(cache, METHOD_NAME)) return cache[METHOD_NAME];
2756
- if (!options) options = {};
2757
- var method = [][METHOD_NAME];
2758
- var ACCESSORS = has$1(options, 'ACCESSORS') ? options.ACCESSORS : false;
2759
- var argument0 = has$1(options, 0) ? options[0] : thrower;
2760
- var argument1 = has$1(options, 1) ? options[1] : undefined;
4030
+ copyConstructorProperties(SymbolWrapper, NativeSymbol);
4031
+ SymbolWrapper.prototype = SymbolPrototype;
4032
+ SymbolPrototype.constructor = SymbolWrapper;
2761
4033
 
2762
- return cache[METHOD_NAME] = !!method && !fails(function () {
2763
- if (ACCESSORS && !DESCRIPTORS$1) return true;
2764
- var O = { length: -1 };
4034
+ var NATIVE_SYMBOL = String(NativeSymbol('description detection')) === 'Symbol(description detection)';
4035
+ var thisSymbolValue = uncurryThis$1(SymbolPrototype.valueOf);
4036
+ var symbolDescriptiveString = uncurryThis$1(SymbolPrototype.toString);
4037
+ var regexp = /^Symbol\((.*)\)[^)]+$/;
4038
+ var replace = uncurryThis$1(''.replace);
4039
+ var stringSlice = uncurryThis$1(''.slice);
2765
4040
 
2766
- if (ACCESSORS) defineProperty$1(O, 1, { enumerable: true, get: thrower });
2767
- else O[1] = 1;
4041
+ defineBuiltInAccessor(SymbolPrototype, 'description', {
4042
+ configurable: true,
4043
+ get: function description() {
4044
+ var symbol = thisSymbolValue(this);
4045
+ if (hasOwn(EmptyStringDescriptionStore, symbol)) return '';
4046
+ var string = symbolDescriptiveString(symbol);
4047
+ var desc = NATIVE_SYMBOL ? stringSlice(string, 7, -1) : replace(string, regexp, '$1');
4048
+ return desc === '' ? undefined : desc;
4049
+ }
4050
+ });
2768
4051
 
2769
- method.call(O, argument0, argument1);
4052
+ $$2({ global: true, constructor: true, forced: true }, {
4053
+ Symbol: SymbolWrapper
2770
4054
  });
2771
- };
4055
+ }
2772
4056
 
2773
- var $$2 = _export;
4057
+ var $$1 = _export;
2774
4058
  var $includes = arrayIncludes.includes;
4059
+ var fails = fails$f;
2775
4060
  var addToUnscopables = addToUnscopables$2;
2776
- var arrayMethodUsesToLength = arrayMethodUsesToLength$1;
2777
4061
 
2778
- var USES_TO_LENGTH = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });
4062
+ // FF99+ bug
4063
+ var BROKEN_ON_SPARSE = fails(function () {
4064
+ // eslint-disable-next-line es/no-array-prototype-includes -- detection
4065
+ return !Array(1).includes();
4066
+ });
2779
4067
 
2780
4068
  // `Array.prototype.includes` method
2781
- // https://tc39.github.io/ecma262/#sec-array.prototype.includes
2782
- $$2({ target: 'Array', proto: true, forced: !USES_TO_LENGTH }, {
4069
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
4070
+ $$1({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
2783
4071
  includes: function includes(el /* , fromIndex = 0 */) {
2784
4072
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
2785
4073
  }
2786
4074
  });
2787
4075
 
2788
- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
4076
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2789
4077
  addToUnscopables('includes');
2790
4078
 
2791
- var isObject$1 = isObject$9;
2792
- var classof = classofRaw$1;
2793
- var wellKnownSymbol$1 = wellKnownSymbol$d;
4079
+ var isObject = isObject$d;
4080
+ var classof = classofRaw$2;
4081
+ var wellKnownSymbol$1 = wellKnownSymbol$e;
2794
4082
 
2795
4083
  var MATCH$1 = wellKnownSymbol$1('match');
2796
4084
 
2797
4085
  // `IsRegExp` abstract operation
2798
- // https://tc39.github.io/ecma262/#sec-isregexp
4086
+ // https://tc39.es/ecma262/#sec-isregexp
2799
4087
  var isRegexp = function (it) {
2800
4088
  var isRegExp;
2801
- return isObject$1(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
4089
+ return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof(it) === 'RegExp');
2802
4090
  };
2803
4091
 
2804
4092
  var isRegExp = isRegexp;
2805
4093
 
4094
+ var $TypeError = TypeError;
4095
+
2806
4096
  var notARegexp = function (it) {
2807
4097
  if (isRegExp(it)) {
2808
- throw TypeError("The method doesn't accept regular expressions");
4098
+ throw new $TypeError("The method doesn't accept regular expressions");
2809
4099
  } return it;
2810
4100
  };
2811
4101
 
2812
- var wellKnownSymbol = wellKnownSymbol$d;
4102
+ var wellKnownSymbol = wellKnownSymbol$e;
2813
4103
 
2814
4104
  var MATCH = wellKnownSymbol('match');
2815
4105
 
@@ -2817,76 +4107,35 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
2817
4107
  var regexp = /./;
2818
4108
  try {
2819
4109
  '/./'[METHOD_NAME](regexp);
2820
- } catch (e) {
4110
+ } catch (error1) {
2821
4111
  try {
2822
4112
  regexp[MATCH] = false;
2823
4113
  return '/./'[METHOD_NAME](regexp);
2824
- } catch (f) { /* empty */ }
4114
+ } catch (error2) { /* empty */ }
2825
4115
  } return false;
2826
4116
  };
2827
4117
 
2828
- var $$1 = _export;
4118
+ var $ = _export;
4119
+ var uncurryThis = functionUncurryThis;
2829
4120
  var notARegExp = notARegexp;
2830
- var requireObjectCoercible = requireObjectCoercible$3;
4121
+ var requireObjectCoercible = requireObjectCoercible$4;
4122
+ var toString = toString$4;
2831
4123
  var correctIsRegExpLogic = correctIsRegexpLogic;
2832
4124
 
4125
+ var stringIndexOf = uncurryThis(''.indexOf);
4126
+
2833
4127
  // `String.prototype.includes` method
2834
- // https://tc39.github.io/ecma262/#sec-string.prototype.includes
2835
- $$1({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
4128
+ // https://tc39.es/ecma262/#sec-string.prototype.includes
4129
+ $({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
2836
4130
  includes: function includes(searchString /* , position = 0 */) {
2837
- return !!~String(requireObjectCoercible(this))
2838
- .indexOf(notARegExp(searchString), arguments.length > 1 ? arguments[1] : undefined);
4131
+ return !!~stringIndexOf(
4132
+ toString(requireObjectCoercible(this)),
4133
+ toString(notARegExp(searchString)),
4134
+ arguments.length > 1 ? arguments[1] : undefined
4135
+ );
2839
4136
  }
2840
4137
  });
2841
4138
 
2842
- var $ = _export;
2843
- var DESCRIPTORS = descriptors;
2844
- var global$1 = global$i;
2845
- var has = has$9;
2846
- var isObject = isObject$9;
2847
- var defineProperty = objectDefineProperty.f;
2848
- var copyConstructorProperties = copyConstructorProperties$2;
2849
-
2850
- var NativeSymbol = global$1.Symbol;
2851
-
2852
- if (DESCRIPTORS && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
2853
- // Safari 12 bug
2854
- NativeSymbol().description !== undefined
2855
- )) {
2856
- var EmptyStringDescriptionStore = {};
2857
- // wrap Symbol constructor for correct work with undefined description
2858
- var SymbolWrapper = function Symbol() {
2859
- var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
2860
- var result = this instanceof SymbolWrapper
2861
- ? new NativeSymbol(description)
2862
- // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
2863
- : description === undefined ? NativeSymbol() : NativeSymbol(description);
2864
- if (description === '') EmptyStringDescriptionStore[result] = true;
2865
- return result;
2866
- };
2867
- copyConstructorProperties(SymbolWrapper, NativeSymbol);
2868
- var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
2869
- symbolPrototype.constructor = SymbolWrapper;
2870
-
2871
- var symbolToString = symbolPrototype.toString;
2872
- var native = String(NativeSymbol('test')) == 'Symbol(test)';
2873
- var regexp = /^Symbol\((.*)\)[^)]+$/;
2874
- defineProperty(symbolPrototype, 'description', {
2875
- configurable: true,
2876
- get: function description() {
2877
- var symbol = isObject(this) ? this.valueOf() : this;
2878
- var string = symbolToString.call(symbol);
2879
- if (has(EmptyStringDescriptionStore, symbol)) return '';
2880
- var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');
2881
- return desc === '' ? undefined : desc;
2882
- }
2883
- });
2884
-
2885
- $({ global: true, forced: true }, {
2886
- Symbol: SymbolWrapper
2887
- });
2888
- }
2889
-
2890
4139
  class CurrentUser {
2891
4140
  getUserInfo() {
2892
4141
  const user = state.store.getState().user;
@@ -2956,6 +4205,46 @@ class ServerFilterHelper {
2956
4205
  }
2957
4206
  }
2958
4207
 
4208
+ exports.JobState = void 0;
4209
+ (function (JobState) {
4210
+ JobState[JobState["Free"] = 0] = "Free";
4211
+ JobState[JobState["Waiting"] = 1] = "Waiting";
4212
+ JobState[JobState["Running"] = 2] = "Running";
4213
+ JobState[JobState["Success"] = 3] = "Success";
4214
+ JobState[JobState["Error"] = 5] = "Error";
4215
+ })(exports.JobState || (exports.JobState = {}));
4216
+
4217
+ exports.RavifyJobStateV1 = void 0;
4218
+ (function (RavifyJobStateV1) {
4219
+ RavifyJobStateV1[RavifyJobStateV1["Free"] = 0] = "Free";
4220
+ RavifyJobStateV1[RavifyJobStateV1["Waiting"] = 1] = "Waiting";
4221
+ RavifyJobStateV1[RavifyJobStateV1["Running"] = 2] = "Running";
4222
+ RavifyJobStateV1[RavifyJobStateV1["Success"] = 3] = "Success";
4223
+ RavifyJobStateV1[RavifyJobStateV1["Error"] = 5] = "Error";
4224
+ })(exports.RavifyJobStateV1 || (exports.RavifyJobStateV1 = {}));
4225
+
4226
+ exports.RavifyInstanceProtocol = void 0;
4227
+ (function (RavifyInstanceProtocol) {
4228
+ RavifyInstanceProtocol[RavifyInstanceProtocol["Http"] = 1] = "Http";
4229
+ RavifyInstanceProtocol[RavifyInstanceProtocol["Https"] = 2] = "Https";
4230
+ })(exports.RavifyInstanceProtocol || (exports.RavifyInstanceProtocol = {}));
4231
+ exports.RavifyInstanceVersion = void 0;
4232
+ (function (RavifyInstanceVersion) {
4233
+ RavifyInstanceVersion[RavifyInstanceVersion["V1"] = 1] = "V1";
4234
+ })(exports.RavifyInstanceVersion || (exports.RavifyInstanceVersion = {}));
4235
+
4236
+ exports.RavifyEventStateType = void 0;
4237
+ (function (RavifyEventStateType) {
4238
+ RavifyEventStateType[RavifyEventStateType["JobFree"] = 0] = "JobFree";
4239
+ RavifyEventStateType[RavifyEventStateType["JobWaiting"] = 1] = "JobWaiting";
4240
+ RavifyEventStateType[RavifyEventStateType["JobRunning"] = 2] = "JobRunning";
4241
+ RavifyEventStateType[RavifyEventStateType["JobSuccess"] = 3] = "JobSuccess";
4242
+ RavifyEventStateType[RavifyEventStateType["JobError"] = 4] = "JobError";
4243
+ RavifyEventStateType[RavifyEventStateType["JobCreated"] = 5] = "JobCreated";
4244
+ RavifyEventStateType[RavifyEventStateType["JobUpdated"] = 6] = "JobUpdated";
4245
+ RavifyEventStateType[RavifyEventStateType["JobDeleted"] = 7] = "JobDeleted";
4246
+ })(exports.RavifyEventStateType || (exports.RavifyEventStateType = {}));
4247
+
2959
4248
  exports.ApiKeyService = ApiKeyService;
2960
4249
  exports.AppService = AppService;
2961
4250
  exports.AppServiceService = AppServiceService;
@@ -2974,6 +4263,8 @@ exports.IntellisenseService = IntellisenseService;
2974
4263
  exports.MailServerService = MailServerService;
2975
4264
  exports.PermissionService = PermissionService;
2976
4265
  exports.PrintingService = PrintingService;
4266
+ exports.RavifyFacade = RavifyFacade;
4267
+ exports.RavifyV1Service = RavifyV1Service;
2977
4268
  exports.ReportingService = ReportingService;
2978
4269
  exports.ServerFilterHelper = ServerFilterHelper;
2979
4270
  exports.UserService = UserService;