@everymatrix/helper-filters 1.53.0 → 1.53.11

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.
@@ -1,17 +1,21 @@
1
1
  const NAMESPACE = 'helper-filters';
2
- const BUILD = /* helper-filters */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
2
+ const BUILD = /* helper-filters */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.25.1 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
9
9
  for (var name in all)
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
+
13
+ // src/client/client-host-ref.ts
12
14
  var hostRefs = /* @__PURE__ */ new WeakMap();
13
15
  var getHostRef = (ref) => hostRefs.get(ref);
14
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
16
+ var registerInstance = (lazyInstance, hostRef) => {
17
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
+ };
15
19
  var registerHost = (hostElement, cmpMeta) => {
16
20
  const hostRef = {
17
21
  $flags$: 0,
@@ -24,7 +28,8 @@ var registerHost = (hostElement, cmpMeta) => {
24
28
  hostElement["s-p"] = [];
25
29
  hostElement["s-rc"] = [];
26
30
  }
27
- return hostRefs.set(hostElement, hostRef);
31
+ const ref = hostRefs.set(hostElement, hostRef);
32
+ return ref;
28
33
  };
29
34
  var isMemberInElement = (elm, memberName) => memberName in elm;
30
35
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -61,16 +66,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
61
66
  /* webpackExclude: /\.system\.entry\.js$/ */
62
67
  /* webpackMode: "lazy" */
63
68
  `./${bundleId}.entry.js${""}`
64
- ).then((importedModule) => {
65
- {
66
- cmpModules.set(bundleId, importedModule);
69
+ ).then(
70
+ (importedModule) => {
71
+ {
72
+ cmpModules.set(bundleId, importedModule);
73
+ }
74
+ return importedModule[exportName];
75
+ },
76
+ (e) => {
77
+ consoleError(e, hostRef.$hostElement$);
67
78
  }
68
- return importedModule[exportName];
69
- }, consoleError);
79
+ );
70
80
  };
71
81
 
72
82
  // src/client/client-style.ts
73
83
  var styles = /* @__PURE__ */ new Map();
84
+ var HYDRATED_STYLE_ID = "sty-id";
74
85
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
75
86
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
76
87
  var win = typeof window !== "undefined" ? window : {};
@@ -144,12 +155,6 @@ var flush = () => {
144
155
  };
145
156
  var nextTick = (cb) => promiseResolve().then(cb);
146
157
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
147
-
148
- // src/utils/constants.ts
149
- var EMPTY_OBJ = {};
150
-
151
- // src/utils/helpers.ts
152
- var isDef = (v) => v != null;
153
158
  var isComplexType = (o) => {
154
159
  o = typeof o;
155
160
  return o === "object" || o === "function";
@@ -350,7 +355,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
350
355
  }
351
356
  if (!appliedStyles.has(scopeId2)) {
352
357
  {
353
- styleElm = doc.createElement("style");
358
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
354
359
  styleElm.innerHTML = style;
355
360
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
356
361
  if (nonce != null) {
@@ -360,7 +365,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
360
365
  if (styleContainerNode.nodeName === "HEAD") {
361
366
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
362
367
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
363
- styleContainerNode.insertBefore(styleElm, referenceNode2);
368
+ styleContainerNode.insertBefore(
369
+ styleElm,
370
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
371
+ );
364
372
  } else if ("host" in styleContainerNode) {
365
373
  if (supportsConstructableStylesheets) {
366
374
  const stylesheet = new CSSStyleSheet();
@@ -410,16 +418,18 @@ var attachStyles = (hostRef) => {
410
418
  endAttachStyles();
411
419
  };
412
420
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
413
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
421
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
414
422
  if (oldValue !== newValue) {
415
423
  let isProp = isMemberInElement(elm, memberName);
416
424
  let ln = memberName.toLowerCase();
417
425
  if (memberName === "class") {
418
426
  const classList = elm.classList;
419
427
  const oldClasses = parseClassList(oldValue);
420
- const newClasses = parseClassList(newValue);
421
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
422
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
428
+ let newClasses = parseClassList(newValue);
429
+ {
430
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
431
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
432
+ }
423
433
  } else if (memberName === "key") ; else if (memberName === "ref") {
424
434
  if (newValue) {
425
435
  newValue(elm);
@@ -457,7 +467,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
457
467
  elm.setAttribute(memberName, n);
458
468
  }
459
469
  }
460
- } else {
470
+ } else if (elm[memberName] !== newValue) {
461
471
  elm[memberName] = newValue;
462
472
  }
463
473
  } catch (e) {
@@ -479,24 +489,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
479
489
  }
480
490
  };
481
491
  var parseClassListRegex = /\s/;
482
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
492
+ var parseClassList = (value) => {
493
+ if (typeof value === "object" && value && "baseVal" in value) {
494
+ value = value.baseVal;
495
+ }
496
+ if (!value || typeof value !== "string") {
497
+ return [];
498
+ }
499
+ return value.split(parseClassListRegex);
500
+ };
483
501
  var CAPTURE_EVENT_SUFFIX = "Capture";
484
502
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
485
503
 
486
504
  // src/runtime/vdom/update-element.ts
487
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
505
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
488
506
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
489
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
490
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
507
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
508
+ const newVnodeAttrs = newVnode.$attrs$ || {};
491
509
  {
492
510
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
493
511
  if (!(memberName in newVnodeAttrs)) {
494
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
512
+ setAccessor(
513
+ elm,
514
+ memberName,
515
+ oldVnodeAttrs[memberName],
516
+ void 0,
517
+ isSvgMode2,
518
+ newVnode.$flags$);
495
519
  }
496
520
  }
497
521
  }
498
522
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
499
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
523
+ setAccessor(
524
+ elm,
525
+ memberName,
526
+ oldVnodeAttrs[memberName],
527
+ newVnodeAttrs[memberName],
528
+ isSvgMode2,
529
+ newVnode.$flags$);
500
530
  }
501
531
  };
502
532
  function sortedAttrNames(attrNames) {
@@ -508,13 +538,10 @@ function sortedAttrNames(attrNames) {
508
538
  attrNames
509
539
  );
510
540
  }
511
-
512
- // src/runtime/vdom/vdom-render.ts
513
- var scopeId;
514
541
  var hostTagName;
515
542
  var useNativeShadowDom = false;
516
543
  var isSvgMode = false;
517
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
544
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
518
545
  const newVNode2 = newParentVNode.$children$[childIndex];
519
546
  let i2 = 0;
520
547
  let elm;
@@ -528,11 +555,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
528
555
  {
529
556
  updateElement(null, newVNode2, isSvgMode);
530
557
  }
531
- const rootNode = elm.getRootNode();
532
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
533
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
534
- elm.classList.add(elm["s-si"] = scopeId);
535
- }
536
558
  if (newVNode2.$children$) {
537
559
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
538
560
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -662,6 +684,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
662
684
  if (!isInitialRender) {
663
685
  return leftVNode.$key$ === rightVNode.$key$;
664
686
  }
687
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
688
+ leftVNode.$key$ = rightVNode.$key$;
689
+ }
665
690
  return true;
666
691
  }
667
692
  return false;
@@ -702,8 +727,9 @@ var nullifyVNodeRefs = (vNode) => {
702
727
  }
703
728
  };
704
729
  var insertBefore = (parent, newNode, reference) => {
705
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
706
- return inserted;
730
+ {
731
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
732
+ }
707
733
  };
708
734
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
709
735
  const hostElm = hostRef.$hostElement$;
@@ -728,9 +754,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
728
754
  rootVnode.$flags$ |= 4 /* isHost */;
729
755
  hostRef.$vnode$ = rootVnode;
730
756
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
731
- {
732
- scopeId = hostElm["s-sc"];
733
- }
734
757
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
735
758
  patch(oldVNode, rootVnode, isInitialLoad);
736
759
  };
@@ -738,7 +761,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
738
761
  // src/runtime/update-component.ts
739
762
  var attachToAncestor = (hostRef, ancestorComponent) => {
740
763
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
741
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
764
+ const index = ancestorComponent["s-p"].push(
765
+ new Promise(
766
+ (r) => hostRef.$onRenderResolve$ = () => {
767
+ ancestorComponent["s-p"].splice(index - 1, 1);
768
+ r();
769
+ }
770
+ )
771
+ );
742
772
  }
743
773
  };
744
774
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -767,7 +797,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
767
797
  {
768
798
  hostRef.$flags$ |= 256 /* isListenReady */;
769
799
  if (hostRef.$queuedListeners$) {
770
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
800
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
771
801
  hostRef.$queuedListeners$ = void 0;
772
802
  }
773
803
  }
@@ -838,7 +868,7 @@ var postUpdateComponent = (hostRef) => {
838
868
  const instance = hostRef.$lazyInstance$ ;
839
869
  const ancestorComponent = hostRef.$ancestorComponent$;
840
870
  {
841
- safeCall(instance, "componentDidRender");
871
+ safeCall(instance, "componentDidRender", void 0, elm);
842
872
  }
843
873
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
844
874
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -872,12 +902,12 @@ var appDidLoad = (who) => {
872
902
  }
873
903
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
874
904
  };
875
- var safeCall = (instance, method, arg) => {
905
+ var safeCall = (instance, method, arg, elm) => {
876
906
  if (instance && instance[method]) {
877
907
  try {
878
908
  return instance[method](arg);
879
909
  } catch (e) {
880
- consoleError(e);
910
+ consoleError(e, elm);
881
911
  }
882
912
  }
883
913
  return void 0;
@@ -920,15 +950,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
920
950
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
921
951
  members.map(([memberName, [memberFlags]]) => {
922
952
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
953
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
954
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
955
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
956
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
957
+ Object.defineProperty(prototype, memberName, {
958
+ get() {
959
+ {
960
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
961
+ return getValue(this, memberName);
962
+ }
963
+ const ref = getHostRef(this);
964
+ const instance = ref ? ref.$lazyInstance$ : prototype;
965
+ if (!instance) return;
966
+ return instance[memberName];
967
+ }
968
+ },
969
+ configurable: true,
970
+ enumerable: true
971
+ });
972
+ }
923
973
  Object.defineProperty(prototype, memberName, {
924
- get() {
925
- return getValue(this, memberName);
926
- },
927
974
  set(newValue) {
928
- setValue(this, memberName, newValue, cmpMeta);
929
- },
930
- configurable: true,
931
- enumerable: true
975
+ const ref = getHostRef(this);
976
+ if (origSetter) {
977
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
978
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
979
+ newValue = ref.$instanceValues$.get(memberName);
980
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
981
+ ref.$instanceValues$.set(memberName, currentValue);
982
+ }
983
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
984
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
985
+ setValue(this, memberName, newValue, cmpMeta);
986
+ return;
987
+ }
988
+ {
989
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
990
+ setValue(this, memberName, newValue, cmpMeta);
991
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
992
+ ref.$onReadyPromise$.then(() => {
993
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
994
+ ref.$lazyInstance$[memberName] = newValue;
995
+ }
996
+ });
997
+ }
998
+ return;
999
+ }
1000
+ const setterSetVal = () => {
1001
+ const currentValue = ref.$lazyInstance$[memberName];
1002
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1003
+ ref.$instanceValues$.set(memberName, currentValue);
1004
+ }
1005
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1006
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1007
+ };
1008
+ if (ref.$lazyInstance$) {
1009
+ setterSetVal();
1010
+ } else {
1011
+ ref.$onReadyPromise$.then(() => setterSetVal());
1012
+ }
1013
+ }
1014
+ }
932
1015
  });
933
1016
  }
934
1017
  });
@@ -938,7 +1021,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
938
1021
  plt.jmp(() => {
939
1022
  var _a2;
940
1023
  const propName = attrNameToPropName.get(attrName);
941
- if (this.hasOwnProperty(propName)) {
1024
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
942
1025
  newValue = this[propName];
943
1026
  delete this[propName];
944
1027
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -958,7 +1041,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
958
1041
  }
959
1042
  return;
960
1043
  }
961
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1044
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1045
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1046
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1047
+ this[propName] = newValue;
1048
+ }
962
1049
  });
963
1050
  };
964
1051
  Cstr.observedAttributes = Array.from(
@@ -985,9 +1072,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
985
1072
  let Cstr;
986
1073
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
987
1074
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
988
- const bundleId = cmpMeta.$lazyBundleId$;
989
- if (bundleId) {
990
- const CstrImport = loadModule(cmpMeta);
1075
+ {
1076
+ const CstrImport = loadModule(cmpMeta, hostRef);
991
1077
  if (CstrImport && "then" in CstrImport) {
992
1078
  const endLoad = uniqueTime();
993
1079
  Cstr = await CstrImport;
@@ -1009,16 +1095,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1009
1095
  try {
1010
1096
  new Cstr(hostRef);
1011
1097
  } catch (e) {
1012
- consoleError(e);
1098
+ consoleError(e, elm);
1013
1099
  }
1014
1100
  {
1015
1101
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1016
1102
  }
1017
1103
  endNewInstance();
1018
- } else {
1019
- Cstr = elm.constructor;
1020
- const cmpTag = elm.localName;
1021
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1022
1104
  }
1023
1105
  if (Cstr && Cstr.style) {
1024
1106
  let style;
@@ -1041,7 +1123,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1041
1123
  schedule();
1042
1124
  }
1043
1125
  };
1044
- var fireConnectedCallback = (instance) => {
1126
+ var fireConnectedCallback = (instance, elm) => {
1045
1127
  };
1046
1128
 
1047
1129
  // src/runtime/connected-callback.ts
@@ -1082,7 +1164,7 @@ var connectedCallback = (elm) => {
1082
1164
  endConnected();
1083
1165
  }
1084
1166
  };
1085
- var disconnectInstance = (instance) => {
1167
+ var disconnectInstance = (instance, elm) => {
1086
1168
  };
1087
1169
  var disconnectedCallback = async (elm) => {
1088
1170
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1097,6 +1179,12 @@ var disconnectedCallback = async (elm) => {
1097
1179
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1098
1180
  }
1099
1181
  }
1182
+ if (rootAppliedStyles.has(elm)) {
1183
+ rootAppliedStyles.delete(elm);
1184
+ }
1185
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1186
+ rootAppliedStyles.delete(elm.shadowRoot);
1187
+ }
1100
1188
  };
1101
1189
 
1102
1190
  // src/runtime/bootstrap-lazy.ts
@@ -1177,6 +1265,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1177
1265
  }
1178
1266
  disconnectedCallback() {
1179
1267
  plt.jmp(() => disconnectedCallback(this));
1268
+ plt.raf(() => {
1269
+ var _a3;
1270
+ const hostRef = getHostRef(this);
1271
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1272
+ delete hostRef.$vnode$.$elm$;
1273
+ }
1274
+ });
1180
1275
  }
1181
1276
  componentOnReady() {
1182
1277
  return getHostRef(this).$onReadyPromise$;
@@ -1240,7 +1335,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1240
1335
  }
1241
1336
  }
1242
1337
  } catch (e) {
1243
- consoleError(e);
1338
+ consoleError(e, hostRef.$hostElement$);
1244
1339
  }
1245
1340
  };
1246
1341
  var hostListenerOpts = (flags) => supportsListenerOptions ? {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-65288f86.js';
2
- export { s as setNonce } from './index-65288f86.js';
1
+ import { b as bootstrapLazy } from './index-82b8e4db.js';
2
+ export { s as setNonce } from './index-82b8e4db.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1 +1 @@
1
- import{p as t,b as e}from"./p-da436b95.js";export{s as setNonce}from"./p-da436b95.js";import{g as i}from"./p-e1255160.js";(()=>{const e=import.meta.url,i={};return""!==e&&(i.resourcesUrl=new URL(".",e).href),t(i)})().then((async t=>(await i(),e([["p-4d385172",[[1,"helper-filters",{showFilterId:[516,"show-filter-id"],activateTicketSearch:[516,"activate-ticket-search"],gameId:[513,"game-id"],playerId:[513,"player-id"],session:[513],postMessage:[516,"post-message"],language:[513],quickFiltersActive:[516,"quick-filters-active"],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],showFilterModal:[32],showClearButton:[32],filterData:[32],filterDataReset:[32],limitStylingAppends:[32]},[[0,"modalCloseEvent","modalCloseEvent"]]],[1,"helper-modal",{titleModal:[513,"title-modal"],visible:[1540],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],limitStylingAppends:[32]}]]]],t))));
1
+ import{p as t,b as e}from"./p-612c2432.js";export{s as setNonce}from"./p-612c2432.js";import{g as i}from"./p-e1255160.js";(()=>{const e=import.meta.url,i={};return""!==e&&(i.resourcesUrl=new URL(".",e).href),t(i)})().then((async t=>(await i(),e([["p-bd719fbb",[[1,"helper-filters",{showFilterId:[516,"show-filter-id"],activateTicketSearch:[516,"activate-ticket-search"],gameId:[513,"game-id"],playerId:[513,"player-id"],session:[513],postMessage:[516,"post-message"],language:[513],quickFiltersActive:[516,"quick-filters-active"],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],showFilterModal:[32],showClearButton:[32],filterData:[32],filterDataReset:[32],limitStylingAppends:[32]},[[0,"modalCloseEvent","modalCloseEvent"]]],[1,"helper-modal",{titleModal:[513,"title-modal"],visible:[1540],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],limitStylingAppends:[32]}]]]],t))));
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>{t.set(n.t=e,n)},o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],y=[],v=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&f.l?w($):f.raf($))},b=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},$=()=>{b(m),b(y),(p=m.length>0)&&f.raf($)},w=e=>h().then(e),S=v(y,!0),g=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>k,map:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>x});var O=e=>({isOk:!0,isErr:!1,value:e}),k=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return k(e.value);throw"should never get here"}var C,M=e=>{if(e.isOk)return e.value;throw e.value},x=e=>{if(e.isErr)return e.value;throw e.value},P=(e,t,...n)=>{let l=null,o=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!g(l))&&(l+=""),s&&i?r[r.length-1].i+=l:r.push(s?A(null,l):l),i=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=A(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=o,u},A=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),R={},D=(e,t)=>null==e||g(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e,H=(e,t,l)=>{const o=(e=>n(e).$hostElement$)(e);return{emit:e=>N(o,t,{bubbles:!!(4&l),composed:!!(2&l),cancelable:!!(1&l),detail:e})}},N=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},T=new WeakMap,U=e=>"sc-"+e.$,F=(e,t,n,l,s,i)=>{if(n!==l){let r=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=V(n);let s=V(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const o=g(l);if((r||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]!==l&&(e[t]=l);else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(W);t=t.replace(q,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},L=/\s/,V=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(L):[]),W="Capture",q=RegExp(W+"$"),G=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||{},s=t.u||{};for(const e of _(Object.keys(o)))e in s||F(l,e,o[e],void 0,n,t.l);for(const e of _(Object.keys(s)))F(l,e,o[e],s[e],n,t.l)};function _(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var z=!1,B=!1,I=(e,t,n)=>{const l=t.h[n];let o,s,i=0;if(null!==l.i)o=l.v=a.createTextNode(l.i);else if(o=l.v=a.createElement(l.m),G(null,l,B),l.h)for(i=0;i<l.h.length;++i)s=I(e,l,i),s&&o.appendChild(s);return o["s-hn"]=C,o},J=(e,t,n,l,o,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);o<=s;++o)l[o]&&(i=I(null,n,o),i&&(l[o].v=i,Z(r,i,t)))},K=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;Y(t),e&&e.remove()}}},Q=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),X=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,i=t.i;null===i?(("slot"!==t.m||z)&&G(e,t,B),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=l.length-1,m=l[0],y=l[p];for(;r<=f&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--p];else if(Q(h,m,o))X(h,m,o),h=t[++r],m=l[++c];else if(Q(d,y,o))X(d,y,o),d=t[--f],y=l[--p];else if(Q(h,y,o))X(h,y,o),Z(e,h.v,d.v.nextSibling),h=t[++r],y=l[--p];else if(Q(d,m,o))X(d,m,o),Z(e,d.v,h.v),d=t[--f],m=l[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=I(t&&t[c],n,u):(X(i,m,o),t[u]=void 0,s=i.v),m=l[++c]):(s=I(t&&t[c],n,c),m=l[++c]),s&&Z(h.v.parentNode,s,h.v)}r>f?J(e,null==l[p+1]?null:l[p+1].v,n,l,c,p):c>p&&K(t,r,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),J(l,null,t,s,0,s.length-1)):!n&&null!==o&&K(o,0,o.length-1)):e.i!==i&&(l.data=i)},Y=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Y)},Z=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ee=(e,t)=>{if(t&&!e.S&&t["s-p"]){const n=t["s-p"].push(new Promise((l=>e.S=()=>{t["s-p"].splice(n-1,1),l()})))}},te=(e,t)=>{if(e.l|=16,!(4&e.l))return ee(e,e.j),S((()=>ne(e,t)));e.l|=512},ne=(e,t)=>{const n=e.$hostElement$,l=e.t;if(!l)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return t&&(e.l|=256,e.O&&(e.O.map((([e,t])=>ue(l,e,t,n))),e.O=void 0)),le(void 0,(()=>se(e,l,t)))},le=(e,t)=>oe(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),oe=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,se=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=U(t),o=r.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,i=T.get(e=e.head||e);if(i||T.set(e,i=new Set),!i.has(l)){{s=document.querySelector(`[sty-id="${l}"]`)||a.createElement("style"),s.innerHTML=o;const i=null!=(n=f.C)?n:j(a);if(null!=i&&s.setAttribute("nonce",i),!(1&t.l))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,(null==n?void 0:n.parentNode)===e?n:null)}else if("host"in e)if(d){const t=new CSSStyleSheet;t.replaceSync(o),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=o+t.innerHTML:e.prepend(s)}else e.append(s);1&t.l&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.l&&(s.innerHTML+=c),i&&i.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);ie(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>re(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},ie=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.M||A(null,null),i=(e=>e&&e.m===R)(t)?t:P(null,null,t);if(C=l.tagName,o.P&&(i.u=i.u||{},o.P.map((([e,t])=>i.u[t]=l[e]))),n&&i.u)for(const e of Object.keys(i.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=l[e]);i.m=null,i.l|=4,e.M=i,i.v=s.v=l.shadowRoot||l,z=!!(1&o.l),X(s,i,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},re=e=>{const t=e.$hostElement$,n=e.j;ue(e.t,"componentDidRender",void 0,t),64&e.l||(e.l|=64,ae(t),e.A(t),n||ce()),e.S&&(e.S(),e.S=void 0),512&e.l&&w((()=>te(e,!1))),e.l&=-517},ce=()=>{ae(a.documentElement),w((()=>N(u,"appload",{detail:{namespace:"helper-filters"}})))},ue=(e,t,n,l)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e,l)}},ae=e=>e.classList.add("hydrated"),fe=(e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.R.get(t),r=s.l,c=s.t;l=D(l,o.D[t][0]),8&r&&void 0!==i||l===i||Number.isNaN(i)&&Number.isNaN(l)||(s.R.set(t,l),c&&2==(18&r)&&te(s,!1))},he=(e,t,l)=>{var o,s;const i=e.prototype;if(t.D){const r=Object.entries(null!=(o=t.D)?o:{});if(r.map((([e,[o]])=>{if(31&o||2&l&&32&o){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,e)||{};s&&(t.D[e][0]|=2048),r&&(t.D[e][0]|=4096),(1&l||!s)&&Object.defineProperty(i,e,{get(){{if(!(2048&t.D[e][0]))return((e,t)=>n(this).R.get(t))(0,e);const l=n(this),o=l?l.t:i;if(!o)return;return o[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,e,{set(s){const i=n(this);if(r){const n=32&o?this[e]:i.$hostElement$[e];return void 0===n&&i.R.get(e)?s=i.R.get(e):!i.R.get(e)&&n&&i.R.set(e,n),r.call(this,D(s,o)),void fe(this,e,s=32&o?this[e]:i.$hostElement$[e],t)}{if(!(1&l&&4096&t.D[e][0]))return fe(this,e,s,t),void(1&l&&!i.t&&i.H.then((()=>{4096&t.D[e][0]&&i.t[e]!==i.R.get(e)&&(i.t[e]=s)})));const n=()=>{const n=i.t[e];!i.R.get(e)&&n&&i.R.set(e,n),i.t[e]=D(s,o),fe(this,e,i.t[e],t)};i.t?n():i.H.then((()=>n()))}}})}})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.N)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.N)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.P)||o.push([e,s])),s}))]))}}return e},de=(e,l={})=>{var o;const h=[],p=l.exclude||[],m=u.customElements,y=a.head,v=y.querySelector("meta[charset]"),b=a.createElement("style"),$=[];let w,S=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((l=>{const o={l:l[0],$:l[1],D:l[2],T:l[3]};4&o.l&&(g=!0),o.D=l[2],o.T=l[3],o.P=[];const c=o.$,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,k:n,R:new Map};l.H=new Promise((e=>l.A=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,o),1&o.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,pe(this,e,o.T)),w&&(clearTimeout(w),w=null),S?$.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.k,o=()=>{};if(1&t.l)pe(e,t,l.T),(null==t?void 0:t.t)||(null==t?void 0:t.H)&&t.H.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ee(t,t.j=n);break}}l.D&&Object.entries(l.D).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){t.l|=32;{const o=((e,t)=>{const n=e.$.replace(/-/g,"_"),l=e.U;if(!l)return;const o=i.get(l);return o?o[n]:import(`./${l}.entry.js`).then((e=>(i.set(l,e),e[n])),(e=>{s(e,t.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(o&&"then"in o){const e=()=>{};l=await o,e()}else l=o;if(!l)throw Error(`Constructor for "${n.$}#${t.F}" was not found`);l.isProxied||(he(l,n,2),l.isProxied=!0);const r=()=>{};t.l|=8;try{new l(t)}catch(t){s(t,e)}t.l&=-9,r()}if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=U(n);if(!r.has(t)){const l=()=>{};((e,t,n)=>{let l=r.get(e);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>te(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async e=>{if(!(1&f.l)){const t=n(e);t.L&&(t.L.map((e=>e())),t.L=void 0),(null==t?void 0:t.t)||(null==t?void 0:t.H)&&t.H.then((()=>{}))}T.has(e)&&T.delete(e),e.shadowRoot&&T.has(e.shadowRoot)&&T.delete(e.shadowRoot)})(this))),f.raf((()=>{var e;const t=n(this);(null==(e=null==t?void 0:t.M)?void 0:e.v)instanceof Node&&!t.M.v.isConnected&&delete t.M.v}))}componentOnReady(){return n(this).H}};o.U=e[0],p.includes(c)||m.get(c)||(h.push(c),m.define(c,he(u,o,1)))}))})),h.length>0&&(g&&(b.textContent+=c),b.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const e=null!=(o=f.C)?o:j(a);null!=e&&b.setAttribute("nonce",e),y.insertBefore(b,v?v.nextSibling:y.firstChild)}S=!1,$.length?$.map((e=>e.connectedCallback())):f.jmp((()=>w=setTimeout(ce,30)))},pe=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=e,i=me(t,o),r=ye(n);f.ael(s,l,i,r),(t.L=t.L||[]).push((()=>f.rel(s,l,i,r)))}))},me=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.O=e.O||[]).push([t,n])}catch(t){s(t,e.$hostElement$)}},ye=e=>({passive:!!(1&e),capture:!!(2&e)}),ve=e=>f.C=e;export{de as b,H as c,P as h,h as p,l as r,ve as s}