@mycause/ui 1.1.0-test11 → 1.1.0-test12

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/dist/index.esm.js CHANGED
@@ -20094,16 +20094,17 @@ keysShim$1.shim = function shimObjectKeys() {
20094
20094
  var objectKeys = keysShim$1;
20095
20095
 
20096
20096
  /** @type {import('.')} */
20097
- var esErrors = Error;
20098
-
20099
- /** @type {import('./eval')} */
20100
- var _eval = EvalError;
20101
-
20102
- /** @type {import('./range')} */
20103
- var range = RangeError;
20097
+ var $defineProperty = Object.defineProperty || false;
20098
+ if ($defineProperty) {
20099
+ try {
20100
+ $defineProperty({}, 'a', { value: 1 });
20101
+ } catch (e) {
20102
+ // IE 8 has a broken defineProperty
20103
+ $defineProperty = false;
20104
+ }
20105
+ }
20104
20106
 
20105
- /** @type {import('./ref')} */
20106
- var ref = ReferenceError;
20107
+ var esDefineProperty = $defineProperty;
20107
20108
 
20108
20109
  /** @type {import('./syntax')} */
20109
20110
  var syntax = SyntaxError;
@@ -20111,80 +20112,139 @@ var syntax = SyntaxError;
20111
20112
  /** @type {import('./type')} */
20112
20113
  var type = TypeError;
20113
20114
 
20114
- /** @type {import('./uri')} */
20115
- var uri = URIError;
20116
-
20117
- /* eslint complexity: [2, 18], max-statements: [2, 33] */
20118
- var shams = function hasSymbols() {
20119
- if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
20120
- if (typeof Symbol.iterator === 'symbol') { return true; }
20115
+ /** @type {import('./gOPD')} */
20116
+ var gOPD = Object.getOwnPropertyDescriptor;
20121
20117
 
20122
- var obj = {};
20123
- var sym = Symbol('test');
20124
- var symObj = Object(sym);
20125
- if (typeof sym === 'string') { return false; }
20118
+ /** @type {import('.')} */
20119
+ var $gOPD = gOPD;
20126
20120
 
20127
- if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
20128
- if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
20121
+ if ($gOPD) {
20122
+ try {
20123
+ $gOPD([], 'length');
20124
+ } catch (e) {
20125
+ // IE 8 has a broken gOPD
20126
+ $gOPD = null;
20127
+ }
20128
+ }
20129
20129
 
20130
- // temp disabled per https://github.com/ljharb/object.assign/issues/17
20131
- // if (sym instanceof Symbol) { return false; }
20132
- // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
20133
- // if (!(symObj instanceof Symbol)) { return false; }
20130
+ var gopd = $gOPD;
20134
20131
 
20135
- // if (typeof Symbol.prototype.toString !== 'function') { return false; }
20136
- // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
20132
+ /** @type {import('.')} */
20133
+ var defineDataProperty = function defineDataProperty(
20134
+ obj,
20135
+ property,
20136
+ value
20137
+ ) {
20138
+ if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
20139
+ throw new type('`obj` must be an object or a function`');
20140
+ }
20141
+ if (typeof property !== 'string' && typeof property !== 'symbol') {
20142
+ throw new type('`property` must be a string or a symbol`');
20143
+ }
20144
+ if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
20145
+ throw new type('`nonEnumerable`, if provided, must be a boolean or null');
20146
+ }
20147
+ if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
20148
+ throw new type('`nonWritable`, if provided, must be a boolean or null');
20149
+ }
20150
+ if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
20151
+ throw new type('`nonConfigurable`, if provided, must be a boolean or null');
20152
+ }
20153
+ if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
20154
+ throw new type('`loose`, if provided, must be a boolean');
20155
+ }
20137
20156
 
20138
- var symVal = 42;
20139
- obj[sym] = symVal;
20140
- for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
20141
- if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
20157
+ var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
20158
+ var nonWritable = arguments.length > 4 ? arguments[4] : null;
20159
+ var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
20160
+ var loose = arguments.length > 6 ? arguments[6] : false;
20142
20161
 
20143
- if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
20162
+ /* @type {false | TypedPropertyDescriptor<unknown>} */
20163
+ var desc = !!gopd && gopd(obj, property);
20144
20164
 
20145
- var syms = Object.getOwnPropertySymbols(obj);
20146
- if (syms.length !== 1 || syms[0] !== sym) { return false; }
20165
+ if (esDefineProperty) {
20166
+ esDefineProperty(obj, property, {
20167
+ configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
20168
+ enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
20169
+ value: value,
20170
+ writable: nonWritable === null && desc ? desc.writable : !nonWritable
20171
+ });
20172
+ } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
20173
+ // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
20174
+ obj[property] = value; // eslint-disable-line no-param-reassign
20175
+ } else {
20176
+ throw new syntax('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
20177
+ }
20178
+ };
20147
20179
 
20148
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
20180
+ var hasPropertyDescriptors = function hasPropertyDescriptors() {
20181
+ return !!esDefineProperty;
20182
+ };
20149
20183
 
20150
- if (typeof Object.getOwnPropertyDescriptor === 'function') {
20151
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
20152
- if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
20184
+ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
20185
+ // node v0.6 has a bug where array lengths can be Set but not Defined
20186
+ if (!esDefineProperty) {
20187
+ return null;
20188
+ }
20189
+ try {
20190
+ return esDefineProperty([], 'length', { value: 1 }).length !== 1;
20191
+ } catch (e) {
20192
+ // In Firefox 4-22, defining length on an array throws an exception.
20193
+ return true;
20153
20194
  }
20154
-
20155
- return true;
20156
20195
  };
20157
20196
 
20158
- var origSymbol = typeof Symbol !== 'undefined' && Symbol;
20197
+ var hasPropertyDescriptors_1 = hasPropertyDescriptors;
20159
20198
 
20199
+ var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
20160
20200
 
20161
- var hasSymbols = function hasNativeSymbols() {
20162
- if (typeof origSymbol !== 'function') { return false; }
20163
- if (typeof Symbol !== 'function') { return false; }
20164
- if (typeof origSymbol('foo') !== 'symbol') { return false; }
20165
- if (typeof Symbol('bar') !== 'symbol') { return false; }
20201
+ var toStr$2 = Object.prototype.toString;
20202
+ var concat = Array.prototype.concat;
20166
20203
 
20167
- return shams();
20168
- };
20169
20204
 
20170
- var test = {
20171
- __proto__: null,
20172
- foo: {}
20205
+ var isFunction = function (fn) {
20206
+ return typeof fn === 'function' && toStr$2.call(fn) === '[object Function]';
20173
20207
  };
20174
20208
 
20175
- var $Object = Object;
20209
+ var supportsDescriptors = hasPropertyDescriptors_1();
20176
20210
 
20177
- /** @type {import('.')} */
20178
- var hasProto = function hasProto() {
20179
- // @ts-expect-error: TS errors on an inherited property for some reason
20180
- return { __proto__: test }.foo === test.foo
20181
- && !(test instanceof $Object);
20211
+ var defineProperty = function (object, name, value, predicate) {
20212
+ if (name in object) {
20213
+ if (predicate === true) {
20214
+ if (object[name] === value) {
20215
+ return;
20216
+ }
20217
+ } else if (!isFunction(predicate) || !predicate()) {
20218
+ return;
20219
+ }
20220
+ }
20221
+
20222
+ if (supportsDescriptors) {
20223
+ defineDataProperty(object, name, value, true);
20224
+ } else {
20225
+ defineDataProperty(object, name, value);
20226
+ }
20227
+ };
20228
+
20229
+ var defineProperties = function (object, map) {
20230
+ var predicates = arguments.length > 2 ? arguments[2] : {};
20231
+ var props = objectKeys(map);
20232
+ if (hasSymbols) {
20233
+ props = concat.call(props, Object.getOwnPropertySymbols(map));
20234
+ }
20235
+ for (var i = 0; i < props.length; i += 1) {
20236
+ defineProperty(object, props[i], map[props[i]], predicates[props[i]]);
20237
+ }
20182
20238
  };
20183
20239
 
20240
+ defineProperties.supportsDescriptors = !!supportsDescriptors;
20241
+
20242
+ var defineProperties_1 = defineProperties;
20243
+
20184
20244
  /* eslint no-invalid-this: 1 */
20185
20245
 
20186
20246
  var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
20187
- var toStr$2 = Object.prototype.toString;
20247
+ var toStr$3 = Object.prototype.toString;
20188
20248
  var max = Math.max;
20189
20249
  var funcType = '[object Function]';
20190
20250
 
@@ -20222,7 +20282,7 @@ var joiny = function (arr, joiner) {
20222
20282
 
20223
20283
  var implementation$1 = function bind(that) {
20224
20284
  var target = this;
20225
- if (typeof target !== 'function' || toStr$2.apply(target) !== funcType) {
20285
+ if (typeof target !== 'function' || toStr$3.apply(target) !== funcType) {
20226
20286
  throw new TypeError(ERROR_MESSAGE + target);
20227
20287
  }
20228
20288
  var args = slicy(arguments, 1);
@@ -20266,6 +20326,117 @@ var implementation$1 = function bind(that) {
20266
20326
 
20267
20327
  var functionBind = Function.prototype.bind || implementation$1;
20268
20328
 
20329
+ /** @type {import('.')} */
20330
+ var esErrors = Error;
20331
+
20332
+ /** @type {import('./eval')} */
20333
+ var _eval = EvalError;
20334
+
20335
+ /** @type {import('./range')} */
20336
+ var range = RangeError;
20337
+
20338
+ /** @type {import('./ref')} */
20339
+ var ref = ReferenceError;
20340
+
20341
+ /** @type {import('./uri')} */
20342
+ var uri = URIError;
20343
+
20344
+ /** @type {import('./shams')} */
20345
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
20346
+ var shams = function hasSymbols() {
20347
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
20348
+ if (typeof Symbol.iterator === 'symbol') { return true; }
20349
+
20350
+ /** @type {{ [k in symbol]?: unknown }} */
20351
+ var obj = {};
20352
+ var sym = Symbol('test');
20353
+ var symObj = Object(sym);
20354
+ if (typeof sym === 'string') { return false; }
20355
+
20356
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
20357
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
20358
+
20359
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
20360
+ // if (sym instanceof Symbol) { return false; }
20361
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
20362
+ // if (!(symObj instanceof Symbol)) { return false; }
20363
+
20364
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
20365
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
20366
+
20367
+ var symVal = 42;
20368
+ obj[sym] = symVal;
20369
+ for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
20370
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
20371
+
20372
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
20373
+
20374
+ var syms = Object.getOwnPropertySymbols(obj);
20375
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
20376
+
20377
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
20378
+
20379
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
20380
+ // eslint-disable-next-line no-extra-parens
20381
+ var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
20382
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
20383
+ }
20384
+
20385
+ return true;
20386
+ };
20387
+
20388
+ var origSymbol = typeof Symbol !== 'undefined' && Symbol;
20389
+
20390
+
20391
+ /** @type {import('.')} */
20392
+ var hasSymbols$1 = function hasNativeSymbols() {
20393
+ if (typeof origSymbol !== 'function') { return false; }
20394
+ if (typeof Symbol !== 'function') { return false; }
20395
+ if (typeof origSymbol('foo') !== 'symbol') { return false; }
20396
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
20397
+
20398
+ return shams();
20399
+ };
20400
+
20401
+ /** @type {import('./functionCall')} */
20402
+ var functionCall = Function.prototype.call;
20403
+
20404
+ /** @type {import('./functionApply')} */
20405
+ var functionApply = Function.prototype.apply;
20406
+
20407
+ /** @type {import('./reflectApply')} */
20408
+ var reflectApply = typeof Reflect === 'function' && Reflect.apply;
20409
+
20410
+ /** @type {import('./actualApply')} */
20411
+ var actualApply = reflectApply || functionBind.call(functionCall, functionApply);
20412
+
20413
+ /** @type {import('.')} */
20414
+ var callBindApplyHelpers = function callBindBasic(args) {
20415
+ if (args.length < 1 || typeof args[0] !== 'function') {
20416
+ throw new type('a function is required');
20417
+ }
20418
+ return actualApply(functionBind, functionCall, args);
20419
+ };
20420
+
20421
+ // eslint-disable-next-line no-extra-parens, no-proto
20422
+ var hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
20423
+
20424
+ // eslint-disable-next-line no-extra-parens
20425
+ var desc = hasProtoAccessor && gopd && gopd(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
20426
+
20427
+ var $Object = Object;
20428
+ var $getPrototypeOf = $Object.getPrototypeOf;
20429
+
20430
+ /** @type {import('./get')} */
20431
+ var get = desc && typeof desc.get === 'function'
20432
+ ? callBindApplyHelpers([desc.get])
20433
+ : typeof $getPrototypeOf === 'function'
20434
+ ? /** @type {import('./get')} */ function getDunder(value) {
20435
+ // eslint-disable-next-line eqeqeq
20436
+ return $getPrototypeOf(value == null ? value : $Object(value));
20437
+ }
20438
+ : false;
20439
+
20269
20440
  var call = Function.prototype.call;
20270
20441
  var $hasOwn = Object.prototype.hasOwnProperty;
20271
20442
 
@@ -20292,19 +20463,13 @@ var getEvalledConstructor = function (expressionSyntax) {
20292
20463
  } catch (e) {}
20293
20464
  };
20294
20465
 
20295
- var $gOPD = Object.getOwnPropertyDescriptor;
20296
- if ($gOPD) {
20297
- try {
20298
- $gOPD({}, '');
20299
- } catch (e) {
20300
- $gOPD = null; // this is IE 8, which has a broken gOPD
20301
- }
20302
- }
20466
+
20467
+
20303
20468
 
20304
20469
  var throwTypeError = function () {
20305
20470
  throw new type();
20306
20471
  };
20307
- var ThrowTypeError = $gOPD
20472
+ var ThrowTypeError = gopd
20308
20473
  ? (function () {
20309
20474
  try {
20310
20475
  // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
@@ -20313,7 +20478,7 @@ var ThrowTypeError = $gOPD
20313
20478
  } catch (calleeThrows) {
20314
20479
  try {
20315
20480
  // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
20316
- return $gOPD(arguments, 'callee').get;
20481
+ return gopd(arguments, 'callee').get;
20317
20482
  } catch (gOPDthrows) {
20318
20483
  return throwTypeError;
20319
20484
  }
@@ -20321,14 +20486,15 @@ var ThrowTypeError = $gOPD
20321
20486
  }())
20322
20487
  : throwTypeError;
20323
20488
 
20324
- var hasSymbols$1 = hasSymbols();
20325
- var hasProto$1 = hasProto();
20489
+ var hasSymbols$2 = hasSymbols$1();
20490
+
20491
+
20492
+ var getProto = (typeof Reflect === 'function' && Reflect.getPrototypeOf)
20493
+ || Object.getPrototypeOf
20494
+ || get;
20495
+
20496
+
20326
20497
 
20327
- var getProto = Object.getPrototypeOf || (
20328
- hasProto$1
20329
- ? function (x) { return x.__proto__; } // eslint-disable-line no-proto
20330
- : null
20331
- );
20332
20498
 
20333
20499
  var needsEval = {};
20334
20500
 
@@ -20339,7 +20505,7 @@ var INTRINSICS = {
20339
20505
  '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
20340
20506
  '%Array%': Array,
20341
20507
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
20342
- '%ArrayIteratorPrototype%': hasSymbols$1 && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
20508
+ '%ArrayIteratorPrototype%': hasSymbols$2 && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
20343
20509
  '%AsyncFromSyncIteratorPrototype%': undefined$1,
20344
20510
  '%AsyncFunction%': needsEval,
20345
20511
  '%AsyncGenerator%': needsEval,
@@ -20369,13 +20535,14 @@ var INTRINSICS = {
20369
20535
  '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
20370
20536
  '%isFinite%': isFinite,
20371
20537
  '%isNaN%': isNaN,
20372
- '%IteratorPrototype%': hasSymbols$1 && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
20538
+ '%IteratorPrototype%': hasSymbols$2 && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
20373
20539
  '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
20374
20540
  '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
20375
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$1 || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
20541
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$2 || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
20376
20542
  '%Math%': Math,
20377
20543
  '%Number%': Number,
20378
20544
  '%Object%': Object,
20545
+ '%Object.getOwnPropertyDescriptor%': gopd,
20379
20546
  '%parseFloat%': parseFloat,
20380
20547
  '%parseInt%': parseInt,
20381
20548
  '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
@@ -20385,11 +20552,11 @@ var INTRINSICS = {
20385
20552
  '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
20386
20553
  '%RegExp%': RegExp,
20387
20554
  '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
20388
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$1 || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
20555
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$2 || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
20389
20556
  '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
20390
20557
  '%String%': String,
20391
- '%StringIteratorPrototype%': hasSymbols$1 && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
20392
- '%Symbol%': hasSymbols$1 ? Symbol : undefined$1,
20558
+ '%StringIteratorPrototype%': hasSymbols$2 && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
20559
+ '%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
20393
20560
  '%SyntaxError%': syntax,
20394
20561
  '%ThrowTypeError%': ThrowTypeError,
20395
20562
  '%TypedArray%': TypedArray,
@@ -20401,7 +20568,11 @@ var INTRINSICS = {
20401
20568
  '%URIError%': uri,
20402
20569
  '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
20403
20570
  '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
20404
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
20571
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
20572
+
20573
+ '%Function.prototype.call%': functionCall,
20574
+ '%Function.prototype.apply%': functionApply,
20575
+ '%Object.defineProperty%': esDefineProperty
20405
20576
  };
20406
20577
 
20407
20578
  if (getProto) {
@@ -20496,11 +20667,11 @@ var LEGACY_ALIASES = {
20496
20667
 
20497
20668
 
20498
20669
 
20499
- var $concat = functionBind.call(Function.call, Array.prototype.concat);
20500
- var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
20501
- var $replace = functionBind.call(Function.call, String.prototype.replace);
20502
- var $strSlice = functionBind.call(Function.call, String.prototype.slice);
20503
- var $exec = functionBind.call(Function.call, RegExp.prototype.exec);
20670
+ var $concat = functionBind.call(functionCall, Array.prototype.concat);
20671
+ var $spliceApply = functionBind.call(functionApply, Array.prototype.splice);
20672
+ var $replace = functionBind.call(functionCall, String.prototype.replace);
20673
+ var $strSlice = functionBind.call(functionCall, String.prototype.slice);
20674
+ var $exec = functionBind.call(functionCall, RegExp.prototype.exec);
20504
20675
 
20505
20676
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
20506
20677
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
@@ -20602,8 +20773,8 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
20602
20773
  }
20603
20774
  return void undefined$1;
20604
20775
  }
20605
- if ($gOPD && (i + 1) >= parts.length) {
20606
- var desc = $gOPD(value, part);
20776
+ if (gopd && (i + 1) >= parts.length) {
20777
+ var desc = gopd(value, part);
20607
20778
  isOwn = !!desc;
20608
20779
 
20609
20780
  // By convention, when a data property is converted to an accessor
@@ -20631,144 +20802,6 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
20631
20802
  return value;
20632
20803
  };
20633
20804
 
20634
- /** @type {import('.')} */
20635
- var $defineProperty = getIntrinsic('%Object.defineProperty%', true) || false;
20636
- if ($defineProperty) {
20637
- try {
20638
- $defineProperty({}, 'a', { value: 1 });
20639
- } catch (e) {
20640
- // IE 8 has a broken defineProperty
20641
- $defineProperty = false;
20642
- }
20643
- }
20644
-
20645
- var esDefineProperty = $defineProperty;
20646
-
20647
- var $gOPD$1 = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
20648
-
20649
- if ($gOPD$1) {
20650
- try {
20651
- $gOPD$1([], 'length');
20652
- } catch (e) {
20653
- // IE 8 has a broken gOPD
20654
- $gOPD$1 = null;
20655
- }
20656
- }
20657
-
20658
- var gopd = $gOPD$1;
20659
-
20660
- /** @type {import('.')} */
20661
- var defineDataProperty = function defineDataProperty(
20662
- obj,
20663
- property,
20664
- value
20665
- ) {
20666
- if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
20667
- throw new type('`obj` must be an object or a function`');
20668
- }
20669
- if (typeof property !== 'string' && typeof property !== 'symbol') {
20670
- throw new type('`property` must be a string or a symbol`');
20671
- }
20672
- if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
20673
- throw new type('`nonEnumerable`, if provided, must be a boolean or null');
20674
- }
20675
- if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
20676
- throw new type('`nonWritable`, if provided, must be a boolean or null');
20677
- }
20678
- if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
20679
- throw new type('`nonConfigurable`, if provided, must be a boolean or null');
20680
- }
20681
- if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
20682
- throw new type('`loose`, if provided, must be a boolean');
20683
- }
20684
-
20685
- var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
20686
- var nonWritable = arguments.length > 4 ? arguments[4] : null;
20687
- var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
20688
- var loose = arguments.length > 6 ? arguments[6] : false;
20689
-
20690
- /* @type {false | TypedPropertyDescriptor<unknown>} */
20691
- var desc = !!gopd && gopd(obj, property);
20692
-
20693
- if (esDefineProperty) {
20694
- esDefineProperty(obj, property, {
20695
- configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
20696
- enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
20697
- value: value,
20698
- writable: nonWritable === null && desc ? desc.writable : !nonWritable
20699
- });
20700
- } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
20701
- // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
20702
- obj[property] = value; // eslint-disable-line no-param-reassign
20703
- } else {
20704
- throw new syntax('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
20705
- }
20706
- };
20707
-
20708
- var hasPropertyDescriptors = function hasPropertyDescriptors() {
20709
- return !!esDefineProperty;
20710
- };
20711
-
20712
- hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
20713
- // node v0.6 has a bug where array lengths can be Set but not Defined
20714
- if (!esDefineProperty) {
20715
- return null;
20716
- }
20717
- try {
20718
- return esDefineProperty([], 'length', { value: 1 }).length !== 1;
20719
- } catch (e) {
20720
- // In Firefox 4-22, defining length on an array throws an exception.
20721
- return true;
20722
- }
20723
- };
20724
-
20725
- var hasPropertyDescriptors_1 = hasPropertyDescriptors;
20726
-
20727
- var hasSymbols$2 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
20728
-
20729
- var toStr$3 = Object.prototype.toString;
20730
- var concat = Array.prototype.concat;
20731
-
20732
-
20733
- var isFunction = function (fn) {
20734
- return typeof fn === 'function' && toStr$3.call(fn) === '[object Function]';
20735
- };
20736
-
20737
- var supportsDescriptors = hasPropertyDescriptors_1();
20738
-
20739
- var defineProperty = function (object, name, value, predicate) {
20740
- if (name in object) {
20741
- if (predicate === true) {
20742
- if (object[name] === value) {
20743
- return;
20744
- }
20745
- } else if (!isFunction(predicate) || !predicate()) {
20746
- return;
20747
- }
20748
- }
20749
-
20750
- if (supportsDescriptors) {
20751
- defineDataProperty(object, name, value, true);
20752
- } else {
20753
- defineDataProperty(object, name, value);
20754
- }
20755
- };
20756
-
20757
- var defineProperties = function (object, map) {
20758
- var predicates = arguments.length > 2 ? arguments[2] : {};
20759
- var props = objectKeys(map);
20760
- if (hasSymbols$2) {
20761
- props = concat.call(props, Object.getOwnPropertySymbols(map));
20762
- }
20763
- for (var i = 0; i < props.length; i += 1) {
20764
- defineProperty(object, props[i], map[props[i]], predicates[props[i]]);
20765
- }
20766
- };
20767
-
20768
- defineProperties.supportsDescriptors = !!supportsDescriptors;
20769
-
20770
- var defineProperties_1 = defineProperties;
20771
-
20772
20805
  var hasDescriptors = hasPropertyDescriptors_1();
20773
20806
 
20774
20807
 
@@ -20866,6 +20899,20 @@ var isInteger = function isInteger(argument) {
20866
20899
  return $floor$1(absValue) === absValue;
20867
20900
  };
20868
20901
 
20902
+ var test = {
20903
+ __proto__: null,
20904
+ foo: {}
20905
+ };
20906
+
20907
+ var $Object$1 = Object;
20908
+
20909
+ /** @type {import('.')} */
20910
+ var hasProto = function hasProto() {
20911
+ // @ts-expect-error: TS errors on an inherited property for some reason
20912
+ return { __proto__: test }.foo === test.foo
20913
+ && !(test instanceof $Object$1);
20914
+ };
20915
+
20869
20916
  var $ArrayPrototype = getIntrinsic('%Array.prototype%');
20870
20917
 
20871
20918
 
@@ -20875,10 +20922,10 @@ var $ArrayPrototype = getIntrinsic('%Array.prototype%');
20875
20922
 
20876
20923
  var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1;
20877
20924
 
20878
- var hasProto$2 = hasProto();
20925
+ var hasProto$1 = hasProto();
20879
20926
 
20880
20927
  var $setProto = getIntrinsic('%Object.setPrototypeOf%', true) || (
20881
- hasProto$2
20928
+ hasProto$1
20882
20929
  ? function (O, proto) {
20883
20930
  O.__proto__ = proto; // eslint-disable-line no-proto, no-param-reassign
20884
20931
  return O;
@@ -21677,10 +21724,10 @@ var SameValue = function SameValue(x, y) {
21677
21724
  var ToBoolean = function ToBoolean(value) { return !!value; };
21678
21725
 
21679
21726
  var fnToStr = Function.prototype.toString;
21680
- var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
21727
+ var reflectApply$1 = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
21681
21728
  var badArrayLike;
21682
21729
  var isCallableMarker;
21683
- if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
21730
+ if (typeof reflectApply$1 === 'function' && typeof Object.defineProperty === 'function') {
21684
21731
  try {
21685
21732
  badArrayLike = Object.defineProperty({}, 'length', {
21686
21733
  get: function () {
@@ -21689,14 +21736,14 @@ if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'func
21689
21736
  });
21690
21737
  isCallableMarker = {};
21691
21738
  // eslint-disable-next-line no-throw-literal
21692
- reflectApply(function () { throw 42; }, null, badArrayLike);
21739
+ reflectApply$1(function () { throw 42; }, null, badArrayLike);
21693
21740
  } catch (_) {
21694
21741
  if (_ !== isCallableMarker) {
21695
- reflectApply = null;
21742
+ reflectApply$1 = null;
21696
21743
  }
21697
21744
  }
21698
21745
  } else {
21699
- reflectApply = null;
21746
+ reflectApply$1 = null;
21700
21747
  }
21701
21748
 
21702
21749
  var constructorRegex = /^\s*class\b/;
@@ -21753,13 +21800,13 @@ if (typeof document === 'object') {
21753
21800
  }
21754
21801
  }
21755
21802
 
21756
- var isCallable = reflectApply
21803
+ var isCallable = reflectApply$1
21757
21804
  ? function isCallable(value) {
21758
21805
  if (isDDA(value)) { return true; }
21759
21806
  if (!value) { return false; }
21760
21807
  if (typeof value !== 'function' && typeof value !== 'object') { return false; }
21761
21808
  try {
21762
- reflectApply(value, null, badArrayLike);
21809
+ reflectApply$1(value, null, badArrayLike);
21763
21810
  } catch (e) {
21764
21811
  if (e !== isCallableMarker) { return false; }
21765
21812
  }
@@ -22282,12 +22329,65 @@ var isDateObject = function isDateObject(value) {
22282
22329
  return hasToStringTag$1 ? tryDateObject(value) : toStr$7.call(value) === dateClass;
22283
22330
  };
22284
22331
 
22332
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
22333
+ var shams$2 = function hasSymbols() {
22334
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
22335
+ if (typeof Symbol.iterator === 'symbol') { return true; }
22336
+
22337
+ var obj = {};
22338
+ var sym = Symbol('test');
22339
+ var symObj = Object(sym);
22340
+ if (typeof sym === 'string') { return false; }
22341
+
22342
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
22343
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
22344
+
22345
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
22346
+ // if (sym instanceof Symbol) { return false; }
22347
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
22348
+ // if (!(symObj instanceof Symbol)) { return false; }
22349
+
22350
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
22351
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
22352
+
22353
+ var symVal = 42;
22354
+ obj[sym] = symVal;
22355
+ for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
22356
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
22357
+
22358
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
22359
+
22360
+ var syms = Object.getOwnPropertySymbols(obj);
22361
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
22362
+
22363
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
22364
+
22365
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
22366
+ var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
22367
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
22368
+ }
22369
+
22370
+ return true;
22371
+ };
22372
+
22373
+ var origSymbol$1 = typeof Symbol !== 'undefined' && Symbol;
22374
+
22375
+
22376
+ var hasSymbols$3 = function hasNativeSymbols() {
22377
+ if (typeof origSymbol$1 !== 'function') { return false; }
22378
+ if (typeof Symbol !== 'function') { return false; }
22379
+ if (typeof origSymbol$1('foo') !== 'symbol') { return false; }
22380
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
22381
+
22382
+ return shams$2();
22383
+ };
22384
+
22285
22385
  var isSymbol$1 = createCommonjsModule(function (module) {
22286
22386
 
22287
22387
  var toStr = Object.prototype.toString;
22288
- var hasSymbols$1 = hasSymbols();
22388
+ var hasSymbols = hasSymbols$3();
22289
22389
 
22290
- if (hasSymbols$1) {
22390
+ if (hasSymbols) {
22291
22391
  var symToStr = Symbol.prototype.toString;
22292
22392
  var symStringRegex = /^Symbol\(.*\)$/;
22293
22393
  var isSymbolObject = function isRealSymbolObject(value) {
@@ -22319,7 +22419,7 @@ if (hasSymbols$1) {
22319
22419
  }
22320
22420
  });
22321
22421
 
22322
- var hasSymbols$3 = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol';
22422
+ var hasSymbols$4 = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol';
22323
22423
 
22324
22424
 
22325
22425
 
@@ -22373,7 +22473,7 @@ var es2015 = function ToPrimitive(input) {
22373
22473
  }
22374
22474
 
22375
22475
  var exoticToPrim;
22376
- if (hasSymbols$3) {
22476
+ if (hasSymbols$4) {
22377
22477
  if (Symbol.toPrimitive) {
22378
22478
  exoticToPrim = GetMethod(input, Symbol.toPrimitive);
22379
22479
  } else if (isSymbol$1(input)) {
@@ -22427,7 +22527,7 @@ if (hasToStringTag$2) {
22427
22527
  }
22428
22528
 
22429
22529
  var $toString = callBound('Object.prototype.toString');
22430
- var gOPD = Object.getOwnPropertyDescriptor;
22530
+ var gOPD$1 = Object.getOwnPropertyDescriptor;
22431
22531
  var regexClass = '[object RegExp]';
22432
22532
 
22433
22533
  var isRegex = hasToStringTag$2
@@ -22437,7 +22537,7 @@ var isRegex = hasToStringTag$2
22437
22537
  return false;
22438
22538
  }
22439
22539
 
22440
- var descriptor = gOPD(value, 'lastIndex');
22540
+ var descriptor = gOPD$1(value, 'lastIndex');
22441
22541
  var hasLastIndexDataProperty = descriptor && has$2(descriptor, 'value');
22442
22542
  if (!hasLastIndexDataProperty) {
22443
22543
  return false;