@vanelsas/baredom 3.11.0 → 3.12.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 (115) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/custom-elements.json +10694 -10660
  3. package/dist/baredom.d.ts +93 -93
  4. package/dist/base.js +598 -598
  5. package/dist/integrity.json +111 -111
  6. package/dist/x-alert.js +16 -16
  7. package/dist/x-avatar-group.js +9 -9
  8. package/dist/x-avatar.js +14 -14
  9. package/dist/x-badge.js +8 -8
  10. package/dist/x-bento-grid.js +5 -5
  11. package/dist/x-bento-item.js +4 -4
  12. package/dist/x-breadcrumbs.js +13 -13
  13. package/dist/x-button.js +1 -1
  14. package/dist/x-calendar.js +34 -34
  15. package/dist/x-cancel-dialogue.js +12 -12
  16. package/dist/x-card.js +7 -7
  17. package/dist/x-carousel.js +31 -31
  18. package/dist/x-chart.js +44 -44
  19. package/dist/x-checkbox.js +1 -1
  20. package/dist/x-chip.js +1 -1
  21. package/dist/x-code.js +27 -27
  22. package/dist/x-collapse.js +8 -8
  23. package/dist/x-color-picker.js +34 -34
  24. package/dist/x-combobox.js +31 -31
  25. package/dist/x-command-palette.js +27 -27
  26. package/dist/x-confetti.js +23 -23
  27. package/dist/x-container.js +4 -4
  28. package/dist/x-context-menu.js +19 -19
  29. package/dist/x-copy.js +1 -1
  30. package/dist/x-currency-field.js +21 -21
  31. package/dist/x-date-picker.js +34 -34
  32. package/dist/x-divider.js +9 -9
  33. package/dist/x-drag-panel.js +31 -31
  34. package/dist/x-drawer.js +9 -9
  35. package/dist/x-drop-zone.js +11 -11
  36. package/dist/x-dropdown.js +12 -12
  37. package/dist/x-fieldset.js +5 -5
  38. package/dist/x-file-download.d.ts +4 -0
  39. package/dist/x-file-download.js +14 -6
  40. package/dist/x-file-upload.js +23 -23
  41. package/dist/x-floating-panel.js +21 -21
  42. package/dist/x-form-field.js +14 -14
  43. package/dist/x-form.js +10 -10
  44. package/dist/x-gaussian-blur.js +11 -11
  45. package/dist/x-grid.js +6 -6
  46. package/dist/x-i18n-provider.js +7 -7
  47. package/dist/x-i18n.js +4 -4
  48. package/dist/x-icon.js +7 -7
  49. package/dist/x-image.js +16 -16
  50. package/dist/x-kbd.js +11 -11
  51. package/dist/x-kinetic-canvas.js +24 -24
  52. package/dist/x-kinetic-font.js +22 -22
  53. package/dist/x-kinetic-typography.js +29 -29
  54. package/dist/x-liquid-dock.js +29 -29
  55. package/dist/x-liquid-fill.js +38 -38
  56. package/dist/x-liquid-glass.js +25 -25
  57. package/dist/x-menu-item.js +8 -8
  58. package/dist/x-menu.js +8 -8
  59. package/dist/x-metaball-cursor.js +18 -18
  60. package/dist/x-modal.js +10 -10
  61. package/dist/x-morph-stack.js +37 -37
  62. package/dist/x-multi-combobox.js +37 -37
  63. package/dist/x-navbar.js +13 -13
  64. package/dist/x-neural-glow.js +21 -21
  65. package/dist/x-notification-center.js +9 -9
  66. package/dist/x-organic-divider.js +15 -15
  67. package/dist/x-organic-progress.js +32 -32
  68. package/dist/x-organic-shape.js +7 -7
  69. package/dist/x-otp-input.js +20 -20
  70. package/dist/x-pagination.js +11 -11
  71. package/dist/x-particle-button.js +39 -39
  72. package/dist/x-popover.js +24 -24
  73. package/dist/x-progress-circle.js +6 -6
  74. package/dist/x-progress.js +6 -6
  75. package/dist/x-proximity-list.js +20 -20
  76. package/dist/x-radio.js +12 -12
  77. package/dist/x-range-slider.js +27 -27
  78. package/dist/x-rating.js +22 -22
  79. package/dist/x-ripple-effect.js +8 -8
  80. package/dist/x-scroll-parallax.js +17 -17
  81. package/dist/x-scroll-stack.js +15 -15
  82. package/dist/x-scroll-story.js +30 -30
  83. package/dist/x-scroll-timeline.js +45 -45
  84. package/dist/x-scroll.js +34 -34
  85. package/dist/x-search-field.js +1 -1
  86. package/dist/x-select.js +1 -1
  87. package/dist/x-sidebar.js +15 -15
  88. package/dist/x-skeleton-group.js +12 -12
  89. package/dist/x-skeleton.js +1 -1
  90. package/dist/x-slider.js +16 -16
  91. package/dist/x-soft-body.js +16 -16
  92. package/dist/x-spacer.js +4 -4
  93. package/dist/x-spinner.js +4 -4
  94. package/dist/x-splash.js +11 -11
  95. package/dist/x-split-pane.js +14 -14
  96. package/dist/x-spotlight-card.js +11 -11
  97. package/dist/x-stat.js +8 -8
  98. package/dist/x-stepper.js +13 -13
  99. package/dist/x-switch.js +11 -11
  100. package/dist/x-tab.js +6 -6
  101. package/dist/x-table-cell.js +17 -17
  102. package/dist/x-table-row.js +8 -8
  103. package/dist/x-table.js +12 -12
  104. package/dist/x-tabs.js +11 -11
  105. package/dist/x-text-area.js +18 -18
  106. package/dist/x-theme.js +24 -24
  107. package/dist/x-timeline-item.js +18 -18
  108. package/dist/x-timeline.js +8 -8
  109. package/dist/x-toast.js +20 -20
  110. package/dist/x-toaster.js +6 -6
  111. package/dist/x-tooltip.js +11 -11
  112. package/dist/x-trace-history.js +112 -112
  113. package/dist/x-typography.js +5 -5
  114. package/dist/x-welcome-tour.js +57 -57
  115. package/package.json +1 -1
package/dist/x-theme.js CHANGED
@@ -1,26 +1,26 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var qia=function(a,b){var c=AQ.i(BQ),d=CQ.i(BQ),e=b.light,f=b.dark;b=$APP.Ng($APP.Dc([c,$APP.n(e)?$APP.Ff.j($APP.je,function(){return function m(k){return new $APP.Hd(null,function(){for(;;){var r=$APP.q(k);if(r){if($APP.Zc(r)){var u=$APP.Eb(r),x=$APP.w(u),y=$APP.Kd(x);a:{for(var B=0;;)if(B<x){var E=$APP.Ic(u,B);y.add(new $APP.J(null,2,5,$APP.K,[E,$APP.l(e,E)],null));B+=1}else{u=!0;break a}u=void 0}return u?$APP.Nd(y.ea(),m($APP.Fb(r))):$APP.Nd(y.ea(),null)}y=$APP.t(r);return $APP.Ed(new $APP.J(null,
3
- 2,5,$APP.K,[y,$APP.l(e,y)],null),m($APP.fc(r)))}return null}},null)}(Object.keys(e))}()):null]));d=$APP.Ng($APP.Dc([d,$APP.n(f)?$APP.Ff.j($APP.je,function(){return function m(k){return new $APP.Hd(null,function(){for(;;){var r=$APP.q(k);if(r){if($APP.Zc(r)){var u=$APP.Eb(r),x=$APP.w(u),y=$APP.Kd(x);a:{for(var B=0;;)if(B<x){var E=$APP.Ic(u,B);y.add(new $APP.J(null,2,5,$APP.K,[E,$APP.l(f,E)],null));B+=1}else{u=!0;break a}u=void 0}return u?$APP.Nd(y.ea(),m($APP.Fb(r))):$APP.Nd(y.ea(),null)}y=$APP.t(r);
4
- return $APP.Ed(new $APP.J(null,2,5,$APP.K,[y,$APP.l(f,y)],null),m($APP.fc(r)))}return null}},null)}(Object.keys(f))}()):null]));return $APP.ka(DQ,a,new $APP.M(null,2,[AQ,b,CQ,d],null))},EQ=function(a){var b=[];a=$APP.q(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.C(null,e),h=$APP.A(f,0,null);f=$APP.A(f,1,null);b.push(""+$APP.P.i(h)+":"+$APP.P.i(f)+";");e+=1}else if(a=$APP.q(a))$APP.Zc(a)?(d=$APP.Eb(a),a=$APP.Fb(a),c=d,d=$APP.w(d)):(d=$APP.t(a),c=$APP.A(d,0,null),d=$APP.A(d,1,null),b.push(""+$APP.P.i(c)+
5
- ":"+$APP.P.i(d)+";"),a=$APP.v(a),c=null,d=0),e=0;else break;return b.join("")},FQ=function(a){var b=new $APP.M(null,1,[$APP.Zs,a.getAttribute("preset")],null);if($APP.I($APP.l(a,"__xThemeModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Zs),d=$APP.l(a,"__xThemeRefs");if($APP.n(d)){d=d.style;c=typeof c!=="string"||!$APP.cd(ria,c)&&$APP.l(DQ,c)==null?"default":c;var e=$APP.l(DQ,c);$APP.n(e)||(c=$APP.C(sia,c),e=$APP.n(c)?c:BQ);c=AQ.i(e);e=CQ.i(e);c=":host{display:contents;"+$APP.P.i(EQ(c))+"}@media(prefers-color-scheme:dark){:host{"+
6
- $APP.P.i(EQ(e))+"}}";d.textContent=c;a=$APP.Q(a,"__xThemeModel",b)}else a=null}else a=null;return a},tia=function(a){if(!$APP.n($APP.l(a,"__xThemeRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xThemeRefs",{style:c})}return FQ(a)},uia=function(){return null},via=function(a,b,c,d){return $APP.I(c,d)?FQ(a):null},wia=function(a){return $APP.nj(a,"preset","preset")},GQ=function(a,b){return qia(a,
7
- b)},HQ=function(){return $APP.ri("x-theme",new $APP.M(null,5,[$APP.ii,xia,$APP.gi,tia,$APP.di,uia,$APP.ci,via,$APP.hi,wia],null))},AQ=new $APP.F(null,"light","light",1918998747),CQ=new $APP.F(null,"dark","dark",1818973999);var xia=["preset"],IQ=$APP.vg("--x-font-weight-semibold --x-font-size-base --x-font-size-lg --x-font-weight-medium --x-font-family-mono --x-font-size-sm --x-line-height-normal --x-font-family --x-font-size-xs --x-font-weight-normal".split(" "),"600;1rem;1.125rem;500;ui-monospace,'SF Mono',monospace;0.875rem;1.5;system-ui,-apple-system,sans-serif;0.75rem;400".split(";")),JQ=$APP.ie("--x-radius-sm 0.375rem --x-radius-md 0.75rem --x-radius-lg 1rem --x-radius-full 9999px --x-border-width 1px".split(" ")),
8
- KQ=$APP.ie(["--x-transition-duration","140ms","--x-transition-easing","cubic-bezier(0.2,0,0,1)"]),LQ=$APP.ie("--x-space-xs 0.25rem --x-space-sm 0.5rem --x-space-md 0.75rem --x-space-lg 1rem --x-space-xl 1.5rem".split(" ")),MQ=$APP.ie("--x-z-dropdown 1000 --x-z-modal 1100 --x-z-toast 1200".split(" ")),NQ=$APP.ie(["--x-opacity-disabled","0.5","--x-opacity-placeholder","0.6"]),OQ=$APP.ie("--x-shadow-sm;0 1px 2px rgba(15,23,42,0.08);--x-shadow-md;0 4px 10px rgba(15,23,42,0.10),0 2px 4px rgba(15,23,42,0.06);--x-shadow-lg;0 10px 25px rgba(15,23,42,0.12),0 4px 10px rgba(15,23,42,0.08)".split(";")),
9
- PQ=$APP.ie("--x-shadow-sm;0 1px 2px rgba(0,0,0,0.35);--x-shadow-md;0 6px 14px rgba(0,0,0,0.35),0 2px 6px rgba(0,0,0,0.24);--x-shadow-lg;0 12px 30px rgba(0,0,0,0.40),0 4px 12px rgba(0,0,0,0.30)".split(";")),BQ=new $APP.M(null,2,[AQ,$APP.Ng($APP.Dc([IQ,JQ,KQ,OQ,LQ,MQ,NQ,$APP.vg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
10
- "#ffffff #64748b #16a34a #64748b #d97706 #1e40af #cbd5e1 #f8fafc #dc2626 #334155 #475569 #475569 #f1f5f9 #60a5fa #2563eb #f8fafc #0f172a #64748b #1d4ed8 #94a3b8".split(" "))])),CQ,$APP.Ng($APP.Dc([PQ,$APP.vg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
11
- "#111827 #94a3b8 #22c55e #94a3b8 #f59e0b #1d4ed8 #374151 #1f2937 #ef4444 #475569 #64748b #64748b #273449 #93c5fd #3b82f6 #0f172a #f1f5f9 #94a3b8 #2563eb #64748b".split(" "))]))],null),yia=new $APP.M(null,2,[AQ,$APP.Ng($APP.Dc([IQ,JQ,KQ,OQ,LQ,MQ,NQ,$APP.vg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
12
- "#ffffff #5f7a7a #059669 #2dd4bf #d97706 #155e75 #99f6e4 #f0fdfa #e11d48 #115e59 #0f766e #14b8a6 #ccfbf1 #22d3ee #0891b2 #f0fdfa #134e4a #0d9488 #0e7490 #5eead4".split(" "))])),CQ,$APP.Ng($APP.Dc([PQ,$APP.vg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
13
- "#0c1a1f #5eead4 #34d399 #5eead4 #fbbf24 #0e7490 #164e63 #133e4a #fb7185 #0f766e #0d9488 #2dd4bf #164e5e #67e8f9 #06b6d4 #061216 #ecfdf5 #14b8a6 #0891b2 #2dd4bf".split(" "))]))],null),zia=new $APP.M(null,2,[AQ,$APP.Ng($APP.Dc([IQ,JQ,KQ,OQ,LQ,MQ,NQ,$APP.vg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
14
- "#fffbeb #65753a #15803d #84cc16 #ca8a04 #14532d #d9d2b0 #fef9c3 #dc2626 #3f6212 #4d7c0f #65a30d #fef3c7 #4ade80 #15803d #fefce8 #1a2e05 #65a30d #166534 #a3e635".split(" "))])),CQ,$APP.Ng($APP.Dc([PQ,$APP.vg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
15
- "#1a1f12 #86efac #4ade80 #bef264 #fbbf24 #15803d #3a4a24 #2a3318 #f87171 #4d7c0f #65a30d #a3e635 #354020 #86efac #22c55e #111408 #f0fdf4 #84cc16 #16a34a #a3e635".split(" "))]))],null),Aia=new $APP.M(null,2,[AQ,$APP.Ng($APP.Dc([IQ,JQ,KQ,OQ,LQ,MQ,NQ,$APP.vg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
16
- "#ffffff #9a7b6b #16a34a #f97316 #ca8a04 #9a3412 #fed7aa #fff7ed #be123c #9f1239 #be123c #ea580c #ffedd5 #fb923c #ea580c #fffbf5 #431407 #e11d48 #c2410c #fb923c".split(" "))])),CQ,$APP.Ng($APP.Dc([PQ,$APP.vg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
17
- "#1c1210 #fdba74 #4ade80 #fb923c #fbbf24 #c2410c #4a2d1f #2a1c17 #fb7185 #e11d48 #f43f5e #f97316 #3d261d #fdba74 #f97316 #140d0a #fff7ed #fb7185 #ea580c #fdba74".split(" "))]))],null),Bia=new $APP.M(null,2,[AQ,$APP.Ng($APP.Dc([IQ,KQ,LQ,MQ,NQ,$APP.vg("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-radius-sm --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-border-width --x-radius-full --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-radius-lg --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-font-family --x-radius-md --x-shadow-md --x-color-primary-hover --x-color-tertiary --x-space-md".split(" "),
18
- "8px 8px 0 #000000;#ffffff;700;#555555;#00cc66;0;3px 3px 0 #000000;#333333;#ffcc00;#333333;#000000;2px;0;#f5f5f5;#ff0000;#cc0044;#e6004c;0;#1a1a1a;#eeeeee;#ff3366;#000000;#ffffff;#000000;#ff3366;'Space Grotesk',system-ui,sans-serif;0;5px 5px 0 #000000;#1a1a1a;#555555;1rem".split(";"))])),CQ,$APP.vg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
19
- "8px 8px 0 #ffffff;#111111;#aaaaaa;#44ff88;3px 3px 0 #ffffff;#888888;#ffdd44;#cc0044;#ffffff;#1a1a1a;#ff4444;#cccccc;#e5e5e5;#666666;#222222;#ff3366;#ff3366;#000000;#ffffff;#ffffff;5px 5px 0 #ffffff;#e6004c;#aaaaaa".split(";"))],null),Cia=new $APP.M(null,2,[AQ,$APP.Ng($APP.Dc([IQ,JQ,KQ,LQ,MQ,NQ,$APP.vg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-opacity-disabled --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
20
- "0 10px 30px rgba(139,92,246,0.15),0 4px 10px rgba(139,92,246,0.10);rgba(255,255,255,0.72);#7c7aad;#059669;0 1px 3px rgba(139,92,246,0.10);#0891b2;0.45;#d97706;#5b21b6;rgba(196,181,253,0.5);rgba(248,245,255,0.80);#e11d48;#be185d;#db2777;#0e7490;rgba(243,232,255,0.85);#a78bfa;#7c3aed;#faf5ff;#1e1b4b;#ec4899;0 4px 15px rgba(139,92,246,0.12),0 2px 4px rgba(139,92,246,0.08);#6d28d9;#06b6d4".split(";"))])),CQ,$APP.vg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
21
- "0 10px 30px rgba(139,92,246,0.30),0 4px 10px rgba(139,92,246,0.18);rgba(30,20,60,0.72);#a5b4fc;#34d399;0 1px 3px rgba(139,92,246,0.20);#06b6d4;#fbbf24;#7c3aed;rgba(139,92,246,0.3);rgba(45,30,80,0.78);#fb7185;#db2777;#ec4899;#0891b2;rgba(55,35,95,0.85);#c4b5fd;#a78bfa;#0f0720;#ede9fe;#f472b6;0 4px 15px rgba(139,92,246,0.25),0 2px 4px rgba(139,92,246,0.15);#8b5cf6;#22d3ee".split(";"))],null),Dia=new $APP.M(null,2,[AQ,$APP.Ng($APP.Dc([JQ,KQ,LQ,MQ,NQ,$APP.vg("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-font-size-base --x-color-warning --x-color-primary-active --x-font-size-lg --x-color-border --x-font-weight-medium --x-color-surface-hover --x-color-danger --x-font-family-mono --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-font-size-sm --x-color-primary --x-color-bg --x-line-height-normal --x-color-text --x-color-secondary --x-font-family --x-font-size-xs --x-font-weight-normal --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
22
- "0 10px 25px rgba(0,0,0,0.10),0 4px 10px rgba(0,0,0,0.06);#fafafa;600;#71717a;#22c55e;0 1px 2px rgba(0,0,0,0.06);#52525b;1rem;#eab308;#3f3f46;1.125rem;#d4d4d8;500;#f4f4f5;#ef4444;'JetBrains Mono',ui-monospace,monospace;#24c00a;#2ee00f;#3f3f46;#e4e4e7;#39ff14;0.875rem;#18181b;#ffffff;1.4;#18181b;#39ff14;'JetBrains Mono',ui-monospace,monospace;0.75rem;400;0 4px 10px rgba(0,0,0,0.08),0 2px 4px rgba(0,0,0,0.04);#27272a;#71717a".split(";"))])),CQ,$APP.vg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
23
- "0 10px 25px rgba(0,0,0,0.50),0 4px 10px rgba(0,0,0,0.35);#09090b;#71717a;#4ade80;0 1px 2px rgba(0,0,0,0.40);#71717a;#facc15;#14532d;#27272a;#18181b;#f87171;#a1a1aa;#d4d4d8;#52525b;#27272a;#39ff14;#15803d;#000000;#e4e4e7;#e4e4e7;0 4px 10px rgba(0,0,0,0.45),0 2px 4px rgba(0,0,0,0.30);#166534;#52525b".split(";"))],null),Eia=new $APP.M(null,2,[AQ,$APP.Ng($APP.Dc([IQ,JQ,KQ,OQ,LQ,MQ,NQ,$APP.vg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
24
- "#fefdfb #8b7355 #4d7c0f #c49250 #ca8a04 #78350f #d6c4a8 #fdf8f0 #dc2626 #713f12 #854d0e #b08040 #f5ebe0 #d97706 #b45309 #fdf8f0 #3b2417 #a16207 #92400e #d6a56a".split(" "))])),CQ,$APP.Ng($APP.Dc([PQ,$APP.vg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
25
- "#1e1c18 #9c9488 #84cc16 #8e847c #fbbf24 #8e4a38 #44403a #2a2822 #f87171 #8a7052 #a18360 #7a7068 #38352e #d4a574 #c2785a #14130f #e8e0d4 #b8976e #a8604a #7a7068".split(" "))]))],null),sia=new $APP.M(null,8,["default",BQ,"ocean",yia,"forest",zia,"sunset",Aia,"neo-brutalist",Bia,"aurora",Cia,"mono-ai",Dia,"warm-mineral",Eia],null),DQ=Object.create(null),ria=new $APP.bh(null,new $APP.M(null,8,["warm-mineral",null,"mono-ai",null,"ocean",null,"aurora",null,"sunset",null,"forest",null,"neo-brutalist",null,
2
+ var Iia=function(a,b){var c=AQ.i(BQ),d=CQ.i(BQ),e=b.light,f=b.dark;b=$APP.Og($APP.Ec([c,$APP.n(e)?$APP.Gf.j($APP.ke,function(){return function m(k){return new $APP.Id(null,function(){for(;;){var r=$APP.q(k);if(r){if($APP.$c(r)){var u=$APP.Fb(r),x=$APP.w(u),y=$APP.Ld(x);a:{for(var B=0;;)if(B<x){var E=$APP.Jc(u,B);y.add(new $APP.J(null,2,5,$APP.K,[E,$APP.l(e,E)],null));B+=1}else{u=!0;break a}u=void 0}return u?$APP.Od(y.ea(),m($APP.Gb(r))):$APP.Od(y.ea(),null)}y=$APP.t(r);return $APP.Fd(new $APP.J(null,
3
+ 2,5,$APP.K,[y,$APP.l(e,y)],null),m($APP.gc(r)))}return null}},null)}(Object.keys(e))}()):null]));d=$APP.Og($APP.Ec([d,$APP.n(f)?$APP.Gf.j($APP.ke,function(){return function m(k){return new $APP.Id(null,function(){for(;;){var r=$APP.q(k);if(r){if($APP.$c(r)){var u=$APP.Fb(r),x=$APP.w(u),y=$APP.Ld(x);a:{for(var B=0;;)if(B<x){var E=$APP.Jc(u,B);y.add(new $APP.J(null,2,5,$APP.K,[E,$APP.l(f,E)],null));B+=1}else{u=!0;break a}u=void 0}return u?$APP.Od(y.ea(),m($APP.Gb(r))):$APP.Od(y.ea(),null)}y=$APP.t(r);
4
+ return $APP.Fd(new $APP.J(null,2,5,$APP.K,[y,$APP.l(f,y)],null),m($APP.gc(r)))}return null}},null)}(Object.keys(f))}()):null]));return $APP.ka(DQ,a,new $APP.M(null,2,[AQ,b,CQ,d],null))},EQ=function(a){var b=[];a=$APP.q(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.C(null,e),h=$APP.A(f,0,null);f=$APP.A(f,1,null);b.push(""+$APP.P.i(h)+":"+$APP.P.i(f)+";");e+=1}else if(a=$APP.q(a))$APP.$c(a)?(d=$APP.Fb(a),a=$APP.Gb(a),c=d,d=$APP.w(d)):(d=$APP.t(a),c=$APP.A(d,0,null),d=$APP.A(d,1,null),b.push(""+$APP.P.i(c)+
5
+ ":"+$APP.P.i(d)+";"),a=$APP.v(a),c=null,d=0),e=0;else break;return b.join("")},FQ=function(a){var b=new $APP.M(null,1,[$APP.at,a.getAttribute("preset")],null);if($APP.I($APP.l(a,"__xThemeModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.at),d=$APP.l(a,"__xThemeRefs");if($APP.n(d)){d=d.style;c=typeof c!=="string"||!$APP.dd(Jia,c)&&$APP.l(DQ,c)==null?"default":c;var e=$APP.l(DQ,c);$APP.n(e)||(c=$APP.C(Kia,c),e=$APP.n(c)?c:BQ);c=AQ.i(e);e=CQ.i(e);c=":host{display:contents;"+$APP.P.i(EQ(c))+"}@media(prefers-color-scheme:dark){:host{"+
6
+ $APP.P.i(EQ(e))+"}}";d.textContent=c;a=$APP.Q(a,"__xThemeModel",b)}else a=null}else a=null;return a},Lia=function(a){if(!$APP.n($APP.l(a,"__xThemeRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xThemeRefs",{style:c})}return FQ(a)},Mia=function(){return null},Nia=function(a,b,c,d){return $APP.I(c,d)?FQ(a):null},Oia=function(a){return $APP.oj(a,"preset","preset")},GQ=function(a,b){return Iia(a,
7
+ b)},HQ=function(){return $APP.si("x-theme",new $APP.M(null,5,[$APP.ji,Pia,$APP.hi,Lia,$APP.ei,Mia,$APP.di,Nia,$APP.ii,Oia],null))},AQ=new $APP.F(null,"light","light",1918998747),CQ=new $APP.F(null,"dark","dark",1818973999);var Pia=["preset"],IQ=$APP.wg("--x-font-weight-semibold --x-font-size-base --x-font-size-lg --x-font-weight-medium --x-font-family-mono --x-font-size-sm --x-line-height-normal --x-font-family --x-font-size-xs --x-font-weight-normal".split(" "),"600;1rem;1.125rem;500;ui-monospace,'SF Mono',monospace;0.875rem;1.5;system-ui,-apple-system,sans-serif;0.75rem;400".split(";")),JQ=$APP.je("--x-radius-sm 0.375rem --x-radius-md 0.75rem --x-radius-lg 1rem --x-radius-full 9999px --x-border-width 1px".split(" ")),
8
+ KQ=$APP.je(["--x-transition-duration","140ms","--x-transition-easing","cubic-bezier(0.2,0,0,1)"]),LQ=$APP.je("--x-space-xs 0.25rem --x-space-sm 0.5rem --x-space-md 0.75rem --x-space-lg 1rem --x-space-xl 1.5rem".split(" ")),MQ=$APP.je("--x-z-dropdown 1000 --x-z-modal 1100 --x-z-toast 1200".split(" ")),NQ=$APP.je(["--x-opacity-disabled","0.5","--x-opacity-placeholder","0.6"]),OQ=$APP.je("--x-shadow-sm;0 1px 2px rgba(15,23,42,0.08);--x-shadow-md;0 4px 10px rgba(15,23,42,0.10),0 2px 4px rgba(15,23,42,0.06);--x-shadow-lg;0 10px 25px rgba(15,23,42,0.12),0 4px 10px rgba(15,23,42,0.08)".split(";")),
9
+ PQ=$APP.je("--x-shadow-sm;0 1px 2px rgba(0,0,0,0.35);--x-shadow-md;0 6px 14px rgba(0,0,0,0.35),0 2px 6px rgba(0,0,0,0.24);--x-shadow-lg;0 12px 30px rgba(0,0,0,0.40),0 4px 12px rgba(0,0,0,0.30)".split(";")),BQ=new $APP.M(null,2,[AQ,$APP.Og($APP.Ec([IQ,JQ,KQ,OQ,LQ,MQ,NQ,$APP.wg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
10
+ "#ffffff #64748b #16a34a #64748b #d97706 #1e40af #cbd5e1 #f8fafc #dc2626 #334155 #475569 #475569 #f1f5f9 #60a5fa #2563eb #f8fafc #0f172a #64748b #1d4ed8 #94a3b8".split(" "))])),CQ,$APP.Og($APP.Ec([PQ,$APP.wg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
11
+ "#111827 #94a3b8 #22c55e #94a3b8 #f59e0b #1d4ed8 #374151 #1f2937 #ef4444 #475569 #64748b #64748b #273449 #93c5fd #3b82f6 #0f172a #f1f5f9 #94a3b8 #2563eb #64748b".split(" "))]))],null),Qia=new $APP.M(null,2,[AQ,$APP.Og($APP.Ec([IQ,JQ,KQ,OQ,LQ,MQ,NQ,$APP.wg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
12
+ "#ffffff #5f7a7a #059669 #2dd4bf #d97706 #155e75 #99f6e4 #f0fdfa #e11d48 #115e59 #0f766e #14b8a6 #ccfbf1 #22d3ee #0891b2 #f0fdfa #134e4a #0d9488 #0e7490 #5eead4".split(" "))])),CQ,$APP.Og($APP.Ec([PQ,$APP.wg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
13
+ "#0c1a1f #5eead4 #34d399 #5eead4 #fbbf24 #0e7490 #164e63 #133e4a #fb7185 #0f766e #0d9488 #2dd4bf #164e5e #67e8f9 #06b6d4 #061216 #ecfdf5 #14b8a6 #0891b2 #2dd4bf".split(" "))]))],null),Ria=new $APP.M(null,2,[AQ,$APP.Og($APP.Ec([IQ,JQ,KQ,OQ,LQ,MQ,NQ,$APP.wg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
14
+ "#fffbeb #65753a #15803d #84cc16 #ca8a04 #14532d #d9d2b0 #fef9c3 #dc2626 #3f6212 #4d7c0f #65a30d #fef3c7 #4ade80 #15803d #fefce8 #1a2e05 #65a30d #166534 #a3e635".split(" "))])),CQ,$APP.Og($APP.Ec([PQ,$APP.wg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
15
+ "#1a1f12 #86efac #4ade80 #bef264 #fbbf24 #15803d #3a4a24 #2a3318 #f87171 #4d7c0f #65a30d #a3e635 #354020 #86efac #22c55e #111408 #f0fdf4 #84cc16 #16a34a #a3e635".split(" "))]))],null),Sia=new $APP.M(null,2,[AQ,$APP.Og($APP.Ec([IQ,JQ,KQ,OQ,LQ,MQ,NQ,$APP.wg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
16
+ "#ffffff #9a7b6b #16a34a #f97316 #ca8a04 #9a3412 #fed7aa #fff7ed #be123c #9f1239 #be123c #ea580c #ffedd5 #fb923c #ea580c #fffbf5 #431407 #e11d48 #c2410c #fb923c".split(" "))])),CQ,$APP.Og($APP.Ec([PQ,$APP.wg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
17
+ "#1c1210 #fdba74 #4ade80 #fb923c #fbbf24 #c2410c #4a2d1f #2a1c17 #fb7185 #e11d48 #f43f5e #f97316 #3d261d #fdba74 #f97316 #140d0a #fff7ed #fb7185 #ea580c #fdba74".split(" "))]))],null),Tia=new $APP.M(null,2,[AQ,$APP.Og($APP.Ec([IQ,KQ,LQ,MQ,NQ,$APP.wg("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-radius-sm --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-border-width --x-radius-full --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-radius-lg --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-font-family --x-radius-md --x-shadow-md --x-color-primary-hover --x-color-tertiary --x-space-md".split(" "),
18
+ "8px 8px 0 #000000;#ffffff;700;#555555;#00cc66;0;3px 3px 0 #000000;#333333;#ffcc00;#333333;#000000;2px;0;#f5f5f5;#ff0000;#cc0044;#e6004c;0;#1a1a1a;#eeeeee;#ff3366;#000000;#ffffff;#000000;#ff3366;'Space Grotesk',system-ui,sans-serif;0;5px 5px 0 #000000;#1a1a1a;#555555;1rem".split(";"))])),CQ,$APP.wg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
19
+ "8px 8px 0 #ffffff;#111111;#aaaaaa;#44ff88;3px 3px 0 #ffffff;#888888;#ffdd44;#cc0044;#ffffff;#1a1a1a;#ff4444;#cccccc;#e5e5e5;#666666;#222222;#ff3366;#ff3366;#000000;#ffffff;#ffffff;5px 5px 0 #ffffff;#e6004c;#aaaaaa".split(";"))],null),Uia=new $APP.M(null,2,[AQ,$APP.Og($APP.Ec([IQ,JQ,KQ,LQ,MQ,NQ,$APP.wg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-opacity-disabled --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
20
+ "0 10px 30px rgba(139,92,246,0.15),0 4px 10px rgba(139,92,246,0.10);rgba(255,255,255,0.72);#7c7aad;#059669;0 1px 3px rgba(139,92,246,0.10);#0891b2;0.45;#d97706;#5b21b6;rgba(196,181,253,0.5);rgba(248,245,255,0.80);#e11d48;#be185d;#db2777;#0e7490;rgba(243,232,255,0.85);#a78bfa;#7c3aed;#faf5ff;#1e1b4b;#ec4899;0 4px 15px rgba(139,92,246,0.12),0 2px 4px rgba(139,92,246,0.08);#6d28d9;#06b6d4".split(";"))])),CQ,$APP.wg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
21
+ "0 10px 30px rgba(139,92,246,0.30),0 4px 10px rgba(139,92,246,0.18);rgba(30,20,60,0.72);#a5b4fc;#34d399;0 1px 3px rgba(139,92,246,0.20);#06b6d4;#fbbf24;#7c3aed;rgba(139,92,246,0.3);rgba(45,30,80,0.78);#fb7185;#db2777;#ec4899;#0891b2;rgba(55,35,95,0.85);#c4b5fd;#a78bfa;#0f0720;#ede9fe;#f472b6;0 4px 15px rgba(139,92,246,0.25),0 2px 4px rgba(139,92,246,0.15);#8b5cf6;#22d3ee".split(";"))],null),Via=new $APP.M(null,2,[AQ,$APP.Og($APP.Ec([JQ,KQ,LQ,MQ,NQ,$APP.wg("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-font-size-base --x-color-warning --x-color-primary-active --x-font-size-lg --x-color-border --x-font-weight-medium --x-color-surface-hover --x-color-danger --x-font-family-mono --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-font-size-sm --x-color-primary --x-color-bg --x-line-height-normal --x-color-text --x-color-secondary --x-font-family --x-font-size-xs --x-font-weight-normal --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
22
+ "0 10px 25px rgba(0,0,0,0.10),0 4px 10px rgba(0,0,0,0.06);#fafafa;600;#71717a;#22c55e;0 1px 2px rgba(0,0,0,0.06);#52525b;1rem;#eab308;#3f3f46;1.125rem;#d4d4d8;500;#f4f4f5;#ef4444;'JetBrains Mono',ui-monospace,monospace;#24c00a;#2ee00f;#3f3f46;#e4e4e7;#39ff14;0.875rem;#18181b;#ffffff;1.4;#18181b;#39ff14;'JetBrains Mono',ui-monospace,monospace;0.75rem;400;0 4px 10px rgba(0,0,0,0.08),0 2px 4px rgba(0,0,0,0.04);#27272a;#71717a".split(";"))])),CQ,$APP.wg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
23
+ "0 10px 25px rgba(0,0,0,0.50),0 4px 10px rgba(0,0,0,0.35);#09090b;#71717a;#4ade80;0 1px 2px rgba(0,0,0,0.40);#71717a;#facc15;#14532d;#27272a;#18181b;#f87171;#a1a1aa;#d4d4d8;#52525b;#27272a;#39ff14;#15803d;#000000;#e4e4e7;#e4e4e7;0 4px 10px rgba(0,0,0,0.45),0 2px 4px rgba(0,0,0,0.30);#166534;#52525b".split(";"))],null),Wia=new $APP.M(null,2,[AQ,$APP.Og($APP.Ec([IQ,JQ,KQ,OQ,LQ,MQ,NQ,$APP.wg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
24
+ "#fefdfb #8b7355 #4d7c0f #c49250 #ca8a04 #78350f #d6c4a8 #fdf8f0 #dc2626 #713f12 #854d0e #b08040 #f5ebe0 #d97706 #b45309 #fdf8f0 #3b2417 #a16207 #92400e #d6a56a".split(" "))])),CQ,$APP.Og($APP.Ec([PQ,$APP.wg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
25
+ "#1e1c18 #9c9488 #84cc16 #8e847c #fbbf24 #8e4a38 #44403a #2a2822 #f87171 #8a7052 #a18360 #7a7068 #38352e #d4a574 #c2785a #14130f #e8e0d4 #b8976e #a8604a #7a7068".split(" "))]))],null),Kia=new $APP.M(null,8,["default",BQ,"ocean",Qia,"forest",Ria,"sunset",Sia,"neo-brutalist",Tia,"aurora",Uia,"mono-ai",Via,"warm-mineral",Wia],null),DQ=Object.create(null),Jia=new $APP.ch(null,new $APP.M(null,8,["warm-mineral",null,"mono-ai",null,"ocean",null,"aurora",null,"sunset",null,"forest",null,"neo-brutalist",null,
26
26
  "default",null],null),null);$APP.ha("baredom.exports.x_theme.registerPreset",GQ);$APP.ha("baredom.exports.x_theme.init",HQ);export const init=HQ;export const registerPreset=GQ;
@@ -1,21 +1,21 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Ew=function(a){a=$APP.C(Dw,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.qq},Gw=function(a){a=$APP.C(Fw,a);return $APP.n(a)?a:"pending"},Jw=function(a){a=$APP.C(Hw,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:Iw},Kw=function(a){return typeof a==="string"?(a=a.trim(),$APP.I(a,"")&&$APP.I(a.toLowerCase(),"none")?a:null):null},Lw=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:null):null},Nw=function(a,
3
- b){a=$APP.C(Mw,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.C(Mw,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.el);return b},Ow=function(a,b,c){a=Gw(a);c=c!=null?"Step "+$APP.P.i(c+1)+": ":null;return""+$APP.P.i(c)+$APP.P.i(typeof b==="string"&&$APP.I(b,"")?""+$APP.P.i(b)+" ":null)+"("+$APP.P.i(a)+")"},Yw=function(a){var b=$APP.G(a),c=$APP.C(b,Pw);a=$APP.C(b,$APP.Wj);var d=$APP.C(b,$APP.ks),e=$APP.C(b,$APP.Oj),f=$APP.C(b,Qw),h=$APP.C(b,$APP.Jq),k=$APP.C(b,Rw),m=$APP.C(b,
4
- $APP.dr),r=$APP.C(b,Sw),u=$APP.C(b,$APP.bq),x=$APP.C(b,$APP.Js);b=$APP.C(b,$APP.Sr);var y=Ew(m),B=Kw(b),E=$APP.n($APP.n(u)?B==null:u)?$APP.Tv:B!=null?$APP.lu:$APP.sj;m=function(){var H=E instanceof $APP.F?E.da:null;switch(H){case "default":return H=$APP.C(Tw,y),$APP.n(H)?H:$APP.C(Tw,$APP.qq);case "custom":return B;case "hidden":return null;default:throw Error("No matching clause: "+$APP.P.i(H));}}();c=Lw(c);d=Nw(k,d);e=$APP.n(e)?e:"";x=$APP.n(x)?x:"";return $APP.vg([$APP.tq,Uw,Vw,Qw,Sw,$APP.mt,$APP.Aq,
5
- $APP.Rs,$APP.Z,Ww,$APP.Gs,$APP.Wj,Xw],[Jw(h),c,m,$APP.D(f),$APP.D(r),$APP.z.j(E,$APP.lu)?B:null,x,y,e,Ow(y,e,c),E,$APP.D(a),d])},Zw=function(a){a=$APP.G(a);a=$APP.C(a,$APP.Wj);return $APP.p(a)},hx=function(a){var b=$APP.l(a,"__xTimelineItemRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("div"),
2
+ var Iw=function(a){a=$APP.C(Hw,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.rq},Kw=function(a){a=$APP.C(Jw,a);return $APP.n(a)?a:"pending"},Nw=function(a){a=$APP.C(Lw,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:Mw},Ow=function(a){return typeof a==="string"?(a=a.trim(),$APP.I(a,"")&&$APP.I(a.toLowerCase(),"none")?a:null):null},Pw=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:null):null},Rw=function(a,
3
+ b){a=$APP.C(Qw,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.C(Qw,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.fl);return b},Sw=function(a,b,c){a=Kw(a);c=c!=null?"Step "+$APP.P.i(c+1)+": ":null;return""+$APP.P.i(c)+$APP.P.i(typeof b==="string"&&$APP.I(b,"")?""+$APP.P.i(b)+" ":null)+"("+$APP.P.i(a)+")"},bx=function(a){var b=$APP.G(a),c=$APP.C(b,Tw);a=$APP.C(b,$APP.Xj);var d=$APP.C(b,$APP.ms),e=$APP.C(b,$APP.Pj),f=$APP.C(b,Uw),h=$APP.C(b,$APP.Kq),k=$APP.C(b,Vw),m=$APP.C(b,
4
+ $APP.er),r=$APP.C(b,Ww),u=$APP.C(b,$APP.cq),x=$APP.C(b,$APP.Ls);b=$APP.C(b,$APP.Ur);var y=Iw(m),B=Ow(b),E=$APP.n($APP.n(u)?B==null:u)?$APP.Wv:B!=null?$APP.nu:$APP.tj;m=function(){var H=E instanceof $APP.F?E.da:null;switch(H){case "default":return H=$APP.C(Xw,y),$APP.n(H)?H:$APP.C(Xw,$APP.rq);case "custom":return B;case "hidden":return null;default:throw Error("No matching clause: "+$APP.P.i(H));}}();c=Pw(c);d=Rw(k,d);e=$APP.n(e)?e:"";x=$APP.n(x)?x:"";return $APP.wg([$APP.uq,Yw,Zw,Uw,Ww,$APP.ot,$APP.Bq,
5
+ $APP.Ts,$APP.Z,$w,$APP.Is,$APP.Xj,ax],[Nw(h),c,m,$APP.D(f),$APP.D(r),$APP.z.j(E,$APP.nu)?B:null,x,y,e,Sw(y,e,c),E,$APP.D(a),d])},cx=function(a){a=$APP.G(a);a=$APP.C(a,$APP.Xj);return $APP.p(a)},lx=function(a){var b=$APP.l(a,"__xTimelineItemRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("div"),
6
6
  m=document.createElement("div"),r=document.createElement("slot"),u=document.createElement("span"),x=document.createElement("div"),y=document.createElement("div"),B=document.createElement("div"),E=document.createElement("div"),H=document.createElement("slot"),O=document.createElement("div"),T=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-timeline-item-marker-size:2rem;--x-timeline-item-marker-bg:var(--x-color-border,rgba(0,0,0,0.06));--x-timeline-item-marker-color:var(--x-color-text-muted,rgba(0,0,0,0.45));--x-timeline-item-connector-color:var(--x-color-border,rgba(0,0,0,0.12));--x-timeline-item-connector-width:2px;--x-timeline-item-gap:0.75rem;--x-timeline-item-label-width:6rem;--x-timeline-item-label-color:var(--x-color-text-muted,rgba(0,0,0,0.5));--x-timeline-item-label-font-size:var(--x-font-size-sm,0.8125rem);--x-timeline-item-title-font-size:0.9375rem;--x-timeline-item-stripe-bg:var(--x-color-surface,rgba(0,0,0,0.025));--x-timeline-item-motion:var(--x-transition-duration,150ms);--x-timeline-item-motion-ease:var(--x-transition-easing,cubic-bezier(0.2,0,0,1));--x-timeline-item-enter-duration:160ms;--x-timeline-item-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-timeline-item-marker-bg:var(--x-color-border,rgba(255,255,255,0.10));--x-timeline-item-marker-color:var(--x-color-text-muted,rgba(255,255,255,0.55));--x-timeline-item-connector-color:var(--x-color-border,rgba(255,255,255,0.15));--x-timeline-item-label-color:var(--x-color-text-muted,rgba(255,255,255,0.5));--x-timeline-item-stripe-bg:var(--x-color-surface,rgba(255,255,255,0.03));}}:host([data-status\x3d'active']){--x-timeline-item-marker-bg:var(--x-color-primary,rgba(0,102,204,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-primary,rgba(0,102,204,0.4));}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:var(--x-color-success,rgba(16,140,72,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-success,rgba(16,140,72,0.5));}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:var(--x-color-danger,rgba(190,20,40,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-danger,rgba(190,20,40,0.4));}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:var(--x-color-warning,rgba(204,120,0,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-warning,rgba(204,120,0,0.4));}@media (prefers-color-scheme:dark){:host([data-status\x3d'active']){--x-timeline-item-marker-bg:var(--x-color-primary,rgba(80,160,255,1));--x-timeline-item-connector-color:var(--x-color-primary,rgba(80,160,255,0.4));}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:var(--x-color-success,rgba(60,210,120,1));--x-timeline-item-connector-color:var(--x-color-success,rgba(60,210,120,0.5));}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:var(--x-color-danger,rgba(255,90,110,1));--x-timeline-item-connector-color:var(--x-color-danger,rgba(255,90,110,0.4));}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:var(--x-color-warning,rgba(255,190,90,1));--x-timeline-item-connector-color:var(--x-color-warning,rgba(255,190,90,0.4));}}:host([data-striped]){background:var(--x-timeline-item-stripe-bg);border-radius:var(--x-radius-sm,4px);}:host([disabled]){opacity:var(--x-timeline-item-disabled-opacity);pointer-events:none;}:host(:not([disabled])){cursor:pointer;}:host(:not([disabled])):focus{outline:none;}:host(:not([disabled])):focus-visible{outline:2px solid var(--x-color-focus-ring,rgba(0,102,204,0.55));outline-offset:2px;}@media (prefers-color-scheme:dark){:host(:not([disabled])):focus-visible{outline-color:var(--x-color-focus-ring,rgba(80,160,255,0.7));}}.timeline-item{display:grid;grid-template-columns:var(--x-timeline-item-label-width) var(--x-timeline-item-marker-size) 1fr;grid-template-areas:'label track content';align-items:start;gap:0 var(--x-timeline-item-gap);}:host([data-position\x3d'end']) .timeline-item{grid-template-columns:1fr var(--x-timeline-item-marker-size) var(--x-timeline-item-label-width);grid-template-areas:'content track label';}.label-col{grid-area:label;display:flex;align-items:center;justify-content:flex-end;min-height:var(--x-timeline-item-marker-size);font-size:var(--x-timeline-item-label-font-size);color:var(--x-timeline-item-label-color);overflow:hidden;min-width:0;}:host([data-position\x3d'end']) .label-col{justify-content:flex-start;}.track-col{grid-area:track;display:flex;flex-direction:column;align-items:center;}.marker{display:inline-flex;align-items:center;justify-content:center;width:var(--x-timeline-item-marker-size);height:var(--x-timeline-item-marker-size);border-radius:999px;background:var(--x-timeline-item-marker-bg);color:var(--x-timeline-item-marker-color);font-size:0.875em;flex-shrink:0;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease),color var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}.connector{flex:1;width:var(--x-timeline-item-connector-width);background:var(--x-timeline-item-connector-color);min-height:1rem;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}:host([data-connector\x3d'dashed']) .connector{background:repeating-linear-gradient(to bottom,var(--x-timeline-item-connector-color) 0,var(--x-timeline-item-connector-color) 4px,transparent 4px,transparent 8px);}:host([data-connector\x3d'none']) .connector,:host([data-last]) .connector{display:none;}.content-col{grid-area:content;display:flex;flex-direction:column;min-width:0;padding-bottom:var(--x-timeline-item-gap);}.title{font-weight:600;font-size:var(--x-timeline-item-title-font-size);line-height:1.25;min-height:var(--x-timeline-item-marker-size);display:flex;align-items:center;overflow-wrap:anywhere;min-width:0;}.title[hidden]{display:none;}.body{margin-top:0.25rem;}.actions{margin-top:0.5rem;}:host([data-entering]){animation:x-timeline-item-enter var(--x-timeline-item-enter-duration) var(--x-timeline-item-motion-ease) both;}@keyframes x-timeline-item-enter{from{opacity:0;transform:translateX(-4px);}to{opacity:1;transform:translateX(0);}}:host([data-position\x3d'end'][data-entering]){animation-name:x-timeline-item-enter-end;}@keyframes x-timeline-item-enter-end{from{opacity:0;transform:translateX(4px);}to{opacity:1;transform:translateX(0);}}@media (prefers-reduced-motion:reduce){:host([data-entering]){animation:none !important;}.marker,.connector{transition:none !important;}}";
7
7
  $APP.S(d,"class","timeline-item");$APP.S(e,"class","label-col");$APP.S(f,"name","label");$APP.S(h,"class","label-text");f.appendChild(h);e.appendChild(f);$APP.S(k,"class","track-col");$APP.S(m,"class","marker");$APP.S(r,"name","icon");$APP.S(u,"class","default-icon");$APP.S(u,"aria-hidden","true");r.appendChild(u);m.appendChild(r);$APP.S(x,"class","connector");k.appendChild(m);k.appendChild(x);$APP.S(y,"class","content-col");$APP.S(B,"class","title");$APP.S(E,"class","body");E.appendChild(H);$APP.S(O,
8
- "class","actions");$APP.S(T,"name","actions");O.appendChild(T);y.appendChild(B);y.appendChild(E);y.appendChild(O);d.appendChild(e);d.appendChild(k);d.appendChild(y);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTimelineItemRefs",$APP.vg([$APP.tq,$w,$APP.qt,$APP.Nv,ax,bx,$APP.tv,cx,$APP.Sk,dx,$APP.ut,ex,fx,gx,$APP.Kr,$APP.ho],[x,h,m,u,e,k,E,H,b,T,B,y,d,O,r,f]));return $APP.l(a,"__xTimelineItemRefs")},ix=function(a){return Yw($APP.vg([$APP.ks,$APP.Oj,Qw,$APP.Jq,Rw,$APP.dr,Sw,$APP.bq,$APP.Js,$APP.Sr,
9
- Pw,$APP.Wj],[a.getAttribute("position"),a.getAttribute("label"),a.hasAttribute("data-striped"),a.getAttribute("connector"),$APP.l(a,"__xTimelineItemParentPos"),a.getAttribute("status"),a.hasAttribute("data-last"),a.hasAttribute("icon"),a.getAttribute("title"),a.getAttribute("icon"),a.getAttribute("data-index"),a.hasAttribute("disabled")]))},jx=function(a){var b=ix(a);if($APP.I($APP.l(a,"__xTimelineItemModel"),b)){var c=hx(a),d=$APP.G(c);c=$APP.C(d,$w);var e=$APP.C(d,$APP.qt),f=$APP.C(d,$APP.ut);d=
10
- $APP.C(d,$APP.Nv);var h=$APP.G(b),k=$APP.C(h,$APP.Rs),m=$APP.C(h,Xw);h=$APP.C(h,$APP.tq);$APP.S(a,"data-status",Gw(k));$APP.Q(a,"__xTimelineItemSelfPos",!0);$APP.S(a,"data-position",$APP.jh(m));$APP.Q(a,"__xTimelineItemSelfPos",null);switch(h instanceof $APP.F?h.da:null){case "dashed":$APP.S(a,"data-connector","dashed");break;case "none":$APP.S(a,"data-connector","none");break;default:$APP.U(a,"data-connector")}h=$APP.G(b);k=$APP.C(h,$APP.Z);m=$APP.C(h,$APP.Aq);h=$APP.C(h,$APP.Wj);$APP.S(a,"role",
11
- "listitem");$APP.n(h)?($APP.S(a,"aria-disabled","true"),a.tabIndex=-1):($APP.U(a,"aria-disabled"),a.tabIndex=0);k=$APP.I(m,"")?m:$APP.I(k,"")?k:null;$APP.n(k)?$APP.S(a,"aria-label",k):$APP.U(a,"aria-label");m=$APP.G(b);k=$APP.C(m,Vw);m=$APP.C(m,Ww);$APP.S(e,"aria-label",m);d.textContent=k!=null?k:"";d=$APP.G(b);e=$APP.C(d,$APP.Z);d=$APP.C(d,$APP.Aq);c.textContent=e;$APP.I(d,"")?($APP.U(f,"hidden"),f.textContent=d):($APP.S(f,"hidden",""),f.textContent="");a=$APP.Q(a,"__xTimelineItemModel",b)}else a=
12
- null;return a},kx=function(a){$APP.n($APP.l(a,"__xTimelineItemEntered"))||($APP.Q(a,"__xTimelineItemEntered",!0),$APP.S(a,"data-entering",""),a.addEventListener("animationend",function d(c){return $APP.z.j(c.target,a)?(a.removeEventListener("animationend",d),$APP.U(a,"data-entering")):null}))},lx=function(a){var b=$APP.l(a,"__xTimelineItemModel");b=$APP.n(b)?b:ix(a);var c=$APP.G(b);b=$APP.C(c,$APP.Rs);c=$APP.C(c,$APP.Z);b=new $APP.M(null,2,[$APP.Rs,Gw(b),$APP.Z,c],null);return $APP.gj(a,"x-timeline-item-click",
13
- $APP.$m(b))},mx=function(a){function b(d){a:{var e=d.key;if($APP.z.j(e,"Enter")||$APP.z.j(e," "))if(e=$APP.l(a,"__xTimelineItemModel"),e=$APP.n(e)?e:ix(a),Zw(e)){d.preventDefault();d=lx(a);break a}d=null}return d}function c(){var d=$APP.l(a,"__xTimelineItemModel");d=$APP.n(d)?d:ix(a);return Zw(d)?lx(a):null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.Q(a,"__xTimelineItemHandlers",{click:c,keydown:b})},nx=function(a){var b=$APP.l(a,"__xTimelineItemHandlers");if($APP.n(b)){var c=
14
- $APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",b)}$APP.Q(a,"__xTimelineItemHandlers",null)},ox=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.I(b,""):b)?$APP.S(this,"label",""+$APP.P.i(b)):$APP.U(this,"label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"title",{get:function(){var b=this.getAttribute("title");
15
- return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.I(b,""):b)?$APP.S(this,"title",""+$APP.P.i(b)):$APP.U(this,"title")},enumerable:!0,configurable:!0});$APP.mj(a,"status","status","pending");$APP.nj(a,"icon","icon");$APP.mj(a,"connector","connector","solid");$APP.mj(a,"position","position","start");return $APP.jj(a,"disabled","disabled")},px=function(a){hx(a);nx(a);mx(a);var b=a.getAttribute("data-position");$APP.n(b)&&$APP.Q(a,"__xTimelineItemParentPos",b);jx(a);kx(a);b=$APP.l(a,
16
- "__xTimelineItemModel");b=$APP.n(b)?b:ix(a);var c=$APP.G(b);b=$APP.C(c,$APP.Rs);var d=$APP.C(c,$APP.Z),e=$APP.C(c,Xw);c=$APP.C(c,$APP.Wj);b=new $APP.M(null,4,[$APP.Rs,Gw(b),$APP.Z,d,$APP.Uv,$APP.jh(e),$APP.tn,$APP.D(c)],null);return $APP.ej(a,"x-timeline-item-connected",$APP.$m(b))},qx=function(a){var b=$APP.l(a,"__xTimelineItemModel");b=$APP.n(b)?b:ix(a);nx(a);$APP.Q(a,"__xTimelineItemEntered",null);b=$APP.G(b);a=$APP.C(b,$APP.Rs);b=$APP.C(b,$APP.Z);a=new $APP.M(null,2,[$APP.Rs,Gw(a),$APP.Z,b],null);
17
- return $APP.ij("x-timeline-item-disconnected",$APP.$m(a))},rx=function(a,b,c,d){if($APP.I(c,d)){c=$APP.z.j(b,"data-position");if($APP.n(c?$APP.l(a,"__xTimelineItemSelfPos"):c))return null;$APP.z.j(b,"data-position")&&$APP.Q(a,"__xTimelineItemParentPos",d);return jx(a)}return null},tx=function(){return $APP.ri("x-timeline-item",new $APP.M(null,5,[$APP.ii,sx,$APP.gi,px,$APP.di,qx,$APP.ci,rx,$APP.hi,ox],null))},bx=new $APP.F(null,"track-col","track-col",629248272),dx=new $APP.F(null,"actions-slot","actions-slot",
18
- 1424248629),Xw=new $APP.F(null,"effective-position","effective-position",840072317),ax=new $APP.F(null,"label-col","label-col",1883390160),$w=new $APP.F(null,"label-text","label-text",-1566972381),Qw=new $APP.F(null,"data-striped?","data-striped?",906911587),gx=new $APP.F(null,"actions-el","actions-el",1486248509),ex=new $APP.F(null,"content-col","content-col",767367449),ux=new $APP.F(null,"dashed","dashed",-1449249319),fx=new $APP.F(null,"item-div","item-div",1630512700),Ww=new $APP.F(null,"marker-aria",
19
- "marker-aria",-353426855),Vw=new $APP.F(null,"marker-icon","marker-icon",424963779),Iw=new $APP.F(null,"solid","solid",-2023773691),cx=new $APP.F(null,"default-slot","default-slot",-1145647151),Sw=new $APP.F(null,"data-last?","data-last?",-1110326839),Rw=new $APP.F(null,"data-position-raw","data-position-raw",256144356),Pw=new $APP.F(null,"data-index-raw","data-index-raw",491574874),Uw=new $APP.F(null,"data-index","data-index",1161508385),vx=new $APP.F(null,"none","none",1333468478);var sx="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
20
- $APP.ie(["x-timeline-item-connected",new $APP.M(null,2,[$APP.V,new $APP.M(null,4,[$APP.Rs,$APP.X,$APP.Z,$APP.X,$APP.Uv,$APP.X,$APP.tn,$APP.rj],null),$APP.Xu,!1],null),"x-timeline-item-disconnected",new $APP.M(null,2,[$APP.V,new $APP.M(null,2,[$APP.Rs,$APP.X,$APP.Z,$APP.X],null),$APP.Xu,!1],null),"x-timeline-item-click",new $APP.M(null,2,[$APP.V,new $APP.M(null,2,[$APP.Rs,$APP.X,$APP.Z,$APP.X],null),$APP.Xu,!0],null)]);
21
- var Dw=new $APP.M(null,5,["pending",$APP.qq,"active",$APP.Zr,"complete",$APP.zv,"error",$APP.vj,"warning",$APP.Uu],null),Fw=new $APP.M(null,5,[$APP.qq,"pending",$APP.Zr,"active",$APP.zv,"complete",$APP.vj,"error",$APP.Uu,"warning"],null),Tw=new $APP.M(null,5,[$APP.qq,"○",$APP.Zr,"●",$APP.zv,"✓",$APP.vj,"✕",$APP.Uu,"!"],null),Hw=new $APP.M(null,3,["solid",Iw,"dashed",ux,"none",vx],null),Mw=new $APP.M(null,2,["start",$APP.el,"end",$APP.fl],null);$APP.ha("baredom.exports.x_timeline_item.init",tx);export const init=tx;
8
+ "class","actions");$APP.S(T,"name","actions");O.appendChild(T);y.appendChild(B);y.appendChild(E);y.appendChild(O);d.appendChild(e);d.appendChild(k);d.appendChild(y);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTimelineItemRefs",$APP.wg([$APP.uq,dx,$APP.st,$APP.Qv,ex,fx,$APP.wv,gx,$APP.Tk,hx,$APP.wt,ix,jx,kx,$APP.Mr,$APP.io],[x,h,m,u,e,k,E,H,b,T,B,y,d,O,r,f]));return $APP.l(a,"__xTimelineItemRefs")},mx=function(a){return bx($APP.wg([$APP.ms,$APP.Pj,Uw,$APP.Kq,Vw,$APP.er,Ww,$APP.cq,$APP.Ls,$APP.Ur,
9
+ Tw,$APP.Xj],[a.getAttribute("position"),a.getAttribute("label"),a.hasAttribute("data-striped"),a.getAttribute("connector"),$APP.l(a,"__xTimelineItemParentPos"),a.getAttribute("status"),a.hasAttribute("data-last"),a.hasAttribute("icon"),a.getAttribute("title"),a.getAttribute("icon"),a.getAttribute("data-index"),a.hasAttribute("disabled")]))},nx=function(a){var b=mx(a);if($APP.I($APP.l(a,"__xTimelineItemModel"),b)){var c=lx(a),d=$APP.G(c);c=$APP.C(d,dx);var e=$APP.C(d,$APP.st),f=$APP.C(d,$APP.wt);d=
10
+ $APP.C(d,$APP.Qv);var h=$APP.G(b),k=$APP.C(h,$APP.Ts),m=$APP.C(h,ax);h=$APP.C(h,$APP.uq);$APP.S(a,"data-status",Kw(k));$APP.Q(a,"__xTimelineItemSelfPos",!0);$APP.S(a,"data-position",$APP.kh(m));$APP.Q(a,"__xTimelineItemSelfPos",null);switch(h instanceof $APP.F?h.da:null){case "dashed":$APP.S(a,"data-connector","dashed");break;case "none":$APP.S(a,"data-connector","none");break;default:$APP.U(a,"data-connector")}h=$APP.G(b);k=$APP.C(h,$APP.Z);m=$APP.C(h,$APP.Bq);h=$APP.C(h,$APP.Xj);$APP.S(a,"role",
11
+ "listitem");$APP.n(h)?($APP.S(a,"aria-disabled","true"),a.tabIndex=-1):($APP.U(a,"aria-disabled"),a.tabIndex=0);k=$APP.I(m,"")?m:$APP.I(k,"")?k:null;$APP.n(k)?$APP.S(a,"aria-label",k):$APP.U(a,"aria-label");m=$APP.G(b);k=$APP.C(m,Zw);m=$APP.C(m,$w);$APP.S(e,"aria-label",m);d.textContent=k!=null?k:"";d=$APP.G(b);e=$APP.C(d,$APP.Z);d=$APP.C(d,$APP.Bq);c.textContent=e;$APP.I(d,"")?($APP.U(f,"hidden"),f.textContent=d):($APP.S(f,"hidden",""),f.textContent="");a=$APP.Q(a,"__xTimelineItemModel",b)}else a=
12
+ null;return a},ox=function(a){$APP.n($APP.l(a,"__xTimelineItemEntered"))||($APP.Q(a,"__xTimelineItemEntered",!0),$APP.S(a,"data-entering",""),a.addEventListener("animationend",function d(c){return $APP.z.j(c.target,a)?(a.removeEventListener("animationend",d),$APP.U(a,"data-entering")):null}))},px=function(a){var b=$APP.l(a,"__xTimelineItemModel");b=$APP.n(b)?b:mx(a);var c=$APP.G(b);b=$APP.C(c,$APP.Ts);c=$APP.C(c,$APP.Z);b=new $APP.M(null,2,[$APP.Ts,Kw(b),$APP.Z,c],null);return $APP.hj(a,"x-timeline-item-click",
13
+ $APP.an(b))},qx=function(a){function b(d){a:{var e=d.key;if($APP.z.j(e,"Enter")||$APP.z.j(e," "))if(e=$APP.l(a,"__xTimelineItemModel"),e=$APP.n(e)?e:mx(a),cx(e)){d.preventDefault();d=px(a);break a}d=null}return d}function c(){var d=$APP.l(a,"__xTimelineItemModel");d=$APP.n(d)?d:mx(a);return cx(d)?px(a):null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.Q(a,"__xTimelineItemHandlers",{click:c,keydown:b})},rx=function(a){var b=$APP.l(a,"__xTimelineItemHandlers");if($APP.n(b)){var c=
14
+ $APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",b)}$APP.Q(a,"__xTimelineItemHandlers",null)},sx=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.I(b,""):b)?$APP.S(this,"label",""+$APP.P.i(b)):$APP.U(this,"label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"title",{get:function(){var b=this.getAttribute("title");
15
+ return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.I(b,""):b)?$APP.S(this,"title",""+$APP.P.i(b)):$APP.U(this,"title")},enumerable:!0,configurable:!0});$APP.nj(a,"status","status","pending");$APP.oj(a,"icon","icon");$APP.nj(a,"connector","connector","solid");$APP.nj(a,"position","position","start");return $APP.kj(a,"disabled","disabled")},tx=function(a){lx(a);rx(a);qx(a);var b=a.getAttribute("data-position");$APP.n(b)&&$APP.Q(a,"__xTimelineItemParentPos",b);nx(a);ox(a);b=$APP.l(a,
16
+ "__xTimelineItemModel");b=$APP.n(b)?b:mx(a);var c=$APP.G(b);b=$APP.C(c,$APP.Ts);var d=$APP.C(c,$APP.Z),e=$APP.C(c,ax);c=$APP.C(c,$APP.Xj);b=new $APP.M(null,4,[$APP.Ts,Kw(b),$APP.Z,d,$APP.Xv,$APP.kh(e),$APP.un,$APP.D(c)],null);return $APP.fj(a,"x-timeline-item-connected",$APP.an(b))},ux=function(a){var b=$APP.l(a,"__xTimelineItemModel");b=$APP.n(b)?b:mx(a);rx(a);$APP.Q(a,"__xTimelineItemEntered",null);b=$APP.G(b);a=$APP.C(b,$APP.Ts);b=$APP.C(b,$APP.Z);a=new $APP.M(null,2,[$APP.Ts,Kw(a),$APP.Z,b],null);
17
+ return $APP.jj("x-timeline-item-disconnected",$APP.an(a))},vx=function(a,b,c,d){if($APP.I(c,d)){c=$APP.z.j(b,"data-position");if($APP.n(c?$APP.l(a,"__xTimelineItemSelfPos"):c))return null;$APP.z.j(b,"data-position")&&$APP.Q(a,"__xTimelineItemParentPos",d);return nx(a)}return null},xx=function(){return $APP.si("x-timeline-item",new $APP.M(null,5,[$APP.ji,wx,$APP.hi,tx,$APP.ei,ux,$APP.di,vx,$APP.ii,sx],null))},fx=new $APP.F(null,"track-col","track-col",629248272),hx=new $APP.F(null,"actions-slot","actions-slot",
18
+ 1424248629),ax=new $APP.F(null,"effective-position","effective-position",840072317),ex=new $APP.F(null,"label-col","label-col",1883390160),dx=new $APP.F(null,"label-text","label-text",-1566972381),Uw=new $APP.F(null,"data-striped?","data-striped?",906911587),kx=new $APP.F(null,"actions-el","actions-el",1486248509),ix=new $APP.F(null,"content-col","content-col",767367449),yx=new $APP.F(null,"dashed","dashed",-1449249319),jx=new $APP.F(null,"item-div","item-div",1630512700),$w=new $APP.F(null,"marker-aria",
19
+ "marker-aria",-353426855),Zw=new $APP.F(null,"marker-icon","marker-icon",424963779),Mw=new $APP.F(null,"solid","solid",-2023773691),gx=new $APP.F(null,"default-slot","default-slot",-1145647151),Ww=new $APP.F(null,"data-last?","data-last?",-1110326839),Vw=new $APP.F(null,"data-position-raw","data-position-raw",256144356),Tw=new $APP.F(null,"data-index-raw","data-index-raw",491574874),Yw=new $APP.F(null,"data-index","data-index",1161508385),zx=new $APP.F(null,"none","none",1333468478);var wx="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
20
+ $APP.je(["x-timeline-item-connected",new $APP.M(null,2,[$APP.V,new $APP.M(null,4,[$APP.Ts,$APP.X,$APP.Z,$APP.X,$APP.Xv,$APP.X,$APP.un,$APP.sj],null),$APP.$u,!1],null),"x-timeline-item-disconnected",new $APP.M(null,2,[$APP.V,new $APP.M(null,2,[$APP.Ts,$APP.X,$APP.Z,$APP.X],null),$APP.$u,!1],null),"x-timeline-item-click",new $APP.M(null,2,[$APP.V,new $APP.M(null,2,[$APP.Ts,$APP.X,$APP.Z,$APP.X],null),$APP.$u,!0],null)]);
21
+ var Hw=new $APP.M(null,5,["pending",$APP.rq,"active",$APP.as,"complete",$APP.Cv,"error",$APP.wj,"warning",$APP.Xu],null),Jw=new $APP.M(null,5,[$APP.rq,"pending",$APP.as,"active",$APP.Cv,"complete",$APP.wj,"error",$APP.Xu,"warning"],null),Xw=new $APP.M(null,5,[$APP.rq,"○",$APP.as,"●",$APP.Cv,"✓",$APP.wj,"✕",$APP.Xu,"!"],null),Lw=new $APP.M(null,3,["solid",Mw,"dashed",yx,"none",zx],null),Qw=new $APP.M(null,2,["start",$APP.fl,"end",$APP.gl],null);$APP.ha("baredom.exports.x_timeline_item.init",xx);export const init=xx;
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var x4=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.cd(pta,a)?a:"start"},qta=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.td(b,2)===0?"start":"end";default:return"start"}},z4=function(a){var b=$APP.l(a,"__xTimelineRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:flex;flex-direction:column;color-scheme:light dark;--x-timeline-gap:0;--x-timeline-label-color:var(--x-color-text,inherit);--x-timeline-label-font-size:var(--x-font-size-sm,0.875rem);--x-timeline-label-font-weight:600;--x-timeline-label-padding:0 0 0.5rem;}slot{display:contents;}[part\x3dlabel]{color:var(--x-timeline-label-color);font-size:var(--x-timeline-label-font-size);font-weight:var(--x-timeline-label-font-weight);padding:var(--x-timeline-label-padding);box-sizing:border-box;}[part\x3dlabel][hidden]{display:none !important;}";
3
- $APP.S(d,"part","label");$APP.S(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.Q(a,"__xTimelineRefs",new $APP.M(null,3,[$APP.Sk,b,y4,d,$APP.nu,e],null));return $APP.l(a,"__xTimelineRefs")},A4=function(a){a=new $APP.M(null,3,[$APP.Oj,a.getAttribute("label"),$APP.ks,a.getAttribute("position"),$APP.Ct,a.hasAttribute("striped")],null);var b=$APP.G(a);a=$APP.C(b,$APP.Oj);var c=$APP.C(b,$APP.ks);b=$APP.C(b,$APP.Ct);return new $APP.M(null,3,[$APP.Z,$APP.n(a)?a:"",$APP.Uv,x4(c),$APP.Ct,
4
- $APP.D(b)],null)},B4=function(a){var b=A4(a);if($APP.I($APP.l(a,"__xTimelineModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Z),d=z4(a);d=$APP.G(d);d=$APP.C(d,y4);$APP.S(a,"role","list");$APP.I(c,"")?$APP.S(a,"aria-label",c):$APP.U(a,"aria-label");$APP.I(c,"")?(d.textContent=c,$APP.U(d,"hidden")):(d.textContent="",$APP.S(d,"hidden",""));$APP.Q(a,"__xTimelineModel",b)}},C4=function(a){var b=$APP.l(a,"__xTimelineModel");b=$APP.n(b)?b:A4(a);var c=$APP.G(b);b=$APP.C(c,$APP.Uv);c=$APP.C(c,$APP.Ct);a=a.querySelectorAll("x-timeline-item");
5
- for(var d=a.length,e=0;;)if(e<d){var f=a[e],h=$APP.z.j(e,d-1);$APP.S(f,"data-index",""+$APP.P.i(e));h?$APP.S(f,"data-last",""):$APP.U(f,"data-last");$APP.S(f,"data-position",qta(b,e));$APP.n(c)?$APP.S(f,"data-striped",""):$APP.U(f,"data-striped");e+=1}else return null},rta=function(a){function b(){return $APP.n(a.isConnected)?C4(a):null}function c(e){e.stopPropagation();var f=e.target.getAttribute("data-index");e=e.detail;typeof f==="string"?(f=parseInt(f,10),f=$APP.n(isNaN(f))?null:f):f=null;var h=
6
- $APP.l(e,"status");e=$APP.l(e,"label");return $APP.ej(a,"x-timeline-select",$APP.$m(new $APP.M(null,3,[$APP.Ul,$APP.n(f)?f:0,$APP.Rs,$APP.n(h)?h:"",$APP.Z,$APP.n(e)?e:""],null)))}function d(){return C4(a)}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",b);$APP.Q(a,"__xTimelineHandlers",{"item-connected":d,"item-click":c,"item-disconnected-doc":b})},D4=function(a){var b=$APP.l(a,"__xTimelineHandlers");
7
- if($APP.n(b)){var c=$APP.l(b,"item-connected"),d=$APP.l(b,"item-click");b=$APP.l(b,"item-disconnected-doc");$APP.n(c)&&a.removeEventListener("x-timeline-item-connected",c);$APP.n(d)&&a.removeEventListener("x-timeline-item-click",d);$APP.n(b)&&document.removeEventListener("x-timeline-item-disconnected",b)}return $APP.Q(a,"__xTimelineHandlers",null)},sta=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?
8
- $APP.I(b,""):b)?$APP.S(this,"label",""+$APP.P.i(b)):$APP.U(this,"label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return x4(this.getAttribute("position"))},set:function(b){return $APP.n(b)?$APP.S(this,"position",""+$APP.P.i(b)):$APP.U(this,"position")},enumerable:!0,configurable:!0});return $APP.jj(a,"striped","striped")},tta=function(a){z4(a);B4(a);D4(a);rta(a);return C4(a)},uta=function(a){return D4(a)},vta=function(a,b,c,d){return $APP.I(c,d)?(B4(a),C4(a)):
9
- null},E4=function(){return $APP.ri("x-timeline",new $APP.M(null,5,[$APP.ii,wta,$APP.gi,tta,$APP.di,uta,$APP.ci,vta,$APP.hi,sta],null))},y4=new $APP.F(null,"label-div","label-div",1505730697);var wta=["label","position","striped"];$APP.ie(["x-timeline-select",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.Ul,$APP.Y,$APP.Rs,$APP.X,$APP.Z,$APP.X],null),$APP.Xu,!1],null)]);var pta=new $APP.bh(null,new $APP.M(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.ha("baredom.exports.x_timeline.init",E4);export const init=E4;
2
+ var x4=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.dd(Hta,a)?a:"start"},Ita=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.ud(b,2)===0?"start":"end";default:return"start"}},z4=function(a){var b=$APP.l(a,"__xTimelineRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:flex;flex-direction:column;color-scheme:light dark;--x-timeline-gap:0;--x-timeline-label-color:var(--x-color-text,inherit);--x-timeline-label-font-size:var(--x-font-size-sm,0.875rem);--x-timeline-label-font-weight:600;--x-timeline-label-padding:0 0 0.5rem;}slot{display:contents;}[part\x3dlabel]{color:var(--x-timeline-label-color);font-size:var(--x-timeline-label-font-size);font-weight:var(--x-timeline-label-font-weight);padding:var(--x-timeline-label-padding);box-sizing:border-box;}[part\x3dlabel][hidden]{display:none !important;}";
3
+ $APP.S(d,"part","label");$APP.S(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.Q(a,"__xTimelineRefs",new $APP.M(null,3,[$APP.Tk,b,y4,d,$APP.pu,e],null));return $APP.l(a,"__xTimelineRefs")},A4=function(a){a=new $APP.M(null,3,[$APP.Pj,a.getAttribute("label"),$APP.ms,a.getAttribute("position"),$APP.Et,a.hasAttribute("striped")],null);var b=$APP.G(a);a=$APP.C(b,$APP.Pj);var c=$APP.C(b,$APP.ms);b=$APP.C(b,$APP.Et);return new $APP.M(null,3,[$APP.Z,$APP.n(a)?a:"",$APP.Xv,x4(c),$APP.Et,
4
+ $APP.D(b)],null)},B4=function(a){var b=A4(a);if($APP.I($APP.l(a,"__xTimelineModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Z),d=z4(a);d=$APP.G(d);d=$APP.C(d,y4);$APP.S(a,"role","list");$APP.I(c,"")?$APP.S(a,"aria-label",c):$APP.U(a,"aria-label");$APP.I(c,"")?(d.textContent=c,$APP.U(d,"hidden")):(d.textContent="",$APP.S(d,"hidden",""));$APP.Q(a,"__xTimelineModel",b)}},C4=function(a){var b=$APP.l(a,"__xTimelineModel");b=$APP.n(b)?b:A4(a);var c=$APP.G(b);b=$APP.C(c,$APP.Xv);c=$APP.C(c,$APP.Et);a=a.querySelectorAll("x-timeline-item");
5
+ for(var d=a.length,e=0;;)if(e<d){var f=a[e],h=$APP.z.j(e,d-1);$APP.S(f,"data-index",""+$APP.P.i(e));h?$APP.S(f,"data-last",""):$APP.U(f,"data-last");$APP.S(f,"data-position",Ita(b,e));$APP.n(c)?$APP.S(f,"data-striped",""):$APP.U(f,"data-striped");e+=1}else return null},Jta=function(a){function b(){return $APP.n(a.isConnected)?C4(a):null}function c(e){e.stopPropagation();var f=e.target.getAttribute("data-index");e=e.detail;typeof f==="string"?(f=parseInt(f,10),f=$APP.n(isNaN(f))?null:f):f=null;var h=
6
+ $APP.l(e,"status");e=$APP.l(e,"label");return $APP.fj(a,"x-timeline-select",$APP.an(new $APP.M(null,3,[$APP.Vl,$APP.n(f)?f:0,$APP.Ts,$APP.n(h)?h:"",$APP.Z,$APP.n(e)?e:""],null)))}function d(){return C4(a)}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",b);$APP.Q(a,"__xTimelineHandlers",{"item-connected":d,"item-click":c,"item-disconnected-doc":b})},D4=function(a){var b=$APP.l(a,"__xTimelineHandlers");
7
+ if($APP.n(b)){var c=$APP.l(b,"item-connected"),d=$APP.l(b,"item-click");b=$APP.l(b,"item-disconnected-doc");$APP.n(c)&&a.removeEventListener("x-timeline-item-connected",c);$APP.n(d)&&a.removeEventListener("x-timeline-item-click",d);$APP.n(b)&&document.removeEventListener("x-timeline-item-disconnected",b)}return $APP.Q(a,"__xTimelineHandlers",null)},Kta=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?
8
+ $APP.I(b,""):b)?$APP.S(this,"label",""+$APP.P.i(b)):$APP.U(this,"label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return x4(this.getAttribute("position"))},set:function(b){return $APP.n(b)?$APP.S(this,"position",""+$APP.P.i(b)):$APP.U(this,"position")},enumerable:!0,configurable:!0});return $APP.kj(a,"striped","striped")},Lta=function(a){z4(a);B4(a);D4(a);Jta(a);return C4(a)},Mta=function(a){return D4(a)},Nta=function(a,b,c,d){return $APP.I(c,d)?(B4(a),C4(a)):
9
+ null},E4=function(){return $APP.si("x-timeline",new $APP.M(null,5,[$APP.ji,Ota,$APP.hi,Lta,$APP.ei,Mta,$APP.di,Nta,$APP.ii,Kta],null))},y4=new $APP.F(null,"label-div","label-div",1505730697);var Ota=["label","position","striped"];$APP.je(["x-timeline-select",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.Vl,$APP.Y,$APP.Ts,$APP.X,$APP.Z,$APP.X],null),$APP.$u,!1],null)]);var Hta=new $APP.ch(null,new $APP.M(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.ha("baredom.exports.x_timeline.init",E4);export const init=E4;
package/dist/x-toast.js CHANGED
@@ -1,23 +1,23 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var vaa=function(a){a=$APP.C(uaa,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.Wt},mB=function(a){a=$APP.C(waa,a);return $APP.n(a)?a:"info"},nB=function(a){return a==null?!1:$APP.I((""+$APP.P.i(a)).trim().toLowerCase(),"false")},oB=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>0?a:null):null},xaa=function(a){return typeof a==="string"?(a=a.trim(),$APP.I(a,"")&&$APP.I(a.toLowerCase(),"none")?a:null):null},yaa=function(a){var b=
3
- $APP.G(a),c=$APP.C(b,$APP.Aj),d=$APP.C(b,$APP.ju);a=$APP.C(b,$APP.Hr);var e=$APP.C(b,$APP.Pj),f=$APP.C(b,$APP.zq),h=$APP.C(b,$APP.bq),k=$APP.C(b,pB),m=$APP.C(b,$APP.Eq);b=$APP.C(b,$APP.Sr);m=vaa(m);b=xaa(b);h=$APP.n($APP.n(h)?b==null:h)?$APP.Tv:b!=null?$APP.lu:$APP.sj;return $APP.vg([qB,$APP.Xq,$APP.N,$APP.mt,$APP.Gs,$APP.Wj,$APP.gv,$APP.Aj,$APP.ju],[nB(k),$APP.Ci(a),m,$APP.z.j(h,$APP.lu)?b:null,h,$APP.D(e),oB(f),function(){var r=typeof c==="string"?c.trim():null;return $APP.n(r)?r:""}(),function(){var r=
4
- typeof d==="string"?d.trim():null;return $APP.n(r)?r:""}()])},rB=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Xq);b=$APP.C(b,$APP.Wj);return $APP.n(a)?$APP.p(b):a},sB=function(a,b){var c=$APP.G(a);a=$APP.C(c,$APP.N);var d=$APP.C(c,$APP.ju);c=$APP.C(c,$APP.Aj);return new $APP.M(null,4,[$APP.N,mB(a),$APP.Yq,b,$APP.ju,d,$APP.Aj,c],null)},tB=function(a){var b=$APP.G(a);a=$APP.C(b,qB);b=$APP.C(b,$APP.gv);return $APP.D($APP.n(a)?b!=null&&b>0:a)},xB=function(a){var b=$APP.l(a,"__xToastRefs");if($APP.n(b))return b;
2
+ var Eaa=function(a){a=$APP.C(Daa,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.Yt},hB=function(a){a=$APP.C(Faa,a);return $APP.n(a)?a:"info"},iB=function(a){return a==null?!1:$APP.I((""+$APP.P.i(a)).trim().toLowerCase(),"false")},jB=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>0?a:null):null},Gaa=function(a){return typeof a==="string"?(a=a.trim(),$APP.I(a,"")&&$APP.I(a.toLowerCase(),"none")?a:null):null},Haa=function(a){var b=
3
+ $APP.G(a),c=$APP.C(b,$APP.Bj),d=$APP.C(b,$APP.lu);a=$APP.C(b,$APP.Jr);var e=$APP.C(b,$APP.Qj),f=$APP.C(b,$APP.Aq),h=$APP.C(b,$APP.cq),k=$APP.C(b,kB),m=$APP.C(b,$APP.Fq);b=$APP.C(b,$APP.Ur);m=Eaa(m);b=Gaa(b);h=$APP.n($APP.n(h)?b==null:h)?$APP.Wv:b!=null?$APP.nu:$APP.tj;return $APP.wg([lB,$APP.Yq,$APP.N,$APP.ot,$APP.Is,$APP.Xj,$APP.jv,$APP.Bj,$APP.lu],[iB(k),$APP.Di(a),m,$APP.z.j(h,$APP.nu)?b:null,h,$APP.D(e),jB(f),function(){var r=typeof c==="string"?c.trim():null;return $APP.n(r)?r:""}(),function(){var r=
4
+ typeof d==="string"?d.trim():null;return $APP.n(r)?r:""}()])},mB=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Yq);b=$APP.C(b,$APP.Xj);return $APP.n(a)?$APP.p(b):a},nB=function(a,b){var c=$APP.G(a);a=$APP.C(c,$APP.N);var d=$APP.C(c,$APP.lu);c=$APP.C(c,$APP.Bj);return new $APP.M(null,4,[$APP.N,hB(a),$APP.Zq,b,$APP.lu,d,$APP.Bj,c],null)},oB=function(a){var b=$APP.G(a);a=$APP.C(b,lB);b=$APP.C(b,$APP.jv);return $APP.D($APP.n(a)?b!=null&&b>0:a)},sB=function(a){var b=$APP.l(a,"__xToastRefs");if($APP.n(b))return b;
5
5
  b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("span"),h=document.createElement("slot"),k=document.createElement("span"),m=document.createElement("div"),r=document.createElement("span"),u=document.createElement("span"),x=document.createElement("button"),y=document.createElement("span"),B=document.createElement("div"),E=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;--x-toast-radius:var(--x-radius-lg,12px);--x-toast-padding-y:14px;--x-toast-padding-x:16px;--x-toast-gap:12px;--x-toast-font-size:var(--x-font-size-sm,0.875rem);--x-toast-heading-font-size:0.9375rem;--x-toast-heading-weight:600;--x-toast-min-width:min(280px,calc(100vw - 2rem));--x-toast-max-width:min(480px,calc(100vw - 2rem));--x-toast-border-width:1px;--x-toast-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12),0 1px 4px rgba(0,0,0,0.08));--x-toast-motion-fast:var(--x-transition-duration,120ms);--x-toast-motion-ease:var(--x-transition-easing,cubic-bezier(0.2,0,0,1));--x-toast-enter-duration:200ms;--x-toast-exit-duration:180ms;--x-toast-press-scale:0.97;--x-toast-disabled-opacity:0.55;--x-toast-focus-ring:var(--x-color-focus-ring,rgba(0,0,0,0.6));--x-toast-dismiss-color:var(--x-color-text-muted,rgba(0,0,0,0.50));--x-toast-dismiss-hover-bg:var(--x-color-surface-hover,rgba(0,0,0,0.06));--x-toast-progress-height:3px;--x-toast-progress-bg:var(--x-color-border,rgba(0,0,0,0.08));--x-toast-info-bg:var(--x-color-bg,#ffffff);--x-toast-info-border:rgba(0,102,204,0.30);--x-toast-info-color:rgba(15,23,42,0.92);--x-toast-info-icon-color:rgba(0,102,204,0.85);--x-toast-info-progress-fill:rgba(0,102,204,0.70);--x-toast-success-bg:var(--x-color-bg,#ffffff);--x-toast-success-border:rgba(16,140,72,0.30);--x-toast-success-color:rgba(15,23,42,0.92);--x-toast-success-icon-color:rgba(16,140,72,0.85);--x-toast-success-progress-fill:rgba(16,140,72,0.70);--x-toast-warning-bg:var(--x-color-bg,#ffffff);--x-toast-warning-border:rgba(204,120,0,0.40);--x-toast-warning-color:rgba(15,23,42,0.92);--x-toast-warning-icon-color:rgba(180,100,0,0.85);--x-toast-warning-progress-fill:rgba(204,120,0,0.70);--x-toast-error-bg:var(--x-color-bg,#ffffff);--x-toast-error-border:rgba(190,20,40,0.40);--x-toast-error-color:rgba(15,23,42,0.92);--x-toast-error-icon-color:rgba(190,20,40,0.85);--x-toast-error-progress-fill:rgba(190,20,40,0.70);--x-toast-bg:transparent;--x-toast-border-color:transparent;--x-toast-color:inherit;--x-toast-icon-color:inherit;--x-toast-progress-fill:currentColor;}@media (prefers-color-scheme:dark){:host{--x-toast-shadow:var(--x-shadow-md,0 4px 20px rgba(0,0,0,0.40),0 1px 6px rgba(0,0,0,0.30));--x-toast-focus-ring:var(--x-color-focus-ring,rgba(255,255,255,0.75));--x-toast-dismiss-color:var(--x-color-text-muted,rgba(255,255,255,0.65));--x-toast-dismiss-hover-bg:var(--x-color-surface-hover,rgba(255,255,255,0.12));--x-toast-progress-bg:var(--x-color-border,rgba(255,255,255,0.10));--x-toast-info-bg:var(--x-color-bg,#1e293b);--x-toast-info-border:rgba(80,160,255,0.35);--x-toast-info-color:rgba(248,250,252,0.92);--x-toast-info-icon-color:rgba(96,165,250,0.90);--x-toast-info-progress-fill:rgba(96,165,250,0.75);--x-toast-success-bg:var(--x-color-bg,#1e293b);--x-toast-success-border:rgba(60,210,120,0.35);--x-toast-success-color:rgba(248,250,252,0.92);--x-toast-success-icon-color:rgba(52,211,153,0.90);--x-toast-success-progress-fill:rgba(52,211,153,0.75);--x-toast-warning-bg:var(--x-color-bg,#1e293b);--x-toast-warning-border:rgba(255,190,90,0.40);--x-toast-warning-color:rgba(248,250,252,0.92);--x-toast-warning-icon-color:rgba(251,191,36,0.90);--x-toast-warning-progress-fill:rgba(251,191,36,0.75);--x-toast-error-bg:var(--x-color-bg,#1e293b);--x-toast-error-border:rgba(255,90,110,0.40);--x-toast-error-color:rgba(248,250,252,0.92);--x-toast-error-icon-color:rgba(248,113,113,0.90);--x-toast-error-progress-fill:rgba(248,113,113,0.75);}}:host([data-type\x3d'info']){--x-toast-bg:var(--x-toast-info-bg);--x-toast-border-color:var(--x-toast-info-border);--x-toast-color:var(--x-toast-info-color);--x-toast-icon-color:var(--x-toast-info-icon-color);--x-toast-progress-fill:var(--x-toast-info-progress-fill);}:host([data-type\x3d'success']){--x-toast-bg:var(--x-toast-success-bg);--x-toast-border-color:var(--x-toast-success-border);--x-toast-color:var(--x-toast-success-color);--x-toast-icon-color:var(--x-toast-success-icon-color);--x-toast-progress-fill:var(--x-toast-success-progress-fill);}:host([data-type\x3d'warning']){--x-toast-bg:var(--x-toast-warning-bg);--x-toast-border-color:var(--x-toast-warning-border);--x-toast-color:var(--x-toast-warning-color);--x-toast-icon-color:var(--x-toast-warning-icon-color);--x-toast-progress-fill:var(--x-toast-warning-progress-fill);}:host([data-type\x3d'error']){--x-toast-bg:var(--x-toast-error-bg);--x-toast-border-color:var(--x-toast-error-border);--x-toast-color:var(--x-toast-error-color);--x-toast-icon-color:var(--x-toast-error-icon-color);--x-toast-progress-fill:var(--x-toast-error-progress-fill);}[part\x3dcontainer]{display:flex;flex-direction:column;background:var(--x-toast-bg);border:var(--x-toast-border-width) solid var(--x-toast-border-color);border-radius:var(--x-toast-radius);box-shadow:var(--x-toast-shadow);color:var(--x-toast-color);min-width:var(--x-toast-min-width);max-width:var(--x-toast-max-width);overflow:hidden;transition:background var(--x-toast-motion-fast) var(--x-toast-motion-ease),border-color var(--x-toast-motion-fast) var(--x-toast-motion-ease),opacity var(--x-toast-motion-fast) var(--x-toast-motion-ease),transform var(--x-toast-motion-fast) var(--x-toast-motion-ease);}[part\x3dinner]{display:flex;align-items:flex-start;gap:var(--x-toast-gap);padding:var(--x-toast-padding-y) var(--x-toast-padding-x);}[part\x3dicon]{flex:0 0 auto;color:var(--x-toast-icon-color);line-height:1;margin-top:0.15em;}slot[name\x3dicon]::slotted(*){display:block;}[part\x3dbody]{flex:1 1 auto;display:flex;flex-direction:column;gap:3px;min-width:0;}[part\x3dheading]{font-size:var(--x-toast-heading-font-size);font-weight:var(--x-toast-heading-weight);line-height:1.2;overflow-wrap:anywhere;}[part\x3dmessage]{font-size:var(--x-toast-font-size);line-height:1.35;overflow-wrap:anywhere;opacity:0.82;}[part\x3ddismiss]{flex:0 0 auto;appearance:none;border:0;background:transparent;color:var(--x-toast-dismiss-color);width:1.5em;height:1.5em;padding:0;margin:0;border-radius:999px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background var(--x-toast-motion-fast) var(--x-toast-motion-ease),transform var(--x-toast-motion-fast) var(--x-toast-motion-ease);}:host(:not([disabled])) [part\x3ddismiss]:hover{background:var(--x-toast-dismiss-hover-bg);}:host(:not([disabled])) [part\x3ddismiss]:active{transform:scale(var(--x-toast-press-scale));}[part\x3ddismiss]:focus{outline:none;}:host(:not([disabled])) [part\x3ddismiss]:focus-visible{outline:2px solid var(--x-toast-focus-ring);outline-offset:2px;}:host([disabled]){opacity:var(--x-toast-disabled-opacity);}:host([disabled]) [part\x3ddismiss]{cursor:default;pointer-events:none;}[part\x3dprogress]{height:var(--x-toast-progress-height);background:var(--x-toast-progress-bg);overflow:hidden;display:none;}[part\x3dprogress-bar]{height:100%;width:100%;background:var(--x-toast-progress-fill);animation:x-toast-progress var(--x-toast-timeout,0ms) linear forwards;animation-play-state:paused;}:host([data-progress-active]) [part\x3dprogress-bar]{animation-play-state:running;}@keyframes x-toast-progress{from{width:100%;}to{width:0%;}}:host([data-entering]) [part\x3dcontainer]{animation:x-toast-enter var(--x-toast-enter-duration) var(--x-toast-motion-ease) both;}@keyframes x-toast-enter{from{opacity:0;transform:translateY(-8px);}to{opacity:1;transform:translateY(0);}}:host([data-exiting]) [part\x3dcontainer]{animation:x-toast-exit var(--x-toast-exit-duration) var(--x-toast-motion-ease) forwards;}@keyframes x-toast-exit{from{opacity:1;transform:translateY(0);}to{opacity:0;transform:translateY(-8px);}}@media (prefers-reduced-motion:reduce){[part\x3dcontainer],[part\x3ddismiss]{transition:none !important;}:host([data-entering]) [part\x3dcontainer],:host([data-exiting]) [part\x3dcontainer]{animation:none !important;}:host([data-progress-active]) [part\x3dprogress-bar]{animation:none !important;}}";
6
6
  $APP.S(d,"part","container");$APP.S(e,"part","inner");$APP.S(f,"part","icon");$APP.S(f,"aria-hidden","true");$APP.S(h,"name","icon");$APP.S(k,"part","default-icon");h.appendChild(k);f.appendChild(h);$APP.S(m,"part","body");$APP.S(r,"part","heading");$APP.S(u,"part","message");m.appendChild(r);m.appendChild(u);$APP.S(x,"part","dismiss");$APP.S(x,"type","button");$APP.S(x,"aria-label","Dismiss toast");$APP.S(y,"aria-hidden","true");y.textContent="×";x.appendChild(y);e.appendChild(f);e.appendChild(m);
7
- e.appendChild(x);$APP.S(B,"part","progress");$APP.S(E,"part","progress-bar");B.appendChild(E);d.appendChild(e);d.appendChild(B);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xToastRefs",$APP.vg([uB,$APP.Nv,vB,$APP.rt,$APP.tv,zaa,$APP.Sk,$APP.Tk,$APP.wr,$APP.Yp,$APP.Kr,wB],[E,k,u,x,m,e,b,d,B,f,h,r]));return $APP.l(a,"__xToastRefs")},yB=function(a){return yaa($APP.vg([$APP.Hr,$APP.Pj,$APP.zq,$APP.bq,pB,$APP.Sr,$APP.Eq,$APP.Aj,$APP.ju],[a.getAttribute("dismissible"),a.hasAttribute("disabled"),a.getAttribute("timeout-ms"),
8
- a.hasAttribute("icon"),a.getAttribute("show-progress"),a.getAttribute("icon"),a.getAttribute("type"),a.getAttribute("message"),a.getAttribute("heading")]))},CB=function(a){var b=yB(a);if($APP.I($APP.l(a,"__xToastModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.N),d=$APP.C(b,$APP.ju),e=$APP.C(b,$APP.Aj),f=$APP.C(b,$APP.Xq),h=$APP.C(b,$APP.Wj),k=$APP.C(b,$APP.gv),m=xB(a),r=$APP.G(m),u=$APP.C(r,$APP.Kr),x=$APP.C(r,wB);m=$APP.C(r,uB);var y=$APP.C(r,$APP.Nv),B=$APP.C(r,vB),E=$APP.C(r,$APP.rt),H=$APP.C(r,$APP.Tk),
9
- O=$APP.C(r,$APP.wr);r=$APP.C(r,$APP.Yp);$APP.S(a,"data-type",mB(c));var T=$APP.z.j(c,$APP.Uu)||$APP.z.j(c,$APP.vj)?"alert":"status";$APP.S(H,"role",T);x.textContent=d;x.style.display=$APP.z.j(d,"")?"none":"";B.textContent=e;d=$APP.n(u)?u.assignedNodes().length>0:null;u=$APP.G(b);e=$APP.C(u,$APP.Gs);u=$APP.C(u,$APP.mt);$APP.z.j(e,$APP.lu)?c=u:(c=$APP.C(zB,c),c=$APP.n(c)?c:$APP.C(zB,$APP.Wt));d=$APP.p(d)&&$APP.z.j(e,$APP.Tv);d=$APP.G(new $APP.M(null,2,[AB,d,BB,c],null));c=$APP.C(d,AB);d=$APP.C(d,BB);
10
- $APP.n(c)?(y.textContent="",r.style.display="none"):(y.textContent=d,r.style.display="inline");$APP.n(f)?(E.disabled=$APP.D(h),E.style.display="inline-flex"):(E.disabled=!0,E.style.display="none");y=tB(b);$APP.n(y)?(O.style.display="block",m.style.setProperty("--x-toast-timeout",""+$APP.P.i(k)+"ms")):O.style.display="none";f=$APP.n(f)?$APP.p(h):f;a.tabIndex=$APP.n(f)?0:-1;$APP.n(h)?$APP.S(a,"aria-disabled","true"):$APP.U(a,"aria-disabled");$APP.n(f)?$APP.S(a,"aria-keyshortcuts","Escape"):$APP.U(a,
11
- "aria-keyshortcuts");$APP.Q(a,"__xToastModel",b)}},DB=function(){return $APP.D(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},EB=function(a){a=typeof a==="string"?a.trim():"";return $APP.z.j(a,"")||$APP.z.j(a,"0")||$APP.z.j(a,"0ms")||$APP.z.j(a,"0s")?0:$APP.n(a.endsWith("ms"))?(a=parseFloat(a.slice(0,a.length-2)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(a))):$APP.n(a.endsWith("s"))?(a=parseFloat(a.slice(0,a.length-1)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(1E3*a))):0},FB=function(a){var b=
12
- $APP.l(a,"__xToastTimeout");$APP.n(b)&&(clearTimeout(b),$APP.Q(a,"__xToastTimeout",null))},JB=function(a){FB(a);var b=function(){var c=$APP.l(a,"__xToastModel");return $APP.n(c)?c:yB(a)}();return $APP.n(function(){var c=rB(b);return $APP.n(c)?typeof $APP.gv.i(b)==="number"&&$APP.p($APP.l(a,"__xToastExiting")):c}())?$APP.Q(a,"__xToastTimeout",setTimeout(function(){$APP.Q(a,"__xToastTimeout",null);if($APP.n(function(){var d=a.isConnected;return $APP.n(d)?$APP.p($APP.l(a,"__xToastExiting")):d}())){var c=
13
- function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:yB(a)}();if($APP.n(rB(c)))return c=$APP.$m(sB(c,"timeout")),$APP.gj(a,"x-toast-dismiss",c)?IB.i?IB.i(a):IB.call(null,a):null}return null},$APP.gv.i(b))):null},KB=function(a){var b=$APP.l(a,"__xToastModel");$APP.n($APP.n(b)?tB(b):b)&&$APP.S(a,"data-progress-active","");return JB(a)},Aaa=function(a){if($APP.n($APP.l(a,"__xToastEntered")))return null;$APP.Q(a,"__xToastEntered",!0);$APP.S(a,"data-entering","");if(DB())return $APP.U(a,"data-entering"),
14
- KB(a);var b=xB(a);b=$APP.G(b);var c=$APP.C(b,$APP.Tk);return c.addEventListener("animationend",function f(e){return $APP.z.j(e.target,c)?(c.removeEventListener("animationend",f),$APP.U(a,"data-entering"),KB(a)):null})},Baa=function(a,b,c){var d=function h(f){return $APP.z.j(f.target,b)?(b.removeEventListener("animationend",h),f=$APP.l(a,"__xToastExitTimer"),$APP.n(f)&&(clearTimeout(f),$APP.Q(a,"__xToastExitTimer",null)),$APP.n(a.isConnected)?a.remove():null):null};$APP.S(a,"data-exiting","");b.addEventListener("animationend",
15
- d);return $APP.Q(a,"__xToastExitTimer",setTimeout(function(){var f=a.isConnected;return $APP.n($APP.n(f)?$APP.l(a,"__xToastExiting"):f)?(b.removeEventListener("animationend",d),$APP.Q(a,"__xToastExitTimer",null),a.remove()):null},c+60))},IB=function(a){if($APP.n($APP.l(a,"__xToastExiting")))return null;$APP.Q(a,"__xToastExiting",!0);FB(a);$APP.U(a,"data-entering");$APP.U(a,"data-progress-active");var b=window.getComputedStyle(a);var c=EB(b.getPropertyValue("--x-toast-exit-duration"));b=EB(b.getPropertyValue("--x-motion-exit-duration"));
16
- c=c>0?c:b>0?b:180;if(c===0||DB())return a.remove();b=xB(a);b=$APP.G(b);b=$APP.C(b,$APP.Tk);return Baa(a,b,c)},LB=function(a,b){var c=$APP.l(a,"__xToastModel");c=$APP.n(c)?c:yB(a);b=$APP.$m(sB(c,b));(b=$APP.gj(a,"x-toast-dismiss",b))&&IB(a);return b},Caa=function(a,b){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:yB(a)}();return $APP.n(function(){var d=rB(c);return $APP.n(d)?$APP.p($APP.l(a,"__xToastExiting")):d}())?(b.preventDefault(),LB(a,"button")):null},Daa=function(a,b){if($APP.z.j(b.key,
17
- "Escape")){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:yB(a)}();if($APP.n(function(){var d=rB(c);return $APP.n(d)?$APP.p($APP.l(a,"__xToastExiting")):d}()))return b.preventDefault(),LB(a,"keyboard")}return null},Eaa=function(a){function b(e){return Daa(a,e)}function c(e){return Caa(a,e)}var d=xB(a);d=$APP.G(d);$APP.C(d,$APP.rt).addEventListener("click",c);a.addEventListener("keydown",b);$APP.Q(a,"__xToastHandlers",{click:c,keydown:b})},MB=function(a){FB(a);var b=$APP.l(a,"__xToastExitTimer");
18
- $APP.n(b)&&(clearTimeout(b),$APP.Q(a,"__xToastExitTimer",null));b=$APP.l(a,"__xToastHandlers");var c=$APP.l(a,"__xToastRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.rt.i(c);var d=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n(d)&&c.removeEventListener("click",d);$APP.n(b)&&a.removeEventListener("keydown",b)}return $APP.Q(a,"__xToastHandlers",null)},Faa=function(a){$APP.mj(a,"type","type","info");$APP.mj(a,"heading","heading","");$APP.mj(a,"message","message","");$APP.nj(a,"icon","icon");$APP.kj(a,"dismissible",
19
- "dismissible");$APP.jj(a,"disabled","disabled");Object.defineProperty(a,"timeoutMs",{get:function(){return oB(this.getAttribute("timeout-ms"))},set:function(b){return b==null?$APP.U(this,"timeout-ms"):$APP.S(this,"timeout-ms",""+$APP.P.i(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"showProgress",{get:function(){return nB(this.getAttribute("show-progress"))},set:function(b){return $APP.n(b)?$APP.S(this,"show-progress",""):$APP.U(this,"show-progress")},enumerable:!0,configurable:!0})},
20
- Gaa=function(a){return Object.defineProperty(a,"dismiss",{value:function(b){var c=$APP.p($APP.l(this,"__xToastExiting"));$APP.n(c?this.isConnected:c)&&LB(this,typeof b==="string"?b:"api");return null},writable:!0,configurable:!0})},Haa=function(a){xB(a);MB(a);Eaa(a);CB(a);return Aaa(a)},Iaa=function(a){return MB(a)},Jaa=function(a,b,c,d){return $APP.I(c,d)?(CB(a),$APP.n(a.isConnected)?JB(a):null):null},Laa=function(){return $APP.ri("x-toast",new $APP.M(null,5,[$APP.ii,Kaa,$APP.gi,Haa,$APP.di,Iaa,
21
- $APP.ci,Jaa,$APP.hi,function(a){Faa(a);return Gaa(a)}],null))},NB=function(){return Laa()},wB=new $APP.F(null,"heading-el","heading-el",-1277272161),qB=new $APP.F(null,"show-progress?","show-progress?",-1681518912),zaa=new $APP.F(null,"inner","inner",-1383171215),AB=new $APP.F(null,"hide?","hide?",-988635670),BB=new $APP.F(null,"fallback","fallback",761637929),vB=new $APP.F(null,"message-el","message-el",-683533234),uB=new $APP.F(null,"progress-bar","progress-bar",-123877022),pB=new $APP.F(null,"show-progress-attr",
22
- "show-progress-attr",1680262066);var Kaa="type heading message icon dismissible disabled timeout-ms show-progress".split(" ");$APP.ie(["x-toast-dismiss",new $APP.M(null,2,[$APP.V,new $APP.M(null,4,[$APP.N,$APP.X,$APP.Yq,$APP.X,$APP.ju,$APP.X,$APP.Aj,$APP.X],null),$APP.Xu,!0],null)]);
23
- var uaa=new $APP.M(null,4,["info",$APP.Wt,"success",$APP.ft,"warning",$APP.Uu,"error",$APP.vj],null),waa=new $APP.M(null,4,[$APP.Wt,"info",$APP.ft,"success",$APP.Uu,"warning",$APP.vj,"error"],null),zB=new $APP.M(null,4,[$APP.Wt,"ℹ",$APP.ft,"✓",$APP.Uu,"!",$APP.vj,"⨯"],null);$APP.ha("baredom.exports.x_toast.init",NB);export const init=NB;
7
+ e.appendChild(x);$APP.S(B,"part","progress");$APP.S(E,"part","progress-bar");B.appendChild(E);d.appendChild(e);d.appendChild(B);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xToastRefs",$APP.wg([pB,$APP.Qv,qB,$APP.tt,$APP.wv,Iaa,$APP.Tk,$APP.Uk,$APP.yr,$APP.Zp,$APP.Mr,rB],[E,k,u,x,m,e,b,d,B,f,h,r]));return $APP.l(a,"__xToastRefs")},tB=function(a){return Haa($APP.wg([$APP.Jr,$APP.Qj,$APP.Aq,$APP.cq,kB,$APP.Ur,$APP.Fq,$APP.Bj,$APP.lu],[a.getAttribute("dismissible"),a.hasAttribute("disabled"),a.getAttribute("timeout-ms"),
8
+ a.hasAttribute("icon"),a.getAttribute("show-progress"),a.getAttribute("icon"),a.getAttribute("type"),a.getAttribute("message"),a.getAttribute("heading")]))},wB=function(a){var b=tB(a);if($APP.I($APP.l(a,"__xToastModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.N),d=$APP.C(b,$APP.lu),e=$APP.C(b,$APP.Bj),f=$APP.C(b,$APP.Yq),h=$APP.C(b,$APP.Xj),k=$APP.C(b,$APP.jv),m=sB(a),r=$APP.G(m),u=$APP.C(r,$APP.Mr),x=$APP.C(r,rB);m=$APP.C(r,pB);var y=$APP.C(r,$APP.Qv),B=$APP.C(r,qB),E=$APP.C(r,$APP.tt),H=$APP.C(r,$APP.Uk),
9
+ O=$APP.C(r,$APP.yr);r=$APP.C(r,$APP.Zp);$APP.S(a,"data-type",hB(c));var T=$APP.z.j(c,$APP.Xu)||$APP.z.j(c,$APP.wj)?"alert":"status";$APP.S(H,"role",T);x.textContent=d;x.style.display=$APP.z.j(d,"")?"none":"";B.textContent=e;d=$APP.n(u)?u.assignedNodes().length>0:null;u=$APP.G(b);e=$APP.C(u,$APP.Is);u=$APP.C(u,$APP.ot);$APP.z.j(e,$APP.nu)?c=u:(c=$APP.C(uB,c),c=$APP.n(c)?c:$APP.C(uB,$APP.Yt));d=$APP.p(d)&&$APP.z.j(e,$APP.Wv);d=$APP.G(new $APP.M(null,2,[vB,d,$APP.Eu,c],null));c=$APP.C(d,vB);d=$APP.C(d,
10
+ $APP.Eu);$APP.n(c)?(y.textContent="",r.style.display="none"):(y.textContent=d,r.style.display="inline");$APP.n(f)?(E.disabled=$APP.D(h),E.style.display="inline-flex"):(E.disabled=!0,E.style.display="none");y=oB(b);$APP.n(y)?(O.style.display="block",m.style.setProperty("--x-toast-timeout",""+$APP.P.i(k)+"ms")):O.style.display="none";f=$APP.n(f)?$APP.p(h):f;a.tabIndex=$APP.n(f)?0:-1;$APP.n(h)?$APP.S(a,"aria-disabled","true"):$APP.U(a,"aria-disabled");$APP.n(f)?$APP.S(a,"aria-keyshortcuts","Escape"):
11
+ $APP.U(a,"aria-keyshortcuts");$APP.Q(a,"__xToastModel",b)}},xB=function(){return $APP.D(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},yB=function(a){a=typeof a==="string"?a.trim():"";return $APP.z.j(a,"")||$APP.z.j(a,"0")||$APP.z.j(a,"0ms")||$APP.z.j(a,"0s")?0:$APP.n(a.endsWith("ms"))?(a=parseFloat(a.slice(0,a.length-2)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(a))):$APP.n(a.endsWith("s"))?(a=parseFloat(a.slice(0,a.length-1)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(1E3*a))):0},zB=
12
+ function(a){var b=$APP.l(a,"__xToastTimeout");$APP.n(b)&&(clearTimeout(b),$APP.Q(a,"__xToastTimeout",null))},BB=function(a){zB(a);var b=function(){var c=$APP.l(a,"__xToastModel");return $APP.n(c)?c:tB(a)}();return $APP.n(function(){var c=mB(b);return $APP.n(c)?typeof $APP.jv.i(b)==="number"&&$APP.p($APP.l(a,"__xToastExiting")):c}())?$APP.Q(a,"__xToastTimeout",setTimeout(function(){$APP.Q(a,"__xToastTimeout",null);if($APP.n(function(){var d=a.isConnected;return $APP.n(d)?$APP.p($APP.l(a,"__xToastExiting")):
13
+ d}())){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:tB(a)}();if($APP.n(mB(c)))return c=$APP.an(nB(c,"timeout")),$APP.hj(a,"x-toast-dismiss",c)?AB.i?AB.i(a):AB.call(null,a):null}return null},$APP.jv.i(b))):null},CB=function(a){var b=$APP.l(a,"__xToastModel");$APP.n($APP.n(b)?oB(b):b)&&$APP.S(a,"data-progress-active","");return BB(a)},Jaa=function(a){if($APP.n($APP.l(a,"__xToastEntered")))return null;$APP.Q(a,"__xToastEntered",!0);$APP.S(a,"data-entering","");if(xB())return $APP.U(a,
14
+ "data-entering"),CB(a);var b=sB(a);b=$APP.G(b);var c=$APP.C(b,$APP.Uk);return c.addEventListener("animationend",function f(e){return $APP.z.j(e.target,c)?(c.removeEventListener("animationend",f),$APP.U(a,"data-entering"),CB(a)):null})},Kaa=function(a,b,c){var d=function h(f){return $APP.z.j(f.target,b)?(b.removeEventListener("animationend",h),f=$APP.l(a,"__xToastExitTimer"),$APP.n(f)&&(clearTimeout(f),$APP.Q(a,"__xToastExitTimer",null)),$APP.n(a.isConnected)?a.remove():null):null};$APP.S(a,"data-exiting",
15
+ "");b.addEventListener("animationend",d);return $APP.Q(a,"__xToastExitTimer",setTimeout(function(){var f=a.isConnected;return $APP.n($APP.n(f)?$APP.l(a,"__xToastExiting"):f)?(b.removeEventListener("animationend",d),$APP.Q(a,"__xToastExitTimer",null),a.remove()):null},c+60))},AB=function(a){if($APP.n($APP.l(a,"__xToastExiting")))return null;$APP.Q(a,"__xToastExiting",!0);zB(a);$APP.U(a,"data-entering");$APP.U(a,"data-progress-active");var b=window.getComputedStyle(a);var c=yB(b.getPropertyValue("--x-toast-exit-duration"));
16
+ b=yB(b.getPropertyValue("--x-motion-exit-duration"));c=c>0?c:b>0?b:180;if(c===0||xB())return a.remove();b=sB(a);b=$APP.G(b);b=$APP.C(b,$APP.Uk);return Kaa(a,b,c)},DB=function(a,b){var c=$APP.l(a,"__xToastModel");c=$APP.n(c)?c:tB(a);b=$APP.an(nB(c,b));(b=$APP.hj(a,"x-toast-dismiss",b))&&AB(a);return b},Laa=function(a,b){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:tB(a)}();return $APP.n(function(){var d=mB(c);return $APP.n(d)?$APP.p($APP.l(a,"__xToastExiting")):d}())?(b.preventDefault(),
17
+ DB(a,"button")):null},Maa=function(a,b){if($APP.z.j(b.key,"Escape")){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:tB(a)}();if($APP.n(function(){var d=mB(c);return $APP.n(d)?$APP.p($APP.l(a,"__xToastExiting")):d}()))return b.preventDefault(),DB(a,"keyboard")}return null},Naa=function(a){function b(e){return Maa(a,e)}function c(e){return Laa(a,e)}var d=sB(a);d=$APP.G(d);$APP.C(d,$APP.tt).addEventListener("click",c);a.addEventListener("keydown",b);$APP.Q(a,"__xToastHandlers",{click:c,
18
+ keydown:b})},EB=function(a){zB(a);var b=$APP.l(a,"__xToastExitTimer");$APP.n(b)&&(clearTimeout(b),$APP.Q(a,"__xToastExitTimer",null));b=$APP.l(a,"__xToastHandlers");var c=$APP.l(a,"__xToastRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.tt.i(c);var d=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n(d)&&c.removeEventListener("click",d);$APP.n(b)&&a.removeEventListener("keydown",b)}return $APP.Q(a,"__xToastHandlers",null)},Oaa=function(a){$APP.nj(a,"type","type","info");$APP.nj(a,"heading","heading","");$APP.nj(a,
19
+ "message","message","");$APP.oj(a,"icon","icon");$APP.lj(a,"dismissible","dismissible");$APP.kj(a,"disabled","disabled");Object.defineProperty(a,"timeoutMs",{get:function(){return jB(this.getAttribute("timeout-ms"))},set:function(b){return b==null?$APP.U(this,"timeout-ms"):$APP.S(this,"timeout-ms",""+$APP.P.i(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"showProgress",{get:function(){return iB(this.getAttribute("show-progress"))},set:function(b){return $APP.n(b)?$APP.S(this,"show-progress",
20
+ ""):$APP.U(this,"show-progress")},enumerable:!0,configurable:!0})},Paa=function(a){return Object.defineProperty(a,"dismiss",{value:function(b){var c=$APP.p($APP.l(this,"__xToastExiting"));$APP.n(c?this.isConnected:c)&&DB(this,typeof b==="string"?b:"api");return null},writable:!0,configurable:!0})},Qaa=function(a){sB(a);EB(a);Naa(a);wB(a);return Jaa(a)},Raa=function(a){return EB(a)},Saa=function(a,b,c,d){return $APP.I(c,d)?(wB(a),$APP.n(a.isConnected)?BB(a):null):null},Uaa=function(){return $APP.si("x-toast",
21
+ new $APP.M(null,5,[$APP.ji,Taa,$APP.hi,Qaa,$APP.ei,Raa,$APP.di,Saa,$APP.ii,function(a){Oaa(a);return Paa(a)}],null))},FB=function(){return Uaa()},rB=new $APP.F(null,"heading-el","heading-el",-1277272161),lB=new $APP.F(null,"show-progress?","show-progress?",-1681518912),Iaa=new $APP.F(null,"inner","inner",-1383171215),vB=new $APP.F(null,"hide?","hide?",-988635670),qB=new $APP.F(null,"message-el","message-el",-683533234),pB=new $APP.F(null,"progress-bar","progress-bar",-123877022),kB=new $APP.F(null,
22
+ "show-progress-attr","show-progress-attr",1680262066);var Taa="type heading message icon dismissible disabled timeout-ms show-progress".split(" ");$APP.je(["x-toast-dismiss",new $APP.M(null,2,[$APP.V,new $APP.M(null,4,[$APP.N,$APP.X,$APP.Zq,$APP.X,$APP.lu,$APP.X,$APP.Bj,$APP.X],null),$APP.$u,!0],null)]);
23
+ var Daa=new $APP.M(null,4,["info",$APP.Yt,"success",$APP.ht,"warning",$APP.Xu,"error",$APP.wj],null),Faa=new $APP.M(null,4,[$APP.Yt,"info",$APP.ht,"success",$APP.Xu,"warning",$APP.wj,"error"],null),uB=new $APP.M(null,4,[$APP.Yt,"ℹ",$APP.ht,"✓",$APP.Xu,"!",$APP.wj,"⨯"],null);$APP.ha("baredom.exports.x_toast.init",FB);export const init=FB;
package/dist/x-toaster.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var bD=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.cd(yba,a)?a:"top-end"},cD=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},dD=function(a){if(!$APP.Ui(a,"__xToasterInitialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=zba;b.appendChild(c);b.appendChild(d);$APP.Vi(a,"__xToasterInitialized")}},gD=function(a){a=new $APP.M(null,3,
3
- [$APP.ks,a.getAttribute("position"),eD,a.getAttribute("max-toasts"),$APP.Oj,a.getAttribute("label")],null);var b=$APP.G(a),c=$APP.C(b,$APP.ks);a=$APP.C(b,eD);b=$APP.C(b,$APP.Oj);c=bD(c);a=cD(a);return new $APP.M(null,3,[$APP.Uv,c,fD,$APP.n(a)?a:5,$APP.Z,typeof b==="string"&&$APP.I(b.trim(),"")?b:"Notifications"],null)},hD=function(a){var b=gD(a);if($APP.I($APP.l(a,"__xToasterModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Uv),d=$APP.C(b,$APP.Z);dD(a);$APP.S(a,"role","region");$APP.S(a,"aria-label",d);
4
- $APP.S(a,"data-position",c);a=$APP.Q(a,"__xToasterModel",b)}else a=null;return a},Aba=function(a){function b(c){var d=c.detail;if($APP.I($APP.l(d,"reason"),"toaster-remove")){c.preventDefault();var e=$APP.l(d,"type"),f=$APP.l(d,"reason"),h=$APP.l(d,"heading");d=$APP.l(d,"message");e=$APP.$m(new $APP.M(null,4,[$APP.N,$APP.n(e)?e:"info",$APP.Yq,$APP.n(f)?f:"",$APP.ju,$APP.n(h)?h:"",$APP.Aj,$APP.n(d)?d:""],null));c=$APP.gj(a,"x-toaster-dismiss",e)?c.target.dismiss("toaster-remove"):null}else c=null;
5
- return c}a.addEventListener("x-toast-dismiss",b);$APP.Q(a,"__xToasterHandlers",{dismiss:b})},iD=function(a){var b=$APP.l(a,"__xToasterHandlers");$APP.n(b)&&(b=$APP.l(b,"dismiss"),$APP.n(b)&&a.removeEventListener("x-toast-dismiss",b));return $APP.Q(a,"__xToasterHandlers",null)},Bba=function(a){$APP.pj(a,"position","position",bD);Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Notifications"},set:function(b){return $APP.n($APP.n(b)?$APP.I(b,""):b)?
6
- $APP.S(this,"label",""+$APP.P.i(b)):$APP.U(this,"label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"maxToasts",{get:function(){var b=cD(this.getAttribute("max-toasts"));return $APP.n(b)?b:5},set:function(b){return b==null?$APP.U(this,"max-toasts"):$APP.S(this,"max-toasts",""+$APP.P.i(Math.floor(b)))},enumerable:!0,configurable:!0});return Object.defineProperty(a,"toast",{value:function(b){b=$APP.n(b)?b:{};var c=$APP.l(this,"__xToasterModel");c=$APP.n(c)?c:gD(this);var d=fD.i(c);c=this.querySelectorAll("x-toast");
2
+ var WC=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.dd(Hba,a)?a:"top-end"},XC=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},YC=function(a){if(!$APP.Vi(a,"__xToasterInitialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=Iba;b.appendChild(c);b.appendChild(d);$APP.Wi(a,"__xToasterInitialized")}},aD=function(a){a=new $APP.M(null,3,
3
+ [$APP.ms,a.getAttribute("position"),ZC,a.getAttribute("max-toasts"),$APP.Pj,a.getAttribute("label")],null);var b=$APP.G(a),c=$APP.C(b,$APP.ms);a=$APP.C(b,ZC);b=$APP.C(b,$APP.Pj);c=WC(c);a=XC(a);return new $APP.M(null,3,[$APP.Xv,c,$C,$APP.n(a)?a:5,$APP.Z,typeof b==="string"&&$APP.I(b.trim(),"")?b:"Notifications"],null)},bD=function(a){var b=aD(a);if($APP.I($APP.l(a,"__xToasterModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Xv),d=$APP.C(b,$APP.Z);YC(a);$APP.S(a,"role","region");$APP.S(a,"aria-label",d);
4
+ $APP.S(a,"data-position",c);a=$APP.Q(a,"__xToasterModel",b)}else a=null;return a},Jba=function(a){function b(c){var d=c.detail;if($APP.I($APP.l(d,"reason"),"toaster-remove")){c.preventDefault();var e=$APP.l(d,"type"),f=$APP.l(d,"reason"),h=$APP.l(d,"heading");d=$APP.l(d,"message");e=$APP.an(new $APP.M(null,4,[$APP.N,$APP.n(e)?e:"info",$APP.Zq,$APP.n(f)?f:"",$APP.lu,$APP.n(h)?h:"",$APP.Bj,$APP.n(d)?d:""],null));c=$APP.hj(a,"x-toaster-dismiss",e)?c.target.dismiss("toaster-remove"):null}else c=null;
5
+ return c}a.addEventListener("x-toast-dismiss",b);$APP.Q(a,"__xToasterHandlers",{dismiss:b})},cD=function(a){var b=$APP.l(a,"__xToasterHandlers");$APP.n(b)&&(b=$APP.l(b,"dismiss"),$APP.n(b)&&a.removeEventListener("x-toast-dismiss",b));return $APP.Q(a,"__xToasterHandlers",null)},Kba=function(a){$APP.qj(a,"position","position",WC);Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Notifications"},set:function(b){return $APP.n($APP.n(b)?$APP.I(b,""):b)?
6
+ $APP.S(this,"label",""+$APP.P.i(b)):$APP.U(this,"label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"maxToasts",{get:function(){var b=XC(this.getAttribute("max-toasts"));return $APP.n(b)?b:5},set:function(b){return b==null?$APP.U(this,"max-toasts"):$APP.S(this,"max-toasts",""+$APP.P.i(Math.floor(b)))},enumerable:!0,configurable:!0});return Object.defineProperty(a,"toast",{value:function(b){b=$APP.n(b)?b:{};var c=$APP.l(this,"__xToasterModel");c=$APP.n(c)?c:aD(this);var d=$C.i(c);c=this.querySelectorAll("x-toast");
7
7
  var e=c.length;if(e>=d)for(d=e-d- -1,e=0;;)if(e<d)c[e].dismiss("toaster-remove"),e+=1;else break;c=document.createElement("x-toast");d=$APP.l(b,"type");$APP.n(d)&&$APP.S(c,"type",d);d=$APP.l(b,"heading");$APP.n(d)&&$APP.S(c,"heading",d);d=$APP.l(b,"message");$APP.n(d)&&$APP.S(c,"message",d);d=$APP.l(b,"icon");$APP.n(d)&&$APP.S(c,"icon",d);$APP.l(b,"dismissible")===!1&&$APP.S(c,"dismissible","false");d=$APP.l(b,"timeoutMs");$APP.n(d)&&$APP.S(c,"timeout-ms",""+$APP.P.i(d));$APP.n($APP.l(b,"showProgress"))&&
8
- $APP.S(c,"show-progress","");this.appendChild(c);return c},writable:!0,configurable:!0})},Cba=function(a){dD(a);iD(a);Aba(a);return hD(a)},Dba=function(a){return iD(a)},Eba=function(a,b,c,d){return $APP.I(c,d)?hD(a):null},jD=function(){return $APP.ri("x-toaster",new $APP.M(null,5,[$APP.ii,Fba,$APP.gi,Cba,$APP.di,Dba,$APP.ci,Eba,$APP.hi,Bba],null))},eD=new $APP.F(null,"max-toasts-raw","max-toasts-raw",-815087069),fD=new $APP.F(null,"max-toasts","max-toasts",-1982289139);var Fba=["position","max-toasts","label"];$APP.ie(["x-toaster-dismiss",new $APP.M(null,2,[$APP.V,new $APP.M(null,4,[$APP.N,$APP.X,$APP.Yq,$APP.X,$APP.ju,$APP.X,$APP.Aj,$APP.X],null),$APP.Xu,!0],null)]);var yba=new $APP.bh(null,new $APP.M(null,6,["top-center",null,"bottom-start",null,"bottom-end",null,"bottom-center",null,"top-end",null,"top-start",null],null),null);var zba=":host{display:flex;position:fixed;z-index:var(--x-toaster-z-index,9000);gap:var(--x-toaster-gap,8px);width:max-content;max-width:var(--x-toaster-max-width,min(480px,calc(100vw - 2rem)));box-sizing:border-box;pointer-events:none;color-scheme:light dark;}::slotted("+$APP.P.i("x-toast")+"){pointer-events:auto;}slot{display:contents;}:host([data-position\x3d'top-start']){top:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'top-center']){top:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column-reverse;align-items:center;}:host([data-position\x3d'top-end']){top:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'bottom-start']){bottom:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column;}:host([data-position\x3d'bottom-center']){bottom:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column;align-items:center;}:host([data-position\x3d'bottom-end']){bottom:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column;}";$APP.ha("baredom.exports.x_toaster.init",jD);export const init=jD;
8
+ $APP.S(c,"show-progress","");this.appendChild(c);return c},writable:!0,configurable:!0})},Lba=function(a){YC(a);cD(a);Jba(a);return bD(a)},Mba=function(a){return cD(a)},Nba=function(a,b,c,d){return $APP.I(c,d)?bD(a):null},dD=function(){return $APP.si("x-toaster",new $APP.M(null,5,[$APP.ji,Oba,$APP.hi,Lba,$APP.ei,Mba,$APP.di,Nba,$APP.ii,Kba],null))},ZC=new $APP.F(null,"max-toasts-raw","max-toasts-raw",-815087069),$C=new $APP.F(null,"max-toasts","max-toasts",-1982289139);var Oba=["position","max-toasts","label"];$APP.je(["x-toaster-dismiss",new $APP.M(null,2,[$APP.V,new $APP.M(null,4,[$APP.N,$APP.X,$APP.Zq,$APP.X,$APP.lu,$APP.X,$APP.Bj,$APP.X],null),$APP.$u,!0],null)]);var Hba=new $APP.ch(null,new $APP.M(null,6,["top-center",null,"bottom-start",null,"bottom-end",null,"bottom-center",null,"top-end",null,"top-start",null],null),null);var Iba=":host{display:flex;position:fixed;z-index:var(--x-toaster-z-index,9000);gap:var(--x-toaster-gap,8px);width:max-content;max-width:var(--x-toaster-max-width,min(480px,calc(100vw - 2rem)));box-sizing:border-box;pointer-events:none;color-scheme:light dark;}::slotted("+$APP.P.i("x-toast")+"){pointer-events:auto;}slot{display:contents;}:host([data-position\x3d'top-start']){top:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'top-center']){top:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column-reverse;align-items:center;}:host([data-position\x3d'top-end']){top:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'bottom-start']){bottom:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column;}:host([data-position\x3d'bottom-center']){bottom:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column;align-items:center;}:host([data-position\x3d'bottom-end']){bottom:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column;}";$APP.ha("baredom.exports.x_toaster.init",dD);export const init=dD;
package/dist/x-tooltip.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var QC=function(a){a=new $APP.M(null,5,[$APP.Em,a.getAttribute("text"),$APP.bw,a.getAttribute("placement"),OC,a.getAttribute("delay"),$APP.Pj,a.hasAttribute("disabled"),$APP.Nq,a.hasAttribute("open")],null);var b=$APP.G(a),c=$APP.C(b,$APP.Em),d=$APP.C(b,$APP.bw),e=$APP.C(b,OC);a=$APP.C(b,$APP.Pj);b=$APP.C(b,$APP.Nq);c=$APP.n(c)?c:"";d=$APP.cd(qba,d)?d:"top";e!=null?(e=parseInt(e,10),e=$APP.n(isNaN(e))?400:$APP.Rl.j($APP.Ql.j(e,0),5E3)):e=400;return new $APP.M(null,5,[$APP.Sm,c,$APP.es,d,PC,e,$APP.Wj,
3
- $APP.D(a),$APP.yv,$APP.D(b)],null)},RC=function(a){var b=QC(a);if($APP.I($APP.l(a,"__xTooltipModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Sm),d=$APP.C(b,$APP.es),e=$APP.C(b,$APP.yv),f=$APP.l(a,"__xTooltipRefs");if($APP.n(f)){var h=$APP.l(f,"panel");f=$APP.l(f,"text");$APP.S(h,"data-placement",d);$APP.S(h,"aria-hidden",""+$APP.P.i($APP.p(e)));f.textContent=c;$APP.Q(a,"__xTooltipModel",b)}}},SC=function(a){var b=$APP.l(a,"__xTooltipShowTimer");$APP.n(b)&&(clearTimeout(b),$APP.Q(a,"__xTooltipShowTimer",
4
- null))},TC=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;SC(a);if($APP.n($APP.n(b)?b:a.hasAttribute("open"))){if($APP.n(a.hasAttribute("open")))return null;$APP.S(a,"open","");return $APP.ej(a,"x-tooltip-show",{})}b=QC(a);b=$APP.G(b);b=$APP.C(b,PC);return b===0?($APP.S(a,"open",""),$APP.ej(a,"x-tooltip-show",{})):$APP.Q(a,"__xTooltipShowTimer",setTimeout(function(){$APP.Q(a,"__xTooltipShowTimer",null);return $APP.n(a.isConnected)?($APP.S(a,"open",""),$APP.ej(a,"x-tooltip-show",{})):
5
- null},b))},UC=function(a){SC(a);return $APP.n(a.hasAttribute("open"))?($APP.U(a,"open"),$APP.ej(a,"x-tooltip-hide",{})):null},VC=function(a){var b=$APP.l(a,"__xTooltipRefs");if($APP.n(b)){var c=$APP.l(b,"triggerSlot").assignedElements();b=$APP.l(a,"__xTooltipId");var d=$APP.l(a,"__xTooltipTriggerEl");$APP.n(d)&&($APP.U(d,"aria-describedby"),$APP.Q(a,"__xTooltipTriggerEl",null));if(c.length>0)return c=c[0],$APP.S(c,"aria-describedby",b),$APP.Q(a,"__xTooltipTriggerEl",c)}return null},rba=function(a){return{pointerenter:function(){return TC(a,
6
- !1)},pointerleave:function(){return UC(a)},focusin:function(){return TC(a,!0)},focusout:function(b){b=b.relatedTarget;return b==null||$APP.p(a.contains(b))?UC(a):null},keydown:function(b){b=$APP.z.j(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?UC(a):null},slotchange:function(){return VC(a)}}},XC=function(a,b,c){return $APP.z.j(c,WC)?a:$APP.l(b,c)},ZC=function(a){var b=$APP.l(a,"__xTooltipRefs");if($APP.n(b)){var c=$APP.l(a,"__xTooltipHandlers");if($APP.n(c))for(var d=$APP.q(YC),e=null,
7
- f=0,h=0;;)if(h<f){var k=e.C(null,h),m=$APP.A(k,0,null),r=$APP.A(k,1,null);k=$APP.A(k,2,null);XC(a,b,m).removeEventListener(r,$APP.l(c,k));h+=1}else if(d=$APP.q(d))$APP.Zc(d)?(r=$APP.Eb(d),d=$APP.Fb(d),m=r,r=$APP.w(r),e=m,f=r):(e=$APP.t(d),m=$APP.A(e,0,null),r=$APP.A(e,1,null),k=$APP.A(e,2,null),XC(a,b,m).removeEventListener(r,$APP.l(c,k)),d=$APP.v(d),e=null,f=0),h=0;else break}},sba=function(a){if(!$APP.n($APP.l(a,"__xTooltipRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),
8
- d=document.createElement("span"),e=document.createElement("slot"),f=document.createElement("div"),h=document.createElement("div"),k=document.createElement("div"),m=document.createElement("span"),r=document.createElement("slot");var u=$APP.l($C,"n")+1;$C.n=u;u="x-tt-"+$APP.P.i(u);c.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-tooltip-bg:var(--x-color-bg,#ffffff);--x-tooltip-text:var(--x-color-text,#0f172a);--x-tooltip-border:1px solid var(--x-color-border,#e2e8f0);--x-tooltip-padding:var(--x-space-xs,4px) var(--x-space-sm,8px);--x-tooltip-radius:var(--x-radius-md,6px);--x-tooltip-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-tooltip-z:var(--x-z-dropdown,1000);--x-tooltip-max-width:min(280px,calc(100vw - 2rem));--x-tooltip-font-size:var(--x-font-size-xs,0.75rem);--x-tooltip-arrow-size:6px;--x-tooltip-offset:4px;--x-tooltip-transition-duration:var(--x-transition-duration,150ms);--x-tooltip-transition-easing:var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-tooltip-bg:var(--x-color-bg,#1e293b);--x-tooltip-text:var(--x-color-text,#e2e8f0);--x-tooltip-border:1px solid var(--x-color-border,#334155);--x-tooltip-shadow:0 4px 24px rgba(0,0,0,0.4);}}[part\x3dtrigger]{display:inline-block;}[part\x3dpanel]{position:absolute;z-index:var(--x-tooltip-z);box-sizing:border-box;background:var(--x-tooltip-bg);color:var(--x-tooltip-text);border:var(--x-tooltip-border);padding:var(--x-tooltip-padding);border-radius:var(--x-tooltip-radius);box-shadow:var(--x-tooltip-shadow);max-width:var(--x-tooltip-max-width);font-size:var(--x-tooltip-font-size);font-family:inherit;line-height:1.4;white-space:normal;word-wrap:break-word;pointer-events:none;visibility:hidden;opacity:0;transition:opacity var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),transform var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),visibility 0s var(--x-tooltip-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;opacity:1;transition:opacity var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),transform var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dtop]{bottom:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));left:50%;transform:translateX(-50%) translateY(4px);transform-origin:bottom center;}:host([open]) [part\x3dpanel][data-placement\x3dtop]{transform:translateX(-50%) translateY(0);}[part\x3dpanel][data-placement\x3dbottom]{top:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));left:50%;transform:translateX(-50%) translateY(-4px);transform-origin:top center;}:host([open]) [part\x3dpanel][data-placement\x3dbottom]{transform:translateX(-50%) translateY(0);}[part\x3dpanel][data-placement\x3dleft]{right:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));top:50%;transform:translateY(-50%) translateX(4px);transform-origin:center right;}:host([open]) [part\x3dpanel][data-placement\x3dleft]{transform:translateY(-50%) translateX(0);}[part\x3dpanel][data-placement\x3dright]{left:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));top:50%;transform:translateY(-50%) translateX(-4px);transform-origin:center left;}:host([open]) [part\x3dpanel][data-placement\x3dright]{transform:translateY(-50%) translateX(0);}[part\x3darrow]{position:absolute;width:var(--x-tooltip-arrow-size);height:var(--x-tooltip-arrow-size);background:var(--x-tooltip-bg);border:var(--x-tooltip-border);transform:rotate(45deg);pointer-events:none;}[part\x3dpanel][data-placement\x3dtop] [part\x3darrow]{bottom:calc(var(--x-tooltip-arrow-size) / -2);left:calc(50% - var(--x-tooltip-arrow-size) / 2);border-top:none;border-left:none;}[part\x3dpanel][data-placement\x3dbottom] [part\x3darrow]{top:calc(var(--x-tooltip-arrow-size) / -2);left:calc(50% - var(--x-tooltip-arrow-size) / 2);border-bottom:none;border-right:none;}[part\x3dpanel][data-placement\x3dleft] [part\x3darrow]{right:calc(var(--x-tooltip-arrow-size) / -2);top:calc(50% - var(--x-tooltip-arrow-size) / 2);border-bottom:none;border-left:none;}[part\x3dpanel][data-placement\x3dright] [part\x3darrow]{left:calc(var(--x-tooltip-arrow-size) / -2);top:calc(50% - var(--x-tooltip-arrow-size) / 2);border-top:none;border-right:none;}[part\x3dbody]{position:relative;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}}";
2
+ var KC=function(a){a=new $APP.M(null,5,[$APP.Fm,a.getAttribute("text"),$APP.fw,a.getAttribute("placement"),IC,a.getAttribute("delay"),$APP.Qj,a.hasAttribute("disabled"),$APP.Oq,a.hasAttribute("open")],null);var b=$APP.G(a),c=$APP.C(b,$APP.Fm),d=$APP.C(b,$APP.fw),e=$APP.C(b,IC);a=$APP.C(b,$APP.Qj);b=$APP.C(b,$APP.Oq);c=$APP.n(c)?c:"";d=$APP.dd(zba,d)?d:"top";e!=null?(e=parseInt(e,10),e=$APP.n(isNaN(e))?400:$APP.Sl.j($APP.Rl.j(e,0),5E3)):e=400;return new $APP.M(null,5,[$APP.Tm,c,$APP.gs,d,JC,e,$APP.Xj,
3
+ $APP.D(a),$APP.Bv,$APP.D(b)],null)},LC=function(a){var b=KC(a);if($APP.I($APP.l(a,"__xTooltipModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Tm),d=$APP.C(b,$APP.gs),e=$APP.C(b,$APP.Bv),f=$APP.l(a,"__xTooltipRefs");if($APP.n(f)){var h=$APP.l(f,"panel");f=$APP.l(f,"text");$APP.S(h,"data-placement",d);$APP.S(h,"aria-hidden",""+$APP.P.i($APP.p(e)));f.textContent=c;$APP.Q(a,"__xTooltipModel",b)}}},MC=function(a){var b=$APP.l(a,"__xTooltipShowTimer");$APP.n(b)&&(clearTimeout(b),$APP.Q(a,"__xTooltipShowTimer",
4
+ null))},NC=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;MC(a);if($APP.n($APP.n(b)?b:a.hasAttribute("open"))){if($APP.n(a.hasAttribute("open")))return null;$APP.S(a,"open","");return $APP.fj(a,"x-tooltip-show",{})}b=KC(a);b=$APP.G(b);b=$APP.C(b,JC);return b===0?($APP.S(a,"open",""),$APP.fj(a,"x-tooltip-show",{})):$APP.Q(a,"__xTooltipShowTimer",setTimeout(function(){$APP.Q(a,"__xTooltipShowTimer",null);return $APP.n(a.isConnected)?($APP.S(a,"open",""),$APP.fj(a,"x-tooltip-show",{})):
5
+ null},b))},OC=function(a){MC(a);return $APP.n(a.hasAttribute("open"))?($APP.U(a,"open"),$APP.fj(a,"x-tooltip-hide",{})):null},PC=function(a){var b=$APP.l(a,"__xTooltipRefs");if($APP.n(b)){var c=$APP.l(b,"triggerSlot").assignedElements();b=$APP.l(a,"__xTooltipId");var d=$APP.l(a,"__xTooltipTriggerEl");$APP.n(d)&&($APP.U(d,"aria-describedby"),$APP.Q(a,"__xTooltipTriggerEl",null));if(c.length>0)return c=c[0],$APP.S(c,"aria-describedby",b),$APP.Q(a,"__xTooltipTriggerEl",c)}return null},Aba=function(a){return{pointerenter:function(){return NC(a,
6
+ !1)},pointerleave:function(){return OC(a)},focusin:function(){return NC(a,!0)},focusout:function(b){b=b.relatedTarget;return b==null||$APP.p(a.contains(b))?OC(a):null},keydown:function(b){b=$APP.z.j(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?OC(a):null},slotchange:function(){return PC(a)}}},RC=function(a,b,c){return $APP.z.j(c,QC)?a:$APP.l(b,c)},TC=function(a){var b=$APP.l(a,"__xTooltipRefs");if($APP.n(b)){var c=$APP.l(a,"__xTooltipHandlers");if($APP.n(c))for(var d=$APP.q(SC),e=null,
7
+ f=0,h=0;;)if(h<f){var k=e.C(null,h),m=$APP.A(k,0,null),r=$APP.A(k,1,null);k=$APP.A(k,2,null);RC(a,b,m).removeEventListener(r,$APP.l(c,k));h+=1}else if(d=$APP.q(d))$APP.$c(d)?(r=$APP.Fb(d),d=$APP.Gb(d),m=r,r=$APP.w(r),e=m,f=r):(e=$APP.t(d),m=$APP.A(e,0,null),r=$APP.A(e,1,null),k=$APP.A(e,2,null),RC(a,b,m).removeEventListener(r,$APP.l(c,k)),d=$APP.v(d),e=null,f=0),h=0;else break}},Bba=function(a){if(!$APP.n($APP.l(a,"__xTooltipRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),
8
+ d=document.createElement("span"),e=document.createElement("slot"),f=document.createElement("div"),h=document.createElement("div"),k=document.createElement("div"),m=document.createElement("span"),r=document.createElement("slot");var u=$APP.l(UC,"n")+1;UC.n=u;u="x-tt-"+$APP.P.i(u);c.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-tooltip-bg:var(--x-color-bg,#ffffff);--x-tooltip-text:var(--x-color-text,#0f172a);--x-tooltip-border:1px solid var(--x-color-border,#e2e8f0);--x-tooltip-padding:var(--x-space-xs,4px) var(--x-space-sm,8px);--x-tooltip-radius:var(--x-radius-md,6px);--x-tooltip-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-tooltip-z:var(--x-z-dropdown,1000);--x-tooltip-max-width:min(280px,calc(100vw - 2rem));--x-tooltip-font-size:var(--x-font-size-xs,0.75rem);--x-tooltip-arrow-size:6px;--x-tooltip-offset:4px;--x-tooltip-transition-duration:var(--x-transition-duration,150ms);--x-tooltip-transition-easing:var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-tooltip-bg:var(--x-color-bg,#1e293b);--x-tooltip-text:var(--x-color-text,#e2e8f0);--x-tooltip-border:1px solid var(--x-color-border,#334155);--x-tooltip-shadow:0 4px 24px rgba(0,0,0,0.4);}}[part\x3dtrigger]{display:inline-block;}[part\x3dpanel]{position:absolute;z-index:var(--x-tooltip-z);box-sizing:border-box;background:var(--x-tooltip-bg);color:var(--x-tooltip-text);border:var(--x-tooltip-border);padding:var(--x-tooltip-padding);border-radius:var(--x-tooltip-radius);box-shadow:var(--x-tooltip-shadow);max-width:var(--x-tooltip-max-width);font-size:var(--x-tooltip-font-size);font-family:inherit;line-height:1.4;white-space:normal;word-wrap:break-word;pointer-events:none;visibility:hidden;opacity:0;transition:opacity var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),transform var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),visibility 0s var(--x-tooltip-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;opacity:1;transition:opacity var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),transform var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dtop]{bottom:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));left:50%;transform:translateX(-50%) translateY(4px);transform-origin:bottom center;}:host([open]) [part\x3dpanel][data-placement\x3dtop]{transform:translateX(-50%) translateY(0);}[part\x3dpanel][data-placement\x3dbottom]{top:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));left:50%;transform:translateX(-50%) translateY(-4px);transform-origin:top center;}:host([open]) [part\x3dpanel][data-placement\x3dbottom]{transform:translateX(-50%) translateY(0);}[part\x3dpanel][data-placement\x3dleft]{right:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));top:50%;transform:translateY(-50%) translateX(4px);transform-origin:center right;}:host([open]) [part\x3dpanel][data-placement\x3dleft]{transform:translateY(-50%) translateX(0);}[part\x3dpanel][data-placement\x3dright]{left:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));top:50%;transform:translateY(-50%) translateX(-4px);transform-origin:center left;}:host([open]) [part\x3dpanel][data-placement\x3dright]{transform:translateY(-50%) translateX(0);}[part\x3darrow]{position:absolute;width:var(--x-tooltip-arrow-size);height:var(--x-tooltip-arrow-size);background:var(--x-tooltip-bg);border:var(--x-tooltip-border);transform:rotate(45deg);pointer-events:none;}[part\x3dpanel][data-placement\x3dtop] [part\x3darrow]{bottom:calc(var(--x-tooltip-arrow-size) / -2);left:calc(50% - var(--x-tooltip-arrow-size) / 2);border-top:none;border-left:none;}[part\x3dpanel][data-placement\x3dbottom] [part\x3darrow]{top:calc(var(--x-tooltip-arrow-size) / -2);left:calc(50% - var(--x-tooltip-arrow-size) / 2);border-bottom:none;border-right:none;}[part\x3dpanel][data-placement\x3dleft] [part\x3darrow]{right:calc(var(--x-tooltip-arrow-size) / -2);top:calc(50% - var(--x-tooltip-arrow-size) / 2);border-bottom:none;border-left:none;}[part\x3dpanel][data-placement\x3dright] [part\x3darrow]{left:calc(var(--x-tooltip-arrow-size) / -2);top:calc(50% - var(--x-tooltip-arrow-size) / 2);border-top:none;border-right:none;}[part\x3dbody]{position:relative;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}}";
9
9
  $APP.S(d,"part","trigger");$APP.S(f,"part","panel");$APP.S(f,"role","tooltip");$APP.S(f,"id",u);$APP.S(f,"aria-hidden","true");$APP.S(f,"data-placement","top");$APP.S(h,"part","arrow");$APP.S(h,"aria-hidden","true");$APP.S(k,"part","body");$APP.S(m,"part","text");$APP.S(r,"name","content");d.appendChild(e);k.appendChild(m);k.appendChild(r);f.appendChild(h);f.appendChild(k);b.appendChild(c);b.appendChild(d);b.appendChild(f);$APP.Q(a,"__xTooltipId",u);$APP.Q(a,"__xTooltipRefs",{trigger:d,triggerSlot:e,
10
- panel:f,arrow:h,body:k,text:m,contentSlot:r})}ZC(a);$APP.Q(a,"__xTooltipHandlers",rba(a));a:if(b=$APP.l(a,"__xTooltipRefs"),$APP.n(b)&&(c=$APP.l(a,"__xTooltipHandlers"),$APP.n(c)))for(d=$APP.q(YC),h=null,m=k=0;;)if(m<k)r=h.C(null,m),e=$APP.A(r,0,null),f=$APP.A(r,1,null),r=$APP.A(r,2,null),XC(a,b,e).addEventListener(f,$APP.l(c,r)),m+=1;else if(d=$APP.q(d))$APP.Zc(d)?(f=$APP.Eb(d),d=$APP.Fb(d),e=f,f=$APP.w(f),h=e,k=f):(h=$APP.t(d),e=$APP.A(h,0,null),f=$APP.A(h,1,null),r=$APP.A(h,2,null),XC(a,b,e).addEventListener(f,
11
- $APP.l(c,r)),d=$APP.v(d),h=null,k=0),m=0;else break a;RC(a);return VC(a)},tba=function(a){SC(a);ZC(a);var b=$APP.l(a,"__xTooltipTriggerEl");$APP.n(b)?($APP.U(b,"aria-describedby"),a=$APP.Q(a,"__xTooltipTriggerEl",null)):a=null;return a},uba=function(a,b,c,d){return $APP.n(function(){var e=$APP.I(c,d);return e?$APP.l(a,"__xTooltipRefs"):e}())?(RC(a),$APP.n(function(){var e=a.hasAttribute("disabled");return $APP.n(e)?a.hasAttribute("open"):e}())?UC(a):null):null},wba=function(a){$APP.tj(a,vba);Object.defineProperty(a,
12
- "show",{value:function(){return TC(this,!0)},writable:!0,configurable:!0});return Object.defineProperty(a,"hide",{value:function(){return UC(this)},writable:!0,configurable:!0})},aD=function(){return $APP.ri("x-tooltip",new $APP.M(null,5,[$APP.ii,xba,$APP.gi,sba,$APP.di,tba,$APP.ci,uba,$APP.hi,wba],null))},PC=new $APP.F(null,"delay","delay",-574225219),WC=new $APP.F(null,"host","host",-1558485167),OC=new $APP.F(null,"delay-raw","delay-raw",886290425);var qba=new $APP.bh(null,new $APP.M(null,4,["right",null,"top",null,"bottom",null,"left",null],null),null),xba=["text","placement","delay","disabled","open"],vba=new $APP.M(null,5,[$APP.Sm,new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"text"],null),$APP.es,new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"placement"],null),PC,new $APP.M(null,3,[$APP.N,$APP.Y,$APP.W,"delay",$APP.sj,400],null),$APP.tn,new $APP.M(null,2,[$APP.N,$APP.rj,$APP.W,"disabled"],null),$APP.Tu,new $APP.M(null,2,[$APP.N,$APP.rj,$APP.W,"open"],
13
- null)],null);$APP.ie(["x-tooltip-show",new $APP.M(null,2,[$APP.Xu,!1,$APP.V,$APP.je],null),"x-tooltip-hide",new $APP.M(null,2,[$APP.Xu,!1,$APP.V,$APP.je],null)]);var $C={n:0},YC=new $APP.J(null,6,5,$APP.K,[new $APP.J(null,3,5,$APP.K,[WC,"pointerenter","pointerenter"],null),new $APP.J(null,3,5,$APP.K,[WC,"pointerleave","pointerleave"],null),new $APP.J(null,3,5,$APP.K,[WC,"focusin","focusin"],null),new $APP.J(null,3,5,$APP.K,[WC,"focusout","focusout"],null),new $APP.J(null,3,5,$APP.K,[WC,"keydown","keydown"],null),new $APP.J(null,3,5,$APP.K,["triggerSlot","slotchange","slotchange"],null)],null);$APP.ha("baredom.exports.x_tooltip.init",aD);export const init=aD;
10
+ panel:f,arrow:h,body:k,text:m,contentSlot:r})}TC(a);$APP.Q(a,"__xTooltipHandlers",Aba(a));a:if(b=$APP.l(a,"__xTooltipRefs"),$APP.n(b)&&(c=$APP.l(a,"__xTooltipHandlers"),$APP.n(c)))for(d=$APP.q(SC),h=null,m=k=0;;)if(m<k)r=h.C(null,m),e=$APP.A(r,0,null),f=$APP.A(r,1,null),r=$APP.A(r,2,null),RC(a,b,e).addEventListener(f,$APP.l(c,r)),m+=1;else if(d=$APP.q(d))$APP.$c(d)?(f=$APP.Fb(d),d=$APP.Gb(d),e=f,f=$APP.w(f),h=e,k=f):(h=$APP.t(d),e=$APP.A(h,0,null),f=$APP.A(h,1,null),r=$APP.A(h,2,null),RC(a,b,e).addEventListener(f,
11
+ $APP.l(c,r)),d=$APP.v(d),h=null,k=0),m=0;else break a;LC(a);return PC(a)},Cba=function(a){MC(a);TC(a);var b=$APP.l(a,"__xTooltipTriggerEl");$APP.n(b)?($APP.U(b,"aria-describedby"),a=$APP.Q(a,"__xTooltipTriggerEl",null)):a=null;return a},Dba=function(a,b,c,d){return $APP.n(function(){var e=$APP.I(c,d);return e?$APP.l(a,"__xTooltipRefs"):e}())?(LC(a),$APP.n(function(){var e=a.hasAttribute("disabled");return $APP.n(e)?a.hasAttribute("open"):e}())?OC(a):null):null},Fba=function(a){$APP.uj(a,Eba);Object.defineProperty(a,
12
+ "show",{value:function(){return NC(this,!0)},writable:!0,configurable:!0});return Object.defineProperty(a,"hide",{value:function(){return OC(this)},writable:!0,configurable:!0})},VC=function(){return $APP.si("x-tooltip",new $APP.M(null,5,[$APP.ji,Gba,$APP.hi,Bba,$APP.ei,Cba,$APP.di,Dba,$APP.ii,Fba],null))},JC=new $APP.F(null,"delay","delay",-574225219),QC=new $APP.F(null,"host","host",-1558485167),IC=new $APP.F(null,"delay-raw","delay-raw",886290425);var zba=new $APP.ch(null,new $APP.M(null,4,["right",null,"top",null,"bottom",null,"left",null],null),null),Gba=["text","placement","delay","disabled","open"],Eba=new $APP.M(null,5,[$APP.Tm,new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"text"],null),$APP.gs,new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"placement"],null),JC,new $APP.M(null,3,[$APP.N,$APP.Y,$APP.W,"delay",$APP.tj,400],null),$APP.un,new $APP.M(null,2,[$APP.N,$APP.sj,$APP.W,"disabled"],null),$APP.Wu,new $APP.M(null,2,[$APP.N,$APP.sj,$APP.W,"open"],
13
+ null)],null);$APP.je(["x-tooltip-show",new $APP.M(null,2,[$APP.$u,!1,$APP.V,$APP.ke],null),"x-tooltip-hide",new $APP.M(null,2,[$APP.$u,!1,$APP.V,$APP.ke],null)]);var UC={n:0},SC=new $APP.J(null,6,5,$APP.K,[new $APP.J(null,3,5,$APP.K,[QC,"pointerenter","pointerenter"],null),new $APP.J(null,3,5,$APP.K,[QC,"pointerleave","pointerleave"],null),new $APP.J(null,3,5,$APP.K,[QC,"focusin","focusin"],null),new $APP.J(null,3,5,$APP.K,[QC,"focusout","focusout"],null),new $APP.J(null,3,5,$APP.K,[QC,"keydown","keydown"],null),new $APP.J(null,3,5,$APP.K,["triggerSlot","slotchange","slotchange"],null)],null);$APP.ha("baredom.exports.x_tooltip.init",VC);export const init=VC;