@everymatrix/casino-play-random-game 1.54.11 → 1.55.0

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.
Files changed (24) hide show
  1. package/dist/casino-play-random-game/casino-play-random-game.esm.js +1 -1
  2. package/dist/casino-play-random-game/p-a29126ee.entry.js +1 -0
  3. package/dist/casino-play-random-game/p-abcaead5.js +2 -0
  4. package/dist/cjs/casino-play-random-game.cjs.entry.js +18 -39
  5. package/dist/cjs/casino-play-random-game.cjs.js +2 -2
  6. package/dist/cjs/{index-3117d673.js → index-4316ff18.js} +70 -171
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +1 -1
  9. package/dist/collection/components/casino-play-random-game/casino-play-random-game.js +17 -58
  10. package/dist/esm/casino-play-random-game.entry.js +18 -39
  11. package/dist/esm/casino-play-random-game.js +3 -3
  12. package/dist/esm/{index-8b2c4ca7.js → index-eac6b960.js} +70 -171
  13. package/dist/esm/loader.js +2 -2
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/packages/stencil/casino-play-random-game/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/packages/stencil/casino-play-random-game/stencil.config.dev.d.ts +2 -0
  16. package/package.json +1 -1
  17. package/dist/casino-play-random-game/p-116a3121.js +0 -2
  18. package/dist/casino-play-random-game/p-88910d2b.entry.js +0 -1
  19. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/packages/stencil/casino-play-random-game/stencil.config.d.ts +0 -2
  20. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/packages/stencil/casino-play-random-game/stencil.config.dev.d.ts +0 -2
  21. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  23. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  24. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, g as getElement } from './index-8b2c4ca7.js';
1
+ import { r as registerInstance, h, g as getElement } from './index-eac6b960.js';
2
2
 
3
3
  const getDevice = () => {
4
4
  let userAgent = window.navigator.userAgent;
@@ -87,44 +87,6 @@ const CasinoPlayRandomGameStyle0 = casinoPlayRandomGameCss;
87
87
  const CasinoPlayRandomGame = class {
88
88
  constructor(hostRef) {
89
89
  registerInstance(this, hostRef);
90
- /**
91
- * Language of the widget
92
- */
93
- this.language = 'en';
94
- /**
95
- * Configure a specific category for randomising the games.
96
- */
97
- this.specificCategory = '';
98
- /**
99
- * Icon visible initially
100
- */
101
- this.iconVisible = '';
102
- /**
103
- * Icon visible while rolling
104
- */
105
- this.iconVisibleOnAnim = '';
106
- /**
107
- * Open event on the game card.
108
- */
109
- this.launchByGameCard = '';
110
- /**
111
- * Client custom styling via string
112
- */
113
- this.clientStyling = '';
114
- /**
115
- * Client custom styling via url
116
- */
117
- this.clientStylingUrl = '';
118
- /**
119
- * Translations via URL
120
- */
121
- this.translationUrl = '';
122
- this.hasErrors = false;
123
- this.limitStylingAppends = false;
124
- this.isLoading = true;
125
- this.selectedGame = null;
126
- this.animationDone = false;
127
- this.animationStarted = false;
128
90
  this.animation = null;
129
91
  this.selectedGameIndex = null;
130
92
  this.selectedGameEl = null;
@@ -155,6 +117,23 @@ const CasinoPlayRandomGame = class {
155
117
  setTimeout(() => { this.host.shadowRoot.prepend(cssFile); }, 1);
156
118
  });
157
119
  };
120
+ this.endpoint = undefined;
121
+ this.datasource = undefined;
122
+ this.language = 'en';
123
+ this.specificCategory = '';
124
+ this.iconVisible = '';
125
+ this.iconVisibleOnAnim = '';
126
+ this.launchByGameCard = '';
127
+ this.clientStyling = '';
128
+ this.clientStylingUrl = '';
129
+ this.translationUrl = '';
130
+ this.hasErrors = false;
131
+ this.limitStylingAppends = false;
132
+ this.isLoading = true;
133
+ this.gamesToShow = undefined;
134
+ this.selectedGame = null;
135
+ this.animationDone = false;
136
+ this.animationStarted = false;
158
137
  }
159
138
  watchEndpoint(newValue, oldValue) {
160
139
  if (newValue && newValue != oldValue && this.endpoint) {
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-8b2c4ca7.js';
2
- export { s as setNonce } from './index-8b2c4ca7.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-eac6b960.js';
2
+ export { s as setNonce } from './index-eac6b960.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -1,21 +1,17 @@
1
1
  const NAMESPACE = 'casino-play-random-game';
2
- const BUILD = /* casino-play-random-game */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, 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: false, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, 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 = /* casino-play-random-game */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, 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: false, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, 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 };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.22.3 | 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
14
12
  var hostRefs = /* @__PURE__ */ new WeakMap();
15
13
  var getHostRef = (ref) => hostRefs.get(ref);
16
- var registerInstance = (lazyInstance, hostRef) => {
17
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
- };
14
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
19
15
  var registerHost = (hostElement, cmpMeta) => {
20
16
  const hostRef = {
21
17
  $flags$: 0,
@@ -28,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
28
24
  hostElement["s-p"] = [];
29
25
  hostElement["s-rc"] = [];
30
26
  }
31
- const ref = hostRefs.set(hostElement, hostRef);
32
- return ref;
27
+ return hostRefs.set(hostElement, hostRef);
33
28
  };
34
29
  var isMemberInElement = (elm, memberName) => memberName in elm;
35
30
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -66,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
66
61
  /* webpackExclude: /\.system\.entry\.js$/ */
67
62
  /* webpackMode: "lazy" */
68
63
  `./${bundleId}.entry.js${""}`
69
- ).then(
70
- (importedModule) => {
71
- {
72
- cmpModules.set(bundleId, importedModule);
73
- }
74
- return importedModule[exportName];
75
- },
76
- (e) => {
77
- consoleError(e, hostRef.$hostElement$);
64
+ ).then((importedModule) => {
65
+ {
66
+ cmpModules.set(bundleId, importedModule);
78
67
  }
79
- );
68
+ return importedModule[exportName];
69
+ }, consoleError);
80
70
  };
81
71
 
82
72
  // src/client/client-style.ts
83
73
  var styles = /* @__PURE__ */ new Map();
84
- var HYDRATED_STYLE_ID = "sty-id";
85
74
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
86
75
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
87
76
  var win = typeof window !== "undefined" ? window : {};
@@ -139,6 +128,12 @@ var flush = () => {
139
128
  };
140
129
  var nextTick = (cb) => promiseResolve().then(cb);
141
130
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
131
+
132
+ // src/utils/constants.ts
133
+ var EMPTY_OBJ = {};
134
+
135
+ // src/utils/helpers.ts
136
+ var isDef = (v) => v != null;
142
137
  var isComplexType = (o) => {
143
138
  o = typeof o;
144
139
  return o === "object" || o === "function";
@@ -321,7 +316,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
321
316
  }
322
317
  if (!appliedStyles.has(scopeId2)) {
323
318
  {
324
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
319
+ styleElm = doc.createElement("style");
325
320
  styleElm.innerHTML = style;
326
321
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
327
322
  if (nonce != null) {
@@ -331,10 +326,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
331
326
  if (styleContainerNode.nodeName === "HEAD") {
332
327
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
333
328
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
334
- styleContainerNode.insertBefore(
335
- styleElm,
336
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
337
- );
329
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
338
330
  } else if ("host" in styleContainerNode) {
339
331
  if (supportsConstructableStylesheets) {
340
332
  const stylesheet = new CSSStyleSheet();
@@ -352,7 +344,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
352
344
  styleContainerNode.append(styleElm);
353
345
  }
354
346
  }
355
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
347
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
356
348
  styleContainerNode.insertBefore(styleElm, null);
357
349
  }
358
350
  }
@@ -377,25 +369,23 @@ var attachStyles = (hostRef) => {
377
369
  const scopeId2 = addStyle(
378
370
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
379
371
  cmpMeta);
380
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
372
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
381
373
  elm["s-sc"] = scopeId2;
382
374
  elm.classList.add(scopeId2 + "-h");
383
375
  }
384
376
  endAttachStyles();
385
377
  };
386
378
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
387
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
379
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
388
380
  if (oldValue !== newValue) {
389
381
  let isProp = isMemberInElement(elm, memberName);
390
382
  let ln = memberName.toLowerCase();
391
383
  if (memberName === "class") {
392
384
  const classList = elm.classList;
393
385
  const oldClasses = parseClassList(oldValue);
394
- let newClasses = parseClassList(newValue);
395
- {
396
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
397
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
398
- }
386
+ const newClasses = parseClassList(newValue);
387
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
388
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
399
389
  } else if (memberName === "key") ; else if (memberName === "ref") {
400
390
  if (newValue) {
401
391
  newValue(elm);
@@ -433,7 +423,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
433
423
  elm.setAttribute(memberName, n);
434
424
  }
435
425
  }
436
- } else if (elm[memberName] !== newValue) {
426
+ } else {
437
427
  elm[memberName] = newValue;
438
428
  }
439
429
  } catch (e) {
@@ -455,44 +445,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
455
445
  }
456
446
  };
457
447
  var parseClassListRegex = /\s/;
458
- var parseClassList = (value) => {
459
- if (typeof value === "object" && value && "baseVal" in value) {
460
- value = value.baseVal;
461
- }
462
- if (!value || typeof value !== "string") {
463
- return [];
464
- }
465
- return value.split(parseClassListRegex);
466
- };
448
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
467
449
  var CAPTURE_EVENT_SUFFIX = "Capture";
468
450
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
469
451
 
470
452
  // src/runtime/vdom/update-element.ts
471
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
453
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
472
454
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
473
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
474
- const newVnodeAttrs = newVnode.$attrs$ || {};
455
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
456
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
475
457
  {
476
458
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
477
459
  if (!(memberName in newVnodeAttrs)) {
478
- setAccessor(
479
- elm,
480
- memberName,
481
- oldVnodeAttrs[memberName],
482
- void 0,
483
- isSvgMode2,
484
- newVnode.$flags$);
460
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
485
461
  }
486
462
  }
487
463
  }
488
464
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
489
- setAccessor(
490
- elm,
491
- memberName,
492
- oldVnodeAttrs[memberName],
493
- newVnodeAttrs[memberName],
494
- isSvgMode2,
495
- newVnode.$flags$);
465
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
496
466
  }
497
467
  };
498
468
  function sortedAttrNames(attrNames) {
@@ -504,10 +474,13 @@ function sortedAttrNames(attrNames) {
504
474
  attrNames
505
475
  );
506
476
  }
477
+
478
+ // src/runtime/vdom/vdom-render.ts
479
+ var scopeId;
507
480
  var hostTagName;
508
481
  var useNativeShadowDom = false;
509
482
  var isSvgMode = false;
510
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
483
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
511
484
  const newVNode2 = newParentVNode.$children$[childIndex];
512
485
  let i2 = 0;
513
486
  let elm;
@@ -521,6 +494,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
521
494
  {
522
495
  updateElement(null, newVNode2, isSvgMode);
523
496
  }
497
+ const rootNode = elm.getRootNode();
498
+ const isElementWithinShadowRoot = !rootNode.querySelector("body");
499
+ if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
500
+ elm.classList.add(elm["s-si"] = scopeId);
501
+ }
524
502
  if (newVNode2.$children$) {
525
503
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
526
504
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -650,9 +628,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
650
628
  if (!isInitialRender) {
651
629
  return leftVNode.$key$ === rightVNode.$key$;
652
630
  }
653
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
654
- leftVNode.$key$ = rightVNode.$key$;
655
- }
656
631
  return true;
657
632
  }
658
633
  return false;
@@ -692,9 +667,8 @@ var nullifyVNodeRefs = (vNode) => {
692
667
  }
693
668
  };
694
669
  var insertBefore = (parent, newNode, reference) => {
695
- {
696
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
697
- }
670
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
671
+ return inserted;
698
672
  };
699
673
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
700
674
  const hostElm = hostRef.$hostElement$;
@@ -719,21 +693,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
719
693
  rootVnode.$flags$ |= 4 /* isHost */;
720
694
  hostRef.$vnode$ = rootVnode;
721
695
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
722
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
696
+ {
697
+ scopeId = hostElm["s-sc"];
698
+ }
699
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
723
700
  patch(oldVNode, rootVnode, isInitialLoad);
724
701
  };
725
702
 
726
703
  // src/runtime/update-component.ts
727
704
  var attachToAncestor = (hostRef, ancestorComponent) => {
728
705
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
729
- const index = ancestorComponent["s-p"].push(
730
- new Promise(
731
- (r) => hostRef.$onRenderResolve$ = () => {
732
- ancestorComponent["s-p"].splice(index - 1, 1);
733
- r();
734
- }
735
- )
736
- );
706
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
737
707
  }
738
708
  };
739
709
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -760,7 +730,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
760
730
  let maybePromise;
761
731
  if (isInitialLoad) {
762
732
  {
763
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
733
+ maybePromise = safeCall(instance, "componentWillLoad");
764
734
  }
765
735
  }
766
736
  endSchedule();
@@ -834,7 +804,7 @@ var postUpdateComponent = (hostRef) => {
834
804
  addHydratedFlag(elm);
835
805
  }
836
806
  {
837
- safeCall(instance, "componentDidLoad", void 0, elm);
807
+ safeCall(instance, "componentDidLoad");
838
808
  }
839
809
  endPostUpdate();
840
810
  {
@@ -858,14 +828,17 @@ var postUpdateComponent = (hostRef) => {
858
828
  }
859
829
  };
860
830
  var appDidLoad = (who) => {
831
+ {
832
+ addHydratedFlag(doc.documentElement);
833
+ }
861
834
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
862
835
  };
863
- var safeCall = (instance, method, arg, elm) => {
836
+ var safeCall = (instance, method, arg) => {
864
837
  if (instance && instance[method]) {
865
838
  try {
866
839
  return instance[method](arg);
867
840
  } catch (e) {
868
- consoleError(e, elm);
841
+ consoleError(e);
869
842
  }
870
843
  }
871
844
  return void 0;
@@ -924,68 +897,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
924
897
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
925
898
  members.map(([memberName, [memberFlags]]) => {
926
899
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
927
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
928
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
929
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
930
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
931
- Object.defineProperty(prototype, memberName, {
932
- get() {
933
- {
934
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
935
- return getValue(this, memberName);
936
- }
937
- const ref = getHostRef(this);
938
- const instance = ref ? ref.$lazyInstance$ : prototype;
939
- if (!instance) return;
940
- return instance[memberName];
941
- }
942
- },
943
- configurable: true,
944
- enumerable: true
945
- });
946
- }
947
900
  Object.defineProperty(prototype, memberName, {
901
+ get() {
902
+ return getValue(this, memberName);
903
+ },
948
904
  set(newValue) {
949
- const ref = getHostRef(this);
950
- if (origSetter) {
951
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
952
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
953
- newValue = ref.$instanceValues$.get(memberName);
954
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
955
- ref.$instanceValues$.set(memberName, currentValue);
956
- }
957
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
958
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
959
- setValue(this, memberName, newValue, cmpMeta);
960
- return;
961
- }
962
- {
963
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
964
- setValue(this, memberName, newValue, cmpMeta);
965
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
966
- ref.$onReadyPromise$.then(() => {
967
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
968
- ref.$lazyInstance$[memberName] = newValue;
969
- }
970
- });
971
- }
972
- return;
973
- }
974
- const setterSetVal = () => {
975
- const currentValue = ref.$lazyInstance$[memberName];
976
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
977
- ref.$instanceValues$.set(memberName, currentValue);
978
- }
979
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
980
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
981
- };
982
- if (ref.$lazyInstance$) {
983
- setterSetVal();
984
- } else {
985
- ref.$onReadyPromise$.then(() => setterSetVal());
986
- }
987
- }
988
- }
905
+ setValue(this, memberName, newValue, cmpMeta);
906
+ },
907
+ configurable: true,
908
+ enumerable: true
989
909
  });
990
910
  }
991
911
  });
@@ -995,7 +915,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
995
915
  plt.jmp(() => {
996
916
  var _a2;
997
917
  const propName = attrNameToPropName.get(attrName);
998
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
918
+ if (this.hasOwnProperty(propName)) {
999
919
  newValue = this[propName];
1000
920
  delete this[propName];
1001
921
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1015,11 +935,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1015
935
  }
1016
936
  return;
1017
937
  }
1018
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1019
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1020
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1021
- this[propName] = newValue;
1022
- }
938
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1023
939
  });
1024
940
  };
1025
941
  Cstr.observedAttributes = Array.from(
@@ -1048,7 +964,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1048
964
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1049
965
  const bundleId = cmpMeta.$lazyBundleId$;
1050
966
  if (bundleId) {
1051
- const CstrImport = loadModule(cmpMeta, hostRef);
967
+ const CstrImport = loadModule(cmpMeta);
1052
968
  if (CstrImport && "then" in CstrImport) {
1053
969
  const endLoad = uniqueTime();
1054
970
  Cstr = await CstrImport;
@@ -1073,7 +989,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1073
989
  try {
1074
990
  new Cstr(hostRef);
1075
991
  } catch (e) {
1076
- consoleError(e, elm);
992
+ consoleError(e);
1077
993
  }
1078
994
  {
1079
995
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1082,7 +998,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1082
998
  hostRef.$flags$ |= 128 /* isWatchReady */;
1083
999
  }
1084
1000
  endNewInstance();
1085
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1001
+ fireConnectedCallback(hostRef.$lazyInstance$);
1086
1002
  } else {
1087
1003
  Cstr = elm.constructor;
1088
1004
  const cmpTag = elm.localName;
@@ -1109,9 +1025,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1109
1025
  schedule();
1110
1026
  }
1111
1027
  };
1112
- var fireConnectedCallback = (instance, elm) => {
1028
+ var fireConnectedCallback = (instance) => {
1113
1029
  {
1114
- safeCall(instance, "connectedCallback", void 0, elm);
1030
+ safeCall(instance, "connectedCallback");
1115
1031
  }
1116
1032
  };
1117
1033
 
@@ -1146,15 +1062,15 @@ var connectedCallback = (elm) => {
1146
1062
  }
1147
1063
  } else {
1148
1064
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1149
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1065
+ fireConnectedCallback(hostRef.$lazyInstance$);
1150
1066
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1151
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1067
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1152
1068
  }
1153
1069
  }
1154
1070
  endConnected();
1155
1071
  }
1156
1072
  };
1157
- var disconnectInstance = (instance, elm) => {
1073
+ var disconnectInstance = (instance) => {
1158
1074
  };
1159
1075
  var disconnectedCallback = async (elm) => {
1160
1076
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1163,12 +1079,6 @@ var disconnectedCallback = async (elm) => {
1163
1079
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1164
1080
  }
1165
1081
  }
1166
- if (rootAppliedStyles.has(elm)) {
1167
- rootAppliedStyles.delete(elm);
1168
- }
1169
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1170
- rootAppliedStyles.delete(elm.shadowRoot);
1171
- }
1172
1082
  };
1173
1083
 
1174
1084
  // src/runtime/bootstrap-lazy.ts
@@ -1249,17 +1159,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1249
1159
  }
1250
1160
  disconnectedCallback() {
1251
1161
  plt.jmp(() => disconnectedCallback(this));
1252
- plt.raf(() => {
1253
- var _a3;
1254
- const hostRef = getHostRef(this);
1255
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1256
- if (i2 > -1) {
1257
- deferredConnectedCallbacks.splice(i2, 1);
1258
- }
1259
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1260
- delete hostRef.$vnode$.$elm$;
1261
- }
1262
- });
1263
1162
  }
1264
1163
  componentOnReady() {
1265
1164
  return getHostRef(this).$onReadyPromise$;
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-8b2c4ca7.js';
2
- export { s as setNonce } from './index-8b2c4ca7.js';
1
+ import { b as bootstrapLazy } from './index-eac6b960.js';
2
+ export { s as setNonce } from './index-eac6b960.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-play-random-game",
3
- "version": "1.54.11",
3
+ "version": "1.55.0",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1,2 +0,0 @@
1
- var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>{t.set(n.t=e,n)},l=(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={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),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.o?w(b):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),$(y),(p=m.length>0)&&f.raf(b)},w=e=>h().then(e),S=v(y,!0),g=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>O,map:()=>E,ok:()=>k,unwrap:()=>M,unwrapErr:()=>x});var k=e=>({isOk:!0,isErr:!1,value:e}),O=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=>k(e))):k(n)}if(e.isErr)return O(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 o=null,l=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!g(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?A(null,o):o),i=s)};if(c(n),t){t.key&&(l=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=l,u},A=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),L={},N=(e,t)=>null==e||g(e)?e:1&t?e+"":e,R=e=>n(e).$hostElement$,T=new WeakMap,D=e=>"sc-"+e.$,H=(e,t,n,o,s,i)=>{if(n!==o){let r=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=W(n);let s=W(o);t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("key"===t);else if("ref"===t)o&&o(e);else if(r||"o"!==t[0]||"n"!==t[1]){const l=g(o);if((r||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]!==o&&(e[t]=o);else{const l=null==o?"":o;"list"===t?r=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!l&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):l(u,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(F);t=t.replace(V,""),n&&f.rel(e,t,n,l),o&&f.ael(e,t,o,l)}}},U=/\s/,W=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(U):[]),F="Capture",V=RegExp(F+"$"),q=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||{},s=t.u||{};for(const e of G(Object.keys(l)))e in s||H(o,e,l[e],void 0,n,t.o);for(const e of G(Object.keys(s)))H(o,e,l[e],s[e],n,t.o)};function G(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var _=!1,z=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(null!==o.i)l=o.v=a.createTextNode(o.i);else if(l=o.v=a.createElement(o.m),q(null,o,_),o.h)for(i=0;i<o.h.length;++i)s=z(e,o,i),s&&l.appendChild(s);return l["s-hn"]=C,l},B=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=z(null,n,l),i&&(o[l].v=i,X(r,i,t)))},I=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;Q(t),e&&e.remove()}}},J=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),K=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,s=t.h,i=t.i;null===i?(q(e,t,_),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=o.length-1,m=o[0],y=o[p];for(;r<=f&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(J(h,m,l))K(h,m,l),h=t[++r],m=o[++c];else if(J(d,y,l))K(d,y,l),d=t[--f],y=o[--p];else if(J(h,y,l))K(h,y,l),X(e,h.v,d.v.nextSibling),h=t[++r],y=o[--p];else if(J(d,m,l))K(d,m,l),X(e,d.v,h.v),d=t[--f],m=o[++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=z(t&&t[c],n,u):(K(i,m,l),t[u]=void 0,s=i.v),m=o[++c]):(s=z(t&&t[c],n,c),m=o[++c]),s&&X(h.v.parentNode,s,h.v)}r>f?B(e,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&I(t,r,f)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),B(o,null,t,s,0,s.length-1)):!n&&null!==l&&I(l,0,l.length-1)):e.i!==i&&(o.data=i)},Q=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Q)},X=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Y=(e,t)=>{if(t&&!e.S&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.S=()=>{t["s-p"].splice(n-1,1),o()})))}},Z=(e,t)=>{if(e.o|=16,!(4&e.o))return Y(e,e.j),S((()=>ee(e,t)));e.o|=512},ee=(e,t)=>{const n=e.$hostElement$,o=e.t;if(!o)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`);let l;return t&&(l=re(o,"componentWillLoad",void 0,n)),te(l,(()=>oe(e,o,t)))},te=(e,t)=>ne(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ne=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,oe=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=D(t),l=r.get(o);if(e=11===e.nodeType?e:a,l)if("string"==typeof l){let s,i=T.get(e=e.head||e);if(i||T.set(e,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||a.createElement("style"),s.innerHTML=l;const i=null!=(n=f.O)?n:j(a);if(null!=i&&s.setAttribute("nonce",i),!(1&t.o))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(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=c),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);(10&o&&2&o||128&o)&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);le(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>se(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},le=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.k,s=e.C||A(null,null),i=(e=>e&&e.m===L)(t)?t:P(null,null,t);if(C=o.tagName,l.M&&(i.u=i.u||{},l.M.map((([e,t])=>i.u[t]=o[e]))),n&&i.u)for(const e of Object.keys(i.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=o[e]);i.m=null,i.o|=4,e.C=i,i.v=s.v=o.shadowRoot||o,K(s,i,n)})(e,t,o)}catch(t){s(t,e.$hostElement$)}return null},se=e=>{const t=e.$hostElement$,n=e.t,o=e.j;64&e.o||(e.o|=64,ce(t),re(n,"componentDidLoad",void 0,t),e.P(t),o||ie()),e.S&&(e.S(),e.S=void 0),512&e.o&&w((()=>Z(e,!1))),e.o&=-517},ie=()=>{w((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"casino-play-random-game"}});return e.dispatchEvent(t),t})(u)))},re=(e,t,n,o)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e,o)}},ce=e=>e.classList.add("hydrated"),ue=(e,t,o,l)=>{const i=n(e);if(!i)throw Error(`Couldn't find host element for "${l.$}" 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.A.get(t),u=i.o,a=i.t;if(o=N(o,l.L[t][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.A.set(t,o),a)){if(l.N&&128&u){const e=l.N[t];e&&e.map((e=>{try{a[e](o,c,t)}catch(e){s(e,r)}}))}2==(18&u)&&Z(i,!1)}},ae=(e,t,o)=>{var l,s;const i=e.prototype;if(t.L||t.N||e.watchers){e.watchers&&!t.N&&(t.N=e.watchers);const r=Object.entries(null!=(l=t.L)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,e)||{};s&&(t.L[e][0]|=2048),r&&(t.L[e][0]|=4096),(1&o||!s)&&Object.defineProperty(i,e,{get(){{if(!(2048&t.L[e][0]))return((e,t)=>n(this).A.get(t))(0,e);const o=n(this),l=o?o.t:i;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,e,{set(s){const i=n(this);if(r){const n=32&l?this[e]:i.$hostElement$[e];return void 0===n&&i.A.get(e)?s=i.A.get(e):!i.A.get(e)&&n&&i.A.set(e,n),r.call(this,N(s,l)),void ue(this,e,s=32&l?this[e]:i.$hostElement$[e],t)}{if(!(1&o&&4096&t.L[e][0]))return ue(this,e,s,t),void(1&o&&!i.t&&i.R.then((()=>{4096&t.L[e][0]&&i.t[e]!==i.A.get(e)&&(i.t[e]=s)})));const n=()=>{const n=i.t[e];!i.A.get(e)&&n&&i.A.set(e,n),i.t[e]=N(s,l),ue(this,e,i.t[e],t)};i.t?n():i.R.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){f.jmp((()=>{var r;const c=o.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 o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=t.N)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,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 l;const s=n[1]||e;return o.set(s,e),512&n[0]&&(null==(l=t.M)||l.push([e,s])),s}))]))}}return e},fe=(e,t)=>{re(e,"connectedCallback",void 0,t)},he=(e,o={})=>{var l;const h=[],p=o.exclude||[],m=u.customElements,y=a.head,v=y.querySelector("meta[charset]"),$=a.createElement("style"),b=[];let w,S=!0;Object.assign(f,o),f.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((o=>{var l;const c={o:o[0],$:o[1],L:o[2],T:o[3]};4&c.o&&(g=!0),c.L=o[2],c.M=[],c.N=null!=(l=o[4])?l:{};const u=c.$,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,k:n,A:new Map};o.R=new Promise((e=>o.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,c),1&c.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),S?b.push(this):f.jmp((()=>(e=>{if(!(1&f.o)){const t=n(e),o=t.k,l=()=>{};if(1&t.o)(null==t?void 0:t.t)?fe(t.t,e):(null==t?void 0:t.R)&&t.R.then((()=>fe(t.t,e)));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Y(t,t.j=n);break}}o.L&&Object.entries(o.L).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.D){const l=((e,t)=>{const n=e.$.replace(/-/g,"_"),o=e.D;if(!o)return;const l=i.get(o);return l?l[n]:import(`./${o}.entry.js`).then((e=>(i.set(o,e),e[n])),(e=>{s(e,t.$hostElement$)}))
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(l&&"then"in l){const e=()=>{};o=await l,e()}else o=l;if(!o)throw Error(`Constructor for "${n.$}#${t.H}" was not found`);o.isProxied||(n.N=o.watchers,ae(o,n,2),o.isProxied=!0);const r=()=>{};t.o|=8;try{new o(t)}catch(t){s(t,e)}t.o&=-9,t.o|=128,r(),fe(t.t,e)}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=D(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,r.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.j,c=()=>Z(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(async e=>{if(!(1&f.o)){const t=n(e);(null==t?void 0:t.t)||(null==t?void 0:t.R)&&t.R.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),o=b.findIndex((e=>e===this));o>-1&&b.splice(o,1),(null==(e=null==t?void 0:t.C)?void 0:e.v)instanceof Node&&!t.C.v.isConnected&&delete t.C.v}))}componentOnReady(){return n(this).R}};c.D=e[0],p.includes(u)||m.get(u)||(h.push(u),m.define(u,ae(a,c,1)))}))})),h.length>0&&(g&&($.textContent+=c),$.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const e=null!=(l=f.O)?l:j(a);null!=e&&$.setAttribute("nonce",e),y.insertBefore($,v?v.nextSibling:y.firstChild)}S=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>w=setTimeout(ie,30)))},de=e=>f.O=e;export{he as b,R as g,P as h,h as p,o as r,de as s}