@vanelsas/baredom 1.2.0 → 1.4.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 (83) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +7 -5
  3. package/dist/base.js +397 -362
  4. package/dist/x-alert.js +19 -19
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +15 -15
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-bento-grid.js +6 -0
  9. package/dist/x-bento-item.js +5 -0
  10. package/dist/x-breadcrumbs.js +14 -14
  11. package/dist/x-button.js +16 -16
  12. package/dist/x-cancel-dialogue.js +17 -17
  13. package/dist/x-card.js +7 -7
  14. package/dist/x-chart.js +48 -48
  15. package/dist/x-checkbox.js +11 -11
  16. package/dist/x-chip.js +8 -8
  17. package/dist/x-collapse.js +12 -12
  18. package/dist/x-command-palette.js +31 -31
  19. package/dist/x-container.js +6 -6
  20. package/dist/x-context-menu.js +19 -19
  21. package/dist/x-copy.js +23 -23
  22. package/dist/x-currency-field.js +22 -22
  23. package/dist/x-date-picker.js +41 -41
  24. package/dist/x-divider.js +13 -13
  25. package/dist/x-drawer.js +12 -12
  26. package/dist/x-dropdown.js +9 -9
  27. package/dist/x-fieldset.js +6 -6
  28. package/dist/x-file-download.js +7 -7
  29. package/dist/x-form-field.js +15 -15
  30. package/dist/x-form.js +10 -10
  31. package/dist/x-gaussian-blur.js +19 -32
  32. package/dist/x-grid.js +6 -7
  33. package/dist/x-kinetic-font.js +29 -0
  34. package/dist/x-kinetic-typography.js +39 -61
  35. package/dist/x-liquid-dock.js +40 -0
  36. package/dist/x-liquid-fill.js +45 -0
  37. package/dist/x-liquid-glass.js +48 -0
  38. package/dist/x-menu-item.js +10 -10
  39. package/dist/x-menu.js +11 -11
  40. package/dist/x-metaball-cursor.js +29 -0
  41. package/dist/x-modal.js +13 -13
  42. package/dist/x-morph-stack.js +41 -0
  43. package/dist/x-navbar.js +13 -13
  44. package/dist/x-neural-glow.js +35 -0
  45. package/dist/x-notification-center.js +9 -10
  46. package/dist/x-organic-divider.js +19 -19
  47. package/dist/x-organic-progress.js +40 -0
  48. package/dist/x-organic-shape.js +14 -14
  49. package/dist/x-pagination.js +16 -16
  50. package/dist/x-popover.js +15 -15
  51. package/dist/x-progress-circle.js +9 -9
  52. package/dist/x-progress.js +10 -10
  53. package/dist/x-radio.js +11 -11
  54. package/dist/x-ripple-effect.js +12 -13
  55. package/dist/x-scroll-parallax.js +19 -19
  56. package/dist/x-scroll-stack.js +18 -18
  57. package/dist/x-scroll-story.js +36 -36
  58. package/dist/x-scroll-timeline.js +50 -50
  59. package/dist/x-scroll.js +41 -41
  60. package/dist/x-search-field.js +14 -14
  61. package/dist/x-select.js +9 -9
  62. package/dist/x-sidebar.js +16 -16
  63. package/dist/x-skeleton.js +6 -6
  64. package/dist/x-slider.js +16 -16
  65. package/dist/x-soft-body.js +22 -0
  66. package/dist/x-spacer.js +5 -5
  67. package/dist/x-spinner.js +5 -5
  68. package/dist/x-splash.js +15 -0
  69. package/dist/x-stat.js +11 -11
  70. package/dist/x-stepper.js +16 -16
  71. package/dist/x-switch.js +10 -10
  72. package/dist/x-tab.js +7 -7
  73. package/dist/x-table-cell.js +22 -23
  74. package/dist/x-table-row.js +10 -10
  75. package/dist/x-table.js +16 -16
  76. package/dist/x-tabs.js +11 -11
  77. package/dist/x-text-area.js +18 -18
  78. package/dist/x-timeline-item.js +24 -24
  79. package/dist/x-timeline.js +9 -9
  80. package/dist/x-toast.js +24 -24
  81. package/dist/x-toaster.js +8 -8
  82. package/dist/x-typography.js +8 -8
  83. package/package.json +50 -2
package/dist/x-scroll.js CHANGED
@@ -1,43 +1,43 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var gQ=function(a){return a==null?!0:$APP.O((""+$APP.S.g(a)).trim().toLowerCase(),"false")},hQ=function(a,b){if(typeof a==="string"){a=parseInt(a.trim(),10);var c=isNaN(a);return $APP.n($APP.n(c)?c:a<0)?b:a}return b},iQ=function(a,b){return $APP.n(a)?b>=3:a},jQ=function(a,b,c,d){a+=b;return $APP.n(iQ(d,c))?c<=0?0:$APP.Sc($APP.Sc(a,c)+c,c):c<=0?0:$APP.Ag.h(0,$APP.Bg.h(a,c-1))},mQ=function(a,b){var c=$APP.N(a);a=$APP.H(c,kQ);c=$APP.H(c,lQ);return $APP.n(iQ(c,b))?b>0:a>0},nQ=function(a,b){var c=$APP.N(a);
3
- a=$APP.H(c,kQ);c=$APP.H(c,lQ);return $APP.n(iQ(c,b))?b>0:a<b-1},pQ=function(a){var b=$APP.l(a,"__xScrollRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("slot"),h=document.createElement("button"),k=document.createElement("button"),m=document.createElement("div"),p=document.createElement("div");c.textContent=":host{display:block;position:relative;overflow:hidden;color-scheme:light dark;--x-scroll-gap:0px;--x-scroll-padding:0px;--x-scroll-border-radius:0px;--x-scroll-bg:transparent;--x-scroll-control-size:36px;--x-scroll-control-bg:rgba(255,255,255,0.9);--x-scroll-control-color:rgba(0,0,0,0.7);--x-scroll-control-hover-bg:rgba(255,255,255,1);--x-scroll-control-border-radius:50%;--x-scroll-control-shadow:0 2px 8px rgba(0,0,0,.15);--x-scroll-indicator-size:8px;--x-scroll-indicator-gap:6px;--x-scroll-indicator-color:rgba(0,0,0,0.25);--x-scroll-indicator-active-color:rgba(0,0,0,0.7);--x-scroll-transition-duration:300ms;--x-scroll-slide-size:100%;--x-scroll-disabled-opacity:0.55;--x-scroll-focus-ring:rgba(0,102,204,0.6);}@media (prefers-color-scheme:dark){:host{--x-scroll-control-bg:rgba(40,40,40,0.9);--x-scroll-control-color:rgba(255,255,255,0.8);--x-scroll-control-hover-bg:rgba(50,50,50,1);--x-scroll-control-shadow:0 2px 8px rgba(0,0,0,.4);--x-scroll-indicator-color:rgba(255,255,255,0.3);--x-scroll-indicator-active-color:rgba(255,255,255,0.8);--x-scroll-focus-ring:rgba(100,180,255,0.7);}}[part\x3dviewport]{position:relative;overflow:hidden;width:100%;height:100%;border-radius:var(--x-scroll-border-radius);background:var(--x-scroll-bg);padding:var(--x-scroll-padding);}[part\x3dtrack]{display:flex;position:relative;will-change:transform;transition:transform var(--x-scroll-transition-duration) cubic-bezier(0.25,0.1,0.25,1);touch-action:none;user-select:none;}:host([data-mode\x3dhorizontal]) [part\x3dtrack]{flex-direction:row;}:host([data-mode\x3dvertical]) [part\x3dtrack]{flex-direction:column;}::slotted(*){flex:0 0 var(--x-scroll-slide-size);min-width:0;min-height:0;box-sizing:border-box;}[part\x3dprev],[part\x3dnext]{position:absolute;top:50%;z-index:2;appearance:none;border:0;margin:0;padding:0;width:var(--x-scroll-control-size);height:var(--x-scroll-control-size);border-radius:var(--x-scroll-control-border-radius);background:var(--x-scroll-control-bg);color:var(--x-scroll-control-color);box-shadow:var(--x-scroll-control-shadow);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:calc(var(--x-scroll-control-size) * 0.5);line-height:1;transform:translateY(-50%);transition:background 120ms ease,opacity 120ms ease;}[part\x3dprev]{left:8px;}[part\x3dnext]{right:8px;}:host([data-mode\x3dvertical]) [part\x3dprev],:host([data-mode\x3dvertical]) [part\x3dnext]{top:auto;left:50%;transform:translateX(-50%);}:host([data-mode\x3dvertical]) [part\x3dprev]{top:8px;}:host([data-mode\x3dvertical]) [part\x3dnext]{bottom:8px;top:auto;}[part\x3dprev]:hover,[part\x3dnext]:hover{background:var(--x-scroll-control-hover-bg);}[part\x3dprev]:focus,[part\x3dnext]:focus{outline:none;}[part\x3dprev]:focus-visible,[part\x3dnext]:focus-visible{outline:2px solid var(--x-scroll-focus-ring);outline-offset:2px;}[part\x3dprev]:disabled,[part\x3dnext]:disabled{opacity:0.3;cursor:default;pointer-events:none;}[data-hide-controls] [part\x3dprev],[data-hide-controls] [part\x3dnext]{display:none;}[part\x3dindicators]{display:flex;justify-content:center;gap:var(--x-scroll-indicator-gap);position:absolute;bottom:12px;left:50%;transform:translateX(-50%);z-index:2;}:host([data-mode\x3dvertical]) [part\x3dindicators]{flex-direction:column;bottom:auto;left:auto;right:12px;top:50%;transform:translateY(-50%);}[part\x3dindicator]{appearance:none;border:0;margin:0;padding:0;width:var(--x-scroll-indicator-size);height:var(--x-scroll-indicator-size);border-radius:50%;background:var(--x-scroll-indicator-color);cursor:pointer;transition:background 120ms ease;}[part\x3dindicator]:focus{outline:none;}[part\x3dindicator]:focus-visible{outline:2px solid var(--x-scroll-focus-ring);outline-offset:2px;}[part\x3dindicator][aria-selected\x3dtrue]{background:var(--x-scroll-indicator-active-color);}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}:host([disabled]){opacity:var(--x-scroll-disabled-opacity);pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3dtrack]{transition:none !important;}}";
2
+ var yY=function(a){return a==null?!0:$APP.O((""+$APP.S.g(a)).trim().toLowerCase(),"false")},zY=function(a,b){if(typeof a==="string"){a=parseInt(a.trim(),10);var c=isNaN(a);return $APP.r($APP.r(c)?c:a<0)?b:a}return b},AY=function(a,b){return $APP.r(a)?b>=3:a},BY=function(a,b,c,d){a+=b;return $APP.r(AY(d,c))?c<=0?0:$APP.hd($APP.hd(a,c)+c,c):c<=0?0:$APP.Yg.i(0,$APP.Zg.i(a,c-1))},DY=function(a,b){var c=$APP.N(a);a=$APP.G(c,$APP.uj);c=$APP.G(c,CY);return $APP.r(AY(c,b))?b>0:a>0},EY=function(a,b){var c=
3
+ $APP.N(a);a=$APP.G(c,$APP.uj);c=$APP.G(c,CY);return $APP.r(AY(c,b))?b>0:a<b-1},GY=function(a){var b=$APP.l(a,"__xScrollRefs");if($APP.r(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("slot"),h=document.createElement("button"),k=document.createElement("button"),m=document.createElement("div"),p=document.createElement("div");c.textContent=":host{display:block;position:relative;overflow:hidden;color-scheme:light dark;--x-scroll-gap:0px;--x-scroll-padding:0px;--x-scroll-border-radius:0px;--x-scroll-bg:transparent;--x-scroll-control-size:36px;--x-scroll-control-bg:rgba(255,255,255,0.9);--x-scroll-control-color:rgba(0,0,0,0.7);--x-scroll-control-hover-bg:rgba(255,255,255,1);--x-scroll-control-border-radius:50%;--x-scroll-control-shadow:0 2px 8px rgba(0,0,0,.15);--x-scroll-indicator-size:8px;--x-scroll-indicator-gap:6px;--x-scroll-indicator-color:rgba(0,0,0,0.25);--x-scroll-indicator-active-color:rgba(0,0,0,0.7);--x-scroll-transition-duration:300ms;--x-scroll-slide-size:100%;--x-scroll-disabled-opacity:0.55;--x-scroll-focus-ring:rgba(0,102,204,0.6);}@media (prefers-color-scheme:dark){:host{--x-scroll-control-bg:rgba(40,40,40,0.9);--x-scroll-control-color:rgba(255,255,255,0.8);--x-scroll-control-hover-bg:rgba(50,50,50,1);--x-scroll-control-shadow:0 2px 8px rgba(0,0,0,.4);--x-scroll-indicator-color:rgba(255,255,255,0.3);--x-scroll-indicator-active-color:rgba(255,255,255,0.8);--x-scroll-focus-ring:rgba(100,180,255,0.7);}}[part\x3dviewport]{position:relative;overflow:hidden;width:100%;height:100%;border-radius:var(--x-scroll-border-radius);background:var(--x-scroll-bg);padding:var(--x-scroll-padding);}[part\x3dtrack]{display:flex;position:relative;will-change:transform;transition:transform var(--x-scroll-transition-duration) cubic-bezier(0.25,0.1,0.25,1);touch-action:none;user-select:none;}:host([data-mode\x3dhorizontal]) [part\x3dtrack]{flex-direction:row;}:host([data-mode\x3dvertical]) [part\x3dtrack]{flex-direction:column;}::slotted(*){flex:0 0 var(--x-scroll-slide-size);min-width:0;min-height:0;box-sizing:border-box;}[part\x3dprev],[part\x3dnext]{position:absolute;top:50%;z-index:2;appearance:none;border:0;margin:0;padding:0;width:var(--x-scroll-control-size);height:var(--x-scroll-control-size);border-radius:var(--x-scroll-control-border-radius);background:var(--x-scroll-control-bg);color:var(--x-scroll-control-color);box-shadow:var(--x-scroll-control-shadow);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:calc(var(--x-scroll-control-size) * 0.5);line-height:1;transform:translateY(-50%);transition:background 120ms ease,opacity 120ms ease;}[part\x3dprev]{left:8px;}[part\x3dnext]{right:8px;}:host([data-mode\x3dvertical]) [part\x3dprev],:host([data-mode\x3dvertical]) [part\x3dnext]{top:auto;left:50%;transform:translateX(-50%);}:host([data-mode\x3dvertical]) [part\x3dprev]{top:8px;}:host([data-mode\x3dvertical]) [part\x3dnext]{bottom:8px;top:auto;}[part\x3dprev]:hover,[part\x3dnext]:hover{background:var(--x-scroll-control-hover-bg);}[part\x3dprev]:focus,[part\x3dnext]:focus{outline:none;}[part\x3dprev]:focus-visible,[part\x3dnext]:focus-visible{outline:2px solid var(--x-scroll-focus-ring);outline-offset:2px;}[part\x3dprev]:disabled,[part\x3dnext]:disabled{opacity:0.3;cursor:default;pointer-events:none;}[data-hide-controls] [part\x3dprev],[data-hide-controls] [part\x3dnext]{display:none;}[part\x3dindicators]{display:flex;justify-content:center;gap:var(--x-scroll-indicator-gap);position:absolute;bottom:12px;left:50%;transform:translateX(-50%);z-index:2;}:host([data-mode\x3dvertical]) [part\x3dindicators]{flex-direction:column;bottom:auto;left:auto;right:12px;top:50%;transform:translateY(-50%);}[part\x3dindicator]{appearance:none;border:0;margin:0;padding:0;width:var(--x-scroll-indicator-size);height:var(--x-scroll-indicator-size);border-radius:50%;background:var(--x-scroll-indicator-color);cursor:pointer;transition:background 120ms ease;}[part\x3dindicator]:focus{outline:none;}[part\x3dindicator]:focus-visible{outline:2px solid var(--x-scroll-focus-ring);outline-offset:2px;}[part\x3dindicator][aria-selected\x3dtrue]{background:var(--x-scroll-indicator-active-color);}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}:host([disabled]){opacity:var(--x-scroll-disabled-opacity);pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3dtrack]{transition:none !important;}}";
4
4
  d.setAttribute("part","viewport");d.setAttribute("role","region");d.setAttribute("aria-roledescription","carousel");e.setAttribute("part","track");e.appendChild(g);d.appendChild(e);h.setAttribute("part","prev");h.setAttribute("type","button");h.setAttribute("aria-label","Previous slide");h.textContent="‹";k.setAttribute("part","next");k.setAttribute("type","button");k.setAttribute("aria-label","Next slide");k.textContent="›";m.setAttribute("part","indicators");m.setAttribute("role","tablist");m.setAttribute("aria-label",
5
- "Slide indicators");p.setAttribute("part","live");p.setAttribute("aria-live","polite");p.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(h);b.appendChild(k);b.appendChild(m);b.appendChild(p);a.__xScrollRefs=new $APP.Q(null,8,[$APP.Yh,b,$APP.Vi,d,$APP.zi,e,$APP.Si,g,$APP.Ei,h,$APP.Zg,k,oQ,m,$APP.Wh,p],null);return $APP.l(a,"__xScrollRefs")},FQ=function(a){a=$APP.gf([qQ,$APP.Dh,rQ,$APP.vi,sQ,tQ,uQ,vQ,$APP.Bi,wQ,xQ],[a.getAttribute("show-controls"),a.getAttribute("label"),
6
- $APP.n(a.hasAttribute("auto-play"))?"":null,a.getAttribute("mode"),$APP.n(a.hasAttribute("loop"))?"":null,a.getAttribute("gap"),$APP.n(a.hasAttribute("show-indicators"))?"":null,a.getAttribute("interval"),$APP.n(a.hasAttribute("disabled"))?"":null,a.getAttribute("snap"),a.getAttribute("active-index")]);var b=$APP.N(a),c=$APP.H(b,wQ);a=$APP.H(b,vQ);var d=$APP.H(b,$APP.Bi),e=$APP.H(b,xQ),g=$APP.H(b,qQ),h=$APP.H(b,$APP.Dh),k=$APP.H(b,rQ),m=$APP.H(b,$APP.vi),p=$APP.H(b,sQ),r=$APP.H(b,tQ);b=$APP.H(b,uQ);
7
- e=hQ(e,0);g=gQ(g);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.K(yQ,c)?c:"none";m=typeof m==="string"?m.trim().toLowerCase():null;m=$APP.K(zQ,m)?m:"horizontal";return $APP.gf([kQ,AQ,BQ,$APP.ij,CQ,DQ,$APP.W,$APP.Vj,lQ,EQ,$APP.V],[e,g,c,m,b!=null,k!=null,$APP.n(h)?h:"",hQ(r,0),p!=null,$APP.Ag.h(500,hQ(a,5E3)),d!=null])},GQ=function(a){a=pQ(a);a=$APP.N(a);return $APP.H(a,$APP.Si).assignedElements()},HQ=function(){return $APP.J(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},
8
- IQ=function(a){return $APP.C.h("horizontal",$APP.ij.g(a))},JQ=function(a,b){a=GQ(a);return a.length>0?(a=a[0].getBoundingClientRect(),IQ(b)?a.width:a.height):0},KQ=function(a,b){return a.style.transform=b},LQ=function(a,b){a=a.getBoundingClientRect();return $APP.C.h("horizontal",$APP.ij.g(b))?a.width:a.height},MQ=function(a,b,c){switch(a){case "center":return(b-c)/2;case "end":return b-c;default:return 0}},NQ=function(a,b,c,d,e){a=$APP.Tc(a)*(b+c)-d;return $APP.n(e)?"translateX("+$APP.S.g(-a)+"px)":
9
- "translateY("+$APP.S.g(-a)+"px)"},OQ=function(a,b,c){for(var d=0;;)if(d<b){var e=$APP.Tc(b);a[d].style.order=""+$APP.S.g($APP.Sc(d-c+e+b,b)-e);d+=1}else break},PQ=function(a,b){var c=pQ(a);c=$APP.N(c);var d=$APP.H(c,$APP.Vi);c=$APP.H(c,$APP.zi);var e=GQ(a),g=e.length,h=JQ(a,b),k=$APP.Vj.g(b),m=kQ.g(b),p=iQ(lQ.g(b),g);d=LQ(d,b);d=MQ(BQ.g(b),d,h);a.__xScrollChildCount=g;if(g>0){c.style.gap=""+$APP.S.g(k)+"px";if($APP.n(p))return OQ(e,g,m),KQ(c,NQ(g,h,k,d,IQ(b)));for(a=0;;)if(a<g)e[a].style.order="",
10
- a+=1;else break;a=m*(h+k)-d;return KQ(c,IQ(b)?"translateX("+$APP.S.g(-a)+"px)":"translateY("+$APP.S.g(-a)+"px)")}return null},QQ=function(a,b,c){var d=pQ(a);d=$APP.N(d);var e=$APP.H(d,$APP.Vi),g=$APP.H(d,$APP.zi),h=GQ(a),k=h.length,m=JQ(a,b),p=$APP.Vj.g(b),r=IQ(b);a=LQ(e,b);var v=MQ(BQ.g(b),a,m);c=-($APP.Tc(k)*(m+p)-v+c*(m+p));KQ(g,r?"translateX("+$APP.S.g(c)+"px)":"translateY("+$APP.S.g(c)+"px)");HQ()?(OQ(h,k,kQ.g(b)),KQ(g,NQ(k,m,p,v,r))):g.addEventListener("transitionend",function A(y){return $APP.C.h(y.target,
11
- g)?(g.removeEventListener("transitionend",A),g.style.transition="none",OQ(h,k,kQ.g(b)),KQ(g,NQ(k,m,p,v,r)),g.offsetHeight,g.style.transition=""):null})},RQ=function(a,b,c,d){a=pQ(a);var e=$APP.N(a),g=$APP.H(e,oQ);g.innerHTML="";for(var h=0;;)if(h<b){var k=document.createElement("button");k.setAttribute("part","indicator");k.setAttribute("type","button");k.setAttribute("role","tab");k.setAttribute("aria-label","Slide "+$APP.S.g(h+1));k.setAttribute("aria-selected",""+$APP.S.g($APP.C.h(h,c)));k.addEventListener("click",
12
- function(m){return function(){return d.g?d.g(m):d.call(null,m)}}(h,k,b,a,e,g,g));g.appendChild(k);h+=1}else break},SQ=function(a,b){a=pQ(a);a=$APP.N(a);a=$APP.H(a,oQ).children;for(var c=a.length,d=0;;)if(d<c)a[d].setAttribute("aria-selected",""+$APP.S.g($APP.C.h(d,b))),d+=1;else break},TQ=function(a,b,c,d){b=new CustomEvent(b,{detail:$APP.Mg(c),bubbles:!0,composed:!0,cancelable:$APP.J(d)});return a.dispatchEvent(b)},UQ=function(a){var b=$APP.l(a,"__xScrollAutoplayTid");$APP.n(b)&&(clearInterval(b),
13
- a.__xScrollAutoplayTid=null);return null},XQ=function(a){UQ(a);var b=function(){var c=$APP.l(a,"__xScrollModel");return $APP.n(c)?c:FQ(a)}();$APP.n(function(){var c=DQ.g(b);return $APP.n(c)?$APP.q($APP.V.g(b)):c}())&&$APP.ma(a,"__xScrollAutoplayTid",setInterval(function(){if($APP.n(a.isConnected)){var c=GQ(a).length;if(c>0){var d=kQ.g(function(){var g=$APP.l(a,"__xScrollModel");return $APP.n(g)?g:FQ(a)}()),e=function(){var g=$APP.l(a,"__xScrollModel");return $APP.n(g)?g:FQ(a)}();c=jQ(d,1,c,lQ.g(e));
14
- return $APP.O(d,c)?VQ?VQ(a,c,1):WQ.call(null,a,c,1):null}}return null},EQ.g(b)));return null},YQ=function(a){UQ(a);return XQ(a)},WQ=function(a){switch(arguments.length){case 2:return VQ(arguments[0],arguments[1],null);case 3:return VQ(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",arguments.length].join(""));}},VQ=function(a,b,c){var d=function(){var v=$APP.l(a,"__xScrollModel");return $APP.n(v)?v:FQ(a)}(),e=function(){var v=$APP.l(a,"__xScrollChildCount");return $APP.n(v)?
15
- v:GQ(a).length}(),g=kQ.g(d);if(e>0&&$APP.q($APP.V.g(d))){var h=iQ(lQ.g(d),e),k=$APP.n(h)?e<=0?0:$APP.Sc($APP.Sc(b,e)+e,e):e<=0?0:$APP.Ag.h(0,$APP.Bg.h(b,e-1));b=k-g;if($APP.O(k,g)){c=$APP.n(c)?c:b>0?1:-1;var m=e>0&&(c>0&&k<g||c<0&&k>g),p=c>0?"forward":"backward";if($APP.n(function(){var v=!m;return v?v:TQ(a,"x-scroll-loop",new $APP.Q(null,1,[$APP.dj,p],null),!0)}())){TQ(a,"x-scroll-start",new $APP.Q(null,2,[$APP.dj,p,$APP.zk,g],null),!1);d=$APP.zg.m(d,kQ,k);a.__xScrollModel=d;a.setAttribute("active-index",
16
- ""+$APP.S.g(k));$APP.n(h)?QQ(a,d,c):PQ(a,d);SQ(a,k);h=pQ(a);b=$APP.N(h);h=$APP.H(b,$APP.Ei);c=$APP.H(b,$APP.Zg);b=$APP.H(b,$APP.Wh);h.disabled=!mQ(d,e);c.disabled=!nQ(d,e);b.textContent="Slide "+$APP.S.g(k+1)+" of "+$APP.S.g(e);TQ(a,"x-scroll-change",new $APP.Q(null,2,[$APP.zk,k,$APP.ck,g],null),!1);if(HQ())TQ(a,"x-scroll-end",new $APP.Q(null,1,[$APP.zk,k],null),!1);else{e=pQ(a);e=$APP.N(e);var r=$APP.H(e,$APP.zi);r.addEventListener("transitionend",function y(x){return $APP.C.h(x.target,r)?(r.removeEventListener("transitionend",
17
- y),TQ(a,"x-scroll-end",new $APP.Q(null,1,[$APP.zk,k],null),!1)):null})}return YQ(a)}}}return null},ZQ=function(a){var b=function(){var d=$APP.l(a,"__xScrollModel");return $APP.n(d)?d:FQ(a)}(),c=function(){var d=$APP.l(a,"__xScrollChildCount");return $APP.n(d)?d:GQ(a).length}();b=jQ(kQ.g(b),1,c,lQ.g(b));return VQ(a,b,1)},$Q=function(a){var b=function(){var d=$APP.l(a,"__xScrollModel");return $APP.n(d)?d:FQ(a)}(),c=function(){var d=$APP.l(a,"__xScrollChildCount");return $APP.n(d)?d:GQ(a).length}();
18
- b=jQ(kQ.g(b),-1,c,lQ.g(b));return VQ(a,b,-1)},cR=function(a,b){function c(k){return aR.h?aR.h(a,k):aR.call(null,a,k)}var d=function(){var k=$APP.l(a,"__xScrollModel");return $APP.n(k)?k:FQ(a)}();if($APP.n($APP.V.g(d)))return null;var e=pQ(a);e=$APP.N(e);e=$APP.H(e,$APP.zi);var g=IQ(d);e.style.transition="none";UQ(a);var h=function p(m){window.removeEventListener("pointermove",c);window.removeEventListener("pointerup",p);return bR.h?bR.h(a,m):bR.call(null,a,m)};window.addEventListener("pointermove",
19
- c);window.addEventListener("pointerup",h);return $APP.ma(a,"__xScrollDragState",function(){var m={};m.startX=b.clientX;m.startTime=Date.now();m.startY=b.clientY;m.upH=h;m.moveH=c;m.isDragging=!1;m.lastY=b.clientY;m.lastTime=Date.now();m.horiz=g;m.lastX=b.clientX;return m}())},aR=function(a,b){var c=$APP.l(a,"__xScrollDragState");if($APP.n(c)){b.preventDefault();var d=$APP.l(c,"horiz"),e=($APP.n(d)?b.clientX:b.clientY)-($APP.n(d)?$APP.l(c,"startX"):$APP.l(c,"startY"));$APP.q($APP.l(c,"isDragging"))&&
20
- Math.abs(e)>3&&(c.isDragging=!0);if($APP.n($APP.l(c,"isDragging"))){c.lastX=b.clientX;c.lastY=b.clientY;$APP.ma(c,"lastTime",Date.now());b=pQ(a);b=$APP.N(b);var g=$APP.H(b,$APP.Vi);b=$APP.H(b,$APP.zi);var h=function(){var v=$APP.l(a,"__xScrollModel");return $APP.n(v)?v:FQ(a)}(),k=JQ(a,h),m=$APP.Vj.g(h);c=function(){var v=$APP.l(a,"__xScrollChildCount");return $APP.n(v)?v:GQ(a).length}();var p=kQ.g(h),r=iQ(lQ.g(h),c);g=LQ(g,h);g=MQ(BQ.g(h),g,k);k=($APP.n(r)?$APP.Tc(c)*(k+m):p*(k+m))-g;e=($APP.q(r)&&
21
- (e<0&&$APP.C.h(p,c-1)||e>0&&$APP.C.h(p,0))?e*.3:e)-k;return KQ(b,$APP.n(d)?"translateX("+$APP.S.g(e)+"px)":"translateY("+$APP.S.g(e)+"px)")}}return null},bR=function(a,b){var c=$APP.l(a,"__xScrollDragState");if($APP.n(c)){a.__xScrollDragState=null;var d=pQ(a);d=$APP.N(d);$APP.H(d,$APP.zi).style.transition="";if($APP.n($APP.l(c,"isDragging"))){d=$APP.l(c,"horiz");b=($APP.n(d)?b.clientX:b.clientY)-($APP.n(d)?$APP.l(c,"startX"):$APP.l(c,"startY"));c=Date.now()-$APP.l(c,"lastTime");d=c>0?Math.abs(b)/
22
- c:0;c=function(){var k=$APP.l(a,"__xScrollModel");return $APP.n(k)?k:FQ(a)}();var e=pQ(a);e=$APP.N(e);$APP.H(e,$APP.Vi);var g=JQ(a,c),h=function(){var k=$APP.l(a,"__xScrollChildCount");return $APP.n(k)?k:GQ(a).length}();e=kQ.g(c);d=d>.5?b<0?1:-1:Math.abs(b)>.5*g?b<0?1:-1:0;d=d===0?e:jQ(e,d,h,lQ.g(c));$APP.C.h(d,e)?PQ(a,c):VQ(a,d,b<0?1:-1);return YQ(a)}}return null},dR=function(a,b){var c=function(){var e=$APP.l(a,"__xScrollModel");return $APP.n(e)?e:FQ(a)}();if($APP.n($APP.V.g(c)))return null;var d=
23
- b.key;(c=IQ(c))&&$APP.C.h(d,"ArrowLeft")?($Q(a),d=!0):c&&$APP.C.h(d,"ArrowRight")?(ZQ(a),d=!0):!c&&$APP.C.h(d,"ArrowUp")?($Q(a),d=!0):!c&&$APP.C.h(d,"ArrowDown")?(ZQ(a),d=!0):$APP.C.h(d,"Home")?(VQ(a,0,null),d=!0):d=$APP.C.h(d,"End")&&function(){var e=$APP.l(a,"__xScrollChildCount");e=$APP.n(e)?e:GQ(a).length;VQ(a,e-1,null);return!0}();return d?b.preventDefault():null},eR=function(a){var b=function(){var h=$APP.l(a,"__xScrollModel");return $APP.n(h)?h:FQ(a)}(),c=GQ(a).length;a.__xScrollChildCount=
24
- c;if(c>0&&kQ.g(b)>=c){var d=c-1;a.setAttribute("active-index",""+$APP.S.g(d));$APP.ma(a,"__xScrollModel",$APP.zg.m(b,kQ,d))}b=function(){var h=$APP.l(a,"__xScrollModel");return $APP.n(h)?h:FQ(a)}();d=pQ(a);var e=$APP.N(d);d=$APP.H(e,$APP.Ei);var g=$APP.H(e,$APP.Zg);e=$APP.H(e,$APP.Wh);$APP.n(CQ.g(b))&&RQ(a,c,kQ.g(b),function(h){return VQ(a,h,null)});d.disabled=!mQ(b,c);g.disabled=!nQ(b,c);c>0&&(e.textContent="Slide "+$APP.S.g(kQ.g(b)+1)+" of "+$APP.S.g(c));return PQ(a,b)},fR=function(a){function b(){return YQ(a)}
25
- function c(){return UQ(a)}function d(){return YQ(a)}function e(){return UQ(a)}function g(){return $APP.n(document.hidden)?UQ(a):YQ(a)}function h(){return eR(a)}function k(D){return cR(a,D)}function m(D){return dR(a,D)}function p(){return ZQ(a)}function r(){return $Q(a)}var v=pQ(a),x=$APP.N(v);v=$APP.H(x,$APP.Ei);var y=$APP.H(x,$APP.Zg),A=$APP.H(x,$APP.Si);x=$APP.H(x,$APP.Vi);v.addEventListener("click",r);y.addEventListener("click",p);a.addEventListener("keydown",m);x.addEventListener("pointerdown",
26
- k);A.addEventListener("slotchange",h);document.addEventListener("visibilitychange",g);a.addEventListener("mouseenter",e);a.addEventListener("mouseleave",d);a.addEventListener("focusin",c);a.addEventListener("focusout",b);$APP.ma(a,"__xScrollHandlers",{slot:h,focusin:c,keydown:m,vis:g,enter:e,next:p,leave:d,prev:r,pdown:k,focusout:b})},gR=function(a){UQ(a);var b=$APP.l(a,"__xScrollHandlers"),c=$APP.l(a,"__xScrollRefs");if($APP.n($APP.n(b)?c:b)){var d=$APP.Ei.g(c),e=$APP.Zg.g(c),g=$APP.Si.g(c);c=$APP.Vi.g(c);
27
- var h=$APP.l(b,"prev");$APP.n(h)&&d.removeEventListener("click",h);d=$APP.l(b,"next");$APP.n(d)&&e.removeEventListener("click",d);e=$APP.l(b,"keydown");$APP.n(e)&&a.removeEventListener("keydown",e);e=$APP.l(b,"pdown");$APP.n(e)&&c.removeEventListener("pointerdown",e);c=$APP.l(a,"__xScrollDragState");$APP.n(c)&&(e=$APP.l(c,"moveH"),$APP.n(e)&&window.removeEventListener("pointermove",e),c=$APP.l(c,"upH"),$APP.n(c)&&window.removeEventListener("pointerup",c),a.__xScrollDragState=null);c=$APP.l(b,"slot");
28
- $APP.n(c)&&g.removeEventListener("slotchange",c);g=$APP.l(b,"vis");$APP.n(g)&&document.removeEventListener("visibilitychange",g);g=$APP.l(b,"enter");$APP.n(g)&&a.removeEventListener("mouseenter",g);g=$APP.l(b,"leave");$APP.n(g)&&a.removeEventListener("mouseleave",g);g=$APP.l(b,"focusin");$APP.n(g)&&a.removeEventListener("focusin",g);b=$APP.l(b,"focusout");$APP.n(b)&&a.removeEventListener("focusout",b)}a.__xScrollHandlers=null},hR=function(a){var b=$APP.l(a,"__xScrollResizeObs");$APP.n(b)&&b.disconnect();
29
- b=pQ(a);b=$APP.N(b);b=$APP.H(b,$APP.Vi);var c=new ResizeObserver(function(){if($APP.n(a.isConnected)){var d=$APP.l(a,"__xScrollModel");d=$APP.n(d)?d:FQ(a);return PQ(a,d)}return null});c.observe(b);a.__xScrollResizeObs=c},iR=function(a,b){b=$APP.N(b);var c=$APP.H(b,$APP.ij),d=$APP.H(b,AQ),e=$APP.H(b,CQ),g=$APP.H(b,$APP.V),h=$APP.H(b,$APP.W),k=$APP.H(b,kQ),m=pQ(a);m=$APP.N(m);var p=$APP.H(m,$APP.Vi),r=$APP.H(m,$APP.Ei),v=$APP.H(m,$APP.Zg);m=$APP.H(m,$APP.Wh);var x=function(){var y=$APP.l(a,"__xScrollChildCount");
30
- return $APP.n(y)?y:GQ(a).length}();a.setAttribute("data-mode",c);$APP.n(d)?a.removeAttribute("data-hide-controls"):a.setAttribute("data-hide-controls","");$APP.u(h)?p.setAttribute("aria-label",h):p.removeAttribute("aria-label");r.disabled=!mQ(b,x);v.disabled=!nQ(b,x);a.tabIndex=$APP.n(g)?-1:0;$APP.n(e)&&RQ(a,x,k,function(y){return VQ(a,y,null)});$APP.n(e)||(c=pQ(a),c=$APP.N(c),$APP.H(c,oQ).innerHTML="");x>0&&(m.textContent="Slide "+$APP.S.g(k+1)+" of "+$APP.S.g(x));PQ(a,b);a.__xScrollModel=b},jR=
31
- function(a){var b=FQ(a);$APP.O($APP.l(a,"__xScrollModel"),b)&&iR(a,b)},kR=function(a){Object.defineProperty(a,"mode",{get:function(){var b=this.getAttribute("mode");return $APP.n(b)?b:"horizontal"},set:function(b){return $APP.n(b)?this.setAttribute("mode",""+$APP.S.g(b)):this.removeAttribute("mode")},enumerable:!0,configurable:!0});Object.defineProperty(a,"snap",{get:function(){var b=this.getAttribute("snap");return $APP.n(b)?b:"none"},set:function(b){return $APP.n(b)?this.setAttribute("snap",""+
32
- $APP.S.g(b)):this.removeAttribute("snap")},enumerable:!0,configurable:!0});Object.defineProperty(a,"loop",{get:function(){return this.hasAttribute("loop")},set:function(b){return $APP.n(b)?this.setAttribute("loop",""):this.removeAttribute("loop")},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoPlay",{get:function(){return this.hasAttribute("auto-play")},set:function(b){return $APP.n(b)?this.setAttribute("auto-play",""):this.removeAttribute("auto-play")},enumerable:!0,configurable:!0});
33
- Object.defineProperty(a,"interval",{get:function(){var b=this.getAttribute("interval");return $APP.Ag.h(500,hQ(b,5E3))},set:function(b){return b==null?this.removeAttribute("interval"):this.setAttribute("interval",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"showControls",{get:function(){return gQ(this.getAttribute("show-controls"))},set:function(b){return $APP.n(b)?this.removeAttribute("show-controls"):this.setAttribute("show-controls","false")},enumerable:!0,configurable:!0});
34
- Object.defineProperty(a,"showIndicators",{get:function(){return this.hasAttribute("show-indicators")},set:function(b){return $APP.n(b)?this.setAttribute("show-indicators",""):this.removeAttribute("show-indicators")},enumerable:!0,configurable:!0});Object.defineProperty(a,"activeIndex",{get:function(){var b=this.getAttribute("active-index");return hQ(b,0)},set:function(b){return b==null?this.removeAttribute("active-index"):this.setAttribute("active-index",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});
35
- Object.defineProperty(a,"gap",{get:function(){var b=this.getAttribute("gap");return hQ(b,0)},set:function(b){return b==null?this.removeAttribute("gap"):this.setAttribute("gap",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=
36
- this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},mR=function(){var a=class extends HTMLElement{};a.observedAttributes=lR;a.prototype.connectedCallback=function(){pQ(this);gR(this);fR(this);hR(this);jR(this);XQ(this);return null};a.prototype.disconnectedCallback=function(){gR(this);var c=$APP.l(this,"__xScrollResizeObs");$APP.n(c)&&(c.disconnect(),
37
- this.__xScrollResizeObs=null);c=GQ(this);for(var d=c.length,e=0;;)if(e<d)c[e].style.order="",e+=1;else break;return null};a.prototype.attributeChangedCallback=function(c,d,e){$APP.O(d,e)&&(jR(this),d=this.isConnected,c=$APP.n(d)?$APP.C.h(c,"auto-play")||$APP.C.h(c,"interval")||$APP.C.h(c,"disabled"):d,$APP.n(c)&&YQ(this));return null};var b=a.prototype;kR(b);b.goTo=function(c){return VQ(this,c,null)};b.next=function(){return ZQ(this)};b.prev=function(){return $Q(this)};return a},nR=function(){$APP.n(customElements.get("x-scroll"))||
38
- customElements.define("x-scroll",mR());return null},sQ=new $APP.M(null,"loop-attr","loop-attr",-132212822),BQ=new $APP.M(null,"snap","snap",-51714904),vQ=new $APP.M(null,"interval-raw","interval-raw",443967609),wQ=new $APP.M(null,"snap-raw","snap-raw",828444409),EQ=new $APP.M(null,"interval","interval",1708495417),xQ=new $APP.M(null,"active-index-raw","active-index-raw",1461571359),tQ=new $APP.M(null,"gap-raw","gap-raw",1566843410),lQ=new $APP.M(null,"loop?","loop?",457687798),DQ=new $APP.M(null,
39
- "auto-play?","auto-play?",385278451),AQ=new $APP.M(null,"show-controls?","show-controls?",1318868354),uQ=new $APP.M(null,"show-indicators-attr","show-indicators-attr",1148535895),qQ=new $APP.M(null,"show-controls-attr","show-controls-attr",-894641087),rQ=new $APP.M(null,"auto-play-attr","auto-play-attr",329299716),kQ=new $APP.M(null,"active-index","active-index",864399296),CQ=new $APP.M(null,"show-indicators?","show-indicators?",-370587412),oQ=new $APP.M(null,"indicators","indicators",1312373003);var lR="mode snap loop auto-play interval show-controls show-indicators active-index gap disabled label".split(" ");
40
- $APP.gf([$APP.Fj,new $APP.M(null,"showIndicators","showIndicators",1780978055),BQ,$APP.zk,$APP.ij,new $APP.M(null,"showControls","showControls",1591218925),$APP.Zj,$APP.W,$APP.Vj,new $APP.M(null,"autoPlay","autoPlay",-561263241),EQ],[new $APP.Q(null,1,[$APP.Z,$APP.Yj],null),new $APP.Q(null,1,[$APP.Z,$APP.Yj],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.U],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.Yj],null),new $APP.Q(null,1,[$APP.Z,
41
- $APP.Yj],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.U],null),new $APP.Q(null,1,[$APP.Z,$APP.Yj],null),new $APP.Q(null,1,[$APP.Z,$APP.U],null)]);
42
- $APP.zd(["x-scroll-change",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.zk,$APP.U,$APP.ck,$APP.U],null),$APP.Dj,!1],null),"x-scroll-start",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.dj,$APP.X,$APP.zk,$APP.U],null),$APP.Dj,!1],null),"x-scroll-end",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,1,[$APP.zk,$APP.U],null),$APP.Dj,!1],null),"x-scroll-loop",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,1,[$APP.dj,$APP.X],null),$APP.Dj,!0],null)]);
43
- var zQ=new $APP.R(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),yQ=new $APP.R(null,new $APP.Q(null,4,["none",null,"center",null,"start",null,"end",null],null),null);$APP.ja("baredom.exports.x_scroll.init",nR);export const init=nR;
5
+ "Slide indicators");p.setAttribute("part","live");p.setAttribute("aria-live","polite");p.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(h);b.appendChild(k);b.appendChild(m);b.appendChild(p);a.__xScrollRefs=new $APP.P(null,8,[$APP.bi,b,$APP.Hi,d,$APP.zi,e,$APP.Fi,g,$APP.Ci,h,$APP.wh,k,FY,m,$APP.$h,p],null);return $APP.l(a,"__xScrollRefs")},UY=function(a){a=$APP.Q([HY,$APP.Oh,IY,$APP.Bk,JY,$APP.pi,KY,LY,$APP.Ai,MY,$APP.uk],[a.getAttribute("show-controls"),a.getAttribute("label"),
6
+ $APP.r(a.hasAttribute("auto-play"))?"":null,a.getAttribute("mode"),$APP.r(a.hasAttribute("loop"))?"":null,a.getAttribute("gap"),$APP.r(a.hasAttribute("show-indicators"))?"":null,a.getAttribute("interval"),$APP.r(a.hasAttribute("disabled"))?"":null,a.getAttribute("snap"),a.getAttribute("active-index")]);var b=$APP.N(a),c=$APP.G(b,MY);a=$APP.G(b,LY);var d=$APP.G(b,$APP.Ai),e=$APP.G(b,$APP.uk),g=$APP.G(b,HY),h=$APP.G(b,$APP.Oh),k=$APP.G(b,IY),m=$APP.G(b,$APP.Bk),p=$APP.G(b,JY),q=$APP.G(b,$APP.pi);b=
7
+ $APP.G(b,KY);e=zY(e,0);g=yY(g);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.J(NY,c)?c:"none";m=typeof m==="string"?m.trim().toLowerCase():null;m=$APP.J(OY,m)?m:"horizontal";return $APP.Q([$APP.uj,PY,QY,$APP.Ri,RY,SY,$APP.T,$APP.oj,CY,TY,$APP.W],[e,g,c,m,b!=null,k!=null,$APP.r(h)?h:"",zY(q,0),p!=null,$APP.Yg.i(500,zY(a,5E3)),d!=null])},VY=function(a){a=GY(a);a=$APP.N(a);return $APP.G(a,$APP.Fi).assignedElements()},WY=function(){return $APP.I(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},
8
+ XY=function(a){return $APP.D.i("horizontal",$APP.Ri.g(a))},YY=function(a,b){a=VY(a);return a.length>0?(a=a[0].getBoundingClientRect(),XY(b)?a.width:a.height):0},ZY=function(a,b){return a.style.transform=b},$Y=function(a,b){a=a.getBoundingClientRect();return $APP.D.i("horizontal",$APP.Ri.g(b))?a.width:a.height},aZ=function(a,b,c){switch(a){case "center":return(b-c)/2;case "end":return b-c;default:return 0}},bZ=function(a,b,c,d,e){a=$APP.id(a)*(b+c)-d;return $APP.r(e)?"translateX("+$APP.S.g(-a)+"px)":
9
+ "translateY("+$APP.S.g(-a)+"px)"},cZ=function(a,b,c){for(var d=0;;)if(d<b){var e=$APP.id(b);a[d].style.order=""+$APP.S.g($APP.hd(d-c+e+b,b)-e);d+=1}else break},dZ=function(a,b){var c=GY(a);c=$APP.N(c);var d=$APP.G(c,$APP.Hi);c=$APP.G(c,$APP.zi);var e=VY(a),g=e.length,h=YY(a,b),k=$APP.oj.g(b),m=$APP.uj.g(b),p=AY(CY.g(b),g);d=$Y(d,b);d=aZ(QY.g(b),d,h);a.__xScrollChildCount=g;if(g>0){c.style.gap=""+$APP.S.g(k)+"px";if($APP.r(p))return cZ(e,g,m),ZY(c,bZ(g,h,k,d,XY(b)));for(a=0;;)if(a<g)e[a].style.order=
10
+ "",a+=1;else break;a=m*(h+k)-d;return ZY(c,XY(b)?"translateX("+$APP.S.g(-a)+"px)":"translateY("+$APP.S.g(-a)+"px)")}return null},eZ=function(a,b,c){var d=GY(a);d=$APP.N(d);var e=$APP.G(d,$APP.Hi),g=$APP.G(d,$APP.zi),h=VY(a),k=h.length,m=YY(a,b),p=$APP.oj.g(b),q=XY(b);a=$Y(e,b);var w=aZ(QY.g(b),a,m);c=-($APP.id(k)*(m+p)-w+c*(m+p));ZY(g,q?"translateX("+$APP.S.g(c)+"px)":"translateY("+$APP.S.g(c)+"px)");WY()?(cZ(h,k,$APP.uj.g(b)),ZY(g,bZ(k,m,p,w,q))):g.addEventListener("transitionend",function A(y){return $APP.D.i(y.target,
11
+ g)?(g.removeEventListener("transitionend",A),g.style.transition="none",cZ(h,k,$APP.uj.g(b)),ZY(g,bZ(k,m,p,w,q)),g.offsetHeight,g.style.transition=""):null})},fZ=function(a,b,c,d){a=GY(a);var e=$APP.N(a),g=$APP.G(e,FY);g.innerHTML="";for(var h=0;;)if(h<b){var k=document.createElement("button");k.setAttribute("part","indicator");k.setAttribute("type","button");k.setAttribute("role","tab");k.setAttribute("aria-label","Slide "+$APP.S.g(h+1));k.setAttribute("aria-selected",""+$APP.S.g($APP.D.i(h,c)));
12
+ k.addEventListener("click",function(m){return function(){return d.g?d.g(m):d.call(null,m)}}(h,k,b,a,e,g,g));g.appendChild(k);h+=1}else break},gZ=function(a,b){a=GY(a);a=$APP.N(a);a=$APP.G(a,FY).children;for(var c=a.length,d=0;;)if(d<c)a[d].setAttribute("aria-selected",""+$APP.S.g($APP.D.i(d,b))),d+=1;else break},hZ=function(a,b,c,d){b=new CustomEvent(b,{detail:$APP.nh(c),bubbles:!0,composed:!0,cancelable:$APP.I(d)});return a.dispatchEvent(b)},iZ=function(a){var b=$APP.l(a,"__xScrollAutoplayTid");
13
+ $APP.r(b)&&(clearInterval(b),a.__xScrollAutoplayTid=null);return null},lZ=function(a){iZ(a);var b=function(){var c=$APP.l(a,"__xScrollModel");return $APP.r(c)?c:UY(a)}();$APP.r(function(){var c=SY.g(b);return $APP.r(c)?$APP.t($APP.W.g(b)):c}())&&$APP.n(a,"__xScrollAutoplayTid",setInterval(function(){if($APP.r(a.isConnected)){var c=VY(a).length;if(c>0){var d=$APP.uj.g(function(){var g=$APP.l(a,"__xScrollModel");return $APP.r(g)?g:UY(a)}()),e=function(){var g=$APP.l(a,"__xScrollModel");return $APP.r(g)?
14
+ g:UY(a)}();c=BY(d,1,c,CY.g(e));return $APP.O(d,c)?jZ?jZ(a,c,1):kZ.call(null,a,c,1):null}}return null},TY.g(b)));return null},mZ=function(a){iZ(a);return lZ(a)},kZ=function(a){switch(arguments.length){case 2:return jZ(arguments[0],arguments[1],null);case 3:return jZ(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",arguments.length].join(""));}},jZ=function(a,b,c){var d=function(){var w=$APP.l(a,"__xScrollModel");return $APP.r(w)?w:UY(a)}(),e=function(){var w=$APP.l(a,
15
+ "__xScrollChildCount");return $APP.r(w)?w:VY(a).length}(),g=$APP.uj.g(d);if(e>0&&$APP.t($APP.W.g(d))){var h=AY(CY.g(d),e),k=$APP.r(h)?e<=0?0:$APP.hd($APP.hd(b,e)+e,e):e<=0?0:$APP.Yg.i(0,$APP.Zg.i(b,e-1));b=k-g;if($APP.O(k,g)){c=$APP.r(c)?c:b>0?1:-1;var m=e>0&&(c>0&&k<g||c<0&&k>g),p=c>0?"forward":"backward";if($APP.r(function(){var w=!m;return w?w:hZ(a,"x-scroll-loop",new $APP.P(null,1,[$APP.Ni,p],null),!0)}())){hZ(a,"x-scroll-start",new $APP.P(null,2,[$APP.Ni,p,$APP.Cj,g],null),!1);d=$APP.Wg.o(d,
16
+ $APP.uj,k);a.__xScrollModel=d;a.setAttribute("active-index",""+$APP.S.g(k));$APP.r(h)?eZ(a,d,c):dZ(a,d);gZ(a,k);h=GY(a);b=$APP.N(h);h=$APP.G(b,$APP.Ci);c=$APP.G(b,$APP.wh);b=$APP.G(b,$APP.$h);h.disabled=!DY(d,e);c.disabled=!EY(d,e);b.textContent="Slide "+$APP.S.g(k+1)+" of "+$APP.S.g(e);hZ(a,"x-scroll-change",new $APP.P(null,2,[$APP.Cj,k,$APP.rj,g],null),!1);if(WY())hZ(a,"x-scroll-end",new $APP.P(null,1,[$APP.Cj,k],null),!1);else{e=GY(a);e=$APP.N(e);var q=$APP.G(e,$APP.zi);q.addEventListener("transitionend",
17
+ function y(x){return $APP.D.i(x.target,q)?(q.removeEventListener("transitionend",y),hZ(a,"x-scroll-end",new $APP.P(null,1,[$APP.Cj,k],null),!1)):null})}return mZ(a)}}}return null},nZ=function(a){var b=function(){var d=$APP.l(a,"__xScrollModel");return $APP.r(d)?d:UY(a)}(),c=function(){var d=$APP.l(a,"__xScrollChildCount");return $APP.r(d)?d:VY(a).length}();b=BY($APP.uj.g(b),1,c,CY.g(b));return jZ(a,b,1)},oZ=function(a){var b=function(){var d=$APP.l(a,"__xScrollModel");return $APP.r(d)?d:UY(a)}(),
18
+ c=function(){var d=$APP.l(a,"__xScrollChildCount");return $APP.r(d)?d:VY(a).length}();b=BY($APP.uj.g(b),-1,c,CY.g(b));return jZ(a,b,-1)},rZ=function(a,b){function c(k){return pZ.i?pZ.i(a,k):pZ.call(null,a,k)}var d=function(){var k=$APP.l(a,"__xScrollModel");return $APP.r(k)?k:UY(a)}();if($APP.r($APP.W.g(d)))return null;var e=GY(a);e=$APP.N(e);e=$APP.G(e,$APP.zi);var g=XY(d);e.style.transition="none";iZ(a);var h=function p(m){window.removeEventListener("pointermove",c);window.removeEventListener("pointerup",
19
+ p);return qZ.i?qZ.i(a,m):qZ.call(null,a,m)};window.addEventListener("pointermove",c);window.addEventListener("pointerup",h);return $APP.n(a,"__xScrollDragState",function(){var m={};m.startX=b.clientX;m.startTime=Date.now();m.startY=b.clientY;m.upH=h;m.moveH=c;m.isDragging=!1;m.lastY=b.clientY;m.lastTime=Date.now();m.horiz=g;m.lastX=b.clientX;return m}())},pZ=function(a,b){var c=$APP.l(a,"__xScrollDragState");if($APP.r(c)){b.preventDefault();var d=$APP.l(c,"horiz"),e=($APP.r(d)?b.clientX:b.clientY)-
20
+ ($APP.r(d)?$APP.l(c,"startX"):$APP.l(c,"startY"));$APP.t($APP.l(c,"isDragging"))&&Math.abs(e)>3&&(c.isDragging=!0);if($APP.r($APP.l(c,"isDragging"))){c.lastX=b.clientX;c.lastY=b.clientY;$APP.n(c,"lastTime",Date.now());b=GY(a);b=$APP.N(b);var g=$APP.G(b,$APP.Hi);b=$APP.G(b,$APP.zi);var h=function(){var w=$APP.l(a,"__xScrollModel");return $APP.r(w)?w:UY(a)}(),k=YY(a,h),m=$APP.oj.g(h);c=function(){var w=$APP.l(a,"__xScrollChildCount");return $APP.r(w)?w:VY(a).length}();var p=$APP.uj.g(h),q=AY(CY.g(h),
21
+ c);g=$Y(g,h);g=aZ(QY.g(h),g,k);k=($APP.r(q)?$APP.id(c)*(k+m):p*(k+m))-g;e=($APP.t(q)&&(e<0&&$APP.D.i(p,c-1)||e>0&&$APP.D.i(p,0))?e*.3:e)-k;return ZY(b,$APP.r(d)?"translateX("+$APP.S.g(e)+"px)":"translateY("+$APP.S.g(e)+"px)")}}return null},qZ=function(a,b){var c=$APP.l(a,"__xScrollDragState");if($APP.r(c)){a.__xScrollDragState=null;var d=GY(a);d=$APP.N(d);$APP.G(d,$APP.zi).style.transition="";if($APP.r($APP.l(c,"isDragging"))){d=$APP.l(c,"horiz");b=($APP.r(d)?b.clientX:b.clientY)-($APP.r(d)?$APP.l(c,
22
+ "startX"):$APP.l(c,"startY"));c=Date.now()-$APP.l(c,"lastTime");d=c>0?Math.abs(b)/c:0;c=function(){var k=$APP.l(a,"__xScrollModel");return $APP.r(k)?k:UY(a)}();var e=GY(a);e=$APP.N(e);$APP.G(e,$APP.Hi);var g=YY(a,c),h=function(){var k=$APP.l(a,"__xScrollChildCount");return $APP.r(k)?k:VY(a).length}();e=$APP.uj.g(c);d=d>.5?b<0?1:-1:Math.abs(b)>.5*g?b<0?1:-1:0;d=d===0?e:BY(e,d,h,CY.g(c));$APP.D.i(d,e)?dZ(a,c):jZ(a,d,b<0?1:-1);return mZ(a)}}return null},sZ=function(a,b){var c=function(){var e=$APP.l(a,
23
+ "__xScrollModel");return $APP.r(e)?e:UY(a)}();if($APP.r($APP.W.g(c)))return null;var d=b.key;(c=XY(c))&&$APP.D.i(d,"ArrowLeft")?(oZ(a),d=!0):c&&$APP.D.i(d,"ArrowRight")?(nZ(a),d=!0):!c&&$APP.D.i(d,"ArrowUp")?(oZ(a),d=!0):!c&&$APP.D.i(d,"ArrowDown")?(nZ(a),d=!0):$APP.D.i(d,"Home")?(jZ(a,0,null),d=!0):d=$APP.D.i(d,"End")&&function(){var e=$APP.l(a,"__xScrollChildCount");e=$APP.r(e)?e:VY(a).length;jZ(a,e-1,null);return!0}();return d?b.preventDefault():null},tZ=function(a){var b=function(){var h=$APP.l(a,
24
+ "__xScrollModel");return $APP.r(h)?h:UY(a)}(),c=VY(a).length;a.__xScrollChildCount=c;if(c>0&&$APP.uj.g(b)>=c){var d=c-1;a.setAttribute("active-index",""+$APP.S.g(d));$APP.n(a,"__xScrollModel",$APP.Wg.o(b,$APP.uj,d))}b=function(){var h=$APP.l(a,"__xScrollModel");return $APP.r(h)?h:UY(a)}();d=GY(a);var e=$APP.N(d);d=$APP.G(e,$APP.Ci);var g=$APP.G(e,$APP.wh);e=$APP.G(e,$APP.$h);$APP.r(RY.g(b))&&fZ(a,c,$APP.uj.g(b),function(h){return jZ(a,h,null)});d.disabled=!DY(b,c);g.disabled=!EY(b,c);c>0&&(e.textContent=
25
+ "Slide "+$APP.S.g($APP.uj.g(b)+1)+" of "+$APP.S.g(c));return dZ(a,b)},uZ=function(a){function b(){return mZ(a)}function c(){return iZ(a)}function d(){return mZ(a)}function e(){return iZ(a)}function g(){return $APP.r(document.hidden)?iZ(a):mZ(a)}function h(){return tZ(a)}function k(C){return rZ(a,C)}function m(C){return sZ(a,C)}function p(){return nZ(a)}function q(){return oZ(a)}var w=GY(a),x=$APP.N(w);w=$APP.G(x,$APP.Ci);var y=$APP.G(x,$APP.wh),A=$APP.G(x,$APP.Fi);x=$APP.G(x,$APP.Hi);w.addEventListener("click",
26
+ q);y.addEventListener("click",p);a.addEventListener("keydown",m);x.addEventListener("pointerdown",k);A.addEventListener("slotchange",h);document.addEventListener("visibilitychange",g);a.addEventListener("mouseenter",e);a.addEventListener("mouseleave",d);a.addEventListener("focusin",c);a.addEventListener("focusout",b);$APP.n(a,"__xScrollHandlers",{slot:h,focusin:c,keydown:m,vis:g,enter:e,next:p,leave:d,prev:q,pdown:k,focusout:b})},vZ=function(a){iZ(a);var b=$APP.l(a,"__xScrollHandlers"),c=$APP.l(a,
27
+ "__xScrollRefs");if($APP.r($APP.r(b)?c:b)){var d=$APP.Ci.g(c),e=$APP.wh.g(c),g=$APP.Fi.g(c);c=$APP.Hi.g(c);var h=$APP.l(b,"prev");$APP.r(h)&&d.removeEventListener("click",h);d=$APP.l(b,"next");$APP.r(d)&&e.removeEventListener("click",d);e=$APP.l(b,"keydown");$APP.r(e)&&a.removeEventListener("keydown",e);e=$APP.l(b,"pdown");$APP.r(e)&&c.removeEventListener("pointerdown",e);c=$APP.l(a,"__xScrollDragState");$APP.r(c)&&(e=$APP.l(c,"moveH"),$APP.r(e)&&window.removeEventListener("pointermove",e),c=$APP.l(c,
28
+ "upH"),$APP.r(c)&&window.removeEventListener("pointerup",c),a.__xScrollDragState=null);c=$APP.l(b,"slot");$APP.r(c)&&g.removeEventListener("slotchange",c);g=$APP.l(b,"vis");$APP.r(g)&&document.removeEventListener("visibilitychange",g);g=$APP.l(b,"enter");$APP.r(g)&&a.removeEventListener("mouseenter",g);g=$APP.l(b,"leave");$APP.r(g)&&a.removeEventListener("mouseleave",g);g=$APP.l(b,"focusin");$APP.r(g)&&a.removeEventListener("focusin",g);b=$APP.l(b,"focusout");$APP.r(b)&&a.removeEventListener("focusout",
29
+ b)}a.__xScrollHandlers=null},wZ=function(a){var b=$APP.l(a,"__xScrollResizeObs");$APP.r(b)&&b.disconnect();b=GY(a);b=$APP.N(b);b=$APP.G(b,$APP.Hi);var c=new ResizeObserver(function(){if($APP.r(a.isConnected)){var d=$APP.l(a,"__xScrollModel");d=$APP.r(d)?d:UY(a);return dZ(a,d)}return null});c.observe(b);a.__xScrollResizeObs=c},xZ=function(a,b){b=$APP.N(b);var c=$APP.G(b,$APP.Ri),d=$APP.G(b,PY),e=$APP.G(b,RY),g=$APP.G(b,$APP.W),h=$APP.G(b,$APP.T),k=$APP.G(b,$APP.uj),m=GY(a);m=$APP.N(m);var p=$APP.G(m,
30
+ $APP.Hi),q=$APP.G(m,$APP.Ci),w=$APP.G(m,$APP.wh);m=$APP.G(m,$APP.$h);var x=function(){var y=$APP.l(a,"__xScrollChildCount");return $APP.r(y)?y:VY(a).length}();a.setAttribute("data-mode",c);$APP.r(d)?a.removeAttribute("data-hide-controls"):a.setAttribute("data-hide-controls","");$APP.u(h)?p.setAttribute("aria-label",h):p.removeAttribute("aria-label");q.disabled=!DY(b,x);w.disabled=!EY(b,x);a.tabIndex=$APP.r(g)?-1:0;$APP.r(e)&&fZ(a,x,k,function(y){return jZ(a,y,null)});$APP.r(e)||(c=GY(a),c=$APP.N(c),
31
+ $APP.G(c,FY).innerHTML="");x>0&&(m.textContent="Slide "+$APP.S.g(k+1)+" of "+$APP.S.g(x));dZ(a,b);a.__xScrollModel=b},yZ=function(a){var b=UY(a);$APP.O($APP.l(a,"__xScrollModel"),b)&&xZ(a,b)},zZ=function(a){Object.defineProperty(a,"mode",{get:function(){var b=this.getAttribute("mode");return $APP.r(b)?b:"horizontal"},set:function(b){return $APP.r(b)?this.setAttribute("mode",""+$APP.S.g(b)):this.removeAttribute("mode")},enumerable:!0,configurable:!0});Object.defineProperty(a,"snap",{get:function(){var b=
32
+ this.getAttribute("snap");return $APP.r(b)?b:"none"},set:function(b){return $APP.r(b)?this.setAttribute("snap",""+$APP.S.g(b)):this.removeAttribute("snap")},enumerable:!0,configurable:!0});Object.defineProperty(a,"loop",{get:function(){return this.hasAttribute("loop")},set:function(b){return $APP.r(b)?this.setAttribute("loop",""):this.removeAttribute("loop")},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoPlay",{get:function(){return this.hasAttribute("auto-play")},set:function(b){return $APP.r(b)?
33
+ this.setAttribute("auto-play",""):this.removeAttribute("auto-play")},enumerable:!0,configurable:!0});Object.defineProperty(a,"interval",{get:function(){var b=this.getAttribute("interval");return $APP.Yg.i(500,zY(b,5E3))},set:function(b){return b==null?this.removeAttribute("interval"):this.setAttribute("interval",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"showControls",{get:function(){return yY(this.getAttribute("show-controls"))},set:function(b){return $APP.r(b)?this.removeAttribute("show-controls"):
34
+ this.setAttribute("show-controls","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showIndicators",{get:function(){return this.hasAttribute("show-indicators")},set:function(b){return $APP.r(b)?this.setAttribute("show-indicators",""):this.removeAttribute("show-indicators")},enumerable:!0,configurable:!0});Object.defineProperty(a,"activeIndex",{get:function(){var b=this.getAttribute("active-index");return zY(b,0)},set:function(b){return b==null?this.removeAttribute("active-index"):
35
+ this.setAttribute("active-index",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"gap",{get:function(){var b=this.getAttribute("gap");return zY(b,0)},set:function(b){return b==null?this.removeAttribute("gap"):this.setAttribute("gap",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.r(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,
36
+ configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.r(b)?b:""},set:function(b){return $APP.r($APP.r(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},BZ=function(){var a=class extends HTMLElement{};a.observedAttributes=AZ;a.prototype.connectedCallback=function(){GY(this);vZ(this);uZ(this);wZ(this);yZ(this);lZ(this);return null};a.prototype.disconnectedCallback=function(){vZ(this);
37
+ var c=$APP.l(this,"__xScrollResizeObs");$APP.r(c)&&(c.disconnect(),this.__xScrollResizeObs=null);c=VY(this);for(var d=c.length,e=0;;)if(e<d)c[e].style.order="",e+=1;else break;return null};a.prototype.attributeChangedCallback=function(c,d,e){$APP.O(d,e)&&(yZ(this),d=this.isConnected,c=$APP.r(d)?$APP.D.i(c,"auto-play")||$APP.D.i(c,"interval")||$APP.D.i(c,"disabled"):d,$APP.r(c)&&mZ(this));return null};var b=a.prototype;zZ(b);b.goTo=function(c){return jZ(this,c,null)};b.next=function(){return nZ(this)};
38
+ b.prev=function(){return oZ(this)};return a},CZ=function(){$APP.r(customElements.get("x-scroll"))||customElements.define("x-scroll",BZ());return null},QY=new $APP.M(null,"snap","snap",-51714904),LY=new $APP.M(null,"interval-raw","interval-raw",443967609),MY=new $APP.M(null,"snap-raw","snap-raw",828444409),SY=new $APP.M(null,"auto-play?","auto-play?",385278451),PY=new $APP.M(null,"show-controls?","show-controls?",1318868354),KY=new $APP.M(null,"show-indicators-attr","show-indicators-attr",1148535895),
39
+ HY=new $APP.M(null,"show-controls-attr","show-controls-attr",-894641087),JY=new $APP.M(null,"loop-attr","loop-attr",-132212822),TY=new $APP.M(null,"interval","interval",1708495417),CY=new $APP.M(null,"loop?","loop?",457687798),IY=new $APP.M(null,"auto-play-attr","auto-play-attr",329299716),RY=new $APP.M(null,"show-indicators?","show-indicators?",-370587412),FY=new $APP.M(null,"indicators","indicators",1312373003);var AZ="mode snap loop auto-play interval show-controls show-indicators active-index gap disabled label".split(" ");
40
+ $APP.Q([$APP.gj,new $APP.M(null,"showIndicators","showIndicators",1780978055),QY,$APP.Cj,$APP.Ri,new $APP.M(null,"showControls","showControls",1591218925),$APP.zl,$APP.T,$APP.oj,new $APP.M(null,"autoPlay","autoPlay",-561263241),TY],[new $APP.P(null,1,[$APP.Z,$APP.qj],null),new $APP.P(null,1,[$APP.Z,$APP.qj],null),new $APP.P(null,1,[$APP.Z,$APP.Y],null),new $APP.P(null,1,[$APP.Z,$APP.V],null),new $APP.P(null,1,[$APP.Z,$APP.Y],null),new $APP.P(null,1,[$APP.Z,$APP.qj],null),new $APP.P(null,1,[$APP.Z,
41
+ $APP.qj],null),new $APP.P(null,1,[$APP.Z,$APP.Y],null),new $APP.P(null,1,[$APP.Z,$APP.V],null),new $APP.P(null,1,[$APP.Z,$APP.qj],null),new $APP.P(null,1,[$APP.Z,$APP.V],null)]);
42
+ $APP.Sd(["x-scroll-change",new $APP.P(null,2,[$APP.U,new $APP.P(null,2,[$APP.Cj,$APP.V,$APP.rj,$APP.V],null),$APP.kl,!1],null),"x-scroll-start",new $APP.P(null,2,[$APP.U,new $APP.P(null,2,[$APP.Ni,$APP.Y,$APP.Cj,$APP.V],null),$APP.kl,!1],null),"x-scroll-end",new $APP.P(null,2,[$APP.U,new $APP.P(null,1,[$APP.Cj,$APP.V],null),$APP.kl,!1],null),"x-scroll-loop",new $APP.P(null,2,[$APP.U,new $APP.P(null,1,[$APP.Ni,$APP.Y],null),$APP.kl,!0],null)]);
43
+ var OY=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null),NY=new $APP.R(null,new $APP.P(null,4,["none",null,"center",null,"start",null,"end",null],null),null);$APP.ka("baredom.exports.x_scroll.init",CZ);export const init=CZ;
@@ -1,17 +1,17 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Um=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},Vm=function(a,b,c){a=$APP.C.h("",a.value);c=c.hasAttribute("disabled");$APP.n(a?a:c)?b.classList.add("clear-hidden"):b.classList.remove("clear-hidden")},Wm=function(a,b,c){a=a.hasAttribute("required");var d=c.value;return $APP.n($APP.n(a)?$APP.C.h(d,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},Ym=function(a){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.l(b,
3
- "input");b=$APP.l(b,"clear");var d=new $APP.Q(null,7,[$APP.Ai,a.getAttribute("name"),$APP.Rj,a.getAttribute("value"),$APP.gi,a.getAttribute("placeholder"),$APP.Dh,a.getAttribute("label"),$APP.aj,a.hasAttribute("disabled"),$APP.Tg,a.hasAttribute("required"),$APP.Ch,a.getAttribute("autocomplete")],null);var e=$APP.N(d),g=$APP.H(e,$APP.Ai),h=$APP.H(e,$APP.Rj),k=$APP.H(e,$APP.gi),m=$APP.H(e,$APP.Dh),p=$APP.H(e,$APP.aj);d=$APP.H(e,$APP.Tg);e=$APP.H(e,$APP.Ch);g=$APP.n(g)?g:"";h=$APP.n(h)?h:"";k=$APP.n(k)?
4
- k:"";m=$APP.n(m)?m:"";p=$APP.J(p);d=$APP.J(d);e=typeof e==="string"&&$APP.K(Xm,e)?e:"off";d=new $APP.Q(null,7,[$APP.mj,g,$APP.si,h,$APP.Mj,k,$APP.W,m,$APP.V,p,$APP.zh,d,$APP.sj,e],null);c.name=$APP.mj.g(d);c.placeholder=$APP.Mj.g(d);c.disabled=$APP.V.g(d);c.required=$APP.zh.g(d);c.autocomplete=$APP.sj.g(d);e=$APP.W.g(d);$APP.n($APP.n(e)?$APP.O(e,""):e)?c.setAttribute("aria-label",e):c.removeAttribute("aria-label");d=$APP.n($APP.zh.g(d))?"true":"false";c.setAttribute("aria-required",d);Vm(c,b,a);b=
5
- $APP.l(a,"__xSearchFieldInternals");return $APP.n(b)?Wm(a,b,c):null}return null},Zm=function(a,b,c,d){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:$APP.J(d)}))},$m=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.l(b,"input");b=$APP.l(b,"clear");var d=c.value;var e=a.getAttribute("name");e=$APP.n(e)?e:"";var g=$APP.l(a,"__xSearchFieldInternals");$APP.n(g)&&(g.setFormValue(d),Wm(a,g,c));Vm(c,b,a);return Zm(a,"x-search-field-input",
6
- {name:e,value:d},!1)}return null}},an=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xSearchFieldInternals");$APP.n(e)&&(e.setFormValue(c),Wm(a,e,b));return Zm(a,"x-search-field-change",{name:d,value:c},!1)}return null}},bn=function(a){return function(b){if($APP.C.h("Enter",b.key)&&(b.preventDefault(),b=$APP.l(a,"__xSearchFieldRefs"),$APP.n(b))){var c=$APP.l(b,"input").value;
7
- b=function(){var d=a.getAttribute("name");return $APP.n(d)?d:""}();return $APP.n(function(){var d=a.hasAttribute("required");return $APP.n(d)?$APP.C.h(c,""):d}())?(b=$APP.l(a,"__xSearchFieldInternals"),$APP.n(b)?b.reportValidity():null):Zm(a,"x-search-field-search",{name:b,value:c},!0)}return null}},cn=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.l(b,"input");b=$APP.l(b,"clear");var d=a.getAttribute("name");d=$APP.n(d)?d:"";c.value="";var e=$APP.l(a,
8
- "__xSearchFieldInternals");$APP.n(e)&&(e.setFormValue(""),Wm(a,e,c));Vm(c,b,a);Zm(a,"x-search-field-clear",{name:d},!1);return c.focus()}return null}},dn=function(a){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.l(a,"__xSearchFieldHandlers");if($APP.n(c)){var d=$APP.l(b,"input");b=$APP.l(b,"clear");d.removeEventListener("input",$APP.l(c,"input"));d.removeEventListener("change",$APP.l(c,"change"));d.removeEventListener("keydown",$APP.l(c,"keydown"));b.removeEventListener("click",$APP.l(c,
9
- "click"));a.__xSearchFieldHandlers=null;return}}return null},en=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){d!=null&&$APP.O(d)?(d=""+$APP.S.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},fn=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return Um(this,c,$APP.J(d))}})},gn=function(a){Object.defineProperty(a,
10
- "value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xSearchFieldRefs");if($APP.n(b))return $APP.l(b,"input").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.O(b)?""+$APP.S.g(b):"";this.setAttribute("value",b);var c=$APP.l(this,"__xSearchFieldRefs");return $APP.n(c)?$APP.l(c,"input").value=b:null}})},jn=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return hn}});
11
- gn(b);en(b,"name","name");en(b,"placeholder","placeholder");en(b,"label","label");en(b,"autocomplete","autocomplete");fn(b,"disabled","disabled");fn(b,"required","required");b.checkValidity=function(){var c=$APP.l(this,"__xSearchFieldInternals");return $APP.n(c)?c.checkValidity():!0};b.reportValidity=function(){var c=$APP.l(this,"__xSearchFieldInternals");return $APP.n(c)?c.reportValidity():!0};b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSearchFieldRefs"))){if(!$APP.n(this.shadowRoot)){var c=
2
+ var oo=function(a,b,c){return $APP.r(c)?a.setAttribute(b,""):a.removeAttribute(b)},po=function(a,b,c){a=$APP.D.i("",a.value);c=c.hasAttribute("disabled");$APP.r(a?a:c)?b.classList.add("clear-hidden"):b.classList.remove("clear-hidden")},qo=function(a,b,c){a=a.hasAttribute("required");var d=c.value;return $APP.r($APP.r(a)?$APP.D.i(d,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},so=function(a){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.r(b)){var c=$APP.l(b,
3
+ "input");b=$APP.l(b,"clear");var d=new $APP.P(null,7,[$APP.Ek,a.getAttribute("name"),$APP.vl,a.getAttribute("value"),$APP.ii,a.getAttribute("placeholder"),$APP.Oh,a.getAttribute("label"),$APP.Rk,a.hasAttribute("disabled"),$APP.sh,a.hasAttribute("required"),$APP.Nh,a.getAttribute("autocomplete")],null);var e=$APP.N(d),g=$APP.G(e,$APP.Ek),h=$APP.G(e,$APP.vl),k=$APP.G(e,$APP.ii),m=$APP.G(e,$APP.Oh),p=$APP.G(e,$APP.Rk);d=$APP.G(e,$APP.sh);e=$APP.G(e,$APP.Nh);g=$APP.r(g)?g:"";h=$APP.r(h)?h:"";k=$APP.r(k)?
4
+ k:"";m=$APP.r(m)?m:"";p=$APP.I(p);d=$APP.I(d);e=typeof e==="string"&&$APP.J(ro,e)?e:"off";d=new $APP.P(null,7,[$APP.Si,g,$APP.ui,h,$APP.rl,k,$APP.T,m,$APP.W,p,$APP.Lh,d,$APP.bl,e],null);c.name=$APP.Si.g(d);c.placeholder=$APP.rl.g(d);c.disabled=$APP.W.g(d);c.required=$APP.Lh.g(d);c.autocomplete=$APP.bl.g(d);e=$APP.T.g(d);$APP.r($APP.r(e)?$APP.O(e,""):e)?c.setAttribute("aria-label",e):c.removeAttribute("aria-label");d=$APP.r($APP.Lh.g(d))?"true":"false";c.setAttribute("aria-required",d);po(c,b,a);b=
5
+ $APP.l(a,"__xSearchFieldInternals");return $APP.r(b)?qo(a,b,c):null}return null},to=function(a,b,c,d){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:$APP.I(d)}))},uo=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.r(b)){var c=$APP.l(b,"input");b=$APP.l(b,"clear");var d=c.value;var e=a.getAttribute("name");e=$APP.r(e)?e:"";var g=$APP.l(a,"__xSearchFieldInternals");$APP.r(g)&&(g.setFormValue(d),qo(a,g,c));po(c,b,a);return to(a,"x-search-field-input",
6
+ {name:e,value:d},!1)}return null}},vo=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.r(b)){b=$APP.l(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.r(d)?d:"";var e=$APP.l(a,"__xSearchFieldInternals");$APP.r(e)&&(e.setFormValue(c),qo(a,e,b));return to(a,"x-search-field-change",{name:d,value:c},!1)}return null}},wo=function(a){return function(b){if($APP.D.i("Enter",b.key)&&(b.preventDefault(),b=$APP.l(a,"__xSearchFieldRefs"),$APP.r(b))){var c=$APP.l(b,"input").value;
7
+ b=function(){var d=a.getAttribute("name");return $APP.r(d)?d:""}();return $APP.r(function(){var d=a.hasAttribute("required");return $APP.r(d)?$APP.D.i(c,""):d}())?(b=$APP.l(a,"__xSearchFieldInternals"),$APP.r(b)?b.reportValidity():null):to(a,"x-search-field-search",{name:b,value:c},!0)}return null}},xo=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.r(b)){var c=$APP.l(b,"input");b=$APP.l(b,"clear");var d=a.getAttribute("name");d=$APP.r(d)?d:"";c.value="";var e=$APP.l(a,
8
+ "__xSearchFieldInternals");$APP.r(e)&&(e.setFormValue(""),qo(a,e,c));po(c,b,a);to(a,"x-search-field-clear",{name:d},!1);return c.focus()}return null}},yo=function(a){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.r(b)){var c=$APP.l(a,"__xSearchFieldHandlers");if($APP.r(c)){var d=$APP.l(b,"input");b=$APP.l(b,"clear");d.removeEventListener("input",$APP.l(c,"input"));d.removeEventListener("change",$APP.l(c,"change"));d.removeEventListener("keydown",$APP.l(c,"keydown"));b.removeEventListener("click",$APP.l(c,
9
+ "click"));a.__xSearchFieldHandlers=null;return}}return null},zo=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.r(d)?d:""},set:function(d){d!=null&&$APP.O(d)?(d=""+$APP.S.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},Ao=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return oo(this,c,$APP.I(d))}})},Bo=function(a){Object.defineProperty(a,
10
+ "value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xSearchFieldRefs");if($APP.r(b))return $APP.l(b,"input").value;b=this.getAttribute("value");return $APP.r(b)?b:""},set:function(b){b=b!=null&&$APP.O(b)?""+$APP.S.g(b):"";this.setAttribute("value",b);var c=$APP.l(this,"__xSearchFieldRefs");return $APP.r(c)?$APP.l(c,"input").value=b:null}})},Do=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return Co}});
11
+ Bo(b);zo(b,"name","name");zo(b,"placeholder","placeholder");zo(b,"label","label");zo(b,"autocomplete","autocomplete");Ao(b,"disabled","disabled");Ao(b,"required","required");b.checkValidity=function(){var c=$APP.l(this,"__xSearchFieldInternals");return $APP.r(c)?c.checkValidity():!0};b.reportValidity=function(){var c=$APP.l(this,"__xSearchFieldInternals");return $APP.r(c)?c.reportValidity():!0};b.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xSearchFieldRefs"))){if(!$APP.r(this.shadowRoot)){var c=
12
12
  this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("input"),k=document.createElement("button");d.textContent=":host{display:block;color-scheme:light dark;--x-search-field-bg:#ffffff;--x-search-field-color:#111827;--x-search-field-border:1px solid #d1d5db;--x-search-field-border-radius:6px;--x-search-field-focus-ring-color:#2563eb;--x-search-field-icon-color:#9ca3af;--x-search-field-clear-color:#9ca3af;--x-search-field-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-search-field-bg:#1f2937;--x-search-field-color:#f9fafb;--x-search-field-border:1px solid #4b5563;--x-search-field-focus-ring-color:#3b82f6;--x-search-field-icon-color:#6b7280;--x-search-field-clear-color:#6b7280;}}[part\x3dwrapper]{display:flex;align-items:center;position:relative;background:var(--x-search-field-bg);border:var(--x-search-field-border);border-radius:var(--x-search-field-border-radius);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dwrapper]:focus-within{border-color:var(--x-search-field-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-search-field-focus-ring-color) 20%,transparent);}[part\x3dicon]{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;color:var(--x-search-field-icon-color);pointer-events:none;}[part\x3dinput]{flex:1;min-width:0;padding:0.5rem 0.25rem;background:transparent;color:var(--x-search-field-color);border:none;outline:none;font-size:1rem;line-height:1.5;font-family:inherit;}[part\x3dinput]::-webkit-search-cancel-button{-webkit-appearance:none;}[part\x3dinput]::-webkit-search-decoration{-webkit-appearance:none;}[part\x3dclear]{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;margin-right:2px;background:none;border:none;cursor:pointer;color:var(--x-search-field-clear-color);font-size:1.125rem;line-height:1;border-radius:4px;padding:0;}[part\x3dclear]:hover{color:var(--x-search-field-color);}.clear-hidden{display:none;}:host([disabled]) [part\x3dwrapper]{opacity:var(--x-search-field-disabled-opacity);cursor:not-allowed;}:host([disabled]) [part\x3dinput]{cursor:not-allowed;}@media (prefers-reduced-motion:reduce){[part\x3dwrapper]{transition:none;}}";
13
13
  e.setAttribute("part","wrapper");g.setAttribute("part","icon");g.innerHTML='\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"16" height\x3d"16" viewBox\x3d"0 0 24 24" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round" stroke-linejoin\x3d"round" aria-hidden\x3d"true"\x3e\x3ccircle cx\x3d"11" cy\x3d"11" r\x3d"8"/\x3e\x3cline x1\x3d"21" y1\x3d"21" x2\x3d"16.65" y2\x3d"16.65"/\x3e\x3c/svg\x3e';h.setAttribute("part","input");h.setAttribute("type","search");h.setAttribute("spellcheck",
14
- "false");k.setAttribute("part","clear");k.setAttribute("type","button");k.setAttribute("aria-label","Clear search");k.textContent="×";k.classList.add("clear-hidden");e.appendChild(g);e.appendChild(h);e.appendChild(k);c.appendChild(d);c.appendChild(e);this.__xSearchFieldRefs={wrapper:e,icon:g,input:h,clear:k}}$APP.n(this.attachInternals)&&(this.__xSearchFieldInternals=this.attachInternals())}dn(this);c=$APP.l(this,"__xSearchFieldRefs");$APP.n(c)&&(c=$APP.l(c,"input"),d=this.getAttribute("value"),$APP.n(d)&&
15
- (c.value=d));c=$APP.l(this,"__xSearchFieldInternals");$APP.n(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.n(e)?e:""));d=$APP.l(this,"__xSearchFieldRefs");$APP.n(d)&&(c=$APP.l(d,"input"),d=$APP.l(d,"clear"),e=$m(this),g=an(this),h=bn(this),k=cn(this),c.addEventListener("input",e),c.addEventListener("change",g),c.addEventListener("keydown",h),d.addEventListener("click",k),this.__xSearchFieldHandlers={input:e,change:g,keydown:h,click:k});return Ym(this)};b.disconnectedCallback=function(){return dn(this)};
16
- b.attributeChangedCallback=function(c,d,e){$APP.C.h(c,"value")&&(c=$APP.l(this,"__xSearchFieldRefs"),$APP.n(c)&&(c=$APP.l(c,"input"),$APP.O(c.value,e)&&(c.value=$APP.n(e)?e:"")));return Ym(this)};b.formDisabledCallback=function(c){Um(this,"disabled",$APP.J(c));return Ym(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.l(this,"__xSearchFieldRefs");$APP.n(c)&&($APP.l(c,"input").value="");c=$APP.l(this,"__xSearchFieldInternals");$APP.n(c)&&c.setFormValue("");return Ym(this)};
17
- return a},kn=function(){return $APP.n(customElements.get("x-search-field"))?null:customElements.define("x-search-field",jn())};var hn="name value placeholder label disabled required autocomplete".split(" "),Xm=new $APP.R(null,new $APP.Q(null,2,["off",null,"on",null],null),null);$APP.ja("baredom.exports.x_search_field.init",kn);export const init=kn;
14
+ "false");k.setAttribute("part","clear");k.setAttribute("type","button");k.setAttribute("aria-label","Clear search");k.textContent="×";k.classList.add("clear-hidden");e.appendChild(g);e.appendChild(h);e.appendChild(k);c.appendChild(d);c.appendChild(e);this.__xSearchFieldRefs={wrapper:e,icon:g,input:h,clear:k}}$APP.r(this.attachInternals)&&(this.__xSearchFieldInternals=this.attachInternals())}yo(this);c=$APP.l(this,"__xSearchFieldRefs");$APP.r(c)&&(c=$APP.l(c,"input"),d=this.getAttribute("value"),$APP.r(d)&&
15
+ (c.value=d));c=$APP.l(this,"__xSearchFieldInternals");$APP.r(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.r(e)?e:""));d=$APP.l(this,"__xSearchFieldRefs");$APP.r(d)&&(c=$APP.l(d,"input"),d=$APP.l(d,"clear"),e=uo(this),g=vo(this),h=wo(this),k=xo(this),c.addEventListener("input",e),c.addEventListener("change",g),c.addEventListener("keydown",h),d.addEventListener("click",k),this.__xSearchFieldHandlers={input:e,change:g,keydown:h,click:k});return so(this)};b.disconnectedCallback=function(){return yo(this)};
16
+ b.attributeChangedCallback=function(c,d,e){$APP.D.i(c,"value")&&(c=$APP.l(this,"__xSearchFieldRefs"),$APP.r(c)&&(c=$APP.l(c,"input"),$APP.O(c.value,e)&&(c.value=$APP.r(e)?e:"")));return so(this)};b.formDisabledCallback=function(c){oo(this,"disabled",$APP.I(c));return so(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.l(this,"__xSearchFieldRefs");$APP.r(c)&&($APP.l(c,"input").value="");c=$APP.l(this,"__xSearchFieldInternals");$APP.r(c)&&c.setFormValue("");return so(this)};
17
+ return a},Eo=function(){return $APP.r(customElements.get("x-search-field"))?null:customElements.define("x-search-field",Do())};var Co="name value placeholder label disabled required autocomplete".split(" "),ro=new $APP.R(null,new $APP.P(null,2,["off",null,"on",null],null),null);$APP.ka("baredom.exports.x_search_field.init",Eo);export const init=Eo;
package/dist/x-select.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var IE=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.n(b)){var c=new $APP.Q(null,6,[$APP.aj,a.hasAttribute("disabled"),$APP.Tg,a.hasAttribute("required"),$APP.lj,a.getAttribute("size"),$APP.gi,a.getAttribute("placeholder"),$APP.Rj,a.getAttribute("value"),$APP.Ai,a.getAttribute("name")],null);var d=$APP.N(c),e=$APP.H(d,$APP.aj),g=$APP.H(d,$APP.Tg),h=$APP.H(d,$APP.lj);c=$APP.H(d,$APP.gi);var k=$APP.H(d,$APP.Rj);d=$APP.H(d,$APP.Ai);e=$APP.J(e);g=$APP.J(g);h=typeof h==="string"&&$APP.K(HE,h)?h:
3
- "md";c=new $APP.Q(null,6,[$APP.V,e,$APP.zh,g,$APP.Qg,h,$APP.Mj,c,$APP.si,k,$APP.mj,d],null);if($APP.O(c,$APP.l(a,"__xSelectModel"))){a.__xSelectModel=c;a=$APP.l(b,"wrapper");k=$APP.l(b,"select");b=$APP.l(b,"placeholder-opt");h=$APP.V.g(c);d=$APP.zh.g(c);g=$APP.Qg.g(c);e=$APP.Mj.g(c);var m=$APP.si.g(c);c=$APP.mj.g(c);k.disabled=h;$APP.n(d)?k.setAttribute("required",""):k.removeAttribute("required");typeof c==="string"&&$APP.O(c,"")?k.setAttribute("name",c):k.removeAttribute("name");typeof e==="string"&&
4
- $APP.O(e,"")?(b.textContent=e,b.hidden=!1):b.hidden=!0;k.value=$APP.n(m)?m:"";a.setAttribute("data-size",g);$APP.n(h)?a.setAttribute("data-disabled",""):a.removeAttribute("data-disabled");return c==null||$APP.C.h(c,"")?k.setAttribute("aria-label",$APP.n(e)?e:"select"):k.removeAttribute("aria-label")}}return null},JE=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.n(b)){var c=$APP.l(b,"select"),d=$APP.l(b,"placeholder-opt");for(b=$APP.l(b,"slot").assignedElements({flatten:!0});;){var e=c.lastChild,
5
- g=e;if($APP.n($APP.n(g)?e!==d:g))c.removeChild(e);else break}d=$APP.u($APP.ic(b));b=null;for(g=e=0;;)if(g<e){var h=b.H(null,g),k=h.tagName.toLowerCase();($APP.C.h(k,"option")||$APP.C.h(k,"optgroup"))&&c.appendChild(h.cloneNode(!0));g+=1}else if(d=$APP.u(d))$APP.Ac(d)?(e=$APP.ob(d),d=$APP.pb(d),b=e,e=$APP.B(e)):(b=$APP.w(d),e=b.tagName.toLowerCase(),($APP.C.h(e,"option")||$APP.C.h(e,"optgroup"))&&c.appendChild(b.cloneNode(!0)),d=$APP.z(d),b=null,e=0),g=0;else break;a.__xSelectModel=null;return IE(a)}return null},
6
- KE=function(a){return function(){var b=$APP.l(a,"__xSelectRefs");return $APP.n(b)?(b=$APP.l(b,"select"),a.dispatchEvent(new CustomEvent("select-change",{detail:{value:b.value,label:b.selectedOptions.length>0?b.selectedOptions[0].text:""},bubbles:!0,composed:!0,cancelable:!1}))):null}},LE=function(a){return function(){return JE(a)}},ME=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.n(b)){var c=$APP.l(a,"__xSelectHandlers");if($APP.n(c)){var d=$APP.l(b,"slot");$APP.l(b,"select").removeEventListener("change",
7
- $APP.l(c,"change"));d.removeEventListener("slotchange",$APP.l(c,"slotchange"));a.__xSelectHandlers=null;return}}return null},NE=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n($APP.J(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},OE=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:null},set:function(b){b!=
8
- null&&$APP.O(b)?(b=""+$APP.S.g(b),b=this.setAttribute("value",b)):b=this.removeAttribute("value");return b}})},QE=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return PE}});NE(b,"disabled","disabled");NE(b,"required","required");OE(b);b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSelectRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("select"),
2
+ var xK=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.r(b)){var c=new $APP.P(null,6,[$APP.Rk,a.hasAttribute("disabled"),$APP.sh,a.hasAttribute("required"),$APP.Yk,a.getAttribute("size"),$APP.ii,a.getAttribute("placeholder"),$APP.vl,a.getAttribute("value"),$APP.Ek,a.getAttribute("name")],null);var d=$APP.N(c),e=$APP.G(d,$APP.Rk),g=$APP.G(d,$APP.sh),h=$APP.G(d,$APP.Yk);c=$APP.G(d,$APP.ii);var k=$APP.G(d,$APP.vl);d=$APP.G(d,$APP.Ek);e=$APP.I(e);g=$APP.I(g);h=typeof h==="string"&&$APP.J(wK,h)?h:
3
+ "md";c=new $APP.P(null,6,[$APP.W,e,$APP.Lh,g,$APP.rh,h,$APP.rl,c,$APP.ui,k,$APP.Si,d],null);if($APP.O(c,$APP.l(a,"__xSelectModel"))){a.__xSelectModel=c;a=$APP.l(b,"wrapper");k=$APP.l(b,"select");b=$APP.l(b,"placeholder-opt");h=$APP.W.g(c);d=$APP.Lh.g(c);g=$APP.rh.g(c);e=$APP.rl.g(c);var m=$APP.ui.g(c);c=$APP.Si.g(c);k.disabled=h;$APP.r(d)?k.setAttribute("required",""):k.removeAttribute("required");typeof c==="string"&&$APP.O(c,"")?k.setAttribute("name",c):k.removeAttribute("name");typeof e==="string"&&
4
+ $APP.O(e,"")?(b.textContent=e,b.hidden=!1):b.hidden=!0;k.value=$APP.r(m)?m:"";a.setAttribute("data-size",g);$APP.r(h)?a.setAttribute("data-disabled",""):a.removeAttribute("data-disabled");return c==null||$APP.D.i(c,"")?k.setAttribute("aria-label",$APP.r(e)?e:"select"):k.removeAttribute("aria-label")}}return null},yK=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.r(b)){var c=$APP.l(b,"select"),d=$APP.l(b,"placeholder-opt");for(b=$APP.l(b,"slot").assignedElements({flatten:!0});;){var e=c.lastChild,
5
+ g=e;if($APP.r($APP.r(g)?e!==d:g))c.removeChild(e);else break}d=$APP.u($APP.wc(b));b=null;for(g=e=0;;)if(g<e){var h=b.G(null,g),k=h.tagName.toLowerCase();($APP.D.i(k,"option")||$APP.D.i(k,"optgroup"))&&c.appendChild(h.cloneNode(!0));g+=1}else if(d=$APP.u(d))$APP.Pc(d)?(e=$APP.yb(d),d=$APP.zb(d),b=e,e=$APP.B(e)):(b=$APP.v(d),e=b.tagName.toLowerCase(),($APP.D.i(e,"option")||$APP.D.i(e,"optgroup"))&&c.appendChild(b.cloneNode(!0)),d=$APP.z(d),b=null,e=0),g=0;else break;a.__xSelectModel=null;return xK(a)}return null},
6
+ zK=function(a){return function(){var b=$APP.l(a,"__xSelectRefs");return $APP.r(b)?(b=$APP.l(b,"select"),a.dispatchEvent(new CustomEvent("select-change",{detail:{value:b.value,label:b.selectedOptions.length>0?b.selectedOptions[0].text:""},bubbles:!0,composed:!0,cancelable:!1}))):null}},AK=function(a){return function(){return yK(a)}},BK=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.r(b)){var c=$APP.l(a,"__xSelectHandlers");if($APP.r(c)){var d=$APP.l(b,"slot");$APP.l(b,"select").removeEventListener("change",
7
+ $APP.l(c,"change"));d.removeEventListener("slotchange",$APP.l(c,"slotchange"));a.__xSelectHandlers=null;return}}return null},CK=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.r($APP.I(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},DK=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("value");return $APP.r(b)?b:null},set:function(b){b!=
8
+ null&&$APP.O(b)?(b=""+$APP.S.g(b),b=this.setAttribute("value",b)):b=this.removeAttribute("value");return b}})},FK=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return EK}});CK(b,"disabled","disabled");CK(b,"required","required");DK(b);b.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xSelectRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("select"),
9
9
  h=document.createElement("option"),k=document.createElement("span"),m=document.createElement("slot");d.textContent=":host{display:inline-block;color-scheme:light dark;--x-select-height-sm:2rem;--x-select-height-md:2.5rem;--x-select-height-lg:3rem;--x-select-radius:0.5rem;--x-select-font-size-sm:0.75rem;--x-select-font-size-md:0.875rem;--x-select-font-size-lg:1rem;--x-select-padding-inline:0.75rem;--x-select-bg:#ffffff;--x-select-bg-disabled:#f8fafc;--x-select-fg:#0f172a;--x-select-fg-disabled:#94a3b8;--x-select-placeholder-fg:#94a3b8;--x-select-border:#cbd5e1;--x-select-border-hover:#94a3b8;--x-select-border-focus:#3b82f6;--x-select-chevron:#64748b;--x-select-focus-ring:#93c5fd;--x-select-shadow:0 1px 2px rgba(15,23,42,0.06);--x-select-transition-duration:140ms;}@media (prefers-color-scheme:dark){:host{--x-select-bg:#1f2937;--x-select-bg-disabled:#111827;--x-select-fg:#f1f5f9;--x-select-border:#374151;--x-select-border-hover:#4b5563;--x-select-border-focus:#60a5fa;--x-select-chevron:#94a3b8;}}[part\x3dwrapper]{position:relative;display:flex;align-items:stretch;height:var(--x-select-height-md);border:1px solid var(--x-select-border);border-radius:var(--x-select-radius);background:var(--x-select-bg);box-shadow:var(--x-select-shadow);transition:border-color var(--x-select-transition-duration) ease,box-shadow var(--x-select-transition-duration) ease;overflow:hidden;font-size:var(--x-select-font-size-md);}[part\x3dwrapper][data-size\x3dsm]{height:var(--x-select-height-sm);font-size:var(--x-select-font-size-sm);}[part\x3dwrapper][data-size\x3dlg]{height:var(--x-select-height-lg);font-size:var(--x-select-font-size-lg);}[part\x3dwrapper][data-disabled]{background:var(--x-select-bg-disabled);opacity:0.6;pointer-events:none;}[part\x3dwrapper]:hover:not([data-disabled]){border-color:var(--x-select-border-hover);}[part\x3dwrapper]:focus-within:not([data-disabled]){border-color:var(--x-select-border-focus);box-shadow:0 0 0 3px var(--x-select-focus-ring);}[part\x3dselect]{appearance:none;-webkit-appearance:none;flex:1;min-width:0;background:transparent;border:none;outline:none;color:var(--x-select-fg);font-size:inherit;font-family:inherit;padding-inline:var(--x-select-padding-inline);padding-inline-end:calc(var(--x-select-padding-inline) + 1.75rem);cursor:pointer;width:100%;}[part\x3dselect]:disabled{color:var(--x-select-fg-disabled);cursor:default;}[part\x3dselect] option[data-placeholder]{color:var(--x-select-placeholder-fg);}[part\x3dchevron]{position:absolute;right:var(--x-select-padding-inline);top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;pointer-events:none;color:var(--x-select-chevron);width:1rem;height:1rem;}slot{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dwrapper]{transition:none;}}";
10
10
  e.setAttribute("part","wrapper");g.setAttribute("part","select");k.setAttribute("part","chevron");k.setAttribute("aria-hidden","true");h.setAttribute("data-placeholder","");h.setAttribute("value","");h.hidden=!0;h.disabled=!0;h.selected=!0;k.innerHTML='\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round" stroke-linejoin\x3d"round" aria-hidden\x3d"true"\x3e\x3cpolyline points\x3d"4 6 8 10 12 6"/\x3e\x3c/svg\x3e';
11
- g.appendChild(h);e.appendChild(g);e.appendChild(k);c.appendChild(d);c.appendChild(e);c.appendChild(m);this.__xSelectRefs={root:c,wrapper:e,select:g,"placeholder-opt":h,slot:m,chevron:k}}ME(this);c=$APP.l(this,"__xSelectRefs");$APP.n(c)&&(d=$APP.l(c,"slot"),e=KE(this),g=LE(this),h={change:e,slotchange:g},$APP.l(c,"select").addEventListener("change",e),d.addEventListener("slotchange",g),this.__xSelectHandlers=h);JE(this);return IE(this)};b.disconnectedCallback=function(){return ME(this)};b.attributeChangedCallback=
12
- function(c,d,e){return $APP.O(d,e)?IE(this):null};return a},RE=function(){return $APP.n(customElements.get("x-select"))?null:customElements.define("x-select",QE())};var HE=new $APP.R(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),PE="disabled required size placeholder value name".split(" ");$APP.zd(["select-change",new $APP.Q(null,2,[$APP.Dj,!1,$APP.Y,new $APP.Q(null,2,[$APP.si,$APP.X,$APP.W,$APP.X],null)],null)]);$APP.ja("baredom.exports.x_select.init",RE);export const init=RE;
11
+ g.appendChild(h);e.appendChild(g);e.appendChild(k);c.appendChild(d);c.appendChild(e);c.appendChild(m);this.__xSelectRefs={root:c,wrapper:e,select:g,"placeholder-opt":h,slot:m,chevron:k}}BK(this);c=$APP.l(this,"__xSelectRefs");$APP.r(c)&&(d=$APP.l(c,"slot"),e=zK(this),g=AK(this),h={change:e,slotchange:g},$APP.l(c,"select").addEventListener("change",e),d.addEventListener("slotchange",g),this.__xSelectHandlers=h);yK(this);return xK(this)};b.disconnectedCallback=function(){return BK(this)};b.attributeChangedCallback=
12
+ function(c,d,e){return $APP.O(d,e)?xK(this):null};return a},GK=function(){return $APP.r(customElements.get("x-select"))?null:customElements.define("x-select",FK())};var wK=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),EK="disabled required size placeholder value name".split(" ");$APP.Sd(["select-change",new $APP.P(null,2,[$APP.kl,!1,$APP.U,new $APP.P(null,2,[$APP.ui,$APP.Y,$APP.T,$APP.Y],null)],null)]);$APP.ka("baredom.exports.x_select.init",GK);export const init=GK;
package/dist/x-sidebar.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var hO=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},iO=function(a,b,c){a.dispatchEvent(new CustomEvent(b,$APP.Mg(new $APP.Q(null,3,[$APP.Y,c,$APP.Tj,!0,$APP.jk,!0],null))))},kO=function(a,b){$APP.K(jO,b)&&iO(a,"dismiss",new $APP.Q(null,1,[$APP.hi,b],null))},lO=function(a){var b=window.getComputedStyle(a);return $APP.O("none",b.display)&&$APP.O("hidden",b.visibility)&&a.offsetWidth>0&&a.offsetHeight>0},mO=function(a){var b=$APP.l(a,"_panel");$APP.n(b.hasAttribute("tabindex"))||
3
- (b.setAttribute("tabindex","-1"),a._panelTabindexAdded=!0);return b.focus()},nO=function(a){var b=$APP.l(a,"_restoreFocusTarget"),c=$APP.l(a,"_panel"),d=$APP.l(a,"_panelTabindexAdded")===!0,e=$APP.l(a,"_root");var g=$APP.l(a,"_sidebar");e=$APP.n(e)?e.activeElement:null;var h=document.activeElement;g=$APP.n($APP.n(e)?$APP.n(g)?g.contains(e):g:e)?e:$APP.n($APP.n(h)?$APP.n(g)?g.contains(h):g:h)?h:null;$APP.n(g)&&g.blur();a._tabbables=null;a._restoreFocusTarget=null;$APP.n($APP.n(c)?d:c)&&(c.removeAttribute("tabindex"),
4
- a._panelTabindexAdded=!1);return $APP.n($APP.n(b)?b.isConnected:b)?b.focus():null},oO=function(a,b){var c=$APP.l(a,"_tabbables");c=$APP.n(c)?$APP.fe($APP.ic(c)):$APP.Nd;var d=$APP.l(a,"_panel");if($APP.uc(c))return b.preventDefault(),$APP.n(d)?mO(a):null;a=document.activeElement;d=$APP.w(c);c=$APP.lc(c);var e=b.shiftKey;return $APP.n($APP.n(e)?$APP.C.h(a,d):e)?(b.preventDefault(),c.focus()):$APP.q(e)&&$APP.C.h(a,c)?(b.preventDefault(),d.focus()):null},pO=function(a){if(!$APP.n($APP.l(a,"_root"))){var b=
2
+ var BV=function(a,b,c){return $APP.r(c)?a.setAttribute(b,""):a.removeAttribute(b)},CV=function(a,b,c){a.dispatchEvent(new CustomEvent(b,$APP.nh(new $APP.P(null,3,[$APP.U,c,$APP.xl,!0,$APP.Jl,!0],null))))},EV=function(a,b){$APP.J(DV,b)&&CV(a,"dismiss",new $APP.P(null,1,[$APP.ji,b],null))},FV=function(a){var b=window.getComputedStyle(a);return $APP.O("none",b.display)&&$APP.O("hidden",b.visibility)&&a.offsetWidth>0&&a.offsetHeight>0},GV=function(a){var b=$APP.l(a,"_panel");$APP.r(b.hasAttribute("tabindex"))||
3
+ (b.setAttribute("tabindex","-1"),a._panelTabindexAdded=!0);return b.focus()},HV=function(a){var b=$APP.l(a,"_restoreFocusTarget"),c=$APP.l(a,"_panel"),d=$APP.l(a,"_panelTabindexAdded")===!0,e=$APP.l(a,"_root");var g=$APP.l(a,"_sidebar");e=$APP.r(e)?e.activeElement:null;var h=document.activeElement;g=$APP.r($APP.r(e)?$APP.r(g)?g.contains(e):g:e)?e:$APP.r($APP.r(h)?$APP.r(g)?g.contains(h):g:h)?h:null;$APP.r(g)&&g.blur();a._tabbables=null;a._restoreFocusTarget=null;$APP.r($APP.r(c)?d:c)&&(c.removeAttribute("tabindex"),
4
+ a._panelTabindexAdded=!1);return $APP.r($APP.r(b)?b.isConnected:b)?b.focus():null},IV=function(a,b){var c=$APP.l(a,"_tabbables");c=$APP.r(c)?$APP.Be($APP.wc(c)):$APP.ie;var d=$APP.l(a,"_panel");if($APP.Jc(c))return b.preventDefault(),$APP.r(d)?GV(a):null;a=document.activeElement;d=$APP.v(c);c=$APP.zc(c);var e=b.shiftKey;return $APP.r($APP.r(e)?$APP.D.i(a,d):e)?(b.preventDefault(),c.focus()):$APP.t(e)&&$APP.D.i(a,c)?(b.preventDefault(),d.focus()):null},JV=function(a){if(!$APP.r($APP.l(a,"_root"))){var b=
5
5
  a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("aside"),g=document.createElement("div"),h=document.createElement("slot");c.textContent=":host { --x-sidebar-bg: Canvas; --x-sidebar-fg: CanvasText; --x-sidebar-backdrop: rgb(0 0 0 / 0.4); --x-sidebar-shadow: 0 8px 24px rgb(0 0 0 / 0.18); --x-sidebar-width: 18rem; --x-sidebar-collapsed-width: 4rem; --x-sidebar-duration: 180ms; --x-sidebar-easing: ease; display: block; position: relative;}:host([hidden]) { display: none; }.backdrop[hidden] { display: none; }.backdrop { position: fixed; inset: 0; background: var(--x-sidebar-backdrop); opacity: 0; z-index: 999; pointer-events: none; transition: opacity var(--x-sidebar-duration) var(--x-sidebar-easing);}.backdrop[data-active\x3d'true'] { opacity: 1; pointer-events: auto;}.sidebar { position: relative; color: var(--x-sidebar-fg); block-size: 100%;}.panel { background: var(--x-sidebar-bg); color: var(--x-sidebar-fg); inline-size: var(--x-sidebar-width); min-block-size: 100%; overflow: hidden; box-shadow: var(--x-sidebar-shadow); will-change: transform, inline-size; transition: transform var(--x-sidebar-duration) var(--x-sidebar-easing), inline-size var(--x-sidebar-duration) var(--x-sidebar-easing), opacity var(--x-sidebar-duration) var(--x-sidebar-easing);}:host([data-effective-variant\x3d'docked']) .panel[data-collapsed\x3d'true'] { inline-size: var(--x-sidebar-collapsed-width);}:host([data-effective-variant\x3d'overlay']) .sidebar,:host([data-effective-variant\x3d'modal']) .sidebar { position: fixed; inset-block: 0; z-index: 1000; pointer-events: none;}:host([data-effective-variant\x3d'overlay'][data-open\x3d'true']) .sidebar,:host([data-effective-variant\x3d'modal'][data-open\x3d'true']) .sidebar { pointer-events: auto;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'left']) .sidebar,:host([data-effective-variant\x3d'modal'][data-placement\x3d'left']) .sidebar { inset-inline-start: 0;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'right']) .sidebar,:host([data-effective-variant\x3d'modal'][data-placement\x3d'right']) .sidebar { inset-inline-end: 0;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'left']) .panel[data-open\x3d'false'],:host([data-effective-variant\x3d'modal'][data-placement\x3d'left']) .panel[data-open\x3d'false'] { transform: translateX(-100%); pointer-events: none;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'right']) .panel[data-open\x3d'false'],:host([data-effective-variant\x3d'modal'][data-placement\x3d'right']) .panel[data-open\x3d'false'] { transform: translateX(100%); pointer-events: none;}:host([data-effective-variant\x3d'overlay']) .panel[data-open\x3d'true'],:host([data-effective-variant\x3d'modal']) .panel[data-open\x3d'true'] { transform: translateX(0); pointer-events: auto;}:host([data-reduced-motion\x3d'true']) .panel,:host([data-reduced-motion\x3d'true']) .backdrop { transition: none;}@media (prefers-color-scheme: dark) { :host { --x-sidebar-shadow: 0 8px 24px rgb(0 0 0 / 0.4); }}";
6
- d.className="backdrop";d.setAttribute("part","backdrop");d.hidden=!0;e.className="sidebar";e.setAttribute("part","sidebar");g.className="panel";g.setAttribute("part","panel");g.appendChild(h);e.appendChild(g);b.appendChild(c);b.appendChild(d);b.appendChild(e);a._root=b;a._backdrop=d;a._sidebar=e;a._panel=g;a._slot=h}},LO=function(a){pO(a);var b=$APP.l(a,"_prevState");b=$APP.n(b)?b:$APP.Ad;var c=a.hasAttribute("open"),d=a.hasAttribute("collapsed"),e=a.getAttribute("placement"),g=a.getAttribute("variant"),
7
- h=a.getAttribute("breakpoint"),k=a.getAttribute("label"),m=window.innerWidth,p=window.matchMedia("(prefers-reduced-motion: reduce)");c=$APP.N(new $APP.Q(null,8,[qO,c,rO,d,sO,e,tO,g,uO,h,vO,k,wO,m,xO,$APP.J(p.matches)],null));k=$APP.H(c,qO);h=$APP.H(c,rO);d=$APP.H(c,sO);e=$APP.H(c,tO);m=$APP.H(c,uO);p=$APP.H(c,vO);g=$APP.H(c,wO);c=$APP.H(c,xO);d=$APP.K(yO,d)?d:$APP.Hj.g(zO);e=$APP.K(AO,e)?e:$APP.th.g(zO);var r=$APP.Oi.g(zO);m=m==null?null:""+$APP.S.g(m);m=m==null?null:(0,$APP.tg)(m);$APP.u(m)?(m=Number(m),
8
- m=$APP.n(Number.isFinite(m))?m:r):m=r;p=p!=null?(0,$APP.tg)(p):null;p=$APP.u(p)?p:null;p=$APP.n(p)?p:$APP.W.g(zO);k=$APP.N(new $APP.Q(null,1,[qO,k],null));k=$APP.H(k,qO);k=$APP.J(k);h=$APP.J(h);g=g<m?"modal":e;r=$APP.C.h(g,"modal");var v=$APP.C.h(g,"overlay"),x=$APP.C.h(g,"docked");c=$APP.gf([$APP.zj,BO,CO,DO,$APP.Oi,EO,FO,GO,HO,$APP.W,$APP.Hj,IO,JO,KO],[k,g,!k,x&&h,m,x,h,e,k&&(r||v),p,d,$APP.J(c),r,v]);k=$APP.N(c);d=$APP.H(k,BO);e=$APP.H(k,$APP.Hj);g=$APP.H(k,$APP.zj);h=$APP.H(k,DO);k=$APP.H(k,IO);
9
- a.setAttribute("data-effective-variant",d);a.setAttribute("data-placement",e);a.setAttribute("data-open",$APP.n(g)?"true":"false");a.setAttribute("data-collapsed",$APP.n(h)?"true":"false");a.setAttribute("data-reduced-motion",$APP.n(k)?"true":"false");d=JO.g(c);$APP.n(d)&&(d=$APP.zj.g(c),$APP.n(d)&&(d=JO.g(b),d=$APP.n(d)?$APP.zj.g(b):d,d=$APP.q(d)));$APP.n(d)?(d=$APP.fe($APP.Ld(lO,$APP.ic($APP.l(a,"_panel").querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex\x3d'-1'])")))),
10
- a._restoreFocusTarget=document.activeElement,e=$APP.Mg(d),a._tabbables=e,$APP.u(d)?$APP.w(d).focus():mO(a)):(d=JO.g(b),$APP.n(d)&&(d=$APP.zj.g(b),$APP.n(d)&&(d=JO.g(c),d=$APP.n(d)?$APP.zj.g(c):d,d=$APP.q(d))),$APP.n(d)&&nO(a));e=$APP.N(c);d=$APP.H(e,$APP.W);e=$APP.H(e,CO);g=$APP.l(a,"_sidebar");$APP.n(g)&&(g.setAttribute("role","navigation"),g.setAttribute("aria-label",d),g.setAttribute("aria-hidden",$APP.n(e)?"true":"false"));d=$APP.N(c);d=$APP.H(d,HO);e=$APP.l(a,"_backdrop");$APP.n(e)&&(e.setAttribute("data-active",
11
- $APP.n(d)?"true":"false"),e.hidden=$APP.q(d),e.inert!=null&&(e.inert=$APP.q(d)));h=$APP.N(c);d=$APP.H(h,$APP.zj);e=$APP.H(h,$APP.Hj);g=$APP.H(h,BO);h=$APP.H(h,DO);k=$APP.l(a,"_panel");$APP.n(k)&&(k.setAttribute("data-open",$APP.n(d)?"true":"false"),k.setAttribute("data-placement",e),k.setAttribute("data-variant",g),k.setAttribute("data-collapsed",$APP.n(h)?"true":"false"));$APP.O($APP.zj.g(b),$APP.zj.g(c))&&(b=$APP.zj.g(c),iO(a,"toggle",new $APP.Q(null,1,[$APP.zj,$APP.J(b)],null)));a._prevState=c},
12
- MO=function(a,b){var c=$APP.l(a,"_prevState"),d=b.key;return $APP.n(function(){var e=JO.g(c);e=$APP.n(e)?e:KO.g(c);return $APP.n(e)?$APP.zj.g(c):e}())?$APP.C.h(d,"Escape")?(b.preventDefault(),kO(a,"escape"),hO(a,"open",!1)):$APP.n(function(){var e=JO.g(c);return $APP.n(e)?$APP.C.h(d,"Tab"):e}())?oO(a,b):null:null},NO=function(a){$APP.n($APP.l(a,"_handlers"))||$APP.ma(a,"_handlers",{onBackdropClick:function(b){var c=$APP.l(a,"_prevState"),d=$APP.l(a,"_backdrop");var e=JO.g(c);e=$APP.n(e)?e:KO.g(c);
13
- $APP.n(e)?(c=$APP.zj.g(c),b=$APP.n(c)?$APP.C.h(b.target,d):c):b=e;$APP.n(b)?(kO(a,"backdrop"),b=hO(a,"open",!1)):b=null;return b},onKeydown:function(b){return MO(a,b)},onResize:function(){return LO(a)}})},OO=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return hO(this,"open",$APP.J(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"collapsed",{get:function(){return this.hasAttribute("collapsed")},set:function(b){return hO(this,
14
- "collapsed",$APP.J(b))},enumerable:!0,configurable:!0})},QO=function(){var a=class extends HTMLElement{};a.observedAttributes=PO;a.prototype.connectedCallback=function(){pO(this);NO(this);if($APP.l(this,"_listening")!==!0){var b=$APP.l(this,"_handlers"),c=$APP.l(this,"_backdrop"),d=$APP.l(this,"_root");$APP.n($APP.n(c)?b:c)&&c.addEventListener("click",$APP.l(b,"onBackdropClick"));$APP.n($APP.n(d)?b:d)&&d.addEventListener("keydown",$APP.l(b,"onKeydown"));$APP.n(b)&&window.addEventListener("resize",
15
- $APP.l(b,"onResize"));this._listening=!0}return LO(this)};a.prototype.disconnectedCallback=function(){if($APP.l(this,"_listening")===!0){var b=$APP.l(this,"_handlers"),c=$APP.l(this,"_backdrop"),d=$APP.l(this,"_root");$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",$APP.l(b,"onBackdropClick"));$APP.n($APP.n(d)?b:d)&&d.removeEventListener("keydown",$APP.l(b,"onKeydown"));$APP.n(b)&&window.removeEventListener("resize",$APP.l(b,"onResize"));this._listening=!1}return nO(this)};a.prototype.attributeChangedCallback=
16
- function(b,c,d){return $APP.O(c,d)?LO(this):null};OO(a.prototype);return a},RO=function(){return $APP.n(customElements.get("x-sidebar"))?null:customElements.define("x-sidebar",QO())},GO=new $APP.M(null,"declared-variant","declared-variant",-2054964950),SO=new $APP.M(null,"collapsed","collapsed",-628494523),wO=new $APP.M(null,"viewport-width","viewport-width",-1146235948),CO=new $APP.M(null,"aria-hidden","aria-hidden",399337029),xO=new $APP.M(null,"prefers-reduced-motion","prefers-reduced-motion",
17
- -2023150975),FO=new $APP.M(null,"collapsed-requested","collapsed-requested",1573505800),uO=new $APP.M(null,"breakpoint-attr","breakpoint-attr",-250275627),tO=new $APP.M(null,"variant-attr","variant-attr",-1143729279),BO=new $APP.M(null,"effective-variant","effective-variant",-829495195),IO=new $APP.M(null,"reduced-motion","reduced-motion",79621277),HO=new $APP.M(null,"show-backdrop","show-backdrop",-532209910),EO=new $APP.M(null,"is-docked","is-docked",875310728),rO=new $APP.M(null,"collapsed-attr",
18
- "collapsed-attr",-1535396832),JO=new $APP.M(null,"is-modal","is-modal",1610761086),sO=new $APP.M(null,"placement-attr","placement-attr",-1321967286),KO=new $APP.M(null,"is-overlay","is-overlay",1953921119),vO=new $APP.M(null,"label-attr","label-attr",-571749887),qO=new $APP.M(null,"open-attr","open-attr",-1772289801),DO=new $APP.M(null,"collapsed-applied","collapsed-applied",-1696231706);var PO="open collapsed placement variant breakpoint label".split(" "),yO=$APP.Ff(["right","left"]),AO=$APP.Ff(["overlay","docked","modal"]),jO=$APP.Ff(["backdrop","escape"]),zO=new $APP.Q(null,6,[$APP.Hj,"left",$APP.th,"docked",$APP.Oi,768,$APP.W,"Sidebar",$APP.zj,!1,SO,!1],null);$APP.zd(["toggle",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,1,[$APP.zj,$APP.Yj],null)],null),"dismiss",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,1,[$APP.hi,$APP.X],null)],null)]);$APP.ja("baredom.exports.x_sidebar.init",RO);export const init=RO;
6
+ d.className="backdrop";d.setAttribute("part","backdrop");d.hidden=!0;e.className="sidebar";e.setAttribute("part","sidebar");g.className="panel";g.setAttribute("part","panel");g.appendChild(h);e.appendChild(g);b.appendChild(c);b.appendChild(d);b.appendChild(e);a._root=b;a._backdrop=d;a._sidebar=e;a._panel=g;a._slot=h}},eW=function(a){JV(a);var b=$APP.l(a,"_prevState");b=$APP.r(b)?b:$APP.Td;var c=a.hasAttribute("open"),d=a.hasAttribute("collapsed"),e=a.getAttribute("placement"),g=a.getAttribute("variant"),
7
+ h=a.getAttribute("breakpoint"),k=a.getAttribute("label"),m=window.innerWidth,p=window.matchMedia("(prefers-reduced-motion: reduce)");c=$APP.N(new $APP.P(null,8,[KV,c,LV,d,MV,e,NV,g,OV,h,PV,k,QV,m,RV,$APP.I(p.matches)],null));k=$APP.G(c,KV);h=$APP.G(c,LV);d=$APP.G(c,MV);e=$APP.G(c,NV);m=$APP.G(c,OV);p=$APP.G(c,PV);g=$APP.G(c,QV);c=$APP.G(c,RV);d=$APP.J(SV,d)?d:$APP.hj.g(TV);e=$APP.J(UV,e)?e:$APP.Fh.g(TV);var q=$APP.Di.g(TV);m=m==null?null:""+$APP.S.g(m);m=m==null?null:(0,$APP.Qg)(m);$APP.u(m)?(m=Number(m),
8
+ m=$APP.r(Number.isFinite(m))?m:q):m=q;p=p!=null?(0,$APP.Qg)(p):null;p=$APP.u(p)?p:null;p=$APP.r(p)?p:$APP.T.g(TV);k=$APP.N(new $APP.P(null,1,[KV,k],null));k=$APP.G(k,KV);k=$APP.I(k);h=$APP.I(h);g=g<m?"modal":e;q=$APP.D.i(g,"modal");var w=$APP.D.i(g,"overlay"),x=$APP.D.i(g,"docked");c=$APP.Q([$APP.hl,VV,WV,XV,$APP.Di,YV,ZV,$V,aW,$APP.T,$APP.hj,bW,cW,dW],[k,g,!k,x&&h,m,x,h,e,k&&(q||w),p,d,$APP.I(c),q,w]);k=$APP.N(c);d=$APP.G(k,VV);e=$APP.G(k,$APP.hj);g=$APP.G(k,$APP.hl);h=$APP.G(k,XV);k=$APP.G(k,bW);
9
+ a.setAttribute("data-effective-variant",d);a.setAttribute("data-placement",e);a.setAttribute("data-open",$APP.r(g)?"true":"false");a.setAttribute("data-collapsed",$APP.r(h)?"true":"false");a.setAttribute("data-reduced-motion",$APP.r(k)?"true":"false");d=cW.g(c);$APP.r(d)&&(d=$APP.hl.g(c),$APP.r(d)&&(d=cW.g(b),d=$APP.r(d)?$APP.hl.g(b):d,d=$APP.t(d)));$APP.r(d)?(d=$APP.Be($APP.ge(FV,$APP.wc($APP.l(a,"_panel").querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex\x3d'-1'])")))),
10
+ a._restoreFocusTarget=document.activeElement,e=$APP.nh(d),a._tabbables=e,$APP.u(d)?$APP.v(d).focus():GV(a)):(d=cW.g(b),$APP.r(d)&&(d=$APP.hl.g(b),$APP.r(d)&&(d=cW.g(c),d=$APP.r(d)?$APP.hl.g(c):d,d=$APP.t(d))),$APP.r(d)&&HV(a));e=$APP.N(c);d=$APP.G(e,$APP.T);e=$APP.G(e,WV);g=$APP.l(a,"_sidebar");$APP.r(g)&&(g.setAttribute("role","navigation"),g.setAttribute("aria-label",d),g.setAttribute("aria-hidden",$APP.r(e)?"true":"false"));d=$APP.N(c);d=$APP.G(d,aW);e=$APP.l(a,"_backdrop");$APP.r(e)&&(e.setAttribute("data-active",
11
+ $APP.r(d)?"true":"false"),e.hidden=$APP.t(d),e.inert!=null&&(e.inert=$APP.t(d)));h=$APP.N(c);d=$APP.G(h,$APP.hl);e=$APP.G(h,$APP.hj);g=$APP.G(h,VV);h=$APP.G(h,XV);k=$APP.l(a,"_panel");$APP.r(k)&&(k.setAttribute("data-open",$APP.r(d)?"true":"false"),k.setAttribute("data-placement",e),k.setAttribute("data-variant",g),k.setAttribute("data-collapsed",$APP.r(h)?"true":"false"));$APP.O($APP.hl.g(b),$APP.hl.g(c))&&(b=$APP.hl.g(c),CV(a,"toggle",new $APP.P(null,1,[$APP.hl,$APP.I(b)],null)));a._prevState=c},
12
+ fW=function(a,b){var c=$APP.l(a,"_prevState"),d=b.key;return $APP.r(function(){var e=cW.g(c);e=$APP.r(e)?e:dW.g(c);return $APP.r(e)?$APP.hl.g(c):e}())?$APP.D.i(d,"Escape")?(b.preventDefault(),EV(a,"escape"),BV(a,"open",!1)):$APP.r(function(){var e=cW.g(c);return $APP.r(e)?$APP.D.i(d,"Tab"):e}())?IV(a,b):null:null},gW=function(a){$APP.r($APP.l(a,"_handlers"))||$APP.n(a,"_handlers",{onBackdropClick:function(b){var c=$APP.l(a,"_prevState"),d=$APP.l(a,"_backdrop");var e=cW.g(c);e=$APP.r(e)?e:dW.g(c);
13
+ $APP.r(e)?(c=$APP.hl.g(c),b=$APP.r(c)?$APP.D.i(b.target,d):c):b=e;$APP.r(b)?(EV(a,"backdrop"),b=BV(a,"open",!1)):b=null;return b},onKeydown:function(b){return fW(a,b)},onResize:function(){return eW(a)}})},hW=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return BV(this,"open",$APP.I(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"collapsed",{get:function(){return this.hasAttribute("collapsed")},set:function(b){return BV(this,
14
+ "collapsed",$APP.I(b))},enumerable:!0,configurable:!0})},jW=function(){var a=class extends HTMLElement{};a.observedAttributes=iW;a.prototype.connectedCallback=function(){JV(this);gW(this);if($APP.l(this,"_listening")!==!0){var b=$APP.l(this,"_handlers"),c=$APP.l(this,"_backdrop"),d=$APP.l(this,"_root");$APP.r($APP.r(c)?b:c)&&c.addEventListener("click",$APP.l(b,"onBackdropClick"));$APP.r($APP.r(d)?b:d)&&d.addEventListener("keydown",$APP.l(b,"onKeydown"));$APP.r(b)&&window.addEventListener("resize",
15
+ $APP.l(b,"onResize"));this._listening=!0}return eW(this)};a.prototype.disconnectedCallback=function(){if($APP.l(this,"_listening")===!0){var b=$APP.l(this,"_handlers"),c=$APP.l(this,"_backdrop"),d=$APP.l(this,"_root");$APP.r($APP.r(c)?b:c)&&c.removeEventListener("click",$APP.l(b,"onBackdropClick"));$APP.r($APP.r(d)?b:d)&&d.removeEventListener("keydown",$APP.l(b,"onKeydown"));$APP.r(b)&&window.removeEventListener("resize",$APP.l(b,"onResize"));this._listening=!1}return HV(this)};a.prototype.attributeChangedCallback=
16
+ function(b,c,d){return $APP.O(c,d)?eW(this):null};hW(a.prototype);return a},kW=function(){return $APP.r(customElements.get("x-sidebar"))?null:customElements.define("x-sidebar",jW())},$V=new $APP.M(null,"declared-variant","declared-variant",-2054964950),QV=new $APP.M(null,"viewport-width","viewport-width",-1146235948),WV=new $APP.M(null,"aria-hidden","aria-hidden",399337029),ZV=new $APP.M(null,"collapsed-requested","collapsed-requested",1573505800),aW=new $APP.M(null,"show-backdrop","show-backdrop",
17
+ -532209910),LV=new $APP.M(null,"collapsed-attr","collapsed-attr",-1535396832),MV=new $APP.M(null,"placement-attr","placement-attr",-1321967286),KV=new $APP.M(null,"open-attr","open-attr",-1772289801),lW=new $APP.M(null,"collapsed","collapsed",-628494523),RV=new $APP.M(null,"prefers-reduced-motion","prefers-reduced-motion",-2023150975),OV=new $APP.M(null,"breakpoint-attr","breakpoint-attr",-250275627),NV=new $APP.M(null,"variant-attr","variant-attr",-1143729279),VV=new $APP.M(null,"effective-variant",
18
+ "effective-variant",-829495195),bW=new $APP.M(null,"reduced-motion","reduced-motion",79621277),YV=new $APP.M(null,"is-docked","is-docked",875310728),cW=new $APP.M(null,"is-modal","is-modal",1610761086),dW=new $APP.M(null,"is-overlay","is-overlay",1953921119),PV=new $APP.M(null,"label-attr","label-attr",-571749887),XV=new $APP.M(null,"collapsed-applied","collapsed-applied",-1696231706);var iW="open collapsed placement variant breakpoint label".split(" "),SV=$APP.Yf(["right","left"]),UV=$APP.Yf(["overlay","docked","modal"]),DV=$APP.Yf(["backdrop","escape"]),TV=new $APP.P(null,6,[$APP.hj,"left",$APP.Fh,"docked",$APP.Di,768,$APP.T,"Sidebar",$APP.hl,!1,lW,!1],null);$APP.Sd(["toggle",new $APP.P(null,1,[$APP.U,new $APP.P(null,1,[$APP.hl,$APP.qj],null)],null),"dismiss",new $APP.P(null,1,[$APP.U,new $APP.P(null,1,[$APP.ji,$APP.Y],null)],null)]);$APP.ka("baredom.exports.x_sidebar.init",kW);export const init=kW;
@@ -1,7 +1,7 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var SE=function(a){return typeof a==="string"&&$APP.O("",a)?a:null},VE=function(a){var b=new $APP.Q(null,4,[$APP.th,a.getAttribute("variant"),$APP.ej,a.getAttribute("animation"),$APP.fh,a.getAttribute("width"),$APP.Xj,a.getAttribute("height")],null);var c=$APP.N(b),d=$APP.H(c,$APP.th),e=$APP.H(c,$APP.ej);b=$APP.H(c,$APP.fh);c=$APP.H(c,$APP.Xj);d=typeof d==="string"&&$APP.K(TE,d)?d:"rect";e=typeof e==="string"&&$APP.K(UE,e)?e:"pulse";b=new $APP.Q(null,4,[$APP.th,d,$APP.ej,e,$APP.fh,SE(b),$APP.Xj,SE(c)],
3
- null);d=$APP.N(b);b=$APP.H(d,$APP.th);e=$APP.H(d,$APP.ej);c=$APP.H(d,$APP.fh);d=$APP.H(d,$APP.Xj);var g=$APP.l(a,"__xSkeletonBase");g.setAttribute("data-variant",b);g.setAttribute("data-animation",e);$APP.n(c)?g.style.setProperty("width",c):g.style.removeProperty("width");$APP.n(d)?g.style.setProperty("height",d):g.style.removeProperty("height");a.setAttribute("aria-hidden","true")},WE=function(a){Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?
4
- b:"rect"},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("variant",b):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"animation",{get:function(){var b=this.getAttribute("animation");return $APP.n(b)?b:"pulse"},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("animation",b):this.removeAttribute("animation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"width",{get:function(){var b=this.getAttribute("width");
5
- return $APP.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("width",b):this.removeAttribute("width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,configurable:!0})},YE=function(){var a=class extends HTMLElement{};a.observedAttributes=XE;
6
- a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSkeletonInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-skeleton-color:rgba(0,0,0,0.08);--x-skeleton-highlight:rgba(255,255,255,0.65);--x-skeleton-border-radius:4px;--x-skeleton-duration:1.5s;}@media (prefers-color-scheme:dark){:host{--x-skeleton-color:rgba(255,255,255,0.10);--x-skeleton-highlight:rgba(255,255,255,0.18);}}[part\x3dbase]{width:100%;height:1rem;position:relative;overflow:hidden;background:var(--x-skeleton-color);border-radius:var(--x-skeleton-border-radius);}[part\x3dbase][data-variant\x3d'text']{height:1em;border-radius:3px;}[part\x3dbase][data-variant\x3d'circle']{width:2.5rem;height:2.5rem;border-radius:50%;}[part\x3dshimmer]{position:absolute;inset:0;background:linear-gradient(90deg,transparent 0%,var(--x-skeleton-highlight) 50%,transparent 100%);transform:translateX(-100%);display:none;pointer-events:none;}@keyframes x-skeleton-pulse{0%,100%{opacity:1;}50%{opacity:0.4;}}@keyframes x-skeleton-wave{0%{transform:translateX(-100%);}100%{transform:translateX(200%);}}[part\x3dbase][data-animation\x3d'pulse']{animation:x-skeleton-pulse var(--x-skeleton-duration,1.5s) ease-in-out infinite;}[part\x3dbase][data-animation\x3d'wave'] [part\x3dshimmer]{display:block;animation:x-skeleton-wave var(--x-skeleton-duration,1.5s) linear infinite;}@media (prefers-reduced-motion:reduce){[part\x3dbase][data-animation\x3d'pulse']{animation:none;}[part\x3dbase][data-animation\x3d'wave'] [part\x3dshimmer]{animation:none;}}";
7
- d.setAttribute("part","base");e.setAttribute("part","shimmer");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__xSkeletonBase=d;this.__xSkeletonInit=!0}VE(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&$APP.n($APP.l(this,"__xSkeletonInit"))&&VE(this);return null};WE(a.prototype);return a},ZE=function(){$APP.n(customElements.get("x-skeleton"))||customElements.define("x-skeleton",YE());return null};var TE=new $APP.R(null,new $APP.Q(null,3,["text",null,"rect",null,"circle",null],null),null),UE=new $APP.R(null,new $APP.Q(null,3,["none",null,"pulse",null,"wave",null],null),null),XE=["variant","animation","width","height"];$APP.ja("baredom.exports.x_skeleton.init",ZE);export const init=ZE;
2
+ var HK=function(a){return typeof a==="string"&&$APP.O("",a)?a:null},KK=function(a){var b=new $APP.P(null,4,[$APP.Fh,a.getAttribute("variant"),$APP.Oi,a.getAttribute("animation"),$APP.Lj,a.getAttribute("width"),$APP.pj,a.getAttribute("height")],null);var c=$APP.N(b),d=$APP.G(c,$APP.Fh),e=$APP.G(c,$APP.Oi);b=$APP.G(c,$APP.Lj);c=$APP.G(c,$APP.pj);d=typeof d==="string"&&$APP.J(IK,d)?d:"rect";e=typeof e==="string"&&$APP.J(JK,e)?e:"pulse";b=new $APP.P(null,4,[$APP.Fh,d,$APP.Oi,e,$APP.Lj,HK(b),$APP.pj,HK(c)],
3
+ null);d=$APP.N(b);b=$APP.G(d,$APP.Fh);e=$APP.G(d,$APP.Oi);c=$APP.G(d,$APP.Lj);d=$APP.G(d,$APP.pj);var g=$APP.l(a,"__xSkeletonBase");g.setAttribute("data-variant",b);g.setAttribute("data-animation",e);$APP.r(c)?g.style.setProperty("width",c):g.style.removeProperty("width");$APP.r(d)?g.style.setProperty("height",d):g.style.removeProperty("height");a.setAttribute("aria-hidden","true")},LK=function(a){Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.r(b)?
4
+ b:"rect"},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("variant",b):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"animation",{get:function(){var b=this.getAttribute("animation");return $APP.r(b)?b:"pulse"},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("animation",b):this.removeAttribute("animation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"width",{get:function(){var b=this.getAttribute("width");
5
+ return $APP.r(b)?b:""},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("width",b):this.removeAttribute("width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.r(b)?b:""},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,configurable:!0})},NK=function(){var a=class extends HTMLElement{};a.observedAttributes=MK;
6
+ a.prototype.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xSkeletonInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-skeleton-color:rgba(0,0,0,0.08);--x-skeleton-highlight:rgba(255,255,255,0.65);--x-skeleton-border-radius:4px;--x-skeleton-duration:1.5s;}@media (prefers-color-scheme:dark){:host{--x-skeleton-color:rgba(255,255,255,0.10);--x-skeleton-highlight:rgba(255,255,255,0.18);}}[part\x3dbase]{width:100%;height:1rem;position:relative;overflow:hidden;background:var(--x-skeleton-color);border-radius:var(--x-skeleton-border-radius);}[part\x3dbase][data-variant\x3d'text']{height:1em;border-radius:3px;}[part\x3dbase][data-variant\x3d'circle']{width:2.5rem;height:2.5rem;border-radius:50%;}[part\x3dshimmer]{position:absolute;inset:0;background:linear-gradient(90deg,transparent 0%,var(--x-skeleton-highlight) 50%,transparent 100%);transform:translateX(-100%);display:none;pointer-events:none;}@keyframes x-skeleton-pulse{0%,100%{opacity:1;}50%{opacity:0.4;}}@keyframes x-skeleton-wave{0%{transform:translateX(-100%);}100%{transform:translateX(200%);}}[part\x3dbase][data-animation\x3d'pulse']{animation:x-skeleton-pulse var(--x-skeleton-duration,1.5s) ease-in-out infinite;}[part\x3dbase][data-animation\x3d'wave'] [part\x3dshimmer]{display:block;animation:x-skeleton-wave var(--x-skeleton-duration,1.5s) linear infinite;}@media (prefers-reduced-motion:reduce){[part\x3dbase][data-animation\x3d'pulse']{animation:none;}[part\x3dbase][data-animation\x3d'wave'] [part\x3dshimmer]{animation:none;}}";
7
+ d.setAttribute("part","base");e.setAttribute("part","shimmer");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__xSkeletonBase=d;this.__xSkeletonInit=!0}KK(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&$APP.r($APP.l(this,"__xSkeletonInit"))&&KK(this);return null};LK(a.prototype);return a},OK=function(){$APP.r(customElements.get("x-skeleton"))||customElements.define("x-skeleton",NK());return null};var IK=new $APP.R(null,new $APP.P(null,3,["text",null,"rect",null,"circle",null],null),null),JK=new $APP.R(null,new $APP.P(null,3,["none",null,"pulse",null,"wave",null],null),null),MK=["variant","animation","width","height"];$APP.ka("baredom.exports.x_skeleton.init",OK);export const init=OK;