@penn-libraries/web 1.1.0-dev.7 → 1.1.1-dev.1

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 (112) hide show
  1. package/dist/cjs/{index-C0A2bnrZ.js → index-C0qvW4Ra.js} +289 -191
  2. package/dist/cjs/index-C0qvW4Ra.js.map +1 -0
  3. package/dist/cjs/index.cjs.js +1 -3
  4. package/dist/cjs/loader.cjs.js +3 -6
  5. package/dist/cjs/loader.cjs.js.map +1 -1
  6. package/dist/cjs/pennlibs-autocomplete.pennlibs-footer.pennlibs-header.entry.cjs.js.map +1 -1
  7. package/dist/cjs/pennlibs-autocomplete_3.cjs.entry.js +25 -36
  8. package/dist/cjs/pennlibs-banner.cjs.entry.js +1 -3
  9. package/dist/cjs/pennlibs-chat.cjs.entry.js +1 -3
  10. package/dist/cjs/pennlibs-fallback-img.cjs.entry.js +1 -3
  11. package/dist/cjs/pennlibs-feedback.cjs.entry.js +1 -3
  12. package/dist/cjs/pennlibs-hero.cjs.entry.js +1 -3
  13. package/dist/cjs/pennlibs-iiif-img.cjs.entry.js +132 -0
  14. package/dist/cjs/pennlibs-iiif-img.entry.cjs.js.map +1 -0
  15. package/dist/cjs/web.cjs.js +4 -7
  16. package/dist/cjs/web.cjs.js.map +1 -1
  17. package/dist/collection/collection-manifest.json +4 -3
  18. package/dist/collection/components/pennlibs-autocomplete/pennlibs-autocomplete.js +40 -23
  19. package/dist/collection/components/pennlibs-autocomplete/pennlibs-autocomplete.js.map +1 -1
  20. package/dist/collection/components/pennlibs-header/pennlibs-header.js +6 -6
  21. package/dist/collection/components/pennlibs-iiif-img/pennlibs-iiif-img.css +37 -0
  22. package/dist/collection/components/pennlibs-iiif-img/pennlibs-iiif-img.js +310 -0
  23. package/dist/collection/components/pennlibs-iiif-img/pennlibs-iiif-img.js.map +1 -0
  24. package/dist/components/index.d.ts +2 -0
  25. package/dist/components/index.js +2 -1
  26. package/dist/components/index.js.map +1 -1
  27. package/dist/components/pennlibs-autocomplete.js +28 -20
  28. package/dist/components/pennlibs-autocomplete.js.map +1 -1
  29. package/dist/components/pennlibs-banner.js +5 -3
  30. package/dist/components/pennlibs-banner.js.map +1 -1
  31. package/dist/components/pennlibs-chat.js +5 -3
  32. package/dist/components/pennlibs-chat.js.map +1 -1
  33. package/dist/components/pennlibs-fallback-img.js +1 -30
  34. package/dist/components/pennlibs-fallback-img.js.map +1 -1
  35. package/dist/components/pennlibs-fallback-img2.js +37 -0
  36. package/dist/components/pennlibs-fallback-img2.js.map +1 -0
  37. package/dist/components/pennlibs-feedback.js +5 -3
  38. package/dist/components/pennlibs-feedback.js.map +1 -1
  39. package/dist/components/pennlibs-footer.js +5 -3
  40. package/dist/components/pennlibs-footer.js.map +1 -1
  41. package/dist/components/pennlibs-header.js +6 -19
  42. package/dist/components/pennlibs-header.js.map +1 -1
  43. package/dist/components/pennlibs-hero.js +5 -3
  44. package/dist/components/pennlibs-hero.js.map +1 -1
  45. package/dist/components/pennlibs-iiif-img.d.ts +11 -0
  46. package/dist/components/pennlibs-iiif-img.js +168 -0
  47. package/dist/components/pennlibs-iiif-img.js.map +1 -0
  48. package/dist/docs.json +268 -12
  49. package/dist/esm/{index-CE_ILdTo.js → index-D9dYrmUF.js} +289 -192
  50. package/dist/esm/index-D9dYrmUF.js.map +1 -0
  51. package/dist/esm/index.js +1 -3
  52. package/dist/esm/loader.js +3 -6
  53. package/dist/esm/loader.js.map +1 -1
  54. package/dist/esm/pennlibs-autocomplete.pennlibs-footer.pennlibs-header.entry.js.map +1 -1
  55. package/dist/esm/pennlibs-autocomplete_3.entry.js +25 -36
  56. package/dist/esm/pennlibs-banner.entry.js +1 -3
  57. package/dist/esm/pennlibs-chat.entry.js +1 -3
  58. package/dist/esm/pennlibs-fallback-img.entry.js +1 -3
  59. package/dist/esm/pennlibs-feedback.entry.js +1 -3
  60. package/dist/esm/pennlibs-hero.entry.js +1 -3
  61. package/dist/esm/pennlibs-iiif-img.entry.js +130 -0
  62. package/dist/esm/pennlibs-iiif-img.entry.js.map +1 -0
  63. package/dist/esm/web.js +4 -7
  64. package/dist/esm/web.js.map +1 -1
  65. package/dist/types/components/pennlibs-autocomplete/pennlibs-autocomplete.d.ts +17 -1
  66. package/dist/types/components/pennlibs-iiif-img/pennlibs-iiif-img.d.ts +89 -0
  67. package/dist/types/components.d.ts +143 -0
  68. package/dist/types/stencil-public-runtime.d.ts +73 -9
  69. package/dist/web/index.esm.js +1 -3
  70. package/dist/web/loader.esm.js.map +1 -1
  71. package/dist/web/{p-20c0bd7a.entry.js → p-43d9c2d4.entry.js} +1 -3
  72. package/dist/web/{p-CE_ILdTo.js → p-D9dYrmUF.js} +289 -192
  73. package/dist/web/p-D9dYrmUF.js.map +1 -0
  74. package/dist/web/{p-cbae5952.entry.js → p-ad92090a.entry.js} +1 -3
  75. package/dist/web/{p-370e32b1.entry.js → p-b4b58af0.entry.js} +1 -3
  76. package/dist/web/p-c4074cf1.entry.js +130 -0
  77. package/dist/web/{p-07ad051f.entry.js → p-cb2584da.entry.js} +1 -3
  78. package/dist/web/{p-5e385536.entry.js → p-ce97059c.entry.js} +1 -3
  79. package/dist/web/{p-e1215158.entry.js → p-e6188c30.entry.js} +25 -36
  80. package/dist/web/pennlibs-autocomplete.pennlibs-footer.pennlibs-header.entry.esm.js.map +1 -1
  81. package/dist/web/pennlibs-iiif-img.entry.esm.js.map +1 -0
  82. package/dist/web/web.esm.js +4 -7
  83. package/dist/web/web.esm.js.map +1 -1
  84. package/hydrate/index.d.ts +28 -24
  85. package/hydrate/index.js +609 -241
  86. package/hydrate/index.mjs +609 -241
  87. package/package.json +3 -9
  88. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
  89. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
  90. package/dist/cjs/index-C0A2bnrZ.js.map +0 -1
  91. package/dist/cjs/pennlibs-autocomplete_3.cjs.entry.js.map +0 -1
  92. package/dist/cjs/pennlibs-banner.cjs.entry.js.map +0 -1
  93. package/dist/cjs/pennlibs-chat.cjs.entry.js.map +0 -1
  94. package/dist/cjs/pennlibs-fallback-img.cjs.entry.js.map +0 -1
  95. package/dist/cjs/pennlibs-feedback.cjs.entry.js.map +0 -1
  96. package/dist/cjs/pennlibs-hero.cjs.entry.js.map +0 -1
  97. package/dist/collection/utils/utils.js +0 -4
  98. package/dist/collection/utils/utils.js.map +0 -1
  99. package/dist/esm/app-globals-DQuL1Twl.js +0 -6
  100. package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
  101. package/dist/esm/index-CE_ILdTo.js.map +0 -1
  102. package/dist/esm/pennlibs-autocomplete_3.entry.js.map +0 -1
  103. package/dist/types/utils/utils.d.ts +0 -1
  104. package/dist/web/p-07ad051f.entry.js.map +0 -1
  105. package/dist/web/p-20c0bd7a.entry.js.map +0 -1
  106. package/dist/web/p-370e32b1.entry.js.map +0 -1
  107. package/dist/web/p-5e385536.entry.js.map +0 -1
  108. package/dist/web/p-CE_ILdTo.js.map +0 -1
  109. package/dist/web/p-DQuL1Twl.js +0 -6
  110. package/dist/web/p-DQuL1Twl.js.map +0 -1
  111. package/dist/web/p-cbae5952.entry.js.map +0 -1
  112. package/dist/web/p-e1215158.entry.js.map +0 -1
@@ -1,8 +1,11 @@
1
1
  const NAMESPACE = 'web';
2
- const BUILD = /* web */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true, watchCallback: false };
2
+ const BUILD = /* web */ { hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: false, updatable: true};
3
+
4
+ const globalScripts = () => {};
5
+ const globalStyles = "@import url(\"https://use.typekit.net/gbh8cmg.css\");\n\n:root {\n --pl-color-penn-red: #990000;\n --pl-color-penn-blue: #011F5B;\n --pl-color-gray-dark: #2D3545;\n --pl-color-gray: #595F6A;\n --pl-color-gray-light: #F5F5F6;\n --pl-color-gray-blue-light: #EEEEF4;\n --pl-color-white: #FFFFFF;\n --pl-color-blue: #0E5696;\n --pl-color-blue-light: #D4E4F2;\n --pl-color-green: #267434;\n --pl-color-green-light: #F1F7E1;\n --pl-color-orange: #BD4718;\n --pl-color-orange-light: #FEEDDD;\n --pl-color-purple: #80317F;\n --pl-color-purple-light: #F2DFED;\n --pl-color-bg-gradient-1: linear-gradient(45deg, rgba(200, 219, 232, 0.8), rgba(239, 210, 215, 0.8));\n --pl-color-bg-gradient-2: linear-gradient(45deg, #dbe9f5, #feefdf);\n --pl-font-size: 16px;\n --pl-font-sans-serif: proxima-nova, system-ui, sans-serif;\n --pl-font-serif: cormorant-garamond, serif;\n --pl-link-text-underline-offset: 0.2em;\n --pl-link-text-decoration-thickness: 1px;\n --pl-link-hover-text-decoration-thickness: 2px;\n --pl-viewport-margins-max-width: 1440px;\n --pl-viewport-margins-gutter: 1em;\n --pl-color-fg-default: var(--pl-color-gray-dark);\n --pl-color-fg-subtle: var(--pl-color-gray);\n --pl-color-fg-subtle-on-emphasis: var(--pl-color-gray-light);\n --pl-color-fg-on-emphasis: var(--pl-color-white);\n --pl-color-fg-accent: var(--pl-color-blue);\n --pl-color-fg-success: var(--pl-color-green);\n --pl-color-fg-attention: var(--pl-color-orange);\n --pl-color-fg-info: var(--pl-color-purple);\n --pl-color-bg-default: var(--pl-color-white);\n --pl-color-bg-subtle: var(--pl-color-gray-light);\n --pl-color-bg-subtle-brand: var(--pl-color-gray-blue-light);\n --pl-color-bg-emphasis: var(--pl-color-gray-dark);\n --pl-color-bg-accent: var(--pl-color-blue-light);\n --pl-color-bg-success: var(--pl-color-green-light);\n --pl-color-bg-attention: var(--pl-color-orange-light);\n --pl-color-bg-info: var(--pl-color-purple-light);\n --pl-color-bg-accent-emphasis: var(--pl-color-blue);\n --pl-color-bg-success-emphasis: var(--pl-color-green);\n --pl-color-bg-attention-emphasis: var(--pl-color-orange);\n --pl-color-bg-info-emphasis: var(--pl-color-purple);\n --pl-font-family: var(--pl-font-sans-serif);\n --pl-link-text-underline-offset: 0.2em;\n --pl-link-text-decoration-thickness: 1px;\n --pl-link-hover-text-decoration-thickness: 2px;\n\n /* Font size tokens */\n --pl-font-size-5xl: 3rem;\n --pl-font-size-4xl: 2.75rem;\n --pl-font-size-3xl: 2.25rem;\n --pl-font-size-2xl: 1.5rem;\n --pl-font-size-xl: 1.25rem;\n --pl-font-size-l: 1.125rem;\n --pl-font-size-m: 1rem;\n --pl-font-size-s: 0.875rem;\n --pl-font-size-xs: 0.75rem;\n \n /* Spacing tokens */\n --pl-space-3xs: 0.125rem;\n --pl-space-2xs: 0.25rem;\n --pl-space-xs: 0.5rem;\n --pl-space-s: 0.75rem;\n --pl-space-m: 1rem;\n --pl-space-l: 1.5rem;\n --pl-space-xl: 2rem;\n --pl-space-2xl: 3rem;\n --pl-space-3xl: 4rem;\n\n /* Border radius tokens */\n --pl-border-radius-subtle: 0.25rem;\n --pl-border-radius: 1rem;\n\n /* Focus box shadow tokens */\n --pl-focus-box-shadow: 0 0 0 2px var(--pl-color-bg-accent), 0 0 0 4px var(--pl-color-fg-default);\n}\n\n@media (min-width: 768px) {\n :root {\n --pl-viewport-margins-gutter: 3em;\n }\n}\n\n@media print {\n body {\n zoom: 80%;\n }\n}\n\n.pl-viewport-margins {\n max-width: var(--pl-viewport-margins-max-width);\n margin: 0 auto;\n padding: 0 var(--pl-viewport-margins-gutter, 1rem);\n width: 100%;\n}\n\n/*\n Prevents a flash of unstyled content (FOUC) while custom elements are loading.\n Ensures that elements are only visible once they're fully defined and ready to be displayed.\n*/\n:not(:defined) {\n visibility: hidden;\n}\n\n/*\n Reset\n*/\n\n:where(.pl-reset) {\n font-weight: 400;\n line-height: 1.4;\n color: var(--pl-color-fg-default);\n accent-color: var(--pl-color-fg-accent);\n\n /* Use a more-intuitive box-sizing model */\n & :is(*, *::before, *::after) {\n box-sizing: border-box;\n margin: 0;\n }\n\n /* Improve media defaults */\n & :is(img, picture, video, canvas, svg) {\n display: block;\n max-width: 100%;\n }\n\n /* Inherit fonts for form controls */\n & :is(input, button, textarea, select) {\n font: var(--pl-font-family);\n }\n\n /* Avoid text overflows */\n & :is(p, h1, h2, h3, h4, h5, h6) {\n overflow-wrap: break-word;\n }\n\n /* Improve line wrapping */\n & p {\n text-wrap: pretty;\n }\n & :is(h1, h2, h3, h4, h5, h6) {\n text-wrap: balance;\n }\n\n /* Link styles */\n & a {\n color: var(--pl-color-fg-accent);\n text-decoration: underline;\n text-underline-offset: var(--pl-link-text-underline-offset);\n text-decoration-thickness: var(--pl-link-text-decoration-thickness);\n font-weight: 500;\n\n &:hover {\n text-decoration-thickness: 3px;\n }\n }\n}\n\n/*\n Typeset\n*/\n\n:where(.pl-typeset) {\n font-family: var(--pl-font-family);\n \n & :is(p, .pl-p) {\n font-family: var(--pl-font-family);\n }\n\n & :is(h1, .pl-h1, h2, .pl-h2) {\n font-family: var(--pl-font-serif);\n }\n\n & :is(h1, .pl-h1, h2, .pl-h2, h3, .pl-h3, h4, .pl-h4, h5, .pl-h5, h6, .pl-h6) {\n font-weight: 600;\n }\n\n & *+:is(h2,h3,h4,h5,h6) {\n margin-block-start: var(--pl-space-xl);\n }\n\n & :is(h1, .pl-h1, h2, .pl-h2) {\n font-weight: 600;\n line-height: 1.125;\n font-family: var(--pl-font-serif);\n color: var(--pl-color-penn-blue);\n position: relative;\n\n &::after {\n bottom: -0.25rem;\n content: \"\";\n display: block;\n height: 4px;\n opacity: 1;\n position: absolute;\n }\n }\n\n & :is(h1, .pl-h1) {\n font-size: var(--pl-font-size-5xl);\n margin-bottom: 0.5em;\n margin-top: 0;\n\n &::after {\n background: var(--pl-color-penn-red);\n width: 2.25rem;\n }\n }\n\n & :is(h2, .pl-h2) {\n font-size: var(--pl-font-size-3xl);\n margin-bottom: 0.5em;\n\n &::after {\n background: #d6d6dc;\n width: 2.25rem;\n }\n }\n\n & :is(h3, .pl-h3) {\n font-size: var(--pl-font-size-xl);\n font-family: var(--pl-font-sans-serif);\n color: var(--pl-color-fg-default);\n margin-bottom: var(--pl-space-m);\n\n &:after {\n content: none;\n }\n }\n\n & :is(h4, .pl-h4) {\n font-size: var(--pl-font-size-m);\n margin-bottom: var(--pl-space-s);\n\n &:after {\n content: none;\n }\n }\n}\n\n/* \n Display\n*/\n.pl-block { display: block; }\n.pl-inline { display: inline; }\n.pl-inline-block { display: inline-block; }\n.pl-flex { display: flex; }\n.pl-inline-flex { display: inline-flex; }\n.pl-grid { display: grid; }\n.pl-inline-grid { display: inline-grid; }\n.pl-none { display: none; }\n\n/* \n Flex direction utilities\n*/\n.pl-flex-row { flex-direction: row; }\n.pl-flex-col { flex-direction: column; }\n\n/* \n Spacing\n*/\n\n/* Margin utilities */\n.pl-margin-0 { margin: 0; }\n.pl-margin-2xs { margin: var(--pl-space-2xs); }\n.pl-margin-xs { margin: var(--pl-space-xs); }\n.pl-margin-s { margin: var(--pl-space-s); }\n.pl-margin-m { margin: var(--pl-space-m); }\n.pl-margin-l { margin: var(--pl-space-l); }\n.pl-margin-xl { margin: var(--pl-space-xl); }\n.pl-margin-2xl { margin: var(--pl-space-2xl); }\n.pl-margin-3xl { margin: var(--pl-space-3xl); }\n\n/* Margin top */\n.pl-margin-t-0 { margin-top: 0; }\n.pl-margin-t-2xs { margin-top: var(--pl-space-2xs); }\n.pl-margin-t-xs { margin-top: var(--pl-space-xs); }\n.pl-margin-t-s { margin-top: var(--pl-space-s); }\n.pl-margin-t-m { margin-top: var(--pl-space-m); }\n.pl-margin-t-l { margin-top: var(--pl-space-l); }\n.pl-margin-t-xl { margin-top: var(--pl-space-xl); }\n.pl-margin-t-2xl { margin-top: var(--pl-space-2xl); }\n.pl-margin-t-3xl { margin-top: var(--pl-space-3xl); }\n\n/* Margin bottom */\n.pl-margin-b-0 { margin-bottom: 0; }\n.pl-margin-b-2xs { margin-bottom: var(--pl-space-2xs); }\n.pl-margin-b-xs { margin-bottom: var(--pl-space-xs); }\n.pl-margin-b-s { margin-bottom: var(--pl-space-s); }\n.pl-margin-b-m { margin-bottom: var(--pl-space-m); }\n.pl-margin-b-l { margin-bottom: var(--pl-space-l); }\n.pl-margin-b-xl { margin-bottom: var(--pl-space-xl); }\n.pl-margin-b-2xl { margin-bottom: var(--pl-space-2xl); }\n.pl-margin-b-3xl { margin-bottom: var(--pl-space-3xl); }\n\n/* Margin left */\n.pl-margin-l-0 { margin-left: 0; }\n.pl-margin-l-2xs { margin-left: var(--pl-space-2xs); }\n.pl-margin-l-xs { margin-left: var(--pl-space-xs); }\n.pl-margin-l-s { margin-left: var(--pl-space-s); }\n.pl-margin-l-m { margin-left: var(--pl-space-m); }\n.pl-margin-l-l { margin-left: var(--pl-space-l); }\n.pl-margin-l-xl { margin-left: var(--pl-space-xl); }\n.pl-margin-l-2xl { margin-left: var(--pl-space-2xl); }\n.pl-margin-l-3xl { margin-left: var(--pl-space-3xl); }\n\n/* Margin right */\n.pl-margin-r-0 { margin-right: 0; }\n.pl-margin-r-2xs { margin-right: var(--pl-space-2xs); }\n.pl-margin-r-xs { margin-right: var(--pl-space-xs); }\n.pl-margin-r-s { margin-right: var(--pl-space-s); }\n.pl-margin-r-m { margin-right: var(--pl-space-m); }\n.pl-margin-r-l { margin-right: var(--pl-space-l); }\n.pl-margin-r-xl { margin-right: var(--pl-space-xl); }\n.pl-margin-r-2xl { margin-right: var(--pl-space-2xl); }\n.pl-margin-r-3xl { margin-right: var(--pl-space-3xl); }\n\n/* Margin x (left and right) */\n.pl-margin-x-0 { margin-left: 0; margin-right: 0; }\n.pl-margin-x-2xs { margin-left: var(--pl-space-2xs); margin-right: var(--pl-space-2xs); }\n.pl-margin-x-xs { margin-left: var(--pl-space-xs); margin-right: var(--pl-space-xs); }\n.pl-margin-x-s { margin-left: var(--pl-space-s); margin-right: var(--pl-space-s); }\n.pl-margin-x-m { margin-left: var(--pl-space-m); margin-right: var(--pl-space-m); }\n.pl-margin-x-l { margin-left: var(--pl-space-l); margin-right: var(--pl-space-l); }\n.pl-margin-x-xl { margin-left: var(--pl-space-xl); margin-right: var(--pl-space-xl); }\n.pl-margin-x-2xl { margin-left: var(--pl-space-2xl); margin-right: var(--pl-space-2xl); }\n.pl-margin-x-3xl { margin-left: var(--pl-space-3xl); margin-right: var(--pl-space-3xl); }\n\n/* Margin y (top and bottom) */\n.pl-margin-y-0 { margin-top: 0; margin-bottom: 0; }\n.pl-margin-y-2xs { margin-top: var(--pl-space-2xs); margin-bottom: var(--pl-space-2xs); }\n.pl-margin-y-xs { margin-top: var(--pl-space-xs); margin-bottom: var(--pl-space-xs); }\n.pl-margin-y-s { margin-top: var(--pl-space-s); margin-bottom: var(--pl-space-s); }\n.pl-margin-y-m { margin-top: var(--pl-space-m); margin-bottom: var(--pl-space-m); }\n.pl-margin-y-l { margin-top: var(--pl-space-l); margin-bottom: var(--pl-space-l); }\n.pl-margin-y-xl { margin-top: var(--pl-space-xl); margin-bottom: var(--pl-space-xl); }\n.pl-margin-y-2xl { margin-top: var(--pl-space-2xl); margin-bottom: var(--pl-space-2xl); }\n.pl-margin-y-3xl { margin-top: var(--pl-space-3xl); margin-bottom: var(--pl-space-3xl); }\n\n/* Padding utilities */\n.pl-padding-0 { padding: 0; }\n.pl-padding-2xs { padding: var(--pl-space-2xs); }\n.pl-padding-xs { padding: var(--pl-space-xs); }\n.pl-padding-s { padding: var(--pl-space-s); }\n.pl-padding-m { padding: var(--pl-space-m); }\n.pl-padding-l { padding: var(--pl-space-l); }\n.pl-padding-xl { padding: var(--pl-space-xl); }\n.pl-padding-2xl { padding: var(--pl-space-2xl); }\n.pl-padding-3xl { padding: var(--pl-space-3xl); }\n\n/* Padding top */\n.pl-padding-t-0 { padding-top: 0; }\n.pl-padding-t-2xs { padding-top: var(--pl-space-2xs); }\n.pl-padding-t-xs { padding-top: var(--pl-space-xs); }\n.pl-padding-t-s { padding-top: var(--pl-space-s); }\n.pl-padding-t-m { padding-top: var(--pl-space-m); }\n.pl-padding-t-l { padding-top: var(--pl-space-l); }\n.pl-padding-t-xl { padding-top: var(--pl-space-xl); }\n.pl-padding-t-2xl { padding-top: var(--pl-space-2xl); }\n.pl-padding-t-3xl { padding-top: var(--pl-space-3xl); }\n\n/* Padding bottom */\n.pl-padding-b-0 { padding-bottom: 0; }\n.pl-padding-b-2xs { padding-bottom: var(--pl-space-2xs); }\n.pl-padding-b-xs { padding-bottom: var(--pl-space-xs); }\n.pl-padding-b-s { padding-bottom: var(--pl-space-s); }\n.pl-padding-b-m { padding-bottom: var(--pl-space-m); }\n.pl-padding-b-l { padding-bottom: var(--pl-space-l); }\n.pl-padding-b-xl { padding-bottom: var(--pl-space-xl); }\n.pl-padding-b-2xl { padding-bottom: var(--pl-space-2xl); }\n.pl-padding-b-3xl { padding-bottom: var(--pl-space-3xl); }\n\n/* Padding left */\n.pl-padding-l-0 { padding-left: 0; }\n.pl-padding-l-2xs { padding-left: var(--pl-space-2xs); }\n.pl-padding-l-xs { padding-left: var(--pl-space-xs); }\n.pl-padding-l-s { padding-left: var(--pl-space-s); }\n.pl-padding-l-m { padding-left: var(--pl-space-m); }\n.pl-padding-l-l { padding-left: var(--pl-space-l); }\n.pl-padding-l-xl { padding-left: var(--pl-space-xl); }\n.pl-padding-l-2xl { padding-left: var(--pl-space-2xl); }\n.pl-padding-l-3xl { padding-left: var(--pl-space-3xl); }\n\n/* Padding right */\n.pl-padding-r-0 { padding-right: 0; }\n.pl-padding-r-2xs { padding-right: var(--pl-space-2xs); }\n.pl-padding-r-xs { padding-right: var(--pl-space-xs); }\n.pl-padding-r-s { padding-right: var(--pl-space-s); }\n.pl-padding-r-m { padding-right: var(--pl-space-m); }\n.pl-padding-r-l { padding-right: var(--pl-space-l); }\n.pl-padding-r-xl { padding-right: var(--pl-space-xl); }\n.pl-padding-r-2xl { padding-right: var(--pl-space-2xl); }\n.pl-padding-r-3xl { padding-right: var(--pl-space-3xl); }\n\n/* Padding x (left and right) */\n.pl-padding-x-0 { padding-left: 0; padding-right: 0; }\n.pl-padding-x-2xs { padding-left: var(--pl-space-2xs); padding-right: var(--pl-space-2xs); }\n.pl-padding-x-xs { padding-left: var(--pl-space-xs); padding-right: var(--pl-space-xs); }\n.pl-padding-x-s { padding-left: var(--pl-space-s); padding-right: var(--pl-space-s); }\n.pl-padding-x-m { padding-left: var(--pl-space-m); padding-right: var(--pl-space-m); }\n.pl-padding-x-l { padding-left: var(--pl-space-l); padding-right: var(--pl-space-l); }\n.pl-padding-x-xl { padding-left: var(--pl-space-xl); padding-right: var(--pl-space-xl); }\n.pl-padding-x-2xl { padding-left: var(--pl-space-2xl); padding-right: var(--pl-space-2xl); }\n.pl-padding-x-3xl { padding-left: var(--pl-space-3xl); padding-right: var(--pl-space-3xl); }\n\n/* Padding y (top and bottom) */\n.pl-padding-y-0 { padding-top: 0; padding-bottom: 0; }\n.pl-padding-y-2xs { padding-top: var(--pl-space-2xs); padding-bottom: var(--pl-space-2xs); }\n.pl-padding-y-xs { padding-top: var(--pl-space-xs); padding-bottom: var(--pl-space-xs); }\n.pl-padding-y-s { padding-top: var(--pl-space-s); padding-bottom: var(--pl-space-s); }\n.pl-padding-y-m { padding-top: var(--pl-space-m); padding-bottom: var(--pl-space-m); }\n.pl-padding-y-l { padding-top: var(--pl-space-l); padding-bottom: var(--pl-space-l); }\n.pl-padding-y-xl { padding-top: var(--pl-space-xl); padding-bottom: var(--pl-space-xl); }\n.pl-padding-y-2xl { padding-top: var(--pl-space-2xl); padding-bottom: var(--pl-space-2xl); }\n.pl-padding-y-3xl { padding-top: var(--pl-space-3xl); padding-bottom: var(--pl-space-3xl); }\n\n/* Gap utilities for flexbox and grid */\n.pl-gap-0 { gap: 0; }\n.pl-gap-2xs { gap: var(--pl-space-2xs); }\n.pl-gap-xs { gap: var(--pl-space-xs); }\n.pl-gap-s { gap: var(--pl-space-s); }\n.pl-gap-m { gap: var(--pl-space-m); }\n.pl-gap-l { gap: var(--pl-space-l); }\n.pl-gap-xl { gap: var(--pl-space-xl); }\n.pl-gap-2xl { gap: var(--pl-space-2xl); }\n.pl-gap-3xl { gap: var(--pl-space-3xl); } \n\n/*\n Font size\n*/\n\n.pl-font-size-xs {\n font-size: var(--pl-font-size-xs);\n}\n\n.pl-font-size-s {\n font-size: var(--pl-font-size-s);\n}\n\n.pl-font-size-m {\n font-size: var(--pl-font-size-m);\n}\n\n.pl-font-size-l {\n font-size: var(--pl-font-size-l);\n}\n\n.pl-font-size-xl {\n font-size: var(--pl-font-size-xl);\n}\n\n.pl-font-size-2xl {\n font-size: var(--pl-font-size-2xl);\n}\n\n.pl-font-size-3xl {\n font-size: var(--pl-font-size-3xl);\n}\n\n.pl-font-size-4xl {\n font-size: var(--pl-font-size-4xl);\n}\n\n.pl-font-size-5xl {\n font-size: var(--pl-font-size-5xl);\n}\n\n/*\n Line length\n*/\n\n.pl-line-length {\n max-width: 60ch;\n}\n\n/*\n Border radius\n*/\n\n.pl-border-radius-subtle {\n border-radius: var(--pl-border-radius-subtle);\n}\n\n.pl-border-radius {\n border-radius: var(--pl-border-radius);\n}\n\n/*\n Definition list\n*/\n\n.pl-dl:not(.pl-dl--inline) {\n display: grid;\n grid-row-gap: 0.25rem;\n \n & dt {\n font-weight: 600;\n margin-top: 0.5rem;\n }\n}\n\n@media (min-width: 720px) {\n .pl-dl:not(.pl-dl--inline) {\n grid-template-columns: 12rem 1fr;\n\n & dt {\n grid-column: 1 / 2;\n margin-top: 0;\n padding-right: 1rem;\n }\n\n & dd {\n grid-column: 2 / 3;\n margin-bottom: 0;\n }\n }\n}\n\n@media (min-width: 720px) {\n .pl-dl:not(.pl-dl--inline) dt:not(:first-of-type),\n .pl-dl:not(.pl-dl--inline) dt:not(:first-of-type) + dd {\n padding-top: 0.75rem;\n margin-top: 0.5rem;\n border-top: solid 1px var(--pl-color-bg-subtle-brand);\n }\n}\n\n.pl-dl--inline {\n display: block;\n \n & dt,\n & dd {\n display: inline;\n padding-right: 0.5rem;\n margin-bottom: 0;\n }\n \n & dt {\n font-weight: 600;\n }\n \n & dt:not(:first-of-type)::before {\n content: \"\";\n display: block;\n margin-bottom: 0.5rem;\n }\n \n & a {\n color: var(--pl-color-fg-default);\n text-decoration-style: dotted;\n font-weight: 400;\n\n &:hover {\n text-decoration-style: solid;\n text-decoration-thickness: 2px;\n }\n }\n}\n\n";
3
6
 
4
7
  /*
5
- Stencil Client Platform v4.29.3 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Platform v4.38.1 | MIT Licensed | https://stenciljs.com
6
9
  */
7
10
  var __defProp = Object.defineProperty;
8
11
  var __export = (target, all) => {
@@ -46,6 +49,7 @@ var getHostRef = (ref) => {
46
49
  return void 0;
47
50
  };
48
51
  var registerInstance = (lazyInstance, hostRef) => {
52
+ if (!hostRef) return;
49
53
  lazyInstance.__stencil__getHostRef = () => hostRef;
50
54
  hostRef.$lazyInstance$ = lazyInstance;
51
55
  };
@@ -54,13 +58,17 @@ var registerHost = (hostElement, cmpMeta) => {
54
58
  $flags$: 0,
55
59
  $hostElement$: hostElement,
56
60
  $cmpMeta$: cmpMeta,
57
- $instanceValues$: /* @__PURE__ */ new Map()
61
+ $instanceValues$: /* @__PURE__ */ new Map(),
62
+ $serializerValues$: /* @__PURE__ */ new Map()
58
63
  };
59
64
  {
60
65
  hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
61
66
  hostElement["s-p"] = [];
62
67
  hostElement["s-rc"] = [];
63
68
  }
69
+ {
70
+ hostRef.$fetchedCbList$ = [];
71
+ }
64
72
  const ref = hostRef;
65
73
  hostElement.__stencil__getHostRef = () => ref;
66
74
  return ref;
@@ -150,6 +158,7 @@ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
150
158
  }
151
159
  return false;
152
160
  })() ;
161
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
153
162
  var queuePending = false;
154
163
  var queueDomReads = [];
155
164
  var queueDomWrites = [];
@@ -359,6 +368,29 @@ function deserializeProperty(value) {
359
368
  }
360
369
  return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
361
370
  }
371
+
372
+ // src/utils/style.ts
373
+ function createStyleSheetIfNeededAndSupported(styles2) {
374
+ if (!supportsConstructableStylesheets) return void 0;
375
+ const sheet = new CSSStyleSheet();
376
+ sheet.replaceSync(styles2);
377
+ return sheet;
378
+ }
379
+
380
+ // src/utils/shadow-root.ts
381
+ var globalStyleSheet;
382
+ function createShadowRoot(cmpMeta) {
383
+ var _a;
384
+ const shadowRoot = this.attachShadow({ mode: "open" });
385
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported(globalStyles)) != null ? _a : null;
386
+ if (globalStyleSheet) {
387
+ if (supportsMutableAdoptedStyleSheets) {
388
+ shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
389
+ } else {
390
+ shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
391
+ }
392
+ }
393
+ }
362
394
  var getSlottedChildNodes = (childNodes) => {
363
395
  const result = [];
364
396
  for (let i2 = 0; i2 < childNodes.length; i2++) {
@@ -405,7 +437,7 @@ function patchSlotNode(node) {
405
437
  const slotName = this["s-sn"];
406
438
  if (opts == null ? void 0 : opts.flatten) {
407
439
  console.error(`
408
- Flattening is not supported for Stencil non-shadow slots.
440
+ Flattening is not supported for Stencil non-shadow slots.
409
441
  You can use \`.childNodes\` to nested slot fallback content.
410
442
  If you have a particular use case, please open an issue on the Stencil repo.
411
443
  `);
@@ -449,6 +481,123 @@ var uniqueTime = (key, measureText) => {
449
481
  };
450
482
  }
451
483
  };
484
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
485
+ var registerStyle = (scopeId2, cssText, allowCS) => {
486
+ let style = styles.get(scopeId2);
487
+ if (supportsConstructableStylesheets && allowCS) {
488
+ style = style || new CSSStyleSheet();
489
+ if (typeof style === "string") {
490
+ style = cssText;
491
+ } else {
492
+ style.replaceSync(cssText);
493
+ }
494
+ } else {
495
+ style = cssText;
496
+ }
497
+ styles.set(scopeId2, style);
498
+ };
499
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
500
+ var _a;
501
+ const scopeId2 = getScopeId(cmpMeta);
502
+ const style = styles.get(scopeId2);
503
+ if (!win.document) {
504
+ return scopeId2;
505
+ }
506
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
507
+ if (style) {
508
+ if (typeof style === "string") {
509
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
510
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
511
+ let styleElm;
512
+ if (!appliedStyles) {
513
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
514
+ }
515
+ if (!appliedStyles.has(scopeId2)) {
516
+ if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
517
+ styleElm.innerHTML = style;
518
+ } else {
519
+ styleElm = win.document.createElement("style");
520
+ styleElm.innerHTML = style;
521
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
522
+ if (nonce != null) {
523
+ styleElm.setAttribute("nonce", nonce);
524
+ }
525
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
526
+ if (styleContainerNode.nodeName === "HEAD") {
527
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
528
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
529
+ styleContainerNode.insertBefore(
530
+ styleElm,
531
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
532
+ );
533
+ } else if ("host" in styleContainerNode) {
534
+ if (supportsConstructableStylesheets) {
535
+ const stylesheet = new CSSStyleSheet();
536
+ stylesheet.replaceSync(style);
537
+ if (supportsMutableAdoptedStyleSheets) {
538
+ styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
539
+ } else {
540
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
541
+ }
542
+ } else {
543
+ const existingStyleContainer = styleContainerNode.querySelector("style");
544
+ if (existingStyleContainer) {
545
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
546
+ } else {
547
+ styleContainerNode.prepend(styleElm);
548
+ }
549
+ }
550
+ } else {
551
+ styleContainerNode.append(styleElm);
552
+ }
553
+ }
554
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
555
+ styleContainerNode.insertBefore(styleElm, null);
556
+ }
557
+ }
558
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
559
+ styleElm.innerHTML += SLOT_FB_CSS;
560
+ }
561
+ if (appliedStyles) {
562
+ appliedStyles.add(scopeId2);
563
+ }
564
+ }
565
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
566
+ if (supportsMutableAdoptedStyleSheets) {
567
+ styleContainerNode.adoptedStyleSheets.push(style);
568
+ } else {
569
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
570
+ }
571
+ }
572
+ }
573
+ return scopeId2;
574
+ };
575
+ var attachStyles = (hostRef) => {
576
+ const cmpMeta = hostRef.$cmpMeta$;
577
+ const elm = hostRef.$hostElement$;
578
+ const flags = cmpMeta.$flags$;
579
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
580
+ const scopeId2 = addStyle(
581
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
582
+ cmpMeta);
583
+ if (flags & 10 /* needsScopedEncapsulation */) {
584
+ elm["s-sc"] = scopeId2;
585
+ elm.classList.add(scopeId2 + "-h");
586
+ }
587
+ endAttachStyles();
588
+ };
589
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
590
+ var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
591
+ var hydrateScopedToShadow = () => {
592
+ if (!win.document) {
593
+ return;
594
+ }
595
+ const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
596
+ let i2 = 0;
597
+ for (; i2 < styles2.length; i2++) {
598
+ registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
599
+ }
600
+ };
452
601
  var h = (nodeName, vnodeData, ...children) => {
453
602
  let child = null;
454
603
  let key = null;
@@ -553,7 +702,7 @@ var convertToPrivate = (node) => {
553
702
 
554
703
  // src/runtime/client-hydrate.ts
555
704
  var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
556
- var _a;
705
+ var _a, _b;
557
706
  const endHydrate = createTime("hydrateClient", tagName);
558
707
  const shadowRoot = hostElm.shadowRoot;
559
708
  const childRenderNodes = [];
@@ -562,19 +711,6 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
562
711
  const shadowRootNodes = shadowRoot ? [] : null;
563
712
  const vnode = newVNode(tagName, null);
564
713
  vnode.$elm$ = hostElm;
565
- const members = Object.entries(((_a = hostRef.$cmpMeta$) == null ? void 0 : _a.$members$) || {});
566
- members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
567
- var _a2;
568
- if (!(memberFlags & 31 /* Prop */)) {
569
- return;
570
- }
571
- const attributeName = metaAttributeName || memberName;
572
- const attrVal = hostElm.getAttribute(attributeName);
573
- if (attrVal !== null) {
574
- const attrPropVal = parsePropertyValue(attrVal, memberFlags);
575
- (_a2 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _a2.set(memberName, attrPropVal);
576
- }
577
- });
578
714
  if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
579
715
  initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
580
716
  }
@@ -603,6 +739,16 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
603
739
  if (childRenderNode.$tag$ === "slot") {
604
740
  node["s-cr"] = hostElm["s-cr"];
605
741
  }
742
+ } else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
743
+ const cmpMeta = getHostRef(childRenderNode.$elm$);
744
+ if (cmpMeta) {
745
+ const scopeId3 = getScopeId(
746
+ cmpMeta.$cmpMeta$);
747
+ const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
748
+ if (styleSheet) {
749
+ hostElm.shadowRoot.append(styleSheet.cloneNode(true));
750
+ }
751
+ }
606
752
  }
607
753
  if (childRenderNode.$tag$ === "slot") {
608
754
  childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
@@ -618,7 +764,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
618
764
  }
619
765
  }
620
766
  if (orgLocationNode && orgLocationNode.isConnected) {
621
- if (shadowRoot && orgLocationNode["s-en"] === "") {
767
+ if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
622
768
  orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
623
769
  }
624
770
  orgLocationNode.parentNode.removeChild(orgLocationNode);
@@ -626,7 +772,9 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
626
772
  node["s-oo"] = parseInt(childRenderNode.$nodeId$);
627
773
  }
628
774
  }
629
- plt.$orgLocNodes$.delete(orgLocationId);
775
+ if (orgLocationNode && !orgLocationNode["s-id"]) {
776
+ plt.$orgLocNodes$.delete(orgLocationId);
777
+ }
630
778
  }
631
779
  const hosts = [];
632
780
  const snLen = slottedNodes.length;
@@ -647,39 +795,46 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
647
795
  }
648
796
  if (!hosts[slottedItem.hostId]) continue;
649
797
  const hostEle = hosts[slottedItem.hostId];
798
+ if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
799
+ hostEle.appendChild(slottedItem.node);
800
+ }
650
801
  if (!hostEle.shadowRoot || !shadowRoot) {
651
- slottedItem.slot["s-cr"] = hostEle["s-cr"];
652
- if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
653
- slottedItem.slot["s-cr"] = hostEle;
654
- } else {
655
- slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
802
+ if (!slottedItem.slot["s-cr"]) {
803
+ slottedItem.slot["s-cr"] = hostEle["s-cr"];
804
+ if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
805
+ slottedItem.slot["s-cr"] = hostEle;
806
+ } else {
807
+ slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
808
+ }
656
809
  }
657
810
  addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
658
- }
659
- if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
660
- hostEle.appendChild(slottedItem.node);
811
+ if (((_b = slottedItem.node.parentElement) == null ? void 0 : _b.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
812
+ slottedItem.node.removeAttribute("slot");
813
+ }
661
814
  }
662
815
  }
663
816
  }
664
- if (shadowRoot && !shadowRoot.childNodes.length) {
817
+ if (shadowRoot) {
665
818
  let rnIdex = 0;
666
819
  const rnLen = shadowRootNodes.length;
667
820
  if (rnLen) {
668
821
  for (rnIdex; rnIdex < rnLen; rnIdex++) {
669
- shadowRoot.appendChild(shadowRootNodes[rnIdex]);
822
+ const node = shadowRootNodes[rnIdex];
823
+ if (node) {
824
+ shadowRoot.appendChild(node);
825
+ }
670
826
  }
671
827
  Array.from(hostElm.childNodes).forEach((node) => {
672
- if (typeof node["s-sn"] !== "string") {
828
+ if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
673
829
  if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
674
830
  node.removeAttribute("hidden");
675
- } else if (node.nodeType === 8 /* CommentNode */ || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
831
+ } else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
676
832
  node.parentNode.removeChild(node);
677
833
  }
678
834
  }
679
835
  });
680
836
  }
681
837
  }
682
- plt.$orgLocNodes$.delete(hostElm["s-id"]);
683
838
  hostRef.$hostElement$ = hostElm;
684
839
  endHydrate();
685
840
  };
@@ -830,7 +985,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
830
985
  vnode.$index$ = "0";
831
986
  parentVNode.$children$ = [vnode];
832
987
  } else {
833
- if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
988
+ if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim() && !node["s-nr"]) {
834
989
  node.remove();
835
990
  }
836
991
  }
@@ -888,10 +1043,10 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
888
1043
  if (childVNode.$name$) {
889
1044
  childVNode.$elm$.setAttribute("name", slotName);
890
1045
  }
891
- if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
892
- parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1046
+ if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
1047
+ internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
893
1048
  } else {
894
- node.parentNode.insertBefore(childVNode.$elm$, node);
1049
+ internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
895
1050
  }
896
1051
  addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
897
1052
  node.remove();
@@ -906,8 +1061,8 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
906
1061
  if (shouldMove) {
907
1062
  parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
908
1063
  }
909
- childRenderNodes.push(childVNode);
910
1064
  }
1065
+ childRenderNodes.push(childVNode);
911
1066
  slotNodes.push(childVNode);
912
1067
  if (!parentVNode.$children$) {
913
1068
  parentVNode.$children$ = [];
@@ -915,13 +1070,17 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
915
1070
  parentVNode.$children$[childVNode.$index$] = childVNode;
916
1071
  }
917
1072
  var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1073
+ var _a, _b;
918
1074
  let slottedNode = slotNode.nextSibling;
919
1075
  slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
920
- while (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (slottedNode.nodeType === 8 /* CommentNode */ && slottedNode.nodeValue.indexOf(".") !== 1 || slottedNode.nodeType === 3 /* TextNode */))) {
921
- slottedNode["s-sn"] = slotName;
922
- slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
923
- slottedNode = slottedNode.nextSibling;
924
- }
1076
+ if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
1077
+ do {
1078
+ if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
1079
+ slottedNode["s-sn"] = slotName;
1080
+ slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1081
+ }
1082
+ slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
1083
+ } while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
925
1084
  };
926
1085
  var findCorrespondingNode = (node, type) => {
927
1086
  let sibling = node;
@@ -942,19 +1101,17 @@ var createSupportsRuleRe = (selector) => {
942
1101
  createSupportsRuleRe("::slotted");
943
1102
  createSupportsRuleRe(":host");
944
1103
  createSupportsRuleRe(":host-context");
945
- var parsePropertyValue = (propValue, propType) => {
946
- if (typeof propValue === "string" && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
947
- try {
948
- propValue = JSON.parse(propValue);
949
- return propValue;
950
- } catch (e) {
951
- }
952
- }
1104
+ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
953
1105
  if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
954
1106
  propValue = deserializeProperty(propValue);
955
1107
  return propValue;
956
1108
  }
957
1109
  if (propValue != null && !isComplexType(propValue)) {
1110
+ if (propType & 4 /* Boolean */) {
1111
+ {
1112
+ return propValue === "false" ? false : propValue === "" || !!propValue;
1113
+ }
1114
+ }
958
1115
  if (propType & 1 /* String */) {
959
1116
  return String(propValue);
960
1117
  }
@@ -962,7 +1119,10 @@ var parsePropertyValue = (propValue, propType) => {
962
1119
  }
963
1120
  return propValue;
964
1121
  };
965
- var getElement = (ref) => getHostRef(ref).$hostElement$ ;
1122
+ var getElement = (ref) => {
1123
+ var _a;
1124
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
1125
+ };
966
1126
 
967
1127
  // src/runtime/event-emitter.ts
968
1128
  var createEvent = (ref, name, flags) => {
@@ -983,115 +1143,6 @@ var emitEvent = (elm, name, opts) => {
983
1143
  elm.dispatchEvent(ev);
984
1144
  return ev;
985
1145
  };
986
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
987
- var registerStyle = (scopeId2, cssText, allowCS) => {
988
- let style = styles.get(scopeId2);
989
- if (supportsConstructableStylesheets && allowCS) {
990
- style = style || new CSSStyleSheet();
991
- if (typeof style === "string") {
992
- style = cssText;
993
- } else {
994
- style.replaceSync(cssText);
995
- }
996
- } else {
997
- style = cssText;
998
- }
999
- styles.set(scopeId2, style);
1000
- };
1001
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
1002
- var _a;
1003
- const scopeId2 = getScopeId(cmpMeta);
1004
- const style = styles.get(scopeId2);
1005
- if (!win.document) {
1006
- return scopeId2;
1007
- }
1008
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
1009
- if (style) {
1010
- if (typeof style === "string") {
1011
- styleContainerNode = styleContainerNode.head || styleContainerNode;
1012
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
1013
- let styleElm;
1014
- if (!appliedStyles) {
1015
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
1016
- }
1017
- if (!appliedStyles.has(scopeId2)) {
1018
- if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
1019
- styleElm.innerHTML = style;
1020
- } else {
1021
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
1022
- styleElm.innerHTML = style;
1023
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1024
- if (nonce != null) {
1025
- styleElm.setAttribute("nonce", nonce);
1026
- }
1027
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
1028
- if (styleContainerNode.nodeName === "HEAD") {
1029
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
1030
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
1031
- styleContainerNode.insertBefore(
1032
- styleElm,
1033
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
1034
- );
1035
- } else if ("host" in styleContainerNode) {
1036
- if (supportsConstructableStylesheets) {
1037
- const stylesheet = new CSSStyleSheet();
1038
- stylesheet.replaceSync(style);
1039
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
1040
- } else {
1041
- const existingStyleContainer = styleContainerNode.querySelector("style");
1042
- if (existingStyleContainer) {
1043
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
1044
- } else {
1045
- styleContainerNode.prepend(styleElm);
1046
- }
1047
- }
1048
- } else {
1049
- styleContainerNode.append(styleElm);
1050
- }
1051
- }
1052
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1053
- styleContainerNode.insertBefore(styleElm, null);
1054
- }
1055
- }
1056
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1057
- styleElm.innerHTML += SLOT_FB_CSS;
1058
- }
1059
- if (appliedStyles) {
1060
- appliedStyles.add(scopeId2);
1061
- }
1062
- }
1063
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
1064
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
1065
- }
1066
- }
1067
- return scopeId2;
1068
- };
1069
- var attachStyles = (hostRef) => {
1070
- const cmpMeta = hostRef.$cmpMeta$;
1071
- const elm = hostRef.$hostElement$;
1072
- const flags = cmpMeta.$flags$;
1073
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
1074
- const scopeId2 = addStyle(
1075
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
1076
- cmpMeta);
1077
- if (flags & 10 /* needsScopedEncapsulation */) {
1078
- elm["s-sc"] = scopeId2;
1079
- elm.classList.add(scopeId2 + "-h");
1080
- }
1081
- endAttachStyles();
1082
- };
1083
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
1084
- var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
1085
- var hydrateScopedToShadow = () => {
1086
- if (!win.document) {
1087
- return;
1088
- }
1089
- const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
1090
- let i2 = 0;
1091
- for (; i2 < styles2.length; i2++) {
1092
- registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
1093
- }
1094
- };
1095
1146
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
1096
1147
  if (oldValue === newValue) {
1097
1148
  return;
@@ -1102,12 +1153,13 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
1102
1153
  const classList = elm.classList;
1103
1154
  const oldClasses = parseClassList(oldValue);
1104
1155
  let newClasses = parseClassList(newValue);
1105
- if (elm["s-si"] && initialRender) {
1106
- newClasses.push(elm["s-si"]);
1156
+ if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
1157
+ const scopeId2 = elm["s-sc"] || elm["s-si"];
1158
+ newClasses.push(scopeId2);
1107
1159
  oldClasses.forEach((c) => {
1108
- if (c.startsWith(elm["s-si"])) newClasses.push(c);
1160
+ if (c.startsWith(scopeId2)) newClasses.push(c);
1109
1161
  });
1110
- newClasses = [...new Set(newClasses)];
1162
+ newClasses = [...new Set(newClasses)].filter((c) => c);
1111
1163
  classList.add(...newClasses);
1112
1164
  } else {
1113
1165
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
@@ -1441,6 +1493,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1441
1493
  !isInitialRender && BUILD.updatable && oldChildren !== null
1442
1494
  ) {
1443
1495
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
1496
+ } else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
1497
+ newVNode2.$children$ = oldChildren;
1444
1498
  }
1445
1499
  if (isSvgMode && tag === "svg") {
1446
1500
  isSvgMode = false;
@@ -1503,6 +1557,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
1503
1557
  }
1504
1558
  attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1505
1559
  const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1560
+ if (isInitialLoad) {
1561
+ queueMicrotask(() => {
1562
+ dispatch();
1563
+ });
1564
+ return;
1565
+ }
1506
1566
  return writeTask(dispatch) ;
1507
1567
  };
1508
1568
  var dispatchHooks = (hostRef, isInitialLoad) => {
@@ -1517,10 +1577,15 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
1517
1577
  let maybePromise;
1518
1578
  if (isInitialLoad) {
1519
1579
  {
1520
- hostRef.$flags$ |= 256 /* isListenReady */;
1521
- if (hostRef.$queuedListeners$) {
1522
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
1523
- hostRef.$queuedListeners$ = void 0;
1580
+ {
1581
+ hostRef.$flags$ |= 256 /* isListenReady */;
1582
+ if (hostRef.$queuedListeners$) {
1583
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
1584
+ hostRef.$queuedListeners$ = void 0;
1585
+ }
1586
+ }
1587
+ if (hostRef.$fetchedCbList$.length) {
1588
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
1524
1589
  }
1525
1590
  }
1526
1591
  maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
@@ -1623,7 +1688,13 @@ var postUpdateComponent = (hostRef) => {
1623
1688
  }
1624
1689
  };
1625
1690
  var appDidLoad = (who) => {
1691
+ var _a;
1626
1692
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1693
+ {
1694
+ if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
1695
+ plt.$orgLocNodes$.clear();
1696
+ }
1697
+ }
1627
1698
  };
1628
1699
  var safeCall = (instance, method, arg, elm) => {
1629
1700
  if (instance && instance[method]) {
@@ -1644,6 +1715,9 @@ var addHydratedFlag = (elm) => {
1644
1715
  var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1645
1716
  var setValue = (ref, propName, newVal, cmpMeta) => {
1646
1717
  const hostRef = getHostRef(ref);
1718
+ if (!hostRef) {
1719
+ return;
1720
+ }
1647
1721
  if (!hostRef) {
1648
1722
  throw new Error(
1649
1723
  `Couldn't find host element for "${cmpMeta.$tagName$}" 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/stenciljs/core/issues/5457).`
@@ -1652,7 +1726,9 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1652
1726
  const oldVal = hostRef.$instanceValues$.get(propName);
1653
1727
  const flags = hostRef.$flags$;
1654
1728
  const instance = hostRef.$lazyInstance$ ;
1655
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1729
+ newVal = parsePropertyValue(
1730
+ newVal,
1731
+ cmpMeta.$members$[propName][0]);
1656
1732
  const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1657
1733
  const didValueChange = newVal !== oldVal && !areBothNaN;
1658
1734
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
@@ -1674,7 +1750,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1674
1750
  var proxyComponent = (Cstr, cmpMeta, flags) => {
1675
1751
  var _a, _b;
1676
1752
  const prototype = Cstr.prototype;
1677
- if (cmpMeta.$members$ || BUILD.watchCallback) {
1753
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1678
1754
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1679
1755
  members.map(([memberName, [memberFlags]]) => {
1680
1756
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
@@ -1701,14 +1777,19 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1701
1777
  Object.defineProperty(prototype, memberName, {
1702
1778
  set(newValue) {
1703
1779
  const ref = getHostRef(this);
1780
+ if (!ref) {
1781
+ return;
1782
+ }
1704
1783
  if (origSetter) {
1705
1784
  const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1706
1785
  if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1707
1786
  newValue = ref.$instanceValues$.get(memberName);
1708
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1709
- ref.$instanceValues$.set(memberName, currentValue);
1710
1787
  }
1711
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1788
+ origSetter.apply(this, [
1789
+ parsePropertyValue(
1790
+ newValue,
1791
+ memberFlags)
1792
+ ]);
1712
1793
  newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1713
1794
  setValue(this, memberName, newValue, cmpMeta);
1714
1795
  return;
@@ -1717,7 +1798,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1717
1798
  if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1718
1799
  setValue(this, memberName, newValue, cmpMeta);
1719
1800
  if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1720
- ref.$onReadyPromise$.then(() => {
1801
+ ref.$fetchedCbList$.push(() => {
1721
1802
  if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1722
1803
  ref.$lazyInstance$[memberName] = newValue;
1723
1804
  }
@@ -1730,13 +1811,17 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1730
1811
  if (!ref.$instanceValues$.get(memberName) && currentValue) {
1731
1812
  ref.$instanceValues$.set(memberName, currentValue);
1732
1813
  }
1733
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1814
+ ref.$lazyInstance$[memberName] = parsePropertyValue(
1815
+ newValue,
1816
+ memberFlags);
1734
1817
  setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1735
1818
  };
1736
1819
  if (ref.$lazyInstance$) {
1737
1820
  setterSetVal();
1738
1821
  } else {
1739
- ref.$onReadyPromise$.then(() => setterSetVal());
1822
+ ref.$fetchedCbList$.push(() => {
1823
+ setterSetVal();
1824
+ });
1740
1825
  }
1741
1826
  }
1742
1827
  }
@@ -1749,16 +1834,17 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1749
1834
  plt.jmp(() => {
1750
1835
  var _a2;
1751
1836
  const propName = attrNameToPropName.get(attrName);
1837
+ const hostRef = getHostRef(this);
1752
1838
  if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1753
1839
  newValue = this[propName];
1754
1840
  delete this[propName];
1755
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1841
+ }
1842
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1756
1843
  this[propName] == newValue) {
1757
1844
  return;
1758
1845
  } else if (propName == null) {
1759
- const hostRef = getHostRef(this);
1760
1846
  const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1761
- if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1847
+ if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1762
1848
  const instance = hostRef.$lazyInstance$ ;
1763
1849
  const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1764
1850
  entry == null ? void 0 : entry.forEach((callbackName) => {
@@ -1769,9 +1855,12 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1769
1855
  }
1770
1856
  return;
1771
1857
  }
1858
+ const propFlags = members.find(([m]) => m === propName);
1859
+ if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
1860
+ newValue = newValue === null || newValue === "false" ? false : true;
1861
+ }
1772
1862
  const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1773
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1774
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1863
+ if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1775
1864
  this[propName] = newValue;
1776
1865
  }
1777
1866
  });
@@ -1779,7 +1868,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1779
1868
  Cstr.observedAttributes = Array.from(
1780
1869
  /* @__PURE__ */ new Set([
1781
1870
  ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1782
- ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
1871
+ ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
1783
1872
  const attrName = m[1] || propName;
1784
1873
  attrNameToPropName.set(attrName, propName);
1785
1874
  return attrName;
@@ -1863,6 +1952,9 @@ var fireConnectedCallback = (instance, elm) => {
1863
1952
  var connectedCallback = (elm) => {
1864
1953
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1865
1954
  const hostRef = getHostRef(elm);
1955
+ if (!hostRef) {
1956
+ return;
1957
+ }
1866
1958
  const cmpMeta = hostRef.$cmpMeta$;
1867
1959
  const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1868
1960
  if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
@@ -1889,7 +1981,7 @@ var connectedCallback = (elm) => {
1889
1981
  }
1890
1982
  if (cmpMeta.$members$) {
1891
1983
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1892
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1984
+ if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
1893
1985
  const value = elm[memberName];
1894
1986
  delete elm[memberName];
1895
1987
  elm[memberName] = value;
@@ -1919,7 +2011,7 @@ var disconnectedCallback = async (elm) => {
1919
2011
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1920
2012
  const hostRef = getHostRef(elm);
1921
2013
  {
1922
- if (hostRef.$rmListeners$) {
2014
+ if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
1923
2015
  hostRef.$rmListeners$.map((rmListener) => rmListener());
1924
2016
  hostRef.$rmListeners$ = void 0;
1925
2017
  }
@@ -1992,9 +2084,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1992
2084
  if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1993
2085
  {
1994
2086
  if (!self.shadowRoot) {
1995
- {
1996
- self.attachShadow({ mode: "open" });
1997
- }
2087
+ createShadowRoot.call(self, cmpMeta);
1998
2088
  } else {
1999
2089
  if (self.shadowRoot.mode !== "open") {
2000
2090
  throw new Error(
@@ -2007,6 +2097,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2007
2097
  }
2008
2098
  connectedCallback() {
2009
2099
  const hostRef = getHostRef(this);
2100
+ if (!hostRef) {
2101
+ return;
2102
+ }
2010
2103
  if (!this.hasRegisteredEventListeners) {
2011
2104
  this.hasRegisteredEventListeners = true;
2012
2105
  addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
@@ -2026,6 +2119,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2026
2119
  plt.raf(() => {
2027
2120
  var _a3;
2028
2121
  const hostRef = getHostRef(this);
2122
+ if (!hostRef) {
2123
+ return;
2124
+ }
2029
2125
  const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
2030
2126
  if (i2 > -1) {
2031
2127
  deferredConnectedCallbacks.splice(i2, 1);
@@ -2036,7 +2132,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2036
2132
  });
2037
2133
  }
2038
2134
  componentOnReady() {
2039
- return getHostRef(this).$onReadyPromise$;
2135
+ var _a3;
2136
+ return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
2040
2137
  }
2041
2138
  };
2042
2139
  cmpMeta.$lazyBundleId$ = lazyBundle[0];
@@ -2117,7 +2214,7 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
2117
2214
  // src/runtime/nonce.ts
2118
2215
  var setNonce = (nonce) => plt.$nonce$ = nonce;
2119
2216
 
2120
- export { getElement as a, bootstrapLazy as b, createEvent as c, setAssetPath as d, getAssetPath as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
2121
- //# sourceMappingURL=p-CE_ILdTo.js.map
2217
+ export { getAssetPath as a, bootstrapLazy as b, createEvent as c, getElement as d, setAssetPath as e, globalScripts as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
2218
+ //# sourceMappingURL=p-D9dYrmUF.js.map
2122
2219
 
2123
- //# sourceMappingURL=p-CE_ILdTo.js.map
2220
+ //# sourceMappingURL=p-D9dYrmUF.js.map