@vanelsas/baredom 3.1.0 → 3.2.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 (116) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/custom-elements.json +553 -0
  3. package/dist/baredom.d.ts +5 -0
  4. package/dist/base.js +590 -545
  5. package/dist/integrity.json +108 -103
  6. package/dist/x-alert.js +17 -16
  7. package/dist/x-avatar-group.js +9 -9
  8. package/dist/x-avatar.js +14 -14
  9. package/dist/x-badge.js +9 -9
  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.d.ts +55 -0
  15. package/dist/x-calendar.js +40 -0
  16. package/dist/x-cancel-dialogue.js +14 -14
  17. package/dist/x-card.js +7 -7
  18. package/dist/x-carousel.js +32 -32
  19. package/dist/x-chart.js +47 -47
  20. package/dist/x-checkbox.js +1 -1
  21. package/dist/x-chip.js +1 -1
  22. package/dist/x-code.d.ts +48 -0
  23. package/dist/x-code.js +28 -0
  24. package/dist/x-collapse.js +8 -8
  25. package/dist/x-color-picker.js +46 -46
  26. package/dist/x-combobox.js +28 -28
  27. package/dist/x-command-palette.js +27 -27
  28. package/dist/x-confetti.js +24 -24
  29. package/dist/x-container.js +5 -5
  30. package/dist/x-context-menu.js +20 -21
  31. package/dist/x-copy.js +1 -21
  32. package/dist/x-currency-field.js +23 -23
  33. package/dist/x-date-picker.js +38 -41
  34. package/dist/x-divider.js +10 -10
  35. package/dist/x-drawer.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.js +6 -6
  39. package/dist/x-file-upload.js +21 -21
  40. package/dist/x-form-field.js +14 -14
  41. package/dist/x-form.js +10 -10
  42. package/dist/x-gaussian-blur.js +13 -13
  43. package/dist/x-grid.js +6 -6
  44. package/dist/x-i18n-provider.js +7 -7
  45. package/dist/x-i18n.js +4 -4
  46. package/dist/x-icon.js +7 -7
  47. package/dist/x-image.js +16 -16
  48. package/dist/x-kbd.js +15 -15
  49. package/dist/x-kinetic-canvas.js +25 -25
  50. package/dist/x-kinetic-font.js +23 -23
  51. package/dist/x-kinetic-typography.js +34 -34
  52. package/dist/x-liquid-dock.js +31 -31
  53. package/dist/x-liquid-fill.js +41 -41
  54. package/dist/x-liquid-glass.js +35 -35
  55. package/dist/x-menu-item.js +8 -8
  56. package/dist/x-menu.js +9 -9
  57. package/dist/x-metaball-cursor.js +23 -23
  58. package/dist/x-modal.js +12 -12
  59. package/dist/x-morph-stack.js +37 -37
  60. package/dist/x-multi-combobox.js +36 -36
  61. package/dist/x-navbar.js +15 -15
  62. package/dist/x-neural-glow.js +29 -29
  63. package/dist/x-notification-center.js +9 -9
  64. package/dist/x-organic-divider.js +17 -17
  65. package/dist/x-organic-progress.js +32 -32
  66. package/dist/x-organic-shape.js +12 -12
  67. package/dist/x-otp-input.js +21 -21
  68. package/dist/x-pagination.js +14 -14
  69. package/dist/x-particle-button.js +49 -49
  70. package/dist/x-popover.js +26 -26
  71. package/dist/x-progress-circle.js +8 -8
  72. package/dist/x-progress.js +7 -7
  73. package/dist/x-proximity-list.js +20 -20
  74. package/dist/x-radio.js +11 -11
  75. package/dist/x-range-slider.d.ts +51 -0
  76. package/dist/x-range-slider.js +29 -0
  77. package/dist/x-rating.d.ts +49 -0
  78. package/dist/x-rating.js +24 -0
  79. package/dist/x-ripple-effect.js +9 -9
  80. package/dist/x-scroll-parallax.js +17 -17
  81. package/dist/x-scroll-stack.js +16 -16
  82. package/dist/x-scroll-story.js +33 -33
  83. package/dist/x-scroll-timeline.js +45 -45
  84. package/dist/x-scroll.js +36 -36
  85. package/dist/x-search-field.js +1 -1
  86. package/dist/x-select.js +1 -1
  87. package/dist/x-sidebar.js +16 -16
  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 +17 -17
  92. package/dist/x-spacer.js +4 -4
  93. package/dist/x-spinner.js +4 -4
  94. package/dist/x-splash.js +12 -12
  95. package/dist/x-split-pane.d.ts +44 -0
  96. package/dist/x-split-pane.js +16 -0
  97. package/dist/x-spotlight-card.js +12 -12
  98. package/dist/x-stat.js +10 -10
  99. package/dist/x-stepper.js +13 -13
  100. package/dist/x-switch.js +10 -10
  101. package/dist/x-tab.js +6 -6
  102. package/dist/x-table-cell.js +19 -19
  103. package/dist/x-table-row.js +8 -8
  104. package/dist/x-table.js +13 -13
  105. package/dist/x-tabs.js +11 -11
  106. package/dist/x-text-area.js +18 -18
  107. package/dist/x-theme.js +25 -25
  108. package/dist/x-timeline-item.js +20 -20
  109. package/dist/x-timeline.js +8 -8
  110. package/dist/x-toast.js +22 -22
  111. package/dist/x-toaster.js +7 -7
  112. package/dist/x-tooltip.js +12 -12
  113. package/dist/x-trace-history.js +126 -119
  114. package/dist/x-typography.js +6 -6
  115. package/dist/x-welcome-tour.js +63 -63
  116. package/package.json +26 -1
@@ -1,20 +1,20 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var n7=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.p(isNaN(a))&&a>0?a:null):null},o7=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var f=c.value;$APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.y.j(f,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},w7=function(a){a=$APP.Yf([p7,$APP.Vi,$APP.Si,$APP.Un,$APP.ko,q7,$APP.Wi,r7,$APP.Xi,$APP.hk,$APP.Ti,
3
- $APP.Yi,s7,$APP.Ui],[a.getAttribute("resize"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.getAttribute("rows"),a.hasAttribute("disabled"),a.getAttribute("maxlength"),a.hasAttribute("required"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var b=$APP.H(a),c=$APP.C(b,s7),d=$APP.C(b,$APP.Ui),e=$APP.C(b,p7),f=$APP.C(b,$APP.Vi),h=$APP.C(b,$APP.Si),k=$APP.C(b,
4
- $APP.Un),m=$APP.C(b,$APP.ko),q=$APP.C(b,q7);a=$APP.C(b,$APP.Wi);var u=$APP.C(b,r7),x=$APP.C(b,$APP.Xi),z=$APP.C(b,$APP.hk),A=$APP.C(b,$APP.Ti);b=$APP.C(b,$APP.Yi);var D=$APP.n(k)?k:"",G=$APP.n(m)?m:"",J=$APP.n(f)?f:"";x=$APP.E(x);z=$APP.E(z);d=$APP.n(d)?d:"";m=typeof m==="string"&&$APP.I(m,"");h=$APP.n(h)?h:"";A=$APP.n(A)?A:"";c=n7(c);f=typeof f==="string"&&$APP.I(f,"");k=typeof k==="string"&&$APP.I(k,"");e=typeof e==="string"&&$APP.$c(oma,e)?e:"vertical";q=n7(q);return $APP.Yf([$APP.dj,$APP.mk,$APP.aj,
5
- $APP.Dn,$APP.$i,$APP.ei,t7,$APP.dr,$APP.zq,u7,$APP.zr,v7,$APP.Bo,$APP.bj,$APP.On,$APP.ej,$APP.cj],[x,z,d,m,h,A,c,f,k,e,G,n7(u),$APP.n(q)?q:3,J,D,$APP.n(b)?b:"",$APP.E(a)])},x7=function(a,b,c,d){a.textContent=b;$APP.n(c)?a.classList.remove(d):a.classList.add(d)},y7=function(a,b,c){var d=$APP.l(b,"textarea"),e=$APP.l(b,"label"),f=$APP.l(b,"hint");b=$APP.l(b,"error");var h=$APP.H(c),k=$APP.C(h,$APP.ej),m=$APP.C(h,$APP.cj),q=$APP.C(h,$APP.dj),u=$APP.C(h,$APP.mk),x=$APP.C(h,$APP.aj),z=$APP.C(h,t7),A=$APP.C(h,
6
- $APP.$i),D=$APP.C(h,u7),G=$APP.C(h,v7);h=$APP.C(h,$APP.Bo);d.name=A;d.placeholder=x;d.disabled=m;d.readOnly=u;d.required=q;d.rows=h;d.autocomplete=k;$APP.n(G)?$APP.T(d,"maxlength",""+$APP.P.i(G)):$APP.U(d,"maxlength");$APP.n(z)?$APP.T(d,"minlength",""+$APP.P.i(z)):$APP.U(d,"minlength");a.style.setProperty("--x-text-area-resize",D);q=$APP.H(c);k=$APP.C(q,$APP.dj);m=$APP.C(q,$APP.zq);q=$APP.C(q,$APP.Dn);$APP.T(d,"aria-required",$APP.n(k)?"true":"false");$APP.T(d,"aria-invalid",$APP.n(m)?"true":"false");
7
- k=$APP.n($APP.n(q)?m:q)?"hint error":$APP.n(q)?"hint":$APP.n(m)?"error":null;$APP.n(k)?$APP.T(d,"aria-describedby",k):$APP.U(d,"aria-describedby");m=$APP.H(c);k=$APP.C(m,$APP.bj);m=$APP.C(m,$APP.dr);x7(e,k,m,"label-hidden");k=$APP.H(c);e=$APP.C(k,$APP.zr);k=$APP.C(k,$APP.Dn);x7(f,e,k,"hint-hidden");e=$APP.H(c);f=$APP.C(e,$APP.On);e=$APP.C(e,$APP.zq);x7(b,f,e,"error-hidden");b=$APP.H(c);b=$APP.C(b,$APP.zq);$APP.ki(a,"data-invalid",b);b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&o7(a,b,d);return $APP.R(a,
8
- "__xTextAreaModel",c)},z7=function(a){var b=$APP.l(a,"__xTextAreaRefs");return $APP.n(b)?y7(a,b,w7(a)):null},pma=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=b.value,d=function(){var f=a.getAttribute("value");return $APP.n(f)?f:""}(),e=function(){var f=a.getAttribute("name");return $APP.n(f)?f:""}();return $APP.ri(a,"x-text-area-change-request",{name:e,value:c,previousValue:d})?(d=$APP.l(a,"__xTextAreaInternals"),$APP.n(d)&&(d.setFormValue(c),o7(a,d,b)),
9
- $APP.pi(a,"x-text-area-input",{name:e,value:c})):b.value=d}return null},qma=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=function(){return pma(a)},d=function(){var e=$APP.l(a,"__xTextAreaRefs");if($APP.n(e)){e=$APP.l(e,"textarea");var f=e.value;var h=a.getAttribute("name");h=$APP.n(h)?h:"";var k=$APP.l(a,"__xTextAreaInternals");$APP.n(k)&&(k.setFormValue(f),o7(a,k,e));e=$APP.pi(a,"x-text-area-change",{name:h,value:f})}else e=null;return e};b.addEventListener("input",
10
- c);b.addEventListener("change",d);$APP.R(a,"__xTextAreaHandlers",{input:c,change:d})}},A7=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.l(a,"__xTextAreaHandlers");if($APP.n(c))return b=$APP.l(b,"textarea"),b.removeEventListener("input",$APP.l(c,"input")),b.removeEventListener("change",$APP.l(c,"change")),$APP.R(a,"__xTextAreaHandlers",null)}return null},rma=function(a,b){$APP.ki(a,"disabled",$APP.E(b));return z7(a)},sma=function(a){$APP.U(a,"value");var b=$APP.l(a,"__xTextAreaRefs");
11
- $APP.n(b)&&($APP.l(b,"textarea").value="");b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&b.setFormValue("");return z7(a)},tma=function(a){if(!$APP.n($APP.l(a,"__xTextAreaRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("label"),f=document.createElement("div"),h=document.createElement("textarea"),k=document.createElement("span"),m=document.createElement("span");c.textContent=":host{display:block;color-scheme:light dark;--x-text-area-label-color:#374151;--x-text-area-label-font-size:var(--x-font-size-sm,0.875rem);--x-text-area-bg:var(--x-color-surface,#ffffff);--x-text-area-color:#111827;--x-text-area-border:1px solid var(--x-color-border,#d1d5db);--x-text-area-border-radius:var(--x-radius-md,6px);--x-text-area-padding:0.5rem 0.75rem;--x-text-area-focus-ring-color:var(--x-color-primary,#2563eb);--x-text-area-error-color:var(--x-color-danger,#dc2626);--x-text-area-hint-color:var(--x-color-text-muted,#6b7280);--x-text-area-disabled-opacity:0.45;--x-text-area-min-height:5rem;--x-text-area-font-size:var(--x-font-size-base,1rem);--x-text-area-resize:vertical;}@media (prefers-color-scheme:dark){:host{--x-text-area-label-color:var(--x-color-border,#d1d5db);--x-text-area-bg:var(--x-color-surface,#1f2937);--x-text-area-color:#f9fafb;--x-text-area-border:1px solid var(--x-color-border,#4b5563);--x-text-area-focus-ring-color:var(--x-color-primary,#3b82f6);--x-text-area-error-color:#f87171;--x-text-area-hint-color:var(--x-color-text-muted,#9ca3af);}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:var(--x-text-area-label-font-size);font-weight:500;color:var(--x-text-area-label-color);}.label-hidden{display:none;}[part\x3dtextarea-wrapper]{display:block;}[part\x3dtextarea]{display:block;width:100%;box-sizing:border-box;min-height:var(--x-text-area-min-height);padding:var(--x-text-area-padding);background:var(--x-text-area-bg);color:var(--x-text-area-color);border:var(--x-text-area-border);border-radius:var(--x-text-area-border-radius);font-size:var(--x-text-area-font-size);line-height:1.5;font-family:inherit;outline:none;resize:var(--x-text-area-resize);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dtextarea]:focus{border-color:var(--x-text-area-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dtextarea]{border-color:var(--x-text-area-error-color);}:host([data-invalid]) [part\x3dtextarea]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-error-color) 20%,transparent);}[part\x3dtextarea]:disabled{opacity:var(--x-text-area-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-text-area-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-text-area-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dtextarea]{transition:none;}}";
2
+ var n7=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.p(isNaN(a))&&a>0?a:null):null},o7=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var f=c.value;$APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.z.j(f,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},w7=function(a){a=$APP.Eg([p7,$APP.yj,$APP.vj,$APP.Lp,$APP.fq,q7,$APP.zj,r7,$APP.Mj,$APP.bl,$APP.wj,
3
+ $APP.Nj,s7,$APP.xj],[a.getAttribute("resize"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.getAttribute("rows"),a.hasAttribute("disabled"),a.getAttribute("maxlength"),a.hasAttribute("required"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var b=$APP.G(a),c=$APP.C(b,s7),d=$APP.C(b,$APP.xj),e=$APP.C(b,p7),f=$APP.C(b,$APP.yj),h=$APP.C(b,$APP.vj),k=$APP.C(b,
4
+ $APP.Lp),m=$APP.C(b,$APP.fq),q=$APP.C(b,q7);a=$APP.C(b,$APP.zj);var u=$APP.C(b,r7),x=$APP.C(b,$APP.Mj),y=$APP.C(b,$APP.bl),A=$APP.C(b,$APP.wj);b=$APP.C(b,$APP.Nj);var E=$APP.n(k)?k:"",H=$APP.n(m)?m:"",N=$APP.n(f)?f:"";x=$APP.D(x);y=$APP.D(y);d=$APP.n(d)?d:"";m=typeof m==="string"&&$APP.I(m,"");h=$APP.n(h)?h:"";A=$APP.n(A)?A:"";c=n7(c);f=typeof f==="string"&&$APP.I(f,"");k=typeof k==="string"&&$APP.I(k,"");e=typeof e==="string"&&$APP.cd(hra,e)?e:"vertical";q=n7(q);return $APP.Eg([$APP.Tj,$APP.gl,$APP.Qj,
5
+ $APP.sp,$APP.Pj,$APP.Si,t7,$APP.Os,$APP.ls,u7,$APP.kt,v7,$APP.yq,$APP.Rj,$APP.Dp,$APP.Uj,$APP.Sj],[x,y,d,m,h,A,c,f,k,e,H,n7(u),$APP.n(q)?q:3,N,E,$APP.n(b)?b:"",$APP.D(a)])},x7=function(a,b,c,d){a.textContent=b;$APP.n(c)?a.classList.remove(d):a.classList.add(d)},y7=function(a,b,c){var d=$APP.l(b,"textarea"),e=$APP.l(b,"label"),f=$APP.l(b,"hint");b=$APP.l(b,"error");var h=$APP.G(c),k=$APP.C(h,$APP.Uj),m=$APP.C(h,$APP.Sj),q=$APP.C(h,$APP.Tj),u=$APP.C(h,$APP.gl),x=$APP.C(h,$APP.Qj),y=$APP.C(h,t7),A=$APP.C(h,
6
+ $APP.Pj),E=$APP.C(h,u7),H=$APP.C(h,v7);h=$APP.C(h,$APP.yq);d.name=A;d.placeholder=x;d.disabled=m;d.readOnly=u;d.required=q;d.rows=h;d.autocomplete=k;$APP.n(H)?$APP.T(d,"maxlength",""+$APP.P.i(H)):$APP.U(d,"maxlength");$APP.n(y)?$APP.T(d,"minlength",""+$APP.P.i(y)):$APP.U(d,"minlength");a.style.setProperty("--x-text-area-resize",E);q=$APP.G(c);k=$APP.C(q,$APP.Tj);m=$APP.C(q,$APP.ls);q=$APP.C(q,$APP.sp);$APP.T(d,"aria-required",$APP.n(k)?"true":"false");$APP.T(d,"aria-invalid",$APP.n(m)?"true":"false");
7
+ k=$APP.n($APP.n(q)?m:q)?"hint error":$APP.n(q)?"hint":$APP.n(m)?"error":null;$APP.n(k)?$APP.T(d,"aria-describedby",k):$APP.U(d,"aria-describedby");m=$APP.G(c);k=$APP.C(m,$APP.Rj);m=$APP.C(m,$APP.Os);x7(e,k,m,"label-hidden");k=$APP.G(c);e=$APP.C(k,$APP.kt);k=$APP.C(k,$APP.sp);x7(f,e,k,"hint-hidden");e=$APP.G(c);f=$APP.C(e,$APP.Dp);e=$APP.C(e,$APP.ls);x7(b,f,e,"error-hidden");b=$APP.G(c);b=$APP.C(b,$APP.ls);$APP.Zi(a,"data-invalid",b);b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&o7(a,b,d);return $APP.Q(a,
8
+ "__xTextAreaModel",c)},z7=function(a){var b=$APP.l(a,"__xTextAreaRefs");return $APP.n(b)?y7(a,b,w7(a)):null},ira=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=b.value,d=function(){var f=a.getAttribute("value");return $APP.n(f)?f:""}(),e=function(){var f=a.getAttribute("name");return $APP.n(f)?f:""}();return $APP.fj(a,"x-text-area-change-request",{name:e,value:c,previousValue:d})?(d=$APP.l(a,"__xTextAreaInternals"),$APP.n(d)&&(d.setFormValue(c),o7(a,d,b)),
9
+ $APP.dj(a,"x-text-area-input",{name:e,value:c})):b.value=d}return null},jra=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=function(){return ira(a)},d=function(){var e=$APP.l(a,"__xTextAreaRefs");if($APP.n(e)){e=$APP.l(e,"textarea");var f=e.value;var h=a.getAttribute("name");h=$APP.n(h)?h:"";var k=$APP.l(a,"__xTextAreaInternals");$APP.n(k)&&(k.setFormValue(f),o7(a,k,e));e=$APP.dj(a,"x-text-area-change",{name:h,value:f})}else e=null;return e};b.addEventListener("input",
10
+ c);b.addEventListener("change",d);$APP.Q(a,"__xTextAreaHandlers",{input:c,change:d})}},A7=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.l(a,"__xTextAreaHandlers");if($APP.n(c))return b=$APP.l(b,"textarea"),b.removeEventListener("input",$APP.l(c,"input")),b.removeEventListener("change",$APP.l(c,"change")),$APP.Q(a,"__xTextAreaHandlers",null)}return null},kra=function(a,b){$APP.Zi(a,"disabled",$APP.D(b));return z7(a)},lra=function(a){$APP.U(a,"value");var b=$APP.l(a,"__xTextAreaRefs");
11
+ $APP.n(b)&&($APP.l(b,"textarea").value="");b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&b.setFormValue("");return z7(a)},mra=function(a){if(!$APP.n($APP.l(a,"__xTextAreaRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("label"),f=document.createElement("div"),h=document.createElement("textarea"),k=document.createElement("span"),m=document.createElement("span");c.textContent=":host{display:block;color-scheme:light dark;--x-text-area-label-color:#374151;--x-text-area-label-font-size:var(--x-font-size-sm,0.875rem);--x-text-area-bg:var(--x-color-surface,#ffffff);--x-text-area-color:#111827;--x-text-area-border:1px solid var(--x-color-border,#d1d5db);--x-text-area-border-radius:var(--x-radius-md,6px);--x-text-area-padding:0.5rem 0.75rem;--x-text-area-focus-ring-color:var(--x-color-primary,#2563eb);--x-text-area-error-color:var(--x-color-danger,#dc2626);--x-text-area-hint-color:var(--x-color-text-muted,#6b7280);--x-text-area-disabled-opacity:0.45;--x-text-area-min-height:5rem;--x-text-area-font-size:var(--x-font-size-base,1rem);--x-text-area-resize:vertical;}@media (prefers-color-scheme:dark){:host{--x-text-area-label-color:var(--x-color-border,#d1d5db);--x-text-area-bg:var(--x-color-surface,#1f2937);--x-text-area-color:#f9fafb;--x-text-area-border:1px solid var(--x-color-border,#4b5563);--x-text-area-focus-ring-color:var(--x-color-primary,#3b82f6);--x-text-area-error-color:#f87171;--x-text-area-hint-color:var(--x-color-text-muted,#9ca3af);}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:var(--x-text-area-label-font-size);font-weight:500;color:var(--x-text-area-label-color);}.label-hidden{display:none;}[part\x3dtextarea-wrapper]{display:block;}[part\x3dtextarea]{display:block;width:100%;box-sizing:border-box;min-height:var(--x-text-area-min-height);padding:var(--x-text-area-padding);background:var(--x-text-area-bg);color:var(--x-text-area-color);border:var(--x-text-area-border);border-radius:var(--x-text-area-border-radius);font-size:var(--x-text-area-font-size);line-height:1.5;font-family:inherit;outline:none;resize:var(--x-text-area-resize);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dtextarea]:focus{border-color:var(--x-text-area-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dtextarea]{border-color:var(--x-text-area-error-color);}:host([data-invalid]) [part\x3dtextarea]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-error-color) 20%,transparent);}[part\x3dtextarea]:disabled{opacity:var(--x-text-area-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-text-area-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-text-area-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dtextarea]{transition:none;}}";
12
12
  $APP.T(d,"part","field");$APP.T(e,"part","label");$APP.T(e,"id","label");$APP.T(e,"for","textarea");$APP.T(f,"part","textarea-wrapper");$APP.T(h,"part","textarea");$APP.T(h,"id","textarea");$APP.T(h,"aria-labelledby","label");$APP.T(k,"part","hint");$APP.T(k,"id","hint");$APP.T(k,"aria-live","polite");$APP.T(m,"part","error");$APP.T(m,"id","error");$APP.T(m,"role","alert");$APP.T(m,"aria-live","assertive");f.appendChild(h);d.appendChild(e);d.appendChild(f);d.appendChild(k);d.appendChild(m);b.appendChild(c);
13
- b.appendChild(d);$APP.R(a,"__xTextAreaRefs",{field:d,label:e,textarea:h,hint:k,error:m});$APP.n(a.attachInternals)&&$APP.R(a,"__xTextAreaInternals",a.attachInternals())}A7(a);b=$APP.l(a,"__xTextAreaRefs");$APP.n(b)&&(b=$APP.l(b,"textarea"),c=a.getAttribute("value"),$APP.n(c)&&(b.value=c));b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&(c=b.setFormValue,d=a.getAttribute("value"),c.call(b,$APP.n(d)?d:""));qma(a);return z7(a)},uma=function(a){return A7(a)},vma=function(a,b,c,d){return $APP.I(c,d)?($APP.y.j(b,
14
- "value")&&(b=$APP.l(a,"__xTextAreaRefs"),$APP.n(b)&&(b=$APP.l(b,"textarea"),$APP.I(b.value,d)&&(b.value=$APP.n(d)?d:""))),d=$APP.l(a,"__xTextAreaRefs"),$APP.n(d)?(b=w7(a),a=$APP.I(b,$APP.l(a,"__xTextAreaModel"))?y7(a,d,b):null):a=null,a):null},wma=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xTextAreaRefs");if($APP.n(b))return $APP.l(b,"textarea").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&
15
- $APP.I(b)?""+$APP.P.i(b):"";$APP.T(this,"value",b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.n(c)?$APP.l(c,"textarea").value=b:null}})},xma=function(a){wma(a);$APP.xi(a,"name","name","");$APP.xi(a,"placeholder","placeholder","");$APP.xi(a,"autocomplete","autocomplete","");$APP.ui(a,"disabled","disabled");$APP.ui(a,"readOnly","readonly");$APP.ui(a,"required","required");$APP.zi(a,"rows","rows",3);$APP.zi(a,"maxLength","maxlength",null);return $APP.zi(a,"minLength","minlength",null)},B7=function(){return $APP.Kh("x-text-area",
16
- new $APP.N(null,8,[$APP.Bh,yma,$APP.zh,tma,$APP.qh,uma,$APP.ph,vma,$APP.rh,!0,$APP.oh,rma,$APP.nh,sma,$APP.Ah,xma],null))},t7=new $APP.F(null,"minlength","minlength",259053545),s7=new $APP.F(null,"minlength-raw","minlength-raw",-1245403779),r7=new $APP.F(null,"maxlength-raw","maxlength-raw",-886656470),v7=new $APP.F(null,"maxlength","maxlength",-1163911985),p7=new $APP.F(null,"resize-raw","resize-raw",-287517888),q7=new $APP.F(null,"rows-raw","rows-raw",-1828357145),u7=new $APP.F(null,"resize","resize",
17
- 297367086);var yma="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),oma=new $APP.rg(null,new $APP.N(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
18
- $APP.Yf([$APP.Hk,$APP.$i,$APP.ei,new $APP.F(null,"minLength","minLength",-1538722770),$APP.Bo,$APP.Or,new $APP.F(null,"maxLength","maxLength",-1633020073),$APP.ej,$APP.Zp],[new $APP.N(null,2,[$APP.O,$APP.Ci,$APP.W,"disabled"],null),new $APP.N(null,2,[$APP.O,$APP.Y,$APP.W,"name"],null),new $APP.N(null,2,[$APP.O,$APP.Y,$APP.W,"value"],null),new $APP.N(null,2,[$APP.O,$APP.Z,$APP.W,"minlength"],null),new $APP.N(null,2,[$APP.O,$APP.Z,$APP.W,"rows"],null),new $APP.N(null,2,[$APP.O,$APP.Ci,$APP.W,"readonly"],
19
- null),new $APP.N(null,2,[$APP.O,$APP.Z,$APP.W,"maxlength"],null),new $APP.N(null,2,[$APP.O,$APP.Y,$APP.W,"autocomplete"],null),new $APP.N(null,2,[$APP.O,$APP.Ci,$APP.W,"required"],null)]);
20
- $APP.be(["x-text-area-change-request",new $APP.N(null,2,[$APP.Mr,!0,$APP.V,new $APP.N(null,3,[$APP.$i,$APP.Y,$APP.ei,$APP.Y,$APP.oq,$APP.Y],null)],null),"x-text-area-input",new $APP.N(null,2,[$APP.Mr,!1,$APP.V,new $APP.N(null,2,[$APP.$i,$APP.Y,$APP.ei,$APP.Y],null)],null),"x-text-area-change",new $APP.N(null,2,[$APP.Mr,!1,$APP.V,new $APP.N(null,2,[$APP.$i,$APP.Y,$APP.ei,$APP.Y],null)],null)]);$APP.fa("baredom.exports.x_text_area.init",B7);export const init=B7;
13
+ b.appendChild(d);$APP.Q(a,"__xTextAreaRefs",{field:d,label:e,textarea:h,hint:k,error:m});$APP.n(a.attachInternals)&&$APP.Q(a,"__xTextAreaInternals",a.attachInternals())}A7(a);b=$APP.l(a,"__xTextAreaRefs");$APP.n(b)&&(b=$APP.l(b,"textarea"),c=a.getAttribute("value"),$APP.n(c)&&(b.value=c));b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&(c=b.setFormValue,d=a.getAttribute("value"),c.call(b,$APP.n(d)?d:""));jra(a);return z7(a)},nra=function(a){return A7(a)},ora=function(a,b,c,d){return $APP.I(c,d)?($APP.z.j(b,
14
+ "value")&&(b=$APP.l(a,"__xTextAreaRefs"),$APP.n(b)&&(b=$APP.l(b,"textarea"),$APP.I(b.value,d)&&(b.value=$APP.n(d)?d:""))),d=$APP.l(a,"__xTextAreaRefs"),$APP.n(d)?(b=w7(a),a=$APP.I(b,$APP.l(a,"__xTextAreaModel"))?y7(a,d,b):null):a=null,a):null},pra=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xTextAreaRefs");if($APP.n(b))return $APP.l(b,"textarea").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&
15
+ $APP.I(b)?""+$APP.P.i(b):"";$APP.T(this,"value",b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.n(c)?$APP.l(c,"textarea").value=b:null}})},qra=function(a){pra(a);$APP.lj(a,"name","name","");$APP.lj(a,"placeholder","placeholder","");$APP.lj(a,"autocomplete","autocomplete","");$APP.ij(a,"disabled","disabled");$APP.ij(a,"readOnly","readonly");$APP.ij(a,"required","required");$APP.nj(a,"rows","rows",3);$APP.nj(a,"maxLength","maxlength",null);return $APP.nj(a,"minLength","minlength",null)},B7=function(){return $APP.xi("x-text-area",
16
+ new $APP.M(null,8,[$APP.hi,rra,$APP.fi,mra,$APP.ci,nra,$APP.bi,ora,$APP.di,!0,$APP.ai,kra,$APP.$h,lra,$APP.gi,qra],null))},t7=new $APP.F(null,"minlength","minlength",259053545),s7=new $APP.F(null,"minlength-raw","minlength-raw",-1245403779),r7=new $APP.F(null,"maxlength-raw","maxlength-raw",-886656470),v7=new $APP.F(null,"maxlength","maxlength",-1163911985),p7=new $APP.F(null,"resize-raw","resize-raw",-287517888),q7=new $APP.F(null,"rows-raw","rows-raw",-1828357145),u7=new $APP.F(null,"resize","resize",
17
+ 297367086);var rra="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),hra=new $APP.ah(null,new $APP.M(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
18
+ $APP.Eg([$APP.um,$APP.Pj,$APP.Si,new $APP.F(null,"minLength","minLength",-1538722770),$APP.yq,$APP.Bt,new $APP.F(null,"maxLength","maxLength",-1633020073),$APP.Uj,$APP.Kr],[new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"disabled"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"name"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"value"],null),new $APP.M(null,2,[$APP.O,$APP.Z,$APP.W,"minlength"],null),new $APP.M(null,2,[$APP.O,$APP.Z,$APP.W,"rows"],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"readonly"],
19
+ null),new $APP.M(null,2,[$APP.O,$APP.Z,$APP.W,"maxlength"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"autocomplete"],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"required"],null)]);
20
+ $APP.he(["x-text-area-change-request",new $APP.M(null,2,[$APP.yt,!0,$APP.V,new $APP.M(null,3,[$APP.Pj,$APP.X,$APP.Si,$APP.X,$APP.as,$APP.X],null)],null),"x-text-area-input",new $APP.M(null,2,[$APP.yt,!1,$APP.V,new $APP.M(null,2,[$APP.Pj,$APP.X,$APP.Si,$APP.X],null)],null),"x-text-area-change",new $APP.M(null,2,[$APP.yt,!1,$APP.V,new $APP.M(null,2,[$APP.Pj,$APP.X,$APP.Si,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_text_area.init",B7);export const init=B7;
package/dist/x-theme.js CHANGED
@@ -1,26 +1,26 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var eba=function(a,b){var c=HS.i(IS),d=JS.i(IS),e=b.light,f=b.dark;b=$APP.pg($APP.Ac([c,$APP.n(e)?$APP.tf.j($APP.ce,function(){return function m(k){return new $APP.Cd(null,function(){for(;;){var q=$APP.r(k);if(q){if($APP.Wc(q)){var u=$APP.Cb(q),x=$APP.w(u),z=$APP.Fd(x);a:{for(var A=0;;)if(A<x){var D=$APP.Fc(u,A);z.add(new $APP.K(null,2,5,$APP.M,[D,$APP.l(e,D)],null));A+=1}else{u=!0;break a}u=void 0}return u?$APP.Id(z.ca(),m($APP.Db(q))):$APP.Id(z.ca(),null)}z=$APP.t(q);return $APP.zd(new $APP.K(null,
3
- 2,5,$APP.M,[z,$APP.l(e,z)],null),m($APP.dc(q)))}return null}},null)}(Object.keys(e))}()):null]));d=$APP.pg($APP.Ac([d,$APP.n(f)?$APP.tf.j($APP.ce,function(){return function m(k){return new $APP.Cd(null,function(){for(;;){var q=$APP.r(k);if(q){if($APP.Wc(q)){var u=$APP.Cb(q),x=$APP.w(u),z=$APP.Fd(x);a:{for(var A=0;;)if(A<x){var D=$APP.Fc(u,A);z.add(new $APP.K(null,2,5,$APP.M,[D,$APP.l(f,D)],null));A+=1}else{u=!0;break a}u=void 0}return u?$APP.Id(z.ca(),m($APP.Db(q))):$APP.Id(z.ca(),null)}z=$APP.t(q);
4
- return $APP.zd(new $APP.K(null,2,5,$APP.M,[z,$APP.l(f,z)],null),m($APP.dc(q)))}return null}},null)}(Object.keys(f))}()):null]));return $APP.ia(KS,a,new $APP.N(null,2,[HS,b,JS,d],null))},LS=function(a){var b=[];a=$APP.r(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.F(null,e),h=$APP.B(f,0,null);f=$APP.B(f,1,null);b.push(""+$APP.P.i(h)+":"+$APP.P.i(f)+";");e+=1}else if(a=$APP.r(a))$APP.Wc(a)?(d=$APP.Cb(a),a=$APP.Db(a),c=d,d=$APP.w(d)):(d=$APP.t(a),c=$APP.B(d,0,null),d=$APP.B(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("")},MS=function(a){var b=new $APP.N(null,1,[$APP.aq,a.getAttribute("preset")],null);if($APP.I($APP.l(a,"__xThemeModel"),b)){b=$APP.H(b);var c=$APP.C(b,$APP.aq),d=$APP.l(a,"__xThemeRefs");if($APP.n(d)){d=d.style;c=typeof c!=="string"||!$APP.$c(fba,c)&&$APP.l(KS,c)==null?"default":c;var e=$APP.l(KS,c);$APP.n(e)||(c=$APP.C(gba,c),e=$APP.n(c)?c:IS);c=HS.i(e);e=JS.i(e);c=":host{display:contents;"+$APP.P.i(LS(c))+"}@media(prefers-color-scheme:dark){:host{"+
6
- $APP.P.i(LS(e))+"}}";d.textContent=c;a=$APP.R(a,"__xThemeModel",b)}else a=null}else a=null;return a},hba=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.R(a,"__xThemeRefs",{style:c})}return MS(a)},iba=function(){return null},jba=function(a,b,c,d){return $APP.I(c,d)?MS(a):null},kba=function(a){return $APP.yi(a,"preset","preset")},NS=function(a,b){return eba(a,
7
- b)},OS=function(){return $APP.Kh("x-theme",new $APP.N(null,5,[$APP.Bh,lba,$APP.zh,hba,$APP.qh,iba,$APP.ph,jba,$APP.Ah,kba],null))},HS=new $APP.F(null,"light","light",1918998747),JS=new $APP.F(null,"dark","dark",1818973999);var lba=["preset"],PS=$APP.Yf("--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(";")),QS=$APP.be("--x-radius-sm 0.375rem --x-radius-md 0.75rem --x-radius-lg 1rem --x-radius-full 9999px --x-border-width 1px".split(" ")),
8
- RS=$APP.be(["--x-transition-duration","140ms","--x-transition-easing","cubic-bezier(0.2,0,0,1)"]),SS=$APP.be("--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(" ")),TS=$APP.be("--x-z-dropdown 1000 --x-z-modal 1100 --x-z-toast 1200".split(" ")),US=$APP.be(["--x-opacity-disabled","0.5","--x-opacity-placeholder","0.6"]),VS=$APP.be("--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
- WS=$APP.be("--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(";")),IS=new $APP.N(null,2,[HS,$APP.pg($APP.Ac([PS,QS,RS,VS,SS,TS,US,$APP.Yf("--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(" "))])),JS,$APP.pg($APP.Ac([WS,$APP.Yf("--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),mba=new $APP.N(null,2,[HS,$APP.pg($APP.Ac([PS,QS,RS,VS,SS,TS,US,$APP.Yf("--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(" "))])),JS,$APP.pg($APP.Ac([WS,$APP.Yf("--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),nba=new $APP.N(null,2,[HS,$APP.pg($APP.Ac([PS,QS,RS,VS,SS,TS,US,$APP.Yf("--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(" "))])),JS,$APP.pg($APP.Ac([WS,$APP.Yf("--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),oba=new $APP.N(null,2,[HS,$APP.pg($APP.Ac([PS,QS,RS,VS,SS,TS,US,$APP.Yf("--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(" "))])),JS,$APP.pg($APP.Ac([WS,$APP.Yf("--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),pba=new $APP.N(null,2,[HS,$APP.pg($APP.Ac([PS,RS,SS,TS,US,$APP.Yf("--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(";"))])),JS,$APP.Yf("--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),qba=new $APP.N(null,2,[HS,$APP.pg($APP.Ac([PS,QS,RS,SS,TS,US,$APP.Yf("--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(";"))])),JS,$APP.Yf("--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),rba=new $APP.N(null,2,[HS,$APP.pg($APP.Ac([QS,RS,SS,TS,US,$APP.Yf("--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(";"))])),JS,$APP.Yf("--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),sba=new $APP.N(null,2,[HS,$APP.pg($APP.Ac([PS,QS,RS,VS,SS,TS,US,$APP.Yf("--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(" "))])),JS,$APP.pg($APP.Ac([WS,$APP.Yf("--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),gba=new $APP.N(null,8,["default",IS,"ocean",mba,"forest",nba,"sunset",oba,"neo-brutalist",pba,"aurora",qba,"mono-ai",rba,"warm-mineral",sba],null),KS=Object.create(null),fba=new $APP.rg(null,new $APP.N(null,8,["warm-mineral",null,"mono-ai",null,"ocean",null,"aurora",null,"sunset",null,"forest",null,"neo-brutalist",null,
26
- "default",null],null),null);$APP.fa("baredom.exports.x_theme.registerPreset",NS);$APP.fa("baredom.exports.x_theme.init",OS);export const init=OS;export const registerPreset=NS;
2
+ var Mea=function(a,b){var c=QQ.i(RQ),d=SQ.i(RQ),e=b.light,f=b.dark;b=$APP.Wg($APP.Cc([c,$APP.n(e)?$APP.If.j($APP.ie,function(){return function m(k){return new $APP.Gd(null,function(){for(;;){var q=$APP.r(k);if(q){if($APP.Yc(q)){var u=$APP.Db(q),x=$APP.w(u),y=$APP.Kd(x);a:{for(var A=0;;)if(A<x){var E=$APP.Hc(u,A);y.add(new $APP.J(null,2,5,$APP.K,[E,$APP.l(e,E)],null));A+=1}else{u=!0;break a}u=void 0}return u?$APP.Pd(y.ea(),m($APP.Eb(q))):$APP.Pd(y.ea(),null)}y=$APP.t(q);return $APP.Dd(new $APP.J(null,
3
+ 2,5,$APP.K,[y,$APP.l(e,y)],null),m($APP.ec(q)))}return null}},null)}(Object.keys(e))}()):null]));d=$APP.Wg($APP.Cc([d,$APP.n(f)?$APP.If.j($APP.ie,function(){return function m(k){return new $APP.Gd(null,function(){for(;;){var q=$APP.r(k);if(q){if($APP.Yc(q)){var u=$APP.Db(q),x=$APP.w(u),y=$APP.Kd(x);a:{for(var A=0;;)if(A<x){var E=$APP.Hc(u,A);y.add(new $APP.J(null,2,5,$APP.K,[E,$APP.l(f,E)],null));A+=1}else{u=!0;break a}u=void 0}return u?$APP.Pd(y.ea(),m($APP.Eb(q))):$APP.Pd(y.ea(),null)}y=$APP.t(q);
4
+ return $APP.Dd(new $APP.J(null,2,5,$APP.K,[y,$APP.l(f,y)],null),m($APP.ec(q)))}return null}},null)}(Object.keys(f))}()):null]));return $APP.ja(TQ,a,new $APP.M(null,2,[QQ,b,SQ,d],null))},UQ=function(a){var b=[];a=$APP.r(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.C(null,e),h=$APP.B(f,0,null);f=$APP.B(f,1,null);b.push(""+$APP.P.i(h)+":"+$APP.P.i(f)+";");e+=1}else if(a=$APP.r(a))$APP.Yc(a)?(d=$APP.Db(a),a=$APP.Eb(a),c=d,d=$APP.w(d)):(d=$APP.t(a),c=$APP.B(d,0,null),d=$APP.B(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("")},VQ=function(a){var b=new $APP.M(null,1,[$APP.Mr,a.getAttribute("preset")],null);if($APP.I($APP.l(a,"__xThemeModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Mr),d=$APP.l(a,"__xThemeRefs");if($APP.n(d)){d=d.style;c=typeof c!=="string"||!$APP.cd(Nea,c)&&$APP.l(TQ,c)==null?"default":c;var e=$APP.l(TQ,c);$APP.n(e)||(c=$APP.C(Oea,c),e=$APP.n(c)?c:RQ);c=QQ.i(e);e=SQ.i(e);c=":host{display:contents;"+$APP.P.i(UQ(c))+"}@media(prefers-color-scheme:dark){:host{"+
6
+ $APP.P.i(UQ(e))+"}}";d.textContent=c;a=$APP.Q(a,"__xThemeModel",b)}else a=null}else a=null;return a},Pea=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 VQ(a)},Qea=function(){return null},Rea=function(a,b,c,d){return $APP.I(c,d)?VQ(a):null},Sea=function(a){return $APP.mj(a,"preset","preset")},WQ=function(a,b){return Mea(a,
7
+ b)},XQ=function(){return $APP.xi("x-theme",new $APP.M(null,5,[$APP.hi,Tea,$APP.fi,Pea,$APP.ci,Qea,$APP.bi,Rea,$APP.gi,Sea],null))},QQ=new $APP.F(null,"light","light",1918998747),SQ=new $APP.F(null,"dark","dark",1818973999);var Tea=["preset"],YQ=$APP.Eg("--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(";")),ZQ=$APP.he("--x-radius-sm 0.375rem --x-radius-md 0.75rem --x-radius-lg 1rem --x-radius-full 9999px --x-border-width 1px".split(" ")),
8
+ $Q=$APP.he(["--x-transition-duration","140ms","--x-transition-easing","cubic-bezier(0.2,0,0,1)"]),aR=$APP.he("--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(" ")),bR=$APP.he("--x-z-dropdown 1000 --x-z-modal 1100 --x-z-toast 1200".split(" ")),cR=$APP.he(["--x-opacity-disabled","0.5","--x-opacity-placeholder","0.6"]),dR=$APP.he("--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
+ eR=$APP.he("--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(";")),RQ=new $APP.M(null,2,[QQ,$APP.Wg($APP.Cc([YQ,ZQ,$Q,dR,aR,bR,cR,$APP.Eg("--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(" "))])),SQ,$APP.Wg($APP.Cc([eR,$APP.Eg("--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),Uea=new $APP.M(null,2,[QQ,$APP.Wg($APP.Cc([YQ,ZQ,$Q,dR,aR,bR,cR,$APP.Eg("--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(" "))])),SQ,$APP.Wg($APP.Cc([eR,$APP.Eg("--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),Vea=new $APP.M(null,2,[QQ,$APP.Wg($APP.Cc([YQ,ZQ,$Q,dR,aR,bR,cR,$APP.Eg("--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(" "))])),SQ,$APP.Wg($APP.Cc([eR,$APP.Eg("--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),Wea=new $APP.M(null,2,[QQ,$APP.Wg($APP.Cc([YQ,ZQ,$Q,dR,aR,bR,cR,$APP.Eg("--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(" "))])),SQ,$APP.Wg($APP.Cc([eR,$APP.Eg("--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),Xea=new $APP.M(null,2,[QQ,$APP.Wg($APP.Cc([YQ,$Q,aR,bR,cR,$APP.Eg("--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(";"))])),SQ,$APP.Eg("--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),Yea=new $APP.M(null,2,[QQ,$APP.Wg($APP.Cc([YQ,ZQ,$Q,aR,bR,cR,$APP.Eg("--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(";"))])),SQ,$APP.Eg("--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),Zea=new $APP.M(null,2,[QQ,$APP.Wg($APP.Cc([ZQ,$Q,aR,bR,cR,$APP.Eg("--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(";"))])),SQ,$APP.Eg("--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),$ea=new $APP.M(null,2,[QQ,$APP.Wg($APP.Cc([YQ,ZQ,$Q,dR,aR,bR,cR,$APP.Eg("--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(" "))])),SQ,$APP.Wg($APP.Cc([eR,$APP.Eg("--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),Oea=new $APP.M(null,8,["default",RQ,"ocean",Uea,"forest",Vea,"sunset",Wea,"neo-brutalist",Xea,"aurora",Yea,"mono-ai",Zea,"warm-mineral",$ea],null),TQ=Object.create(null),Nea=new $APP.ah(null,new $APP.M(null,8,["warm-mineral",null,"mono-ai",null,"ocean",null,"aurora",null,"sunset",null,"forest",null,"neo-brutalist",null,
26
+ "default",null],null),null);$APP.fa("baredom.exports.x_theme.registerPreset",WQ);$APP.fa("baredom.exports.x_theme.init",XQ);export const init=XQ;export const registerPreset=WQ;
@@ -1,21 +1,21 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var dt=function(a){a=$APP.C(ct,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.wn},ft=function(a){a=$APP.C(et,a);return $APP.n(a)?a:"pending"},it=function(a){a=$APP.C(gt,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:ht},jt=function(a){return typeof a==="string"?(a=a.trim(),$APP.I(a,"")&&$APP.I(a.toLowerCase(),"none")?a:null):null},kt=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:null):null},mt=function(a,
3
- b){a=$APP.C(lt,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.C(lt,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.Nr);return b},nt=function(a,b,c){a=ft(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)+")"},Kt=function(a){var b=$APP.H(a),c=$APP.C(b,ot);a=$APP.C(b,$APP.cj);var d=$APP.C(b,$APP.tp),e=$APP.C(b,$APP.Vi),f=$APP.C(b,pt),h=$APP.C(b,$APP.Nn),k=$APP.C(b,qt),m=$APP.C(b,
4
- $APP.eo),q=$APP.C(b,rt),u=$APP.C(b,$APP.jn),x=$APP.C(b,$APP.Pp);b=$APP.C(b,$APP.No);var z=dt(m),A=jt(b),D=$APP.n($APP.n(u)?A==null:u)?$APP.As:A!=null?$APP.er:$APP.Di;m=function(){var G=D instanceof $APP.F?D.ea:null;switch(G){case "default":return G=$APP.C(st,z),$APP.n(G)?G:$APP.C(st,$APP.wn);case "custom":return A;case "hidden":return null;default:throw Error("No matching clause: "+$APP.P.i(G));}}();c=kt(c);d=mt(k,d);e=$APP.n(e)?e:"";x=$APP.n(x)?x:"";return $APP.Yf([$APP.zn,Gt,Ht,pt,rt,$APP.kq,$APP.Gn,
5
- $APP.Vp,$APP.bj,It,$APP.Mp,$APP.cj,Jt],[it(h),c,m,$APP.E(f),$APP.E(q),$APP.y.j(D,$APP.er)?A:null,x,z,e,nt(z,e,c),D,$APP.E(a),d])},Lt=function(a){a=$APP.H(a);a=$APP.C(a,$APP.cj);return $APP.p(a)},Ut=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
- m=document.createElement("div"),q=document.createElement("slot"),u=document.createElement("span"),x=document.createElement("div"),z=document.createElement("div"),A=document.createElement("div"),D=document.createElement("div"),G=document.createElement("slot"),J=document.createElement("div"),S=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
- $APP.T(d,"class","timeline-item");$APP.T(e,"class","label-col");$APP.T(f,"name","label");$APP.T(h,"class","label-text");f.appendChild(h);e.appendChild(f);$APP.T(k,"class","track-col");$APP.T(m,"class","marker");$APP.T(q,"name","icon");$APP.T(u,"class","default-icon");$APP.T(u,"aria-hidden","true");q.appendChild(u);m.appendChild(q);$APP.T(x,"class","connector");k.appendChild(m);k.appendChild(x);$APP.T(z,"class","content-col");$APP.T(A,"class","title");$APP.T(D,"class","body");D.appendChild(G);$APP.T(J,
8
- "class","actions");$APP.T(S,"name","actions");J.appendChild(S);z.appendChild(A);z.appendChild(D);z.appendChild(J);d.appendChild(e);d.appendChild(k);d.appendChild(z);b.appendChild(c);b.appendChild(d);$APP.R(a,"__xTimelineItemRefs",$APP.Yf([$APP.zn,Mt,$APP.mq,$APP.us,Nt,Ot,$APP.gs,Pt,$APP.Kj,Qt,$APP.qq,Rt,St,Tt,$APP.Go,$APP.ql],[x,h,m,u,e,k,D,G,b,S,A,z,d,J,q,f]));return $APP.l(a,"__xTimelineItemRefs")},Vt=function(a){return Kt($APP.Yf([$APP.tp,$APP.Vi,pt,$APP.Nn,qt,$APP.eo,rt,$APP.jn,$APP.Pp,$APP.No,
9
- ot,$APP.cj],[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")]))},Wt=function(a){var b=Vt(a);if($APP.I($APP.l(a,"__xTimelineItemModel"),b)){var c=Ut(a),d=$APP.H(c);c=$APP.C(d,Mt);var e=$APP.C(d,$APP.mq),f=$APP.C(d,$APP.qq);d=
10
- $APP.C(d,$APP.us);var h=$APP.H(b),k=$APP.C(h,$APP.Vp),m=$APP.C(h,Jt);h=$APP.C(h,$APP.zn);$APP.T(a,"data-status",ft(k));$APP.R(a,"__xTimelineItemSelfPos",!0);$APP.T(a,"data-position",$APP.Dg(m));$APP.R(a,"__xTimelineItemSelfPos",null);switch(h instanceof $APP.F?h.ea:null){case "dashed":$APP.T(a,"data-connector","dashed");break;case "none":$APP.T(a,"data-connector","none");break;default:$APP.U(a,"data-connector")}h=$APP.H(b);k=$APP.C(h,$APP.bj);m=$APP.C(h,$APP.Gn);h=$APP.C(h,$APP.cj);$APP.T(a,"role",
11
- "listitem");$APP.n(h)?($APP.T(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.T(a,"aria-label",k):$APP.U(a,"aria-label");m=$APP.H(b);k=$APP.C(m,Ht);m=$APP.C(m,It);$APP.T(e,"aria-label",m);d.textContent=k!=null?k:"";d=$APP.H(b);e=$APP.C(d,$APP.bj);d=$APP.C(d,$APP.Gn);c.textContent=e;$APP.I(d,"")?($APP.U(f,"hidden"),f.textContent=d):($APP.T(f,"hidden",""),f.textContent="");a=$APP.R(a,"__xTimelineItemModel",b)}else a=
12
- null;return a},Xt=function(a){$APP.n($APP.l(a,"__xTimelineItemEntered"))||($APP.R(a,"__xTimelineItemEntered",!0),$APP.T(a,"data-entering",""),a.addEventListener("animationend",function d(c){return $APP.y.j(c.target,a)?(a.removeEventListener("animationend",d),$APP.U(a,"data-entering")):null}))},Yt=function(a){var b=$APP.l(a,"__xTimelineItemModel");b=$APP.n(b)?b:Vt(a);var c=$APP.H(b);b=$APP.C(c,$APP.Vp);c=$APP.C(c,$APP.bj);b=new $APP.N(null,2,[$APP.Vp,ft(b),$APP.bj,c],null);return $APP.ri(a,"x-timeline-item-click",
13
- $APP.Xm(b))},Zt=function(a){function b(d){a:{var e=d.key;if($APP.y.j(e,"Enter")||$APP.y.j(e," "))if(e=$APP.l(a,"__xTimelineItemModel"),e=$APP.n(e)?e:Vt(a),Lt(e)){d.preventDefault();d=Yt(a);break a}d=null}return d}function c(){var d=$APP.l(a,"__xTimelineItemModel");d=$APP.n(d)?d:Vt(a);return Lt(d)?Yt(a):null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.R(a,"__xTimelineItemHandlers",{click:c,keydown:b})},$t=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.R(a,"__xTimelineItemHandlers",null)},au=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.T(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.T(this,"title",""+$APP.P.i(b)):$APP.U(this,"title")},enumerable:!0,configurable:!0});$APP.xi(a,"status","status","pending");$APP.yi(a,"icon","icon");$APP.xi(a,"connector","connector","solid");$APP.xi(a,"position","position","start");return $APP.ui(a,"disabled","disabled")},bu=function(a){Ut(a);$t(a);Zt(a);var b=a.getAttribute("data-position");$APP.n(b)&&$APP.R(a,"__xTimelineItemParentPos",b);Wt(a);Xt(a);b=$APP.l(a,
16
- "__xTimelineItemModel");b=$APP.n(b)?b:Vt(a);var c=$APP.H(b);b=$APP.C(c,$APP.Vp);var d=$APP.C(c,$APP.bj),e=$APP.C(c,Jt);c=$APP.C(c,$APP.cj);b=new $APP.N(null,4,[$APP.Vp,ft(b),$APP.bj,d,$APP.Bs,$APP.Dg(e),$APP.Hk,$APP.E(c)],null);return $APP.pi(a,"x-timeline-item-connected",$APP.Xm(b))},cu=function(a){var b=$APP.l(a,"__xTimelineItemModel");b=$APP.n(b)?b:Vt(a);$t(a);$APP.R(a,"__xTimelineItemEntered",null);b=$APP.H(b);a=$APP.C(b,$APP.Vp);b=$APP.C(b,$APP.bj);a=new $APP.N(null,2,[$APP.Vp,ft(a),$APP.bj,
17
- b],null);return $APP.ti("x-timeline-item-disconnected",$APP.Xm(a))},du=function(a,b,c,d){if($APP.I(c,d)){c=$APP.y.j(b,"data-position");if($APP.n(c?$APP.l(a,"__xTimelineItemSelfPos"):c))return null;$APP.y.j(b,"data-position")&&$APP.R(a,"__xTimelineItemParentPos",d);return Wt(a)}return null},fu=function(){return $APP.Kh("x-timeline-item",new $APP.N(null,5,[$APP.Bh,eu,$APP.zh,bu,$APP.qh,cu,$APP.ph,du,$APP.Ah,au],null))},Ot=new $APP.F(null,"track-col","track-col",629248272),Qt=new $APP.F(null,"actions-slot",
18
- "actions-slot",1424248629),Jt=new $APP.F(null,"effective-position","effective-position",840072317),Nt=new $APP.F(null,"label-col","label-col",1883390160),Mt=new $APP.F(null,"label-text","label-text",-1566972381),pt=new $APP.F(null,"data-striped?","data-striped?",906911587),Tt=new $APP.F(null,"actions-el","actions-el",1486248509),Rt=new $APP.F(null,"content-col","content-col",767367449),gu=new $APP.F(null,"dashed","dashed",-1449249319),St=new $APP.F(null,"item-div","item-div",1630512700),It=new $APP.F(null,
19
- "marker-aria","marker-aria",-353426855),Ht=new $APP.F(null,"marker-icon","marker-icon",424963779),ht=new $APP.F(null,"solid","solid",-2023773691),Pt=new $APP.F(null,"default-slot","default-slot",-1145647151),rt=new $APP.F(null,"data-last?","data-last?",-1110326839),qt=new $APP.F(null,"data-position-raw","data-position-raw",256144356),ot=new $APP.F(null,"data-index-raw","data-index-raw",491574874),Gt=new $APP.F(null,"data-index","data-index",1161508385),hu=new $APP.F(null,"none","none",1333468478);var eu="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
20
- $APP.be(["x-timeline-item-connected",new $APP.N(null,2,[$APP.V,new $APP.N(null,4,[$APP.Vp,$APP.Y,$APP.bj,$APP.Y,$APP.Bs,$APP.Y,$APP.Hk,$APP.Ci],null),$APP.Mr,!1],null),"x-timeline-item-disconnected",new $APP.N(null,2,[$APP.V,new $APP.N(null,2,[$APP.Vp,$APP.Y,$APP.bj,$APP.Y],null),$APP.Mr,!1],null),"x-timeline-item-click",new $APP.N(null,2,[$APP.V,new $APP.N(null,2,[$APP.Vp,$APP.Y,$APP.bj,$APP.Y],null),$APP.Mr,!0],null)]);
21
- var ct=new $APP.N(null,5,["pending",$APP.wn,"active",$APP.To,"complete",$APP.ms,"error",$APP.On,"warning",$APP.Jr],null),et=new $APP.N(null,5,[$APP.wn,"pending",$APP.To,"active",$APP.ms,"complete",$APP.On,"error",$APP.Jr,"warning"],null),st=new $APP.N(null,5,[$APP.wn,"○",$APP.To,"●",$APP.ms,"✓",$APP.On,"✕",$APP.Jr,"!"],null),gt=new $APP.N(null,3,["solid",ht,"dashed",gu,"none",hu],null),lt=new $APP.N(null,2,["start",$APP.Nr,"end",$APP.Wn],null);$APP.fa("baredom.exports.x_timeline_item.init",fu);export const init=fu;
2
+ var av=function(a){a=$APP.C($u,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.lp},cv=function(a){a=$APP.C(bv,a);return $APP.n(a)?a:"pending"},fv=function(a){a=$APP.C(dv,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:ev},gv=function(a){return typeof a==="string"?(a=a.trim(),$APP.I(a,"")&&$APP.I(a.toLowerCase(),"none")?a:null):null},hv=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:null):null},jv=function(a,
3
+ b){a=$APP.C(iv,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.C(iv,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.At);return b},kv=function(a,b,c){a=cv(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)+")"},uv=function(a){var b=$APP.G(a),c=$APP.C(b,lv);a=$APP.C(b,$APP.Sj);var d=$APP.C(b,$APP.br),e=$APP.C(b,$APP.yj),f=$APP.C(b,mv),h=$APP.C(b,$APP.Cp),k=$APP.C(b,nv),m=$APP.C(b,
4
+ $APP.Xp),q=$APP.C(b,ov),u=$APP.C(b,$APP.Yo),x=$APP.C(b,$APP.zr);b=$APP.C(b,$APP.Lq);var y=av(m),A=gv(b),E=$APP.n($APP.n(u)?A==null:u)?$APP.ou:A!=null?$APP.Ps:$APP.rj;m=function(){var H=E instanceof $APP.F?E.da:null;switch(H){case "default":return H=$APP.C(pv,y),$APP.n(H)?H:$APP.C(pv,$APP.lp);case "custom":return A;case "hidden":return null;default:throw Error("No matching clause: "+$APP.P.i(H));}}();c=hv(c);d=jv(k,d);e=$APP.n(e)?e:"";x=$APP.n(x)?x:"";return $APP.Eg([$APP.op,qv,rv,mv,ov,$APP.Xr,$APP.vp,
5
+ $APP.Fr,$APP.Rj,sv,$APP.wr,$APP.Sj,tv],[fv(h),c,m,$APP.D(f),$APP.D(q),$APP.z.j(E,$APP.Ps)?A:null,x,y,e,kv(y,e,c),E,$APP.D(a),d])},vv=function(a){a=$APP.G(a);a=$APP.C(a,$APP.Sj);return $APP.p(a)},Ev=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
+ m=document.createElement("div"),q=document.createElement("slot"),u=document.createElement("span"),x=document.createElement("div"),y=document.createElement("div"),A=document.createElement("div"),E=document.createElement("div"),H=document.createElement("slot"),N=document.createElement("div"),S=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
+ $APP.T(d,"class","timeline-item");$APP.T(e,"class","label-col");$APP.T(f,"name","label");$APP.T(h,"class","label-text");f.appendChild(h);e.appendChild(f);$APP.T(k,"class","track-col");$APP.T(m,"class","marker");$APP.T(q,"name","icon");$APP.T(u,"class","default-icon");$APP.T(u,"aria-hidden","true");q.appendChild(u);m.appendChild(q);$APP.T(x,"class","connector");k.appendChild(m);k.appendChild(x);$APP.T(y,"class","content-col");$APP.T(A,"class","title");$APP.T(E,"class","body");E.appendChild(H);$APP.T(N,
8
+ "class","actions");$APP.T(S,"name","actions");N.appendChild(S);y.appendChild(A);y.appendChild(E);y.appendChild(N);d.appendChild(e);d.appendChild(k);d.appendChild(y);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTimelineItemRefs",$APP.Eg([$APP.op,wv,$APP.Zr,$APP.iu,xv,yv,$APP.Ut,zv,$APP.Ak,Av,$APP.cs,Bv,Cv,Dv,$APP.Eq,$APP.Ym],[x,h,m,u,e,k,E,H,b,S,A,y,d,N,q,f]));return $APP.l(a,"__xTimelineItemRefs")},Fv=function(a){return uv($APP.Eg([$APP.br,$APP.yj,mv,$APP.Cp,nv,$APP.Xp,ov,$APP.Yo,$APP.zr,$APP.Lq,
9
+ lv,$APP.Sj],[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")]))},Gv=function(a){var b=Fv(a);if($APP.I($APP.l(a,"__xTimelineItemModel"),b)){var c=Ev(a),d=$APP.G(c);c=$APP.C(d,wv);var e=$APP.C(d,$APP.Zr),f=$APP.C(d,$APP.cs);d=
10
+ $APP.C(d,$APP.iu);var h=$APP.G(b),k=$APP.C(h,$APP.Fr),m=$APP.C(h,tv);h=$APP.C(h,$APP.op);$APP.T(a,"data-status",cv(k));$APP.Q(a,"__xTimelineItemSelfPos",!0);$APP.T(a,"data-position",$APP.ph(m));$APP.Q(a,"__xTimelineItemSelfPos",null);switch(h instanceof $APP.F?h.da:null){case "dashed":$APP.T(a,"data-connector","dashed");break;case "none":$APP.T(a,"data-connector","none");break;default:$APP.U(a,"data-connector")}h=$APP.G(b);k=$APP.C(h,$APP.Rj);m=$APP.C(h,$APP.vp);h=$APP.C(h,$APP.Sj);$APP.T(a,"role",
11
+ "listitem");$APP.n(h)?($APP.T(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.T(a,"aria-label",k):$APP.U(a,"aria-label");m=$APP.G(b);k=$APP.C(m,rv);m=$APP.C(m,sv);$APP.T(e,"aria-label",m);d.textContent=k!=null?k:"";d=$APP.G(b);e=$APP.C(d,$APP.Rj);d=$APP.C(d,$APP.vp);c.textContent=e;$APP.I(d,"")?($APP.U(f,"hidden"),f.textContent=d):($APP.T(f,"hidden",""),f.textContent="");a=$APP.Q(a,"__xTimelineItemModel",b)}else a=
12
+ null;return a},Hv=function(a){$APP.n($APP.l(a,"__xTimelineItemEntered"))||($APP.Q(a,"__xTimelineItemEntered",!0),$APP.T(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}))},Iv=function(a){var b=$APP.l(a,"__xTimelineItemModel");b=$APP.n(b)?b:Fv(a);var c=$APP.G(b);b=$APP.C(c,$APP.Fr);c=$APP.C(c,$APP.Rj);b=new $APP.M(null,2,[$APP.Fr,cv(b),$APP.Rj,c],null);return $APP.fj(a,"x-timeline-item-click",
13
+ $APP.bm(b))},Jv=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:Fv(a),vv(e)){d.preventDefault();d=Iv(a);break a}d=null}return d}function c(){var d=$APP.l(a,"__xTimelineItemModel");d=$APP.n(d)?d:Fv(a);return vv(d)?Iv(a):null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.Q(a,"__xTimelineItemHandlers",{click:c,keydown:b})},Kv=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)},Lv=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.T(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.T(this,"title",""+$APP.P.i(b)):$APP.U(this,"title")},enumerable:!0,configurable:!0});$APP.lj(a,"status","status","pending");$APP.mj(a,"icon","icon");$APP.lj(a,"connector","connector","solid");$APP.lj(a,"position","position","start");return $APP.ij(a,"disabled","disabled")},Mv=function(a){Ev(a);Kv(a);Jv(a);var b=a.getAttribute("data-position");$APP.n(b)&&$APP.Q(a,"__xTimelineItemParentPos",b);Gv(a);Hv(a);b=$APP.l(a,
16
+ "__xTimelineItemModel");b=$APP.n(b)?b:Fv(a);var c=$APP.G(b);b=$APP.C(c,$APP.Fr);var d=$APP.C(c,$APP.Rj),e=$APP.C(c,tv);c=$APP.C(c,$APP.Sj);b=new $APP.M(null,4,[$APP.Fr,cv(b),$APP.Rj,d,$APP.pu,$APP.ph(e),$APP.um,$APP.D(c)],null);return $APP.dj(a,"x-timeline-item-connected",$APP.bm(b))},Nv=function(a){var b=$APP.l(a,"__xTimelineItemModel");b=$APP.n(b)?b:Fv(a);Kv(a);$APP.Q(a,"__xTimelineItemEntered",null);b=$APP.G(b);a=$APP.C(b,$APP.Fr);b=$APP.C(b,$APP.Rj);a=new $APP.M(null,2,[$APP.Fr,cv(a),$APP.Rj,
17
+ b],null);return $APP.hj("x-timeline-item-disconnected",$APP.bm(a))},Ov=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 Gv(a)}return null},Qv=function(){return $APP.xi("x-timeline-item",new $APP.M(null,5,[$APP.hi,Pv,$APP.fi,Mv,$APP.ci,Nv,$APP.bi,Ov,$APP.gi,Lv],null))},yv=new $APP.F(null,"track-col","track-col",629248272),Av=new $APP.F(null,"actions-slot",
18
+ "actions-slot",1424248629),tv=new $APP.F(null,"effective-position","effective-position",840072317),xv=new $APP.F(null,"label-col","label-col",1883390160),wv=new $APP.F(null,"label-text","label-text",-1566972381),mv=new $APP.F(null,"data-striped?","data-striped?",906911587),Dv=new $APP.F(null,"actions-el","actions-el",1486248509),Bv=new $APP.F(null,"content-col","content-col",767367449),Rv=new $APP.F(null,"dashed","dashed",-1449249319),Cv=new $APP.F(null,"item-div","item-div",1630512700),sv=new $APP.F(null,
19
+ "marker-aria","marker-aria",-353426855),rv=new $APP.F(null,"marker-icon","marker-icon",424963779),ev=new $APP.F(null,"solid","solid",-2023773691),zv=new $APP.F(null,"default-slot","default-slot",-1145647151),ov=new $APP.F(null,"data-last?","data-last?",-1110326839),nv=new $APP.F(null,"data-position-raw","data-position-raw",256144356),lv=new $APP.F(null,"data-index-raw","data-index-raw",491574874),qv=new $APP.F(null,"data-index","data-index",1161508385),Sv=new $APP.F(null,"none","none",1333468478);var Pv="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
20
+ $APP.he(["x-timeline-item-connected",new $APP.M(null,2,[$APP.V,new $APP.M(null,4,[$APP.Fr,$APP.X,$APP.Rj,$APP.X,$APP.pu,$APP.X,$APP.um,$APP.qj],null),$APP.yt,!1],null),"x-timeline-item-disconnected",new $APP.M(null,2,[$APP.V,new $APP.M(null,2,[$APP.Fr,$APP.X,$APP.Rj,$APP.X],null),$APP.yt,!1],null),"x-timeline-item-click",new $APP.M(null,2,[$APP.V,new $APP.M(null,2,[$APP.Fr,$APP.X,$APP.Rj,$APP.X],null),$APP.yt,!0],null)]);
21
+ var $u=new $APP.M(null,5,["pending",$APP.lp,"active",$APP.Rq,"complete",$APP.$t,"error",$APP.Dp,"warning",$APP.vt],null),bv=new $APP.M(null,5,[$APP.lp,"pending",$APP.Rq,"active",$APP.$t,"complete",$APP.Dp,"error",$APP.vt,"warning"],null),pv=new $APP.M(null,5,[$APP.lp,"○",$APP.Rq,"●",$APP.$t,"✓",$APP.Dp,"✕",$APP.vt,"!"],null),dv=new $APP.M(null,3,["solid",ev,"dashed",Rv,"none",Sv],null),iv=new $APP.M(null,2,["start",$APP.At,"end",$APP.Np],null);$APP.fa("baredom.exports.x_timeline_item.init",Qv);export const init=Qv;
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var M4=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.$c(Yka,a)?a:"start"},Zka=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.qd(b,2)===0?"start":"end";default:return"start"}},O4=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.T(d,"part","label");$APP.T(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.R(a,"__xTimelineRefs",new $APP.N(null,3,[$APP.Kj,b,N4,d,$APP.gr,e],null));return $APP.l(a,"__xTimelineRefs")},P4=function(a){a=new $APP.N(null,3,[$APP.Vi,a.getAttribute("label"),$APP.tp,a.getAttribute("position"),$APP.Aq,a.hasAttribute("striped")],null);var b=$APP.H(a);a=$APP.C(b,$APP.Vi);var c=$APP.C(b,$APP.tp);b=$APP.C(b,$APP.Aq);return new $APP.N(null,3,[$APP.bj,$APP.n(a)?a:"",$APP.Bs,M4(c),$APP.Aq,
4
- $APP.E(b)],null)},Q4=function(a){var b=P4(a);if($APP.I($APP.l(a,"__xTimelineModel"),b)){b=$APP.H(b);var c=$APP.C(b,$APP.bj),d=O4(a);d=$APP.H(d);d=$APP.C(d,N4);$APP.T(a,"role","list");$APP.I(c,"")?$APP.T(a,"aria-label",c):$APP.U(a,"aria-label");$APP.I(c,"")?(d.textContent=c,$APP.U(d,"hidden")):(d.textContent="",$APP.T(d,"hidden",""));$APP.R(a,"__xTimelineModel",b)}},R4=function(a){var b=$APP.l(a,"__xTimelineModel");b=$APP.n(b)?b:P4(a);var c=$APP.H(b);b=$APP.C(c,$APP.Bs);c=$APP.C(c,$APP.Aq);a=a.querySelectorAll("x-timeline-item");
5
- for(var d=a.length,e=0;;)if(e<d){var f=a[e],h=$APP.y.j(e,d-1);$APP.T(f,"data-index",""+$APP.P.i(e));h?$APP.T(f,"data-last",""):$APP.U(f,"data-last");$APP.T(f,"data-position",Zka(b,e));$APP.n(c)?$APP.T(f,"data-striped",""):$APP.U(f,"data-striped");e+=1}else return null},$ka=function(a){function b(){return $APP.n(a.isConnected)?R4(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.pi(a,"x-timeline-select",$APP.Xm(new $APP.N(null,3,[$APP.sn,$APP.n(f)?f:0,$APP.Vp,$APP.n(h)?h:"",$APP.bj,$APP.n(e)?e:""],null)))}function d(){return R4(a)}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",b);$APP.R(a,"__xTimelineHandlers",{"item-connected":d,"item-click":c,"item-disconnected-doc":b})},S4=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.R(a,"__xTimelineHandlers",null)},ala=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.T(this,"label",""+$APP.P.i(b)):$APP.U(this,"label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return M4(this.getAttribute("position"))},set:function(b){return $APP.n(b)?$APP.T(this,"position",""+$APP.P.i(b)):$APP.U(this,"position")},enumerable:!0,configurable:!0});return $APP.ui(a,"striped","striped")},bla=function(a){O4(a);Q4(a);S4(a);$ka(a);return R4(a)},cla=function(a){return S4(a)},dla=function(a,b,c,d){return $APP.I(c,d)?(Q4(a),R4(a)):
9
- null},T4=function(){return $APP.Kh("x-timeline",new $APP.N(null,5,[$APP.Bh,ela,$APP.zh,bla,$APP.qh,cla,$APP.ph,dla,$APP.Ah,ala],null))},N4=new $APP.F(null,"label-div","label-div",1505730697);var ela=["label","position","striped"];$APP.be(["x-timeline-select",new $APP.N(null,2,[$APP.V,new $APP.N(null,3,[$APP.sn,$APP.Z,$APP.Vp,$APP.Y,$APP.bj,$APP.Y],null),$APP.Mr,!1],null)]);var Yka=new $APP.rg(null,new $APP.N(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.fa("baredom.exports.x_timeline.init",T4);export const init=T4;
2
+ var x4=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.cd(Fpa,a)?a:"start"},Gpa=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.sd(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.T(d,"part","label");$APP.T(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.Q(a,"__xTimelineRefs",new $APP.M(null,3,[$APP.Ak,b,y4,d,$APP.Rs,e],null));return $APP.l(a,"__xTimelineRefs")},A4=function(a){a=new $APP.M(null,3,[$APP.yj,a.getAttribute("label"),$APP.br,a.getAttribute("position"),$APP.ms,a.hasAttribute("striped")],null);var b=$APP.G(a);a=$APP.C(b,$APP.yj);var c=$APP.C(b,$APP.br);b=$APP.C(b,$APP.ms);return new $APP.M(null,3,[$APP.Rj,$APP.n(a)?a:"",$APP.pu,x4(c),$APP.ms,
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.Rj),d=z4(a);d=$APP.G(d);d=$APP.C(d,y4);$APP.T(a,"role","list");$APP.I(c,"")?$APP.T(a,"aria-label",c):$APP.U(a,"aria-label");$APP.I(c,"")?(d.textContent=c,$APP.U(d,"hidden")):(d.textContent="",$APP.T(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.pu);c=$APP.C(c,$APP.ms);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.T(f,"data-index",""+$APP.P.i(e));h?$APP.T(f,"data-last",""):$APP.U(f,"data-last");$APP.T(f,"data-position",Gpa(b,e));$APP.n(c)?$APP.T(f,"data-striped",""):$APP.U(f,"data-striped");e+=1}else return null},Hpa=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.dj(a,"x-timeline-select",$APP.bm(new $APP.M(null,3,[$APP.hp,$APP.n(f)?f:0,$APP.Fr,$APP.n(h)?h:"",$APP.Rj,$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)},Ipa=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.T(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.T(this,"position",""+$APP.P.i(b)):$APP.U(this,"position")},enumerable:!0,configurable:!0});return $APP.ij(a,"striped","striped")},Jpa=function(a){z4(a);B4(a);D4(a);Hpa(a);return C4(a)},Kpa=function(a){return D4(a)},Lpa=function(a,b,c,d){return $APP.I(c,d)?(B4(a),C4(a)):
9
+ null},E4=function(){return $APP.xi("x-timeline",new $APP.M(null,5,[$APP.hi,Mpa,$APP.fi,Jpa,$APP.ci,Kpa,$APP.bi,Lpa,$APP.gi,Ipa],null))},y4=new $APP.F(null,"label-div","label-div",1505730697);var Mpa=["label","position","striped"];$APP.he(["x-timeline-select",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.hp,$APP.Z,$APP.Fr,$APP.X,$APP.Rj,$APP.X],null),$APP.yt,!1],null)]);var Fpa=new $APP.ah(null,new $APP.M(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.fa("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 Kx=function(a){a=$APP.C(Jx,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.Rq},Mx=function(a){a=$APP.C(Lx,a);return $APP.n(a)?a:"info"},Nx=function(a){return a==null?!1:$APP.I((""+$APP.P.i(a)).trim().toLowerCase(),"false")},Ox=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>0?a:null):null},Px=function(a){return typeof a==="string"?(a=a.trim(),$APP.I(a,"")&&$APP.I(a.toLowerCase(),"none")?a:null):null},Sx=function(a){var b=
3
- $APP.H(a),c=$APP.C(b,$APP.Yp),d=$APP.C(b,$APP.br);a=$APP.C(b,$APP.Eo);var e=$APP.C(b,$APP.Wi),f=$APP.C(b,$APP.Fn),h=$APP.C(b,$APP.jn),k=$APP.C(b,Qx),m=$APP.C(b,$APP.In);b=$APP.C(b,$APP.No);m=Kx(m);b=Px(b);h=$APP.n($APP.n(h)?b==null:h)?$APP.As:b!=null?$APP.er:$APP.Di;return $APP.Yf([Rx,$APP.Zn,$APP.O,$APP.kq,$APP.Mp,$APP.cj,$APP.Wr,$APP.Yp,$APP.br],[Nx(k),$APP.Vh(a),m,$APP.y.j(h,$APP.er)?b:null,h,$APP.E(e),Ox(f),function(){var q=typeof c==="string"?c.trim():null;return $APP.n(q)?q:""}(),function(){var q=
4
- typeof d==="string"?d.trim():null;return $APP.n(q)?q:""}()])},Tx=function(a){var b=$APP.H(a);a=$APP.C(b,$APP.Zn);b=$APP.C(b,$APP.cj);return $APP.n(a)?$APP.p(b):a},Ux=function(a,b){var c=$APP.H(a);a=$APP.C(c,$APP.O);var d=$APP.C(c,$APP.br);c=$APP.C(c,$APP.Yp);return new $APP.N(null,4,[$APP.O,Mx(a),$APP.$n,b,$APP.br,d,$APP.Yp,c],null)},Vx=function(a){var b=$APP.H(a);a=$APP.C(b,Rx);b=$APP.C(b,$APP.Wr);return $APP.E($APP.n(a)?b!=null&&b>0:a)},$x=function(a){var b=$APP.l(a,"__xToastRefs");if($APP.n(b))return b;
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"),q=document.createElement("span"),u=document.createElement("span"),x=document.createElement("button"),z=document.createElement("span"),A=document.createElement("div"),D=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
- $APP.T(d,"part","container");$APP.T(e,"part","inner");$APP.T(f,"part","icon");$APP.T(f,"aria-hidden","true");$APP.T(h,"name","icon");$APP.T(k,"part","default-icon");h.appendChild(k);f.appendChild(h);$APP.T(m,"part","body");$APP.T(q,"part","heading");$APP.T(u,"part","message");m.appendChild(q);m.appendChild(u);$APP.T(x,"part","dismiss");$APP.T(x,"type","button");$APP.T(x,"aria-label","Dismiss toast");$APP.T(z,"aria-hidden","true");z.textContent="×";x.appendChild(z);e.appendChild(f);e.appendChild(m);
7
- e.appendChild(x);$APP.T(A,"part","progress");$APP.T(D,"part","progress-bar");A.appendChild(D);d.appendChild(e);d.appendChild(A);b.appendChild(c);b.appendChild(d);$APP.R(a,"__xToastRefs",$APP.Yf([Wx,$APP.us,Xx,$APP.nq,$APP.gs,Yx,$APP.Kj,$APP.Lj,$APP.vo,$APP.en,$APP.Go,Zx],[D,k,u,x,m,e,b,d,A,f,h,q]));return $APP.l(a,"__xToastRefs")},ay=function(a){return Sx($APP.Yf([$APP.Eo,$APP.Wi,$APP.Fn,$APP.jn,Qx,$APP.No,$APP.In,$APP.Yp,$APP.br],[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")]))},ey=function(a){var b=ay(a);if($APP.I($APP.l(a,"__xToastModel"),b)){b=$APP.H(b);var c=$APP.C(b,$APP.O),d=$APP.C(b,$APP.br),e=$APP.C(b,$APP.Yp),f=$APP.C(b,$APP.Zn),h=$APP.C(b,$APP.cj),k=$APP.C(b,$APP.Wr),m=$x(a),q=$APP.H(m),u=$APP.C(q,$APP.Go),x=$APP.C(q,Zx);m=$APP.C(q,Wx);var z=$APP.C(q,$APP.us),A=$APP.C(q,Xx),D=$APP.C(q,$APP.nq),G=$APP.C(q,$APP.Lj),
9
- J=$APP.C(q,$APP.vo);q=$APP.C(q,$APP.en);$APP.T(a,"data-type",Mx(c));var S=$APP.y.j(c,$APP.Jr)||$APP.y.j(c,$APP.On)?"alert":"status";$APP.T(G,"role",S);x.textContent=d;x.style.display=$APP.y.j(d,"")?"none":"";A.textContent=e;d=$APP.n(u)?u.assignedNodes().length>0:null;u=$APP.H(b);e=$APP.C(u,$APP.Mp);u=$APP.C(u,$APP.kq);$APP.y.j(e,$APP.er)?c=u:(c=$APP.C(by,c),c=$APP.n(c)?c:$APP.C(by,$APP.Rq));d=$APP.p(d)&&$APP.y.j(e,$APP.As);d=$APP.H(new $APP.N(null,2,[cy,d,dy,c],null));c=$APP.C(d,cy);d=$APP.C(d,dy);
10
- $APP.n(c)?(z.textContent="",q.style.display="none"):(z.textContent=d,q.style.display="inline");$APP.n(f)?(D.disabled=$APP.E(h),D.style.display="inline-flex"):(D.disabled=!0,D.style.display="none");z=Vx(b);$APP.n(z)?(J.style.display="block",m.style.setProperty("--x-toast-timeout",""+$APP.P.i(k)+"ms")):J.style.display="none";f=$APP.n(f)?$APP.p(h):f;a.tabIndex=$APP.n(f)?0:-1;$APP.n(h)?$APP.T(a,"aria-disabled","true"):$APP.U(a,"aria-disabled");$APP.n(f)?$APP.T(a,"aria-keyshortcuts","Escape"):$APP.U(a,
11
- "aria-keyshortcuts");$APP.R(a,"__xToastModel",b)}},fy=function(){return $APP.E(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},gy=function(a){a=typeof a==="string"?a.trim():"";return $APP.y.j(a,"")||$APP.y.j(a,"0")||$APP.y.j(a,"0ms")||$APP.y.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},hy=function(a){var b=
12
- $APP.l(a,"__xToastTimeout");$APP.n(b)&&(clearTimeout(b),$APP.R(a,"__xToastTimeout",null))},jy=function(a){hy(a);var b=function(){var c=$APP.l(a,"__xToastModel");return $APP.n(c)?c:ay(a)}();return $APP.n(function(){var c=Tx(b);return $APP.n(c)?typeof $APP.Wr.i(b)==="number"&&$APP.p($APP.l(a,"__xToastExiting")):c}())?$APP.R(a,"__xToastTimeout",setTimeout(function(){$APP.R(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:ay(a)}();if($APP.n(Tx(c)))return c=$APP.Xm(Ux(c,"timeout")),$APP.ri(a,"x-toast-dismiss",c)?iy.i?iy.i(a):iy.call(null,a):null}return null},$APP.Wr.i(b))):null},ky=function(a){var b=$APP.l(a,"__xToastModel");$APP.n($APP.n(b)?Vx(b):b)&&$APP.T(a,"data-progress-active","");return jy(a)},ly=function(a){if($APP.n($APP.l(a,"__xToastEntered")))return null;$APP.R(a,"__xToastEntered",!0);$APP.T(a,"data-entering","");if(fy())return $APP.U(a,"data-entering"),
14
- ky(a);var b=$x(a);b=$APP.H(b);var c=$APP.C(b,$APP.Lj);return c.addEventListener("animationend",function f(e){return $APP.y.j(e.target,c)?(c.removeEventListener("animationend",f),$APP.U(a,"data-entering"),ky(a)):null})},my=function(a,b,c){var d=function h(f){return $APP.y.j(f.target,b)?(b.removeEventListener("animationend",h),f=$APP.l(a,"__xToastExitTimer"),$APP.n(f)&&(clearTimeout(f),$APP.R(a,"__xToastExitTimer",null)),$APP.n(a.isConnected)?a.remove():null):null};$APP.T(a,"data-exiting","");b.addEventListener("animationend",
15
- d);return $APP.R(a,"__xToastExitTimer",setTimeout(function(){var f=a.isConnected;return $APP.n($APP.n(f)?$APP.l(a,"__xToastExiting"):f)?(b.removeEventListener("animationend",d),$APP.R(a,"__xToastExitTimer",null),a.remove()):null},c+60))},iy=function(a){if($APP.n($APP.l(a,"__xToastExiting")))return null;$APP.R(a,"__xToastExiting",!0);hy(a);$APP.U(a,"data-entering");$APP.U(a,"data-progress-active");var b=window.getComputedStyle(a);var c=gy(b.getPropertyValue("--x-toast-exit-duration"));b=gy(b.getPropertyValue("--x-motion-exit-duration"));
16
- c=c>0?c:b>0?b:180;if(c===0||fy())return a.remove();b=$x(a);b=$APP.H(b);b=$APP.C(b,$APP.Lj);return my(a,b,c)},ny=function(a,b){var c=$APP.l(a,"__xToastModel");c=$APP.n(c)?c:ay(a);b=$APP.Xm(Ux(c,b));(b=$APP.ri(a,"x-toast-dismiss",b))&&iy(a);return b},oy=function(a,b){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:ay(a)}();return $APP.n(function(){var d=Tx(c);return $APP.n(d)?$APP.p($APP.l(a,"__xToastExiting")):d}())?(b.preventDefault(),ny(a,"button")):null},py=function(a,b){if($APP.y.j(b.key,
17
- "Escape")){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:ay(a)}();if($APP.n(function(){var d=Tx(c);return $APP.n(d)?$APP.p($APP.l(a,"__xToastExiting")):d}()))return b.preventDefault(),ny(a,"keyboard")}return null},qy=function(a){function b(e){return py(a,e)}function c(e){return oy(a,e)}var d=$x(a);d=$APP.H(d);$APP.C(d,$APP.nq).addEventListener("click",c);a.addEventListener("keydown",b);$APP.R(a,"__xToastHandlers",{click:c,keydown:b})},ry=function(a){hy(a);var b=$APP.l(a,"__xToastExitTimer");
18
- $APP.n(b)&&(clearTimeout(b),$APP.R(a,"__xToastExitTimer",null));b=$APP.l(a,"__xToastHandlers");var c=$APP.l(a,"__xToastRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.nq.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.R(a,"__xToastHandlers",null)},sy=function(a){$APP.xi(a,"type","type","info");$APP.xi(a,"heading","heading","");$APP.xi(a,"message","message","");$APP.yi(a,"icon","icon");$APP.vi(a,"dismissible",
19
- "dismissible");$APP.ui(a,"disabled","disabled");Object.defineProperty(a,"timeoutMs",{get:function(){return Ox(this.getAttribute("timeout-ms"))},set:function(b){return b==null?$APP.U(this,"timeout-ms"):$APP.T(this,"timeout-ms",""+$APP.P.i(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"showProgress",{get:function(){return Nx(this.getAttribute("show-progress"))},set:function(b){return $APP.n(b)?$APP.T(this,"show-progress",""):$APP.U(this,"show-progress")},enumerable:!0,configurable:!0})},
20
- ty=function(a){return Object.defineProperty(a,"dismiss",{value:function(b){var c=$APP.p($APP.l(this,"__xToastExiting"));$APP.n(c?this.isConnected:c)&&ny(this,typeof b==="string"?b:"api");return null},writable:!0,configurable:!0})},uy=function(a){$x(a);ry(a);qy(a);ey(a);return ly(a)},vy=function(a){return ry(a)},wy=function(a,b,c,d){return $APP.I(c,d)?(ey(a),$APP.n(a.isConnected)?jy(a):null):null},yy=function(){return $APP.Kh("x-toast",new $APP.N(null,5,[$APP.Bh,xy,$APP.zh,uy,$APP.qh,vy,$APP.ph,wy,
21
- $APP.Ah,function(a){sy(a);return ty(a)}],null))},zy=function(){return yy()},Zx=new $APP.F(null,"heading-el","heading-el",-1277272161),Rx=new $APP.F(null,"show-progress?","show-progress?",-1681518912),Yx=new $APP.F(null,"inner","inner",-1383171215),cy=new $APP.F(null,"hide?","hide?",-988635670),dy=new $APP.F(null,"fallback","fallback",761637929),Xx=new $APP.F(null,"message-el","message-el",-683533234),Wx=new $APP.F(null,"progress-bar","progress-bar",-123877022),Qx=new $APP.F(null,"show-progress-attr",
22
- "show-progress-attr",1680262066);var xy="type heading message icon dismissible disabled timeout-ms show-progress".split(" ");$APP.be(["x-toast-dismiss",new $APP.N(null,2,[$APP.V,new $APP.N(null,4,[$APP.O,$APP.Y,$APP.$n,$APP.Y,$APP.br,$APP.Y,$APP.Yp,$APP.Y],null),$APP.Mr,!0],null)]);
23
- var Jx=new $APP.N(null,4,["info",$APP.Rq,"success",$APP.fq,"warning",$APP.Jr,"error",$APP.On],null),Lx=new $APP.N(null,4,[$APP.Rq,"info",$APP.fq,"success",$APP.Jr,"warning",$APP.On,"error"],null),by=new $APP.N(null,4,[$APP.Rq,"ℹ",$APP.fq,"✓",$APP.Jr,"!",$APP.On,"⨯"],null);$APP.fa("baredom.exports.x_toast.init",zy);export const init=zy;
2
+ var uz=function(a){a=$APP.C(tz,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.Ds},wz=function(a){a=$APP.C(vz,a);return $APP.n(a)?a:"info"},xz=function(a){return a==null?!1:$APP.I((""+$APP.P.i(a)).trim().toLowerCase(),"false")},yz=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>0?a:null):null},zz=function(a){return typeof a==="string"?(a=a.trim(),$APP.I(a,"")&&$APP.I(a.toLowerCase(),"none")?a:null):null},Cz=function(a){var b=
3
+ $APP.G(a),c=$APP.C(b,$APP.Jr),d=$APP.C(b,$APP.Ns);a=$APP.C(b,$APP.Bq);var e=$APP.C(b,$APP.zj),f=$APP.C(b,$APP.up),h=$APP.C(b,$APP.Yo),k=$APP.C(b,Az),m=$APP.C(b,$APP.xp);b=$APP.C(b,$APP.Lq);m=uz(m);b=zz(b);h=$APP.n($APP.n(h)?b==null:h)?$APP.ou:b!=null?$APP.Ps:$APP.rj;return $APP.Eg([Bz,$APP.Qp,$APP.O,$APP.Xr,$APP.wr,$APP.Sj,$APP.Jt,$APP.Jr,$APP.Ns],[xz(k),$APP.Ii(a),m,$APP.z.j(h,$APP.Ps)?b:null,h,$APP.D(e),yz(f),function(){var q=typeof c==="string"?c.trim():null;return $APP.n(q)?q:""}(),function(){var q=
4
+ typeof d==="string"?d.trim():null;return $APP.n(q)?q:""}()])},Dz=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Qp);b=$APP.C(b,$APP.Sj);return $APP.n(a)?$APP.p(b):a},Ez=function(a,b){var c=$APP.G(a);a=$APP.C(c,$APP.O);var d=$APP.C(c,$APP.Ns);c=$APP.C(c,$APP.Jr);return new $APP.M(null,4,[$APP.O,wz(a),$APP.Rp,b,$APP.Ns,d,$APP.Jr,c],null)},Fz=function(a){var b=$APP.G(a);a=$APP.C(b,Bz);b=$APP.C(b,$APP.Jt);return $APP.D($APP.n(a)?b!=null&&b>0:a)},Kz=function(a){var b=$APP.l(a,"__xToastRefs");if($APP.n(b))return b;
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"),q=document.createElement("span"),u=document.createElement("span"),x=document.createElement("button"),y=document.createElement("span"),A=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
+ $APP.T(d,"part","container");$APP.T(e,"part","inner");$APP.T(f,"part","icon");$APP.T(f,"aria-hidden","true");$APP.T(h,"name","icon");$APP.T(k,"part","default-icon");h.appendChild(k);f.appendChild(h);$APP.T(m,"part","body");$APP.T(q,"part","heading");$APP.T(u,"part","message");m.appendChild(q);m.appendChild(u);$APP.T(x,"part","dismiss");$APP.T(x,"type","button");$APP.T(x,"aria-label","Dismiss toast");$APP.T(y,"aria-hidden","true");y.textContent="×";x.appendChild(y);e.appendChild(f);e.appendChild(m);
7
+ e.appendChild(x);$APP.T(A,"part","progress");$APP.T(E,"part","progress-bar");A.appendChild(E);d.appendChild(e);d.appendChild(A);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xToastRefs",$APP.Eg([Gz,$APP.iu,Hz,$APP.$r,$APP.Ut,Iz,$APP.Ak,$APP.Bk,$APP.sq,$APP.Uo,$APP.Eq,Jz],[E,k,u,x,m,e,b,d,A,f,h,q]));return $APP.l(a,"__xToastRefs")},Lz=function(a){return Cz($APP.Eg([$APP.Bq,$APP.zj,$APP.up,$APP.Yo,Az,$APP.Lq,$APP.xp,$APP.Jr,$APP.Ns],[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")]))},Pz=function(a){var b=Lz(a);if($APP.I($APP.l(a,"__xToastModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.O),d=$APP.C(b,$APP.Ns),e=$APP.C(b,$APP.Jr),f=$APP.C(b,$APP.Qp),h=$APP.C(b,$APP.Sj),k=$APP.C(b,$APP.Jt),m=Kz(a),q=$APP.G(m),u=$APP.C(q,$APP.Eq),x=$APP.C(q,Jz);m=$APP.C(q,Gz);var y=$APP.C(q,$APP.iu),A=$APP.C(q,Hz),E=$APP.C(q,$APP.$r),H=$APP.C(q,$APP.Bk),
9
+ N=$APP.C(q,$APP.sq);q=$APP.C(q,$APP.Uo);$APP.T(a,"data-type",wz(c));var S=$APP.z.j(c,$APP.vt)||$APP.z.j(c,$APP.Dp)?"alert":"status";$APP.T(H,"role",S);x.textContent=d;x.style.display=$APP.z.j(d,"")?"none":"";A.textContent=e;d=$APP.n(u)?u.assignedNodes().length>0:null;u=$APP.G(b);e=$APP.C(u,$APP.wr);u=$APP.C(u,$APP.Xr);$APP.z.j(e,$APP.Ps)?c=u:(c=$APP.C(Mz,c),c=$APP.n(c)?c:$APP.C(Mz,$APP.Ds));d=$APP.p(d)&&$APP.z.j(e,$APP.ou);d=$APP.G(new $APP.M(null,2,[Nz,d,Oz,c],null));c=$APP.C(d,Nz);d=$APP.C(d,Oz);
10
+ $APP.n(c)?(y.textContent="",q.style.display="none"):(y.textContent=d,q.style.display="inline");$APP.n(f)?(E.disabled=$APP.D(h),E.style.display="inline-flex"):(E.disabled=!0,E.style.display="none");y=Fz(b);$APP.n(y)?(N.style.display="block",m.style.setProperty("--x-toast-timeout",""+$APP.P.i(k)+"ms")):N.style.display="none";f=$APP.n(f)?$APP.p(h):f;a.tabIndex=$APP.n(f)?0:-1;$APP.n(h)?$APP.T(a,"aria-disabled","true"):$APP.U(a,"aria-disabled");$APP.n(f)?$APP.T(a,"aria-keyshortcuts","Escape"):$APP.U(a,
11
+ "aria-keyshortcuts");$APP.Q(a,"__xToastModel",b)}},Qz=function(){return $APP.D(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},Rz=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},Sz=function(a){var b=
12
+ $APP.l(a,"__xToastTimeout");$APP.n(b)&&(clearTimeout(b),$APP.Q(a,"__xToastTimeout",null))},Uz=function(a){Sz(a);var b=function(){var c=$APP.l(a,"__xToastModel");return $APP.n(c)?c:Lz(a)}();return $APP.n(function(){var c=Dz(b);return $APP.n(c)?typeof $APP.Jt.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:Lz(a)}();if($APP.n(Dz(c)))return c=$APP.bm(Ez(c,"timeout")),$APP.fj(a,"x-toast-dismiss",c)?Tz.i?Tz.i(a):Tz.call(null,a):null}return null},$APP.Jt.i(b))):null},Vz=function(a){var b=$APP.l(a,"__xToastModel");$APP.n($APP.n(b)?Fz(b):b)&&$APP.T(a,"data-progress-active","");return Uz(a)},Wz=function(a){if($APP.n($APP.l(a,"__xToastEntered")))return null;$APP.Q(a,"__xToastEntered",!0);$APP.T(a,"data-entering","");if(Qz())return $APP.U(a,"data-entering"),
14
+ Vz(a);var b=Kz(a);b=$APP.G(b);var c=$APP.C(b,$APP.Bk);return c.addEventListener("animationend",function f(e){return $APP.z.j(e.target,c)?(c.removeEventListener("animationend",f),$APP.U(a,"data-entering"),Vz(a)):null})},Xz=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.T(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))},Tz=function(a){if($APP.n($APP.l(a,"__xToastExiting")))return null;$APP.Q(a,"__xToastExiting",!0);Sz(a);$APP.U(a,"data-entering");$APP.U(a,"data-progress-active");var b=window.getComputedStyle(a);var c=Rz(b.getPropertyValue("--x-toast-exit-duration"));b=Rz(b.getPropertyValue("--x-motion-exit-duration"));
16
+ c=c>0?c:b>0?b:180;if(c===0||Qz())return a.remove();b=Kz(a);b=$APP.G(b);b=$APP.C(b,$APP.Bk);return Xz(a,b,c)},Yz=function(a,b){var c=$APP.l(a,"__xToastModel");c=$APP.n(c)?c:Lz(a);b=$APP.bm(Ez(c,b));(b=$APP.fj(a,"x-toast-dismiss",b))&&Tz(a);return b},Zz=function(a,b){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:Lz(a)}();return $APP.n(function(){var d=Dz(c);return $APP.n(d)?$APP.p($APP.l(a,"__xToastExiting")):d}())?(b.preventDefault(),Yz(a,"button")):null},$z=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:Lz(a)}();if($APP.n(function(){var d=Dz(c);return $APP.n(d)?$APP.p($APP.l(a,"__xToastExiting")):d}()))return b.preventDefault(),Yz(a,"keyboard")}return null},aA=function(a){function b(e){return $z(a,e)}function c(e){return Zz(a,e)}var d=Kz(a);d=$APP.G(d);$APP.C(d,$APP.$r).addEventListener("click",c);a.addEventListener("keydown",b);$APP.Q(a,"__xToastHandlers",{click:c,keydown:b})},bA=function(a){Sz(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.$r.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)},cA=function(a){$APP.lj(a,"type","type","info");$APP.lj(a,"heading","heading","");$APP.lj(a,"message","message","");$APP.mj(a,"icon","icon");$APP.jj(a,"dismissible",
19
+ "dismissible");$APP.ij(a,"disabled","disabled");Object.defineProperty(a,"timeoutMs",{get:function(){return yz(this.getAttribute("timeout-ms"))},set:function(b){return b==null?$APP.U(this,"timeout-ms"):$APP.T(this,"timeout-ms",""+$APP.P.i(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"showProgress",{get:function(){return xz(this.getAttribute("show-progress"))},set:function(b){return $APP.n(b)?$APP.T(this,"show-progress",""):$APP.U(this,"show-progress")},enumerable:!0,configurable:!0})},
20
+ dA=function(a){return Object.defineProperty(a,"dismiss",{value:function(b){var c=$APP.p($APP.l(this,"__xToastExiting"));$APP.n(c?this.isConnected:c)&&Yz(this,typeof b==="string"?b:"api");return null},writable:!0,configurable:!0})},eA=function(a){Kz(a);bA(a);aA(a);Pz(a);return Wz(a)},fA=function(a){return bA(a)},gA=function(a,b,c,d){return $APP.I(c,d)?(Pz(a),$APP.n(a.isConnected)?Uz(a):null):null},iA=function(){return $APP.xi("x-toast",new $APP.M(null,5,[$APP.hi,hA,$APP.fi,eA,$APP.ci,fA,$APP.bi,gA,
21
+ $APP.gi,function(a){cA(a);return dA(a)}],null))},jA=function(){return iA()},Jz=new $APP.F(null,"heading-el","heading-el",-1277272161),Bz=new $APP.F(null,"show-progress?","show-progress?",-1681518912),Iz=new $APP.F(null,"inner","inner",-1383171215),Nz=new $APP.F(null,"hide?","hide?",-988635670),Oz=new $APP.F(null,"fallback","fallback",761637929),Hz=new $APP.F(null,"message-el","message-el",-683533234),Gz=new $APP.F(null,"progress-bar","progress-bar",-123877022),Az=new $APP.F(null,"show-progress-attr",
22
+ "show-progress-attr",1680262066);var hA="type heading message icon dismissible disabled timeout-ms show-progress".split(" ");$APP.he(["x-toast-dismiss",new $APP.M(null,2,[$APP.V,new $APP.M(null,4,[$APP.O,$APP.X,$APP.Rp,$APP.X,$APP.Ns,$APP.X,$APP.Jr,$APP.X],null),$APP.yt,!0],null)]);
23
+ var tz=new $APP.M(null,4,["info",$APP.Ds,"success",$APP.Rr,"warning",$APP.vt,"error",$APP.Dp],null),vz=new $APP.M(null,4,[$APP.Ds,"info",$APP.Rr,"success",$APP.vt,"warning",$APP.Dp,"error"],null),Mz=new $APP.M(null,4,[$APP.Ds,"ℹ",$APP.Rr,"✓",$APP.vt,"!",$APP.Dp,"⨯"],null);$APP.fa("baredom.exports.x_toast.init",jA);export const init=jA;