@alleninstitute/cortex-ui 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/README.md +52 -8
  2. package/dist/cjs/cortex-ui.cjs.js +3 -3
  3. package/dist/cjs/cui-divider.cjs.entry.js +49 -0
  4. package/dist/cjs/cui-icon.cjs.entry.js +100 -0
  5. package/dist/cjs/cui-progress.cjs.entry.js +4 -4
  6. package/dist/cjs/cui-tag.cjs.entry.js +4 -4
  7. package/dist/cjs/index-RBrlguTk.js +1565 -0
  8. package/dist/cjs/loader.cjs.js +2 -2
  9. package/dist/collection/collection-manifest.json +3 -1
  10. package/dist/collection/components/cui-divider/cui-divider.css +100 -0
  11. package/dist/collection/components/cui-divider/cui-divider.js +150 -0
  12. package/dist/collection/components/cui-icon/cui-icon.css +134 -0
  13. package/dist/collection/components/cui-icon/cui-icon.js +239 -0
  14. package/dist/collection/components/cui-progress/cui-progress.css +12 -12
  15. package/dist/collection/components/cui-progress/cui-progress.js +2 -2
  16. package/dist/collection/components/cui-tag/cui-tag.css +19 -19
  17. package/dist/collection/components/cui-tag/cui-tag.js +5 -5
  18. package/dist/components/cui-divider.d.ts +11 -0
  19. package/dist/components/cui-divider.js +1 -0
  20. package/dist/components/cui-icon.d.ts +11 -0
  21. package/dist/components/cui-icon.js +1 -0
  22. package/dist/components/cui-progress.js +1 -1
  23. package/dist/components/cui-tag.js +1 -1
  24. package/dist/components/index.js +1 -1
  25. package/dist/cortex-ui/cortex-ui.css +1 -1
  26. package/dist/cortex-ui/cortex-ui.esm.js +1 -1
  27. package/dist/cortex-ui/p-0e66a721.entry.js +1 -0
  28. package/dist/cortex-ui/p-1af73c5a.entry.js +1 -0
  29. package/dist/cortex-ui/p-2d2004f0.entry.js +1 -0
  30. package/dist/cortex-ui/p-8925abbe.entry.js +1 -0
  31. package/dist/cortex-ui/p-BZmInLSX.js +3 -0
  32. package/dist/esm/cortex-ui.js +4 -4
  33. package/dist/esm/cui-divider.entry.js +47 -0
  34. package/dist/esm/cui-icon.entry.js +98 -0
  35. package/dist/esm/cui-progress.entry.js +4 -4
  36. package/dist/esm/cui-tag.entry.js +4 -4
  37. package/dist/esm/index-BZmInLSX.js +1557 -0
  38. package/dist/esm/loader.js +3 -3
  39. package/dist/fonts/AllenInstituteHeadline-Bold.woff2 +0 -0
  40. package/dist/fonts/AllenInstituteHeadline-BoldItalic.woff2 +0 -0
  41. package/dist/fonts/AllenInstituteHeadline-Italic.woff2 +0 -0
  42. package/dist/fonts/AllenInstituteHeadline-Light.woff2 +0 -0
  43. package/dist/fonts/AllenInstituteHeadline-LightItalic.woff2 +0 -0
  44. package/dist/fonts/AllenInstituteHeadline-Medium.woff2 +0 -0
  45. package/dist/fonts/AllenInstituteHeadline-MediumItalic.woff2 +0 -0
  46. package/dist/fonts/AllenInstituteHeadline-Regular.woff2 +0 -0
  47. package/dist/fonts/AllenInstituteHeadline-Semibold.woff2 +0 -0
  48. package/dist/fonts/AllenInstituteHeadline-SemiboldItalic.woff2 +0 -0
  49. package/dist/fonts/AllenInstituteText-Bold.woff2 +0 -0
  50. package/dist/fonts/AllenInstituteText-BoldItalic.woff2 +0 -0
  51. package/dist/fonts/AllenInstituteText-Italic.woff2 +0 -0
  52. package/dist/fonts/AllenInstituteText-Light.woff2 +0 -0
  53. package/dist/fonts/AllenInstituteText-LightItalic.woff2 +0 -0
  54. package/dist/fonts/AllenInstituteText-Medium.woff2 +0 -0
  55. package/dist/fonts/AllenInstituteText-MediumItalic.woff2 +0 -0
  56. package/dist/fonts/AllenInstituteText-Regular.woff2 +0 -0
  57. package/dist/fonts/AllenInstituteText-Semibold.woff2 +0 -0
  58. package/dist/fonts/AllenInstituteText-SemiboldItalic.woff2 +0 -0
  59. package/dist/fonts.css +186 -0
  60. package/dist/types/components/cui-divider/cui-divider.d.ts +38 -0
  61. package/dist/types/components/cui-icon/cui-icon.d.ts +76 -0
  62. package/dist/types/components/cui-tag/cui-tag.d.ts +1 -1
  63. package/dist/types/components.d.ts +235 -6
  64. package/dist/types/stencil-public-runtime.d.ts +11 -0
  65. package/package.json +31 -22
  66. package/dist/cjs/index-CJFDVa2g.js +0 -1415
  67. package/dist/collection/stories/assets/accessibility.svg +0 -1
  68. package/dist/collection/stories/assets/discord.svg +0 -1
  69. package/dist/collection/stories/assets/github.svg +0 -1
  70. package/dist/collection/stories/assets/tutorials.svg +0 -1
  71. package/dist/collection/stories/assets/youtube.svg +0 -1
  72. package/dist/cortex-ui/p-371566cd.entry.js +0 -1
  73. package/dist/cortex-ui/p-60c5b038.entry.js +0 -1
  74. package/dist/cortex-ui/p-DbXnQj5f.js +0 -2
  75. package/dist/esm/index-DbXnQj5f.js +0 -1408
@@ -0,0 +1,1557 @@
1
+ const NAMESPACE = 'cortex-ui';
2
+ const BUILD = /* cortex-ui */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, prop: true, propChangeCallback: true, updatable: true};
3
+
4
+ const globalScripts = () => {};
5
+ const globalStyles = ":root{--cui-color-brand-maroon-25:#fff5f9;--cui-color-brand-maroon-50:#feebf2;--cui-color-brand-maroon-75:#fcdfe9;--cui-color-brand-maroon-100:#fbd6e3;--cui-color-brand-maroon-150:#f2c5d5;--cui-color-brand-maroon-200:#efb8cc;--cui-color-brand-maroon-250:#eaa3be;--cui-color-brand-maroon-300:#e38cac;--cui-color-brand-maroon-400:#dc7098;--cui-color-brand-maroon-500:#dc427a;--cui-color-brand-maroon-600:#cd2563;--cui-color-brand-maroon-700:#b50d4b;--cui-color-brand-maroon-750:#9b0b40;--cui-color-brand-maroon-800:#770831;--cui-color-brand-maroon-850:#5f0727;--cui-color-brand-maroon-900:#4c051f;--cui-color-brand-maroon-925:#3e0419;--cui-color-brand-maroon-950:#2b0312;--cui-color-brand-maroon-975:#18010a;--cui-color-brand-maroon-official:#cd0f55;--cui-color-brand-orange-25:#fff9f5;--cui-color-brand-orange-50:#ffeee0;--cui-color-brand-orange-75:#ffe2cc;--cui-color-brand-orange-100:#ffd9bd;--cui-color-brand-orange-150:#ffcba3;--cui-color-brand-orange-200:#ffbf8f;--cui-color-brand-orange-250:#ffae70;--cui-color-brand-orange-300:#ff913d;--cui-color-brand-orange-400:#ff7d1a;--cui-color-brand-orange-500:#d65c00;--cui-color-brand-orange-600:#a84900;--cui-color-brand-orange-700:#803700;--cui-color-brand-orange-750:#6b2e00;--cui-color-brand-orange-800:#522300;--cui-color-brand-orange-850:#421d00;--cui-color-brand-orange-900:#331600;--cui-color-brand-orange-925:#2e1400;--cui-color-brand-orange-950:#1f0d00;--cui-color-brand-orange-975:#140a00;--cui-color-brand-orange-official:#ff6e00;--cui-color-brand-ochre-25:#fffcf5;--cui-color-brand-ochre-50:#fff4db;--cui-color-brand-ochre-75:#ffe5ad;--cui-color-brand-ochre-100:#ffdf99;--cui-color-brand-ochre-150:#ffd270;--cui-color-brand-ochre-200:#ffc852;--cui-color-brand-ochre-250:#ffbe33;--cui-color-brand-ochre-300:#f5a700;--cui-color-brand-ochre-400:#d69200;--cui-color-brand-ochre-500:#ad7600;--cui-color-brand-ochre-600:#855a00;--cui-color-brand-ochre-700:#664600;--cui-color-brand-ochre-750:#573b00;--cui-color-brand-ochre-800:#422d00;--cui-color-brand-ochre-850:#382600;--cui-color-brand-ochre-900:#291c00;--cui-color-brand-ochre-925:#241800;--cui-color-brand-ochre-950:#1a1100;--cui-color-brand-ochre-975:#140e00;--cui-color-brand-ochre-official:#dc9600;--cui-color-brand-yellow-25:#fffef5;--cui-color-brand-yellow-50:#fffacc;--cui-color-brand-yellow-75:#fff380;--cui-color-brand-yellow-100:#ffee47;--cui-color-brand-yellow-150:#ffe800;--cui-color-brand-yellow-200:#f5df00;--cui-color-brand-yellow-250:#e5d100;--cui-color-brand-yellow-300:#d1be00;--cui-color-brand-yellow-400:#b8a700;--cui-color-brand-yellow-500:#948600;--cui-color-brand-yellow-600:#756b00;--cui-color-brand-yellow-700:#574f00;--cui-color-brand-yellow-750:#474100;--cui-color-brand-yellow-800:#383300;--cui-color-brand-yellow-850:#2e2a00;--cui-color-brand-yellow-900:#242000;--cui-color-brand-yellow-925:#1f1c00;--cui-color-brand-yellow-950:#1a1700;--cui-color-brand-yellow-975:#141300;--cui-color-brand-yellow-official:#ffeb23;--cui-color-brand-green-25:#fcffe6;--cui-color-brand-green-50:#f5feb3;--cui-color-brand-green-75:#ecfd68;--cui-color-brand-green-100:#e5fc36;--cui-color-brand-green-150:#dffc03;--cui-color-brand-green-200:#d6f203;--cui-color-brand-green-250:#c9e303;--cui-color-brand-green-300:#b7ce03;--cui-color-brand-green-400:#a1b502;--cui-color-brand-green-500:#7d8d02;--cui-color-brand-green-600:#626f01;--cui-color-brand-green-700:#4c5601;--cui-color-brand-green-750:#3e4701;--cui-color-brand-green-800:#313701;--cui-color-brand-green-850:#282d01;--cui-color-brand-green-900:#1f2300;--cui-color-brand-green-925:#1b1e00;--cui-color-brand-green-950:#161900;--cui-color-brand-green-975:#121400;--cui-color-brand-green-official:#d1ec03;--cui-color-brand-teal-25:#f6fefd;--cui-color-brand-teal-50:#e3fcfa;--cui-color-brand-teal-75:#cdf9f6;--cui-color-brand-teal-100:#b8eeeb;--cui-color-brand-teal-150:#a9eae6;--cui-color-brand-teal-200:#98e6e2;--cui-color-brand-teal-250:#7de0da;--cui-color-brand-teal-300:#5ed9d2;--cui-color-brand-teal-400:#39d0c7;--cui-color-brand-teal-500:#02b1a7;--cui-color-brand-teal-600:#01867e;--cui-color-brand-teal-700:#016a64;--cui-color-brand-teal-750:#015752;--cui-color-brand-teal-800:#01423e;--cui-color-brand-teal-850:#013734;--cui-color-brand-teal-900:#042826;--cui-color-brand-teal-925:#042523;--cui-color-brand-teal-950:#011918;--cui-color-brand-teal-975:#011312;--cui-color-brand-teal-official:#00a59b;--cui-color-brand-blue-25:#fafaff;--cui-color-brand-blue-50:#f0f0ff;--cui-color-brand-blue-75:#e6e6fe;--cui-color-brand-blue-100:#ddddfe;--cui-color-brand-blue-150:#d2d2fe;--cui-color-brand-blue-200:#c8c8fe;--cui-color-brand-blue-250:#bcbcfe;--cui-color-brand-blue-300:#ababfd;--cui-color-brand-blue-400:#9898fc;--cui-color-brand-blue-500:#7070ff;--cui-color-brand-blue-600:#4c4cd9;--cui-color-brand-blue-700:#3b3bc4;--cui-color-brand-blue-750:#30309f;--cui-color-brand-blue-800:#26267d;--cui-color-brand-blue-850:#1f1f66;--cui-color-brand-blue-900:#16164a;--cui-color-brand-blue-925:#141443;--cui-color-brand-blue-950:#0e0e2f;--cui-color-brand-blue-975:#070718;--cui-color-brand-blue-official:#6464ff;--cui-color-brand-violet-25:#fff5fe;--cui-color-brand-violet-50:#f6f1fe;--cui-color-brand-violet-75:#ede4fc;--cui-color-brand-violet-100:#e5d7fa;--cui-color-brand-violet-150:#decff7;--cui-color-brand-violet-200:#d6c2f4;--cui-color-brand-violet-250:#ccb4f2;--cui-color-brand-violet-300:#c1a2f1;--cui-color-brand-violet-400:#b28cee;--cui-color-brand-violet-500:#9766e6;--cui-color-brand-violet-600:#753fca;--cui-color-brand-violet-700:#622bbb;--cui-color-brand-violet-750:#4e2294;--cui-color-brand-violet-800:#3f1c78;--cui-color-brand-violet-850:#341764;--cui-color-brand-violet-900:#27114b;--cui-color-brand-violet-925:#210e3e;--cui-color-brand-violet-950:#180a2e;--cui-color-brand-violet-975:#0f071d;--cui-color-brand-violet-official:#8246e1;--cui-color-brand-rose-25:#fff5fe;--cui-color-brand-rose-50:#ffebfc;--cui-color-brand-rose-75:#ffdbfb;--cui-color-brand-rose-100:#ffd1f9;--cui-color-brand-rose-150:#ffc2f7;--cui-color-brand-rose-200:#ffadf5;--cui-color-brand-rose-250:#ff99f2;--cui-color-brand-rose-300:#ff80ef;--cui-color-brand-rose-400:#ff61eb;--cui-color-brand-rose-500:#ff2ee5;--cui-color-brand-rose-600:#eb00cd;--cui-color-brand-rose-700:#bd00a5;--cui-color-brand-rose-750:#940081;--cui-color-brand-rose-800:#7a006b;--cui-color-brand-rose-850:#660059;--cui-color-brand-rose-900:#4d0043;--cui-color-brand-rose-925:#3d0036;--cui-color-brand-rose-950:#2e0028;--cui-color-brand-rose-975:#1a0016;--cui-color-brand-rose-official:#ff00df;--cui-color-gray-0:#ffffff;--cui-color-gray-25:#f8f8f8;--cui-color-gray-50:#f1f1f1;--cui-color-gray-75:#e9e9e9;--cui-color-gray-100:#e2e2e2;--cui-color-gray-150:#d4d4d4;--cui-color-gray-200:#c6c6c6;--cui-color-gray-250:#b9b9b9;--cui-color-gray-300:#ababab;--cui-color-gray-400:#919191;--cui-color-gray-500:#777777;--cui-color-gray-600:#5e5e5e;--cui-color-gray-700:#474747;--cui-color-gray-750:#3b3b3b;--cui-color-gray-800:#303030;--cui-color-gray-850:#262626;--cui-color-gray-900:#1b1b1b;--cui-color-gray-925:#171717;--cui-color-gray-950:#111111;--cui-color-gray-975:#090909;--cui-color-gray-1000:#000000;--cui-color-red-25:#fef6f6;--cui-color-red-50:#fcedee;--cui-color-red-75:#fae0e1;--cui-color-red-100:#f8d3d4;--cui-color-red-150:#f7cacb;--cui-color-red-200:#f4b8b9;--cui-color-red-250:#f1a7a8;--cui-color-red-300:#ee9192;--cui-color-red-400:#ea7678;--cui-color-red-500:#e34f51;--cui-color-red-600:#dc2326;--cui-color-red-700:#b91d20;--cui-color-red-750:#8d1618;--cui-color-red-800:#731214;--cui-color-red-850:#610f11;--cui-color-red-900:#470b0c;--cui-color-red-925:#39090a;--cui-color-red-950:#2c0708;--cui-color-red-975:#160304;--cui-color-green-25:#f6fefa;--cui-color-green-50:#e5fbef;--cui-color-green-75:#d3f8e4;--cui-color-green-100:#bdf5d6;--cui-color-green-150:#a2f0c6;--cui-color-green-200:#88ecb5;--cui-color-green-250:#6de8a5;--cui-color-green-300:#4fe392;--cui-color-green-400:#23dc76;--cui-color-green-500:#1cb05f;--cui-color-green-600:#158447;--cui-color-green-700:#116e3b;--cui-color-green-750:#0e582f;--cui-color-green-800:#0a4223;--cui-color-green-850:#09391f;--cui-color-green-900:#072c18;--cui-color-green-925:#062313;--cui-color-green-950:#041a0e;--cui-color-green-975:#020d07;--cui-color-blue-25:#f6fafe;--cui-color-blue-50:#edf5fc;--cui-color-blue-75:#dcebf9;--cui-color-blue-100:#cee4f7;--cui-color-blue-150:#b8d7f4;--cui-color-blue-200:#9ec8f0;--cui-color-blue-250:#8cbeed;--cui-color-blue-300:#76b2ea;--cui-color-blue-400:#57a0e5;--cui-color-blue-500:#348ddf;--cui-color-blue-600:#1c68b0;--cui-color-blue-700:#175692;--cui-color-blue-750:#124473;--cui-color-blue-800:#0f375d;--cui-color-blue-850:#0c2c4b;--cui-color-blue-900:#092239;--cui-color-blue-925:#081d31;--cui-color-blue-950:#061523;--cui-color-blue-975:#030d16;--cui-shadow-color-50:rgba(0, 0, 0, 0.05);--cui-shadow-color-100:rgba(0, 0, 0, 0.1);--cui-shadow-color-150:rgba(0, 0, 0, 0.15);--cui-shadow-color-800:rgba(0, 0, 0, 0.8);--cui-shadow-color-900:rgba(0, 0, 0, 0.9);--cui-shadow-color-1000:rgba(0, 0, 0, 1);--cui-base-bg-main:var(--cui-color-gray-0);--cui-base-bg-level-1:var(--cui-base-bg-main);--cui-base-bg-level-2:var(--cui-color-gray-25);--cui-base-bg-level-3:var(--cui-color-gray-50);--cui-base-divider-primary:var(--cui-color-gray-150);--cui-base-divider-secondary:var(--cui-color-gray-100);--cui-base-text-primary:var(--cui-color-gray-850);--cui-base-text-secondary:var(--cui-color-gray-750);--cui-base-border-primary:var(--cui-color-gray-500);--cui-base-border-secondary:var(--cui-color-gray-400);--cui-accent-surface-primary-default:var(--cui-color-brand-blue-600);--cui-accent-surface-primary-hover:var(--cui-color-brand-blue-700);--cui-accent-surface-primary-active:var(--cui-color-brand-blue-800);--cui-accent-surface-primary-selected:var(--cui-color-brand-blue-750);--cui-accent-surface-primary-disabled:var(--cui-color-brand-blue-75);--cui-accent-surface-secondary-default:var(--cui-color-brand-blue-100);--cui-accent-surface-secondary-hover:var(--cui-color-brand-blue-150);--cui-accent-surface-secondary-active:var(--cui-color-brand-blue-250);--cui-accent-surface-secondary-selected:var(--cui-color-brand-blue-200);--cui-accent-surface-secondary-disabled:var(--cui-color-brand-blue-50);--cui-accent-text-primary-default:var(--cui-color-gray-0);--cui-accent-text-primary-hover:var(--cui-color-gray-0);--cui-accent-text-primary-active:var(--cui-color-gray-0);--cui-accent-text-primary-selected:var(--cui-color-gray-0);--cui-accent-text-primary-disabled:var(--cui-color-brand-blue-500);--cui-accent-text-secondary-default:var(--cui-color-brand-blue-800);--cui-accent-text-secondary-hover:var(--cui-color-brand-blue-850);--cui-accent-text-secondary-active:var(--cui-color-brand-blue-900);--cui-accent-text-secondary-selected:var(--cui-color-brand-blue-900);--cui-accent-text-secondary-disabled:var(--cui-color-brand-blue-500);--cui-accent-border-primary-default:var(--cui-color-brand-blue-700);--cui-accent-border-primary-hover:var(--cui-color-brand-blue-750);--cui-accent-border-primary-active:var(--cui-accent-surface-primary-active);--cui-accent-border-primary-selected:var(--cui-accent-surface-primary-selected);--cui-accent-border-primary-disabled:var(--cui-accent-surface-primary-disabled);--cui-accent-border-secondary-default:var(--cui-color-brand-blue-600);--cui-accent-border-secondary-hover:var(--cui-color-brand-blue-700);--cui-accent-border-secondary-active:var(--cui-accent-surface-secondary-active);--cui-accent-border-secondary-selected:var(--cui-accent-surface-secondary-selected);--cui-accent-border-secondary-disabled:var(--cui-accent-surface-secondary-disabled);--cui-accent-divider-primary-default:var(--cui-color-brand-blue-300);--cui-accent-divider-primary-hover:var(--cui-color-brand-blue-250);--cui-accent-divider-primary-active:var(--cui-color-brand-blue-200);--cui-accent-divider-primary-selected:var(--cui-color-brand-blue-200);--cui-accent-divider-primary-disabled:var(--cui-color-brand-blue-700);--cui-accent-divider-secondary-default:var(--cui-color-brand-blue-400);--cui-accent-divider-secondary-hover:var(--cui-color-brand-blue-500);--cui-accent-divider-secondary-active:var(--cui-color-brand-blue-600);--cui-accent-divider-secondary-selected:var(--cui-color-brand-blue-500);--cui-accent-divider-secondary-disabled:var(--cui-color-brand-blue-150);--cui-positive-surface-primary-default:var(--cui-color-brand-teal-700);--cui-positive-surface-primary-hover:var(--cui-color-brand-teal-750);--cui-positive-surface-primary-active:var(--cui-color-brand-teal-850);--cui-positive-surface-primary-selected:var(--cui-color-brand-teal-800);--cui-positive-surface-primary-disabled:var(--cui-color-brand-teal-75);--cui-positive-surface-secondary-default:var(--cui-color-brand-teal-100);--cui-positive-surface-secondary-hover:var(--cui-color-brand-teal-150);--cui-positive-surface-secondary-active:var(--cui-color-brand-teal-250);--cui-positive-surface-secondary-selected:var(--cui-color-brand-teal-200);--cui-positive-surface-secondary-disabled:var(--cui-color-brand-teal-50);--cui-positive-text-primary-default:var(--cui-color-gray-0);--cui-positive-text-primary-hover:var(--cui-color-gray-0);--cui-positive-text-primary-active:var(--cui-color-gray-0);--cui-positive-text-primary-selected:var(--cui-color-gray-0);--cui-positive-text-primary-disabled:var(--cui-color-brand-teal-500);--cui-positive-text-secondary-default:var(--cui-color-brand-teal-800);--cui-positive-text-secondary-hover:var(--cui-color-brand-teal-850);--cui-positive-text-secondary-active:var(--cui-color-brand-teal-900);--cui-positive-text-secondary-selected:var(--cui-color-brand-teal-900);--cui-positive-text-secondary-disabled:var(--cui-color-brand-teal-500);--cui-positive-border-primary-default:var(--cui-color-brand-teal-700);--cui-positive-border-primary-hover:var(--cui-color-brand-teal-750);--cui-positive-border-primary-active:var(--cui-positive-surface-primary-active);--cui-positive-border-primary-selected:var(--cui-positive-surface-primary-selected);--cui-positive-border-primary-disabled:var(--cui-positive-surface-primary-disabled);--cui-positive-border-secondary-default:var(--cui-color-brand-teal-600);--cui-positive-border-secondary-hover:var(--cui-color-brand-teal-700);--cui-positive-border-secondary-active:var(--cui-positive-surface-secondary-active);--cui-positive-border-secondary-selected:var(--cui-positive-surface-secondary-selected);--cui-positive-border-secondary-disabled:var(--cui-positive-surface-secondary-disabled);--cui-positive-divider-primary-default:var(--cui-color-brand-teal-300);--cui-positive-divider-primary-hover:var(--cui-color-brand-teal-250);--cui-positive-divider-primary-active:var(--cui-color-brand-teal-200);--cui-positive-divider-primary-selected:var(--cui-color-brand-teal-200);--cui-positive-divider-primary-disabled:var(--cui-color-brand-teal-700);--cui-positive-divider-secondary-default:var(--cui-color-brand-teal-400);--cui-positive-divider-secondary-hover:var(--cui-color-brand-teal-500);--cui-positive-divider-secondary-active:var(--cui-color-brand-teal-600);--cui-positive-divider-secondary-selected:var(--cui-color-brand-teal-500);--cui-positive-divider-secondary-disabled:var(--cui-color-brand-teal-150);--cui-negative-surface-primary-default:var(--cui-color-brand-maroon-official);--cui-negative-surface-primary-hover:var(--cui-color-brand-maroon-700);--cui-negative-surface-primary-active:var(--cui-color-brand-maroon-800);--cui-negative-surface-primary-selected:var(--cui-color-brand-maroon-750);--cui-negative-surface-primary-disabled:var(--cui-color-brand-maroon-75);--cui-negative-surface-secondary-default:var(--cui-color-brand-maroon-100);--cui-negative-surface-secondary-hover:var(--cui-color-brand-maroon-150);--cui-negative-surface-secondary-active:var(--cui-color-brand-maroon-250);--cui-negative-surface-secondary-selected:var(--cui-color-brand-maroon-200);--cui-negative-surface-secondary-disabled:var(--cui-color-brand-maroon-50);--cui-negative-text-primary-default:var(--cui-color-gray-0);--cui-negative-text-primary-hover:var(--cui-color-gray-0);--cui-negative-text-primary-active:var(--cui-color-gray-0);--cui-negative-text-primary-selected:var(--cui-color-gray-0);--cui-negative-text-primary-disabled:var(--cui-color-brand-maroon-500);--cui-negative-text-secondary-default:var(--cui-color-brand-maroon-800);--cui-negative-text-secondary-hover:var(--cui-color-brand-maroon-850);--cui-negative-text-secondary-active:var(--cui-color-brand-maroon-900);--cui-negative-text-secondary-selected:var(--cui-color-brand-maroon-900);--cui-negative-text-secondary-disabled:var(--cui-color-brand-maroon-500);--cui-negative-border-primary-default:var(--cui-color-brand-maroon-700);--cui-negative-border-primary-hover:var(--cui-color-brand-maroon-750);--cui-negative-border-primary-active:var(--cui-negative-surface-primary-active);--cui-negative-border-primary-selected:var(--cui-negative-surface-primary-selected);--cui-negative-border-primary-disabled:var(--cui-negative-surface-primary-disabled);--cui-negative-border-secondary-default:var(--cui-color-brand-maroon-600);--cui-negative-border-secondary-hover:var(--cui-color-brand-maroon-700);--cui-negative-border-secondary-active:var(--cui-negative-surface-secondary-active);--cui-negative-border-secondary-selected:var(--cui-negative-surface-secondary-selected);--cui-negative-border-secondary-disabled:var(--cui-negative-surface-secondary-disabled);--cui-negative-divider-primary-default:var(--cui-color-brand-maroon-300);--cui-negative-divider-primary-hover:var(--cui-color-brand-maroon-250);--cui-negative-divider-primary-active:var(--cui-color-brand-maroon-200);--cui-negative-divider-primary-selected:var(--cui-color-brand-maroon-200);--cui-negative-divider-primary-disabled:var(--cui-color-brand-maroon-700);--cui-negative-divider-secondary-default:var(--cui-color-brand-maroon-400);--cui-negative-divider-secondary-hover:var(--cui-color-brand-maroon-500);--cui-negative-divider-secondary-active:var(--cui-color-brand-maroon-600);--cui-negative-divider-secondary-selected:var(--cui-color-brand-maroon-500);--cui-negative-divider-secondary-disabled:var(--cui-color-brand-maroon-150);--cui-warning-surface-primary-default:var(--cui-color-brand-ochre-official);--cui-warning-surface-primary-hover:var(--cui-color-brand-ochre-300);--cui-warning-surface-primary-active:var(--cui-color-brand-ochre-200);--cui-warning-surface-primary-selected:var(--cui-color-brand-ochre-250);--cui-warning-surface-primary-disabled:var(--cui-color-brand-ochre-75);--cui-warning-surface-secondary-default:var(--cui-color-brand-ochre-100);--cui-warning-surface-secondary-hover:var(--cui-color-brand-ochre-150);--cui-warning-surface-secondary-active:var(--cui-color-brand-ochre-250);--cui-warning-surface-secondary-selected:var(--cui-color-brand-ochre-200);--cui-warning-surface-secondary-disabled:var(--cui-color-brand-ochre-50);--cui-warning-text-primary-default:var(--cui-color-brand-ochre-975);--cui-warning-text-primary-hover:var(--cui-color-brand-ochre-975);--cui-warning-text-primary-active:var(--cui-color-brand-ochre-975);--cui-warning-text-primary-selected:var(--cui-color-brand-ochre-975);--cui-warning-text-primary-disabled:var(--cui-color-brand-ochre-500);--cui-warning-text-secondary-default:var(--cui-color-brand-ochre-800);--cui-warning-text-secondary-hover:var(--cui-color-brand-ochre-850);--cui-warning-text-secondary-active:var(--cui-color-brand-ochre-900);--cui-warning-text-secondary-selected:var(--cui-color-brand-ochre-900);--cui-warning-text-secondary-disabled:var(--cui-color-brand-ochre-500);--cui-warning-border-primary-default:var(--cui-color-brand-ochre-700);--cui-warning-border-primary-hover:var(--cui-color-brand-ochre-750);--cui-warning-border-primary-active:var(--cui-warning-surface-primary-active);--cui-warning-border-primary-selected:var(--cui-warning-surface-primary-selected);--cui-warning-border-primary-disabled:var(--cui-warning-surface-primary-disabled);--cui-warning-border-secondary-default:var(--cui-color-brand-ochre-600);--cui-warning-border-secondary-hover:var(--cui-color-brand-ochre-700);--cui-warning-border-secondary-active:var(--cui-warning-surface-secondary-active);--cui-warning-border-secondary-selected:var(--cui-warning-surface-secondary-selected);--cui-warning-border-secondary-disabled:var(--cui-warning-surface-secondary-disabled);--cui-warning-divider-primary-default:var(--cui-color-brand-ochre-700);--cui-warning-divider-primary-hover:var(--cui-color-brand-ochre-750);--cui-warning-divider-primary-active:var(--cui-color-brand-ochre-800);--cui-warning-divider-primary-selected:var(--cui-color-brand-ochre-750);--cui-warning-divider-primary-disabled:var(--cui-color-brand-ochre-300);--cui-warning-divider-secondary-default:var(--cui-color-brand-ochre-400);--cui-warning-divider-secondary-hover:var(--cui-color-brand-ochre-500);--cui-warning-divider-secondary-active:var(--cui-color-brand-ochre-600);--cui-warning-divider-secondary-selected:var(--cui-color-brand-ochre-500);--cui-warning-divider-secondary-disabled:var(--cui-color-brand-ochre-150);--cui-info-surface-primary-default:var(--cui-color-blue-600);--cui-info-surface-primary-hover:var(--cui-color-blue-700);--cui-info-surface-primary-active:var(--cui-color-blue-800);--cui-info-surface-primary-selected:var(--cui-color-blue-750);--cui-info-surface-primary-disabled:var(--cui-color-blue-75);--cui-info-surface-secondary-default:var(--cui-color-blue-100);--cui-info-surface-secondary-hover:var(--cui-color-blue-150);--cui-info-surface-secondary-active:var(--cui-color-blue-250);--cui-info-surface-secondary-selected:var(--cui-color-blue-200);--cui-info-surface-secondary-disabled:var(--cui-color-blue-50);--cui-info-text-primary-default:var(--cui-color-gray-0);--cui-info-text-primary-hover:var(--cui-color-gray-0);--cui-info-text-primary-active:var(--cui-color-gray-0);--cui-info-text-primary-selected:var(--cui-color-gray-0);--cui-info-text-primary-disabled:var(--cui-color-blue-500);--cui-info-text-secondary-default:var(--cui-color-blue-800);--cui-info-text-secondary-hover:var(--cui-color-blue-850);--cui-info-text-secondary-active:var(--cui-color-blue-900);--cui-info-text-secondary-selected:var(--cui-color-blue-900);--cui-info-text-secondary-disabled:var(--cui-color-blue-500);--cui-info-border-primary-default:var(--cui-color-blue-700);--cui-info-border-primary-hover:var(--cui-color-blue-750);--cui-info-border-primary-active:var(--cui-info-surface-primary-active);--cui-info-border-primary-selected:var(--cui-info-surface-primary-selected);--cui-info-border-primary-disabled:var(--cui-info-surface-primary-disabled);--cui-info-border-secondary-default:var(--cui-color-blue-600);--cui-info-border-secondary-hover:var(--cui-color-blue-700);--cui-info-border-secondary-active:var(--cui-info-surface-secondary-active);--cui-info-border-secondary-selected:var(--cui-info-surface-secondary-selected);--cui-info-border-secondary-disabled:var(--cui-info-surface-secondary-disabled);--cui-info-divider-primary-default:var(--cui-color-blue-300);--cui-info-divider-primary-hover:var(--cui-color-blue-250);--cui-info-divider-primary-active:var(--cui-color-blue-200);--cui-info-divider-primary-selected:var(--cui-color-blue-200);--cui-info-divider-primary-disabled:var(--cui-color-blue-700);--cui-info-divider-secondary-default:var(--cui-color-blue-400);--cui-info-divider-secondary-hover:var(--cui-color-blue-500);--cui-info-divider-secondary-active:var(--cui-color-blue-600);--cui-info-divider-secondary-selected:var(--cui-color-blue-500);--cui-info-divider-secondary-disabled:var(--cui-color-blue-150);--cui-neutral-surface-primary-default:var(--cui-color-gray-600);--cui-neutral-surface-primary-hover:var(--cui-color-gray-700);--cui-neutral-surface-primary-active:var(--cui-color-gray-800);--cui-neutral-surface-primary-selected:var(--cui-color-gray-750);--cui-neutral-surface-primary-disabled:var(--cui-color-gray-75);--cui-neutral-surface-secondary-default:var(--cui-color-gray-100);--cui-neutral-surface-secondary-hover:var(--cui-color-gray-150);--cui-neutral-surface-secondary-active:var(--cui-color-gray-250);--cui-neutral-surface-secondary-selected:var(--cui-color-gray-200);--cui-neutral-surface-secondary-disabled:var(--cui-color-gray-50);--cui-neutral-text-primary-default:var(--cui-color-gray-0);--cui-neutral-text-primary-hover:var(--cui-color-gray-0);--cui-neutral-text-primary-active:var(--cui-color-gray-0);--cui-neutral-text-primary-selected:var(--cui-color-gray-0);--cui-neutral-text-primary-disabled:var(--cui-color-gray-500);--cui-neutral-text-secondary-default:var(--cui-color-gray-800);--cui-neutral-text-secondary-hover:var(--cui-color-gray-850);--cui-neutral-text-secondary-active:var(--cui-color-gray-900);--cui-neutral-text-secondary-selected:var(--cui-color-gray-900);--cui-neutral-text-secondary-disabled:var(--cui-color-gray-500);--cui-neutral-border-primary-default:var(--cui-color-gray-700);--cui-neutral-border-primary-hover:var(--cui-color-gray-750);--cui-neutral-border-primary-active:var(--cui-neutral-surface-primary-active);--cui-neutral-border-primary-selected:var(--cui-neutral-surface-primary-selected);--cui-neutral-border-primary-disabled:var(--cui-neutral-surface-primary-disabled);--cui-neutral-border-secondary-default:var(--cui-color-gray-600);--cui-neutral-border-secondary-hover:var(--cui-color-gray-700);--cui-neutral-border-secondary-active:var(--cui-neutral-surface-secondary-active);--cui-neutral-border-secondary-selected:var(--cui-neutral-surface-secondary-selected);--cui-neutral-border-secondary-disabled:var(--cui-neutral-surface-secondary-disabled);--cui-neutral-divider-primary-default:var(--cui-color-gray-300);--cui-neutral-divider-primary-hover:var(--cui-color-gray-250);--cui-neutral-divider-primary-active:var(--cui-color-gray-200);--cui-neutral-divider-primary-selected:var(--cui-color-gray-200);--cui-neutral-divider-primary-disabled:var(--cui-color-gray-700);--cui-neutral-divider-secondary-default:var(--cui-color-gray-400);--cui-neutral-divider-secondary-hover:var(--cui-color-gray-500);--cui-neutral-divider-secondary-active:var(--cui-color-gray-600);--cui-neutral-divider-secondary-selected:var(--cui-color-gray-500);--cui-neutral-divider-secondary-disabled:var(--cui-color-gray-150);--cui-highlight-surface-primary-default:var(--cui-color-brand-violet-official);--cui-highlight-surface-primary-hover:var(--cui-color-brand-violet-600);--cui-highlight-surface-primary-active:var(--cui-color-brand-violet-750);--cui-highlight-surface-primary-selected:var(--cui-color-brand-violet-700);--cui-highlight-surface-primary-disabled:var(--cui-color-brand-violet-75);--cui-highlight-surface-secondary-default:var(--cui-color-brand-violet-100);--cui-highlight-surface-secondary-hover:var(--cui-color-brand-violet-150);--cui-highlight-surface-secondary-active:var(--cui-color-brand-violet-250);--cui-highlight-surface-secondary-selected:var(--cui-color-brand-violet-200);--cui-highlight-surface-secondary-disabled:var(--cui-color-brand-violet-50);--cui-highlight-text-primary-default:var(--cui-color-gray-0);--cui-highlight-text-primary-hover:var(--cui-color-gray-0);--cui-highlight-text-primary-active:var(--cui-color-gray-0);--cui-highlight-text-primary-selected:var(--cui-color-gray-0);--cui-highlight-text-primary-disabled:var(--cui-color-brand-violet-500);--cui-highlight-text-secondary-default:var(--cui-color-brand-violet-800);--cui-highlight-text-secondary-hover:var(--cui-color-brand-violet-850);--cui-highlight-text-secondary-active:var(--cui-color-brand-violet-900);--cui-highlight-text-secondary-selected:var(--cui-color-brand-violet-900);--cui-highlight-text-secondary-disabled:var(--cui-color-brand-violet-500);--cui-highlight-border-primary-default:var(--cui-color-brand-violet-700);--cui-highlight-border-primary-hover:var(--cui-color-brand-violet-750);--cui-highlight-border-primary-active:var(--cui-highlight-surface-primary-active);--cui-highlight-border-primary-selected:var(--cui-highlight-surface-primary-selected);--cui-highlight-border-primary-disabled:var(--cui-highlight-surface-primary-disabled);--cui-highlight-border-secondary-default:var(--cui-color-brand-violet-600);--cui-highlight-border-secondary-hover:var(--cui-color-brand-violet-700);--cui-highlight-border-secondary-active:var(--cui-highlight-surface-secondary-active);--cui-highlight-border-secondary-selected:var(--cui-highlight-surface-secondary-selected);--cui-highlight-border-secondary-disabled:var(--cui-highlight-surface-secondary-disabled);--cui-highlight-divider-primary-default:var(--cui-color-brand-violet-300);--cui-highlight-divider-primary-hover:var(--cui-color-brand-violet-250);--cui-highlight-divider-primary-active:var(--cui-color-brand-violet-200);--cui-highlight-divider-primary-selected:var(--cui-color-brand-violet-200);--cui-highlight-divider-primary-disabled:var(--cui-color-brand-violet-700);--cui-highlight-divider-secondary-default:var(--cui-color-brand-violet-400);--cui-highlight-divider-secondary-hover:var(--cui-color-brand-violet-500);--cui-highlight-divider-secondary-active:var(--cui-color-brand-violet-600);--cui-highlight-divider-secondary-selected:var(--cui-color-brand-violet-500);--cui-highlight-divider-secondary-disabled:var(--cui-color-brand-violet-150);--cui-focus-ring:var(--cui-color-blue-600);--cui-focus-ring-width:2px;--cui-focus-ring-offset:2px;--cui-font-family-base:'Allen Institute Text', system-ui, sans-serif;--cui-font-family-headline:'Allen Institute Headline', 'Allen Institute Text', system-ui, sans-serif;--cui-font-family-mono:'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;--cui-font-size-xxs:10px;--cui-font-size-xs:11px;--cui-font-size-s:12px;--cui-font-size-m:14px;--cui-font-size-l:18px;--cui-font-size-xl:24px;--cui-font-size-xxl:32px;--cui-font-size-display-s:40px;--cui-font-size-display-m:48px;--cui-font-size-display-l:60px;--cui-font-weight-light:300;--cui-font-weight-normal:400;--cui-font-weight-medium:500;--cui-font-weight-semibold:600;--cui-font-weight-bold:700;--cui-line-height-tight:1.2;--cui-line-height-base:1.4;--cui-line-height-loose:1.6;--cui-letter-spacing-tight:-0.02em;--cui-letter-spacing-base:0;--cui-letter-spacing-wide:0.04em;--cui-spacing-xxxs:1px;--cui-spacing-xxs:2px;--cui-spacing-xs:4px;--cui-spacing-s:8px;--cui-spacing-m:12px;--cui-spacing-l:16px;--cui-spacing-xl:24px;--cui-spacing-xxl:32px;--cui-spacing-xxxl:48px;--cui-border-radius-none:0;--cui-border-radius-s:2px;--cui-border-radius-m:4px;--cui-border-radius-l:6px;--cui-border-radius-xl:8px;--cui-border-radius-full:9999px;--cui-border-width-xs:0.5px;--cui-border-width-s:1px;--cui-border-width-m:2px;--cui-border-width-l:4px;--cui-border-width-xl:8px;--cui-control-height-xs:16px;--cui-control-height-s:20px;--cui-control-height-m:24px;--cui-control-height-l:36px;--cui-control-height-xl:48px;--cui-control-padding-xs:var(--cui-spacing-xxxs) var(--cui-spacing-xxs);--cui-control-padding-s:var(--cui-spacing-xxs) var(--cui-spacing-xs);--cui-control-padding-m:var(--cui-spacing-xs) var(--cui-spacing-s);--cui-control-padding-l:var(--cui-spacing-s) var(--cui-spacing-m);--cui-control-padding-xl:var(--cui-spacing-m) var(--cui-spacing-l);--cui-shadow-s:0 1px 2px var(--cui-shadow-color-50);--cui-shadow-m:0 2px 4px var(--cui-shadow-color-100);--cui-shadow-l:0 4px 12px var(--cui-shadow-color-150);--cui-transition-fast:160ms ease;--cui-transition-base:240ms ease;--cui-transition-slow:320ms ease}:root[data-theme=dark]{--cui-base-bg-main:var(--cui-color-gray-950);--cui-base-bg-level-1:var(--cui-base-bg-main);--cui-base-bg-level-2:var(--cui-color-gray-925);--cui-base-bg-level-3:var(--cui-color-gray-900);--cui-base-divider-primary:var(--cui-color-gray-700);--cui-base-divider-secondary:var(--cui-color-gray-800);--cui-base-text-primary:var(--cui-color-gray-150);--cui-base-text-secondary:var(--cui-color-gray-400);--cui-base-border-primary:var(--cui-color-gray-400);--cui-base-border-secondary:var(--cui-color-gray-500);--cui-accent-surface-primary-default:var(--cui-color-brand-blue-400);--cui-accent-surface-primary-hover:var(--cui-color-brand-blue-300);--cui-accent-surface-primary-active:var(--cui-color-brand-blue-200);--cui-accent-surface-primary-selected:var(--cui-color-brand-blue-250);--cui-accent-surface-primary-disabled:var(--cui-color-brand-blue-850);--cui-accent-surface-secondary-default:var(--cui-color-brand-blue-900);--cui-accent-surface-secondary-hover:var(--cui-color-brand-blue-850);--cui-accent-surface-secondary-active:var(--cui-color-brand-blue-750);--cui-accent-surface-secondary-selected:var(--cui-color-brand-blue-800);--cui-accent-surface-secondary-disabled:var(--cui-color-brand-blue-950);--cui-accent-text-primary-default:var(--cui-color-brand-blue-975);--cui-accent-text-primary-hover:var(--cui-color-brand-blue-975);--cui-accent-text-primary-active:var(--cui-color-brand-blue-975);--cui-accent-text-primary-selected:var(--cui-color-brand-blue-975);--cui-accent-text-primary-disabled:var(--cui-color-brand-blue-500);--cui-accent-text-secondary-default:var(--cui-color-brand-blue-200);--cui-accent-text-secondary-hover:var(--cui-color-brand-blue-150);--cui-accent-text-secondary-active:var(--cui-color-brand-blue-100);--cui-accent-text-secondary-selected:var(--cui-color-brand-blue-100);--cui-accent-text-secondary-disabled:var(--cui-color-brand-blue-600);--cui-accent-border-primary-default:var(--cui-color-brand-blue-300);--cui-accent-border-primary-hover:var(--cui-color-brand-blue-250);--cui-accent-border-primary-active:var(--cui-accent-surface-primary-active);--cui-accent-border-primary-selected:var(--cui-accent-surface-primary-selected);--cui-accent-border-primary-disabled:var(--cui-accent-surface-primary-disabled);--cui-accent-border-secondary-default:var(--cui-color-brand-blue-500);--cui-accent-border-secondary-hover:var(--cui-color-brand-blue-400);--cui-accent-border-secondary-active:var(--cui-accent-surface-secondary-active);--cui-accent-border-secondary-selected:var(--cui-accent-surface-secondary-selected);--cui-accent-border-secondary-disabled:var(--cui-accent-surface-secondary-disabled);--cui-accent-divider-primary-default:var(--cui-color-brand-blue-700);--cui-accent-divider-primary-hover:var(--cui-color-brand-blue-750);--cui-accent-divider-primary-active:var(--cui-color-brand-blue-800);--cui-accent-divider-primary-selected:var(--cui-color-brand-blue-750);--cui-accent-divider-primary-disabled:var(--cui-color-brand-blue-300);--cui-accent-divider-secondary-default:var(--cui-color-brand-blue-700);--cui-accent-divider-secondary-hover:var(--cui-color-brand-blue-600);--cui-accent-divider-secondary-active:var(--cui-color-brand-blue-500);--cui-accent-divider-secondary-selected:var(--cui-color-brand-blue-600);--cui-accent-divider-secondary-disabled:var(--cui-color-brand-blue-850);--cui-positive-surface-primary-default:var(--cui-color-brand-teal-400);--cui-positive-surface-primary-hover:var(--cui-color-brand-teal-300);--cui-positive-surface-primary-active:var(--cui-color-brand-teal-200);--cui-positive-surface-primary-selected:var(--cui-color-brand-teal-250);--cui-positive-surface-primary-disabled:var(--cui-color-brand-teal-850);--cui-positive-surface-secondary-default:var(--cui-color-brand-teal-900);--cui-positive-surface-secondary-hover:var(--cui-color-brand-teal-850);--cui-positive-surface-secondary-active:var(--cui-color-brand-teal-750);--cui-positive-surface-secondary-selected:var(--cui-color-brand-teal-800);--cui-positive-surface-secondary-disabled:var(--cui-color-brand-teal-950);--cui-positive-text-primary-default:var(--cui-color-brand-teal-975);--cui-positive-text-primary-hover:var(--cui-color-brand-teal-975);--cui-positive-text-primary-active:var(--cui-color-brand-teal-975);--cui-positive-text-primary-selected:var(--cui-color-brand-teal-975);--cui-positive-text-primary-disabled:var(--cui-color-brand-teal-500);--cui-positive-text-secondary-default:var(--cui-color-brand-teal-200);--cui-positive-text-secondary-hover:var(--cui-color-brand-teal-150);--cui-positive-text-secondary-active:var(--cui-color-brand-teal-100);--cui-positive-text-secondary-selected:var(--cui-color-brand-teal-100);--cui-positive-text-secondary-disabled:var(--cui-color-brand-teal-600);--cui-positive-border-primary-default:var(--cui-color-brand-teal-300);--cui-positive-border-primary-hover:var(--cui-color-brand-teal-250);--cui-positive-border-primary-active:var(--cui-positive-surface-primary-active);--cui-positive-border-primary-selected:var(--cui-positive-surface-primary-selected);--cui-positive-border-primary-disabled:var(--cui-positive-surface-primary-disabled);--cui-positive-border-secondary-default:var(--cui-color-brand-teal-500);--cui-positive-border-secondary-hover:var(--cui-color-brand-teal-400);--cui-positive-border-secondary-active:var(--cui-positive-surface-secondary-active);--cui-positive-border-secondary-selected:var(--cui-positive-surface-secondary-selected);--cui-positive-border-secondary-disabled:var(--cui-positive-surface-secondary-disabled);--cui-positive-divider-primary-default:var(--cui-color-brand-teal-700);--cui-positive-divider-primary-hover:var(--cui-color-brand-teal-750);--cui-positive-divider-primary-active:var(--cui-color-brand-teal-800);--cui-positive-divider-primary-selected:var(--cui-color-brand-teal-750);--cui-positive-divider-primary-disabled:var(--cui-color-brand-teal-300);--cui-positive-divider-secondary-default:var(--cui-color-brand-teal-700);--cui-positive-divider-secondary-hover:var(--cui-color-brand-teal-600);--cui-positive-divider-secondary-active:var(--cui-color-brand-teal-500);--cui-positive-divider-secondary-selected:var(--cui-color-brand-teal-600);--cui-positive-divider-secondary-disabled:var(--cui-color-brand-teal-850);--cui-negative-surface-primary-default:var(--cui-color-brand-maroon-400);--cui-negative-surface-primary-hover:var(--cui-color-brand-maroon-300);--cui-negative-surface-primary-active:var(--cui-color-brand-maroon-200);--cui-negative-surface-primary-selected:var(--cui-color-brand-maroon-250);--cui-negative-surface-primary-disabled:var(--cui-color-brand-maroon-850);--cui-negative-surface-secondary-default:var(--cui-color-brand-maroon-900);--cui-negative-surface-secondary-hover:var(--cui-color-brand-maroon-850);--cui-negative-surface-secondary-active:var(--cui-color-brand-maroon-750);--cui-negative-surface-secondary-selected:var(--cui-color-brand-maroon-800);--cui-negative-surface-secondary-disabled:var(--cui-color-brand-maroon-950);--cui-negative-text-primary-default:var(--cui-color-brand-maroon-975);--cui-negative-text-primary-hover:var(--cui-color-brand-maroon-975);--cui-negative-text-primary-active:var(--cui-color-brand-maroon-975);--cui-negative-text-primary-selected:var(--cui-color-brand-maroon-975);--cui-negative-text-primary-disabled:var(--cui-color-brand-maroon-500);--cui-negative-text-secondary-default:var(--cui-color-brand-maroon-200);--cui-negative-text-secondary-hover:var(--cui-color-brand-maroon-150);--cui-negative-text-secondary-active:var(--cui-color-brand-maroon-100);--cui-negative-text-secondary-selected:var(--cui-color-brand-maroon-100);--cui-negative-text-secondary-disabled:var(--cui-color-brand-maroon-600);--cui-negative-border-primary-default:var(--cui-color-brand-maroon-300);--cui-negative-border-primary-hover:var(--cui-color-brand-maroon-250);--cui-negative-border-primary-active:var(--cui-negative-surface-primary-active);--cui-negative-border-primary-selected:var(--cui-negative-surface-primary-selected);--cui-negative-border-primary-disabled:var(--cui-negative-surface-primary-disabled);--cui-negative-border-secondary-default:var(--cui-color-brand-maroon-500);--cui-negative-border-secondary-hover:var(--cui-color-brand-maroon-400);--cui-negative-border-secondary-active:var(--cui-negative-surface-secondary-active);--cui-negative-border-secondary-selected:var(--cui-negative-surface-secondary-selected);--cui-negative-border-secondary-disabled:var(--cui-negative-surface-secondary-disabled);--cui-negative-divider-primary-default:var(--cui-color-brand-maroon-700);--cui-negative-divider-primary-hover:var(--cui-color-brand-maroon-750);--cui-negative-divider-primary-active:var(--cui-color-brand-maroon-800);--cui-negative-divider-primary-selected:var(--cui-color-brand-maroon-750);--cui-negative-divider-primary-disabled:var(--cui-color-brand-maroon-300);--cui-negative-divider-secondary-default:var(--cui-color-brand-maroon-700);--cui-negative-divider-secondary-hover:var(--cui-color-brand-maroon-600);--cui-negative-divider-secondary-active:var(--cui-color-brand-maroon-500);--cui-negative-divider-secondary-selected:var(--cui-color-brand-maroon-600);--cui-negative-divider-secondary-disabled:var(--cui-color-brand-maroon-850);--cui-warning-surface-primary-default:var(--cui-color-brand-ochre-400);--cui-warning-surface-primary-hover:var(--cui-color-brand-ochre-300);--cui-warning-surface-primary-active:var(--cui-color-brand-ochre-200);--cui-warning-surface-primary-selected:var(--cui-color-brand-ochre-250);--cui-warning-surface-primary-disabled:var(--cui-color-brand-ochre-850);--cui-warning-surface-secondary-default:var(--cui-color-brand-ochre-900);--cui-warning-surface-secondary-hover:var(--cui-color-brand-ochre-850);--cui-warning-surface-secondary-active:var(--cui-color-brand-ochre-750);--cui-warning-surface-secondary-selected:var(--cui-color-brand-ochre-800);--cui-warning-surface-secondary-disabled:var(--cui-color-brand-ochre-950);--cui-warning-text-primary-default:var(--cui-color-brand-ochre-975);--cui-warning-text-primary-hover:var(--cui-color-brand-ochre-975);--cui-warning-text-primary-active:var(--cui-color-brand-ochre-975);--cui-warning-text-primary-selected:var(--cui-color-brand-ochre-975);--cui-warning-text-primary-disabled:var(--cui-color-brand-ochre-500);--cui-warning-text-secondary-default:var(--cui-color-brand-ochre-200);--cui-warning-text-secondary-hover:var(--cui-color-brand-ochre-150);--cui-warning-text-secondary-active:var(--cui-color-brand-ochre-100);--cui-warning-text-secondary-selected:var(--cui-color-brand-ochre-100);--cui-warning-text-secondary-disabled:var(--cui-color-brand-ochre-600);--cui-warning-border-primary-default:var(--cui-color-brand-ochre-300);--cui-warning-border-primary-hover:var(--cui-color-brand-ochre-250);--cui-warning-border-primary-active:var(--cui-warning-surface-primary-active);--cui-warning-border-primary-selected:var(--cui-warning-surface-primary-selected);--cui-warning-border-primary-disabled:var(--cui-warning-surface-primary-disabled);--cui-warning-border-secondary-default:var(--cui-color-brand-ochre-500);--cui-warning-border-secondary-hover:var(--cui-color-brand-ochre-400);--cui-warning-border-secondary-active:var(--cui-warning-surface-secondary-active);--cui-warning-border-secondary-selected:var(--cui-warning-surface-secondary-selected);--cui-warning-border-secondary-disabled:var(--cui-warning-surface-secondary-disabled);--cui-warning-divider-primary-default:var(--cui-color-brand-ochre-700);--cui-warning-divider-primary-hover:var(--cui-color-brand-ochre-750);--cui-warning-divider-primary-active:var(--cui-color-brand-ochre-800);--cui-warning-divider-primary-selected:var(--cui-color-brand-ochre-750);--cui-warning-divider-primary-disabled:var(--cui-color-brand-ochre-300);--cui-warning-divider-secondary-default:var(--cui-color-brand-ochre-700);--cui-warning-divider-secondary-hover:var(--cui-color-brand-ochre-600);--cui-warning-divider-secondary-active:var(--cui-color-brand-ochre-500);--cui-warning-divider-secondary-selected:var(--cui-color-brand-ochre-600);--cui-warning-divider-secondary-disabled:var(--cui-color-brand-ochre-850);--cui-info-surface-primary-default:var(--cui-color-blue-400);--cui-info-surface-primary-hover:var(--cui-color-blue-300);--cui-info-surface-primary-active:var(--cui-color-blue-200);--cui-info-surface-primary-selected:var(--cui-color-blue-250);--cui-info-surface-primary-disabled:var(--cui-color-blue-850);--cui-info-surface-secondary-default:var(--cui-color-blue-900);--cui-info-surface-secondary-hover:var(--cui-color-blue-850);--cui-info-surface-secondary-active:var(--cui-color-blue-750);--cui-info-surface-secondary-selected:var(--cui-color-blue-800);--cui-info-surface-secondary-disabled:var(--cui-color-blue-950);--cui-info-text-primary-default:var(--cui-color-blue-975);--cui-info-text-primary-hover:var(--cui-color-blue-975);--cui-info-text-primary-active:var(--cui-color-blue-975);--cui-info-text-primary-selected:var(--cui-color-blue-975);--cui-info-text-primary-disabled:var(--cui-color-blue-500);--cui-info-text-secondary-default:var(--cui-color-blue-200);--cui-info-text-secondary-hover:var(--cui-color-blue-150);--cui-info-text-secondary-active:var(--cui-color-blue-100);--cui-info-text-secondary-selected:var(--cui-color-blue-100);--cui-info-text-secondary-disabled:var(--cui-color-blue-600);--cui-info-border-primary-default:var(--cui-color-blue-300);--cui-info-border-primary-hover:var(--cui-color-blue-250);--cui-info-border-primary-active:var(--cui-info-surface-primary-active);--cui-info-border-primary-selected:var(--cui-info-surface-primary-selected);--cui-info-border-primary-disabled:var(--cui-info-surface-primary-disabled);--cui-info-border-secondary-default:var(--cui-color-blue-500);--cui-info-border-secondary-hover:var(--cui-color-blue-400);--cui-info-border-secondary-active:var(--cui-info-surface-secondary-active);--cui-info-border-secondary-selected:var(--cui-info-surface-secondary-selected);--cui-info-border-secondary-disabled:var(--cui-info-surface-secondary-disabled);--cui-info-divider-primary-default:var(--cui-color-blue-700);--cui-info-divider-primary-hover:var(--cui-color-blue-750);--cui-info-divider-primary-active:var(--cui-color-blue-800);--cui-info-divider-primary-selected:var(--cui-color-blue-750);--cui-info-divider-primary-disabled:var(--cui-color-blue-300);--cui-info-divider-secondary-default:var(--cui-color-blue-700);--cui-info-divider-secondary-hover:var(--cui-color-blue-600);--cui-info-divider-secondary-active:var(--cui-color-blue-500);--cui-info-divider-secondary-selected:var(--cui-color-blue-600);--cui-info-divider-secondary-disabled:var(--cui-color-blue-850);--cui-neutral-surface-primary-default:var(--cui-color-gray-400);--cui-neutral-surface-primary-hover:var(--cui-color-gray-300);--cui-neutral-surface-primary-active:var(--cui-color-gray-200);--cui-neutral-surface-primary-selected:var(--cui-color-gray-250);--cui-neutral-surface-primary-disabled:var(--cui-color-gray-850);--cui-neutral-surface-secondary-default:var(--cui-color-gray-900);--cui-neutral-surface-secondary-hover:var(--cui-color-gray-850);--cui-neutral-surface-secondary-active:var(--cui-color-gray-750);--cui-neutral-surface-secondary-selected:var(--cui-color-gray-800);--cui-neutral-surface-secondary-disabled:var(--cui-color-gray-950);--cui-neutral-text-primary-default:var(--cui-color-gray-975);--cui-neutral-text-primary-hover:var(--cui-color-gray-975);--cui-neutral-text-primary-active:var(--cui-color-gray-975);--cui-neutral-text-primary-selected:var(--cui-color-gray-975);--cui-neutral-text-primary-disabled:var(--cui-color-gray-500);--cui-neutral-text-secondary-default:var(--cui-color-gray-200);--cui-neutral-text-secondary-hover:var(--cui-color-gray-150);--cui-neutral-text-secondary-active:var(--cui-color-gray-100);--cui-neutral-text-secondary-selected:var(--cui-color-gray-100);--cui-neutral-text-secondary-disabled:var(--cui-color-gray-600);--cui-neutral-border-primary-default:var(--cui-color-gray-300);--cui-neutral-border-primary-hover:var(--cui-color-gray-250);--cui-neutral-border-primary-active:var(--cui-neutral-surface-primary-active);--cui-neutral-border-primary-selected:var(--cui-neutral-surface-primary-selected);--cui-neutral-border-primary-disabled:var(--cui-neutral-surface-primary-disabled);--cui-neutral-border-secondary-default:var(--cui-color-gray-500);--cui-neutral-border-secondary-hover:var(--cui-color-gray-400);--cui-neutral-border-secondary-active:var(--cui-neutral-surface-secondary-active);--cui-neutral-border-secondary-selected:var(--cui-neutral-surface-secondary-selected);--cui-neutral-border-secondary-disabled:var(--cui-neutral-surface-secondary-disabled);--cui-neutral-divider-primary-default:var(--cui-color-gray-700);--cui-neutral-divider-primary-hover:var(--cui-color-gray-750);--cui-neutral-divider-primary-active:var(--cui-color-gray-800);--cui-neutral-divider-primary-selected:var(--cui-color-gray-750);--cui-neutral-divider-primary-disabled:var(--cui-color-gray-300);--cui-neutral-divider-secondary-default:var(--cui-color-gray-700);--cui-neutral-divider-secondary-hover:var(--cui-color-gray-600);--cui-neutral-divider-secondary-active:var(--cui-color-gray-500);--cui-neutral-divider-secondary-selected:var(--cui-color-gray-600);--cui-neutral-divider-secondary-disabled:var(--cui-color-gray-850);--cui-highlight-surface-primary-default:var(--cui-color-brand-violet-400);--cui-highlight-surface-primary-hover:var(--cui-color-brand-violet-300);--cui-highlight-surface-primary-active:var(--cui-color-brand-violet-200);--cui-highlight-surface-primary-selected:var(--cui-color-brand-violet-250);--cui-highlight-surface-primary-disabled:var(--cui-color-brand-violet-850);--cui-highlight-surface-secondary-default:var(--cui-color-brand-violet-900);--cui-highlight-surface-secondary-hover:var(--cui-color-brand-violet-850);--cui-highlight-surface-secondary-active:var(--cui-color-brand-violet-750);--cui-highlight-surface-secondary-selected:var(--cui-color-brand-violet-800);--cui-highlight-surface-secondary-disabled:var(--cui-color-brand-violet-950);--cui-highlight-text-primary-default:var(--cui-color-brand-violet-975);--cui-highlight-text-primary-hover:var(--cui-color-brand-violet-975);--cui-highlight-text-primary-active:var(--cui-color-brand-violet-975);--cui-highlight-text-primary-selected:var(--cui-color-brand-violet-975);--cui-highlight-text-primary-disabled:var(--cui-color-brand-violet-500);--cui-highlight-text-secondary-default:var(--cui-color-brand-violet-200);--cui-highlight-text-secondary-hover:var(--cui-color-brand-violet-150);--cui-highlight-text-secondary-active:var(--cui-color-brand-violet-100);--cui-highlight-text-secondary-selected:var(--cui-color-brand-violet-100);--cui-highlight-text-secondary-disabled:var(--cui-color-brand-violet-600);--cui-highlight-border-primary-default:var(--cui-color-brand-violet-300);--cui-highlight-border-primary-hover:var(--cui-color-brand-violet-250);--cui-highlight-border-primary-active:var(--cui-highlight-surface-primary-active);--cui-highlight-border-primary-selected:var(--cui-highlight-surface-primary-selected);--cui-highlight-border-primary-disabled:var(--cui-highlight-surface-primary-disabled);--cui-highlight-border-secondary-default:var(--cui-color-brand-violet-500);--cui-highlight-border-secondary-hover:var(--cui-color-brand-violet-400);--cui-highlight-border-secondary-active:var(--cui-highlight-surface-secondary-active);--cui-highlight-border-secondary-selected:var(--cui-highlight-surface-secondary-selected);--cui-highlight-border-secondary-disabled:var(--cui-highlight-surface-secondary-disabled);--cui-highlight-divider-primary-default:var(--cui-color-brand-violet-700);--cui-highlight-divider-primary-hover:var(--cui-color-brand-violet-750);--cui-highlight-divider-primary-active:var(--cui-color-brand-violet-800);--cui-highlight-divider-primary-selected:var(--cui-color-brand-violet-750);--cui-highlight-divider-primary-disabled:var(--cui-color-brand-violet-300);--cui-highlight-divider-secondary-default:var(--cui-color-brand-violet-700);--cui-highlight-divider-secondary-hover:var(--cui-color-brand-violet-600);--cui-highlight-divider-secondary-active:var(--cui-color-brand-violet-500);--cui-highlight-divider-secondary-selected:var(--cui-color-brand-violet-600);--cui-highlight-divider-secondary-disabled:var(--cui-color-brand-violet-850);--cui-focus-ring:var(--cui-color-blue-500);--cui-shadow-s:0 0 0 var(--cui-border-width-s) var(--cui-color-gray-400), 0 1px 2px var(--cui-shadow-color-800);--cui-shadow-m:0 0 0 var(--cui-border-width-s) var(--cui-color-gray-400), 0 2px 4px var(--cui-shadow-color-900);--cui-shadow-l:0 0 0 var(--cui-border-width-s) var(--cui-color-gray-400), 0 4px 12px var(--cui-shadow-color-1000)}*,*::before,*::after{box-sizing:border-box}html{font-family:var(--cui-font-family-base);font-size:var(--cui-font-size-m);line-height:var(--cui-line-height-base);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;padding:0;color:var(--cui-base-text-secondary);background:var(--cui-base-bg-main)}a{color:var(--cui-accent-text-secondary-default)}";
6
+
7
+ /*
8
+ Stencil Client Platform v4.44.0 | MIT Licensed | https://stenciljs.com
9
+ */
10
+
11
+
12
+ // src/utils/get-prop-descriptor.ts
13
+ function getPropertyDescriptor(obj, memberName, getOnly) {
14
+ const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
15
+ while (obj && obj !== stopAt) {
16
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
17
+ if (desc && (!getOnly || desc.get)) return desc;
18
+ obj = Object.getPrototypeOf(obj);
19
+ }
20
+ return void 0;
21
+ }
22
+
23
+ // src/utils/es2022-rewire-class-members.ts
24
+ var reWireGetterSetter = (instance, hostRef) => {
25
+ var _a;
26
+ const cmpMeta = hostRef.$cmpMeta$;
27
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
28
+ members.map(([memberName, [memberFlags]]) => {
29
+ if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
30
+ const ogValue = instance[memberName];
31
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
32
+ if (ogDescriptor) {
33
+ Object.defineProperty(instance, memberName, {
34
+ get() {
35
+ return ogDescriptor.get.call(this);
36
+ },
37
+ set(newValue) {
38
+ ogDescriptor.set.call(this, newValue);
39
+ },
40
+ configurable: true,
41
+ enumerable: true
42
+ });
43
+ }
44
+ if (hostRef.$instanceValues$.has(memberName)) {
45
+ instance[memberName] = hostRef.$instanceValues$.get(memberName);
46
+ } else if (ogValue !== void 0) {
47
+ instance[memberName] = ogValue;
48
+ }
49
+ }
50
+ });
51
+ };
52
+
53
+ // src/client/client-host-ref.ts
54
+ var getHostRef = (ref) => {
55
+ if (ref.__stencil__getHostRef) {
56
+ return ref.__stencil__getHostRef();
57
+ }
58
+ return void 0;
59
+ };
60
+ var registerInstance = (lazyInstance, hostRef) => {
61
+ if (!hostRef) return;
62
+ lazyInstance.__stencil__getHostRef = () => hostRef;
63
+ hostRef.$lazyInstance$ = lazyInstance;
64
+ if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.prop)) {
65
+ reWireGetterSetter(lazyInstance, hostRef);
66
+ }
67
+ };
68
+ var registerHost = (hostElement, cmpMeta) => {
69
+ const hostRef = {
70
+ $flags$: 0,
71
+ $hostElement$: hostElement,
72
+ $cmpMeta$: cmpMeta,
73
+ $instanceValues$: /* @__PURE__ */ new Map(),
74
+ $serializerValues$: /* @__PURE__ */ new Map()
75
+ };
76
+ {
77
+ hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
78
+ hostElement["s-p"] = [];
79
+ hostElement["s-rc"] = [];
80
+ }
81
+ {
82
+ hostRef.$fetchedCbList$ = [];
83
+ }
84
+ const ref = hostRef;
85
+ hostElement.__stencil__getHostRef = () => ref;
86
+ return ref;
87
+ };
88
+ var isMemberInElement = (elm, memberName) => memberName in elm;
89
+ var consoleError = (e, el) => (0, console.error)(e, el);
90
+
91
+ // src/client/client-load-module.ts
92
+ var cmpModules = /* @__PURE__ */ new Map();
93
+ var failedLoadAttempts = /* @__PURE__ */ new Map();
94
+ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
95
+ var _a;
96
+ const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
97
+ const bundleId = cmpMeta.$lazyBundleId$;
98
+ if (!bundleId) {
99
+ return void 0;
100
+ }
101
+ const module = cmpModules.get(bundleId) ;
102
+ if (module) {
103
+ return module[exportName];
104
+ }
105
+ const retryCount = (_a = failedLoadAttempts.get(bundleId)) != null ? _a : 0;
106
+ const cacheBustParams = [
107
+ retryCount > 0 ? `s-retry=${retryCount}` : "",
108
+ ""
109
+ ].filter(Boolean).join("&");
110
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
111
+ return import(
112
+ /* @vite-ignore */
113
+ /* webpackInclude: /\.entry\.js$/ */
114
+ /* webpackExclude: /\.system\.entry\.js$/ */
115
+ /* webpackMode: "lazy" */
116
+ `./${bundleId}.entry.js${cacheBustParams ? "?" + cacheBustParams : ""}`
117
+ ).then(
118
+ (importedModule) => {
119
+ {
120
+ failedLoadAttempts.delete(bundleId);
121
+ cmpModules.set(bundleId, importedModule);
122
+ }
123
+ return importedModule[exportName];
124
+ },
125
+ (e) => {
126
+ failedLoadAttempts.set(bundleId, retryCount + 1);
127
+ consoleError(e, hostRef.$hostElement$);
128
+ }
129
+ );
130
+ };
131
+
132
+ // src/client/client-style.ts
133
+ var styles = /* @__PURE__ */ new Map();
134
+ var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
135
+ var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
136
+ var MAX_LAZY_LOAD_RETRIES = 3;
137
+ var LAZY_LOAD_RETRY_INTERVAL_MS = 1e3;
138
+ var win = typeof window !== "undefined" ? window : {};
139
+ var plt = {
140
+ $flags$: 0,
141
+ $resourcesUrl$: "",
142
+ jmp: (h2) => h2(),
143
+ raf: (h2) => requestAnimationFrame(h2),
144
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
145
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
146
+ ce: (eventName, opts) => new CustomEvent(eventName, opts)
147
+ };
148
+ var promiseResolve = (v) => Promise.resolve(v);
149
+ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
150
+ try {
151
+ if (!win.document.adoptedStyleSheets) {
152
+ return false;
153
+ }
154
+ new CSSStyleSheet();
155
+ return typeof new CSSStyleSheet().replaceSync === "function";
156
+ } catch (e) {
157
+ }
158
+ return false;
159
+ })() ;
160
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
161
+ var queuePending = false;
162
+ var queueDomReads = [];
163
+ var queueDomWrites = [];
164
+ var scheduleFlush = () => {
165
+ var _a;
166
+ return ((_a = win.document) == null ? void 0 : _a.hidden) ? nextTick(flush) : plt.raf(flush);
167
+ };
168
+ var queueTask = (queue, write) => (cb) => {
169
+ queue.push(cb);
170
+ if (!queuePending) {
171
+ queuePending = true;
172
+ if (write && plt.$flags$ & 4 /* queueSync */) {
173
+ nextTick(flush);
174
+ } else {
175
+ scheduleFlush();
176
+ }
177
+ }
178
+ };
179
+ var consume = (queue) => {
180
+ for (let i2 = 0; i2 < queue.length; i2++) {
181
+ try {
182
+ queue[i2](performance.now());
183
+ } catch (e) {
184
+ consoleError(e);
185
+ }
186
+ }
187
+ queue.length = 0;
188
+ };
189
+ var flush = () => {
190
+ consume(queueDomReads);
191
+ {
192
+ consume(queueDomWrites);
193
+ if (queuePending = queueDomReads.length > 0) {
194
+ scheduleFlush();
195
+ }
196
+ }
197
+ };
198
+ var nextTick = (cb) => promiseResolve().then(cb);
199
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
200
+
201
+ // src/utils/style.ts
202
+ function createStyleSheetIfNeededAndSupported(styles2) {
203
+ if (!supportsConstructableStylesheets) return void 0;
204
+ const sheet = new CSSStyleSheet();
205
+ sheet.replaceSync(styles2);
206
+ return sheet;
207
+ }
208
+
209
+ // src/utils/shadow-root.ts
210
+ var globalStyleSheet;
211
+ function createShadowRoot(cmpMeta) {
212
+ var _a;
213
+ const opts = { mode: "open" };
214
+ const shadowRoot = this.attachShadow(opts);
215
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported(globalStyles)) != null ? _a : null;
216
+ if (globalStyleSheet) {
217
+ if (supportsMutableAdoptedStyleSheets) {
218
+ shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
219
+ } else {
220
+ shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
221
+ }
222
+ } else if (!supportsConstructableStylesheets) {
223
+ const styleElm = document.createElement("style");
224
+ styleElm.innerHTML = globalStyles;
225
+ shadowRoot.prepend(styleElm);
226
+ }
227
+ }
228
+ var createTime = (fnName, tagName = "") => {
229
+ {
230
+ return () => {
231
+ return;
232
+ };
233
+ }
234
+ };
235
+ var uniqueTime = (key, measureText) => {
236
+ {
237
+ return () => {
238
+ return;
239
+ };
240
+ }
241
+ };
242
+
243
+ // src/utils/query-nonce-meta-tag-content.ts
244
+ function queryNonceMetaTagContent(doc) {
245
+ var _a, _b, _c;
246
+ 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;
247
+ }
248
+
249
+ // src/runtime/styles.ts
250
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
251
+ var registerStyle = (scopeId2, cssText, allowCS) => {
252
+ let style = styles.get(scopeId2);
253
+ if (supportsConstructableStylesheets && allowCS) {
254
+ style = style || new CSSStyleSheet();
255
+ if (typeof style === "string") {
256
+ style = cssText;
257
+ } else {
258
+ style.replaceSync(cssText);
259
+ }
260
+ } else {
261
+ style = cssText;
262
+ }
263
+ styles.set(scopeId2, style);
264
+ };
265
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
266
+ var _a, _b, _c;
267
+ const scopeId2 = getScopeId(cmpMeta);
268
+ const style = styles.get(scopeId2);
269
+ if (!win.document) {
270
+ return scopeId2;
271
+ }
272
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
273
+ if (style) {
274
+ if (typeof style === "string") {
275
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
276
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
277
+ let styleElm;
278
+ if (!appliedStyles) {
279
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
280
+ }
281
+ if (!appliedStyles.has(scopeId2)) {
282
+ styleElm = win.document.createElement("style");
283
+ styleElm.textContent = style;
284
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
285
+ if (nonce != null) {
286
+ styleElm.setAttribute("nonce", nonce);
287
+ }
288
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
289
+ if (styleContainerNode.nodeName === "HEAD") {
290
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
291
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
292
+ styleContainerNode.insertBefore(
293
+ styleElm,
294
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
295
+ );
296
+ } else if ("host" in styleContainerNode) {
297
+ if (supportsConstructableStylesheets) {
298
+ const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
299
+ const stylesheet = new currentWindow.CSSStyleSheet();
300
+ stylesheet.replaceSync(style);
301
+ if (supportsMutableAdoptedStyleSheets) {
302
+ styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
303
+ } else {
304
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
305
+ }
306
+ } else {
307
+ const existingStyleContainer = styleContainerNode.querySelector("style");
308
+ if (existingStyleContainer && true) {
309
+ existingStyleContainer.textContent = style + existingStyleContainer.textContent;
310
+ } else {
311
+ styleContainerNode.prepend(styleElm);
312
+ }
313
+ }
314
+ } else {
315
+ styleContainerNode.append(styleElm);
316
+ }
317
+ }
318
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
319
+ styleContainerNode.insertBefore(styleElm, null);
320
+ }
321
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
322
+ styleElm.textContent += SLOT_FB_CSS;
323
+ }
324
+ if (appliedStyles) {
325
+ appliedStyles.add(scopeId2);
326
+ }
327
+ }
328
+ } else {
329
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
330
+ if (!appliedStyles) {
331
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
332
+ }
333
+ if (!appliedStyles.has(scopeId2)) {
334
+ const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
335
+ let stylesheet;
336
+ if (style.constructor === currentWindow.CSSStyleSheet) {
337
+ stylesheet = style;
338
+ } else {
339
+ stylesheet = new currentWindow.CSSStyleSheet();
340
+ for (let i2 = 0; i2 < style.cssRules.length; i2++) {
341
+ stylesheet.insertRule(style.cssRules[i2].cssText, i2);
342
+ }
343
+ }
344
+ if (supportsMutableAdoptedStyleSheets) {
345
+ styleContainerNode.adoptedStyleSheets.push(stylesheet);
346
+ } else {
347
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
348
+ }
349
+ appliedStyles.add(scopeId2);
350
+ }
351
+ }
352
+ }
353
+ return scopeId2;
354
+ };
355
+ var attachStyles = (hostRef) => {
356
+ const cmpMeta = hostRef.$cmpMeta$;
357
+ const elm = hostRef.$hostElement$;
358
+ const flags = cmpMeta.$flags$;
359
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
360
+ const scopeId2 = addStyle(
361
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
362
+ cmpMeta);
363
+ if (flags & 10 /* needsScopedEncapsulation */) {
364
+ elm["s-sc"] = scopeId2;
365
+ elm.classList.add(scopeId2 + "-h");
366
+ }
367
+ endAttachStyles();
368
+ };
369
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
370
+ var isComplexType = (o) => {
371
+ o = typeof o;
372
+ return o === "object" || o === "function";
373
+ };
374
+
375
+ // src/runtime/vdom/h.ts
376
+ var h = (nodeName, vnodeData, ...children) => {
377
+ if (typeof nodeName === "string") {
378
+ nodeName = transformTag(nodeName);
379
+ }
380
+ let child = null;
381
+ let key = null;
382
+ let simple = false;
383
+ let lastSimple = false;
384
+ const vNodeChildren = [];
385
+ const walk = (c) => {
386
+ for (let i2 = 0; i2 < c.length; i2++) {
387
+ child = c[i2];
388
+ if (Array.isArray(child)) {
389
+ walk(child);
390
+ } else if (child != null && typeof child !== "boolean") {
391
+ if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
392
+ child = String(child);
393
+ } else if (typeof nodeName !== "function" && child.$flags$ === void 0) {
394
+ {
395
+ consoleError("Invalid vNode child");
396
+ }
397
+ continue;
398
+ }
399
+ if (simple && lastSimple) {
400
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
401
+ } else {
402
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
403
+ }
404
+ lastSimple = simple;
405
+ }
406
+ }
407
+ };
408
+ walk(children);
409
+ if (vnodeData) {
410
+ if (vnodeData.key) {
411
+ key = vnodeData.key;
412
+ }
413
+ {
414
+ const classData = vnodeData.className || vnodeData.class;
415
+ if (classData) {
416
+ vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
417
+ }
418
+ }
419
+ }
420
+ const vnode = newVNode(nodeName, null);
421
+ vnode.$attrs$ = vnodeData;
422
+ if (vNodeChildren.length > 0) {
423
+ vnode.$children$ = vNodeChildren;
424
+ }
425
+ {
426
+ vnode.$key$ = key;
427
+ }
428
+ return vnode;
429
+ };
430
+ var newVNode = (tag, text) => {
431
+ const vnode = {
432
+ $flags$: 0,
433
+ $tag$: tag,
434
+ // Normalize undefined to null to prevent rendering "undefined" as text
435
+ $text$: text != null ? text : null,
436
+ $elm$: null,
437
+ $children$: null
438
+ };
439
+ {
440
+ vnode.$attrs$ = null;
441
+ }
442
+ {
443
+ vnode.$key$ = null;
444
+ }
445
+ return vnode;
446
+ };
447
+ var Host = {};
448
+ var isHost = (node) => node && node.$tag$ === Host;
449
+
450
+ // src/runtime/normalize-watchers.ts
451
+ var normalizeWatchers = (raw) => {
452
+ if (!raw) return void 0;
453
+ const keys = Object.keys(raw);
454
+ if (keys.length === 0) return void 0;
455
+ let hasLegacy = false;
456
+ for (const propName of keys) {
457
+ if (hasLegacy) break;
458
+ for (const h2 of raw[propName]) {
459
+ if (typeof h2 === "string") {
460
+ hasLegacy = true;
461
+ break;
462
+ }
463
+ }
464
+ }
465
+ if (!hasLegacy) return raw;
466
+ const out = {};
467
+ for (const propName of keys) {
468
+ out[propName] = raw[propName].map(
469
+ (h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
470
+ );
471
+ }
472
+ return out;
473
+ };
474
+
475
+ // src/runtime/parse-property-value.ts
476
+ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
477
+ if (propValue != null && !isComplexType(propValue)) {
478
+ if (propType & 4 /* Boolean */) {
479
+ {
480
+ return propValue === "false" ? false : propValue === "" || !!propValue;
481
+ }
482
+ }
483
+ if (propType & 2 /* Number */) {
484
+ return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
485
+ }
486
+ if (propType & 1 /* String */) {
487
+ return String(propValue);
488
+ }
489
+ return propValue;
490
+ }
491
+ return propValue;
492
+ };
493
+ var getElement = (ref) => {
494
+ var _a;
495
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
496
+ };
497
+ var emitEvent = (elm, name, opts) => {
498
+ const ev = plt.ce(name, opts);
499
+ elm.dispatchEvent(ev);
500
+ return ev;
501
+ };
502
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
503
+ if (oldValue === newValue) {
504
+ return;
505
+ }
506
+ let isProp = isMemberInElement(elm, memberName);
507
+ memberName.toLowerCase();
508
+ if (memberName === "class") {
509
+ const classList = elm.classList;
510
+ const oldClasses = parseClassList(oldValue);
511
+ let newClasses = parseClassList(newValue);
512
+ {
513
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
514
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
515
+ }
516
+ } else if (memberName === "key") ; else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
517
+ const propName = memberName.slice(5);
518
+ let attrName;
519
+ {
520
+ const hostRef = getHostRef(elm);
521
+ if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
522
+ const memberMeta = hostRef.$cmpMeta$.$members$[propName];
523
+ if (memberMeta && memberMeta[1]) {
524
+ attrName = memberMeta[1];
525
+ }
526
+ }
527
+ }
528
+ if (!attrName) {
529
+ attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
530
+ }
531
+ if (newValue == null || newValue === false) {
532
+ if (newValue !== false || elm.getAttribute(attrName) === "") {
533
+ elm.removeAttribute(attrName);
534
+ }
535
+ } else {
536
+ elm.setAttribute(attrName, newValue === true ? "" : newValue);
537
+ }
538
+ return;
539
+ } else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
540
+ const propName = memberName.slice(5);
541
+ try {
542
+ elm[propName] = newValue;
543
+ } catch (e) {
544
+ }
545
+ return;
546
+ } else {
547
+ const isComplex = isComplexType(newValue);
548
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
549
+ try {
550
+ if (!elm.tagName.includes("-")) {
551
+ const n = newValue == null ? "" : newValue;
552
+ if (memberName === "list") {
553
+ isProp = false;
554
+ } else if (oldValue == null || elm[memberName] !== n) {
555
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
556
+ elm[memberName] = n;
557
+ } else {
558
+ elm.setAttribute(memberName, n);
559
+ }
560
+ }
561
+ } else if (elm[memberName] !== newValue) {
562
+ elm[memberName] = newValue;
563
+ }
564
+ } catch (e) {
565
+ }
566
+ }
567
+ if (newValue == null || newValue === false) {
568
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
569
+ {
570
+ elm.removeAttribute(memberName);
571
+ }
572
+ }
573
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
574
+ newValue = newValue === true ? "" : newValue;
575
+ {
576
+ elm.setAttribute(memberName, newValue);
577
+ }
578
+ }
579
+ }
580
+ };
581
+ var parseClassListRegex = /\s/;
582
+ var parseClassList = (value) => {
583
+ if (typeof value === "object" && value && "baseVal" in value) {
584
+ value = value.baseVal;
585
+ }
586
+ if (!value || typeof value !== "string") {
587
+ return [];
588
+ }
589
+ return value.split(parseClassListRegex);
590
+ };
591
+
592
+ // src/runtime/vdom/update-element.ts
593
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
594
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
595
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
596
+ const newVnodeAttrs = newVnode.$attrs$ || {};
597
+ {
598
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
599
+ if (!(memberName in newVnodeAttrs)) {
600
+ setAccessor(
601
+ elm,
602
+ memberName,
603
+ oldVnodeAttrs[memberName],
604
+ void 0,
605
+ isSvgMode2,
606
+ newVnode.$flags$);
607
+ }
608
+ }
609
+ }
610
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
611
+ setAccessor(
612
+ elm,
613
+ memberName,
614
+ oldVnodeAttrs[memberName],
615
+ newVnodeAttrs[memberName],
616
+ isSvgMode2,
617
+ newVnode.$flags$);
618
+ }
619
+ };
620
+ function sortedAttrNames(attrNames) {
621
+ return attrNames.includes("ref") ? (
622
+ // we need to sort these to ensure that `'ref'` is the last attr
623
+ [...attrNames.filter((attr) => attr !== "ref"), "ref"]
624
+ ) : (
625
+ // no need to sort, return the original array
626
+ attrNames
627
+ );
628
+ }
629
+ var hostTagName;
630
+ var useNativeShadowDom = false;
631
+ var isSvgMode = false;
632
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
633
+ const newVNode2 = newParentVNode.$children$[childIndex];
634
+ let i2 = 0;
635
+ let elm;
636
+ let childNode;
637
+ if (newVNode2.$text$ != null) {
638
+ elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
639
+ } else {
640
+ if (!win.document) {
641
+ throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
642
+ }
643
+ elm = newVNode2.$elm$ = win.document.createElement(
644
+ newVNode2.$tag$
645
+ );
646
+ {
647
+ updateElement(null, newVNode2, isSvgMode);
648
+ }
649
+ if (newVNode2.$children$) {
650
+ const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
651
+ for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
652
+ childNode = createElm(oldParentVNode, newVNode2, i2);
653
+ if (childNode) {
654
+ appendTarget.appendChild(childNode);
655
+ }
656
+ }
657
+ }
658
+ }
659
+ elm["s-hn"] = hostTagName;
660
+ return elm;
661
+ };
662
+ var relocateToHostRoot = (parentElm) => {
663
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
664
+ const host = parentElm.closest(hostTagName.toLowerCase());
665
+ if (host != null) {
666
+ const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
667
+ (ref) => ref["s-cr"]
668
+ );
669
+ const childNodeArray = Array.from(
670
+ parentElm.__childNodes || parentElm.childNodes
671
+ );
672
+ for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
673
+ if (childNode["s-sh"] != null) {
674
+ insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
675
+ childNode["s-sh"] = void 0;
676
+ }
677
+ }
678
+ }
679
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
680
+ };
681
+ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
682
+ let containerElm = parentElm;
683
+ let childNode;
684
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
685
+ containerElm = containerElm.shadowRoot;
686
+ }
687
+ if (parentVNode.$tag$ === "template") {
688
+ containerElm = containerElm.content;
689
+ }
690
+ for (; startIdx <= endIdx; ++startIdx) {
691
+ if (vnodes[startIdx]) {
692
+ childNode = createElm(null, parentVNode, startIdx);
693
+ if (childNode) {
694
+ vnodes[startIdx].$elm$ = childNode;
695
+ insertBefore(containerElm, childNode, before);
696
+ }
697
+ }
698
+ }
699
+ };
700
+ var removeVnodes = (vnodes, startIdx, endIdx) => {
701
+ for (let index = startIdx; index <= endIdx; ++index) {
702
+ const vnode = vnodes[index];
703
+ if (vnode) {
704
+ const elm = vnode.$elm$;
705
+ if (elm) {
706
+ elm.remove();
707
+ }
708
+ }
709
+ }
710
+ };
711
+ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
712
+ let oldStartIdx = 0;
713
+ let newStartIdx = 0;
714
+ let idxInOld = 0;
715
+ let i2 = 0;
716
+ let oldEndIdx = oldCh.length - 1;
717
+ let oldStartVnode = oldCh[0];
718
+ let oldEndVnode = oldCh[oldEndIdx];
719
+ let newEndIdx = newCh.length - 1;
720
+ let newStartVnode = newCh[0];
721
+ let newEndVnode = newCh[newEndIdx];
722
+ let node;
723
+ let elmToMove;
724
+ const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
725
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
726
+ if (oldStartVnode == null) {
727
+ oldStartVnode = oldCh[++oldStartIdx];
728
+ } else if (oldEndVnode == null) {
729
+ oldEndVnode = oldCh[--oldEndIdx];
730
+ } else if (newStartVnode == null) {
731
+ newStartVnode = newCh[++newStartIdx];
732
+ } else if (newEndVnode == null) {
733
+ newEndVnode = newCh[--newEndIdx];
734
+ } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
735
+ patch(oldStartVnode, newStartVnode, isInitialRender);
736
+ oldStartVnode = oldCh[++oldStartIdx];
737
+ newStartVnode = newCh[++newStartIdx];
738
+ } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
739
+ patch(oldEndVnode, newEndVnode, isInitialRender);
740
+ oldEndVnode = oldCh[--oldEndIdx];
741
+ newEndVnode = newCh[--newEndIdx];
742
+ } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
743
+ patch(oldStartVnode, newEndVnode, isInitialRender);
744
+ insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
745
+ oldStartVnode = oldCh[++oldStartIdx];
746
+ newEndVnode = newCh[--newEndIdx];
747
+ } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
748
+ patch(oldEndVnode, newStartVnode, isInitialRender);
749
+ insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
750
+ oldEndVnode = oldCh[--oldEndIdx];
751
+ newStartVnode = newCh[++newStartIdx];
752
+ } else {
753
+ idxInOld = -1;
754
+ {
755
+ for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
756
+ if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
757
+ idxInOld = i2;
758
+ break;
759
+ }
760
+ }
761
+ }
762
+ if (idxInOld >= 0) {
763
+ elmToMove = oldCh[idxInOld];
764
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
765
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
766
+ } else {
767
+ patch(elmToMove, newStartVnode, isInitialRender);
768
+ oldCh[idxInOld] = void 0;
769
+ node = elmToMove.$elm$;
770
+ }
771
+ newStartVnode = newCh[++newStartIdx];
772
+ } else {
773
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
774
+ newStartVnode = newCh[++newStartIdx];
775
+ }
776
+ if (node) {
777
+ {
778
+ insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
779
+ }
780
+ }
781
+ }
782
+ }
783
+ if (oldStartIdx > oldEndIdx) {
784
+ addVnodes(
785
+ parentElm,
786
+ newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
787
+ newVNode2,
788
+ newCh,
789
+ newStartIdx,
790
+ newEndIdx
791
+ );
792
+ } else if (newStartIdx > newEndIdx) {
793
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
794
+ }
795
+ };
796
+ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
797
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
798
+ if (!isInitialRender) {
799
+ return leftVNode.$key$ === rightVNode.$key$;
800
+ }
801
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
802
+ leftVNode.$key$ = rightVNode.$key$;
803
+ }
804
+ return true;
805
+ }
806
+ return false;
807
+ };
808
+ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
809
+ const elm = newVNode2.$elm$ = oldVNode.$elm$;
810
+ const oldChildren = oldVNode.$children$;
811
+ const newChildren = newVNode2.$children$;
812
+ const tag = newVNode2.$tag$;
813
+ const text = newVNode2.$text$;
814
+ if (text == null) {
815
+ {
816
+ if (tag === "slot" && !useNativeShadowDom) {
817
+ if (oldVNode.$name$ !== newVNode2.$name$) {
818
+ newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
819
+ relocateToHostRoot(newVNode2.$elm$.parentElement);
820
+ }
821
+ }
822
+ updateElement(oldVNode, newVNode2, isSvgMode);
823
+ }
824
+ if (oldChildren !== null && newChildren !== null) {
825
+ updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
826
+ } else if (newChildren !== null) {
827
+ if (oldVNode.$text$ !== null) {
828
+ elm.textContent = "";
829
+ }
830
+ addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
831
+ } else if (
832
+ // don't do this on initial render as it can cause non-hydrated content to be removed
833
+ !isInitialRender && BUILD.updatable && oldChildren !== null
834
+ ) {
835
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
836
+ } else ;
837
+ } else if (oldVNode.$text$ !== text) {
838
+ elm.data = text;
839
+ }
840
+ };
841
+ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
842
+ if (parent.__insertBefore) {
843
+ return parent.__insertBefore(newNode, reference);
844
+ } else {
845
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
846
+ }
847
+ };
848
+ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
849
+ const hostElm = hostRef.$hostElement$;
850
+ const cmpMeta = hostRef.$cmpMeta$;
851
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
852
+ const isHostElement = isHost(renderFnResults);
853
+ const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
854
+ hostTagName = hostElm.tagName;
855
+ if (cmpMeta.$attrsToReflect$) {
856
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
857
+ cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
858
+ {
859
+ rootVnode.$attrs$[attribute] = hostElm[propName];
860
+ }
861
+ });
862
+ }
863
+ if (isInitialLoad && rootVnode.$attrs$) {
864
+ for (const key of Object.keys(rootVnode.$attrs$)) {
865
+ if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
866
+ rootVnode.$attrs$[key] = hostElm[key];
867
+ }
868
+ }
869
+ }
870
+ rootVnode.$tag$ = null;
871
+ rootVnode.$flags$ |= 4 /* isHost */;
872
+ hostRef.$vnode$ = rootVnode;
873
+ rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
874
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
875
+ patch(oldVNode, rootVnode, isInitialLoad);
876
+ };
877
+
878
+ // src/runtime/update-component.ts
879
+ var attachToAncestor = (hostRef, ancestorComponent) => {
880
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
881
+ const index = ancestorComponent["s-p"].push(
882
+ new Promise(
883
+ (r) => hostRef.$onRenderResolve$ = () => {
884
+ ancestorComponent["s-p"].splice(index - 1, 1);
885
+ r();
886
+ }
887
+ )
888
+ );
889
+ }
890
+ };
891
+ var scheduleUpdate = (hostRef, isInitialLoad) => {
892
+ {
893
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
894
+ }
895
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
896
+ hostRef.$flags$ |= 512 /* needsRerender */;
897
+ return;
898
+ }
899
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
900
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
901
+ if (isInitialLoad) {
902
+ queueMicrotask(() => {
903
+ dispatch();
904
+ });
905
+ return;
906
+ }
907
+ return writeTask(dispatch) ;
908
+ };
909
+ var dispatchHooks = (hostRef, isInitialLoad) => {
910
+ const elm = hostRef.$hostElement$;
911
+ const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
912
+ const instance = hostRef.$lazyInstance$ ;
913
+ if (!instance) {
914
+ throw new Error(
915
+ `Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
916
+ );
917
+ }
918
+ let maybePromise;
919
+ if (isInitialLoad) {
920
+ {
921
+ if (hostRef.$fetchedCbList$.length) {
922
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
923
+ }
924
+ }
925
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
926
+ } else {
927
+ maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
928
+ }
929
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
930
+ endSchedule();
931
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
932
+ };
933
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
934
+ console.error(err);
935
+ fn();
936
+ }) : fn();
937
+ var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
938
+ var updateComponent = async (hostRef, instance, isInitialLoad) => {
939
+ var _a;
940
+ const elm = hostRef.$hostElement$;
941
+ const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
942
+ const rc = elm["s-rc"];
943
+ if (isInitialLoad) {
944
+ attachStyles(hostRef);
945
+ }
946
+ const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
947
+ {
948
+ callRender(hostRef, instance, elm, isInitialLoad);
949
+ }
950
+ if (rc) {
951
+ rc.map((cb) => cb());
952
+ elm["s-rc"] = void 0;
953
+ }
954
+ endRender();
955
+ endUpdate();
956
+ {
957
+ const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
958
+ const postUpdate = () => postUpdateComponent(hostRef);
959
+ if (childrenPromises.length === 0) {
960
+ postUpdate();
961
+ } else {
962
+ Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
963
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
964
+ childrenPromises.length = 0;
965
+ }
966
+ }
967
+ };
968
+ var callRender = (hostRef, instance, elm, isInitialLoad) => {
969
+ try {
970
+ instance = instance.render() ;
971
+ {
972
+ hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
973
+ }
974
+ {
975
+ hostRef.$flags$ |= 2 /* hasRendered */;
976
+ }
977
+ {
978
+ {
979
+ {
980
+ renderVdom(hostRef, instance, isInitialLoad);
981
+ }
982
+ }
983
+ }
984
+ } catch (e) {
985
+ consoleError(e, hostRef.$hostElement$);
986
+ }
987
+ return null;
988
+ };
989
+ var postUpdateComponent = (hostRef) => {
990
+ const tagName = hostRef.$cmpMeta$.$tagName$;
991
+ const elm = hostRef.$hostElement$;
992
+ const endPostUpdate = createTime("postUpdate", tagName);
993
+ const instance = hostRef.$lazyInstance$ ;
994
+ const ancestorComponent = hostRef.$ancestorComponent$;
995
+ safeCall(instance, "componentDidRender", void 0, elm);
996
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
997
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
998
+ {
999
+ addHydratedFlag(elm);
1000
+ }
1001
+ safeCall(instance, "componentDidLoad", void 0, elm);
1002
+ endPostUpdate();
1003
+ {
1004
+ hostRef.$onReadyResolve$(elm);
1005
+ if (!ancestorComponent) {
1006
+ appDidLoad();
1007
+ }
1008
+ }
1009
+ } else {
1010
+ safeCall(instance, "componentDidUpdate", void 0, elm);
1011
+ endPostUpdate();
1012
+ }
1013
+ {
1014
+ if (hostRef.$onRenderResolve$) {
1015
+ hostRef.$onRenderResolve$();
1016
+ hostRef.$onRenderResolve$ = void 0;
1017
+ }
1018
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
1019
+ nextTick(() => scheduleUpdate(hostRef, false));
1020
+ }
1021
+ hostRef.$flags$ &= -517;
1022
+ }
1023
+ };
1024
+ var appDidLoad = (who) => {
1025
+ nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1026
+ };
1027
+ var safeCall = (instance, method, arg, elm) => {
1028
+ if (instance && instance[method]) {
1029
+ try {
1030
+ return instance[method](arg);
1031
+ } catch (e) {
1032
+ consoleError(e, elm);
1033
+ }
1034
+ }
1035
+ return void 0;
1036
+ };
1037
+ var addHydratedFlag = (elm) => {
1038
+ var _a;
1039
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
1040
+ };
1041
+
1042
+ // src/runtime/set-value.ts
1043
+ var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1044
+ var setValue = (ref, propName, newVal, cmpMeta) => {
1045
+ const hostRef = getHostRef(ref);
1046
+ if (!hostRef) {
1047
+ return;
1048
+ }
1049
+ if (!hostRef) {
1050
+ throw new Error(
1051
+ `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).`
1052
+ );
1053
+ }
1054
+ const elm = hostRef.$hostElement$ ;
1055
+ const oldVal = hostRef.$instanceValues$.get(propName);
1056
+ const flags = hostRef.$flags$;
1057
+ const instance = hostRef.$lazyInstance$ ;
1058
+ newVal = parsePropertyValue(
1059
+ newVal,
1060
+ cmpMeta.$members$[propName][0]);
1061
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1062
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1063
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1064
+ hostRef.$instanceValues$.set(propName, newVal);
1065
+ if (cmpMeta.$watchers$) {
1066
+ const watchMethods = cmpMeta.$watchers$[propName];
1067
+ if (watchMethods) {
1068
+ watchMethods.map((watcher) => {
1069
+ try {
1070
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
1071
+ if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
1072
+ if (!instance) {
1073
+ hostRef.$fetchedCbList$.push(() => {
1074
+ hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
1075
+ });
1076
+ } else {
1077
+ instance[watchMethodName](newVal, oldVal, propName);
1078
+ }
1079
+ }
1080
+ } catch (e) {
1081
+ consoleError(e, elm);
1082
+ }
1083
+ });
1084
+ }
1085
+ }
1086
+ if (flags & 2 /* hasRendered */) {
1087
+ if (instance.componentShouldUpdate) {
1088
+ const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
1089
+ if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
1090
+ return;
1091
+ }
1092
+ }
1093
+ if (!(flags & 16 /* isQueuedForUpdate */)) {
1094
+ scheduleUpdate(hostRef, false);
1095
+ }
1096
+ }
1097
+ }
1098
+ };
1099
+
1100
+ // src/runtime/proxy-component.ts
1101
+ var proxyComponent = (Cstr, cmpMeta, flags) => {
1102
+ var _a, _b;
1103
+ const prototype = Cstr.prototype;
1104
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1105
+ {
1106
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
1107
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
1108
+ }
1109
+ if (Cstr.deserializers && !cmpMeta.$deserializers$) {
1110
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1111
+ }
1112
+ if (Cstr.serializers && !cmpMeta.$serializers$) {
1113
+ cmpMeta.$serializers$ = Cstr.serializers;
1114
+ }
1115
+ }
1116
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1117
+ members.map(([memberName, [memberFlags]]) => {
1118
+ if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1119
+ const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
1120
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1121
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1122
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
1123
+ Object.defineProperty(prototype, memberName, {
1124
+ get() {
1125
+ {
1126
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1127
+ return getValue(this, memberName);
1128
+ }
1129
+ const ref = getHostRef(this);
1130
+ const instance = ref ? ref.$lazyInstance$ : prototype;
1131
+ if (!instance) return;
1132
+ return instance[memberName];
1133
+ }
1134
+ },
1135
+ configurable: true,
1136
+ enumerable: true
1137
+ });
1138
+ }
1139
+ Object.defineProperty(prototype, memberName, {
1140
+ set(newValue) {
1141
+ const ref = getHostRef(this);
1142
+ if (!ref) {
1143
+ return;
1144
+ }
1145
+ if (origSetter) {
1146
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1147
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1148
+ newValue = ref.$instanceValues$.get(memberName);
1149
+ }
1150
+ origSetter.apply(this, [
1151
+ parsePropertyValue(
1152
+ newValue,
1153
+ memberFlags)
1154
+ ]);
1155
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1156
+ setValue(this, memberName, newValue, cmpMeta);
1157
+ return;
1158
+ }
1159
+ {
1160
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1161
+ setValue(this, memberName, newValue, cmpMeta);
1162
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1163
+ ref.$fetchedCbList$.push(() => {
1164
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1165
+ ref.$lazyInstance$[memberName] = newValue;
1166
+ }
1167
+ });
1168
+ }
1169
+ return;
1170
+ }
1171
+ const setterSetVal = () => {
1172
+ const currentValue = ref.$lazyInstance$[memberName];
1173
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1174
+ ref.$instanceValues$.set(memberName, currentValue);
1175
+ }
1176
+ ref.$lazyInstance$[memberName] = parsePropertyValue(
1177
+ newValue,
1178
+ memberFlags);
1179
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1180
+ };
1181
+ if (ref.$lazyInstance$) {
1182
+ setterSetVal();
1183
+ } else {
1184
+ ref.$fetchedCbList$.push(() => {
1185
+ setterSetVal();
1186
+ });
1187
+ }
1188
+ }
1189
+ }
1190
+ });
1191
+ }
1192
+ });
1193
+ if ((flags & 1 /* isElementConstructor */)) {
1194
+ const attrNameToPropName = /* @__PURE__ */ new Map();
1195
+ prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
1196
+ plt.jmp(() => {
1197
+ var _a2;
1198
+ const propName = attrNameToPropName.get(attrName);
1199
+ const hostRef = getHostRef(this);
1200
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1201
+ newValue = this[propName];
1202
+ delete this[propName];
1203
+ }
1204
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1205
+ this[propName] == newValue) {
1206
+ return;
1207
+ } else if (propName == null) {
1208
+ const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1209
+ if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
1210
+ const instance = hostRef.$lazyInstance$ ;
1211
+ const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1212
+ entry == null ? void 0 : entry.forEach((watcher) => {
1213
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
1214
+ if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
1215
+ instance[watchMethodName].call(instance, newValue, oldValue, attrName);
1216
+ }
1217
+ });
1218
+ }
1219
+ return;
1220
+ }
1221
+ const propFlags = members.find(([m]) => m === propName);
1222
+ const isBooleanTarget = propFlags && propFlags[1][0] & 4 /* Boolean */;
1223
+ const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
1224
+ if (isBooleanTarget) {
1225
+ newValue = newValue === null || newValue === "false" ? false : true;
1226
+ }
1227
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1228
+ if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1229
+ this[propName] = newValue;
1230
+ }
1231
+ });
1232
+ };
1233
+ Cstr.observedAttributes = Array.from(
1234
+ /* @__PURE__ */ new Set([
1235
+ ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1236
+ ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
1237
+ var _a2;
1238
+ const attrName = m[1] || propName;
1239
+ attrNameToPropName.set(attrName, propName);
1240
+ if (m[0] & 512 /* ReflectAttr */) {
1241
+ (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
1242
+ }
1243
+ return attrName;
1244
+ })
1245
+ ])
1246
+ );
1247
+ }
1248
+ }
1249
+ return Cstr;
1250
+ };
1251
+
1252
+ // src/runtime/initialize-component.ts
1253
+ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1254
+ var _a;
1255
+ let Cstr;
1256
+ try {
1257
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1258
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1259
+ hostRef.$flags$ &= -1025 /* hasFailedLoad */;
1260
+ const bundleId = cmpMeta.$lazyBundleId$;
1261
+ if (bundleId) {
1262
+ const CstrImport = loadModule(cmpMeta, hostRef);
1263
+ if (CstrImport && "then" in CstrImport) {
1264
+ const endLoad = uniqueTime();
1265
+ Cstr = await CstrImport;
1266
+ endLoad();
1267
+ } else {
1268
+ Cstr = CstrImport;
1269
+ }
1270
+ if (!Cstr) {
1271
+ hostRef.$flags$ &= -33 /* hasInitializedComponent */;
1272
+ hostRef.$loadRetryCount$ = ((_a = hostRef.$loadRetryCount$) != null ? _a : 0) + 1;
1273
+ if (hostRef.$loadRetryCount$ < MAX_LAZY_LOAD_RETRIES) {
1274
+ hostRef.$flags$ |= 1024 /* hasFailedLoad */;
1275
+ }
1276
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1277
+ }
1278
+ if (!Cstr.isProxied) {
1279
+ {
1280
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
1281
+ cmpMeta.$serializers$ = Cstr.serializers;
1282
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1283
+ }
1284
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1285
+ Cstr.isProxied = true;
1286
+ }
1287
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
1288
+ {
1289
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
1290
+ }
1291
+ try {
1292
+ new Cstr(hostRef);
1293
+ } catch (e) {
1294
+ consoleError(e, elm);
1295
+ }
1296
+ {
1297
+ hostRef.$flags$ &= -9 /* isConstructingInstance */;
1298
+ }
1299
+ {
1300
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1301
+ }
1302
+ endNewInstance();
1303
+ {
1304
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1305
+ }
1306
+ } else {
1307
+ Cstr = elm.constructor;
1308
+ const cmpTag = elm.localName;
1309
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1310
+ }
1311
+ if (Cstr && Cstr.style) {
1312
+ let style;
1313
+ if (typeof Cstr.style === "string") {
1314
+ style = Cstr.style;
1315
+ }
1316
+ const scopeId2 = getScopeId(cmpMeta);
1317
+ if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
1318
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
1319
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1320
+ endRegisterStyles();
1321
+ }
1322
+ }
1323
+ }
1324
+ const ancestorComponent = hostRef.$ancestorComponent$;
1325
+ const schedule = () => scheduleUpdate(hostRef, true);
1326
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
1327
+ ancestorComponent["s-rc"].push(schedule);
1328
+ } else {
1329
+ schedule();
1330
+ }
1331
+ } catch (e) {
1332
+ consoleError(e, elm);
1333
+ if (hostRef.$onRenderResolve$) {
1334
+ hostRef.$onRenderResolve$();
1335
+ hostRef.$onRenderResolve$ = void 0;
1336
+ }
1337
+ if (hostRef.$onReadyResolve$ && !(hostRef.$flags$ & 1024 /* hasFailedLoad */)) {
1338
+ hostRef.$onReadyResolve$(elm);
1339
+ }
1340
+ }
1341
+ };
1342
+ var fireConnectedCallback = (instance, elm) => {
1343
+ {
1344
+ safeCall(instance, "connectedCallback", void 0, elm);
1345
+ }
1346
+ };
1347
+
1348
+ // src/runtime/connected-callback.ts
1349
+ var connectedCallback = (elm) => {
1350
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1351
+ const hostRef = getHostRef(elm);
1352
+ if (!hostRef) {
1353
+ return;
1354
+ }
1355
+ const cmpMeta = hostRef.$cmpMeta$;
1356
+ const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1357
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1358
+ hostRef.$flags$ |= 1 /* hasConnected */;
1359
+ {
1360
+ let ancestorComponent = elm;
1361
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
1362
+ if (ancestorComponent["s-p"]) {
1363
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
1364
+ break;
1365
+ }
1366
+ }
1367
+ }
1368
+ if (cmpMeta.$members$) {
1369
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1370
+ if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
1371
+ const value = elm[memberName];
1372
+ delete elm[memberName];
1373
+ elm[memberName] = value;
1374
+ }
1375
+ });
1376
+ }
1377
+ {
1378
+ initializeComponent(elm, hostRef, cmpMeta);
1379
+ }
1380
+ } else {
1381
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1382
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1383
+ } else if (hostRef.$flags$ & 1024 /* hasFailedLoad */) {
1384
+ setTimeout(() => initializeComponent(elm, hostRef, cmpMeta), LAZY_LOAD_RETRY_INTERVAL_MS);
1385
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1386
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1387
+ }
1388
+ }
1389
+ endConnected();
1390
+ }
1391
+ };
1392
+ var disconnectInstance = (instance, elm) => {
1393
+ {
1394
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1395
+ }
1396
+ };
1397
+ var disconnectedCallback = async (elm) => {
1398
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1399
+ const hostRef = getHostRef(elm);
1400
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1401
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1402
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1403
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1404
+ }
1405
+ }
1406
+ if (rootAppliedStyles.has(elm)) {
1407
+ rootAppliedStyles.delete(elm);
1408
+ }
1409
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1410
+ rootAppliedStyles.delete(elm.shadowRoot);
1411
+ }
1412
+ };
1413
+
1414
+ // src/runtime/bootstrap-lazy.ts
1415
+ var bootstrapLazy = (lazyBundles, options = {}) => {
1416
+ var _a;
1417
+ if (!win.document) {
1418
+ console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
1419
+ return;
1420
+ }
1421
+ const endBootstrap = createTime();
1422
+ const cmpTags = [];
1423
+ const exclude = options.exclude || [];
1424
+ const customElements2 = win.customElements;
1425
+ const head = win.document.head;
1426
+ const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
1427
+ const dataStyles = /* @__PURE__ */ win.document.createElement("style");
1428
+ const deferredConnectedCallbacks = [];
1429
+ let appLoadFallback;
1430
+ let isBootstrapping = true;
1431
+ Object.assign(plt, options);
1432
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
1433
+ lazyBundles.map((lazyBundle) => {
1434
+ lazyBundle[1].map((compactMeta) => {
1435
+ var _a2, _b;
1436
+ const cmpMeta = {
1437
+ $flags$: compactMeta[0],
1438
+ $tagName$: compactMeta[1],
1439
+ $members$: compactMeta[2],
1440
+ $listeners$: compactMeta[3]
1441
+ };
1442
+ {
1443
+ cmpMeta.$members$ = compactMeta[2];
1444
+ }
1445
+ {
1446
+ cmpMeta.$attrsToReflect$ = [];
1447
+ }
1448
+ {
1449
+ cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);
1450
+ cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};
1451
+ cmpMeta.$deserializers$ = (_b = compactMeta[6]) != null ? _b : {};
1452
+ }
1453
+ const tagName = transformTag(cmpMeta.$tagName$);
1454
+ const HostElement = class extends HTMLElement {
1455
+ ["s-p"];
1456
+ ["s-rc"];
1457
+ hasRegisteredEventListeners = false;
1458
+ // StencilLazyHost
1459
+ constructor(self) {
1460
+ super(self);
1461
+ self = this;
1462
+ registerHost(self, cmpMeta);
1463
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1464
+ {
1465
+ if (!self.shadowRoot) {
1466
+ createShadowRoot.call(self, cmpMeta);
1467
+ } else {
1468
+ if (self.shadowRoot.mode !== "open") {
1469
+ throw new Error(
1470
+ `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
1471
+ );
1472
+ }
1473
+ }
1474
+ }
1475
+ }
1476
+ }
1477
+ connectedCallback() {
1478
+ const hostRef = getHostRef(this);
1479
+ if (!hostRef) {
1480
+ return;
1481
+ }
1482
+ if (!this.hasRegisteredEventListeners) {
1483
+ this.hasRegisteredEventListeners = true;
1484
+ }
1485
+ if (appLoadFallback) {
1486
+ clearTimeout(appLoadFallback);
1487
+ appLoadFallback = null;
1488
+ }
1489
+ if (isBootstrapping) {
1490
+ deferredConnectedCallbacks.push(this);
1491
+ } else {
1492
+ plt.jmp(() => connectedCallback(this));
1493
+ }
1494
+ }
1495
+ disconnectedCallback() {
1496
+ plt.jmp(() => disconnectedCallback(this));
1497
+ nextTick(() => {
1498
+ var _a3;
1499
+ const hostRef = getHostRef(this);
1500
+ if (!hostRef) {
1501
+ return;
1502
+ }
1503
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1504
+ if (i2 > -1) {
1505
+ deferredConnectedCallbacks.splice(i2, 1);
1506
+ }
1507
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1508
+ delete hostRef.$vnode$.$elm$;
1509
+ }
1510
+ });
1511
+ }
1512
+ componentOnReady() {
1513
+ var _a3;
1514
+ return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
1515
+ }
1516
+ };
1517
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1518
+ if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
1519
+ cmpTags.push(tagName);
1520
+ customElements2.define(
1521
+ tagName,
1522
+ proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
1523
+ );
1524
+ }
1525
+ });
1526
+ });
1527
+ if (cmpTags.length > 0) {
1528
+ {
1529
+ dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
1530
+ }
1531
+ if (dataStyles.innerHTML.length) {
1532
+ dataStyles.setAttribute("data-styles", "");
1533
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1534
+ if (nonce != null) {
1535
+ dataStyles.setAttribute("nonce", nonce);
1536
+ }
1537
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1538
+ }
1539
+ }
1540
+ isBootstrapping = false;
1541
+ if (deferredConnectedCallbacks.length) {
1542
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1543
+ } else {
1544
+ {
1545
+ plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
1546
+ }
1547
+ }
1548
+ endBootstrap();
1549
+ };
1550
+
1551
+ // src/runtime/nonce.ts
1552
+ var setNonce = (nonce) => plt.$nonce$ = nonce;
1553
+ function transformTag(tag) {
1554
+ return tag;
1555
+ }
1556
+
1557
+ export { getElement as a, bootstrapLazy as b, globalScripts as g, h, promiseResolve as p, registerInstance as r, setNonce as s };