@lwrjs/client-modules 0.7.0-alpha.13 → 0.7.0-alpha.16

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.
@@ -16,45 +16,6 @@ const {
16
16
  getOwnPropertyDescriptor: ReflectGetOwnPropertyDescriptor$LWS,
17
17
  ownKeys: ReflectOwnKeys$LWS
18
18
  } = Reflect;
19
- const ArrayCtor$LWS = Array;
20
- const {
21
- prototype: ArrayProto$LWS
22
- } = ArrayCtor$LWS;
23
- const {
24
- filter: ArrayProtoFilter$LWS,
25
- includes: ArrayProtoIncludes$LWS,
26
- indexOf: ArrayProtoIndexOf$LWS,
27
- join: ArrayProtoJoin$LWS,
28
- push: ArrayProtoPush$LWS,
29
- shift: ArrayProtoShift$LWS,
30
- slice: ArrayProtoSlice$LWS,
31
- sort: ArrayProtoSort$LWS,
32
- unshift: ArrayProtoUnshift$LWS
33
- } = ArrayProto$LWS;
34
- const {
35
- isArray: ArrayIsArray$LWS
36
- } = ArrayCtor$LWS;
37
-
38
- function ArrayConcat$LWS(array$LWS, ...args$LWS) {
39
- // Re-implement Array#concat to avoid prototype poisoning from Symbol.isConcatSpreadable.
40
- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/isConcatSpreadable
41
- const result$LWS = ReflectApply$LWS(ArrayProtoSlice$LWS, array$LWS, [0]);
42
-
43
- for (let i$LWS = 0, {
44
- length: length$LWS
45
- } = args$LWS; i$LWS < length$LWS; i$LWS += 1) {
46
- const value$LWS = args$LWS[i$LWS];
47
-
48
- if (ArrayIsArray$LWS(value$LWS)) {
49
- ReflectApply$LWS(ArrayProtoPush$LWS, result$LWS, value$LWS);
50
- } else {
51
- result$LWS[result$LWS.length] = value$LWS;
52
- }
53
- }
54
-
55
- return result$LWS;
56
- }
57
-
58
19
  const ObjectCtor$LWS = Object;
59
20
  const {
60
21
  assign: ObjectAssign$LWS,
@@ -103,6 +64,148 @@ function ObjectLookupOwnValue$LWS(object$LWS, key$LWS) {
103
64
  return object$LWS === null || object$LWS === undefined || !ObjectHasOwn$LWS(object$LWS, key$LWS) ? undefined : object$LWS[key$LWS];
104
65
  }
105
66
 
67
+ const SymbolCtor$LWS = Symbol;
68
+ const {
69
+ prototype: SymbolProto$LWS
70
+ } = SymbolCtor$LWS;
71
+ const {
72
+ valueOf: SymbolProtoValueOf$LWS
73
+ } = SymbolProto$LWS;
74
+ const {
75
+ for: SymbolFor$LWS,
76
+ iterator: SymbolIterator$LWS,
77
+ toStringTag: SymbolToStringTag$LWS,
78
+ unscopables: SymbolUnscopables$LWS
79
+ } = SymbolCtor$LWS;
80
+ const {
81
+ toString: SymbolProtoToString$LWS
82
+ } = SymbolProto$LWS;
83
+
84
+ function isSymbolObject$LWS(value$LWS) {
85
+ if (typeof value$LWS === 'object' && value$LWS !== null) {
86
+ try {
87
+ // Section 20.4.3 Properties of the Symbol Prototype Object
88
+ // https://tc39.es/ecma262/#thissymbolvalue
89
+ // Step 2: If Type(value) is Object and value has a [[SymbolData]] internal slot, then
90
+ // a. Let s be value.[[SymbolData]].
91
+ // b. Assert: Type(s) is Symbol.
92
+ ReflectApply$LWS(SymbolProtoValueOf$LWS, value$LWS, []);
93
+ return true; // eslint-disable-next-line no-empty
94
+ } catch (_unused$LWS) {}
95
+ }
96
+
97
+ return false;
98
+ }
99
+
100
+ const ArrayCtor$LWS = Array;
101
+ const {
102
+ prototype: ArrayProto$LWS
103
+ } = ArrayCtor$LWS;
104
+ const {
105
+ at: ArrayProtoAt$LWS,
106
+ concat: ArrayProtoConcat$LWS,
107
+ copyWithin: ArrayProtoCopyWithin$LWS,
108
+ entries: ArrayProtoEntries$LWS,
109
+ every: ArrayProtoEvery$LWS,
110
+ fill: ArrayProtoFill$LWS,
111
+ find: ArrayProtoFind$LWS,
112
+ findIndex: ArrayProtoFindIndex$LWS,
113
+ flat: ArrayProtoFlat$LWS,
114
+ flatMap: ArrayProtoFlatMap$LWS,
115
+ forEach: ArrayProtoForEach$LWS,
116
+ keys: ArrayProtoKeys$LWS,
117
+ lastIndexOf: ArrayProtoLastIndexOf$LWS,
118
+ map: ArrayProtoMap$LWS,
119
+ pop: ArrayProtoPop$LWS,
120
+ reduce: ArrayProtoReduce$LWS,
121
+ reduceRight: ArrayProtoReduceRight$LWS,
122
+ reverse: ArrayProtoReverse$LWS,
123
+ some: ArrayProtoSome$LWS,
124
+ splice: ArrayProtoSplice$LWS,
125
+ toLocaleString: ArrayProtoToLocaleString$LWS,
126
+ toString: ArrayProtoToString$LWS,
127
+ values: ArrayProtoValues$LWS,
128
+ [SymbolIterator$LWS]: ArrayProtoSymbolIterator$LWS
129
+ } = ArrayProto$LWS;
130
+ const ArrayUnscopables$LWS = ObjectFreeze$LWS(ObjectAssign$LWS({
131
+ __proto__: null
132
+ }, ArrayProto$LWS[SymbolUnscopables$LWS]));
133
+ const {
134
+ filter: ArrayProtoFilter$LWS,
135
+ includes: ArrayProtoIncludes$LWS,
136
+ indexOf: ArrayProtoIndexOf$LWS,
137
+ join: ArrayProtoJoin$LWS,
138
+ push: ArrayProtoPush$LWS,
139
+ shift: ArrayProtoShift$LWS,
140
+ slice: ArrayProtoSlice$LWS,
141
+ sort: ArrayProtoSort$LWS,
142
+ unshift: ArrayProtoUnshift$LWS
143
+ } = ArrayProto$LWS;
144
+ const {
145
+ isArray: ArrayIsArray$LWS
146
+ } = ArrayCtor$LWS;
147
+
148
+ function ArrayConcat$LWS(array$LWS, ...args$LWS) {
149
+ // Re-implement Array#concat to avoid prototype poisoning from Symbol.isConcatSpreadable.
150
+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/isConcatSpreadable
151
+ const result$LWS = ReflectApply$LWS(ArrayProtoSlice$LWS, array$LWS, [0]);
152
+
153
+ for (let i$LWS = 0, {
154
+ length: length$LWS
155
+ } = args$LWS; i$LWS < length$LWS; i$LWS += 1) {
156
+ const value$LWS = args$LWS[i$LWS];
157
+
158
+ if (ArrayIsArray$LWS(value$LWS)) {
159
+ ReflectApply$LWS(ArrayProtoPush$LWS, result$LWS, value$LWS);
160
+ } else {
161
+ result$LWS[result$LWS.length] = value$LWS;
162
+ }
163
+ }
164
+
165
+ return result$LWS;
166
+ }
167
+
168
+ function toSafeArray$LWS(array$LWS) {
169
+ ReflectSetPrototypeOf$LWS(array$LWS, null);
170
+ array$LWS.at = ArrayProtoAt$LWS;
171
+ array$LWS.concat = ArrayProtoConcat$LWS;
172
+ array$LWS.constructor = ArrayCtor$LWS;
173
+ array$LWS.copyWithin = ArrayProtoCopyWithin$LWS;
174
+ array$LWS.entries = ArrayProtoEntries$LWS;
175
+ array$LWS.every = ArrayProtoEvery$LWS;
176
+ array$LWS.fill = ArrayProtoFill$LWS;
177
+ array$LWS.filter = ArrayProtoFilter$LWS;
178
+ array$LWS.find = ArrayProtoFind$LWS;
179
+ array$LWS.findIndex = ArrayProtoFindIndex$LWS;
180
+ array$LWS.flat = ArrayProtoFlat$LWS;
181
+ array$LWS.flatMap = ArrayProtoFlatMap$LWS;
182
+ array$LWS.forEach = ArrayProtoForEach$LWS;
183
+ array$LWS.includes = ArrayProtoIncludes$LWS;
184
+ array$LWS.indexOf = ArrayProtoIndexOf$LWS;
185
+ array$LWS.join = ArrayProtoJoin$LWS;
186
+ array$LWS.keys = ArrayProtoKeys$LWS;
187
+ array$LWS.lastIndexOf = ArrayProtoLastIndexOf$LWS;
188
+ array$LWS.map = ArrayProtoMap$LWS;
189
+ array$LWS.pop = ArrayProtoPop$LWS;
190
+ array$LWS.push = ArrayProtoPush$LWS;
191
+ array$LWS.reduce = ArrayProtoReduce$LWS;
192
+ array$LWS.reduceRight = ArrayProtoReduceRight$LWS;
193
+ array$LWS.reverse = ArrayProtoReverse$LWS;
194
+ array$LWS.shift = ArrayProtoShift$LWS;
195
+ array$LWS.slice = ArrayProtoSlice$LWS;
196
+ array$LWS.some = ArrayProtoSome$LWS;
197
+ array$LWS.sort = ArrayProtoSort$LWS;
198
+ array$LWS.splice = ArrayProtoSplice$LWS;
199
+ array$LWS.toLocaleString = ArrayProtoToLocaleString$LWS;
200
+ array$LWS.toString = ArrayProtoToString$LWS;
201
+ array$LWS.unshift = ArrayProtoUnshift$LWS;
202
+ array$LWS.values = ArrayProtoValues$LWS;
203
+ array$LWS[SymbolIterator$LWS] = ArrayProtoSymbolIterator$LWS;
204
+ array$LWS[SymbolUnscopables$LWS] = ArrayUnscopables$LWS;
205
+ ReflectSetPrototypeOf$LWS(array$LWS, ArrayProto$LWS);
206
+ return array$LWS;
207
+ }
208
+
106
209
  const ArrayBufferCtor$LWS = ArrayBuffer;
107
210
  const {
108
211
  isView: ArrayBufferIsView$LWS
@@ -116,7 +219,7 @@ function isArrayBuffer$LWS(value$LWS) {
116
219
  // Step 2: Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).
117
220
  ReflectApply$LWS(ArrayBufferProtoByteLengthGetter$LWS, value$LWS, []);
118
221
  return true; // eslint-disable-next-line no-empty
119
- } catch (_unused$LWS) {}
222
+ } catch (_unused2$LWS) {}
120
223
 
121
224
  return false;
122
225
  } // https://caniuse.com/bigint
@@ -135,7 +238,7 @@ const isBigIntObject$LWS = SUPPORTS_BIG_INT$LWS ? function isBigIntObject$LWS(va
135
238
  // a. Assert: Type(value.[[BigIntData]]) is BigInt.
136
239
  ReflectApply$LWS(BigIntProtoValueOf$LWS, value$LWS, []);
137
240
  return true; // eslint-disable-next-line no-empty
138
- } catch (_unused2$LWS) {}
241
+ } catch (_unused3$LWS) {}
139
242
  }
140
243
 
141
244
  return false;
@@ -158,7 +261,7 @@ function isBooleanObject$LWS(value$LWS) {
158
261
  // b. Assert: Type(b) is Boolean.
159
262
  ReflectApply$LWS(BooleanProtoValueOf$LWS, value$LWS, []);
160
263
  return true; // eslint-disable-next-line no-empty
161
- } catch (_unused3$LWS) {}
264
+ } catch (_unused4$LWS) {}
162
265
  }
163
266
 
164
267
  return false;
@@ -217,7 +320,7 @@ function isDate$LWS(value$LWS) {
217
320
  // Step 2: Throw a TypeError exception.
218
321
  ReflectApply$LWS(DateProtoValueOf$LWS, value$LWS, []);
219
322
  return true; // eslint-disable-next-line no-empty
220
- } catch (_unused4$LWS) {}
323
+ } catch (_unused5$LWS) {}
221
324
  }
222
325
 
223
326
  return false;
@@ -237,11 +340,20 @@ const {
237
340
  } = MapCtor$LWS;
238
341
  const {
239
342
  clear: MapProtoClear$LWS,
240
- entries: MapProtoEntries$LWS,
343
+ delete: MapProtoDelete$LWS,
344
+ forEach: MapProtoForEach$LWS,
241
345
  get: MapProtoGet$LWS,
242
- set: MapProtoSet$LWS
346
+ has: MapProtoHas$LWS,
347
+ keys: MapProtoKeys$LWS,
348
+ values: MapProtoValues$LWS,
349
+ [SymbolIterator$LWS]: MapProtoSymbolIterator$LWS,
350
+ [SymbolToStringTag$LWS]: MapProtoSymbolToStringTag$LWS
243
351
  } = MapProto$LWS;
244
352
  const MapProtoSizeGetter$LWS = ObjectLookupOwnGetter$LWS(MapProto$LWS, 'size');
353
+ const {
354
+ entries: MapProtoEntries$LWS,
355
+ set: MapProtoSet$LWS
356
+ } = MapProto$LWS;
245
357
 
246
358
  function isMap$LWS(value$LWS) {
247
359
  try {
@@ -250,11 +362,36 @@ function isMap$LWS(value$LWS) {
250
362
  // Step 2: Perform ? RequireInternalSlot(M, [[MapData]]).
251
363
  ReflectApply$LWS(MapProtoSizeGetter$LWS, value$LWS, []);
252
364
  return true; // eslint-disable-next-line no-empty
253
- } catch (_unused5$LWS) {}
365
+ } catch (_unused6$LWS) {}
254
366
 
255
367
  return false;
256
368
  }
257
369
 
370
+ function toSafeMap$LWS(map$LWS) {
371
+ ReflectSetPrototypeOf$LWS(map$LWS, null);
372
+ map$LWS.clear = MapProtoClear$LWS;
373
+ map$LWS.constructor = MapCtor$LWS;
374
+ map$LWS.delete = MapProtoDelete$LWS;
375
+ map$LWS.entries = MapProtoEntries$LWS;
376
+ map$LWS.forEach = MapProtoForEach$LWS;
377
+ map$LWS.get = MapProtoGet$LWS;
378
+ map$LWS.has = MapProtoHas$LWS;
379
+ map$LWS.keys = MapProtoKeys$LWS;
380
+ map$LWS.set = MapProtoSet$LWS;
381
+ ReflectDefineProperty$LWS(map$LWS, 'size', {
382
+ __proto__: null,
383
+ configurable: true,
384
+ enumerable: true,
385
+ get: MapProtoSizeGetter$LWS,
386
+ set: undefined
387
+ });
388
+ map$LWS.values = MapProtoValues$LWS;
389
+ map$LWS[SymbolIterator$LWS] = MapProtoSymbolIterator$LWS;
390
+ map$LWS[SymbolToStringTag$LWS] = MapProtoSymbolToStringTag$LWS;
391
+ ReflectSetPrototypeOf$LWS(map$LWS, MapProto$LWS);
392
+ return map$LWS;
393
+ }
394
+
258
395
  const NumberCtor$LWS = Number;
259
396
  const {
260
397
  prototype: NumberProto$LWS
@@ -277,36 +414,6 @@ function isNumberObject$LWS(value$LWS) {
277
414
  // b. Assert: Type(n) is Number.
278
415
  ReflectApply$LWS(NumberProtoValueOf$LWS, value$LWS, []);
279
416
  return true; // eslint-disable-next-line no-empty
280
- } catch (_unused6$LWS) {}
281
- }
282
-
283
- return false;
284
- }
285
-
286
- const SymbolCtor$LWS = Symbol;
287
- const {
288
- prototype: SymbolProto$LWS
289
- } = SymbolCtor$LWS;
290
- const {
291
- valueOf: SymbolProtoValueOf$LWS
292
- } = SymbolProto$LWS;
293
- const {
294
- for: SymbolFor$LWS
295
- } = SymbolCtor$LWS;
296
- const {
297
- toString: SymbolProtoToString$LWS
298
- } = SymbolProto$LWS;
299
-
300
- function isSymbolObject$LWS(value$LWS) {
301
- if (typeof value$LWS === 'object' && value$LWS !== null) {
302
- try {
303
- // Section 20.4.3 Properties of the Symbol Prototype Object
304
- // https://tc39.es/ecma262/#thissymbolvalue
305
- // Step 2: If Type(value) is Object and value has a [[SymbolData]] internal slot, then
306
- // a. Let s be value.[[SymbolData]].
307
- // b. Assert: Type(s) is Symbol.
308
- ReflectApply$LWS(SymbolProtoValueOf$LWS, value$LWS, []);
309
- return true; // eslint-disable-next-line no-empty
310
417
  } catch (_unused7$LWS) {}
311
418
  }
312
419
 
@@ -335,7 +442,10 @@ const QUOTE_CHAR_REG_EXP_MAP$LWS = {
335
442
  [CHAR_QUOTE_DOUBLE$LWS]: /\\?"/g,
336
443
  [CHAR_QUOTE_SINGLE$LWS]: /\\?'/g
337
444
  };
338
- const URLCtor$LWS = typeof URL === 'function' ? URL : undefined;
445
+ const URLCtor$LWS = typeof URL === 'function' ? URL :
446
+ /* istanbul ignore next: unreachable in test env */
447
+ undefined; // istanbul ignore next: optional chaining and nullish coalescing results in an expansion that contains an unreachable "void 0" branch for every occurence of the operator
448
+
339
449
  const URLProtoToString$LWS = URLCtor$LWS == null ? void 0 : (_URLCtor$prototype$LWS = URLCtor$LWS.prototype) == null ? void 0 : _URLCtor$prototype$LWS.toString; // To extract the function body start the match from the beginning of the
340
450
  // source code with the character class `[\s\S]` instead of `.` because `[\s\S]`
341
451
  // matches everything including newlines where as `.` matches everything except
@@ -368,7 +478,8 @@ function extractFunctionBodySource$LWS(func$LWS) {
368
478
  var _ref$LWS, _match$$LWS;
369
479
 
370
480
  const source$LWS = ReflectApply$LWS(FunctionProtoToString$LWS, func$LWS, []);
371
- const match$LWS = ReflectApply$LWS(StringProtoMatch$LWS, source$LWS, [funcBodyRegExp$LWS]);
481
+ const match$LWS = ReflectApply$LWS(StringProtoMatch$LWS, source$LWS, [funcBodyRegExp$LWS]); // istanbul ignore next: optional chaining and nullish coalescing results in an expansion that contains an unreachable "void 0" branch for every occurence of the operator
482
+
372
483
  return (_ref$LWS = (_match$$LWS = match$LWS == null ? void 0 : match$LWS[1]) != null ? _match$$LWS : match$LWS == null ? void 0 : match$LWS[2]) != null ? _ref$LWS : '';
373
484
  }
374
485
 
@@ -482,12 +593,20 @@ const {
482
593
  prototype: SetProto$LWS
483
594
  } = SetCtor$LWS;
484
595
  const {
485
- add: SetProtoAdd$LWS,
596
+ clear: SetProtoClear$LWS,
486
597
  delete: SetProtoDelete$LWS,
598
+ entries: SetProtoEntries$LWS,
599
+ forEach: SetProtoForEach$LWS,
487
600
  has: SetProtoHas$LWS,
488
- values: SetProtoValues$LWS
601
+ keys: SetProtoKeys$LWS,
602
+ [SymbolIterator$LWS]: SetProtoSymbolIterator$LWS,
603
+ [SymbolToStringTag$LWS]: SetProtoSymbolToStringTag$LWS
489
604
  } = SetProto$LWS;
490
605
  const SetProtoSizeGetter$LWS = ObjectLookupOwnGetter$LWS(SetProto$LWS, 'size');
606
+ const {
607
+ add: SetProtoAdd$LWS,
608
+ values: SetProtoValues$LWS
609
+ } = SetProto$LWS;
491
610
 
492
611
  function isSet$LWS(value$LWS) {
493
612
  try {
@@ -501,12 +620,41 @@ function isSet$LWS(value$LWS) {
501
620
  return false;
502
621
  }
503
622
 
623
+ function toSafeSet$LWS(set$LWS) {
624
+ ReflectSetPrototypeOf$LWS(set$LWS, null);
625
+ set$LWS.add = SetProtoAdd$LWS;
626
+ set$LWS.clear = SetProtoClear$LWS;
627
+ set$LWS.constructor = SetCtor$LWS;
628
+ set$LWS.delete = SetProtoDelete$LWS;
629
+ set$LWS.entries = SetProtoEntries$LWS;
630
+ set$LWS.forEach = SetProtoForEach$LWS;
631
+ set$LWS.has = SetProtoHas$LWS;
632
+ set$LWS.keys = SetProtoKeys$LWS;
633
+ ReflectDefineProperty$LWS(set$LWS, 'size', {
634
+ __proto__: null,
635
+ configurable: true,
636
+ enumerable: true,
637
+ get: SetProtoSizeGetter$LWS,
638
+ set: undefined
639
+ });
640
+ set$LWS.values = SetProtoValues$LWS;
641
+ set$LWS[SymbolIterator$LWS] = SetProtoSymbolIterator$LWS;
642
+ set$LWS[SymbolToStringTag$LWS] = SetProtoSymbolToStringTag$LWS;
643
+ ReflectSetPrototypeOf$LWS(set$LWS, SetProto$LWS);
644
+ return set$LWS;
645
+ }
646
+
504
647
  const WeakMapCtor$LWS = WeakMap;
505
648
  const {
649
+ prototype: WeakMapProto$LWS
650
+ } = WeakMapCtor$LWS;
651
+ const {
652
+ delete: WeakMapProtoDelete$LWS,
506
653
  get: WeakMapProtoGet$LWS,
507
654
  has: WeakMapProtoHas$LWS,
508
- set: WeakMapProtoSet$LWS
509
- } = WeakMapCtor$LWS.prototype;
655
+ set: WeakMapProtoSet$LWS,
656
+ [SymbolToStringTag$LWS]: WeakMapProtoSymbolToStringTag$LWS
657
+ } = WeakMapProto$LWS;
510
658
 
511
659
  function isWeakMap$LWS(value$LWS) {
512
660
  if (typeof value$LWS === 'object' && value$LWS !== null) {
@@ -522,6 +670,18 @@ function isWeakMap$LWS(value$LWS) {
522
670
  return false;
523
671
  }
524
672
 
673
+ function toSafeWeakMap$LWS$1(weakMap$LWS) {
674
+ ReflectSetPrototypeOf$LWS(weakMap$LWS, null);
675
+ weakMap$LWS.constructor = WeakMapCtor$LWS;
676
+ weakMap$LWS.delete = WeakMapProtoDelete$LWS;
677
+ weakMap$LWS.get = WeakMapProtoGet$LWS;
678
+ weakMap$LWS.has = WeakMapProtoHas$LWS;
679
+ weakMap$LWS.set = WeakMapProtoSet$LWS;
680
+ weakMap$LWS[SymbolToStringTag$LWS] = WeakMapProtoSymbolToStringTag$LWS;
681
+ ReflectSetPrototypeOf$LWS(weakMap$LWS, WeakMapProto$LWS);
682
+ return weakMap$LWS;
683
+ }
684
+
525
685
  const {
526
686
  has: WeakSetProtoHas$LWS
527
687
  } = WeakSet.prototype;
@@ -846,7 +1006,7 @@ function createRevokedProxy$LWS(object$LWS) {
846
1006
  revocable$LWS.revoke();
847
1007
  return revocable$LWS.proxy;
848
1008
  }
849
- /*! version: 0.16.15 */
1009
+ /*! version: 0.16.18 */
850
1010
 
851
1011
  /*!
852
1012
  * Copyright (C) 2019 salesforce.com, inc.
@@ -927,14 +1087,14 @@ const NodeProtoChildNodesGetter$LWS = ObjectLookupOwnGetter$LWS(NodeProto$LWS, '
927
1087
  const NodeProtoFirstChildGetter$LWS = ObjectLookupOwnGetter$LWS(NodeProto$LWS, 'firstChild');
928
1088
  const NodeProtoNodeNameGetter$LWS = ObjectLookupOwnGetter$LWS(NodeProto$LWS, 'nodeName');
929
1089
  const NodeProtoOwnerDocumentGetter$LWS = ObjectLookupOwnGetter$LWS(NodeProto$LWS, 'ownerDocument');
930
- const globalObjectToValidatorMap$LWS = new WeakMapCtor$LWS();
1090
+ const globalObjectToValidatorMap$LWS = toSafeWeakMap$LWS$1(new WeakMapCtor$LWS());
931
1091
  const documentPattern$LWS = 'document';
932
1092
  const windowPattern$LWS = 'document\\.defaultView|frames|globalThis|self|window';
933
1093
  const webpackGlobalPattern$LWS = `${windowPattern$LWS}|global`;
934
1094
  const webpackGlobalDocumentPattern$LWS = `${documentPattern$LWS}|global.document`;
935
1095
  const locationReferencesRegExp$LWS = createPropertyReferenceRegExp$LWS(`${documentPattern$LWS}|${windowPattern$LWS}`, 'location');
936
1096
  const locationReferencesWithWebPackRegExp$LWS = createPropertyReferenceRegExp$LWS(`${webpackGlobalDocumentPattern$LWS}|${webpackGlobalPattern$LWS}`, 'location');
937
- const sandboxEvalContextNameRegExp$LWS = new RegExp(`(?:^|\b)${escapeRegExp$LWS(SANDBOX_EVAL_CONTEXT_NAME$LWS)}(?:\b|$)`);
1097
+ const sandboxEvalContextNameRegExp$LWS = new RegExp(`(?:^|\\W)${escapeRegExp$LWS(SANDBOX_EVAL_CONTEXT_NAME$LWS)}(?:\\W|$)`);
938
1098
  const webpackRequireNameRegExp$LWS = new RegExp(`\\b${escapeRegExp$LWS(WEBPACK_REQUIRE_NAME$LWS)}\\b`);
939
1099
 
940
1100
  function createPropertyReferenceRegExp$LWS(objectPattern$LWS, key$LWS) {
@@ -1007,11 +1167,11 @@ class Validator$LWS {
1007
1167
  }
1008
1168
 
1009
1169
  function getValidator$LWS(globalObject$LWS) {
1010
- let validator$LWS = ReflectApply$LWS(WeakMapProtoGet$LWS, globalObjectToValidatorMap$LWS, [globalObject$LWS]);
1170
+ let validator$LWS = globalObjectToValidatorMap$LWS.get(globalObject$LWS);
1011
1171
 
1012
1172
  if (validator$LWS === undefined) {
1013
1173
  validator$LWS = new Validator$LWS(globalObject$LWS);
1014
- ReflectApply$LWS(WeakMapProtoSet$LWS, globalObjectToValidatorMap$LWS, [globalObject$LWS, validator$LWS]);
1174
+ globalObjectToValidatorMap$LWS.set(globalObject$LWS, validator$LWS);
1015
1175
  }
1016
1176
 
1017
1177
  return validator$LWS;
@@ -1075,7 +1235,7 @@ const {
1075
1235
  } = BlobProto$LWS;
1076
1236
  const BlobProtoSizeGetter$LWS = ObjectLookupOwnGetter$LWS(BlobProto$LWS, 'size');
1077
1237
  const BlobProtoTypeGetter$LWS = ObjectLookupOwnGetter$LWS(BlobProto$LWS, 'type');
1078
- const SEEN_OBJECTS_MAP$LWS = new MapCtor$LWS();
1238
+ const SEEN_OBJECTS_MAP$LWS = toSafeMap$LWS(new MapCtor$LWS());
1079
1239
 
1080
1240
  function cloneBoxedPrimitive$LWS(object$LWS) {
1081
1241
  return ObjectCtor$LWS(getNearMembraneSerializedValue$LWS(object$LWS));
@@ -1274,7 +1434,7 @@ function partialStructuredCloneInternal$LWS(value$LWS) {
1274
1434
  // of creating a new clone.
1275
1435
 
1276
1436
 
1277
- let cloneValue$LWS = ReflectApply$LWS(MapProtoGet$LWS, SEEN_OBJECTS_MAP$LWS, [originalValue$LWS]);
1437
+ let cloneValue$LWS = SEEN_OBJECTS_MAP$LWS.get(originalValue$LWS);
1278
1438
 
1279
1439
  if (cloneValue$LWS) {
1280
1440
  setter$LWS(cloneValue$LWS); // eslint-disable-next-line no-continue, no-extra-label, no-labels
@@ -1330,7 +1490,7 @@ function partialStructuredCloneInternal$LWS(value$LWS) {
1330
1490
  // istanbul ignore else
1331
1491
  if (!isNearMembrane$LWS(originalValue$LWS)) {
1332
1492
  // Skip cloning non-membrane proxied objects.
1333
- ReflectApply$LWS(MapProtoSet$LWS, SEEN_OBJECTS_MAP$LWS, [originalValue$LWS, originalValue$LWS]);
1493
+ SEEN_OBJECTS_MAP$LWS.set(originalValue$LWS, originalValue$LWS);
1334
1494
  setter$LWS(originalValue$LWS); // eslint-disable-next-line no-extra-label, no-labels
1335
1495
 
1336
1496
  continue queueLoop;
@@ -1370,7 +1530,7 @@ function partialStructuredCloneInternal$LWS(value$LWS) {
1370
1530
  break queueLoop;
1371
1531
  }
1372
1532
 
1373
- ReflectApply$LWS(MapProtoSet$LWS, SEEN_OBJECTS_MAP$LWS, [originalValue$LWS, cloneValue$LWS]);
1533
+ SEEN_OBJECTS_MAP$LWS.set(originalValue$LWS, cloneValue$LWS);
1374
1534
  setter$LWS(cloneValue$LWS);
1375
1535
  }
1376
1536
 
@@ -1384,7 +1544,7 @@ function partialStructuredClone$LWS(value$LWS) {
1384
1544
  result$LWS = partialStructuredCloneInternal$LWS(value$LWS); // eslint-disable-next-line no-empty
1385
1545
  } catch (_unused2$LWS) {}
1386
1546
 
1387
- ReflectApply$LWS(MapProtoClear$LWS, SEEN_OBJECTS_MAP$LWS, []);
1547
+ SEEN_OBJECTS_MAP$LWS.clear();
1388
1548
  return result$LWS;
1389
1549
  }
1390
1550
 
@@ -1473,7 +1633,74 @@ const {
1473
1633
  const XhrProtoResponseTextGetter$LWS = ObjectLookupOwnGetter$LWS(XhrProto$LWS, 'responseText');
1474
1634
  const XhrProtoStatusGetter$LWS = ObjectLookupOwnGetter$LWS(XhrProto$LWS, 'status');
1475
1635
  const XhrProtoWithCredentialsSetter$LWS = ObjectLookupOwnSetter$LWS(XhrProto$LWS, 'withCredentials');
1476
- /*! version: 0.16.15 */
1636
+ /*! version: 0.16.18 */
1637
+
1638
+ /*!
1639
+ * Copyright (C) 2019 salesforce.com, inc.
1640
+ */
1641
+ const ALLOWED_MIME_TYPES$LWS = ['application/octet-stream', 'application/json', 'application/pdf', 'video/', 'audio/', 'image/', 'font/', 'text/plain', 'text/markdown', 'application/zip', 'application/x-bzip', 'application/x-rar-compressed', 'application/x-tar']; // Allow only alphanumeric, '-', '+', and '.' characters.
1642
+
1643
+ const validMimeTypeRegExp$LWS = /^[a-z]+\/[a-z0-9.+-]+$/;
1644
+
1645
+ function isMIMETypeAllowed$LWS(mimeType$LWS) {
1646
+ // avoid MIME types which try to escape using special characters
1647
+ // Reason: W-4896359
1648
+ if (ReflectApply$LWS(RegExpProtoTest$LWS, validMimeTypeRegExp$LWS, [mimeType$LWS])) {
1649
+ for (let i$LWS = 0, {
1650
+ length: length$LWS
1651
+ } = ALLOWED_MIME_TYPES$LWS; i$LWS < length$LWS; i$LWS += 1) {
1652
+ if (ReflectApply$LWS(StringProtoStartsWith$LWS, mimeType$LWS, [ALLOWED_MIME_TYPES$LWS[i$LWS]])) {
1653
+ return true;
1654
+ }
1655
+ }
1656
+ }
1657
+
1658
+ return false;
1659
+ }
1660
+
1661
+ const DISALLOWED_ENDPOINTS_LIST$LWS = ['/aura', '/webruntime'];
1662
+ const newlinesAndTabsRegExp$LWS = /[\u2028\u2029\n\r\t]/g;
1663
+ const normalizerAnchor$LWS$1 = ReflectApply$LWS(DocumentProtoCreateElement$LWS, document, ['a']);
1664
+ const TRUSTED_DOMAINS_REG_EXP$LWS = /\.(force|salesforce|visualforce|documentforce|my\.site|salesforce-sites)\.com$/;
1665
+ const URL_SCHEMES_LIST$LWS = toSafeArray$LWS(['http:', 'https:']); // @TODO W-7302311 Make paths and domains configurable
1666
+
1667
+ function isValidURL$LWS(parsedURL$LWS) {
1668
+ const loweredPathname$LWS = ReflectApply$LWS(StringProtoToLowerCase$LWS, parsedURL$LWS.pathname, []);
1669
+
1670
+ for (let i$LWS = 0, {
1671
+ length: length$LWS
1672
+ } = DISALLOWED_ENDPOINTS_LIST$LWS; i$LWS < length$LWS; i$LWS += 1) {
1673
+ if (ReflectApply$LWS(StringProtoEndsWith$LWS, loweredPathname$LWS, [DISALLOWED_ENDPOINTS_LIST$LWS[i$LWS]]) || ReflectApply$LWS(StringProtoIncludes$LWS, loweredPathname$LWS, [`${DISALLOWED_ENDPOINTS_LIST$LWS[i$LWS]}/`])) {
1674
+ return false;
1675
+ }
1676
+ }
1677
+
1678
+ return true;
1679
+ }
1680
+
1681
+ function isValidURLScheme$LWS(url$LWS) {
1682
+ ReflectApply$LWS(HTMLAnchorElementProtoHrefSetter$LWS, normalizerAnchor$LWS$1, [url$LWS]);
1683
+ return URL_SCHEMES_LIST$LWS.includes(ReflectApply$LWS(HTMLAnchorElementProtoProtocolGetter$LWS, normalizerAnchor$LWS$1, []));
1684
+ }
1685
+
1686
+ function parseURL$LWS(url$LWS) {
1687
+ ReflectApply$LWS(HTMLAnchorElementProtoHrefSetter$LWS, normalizerAnchor$LWS$1, [sanitizeURLString$LWS(url$LWS)]);
1688
+ return {
1689
+ normalizedURL: ReflectApply$LWS(HTMLAnchorElementProtoHrefGetter$LWS, normalizerAnchor$LWS$1, []),
1690
+ hostname: ReflectApply$LWS(HTMLAnchorElementProtoHostnameGetter$LWS, normalizerAnchor$LWS$1, []),
1691
+ pathname: WindowDecodeURIComponent$LWS(ReflectApply$LWS(HTMLAnchorElementProtoPathnameGetter$LWS, normalizerAnchor$LWS$1, []))
1692
+ };
1693
+ }
1694
+
1695
+ function sanitizeURLForElement$LWS(url$LWS) {
1696
+ ReflectApply$LWS(HTMLAnchorElementProtoHrefSetter$LWS, normalizerAnchor$LWS$1, [url$LWS]);
1697
+ return sanitizeURLString$LWS(ReflectApply$LWS(HTMLAnchorElementProtoHrefGetter$LWS, normalizerAnchor$LWS$1, []));
1698
+ }
1699
+
1700
+ function sanitizeURLString$LWS(urlString$LWS) {
1701
+ return urlString$LWS === '' ? urlString$LWS : ReflectApply$LWS(StringProtoReplace$LWS, urlString$LWS, [newlinesAndTabsRegExp$LWS, '']);
1702
+ }
1703
+ /*! version: 0.16.18 */
1477
1704
 
1478
1705
  /*! @license DOMPurify 2.3.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.6/LICENSE */
1479
1706
 
@@ -2966,10 +3193,10 @@ const STRING_BLOB_HTML$LWS = {
2966
3193
  CUSTOM_ELEMENT_HANDLING: ObjectAssign$LWS({}, CUSTOM_ELEMENT_HANDLING$LWS),
2967
3194
  SANITIZE_DOM: false
2968
3195
  };
2969
- const instances$LWS = new WeakMapCtor$LWS();
3196
+ const instances$LWS = toSafeWeakMap$LWS$1(new WeakMapCtor$LWS());
2970
3197
 
2971
3198
  function sanitizer$LWS(config$LWS, hooksRegistry$LWS) {
2972
- let dompurify$LWS = ReflectApply$LWS(WeakMapProtoGet$LWS, instances$LWS, [config$LWS]);
3199
+ let dompurify$LWS = instances$LWS.get(config$LWS);
2973
3200
 
2974
3201
  if (dompurify$LWS === undefined) {
2975
3202
  dompurify$LWS = purify();
@@ -2982,32 +3209,31 @@ function sanitizer$LWS(config$LWS, hooksRegistry$LWS) {
2982
3209
  }
2983
3210
  }
2984
3211
 
2985
- ReflectApply$LWS(WeakMapProtoSet$LWS, instances$LWS, [config$LWS, dompurify$LWS]);
3212
+ instances$LWS.set(config$LWS, dompurify$LWS);
2986
3213
  }
2987
3214
 
2988
3215
  return dompurify$LWS;
2989
3216
  }
2990
3217
 
2991
- const ATTRIBUTES$LWS = ['href', 'xlink:href'];
2992
- const SANITIZER_HOOKS$LWS = {
3218
+ const SANITIZE_ATTRIBUTES_LIST$LWS = toSafeArray$LWS(['href', 'xlink:href']);
3219
+ const SANITIZER_HOOKS_REGISTRY$LWS = {
2993
3220
  __proto__: null,
2994
3221
  uponSanitizeAttribute: sanitizeHrefAttributeHook$LWS
2995
3222
  };
2996
- const URL_SCHEMES$LWS = ['http:', 'https:'];
2997
3223
  const docRef$LWS = document;
2998
3224
  const htmlTemplate$LWS = ReflectApply$LWS(DocumentProtoCreateElement$LWS, docRef$LWS, ['template']);
2999
- const normalizerAnchor$LWS$1 = ReflectApply$LWS(DocumentProtoCreateElement$LWS, docRef$LWS, ['a']); // Queue for managing pending xhr requests.
3225
+ const normalizerAnchor$LWS = ReflectApply$LWS(DocumentProtoCreateElement$LWS, docRef$LWS, ['a']); // Queue for managing pending xhr requests.
3000
3226
 
3001
- const queue$LWS = new SetCtor$LWS(); // A regexp to find all non lowercase alphanumeric.
3227
+ const queue$LWS = toSafeSet$LWS(new SetCtor$LWS()); // A regexp to find all non lowercase alphanumeric.
3002
3228
 
3003
3229
  const urlReplacerRegExp$LWS = /[^a-z0-9]+/gi;
3004
3230
 
3005
3231
  function checkExistingAndDequeue$LWS(container$LWS, normalizedHref$LWS) {
3006
- if (ReflectApply$LWS(SetProtoHas$LWS, queue$LWS, [normalizedHref$LWS.normalizedUrl])) {
3232
+ if (queue$LWS.has(normalizedHref$LWS.normalizedUrl)) {
3007
3233
  // Wait for request to finish, then update content.
3008
3234
  const interval$LWS = WindowSetInterval$LWS(() => {
3009
3235
  // istanbul ignore else
3010
- if (!ReflectApply$LWS(SetProtoHas$LWS, queue$LWS, [normalizedHref$LWS.normalizedUrl])) {
3236
+ if (!queue$LWS.has(normalizedHref$LWS.normalizedUrl)) {
3011
3237
  updater$LWS(container$LWS, normalizedHref$LWS);
3012
3238
  WindowClearInterval$LWS(interval$LWS);
3013
3239
  }
@@ -3030,7 +3256,7 @@ function fetchAndSanitize$LWS(normalizedHref$LWS) {
3030
3256
  // This is the first time we see this href.
3031
3257
  const container$LWS = createUrlContainer$LWS(normalizedHref$LWS.normalizedUrl); // Put the URL we're fetching in a queue.
3032
3258
 
3033
- ReflectApply$LWS(SetProtoAdd$LWS, queue$LWS, [normalizedHref$LWS.normalizedUrl]); // Initiate an XHR to fetch the resource.
3259
+ queue$LWS.add(normalizedHref$LWS.normalizedUrl); // Initiate an XHR to fetch the resource.
3034
3260
 
3035
3261
  const xhr$LWS = new XhrCtor$LWS();
3036
3262
  ReflectApply$LWS(EventTargetProtoAddEventListener$LWS, xhr$LWS, ['load', () => {
@@ -3051,7 +3277,7 @@ function fetchAndSanitize$LWS(normalizedHref$LWS) {
3051
3277
  }
3052
3278
 
3053
3279
  ReflectApply$LWS(NodeProtoAppendChild$LWS, container$LWS, [fragment$LWS]);
3054
- ReflectApply$LWS(SetProtoDelete$LWS, queue$LWS, [normalizedHref$LWS.normalizedUrl]);
3280
+ queue$LWS.delete(normalizedHref$LWS.normalizedUrl);
3055
3281
  }
3056
3282
  }]);
3057
3283
  ReflectApply$LWS(XhrProtoOpen$LWS, xhr$LWS, ['GET', normalizedHref$LWS.requestedUrl]);
@@ -3059,9 +3285,9 @@ function fetchAndSanitize$LWS(normalizedHref$LWS) {
3059
3285
  }
3060
3286
 
3061
3287
  function parseHref$LWS(url$LWS) {
3062
- ReflectApply$LWS(HTMLAnchorElementProtoHrefSetter$LWS, normalizerAnchor$LWS$1, [url$LWS]);
3063
- const href$LWS = ReflectApply$LWS(HTMLAnchorElementProtoHrefGetter$LWS, normalizerAnchor$LWS$1, []);
3064
- const protocol$LWS = ReflectApply$LWS(HTMLAnchorElementProtoProtocolGetter$LWS, normalizerAnchor$LWS$1, []);
3288
+ ReflectApply$LWS(HTMLAnchorElementProtoHrefSetter$LWS, normalizerAnchor$LWS, [url$LWS]);
3289
+ const href$LWS = ReflectApply$LWS(HTMLAnchorElementProtoHrefGetter$LWS, normalizerAnchor$LWS, []);
3290
+ const protocol$LWS = ReflectApply$LWS(HTMLAnchorElementProtoProtocolGetter$LWS, normalizerAnchor$LWS, []);
3065
3291
  const {
3066
3292
  0: requestedUrl$LWS,
3067
3293
  1: requestedFragment$LWS
@@ -3100,17 +3326,17 @@ function updater$LWS(container$LWS, normalizedHref$LWS) {
3100
3326
  }
3101
3327
 
3102
3328
  function blobSanitizer$LWS() {
3103
- return sanitizer$LWS(STRING_BLOB_HTML$LWS, SANITIZER_HOOKS$LWS);
3329
+ return sanitizer$LWS(STRING_BLOB_HTML$LWS, SANITIZER_HOOKS_REGISTRY$LWS);
3104
3330
  }
3105
3331
 
3106
3332
  function svgSanitizer$LWS() {
3107
- return sanitizer$LWS(NODE_SVG$LWS, SANITIZER_HOOKS$LWS);
3333
+ return sanitizer$LWS(NODE_SVG$LWS, SANITIZER_HOOKS_REGISTRY$LWS);
3108
3334
  }
3109
3335
 
3110
3336
  function sanitize$LWS(dirty$LWS) {
3111
3337
  ReflectApply$LWS(ElementProtoInnerHTMLSetter$LWS, htmlTemplate$LWS, [dirty$LWS]);
3112
3338
  const content$LWS = ReflectApply$LWS(HTMLTemplateElementProtoContentGetter$LWS, htmlTemplate$LWS, []);
3113
- const sanitizer$1$LWS = sanitizer$LWS(NODE_ALL_IN_PLACE$LWS, SANITIZER_HOOKS$LWS);
3339
+ const sanitizer$1$LWS = sanitizer$LWS(NODE_ALL_IN_PLACE$LWS, SANITIZER_HOOKS_REGISTRY$LWS);
3114
3340
  sanitizer$1$LWS.sanitize(content$LWS);
3115
3341
  return ReflectApply$LWS(ElementProtoInnerHTMLGetter$LWS, htmlTemplate$LWS, []);
3116
3342
  }
@@ -3132,7 +3358,7 @@ function sanitizeHrefAttributeHook$LWS(node$LWS, data$LWS, _config$LWS) {
3132
3358
  attrName: attrName$LWS
3133
3359
  } = data$LWS;
3134
3360
 
3135
- if (attrValue$LWS && ReflectApply$LWS(StringProtoToUpperCase$LWS, ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, node$LWS, []), []) === 'USE' && ReflectApply$LWS(ArrayProtoIncludes$LWS, ATTRIBUTES$LWS, [attrName$LWS])) {
3361
+ if (attrValue$LWS && ReflectApply$LWS(StringProtoToUpperCase$LWS, ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, node$LWS, []), []) === 'USE' && SANITIZE_ATTRIBUTES_LIST$LWS.includes(attrName$LWS)) {
3136
3362
  data$LWS.attrValue = sanitizeSvgHref$LWS(attrValue$LWS);
3137
3363
  }
3138
3364
 
@@ -3146,9 +3372,9 @@ function sanitizeSvgHref$LWS(url$LWS) {
3146
3372
  return url$LWS;
3147
3373
  }
3148
3374
 
3149
- const normalizedHref$LWS = parseHref$LWS(urlAsString$LWS); // Sanitize only for supported URL_SCHEMES.
3375
+ const normalizedHref$LWS = parseHref$LWS(urlAsString$LWS); // Sanitize only for supported URL_SCHEMES_LIST.
3150
3376
 
3151
- if (ReflectApply$LWS(ArrayProtoIncludes$LWS, URL_SCHEMES$LWS, [normalizedHref$LWS.protocol])) {
3377
+ if (URL_SCHEMES_LIST$LWS.includes(normalizedHref$LWS.protocol)) {
3152
3378
  const container$LWS = ReflectApply$LWS(DocumentProtoGetElementById$LWS, docRef$LWS, [normalizedHref$LWS.normalizedUrl]); // Have we sanitized this URL already?
3153
3379
 
3154
3380
  if (container$LWS && normalizedHref$LWS.normalizedFragment) {
@@ -3194,83 +3420,16 @@ function sanitizeSvgTextReturnDOM$LWS(dirty$LWS) {
3194
3420
  const sanitizer$LWS = svgSanitizer$LWS();
3195
3421
  return sanitizer$LWS.sanitize(dirty$LWS);
3196
3422
  }
3197
- /*! version: 0.16.15 */
3198
-
3199
- /*!
3200
- * Copyright (C) 2019 salesforce.com, inc.
3201
- */
3202
- const ALLOWED_MIME_TYPES$LWS = ['application/octet-stream', 'application/json', 'application/pdf', 'video/', 'audio/', 'image/', 'font/', 'text/plain', 'text/markdown', 'application/zip', 'application/x-bzip', 'application/x-rar-compressed', 'application/x-tar']; // Allow only alphanumeric, '-', '+', and '.' characters.
3203
-
3204
- const validMimeTypeRegExp$LWS = /^[a-z]+\/[a-z0-9.+-]+$/;
3205
-
3206
- function isMIMETypeAllowed$LWS(mimeType$LWS) {
3207
- // avoid MIME types which try to escape using special characters
3208
- // Reason: W-4896359
3209
- if (ReflectApply$LWS(RegExpProtoTest$LWS, validMimeTypeRegExp$LWS, [mimeType$LWS])) {
3210
- for (let i$LWS = 0, {
3211
- length: length$LWS
3212
- } = ALLOWED_MIME_TYPES$LWS; i$LWS < length$LWS; i$LWS += 1) {
3213
- if (ReflectApply$LWS(StringProtoStartsWith$LWS, mimeType$LWS, [ALLOWED_MIME_TYPES$LWS[i$LWS]])) {
3214
- return true;
3215
- }
3216
- }
3217
- }
3218
-
3219
- return false;
3220
- }
3221
-
3222
- const DEFAULT_URL_SCHEMES$LWS = ['http:', 'https:'];
3223
- const DISALLOWED_ENDPOINTS$LWS = ['/aura', '/webruntime'];
3224
- const newlinesAndTabsRegExp$LWS = /[\u2028\u2029\n\r\t]/g;
3225
- const normalizerAnchor$LWS = ReflectApply$LWS(DocumentProtoCreateElement$LWS, document, ['a']);
3226
- const TRUSTED_DOMAINS_REG_EXP$LWS = /\.(force|salesforce|visualforce|documentforce|my\.site|salesforce-sites)\.com$/; // @TODO W-7302311 Make paths and domains configurable
3227
-
3228
- function isValidURL$LWS(parsedURL$LWS) {
3229
- const loweredPathname$LWS = ReflectApply$LWS(StringProtoToLowerCase$LWS, parsedURL$LWS.pathname, []);
3230
-
3231
- for (let i$LWS = 0, {
3232
- length: length$LWS
3233
- } = DISALLOWED_ENDPOINTS$LWS; i$LWS < length$LWS; i$LWS += 1) {
3234
- if (ReflectApply$LWS(StringProtoEndsWith$LWS, loweredPathname$LWS, [DISALLOWED_ENDPOINTS$LWS[i$LWS]]) || ReflectApply$LWS(StringProtoIncludes$LWS, loweredPathname$LWS, [`${DISALLOWED_ENDPOINTS$LWS[i$LWS]}/`])) {
3235
- return false;
3236
- }
3237
- }
3238
-
3239
- return true;
3240
- }
3241
-
3242
- function isValidURLScheme$LWS(url$LWS, schemes$LWS = DEFAULT_URL_SCHEMES$LWS) {
3243
- ReflectApply$LWS(HTMLAnchorElementProtoHrefSetter$LWS, normalizerAnchor$LWS, [url$LWS]);
3244
- return ReflectApply$LWS(ArrayProtoIncludes$LWS, schemes$LWS, [ReflectApply$LWS(HTMLAnchorElementProtoProtocolGetter$LWS, normalizerAnchor$LWS, [])]);
3245
- }
3246
-
3247
- function parseURL$LWS(url$LWS) {
3248
- ReflectApply$LWS(HTMLAnchorElementProtoHrefSetter$LWS, normalizerAnchor$LWS, [sanitizeURLString$LWS(url$LWS)]);
3249
- return {
3250
- normalizedURL: ReflectApply$LWS(HTMLAnchorElementProtoHrefGetter$LWS, normalizerAnchor$LWS, []),
3251
- hostname: ReflectApply$LWS(HTMLAnchorElementProtoHostnameGetter$LWS, normalizerAnchor$LWS, []),
3252
- pathname: WindowDecodeURIComponent$LWS(ReflectApply$LWS(HTMLAnchorElementProtoPathnameGetter$LWS, normalizerAnchor$LWS, []))
3253
- };
3254
- }
3255
-
3256
- function sanitizeURLString$LWS(urlString$LWS) {
3257
- return urlString$LWS === '' ? urlString$LWS : ReflectApply$LWS(StringProtoReplace$LWS, urlString$LWS, [newlinesAndTabsRegExp$LWS, '']);
3258
- }
3259
-
3260
- function sanitizeURLForElement$LWS(url$LWS) {
3261
- ReflectApply$LWS(HTMLAnchorElementProtoHrefSetter$LWS, normalizerAnchor$LWS, [url$LWS]);
3262
- return sanitizeURLString$LWS(ReflectApply$LWS(HTMLAnchorElementProtoHrefGetter$LWS, normalizerAnchor$LWS, []));
3263
- }
3264
- /*! version: 0.16.15 */
3423
+ /*! version: 0.16.18 */
3265
3424
 
3266
3425
  /*!
3267
3426
  * Copyright (C) 2019 salesforce.com, inc.
3268
3427
  */
3269
3428
  const CustomElementRegistryBlockedProperties$LWS = ObjectFreeze$LWS(['define']);
3270
- const globalObjectToDistortionData$LWS = new WeakMapCtor$LWS();
3429
+ const globalObjectToDistortionData$LWS = toSafeWeakMap$LWS$1(new WeakMapCtor$LWS());
3271
3430
 
3272
3431
  function getAttributeDistortion$LWS(globalObject$LWS, key$LWS, element$LWS, attributeName$LWS, attributeNamespace$LWS = NAMESPACE_DEFAULT$LWS) {
3273
- const distortionData$LWS = ReflectApply$LWS(WeakMapProtoGet$LWS, globalObjectToDistortionData$LWS, [globalObject$LWS]); // istanbul ignore if: currently unreachable via tests
3432
+ const distortionData$LWS = globalObjectToDistortionData$LWS.get(globalObject$LWS); // istanbul ignore if: currently unreachable via tests
3274
3433
 
3275
3434
  if (distortionData$LWS === undefined) {
3276
3435
  return undefined;
@@ -3297,7 +3456,7 @@ function getAttributeDistortion$LWS(globalObject$LWS, key$LWS, element$LWS, attr
3297
3456
  return undefined;
3298
3457
  }
3299
3458
 
3300
- const mapIterator$LWS = ReflectApply$LWS(MapProtoEntries$LWS, elementCtorMap$LWS, []); // Using a restricted syntax to avoid accessing .next on iterator.
3459
+ const mapIterator$LWS = elementCtorMap$LWS.entries(); // Using a restricted syntax to avoid accessing .next on iterator.
3301
3460
  // eslint-disable-next-line no-restricted-syntax
3302
3461
 
3303
3462
  for (const {
@@ -3315,7 +3474,7 @@ function getAttributeDistortion$LWS(globalObject$LWS, key$LWS, element$LWS, attr
3315
3474
  }
3316
3475
 
3317
3476
  function createAttributeDistortionsForSandboxKey$LWS(globalObject$LWS, key$LWS, entries$LWS = []) {
3318
- const distortionData$LWS = ReflectApply$LWS(WeakMapProtoGet$LWS, globalObjectToDistortionData$LWS, [globalObject$LWS]); // istanbul ignore else: currently unreachable via tests
3477
+ const distortionData$LWS = globalObjectToDistortionData$LWS.get(globalObject$LWS); // istanbul ignore else: currently unreachable via tests
3319
3478
 
3320
3479
  if (distortionData$LWS) {
3321
3480
  const {
@@ -3353,7 +3512,7 @@ function normalizeNamespace$LWS(ns$LWS) {
3353
3512
  }
3354
3513
 
3355
3514
  function registerElementSetDistortion$LWS(globalObject$LWS, ElementCtor$LWS, attributeName$LWS, attributeNamespace$LWS, distortion$LWS) {
3356
- let distortionData$LWS = ReflectApply$LWS(WeakMapProtoGet$LWS, globalObjectToDistortionData$LWS, [globalObject$LWS]);
3515
+ let distortionData$LWS = globalObjectToDistortionData$LWS.get(globalObject$LWS);
3357
3516
 
3358
3517
  if (distortionData$LWS === undefined) {
3359
3518
  distortionData$LWS = {
@@ -3362,7 +3521,7 @@ function registerElementSetDistortion$LWS(globalObject$LWS, ElementCtor$LWS, att
3362
3521
  __proto__: null
3363
3522
  }
3364
3523
  };
3365
- ReflectApply$LWS(WeakMapProtoSet$LWS, globalObjectToDistortionData$LWS, [globalObject$LWS, distortionData$LWS]);
3524
+ globalObjectToDistortionData$LWS.set(globalObject$LWS, distortionData$LWS);
3366
3525
  }
3367
3526
 
3368
3527
  const loweredAttributeName$LWS = ReflectApply$LWS(StringProtoToLowerCase$LWS, attributeName$LWS, []);
@@ -3383,11 +3542,11 @@ function registerElementSetDistortion$LWS(globalObject$LWS, ElementCtor$LWS, att
3383
3542
  let elementCtorMap$LWS = elementCtorMapByAttributeNamespaceRegistry$LWS[attributeNamespace$LWS];
3384
3543
 
3385
3544
  if (elementCtorMap$LWS === undefined) {
3386
- elementCtorMap$LWS = new MapCtor$LWS();
3545
+ elementCtorMap$LWS = toSafeMap$LWS(new MapCtor$LWS());
3387
3546
  elementCtorMapByAttributeNamespaceRegistry$LWS[attributeNamespace$LWS] = elementCtorMap$LWS;
3388
3547
  }
3389
3548
 
3390
- ReflectApply$LWS(MapProtoSet$LWS, elementCtorMap$LWS, [ElementCtor$LWS, distortion$LWS]);
3549
+ elementCtorMap$LWS.set(ElementCtor$LWS, distortion$LWS);
3391
3550
  return null;
3392
3551
  };
3393
3552
  }
@@ -3426,7 +3585,7 @@ function distortionAttrValueSetter$LWS(globalObject$LWS, options$LWS) {
3426
3585
  function distortionAuraUtilGlobalEval$LWS(globalObject$LWS, options$LWS) {
3427
3586
  var _globalObject$aura$LWS, _globalObject$aura$ut$LWS;
3428
3587
 
3429
- // istanbul ignore next: this expands into a coverage penalty filled expression
3588
+ // istanbul ignore next: optional chaining and nullish coalescing results in an expansion that contains an unreachable "void 0" branch for every occurence of the operator
3430
3589
  const originalGlobalEval$LWS = (_globalObject$aura$LWS = globalObject$LWS.aura) == null ? void 0 : (_globalObject$aura$ut$LWS = _globalObject$aura$LWS.util) == null ? void 0 : _globalObject$aura$ut$LWS.globalEval; // istanbul ignore else: external is the default sandbox type for coverage runs
3431
3590
 
3432
3591
  if (typeof originalGlobalEval$LWS !== 'function') {
@@ -3821,23 +3980,20 @@ function distortionCookieStoreGetAll$LWS(globalObject$LWS, options$LWS) {
3821
3980
  return [originalGetAll$LWS, getAll$LWS];
3822
3981
  }
3823
3982
 
3824
- const restrictionsBySandboxKeyRegistry$LWS = {
3983
+ const restrictedEventTargetRegistryBySandboxKeyRegistry$LWS = {
3825
3984
  __proto__: null
3826
3985
  };
3827
3986
 
3828
3987
  function isEventTargetRestricted$LWS(eventTarget$LWS, eventName$LWS, key$LWS) {
3829
3988
  const {
3830
- [key$LWS]: bySandboxKeyRegistry$LWS
3831
- } = restrictionsBySandboxKeyRegistry$LWS;
3989
+ [key$LWS]: restrictedEventTargetRegistry$LWS
3990
+ } = restrictedEventTargetRegistryBySandboxKeyRegistry$LWS;
3832
3991
 
3833
- if (bySandboxKeyRegistry$LWS === undefined || bySandboxKeyRegistry$LWS[eventName$LWS] === undefined) {
3992
+ if (restrictedEventTargetRegistry$LWS === undefined || restrictedEventTargetRegistry$LWS[eventName$LWS] === undefined) {
3834
3993
  return false;
3835
3994
  }
3836
3995
 
3837
- const {
3838
- constructor: constructor$LWS
3839
- } = eventTarget$LWS;
3840
- return ReflectApply$LWS(SetProtoHas$LWS, bySandboxKeyRegistry$LWS[eventName$LWS], [constructor$LWS]);
3996
+ return restrictedEventTargetRegistry$LWS[eventName$LWS].has(eventTarget$LWS.constructor);
3841
3997
  }
3842
3998
 
3843
3999
  function registerEventTargetRestriction$LWS(EventTargetCtor$LWS, eventName$LWS, key$LWS) {
@@ -3846,16 +4002,16 @@ function registerEventTargetRestriction$LWS(EventTargetCtor$LWS, eventName$LWS,
3846
4002
  }
3847
4003
 
3848
4004
  const {
3849
- [key$LWS]: bySandboxKeyRegistry$LWS = {
4005
+ [key$LWS]: restrictedEventTargetRegistry$LWS = {
3850
4006
  __proto__: null
3851
4007
  }
3852
- } = restrictionsBySandboxKeyRegistry$LWS;
4008
+ } = restrictedEventTargetRegistryBySandboxKeyRegistry$LWS;
3853
4009
  const {
3854
- [eventName$LWS]: byEventName$LWS = new SetCtor$LWS()
3855
- } = bySandboxKeyRegistry$LWS;
3856
- ReflectApply$LWS(SetProtoAdd$LWS, byEventName$LWS, [EventTargetCtor$LWS]);
3857
- bySandboxKeyRegistry$LWS[eventName$LWS] = byEventName$LWS;
3858
- restrictionsBySandboxKeyRegistry$LWS[key$LWS] = bySandboxKeyRegistry$LWS;
4010
+ [eventName$LWS]: restrictedEventTargetCtors$LWS = toSafeSet$LWS(new SetCtor$LWS())
4011
+ } = restrictedEventTargetRegistry$LWS;
4012
+ restrictedEventTargetCtors$LWS.add(EventTargetCtor$LWS);
4013
+ restrictedEventTargetRegistry$LWS[eventName$LWS] = restrictedEventTargetCtors$LWS;
4014
+ restrictedEventTargetRegistryBySandboxKeyRegistry$LWS[key$LWS] = restrictedEventTargetRegistry$LWS;
3859
4015
  }
3860
4016
  /* istanbul ignore next: only available in secure context */
3861
4017
 
@@ -3949,7 +4105,7 @@ function distortionCustomElementRegistryGet$LWS(globalObject$LWS, options$LWS) {
3949
4105
  const {
3950
4106
  CustomElementRegistry: CustomElementRegistry$LWS
3951
4107
  } = globalObject$LWS;
3952
- const LOWERED_NS$LWS = ReflectApply$LWS(StringProtoToLowerCase$LWS, key$LWS, []); // istanbul ignore next: this expands into a coverage penalty filled expression
4108
+ const LOWERED_NS$LWS = ReflectApply$LWS(StringProtoToLowerCase$LWS, key$LWS, []); // istanbul ignore next: optional chaining and nullish coalescing results in an expansion that contains an unreachable "void 0" branch for every occurence of the operator
3953
4109
 
3954
4110
  const originalGet$LWS = CustomElementRegistry$LWS == null ? void 0 : (_CustomElementRegistr$LWS = CustomElementRegistry$LWS.prototype) == null ? void 0 : _CustomElementRegistr$LWS.get; // istanbul ignore if: this is a safety precaution, but currently unreachable via tests
3955
4111
 
@@ -4110,7 +4266,7 @@ function distortionDocumentExecCommand$LWS(globalObject$LWS, options$LWS) {
4110
4266
  const activeElement$LWS = ReflectApply$LWS(originalActiveElement$LWS, this, []);
4111
4267
 
4112
4268
  if (isSharedElement$LWS(activeElement$LWS) && ReflectApply$LWS(originalIsContentEditable$LWS, activeElement$LWS, [])) {
4113
- throw new LockerSecurityError$LWS(`Cannot execute command '${command$LWS}' on ${toSafeTemplateStringValue$LWS(activeElement$LWS.nodeName)}.`);
4269
+ throw new LockerSecurityError$LWS(`Cannot execute command '${command$LWS}' on ${toSafeTemplateStringValue$LWS(ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, activeElement$LWS, []))}.`);
4114
4270
  }
4115
4271
  }
4116
4272
 
@@ -4277,10 +4433,10 @@ function distortionElementAfter$LWS(globalObject$LWS) {
4277
4433
  const argValue$LWS = args$LWS[i$LWS];
4278
4434
 
4279
4435
  if (!isAllowedSharedElementChild$LWS(argValue$LWS)) {
4280
- const nodeNameOrString$LWS = toString$LWS(argValue$LWS instanceof Node$LWS ? argValue$LWS.nodeName :
4436
+ const nodeNameOrString$LWS = toString$LWS(argValue$LWS instanceof Node$LWS ? ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, argValue$LWS, []) :
4281
4437
  /* istanbul ignore next: currently unreachable via tests */
4282
4438
  argValue$LWS);
4283
- throw new LockerSecurityError$LWS(`Cannot insert ${nodeNameOrString$LWS} after ${toSafeTemplateStringValue$LWS(this.nodeName)}.`);
4439
+ throw new LockerSecurityError$LWS(`Cannot insert ${nodeNameOrString$LWS} after ${toSafeTemplateStringValue$LWS(ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, this, []))}.`);
4284
4440
  }
4285
4441
  }
4286
4442
  }
@@ -4299,7 +4455,7 @@ function distortionElementAppend$LWS(globalObject$LWS) {
4299
4455
  const {
4300
4456
  append: originalAppend$LWS
4301
4457
  } = Element$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
4302
- // "globalObject" because future magenta objects (arbitrary user-code created global objects)
4458
+ // "globalObject" because magenta objects (arbitrary user-code created global objects)
4303
4459
  // must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
4304
4460
  // content window). Using the provided "globalObject" here would result in receiving a validator
4305
4461
  // bound to the magenta global object, which would erroneously prevent code from interacting
@@ -4322,10 +4478,10 @@ function distortionElementAppend$LWS(globalObject$LWS) {
4322
4478
  // which is limited to script and link, an exception is thrown.
4323
4479
 
4324
4480
  if (!isAllowedSharedElementChild$LWS(argValue$LWS)) {
4325
- const nodeNameOrString$LWS = toString$LWS(argValue$LWS instanceof Node$LWS ? argValue$LWS.nodeName :
4481
+ const nodeNameOrString$LWS = toString$LWS(argValue$LWS instanceof Node$LWS ? ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, argValue$LWS, []) :
4326
4482
  /* istanbul ignore next: currently unreachable via tests */
4327
4483
  argValue$LWS);
4328
- throw new LockerSecurityError$LWS(`Cannot append ${nodeNameOrString$LWS} to ${toSafeTemplateStringValue$LWS(this.nodeName)}.`);
4484
+ throw new LockerSecurityError$LWS(`Cannot append ${nodeNameOrString$LWS} to ${toSafeTemplateStringValue$LWS(ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, this, []))}.`);
4329
4485
  }
4330
4486
  }
4331
4487
  }
@@ -4382,18 +4538,14 @@ function distortionElementAttachShadow$LWS(globalObject$LWS) {
4382
4538
  return [originalAttachShadow$LWS, attachShadow$LWS];
4383
4539
  }
4384
4540
 
4385
- const namedNodeMapToElementRegistry$LWS = new WeakMapCtor$LWS();
4386
-
4387
- function getPairedElement$LWS(attrInstance$LWS) {
4388
- return ReflectApply$LWS(WeakMapProtoGet$LWS, namedNodeMapToElementRegistry$LWS, [attrInstance$LWS]);
4389
- }
4541
+ const namedNodeMapToElementRegistry$LWS = toSafeWeakMap$LWS$1(new WeakMapCtor$LWS());
4390
4542
 
4391
4543
  function pairElement$LWS(attrInstance$LWS, element$LWS) {
4392
- ReflectApply$LWS(WeakMapProtoSet$LWS, namedNodeMapToElementRegistry$LWS, [attrInstance$LWS, element$LWS]);
4544
+ namedNodeMapToElementRegistry$LWS.set(attrInstance$LWS, element$LWS);
4393
4545
  }
4394
4546
 
4395
4547
  function setNamedItemWithAttr$LWS(globalObject$LWS, key$LWS, originalMethod$LWS, nodeNameMap$LWS, attr$LWS) {
4396
- const element$LWS = getPairedElement$LWS(nodeNameMap$LWS); // istanbul ignore else: nothing to do if there's no element
4548
+ const element$LWS = namedNodeMapToElementRegistry$LWS.get(nodeNameMap$LWS); // istanbul ignore else: nothing to do if there's no element
4397
4549
 
4398
4550
  if (element$LWS) {
4399
4551
  const attrName$LWS = ReflectApply$LWS(AttrProtoNameGetter$LWS, attr$LWS, []);
@@ -4434,7 +4586,7 @@ function distortionElementBefore$LWS(globalObject$LWS) {
4434
4586
  const {
4435
4587
  before: originalBefore$LWS
4436
4588
  } = Element$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
4437
- // "globalObject" because future magenta objects (arbitrary user-code created global objects)
4589
+ // "globalObject" because magenta objects (arbitrary user-code created global objects)
4438
4590
  // must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
4439
4591
  // content window). Using the provided "globalObject" here would result in receiving a validator
4440
4592
  // bound to the magenta global object, which would erroneously prevent code from interacting
@@ -4454,10 +4606,10 @@ function distortionElementBefore$LWS(globalObject$LWS) {
4454
4606
  const argValue$LWS = args$LWS[i$LWS]; // istanbul ignore else: needs default platform behavior test
4455
4607
 
4456
4608
  if (!isAllowedSharedElementChild$LWS(argValue$LWS)) {
4457
- const nodeNameOrString$LWS = toString$LWS(argValue$LWS instanceof Node$LWS ? argValue$LWS.nodeName :
4609
+ const nodeNameOrString$LWS = toString$LWS(argValue$LWS instanceof Node$LWS ? ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, argValue$LWS, []) :
4458
4610
  /* istanbul ignore next: currently unreachable via tests */
4459
4611
  argValue$LWS);
4460
- throw new LockerSecurityError$LWS(`Cannot insert ${nodeNameOrString$LWS} before ${toSafeTemplateStringValue$LWS(this.nodeName)}.`);
4612
+ throw new LockerSecurityError$LWS(`Cannot insert ${nodeNameOrString$LWS} before ${toSafeTemplateStringValue$LWS(ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, this, []))}.`);
4461
4613
  }
4462
4614
  }
4463
4615
  }
@@ -4474,7 +4626,7 @@ function distortionElementInnerHTMLSetter$LWS(globalObject$LWS) {
4474
4626
  SVGElement: SVGElement$LWS
4475
4627
  } = globalObject$LWS;
4476
4628
  const originalInnerHTMLSetter$LWS = ObjectLookupOwnSetter$LWS(Element$LWS.prototype, 'innerHTML'); // IMPORTANT! This validator MUST use the "window" global object, and not the provided
4477
- // "globalObject" because future magenta objects (arbitrary user-code created global objects)
4629
+ // "globalObject" because magenta objects (arbitrary user-code created global objects)
4478
4630
  // must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
4479
4631
  // content window). Using the provided "globalObject" here would result in receiving a validator
4480
4632
  // bound to the magenta global object, which would erroneously prevent code from interacting
@@ -4487,7 +4639,7 @@ function distortionElementInnerHTMLSetter$LWS(globalObject$LWS) {
4487
4639
  function innerHTML$LWS(value$LWS) {
4488
4640
  // istanbul ignore else: needs default platform behavior test
4489
4641
  if (isSharedElement$LWS(this)) {
4490
- throw new LockerSecurityError$LWS(`Cannot set innerHTML of ${this.nodeName}.`);
4642
+ throw new LockerSecurityError$LWS(`Cannot set innerHTML of ${ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, this, [])}.`);
4491
4643
  }
4492
4644
 
4493
4645
  const sanitizedValue$LWS = this instanceof SVGElement$LWS ? sanitizeSvgInnerHtml$LWS(this, value$LWS) : sanitize$LWS(value$LWS);
@@ -4504,7 +4656,7 @@ function distortionElementInsertAdjacentElement$LWS(globalObject$LWS) {
4504
4656
  const {
4505
4657
  insertAdjacentElement: originalInsertAdjacentElement$LWS
4506
4658
  } = Element$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
4507
- // "globalObject" because future magenta objects (arbitrary user-code created global objects)
4659
+ // "globalObject" because magenta objects (arbitrary user-code created global objects)
4508
4660
  // must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
4509
4661
  // content window). Using the provided "globalObject" here would result in receiving a validator
4510
4662
  // bound to the magenta global object, which would erroneously prevent code from interacting
@@ -4523,7 +4675,7 @@ function distortionElementInsertAdjacentElement$LWS(globalObject$LWS) {
4523
4675
  } = args$LWS; // istanbul ignore else: needs default platform behavior test
4524
4676
 
4525
4677
  if (isSharedElement$LWS(this) && !isAllowedSharedElementChild$LWS(element$LWS)) {
4526
- throw new LockerSecurityError$LWS(`Cannot insert ${element$LWS.nodeName} adjacent to ${this.nodeName}.`);
4678
+ throw new LockerSecurityError$LWS(`Cannot insert ${ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, element$LWS, [])} adjacent to ${ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, this, [])}.`);
4527
4679
  }
4528
4680
  }
4529
4681
 
@@ -4540,7 +4692,7 @@ function distortionElementInsertAdjacentHTML$LWS(globalObject$LWS) {
4540
4692
  const {
4541
4693
  insertAdjacentHTML: originalInsertAdjacentHTML$LWS
4542
4694
  } = Element$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
4543
- // "globalObject" because future magenta objects (arbitrary user-code created global objects)
4695
+ // "globalObject" because magenta objects (arbitrary user-code created global objects)
4544
4696
  // must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
4545
4697
  // content window). Using the provided "globalObject" here would result in receiving a validator
4546
4698
  // bound to the magenta global object, which would erroneously prevent code from interacting
@@ -4552,7 +4704,7 @@ function distortionElementInsertAdjacentHTML$LWS(globalObject$LWS) {
4552
4704
 
4553
4705
  function insertAdjacentHTML$LWS(...args$LWS) {
4554
4706
  if (isSharedElement$LWS(this)) {
4555
- throw new LockerSecurityError$LWS(`Cannot insert adjacent HTML to ${toSafeTemplateStringValue$LWS(this.nodeName)}.`);
4707
+ throw new LockerSecurityError$LWS(`Cannot insert adjacent HTML to ${toSafeTemplateStringValue$LWS(ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, this, []))}`);
4556
4708
  } // istanbul ignore else: needs default platform behavior test
4557
4709
 
4558
4710
 
@@ -4584,7 +4736,7 @@ function distortionElementOuterHTMLSetter$LWS(globalObject$LWS) {
4584
4736
  function outerHTML$LWS(value$LWS) {
4585
4737
  // istanbul ignore else: needs default platform behavior test
4586
4738
  if (isSharedElement$LWS(this)) {
4587
- throw new LockerSecurityError$LWS(`Cannot set outerHTML of ${toSafeTemplateStringValue$LWS(this.nodeName)}.`);
4739
+ throw new LockerSecurityError$LWS(`Cannot set outerHTML of ${toSafeTemplateStringValue$LWS(ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, this, []))}.`);
4588
4740
  }
4589
4741
 
4590
4742
  ReflectApply$LWS(originalOuterHTMLSetter$LWS, this, [sanitize$LWS(value$LWS)]);
@@ -4624,10 +4776,10 @@ function distortionElementPrepend$LWS(globalObject$LWS) {
4624
4776
  // which is limited to script and link, an exception is thrown.
4625
4777
 
4626
4778
  if (!isAllowedSharedElementChild$LWS(argValue$LWS)) {
4627
- const nodeNameOrString$LWS = toString$LWS(argValue$LWS instanceof Node$LWS ? argValue$LWS.nodeName :
4779
+ const nodeNameOrString$LWS = toString$LWS(argValue$LWS instanceof Node$LWS ? ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, argValue$LWS, []) :
4628
4780
  /* istanbul ignore next: currently unreachable via tests */
4629
4781
  argValue$LWS);
4630
- throw new LockerSecurityError$LWS(`Cannot prepend ${nodeNameOrString$LWS} to ${toSafeTemplateStringValue$LWS(this.nodeName)}.`);
4782
+ throw new LockerSecurityError$LWS(`Cannot prepend ${nodeNameOrString$LWS} to ${toSafeTemplateStringValue$LWS(ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, this, []))}.`);
4631
4783
  }
4632
4784
  }
4633
4785
  }
@@ -4645,7 +4797,7 @@ function distortionElementRemove$LWS(globalObject$LWS) {
4645
4797
  const {
4646
4798
  remove: originalRemove$LWS
4647
4799
  } = Element$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
4648
- // "globalObject" because future magenta objects (arbitrary user-code created global objects)
4800
+ // "globalObject" because magenta objects (arbitrary user-code created global objects)
4649
4801
  // must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
4650
4802
  // content window). Using the provided "globalObject" here would result in receiving a validator
4651
4803
  // bound to the magenta global object, which would erroneously prevent code from interacting
@@ -4658,7 +4810,7 @@ function distortionElementRemove$LWS(globalObject$LWS) {
4658
4810
  function remove$LWS() {
4659
4811
  // istanbul ignore else: needs default platform behavior test
4660
4812
  if (isSharedElement$LWS(this)) {
4661
- throw new LockerSecurityError$LWS(`Cannot remove ${toSafeTemplateStringValue$LWS(this.nodeName)}.`);
4813
+ throw new LockerSecurityError$LWS(`Cannot remove ${toSafeTemplateStringValue$LWS(ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, this, []))}.`);
4662
4814
  }
4663
4815
 
4664
4816
  ReflectApply$LWS(originalRemove$LWS, this, []);
@@ -4674,7 +4826,7 @@ function distortionElementReplaceChildren$LWS(globalObject$LWS) {
4674
4826
  const {
4675
4827
  replaceChildren: originalReplaceChildren$LWS
4676
4828
  } = Element$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
4677
- // "globalObject" because future magenta objects (arbitrary user-code created global objects)
4829
+ // "globalObject" because magenta objects (arbitrary user-code created global objects)
4678
4830
  // must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
4679
4831
  // content window). Using the provided "globalObject" here would result in receiving a validator
4680
4832
  // bound to the magenta global object, which would erroneously prevent code from interacting
@@ -4687,7 +4839,7 @@ function distortionElementReplaceChildren$LWS(globalObject$LWS) {
4687
4839
  function replaceChildren$LWS(...args$LWS) {
4688
4840
  // istanbul ignore else: needs default platform behavior test
4689
4841
  if (isSharedElement$LWS(this)) {
4690
- throw new LockerSecurityError$LWS(`Cannot replace children of ${toSafeTemplateStringValue$LWS(this.nodeName)}.`);
4842
+ throw new LockerSecurityError$LWS(`Cannot replace children of ${toSafeTemplateStringValue$LWS(ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, this, []))}.`);
4691
4843
  }
4692
4844
 
4693
4845
  return ReflectApply$LWS(originalReplaceChildren$LWS, this, args$LWS);
@@ -4703,7 +4855,7 @@ function distortionElementReplaceWith$LWS(globalObject$LWS) {
4703
4855
  const {
4704
4856
  replaceWith: originalReplaceWith$LWS
4705
4857
  } = Element$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
4706
- // "globalObject" because future magenta objects (arbitrary user-code created global objects)
4858
+ // "globalObject" because magenta objects (arbitrary user-code created global objects)
4707
4859
  // must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
4708
4860
  // content window). Using the provided "globalObject" here would result in receiving a validator
4709
4861
  // bound to the magenta global object, which would erroneously prevent code from interacting
@@ -4716,7 +4868,7 @@ function distortionElementReplaceWith$LWS(globalObject$LWS) {
4716
4868
  function replaceWith$LWS(...args$LWS) {
4717
4869
  // istanbul ignore else: needs default platform behavior test
4718
4870
  if (isSharedElement$LWS(this)) {
4719
- throw new LockerSecurityError$LWS(`Cannot replace ${toSafeTemplateStringValue$LWS(this.nodeName)}.`);
4871
+ throw new LockerSecurityError$LWS(`Cannot replace ${toSafeTemplateStringValue$LWS(ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, this, []))}.`);
4720
4872
  }
4721
4873
 
4722
4874
  return ReflectApply$LWS(originalReplaceWith$LWS, this, args$LWS);
@@ -5180,7 +5332,7 @@ function distortionHTMLElementInnerTextSetter$LWS(globalObject$LWS) {
5180
5332
  if (typeof originalInnerTextSetter$LWS !== 'function') {
5181
5333
  return null;
5182
5334
  } // IMPORTANT! This validator MUST use the "window" global object, and not the provided
5183
- // "globalObject" because future magenta objects (arbitrary user-code created global objects)
5335
+ // "globalObject" because magenta objects (arbitrary user-code created global objects)
5184
5336
  // must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
5185
5337
  // content window). Using the provided "globalObject" here would result in receiving a validator
5186
5338
  // bound to the magenta global object, which would erroneously prevent code from interacting
@@ -5194,7 +5346,7 @@ function distortionHTMLElementInnerTextSetter$LWS(globalObject$LWS) {
5194
5346
  const innerText$LWS = function innerText$LWS(value$LWS) {
5195
5347
  // istanbul ignore else: needs default platform behavior test
5196
5348
  if (isSharedElement$LWS(this)) {
5197
- throw new LockerSecurityError$LWS(`Cannot set innerText of ${toSafeTemplateStringValue$LWS(this.nodeName)}.`);
5349
+ throw new LockerSecurityError$LWS(`Cannot set innerText of ${toSafeTemplateStringValue$LWS(ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, this, []))}.`);
5198
5350
  }
5199
5351
 
5200
5352
  ReflectApply$LWS(originalInnerTextSetter$LWS, this, [value$LWS]);
@@ -5215,7 +5367,7 @@ function distortionHTMLElementOuterTextSetter$LWS(globalObject$LWS) {
5215
5367
  if (typeof originalOuterTextSetter$LWS !== 'function') {
5216
5368
  return null;
5217
5369
  } // IMPORTANT! This validator MUST use the "window" global object, and not the provided
5218
- // "globalObject" because future magenta objects (arbitrary user-code created global objects)
5370
+ // "globalObject" because magenta objects (arbitrary user-code created global objects)
5219
5371
  // must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
5220
5372
  // content window). Using the provided "globalObject" here would result in receiving a validator
5221
5373
  // bound to the magenta global object, which would erroneously prevent code from interacting
@@ -5229,7 +5381,7 @@ function distortionHTMLElementOuterTextSetter$LWS(globalObject$LWS) {
5229
5381
  const outerText$LWS = function outerText$LWS(value$LWS) {
5230
5382
  // istanbul ignore else: needs default platform behavior test
5231
5383
  if (isSharedElement$LWS(this)) {
5232
- throw new LockerSecurityError$LWS(`Cannot set outerText of ${toSafeTemplateStringValue$LWS(this.nodeName)}.`);
5384
+ throw new LockerSecurityError$LWS(`Cannot set outerText of ${toSafeTemplateStringValue$LWS(ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, this, []))}.`);
5233
5385
  }
5234
5386
 
5235
5387
  ReflectApply$LWS(originalOuterTextSetter$LWS, this, [value$LWS]);
@@ -5717,7 +5869,7 @@ function distortionNodeInsertBefore$LWS(globalObject$LWS) {
5717
5869
  const {
5718
5870
  insertBefore: originalInsertBefore$LWS
5719
5871
  } = Node$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
5720
- // "globalObject" because future magenta objects (arbitrary user-code created global objects)
5872
+ // "globalObject" because magenta objects (arbitrary user-code created global objects)
5721
5873
  // must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
5722
5874
  // content window). Using the provided "globalObject" here would result in receiving a validator
5723
5875
  // bound to the magenta global object, which would erroneously prevent code from interacting
@@ -5736,11 +5888,11 @@ function distortionNodeInsertBefore$LWS(globalObject$LWS) {
5736
5888
  // istanbul ignore else: needs default platform behavior test
5737
5889
  if (args$LWS.length) {
5738
5890
  const {
5739
- 0: argValue$LWS
5891
+ 0: node$LWS
5740
5892
  } = args$LWS; // istanbul ignore else: needs default platform behavior test
5741
5893
 
5742
- if (isSharedElement$LWS(this) && !isAllowedSharedElementChild$LWS(argValue$LWS)) {
5743
- throw new LockerSecurityError$LWS(`Cannot insert child ${toSafeTemplateStringValue$LWS(argValue$LWS.nodeName)} into ${toSafeTemplateStringValue$LWS(this.nodeName)},`);
5894
+ if (isSharedElement$LWS(this) && !isAllowedSharedElementChild$LWS(node$LWS)) {
5895
+ throw new LockerSecurityError$LWS(`Cannot insert child ${toSafeTemplateStringValue$LWS(ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, node$LWS, []))} into ${toSafeTemplateStringValue$LWS(ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, this, []))},`);
5744
5896
  }
5745
5897
  }
5746
5898
 
@@ -5796,7 +5948,7 @@ function distortionNodeRemoveChild$LWS(globalObject$LWS) {
5796
5948
  const {
5797
5949
  removeChild: originalRemoveChild$LWS
5798
5950
  } = Node$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
5799
- // "globalObject" because future magenta objects (arbitrary user-code created global objects)
5951
+ // "globalObject" because magenta objects (arbitrary user-code created global objects)
5800
5952
  // must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
5801
5953
  // content window). Using the provided "globalObject" here would result in receiving a validator
5802
5954
  // bound to the magenta global object, which would erroneously prevent code from interacting
@@ -5812,11 +5964,11 @@ function distortionNodeRemoveChild$LWS(globalObject$LWS) {
5812
5964
  // istanbul ignore else: needs default platform behavior test
5813
5965
  if (args$LWS.length) {
5814
5966
  const {
5815
- 0: argValue$LWS
5967
+ 0: child$LWS
5816
5968
  } = args$LWS; // istanbul ignore else: needs default platform behavior test
5817
5969
 
5818
- if (isSharedElement$LWS(argValue$LWS)) {
5819
- throw new LockerSecurityError$LWS(`Cannot remove ${toSafeTemplateStringValue$LWS(argValue$LWS.nodeName)}.`);
5970
+ if (isSharedElement$LWS(child$LWS)) {
5971
+ throw new LockerSecurityError$LWS(`Cannot remove ${toSafeTemplateStringValue$LWS(ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, child$LWS, []))}.`);
5820
5972
  }
5821
5973
  } // istanbul ignore next: needs default platform behavior test
5822
5974
 
@@ -5834,7 +5986,7 @@ function distortionNodeReplaceChild$LWS(globalObject$LWS) {
5834
5986
  const {
5835
5987
  replaceChild: originalReplaceChild$LWS
5836
5988
  } = Node$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
5837
- // "globalObject" because future magenta objects (arbitrary user-code created global objects)
5989
+ // "globalObject" because magenta objects (arbitrary user-code created global objects)
5838
5990
  // must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
5839
5991
  // content window). Using the provided "globalObject" here would result in receiving a validator
5840
5992
  // bound to the magenta global object, which would erroneously prevent code from interacting
@@ -5853,11 +6005,11 @@ function distortionNodeReplaceChild$LWS(globalObject$LWS) {
5853
6005
 
5854
6006
  if (length$LWS > 1) {
5855
6007
  const {
5856
- 1: argValue$LWS
6008
+ 1: child$LWS
5857
6009
  } = args$LWS; // istanbul ignore else: needs default platform behavior test
5858
6010
 
5859
- if (isSharedElement$LWS(argValue$LWS)) {
5860
- throw new LockerSecurityError$LWS(`Cannot replace ${toSafeTemplateStringValue$LWS(argValue$LWS.nodeName)}.`);
6011
+ if (isSharedElement$LWS(child$LWS)) {
6012
+ throw new LockerSecurityError$LWS(`Cannot replace ${toSafeTemplateStringValue$LWS(ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, child$LWS, []))}.`);
5861
6013
  }
5862
6014
  } // istanbul ignore next: needs default platform behavior test
5863
6015
 
@@ -5916,7 +6068,7 @@ function distortionNodeTextContentSetter$LWS(globalObject$LWS, options$LWS) {
5916
6068
 
5917
6069
 
5918
6070
  if (isSharedElement$LWS(this)) {
5919
- throw new LockerSecurityError$LWS(`Cannot set textContent of ${toSafeTemplateStringValue$LWS(this.nodeName)} elements.`);
6071
+ throw new LockerSecurityError$LWS(`Cannot set textContent of ${toSafeTemplateStringValue$LWS(ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, this, []))} elements.`);
5920
6072
  }
5921
6073
 
5922
6074
  return ReflectApply$LWS(originalTextContentSetter$LWS, this, [valueAsString$LWS]);
@@ -6045,12 +6197,12 @@ function distortionRangeInsertNode$LWS(globalObject$LWS) {
6045
6197
  // which is limited to script and link, an exception is thrown.
6046
6198
  if (args$LWS.length) {
6047
6199
  const {
6048
- 0: argValue$LWS
6200
+ 0: node$LWS
6049
6201
  } = args$LWS;
6050
6202
  const commonAncestorContainer$LWS = ReflectApply$LWS(originalCommonAncestorContainerGetter$LWS, this, []);
6051
6203
 
6052
- if (commonAncestorContainer$LWS && isSharedElement$LWS(commonAncestorContainer$LWS) && !isAllowedSharedElementChild$LWS(argValue$LWS)) {
6053
- throw new LockerSecurityError$LWS(`Cannot insert a new child node of ${commonAncestorContainer$LWS.nodeName}.`);
6204
+ if (commonAncestorContainer$LWS && isSharedElement$LWS(commonAncestorContainer$LWS) && !isAllowedSharedElementChild$LWS(node$LWS)) {
6205
+ throw new LockerSecurityError$LWS(`Cannot insert a new child node of ${ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, commonAncestorContainer$LWS, [])}.`);
6054
6206
  }
6055
6207
  }
6056
6208
 
@@ -6063,7 +6215,7 @@ function distortionRangeInsertNode$LWS(globalObject$LWS) {
6063
6215
  function distortionServiceWorkerContainer$LWS(globalObject$LWS) {
6064
6216
  const {
6065
6217
  ServiceWorkerContainer: ServiceWorkerContainer$LWS
6066
- } = globalObject$LWS;
6218
+ } = globalObject$LWS; // istanbul ignore if: this is a safety precaution, but currently unreachable via tests
6067
6219
 
6068
6220
  if (typeof ServiceWorkerContainer$LWS !== 'function') {
6069
6221
  return null;
@@ -6104,7 +6256,7 @@ function distortionShadowRootModeGetter$LWS(globalObject$LWS) {
6104
6256
  function distortionSharedWorkerCtor$LWS(globalObject$LWS) {
6105
6257
  const {
6106
6258
  SharedWorker: originalSharedWorkerCtor$LWS
6107
- } = globalObject$LWS;
6259
+ } = globalObject$LWS; // istanbul ignore if: this is a safety precaution, but currently unreachable via tests
6108
6260
 
6109
6261
  if (typeof originalSharedWorkerCtor$LWS !== 'function') {
6110
6262
  return null;
@@ -6120,7 +6272,7 @@ function distortionSharedWorkerCtor$LWS(globalObject$LWS) {
6120
6272
  function distortionSharedWorkerProto$LWS(globalObject$LWS) {
6121
6273
  const {
6122
6274
  SharedWorker: SharedWorker$LWS
6123
- } = globalObject$LWS;
6275
+ } = globalObject$LWS; // istanbul ignore if: this is a safety precaution, but currently unreachable via tests
6124
6276
 
6125
6277
  if (typeof SharedWorker$LWS !== 'function') {
6126
6278
  return null;
@@ -6172,10 +6324,10 @@ function processStorageKeysForNamespace$LWS(storageKeysForNamespace$LWS, storage
6172
6324
  return keys$LWS;
6173
6325
  }
6174
6326
 
6175
- const meta$LWS = new WeakMap();
6327
+ const storageToMetaMap$LWS = toSafeWeakMap$LWS$1(new WeakMapCtor$LWS());
6176
6328
 
6177
6329
  function getStorageMetaOrThrowInvalidInvocation$LWS(storage$LWS) {
6178
- const storageMeta$LWS = ReflectApply$LWS(WeakMapProtoGet$LWS, meta$LWS, [storage$LWS]); // istanbul ignore if: currently unreachable via tests
6330
+ const storageMeta$LWS = storageToMetaMap$LWS.get(storage$LWS); // istanbul ignore if: currently unreachable via tests
6179
6331
 
6180
6332
  if (storageMeta$LWS === undefined) {
6181
6333
  throw new LockerSecurityError$LWS('Illegal invocation');
@@ -6308,6 +6460,7 @@ function createStorageProxy$LWS(s$LWS) {
6308
6460
  }
6309
6461
 
6310
6462
  class PatchedStorage$LWS {
6463
+ // istanbul ignore next: currently unreachable via tests
6311
6464
  constructor() {
6312
6465
  throw new LockerSecurityError$LWS('Illegal constructor');
6313
6466
  }
@@ -6412,8 +6565,8 @@ function createStorage$LWS(storage$LWS, storageRootKey$LWS) {
6412
6565
  storage: storage$LWS,
6413
6566
  storageRootKey: storageRootKey$LWS
6414
6567
  };
6415
- ReflectApply$LWS(WeakMapProtoSet$LWS, meta$LWS, [proxy$LWS, storageMeta$LWS]);
6416
- ReflectApply$LWS(WeakMapProtoSet$LWS, meta$LWS, [target$LWS, storageMeta$LWS]);
6568
+ storageToMetaMap$LWS.set(proxy$LWS, storageMeta$LWS);
6569
+ storageToMetaMap$LWS.set(target$LWS, storageMeta$LWS);
6417
6570
  return proxy$LWS;
6418
6571
  }
6419
6572
 
@@ -6437,7 +6590,8 @@ function createDistortionStorageFactory$LWS(storageName$LWS) {
6437
6590
 
6438
6591
  try {
6439
6592
  originalStorageObject$LWS = globalObject$LWS[storageName$LWS]; // eslint-disable-next-line no-empty
6440
- } catch (_unused$LWS) {}
6593
+ } catch (_unused$LWS) {} // istanbul ignore if: currently unreachable via tests
6594
+
6441
6595
 
6442
6596
  if (!isObject$LWS(originalStorageObject$LWS)) {
6443
6597
  return null;
@@ -6667,10 +6821,10 @@ function distortionSVGSetElementAttributeNameAttribute$LWS(globalObject$LWS, opt
6667
6821
 
6668
6822
  function distortAttribute$LWS(el$LWS, attrName$LWS) {
6669
6823
  if (ReflectApply$LWS(ElementProtoHasAttribute$LWS, el$LWS, [attrName$LWS])) {
6670
- const originalAttributeValue$LWS = ReflectApply$LWS(ElementProtoGetAttribute$LWS, el$LWS, [attrName$LWS]);
6824
+ const originalAttributeValue$LWS = ReflectApply$LWS(ElementProtoGetAttribute$LWS, el$LWS, [attrName$LWS]); // istanbul ignore else: needs default platform behavior test
6671
6825
 
6672
6826
  if (originalAttributeValue$LWS) {
6673
- const distortion$LWS = getAttributeDistortion$LWS(globalObject$LWS, key$LWS, el$LWS, attrName$LWS);
6827
+ const distortion$LWS = getAttributeDistortion$LWS(globalObject$LWS, key$LWS, el$LWS, attrName$LWS); // istanbul ignore else: needs default platform behavior test
6674
6828
 
6675
6829
  if (distortion$LWS) {
6676
6830
  ReflectApply$LWS(distortion$LWS, el$LWS, [originalAttributeValue$LWS]);
@@ -6722,7 +6876,9 @@ function createDistortionHrefAttributeFactory$LWS(attributeName$LWS) {
6722
6876
  } = Element.prototype;
6723
6877
 
6724
6878
  function xlinkNamespaceDistortion$LWS(value$LWS) {
6725
- const returnValue$LWS = value$LWS === null || value$LWS === undefined || value$LWS === '' ? value$LWS : sanitizeSvgHref$LWS(value$LWS);
6879
+ const returnValue$LWS = value$LWS === null || value$LWS === undefined || value$LWS === '' ?
6880
+ /* istanbul ignore next: needs default platform behavior test */
6881
+ value$LWS : sanitizeSvgHref$LWS(value$LWS);
6726
6882
  ReflectApply$LWS(originalSetAttributeNS$LWS, this, [NAMESPACE_XLINK$LWS, attributeName$LWS, returnValue$LWS]);
6727
6883
  }
6728
6884
 
@@ -6730,7 +6886,9 @@ function createDistortionHrefAttributeFactory$LWS(attributeName$LWS) {
6730
6886
 
6731
6887
  if (attributeName$LWS === 'href') {
6732
6888
  const defaultNamespaceDistortion$LWS = function defaultNamespaceDistortion$LWS(value$LWS) {
6733
- const returnValue$LWS = value$LWS === null || value$LWS === undefined || value$LWS === '' ? value$LWS : sanitizeSvgHref$LWS(value$LWS);
6889
+ const returnValue$LWS = value$LWS === null || value$LWS === undefined || value$LWS === '' ?
6890
+ /* istanbul ignore next: needs default platform behavior test */
6891
+ value$LWS : sanitizeSvgHref$LWS(value$LWS);
6734
6892
  ReflectApply$LWS(originalSetAttribute$LWS, this, [attributeName$LWS, returnValue$LWS]);
6735
6893
  };
6736
6894
 
@@ -6747,7 +6905,7 @@ const distortionSVGUseElementXlinkHrefAttribute$LWS = createDistortionHrefAttrib
6747
6905
  function distortionTrustedTypePolicyFactoryCreatePolicy$LWS(globalObject$LWS) {
6748
6906
  const {
6749
6907
  TrustedTypePolicyFactory: TrustedTypePolicyFactory$LWS
6750
- } = globalObject$LWS;
6908
+ } = globalObject$LWS; // istanbul ignore if: this is a safety precaution, but currently unreachable via tests
6751
6909
 
6752
6910
  if (typeof TrustedTypePolicyFactory$LWS !== 'function') {
6753
6911
  return null;
@@ -6758,11 +6916,14 @@ function distortionTrustedTypePolicyFactoryCreatePolicy$LWS(globalObject$LWS) {
6758
6916
  } = TrustedTypePolicyFactory$LWS.prototype;
6759
6917
 
6760
6918
  const createPolicy$LWS = function createPolicy$LWS(...args$LWS) {
6761
- const name$LWS = args$LWS.length ? args$LWS[0] : undefined;
6919
+ const name$LWS = args$LWS.length ? args$LWS[0] :
6920
+ /* istanbul ignore next: needs default platform behavior test */
6921
+ undefined; // istanbul ignore else: needs default platform behavior test
6762
6922
 
6763
6923
  if (name$LWS === 'default') {
6764
6924
  throw new LockerSecurityError$LWS(`Cannot create TrustedTypePolicy with '${name$LWS}' policy name.`);
6765
- }
6925
+ } // istanbul ignore next: needs default platform behavior test
6926
+
6766
6927
 
6767
6928
  return ReflectApply$LWS(originalCreatePolicy$LWS, this, args$LWS);
6768
6929
  };
@@ -6770,7 +6931,7 @@ function distortionTrustedTypePolicyFactoryCreatePolicy$LWS(globalObject$LWS) {
6770
6931
  return [originalCreatePolicy$LWS, createPolicy$LWS];
6771
6932
  }
6772
6933
 
6773
- const HTML_MIME_TYPES$LWS = ['text/html', 'image/svg+xml', 'text/xml'];
6934
+ const HTML_MIME_TYPES_LIST$LWS = toSafeArray$LWS(['text/html', 'image/svg+xml', 'text/xml']);
6774
6935
 
6775
6936
  function distortionURLCreateObjectURL$LWS(globalObject$LWS) {
6776
6937
  const {
@@ -6810,7 +6971,7 @@ function distortionURLCreateObjectURL$LWS(globalObject$LWS) {
6810
6971
 
6811
6972
  const loweredBlobType$LWS = ReflectApply$LWS(StringProtoToLowerCase$LWS, blobType$LWS, []);
6812
6973
 
6813
- if (ReflectApply$LWS(ArrayProtoIncludes$LWS, HTML_MIME_TYPES$LWS, [loweredBlobType$LWS])) {
6974
+ if (HTML_MIME_TYPES_LIST$LWS.includes(loweredBlobType$LWS)) {
6814
6975
  const blobSize$LWS = ReflectApply$LWS(BlobProtoSizeGetter$LWS, blobObject$LWS, []);
6815
6976
  const normalizedBlob$LWS = ReflectApply$LWS(BlobProtoSlice$LWS, blobObject$LWS, [0, blobSize$LWS, `${loweredBlobType$LWS};charset=utf-8`]);
6816
6977
  URLRevokeObjectURL$LWS(outURL$LWS);
@@ -6936,7 +7097,7 @@ class ShadowFramesPrototypeHandler$LWS extends BaseFrameHandler$LWS {}
6936
7097
  ObjectFreeze$LWS(ShadowFramesPrototypeHandler$LWS.prototype);
6937
7098
 
6938
7099
  function distortionWindowFramesGetter$LWS(globalObject$LWS) {
6939
- const originalWindowFramesGetter$LWS = ObjectLookupOwnGetter$LWS(globalObject$LWS, 'frames');
7100
+ const originalWindowFramesGetter$LWS = ObjectLookupOwnGetter$LWS(globalObject$LWS, 'frames'); // istanbul ignore if: this is a safety precaution, but currently unreachable via tests
6940
7101
 
6941
7102
  if (typeof originalWindowFramesGetter$LWS !== 'function') {
6942
7103
  return null;
@@ -7433,7 +7594,7 @@ const HTMLScriptElementBlockedProperties$LWS = ObjectFreeze$LWS(['nonce']);
7433
7594
  const SVGElementBlockedAttributes$LWS = ObjectFreeze$LWS(['nonce']);
7434
7595
  const SVGElementBlockedProperties$LWS = ObjectFreeze$LWS(['nonce']);
7435
7596
  const XSLTProcessorBlockedProperties$LWS = ObjectFreeze$LWS(['transformToDocument', 'transformToFragment']);
7436
- /*! version: 0.16.15 */
7597
+ /*! version: 0.16.18 */
7437
7598
 
7438
7599
  /*!
7439
7600
  * Copyright (C) 2021 salesforce.com, inc.
@@ -7536,10 +7697,10 @@ class DefaultInstrumentation$LWS {
7536
7697
 
7537
7698
 
7538
7699
  const defaultInstrumentation$LWS = new DefaultInstrumentation$LWS();
7539
- /*! version: 0.16.15 */
7700
+ /*! version: 0.16.18 */
7540
7701
 
7541
- const $t=SymbolFor$LWS("@@lockerDebugMode");if(LOCKER_UNMINIFIED_FLAG$LWS){let t=!0;const x=100,O=5,_=100,A=_/2,B="display: inline-block; margin-bottom: 3px; margin-left: -3px; word-break: break-all; word-wrap: wrap;",E={style:"margin-left:11px; margin-bottom: 3px;"},F={style:"display: inline-block; margin-left:12px; word-break: break-all; word-wrap: wrap;"},j={style:"color: #9d288c; font-weight: bold"},H={style:"color: #b17ab0"},M={style:"color: #16239f"},k={style:"color: #236d25"},R={style:"color: #606367"},C={style:"color: #b82619"},formatValue$LWS=function(t){if(null==t)return ["span",R,`${t}`];if("boolean"==typeof t)return ["span",M,t];if("number"==typeof t)return NumberIsFinite$LWS(t)?["span",M,t]:["span",M,(t>=0?"":"-")+"Infinity"];if("string"==typeof t){let e=t;const{length:r}=e;if(r>_){const t=ReflectApply$LWS(StringProtoSlice$LWS,e,[0,A]),o=ReflectApply$LWS(StringProtoSlice$LWS,e,[r-A-1,r]);e=t+CHAR_ELLIPSIS$LWS+o;}return ["span",C,JSONStringify$LWS(e)]}return ArrayIsArray$LWS(t)?["span",{},`Array(${t.length})`]:isObject$LWS(t)?["span",{},`{${CHAR_ELLIPSIS$LWS}}`]:["span",C,StringCtor$LWS(t)]},formatHeader$LWS=function(t,r={}){const{t:o}=r,a=[];let b=0;o&&(a[b++]=["span",j,r.o],a[b++]=["span",{},": "]);const P=ReflectApply$LWS(ObjectProtoToString$LWS,t,[]);let w=ObjectKeys$LWS(t);if(P===TO_STRING_BRAND_SYMBOL$LWS)ReflectApply$LWS(ArrayProtoIncludes$LWS,w,["description"])||ReflectApply$LWS(ArrayProtoUnshift$LWS,w,["description"]);else if(P===TO_STRING_BRAND_STRING$LWS){const{length:e}=t;w=ReflectApply$LWS(ArrayProtoFilter$LWS,w,[t=>{const r="string"==typeof t?+t:-1;return r<0||r>=e||!NumberIsInteger$LWS(r)}]);}const{length:T}=w;if(ArrayIsArray$LWS(t)){a[b++]=["span",o?R:{},`(${t.length}) [`];for(let e=0,r=MathMin$LWS(T,x);e<r;e+=1){const r=t[w[e]];a[b++]=["span",{},e?", ":""],a[b++]=formatValue$LWS(r);}return T>x&&(a[b++]=["span",null,["span",{},`, ${CHAR_ELLIPSIS$LWS}`]]),a[b++]=["span",{},"]"],a}let m,_="{";switch(P){case TO_STRING_BRAND_BIG_INT$LWS:case TO_STRING_BRAND_BOOLEAN$LWS:case TO_STRING_BRAND_NUMBER$LWS:case TO_STRING_BRAND_STRING$LWS:case TO_STRING_BRAND_SYMBOL$LWS:{let e=M;P===TO_STRING_BRAND_BIG_INT$LWS?e=k:P===TO_STRING_BRAND_SYMBOL$LWS&&(e=C),_=`${ReflectApply$LWS(StringProtoSlice$LWS,P,[8,-1])} {`,m=["span",e,`${StringCtor$LWS(getNearMembraneSerializedValue$LWS(t))}`];break}}a[b++]=["span",{},_],m&&(a[b++]=m,T&&(a[b++]=["span",{},", "]));for(let e=0,r=MathMin$LWS(T,O);e<r;e+=1){const r=w[e],o=t[r];a[b++]=["span",{},e?", ":""],a[b++]=["span",R,r],a[b++]=["span",{},": "],a[b++]=formatValue$LWS(o);}return T>O&&(a[b++]=["span",null,["span",{},`, ${CHAR_ELLIPSIS$LWS}`]]),a[b++]=["span",{},"}"],a},formatBody$LWS=function(t){const r=ObjectKeys$LWS(t),o=ReflectOwnKeys$LWS(t);ArrayIsArray$LWS(t)||ReflectApply$LWS(ArrayProtoSort$LWS,o,[]);const a=[];let i=0;for(let e=0,{length:s}=o;e<s;e+=1){const s=o[e],l=t[s];if(isObject$LWS(l))a[i++]=["div",{},["object",{object:l,config:{o:StringCtor$LWS(s),t:!0}}]];else {let t=j;"symbol"!=typeof s&&ReflectApply$LWS(ArrayProtoIncludes$LWS,r,[s])||(t=H),a[i++]=["div",E,["span",t,StringCtor$LWS(s)],["span",{},": "],formatValue$LWS(l)];}}return a};let{devtoolsFormatters:I}=window;ArrayIsArray$LWS(I)||(I=[],ReflectDefineProperty$LWS(window,"devtoolsFormatters",{__proto__:null,configurable:!0,value:I,writable:!0})),I[I.length]={header(e,i={}){if(t&&(t=!1,ReflectDefineProperty$LWS(window,$t,{__proto__:null,configurable:!0,value:!0,writable:!0})),!isNearMembrane$LWS(e))return null;const s=["div",{style:`${B}${i.t?"":"font-style: italic;"}`}];return ReflectApply$LWS(ArrayProtoPush$LWS,s,formatHeader$LWS(e,i)),["div",{},s]},hasBody:()=>!0,body(t){const e=["div",F];return ReflectApply$LWS(ArrayProtoPush$LWS,e,formatBody$LWS(t)),e}};}const vt=new WeakMap;function createMembraneMarshall$LWS(t){var e,r,o;const n=Array,a=ArrayBuffer,i=Error,s=Number,l=Object,c=Proxy,u=Reflect,f=RegExp,y=String,d=Symbol,p=TypeError,S=WeakMap,{for:h,toStringTag:g}=d,{apply:L,construct:$,defineProperty:v,deleteProperty:W,get:b,getOwnPropertyDescriptor:P,getPrototypeOf:w,has:T,isExtensible:m,ownKeys:x,preventExtensions:O,set:_,setPrototypeOf:A}=u,{assign:B,defineProperties:E,freeze:F,getOwnPropertyDescriptor:j,getOwnPropertyDescriptors:H,isFrozen:M,isSealed:k,keys:R,prototype:C,seal:I}=l,{hasOwnProperty:D,propertyIsEnumerable:N,toString:G}=C,{hasOwn:K}=l,{__defineGetter__:V,__defineSetter__:U,__lookupGetter__:z,__lookupSetter__:X}=C,Z="function"==typeof K?K:(t,e)=>L(D,t,[e]),Q="object"!=typeof t||null===t,J=Q?void 0:h("@@lockerDebugMode"),Y=Q?void 0:h("@@lockerLiveValue"),q=Q?void 0:h("@@lockerNearMembraneSerializedValue"),tt=Q?void 0:h("@@lockerNearMembrane"),et=h("@@lockerNearMembraneUndefinedValue"),LOCKER_UNMINIFIED_FLAG$LWS=`${()=>
7702
+ const Lt=SymbolFor$LWS("@@lockerDebugMode");if(LOCKER_UNMINIFIED_FLAG$LWS){let t=!0;const x=100,O=5,_=100,A=_/2,B="display: inline-block; margin-bottom: 3px; margin-left: -3px; word-break: break-all; word-wrap: wrap;",E={style:"margin-left:11px; margin-bottom: 3px;"},j={style:"display: inline-block; margin-left:12px; word-break: break-all; word-wrap: wrap;"},F={style:"color: #9d288c; font-weight: bold"},M={style:"color: #b17ab0"},H={style:"color: #16239f"},k={style:"color: #236d25"},R={style:"color: #606367"},C={style:"color: #b82619"},formatValue$LWS=function(t){if(null==t)return ["span",R,`${t}`];if("boolean"==typeof t)return ["span",H,t];if("number"==typeof t)return NumberIsFinite$LWS(t)?["span",H,t]:["span",H,(t>=0?"":"-")+"Infinity"];if("string"==typeof t){let e=t;const{length:o}=e;if(o>_){const t=ReflectApply$LWS(StringProtoSlice$LWS,e,[0,A]),r=ReflectApply$LWS(StringProtoSlice$LWS,e,[o-A-1,o]);e=t+CHAR_ELLIPSIS$LWS+r;}return ["span",C,JSONStringify$LWS(e)]}return ArrayIsArray$LWS(t)?["span",{},`Array(${t.length})`]:isObject$LWS(t)?["span",{},`{${CHAR_ELLIPSIS$LWS}}`]:["span",C,StringCtor$LWS(t)]},formatHeader$LWS=function(t,o={}){const{t:r}=o,a=[];let b=0;r&&(a[b++]=["span",F,o.o],a[b++]=["span",{},": "]);const P=ReflectApply$LWS(ObjectProtoToString$LWS,t,[]);let T=ObjectKeys$LWS(t);if(P===TO_STRING_BRAND_SYMBOL$LWS)ReflectApply$LWS(ArrayProtoIncludes$LWS,T,["description"])||ReflectApply$LWS(ArrayProtoUnshift$LWS,T,["description"]);else if(P===TO_STRING_BRAND_STRING$LWS){const{length:e}=t;T=ReflectApply$LWS(ArrayProtoFilter$LWS,T,[t=>{const o="string"==typeof t?+t:-1;return o<0||o>=e||!NumberIsInteger$LWS(o)}]);}const{length:w}=T;if(ArrayIsArray$LWS(t)){a[b++]=["span",r?R:{},`(${t.length}) [`];for(let e=0,o=MathMin$LWS(w,x);e<o;e+=1){const o=t[T[e]];a[b++]=["span",{},e?", ":""],a[b++]=formatValue$LWS(o);}return w>x&&(a[b++]=["span",null,["span",{},`, ${CHAR_ELLIPSIS$LWS}`]]),a[b++]=["span",{},"]"],a}let m,_="{";switch(P){case TO_STRING_BRAND_BIG_INT$LWS:case TO_STRING_BRAND_BOOLEAN$LWS:case TO_STRING_BRAND_NUMBER$LWS:case TO_STRING_BRAND_STRING$LWS:case TO_STRING_BRAND_SYMBOL$LWS:{let e=H;P===TO_STRING_BRAND_BIG_INT$LWS?e=k:P===TO_STRING_BRAND_SYMBOL$LWS&&(e=C),_=`${ReflectApply$LWS(StringProtoSlice$LWS,P,[8,-1])} {`,m=["span",e,`${StringCtor$LWS(getNearMembraneSerializedValue$LWS(t))}`];break}}a[b++]=["span",{},_],m&&(a[b++]=m,w&&(a[b++]=["span",{},", "]));for(let e=0,o=MathMin$LWS(w,O);e<o;e+=1){const o=T[e],r=t[o];a[b++]=["span",{},e?", ":""],a[b++]=["span",R,o],a[b++]=["span",{},": "],a[b++]=formatValue$LWS(r);}return w>O&&(a[b++]=["span",null,["span",{},`, ${CHAR_ELLIPSIS$LWS}`]]),a[b++]=["span",{},"}"],a},formatBody$LWS=function(t){const o=ObjectKeys$LWS(t),r=ReflectOwnKeys$LWS(t);ArrayIsArray$LWS(t)||ReflectApply$LWS(ArrayProtoSort$LWS,r,[]);const a=[];let i=0;for(let e=0,{length:s}=r;e<s;e+=1){const s=r[e],l=t[s];if(isObject$LWS(l))a[i++]=["div",{},["object",{object:l,config:{o:StringCtor$LWS(s),t:!0}}]];else {let t=F;"symbol"!=typeof s&&ReflectApply$LWS(ArrayProtoIncludes$LWS,o,[s])||(t=M),a[i++]=["div",E,["span",t,StringCtor$LWS(s)],["span",{},": "],formatValue$LWS(l)];}}return a};let{devtoolsFormatters:I}=window;ArrayIsArray$LWS(I)||(I=[],ReflectDefineProperty$LWS(window,"devtoolsFormatters",{__proto__:null,configurable:!0,value:I,writable:!0})),I[I.length]={header(e,i={}){if(t&&(t=!1,ReflectDefineProperty$LWS(window,Lt,{__proto__:null,configurable:!0,value:!0,writable:!0})),!isNearMembrane$LWS(e))return null;const s=["div",{style:`${B}${i.t?"":"font-style: italic;"}`}];return ReflectApply$LWS(ArrayProtoPush$LWS,s,formatHeader$LWS(e,i)),["div",{},s]},hasBody:()=>!0,body(t){const e=["div",j];return ReflectApply$LWS(ArrayProtoPush$LWS,e,formatBody$LWS(t)),e}};}const $t=Array,gt=WeakMap,{setPrototypeOf:Wt}=Reflect,{iterator:vt,toStringTag:bt,unscopables:Pt}=Symbol,{prototype:Tt}=$t,{at:wt,concat:mt,copyWithin:xt,entries:Ot,every:_t,fill:At,filter:Bt,find:Et,findIndex:jt,flat:Ft,flatMap:Mt,forEach:Ht,includes:kt,indexOf:Rt,join:Ct,keys:It,lastIndexOf:Dt,map:Nt,pop:Kt,push:Gt,reduce:Vt,reduceRight:Ut,reverse:zt,shift:Xt,slice:Zt,some:Qt,sort:Jt,splice:Yt,toLocaleString:qt,toString:te,unshift:ee,values:oe,[vt]:re}=Tt,ne=Object.freeze(Object.assign({__proto__:null},Tt[Pt])),{prototype:ae}=gt,{delete:ie,get:se,has:le,set:ce,[bt]:ue}=ae;function toSafeWeakMap$LWS(t){return Wt(t,null),t.constructor=gt,t.delete=ie,t.get=se,t.has=le,t.set=ce,t[bt]=ue,Wt(t,ae),t}const fe=toSafeWeakMap$LWS(new WeakMap);function createMembraneMarshall$LWS(t){var e,o,r;const n=Array,a=ArrayBuffer,i=Error,s=Number,l=Object,c=Proxy,u=Reflect,f=RegExp,y=String,d=Symbol,p=TypeError,S=WeakMap,{for:h,toStringTag:L}=d,{apply:$,construct:g,defineProperty:W,deleteProperty:v,get:b,getOwnPropertyDescriptor:P,getPrototypeOf:T,has:w,isExtensible:m,ownKeys:x,preventExtensions:O,set:_,setPrototypeOf:A}=u,{assign:B,defineProperties:E,freeze:j,getOwnPropertyDescriptor:F,getOwnPropertyDescriptors:M,isFrozen:H,isSealed:k,keys:R,prototype:C,seal:I}=l,{hasOwnProperty:D,propertyIsEnumerable:N,toString:K}=C,{hasOwn:G}=l,{__defineGetter__:V,__defineSetter__:U,__lookupGetter__:z,__lookupSetter__:X}=C,Z="function"==typeof G?G:(t,e)=>$(D,t,[e]),Q="object"!=typeof t||null===t,J=Q?void 0:h("@@lockerDebugMode"),Y=Q?void 0:h("@@lockerLiveValue"),q=Q?void 0:h("@@lockerNearMembraneSerializedValue"),tt=Q?void 0:h("@@lockerNearMembrane"),et=h("@@lockerNearMembraneUndefinedValue"),LOCKER_UNMINIFIED_FLAG$LWS=`${()=>
7542
7703
  /* $LWS */
7543
- 1}`.includes("*"),rt=LOCKER_UNMINIFIED_FLAG$LWS&&!Q,ot="function"==typeof BigInt,nt=Q?/\w*$/:void 0,{isArray:at}=n,{includes:it,indexOf:st,slice:lt}=n.prototype,{isView:ct}=a,ut=Q?void 0:L(z,a.prototype,["byteLength"]),ft=ot?BigInt.prototype.valueOf:void 0,{valueOf:yt}=Boolean.prototype,{toString:dt}=i.prototype,{bind:pt,toString:St}=Function.prototype,{stringify:ht}=JSON,{isInteger:gt}=s,{valueOf:Lt}=s.prototype,{revocable:$t}=c,{prototype:Wt}=f,{exec:bt,test:Pt,toString:wt}=Wt,Tt=Q?null!=(e=L(z,Wt,["flags"]))?e:function(){const t=L(wt,this,[]);return L(bt,nt,[t])[0]}:void 0,mt=L(z,Wt,["source"]),{replace:xt,slice:Ot,valueOf:_t}=y.prototype,{toString:At,valueOf:Bt}=d.prototype,Et=L(z,Uint8Array.prototype.__proto__,["length"]),{get:Ft,set:jt}=S.prototype,Ht=Q||"object"!=typeof console||null===console?void 0:console,Mt=null==Ht?void 0:Ht.info,kt=Q?eval:void 0,Rt=null!=(r=null!=(o=null!=t?t:"undefined"!=typeof globalThis?globalThis:void 0)?o:"undefined"!=typeof self?self:void 0)?r:(v(C,"globalThis",{__proto__:null,configurable:!0,get(){return W(C,"globalThis"),null!=this?this:self}}),globalThis);let Ct=!1,It=!1;function alwaysFalse$LWS(){return !1}function identity$LWS(t){return t}const Dt=LOCKER_UNMINIFIED_FLAG$LWS?()=>{if(Ct)return;Ct=!0;const t=(()=>{try{var t;i.prepareStackTrace=(t,e)=>e;const e=(new i).stack;return W(i,"prepareStackTrace"),at(e)&&e.length>0?null==(t=e[0])?void 0:t.constructor:void 0}catch(t){}})();if("function"!=typeof t)return;const{getEvalOrigin:e,getFunctionName:r,toString:o}=t.prototype,n=new f(`${L(xt,"$LWS",[/[\\^$.*+?()[\]{}|]/g,"\\$&"])}(?=\\.|$)`);try{i.prepareStackTrace=function(t,a){return function(t,a){let i="";try{i=L(dt,t,[]);}catch(t){i="<error>";}let s=!1;for(let t=0,{length:l}=a;t<l;t+=1){const l=a[t],c=L(r,l,[]);let u=!1;if("string"==typeof c&&"eval"!==c&&L(Pt,n,[c])&&(u=!0),!u){const t=L(e,l,[]);"string"==typeof t&&L(Pt,n,[t])&&(u=!0);}if(u)s||(s=!0,i+="\n at LWS");else {s=!1;try{i+=`\n at ${L(o,l,[])}`;}catch(t){}}}return i}(t,a)};}catch(t){}try{const{stackTraceLimit:t}=i;("number"!=typeof t||t<20)&&(i.stackTraceLimit=20);}catch(t){}}:noop$LWS;function noop$LWS(){}const Nt=Q?t=>L(ft,t,[]):noop$LWS,Gt=Q?t=>L(yt,t,[]):noop$LWS,Kt=Q?t=>L(Lt,t,[]):noop$LWS,Vt=Q?t=>{if(t!==Wt){const e=L(mt,t,[]);return ht({__proto__:null,flags:L(Tt,t,[]),source:e})}}:noop$LWS,Ut=Q?t=>L(_t,t,[]):noop$LWS,zt=Q?t=>L(Bt,t,[]):noop$LWS,Xt=Q?t=>{switch(L(G,t,[])){case"[object Boolean]":return Gt(t);case"[object Number]":return Kt(t);case"[object RegExp]":return Vt(t);case"[object String]":return Ut(t);case"[object Object]":try{return zt(t)}catch(t){}if(ot)try{return Nt(t)}catch(t){}default:return}}:noop$LWS,Zt=Q?t=>{try{return zt(t)}catch(t){}if(ot)try{return Nt(t)}catch(t){}try{return Gt(t)}catch(t){}try{return Kt(t)}catch(t){}try{return Vt(t)}catch(t){}try{return Ut(t)}catch(t){}}:noop$LWS;return function(t,e,r){const{distortionCallback:o=identity$LWS,instrumentation:a}=B({__proto__:null},r),i=!Q&&"object"==typeof a&&null!==a,s={__proto__:null,0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,n:void 0},f={__proto__:null,0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,n:void 0},d=new S,h=new S,D=i?a.startActivity:void 0;let K,ot,nt,ft,yt,dt,ht,Lt,bt,Pt,wt,Tt,xt,_t,Bt,Ct,Nt,Gt,Kt,Vt,Ut,zt,Qt,Jt,Yt,qt,te,ee,re,oe=!1,ne=0;const ae=Q?(t,e,r)=>{r[e]=!1;const o=getTransferablePointer$LWS(t);let n;try{Lt(o,e,(t,e,r,o,a,i,s)=>{n=createDescriptorFromMeta$LWS(e,r,o,a,i,s);});}catch(t){var a;const e=null!=(a=re)?a:t;throw re=void 0,e}n?v(t,e,n):W(t,e);}:noop$LWS;let ie=rt?()=>{try{Z(Rt,J)&&(ie=()=>!0,Dt(),Ut());}catch(t){ie=alwaysFalse$LWS;}return !1}:alwaysFalse$LWS;function copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(t,e){let r,o,n;i&&(r=D("copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget"));try{o=qt(t,(...t)=>{const r={};for(let e=0,{length:o}=t;e<o;e+=7){r[t[e]]=createDescriptorFromMeta$LWS(t[e+1],t[e+2],t[e+3],t[e+4],t[e+5],t[e+6]);}E(e,r);});}catch(t){var a;const e=null!=(a=re)?a:t;throw re=void 0,i&&r.error(e),e}"function"==typeof o?(o(),n=re,re=void 0):n=null,A(e,n),i&&r.stop();}function createApplyOrConstructTrapForZeroOrMoreArgs$LWS(t){const e=1&t,r=`Reflect.${e?"apply":"construct"}()`,o=e?s:f,n=e?nt:ft;return function(a,s,l){ne=t;const c=e?l:s,{length:u}=c;var f;if(0!==u)return this[null!=(f=o[u])?f:o.n](a,s,l);let y;i&&(y=D(r));const{i:d}=this,p=e?s:l;let S;try{const t=n(d,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p);"function"==typeof t?(t(),S=re,re=void 0):S=t;}catch(t){var h;const e=null!=(h=re)?h:t;throw re=void 0,i&&y.error(e),e}return i&&y.stop(),S}}function createApplyOrConstructTrapForOneOrMoreArgs$LWS(t){const e=1&t,r=`Reflect.${e?"apply":"construct"}(1 arg)`,o=e?s:f,n=e?nt:ft;return function(a,s,l){ne=t;const c=e?l:s,{length:u}=c;var f;if(1!==u)return this[null!=(f=o[u])?f:o.n](a,s,l);let y;i&&(y=D(r));const{i:d}=this,p=e?s:l;let S;try{const{0:t}=c,e=n(d,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t);"function"==typeof e?(e(),S=re,re=void 0):S=e;}catch(t){var h;const e=null!=(h=re)?h:t;throw re=void 0,i&&y.error(e),e}return i&&y.stop(),S}}function createApplyOrConstructTrapForTwoOrMoreArgs$LWS(t){const e=1&t,r=`Reflect.${e?"apply":"construct"}(2 args)`,o=e?s:f,n=e?nt:ft;return function(a,s,l){ne=t;const c=e?l:s,{length:u}=c;var f;if(2!==u)return this[null!=(f=o[u])?f:o.n](a,s,l);let y;i&&(y=D(r));const{i:d}=this,p=e?s:l;let S;try{const{0:t,1:e}=c,r=n(d,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e);"function"==typeof r?(r(),S=re,re=void 0):S=r;}catch(t){var h;const e=null!=(h=re)?h:t;throw re=void 0,i&&y.error(e),e}return i&&y.stop(),S}}function createApplyOrConstructTrapForThreeOrMoreArgs$LWS(t){const e=1&t,r=`Reflect.${e?"apply":"construct"}(3 args)`,o=e?s:f,n=e?nt:ft;return function(a,s,l){ne=t;const c=e?l:s,{length:u}=c;var f;if(3!==u)return this[null!=(f=o[u])?f:o.n](a,s,l);let y;i&&(y=D(r));const{i:d}=this,p=e?s:l;let S;try{const{0:t,1:e,2:r}=c,o=n(d,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e,"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):"undefined"==typeof r?void 0:r);"function"==typeof o?(o(),S=re,re=void 0):S=o;}catch(t){var h;const e=null!=(h=re)?h:t;throw re=void 0,i&&y.error(e),e}return i&&y.stop(),S}}function createApplyOrConstructTrapForFourOrMoreArgs$LWS(t){const e=1&t,r=`Reflect.${e?"apply":"construct"}(4 args)`,o=e?s:f,n=e?nt:ft;return function(a,s,l){ne=t;const c=e?l:s,{length:u}=c;var f;if(4!==u)return this[null!=(f=o[u])?f:o.n](a,s,l);let y;i&&(y=D(r));const{i:d}=this,p=e?s:l;let S;try{const{0:t,1:e,2:r,3:o}=c,a=n(d,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e,"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):"undefined"==typeof r?void 0:r,"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):"undefined"==typeof o?void 0:o);"function"==typeof a?(a(),S=re,re=void 0):S=a;}catch(t){var h;const e=null!=(h=re)?h:t;throw re=void 0,i&&y.error(e),e}return i&&y.stop(),S}}function createApplyOrConstructTrapForFiveOrMoreArgs$LWS(t){const e=1&t,r=`Reflect.${e?"apply":"construct"}(5 args)`,o=e?s:f,n=e?nt:ft;return function(a,s,l){ne=t;const c=e?l:s,{length:u}=c;var f;if(5!==u)return this[null!=(f=o[u])?f:o.n](a,s,l);let y;i&&(y=D(r));const{i:d}=this,p=e?s:l;let S;try{const{0:t,1:e,2:r,3:o,4:a}=c,i=n(d,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e,"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):"undefined"==typeof r?void 0:r,"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):"undefined"==typeof o?void 0:o,"object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):"undefined"==typeof a?void 0:a);"function"==typeof i?(i(),S=re,re=void 0):S=i;}catch(t){var h;const e=null!=(h=re)?h:t;throw re=void 0,i&&y.error(e),e}return i&&y.stop(),S}}function createApplyOrConstructTrapForAnyNumberOfArgs$LWS(t){const e=1&t,r=e?"apply":"construct",o=e?nt:ft;return function(a,s,l){ne=t;const{i:c}=this,u=e?l:s,{length:f}=u;let y;i&&(y=D(`Reflect.${r}(${f} args)`));const d=e?s:l;let p=2;const S=new n(f+p);let h;S[0]=c;try{S[1]="object"==typeof d&&null!==d||"function"==typeof d?getTransferablePointer$LWS(d):"undefined"==typeof d?void 0:d;for(let t=0;t<f;t+=1){const e=u[t];S[p++]="object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e;}const t=L(o,void 0,S);"function"==typeof t?(t(),h=re,re=void 0):h=t;}catch(t){var g;const e=null!=(g=re)?g:t;throw re=void 0,i&&y.error(e),e}return i&&y.stop(),h}}function createDescriptorFromMeta$LWS(t,e,r,o,n,a){const i={__proto__:null};if(t!==et&&(i.configurable=t),e!==et&&(i.enumerable=e),r!==et&&(i.writable=r),n!==et){let t;"function"==typeof n&&(n(),t=re,re=void 0),i.get=t;}if(a!==et){let t;"function"==typeof a&&(a(),t=re,re=void 0),i.set=t;}if(o!==et){let t;"function"==typeof o?(o(),t=re,re=void 0):t=o,i.value=t;}return i}function createPointer$LWS(t){return ()=>{re=t;}}const se=Q?t=>{let e=L(Ft,d,[t]);if(void 0===e){const r=Nt(getTransferablePointer$LWS(t));"function"==typeof r&&(r(),e=re,re=void 0,e&&L(jt,d,[t,e]));}return e}:noop$LWS;function getTransferablePointer$LWS(t,e=ot){let r=L(Ft,h,[t]);if(r)return r;const n=Q?t:o(t);if(n!==t&&typeof n!=typeof t)throw new p(`Invalid distortion ${function(t){if("string"==typeof t)return t;try{if("object"==typeof t&&null!==t){const e=L(G,t,[]);return "[object Symbol]"===e?L(At,t,[]):e}return "function"==typeof t?L(St,t,[]):y(t)}catch(t){}return "[Object Unknown]"}(t)}.`);let a=!0,i=0,s=0,l=16;if("function"==typeof n){a=!1,i=0,l=4;try{"prototype"in n||(l|=8);const e=P(t,"length");if(e){A(e,null);const{value:t}=e;"number"==typeof t&&(i=t);}void 0;}catch(t){a=!0;}}else if(ct(n)){a=!1,l=2;try{s=L(Et,n,[]),l|=32;}catch(t){a=!0;}}if(a)try{at(n)&&(l=1);}catch(t){l=64;}return r=e(createPointer$LWS(n),l,i,"",s),L(jt,h,[t,r]),r}const le=Q?t=>{if(It)return;It=!0;const e=at(t)&&t.length>0,r=e?{__proto__:null}:void 0,o=e?(e,r)=>L(it,t,[r])?{configurable:!1,enumerable:L(N,e,[r]),get:n(r),set:void 0}:P(e,r):void 0,n=e?t=>{let e=r[t];return void 0===e&&(e=L(pt,s,[]),r[t]=e),e}:void 0,a=e?(e,r)=>L(it,t,[r])?n(r):L(z,e,[r]):void 0,i=e?(e,r)=>L(it,t,[r])?void 0:L(X,e,[r]):void 0,s=e?()=>Rt:void 0,wrapDefineAccessOrProperty$LWS=t=>{const{length:e}=t,r=2===e;return new c(t,{apply(o,n,a){if(a.length>=e){const t=r?n:a[0];if("object"==typeof t&&null!==t||"function"==typeof t){const e=r?a[0]:a[1],o=se(t);null!=o&&o[e]&&t[e];}}return L(t,n,a)}})},wrapLookupAccessor$LWS=(t,r)=>new c(t,{apply(o,n,a){if(a.length&&("object"==typeof n&&null!==n||"function"==typeof n)){const{0:t}=a,o=se(n);if(null!=o&&o[t]&&n[t],e&&n===Rt)return r(n,t)}return L(t,n,a)}}),wrapGetOwnPropertyDescriptor$LWS=t=>new c(t,{apply(r,n,a){if(a.length>1){const{0:t,1:r}=a;if("object"==typeof t&&null!==t||"function"==typeof t){const n=se(t);if(null!=n&&n[r]&&t[r],e&&t===Rt)return o(t,r)}}return L(t,n,a)}});try{u.defineProperty=wrapDefineAccessOrProperty$LWS(v);}catch(t){}try{u.getOwnPropertyDescriptor=wrapGetOwnPropertyDescriptor$LWS(P);}catch(t){}try{l.getOwnPropertyDescriptor=wrapGetOwnPropertyDescriptor$LWS(j);}catch(t){}try{l.getOwnPropertyDescriptors=new c(f=H,{apply(t,r,n){const a=n.length?n[0]:void 0;if(("object"!=typeof a||null===a)&&"function"!=typeof a)return L(f,r,n);const i=se(a),s=a===Rt&&e,l=s?{}:L(f,r,n);if(!s&&void 0===i)return l;const c=x(s?a:l);for(let t=0,{length:e}=c;t<e;t+=1){const e=c[t],r=!(null==i||!i[e]);if(r&&a[e],r||s){const t=s?o(a,e):P(a,e);t?l[e]=t:s||W(l,e);}}return l}});}catch(t){}var f;try{C.__defineGetter__=wrapDefineAccessOrProperty$LWS(V);}catch(t){}try{C.__defineSetter__=wrapDefineAccessOrProperty$LWS(U);}catch(t){}try{C.__lookupGetter__=wrapLookupAccessor$LWS(z,a);}catch(t){}try{C.__lookupSetter__=wrapLookupAccessor$LWS(X,i);}catch(t){}}:noop$LWS;function lookupForeignDescriptor$LWS(t,e,r){let o,n,a;i&&(o=D("lookupForeignDescriptor"));try{n=ee(t,r,(t,o,n,i,s,l,c)=>{a=createDescriptorFromMeta$LWS(o,n,i,s,l,c),!1===a.configurable&&v(e,r,a);});}catch(t){var s;const e=null!=(s=re)?s:t;throw re=void 0,i&&o.error(e),e}if(void 0===a){let t=null;for("function"==typeof n&&(n(),t=re,re=void 0);t;){if(a=P(t,r),a){A(a,null);break}t=w(t);}}return i&&o.stop(),a}function pushErrorAcrossBoundary$LWS(t){if(rt&&ie(),"object"==typeof t&&null!==t||"function"==typeof t){getTransferablePointer$LWS(t,K)();}return t}function pushTarget$LWS(t,e,r,o,n){const{proxy:a}=new BoundaryProxyHandler$LWS(t,e,r,o,n);return L(jt,h,[a,t]),createPointer$LWS(a)}const ce=Q?(t,e)=>{L(jt,d,[t,e]),Yt(getTransferablePointer$LWS(t),getTransferablePointer$LWS(e));}:noop$LWS;class BoundaryProxyHandler$LWS{constructor(t,e,r,o,n){let a;const i=1&e,l=4&e;a=l?8&e?()=>{}:function(){}:i?[]:{};const{proxy:c,revoke:u}=$t(a,this);var y,d;(this.i=t,this.l=e,this.u=n,this.p=(t,e,r,o,n,a,i)=>{v(this.S,t,createDescriptorFromMeta$LWS(e,r,o,n,a,i));},this.proxy=c,this.revoke=u,this.serializedValue=void 0,this.S=a,this.h="Object",l)&&(this.apply=this[null!=(y=s[r])?y:s.n],this.construct=this[null!=(d=f[r])?d:f.n]);if(this.defineProperty=BoundaryProxyHandler$LWS.g,this.deleteProperty=BoundaryProxyHandler$LWS.L,this.isExtensible=BoundaryProxyHandler$LWS.$,this.getOwnPropertyDescriptor=BoundaryProxyHandler$LWS.v,this.getPrototypeOf=BoundaryProxyHandler$LWS.W,this.get=32&e?BoundaryProxyHandler$LWS.hybridGetTrapForTypedArray:BoundaryProxyHandler$LWS.P,this.has=BoundaryProxyHandler$LWS.T,this.ownKeys=BoundaryProxyHandler$LWS.m,this.preventExtensions=BoundaryProxyHandler$LWS.O,this.setPrototypeOf=BoundaryProxyHandler$LWS._,this.set=BoundaryProxyHandler$LWS.A,64&e)F(this),this.revoke();else if(Q)(i||2&e)&&this.B();else {if(16&e){let t=et;L(V,this,["serializedValue",()=>(t===et&&(t=Jt(this.i)),t)]);}F(this);}}B(){this.deleteProperty=BoundaryProxyHandler$LWS.F,this.defineProperty=BoundaryProxyHandler$LWS.j,this.preventExtensions=BoundaryProxyHandler$LWS.H,this.set=BoundaryProxyHandler$LWS.M,this.setPrototypeOf=BoundaryProxyHandler$LWS.k,F(this);}R(){this.defineProperty=BoundaryProxyHandler$LWS.C,this.deleteProperty=BoundaryProxyHandler$LWS.I,this.get=BoundaryProxyHandler$LWS.D,this.getOwnPropertyDescriptor=BoundaryProxyHandler$LWS.N,this.getPrototypeOf=BoundaryProxyHandler$LWS.G,this.has=BoundaryProxyHandler$LWS.K,this.isExtensible=BoundaryProxyHandler$LWS.V,this.ownKeys=BoundaryProxyHandler$LWS.U,this.preventExtensions=BoundaryProxyHandler$LWS.X,this.set=BoundaryProxyHandler$LWS.Z,this.setPrototypeOf=BoundaryProxyHandler$LWS.J;const{i:t,l:e,S:r}=this,o=Gt(t);if(8&o)return F(this),this.revoke(),void 0;try{copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(t,r);}catch(e){if(Qt(t))return F(this),this.revoke(),void 0}if(16&e&&!T(r,g)){let e="Object";try{e=Kt(t);}catch(t){}this.h=e;}4&o?F(r):(2&o?I(r):1&o&&O(r),LOCKER_UNMINIFIED_FLAG$LWS&&Ct("Mutations on the membrane of an object originating outside of the sandbox will not be reflected on the object itself:",t)),F(this);}static j(t,e,r){let o;ne=4,i&&(o=D("Reflect.defineProperty"));const{i:n,p:a}=this,s=r;A(s,null);const{get:l,set:c,value:u}=s,f="value"in s?"object"==typeof u&&null!==u||"function"==typeof u?getTransferablePointer$LWS(u):"undefined"==typeof u?void 0:u:et,y="get"in s?"object"==typeof l&&null!==l||"function"==typeof l?getTransferablePointer$LWS(l):l:et,d="set"in s?"object"==typeof c&&null!==c||"function"==typeof c?getTransferablePointer$LWS(c):c:et;let p=!1;try{p=yt(n,e,"configurable"in s?!!s.configurable:et,"enumerable"in s?!!s.enumerable:et,"writable"in s?!!s.writable:et,f,y,d,a);}catch(t){var S;const e=null!=(S=re)?S:t;throw re=void 0,i&&o.error(e),e}return i&&o.stop(),p}static F(t,e){let r;ne=8,i&&(r=D("Reflect.deleteProperty"));let o=!1;try{o=dt(this.i,e);}catch(t){var n;const e=null!=(n=re)?n:t;throw re=void 0,i&&r.error(e),e}return i&&r.stop(),o}static Y(t){let e,r,o;ne=64,i&&(e=D("Reflect.getPrototypeOf"));try{r=bt(this.i);}catch(t){var n;const r=null!=(n=re)?n:t;throw re=void 0,i&&e.error(r),r}return "function"==typeof r?(r(),o=re,re=void 0):o=null,i&&e.stop(),o}static q(t){let e;ne=256,i&&(e=D("Reflect.isExtensible"));const{S:r}=this;let o=!1;if(m(r)){const{i:t}=this;try{o=wt(t);}catch(t){var n;const r=null!=(n=re)?n:t;throw re=void 0,i&&e.error(r),r}o||(copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(t,r),O(r));}return i&&e.stop(),o}static tt(t){let e,r;ne=512,i&&(e=D("Reflect.ownKeys"));try{Tt(this.i,(...t)=>{r=t;});}catch(t){var o;const r=null!=(o=re)?o:t;throw re=void 0,i&&e.error(r),r}return i&&e.stop(),r||[]}static et(t,e){let r;ne=32,i&&(r=D("Reflect.getOwnPropertyDescriptor"));const{i:o,S:n}=this;let a;try{Lt(o,e,(t,r,o,i,s,l,c)=>{a=createDescriptorFromMeta$LWS(r,o,i,s,l,c),!1===a.configurable&&v(n,e,a);});}catch(t){var s;const e=null!=(s=re)?s:t;throw re=void 0,i&&r.error(e),e}return i&&r.stop(),a}static H(t){let e;ne=1024,i&&(e=D("Reflect.preventExtensions"));const{i:r,S:o}=this;let n=!0;if(m(o)){let t=0;try{t=xt(r);}catch(t){var a;const r=null!=(a=re)?a:t;throw re=void 0,i&&e.error(r),r}1&t||(copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(r,o),O(o)),n=!(2&t);}return i&&e.stop(),n}static k(t,e){let r;ne=4096,i&&(r=D("Reflect.setPrototypeOf"));const o=e?getTransferablePointer$LWS(e):e;let n=!1;try{n=Bt(this.i,o);}catch(t){var a;const e=null!=(a=re)?a:t;throw re=void 0,i&&r.error(e),e}return i&&r.stop(),n}static M(t,e,r,o){ne=2048;const{i:n,proxy:a,S:s}=this;"undefined"==typeof r&&(r=void 0),"undefined"==typeof o&&(o=a);const l=a===o;let c;i&&(c=D(l?"Reflect.set":"passthruForeignTraversedSet"));let u=!1;try{u=l?_t(n,e,"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):r,n):function(t,e,r,o,n){const a=lookupForeignDescriptor$LWS(t,e,r);if(a){if("get"in a||"set"in a){const{set:t}=a;return !!t&&(L(t,n,[o]),!0)}if(!1===a.writable)return !1}if(("object"!=typeof n||null===n)&&"function"!=typeof n)return !1;const i=P(n,r);return i?(A(i,null),!("get"in i)&&!("set"in i)&&!1!==i.writable&&(v(n,r,{__proto__:null,value:o}),!0)):v(n,r,{__proto__:null,configurable:!0,enumerable:!0,value:o,writable:!0})}(n,s,e,r,o);}catch(t){var f;const e=null!=(f=re)?f:t;throw re=void 0,i&&c.error(e),e}return i&&c.stop(),u}}BoundaryProxyHandler$LWS.rt=Q?function(t,e,r){let o;i&&(o=D("hybridGetTrap"));const{i:n,l:a,S:s}=this,l=lookupForeignDescriptor$LWS(n,s,e);let c;if(l){const{get:t,value:e}=l;c=t?L(t,r,[]):e;}else if(e===g&&16&a){let t;try{t=Kt(n);}catch(t){var u;const e=null!=(u=re)?u:t;throw re=void 0,i&&o.error(e),e}"Object"!==t&&(c=t);}return i&&o.stop(),c}:noop$LWS,BoundaryProxyHandler$LWS.hybridGetTrapForTypedArray=Q?function(t,e,r){let o;i&&(o=D("hybridGetTrapForTypedArray"));const{i:n,u:a,S:s}=this,l="string"==typeof e?+e:-1;let c;if(l>-1&&l<a&&gt(l))try{c=Vt(n,e);}catch(t){var u;const e=null!=(u=re)?u:t;throw re=void 0,i&&o.error(e),e}else {const t=lookupForeignDescriptor$LWS(n,s,e);if(t){const{get:e,value:o}=t;c=e?L(e,r,[]):o;}}return i&&o.stop(),c}:noop$LWS,BoundaryProxyHandler$LWS.ot=Q?function(t,e){let r,o;i&&(r=D("hybridHasTrap"));try{o=te(this.i,e);}catch(t){var n;const e=null!=(n=re)?n:t;throw re=void 0,i&&r.error(e),e}let a=!1;if(!0===o)a=!0;else {let t=null;for("function"==typeof o&&(o(),t=re,re=void 0);t;){if(Z(t,e)){a=!0;break}t=w(t);}}return i&&r.stop(),a}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.nt=Q?noop$LWS:function(t,e,r){if(oe&&(oe=128===ne),ne=16,oe){if(e===tt)return !0;if(e===q)return this.serializedValue}let o;i&&(o=D("Reflect.get"));const{i:n,l:a,proxy:s}=this;"undefined"==typeof r&&(r=s);const l=s===r?n:"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):r;let c;try{const t=ht(n,a,e,l);"function"==typeof t?(t(),c=re,re=void 0):c=t;}catch(t){var u;const e=null!=(u=re)?u:t;throw re=void 0,i&&o.error(e),e}return i&&o.stop(),c},BoundaryProxyHandler$LWS.it=Q?alwaysFalse$LWS:function(t,e){let r,o;ne=128,i&&(r=D("Reflect.has"));try{o=Pt(this.i,e);}catch(t){var n;const e=null!=(n=re)?n:t;throw re=void 0,i&&r.error(e),e}return oe=!o&&(e===tt||e===q),i&&r.stop(),o},BoundaryProxyHandler$LWS.st=Q?function(t,e,r){return zt(this.i)?this.B():this.R(),this.defineProperty(t,e,r)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.lt=Q?function(t,e){return zt(this.i)?this.B():this.R(),this.deleteProperty(t,e)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.ct=Q?function(t){return zt(this.i)?this.B():this.R(),this.preventExtensions(t)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.ut=Q?function(t,e){return zt(this.i)?this.B():this.R(),this.setPrototypeOf(t,e)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.ft=Q?function(t,e,r,o){return zt(this.i)?this.B():this.R(),this.set(t,e,r,o)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.C=Q?v:alwaysFalse$LWS,BoundaryProxyHandler$LWS.I=Q?W:alwaysFalse$LWS,BoundaryProxyHandler$LWS.N=Q?P:noop$LWS,BoundaryProxyHandler$LWS.G=Q?w:()=>null,BoundaryProxyHandler$LWS.D=Q?function(t,e,r){const{l:o,h:n}=this,a=b(t,e,r);return void 0===a&&e===g&&16&o&&"Object"!==n&&!T(t,e)?n:a}:noop$LWS,BoundaryProxyHandler$LWS.K=Q?T:alwaysFalse$LWS,BoundaryProxyHandler$LWS.V=Q?m:alwaysFalse$LWS,BoundaryProxyHandler$LWS.U=Q?x:()=>[],BoundaryProxyHandler$LWS.X=Q?O:alwaysFalse$LWS,BoundaryProxyHandler$LWS.J=Q?A:alwaysFalse$LWS,BoundaryProxyHandler$LWS.Z=Q?_:alwaysFalse$LWS,BoundaryProxyHandler$LWS.g=Q?BoundaryProxyHandler$LWS.st:BoundaryProxyHandler$LWS.j,BoundaryProxyHandler$LWS.L=Q?BoundaryProxyHandler$LWS.lt:BoundaryProxyHandler$LWS.F,BoundaryProxyHandler$LWS.v=BoundaryProxyHandler$LWS.et,BoundaryProxyHandler$LWS.W=BoundaryProxyHandler$LWS.Y,BoundaryProxyHandler$LWS.P=Q?BoundaryProxyHandler$LWS.rt:BoundaryProxyHandler$LWS.nt,BoundaryProxyHandler$LWS.T=Q?BoundaryProxyHandler$LWS.ot:BoundaryProxyHandler$LWS.it,BoundaryProxyHandler$LWS.$=BoundaryProxyHandler$LWS.q,BoundaryProxyHandler$LWS.m=BoundaryProxyHandler$LWS.tt,BoundaryProxyHandler$LWS.O=Q?BoundaryProxyHandler$LWS.ct:BoundaryProxyHandler$LWS.H,BoundaryProxyHandler$LWS.A=Q?BoundaryProxyHandler$LWS.ft:BoundaryProxyHandler$LWS.M,BoundaryProxyHandler$LWS._=Q?BoundaryProxyHandler$LWS.ut:BoundaryProxyHandler$LWS.k,e(createPointer$LWS(Rt),Q?noop$LWS:()=>{const t=re;return re=void 0,t},t=>"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,(t,e)=>{t();const r=re;re=void 0;const o=null==r?void 0:r[e];return createPointer$LWS("undefined"==typeof o?void 0:o)},Q?t=>{let e;try{e=kt(t);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):e}:noop$LWS,(t,e)=>{t();const r=re;re=void 0,("object"==typeof r&&null!==r||"function"==typeof r)&&L(jt,h,[r,e]);},rt?(t,e,r,o,n)=>{const a=pushTarget$LWS(t,e,r,o,n);return ()=>(ie(),a())}:pushTarget$LWS,pushTarget$LWS,(t,e,...r)=>{t();const o=re;let n,a;re=void 0,"function"==typeof e&&(e(),n=re,re=void 0);for(let t=0,{length:e}=r;t<e;t+=1){const e=r[t];"function"==typeof e&&(e(),r[t]=re,re=void 0);}try{a=L(o,n,r);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):"undefined"==typeof a?void 0:a},(t,e,...r)=>{t();const o=re;let n,a;re=void 0,"function"==typeof e&&(e(),n=re,re=void 0);for(let t=0,{length:e}=r;t<e;t+=1){const e=r[t];"function"==typeof e&&(e(),r[t]=re,re=void 0);}try{a=$(o,r,n);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):"undefined"==typeof a?void 0:a},(t,e,r,o,n,a,i,s,l)=>{t();const c=re;re=void 0;const u=createDescriptorFromMeta$LWS(r,o,n,a,i,s);let f=!1;try{f=v(c,e,u);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(f&&!1===r){let t;try{t=P(c,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(t&&(A(t,null),!1===t.configurable)){const{get:r,set:o,value:n}=t;l(e,!1,"enumerable"in t?t.enumerable:et,"writable"in t?t.writable:et,"value"in t?"object"==typeof n&&null!==n||"function"==typeof n?getTransferablePointer$LWS(n):n:et,"get"in t?"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):r:et,"set"in t?"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o:et);}}return f},(t,e)=>{t();const r=re;re=void 0;try{return W(r,e)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e,r,o)=>{t();const n=re;let a,i;re=void 0,"function"==typeof o?(o(),a=re,re=void 0):a=o;try{i=b(n,r,a);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if("object"==typeof i&&null!==i||"function"==typeof i)return getTransferablePointer$LWS(i);if(void 0===i&&r===g&&16&e)try{if(!T(n,r)){const t=L(G,n,[]);"[object Object]"!==t&&(i=L(Ot,t,[8,-1]));}}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof i?void 0:i},(t,e,r)=>{t();const o=re;let n;re=void 0;try{n=P(o,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(n){A(n,null);const{get:t,set:o,value:a}=n;r(e,"configurable"in n?n.configurable:et,"enumerable"in n?n.enumerable:et,"writable"in n?n.writable:et,"value"in n?"object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):"undefined"==typeof a?void 0:a:et,"get"in n?"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):t:et,"set"in n?"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o:et);}},t=>{t();const e=re;let r;re=void 0;try{r=w(e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof r?null:r?getTransferablePointer$LWS(r):r},(t,e)=>{t();const r=re;re=void 0;try{return T(r,e)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},t=>{t();const e=re;re=void 0;try{return m(e)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e)=>{t();const r=re;let o;re=void 0;try{o=x(r);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}L(e,void 0,o);},t=>{t();const e=re;re=void 0;let r=2;try{O(e)?r=4:m(e)&&(r|=1);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return r},(t,e,r,o)=>{t();const n=re;let a,i;re=void 0,"function"==typeof r?(r(),a=re,re=void 0):a=r,"function"==typeof o?(o(),i=re,re=void 0):i=o;try{return _(n,e,a,i)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e=null)=>{t();const r=re;let o;re=void 0,"function"==typeof e?(e(),o=re,re=void 0):o=null;try{return A(r,o)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},rt?(...t)=>{if(ie()){for(let e=0,{length:r}=t;e<r;e+=1){const r=t[e];"function"==typeof r&&(r(),t[e]=re,re=void 0);}try{L(Mt,Ht,t);}catch(t){}}}:noop$LWS,Q?(t,...e)=>{t();const r=re;re=void 0;for(let t=0,{length:o}=e;t<o;t+=7)v(r,e[t],createDescriptorFromMeta$LWS(e[t+1],e[t+2],e[t+3],e[t+4],e[t+5],e[t+6]));}:noop$LWS,Q?noop$LWS:t=>{t();const e=re;re=void 0;const r=L(Ft,vt,[e]);return r?getTransferablePointer$LWS(r):r},Q?()=>0:t=>{t();const e=re;re=void 0;try{if(!m(e))return M(e)||k(e)?0:1}catch(t){try{at(e);}catch(t){return 8}}return 0},t=>{t();const e=re;re=void 0;try{const t=L(G,e,[]);return "[object Object]"===t?"Object":L(Ot,t,[8,-1])}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},Q?noop$LWS:(t,e)=>{t();const r=re;re=void 0;try{return r[e]}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},Dt,Q?(t,...e)=>{const r=L(st,e,[et]);let o,n;-1===r?o=e:(o=L(lt,e,[0,r]),n=L(lt,e,[r+1])),t();const a=re;re=void 0;let i=se(a);void 0===i&&(i={__proto__:null},ce(a,i));for(let t=0,{length:e}=o;t<e;t+=1){const e=o[t];i[e]=!0,v(a,e,{__proto__:null,configurable:!0,get:()=>(ae(a,e,i),a[e]),set(t){ae(a,e,i),_(a,e,t);}});}le(n);}:noop$LWS,Q?alwaysFalse$LWS:t=>{t();const e=re;if(re=void 0,e===C)return !1;try{if("object"==typeof e){const{constructor:t}=e;if(t===l)return !0;if(null===w(e)&&("function"!=typeof t||t.prototype!==e))return !0;try{return L(ut,e,[]),!0}catch(t){}try{if(e!==Wt)return L(mt,e,[]),!0}catch(t){}}return Z(e,Y)}catch(t){}return !1},Q?alwaysFalse$LWS:t=>{t();const e=re;re=void 0;try{return at(e),!1}catch(t){}return !0},Q?t=>{t();const e=re;re=void 0;try{return T(e,g)?Zt(e):Xt(e)}catch(t){}}:noop$LWS,Q?noop$LWS:(t,e)=>{t();const r=re;re=void 0,e();const o=re;re=void 0,L(jt,vt,[r,o]);},(t,e)=>{t();const r=re;let o;re=void 0;try{o=H(r);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}const a=x(o),{length:i}=a,s=new n(7*i);for(let t=0,e=0;t<i;t+=1,e+=7){const r=a[t],n=o[r];A(n,null);const{get:i,set:l,value:c}=n;s[e]=r,s[e+1]="configurable"in n?n.configurable:et,s[e+2]="enumerable"in n?n.enumerable:et,s[e+3]="writable"in n?n.writable:et,s[e+4]="value"in n?"object"==typeof c&&null!==c||"function"==typeof c?getTransferablePointer$LWS(c):c:et,s[e+5]="get"in n?"object"==typeof i&&null!==i||"function"==typeof i?getTransferablePointer$LWS(i):i:et,s[e+6]="set"in n?"object"==typeof l&&null!==l||"function"==typeof l?getTransferablePointer$LWS(l):l:et;}let l;L(e,void 0,s);try{l=w(r);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof l?null:l?getTransferablePointer$LWS(l):l},(t,e)=>{t();const r=re;let o;re=void 0;try{if(Z(r,e))return !0;o=w(r);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof o?null:o?getTransferablePointer$LWS(o):o},(t,e,r)=>{t();const o=re;let n,a;re=void 0;try{n=P(o,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(n){A(n,null);const{get:t,set:o,value:a}=n;return r(e,"configurable"in n?n.configurable:et,"enumerable"in n?n.enumerable:et,"writable"in n?n.writable:et,"value"in n?"object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):"undefined"==typeof a?void 0:a:et,"get"in n?"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):t:et,"set"in n?"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o:et),void 0}try{a=w(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof a?null:a?getTransferablePointer$LWS(a):a});let ue=!1;return (...t)=>{if(ue)return;ue=!0,({6:K,7:ot,8:nt,9:ft,10:yt,11:dt,12:ht,13:Lt,14:bt,15:Pt,16:wt,17:Tt,18:xt,19:_t,20:Bt,21:Ct,23:Nt,24:Gt,25:Kt,26:Vt,27:Ut,29:zt,30:Qt,31:Jt,32:Yt,33:qt,34:te,35:ee}=t);const e=createApplyOrConstructTrapForZeroOrMoreArgs$LWS(1),r=createApplyOrConstructTrapForOneOrMoreArgs$LWS(1),o=createApplyOrConstructTrapForTwoOrMoreArgs$LWS(1),n=createApplyOrConstructTrapForThreeOrMoreArgs$LWS(1),a=createApplyOrConstructTrapForFourOrMoreArgs$LWS(1),i=createApplyOrConstructTrapForFiveOrMoreArgs$LWS(1),l=createApplyOrConstructTrapForAnyNumberOfArgs$LWS(1),c=createApplyOrConstructTrapForZeroOrMoreArgs$LWS(2),u=createApplyOrConstructTrapForOneOrMoreArgs$LWS(2),y=createApplyOrConstructTrapForTwoOrMoreArgs$LWS(2),d=createApplyOrConstructTrapForThreeOrMoreArgs$LWS(2),p=createApplyOrConstructTrapForFourOrMoreArgs$LWS(2),S=createApplyOrConstructTrapForFiveOrMoreArgs$LWS(2),h=createApplyOrConstructTrapForAnyNumberOfArgs$LWS(2),g=R({yt:e,dt:r,St:o,ht:n,gt:a,Lt:i,$t:l,vt:c,Wt:u,bt:y,Pt:d,wt:p,Tt:S,xt:h});s[0]=g[0],s[1]=g[1],s[2]=g[2],s[3]=g[3],s[4]=g[4],s[5]=g[5],s.n=g[6],f[0]=g[7],f[1]=g[8],f[2]=g[9],f[3]=g[10],f[4]=g[11],f[5]=g[12],f.n=g[13];const{prototype:L}=BoundaryProxyHandler$LWS;L[s[0]]=e,L[s[1]]=r,L[s[2]]=o,L[s[3]]=n,L[s[4]]=a,L[s[5]]=i,L[s.n]=l,L[f[0]]=c,L[f[1]]=u,L[f[2]]=y,L[f[3]]=d,L[f[4]]=p,L[f[5]]=S,L[f.n]=h,A(L,null),F(L);}}}const Wt=TypeError,bt=WeakMap,{apply:Pt}=Reflect,{get:wt,set:Tt}=bt.prototype,mt=new bt,xt=new bt,Ot=`\n'use strict';\n(${createMembraneMarshall$LWS})`;function createBlueConnector$LWS(t){if("object"!=typeof t||null===t)throw new Wt("Missing globalObject.");let e=Pt(wt,xt,[t]);return void 0===e&&(e=createMembraneMarshall$LWS(t),Pt(Tt,xt,[t,e])),e}function createRedConnector$LWS(t){if("function"!=typeof t)throw new Wt("Missing evaluator function.");let e=Pt(wt,mt,[t]);return void 0===e&&(e=t(Ot)(),Pt(Tt,mt,[t,e])),e}const _t=Symbol.for("@@lockerNearMembraneUndefinedValue"),At=Array,Bt=Error,Et=Object,{push:Ft}=At.prototype,{assign:jt}=Et,{apply:Ht,ownKeys:Mt}=Reflect;class VirtualEnvironment$LWS{constructor(t){if(void 0===t)throw new Bt("Missing VirtualEnvironmentOptions options bag.");const{Ot:e,distortionCallback:r,instrumentation:o,redConnector:n}=jt({__proto__:null},t);let a;const i=e("blue",(...t)=>{a=t;},{distortionCallback:r,instrumentation:o}),{0:s,1:l,2:c,3:u,5:f,6:y,7:d,8:p,9:S,10:h,11:g,12:L,13:$,14:v,15:W,16:b,17:P,18:w,19:T,20:m,21:x,23:O,24:_,25:A,26:B,27:E,29:F,30:j,31:H,32:M,33:k,34:R,35:C}=a;let I;const D=n("red",(...t)=>{I=t;}),{0:N,3:G,4:K,5:V,6:U,7:z,8:X,9:Z,10:Q,11:J,12:Y,13:q,14:tt,15:et,16:rt,17:ot,18:nt,19:at,20:it,21:st,22:lt,23:ct,24:ut,25:ft,26:yt,27:dt,28:pt,29:St,30:ht,31:gt,32:Lt,33:$t,34:vt,35:Wt}=I;i(void 0,void 0,void 0,void 0,void 0,void 0,U,z,X,Z,Q,J,Y,q,tt,et,rt,ot,nt,at,it,st,void 0,ct,ut,ft,yt,dt,void 0,St,ht,gt,Lt,$t,vt,Wt),D(void 0,void 0,void 0,void 0,void 0,void 0,y,d,p,S,h,g,L,$,v,W,b,P,w,T,m,x,void 0,O,_,A,B,E,void 0,F,j,H,M,k,R,C),this._t=s,this.At=l,this.Bt=c,this.Et=u,this.Ft=f,this.redGlobalThisPointer=N,this.jt=G,this.Ht=K,this.Mt=V,this.kt=it,this.Rt=lt,this.Ct=pt;}evaluate(t){try{const e=this.Ht(t);return "function"==typeof e?(e(),this.At()):e}catch(t){var e;throw null!=(e=this.At())?e:t}}It(t,e,r){const o=[this.Bt(t)];Ht(Ft,o,e),null!=r&&r.length&&(o[o.length]=_t,Ht(Ft,o,r)),Ht(this.Ct,void 0,o);}link(...t){let e=this._t,r=this.redGlobalThisPointer;for(let o=0,{length:n}=t;o<n;o+=1){const n=t[o];e=this.Et(e,n),r=this.jt(r,n),this.Mt(r,e),this.Ft(e,r);}}Dt(t,e){const r=this.Bt(t),o=Mt(e),{length:n}=o,a=new At(1+7*n);a[0]=r;for(let t=0,r=1;t<n;t+=1,r+=7){const n=o[t],i=e[n],s=jt({__proto__:null},i);a[r]=n,a[r+1]="configurable"in s?!!s.configurable:_t,a[r+2]="enumerable"in s?!!s.enumerable:_t,a[r+3]="writable"in s?!!s.writable:_t,a[r+4]="value"in s?this.Bt(s.value):_t,a[r+5]="get"in s?this.Bt(s.get):_t,a[r+6]="set"in s?this.Bt(s.set):_t;}Ht(this.Rt,this,a);}Nt(t,e){const r=this.Bt(t),o=e?this.Bt(e):e;this.kt(r,o);}}const{includes:kt}=Array.prototype,{assign:Rt}=Object,{apply:Ct,ownKeys:It}=Reflect,Dt=["AggregateError","Array","Error","EvalError","Function","Object","Proxy","RangeError","ReferenceError","SyntaxError","TypeError","URIError","eval","globalThis"],Nt=["globalThis","Infinity","NaN","undefined","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","BigInt","Boolean","FinalizationRegistry","Number","RegExp","String","Symbol","WeakRef","JSON","Math","Reflect","escape","unescape",...Dt];function getFilteredGlobalOwnKeys$LWS(t){const e=[];let r=0;const o=It(t);for(let t=0,{length:n}=o;t<n;t+=1){const n=o[t];Ct(kt,Nt,[n])||(e[r++]=n);}return e}const Gt=WeakMap,{apply:Kt,deleteProperty:Vt,getPrototypeOf:Ut,ownKeys:zt}=Reflect,{get:Xt,set:Zt}=Gt.prototype,Qt=new Gt,Jt=(()=>{const{navigator:t,navigator:{userAgentData:e}}=window,r=null==e?void 0:e.brands;if(Array.isArray(r)&&r.length?r.find(t=>"Chromium"===(null==t?void 0:t.brand)):/ (?:Headless)?Chrome\/\d+/.test(t.userAgent))return ["window"]})();function getCachedGlobalObjectReferences$LWS(t){let e=Kt(Xt,Qt,[t]);if(e)return e;const{document:r,window:o}=t,n=Ut(o),a=Ut(n),i=Ut(a);return e={document:r,Gt:Ut(r),window:o,Kt:n,Vt:a,Ut:i,zt:zt(i)},Kt(Zt,Qt,[t,e]),e}function filterWindowKeys$LWS(t){const e=[];let r=0;for(let o=0,{length:n}=t;o<n;o+=1){const n=t[o];"document"!==n&&"location "!==n&&"top"!==n&&"window"!==n&&"chrome"!==n&&(e[r++]=n);}return e}getCachedGlobalObjectReferences$LWS(window);const Yt=Object,qt=TypeError,{prototype:te}=Document,{prototype:ee}=Node,{remove:re,setAttribute:oe}=Element.prototype,{appendChild:ne}=ee,{assign:ae}=Yt,{__lookupGetter__:ie}=Yt.prototype,{apply:se}=Reflect,{close:le,createElement:ce,open:ue}=te,fe=se(ie,te,["body"]),ye=se(ie,HTMLElement.prototype,["style"]),de=se(ie,HTMLIFrameElement.prototype,["contentWindow"]),pe=se(ie,ee,["lastChild"]),Se=document;let he=null;function createIframeVirtualEnvironment$LWS(t,e){if("object"!=typeof t||null===t)throw new qt("Missing global object virtualization target.");const{distortionCallback:r,endowments:o,globalObjectShape:n,instrumentation:a,Xt:i=!1}=ae({__proto__:null},e),s=function(){var t;const e=se(ce,Se,["iframe"]),r=null!=(t=se(fe,Se,[]))?t:se(pe,Se,[]);return se(ye,e,[]).display="none",se(oe,e,["sandbox","allow-same-origin allow-scripts"]),se(ne,r,[e]),e}(),l=se(de,s,[]),c="object"!=typeof n||null===n;c&&null===he&&(he=filterWindowKeys$LWS(getFilteredGlobalOwnKeys$LWS(l)));const u=getCachedGlobalObjectReferences$LWS(t),f=new VirtualEnvironment$LWS({Ot:createBlueConnector$LWS(t),distortionCallback:r,instrumentation:a,redConnector:createRedConnector$LWS(l.eval)});if(!function(t,e){for(let r=0,{length:o}=Dt;r<o;r+=1){const o=Dt[r],n=e[o];n&&(n.prototype?t.link(o,"prototype"):t.link(o));}}(f,t),"undefined"==typeof globalThis?f.link("window","document"):f.link("document"),f.link("__proto__","__proto__","__proto__"),f.Nt(u.document,u.Gt),f.It(u.window,c?he:filterWindowKeys$LWS(getFilteredGlobalOwnKeys$LWS(n)),i?void 0:Jt),o){const t={};!function(t,e){const r=It(e);for(let o=0,{length:n}=r;o<n;o+=1){const n=r[o];if(!Ct(kt,Nt,[n])){const r=e[n];r&&(t[n]=Rt({__proto__:null},r));}}return t}(t,o),Vt(y=t,"document"),Vt(y,"location"),Vt(y,"top"),Vt(y,"window"),Vt(y,"chrome"),f.Dt(u.window,t);}var y;if(f.It(u.Ut,u.zt),i){const{document:t}=l;se(ue,t,[]),se(le,t,[]);}else se(re,s,[]);return f}var ge,Le;!function(t){t[t.External=0]="External",t[t.Internal=1]="Internal";}(ge||(ge={})),ReflectSetPrototypeOf$LWS(ge,null),function(t){t[t.Script=0]="Script",t[t.Module=1]="Module";}(Le||(Le={})),ReflectSetPrototypeOf$LWS(Le,null);const $e="lws-core-sandbox",ve={[SANDBOX_EVAL_CONTEXT_NAME$LWS]:{__proto__:null,get:()=>clearEvalContext$LWS()},[SANDBOX_EVAL_HELPERS_NAME$LWS]:{__proto__:null,get:()=>clearEvalHelpers$LWS()}},We=`'use strict';\n ${SANDBOX_EVAL_CONTEXT_NAME$LWS}(${function(t){const{Zt:e}=t;class LockerSecurityError$LWS extends Error{constructor(t){super(`Lightning Web Security: ${t}`);}}const r=Array,o=Promise,n=TypeError,{asyncIterator:a,iterator:i}=Symbol,{[i]:s}=r.prototype,l=function*(){}.constructor.prototype.prototype,{next:c,throw:u}=l,{delete:f,get:y,set:d}=Map.prototype,{appendChild:p}=Node.prototype,{defineProperties:S,freeze:h}=Object,{then:g}=o.prototype,L=o.resolve.bind(o),{apply:$,getPrototypeOf:v,setPrototypeOf:W}=Reflect,{replace:b}=String.prototype,{get:P,set:w}=WeakMap.prototype,{createElement:T}=Document.prototype,{querySelector:m,setAttribute:x}=Element.prototype,{stopPropagation:O}=Event.prototype,{addEventListener:_,removeEventListener:A}=EventTarget.prototype,B=document,{head:E}=B,F=/\\?'/g,j=new Map,H="data-locker-id",M=`${crypto.getRandomValues(new Uint32Array(1))[0]}`;function escapeSingleQuotes$LWS(t){return $(b,t,[F,"\\'"])}function genStep$LWS(t,e,r,o,n,a,i){let s,l;try{s=$(a,t,[i]),l=s.value;}catch(t){return r(t),void 0}s.done?e(l):L(l).then(o,n);}function loadPromise$LWS(t,r){const n=new o((e,o)=>{function onerror$LWS(e){$(A,t,["error",onerror$LWS]),$(A,t,["load",onload$LWS]),$(O,e,[]),o(new LockerSecurityError$LWS(`Resource loader error loading '${escapeSingleQuotes$LWS(r)}'.`));}function onload$LWS(){$(A,t,["error",onerror$LWS]),$(A,t,["load",onload$LWS]),e(void 0);}$(_,t,["error",onerror$LWS]),$(_,t,["load",onload$LWS]);});return $(w,e,[t,n]),$(p,E,[t]),n}function spreadable$LWS(t){return W(t,null),t[i]=s,t}function toString$LWS(t){return "string"==typeof t?t:`${t}`}return {asyncToGen:function(t,e,r){return new o((o,n)=>{const a=$(t,e,r);function next$LWS(t){genStep$LWS(a,o,n,next$LWS,thrower$LWS,c,t);}function thrower$LWS(t){genStep$LWS(a,o,n,next$LWS,thrower$LWS,u,t);}next$LWS(void 0);})},forAwaitOf:function(t,e,r){if(0===e){let e=!1,{[a]:o}=r;if(null==o&&(e=!0,({[i]:o}=r)),"function"!=typeof o)throw new n("Object is not iterable.");return $(d,j,[t,{iterable:$(o,r,[]),step:void 0,sync:e}]),void 0}const s=$(y,j,[t]);if(1===e){const t=s.iterable.next();return s.sync?new o(e=>{s.step=t,e();}):$(g,t,[t=>{s.step=t;}])}if(2===e)return s.step.value;if(3===e){const e=!!s.step.done;return e&&$(f,j,[t]),e}},loadScript:function(t,r){const o=toString$LWS(r);let n=$(m,E,[`script[data-distorted-src='${escapeSingleQuotes$LWS(o)}'][data-locker-id='${M}']`]);var a;return n?null!=(a=$(P,e,[n]))?a:L():(n=$(T,B,["script"]),$(x,n,[H,M]),n.type="text/javascript",n.src=o,loadPromise$LWS(n,o))},loadStyle:function(t,r){const o=toString$LWS(r);let n=$(m,E,[`link[href='${escapeSingleQuotes$LWS(o)}']`]);var a;return n?null!=(a=$(P,e,[n]))?a:L():(n=$(T,B,["link"]),n.type="text/css",n.rel="stylesheet",n.href=o,loadPromise$LWS(n,o))},makeRedGet:function(...t){const{length:e}=t,o=r(e),n={};for(let r=0;r<e;r+=1)n[r]={__proto__:null,get:t[r]};return S(o,n),o},makeRedResyncImports:function(t){return function(){for(let e=0,{length:r}=t;e<r;e+=1)try{t[e];}catch(t){}return spreadable$LWS(t)}},namespace:function(t){return h(t)},spreadable:spreadable$LWS,super:function(t,e,r,o){const n=v(t.prototype)[e];return $(n,r,o)}}}})`,be={__proto__:null,"lws-core-sandbox":{sandboxKey:"lws-core-sandbox"}},Pe=new WeakMapCtor$LWS,we=new WeakMapCtor$LWS,Te=new RegExp(`\\s*\\[\\s*(["'])\\${LOCKER_IDENTIFIER_MARKER$LWS}\\1\\s*,\\s*([^,\\s]+)\\s*]`,"g");let me,xe;function clearEvalContext$LWS(){const t=me;return me=void 0,t}function clearEvalHelpers$LWS(){const t=xe;return xe=void 0,t}function createDistortionEntries$LWS(t){const{globalObject:r,instrumentation:o,key:a,type:i,verboseInstrumentation:s}=t,{error:l}=o,c={context:void 0,endowments:void 0,globalObject:r,instrumentation:o,key:a,source:"",sourceType:Le.Script,type:i,verboseInstrumentation:s},{Document:u,Element:f,HTMLElement:y,HTMLIFrameElement:d,HTMLScriptElement:p,SVGElement:S,XSLTProcessor:h}=r,g=s&&"object"==typeof o&&null!==o,L=g?getBasicInstrumentationData$LWS(a):void 0,evaluator$LWS=(t,e,r)=>{const o=ObjectAssign$LWS({},c);return o.context=r,o.globalObject=e,o.source=t,evaluateInSandbox$LWS(o)},$=g?o.startActivity:void 0,v=i===ge.Internal?ArrayConcat$LWS(internalDistortionFactories$LWS,internalKeyedDistortionFactories$LWS):ArrayConcat$LWS(externalDistortionFactories$LWS,externalKeyedDistortionFactories$LWS);createBlockedPropertyDistortionFactories$LWS(CustomElementRegistry.prototype,CustomElementRegistryBlockedProperties$LWS,v),createBlockedPropertyDistortionFactories$LWS(u.prototype,DocumentBlockedProperties$LWS,v),createBlockedPropertyDistortionFactories$LWS(f.prototype,ElementBlockedProperties$LWS,v),createBlockedPropertyDistortionFactories$LWS(y.prototype,HTMLElementBlockedProperties$LWS,v),createBlockedPropertyDistortionFactories$LWS(d.prototype,HTMLIFrameElementBlockedProperties$LWS,v),createBlockedPropertyDistortionFactories$LWS(HTMLEmbedElement.prototype,HTMLEmbedElementBlockedProperties$LWS,v),createBlockedPropertyDistortionFactories$LWS(HTMLObjectElement.prototype,HTMLObjectElementBlockedProperties$LWS,v),createBlockedPropertyDistortionFactories$LWS(p.prototype,HTMLScriptElementBlockedProperties$LWS,v),createBlockedPropertyDistortionFactories$LWS(S.prototype,SVGElementBlockedProperties$LWS,v),"function"==typeof h&&createBlockedPropertyDistortionFactories$LWS(h.prototype,XSLTProcessorBlockedProperties$LWS,v),distortBlockedAttributes$LWS(r,y,HTMLElementBlockedAttributes$LWS),distortBlockedAttributes$LWS(r,d,HTMLIFrameElementBlockedAttributes$LWS),distortBlockedAttributes$LWS(r,p,HTMLScriptElementBlockedAttributes$LWS),distortBlockedAttributes$LWS(r,S,SVGElementBlockedAttributes$LWS);const W=[];let b=0;for(let t=0,{length:s}=v;t<s;t+=1){const s=v[t],c=s(r,{evaluator:evaluator$LWS,key:a,instrumentation:o,sandboxType:i});if(!ArrayIsArray$LWS(c))continue;const{0:u,1:f}=c;if(!isObjectLike$LWS(u))continue;let y=f;if("function"==typeof f){let t;if(g){const{name:e}=s;t=e?ReflectApply$LWS(StringProtoReplace$LWS,e,[LOCKER_IDENTIFIER_MARKER$LWS,""]):"<unknown>";}const e=new ProxyCtor$LWS(u,ObjectFreeze$LWS({apply(r,o,i){let s;o===e&&(o=f),g&&(s=$(t,L));try{return ReflectApply$LWS(f,o,i)}catch(t){throw l({sandboxKey:a,error:t}),t}finally{g&&s.stop();}},construct(r,o,n){let i;n===e&&(n=f),g&&(i=$(t,L));try{return ReflectConstruct$LWS(f,o,n)}catch(t){throw l({sandboxKey:a,error:t}),t}finally{g&&i.stop();}}}));y=e;}W[b++]=[u,y];}return createAttributeDistortionsForSandboxKey$LWS(r,a,W),W}function getBasicInstrumentationData$LWS(t){let e=be[t];return void 0===e&&(e={sandboxKey:t},be[t]=e),e}function setEvalContext$LWS(t){me=t;}function createEvaluateOptionsFromArgs$LWS(t){var e;const{length:r}=t,o=r?t[0]:void 0,n=1===r&&isObjectLike$LWS(o);return ObjectAssign$LWS({__proto__:null,context:r>2?t[2]:void 0,endowments:r>3?t[3]:void 0,globalObject:window,instrumentation:null!=(e=r>4?t[4]:void 0)?e:defaultInstrumentation$LWS,key:n?void 0:o,source:r>1?t[1]:void 0,sourceType:Le.Module,type:ge.External,verboseInstrumentation:r>5&&t[5]||!1},n?o:void 0)}function evaluateInCoreSandbox$LWS(...t){const e=createEvaluateOptionsFromArgs$LWS(t);return e.key="lws-core-sandbox",e.type=ge.Internal,evaluateInSandbox$LWS(e)}function evaluateInSandbox$LWS(...t){const e=createEvaluateOptionsFromArgs$LWS(t),{context:r,endowments:o,globalObject:a,instrumentation:i,key:s,source:l,sourceType:c,type:u,verboseInstrumentation:f}=e;if("string"!=typeof s)throw new LockerSecurityError$LWS("Invalid sandbox key.");const y="object"==typeof i&&null!==i,d=y?getBasicInstrumentationData$LWS(s):void 0,p=y?i.startActivity:void 0;let S;y&&(S=p("evaluateInSandbox",d));let h=ReflectApply$LWS(WeakMapProtoGet$LWS,we,[a]);void 0===h&&(h={__proto__:null},ReflectApply$LWS(WeakMapProtoSet$LWS,we,[a,h]));let g=h[s];if(void 0===g){const t={context:void 0,endowments:void 0,globalObject:a,instrumentation:i,key:s,source:"",sourceType:Le.Script,type:u,verboseInstrumentation:f},e=new MapCtor$LWS(createDistortionEntries$LWS(t));ReflectApply$LWS(MapProtoSet$LWS,e,[a,a]);const r=createIframeVirtualEnvironment$LWS(a,{distortionCallback(r){const o=ReflectApply$LWS(MapProtoGet$LWS,e,[r]);if(o)return o;let a;const i=getDocumentDefaultView$LWS(r);if(i?(a=i,ReflectApply$LWS(MapProtoSet$LWS,e,[r,r])):isWindow$LWS(r)&&(a=r),a){ReflectApply$LWS(MapProtoSet$LWS,e,[a,a]);const r=ObjectAssign$LWS({},t);r.globalObject=a;const o=createDistortionEntries$LWS(r);for(let t=0,{length:r}=o;t<r;t+=1){const{0:r,1:a}=o[t];ReflectApply$LWS(MapProtoSet$LWS,e,[r,a]);}let i;r.context=t=>{i=t;},r.source=`${SANDBOX_EVAL_CONTEXT_NAME$LWS}(this)`,evaluateInSandbox$LWS(r),ReflectApply$LWS(MapProtoSet$LWS,e,[i,a]);}return r},endowments:ObjectAssign$LWS({},ve,o?ObjectGetOwnPropertyDescriptors$LWS(o):void 0),Xt:!1,instrumentation:f?i:void 0});g={evaluate:t=>r.evaluate(t),Qt:{}},setEvalContext$LWS(t=>{ObjectAssign$LWS(g.Qt,t({Zt:Pe}));}),g.evaluate(We),h[s]=g;}var L;let $;setEvalContext$LWS(r),L=g.Qt,xe=L;const v=function(t,e=Le.Module){let r="function"==typeof t?extractFunctionBodySource$LWS(t):toString$LWS(t);return r=ReflectApply$LWS(StringProtoReplace$LWS,r,[/\/\/# sandbox(?=MappingURL=.*?\s*$)/,"//# source"]),r=ReflectApply$LWS(StringProtoReplace$LWS,r,[Te,(t,e,r)=>`(v) => ${r}=v`]),e===Le.Module&&-1===indexOfPragma$LWS(r,"use strict")?`'use strict';${r}`:r}(l,c);try{$=g.evaluate(v);}catch(t){throw y&&S.error({sandboxKey:s,error:t}),t}finally{clearEvalContext$LWS(),clearEvalHelpers$LWS();}return y&&S.stop(),$}
7704
+ 1}`.includes("*"),ot=LOCKER_UNMINIFIED_FLAG$LWS&&!Q,rt="function"==typeof BigInt,nt=Q?/\w*$/:void 0,{isArray:at}=n,{includes:it,indexOf:st,slice:lt}=n.prototype,{isView:ct}=a,ut=Q?void 0:$(z,a.prototype,["byteLength"]),ft=rt?BigInt.prototype.valueOf:void 0,{valueOf:yt}=Boolean.prototype,{toString:dt}=i.prototype,{bind:pt,toString:St}=Function.prototype,{stringify:ht}=JSON,{isInteger:Lt}=s,{valueOf:$t}=s.prototype,{revocable:gt}=c,{prototype:Wt}=f,{exec:vt,test:bt,toString:Pt}=Wt,Tt=Q?null!=(e=$(z,Wt,["flags"]))?e:function(){const t=$(Pt,this,[]);return $(vt,nt,[t])[0]}:void 0,wt=$(z,Wt,["source"]),{replace:mt,slice:xt,valueOf:Ot}=y.prototype,{toString:_t,valueOf:At}=d.prototype,Bt=$(z,Uint8Array.prototype.__proto__,["length"]),{prototype:Et}=S,{delete:jt,has:Ft,set:Mt,[L]:Ht}=Et,kt=Q||"object"!=typeof console||null===console?void 0:console,Rt=null==kt?void 0:kt.info,Ct=Q?eval:void 0,It=null!=(o=null!=(r=null!=t?t:"undefined"!=typeof globalThis?globalThis:void 0)?r:"undefined"!=typeof self?self:void 0)?o:(W(C,"globalThis",{__proto__:null,configurable:!0,get(){return v(C,"globalThis"),null!=this?this:self}}),globalThis);let Dt=!1,Nt=!1;function alwaysFalse$LWS(){return !1}function identity$LWS(t){return t}const Kt=LOCKER_UNMINIFIED_FLAG$LWS?()=>{if(Dt)return;Dt=!0;const t=(()=>{try{var t;i.prepareStackTrace=(t,e)=>e;const e=(new i).stack;return v(i,"prepareStackTrace"),at(e)&&e.length>0?null==(t=e[0])?void 0:t.constructor:void 0}catch(t){}})();if("function"!=typeof t)return;const{getEvalOrigin:e,getFunctionName:o,toString:r}=t.prototype,n=new f(`${$(mt,"$LWS",[/[\\^$.*+?()[\]{}|]/g,"\\$&"])}(?=\\.|$)`);try{i.prepareStackTrace=function(t,a){return function(t,a){let i="";try{i=$(dt,t,[]);}catch(t){i="<error>";}let s=!1;for(let t=0,{length:l}=a;t<l;t+=1){const l=a[t],c=$(o,l,[]);let u=!1;if("string"==typeof c&&"eval"!==c&&$(bt,n,[c])&&(u=!0),!u){const t=$(e,l,[]);"string"==typeof t&&$(bt,n,[t])&&(u=!0);}if(u)s||(s=!0,i+="\n at LWS");else {s=!1;try{i+=`\n at ${$(r,l,[])}`;}catch(t){}}}return i}(t,a)};}catch(t){}try{const{stackTraceLimit:t}=i;("number"!=typeof t||t<20)&&(i.stackTraceLimit=20);}catch(t){}}:noop$LWS;function noop$LWS(){}const Gt=Q?t=>$(ft,t,[]):noop$LWS,Vt=Q?t=>$(yt,t,[]):noop$LWS,Ut=Q?t=>$($t,t,[]):noop$LWS,zt=Q?t=>{if(t!==Wt){const e=$(wt,t,[]);return ht({__proto__:null,flags:$(Tt,t,[]),source:e})}}:noop$LWS,Xt=Q?t=>$(Ot,t,[]):noop$LWS,Zt=Q?t=>$(At,t,[]):noop$LWS,Qt=Q?t=>{switch($(K,t,[])){case"[object Boolean]":return Vt(t);case"[object Number]":return Ut(t);case"[object RegExp]":return zt(t);case"[object String]":return Xt(t);case"[object Object]":try{return Zt(t)}catch(t){}if(rt)try{return Gt(t)}catch(t){}default:return}}:noop$LWS,Jt=Q?t=>{try{return Zt(t)}catch(t){}if(rt)try{return Gt(t)}catch(t){}try{return Vt(t)}catch(t){}try{return Ut(t)}catch(t){}try{return zt(t)}catch(t){}try{return Xt(t)}catch(t){}}:noop$LWS;function toSafeWeakMap$LWS(t){return A(t,null),t.constructor=S,t.delete=jt,t.has=Ft,t.set=Mt,t[L]=Ht,A(t,Et),t}return function(t,e,o){const{distortionCallback:r=identity$LWS,instrumentation:a}=B({__proto__:null},o),i=!Q&&"object"==typeof a&&null!==a,s={__proto__:null,0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,n:void 0},f={__proto__:null,0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,n:void 0},d=toSafeWeakMap$LWS(new S),h=toSafeWeakMap$LWS(new S),D=i?a.startActivity:void 0;let G,rt,nt,ft,yt,dt,ht,$t,vt,bt,Pt,Tt,mt,Ot,At,Et,jt,Ft,Mt,Ht,Dt,Gt,Vt,Ut,zt,Xt,Zt,Yt,qt,te=!1,ee=0;const oe=Q?(t,e,o)=>{o[e]=!1;const r=getTransferablePointer$LWS(t);let n;try{$t(r,e,(t,e,o,r,a,i,s)=>{n=createDescriptorFromMeta$LWS(e,o,r,a,i,s);});}catch(t){var a;const e=null!=(a=qt)?a:t;throw qt=void 0,e}n?W(t,e,n):v(t,e);}:noop$LWS;let re=ot?()=>{try{Z(It,J)&&(re=()=>!0,Kt(),Dt());}catch(t){re=alwaysFalse$LWS;}return !1}:alwaysFalse$LWS;function copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(t,e){let o,r,n;i&&(o=D("copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget"));try{r=Xt(t,(...t)=>{const o={};for(let e=0,{length:r}=t;e<r;e+=7){o[t[e]]=createDescriptorFromMeta$LWS(t[e+1],t[e+2],t[e+3],t[e+4],t[e+5],t[e+6]);}E(e,o);});}catch(t){var a;const e=null!=(a=qt)?a:t;throw qt=void 0,i&&o.error(e),e}"function"==typeof r?(r(),n=qt,qt=void 0):n=null,A(e,n),i&&o.stop();}function createApplyOrConstructTrapForZeroOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}()`,r=e?s:f,n=e?nt:ft;return function(a,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(0!==u)return this[null!=(f=r[u])?f:r.n](a,s,l);let y;i&&(y=D(o));const{i:d}=this,p=e?s:l;let S,h;try{S=n(d,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,i&&y.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,i&&y.stop(),h}}function createApplyOrConstructTrapForOneOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}(1)`,r=e?s:f,n=e?nt:ft;return function(a,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(1!==u)return this[null!=(f=r[u])?f:r.n](a,s,l);let y;i&&(y=D(o));const{i:d}=this,p=e?s:l;let S,h;try{const{0:t}=c;S=n(d,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,i&&y.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,i&&y.stop(),h}}function createApplyOrConstructTrapForTwoOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}(2)`,r=e?s:f,n=e?nt:ft;return function(a,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(2!==u)return this[null!=(f=r[u])?f:r.n](a,s,l);let y;i&&(y=D(o));const{i:d}=this,p=e?s:l;let S,h;try{const{0:t,1:e}=c;S=n(d,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,i&&y.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,i&&y.stop(),h}}function createApplyOrConstructTrapForThreeOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}(3)`,r=e?s:f,n=e?nt:ft;return function(a,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(3!==u)return this[null!=(f=r[u])?f:r.n](a,s,l);let y;i&&(y=D(o));const{i:d}=this,p=e?s:l;let S,h;try{const{0:t,1:e,2:o}=c;S=n(d,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e,"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):"undefined"==typeof o?void 0:o);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,i&&y.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,i&&y.stop(),h}}function createApplyOrConstructTrapForFourOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}(4)`,r=e?s:f,n=e?nt:ft;return function(a,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(4!==u)return this[null!=(f=r[u])?f:r.n](a,s,l);let y;i&&(y=D(o));const{i:d}=this,p=e?s:l;let S,h;try{const{0:t,1:e,2:o,3:r}=c;S=n(d,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e,"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):"undefined"==typeof o?void 0:o,"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):"undefined"==typeof r?void 0:r);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,i&&y.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,i&&y.stop(),h}}function createApplyOrConstructTrapForFiveOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}(5)`,r=e?s:f,n=e?nt:ft;return function(a,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(5!==u)return this[null!=(f=r[u])?f:r.n](a,s,l);let y;i&&(y=D(o));const{i:d}=this,p=e?s:l;let S,h;try{const{0:t,1:e,2:o,3:r,4:a}=c;S=n(d,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e,"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):"undefined"==typeof o?void 0:o,"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):"undefined"==typeof r?void 0:r,"object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):"undefined"==typeof a?void 0:a);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,i&&y.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,i&&y.stop(),h}}function createApplyOrConstructTrapForAnyNumberOfArgs$LWS(t){const e=1&t,o=e?"apply":"construct",r=e?nt:ft;return function(a,s,l){ee=t;const{i:c}=this,u=e?l:s,{length:f}=u;let y;i&&(y=D(`Reflect.${o}(${f})`));const d=e?s:l;let p=2;const S=new n(f+p);let h,L;S[0]=c;try{S[1]="object"==typeof d&&null!==d||"function"==typeof d?getTransferablePointer$LWS(d):"undefined"==typeof d?void 0:d;for(let t=0;t<f;t+=1){const e=u[t];S[p++]="object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e;}h=$(r,void 0,S);}catch(t){var g;const e=null!=(g=qt)?g:t;throw qt=void 0,i&&y.error(e),e}return "function"==typeof h?(h(),L=qt,qt=void 0):L=h,i&&y.stop(),L}}function createDescriptorFromMeta$LWS(t,e,o,r,n,a){const i={__proto__:null};return t!==et&&(i.configurable=t),e!==et&&(i.enumerable=e),o!==et&&(i.writable=o),n!==et&&("function"==typeof n?(n(),i.get=qt,qt=void 0):i.get=void 0),a!==et&&("function"==typeof a?(a(),i.set=qt,qt=void 0):i.set=void 0),r!==et&&("function"==typeof r?(r(),i.value=qt,qt=void 0):i.value=r),i}function createPointer$LWS(t){return ()=>{qt=t;}}const ne=Q?t=>{let e=d.get(t);if(void 0===e){const o=jt(getTransferablePointer$LWS(t));"function"==typeof o&&(o(),e=qt,qt=void 0,e&&d.set(t,e));}return e}:noop$LWS;function getTransferablePointer$LWS(t,e=rt){let o=h.get(t);if(o)return o;const n=Q?t:r(t);if(n!==t&&typeof n!=typeof t)throw new p(`Invalid distortion ${function(t){if("string"==typeof t)return t;try{if("object"==typeof t&&null!==t){const e=$(K,t,[]);return "[object Symbol]"===e?$(_t,t,[]):e}return "function"==typeof t?$(St,t,[]):y(t)}catch(t){}return "[Object Unknown]"}(t)}.`);let a=!0,i=0,s=0,l=16;if("function"==typeof n){a=!1,i=0,l=4;try{"prototype"in n||(l|=8);const e=P(t,"length");if(e){A(e,null);const{value:t}=e;"number"==typeof t&&(i=t);}void 0;}catch(t){a=!0;}}else if(ct(n)){a=!1,l=2;try{s=$(Bt,n,[]),l|=32;}catch(t){a=!0;}}if(a)try{at(n)&&(l=1);}catch(t){l=64;}return o=e(createPointer$LWS(n),l,i,"",s),h.set(t,o),o}const ae=Q?t=>{if(Nt)return;Nt=!0;const e=at(t)&&t.length>0,o=e?{__proto__:null}:void 0,r=e?(e,o)=>$(it,t,[o])?{configurable:!1,enumerable:$(N,e,[o]),get:n(o),set:void 0}:P(e,o):void 0,n=e?t=>{let e=o[t];return void 0===e&&(e=$(pt,s,[]),o[t]=e),e}:void 0,a=e?(e,o)=>$(it,t,[o])?n(o):$(z,e,[o]):void 0,i=e?(e,o)=>$(it,t,[o])?void 0:$(X,e,[o]):void 0,s=e?()=>It:void 0,wrapDefineAccessOrProperty$LWS=t=>{const{length:e}=t,o=2===e;return new c(t,{apply(r,n,a){if(a.length>=e){const t=o?n:a[0];if("object"==typeof t&&null!==t||"function"==typeof t){const e=o?a[0]:a[1],r=ne(t);null!=r&&r[e]&&t[e];}}return $(t,n,a)}})},wrapLookupAccessor$LWS=(t,o)=>new c(t,{apply(r,n,a){if(a.length&&("object"==typeof n&&null!==n||"function"==typeof n)){const{0:t}=a,r=ne(n);if(null!=r&&r[t]&&n[t],e&&n===It)return o(n,t)}return $(t,n,a)}}),wrapGetOwnPropertyDescriptor$LWS=t=>new c(t,{apply(o,n,a){if(a.length>1){const{0:t,1:o}=a;if("object"==typeof t&&null!==t||"function"==typeof t){const n=ne(t);if(null!=n&&n[o]&&t[o],e&&t===It)return r(t,o)}}return $(t,n,a)}});try{u.defineProperty=wrapDefineAccessOrProperty$LWS(W);}catch(t){}try{u.getOwnPropertyDescriptor=wrapGetOwnPropertyDescriptor$LWS(P);}catch(t){}try{l.getOwnPropertyDescriptor=wrapGetOwnPropertyDescriptor$LWS(F);}catch(t){}try{l.getOwnPropertyDescriptors=new c(f=M,{apply(t,o,n){const a=n.length?n[0]:void 0;if(("object"!=typeof a||null===a)&&"function"!=typeof a)return $(f,o,n);const i=ne(a),s=a===It&&e,l=s?{}:$(f,o,n);if(!s&&void 0===i)return l;const c=x(s?a:l);for(let t=0,{length:e}=c;t<e;t+=1){const e=c[t],o=!(null==i||!i[e]);if(o&&a[e],o||s){const t=s?r(a,e):P(a,e);t?l[e]=t:s||v(l,e);}}return l}});}catch(t){}var f;try{C.__defineGetter__=wrapDefineAccessOrProperty$LWS(V);}catch(t){}try{C.__defineSetter__=wrapDefineAccessOrProperty$LWS(U);}catch(t){}try{C.__lookupGetter__=wrapLookupAccessor$LWS(z,a);}catch(t){}try{C.__lookupSetter__=wrapLookupAccessor$LWS(X,i);}catch(t){}}:noop$LWS;function lookupForeignDescriptor$LWS(t,e,o){let r,n,a;i&&(r=D("lookupForeignDescriptor"));try{n=Yt(t,o,(t,r,n,i,s,l,c)=>{a=createDescriptorFromMeta$LWS(r,n,i,s,l,c),!1===r&&W(e,o,a),a.l=!0;});}catch(t){var s;const e=null!=(s=qt)?s:t;throw qt=void 0,i&&r.error(e),e}if(void 0===a){let t=null;for("function"==typeof n&&(n(),t=qt,qt=void 0);t;){if(a=P(t,o),a){A(a,null);break}t=T(t);}if(a){var l;const{get:t,set:e,value:o}=a,r=null!=(l=null!=t?t:e)?l:o;a.l=("object"==typeof r&&null!==r||"function"==typeof r)&&void 0!==h.get(r);}}return i&&r.stop(),a}function pushErrorAcrossBoundary$LWS(t){if(ot&&re(),"object"==typeof t&&null!==t||"function"==typeof t){getTransferablePointer$LWS(t,G)();}return t}function pushTarget$LWS(t,e,o,r,n){const{proxy:a}=new BoundaryProxyHandler$LWS(t,e,o,r,n);return h.set(a,t),createPointer$LWS(a)}const ie=Q?(t,e)=>{d.set(t,e),zt(getTransferablePointer$LWS(t),getTransferablePointer$LWS(e));}:noop$LWS;class BoundaryProxyHandler$LWS{constructor(t,e,o,r,n){let a;const i=1&e,l=4&e;a=l?8&e?()=>{}:function(){}:i?[]:{};const{proxy:c,revoke:u}=gt(a,this);var y,d;(this.i=t,this.u=e,this.p=n,this.S=(t,e,o,r,n,a,i)=>{W(this.h,t,createDescriptorFromMeta$LWS(e,o,r,n,a,i));},this.proxy=c,this.revoke=u,this.serializedValue=void 0,this.h=a,this.L="Object",l)&&(this.apply=this[null!=(y=s[o])?y:s.n],this.construct=this[null!=(d=f[o])?d:f.n]);if(this.defineProperty=BoundaryProxyHandler$LWS.$,this.deleteProperty=BoundaryProxyHandler$LWS.g,this.isExtensible=BoundaryProxyHandler$LWS.W,this.getOwnPropertyDescriptor=BoundaryProxyHandler$LWS.v,this.getPrototypeOf=BoundaryProxyHandler$LWS.P,this.get=32&e?BoundaryProxyHandler$LWS.hybridGetTrapForTypedArray:BoundaryProxyHandler$LWS.T,this.has=BoundaryProxyHandler$LWS.m,this.ownKeys=BoundaryProxyHandler$LWS.O,this.preventExtensions=BoundaryProxyHandler$LWS._,this.setPrototypeOf=BoundaryProxyHandler$LWS.A,this.set=BoundaryProxyHandler$LWS.B,64&e)j(this),this.revoke();else if(Q)(i||2&e)&&this.j();else {if(16&e){let t=et;$(V,this,["serializedValue",()=>(t===et&&(t=Ut(this.i)),t)]);}j(this);}}j(){this.deleteProperty=BoundaryProxyHandler$LWS.F,this.defineProperty=BoundaryProxyHandler$LWS.M,this.preventExtensions=BoundaryProxyHandler$LWS.H,this.set=BoundaryProxyHandler$LWS.k,this.setPrototypeOf=BoundaryProxyHandler$LWS.R,j(this);}C(){this.defineProperty=BoundaryProxyHandler$LWS.I,this.deleteProperty=BoundaryProxyHandler$LWS.D,this.get=BoundaryProxyHandler$LWS.N,this.getOwnPropertyDescriptor=BoundaryProxyHandler$LWS.K,this.getPrototypeOf=BoundaryProxyHandler$LWS.G,this.has=BoundaryProxyHandler$LWS.V,this.isExtensible=BoundaryProxyHandler$LWS.U,this.ownKeys=BoundaryProxyHandler$LWS.X,this.preventExtensions=BoundaryProxyHandler$LWS.Z,this.set=BoundaryProxyHandler$LWS.J,this.setPrototypeOf=BoundaryProxyHandler$LWS.Y;const{i:t,u:e,h:o}=this,r=Ft(t);if(8&r)return j(this),this.revoke(),void 0;try{copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(t,o);}catch(e){if(Vt(t))return j(this),this.revoke(),void 0}if(16&e&&!w(o,L)){let e="Object";try{e=Mt(t);}catch(t){}this.L=e;}4&r?j(o):(2&r?I(o):1&r&&O(o),LOCKER_UNMINIFIED_FLAG$LWS&&Et("Mutations on the membrane of an object originating outside of the sandbox will not be reflected on the object itself:",t)),j(this);}static M(t,e,o){let r;ee=4,i&&(r=D("Reflect.defineProperty"));const{i:n,S:a}=this,s=o;A(s,null);const{get:l,set:c,value:u}=s,f="value"in s?"object"==typeof u&&null!==u||"function"==typeof u?getTransferablePointer$LWS(u):"undefined"==typeof u?void 0:u:et,y="get"in s?"object"==typeof l&&null!==l||"function"==typeof l?getTransferablePointer$LWS(l):l:et,d="set"in s?"object"==typeof c&&null!==c||"function"==typeof c?getTransferablePointer$LWS(c):c:et;let p=!1;try{p=yt(n,e,"configurable"in s?!!s.configurable:et,"enumerable"in s?!!s.enumerable:et,"writable"in s?!!s.writable:et,f,y,d,a);}catch(t){var S;const e=null!=(S=qt)?S:t;throw qt=void 0,i&&r.error(e),e}return i&&r.stop(),p}static F(t,e){let o;ee=8,i&&(o=D("Reflect.deleteProperty"));let r=!1;try{r=dt(this.i,e);}catch(t){var n;const e=null!=(n=qt)?n:t;throw qt=void 0,i&&o.error(e),e}return i&&o.stop(),r}static q(t){let e,o,r;ee=64,i&&(e=D("Reflect.getPrototypeOf"));try{o=vt(this.i);}catch(t){var n;const o=null!=(n=qt)?n:t;throw qt=void 0,i&&e.error(o),o}return "function"==typeof o?(o(),r=qt,qt=void 0):r=null,i&&e.stop(),r}static tt(t){let e;ee=256,i&&(e=D("Reflect.isExtensible"));const{h:o}=this;let r=!1;if(m(o)){const{i:t}=this;try{r=Pt(t);}catch(t){var n;const o=null!=(n=qt)?n:t;throw qt=void 0,i&&e.error(o),o}r||(copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(t,o),O(o));}return i&&e.stop(),r}static et(t){let e,o;ee=512,i&&(e=D("Reflect.ownKeys"));try{Tt(this.i,(...t)=>{o=t;});}catch(t){var r;const o=null!=(r=qt)?r:t;throw qt=void 0,i&&e.error(o),o}return i&&e.stop(),o||[]}static ot(t,e){let o;ee=32,i&&(o=D("Reflect.getOwnPropertyDescriptor"));const{i:r,h:n}=this;let a;try{$t(r,e,(t,o,r,i,s,l,c)=>{a=createDescriptorFromMeta$LWS(o,r,i,s,l,c),!1===a.configurable&&W(n,e,a);});}catch(t){var s;const e=null!=(s=qt)?s:t;throw qt=void 0,i&&o.error(e),e}return i&&o.stop(),a}static H(t){let e;ee=1024,i&&(e=D("Reflect.preventExtensions"));const{i:o,h:r}=this;let n=!0;if(m(r)){let t=0;try{t=mt(o);}catch(t){var a;const o=null!=(a=qt)?a:t;throw qt=void 0,i&&e.error(o),o}1&t||(copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(o,r),O(r)),n=!(2&t);}return i&&e.stop(),n}static R(t,e){let o;ee=4096,i&&(o=D("Reflect.setPrototypeOf"));const r=e?getTransferablePointer$LWS(e):e;let n=!1;try{n=At(this.i,r);}catch(t){var a;const e=null!=(a=qt)?a:t;throw qt=void 0,i&&o.error(e),e}return i&&o.stop(),n}static k(t,e,o,r){ee=2048;const{i:n,proxy:a,h:s}=this;"undefined"==typeof o&&(o=void 0),"undefined"==typeof r&&(r=a);const l=a===r;let c;i&&(c=D(l?"Reflect.set":"passthruForeignTraversedSet"));let u=!1;try{u=l?Ot(n,e,"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o,et):function(t,e,o,r,n){const a=lookupForeignDescriptor$LWS(t,e,o);if(a){if("get"in a||"set"in a){const{set:t}=a;return !!t&&(a.l?nt(getTransferablePointer$LWS(t),"object"==typeof n&&null!==n||"function"==typeof n?getTransferablePointer$LWS(n):"undefined"==typeof n?void 0:n,"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):"undefined"==typeof r?void 0:r):$(t,n,[r]),!0)}if(!1===a.writable)return !1}if(("object"!=typeof n||null===n)&&"function"!=typeof n)return !1;const i=P(n,o);return i?(A(i,null),!("get"in i)&&!("set"in i)&&!1!==i.writable&&(W(n,o,{__proto__:null,value:r}),!0)):W(n,o,{__proto__:null,configurable:!0,enumerable:!0,value:r,writable:!0})}(n,s,e,o,r);}catch(t){var f;const e=null!=(f=qt)?f:t;throw qt=void 0,i&&c.error(e),e}return i&&c.stop(),u}}BoundaryProxyHandler$LWS.rt=Q?function(t,e,o){let r;i&&(r=D("hybridGetTrap"));const{i:n,u:a,proxy:s,h:l}=this,c=lookupForeignDescriptor$LWS(n,l,e);let u;if(c){const{get:t,value:e}=c;if(t)if(c.l){const e=getTransferablePointer$LWS(t),a=s===o?n:"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o;let l;try{l=nt(e,a);}catch(t){var f;const e=null!=(f=qt)?f:t;throw qt=void 0,i&&r.error(e),e}"function"==typeof l?(l(),u=qt,qt=void 0):u=l;}else u=$(t,o,[]);else u=e;}else if(e===L&&16&a){let t;try{t=Mt(n);}catch(t){var y;const e=null!=(y=qt)?y:t;throw qt=void 0,i&&r.error(e),e}"Object"!==t&&(u=t);}return i&&r.stop(),u}:noop$LWS,BoundaryProxyHandler$LWS.hybridGetTrapForTypedArray=Q?function(t,e,o){let r;i&&(r=D("hybridGetTrapForTypedArray"));const{i:n,p:a,proxy:s,h:l}=this,c="string"==typeof e?+e:-1;let u;if(c>-1&&c<a&&Lt(c))try{u=Ht(n,e);}catch(t){var f;const e=null!=(f=qt)?f:t;throw qt=void 0,i&&r.error(e),e}else {const t=lookupForeignDescriptor$LWS(n,l,e);if(t){const{get:e,value:a}=t;if(e)if(t.l){const t=getTransferablePointer$LWS(e),a=s===o?n:"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o;let l;try{l=nt(t,a);}catch(t){var y;const e=null!=(y=qt)?y:t;throw qt=void 0,i&&r.error(e),e}"function"==typeof l?(l(),u=qt,qt=void 0):u=l;}else u=$(e,o,[]);else u=a;}}return i&&r.stop(),u}:noop$LWS,BoundaryProxyHandler$LWS.nt=Q?function(t,e){let o,r;i&&(o=D("hybridHasTrap"));try{r=Zt(this.i,e);}catch(t){var n;const e=null!=(n=qt)?n:t;throw qt=void 0,i&&o.error(e),e}let a=!1;if(!0===r)a=!0;else {let t=null;for("function"==typeof r&&(r(),t=qt,qt=void 0);t;){if(Z(t,e)){a=!0;break}t=T(t);}}return i&&o.stop(),a}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.it=Q?noop$LWS:function(t,e,o){if(te&&(te=128===ee),ee=16,te){if(e===tt)return !0;if(e===q)return this.serializedValue}let r;i&&(r=D("Reflect.get"));const{i:n,u:a,proxy:s}=this;"undefined"==typeof o&&(o=s);const l=s===o?et:"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o;let c,u;try{c=ht(n,a,e,l);}catch(t){var f;const e=null!=(f=qt)?f:t;throw qt=void 0,i&&r.error(e),e}return "function"==typeof c?(c(),u=qt,qt=void 0):u=c,i&&r.stop(),u},BoundaryProxyHandler$LWS.st=Q?alwaysFalse$LWS:function(t,e){let o,r;ee=128,i&&(o=D("Reflect.has"));try{r=bt(this.i,e);}catch(t){var n;const e=null!=(n=qt)?n:t;throw qt=void 0,i&&o.error(e),e}return te=!r&&(e===tt||e===q),i&&o.stop(),r},BoundaryProxyHandler$LWS.lt=Q?function(t,e,o){return Gt(this.i)?this.j():this.C(),this.defineProperty(t,e,o)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.ct=Q?function(t,e){return Gt(this.i)?this.j():this.C(),this.deleteProperty(t,e)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.ut=Q?function(t){return Gt(this.i)?this.j():this.C(),this.preventExtensions(t)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.ft=Q?function(t,e){return Gt(this.i)?this.j():this.C(),this.setPrototypeOf(t,e)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.yt=Q?function(t,e,o,r){return Gt(this.i)?this.j():this.C(),this.set(t,e,o,r)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.I=Q?W:alwaysFalse$LWS,BoundaryProxyHandler$LWS.D=Q?v:alwaysFalse$LWS,BoundaryProxyHandler$LWS.K=Q?P:noop$LWS,BoundaryProxyHandler$LWS.G=Q?T:()=>null,BoundaryProxyHandler$LWS.N=Q?function(t,e,o){const{u:r,L:n}=this,a=b(t,e,o);return void 0===a&&e===L&&16&r&&"Object"!==n&&!w(t,e)?n:a}:noop$LWS,BoundaryProxyHandler$LWS.V=Q?w:alwaysFalse$LWS,BoundaryProxyHandler$LWS.U=Q?m:alwaysFalse$LWS,BoundaryProxyHandler$LWS.X=Q?x:()=>[],BoundaryProxyHandler$LWS.Z=Q?O:alwaysFalse$LWS,BoundaryProxyHandler$LWS.Y=Q?A:alwaysFalse$LWS,BoundaryProxyHandler$LWS.J=Q?_:alwaysFalse$LWS,BoundaryProxyHandler$LWS.$=Q?BoundaryProxyHandler$LWS.lt:BoundaryProxyHandler$LWS.M,BoundaryProxyHandler$LWS.g=Q?BoundaryProxyHandler$LWS.ct:BoundaryProxyHandler$LWS.F,BoundaryProxyHandler$LWS.v=BoundaryProxyHandler$LWS.ot,BoundaryProxyHandler$LWS.P=BoundaryProxyHandler$LWS.q,BoundaryProxyHandler$LWS.T=Q?BoundaryProxyHandler$LWS.rt:BoundaryProxyHandler$LWS.it,BoundaryProxyHandler$LWS.m=Q?BoundaryProxyHandler$LWS.nt:BoundaryProxyHandler$LWS.st,BoundaryProxyHandler$LWS.W=BoundaryProxyHandler$LWS.tt,BoundaryProxyHandler$LWS.O=BoundaryProxyHandler$LWS.et,BoundaryProxyHandler$LWS._=Q?BoundaryProxyHandler$LWS.ut:BoundaryProxyHandler$LWS.H,BoundaryProxyHandler$LWS.B=Q?BoundaryProxyHandler$LWS.yt:BoundaryProxyHandler$LWS.k,BoundaryProxyHandler$LWS.A=Q?BoundaryProxyHandler$LWS.ft:BoundaryProxyHandler$LWS.R,e(createPointer$LWS(It),Q?noop$LWS:()=>{const t=qt;return qt=void 0,t},t=>"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,(t,e)=>{t();const o=qt;qt=void 0;const r=null==o?void 0:o[e];return createPointer$LWS("undefined"==typeof r?void 0:r)},Q?t=>{let e;try{e=Ct(t);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):e}:noop$LWS,(t,e)=>{t();const o=qt;qt=void 0,("object"==typeof o&&null!==o||"function"==typeof o)&&h.set(o,e);},ot?(t,e,o,r,n)=>{const a=pushTarget$LWS(t,e,o,r,n);return ()=>(re(),a())}:pushTarget$LWS,pushTarget$LWS,(t,e,...o)=>{t();const r=qt;let n,a;qt=void 0,"function"==typeof e&&(e(),n=qt,qt=void 0);for(let t=0,{length:e}=o;t<e;t+=1){const e=o[t];"function"==typeof e&&(e(),o[t]=qt,qt=void 0);}try{a=$(r,n,o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):"undefined"==typeof a?void 0:a},(t,e,...o)=>{t();const r=qt;let n,a;qt=void 0,"function"==typeof e&&(e(),n=qt,qt=void 0);for(let t=0,{length:e}=o;t<e;t+=1){const e=o[t];"function"==typeof e&&(e(),o[t]=qt,qt=void 0);}try{a=g(r,o,n);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):"undefined"==typeof a?void 0:a},(t,e,o,r,n,a,i,s,l)=>{t();const c=qt;qt=void 0;const u=createDescriptorFromMeta$LWS(o,r,n,a,i,s);let f=!1;try{f=W(c,e,u);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(f&&!1===o){let t;try{t=P(c,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(t&&(A(t,null),!1===t.configurable)){const{get:o,set:r,value:n}=t;l(e,!1,"enumerable"in t?t.enumerable:et,"writable"in t?t.writable:et,"value"in t?"object"==typeof n&&null!==n||"function"==typeof n?getTransferablePointer$LWS(n):n:et,"get"in t?"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o:et,"set"in t?"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):r:et);}}return f},(t,e)=>{t();const o=qt;qt=void 0;try{return v(o,e)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e,o,r)=>{t();const n=qt;let a,i;qt=void 0,"function"==typeof r?(r(),a=qt,qt=void 0):a=r===et?n:r;try{i=b(n,o,a);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if("object"==typeof i&&null!==i||"function"==typeof i)return getTransferablePointer$LWS(i);if(void 0===i&&o===L&&16&e)try{if(!w(n,o)){const t=$(K,n,[]);"[object Object]"!==t&&(i=$(xt,t,[8,-1]));}}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof i?void 0:i},(t,e,o)=>{t();const r=qt;let n;qt=void 0;try{n=P(r,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(n){A(n,null);const{get:t,set:r,value:a}=n;o(e,"configurable"in n?n.configurable:et,"enumerable"in n?n.enumerable:et,"writable"in n?n.writable:et,"value"in n?"object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):"undefined"==typeof a?void 0:a:et,"get"in n?"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):t:et,"set"in n?"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):r:et);}},t=>{t();const e=qt;let o;qt=void 0;try{o=T(e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof o?null:o?getTransferablePointer$LWS(o):o},(t,e)=>{t();const o=qt;qt=void 0;try{return w(o,e)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},t=>{t();const e=qt;qt=void 0;try{return m(e)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e)=>{t();const o=qt;let r;qt=void 0;try{r=x(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}$(e,void 0,r);},t=>{t();const e=qt;qt=void 0;let o=2;try{O(e)?o=4:m(e)&&(o|=1);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return o},(t,e,o,r)=>{t();const n=qt;let a,i;qt=void 0,"function"==typeof o?(o(),a=qt,qt=void 0):a=o,"function"==typeof r?(r(),i=qt,qt=void 0):i=r===et?n:r;try{return _(n,e,a,i)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e=null)=>{t();const o=qt;let r;qt=void 0,"function"==typeof e?(e(),r=qt,qt=void 0):r=null;try{return A(o,r)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},ot?(...t)=>{if(re()){for(let e=0,{length:o}=t;e<o;e+=1){const o=t[e];"function"==typeof o&&(o(),t[e]=qt,qt=void 0);}try{$(Rt,kt,t);}catch(t){}}}:noop$LWS,Q?(t,...e)=>{t();const o=qt;qt=void 0;for(let t=0,{length:r}=e;t<r;t+=7)W(o,e[t],createDescriptorFromMeta$LWS(e[t+1],e[t+2],e[t+3],e[t+4],e[t+5],e[t+6]));}:noop$LWS,Q?noop$LWS:t=>{t();const e=qt;qt=void 0;const o=fe.get(e);return o?getTransferablePointer$LWS(o):o},Q?()=>0:t=>{t();const e=qt;qt=void 0;try{if(!m(e))return H(e)||k(e)?0:1}catch(t){try{at(e);}catch(t){return 8}}return 0},t=>{t();const e=qt;qt=void 0;try{const t=$(K,e,[]);return "[object Object]"===t?"Object":$(xt,t,[8,-1])}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},Q?noop$LWS:(t,e)=>{t();const o=qt;qt=void 0;try{return o[e]}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},Kt,Q?(t,...e)=>{const o=$(st,e,[et]);let r,n;-1===o?r=e:(r=$(lt,e,[0,o]),n=$(lt,e,[o+1])),t();const a=qt;qt=void 0;let i=ne(a);void 0===i&&(i={__proto__:null},ie(a,i));for(let t=0,{length:e}=r;t<e;t+=1){const e=r[t];i[e]=!0,W(a,e,{__proto__:null,configurable:!0,get:()=>(oe(a,e,i),a[e]),set(t){oe(a,e,i),_(a,e,t);}});}ae(n);}:noop$LWS,Q?alwaysFalse$LWS:t=>{t();const e=qt;if(qt=void 0,e===C)return !1;try{if("object"==typeof e){const{constructor:t}=e;if(t===l)return !0;if(null===T(e)&&("function"!=typeof t||t.prototype!==e))return !0;try{return $(ut,e,[]),!0}catch(t){}try{if(e!==Wt)return $(wt,e,[]),!0}catch(t){}}return Z(e,Y)}catch(t){}return !1},Q?alwaysFalse$LWS:t=>{t();const e=qt;qt=void 0;try{return at(e),!1}catch(t){}return !0},Q?t=>{t();const e=qt;qt=void 0;try{return w(e,L)?Jt(e):Qt(e)}catch(t){}}:noop$LWS,Q?noop$LWS:(t,e)=>{t();const o=qt;qt=void 0,e();const r=qt;qt=void 0,fe.set(o,r);},(t,e)=>{t();const o=qt;let r;qt=void 0;try{r=M(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}const a=x(r),{length:i}=a,s=new n(7*i);for(let t=0,e=0;t<i;t+=1,e+=7){const o=a[t],n=r[o];A(n,null);const{get:i,set:l,value:c}=n;s[e]=o,s[e+1]="configurable"in n?n.configurable:et,s[e+2]="enumerable"in n?n.enumerable:et,s[e+3]="writable"in n?n.writable:et,s[e+4]="value"in n?"object"==typeof c&&null!==c||"function"==typeof c?getTransferablePointer$LWS(c):c:et,s[e+5]="get"in n?"object"==typeof i&&null!==i||"function"==typeof i?getTransferablePointer$LWS(i):i:et,s[e+6]="set"in n?"object"==typeof l&&null!==l||"function"==typeof l?getTransferablePointer$LWS(l):l:et;}let l;$(e,void 0,s);try{l=T(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof l?null:l?getTransferablePointer$LWS(l):l},(t,e)=>{t();const o=qt;let r;qt=void 0;try{if(Z(o,e))return !0;r=T(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof r?null:r?getTransferablePointer$LWS(r):r},(t,e,o)=>{t();const r=qt;let n,a;qt=void 0;try{n=P(r,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(n){A(n,null);const{get:t,set:r,value:a}=n;return o(e,"configurable"in n?n.configurable:et,"enumerable"in n?n.enumerable:et,"writable"in n?n.writable:et,"value"in n?"object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):"undefined"==typeof a?void 0:a:et,"get"in n?"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):t:et,"set"in n?"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):r:et),void 0}try{a=T(r);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof a?null:a?getTransferablePointer$LWS(a):a});let se=!1;return (...t)=>{if(se)return;se=!0,({6:G,7:rt,8:nt,9:ft,10:yt,11:dt,12:ht,13:$t,14:vt,15:bt,16:Pt,17:Tt,18:mt,19:Ot,20:At,21:Et,23:jt,24:Ft,25:Mt,26:Ht,27:Dt,29:Gt,30:Vt,31:Ut,32:zt,33:Xt,34:Zt,35:Yt}=t);const e=createApplyOrConstructTrapForZeroOrMoreArgs$LWS(1),o=createApplyOrConstructTrapForOneOrMoreArgs$LWS(1),r=createApplyOrConstructTrapForTwoOrMoreArgs$LWS(1),n=createApplyOrConstructTrapForThreeOrMoreArgs$LWS(1),a=createApplyOrConstructTrapForFourOrMoreArgs$LWS(1),i=createApplyOrConstructTrapForFiveOrMoreArgs$LWS(1),l=createApplyOrConstructTrapForAnyNumberOfArgs$LWS(1),c=createApplyOrConstructTrapForZeroOrMoreArgs$LWS(2),u=createApplyOrConstructTrapForOneOrMoreArgs$LWS(2),y=createApplyOrConstructTrapForTwoOrMoreArgs$LWS(2),d=createApplyOrConstructTrapForThreeOrMoreArgs$LWS(2),p=createApplyOrConstructTrapForFourOrMoreArgs$LWS(2),S=createApplyOrConstructTrapForFiveOrMoreArgs$LWS(2),h=createApplyOrConstructTrapForAnyNumberOfArgs$LWS(2),L=R({dt:e,St:o,ht:r,Lt:n,$t:a,gt:i,Wt:l,vt:c,bt:u,Pt:y,Tt:d,wt:p,xt:S,Ot:h});s[0]=L[0],s[1]=L[1],s[2]=L[2],s[3]=L[3],s[4]=L[4],s[5]=L[5],s.n=L[6],f[0]=L[7],f[1]=L[8],f[2]=L[9],f[3]=L[10],f[4]=L[11],f[5]=L[12],f.n=L[13];const{prototype:$}=BoundaryProxyHandler$LWS;$[s[0]]=e,$[s[1]]=o,$[s[2]]=r,$[s[3]]=n,$[s[4]]=a,$[s[5]]=i,$[s.n]=l,$[f[0]]=c,$[f[1]]=u,$[f[2]]=y,$[f[3]]=d,$[f[4]]=p,$[f[5]]=S,$[f.n]=h,A($,null),j($);}}}const ye=TypeError,de=WeakMap,pe=toSafeWeakMap$LWS(new de),Se=toSafeWeakMap$LWS(new de),he=`\n'use strict';\n(${createMembraneMarshall$LWS})`;function createBlueConnector$LWS(t){if("object"!=typeof t||null===t)throw new ye("Missing globalObject.");let e=Se.get(t);return void 0===e&&(e=createMembraneMarshall$LWS(t),Se.set(t,e)),e}function createRedConnector$LWS(t){if("function"!=typeof t)throw new ye("Missing evaluator function.");let e=pe.get(t);return void 0===e&&(e=t(he)(),pe.set(t,e)),e}const Le=Symbol.for("@@lockerNearMembraneUndefinedValue"),$e=Array,ge=Error,We=Object,{push:ve}=$e.prototype,{assign:be}=We,{apply:Pe,ownKeys:Te}=Reflect;class VirtualEnvironment$LWS{constructor(t){if(void 0===t)throw new ge("Missing VirtualEnvironmentOptions options bag.");const{_t:e,distortionCallback:o,instrumentation:r,redConnector:n}=be({__proto__:null},t);let a;const i=e("blue",(...t)=>{a=t;},{distortionCallback:o,instrumentation:r}),{0:s,1:l,2:c,3:u,5:f,6:y,7:d,8:p,9:S,10:h,11:L,12:$,13:g,14:W,15:v,16:b,17:P,18:T,19:w,20:m,21:x,23:O,24:_,25:A,26:B,27:E,29:j,30:F,31:M,32:H,33:k,34:R,35:C}=a;let I;const D=n("red",(...t)=>{I=t;}),{0:N,3:K,4:G,5:V,6:U,7:z,8:X,9:Z,10:Q,11:J,12:Y,13:q,14:tt,15:et,16:ot,17:rt,18:nt,19:at,20:it,21:st,22:lt,23:ct,24:ut,25:ft,26:yt,27:dt,28:pt,29:St,30:ht,31:Lt,32:$t,33:gt,34:Wt,35:vt}=I;i(void 0,void 0,void 0,void 0,void 0,void 0,U,z,X,Z,Q,J,Y,q,tt,et,ot,rt,nt,at,it,st,void 0,ct,ut,ft,yt,dt,void 0,St,ht,Lt,$t,gt,Wt,vt),D(void 0,void 0,void 0,void 0,void 0,void 0,y,d,p,S,h,L,$,g,W,v,b,P,T,w,m,x,void 0,O,_,A,B,E,void 0,j,F,M,H,k,R,C),this.At=s,this.Bt=l,this.Et=c,this.jt=u,this.Ft=f,this.redGlobalThisPointer=N,this.Mt=K,this.Ht=G,this.kt=V,this.Rt=it,this.Ct=lt,this.It=pt;}evaluate(t){try{const e=this.Ht(t);return "function"==typeof e?(e(),this.Bt()):e}catch(t){var e;throw null!=(e=this.Bt())?e:t}}Dt(t,e,o){const r=[this.Et(t)];Pe(ve,r,e),null!=o&&o.length&&(r[r.length]=Le,Pe(ve,r,o)),Pe(this.It,void 0,r);}link(...t){let e=this.At,o=this.redGlobalThisPointer;for(let r=0,{length:n}=t;r<n;r+=1){const n=t[r];e=this.jt(e,n),o=this.Mt(o,n),this.kt(o,e),this.Ft(e,o);}}Nt(t,e){const o=this.Et(t),r=Te(e),{length:n}=r,a=new $e(1+7*n);a[0]=o;for(let t=0,o=1;t<n;t+=1,o+=7){const n=r[t],i=e[n],s=be({__proto__:null},i);a[o]=n,a[o+1]="configurable"in s?!!s.configurable:Le,a[o+2]="enumerable"in s?!!s.enumerable:Le,a[o+3]="writable"in s?!!s.writable:Le,a[o+4]="value"in s?this.Et(s.value):Le,a[o+5]="get"in s?this.Et(s.get):Le,a[o+6]="set"in s?this.Et(s.set):Le;}Pe(this.Ct,this,a);}Kt(t,e){const o=this.Et(t),r=e?this.Et(e):e;this.Rt(o,r);}}const{assign:we}=Object,{ownKeys:me}=Reflect,xe=["AggregateError","Array","Error","EvalError","Function","Object","Proxy","RangeError","ReferenceError","SyntaxError","TypeError","URIError","eval","globalThis"],Oe=(_e=["globalThis","Infinity","NaN","undefined","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","BigInt","Boolean","FinalizationRegistry","Number","RegExp","String","Symbol","WeakRef","JSON","Math","Reflect","escape","unescape",...xe],Wt(_e,null),_e.at=wt,_e.concat=mt,_e.constructor=$t,_e.copyWithin=xt,_e.entries=Ot,_e.every=_t,_e.fill=At,_e.filter=Bt,_e.find=Et,_e.findIndex=jt,_e.flat=Ft,_e.flatMap=Mt,_e.forEach=Ht,_e.includes=kt,_e.indexOf=Rt,_e.join=Ct,_e.keys=It,_e.lastIndexOf=Dt,_e.map=Nt,_e.pop=Kt,_e.push=Gt,_e.reduce=Vt,_e.reduceRight=Ut,_e.reverse=zt,_e.shift=Xt,_e.slice=Zt,_e.some=Qt,_e.sort=Jt,_e.splice=Yt,_e.toLocaleString=qt,_e.toString=te,_e.unshift=ee,_e.values=oe,_e[vt]=re,_e[Pt]=ne,Wt(_e,Tt),_e);var _e;function getFilteredGlobalOwnKeys$LWS(t){const e=[];let o=0;const r=me(t);for(let t=0,{length:n}=r;t<n;t+=1){const n=r[t];Oe.includes(n)||(e[o++]=n);}return e}const{deleteProperty:Ae,getPrototypeOf:Be,ownKeys:Ee}=Reflect,je=toSafeWeakMap$LWS(new WeakMap),Fe=(()=>{const{navigator:t,navigator:{userAgentData:e}}=window,o=null==e?void 0:e.brands;if(Array.isArray(o)&&o.length?o.find(t=>"Chromium"===(null==t?void 0:t.brand)):/ (?:Headless)?Chrome\/\d+/.test(t.userAgent))return ["window"]})();function getCachedGlobalObjectReferences$LWS(t){let e=je.get(t);if(e)return e;const{document:o,window:r}=t,n=Be(r),a=Be(n),i=Be(a);return e={document:o,Gt:Be(o),window:r,Vt:n,Ut:a,zt:i,Xt:Ee(i)},je.set(t,e),e}function filterWindowKeys$LWS(t){const e=[];let o=0;for(let r=0,{length:n}=t;r<n;r+=1){const n=t[r];"document"!==n&&"location "!==n&&"top"!==n&&"window"!==n&&"chrome"!==n&&(e[o++]=n);}return e}getCachedGlobalObjectReferences$LWS(window);const Me=Object,He=TypeError,{prototype:ke}=Document,{prototype:Re}=Node,{remove:Ce,setAttribute:Ie}=Element.prototype,{appendChild:De}=Re,{assign:Ne}=Me,{__lookupGetter__:Ke}=Me.prototype,{apply:Ge}=Reflect,{close:Ve,createElement:Ue,open:ze}=ke,Xe=Ge(Ke,ke,["body"]),Ze=Ge(Ke,HTMLElement.prototype,["style"]),Qe=Ge(Ke,HTMLIFrameElement.prototype,["contentWindow"]),Je=Ge(Ke,Re,["lastChild"]),Ye=document;let qe=null;function createIframeVirtualEnvironment$LWS(t,e){if("object"!=typeof t||null===t)throw new He("Missing global object virtualization target.");const{distortionCallback:o,endowments:r,globalObjectShape:n,instrumentation:a,Zt:i=!1}=Ne({__proto__:null},e),s=function(){var t;const e=Ge(Ue,Ye,["iframe"]),o=null!=(t=Ge(Xe,Ye,[]))?t:Ge(Je,Ye,[]);return Ge(Ze,e,[]).display="none",Ge(Ie,e,["sandbox","allow-same-origin allow-scripts"]),Ge(De,o,[e]),e}(),l=Ge(Qe,s,[]),c="object"!=typeof n||null===n;c&&null===qe&&(qe=filterWindowKeys$LWS(getFilteredGlobalOwnKeys$LWS(l)));const u=getCachedGlobalObjectReferences$LWS(t),f=new VirtualEnvironment$LWS({_t:createBlueConnector$LWS(t),distortionCallback:o,instrumentation:a,redConnector:createRedConnector$LWS(l.eval)});if(!function(t,e){for(let o=0,{length:r}=xe;o<r;o+=1){const r=xe[o],n=e[r];n&&(n.prototype?t.link(r,"prototype"):t.link(r));}}(f,t),"undefined"==typeof globalThis?f.link("window","document"):f.link("document"),f.link("__proto__","__proto__","__proto__"),f.Kt(u.document,u.Gt),f.Dt(u.window,c?qe:filterWindowKeys$LWS(getFilteredGlobalOwnKeys$LWS(n)),i?void 0:Fe),r){const t={};!function(t,e){const o=me(e);for(let r=0,{length:n}=o;r<n;r+=1){const n=o[r];if(!Oe.includes(n)){const o=e[n];o&&(t[n]=we({__proto__:null},o));}}return t}(t,r),Ae(y=t,"document"),Ae(y,"location"),Ae(y,"top"),Ae(y,"window"),Ae(y,"chrome"),f.Nt(u.window,t);}var y;if(f.Dt(u.zt,u.Xt),i){const{document:t}=l;Ge(ze,t,[]),Ge(Ve,t,[]);}else Ge(Ce,s,[]);return f}const to=`'use strict';\n ${SANDBOX_EVAL_CONTEXT_NAME$LWS}(${function(t){const{Qt:e}=t,o=Array,r=Promise,n=TypeError,{asyncIterator:a,iterator:i}=Symbol,{[i]:s}=o.prototype,l=function*(){}.constructor.prototype.prototype,{next:c,throw:u}=l,{delete:f,get:y,set:d}=Map.prototype,{appendChild:p}=Node.prototype,{defineProperties:S,freeze:h}=Object,{then:L}=r.prototype,$=r.resolve.bind(r),{apply:g,getPrototypeOf:W,setPrototypeOf:v}=Reflect,{replace:b}=String.prototype,{get:P,set:T}=WeakMap.prototype,{createElement:w}=Document.prototype,{querySelector:m,setAttribute:x}=Element.prototype,{stopPropagation:O}=Event.prototype,{addEventListener:_,removeEventListener:A}=EventTarget.prototype,B=document,{head:E}=B,j=new Map,F=/\\?'/g,M="data-locker-id",H=`${crypto.getRandomValues(new Uint32Array(1))[0]}`;class LockerSecurityError$LWS extends Error{constructor(t){super(`Lightning Web Security: ${t}`);}}function escapeSingleQuotes$LWS(t){return g(b,t,[F,"\\'"])}function genStep$LWS(t,e,o,r,n,a,i){let s,l;try{s=g(a,t,[i]),l=s.value;}catch(t){return o(t),void 0}s.done?e(l):$(l).then(r,n);}function loadPromise$LWS(t,o){const n=new r((e,r)=>{function onerror$LWS(e){g(A,t,["error",onerror$LWS]),g(A,t,["load",onload$LWS]),g(O,e,[]),r(new LockerSecurityError$LWS(`Resource loader error loading '${escapeSingleQuotes$LWS(o)}'.`));}function onload$LWS(){g(A,t,["error",onerror$LWS]),g(A,t,["load",onload$LWS]),e(void 0);}g(_,t,["error",onerror$LWS]),g(_,t,["load",onload$LWS]);});return g(T,e,[t,n]),g(p,E,[t]),n}function spreadable$LWS(t){return v(t,null),t[i]=s,t}function toString$LWS(t){return "string"==typeof t?t:`${t}`}return {asyncToGen:function(t,e,o){return new r((r,n)=>{const a=g(t,e,o);function next$LWS(t){genStep$LWS(a,r,n,next$LWS,thrower$LWS,c,t);}function thrower$LWS(t){genStep$LWS(a,r,n,next$LWS,thrower$LWS,u,t);}next$LWS(void 0);})},forAwaitOf:function(t,e,o){if(0===e){let e=!1,{[a]:r}=o;if(null==r&&(e=!0,({[i]:r}=o)),"function"!=typeof r)throw new n("Object is not iterable.");return g(d,j,[t,{iterable:g(r,o,[]),step:void 0,sync:e}]),void 0}const s=g(y,j,[t]);if(1===e){const t=s.iterable.next();return s.sync?new r(e=>{s.step=t,e();}):g(L,t,[t=>{s.step=t;}])}if(2===e)return s.step.value;if(3===e){const e=!!s.step.done;return e&&g(f,j,[t]),e}},loadScript:function(t,o){const r=toString$LWS(o);let n=g(m,E,[`script[data-distorted-src='${escapeSingleQuotes$LWS(r)}'][data-locker-id='${H}']`]);var a;return n?null!=(a=g(P,e,[n]))?a:$():(n=g(w,B,["script"]),g(x,n,[M,H]),n.type="text/javascript",n.src=r,loadPromise$LWS(n,r))},loadStyle:function(t,o){const r=toString$LWS(o);let n=g(m,E,[`link[href='${escapeSingleQuotes$LWS(r)}']`]);var a;return n?null!=(a=g(P,e,[n]))?a:$():(n=g(w,B,["link"]),n.type="text/css",n.rel="stylesheet",n.href=r,loadPromise$LWS(n,r))},makeRedGet:function(...t){const{length:e}=t,r=o(e),n={};for(let o=0;o<e;o+=1)n[o]={__proto__:null,get:t[o]};return S(r,n),r},makeRedResyncImports:function(t){return function(){for(let e=0,{length:o}=t;e<o;e+=1)try{t[e];}catch(t){}return spreadable$LWS(t)}},namespace:function(t){return h(t)},spreadable:spreadable$LWS,super:function(t,e,o,r){const n=W(t.prototype)[e];return g(n,o,r)}}}})`;var eo,oo;!function(t){t[t.External=0]="External",t[t.Internal=1]="Internal";}(eo||(eo={})),ReflectSetPrototypeOf$LWS(eo,null),function(t){t[t.Script=0]="Script",t[t.Module=1]="Module";}(oo||(oo={})),ReflectSetPrototypeOf$LWS(oo,null);const ro="lws-core-sandbox",no={[SANDBOX_EVAL_CONTEXT_NAME$LWS]:{__proto__:null,get:()=>clearEvalContext$LWS()},[SANDBOX_EVAL_HELPERS_NAME$LWS]:{__proto__:null,get:()=>clearEvalHelpers$LWS()}},ao={__proto__:null,"lws-core-sandbox":{sandboxKey:"lws-core-sandbox"}},io=toSafeWeakMap$LWS$1(new WeakMapCtor$LWS),so=toSafeWeakMap$LWS$1(new WeakMapCtor$LWS);let lo,co;function clearEvalContext$LWS(){const t=lo;return lo=void 0,t}function clearEvalHelpers$LWS(){const t=co;return co=void 0,t}function createDistortionEntries$LWS(t){const{globalObject:o,instrumentation:r,key:a,type:i,verboseInstrumentation:s}=t,{error:l}=r,c={context:void 0,endowments:void 0,globalObject:o,instrumentation:r,key:a,source:"",sourceType:oo.Script,type:i,verboseInstrumentation:s},{Document:u,Element:f,HTMLElement:y,HTMLIFrameElement:d,HTMLScriptElement:p,SVGElement:S,XSLTProcessor:h}=o,L=s&&"object"==typeof r&&null!==r,$=L?getBasicInstrumentationData$LWS(a):void 0,evaluator$LWS=(t,e,o)=>{const r=ObjectAssign$LWS({},c);return r.context=o,r.globalObject=e,r.source=t,evaluateInSandbox$LWS(r)},g=L?r.startActivity:void 0,W=i===eo.Internal?ArrayConcat$LWS(internalDistortionFactories$LWS,internalKeyedDistortionFactories$LWS):ArrayConcat$LWS(externalDistortionFactories$LWS,externalKeyedDistortionFactories$LWS);createBlockedPropertyDistortionFactories$LWS(CustomElementRegistry.prototype,CustomElementRegistryBlockedProperties$LWS,W),createBlockedPropertyDistortionFactories$LWS(u.prototype,DocumentBlockedProperties$LWS,W),createBlockedPropertyDistortionFactories$LWS(f.prototype,ElementBlockedProperties$LWS,W),createBlockedPropertyDistortionFactories$LWS(y.prototype,HTMLElementBlockedProperties$LWS,W),createBlockedPropertyDistortionFactories$LWS(d.prototype,HTMLIFrameElementBlockedProperties$LWS,W),createBlockedPropertyDistortionFactories$LWS(HTMLEmbedElement.prototype,HTMLEmbedElementBlockedProperties$LWS,W),createBlockedPropertyDistortionFactories$LWS(HTMLObjectElement.prototype,HTMLObjectElementBlockedProperties$LWS,W),createBlockedPropertyDistortionFactories$LWS(p.prototype,HTMLScriptElementBlockedProperties$LWS,W),createBlockedPropertyDistortionFactories$LWS(S.prototype,SVGElementBlockedProperties$LWS,W),"function"==typeof h&&createBlockedPropertyDistortionFactories$LWS(h.prototype,XSLTProcessorBlockedProperties$LWS,W),distortBlockedAttributes$LWS(o,y,HTMLElementBlockedAttributes$LWS),distortBlockedAttributes$LWS(o,d,HTMLIFrameElementBlockedAttributes$LWS),distortBlockedAttributes$LWS(o,p,HTMLScriptElementBlockedAttributes$LWS),distortBlockedAttributes$LWS(o,S,SVGElementBlockedAttributes$LWS);const v=[];let b=0;for(let t=0,{length:s}=W;t<s;t+=1){const s=W[t],c=s(o,{evaluator:evaluator$LWS,key:a,instrumentation:r,sandboxType:i});if(!ArrayIsArray$LWS(c))continue;const{0:u,1:f}=c;if(!isObjectLike$LWS(u))continue;let y=f;if("function"==typeof f){let t;if(L){const{name:e}=s;t=e?ReflectApply$LWS(StringProtoReplace$LWS,e,[LOCKER_IDENTIFIER_MARKER$LWS,""]):"<unknown>";}const e=new ProxyCtor$LWS(u,ObjectFreeze$LWS({apply(o,r,i){let s;r===e&&(r=f),L&&(s=g(t,$));try{return ReflectApply$LWS(f,r,i)}catch(t){throw l({sandboxKey:a,error:t}),t}finally{L&&s.stop();}},construct(o,r,n){let i;n===e&&(n=f),L&&(i=g(t,$));try{return ReflectConstruct$LWS(f,r,n)}catch(t){throw l({sandboxKey:a,error:t}),t}finally{L&&i.stop();}}}));y=e;}v[b++]=[u,y];}return createAttributeDistortionsForSandboxKey$LWS(o,a,v),v}function getBasicInstrumentationData$LWS(t){let e=ao[t];return void 0===e&&(e={sandboxKey:t},ao[t]=e),e}function setEvalContext$LWS(t){lo=t;}function createEvaluateOptionsFromArgs$LWS(t){var e;const{length:o}=t,r=o?t[0]:void 0,n=1===o&&isObjectLike$LWS(r);return ObjectAssign$LWS({__proto__:null,context:o>2?t[2]:void 0,endowments:o>3?t[3]:void 0,globalObject:window,instrumentation:null!=(e=o>4?t[4]:void 0)?e:defaultInstrumentation$LWS,key:n?void 0:r,source:o>1?t[1]:void 0,sourceType:oo.Module,type:eo.External,verboseInstrumentation:o>5&&t[5]||!1},n?r:void 0)}function evaluateInCoreSandbox$LWS(...t){const e=createEvaluateOptionsFromArgs$LWS(t);return e.key="lws-core-sandbox",e.type=eo.Internal,evaluateInSandbox$LWS(e)}function evaluateInSandbox$LWS(...t){const e=createEvaluateOptionsFromArgs$LWS(t),{context:o,endowments:r,globalObject:a,instrumentation:i,key:s,source:l,sourceType:c,type:u,verboseInstrumentation:f}=e;if("string"!=typeof s)throw new LockerSecurityError$LWS("Invalid sandbox key.");const y="object"==typeof i&&null!==i,d=y?getBasicInstrumentationData$LWS(s):void 0,p=y?i.startActivity:void 0;let S;y&&(S=p("evaluateInSandbox",d));let h=so.get(a);void 0===h&&(h={__proto__:null},so.set(a,h));let L=h[s];if(void 0===L){const t={context:void 0,endowments:void 0,globalObject:a,instrumentation:i,key:s,source:"",sourceType:oo.Script,type:u,verboseInstrumentation:f},e=toSafeMap$LWS(new MapCtor$LWS(createDistortionEntries$LWS(t)));e.set(a,a);const o=createIframeVirtualEnvironment$LWS(a,{distortionCallback(o){const r=e.get(o);if(r)return r;let n;const a=getDocumentDefaultView$LWS(o);if(a?(n=a,e.set(o,o)):isWindow$LWS(o)&&(n=o),n){e.set(n,n);const o=ObjectAssign$LWS({},t);o.globalObject=n;const r=createDistortionEntries$LWS(o);for(let t=0,{length:o}=r;t<o;t+=1){const{0:o,1:n}=r[t];e.set(o,n);}let a;o.context=t=>{a=t;},o.source=`${SANDBOX_EVAL_CONTEXT_NAME$LWS}(this)`,evaluateInSandbox$LWS(o),e.set(a,n);}return o},endowments:ObjectAssign$LWS({},no,r?ObjectGetOwnPropertyDescriptors$LWS(r):void 0),Zt:!1,instrumentation:f?i:void 0});L={evaluate:t=>o.evaluate(t),Jt:{}},setEvalContext$LWS(t=>{ObjectAssign$LWS(L.Jt,t({Qt:io}));}),L.evaluate(to),h[s]=L;}var $;let g;setEvalContext$LWS(o),$=L.Jt,co=$;const W=function(t,e=oo.Module){let o="function"==typeof t?extractFunctionBodySource$LWS(t):toString$LWS(t);return o=ReflectApply$LWS(StringProtoReplace$LWS,o,[/\/\/# sandbox(?=MappingURL=.*?\s*$)/,"//# source"]),e===oo.Module&&-1===indexOfPragma$LWS(o,"use strict")?`'use strict';${o}`:o}(l,c);try{g=L.evaluate(W);}catch(t){throw y&&S.error({sandboxKey:s,error:t}),t}finally{clearEvalContext$LWS(),clearEvalHelpers$LWS();}return y&&S.stop(),g}
7544
7705
 
7545
- export { $e as CORE_SANDBOX_KEY, ge as SandboxType, Le as SourceType, createEvaluateOptionsFromArgs$LWS as createEvaluateOptionsFromArgs, evaluateInCoreSandbox$LWS as evaluateInCoreSandbox, evaluateInSandbox$LWS as evaluateInSandbox };
7706
+ export { ro as CORE_SANDBOX_KEY, eo as SandboxType, oo as SourceType, createEvaluateOptionsFromArgs$LWS as createEvaluateOptionsFromArgs, evaluateInCoreSandbox$LWS as evaluateInCoreSandbox, evaluateInSandbox$LWS as evaluateInSandbox };