@everymatrix/lottery-ticket-controller 1.52.6 → 1.53.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.
@@ -1,17 +1,21 @@
1
1
  const NAMESPACE = 'lottery-ticket-controller';
2
- const BUILD = /* lottery-ticket-controller */ { 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: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, 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: false, propNumber: true, 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: true };
2
+ const BUILD = /* lottery-ticket-controller */ { 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: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, 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: false, propNumber: true, 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: true, vdomText: true, vdomXlink: false, watchCallback: true };
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";
@@ -353,7 +358,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
353
358
  }
354
359
  if (!appliedStyles.has(scopeId2)) {
355
360
  {
356
- styleElm = doc.createElement("style");
361
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
357
362
  styleElm.innerHTML = style;
358
363
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
359
364
  if (nonce != null) {
@@ -363,7 +368,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
363
368
  if (styleContainerNode.nodeName === "HEAD") {
364
369
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
365
370
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
366
- styleContainerNode.insertBefore(styleElm, referenceNode2);
371
+ styleContainerNode.insertBefore(
372
+ styleElm,
373
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
374
+ );
367
375
  } else if ("host" in styleContainerNode) {
368
376
  if (supportsConstructableStylesheets) {
369
377
  const stylesheet = new CSSStyleSheet();
@@ -413,16 +421,39 @@ var attachStyles = (hostRef) => {
413
421
  endAttachStyles();
414
422
  };
415
423
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
416
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
424
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
417
425
  if (oldValue !== newValue) {
418
426
  let isProp = isMemberInElement(elm, memberName);
419
427
  let ln = memberName.toLowerCase();
420
428
  if (memberName === "class") {
421
429
  const classList = elm.classList;
422
430
  const oldClasses = parseClassList(oldValue);
423
- const newClasses = parseClassList(newValue);
424
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
425
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
431
+ let newClasses = parseClassList(newValue);
432
+ {
433
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
434
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
435
+ }
436
+ } else if (memberName === "style") {
437
+ {
438
+ for (const prop in oldValue) {
439
+ if (!newValue || newValue[prop] == null) {
440
+ if (prop.includes("-")) {
441
+ elm.style.removeProperty(prop);
442
+ } else {
443
+ elm.style[prop] = "";
444
+ }
445
+ }
446
+ }
447
+ }
448
+ for (const prop in newValue) {
449
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
450
+ if (prop.includes("-")) {
451
+ elm.style.setProperty(prop, newValue[prop]);
452
+ } else {
453
+ elm.style[prop] = newValue[prop];
454
+ }
455
+ }
456
+ }
426
457
  } else if (memberName === "key") ; else if (memberName === "ref") {
427
458
  if (newValue) {
428
459
  newValue(elm);
@@ -460,7 +491,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
460
491
  elm.setAttribute(memberName, n);
461
492
  }
462
493
  }
463
- } else {
494
+ } else if (elm[memberName] !== newValue) {
464
495
  elm[memberName] = newValue;
465
496
  }
466
497
  } catch (e) {
@@ -482,24 +513,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
482
513
  }
483
514
  };
484
515
  var parseClassListRegex = /\s/;
485
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
516
+ var parseClassList = (value) => {
517
+ if (typeof value === "object" && value && "baseVal" in value) {
518
+ value = value.baseVal;
519
+ }
520
+ if (!value || typeof value !== "string") {
521
+ return [];
522
+ }
523
+ return value.split(parseClassListRegex);
524
+ };
486
525
  var CAPTURE_EVENT_SUFFIX = "Capture";
487
526
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
488
527
 
489
528
  // src/runtime/vdom/update-element.ts
490
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
529
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
491
530
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
492
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
493
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
531
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
532
+ const newVnodeAttrs = newVnode.$attrs$ || {};
494
533
  {
495
534
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
496
535
  if (!(memberName in newVnodeAttrs)) {
497
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
536
+ setAccessor(
537
+ elm,
538
+ memberName,
539
+ oldVnodeAttrs[memberName],
540
+ void 0,
541
+ isSvgMode2,
542
+ newVnode.$flags$);
498
543
  }
499
544
  }
500
545
  }
501
546
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
502
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
547
+ setAccessor(
548
+ elm,
549
+ memberName,
550
+ oldVnodeAttrs[memberName],
551
+ newVnodeAttrs[memberName],
552
+ isSvgMode2,
553
+ newVnode.$flags$);
503
554
  }
504
555
  };
505
556
  function sortedAttrNames(attrNames) {
@@ -511,13 +562,10 @@ function sortedAttrNames(attrNames) {
511
562
  attrNames
512
563
  );
513
564
  }
514
-
515
- // src/runtime/vdom/vdom-render.ts
516
- var scopeId;
517
565
  var hostTagName;
518
566
  var useNativeShadowDom = false;
519
567
  var isSvgMode = false;
520
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
568
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
521
569
  const newVNode2 = newParentVNode.$children$[childIndex];
522
570
  let i2 = 0;
523
571
  let elm;
@@ -531,11 +579,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
531
579
  {
532
580
  updateElement(null, newVNode2, isSvgMode);
533
581
  }
534
- const rootNode = elm.getRootNode();
535
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
536
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
537
- elm.classList.add(elm["s-si"] = scopeId);
538
- }
539
582
  if (newVNode2.$children$) {
540
583
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
541
584
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -665,6 +708,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
665
708
  if (!isInitialRender) {
666
709
  return leftVNode.$key$ === rightVNode.$key$;
667
710
  }
711
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
712
+ leftVNode.$key$ = rightVNode.$key$;
713
+ }
668
714
  return true;
669
715
  }
670
716
  return false;
@@ -705,8 +751,9 @@ var nullifyVNodeRefs = (vNode) => {
705
751
  }
706
752
  };
707
753
  var insertBefore = (parent, newNode, reference) => {
708
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
709
- return inserted;
754
+ {
755
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
756
+ }
710
757
  };
711
758
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
712
759
  const hostElm = hostRef.$hostElement$;
@@ -731,9 +778,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
731
778
  rootVnode.$flags$ |= 4 /* isHost */;
732
779
  hostRef.$vnode$ = rootVnode;
733
780
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
734
- {
735
- scopeId = hostElm["s-sc"];
736
- }
737
781
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
738
782
  patch(oldVNode, rootVnode, isInitialLoad);
739
783
  };
@@ -741,7 +785,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
741
785
  // src/runtime/update-component.ts
742
786
  var attachToAncestor = (hostRef, ancestorComponent) => {
743
787
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
744
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
788
+ const index = ancestorComponent["s-p"].push(
789
+ new Promise(
790
+ (r) => hostRef.$onRenderResolve$ = () => {
791
+ ancestorComponent["s-p"].splice(index - 1, 1);
792
+ r();
793
+ }
794
+ )
795
+ );
745
796
  }
746
797
  };
747
798
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -770,7 +821,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
770
821
  {
771
822
  hostRef.$flags$ |= 256 /* isListenReady */;
772
823
  if (hostRef.$queuedListeners$) {
773
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
824
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
774
825
  hostRef.$queuedListeners$ = void 0;
775
826
  }
776
827
  }
@@ -841,7 +892,7 @@ var postUpdateComponent = (hostRef) => {
841
892
  const instance = hostRef.$lazyInstance$ ;
842
893
  const ancestorComponent = hostRef.$ancestorComponent$;
843
894
  {
844
- safeCall(instance, "componentDidRender");
895
+ safeCall(instance, "componentDidRender", void 0, elm);
845
896
  }
846
897
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
847
898
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -875,12 +926,12 @@ var appDidLoad = (who) => {
875
926
  }
876
927
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
877
928
  };
878
- var safeCall = (instance, method, arg) => {
929
+ var safeCall = (instance, method, arg, elm) => {
879
930
  if (instance && instance[method]) {
880
931
  try {
881
932
  return instance[method](arg);
882
933
  } catch (e) {
883
- consoleError(e);
934
+ consoleError(e, elm);
884
935
  }
885
936
  }
886
937
  return void 0;
@@ -939,15 +990,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
939
990
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
940
991
  members.map(([memberName, [memberFlags]]) => {
941
992
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
993
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
994
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
995
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
996
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
997
+ Object.defineProperty(prototype, memberName, {
998
+ get() {
999
+ {
1000
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1001
+ return getValue(this, memberName);
1002
+ }
1003
+ const ref = getHostRef(this);
1004
+ const instance = ref ? ref.$lazyInstance$ : prototype;
1005
+ if (!instance) return;
1006
+ return instance[memberName];
1007
+ }
1008
+ },
1009
+ configurable: true,
1010
+ enumerable: true
1011
+ });
1012
+ }
942
1013
  Object.defineProperty(prototype, memberName, {
943
- get() {
944
- return getValue(this, memberName);
945
- },
946
1014
  set(newValue) {
947
- setValue(this, memberName, newValue, cmpMeta);
948
- },
949
- configurable: true,
950
- enumerable: true
1015
+ const ref = getHostRef(this);
1016
+ if (origSetter) {
1017
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1018
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1019
+ newValue = ref.$instanceValues$.get(memberName);
1020
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1021
+ ref.$instanceValues$.set(memberName, currentValue);
1022
+ }
1023
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1024
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1025
+ setValue(this, memberName, newValue, cmpMeta);
1026
+ return;
1027
+ }
1028
+ {
1029
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1030
+ setValue(this, memberName, newValue, cmpMeta);
1031
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1032
+ ref.$onReadyPromise$.then(() => {
1033
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1034
+ ref.$lazyInstance$[memberName] = newValue;
1035
+ }
1036
+ });
1037
+ }
1038
+ return;
1039
+ }
1040
+ const setterSetVal = () => {
1041
+ const currentValue = ref.$lazyInstance$[memberName];
1042
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1043
+ ref.$instanceValues$.set(memberName, currentValue);
1044
+ }
1045
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1046
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1047
+ };
1048
+ if (ref.$lazyInstance$) {
1049
+ setterSetVal();
1050
+ } else {
1051
+ ref.$onReadyPromise$.then(() => setterSetVal());
1052
+ }
1053
+ }
1054
+ }
951
1055
  });
952
1056
  }
953
1057
  });
@@ -957,7 +1061,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
957
1061
  plt.jmp(() => {
958
1062
  var _a2;
959
1063
  const propName = attrNameToPropName.get(attrName);
960
- if (this.hasOwnProperty(propName)) {
1064
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
961
1065
  newValue = this[propName];
962
1066
  delete this[propName];
963
1067
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -977,7 +1081,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
977
1081
  }
978
1082
  return;
979
1083
  }
980
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1084
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1085
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1086
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1087
+ this[propName] = newValue;
1088
+ }
981
1089
  });
982
1090
  };
983
1091
  Cstr.observedAttributes = Array.from(
@@ -1004,9 +1112,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1004
1112
  let Cstr;
1005
1113
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1006
1114
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1007
- const bundleId = cmpMeta.$lazyBundleId$;
1008
- if (bundleId) {
1009
- const CstrImport = loadModule(cmpMeta);
1115
+ {
1116
+ const CstrImport = loadModule(cmpMeta, hostRef);
1010
1117
  if (CstrImport && "then" in CstrImport) {
1011
1118
  const endLoad = uniqueTime();
1012
1119
  Cstr = await CstrImport;
@@ -1031,7 +1138,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1031
1138
  try {
1032
1139
  new Cstr(hostRef);
1033
1140
  } catch (e) {
1034
- consoleError(e);
1141
+ consoleError(e, elm);
1035
1142
  }
1036
1143
  {
1037
1144
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1040,11 +1147,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1040
1147
  hostRef.$flags$ |= 128 /* isWatchReady */;
1041
1148
  }
1042
1149
  endNewInstance();
1043
- fireConnectedCallback(hostRef.$lazyInstance$);
1044
- } else {
1045
- Cstr = elm.constructor;
1046
- const cmpTag = elm.localName;
1047
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1150
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1048
1151
  }
1049
1152
  if (Cstr && Cstr.style) {
1050
1153
  let style;
@@ -1067,9 +1170,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1067
1170
  schedule();
1068
1171
  }
1069
1172
  };
1070
- var fireConnectedCallback = (instance) => {
1173
+ var fireConnectedCallback = (instance, elm) => {
1071
1174
  {
1072
- safeCall(instance, "connectedCallback");
1175
+ safeCall(instance, "connectedCallback", void 0, elm);
1073
1176
  }
1074
1177
  };
1075
1178
 
@@ -1105,15 +1208,15 @@ var connectedCallback = (elm) => {
1105
1208
  } else {
1106
1209
  addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1107
1210
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1108
- fireConnectedCallback(hostRef.$lazyInstance$);
1211
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1109
1212
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1110
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1213
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1111
1214
  }
1112
1215
  }
1113
1216
  endConnected();
1114
1217
  }
1115
1218
  };
1116
- var disconnectInstance = (instance) => {
1219
+ var disconnectInstance = (instance, elm) => {
1117
1220
  };
1118
1221
  var disconnectedCallback = async (elm) => {
1119
1222
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1128,6 +1231,12 @@ var disconnectedCallback = async (elm) => {
1128
1231
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1129
1232
  }
1130
1233
  }
1234
+ if (rootAppliedStyles.has(elm)) {
1235
+ rootAppliedStyles.delete(elm);
1236
+ }
1237
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1238
+ rootAppliedStyles.delete(elm.shadowRoot);
1239
+ }
1131
1240
  };
1132
1241
 
1133
1242
  // src/runtime/bootstrap-lazy.ts
@@ -1212,6 +1321,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1212
1321
  }
1213
1322
  disconnectedCallback() {
1214
1323
  plt.jmp(() => disconnectedCallback(this));
1324
+ plt.raf(() => {
1325
+ var _a3;
1326
+ const hostRef = getHostRef(this);
1327
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1328
+ delete hostRef.$vnode$.$elm$;
1329
+ }
1330
+ });
1215
1331
  }
1216
1332
  componentOnReady() {
1217
1333
  return getHostRef(this).$onReadyPromise$;
@@ -1275,7 +1391,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1275
1391
  }
1276
1392
  }
1277
1393
  } catch (e) {
1278
- consoleError(e);
1394
+ consoleError(e, hostRef.$hostElement$);
1279
1395
  }
1280
1396
  };
1281
1397
  var getHostListenerTarget = (elm, flags) => {
@@ -1,11 +1,11 @@
1
- import { b as bootstrapLazy } from './index-0c3b2dac.js';
2
- export { s as setNonce } from './index-0c3b2dac.js';
1
+ import { b as bootstrapLazy } from './index-112e65a8.js';
2
+ export { s as setNonce } from './index-112e65a8.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["helper-accordion_5",[[1,"lottery-ticket-controller",{"endpoint":[513],"ticketId":[514,"ticket-id"],"ticketDescription":[513,"ticket-description"],"gameId":[513,"game-id"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"numberOfGrids":[514,"number-of-grids"],"last":[516],"language":[513],"autoPick":[516,"auto-pick"],"resetButton":[516,"reset-button"],"totalControllers":[514,"total-controllers"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]},[[0,"helperAccordionAction","helperAccordionActionHandler"]]],[1,"lottery-ticket",{"endpoint":[513],"gameId":[513,"game-id"],"numberOfGrids":[514,"number-of-grids"],"multipleDraws":[516,"multiple-draws"],"ticketId":[514,"ticket-id"],"resetButton":[516,"reset-button"],"autoPick":[516,"auto-pick"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"multiplier":[32],"numberOfDraws":[32],"isLoading":[32],"hasErrors":[32],"ticketDone":[32],"isCustomSelect":[32],"amountInfo":[32],"limitStylingAppends":[32]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"]],{"numberOfDraws":["drawsChangeHandler"]}],[1,"helper-accordion",{"ticketHistoryFlag":[516,"ticket-history-flag"],"headerTitle":[513,"header-title"],"headerSubtitle":[513,"header-subtitle"],"description":[513],"footer":[516],"deleteTab":[516,"delete-tab"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"showContent":[32],"limitStylingAppends":[32]}],[1,"lottery-grid",{"ticketId":[514,"ticket-id"],"totalNumbers":[514,"total-numbers"],"gameId":[513,"game-id"],"maximumAllowed":[514,"maximum-allowed"],"minimumAllowed":[514,"minimum-allowed"],"selectable":[516],"selectedNumbers":[513,"selected-numbers"],"displaySelected":[516,"display-selected"],"language":[513],"gridIndex":[514,"grid-index"],"gridType":[513,"grid-type"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"numbers":[32],"limitStylingAppends":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]]],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
8
+ return bootstrapLazy([["helper-accordion_5",[[1,"lottery-ticket-controller",{"endpoint":[513],"ticketId":[514,"ticket-id"],"ticketDescription":[513,"ticket-description"],"gameId":[513,"game-id"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"numberOfGrids":[514,"number-of-grids"],"last":[516],"language":[513],"autoPick":[516,"auto-pick"],"resetButton":[516,"reset-button"],"totalControllers":[514,"total-controllers"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]},[[0,"helperAccordionAction","helperAccordionActionHandler"]]],[1,"lottery-ticket",{"endpoint":[513],"gameId":[513,"game-id"],"numberOfGrids":[514,"number-of-grids"],"multipleDraws":[516,"multiple-draws"],"ticketId":[514,"ticket-id"],"resetButton":[516,"reset-button"],"autoPick":[516,"auto-pick"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"isLoading":[32],"hasErrors":[32],"ticketDone":[32],"isCustomSelect":[32],"amountInfo":[32],"limitStylingAppends":[32],"stakeMultiplier":[32],"lineMultiplier":[32],"isCustomSelectStake":[32],"isCustomSelectDraw":[32],"isCustomSelectLine":[32],"drawMultiplier":[32],"secondarySelectionAllowed":[32],"partialQuickpickAvailable":[32],"boardsAllowed":[32],"tabIndex":[32],"groupType":[32],"playType":[32],"selectedPlayTypeId":[32],"maximumAllowed":[32],"numberRange":[32],"secondaryNumberRange":[32],"secondaryMaximumAllowed":[32],"minimumAllowed":[32],"secondaryMinimumAllowed":[32]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"],[0,"gridClearAllEvent","handleGridClearAllEvent"]],{"lineMultiplier":["handleLineMultiplierChange"],"tabIndex":["handleTabIndexChange"]}],[1,"helper-accordion",{"ticketHistoryFlag":[516,"ticket-history-flag"],"headerTitle":[513,"header-title"],"headerSubtitle":[513,"header-subtitle"],"description":[513],"footer":[516],"deleteTab":[516,"delete-tab"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"showContent":[32],"limitStylingAppends":[32]}],[1,"lottery-grid",{"ticketId":[514,"ticket-id"],"totalNumbers":[514,"total-numbers"],"gameId":[513,"game-id"],"maximumAllowed":[514,"maximum-allowed"],"minimumAllowed":[514,"minimum-allowed"],"numberRange":[513,"number-range"],"selectable":[516],"selectedNumbers":[513,"selected-numbers"],"secondaryNumbers":[513,"secondary-numbers"],"displaySelected":[516,"display-selected"],"language":[513],"gridIndex":[514,"grid-index"],"gridType":[513,"grid-type"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"highNumber":[514,"high-number"],"lowNumber":[514,"low-number"],"selectionType":[513,"selection-type"],"partialQuickpickAvailable":[516,"partial-quickpick-available"],"numbers":[32],"bonusNumbers":[32],"limitStylingAppends":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]]],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"isBonus":[516,"is-bonus"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-0c3b2dac.js';
2
- export { s as setNonce } from './index-0c3b2dac.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-112e65a8.js';
2
+ export { s as setNonce } from './index-112e65a8.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.25.1 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -16,5 +16,5 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy([["helper-accordion_5",[[1,"lottery-ticket-controller",{"endpoint":[513],"ticketId":[514,"ticket-id"],"ticketDescription":[513,"ticket-description"],"gameId":[513,"game-id"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"numberOfGrids":[514,"number-of-grids"],"last":[516],"language":[513],"autoPick":[516,"auto-pick"],"resetButton":[516,"reset-button"],"totalControllers":[514,"total-controllers"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]},[[0,"helperAccordionAction","helperAccordionActionHandler"]]],[1,"lottery-ticket",{"endpoint":[513],"gameId":[513,"game-id"],"numberOfGrids":[514,"number-of-grids"],"multipleDraws":[516,"multiple-draws"],"ticketId":[514,"ticket-id"],"resetButton":[516,"reset-button"],"autoPick":[516,"auto-pick"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"multiplier":[32],"numberOfDraws":[32],"isLoading":[32],"hasErrors":[32],"ticketDone":[32],"isCustomSelect":[32],"amountInfo":[32],"limitStylingAppends":[32]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"]],{"numberOfDraws":["drawsChangeHandler"]}],[1,"helper-accordion",{"ticketHistoryFlag":[516,"ticket-history-flag"],"headerTitle":[513,"header-title"],"headerSubtitle":[513,"header-subtitle"],"description":[513],"footer":[516],"deleteTab":[516,"delete-tab"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"showContent":[32],"limitStylingAppends":[32]}],[1,"lottery-grid",{"ticketId":[514,"ticket-id"],"totalNumbers":[514,"total-numbers"],"gameId":[513,"game-id"],"maximumAllowed":[514,"maximum-allowed"],"minimumAllowed":[514,"minimum-allowed"],"selectable":[516],"selectedNumbers":[513,"selected-numbers"],"displaySelected":[516,"display-selected"],"language":[513],"gridIndex":[514,"grid-index"],"gridType":[513,"grid-type"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"numbers":[32],"limitStylingAppends":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]]],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
19
+ return bootstrapLazy([["helper-accordion_5",[[1,"lottery-ticket-controller",{"endpoint":[513],"ticketId":[514,"ticket-id"],"ticketDescription":[513,"ticket-description"],"gameId":[513,"game-id"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"numberOfGrids":[514,"number-of-grids"],"last":[516],"language":[513],"autoPick":[516,"auto-pick"],"resetButton":[516,"reset-button"],"totalControllers":[514,"total-controllers"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]},[[0,"helperAccordionAction","helperAccordionActionHandler"]]],[1,"lottery-ticket",{"endpoint":[513],"gameId":[513,"game-id"],"numberOfGrids":[514,"number-of-grids"],"multipleDraws":[516,"multiple-draws"],"ticketId":[514,"ticket-id"],"resetButton":[516,"reset-button"],"autoPick":[516,"auto-pick"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"isLoading":[32],"hasErrors":[32],"ticketDone":[32],"isCustomSelect":[32],"amountInfo":[32],"limitStylingAppends":[32],"stakeMultiplier":[32],"lineMultiplier":[32],"isCustomSelectStake":[32],"isCustomSelectDraw":[32],"isCustomSelectLine":[32],"drawMultiplier":[32],"secondarySelectionAllowed":[32],"partialQuickpickAvailable":[32],"boardsAllowed":[32],"tabIndex":[32],"groupType":[32],"playType":[32],"selectedPlayTypeId":[32],"maximumAllowed":[32],"numberRange":[32],"secondaryNumberRange":[32],"secondaryMaximumAllowed":[32],"minimumAllowed":[32],"secondaryMinimumAllowed":[32]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"],[0,"gridClearAllEvent","handleGridClearAllEvent"]],{"lineMultiplier":["handleLineMultiplierChange"],"tabIndex":["handleTabIndexChange"]}],[1,"helper-accordion",{"ticketHistoryFlag":[516,"ticket-history-flag"],"headerTitle":[513,"header-title"],"headerSubtitle":[513,"header-subtitle"],"description":[513],"footer":[516],"deleteTab":[516,"delete-tab"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"showContent":[32],"limitStylingAppends":[32]}],[1,"lottery-grid",{"ticketId":[514,"ticket-id"],"totalNumbers":[514,"total-numbers"],"gameId":[513,"game-id"],"maximumAllowed":[514,"maximum-allowed"],"minimumAllowed":[514,"minimum-allowed"],"numberRange":[513,"number-range"],"selectable":[516],"selectedNumbers":[513,"selected-numbers"],"secondaryNumbers":[513,"secondary-numbers"],"displaySelected":[516,"display-selected"],"language":[513],"gridIndex":[514,"grid-index"],"gridType":[513,"grid-type"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"highNumber":[514,"high-number"],"lowNumber":[514,"low-number"],"selectionType":[513,"selection-type"],"partialQuickpickAvailable":[516,"partial-quickpick-available"],"numbers":[32],"bonusNumbers":[32],"limitStylingAppends":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]]],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"isBonus":[516,"is-bonus"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
20
20
  });
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-f94609d8.js";export{s as setNonce}from"./p-f94609d8.js";import{g as l}from"./p-e1255160.js";(()=>{const t=import.meta.url,l={};return""!==t&&(l.resourcesUrl=new URL(".",t).href),e(l)})().then((async e=>(await l(),t([["p-8461c714",[[1,"lottery-ticket-controller",{endpoint:[513],ticketId:[514,"ticket-id"],ticketDescription:[513,"ticket-description"],gameId:[513,"game-id"],postMessage:[516,"post-message"],eventName:[513,"event-name"],collapsed:[516],numberOfGrids:[514,"number-of-grids"],last:[516],language:[513],autoPick:[516,"auto-pick"],resetButton:[516,"reset-button"],totalControllers:[514,"total-controllers"],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],limitStylingAppends:[32]},[[0,"helperAccordionAction","helperAccordionActionHandler"]]],[1,"lottery-ticket",{endpoint:[513],gameId:[513,"game-id"],numberOfGrids:[514,"number-of-grids"],multipleDraws:[516,"multiple-draws"],ticketId:[514,"ticket-id"],resetButton:[516,"reset-button"],autoPick:[516,"auto-pick"],language:[513],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],multiplier:[32],numberOfDraws:[32],isLoading:[32],hasErrors:[32],ticketDone:[32],isCustomSelect:[32],amountInfo:[32],limitStylingAppends:[32]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"]],{numberOfDraws:["drawsChangeHandler"]}],[1,"helper-accordion",{ticketHistoryFlag:[516,"ticket-history-flag"],headerTitle:[513,"header-title"],headerSubtitle:[513,"header-subtitle"],description:[513],footer:[516],deleteTab:[516,"delete-tab"],postMessage:[516,"post-message"],eventName:[513,"event-name"],collapsed:[516],language:[513],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],showContent:[32],limitStylingAppends:[32]}],[1,"lottery-grid",{ticketId:[514,"ticket-id"],totalNumbers:[514,"total-numbers"],gameId:[513,"game-id"],maximumAllowed:[514,"maximum-allowed"],minimumAllowed:[514,"minimum-allowed"],selectable:[516],selectedNumbers:[513,"selected-numbers"],displaySelected:[516,"display-selected"],language:[513],gridIndex:[514,"grid-index"],gridType:[513,"grid-type"],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],numbers:[32],limitStylingAppends:[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]]],[1,"lottery-bullet",{value:[513],selectable:[516],isSelected:[516,"is-selected"],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],limitStylingAppends:[32]}]]]],e))));
1
+ import{p as e,b as t}from"./p-1090b990.js";export{s as setNonce}from"./p-1090b990.js";import{g as l}from"./p-e1255160.js";(()=>{const t=import.meta.url,l={};return""!==t&&(l.resourcesUrl=new URL(".",t).href),e(l)})().then((async e=>(await l(),t([["p-6d913fec",[[1,"lottery-ticket-controller",{endpoint:[513],ticketId:[514,"ticket-id"],ticketDescription:[513,"ticket-description"],gameId:[513,"game-id"],postMessage:[516,"post-message"],eventName:[513,"event-name"],collapsed:[516],numberOfGrids:[514,"number-of-grids"],last:[516],language:[513],autoPick:[516,"auto-pick"],resetButton:[516,"reset-button"],totalControllers:[514,"total-controllers"],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],limitStylingAppends:[32]},[[0,"helperAccordionAction","helperAccordionActionHandler"]]],[1,"lottery-ticket",{endpoint:[513],gameId:[513,"game-id"],numberOfGrids:[514,"number-of-grids"],multipleDraws:[516,"multiple-draws"],ticketId:[514,"ticket-id"],resetButton:[516,"reset-button"],autoPick:[516,"auto-pick"],language:[513],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],isLoading:[32],hasErrors:[32],ticketDone:[32],isCustomSelect:[32],amountInfo:[32],limitStylingAppends:[32],stakeMultiplier:[32],lineMultiplier:[32],isCustomSelectStake:[32],isCustomSelectDraw:[32],isCustomSelectLine:[32],drawMultiplier:[32],secondarySelectionAllowed:[32],partialQuickpickAvailable:[32],boardsAllowed:[32],tabIndex:[32],groupType:[32],playType:[32],selectedPlayTypeId:[32],maximumAllowed:[32],numberRange:[32],secondaryNumberRange:[32],secondaryMaximumAllowed:[32],minimumAllowed:[32],secondaryMinimumAllowed:[32]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"],[0,"gridClearAllEvent","handleGridClearAllEvent"]],{lineMultiplier:["handleLineMultiplierChange"],tabIndex:["handleTabIndexChange"]}],[1,"helper-accordion",{ticketHistoryFlag:[516,"ticket-history-flag"],headerTitle:[513,"header-title"],headerSubtitle:[513,"header-subtitle"],description:[513],footer:[516],deleteTab:[516,"delete-tab"],postMessage:[516,"post-message"],eventName:[513,"event-name"],collapsed:[516],language:[513],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],showContent:[32],limitStylingAppends:[32]}],[1,"lottery-grid",{ticketId:[514,"ticket-id"],totalNumbers:[514,"total-numbers"],gameId:[513,"game-id"],maximumAllowed:[514,"maximum-allowed"],minimumAllowed:[514,"minimum-allowed"],numberRange:[513,"number-range"],selectable:[516],selectedNumbers:[513,"selected-numbers"],secondaryNumbers:[513,"secondary-numbers"],displaySelected:[516,"display-selected"],language:[513],gridIndex:[514,"grid-index"],gridType:[513,"grid-type"],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],highNumber:[514,"high-number"],lowNumber:[514,"low-number"],selectionType:[513,"selection-type"],partialQuickpickAvailable:[516,"partial-quickpick-available"],numbers:[32],bonusNumbers:[32],limitStylingAppends:[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]]],[1,"lottery-bullet",{value:[513],selectable:[516],isSelected:[516,"is-selected"],isBonus:[516,"is-bonus"],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],limitStylingAppends:[32]}]]]],e))));
@@ -0,0 +1,2 @@
1
+ var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),l=(t,n)=>{e.set(n.t=t,n)},o=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),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:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),p=!1,m=[],y=[],v=(t,e)=>n=>{t.push(n),p||(p=!0,e&&4&f.l?w($):f.raf($))},b=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},$=()=>{b(m),b(y),(p=m.length>0)&&f.raf($)},w=t=>h().then(t),S=v(y,!0),g=t=>"object"==(t=typeof t)||"function"===t;function j(t){var e,n,l;return null!=(l=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((e,n)=>{for(var l in n)t(e,l,{get:n[l],enumerable:!0})})({},{err:()=>O,map:()=>E,ok:()=>k,unwrap:()=>M,unwrapErr:()=>x});var k=t=>({isOk:!0,isErr:!1,value:t}),O=t=>({isOk:!1,isErr:!0,value:t});function E(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>k(t))):k(n)}if(t.isErr)return O(t.value);throw"should never get here"}var C,M=t=>{if(t.isOk)return t.value;throw t.value},x=t=>{if(t.isErr)return t.value;throw t.value},P=(t,e,...n)=>{let l=null,o=null,s=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!g(l))&&(l+=""),s&&i?r[r.length-1].i+=l:r.push(s?A(null,l):l),i=s)};if(c(n),e){e.key&&(o=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=A(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=o,u},A=(t,e)=>({l:0,m:t,i:e,v:null,h:null,u:null,p:null}),R={},D=(t,e)=>null==t||g(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t,H=(t,e,l)=>{const o=(t=>n(t).$hostElement$)(t);return{emit:t=>N(o,e,{bubbles:!!(4&l),composed:!!(2&l),cancelable:!!(1&l),detail:t})}},N=(t,e,n)=>{const l=f.ce(e,n);return t.dispatchEvent(l),l},T=new WeakMap,F=t=>"sc-"+t.$,U=(t,e,n,l,s,i)=>{if(n!==l){let r=o(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,o=V(n);let s=V(l);e.remove(...o.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!o.includes(t))))}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else if("key"===e);else if("ref"===e)l&&l(t);else if(r||"o"!==e[0]||"n"!==e[1]){const o=g(l);if((r||o&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[e]!==l&&(t[e]=l);else{const o=null==l?"":l;"list"===e?r=!1:null!=n&&t[e]==o||("function"==typeof t.__lookupSetter__(e)?t[e]=o:t.setAttribute(e,o))}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&i||s)&&!o&&t.setAttribute(e,l=!0===l?"":l)}else if(e="-"===e[2]?e.slice(3):o(u,c)?c.slice(2):c[2]+e.slice(3),n||l){const o=e.endsWith(W);e=e.replace(q,""),n&&f.rel(t,e,n,o),l&&f.ael(t,e,l,o)}}},L=/\s/,V=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(L):[]),W="Capture",q=RegExp(W+"$"),G=(t,e,n)=>{const l=11===e.v.nodeType&&e.v.host?e.v.host:e.v,o=t&&t.u||{},s=e.u||{};for(const t of _(Object.keys(o)))t in s||U(l,t,o[t],void 0,n,e.l);for(const t of _(Object.keys(s)))U(l,t,o[t],s[t],n,e.l)};function _(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var z=!1,B=!1,I=(t,e,n)=>{const l=e.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(t,l,i),s&&o.appendChild(s);return o["s-hn"]=C,o},J=(t,e,n,l,o,s)=>{let i,r=t;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,e)))},K=(t,e,n)=>{for(let l=e;l<=n;++l){const e=t[l];if(e){const t=e.v;Y(e),t&&t.remove()}}},Q=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),X=(t,e,n=!1)=>{const l=e.v=t.v,o=t.h,s=e.h,i=e.i;null===i?(("slot"!==e.m||z)&&G(t,e,B),null!==o&&null!==s?((t,e,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=e.length-1,h=e[0],d=e[f],p=l.length-1,m=l[0],y=l[p];for(;r<=f&&c<=p;)if(null==h)h=e[++r];else if(null==d)d=e[--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=e[++r],m=l[++c];else if(Q(d,y,o))X(d,y,o),d=e[--f],y=l[--p];else if(Q(h,y,o))X(h,y,o),Z(t,h.v,d.v.nextSibling),h=e[++r],y=l[--p];else if(Q(d,m,o))X(d,m,o),Z(t,d.v,h.v),d=e[--f],m=l[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].p&&e[a].p===m.p){u=a;break}u>=0?(i=e[u],i.m!==m.m?s=I(e&&e[c],n,u):(X(i,m,o),e[u]=void 0,s=i.v),m=l[++c]):(s=I(e&&e[c],n,c),m=l[++c]),s&&Z(h.v.parentNode,s,h.v)}r>f?J(t,null==l[p+1]?null:l[p+1].v,n,l,c,p):c>p&&K(e,r,f)})(l,o,e,s,n):null!==s?(null!==t.i&&(l.textContent=""),J(l,null,e,s,0,s.length-1)):!n&&null!==o&&K(o,0,o.length-1)):t.i!==i&&(l.data=i)},Y=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(Y)},Z=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),tt=(t,e)=>{if(e&&!t.S&&e["s-p"]){const n=e["s-p"].push(new Promise((l=>t.S=()=>{e["s-p"].splice(n-1,1),l()})))}},et=(t,e)=>{if(t.l|=16,!(4&t.l))return tt(t,t.j),S((()=>nt(t,e)));t.l|=512},nt=(t,e)=>{const n=t.$hostElement$,l=t.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 e&&(t.l|=256,t.k&&(t.k.map((([t,e])=>ut(l,t,e,n))),t.k=void 0)),lt(void 0,(()=>st(t,l,e)))},lt=(t,e)=>ot(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),ot=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,st=async(t,e,n)=>{var l;const o=t.$hostElement$,s=o["s-rc"];n&&(t=>{const e=t.O,n=t.$hostElement$,l=e.l,o=((t,e)=>{var n;const l=F(e),o=r.get(l);if(t=11===t.nodeType?t:a,o)if("string"==typeof o){let s,i=T.get(t=t.head||t);if(i||T.set(t,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&e.l))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(d){const e=new CSSStyleSheet;e.replaceSync(o),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=o+e.innerHTML:t.prepend(s)}else t.append(s);1&e.l&&"HEAD"!==t.nodeName&&t.insertBefore(s,null)}4&e.l&&(s.innerHTML+=c),i&&i.add(l)}}else t.adoptedStyleSheets.includes(o)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(t);it(t,e,o,n),s&&(s.map((t=>t())),o["s-rc"]=void 0);{const e=null!=(l=o["s-p"])?l:[],n=()=>rt(t);0===e.length?n():(Promise.all(e).then(n),t.l|=4,e.length=0)}},it=(t,e,n,l)=>{try{e=e.render(),t.l&=-17,t.l|=2,((t,e,n=!1)=>{const l=t.$hostElement$,o=t.O,s=t.M||A(null,null),i=(t=>t&&t.m===R)(e)?e:P(null,null,e);if(C=l.tagName,o.P&&(i.u=i.u||{},o.P.map((([t,e])=>i.u[e]=l[t]))),n&&i.u)for(const t of Object.keys(i.u))l.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.u[t]=l[t]);i.m=null,i.l|=4,t.M=i,i.v=s.v=l.shadowRoot||l,z=!!(1&o.l),X(s,i,n)})(t,e,l)}catch(e){s(e,t.$hostElement$)}return null},rt=t=>{const e=t.$hostElement$,n=t.j;ut(t.t,"componentDidRender",void 0,e),64&t.l||(t.l|=64,at(e),t.A(e),n||ct()),t.S&&(t.S(),t.S=void 0),512&t.l&&w((()=>et(t,!1))),t.l&=-517},ct=()=>{at(a.documentElement),w((()=>N(u,"appload",{detail:{namespace:"lottery-ticket-controller"}})))},ut=(t,e,n,l)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t,l)}},at=t=>t.classList.add("hydrated"),ft=(t,e,l,o)=>{const i=n(t);if(!i)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 r=i.$hostElement$,c=i.R.get(e),u=i.l,a=i.t;if(l=D(l,o.D[e][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(i.R.set(e,l),a)){if(o.H&&128&u){const t=o.H[e];t&&t.map((t=>{try{a[t](l,c,e)}catch(t){s(t,r)}}))}2==(18&u)&&et(i,!1)}},ht=(t,e,l)=>{var o,s;const i=t.prototype;if(e.D||e.H||t.watchers){t.watchers&&!e.H&&(e.H=t.watchers);const r=Object.entries(null!=(o=e.D)?o:{});if(r.map((([t,[o]])=>{if(31&o||2&l&&32&o){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.D[t][0]|=2048),r&&(e.D[t][0]|=4096),(1&l||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.D[t][0]))return((t,e)=>n(this).R.get(e))(0,t);const l=n(this),o=l?l.t:i;if(!o)return;return o[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(r){const n=32&o?this[t]:i.$hostElement$[t];return void 0===n&&i.R.get(t)?s=i.R.get(t):!i.R.get(t)&&n&&i.R.set(t,n),r.call(this,D(s,o)),void ft(this,t,s=32&o?this[t]:i.$hostElement$[t],e)}{if(!(1&l&&4096&e.D[t][0]))return ft(this,t,s,e),void(1&l&&!i.t&&i.N.then((()=>{4096&e.D[t][0]&&i.t[t]!==i.R.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.R.get(t)&&n&&i.R.set(t,n),i.t[t]=D(s,o),ft(this,t,i.t[t],e)};i.t?n():i.N.then((()=>n()))}}})}})),1&l){const l=new Map;i.attributeChangedCallback=function(t,o,s){f.jmp((()=>{var r;const c=l.get(t);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=e.H)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,o,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.H)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,n])=>{var o;const s=n[1]||t;return l.set(s,t),512&n[0]&&(null==(o=e.P)||o.push([t,s])),s}))]))}}return t},dt=(t,e)=>{ut(t,"connectedCallback",void 0,e)},pt=(t,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(t.map((t=>{t[1].map((l=>{var o;const c={l:l[0],$:l[1],D:l[2],T:l[3]};4&c.l&&(g=!0),c.D=l[2],c.T=l[3],c.P=[],c.H=null!=(o=l[4])?o:{};const u=c.$,a=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const l={l:0,$hostElement$:t,O:n,R:new Map};l.N=new Promise((t=>l.A=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,l)})(t=this,c),1&c.l)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.$}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,mt(this,t,c.T)),w&&(clearTimeout(w),w=null),S?$.push(this):f.jmp((()=>(t=>{if(!(1&f.l)){const e=n(t),l=e.O,o=()=>{};if(1&e.l)mt(t,e,l.T),(null==e?void 0:e.t)?dt(e.t,t):(null==e?void 0:e.N)&&e.N.then((()=>dt(e.t,t)));else{e.l|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){tt(e,e.j=n);break}}l.D&&Object.entries(l.D).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let l;if(!(32&e.l)){e.l|=32;{const o=((t,e)=>{const n=t.$.replace(/-/g,"_"),l=t.F;if(!l)return;const o=i.get(l);return o?o[n]:import(`./${l}.entry.js`).then((t=>(i.set(l,t),t[n])),(t=>{s(t,e.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(o&&"then"in o){const t=()=>{};l=await o,t()}else l=o;if(!l)throw Error(`Constructor for "${n.$}#${e.U}" was not found`);l.isProxied||(n.H=l.watchers,ht(l,n,2),l.isProxied=!0);const r=()=>{};e.l|=8;try{new l(e)}catch(e){s(e,t)}e.l&=-9,e.l|=128,r(),dt(e.t,t)}if(l&&l.style){let t;"string"==typeof l.style&&(t=l.style);const e=F(n);if(!r.has(e)){const l=()=>{};((t,e,n)=>{let l=r.get(t);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,r.set(t,l)})(e,t,!!(1&n.l)),l()}}}const o=e.j,c=()=>et(e,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(t,e,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async t=>{if(!(1&f.l)){const e=n(t);e.L&&(e.L.map((t=>t())),e.L=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.N)&&e.N.then((()=>{}))}T.has(t)&&T.delete(t),t.shadowRoot&&T.has(t.shadowRoot)&&T.delete(t.shadowRoot)})(this))),f.raf((()=>{var t;const e=n(this);(null==(t=null==e?void 0:e.M)?void 0:t.v)instanceof Node&&!e.M.v.isConnected&&delete e.M.v}))}componentOnReady(){return n(this).N}};c.F=t[0],p.includes(u)||m.get(u)||(h.push(u),m.define(u,ht(a,c,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 t=null!=(o=f.C)?o:j(a);null!=t&&b.setAttribute("nonce",t),y.insertBefore(b,v?v.nextSibling:y.firstChild)}S=!1,$.length?$.map((t=>t.connectedCallback())):f.jmp((()=>w=setTimeout(ct,30)))},mt=(t,e,n)=>{n&&n.map((([n,l,o])=>{const s=vt(t,n),i=yt(e,o),r=bt(n);f.ael(s,l,i,r),(e.L=e.L||[]).push((()=>f.rel(s,l,i,r)))}))},yt=(t,e)=>n=>{var l;try{256&t.l?null==(l=t.t)||l[e](n):(t.k=t.k||[]).push([e,n])}catch(e){s(e,t.$hostElement$)}},vt=(t,e)=>4&e?a:8&e?u:t,bt=t=>({passive:!!(1&t),capture:!!(2&t)}),$t=t=>f.C=t;export{pt as b,H as c,P as h,h as p,l as r,$t as s}