@lwrjs/client-modules 0.6.5 → 0.7.0-alpha.10

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.
@@ -98,7 +98,6 @@ const {
98
98
  assign: ObjectAssign$LWS,
99
99
  getOwnPropertyDescriptors: ObjectGetOwnPropertyDescriptors$LWS,
100
100
  freeze: ObjectFreeze$LWS,
101
- getOwnPropertyNames: ObjectGetOwnPropertyNames$LWS,
102
101
  getOwnPropertySymbols: ObjectGetOwnPropertySymbols$LWS,
103
102
  keys: ObjectKeys$LWS,
104
103
  preventExtensions: ObjectPreventExtensions$LWS,
@@ -278,7 +277,6 @@ const {
278
277
  const {
279
278
  clear: MapProtoClear$LWS,
280
279
  entries: MapProtoEntries$LWS,
281
- forEach: MapProtoForEach$LWS,
282
280
  get: MapProtoGet$LWS,
283
281
  set: MapProtoSet$LWS
284
282
  } = MapProto$LWS;
@@ -304,10 +302,6 @@ function MapEntries$LWS(map$LWS) {
304
302
  return ReflectApply$LWS(MapProtoEntries$LWS, map$LWS, []);
305
303
  }
306
304
 
307
- function MapForEach$LWS(map$LWS, iteratee$LWS) {
308
- return ReflectApply$LWS(MapProtoForEach$LWS, map$LWS, [iteratee$LWS]);
309
- }
310
-
311
305
  function MapGet$LWS(map$LWS, key$LWS) {
312
306
  return ReflectApply$LWS(MapProtoGet$LWS, map$LWS, [key$LWS]);
313
307
  }
@@ -346,7 +340,6 @@ const {
346
340
  prototype: StringProto$LWS
347
341
  } = StringCtor$LWS;
348
342
  const {
349
- charCodeAt: StringProtoCharCodeAt$LWS,
350
343
  includes: StringProtoIncludes$LWS,
351
344
  match: StringProtoMatch$LWS,
352
345
  replace: StringProtoReplace$LWS,
@@ -371,19 +364,6 @@ function capitalizeFirstChar$LWS(string$LWS) {
371
364
  return length$LWS === 1 ? upper$LWS : upper$LWS + StringSlice$LWS(string$LWS, 1);
372
365
  }
373
366
 
374
- function isConvertibleToString$LWS(value$LWS) {
375
- if (typeof value$LWS !== 'symbol') {
376
- try {
377
- // Attempt to coerce `value` to a string with the ToString operation.
378
- // Section 7.1.17 ToString ( argument )
379
- // https://tc39.es/ecma262/#sec-tostring
380
- return `${value$LWS}` !== undefined; // eslint-disable-next-line no-empty
381
- } catch (_unused7$LWS) {}
382
- }
383
-
384
- return false;
385
- }
386
-
387
367
  function isStringObject$LWS(value$LWS) {
388
368
  if (typeof value$LWS === 'object' && value$LWS !== null) {
389
369
  try {
@@ -394,16 +374,12 @@ function isStringObject$LWS(value$LWS) {
394
374
  // b. Assert: Type(s) is String.
395
375
  ReflectApply$LWS(StringProtoValueOf$LWS, value$LWS, []);
396
376
  return true; // eslint-disable-next-line no-empty
397
- } catch (_unused8$LWS) {}
377
+ } catch (_unused7$LWS) {}
398
378
  }
399
379
 
400
380
  return false;
401
381
  }
402
382
 
403
- function StringCharCodeAt$LWS(string$LWS, index$LWS) {
404
- return ReflectApply$LWS(StringProtoCharCodeAt$LWS, string$LWS, [index$LWS]);
405
- }
406
-
407
383
  function StringIncludes$LWS(string$LWS, ...args$LWS) {
408
384
  return ReflectApply$LWS(StringProtoIncludes$LWS, string$LWS, args$LWS);
409
385
  }
@@ -438,11 +414,8 @@ function StringToUpperCase$LWS(string$LWS) {
438
414
 
439
415
  function toString$LWS(value$LWS) {
440
416
  try {
441
- // Attempt to coerce `value` to a string with the String() constructor.
442
- // Section 22.1.1.1 String ( value )
443
- // https://tc39.es/ecma262/#sec-string-constructor-string-value
444
417
  return StringCtor$LWS(value$LWS); // eslint-disable-next-line no-empty
445
- } catch (_unused9$LWS) {}
418
+ } catch (_unused8$LWS) {}
446
419
 
447
420
  return '';
448
421
  }
@@ -456,6 +429,7 @@ const {
456
429
  prototype: RegExpProto$LWS
457
430
  } = RegExpCtor$LWS;
458
431
  const {
432
+ exec: RegExpProtoExec$LWS,
459
433
  test: RegExpProtoTest$LWS
460
434
  } = RegExpProto$LWS;
461
435
  const RegExpProtoSourceGetter$LWS = ObjectLookupOwnGetter$LWS(RegExpProto$LWS, 'source');
@@ -477,11 +451,15 @@ function isRegExp$LWS(value$LWS) {
477
451
  return true;
478
452
  } // eslint-disable-next-line no-empty
479
453
 
480
- } catch (_unused10$LWS) {}
454
+ } catch (_unused9$LWS) {}
481
455
 
482
456
  return false;
483
457
  }
484
458
 
459
+ function RegExpExec$LWS(regexp$LWS, content$LWS) {
460
+ return ReflectApply$LWS(RegExpProtoExec$LWS, regexp$LWS, [toString$LWS(content$LWS)]);
461
+ }
462
+
485
463
  function RegExpTest$LWS(regexp$LWS, content$LWS) {
486
464
  return ReflectApply$LWS(RegExpProtoTest$LWS, regexp$LWS, [toString$LWS(content$LWS)]);
487
465
  }
@@ -505,7 +483,7 @@ function isSet$LWS(value$LWS) {
505
483
  // Step 2: Perform ? RequireInternalSlot(S, [[SetData]]).
506
484
  ReflectApply$LWS(SetProtoSizeGetter$LWS, value$LWS, []);
507
485
  return true; // eslint-disable-next-line no-empty
508
- } catch (_unused11$LWS) {}
486
+ } catch (_unused10$LWS) {}
509
487
 
510
488
  return false;
511
489
  }
@@ -531,8 +509,7 @@ const {
531
509
  valueOf: SymbolProtoValueOf$LWS
532
510
  } = SymbolCtor$LWS.prototype;
533
511
  const {
534
- for: SymbolFor$LWS,
535
- iterator: SymbolIterator$LWS
512
+ for: SymbolFor$LWS
536
513
  } = SymbolCtor$LWS;
537
514
 
538
515
  function isSymbolObject$LWS(value$LWS) {
@@ -545,7 +522,7 @@ function isSymbolObject$LWS(value$LWS) {
545
522
  // b. Assert: Type(s) is Symbol.
546
523
  ReflectApply$LWS(SymbolProtoValueOf$LWS, value$LWS, []);
547
524
  return true; // eslint-disable-next-line no-empty
548
- } catch (_unused12$LWS) {}
525
+ } catch (_unused11$LWS) {}
549
526
  }
550
527
 
551
528
  return false;
@@ -566,7 +543,7 @@ function isWeakMap$LWS(value$LWS) {
566
543
  // Step 2: Perform ? RequireInternalSlot(M, [[WeakMapData]]).
567
544
  ReflectApply$LWS(WeakMapProtoHas$LWS, value$LWS, []);
568
545
  return true; // eslint-disable-next-line no-empty
569
- } catch (_unused13$LWS) {}
546
+ } catch (_unused12$LWS) {}
570
547
  }
571
548
 
572
549
  return false;
@@ -592,7 +569,7 @@ function isWeakSet$LWS(value$LWS) {
592
569
  // Step 2: 2. Perform ? RequireInternalSlot(S, [[WeakSetData]]).
593
570
  ReflectApply$LWS(WeakSetProtoHas$LWS, value$LWS, []);
594
571
  return true; // eslint-disable-next-line no-empty
595
- } catch (_unused14$LWS) {}
572
+ } catch (_unused13$LWS) {}
596
573
  }
597
574
 
598
575
  return false;
@@ -600,7 +577,14 @@ function isWeakSet$LWS(value$LWS) {
600
577
 
601
578
  const {
602
579
  toStringTag: TO_STRING_TAG_SYMBOL$LWS
603
- } = Symbol;
580
+ } = Symbol; // Regular expressions from Acorn:
581
+ // acorn/src/parseutil.js
582
+ // acorn/src/whitespace.js
583
+
584
+ const expressionCharRegExp$LWS = /[(`.[+\-/*%<>=,?^&]/;
585
+ const lineBreakRegExp$LWS = /\r\n?|\n|\u2028|\u2029/;
586
+ const skipWhiteSpacesRegExp$LWS = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
587
+ const stringLiteralRegExp$LWS = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;
604
588
 
605
589
  function getBrandByTrailAndError$LWS(value$LWS) {
606
590
  // Internally these brand checks rely on native methods that throw and catch
@@ -695,7 +679,49 @@ function getBrand$LWS(value$LWS) {
695
679
 
696
680
  const getTimestamp$LWS = typeof performance === 'undefined' ?
697
681
  /* istanbul ignore next: unreachable in test env */
698
- DateNow$LWS : FunctionBind$LWS(performance.now, performance);
682
+ DateNow$LWS : FunctionBind$LWS(performance.now, performance); // Based on Acorn strictDirective() parser utility.
683
+ // Copyright 2012-2022. Released under MIT License.
684
+ // https://github.com/acornjs/acorn/blob/master/acorn/src/parseutil.js
685
+
686
+ function indexOfPragma$LWS(source$LWS, pragma$LWS) {
687
+ let pos$LWS = 0; // eslint-disable-next-line no-constant-condition
688
+
689
+ while (true) {
690
+ skipWhiteSpacesRegExp$LWS.lastIndex = pos$LWS;
691
+ pos$LWS += RegExpExec$LWS(skipWhiteSpacesRegExp$LWS, source$LWS)[0].length;
692
+ const stringLiteralMatch$LWS = RegExpExec$LWS(stringLiteralRegExp$LWS, StringSlice$LWS(source$LWS, pos$LWS));
693
+
694
+ if (stringLiteralMatch$LWS === null) {
695
+ return -1;
696
+ }
697
+
698
+ if ((stringLiteralMatch$LWS[1] || stringLiteralMatch$LWS[2]) === pragma$LWS) {
699
+ skipWhiteSpacesRegExp$LWS.lastIndex = pos$LWS + stringLiteralMatch$LWS[0].length;
700
+ const spaceAfterMatch$LWS = RegExpExec$LWS(skipWhiteSpacesRegExp$LWS, source$LWS);
701
+ const end$LWS = spaceAfterMatch$LWS.index + spaceAfterMatch$LWS[0].length;
702
+ const nextChar$LWS = source$LWS[end$LWS];
703
+
704
+ if (nextChar$LWS === ';' || nextChar$LWS === '}') {
705
+ return pos$LWS;
706
+ }
707
+
708
+ const indexAfterNext$LWS = end$LWS + 1;
709
+
710
+ if (RegExpTest$LWS(lineBreakRegExp$LWS, spaceAfterMatch$LWS[0]) && !(nextChar$LWS === '!' && indexAfterNext$LWS < source$LWS.length && source$LWS[indexAfterNext$LWS] === '=' || RegExpTest$LWS(expressionCharRegExp$LWS, nextChar$LWS))) {
711
+ return pos$LWS;
712
+ }
713
+ }
714
+
715
+ pos$LWS += stringLiteralMatch$LWS[0].length; // Skip semicolon, if any.
716
+
717
+ skipWhiteSpacesRegExp$LWS.lastIndex = pos$LWS;
718
+ pos$LWS += RegExpExec$LWS(skipWhiteSpacesRegExp$LWS, source$LWS)[0].length;
719
+
720
+ if (source$LWS[pos$LWS] === ';') {
721
+ pos$LWS += 1;
722
+ }
723
+ }
724
+ }
699
725
 
700
726
  function toSafeDescriptor$LWS(desc$LWS) {
701
727
  ReflectSetPrototypeOf$LWS(desc$LWS, null);
@@ -850,7 +876,110 @@ const PromiseReject$LWS = Promise.reject.bind(Promise);
850
876
  function PromiseThen$LWS(promise$LWS, ...args$LWS) {
851
877
  return ReflectApply$LWS(PromiseProtoThen$LWS, promise$LWS, args$LWS);
852
878
  }
853
- /*! version: 0.15.16 */
879
+ /*! version: 0.16.1 */
880
+
881
+ /*!
882
+ * Copyright (C) 2021 salesforce.com, inc.
883
+ */
884
+ /* eslint-disable class-methods-use-this, max-classes-per-file */
885
+
886
+ let ticketSequence$LWS = 0;
887
+
888
+ function getActivityId$LWS() {
889
+ ticketSequence$LWS += 1;
890
+ return DateNow$LWS() + ticketSequence$LWS;
891
+ } // Locker Instrumentation Activity class
892
+
893
+ /* eslint no-underscore-dangle: ['error',{allowAfterThis:true}] */
894
+
895
+
896
+ class LockerActivity$LWS {
897
+ constructor(activityName$LWS, startCallback$LWS, stopCallback$LWS, captureTimestamps$LWS = false) {
898
+ this._activityStart = 0;
899
+ this._activityStop = 0;
900
+ this._captureTimestamps = captureTimestamps$LWS;
901
+ this._startCallback = startCallback$LWS;
902
+ this._started = false;
903
+ this._stopCallback = stopCallback$LWS;
904
+ this._stopped = false;
905
+ this.activityId = `${activityName$LWS}-${getActivityId$LWS()}`;
906
+ this.activityName = activityName$LWS;
907
+ }
908
+ /*
909
+ * starts an activity
910
+ */
911
+
912
+
913
+ start(data$LWS) {
914
+ if (!this._started) {
915
+ this._started = true;
916
+
917
+ if (this._captureTimestamps) {
918
+ this._activityStart = getTimestamp$LWS();
919
+ }
920
+
921
+ if (typeof this._startCallback === 'function') {
922
+ this._startCallback(this, data$LWS);
923
+ }
924
+ }
925
+ }
926
+ /*
927
+ * stops the current activity
928
+ */
929
+
930
+
931
+ stop(data$LWS) {
932
+ if (!this._stopped) {
933
+ this._stopped = true;
934
+
935
+ if (this._captureTimestamps) {
936
+ this._activityStop = getTimestamp$LWS();
937
+ }
938
+
939
+ if (typeof this._stopCallback === 'function') {
940
+ this._stopCallback(this, data$LWS);
941
+ }
942
+ }
943
+ }
944
+ /*
945
+ * stop the current activity with error state.
946
+ */
947
+
948
+
949
+ error(data$LWS) {
950
+ // @TODO:
951
+ // Aura's metrics service ($A.metricsService) is the current
952
+ // instrumentation service used by Locker. The metrics service does not
953
+ // have an `error` API for perf activities. But O11y provides this
954
+ // feature. When Locker is able to integrate O11y, the following line
955
+ // should be calling O11y's error API instead of `stop()`.
956
+ this.stop(data$LWS);
957
+ }
958
+
959
+ get duration() {
960
+ return this._activityStop > this._activityStart ? this._activityStop - this._activityStart : 0;
961
+ }
962
+
963
+ } // Creates a new no-op Instrumentation instance.
964
+
965
+
966
+ class DefaultInstrumentation$LWS {
967
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
968
+ startActivity(activityName$LWS, _data$LWS) {
969
+ return new LockerActivity$LWS(activityName$LWS, undefined, undefined);
970
+ } // eslint-disable-next-line @typescript-eslint/no-unused-vars
971
+
972
+
973
+ log(_data$LWS) {} // eslint-disable-next-line @typescript-eslint/no-unused-vars
974
+
975
+
976
+ error(_data$LWS) {}
977
+
978
+ } // Export the default instrumentation instance with no-op operations.
979
+
980
+
981
+ const defaultInstrumentation$LWS = new DefaultInstrumentation$LWS();
982
+ /*! version: 0.16.1 */
854
983
 
855
984
  /*!
856
985
  * Copyright (C) 2019 salesforce.com, inc.
@@ -1185,12 +1314,27 @@ function transformUncompiledSource$LWS(source$LWS) {
1185
1314
  destructuredBlueHelpers$LWS[destructuredBlueHelpers$LWS.length] = UNCOMPILED_LOCATION_NAME$LWS;
1186
1315
  }
1187
1316
 
1188
- if (destructuredBlueHelpers$LWS.length) {
1189
- source$LWS = `const {
1190
- ${ArrayJoin$LWS(destructuredBlueHelpers$LWS, ',')}} = ${SANDBOX_EVAL_CONTEXT_NAME$LWS};${source$LWS}`;
1317
+ if (!destructuredBlueHelpers$LWS.length) {
1318
+ return source$LWS;
1319
+ }
1320
+
1321
+ const destructureSandboxEvalContextSnippet$LWS = `const {
1322
+ ${ArrayJoin$LWS(destructuredBlueHelpers$LWS, ',')}} = ${SANDBOX_EVAL_CONTEXT_NAME$LWS};`;
1323
+ const pragmaIndex$LWS = indexOfPragma$LWS(source$LWS, 'use strict');
1324
+
1325
+ if (pragmaIndex$LWS === -1) {
1326
+ return destructureSandboxEvalContextSnippet$LWS + source$LWS;
1327
+ } // The "use strict" pragma, including quotes, is 12 characters long.
1328
+
1329
+
1330
+ let afterPragmaIndex$LWS = pragmaIndex$LWS + 12;
1331
+
1332
+ if (afterPragmaIndex$LWS < source$LWS.length && source$LWS[afterPragmaIndex$LWS] === ';') {
1333
+ // Move index after the semicolon.
1334
+ afterPragmaIndex$LWS += 1;
1191
1335
  }
1192
1336
 
1193
- return source$LWS;
1337
+ return StringSlice$LWS(source$LWS, 0, afterPragmaIndex$LWS) + destructureSandboxEvalContextSnippet$LWS + StringSlice$LWS(source$LWS, afterPragmaIndex$LWS);
1194
1338
  }
1195
1339
 
1196
1340
  const BlobProtoSizeGetter$LWS = ObjectLookupOwnGetter$LWS(Blob.prototype, 'size');
@@ -1857,7 +2001,7 @@ function XhrStatusGetter$LWS(xhr$LWS) {
1857
2001
  function XhrWithCredentialsSetter$LWS(xhr$LWS, bool$LWS) {
1858
2002
  ReflectApply$LWS(XhrProtoWithCredentialsSetter$LWS, xhr$LWS, [bool$LWS]);
1859
2003
  }
1860
- /*! version: 0.15.16 */
2004
+ /*! version: 0.16.1 */
1861
2005
 
1862
2006
  /*! @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 */
1863
2007
 
@@ -3314,62 +3458,75 @@ var purify = createDOMPurify();
3314
3458
  const ariaAttributes$LWS = ['aria-activedescendant', 'aria-atomic', 'aria-autocomplete', 'aria-busy', 'aria-checked', 'aria-controls', 'aria-describedby', 'aria-disabled', 'aria-readonly', 'aria-dropeffect', 'aria-expanded', 'aria-flowto', 'aria-grabbed', 'aria-haspopup', 'aria-hidden', 'aria-disabled', 'aria-invalid', 'aria-label', 'aria-labelledby', 'aria-level', 'aria-live', 'aria-multiline', 'aria-multiselectable', 'aria-orientation', 'aria-owns', 'aria-posinset', 'aria-pressed', 'aria-readonly', 'aria-relevant', 'aria-required', 'aria-selected', 'aria-setsize', 'aria-sort', 'aria-valuemax', 'aria-valuemin', 'aria-valuenow', 'aria-valuetext', 'role', 'target'];
3315
3459
  const htmlTags$LWS = ['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blockquote', 'body', 'br', 'button', 'caption', 'canvas', 'center', 'cite', 'code', 'col', 'colgroup', 'command', 'datalist', 'dd', 'del', 'details', 'dfn', 'dir', 'div', 'dl', 'dt', 'em', 'fieldset', 'figure', 'figcaption', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'i', 'iframe', 'img', 'input', 'ins', 'keygen', 'kbd', 'label', 'legend', 'li', 'map', 'mark', 'menu', 'meter', 'nav', 'ol', 'optgroup', 'option', 'output', 'p', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'small', 'source', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr'];
3316
3460
  const svgTags$LWS = ['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'audio', 'canvas', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'video', 'view', 'vkern', 'use'];
3317
- const allTags$LWS = ArrayConcat$LWS(svgTags$LWS, htmlTags$LWS); // generic, sanitizer attempts in place sanitization and returns node
3461
+ const allTags$LWS = ArrayConcat$LWS(htmlTags$LWS, svgTags$LWS);
3462
+ const CUSTOM_ELEMENT_HANDLING$LWS = {
3463
+ attributeNameCheck: /.+/,
3464
+ allowCustomizedBuiltInElements: false,
3465
+ // The regexp is based on the WHATWG spec:
3466
+ // https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name
3467
+ // However, DOMPurify sanitizes unicode characters (\u0000-\uFFFF) in tag name.
3468
+ tagNameCheck: /^[a-z][-_.\w]*-[-.0-9_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u37D0\u37F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u10000-\uEFFFF]*$/
3469
+ }; // A generic config in which the sanitizer attempts in place sanitization and
3470
+ // returns node.
3318
3471
 
3319
3472
  const NODE_ALL_IN_PLACE$LWS = {
3320
- ADD_ATTR: ariaAttributes$LWS,
3473
+ ADD_ATTR: shallowCloneArray$LWS(ariaAttributes$LWS),
3474
+ // Add '#document-fragment' to ALLOWED_TAGS to avoid a forbidden root node
3475
+ // exception.
3476
+ // https://github.com/cure53/DOMPurify/issues/664
3321
3477
  ALLOWED_TAGS: ArrayConcat$LWS(allTags$LWS, '#document-fragment'),
3478
+ CUSTOM_ELEMENT_HANDLING: ObjectAssign$LWS({}, CUSTOM_ELEMENT_HANDLING$LWS),
3322
3479
  IN_PLACE: true
3323
- }; // use only svg tags, sanitizer returns a document fragment
3480
+ }; // A config to use only svg tags in which the sanitizer returns a document
3481
+ // fragment.
3324
3482
 
3325
3483
  const NODE_SVG$LWS = {
3326
- ADD_ATTR: ariaAttributes$LWS,
3327
- ALLOWED_TAGS: svgTags$LWS,
3484
+ ADD_ATTR: shallowCloneArray$LWS(ariaAttributes$LWS),
3485
+ ALLOWED_TAGS: shallowCloneArray$LWS(svgTags$LWS),
3486
+ CUSTOM_ELEMENT_HANDLING: ObjectAssign$LWS({}, CUSTOM_ELEMENT_HANDLING$LWS),
3328
3487
  RETURN_DOM_FRAGMENT: true,
3329
3488
  SANITIZE_DOM: false
3330
- }; // generic, sanitizer returns string
3489
+ }; // A config to use only tags allowed for blob and file.
3331
3490
 
3332
3491
  const STRING_BLOB_HTML$LWS = {
3333
- ADD_ATTR: ariaAttributes$LWS,
3334
- ALLOWED_TAGS: ArrayFilter$LWS(allTags$LWS, t$LWS => !ArrayIncludes$LWS(['iframe'], t$LWS)),
3492
+ ADD_ATTR: shallowCloneArray$LWS(ariaAttributes$LWS),
3493
+ ALLOWED_TAGS: ArrayFilter$LWS(allTags$LWS, tag$LWS => tag$LWS !== 'iframe'),
3494
+ CUSTOM_ELEMENT_HANDLING: ObjectAssign$LWS({}, CUSTOM_ELEMENT_HANDLING$LWS),
3335
3495
  SANITIZE_DOM: false
3336
3496
  };
3337
3497
  const instances$LWS = new WeakMapCtor$LWS();
3338
3498
 
3339
- function sanitizer$LWS(config$LWS, hooks$LWS) {
3499
+ function sanitizer$LWS(config$LWS, hooksRegistry$LWS) {
3340
3500
  let dompurify$LWS = WeakMapGet$LWS(instances$LWS, config$LWS);
3341
3501
 
3342
- if (dompurify$LWS) {
3343
- return dompurify$LWS;
3344
- }
3502
+ if (dompurify$LWS === undefined) {
3503
+ dompurify$LWS = purify();
3504
+ dompurify$LWS.setConfig(config$LWS);
3345
3505
 
3346
- dompurify$LWS = purify();
3347
- dompurify$LWS.setConfig(config$LWS);
3506
+ for (const hookName$LWS in hooksRegistry$LWS) {
3507
+ if (hooksRegistry$LWS) {
3508
+ dompurify$LWS.addHook(hookName$LWS, hooksRegistry$LWS[hookName$LWS]);
3509
+ }
3510
+ }
3348
3511
 
3349
- if (hooks$LWS) {
3350
- MapForEach$LWS(hooks$LWS, (cb$LWS, hookName$LWS) => {
3351
- dompurify$LWS.addHook(hookName$LWS, cb$LWS);
3352
- });
3512
+ WeakMapSet$LWS(instances$LWS, config$LWS, dompurify$LWS);
3353
3513
  }
3354
3514
 
3355
- WeakMapSet$LWS(instances$LWS, config$LWS, dompurify$LWS);
3356
3515
  return dompurify$LWS;
3357
3516
  }
3358
3517
 
3359
3518
  const ATTRIBUTES$LWS = ['href', 'xlink:href'];
3360
- const SANITIZER_HOOKS$LWS = new MapCtor$LWS([['uponSanitizeAttribute', sanitizeHrefAttributeHook$LWS], ['uponSanitizeElement', allowCustomTagHook$LWS]]);
3519
+ const SANITIZER_HOOKS$LWS = {
3520
+ __proto__: null,
3521
+ uponSanitizeAttribute: sanitizeHrefAttributeHook$LWS
3522
+ };
3361
3523
  const URL_SCHEMES$LWS = ['http:', 'https:'];
3362
- const {
3363
- document: document$LWS
3364
- } = window;
3365
- const htmlTemplate$LWS = DocumentCreateElement$LWS(document$LWS, 'template');
3366
- const normalizerAnchor$LWS$1 = DocumentCreateElement$LWS(document$LWS, 'a'); // Queue for managing pending xhr requests.
3367
-
3368
- const queue$LWS = new SetCtor$LWS(); // The regexp is based on the WHATWG spec:
3369
- // https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name
3370
- // However, DOMPurify sanitizes unicode characters (\u0000-\uFFFF) in tag name.
3524
+ const docRef$LWS = document;
3525
+ const winRef$LWS = window;
3526
+ const htmlTemplate$LWS = DocumentCreateElement$LWS(docRef$LWS, 'template');
3527
+ const normalizerAnchor$LWS$1 = DocumentCreateElement$LWS(docRef$LWS, 'a'); // Queue for managing pending xhr requests.
3371
3528
 
3372
- const customTagRegExp$LWS = /^[a-z]([-_.\w])*-([-.0-9_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u37D0\u37F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u10000-\uEFFFF])*/; // A regexp to find all non lowercase alphanumeric.
3529
+ const queue$LWS = new SetCtor$LWS(); // A regexp to find all non lowercase alphanumeric.
3373
3530
 
3374
3531
  const urlReplacerRegExp$LWS = /[^a-z0-9]+/gi;
3375
3532
 
@@ -3378,22 +3535,22 @@ function checkExistingAndDequeue$LWS(container$LWS, normalizedHref$LWS) {
3378
3535
  const checkFn$LWS = () => {
3379
3536
  if (!SetHas$LWS(queue$LWS, normalizedHref$LWS.normalizedUrl)) {
3380
3537
  updater$LWS(container$LWS, normalizedHref$LWS);
3381
- WindowClearInterval$LWS(window, interval$LWS);
3538
+ WindowClearInterval$LWS(winRef$LWS, interval$LWS);
3382
3539
  }
3383
3540
  }; // Wait for request to finish, then update content.
3384
3541
 
3385
3542
 
3386
- const interval$LWS = WindowSetInterval$LWS(window, checkFn$LWS, 50);
3543
+ const interval$LWS = WindowSetInterval$LWS(winRef$LWS, checkFn$LWS, 50);
3387
3544
  } else {
3388
3545
  updater$LWS(container$LWS, normalizedHref$LWS);
3389
3546
  }
3390
3547
  }
3391
3548
 
3392
3549
  function createUrlContainer$LWS(url$LWS) {
3393
- const container$LWS = DocumentCreateElement$LWS(document$LWS, 'div');
3550
+ const container$LWS = DocumentCreateElement$LWS(docRef$LWS, 'div');
3394
3551
  ElementSetAttribute$LWS(container$LWS, 'style', 'display:none');
3395
3552
  ElementSetAttribute$LWS(container$LWS, 'id', url$LWS);
3396
- const body$LWS = DocumentBodyGetter$LWS(document$LWS);
3553
+ const body$LWS = DocumentBodyGetter$LWS(docRef$LWS);
3397
3554
  NodeAppendChild$LWS(body$LWS, container$LWS);
3398
3555
  return container$LWS;
3399
3556
  }
@@ -3436,7 +3593,9 @@ function parseHref$LWS(url$LWS) {
3436
3593
  const {
3437
3594
  0: requestedUrl$LWS,
3438
3595
  1: requestedFragment$LWS
3439
- } = StringSplit$LWS(href$LWS, '#');
3596
+ } = StringSplit$LWS(href$LWS, '#'); // RegExp.prototype[Symbol.replace] resets the lastIndex of global regexp to 0.
3597
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
3598
+
3440
3599
  const normalizedUrl$LWS = StringReplace$LWS(StringToLowerCase$LWS(requestedUrl$LWS), urlReplacerRegExp$LWS, '');
3441
3600
  const normalizedFragment$LWS = requestedFragment$LWS ? `${normalizedUrl$LWS}_${StringReplace$LWS(requestedFragment$LWS, urlReplacerRegExp$LWS, '')}` : '';
3442
3601
  return {
@@ -3514,7 +3673,7 @@ function sanitizeSvgHref$LWS(url$LWS) {
3514
3673
  const normalizedHref$LWS = parseHref$LWS(url$LWS); // Sanitize only for supported URL_SCHEMES.
3515
3674
 
3516
3675
  if (ArrayIncludes$LWS(URL_SCHEMES$LWS, normalizedHref$LWS.protocol)) {
3517
- const container$LWS = DocumentGetElementById$LWS(document$LWS, normalizedHref$LWS.normalizedUrl); // Have we sanitized this URL already?
3676
+ const container$LWS = DocumentGetElementById$LWS(docRef$LWS, normalizedHref$LWS.normalizedUrl); // Have we sanitized this URL already?
3518
3677
 
3519
3678
  if (container$LWS && normalizedHref$LWS.normalizedFragment) {
3520
3679
  checkExistingAndDequeue$LWS(container$LWS, normalizedHref$LWS);
@@ -3536,7 +3695,7 @@ function createSvgContainer$LWS(ownerDoc$LWS) {
3536
3695
 
3537
3696
  function sanitizeSvgInnerHtml$LWS(stringOrSvg$LWS, dirty$LWS = '') {
3538
3697
  let container$LWS;
3539
- const ownerDoc$LWS = typeof stringOrSvg$LWS === 'string' ? document$LWS : NodeOwnerDocumentGetter$LWS(stringOrSvg$LWS);
3698
+ const ownerDoc$LWS = typeof stringOrSvg$LWS === 'string' ? docRef$LWS : NodeOwnerDocumentGetter$LWS(stringOrSvg$LWS);
3540
3699
  const comment$LWS = DocumentCreateComment$LWS(ownerDoc$LWS, '');
3541
3700
 
3542
3701
  if (typeof stringOrSvg$LWS === 'string') {
@@ -3559,18 +3718,7 @@ function sanitizeSvgTextReturnDOM$LWS(dirty$LWS) {
3559
3718
  const sanitizer$LWS = svgSanitizer$LWS();
3560
3719
  return sanitizer$LWS.sanitize(dirty$LWS);
3561
3720
  }
3562
-
3563
- function allowCustomTagHook$LWS(node$LWS, data$LWS, _config$LWS) {
3564
- const {
3565
- allowedTags: allowedTags$LWS,
3566
- tagName: tagName$LWS
3567
- } = data$LWS;
3568
-
3569
- if (!allowedTags$LWS[tagName$LWS] && customTagRegExp$LWS.test(tagName$LWS)) {
3570
- allowedTags$LWS[tagName$LWS] = true;
3571
- }
3572
- }
3573
- /*! version: 0.15.16 */
3721
+ /*! version: 0.16.1 */
3574
3722
 
3575
3723
  /*!
3576
3724
  * Copyright (C) 2019 salesforce.com, inc.
@@ -3628,7 +3776,7 @@ function sanitizeURLForElement$LWS(url$LWS) {
3628
3776
  HTMLAnchorElementHrefSetter$LWS(normalizerAnchor$LWS, url$LWS);
3629
3777
  return sanitizeURLString$LWS(HTMLAnchorElementHrefGetter$LWS(normalizerAnchor$LWS));
3630
3778
  }
3631
- /*! version: 0.15.16 */
3779
+ /*! version: 0.16.1 */
3632
3780
 
3633
3781
  /*!
3634
3782
  * Copyright (C) 2019 salesforce.com, inc.
@@ -3795,235 +3943,6 @@ function distortionAuraUtilGlobalEval$LWS(globalObject$LWS, options$LWS) {
3795
3943
  return [originalGlobalEval$LWS, globalEval$LWS];
3796
3944
  }
3797
3945
 
3798
- function nsCacheRootKey$LWS(ns$LWS) {
3799
- return `LSKey-${ns$LWS}$`;
3800
- }
3801
-
3802
- function nsCacheKey$LWS(key$LWS, ns$LWS) {
3803
- return `${nsCacheRootKey$LWS(ns$LWS)}${key$LWS}`;
3804
- }
3805
-
3806
- function prefixCacheName$LWS(detailsOrName$LWS, key$LWS) {
3807
- if (isObjectLike$LWS(detailsOrName$LWS)) {
3808
- const clonedDetails$LWS = shallowCloneOptions$LWS(detailsOrName$LWS);
3809
- clonedDetails$LWS.cacheName = nsCacheKey$LWS(clonedDetails$LWS.cacheName, key$LWS);
3810
- detailsOrName$LWS = clonedDetails$LWS;
3811
- } else {
3812
- detailsOrName$LWS = nsCacheKey$LWS(detailsOrName$LWS, key$LWS);
3813
- }
3814
-
3815
- return detailsOrName$LWS;
3816
- }
3817
-
3818
- function unprefixCacheName$LWS(name$LWS, key$LWS) {
3819
- const rootKey$LWS = nsCacheRootKey$LWS(key$LWS); // First check that this Cache object belongs to this sandbox,
3820
- // if not then return null.
3821
-
3822
- if (!StringStartsWith$LWS(name$LWS, rootKey$LWS)) {
3823
- return null;
3824
- }
3825
-
3826
- const {
3827
- length: rootKeyLength$LWS
3828
- } = rootKey$LWS;
3829
- return StringSlice$LWS(name$LWS, rootKeyLength$LWS);
3830
- }
3831
- /* istanbul ignore next: only available in secure context */
3832
-
3833
-
3834
- function distortionCacheStorageDelete$LWS(globalObject$LWS, options$LWS) {
3835
- var _CacheStorage$prototy$LWS;
3836
-
3837
- const {
3838
- CacheStorage: CacheStorage$LWS
3839
- } = globalObject$LWS; // Chrome and Safari will only expose CacheStorage over HTTPS
3840
-
3841
- const originalDelete$LWS = CacheStorage$LWS == null ? void 0 : (_CacheStorage$prototy$LWS = CacheStorage$LWS.prototype) == null ? void 0 : _CacheStorage$prototy$LWS.delete;
3842
-
3843
- if (typeof originalDelete$LWS !== 'function') {
3844
- return null;
3845
- }
3846
-
3847
- const {
3848
- key: key$LWS
3849
- } = options$LWS;
3850
-
3851
- const patchedDelete$LWS = function patchedDelete$LWS(...args$LWS) {
3852
- if (args$LWS.length) {
3853
- const {
3854
- 0: cacheName$LWS
3855
- } = args$LWS;
3856
-
3857
- if (isConvertibleToString$LWS(cacheName$LWS)) {
3858
- args$LWS[0] = prefixCacheName$LWS(cacheName$LWS, key$LWS);
3859
- }
3860
- }
3861
-
3862
- return ReflectApply$LWS(originalDelete$LWS, this, args$LWS);
3863
- };
3864
-
3865
- return [originalDelete$LWS, patchedDelete$LWS];
3866
- }
3867
- /* istanbul ignore next: only available in secure context */
3868
-
3869
-
3870
- function distortionCacheStorageHas$LWS(globalObject$LWS, options$LWS) {
3871
- var _CacheStorage$prototy2$LWS;
3872
-
3873
- const {
3874
- CacheStorage: CacheStorage$LWS
3875
- } = globalObject$LWS; // Chrome and Safari will only expose CacheStorage over HTTPS
3876
-
3877
- const originalHas$LWS = CacheStorage$LWS == null ? void 0 : (_CacheStorage$prototy2$LWS = CacheStorage$LWS.prototype) == null ? void 0 : _CacheStorage$prototy2$LWS.has;
3878
-
3879
- if (typeof originalHas$LWS !== 'function') {
3880
- return null;
3881
- }
3882
-
3883
- const {
3884
- key: key$LWS
3885
- } = options$LWS;
3886
-
3887
- const has$LWS = function has$LWS(...args$LWS) {
3888
- if (args$LWS.length) {
3889
- const {
3890
- 0: cacheName$LWS
3891
- } = args$LWS;
3892
-
3893
- if (isConvertibleToString$LWS(cacheName$LWS)) {
3894
- args$LWS[0] = prefixCacheName$LWS(cacheName$LWS, key$LWS);
3895
- }
3896
- }
3897
-
3898
- return ReflectApply$LWS(originalHas$LWS, this, args$LWS);
3899
- };
3900
-
3901
- return [originalHas$LWS, has$LWS];
3902
- }
3903
- /* istanbul ignore next: only available in secure context */
3904
-
3905
-
3906
- function distortionCacheStorageKeys$LWS(globalObject$LWS, options$LWS) {
3907
- var _CacheStorage$prototy3$LWS;
3908
-
3909
- const {
3910
- CacheStorage: CacheStorage$LWS
3911
- } = globalObject$LWS; // Chrome and Safari will only expose CacheStorage over HTTPS
3912
-
3913
- const originalKeys$LWS = CacheStorage$LWS == null ? void 0 : (_CacheStorage$prototy3$LWS = CacheStorage$LWS.prototype) == null ? void 0 : _CacheStorage$prototy3$LWS.keys;
3914
-
3915
- if (typeof originalKeys$LWS !== 'function') {
3916
- return null;
3917
- }
3918
-
3919
- const {
3920
- key: key$LWS
3921
- } = options$LWS;
3922
-
3923
- const keys$LWS = function keys$LWS() {
3924
- return PromiseThen$LWS(ReflectApply$LWS(originalKeys$LWS, this, []), result$LWS => {
3925
- const sandboxedCacheNames$LWS = [];
3926
-
3927
- for (let i$LWS = 0, j$LWS = 0, {
3928
- length: length$LWS
3929
- } = result$LWS; i$LWS < length$LWS; i$LWS += 1) {
3930
- const cacheName$LWS = unprefixCacheName$LWS(result$LWS[i$LWS], key$LWS);
3931
-
3932
- if (typeof cacheName$LWS === 'string') {
3933
- sandboxedCacheNames$LWS[j$LWS++] = cacheName$LWS;
3934
- }
3935
- }
3936
-
3937
- return sandboxedCacheNames$LWS;
3938
- });
3939
- };
3940
-
3941
- return [originalKeys$LWS, keys$LWS];
3942
- }
3943
- /* istanbul ignore next: only available in secure context */
3944
-
3945
-
3946
- function distortionCacheStorageMatch$LWS(globalObject$LWS, options$LWS) {
3947
- var _CacheStorage$prototy4$LWS;
3948
-
3949
- const {
3950
- CacheStorage: CacheStorage$LWS
3951
- } = globalObject$LWS; // Chrome and Safari will only expose CacheStorage over HTTPS
3952
-
3953
- const originalMatch$LWS = CacheStorage$LWS == null ? void 0 : (_CacheStorage$prototy4$LWS = CacheStorage$LWS.prototype) == null ? void 0 : _CacheStorage$prototy4$LWS.match;
3954
-
3955
- if (typeof originalMatch$LWS !== 'function') {
3956
- return null;
3957
- }
3958
-
3959
- const {
3960
- key: key$LWS
3961
- } = options$LWS;
3962
-
3963
- const match$LWS = function match$LWS( // @ts-ignore TypeScript's confusion about using CacheStorage here.
3964
- ...args$LWS) {
3965
- const {
3966
- length: length$LWS
3967
- } = args$LWS; // This should be sufficient enough to affirm the presense of at least the
3968
- // request | string argument. We want to skip the distorted behavior
3969
- // ONLY in cases where there are no arguments at all, or the request argument
3970
- // is invalid, which is then handled by the host function.
3971
-
3972
- if (length$LWS && isConvertibleToString$LWS(args$LWS[0])) {
3973
- // Next we check if length is 2, which means that options are present
3974
- const options$LWS = length$LWS === 2 ? args$LWS[1] : undefined; // In order to enforce the sandbox partition, we must REQUIRE the options.cacheName.
3975
- // The value of options.cacheName must also be safely convertable to a string.
3976
-
3977
- if (!isObjectLike$LWS(options$LWS) || !options$LWS.cacheName || !isConvertibleToString$LWS(options$LWS.cacheName)) {
3978
- return PromiseReject$LWS(new LockerSecurityError$LWS('caches.match() expects the options argument to be present and to have a "cacheName" property.'));
3979
- }
3980
-
3981
- args$LWS[1] = prefixCacheName$LWS(options$LWS, key$LWS);
3982
- }
3983
-
3984
- return ReflectApply$LWS(originalMatch$LWS, this, args$LWS);
3985
- };
3986
-
3987
- return [originalMatch$LWS, match$LWS];
3988
- }
3989
- /* istanbul ignore next: only available in secure context */
3990
-
3991
-
3992
- function distortionCacheStorageOpen$LWS(globalObject$LWS, options$LWS) {
3993
- var _CacheStorage$prototy5$LWS;
3994
-
3995
- const {
3996
- CacheStorage: CacheStorage$LWS
3997
- } = globalObject$LWS; // Chrome and Safari will only expose CacheStorage over HTTPS
3998
-
3999
- const originalOpen$LWS = CacheStorage$LWS == null ? void 0 : (_CacheStorage$prototy5$LWS = CacheStorage$LWS.prototype) == null ? void 0 : _CacheStorage$prototy5$LWS.open;
4000
-
4001
- if (typeof originalOpen$LWS !== 'function') {
4002
- return null;
4003
- }
4004
-
4005
- const {
4006
- key: key$LWS
4007
- } = options$LWS;
4008
-
4009
- const open$LWS = function open$LWS(...args$LWS) {
4010
- if (args$LWS.length) {
4011
- const {
4012
- 0: cacheName$LWS
4013
- } = args$LWS;
4014
-
4015
- if (isConvertibleToString$LWS(cacheName$LWS)) {
4016
- args$LWS[0] = prefixCacheName$LWS(cacheName$LWS, key$LWS);
4017
- }
4018
- }
4019
-
4020
- return ReflectApply$LWS(originalOpen$LWS, this, args$LWS);
4021
- };
4022
-
4023
- return [originalOpen$LWS, open$LWS];
4024
- }
4025
-
4026
- const CHAR_CODE_EQUALS$LWS = 61;
4027
3946
  const COOKIE_DELIMITER$LWS = '; ';
4028
3947
 
4029
3948
  function prefixCookieName$LWS(detailsOrName$LWS, key$LWS) {
@@ -4050,8 +3969,8 @@ function unprefixCookieName$LWS(name$LWS, key$LWS) {
4050
3969
  const {
4051
3970
  length: rootKeyLength$LWS
4052
3971
  } = rootKey$LWS;
4053
- const rootKeySubstringLength$LWS = StringCharCodeAt$LWS(name$LWS, rootKeyLength$LWS) === CHAR_CODE_EQUALS$LWS ? rootKeyLength$LWS + 1 : rootKeyLength$LWS;
4054
- return StringSlice$LWS(name$LWS, rootKeySubstringLength$LWS);
3972
+ const pos$LWS = name$LWS.length > rootKeyLength$LWS && name$LWS[rootKeyLength$LWS] === '=' ? rootKeyLength$LWS + 1 : rootKeyLength$LWS;
3973
+ return StringSlice$LWS(name$LWS, pos$LWS);
4055
3974
  }
4056
3975
 
4057
3976
  function normalizeCookieListItem$LWS(cookie$LWS, key$LWS) {
@@ -4375,8 +4294,6 @@ function distortionDocumentCookieGetter$LWS(globalObject$LWS, options$LWS) {
4375
4294
  /**
4376
4295
  * Factory patched cookie setter. Must be invoked with namespace argument.
4377
4296
  * Returns a distortion function bound to the namespace.
4378
- * @param ns
4379
- * @returns Distortion
4380
4297
  */
4381
4298
 
4382
4299
 
@@ -4395,7 +4312,7 @@ function distortionDocumentCookieSetter$LWS(globalObject$LWS, options$LWS) {
4395
4312
  0: newCookieEntry$LWS
4396
4313
  } = cookieEntries$LWS;
4397
4314
 
4398
- if (StringCharCodeAt$LWS(newCookieEntry$LWS, 0) === CHAR_CODE_EQUALS$LWS) {
4315
+ if (newCookieEntry$LWS.length && newCookieEntry$LWS[0] === '=') {
4399
4316
  newCookieEntry$LWS = StringSlice$LWS(newCookieEntry$LWS, 1);
4400
4317
  }
4401
4318
 
@@ -4503,7 +4420,9 @@ function sanitizeWindowOpenArguments$LWS(args$LWS) {
4503
4420
  if (sanitizedArgs$LWS.length > 2) {
4504
4421
  // Lowercase the features string because it is case insensitive.
4505
4422
  // https://html.spec.whatwg.org/multipage/window-object.html#normalizing-the-feature-name
4506
- let windowFeatures$LWS = StringToLowerCase$LWS(toString$LWS(sanitizedArgs$LWS[2]));
4423
+ let windowFeatures$LWS = StringToLowerCase$LWS(toString$LWS(sanitizedArgs$LWS[2])); // RegExp.prototype[Symbol.replace] resets the lastIndex of global
4424
+ // regexp to 0.
4425
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
4507
4426
 
4508
4427
  if (RegExpTest$LWS(noopenerRegExp$LWS, windowFeatures$LWS)) {
4509
4428
  // Replacing noopener with an enabled state that is supported
@@ -5803,22 +5722,13 @@ function abstractFactorySetThrower$LWS(proto$LWS, propName$LWS) {
5803
5722
  /**
5804
5723
  * Wraps the source content of a script tag in the evaluator
5805
5724
  * Creates a blob: url with the wrapped content
5806
- * @param text String
5807
- * @param key String
5808
- * @returns String
5809
5725
  */
5810
5726
 
5811
5727
 
5812
- function createScriptUrl$LWS(text$LWS, key$LWS) {
5813
- const transformedText$LWS = transformUncompiledSource$LWS(text$LWS);
5728
+ function createScriptUrl$LWS(sourceText$LWS, key$LWS) {
5729
+ const transformedText$LWS = transformUncompiledSource$LWS(sourceText$LWS);
5814
5730
  const payload$LWS = WindowEncodeURIComponent$LWS(transformedText$LWS);
5815
- const blobScript$LWS = `
5816
- {
5817
- const { $evaluator$ } = document.currentScript;
5818
- const text = decodeURIComponent(\`${payload$LWS}\`);
5819
- delete document.currentScript.$evaluator$;
5820
- $evaluator$('${key$LWS}', text, { ${UNCOMPILED_LOCATION_NAME$LWS}: location });
5821
- }`;
5731
+ const blobScript$LWS = '{' + 'const{$evaluator$}=document.currentScript;' + 'delete document.currentScript.$evaluator$;' + '$evaluator$({' + `key:${JSONStringify$LWS(key$LWS)},` + `source:decodeURIComponent(\`${payload$LWS}\`),` + "sourceType:'script'," + `context:{${UNCOMPILED_LOCATION_NAME$LWS}:location},` + '})' + '}';
5822
5732
  return URLCreateObjectURL$LWS(new BlobCtor$LWS([blobScript$LWS], {
5823
5733
  type: 'text/javascript'
5824
5734
  }));
@@ -7821,8 +7731,7 @@ distortionWorkerCtor$LWS, distortionWorkerProto$LWS, // XHR
7821
7731
  distortionXMLHttpRequestOpen$LWS, distortionXMLHttpRequestResponseGetter$LWS, distortionXMLHttpRequestResponseXMLGetter$LWS];
7822
7732
  const fundamentalKeyedDistortionFactories$LWS = [// Aura
7823
7733
  distortionAuraUtilGlobalEval$LWS, // Attr
7824
- distortionAttrValueSetter$LWS, // CacheStorage
7825
- distortionCacheStorageDelete$LWS, distortionCacheStorageHas$LWS, distortionCacheStorageKeys$LWS, distortionCacheStorageMatch$LWS, distortionCacheStorageOpen$LWS, // CookieStore
7734
+ distortionAttrValueSetter$LWS, // CookieStore
7826
7735
  distortionCookieStoreDelete$LWS, distortionCookieStoreGet$LWS, distortionCookieStoreGetAll$LWS, distortionCookieStoreOnChange$LWS, distortionCookieStoreSet$LWS, // Document
7827
7736
  distortionDocumentCookieGetter$LWS, distortionDocumentCookieSetter$LWS, distortionDocumentReplaceChildren$LWS, // CustomElementRegistry
7828
7737
  distortionCustomElementRegistryGet$LWS, // Element
@@ -7963,7 +7872,7 @@ function addDistortionEntry$LWS(globalObject$LWS, key$LWS, evaluator$LWS, config
7963
7872
  entries$LWS[entries$LWS.length] = [rawValue$LWS, maybeMaskDistortion$LWS(maybeInstrumentedDistortedValue$LWS, rawValue$LWS)];
7964
7873
  }
7965
7874
  }
7966
- } // @TODO: [Issue #373] Abstract common code in sandbox and distortion packages
7875
+ } // @TODO: #373 Abstract common code in sandbox and distortion packages.
7967
7876
 
7968
7877
 
7969
7878
  function createExternalDistortionEntries$LWS(globalObject$LWS, key$LWS, evaluator$LWS, config$LWS) {
@@ -8001,7 +7910,7 @@ function createExternalDistortionEntries$LWS(globalObject$LWS, key$LWS, evaluato
8001
7910
 
8002
7911
  ReflectApply$LWS(ArrayProtoPush$LWS, entries$LWS, makeElementDistortionsForSandboxKey$LWS(key$LWS));
8003
7912
  return entries$LWS;
8004
- } // @TODO: [Issue #373] Abstract common code in sandbox and distortion packages
7913
+ } // @TODO: #373 Abstract common code in sandbox and distortion packages.
8005
7914
 
8006
7915
 
8007
7916
  function createInternalDistortionEntries$LWS(globalObject$LWS, key$LWS, evaluator$LWS, config$LWS) {
@@ -8040,113 +7949,10 @@ function createInternalDistortionEntries$LWS(globalObject$LWS, key$LWS, evaluato
8040
7949
  ReflectApply$LWS(ArrayProtoPush$LWS, entries$LWS, makeElementDistortionsForSandboxKey$LWS(key$LWS));
8041
7950
  return entries$LWS;
8042
7951
  }
8043
- /*! version: 0.15.16 */
8044
-
8045
- /*!
8046
- * Copyright (C) 2021 salesforce.com, inc.
8047
- */
8048
- /* eslint-disable class-methods-use-this, max-classes-per-file */
8049
-
8050
- let ticketSequence$LWS = 0;
8051
-
8052
- function getActivityId$LWS() {
8053
- ticketSequence$LWS += 1;
8054
- return DateNow$LWS() + ticketSequence$LWS;
8055
- } // Locker Instrumentation Activity class
8056
-
8057
- /* eslint no-underscore-dangle: ['error',{allowAfterThis:true}] */
8058
-
8059
-
8060
- class LockerActivity$LWS {
8061
- constructor(activityName$LWS, startCallback$LWS, stopCallback$LWS, captureTimestamps$LWS = false) {
8062
- this._activityStart = 0;
8063
- this._activityStop = 0;
8064
- this._captureTimestamps = captureTimestamps$LWS;
8065
- this._startCallback = startCallback$LWS;
8066
- this._started = false;
8067
- this._stopCallback = stopCallback$LWS;
8068
- this._stopped = false;
8069
- this.activityId = `${activityName$LWS}-${getActivityId$LWS()}`;
8070
- this.activityName = activityName$LWS;
8071
- }
8072
- /*
8073
- * starts an activity
8074
- */
8075
-
8076
-
8077
- start(data$LWS) {
8078
- if (!this._started) {
8079
- this._started = true;
8080
-
8081
- if (this._captureTimestamps) {
8082
- this._activityStart = getTimestamp$LWS();
8083
- }
8084
-
8085
- if (typeof this._startCallback === 'function') {
8086
- this._startCallback(this, data$LWS);
8087
- }
8088
- }
8089
- }
8090
- /*
8091
- * stops the current activity
8092
- */
8093
-
8094
-
8095
- stop(data$LWS) {
8096
- if (!this._stopped) {
8097
- this._stopped = true;
8098
-
8099
- if (this._captureTimestamps) {
8100
- this._activityStop = getTimestamp$LWS();
8101
- }
8102
-
8103
- if (typeof this._stopCallback === 'function') {
8104
- this._stopCallback(this, data$LWS);
8105
- }
8106
- }
8107
- }
8108
- /*
8109
- * stop the current activity with error state.
8110
- */
8111
-
8112
-
8113
- error(data$LWS) {
8114
- // @TODO:
8115
- // Aura's metrics service ($A.metricsService) is the current
8116
- // instrumentation service used by Locker. The metrics service does not
8117
- // have an `error` API for perf activities. But O11y provides this
8118
- // feature. When Locker is able to integrate O11y, the following line
8119
- // should be calling O11y's error API instead of `stop()`.
8120
- this.stop(data$LWS);
8121
- }
8122
-
8123
- get duration() {
8124
- return this._activityStop > this._activityStart ? this._activityStop - this._activityStart : 0;
8125
- }
8126
-
8127
- } // Creates a new no-op Instrumentation instance.
8128
-
8129
-
8130
- class DefaultInstrumentation$LWS {
8131
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
8132
- startActivity(activityName$LWS, _data$LWS) {
8133
- return new LockerActivity$LWS(activityName$LWS, undefined, undefined);
8134
- } // eslint-disable-next-line @typescript-eslint/no-unused-vars
8135
-
8136
-
8137
- log(_data$LWS) {} // eslint-disable-next-line @typescript-eslint/no-unused-vars
8138
-
8139
-
8140
- error(_data$LWS) {}
8141
-
8142
- } // Export the default instrumentation instance with no-op operations.
8143
-
8144
-
8145
- const defaultInstrumentation$LWS = new DefaultInstrumentation$LWS();
8146
- /*! version: 0.15.16 */
7952
+ /*! version: 0.16.1 */
8147
7953
 
8148
- const K=new WeakMap;function createMembraneMarshall$LWS(e){const t=Array,r=ArrayBuffer,o=Error,n=Object,a=Proxy,l=Reflect,i=RegExp,s=Symbol,c=TypeError,u=WeakMap,{for:p,toStringTag:y}=s,f=/\w*$/,d=Symbol.for("@@lockerDebugMode"),h=p("@@lockerLiveValue"),S=p("@@lockerNearMembraneSerializedValue"),b=p("@@lockerNearMembrane"),g=p("@@lockerNearMembraneUndefinedValue"),LOCKER_UNMINIFIED_FLAG$LWS=`${()=>
7954
+ const V=new WeakMap;function createMembraneMarshall$LWS(t){const e=Array,r=ArrayBuffer,o=Error,n=Object,a=Proxy,i=Reflect,l=RegExp,s=Symbol,c=TypeError,u=WeakMap,{for:p,toStringTag:y}=s,f=/\w*$/,d=Symbol.for("@@lockerDebugMode"),h=p("@@lockerLiveValue"),b=p("@@lockerNearMembraneSerializedValue"),g=p("@@lockerNearMembrane"),S=p("@@lockerNearMembraneUndefinedValue"),LOCKER_UNMINIFIED_FLAG$LWS=`${()=>
8149
7955
  /* $LWS */
8150
- 1}`.includes("*");let $=LOCKER_UNMINIFIED_FLAG$LWS&&void 0;const W="function"==typeof BigInt,{assign:L,defineProperties:v,freeze:P,getOwnPropertyDescriptor:T,getOwnPropertyDescriptors:w,isFrozen:x,isSealed:O,prototype:m,seal:_}=n,{__defineGetter__:E,__defineSetter__:A,__lookupGetter__:B,__lookupSetter__:H,hasOwnProperty:C,propertyIsEnumerable:k,toString:j}=m,{apply:D,construct:M,defineProperty:F,deleteProperty:G,get:I,getOwnPropertyDescriptor:R,getPrototypeOf:N,has:V,isExtensible:U,ownKeys:z,preventExtensions:Z,set:X,setPrototypeOf:J}=l,{isArray:Y}=t,{includes:q,indexOf:Q,slice:ee}=t.prototype,{isView:te}=r,re=D(B,r.prototype,["byteLength"]),oe=W?BigInt.prototype.valueOf:void 0,{valueOf:ne}=Boolean.prototype,{toString:ae}=o.prototype,{bind:le}=Function.prototype,{stringify:ie}=JSON,{valueOf:se}=Number.prototype,{revocable:ce}=a,{prototype:ue}=i,{exec:pe,test:ye,toString:fe}=ue,de=D(B,ue,["flags"])||function(){const e=D(fe,this,[]);return D(pe,f,[e])[0]},he=D(B,ue,["source"]),{replace:Se,slice:be,valueOf:ge}=String.prototype,{valueOf:$e}=s.prototype,{get:We,set:Le}=u.prototype,ve=console,{info:Pe}=ve,Te=eval,we="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||(F(m,"globalThis",{__proto__:null,configurable:!0,get(){return G(m,"globalThis"),this||self}}),globalThis);let xe=!1,Oe=!1;const me=new i(`${D(Se,"$LWS",[/[\\^$.*+?()[\]{}|]/g,"\\$&"])}(?=\\.|$)`);function alwaysFalse$LWS(){return !1}function identity$LWS(e){return e}const _e=LOCKER_UNMINIFIED_FLAG$LWS?()=>{if(xe)return;xe=!0;const e=(()=>{var e;o.prepareStackTrace=(e,t)=>t;const t=(new o).stack;return delete o.prepareStackTrace,Y(t)&&t.length>0?null==(e=t[0])?void 0:e.constructor:void 0})();if("function"!=typeof e)return;const{getEvalOrigin:t,getFunctionName:r,toString:n}=e.prototype;o.prepareStackTrace=function(e,o){return function(e,o){let a="";try{a=D(ae,e,[]);}catch(e){a="<error>";}let l=!1;for(let e=0,{length:i}=o;e<i;e+=1){const i=o[e],s=D(r,i,[]);let c=!1;if("string"==typeof s&&"eval"!==s&&D(ye,me,[s])&&(c=!0),!c){const e=D(t,i,[]);"string"==typeof e&&D(ye,me,[e])&&(c=!0);}if(c)l||(l=!0,a+="\n at LWS");else {l=!1;try{a+=`\n at ${D(n,i,[])}`;}catch(e){}}}return a}(e,o)};const{stackTraceLimit:a}=o;("number"!=typeof a||a<20)&&(o.stackTraceLimit=20);}:noop$LWS;function noop$LWS(){}const Ee=e?e=>D(oe,e,[]):noop$LWS,Ae=e?e=>D(ne,e,[]):noop$LWS,Be=e?e=>D(se,e,[]):noop$LWS,He=e?e=>{if(e!==ue){const t=D(he,e,[]);return ie({__proto__:null,flags:D(de,e,[]),source:t})}}:noop$LWS,Ce=e?e=>D(ge,e,[]):noop$LWS,ke=e?e=>D($e,e,[]):noop$LWS,je=e?e=>{switch(D(j,e,[])){case"[object Boolean]":return Ae(e);case"[object Number]":return Be(e);case"[object RegExp]":return He(e);case"[object String]":return Ce(e);case"[object Object]":try{return ke(e)}catch(e){}if(W)try{return Ee(e)}catch(e){}default:return}}:noop$LWS,De=e?e=>{try{return ke(e)}catch(e){}if(W)try{return Ee(e)}catch(e){}try{return Ae(e)}catch(e){}try{return Be(e)}catch(e){}try{return He(e)}catch(e){}try{return Ce(e)}catch(e){}}:noop$LWS;return function(r,o,i){const{distortionCallback:s=identity$LWS,instrumentation:p}=L({__proto__:null},i),f=!e&&"object"==typeof p&&null!==p,W={__proto__:null,0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,n:void 0},oe={__proto__:null,0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,n:void 0},ne=new u,ae=new u,ie=f?p.startActivity:void 0;let se,pe,ye,fe,de,Se,ge,$e,xe,me,Ee,Ae,Be,He,Ce,ke,Me,Fe,Ge,Ie,Re,Ne,Ke,Ve,Ue,ze,Ze,Xe=0,Je=!1;const Ye=e?(e,t,r)=>{r[t]=!1;const o=getTransferablePointer$LWS(e);let n;try{ge(o,t,(e,t,r,o,a,l,i)=>{n=createDescriptorFromMeta$LWS(t,r,o,a,l,i);});}catch(e){var a;const t=null!=(a=Ze)?a:e;throw Ze=void 0,t}n?F(e,t,n):delete e[t];}:noop$LWS;function copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(e,t){let r,o,n;f&&(r=ie("callableBatchGetPrototypeOfAndGetOwnPropertyDescriptors"));try{o=Ve(e,(...e)=>{const r={};for(let t=0,{length:o}=e;t<o;t+=7){r[e[t]]=createDescriptorFromMeta$LWS(e[t+1],e[t+2],e[t+3],e[t+4],e[t+5],e[t+6]);}v(t,r);});}catch(e){var a;const t=null!=(a=Ze)?a:e;throw Ze=void 0,f&&r.error(t),t}finally{f&&r.stop();}"function"==typeof o?(o(),n=Ze,Ze=void 0):n=null,J(t,n);}function createApplyOrConstructTrapForZeroOrMoreArgs$LWS(e){const t=1&e,r=t?"callableApplyWithZeroOrMoreArgs":"callableConstructWithZeroOrMoreArgs",o=t?W:oe,n=t?pe:ye;return function(a,l,i){Xe=e;const s=t?i:l,{length:c}=s;var u;if(0!==c)return D(null!=(u=o[c])?u:o.n,this,[a,l,i]);let p;f&&(p=ie(r));const{foreignTargetPointer:y}=this,d=t?l:i;try{const e=n(y,"object"==typeof d&&null!==d||"function"==typeof d?getTransferablePointer$LWS(d):"undefined"==typeof d?void 0:d);let t;return "function"==typeof e?(e(),t=Ze,Ze=void 0):t=e,t}catch(e){var h;const t=null!=(h=Ze)?h:e;throw Ze=void 0,f&&p.error(t),t}finally{f&&p.stop();}}}function createApplyOrConstructTrapForOneOrMoreArgs$LWS(e){const t=1&e,r=t?"callableApplyWithOneOrMoreArgs":"callableConstructWithOneOrMoreArgs",o=t?W:oe,n=t?pe:ye;return function(a,l,i){Xe=e;const s=t?i:l,{length:c}=s;var u;if(1!==c)return D(null!=(u=o[c])?u:o.n,this,[a,l,i]);let p;f&&(p=ie(r));const{foreignTargetPointer:y}=this,d=t?l:i;try{const{0:e}=s,t=n(y,"object"==typeof d&&null!==d||"function"==typeof d?getTransferablePointer$LWS(d):"undefined"==typeof d?void 0:d,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e);let r;return "function"==typeof t?(t(),r=Ze,Ze=void 0):r=t,r}catch(e){var h;const t=null!=(h=Ze)?h:e;throw Ze=void 0,f&&p.error(t),t}finally{f&&p.stop();}}}function createApplyOrConstructTrapForTwoOrMoreArgs$LWS(e){const t=1&e,r=t?"callableApplyWithTwoOrMoreArgs":"callableConstructWithTwoOrMoreArgs",o=t?W:oe,n=t?pe:ye;return function(a,l,i){Xe=e;const s=t?i:l,{length:c}=s;var u;if(2!==c)return D(null!=(u=o[c])?u:o.n,this,[a,l,i]);let p;f&&(p=ie(r));const{foreignTargetPointer:y}=this,d=t?l:i;try{const{0:e,1:t}=s,r=n(y,"object"==typeof d&&null!==d||"function"==typeof d?getTransferablePointer$LWS(d):"undefined"==typeof d?void 0:d,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t);let o;return "function"==typeof r?(r(),o=Ze,Ze=void 0):o=r,o}catch(e){var h;const t=null!=(h=Ze)?h:e;throw Ze=void 0,f&&p.error(t),t}finally{f&&p.stop();}}}function createApplyOrConstructTrapForThreeOrMoreArgs$LWS(e){const t=1&e,r=t?"callableApplyWithThreeOrMoreArgs":"callableConstructWithThreeOrMoreArgs",o=t?W:oe,n=t?pe:ye;return function(a,l,i){Xe=e;const s=t?i:l,{length:c}=s;var u;if(3!==c)return D(null!=(u=o[c])?u:o.n,this,[a,l,i]);let p;f&&(p=ie(r));const{foreignTargetPointer:y}=this,d=t?l:i;try{const{0:e,1:t,2:r}=s,o=n(y,"object"==typeof d&&null!==d||"function"==typeof d?getTransferablePointer$LWS(d):"undefined"==typeof d?void 0:d,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):"undefined"==typeof r?void 0:r);let a;return "function"==typeof o?(o(),a=Ze,Ze=void 0):a=o,a}catch(e){var h;const t=null!=(h=Ze)?h:e;throw Ze=void 0,f&&p.error(t),t}finally{f&&p.stop();}}}function createApplyOrConstructTrapForFourOrMoreArgs$LWS(e){const t=1&e,r=t?"callableApplyWithFourOrMoreArgs":"callableConstructWithFourOrMoreArgs",o=t?W:oe,n=t?pe:ye;return function(a,l,i){Xe=e;const s=t?i:l,{length:c}=s;var u;if(4!==c)return D(null!=(u=o[c])?u:o.n,this,[a,l,i]);let p;f&&(p=ie(r));const{foreignTargetPointer:y}=this,d=t?l:i;try{const{0:e,1:t,2:r,3:o}=s,a=n(y,"object"==typeof d&&null!==d||"function"==typeof d?getTransferablePointer$LWS(d):"undefined"==typeof d?void 0:d,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"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);let l;return "function"==typeof a?(a(),l=Ze,Ze=void 0):l=a,l}catch(e){var h;const t=null!=(h=Ze)?h:e;throw Ze=void 0,f&&p.error(t),t}finally{f&&p.stop();}}}function createApplyOrConstructTrapForAnyNumberOfArgs$LWS(e){const r=1&e,o=r?"callableApplyWithAnyNumberOfArgs":"callableConstructWithAnyNumberOfArgs",n=r?pe:ye;return function(a,l,i){let s;Xe=e,f&&(s=ie(o));const{foreignTargetPointer:c}=this,u=r?i:l,p=r?l:i,{length:y}=u;let d=2;const h=new t(y+d);h[0]=c;try{h[1]="object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p;for(let e=0;e<y;e+=1){const t=u[e];h[d++]="object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t;}const e=D(n,void 0,h);let t;return "function"==typeof e?(e(),t=Ze,Ze=void 0):t=e,t}catch(e){var S;const t=null!=(S=Ze)?S:e;throw Ze=void 0,f&&s.error(t),t}finally{f&&s.stop();}}}function createDescriptorFromMeta$LWS(e,t,r,o,n,a){const l={__proto__:null};if(e!==g&&(l.configurable=e),t!==g&&(l.enumerable=t),r!==g&&(l.writable=r),n!==g){let e;"function"==typeof n?(n(),e=Ze,Ze=void 0):e=n,l.get=e;}if(a!==g){let e;"function"==typeof a?(a(),e=Ze,Ze=void 0):e=a,l.set=e;}if(o!==g){let e;"function"==typeof o?(o(),e=Ze,Ze=void 0):e=o,l.value=e;}return l}function createPointer$LWS(e){return ()=>{Ze=e;}}const qe=e?e=>{let t=D(We,ne,[e]);if(void 0===t){const r=ke(getTransferablePointer$LWS(e));"function"==typeof r&&(r(),t=Ze,Ze=void 0,t&&D(Le,ne,[e,t]));}return t}:noop$LWS;function getTransferablePointer$LWS(t){let r=D(We,ae,[t]);if(r)return r;const o=e?t:s(t);if(o!==t&&typeof o!=typeof t)throw new c(`Invalid distortion ${t}.`);let n,a=8;try{Y(o)&&(a=1);}catch(e){a=16;}if("function"==typeof o){n=0,a=2;try{"prototype"in o||(a|=4);const e=R(t,"length");if(e){J(e,null);const{value:t}=e;"number"==typeof t&&(n=t);}void 0;}catch(e){}}return r=se(createPointer$LWS(o),a,n,undefined),D(Le,ae,[t,r]),r}const Qe=e?e=>{if(Oe)return;Oe=!0;const t=Y(e)&&e.length>0,r=t?{__proto__:null}:void 0,o=t?(t,r)=>D(q,e,[r])?{configurable:!1,enumerable:D(k,t,[r]),get:i(r),set:void 0}:R(t,r):void 0,i=t?e=>{let t=r[e];return void 0===t&&(t=D(le,u,[]),r[e]=t),t}:void 0,s=t?(t,r)=>D(q,e,[r])?i(r):D(B,t,[r]):void 0,c=t?(t,r)=>D(q,e,[r])?void 0:D(H,t,[r]):void 0,u=t?()=>we:void 0,wrapDefineAccessOrProperty$LWS=e=>{const{length:t}=e,r=2===t;return new a(e,{apply(o,n,a){if(a.length>=t){const e=r?n:a[0],t=r?a[0]:a[1],o=qe(e);null!=o&&o[t]&&I(e,t);}return D(e,n,a)}})},wrapLookupAccessor$LWS=(e,r)=>new a(e,{apply(o,n,a){if(a.length){const{0:e}=a,o=qe(n);if(null!=o&&o[e]&&I(n,e),t&&n===we)return r(n,e)}return D(e,n,a)}}),wrapGetOwnPropertyDescriptor$LWS=e=>new a(e,{apply(r,n,a){if(a.length>1){const{0:e,1:r}=a,n=qe(e);if(null!=n&&n[r]&&I(e,r),t&&e===we)return o(e,r)}return D(e,n,a)}});var p;l.defineProperty=wrapDefineAccessOrProperty$LWS(F),l.getOwnPropertyDescriptor=wrapGetOwnPropertyDescriptor$LWS(R),n.getOwnPropertyDescriptor=wrapGetOwnPropertyDescriptor$LWS(T),n.getOwnPropertyDescriptors=new a(p=w,{apply(e,r,n){if(!n.length)return D(p,r,n);const{0:a}=n,l=qe(a),i=a===we&&t,s=i?{}:D(p,r,n);if(!i&&void 0===l)return s;const c=z(i?a:s);for(let e=0,{length:t}=c;e<t;e+=1){const t=c[e],r=!(null==l||!l[t]);if(r&&I(a,t),r||i){const e=i?o(a,t):R(a,t);e?s[t]=e:i||delete s[t];}}return s}}),m.__defineGetter__=wrapDefineAccessOrProperty$LWS(E),m.__defineSetter__=wrapDefineAccessOrProperty$LWS(A),m.__lookupGetter__=wrapLookupAccessor$LWS(B,s),m.__lookupSetter__=wrapLookupAccessor$LWS(H,c);}:noop$LWS;function lockShadowTarget$LWS(e,t){copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(t,e),Z(e);}function lookupForeignDescriptor$LWS(e,t,r){let o,n,a,l;f&&(o=ie("callableBatchGetPrototypeOfWhenHasNoOwnPropertyDescriptor"));try{n=ze(e,r,(e,o,n,l,i,s,c)=>{a=createDescriptorFromMeta$LWS(o,n,l,i,s,c),!1===a.configurable&&F(t,r,a);});}catch(e){var i;const t=null!=(i=Ze)?i:e;throw Ze=void 0,f&&o.error(t),t}finally{f&&o.stop();}if(a)return a;for("function"==typeof n?(n(),l=Ze,Ze=void 0):l=n;l;){if(a=R(l,r),a)return J(a,null),a;l=N(l);}}function pushErrorAcrossBoundary$LWS(e){if("object"==typeof e&&null!==e||"function"==typeof e){getTransferablePointer$LWS(e)();}return e}const et=e?(e,t)=>{D(Le,ne,[e,t]),Ke(getTransferablePointer$LWS(e),getTransferablePointer$LWS(t));}:noop$LWS;class BoundaryProxyHandler$LWS{constructor(t,o,n,a){let l;this.color=r,this.foreignTargetTraits=0;const i=1&o,s=2&o;l=s?4&o?()=>{}:function(){}:i?[]:{};const{proxy:c,revoke:u}=ce(l,this);var p,y;(this.foreignTargetPointer=t,this.foreignTargetTraits=o,this.nonConfigurableDescriptorCallback=(e,t,r,o,n,a,l)=>{F(this.shadowTarget,e,createDescriptorFromMeta$LWS(t,r,o,n,a,l));},this.proxy=c,this.revoke=u,this.serializedValue=void 0,this.shadowTarget=l,this.staticToStringTag=void 0,s)&&(this.apply=null!=(p=W[n])?p:W.n,this.construct=null!=(y=oe[n])?y:oe.n);if(this.defineProperty=BoundaryProxyHandler$LWS.defaultDefinePropertyTrap,this.deleteProperty=BoundaryProxyHandler$LWS.defaultDeletePropertyTrap,this.isExtensible=BoundaryProxyHandler$LWS.defaultIsExtensibleTrap,this.getOwnPropertyDescriptor=BoundaryProxyHandler$LWS.defaultGetOwnPropertyDescriptorTrap,this.getPrototypeOf=BoundaryProxyHandler$LWS.defaultGetPrototypeOfTrap,this.get=BoundaryProxyHandler$LWS.defaultGetTrap,this.has=BoundaryProxyHandler$LWS.defaultHasTrap,this.ownKeys=BoundaryProxyHandler$LWS.defaultOwnKeysTrap,this.preventExtensions=BoundaryProxyHandler$LWS.defaultPreventExtensionsTrap,this.setPrototypeOf=BoundaryProxyHandler$LWS.defaultSetPrototypeOfTrap,this.set=BoundaryProxyHandler$LWS.defaultSetTrap,16&o&&u(),e)i&&this.makeProxyLive();else {if(8&o){let e=g;D(E,this,["serializedValue",()=>(e===g&&(e=Ne(this.foreignTargetPointer)),e)]);}P(this);}}makeProxyLive(){this.deleteProperty=BoundaryProxyHandler$LWS.passthruDeletePropertyTrap,this.defineProperty=BoundaryProxyHandler$LWS.passthruDefinePropertyTrap,this.preventExtensions=BoundaryProxyHandler$LWS.passthruPreventExtensionsTrap,this.set=BoundaryProxyHandler$LWS.passthruSetTrap,this.setPrototypeOf=BoundaryProxyHandler$LWS.passthruSetPrototypeOfTrap,P(this);}makeProxyStatic(){this.defineProperty=BoundaryProxyHandler$LWS.staticDefinePropertyTrap,this.deleteProperty=BoundaryProxyHandler$LWS.staticDeletePropertyTrap,this.get=BoundaryProxyHandler$LWS.staticGetTrap,this.getOwnPropertyDescriptor=BoundaryProxyHandler$LWS.staticGetOwnPropertyDescriptorTrap,this.getPrototypeOf=BoundaryProxyHandler$LWS.staticGetPrototypeOfTrap,this.has=BoundaryProxyHandler$LWS.staticHasTrap,this.isExtensible=BoundaryProxyHandler$LWS.staticIsExtensibleTrap,this.ownKeys=BoundaryProxyHandler$LWS.staticOwnKeysTrap,this.preventExtensions=BoundaryProxyHandler$LWS.staticPreventExtensionsTrap,this.set=BoundaryProxyHandler$LWS.staticSetTrap,this.setPrototypeOf=BoundaryProxyHandler$LWS.staticSetPrototypeOfTrap;const{foreignTargetPointer:e,shadowTarget:t}=this,r=Me(e);if(8&r)return P(this),this.revoke(),void 0;try{copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(e,t);}catch(t){if(Re(e))return P(this),this.revoke(),void 0}if(8&this.foreignTargetTraits&&!V(t,y)){let t="Object";try{t=Fe(e);}catch(e){}"Object"!==t&&(this.staticToStringTag=t);}4&r?P(t):2&r?_(t):1&r?Z(t):!1!==$&&($=Ce("Mutations on the membrane of an object originating outside of the sandbox will not be reflected on the object itself:",e)),P(this);}makeProxyUnambiguous(){Ie(this.foreignTargetPointer)?this.makeProxyLive():this.makeProxyStatic();}static passthruDefinePropertyTrap(e,t,r){let o;Xe=4,f&&(o=ie("callableDefineProperty"));const n=r;J(n,null);const{value:a,get:l,set:i}=n,s="value"in n?"object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):"undefined"==typeof a?void 0:a:g,c="get"in n?"object"==typeof l&&null!==l||"function"==typeof l?getTransferablePointer$LWS(l):l:g,u="set"in n?"object"==typeof i&&null!==i||"function"==typeof i?getTransferablePointer$LWS(i):i:g;try{return fe(this.foreignTargetPointer,t,"configurable"in n?!!n.configurable:g,"enumerable"in n?!!n.enumerable:g,"writable"in n?!!n.writable:g,s,c,u,this.nonConfigurableDescriptorCallback)}catch(e){var p;const t=null!=(p=Ze)?p:e;throw Ze=void 0,f&&o.error(t),t}finally{f&&o.stop();}}static passthruDeletePropertyTrap(e,t){let r;Xe=8,f&&(r=ie("callableDeleteProperty"));try{return de(this.foreignTargetPointer,t)}catch(e){var o;const t=null!=(o=Ze)?o:e;throw Ze=void 0,f&&r.error(t),t}finally{f&&r.stop();}}static passthruGetTrap(e,t,r){if(Je&&(Je=128===Xe),Xe=16,Je){if(t===b)return !0;if(t===S)return this.serializedValue}let o;f&&(o=ie("callableGet"));const n="object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):r;try{const e=Se(this.foreignTargetPointer,this.foreignTargetTraits,t,n);let r;return "function"==typeof e?(e(),r=Ze,Ze=void 0):r=e,r}catch(e){var a;const t=null!=(a=Ze)?a:e;throw Ze=void 0,f&&o.error(t),t}finally{f&&o.stop();}}static passthruGetPrototypeOfTrap(e){let t,r,o;Xe=64,f&&(t=ie("callableGetPrototypeOf"));try{r=$e(this.foreignTargetPointer);}catch(e){var n;const r=null!=(n=Ze)?n:e;throw Ze=void 0,f&&t.error(r),r}finally{f&&t.stop();}return "function"==typeof r?(r(),o=Ze,Ze=void 0):o=null,o}static passthruHasTrap(e,t){let r,o;Xe=128,f&&(r=ie("callableHas"));try{o=xe(this.foreignTargetPointer,t);}catch(e){var n;const t=null!=(n=Ze)?n:e;throw Ze=void 0,f&&r.error(t),t}finally{f&&r.stop();}return Je=!o&&(t===b||t===S),o}static passthruIsExtensibleTrap(e){Xe=256;const{shadowTarget:t}=this;if(U(t)){let e;f&&(e=ie("callableIsExtensible"));const{foreignTargetPointer:o}=this;try{if(me(o))return !0}catch(t){var r;const o=null!=(r=Ze)?r:t;throw Ze=void 0,f&&e.error(o),o}finally{f&&e.stop();}lockShadowTarget$LWS(t,o);}return !1}static passthruOwnKeysTrap(e){let t,r;Xe=512,f&&(t=ie("callableOwnKeys"));try{Ee(this.foreignTargetPointer,(...e)=>{r=e;});}catch(e){var o;const r=null!=(o=Ze)?o:e;throw Ze=void 0,f&&t.error(r),r}finally{f&&t.stop();}return r||[]}static passthruGetOwnPropertyDescriptorTrap(e,t){let r,o;Xe=32,f&&(r=ie("callableGetOwnPropertyDescriptor"));try{ge(this.foreignTargetPointer,t,(e,r,n,a,l,i,s)=>{o=createDescriptorFromMeta$LWS(r,n,a,l,i,s),!1===o.configurable&&F(this.shadowTarget,t,o);});}catch(e){var n;const t=null!=(n=Ze)?n:e;throw Ze=void 0,f&&r.error(t),t}finally{f&&r.stop();}return o}static passthruPreventExtensionsTrap(e){Xe=1024;const{shadowTarget:t}=this;if(U(t)){let e;f&&(e=ie("callablePreventExtensions"));const{foreignTargetPointer:o}=this;let n;try{n=Ae(o);}catch(t){var r;const o=null!=(r=Ze)?r:t;throw Ze=void 0,f&&e.error(o),o}finally{f&&e.stop();}if(2&n)return 1&n||lockShadowTarget$LWS(t,o),!1;lockShadowTarget$LWS(t,o);}return !0}static passthruSetPrototypeOfTrap(e,t){let r;Xe=4096,f&&(r=ie("callableSetPrototypeOf"));const o=t?getTransferablePointer$LWS(t):t;try{return He(this.foreignTargetPointer,o)}catch(e){var n;const t=null!=(n=Ze)?n:e;throw Ze=void 0,f&&r.error(t),t}finally{f&&r.stop();}}static passthruSetTrap(e,t,r,o){Xe=2048;const{foreignTargetPointer:n,proxy:a}=this;return "undefined"==typeof r&&(r=void 0),"undefined"==typeof o&&(o=a),a===o?function(e,t,r,o){let n;f&&(n=ie("callableSet"));const a="object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):r,l=getTransferablePointer$LWS(o);try{return Be(e,t,a,l)}catch(e){var i;const t=null!=(i=Ze)?i:e;throw Ze=void 0,f&&n.error(t),t}finally{f&&n.stop();}}(n,t,r,o):function(e,t,r,o,n){const a=lookupForeignDescriptor$LWS(e,t,r);if(a){if("get"in a||"set"in a){const{set:e}=a;return !!e&&(D(e,n,[o]),!0)}if(!1===a.writable)return !1}if(null===n||"function"!=typeof n&&"object"!=typeof n)return !1;const l=R(n,r);return l?(J(l,null),!("get"in l)&&!("set"in l)&&!1!==l.writable&&(F(n,r,{__proto__:null,value:o}),!0)):F(n,r,{__proto__:null,configurable:!0,enumerable:!0,value:o,writable:!0})}(n,this.shadowTarget,t,r,o)}}return BoundaryProxyHandler$LWS.hybridGetTrap=e?function(e,t,r){const{foreignTargetPointer:o,shadowTarget:n}=this,a=lookupForeignDescriptor$LWS(o,n,t);if(a){const{get:e,value:t}=a;return e?D(e,r,[]):t}if(t===y&&8&this.foreignTargetTraits){let e,t;f&&(e=ie("callableGetToStringTagOfTarget"));try{t=Fe(o);}catch(t){var l;const r=null!=(l=Ze)?l:t;throw Ze=void 0,f&&e.error(r),r}finally{f&&e.stop();}if("Object"!==t)return t}}:noop$LWS,BoundaryProxyHandler$LWS.hybridHasTrap=e?function(e,t){let r,o,n;f&&(r=ie("callableBatchGetPrototypeOfWhenHasNoOwnProperty"));try{o=Ue(this.foreignTargetPointer,t);}catch(e){var a;const t=null!=(a=Ze)?a:e;throw Ze=void 0,f&&r.error(t),t}finally{f&&r.stop();}if(!0===o)return !0;for("function"==typeof o?(o(),n=Ze,Ze=void 0):n=o;n;){if(D(C,n,[t]))return !0;n=N(n);}return !1}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.pendingDefinePropertyTrap=e?function(e,t,r){return this.makeProxyUnambiguous(),this.defineProperty(e,t,r)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.pendingDeletePropertyTrap=e?function(e,t){return this.makeProxyUnambiguous(),this.deleteProperty(e,t)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.pendingPreventExtensionsTrap=e?function(e){return this.makeProxyUnambiguous(),this.preventExtensions(e)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.pendingSetPrototypeOfTrap=e?function(e,t){return this.makeProxyUnambiguous(),this.setPrototypeOf(e,t)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.pendingSetTrap=e?function(e,t,r,o){return this.makeProxyUnambiguous(),this.set(e,t,r,o)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.staticDefinePropertyTrap=e?F:alwaysFalse$LWS,BoundaryProxyHandler$LWS.staticDeletePropertyTrap=e?G:alwaysFalse$LWS,BoundaryProxyHandler$LWS.staticGetOwnPropertyDescriptorTrap=e?R:noop$LWS,BoundaryProxyHandler$LWS.staticGetPrototypeOfTrap=e?N:()=>null,BoundaryProxyHandler$LWS.staticGetTrap=e?function(e,t,r){const{shadowTarget:o}=this,n=I(o,t,r);return void 0===n&&t===y&&8&this.foreignTargetTraits&&!V(o,t)?this.staticToStringTag:n}:noop$LWS,BoundaryProxyHandler$LWS.staticHasTrap=e?V:alwaysFalse$LWS,BoundaryProxyHandler$LWS.staticIsExtensibleTrap=e?U:alwaysFalse$LWS,BoundaryProxyHandler$LWS.staticOwnKeysTrap=e?z:()=>[],BoundaryProxyHandler$LWS.staticPreventExtensionsTrap=e?Z:alwaysFalse$LWS,BoundaryProxyHandler$LWS.staticSetPrototypeOfTrap=e?J:alwaysFalse$LWS,BoundaryProxyHandler$LWS.staticSetTrap=e?X:alwaysFalse$LWS,BoundaryProxyHandler$LWS.defaultDefinePropertyTrap=e?BoundaryProxyHandler$LWS.pendingDefinePropertyTrap:BoundaryProxyHandler$LWS.passthruDefinePropertyTrap,BoundaryProxyHandler$LWS.defaultDeletePropertyTrap=e?BoundaryProxyHandler$LWS.pendingDeletePropertyTrap:BoundaryProxyHandler$LWS.passthruDeletePropertyTrap,BoundaryProxyHandler$LWS.defaultGetOwnPropertyDescriptorTrap=BoundaryProxyHandler$LWS.passthruGetOwnPropertyDescriptorTrap,BoundaryProxyHandler$LWS.defaultGetPrototypeOfTrap=BoundaryProxyHandler$LWS.passthruGetPrototypeOfTrap,BoundaryProxyHandler$LWS.defaultGetTrap=e?BoundaryProxyHandler$LWS.hybridGetTrap:BoundaryProxyHandler$LWS.passthruGetTrap,BoundaryProxyHandler$LWS.defaultHasTrap=e?BoundaryProxyHandler$LWS.hybridHasTrap:BoundaryProxyHandler$LWS.passthruHasTrap,BoundaryProxyHandler$LWS.defaultIsExtensibleTrap=BoundaryProxyHandler$LWS.passthruIsExtensibleTrap,BoundaryProxyHandler$LWS.defaultOwnKeysTrap=BoundaryProxyHandler$LWS.passthruOwnKeysTrap,BoundaryProxyHandler$LWS.defaultPreventExtensionsTrap=e?BoundaryProxyHandler$LWS.pendingPreventExtensionsTrap:BoundaryProxyHandler$LWS.passthruPreventExtensionsTrap,BoundaryProxyHandler$LWS.defaultSetTrap=e?BoundaryProxyHandler$LWS.pendingSetTrap:BoundaryProxyHandler$LWS.passthruSetTrap,BoundaryProxyHandler$LWS.defaultSetPrototypeOfTrap=e?BoundaryProxyHandler$LWS.pendingSetPrototypeOfTrap:BoundaryProxyHandler$LWS.passthruSetPrototypeOfTrap,J(BoundaryProxyHandler$LWS.prototype,null),P(BoundaryProxyHandler$LWS.prototype),o(createPointer$LWS(we),e?noop$LWS:()=>{const e=Ze;return Ze=void 0,e},e=>"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e,(e,t)=>{e();const r=Ze;Ze=void 0;const o=null==r?void 0:r[t];return createPointer$LWS("undefined"==typeof o?void 0:o)},e?e=>{try{const t=Te(e);return "object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):t}catch(e){throw pushErrorAcrossBoundary$LWS(e)}}:noop$LWS,(e,t)=>{e();const r=Ze;Ze=void 0,("object"==typeof r&&null!==r||"function"==typeof r)&&D(Le,ae,[r,t]);},(e,t,r,o)=>{const{proxy:n}=new BoundaryProxyHandler$LWS(e,t,r,o);return D(Le,ae,[n,e]),createPointer$LWS(n)},(e,t,...r)=>{e();const o=Ze;let n,a;Ze=void 0,"function"==typeof t&&(t(),n=Ze,Ze=void 0);for(let e=0,{length:t}=r;e<t;e+=1){const t=r[e];"function"==typeof t&&(t(),r[e]=Ze,Ze=void 0);}try{a=D(o,n,r);}catch(e){throw pushErrorAcrossBoundary$LWS(e)}return "object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):"undefined"==typeof a?void 0:a},(e,t,...r)=>{e();const o=Ze;let n,a;Ze=void 0,"function"==typeof t&&(t(),n=Ze,Ze=void 0);for(let e=0,{length:t}=r;e<t;e+=1){const t=r[e];"function"==typeof t&&(t(),r[e]=Ze,Ze=void 0);}try{a=M(o,r,n);}catch(e){throw pushErrorAcrossBoundary$LWS(e)}return "object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):"undefined"==typeof a?void 0:a},(e,t,r,o,n,a,l,i,s)=>{e();const c=Ze;Ze=void 0;let u=!1;try{u=F(c,t,createDescriptorFromMeta$LWS(r,o,n,a,l,i));}catch(e){throw pushErrorAcrossBoundary$LWS(e)}if(u&&!1===r){let e;try{e=R(c,t);}catch(e){throw pushErrorAcrossBoundary$LWS(e)}if(e&&(J(e,null),!1===e.configurable)){const{value:r,get:o,set:n}=e;s(t,!1,"enumerable"in e?e.enumerable:g,"writable"in e?e.writable:g,"value"in e?"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):r:g,"get"in e?"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o:g,"set"in e?"object"==typeof n&&null!==n||"function"==typeof n?getTransferablePointer$LWS(n):n:g);}}return u},(e,t)=>{e();const r=Ze;Ze=void 0;try{return G(r,t)}catch(e){throw pushErrorAcrossBoundary$LWS(e)}},(e,t,r,o)=>{e();const n=Ze;let a,l;Ze=void 0,"function"==typeof o?(o(),a=Ze,Ze=void 0):a=o;try{l=I(n,r,a);}catch(e){throw pushErrorAcrossBoundary$LWS(e)}if("object"==typeof l&&null!==l||"function"==typeof l)return getTransferablePointer$LWS(l);if(void 0===l&&r===y&&8&t)try{if(!V(n,r)){const e=D(j,n,[]);"[object Object]"!==e&&(l=D(be,e,[8,-1]));}}catch(e){throw pushErrorAcrossBoundary$LWS(e)}return "undefined"==typeof l?void 0:l},(e,t,r)=>{e();const o=Ze;let n;Ze=void 0;try{n=R(o,t);}catch(e){throw pushErrorAcrossBoundary$LWS(e)}if(n){J(n,null);const{value:e,get:o,set:a}=n;r(t,"configurable"in n?n.configurable:g,"enumerable"in n?n.enumerable:g,"writable"in n?n.writable:g,"value"in n?"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e:g,"get"in n?"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o:g,"set"in n?"object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):a:g);}},e=>{e();const t=Ze;let r;Ze=void 0;try{r=N(t);}catch(e){throw pushErrorAcrossBoundary$LWS(e)}return "undefined"==typeof r?null:r?getTransferablePointer$LWS(r):r},(e,t)=>{e();const r=Ze;Ze=void 0;try{return V(r,t)}catch(e){throw pushErrorAcrossBoundary$LWS(e)}},e=>{e();const t=Ze;Ze=void 0;try{return U(t)}catch(e){throw pushErrorAcrossBoundary$LWS(e)}},(e,t)=>{e();const r=Ze;let o;Ze=void 0;try{o=z(r);}catch(e){throw pushErrorAcrossBoundary$LWS(e)}D(t,void 0,o);},e=>{e();const t=Ze;Ze=void 0;let r=2;try{Z(t)&&(r=4);}catch(e){throw pushErrorAcrossBoundary$LWS(e)}return 2&r&&U(t)&&(r|=1),r},(e,t,r,o)=>{e();const n=Ze;let a,l;Ze=void 0,"function"==typeof r?(r(),a=Ze,Ze=void 0):a=r,"function"==typeof o?(o(),l=Ze,Ze=void 0):l=o;try{return X(n,t,a,l)}catch(e){throw pushErrorAcrossBoundary$LWS(e)}},(e,t)=>{e();const r=Ze;let o;Ze=void 0,"function"==typeof t?(t(),o=Ze,Ze=void 0):o=null;try{return J(r,o)}catch(e){throw pushErrorAcrossBoundary$LWS(e)}},LOCKER_UNMINIFIED_FLAG$LWS&&!e?(...e)=>{if(void 0===$&&($=D(C,we,[d]),$))try{_e(),Ge();}catch(e){}if($){for(let t=0,{length:r}=e;t<r;t+=1){const r=e[t];"function"==typeof r&&(r(),e[t]=Ze,Ze=void 0);}try{D(Pe,ve,e);}catch(e){}return !0}return !1}:()=>!1,e?(e,...t)=>{e();const r=Ze;Ze=void 0;for(let e=0,{length:o}=t;e<o;e+=7)F(r,t[e],createDescriptorFromMeta$LWS(t[e+1],t[e+2],t[e+3],t[e+4],t[e+5],t[e+6]));}:noop$LWS,e?noop$LWS:e=>{e();const t=Ze;let r;Ze=void 0;try{r=D(We,K,[t]);}catch(e){throw pushErrorAcrossBoundary$LWS(e)}return r?getTransferablePointer$LWS(r):r},e?()=>0:e=>{e();const t=Ze;Ze=void 0;try{if(!U(t))return x(t)||O(t)?0:1}catch(e){try{Y(t);}catch(e){return 8}}return 0},e=>{e();const t=Ze;Ze=void 0;try{const e=D(j,t,[]);return "[object Object]"===e?"Object":D(be,e,[8,-1])}catch(e){throw pushErrorAcrossBoundary$LWS(e)}},_e,e?(e,...t)=>{const r=D(Q,t,[g]);let o,n;-1===r?o=t:(o=D(ee,t,[0,r]),n=D(ee,t,[r+1])),e();const a=Ze;Ze=void 0;let l=qe(a);void 0===l&&(l={__proto__:null},et(a,l));for(let e=0,{length:t}=o;e<t;e+=1){const t=o[e];l[t]=!0,F(a,t,{__proto__:null,configurable:!0,get:()=>(Ye(a,t,l),I(a,t)),set(e){Ye(a,t,l),X(a,t,e);}});}Qe(n);}:noop$LWS,e?alwaysFalse$LWS:e=>{e();const t=Ze;if(Ze=void 0,t===m)return !1;try{if("object"==typeof t){const{constructor:e}=t;if(e===n)return !0;if(null===N(t)&&("function"!=typeof e||e.prototype!==t))return !0;if(te(t))return !0;try{return D(re,t,[]),!0}catch(e){}try{if(t!==ue)return D(he,t,[]),!0}catch(e){}}return D(C,t,[h])}catch(e){}return !1},e?alwaysFalse$LWS:e=>{e();const t=Ze;Ze=void 0;try{return Y(t),!1}catch(e){}return !0},e?e=>{e();const t=Ze;Ze=void 0;try{return V(t,y)?De(t):je(t)}catch(e){}}:noop$LWS,e?noop$LWS:(e,t)=>{e();const r=Ze;Ze=void 0,t();const o=Ze;Ze=void 0;try{D(Le,K,[r,o]);}catch(e){throw pushErrorAcrossBoundary$LWS(e)}},(e,r)=>{e();const o=Ze;let n;Ze=void 0;try{n=w(o);}catch(e){throw pushErrorAcrossBoundary$LWS(e)}const a=z(n),{length:l}=a,i=new t(7*l);for(let e=0,t=0;e<l;e+=1,t+=7){const r=a[e],o=n[r];J(o,null);const{value:l,get:s,set:c}=o;i[t]=r,i[t+1]="configurable"in o?o.configurable:g,i[t+2]="enumerable"in o?o.enumerable:g,i[t+3]="writable"in o?o.writable:g,i[t+4]="value"in o?"object"==typeof l&&null!==l||"function"==typeof l?getTransferablePointer$LWS(l):l:g,i[t+5]="get"in o?"object"==typeof s&&null!==s||"function"==typeof s?getTransferablePointer$LWS(s):s:g,i[t+6]="set"in o?"object"==typeof c&&null!==c||"function"==typeof c?getTransferablePointer$LWS(c):c:g;}let s;D(r,void 0,i);try{s=N(o);}catch(e){throw pushErrorAcrossBoundary$LWS(e)}return "undefined"==typeof s?null:s?getTransferablePointer$LWS(s):s},(e,t)=>{e();const r=Ze;let o;Ze=void 0;try{if(D(C,r,[t]))return !0;o=N(r);}catch(e){throw pushErrorAcrossBoundary$LWS(e)}return "undefined"==typeof o?null:o?getTransferablePointer$LWS(o):o},(e,t,r)=>{e();const o=Ze;let n,a;Ze=void 0;try{n=R(o,t);}catch(e){throw pushErrorAcrossBoundary$LWS(e)}if(n){J(n,null);const{value:e,get:o,set:a}=n;return r(t,"configurable"in n?n.configurable:g,"enumerable"in n?n.enumerable:g,"writable"in n?n.writable:g,"value"in n?"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e:g,"get"in n?"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o:g,"set"in n?"object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):a:g),void 0}try{a=N(o);}catch(e){throw pushErrorAcrossBoundary$LWS(e)}return "undefined"==typeof a?null:a?getTransferablePointer$LWS(a):a}),(...e)=>{const{6:t,7:r,8:o,9:n,10:a,11:l,12:i,13:s,14:c,15:u,16:p,17:y,18:f,19:d,20:h,22:S,23:b,24:g,25:$,27:L,28:v,29:P,30:T,31:w,32:x,33:O}=e;se=t,pe=r,ye=o,fe=n,de=a,Se=l,ge=i,$e=s,xe=c,me=u,Ee=p,Ae=y,Be=f,He=d,Ce=h,ke=S,Me=b,Fe=g,Ge=$,Ie=L,Re=v,Ne=P,Ke=T,Ve=w,Ue=x,ze=O,W[0]=createApplyOrConstructTrapForZeroOrMoreArgs$LWS(1),W[1]=createApplyOrConstructTrapForOneOrMoreArgs$LWS(1),W[2]=createApplyOrConstructTrapForTwoOrMoreArgs$LWS(1),W[3]=createApplyOrConstructTrapForThreeOrMoreArgs$LWS(1),W[4]=createApplyOrConstructTrapForFourOrMoreArgs$LWS(1),W.n=createApplyOrConstructTrapForAnyNumberOfArgs$LWS(1),oe[0]=createApplyOrConstructTrapForZeroOrMoreArgs$LWS(2),oe[1]=createApplyOrConstructTrapForOneOrMoreArgs$LWS(2),oe[2]=createApplyOrConstructTrapForTwoOrMoreArgs$LWS(2),oe[3]=createApplyOrConstructTrapForThreeOrMoreArgs$LWS(2),oe[4]=createApplyOrConstructTrapForFourOrMoreArgs$LWS(2),oe.n=createApplyOrConstructTrapForAnyNumberOfArgs$LWS(2);}}}const V=TypeError,U=WeakMap,{apply:z}=Reflect,{get:Z,set:X}=U.prototype,J=`\n'use strict';\n(${createMembraneMarshall$LWS.toString()})`,Y=new U;function createConnector$LWS(e){if("function"!=typeof e)throw new V("Missing evaluator function.");let t=z(Z,Y,[e]);return void 0===t&&(t=e(J)(!0),z(X,Y,[e,t])),t}const q=Symbol.for("@@lockerNearMembraneUndefinedValue"),Q=Array,ee=Error,te=Object,{push:re}=Q.prototype,{assign:oe}=te,{apply:ne,ownKeys:ae}=Reflect;class VirtualEnvironment$LWS{constructor(e){if(void 0===e)throw new ee("Missing VirtualEnvironmentOptions options bag.");const{blueConnector:t,redConnector:r,distortionCallback:o,instrumentation:n}=oe({__proto__:null},e);let a;const l=t("blue",(...e)=>{a=e;},{distortionCallback:o,instrumentation:n}),{0:i,1:s,2:c,3:u,4:p,5:y,6:f,7:d,8:h,9:S,10:b,11:g,12:$,13:W,14:L,15:v,16:P,17:T,18:w,19:x,20:O,21:m,22:_,23:E,24:A,25:B,26:H,27:C,28:k,29:j,30:D,31:M,32:F,33:G}=a;let I;const R=r("red",(...e)=>{I=e;}),{0:N,1:K,2:V,3:U,4:z,5:Z,6:X,7:J,8:Y,9:q,10:Q,11:te,12:re,13:ne,14:ae,15:le,16:ie,17:se,18:ce,19:ue,20:pe,21:ye,22:fe,23:de,24:he,25:Se,26:be,27:ge,28:$e,29:We,30:Le,31:ve,32:Pe,33:Te}=I;l(N,K,V,U,z,Z,X,J,Y,q,Q,te,re,ne,ae,le,ie,se,ce,ue,pe,ye,fe,de,he,Se,be,ge,$e,We,Le,ve,Pe,Te),R(i,s,c,u,p,y,f,d,h,S,b,g,$,W,L,v,P,T,w,x,O,m,_,E,A,B,H,C,k,j,D,M,F,G),this.blueGlobalThisPointer=i,this.blueGetSelectedTarget=s,this.blueGetTransferableValue=c,this.blueCallableGetPropertyValuePointer=u,this.blueCallableLinkPointers=y,this.redGlobalThisPointer=N,this.redCallableGetPropertyValuePointer=U,this.redCallableEvaluate=z,this.redCallableLinkPointers=Z,this.redCallableSetPrototypeOf=ue,this.redCallableDefineProperties=ye,this.redCallableInstallLazyPropertyDescriptors=be;}evaluate(e){try{const t=this.redCallableEvaluate(e);return "function"==typeof t?(t(),this.blueGetSelectedTarget()):t}catch(e){var t;throw null!=(t=this.blueGetSelectedTarget())?t:e}}lazyRemapProperties(e,t,r){const o=[this.blueGetTransferableValue(e)];ne(re,o,t),null!=r&&r.length&&(o[o.length]=q,ne(re,o,r)),ne(this.redCallableInstallLazyPropertyDescriptors,void 0,o);}link(...e){let t=this.blueGlobalThisPointer,r=this.redGlobalThisPointer;for(let o=0,{length:n}=e;o<n;o+=1){const n=e[o];t=this.blueCallableGetPropertyValuePointer(t,n),r=this.redCallableGetPropertyValuePointer(r,n),this.redCallableLinkPointers(r,t),this.blueCallableLinkPointers(t,r);}}remapProperties(e,t){const r=this.blueGetTransferableValue(e),o=ae(t),{length:n}=o,a=new Q(1+7*n);a[0]=r;for(let e=0,r=1;e<n;e+=1,r+=7){const n=o[e],l=t[n],i=oe({__proto__:null},l);a[r]=n,a[r+1]="configurable"in i?!!i.configurable:q,a[r+2]="enumerable"in i?!!i.enumerable:q,a[r+3]="writable"in i?!!i.writable:q,a[r+4]="value"in i?this.blueGetTransferableValue(i.value):q,a[r+5]="get"in i?this.blueGetTransferableValue(i.get):q,a[r+6]="set"in i?this.blueGetTransferableValue(i.set):q;}ne(this.redCallableDefineProperties,this,a);}remapProto(e,t){const r=this.blueGetTransferableValue(e),o=t?this.blueGetTransferableValue(t):t;this.redCallableSetPrototypeOf(r,o);}}const{includes:le}=Array.prototype,{assign:ie}=Object,{apply:se,ownKeys:ce}=Reflect,ue=["AggregateError","Array","Error","EvalError","Function","Object","Proxy","RangeError","ReferenceError","SyntaxError","TypeError","URIError","eval","globalThis"],pe=["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",...ue];function getFilteredGlobalOwnKeys$LWS(e){const t=[];let r=0;const o=ce(e);for(let e=0,{length:n}=o;e<n;e+=1){const n=o[e];se(le,pe,[n])||(t[r++]=n);}return t}const ye=WeakMap,{apply:fe,getPrototypeOf:de,ownKeys:he}=Reflect,{get:Se,set:be}=ye.prototype,ge=new ye,$e=(()=>{const{navigator:{userAgent:e,userAgentData:t}}=window,r=null==t?void 0:t.brands;if(Array.isArray(r)&&r.length?r.find(e=>"Chromium"===(null==e?void 0:e.brand)):/ (?:Headless)?Chrome\/\d+/.test(e))return ["window"]})();function getCachedGlobalObjectReferences$LWS(e){let t=fe(Se,ge,[e]);if(t)return t;const{document:r,window:o}=e,n=de(o),a=de(n),l=de(a);return t={document:r,DocumentProto:de(r),window:o,WindowProto:n,WindowPropertiesProto:a,EventTargetProto:l,EventTargetProtoOwnKeys:he(l)},fe(be,ge,[e,t]),t}function filterWindowKeys$LWS(e){const t=[];let r=0;for(let o=0,{length:n}=e;o<n;o+=1){const n=e[o];"document"!==n&&"location "!==n&&"top"!==n&&"window"!==n&&"chrome"!==n&&(t[r++]=n);}return t}getCachedGlobalObjectReferences$LWS(window);const We=Object,Le=TypeError,{prototype:ve}=Document,{prototype:Pe}=Node,{remove:Te,setAttribute:we}=Element.prototype,{appendChild:xe}=Pe,{assign:Oe}=We,{__lookupGetter__:me}=We.prototype,{apply:_e}=Reflect,{close:Ee,createElement:Ae,open:Be}=ve,He=_e(me,ve,["body"]),Ce=_e(me,HTMLElement.prototype,["style"]),ke=_e(me,HTMLIFrameElement.prototype,["contentWindow"]),je=_e(me,Pe,["lastChild"]),De=document,Me=createMembraneMarshall$LWS();let Fe=null;function createIframeVirtualEnvironment$LWS(e,t,r){if("object"!=typeof e)throw new Le("Missing global object shape.");if("object"!=typeof t||null===t)throw new Le("Missing global object virtualization target.");const{distortionCallback:o,endowments:n,instrumentation:a,keepAlive:l=!1}=Oe({__proto__:null},r),i=function(){const e=_e(Ae,De,["iframe"]),t=_e(He,De,[])||_e(je,De,[]);return _e(Ce,e,[]).display="none",_e(we,e,["sandbox","allow-same-origin allow-scripts"]),_e(xe,t,[e]),e}(),s=_e(ke,i,[]),c=null===e;c&&null===Fe&&(Fe=filterWindowKeys$LWS(getFilteredGlobalOwnKeys$LWS(s)));const u=getCachedGlobalObjectReferences$LWS(t),p=new VirtualEnvironment$LWS({blueConnector:Me,distortionCallback:o,redConnector:createConnector$LWS(s.eval),instrumentation:a});if(!function(e,t){for(let r=0,{length:o}=ue;r<o;r+=1){const o=ue[r],n=t[o];n&&(n.prototype?e.link(o,"prototype"):e.link(o));}}(p,t),"undefined"==typeof globalThis?p.link("window","document"):p.link("document"),p.link("__proto__","__proto__","__proto__"),p.remapProto(u.document,u.DocumentProto),p.lazyRemapProperties(u.window,c?Fe:filterWindowKeys$LWS(getFilteredGlobalOwnKeys$LWS(e)),l?void 0:$e),n){const e={};!function(e,t){const r=ce(t);for(let o=0,{length:n}=r;o<n;o+=1){const n=r[o];if(!se(le,pe,[n])){const r=t[n];r&&(e[n]=ie({__proto__:null},r));}}return e}(e,n),delete(y=e).document,delete y.location,delete y.top,delete y.window,delete y.chrome,p.remapProperties(u.window,e);}var y;if(p.lazyRemapProperties(u.EventTargetProto,u.EventTargetProtoOwnKeys),l){const{document:e}=s;_e(Be,e,[]),_e(Ee,e,[]);}else _e(Te,i,[]);return p}const Ge={[SANDBOX_EVAL_CONTEXT_NAME$LWS]:{__proto__:null,get:()=>clearEvalContext$LWS()},[SANDBOX_EVAL_HELPERS_NAME$LWS]:{__proto__:null,get:()=>clearEvalHelpers$LWS()}},Ie=new RegExp(`\\breturn\\s*\\[\\s*(["'])${LOCKER_IDENTIFIER_MARKER$LWS}\\1\\s*,\\s*([^,\\s]+)\\s*,\\s*(["'])=\\3\\s*,\\s*([^\\]\\s]+)\\s*\\]`,"g"),Re=new WeakMapCtor$LWS,Ne={__proto__:null};let Ke,Ve;function clearEvalContext$LWS(){const e=Ke;return Ke=void 0,e}function clearEvalHelpers$LWS(){const e=Ve;return Ve=void 0,e}function createSandbox$LWS(l,i,s,c){const u=new WeakMapCtor$LWS(i(window)),p=createIframeVirtualEnvironment$LWS(null,window,{distortionCallback(e){const o=WeakMapGet$LWS(u,e);if(o)return o;if(isWindowLike$LWS(e)&&isWindow$LWS(e)){const t=i(e);for(let e=0,{length:o}=t;e<o;e+=1){const{0:o,1:n}=t[e];WeakMapSet$LWS(u,o,n);}WeakMapSet$LWS(u,e,e);}return e},endowments:ObjectAssign$LWS({},Ge,s?ObjectGetOwnPropertyDescriptors$LWS(s):void 0),keepAlive:!1,instrumentation:c}),y={};setEvalContext$LWS(e=>{ObjectAssign$LWS(y,e({elementToLoadingPromiseMap:Re}));});const f={distortionFactory:i,distortions:u,env:p,helpers:y};return p.evaluate(`'use strict';\n ${SANDBOX_EVAL_CONTEXT_NAME$LWS}(${function(e){const{elementToLoadingPromiseMap:t}=e,r=Promise,o=TypeError,{asyncIterator:n,iterator:a}=Symbol,{[a]:l}=Array.prototype,i=function*(){}.constructor.prototype.prototype,{next:s,throw:c}=i,{delete:u,get:p,set:y}=Map.prototype,{appendChild:f}=Node.prototype,{freeze:d}=Object,{then:h}=r.prototype,S=r.resolve.bind(r),{apply:b,getPrototypeOf:g,setPrototypeOf:$}=Reflect,{get:W,set:L}=WeakMap.prototype,{createElement:v}=Document.prototype,{querySelector:P,setAttribute:T}=Element.prototype,{stopPropagation:w}=Event.prototype,{addEventListener:x}=EventTarget.prototype,O=document,{head:m}=O,_=new Map,E="data-locker-id",A=`${crypto.getRandomValues(new Uint32Array(1))[0]}`;function genStep$LWS(e,t,r,o,n,a,l){let i,s;try{i=b(a,e,[l]),s=i.value;}catch(e){return r(e),void 0}i.done?t(s):S(s).then(o,n);}function loadPromise$LWS(e,o){const n=new r((t,r)=>{b(x,e,["load",()=>{t(void 0);}]),b(x,e,["error",e=>{b(w,e,[]),r(`[Locker] resource loader error loading "${o}"`);}]);});return b(L,t,[e,n]),b(f,m,[e]),n}return {asyncToGen:function(e,t,o){return new r((r,n)=>{const a=b(e,t,o);function next$LWS(e){genStep$LWS(a,r,n,next$LWS,thrower$LWS,s,e);}function thrower$LWS(e){genStep$LWS(a,r,n,next$LWS,thrower$LWS,c,e);}next$LWS(void 0);})},forAwaitOf:function(e,t,l){if(0===t){let t=!1,{[n]:r}=l;if(null==r&&(t=!0,({[a]:r}=l)),"function"!=typeof r)throw new o("Object is not iterable.");return b(y,_,[e,{iterable:b(r,l,[]),step:void 0,sync:t}]),void 0}const i=b(p,_,[e]);if(1===t){const e=i.iterable.next();return i.sync?new r(t=>{i.step=e,t();}):b(h,e,[e=>{i.step=e;}])}if(2===t)return i.step.value;if(3===t){const t=!!i.step.done;return t&&b(u,_,[e]),t}},loadScript:function(e,r){let o=b(P,m,[`script[data-distorted-src='${r}'][data-locker-id='${A}']`]);var n;return o?null!=(n=b(W,t,[o]))?n:S():(o=b(v,O,["script"]),b(T,o,[E,A]),o.type="text/javascript",o.src=r,loadPromise$LWS(o,r))},loadStyle:function(e,r){let o=b(P,m,[`link[href='${r}']`]);var n;return o?null!=(n=b(W,t,[o]))?n:S():(o=b(v,O,["link"]),o.type="text/css",o.rel="stylesheet",o.href=r,loadPromise$LWS(o,r))},namespace:function(e){return d(e)},spreadable:function(e){return $(e,null),e[a]=l,e},super:function(e,t,r,o){const n=g(e.prototype)[t];return b(n,r,o)}}}})`),Ne[l]=f,f}function getSandbox$LWS(e){return Ne[e]}function setEvalContext$LWS(e){Ke=e;}function setEvalHelpers$LWS(e){Ve=e;}function toSource$LWS(e){let t=toString$LWS(e);return "function"==typeof e&&(t=StringMatch$LWS(t,/^[\s\S]+?\{(?:[\t ]*\r?\n)?([\s\S]*?)(?:\r?\n[\t ]*)?\}$/)[1]),t=StringReplace$LWS(t,/\/\/# sandbox(?=MappingURL=.*?\s*$)/,"//# source"),t=StringReplace$LWS(t,Ie,(e,t,r,o,n)=>`${r}=${n}`),`'use strict';${t}`}function evaluateInSandbox$LWS(e,t,r,o,n=defaultInstrumentation$LWS,a=!1){const l={sandboxKey:e},i="object"==typeof n&&null!==n&&n.startActivity,s=i("EvaluateInSandboxDuration",l);let c,u=getSandbox$LWS(e);if(void 0===u){isObjectLike$LWS(o)||(o=void 0);const t={__proto__:null,instrumentation:n,sandboxType:SandboxType$LWS.External,verboseInstrumentation:a},distortionFactory$LWS=r=>{const o=i("createExternalDistortionEntries",l),n=createExternalDistortionEntries$LWS(r,e,evaluateInSandbox$LWS,t);return o.stop(),n},r=i("createSandbox",l);u=createSandbox$LWS(e,distortionFactory$LWS,o,a?n:void 0),r.stop();}setEvalContext$LWS(r),setEvalHelpers$LWS(u.helpers);const y=toSource$LWS(t),f=i("externalEvaluatorDuration",l);try{c=u.env.evaluate(y);}catch(t){throw f.error({sandboxKey:e,error:t}),t}finally{clearEvalContext$LWS(),clearEvalHelpers$LWS(),f.stop();}return s.stop(),c}const Ue="lws-core-sandbox";function evaluateInCoreSandbox$LWS(e,t,r,o,n=defaultInstrumentation$LWS,a=!1){const l={sandboxKey:"lws-core-sandbox"},i="object"==typeof n&&null!==n&&n.startActivity,s=i("EvaluateInCoreSandboxDuration",l);let c,u=getSandbox$LWS("lws-core-sandbox");if(void 0===u){isObjectLike$LWS(o)||(o=void 0);const e={__proto__:null,instrumentation:n,sandboxType:SandboxType$LWS.Internal,verboseInstrumentation:a},distortionFactory$LWS=t=>{const r=i("createInternalDistortionEntries",l),o=createInternalDistortionEntries$LWS(t,"lws-core-sandbox",evaluateInCoreSandbox$LWS,e);return r.stop(),o},t=i("createSandbox",l);u=createSandbox$LWS("lws-core-sandbox",distortionFactory$LWS,o,a?n:void 0),t.stop();}setEvalContext$LWS(r),setEvalHelpers$LWS(u.helpers);const y=toSource$LWS(t),f=i("internalEvaluatorDuration",l);try{c=u.env.evaluate(y);}catch(e){throw f.error({sandboxKey:"lws-core-sandbox",error:e}),e}finally{clearEvalContext$LWS(),clearEvalHelpers$LWS(),f.stop();}return s.stop(),c}const ze=SymbolFor$LWS("@@lockerDebugMode");if(LOCKER_UNMINIFIED_FLAG$LWS){let e=!0;const t=100,r=5,o=100,n=o/2,a=/^[0-9]$|^[1-9][0-9]+$/,l="display: inline-block; margin-bottom: 3px; margin-left: -3px; word-break: break-all; word-wrap: wrap;",i={style:"margin-left:11px; margin-bottom: 3px;"},s={style:"display: inline-block; margin-left:12px; word-break: break-all; word-wrap: wrap;"},c={style:"color: #9d288c; font-weight: bold"},u={style:"color: #b17ab0"},p={style:"color: #16239f"},y={style:"color: #236d25"},M={style:"color: #606367"},F={style:"color: #b82619"},formatValue$LWS=function(e){if(null==e)return ["span",M,`${e}`];if("boolean"==typeof e)return ["span",p,e];if("number"==typeof e)return NumberIsFinite$LWS(e)?["span",p,e]:["span",p,(e>=0?"":"-")+"Infinity"];if("string"==typeof e){let t=e;const{length:r}=t;if(r>o){t=`${StringSlice$LWS(t,0,n)}…${StringSlice$LWS(t,r-n-1,r)}`;}return ["span",F,JSONStringify$LWS(t)]}return ArrayIsArray$LWS(e)?["span",{},`Array(${e.length})`]:isObject$LWS(e)?["span",{},"{…}"]:["span",F,StringCtor$LWS(e)]},formatHeader$LWS=function(e,o={}){const n=[],{isChildElement:l}=o;let i=0;l&&(n[i++]=["span",c,o.childKey],n[i++]=["span",{},": "]);const s=ObjectToString$LWS(e);let u=ObjectKeys$LWS(e);if(s===TO_STRING_BRAND_SYMBOL$LWS)ArrayIncludes$LWS(u,"description")||ArrayUnshift$LWS(u,"description");else if(s===TO_STRING_BRAND_STRING$LWS){const{length:t}=e;u=ArrayFilter$LWS(u,e=>!RegExpTest$LWS(a,e)||+e>=t);}const{length:d}=u;if(ArrayIsArray$LWS(e)){n[i++]=["span",l?M:{},`(${e.length}) [`];for(let r=0,o=MathMin$LWS(d,t);r<o;r+=1){const t=e[u[r]];n[i++]=["span",{},r?", ":""],n[i++]=formatValue$LWS(t);}return d>t&&(n[i++]=["span",null,["span",{},", …"]]),n[i++]=["span",{},"]"],n}let h,S="{";switch(s){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 t=p;s===TO_STRING_BRAND_BIG_INT$LWS?t=y:s===TO_STRING_BRAND_SYMBOL$LWS&&(t=F),S=`${StringSlice$LWS(s,8,-1)} {`,h=["span",t,`${StringCtor$LWS(getNearMembraneSerializedValue$LWS(e))}`];break}}n[i++]=["span",{},S],h&&(n[i++]=h,d&&(n[i++]=["span",{},", "]));for(let t=0,o=MathMin$LWS(d,r);t<o;t+=1){const r=u[t],o=e[r];n[i++]=["span",{},t?", ":""],n[i++]=["span",M,r],n[i++]=["span",{},": "],n[i++]=formatValue$LWS(o);}return d>r&&(n[i++]=["span",null,["span",{},", …"]]),n[i++]=["span",{},"}"],n},formatBody$LWS=function(e){const t=ObjectKeys$LWS(e),r=ReflectOwnKeys$LWS(e);ArrayIsArray$LWS(e)||ArraySort$LWS(r);const o=[];let n=0;for(let a=0,{length:l}=r;a<l;a+=1){const l=r[a],s=e[l];if(isObject$LWS(s))o[n++]=["div",{},["object",{object:s,config:{childKey:StringCtor$LWS(l),isChildElement:!0}}]];else {let e=c;"symbol"!=typeof l&&ArrayIncludes$LWS(t,l)||(e=u),o[n++]=["div",i,["span",e,StringCtor$LWS(l)],["span",{},": "],formatValue$LWS(s)];}}return o};let{devtoolsFormatters:G}=window;ArrayIsArray$LWS(G)||(G=[],ReflectDefineProperty$LWS(window,"devtoolsFormatters",{__proto__:null,configurable:!0,value:G,writable:!0})),G[G.length]={header(t,r={}){if(e&&(e=!1,ReflectDefineProperty$LWS(window,ze,{__proto__:null,configurable:!0,value:!0,writable:!0})),!isNearMembrane$LWS(t))return null;const o=["div",{style:`${l}${r.isChildElement?"":"font-style: italic;"}`}];return ReflectApply$LWS(ArrayProtoPush$LWS,o,formatHeader$LWS(t,r)),["div",{},o]},hasBody:()=>!0,body(e){const t=["div",s];return ReflectApply$LWS(ArrayProtoPush$LWS,t,formatBody$LWS(e)),t}};}
7956
+ 1}`.includes("*");let v=LOCKER_UNMINIFIED_FLAG$LWS&&void 0;const L="function"==typeof BigInt,{assign:P,defineProperties:$,freeze:W,getOwnPropertyDescriptor:T,getOwnPropertyDescriptors:w,isFrozen:_,isSealed:m,prototype:x,seal:O}=n,{__defineGetter__:E,__defineSetter__:B,__lookupGetter__:A,__lookupSetter__:k,hasOwnProperty:H,propertyIsEnumerable:j,toString:D}=x,{apply:C,construct:G,defineProperty:I,deleteProperty:M,get:R,getOwnPropertyDescriptor:N,getPrototypeOf:F,has:z,isExtensible:K,ownKeys:U,preventExtensions:Z,set:X,setPrototypeOf:J}=i,{isArray:Y}=e,{includes:q,indexOf:Q,slice:tt}=e.prototype,{isView:et}=r,rt=C(A,r.prototype,["byteLength"]),ot=L?BigInt.prototype.valueOf:void 0,{valueOf:nt}=Boolean.prototype,{toString:at}=o.prototype,{bind:it}=Function.prototype,{stringify:lt}=JSON,{valueOf:st}=Number.prototype,{revocable:ct}=a,{prototype:ut}=l,{exec:pt,test:yt,toString:ft}=ut,dt=C(A,ut,["flags"])||function(){const t=C(ft,this,[]);return C(pt,f,[t])[0]},ht=C(A,ut,["source"]),{replace:bt,slice:gt,valueOf:St}=String.prototype,{valueOf:vt}=s.prototype,{get:Lt,set:Pt}=u.prototype,$t=console,{info:Wt}=$t,Tt=eval,wt="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||(I(x,"globalThis",{__proto__:null,configurable:!0,get(){return M(x,"globalThis"),this||self}}),globalThis);let _t=!1,mt=!1;const xt=new l(`${C(bt,"$LWS",[/[\\^$.*+?()[\]{}|]/g,"\\$&"])}(?=\\.|$)`),Ot={__proto__:null};function getUnforgeableGlobalThisGetter$LWS(t){let e=Ot[t];return void 0===e&&(e=C(it,()=>wt,[]),Ot[t]=e),e}function identity$LWS(t){return t}const Et=LOCKER_UNMINIFIED_FLAG$LWS?()=>{if(_t)return;_t=!0;const t=(()=>{var t;o.prepareStackTrace=(t,e)=>e;const e=(new o).stack;return delete o.prepareStackTrace,Y(e)&&e.length>0?null==(t=e[0])?void 0:t.constructor:void 0})();if("function"!=typeof t)return;const{getEvalOrigin:e,getFunctionName:r,toString:n}=t.prototype;o.prepareStackTrace=function(t,o){return function(t,o){let a="";try{a=C(at,t,[]);}catch(t){a="<error>";}let i=!1;for(let t=0,{length:l}=o;t<l;t+=1){const l=o[t],s=C(r,l,[]);let c=!1;if("string"==typeof s&&"eval"!==s&&C(yt,xt,[s])&&(c=!0),!c){const t=C(e,l,[]);"string"==typeof t&&C(yt,xt,[t])&&(c=!0);}if(c)i||(i=!0,a+="\n at LWS");else {i=!1;try{a+=`\n at ${C(n,l,[])}`;}catch(t){}}}return a}(t,o)};const{stackTraceLimit:a}=o;("number"!=typeof a||a<20)&&(o.stackTraceLimit=20);}:()=>{};function serializeBigIntObject$LWS(t){return C(ot,t,[])}function serializeBooleanObject$LWS(t){return C(nt,t,[])}function serializeNumberObject$LWS(t){return C(st,t,[])}function serializeRegExp$LWS(t){if(t!==ut){const e=C(ht,t,[]);return lt({__proto__:null,flags:C(dt,t,[]),source:e})}}function serializeStringObject$LWS(t){return C(St,t,[])}function serializeSymbolObject$LWS(t){return C(vt,t,[])}function serializeTarget$LWS(t){try{return z(t,y)?function(t){try{return serializeSymbolObject$LWS(t)}catch(t){}if(L)try{return serializeBigIntObject$LWS(t)}catch(t){}try{return serializeBooleanObject$LWS(t)}catch(t){}try{return serializeNumberObject$LWS(t)}catch(t){}try{return serializeRegExp$LWS(t)}catch(t){}try{return serializeStringObject$LWS(t)}catch(t){}return}(t):function(t){switch(C(D,t,[])){case"[object Boolean]":return serializeBooleanObject$LWS(t);case"[object Number]":return serializeNumberObject$LWS(t);case"[object RegExp]":return serializeRegExp$LWS(t);case"[object String]":return serializeStringObject$LWS(t);case"[object Object]":try{return serializeSymbolObject$LWS(t)}catch(t){}if(L)try{return serializeBigIntObject$LWS(t)}catch(t){}default:return}}(t)}catch(t){}}return function(r,o,l,s){const{distortionCallback:p=identity$LWS,instrumentation:f}=P({__proto__:null},s),L="object"==typeof f&&null!==f,ot={__proto__:null,0:void 0,1:void 0,2:void 0,n:void 0},nt={__proto__:null,0:void 0,1:void 0,2:void 0,n:void 0},at=new u,it=L?f.startActivity:void 0;let lt,st,pt,yt,ft,dt,bt,St,vt,_t,xt,Ot,Bt,At,kt,Ht,jt,Dt,Ct,Gt,It,Mt,Rt,Nt,Ft,zt,Kt,Vt=0,Ut=!1;function activateLazyOwnPropertyDefinition$LWS(t,e,r){let o;delete r[e],L&&(o=it("callableGetOwnPropertyDescriptor"));const n=getTransferablePointer$LWS(t);let a;try{bt(n,e,(t,e,r,o,n,i,l)=>{a=createDescriptorFromMeta$LWS(e,r,o,n,i,l);});}catch(t){var i;const e=null!=(i=Kt)?i:t;throw Kt=void 0,L&&o.error(e),e}finally{L&&o.stop();}a?I(t,e,a):delete t[e];}function copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(t,e){let r,o;L&&(r=it("callableBatchGetPrototypeOfAndGetOwnPropertyDescriptors"));try{o=Nt(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,r);});}catch(t){var n;const e=null!=(n=Kt)?n:t;throw Kt=void 0,L&&r.error(e),e}finally{L&&r.stop();}let a=o;"function"==typeof o&&(o(),a=Kt,Kt=void 0),J(e,a);}function createApplyOrConstructTrapForZeroOrMoreArgs$LWS(t){const e=1&t,r=e?"callableApplyWithZeroOrMoreArgs":"callableConstructWithZeroOrMoreArgs",o=e?ot:nt,n=e?st:pt;return function(a,i,l){Vt=t;const s=e?l:i,{length:c}=s;var u;if(0!==c)return C(null!=(u=o[c])?u:o.n,this,[a,i,l]);let p;L&&(p=it(r));const{foreignTargetPointer:y}=this,f=e?i:l;try{const t=n(y,"object"==typeof f&&null!==f||"function"==typeof f?getTransferablePointer$LWS(f):void 0===f?void 0:f);let e=t;return "function"==typeof t&&(t(),e=Kt,Kt=void 0),e}catch(t){var d;const e=null!=(d=Kt)?d:t;throw Kt=void 0,L&&p.error(e),e}finally{L&&p.stop();}}}function createApplyOrConstructTrapForOneOrMoreArgs$LWS(t){const e=1&t,r=e?"callableApplyWithOneOrMoreArgs":"callableConstructWithOneOrMoreArgs",o=e?ot:nt,n=e?st:pt;return function(a,i,l){Vt=t;const s=e?l:i,{length:c}=s;var u;if(1!==c)return C(null!=(u=o[c])?u:o.n,this,[a,i,l]);let p;L&&(p=it(r));const{foreignTargetPointer:y}=this,f=e?i:l;try{const{0:t}=s,e=n(y,"object"==typeof f&&null!==f||"function"==typeof f?getTransferablePointer$LWS(f):void 0===f?void 0:f,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):void 0===t?void 0:t);let r=e;return "function"==typeof e&&(e(),r=Kt,Kt=void 0),r}catch(t){var d;const e=null!=(d=Kt)?d:t;throw Kt=void 0,L&&p.error(e),e}finally{L&&p.stop();}}}function createApplyOrConstructTrapForTwoOrMoreArgs$LWS(t){const e=1&t,r=e?"callableApplyWithTwoOrMoreArgs":"callableConstructWithTwoOrMoreArgs",o=e?ot:nt,n=e?st:pt;return function(a,i,l){Vt=t;const s=e?l:i,{length:c}=s;var u;if(2!==c)return C(null!=(u=o[c])?u:o.n,this,[a,i,l]);let p;L&&(p=it(r));const{foreignTargetPointer:y}=this,f=e?i:l;try{const{0:t,1:e}=s,r=n(y,"object"==typeof f&&null!==f||"function"==typeof f?getTransferablePointer$LWS(f):void 0===f?void 0:f,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):void 0===t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):void 0===e?void 0:e);let o=r;return "function"==typeof r&&(r(),o=Kt,Kt=void 0),o}catch(t){var d;const e=null!=(d=Kt)?d:t;throw Kt=void 0,L&&p.error(e),e}finally{L&&p.stop();}}}function createApplyOrConstructTrapForAnyNumberOfArgs$LWS(t){const e=1&t,r=e?"callableApplyWithAnyNumberOfArgs":"callableConstructWithAnyNumberOfArgs",o=e?st:pt;return function(n,a,i){let l;Vt=t,L&&(l=it(r));const{foreignTargetPointer:s}=this,c=e?i:a,u=e?a:i;try{const t=[s,"object"==typeof u&&null!==u||"function"==typeof u?getTransferablePointer$LWS(u):void 0===u?void 0:u],{length:e}=c,{length:r}=t;t.length+=e;for(let o=0;o<e;o+=1){const e=c[o];t[r+o]="object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):void 0===e?void 0:e;}const n=C(o,void 0,t);let a=n;return "function"==typeof n&&(n(),a=Kt,Kt=void 0),a}catch(t){var p;const e=null!=(p=Kt)?p:t;throw Kt=void 0,L&&l.error(e),e}finally{L&&l.stop();}}}function createDescriptorFromMeta$LWS(t,e,r,o,n,a){const i={__proto__:null};if(t!==S&&(i.configurable=t),e!==S&&(i.enumerable=e),r!==S&&(i.writable=r),n!==S){let t=n;"function"==typeof n&&(n(),t=Kt,Kt=void 0),i.get=t;}if(a!==S){let t=a;"function"==typeof a&&(a(),t=Kt,Kt=void 0),i.set=t;}if(o!==S){let t=o;"function"==typeof o&&(o(),t=Kt,Kt=void 0),i.value=t;}return i}function createLazyPropertyDescriptor$LWS(t,e,r){return {__proto__:null,configurable:!0,get:()=>(activateLazyOwnPropertyDefinition$LWS(t,e,r),R(t,e)),set(o){activateLazyOwnPropertyDefinition$LWS(t,e,r),X(t,e,o);}}}function createPointer$LWS(t){return ()=>{Kt=t;}}const Zt=LOCKER_UNMINIFIED_FLAG$LWS?(...e)=>{if(!t&&void 0===v&&(v=C(H,wt,[d]),v))try{Et(),Ct();}catch(t){}if(v){for(let t=0,{length:r}=e;t<r;t+=1){const r=e[t];"function"==typeof r&&(r(),e[t]=Kt,Kt=void 0);}try{C(Wt,$t,e);}catch(t){}return !0}return !1}:()=>!1;function getTransferablePointer$LWS(t){let e=C(Lt,at,[t]);if(e)return e;const r=p(t);if(r!==t&&typeof r!=typeof t)throw new c(`Invalid distortion ${t}.`);let o,n=8;try{Y(r)&&(n=1);}catch(t){n=16;}if("function"==typeof r){n=2;try{"prototype"in r||(n|=4);const e=N(t,"length");if(e){const t=e;J(t,null);const{value:r}=t;"number"==typeof r&&(o=r);}}catch(t){}}return e=lt(createPointer$LWS(r),n,o,undefined),C(Pt,at,[t,e]),e}function lockShadowTarget$LWS(t,e){copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(e,t),Z(t);}function lookupForeignDescriptor$LWS(t,e,r){let o,n,a;L&&(o=it("callableBatchGetPrototypeOfWhenHasNoOwnPropertyDescriptor"));try{n=zt(t,r,(t,o,n,i,l,s,c)=>{a=createDescriptorFromMeta$LWS(o,n,i,l,s,c),!1===a.configurable&&I(e,r,a);});}catch(t){var i;const e=null!=(i=Kt)?i:t;throw Kt=void 0,L&&o.error(e),e}finally{L&&o.stop();}if(a)return a;let l=n;for("function"==typeof n&&(n(),l=Kt,Kt=void 0);l;){const t=N(l,r);if(t)return a=t,J(a,null),a;l=F(l);}}function pushErrorAcrossBoundary$LWS(t){if("object"==typeof t&&null!==t||"function"==typeof t){getTransferablePointer$LWS(t)();}return t}class BoundaryProxyHandler$LWS{constructor(t,e,n,a){let i;this.color=r,this.foreignTargetTraits=0;const l=1&e,s=2&e;i=s?4&e?()=>{}:function(){}:l?[]:{};const{proxy:c,revoke:u}=ct(i,this);var p,y;(this.foreignTargetPointer=t,this.foreignTargetTraits=e,this.nonConfigurableDescriptorCallback=(t,e,r,o,n,a,i)=>{I(this.shadowTarget,t,createDescriptorFromMeta$LWS(e,r,o,n,a,i));},this.proxy=c,this.revoke=u,this.serializedValue=void 0,this.shadowTarget=i,this.staticToStringTag=void 0,s)&&(this.apply=null!=(p=ot[n])?p:ot.n,this.construct=null!=(y=nt[n])?y:nt.n);if(this.defineProperty=BoundaryProxyHandler$LWS.defaultDefinePropertyTrap,this.deleteProperty=BoundaryProxyHandler$LWS.defaultDeletePropertyTrap,this.isExtensible=BoundaryProxyHandler$LWS.defaultIsExtensibleTrap,this.getOwnPropertyDescriptor=BoundaryProxyHandler$LWS.defaultGetOwnPropertyDescriptorTrap,this.getPrototypeOf=BoundaryProxyHandler$LWS.defaultGetPrototypeOfTrap,this.get=BoundaryProxyHandler$LWS.defaultGetTrap,this.has=BoundaryProxyHandler$LWS.defaultHasTrap,this.ownKeys=BoundaryProxyHandler$LWS.defaultOwnKeysTrap,this.preventExtensions=BoundaryProxyHandler$LWS.defaultPreventExtensionsTrap,this.setPrototypeOf=BoundaryProxyHandler$LWS.defaultSetPrototypeOfTrap,this.set=BoundaryProxyHandler$LWS.defaultSetTrap,16&e&&u(),o)l&&this.makeProxyLive();else {if(8&e){let t=S;C(E,this,["serializedValue",()=>(t===S&&(t=Mt(this.foreignTargetPointer)),t)]);}W(this);}}makeProxyLive(){this.deleteProperty=BoundaryProxyHandler$LWS.passthruDeletePropertyTrap,this.defineProperty=BoundaryProxyHandler$LWS.passthruDefinePropertyTrap,this.preventExtensions=BoundaryProxyHandler$LWS.passthruPreventExtensionsTrap,this.set=BoundaryProxyHandler$LWS.passthruSetTrap,this.setPrototypeOf=BoundaryProxyHandler$LWS.passthruSetPrototypeOfTrap,W(this);}makeProxyStatic(){this.defineProperty=BoundaryProxyHandler$LWS.staticDefinePropertyTrap,this.deleteProperty=BoundaryProxyHandler$LWS.staticDeletePropertyTrap,this.get=BoundaryProxyHandler$LWS.staticGetTrap,this.getOwnPropertyDescriptor=BoundaryProxyHandler$LWS.staticGetOwnPropertyDescriptorTrap,this.getPrototypeOf=BoundaryProxyHandler$LWS.staticGetPrototypeOfTrap,this.has=BoundaryProxyHandler$LWS.staticHasTrap,this.isExtensible=BoundaryProxyHandler$LWS.staticIsExtensibleTrap,this.ownKeys=BoundaryProxyHandler$LWS.staticOwnKeysTrap,this.preventExtensions=BoundaryProxyHandler$LWS.staticPreventExtensionsTrap,this.set=BoundaryProxyHandler$LWS.staticSetTrap,this.setPrototypeOf=BoundaryProxyHandler$LWS.staticSetPrototypeOfTrap;const{foreignTargetPointer:t,shadowTarget:e}=this;let r;{let e;if(L&&(e=it("callableGetTargetIntegrityTraits")),r=jt(t),L&&e.stop(),8&r)return W(this),void this.revoke()}try{copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(t,e);}catch(e){let r;L&&(r=it("callableIsTargetRevoked"));const o=It(t);if(L&&r.stop(),o)return W(this),void this.revoke()}if(8&this.foreignTargetTraits&&!z(e,y)){let e;L&&(e=it("callableGetToStringTagOfTarget"));let r="Object";try{r=Dt(t);}catch(t){}L&&e.stop(),"Object"!==r&&(this.staticToStringTag=r);}4&r?W(e):2&r?O(e):1&r?Z(e):!1!==v&&(v=kt("Mutations on the membrane of an object originating outside of the sandbox will not be reflected on the object itself:",t)),W(this);}makeProxyUnambiguous(){let t;L&&(t=it("callableIsTargetLive"));const e=Gt(this.foreignTargetPointer);L&&t.stop(),e?this.makeProxyLive():this.makeProxyStatic();}static hybridGetTrap(t,e,r){const{foreignTargetPointer:o,shadowTarget:n}=this,a=lookupForeignDescriptor$LWS(o,n,e);if(a){const{get:t,value:e}=a;return t?C(t,r,[]):e}if(e===y&&8&this.foreignTargetTraits){let t,e;L&&(t=it("callableGetToStringTagOfTarget"));try{e=Dt(o);}catch(e){var i;const r=null!=(i=Kt)?i:e;throw Kt=void 0,L&&t.error(r),r}finally{L&&t.stop();}if("Object"!==e)return e}}static hybridHasTrap(t,e){let r,o;L&&(r=it("callableBatchGetPrototypeOfWhenHasNoOwnProperty"));try{o=Ft(this.foreignTargetPointer,e);}catch(t){var n;const e=null!=(n=Kt)?n:t;throw Kt=void 0,L&&r.error(e),e}finally{L&&r.stop();}if(!0===o)return !0;let a=o;for("function"==typeof o&&(o(),a=Kt,Kt=void 0);a;){if(C(H,a,[e]))return !0;a=F(a);}return !1}static passthruDefinePropertyTrap(t,e,r){let o;Vt=4,L&&(o=it("callableDefineProperty"));const n=P({__proto__:null},r),{value:a,get:i,set:l}=n,s="value"in n?"object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):void 0===a?void 0:a:S,c="get"in n?"object"==typeof i&&null!==i||"function"==typeof i?getTransferablePointer$LWS(i):void 0===i?void 0:i:S,u="set"in n?"object"==typeof l&&null!==l||"function"==typeof l?getTransferablePointer$LWS(l):void 0===l?void 0:l:S;try{return yt(this.foreignTargetPointer,e,"configurable"in n?!!n.configurable:S,"enumerable"in n?!!n.enumerable:S,"writable"in n?!!n.writable:S,s,c,u,this.nonConfigurableDescriptorCallback)}catch(t){var p;const e=null!=(p=Kt)?p:t;throw Kt=void 0,L&&o.error(e),e}finally{L&&o.stop();}}static passthruDeletePropertyTrap(t,e){let r;Vt=8,L&&(r=it("callableDeleteProperty"));try{return ft(this.foreignTargetPointer,e)}catch(t){var o;const e=null!=(o=Kt)?o:t;throw Kt=void 0,L&&r.error(e),e}finally{L&&r.stop();}}static passthruGetTrap(t,e,r){if(Ut&&(Ut=128===Vt),Vt=16,Ut){if(e===g)return !0;if(e===b)return this.serializedValue}let o;L&&(o=it("callableGet"));const n="object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):void 0===r?void 0:r;try{const t=dt(this.foreignTargetPointer,this.foreignTargetTraits,e,n);let r=t;return "function"==typeof t&&(t(),r=Kt,Kt=void 0),r}catch(t){var a;const e=null!=(a=Kt)?a:t;throw Kt=void 0,L&&o.error(e),e}finally{L&&o.stop();}}static passthruGetPrototypeOfTrap(t){let e,r;Vt=64,L&&(e=it("callableGetPrototypeOf"));try{r=St(this.foreignTargetPointer);}catch(t){var o;const r=null!=(o=Kt)?o:t;throw Kt=void 0,L&&e.error(r),r}finally{L&&e.stop();}let n=r;return "function"==typeof r&&(r(),n=Kt,Kt=void 0),n}static passthruHasTrap(t,e){let r,o;Vt=128,L&&(r=it("callableHas"));try{o=vt(this.foreignTargetPointer,e);}catch(t){var n;const e=null!=(n=Kt)?n:t;throw Kt=void 0,L&&r.error(e),e}finally{L&&r.stop();}return Ut=!o&&(e===g||e===b),o}static passthruIsExtensibleTrap(t){Vt=256;const{shadowTarget:e}=this;if(K(e)){let t;L&&(t=it("callableIsExtensible"));const{foreignTargetPointer:o}=this;try{if(_t(o))return !0}catch(e){var r;const o=null!=(r=Kt)?r:e;throw Kt=void 0,L&&t.error(o),o}finally{L&&t.stop();}lockShadowTarget$LWS(e,o);}return !1}static passthruOwnKeysTrap(t){let e,r;Vt=512,L&&(e=it("callableOwnKeys"));try{xt(this.foreignTargetPointer,(...t)=>{r=t;});}catch(t){var o;const r=null!=(o=Kt)?o:t;throw Kt=void 0,L&&e.error(r),r}finally{L&&e.stop();}return r||[]}static passthruGetOwnPropertyDescriptorTrap(t,e){let r,o;Vt=32,L&&(r=it("callableGetOwnPropertyDescriptor"));try{bt(this.foreignTargetPointer,e,(t,r,n,a,i,l,s)=>{o=createDescriptorFromMeta$LWS(r,n,a,i,l,s),!1===o.configurable&&I(this.shadowTarget,e,o);});}catch(t){var n;const e=null!=(n=Kt)?n:t;throw Kt=void 0,L&&r.error(e),e}finally{L&&r.stop();}return o}static passthruPreventExtensionsTrap(t){Vt=1024;const{shadowTarget:e}=this;if(K(e)){let t;L&&(t=it("callablePreventExtensions"));const{foreignTargetPointer:o}=this;let n;try{n=Ot(o);}catch(e){var r;const o=null!=(r=Kt)?r:e;throw Kt=void 0,L&&t.error(o),o}finally{L&&t.stop();}if(2&n)return 1&n||lockShadowTarget$LWS(e,o),!1;lockShadowTarget$LWS(e,o);}return !0}static passthruSetPrototypeOfTrap(t,e){let r;Vt=4096,L&&(r=it("callableSetPrototypeOf"));const o=e?getTransferablePointer$LWS(e):e;try{return At(this.foreignTargetPointer,o)}catch(t){var n;const e=null!=(n=Kt)?n:t;throw Kt=void 0,L&&r.error(e),e}finally{L&&r.stop();}}static passthruSetTrap(t,e,r,o){Vt=2048;const{foreignTargetPointer:n}=this;return this.proxy===o?function(t,e,r,o){let n;L&&(n=it("callableSet"));const a="object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):void 0===r?void 0:r,i=getTransferablePointer$LWS(o);try{return Bt(t,e,a,i)}catch(t){var l;const e=null!=(l=Kt)?l:t;throw Kt=void 0,L&&n.error(e),e}finally{L&&n.stop();}}(n,e,r,o):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&&(C(t,n,[o]),!0)}if(!1===a.writable)return !1}let i;if(null===n||"function"!=typeof n&&"object"!=typeof n)return !1;const l=N(n,r);return l&&(i=l,J(i,null)),i?!("get"in i)&&!("set"in i)&&!1!==i.writable&&(I(n,r,{__proto__:null,value:o}),!0):I(n,r,{__proto__:null,configurable:!0,enumerable:!0,value:o,writable:!0})}(n,this.shadowTarget,e,r,o)}static pendingDefinePropertyTrap(t,e,r){return this.makeProxyUnambiguous(),this.defineProperty(t,e,r)}static pendingDeletePropertyTrap(t,e){return this.makeProxyUnambiguous(),this.deleteProperty(t,e)}static pendingPreventExtensionsTrap(t){return this.makeProxyUnambiguous(),this.preventExtensions(t)}static pendingSetPrototypeOfTrap(t,e){return this.makeProxyUnambiguous(),this.setPrototypeOf(t,e)}static pendingSetTrap(t,e,r,o){return this.makeProxyUnambiguous(),this.set(t,e,r,o)}static staticGetTrap(t,e,r){const{shadowTarget:o}=this,n=R(o,e,r);return void 0===n&&e===y&&8&this.foreignTargetTraits&&!z(o,e)?this.staticToStringTag:n}}return BoundaryProxyHandler$LWS.defaultDefinePropertyTrap=o?BoundaryProxyHandler$LWS.pendingDefinePropertyTrap:BoundaryProxyHandler$LWS.passthruDefinePropertyTrap,BoundaryProxyHandler$LWS.defaultDeletePropertyTrap=o?BoundaryProxyHandler$LWS.pendingDeletePropertyTrap:BoundaryProxyHandler$LWS.passthruDeletePropertyTrap,BoundaryProxyHandler$LWS.defaultGetOwnPropertyDescriptorTrap=BoundaryProxyHandler$LWS.passthruGetOwnPropertyDescriptorTrap,BoundaryProxyHandler$LWS.defaultGetPrototypeOfTrap=BoundaryProxyHandler$LWS.passthruGetPrototypeOfTrap,BoundaryProxyHandler$LWS.defaultGetTrap=o?BoundaryProxyHandler$LWS.hybridGetTrap:BoundaryProxyHandler$LWS.passthruGetTrap,BoundaryProxyHandler$LWS.defaultHasTrap=o?BoundaryProxyHandler$LWS.hybridHasTrap:BoundaryProxyHandler$LWS.passthruHasTrap,BoundaryProxyHandler$LWS.defaultIsExtensibleTrap=BoundaryProxyHandler$LWS.passthruIsExtensibleTrap,BoundaryProxyHandler$LWS.defaultOwnKeysTrap=BoundaryProxyHandler$LWS.passthruOwnKeysTrap,BoundaryProxyHandler$LWS.defaultPreventExtensionsTrap=o?BoundaryProxyHandler$LWS.pendingPreventExtensionsTrap:BoundaryProxyHandler$LWS.passthruPreventExtensionsTrap,BoundaryProxyHandler$LWS.defaultSetTrap=o?BoundaryProxyHandler$LWS.pendingSetTrap:BoundaryProxyHandler$LWS.passthruSetTrap,BoundaryProxyHandler$LWS.defaultSetPrototypeOfTrap=o?BoundaryProxyHandler$LWS.pendingSetPrototypeOfTrap:BoundaryProxyHandler$LWS.passthruSetPrototypeOfTrap,BoundaryProxyHandler$LWS.staticDefinePropertyTrap=I,BoundaryProxyHandler$LWS.staticDeletePropertyTrap=M,BoundaryProxyHandler$LWS.staticGetOwnPropertyDescriptorTrap=N,BoundaryProxyHandler$LWS.staticGetPrototypeOfTrap=F,BoundaryProxyHandler$LWS.staticHasTrap=z,BoundaryProxyHandler$LWS.staticIsExtensibleTrap=K,BoundaryProxyHandler$LWS.staticOwnKeysTrap=U,BoundaryProxyHandler$LWS.staticPreventExtensionsTrap=Z,BoundaryProxyHandler$LWS.staticSetPrototypeOfTrap=J,BoundaryProxyHandler$LWS.staticSetTrap=X,J(BoundaryProxyHandler$LWS.prototype,null),W(BoundaryProxyHandler$LWS.prototype),l(createPointer$LWS(wt),()=>{const t=Kt;return Kt=void 0,t},t=>"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):void 0===t?void 0:t,(t,e)=>{t();const r=Kt;return Kt=void 0,createPointer$LWS(null==r?void 0:r[e])},t=>{try{const e=Tt(t);return "object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):void 0===e?void 0:e}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e)=>{t();const r=Kt;Kt=void 0,("object"==typeof r&&null!==r||"function"==typeof r)&&C(Pt,at,[r,e]);},(t,e,r,o)=>{const{proxy:n}=new BoundaryProxyHandler$LWS(t,e,r,o);return C(Pt,at,[n,t]),createPointer$LWS(n)},(t,e,...r)=>{t();const o=Kt;Kt=void 0;let n,a=e;"function"==typeof e&&(e(),a=Kt,Kt=void 0);for(let t=0,{length:e}=r;t<e;t+=1){const e=r[t];"function"==typeof e&&(e(),r[t]=Kt,Kt=void 0);}try{n=C(o,a,r);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "object"==typeof n&&null!==n||"function"==typeof n?getTransferablePointer$LWS(n):void 0===n?void 0:n},(t,e,...r)=>{t();const o=Kt;Kt=void 0;let n,a=e;"function"==typeof e&&(e(),a=Kt,Kt=void 0);for(let t=0,{length:e}=r;t<e;t+=1){const e=r[t];"function"==typeof e&&(e(),r[t]=Kt,Kt=void 0);}try{n=G(o,r,a);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "object"==typeof n&&null!==n||"function"==typeof n?getTransferablePointer$LWS(n):void 0===n?void 0:n},(t,e,r,o,n,a,i,l,s)=>{t();const c=Kt;Kt=void 0;let u=!1;try{u=I(c,e,createDescriptorFromMeta$LWS(r,o,n,a,i,l));}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(u&&!1===r){let t;try{t=N(c,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(t&&C(H,t,["configurable"])&&!1===t.configurable){const r=P({__proto__:null},t),{value:o,get:n,set:a}=r;s(e,"configurable"in r?r.configurable:S,"enumerable"in r?r.enumerable:S,"writable"in r?r.writable:S,"value"in r?"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):void 0===o?void 0:o:S,"get"in r?"object"==typeof n&&null!==n||"function"==typeof n?getTransferablePointer$LWS(n):void 0===n?void 0:n:S,"set"in r?"object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):void 0===a?void 0:a:S);}}return u},(t,e)=>{t();const r=Kt;Kt=void 0;try{return M(r,e)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e,r,o)=>{t();const n=Kt;Kt=void 0;let a,i=o;"function"==typeof o&&(o(),i=Kt,Kt=void 0);try{a=R(n,r,i);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if("object"==typeof a&&null!==a||"function"==typeof a)return getTransferablePointer$LWS(a);if(a=void 0===a?void 0:a,void 0===a&&r===y&&8&e)try{if(!z(n,r)){const t=C(D,n,[]);"[object Object]"!==t&&(a=C(gt,t,[8,-1]));}}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return a},(t,e,r)=>{t();const o=Kt;let n;Kt=void 0;try{n=N(o,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(n){const t=P({__proto__:null},n),{value:o,get:a,set:i}=t;r(e,"configurable"in t?t.configurable:S,"enumerable"in t?t.enumerable:S,"writable"in t?t.writable:S,"value"in t?"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):void 0===o?void 0:o:S,"get"in t?"object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):void 0===a?void 0:a:S,"set"in t?"object"==typeof i&&null!==i||"function"==typeof i?getTransferablePointer$LWS(i):void 0===i?void 0:i:S);}},t=>{t();const e=Kt;let r;Kt=void 0;try{r=F(e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return r?getTransferablePointer$LWS(r):r},(t,e)=>{t();const r=Kt;Kt=void 0;try{return z(r,e)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},t=>{t();const e=Kt;Kt=void 0;try{return K(e)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e)=>{t();const r=Kt;let o;Kt=void 0;try{o=U(r);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}C(e,void 0,o);},t=>{t();const e=Kt;Kt=void 0;let r=2;try{Z(e)&&(r=4);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return 2&r&&K(e)&&(r|=1),r},(t,e,r,o)=>{t();const n=Kt;Kt=void 0;let a=r;"function"==typeof r&&(r(),a=Kt,Kt=void 0);let i=o;"function"==typeof o&&(o(),i=Kt,Kt=void 0);try{return X(n,e,a,i)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e)=>{t();const r=Kt;Kt=void 0;let o=e;"function"==typeof e&&(e(),o=Kt,Kt=void 0);try{return J(r,o)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},Zt,(t,...e)=>{t();const r=Kt;Kt=void 0;for(let t=0,{length:o}=e;t<o;t+=7)I(r,e[t],createDescriptorFromMeta$LWS(e[t+1],e[t+2],e[t+3],e[t+4],e[t+5],e[t+6]));},t=>{t();const e=Kt;let r;Kt=void 0;try{r=function(t){return V.get(t)}(e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return r?getTransferablePointer$LWS(r):r},t=>{t();const e=Kt;Kt=void 0;try{if(!K(e))return _(e)||m(e)?0:1}catch(t){try{Y(e);}catch(t){return 8}}return 0},t=>{t();const e=Kt;Kt=void 0;try{const t=C(D,e,[]);return "[object Object]"===t?"Object":C(gt,t,[8,-1])}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},Et,(e,...r)=>{if(!t)return;const o=C(Q,r,[S]);let l,s;-1===o?l=r:(l=C(tt,r,[0,o]),s=C(tt,r,[o+1])),e();const c=Kt;Kt=void 0;const u=getTransferablePointer$LWS(c),p=Ht(u);let y=p;"function"==typeof p&&(p(),y=Kt,Kt=void 0),void 0===y&&(y={__proto__:null},Rt(u,getTransferablePointer$LWS(y)));for(let t=0,{length:e}=l;t<e;t+=1){const e=l[t];y[e]=!0,I(c,e,createLazyPropertyDescriptor$LWS(c,e,y));}!function(t){if(mt)return;mt=!0;const e=Y(t)&&t.length>0,r=e?(e,r)=>C(q,t,[r])?{configurable:!1,enumerable:C(j,e,[r]),get:getUnforgeableGlobalThisGetter$LWS(r),set:void 0}:N(e,r):void 0,o=e?(e,r)=>C(q,t,[r])?getUnforgeableGlobalThisGetter$LWS(r):C(A,e,[r]):void 0,l=e?(e,r)=>C(q,t,[r])?void 0:C(k,e,[r]):void 0,wrapDefineAccessOrProperty$LWS=t=>{const{length:e}=t,r=2===e;return new a(t,{apply(o,n,a){if(a.length>=e){var i;const t=r?n:a[0],e=r?a[0]:a[1],o=Ht(getTransferablePointer$LWS(t));let l=o;"function"==typeof o&&(o(),l=Kt,Kt=void 0),null!=(i=l)&&i[e]&&R(t,e);}return C(t,n,a)}})},wrapLookupAccessor$LWS=(t,r)=>new a(t,{apply(o,n,a){if(a.length){var i;const{0:t}=a,o=Ht(getTransferablePointer$LWS(n));let l=o;if("function"==typeof o&&(o(),l=Kt,Kt=void 0),null!=(i=l)&&i[t]&&R(n,t),e&&n===wt)return r(n,t)}return C(t,n,a)}}),wrapGetOwnPropertyDescriptor$LWS=t=>new a(t,{apply(o,n,a){if(a.length>1){var i;const{0:t,1:o}=a,n=Ht(getTransferablePointer$LWS(t));let l=n;if("function"==typeof n&&(n(),l=Kt,Kt=void 0),null!=(i=l)&&i[o]&&R(t,o),e&&t===wt)return r(t,o)}return C(t,n,a)}});var s;i.defineProperty=wrapDefineAccessOrProperty$LWS(I),i.getOwnPropertyDescriptor=wrapGetOwnPropertyDescriptor$LWS(N),n.getOwnPropertyDescriptor=wrapGetOwnPropertyDescriptor$LWS(T),n.getOwnPropertyDescriptors=new a(s=w,{apply(t,o,n){if(!n.length)return C(s,o,n);const{0:a}=n,i=Ht(getTransferablePointer$LWS(a));let l=i;"function"==typeof i&&(i(),l=Kt,Kt=void 0);const c=a===wt&&e,u=c?{}:C(s,o,n);if(!c&&void 0===l)return u;const p=U(c?a:u);for(let t=0,{length:e}=p;t<e;t+=1){var y;const e=p[t],o=!(null==(y=l)||!y[e]);if(o&&R(a,e),o||c){const t=c?r(a,e):N(a,e);t?u[e]=t:c||delete u[e];}}return u}}),x.__defineGetter__=wrapDefineAccessOrProperty$LWS(E),x.__defineSetter__=wrapDefineAccessOrProperty$LWS(B),x.__lookupGetter__=wrapLookupAccessor$LWS(A,o),x.__lookupSetter__=wrapLookupAccessor$LWS(k,l);}(s);},t=>{t();const e=Kt;if(Kt=void 0,e===x)return !1;try{if("object"==typeof e){const{constructor:t}=e;if(t===n)return !0;if(null===F(e)&&("function"!=typeof t||t.prototype!==e))return !0;if(et(e))return !0;try{return C(rt,e,[]),!0}catch(t){}try{if(e!==ut)return C(ht,e,[]),!0}catch(t){}}return C(H,e,[h])}catch(t){}return !1},t=>{t();const e=Kt;Kt=void 0;try{return Y(e),!1}catch(t){}return !0},t=>{t();const e=Kt;return Kt=void 0,serializeTarget$LWS(e)},(t,e)=>{t();const r=Kt;Kt=void 0,e();const o=Kt;Kt=void 0;try{!function(t,e){V.set(t,e);}(r,o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,r)=>{t();const o=Kt;let n;Kt=void 0;try{n=w(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}const a=U(n),{length:i}=a,l=new e(7*i);for(let t=0,e=0;t<i;t+=1,e+=7){const r=a[t],o=n[r],i=P({__proto__:null},o),{value:s,get:c,set:u}=i;l[e]=r,l[e+1]="configurable"in i?i.configurable:S,l[e+2]="enumerable"in i?i.enumerable:S,l[e+3]="writable"in i?i.writable:S,l[e+4]="value"in i?"object"==typeof s&&null!==s||"function"==typeof s?getTransferablePointer$LWS(s):void 0===s?void 0:s:S,l[e+5]="get"in i?"object"==typeof c&&null!==c||"function"==typeof c?getTransferablePointer$LWS(c):void 0===c?void 0:c:S,l[e+6]="set"in i?"object"==typeof u&&null!==u||"function"==typeof u?getTransferablePointer$LWS(u):void 0===u?void 0:u:S;}let s;C(r,void 0,l);try{s=F(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return s?getTransferablePointer$LWS(s):s},(t,e)=>{t();const r=Kt;let o;Kt=void 0;try{if(C(H,r,[e]))return !0;o=F(r);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return o?getTransferablePointer$LWS(o):o},(t,e,r)=>{t();const o=Kt;let n,a;Kt=void 0;try{n=N(o,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(!n){try{a=F(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return a?getTransferablePointer$LWS(a):a}{const t=P({__proto__:null},n),{value:o,get:a,set:i}=t;r(e,"configurable"in t?t.configurable:S,"enumerable"in t?t.enumerable:S,"writable"in t?t.writable:S,"value"in t?"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):void 0===o?void 0:o:S,"get"in t?"object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):void 0===a?void 0:a:S,"set"in t?"object"==typeof i&&null!==i||"function"==typeof i?getTransferablePointer$LWS(i):void 0===i?void 0:i:S);}}),(...t)=>{const{6:e,7:r,8:o,9:n,10:a,11:i,12:l,13:s,14:c,15:u,16:p,17:y,18:f,19:d,20:h,22:b,23:g,24:S,25:v,27:L,28:P,29:$,30:W,31:T,32:w,33:_}=t;lt=e,st=r,pt=o,yt=n,ft=a,dt=i,bt=l,St=s,vt=c,_t=u,xt=p,Ot=y,Bt=f,At=d,kt=h,Ht=b,jt=g,Dt=S,Ct=v,Gt=L,It=P,Mt=$,Rt=W,Nt=T,Ft=w,zt=_,ot[0]=createApplyOrConstructTrapForZeroOrMoreArgs$LWS(1),ot[1]=createApplyOrConstructTrapForOneOrMoreArgs$LWS(1),ot[2]=createApplyOrConstructTrapForTwoOrMoreArgs$LWS(1),ot.n=createApplyOrConstructTrapForAnyNumberOfArgs$LWS(1),nt[0]=createApplyOrConstructTrapForZeroOrMoreArgs$LWS(2),nt[1]=createApplyOrConstructTrapForOneOrMoreArgs$LWS(2),nt[2]=createApplyOrConstructTrapForTwoOrMoreArgs$LWS(2),nt.n=createApplyOrConstructTrapForAnyNumberOfArgs$LWS(2);}}}const U=TypeError,Z=WeakMap,{apply:X}=Reflect,{get:J,set:Y}=Z.prototype,q=`\n'use strict';\n(${createMembraneMarshall$LWS.toString()})`,Q=new Z;function createConnector$LWS(t){if("function"!=typeof t)throw new U("Missing evaluator function.");let e=X(J,Q,[t]);return void 0===e&&(e=t(q)(!0),X(Y,Q,[t,e])),e}const tt=Symbol.for("@@lockerNearMembraneUndefinedValue"),et=Array,rt=Error,ot=Object,{push:nt}=et.prototype,{assign:at}=ot,{apply:it,ownKeys:lt}=Reflect;class VirtualEnvironment$LWS{constructor(t){if(void 0===t)throw new rt("Missing VirtualEnvironmentOptions options bag.");const{blueConnector:e,redConnector:r,distortionCallback:o,instrumentation:n}=at({__proto__:null},t);let a,i;const l=e("blue",false,(...t)=>{a=t;},{distortionCallback:o,instrumentation:n}),s=r("red",true,(...t)=>{i=t;}),{0:c,1:u,2:p,3:y,4:f,5:d,6:h,7:b,8:g,9:S,10:v,11:L,12:P,13:$,14:W,15:T,16:w,17:_,18:m,19:x,20:O,21:E,22:B,23:A,24:k,25:H,26:j,27:D,28:C,29:G,30:I,31:M,32:R,33:N}=a,{0:F,1:z,2:K,3:V,4:U,5:Z,6:X,7:J,8:Y,9:q,10:Q,11:tt,12:et,13:ot,14:nt,15:it,16:lt,17:st,18:ct,19:ut,20:pt,21:yt,22:ft,23:dt,24:ht,25:bt,26:gt,27:St,28:vt,29:Lt,30:Pt,31:$t,32:Wt,33:Tt}=i;l(F,z,K,V,U,Z,X,J,Y,q,Q,tt,et,ot,nt,it,lt,st,ct,ut,pt,yt,ft,dt,ht,bt,gt,St,vt,Lt,Pt,$t,Wt,Tt),s(c,u,p,y,f,d,h,b,g,S,v,L,P,$,W,T,w,_,m,x,O,E,B,A,k,H,j,D,C,G,I,M,R,N),this.blueConnector=e,this.blueGlobalThisPointer=c,this.blueGetSelectedTarget=u,this.blueGetTransferableValue=p,this.blueCallableGetPropertyValuePointer=y,this.blueCallableLinkPointers=d,this.redConnector=r,this.redGlobalThisPointer=F,this.redCallableGetPropertyValuePointer=V,this.redCallableEvaluate=U,this.redCallableLinkPointers=Z,this.redCallableSetPrototypeOf=ut,this.redCallableDefineProperties=yt,this.redCallableInstallLazyPropertyDescriptors=gt;}evaluate(t){try{const e=this.redCallableEvaluate(t);return "function"==typeof e?(e(),this.blueGetSelectedTarget()):e}catch(t){var e;throw null!=(e=this.blueGetSelectedTarget())?e:t}}lazyRemap(t,e,r){const o=[this.blueGetTransferableValue(t)];it(nt,o,e),null!=r&&r.length&&(o[o.length]=tt,it(nt,o,r)),it(this.redCallableInstallLazyPropertyDescriptors,void 0,o);}link(...t){let e=this.blueGlobalThisPointer,r=this.redGlobalThisPointer;for(let o=0,{length:n}=t;o<n;o+=1){const n=t[o];e=this.blueCallableGetPropertyValuePointer(e,n),r=this.redCallableGetPropertyValuePointer(r,n),this.redCallableLinkPointers(r,e),this.blueCallableLinkPointers(e,r);}}remap(t,e){const r=this.blueGetTransferableValue(t),o=lt(e),{length:n}=o,a=new et(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],l=at({__proto__:null},i);a[r]=n,a[r+1]="configurable"in l?!!l.configurable:tt,a[r+2]="enumerable"in l?!!l.enumerable:tt,a[r+3]="writable"in l?!!l.writable:tt,a[r+4]="value"in l?this.blueGetTransferableValue(l.value):tt,a[r+5]="get"in l?this.blueGetTransferableValue(l.get):tt,a[r+6]="set"in l?this.blueGetTransferableValue(l.set):tt;}it(this.redCallableDefineProperties,this,a);}remapProto(t,e){const r=this.blueGetTransferableValue(t),o=e?this.blueGetTransferableValue(e):e;this.redCallableSetPrototypeOf(r,o);}}const{includes:st}=Array.prototype,{assign:ct}=Object,{apply:ut,ownKeys:pt}=Reflect,yt=["AggregateError","Array","Error","EvalError","Function","Object","Proxy","RangeError","ReferenceError","SyntaxError","TypeError","URIError","eval","globalThis"],ft=["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",...yt];function getFilteredGlobalOwnKeys$LWS(t){const e=[];let r=0;const o=pt(t);for(let t=0,{length:n}=o;t<n;t+=1){const n=o[t];ut(st,ft,[n])||(e[r++]=n);}return e}const dt=WeakMap,{apply:ht,getPrototypeOf:bt,ownKeys:gt}=Reflect,{get:St,set:vt}=dt.prototype,Lt=new dt,Pt=(()=>{const{navigator:{userAgent:t,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))return ["window"]})();function getCachedGlobalObjectReferences$LWS(t){let e=ht(St,Lt,[t]);if(e)return e;const{document:r,window:o}=t,n=bt(o),a=bt(n),i=bt(a);return e={document:r,DocumentProto:bt(r),window:o,WindowProto:n,WindowPropertiesProto:a,EventTargetProto:i,EventTargetProtoOwnKeys:gt(i)},ht(vt,Lt,[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 $t=Object,Wt=TypeError,{prototype:Tt}=Document,{prototype:wt}=Node,{remove:_t,setAttribute:mt}=Element.prototype,{appendChild:xt}=wt,{assign:Ot}=$t,{__lookupGetter__:Et}=$t.prototype,{apply:Bt}=Reflect,{close:At,createElement:kt,open:Ht}=Tt,jt=Bt(Et,Tt,["body"]),Dt=Bt(Et,HTMLElement.prototype,["style"]),Ct=Bt(Et,HTMLIFrameElement.prototype,["contentWindow"]),Gt=Bt(Et,wt,["lastChild"]),It=document,Mt=createMembraneMarshall$LWS();let Rt=null;function createIframeVirtualEnvironment$LWS(t,e,r){if("object"!=typeof t)throw new Wt("Missing global object shape.");if("object"!=typeof e||null===e)throw new Wt("Missing global object virtualization target.");const{distortionCallback:o,endowments:n,instrumentation:a,keepAlive:i=!1}=Ot({__proto__:null},r),l=function(){const t=Bt(kt,It,["iframe"]),e=Bt(jt,It,[])||Bt(Gt,It,[]);return Bt(Dt,t,[]).display="none",Bt(mt,t,["sandbox","allow-same-origin allow-scripts"]),Bt(xt,e,[t]),t}(),s=Bt(Ct,l,[]),c=null===t;c&&null===Rt&&(Rt=filterWindowKeys$LWS(getFilteredGlobalOwnKeys$LWS(s)));const u=getCachedGlobalObjectReferences$LWS(e),p=new VirtualEnvironment$LWS({blueConnector:Mt,distortionCallback:o,redConnector:createConnector$LWS(s.eval),instrumentation:a});if(function(t,e){for(let r=0,{length:o}=yt;r<o;r+=1){const o=yt[r],n=e[o];n&&(n.prototype?t.link(o,"prototype"):t.link(o));}}(p,e),"undefined"==typeof globalThis?p.link("window","document"):p.link("document"),p.link("__proto__","__proto__","__proto__"),p.remapProto(u.document,u.DocumentProto),p.lazyRemap(u.window,c?Rt:filterWindowKeys$LWS(getFilteredGlobalOwnKeys$LWS(t)),i?void 0:Pt),n){const t={};!function(t,e,r=e){if(e){const o=pt(e);for(let e=0,{length:n}=o;e<n;e+=1){const n=o[e];if(!ut(st,ft,[n])){const e=r[n];e&&(t[n]=ct({__proto__:null},e));}}}}(t,n),delete(y=t).document,delete y.location,delete y.top,delete y.window,delete y.chrome,p.remap(u.window,t);}var y;if(p.lazyRemap(u.EventTargetProto,u.EventTargetProtoOwnKeys),i){const{document:t}=s;Bt(Ht,t,[]),Bt(At,t,[]);}else Bt(_t,l,[]);return p}const Nt={[SANDBOX_EVAL_CONTEXT_NAME$LWS]:{__proto__:null,get:()=>clearEvalContext$LWS()},[SANDBOX_EVAL_HELPERS_NAME$LWS]:{__proto__:null,get:()=>clearEvalHelpers$LWS()}},Ft=new RegExp(`\\breturn\\s*\\[\\s*(["'])${LOCKER_IDENTIFIER_MARKER$LWS}\\1\\s*,\\s*([^,\\s]+)\\s*,\\s*(["'])=\\3\\s*,\\s*([^\\]\\s]+)\\s*\\]`,"g"),zt=new WeakMapCtor$LWS,Kt={__proto__:null};let Vt,Ut;function clearEvalContext$LWS(){const t=Vt;return Vt=void 0,t}function clearEvalHelpers$LWS(){const t=Ut;return Ut=void 0,t}function createEvaluateOptionsFromArgs$LWS(t){var o;const{length:n}=t,a=n?t[0]:void 0,i=1===n&&isObjectLike$LWS(a);return ObjectAssign$LWS({__proto__:null,context:n>2?t[2]:void 0,endowments:n>3?t[3]:void 0,instrumentation:null!=(o=n>4?t[4]:void 0)?o:defaultInstrumentation$LWS,key:i?void 0:a,source:n>1?t[1]:void 0,sourceType:"module",verboseInstrumentation:n>5&&t[5]||!1},i?a:void 0)}function createSandbox$LWS(e,l,s,c){const u=new WeakMapCtor$LWS(l(window)),p=createIframeVirtualEnvironment$LWS(null,window,{distortionCallback(t){const e=WeakMapGet$LWS(u,t);if(e)return e;if(isWindowLike$LWS(t)&&isWindow$LWS(t)){const e=l(t);for(let t=0,{length:r}=e;t<r;t+=1){const{0:r,1:o}=e[t];WeakMapSet$LWS(u,r,o);}WeakMapSet$LWS(u,t,t);}return t},endowments:ObjectAssign$LWS({},Nt,s?ObjectGetOwnPropertyDescriptors$LWS(s):void 0),keepAlive:!1,instrumentation:c}),y={};setEvalContext$LWS(t=>{ObjectAssign$LWS(y,t({elementToLoadingPromiseMap:zt}));});const f={distortionFactory:l,distortions:u,env:p,helpers:y};return p.evaluate(`'use strict';\n ${SANDBOX_EVAL_CONTEXT_NAME$LWS}(${function(t){const{elementToLoadingPromiseMap:e}=t,r=Promise,o=TypeError,{asyncIterator:n,iterator:a}=Symbol,{[a]:i}=Array.prototype,l=function*(){}.constructor.prototype.prototype,{next:s,throw:c}=l,{delete:u,get:p,set:y}=Map.prototype,{appendChild:f}=Node.prototype,{freeze:d}=Object,{then:h}=r.prototype,b=r.resolve.bind(r),{apply:g,getPrototypeOf:S,setPrototypeOf:v}=Reflect,{get:L,set:P}=WeakMap.prototype,{createElement:$}=Document.prototype,{querySelector:W,setAttribute:T}=Element.prototype,{stopPropagation:w}=Event.prototype,{addEventListener:_}=EventTarget.prototype,m=document,{head:x}=m,O=new Map,E="data-locker-id",B=`${crypto.getRandomValues(new Uint32Array(1))[0]}`;function genStep$LWS(t,e,r,o,n,a,i){let l,s;try{l=g(a,t,[i]),s=l.value;}catch(t){return void r(t)}l.done?e(s):b(s).then(o,n);}function loadPromise$LWS(t,o){const n=new r((e,r)=>{g(_,t,["load",()=>{e(void 0);}]),g(_,t,["error",t=>{g(w,t,[]),r(`[Locker] resource loader error loading "${o}"`);}]);});return g(P,e,[t,n]),g(f,x,[t]),n}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,s,t);}function thrower$LWS(t){genStep$LWS(a,r,n,next$LWS,thrower$LWS,c,t);}next$LWS(void 0);})},forAwaitOf:function(t,e,i){if(0===e){let e=!1,{[n]:r}=i;if(null==r&&(e=!0,({[a]:r}=i)),"function"!=typeof r)throw new o("Object is not iterable.");return void g(y,O,[t,{iterable:g(r,i,[]),step:void 0,sync:e}])}const l=g(p,O,[t]);if(1===e){const t=l.iterable.next();return l.sync?new r(e=>{l.step=t,e();}):g(h,t,[t=>{l.step=t;}])}if(2===e)return l.step.value;if(3===e){const e=!!l.step.done;return e&&g(u,O,[t]),e}},loadScript:function(t,r){let o=g(W,x,[`script[data-distorted-src='${r}'][data-locker-id='${B}']`]);var n;return o?null!=(n=g(L,e,[o]))?n:b():(o=g($,m,["script"]),g(T,o,[E,B]),o.type="text/javascript",o.src=r,loadPromise$LWS(o,r))},loadStyle:function(t,r){let o=g(W,x,[`link[href='${r}']`]);var n;return o?null!=(n=g(L,e,[o]))?n:b():(o=g($,m,["link"]),o.type="text/css",o.rel="stylesheet",o.href=r,loadPromise$LWS(o,r))},namespace:function(t){return d(t)},spreadable:function(t){return v(t,null),t[a]=i,t},super:function(t,e,r,o){const n=S(t.prototype)[e];return g(n,r,o)}}}})`),Kt[e]=f,f}function getSandbox$LWS(t){return Kt[t]}function setEvalContext$LWS(t){Vt=t;}function setEvalHelpers$LWS(t){Ut=t;}function toSource$LWS(t,e){const{sourceType:o="module"}=ObjectAssign$LWS({__proto__:null},e);let n=toString$LWS(t);return "function"==typeof t&&(n=StringMatch$LWS(n,/^[\s\S]+?\{(?:[\t ]*\r?\n)?([\s\S]*?)(?:\r?\n[\t ]*)?\}$/)[1]),n=StringReplace$LWS(n,/\/\/# sandbox(?=MappingURL=.*?\s*$)/,"//# source"),n=StringReplace$LWS(n,Ft,(t,e,r,o,n)=>`${r}=${n}`),"module"===o&&-1===indexOfPragma$LWS(n,"use strict")?`'use strict';${n}`:n}function evaluateInSandbox$LWS(...t){const{context:e,endowments:r,instrumentation:o,key:n,source:a,sourceType:i,verboseInstrumentation:l}=createEvaluateOptionsFromArgs$LWS(t);if("string"!=typeof n)throw new LockerSecurityError$LWS("Invalid sandbox key.");const s={sandboxKey:n},c="object"==typeof o&&null!==o&&o.startActivity,u=c("EvaluateInSandboxDuration",s);let p,y=getSandbox$LWS(n);if(void 0===y){const t={__proto__:null,instrumentation:o,sandboxType:SandboxType$LWS.External,verboseInstrumentation:l},distortionFactory$LWS=e=>{const r=c("createExternalDistortionEntries",s),o=createExternalDistortionEntries$LWS(e,n,evaluateInSandbox$LWS,t);return r.stop(),o},e=c("createSandbox",s);y=createSandbox$LWS(n,distortionFactory$LWS,r,l?o:void 0),e.stop();}setEvalContext$LWS(e),setEvalHelpers$LWS(y.helpers);const d=toSource$LWS(a,{sourceType:i}),h=c("externalEvaluatorDuration",s);try{p=y.env.evaluate(d);}catch(t){throw h.error({sandboxKey:n,error:t}),t}finally{clearEvalContext$LWS(),clearEvalHelpers$LWS(),h.stop();}return u.stop(),p}const Zt="lws-core-sandbox";function evaluateInCoreSandbox$LWS(...t){const{context:e,endowments:r,instrumentation:o,source:n,sourceType:a,verboseInstrumentation:i}=createEvaluateOptionsFromArgs$LWS(t),l={sandboxKey:"lws-core-sandbox"},s="object"==typeof o&&null!==o&&o.startActivity,c=s("EvaluateInCoreSandboxDuration",l);let u,p=getSandbox$LWS("lws-core-sandbox");if(void 0===p){const t={__proto__:null,instrumentation:o,sandboxType:SandboxType$LWS.Internal,verboseInstrumentation:i},distortionFactory$LWS=e=>{const r=s("createInternalDistortionEntries",l),o=createInternalDistortionEntries$LWS(e,"lws-core-sandbox",evaluateInCoreSandbox$LWS,t);return r.stop(),o},e=s("createSandbox",l);p=createSandbox$LWS("lws-core-sandbox",distortionFactory$LWS,r,i?o:void 0),e.stop();}setEvalContext$LWS(e),setEvalHelpers$LWS(p.helpers);const y=toSource$LWS(n,{sourceType:a}),f=s("internalEvaluatorDuration",l);try{u=p.env.evaluate(y);}catch(t){throw f.error({sandboxKey:"lws-core-sandbox",error:t}),t}finally{clearEvalContext$LWS(),clearEvalHelpers$LWS(),f.stop();}return c.stop(),u}const Xt=SymbolFor$LWS("@@lockerDebugMode");if(LOCKER_UNMINIFIED_FLAG$LWS){let t=!0;const e=100,r=5,o=100,n=o/2,a=/^[0-9]$|^[1-9][0-9]+$/,i="display: inline-block; margin-bottom: 3px; margin-left: -3px; word-break: break-all; word-wrap: wrap;",l={style:"margin-left:11px; margin-bottom: 3px;"},s={style:"display: inline-block; margin-left:12px; word-break: break-all; word-wrap: wrap;"},c={style:"color: #9d288c; font-weight: bold"},u={style:"color: #b17ab0"},p={style:"color: #16239f"},y={style:"color: #236d25"},f={style:"color: #606367"},d={style:"color: #b82619"},formatValue$LWS=function(t){if(null==t)return ["span",f,`${t}`];if("boolean"==typeof t)return ["span",p,t];if("number"==typeof t)return NumberIsFinite$LWS(t)?["span",p,t]:["span",p,(t>=0?"":"-")+"Infinity"];if("string"==typeof t){let e=t;const{length:r}=e;if(r>o){e=`${StringSlice$LWS(e,0,n)}…${StringSlice$LWS(e,r-n-1,r)}`;}return ["span",d,JSONStringify$LWS(e)]}return ArrayIsArray$LWS(t)?["span",{},`Array(${t.length})`]:isObject$LWS(t)?["span",{},"{…}"]:["span",d,StringCtor$LWS(t)]},formatHeader$LWS=function(t,o={}){const n=[],{isChildElement:i}=o;let l=0;i&&(n[l++]=["span",c,o.childKey],n[l++]=["span",{},": "]);const s=ObjectToString$LWS(t);let u=ObjectKeys$LWS(t);if(s===TO_STRING_BRAND_SYMBOL$LWS)ArrayIncludes$LWS(u,"description")||ArrayUnshift$LWS(u,"description");else if(s===TO_STRING_BRAND_STRING$LWS){const{length:e}=t;u=ArrayFilter$LWS(u,t=>!RegExpTest$LWS(a,t)||+t>=e);}const{length:b}=u;if(ArrayIsArray$LWS(t)){n[l++]=["span",i?f:{},`(${t.length}) [`];for(let r=0,o=MathMin$LWS(b,e);r<o;r+=1){const e=t[u[r]];n[l++]=["span",{},r?", ":""],n[l++]=formatValue$LWS(e);}return b>e&&(n[l++]=["span",null,["span",{},", …"]]),n[l++]=["span",{},"]"],n}let g,S="{";switch(s){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=p;s===TO_STRING_BRAND_BIG_INT$LWS?e=y:s===TO_STRING_BRAND_SYMBOL$LWS&&(e=d),S=`${StringSlice$LWS(s,8,-1)} {`,g=["span",e,`${StringCtor$LWS(getNearMembraneSerializedValue$LWS(t))}`];break}}n[l++]=["span",{},S],g&&(n[l++]=g,b&&(n[l++]=["span",{},", "]));for(let e=0,o=MathMin$LWS(b,r);e<o;e+=1){const r=u[e],o=t[r];n[l++]=["span",{},e?", ":""],n[l++]=["span",f,r],n[l++]=["span",{},": "],n[l++]=formatValue$LWS(o);}return b>r&&(n[l++]=["span",null,["span",{},", …"]]),n[l++]=["span",{},"}"],n},formatBody$LWS=function(t){const e=ObjectKeys$LWS(t),r=ReflectOwnKeys$LWS(t);ArrayIsArray$LWS(t)||ArraySort$LWS(r);const o=[];let n=0;for(let a=0,{length:i}=r;a<i;a+=1){const i=r[a],s=t[i];if(isObject$LWS(s))o[n++]=["div",{},["object",{object:s,config:{childKey:StringCtor$LWS(i),isChildElement:!0}}]];else {let t=c;"symbol"!=typeof i&&ArrayIncludes$LWS(e,i)||(t=u),o[n++]=["div",l,["span",t,StringCtor$LWS(i)],["span",{},": "],formatValue$LWS(s)];}}return o};let{devtoolsFormatters:M}=window;ArrayIsArray$LWS(M)||(M=[],ReflectDefineProperty$LWS(window,"devtoolsFormatters",{__proto__:null,configurable:!0,value:M,writable:!0})),M[M.length]={header(e,r={}){if(t&&(t=!1,ReflectDefineProperty$LWS(window,Xt,{__proto__:null,configurable:!0,value:!0,writable:!0})),!isNearMembrane$LWS(e))return null;const o=["div",{style:`${i}${r.isChildElement?"":"font-style: italic;"}`}];return ReflectApply$LWS(ArrayProtoPush$LWS,o,formatHeader$LWS(e,r)),["div",{},o]},hasBody:()=>!0,body(t){const e=["div",s];return ReflectApply$LWS(ArrayProtoPush$LWS,e,formatBody$LWS(t)),e}};}
8151
7957
 
8152
- export { Ue as CORE_SANDBOX_KEY, evaluateInCoreSandbox$LWS as evaluateInCoreSandbox, evaluateInSandbox$LWS as evaluateInSandbox };
7958
+ export { Zt as CORE_SANDBOX_KEY, createEvaluateOptionsFromArgs$LWS as createEvaluateOptionsFromArgs, evaluateInCoreSandbox$LWS as evaluateInCoreSandbox, evaluateInSandbox$LWS as evaluateInSandbox };