@bigbinary/neeto-payments-frontend 2.2.4 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/javascript/src/translations/en.json +2 -2
- package/dist/Dashboard.js +3 -3
- package/dist/PayoutsDashboard.js +3 -3
- package/dist/PayoutsPage.js +3 -3
- package/dist/RazorpayPaymentButton.js +2 -2
- package/dist/RefundsDashboard.js +11 -5
- package/dist/RefundsDashboard.js.map +1 -1
- package/dist/StripeConnect.js +2 -2
- package/dist/_commonjsHelpers-1789f0cf.js +8 -0
- package/dist/_commonjsHelpers-1789f0cf.js.map +1 -0
- package/dist/cjs/Dashboard.js +3 -3
- package/dist/cjs/PayoutsDashboard.js +3 -3
- package/dist/cjs/PayoutsPage.js +3 -3
- package/dist/cjs/RazorpayPaymentButton.js +2 -2
- package/dist/cjs/RefundsDashboard.js +10 -4
- package/dist/cjs/RefundsDashboard.js.map +1 -1
- package/dist/cjs/StripeConnect.js +2 -2
- package/dist/cjs/_commonjsHelpers-b3309d7b.js +11 -0
- package/dist/cjs/_commonjsHelpers-b3309d7b.js.map +1 -0
- package/dist/cjs/{index-6f9eb83b.js → index-6894d1e0.js} +2 -2
- package/dist/cjs/{index-6f9eb83b.js.map → index-6894d1e0.js.map} +1 -1
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/{useConnectApi-4797829f.js → useConnectApi-0fc52c4d.js} +1833 -167
- package/dist/cjs/useConnectApi-0fc52c4d.js.map +1 -0
- package/dist/cjs/{usePlatformApi-662f51cd.js → usePlatformApi-536ae61f.js} +2 -2
- package/dist/cjs/{usePlatformApi-662f51cd.js.map → usePlatformApi-536ae61f.js.map} +1 -1
- package/dist/cjs/useRazorpayPayment.js +2 -2
- package/dist/cjs/useStripePromise.js +2 -2
- package/dist/{index-1fdfa272.js → index-d02e7a6d.js} +2 -2
- package/dist/{index-1fdfa272.js.map → index-d02e7a6d.js.map} +1 -1
- package/dist/index.js +4 -4
- package/dist/{useConnectApi-cf9948b8.js → useConnectApi-6dddca0c.js} +1833 -167
- package/dist/useConnectApi-6dddca0c.js.map +1 -0
- package/dist/{usePlatformApi-08dd26c1.js → usePlatformApi-73d803cb.js} +2 -2
- package/dist/{usePlatformApi-08dd26c1.js.map → usePlatformApi-73d803cb.js.map} +1 -1
- package/dist/useRazorpayPayment.js +2 -2
- package/dist/useStripePromise.js +2 -2
- package/package.json +15 -15
- package/dist/_commonjsHelpers-ae89b920.js +0 -6
- package/dist/_commonjsHelpers-ae89b920.js.map +0 -1
- package/dist/cjs/_commonjsHelpers-755157d3.js +0 -8
- package/dist/cjs/_commonjsHelpers-755157d3.js.map +0 -1
- package/dist/cjs/useConnectApi-4797829f.js.map +0 -1
- package/dist/useConnectApi-cf9948b8.js.map +0 -1
|
@@ -4,7 +4,7 @@ import { isPresent } from '@bigbinary/neeto-cist';
|
|
|
4
4
|
import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
5
5
|
import axios from 'axios';
|
|
6
6
|
import { BASE_URL } from './constants.js';
|
|
7
|
-
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-
|
|
7
|
+
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-1789f0cf.js';
|
|
8
8
|
import require$$0 from 'util';
|
|
9
9
|
import { Q as QUERY_KEYS } from './queryConstants-65ca40bc.js';
|
|
10
10
|
|
|
@@ -40,133 +40,1666 @@ var payoutsApi = {
|
|
|
40
40
|
show: show
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
+
/** @type {import('.')} */
|
|
44
|
+
var esErrors = Error;
|
|
45
|
+
|
|
46
|
+
/** @type {import('./eval')} */
|
|
47
|
+
var _eval = EvalError;
|
|
48
|
+
|
|
49
|
+
/** @type {import('./range')} */
|
|
50
|
+
var range = RangeError;
|
|
51
|
+
|
|
52
|
+
/** @type {import('./ref')} */
|
|
53
|
+
var ref = ReferenceError;
|
|
54
|
+
|
|
55
|
+
/** @type {import('./syntax')} */
|
|
56
|
+
var syntax = SyntaxError;
|
|
57
|
+
|
|
58
|
+
/** @type {import('./type')} */
|
|
59
|
+
var type = TypeError;
|
|
60
|
+
|
|
61
|
+
/** @type {import('./uri')} */
|
|
62
|
+
var uri = URIError;
|
|
63
|
+
|
|
43
64
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
44
65
|
var shams = function hasSymbols() {
|
|
45
66
|
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
46
67
|
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
47
68
|
|
|
48
|
-
var obj = {};
|
|
49
|
-
var sym = Symbol('test');
|
|
50
|
-
var symObj = Object(sym);
|
|
51
|
-
if (typeof sym === 'string') { return false; }
|
|
69
|
+
var obj = {};
|
|
70
|
+
var sym = Symbol('test');
|
|
71
|
+
var symObj = Object(sym);
|
|
72
|
+
if (typeof sym === 'string') { return false; }
|
|
73
|
+
|
|
74
|
+
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
|
75
|
+
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
|
76
|
+
|
|
77
|
+
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
|
78
|
+
// if (sym instanceof Symbol) { return false; }
|
|
79
|
+
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
|
80
|
+
// if (!(symObj instanceof Symbol)) { return false; }
|
|
81
|
+
|
|
82
|
+
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
|
83
|
+
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
|
84
|
+
|
|
85
|
+
var symVal = 42;
|
|
86
|
+
obj[sym] = symVal;
|
|
87
|
+
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
88
|
+
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
89
|
+
|
|
90
|
+
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
91
|
+
|
|
92
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
93
|
+
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
|
94
|
+
|
|
95
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
96
|
+
|
|
97
|
+
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
98
|
+
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
99
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return true;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
106
|
+
var hasSymbolSham = shams;
|
|
107
|
+
|
|
108
|
+
var hasSymbols$4 = function hasNativeSymbols() {
|
|
109
|
+
if (typeof origSymbol !== 'function') { return false; }
|
|
110
|
+
if (typeof Symbol !== 'function') { return false; }
|
|
111
|
+
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
112
|
+
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
|
113
|
+
|
|
114
|
+
return hasSymbolSham();
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
var test = {
|
|
118
|
+
__proto__: null,
|
|
119
|
+
foo: {}
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
var $Object = Object;
|
|
123
|
+
|
|
124
|
+
/** @type {import('.')} */
|
|
125
|
+
var hasProto$4 = function hasProto() {
|
|
126
|
+
// @ts-expect-error: TS errors on an inherited property for some reason
|
|
127
|
+
return { __proto__: test }.foo === test.foo
|
|
128
|
+
&& !(test instanceof $Object);
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
/* eslint no-invalid-this: 1 */
|
|
132
|
+
|
|
133
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
134
|
+
var toStr$1 = Object.prototype.toString;
|
|
135
|
+
var max = Math.max;
|
|
136
|
+
var funcType = '[object Function]';
|
|
137
|
+
|
|
138
|
+
var concatty = function concatty(a, b) {
|
|
139
|
+
var arr = [];
|
|
140
|
+
|
|
141
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
142
|
+
arr[i] = a[i];
|
|
143
|
+
}
|
|
144
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
145
|
+
arr[j + a.length] = b[j];
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
return arr;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
var slicy = function slicy(arrLike, offset) {
|
|
152
|
+
var arr = [];
|
|
153
|
+
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
154
|
+
arr[j] = arrLike[i];
|
|
155
|
+
}
|
|
156
|
+
return arr;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
var joiny = function (arr, joiner) {
|
|
160
|
+
var str = '';
|
|
161
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
162
|
+
str += arr[i];
|
|
163
|
+
if (i + 1 < arr.length) {
|
|
164
|
+
str += joiner;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return str;
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
var implementation$1 = function bind(that) {
|
|
171
|
+
var target = this;
|
|
172
|
+
if (typeof target !== 'function' || toStr$1.apply(target) !== funcType) {
|
|
173
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
174
|
+
}
|
|
175
|
+
var args = slicy(arguments, 1);
|
|
176
|
+
|
|
177
|
+
var bound;
|
|
178
|
+
var binder = function () {
|
|
179
|
+
if (this instanceof bound) {
|
|
180
|
+
var result = target.apply(
|
|
181
|
+
this,
|
|
182
|
+
concatty(args, arguments)
|
|
183
|
+
);
|
|
184
|
+
if (Object(result) === result) {
|
|
185
|
+
return result;
|
|
186
|
+
}
|
|
187
|
+
return this;
|
|
188
|
+
}
|
|
189
|
+
return target.apply(
|
|
190
|
+
that,
|
|
191
|
+
concatty(args, arguments)
|
|
192
|
+
);
|
|
193
|
+
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
var boundLength = max(0, target.length - args.length);
|
|
197
|
+
var boundArgs = [];
|
|
198
|
+
for (var i = 0; i < boundLength; i++) {
|
|
199
|
+
boundArgs[i] = '$' + i;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
203
|
+
|
|
204
|
+
if (target.prototype) {
|
|
205
|
+
var Empty = function Empty() {};
|
|
206
|
+
Empty.prototype = target.prototype;
|
|
207
|
+
bound.prototype = new Empty();
|
|
208
|
+
Empty.prototype = null;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
return bound;
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
var implementation = implementation$1;
|
|
215
|
+
|
|
216
|
+
var functionBind = Function.prototype.bind || implementation;
|
|
217
|
+
|
|
218
|
+
var call = Function.prototype.call;
|
|
219
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
220
|
+
var bind$4 = functionBind;
|
|
221
|
+
|
|
222
|
+
/** @type {(o: {}, p: PropertyKey) => p is keyof o} */
|
|
223
|
+
var hasown = bind$4.call(call, $hasOwn);
|
|
224
|
+
|
|
225
|
+
var undefined$4;
|
|
226
|
+
|
|
227
|
+
var $Error$3 = esErrors;
|
|
228
|
+
var $EvalError$3 = _eval;
|
|
229
|
+
var $RangeError$3 = range;
|
|
230
|
+
var $ReferenceError$3 = ref;
|
|
231
|
+
var $SyntaxError$4 = syntax;
|
|
232
|
+
var $TypeError$6 = type;
|
|
233
|
+
var $URIError$3 = uri;
|
|
234
|
+
|
|
235
|
+
var $Function$3 = Function;
|
|
236
|
+
|
|
237
|
+
// eslint-disable-next-line consistent-return
|
|
238
|
+
var getEvalledConstructor$3 = function (expressionSyntax) {
|
|
239
|
+
try {
|
|
240
|
+
return $Function$3('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
241
|
+
} catch (e) {}
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
var $gOPD$4 = Object.getOwnPropertyDescriptor;
|
|
245
|
+
if ($gOPD$4) {
|
|
246
|
+
try {
|
|
247
|
+
$gOPD$4({}, '');
|
|
248
|
+
} catch (e) {
|
|
249
|
+
$gOPD$4 = null; // this is IE 8, which has a broken gOPD
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
var throwTypeError$3 = function () {
|
|
254
|
+
throw new $TypeError$6();
|
|
255
|
+
};
|
|
256
|
+
var ThrowTypeError$3 = $gOPD$4
|
|
257
|
+
? (function () {
|
|
258
|
+
try {
|
|
259
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
260
|
+
arguments.callee; // IE 8 does not throw here
|
|
261
|
+
return throwTypeError$3;
|
|
262
|
+
} catch (calleeThrows) {
|
|
263
|
+
try {
|
|
264
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
265
|
+
return $gOPD$4(arguments, 'callee').get;
|
|
266
|
+
} catch (gOPDthrows) {
|
|
267
|
+
return throwTypeError$3;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}())
|
|
271
|
+
: throwTypeError$3;
|
|
272
|
+
|
|
273
|
+
var hasSymbols$3 = hasSymbols$4();
|
|
274
|
+
var hasProto$3 = hasProto$4();
|
|
275
|
+
|
|
276
|
+
var getProto$3 = Object.getPrototypeOf || (
|
|
277
|
+
hasProto$3
|
|
278
|
+
? function (x) { return x.__proto__; } // eslint-disable-line no-proto
|
|
279
|
+
: null
|
|
280
|
+
);
|
|
281
|
+
|
|
282
|
+
var needsEval$3 = {};
|
|
283
|
+
|
|
284
|
+
var TypedArray$3 = typeof Uint8Array === 'undefined' || !getProto$3 ? undefined$4 : getProto$3(Uint8Array);
|
|
285
|
+
|
|
286
|
+
var INTRINSICS$3 = {
|
|
287
|
+
__proto__: null,
|
|
288
|
+
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$4 : AggregateError,
|
|
289
|
+
'%Array%': Array,
|
|
290
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$4 : ArrayBuffer,
|
|
291
|
+
'%ArrayIteratorPrototype%': hasSymbols$3 && getProto$3 ? getProto$3([][Symbol.iterator]()) : undefined$4,
|
|
292
|
+
'%AsyncFromSyncIteratorPrototype%': undefined$4,
|
|
293
|
+
'%AsyncFunction%': needsEval$3,
|
|
294
|
+
'%AsyncGenerator%': needsEval$3,
|
|
295
|
+
'%AsyncGeneratorFunction%': needsEval$3,
|
|
296
|
+
'%AsyncIteratorPrototype%': needsEval$3,
|
|
297
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined$4 : Atomics,
|
|
298
|
+
'%BigInt%': typeof BigInt === 'undefined' ? undefined$4 : BigInt,
|
|
299
|
+
'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined$4 : BigInt64Array,
|
|
300
|
+
'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined$4 : BigUint64Array,
|
|
301
|
+
'%Boolean%': Boolean,
|
|
302
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined$4 : DataView,
|
|
303
|
+
'%Date%': Date,
|
|
304
|
+
'%decodeURI%': decodeURI,
|
|
305
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
306
|
+
'%encodeURI%': encodeURI,
|
|
307
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
308
|
+
'%Error%': $Error$3,
|
|
309
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
310
|
+
'%EvalError%': $EvalError$3,
|
|
311
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$4 : Float32Array,
|
|
312
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$4 : Float64Array,
|
|
313
|
+
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$4 : FinalizationRegistry,
|
|
314
|
+
'%Function%': $Function$3,
|
|
315
|
+
'%GeneratorFunction%': needsEval$3,
|
|
316
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$4 : Int8Array,
|
|
317
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$4 : Int16Array,
|
|
318
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$4 : Int32Array,
|
|
319
|
+
'%isFinite%': isFinite,
|
|
320
|
+
'%isNaN%': isNaN,
|
|
321
|
+
'%IteratorPrototype%': hasSymbols$3 && getProto$3 ? getProto$3(getProto$3([][Symbol.iterator]())) : undefined$4,
|
|
322
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined$4,
|
|
323
|
+
'%Map%': typeof Map === 'undefined' ? undefined$4 : Map,
|
|
324
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 || !getProto$3 ? undefined$4 : getProto$3(new Map()[Symbol.iterator]()),
|
|
325
|
+
'%Math%': Math,
|
|
326
|
+
'%Number%': Number,
|
|
327
|
+
'%Object%': Object,
|
|
328
|
+
'%parseFloat%': parseFloat,
|
|
329
|
+
'%parseInt%': parseInt,
|
|
330
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined$4 : Promise,
|
|
331
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined$4 : Proxy,
|
|
332
|
+
'%RangeError%': $RangeError$3,
|
|
333
|
+
'%ReferenceError%': $ReferenceError$3,
|
|
334
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined$4 : Reflect,
|
|
335
|
+
'%RegExp%': RegExp,
|
|
336
|
+
'%Set%': typeof Set === 'undefined' ? undefined$4 : Set,
|
|
337
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 || !getProto$3 ? undefined$4 : getProto$3(new Set()[Symbol.iterator]()),
|
|
338
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$4 : SharedArrayBuffer,
|
|
339
|
+
'%String%': String,
|
|
340
|
+
'%StringIteratorPrototype%': hasSymbols$3 && getProto$3 ? getProto$3(''[Symbol.iterator]()) : undefined$4,
|
|
341
|
+
'%Symbol%': hasSymbols$3 ? Symbol : undefined$4,
|
|
342
|
+
'%SyntaxError%': $SyntaxError$4,
|
|
343
|
+
'%ThrowTypeError%': ThrowTypeError$3,
|
|
344
|
+
'%TypedArray%': TypedArray$3,
|
|
345
|
+
'%TypeError%': $TypeError$6,
|
|
346
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$4 : Uint8Array,
|
|
347
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$4 : Uint8ClampedArray,
|
|
348
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$4 : Uint16Array,
|
|
349
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$4 : Uint32Array,
|
|
350
|
+
'%URIError%': $URIError$3,
|
|
351
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$4 : WeakMap,
|
|
352
|
+
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined$4 : WeakRef,
|
|
353
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$4 : WeakSet
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
if (getProto$3) {
|
|
357
|
+
try {
|
|
358
|
+
null.error; // eslint-disable-line no-unused-expressions
|
|
359
|
+
} catch (e) {
|
|
360
|
+
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
|
361
|
+
var errorProto$3 = getProto$3(getProto$3(e));
|
|
362
|
+
INTRINSICS$3['%Error.prototype%'] = errorProto$3;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
var doEval$3 = function doEval(name) {
|
|
367
|
+
var value;
|
|
368
|
+
if (name === '%AsyncFunction%') {
|
|
369
|
+
value = getEvalledConstructor$3('async function () {}');
|
|
370
|
+
} else if (name === '%GeneratorFunction%') {
|
|
371
|
+
value = getEvalledConstructor$3('function* () {}');
|
|
372
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
373
|
+
value = getEvalledConstructor$3('async function* () {}');
|
|
374
|
+
} else if (name === '%AsyncGenerator%') {
|
|
375
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
376
|
+
if (fn) {
|
|
377
|
+
value = fn.prototype;
|
|
378
|
+
}
|
|
379
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
380
|
+
var gen = doEval('%AsyncGenerator%');
|
|
381
|
+
if (gen && getProto$3) {
|
|
382
|
+
value = getProto$3(gen.prototype);
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
INTRINSICS$3[name] = value;
|
|
387
|
+
|
|
388
|
+
return value;
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
var LEGACY_ALIASES$3 = {
|
|
392
|
+
__proto__: null,
|
|
393
|
+
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
394
|
+
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
395
|
+
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
396
|
+
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
397
|
+
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
398
|
+
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
399
|
+
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
400
|
+
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
401
|
+
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
402
|
+
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
403
|
+
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
404
|
+
'%DatePrototype%': ['Date', 'prototype'],
|
|
405
|
+
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
406
|
+
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
407
|
+
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
408
|
+
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
409
|
+
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
410
|
+
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
411
|
+
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
412
|
+
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
413
|
+
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
414
|
+
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
415
|
+
'%JSONParse%': ['JSON', 'parse'],
|
|
416
|
+
'%JSONStringify%': ['JSON', 'stringify'],
|
|
417
|
+
'%MapPrototype%': ['Map', 'prototype'],
|
|
418
|
+
'%NumberPrototype%': ['Number', 'prototype'],
|
|
419
|
+
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
420
|
+
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
421
|
+
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
422
|
+
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
423
|
+
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
424
|
+
'%Promise_all%': ['Promise', 'all'],
|
|
425
|
+
'%Promise_reject%': ['Promise', 'reject'],
|
|
426
|
+
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
427
|
+
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
428
|
+
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
429
|
+
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
430
|
+
'%SetPrototype%': ['Set', 'prototype'],
|
|
431
|
+
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
432
|
+
'%StringPrototype%': ['String', 'prototype'],
|
|
433
|
+
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
434
|
+
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
435
|
+
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
436
|
+
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
437
|
+
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
438
|
+
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
439
|
+
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
440
|
+
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
441
|
+
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
442
|
+
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
443
|
+
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
444
|
+
};
|
|
445
|
+
|
|
446
|
+
var bind$3 = functionBind;
|
|
447
|
+
var hasOwn$4 = hasown;
|
|
448
|
+
var $concat$4 = bind$3.call(Function.call, Array.prototype.concat);
|
|
449
|
+
var $spliceApply$3 = bind$3.call(Function.apply, Array.prototype.splice);
|
|
450
|
+
var $replace$4 = bind$3.call(Function.call, String.prototype.replace);
|
|
451
|
+
var $strSlice$3 = bind$3.call(Function.call, String.prototype.slice);
|
|
452
|
+
var $exec$3 = bind$3.call(Function.call, RegExp.prototype.exec);
|
|
453
|
+
|
|
454
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
455
|
+
var rePropName$3 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
456
|
+
var reEscapeChar$3 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
457
|
+
var stringToPath$3 = function stringToPath(string) {
|
|
458
|
+
var first = $strSlice$3(string, 0, 1);
|
|
459
|
+
var last = $strSlice$3(string, -1);
|
|
460
|
+
if (first === '%' && last !== '%') {
|
|
461
|
+
throw new $SyntaxError$4('invalid intrinsic syntax, expected closing `%`');
|
|
462
|
+
} else if (last === '%' && first !== '%') {
|
|
463
|
+
throw new $SyntaxError$4('invalid intrinsic syntax, expected opening `%`');
|
|
464
|
+
}
|
|
465
|
+
var result = [];
|
|
466
|
+
$replace$4(string, rePropName$3, function (match, number, quote, subString) {
|
|
467
|
+
result[result.length] = quote ? $replace$4(subString, reEscapeChar$3, '$1') : number || match;
|
|
468
|
+
});
|
|
469
|
+
return result;
|
|
470
|
+
};
|
|
471
|
+
/* end adaptation */
|
|
472
|
+
|
|
473
|
+
var getBaseIntrinsic$3 = function getBaseIntrinsic(name, allowMissing) {
|
|
474
|
+
var intrinsicName = name;
|
|
475
|
+
var alias;
|
|
476
|
+
if (hasOwn$4(LEGACY_ALIASES$3, intrinsicName)) {
|
|
477
|
+
alias = LEGACY_ALIASES$3[intrinsicName];
|
|
478
|
+
intrinsicName = '%' + alias[0] + '%';
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
if (hasOwn$4(INTRINSICS$3, intrinsicName)) {
|
|
482
|
+
var value = INTRINSICS$3[intrinsicName];
|
|
483
|
+
if (value === needsEval$3) {
|
|
484
|
+
value = doEval$3(intrinsicName);
|
|
485
|
+
}
|
|
486
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
487
|
+
throw new $TypeError$6('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
return {
|
|
491
|
+
alias: alias,
|
|
492
|
+
name: intrinsicName,
|
|
493
|
+
value: value
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
throw new $SyntaxError$4('intrinsic ' + name + ' does not exist!');
|
|
498
|
+
};
|
|
499
|
+
|
|
500
|
+
var getIntrinsic$4 = function GetIntrinsic(name, allowMissing) {
|
|
501
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
502
|
+
throw new $TypeError$6('intrinsic name must be a non-empty string');
|
|
503
|
+
}
|
|
504
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
505
|
+
throw new $TypeError$6('"allowMissing" argument must be a boolean');
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
if ($exec$3(/^%?[^%]*%?$/, name) === null) {
|
|
509
|
+
throw new $SyntaxError$4('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
510
|
+
}
|
|
511
|
+
var parts = stringToPath$3(name);
|
|
512
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
513
|
+
|
|
514
|
+
var intrinsic = getBaseIntrinsic$3('%' + intrinsicBaseName + '%', allowMissing);
|
|
515
|
+
var intrinsicRealName = intrinsic.name;
|
|
516
|
+
var value = intrinsic.value;
|
|
517
|
+
var skipFurtherCaching = false;
|
|
518
|
+
|
|
519
|
+
var alias = intrinsic.alias;
|
|
520
|
+
if (alias) {
|
|
521
|
+
intrinsicBaseName = alias[0];
|
|
522
|
+
$spliceApply$3(parts, $concat$4([0, 1], alias));
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
526
|
+
var part = parts[i];
|
|
527
|
+
var first = $strSlice$3(part, 0, 1);
|
|
528
|
+
var last = $strSlice$3(part, -1);
|
|
529
|
+
if (
|
|
530
|
+
(
|
|
531
|
+
(first === '"' || first === "'" || first === '`')
|
|
532
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
533
|
+
)
|
|
534
|
+
&& first !== last
|
|
535
|
+
) {
|
|
536
|
+
throw new $SyntaxError$4('property names with quotes must have matching quotes');
|
|
537
|
+
}
|
|
538
|
+
if (part === 'constructor' || !isOwn) {
|
|
539
|
+
skipFurtherCaching = true;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
intrinsicBaseName += '.' + part;
|
|
543
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
544
|
+
|
|
545
|
+
if (hasOwn$4(INTRINSICS$3, intrinsicRealName)) {
|
|
546
|
+
value = INTRINSICS$3[intrinsicRealName];
|
|
547
|
+
} else if (value != null) {
|
|
548
|
+
if (!(part in value)) {
|
|
549
|
+
if (!allowMissing) {
|
|
550
|
+
throw new $TypeError$6('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
551
|
+
}
|
|
552
|
+
return void undefined$4;
|
|
553
|
+
}
|
|
554
|
+
if ($gOPD$4 && (i + 1) >= parts.length) {
|
|
555
|
+
var desc = $gOPD$4(value, part);
|
|
556
|
+
isOwn = !!desc;
|
|
557
|
+
|
|
558
|
+
// By convention, when a data property is converted to an accessor
|
|
559
|
+
// property to emulate a data property that does not suffer from
|
|
560
|
+
// the override mistake, that accessor's getter is marked with
|
|
561
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
562
|
+
// uphold the illusion by pretending to see that original data
|
|
563
|
+
// property, i.e., returning the value rather than the getter
|
|
564
|
+
// itself.
|
|
565
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
566
|
+
value = desc.get;
|
|
567
|
+
} else {
|
|
568
|
+
value = value[part];
|
|
569
|
+
}
|
|
570
|
+
} else {
|
|
571
|
+
isOwn = hasOwn$4(value, part);
|
|
572
|
+
value = value[part];
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
if (isOwn && !skipFurtherCaching) {
|
|
576
|
+
INTRINSICS$3[intrinsicRealName] = value;
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
return value;
|
|
581
|
+
};
|
|
582
|
+
|
|
583
|
+
var undefined$3;
|
|
584
|
+
|
|
585
|
+
var $Error$2 = esErrors;
|
|
586
|
+
var $EvalError$2 = _eval;
|
|
587
|
+
var $RangeError$2 = range;
|
|
588
|
+
var $ReferenceError$2 = ref;
|
|
589
|
+
var $SyntaxError$3 = syntax;
|
|
590
|
+
var $TypeError$5 = type;
|
|
591
|
+
var $URIError$2 = uri;
|
|
592
|
+
|
|
593
|
+
var $Function$2 = Function;
|
|
594
|
+
|
|
595
|
+
// eslint-disable-next-line consistent-return
|
|
596
|
+
var getEvalledConstructor$2 = function (expressionSyntax) {
|
|
597
|
+
try {
|
|
598
|
+
return $Function$2('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
599
|
+
} catch (e) {}
|
|
600
|
+
};
|
|
601
|
+
|
|
602
|
+
var $gOPD$3 = Object.getOwnPropertyDescriptor;
|
|
603
|
+
if ($gOPD$3) {
|
|
604
|
+
try {
|
|
605
|
+
$gOPD$3({}, '');
|
|
606
|
+
} catch (e) {
|
|
607
|
+
$gOPD$3 = null; // this is IE 8, which has a broken gOPD
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
var throwTypeError$2 = function () {
|
|
612
|
+
throw new $TypeError$5();
|
|
613
|
+
};
|
|
614
|
+
var ThrowTypeError$2 = $gOPD$3
|
|
615
|
+
? (function () {
|
|
616
|
+
try {
|
|
617
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
618
|
+
arguments.callee; // IE 8 does not throw here
|
|
619
|
+
return throwTypeError$2;
|
|
620
|
+
} catch (calleeThrows) {
|
|
621
|
+
try {
|
|
622
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
623
|
+
return $gOPD$3(arguments, 'callee').get;
|
|
624
|
+
} catch (gOPDthrows) {
|
|
625
|
+
return throwTypeError$2;
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
}())
|
|
629
|
+
: throwTypeError$2;
|
|
630
|
+
|
|
631
|
+
var hasSymbols$2 = hasSymbols$4();
|
|
632
|
+
var hasProto$2 = hasProto$4();
|
|
633
|
+
|
|
634
|
+
var getProto$2 = Object.getPrototypeOf || (
|
|
635
|
+
hasProto$2
|
|
636
|
+
? function (x) { return x.__proto__; } // eslint-disable-line no-proto
|
|
637
|
+
: null
|
|
638
|
+
);
|
|
639
|
+
|
|
640
|
+
var needsEval$2 = {};
|
|
641
|
+
|
|
642
|
+
var TypedArray$2 = typeof Uint8Array === 'undefined' || !getProto$2 ? undefined$3 : getProto$2(Uint8Array);
|
|
643
|
+
|
|
644
|
+
var INTRINSICS$2 = {
|
|
645
|
+
__proto__: null,
|
|
646
|
+
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$3 : AggregateError,
|
|
647
|
+
'%Array%': Array,
|
|
648
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$3 : ArrayBuffer,
|
|
649
|
+
'%ArrayIteratorPrototype%': hasSymbols$2 && getProto$2 ? getProto$2([][Symbol.iterator]()) : undefined$3,
|
|
650
|
+
'%AsyncFromSyncIteratorPrototype%': undefined$3,
|
|
651
|
+
'%AsyncFunction%': needsEval$2,
|
|
652
|
+
'%AsyncGenerator%': needsEval$2,
|
|
653
|
+
'%AsyncGeneratorFunction%': needsEval$2,
|
|
654
|
+
'%AsyncIteratorPrototype%': needsEval$2,
|
|
655
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined$3 : Atomics,
|
|
656
|
+
'%BigInt%': typeof BigInt === 'undefined' ? undefined$3 : BigInt,
|
|
657
|
+
'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined$3 : BigInt64Array,
|
|
658
|
+
'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined$3 : BigUint64Array,
|
|
659
|
+
'%Boolean%': Boolean,
|
|
660
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined$3 : DataView,
|
|
661
|
+
'%Date%': Date,
|
|
662
|
+
'%decodeURI%': decodeURI,
|
|
663
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
664
|
+
'%encodeURI%': encodeURI,
|
|
665
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
666
|
+
'%Error%': $Error$2,
|
|
667
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
668
|
+
'%EvalError%': $EvalError$2,
|
|
669
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$3 : Float32Array,
|
|
670
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$3 : Float64Array,
|
|
671
|
+
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$3 : FinalizationRegistry,
|
|
672
|
+
'%Function%': $Function$2,
|
|
673
|
+
'%GeneratorFunction%': needsEval$2,
|
|
674
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$3 : Int8Array,
|
|
675
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$3 : Int16Array,
|
|
676
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$3 : Int32Array,
|
|
677
|
+
'%isFinite%': isFinite,
|
|
678
|
+
'%isNaN%': isNaN,
|
|
679
|
+
'%IteratorPrototype%': hasSymbols$2 && getProto$2 ? getProto$2(getProto$2([][Symbol.iterator]())) : undefined$3,
|
|
680
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined$3,
|
|
681
|
+
'%Map%': typeof Map === 'undefined' ? undefined$3 : Map,
|
|
682
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$2 || !getProto$2 ? undefined$3 : getProto$2(new Map()[Symbol.iterator]()),
|
|
683
|
+
'%Math%': Math,
|
|
684
|
+
'%Number%': Number,
|
|
685
|
+
'%Object%': Object,
|
|
686
|
+
'%parseFloat%': parseFloat,
|
|
687
|
+
'%parseInt%': parseInt,
|
|
688
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined$3 : Promise,
|
|
689
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined$3 : Proxy,
|
|
690
|
+
'%RangeError%': $RangeError$2,
|
|
691
|
+
'%ReferenceError%': $ReferenceError$2,
|
|
692
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined$3 : Reflect,
|
|
693
|
+
'%RegExp%': RegExp,
|
|
694
|
+
'%Set%': typeof Set === 'undefined' ? undefined$3 : Set,
|
|
695
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$2 || !getProto$2 ? undefined$3 : getProto$2(new Set()[Symbol.iterator]()),
|
|
696
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$3 : SharedArrayBuffer,
|
|
697
|
+
'%String%': String,
|
|
698
|
+
'%StringIteratorPrototype%': hasSymbols$2 && getProto$2 ? getProto$2(''[Symbol.iterator]()) : undefined$3,
|
|
699
|
+
'%Symbol%': hasSymbols$2 ? Symbol : undefined$3,
|
|
700
|
+
'%SyntaxError%': $SyntaxError$3,
|
|
701
|
+
'%ThrowTypeError%': ThrowTypeError$2,
|
|
702
|
+
'%TypedArray%': TypedArray$2,
|
|
703
|
+
'%TypeError%': $TypeError$5,
|
|
704
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$3 : Uint8Array,
|
|
705
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$3 : Uint8ClampedArray,
|
|
706
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$3 : Uint16Array,
|
|
707
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$3 : Uint32Array,
|
|
708
|
+
'%URIError%': $URIError$2,
|
|
709
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$3 : WeakMap,
|
|
710
|
+
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined$3 : WeakRef,
|
|
711
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$3 : WeakSet
|
|
712
|
+
};
|
|
713
|
+
|
|
714
|
+
if (getProto$2) {
|
|
715
|
+
try {
|
|
716
|
+
null.error; // eslint-disable-line no-unused-expressions
|
|
717
|
+
} catch (e) {
|
|
718
|
+
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
|
719
|
+
var errorProto$2 = getProto$2(getProto$2(e));
|
|
720
|
+
INTRINSICS$2['%Error.prototype%'] = errorProto$2;
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
var doEval$2 = function doEval(name) {
|
|
725
|
+
var value;
|
|
726
|
+
if (name === '%AsyncFunction%') {
|
|
727
|
+
value = getEvalledConstructor$2('async function () {}');
|
|
728
|
+
} else if (name === '%GeneratorFunction%') {
|
|
729
|
+
value = getEvalledConstructor$2('function* () {}');
|
|
730
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
731
|
+
value = getEvalledConstructor$2('async function* () {}');
|
|
732
|
+
} else if (name === '%AsyncGenerator%') {
|
|
733
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
734
|
+
if (fn) {
|
|
735
|
+
value = fn.prototype;
|
|
736
|
+
}
|
|
737
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
738
|
+
var gen = doEval('%AsyncGenerator%');
|
|
739
|
+
if (gen && getProto$2) {
|
|
740
|
+
value = getProto$2(gen.prototype);
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
INTRINSICS$2[name] = value;
|
|
745
|
+
|
|
746
|
+
return value;
|
|
747
|
+
};
|
|
748
|
+
|
|
749
|
+
var LEGACY_ALIASES$2 = {
|
|
750
|
+
__proto__: null,
|
|
751
|
+
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
752
|
+
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
753
|
+
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
754
|
+
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
755
|
+
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
756
|
+
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
757
|
+
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
758
|
+
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
759
|
+
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
760
|
+
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
761
|
+
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
762
|
+
'%DatePrototype%': ['Date', 'prototype'],
|
|
763
|
+
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
764
|
+
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
765
|
+
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
766
|
+
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
767
|
+
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
768
|
+
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
769
|
+
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
770
|
+
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
771
|
+
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
772
|
+
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
773
|
+
'%JSONParse%': ['JSON', 'parse'],
|
|
774
|
+
'%JSONStringify%': ['JSON', 'stringify'],
|
|
775
|
+
'%MapPrototype%': ['Map', 'prototype'],
|
|
776
|
+
'%NumberPrototype%': ['Number', 'prototype'],
|
|
777
|
+
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
778
|
+
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
779
|
+
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
780
|
+
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
781
|
+
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
782
|
+
'%Promise_all%': ['Promise', 'all'],
|
|
783
|
+
'%Promise_reject%': ['Promise', 'reject'],
|
|
784
|
+
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
785
|
+
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
786
|
+
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
787
|
+
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
788
|
+
'%SetPrototype%': ['Set', 'prototype'],
|
|
789
|
+
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
790
|
+
'%StringPrototype%': ['String', 'prototype'],
|
|
791
|
+
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
792
|
+
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
793
|
+
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
794
|
+
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
795
|
+
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
796
|
+
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
797
|
+
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
798
|
+
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
799
|
+
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
800
|
+
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
801
|
+
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
802
|
+
};
|
|
803
|
+
|
|
804
|
+
var bind$2 = functionBind;
|
|
805
|
+
var hasOwn$3 = hasown;
|
|
806
|
+
var $concat$3 = bind$2.call(Function.call, Array.prototype.concat);
|
|
807
|
+
var $spliceApply$2 = bind$2.call(Function.apply, Array.prototype.splice);
|
|
808
|
+
var $replace$3 = bind$2.call(Function.call, String.prototype.replace);
|
|
809
|
+
var $strSlice$2 = bind$2.call(Function.call, String.prototype.slice);
|
|
810
|
+
var $exec$2 = bind$2.call(Function.call, RegExp.prototype.exec);
|
|
811
|
+
|
|
812
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
813
|
+
var rePropName$2 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
814
|
+
var reEscapeChar$2 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
815
|
+
var stringToPath$2 = function stringToPath(string) {
|
|
816
|
+
var first = $strSlice$2(string, 0, 1);
|
|
817
|
+
var last = $strSlice$2(string, -1);
|
|
818
|
+
if (first === '%' && last !== '%') {
|
|
819
|
+
throw new $SyntaxError$3('invalid intrinsic syntax, expected closing `%`');
|
|
820
|
+
} else if (last === '%' && first !== '%') {
|
|
821
|
+
throw new $SyntaxError$3('invalid intrinsic syntax, expected opening `%`');
|
|
822
|
+
}
|
|
823
|
+
var result = [];
|
|
824
|
+
$replace$3(string, rePropName$2, function (match, number, quote, subString) {
|
|
825
|
+
result[result.length] = quote ? $replace$3(subString, reEscapeChar$2, '$1') : number || match;
|
|
826
|
+
});
|
|
827
|
+
return result;
|
|
828
|
+
};
|
|
829
|
+
/* end adaptation */
|
|
830
|
+
|
|
831
|
+
var getBaseIntrinsic$2 = function getBaseIntrinsic(name, allowMissing) {
|
|
832
|
+
var intrinsicName = name;
|
|
833
|
+
var alias;
|
|
834
|
+
if (hasOwn$3(LEGACY_ALIASES$2, intrinsicName)) {
|
|
835
|
+
alias = LEGACY_ALIASES$2[intrinsicName];
|
|
836
|
+
intrinsicName = '%' + alias[0] + '%';
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
if (hasOwn$3(INTRINSICS$2, intrinsicName)) {
|
|
840
|
+
var value = INTRINSICS$2[intrinsicName];
|
|
841
|
+
if (value === needsEval$2) {
|
|
842
|
+
value = doEval$2(intrinsicName);
|
|
843
|
+
}
|
|
844
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
845
|
+
throw new $TypeError$5('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
return {
|
|
849
|
+
alias: alias,
|
|
850
|
+
name: intrinsicName,
|
|
851
|
+
value: value
|
|
852
|
+
};
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
throw new $SyntaxError$3('intrinsic ' + name + ' does not exist!');
|
|
856
|
+
};
|
|
857
|
+
|
|
858
|
+
var getIntrinsic$3 = function GetIntrinsic(name, allowMissing) {
|
|
859
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
860
|
+
throw new $TypeError$5('intrinsic name must be a non-empty string');
|
|
861
|
+
}
|
|
862
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
863
|
+
throw new $TypeError$5('"allowMissing" argument must be a boolean');
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
if ($exec$2(/^%?[^%]*%?$/, name) === null) {
|
|
867
|
+
throw new $SyntaxError$3('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
868
|
+
}
|
|
869
|
+
var parts = stringToPath$2(name);
|
|
870
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
871
|
+
|
|
872
|
+
var intrinsic = getBaseIntrinsic$2('%' + intrinsicBaseName + '%', allowMissing);
|
|
873
|
+
var intrinsicRealName = intrinsic.name;
|
|
874
|
+
var value = intrinsic.value;
|
|
875
|
+
var skipFurtherCaching = false;
|
|
876
|
+
|
|
877
|
+
var alias = intrinsic.alias;
|
|
878
|
+
if (alias) {
|
|
879
|
+
intrinsicBaseName = alias[0];
|
|
880
|
+
$spliceApply$2(parts, $concat$3([0, 1], alias));
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
884
|
+
var part = parts[i];
|
|
885
|
+
var first = $strSlice$2(part, 0, 1);
|
|
886
|
+
var last = $strSlice$2(part, -1);
|
|
887
|
+
if (
|
|
888
|
+
(
|
|
889
|
+
(first === '"' || first === "'" || first === '`')
|
|
890
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
891
|
+
)
|
|
892
|
+
&& first !== last
|
|
893
|
+
) {
|
|
894
|
+
throw new $SyntaxError$3('property names with quotes must have matching quotes');
|
|
895
|
+
}
|
|
896
|
+
if (part === 'constructor' || !isOwn) {
|
|
897
|
+
skipFurtherCaching = true;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
intrinsicBaseName += '.' + part;
|
|
901
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
902
|
+
|
|
903
|
+
if (hasOwn$3(INTRINSICS$2, intrinsicRealName)) {
|
|
904
|
+
value = INTRINSICS$2[intrinsicRealName];
|
|
905
|
+
} else if (value != null) {
|
|
906
|
+
if (!(part in value)) {
|
|
907
|
+
if (!allowMissing) {
|
|
908
|
+
throw new $TypeError$5('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
909
|
+
}
|
|
910
|
+
return void undefined$3;
|
|
911
|
+
}
|
|
912
|
+
if ($gOPD$3 && (i + 1) >= parts.length) {
|
|
913
|
+
var desc = $gOPD$3(value, part);
|
|
914
|
+
isOwn = !!desc;
|
|
915
|
+
|
|
916
|
+
// By convention, when a data property is converted to an accessor
|
|
917
|
+
// property to emulate a data property that does not suffer from
|
|
918
|
+
// the override mistake, that accessor's getter is marked with
|
|
919
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
920
|
+
// uphold the illusion by pretending to see that original data
|
|
921
|
+
// property, i.e., returning the value rather than the getter
|
|
922
|
+
// itself.
|
|
923
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
924
|
+
value = desc.get;
|
|
925
|
+
} else {
|
|
926
|
+
value = value[part];
|
|
927
|
+
}
|
|
928
|
+
} else {
|
|
929
|
+
isOwn = hasOwn$3(value, part);
|
|
930
|
+
value = value[part];
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
if (isOwn && !skipFurtherCaching) {
|
|
934
|
+
INTRINSICS$2[intrinsicRealName] = value;
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
return value;
|
|
939
|
+
};
|
|
940
|
+
|
|
941
|
+
var callBind$1 = {exports: {}};
|
|
942
|
+
|
|
943
|
+
var undefined$2;
|
|
944
|
+
|
|
945
|
+
var $Error$1 = esErrors;
|
|
946
|
+
var $EvalError$1 = _eval;
|
|
947
|
+
var $RangeError$1 = range;
|
|
948
|
+
var $ReferenceError$1 = ref;
|
|
949
|
+
var $SyntaxError$2 = syntax;
|
|
950
|
+
var $TypeError$4 = type;
|
|
951
|
+
var $URIError$1 = uri;
|
|
952
|
+
|
|
953
|
+
var $Function$1 = Function;
|
|
954
|
+
|
|
955
|
+
// eslint-disable-next-line consistent-return
|
|
956
|
+
var getEvalledConstructor$1 = function (expressionSyntax) {
|
|
957
|
+
try {
|
|
958
|
+
return $Function$1('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
959
|
+
} catch (e) {}
|
|
960
|
+
};
|
|
961
|
+
|
|
962
|
+
var $gOPD$2 = Object.getOwnPropertyDescriptor;
|
|
963
|
+
if ($gOPD$2) {
|
|
964
|
+
try {
|
|
965
|
+
$gOPD$2({}, '');
|
|
966
|
+
} catch (e) {
|
|
967
|
+
$gOPD$2 = null; // this is IE 8, which has a broken gOPD
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
var throwTypeError$1 = function () {
|
|
972
|
+
throw new $TypeError$4();
|
|
973
|
+
};
|
|
974
|
+
var ThrowTypeError$1 = $gOPD$2
|
|
975
|
+
? (function () {
|
|
976
|
+
try {
|
|
977
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
978
|
+
arguments.callee; // IE 8 does not throw here
|
|
979
|
+
return throwTypeError$1;
|
|
980
|
+
} catch (calleeThrows) {
|
|
981
|
+
try {
|
|
982
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
983
|
+
return $gOPD$2(arguments, 'callee').get;
|
|
984
|
+
} catch (gOPDthrows) {
|
|
985
|
+
return throwTypeError$1;
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
}())
|
|
989
|
+
: throwTypeError$1;
|
|
990
|
+
|
|
991
|
+
var hasSymbols$1 = hasSymbols$4();
|
|
992
|
+
var hasProto$1 = hasProto$4();
|
|
993
|
+
|
|
994
|
+
var getProto$1 = Object.getPrototypeOf || (
|
|
995
|
+
hasProto$1
|
|
996
|
+
? function (x) { return x.__proto__; } // eslint-disable-line no-proto
|
|
997
|
+
: null
|
|
998
|
+
);
|
|
999
|
+
|
|
1000
|
+
var needsEval$1 = {};
|
|
1001
|
+
|
|
1002
|
+
var TypedArray$1 = typeof Uint8Array === 'undefined' || !getProto$1 ? undefined$2 : getProto$1(Uint8Array);
|
|
1003
|
+
|
|
1004
|
+
var INTRINSICS$1 = {
|
|
1005
|
+
__proto__: null,
|
|
1006
|
+
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$2 : AggregateError,
|
|
1007
|
+
'%Array%': Array,
|
|
1008
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
|
|
1009
|
+
'%ArrayIteratorPrototype%': hasSymbols$1 && getProto$1 ? getProto$1([][Symbol.iterator]()) : undefined$2,
|
|
1010
|
+
'%AsyncFromSyncIteratorPrototype%': undefined$2,
|
|
1011
|
+
'%AsyncFunction%': needsEval$1,
|
|
1012
|
+
'%AsyncGenerator%': needsEval$1,
|
|
1013
|
+
'%AsyncGeneratorFunction%': needsEval$1,
|
|
1014
|
+
'%AsyncIteratorPrototype%': needsEval$1,
|
|
1015
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
|
|
1016
|
+
'%BigInt%': typeof BigInt === 'undefined' ? undefined$2 : BigInt,
|
|
1017
|
+
'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined$2 : BigInt64Array,
|
|
1018
|
+
'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined$2 : BigUint64Array,
|
|
1019
|
+
'%Boolean%': Boolean,
|
|
1020
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
|
|
1021
|
+
'%Date%': Date,
|
|
1022
|
+
'%decodeURI%': decodeURI,
|
|
1023
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
1024
|
+
'%encodeURI%': encodeURI,
|
|
1025
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
1026
|
+
'%Error%': $Error$1,
|
|
1027
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
1028
|
+
'%EvalError%': $EvalError$1,
|
|
1029
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
|
|
1030
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
|
|
1031
|
+
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$2 : FinalizationRegistry,
|
|
1032
|
+
'%Function%': $Function$1,
|
|
1033
|
+
'%GeneratorFunction%': needsEval$1,
|
|
1034
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
|
|
1035
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
|
|
1036
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
|
|
1037
|
+
'%isFinite%': isFinite,
|
|
1038
|
+
'%isNaN%': isNaN,
|
|
1039
|
+
'%IteratorPrototype%': hasSymbols$1 && getProto$1 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
|
|
1040
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
|
|
1041
|
+
'%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
|
|
1042
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$1 || !getProto$1 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
|
|
1043
|
+
'%Math%': Math,
|
|
1044
|
+
'%Number%': Number,
|
|
1045
|
+
'%Object%': Object,
|
|
1046
|
+
'%parseFloat%': parseFloat,
|
|
1047
|
+
'%parseInt%': parseInt,
|
|
1048
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
|
|
1049
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
|
|
1050
|
+
'%RangeError%': $RangeError$1,
|
|
1051
|
+
'%ReferenceError%': $ReferenceError$1,
|
|
1052
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
|
|
1053
|
+
'%RegExp%': RegExp,
|
|
1054
|
+
'%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
|
|
1055
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$1 || !getProto$1 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
|
|
1056
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
|
|
1057
|
+
'%String%': String,
|
|
1058
|
+
'%StringIteratorPrototype%': hasSymbols$1 && getProto$1 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
|
|
1059
|
+
'%Symbol%': hasSymbols$1 ? Symbol : undefined$2,
|
|
1060
|
+
'%SyntaxError%': $SyntaxError$2,
|
|
1061
|
+
'%ThrowTypeError%': ThrowTypeError$1,
|
|
1062
|
+
'%TypedArray%': TypedArray$1,
|
|
1063
|
+
'%TypeError%': $TypeError$4,
|
|
1064
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
|
|
1065
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
|
|
1066
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
|
|
1067
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
|
|
1068
|
+
'%URIError%': $URIError$1,
|
|
1069
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
|
|
1070
|
+
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined$2 : WeakRef,
|
|
1071
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet
|
|
1072
|
+
};
|
|
1073
|
+
|
|
1074
|
+
if (getProto$1) {
|
|
1075
|
+
try {
|
|
1076
|
+
null.error; // eslint-disable-line no-unused-expressions
|
|
1077
|
+
} catch (e) {
|
|
1078
|
+
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
|
1079
|
+
var errorProto$1 = getProto$1(getProto$1(e));
|
|
1080
|
+
INTRINSICS$1['%Error.prototype%'] = errorProto$1;
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
var doEval$1 = function doEval(name) {
|
|
1085
|
+
var value;
|
|
1086
|
+
if (name === '%AsyncFunction%') {
|
|
1087
|
+
value = getEvalledConstructor$1('async function () {}');
|
|
1088
|
+
} else if (name === '%GeneratorFunction%') {
|
|
1089
|
+
value = getEvalledConstructor$1('function* () {}');
|
|
1090
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
1091
|
+
value = getEvalledConstructor$1('async function* () {}');
|
|
1092
|
+
} else if (name === '%AsyncGenerator%') {
|
|
1093
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
1094
|
+
if (fn) {
|
|
1095
|
+
value = fn.prototype;
|
|
1096
|
+
}
|
|
1097
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
1098
|
+
var gen = doEval('%AsyncGenerator%');
|
|
1099
|
+
if (gen && getProto$1) {
|
|
1100
|
+
value = getProto$1(gen.prototype);
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
INTRINSICS$1[name] = value;
|
|
1105
|
+
|
|
1106
|
+
return value;
|
|
1107
|
+
};
|
|
1108
|
+
|
|
1109
|
+
var LEGACY_ALIASES$1 = {
|
|
1110
|
+
__proto__: null,
|
|
1111
|
+
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
1112
|
+
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
1113
|
+
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
1114
|
+
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
1115
|
+
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
1116
|
+
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
1117
|
+
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
1118
|
+
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
1119
|
+
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
1120
|
+
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
1121
|
+
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
1122
|
+
'%DatePrototype%': ['Date', 'prototype'],
|
|
1123
|
+
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
1124
|
+
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
1125
|
+
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
1126
|
+
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
1127
|
+
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
1128
|
+
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
1129
|
+
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
1130
|
+
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
1131
|
+
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
1132
|
+
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
1133
|
+
'%JSONParse%': ['JSON', 'parse'],
|
|
1134
|
+
'%JSONStringify%': ['JSON', 'stringify'],
|
|
1135
|
+
'%MapPrototype%': ['Map', 'prototype'],
|
|
1136
|
+
'%NumberPrototype%': ['Number', 'prototype'],
|
|
1137
|
+
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
1138
|
+
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
1139
|
+
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
1140
|
+
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
1141
|
+
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
1142
|
+
'%Promise_all%': ['Promise', 'all'],
|
|
1143
|
+
'%Promise_reject%': ['Promise', 'reject'],
|
|
1144
|
+
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
1145
|
+
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
1146
|
+
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
1147
|
+
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
1148
|
+
'%SetPrototype%': ['Set', 'prototype'],
|
|
1149
|
+
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
1150
|
+
'%StringPrototype%': ['String', 'prototype'],
|
|
1151
|
+
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
1152
|
+
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
1153
|
+
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
1154
|
+
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
1155
|
+
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
1156
|
+
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
1157
|
+
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
1158
|
+
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
1159
|
+
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
1160
|
+
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
1161
|
+
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
1162
|
+
};
|
|
1163
|
+
|
|
1164
|
+
var bind$1 = functionBind;
|
|
1165
|
+
var hasOwn$2 = hasown;
|
|
1166
|
+
var $concat$2 = bind$1.call(Function.call, Array.prototype.concat);
|
|
1167
|
+
var $spliceApply$1 = bind$1.call(Function.apply, Array.prototype.splice);
|
|
1168
|
+
var $replace$2 = bind$1.call(Function.call, String.prototype.replace);
|
|
1169
|
+
var $strSlice$1 = bind$1.call(Function.call, String.prototype.slice);
|
|
1170
|
+
var $exec$1 = bind$1.call(Function.call, RegExp.prototype.exec);
|
|
1171
|
+
|
|
1172
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
1173
|
+
var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
1174
|
+
var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
1175
|
+
var stringToPath$1 = function stringToPath(string) {
|
|
1176
|
+
var first = $strSlice$1(string, 0, 1);
|
|
1177
|
+
var last = $strSlice$1(string, -1);
|
|
1178
|
+
if (first === '%' && last !== '%') {
|
|
1179
|
+
throw new $SyntaxError$2('invalid intrinsic syntax, expected closing `%`');
|
|
1180
|
+
} else if (last === '%' && first !== '%') {
|
|
1181
|
+
throw new $SyntaxError$2('invalid intrinsic syntax, expected opening `%`');
|
|
1182
|
+
}
|
|
1183
|
+
var result = [];
|
|
1184
|
+
$replace$2(string, rePropName$1, function (match, number, quote, subString) {
|
|
1185
|
+
result[result.length] = quote ? $replace$2(subString, reEscapeChar$1, '$1') : number || match;
|
|
1186
|
+
});
|
|
1187
|
+
return result;
|
|
1188
|
+
};
|
|
1189
|
+
/* end adaptation */
|
|
1190
|
+
|
|
1191
|
+
var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
|
|
1192
|
+
var intrinsicName = name;
|
|
1193
|
+
var alias;
|
|
1194
|
+
if (hasOwn$2(LEGACY_ALIASES$1, intrinsicName)) {
|
|
1195
|
+
alias = LEGACY_ALIASES$1[intrinsicName];
|
|
1196
|
+
intrinsicName = '%' + alias[0] + '%';
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
if (hasOwn$2(INTRINSICS$1, intrinsicName)) {
|
|
1200
|
+
var value = INTRINSICS$1[intrinsicName];
|
|
1201
|
+
if (value === needsEval$1) {
|
|
1202
|
+
value = doEval$1(intrinsicName);
|
|
1203
|
+
}
|
|
1204
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
1205
|
+
throw new $TypeError$4('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
return {
|
|
1209
|
+
alias: alias,
|
|
1210
|
+
name: intrinsicName,
|
|
1211
|
+
value: value
|
|
1212
|
+
};
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
throw new $SyntaxError$2('intrinsic ' + name + ' does not exist!');
|
|
1216
|
+
};
|
|
52
1217
|
|
|
53
|
-
|
|
54
|
-
if (
|
|
1218
|
+
var getIntrinsic$2 = function GetIntrinsic(name, allowMissing) {
|
|
1219
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
1220
|
+
throw new $TypeError$4('intrinsic name must be a non-empty string');
|
|
1221
|
+
}
|
|
1222
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
1223
|
+
throw new $TypeError$4('"allowMissing" argument must be a boolean');
|
|
1224
|
+
}
|
|
55
1225
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
1226
|
+
if ($exec$1(/^%?[^%]*%?$/, name) === null) {
|
|
1227
|
+
throw new $SyntaxError$2('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
1228
|
+
}
|
|
1229
|
+
var parts = stringToPath$1(name);
|
|
1230
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
60
1231
|
|
|
61
|
-
|
|
62
|
-
|
|
1232
|
+
var intrinsic = getBaseIntrinsic$1('%' + intrinsicBaseName + '%', allowMissing);
|
|
1233
|
+
var intrinsicRealName = intrinsic.name;
|
|
1234
|
+
var value = intrinsic.value;
|
|
1235
|
+
var skipFurtherCaching = false;
|
|
63
1236
|
|
|
64
|
-
var
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
1237
|
+
var alias = intrinsic.alias;
|
|
1238
|
+
if (alias) {
|
|
1239
|
+
intrinsicBaseName = alias[0];
|
|
1240
|
+
$spliceApply$1(parts, $concat$2([0, 1], alias));
|
|
1241
|
+
}
|
|
68
1242
|
|
|
69
|
-
|
|
1243
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
1244
|
+
var part = parts[i];
|
|
1245
|
+
var first = $strSlice$1(part, 0, 1);
|
|
1246
|
+
var last = $strSlice$1(part, -1);
|
|
1247
|
+
if (
|
|
1248
|
+
(
|
|
1249
|
+
(first === '"' || first === "'" || first === '`')
|
|
1250
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
1251
|
+
)
|
|
1252
|
+
&& first !== last
|
|
1253
|
+
) {
|
|
1254
|
+
throw new $SyntaxError$2('property names with quotes must have matching quotes');
|
|
1255
|
+
}
|
|
1256
|
+
if (part === 'constructor' || !isOwn) {
|
|
1257
|
+
skipFurtherCaching = true;
|
|
1258
|
+
}
|
|
70
1259
|
|
|
71
|
-
|
|
72
|
-
|
|
1260
|
+
intrinsicBaseName += '.' + part;
|
|
1261
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
73
1262
|
|
|
74
|
-
|
|
1263
|
+
if (hasOwn$2(INTRINSICS$1, intrinsicRealName)) {
|
|
1264
|
+
value = INTRINSICS$1[intrinsicRealName];
|
|
1265
|
+
} else if (value != null) {
|
|
1266
|
+
if (!(part in value)) {
|
|
1267
|
+
if (!allowMissing) {
|
|
1268
|
+
throw new $TypeError$4('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1269
|
+
}
|
|
1270
|
+
return void undefined$2;
|
|
1271
|
+
}
|
|
1272
|
+
if ($gOPD$2 && (i + 1) >= parts.length) {
|
|
1273
|
+
var desc = $gOPD$2(value, part);
|
|
1274
|
+
isOwn = !!desc;
|
|
75
1275
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
1276
|
+
// By convention, when a data property is converted to an accessor
|
|
1277
|
+
// property to emulate a data property that does not suffer from
|
|
1278
|
+
// the override mistake, that accessor's getter is marked with
|
|
1279
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
1280
|
+
// uphold the illusion by pretending to see that original data
|
|
1281
|
+
// property, i.e., returning the value rather than the getter
|
|
1282
|
+
// itself.
|
|
1283
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
1284
|
+
value = desc.get;
|
|
1285
|
+
} else {
|
|
1286
|
+
value = value[part];
|
|
1287
|
+
}
|
|
1288
|
+
} else {
|
|
1289
|
+
isOwn = hasOwn$2(value, part);
|
|
1290
|
+
value = value[part];
|
|
1291
|
+
}
|
|
80
1292
|
|
|
81
|
-
|
|
1293
|
+
if (isOwn && !skipFurtherCaching) {
|
|
1294
|
+
INTRINSICS$1[intrinsicRealName] = value;
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
return value;
|
|
82
1299
|
};
|
|
83
1300
|
|
|
84
|
-
var
|
|
85
|
-
var
|
|
1301
|
+
var getIntrinsic$1;
|
|
1302
|
+
var hasRequiredGetIntrinsic;
|
|
86
1303
|
|
|
87
|
-
|
|
88
|
-
if (
|
|
89
|
-
|
|
90
|
-
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
91
|
-
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
|
1304
|
+
function requireGetIntrinsic () {
|
|
1305
|
+
if (hasRequiredGetIntrinsic) return getIntrinsic$1;
|
|
1306
|
+
hasRequiredGetIntrinsic = 1;
|
|
92
1307
|
|
|
93
|
-
|
|
94
|
-
};
|
|
1308
|
+
var undefined$1;
|
|
95
1309
|
|
|
96
|
-
var
|
|
97
|
-
|
|
98
|
-
|
|
1310
|
+
var $Error = esErrors;
|
|
1311
|
+
var $EvalError = _eval;
|
|
1312
|
+
var $RangeError = range;
|
|
1313
|
+
var $ReferenceError = ref;
|
|
1314
|
+
var $SyntaxError = syntax;
|
|
1315
|
+
var $TypeError = type;
|
|
1316
|
+
var $URIError = uri;
|
|
99
1317
|
|
|
100
|
-
var $
|
|
1318
|
+
var $Function = Function;
|
|
101
1319
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
1320
|
+
// eslint-disable-next-line consistent-return
|
|
1321
|
+
var getEvalledConstructor = function (expressionSyntax) {
|
|
1322
|
+
try {
|
|
1323
|
+
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
1324
|
+
} catch (e) {}
|
|
1325
|
+
};
|
|
105
1326
|
|
|
106
|
-
|
|
1327
|
+
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
1328
|
+
if ($gOPD) {
|
|
1329
|
+
try {
|
|
1330
|
+
$gOPD({}, '');
|
|
1331
|
+
} catch (e) {
|
|
1332
|
+
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
107
1335
|
|
|
108
|
-
var
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
var
|
|
1336
|
+
var throwTypeError = function () {
|
|
1337
|
+
throw new $TypeError();
|
|
1338
|
+
};
|
|
1339
|
+
var ThrowTypeError = $gOPD
|
|
1340
|
+
? (function () {
|
|
1341
|
+
try {
|
|
1342
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
1343
|
+
arguments.callee; // IE 8 does not throw here
|
|
1344
|
+
return throwTypeError;
|
|
1345
|
+
} catch (calleeThrows) {
|
|
1346
|
+
try {
|
|
1347
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
1348
|
+
return $gOPD(arguments, 'callee').get;
|
|
1349
|
+
} catch (gOPDthrows) {
|
|
1350
|
+
return throwTypeError;
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
}())
|
|
1354
|
+
: throwTypeError;
|
|
1355
|
+
|
|
1356
|
+
var hasSymbols = hasSymbols$4();
|
|
1357
|
+
var hasProto = hasProto$4();
|
|
1358
|
+
|
|
1359
|
+
var getProto = Object.getPrototypeOf || (
|
|
1360
|
+
hasProto
|
|
1361
|
+
? function (x) { return x.__proto__; } // eslint-disable-line no-proto
|
|
1362
|
+
: null
|
|
1363
|
+
);
|
|
1364
|
+
|
|
1365
|
+
var needsEval = {};
|
|
1366
|
+
|
|
1367
|
+
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
1368
|
+
|
|
1369
|
+
var INTRINSICS = {
|
|
1370
|
+
__proto__: null,
|
|
1371
|
+
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
|
|
1372
|
+
'%Array%': Array,
|
|
1373
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
|
|
1374
|
+
'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
|
|
1375
|
+
'%AsyncFromSyncIteratorPrototype%': undefined$1,
|
|
1376
|
+
'%AsyncFunction%': needsEval,
|
|
1377
|
+
'%AsyncGenerator%': needsEval,
|
|
1378
|
+
'%AsyncGeneratorFunction%': needsEval,
|
|
1379
|
+
'%AsyncIteratorPrototype%': needsEval,
|
|
1380
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
|
|
1381
|
+
'%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
|
|
1382
|
+
'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined$1 : BigInt64Array,
|
|
1383
|
+
'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined$1 : BigUint64Array,
|
|
1384
|
+
'%Boolean%': Boolean,
|
|
1385
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
|
|
1386
|
+
'%Date%': Date,
|
|
1387
|
+
'%decodeURI%': decodeURI,
|
|
1388
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
1389
|
+
'%encodeURI%': encodeURI,
|
|
1390
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
1391
|
+
'%Error%': $Error,
|
|
1392
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
1393
|
+
'%EvalError%': $EvalError,
|
|
1394
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
|
|
1395
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
|
|
1396
|
+
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
|
|
1397
|
+
'%Function%': $Function,
|
|
1398
|
+
'%GeneratorFunction%': needsEval,
|
|
1399
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
|
|
1400
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
|
|
1401
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
|
|
1402
|
+
'%isFinite%': isFinite,
|
|
1403
|
+
'%isNaN%': isNaN,
|
|
1404
|
+
'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
|
|
1405
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
|
|
1406
|
+
'%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
|
|
1407
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
|
|
1408
|
+
'%Math%': Math,
|
|
1409
|
+
'%Number%': Number,
|
|
1410
|
+
'%Object%': Object,
|
|
1411
|
+
'%parseFloat%': parseFloat,
|
|
1412
|
+
'%parseInt%': parseInt,
|
|
1413
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
|
|
1414
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
|
|
1415
|
+
'%RangeError%': $RangeError,
|
|
1416
|
+
'%ReferenceError%': $ReferenceError,
|
|
1417
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
|
|
1418
|
+
'%RegExp%': RegExp,
|
|
1419
|
+
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
|
|
1420
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
|
|
1421
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
|
|
1422
|
+
'%String%': String,
|
|
1423
|
+
'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
|
|
1424
|
+
'%Symbol%': hasSymbols ? Symbol : undefined$1,
|
|
1425
|
+
'%SyntaxError%': $SyntaxError,
|
|
1426
|
+
'%ThrowTypeError%': ThrowTypeError,
|
|
1427
|
+
'%TypedArray%': TypedArray,
|
|
1428
|
+
'%TypeError%': $TypeError,
|
|
1429
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
|
|
1430
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
|
|
1431
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
|
|
1432
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
|
|
1433
|
+
'%URIError%': $URIError,
|
|
1434
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
|
|
1435
|
+
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
|
|
1436
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
|
|
1437
|
+
};
|
|
112
1438
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
1439
|
+
if (getProto) {
|
|
1440
|
+
try {
|
|
1441
|
+
null.error; // eslint-disable-line no-unused-expressions
|
|
1442
|
+
} catch (e) {
|
|
1443
|
+
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
|
1444
|
+
var errorProto = getProto(getProto(e));
|
|
1445
|
+
INTRINSICS['%Error.prototype%'] = errorProto;
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
119
1448
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
1449
|
+
var doEval = function doEval(name) {
|
|
1450
|
+
var value;
|
|
1451
|
+
if (name === '%AsyncFunction%') {
|
|
1452
|
+
value = getEvalledConstructor('async function () {}');
|
|
1453
|
+
} else if (name === '%GeneratorFunction%') {
|
|
1454
|
+
value = getEvalledConstructor('function* () {}');
|
|
1455
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
1456
|
+
value = getEvalledConstructor('async function* () {}');
|
|
1457
|
+
} else if (name === '%AsyncGenerator%') {
|
|
1458
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
1459
|
+
if (fn) {
|
|
1460
|
+
value = fn.prototype;
|
|
1461
|
+
}
|
|
1462
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
1463
|
+
var gen = doEval('%AsyncGenerator%');
|
|
1464
|
+
if (gen && getProto) {
|
|
1465
|
+
value = getProto(gen.prototype);
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
138
1468
|
|
|
139
|
-
|
|
140
|
-
var boundArgs = [];
|
|
141
|
-
for (var i = 0; i < boundLength; i++) {
|
|
142
|
-
boundArgs.push('$' + i);
|
|
143
|
-
}
|
|
1469
|
+
INTRINSICS[name] = value;
|
|
144
1470
|
|
|
145
|
-
|
|
1471
|
+
return value;
|
|
1472
|
+
};
|
|
146
1473
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
1474
|
+
var LEGACY_ALIASES = {
|
|
1475
|
+
__proto__: null,
|
|
1476
|
+
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
1477
|
+
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
1478
|
+
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
1479
|
+
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
1480
|
+
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
1481
|
+
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
1482
|
+
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
1483
|
+
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
1484
|
+
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
1485
|
+
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
1486
|
+
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
1487
|
+
'%DatePrototype%': ['Date', 'prototype'],
|
|
1488
|
+
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
1489
|
+
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
1490
|
+
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
1491
|
+
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
1492
|
+
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
1493
|
+
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
1494
|
+
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
1495
|
+
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
1496
|
+
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
1497
|
+
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
1498
|
+
'%JSONParse%': ['JSON', 'parse'],
|
|
1499
|
+
'%JSONStringify%': ['JSON', 'stringify'],
|
|
1500
|
+
'%MapPrototype%': ['Map', 'prototype'],
|
|
1501
|
+
'%NumberPrototype%': ['Number', 'prototype'],
|
|
1502
|
+
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
1503
|
+
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
1504
|
+
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
1505
|
+
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
1506
|
+
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
1507
|
+
'%Promise_all%': ['Promise', 'all'],
|
|
1508
|
+
'%Promise_reject%': ['Promise', 'reject'],
|
|
1509
|
+
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
1510
|
+
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
1511
|
+
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
1512
|
+
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
1513
|
+
'%SetPrototype%': ['Set', 'prototype'],
|
|
1514
|
+
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
1515
|
+
'%StringPrototype%': ['String', 'prototype'],
|
|
1516
|
+
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
1517
|
+
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
1518
|
+
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
1519
|
+
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
1520
|
+
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
1521
|
+
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
1522
|
+
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
1523
|
+
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
1524
|
+
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
1525
|
+
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
1526
|
+
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
1527
|
+
};
|
|
153
1528
|
|
|
154
|
-
|
|
155
|
-
|
|
1529
|
+
var bind = functionBind;
|
|
1530
|
+
var hasOwn = hasown;
|
|
1531
|
+
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
1532
|
+
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
1533
|
+
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
1534
|
+
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
1535
|
+
var $exec = bind.call(Function.call, RegExp.prototype.exec);
|
|
1536
|
+
|
|
1537
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
1538
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
1539
|
+
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
1540
|
+
var stringToPath = function stringToPath(string) {
|
|
1541
|
+
var first = $strSlice(string, 0, 1);
|
|
1542
|
+
var last = $strSlice(string, -1);
|
|
1543
|
+
if (first === '%' && last !== '%') {
|
|
1544
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
1545
|
+
} else if (last === '%' && first !== '%') {
|
|
1546
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
1547
|
+
}
|
|
1548
|
+
var result = [];
|
|
1549
|
+
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
1550
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
1551
|
+
});
|
|
1552
|
+
return result;
|
|
1553
|
+
};
|
|
1554
|
+
/* end adaptation */
|
|
1555
|
+
|
|
1556
|
+
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
1557
|
+
var intrinsicName = name;
|
|
1558
|
+
var alias;
|
|
1559
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
1560
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
1561
|
+
intrinsicName = '%' + alias[0] + '%';
|
|
1562
|
+
}
|
|
156
1563
|
|
|
157
|
-
|
|
1564
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
1565
|
+
var value = INTRINSICS[intrinsicName];
|
|
1566
|
+
if (value === needsEval) {
|
|
1567
|
+
value = doEval(intrinsicName);
|
|
1568
|
+
}
|
|
1569
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
1570
|
+
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
1571
|
+
}
|
|
158
1572
|
|
|
159
|
-
|
|
1573
|
+
return {
|
|
1574
|
+
alias: alias,
|
|
1575
|
+
name: intrinsicName,
|
|
1576
|
+
value: value
|
|
1577
|
+
};
|
|
1578
|
+
}
|
|
160
1579
|
|
|
161
|
-
|
|
1580
|
+
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
1581
|
+
};
|
|
1582
|
+
|
|
1583
|
+
getIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
|
|
1584
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
1585
|
+
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
1586
|
+
}
|
|
1587
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
1588
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
1592
|
+
throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
1593
|
+
}
|
|
1594
|
+
var parts = stringToPath(name);
|
|
1595
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
1596
|
+
|
|
1597
|
+
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
1598
|
+
var intrinsicRealName = intrinsic.name;
|
|
1599
|
+
var value = intrinsic.value;
|
|
1600
|
+
var skipFurtherCaching = false;
|
|
1601
|
+
|
|
1602
|
+
var alias = intrinsic.alias;
|
|
1603
|
+
if (alias) {
|
|
1604
|
+
intrinsicBaseName = alias[0];
|
|
1605
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
1609
|
+
var part = parts[i];
|
|
1610
|
+
var first = $strSlice(part, 0, 1);
|
|
1611
|
+
var last = $strSlice(part, -1);
|
|
1612
|
+
if (
|
|
1613
|
+
(
|
|
1614
|
+
(first === '"' || first === "'" || first === '`')
|
|
1615
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
1616
|
+
)
|
|
1617
|
+
&& first !== last
|
|
1618
|
+
) {
|
|
1619
|
+
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
1620
|
+
}
|
|
1621
|
+
if (part === 'constructor' || !isOwn) {
|
|
1622
|
+
skipFurtherCaching = true;
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
intrinsicBaseName += '.' + part;
|
|
1626
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
1627
|
+
|
|
1628
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
1629
|
+
value = INTRINSICS[intrinsicRealName];
|
|
1630
|
+
} else if (value != null) {
|
|
1631
|
+
if (!(part in value)) {
|
|
1632
|
+
if (!allowMissing) {
|
|
1633
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1634
|
+
}
|
|
1635
|
+
return void undefined$1;
|
|
1636
|
+
}
|
|
1637
|
+
if ($gOPD && (i + 1) >= parts.length) {
|
|
1638
|
+
var desc = $gOPD(value, part);
|
|
1639
|
+
isOwn = !!desc;
|
|
1640
|
+
|
|
1641
|
+
// By convention, when a data property is converted to an accessor
|
|
1642
|
+
// property to emulate a data property that does not suffer from
|
|
1643
|
+
// the override mistake, that accessor's getter is marked with
|
|
1644
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
1645
|
+
// uphold the illusion by pretending to see that original data
|
|
1646
|
+
// property, i.e., returning the value rather than the getter
|
|
1647
|
+
// itself.
|
|
1648
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
1649
|
+
value = desc.get;
|
|
1650
|
+
} else {
|
|
1651
|
+
value = value[part];
|
|
1652
|
+
}
|
|
1653
|
+
} else {
|
|
1654
|
+
isOwn = hasOwn(value, part);
|
|
1655
|
+
value = value[part];
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
if (isOwn && !skipFurtherCaching) {
|
|
1659
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
return value;
|
|
1664
|
+
};
|
|
1665
|
+
return getIntrinsic$1;
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
var esDefineProperty;
|
|
1669
|
+
var hasRequiredEsDefineProperty;
|
|
1670
|
+
|
|
1671
|
+
function requireEsDefineProperty () {
|
|
1672
|
+
if (hasRequiredEsDefineProperty) return esDefineProperty;
|
|
1673
|
+
hasRequiredEsDefineProperty = 1;
|
|
1674
|
+
|
|
1675
|
+
var GetIntrinsic = requireGetIntrinsic();
|
|
1676
|
+
|
|
1677
|
+
/** @type {import('.')} */
|
|
1678
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true) || false;
|
|
1679
|
+
if ($defineProperty) {
|
|
1680
|
+
try {
|
|
1681
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
1682
|
+
} catch (e) {
|
|
1683
|
+
// IE 8 has a broken defineProperty
|
|
1684
|
+
$defineProperty = false;
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
162
1687
|
|
|
163
|
-
|
|
1688
|
+
esDefineProperty = $defineProperty;
|
|
1689
|
+
return esDefineProperty;
|
|
1690
|
+
}
|
|
164
1691
|
|
|
165
1692
|
var undefined$1;
|
|
166
1693
|
|
|
167
|
-
var $
|
|
1694
|
+
var $Error = esErrors;
|
|
1695
|
+
var $EvalError = _eval;
|
|
1696
|
+
var $RangeError = range;
|
|
1697
|
+
var $ReferenceError = ref;
|
|
1698
|
+
var $SyntaxError$1 = syntax;
|
|
1699
|
+
var $TypeError$3 = type;
|
|
1700
|
+
var $URIError = uri;
|
|
1701
|
+
|
|
168
1702
|
var $Function = Function;
|
|
169
|
-
var $TypeError$1 = TypeError;
|
|
170
1703
|
|
|
171
1704
|
// eslint-disable-next-line consistent-return
|
|
172
1705
|
var getEvalledConstructor = function (expressionSyntax) {
|
|
@@ -175,19 +1708,19 @@ var getEvalledConstructor = function (expressionSyntax) {
|
|
|
175
1708
|
} catch (e) {}
|
|
176
1709
|
};
|
|
177
1710
|
|
|
178
|
-
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
179
|
-
if ($gOPD) {
|
|
1711
|
+
var $gOPD$1 = Object.getOwnPropertyDescriptor;
|
|
1712
|
+
if ($gOPD$1) {
|
|
180
1713
|
try {
|
|
181
|
-
$gOPD({}, '');
|
|
1714
|
+
$gOPD$1({}, '');
|
|
182
1715
|
} catch (e) {
|
|
183
|
-
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
1716
|
+
$gOPD$1 = null; // this is IE 8, which has a broken gOPD
|
|
184
1717
|
}
|
|
185
1718
|
}
|
|
186
1719
|
|
|
187
1720
|
var throwTypeError = function () {
|
|
188
|
-
throw new $TypeError$
|
|
1721
|
+
throw new $TypeError$3();
|
|
189
1722
|
};
|
|
190
|
-
var ThrowTypeError = $gOPD
|
|
1723
|
+
var ThrowTypeError = $gOPD$1
|
|
191
1724
|
? (function () {
|
|
192
1725
|
try {
|
|
193
1726
|
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
@@ -196,7 +1729,7 @@ var ThrowTypeError = $gOPD
|
|
|
196
1729
|
} catch (calleeThrows) {
|
|
197
1730
|
try {
|
|
198
1731
|
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
199
|
-
return $gOPD(arguments, 'callee').get;
|
|
1732
|
+
return $gOPD$1(arguments, 'callee').get;
|
|
200
1733
|
} catch (gOPDthrows) {
|
|
201
1734
|
return throwTypeError;
|
|
202
1735
|
}
|
|
@@ -204,8 +1737,8 @@ var ThrowTypeError = $gOPD
|
|
|
204
1737
|
}())
|
|
205
1738
|
: throwTypeError;
|
|
206
1739
|
|
|
207
|
-
var hasSymbols = hasSymbols$
|
|
208
|
-
var hasProto = hasProto$
|
|
1740
|
+
var hasSymbols = hasSymbols$4();
|
|
1741
|
+
var hasProto = hasProto$4();
|
|
209
1742
|
|
|
210
1743
|
var getProto = Object.getPrototypeOf || (
|
|
211
1744
|
hasProto
|
|
@@ -218,6 +1751,7 @@ var needsEval = {};
|
|
|
218
1751
|
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
219
1752
|
|
|
220
1753
|
var INTRINSICS = {
|
|
1754
|
+
__proto__: null,
|
|
221
1755
|
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
|
|
222
1756
|
'%Array%': Array,
|
|
223
1757
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
|
|
@@ -238,9 +1772,9 @@ var INTRINSICS = {
|
|
|
238
1772
|
'%decodeURIComponent%': decodeURIComponent,
|
|
239
1773
|
'%encodeURI%': encodeURI,
|
|
240
1774
|
'%encodeURIComponent%': encodeURIComponent,
|
|
241
|
-
'%Error%': Error,
|
|
1775
|
+
'%Error%': $Error,
|
|
242
1776
|
'%eval%': eval, // eslint-disable-line no-eval
|
|
243
|
-
'%EvalError%': EvalError,
|
|
1777
|
+
'%EvalError%': $EvalError,
|
|
244
1778
|
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
|
|
245
1779
|
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
|
|
246
1780
|
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
|
|
@@ -262,8 +1796,8 @@ var INTRINSICS = {
|
|
|
262
1796
|
'%parseInt%': parseInt,
|
|
263
1797
|
'%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
|
|
264
1798
|
'%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
|
|
265
|
-
'%RangeError%': RangeError,
|
|
266
|
-
'%ReferenceError%': ReferenceError,
|
|
1799
|
+
'%RangeError%': $RangeError,
|
|
1800
|
+
'%ReferenceError%': $ReferenceError,
|
|
267
1801
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
|
|
268
1802
|
'%RegExp%': RegExp,
|
|
269
1803
|
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
|
|
@@ -272,15 +1806,15 @@ var INTRINSICS = {
|
|
|
272
1806
|
'%String%': String,
|
|
273
1807
|
'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
|
|
274
1808
|
'%Symbol%': hasSymbols ? Symbol : undefined$1,
|
|
275
|
-
'%SyntaxError%': $SyntaxError,
|
|
1809
|
+
'%SyntaxError%': $SyntaxError$1,
|
|
276
1810
|
'%ThrowTypeError%': ThrowTypeError,
|
|
277
1811
|
'%TypedArray%': TypedArray,
|
|
278
|
-
'%TypeError%': $TypeError$
|
|
1812
|
+
'%TypeError%': $TypeError$3,
|
|
279
1813
|
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
|
|
280
1814
|
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
|
|
281
1815
|
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
|
|
282
1816
|
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
|
|
283
|
-
'%URIError%': URIError,
|
|
1817
|
+
'%URIError%': $URIError,
|
|
284
1818
|
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
|
|
285
1819
|
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
|
|
286
1820
|
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
|
|
@@ -322,6 +1856,7 @@ var doEval = function doEval(name) {
|
|
|
322
1856
|
};
|
|
323
1857
|
|
|
324
1858
|
var LEGACY_ALIASES = {
|
|
1859
|
+
__proto__: null,
|
|
325
1860
|
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
326
1861
|
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
327
1862
|
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
@@ -376,7 +1911,7 @@ var LEGACY_ALIASES = {
|
|
|
376
1911
|
};
|
|
377
1912
|
|
|
378
1913
|
var bind = functionBind;
|
|
379
|
-
var hasOwn$1 =
|
|
1914
|
+
var hasOwn$1 = hasown;
|
|
380
1915
|
var $concat$1 = bind.call(Function.call, Array.prototype.concat);
|
|
381
1916
|
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
382
1917
|
var $replace$1 = bind.call(Function.call, String.prototype.replace);
|
|
@@ -390,9 +1925,9 @@ var stringToPath = function stringToPath(string) {
|
|
|
390
1925
|
var first = $strSlice(string, 0, 1);
|
|
391
1926
|
var last = $strSlice(string, -1);
|
|
392
1927
|
if (first === '%' && last !== '%') {
|
|
393
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
1928
|
+
throw new $SyntaxError$1('invalid intrinsic syntax, expected closing `%`');
|
|
394
1929
|
} else if (last === '%' && first !== '%') {
|
|
395
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
1930
|
+
throw new $SyntaxError$1('invalid intrinsic syntax, expected opening `%`');
|
|
396
1931
|
}
|
|
397
1932
|
var result = [];
|
|
398
1933
|
$replace$1(string, rePropName, function (match, number, quote, subString) {
|
|
@@ -416,7 +1951,7 @@ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
|
416
1951
|
value = doEval(intrinsicName);
|
|
417
1952
|
}
|
|
418
1953
|
if (typeof value === 'undefined' && !allowMissing) {
|
|
419
|
-
throw new $TypeError$
|
|
1954
|
+
throw new $TypeError$3('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
420
1955
|
}
|
|
421
1956
|
|
|
422
1957
|
return {
|
|
@@ -426,19 +1961,19 @@ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
|
426
1961
|
};
|
|
427
1962
|
}
|
|
428
1963
|
|
|
429
|
-
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
1964
|
+
throw new $SyntaxError$1('intrinsic ' + name + ' does not exist!');
|
|
430
1965
|
};
|
|
431
1966
|
|
|
432
1967
|
var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
433
1968
|
if (typeof name !== 'string' || name.length === 0) {
|
|
434
|
-
throw new $TypeError$
|
|
1969
|
+
throw new $TypeError$3('intrinsic name must be a non-empty string');
|
|
435
1970
|
}
|
|
436
1971
|
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
437
|
-
throw new $TypeError$
|
|
1972
|
+
throw new $TypeError$3('"allowMissing" argument must be a boolean');
|
|
438
1973
|
}
|
|
439
1974
|
|
|
440
1975
|
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
441
|
-
throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
1976
|
+
throw new $SyntaxError$1('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
442
1977
|
}
|
|
443
1978
|
var parts = stringToPath(name);
|
|
444
1979
|
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
@@ -465,7 +2000,7 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
465
2000
|
)
|
|
466
2001
|
&& first !== last
|
|
467
2002
|
) {
|
|
468
|
-
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
2003
|
+
throw new $SyntaxError$1('property names with quotes must have matching quotes');
|
|
469
2004
|
}
|
|
470
2005
|
if (part === 'constructor' || !isOwn) {
|
|
471
2006
|
skipFurtherCaching = true;
|
|
@@ -479,12 +2014,12 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
479
2014
|
} else if (value != null) {
|
|
480
2015
|
if (!(part in value)) {
|
|
481
2016
|
if (!allowMissing) {
|
|
482
|
-
throw new $TypeError$
|
|
2017
|
+
throw new $TypeError$3('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
483
2018
|
}
|
|
484
2019
|
return void undefined$1;
|
|
485
2020
|
}
|
|
486
|
-
if ($gOPD && (i + 1) >= parts.length) {
|
|
487
|
-
var desc = $gOPD(value, part);
|
|
2021
|
+
if ($gOPD$1 && (i + 1) >= parts.length) {
|
|
2022
|
+
var desc = $gOPD$1(value, part);
|
|
488
2023
|
isOwn = !!desc;
|
|
489
2024
|
|
|
490
2025
|
// By convention, when a data property is converted to an accessor
|
|
@@ -512,46 +2047,164 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
512
2047
|
return value;
|
|
513
2048
|
};
|
|
514
2049
|
|
|
515
|
-
var
|
|
2050
|
+
var GetIntrinsic$3 = getIntrinsic;
|
|
2051
|
+
|
|
2052
|
+
var $gOPD = GetIntrinsic$3('%Object.getOwnPropertyDescriptor%', true);
|
|
2053
|
+
|
|
2054
|
+
if ($gOPD) {
|
|
2055
|
+
try {
|
|
2056
|
+
$gOPD([], 'length');
|
|
2057
|
+
} catch (e) {
|
|
2058
|
+
// IE 8 has a broken gOPD
|
|
2059
|
+
$gOPD = null;
|
|
2060
|
+
}
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2063
|
+
var gopd$1 = $gOPD;
|
|
2064
|
+
|
|
2065
|
+
var $defineProperty$1 = requireEsDefineProperty();
|
|
2066
|
+
|
|
2067
|
+
var $SyntaxError = syntax;
|
|
2068
|
+
var $TypeError$2 = type;
|
|
2069
|
+
|
|
2070
|
+
var gopd = gopd$1;
|
|
2071
|
+
|
|
2072
|
+
/** @type {import('.')} */
|
|
2073
|
+
var defineDataProperty = function defineDataProperty(
|
|
2074
|
+
obj,
|
|
2075
|
+
property,
|
|
2076
|
+
value
|
|
2077
|
+
) {
|
|
2078
|
+
if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
|
|
2079
|
+
throw new $TypeError$2('`obj` must be an object or a function`');
|
|
2080
|
+
}
|
|
2081
|
+
if (typeof property !== 'string' && typeof property !== 'symbol') {
|
|
2082
|
+
throw new $TypeError$2('`property` must be a string or a symbol`');
|
|
2083
|
+
}
|
|
2084
|
+
if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
|
|
2085
|
+
throw new $TypeError$2('`nonEnumerable`, if provided, must be a boolean or null');
|
|
2086
|
+
}
|
|
2087
|
+
if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
|
|
2088
|
+
throw new $TypeError$2('`nonWritable`, if provided, must be a boolean or null');
|
|
2089
|
+
}
|
|
2090
|
+
if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
|
|
2091
|
+
throw new $TypeError$2('`nonConfigurable`, if provided, must be a boolean or null');
|
|
2092
|
+
}
|
|
2093
|
+
if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
|
|
2094
|
+
throw new $TypeError$2('`loose`, if provided, must be a boolean');
|
|
2095
|
+
}
|
|
2096
|
+
|
|
2097
|
+
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
2098
|
+
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
2099
|
+
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
2100
|
+
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
2101
|
+
|
|
2102
|
+
/* @type {false | TypedPropertyDescriptor<unknown>} */
|
|
2103
|
+
var desc = !!gopd && gopd(obj, property);
|
|
2104
|
+
|
|
2105
|
+
if ($defineProperty$1) {
|
|
2106
|
+
$defineProperty$1(obj, property, {
|
|
2107
|
+
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
2108
|
+
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
2109
|
+
value: value,
|
|
2110
|
+
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
2111
|
+
});
|
|
2112
|
+
} else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
|
|
2113
|
+
// must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
|
|
2114
|
+
obj[property] = value; // eslint-disable-line no-param-reassign
|
|
2115
|
+
} else {
|
|
2116
|
+
throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
|
|
2117
|
+
}
|
|
2118
|
+
};
|
|
2119
|
+
|
|
2120
|
+
var $defineProperty = requireEsDefineProperty();
|
|
2121
|
+
|
|
2122
|
+
var hasPropertyDescriptors = function hasPropertyDescriptors() {
|
|
2123
|
+
return !!$defineProperty;
|
|
2124
|
+
};
|
|
2125
|
+
|
|
2126
|
+
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
2127
|
+
// node v0.6 has a bug where array lengths can be Set but not Defined
|
|
2128
|
+
if (!$defineProperty) {
|
|
2129
|
+
return null;
|
|
2130
|
+
}
|
|
2131
|
+
try {
|
|
2132
|
+
return $defineProperty([], 'length', { value: 1 }).length !== 1;
|
|
2133
|
+
} catch (e) {
|
|
2134
|
+
// In Firefox 4-22, defining length on an array throws an exception.
|
|
2135
|
+
return true;
|
|
2136
|
+
}
|
|
2137
|
+
};
|
|
2138
|
+
|
|
2139
|
+
var hasPropertyDescriptors_1 = hasPropertyDescriptors;
|
|
2140
|
+
|
|
2141
|
+
var GetIntrinsic$2 = getIntrinsic$2;
|
|
2142
|
+
var define = defineDataProperty;
|
|
2143
|
+
var hasDescriptors = hasPropertyDescriptors_1();
|
|
2144
|
+
var gOPD = gopd$1;
|
|
2145
|
+
|
|
2146
|
+
var $TypeError$1 = type;
|
|
2147
|
+
var $floor$1 = GetIntrinsic$2('%Math.floor%');
|
|
2148
|
+
|
|
2149
|
+
/** @type {import('.')} */
|
|
2150
|
+
var setFunctionLength = function setFunctionLength(fn, length) {
|
|
2151
|
+
if (typeof fn !== 'function') {
|
|
2152
|
+
throw new $TypeError$1('`fn` is not a function');
|
|
2153
|
+
}
|
|
2154
|
+
if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor$1(length) !== length) {
|
|
2155
|
+
throw new $TypeError$1('`length` must be a positive 32-bit integer');
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2158
|
+
var loose = arguments.length > 2 && !!arguments[2];
|
|
2159
|
+
|
|
2160
|
+
var functionLengthIsConfigurable = true;
|
|
2161
|
+
var functionLengthIsWritable = true;
|
|
2162
|
+
if ('length' in fn && gOPD) {
|
|
2163
|
+
var desc = gOPD(fn, 'length');
|
|
2164
|
+
if (desc && !desc.configurable) {
|
|
2165
|
+
functionLengthIsConfigurable = false;
|
|
2166
|
+
}
|
|
2167
|
+
if (desc && !desc.writable) {
|
|
2168
|
+
functionLengthIsWritable = false;
|
|
2169
|
+
}
|
|
2170
|
+
}
|
|
2171
|
+
|
|
2172
|
+
if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
|
|
2173
|
+
if (hasDescriptors) {
|
|
2174
|
+
define(/** @type {Parameters<define>[0]} */ (fn), 'length', length, true, true);
|
|
2175
|
+
} else {
|
|
2176
|
+
define(/** @type {Parameters<define>[0]} */ (fn), 'length', length);
|
|
2177
|
+
}
|
|
2178
|
+
}
|
|
2179
|
+
return fn;
|
|
2180
|
+
};
|
|
516
2181
|
|
|
517
2182
|
callBind$1.exports;
|
|
518
2183
|
|
|
519
2184
|
(function (module) {
|
|
520
2185
|
|
|
521
2186
|
var bind = functionBind;
|
|
522
|
-
var GetIntrinsic = getIntrinsic;
|
|
2187
|
+
var GetIntrinsic = getIntrinsic$3;
|
|
2188
|
+
var setFunctionLength$1 = setFunctionLength;
|
|
523
2189
|
|
|
2190
|
+
var $TypeError = type;
|
|
524
2191
|
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
525
2192
|
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
526
2193
|
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
527
2194
|
|
|
528
|
-
var $
|
|
529
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
2195
|
+
var $defineProperty = requireEsDefineProperty();
|
|
530
2196
|
var $max = GetIntrinsic('%Math.max%');
|
|
531
2197
|
|
|
532
|
-
if ($defineProperty) {
|
|
533
|
-
try {
|
|
534
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
535
|
-
} catch (e) {
|
|
536
|
-
// IE 8 has a broken defineProperty
|
|
537
|
-
$defineProperty = null;
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
|
|
541
2198
|
module.exports = function callBind(originalFunction) {
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
var desc = $gOPD(func, 'length');
|
|
545
|
-
if (desc.configurable) {
|
|
546
|
-
// original length, plus the receiver, minus any additional arguments (after the receiver)
|
|
547
|
-
$defineProperty(
|
|
548
|
-
func,
|
|
549
|
-
'length',
|
|
550
|
-
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
551
|
-
);
|
|
552
|
-
}
|
|
2199
|
+
if (typeof originalFunction !== 'function') {
|
|
2200
|
+
throw new $TypeError('a function is required');
|
|
553
2201
|
}
|
|
554
|
-
|
|
2202
|
+
var func = $reflectApply(bind, $call, arguments);
|
|
2203
|
+
return setFunctionLength$1(
|
|
2204
|
+
func,
|
|
2205
|
+
1 + $max(0, originalFunction.length - (arguments.length - 1)),
|
|
2206
|
+
true
|
|
2207
|
+
);
|
|
555
2208
|
};
|
|
556
2209
|
|
|
557
2210
|
var applyBind = function applyBind() {
|
|
@@ -567,7 +2220,7 @@ callBind$1.exports;
|
|
|
567
2220
|
|
|
568
2221
|
var callBindExports = callBind$1.exports;
|
|
569
2222
|
|
|
570
|
-
var GetIntrinsic$1 = getIntrinsic;
|
|
2223
|
+
var GetIntrinsic$1 = getIntrinsic$3;
|
|
571
2224
|
|
|
572
2225
|
var callBind = callBindExports;
|
|
573
2226
|
|
|
@@ -824,6 +2477,14 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
824
2477
|
if (isString(obj)) {
|
|
825
2478
|
return markBoxed(inspect(String(obj)));
|
|
826
2479
|
}
|
|
2480
|
+
// note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
|
|
2481
|
+
/* eslint-env browser */
|
|
2482
|
+
if (typeof window !== 'undefined' && obj === window) {
|
|
2483
|
+
return '{ [object Window] }';
|
|
2484
|
+
}
|
|
2485
|
+
if (obj === commonjsGlobal) {
|
|
2486
|
+
return '{ [object globalThis] }';
|
|
2487
|
+
}
|
|
827
2488
|
if (!isDate(obj) && !isRegExp$1(obj)) {
|
|
828
2489
|
var ys = arrObjKeys(obj, inspect);
|
|
829
2490
|
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
@@ -1100,11 +2761,11 @@ function arrObjKeys(obj, inspect) {
|
|
|
1100
2761
|
return xs;
|
|
1101
2762
|
}
|
|
1102
2763
|
|
|
1103
|
-
var GetIntrinsic = getIntrinsic;
|
|
2764
|
+
var GetIntrinsic = getIntrinsic$4;
|
|
1104
2765
|
var callBound = callBound$1;
|
|
1105
2766
|
var inspect = objectInspect;
|
|
1106
2767
|
|
|
1107
|
-
var $TypeError =
|
|
2768
|
+
var $TypeError = type;
|
|
1108
2769
|
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
1109
2770
|
var $Map = GetIntrinsic('%Map%', true);
|
|
1110
2771
|
|
|
@@ -1116,49 +2777,58 @@ var $mapSet = callBound('Map.prototype.set', true);
|
|
|
1116
2777
|
var $mapHas = callBound('Map.prototype.has', true);
|
|
1117
2778
|
|
|
1118
2779
|
/*
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
* used nodes can be accessed relatively quickly.
|
|
1125
|
-
*/
|
|
2780
|
+
* This function traverses the list returning the node corresponding to the given key.
|
|
2781
|
+
*
|
|
2782
|
+
* That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list. By doing so, all the recently used nodes can be accessed relatively quickly.
|
|
2783
|
+
*/
|
|
2784
|
+
/** @type {import('.').listGetNode} */
|
|
1126
2785
|
var listGetNode = function (list, key) { // eslint-disable-line consistent-return
|
|
1127
|
-
|
|
2786
|
+
/** @type {typeof list | NonNullable<(typeof list)['next']>} */
|
|
2787
|
+
var prev = list;
|
|
2788
|
+
/** @type {(typeof list)['next']} */
|
|
2789
|
+
var curr;
|
|
2790
|
+
for (; (curr = prev.next) !== null; prev = curr) {
|
|
1128
2791
|
if (curr.key === key) {
|
|
1129
2792
|
prev.next = curr.next;
|
|
1130
|
-
|
|
2793
|
+
// eslint-disable-next-line no-extra-parens
|
|
2794
|
+
curr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);
|
|
1131
2795
|
list.next = curr; // eslint-disable-line no-param-reassign
|
|
1132
2796
|
return curr;
|
|
1133
2797
|
}
|
|
1134
2798
|
}
|
|
1135
2799
|
};
|
|
1136
2800
|
|
|
2801
|
+
/** @type {import('.').listGet} */
|
|
1137
2802
|
var listGet = function (objects, key) {
|
|
1138
2803
|
var node = listGetNode(objects, key);
|
|
1139
2804
|
return node && node.value;
|
|
1140
2805
|
};
|
|
2806
|
+
/** @type {import('.').listSet} */
|
|
1141
2807
|
var listSet = function (objects, key, value) {
|
|
1142
2808
|
var node = listGetNode(objects, key);
|
|
1143
2809
|
if (node) {
|
|
1144
2810
|
node.value = value;
|
|
1145
2811
|
} else {
|
|
1146
2812
|
// Prepend the new node to the beginning of the list
|
|
1147
|
-
objects.next = { // eslint-disable-line no-param-reassign
|
|
2813
|
+
objects.next = /** @type {import('.').ListNode<typeof value>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
|
|
1148
2814
|
key: key,
|
|
1149
2815
|
next: objects.next,
|
|
1150
2816
|
value: value
|
|
1151
|
-
};
|
|
2817
|
+
});
|
|
1152
2818
|
}
|
|
1153
2819
|
};
|
|
2820
|
+
/** @type {import('.').listHas} */
|
|
1154
2821
|
var listHas = function (objects, key) {
|
|
1155
2822
|
return !!listGetNode(objects, key);
|
|
1156
2823
|
};
|
|
1157
2824
|
|
|
2825
|
+
/** @type {import('.')} */
|
|
1158
2826
|
var sideChannel = function getSideChannel() {
|
|
1159
|
-
var $wm;
|
|
1160
|
-
var $m;
|
|
1161
|
-
var $o;
|
|
2827
|
+
/** @type {WeakMap<object, unknown>} */ var $wm;
|
|
2828
|
+
/** @type {Map<object, unknown>} */ var $m;
|
|
2829
|
+
/** @type {import('.').RootNode<unknown>} */ var $o;
|
|
2830
|
+
|
|
2831
|
+
/** @type {import('.').Channel} */
|
|
1162
2832
|
var channel = {
|
|
1163
2833
|
assert: function (key) {
|
|
1164
2834
|
if (!channel.has(key)) {
|
|
@@ -1209,11 +2879,7 @@ var sideChannel = function getSideChannel() {
|
|
|
1209
2879
|
$mapSet($m, key, value);
|
|
1210
2880
|
} else {
|
|
1211
2881
|
if (!$o) {
|
|
1212
|
-
|
|
1213
|
-
* Initialize the linked list as an empty node, so that we don't have
|
|
1214
|
-
* to special-case handling of the first node: we can always refer to
|
|
1215
|
-
* it as (previous node).next, instead of something like (list).head
|
|
1216
|
-
*/
|
|
2882
|
+
// Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head
|
|
1217
2883
|
$o = { key: {}, next: null };
|
|
1218
2884
|
}
|
|
1219
2885
|
listSet($o, key, value);
|
|
@@ -2193,4 +3859,4 @@ var useCreateStripeAccount = function useCreateStripeAccount(_ref3) {
|
|
|
2193
3859
|
};
|
|
2194
3860
|
|
|
2195
3861
|
export { useFetchConnectedStripeAccount as a, useFetchStripePayouts as b, useShowStripePayout as c, useCreateStripeAccount as d, usePollingStripeAccountCreationStatus as e, useDestroyStripeAccount as f, usePollingStripeAccount as g, qs as q, useFetchStripeTransactions as u };
|
|
2196
|
-
//# sourceMappingURL=useConnectApi-
|
|
3862
|
+
//# sourceMappingURL=useConnectApi-6dddca0c.js.map
|