@interopio/fdc3 2.5.0 → 2.5.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/changelog.md +2 -0
- package/dist/fdc3.electron.es.js +1024 -540
- package/dist/fdc3.electron.umd.js +1024 -540
- package/dist/fdc3.es.js +1024 -540
- package/dist/fdc3.umd.js +1024 -540
- package/package.json +3 -3
package/dist/fdc3.electron.es.js
CHANGED
|
@@ -29,10 +29,10 @@ function getAugmentedNamespace(n) {
|
|
|
29
29
|
return a;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
var toStr$
|
|
32
|
+
var toStr$8 = Object.prototype.toString;
|
|
33
33
|
|
|
34
34
|
var isArguments$3 = function isArguments(value) {
|
|
35
|
-
var str = toStr$
|
|
35
|
+
var str = toStr$8.call(value);
|
|
36
36
|
var isArgs = str === '[object Arguments]';
|
|
37
37
|
if (!isArgs) {
|
|
38
38
|
isArgs = str !== '[object Array]' &&
|
|
@@ -40,17 +40,17 @@ var isArguments$3 = function isArguments(value) {
|
|
|
40
40
|
typeof value === 'object' &&
|
|
41
41
|
typeof value.length === 'number' &&
|
|
42
42
|
value.length >= 0 &&
|
|
43
|
-
toStr$
|
|
43
|
+
toStr$8.call(value.callee) === '[object Function]';
|
|
44
44
|
}
|
|
45
45
|
return isArgs;
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
var implementation$
|
|
49
|
-
var hasRequiredImplementation;
|
|
48
|
+
var implementation$a;
|
|
49
|
+
var hasRequiredImplementation$1;
|
|
50
50
|
|
|
51
|
-
function requireImplementation () {
|
|
52
|
-
if (hasRequiredImplementation) return implementation$
|
|
53
|
-
hasRequiredImplementation = 1;
|
|
51
|
+
function requireImplementation$1 () {
|
|
52
|
+
if (hasRequiredImplementation$1) return implementation$a;
|
|
53
|
+
hasRequiredImplementation$1 = 1;
|
|
54
54
|
|
|
55
55
|
var keysShim;
|
|
56
56
|
if (!Object.keys) {
|
|
@@ -171,15 +171,15 @@ function requireImplementation () {
|
|
|
171
171
|
return theKeys;
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
|
-
implementation$
|
|
175
|
-
return implementation$
|
|
174
|
+
implementation$a = keysShim;
|
|
175
|
+
return implementation$a;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
var slice = Array.prototype.slice;
|
|
179
179
|
var isArgs = isArguments$3;
|
|
180
180
|
|
|
181
181
|
var origKeys = Object.keys;
|
|
182
|
-
var keysShim = origKeys ? function keys(o) { return origKeys(o); } : requireImplementation();
|
|
182
|
+
var keysShim = origKeys ? function keys(o) { return origKeys(o); } : requireImplementation$1();
|
|
183
183
|
|
|
184
184
|
var originalKeys = Object.keys;
|
|
185
185
|
|
|
@@ -206,6 +206,274 @@ keysShim.shim = function shimObjectKeys() {
|
|
|
206
206
|
|
|
207
207
|
var objectKeys$2 = keysShim;
|
|
208
208
|
|
|
209
|
+
/** @type {import('.')} */
|
|
210
|
+
var $defineProperty$3 = Object.defineProperty || false;
|
|
211
|
+
if ($defineProperty$3) {
|
|
212
|
+
try {
|
|
213
|
+
$defineProperty$3({}, 'a', { value: 1 });
|
|
214
|
+
} catch (e) {
|
|
215
|
+
// IE 8 has a broken defineProperty
|
|
216
|
+
$defineProperty$3 = false;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
var esDefineProperty = $defineProperty$3;
|
|
221
|
+
|
|
222
|
+
/** @type {import('./syntax')} */
|
|
223
|
+
var syntax = SyntaxError;
|
|
224
|
+
|
|
225
|
+
/** @type {import('./type')} */
|
|
226
|
+
var type = TypeError;
|
|
227
|
+
|
|
228
|
+
/** @type {import('./gOPD')} */
|
|
229
|
+
var gOPD$5 = Object.getOwnPropertyDescriptor;
|
|
230
|
+
|
|
231
|
+
/** @type {import('.')} */
|
|
232
|
+
var $gOPD$2 = gOPD$5;
|
|
233
|
+
|
|
234
|
+
if ($gOPD$2) {
|
|
235
|
+
try {
|
|
236
|
+
$gOPD$2([], 'length');
|
|
237
|
+
} catch (e) {
|
|
238
|
+
// IE 8 has a broken gOPD
|
|
239
|
+
$gOPD$2 = null;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
var gopd$1 = $gOPD$2;
|
|
244
|
+
|
|
245
|
+
var $defineProperty$2 = esDefineProperty;
|
|
246
|
+
|
|
247
|
+
var $SyntaxError$2 = syntax;
|
|
248
|
+
var $TypeError$a = type;
|
|
249
|
+
|
|
250
|
+
var gopd = gopd$1;
|
|
251
|
+
|
|
252
|
+
/** @type {import('.')} */
|
|
253
|
+
var defineDataProperty$1 = function defineDataProperty(
|
|
254
|
+
obj,
|
|
255
|
+
property,
|
|
256
|
+
value
|
|
257
|
+
) {
|
|
258
|
+
if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
|
|
259
|
+
throw new $TypeError$a('`obj` must be an object or a function`');
|
|
260
|
+
}
|
|
261
|
+
if (typeof property !== 'string' && typeof property !== 'symbol') {
|
|
262
|
+
throw new $TypeError$a('`property` must be a string or a symbol`');
|
|
263
|
+
}
|
|
264
|
+
if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
|
|
265
|
+
throw new $TypeError$a('`nonEnumerable`, if provided, must be a boolean or null');
|
|
266
|
+
}
|
|
267
|
+
if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
|
|
268
|
+
throw new $TypeError$a('`nonWritable`, if provided, must be a boolean or null');
|
|
269
|
+
}
|
|
270
|
+
if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
|
|
271
|
+
throw new $TypeError$a('`nonConfigurable`, if provided, must be a boolean or null');
|
|
272
|
+
}
|
|
273
|
+
if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
|
|
274
|
+
throw new $TypeError$a('`loose`, if provided, must be a boolean');
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
278
|
+
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
279
|
+
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
280
|
+
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
281
|
+
|
|
282
|
+
/* @type {false | TypedPropertyDescriptor<unknown>} */
|
|
283
|
+
var desc = !!gopd && gopd(obj, property);
|
|
284
|
+
|
|
285
|
+
if ($defineProperty$2) {
|
|
286
|
+
$defineProperty$2(obj, property, {
|
|
287
|
+
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
288
|
+
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
289
|
+
value: value,
|
|
290
|
+
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
291
|
+
});
|
|
292
|
+
} else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
|
|
293
|
+
// must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
|
|
294
|
+
obj[property] = value; // eslint-disable-line no-param-reassign
|
|
295
|
+
} else {
|
|
296
|
+
throw new $SyntaxError$2('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
var $defineProperty$1 = esDefineProperty;
|
|
301
|
+
|
|
302
|
+
var hasPropertyDescriptors = function hasPropertyDescriptors() {
|
|
303
|
+
return !!$defineProperty$1;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
307
|
+
// node v0.6 has a bug where array lengths can be Set but not Defined
|
|
308
|
+
if (!$defineProperty$1) {
|
|
309
|
+
return null;
|
|
310
|
+
}
|
|
311
|
+
try {
|
|
312
|
+
return $defineProperty$1([], 'length', { value: 1 }).length !== 1;
|
|
313
|
+
} catch (e) {
|
|
314
|
+
// In Firefox 4-22, defining length on an array throws an exception.
|
|
315
|
+
return true;
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
var hasPropertyDescriptors_1 = hasPropertyDescriptors;
|
|
320
|
+
|
|
321
|
+
var keys = objectKeys$2;
|
|
322
|
+
var hasSymbols$5 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
|
|
323
|
+
|
|
324
|
+
var toStr$7 = Object.prototype.toString;
|
|
325
|
+
var concat = Array.prototype.concat;
|
|
326
|
+
var defineDataProperty = defineDataProperty$1;
|
|
327
|
+
|
|
328
|
+
var isFunction = function (fn) {
|
|
329
|
+
return typeof fn === 'function' && toStr$7.call(fn) === '[object Function]';
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
var supportsDescriptors$2 = hasPropertyDescriptors_1();
|
|
333
|
+
|
|
334
|
+
var defineProperty$1 = function (object, name, value, predicate) {
|
|
335
|
+
if (name in object) {
|
|
336
|
+
if (predicate === true) {
|
|
337
|
+
if (object[name] === value) {
|
|
338
|
+
return;
|
|
339
|
+
}
|
|
340
|
+
} else if (!isFunction(predicate) || !predicate()) {
|
|
341
|
+
return;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
if (supportsDescriptors$2) {
|
|
346
|
+
defineDataProperty(object, name, value, true);
|
|
347
|
+
} else {
|
|
348
|
+
defineDataProperty(object, name, value);
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
var defineProperties$1 = function (object, map) {
|
|
353
|
+
var predicates = arguments.length > 2 ? arguments[2] : {};
|
|
354
|
+
var props = keys(map);
|
|
355
|
+
if (hasSymbols$5) {
|
|
356
|
+
props = concat.call(props, Object.getOwnPropertySymbols(map));
|
|
357
|
+
}
|
|
358
|
+
for (var i = 0; i < props.length; i += 1) {
|
|
359
|
+
defineProperty$1(object, props[i], map[props[i]], predicates[props[i]]);
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
defineProperties$1.supportsDescriptors = !!supportsDescriptors$2;
|
|
364
|
+
|
|
365
|
+
var defineProperties_1 = defineProperties$1;
|
|
366
|
+
|
|
367
|
+
var callBind$6 = {exports: {}};
|
|
368
|
+
|
|
369
|
+
var implementation$9;
|
|
370
|
+
var hasRequiredImplementation;
|
|
371
|
+
|
|
372
|
+
function requireImplementation () {
|
|
373
|
+
if (hasRequiredImplementation) return implementation$9;
|
|
374
|
+
hasRequiredImplementation = 1;
|
|
375
|
+
|
|
376
|
+
/* eslint no-invalid-this: 1 */
|
|
377
|
+
|
|
378
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
379
|
+
var toStr = Object.prototype.toString;
|
|
380
|
+
var max = Math.max;
|
|
381
|
+
var funcType = '[object Function]';
|
|
382
|
+
|
|
383
|
+
var concatty = function concatty(a, b) {
|
|
384
|
+
var arr = [];
|
|
385
|
+
|
|
386
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
387
|
+
arr[i] = a[i];
|
|
388
|
+
}
|
|
389
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
390
|
+
arr[j + a.length] = b[j];
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
return arr;
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
var slicy = function slicy(arrLike, offset) {
|
|
397
|
+
var arr = [];
|
|
398
|
+
for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
399
|
+
arr[j] = arrLike[i];
|
|
400
|
+
}
|
|
401
|
+
return arr;
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
var joiny = function (arr, joiner) {
|
|
405
|
+
var str = '';
|
|
406
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
407
|
+
str += arr[i];
|
|
408
|
+
if (i + 1 < arr.length) {
|
|
409
|
+
str += joiner;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
return str;
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
implementation$9 = function bind(that) {
|
|
416
|
+
var target = this;
|
|
417
|
+
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
|
|
418
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
419
|
+
}
|
|
420
|
+
var args = slicy(arguments, 1);
|
|
421
|
+
|
|
422
|
+
var bound;
|
|
423
|
+
var binder = function () {
|
|
424
|
+
if (this instanceof bound) {
|
|
425
|
+
var result = target.apply(
|
|
426
|
+
this,
|
|
427
|
+
concatty(args, arguments)
|
|
428
|
+
);
|
|
429
|
+
if (Object(result) === result) {
|
|
430
|
+
return result;
|
|
431
|
+
}
|
|
432
|
+
return this;
|
|
433
|
+
}
|
|
434
|
+
return target.apply(
|
|
435
|
+
that,
|
|
436
|
+
concatty(args, arguments)
|
|
437
|
+
);
|
|
438
|
+
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
var boundLength = max(0, target.length - args.length);
|
|
442
|
+
var boundArgs = [];
|
|
443
|
+
for (var i = 0; i < boundLength; i++) {
|
|
444
|
+
boundArgs[i] = '$' + i;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
448
|
+
|
|
449
|
+
if (target.prototype) {
|
|
450
|
+
var Empty = function Empty() {};
|
|
451
|
+
Empty.prototype = target.prototype;
|
|
452
|
+
bound.prototype = new Empty();
|
|
453
|
+
Empty.prototype = null;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
return bound;
|
|
457
|
+
};
|
|
458
|
+
return implementation$9;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
var functionBind;
|
|
462
|
+
var hasRequiredFunctionBind;
|
|
463
|
+
|
|
464
|
+
function requireFunctionBind () {
|
|
465
|
+
if (hasRequiredFunctionBind) return functionBind;
|
|
466
|
+
hasRequiredFunctionBind = 1;
|
|
467
|
+
|
|
468
|
+
var implementation = requireImplementation();
|
|
469
|
+
|
|
470
|
+
functionBind = Function.prototype.bind || implementation;
|
|
471
|
+
return functionBind;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
/** @type {import('.')} */
|
|
475
|
+
var esObjectAtoms = Object;
|
|
476
|
+
|
|
209
477
|
/** @type {import('.')} */
|
|
210
478
|
var esErrors = Error;
|
|
211
479
|
|
|
@@ -218,15 +486,42 @@ var range = RangeError;
|
|
|
218
486
|
/** @type {import('./ref')} */
|
|
219
487
|
var ref = ReferenceError;
|
|
220
488
|
|
|
221
|
-
/** @type {import('./syntax')} */
|
|
222
|
-
var syntax = SyntaxError;
|
|
223
|
-
|
|
224
|
-
/** @type {import('./type')} */
|
|
225
|
-
var type = TypeError;
|
|
226
|
-
|
|
227
489
|
/** @type {import('./uri')} */
|
|
228
490
|
var uri = URIError;
|
|
229
491
|
|
|
492
|
+
/** @type {import('./abs')} */
|
|
493
|
+
var abs$1 = Math.abs;
|
|
494
|
+
|
|
495
|
+
/** @type {import('./floor')} */
|
|
496
|
+
var floor$1 = Math.floor;
|
|
497
|
+
|
|
498
|
+
/** @type {import('./max')} */
|
|
499
|
+
var max$1 = Math.max;
|
|
500
|
+
|
|
501
|
+
/** @type {import('./min')} */
|
|
502
|
+
var min$1 = Math.min;
|
|
503
|
+
|
|
504
|
+
/** @type {import('./pow')} */
|
|
505
|
+
var pow$1 = Math.pow;
|
|
506
|
+
|
|
507
|
+
/** @type {import('./round')} */
|
|
508
|
+
var round$1 = Math.round;
|
|
509
|
+
|
|
510
|
+
/** @type {import('./isNaN')} */
|
|
511
|
+
var _isNaN = Number.isNaN || function isNaN(a) {
|
|
512
|
+
return a !== a;
|
|
513
|
+
};
|
|
514
|
+
|
|
515
|
+
var $isNaN = _isNaN;
|
|
516
|
+
|
|
517
|
+
/** @type {import('./sign')} */
|
|
518
|
+
var sign$1 = function sign(number) {
|
|
519
|
+
if ($isNaN(number) || number === 0) {
|
|
520
|
+
return number;
|
|
521
|
+
}
|
|
522
|
+
return number < 0 ? -1 : +1;
|
|
523
|
+
};
|
|
524
|
+
|
|
230
525
|
var shams$1;
|
|
231
526
|
var hasRequiredShams;
|
|
232
527
|
|
|
@@ -234,11 +529,13 @@ function requireShams () {
|
|
|
234
529
|
if (hasRequiredShams) return shams$1;
|
|
235
530
|
hasRequiredShams = 1;
|
|
236
531
|
|
|
532
|
+
/** @type {import('./shams')} */
|
|
237
533
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
238
534
|
shams$1 = function hasSymbols() {
|
|
239
535
|
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
240
536
|
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
241
537
|
|
|
538
|
+
/** @type {{ [k in symbol]?: unknown }} */
|
|
242
539
|
var obj = {};
|
|
243
540
|
var sym = Symbol('test');
|
|
244
541
|
var symObj = Object(sym);
|
|
@@ -257,7 +554,7 @@ function requireShams () {
|
|
|
257
554
|
|
|
258
555
|
var symVal = 42;
|
|
259
556
|
obj[sym] = symVal;
|
|
260
|
-
for (
|
|
557
|
+
for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
261
558
|
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
262
559
|
|
|
263
560
|
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
@@ -268,7 +565,8 @@ function requireShams () {
|
|
|
268
565
|
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
269
566
|
|
|
270
567
|
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
271
|
-
|
|
568
|
+
// eslint-disable-next-line no-extra-parens
|
|
569
|
+
var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
|
|
272
570
|
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
273
571
|
}
|
|
274
572
|
|
|
@@ -280,7 +578,8 @@ function requireShams () {
|
|
|
280
578
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
281
579
|
var hasSymbolSham = requireShams();
|
|
282
580
|
|
|
283
|
-
|
|
581
|
+
/** @type {import('.')} */
|
|
582
|
+
var hasSymbols$4 = function hasNativeSymbols() {
|
|
284
583
|
if (typeof origSymbol !== 'function') { return false; }
|
|
285
584
|
if (typeof Symbol !== 'function') { return false; }
|
|
286
585
|
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
@@ -289,124 +588,191 @@ var hasSymbols$5 = function hasNativeSymbols() {
|
|
|
289
588
|
return hasSymbolSham();
|
|
290
589
|
};
|
|
291
590
|
|
|
292
|
-
var
|
|
293
|
-
|
|
294
|
-
foo: {}
|
|
295
|
-
};
|
|
591
|
+
var Reflect_getPrototypeOf;
|
|
592
|
+
var hasRequiredReflect_getPrototypeOf;
|
|
296
593
|
|
|
297
|
-
|
|
594
|
+
function requireReflect_getPrototypeOf () {
|
|
595
|
+
if (hasRequiredReflect_getPrototypeOf) return Reflect_getPrototypeOf;
|
|
596
|
+
hasRequiredReflect_getPrototypeOf = 1;
|
|
298
597
|
|
|
299
|
-
/** @type {import('.')} */
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
&& !(test instanceof $Object$1);
|
|
304
|
-
};
|
|
598
|
+
/** @type {import('./Reflect.getPrototypeOf')} */
|
|
599
|
+
Reflect_getPrototypeOf = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
|
|
600
|
+
return Reflect_getPrototypeOf;
|
|
601
|
+
}
|
|
305
602
|
|
|
306
|
-
|
|
603
|
+
var Object_getPrototypeOf;
|
|
604
|
+
var hasRequiredObject_getPrototypeOf;
|
|
307
605
|
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
var funcType = '[object Function]';
|
|
606
|
+
function requireObject_getPrototypeOf () {
|
|
607
|
+
if (hasRequiredObject_getPrototypeOf) return Object_getPrototypeOf;
|
|
608
|
+
hasRequiredObject_getPrototypeOf = 1;
|
|
312
609
|
|
|
313
|
-
var
|
|
314
|
-
var arr = [];
|
|
610
|
+
var $Object = esObjectAtoms;
|
|
315
611
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
arr[j + a.length] = b[j];
|
|
321
|
-
}
|
|
612
|
+
/** @type {import('./Object.getPrototypeOf')} */
|
|
613
|
+
Object_getPrototypeOf = $Object.getPrototypeOf || null;
|
|
614
|
+
return Object_getPrototypeOf;
|
|
615
|
+
}
|
|
322
616
|
|
|
323
|
-
|
|
324
|
-
|
|
617
|
+
var functionCall;
|
|
618
|
+
var hasRequiredFunctionCall;
|
|
325
619
|
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
arr[j] = arrLike[i];
|
|
330
|
-
}
|
|
331
|
-
return arr;
|
|
332
|
-
};
|
|
620
|
+
function requireFunctionCall () {
|
|
621
|
+
if (hasRequiredFunctionCall) return functionCall;
|
|
622
|
+
hasRequiredFunctionCall = 1;
|
|
333
623
|
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
if (i + 1 < arr.length) {
|
|
339
|
-
str += joiner;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
return str;
|
|
343
|
-
};
|
|
624
|
+
/** @type {import('./functionCall')} */
|
|
625
|
+
functionCall = Function.prototype.call;
|
|
626
|
+
return functionCall;
|
|
627
|
+
}
|
|
344
628
|
|
|
345
|
-
var
|
|
346
|
-
|
|
347
|
-
if (typeof target !== 'function' || toStr$8.apply(target) !== funcType) {
|
|
348
|
-
throw new TypeError(ERROR_MESSAGE + target);
|
|
349
|
-
}
|
|
350
|
-
var args = slicy(arguments, 1);
|
|
351
|
-
|
|
352
|
-
var bound;
|
|
353
|
-
var binder = function () {
|
|
354
|
-
if (this instanceof bound) {
|
|
355
|
-
var result = target.apply(
|
|
356
|
-
this,
|
|
357
|
-
concatty(args, arguments)
|
|
358
|
-
);
|
|
359
|
-
if (Object(result) === result) {
|
|
360
|
-
return result;
|
|
361
|
-
}
|
|
362
|
-
return this;
|
|
363
|
-
}
|
|
364
|
-
return target.apply(
|
|
365
|
-
that,
|
|
366
|
-
concatty(args, arguments)
|
|
367
|
-
);
|
|
629
|
+
var functionApply;
|
|
630
|
+
var hasRequiredFunctionApply;
|
|
368
631
|
|
|
369
|
-
|
|
632
|
+
function requireFunctionApply () {
|
|
633
|
+
if (hasRequiredFunctionApply) return functionApply;
|
|
634
|
+
hasRequiredFunctionApply = 1;
|
|
370
635
|
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
}
|
|
636
|
+
/** @type {import('./functionApply')} */
|
|
637
|
+
functionApply = Function.prototype.apply;
|
|
638
|
+
return functionApply;
|
|
639
|
+
}
|
|
376
640
|
|
|
377
|
-
|
|
641
|
+
/** @type {import('./reflectApply')} */
|
|
642
|
+
var reflectApply$1 = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
378
643
|
|
|
379
|
-
|
|
380
|
-
var Empty = function Empty() {};
|
|
381
|
-
Empty.prototype = target.prototype;
|
|
382
|
-
bound.prototype = new Empty();
|
|
383
|
-
Empty.prototype = null;
|
|
384
|
-
}
|
|
644
|
+
var bind$2 = requireFunctionBind();
|
|
385
645
|
|
|
386
|
-
|
|
387
|
-
|
|
646
|
+
var $apply$1 = requireFunctionApply();
|
|
647
|
+
var $call$2 = requireFunctionCall();
|
|
648
|
+
var $reflectApply = reflectApply$1;
|
|
388
649
|
|
|
389
|
-
|
|
650
|
+
/** @type {import('./actualApply')} */
|
|
651
|
+
var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
|
|
390
652
|
|
|
391
|
-
var
|
|
653
|
+
var bind$1 = requireFunctionBind();
|
|
654
|
+
var $TypeError$9 = type;
|
|
392
655
|
|
|
393
|
-
var call =
|
|
394
|
-
var $
|
|
395
|
-
var bind$1 = functionBind;
|
|
656
|
+
var $call$1 = requireFunctionCall();
|
|
657
|
+
var $actualApply = actualApply;
|
|
396
658
|
|
|
397
659
|
/** @type {import('.')} */
|
|
398
|
-
var
|
|
660
|
+
var callBindApplyHelpers = function callBindBasic(args) {
|
|
661
|
+
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
662
|
+
throw new $TypeError$9('a function is required');
|
|
663
|
+
}
|
|
664
|
+
return $actualApply(bind$1, $call$1, args);
|
|
665
|
+
};
|
|
666
|
+
|
|
667
|
+
var get;
|
|
668
|
+
var hasRequiredGet;
|
|
669
|
+
|
|
670
|
+
function requireGet () {
|
|
671
|
+
if (hasRequiredGet) return get;
|
|
672
|
+
hasRequiredGet = 1;
|
|
673
|
+
|
|
674
|
+
var callBind = callBindApplyHelpers;
|
|
675
|
+
var gOPD = gopd$1;
|
|
676
|
+
|
|
677
|
+
var hasProtoAccessor;
|
|
678
|
+
try {
|
|
679
|
+
// eslint-disable-next-line no-extra-parens, no-proto
|
|
680
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
|
681
|
+
} catch (e) {
|
|
682
|
+
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
|
683
|
+
throw e;
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
// eslint-disable-next-line no-extra-parens
|
|
688
|
+
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
689
|
+
|
|
690
|
+
var $Object = Object;
|
|
691
|
+
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
692
|
+
|
|
693
|
+
/** @type {import('./get')} */
|
|
694
|
+
get = desc && typeof desc.get === 'function'
|
|
695
|
+
? callBind([desc.get])
|
|
696
|
+
: typeof $getPrototypeOf === 'function'
|
|
697
|
+
? /** @type {import('./get')} */ function getDunder(value) {
|
|
698
|
+
// eslint-disable-next-line eqeqeq
|
|
699
|
+
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
700
|
+
}
|
|
701
|
+
: false;
|
|
702
|
+
return get;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
var getProto$2;
|
|
706
|
+
var hasRequiredGetProto;
|
|
707
|
+
|
|
708
|
+
function requireGetProto () {
|
|
709
|
+
if (hasRequiredGetProto) return getProto$2;
|
|
710
|
+
hasRequiredGetProto = 1;
|
|
711
|
+
|
|
712
|
+
var reflectGetProto = requireReflect_getPrototypeOf();
|
|
713
|
+
var originalGetProto = requireObject_getPrototypeOf();
|
|
714
|
+
|
|
715
|
+
var getDunderProto = requireGet();
|
|
716
|
+
|
|
717
|
+
/** @type {import('.')} */
|
|
718
|
+
getProto$2 = reflectGetProto
|
|
719
|
+
? function getProto(O) {
|
|
720
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
721
|
+
return reflectGetProto(O);
|
|
722
|
+
}
|
|
723
|
+
: originalGetProto
|
|
724
|
+
? function getProto(O) {
|
|
725
|
+
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
726
|
+
throw new TypeError('getProto: not an object');
|
|
727
|
+
}
|
|
728
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
729
|
+
return originalGetProto(O);
|
|
730
|
+
}
|
|
731
|
+
: getDunderProto
|
|
732
|
+
? function getProto(O) {
|
|
733
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
734
|
+
return getDunderProto(O);
|
|
735
|
+
}
|
|
736
|
+
: null;
|
|
737
|
+
return getProto$2;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
var hasown;
|
|
741
|
+
var hasRequiredHasown;
|
|
742
|
+
|
|
743
|
+
function requireHasown () {
|
|
744
|
+
if (hasRequiredHasown) return hasown;
|
|
745
|
+
hasRequiredHasown = 1;
|
|
746
|
+
|
|
747
|
+
var call = Function.prototype.call;
|
|
748
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
749
|
+
var bind = requireFunctionBind();
|
|
750
|
+
|
|
751
|
+
/** @type {import('.')} */
|
|
752
|
+
hasown = bind.call(call, $hasOwn);
|
|
753
|
+
return hasown;
|
|
754
|
+
}
|
|
399
755
|
|
|
400
756
|
var undefined$1;
|
|
401
757
|
|
|
758
|
+
var $Object$1 = esObjectAtoms;
|
|
759
|
+
|
|
402
760
|
var $Error = esErrors;
|
|
403
761
|
var $EvalError = _eval;
|
|
404
762
|
var $RangeError = range;
|
|
405
763
|
var $ReferenceError = ref;
|
|
406
|
-
var $SyntaxError$
|
|
407
|
-
var $TypeError$
|
|
764
|
+
var $SyntaxError$1 = syntax;
|
|
765
|
+
var $TypeError$8 = type;
|
|
408
766
|
var $URIError = uri;
|
|
409
767
|
|
|
768
|
+
var abs = abs$1;
|
|
769
|
+
var floor = floor$1;
|
|
770
|
+
var max = max$1;
|
|
771
|
+
var min = min$1;
|
|
772
|
+
var pow = pow$1;
|
|
773
|
+
var round = round$1;
|
|
774
|
+
var sign = sign$1;
|
|
775
|
+
|
|
410
776
|
var $Function = Function;
|
|
411
777
|
|
|
412
778
|
// eslint-disable-next-line consistent-return
|
|
@@ -416,19 +782,13 @@ var getEvalledConstructor = function (expressionSyntax) {
|
|
|
416
782
|
} catch (e) {}
|
|
417
783
|
};
|
|
418
784
|
|
|
419
|
-
var $gOPD$
|
|
420
|
-
|
|
421
|
-
try {
|
|
422
|
-
$gOPD$2({}, '');
|
|
423
|
-
} catch (e) {
|
|
424
|
-
$gOPD$2 = null; // this is IE 8, which has a broken gOPD
|
|
425
|
-
}
|
|
426
|
-
}
|
|
785
|
+
var $gOPD$1 = gopd$1;
|
|
786
|
+
var $defineProperty = esDefineProperty;
|
|
427
787
|
|
|
428
788
|
var throwTypeError = function () {
|
|
429
|
-
throw new $TypeError$
|
|
789
|
+
throw new $TypeError$8();
|
|
430
790
|
};
|
|
431
|
-
var ThrowTypeError = $gOPD$
|
|
791
|
+
var ThrowTypeError = $gOPD$1
|
|
432
792
|
? (function () {
|
|
433
793
|
try {
|
|
434
794
|
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
@@ -437,7 +797,7 @@ var ThrowTypeError = $gOPD$2
|
|
|
437
797
|
} catch (calleeThrows) {
|
|
438
798
|
try {
|
|
439
799
|
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
440
|
-
return $gOPD$
|
|
800
|
+
return $gOPD$1(arguments, 'callee').get;
|
|
441
801
|
} catch (gOPDthrows) {
|
|
442
802
|
return throwTypeError;
|
|
443
803
|
}
|
|
@@ -445,14 +805,14 @@ var ThrowTypeError = $gOPD$2
|
|
|
445
805
|
}())
|
|
446
806
|
: throwTypeError;
|
|
447
807
|
|
|
448
|
-
var hasSymbols$
|
|
449
|
-
var hasProto = hasProto$1();
|
|
808
|
+
var hasSymbols$3 = hasSymbols$4();
|
|
450
809
|
|
|
451
|
-
var getProto$1 =
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
);
|
|
810
|
+
var getProto$1 = requireGetProto();
|
|
811
|
+
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
812
|
+
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
813
|
+
|
|
814
|
+
var $apply = requireFunctionApply();
|
|
815
|
+
var $call = requireFunctionCall();
|
|
456
816
|
|
|
457
817
|
var needsEval = {};
|
|
458
818
|
|
|
@@ -463,7 +823,7 @@ var INTRINSICS = {
|
|
|
463
823
|
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
|
|
464
824
|
'%Array%': Array,
|
|
465
825
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
|
|
466
|
-
'%ArrayIteratorPrototype%': hasSymbols$
|
|
826
|
+
'%ArrayIteratorPrototype%': hasSymbols$3 && getProto$1 ? getProto$1([][Symbol.iterator]()) : undefined$1,
|
|
467
827
|
'%AsyncFromSyncIteratorPrototype%': undefined$1,
|
|
468
828
|
'%AsyncFunction%': needsEval,
|
|
469
829
|
'%AsyncGenerator%': needsEval,
|
|
@@ -493,13 +853,14 @@ var INTRINSICS = {
|
|
|
493
853
|
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
|
|
494
854
|
'%isFinite%': isFinite,
|
|
495
855
|
'%isNaN%': isNaN,
|
|
496
|
-
'%IteratorPrototype%': hasSymbols$
|
|
856
|
+
'%IteratorPrototype%': hasSymbols$3 && getProto$1 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$1,
|
|
497
857
|
'%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
|
|
498
858
|
'%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
|
|
499
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$
|
|
859
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 || !getProto$1 ? undefined$1 : getProto$1(new Map()[Symbol.iterator]()),
|
|
500
860
|
'%Math%': Math,
|
|
501
861
|
'%Number%': Number,
|
|
502
|
-
'%Object%': Object,
|
|
862
|
+
'%Object%': $Object$1,
|
|
863
|
+
'%Object.getOwnPropertyDescriptor%': $gOPD$1,
|
|
503
864
|
'%parseFloat%': parseFloat,
|
|
504
865
|
'%parseInt%': parseInt,
|
|
505
866
|
'%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
|
|
@@ -509,15 +870,15 @@ var INTRINSICS = {
|
|
|
509
870
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
|
|
510
871
|
'%RegExp%': RegExp,
|
|
511
872
|
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
|
|
512
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$
|
|
873
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 || !getProto$1 ? undefined$1 : getProto$1(new Set()[Symbol.iterator]()),
|
|
513
874
|
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
|
|
514
875
|
'%String%': String,
|
|
515
|
-
'%StringIteratorPrototype%': hasSymbols$
|
|
516
|
-
'%Symbol%': hasSymbols$
|
|
517
|
-
'%SyntaxError%': $SyntaxError$
|
|
876
|
+
'%StringIteratorPrototype%': hasSymbols$3 && getProto$1 ? getProto$1(''[Symbol.iterator]()) : undefined$1,
|
|
877
|
+
'%Symbol%': hasSymbols$3 ? Symbol : undefined$1,
|
|
878
|
+
'%SyntaxError%': $SyntaxError$1,
|
|
518
879
|
'%ThrowTypeError%': ThrowTypeError,
|
|
519
880
|
'%TypedArray%': TypedArray,
|
|
520
|
-
'%TypeError%': $TypeError$
|
|
881
|
+
'%TypeError%': $TypeError$8,
|
|
521
882
|
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
|
|
522
883
|
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
|
|
523
884
|
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
|
|
@@ -525,7 +886,20 @@ var INTRINSICS = {
|
|
|
525
886
|
'%URIError%': $URIError,
|
|
526
887
|
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
|
|
527
888
|
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
|
|
528
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
|
|
889
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
|
|
890
|
+
|
|
891
|
+
'%Function.prototype.call%': $call,
|
|
892
|
+
'%Function.prototype.apply%': $apply,
|
|
893
|
+
'%Object.defineProperty%': $defineProperty,
|
|
894
|
+
'%Object.getPrototypeOf%': $ObjectGPO,
|
|
895
|
+
'%Math.abs%': abs,
|
|
896
|
+
'%Math.floor%': floor,
|
|
897
|
+
'%Math.max%': max,
|
|
898
|
+
'%Math.min%': min,
|
|
899
|
+
'%Math.pow%': pow,
|
|
900
|
+
'%Math.round%': round,
|
|
901
|
+
'%Math.sign%': sign,
|
|
902
|
+
'%Reflect.getPrototypeOf%': $ReflectGPO
|
|
529
903
|
};
|
|
530
904
|
|
|
531
905
|
if (getProto$1) {
|
|
@@ -618,13 +992,13 @@ var LEGACY_ALIASES = {
|
|
|
618
992
|
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
619
993
|
};
|
|
620
994
|
|
|
621
|
-
var bind =
|
|
622
|
-
var hasOwn$2 =
|
|
623
|
-
var $concat$1 = bind.call(
|
|
624
|
-
var $spliceApply = bind.call(
|
|
625
|
-
var $replace$1 = bind.call(
|
|
626
|
-
var $strSlice = bind.call(
|
|
627
|
-
var $exec$1 = bind.call(
|
|
995
|
+
var bind = requireFunctionBind();
|
|
996
|
+
var hasOwn$2 = requireHasown();
|
|
997
|
+
var $concat$1 = bind.call($call, Array.prototype.concat);
|
|
998
|
+
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
999
|
+
var $replace$1 = bind.call($call, String.prototype.replace);
|
|
1000
|
+
var $strSlice = bind.call($call, String.prototype.slice);
|
|
1001
|
+
var $exec$1 = bind.call($call, RegExp.prototype.exec);
|
|
628
1002
|
|
|
629
1003
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
630
1004
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
@@ -633,9 +1007,9 @@ var stringToPath = function stringToPath(string) {
|
|
|
633
1007
|
var first = $strSlice(string, 0, 1);
|
|
634
1008
|
var last = $strSlice(string, -1);
|
|
635
1009
|
if (first === '%' && last !== '%') {
|
|
636
|
-
throw new $SyntaxError$
|
|
1010
|
+
throw new $SyntaxError$1('invalid intrinsic syntax, expected closing `%`');
|
|
637
1011
|
} else if (last === '%' && first !== '%') {
|
|
638
|
-
throw new $SyntaxError$
|
|
1012
|
+
throw new $SyntaxError$1('invalid intrinsic syntax, expected opening `%`');
|
|
639
1013
|
}
|
|
640
1014
|
var result = [];
|
|
641
1015
|
$replace$1(string, rePropName, function (match, number, quote, subString) {
|
|
@@ -658,281 +1032,118 @@ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
|
658
1032
|
if (value === needsEval) {
|
|
659
1033
|
value = doEval(intrinsicName);
|
|
660
1034
|
}
|
|
661
|
-
if (typeof value === 'undefined' && !allowMissing) {
|
|
662
|
-
throw new $TypeError$
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
return {
|
|
666
|
-
alias: alias,
|
|
667
|
-
name: intrinsicName,
|
|
668
|
-
value: value
|
|
669
|
-
};
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
throw new $SyntaxError$2('intrinsic ' + name + ' does not exist!');
|
|
673
|
-
};
|
|
674
|
-
|
|
675
|
-
var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
676
|
-
if (typeof name !== 'string' || name.length === 0) {
|
|
677
|
-
throw new $TypeError$6('intrinsic name must be a non-empty string');
|
|
678
|
-
}
|
|
679
|
-
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
680
|
-
throw new $TypeError$6('"allowMissing" argument must be a boolean');
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
if ($exec$1(/^%?[^%]*%?$/, name) === null) {
|
|
684
|
-
throw new $SyntaxError$2('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
685
|
-
}
|
|
686
|
-
var parts = stringToPath(name);
|
|
687
|
-
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
688
|
-
|
|
689
|
-
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
690
|
-
var intrinsicRealName = intrinsic.name;
|
|
691
|
-
var value = intrinsic.value;
|
|
692
|
-
var skipFurtherCaching = false;
|
|
693
|
-
|
|
694
|
-
var alias = intrinsic.alias;
|
|
695
|
-
if (alias) {
|
|
696
|
-
intrinsicBaseName = alias[0];
|
|
697
|
-
$spliceApply(parts, $concat$1([0, 1], alias));
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
701
|
-
var part = parts[i];
|
|
702
|
-
var first = $strSlice(part, 0, 1);
|
|
703
|
-
var last = $strSlice(part, -1);
|
|
704
|
-
if (
|
|
705
|
-
(
|
|
706
|
-
(first === '"' || first === "'" || first === '`')
|
|
707
|
-
|| (last === '"' || last === "'" || last === '`')
|
|
708
|
-
)
|
|
709
|
-
&& first !== last
|
|
710
|
-
) {
|
|
711
|
-
throw new $SyntaxError$2('property names with quotes must have matching quotes');
|
|
712
|
-
}
|
|
713
|
-
if (part === 'constructor' || !isOwn) {
|
|
714
|
-
skipFurtherCaching = true;
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
intrinsicBaseName += '.' + part;
|
|
718
|
-
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
719
|
-
|
|
720
|
-
if (hasOwn$2(INTRINSICS, intrinsicRealName)) {
|
|
721
|
-
value = INTRINSICS[intrinsicRealName];
|
|
722
|
-
} else if (value != null) {
|
|
723
|
-
if (!(part in value)) {
|
|
724
|
-
if (!allowMissing) {
|
|
725
|
-
throw new $TypeError$6('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
726
|
-
}
|
|
727
|
-
return void undefined$1;
|
|
728
|
-
}
|
|
729
|
-
if ($gOPD$2 && (i + 1) >= parts.length) {
|
|
730
|
-
var desc = $gOPD$2(value, part);
|
|
731
|
-
isOwn = !!desc;
|
|
732
|
-
|
|
733
|
-
// By convention, when a data property is converted to an accessor
|
|
734
|
-
// property to emulate a data property that does not suffer from
|
|
735
|
-
// the override mistake, that accessor's getter is marked with
|
|
736
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
737
|
-
// uphold the illusion by pretending to see that original data
|
|
738
|
-
// property, i.e., returning the value rather than the getter
|
|
739
|
-
// itself.
|
|
740
|
-
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
741
|
-
value = desc.get;
|
|
742
|
-
} else {
|
|
743
|
-
value = value[part];
|
|
744
|
-
}
|
|
745
|
-
} else {
|
|
746
|
-
isOwn = hasOwn$2(value, part);
|
|
747
|
-
value = value[part];
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
if (isOwn && !skipFurtherCaching) {
|
|
751
|
-
INTRINSICS[intrinsicRealName] = value;
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
return value;
|
|
756
|
-
};
|
|
757
|
-
|
|
758
|
-
var esDefineProperty;
|
|
759
|
-
var hasRequiredEsDefineProperty;
|
|
760
|
-
|
|
761
|
-
function requireEsDefineProperty () {
|
|
762
|
-
if (hasRequiredEsDefineProperty) return esDefineProperty;
|
|
763
|
-
hasRequiredEsDefineProperty = 1;
|
|
764
|
-
|
|
765
|
-
var GetIntrinsic = getIntrinsic;
|
|
766
|
-
|
|
767
|
-
/** @type {import('.')} */
|
|
768
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true) || false;
|
|
769
|
-
if ($defineProperty) {
|
|
770
|
-
try {
|
|
771
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
772
|
-
} catch (e) {
|
|
773
|
-
// IE 8 has a broken defineProperty
|
|
774
|
-
$defineProperty = false;
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
esDefineProperty = $defineProperty;
|
|
779
|
-
return esDefineProperty;
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
var GetIntrinsic$7 = getIntrinsic;
|
|
783
|
-
|
|
784
|
-
var $gOPD$1 = GetIntrinsic$7('%Object.getOwnPropertyDescriptor%', true);
|
|
785
|
-
|
|
786
|
-
if ($gOPD$1) {
|
|
787
|
-
try {
|
|
788
|
-
$gOPD$1([], 'length');
|
|
789
|
-
} catch (e) {
|
|
790
|
-
// IE 8 has a broken gOPD
|
|
791
|
-
$gOPD$1 = null;
|
|
792
|
-
}
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
var gopd$1 = $gOPD$1;
|
|
796
|
-
|
|
797
|
-
var $defineProperty$1 = requireEsDefineProperty();
|
|
798
|
-
|
|
799
|
-
var $SyntaxError$1 = syntax;
|
|
800
|
-
var $TypeError$5 = type;
|
|
801
|
-
|
|
802
|
-
var gopd = gopd$1;
|
|
803
|
-
|
|
804
|
-
/** @type {import('.')} */
|
|
805
|
-
var defineDataProperty$1 = function defineDataProperty(
|
|
806
|
-
obj,
|
|
807
|
-
property,
|
|
808
|
-
value
|
|
809
|
-
) {
|
|
810
|
-
if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
|
|
811
|
-
throw new $TypeError$5('`obj` must be an object or a function`');
|
|
812
|
-
}
|
|
813
|
-
if (typeof property !== 'string' && typeof property !== 'symbol') {
|
|
814
|
-
throw new $TypeError$5('`property` must be a string or a symbol`');
|
|
815
|
-
}
|
|
816
|
-
if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
|
|
817
|
-
throw new $TypeError$5('`nonEnumerable`, if provided, must be a boolean or null');
|
|
818
|
-
}
|
|
819
|
-
if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
|
|
820
|
-
throw new $TypeError$5('`nonWritable`, if provided, must be a boolean or null');
|
|
821
|
-
}
|
|
822
|
-
if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
|
|
823
|
-
throw new $TypeError$5('`nonConfigurable`, if provided, must be a boolean or null');
|
|
824
|
-
}
|
|
825
|
-
if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
|
|
826
|
-
throw new $TypeError$5('`loose`, if provided, must be a boolean');
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
830
|
-
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
831
|
-
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
832
|
-
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
833
|
-
|
|
834
|
-
/* @type {false | TypedPropertyDescriptor<unknown>} */
|
|
835
|
-
var desc = !!gopd && gopd(obj, property);
|
|
836
|
-
|
|
837
|
-
if ($defineProperty$1) {
|
|
838
|
-
$defineProperty$1(obj, property, {
|
|
839
|
-
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
840
|
-
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
841
|
-
value: value,
|
|
842
|
-
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
843
|
-
});
|
|
844
|
-
} else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
|
|
845
|
-
// must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
|
|
846
|
-
obj[property] = value; // eslint-disable-line no-param-reassign
|
|
847
|
-
} else {
|
|
848
|
-
throw new $SyntaxError$1('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
|
|
849
|
-
}
|
|
850
|
-
};
|
|
851
|
-
|
|
852
|
-
var $defineProperty = requireEsDefineProperty();
|
|
853
|
-
|
|
854
|
-
var hasPropertyDescriptors = function hasPropertyDescriptors() {
|
|
855
|
-
return !!$defineProperty;
|
|
856
|
-
};
|
|
857
|
-
|
|
858
|
-
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
859
|
-
// node v0.6 has a bug where array lengths can be Set but not Defined
|
|
860
|
-
if (!$defineProperty) {
|
|
861
|
-
return null;
|
|
862
|
-
}
|
|
863
|
-
try {
|
|
864
|
-
return $defineProperty([], 'length', { value: 1 }).length !== 1;
|
|
865
|
-
} catch (e) {
|
|
866
|
-
// In Firefox 4-22, defining length on an array throws an exception.
|
|
867
|
-
return true;
|
|
868
|
-
}
|
|
869
|
-
};
|
|
870
|
-
|
|
871
|
-
var hasPropertyDescriptors_1 = hasPropertyDescriptors;
|
|
872
|
-
|
|
873
|
-
var keys = objectKeys$2;
|
|
874
|
-
var hasSymbols$3 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
|
|
875
|
-
|
|
876
|
-
var toStr$7 = Object.prototype.toString;
|
|
877
|
-
var concat = Array.prototype.concat;
|
|
878
|
-
var defineDataProperty = defineDataProperty$1;
|
|
879
|
-
|
|
880
|
-
var isFunction = function (fn) {
|
|
881
|
-
return typeof fn === 'function' && toStr$7.call(fn) === '[object Function]';
|
|
882
|
-
};
|
|
883
|
-
|
|
884
|
-
var supportsDescriptors$2 = hasPropertyDescriptors_1();
|
|
885
|
-
|
|
886
|
-
var defineProperty$1 = function (object, name, value, predicate) {
|
|
887
|
-
if (name in object) {
|
|
888
|
-
if (predicate === true) {
|
|
889
|
-
if (object[name] === value) {
|
|
890
|
-
return;
|
|
891
|
-
}
|
|
892
|
-
} else if (!isFunction(predicate) || !predicate()) {
|
|
893
|
-
return;
|
|
894
|
-
}
|
|
895
|
-
}
|
|
1035
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
1036
|
+
throw new $TypeError$8('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
1037
|
+
}
|
|
896
1038
|
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
1039
|
+
return {
|
|
1040
|
+
alias: alias,
|
|
1041
|
+
name: intrinsicName,
|
|
1042
|
+
value: value
|
|
1043
|
+
};
|
|
901
1044
|
}
|
|
1045
|
+
|
|
1046
|
+
throw new $SyntaxError$1('intrinsic ' + name + ' does not exist!');
|
|
902
1047
|
};
|
|
903
1048
|
|
|
904
|
-
var
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
if (hasSymbols$3) {
|
|
908
|
-
props = concat.call(props, Object.getOwnPropertySymbols(map));
|
|
1049
|
+
var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
1050
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
1051
|
+
throw new $TypeError$8('intrinsic name must be a non-empty string');
|
|
909
1052
|
}
|
|
910
|
-
|
|
911
|
-
|
|
1053
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
1054
|
+
throw new $TypeError$8('"allowMissing" argument must be a boolean');
|
|
912
1055
|
}
|
|
913
|
-
};
|
|
914
1056
|
|
|
915
|
-
|
|
1057
|
+
if ($exec$1(/^%?[^%]*%?$/, name) === null) {
|
|
1058
|
+
throw new $SyntaxError$1('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
1059
|
+
}
|
|
1060
|
+
var parts = stringToPath(name);
|
|
1061
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
916
1062
|
|
|
917
|
-
var
|
|
1063
|
+
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
1064
|
+
var intrinsicRealName = intrinsic.name;
|
|
1065
|
+
var value = intrinsic.value;
|
|
1066
|
+
var skipFurtherCaching = false;
|
|
918
1067
|
|
|
919
|
-
var
|
|
1068
|
+
var alias = intrinsic.alias;
|
|
1069
|
+
if (alias) {
|
|
1070
|
+
intrinsicBaseName = alias[0];
|
|
1071
|
+
$spliceApply(parts, $concat$1([0, 1], alias));
|
|
1072
|
+
}
|
|
920
1073
|
|
|
921
|
-
var
|
|
1074
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
1075
|
+
var part = parts[i];
|
|
1076
|
+
var first = $strSlice(part, 0, 1);
|
|
1077
|
+
var last = $strSlice(part, -1);
|
|
1078
|
+
if (
|
|
1079
|
+
(
|
|
1080
|
+
(first === '"' || first === "'" || first === '`')
|
|
1081
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
1082
|
+
)
|
|
1083
|
+
&& first !== last
|
|
1084
|
+
) {
|
|
1085
|
+
throw new $SyntaxError$1('property names with quotes must have matching quotes');
|
|
1086
|
+
}
|
|
1087
|
+
if (part === 'constructor' || !isOwn) {
|
|
1088
|
+
skipFurtherCaching = true;
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
intrinsicBaseName += '.' + part;
|
|
1092
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
1093
|
+
|
|
1094
|
+
if (hasOwn$2(INTRINSICS, intrinsicRealName)) {
|
|
1095
|
+
value = INTRINSICS[intrinsicRealName];
|
|
1096
|
+
} else if (value != null) {
|
|
1097
|
+
if (!(part in value)) {
|
|
1098
|
+
if (!allowMissing) {
|
|
1099
|
+
throw new $TypeError$8('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1100
|
+
}
|
|
1101
|
+
return void undefined$1;
|
|
1102
|
+
}
|
|
1103
|
+
if ($gOPD$1 && (i + 1) >= parts.length) {
|
|
1104
|
+
var desc = $gOPD$1(value, part);
|
|
1105
|
+
isOwn = !!desc;
|
|
1106
|
+
|
|
1107
|
+
// By convention, when a data property is converted to an accessor
|
|
1108
|
+
// property to emulate a data property that does not suffer from
|
|
1109
|
+
// the override mistake, that accessor's getter is marked with
|
|
1110
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
1111
|
+
// uphold the illusion by pretending to see that original data
|
|
1112
|
+
// property, i.e., returning the value rather than the getter
|
|
1113
|
+
// itself.
|
|
1114
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
1115
|
+
value = desc.get;
|
|
1116
|
+
} else {
|
|
1117
|
+
value = value[part];
|
|
1118
|
+
}
|
|
1119
|
+
} else {
|
|
1120
|
+
isOwn = hasOwn$2(value, part);
|
|
1121
|
+
value = value[part];
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
if (isOwn && !skipFurtherCaching) {
|
|
1125
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
return value;
|
|
1130
|
+
};
|
|
1131
|
+
|
|
1132
|
+
var GetIntrinsic$8 = getIntrinsic;
|
|
922
1133
|
var define$5 = defineDataProperty$1;
|
|
923
1134
|
var hasDescriptors$1 = hasPropertyDescriptors_1();
|
|
924
1135
|
var gOPD$4 = gopd$1;
|
|
925
1136
|
|
|
926
|
-
var $TypeError$
|
|
927
|
-
var $floor$1 = GetIntrinsic$
|
|
1137
|
+
var $TypeError$7 = type;
|
|
1138
|
+
var $floor$1 = GetIntrinsic$8('%Math.floor%');
|
|
928
1139
|
|
|
929
1140
|
/** @type {import('.')} */
|
|
930
1141
|
var setFunctionLength = function setFunctionLength(fn, length) {
|
|
931
1142
|
if (typeof fn !== 'function') {
|
|
932
|
-
throw new $TypeError$
|
|
1143
|
+
throw new $TypeError$7('`fn` is not a function');
|
|
933
1144
|
}
|
|
934
1145
|
if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor$1(length) !== length) {
|
|
935
|
-
throw new $TypeError$
|
|
1146
|
+
throw new $TypeError$7('`length` must be a positive 32-bit integer');
|
|
936
1147
|
}
|
|
937
1148
|
|
|
938
1149
|
var loose = arguments.length > 2 && !!arguments[2];
|
|
@@ -961,7 +1172,7 @@ var setFunctionLength = function setFunctionLength(fn, length) {
|
|
|
961
1172
|
|
|
962
1173
|
(function (module) {
|
|
963
1174
|
|
|
964
|
-
var bind =
|
|
1175
|
+
var bind = requireFunctionBind();
|
|
965
1176
|
var GetIntrinsic = getIntrinsic;
|
|
966
1177
|
var setFunctionLength$1 = setFunctionLength;
|
|
967
1178
|
|
|
@@ -970,7 +1181,7 @@ var setFunctionLength = function setFunctionLength(fn, length) {
|
|
|
970
1181
|
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
971
1182
|
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
972
1183
|
|
|
973
|
-
var $defineProperty =
|
|
1184
|
+
var $defineProperty = esDefineProperty;
|
|
974
1185
|
var $max = GetIntrinsic('%Math.max%');
|
|
975
1186
|
|
|
976
1187
|
module.exports = function callBind(originalFunction) {
|
|
@@ -998,15 +1209,15 @@ var setFunctionLength = function setFunctionLength(fn, length) {
|
|
|
998
1209
|
|
|
999
1210
|
var callBindExports = callBind$6.exports;
|
|
1000
1211
|
|
|
1001
|
-
var GetIntrinsic$
|
|
1212
|
+
var GetIntrinsic$7 = getIntrinsic;
|
|
1002
1213
|
|
|
1003
1214
|
var callBind$5 = callBindExports;
|
|
1004
1215
|
|
|
1005
|
-
var $indexOf$
|
|
1216
|
+
var $indexOf$2 = callBind$5(GetIntrinsic$7('String.prototype.indexOf'));
|
|
1006
1217
|
|
|
1007
|
-
var callBound$
|
|
1008
|
-
var intrinsic = GetIntrinsic$
|
|
1009
|
-
if (typeof intrinsic === 'function' && $indexOf$
|
|
1218
|
+
var callBound$e = function callBoundIntrinsic(name, allowMissing) {
|
|
1219
|
+
var intrinsic = GetIntrinsic$7(name, !!allowMissing);
|
|
1220
|
+
if (typeof intrinsic === 'function' && $indexOf$2(name, '.prototype.') > -1) {
|
|
1010
1221
|
return callBind$5(intrinsic);
|
|
1011
1222
|
}
|
|
1012
1223
|
return intrinsic;
|
|
@@ -1015,10 +1226,10 @@ var callBound$c = function callBoundIntrinsic(name, allowMissing) {
|
|
|
1015
1226
|
// modified from https://github.com/es-shims/es6-shim
|
|
1016
1227
|
var objectKeys$1 = objectKeys$2;
|
|
1017
1228
|
var hasSymbols$2 = requireShams()();
|
|
1018
|
-
var callBound$
|
|
1229
|
+
var callBound$d = callBound$e;
|
|
1019
1230
|
var toObject = Object;
|
|
1020
|
-
var $push = callBound$
|
|
1021
|
-
var $propIsEnumerable = callBound$
|
|
1231
|
+
var $push = callBound$d('Array.prototype.push');
|
|
1232
|
+
var $propIsEnumerable = callBound$d('Object.prototype.propertyIsEnumerable');
|
|
1022
1233
|
var originalGetSymbols = hasSymbols$2 ? Object.getOwnPropertySymbols : null;
|
|
1023
1234
|
|
|
1024
1235
|
// eslint-disable-next-line no-unused-vars
|
|
@@ -1179,12 +1390,12 @@ var define$3 = defineDataProperty$1;
|
|
|
1179
1390
|
var hasDescriptors = hasPropertyDescriptors_1();
|
|
1180
1391
|
var functionsHaveConfigurableNames = functionsHaveNames_1.functionsHaveConfigurableNames();
|
|
1181
1392
|
|
|
1182
|
-
var $TypeError$
|
|
1393
|
+
var $TypeError$6 = type;
|
|
1183
1394
|
|
|
1184
1395
|
/** @type {import('.')} */
|
|
1185
1396
|
var setFunctionName$1 = function setFunctionName(fn, name) {
|
|
1186
1397
|
if (typeof fn !== 'function') {
|
|
1187
|
-
throw new $TypeError$
|
|
1398
|
+
throw new $TypeError$6('`fn` is not a function');
|
|
1188
1399
|
}
|
|
1189
1400
|
var loose = arguments.length > 2 && !!arguments[2];
|
|
1190
1401
|
if (!loose || functionsHaveConfigurableNames) {
|
|
@@ -1198,13 +1409,13 @@ var setFunctionName$1 = function setFunctionName(fn, name) {
|
|
|
1198
1409
|
};
|
|
1199
1410
|
|
|
1200
1411
|
var setFunctionName = setFunctionName$1;
|
|
1201
|
-
var $TypeError$
|
|
1412
|
+
var $TypeError$5 = type;
|
|
1202
1413
|
|
|
1203
1414
|
var $Object = Object;
|
|
1204
1415
|
|
|
1205
1416
|
var implementation$5 = setFunctionName(function flags() {
|
|
1206
1417
|
if (this == null || this !== $Object(this)) {
|
|
1207
|
-
throw new $TypeError$
|
|
1418
|
+
throw new $TypeError$5('RegExp.prototype.flags getter called on non-object');
|
|
1208
1419
|
}
|
|
1209
1420
|
var result = '';
|
|
1210
1421
|
if (this.hasIndices) {
|
|
@@ -1321,9 +1532,9 @@ var shams = function hasToStringTagShams() {
|
|
|
1321
1532
|
};
|
|
1322
1533
|
|
|
1323
1534
|
var hasToStringTag$7 = shams();
|
|
1324
|
-
var callBound$
|
|
1535
|
+
var callBound$c = callBound$e;
|
|
1325
1536
|
|
|
1326
|
-
var $toString$4 = callBound$
|
|
1537
|
+
var $toString$4 = callBound$c('Object.prototype.toString');
|
|
1327
1538
|
|
|
1328
1539
|
var isStandardArguments = function isArguments(value) {
|
|
1329
1540
|
if (hasToStringTag$7 && value && typeof value === 'object' && Symbol.toStringTag in value) {
|
|
@@ -1432,10 +1643,21 @@ var utilInspect = require$$0;
|
|
|
1432
1643
|
var inspectCustom = utilInspect.custom;
|
|
1433
1644
|
var inspectSymbol = isSymbol$2(inspectCustom) ? inspectCustom : null;
|
|
1434
1645
|
|
|
1646
|
+
var quotes = {
|
|
1647
|
+
__proto__: null,
|
|
1648
|
+
'double': '"',
|
|
1649
|
+
single: "'"
|
|
1650
|
+
};
|
|
1651
|
+
var quoteREs = {
|
|
1652
|
+
__proto__: null,
|
|
1653
|
+
'double': /(["\\])/g,
|
|
1654
|
+
single: /(['\\])/g
|
|
1655
|
+
};
|
|
1656
|
+
|
|
1435
1657
|
var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
1436
1658
|
var opts = options || {};
|
|
1437
1659
|
|
|
1438
|
-
if (has$1(opts, 'quoteStyle') && (
|
|
1660
|
+
if (has$1(opts, 'quoteStyle') && !has$1(quotes, opts.quoteStyle)) {
|
|
1439
1661
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
1440
1662
|
}
|
|
1441
1663
|
if (
|
|
@@ -1607,7 +1829,10 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
1607
1829
|
if (typeof window !== 'undefined' && obj === window) {
|
|
1608
1830
|
return '{ [object Window] }';
|
|
1609
1831
|
}
|
|
1610
|
-
if (
|
|
1832
|
+
if (
|
|
1833
|
+
(typeof globalThis !== 'undefined' && obj === globalThis)
|
|
1834
|
+
|| (typeof commonjsGlobal !== 'undefined' && obj === commonjsGlobal)
|
|
1835
|
+
) {
|
|
1611
1836
|
return '{ [object globalThis] }';
|
|
1612
1837
|
}
|
|
1613
1838
|
if (!isDate$1(obj) && !isRegExp(obj)) {
|
|
@@ -1627,7 +1852,8 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
1627
1852
|
};
|
|
1628
1853
|
|
|
1629
1854
|
function wrapQuotes(s, defaultStyle, opts) {
|
|
1630
|
-
var
|
|
1855
|
+
var style = opts.quoteStyle || defaultStyle;
|
|
1856
|
+
var quoteChar = quotes[style];
|
|
1631
1857
|
return quoteChar + s + quoteChar;
|
|
1632
1858
|
}
|
|
1633
1859
|
|
|
@@ -1785,8 +2011,10 @@ function inspectString(str, opts) {
|
|
|
1785
2011
|
var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
|
|
1786
2012
|
return inspectString($slice$1.call(str, 0, opts.maxStringLength), opts) + trailer;
|
|
1787
2013
|
}
|
|
2014
|
+
var quoteRE = quoteREs[opts.quoteStyle || 'single'];
|
|
2015
|
+
quoteRE.lastIndex = 0;
|
|
1788
2016
|
// eslint-disable-next-line no-control-regex
|
|
1789
|
-
var s = $replace.call($replace.call(str,
|
|
2017
|
+
var s = $replace.call($replace.call(str, quoteRE, '\\$1'), /[\x00-\x1f]/g, lowbyte);
|
|
1790
2018
|
return wrapQuotes(s, 'single', opts);
|
|
1791
2019
|
}
|
|
1792
2020
|
|
|
@@ -1886,135 +2114,328 @@ function arrObjKeys(obj, inspect) {
|
|
|
1886
2114
|
return xs;
|
|
1887
2115
|
}
|
|
1888
2116
|
|
|
1889
|
-
var
|
|
1890
|
-
var callBound$9 = callBound$c;
|
|
1891
|
-
var inspect = objectInspect;
|
|
1892
|
-
|
|
1893
|
-
var $TypeError$1 = type;
|
|
1894
|
-
var $WeakMap$1 = GetIntrinsic$4('%WeakMap%', true);
|
|
1895
|
-
var $Map$3 = GetIntrinsic$4('%Map%', true);
|
|
2117
|
+
var inspect$3 = objectInspect;
|
|
1896
2118
|
|
|
1897
|
-
var $
|
|
1898
|
-
var $weakMapSet = callBound$9('WeakMap.prototype.set', true);
|
|
1899
|
-
var $weakMapHas = callBound$9('WeakMap.prototype.has', true);
|
|
1900
|
-
var $mapGet$1 = callBound$9('Map.prototype.get', true);
|
|
1901
|
-
var $mapSet = callBound$9('Map.prototype.set', true);
|
|
1902
|
-
var $mapHas$5 = callBound$9('Map.prototype.has', true);
|
|
2119
|
+
var $TypeError$4 = type;
|
|
1903
2120
|
|
|
1904
2121
|
/*
|
|
1905
2122
|
* This function traverses the list returning the node corresponding to the given key.
|
|
1906
2123
|
*
|
|
1907
|
-
* 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.
|
|
2124
|
+
* 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.
|
|
2125
|
+
* By doing so, all the recently used nodes can be accessed relatively quickly.
|
|
1908
2126
|
*/
|
|
1909
|
-
/** @type {import('.').listGetNode} */
|
|
1910
|
-
|
|
2127
|
+
/** @type {import('./list.d.ts').listGetNode} */
|
|
2128
|
+
// eslint-disable-next-line consistent-return
|
|
2129
|
+
var listGetNode = function (list, key, isDelete) {
|
|
1911
2130
|
/** @type {typeof list | NonNullable<(typeof list)['next']>} */
|
|
1912
2131
|
var prev = list;
|
|
1913
2132
|
/** @type {(typeof list)['next']} */
|
|
1914
2133
|
var curr;
|
|
1915
|
-
|
|
2134
|
+
// eslint-disable-next-line eqeqeq
|
|
2135
|
+
for (; (curr = prev.next) != null; prev = curr) {
|
|
1916
2136
|
if (curr.key === key) {
|
|
1917
2137
|
prev.next = curr.next;
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
2138
|
+
if (!isDelete) {
|
|
2139
|
+
// eslint-disable-next-line no-extra-parens
|
|
2140
|
+
curr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);
|
|
2141
|
+
list.next = curr; // eslint-disable-line no-param-reassign
|
|
2142
|
+
}
|
|
1921
2143
|
return curr;
|
|
1922
2144
|
}
|
|
1923
2145
|
}
|
|
1924
2146
|
};
|
|
1925
2147
|
|
|
1926
|
-
/** @type {import('.').listGet} */
|
|
2148
|
+
/** @type {import('./list.d.ts').listGet} */
|
|
1927
2149
|
var listGet = function (objects, key) {
|
|
2150
|
+
if (!objects) {
|
|
2151
|
+
return void undefined;
|
|
2152
|
+
}
|
|
1928
2153
|
var node = listGetNode(objects, key);
|
|
1929
2154
|
return node && node.value;
|
|
1930
2155
|
};
|
|
1931
|
-
/** @type {import('.').listSet} */
|
|
2156
|
+
/** @type {import('./list.d.ts').listSet} */
|
|
1932
2157
|
var listSet = function (objects, key, value) {
|
|
1933
2158
|
var node = listGetNode(objects, key);
|
|
1934
2159
|
if (node) {
|
|
1935
2160
|
node.value = value;
|
|
1936
2161
|
} else {
|
|
1937
2162
|
// Prepend the new node to the beginning of the list
|
|
1938
|
-
objects.next = /** @type {import('.').ListNode<typeof value>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
|
|
2163
|
+
objects.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
|
|
1939
2164
|
key: key,
|
|
1940
2165
|
next: objects.next,
|
|
1941
2166
|
value: value
|
|
1942
2167
|
});
|
|
1943
2168
|
}
|
|
1944
2169
|
};
|
|
1945
|
-
/** @type {import('.').listHas} */
|
|
2170
|
+
/** @type {import('./list.d.ts').listHas} */
|
|
1946
2171
|
var listHas = function (objects, key) {
|
|
2172
|
+
if (!objects) {
|
|
2173
|
+
return false;
|
|
2174
|
+
}
|
|
1947
2175
|
return !!listGetNode(objects, key);
|
|
1948
2176
|
};
|
|
2177
|
+
/** @type {import('./list.d.ts').listDelete} */
|
|
2178
|
+
// eslint-disable-next-line consistent-return
|
|
2179
|
+
var listDelete = function (objects, key) {
|
|
2180
|
+
if (objects) {
|
|
2181
|
+
return listGetNode(objects, key, true);
|
|
2182
|
+
}
|
|
2183
|
+
};
|
|
1949
2184
|
|
|
1950
2185
|
/** @type {import('.')} */
|
|
1951
|
-
var
|
|
1952
|
-
/** @
|
|
1953
|
-
/** @
|
|
1954
|
-
/** @
|
|
2186
|
+
var sideChannelList = function getSideChannelList() {
|
|
2187
|
+
/** @typedef {ReturnType<typeof getSideChannelList>} Channel */
|
|
2188
|
+
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
2189
|
+
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
2190
|
+
|
|
2191
|
+
/** @type {import('./list.d.ts').RootNode<V, K> | undefined} */ var $o;
|
|
1955
2192
|
|
|
1956
|
-
/** @type {
|
|
2193
|
+
/** @type {Channel} */
|
|
1957
2194
|
var channel = {
|
|
1958
2195
|
assert: function (key) {
|
|
1959
2196
|
if (!channel.has(key)) {
|
|
1960
|
-
throw new $TypeError$
|
|
2197
|
+
throw new $TypeError$4('Side channel does not contain ' + inspect$3(key));
|
|
1961
2198
|
}
|
|
1962
2199
|
},
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
} else if ($Map$3) {
|
|
1969
|
-
if ($m) {
|
|
1970
|
-
return $mapGet$1($m, key);
|
|
1971
|
-
}
|
|
1972
|
-
} else {
|
|
1973
|
-
if ($o) { // eslint-disable-line no-lonely-if
|
|
1974
|
-
return listGet($o, key);
|
|
1975
|
-
}
|
|
2200
|
+
'delete': function (key) {
|
|
2201
|
+
var root = $o && $o.next;
|
|
2202
|
+
var deletedNode = listDelete($o, key);
|
|
2203
|
+
if (deletedNode && root && root === deletedNode) {
|
|
2204
|
+
$o = void undefined;
|
|
1976
2205
|
}
|
|
2206
|
+
return !!deletedNode;
|
|
2207
|
+
},
|
|
2208
|
+
get: function (key) {
|
|
2209
|
+
return listGet($o, key);
|
|
1977
2210
|
},
|
|
1978
2211
|
has: function (key) {
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
}
|
|
1987
|
-
}
|
|
1988
|
-
|
|
1989
|
-
|
|
2212
|
+
return listHas($o, key);
|
|
2213
|
+
},
|
|
2214
|
+
set: function (key, value) {
|
|
2215
|
+
if (!$o) {
|
|
2216
|
+
// 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
|
|
2217
|
+
$o = {
|
|
2218
|
+
next: void undefined
|
|
2219
|
+
};
|
|
2220
|
+
}
|
|
2221
|
+
// eslint-disable-next-line no-extra-parens
|
|
2222
|
+
listSet(/** @type {NonNullable<typeof $o>} */ ($o), key, value);
|
|
2223
|
+
}
|
|
2224
|
+
};
|
|
2225
|
+
// @ts-expect-error TODO: figure out why this is erroring
|
|
2226
|
+
return channel;
|
|
2227
|
+
};
|
|
2228
|
+
|
|
2229
|
+
var GetIntrinsic$6 = getIntrinsic;
|
|
2230
|
+
|
|
2231
|
+
var callBindBasic = callBindApplyHelpers;
|
|
2232
|
+
|
|
2233
|
+
/** @type {(thisArg: string, searchString: string, position?: number) => number} */
|
|
2234
|
+
var $indexOf$1 = callBindBasic([GetIntrinsic$6('%String.prototype.indexOf%')]);
|
|
2235
|
+
|
|
2236
|
+
/** @type {import('.')} */
|
|
2237
|
+
var callBound$b = function callBoundIntrinsic(name, allowMissing) {
|
|
2238
|
+
// eslint-disable-next-line no-extra-parens
|
|
2239
|
+
var intrinsic = /** @type {Parameters<typeof callBindBasic>[0][0]} */ (GetIntrinsic$6(name, !!allowMissing));
|
|
2240
|
+
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.') > -1) {
|
|
2241
|
+
return callBindBasic([intrinsic]);
|
|
2242
|
+
}
|
|
2243
|
+
return intrinsic;
|
|
2244
|
+
};
|
|
2245
|
+
|
|
2246
|
+
var GetIntrinsic$5 = getIntrinsic;
|
|
2247
|
+
var callBound$a = callBound$b;
|
|
2248
|
+
var inspect$2 = objectInspect;
|
|
2249
|
+
|
|
2250
|
+
var $TypeError$3 = type;
|
|
2251
|
+
var $Map$3 = GetIntrinsic$5('%Map%', true);
|
|
2252
|
+
|
|
2253
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => V} */
|
|
2254
|
+
var $mapGet$1 = callBound$a('Map.prototype.get', true);
|
|
2255
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K, value: V) => void} */
|
|
2256
|
+
var $mapSet = callBound$a('Map.prototype.set', true);
|
|
2257
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
2258
|
+
var $mapHas$5 = callBound$a('Map.prototype.has', true);
|
|
2259
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
2260
|
+
var $mapDelete = callBound$a('Map.prototype.delete', true);
|
|
2261
|
+
/** @type {<K, V>(thisArg: Map<K, V>) => number} */
|
|
2262
|
+
var $mapSize$1 = callBound$a('Map.prototype.size', true);
|
|
2263
|
+
|
|
2264
|
+
/** @type {import('.')} */
|
|
2265
|
+
var sideChannelMap = !!$Map$3 && /** @type {Exclude<import('.'), false>} */ function getSideChannelMap() {
|
|
2266
|
+
/** @typedef {ReturnType<typeof getSideChannelMap>} Channel */
|
|
2267
|
+
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
2268
|
+
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
2269
|
+
|
|
2270
|
+
/** @type {Map<K, V> | undefined} */ var $m;
|
|
2271
|
+
|
|
2272
|
+
/** @type {Channel} */
|
|
2273
|
+
var channel = {
|
|
2274
|
+
assert: function (key) {
|
|
2275
|
+
if (!channel.has(key)) {
|
|
2276
|
+
throw new $TypeError$3('Side channel does not contain ' + inspect$2(key));
|
|
2277
|
+
}
|
|
2278
|
+
},
|
|
2279
|
+
'delete': function (key) {
|
|
2280
|
+
if ($m) {
|
|
2281
|
+
var result = $mapDelete($m, key);
|
|
2282
|
+
if ($mapSize$1($m) === 0) {
|
|
2283
|
+
$m = void undefined;
|
|
1990
2284
|
}
|
|
2285
|
+
return result;
|
|
2286
|
+
}
|
|
2287
|
+
return false;
|
|
2288
|
+
},
|
|
2289
|
+
get: function (key) { // eslint-disable-line consistent-return
|
|
2290
|
+
if ($m) {
|
|
2291
|
+
return $mapGet$1($m, key);
|
|
2292
|
+
}
|
|
2293
|
+
},
|
|
2294
|
+
has: function (key) {
|
|
2295
|
+
if ($m) {
|
|
2296
|
+
return $mapHas$5($m, key);
|
|
1991
2297
|
}
|
|
1992
2298
|
return false;
|
|
1993
2299
|
},
|
|
1994
2300
|
set: function (key, value) {
|
|
1995
|
-
if (
|
|
1996
|
-
|
|
1997
|
-
|
|
2301
|
+
if (!$m) {
|
|
2302
|
+
// @ts-expect-error TS can't handle narrowing a variable inside a closure
|
|
2303
|
+
$m = new $Map$3();
|
|
2304
|
+
}
|
|
2305
|
+
$mapSet($m, key, value);
|
|
2306
|
+
}
|
|
2307
|
+
};
|
|
2308
|
+
|
|
2309
|
+
// @ts-expect-error TODO: figure out why TS is erroring here
|
|
2310
|
+
return channel;
|
|
2311
|
+
};
|
|
2312
|
+
|
|
2313
|
+
var GetIntrinsic$4 = getIntrinsic;
|
|
2314
|
+
var callBound$9 = callBound$b;
|
|
2315
|
+
var inspect$1 = objectInspect;
|
|
2316
|
+
var getSideChannelMap$1 = sideChannelMap;
|
|
2317
|
+
|
|
2318
|
+
var $TypeError$2 = type;
|
|
2319
|
+
var $WeakMap$1 = GetIntrinsic$4('%WeakMap%', true);
|
|
2320
|
+
|
|
2321
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => V} */
|
|
2322
|
+
var $weakMapGet = callBound$9('WeakMap.prototype.get', true);
|
|
2323
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K, value: V) => void} */
|
|
2324
|
+
var $weakMapSet = callBound$9('WeakMap.prototype.set', true);
|
|
2325
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
|
|
2326
|
+
var $weakMapHas = callBound$9('WeakMap.prototype.has', true);
|
|
2327
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
|
|
2328
|
+
var $weakMapDelete = callBound$9('WeakMap.prototype.delete', true);
|
|
2329
|
+
|
|
2330
|
+
/** @type {import('.')} */
|
|
2331
|
+
var sideChannelWeakmap = $WeakMap$1
|
|
2332
|
+
? /** @type {Exclude<import('.'), false>} */ function getSideChannelWeakMap() {
|
|
2333
|
+
/** @typedef {ReturnType<typeof getSideChannelWeakMap>} Channel */
|
|
2334
|
+
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
2335
|
+
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
2336
|
+
|
|
2337
|
+
/** @type {WeakMap<K & object, V> | undefined} */ var $wm;
|
|
2338
|
+
/** @type {Channel | undefined} */ var $m;
|
|
2339
|
+
|
|
2340
|
+
/** @type {Channel} */
|
|
2341
|
+
var channel = {
|
|
2342
|
+
assert: function (key) {
|
|
2343
|
+
if (!channel.has(key)) {
|
|
2344
|
+
throw new $TypeError$2('Side channel does not contain ' + inspect$1(key));
|
|
2345
|
+
}
|
|
2346
|
+
},
|
|
2347
|
+
'delete': function (key) {
|
|
2348
|
+
if ($WeakMap$1 && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
2349
|
+
if ($wm) {
|
|
2350
|
+
return $weakMapDelete($wm, key);
|
|
2351
|
+
}
|
|
2352
|
+
} else if (getSideChannelMap$1) {
|
|
2353
|
+
if ($m) {
|
|
2354
|
+
return $m['delete'](key);
|
|
2355
|
+
}
|
|
1998
2356
|
}
|
|
1999
|
-
|
|
2000
|
-
}
|
|
2001
|
-
|
|
2002
|
-
|
|
2357
|
+
return false;
|
|
2358
|
+
},
|
|
2359
|
+
get: function (key) {
|
|
2360
|
+
if ($WeakMap$1 && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
2361
|
+
if ($wm) {
|
|
2362
|
+
return $weakMapGet($wm, key);
|
|
2363
|
+
}
|
|
2003
2364
|
}
|
|
2004
|
-
$
|
|
2005
|
-
}
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
$
|
|
2365
|
+
return $m && $m.get(key);
|
|
2366
|
+
},
|
|
2367
|
+
has: function (key) {
|
|
2368
|
+
if ($WeakMap$1 && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
2369
|
+
if ($wm) {
|
|
2370
|
+
return $weakMapHas($wm, key);
|
|
2371
|
+
}
|
|
2372
|
+
}
|
|
2373
|
+
return !!$m && $m.has(key);
|
|
2374
|
+
},
|
|
2375
|
+
set: function (key, value) {
|
|
2376
|
+
if ($WeakMap$1 && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
2377
|
+
if (!$wm) {
|
|
2378
|
+
$wm = new $WeakMap$1();
|
|
2379
|
+
}
|
|
2380
|
+
$weakMapSet($wm, key, value);
|
|
2381
|
+
} else if (getSideChannelMap$1) {
|
|
2382
|
+
if (!$m) {
|
|
2383
|
+
$m = getSideChannelMap$1();
|
|
2384
|
+
}
|
|
2385
|
+
// eslint-disable-next-line no-extra-parens
|
|
2386
|
+
/** @type {NonNullable<typeof $m>} */ ($m).set(key, value);
|
|
2009
2387
|
}
|
|
2010
|
-
listSet($o, key, value);
|
|
2011
2388
|
}
|
|
2389
|
+
};
|
|
2390
|
+
|
|
2391
|
+
// @ts-expect-error TODO: figure out why this is erroring
|
|
2392
|
+
return channel;
|
|
2393
|
+
}
|
|
2394
|
+
: getSideChannelMap$1;
|
|
2395
|
+
|
|
2396
|
+
var $TypeError$1 = type;
|
|
2397
|
+
var inspect = objectInspect;
|
|
2398
|
+
var getSideChannelList = sideChannelList;
|
|
2399
|
+
var getSideChannelMap = sideChannelMap;
|
|
2400
|
+
var getSideChannelWeakMap = sideChannelWeakmap;
|
|
2401
|
+
|
|
2402
|
+
var makeChannel = getSideChannelWeakMap || getSideChannelMap || getSideChannelList;
|
|
2403
|
+
|
|
2404
|
+
/** @type {import('.')} */
|
|
2405
|
+
var sideChannel = function getSideChannel() {
|
|
2406
|
+
/** @typedef {ReturnType<typeof getSideChannel>} Channel */
|
|
2407
|
+
|
|
2408
|
+
/** @type {Channel | undefined} */ var $channelData;
|
|
2409
|
+
|
|
2410
|
+
/** @type {Channel} */
|
|
2411
|
+
var channel = {
|
|
2412
|
+
assert: function (key) {
|
|
2413
|
+
if (!channel.has(key)) {
|
|
2414
|
+
throw new $TypeError$1('Side channel does not contain ' + inspect(key));
|
|
2415
|
+
}
|
|
2416
|
+
},
|
|
2417
|
+
'delete': function (key) {
|
|
2418
|
+
return !!$channelData && $channelData['delete'](key);
|
|
2419
|
+
},
|
|
2420
|
+
get: function (key) {
|
|
2421
|
+
return $channelData && $channelData.get(key);
|
|
2422
|
+
},
|
|
2423
|
+
has: function (key) {
|
|
2424
|
+
return !!$channelData && $channelData.has(key);
|
|
2425
|
+
},
|
|
2426
|
+
set: function (key, value) {
|
|
2427
|
+
if (!$channelData) {
|
|
2428
|
+
$channelData = makeChannel();
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
$channelData.set(key, value);
|
|
2012
2432
|
}
|
|
2013
2433
|
};
|
|
2434
|
+
// @ts-expect-error TODO: figure out why this is erroring
|
|
2014
2435
|
return channel;
|
|
2015
2436
|
};
|
|
2016
2437
|
|
|
2017
|
-
var hasOwn =
|
|
2438
|
+
var hasOwn = requireHasown();
|
|
2018
2439
|
var channel = sideChannel();
|
|
2019
2440
|
|
|
2020
2441
|
var $TypeError = type;
|
|
@@ -2245,7 +2666,7 @@ var isSet$2 = exported$1 || function isSet(x) {
|
|
|
2245
2666
|
var isArguments$1 = isArguments$2;
|
|
2246
2667
|
var getStopIterationIterator = stopIterationIterator;
|
|
2247
2668
|
|
|
2248
|
-
if (hasSymbols$
|
|
2669
|
+
if (hasSymbols$4() || requireShams()()) {
|
|
2249
2670
|
var $iterator = Symbol.iterator;
|
|
2250
2671
|
// Symbol is available natively or shammed
|
|
2251
2672
|
// natively:
|
|
@@ -2272,7 +2693,7 @@ if (hasSymbols$5() || requireShams()()) {
|
|
|
2272
2693
|
var GetIntrinsic$3 = getIntrinsic;
|
|
2273
2694
|
var $Map = GetIntrinsic$3('%Map%', true);
|
|
2274
2695
|
var $Set$1 = GetIntrinsic$3('%Set%', true);
|
|
2275
|
-
var callBound$8 = callBound$
|
|
2696
|
+
var callBound$8 = callBound$e;
|
|
2276
2697
|
var $arrayPush = callBound$8('Array.prototype.push');
|
|
2277
2698
|
var $charCodeAt = callBound$8('String.prototype.charCodeAt');
|
|
2278
2699
|
var $stringSlice = callBound$8('String.prototype.slice');
|
|
@@ -2477,7 +2898,7 @@ define(polyfill, {
|
|
|
2477
2898
|
var objectIs = polyfill;
|
|
2478
2899
|
|
|
2479
2900
|
var callBind$1 = callBindExports;
|
|
2480
|
-
var callBound$7 = callBound$
|
|
2901
|
+
var callBound$7 = callBound$e;
|
|
2481
2902
|
var GetIntrinsic$2 = getIntrinsic;
|
|
2482
2903
|
|
|
2483
2904
|
var $ArrayBuffer = GetIntrinsic$2('%ArrayBuffer%', true);
|
|
@@ -2538,7 +2959,7 @@ var isDateObject = function isDateObject(value) {
|
|
|
2538
2959
|
return hasToStringTag$5 ? tryDateObject(value) : toStr$4.call(value) === dateClass;
|
|
2539
2960
|
};
|
|
2540
2961
|
|
|
2541
|
-
var callBound$6 = callBound$
|
|
2962
|
+
var callBound$6 = callBound$e;
|
|
2542
2963
|
var hasToStringTag$4 = shams();
|
|
2543
2964
|
var has;
|
|
2544
2965
|
var $exec;
|
|
@@ -2595,7 +3016,7 @@ var isRegex$1 = hasToStringTag$4
|
|
|
2595
3016
|
return $toString$2(value) === regexClass;
|
|
2596
3017
|
};
|
|
2597
3018
|
|
|
2598
|
-
var callBound$5 = callBound$
|
|
3019
|
+
var callBound$5 = callBound$e;
|
|
2599
3020
|
|
|
2600
3021
|
var $byteLength$1 = callBound$5('SharedArrayBuffer.prototype.byteLength', true);
|
|
2601
3022
|
|
|
@@ -2639,7 +3060,7 @@ var isNumberObject = function isNumberObject(value) {
|
|
|
2639
3060
|
return hasToStringTag$3 ? tryNumberObject(value) : toStr$3.call(value) === numClass;
|
|
2640
3061
|
};
|
|
2641
3062
|
|
|
2642
|
-
var callBound$4 = callBound$
|
|
3063
|
+
var callBound$4 = callBound$e;
|
|
2643
3064
|
var $boolToStr = callBound$4('Boolean.prototype.toString');
|
|
2644
3065
|
var $toString$1 = callBound$4('Object.prototype.toString');
|
|
2645
3066
|
|
|
@@ -2667,7 +3088,7 @@ var isBooleanObject = function isBoolean(value) {
|
|
|
2667
3088
|
var isSymbol$1 = {exports: {}};
|
|
2668
3089
|
|
|
2669
3090
|
var toStr$2 = Object.prototype.toString;
|
|
2670
|
-
var hasSymbols = hasSymbols$
|
|
3091
|
+
var hasSymbols = hasSymbols$4();
|
|
2671
3092
|
|
|
2672
3093
|
if (hasSymbols) {
|
|
2673
3094
|
var symToStr = Symbol.prototype.toString;
|
|
@@ -2829,7 +3250,7 @@ var isWeakmap = exported || function isWeakMap(x) {
|
|
|
2829
3250
|
var isWeakset = {exports: {}};
|
|
2830
3251
|
|
|
2831
3252
|
var GetIntrinsic$1 = getIntrinsic;
|
|
2832
|
-
var callBound$3 = callBound$
|
|
3253
|
+
var callBound$3 = callBound$e;
|
|
2833
3254
|
|
|
2834
3255
|
var $WeakSet = GetIntrinsic$1('%WeakSet%', true);
|
|
2835
3256
|
|
|
@@ -3087,7 +3508,7 @@ var availableTypedArrays$1 = function availableTypedArrays() {
|
|
|
3087
3508
|
var forEach = forEach_1;
|
|
3088
3509
|
var availableTypedArrays = availableTypedArrays$1;
|
|
3089
3510
|
var callBind = callBindExports;
|
|
3090
|
-
var callBound$2 = callBound$
|
|
3511
|
+
var callBound$2 = callBound$e;
|
|
3091
3512
|
var gOPD = gopd$1;
|
|
3092
3513
|
|
|
3093
3514
|
/** @type {(O: object) => string} */
|
|
@@ -3199,7 +3620,7 @@ var whichTypedArray$1 = function whichTypedArray(value) {
|
|
|
3199
3620
|
return tryTypedArrays(value);
|
|
3200
3621
|
};
|
|
3201
3622
|
|
|
3202
|
-
var callBound$1 = callBound$
|
|
3623
|
+
var callBound$1 = callBound$e;
|
|
3203
3624
|
var $byteLength = callBound$1('ArrayBuffer.prototype.byteLength', true);
|
|
3204
3625
|
|
|
3205
3626
|
var isArrayBuffer$1 = isArrayBuffer$2;
|
|
@@ -3213,7 +3634,7 @@ var arrayBufferByteLength = function byteLength(ab) {
|
|
|
3213
3634
|
}; // in node < 0.11, byteLength is an own nonconfigurable property
|
|
3214
3635
|
|
|
3215
3636
|
var assign = object_assign;
|
|
3216
|
-
var callBound = callBound$
|
|
3637
|
+
var callBound = callBound$e;
|
|
3217
3638
|
var flags = regexp_prototype_flags;
|
|
3218
3639
|
var GetIntrinsic = getIntrinsic;
|
|
3219
3640
|
var getIterator = esGetIteratorExports;
|
|
@@ -4846,6 +5267,7 @@ const IntentsMethodPrefix = "Tick42.FDC3.Intents.";
|
|
|
4846
5267
|
const IO_ERRORS = errors.intents;
|
|
4847
5268
|
const BrowserClientControlMethodName = "T42.Web.Client.Control";
|
|
4848
5269
|
const DesktopClientControlMethodName = "T42.Channels.Command";
|
|
5270
|
+
const GlueReceivedPromiseTimeout = 120 * 1000;
|
|
4849
5271
|
|
|
4850
5272
|
const ioConnectFDC3SystemMethod = "FDC3.Collaborate";
|
|
4851
5273
|
const PrivateChannelPrefix = "___privateFDC3Channel___";
|
|
@@ -5706,16 +6128,14 @@ object({
|
|
|
5706
6128
|
|
|
5707
6129
|
class GlueController {
|
|
5708
6130
|
channelsParser;
|
|
5709
|
-
channelsStateStore;
|
|
5710
6131
|
glue;
|
|
5711
6132
|
_logger;
|
|
5712
6133
|
glueInitPromise;
|
|
5713
6134
|
resolveGluePromise;
|
|
5714
6135
|
rejectGluePromise;
|
|
5715
6136
|
defaultGluePromiseTimeout = 120 * 1000;
|
|
5716
|
-
constructor(channelsParser
|
|
6137
|
+
constructor(channelsParser) {
|
|
5717
6138
|
this.channelsParser = channelsParser;
|
|
5718
|
-
this.channelsStateStore = channelsStateStore;
|
|
5719
6139
|
}
|
|
5720
6140
|
get gluePromise() {
|
|
5721
6141
|
return this.glueInitPromise.then(this.initializeLogger.bind(this));
|
|
@@ -5733,7 +6153,7 @@ class GlueController {
|
|
|
5733
6153
|
this.resolveGluePromise = resolve;
|
|
5734
6154
|
this.rejectGluePromise = reject;
|
|
5735
6155
|
});
|
|
5736
|
-
},
|
|
6156
|
+
}, GlueReceivedPromiseTimeout, `Timeout of ${GlueReceivedPromiseTimeout}ms waiting to receive initialized 'io'`);
|
|
5737
6157
|
}
|
|
5738
6158
|
get logger() {
|
|
5739
6159
|
return this._logger;
|
|
@@ -5952,9 +6372,12 @@ class GlueController {
|
|
|
5952
6372
|
getPrefs(app) {
|
|
5953
6373
|
return this.glue.prefs.get(app);
|
|
5954
6374
|
}
|
|
6375
|
+
isRunningInBrowser() {
|
|
6376
|
+
return typeof window !== "undefined" && !window.iodesktop;
|
|
6377
|
+
}
|
|
5955
6378
|
async checkIsFdc3DataWrappingSupported() {
|
|
5956
|
-
const
|
|
5957
|
-
const methodName =
|
|
6379
|
+
const inBrowserNamespace = this.isRunningInBrowser();
|
|
6380
|
+
const methodName = inBrowserNamespace ? BrowserClientControlMethodName : DesktopClientControlMethodName;
|
|
5958
6381
|
const myServer = this.glue.interop.servers().find((server) => server.instance === this.glue.interop.instance.instance);
|
|
5959
6382
|
if (!myServer) {
|
|
5960
6383
|
return false;
|
|
@@ -5963,7 +6386,7 @@ class GlueController {
|
|
|
5963
6386
|
if (!registersControlMethod) {
|
|
5964
6387
|
return false;
|
|
5965
6388
|
}
|
|
5966
|
-
const data =
|
|
6389
|
+
const data = inBrowserNamespace ? { domain: "system", operation: "isFdc3DataWrappingSupported" } : { command: "isFdc3DataWrappingSupported" };
|
|
5967
6390
|
try {
|
|
5968
6391
|
const res = await this.glue.interop.invoke(methodName, data, { instance: this.interopInstance().instance });
|
|
5969
6392
|
return res.returned.isSupported;
|
|
@@ -6048,7 +6471,7 @@ const REQUEST_GLUE = "requestGlue";
|
|
|
6048
6471
|
const REQUEST_GLUE_RESPONSE = "requestGlueResponse";
|
|
6049
6472
|
const FDC3_READY = "fdc3Ready";
|
|
6050
6473
|
|
|
6051
|
-
class
|
|
6474
|
+
class WebEventDispatcher {
|
|
6052
6475
|
fireFdc3Ready() {
|
|
6053
6476
|
const event = new Event(FDC3_READY);
|
|
6054
6477
|
window.dispatchEvent(event);
|
|
@@ -6232,7 +6655,7 @@ var exhaustiveStringTuple = function () { return function () {
|
|
|
6232
6655
|
return tuple;
|
|
6233
6656
|
}; };
|
|
6234
6657
|
|
|
6235
|
-
var STANDARD_CONTEXT_TYPES = exhaustiveStringTuple()('fdc3.action', 'fdc3.chart', 'fdc3.chat.initSettings', 'fdc3.chat.message', 'fdc3.chat.room', 'fdc3.chat.searchCriteria', 'fdc3.contact', 'fdc3.contactList', 'fdc3.country', 'fdc3.currency', 'fdc3.email', 'fdc3.instrument', 'fdc3.instrumentList', 'fdc3.interaction', 'fdc3.message', 'fdc3.organization', 'fdc3.portfolio', 'fdc3.position', 'fdc3.nothing', 'fdc3.
|
|
6658
|
+
var STANDARD_CONTEXT_TYPES = exhaustiveStringTuple()('fdc3.action', 'fdc3.chart', 'fdc3.chat.initSettings', 'fdc3.chat.message', 'fdc3.chat.room', 'fdc3.chat.searchCriteria', 'fdc3.contact', 'fdc3.contactList', 'fdc3.country', 'fdc3.currency', 'fdc3.email', 'fdc3.instrument', 'fdc3.instrumentList', 'fdc3.interaction', 'fdc3.message', 'fdc3.organization', 'fdc3.portfolio', 'fdc3.position', 'fdc3.nothing', 'fdc3.timeRange', 'fdc3.transactionResult', 'fdc3.valuation');
|
|
6236
6659
|
// used internally to check if a given intent/context is a standard one
|
|
6237
6660
|
new Set(STANDARD_CONTEXT_TYPES);
|
|
6238
6661
|
|
|
@@ -6265,7 +6688,7 @@ var ContextTypes;
|
|
|
6265
6688
|
ContextTypes["Portfolio"] = "fdc3.portfolio";
|
|
6266
6689
|
ContextTypes["Position"] = "fdc3.position";
|
|
6267
6690
|
ContextTypes["ChatSearchCriteria"] = "fdc3.chat.searchCriteria";
|
|
6268
|
-
ContextTypes["TimeRange"] = "fdc3.
|
|
6691
|
+
ContextTypes["TimeRange"] = "fdc3.timeRange";
|
|
6269
6692
|
ContextTypes["TransactionResult"] = "fdc3.transactionResult";
|
|
6270
6693
|
ContextTypes["Valuation"] = "fdc3.valuation";
|
|
6271
6694
|
})(ContextTypes || (ContextTypes = {}));
|
|
@@ -7049,8 +7472,9 @@ class ApplicationsController {
|
|
|
7049
7472
|
async getInfo({ commandId }) {
|
|
7050
7473
|
await this.glueController.gluePromise;
|
|
7051
7474
|
this.logger?.info(`${commandId} - getInfo() invoked`);
|
|
7052
|
-
const appMetadata =
|
|
7053
|
-
const
|
|
7475
|
+
const appMetadata = this.getCurrentAppMetadata();
|
|
7476
|
+
const globalScope = typeof process !== "undefined" ? process : window;
|
|
7477
|
+
const { provider, providerVersion, standardVersion } = globalScope.fdc3Info;
|
|
7054
7478
|
return {
|
|
7055
7479
|
provider,
|
|
7056
7480
|
providerVersion,
|
|
@@ -7065,10 +7489,10 @@ class ApplicationsController {
|
|
|
7065
7489
|
}
|
|
7066
7490
|
getCurrentAppMetadata() {
|
|
7067
7491
|
const myInstance = this.glueController.interopInstance();
|
|
7068
|
-
return
|
|
7492
|
+
return {
|
|
7069
7493
|
appId: myInstance.applicationName,
|
|
7070
7494
|
instanceId: myInstance.instance
|
|
7071
|
-
}
|
|
7495
|
+
};
|
|
7072
7496
|
}
|
|
7073
7497
|
parseGlueInstToAppIdentifier(glueInst) {
|
|
7074
7498
|
return {
|
|
@@ -7084,13 +7508,13 @@ class ApplicationsController {
|
|
|
7084
7508
|
return this.addInstanceMetadataToAppMetadata(appMetadata, instance);
|
|
7085
7509
|
}
|
|
7086
7510
|
async getBaseGlueAppToAppMetadata(app) {
|
|
7087
|
-
const
|
|
7088
|
-
const appConfiguration =
|
|
7089
|
-
?
|
|
7090
|
-
: app.
|
|
7091
|
-
const icon =
|
|
7092
|
-
?
|
|
7093
|
-
: app.icon;
|
|
7511
|
+
const inBrowserNamespace = this.glueController.isRunningInBrowser();
|
|
7512
|
+
const appConfiguration = inBrowserNamespace
|
|
7513
|
+
? app.userProperties
|
|
7514
|
+
: await app.getConfiguration();
|
|
7515
|
+
const icon = inBrowserNamespace
|
|
7516
|
+
? app.icon
|
|
7517
|
+
: (await app.getConfiguration()).icon;
|
|
7094
7518
|
return {
|
|
7095
7519
|
appId: app.name,
|
|
7096
7520
|
name: app.name,
|
|
@@ -7099,9 +7523,9 @@ class ApplicationsController {
|
|
|
7099
7523
|
title: app.title,
|
|
7100
7524
|
icons: icon ? [{ src: icon }] : [],
|
|
7101
7525
|
tooltip: appConfiguration.tooltip,
|
|
7102
|
-
screenshots:
|
|
7103
|
-
? appConfiguration.
|
|
7104
|
-
: appConfiguration.screenshots
|
|
7526
|
+
screenshots: inBrowserNamespace
|
|
7527
|
+
? appConfiguration.screenshots
|
|
7528
|
+
: appConfiguration.customProperties.screenshots
|
|
7105
7529
|
};
|
|
7106
7530
|
}
|
|
7107
7531
|
addInstanceMetadataToAppMetadata(appMetadata, instance) {
|
|
@@ -7152,7 +7576,7 @@ class ApplicationsController {
|
|
|
7152
7576
|
}
|
|
7153
7577
|
}
|
|
7154
7578
|
|
|
7155
|
-
class
|
|
7579
|
+
class WebEventReceiver {
|
|
7156
7580
|
glueController;
|
|
7157
7581
|
eventDispatcher;
|
|
7158
7582
|
glueResponseReceived = false;
|
|
@@ -7179,7 +7603,7 @@ class EventReceiver {
|
|
|
7179
7603
|
}
|
|
7180
7604
|
glueReceiverHandler(event) {
|
|
7181
7605
|
const data = event.detail;
|
|
7182
|
-
if (!data
|
|
7606
|
+
if (!data?.glue42) {
|
|
7183
7607
|
return;
|
|
7184
7608
|
}
|
|
7185
7609
|
const glue42Event = data.glue42.event;
|
|
@@ -8252,9 +8676,55 @@ class NewDataWrappingChannelsController {
|
|
|
8252
8676
|
}
|
|
8253
8677
|
}
|
|
8254
8678
|
|
|
8679
|
+
class NodeEventReceiver {
|
|
8680
|
+
glueController;
|
|
8681
|
+
glueReceived = false;
|
|
8682
|
+
glueInitialized = false;
|
|
8683
|
+
timer;
|
|
8684
|
+
constructor(glueController) {
|
|
8685
|
+
this.glueController = glueController;
|
|
8686
|
+
}
|
|
8687
|
+
start() {
|
|
8688
|
+
setTimeout(this.clearInterval, GlueReceivedPromiseTimeout);
|
|
8689
|
+
this.setupInterval();
|
|
8690
|
+
}
|
|
8691
|
+
setupInterval() {
|
|
8692
|
+
this.timer = setInterval(() => {
|
|
8693
|
+
if (this.glueReceived) {
|
|
8694
|
+
return this.clearInterval();
|
|
8695
|
+
}
|
|
8696
|
+
const glueAvailable = typeof (process.io ?? process.glue) !== "undefined";
|
|
8697
|
+
if (!glueAvailable) {
|
|
8698
|
+
return;
|
|
8699
|
+
}
|
|
8700
|
+
this.glueReceived = true;
|
|
8701
|
+
const glue = process.io ?? process.glue;
|
|
8702
|
+
const glueValidator = this.glueController.validateGlue(glue);
|
|
8703
|
+
if (!glueValidator.isValid) {
|
|
8704
|
+
this.glueController.initializeFailed(glueValidator.error);
|
|
8705
|
+
return this.clearInterval();
|
|
8706
|
+
}
|
|
8707
|
+
this.clearInterval();
|
|
8708
|
+
this.glueController.initialize(glue);
|
|
8709
|
+
this.glueInitialized = true;
|
|
8710
|
+
}, 100);
|
|
8711
|
+
}
|
|
8712
|
+
clearInterval() {
|
|
8713
|
+
if (!this.timer) {
|
|
8714
|
+
return;
|
|
8715
|
+
}
|
|
8716
|
+
clearInterval(this.timer);
|
|
8717
|
+
this.timer = undefined;
|
|
8718
|
+
if (!this.glueReceived && !this.glueInitialized) {
|
|
8719
|
+
this.glueController.initializeFailed(`Timeout ${GlueReceivedPromiseTimeout}ms waiting for 'io' to be available on the process object`);
|
|
8720
|
+
}
|
|
8721
|
+
}
|
|
8722
|
+
}
|
|
8723
|
+
|
|
8255
8724
|
class IoC {
|
|
8256
|
-
|
|
8257
|
-
|
|
8725
|
+
_webEventDispatcher;
|
|
8726
|
+
_webEventReceiver;
|
|
8727
|
+
_nodeEventReceiver;
|
|
8258
8728
|
_desktopAgent;
|
|
8259
8729
|
_glueController;
|
|
8260
8730
|
_intentsController;
|
|
@@ -8272,14 +8742,15 @@ class IoC {
|
|
|
8272
8742
|
return this;
|
|
8273
8743
|
}
|
|
8274
8744
|
get eventReceiver() {
|
|
8275
|
-
|
|
8276
|
-
|
|
8745
|
+
const inNode = typeof process !== "undefined";
|
|
8746
|
+
if (inNode) {
|
|
8747
|
+
return this.nodeEventReceiver;
|
|
8277
8748
|
}
|
|
8278
|
-
return this.
|
|
8749
|
+
return this.webEventReceiver;
|
|
8279
8750
|
}
|
|
8280
8751
|
get glueController() {
|
|
8281
8752
|
if (!this._glueController) {
|
|
8282
|
-
this._glueController = new GlueController(this.channelsParser
|
|
8753
|
+
this._glueController = new GlueController(this.channelsParser);
|
|
8283
8754
|
}
|
|
8284
8755
|
return this._glueController;
|
|
8285
8756
|
}
|
|
@@ -8289,11 +8760,23 @@ class IoC {
|
|
|
8289
8760
|
}
|
|
8290
8761
|
return this._fdc3;
|
|
8291
8762
|
}
|
|
8292
|
-
get
|
|
8293
|
-
if (!this.
|
|
8294
|
-
this.
|
|
8763
|
+
get nodeEventReceiver() {
|
|
8764
|
+
if (!this._nodeEventReceiver) {
|
|
8765
|
+
this._nodeEventReceiver = new NodeEventReceiver(this.glueController);
|
|
8766
|
+
}
|
|
8767
|
+
return this._nodeEventReceiver;
|
|
8768
|
+
}
|
|
8769
|
+
get webEventReceiver() {
|
|
8770
|
+
if (!this._webEventReceiver) {
|
|
8771
|
+
this._webEventReceiver = new WebEventReceiver(this.glueController, this.webEventDispatcher);
|
|
8772
|
+
}
|
|
8773
|
+
return this._webEventReceiver;
|
|
8774
|
+
}
|
|
8775
|
+
get webEventDispatcher() {
|
|
8776
|
+
if (!this._webEventDispatcher) {
|
|
8777
|
+
this._webEventDispatcher = new WebEventDispatcher();
|
|
8295
8778
|
}
|
|
8296
|
-
return this.
|
|
8779
|
+
return this._webEventDispatcher;
|
|
8297
8780
|
}
|
|
8298
8781
|
get channelsFactory() {
|
|
8299
8782
|
if (!this._channelsFactory) {
|
|
@@ -8379,18 +8862,19 @@ const fdc3Factory = () => {
|
|
|
8379
8862
|
return ioc.fdc3;
|
|
8380
8863
|
};
|
|
8381
8864
|
|
|
8382
|
-
var version = "2.5.
|
|
8865
|
+
var version = "2.5.2";
|
|
8383
8866
|
|
|
8384
|
-
|
|
8385
|
-
|
|
8867
|
+
const globalScope = typeof process !== "undefined" ? process : window;
|
|
8868
|
+
globalScope.fdc3Info = {
|
|
8386
8869
|
provider: "io.Connect",
|
|
8387
8870
|
providerVersion: version,
|
|
8388
8871
|
standardVersion: "2.1"
|
|
8389
8872
|
};
|
|
8873
|
+
let globalFdc3 = globalScope.fdc3;
|
|
8390
8874
|
if (typeof globalFdc3 === "undefined") {
|
|
8391
8875
|
globalFdc3 = fdc3Factory();
|
|
8392
8876
|
checkIfInElectron(globalFdc3);
|
|
8393
|
-
|
|
8877
|
+
globalScope.fdc3 = globalFdc3;
|
|
8394
8878
|
}
|
|
8395
8879
|
else {
|
|
8396
8880
|
console.warn("Defaulting to using the auto-injected fdc3.");
|