@lwrjs/client-modules 0.12.0-alpha.25 → 0.12.0-alpha.27

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.
@@ -1453,7 +1453,7 @@ const {
1453
1453
  } = PromiseCtor$LWS.prototype;
1454
1454
  const PromiseResolve$LWS = PromiseCtor$LWS.resolve.bind(PromiseCtor$LWS);
1455
1455
  const PromiseReject$LWS = PromiseCtor$LWS.reject.bind(PromiseCtor$LWS);
1456
- /*! version: 0.21.3 */
1456
+ /*! version: 0.21.4 */
1457
1457
 
1458
1458
  /*!
1459
1459
  * Copyright (C) 2019 salesforce.com, inc.
@@ -2112,7 +2112,7 @@ const {
2112
2112
  const XhrProtoResponseTextGetter$LWS = ObjectLookupOwnGetter$LWS$1(XhrProto$LWS, 'responseText');
2113
2113
  const XhrProtoStatusGetter$LWS = ObjectLookupOwnGetter$LWS$1(XhrProto$LWS, 'status');
2114
2114
  ObjectLookupOwnSetter$LWS(XhrProto$LWS, 'withCredentials');
2115
- /*! version: 0.21.3 */
2115
+ /*! version: 0.21.4 */
2116
2116
 
2117
2117
  /*!
2118
2118
  * Copyright (C) 2019 salesforce.com, inc.
@@ -2135,7 +2135,7 @@ function isMIMETypeAllowed$LWS(mimeType$LWS) {
2135
2135
  }
2136
2136
  const DISALLOWED_ENDPOINTS_LIST$LWS = ['/aura', '/webruntime'];
2137
2137
  const TRUSTED_DOMAINS_REG_EXP$LWS = /\.(force|salesforce|visualforce|documentforce|my\.site|salesforce-sites)\.com$/;
2138
- const URL_SCHEMES_LIST$LWS = toSafeArray$LWS$1(['http:', 'https:']);
2138
+ const URL_SCHEMES_LIST$LWS = toSafeArray$LWS$1(['about:', 'http:', 'https:']);
2139
2139
  const newlinesAndTabsRegExp$LWS = /[\u2028\u2029\n\r\t]/g;
2140
2140
  const normalizerAnchor$LWS = ReflectApply$LWS$1(DocumentProtoCreateElement$LWS$1, rootDocument$LWS, ['a']);
2141
2141
  // @TODO: W-7302311 Make paths and domains configurable.
@@ -2171,7 +2171,7 @@ function sanitizeURLForElement$LWS(url$LWS) {
2171
2171
  function sanitizeURLString$LWS(urlString$LWS) {
2172
2172
  return urlString$LWS === '' ? urlString$LWS : ReflectApply$LWS$1(StringProtoReplace$LWS, urlString$LWS, [newlinesAndTabsRegExp$LWS, '']);
2173
2173
  }
2174
- /*! version: 0.21.3 */
2174
+ /*! version: 0.21.4 */
2175
2175
 
2176
2176
  /*! @license DOMPurify 3.0.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.5/LICENSE */
2177
2177
 
@@ -3857,7 +3857,7 @@ try {
3857
3857
  // swallow
3858
3858
  }
3859
3859
  const trusted = createPolicy('trusted', policyOptions);
3860
- /*! version: 0.21.3 */
3860
+ /*! version: 0.21.4 */
3861
3861
 
3862
3862
  /*!
3863
3863
  * Copyright (C) 2019 salesforce.com, inc.
@@ -4106,7 +4106,7 @@ function blobSanitizer$LWS(sandboxKey$LWS) {
4106
4106
  }
4107
4107
  return getSanitizerForConfig$LWS(sandboxKey$LWS, 'STRING_BLOB_HTML');
4108
4108
  }
4109
- /*! version: 0.21.3 */
4109
+ /*! version: 0.21.4 */
4110
4110
 
4111
4111
  /*!
4112
4112
  * Copyright (C) 2023 salesforce.com, inc.
@@ -4304,7 +4304,7 @@ function encloseSrcSetter$LWS(targetElement$LWS) {
4304
4304
  ReflectApply$LWS$1(ElementProtoSetAttributeNS$LWS, targetElement$LWS, [attributeNamespaceURI$LWS, attributeName$LWS, src$LWS]);
4305
4305
  };
4306
4306
  }
4307
- /*! version: 0.21.3 */
4307
+ /*! version: 0.21.4 */
4308
4308
 
4309
4309
  /*!
4310
4310
  * Copyright (C) 2019 salesforce.com, inc.
@@ -4356,6 +4356,15 @@ class VirtualRegistry$LWS {
4356
4356
  PivotCtor$LWS = createPivotingClass$LWS(this._document, this._originalHTMLElementCtor, definition$LWS, tagName$LWS);
4357
4357
  // Register a pivoting class which will handle global registry initializations.
4358
4358
  ReflectApply$LWS$1(CustomElementRegistryProtoDefine$LWS, cer$LWS, [tagName$LWS, PivotCtor$LWS]);
4359
+ } else {
4360
+ // When there is already a PivotCtor for the given tagName, we need to ensure that
4361
+ // this definition doesn't have a conflicting formAssociated value for that tagName.
4362
+ const {
4363
+ formAssociated: formAssociated$LWS = false
4364
+ } = definition$LWS;
4365
+ if (PivotCtor$LWS.formAssociated !== formAssociated$LWS) {
4366
+ throw new LockerSecurityError$LWS(`Cannot create a definition for <${tagName$LWS}> with "formAssociated = ${formAssociated$LWS}". Either use "formAssociated = ${PivotCtor$LWS.formAssociated}" for this component or rename the component to not conflict with <${tagName$LWS}>`);
4367
+ }
4359
4368
  }
4360
4369
  // We MUST keep track of the constructor used to define custom elements
4361
4370
  // to prevent accidental re-use of constructors in userland code.
@@ -4710,7 +4719,12 @@ originalDefinition$LWS, tagName$LWS) {
4710
4719
  ReflectApply$LWS$1(formStateRestoreCallback$LWS, this, [state$LWS, reason$LWS]);
4711
4720
  }
4712
4721
  }
4713
- }, _a$LWS.formAssociated = true, _a$LWS.observedAttributes = originalDefinition$LWS.observedAttributes ? shallowCloneArray$LWS(originalDefinition$LWS.observedAttributes) : [], _a$LWS;
4722
+ },
4723
+ // This ensures that the first-come definition for the given tagName gets
4724
+ // to define the formAssociated-ness of the tag. In the likely case
4725
+ // that formAssociated is not explicitly defined, coerce the "undefined"
4726
+ // value to a boolean to ensure we get a true or false.
4727
+ _a$LWS.formAssociated = Boolean(originalDefinition$LWS.formAssociated), _a$LWS.observedAttributes = originalDefinition$LWS.observedAttributes ? shallowCloneArray$LWS(originalDefinition$LWS.observedAttributes) : [], _a$LWS;
4714
4728
  }
4715
4729
  function getCurrentRegistry$LWS() {
4716
4730
  const registry$LWS = currentRegistry$LWS;
@@ -6106,7 +6120,25 @@ function initDistortionElementAppend$LWS({
6106
6120
  return distortionEntry$LWS;
6107
6121
  };
6108
6122
  }
6109
- const FORCED_MODE$LWS = 'closed';
6123
+ const elementShadowRootBySandboxKeyRegistry$LWS = {
6124
+ __proto__: null
6125
+ };
6126
+ function registerShadowRootInSandbox$LWS(sandboxKey$LWS, shadowRoot$LWS) {
6127
+ const {
6128
+ [sandboxKey$LWS]: elementShadowRootRegistry$LWS = toSafeWeakSet$LWS$1(new WeakSetCtor$LWS$1())
6129
+ } = elementShadowRootBySandboxKeyRegistry$LWS;
6130
+ elementShadowRootRegistry$LWS.add(shadowRoot$LWS);
6131
+ if (!elementShadowRootBySandboxKeyRegistry$LWS[sandboxKey$LWS]) {
6132
+ elementShadowRootBySandboxKeyRegistry$LWS[sandboxKey$LWS] = elementShadowRootRegistry$LWS;
6133
+ }
6134
+ }
6135
+ function isShadowRootAccessibleInThisSandbox$LWS(sandboxKey$LWS, shadowRoot$LWS) {
6136
+ const elementShadowRootRegistry$LWS = elementShadowRootBySandboxKeyRegistry$LWS[sandboxKey$LWS];
6137
+ if (!elementShadowRootRegistry$LWS) {
6138
+ return false;
6139
+ }
6140
+ return elementShadowRootRegistry$LWS.has(shadowRoot$LWS);
6141
+ }
6110
6142
  function initDistortionElementAttachShadow$LWS({
6111
6143
  globalObject: {
6112
6144
  Element: {
@@ -6116,37 +6148,14 @@ function initDistortionElementAttachShadow$LWS({
6116
6148
  }
6117
6149
  }
6118
6150
  }) {
6119
- const distortionEntry$LWS = [originalAttachShadow$LWS, function attachShadow$LWS(...args$LWS) {
6120
- // istanbul ignore else: needs default platform behavior test
6121
- if (args$LWS.length) {
6122
- const {
6123
- 0: originalShadowRootInit$LWS
6124
- } = args$LWS;
6125
- // istanbul ignore else: needs default platform behavior test
6126
- if (originalShadowRootInit$LWS !== null && originalShadowRootInit$LWS !== undefined) {
6127
- // Snapshot shadowRootInit to avoid getter poisoning.
6128
- const clonedShadowRootInit$LWS = shallowCloneOptions$LWS(originalShadowRootInit$LWS);
6129
- if (clonedShadowRootInit$LWS.mode !== FORCED_MODE$LWS) {
6130
- const {
6131
- mode: mode$LWS
6132
- } = clonedShadowRootInit$LWS;
6133
- consoleWarn$LWS(`Lightning Web Security: changing shadow root's mode from '${mode$LWS}' to '${FORCED_MODE$LWS}'`);
6134
- }
6135
- // Override the user defined shadowRoot mode to ensure that it is always closed
6136
- clonedShadowRootInit$LWS.mode = FORCED_MODE$LWS;
6137
- // Set the prototype of shadowRootInit after assignment
6138
- // of mode to avoid complications with inherited
6139
- // non-configurable/non-writable mode properties.
6140
- const originalShadowRootInitProto$LWS = ReflectGetPrototypeOf$LWS$1(originalShadowRootInit$LWS);
6141
- ReflectSetPrototypeOf$LWS$1(clonedShadowRootInit$LWS, originalShadowRootInitProto$LWS);
6142
- // Replace shadowRootInit parameter.
6143
- args$LWS[0] = clonedShadowRootInit$LWS;
6144
- }
6145
- }
6146
- return ReflectApply$LWS$1(originalAttachShadow$LWS, this, args$LWS);
6147
- }];
6148
- return function distortionElementAttachShadow$LWS() {
6149
- return distortionEntry$LWS;
6151
+ return function distortionElementAttachShadow$LWS({
6152
+ key: key$LWS
6153
+ }) {
6154
+ return [originalAttachShadow$LWS, function attachShadow$LWS(...args$LWS) {
6155
+ const shadowRoot$LWS = ReflectApply$LWS$1(originalAttachShadow$LWS, this, args$LWS);
6156
+ registerShadowRootInSandbox$LWS(key$LWS, shadowRoot$LWS);
6157
+ return shadowRoot$LWS;
6158
+ }];
6150
6159
  };
6151
6160
  }
6152
6161
  const namedNodeMapToElementCache$LWS = toSafeWeakMap$LWS$1(new WeakMapCtor$LWS$1());
@@ -6781,18 +6790,22 @@ function initDistortionElementSetHTML$LWS({
6781
6790
  }];
6782
6791
  };
6783
6792
  }
6784
- function alwaysNull$LWS() {
6785
- return null;
6786
- }
6787
6793
  function initDistortionElementShadowRootGetter$LWS({
6788
6794
  globalObject: {
6789
6795
  Element: Element$LWS
6790
6796
  }
6791
6797
  }) {
6792
6798
  const originalShadowRootGetter$LWS = ObjectLookupOwnGetter$LWS$1(Element$LWS.prototype, 'shadowRoot');
6793
- const distortionEntry$LWS = [originalShadowRootGetter$LWS, alwaysNull$LWS];
6794
- return function distortionElementShadowRootGetter$LWS() {
6795
- return distortionEntry$LWS;
6799
+ return function distortionShadowRootGetter$LWS({
6800
+ key: key$LWS
6801
+ }) {
6802
+ return [originalShadowRootGetter$LWS, function shadowRoot$LWS() {
6803
+ const realShadowRoot$LWS = ReflectApply$LWS$1(originalShadowRootGetter$LWS, this, []);
6804
+ if (isShadowRootAccessibleInThisSandbox$LWS(key$LWS, realShadowRoot$LWS)) {
6805
+ return realShadowRoot$LWS;
6806
+ }
6807
+ return null;
6808
+ }];
6796
6809
  };
6797
6810
  }
6798
6811
  function initDistortionElementToggleAttribute$LWS({
@@ -6849,10 +6862,7 @@ function initDistortionEval$LWS({
6849
6862
  return [originalEval$LWS, sourceText$LWS => sandboxEvaluator$LWS(transformSourceText$LWS(toString$LWS(sourceText$LWS)), UNCOMPILED_CONTEXT$LWS)];
6850
6863
  };
6851
6864
  }
6852
- function composedPath$LWS() {
6853
- return createDistortedComposedPath$LWS(this);
6854
- }
6855
- function createDistortedComposedPath$LWS(event$LWS) {
6865
+ function createDistortedComposedPath$LWS(event$LWS, sandboxKey$LWS) {
6856
6866
  const currentTarget$LWS = ReflectApply$LWS$1(EventProtoCurrentTargetGetter$LWS, event$LWS, []);
6857
6867
  const {
6858
6868
  composedPath: originalComposedPath$LWS
@@ -6861,8 +6871,10 @@ function createDistortedComposedPath$LWS(event$LWS) {
6861
6871
  const currentTargetIndex$LWS = ReflectApply$LWS$1(ArrayProtoIndexOf$LWS$1, rawComposedPath$LWS, [currentTarget$LWS]);
6862
6872
  let distortedComposedPath$LWS = rawComposedPath$LWS;
6863
6873
  for (let i$LWS = currentTargetIndex$LWS; i$LWS > -1; i$LWS -= 1) {
6864
- const eventTarget$LWS = rawComposedPath$LWS[i$LWS];
6865
- if (eventTarget$LWS instanceof ShadowRoot) {
6874
+ const objectThatMightBeAShadowRoot$LWS = rawComposedPath$LWS[i$LWS];
6875
+ if (objectThatMightBeAShadowRoot$LWS instanceof ShadowRoot &&
6876
+ // Only interfere if this sandbox is not allowed to access this shadowRoot
6877
+ !isShadowRootAccessibleInThisSandbox$LWS(sandboxKey$LWS, objectThatMightBeAShadowRoot$LWS)) {
6866
6878
  // If we reach an instance of ShadowRoot, we don't want
6867
6879
  // to include it in the returned path list. This matches
6868
6880
  // the behavior of mode: closed.
@@ -6881,18 +6893,14 @@ function initDistortionEventComposedPath$LWS({
6881
6893
  }
6882
6894
  }
6883
6895
  }) {
6884
- const distortionEntry$LWS = [originalComposedPath$LWS, composedPath$LWS];
6885
- return function distortionEventComposedPath$LWS() {
6886
- return distortionEntry$LWS;
6896
+ return function distortionEventComposedPath$LWS({
6897
+ key: key$LWS
6898
+ }) {
6899
+ return [originalComposedPath$LWS, function composedPath$LWS() {
6900
+ return createDistortedComposedPath$LWS(this, key$LWS);
6901
+ }];
6887
6902
  };
6888
6903
  }
6889
-
6890
- // Chromium 109 removed Event.prototype.path
6891
- // https://chromestatus.com/feature/5726124632965120
6892
- // istanbul ignore next: currently unreachable via tests
6893
- function path$LWS() {
6894
- return createDistortedComposedPath$LWS(this);
6895
- }
6896
6904
  function initDistortionEventPathGetter$LWS({
6897
6905
  globalObject: {
6898
6906
  Event: Event$LWS
@@ -6904,10 +6912,16 @@ function initDistortionEventPathGetter$LWS({
6904
6912
  return noop$LWS$1;
6905
6913
  }
6906
6914
  // istanbul ignore next: currently unreachable via tests
6907
- const distortionEntry$LWS = [originalPathGetter$LWS, path$LWS];
6908
- // istanbul ignore next: currently unreachable via tests
6909
- return function distortionEventPathGetter$LWS() {
6910
- return distortionEntry$LWS;
6915
+ return function distortionEventPathGetter$LWS({
6916
+ key: key$LWS
6917
+ }) {
6918
+ return [originalPathGetter$LWS,
6919
+ // Chromium 109 removed Event.prototype.path
6920
+ // https://chromestatus.com/feature/5726124632965120
6921
+ // istanbul ignore next: currently unreachable via tests
6922
+ function path$LWS() {
6923
+ return createDistortedComposedPath$LWS(this, key$LWS);
6924
+ }];
6911
6925
  };
6912
6926
  }
6913
6927
  function initDistortionEventTargetAddEventListener$LWS({
@@ -7209,7 +7223,7 @@ function initDistortionIFrameElementContentWindowGetter$LWS({
7209
7223
  function src$LWS(value$LWS) {
7210
7224
  const urlString$LWS = sanitizeURLForElement$LWS(value$LWS);
7211
7225
  if (!isValidURLScheme$LWS(urlString$LWS)) {
7212
- throw new LockerSecurityError$LWS('HTMLIFrameElement.src supports http://, https:// schemes and relative urls.');
7226
+ throw new LockerSecurityError$LWS('HTMLIFrameElement.src supports http://, https:// schemes, relative urls and about:blank.');
7213
7227
  }
7214
7228
  ReflectApply$LWS$1(HTMLIFrameElementProtoSrcSetter$LWS, this, [urlString$LWS]);
7215
7229
  }
@@ -7278,7 +7292,7 @@ function initDistortionHTMLObjectElementDataSetter$LWS({
7278
7292
  function data$LWS(value$LWS) {
7279
7293
  const urlString$LWS = sanitizeURLForElement$LWS(value$LWS);
7280
7294
  if (!isValidURLScheme$LWS(urlString$LWS)) {
7281
- throw new LockerSecurityError$LWS('HTMLObjectElement.data supports http://, https:// schemes and relative urls.');
7295
+ throw new LockerSecurityError$LWS('HTMLObjectElement.data supports http://, https:// schemes, relative urls and about:blank.');
7282
7296
  }
7283
7297
  const parsedURL$LWS = parseURL$LWS(urlString$LWS);
7284
7298
  if (!isValidURL$LWS(parsedURL$LWS)) {
@@ -8414,20 +8428,6 @@ function initDistortionShadowRootInnerHTMLSetter$LWS({
8414
8428
  }];
8415
8429
  };
8416
8430
  }
8417
- function mode$LWS() {
8418
- return 'closed';
8419
- }
8420
- function initDistortionShadowRootModeGetter$LWS({
8421
- globalObject: {
8422
- ShadowRoot: ShadowRoot$LWS
8423
- }
8424
- }) {
8425
- const originalModeGetter$LWS = ObjectLookupOwnGetter$LWS$1(ShadowRoot$LWS.prototype, 'mode');
8426
- const distortionEntry$LWS = [originalModeGetter$LWS, mode$LWS];
8427
- return function distortionShadowRootModeGetter$LWS() {
8428
- return distortionEntry$LWS;
8429
- };
8430
- }
8431
8431
  function SharedWorker$LWS(scriptURL$LWS) {
8432
8432
  throw new LockerSecurityError$LWS(`Cannot create SharedWorker with ${toSafeTemplateStringValue$LWS(scriptURL$LWS)}.`);
8433
8433
  }
@@ -9761,7 +9761,7 @@ initDistortionCSSStyleRuleStyleGetter$LWS,
9761
9761
  // Document
9762
9762
  initDistortionDocumentDomainSetter$LWS, initDistortionDocumentOnsecuritypolicyviolation$LWS, initDistortionDocumentOpen$LWS,
9763
9763
  // Element
9764
- initDistortionElementAttachShadow$LWS, initDistortionElementAttributesGetter$LWS, initDistortionElementGetInnerHTML$LWS, initDistortionElementRemove$LWS, initDistortionElementReplaceChildren$LWS, initDistortionElementReplaceWith$LWS,
9764
+ initDistortionElementAttributesGetter$LWS, initDistortionElementGetInnerHTML$LWS, initDistortionElementRemove$LWS, initDistortionElementReplaceChildren$LWS, initDistortionElementReplaceWith$LWS,
9765
9765
  // Function
9766
9766
  initDistortionFunction$LWS,
9767
9767
  // History
@@ -9796,8 +9796,6 @@ initDistortionRangeDeleteContents$LWS, initDistortionRangeExtractContents$LWS, i
9796
9796
  initDistortionSelectionCollapse$LWS, initDistortionSelectionExtend$LWS, initDistortionSelectionSelectAllChildren$LWS, initDistortionSelectionSetBaseAndExtent$LWS, initDistortionSelectionSetPosition$LWS,
9797
9797
  // ServiceWorkerContainer
9798
9798
  initDistortionServiceWorkerContainerProto$LWS,
9799
- // ShadowRoot
9800
- initDistortionShadowRootModeGetter$LWS,
9801
9799
  // SharedWorker
9802
9800
  initDistortionSharedWorkerCtor$LWS, initDistortionSharedWorkerProto$LWS,
9803
9801
  // Storage
@@ -9834,7 +9832,7 @@ initDistortionDocumentCookieGetter$LWS, initDistortionDocumentCookieSetter$LWS,
9834
9832
  // DOMParser
9835
9833
  initDistortionDOMParserParseFromString$LWS,
9836
9834
  // Element
9837
- initDistortionElementInnerHTMLSetter$LWS, initDistortionElementInsertAdjacentHTML$LWS, initDistortionElementOuterHTMLSetter$LWS, initDistortionElementSetAttribute$LWS, initDistortionElementSetAttributeNode$LWS, initDistortionElementSetAttributeNodeNS$LWS, initDistortionElementSetAttributeNS$LWS, initDistortionElementSetHTML$LWS, initDistortionElementToggleAttribute$LWS,
9835
+ initDistortionElementAttachShadow$LWS, initDistortionElementInnerHTMLSetter$LWS, initDistortionElementInsertAdjacentHTML$LWS, initDistortionElementOuterHTMLSetter$LWS, initDistortionElementSetAttribute$LWS, initDistortionElementSetAttributeNode$LWS, initDistortionElementSetAttributeNodeNS$LWS, initDistortionElementSetAttributeNS$LWS, initDistortionElementSetHTML$LWS, initDistortionElementShadowRootGetter$LWS, initDistortionElementToggleAttribute$LWS,
9838
9836
  // Eval
9839
9837
  initDistortionEval$LWS,
9840
9838
  // Event
@@ -9873,14 +9871,14 @@ initDistortionWindowOnrejectionhandled$LWS, initDistortionWindowOnsecuritypolicy
9873
9871
  initDistortionXMLHttpRequestResponseGetter$LWS, initDistortionXMLHttpRequestResponseXMLGetter$LWS];
9874
9872
  const externalDistortionFactoryInitializers$LWS = ArrayConcat$LWS(internalDistortionFactoryInitializers$LWS, [
9875
9873
  // Element
9876
- initDistortionElementAfter$LWS, initDistortionElementAppend$LWS, initDistortionElementBefore$LWS, initDistortionElementInsertAdjacentElement$LWS, initDistortionElementPrepend$LWS, initDistortionElementShadowRootGetter$LWS,
9874
+ initDistortionElementAfter$LWS, initDistortionElementAppend$LWS, initDistortionElementBefore$LWS, initDistortionElementInsertAdjacentElement$LWS, initDistortionElementPrepend$LWS,
9877
9875
  // Node
9878
9876
  // The initDistortionNodeAppendChild distortion is temporarily disabled
9879
9877
  // until W-10409618 is resolved..
9880
9878
  // initDistortionNodeAppendChild,
9881
9879
  initDistortionNodeInsertBefore$LWS]);
9882
9880
  const externalKeyedDistortionFactoryInitializers$LWS = internalKeyedDistortionFactoryInitializers$LWS;
9883
- toSafeMap$LWS$1(new MapCtor$LWS$1([[initDistortionCacheStorageDelete$LWS, 'caches'], [initDistortionCacheStorageHas$LWS, 'caches'], [initDistortionCacheStorageKeys$LWS, 'caches'], [initDistortionCacheStorageMatch$LWS, 'caches'], [initDistortionCacheStorageOpen$LWS, 'caches'], [initDistortionCookieStoreDelete$LWS, 'cookieStore'], [initDistortionCookieStoreGet$LWS, 'cookieStore'], [initDistortionCookieStoreGetAll$LWS, 'cookieStore'], [initDistortionCookieStoreOnChange$LWS, 'cookieStore'], [initDistortionCookieStoreSet$LWS, 'cookieStore'], [initDistortionCSSStyleRuleStyleGetter$LWS, 'style'], [initDistortionCustomElementRegistryDefine$LWS, 'customElements'], [initDistortionCustomElementRegistryGet$LWS, 'customElements'], [initDistortionCustomElementRegistryUpgrade$LWS, 'customElements'], [initDistortionCustomElementRegistryWhenDefined$LWS, 'customElements'], [initDistortionDocumentCookieGetter$LWS, 'documentCookie'], [initDistortionDocumentCookieSetter$LWS, 'documentCookie'], [initDistortionDocumentDomainSetter$LWS, 'documentDomain'], [initDistortionDocumentExecCommand$LWS, 'documentExecCommand'], [initDistortionElementAfter$LWS, 'element'], [initDistortionElementAppend$LWS, 'element'], [initDistortionElementAttributesGetter$LWS, 'attributes'], [initDistortionElementBefore$LWS, 'element'], [initDistortionElementGetInnerHTML$LWS, 'innerHTML'], [initDistortionElementInnerHTMLSetter$LWS, 'innerHTML'], [initDistortionElementInsertAdjacentElement$LWS, 'element'], [initDistortionElementInsertAdjacentHTML$LWS, 'element'], [initDistortionElementOuterHTMLSetter$LWS, 'element'], [initDistortionElementPrepend$LWS, 'element'], [initDistortionElementRemove$LWS, 'element'], [initDistortionElementReplaceChildren$LWS, 'element'], [initDistortionElementReplaceWith$LWS, 'element'], [initDistortionElementSetAttribute$LWS, 'attributes'], [initDistortionElementSetAttributeNode$LWS, 'attributes'], [initDistortionElementSetAttributeNodeNS$LWS, 'attributes'], [initDistortionElementSetAttributeNS$LWS, 'attributes'], [initDistortionElementSetHTML$LWS, 'element'], [initDistortionElementToggleAttribute$LWS, 'attributes'], [initDistortionIDBObjectStoreAdd$LWS, 'indexedDB'], [initDistortionIDBObjectStorePut$LWS, 'indexedDB'], [initDistortionLocalStorage$LWS, 'storage'], [initDistortionMessagePortPostMessage$LWS, 'postMessage'], [initDistortionNamedNodeMapSetNamedItem$LWS, 'attributes'], [initDistortionNamedNodeMapSetNamedItemNS$LWS, 'attributes'], [initDistortionNavigatorSendBeacon$LWS, 'navigatorSendBeacon'], [initDistortionNodeInsertBefore$LWS, 'node'], [initDistortionNodeRemoveChild$LWS, 'node'], [initDistortionNodeReplaceChild$LWS, 'node'], [initDistortionNodeTextContentGetter$LWS, 'node'], [initDistortionNodeTextContentSetter$LWS, 'node'], [initDistortionNodeValueSetter$LWS, 'node'], [initDistortionPerformanceMark$LWS, 'performance'], [initDistortionPerformanceMarkCtor$LWS, 'performance'], [initDistortionPerformanceMeasure$LWS, 'performance'], [initDistortionRangeCreateContextualFragment$LWS, 'range'], [initDistortionRangeDeleteContents$LWS, 'range'], [initDistortionRangeExtractContents$LWS, 'range'], [initDistortionRangeInsertNode$LWS, 'range'], [initDistortionRangeSelectNode$LWS, 'range'], [initDistortionRangeSelectNodeContents$LWS, 'range'], [initDistortionRangeSetEnd$LWS, 'range'], [initDistortionRangeSetEndAfter$LWS, 'range'], [initDistortionRangeSetEndBefore$LWS, 'range'], [initDistortionRangeSetStart$LWS, 'range'], [initDistortionRangeSetStartAfter$LWS, 'range'], [initDistortionRangeSetStartBefore$LWS, 'range'], [initDistortionRangeSurroundContents$LWS, 'range'], [initDistortionSelectionCollapse$LWS, 'selection'], [initDistortionSelectionExtend$LWS, 'selection'], [initDistortionSelectionSelectAllChildren$LWS, 'selection'], [initDistortionSelectionSetBaseAndExtent$LWS, 'selection'], [initDistortionSelectionSetPosition$LWS, 'selection'], [initDistortionSessionStorage$LWS, 'storage'], [initDistortionShadowRootInnerHTMLSetter$LWS, 'innerHTML'], [initDistortionStorage$LWS, 'storage'], [initDistortionStorageClear$LWS, 'storage'], [initDistortionStorageGetItem$LWS, 'storage'], [initDistortionStorageKey$LWS, 'storage'], [initDistortionStorageLength$LWS, 'storage'], [initDistortionStorageRemoveItem$LWS, 'storage'], [initDistortionStorageSetItem$LWS, 'storage'], [initDistortionWindowPostMessage$LWS, 'postMessage'], [initDistortionWindowSetInterval$LWS, 'setInterval'], [initDistortionWindowSetTimeout$LWS, 'setTimeout']]));
9881
+ toSafeMap$LWS$1(new MapCtor$LWS$1([[initDistortionCacheStorageDelete$LWS, 'caches'], [initDistortionCacheStorageHas$LWS, 'caches'], [initDistortionCacheStorageKeys$LWS, 'caches'], [initDistortionCacheStorageMatch$LWS, 'caches'], [initDistortionCacheStorageOpen$LWS, 'caches'], [initDistortionCookieStoreDelete$LWS, 'cookieStore'], [initDistortionCookieStoreGet$LWS, 'cookieStore'], [initDistortionCookieStoreGetAll$LWS, 'cookieStore'], [initDistortionCookieStoreOnChange$LWS, 'cookieStore'], [initDistortionCookieStoreSet$LWS, 'cookieStore'], [initDistortionCSSStyleRuleStyleGetter$LWS, 'style'], [initDistortionCustomElementRegistryDefine$LWS, 'customElements'], [initDistortionCustomElementRegistryGet$LWS, 'customElements'], [initDistortionCustomElementRegistryUpgrade$LWS, 'customElements'], [initDistortionCustomElementRegistryWhenDefined$LWS, 'customElements'], [initDistortionDocumentCookieGetter$LWS, 'documentCookie'], [initDistortionDocumentCookieSetter$LWS, 'documentCookie'], [initDistortionDocumentDomainSetter$LWS, 'documentDomain'], [initDistortionDocumentExecCommand$LWS, 'documentExecCommand'], [initDistortionDOMParserParseFromString$LWS, 'domParserParseFromString'], [initDistortionElementAfter$LWS, 'element'], [initDistortionElementAppend$LWS, 'element'], [initDistortionElementAttributesGetter$LWS, 'attributes'], [initDistortionElementBefore$LWS, 'element'], [initDistortionElementGetInnerHTML$LWS, 'innerHTML'], [initDistortionElementInnerHTMLSetter$LWS, 'innerHTML'], [initDistortionElementInsertAdjacentElement$LWS, 'element'], [initDistortionElementInsertAdjacentHTML$LWS, 'element'], [initDistortionElementOuterHTMLSetter$LWS, 'element'], [initDistortionElementPrepend$LWS, 'element'], [initDistortionElementRemove$LWS, 'element'], [initDistortionElementReplaceChildren$LWS, 'element'], [initDistortionElementReplaceWith$LWS, 'element'], [initDistortionElementSetAttribute$LWS, 'attributes'], [initDistortionElementSetAttributeNode$LWS, 'attributes'], [initDistortionElementSetAttributeNodeNS$LWS, 'attributes'], [initDistortionElementSetAttributeNS$LWS, 'attributes'], [initDistortionElementSetHTML$LWS, 'element'], [initDistortionElementToggleAttribute$LWS, 'attributes'], [initDistortionHistoryPushState$LWS, 'history'], [initDistortionHistoryReplaceState$LWS, 'history'], [initDistortionHTMLElementDatasetGetter$LWS, 'dataset'], [initDistortionHTMLElementStyleGetter$LWS, 'style'], [initDistortionIDBObjectStoreAdd$LWS, 'indexedDB'], [initDistortionIDBObjectStorePut$LWS, 'indexedDB'], [initDistortionLocalStorage$LWS, 'storage'], [initDistortionMessagePortPostMessage$LWS, 'postMessage'], [initDistortionNamedNodeMapSetNamedItem$LWS, 'attributes'], [initDistortionNamedNodeMapSetNamedItemNS$LWS, 'attributes'], [initDistortionNavigatorSendBeacon$LWS, 'navigatorSendBeacon'], [initDistortionNodeInsertBefore$LWS, 'node'], [initDistortionNodeRemoveChild$LWS, 'node'], [initDistortionNodeReplaceChild$LWS, 'node'], [initDistortionNodeTextContentGetter$LWS, 'node'], [initDistortionNodeTextContentSetter$LWS, 'node'], [initDistortionNodeValueSetter$LWS, 'node'], [initDistortionNotificationCtor$LWS, 'notification'], [initDistortionPerformanceMark$LWS, 'performance'], [initDistortionPerformanceMarkCtor$LWS, 'performance'], [initDistortionPerformanceMeasure$LWS, 'performance'], [initDistortionRangeCreateContextualFragment$LWS, 'range'], [initDistortionRangeDeleteContents$LWS, 'range'], [initDistortionRangeExtractContents$LWS, 'range'], [initDistortionRangeInsertNode$LWS, 'range'], [initDistortionRangeSelectNode$LWS, 'range'], [initDistortionRangeSelectNodeContents$LWS, 'range'], [initDistortionRangeSetEnd$LWS, 'range'], [initDistortionRangeSetEndAfter$LWS, 'range'], [initDistortionRangeSetEndBefore$LWS, 'range'], [initDistortionRangeSetStart$LWS, 'range'], [initDistortionRangeSetStartAfter$LWS, 'range'], [initDistortionRangeSetStartBefore$LWS, 'range'], [initDistortionRangeSurroundContents$LWS, 'range'], [initDistortionSelectionCollapse$LWS, 'selection'], [initDistortionSelectionExtend$LWS, 'selection'], [initDistortionSelectionSelectAllChildren$LWS, 'selection'], [initDistortionSelectionSetBaseAndExtent$LWS, 'selection'], [initDistortionSelectionSetPosition$LWS, 'selection'], [initDistortionSessionStorage$LWS, 'storage'], [initDistortionShadowRootInnerHTMLSetter$LWS, 'innerHTML'], [initDistortionStorage$LWS, 'storage'], [initDistortionStorageClear$LWS, 'storage'], [initDistortionStorageGetItem$LWS, 'storage'], [initDistortionStorageKey$LWS, 'storage'], [initDistortionStorageLength$LWS, 'storage'], [initDistortionStorageRemoveItem$LWS, 'storage'], [initDistortionStorageSetItem$LWS, 'storage'], [initDistortionWindowFetch$LWS, 'windowFetch'], [initDistortionWindowFramesGetter$LWS, 'windowFrames'], [initDistortionWindowGetComputedStyle$LWS, 'style'], [initDistortionWindowLengthGetter$LWS, 'windowFrames'], [initDistortionWindowPostMessage$LWS, 'postMessage'], [initDistortionWindowSetInterval$LWS, 'setInterval'], [initDistortionWindowSetTimeout$LWS, 'setTimeout']]));
9884
9882
  const DocumentBlockedProperties$LWS = ['createProcessingInstruction', 'exitFullscreen', 'fullscreen', 'fullscreenElement', 'fullscreenEnabled', 'mozCancelFullScreen', 'mozFullScreen', 'mozFullScreenElement', 'mozFullScreenEnabled', 'onfullscreenchange', 'onfullscreenerror', 'onmozfullscreenchange', 'onmozfullscreenerror', 'onrejectionhandled', 'onunhandledrejection', 'releaseCapture', 'releaseEvents', 'webkitFullScreenKeyboardInputAllowed', 'write', 'writeln'];
9885
9883
  const ElementBlockedProperties$LWS = ['mozRequestFullScreen', 'onfullscreenchange', 'onfullscreenerror', 'requestFullscreen', 'webkitRequestFullScreen', 'webkitRequestFullscreen'];
9886
9884
  const EventBlockedProperties$LWS = ['originalTarget', 'explicitOriginalTarget'];
@@ -9897,9 +9895,9 @@ const HTMLScriptElementBlockedProperties$LWS = ['nonce'];
9897
9895
  const SVGElementBlockedAttributes$LWS = ['nonce'];
9898
9896
  const SVGElementBlockedProperties$LWS = ['nonce'];
9899
9897
  const UIEventBlockedProperties$LWS = ['rangeParent'];
9900
- const WindowBlockedProperties$LWS = ['find'];
9898
+ const WindowBlockedProperties$LWS = ['find', 'requestFileSystem', 'webkitRequestFileSystem'];
9901
9899
  const XSLTProcessorBlockedProperties$LWS = ['transformToDocument', 'transformToFragment'];
9902
- /*! version: 0.21.3 */
9900
+ /*! version: 0.21.4 */
9903
9901
 
9904
9902
  /*!
9905
9903
  * Copyright (C) 2019 salesforce.com, inc.
@@ -14596,6 +14594,10 @@ function filterWindowKeys$LWS(keys$LWS, remapTypedArrays$LWS) {
14596
14594
  excludedKeys$LWS.add('crypto');
14597
14595
  excludedKeys$LWS.add('Crypto');
14598
14596
  excludedKeys$LWS.add('SubtleCrypto');
14597
+ excludedKeys$LWS.add('Blob');
14598
+ excludedKeys$LWS.add('File');
14599
+ excludedKeys$LWS.add('FileReader');
14600
+ excludedKeys$LWS.add('URL');
14599
14601
  }
14600
14602
  const result$LWS = [];
14601
14603
  let resultOffset$LWS = 0;
@@ -14650,6 +14652,10 @@ function removeWindowDescriptors$LWS(unsafeDescs$LWS, remapTypedArrays$LWS) {
14650
14652
  ReflectDeleteProperty$LWS(unsafeDescs$LWS, 'crypto');
14651
14653
  ReflectDeleteProperty$LWS(unsafeDescs$LWS, 'Crypto');
14652
14654
  ReflectDeleteProperty$LWS(unsafeDescs$LWS, 'SubtleCrypto');
14655
+ ReflectDeleteProperty$LWS(unsafeDescs$LWS, 'Blob');
14656
+ ReflectDeleteProperty$LWS(unsafeDescs$LWS, 'File');
14657
+ ReflectDeleteProperty$LWS(unsafeDescs$LWS, 'FileReader');
14658
+ ReflectDeleteProperty$LWS(unsafeDescs$LWS, 'URL');
14653
14659
  }
14654
14660
  return unsafeDescs$LWS;
14655
14661
  }
@@ -15110,7 +15116,7 @@ function toSourceText$LWS(value$LWS, sourceType$LWS) {
15110
15116
  // tools from mistaking the regexp or the replacement string for an
15111
15117
  // actual source mapping URL.
15112
15118
  /\/\/# sandbox(?=MappingURL=.*?\s*$)/, '//# source']);
15113
- sourceText$LWS = `\n//# LWS Version = "0.21.3"\n${sourceText$LWS}`;
15119
+ sourceText$LWS = `\n//# LWS Version = "0.21.4"\n${sourceText$LWS}`;
15114
15120
  return sourceType$LWS === 1 /* SourceType.Module */ && indexOfPragma$LWS(sourceText$LWS, 'use strict') === -1 ?
15115
15121
  // Append "'use strict'" to the extracted function body so it is
15116
15122
  // evaluated in strict mode.
@@ -15771,7 +15777,7 @@ function wrapPlatformResourceLoader$LWS(dep$LWS, key$LWS) {
15771
15777
  depRegistry$LWS.set(dep$LWS, secureDep$LWS);
15772
15778
  return secureDep$LWS;
15773
15779
  }
15774
- /*! version: 0.21.3 */
15780
+ /*! version: 0.21.4 */
15775
15781
 
15776
15782
  const loaderDefine = globalThis.LWR.define;
15777
15783