@vanelsas/baredom 2.9.0 → 3.0.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 (107) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +1 -1
  3. package/dist/baredom.d.ts +20 -0
  4. package/dist/base.js +541 -455
  5. package/dist/integrity.json +103 -102
  6. package/dist/x-alert.js +16 -17
  7. package/dist/x-avatar-group.js +9 -9
  8. package/dist/x-avatar.js +14 -15
  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 -17
  14. package/dist/x-cancel-dialogue.js +13 -13
  15. package/dist/x-card.js +7 -7
  16. package/dist/x-carousel.js +31 -31
  17. package/dist/x-chart.js +47 -47
  18. package/dist/x-checkbox.js +1 -11
  19. package/dist/x-chip.js +1 -1
  20. package/dist/x-collapse.js +10 -10
  21. package/dist/x-color-picker.js +45 -45
  22. package/dist/x-combobox.js +26 -26
  23. package/dist/x-command-palette.js +24 -24
  24. package/dist/x-confetti.js +24 -22
  25. package/dist/x-container.js +5 -4
  26. package/dist/x-context-menu.js +20 -20
  27. package/dist/x-copy.js +20 -20
  28. package/dist/x-currency-field.js +23 -23
  29. package/dist/x-date-picker.js +40 -40
  30. package/dist/x-divider.js +9 -9
  31. package/dist/x-drawer.js +9 -9
  32. package/dist/x-dropdown.js +11 -11
  33. package/dist/x-fieldset.js +5 -5
  34. package/dist/x-file-download.js +7 -7
  35. package/dist/x-file-upload.js +22 -22
  36. package/dist/x-form-field.js +15 -15
  37. package/dist/x-form.js +9 -9
  38. package/dist/x-gaussian-blur.js +12 -12
  39. package/dist/x-grid.js +7 -6
  40. package/dist/x-i18n-provider.js +7 -7
  41. package/dist/x-i18n.js +4 -4
  42. package/dist/x-icon.js +6 -6
  43. package/dist/x-image.js +16 -17
  44. package/dist/x-kbd.js +15 -15
  45. package/dist/x-kinetic-canvas.js +25 -25
  46. package/dist/x-kinetic-font.js +27 -27
  47. package/dist/x-kinetic-typography.js +33 -33
  48. package/dist/x-liquid-dock.js +38 -38
  49. package/dist/x-liquid-fill.js +43 -43
  50. package/dist/x-liquid-glass.js +47 -47
  51. package/dist/x-menu-item.js +8 -8
  52. package/dist/x-menu.js +10 -9
  53. package/dist/x-metaball-cursor.js +26 -26
  54. package/dist/x-modal.js +10 -10
  55. package/dist/x-morph-stack.js +36 -37
  56. package/dist/x-multi-combobox.js +36 -36
  57. package/dist/x-navbar.js +12 -12
  58. package/dist/x-neural-glow.js +32 -32
  59. package/dist/x-notification-center.js +9 -9
  60. package/dist/x-organic-divider.js +17 -17
  61. package/dist/x-organic-progress.js +37 -37
  62. package/dist/x-organic-shape.js +13 -13
  63. package/dist/x-otp-input.js +22 -22
  64. package/dist/x-pagination.js +15 -15
  65. package/dist/x-particle-button.js +51 -51
  66. package/dist/x-popover.js +25 -26
  67. package/dist/x-progress-circle.js +8 -8
  68. package/dist/x-progress.js +10 -10
  69. package/dist/x-proximity-list.js +20 -19
  70. package/dist/x-radio.js +11 -11
  71. package/dist/x-ripple-effect.js +10 -10
  72. package/dist/x-scroll-parallax.js +18 -18
  73. package/dist/x-scroll-stack.js +17 -17
  74. package/dist/x-scroll-story.js +34 -34
  75. package/dist/x-scroll-timeline.js +44 -44
  76. package/dist/x-scroll.js +38 -38
  77. package/dist/x-search-field.js +1 -15
  78. package/dist/x-select.js +1 -11
  79. package/dist/x-sidebar.js +16 -16
  80. package/dist/x-skeleton-group.js +12 -12
  81. package/dist/x-skeleton.js +1 -1
  82. package/dist/x-slider.js +15 -15
  83. package/dist/x-soft-body.js +22 -22
  84. package/dist/x-spacer.js +4 -4
  85. package/dist/x-spinner.js +4 -4
  86. package/dist/x-splash.js +12 -12
  87. package/dist/x-spotlight-card.js +12 -12
  88. package/dist/x-stat.js +10 -10
  89. package/dist/x-stepper.js +14 -14
  90. package/dist/x-switch.js +10 -10
  91. package/dist/x-tab.js +7 -7
  92. package/dist/x-table-cell.js +18 -18
  93. package/dist/x-table-row.js +8 -8
  94. package/dist/x-table.js +12 -12
  95. package/dist/x-tabs.js +11 -11
  96. package/dist/x-text-area.js +19 -19
  97. package/dist/x-theme.js +25 -25
  98. package/dist/x-timeline-item.js +20 -21
  99. package/dist/x-timeline.js +8 -8
  100. package/dist/x-toast.js +22 -23
  101. package/dist/x-toaster.js +8 -8
  102. package/dist/x-tooltip.js +12 -12
  103. package/dist/x-trace-history.d.ts +242 -0
  104. package/dist/x-trace-history.js +118 -0
  105. package/dist/x-typography.js +9 -9
  106. package/dist/x-welcome-tour.js +60 -59
  107. package/package.json +6 -1
package/dist/x-popover.js CHANGED
@@ -1,27 +1,26 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Iu=function(a){switch(a){case "bottom-start":return"top-start";case "bottom-end":return"top-end";case "top-start":return"bottom-start";case "top-end":return"bottom-end";default:return a}},Ju=function(a,b,c,d){function e(v){a:{var w=$APP.H(b);var y=$APP.C(w,$APP.kn);var A=$APP.C(w,$APP.jn),D=$APP.C(w,$APP.ji);w=$APP.C(w,$APP.ki);var G=$APP.H(c),I=$APP.C(G,$APP.ji);G=$APP.C(G,$APP.ki);switch(v){case "bottom-start":y=new $APP.P(null,2,[$APP.kn,y,$APP.jn,A+w+4],null);break a;case "bottom-end":y=new $APP.P(null,
3
- 2,[$APP.kn,y+D-I,$APP.jn,A+w+4],null);break a;case "top-start":y=new $APP.P(null,2,[$APP.kn,y,$APP.jn,A-G-4],null);break a;case "top-end":y=new $APP.P(null,2,[$APP.kn,y+D-I,$APP.jn,A-G-4],null);break a;default:y=new $APP.P(null,2,[$APP.kn,y,$APP.jn,A+w+4],null)}}A=$APP.H(y);y=$APP.C(A,$APP.kn);A=$APP.C(A,$APP.jn);D=$APP.Di.j($APP.Ci.j(y,8),f-l-8);w=$APP.Di.j($APP.Ci.j(A,8),h-m-8);return new $APP.P(null,5,[$APP.kn,D,$APP.jn,w,$APP.Hj,v,$APP.En,y>=8&&y+l<=f-8&&A>=8&&A+m<=h-8,$APP.Xl,$APP.Ci.j(40,h-
4
- w-8)],null)}d=$APP.H(d);var f=$APP.C(d,$APP.ji),h=$APP.C(d,$APP.ki);d=$APP.H(c);var l=$APP.C(d,$APP.ji),m=$APP.C(d,$APP.ki),q=e(a),r=e(Iu(a));return $APP.n(function(){var v=$APP.En.i(q);return $APP.n(v)?v:$APP.p($APP.En.i(r))}())?q:r},Ku=function(a){return document.createElement(a)},Tu=function(a){a=new $APP.P(null,7,[$APP.Sj,a.hasAttribute("open"),$APP.Eh,a.hasAttribute("disabled"),Lu,a.hasAttribute("no-close"),Mu,a.hasAttribute("portal"),Nu,a.getAttribute("heading"),$APP.Oo,a.getAttribute("placement"),
5
- Ou,a.getAttribute("close-label")],null);var b=$APP.H(a),c=$APP.C(b,$APP.Sj),d=$APP.C(b,$APP.Eh),e=$APP.C(b,Lu),f=$APP.C(b,Mu),h=$APP.C(b,Nu);a=$APP.C(b,$APP.Oo);b=$APP.C(b,Ou);c=$APP.E(c);d=$APP.E(d);e=$APP.E(e);f=$APP.E(f);h=$APP.n(h)?h:"";b=$APP.n(b)?b:"Close";a=$APP.Vc(Pu,a)?a:"bottom-start";return new $APP.P(null,7,[$APP.to,c,$APP.Y,d,Qu,e,Ru,f,$APP.$m,h,Su,b,$APP.gl,a],null)},Uu=function(a){var b=$APP.k(a,"__xPopoverRefs");if($APP.n(b)){a=Tu(a);var c=$APP.H(a),d=$APP.C(c,$APP.to);a=$APP.C(c,
6
- Qu);var e=$APP.C(c,$APP.$m),f=$APP.C(c,Su),h=$APP.C(c,$APP.gl),l=$APP.k(b,"panel");c=$APP.k(b,"header");var m=$APP.k(b,"heading");b=$APP.k(b,"closeBtn");l.setAttribute("data-placement",h);$APP.$g(l,"inert",$APP.p(d));$APP.M(e,"")?l.setAttribute("aria-labelledby","popover-heading"):l.removeAttribute("aria-labelledby");m.textContent=e;b.setAttribute("aria-label",f);$APP.$g(b,"hidden",a);b=$APP.B.j(e,"");return $APP.$g(c,"hidden",b?a:b)}return null},$u=function(a,b){var c=$APP.H(b);b=$APP.C(c,$APP.$m);
7
- var d=$APP.C(c,Su);c=$APP.C(c,Qu);a=a.shadowRoot;var e=Ku("div"),f=Ku("div"),h=Ku("div"),l=Ku("span"),m=Ku("button"),q=Ku("div"),r=Ku("div");e.setAttribute("part","panel");e.setAttribute("role","dialog");f.setAttribute("part","arrow");f.setAttribute("aria-hidden","true");h.setAttribute("part","header");l.setAttribute("part","heading");l.textContent=b;m.setAttribute("part","close-button");m.setAttribute("type","button");m.setAttribute("aria-label",d);m.innerHTML='\x3csvg width\x3d"14" height\x3d"14" viewBox\x3d"0 0 14 14" fill\x3d"none" xmlns\x3d"http://www.w3.org/2000/svg" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M1 1L13 13M13 1L1 13" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round"/\x3e\x3c/svg\x3e';
8
- $APP.n(c)&&m.setAttribute("hidden","");d=$APP.B.j(b,"");$APP.n(d?c:d)&&h.setAttribute("hidden","");$APP.M(b,"")&&(e.setAttribute("aria-labelledby","portal-heading"),l.setAttribute("id","portal-heading"));q.setAttribute("part","body");r.setAttribute("part","footer");r.setAttribute("hidden","");h.appendChild(l);h.appendChild(m);e.appendChild(f);e.appendChild(h);e.appendChild(q);e.appendChild(r);a.appendChild(e);return new $APP.P(null,7,[Vu,e,Wu,f,$APP.Bk,h,$APP.$m,l,Xu,m,Yu,q,Zu,r],null)},av=function(a,
9
- b){a=a.assignedNodes({flatten:!0});a=$APP.df.j($APP.me,$APP.xc(a));for(var c=$APP.t(a),d=null,e=0,f=0;;)if(f<e){var h=d.G(null,f);b.appendChild(h);f+=1}else if(c=$APP.t(c))d=c,$APP.Rc(d)?(c=$APP.yb(d),f=$APP.zb(d),d=c,e=$APP.z(c),c=f):(c=$APP.u(d),b.appendChild(c),c=$APP.x(d),d=null,e=0),f=0;else break;return a},bv=function(a,b){if($APP.n(a.isConnected)){b=$APP.t(b);for(var c=null,d=0,e=0;;)if(e<d){var f=c.G(null,e);a.appendChild(f);e+=1}else if(b=$APP.t(b))c=b,$APP.Rc(c)?(b=$APP.yb(c),d=$APP.zb(c),
10
- c=b,f=$APP.z(b),b=d,d=f):(f=$APP.u(c),a.appendChild(f),b=$APP.x(c),c=null,d=0),e=0;else break}},cv=function(a,b,c,d){var e=c.getBoundingClientRect();c=a.offsetWidth;var f=a.offsetHeight,h=window.innerWidth,l=window.innerHeight;d=Ju(d,new $APP.P(null,4,[$APP.kn,e.left,$APP.jn,e.top,$APP.ji,e.width,$APP.ki,e.height],null),new $APP.P(null,2,[$APP.ji,$APP.Ci.j(c,200),$APP.ki,$APP.Ci.j(f,100)],null),new $APP.P(null,2,[$APP.ji,h,$APP.ki,l],null));f=$APP.Hj.i(d);a.style.left=""+$APP.R.i($APP.kn.i(d))+"px";
11
- a.style.top=""+$APP.R.i($APP.jn.i(d))+"px";a.style.maxHeight=""+$APP.R.i($APP.Xl.i(d))+"px";a=e.left+e.width/2;e=$APP.B.j(f,"bottom-start")||$APP.B.j(f,"bottom-end")?"bottom":"top";c=$APP.Di.j($APP.Ci.j(a-$APP.kn.i(d),12),$APP.Ci.j(c,200)-12-8);b.setAttribute("data-side",e);b.style.left=""+$APP.R.i(c)+"px"},ev=function(a){var b=$APP.k(a,"__xPopoverRefs");if($APP.n(b)){var c=Tu(a),d=$APP.k(b,"trigger"),e=$APP.yh(a,":host{color-scheme:light dark;--x-popover-panel-bg:var(--x-color-bg,#ffffff);--x-popover-panel-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-panel-radius:var(--x-radius-md,8px);--x-popover-panel-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-popover-panel-min-width:12rem;--x-popover-panel-max-height:24rem;--x-popover-header-padding:0.625rem 0.75rem 0.625rem 0.875rem;--x-popover-header-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-heading-color:var(--x-color-text,#0f172a);--x-popover-heading-font-size:0.9375rem;--x-popover-heading-font-weight:600;--x-popover-close-bg:transparent;--x-popover-close-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-popover-close-color:var(--x-color-text-muted,#64748b);--x-popover-close-color-hover:var(--x-color-text,#0f172a);--x-popover-close-radius:4px;--x-popover-close-size:1.5rem;--x-popover-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-popover-body-padding:0.875rem;--x-popover-body-color:var(--x-color-text-muted,#334155);--x-popover-body-font-size:0.9375rem;--x-popover-footer-padding:0.625rem 0.875rem;--x-popover-footer-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-arrow-size:8px;--x-popover-arrow-bg:var(--x-color-bg,#ffffff);--x-popover-arrow-border:var(--x-color-border,#e2e8f0);--x-popover-transition-duration:var(--x-transition-duration,150ms);--x-popover-transition-easing:var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-popover-panel-bg:var(--x-color-bg,#1e293b);--x-popover-panel-border:1px solid var(--x-color-border,#334155);--x-popover-panel-shadow:0 4px 24px rgba(0,0,0,0.4);--x-popover-header-border:1px solid var(--x-color-border,#334155);--x-popover-heading-color:var(--x-color-text,#e2e8f0);--x-popover-close-bg-hover:var(--x-color-text-muted,#334155);--x-popover-close-color:var(--x-color-text-muted,#94a3b8);--x-popover-close-color-hover:var(--x-color-text,#e2e8f0);--x-popover-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-popover-body-color:var(--x-color-text-muted,#cbd5e1);--x-popover-footer-border:1px solid var(--x-color-border,#334155);--x-popover-arrow-bg:var(--x-color-bg,#1e293b);--x-popover-arrow-border:var(--x-color-border,#334155);}}[part\x3dpanel]{position:absolute;box-sizing:border-box;background:var(--x-popover-panel-bg);border:var(--x-popover-panel-border);border-radius:var(--x-popover-panel-radius);box-shadow:var(--x-popover-panel-shadow);min-width:var(--x-popover-panel-min-width);max-width:calc(100vw - 1rem);max-height:var(--x-popover-panel-max-height);overflow-y:auto;pointer-events:auto;opacity:0;transform:scale(0.96);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing);}[part\x3dpanel][data-open]{opacity:1;transform:scale(1);}[part\x3darrow]{position:absolute;width:var(--x-popover-arrow-size);height:var(--x-popover-arrow-size);background:var(--x-popover-arrow-bg);transform:rotate(45deg);pointer-events:none;}[part\x3darrow][data-side\x3dbottom]{top:calc(var(--x-popover-arrow-size) / -2);border-left:1px solid var(--x-popover-arrow-border);border-top:1px solid var(--x-popover-arrow-border);}[part\x3darrow][data-side\x3dtop]{bottom:calc(var(--x-popover-arrow-size) / -2);border-right:1px solid var(--x-popover-arrow-border);border-bottom:1px solid var(--x-popover-arrow-border);}[part\x3dheader]{display:flex;align-items:center;justify-content:space-between;padding:var(--x-popover-header-padding);border-bottom:var(--x-popover-header-border);gap:0.5rem;}[part\x3dheader][hidden]{display:none;}[part\x3dheading]{flex:1;font-size:var(--x-popover-heading-font-size);font-weight:var(--x-popover-heading-font-weight);color:var(--x-popover-heading-color);font-family:inherit;}[part\x3dclose-button]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-popover-close-size);height:var(--x-popover-close-size);background:var(--x-popover-close-bg);color:var(--x-popover-close-color);border-radius:var(--x-popover-close-radius);cursor:pointer;flex-shrink:0;}[part\x3dclose-button]:hover{background:var(--x-popover-close-bg-hover);color:var(--x-popover-close-color-hover);}[part\x3dclose-button]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-popover-focus-ring);}[part\x3dclose-button][hidden]{display:none;}[part\x3dbody]{padding:var(--x-popover-body-padding);color:var(--x-popover-body-color);font-size:var(--x-popover-body-font-size);font-family:inherit;}[part\x3dfooter]{padding:var(--x-popover-footer-padding);border-top:var(--x-popover-footer-border);}[part\x3dfooter][hidden]{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}}",
12
- 1E3),f=$u(e,c),h=Yu.i(f),l=Zu.i(f),m=Vu.i(f),q=Wu.i(f);f=Xu.i(f);h=av(a.shadowRoot.querySelector("slot:not([name])"),h);$APP.fa(a,"__xPopoverMovedBody",$APP.Yc(h));b=av($APP.k(b,"footerSlot"),l);$APP.fa(a,"__xPopoverMovedFooter",$APP.Yc(b));$APP.z(b)>0&&l.removeAttribute("hidden");cv(m,q,d,$APP.gl.i(c));$APP.zh(e,f,"click",function(){return dv.j?dv.j(a,"close-button"):dv.call(null,a,"close-button")},!1);$APP.zh(e,e,"keydown",function(r){return $APP.B.j(r.key,"Escape")?(r.preventDefault(),dv.j?dv.j(a,
13
- "escape"):dv.call(null,a,"escape")):null},!0);$APP.zh(e,e,"click",function(r){return $APP.n(m.contains(r.target))?null:dv.j?dv.j(a,"outside-click"):dv.call(null,a,"outside-click")},!1);a.__xPopoverLayer=e;requestAnimationFrame(function(){return $APP.n($APP.n(m)?a.isConnected:m)?(cv(m,q,d,$APP.gl.i(c)),m.setAttribute("data-open","")):null})}},fv=function(a){var b=$APP.k(a,"__xPopoverLayer");if($APP.n(b)){var c=$APP.k(a,"__xPopoverMovedBody");$APP.n(c)&&bv(a,$APP.xc(c));c=$APP.k(a,"__xPopoverMovedFooter");
14
- $APP.n(c)&&bv(a,$APP.xc(c));$APP.Ah(b);a.__xPopoverLayer=null;a.__xPopoverMovedBody=null;a.__xPopoverMovedFooter=null}},gv=function(a,b){return $APP.p(a.hasAttribute("disabled"))&&$APP.p(a.hasAttribute("open"))&&$APP.bh(a,"x-popover-toggle",{open:!0,source:b})?(a.setAttribute("open",""),$APP.n(a.hasAttribute("portal"))&&ev(a),$APP.ah(a,"x-popover-change",{open:!0})):null},dv=function(a,b){var c=$APP.p(a.hasAttribute("disabled"));return $APP.n(c?a.hasAttribute("open"):c)&&$APP.bh(a,"x-popover-toggle",
15
- {open:!1,source:b})?(fv(a),a.removeAttribute("open"),$APP.ah(a,"x-popover-change",{open:!1})):null},hv=function(a,b){return $APP.n(a.hasAttribute("open"))?dv(a,b):gv(a,b)},iv=function(a){var b=$APP.k(a,"__xPopoverHandlers");if($APP.n(b)){var c=$APP.k(b,"docClick"),d=$APP.k(b,"docKeydown");return setTimeout(function(){var e=a.isConnected;return $APP.n($APP.n(e)?a.hasAttribute("open"):e)?(document.addEventListener("click",c),document.addEventListener("keydown",d)):null},0)}return null},jv=function(a){a=
16
- $APP.k(a,"__xPopoverHandlers");if($APP.n(a)){var b=$APP.k(a,"docKeydown");document.removeEventListener("click",$APP.k(a,"docClick"));return document.removeEventListener("keydown",b)}return null},kv=function(a){return{triggerClick:function(){return hv(a,"pointer")},closeBtnClick:function(){return dv(a,"close-button")},hostFocusout:function(b){return $APP.n(a.hasAttribute("open"))?(b=b.relatedTarget,b==null||$APP.p(a.contains(b))?dv(a,"focusout"):null):null},docClick:function(b){return $APP.n(a.hasAttribute("open"))?
17
- (b=$APP.yc(b.composedPath()),b=$APP.Yd(function(c){return c===a},b),$APP.n(b)?null:dv(a,"outside-click")):null},docKeydown:function(b){b=$APP.B.j(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?dv(a,"escape"):null},footerSlotchange:function(){var b=$APP.k(a,"__xPopoverRefs");return $APP.n(b)?$APP.$g($APP.k(b,"footer"),"hidden",!($APP.k(b,"footerSlot").assignedNodes().length>0)):null}}},lv=function(a){var b=$APP.k(a,"__xPopoverRefs");if($APP.n(b)){var c=$APP.k(a,"__xPopoverHandlers");if($APP.n(c)){var d=
18
- $APP.k(b,"closeBtn"),e=$APP.k(b,"footerSlot");$APP.k(b,"trigger").removeEventListener("click",$APP.k(c,"triggerClick"));d.removeEventListener("click",$APP.k(c,"closeBtnClick"));a.removeEventListener("focusout",$APP.k(c,"hostFocusout"));e.removeEventListener("slotchange",$APP.k(c,"footerSlotchange"))}}},mv=function(a){if(!$APP.n($APP.k(a,"__xPopoverRefs"))){var b=a.attachShadow({mode:"open"}),c=Ku("style"),d=Ku("span"),e=Ku("slot"),f=Ku("div"),h=Ku("div"),l=Ku("div"),m=Ku("span"),q=Ku("button"),r=
19
- Ku("div"),v=Ku("slot"),w=Ku("div"),y=Ku("slot");c.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-popover-panel-bg:var(--x-color-bg,#ffffff);--x-popover-panel-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-panel-radius:var(--x-radius-md,8px);--x-popover-panel-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-popover-panel-min-width:12rem;--x-popover-panel-max-width:min(24rem,calc(100vw - 1rem));--x-popover-panel-max-height:24rem;--x-popover-panel-offset:4px;--x-popover-panel-z:1000;--x-popover-header-padding:0.625rem 0.75rem 0.625rem 0.875rem;--x-popover-header-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-heading-color:var(--x-color-text,#0f172a);--x-popover-heading-font-size:0.9375rem;--x-popover-heading-font-weight:600;--x-popover-close-bg:transparent;--x-popover-close-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-popover-close-color:var(--x-color-text-muted,#64748b);--x-popover-close-color-hover:var(--x-color-text,#0f172a);--x-popover-close-radius:4px;--x-popover-close-size:1.5rem;--x-popover-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-popover-body-padding:0.875rem;--x-popover-body-color:var(--x-color-text-muted,#334155);--x-popover-body-font-size:0.9375rem;--x-popover-footer-padding:0.625rem 0.875rem;--x-popover-footer-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-arrow-size:8px;--x-popover-arrow-bg:var(--x-color-bg,#ffffff);--x-popover-arrow-border:var(--x-color-border,#e2e8f0);--x-popover-transition-duration:var(--x-transition-duration,150ms);--x-popover-transition-easing:var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-popover-panel-bg:var(--x-color-bg,#1e293b);--x-popover-panel-border:1px solid var(--x-color-border,#334155);--x-popover-panel-shadow:0 4px 24px rgba(0,0,0,0.4);--x-popover-header-border:1px solid var(--x-color-border,#334155);--x-popover-heading-color:var(--x-color-text,#e2e8f0);--x-popover-close-bg-hover:var(--x-color-text-muted,#334155);--x-popover-close-color:var(--x-color-text-muted,#94a3b8);--x-popover-close-color-hover:var(--x-color-text,#e2e8f0);--x-popover-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-popover-body-color:var(--x-color-text-muted,#cbd5e1);--x-popover-footer-border:1px solid var(--x-color-border,#334155);--x-popover-arrow-bg:var(--x-color-bg,#1e293b);--x-popover-arrow-border:var(--x-color-border,#334155);}}[part\x3dtrigger]{display:inline-block;}[part\x3dpanel]{position:absolute;z-index:var(--x-popover-panel-z);box-sizing:border-box;background:var(--x-popover-panel-bg);border:var(--x-popover-panel-border);border-radius:var(--x-popover-panel-radius);box-shadow:var(--x-popover-panel-shadow);min-width:var(--x-popover-panel-min-width);max-width:var(--x-popover-panel-max-width);max-height:var(--x-popover-panel-max-height);overflow-y:auto;visibility:hidden;pointer-events:none;opacity:0;transform:scale(0.96) translateY(-4px);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s var(--x-popover-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;pointer-events:auto;opacity:1;transform:scale(1) translateY(0);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dbottom-start]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:top left;}[part\x3dpanel][data-placement\x3dbottom-end]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:top right;}[part\x3dpanel][data-placement\x3dtop-start]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:bottom left;}[part\x3dpanel][data-placement\x3dtop-end]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:bottom right;}[part\x3darrow]{position:absolute;width:var(--x-popover-arrow-size);height:var(--x-popover-arrow-size);background:var(--x-popover-arrow-bg);transform:rotate(45deg);pointer-events:none;}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{top:calc(var(--x-popover-arrow-size) / -2 - 1px);border-left:1px solid var(--x-popover-arrow-border);border-top:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{right:1rem;}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{bottom:calc(var(--x-popover-arrow-size) / -2 - 1px);border-right:1px solid var(--x-popover-arrow-border);border-bottom:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{right:1rem;}[part\x3dheader]{display:flex;align-items:center;justify-content:space-between;padding:var(--x-popover-header-padding);border-bottom:var(--x-popover-header-border);gap:0.5rem;}[part\x3dheading]{flex:1;font-size:var(--x-popover-heading-font-size);font-weight:var(--x-popover-heading-font-weight);color:var(--x-popover-heading-color);font-family:inherit;}[part\x3dclose-button]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-popover-close-size);height:var(--x-popover-close-size);background:var(--x-popover-close-bg);color:var(--x-popover-close-color);border-radius:var(--x-popover-close-radius);cursor:pointer;flex-shrink:0;transition:background 100ms ease,color 100ms ease;}[part\x3dclose-button]:hover{background:var(--x-popover-close-bg-hover);color:var(--x-popover-close-color-hover);}[part\x3dclose-button]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-popover-focus-ring);}[part\x3dclose-button][hidden]{display:none;}[part\x3dheader][hidden]{display:none;}[part\x3dbody]{padding:var(--x-popover-body-padding);color:var(--x-popover-body-color);font-size:var(--x-popover-body-font-size);font-family:inherit;}[part\x3dfooter]{padding:var(--x-popover-footer-padding);border-top:var(--x-popover-footer-border);}[part\x3dfooter][hidden]{display:none;}:host([portal][open]) [part\x3dpanel]{visibility:hidden !important;pointer-events:none !important;opacity:0 !important;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}[part\x3dclose-button]{transition:none !important;}}";
20
- d.setAttribute("part","trigger");e.setAttribute("name","trigger");f.setAttribute("part","panel");f.setAttribute("role","dialog");f.setAttribute("inert","");f.setAttribute("data-placement","bottom-start");h.setAttribute("part","arrow");h.setAttribute("aria-hidden","true");l.setAttribute("part","header");m.setAttribute("part","heading");m.setAttribute("id","popover-heading");q.setAttribute("part","close-button");q.setAttribute("type","button");q.setAttribute("aria-label","Close");q.innerHTML='\x3csvg width\x3d"14" height\x3d"14" viewBox\x3d"0 0 14 14" fill\x3d"none" xmlns\x3d"http://www.w3.org/2000/svg" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M1 1L13 13M13 1L1 13" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round"/\x3e\x3c/svg\x3e';
21
- r.setAttribute("part","body");w.setAttribute("part","footer");w.setAttribute("hidden","");y.setAttribute("name","footer");d.appendChild(e);l.appendChild(m);l.appendChild(q);r.appendChild(v);w.appendChild(y);f.appendChild(h);f.appendChild(l);f.appendChild(r);f.appendChild(w);b.appendChild(c);b.appendChild(d);b.appendChild(f);a.__xPopoverRefs={trigger:d,panel:f,header:l,heading:m,closeBtn:q,body:r,footer:w,footerSlot:y}}lv(a);jv(a);a.__xPopoverHandlers=kv(a);b=$APP.k(a,"__xPopoverRefs");$APP.n(b)&&
22
- (c=$APP.k(a,"__xPopoverHandlers"),$APP.n(c)&&(d=$APP.k(b,"closeBtn"),e=$APP.k(b,"footerSlot"),$APP.k(b,"trigger").addEventListener("click",$APP.k(c,"triggerClick")),d.addEventListener("click",$APP.k(c,"closeBtnClick")),a.addEventListener("focusout",$APP.k(c,"hostFocusout")),e.addEventListener("slotchange",$APP.k(c,"footerSlotchange"))));$APP.n(a.hasAttribute("open"))&&iv(a);return Uu(a)},nv=function(a){fv(a);lv(a);return jv(a)},ov=function(a,b){return $APP.n($APP.k(a,"__xPopoverRefs"))?(Uu(a),$APP.B.j(b,
23
- "open")?$APP.n(a.hasAttribute("open"))?iv(a):jv(a):null):null},qv=function(a){$APP.ih(a,pv);a.show=function(){return gv(this,"programmatic")};a.hide=function(){return dv(this,"programmatic")};return a.toggle=function(){return hv(this,"programmatic")}},sv=function(){return $APP.Wg("x-popover",new $APP.P(null,5,[$APP.Mg,rv,$APP.Ng,mv,$APP.Og,nv,$APP.Qg,ov,$APP.Ug,qv],null))},Vu=new $APP.F(null,"panel","panel",-558637456),Zu=new $APP.F(null,"footer","footer",1606445390),Su=new $APP.F(null,"close-label",
24
- "close-label",-1088385889),Qu=new $APP.F(null,"no-close?","no-close?",1842227643),Ou=new $APP.F(null,"close-label-raw","close-label-raw",798572883),Ru=new $APP.F(null,"portal?","portal?",-167584340),Yu=new $APP.F(null,"body","body",-2049205669),Nu=new $APP.F(null,"heading-raw","heading-raw",116296555),Xu=new $APP.F(null,"closeBtn","closeBtn",1947660915),Lu=new $APP.F(null,"no-close-present?","no-close-present?",-154717274),Wu=new $APP.F(null,"arrow","arrow",1071351425),Mu=new $APP.F(null,"portal-present?",
25
- "portal-present?",-463262026);var Pu=new $APP.Q(null,new $APP.P(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),rv="open placement heading close-label no-close disabled portal".split(" "),pv=new $APP.P(null,7,[$APP.Qn,new $APP.P(null,2,[$APP.S,$APP.U,$APP.T,"open"],null),$APP.gl,new $APP.P(null,2,[$APP.S,$APP.V,$APP.T,"placement"],null),$APP.$m,new $APP.P(null,2,[$APP.S,$APP.V,$APP.T,"heading"],null),new $APP.F(null,"closeLabel","closeLabel",557288558),new $APP.P(null,2,[$APP.S,$APP.V,
26
- $APP.T,"close-label"],null),new $APP.F(null,"noClose","noClose",1115851533),new $APP.P(null,2,[$APP.S,$APP.U,$APP.T,"no-close"],null),$APP.fl,new $APP.P(null,2,[$APP.S,$APP.U,$APP.T,"disabled"],null),new $APP.F(null,"portal","portal",2002989957),new $APP.P(null,2,[$APP.S,$APP.U,$APP.T,"portal"],null)],null);
27
- $APP.Ud(["x-popover-toggle",new $APP.P(null,2,[$APP.Un,!0,$APP.Z,new $APP.P(null,2,[$APP.Qn,$APP.U,$APP.Rm,$APP.V],null)],null),"x-popover-change",new $APP.P(null,2,[$APP.Un,!1,$APP.Z,new $APP.P(null,1,[$APP.Qn,$APP.U],null)],null)]);$APP.da("baredom.exports.x_popover.init",sv);export const init=sv;
2
+ var Uw=function(a){switch(a){case "bottom-start":return"top-start";case "bottom-end":return"top-end";case "top-start":return"bottom-start";case "top-end":return"bottom-end";default:return a}},Vw=function(a,b,c,d){function e(v){a:{var x=$APP.G(b);var z=$APP.C(x,$APP.aq);var B=$APP.C(x,$APP.$p),E=$APP.C(x,$APP.nl);x=$APP.C(x,$APP.ol);var H=$APP.G(c),K=$APP.C(H,$APP.nl);H=$APP.C(H,$APP.ol);switch(v){case "bottom-start":z=new $APP.O(null,2,[$APP.aq,z,$APP.$p,B+x+4],null);break a;case "bottom-end":z=new $APP.O(null,
3
+ 2,[$APP.aq,z+E-K,$APP.$p,B+x+4],null);break a;case "top-start":z=new $APP.O(null,2,[$APP.aq,z,$APP.$p,B-H-4],null);break a;case "top-end":z=new $APP.O(null,2,[$APP.aq,z+E-K,$APP.$p,B-H-4],null);break a;default:z=new $APP.O(null,2,[$APP.aq,z,$APP.$p,B+x+4],null)}}B=$APP.G(z);z=$APP.C(B,$APP.aq);B=$APP.C(B,$APP.$p);E=$APP.Hl.j($APP.Gl.j(z,8),f-l-8);x=$APP.Hl.j($APP.Gl.j(B,8),h-m-8);return new $APP.O(null,5,[$APP.aq,E,$APP.$p,x,$APP.Em,v,$APP.lq,z>=8&&z+l<=f-8&&B>=8&&B+m<=h-8,$APP.Io,$APP.Gl.j(40,h-
4
+ x-8)],null)}d=$APP.G(d);var f=$APP.C(d,$APP.nl),h=$APP.C(d,$APP.ol);d=$APP.G(c);var l=$APP.C(d,$APP.nl),m=$APP.C(d,$APP.ol),q=e(a),r=e(Uw(a));return $APP.n(function(){var v=$APP.lq.i(q);return $APP.n(v)?v:$APP.p($APP.lq.i(r))}())?q:r},Ww=function(a){return document.createElement(a)},ex=function(a){a=new $APP.O(null,7,[$APP.Qm,a.hasAttribute("open"),$APP.vi,a.hasAttribute("disabled"),Xw,a.hasAttribute("no-close"),Yw,a.hasAttribute("portal"),Zw,a.getAttribute("heading"),$APP.sr,a.getAttribute("placement"),
5
+ $w,a.getAttribute("close-label")],null);var b=$APP.G(a),c=$APP.C(b,$APP.Qm),d=$APP.C(b,$APP.vi),e=$APP.C(b,Xw),f=$APP.C(b,Yw),h=$APP.C(b,Zw);a=$APP.C(b,$APP.sr);b=$APP.C(b,$w);c=$APP.D(c);d=$APP.D(d);e=$APP.D(e);f=$APP.D(f);h=$APP.n(h)?h:"";b=$APP.n(b)?b:"Close";a=$APP.$c(ax,a)?a:"bottom-start";return new $APP.O(null,7,[$APP.Zq,c,$APP.Bi,d,bx,e,cx,f,$APP.Qp,h,dx,b,$APP.Vn,a],null)},fx=function(a){var b=$APP.k(a,"__xPopoverRefs");if($APP.n(b)){a=ex(a);var c=$APP.G(a),d=$APP.C(c,$APP.Zq);a=$APP.C(c,
6
+ bx);var e=$APP.C(c,$APP.Qp),f=$APP.C(c,dx),h=$APP.C(c,$APP.Vn),l=$APP.k(b,"panel");c=$APP.k(b,"header");var m=$APP.k(b,"heading");b=$APP.k(b,"closeBtn");$APP.S(l,"data-placement",h);$APP.Ih(l,"inert",$APP.p(d));$APP.I(e,"")?$APP.S(l,"aria-labelledby","popover-heading"):$APP.T(l,"aria-labelledby");m.textContent=e;$APP.S(b,"aria-label",f);$APP.Ih(b,"hidden",a);b=$APP.A.j(e,"");return $APP.Ih(c,"hidden",b?a:b)}return null},lx=function(a,b){var c=$APP.G(b);b=$APP.C(c,$APP.Qp);var d=$APP.C(c,dx);c=$APP.C(c,
7
+ bx);a=a.shadowRoot;var e=Ww("div"),f=Ww("div"),h=Ww("div"),l=Ww("span"),m=Ww("button"),q=Ww("div"),r=Ww("div");$APP.S(e,"part","panel");$APP.S(e,"role","dialog");$APP.S(f,"part","arrow");$APP.S(f,"aria-hidden","true");$APP.S(h,"part","header");$APP.S(l,"part","heading");l.textContent=b;$APP.S(m,"part","close-button");$APP.S(m,"type","button");$APP.S(m,"aria-label",d);m.innerHTML='\x3csvg width\x3d"14" height\x3d"14" viewBox\x3d"0 0 14 14" fill\x3d"none" xmlns\x3d"http://www.w3.org/2000/svg" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M1 1L13 13M13 1L1 13" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round"/\x3e\x3c/svg\x3e';
8
+ $APP.n(c)&&$APP.S(m,"hidden","");d=$APP.A.j(b,"");$APP.n(d?c:d)&&$APP.S(h,"hidden","");$APP.I(b,"")&&($APP.S(e,"aria-labelledby","portal-heading"),$APP.S(l,"id","portal-heading"));$APP.S(q,"part","body");$APP.S(r,"part","footer");$APP.S(r,"hidden","");h.appendChild(l);h.appendChild(m);e.appendChild(f);e.appendChild(h);e.appendChild(q);e.appendChild(r);a.appendChild(e);return new $APP.O(null,7,[gx,e,hx,f,$APP.yn,h,$APP.Qp,l,ix,m,jx,q,kx,r],null)},mx=function(a,b){a=a.assignedNodes({flatten:!0});a=
9
+ $APP.sf.j($APP.ye,$APP.zc(a));for(var c=$APP.t(a),d=null,e=0,f=0;;)if(f<e){var h=d.F(null,f);b.appendChild(h);f+=1}else if(c=$APP.t(c))d=c,$APP.Wc(d)?(c=$APP.Ab(d),f=$APP.Bb(d),d=c,e=$APP.y(c),c=f):(c=$APP.u(d),b.appendChild(c),c=$APP.w(d),d=null,e=0),f=0;else break;return a},nx=function(a,b){if($APP.n(a.isConnected)){b=$APP.t(b);for(var c=null,d=0,e=0;;)if(e<d){var f=c.F(null,e);a.appendChild(f);e+=1}else if(b=$APP.t(b))c=b,$APP.Wc(c)?(b=$APP.Ab(c),d=$APP.Bb(c),c=b,f=$APP.y(b),b=d,d=f):(f=$APP.u(c),
10
+ a.appendChild(f),b=$APP.w(c),c=null,d=0),e=0;else break}},ox=function(a,b,c,d){var e=c.getBoundingClientRect();c=a.offsetWidth;var f=a.offsetHeight,h=window.innerWidth,l=window.innerHeight;d=Vw(d,new $APP.O(null,4,[$APP.aq,e.left,$APP.$p,e.top,$APP.nl,e.width,$APP.ol,e.height],null),new $APP.O(null,2,[$APP.nl,$APP.Gl.j(c,200),$APP.ol,$APP.Gl.j(f,100)],null),new $APP.O(null,2,[$APP.nl,h,$APP.ol,l],null));f=$APP.Em.i(d);a.style.left=""+$APP.V.i($APP.aq.i(d))+"px";a.style.top=""+$APP.V.i($APP.$p.i(d))+
11
+ "px";a.style.maxHeight=""+$APP.V.i($APP.Io.i(d))+"px";a=e.left+e.width/2;e=$APP.A.j(f,"bottom-start")||$APP.A.j(f,"bottom-end")?"bottom":"top";c=$APP.Hl.j($APP.Gl.j(a-$APP.aq.i(d),12),$APP.Gl.j(c,200)-12-8);$APP.S(b,"data-side",e);b.style.left=""+$APP.V.i(c)+"px"},qx=function(a){var b=$APP.k(a,"__xPopoverRefs");if($APP.n(b)){var c=ex(a),d=$APP.k(b,"trigger"),e=$APP.Wi(a,":host{color-scheme:light dark;--x-popover-panel-bg:var(--x-color-bg,#ffffff);--x-popover-panel-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-panel-radius:var(--x-radius-md,8px);--x-popover-panel-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-popover-panel-min-width:12rem;--x-popover-panel-max-height:24rem;--x-popover-header-padding:0.625rem 0.75rem 0.625rem 0.875rem;--x-popover-header-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-heading-color:var(--x-color-text,#0f172a);--x-popover-heading-font-size:0.9375rem;--x-popover-heading-font-weight:600;--x-popover-close-bg:transparent;--x-popover-close-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-popover-close-color:var(--x-color-text-muted,#64748b);--x-popover-close-color-hover:var(--x-color-text,#0f172a);--x-popover-close-radius:4px;--x-popover-close-size:1.5rem;--x-popover-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-popover-body-padding:0.875rem;--x-popover-body-color:var(--x-color-text-muted,#334155);--x-popover-body-font-size:0.9375rem;--x-popover-footer-padding:0.625rem 0.875rem;--x-popover-footer-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-arrow-size:8px;--x-popover-arrow-bg:var(--x-color-bg,#ffffff);--x-popover-arrow-border:var(--x-color-border,#e2e8f0);--x-popover-transition-duration:var(--x-transition-duration,150ms);--x-popover-transition-easing:var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-popover-panel-bg:var(--x-color-bg,#1e293b);--x-popover-panel-border:1px solid var(--x-color-border,#334155);--x-popover-panel-shadow:0 4px 24px rgba(0,0,0,0.4);--x-popover-header-border:1px solid var(--x-color-border,#334155);--x-popover-heading-color:var(--x-color-text,#e2e8f0);--x-popover-close-bg-hover:var(--x-color-text-muted,#334155);--x-popover-close-color:var(--x-color-text-muted,#94a3b8);--x-popover-close-color-hover:var(--x-color-text,#e2e8f0);--x-popover-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-popover-body-color:var(--x-color-text-muted,#cbd5e1);--x-popover-footer-border:1px solid var(--x-color-border,#334155);--x-popover-arrow-bg:var(--x-color-bg,#1e293b);--x-popover-arrow-border:var(--x-color-border,#334155);}}[part\x3dpanel]{position:absolute;box-sizing:border-box;background:var(--x-popover-panel-bg);border:var(--x-popover-panel-border);border-radius:var(--x-popover-panel-radius);box-shadow:var(--x-popover-panel-shadow);min-width:var(--x-popover-panel-min-width);max-width:calc(100vw - 1rem);max-height:var(--x-popover-panel-max-height);overflow-y:auto;pointer-events:auto;opacity:0;transform:scale(0.96);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing);}[part\x3dpanel][data-open]{opacity:1;transform:scale(1);}[part\x3darrow]{position:absolute;width:var(--x-popover-arrow-size);height:var(--x-popover-arrow-size);background:var(--x-popover-arrow-bg);transform:rotate(45deg);pointer-events:none;}[part\x3darrow][data-side\x3dbottom]{top:calc(var(--x-popover-arrow-size) / -2);border-left:1px solid var(--x-popover-arrow-border);border-top:1px solid var(--x-popover-arrow-border);}[part\x3darrow][data-side\x3dtop]{bottom:calc(var(--x-popover-arrow-size) / -2);border-right:1px solid var(--x-popover-arrow-border);border-bottom:1px solid var(--x-popover-arrow-border);}[part\x3dheader]{display:flex;align-items:center;justify-content:space-between;padding:var(--x-popover-header-padding);border-bottom:var(--x-popover-header-border);gap:0.5rem;}[part\x3dheader][hidden]{display:none;}[part\x3dheading]{flex:1;font-size:var(--x-popover-heading-font-size);font-weight:var(--x-popover-heading-font-weight);color:var(--x-popover-heading-color);font-family:inherit;}[part\x3dclose-button]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-popover-close-size);height:var(--x-popover-close-size);background:var(--x-popover-close-bg);color:var(--x-popover-close-color);border-radius:var(--x-popover-close-radius);cursor:pointer;flex-shrink:0;}[part\x3dclose-button]:hover{background:var(--x-popover-close-bg-hover);color:var(--x-popover-close-color-hover);}[part\x3dclose-button]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-popover-focus-ring);}[part\x3dclose-button][hidden]{display:none;}[part\x3dbody]{padding:var(--x-popover-body-padding);color:var(--x-popover-body-color);font-size:var(--x-popover-body-font-size);font-family:inherit;}[part\x3dfooter]{padding:var(--x-popover-footer-padding);border-top:var(--x-popover-footer-border);}[part\x3dfooter][hidden]{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}}",
12
+ 1E3),f=lx(e,c),h=jx.i(f),l=kx.i(f),m=gx.i(f),q=hx.i(f);f=ix.i(f);h=mx(a.shadowRoot.querySelector("slot:not([name])"),h);$APP.ja(a,"__xPopoverMovedBody",$APP.fd(h));b=mx($APP.k(b,"footerSlot"),l);$APP.ja(a,"__xPopoverMovedFooter",$APP.fd(b));$APP.y(b)>0&&l.removeAttribute("hidden");ox(m,q,d,$APP.Vn.i(c));$APP.Xi(e,f,"click",function(){return px.j?px.j(a,"close-button"):px.call(null,a,"close-button")},!1);$APP.Xi(e,e,"keydown",function(r){return $APP.A.j(r.key,"Escape")?(r.preventDefault(),px.j?px.j(a,
13
+ "escape"):px.call(null,a,"escape")):null},!0);$APP.Xi(e,e,"click",function(r){return $APP.n(m.contains(r.target))?null:px.j?px.j(a,"outside-click"):px.call(null,a,"outside-click")},!1);a.__xPopoverLayer=e;requestAnimationFrame(function(){return $APP.n($APP.n(m)?a.isConnected:m)?(ox(m,q,d,$APP.Vn.i(c)),$APP.S(m,"data-open","")):null})}},rx=function(a){var b=$APP.k(a,"__xPopoverLayer");if($APP.n(b)){var c=$APP.k(a,"__xPopoverMovedBody");$APP.n(c)&&nx(a,$APP.zc(c));c=$APP.k(a,"__xPopoverMovedFooter");
14
+ $APP.n(c)&&nx(a,$APP.zc(c));$APP.Yi(b);a.__xPopoverLayer=null;a.__xPopoverMovedBody=null;a.__xPopoverMovedFooter=null}},sx=function(a,b){return $APP.p(a.hasAttribute("disabled"))&&$APP.p(a.hasAttribute("open"))&&$APP.Ph(a,"x-popover-toggle",{open:!0,source:b})?($APP.S(a,"open",""),$APP.n(a.hasAttribute("portal"))&&qx(a),$APP.Nh(a,"x-popover-change",{open:!0})):null},px=function(a,b){var c=$APP.p(a.hasAttribute("disabled"));return $APP.n(c?a.hasAttribute("open"):c)&&$APP.Ph(a,"x-popover-toggle",{open:!1,
15
+ source:b})?(rx(a),$APP.T(a,"open"),$APP.Nh(a,"x-popover-change",{open:!1})):null},tx=function(a,b){return $APP.n(a.hasAttribute("open"))?px(a,b):sx(a,b)},ux=function(a){var b=$APP.k(a,"__xPopoverHandlers");if($APP.n(b)){var c=$APP.k(b,"docClick"),d=$APP.k(b,"docKeydown");return setTimeout(function(){var e=a.isConnected;return $APP.n($APP.n(e)?a.hasAttribute("open"):e)?(document.addEventListener("click",c),document.addEventListener("keydown",d)):null},0)}return null},vx=function(a){a=$APP.k(a,"__xPopoverHandlers");
16
+ if($APP.n(a)){var b=$APP.k(a,"docKeydown");document.removeEventListener("click",$APP.k(a,"docClick"));return document.removeEventListener("keydown",b)}return null},wx=function(a){return{triggerClick:function(){return tx(a,"pointer")},closeBtnClick:function(){return px(a,"close-button")},hostFocusout:function(b){return $APP.n(a.hasAttribute("open"))?(b=b.relatedTarget,b==null||$APP.p(a.contains(b))?px(a,"focusout"):null):null},docClick:function(b){return $APP.n(a.hasAttribute("open"))?(b=$APP.Ac(b.composedPath()),
17
+ b=$APP.ge(function(c){return c===a},b),$APP.n(b)?null:px(a,"outside-click")):null},docKeydown:function(b){b=$APP.A.j(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?px(a,"escape"):null},footerSlotchange:function(){var b=$APP.k(a,"__xPopoverRefs");return $APP.n(b)?$APP.Ih($APP.k(b,"footer"),"hidden",!($APP.k(b,"footerSlot").assignedNodes().length>0)):null}}},xx=function(a){var b=$APP.k(a,"__xPopoverRefs");if($APP.n(b)){var c=$APP.k(a,"__xPopoverHandlers");if($APP.n(c)){var d=$APP.k(b,"closeBtn"),
18
+ e=$APP.k(b,"footerSlot");$APP.k(b,"trigger").removeEventListener("click",$APP.k(c,"triggerClick"));d.removeEventListener("click",$APP.k(c,"closeBtnClick"));a.removeEventListener("focusout",$APP.k(c,"hostFocusout"));e.removeEventListener("slotchange",$APP.k(c,"footerSlotchange"))}}},yx=function(a){if(!$APP.n($APP.k(a,"__xPopoverRefs"))){var b=a.attachShadow({mode:"open"}),c=Ww("style"),d=Ww("span"),e=Ww("slot"),f=Ww("div"),h=Ww("div"),l=Ww("div"),m=Ww("span"),q=Ww("button"),r=Ww("div"),v=Ww("slot"),
19
+ x=Ww("div"),z=Ww("slot");c.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-popover-panel-bg:var(--x-color-bg,#ffffff);--x-popover-panel-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-panel-radius:var(--x-radius-md,8px);--x-popover-panel-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-popover-panel-min-width:12rem;--x-popover-panel-max-width:min(24rem,calc(100vw - 1rem));--x-popover-panel-max-height:24rem;--x-popover-panel-offset:4px;--x-popover-panel-z:1000;--x-popover-header-padding:0.625rem 0.75rem 0.625rem 0.875rem;--x-popover-header-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-heading-color:var(--x-color-text,#0f172a);--x-popover-heading-font-size:0.9375rem;--x-popover-heading-font-weight:600;--x-popover-close-bg:transparent;--x-popover-close-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-popover-close-color:var(--x-color-text-muted,#64748b);--x-popover-close-color-hover:var(--x-color-text,#0f172a);--x-popover-close-radius:4px;--x-popover-close-size:1.5rem;--x-popover-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-popover-body-padding:0.875rem;--x-popover-body-color:var(--x-color-text-muted,#334155);--x-popover-body-font-size:0.9375rem;--x-popover-footer-padding:0.625rem 0.875rem;--x-popover-footer-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-arrow-size:8px;--x-popover-arrow-bg:var(--x-color-bg,#ffffff);--x-popover-arrow-border:var(--x-color-border,#e2e8f0);--x-popover-transition-duration:var(--x-transition-duration,150ms);--x-popover-transition-easing:var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-popover-panel-bg:var(--x-color-bg,#1e293b);--x-popover-panel-border:1px solid var(--x-color-border,#334155);--x-popover-panel-shadow:0 4px 24px rgba(0,0,0,0.4);--x-popover-header-border:1px solid var(--x-color-border,#334155);--x-popover-heading-color:var(--x-color-text,#e2e8f0);--x-popover-close-bg-hover:var(--x-color-text-muted,#334155);--x-popover-close-color:var(--x-color-text-muted,#94a3b8);--x-popover-close-color-hover:var(--x-color-text,#e2e8f0);--x-popover-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-popover-body-color:var(--x-color-text-muted,#cbd5e1);--x-popover-footer-border:1px solid var(--x-color-border,#334155);--x-popover-arrow-bg:var(--x-color-bg,#1e293b);--x-popover-arrow-border:var(--x-color-border,#334155);}}[part\x3dtrigger]{display:inline-block;}[part\x3dpanel]{position:absolute;z-index:var(--x-popover-panel-z);box-sizing:border-box;background:var(--x-popover-panel-bg);border:var(--x-popover-panel-border);border-radius:var(--x-popover-panel-radius);box-shadow:var(--x-popover-panel-shadow);min-width:var(--x-popover-panel-min-width);max-width:var(--x-popover-panel-max-width);max-height:var(--x-popover-panel-max-height);overflow-y:auto;visibility:hidden;pointer-events:none;opacity:0;transform:scale(0.96) translateY(-4px);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s var(--x-popover-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;pointer-events:auto;opacity:1;transform:scale(1) translateY(0);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dbottom-start]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:top left;}[part\x3dpanel][data-placement\x3dbottom-end]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:top right;}[part\x3dpanel][data-placement\x3dtop-start]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:bottom left;}[part\x3dpanel][data-placement\x3dtop-end]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:bottom right;}[part\x3darrow]{position:absolute;width:var(--x-popover-arrow-size);height:var(--x-popover-arrow-size);background:var(--x-popover-arrow-bg);transform:rotate(45deg);pointer-events:none;}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{top:calc(var(--x-popover-arrow-size) / -2 - 1px);border-left:1px solid var(--x-popover-arrow-border);border-top:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{right:1rem;}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{bottom:calc(var(--x-popover-arrow-size) / -2 - 1px);border-right:1px solid var(--x-popover-arrow-border);border-bottom:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{right:1rem;}[part\x3dheader]{display:flex;align-items:center;justify-content:space-between;padding:var(--x-popover-header-padding);border-bottom:var(--x-popover-header-border);gap:0.5rem;}[part\x3dheading]{flex:1;font-size:var(--x-popover-heading-font-size);font-weight:var(--x-popover-heading-font-weight);color:var(--x-popover-heading-color);font-family:inherit;}[part\x3dclose-button]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-popover-close-size);height:var(--x-popover-close-size);background:var(--x-popover-close-bg);color:var(--x-popover-close-color);border-radius:var(--x-popover-close-radius);cursor:pointer;flex-shrink:0;transition:background 100ms ease,color 100ms ease;}[part\x3dclose-button]:hover{background:var(--x-popover-close-bg-hover);color:var(--x-popover-close-color-hover);}[part\x3dclose-button]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-popover-focus-ring);}[part\x3dclose-button][hidden]{display:none;}[part\x3dheader][hidden]{display:none;}[part\x3dbody]{padding:var(--x-popover-body-padding);color:var(--x-popover-body-color);font-size:var(--x-popover-body-font-size);font-family:inherit;}[part\x3dfooter]{padding:var(--x-popover-footer-padding);border-top:var(--x-popover-footer-border);}[part\x3dfooter][hidden]{display:none;}:host([portal][open]) [part\x3dpanel]{visibility:hidden !important;pointer-events:none !important;opacity:0 !important;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}[part\x3dclose-button]{transition:none !important;}}";
20
+ $APP.S(d,"part","trigger");$APP.S(e,"name","trigger");$APP.S(f,"part","panel");$APP.S(f,"role","dialog");$APP.S(f,"inert","");$APP.S(f,"data-placement","bottom-start");$APP.S(h,"part","arrow");$APP.S(h,"aria-hidden","true");$APP.S(l,"part","header");$APP.S(m,"part","heading");$APP.S(m,"id","popover-heading");$APP.S(q,"part","close-button");$APP.S(q,"type","button");$APP.S(q,"aria-label","Close");q.innerHTML='\x3csvg width\x3d"14" height\x3d"14" viewBox\x3d"0 0 14 14" fill\x3d"none" xmlns\x3d"http://www.w3.org/2000/svg" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M1 1L13 13M13 1L1 13" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round"/\x3e\x3c/svg\x3e';
21
+ $APP.S(r,"part","body");$APP.S(x,"part","footer");$APP.S(x,"hidden","");$APP.S(z,"name","footer");d.appendChild(e);l.appendChild(m);l.appendChild(q);r.appendChild(v);x.appendChild(z);f.appendChild(h);f.appendChild(l);f.appendChild(r);f.appendChild(x);b.appendChild(c);b.appendChild(d);b.appendChild(f);a.__xPopoverRefs={trigger:d,panel:f,header:l,heading:m,closeBtn:q,body:r,footer:x,footerSlot:z}}xx(a);vx(a);a.__xPopoverHandlers=wx(a);b=$APP.k(a,"__xPopoverRefs");$APP.n(b)&&(c=$APP.k(a,"__xPopoverHandlers"),
22
+ $APP.n(c)&&(d=$APP.k(b,"closeBtn"),e=$APP.k(b,"footerSlot"),$APP.k(b,"trigger").addEventListener("click",$APP.k(c,"triggerClick")),d.addEventListener("click",$APP.k(c,"closeBtnClick")),a.addEventListener("focusout",$APP.k(c,"hostFocusout")),e.addEventListener("slotchange",$APP.k(c,"footerSlotchange"))));$APP.n(a.hasAttribute("open"))&&ux(a);return fx(a)},zx=function(a){rx(a);xx(a);return vx(a)},Ax=function(a,b){return $APP.n($APP.k(a,"__xPopoverRefs"))?(fx(a),$APP.A.j(b,"open")?$APP.n(a.hasAttribute("open"))?
23
+ ux(a):vx(a):null):null},Cx=function(a){$APP.Zh(a,Bx);a.show=function(){return sx(this,"programmatic")};a.hide=function(){return px(this,"programmatic")};return a.toggle=function(){return tx(this,"programmatic")}},Ex=function(){return $APP.Ah("x-popover",new $APP.O(null,5,[$APP.qh,Dx,$APP.oh,yx,$APP.lh,zx,$APP.kh,Ax,$APP.ph,Cx],null))},gx=new $APP.F(null,"panel","panel",-558637456),kx=new $APP.F(null,"footer","footer",1606445390),dx=new $APP.F(null,"close-label","close-label",-1088385889),bx=new $APP.F(null,
24
+ "no-close?","no-close?",1842227643),$w=new $APP.F(null,"close-label-raw","close-label-raw",798572883),cx=new $APP.F(null,"portal?","portal?",-167584340),jx=new $APP.F(null,"body","body",-2049205669),Zw=new $APP.F(null,"heading-raw","heading-raw",116296555),ix=new $APP.F(null,"closeBtn","closeBtn",1947660915),Xw=new $APP.F(null,"no-close-present?","no-close-present?",-154717274),hx=new $APP.F(null,"arrow","arrow",1071351425),Yw=new $APP.F(null,"portal-present?","portal-present?",-463262026);var ax=new $APP.pg(null,new $APP.O(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),Dx="open placement heading close-label no-close disabled portal".split(" "),Bx=new $APP.O(null,7,[$APP.wq,new $APP.O(null,2,[$APP.Q,$APP.Xh,$APP.W,"open"],null),$APP.Vn,new $APP.O(null,2,[$APP.Q,$APP.X,$APP.W,"placement"],null),$APP.Qp,new $APP.O(null,2,[$APP.Q,$APP.X,$APP.W,"heading"],null),new $APP.F(null,"closeLabel","closeLabel",557288558),new $APP.O(null,2,[$APP.Q,$APP.X,
25
+ $APP.W,"close-label"],null),new $APP.F(null,"noClose","noClose",1115851533),new $APP.O(null,2,[$APP.Q,$APP.Xh,$APP.W,"no-close"],null),$APP.ck,new $APP.O(null,2,[$APP.Q,$APP.Xh,$APP.W,"disabled"],null),new $APP.F(null,"portal","portal",2002989957),new $APP.O(null,2,[$APP.Q,$APP.Xh,$APP.W,"portal"],null)],null);
26
+ $APP.ce(["x-popover-toggle",new $APP.O(null,2,[$APP.Aq,!0,$APP.U,new $APP.O(null,2,[$APP.wq,$APP.Xh,$APP.Jp,$APP.X],null)],null),"x-popover-change",new $APP.O(null,2,[$APP.Aq,!1,$APP.U,new $APP.O(null,1,[$APP.wq,$APP.Xh],null)],null)]);$APP.ha("baredom.exports.x_popover.init",Ex);export const init=Ex;
@@ -1,10 +1,10 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var E2=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},F2=function(a){var b=new $APP.P(null,7,[$APP.Fh,a.getAttribute("value"),$APP.qm,a.getAttribute("max"),$APP.hi,a.getAttribute("variant"),$APP.bj,a.getAttribute("size"),$APP.X,a.getAttribute("label"),$APP.Dl,a.hasAttribute("show-value"),$APP.Xn,a.hasAttribute("indeterminate")],null);var c=$APP.H(b),d=$APP.C(c,$APP.qm),e=$APP.C(c,$APP.Fh),f=$APP.C(c,$APP.hi),h=$APP.C(c,$APP.bj);b=$APP.C(c,$APP.X);var l=$APP.C(c,
3
- $APP.Dl);c=$APP.C(c,$APP.Xn);d=E2(d,100);d=d>0?d:100;e=$APP.Di.j($APP.Ci.j(E2(e,0),0),d);f=typeof f==="string"&&$APP.Vc(iba,f)?f:"default";h=typeof h==="string"&&$APP.Vc(jba,h)?h:"md";c=$APP.E(c);l=$APP.E(l);var m=c?50:$APP.Di.j($APP.Ci.j(e/d*100,0),100);b=$APP.Hf([$APP.hi,$APP.Dl,$APP.Fh,$APP.bj,$APP.Xn,$APP.Eo,$APP.qm,$APP.X,$APP.mn],[f,l,e,h,c,c?"Loading…":""+$APP.R.i(Math.round(m))+"%",d,typeof b==="string"&&$APP.M("",b)?b:null,m]);var q=$APP.H(b);b=$APP.C(q,$APP.mn);l=$APP.C(q,$APP.hi);d=$APP.C(q,
4
- $APP.Dl);h=$APP.C(q,$APP.Fh);c=$APP.C(q,$APP.bj);e=$APP.C(q,$APP.Eo);f=$APP.C(q,$APP.Xn);m=$APP.C(q,$APP.X);q=$APP.C(q,$APP.qm);var r=$APP.k(a,"__xProgressCircleBase"),v=$APP.k(a,"__xProgressCircleFill"),w=$APP.k(a,"__xProgressCircleValueNode"),y=$APP.k(a,"__xProgressCircleCompleted"),A=$APP.p(f)&&h>=q,D=$APP.n(f)?75:100*(1-b/100);r.setAttribute("data-variant",l);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(f)?"true":"false");v.setAttribute("stroke-dasharray",""+$APP.R.i(100));
5
- v.setAttribute("stroke-dashoffset",""+$APP.R.i(D));w.textContent=$APP.n($APP.n(d)?$APP.p(f):d)?""+$APP.R.i(Math.round(b))+"%":"";w.style.display=$APP.n($APP.n(d)?$APP.p(f):d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(f)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):($APP.Zg(a,"aria-valuenow",""+$APP.R.i(h)),$APP.Zg(a,"aria-valuemax",""+$APP.R.i(q)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));
6
- m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");A&&$APP.p(y)&&$APP.ah(a,"x-progress-circle-complete",{value:h,max:q});a.__xProgressCircleCompleted=$APP.E(A)},kba=function(a){if(!$APP.n($APP.k(a,"__xProgressCircleInit"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElementNS("http://www.w3.org/2000/svg","svg"),f=document.createElementNS("http://www.w3.org/2000/svg","circle"),h=document.createElementNS("http://www.w3.org/2000/svg",
7
- "circle"),l=document.createElement("div"),m=document.createElement("span");c.textContent=":host{display:inline-flex;color-scheme:light dark;box-sizing:border-box;--x-progress-circle-size:64px;--x-progress-circle-track-color:rgba(0,0,0,0.10);--x-progress-circle-fill-color:var(--x-color-primary,#3b82f6);--x-progress-circle-stroke-width:2.8;--x-progress-circle-value-color:rgba(0,0,0,0.50);--x-progress-circle-transition-duration:var(--x-transition-duration,0.3s);}@media (prefers-color-scheme:dark){:host{--x-progress-circle-track-color:rgba(255,255,255,0.12);--x-progress-circle-value-color:rgba(255,255,255,0.50);}}[part\x3dbase][data-size\x3d'sm']{--x-progress-circle-size:40px;}[part\x3dbase][data-size\x3d'md']{--x-progress-circle-size:64px;}[part\x3dbase][data-size\x3d'lg']{--x-progress-circle-size:96px;}[part\x3dbase][data-variant\x3d'success']{--x-progress-circle-fill-color:var(--x-color-success,#22c55e);}[part\x3dbase][data-variant\x3d'warning']{--x-progress-circle-fill-color:var(--x-color-warning,#f59e0b);}[part\x3dbase][data-variant\x3d'danger']{--x-progress-circle-fill-color:var(--x-color-danger,#ef4444);}[part\x3dbase]{position:relative;display:inline-flex;width:var(--x-progress-circle-size);height:var(--x-progress-circle-size);}[part\x3dsvg]{width:100%;height:100%;}[part\x3dtrack]{fill:none;stroke:var(--x-progress-circle-track-color);stroke-width:var(--x-progress-circle-stroke-width);}[part\x3dfill]{fill:none;stroke:var(--x-progress-circle-fill-color);stroke-width:var(--x-progress-circle-stroke-width);stroke-linecap:round;transform:rotate(-90deg);transform-origin:center;transition:stroke-dashoffset var(--x-progress-circle-transition-duration) ease;}[part\x3dcenter]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;}[part\x3dvalue-text]{font-size:calc(var(--x-progress-circle-size) * 0.22);color:var(--x-progress-circle-value-color);font-weight:500;line-height:1;}@keyframes x-progress-circle-spin{from{transform:rotate(-90deg);}to{transform:rotate(270deg);}}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:x-progress-circle-spin 1.2s linear infinite;}@media (prefers-reduced-motion:reduce){[part\x3dfill]{transition:none;}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:none;}}";
2
+ var b3=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},c3=function(a){var b=new $APP.O(null,7,[$APP.Eh,a.getAttribute("value"),$APP.hp,a.getAttribute("max"),$APP.nk,a.getAttribute("variant"),$APP.ok,a.getAttribute("size"),$APP.Z,a.getAttribute("label"),$APP.qo,a.hasAttribute("show-value"),$APP.Dq,a.hasAttribute("indeterminate")],null);var c=$APP.G(b),d=$APP.C(c,$APP.hp),e=$APP.C(c,$APP.Eh),f=$APP.C(c,$APP.nk),h=$APP.C(c,$APP.ok);b=$APP.C(c,$APP.Z);var l=$APP.C(c,
3
+ $APP.qo);c=$APP.C(c,$APP.Dq);d=b3(d,100);d=d>0?d:100;e=$APP.Hl.j($APP.Gl.j(b3(e,0),0),d);f=typeof f==="string"&&$APP.$c(Pga,f)?f:"default";h=typeof h==="string"&&$APP.$c(Qga,h)?h:"md";c=$APP.D(c);l=$APP.D(l);var m=c?50:$APP.Hl.j($APP.Gl.j(e/d*100,0),100);b=$APP.Wf([$APP.nk,$APP.qo,$APP.Eh,$APP.ok,$APP.Dq,$APP.jr,$APP.hp,$APP.Z,$APP.cq],[f,l,e,h,c,c?"Loading…":""+$APP.V.i(Math.round(m))+"%",d,typeof b==="string"&&$APP.I("",b)?b:null,m]);var q=$APP.G(b);b=$APP.C(q,$APP.cq);l=$APP.C(q,$APP.nk);d=$APP.C(q,
4
+ $APP.qo);h=$APP.C(q,$APP.Eh);c=$APP.C(q,$APP.ok);e=$APP.C(q,$APP.jr);f=$APP.C(q,$APP.Dq);m=$APP.C(q,$APP.Z);q=$APP.C(q,$APP.hp);var r=$APP.k(a,"__xProgressCircleBase"),v=$APP.k(a,"__xProgressCircleFill"),x=$APP.k(a,"__xProgressCircleValueNode"),z=$APP.k(a,"__xProgressCircleCompleted"),B=$APP.p(f)&&h>=q,E=$APP.n(f)?75:100*(1-b/100);r.setAttribute("data-variant",l);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(f)?"true":"false");v.setAttribute("stroke-dasharray",""+$APP.V.i(100));
5
+ v.setAttribute("stroke-dashoffset",""+$APP.V.i(E));x.textContent=$APP.n($APP.n(d)?$APP.p(f):d)?""+$APP.V.i(Math.round(b))+"%":"";x.style.display=$APP.n($APP.n(d)?$APP.p(f):d)?"":"none";$APP.S(a,"role","progressbar");$APP.S(a,"aria-valuemin","0");$APP.n(f)?($APP.T(a,"aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):($APP.S(a,"aria-valuenow",""+$APP.V.i(h)),$APP.S(a,"aria-valuemax",""+$APP.V.i(q)),$APP.S(a,"aria-valuetext",e),$APP.T(a,"aria-busy"));m!=null?$APP.S(a,
6
+ "aria-label",m):$APP.T(a,"aria-label");B&&$APP.p(z)&&$APP.Nh(a,"x-progress-circle-complete",{value:h,max:q});a.__xProgressCircleCompleted=$APP.D(B)},Rga=function(a){if(!$APP.n($APP.k(a,"__xProgressCircleInit"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElementNS("http://www.w3.org/2000/svg","svg"),f=document.createElementNS("http://www.w3.org/2000/svg","circle"),h=document.createElementNS("http://www.w3.org/2000/svg","circle"),
7
+ l=document.createElement("div"),m=document.createElement("span");c.textContent=":host{display:inline-flex;color-scheme:light dark;box-sizing:border-box;--x-progress-circle-size:64px;--x-progress-circle-track-color:rgba(0,0,0,0.10);--x-progress-circle-fill-color:var(--x-color-primary,#3b82f6);--x-progress-circle-stroke-width:2.8;--x-progress-circle-value-color:rgba(0,0,0,0.50);--x-progress-circle-transition-duration:var(--x-transition-duration,0.3s);}@media (prefers-color-scheme:dark){:host{--x-progress-circle-track-color:rgba(255,255,255,0.12);--x-progress-circle-value-color:rgba(255,255,255,0.50);}}[part\x3dbase][data-size\x3d'sm']{--x-progress-circle-size:40px;}[part\x3dbase][data-size\x3d'md']{--x-progress-circle-size:64px;}[part\x3dbase][data-size\x3d'lg']{--x-progress-circle-size:96px;}[part\x3dbase][data-variant\x3d'success']{--x-progress-circle-fill-color:var(--x-color-success,#22c55e);}[part\x3dbase][data-variant\x3d'warning']{--x-progress-circle-fill-color:var(--x-color-warning,#f59e0b);}[part\x3dbase][data-variant\x3d'danger']{--x-progress-circle-fill-color:var(--x-color-danger,#ef4444);}[part\x3dbase]{position:relative;display:inline-flex;width:var(--x-progress-circle-size);height:var(--x-progress-circle-size);}[part\x3dsvg]{width:100%;height:100%;}[part\x3dtrack]{fill:none;stroke:var(--x-progress-circle-track-color);stroke-width:var(--x-progress-circle-stroke-width);}[part\x3dfill]{fill:none;stroke:var(--x-progress-circle-fill-color);stroke-width:var(--x-progress-circle-stroke-width);stroke-linecap:round;transform:rotate(-90deg);transform-origin:center;transition:stroke-dashoffset var(--x-progress-circle-transition-duration) ease;}[part\x3dcenter]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;}[part\x3dvalue-text]{font-size:calc(var(--x-progress-circle-size) * 0.22);color:var(--x-progress-circle-value-color);font-weight:500;line-height:1;}@keyframes x-progress-circle-spin{from{transform:rotate(-90deg);}to{transform:rotate(270deg);}}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:x-progress-circle-spin 1.2s linear infinite;}@media (prefers-reduced-motion:reduce){[part\x3dfill]{transition:none;}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:none;}}";
8
8
  d.setAttribute("part","base");e.setAttribute("part","svg");e.setAttribute("viewBox","0 0 36 36");e.setAttribute("aria-hidden","true");e.setAttribute("focusable","false");f.setAttribute("part","track");f.setAttribute("cx","18");f.setAttribute("cy","18");f.setAttribute("r","15.9155");h.setAttribute("part","fill");h.setAttribute("cx","18");h.setAttribute("cy","18");h.setAttribute("r","15.9155");l.setAttribute("part","center");m.setAttribute("part","value-text");e.appendChild(f);e.appendChild(h);l.appendChild(m);
9
- d.appendChild(e);d.appendChild(l);b.appendChild(c);b.appendChild(d);a.__xProgressCircleBase=d;a.__xProgressCircleFill=h;a.__xProgressCircleValueNode=m;a.__xProgressCircleInit=!0}F2(a);return null},lba=function(a,b,c,d){$APP.M(c,d)&&$APP.n($APP.k(a,"__xProgressCircleInit"))&&F2(a);return null},mba=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.R.i(b))},enumerable:!0,configurable:!0});
10
- Object.defineProperty(a,"max",{get:function(){var b=this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.R.i(b))},enumerable:!0,configurable:!0});$APP.ch(a,"indeterminate","indeterminate");return $APP.ch(a,"showValue","show-value")},G2=function(){return $APP.Wg("x-progress-circle",new $APP.P(null,4,[$APP.Mg,nba,$APP.Ng,kba,$APP.Qg,lba,$APP.Ug,mba],null))};var iba=new $APP.Q(null,new $APP.P(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),jba=new $APP.Q(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),nba="value max variant size label show-value indeterminate".split(" ");$APP.Ud(["x-progress-circle-complete",new $APP.P(null,1,[$APP.Z,new $APP.P(null,2,[$APP.Fh,$APP.W,$APP.qm,$APP.W],null)],null)]);$APP.da("baredom.exports.x_progress_circle.init",G2);export const init=G2;
9
+ d.appendChild(e);d.appendChild(l);b.appendChild(c);b.appendChild(d);a.__xProgressCircleBase=d;a.__xProgressCircleFill=h;a.__xProgressCircleValueNode=m;a.__xProgressCircleInit=!0}c3(a);return null},Sga=function(a,b,c,d){$APP.I(c,d)&&$APP.n($APP.k(a,"__xProgressCircleInit"))&&c3(a);return null},Tga=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.V.i(b))},enumerable:!0,configurable:!0});
10
+ Object.defineProperty(a,"max",{get:function(){var b=this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.V.i(b))},enumerable:!0,configurable:!0});$APP.Sh(a,"indeterminate","indeterminate");return $APP.Sh(a,"showValue","show-value")},d3=function(){return $APP.Ah("x-progress-circle",new $APP.O(null,4,[$APP.qh,Uga,$APP.oh,Rga,$APP.kh,Sga,$APP.ph,Tga],null))};var Pga=new $APP.pg(null,new $APP.O(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),Qga=new $APP.pg(null,new $APP.O(null,3,["md",null,"lg",null,"sm",null],null),null),Uga="value max variant size label show-value indeterminate".split(" ");$APP.ce(["x-progress-circle-complete",new $APP.O(null,1,[$APP.U,new $APP.O(null,2,[$APP.Eh,$APP.Y,$APP.hp,$APP.Y],null)],null)]);$APP.ha("baredom.exports.x_progress_circle.init",d3);export const init=d3;
@@ -1,11 +1,11 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var d$=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},e$=function(a){var b=new $APP.P(null,7,[$APP.Fh,a.getAttribute("value"),$APP.qm,a.getAttribute("max"),$APP.hi,a.getAttribute("variant"),$APP.bj,a.getAttribute("size"),$APP.X,a.getAttribute("label"),$APP.Dl,a.hasAttribute("show-value"),$APP.Xn,a.hasAttribute("indeterminate")],null);var c=$APP.H(b),d=$APP.C(c,$APP.qm),e=$APP.C(c,$APP.Fh),f=$APP.C(c,$APP.hi),h=$APP.C(c,$APP.bj);b=$APP.C(c,$APP.X);var l=$APP.C(c,
3
- $APP.Dl);c=$APP.C(c,$APP.Xn);d=d$(d,100);d=d>0?d:100;e=$APP.Di.j($APP.Ci.j(d$(e,0),0),d);f=typeof f==="string"&&$APP.Vc(bga,f)?f:"default";h=typeof h==="string"&&$APP.Vc(cga,h)?h:"md";c=$APP.E(c);l=$APP.E(l);var m=c?50:$APP.Di.j($APP.Ci.j(e/d*100,0),100);b=$APP.Hf([$APP.hi,$APP.Dl,$APP.Fh,$APP.bj,$APP.Xn,$APP.Eo,$APP.qm,$APP.X,$APP.mn],[f,l,e,h,c,c?"Loading…":""+$APP.R.i(Math.round(m))+"%",d,typeof b==="string"&&$APP.M("",b)?b:null,m]);var q=$APP.H(b);b=$APP.C(q,$APP.mn);l=$APP.C(q,$APP.hi);d=$APP.C(q,
4
- $APP.Dl);h=$APP.C(q,$APP.Fh);c=$APP.C(q,$APP.bj);e=$APP.C(q,$APP.Eo);f=$APP.C(q,$APP.Xn);m=$APP.C(q,$APP.X);q=$APP.C(q,$APP.qm);var r=$APP.k(a,"__xProgressBase"),v=$APP.k(a,"__xProgressHeader"),w=$APP.k(a,"__xProgressFill"),y=$APP.k(a,"__xProgressLabel"),A=$APP.k(a,"__xProgressValue");var D=(D=m!=null)?D:d;var G=$APP.k(a,"__xProgressCompleted"),I=$APP.p(f)&&h>=q;r.setAttribute("data-variant",l);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(f)?"true":"false");w.style.width=
5
- $APP.n(f)?"40%":""+$APP.R.i(b.toFixed(2))+"%";v.style.display=$APP.n(D)?"flex":"none";y.textContent=$APP.n(m)?m:"";y.style.display=m!=null?"":"none";A.textContent=$APP.n($APP.n(d)?$APP.p(f):d)?""+$APP.R.i(Math.round(b))+"%":"";A.style.display=$APP.n(d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(f)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):($APP.Zg(a,"aria-valuenow",""+$APP.R.i(h)),$APP.Zg(a,
6
- "aria-valuemax",""+$APP.R.i(q)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");I&&$APP.p(G)&&$APP.ah(a,"x-progress-complete",{value:h,max:q});a.__xProgressCompleted=$APP.E(I)},dga=function(a){if(!$APP.n($APP.k(a,"__xProgressInit"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("span"),h=document.createElement("span"),
7
- l=document.createElement("div"),m=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;box-sizing:border-box;--x-progress-border-radius:var(--x-radius-full,9999px);--x-progress-track-color:rgba(0,0,0,0.10);--x-progress-fill-color:var(--x-color-primary,#3b82f6);--x-progress-label-color:rgba(0,0,0,0.60);--x-progress-value-color:rgba(0,0,0,0.50);}@media (prefers-color-scheme:dark){:host{--x-progress-track-color:rgba(255,255,255,0.12);--x-progress-label-color:rgba(255,255,255,0.60);--x-progress-value-color:rgba(255,255,255,0.50);}}[part\x3dbase][data-size\x3d'sm']{--x-progress-height:4px;}[part\x3dbase][data-size\x3d'md']{--x-progress-height:8px;}[part\x3dbase][data-size\x3d'lg']{--x-progress-height:12px;}[part\x3dbase][data-variant\x3d'success']{--x-progress-fill-color:var(--x-color-success,#22c55e);}[part\x3dbase][data-variant\x3d'warning']{--x-progress-fill-color:var(--x-color-warning,#f59e0b);}[part\x3dbase][data-variant\x3d'danger']{--x-progress-fill-color:var(--x-color-danger,#ef4444);}[part\x3dbase]{width:100%;box-sizing:border-box;}[part\x3dheader]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px;}[part\x3dlabel-text]{font-size:var(--x-font-size-sm,0.875rem);color:var(--x-progress-label-color);font-weight:500;}[part\x3dvalue-text]{font-size:0.8125rem;color:var(--x-progress-value-color);}[part\x3dtrack]{height:var(--x-progress-height,8px);border-radius:var(--x-progress-border-radius,9999px);background:var(--x-progress-track-color);overflow:hidden;position:relative;}[part\x3dfill]{height:100%;background:var(--x-progress-fill-color);border-radius:var(--x-progress-border-radius,9999px);transition:width 0.3s ease;width:0%;}@keyframes x-progress-indeterminate{0%{transform:translateX(-100%) scaleX(0.5);}50%{transform:translateX(60%) scaleX(0.8);}100%{transform:translateX(200%) scaleX(0.5);}}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:x-progress-indeterminate 1.5s ease infinite;width:40%;transform-origin:left center;}@media (prefers-reduced-motion:reduce){[part\x3dfill]{transition:none;}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:none;width:50%;}}";
8
- d.setAttribute("part","base");e.setAttribute("part","header");f.setAttribute("part","label-text");h.setAttribute("part","value-text");l.setAttribute("part","track");m.setAttribute("part","fill");e.appendChild(f);e.appendChild(h);l.appendChild(m);d.appendChild(e);d.appendChild(l);b.appendChild(c);b.appendChild(d);a.__xProgressBase=d;a.__xProgressHeader=e;a.__xProgressFill=m;a.__xProgressLabel=f;a.__xProgressValue=h;a.__xProgressInit=!0}e$(a);return null},ega=function(a,b,c,d){$APP.M(c,d)&&$APP.n($APP.k(a,
9
- "__xProgressInit"))&&e$(a);return null},fga=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.R.i(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"max",{get:function(){var b=this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.R.i(b))},enumerable:!0,configurable:!0});$APP.ch(a,"indeterminate","indeterminate");
10
- $APP.ch(a,"showValue","show-value");Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:""},set:function(b){return this.setAttribute("variant",""+$APP.R.i(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?b:""},set:function(b){return this.setAttribute("size",""+$APP.R.i(b))},enumerable:!0,configurable:!0});return Object.defineProperty(a,"label",{get:function(){return this.getAttribute("label")},
11
- set:function(b){return $APP.n(b)?this.setAttribute("label",""+$APP.R.i(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},f$=function(){return $APP.Wg("x-progress",new $APP.P(null,4,[$APP.Mg,gga,$APP.Ng,dga,$APP.Qg,ega,$APP.Ug,fga],null))};var bga=new $APP.Q(null,new $APP.P(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),cga=new $APP.Q(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),gga="value max variant size label show-value indeterminate".split(" ");$APP.Ud(["x-progress-complete",new $APP.P(null,1,[$APP.Z,new $APP.P(null,2,[$APP.Fh,$APP.W,$APP.qm,$APP.W],null)],null)]);$APP.da("baredom.exports.x_progress.init",f$);export const init=f$;
2
+ var d$=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},e$=function(a){var b=new $APP.O(null,7,[$APP.Eh,a.getAttribute("value"),$APP.hp,a.getAttribute("max"),$APP.nk,a.getAttribute("variant"),$APP.ok,a.getAttribute("size"),$APP.Z,a.getAttribute("label"),$APP.qo,a.hasAttribute("show-value"),$APP.Dq,a.hasAttribute("indeterminate")],null);var c=$APP.G(b),d=$APP.C(c,$APP.hp),e=$APP.C(c,$APP.Eh),f=$APP.C(c,$APP.nk),h=$APP.C(c,$APP.ok);b=$APP.C(c,$APP.Z);var l=$APP.C(c,
3
+ $APP.qo);c=$APP.C(c,$APP.Dq);d=d$(d,100);d=d>0?d:100;e=$APP.Hl.j($APP.Gl.j(d$(e,0),0),d);f=typeof f==="string"&&$APP.$c(Ila,f)?f:"default";h=typeof h==="string"&&$APP.$c(Jla,h)?h:"md";c=$APP.D(c);l=$APP.D(l);var m=c?50:$APP.Hl.j($APP.Gl.j(e/d*100,0),100);b=$APP.Wf([$APP.nk,$APP.qo,$APP.Eh,$APP.ok,$APP.Dq,$APP.jr,$APP.hp,$APP.Z,$APP.cq],[f,l,e,h,c,c?"Loading…":""+$APP.V.i(Math.round(m))+"%",d,typeof b==="string"&&$APP.I("",b)?b:null,m]);var q=$APP.G(b);b=$APP.C(q,$APP.cq);l=$APP.C(q,$APP.nk);d=$APP.C(q,
4
+ $APP.qo);h=$APP.C(q,$APP.Eh);c=$APP.C(q,$APP.ok);e=$APP.C(q,$APP.jr);f=$APP.C(q,$APP.Dq);m=$APP.C(q,$APP.Z);q=$APP.C(q,$APP.hp);var r=$APP.k(a,"__xProgressBase"),v=$APP.k(a,"__xProgressHeader"),x=$APP.k(a,"__xProgressFill"),z=$APP.k(a,"__xProgressLabel"),B=$APP.k(a,"__xProgressValue");var E=(E=m!=null)?E:d;var H=$APP.k(a,"__xProgressCompleted"),K=$APP.p(f)&&h>=q;r.setAttribute("data-variant",l);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(f)?"true":"false");x.style.width=
5
+ $APP.n(f)?"40%":""+$APP.V.i(b.toFixed(2))+"%";v.style.display=$APP.n(E)?"flex":"none";z.textContent=$APP.n(m)?m:"";z.style.display=m!=null?"":"none";B.textContent=$APP.n($APP.n(d)?$APP.p(f):d)?""+$APP.V.i(Math.round(b))+"%":"";B.style.display=$APP.n(d)?"":"none";$APP.S(a,"role","progressbar");$APP.S(a,"aria-valuemin","0");$APP.n(f)?($APP.T(a,"aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):($APP.S(a,"aria-valuenow",""+$APP.V.i(h)),$APP.S(a,"aria-valuemax",""+
6
+ $APP.V.i(q)),$APP.S(a,"aria-valuetext",e),$APP.T(a,"aria-busy"));m!=null?$APP.S(a,"aria-label",m):$APP.T(a,"aria-label");K&&$APP.p(H)&&$APP.Nh(a,"x-progress-complete",{value:h,max:q});a.__xProgressCompleted=$APP.D(K)},Kla=function(a){if(!$APP.n($APP.k(a,"__xProgressInit"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("span"),h=document.createElement("span"),l=document.createElement("div"),
7
+ m=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;box-sizing:border-box;--x-progress-border-radius:var(--x-radius-full,9999px);--x-progress-track-color:rgba(0,0,0,0.10);--x-progress-fill-color:var(--x-color-primary,#3b82f6);--x-progress-label-color:rgba(0,0,0,0.60);--x-progress-value-color:rgba(0,0,0,0.50);}@media (prefers-color-scheme:dark){:host{--x-progress-track-color:rgba(255,255,255,0.12);--x-progress-label-color:rgba(255,255,255,0.60);--x-progress-value-color:rgba(255,255,255,0.50);}}[part\x3dbase][data-size\x3d'sm']{--x-progress-height:4px;}[part\x3dbase][data-size\x3d'md']{--x-progress-height:8px;}[part\x3dbase][data-size\x3d'lg']{--x-progress-height:12px;}[part\x3dbase][data-variant\x3d'success']{--x-progress-fill-color:var(--x-color-success,#22c55e);}[part\x3dbase][data-variant\x3d'warning']{--x-progress-fill-color:var(--x-color-warning,#f59e0b);}[part\x3dbase][data-variant\x3d'danger']{--x-progress-fill-color:var(--x-color-danger,#ef4444);}[part\x3dbase]{width:100%;box-sizing:border-box;}[part\x3dheader]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px;}[part\x3dlabel-text]{font-size:var(--x-font-size-sm,0.875rem);color:var(--x-progress-label-color);font-weight:500;}[part\x3dvalue-text]{font-size:0.8125rem;color:var(--x-progress-value-color);}[part\x3dtrack]{height:var(--x-progress-height,8px);border-radius:var(--x-progress-border-radius,9999px);background:var(--x-progress-track-color);overflow:hidden;position:relative;}[part\x3dfill]{height:100%;background:var(--x-progress-fill-color);border-radius:var(--x-progress-border-radius,9999px);transition:width 0.3s ease;width:0%;}@keyframes x-progress-indeterminate{0%{transform:translateX(-100%) scaleX(0.5);}50%{transform:translateX(60%) scaleX(0.8);}100%{transform:translateX(200%) scaleX(0.5);}}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:x-progress-indeterminate 1.5s ease infinite;width:40%;transform-origin:left center;}@media (prefers-reduced-motion:reduce){[part\x3dfill]{transition:none;}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:none;width:50%;}}";
8
+ d.setAttribute("part","base");e.setAttribute("part","header");f.setAttribute("part","label-text");h.setAttribute("part","value-text");l.setAttribute("part","track");m.setAttribute("part","fill");e.appendChild(f);e.appendChild(h);l.appendChild(m);d.appendChild(e);d.appendChild(l);b.appendChild(c);b.appendChild(d);a.__xProgressBase=d;a.__xProgressHeader=e;a.__xProgressFill=m;a.__xProgressLabel=f;a.__xProgressValue=h;a.__xProgressInit=!0}e$(a);return null},Lla=function(a,b,c,d){$APP.I(c,d)&&$APP.n($APP.k(a,
9
+ "__xProgressInit"))&&e$(a);return null},Mla=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.V.i(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"max",{get:function(){var b=this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.V.i(b))},enumerable:!0,configurable:!0});$APP.Sh(a,"indeterminate","indeterminate");
10
+ $APP.Sh(a,"showValue","show-value");Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:""},set:function(b){return this.setAttribute("variant",""+$APP.V.i(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?b:""},set:function(b){return this.setAttribute("size",""+$APP.V.i(b))},enumerable:!0,configurable:!0});return Object.defineProperty(a,"label",{get:function(){return this.getAttribute("label")},
11
+ set:function(b){return $APP.n(b)?this.setAttribute("label",""+$APP.V.i(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},f$=function(){return $APP.Ah("x-progress",new $APP.O(null,4,[$APP.qh,Nla,$APP.oh,Kla,$APP.kh,Lla,$APP.ph,Mla],null))};var Ila=new $APP.pg(null,new $APP.O(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),Jla=new $APP.pg(null,new $APP.O(null,3,["md",null,"lg",null,"sm",null],null),null),Nla="value max variant size label show-value indeterminate".split(" ");$APP.ce(["x-progress-complete",new $APP.O(null,1,[$APP.U,new $APP.O(null,2,[$APP.Eh,$APP.Y,$APP.hp,$APP.Y],null)],null)]);$APP.ha("baredom.exports.x_progress.init",f$);export const init=f$;
@@ -1,20 +1,21 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var yr=function(a,b,c,d){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?b:Math.min(d,Math.max(c,a))):b},Hr=function(a,b,c,d,e){a=c-a;b=d-b;return Math.max(0,1-Math.sqrt(a*a+b*b)/e)},Ir=function(){return $APP.E(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},Kr=function(a){if(!$APP.n($APP.k(a,"__xProximityListRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=
3
- Jr;d.setAttribute("part","track");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xProximityListRefs=new $APP.P(null,3,[$APP.Qh,b,$APP.pk,d,$APP.xk,e],null)}},Lr=function(a){a=$APP.xk.i($APP.k(a,"__xProximityListRefs"));return $APP.n(a)?a.assignedElements():null},Mr=function(a){var b=$APP.pk.i($APP.k(a,"__xProximityListRefs"));var c=Lr(a);c=$APP.n(c)?c:[];var d=c.length,e=[];if($APP.n($APP.n(b)?d>0:b)){var f=b.getBoundingClientRect();b=f.left;f=f.top;for(var h=0;;)if(h<d){var l=c[h].getBoundingClientRect();
4
- e.push({cx:l.left+l.width/2-b,cy:l.top+l.height/2-f});h+=1}else break}a.__xProximityListRects=e;return null},Nr=function(a,b){var c=$APP.k(a,"__xProximityListDisplayed");c=$APP.n(c)?c:[];var d=c.length;if(d<b)for(;;)if(d<b)c.push({scale:1,lift:0}),d+=1;else break;else if(d>b)for(;;)if(d>b)c.pop(),--d;else break;return a.__xProximityListDisplayed=c},Or=function(a){a=a.style;a.removeProperty("--x-proximity-influence");a.removeProperty("--x-proximity-scale");a.removeProperty("--x-proximity-lift");a.transform=
5
- ""},Pr=function(a){var b=$APP.k(a,"__xProximityListDisplayed");if($APP.n(b))for(var c=b.length,d=0;;)if(d<c){var e=b[d];e.scale=1;e.lift=0;d+=1}else break;a=Lr(a);if($APP.n(a))for(b=a.length,c=0;;)if(c<b)Or(a[c]),c+=1;else break},Qr=function(a,b){return Math.abs(b-a)<.001?b:a+(b-a)*.2},Rr=function(a,b,c,d){a=a.style;var e=$APP.k(b,"scale");b=$APP.k(b,"lift");d=$APP.n(d)?"translateX("+$APP.R.i(b)+"px) scale("+$APP.R.i(e)+")":"translateY("+$APP.R.i(b)+"px) scale("+$APP.R.i(e)+")";a.setProperty("--x-proximity-influence",
6
- ""+$APP.R.i(c));a.setProperty("--x-proximity-scale",""+$APP.R.i(e));a.setProperty("--x-proximity-lift",""+$APP.R.i(b)+"px");a.transform=d},Ur=function(a){var b=$APP.k(a,"__xProximityListModel"),c=$APP.k(a,"__xProximityListPointer"),d=$APP.n(c)?$APP.k(c,"active")===!0:c,e=function(){var ba=$APP.k(a,"__xProximityListRects");return $APP.n(ba)?ba:[]}(),f=function(){var ba=Lr(a);return $APP.n(ba)?ba:[]}(),h=$APP.Di.j(e.length,f.length),l=Nr(a,f.length),m=$APP.xo.i(b),q=Sr.i(b),r=$APP.Zn.i(b);b=$APP.ql.i(b);
7
- for(var v=0,w=!1;;)if(v>=h){w&&(Tr.i?Tr.i(a):Tr.call(null,a));break}else{var y=e[v],A=f[v],D=l[v],G=$APP.k(y,"cx"),I=$APP.k(y,"cy");y=$APP.n(d)?Hr(G,I,$APP.k(c,"x"),$APP.k(c,"y"),m):0;var J=1+y*y*(q-1);G=$APP.p(d)?0:$APP.n(b)?$APP.k(c,"x")-G:$APP.k(c,"y")-I;var K=$APP.n($APP.n(d)?r>0:d)?y*y*r*(G>=30?1:G<=-30?-1:G/30):0;G=Qr($APP.k(D,"scale"),J);I=Qr($APP.k(D,"lift"),K);J=$APP.M(G,J)||$APP.M(I,K);D.scale=G;D.lift=I;$APP.p(d)&&G===1&&I===0?Or(A):Rr(A,D,y,b);w=w||J;v+=1}},Tr=function(a){if(!$APP.n($APP.k(a,
8
- "__xProximityListRafPending"))){a.__xProximityListRafPending=!0;var b=requestAnimationFrame(function(){a.__xProximityListRafPending=!1;$APP.n(a.isConnected)&&Ur(a);return null});a.__xProximityListRaf=b}return null},Vr=function(a){var b=$APP.k(a,"__xProximityListRaf");$APP.n(b)&&(cancelAnimationFrame(b),a.__xProximityListRaf=null);a.__xProximityListRafPending=!1},Wr=function(a,b,c,d){$APP.bh(a,"x-proximity-list-select",$APP.Wi(new $APP.P(null,3,["index",b,"item",c,"source",d],null)))},Xr=function(a){a.getAttribute("tabindex")==
9
- null&&a.setAttribute("tabindex","0")},Yr=function(a){var b=Lr(a);if($APP.n(b))for(var c=b.length,d=0;;)if(d<c)Xr(b[d]),d+=1;else break;requestAnimationFrame(function(){Mr(a);return Tr(a)});return null},Zr=function(a){function b(){return Yr(a)}function c(l){var m=$APP.k(a,"__xProximityListModel");if($APP.n($APP.n(m)?$APP.p($APP.Y.i(m)):m)){var q=Lr(a),r=$APP.n(q)?q.length:null,v=l.key,w=$APP.ql.i(m);m=$APP.n(w)?"ArrowUp":"ArrowLeft";w=$APP.n(w)?"ArrowDown":"ArrowRight";var y=$APP.k(a,"__xProximityListFocus");
10
- y=$APP.n(y)?y:-1;$APP.n($APP.n(r)?r>0:r)&&($APP.B.j(v,m)?(l.preventDefault(),l=y<1?r-1:y-1,a.__xProximityListFocus=l,q[l].focus()):$APP.B.j(v,w)?(l.preventDefault(),l=y>=r-1?0:y+1,a.__xProximityListFocus=l,q[l].focus()):($APP.B.j(v,"Enter")||$APP.B.j(v," "))&&y>=0&&(l.preventDefault(),Wr(a,y,q[y],"keyboard")))}return null}function d(l){var m=$APP.k(a,"__xProximityListModel");if($APP.n($APP.n(m)?$APP.p($APP.Y.i(m)):m)&&(m=Lr(a),$APP.n(m))){a:{l=l.target;for(var q=m.length,r=0;;)if(r<q){if($APP.B.j(l,
11
- m[r])){l=r;break a}r+=1}else{l=null;break a}l=void 0}$APP.n(l)&&(a.__xProximityListFocus=l,Wr(a,l,m[l],"pointer"))}return null}function e(){var l=$APP.k(a,"__xProximityListPointer");$APP.n(l)&&(l.active=!1,Tr(a));return null}function f(l){var m=$APP.k(a,"__xProximityListModel");if($APP.n($APP.n(m)?$APP.p($APP.Y.i(m))&&$APP.B.j("mouse",l.pointerType)&&!Ir():m)){var q=$APP.pk.i($APP.k(a,"__xProximityListRefs"));m=$APP.k(a,"__xProximityListPointer");$APP.n($APP.n(q)?m:q)&&(q=q.getBoundingClientRect(),
12
- m.x=l.clientX-q.left,m.y=l.clientY-q.top,m.active=!0,Tr(a))}return null}var h=$APP.xk.i($APP.k(a,"__xProximityListRefs"));a.addEventListener("pointermove",f);a.addEventListener("pointerleave",e);a.addEventListener("click",d);a.addEventListener("keydown",c);$APP.n(h)&&h.addEventListener("slotchange",b);$APP.Xg(a,"__xProximityListHandlers",new $APP.P(null,5,[$APP.Sl,f,$APP.dl,e,$APP.am,d,$APP.Bl,c,$APP.xk,b],null))},$r=function(a){var b=$APP.k(a,"__xProximityListHandlers");if($APP.n(b)){a.removeEventListener("pointermove",
13
- $APP.Sl.i(b));a.removeEventListener("pointerleave",$APP.dl.i(b));a.removeEventListener("click",$APP.am.i(b));a.removeEventListener("keydown",$APP.Bl.i(b));var c=$APP.xk.i($APP.k(a,"__xProximityListRefs"));$APP.n(c)&&c.removeEventListener("slotchange",$APP.xk.i(b));a.__xProximityListHandlers=null}},ds=function(a){var b=new $APP.P(null,6,[$APP.kk,a.getAttribute("direction"),$APP.Vk,a.getAttribute("radius"),as,a.getAttribute("max-scale"),bs,a.getAttribute("lift"),$APP.ik,a.getAttribute("gap"),$APP.qk,
14
- a.getAttribute("disabled")],null);var c=$APP.H(b),d=$APP.C(c,$APP.kk);b=$APP.C(c,$APP.Vk);var e=$APP.C(c,as),f=$APP.C(c,bs),h=$APP.C(c,$APP.ik);c=$APP.C(c,$APP.qk);typeof d==="string"?(d=d.trim().toLowerCase(),d=$APP.Vc(cs,d)?d:"horizontal"):d="horizontal";b=new $APP.P(null,7,[$APP.Hk,d,$APP.xo,yr(b,120,20,600),Sr,yr(e,1.5,1,3),$APP.Zn,yr(f,0,0,60),$APP.pl,yr(h,8,0,64),$APP.Y,c!=null,$APP.ql,$APP.B.j(d,"vertical")],null);$APP.M($APP.k(a,"__xProximityListModel"),b)&&(b=$APP.H(b),e=$APP.C(b,$APP.pl),
15
- f=$APP.C(b,$APP.Y),Kr(a),a.style.setProperty("--x-proximity-list-gap",""+$APP.R.i(e)+"px"),Mr(a),$APP.n($APP.n(f)?f:Ir())?(Vr(a),e=$APP.k(a,"__xProximityListPointer"),$APP.n(e)&&(e.active=!1),Pr(a)):Tr(a),a.__xProximityListModel=b)},fs=function(a){return $APP.ih(a,es)},gs=function(a){$APP.Xg(a,"__xProximityListPointer",{x:0,y:0,active:!1});$APP.Xg(a,"__xProximityListRects",[]);$APP.Xg(a,"__xProximityListDisplayed",[]);a.__xProximityListFocus=-1;a.__xProximityListRafPending=!1;Kr(a);$APP.n(a.hasAttribute("role"))||
16
- a.setAttribute("role","list");$r(a);Zr(a);var b=$APP.k(a,"__xProximityListRO");$APP.n(b)&&b.disconnect();b=new ResizeObserver(function(){Mr(a);Tr(a);return null});a.__xProximityListRO=b;b.observe(a);ds(a);requestAnimationFrame(function(){var c=Lr(a);if($APP.n(c))for(var d=c.length,e=0;;)if(e<d)Xr(c[e]),e+=1;else break;return Mr(a)});return null},hs=function(a){Vr(a);$r(a);Pr(a);var b=$APP.k(a,"__xProximityListRO");$APP.n(b)&&(b.disconnect(),a.__xProximityListRO=null);return null},is=function(a,b,
17
- c,d){$APP.M(c,d)&&ds(a);return null},ks=function(){return $APP.Wg("x-proximity-list",new $APP.P(null,5,[$APP.Mg,js,$APP.Ng,gs,$APP.Og,hs,$APP.Qg,is,$APP.Ug,fs],null))},as=new $APP.F(null,"max-scale-raw","max-scale-raw",-238296345),ls=new $APP.F(null,"maxScale","maxScale",1268368480),Sr=new $APP.F(null,"max-scale","max-scale",-1242050464),bs=new $APP.F(null,"lift-raw","lift-raw",494522715);var js="direction radius max-scale lift gap disabled".split(" ");$APP.Ud(["x-proximity-list-select",new $APP.P(null,4,[$APP.Z,new $APP.P(null,3,[$APP.sj,$APP.W,$APP.Kl,$APP.lj,$APP.Rm,$APP.V],null),$APP.jo,!0,$APP.zo,!0,$APP.Un,!0],null)]);
18
- var es=new $APP.P(null,6,[$APP.Hk,new $APP.P(null,3,[$APP.S,$APP.V,$APP.T,"direction",$APP.hh,"horizontal"],null),$APP.xo,new $APP.P(null,3,[$APP.S,$APP.W,$APP.T,"radius",$APP.hh,120],null),ls,new $APP.P(null,3,[$APP.S,$APP.W,$APP.T,"max-scale",$APP.hh,1.5],null),$APP.Zn,new $APP.P(null,3,[$APP.S,$APP.W,$APP.T,"lift",$APP.hh,0],null),$APP.pl,new $APP.P(null,3,[$APP.S,$APP.W,$APP.T,"gap",$APP.hh,8],null),$APP.fl,new $APP.P(null,2,[$APP.S,$APP.U,$APP.T,"disabled"],null)],null),cs=new $APP.Q(null,new $APP.P(null,
19
- 2,["vertical",null,"horizontal",null],null),null);var Jr=":host{display:inline-block;"+$APP.R.i("--x-proximity-list-gap")+":8px;"+$APP.R.i("--x-proximity-list-item-size")+":48px;}:host([hidden]){display:none;}[part\x3dtrack]{display:flex;align-items:center;gap:var("+$APP.R.i("--x-proximity-list-gap")+',8px);position:relative;}:host([direction\x3d"vertical"]) [part\x3dtrack]{flex-direction:column;}::slotted(*){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var('+$APP.R.i("--x-proximity-list-item-size")+",48px);height:var("+
20
- $APP.R.i("--x-proximity-list-item-size")+",48px);transform-origin:center center;will-change:transform;}::slotted(:focus-visible){outline:2px solid var(--x-color-primary,#2563eb);outline-offset:2px;}@media(prefers-reduced-motion:reduce){::slotted(*){transform:none!important;}}";$APP.da("baredom.exports.x_proximity_list.init",ks);export const init=ks;
2
+ var iu=function(a,b,c,d){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?b:Math.min(d,Math.max(c,a))):b},ju=function(a,b,c,d,e){a=c-a;b=d-b;return Math.max(0,1-Math.sqrt(a*a+b*b)/e)},ku=function(){return $APP.D(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},mu=function(a){if(!$APP.n($APP.k(a,"__xProximityListRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=
3
+ lu;d.setAttribute("part","track");d.appendChild(e);b.appendChild(c);b.appendChild(d);$APP.R(a,"__xProximityListRefs",new $APP.O(null,3,[$APP.jj,b,$APP.mn,d,$APP.un,e],null))}},nu=function(a){a=$APP.un.i($APP.k(a,"__xProximityListRefs"));return $APP.n(a)?a.assignedElements():null},ou=function(a){var b=$APP.mn.i($APP.k(a,"__xProximityListRefs"));var c=nu(a);c=$APP.n(c)?c:[];var d=c.length,e=[];if($APP.n($APP.n(b)?d>0:b)){var f=b.getBoundingClientRect();b=f.left;f=f.top;for(var h=0;;)if(h<d){var l=c[h].getBoundingClientRect();
4
+ e.push({cx:l.left+l.width/2-b,cy:l.top+l.height/2-f});h+=1}else break}$APP.R(a,"__xProximityListRects",e);return null},pu=function(a,b){var c=$APP.k(a,"__xProximityListDisplayed");c=$APP.n(c)?c:[];var d=c.length;if(d<b)for(;;)if(d<b)c.push({scale:1,lift:0}),d+=1;else break;else if(d>b)for(;;)if(d>b)c.pop(),--d;else break;$APP.R(a,"__xProximityListDisplayed",c);return c},qu=function(a){a=a.style;a.removeProperty("--x-proximity-influence");a.removeProperty("--x-proximity-scale");a.removeProperty("--x-proximity-lift");
5
+ a.transform=""},ru=function(a){var b=$APP.k(a,"__xProximityListDisplayed");if($APP.n(b))for(var c=b.length,d=0;;)if(d<c){var e=b[d];e.scale=1;e.lift=0;d+=1}else break;a=nu(a);if($APP.n(a))for(b=a.length,c=0;;)if(c<b)qu(a[c]),c+=1;else break},su=function(a,b){return Math.abs(b-a)<.001?b:a+(b-a)*.2},tu=function(a,b,c,d){a=a.style;var e=$APP.k(b,"scale");b=$APP.k(b,"lift");d=$APP.n(d)?"translateX("+$APP.V.i(b)+"px) scale("+$APP.V.i(e)+")":"translateY("+$APP.V.i(b)+"px) scale("+$APP.V.i(e)+")";a.setProperty("--x-proximity-influence",
6
+ ""+$APP.V.i(c));a.setProperty("--x-proximity-scale",""+$APP.V.i(e));a.setProperty("--x-proximity-lift",""+$APP.V.i(b)+"px");a.transform=d},wu=function(a){var b=$APP.k(a,"__xProximityListModel"),c=$APP.k(a,"__xProximityListPointer"),d=$APP.n(c)?$APP.k(c,"active")===!0:c,e=function(){var ea=$APP.k(a,"__xProximityListRects");return $APP.n(ea)?ea:[]}(),f=function(){var ea=nu(a);return $APP.n(ea)?ea:[]}(),h=$APP.Hl.j(e.length,f.length),l=pu(a,f.length),m=$APP.dr.i(b),q=uu.i(b),r=$APP.Fq.i(b);b=$APP.co.i(b);
7
+ for(var v=0,x=!1;;)if(v>=h){x&&(vu.i?vu.i(a):vu.call(null,a));break}else{var z=e[v],B=f[v],E=l[v],H=$APP.k(z,"cx"),K=$APP.k(z,"cy");z=$APP.n(d)?ju(H,K,$APP.k(c,"x"),$APP.k(c,"y"),m):0;var J=1+z*z*(q-1);H=$APP.p(d)?0:$APP.n(b)?$APP.k(c,"x")-H:$APP.k(c,"y")-K;var P=$APP.n($APP.n(d)?r>0:d)?z*z*r*(H>=30?1:H<=-30?-1:H/30):0;H=su($APP.k(E,"scale"),J);K=su($APP.k(E,"lift"),P);J=$APP.I(H,J)||$APP.I(K,P);E.scale=H;E.lift=K;$APP.p(d)&&H===1&&K===0?qu(B):tu(B,E,z,b);x=x||J;v+=1}},vu=function(a){if(!$APP.n($APP.k(a,
8
+ "__xProximityListRafPending"))){$APP.R(a,"__xProximityListRafPending",!0);var b=requestAnimationFrame(function(){$APP.R(a,"__xProximityListRafPending",!1);$APP.n(a.isConnected)&&wu(a);return null});$APP.R(a,"__xProximityListRaf",b)}return null},xu=function(a){var b=$APP.k(a,"__xProximityListRaf");$APP.n(b)&&(cancelAnimationFrame(b),$APP.R(a,"__xProximityListRaf",null));$APP.R(a,"__xProximityListRafPending",!1)},yu=function(a,b,c,d){$APP.Ph(a,"x-proximity-list-select",$APP.$l(new $APP.O(null,3,["index",
9
+ b,"item",c,"source",d],null)))},zu=function(a){a.getAttribute("tabindex")==null&&a.setAttribute("tabindex","0")},Au=function(a){var b=nu(a);if($APP.n(b))for(var c=b.length,d=0;;)if(d<c)zu(b[d]),d+=1;else break;requestAnimationFrame(function(){ou(a);return vu(a)});return null},Bu=function(a){function b(){return Au(a)}function c(l){var m=$APP.k(a,"__xProximityListModel");if($APP.n($APP.n(m)?$APP.p($APP.Bi.i(m)):m)){var q=nu(a),r=$APP.n(q)?q.length:null,v=l.key,x=$APP.co.i(m);m=$APP.n(x)?"ArrowUp":"ArrowLeft";
10
+ x=$APP.n(x)?"ArrowDown":"ArrowRight";var z=$APP.k(a,"__xProximityListFocus");z=$APP.n(z)?z:-1;$APP.n($APP.n(r)?r>0:r)&&($APP.A.j(v,m)?(l.preventDefault(),l=z<1?r-1:z-1,$APP.R(a,"__xProximityListFocus",l),q[l].focus()):$APP.A.j(v,x)?(l.preventDefault(),l=z>=r-1?0:z+1,$APP.R(a,"__xProximityListFocus",l),q[l].focus()):($APP.A.j(v,"Enter")||$APP.A.j(v," "))&&z>=0&&(l.preventDefault(),yu(a,z,q[z],"keyboard")))}return null}function d(l){var m=$APP.k(a,"__xProximityListModel");if($APP.n($APP.n(m)?$APP.p($APP.Bi.i(m)):
11
+ m)&&(m=nu(a),$APP.n(m))){a:{l=l.target;for(var q=m.length,r=0;;)if(r<q){if($APP.A.j(l,m[r])){l=r;break a}r+=1}else{l=null;break a}l=void 0}$APP.n(l)&&($APP.R(a,"__xProximityListFocus",l),yu(a,l,m[l],"pointer"))}return null}function e(){var l=$APP.k(a,"__xProximityListPointer");$APP.n(l)&&(l.active=!1,vu(a));return null}function f(l){var m=$APP.k(a,"__xProximityListModel");if($APP.n($APP.n(m)?$APP.p($APP.Bi.i(m))&&$APP.A.j("mouse",l.pointerType)&&!ku():m)){var q=$APP.mn.i($APP.k(a,"__xProximityListRefs"));
12
+ m=$APP.k(a,"__xProximityListPointer");$APP.n($APP.n(q)?m:q)&&(q=q.getBoundingClientRect(),m.x=l.clientX-q.left,m.y=l.clientY-q.top,m.active=!0,vu(a))}return null}var h=$APP.un.i($APP.k(a,"__xProximityListRefs"));a.addEventListener("pointermove",f);a.addEventListener("pointerleave",e);a.addEventListener("click",d);a.addEventListener("keydown",c);$APP.n(h)&&h.addEventListener("slotchange",b);$APP.R(a,"__xProximityListHandlers",new $APP.O(null,5,[$APP.Eo,f,$APP.Tn,e,$APP.Mo,d,$APP.oo,c,$APP.un,b],null))},
13
+ Cu=function(a){var b=$APP.k(a,"__xProximityListHandlers");if($APP.n(b)){a.removeEventListener("pointermove",$APP.Eo.i(b));a.removeEventListener("pointerleave",$APP.Tn.i(b));a.removeEventListener("click",$APP.Mo.i(b));a.removeEventListener("keydown",$APP.oo.i(b));var c=$APP.un.i($APP.k(a,"__xProximityListRefs"));$APP.n(c)&&c.removeEventListener("slotchange",$APP.un.i(b));$APP.R(a,"__xProximityListHandlers",null)}},Gu=function(a){var b=new $APP.O(null,6,[$APP.gn,a.getAttribute("direction"),$APP.On,
14
+ a.getAttribute("radius"),Du,a.getAttribute("max-scale"),Eu,a.getAttribute("lift"),$APP.en,a.getAttribute("gap"),$APP.nn,a.getAttribute("disabled")],null);var c=$APP.G(b),d=$APP.C(c,$APP.gn);b=$APP.C(c,$APP.On);var e=$APP.C(c,Du),f=$APP.C(c,Eu),h=$APP.C(c,$APP.en);c=$APP.C(c,$APP.nn);typeof d==="string"?(d=d.trim().toLowerCase(),d=$APP.$c(Fu,d)?d:"horizontal"):d="horizontal";b=new $APP.O(null,7,[$APP.Dn,d,$APP.dr,iu(b,120,20,600),uu,iu(e,1.5,1,3),$APP.Fq,iu(f,0,0,60),$APP.bo,iu(h,8,0,64),$APP.Bi,c!=
15
+ null,$APP.co,$APP.A.j(d,"vertical")],null);$APP.I($APP.k(a,"__xProximityListModel"),b)&&(b=$APP.G(b),e=$APP.C(b,$APP.bo),f=$APP.C(b,$APP.Bi),mu(a),a.style.setProperty("--x-proximity-list-gap",""+$APP.V.i(e)+"px"),ou(a),$APP.n($APP.n(f)?f:ku())?(xu(a),e=$APP.k(a,"__xProximityListPointer"),$APP.n(e)&&(e.active=!1),ru(a)):vu(a),$APP.R(a,"__xProximityListModel",b))},Iu=function(a){return $APP.Zh(a,Hu)},Ju=function(a){$APP.R(a,"__xProximityListPointer",{x:0,y:0,active:!1});$APP.R(a,"__xProximityListRects",
16
+ []);$APP.R(a,"__xProximityListDisplayed",[]);$APP.R(a,"__xProximityListFocus",-1);$APP.R(a,"__xProximityListRafPending",!1);mu(a);$APP.n(a.hasAttribute("role"))||$APP.S(a,"role","list");Cu(a);Bu(a);var b=$APP.k(a,"__xProximityListRO");$APP.n(b)&&b.disconnect();b=new ResizeObserver(function(){ou(a);vu(a);return null});$APP.R(a,"__xProximityListRO",b);b.observe(a);Gu(a);requestAnimationFrame(function(){var c=nu(a);if($APP.n(c))for(var d=c.length,e=0;;)if(e<d)zu(c[e]),e+=1;else break;return ou(a)});
17
+ return null},Ku=function(a){xu(a);Cu(a);ru(a);var b=$APP.k(a,"__xProximityListRO");$APP.n(b)&&(b.disconnect(),$APP.R(a,"__xProximityListRO",null));return null},Lu=function(a,b,c,d){$APP.I(c,d)&&Gu(a);return null},Nu=function(){return $APP.Ah("x-proximity-list",new $APP.O(null,5,[$APP.qh,Mu,$APP.oh,Ju,$APP.lh,Ku,$APP.kh,Lu,$APP.ph,Iu],null))},Du=new $APP.F(null,"max-scale-raw","max-scale-raw",-238296345),Ou=new $APP.F(null,"maxScale","maxScale",1268368480),uu=new $APP.F(null,"max-scale","max-scale",
18
+ -1242050464),Eu=new $APP.F(null,"lift-raw","lift-raw",494522715);var Mu="direction radius max-scale lift gap disabled".split(" ");$APP.ce(["x-proximity-list-select",new $APP.O(null,4,[$APP.U,new $APP.O(null,3,[$APP.sm,$APP.Y,$APP.wo,$APP.mm,$APP.Jp,$APP.X],null),$APP.Pq,!0,$APP.er,!0,$APP.Aq,!0],null)]);
19
+ var Hu=new $APP.O(null,6,[$APP.Dn,new $APP.O(null,3,[$APP.Q,$APP.X,$APP.W,"direction",$APP.Yh,"horizontal"],null),$APP.dr,new $APP.O(null,3,[$APP.Q,$APP.Y,$APP.W,"radius",$APP.Yh,120],null),Ou,new $APP.O(null,3,[$APP.Q,$APP.Y,$APP.W,"max-scale",$APP.Yh,1.5],null),$APP.Fq,new $APP.O(null,3,[$APP.Q,$APP.Y,$APP.W,"lift",$APP.Yh,0],null),$APP.bo,new $APP.O(null,3,[$APP.Q,$APP.Y,$APP.W,"gap",$APP.Yh,8],null),$APP.ck,new $APP.O(null,2,[$APP.Q,$APP.Xh,$APP.W,"disabled"],null)],null),Fu=new $APP.pg(null,
20
+ new $APP.O(null,2,["vertical",null,"horizontal",null],null),null);var lu=":host{display:inline-block;"+$APP.V.i("--x-proximity-list-gap")+":8px;"+$APP.V.i("--x-proximity-list-item-size")+":48px;}:host([hidden]){display:none;}[part\x3dtrack]{display:flex;align-items:center;gap:var("+$APP.V.i("--x-proximity-list-gap")+',8px);position:relative;}:host([direction\x3d"vertical"]) [part\x3dtrack]{flex-direction:column;}::slotted(*){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var('+$APP.V.i("--x-proximity-list-item-size")+",48px);height:var("+
21
+ $APP.V.i("--x-proximity-list-item-size")+",48px);transform-origin:center center;will-change:transform;}::slotted(:focus-visible){outline:2px solid var(--x-color-primary,#2563eb);outline-offset:2px;}@media(prefers-reduced-motion:reduce){::slotted(*){transform:none!important;}}";$APP.ha("baredom.exports.x_proximity_list.init",Nu);export const init=Nu;
package/dist/x-radio.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var uv=function(a){a=$APP.Hf([$APP.Zm,$APP.Eh,$APP.dj,$APP.qj,$APP.Gk,$APP.al,$APP.Ch,$APP.ll,$APP.Pk],[a.getAttribute("name"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.getAttribute("aria-labelledby"),a.hasAttribute("checked"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.H(a);a=$APP.C(b,$APP.ll);var c=$APP.C(b,$APP.Pk),d=$APP.C(b,$APP.Zm),e=$APP.C(b,$APP.Eh),f=$APP.C(b,$APP.dj),h=$APP.C(b,$APP.qj),l=$APP.C(b,
3
- $APP.Gk),m=$APP.C(b,$APP.al);b=$APP.C(b,$APP.Ch);l=$APP.E(l);f=$APP.E(f);return $APP.Hf([$APP.zj,$APP.uj,$APP.Ko,$APP.Rk,$APP.jj,$APP.Ok,$APP.Fh,$APP.sl,$APP.Fo,$APP.on,$APP.Y],[f,l?"true":"false",$APP.E(m),l,$APP.n(f)?l:!0,d,b!=null?b:"on",h,c,a,$APP.E(e)])},vv=function(a){var b=$APP.k(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.k(b,"control");b=uv(a);var d=$APP.Y.i(b),e=$APP.Rk.i(b);$APP.Zg(c,"aria-checked",$APP.uj.i(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");$APP.Zg(c,"aria-required",
4
- $APP.n($APP.zj.i(b))?"true":"false");$APP.Zg(c,"aria-readonly",$APP.n($APP.Ko.i(b))?"true":"false");var f=$APP.on.i(b);$APP.n(f)?c.setAttribute("aria-label",f):c.removeAttribute("aria-label");f=$APP.sl.i(b);$APP.n(f)?c.setAttribute("aria-labelledby",f):c.removeAttribute("aria-labelledby");f=$APP.Fo.i(b);$APP.n(f)?c.setAttribute("aria-describedby",f):c.removeAttribute("aria-describedby");$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");$APP.$g(a,"data-checked",e);$APP.$g(a,"data-disabled",
5
- d);a=$APP.k(a,"__xRadioInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.Fh.i(b):null):null}return null},wv=function(a){var b=a.getAttribute("name"),c=$APP.n(a.form)?a.form:null;c=$APP.n(c)?c:document;if($APP.n($APP.n(b)?$APP.M(b,""):b)){var d=[];c.querySelectorAll("x-radio").forEach(function(e){return $APP.B.j(e.getAttribute("name"),b)?d.push(e):null});return d}return[a]},xv=function(a){a=wv(a);var b=a.find(function(d){return d.hasAttribute("checked")}),c=a.length>0?a[0]:null;return a.forEach(function(d){var e=
6
- $APP.k(d,"__xRadioRefs");return $APP.n(e)?(e=$APP.k(e,"control"),d=$APP.n(b)?$APP.B.j(d,b)?0:-1:$APP.B.j(d,c)?0:-1,e.tabIndex=d):null})},yv=function(a){var b=uv(a),c=$APP.Y.i(b),d=$APP.Ko.i(b),e=$APP.Rk.i(b);if($APP.n($APP.n(c)?c:$APP.n(d)?d:e))return null;b=$APP.Fh.i(b);return $APP.bh(a,"x-radio-change-request",{value:b,previousChecked:!1,nextChecked:!0})?(a.setAttribute("checked",""),vv(a),wv(a).forEach(function(f){var h=$APP.M(f,a);return $APP.n(h?f.hasAttribute("checked"):h)?(f.removeAttribute("checked"),
7
- vv(f)):null}),xv(a),$APP.ah(a,"x-radio-change",{value:b,checked:!0})):null},zv=function(a){a=$APP.k(a,"__xRadioRefs");return $APP.n(a)?$APP.k(a,"control").focus():null},Av=function(a){return function(b){var c=b.key,d=wv(a),e=d.length,f=d.indexOf(a);if($APP.B.j(c," ")||$APP.B.j(c,"Enter"))return b.preventDefault(),yv(a);if($APP.B.j(c,"ArrowDown")||$APP.B.j(c,"ArrowRight")){if(b.preventDefault(),e>0)return b=d[$APP.jd(f+1,e)],yv(b),zv(b)}else if($APP.B.j(c,"ArrowUp")||$APP.B.j(c,"ArrowLeft"))if(b.preventDefault(),
8
- e>0)return b=d[$APP.jd(f-1,e)],yv(b),zv(b);return null}},Bv=function(a){return function(){return yv(a)}},Cv=function(a){var b=$APP.k(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.k(a,"__xRadioHandlers");if($APP.n(c)){b=$APP.k(b,"control");a.removeEventListener("click",$APP.k(c,"click"));b.removeEventListener("keydown",$APP.k(c,"keydown"));a.__xRadioHandlers=null;return}}return null},Dv=function(a,b){$APP.$g(a,"disabled",$APP.E(b));return vv(a)},Ev=function(a){a.removeAttribute("checked");return vv(a)},
9
- Fv=function(a){if(!$APP.n($APP.k(a,"__xRadioRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("button"),e=document.createElement("span");c.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-radio-size:16px;--x-radio-border-width:2px;--x-radio-border-color:var(--x-color-border,#6b7280);--x-radio-bg:var(--x-color-surface,#ffffff);--x-radio-checked-color:var(--x-color-primary,#2563eb);--x-radio-dot-size:6px;--x-radio-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-radio-disabled-opacity:0.45;--x-radio-transition:background var(--x-transition-duration,120ms) var(--x-transition-easing,ease),border-color var(--x-transition-duration,120ms) var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-radio-border-color:var(--x-color-border,#9ca3af);--x-radio-bg:var(--x-color-surface,#1f2937);--x-radio-checked-color:var(--x-color-primary,#3b82f6);--x-radio-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-radio-size);height:var(--x-radio-size);border:var(--x-radio-border-width) solid var(--x-radio-border-color);border-radius:50%;background:var(--x-radio-bg);transition:var(--x-radio-transition);cursor:pointer;flex-shrink:0;position:relative;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-radio-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-radio-focus-ring);}:host([data-checked]) [part\x3dcontrol]{border-color:var(--x-radio-checked-color);}[part\x3ddot]{display:block;width:var(--x-radio-dot-size);height:var(--x-radio-dot-size);border-radius:50%;background:var(--x-radio-checked-color);opacity:0;transition:opacity 100ms ease;}:host([data-checked]) [part\x3ddot]{opacity:1;}@media (prefers-reduced-motion:reduce){[part\x3dcontrol]{transition:none;}[part\x3ddot]{transition:none;}}";
10
- d.setAttribute("part","control");d.setAttribute("type","button");d.setAttribute("role","radio");e.setAttribute("part","dot");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xRadioRefs={root:b,control:d,dot:e};$APP.n(a.attachInternals)&&(b=a.attachInternals(),a.__xRadioInternals=b)}Cv(a);b=$APP.k(a,"__xRadioRefs");$APP.n(b)&&(b=$APP.k(b,"control"),c=Bv(a),d=Av(a),e={click:c,keydown:d},a.addEventListener("click",c),b.addEventListener("keydown",d),a.__xRadioHandlers=e);vv(a);return xv(a)},Gv=
11
- function(a){return Cv(a)},Hv=function(a){return vv(a)},Jv=function(a){return $APP.ih(a,Iv)},Lv=function(){return $APP.Wg("x-radio",new $APP.P(null,8,[$APP.Mg,Kv,$APP.Ng,Fv,$APP.Og,Gv,$APP.Qg,Hv,$APP.Rg,!0,$APP.Sg,Dv,$APP.Tg,Ev,$APP.Ug,Jv],null))};var Kv="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" "),Iv=new $APP.P(null,6,[$APP.yo,new $APP.P(null,2,[$APP.S,$APP.U,$APP.T,"checked"],null),$APP.fl,new $APP.P(null,2,[$APP.S,$APP.U,$APP.T,"disabled"],null),$APP.Wn,new $APP.P(null,2,[$APP.S,$APP.U,$APP.T,"readonly"],null),$APP.Wl,new $APP.P(null,2,[$APP.S,$APP.U,$APP.T,"required"],null),$APP.Ok,new $APP.P(null,2,[$APP.S,$APP.V,$APP.T,"name"],null),$APP.Fh,new $APP.P(null,2,[$APP.S,$APP.V,$APP.T,
12
- "value"],null)],null);$APP.Ud(["x-radio-change-request",new $APP.P(null,2,[$APP.Un,!0,$APP.Z,new $APP.P(null,3,[$APP.Fh,$APP.V,$APP.Nl,$APP.U,$APP.un,$APP.U],null)],null),"x-radio-change",new $APP.P(null,2,[$APP.Un,!1,$APP.Z,new $APP.P(null,2,[$APP.Fh,$APP.V,$APP.yo,$APP.U],null)],null)]);$APP.da("baredom.exports.x_radio.init",Lv);export const init=Lv;
2
+ var Gx=function(a){a=$APP.Wf([$APP.ri,$APP.vi,$APP.wi,$APP.uj,$APP.vj,$APP.xj,$APP.si,$APP.yj,$APP.zj],[a.getAttribute("name"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.getAttribute("aria-labelledby"),a.hasAttribute("checked"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.G(a);a=$APP.C(b,$APP.yj);var c=$APP.C(b,$APP.zj),d=$APP.C(b,$APP.ri),e=$APP.C(b,$APP.vi),f=$APP.C(b,$APP.wi),h=$APP.C(b,$APP.uj),l=$APP.C(b,
3
+ $APP.vj),m=$APP.C(b,$APP.xj);b=$APP.C(b,$APP.si);l=$APP.D(l);f=$APP.D(f);return $APP.Wf([$APP.Ci,$APP.Bj,$APP.Cj,$APP.Dj,$APP.Ej,$APP.zi,$APP.Eh,$APP.Jj,$APP.Kj,$APP.Lj,$APP.Bi],[f,l?"true":"false",$APP.D(m),l,$APP.n(f)?l:!0,d,b!=null?b:"on",h,c,a,$APP.D(e)])},Hx=function(a){var b=$APP.k(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.k(b,"control");b=Gx(a);var d=$APP.Bi.i(b),e=$APP.Dj.i(b);$APP.S(c,"aria-checked",$APP.Bj.i(b));$APP.S(c,"aria-disabled",$APP.n(d)?"true":"false");$APP.S(c,"aria-required",
4
+ $APP.n($APP.Ci.i(b))?"true":"false");$APP.S(c,"aria-readonly",$APP.n($APP.Cj.i(b))?"true":"false");var f=$APP.Lj.i(b);$APP.n(f)?$APP.S(c,"aria-label",f):$APP.T(c,"aria-label");f=$APP.Jj.i(b);$APP.n(f)?$APP.S(c,"aria-labelledby",f):$APP.T(c,"aria-labelledby");f=$APP.Kj.i(b);$APP.n(f)?$APP.S(c,"aria-describedby",f):$APP.T(c,"aria-describedby");$APP.n(d)?$APP.S(c,"disabled",""):$APP.T(c,"disabled");$APP.Ih(a,"data-checked",e);$APP.Ih(a,"data-disabled",d);a=$APP.k(a,"__xRadioInternals");return $APP.n(a)?
5
+ a.setFormValue($APP.n(e)?$APP.Eh.i(b):null):null}return null},Ix=function(a){var b=a.getAttribute("name"),c=$APP.n(a.form)?a.form:null;c=$APP.n(c)?c:document;if($APP.n($APP.n(b)?$APP.I(b,""):b)){var d=[];c.querySelectorAll("x-radio").forEach(function(e){return $APP.A.j(e.getAttribute("name"),b)?d.push(e):null});return d}return[a]},Jx=function(a){a=Ix(a);var b=a.find(function(d){return d.hasAttribute("checked")}),c=a.length>0?a[0]:null;return a.forEach(function(d){var e=$APP.k(d,"__xRadioRefs");return $APP.n(e)?
6
+ (e=$APP.k(e,"control"),d=$APP.n(b)?$APP.A.j(d,b)?0:-1:$APP.A.j(d,c)?0:-1,e.tabIndex=d):null})},Kx=function(a){var b=Gx(a),c=$APP.Bi.i(b),d=$APP.Cj.i(b),e=$APP.Dj.i(b);if($APP.n($APP.n(c)?c:$APP.n(d)?d:e))return null;b=$APP.Eh.i(b);return $APP.Ph(a,"x-radio-change-request",{value:b,previousChecked:!1,nextChecked:!0})?($APP.S(a,"checked",""),Hx(a),Ix(a).forEach(function(f){var h=$APP.I(f,a);return $APP.n(h?f.hasAttribute("checked"):h)?($APP.T(f,"checked"),Hx(f)):null}),Jx(a),$APP.Nh(a,"x-radio-change",
7
+ {value:b,checked:!0})):null},Lx=function(a){a=$APP.k(a,"__xRadioRefs");return $APP.n(a)?$APP.k(a,"control").focus():null},Mx=function(a){return function(b){var c=b.key,d=Ix(a),e=d.length,f=d.indexOf(a);if($APP.A.j(c," ")||$APP.A.j(c,"Enter"))return b.preventDefault(),Kx(a);if($APP.A.j(c,"ArrowDown")||$APP.A.j(c,"ArrowRight")){if(b.preventDefault(),e>0)return b=d[$APP.qd(f+1,e)],Kx(b),Lx(b)}else if($APP.A.j(c,"ArrowUp")||$APP.A.j(c,"ArrowLeft"))if(b.preventDefault(),e>0)return b=d[$APP.qd(f-1,e)],
8
+ Kx(b),Lx(b);return null}},Nx=function(a){return function(){return Kx(a)}},Ox=function(a){var b=$APP.k(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.k(a,"__xRadioHandlers");if($APP.n(c)){b=$APP.k(b,"control");a.removeEventListener("click",$APP.k(c,"click"));b.removeEventListener("keydown",$APP.k(c,"keydown"));a.__xRadioHandlers=null;return}}return null},Px=function(a,b){$APP.Ih(a,"disabled",$APP.D(b));return Hx(a)},Qx=function(a){$APP.T(a,"checked");return Hx(a)},Rx=function(a){if(!$APP.n($APP.k(a,"__xRadioRefs"))){var b=
9
+ a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("button"),e=document.createElement("span");c.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-radio-size:16px;--x-radio-border-width:2px;--x-radio-border-color:var(--x-color-border,#6b7280);--x-radio-bg:var(--x-color-surface,#ffffff);--x-radio-checked-color:var(--x-color-primary,#2563eb);--x-radio-dot-size:6px;--x-radio-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-radio-disabled-opacity:0.45;--x-radio-transition:background var(--x-transition-duration,120ms) var(--x-transition-easing,ease),border-color var(--x-transition-duration,120ms) var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-radio-border-color:var(--x-color-border,#9ca3af);--x-radio-bg:var(--x-color-surface,#1f2937);--x-radio-checked-color:var(--x-color-primary,#3b82f6);--x-radio-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-radio-size);height:var(--x-radio-size);border:var(--x-radio-border-width) solid var(--x-radio-border-color);border-radius:50%;background:var(--x-radio-bg);transition:var(--x-radio-transition);cursor:pointer;flex-shrink:0;position:relative;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-radio-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-radio-focus-ring);}:host([data-checked]) [part\x3dcontrol]{border-color:var(--x-radio-checked-color);}[part\x3ddot]{display:block;width:var(--x-radio-dot-size);height:var(--x-radio-dot-size);border-radius:50%;background:var(--x-radio-checked-color);opacity:0;transition:opacity 100ms ease;}:host([data-checked]) [part\x3ddot]{opacity:1;}@media (prefers-reduced-motion:reduce){[part\x3dcontrol]{transition:none;}[part\x3ddot]{transition:none;}}";
10
+ $APP.S(d,"part","control");$APP.S(d,"type","button");$APP.S(d,"role","radio");$APP.S(e,"part","dot");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xRadioRefs={root:b,control:d,dot:e};$APP.n(a.attachInternals)&&(b=a.attachInternals(),a.__xRadioInternals=b)}Ox(a);b=$APP.k(a,"__xRadioRefs");$APP.n(b)&&(b=$APP.k(b,"control"),c=Nx(a),d=Mx(a),e={click:c,keydown:d},a.addEventListener("click",c),b.addEventListener("keydown",d),a.__xRadioHandlers=e);Hx(a);return Jx(a)},Sx=function(a){return Ox(a)},
11
+ Tx=function(a){return Hx(a)},Vx=function(a){return $APP.Zh(a,Ux)},Xx=function(){return $APP.Ah("x-radio",new $APP.O(null,8,[$APP.qh,Wx,$APP.oh,Rx,$APP.lh,Sx,$APP.kh,Tx,$APP.mh,!0,$APP.jh,Px,$APP.ih,Qx,$APP.ph,Vx],null))};var Wx="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" "),Ux=new $APP.O(null,6,[$APP.cr,new $APP.O(null,2,[$APP.Q,$APP.Xh,$APP.W,"checked"],null),$APP.ck,new $APP.O(null,2,[$APP.Q,$APP.Xh,$APP.W,"disabled"],null),$APP.Cq,new $APP.O(null,2,[$APP.Q,$APP.Xh,$APP.W,"readonly"],null),$APP.Ho,new $APP.O(null,2,[$APP.Q,$APP.Xh,$APP.W,"required"],null),$APP.zi,new $APP.O(null,2,[$APP.Q,$APP.X,$APP.W,"name"],null),$APP.Eh,new $APP.O(null,2,[$APP.Q,$APP.X,
12
+ $APP.W,"value"],null)],null);$APP.ce(["x-radio-change-request",new $APP.O(null,2,[$APP.Aq,!0,$APP.U,new $APP.O(null,3,[$APP.Eh,$APP.X,$APP.zo,$APP.Xh,$APP.jq,$APP.Xh],null)],null),"x-radio-change",new $APP.O(null,2,[$APP.Aq,!1,$APP.U,new $APP.O(null,2,[$APP.Eh,$APP.X,$APP.cr,$APP.Xh],null)],null)]);$APP.ha("baredom.exports.x_radio.init",Xx);export const init=Xx;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var H_=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?25:Math.min(100,Math.max(1,a))}return 25},I_=function(a){if(typeof a==="string"){a=parseInt(a.trim(),10);var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?800:Math.min(5E3,Math.max(100,a))}return 800},J_=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?.04:Math.min(.2,Math.max(.005,a))}return.04},K_=function(a){var b=$APP.k(a,
2
+ var D0=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?25:Math.min(100,Math.max(1,a))}return 25},E0=function(a){if(typeof a==="string"){a=parseInt(a.trim(),10);var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?800:Math.min(5E3,Math.max(100,a))}return 800},F0=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?.04:Math.min(.2,Math.max(.005,a))}return.04},G0=function(a){var b=$APP.k(a,
3
3
  "__xRippleRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot"),f=document.createElementNS("http://www.w3.org/2000/svg","svg");c.textContent=":host{display:inline-block;position:relative;}:host([disabled]){cursor:default;}[part\x3dcontainer]{display:block;width:100%;height:100%;}";d.setAttribute("part","container");d.appendChild(e);f.setAttribute("part","filters");f.style.position="absolute";
4
- f.style.width="0";f.style.height="0";f.style.overflow="hidden";b.appendChild(c);b.appendChild(d);b.appendChild(f);a.__xRippleRefs=new $APP.P(null,3,[$APP.Qh,b,$APP.Rh,d,$APP.Cl,f],null);a.__xRippleCounter=0;a.__xRippleFrames=[];return $APP.k(a,"__xRippleRefs")},N_=function(a){a=new $APP.P(null,4,[$APP.Zl,a.getAttribute("intensity"),$APP.hk,a.getAttribute("duration"),L_,a.getAttribute("frequency"),$APP.Eh,a.hasAttribute("disabled")],null);var b=$APP.H(a);a=$APP.C(b,$APP.Zl);var c=$APP.C(b,$APP.hk),
5
- d=$APP.C(b,L_);b=$APP.C(b,$APP.Eh);return new $APP.P(null,4,[$APP.Pl,H_(a),$APP.Em,I_(c),M_,J_(d),$APP.Y,$APP.E(b)],null)},Q_=function(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feTurbulence"),f=document.createElementNS("http://www.w3.org/2000/svg","feDisplacementMap");d.setAttribute("id",b);d.setAttribute("x","-10%");d.setAttribute("y","-10%");d.setAttribute("width","120%");d.setAttribute("height","120%");
6
- e.setAttribute("type","turbulence");e.setAttribute("baseFrequency",""+$APP.R.i(c));e.setAttribute("numOctaves","3");e.setAttribute("seed",""+$APP.R.i(Math.floor(Math.random()*1E3)));e.setAttribute("result","turbulence");f.setAttribute("in","SourceGraphic");f.setAttribute("in2","turbulence");f.setAttribute("scale","0");f.setAttribute("xChannelSelector","R");f.setAttribute("yChannelSelector","G");d.appendChild(e);d.appendChild(f);a.appendChild(d);return new $APP.P(null,3,[$APP.Jm,d,O_,e,P_,f],null)},
7
- R_=function(a,b){var c=N_(a);if(!$APP.n($APP.Y.i(c))){c=$APP.H(c);var d=$APP.C(c,$APP.Pl),e=$APP.C(c,$APP.Em),f=$APP.C(c,M_);c=K_(a);c=$APP.H(c);var h=$APP.C(c,$APP.Rh),l=$APP.C(c,$APP.Cl),m=$APP.k(a,"__xRippleCounter");c="xr-"+$APP.R.i(m);a.__xRippleCounter=m+1;m=Q_(l,c,f);m=$APP.H(m);var q=$APP.C(m,$APP.Jm),r=$APP.C(m,O_),v=$APP.C(m,P_),w=b.clientX,y=b.clientY,A=performance.now(),D=$APP.k(a,"__xRippleFrames");b=$APP.E(window.matchMedia("(prefers-reduced-motion:reduce)").matches);h.style.filter=
8
- "url(#"+$APP.R.i(c)+")";$APP.ah(a,"x-ripple-effect-start",{x:w,y});b?(v.setAttribute("scale",""+$APP.R.i(d/2)),b=requestAnimationFrame(function(){v.setAttribute("scale","0");l.removeChild(q);h.style.filter="";return $APP.ah(a,"x-ripple-effect-end",{x:w,y})})):b=requestAnimationFrame(function I(){var J=performance.now()-A;J=Math.min(1,J/e);var K=1-J;K=1-K*K*K;var ba=f*(1-K*.7);v.setAttribute("scale",""+$APP.R.i(d*(1-K)));r.setAttribute("baseFrequency",""+$APP.R.i(ba));if(J>=1)return l.removeChild(q),
9
- l.childNodes.length===0&&(h.style.filter=""),$APP.ah(a,"x-ripple-effect-end",{x:w,y});J=requestAnimationFrame(I);return D.push(J)});D.push(b)}},S_=function(a){function b(c){c.button===0&&R_(a,c);return null}a.addEventListener("pointerdown",b);a.__xRippleHandler=b},T_=function(a){var b=$APP.k(a,"__xRippleFrames");if($APP.n(b)){for(var c=b.length,d=0;;)if(d<c)cancelAnimationFrame(b[d]),d+=1;else break;b.length=0}b=$APP.k(a,"__xRippleRefs");if($APP.n(b)){c=$APP.H(b);b=$APP.C(c,$APP.Cl);for(c=$APP.C(c,
10
- $APP.Rh);;)if(d=b.firstChild,$APP.n(d))b.removeChild(d);else break;c.style.filter=""}b=$APP.k(a,"__xRippleHandler");$APP.n(b)&&(a.removeEventListener("pointerdown",b),a.__xRippleHandler=null)},U_=function(a){Object.defineProperty(a,"intensity",{get:function(){return H_(this.getAttribute("intensity"))},set:function(b){return b==null?this.removeAttribute("intensity"):this.setAttribute("intensity",""+$APP.R.i(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"duration",{get:function(){return I_(this.getAttribute("duration"))},
11
- set:function(b){return b==null?this.removeAttribute("duration"):this.setAttribute("duration",""+$APP.R.i(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"frequency",{get:function(){return J_(this.getAttribute("frequency"))},set:function(b){return b==null?this.removeAttribute("frequency"):this.setAttribute("frequency",""+$APP.R.i(b))},enumerable:!0,configurable:!0});return $APP.ch(a,"disabled","disabled")},V_=function(a){K_(a);T_(a);S_(a);return null},W_=function(a){T_(a);return null},
12
- X_=function(){return null},Z_=function(){return $APP.Wg("x-ripple-effect",new $APP.P(null,5,[$APP.Mg,Y_,$APP.Ng,V_,$APP.Og,W_,$APP.Qg,X_,$APP.Ug,U_],null))},O_=new $APP.F(null,"turb","turb",-804768361),L_=new $APP.F(null,"frequency-raw","frequency-raw",-1367383022),P_=new $APP.F(null,"disp","disp",-2047544334),M_=new $APP.F(null,"frequency","frequency",-1408891382);var Y_=["intensity","duration","frequency","disabled"];$APP.Ud(["x-ripple-effect-start",new $APP.P(null,2,[$APP.Z,new $APP.P(null,2,[$APP.kn,$APP.W,$APP.jn,$APP.W],null),$APP.Un,!1],null),"x-ripple-effect-end",new $APP.P(null,2,[$APP.Z,new $APP.P(null,2,[$APP.kn,$APP.W,$APP.jn,$APP.W],null),$APP.Un,!1],null)]);$APP.da("baredom.exports.x_ripple_effect.init",Z_);export const init=Z_;
4
+ f.style.width="0";f.style.height="0";f.style.overflow="hidden";b.appendChild(c);b.appendChild(d);b.appendChild(f);a.__xRippleRefs=new $APP.O(null,3,[$APP.jj,b,$APP.kj,d,$APP.po,f],null);a.__xRippleCounter=0;a.__xRippleFrames=[];return $APP.k(a,"__xRippleRefs")},jfa=function(a){a=new $APP.O(null,4,[$APP.Ko,a.getAttribute("intensity"),$APP.dn,a.getAttribute("duration"),H0,a.getAttribute("frequency"),$APP.vi,a.hasAttribute("disabled")],null);var b=$APP.G(a);a=$APP.C(b,$APP.Ko);var c=$APP.C(b,$APP.dn),
5
+ d=$APP.C(b,H0);b=$APP.C(b,$APP.vi);return new $APP.O(null,4,[$APP.Bo,D0(a),$APP.wp,E0(c),I0,F0(d),$APP.Bi,$APP.D(b)],null)},kfa=function(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feTurbulence"),f=document.createElementNS("http://www.w3.org/2000/svg","feDisplacementMap");d.setAttribute("id",b);d.setAttribute("x","-10%");d.setAttribute("y","-10%");d.setAttribute("width","120%");d.setAttribute("height","120%");
6
+ e.setAttribute("type","turbulence");e.setAttribute("baseFrequency",""+$APP.V.i(c));e.setAttribute("numOctaves","3");e.setAttribute("seed",""+$APP.V.i(Math.floor(Math.random()*1E3)));e.setAttribute("result","turbulence");f.setAttribute("in","SourceGraphic");f.setAttribute("in2","turbulence");f.setAttribute("scale","0");f.setAttribute("xChannelSelector","R");f.setAttribute("yChannelSelector","G");d.appendChild(e);d.appendChild(f);a.appendChild(d);return new $APP.O(null,3,[$APP.Bp,d,J0,e,K0,f],null)},
7
+ lfa=function(a,b){var c=jfa(a);if(!$APP.n($APP.Bi.i(c))){c=$APP.G(c);var d=$APP.C(c,$APP.Bo),e=$APP.C(c,$APP.wp),f=$APP.C(c,I0);c=G0(a);c=$APP.G(c);var h=$APP.C(c,$APP.kj),l=$APP.C(c,$APP.po),m=$APP.k(a,"__xRippleCounter");c="xr-"+$APP.V.i(m);a.__xRippleCounter=m+1;m=kfa(l,c,f);m=$APP.G(m);var q=$APP.C(m,$APP.Bp),r=$APP.C(m,J0),v=$APP.C(m,K0),x=b.clientX,z=b.clientY,B=performance.now(),E=$APP.k(a,"__xRippleFrames");b=$APP.D(window.matchMedia("(prefers-reduced-motion:reduce)").matches);h.style.filter=
8
+ "url(#"+$APP.V.i(c)+")";$APP.Nh(a,"x-ripple-effect-start",{x,y:z});b?(v.setAttribute("scale",""+$APP.V.i(d/2)),b=requestAnimationFrame(function(){v.setAttribute("scale","0");l.removeChild(q);h.style.filter="";return $APP.Nh(a,"x-ripple-effect-end",{x,y:z})})):b=requestAnimationFrame(function K(){var J=performance.now()-B;J=Math.min(1,J/e);var P=1-J;P=1-P*P*P;var ea=f*(1-P*.7);v.setAttribute("scale",""+$APP.V.i(d*(1-P)));r.setAttribute("baseFrequency",""+$APP.V.i(ea));if(J>=1)return l.removeChild(q),
9
+ l.childNodes.length===0&&(h.style.filter=""),$APP.Nh(a,"x-ripple-effect-end",{x,y:z});J=requestAnimationFrame(K);return E.push(J)});E.push(b)}},mfa=function(a){function b(c){c.button===0&&lfa(a,c);return null}a.addEventListener("pointerdown",b);a.__xRippleHandler=b},L0=function(a){var b=$APP.k(a,"__xRippleFrames");if($APP.n(b)){for(var c=b.length,d=0;;)if(d<c)cancelAnimationFrame(b[d]),d+=1;else break;b.length=0}b=$APP.k(a,"__xRippleRefs");if($APP.n(b)){c=$APP.G(b);b=$APP.C(c,$APP.po);for(c=$APP.C(c,
10
+ $APP.kj);;)if(d=b.firstChild,$APP.n(d))b.removeChild(d);else break;c.style.filter=""}b=$APP.k(a,"__xRippleHandler");$APP.n(b)&&(a.removeEventListener("pointerdown",b),a.__xRippleHandler=null)},nfa=function(a){Object.defineProperty(a,"intensity",{get:function(){return D0(this.getAttribute("intensity"))},set:function(b){return b==null?this.removeAttribute("intensity"):this.setAttribute("intensity",""+$APP.V.i(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"duration",{get:function(){return E0(this.getAttribute("duration"))},
11
+ set:function(b){return b==null?this.removeAttribute("duration"):this.setAttribute("duration",""+$APP.V.i(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"frequency",{get:function(){return F0(this.getAttribute("frequency"))},set:function(b){return b==null?this.removeAttribute("frequency"):this.setAttribute("frequency",""+$APP.V.i(b))},enumerable:!0,configurable:!0});return $APP.Sh(a,"disabled","disabled")},ofa=function(a){G0(a);L0(a);mfa(a);return null},pfa=function(a){L0(a);return null},
12
+ qfa=function(){return null},M0=function(){return $APP.Ah("x-ripple-effect",new $APP.O(null,5,[$APP.qh,rfa,$APP.oh,ofa,$APP.lh,pfa,$APP.kh,qfa,$APP.ph,nfa],null))},J0=new $APP.F(null,"turb","turb",-804768361),H0=new $APP.F(null,"frequency-raw","frequency-raw",-1367383022),K0=new $APP.F(null,"disp","disp",-2047544334),I0=new $APP.F(null,"frequency","frequency",-1408891382);var rfa=["intensity","duration","frequency","disabled"];$APP.ce(["x-ripple-effect-start",new $APP.O(null,2,[$APP.U,new $APP.O(null,2,[$APP.aq,$APP.Y,$APP.$p,$APP.Y],null),$APP.Aq,!1],null),"x-ripple-effect-end",new $APP.O(null,2,[$APP.U,new $APP.O(null,2,[$APP.aq,$APP.Y,$APP.$p,$APP.Y],null),$APP.Aq,!1],null)]);$APP.ha("baredom.exports.x_ripple_effect.init",M0);export const init=M0;