@zanichelli/zanichelli-it-frontend-kit 1.4.1-RC1 → 1.4.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 (94) hide show
  1. package/dist/cjs/{index-BLzQAHAI.js → index-BKkNg6ed.js} +498 -358
  2. package/dist/cjs/index.cjs.js +0 -3
  3. package/dist/cjs/loader.cjs.js +2 -5
  4. package/dist/cjs/zanichelli-it-frontend-kit.cjs.js +3 -6
  5. package/dist/cjs/zanit-back-to-top_4.cjs.entry.js +76 -64
  6. package/dist/collection/collection-manifest.json +3 -2
  7. package/dist/collection/components/back-to-top/back-to-top.js +3 -4
  8. package/dist/collection/components/menubar/menu/menu.js +0 -1
  9. package/dist/collection/components/menubar/menubar.js +12 -11
  10. package/dist/collection/components/menubar/mobile-menubar/mobile-menubar.js +12 -13
  11. package/dist/collection/components/menubar/search-form/search-form.js +14 -13
  12. package/dist/collection/components/menubar/search-form/suggestions.js +1 -2
  13. package/dist/collection/index.js +0 -1
  14. package/dist/collection/utils/index.js +0 -1
  15. package/dist/collection/utils/subjects.api.js +0 -1
  16. package/dist/collection/utils/utils.js +0 -1
  17. package/dist/components/index.d.ts +2 -0
  18. package/dist/components/index.js +1 -1335
  19. package/dist/components/p-BMtMaJq9.js +1 -0
  20. package/dist/components/p-BXeRLfHX.js +1 -0
  21. package/dist/components/zanit-back-to-top.js +1 -88
  22. package/dist/components/zanit-menubar.js +1 -455
  23. package/dist/components/zanit-mobile-menubar.js +1 -9
  24. package/dist/components/zanit-search-form.js +1 -9
  25. package/dist/esm/{index-DSdvvVFj.js → index-CFgcJxsy.js} +498 -358
  26. package/dist/esm/index.js +0 -3
  27. package/dist/esm/loader.js +3 -6
  28. package/dist/esm/zanichelli-it-frontend-kit.js +4 -7
  29. package/dist/esm/zanit-back-to-top_4.entry.js +76 -64
  30. package/dist/types/components/back-to-top/back-to-top.d.ts +2 -1
  31. package/dist/types/components/menubar/menubar.d.ts +2 -1
  32. package/dist/types/components/menubar/mobile-menubar/mobile-menubar.d.ts +2 -1
  33. package/dist/types/components/menubar/search-form/search-form.d.ts +3 -2
  34. package/dist/types/components.d.ts +35 -8
  35. package/dist/types/stencil-public-runtime.d.ts +169 -11
  36. package/dist/zanichelli-it-frontend-kit/index.esm.js +0 -2
  37. package/dist/zanichelli-it-frontend-kit/p-93d8b277.entry.js +1 -0
  38. package/dist/zanichelli-it-frontend-kit/p-CFgcJxsy.js +2 -0
  39. package/dist/zanichelli-it-frontend-kit/zanichelli-it-frontend-kit.esm.js +1 -2
  40. package/package.json +17 -15
  41. package/www/build/index.esm.js +0 -2
  42. package/www/build/p-93d8b277.entry.js +1 -0
  43. package/www/build/p-CFgcJxsy.js +2 -0
  44. package/www/build/p-ec9829f4.js +1 -0
  45. package/www/build/zanichelli-it-frontend-kit.esm.js +1 -2
  46. package/www/index.html +3 -2
  47. package/dist/cjs/index-BLzQAHAI.js.map +0 -1
  48. package/dist/cjs/index.cjs.js.map +0 -1
  49. package/dist/cjs/loader.cjs.js.map +0 -1
  50. package/dist/cjs/zanichelli-it-frontend-kit.cjs.js.map +0 -1
  51. package/dist/cjs/zanit-back-to-top.zanit-menubar.zanit-mobile-menubar.zanit-search-form.entry.cjs.js.map +0 -1
  52. package/dist/cjs/zanit-back-to-top_4.cjs.entry.js.map +0 -1
  53. package/dist/collection/components/back-to-top/back-to-top.js.map +0 -1
  54. package/dist/collection/components/menubar/menu/menu.js.map +0 -1
  55. package/dist/collection/components/menubar/menubar.js.map +0 -1
  56. package/dist/collection/components/menubar/mobile-menubar/mobile-menubar.js.map +0 -1
  57. package/dist/collection/components/menubar/search-form/search-form.js.map +0 -1
  58. package/dist/collection/components/menubar/search-form/suggestions.js.map +0 -1
  59. package/dist/collection/index.js.map +0 -1
  60. package/dist/collection/utils/index.js.map +0 -1
  61. package/dist/collection/utils/subjects.api.js.map +0 -1
  62. package/dist/collection/utils/utils.js.map +0 -1
  63. package/dist/components/index.js.map +0 -1
  64. package/dist/components/p-CPhDV9oz.js +0 -246
  65. package/dist/components/p-CPhDV9oz.js.map +0 -1
  66. package/dist/components/p-DR2f_bjz.js +0 -387
  67. package/dist/components/p-DR2f_bjz.js.map +0 -1
  68. package/dist/components/zanit-back-to-top.js.map +0 -1
  69. package/dist/components/zanit-menubar.js.map +0 -1
  70. package/dist/components/zanit-mobile-menubar.js.map +0 -1
  71. package/dist/components/zanit-search-form.js.map +0 -1
  72. package/dist/esm/index-DSdvvVFj.js.map +0 -1
  73. package/dist/esm/index.js.map +0 -1
  74. package/dist/esm/loader.js.map +0 -1
  75. package/dist/esm/zanichelli-it-frontend-kit.js.map +0 -1
  76. package/dist/esm/zanit-back-to-top.zanit-menubar.zanit-mobile-menubar.zanit-search-form.entry.js.map +0 -1
  77. package/dist/esm/zanit-back-to-top_4.entry.js.map +0 -1
  78. package/dist/zanichelli-it-frontend-kit/index.esm.js.map +0 -1
  79. package/dist/zanichelli-it-frontend-kit/loader.esm.js.map +0 -1
  80. package/dist/zanichelli-it-frontend-kit/p-12c6519e.entry.js +0 -2
  81. package/dist/zanichelli-it-frontend-kit/p-12c6519e.entry.js.map +0 -1
  82. package/dist/zanichelli-it-frontend-kit/p-DSdvvVFj.js +0 -3
  83. package/dist/zanichelli-it-frontend-kit/p-DSdvvVFj.js.map +0 -1
  84. package/dist/zanichelli-it-frontend-kit/zanichelli-it-frontend-kit.esm.js.map +0 -1
  85. package/dist/zanichelli-it-frontend-kit/zanit-back-to-top.zanit-menubar.zanit-mobile-menubar.zanit-search-form.entry.esm.js.map +0 -1
  86. package/www/build/index.esm.js.map +0 -1
  87. package/www/build/loader.esm.js.map +0 -1
  88. package/www/build/p-12c6519e.entry.js +0 -2
  89. package/www/build/p-12c6519e.entry.js.map +0 -1
  90. package/www/build/p-17633e25.js +0 -2
  91. package/www/build/p-DSdvvVFj.js +0 -3
  92. package/www/build/p-DSdvvVFj.js.map +0 -1
  93. package/www/build/zanichelli-it-frontend-kit.esm.js.map +0 -1
  94. package/www/build/zanit-back-to-top.zanit-menubar.zanit-mobile-menubar.zanit-search-form.entry.esm.js.map +0 -1
@@ -19,19 +19,26 @@ function _interopNamespace(e) {
19
19
  }
20
20
 
21
21
  const NAMESPACE = 'zanichelli-it-frontend-kit';
22
- const BUILD = /* zanichelli-it-frontend-kit */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true};
22
+ const BUILD = /* zanichelli-it-frontend-kit */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, state: true, updatable: true};
23
23
 
24
24
  const globalScripts = () => {};
25
25
  const globalStyles = ":root{--font-md:500}.title-1,.title-2,.title-3,.title-4,.title-5,.title-6,.title-1-rg,.title-2-rg,.title-3-rg,.title-4-rg,.title-5-rg,.title-6-rg,.title-1-lt,.title-2-lt,.title-3-lt,.title-4-lt,.title-5-lt,.title-6-lt,.title-1-sb,.title-2-sb,.title-3-sb,.title-4-sb,.title-5-sb,.title-6-sb,.title-1-bd,.title-2-bd,.title-3-bd,.title-4-bd,.title-5-bd,.title-6-bd,.title-1-md,.title-2-md,.title-3-md,.title-4-md,.title-5-md,.title-6-md{font-family:var(--font-family-serif);font-weight:var(--font-rg)}.title-1-lt,.title-2-lt,.title-3-lt,.title-4-lt,.title-5-lt,.title-6-lt,.heading-1-lt,.heading-2-lt,.heading-3-lt,.heading-4-lt,.body-1-lt,.body-2-lt,.body-3-lt,.body-4-lt,.body-5-lt,.body-6-lt,.body-7-lt,.interactive-1-lt,.interactive-2-lt{font-weight:var(--font-lt)}.title-1-md,.title-2-md,.title-3-md,.title-4-md,.title-5-md,.title-6-md,.heading-1-md,.heading-2-md,.heading-3-md,.heading-4-md,.body-1-md,.body-2-md,.body-3-md,.body-4-md,.body-5-md,.body-6-md,.body-7-md,.interactive-1-md,.interactive-2-md{font-weight:var(--font-md)}.title-1-rg,.title-2-rg,.title-3-rg,.title-4-rg,.title-5-rg,.title-6-rg,.heading-1-rg,.heading-2-rg,.heading-3-rg,.heading-4-rg,.body-1-rg,.body-2-rg,.body-3-rg,.body-4-rg,.body-5-rg,.body-6-rg,.body-7-rg,.interactive-1-rg,.interactive-2-rg{font-weight:var(--font-rg)}.title-1-sb,.title-2-sb,.title-3-sb,.title-4-sb,.title-5-sb,.title-6-sb,.heading-1-sb,.heading-2-sb,.heading-3-sb,.heading-4-sb,.body-2-sb,.body-3-sb,.body-4-sb,.body-5-sb,.body-6-sb,.body-7-sb,.interactive-1-sb,.interactive-2-sb{font-weight:var(--font-sb)}.title-1-bd,.title-2-bd,.title-3-bd,.title-4-bd,.title-5-bd,.title-6-bd,.heading-1-bd,.heading-2-bd,.heading-3-bd,.heading-4-bd,.body-1-bd,.body-2-bd,.body-3-bd,.body-4-bd,.body-5-bd,.body-6-bd,.body-7-bd,.interactive-1-bd,.interactive-2-bd{font-weight:var(--font-bd)}.font-lt{font-weight:var(--font-lt)}.font-rg{font-weight:var(--font-rg)}.font-md{font-weight:var(--font-md)}.font-sb{font-weight:var(--font-sb)}.font-bd{font-weight:var(--font-bd)}.font-it{font-style:italic}.font-serif{font-family:var(--font-family-serif)}.font-sans{font-family:var(--font-family-sans)}.title-1,.title-1-sb,.title-1-bd,.title-1-rg,.title-1-lt,.title-1-md{font-size:72px;line-height:80px}.title-2,.title-2-sb,.title-2-bd,.title-2-rg,.title-2-lt,.title-2-md{font-size:48px;line-height:52px}.title-3,.title-3-sb,.title-3-bd,.title-3-rg,.title-3-lt,.title-3-md{font-size:2rem;line-height:2.75rem;}.title-4,.title-4-sb,.title-4-bd,.title-4-rg,.title-4-lt,.title-4-md{font-size:1.75rem;line-height:2rem;}.title-5,.title-5-sb,.title-5-bd,.title-5-rg,.title-5-lt,.title-5-md{font-size:1.5rem;line-height:1.75rem;}.title-6,.title-6-sb,.title-6-bd,.title-6-rg,.title-6-lt,.title-6-md{font-size:1.25rem;line-height:1.75rem;}.heading-1,.heading-1-sb,.heading-1-bd,.heading-1-rg,.heading-1-lt,.heading-1-md{font-size:2rem;line-height:2.75rem;}.heading-2,.heading-2-sb,.heading-2-bd,.heading-2-rg,.heading-2-lt,.heading-2-md{font-size:1.75rem;line-height:2rem;}.heading-3,.heading-3-sb,.heading-3-bd,.heading-3-rg,.heading-3-lt,.heading-3-md{font-size:1.5rem;line-height:1.75rem;}.heading-4,.heading-4-sb,.heading-4-bd,.heading-4-rg,.heading-4-lt,.heading-4-md{font-size:1.125rem;line-height:1.375rem;}.body-1,.body-1-sb,.body-1-bd,.body-1-rg,.body-1-lt,.body-1-md{font-size:1.5rem;line-height:2rem;}.body-2,.body-2-sb,.body-2-bd,.body-2-rg,.body-2-lt,.body-2-md{font-size:1.25rem;line-height:1.75rem;}.body-3,.body-3-sb,.body-3-bd,.body-3-rg,.body-3-lt,.body-3-md{font-size:1.125rem;line-height:1.5rem;}.body-4,.body-4-sb,.body-4-bd,.body-4-rg,.body-4-lt,.body-4-md{font-size:1rem;line-height:1.5rem;}.body-5,.body-5-sb,.body-5-bd,.body-5-rg,.body-5-lt,.body-5-md{font-size:0.875rem;line-height:1.125rem;}.body-6,.body-6-sb,.body-6-bd,.body-6-rg,.body-6-lt,.body-6-md{font-size:0.75rem;line-height:1rem;}.body-7,.body-7-sb,.body-7-bd,.body-7-rg,.body-7-lt,.body-7-md{font-size:0.625rem;line-height:0.875rem;}.interactive-1,.interactive-1-sb,.interactive-1-bd,.interactive-1-rg,.interactive-1-lt,.interactive-1-md{font-size:1rem;line-height:1.5rem;}.interactive-2,.interactive-2-sb,.interactive-2-bd,.interactive-2-rg,.interactive-2-lt,.interactive-2-md{font-size:0.875rem;line-height:1.125rem;}@media (width < 768px){.mobile-title-1,.mobile-title-1-sb,.mobile-title-1-bd,.mobile-title-1-rg,.mobile-title-1-lt,.mobile-title-1-md{font-size:4.5rem;line-height:5rem;}.mobile-title-2,.mobile-title-2-sb,.mobile-title-2-bd,.mobile-title-2-rg,.mobile-title-2-lt,.mobile-title-2-md{font-size:3rem;line-height:3.25rem;}.mobile-title-3,.mobile-title-3-sb,.mobile-title-3-bd,.mobile-title-3-rg,.mobile-title-3-lt,.mobile-title-3-md{font-size:2rem;line-height:2.75rem;}.mobile-title-4,.mobile-title-4-sb,.mobile-title-4-bd,.mobile-title-4-rg,.mobile-title-4-lt,.mobile-title-4-md{font-size:1.75rem;line-height:2rem;}.mobile-title-5,.mobile-title-5-sb,.mobile-title-5-bd,.mobile-title-5-rg,.mobile-title-5-lt,.mobile-title-5-md{font-size:1.5rem;line-height:1.75rem;}.mobile-title-6,.mobile-title-6-sb,.mobile-title-6-bd,.mobile-title-6-rg,.mobile-title-6-lt,.mobile-title-6-md{font-size:1.25rem;line-height:1.75rem;}.mobile-heading-1,.mobile-heading-1-sb,.mobile-heading-1-bd,.mobile-heading-1-rg,.mobile-heading-1-lt,.mobile-heading-1-md{font-size:2rem;line-height:2.75rem;}.mobile-heading-2,.mobile-heading-2-sb,.mobile-heading-2-bd,.mobile-heading-2-rg,.mobile-heading-2-lt,.mobile-heading-2-md{font-size:1.75rem;line-height:2rem;}.mobile-heading-3,.mobile-heading-3-sb,.mobile-heading-3-bd,.mobile-heading-3-rg,.mobile-heading-3-lt,.mobile-heading-3-md{font-size:1.5rem;line-height:1.75rem;}.mobile-heading-4,.mobile-heading-4-sb,.mobile-heading-4-bd,.mobile-heading-4-rg,.mobile-heading-4-lt,.mobile-heading-4-md{font-size:1.125rem;line-height:1.375rem;}.mobile-body-1,.mobile-body-1-sb,.mobile-body-1-bd,.mobile-body-1-rg,.mobile-body-1-lt,.mobile-body-1-md{font-size:1.5rem;line-height:2rem;}.mobile-body-2,.mobile-body-2-sb,.mobile-body-2-bd,.mobile-body-2-rg,.mobile-body-2-lt,.mobile-body-2-md{font-size:1.25rem;line-height:1.75rem;}.mobile-body-3,.mobile-body-3-sb,.mobile-body-3-bd,.mobile-body-3-rg,.mobile-body-3-lt,.mobile-body-3-md{font-size:1.125rem;line-height:1.5rem;}.mobile-body-4,.mobile-body-4-sb,.mobile-body-4-bd,.mobile-body-4-rg,.mobile-body-4-lt,.mobile-body-4-md{font-size:1rem;line-height:1.5rem;}.mobile-body-5,.mobile-body-5-sb,.mobile-body-5-bd,.mobile-body-5-rg,.mobile-body-5-lt,.mobile-body-5-md{font-size:0.875rem;line-height:1.125rem;}.mobile-body-6,.mobile-body-6-sb,.mobile-body-6-bd,.mobile-body-6-rg,.mobile-body-6-lt,.mobile-body-6-md{font-size:0.75rem;line-height:1rem;}.mobile-body-7,.mobile-body-7-sb,.mobile-body-7-bd,.mobile-body-7-rg,.mobile-body-7-lt,.mobile-body-7-md{font-size:0.625rem;line-height:0.875rem;}.mobile-interactive-1,.mobile-interactive-1-sb,.mobile-interactive-1-bd,.mobile-interactive-1-rg,.mobile-interactive-1-lt,.mobile-interactive-1-md{font-size:1rem;line-height:1.5rem;}.mobile-interactive-2,.mobile-interactive-2-sb,.mobile-interactive-2-bd,.mobile-interactive-2-rg,.mobile-interactive-2-lt,.mobile-interactive-2-md{font-size:0.875rem;line-height:1.125rem;}}@media (width >= 768px) and (width < 1152px){.tablet-title-1,.tablet-title-1-sb,.tablet-title-1-bd,.tablet-title-1-rg,.tablet-title-1-lt,.tablet-title-1-md{font-size:4.5rem;line-height:5rem;}.tablet-title-2,.tablet-title-2-sb,.tablet-title-2-bd,.tablet-title-2-rg,.tablet-title-2-lt,.tablet-title-2-md{font-size:3rem;line-height:3.25rem;}.tablet-title-3,.tablet-title-3-sb,.tablet-title-3-bd,.tablet-title-3-rg,.tablet-title-3-lt,.tablet-title-3-md{font-size:2rem;line-height:2.75rem;}.tablet-title-4,.tablet-title-4-sb,.tablet-title-4-bd,.tablet-title-4-rg,.tablet-title-4-lt,.tablet-title-4-md{font-size:1.75rem;line-height:2rem;}.tablet-title-5,.tablet-title-5-sb,.tablet-title-5-bd,.tablet-title-5-rg,.tablet-title-5-lt,.tablet-title-5-md{font-size:1.5rem;line-height:1.75rem;}.tablet-title-6,.tablet-title-6-sb,.tablet-title-6-bd,.tablet-title-6-rg,.tablet-title-6-lt,.tablet-title-6-md{font-size:1.25rem;line-height:1.75rem;}.tablet-heading-1,.tablet-heading-1-sb,.tablet-heading-1-bd,.tablet-heading-1-rg,.tablet-heading-1-lt,.tablet-heading-1-md{font-size:2rem;line-height:2.75rem;}.tablet-heading-2,.tablet-heading-2-sb,.tablet-heading-2-bd,.tablet-heading-2-rg,.tablet-heading-2-lt,.tablet-heading-2-md{font-size:1.75rem;line-height:2rem;}.tablet-heading-3,.tablet-heading-3-sb,.tablet-heading-3-bd,.tablet-heading-3-rg,.tablet-heading-3-lt,.tablet-heading-3-md{font-size:1.5rem;line-height:1.75rem;}.tablet-heading-4,.tablet-heading-4-sb,.tablet-heading-4-bd,.tablet-heading-4-rg,.tablet-heading-4-lt,.tablet-heading-4-md{font-size:1.125rem;line-height:1.375rem;}.tablet-body-1,.tablet-body-1-sb,.tablet-body-1-bd,.tablet-body-1-rg,.tablet-body-1-lt,.tablet-body-1-md{font-size:1.5rem;line-height:2rem;}.tablet-body-2,.tablet-body-2-sb,.tablet-body-2-bd,.tablet-body-2-rg,.tablet-body-2-lt,.tablet-body-2-md{font-size:1.25rem;line-height:1.75rem;}.tablet-body-3,.tablet-body-3-sb,.tablet-body-3-bd,.tablet-body-3-rg,.tablet-body-3-lt,.tablet-body-3-md{font-size:1.125rem;line-height:1.5rem;}.tablet-body-4,.tablet-body-4-sb,.tablet-body-4-bd,.tablet-body-4-rg,.tablet-body-4-lt,.tablet-body-4-md{font-size:1rem;line-height:1.5rem;}.tablet-body-5,.tablet-body-5-sb,.tablet-body-5-bd,.tablet-body-5-rg,.tablet-body-5-lt,.tablet-body-5-md{font-size:0.875rem;line-height:1.125rem;}.tablet-body-6,.tablet-body-6-sb,.tablet-body-6-bd,.tablet-body-6-rg,.tablet-body-6-lt,.tablet-body-6-md{font-size:0.75rem;line-height:1rem;}.tablet-body-7,.tablet-body-7-sb,.tablet-body-7-bd,.tablet-body-7-rg,.tablet-body-7-lt,.tablet-body-7-md{font-size:0.625rem;line-height:0.875rem;}.tablet-interactive-1,.tablet-interactive-1-sb,.tablet-interactive-1-bd,.tablet-interactive-1-rg,.tablet-interactive-1-lt,.tablet-interactive-1-md{font-size:1rem;line-height:1.5rem;}.tablet-interactive-2,.tablet-interactive-2-sb,.tablet-interactive-2-bd,.tablet-interactive-2-rg,.tablet-interactive-2-lt,.tablet-interactive-2-md{font-size:0.875rem;line-height:1.125rem;}}@media (width >= 1152px){.desktop-title-1,.desktop-title-1-sb,.desktop-title-1-bd,.desktop-title-1-rg,.desktop-title-1-lt,.desktop-title-1-md{font-size:4.5rem;line-height:5rem;}.desktop-title-2,.desktop-title-2-sb,.desktop-title-2-bd,.desktop-title-2-rg,.desktop-title-2-lt,.desktop-title-2-md{font-size:3rem;line-height:3.25rem;}.desktop-title-3,.desktop-title-3-sb,.desktop-title-3-bd,.desktop-title-3-rg,.desktop-title-3-lt,.desktop-title-3-md{font-size:2rem;line-height:2.75rem;}.desktop-title-4,.desktop-title-4-sb,.desktop-title-4-bd,.desktop-title-4-rg,.desktop-title-4-lt,.desktop-title-4-md{font-size:1.75rem;line-height:2rem;}.desktop-title-5,.desktop-title-5-sb,.desktop-title-5-bd,.desktop-title-5-rg,.desktop-title-5-lt,.desktop-title-5-md{font-size:1.5rem;line-height:1.75rem;}.desktop-title-6,.desktop-title-6-sb,.desktop-title-6-bd,.desktop-title-6-rg,.desktop-title-6-lt,.desktop-title-6-md{font-size:1.25rem;line-height:1.75rem;}.desktop-heading-1,.desktop-heading-1-sb,.desktop-heading-1-bd,.desktop-heading-1-rg,.desktop-heading-1-lt,.desktop-heading-1-md{font-size:2rem;line-height:2.75rem;}.desktop-heading-2,.desktop-heading-2-sb,.desktop-heading-2-bd,.desktop-heading-2-rg,.desktop-heading-2-lt,.desktop-heading-2-md{font-size:1.75rem;line-height:2rem;}.desktop-heading-3,.desktop-heading-3-sb,.desktop-heading-3-bd,.desktop-heading-3-rg,.desktop-heading-3-lt,.desktop-heading-3-md{font-size:1.5rem;line-height:1.75rem;}.desktop-heading-4,.desktop-heading-4-sb,.desktop-heading-4-bd,.desktop-heading-4-rg,.desktop-heading-4-lt,.desktop-heading-4-md{font-size:1.125rem;line-height:1.375rem;}.desktop-body-1,.desktop-body-1-sb,.desktop-body-1-bd,.desktop-body-1-rg,.desktop-body-1-lt,.desktop-body-1-md{font-size:1.5rem;line-height:2rem;}.desktop-body-2,.desktop-body-2-sb,.desktop-body-2-bd,.desktop-body-2-rg,.desktop-body-2-lt,.desktop-body-2-md{font-size:1.25rem;line-height:1.75rem;}.desktop-body-3,.desktop-body-3-sb,.desktop-body-3-bd,.desktop-body-3-rg,.desktop-body-3-lt,.desktop-body-3-md{font-size:1.125rem;line-height:1.5rem;}.desktop-body-4,.desktop-body-4-sb,.desktop-body-4-bd,.desktop-body-4-rg,.desktop-body-4-lt,.desktop-body-4-md{font-size:1rem;line-height:1.5rem;}.desktop-body-5,.desktop-body-5-sb,.desktop-body-5-bd,.desktop-body-5-rg,.desktop-body-5-lt,.desktop-body-5-md{font-size:0.875rem;line-height:1.125rem;}.desktop-body-6,.desktop-body-6-sb,.desktop-body-6-bd,.desktop-body-6-rg,.desktop-body-6-lt,.desktop-body-6-md{font-size:0.75rem;line-height:1rem;}.desktop-body-7,.desktop-body-7-sb,.desktop-body-7-bd,.desktop-body-7-rg,.desktop-body-7-lt,.desktop-body-7-md{font-size:0.625rem;line-height:0.875rem;}.desktop-interactive-1,.desktop-interactive-1-sb,.desktop-interactive-1-bd,.desktop-interactive-1-rg,.desktop-interactive-1-lt,.desktop-interactive-1-md{font-size:1rem;line-height:1.5rem;}.desktop-interactive-2,.desktop-interactive-2-sb,.desktop-interactive-2-bd,.desktop-interactive-2-rg,.desktop-interactive-2-lt,.desktop-interactive-2-md{font-size:0.875rem;line-height:1.125rem;}}z-button.zanit-button{--color-primary01:var(--red500);--color-hover-primary:var(--red800);--color-pressed-primary:var(--red400);--color-button-secondary:transparent;--color-primary02:transparent;--color-primary03:transparent}z-button.zanit-button-dark{--color-primary01:var(--gray950);--color-hover-primary:#000;--color-pressed-primary:var(--gray950);--color-button-secondary:transparent;--color-primary02:transparent;--color-primary03:transparent}:root{--zanit-accent-color:#ffe74c;--shadow-focus-primary:0 0 0 2px #fff, 0 0 2px 5px var(--gray950)}.zanit-link,.zanit-link-inverse{color:currentcolor;font-family:inherit;text-decoration:underline solid 12% var(--red500);text-underline-offset:28%}.zanit-link-inverse{color:var(--color-text-inverse);text-decoration-color:var(--color-text-inverse)}";
26
26
 
27
27
  /*
28
- Stencil Client Platform v4.33.1 | MIT Licensed | https://stenciljs.com
28
+ Stencil Client Platform v4.43.4 | MIT Licensed | https://stenciljs.com
29
29
  */
30
- var __defProp = Object.defineProperty;
31
- var __export = (target, all) => {
32
- for (var name in all)
33
- __defProp(target, name, { get: all[name], enumerable: true });
34
- };
30
+
31
+
32
+ // src/utils/get-prop-descriptor.ts
33
+ function getPropertyDescriptor(obj, memberName, getOnly) {
34
+ const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
35
+ while (obj && obj !== stopAt) {
36
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
37
+ if (desc && (!getOnly || desc.get)) return desc;
38
+ obj = Object.getPrototypeOf(obj);
39
+ }
40
+ return void 0;
41
+ }
35
42
 
36
43
  // src/utils/es2022-rewire-class-members.ts
37
44
  var reWireGetterSetter = (instance, hostRef) => {
@@ -41,18 +48,24 @@ var reWireGetterSetter = (instance, hostRef) => {
41
48
  members.map(([memberName, [memberFlags]]) => {
42
49
  if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
43
50
  const ogValue = instance[memberName];
44
- const ogDescriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(instance), memberName);
45
- Object.defineProperty(instance, memberName, {
46
- get() {
47
- return ogDescriptor.get.call(this);
48
- },
49
- set(newValue) {
50
- ogDescriptor.set.call(this, newValue);
51
- },
52
- configurable: true,
53
- enumerable: true
54
- });
55
- instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
51
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
52
+ if (ogDescriptor) {
53
+ Object.defineProperty(instance, memberName, {
54
+ get() {
55
+ return ogDescriptor.get.call(this);
56
+ },
57
+ set(newValue) {
58
+ ogDescriptor.set.call(this, newValue);
59
+ },
60
+ configurable: true,
61
+ enumerable: true
62
+ });
63
+ }
64
+ if (hostRef.$instanceValues$.has(memberName)) {
65
+ instance[memberName] = hostRef.$instanceValues$.get(memberName);
66
+ } else if (ogValue !== void 0) {
67
+ instance[memberName] = ogValue;
68
+ }
56
69
  }
57
70
  });
58
71
  };
@@ -65,9 +78,10 @@ var getHostRef = (ref) => {
65
78
  return void 0;
66
79
  };
67
80
  var registerInstance = (lazyInstance, hostRef) => {
81
+ if (!hostRef) return;
68
82
  lazyInstance.__stencil__getHostRef = () => hostRef;
69
83
  hostRef.$lazyInstance$ = lazyInstance;
70
- {
84
+ if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
71
85
  reWireGetterSetter(lazyInstance, hostRef);
72
86
  }
73
87
  };
@@ -76,13 +90,17 @@ var registerHost = (hostElement, cmpMeta) => {
76
90
  $flags$: 0,
77
91
  $hostElement$: hostElement,
78
92
  $cmpMeta$: cmpMeta,
79
- $instanceValues$: /* @__PURE__ */ new Map()
93
+ $instanceValues$: /* @__PURE__ */ new Map(),
94
+ $serializerValues$: /* @__PURE__ */ new Map()
80
95
  };
81
96
  {
82
97
  hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
83
98
  hostElement["s-p"] = [];
84
99
  hostElement["s-rc"] = [];
85
100
  }
101
+ {
102
+ hostRef.$fetchedCbList$ = [];
103
+ }
86
104
  const ref = hostRef;
87
105
  hostElement.__stencil__getHostRef = () => ref;
88
106
  return ref;
@@ -137,7 +155,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
137
155
 
138
156
  // src/client/client-style.ts
139
157
  var styles = /* @__PURE__ */ new Map();
140
- var HYDRATED_STYLE_ID = "sty-id";
141
158
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
142
159
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
143
160
  var win = typeof window !== "undefined" ? window : {};
@@ -170,12 +187,16 @@ var supportsListenerOptions = /* @__PURE__ */ (() => {
170
187
  var promiseResolve = (v) => Promise.resolve(v);
171
188
  var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
172
189
  try {
190
+ if (!win.document.adoptedStyleSheets) {
191
+ return false;
192
+ }
173
193
  new CSSStyleSheet();
174
194
  return typeof new CSSStyleSheet().replaceSync === "function";
175
195
  } catch (e) {
176
196
  }
177
197
  return false;
178
198
  })() ;
199
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
179
200
  var queuePending = false;
180
201
  var queueDomReads = [];
181
202
  var queueDomWrites = [];
@@ -212,81 +233,34 @@ var flush = () => {
212
233
  var nextTick = (cb) => promiseResolve().then(cb);
213
234
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
214
235
 
215
- // src/utils/helpers.ts
216
- var isDef = (v) => v != null && v !== void 0;
217
- var isComplexType = (o) => {
218
- o = typeof o;
219
- return o === "object" || o === "function";
220
- };
221
-
222
- // src/utils/query-nonce-meta-tag-content.ts
223
- function queryNonceMetaTagContent(doc) {
224
- var _a, _b, _c;
225
- return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
236
+ // src/utils/style.ts
237
+ function createStyleSheetIfNeededAndSupported(styles2) {
238
+ if (!supportsConstructableStylesheets) return void 0;
239
+ const sheet = new CSSStyleSheet();
240
+ sheet.replaceSync(styles2);
241
+ return sheet;
226
242
  }
227
243
 
228
- // src/utils/regular-expression.ts
229
- var escapeRegExpSpecialCharacters = (text) => {
230
- return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
231
- };
232
-
233
- // src/utils/result.ts
234
- var result_exports = {};
235
- __export(result_exports, {
236
- err: () => err,
237
- map: () => map,
238
- ok: () => ok,
239
- unwrap: () => unwrap,
240
- unwrapErr: () => unwrapErr
241
- });
242
- var ok = (value) => ({
243
- isOk: true,
244
- isErr: false,
245
- value
246
- });
247
- var err = (value) => ({
248
- isOk: false,
249
- isErr: true,
250
- value
251
- });
252
- function map(result, fn) {
253
- if (result.isOk) {
254
- const val = fn(result.value);
255
- if (val instanceof Promise) {
256
- return val.then((newVal) => ok(newVal));
244
+ // src/utils/shadow-root.ts
245
+ var globalStyleSheet;
246
+ function createShadowRoot(cmpMeta) {
247
+ var _a;
248
+ const opts = { mode: "open" };
249
+ {
250
+ opts.delegatesFocus = !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */);
251
+ }
252
+ const shadowRoot = this.attachShadow(opts);
253
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported(globalStyles)) != null ? _a : null;
254
+ if (globalStyleSheet) {
255
+ if (supportsMutableAdoptedStyleSheets) {
256
+ shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
257
257
  } else {
258
- return ok(val);
258
+ shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
259
259
  }
260
- }
261
- if (result.isErr) {
262
- const value = result.value;
263
- return err(value);
264
- }
265
- throw "should never get here";
266
- }
267
- var unwrap = (result) => {
268
- if (result.isOk) {
269
- return result.value;
270
- } else {
271
- throw result.value;
272
- }
273
- };
274
- var unwrapErr = (result) => {
275
- if (result.isErr) {
276
- return result.value;
277
- } else {
278
- throw result.value;
279
- }
280
- };
281
- function createShadowRoot(cmpMeta) {
282
- const shadowRoot = this.attachShadow({
283
- mode: "open",
284
- delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
285
- }) ;
286
- if (supportsConstructableStylesheets) {
287
- const sheet = new CSSStyleSheet();
288
- sheet.replaceSync(globalStyles);
289
- shadowRoot.adoptedStyleSheets.push(sheet);
260
+ } else if (!supportsConstructableStylesheets) {
261
+ const styleElm = document.createElement("style");
262
+ styleElm.innerHTML = globalStyles;
263
+ shadowRoot.prepend(styleElm);
290
264
  }
291
265
  }
292
266
  var createTime = (fnName, tagName = "") => {
@@ -303,7 +277,147 @@ var uniqueTime = (key, measureText) => {
303
277
  };
304
278
  }
305
279
  };
280
+
281
+ // src/utils/query-nonce-meta-tag-content.ts
282
+ function queryNonceMetaTagContent(doc) {
283
+ var _a, _b, _c;
284
+ return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
285
+ }
286
+
287
+ // src/runtime/styles.ts
288
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
289
+ var registerStyle = (scopeId2, cssText, allowCS) => {
290
+ let style = styles.get(scopeId2);
291
+ if (supportsConstructableStylesheets && allowCS) {
292
+ style = style || new CSSStyleSheet();
293
+ if (typeof style === "string") {
294
+ style = cssText;
295
+ } else {
296
+ style.replaceSync(cssText);
297
+ }
298
+ } else {
299
+ style = cssText;
300
+ }
301
+ styles.set(scopeId2, style);
302
+ };
303
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
304
+ var _a, _b, _c;
305
+ const scopeId2 = getScopeId(cmpMeta);
306
+ const style = styles.get(scopeId2);
307
+ if (!win.document) {
308
+ return scopeId2;
309
+ }
310
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
311
+ if (style) {
312
+ if (typeof style === "string") {
313
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
314
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
315
+ let styleElm;
316
+ if (!appliedStyles) {
317
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
318
+ }
319
+ if (!appliedStyles.has(scopeId2)) {
320
+ styleElm = win.document.createElement("style");
321
+ styleElm.textContent = style;
322
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
323
+ if (nonce != null) {
324
+ styleElm.setAttribute("nonce", nonce);
325
+ }
326
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
327
+ if (styleContainerNode.nodeName === "HEAD") {
328
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
329
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
330
+ styleContainerNode.insertBefore(
331
+ styleElm,
332
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
333
+ );
334
+ } else if ("host" in styleContainerNode) {
335
+ if (supportsConstructableStylesheets) {
336
+ const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
337
+ const stylesheet = new currentWindow.CSSStyleSheet();
338
+ stylesheet.replaceSync(style);
339
+ if (supportsMutableAdoptedStyleSheets) {
340
+ styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
341
+ } else {
342
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
343
+ }
344
+ } else {
345
+ const existingStyleContainer = styleContainerNode.querySelector("style");
346
+ if (existingStyleContainer && true) {
347
+ existingStyleContainer.textContent = style + existingStyleContainer.textContent;
348
+ } else {
349
+ styleContainerNode.prepend(styleElm);
350
+ }
351
+ }
352
+ } else {
353
+ styleContainerNode.append(styleElm);
354
+ }
355
+ }
356
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
357
+ styleContainerNode.insertBefore(styleElm, null);
358
+ }
359
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
360
+ styleElm.textContent += SLOT_FB_CSS;
361
+ }
362
+ if (appliedStyles) {
363
+ appliedStyles.add(scopeId2);
364
+ }
365
+ }
366
+ } else {
367
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
368
+ if (!appliedStyles) {
369
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
370
+ }
371
+ if (!appliedStyles.has(scopeId2)) {
372
+ const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
373
+ let stylesheet;
374
+ if (style.constructor === currentWindow.CSSStyleSheet) {
375
+ stylesheet = style;
376
+ } else {
377
+ stylesheet = new currentWindow.CSSStyleSheet();
378
+ for (let i2 = 0; i2 < style.cssRules.length; i2++) {
379
+ stylesheet.insertRule(style.cssRules[i2].cssText, i2);
380
+ }
381
+ }
382
+ if (supportsMutableAdoptedStyleSheets) {
383
+ styleContainerNode.adoptedStyleSheets.push(stylesheet);
384
+ } else {
385
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
386
+ }
387
+ appliedStyles.add(scopeId2);
388
+ }
389
+ }
390
+ }
391
+ return scopeId2;
392
+ };
393
+ var attachStyles = (hostRef) => {
394
+ const cmpMeta = hostRef.$cmpMeta$;
395
+ const elm = hostRef.$hostElement$;
396
+ const flags = cmpMeta.$flags$;
397
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
398
+ const scopeId2 = addStyle(
399
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
400
+ cmpMeta);
401
+ if (flags & 10 /* needsScopedEncapsulation */) {
402
+ elm["s-sc"] = scopeId2;
403
+ elm.classList.add(scopeId2 + "-h");
404
+ }
405
+ endAttachStyles();
406
+ };
407
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
408
+
409
+ // src/utils/helpers.ts
410
+ var isDef = (v) => v != null && v !== void 0;
411
+ var isComplexType = (o) => {
412
+ o = typeof o;
413
+ return o === "object" || o === "function";
414
+ };
415
+
416
+ // src/runtime/vdom/h.ts
306
417
  var h = (nodeName, vnodeData, ...children) => {
418
+ if (typeof nodeName === "string") {
419
+ nodeName = transformTag(nodeName);
420
+ }
307
421
  let child = null;
308
422
  let key = null;
309
423
  let simple = false;
@@ -360,7 +474,8 @@ var newVNode = (tag, text) => {
360
474
  const vnode = {
361
475
  $flags$: 0,
362
476
  $tag$: tag,
363
- $text$: text,
477
+ // Normalize undefined to null to prevent rendering "undefined" as text
478
+ $text$: text != null ? text : null,
364
479
  $elm$: null,
365
480
  $children$: null
366
481
  };
@@ -404,22 +519,39 @@ var convertToPrivate = (node) => {
404
519
  vnode.$name$ = node.vname;
405
520
  return vnode;
406
521
  };
407
- var createSupportsRuleRe = (selector) => {
408
- const safeSelector2 = escapeRegExpSpecialCharacters(selector);
409
- return new RegExp(
410
- // First capture group: match any context before the selector that's not inside @supports selector()
411
- // Using negative lookahead to avoid matching inside @supports selector(...) condition
412
- `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
413
- "g"
414
- );
522
+
523
+ // src/runtime/normalize-watchers.ts
524
+ var normalizeWatchers = (raw) => {
525
+ if (!raw) return void 0;
526
+ const keys = Object.keys(raw);
527
+ if (keys.length === 0) return void 0;
528
+ let hasLegacy = false;
529
+ for (const propName of keys) {
530
+ if (hasLegacy) break;
531
+ for (const h2 of raw[propName]) {
532
+ if (typeof h2 === "string") {
533
+ hasLegacy = true;
534
+ break;
535
+ }
536
+ }
537
+ }
538
+ if (!hasLegacy) return raw;
539
+ const out = {};
540
+ for (const propName of keys) {
541
+ out[propName] = raw[propName].map(
542
+ (h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
543
+ );
544
+ }
545
+ return out;
415
546
  };
416
- createSupportsRuleRe("::slotted");
417
- createSupportsRuleRe(":host");
418
- createSupportsRuleRe(":host-context");
419
- var parsePropertyValue = (propValue, propType) => {
547
+
548
+ // src/runtime/parse-property-value.ts
549
+ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
420
550
  if (propValue != null && !isComplexType(propValue)) {
421
551
  if (propType & 4 /* Boolean */) {
422
- return propValue === "false" ? false : propValue === "" || !!propValue;
552
+ {
553
+ return propValue === "false" ? false : propValue === "" || !!propValue;
554
+ }
423
555
  }
424
556
  if (propType & 2 /* Number */) {
425
557
  return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
@@ -431,7 +563,10 @@ var parsePropertyValue = (propValue, propType) => {
431
563
  }
432
564
  return propValue;
433
565
  };
434
- var getElement = (ref) => getHostRef(ref).$hostElement$ ;
566
+ var getElement = (ref) => {
567
+ var _a;
568
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
569
+ };
435
570
 
436
571
  // src/runtime/event-emitter.ts
437
572
  var createEvent = (ref, name, flags) => {
@@ -452,102 +587,6 @@ var emitEvent = (elm, name, opts) => {
452
587
  elm.dispatchEvent(ev);
453
588
  return ev;
454
589
  };
455
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
456
- var registerStyle = (scopeId2, cssText, allowCS) => {
457
- let style = styles.get(scopeId2);
458
- if (supportsConstructableStylesheets && allowCS) {
459
- style = style || new CSSStyleSheet();
460
- if (typeof style === "string") {
461
- style = cssText;
462
- } else {
463
- style.replaceSync(cssText);
464
- }
465
- } else {
466
- style = cssText;
467
- }
468
- styles.set(scopeId2, style);
469
- };
470
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
471
- var _a;
472
- const scopeId2 = getScopeId(cmpMeta);
473
- const style = styles.get(scopeId2);
474
- if (!win.document) {
475
- return scopeId2;
476
- }
477
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
478
- if (style) {
479
- if (typeof style === "string") {
480
- styleContainerNode = styleContainerNode.head || styleContainerNode;
481
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
482
- let styleElm;
483
- if (!appliedStyles) {
484
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
485
- }
486
- if (!appliedStyles.has(scopeId2)) {
487
- {
488
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
489
- styleElm.innerHTML = style;
490
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
491
- if (nonce != null) {
492
- styleElm.setAttribute("nonce", nonce);
493
- }
494
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
495
- if (styleContainerNode.nodeName === "HEAD") {
496
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
497
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
498
- styleContainerNode.insertBefore(
499
- styleElm,
500
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
501
- );
502
- } else if ("host" in styleContainerNode) {
503
- if (supportsConstructableStylesheets) {
504
- const stylesheet = new CSSStyleSheet();
505
- stylesheet.replaceSync(style);
506
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
507
- } else {
508
- const existingStyleContainer = styleContainerNode.querySelector("style");
509
- if (existingStyleContainer) {
510
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
511
- } else {
512
- styleContainerNode.prepend(styleElm);
513
- }
514
- }
515
- } else {
516
- styleContainerNode.append(styleElm);
517
- }
518
- }
519
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
520
- styleContainerNode.insertBefore(styleElm, null);
521
- }
522
- }
523
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
524
- styleElm.innerHTML += SLOT_FB_CSS;
525
- }
526
- if (appliedStyles) {
527
- appliedStyles.add(scopeId2);
528
- }
529
- }
530
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
531
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
532
- }
533
- }
534
- return scopeId2;
535
- };
536
- var attachStyles = (hostRef) => {
537
- const cmpMeta = hostRef.$cmpMeta$;
538
- const elm = hostRef.$hostElement$;
539
- const flags = cmpMeta.$flags$;
540
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
541
- const scopeId2 = addStyle(
542
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
543
- cmpMeta);
544
- if (flags & 10 /* needsScopedEncapsulation */) {
545
- elm["s-sc"] = scopeId2;
546
- elm.classList.add(scopeId2 + "-h");
547
- }
548
- endAttachStyles();
549
- };
550
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
551
590
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
552
591
  if (oldValue === newValue) {
553
592
  return;
@@ -564,7 +603,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
564
603
  }
565
604
  } else if (memberName === "key") ; else if (memberName === "ref") {
566
605
  if (newValue) {
567
- newValue(elm);
606
+ queueRefAttachment(newValue, elm);
568
607
  }
569
608
  } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
570
609
  if (memberName[2] === "-") {
@@ -584,15 +623,45 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
584
623
  plt.ael(elm, memberName, newValue, capture);
585
624
  }
586
625
  }
626
+ } else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
627
+ const propName = memberName.slice(5);
628
+ let attrName;
629
+ {
630
+ const hostRef = getHostRef(elm);
631
+ if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
632
+ const memberMeta = hostRef.$cmpMeta$.$members$[propName];
633
+ if (memberMeta && memberMeta[1]) {
634
+ attrName = memberMeta[1];
635
+ }
636
+ }
637
+ }
638
+ if (!attrName) {
639
+ attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
640
+ }
641
+ if (newValue == null || newValue === false) {
642
+ if (newValue !== false || elm.getAttribute(attrName) === "") {
643
+ elm.removeAttribute(attrName);
644
+ }
645
+ } else {
646
+ elm.setAttribute(attrName, newValue === true ? "" : newValue);
647
+ }
648
+ return;
649
+ } else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
650
+ const propName = memberName.slice(5);
651
+ try {
652
+ elm[propName] = newValue;
653
+ } catch (e) {
654
+ }
655
+ return;
587
656
  } else {
588
657
  const isComplex = isComplexType(newValue);
589
- if ((isProp || isComplex && newValue !== null) && true) {
658
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
590
659
  try {
591
660
  if (!elm.tagName.includes("-")) {
592
661
  const n = newValue == null ? "" : newValue;
593
662
  if (memberName === "list") {
594
663
  isProp = false;
595
- } else if (oldValue == null || elm[memberName] != n) {
664
+ } else if (oldValue == null || elm[memberName] !== n) {
596
665
  if (typeof elm.__lookupSetter__(memberName) === "function") {
597
666
  elm[memberName] = n;
598
667
  } else {
@@ -674,18 +743,18 @@ function sortedAttrNames(attrNames) {
674
743
  var scopeId;
675
744
  var hostTagName;
676
745
  var isSvgMode = false;
746
+ var refCallbacksToRemove = [];
747
+ var refCallbacksToAttach = [];
677
748
  var createElm = (oldParentVNode, newParentVNode, childIndex) => {
678
749
  const newVNode2 = newParentVNode.$children$[childIndex];
679
750
  let i2 = 0;
680
751
  let elm;
681
752
  let childNode;
682
- if (newVNode2.$text$ !== null) {
753
+ if (newVNode2.$text$ != null) {
683
754
  elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
684
755
  } else {
685
756
  if (!win.document) {
686
- throw new Error(
687
- "You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
688
- );
757
+ throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
689
758
  }
690
759
  elm = newVNode2.$elm$ = win.document.createElement(
691
760
  newVNode2.$tag$
@@ -697,10 +766,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
697
766
  elm.classList.add(elm["s-si"] = scopeId);
698
767
  }
699
768
  if (newVNode2.$children$) {
769
+ const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
700
770
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
701
771
  childNode = createElm(oldParentVNode, newVNode2, i2);
702
772
  if (childNode) {
703
- elm.appendChild(childNode);
773
+ appendTarget.appendChild(childNode);
704
774
  }
705
775
  }
706
776
  }
@@ -714,6 +784,9 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
714
784
  if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
715
785
  containerElm = containerElm.shadowRoot;
716
786
  }
787
+ if (parentVNode.$tag$ === "template") {
788
+ containerElm = containerElm.content;
789
+ }
717
790
  for (; startIdx <= endIdx; ++startIdx) {
718
791
  if (vnodes[startIdx]) {
719
792
  childNode = createElm(null, parentVNode, startIdx);
@@ -749,6 +822,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
749
822
  let newEndVnode = newCh[newEndIdx];
750
823
  let node;
751
824
  let elmToMove;
825
+ const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
752
826
  while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
753
827
  if (oldStartVnode == null) {
754
828
  oldStartVnode = oldCh[++oldStartIdx];
@@ -768,12 +842,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
768
842
  newEndVnode = newCh[--newEndIdx];
769
843
  } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
770
844
  patch(oldStartVnode, newEndVnode, isInitialRender);
771
- insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
845
+ insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
772
846
  oldStartVnode = oldCh[++oldStartIdx];
773
847
  newEndVnode = newCh[--newEndIdx];
774
848
  } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
775
849
  patch(oldEndVnode, newStartVnode, isInitialRender);
776
- insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
850
+ insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
777
851
  oldEndVnode = oldCh[--oldEndIdx];
778
852
  newStartVnode = newCh[++newStartIdx];
779
853
  } else {
@@ -837,7 +911,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
837
911
  const oldChildren = oldVNode.$children$;
838
912
  const newChildren = newVNode2.$children$;
839
913
  const text = newVNode2.$text$;
840
- if (text === null) {
914
+ if (text == null) {
841
915
  {
842
916
  updateElement(oldVNode, newVNode2, isSvgMode);
843
917
  }
@@ -853,46 +927,39 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
853
927
  !isInitialRender && BUILD.updatable && oldChildren !== null
854
928
  ) {
855
929
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
856
- }
930
+ } else ;
857
931
  } else if (oldVNode.$text$ !== text) {
858
932
  elm.data = text;
859
933
  }
860
934
  };
861
935
  var nullifyVNodeRefs = (vNode) => {
862
936
  {
863
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
937
+ if (vNode.$attrs$ && vNode.$attrs$.ref) {
938
+ refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
939
+ }
864
940
  vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
865
941
  }
866
942
  };
867
- var insertBefore = (parent, newNode, reference) => {
868
- if (typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) {
869
- addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
943
+ var queueRefAttachment = (refCallback, elm) => {
944
+ {
945
+ refCallbacksToAttach.push(() => refCallback(elm));
870
946
  }
947
+ };
948
+ var flushQueuedRefCallbacks = () => {
871
949
  {
872
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
950
+ refCallbacksToRemove.forEach((cb) => cb());
951
+ refCallbacksToRemove.length = 0;
952
+ refCallbacksToAttach.forEach((cb) => cb());
953
+ refCallbacksToAttach.length = 0;
873
954
  }
874
955
  };
875
- function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
876
- var _a, _b;
877
- let scopeId2;
878
- if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
879
- const scopeName = slotNode["s-sn"];
880
- const hostName = slotNode["s-hn"];
881
- (_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
882
- if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
883
- let child = (oldParent.__childNodes || oldParent.childNodes)[0];
884
- let found = false;
885
- while (child) {
886
- if (child["s-sn"] !== scopeName && child["s-hn"] === hostName && !!child["s-sr"]) {
887
- found = true;
888
- break;
889
- }
890
- child = child.nextSibling;
891
- }
892
- if (!found) oldParent.classList.remove(scopeId2 + "-s");
893
- }
956
+ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
957
+ if (parent.__insertBefore) {
958
+ return parent.__insertBefore(newNode, reference);
959
+ } else {
960
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
894
961
  }
895
- }
962
+ };
896
963
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
897
964
  const hostElm = hostRef.$hostElement$;
898
965
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -914,6 +981,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
914
981
  scopeId = hostElm["s-sc"];
915
982
  }
916
983
  patch(oldVNode, rootVnode, isInitialLoad);
984
+ flushQueuedRefCallbacks();
917
985
  };
918
986
 
919
987
  // src/runtime/update-component.ts
@@ -939,6 +1007,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
939
1007
  }
940
1008
  attachToAncestor(hostRef, hostRef.$ancestorComponent$);
941
1009
  const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1010
+ if (isInitialLoad) {
1011
+ queueMicrotask(() => {
1012
+ dispatch();
1013
+ });
1014
+ return;
1015
+ }
942
1016
  return writeTask(dispatch) ;
943
1017
  };
944
1018
  var dispatchHooks = (hostRef, isInitialLoad) => {
@@ -953,10 +1027,15 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
953
1027
  let maybePromise;
954
1028
  if (isInitialLoad) {
955
1029
  {
956
- hostRef.$flags$ |= 256 /* isListenReady */;
957
- if (hostRef.$queuedListeners$) {
958
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
959
- hostRef.$queuedListeners$ = void 0;
1030
+ {
1031
+ hostRef.$flags$ |= 256 /* isListenReady */;
1032
+ if (hostRef.$queuedListeners$) {
1033
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
1034
+ hostRef.$queuedListeners$ = void 0;
1035
+ }
1036
+ }
1037
+ if (hostRef.$fetchedCbList$.length) {
1038
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
960
1039
  }
961
1040
  }
962
1041
  maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
@@ -967,8 +1046,8 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
967
1046
  endSchedule();
968
1047
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
969
1048
  };
970
- var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
971
- console.error(err2);
1049
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
1050
+ console.error(err);
972
1051
  fn();
973
1052
  }) : fn();
974
1053
  var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
@@ -996,7 +1075,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
996
1075
  if (childrenPromises.length === 0) {
997
1076
  postUpdate();
998
1077
  } else {
999
- Promise.all(childrenPromises).then(postUpdate);
1078
+ Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
1000
1079
  hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1001
1080
  childrenPromises.length = 0;
1002
1081
  }
@@ -1080,6 +1159,9 @@ var addHydratedFlag = (elm) => {
1080
1159
  var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1081
1160
  var setValue = (ref, propName, newVal, cmpMeta) => {
1082
1161
  const hostRef = getHostRef(ref);
1162
+ if (!hostRef) {
1163
+ return;
1164
+ }
1083
1165
  if (!hostRef) {
1084
1166
  throw new Error(
1085
1167
  `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).`
@@ -1089,30 +1171,42 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1089
1171
  const oldVal = hostRef.$instanceValues$.get(propName);
1090
1172
  const flags = hostRef.$flags$;
1091
1173
  const instance = hostRef.$lazyInstance$ ;
1092
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1174
+ newVal = parsePropertyValue(
1175
+ newVal,
1176
+ cmpMeta.$members$[propName][0]);
1093
1177
  const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1094
1178
  const didValueChange = newVal !== oldVal && !areBothNaN;
1095
1179
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1096
1180
  hostRef.$instanceValues$.set(propName, newVal);
1097
- if (instance) {
1098
- if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1099
- const watchMethods = cmpMeta.$watchers$[propName];
1100
- if (watchMethods) {
1101
- watchMethods.map((watchMethodName) => {
1102
- try {
1103
- instance[watchMethodName](newVal, oldVal, propName);
1104
- } catch (e) {
1105
- consoleError(e, elm);
1181
+ if (cmpMeta.$watchers$) {
1182
+ const watchMethods = cmpMeta.$watchers$[propName];
1183
+ if (watchMethods) {
1184
+ watchMethods.map((watcher) => {
1185
+ try {
1186
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
1187
+ if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
1188
+ if (!instance) {
1189
+ hostRef.$fetchedCbList$.push(() => {
1190
+ hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
1191
+ });
1192
+ } else {
1193
+ instance[watchMethodName](newVal, oldVal, propName);
1194
+ }
1106
1195
  }
1107
- });
1108
- }
1109
- }
1110
- if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1111
- if (instance.componentShouldUpdate) {
1112
- if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
1113
- return;
1196
+ } catch (e) {
1197
+ consoleError(e, elm);
1114
1198
  }
1199
+ });
1200
+ }
1201
+ }
1202
+ if (flags & 2 /* hasRendered */) {
1203
+ if (instance.componentShouldUpdate) {
1204
+ const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
1205
+ if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
1206
+ return;
1115
1207
  }
1208
+ }
1209
+ if (!(flags & 16 /* isQueuedForUpdate */)) {
1116
1210
  scheduleUpdate(hostRef, false);
1117
1211
  }
1118
1212
  }
@@ -1123,14 +1217,22 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1123
1217
  var proxyComponent = (Cstr, cmpMeta, flags) => {
1124
1218
  var _a, _b;
1125
1219
  const prototype = Cstr.prototype;
1126
- if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
1127
- if (Cstr.watchers && !cmpMeta.$watchers$) {
1128
- cmpMeta.$watchers$ = Cstr.watchers;
1220
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1221
+ {
1222
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
1223
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
1224
+ }
1225
+ if (Cstr.deserializers && !cmpMeta.$deserializers$) {
1226
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1227
+ }
1228
+ if (Cstr.serializers && !cmpMeta.$serializers$) {
1229
+ cmpMeta.$serializers$ = Cstr.serializers;
1230
+ }
1129
1231
  }
1130
1232
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1131
1233
  members.map(([memberName, [memberFlags]]) => {
1132
1234
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1133
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1235
+ const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
1134
1236
  if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1135
1237
  if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1136
1238
  if (flags & 1 /* isElementConstructor */ || !origGetter) {
@@ -1153,14 +1255,19 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1153
1255
  Object.defineProperty(prototype, memberName, {
1154
1256
  set(newValue) {
1155
1257
  const ref = getHostRef(this);
1258
+ if (!ref) {
1259
+ return;
1260
+ }
1156
1261
  if (origSetter) {
1157
1262
  const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1158
1263
  if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1159
1264
  newValue = ref.$instanceValues$.get(memberName);
1160
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1161
- ref.$instanceValues$.set(memberName, currentValue);
1162
1265
  }
1163
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1266
+ origSetter.apply(this, [
1267
+ parsePropertyValue(
1268
+ newValue,
1269
+ memberFlags)
1270
+ ]);
1164
1271
  newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1165
1272
  setValue(this, memberName, newValue, cmpMeta);
1166
1273
  return;
@@ -1169,7 +1276,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1169
1276
  if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1170
1277
  setValue(this, memberName, newValue, cmpMeta);
1171
1278
  if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1172
- ref.$onReadyPromise$.then(() => {
1279
+ ref.$fetchedCbList$.push(() => {
1173
1280
  if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1174
1281
  ref.$lazyInstance$[memberName] = newValue;
1175
1282
  }
@@ -1182,13 +1289,17 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1182
1289
  if (!ref.$instanceValues$.get(memberName) && currentValue) {
1183
1290
  ref.$instanceValues$.set(memberName, currentValue);
1184
1291
  }
1185
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1292
+ ref.$lazyInstance$[memberName] = parsePropertyValue(
1293
+ newValue,
1294
+ memberFlags);
1186
1295
  setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1187
1296
  };
1188
1297
  if (ref.$lazyInstance$) {
1189
1298
  setterSetVal();
1190
1299
  } else {
1191
- ref.$onReadyPromise$.then(() => setterSetVal());
1300
+ ref.$fetchedCbList$.push(() => {
1301
+ setterSetVal();
1302
+ });
1192
1303
  }
1193
1304
  }
1194
1305
  }
@@ -1201,29 +1312,36 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1201
1312
  plt.jmp(() => {
1202
1313
  var _a2;
1203
1314
  const propName = attrNameToPropName.get(attrName);
1315
+ const hostRef = getHostRef(this);
1204
1316
  if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1205
1317
  newValue = this[propName];
1206
1318
  delete this[propName];
1207
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1319
+ }
1320
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1208
1321
  this[propName] == newValue) {
1209
1322
  return;
1210
1323
  } else if (propName == null) {
1211
- const hostRef = getHostRef(this);
1212
1324
  const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1213
- if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1325
+ if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
1214
1326
  const instance = hostRef.$lazyInstance$ ;
1215
1327
  const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1216
- entry == null ? void 0 : entry.forEach((callbackName) => {
1217
- if (instance[callbackName] != null) {
1218
- instance[callbackName].call(instance, newValue, oldValue, attrName);
1328
+ entry == null ? void 0 : entry.forEach((watcher) => {
1329
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
1330
+ if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
1331
+ instance[watchMethodName].call(instance, newValue, oldValue, attrName);
1219
1332
  }
1220
1333
  });
1221
1334
  }
1222
1335
  return;
1223
1336
  }
1337
+ const propFlags = members.find(([m]) => m === propName);
1338
+ const isBooleanTarget = propFlags && propFlags[1][0] & 4 /* Boolean */;
1339
+ const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
1340
+ if (isBooleanTarget) {
1341
+ newValue = newValue === null || newValue === "false" ? false : true;
1342
+ }
1224
1343
  const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1225
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1226
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1344
+ if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1227
1345
  this[propName] = newValue;
1228
1346
  }
1229
1347
  });
@@ -1231,7 +1349,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1231
1349
  Cstr.observedAttributes = Array.from(
1232
1350
  /* @__PURE__ */ new Set([
1233
1351
  ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1234
- ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
1352
+ ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
1235
1353
  const attrName = m[1] || propName;
1236
1354
  attrNameToPropName.set(attrName, propName);
1237
1355
  return attrName;
@@ -1246,69 +1364,84 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1246
1364
  // src/runtime/initialize-component.ts
1247
1365
  var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1248
1366
  let Cstr;
1249
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1250
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1251
- const bundleId = cmpMeta.$lazyBundleId$;
1252
- if (bundleId) {
1253
- const CstrImport = loadModule(cmpMeta, hostRef);
1254
- if (CstrImport && "then" in CstrImport) {
1255
- const endLoad = uniqueTime();
1256
- Cstr = await CstrImport;
1257
- endLoad();
1258
- } else {
1259
- Cstr = CstrImport;
1260
- }
1261
- if (!Cstr) {
1262
- throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1263
- }
1264
- if (!Cstr.isProxied) {
1367
+ try {
1368
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1369
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1370
+ const bundleId = cmpMeta.$lazyBundleId$;
1371
+ if (bundleId) {
1372
+ const CstrImport = loadModule(cmpMeta, hostRef);
1373
+ if (CstrImport && "then" in CstrImport) {
1374
+ const endLoad = uniqueTime();
1375
+ Cstr = await CstrImport;
1376
+ endLoad();
1377
+ } else {
1378
+ Cstr = CstrImport;
1379
+ }
1380
+ if (!Cstr) {
1381
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1382
+ }
1383
+ if (!Cstr.isProxied) {
1384
+ {
1385
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
1386
+ cmpMeta.$serializers$ = Cstr.serializers;
1387
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1388
+ }
1389
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1390
+ Cstr.isProxied = true;
1391
+ }
1392
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
1265
1393
  {
1266
- cmpMeta.$watchers$ = Cstr.watchers;
1394
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
1267
1395
  }
1268
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1269
- Cstr.isProxied = true;
1270
- }
1271
- const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
1272
- {
1273
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
1274
- }
1275
- try {
1276
- new Cstr(hostRef);
1277
- } catch (e) {
1278
- consoleError(e, elm);
1279
- }
1280
- {
1281
- hostRef.$flags$ &= -9 /* isConstructingInstance */;
1396
+ try {
1397
+ new Cstr(hostRef);
1398
+ } catch (e) {
1399
+ consoleError(e, elm);
1400
+ }
1401
+ {
1402
+ hostRef.$flags$ &= -9 /* isConstructingInstance */;
1403
+ }
1404
+ {
1405
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1406
+ }
1407
+ endNewInstance();
1408
+ {
1409
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1410
+ }
1411
+ } else {
1412
+ Cstr = elm.constructor;
1413
+ const cmpTag = elm.localName;
1414
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1282
1415
  }
1283
- {
1284
- hostRef.$flags$ |= 128 /* isWatchReady */;
1416
+ if (Cstr && Cstr.style) {
1417
+ let style;
1418
+ if (typeof Cstr.style === "string") {
1419
+ style = Cstr.style;
1420
+ }
1421
+ const scopeId2 = getScopeId(cmpMeta);
1422
+ if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
1423
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
1424
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1425
+ endRegisterStyles();
1426
+ }
1285
1427
  }
1286
- endNewInstance();
1287
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1428
+ }
1429
+ const ancestorComponent = hostRef.$ancestorComponent$;
1430
+ const schedule = () => scheduleUpdate(hostRef, true);
1431
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
1432
+ ancestorComponent["s-rc"].push(schedule);
1288
1433
  } else {
1289
- Cstr = elm.constructor;
1290
- const cmpTag = elm.localName;
1291
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1292
- }
1293
- if (Cstr && Cstr.style) {
1294
- let style;
1295
- if (typeof Cstr.style === "string") {
1296
- style = Cstr.style;
1297
- }
1298
- const scopeId2 = getScopeId(cmpMeta);
1299
- if (!styles.has(scopeId2)) {
1300
- const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
1301
- registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1302
- endRegisterStyles();
1303
- }
1434
+ schedule();
1435
+ }
1436
+ } catch (e) {
1437
+ consoleError(e, elm);
1438
+ if (hostRef.$onRenderResolve$) {
1439
+ hostRef.$onRenderResolve$();
1440
+ hostRef.$onRenderResolve$ = void 0;
1441
+ }
1442
+ if (hostRef.$onReadyResolve$) {
1443
+ hostRef.$onReadyResolve$(elm);
1304
1444
  }
1305
- }
1306
- const ancestorComponent = hostRef.$ancestorComponent$;
1307
- const schedule = () => scheduleUpdate(hostRef, true);
1308
- if (ancestorComponent && ancestorComponent["s-rc"]) {
1309
- ancestorComponent["s-rc"].push(schedule);
1310
- } else {
1311
- schedule();
1312
1445
  }
1313
1446
  };
1314
1447
  var fireConnectedCallback = (instance, elm) => {
@@ -1321,6 +1454,9 @@ var fireConnectedCallback = (instance, elm) => {
1321
1454
  var connectedCallback = (elm) => {
1322
1455
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1323
1456
  const hostRef = getHostRef(elm);
1457
+ if (!hostRef) {
1458
+ return;
1459
+ }
1324
1460
  const cmpMeta = hostRef.$cmpMeta$;
1325
1461
  const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1326
1462
  if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
@@ -1336,7 +1472,7 @@ var connectedCallback = (elm) => {
1336
1472
  }
1337
1473
  if (cmpMeta.$members$) {
1338
1474
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1339
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1475
+ if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
1340
1476
  const value = elm[memberName];
1341
1477
  delete elm[memberName];
1342
1478
  elm[memberName] = value;
@@ -1366,7 +1502,7 @@ var disconnectedCallback = async (elm) => {
1366
1502
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1367
1503
  const hostRef = getHostRef(elm);
1368
1504
  {
1369
- if (hostRef.$rmListeners$) {
1505
+ if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
1370
1506
  hostRef.$rmListeners$.map((rmListener) => rmListener());
1371
1507
  hostRef.$rmListeners$ = void 0;
1372
1508
  }
@@ -1404,19 +1540,15 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1404
1540
  let isBootstrapping = true;
1405
1541
  Object.assign(plt, options);
1406
1542
  plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
1407
- let hasSlotRelocation = false;
1408
1543
  lazyBundles.map((lazyBundle) => {
1409
1544
  lazyBundle[1].map((compactMeta) => {
1410
- var _a2;
1545
+ var _a2, _b;
1411
1546
  const cmpMeta = {
1412
1547
  $flags$: compactMeta[0],
1413
1548
  $tagName$: compactMeta[1],
1414
1549
  $members$: compactMeta[2],
1415
1550
  $listeners$: compactMeta[3]
1416
1551
  };
1417
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1418
- hasSlotRelocation = true;
1419
- }
1420
1552
  {
1421
1553
  cmpMeta.$members$ = compactMeta[2];
1422
1554
  }
@@ -1424,14 +1556,18 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1424
1556
  cmpMeta.$listeners$ = compactMeta[3];
1425
1557
  }
1426
1558
  {
1427
- cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1559
+ cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);
1560
+ cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};
1561
+ cmpMeta.$deserializers$ = (_b = compactMeta[6]) != null ? _b : {};
1428
1562
  }
1429
- const tagName = cmpMeta.$tagName$;
1563
+ const tagName = transformTag(cmpMeta.$tagName$);
1430
1564
  const HostElement = class extends HTMLElement {
1565
+ ["s-p"];
1566
+ ["s-rc"];
1567
+ hasRegisteredEventListeners = false;
1431
1568
  // StencilLazyHost
1432
1569
  constructor(self) {
1433
1570
  super(self);
1434
- this.hasRegisteredEventListeners = false;
1435
1571
  self = this;
1436
1572
  registerHost(self, cmpMeta);
1437
1573
  if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
@@ -1450,6 +1586,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1450
1586
  }
1451
1587
  connectedCallback() {
1452
1588
  const hostRef = getHostRef(this);
1589
+ if (!hostRef) {
1590
+ return;
1591
+ }
1453
1592
  if (!this.hasRegisteredEventListeners) {
1454
1593
  this.hasRegisteredEventListeners = true;
1455
1594
  addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
@@ -1469,6 +1608,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1469
1608
  plt.raf(() => {
1470
1609
  var _a3;
1471
1610
  const hostRef = getHostRef(this);
1611
+ if (!hostRef) {
1612
+ return;
1613
+ }
1472
1614
  const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1473
1615
  if (i2 > -1) {
1474
1616
  deferredConnectedCallbacks.splice(i2, 1);
@@ -1479,7 +1621,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1479
1621
  });
1480
1622
  }
1481
1623
  componentOnReady() {
1482
- return getHostRef(this).$onReadyPromise$;
1624
+ var _a3;
1625
+ return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
1483
1626
  }
1484
1627
  };
1485
1628
  cmpMeta.$lazyBundleId$ = lazyBundle[0];
@@ -1493,9 +1636,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1493
1636
  });
1494
1637
  });
1495
1638
  if (cmpTags.length > 0) {
1496
- if (hasSlotRelocation) {
1497
- dataStyles.textContent += SLOT_FB_CSS;
1498
- }
1499
1639
  {
1500
1640
  dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
1501
1641
  }
@@ -1562,6 +1702,9 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
1562
1702
 
1563
1703
  // src/runtime/nonce.ts
1564
1704
  var setNonce = (nonce) => plt.$nonce$ = nonce;
1705
+ function transformTag(tag) {
1706
+ return tag;
1707
+ }
1565
1708
 
1566
1709
  exports.Fragment = Fragment;
1567
1710
  exports.Host = Host;
@@ -1573,6 +1716,3 @@ exports.h = h;
1573
1716
  exports.promiseResolve = promiseResolve;
1574
1717
  exports.registerInstance = registerInstance;
1575
1718
  exports.setNonce = setNonce;
1576
- //# sourceMappingURL=index-BLzQAHAI.js.map
1577
-
1578
- //# sourceMappingURL=index-BLzQAHAI.js.map