@everymatrix/lottery-ticket 1.56.0 → 1.56.2

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/cjs/{index-d550a71c.js → index-d6e1a914.js} +72 -207
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/lottery-bullet_3.cjs.entry.js +67 -232
  4. package/dist/cjs/lottery-ticket.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/lottery-ticket/lottery-ticket.js +16 -55
  7. package/dist/esm/{index-d2d50ea2.js → index-09f8a089.js} +72 -207
  8. package/dist/esm/loader.js +2 -2
  9. package/dist/esm/lottery-bullet_3.entry.js +67 -232
  10. package/dist/esm/lottery-ticket.js +3 -3
  11. package/dist/lottery-ticket/lottery-ticket.esm.js +1 -1
  12. package/dist/lottery-ticket/p-04eb942c.js +2 -0
  13. package/dist/lottery-ticket/{p-13f57056.entry.js → p-fc58bdf1.entry.js} +130 -132
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/packages/stencil/lottery-ticket/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/packages/stencil/lottery-ticket/stencil.config.dev.d.ts +2 -0
  16. package/dist/types/stencil-public-runtime.d.ts +0 -6
  17. package/package.json +1 -1
  18. package/dist/lottery-ticket/p-383a9881.js +0 -2
  19. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/packages/stencil/lottery-ticket/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/packages/stencil/lottery-ticket/stencil.config.dev.d.ts +0 -2
  21. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -21,23 +21,19 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'lottery-ticket';
24
- const BUILD = /* lottery-ticket */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, 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: 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: 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: true, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* lottery-ticket */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, 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: 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: 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: true, vdomText: true, vdomXlink: false, watchCallback: true };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
31
31
  for (var name in all)
32
32
  __defProp(target, name, { get: all[name], enumerable: true });
33
33
  };
34
-
35
- // src/client/client-host-ref.ts
36
34
  var hostRefs = /* @__PURE__ */ new WeakMap();
37
35
  var getHostRef = (ref) => hostRefs.get(ref);
38
- var registerInstance = (lazyInstance, hostRef) => {
39
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
40
- };
36
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
41
37
  var registerHost = (hostElement, cmpMeta) => {
42
38
  const hostRef = {
43
39
  $flags$: 0,
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
50
46
  hostElement["s-p"] = [];
51
47
  hostElement["s-rc"] = [];
52
48
  }
53
- const ref = hostRefs.set(hostElement, hostRef);
54
- return ref;
49
+ return hostRefs.set(hostElement, hostRef);
55
50
  };
56
51
  var isMemberInElement = (elm, memberName) => memberName in elm;
57
52
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -88,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
88
83
  /* webpackExclude: /\.system\.entry\.js$/ */
89
84
  /* webpackMode: "lazy" */
90
85
  `./${bundleId}.entry.js${""}`
91
- )); }).then(
92
- (importedModule) => {
93
- {
94
- cmpModules.set(bundleId, importedModule);
95
- }
96
- return importedModule[exportName];
97
- },
98
- (e) => {
99
- consoleError(e, hostRef.$hostElement$);
86
+ )); }).then((importedModule) => {
87
+ {
88
+ cmpModules.set(bundleId, importedModule);
100
89
  }
101
- );
90
+ return importedModule[exportName];
91
+ }, consoleError);
102
92
  };
103
93
 
104
94
  // src/client/client-style.ts
105
95
  var styles = /* @__PURE__ */ new Map();
106
- var HYDRATED_STYLE_ID = "sty-id";
107
96
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
108
97
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
109
98
  var win = typeof window !== "undefined" ? window : {};
@@ -177,6 +166,12 @@ var flush = () => {
177
166
  };
178
167
  var nextTick = (cb) => promiseResolve().then(cb);
179
168
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
169
+
170
+ // src/utils/constants.ts
171
+ var EMPTY_OBJ = {};
172
+
173
+ // src/utils/helpers.ts
174
+ var isDef = (v) => v != null;
180
175
  var isComplexType = (o) => {
181
176
  o = typeof o;
182
177
  return o === "object" || o === "function";
@@ -380,40 +375,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
380
375
  }
381
376
  if (!appliedStyles.has(scopeId2)) {
382
377
  {
383
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
378
+ styleElm = doc.createElement("style");
384
379
  styleElm.innerHTML = style;
385
380
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
386
381
  if (nonce != null) {
387
382
  styleElm.setAttribute("nonce", nonce);
388
383
  }
389
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
390
- if (styleContainerNode.nodeName === "HEAD") {
391
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
392
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
393
- styleContainerNode.insertBefore(
394
- styleElm,
395
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
396
- );
397
- } else if ("host" in styleContainerNode) {
398
- if (supportsConstructableStylesheets) {
399
- const stylesheet = new CSSStyleSheet();
400
- stylesheet.replaceSync(style);
401
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
402
- } else {
403
- const existingStyleContainer = styleContainerNode.querySelector("style");
404
- if (existingStyleContainer) {
405
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
406
- } else {
407
- styleContainerNode.prepend(styleElm);
408
- }
409
- }
410
- } else {
411
- styleContainerNode.append(styleElm);
412
- }
413
- }
414
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
415
- styleContainerNode.insertBefore(styleElm, null);
416
- }
384
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
417
385
  }
418
386
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
419
387
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -436,25 +404,23 @@ var attachStyles = (hostRef) => {
436
404
  const scopeId2 = addStyle(
437
405
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
438
406
  cmpMeta);
439
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
407
+ if (flags & 10 /* needsScopedEncapsulation */) {
440
408
  elm["s-sc"] = scopeId2;
441
409
  elm.classList.add(scopeId2 + "-h");
442
410
  }
443
411
  endAttachStyles();
444
412
  };
445
413
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
446
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
414
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
447
415
  if (oldValue !== newValue) {
448
416
  let isProp = isMemberInElement(elm, memberName);
449
417
  let ln = memberName.toLowerCase();
450
418
  if (memberName === "class") {
451
419
  const classList = elm.classList;
452
420
  const oldClasses = parseClassList(oldValue);
453
- let newClasses = parseClassList(newValue);
454
- {
455
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
456
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
457
- }
421
+ const newClasses = parseClassList(newValue);
422
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
423
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
458
424
  } else if (memberName === "style") {
459
425
  {
460
426
  for (const prop in oldValue) {
@@ -507,13 +473,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
507
473
  if (memberName === "list") {
508
474
  isProp = false;
509
475
  } else if (oldValue == null || elm[memberName] != n) {
510
- if (typeof elm.__lookupSetter__(memberName) === "function") {
511
- elm[memberName] = n;
512
- } else {
513
- elm.setAttribute(memberName, n);
514
- }
476
+ elm[memberName] = n;
515
477
  }
516
- } else if (elm[memberName] !== newValue) {
478
+ } else {
517
479
  elm[memberName] = newValue;
518
480
  }
519
481
  } catch (e) {
@@ -535,44 +497,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
535
497
  }
536
498
  };
537
499
  var parseClassListRegex = /\s/;
538
- var parseClassList = (value) => {
539
- if (typeof value === "object" && value && "baseVal" in value) {
540
- value = value.baseVal;
541
- }
542
- if (!value || typeof value !== "string") {
543
- return [];
544
- }
545
- return value.split(parseClassListRegex);
546
- };
500
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
547
501
  var CAPTURE_EVENT_SUFFIX = "Capture";
548
502
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
549
503
 
550
504
  // src/runtime/vdom/update-element.ts
551
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
505
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
552
506
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
553
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
554
- const newVnodeAttrs = newVnode.$attrs$ || {};
507
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
508
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
555
509
  {
556
510
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
557
511
  if (!(memberName in newVnodeAttrs)) {
558
- setAccessor(
559
- elm,
560
- memberName,
561
- oldVnodeAttrs[memberName],
562
- void 0,
563
- isSvgMode2,
564
- newVnode.$flags$);
512
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
565
513
  }
566
514
  }
567
515
  }
568
516
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
569
- setAccessor(
570
- elm,
571
- memberName,
572
- oldVnodeAttrs[memberName],
573
- newVnodeAttrs[memberName],
574
- isSvgMode2,
575
- newVnode.$flags$);
517
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
576
518
  }
577
519
  };
578
520
  function sortedAttrNames(attrNames) {
@@ -584,10 +526,13 @@ function sortedAttrNames(attrNames) {
584
526
  attrNames
585
527
  );
586
528
  }
529
+
530
+ // src/runtime/vdom/vdom-render.ts
531
+ var scopeId;
587
532
  var hostTagName;
588
533
  var useNativeShadowDom = false;
589
534
  var isSvgMode = false;
590
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
535
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
591
536
  const newVNode2 = newParentVNode.$children$[childIndex];
592
537
  let i2 = 0;
593
538
  let elm;
@@ -601,6 +546,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
601
546
  {
602
547
  updateElement(null, newVNode2, isSvgMode);
603
548
  }
549
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
550
+ elm.classList.add(elm["s-si"] = scopeId);
551
+ }
604
552
  if (newVNode2.$children$) {
605
553
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
606
554
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -730,9 +678,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
730
678
  if (!isInitialRender) {
731
679
  return leftVNode.$key$ === rightVNode.$key$;
732
680
  }
733
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
734
- leftVNode.$key$ = rightVNode.$key$;
735
- }
736
681
  return true;
737
682
  }
738
683
  return false;
@@ -755,10 +700,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
755
700
  elm.textContent = "";
756
701
  }
757
702
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
758
- } else if (
759
- // don't do this on initial render as it can cause non-hydrated content to be removed
760
- !isInitialRender && BUILD.updatable && oldChildren !== null
761
- ) {
703
+ } else if (oldChildren !== null) {
762
704
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
763
705
  }
764
706
  } else if (oldVNode.$text$ !== text) {
@@ -772,9 +714,8 @@ var nullifyVNodeRefs = (vNode) => {
772
714
  }
773
715
  };
774
716
  var insertBefore = (parent, newNode, reference) => {
775
- {
776
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
777
- }
717
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
718
+ return inserted;
778
719
  };
779
720
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
780
721
  const hostElm = hostRef.$hostElement$;
@@ -799,21 +740,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
799
740
  rootVnode.$flags$ |= 4 /* isHost */;
800
741
  hostRef.$vnode$ = rootVnode;
801
742
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
802
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
743
+ {
744
+ scopeId = hostElm["s-sc"];
745
+ }
746
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
803
747
  patch(oldVNode, rootVnode, isInitialLoad);
804
748
  };
805
749
 
806
750
  // src/runtime/update-component.ts
807
751
  var attachToAncestor = (hostRef, ancestorComponent) => {
808
752
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
809
- const index = ancestorComponent["s-p"].push(
810
- new Promise(
811
- (r) => hostRef.$onRenderResolve$ = () => {
812
- ancestorComponent["s-p"].splice(index - 1, 1);
813
- r();
814
- }
815
- )
816
- );
753
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
817
754
  }
818
755
  };
819
756
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -842,12 +779,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
842
779
  {
843
780
  hostRef.$flags$ |= 256 /* isListenReady */;
844
781
  if (hostRef.$queuedListeners$) {
845
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
782
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
846
783
  hostRef.$queuedListeners$ = void 0;
847
784
  }
848
785
  }
849
786
  {
850
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
787
+ maybePromise = safeCall(instance, "componentWillLoad");
851
788
  }
852
789
  }
853
790
  endSchedule();
@@ -916,7 +853,7 @@ var postUpdateComponent = (hostRef) => {
916
853
  const instance = hostRef.$lazyInstance$ ;
917
854
  const ancestorComponent = hostRef.$ancestorComponent$;
918
855
  {
919
- safeCall(instance, "componentDidRender", void 0, elm);
856
+ safeCall(instance, "componentDidRender");
920
857
  }
921
858
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
922
859
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -945,14 +882,17 @@ var postUpdateComponent = (hostRef) => {
945
882
  }
946
883
  };
947
884
  var appDidLoad = (who) => {
885
+ {
886
+ addHydratedFlag(doc.documentElement);
887
+ }
948
888
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
949
889
  };
950
- var safeCall = (instance, method, arg, elm) => {
890
+ var safeCall = (instance, method, arg) => {
951
891
  if (instance && instance[method]) {
952
892
  try {
953
893
  return instance[method](arg);
954
894
  } catch (e) {
955
- consoleError(e, elm);
895
+ consoleError(e);
956
896
  }
957
897
  }
958
898
  return void 0;
@@ -1011,68 +951,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1011
951
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1012
952
  members.map(([memberName, [memberFlags]]) => {
1013
953
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1014
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1015
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1016
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1017
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
1018
- Object.defineProperty(prototype, memberName, {
1019
- get() {
1020
- {
1021
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1022
- return getValue(this, memberName);
1023
- }
1024
- const ref = getHostRef(this);
1025
- const instance = ref ? ref.$lazyInstance$ : prototype;
1026
- if (!instance) return;
1027
- return instance[memberName];
1028
- }
1029
- },
1030
- configurable: true,
1031
- enumerable: true
1032
- });
1033
- }
1034
954
  Object.defineProperty(prototype, memberName, {
955
+ get() {
956
+ return getValue(this, memberName);
957
+ },
1035
958
  set(newValue) {
1036
- const ref = getHostRef(this);
1037
- if (origSetter) {
1038
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1039
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1040
- newValue = ref.$instanceValues$.get(memberName);
1041
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1042
- ref.$instanceValues$.set(memberName, currentValue);
1043
- }
1044
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1045
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1046
- setValue(this, memberName, newValue, cmpMeta);
1047
- return;
1048
- }
1049
- {
1050
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1051
- setValue(this, memberName, newValue, cmpMeta);
1052
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1053
- ref.$onReadyPromise$.then(() => {
1054
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1055
- ref.$lazyInstance$[memberName] = newValue;
1056
- }
1057
- });
1058
- }
1059
- return;
1060
- }
1061
- const setterSetVal = () => {
1062
- const currentValue = ref.$lazyInstance$[memberName];
1063
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1064
- ref.$instanceValues$.set(memberName, currentValue);
1065
- }
1066
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1067
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1068
- };
1069
- if (ref.$lazyInstance$) {
1070
- setterSetVal();
1071
- } else {
1072
- ref.$onReadyPromise$.then(() => setterSetVal());
1073
- }
1074
- }
1075
- }
959
+ setValue(this, memberName, newValue, cmpMeta);
960
+ },
961
+ configurable: true,
962
+ enumerable: true
1076
963
  });
1077
964
  }
1078
965
  });
@@ -1082,11 +969,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1082
969
  plt.jmp(() => {
1083
970
  var _a2;
1084
971
  const propName = attrNameToPropName.get(attrName);
1085
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
972
+ if (this.hasOwnProperty(propName)) {
1086
973
  newValue = this[propName];
1087
974
  delete this[propName];
1088
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1089
- this[propName] == newValue) {
975
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1090
976
  return;
1091
977
  } else if (propName == null) {
1092
978
  const hostRef = getHostRef(this);
@@ -1102,11 +988,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1102
988
  }
1103
989
  return;
1104
990
  }
1105
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1106
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1107
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1108
- this[propName] = newValue;
1109
- }
991
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1110
992
  });
1111
993
  };
1112
994
  Cstr.observedAttributes = Array.from(
@@ -1135,7 +1017,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1135
1017
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1136
1018
  const bundleId = cmpMeta.$lazyBundleId$;
1137
1019
  if (bundleId) {
1138
- const CstrImport = loadModule(cmpMeta, hostRef);
1020
+ const CstrImport = loadModule(cmpMeta);
1139
1021
  if (CstrImport && "then" in CstrImport) {
1140
1022
  const endLoad = uniqueTime();
1141
1023
  Cstr = await CstrImport;
@@ -1160,7 +1042,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1160
1042
  try {
1161
1043
  new Cstr(hostRef);
1162
1044
  } catch (e) {
1163
- consoleError(e, elm);
1045
+ consoleError(e);
1164
1046
  }
1165
1047
  {
1166
1048
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1169,7 +1051,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1169
1051
  hostRef.$flags$ |= 128 /* isWatchReady */;
1170
1052
  }
1171
1053
  endNewInstance();
1172
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1054
+ fireConnectedCallback(hostRef.$lazyInstance$);
1173
1055
  } else {
1174
1056
  Cstr = elm.constructor;
1175
1057
  const cmpTag = elm.localName;
@@ -1196,9 +1078,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1196
1078
  schedule();
1197
1079
  }
1198
1080
  };
1199
- var fireConnectedCallback = (instance, elm) => {
1081
+ var fireConnectedCallback = (instance) => {
1200
1082
  {
1201
- safeCall(instance, "connectedCallback", void 0, elm);
1083
+ safeCall(instance, "connectedCallback");
1202
1084
  }
1203
1085
  };
1204
1086
 
@@ -1234,15 +1116,15 @@ var connectedCallback = (elm) => {
1234
1116
  } else {
1235
1117
  addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1236
1118
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1237
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1119
+ fireConnectedCallback(hostRef.$lazyInstance$);
1238
1120
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1239
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1121
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1240
1122
  }
1241
1123
  }
1242
1124
  endConnected();
1243
1125
  }
1244
1126
  };
1245
- var disconnectInstance = (instance, elm) => {
1127
+ var disconnectInstance = (instance) => {
1246
1128
  };
1247
1129
  var disconnectedCallback = async (elm) => {
1248
1130
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1257,12 +1139,6 @@ var disconnectedCallback = async (elm) => {
1257
1139
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1258
1140
  }
1259
1141
  }
1260
- if (rootAppliedStyles.has(elm)) {
1261
- rootAppliedStyles.delete(elm);
1262
- }
1263
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1264
- rootAppliedStyles.delete(elm.shadowRoot);
1265
- }
1266
1142
  };
1267
1143
 
1268
1144
  // src/runtime/bootstrap-lazy.ts
@@ -1347,17 +1223,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1347
1223
  }
1348
1224
  disconnectedCallback() {
1349
1225
  plt.jmp(() => disconnectedCallback(this));
1350
- plt.raf(() => {
1351
- var _a3;
1352
- const hostRef = getHostRef(this);
1353
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1354
- if (i2 > -1) {
1355
- deferredConnectedCallbacks.splice(i2, 1);
1356
- }
1357
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1358
- delete hostRef.$vnode$.$elm$;
1359
- }
1360
- });
1361
1226
  }
1362
1227
  componentOnReady() {
1363
1228
  return getHostRef(this).$onReadyPromise$;
@@ -1421,7 +1286,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1421
1286
  }
1422
1287
  }
1423
1288
  } catch (e) {
1424
- consoleError(e, hostRef.$hostElement$);
1289
+ consoleError(e);
1425
1290
  }
1426
1291
  };
1427
1292
  var getHostListenerTarget = (elm, flags) => {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-d550a71c.js');
5
+ const index = require('./index-d6e1a914.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {