@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-popover.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var no=function(a){return document.createElement(a)},oo=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},vo=function(a){var b=$APP.l(a,"__xPopoverRefs");if($APP.n(b)){a=new $APP.Q(null,6,[$APP.Xh,a.hasAttribute("open"),$APP.aj,a.hasAttribute("disabled"),po,a.hasAttribute("no-close"),qo,a.getAttribute("heading"),$APP.Ak,a.getAttribute("placement"),ro,a.getAttribute("close-label")],null);var c=$APP.N(a),d=$APP.H(c,$APP.Xh),e=$APP.H(c,$APP.aj),g=$APP.H(c,po),h=$APP.H(c,qo);
3
- a=$APP.H(c,$APP.Ak);c=$APP.H(c,ro);d=$APP.J(d);e=$APP.J(e);g=$APP.J(g);h=$APP.n(h)?h:"";c=$APP.n(c)?c:"Close";a=$APP.K(so,a)?a:"bottom-start";e=$APP.N(new $APP.Q(null,6,[$APP.fk,d,$APP.V,e,to,g,$APP.Ci,h,uo,c,$APP.Hj,a],null));d=$APP.H(e,$APP.fk);a=$APP.H(e,to);h=$APP.H(e,$APP.Ci);c=$APP.H(e,uo);g=$APP.H(e,$APP.Hj);var k=$APP.l(b,"panel");e=$APP.l(b,"header");var m=$APP.l(b,"heading");b=$APP.l(b,"closeBtn");k.setAttribute("data-placement",g);oo(k,"inert",$APP.q(d));$APP.O(h,"")?k.setAttribute("aria-labelledby",
4
- "popover-heading"):k.removeAttribute("aria-labelledby");m.textContent=h;b.setAttribute("aria-label",c);oo(b,"hidden",a);b=$APP.C.h(h,"");return oo(e,"hidden",b?a:b)}return null},wo=function(a,b){b=new CustomEvent("x-popover-toggle",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.q(b.defaultPrevented)},xo=function(a,b){return a.dispatchEvent(new CustomEvent("x-popover-change",{detail:b,bubbles:!0,composed:!0,cancelable:!1}))},yo=function(a,b){return $APP.q(a.hasAttribute("disabled"))&&
5
- $APP.q(a.hasAttribute("open"))&&wo(a,{open:!0,source:b})?(a.setAttribute("open",""),xo(a,{open:!0})):null},zo=function(a,b){var c=$APP.q(a.hasAttribute("disabled"));return $APP.n(c?a.hasAttribute("open"):c)&&wo(a,{open:!1,source:b})?(a.removeAttribute("open"),xo(a,{open:!1})):null},Ao=function(a,b){return $APP.n(a.hasAttribute("open"))?zo(a,b):yo(a,b)},Bo=function(a){var b=$APP.l(a,"__xPopoverHandlers");if($APP.n(b)){var c=$APP.l(b,"docClick"),d=$APP.l(b,"docKeydown");return setTimeout(function(){var e=
6
- a.isConnected;return $APP.n($APP.n(e)?a.hasAttribute("open"):e)?(document.addEventListener("click",c),document.addEventListener("keydown",d)):null},0)}return null},Co=function(a){a=$APP.l(a,"__xPopoverHandlers");if($APP.n(a)){var b=$APP.l(a,"docKeydown");document.removeEventListener("click",$APP.l(a,"docClick"));return document.removeEventListener("keydown",b)}return null},Do=function(a){return{triggerClick:function(){return Ao(a,"pointer")},closeBtnClick:function(){return zo(a,"close-button")},hostFocusout:function(b){return $APP.n(a.hasAttribute("open"))?
7
- (b=b.relatedTarget,b==null||$APP.q(a.contains(b))?zo(a,"focusout"):null):null},docClick:function(b){return $APP.n(a.hasAttribute("open"))?(b=$APP.jc(b.composedPath()),b=$APP.Dd(function(c){return c===a},b),$APP.n(b)?null:zo(a,"outside-click")):null},docKeydown:function(b){b=$APP.C.h(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?zo(a,"escape"):null},footerSlotchange:function(){var b=$APP.l(a,"__xPopoverRefs");return $APP.n(b)?oo($APP.l(b,"footer"),"hidden",!($APP.l(b,"footerSlot").assignedNodes().length>
8
- 0)):null}}},Eo=function(a){var b=$APP.l(a,"__xPopoverRefs");if($APP.n(b)){var c=$APP.l(a,"__xPopoverHandlers");if($APP.n(c)){var d=$APP.l(b,"closeBtn"),e=$APP.l(b,"footerSlot");$APP.l(b,"trigger").removeEventListener("click",$APP.l(c,"triggerClick"));d.removeEventListener("click",$APP.l(c,"closeBtnClick"));a.removeEventListener("focusout",$APP.l(c,"hostFocusout"));e.removeEventListener("slotchange",$APP.l(c,"footerSlotchange"))}}},Fo=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
9
- get:function(){return this.hasAttribute(c)},set:function(d){return oo(this,c,$APP.J(d))}})},Go=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}})},Io=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return Ho}});Fo(b,"open","open");
10
- Fo(b,"disabled","disabled");Fo(b,"noClose","no-close");Go(b,"placement","placement");Go(b,"heading","heading");Go(b,"closeLabel","close-label");b.show=function(){return yo(this,"programmatic")};b.hide=function(){return zo(this,"programmatic")};b.toggle=function(){return Ao(this,"programmatic")};b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xPopoverRefs"))){var c=this.attachShadow({mode:"open"}),d=no("style"),e=no("span"),g=no("slot"),h=no("div"),k=no("div"),m=no("div"),p=no("span"),r=no("button"),
11
- v=no("div"),x=no("slot"),y=no("div"),A=no("slot");d.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-popover-panel-bg:#ffffff;--x-popover-panel-border:1px solid #e2e8f0;--x-popover-panel-radius:8px;--x-popover-panel-shadow:0 4px 16px rgba(0,0,0,0.12);--x-popover-panel-min-width:12rem;--x-popover-panel-max-width:24rem;--x-popover-panel-max-height:24rem;--x-popover-panel-offset:4px;--x-popover-panel-z:1000;--x-popover-header-padding:0.625rem 0.75rem 0.625rem 0.875rem;--x-popover-header-border:1px solid #e2e8f0;--x-popover-heading-color:#0f172a;--x-popover-heading-font-size:0.9375rem;--x-popover-heading-font-weight:600;--x-popover-close-bg:transparent;--x-popover-close-bg-hover:#f1f5f9;--x-popover-close-color:#64748b;--x-popover-close-color-hover:#0f172a;--x-popover-close-radius:4px;--x-popover-close-size:1.5rem;--x-popover-focus-ring:#60a5fa;--x-popover-body-padding:0.875rem;--x-popover-body-color:#334155;--x-popover-body-font-size:0.9375rem;--x-popover-footer-padding:0.625rem 0.875rem;--x-popover-footer-border:1px solid #e2e8f0;--x-popover-arrow-size:8px;--x-popover-arrow-bg:#ffffff;--x-popover-arrow-border:#e2e8f0;--x-popover-transition-duration:150ms;--x-popover-transition-easing:ease;}@media (prefers-color-scheme:dark){:host{--x-popover-panel-bg:#1e293b;--x-popover-panel-border:1px solid #334155;--x-popover-panel-shadow:0 4px 24px rgba(0,0,0,0.4);--x-popover-header-border:1px solid #334155;--x-popover-heading-color:#e2e8f0;--x-popover-close-bg-hover:#334155;--x-popover-close-color:#94a3b8;--x-popover-close-color-hover:#e2e8f0;--x-popover-focus-ring:#93c5fd;--x-popover-body-color:#cbd5e1;--x-popover-footer-border:1px solid #334155;--x-popover-arrow-bg:#1e293b;--x-popover-arrow-border:#334155;}}[part\x3dtrigger]{display:inline-block;}[part\x3dpanel]{position:absolute;z-index:var(--x-popover-panel-z);box-sizing:border-box;background:var(--x-popover-panel-bg);border:var(--x-popover-panel-border);border-radius:var(--x-popover-panel-radius);box-shadow:var(--x-popover-panel-shadow);min-width:var(--x-popover-panel-min-width);max-width:var(--x-popover-panel-max-width);max-height:var(--x-popover-panel-max-height);overflow-y:auto;visibility:hidden;pointer-events:none;opacity:0;transform:scale(0.96) translateY(-4px);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s var(--x-popover-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;pointer-events:auto;opacity:1;transform:scale(1) translateY(0);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dbottom-start]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:top left;}[part\x3dpanel][data-placement\x3dbottom-end]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:top right;}[part\x3dpanel][data-placement\x3dtop-start]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:bottom left;}[part\x3dpanel][data-placement\x3dtop-end]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:bottom right;}[part\x3darrow]{position:absolute;width:var(--x-popover-arrow-size);height:var(--x-popover-arrow-size);background:var(--x-popover-arrow-bg);transform:rotate(45deg);pointer-events:none;}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{top:calc(var(--x-popover-arrow-size) / -2 - 1px);border-left:1px solid var(--x-popover-arrow-border);border-top:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{right:1rem;}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{bottom:calc(var(--x-popover-arrow-size) / -2 - 1px);border-right:1px solid var(--x-popover-arrow-border);border-bottom:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{right:1rem;}[part\x3dheader]{display:flex;align-items:center;justify-content:space-between;padding:var(--x-popover-header-padding);border-bottom:var(--x-popover-header-border);gap:0.5rem;}[part\x3dheading]{flex:1;font-size:var(--x-popover-heading-font-size);font-weight:var(--x-popover-heading-font-weight);color:var(--x-popover-heading-color);font-family:inherit;}[part\x3dclose-button]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-popover-close-size);height:var(--x-popover-close-size);background:var(--x-popover-close-bg);color:var(--x-popover-close-color);border-radius:var(--x-popover-close-radius);cursor:pointer;flex-shrink:0;transition:background 100ms ease,color 100ms ease;}[part\x3dclose-button]:hover{background:var(--x-popover-close-bg-hover);color:var(--x-popover-close-color-hover);}[part\x3dclose-button]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-popover-focus-ring);}[part\x3dclose-button][hidden]{display:none;}[part\x3dheader][hidden]{display:none;}[part\x3dbody]{padding:var(--x-popover-body-padding);color:var(--x-popover-body-color);font-size:var(--x-popover-body-font-size);font-family:inherit;}[part\x3dfooter]{padding:var(--x-popover-footer-padding);border-top:var(--x-popover-footer-border);}[part\x3dfooter][hidden]{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}[part\x3dclose-button]{transition:none !important;}}";
12
- e.setAttribute("part","trigger");g.setAttribute("name","trigger");h.setAttribute("part","panel");h.setAttribute("role","dialog");h.setAttribute("inert","");h.setAttribute("data-placement","bottom-start");k.setAttribute("part","arrow");k.setAttribute("aria-hidden","true");m.setAttribute("part","header");p.setAttribute("part","heading");p.setAttribute("id","popover-heading");r.setAttribute("part","close-button");r.setAttribute("type","button");r.setAttribute("aria-label","Close");r.innerHTML='\x3csvg width\x3d"14" height\x3d"14" viewBox\x3d"0 0 14 14" fill\x3d"none" xmlns\x3d"http://www.w3.org/2000/svg" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M1 1L13 13M13 1L1 13" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round"/\x3e\x3c/svg\x3e';
13
- v.setAttribute("part","body");y.setAttribute("part","footer");y.setAttribute("hidden","");A.setAttribute("name","footer");e.appendChild(g);m.appendChild(p);m.appendChild(r);v.appendChild(x);y.appendChild(A);h.appendChild(k);h.appendChild(m);h.appendChild(v);h.appendChild(y);c.appendChild(d);c.appendChild(e);c.appendChild(h);this.__xPopoverRefs={trigger:e,panel:h,header:m,heading:p,closeBtn:r,body:v,footer:y,footerSlot:A}}Eo(this);Co(this);this.__xPopoverHandlers=Do(this);c=$APP.l(this,"__xPopoverRefs");
14
- $APP.n(c)&&(d=$APP.l(this,"__xPopoverHandlers"),$APP.n(d)&&(e=$APP.l(c,"closeBtn"),g=$APP.l(c,"footerSlot"),$APP.l(c,"trigger").addEventListener("click",$APP.l(d,"triggerClick")),e.addEventListener("click",$APP.l(d,"closeBtnClick")),this.addEventListener("focusout",$APP.l(d,"hostFocusout")),g.addEventListener("slotchange",$APP.l(d,"footerSlotchange"))));$APP.n(this.hasAttribute("open"))&&Bo(this);return vo(this)};b.disconnectedCallback=function(){Eo(this);return Co(this)};b.attributeChangedCallback=
15
- function(c){$APP.n($APP.l(this,"__xPopoverRefs"))?(vo(this),c=$APP.C.h(c,"open")?$APP.n(this.hasAttribute("open"))?Bo(this):Co(this):null):c=null;return c};return a},Jo=function(){return $APP.n(customElements.get("x-popover"))?null:customElements.define("x-popover",Io())},uo=new $APP.M(null,"close-label","close-label",-1088385889),to=new $APP.M(null,"no-close?","no-close?",1842227643),ro=new $APP.M(null,"close-label-raw","close-label-raw",798572883),po=new $APP.M(null,"no-close-present?","no-close-present?",
16
- -154717274),qo=new $APP.M(null,"heading-raw","heading-raw",116296555);var so=new $APP.R(null,new $APP.Q(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),Ho="open placement heading close-label no-close disabled".split(" ");$APP.zd(["x-popover-toggle",new $APP.Q(null,2,[$APP.Dj,!0,$APP.Y,new $APP.Q(null,2,[$APP.zj,$APP.Yj,$APP.oi,$APP.X],null)],null),"x-popover-change",new $APP.Q(null,2,[$APP.Dj,!1,$APP.Y,new $APP.Q(null,1,[$APP.zj,$APP.Yj],null)],null)]);$APP.ja("baredom.exports.x_popover.init",Jo);export const init=Jo;
2
+ var Iq=function(a){return document.createElement(a)},Jq=function(a,b,c){return $APP.r(c)?a.setAttribute(b,""):a.removeAttribute(b)},Qq=function(a){var b=$APP.l(a,"__xPopoverRefs");if($APP.r(b)){a=new $APP.P(null,6,[$APP.ai,a.hasAttribute("open"),$APP.Rk,a.hasAttribute("disabled"),Kq,a.hasAttribute("no-close"),Lq,a.getAttribute("heading"),$APP.Wl,a.getAttribute("placement"),Mq,a.getAttribute("close-label")],null);var c=$APP.N(a),d=$APP.G(c,$APP.ai),e=$APP.G(c,$APP.Rk),g=$APP.G(c,Kq),h=$APP.G(c,Lq);
3
+ a=$APP.G(c,$APP.Wl);c=$APP.G(c,Mq);d=$APP.I(d);e=$APP.I(e);g=$APP.I(g);h=$APP.r(h)?h:"";c=$APP.r(c)?c:"Close";a=$APP.J(Nq,a)?a:"bottom-start";e=$APP.N(new $APP.P(null,6,[$APP.Dl,d,$APP.W,e,Oq,g,$APP.Fk,h,Pq,c,$APP.hj,a],null));d=$APP.G(e,$APP.Dl);a=$APP.G(e,Oq);h=$APP.G(e,$APP.Fk);c=$APP.G(e,Pq);g=$APP.G(e,$APP.hj);var k=$APP.l(b,"panel");e=$APP.l(b,"header");var m=$APP.l(b,"heading");b=$APP.l(b,"closeBtn");k.setAttribute("data-placement",g);Jq(k,"inert",$APP.t(d));$APP.O(h,"")?k.setAttribute("aria-labelledby",
4
+ "popover-heading"):k.removeAttribute("aria-labelledby");m.textContent=h;b.setAttribute("aria-label",c);Jq(b,"hidden",a);b=$APP.D.i(h,"");return Jq(e,"hidden",b?a:b)}return null},Rq=function(a,b){b=new CustomEvent("x-popover-toggle",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.t(b.defaultPrevented)},Sq=function(a,b){return a.dispatchEvent(new CustomEvent("x-popover-change",{detail:b,bubbles:!0,composed:!0,cancelable:!1}))},Tq=function(a,b){return $APP.t(a.hasAttribute("disabled"))&&
5
+ $APP.t(a.hasAttribute("open"))&&Rq(a,{open:!0,source:b})?(a.setAttribute("open",""),Sq(a,{open:!0})):null},Uq=function(a,b){var c=$APP.t(a.hasAttribute("disabled"));return $APP.r(c?a.hasAttribute("open"):c)&&Rq(a,{open:!1,source:b})?(a.removeAttribute("open"),Sq(a,{open:!1})):null},Vq=function(a,b){return $APP.r(a.hasAttribute("open"))?Uq(a,b):Tq(a,b)},Wq=function(a){var b=$APP.l(a,"__xPopoverHandlers");if($APP.r(b)){var c=$APP.l(b,"docClick"),d=$APP.l(b,"docKeydown");return setTimeout(function(){var e=
6
+ a.isConnected;return $APP.r($APP.r(e)?a.hasAttribute("open"):e)?(document.addEventListener("click",c),document.addEventListener("keydown",d)):null},0)}return null},Xq=function(a){a=$APP.l(a,"__xPopoverHandlers");if($APP.r(a)){var b=$APP.l(a,"docKeydown");document.removeEventListener("click",$APP.l(a,"docClick"));return document.removeEventListener("keydown",b)}return null},Yq=function(a){return{triggerClick:function(){return Vq(a,"pointer")},closeBtnClick:function(){return Uq(a,"close-button")},hostFocusout:function(b){return $APP.r(a.hasAttribute("open"))?
7
+ (b=b.relatedTarget,b==null||$APP.t(a.contains(b))?Uq(a,"focusout"):null):null},docClick:function(b){return $APP.r(a.hasAttribute("open"))?(b=$APP.xc(b.composedPath()),b=$APP.Wd(function(c){return c===a},b),$APP.r(b)?null:Uq(a,"outside-click")):null},docKeydown:function(b){b=$APP.D.i(b.key,"Escape");return $APP.r(b?a.hasAttribute("open"):b)?Uq(a,"escape"):null},footerSlotchange:function(){var b=$APP.l(a,"__xPopoverRefs");return $APP.r(b)?Jq($APP.l(b,"footer"),"hidden",!($APP.l(b,"footerSlot").assignedNodes().length>
8
+ 0)):null}}},Zq=function(a){var b=$APP.l(a,"__xPopoverRefs");if($APP.r(b)){var c=$APP.l(a,"__xPopoverHandlers");if($APP.r(c)){var d=$APP.l(b,"closeBtn"),e=$APP.l(b,"footerSlot");$APP.l(b,"trigger").removeEventListener("click",$APP.l(c,"triggerClick"));d.removeEventListener("click",$APP.l(c,"closeBtnClick"));a.removeEventListener("focusout",$APP.l(c,"hostFocusout"));e.removeEventListener("slotchange",$APP.l(c,"footerSlotchange"))}}},$q=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
9
+ get:function(){return this.hasAttribute(c)},set:function(d){return Jq(this,c,$APP.I(d))}})},ar=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}})},cr=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return br}});$q(b,"open","open");
10
+ $q(b,"disabled","disabled");$q(b,"noClose","no-close");ar(b,"placement","placement");ar(b,"heading","heading");ar(b,"closeLabel","close-label");b.show=function(){return Tq(this,"programmatic")};b.hide=function(){return Uq(this,"programmatic")};b.toggle=function(){return Vq(this,"programmatic")};b.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xPopoverRefs"))){var c=this.attachShadow({mode:"open"}),d=Iq("style"),e=Iq("span"),g=Iq("slot"),h=Iq("div"),k=Iq("div"),m=Iq("div"),p=Iq("span"),q=Iq("button"),
11
+ w=Iq("div"),x=Iq("slot"),y=Iq("div"),A=Iq("slot");d.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-popover-panel-bg:#ffffff;--x-popover-panel-border:1px solid #e2e8f0;--x-popover-panel-radius:8px;--x-popover-panel-shadow:0 4px 16px rgba(0,0,0,0.12);--x-popover-panel-min-width:12rem;--x-popover-panel-max-width:24rem;--x-popover-panel-max-height:24rem;--x-popover-panel-offset:4px;--x-popover-panel-z:1000;--x-popover-header-padding:0.625rem 0.75rem 0.625rem 0.875rem;--x-popover-header-border:1px solid #e2e8f0;--x-popover-heading-color:#0f172a;--x-popover-heading-font-size:0.9375rem;--x-popover-heading-font-weight:600;--x-popover-close-bg:transparent;--x-popover-close-bg-hover:#f1f5f9;--x-popover-close-color:#64748b;--x-popover-close-color-hover:#0f172a;--x-popover-close-radius:4px;--x-popover-close-size:1.5rem;--x-popover-focus-ring:#60a5fa;--x-popover-body-padding:0.875rem;--x-popover-body-color:#334155;--x-popover-body-font-size:0.9375rem;--x-popover-footer-padding:0.625rem 0.875rem;--x-popover-footer-border:1px solid #e2e8f0;--x-popover-arrow-size:8px;--x-popover-arrow-bg:#ffffff;--x-popover-arrow-border:#e2e8f0;--x-popover-transition-duration:150ms;--x-popover-transition-easing:ease;}@media (prefers-color-scheme:dark){:host{--x-popover-panel-bg:#1e293b;--x-popover-panel-border:1px solid #334155;--x-popover-panel-shadow:0 4px 24px rgba(0,0,0,0.4);--x-popover-header-border:1px solid #334155;--x-popover-heading-color:#e2e8f0;--x-popover-close-bg-hover:#334155;--x-popover-close-color:#94a3b8;--x-popover-close-color-hover:#e2e8f0;--x-popover-focus-ring:#93c5fd;--x-popover-body-color:#cbd5e1;--x-popover-footer-border:1px solid #334155;--x-popover-arrow-bg:#1e293b;--x-popover-arrow-border:#334155;}}[part\x3dtrigger]{display:inline-block;}[part\x3dpanel]{position:absolute;z-index:var(--x-popover-panel-z);box-sizing:border-box;background:var(--x-popover-panel-bg);border:var(--x-popover-panel-border);border-radius:var(--x-popover-panel-radius);box-shadow:var(--x-popover-panel-shadow);min-width:var(--x-popover-panel-min-width);max-width:var(--x-popover-panel-max-width);max-height:var(--x-popover-panel-max-height);overflow-y:auto;visibility:hidden;pointer-events:none;opacity:0;transform:scale(0.96) translateY(-4px);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s var(--x-popover-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;pointer-events:auto;opacity:1;transform:scale(1) translateY(0);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dbottom-start]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:top left;}[part\x3dpanel][data-placement\x3dbottom-end]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:top right;}[part\x3dpanel][data-placement\x3dtop-start]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:bottom left;}[part\x3dpanel][data-placement\x3dtop-end]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:bottom right;}[part\x3darrow]{position:absolute;width:var(--x-popover-arrow-size);height:var(--x-popover-arrow-size);background:var(--x-popover-arrow-bg);transform:rotate(45deg);pointer-events:none;}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{top:calc(var(--x-popover-arrow-size) / -2 - 1px);border-left:1px solid var(--x-popover-arrow-border);border-top:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{right:1rem;}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{bottom:calc(var(--x-popover-arrow-size) / -2 - 1px);border-right:1px solid var(--x-popover-arrow-border);border-bottom:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{right:1rem;}[part\x3dheader]{display:flex;align-items:center;justify-content:space-between;padding:var(--x-popover-header-padding);border-bottom:var(--x-popover-header-border);gap:0.5rem;}[part\x3dheading]{flex:1;font-size:var(--x-popover-heading-font-size);font-weight:var(--x-popover-heading-font-weight);color:var(--x-popover-heading-color);font-family:inherit;}[part\x3dclose-button]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-popover-close-size);height:var(--x-popover-close-size);background:var(--x-popover-close-bg);color:var(--x-popover-close-color);border-radius:var(--x-popover-close-radius);cursor:pointer;flex-shrink:0;transition:background 100ms ease,color 100ms ease;}[part\x3dclose-button]:hover{background:var(--x-popover-close-bg-hover);color:var(--x-popover-close-color-hover);}[part\x3dclose-button]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-popover-focus-ring);}[part\x3dclose-button][hidden]{display:none;}[part\x3dheader][hidden]{display:none;}[part\x3dbody]{padding:var(--x-popover-body-padding);color:var(--x-popover-body-color);font-size:var(--x-popover-body-font-size);font-family:inherit;}[part\x3dfooter]{padding:var(--x-popover-footer-padding);border-top:var(--x-popover-footer-border);}[part\x3dfooter][hidden]{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}[part\x3dclose-button]{transition:none !important;}}";
12
+ e.setAttribute("part","trigger");g.setAttribute("name","trigger");h.setAttribute("part","panel");h.setAttribute("role","dialog");h.setAttribute("inert","");h.setAttribute("data-placement","bottom-start");k.setAttribute("part","arrow");k.setAttribute("aria-hidden","true");m.setAttribute("part","header");p.setAttribute("part","heading");p.setAttribute("id","popover-heading");q.setAttribute("part","close-button");q.setAttribute("type","button");q.setAttribute("aria-label","Close");q.innerHTML='\x3csvg width\x3d"14" height\x3d"14" viewBox\x3d"0 0 14 14" fill\x3d"none" xmlns\x3d"http://www.w3.org/2000/svg" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M1 1L13 13M13 1L1 13" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round"/\x3e\x3c/svg\x3e';
13
+ w.setAttribute("part","body");y.setAttribute("part","footer");y.setAttribute("hidden","");A.setAttribute("name","footer");e.appendChild(g);m.appendChild(p);m.appendChild(q);w.appendChild(x);y.appendChild(A);h.appendChild(k);h.appendChild(m);h.appendChild(w);h.appendChild(y);c.appendChild(d);c.appendChild(e);c.appendChild(h);this.__xPopoverRefs={trigger:e,panel:h,header:m,heading:p,closeBtn:q,body:w,footer:y,footerSlot:A}}Zq(this);Xq(this);this.__xPopoverHandlers=Yq(this);c=$APP.l(this,"__xPopoverRefs");
14
+ $APP.r(c)&&(d=$APP.l(this,"__xPopoverHandlers"),$APP.r(d)&&(e=$APP.l(c,"closeBtn"),g=$APP.l(c,"footerSlot"),$APP.l(c,"trigger").addEventListener("click",$APP.l(d,"triggerClick")),e.addEventListener("click",$APP.l(d,"closeBtnClick")),this.addEventListener("focusout",$APP.l(d,"hostFocusout")),g.addEventListener("slotchange",$APP.l(d,"footerSlotchange"))));$APP.r(this.hasAttribute("open"))&&Wq(this);return Qq(this)};b.disconnectedCallback=function(){Zq(this);return Xq(this)};b.attributeChangedCallback=
15
+ function(c){$APP.r($APP.l(this,"__xPopoverRefs"))?(Qq(this),c=$APP.D.i(c,"open")?$APP.r(this.hasAttribute("open"))?Wq(this):Xq(this):null):c=null;return c};return a},dr=function(){return $APP.r(customElements.get("x-popover"))?null:customElements.define("x-popover",cr())},Pq=new $APP.M(null,"close-label","close-label",-1088385889),Oq=new $APP.M(null,"no-close?","no-close?",1842227643),Mq=new $APP.M(null,"close-label-raw","close-label-raw",798572883),Lq=new $APP.M(null,"heading-raw","heading-raw",
16
+ 116296555),Kq=new $APP.M(null,"no-close-present?","no-close-present?",-154717274);var Nq=new $APP.R(null,new $APP.P(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),br="open placement heading close-label no-close disabled".split(" ");$APP.Sd(["x-popover-toggle",new $APP.P(null,2,[$APP.kl,!0,$APP.U,new $APP.P(null,2,[$APP.hl,$APP.qj,$APP.yk,$APP.Y],null)],null),"x-popover-change",new $APP.P(null,2,[$APP.kl,!1,$APP.U,new $APP.P(null,1,[$APP.hl,$APP.qj],null)],null)]);$APP.ka("baredom.exports.x_popover.init",dr);export const init=dr;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var KJ=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},NJ=function(a){var b=new $APP.Q(null,7,[$APP.si,a.getAttribute("value"),$APP.Ih,a.getAttribute("max"),$APP.th,a.getAttribute("variant"),$APP.Qg,a.getAttribute("size"),$APP.W,a.getAttribute("label"),$APP.rk,a.hasAttribute("show-value"),$APP.Jj,a.hasAttribute("indeterminate")],null);var c=$APP.N(b),d=$APP.H(c,$APP.Ih),e=$APP.H(c,$APP.si),g=$APP.H(c,$APP.th),h=$APP.H(c,$APP.Qg);b=$APP.H(c,$APP.W);var k=$APP.H(c,
3
- $APP.rk);c=$APP.H(c,$APP.Jj);d=KJ(d,100);d=d>0?d:100;e=$APP.Bg.h($APP.Ag.h(KJ(e,0),0),d);g=typeof g==="string"&&$APP.K(LJ,g)?g:"default";h=typeof h==="string"&&$APP.K(MJ,h)?h:"md";c=$APP.J(c);k=$APP.J(k);var m=c?50:$APP.Bg.h($APP.Ag.h(e/d*100,0),100);b=$APP.gf([$APP.th,$APP.rk,$APP.si,$APP.Qg,$APP.Jj,$APP.nk,$APP.Ih,$APP.W,$APP.Zi],[g,k,e,h,c,c?"Loading…":""+$APP.S.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.O("",b)?b:null,m]);var p=$APP.N(b);b=$APP.H(p,$APP.Zi);k=$APP.H(p,$APP.th);d=$APP.H(p,
4
- $APP.rk);h=$APP.H(p,$APP.si);c=$APP.H(p,$APP.Qg);e=$APP.H(p,$APP.nk);g=$APP.H(p,$APP.Jj);m=$APP.H(p,$APP.W);p=$APP.H(p,$APP.Ih);var r=$APP.l(a,"__xProgressCircleBase"),v=$APP.l(a,"__xProgressCircleFill"),x=$APP.l(a,"__xProgressCircleValueNode"),y=$APP.l(a,"__xProgressCircleCompleted"),A=$APP.q(g)&&h>=p,D=$APP.n(g)?75:100*(1-b/100);r.setAttribute("data-variant",k);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");v.setAttribute("stroke-dasharray",""+$APP.S.g(100));
5
- v.setAttribute("stroke-dashoffset",""+$APP.S.g(D));x.textContent=$APP.n($APP.n(d)?$APP.q(g):d)?""+$APP.S.g(Math.round(b))+"%":"";x.style.display=$APP.n($APP.n(d)?$APP.q(g):d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.S.g(h)),a.setAttribute("aria-valuemax",""+$APP.S.g(p)),a.setAttribute("aria-valuetext",
6
- e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");A&&$APP.q(y)&&a.dispatchEvent(new CustomEvent("x-progress-circle-complete",{bubbles:!0,composed:!0,detail:{value:h,max:p}}));a.__xProgressCircleCompleted=$APP.J(A)},OJ=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,
7
- "max",{get:function(){var b=this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"indeterminate",{get:function(){return this.hasAttribute("indeterminate")},set:function(b){return $APP.n(b)?this.setAttribute("indeterminate",""):this.removeAttribute("indeterminate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showValue",{get:function(){return this.hasAttribute("show-value")},
8
- set:function(b){return $APP.n(b)?this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0})},QJ=function(){var a=class extends HTMLElement{};a.observedAttributes=PJ;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xProgressCircleInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElementNS("http://www.w3.org/2000/svg","svg"),g=document.createElementNS("http://www.w3.org/2000/svg",
2
+ var oP=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.r(isNaN(a))?b:a):b},rP=function(a){var b=new $APP.P(null,7,[$APP.ui,a.getAttribute("value"),$APP.Zj,a.getAttribute("max"),$APP.Fh,a.getAttribute("variant"),$APP.rh,a.getAttribute("size"),$APP.T,a.getAttribute("label"),$APP.yj,a.hasAttribute("show-value"),$APP.nl,a.hasAttribute("indeterminate")],null);var c=$APP.N(b),d=$APP.G(c,$APP.Zj),e=$APP.G(c,$APP.ui),g=$APP.G(c,$APP.Fh),h=$APP.G(c,$APP.rh);b=$APP.G(c,$APP.T);var k=$APP.G(c,
3
+ $APP.yj);c=$APP.G(c,$APP.nl);d=oP(d,100);d=d>0?d:100;e=$APP.Zg.i($APP.Yg.i(oP(e,0),0),d);g=typeof g==="string"&&$APP.J(pP,g)?g:"default";h=typeof h==="string"&&$APP.J(qP,h)?h:"md";c=$APP.I(c);k=$APP.I(k);var m=c?50:$APP.Zg.i($APP.Yg.i(e/d*100,0),100);b=$APP.Q([$APP.Fh,$APP.yj,$APP.ui,$APP.rh,$APP.nl,$APP.Nl,$APP.Zj,$APP.T,$APP.Qk],[g,k,e,h,c,c?"Loading…":""+$APP.S.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.O("",b)?b:null,m]);var p=$APP.N(b);b=$APP.G(p,$APP.Qk);k=$APP.G(p,$APP.Fh);d=$APP.G(p,
4
+ $APP.yj);h=$APP.G(p,$APP.ui);c=$APP.G(p,$APP.rh);e=$APP.G(p,$APP.Nl);g=$APP.G(p,$APP.nl);m=$APP.G(p,$APP.T);p=$APP.G(p,$APP.Zj);var q=$APP.l(a,"__xProgressCircleBase"),w=$APP.l(a,"__xProgressCircleFill"),x=$APP.l(a,"__xProgressCircleValueNode"),y=$APP.l(a,"__xProgressCircleCompleted"),A=$APP.t(g)&&h>=p,C=$APP.r(g)?75:100*(1-b/100);q.setAttribute("data-variant",k);q.setAttribute("data-size",c);q.setAttribute("data-indeterminate",$APP.r(g)?"true":"false");w.setAttribute("stroke-dasharray",""+$APP.S.g(100));
5
+ w.setAttribute("stroke-dashoffset",""+$APP.S.g(C));x.textContent=$APP.r($APP.r(d)?$APP.t(g):d)?""+$APP.S.g(Math.round(b))+"%":"";x.style.display=$APP.r($APP.r(d)?$APP.t(g):d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.r(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.S.g(h)),a.setAttribute("aria-valuemax",""+$APP.S.g(p)),a.setAttribute("aria-valuetext",
6
+ e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");A&&$APP.t(y)&&a.dispatchEvent(new CustomEvent("x-progress-circle-complete",{bubbles:!0,composed:!0,detail:{value:h,max:p}}));a.__xProgressCircleCompleted=$APP.I(A)},sP=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.r(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,
7
+ "max",{get:function(){var b=this.getAttribute("max");return $APP.r(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"indeterminate",{get:function(){return this.hasAttribute("indeterminate")},set:function(b){return $APP.r(b)?this.setAttribute("indeterminate",""):this.removeAttribute("indeterminate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showValue",{get:function(){return this.hasAttribute("show-value")},
8
+ set:function(b){return $APP.r(b)?this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0})},uP=function(){var a=class extends HTMLElement{};a.observedAttributes=tP;a.prototype.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xProgressCircleInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElementNS("http://www.w3.org/2000/svg","svg"),g=document.createElementNS("http://www.w3.org/2000/svg",
9
9
  "circle"),h=document.createElementNS("http://www.w3.org/2000/svg","circle"),k=document.createElement("div"),m=document.createElement("span");c.textContent=":host{display:inline-flex;color-scheme:light dark;box-sizing:border-box;--x-progress-circle-size:64px;--x-progress-circle-track-color:rgba(0,0,0,0.10);--x-progress-circle-fill-color:#3b82f6;--x-progress-circle-stroke-width:2.8;--x-progress-circle-value-color:rgba(0,0,0,0.50);--x-progress-circle-transition-duration:0.3s;}@media (prefers-color-scheme:dark){:host{--x-progress-circle-track-color:rgba(255,255,255,0.12);--x-progress-circle-value-color:rgba(255,255,255,0.50);}}[part\x3dbase][data-size\x3d'sm']{--x-progress-circle-size:40px;}[part\x3dbase][data-size\x3d'md']{--x-progress-circle-size:64px;}[part\x3dbase][data-size\x3d'lg']{--x-progress-circle-size:96px;}[part\x3dbase][data-variant\x3d'success']{--x-progress-circle-fill-color:#22c55e;}[part\x3dbase][data-variant\x3d'warning']{--x-progress-circle-fill-color:#f59e0b;}[part\x3dbase][data-variant\x3d'danger']{--x-progress-circle-fill-color:#ef4444;}[part\x3dbase]{position:relative;display:inline-flex;width:var(--x-progress-circle-size);height:var(--x-progress-circle-size);}[part\x3dsvg]{width:100%;height:100%;}[part\x3dtrack]{fill:none;stroke:var(--x-progress-circle-track-color);stroke-width:var(--x-progress-circle-stroke-width);}[part\x3dfill]{fill:none;stroke:var(--x-progress-circle-fill-color);stroke-width:var(--x-progress-circle-stroke-width);stroke-linecap:round;transform:rotate(-90deg);transform-origin:center;transition:stroke-dashoffset var(--x-progress-circle-transition-duration) ease;}[part\x3dcenter]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;}[part\x3dvalue-text]{font-size:calc(var(--x-progress-circle-size) * 0.22);color:var(--x-progress-circle-value-color);font-weight:500;line-height:1;}@keyframes x-progress-circle-spin{from{transform:rotate(-90deg);}to{transform:rotate(270deg);}}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:x-progress-circle-spin 1.2s linear infinite;}@media (prefers-reduced-motion:reduce){[part\x3dfill]{transition:none;}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:none;}}";
10
10
  d.setAttribute("part","base");e.setAttribute("part","svg");e.setAttribute("viewBox","0 0 36 36");e.setAttribute("aria-hidden","true");e.setAttribute("focusable","false");g.setAttribute("part","track");g.setAttribute("cx","18");g.setAttribute("cy","18");g.setAttribute("r","15.9155");h.setAttribute("part","fill");h.setAttribute("cx","18");h.setAttribute("cy","18");h.setAttribute("r","15.9155");k.setAttribute("part","center");m.setAttribute("part","value-text");e.appendChild(g);e.appendChild(h);k.appendChild(m);
11
- d.appendChild(e);d.appendChild(k);b.appendChild(c);b.appendChild(d);this.__xProgressCircleBase=d;this.__xProgressCircleFill=h;this.__xProgressCircleValueNode=m;this.__xProgressCircleInit=!0}NJ(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,"__xProgressCircleInit"))&&NJ(this);return null};OJ(a.prototype);return a},RJ=function(){$APP.n(customElements.get("x-progress-circle"))||customElements.define("x-progress-circle",
12
- QJ());return null};var LJ=new $APP.R(null,new $APP.Q(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),MJ=new $APP.R(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),PJ="value max variant size label show-value indeterminate".split(" ");$APP.zd(["x-progress-circle-complete",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,2,[$APP.si,$APP.U,$APP.Ih,$APP.U],null)],null)]);$APP.ja("baredom.exports.x_progress_circle.init",RJ);export const init=RJ;
11
+ d.appendChild(e);d.appendChild(k);b.appendChild(c);b.appendChild(d);this.__xProgressCircleBase=d;this.__xProgressCircleFill=h;this.__xProgressCircleValueNode=m;this.__xProgressCircleInit=!0}rP(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,"__xProgressCircleInit"))&&rP(this);return null};sP(a.prototype);return a},vP=function(){$APP.r(customElements.get("x-progress-circle"))||customElements.define("x-progress-circle",
12
+ uP());return null};var pP=new $APP.R(null,new $APP.P(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),qP=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),tP="value max variant size label show-value indeterminate".split(" ");$APP.Sd(["x-progress-circle-complete",new $APP.P(null,1,[$APP.U,new $APP.P(null,2,[$APP.ui,$APP.V,$APP.Zj,$APP.V],null)],null)]);$APP.ka("baredom.exports.x_progress_circle.init",vP);export const init=vP;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var oR=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},rR=function(a){var b=new $APP.Q(null,7,[$APP.si,a.getAttribute("value"),$APP.Ih,a.getAttribute("max"),$APP.th,a.getAttribute("variant"),$APP.Qg,a.getAttribute("size"),$APP.W,a.getAttribute("label"),$APP.rk,a.hasAttribute("show-value"),$APP.Jj,a.hasAttribute("indeterminate")],null);var c=$APP.N(b),d=$APP.H(c,$APP.Ih),e=$APP.H(c,$APP.si),g=$APP.H(c,$APP.th),h=$APP.H(c,$APP.Qg);b=$APP.H(c,$APP.W);var k=$APP.H(c,
3
- $APP.rk);c=$APP.H(c,$APP.Jj);d=oR(d,100);d=d>0?d:100;e=$APP.Bg.h($APP.Ag.h(oR(e,0),0),d);g=typeof g==="string"&&$APP.K(pR,g)?g:"default";h=typeof h==="string"&&$APP.K(qR,h)?h:"md";c=$APP.J(c);k=$APP.J(k);var m=c?50:$APP.Bg.h($APP.Ag.h(e/d*100,0),100);b=$APP.gf([$APP.th,$APP.rk,$APP.si,$APP.Qg,$APP.Jj,$APP.nk,$APP.Ih,$APP.W,$APP.Zi],[g,k,e,h,c,c?"Loading…":""+$APP.S.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.O("",b)?b:null,m]);var p=$APP.N(b);b=$APP.H(p,$APP.Zi);k=$APP.H(p,$APP.th);d=$APP.H(p,
4
- $APP.rk);h=$APP.H(p,$APP.si);c=$APP.H(p,$APP.Qg);e=$APP.H(p,$APP.nk);g=$APP.H(p,$APP.Jj);m=$APP.H(p,$APP.W);p=$APP.H(p,$APP.Ih);var r=$APP.l(a,"__xProgressBase"),v=$APP.l(a,"__xProgressHeader"),x=$APP.l(a,"__xProgressFill"),y=$APP.l(a,"__xProgressLabel"),A=$APP.l(a,"__xProgressValue");var D=(D=m!=null)?D:d;var G=$APP.l(a,"__xProgressCompleted"),I=$APP.q(g)&&h>=p;r.setAttribute("data-variant",k);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");x.style.width=
5
- $APP.n(g)?"40%":""+$APP.S.g(b.toFixed(2))+"%";v.style.display=$APP.n(D)?"flex":"none";y.textContent=$APP.n(m)?m:"";y.style.display=m!=null?"":"none";A.textContent=$APP.n($APP.n(d)?$APP.q(g):d)?""+$APP.S.g(Math.round(b))+"%":"";A.style.display=$APP.n(d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.S.g(h)),
6
- a.setAttribute("aria-valuemax",""+$APP.S.g(p)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");I&&$APP.q(G)&&a.dispatchEvent(new CustomEvent("x-progress-complete",{bubbles:!0,composed:!0,detail:{value:h,max:p}}));a.__xProgressCompleted=$APP.J(I)},sR=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",
7
- ""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"max",{get:function(){var b=this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"indeterminate",{get:function(){return this.hasAttribute("indeterminate")},set:function(b){return $APP.n(b)?this.setAttribute("indeterminate",""):this.removeAttribute("indeterminate")},enumerable:!0,configurable:!0});Object.defineProperty(a,
8
- "showValue",{get:function(){return this.hasAttribute("show-value")},set:function(b){return $APP.n(b)?this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0});Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:""},set:function(b){return this.setAttribute("variant",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?
9
- b:""},set:function(b){return this.setAttribute("size",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){return this.getAttribute("label")},set:function(b){return $APP.n(b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},uR=function(){var a=class extends HTMLElement{};a.observedAttributes=tR;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xProgressInit"))){var b=this.attachShadow({mode:"open"}),
2
+ var DZ=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.r(isNaN(a))?b:a):b},GZ=function(a){var b=new $APP.P(null,7,[$APP.ui,a.getAttribute("value"),$APP.Zj,a.getAttribute("max"),$APP.Fh,a.getAttribute("variant"),$APP.rh,a.getAttribute("size"),$APP.T,a.getAttribute("label"),$APP.yj,a.hasAttribute("show-value"),$APP.nl,a.hasAttribute("indeterminate")],null);var c=$APP.N(b),d=$APP.G(c,$APP.Zj),e=$APP.G(c,$APP.ui),g=$APP.G(c,$APP.Fh),h=$APP.G(c,$APP.rh);b=$APP.G(c,$APP.T);var k=$APP.G(c,
3
+ $APP.yj);c=$APP.G(c,$APP.nl);d=DZ(d,100);d=d>0?d:100;e=$APP.Zg.i($APP.Yg.i(DZ(e,0),0),d);g=typeof g==="string"&&$APP.J(EZ,g)?g:"default";h=typeof h==="string"&&$APP.J(FZ,h)?h:"md";c=$APP.I(c);k=$APP.I(k);var m=c?50:$APP.Zg.i($APP.Yg.i(e/d*100,0),100);b=$APP.Q([$APP.Fh,$APP.yj,$APP.ui,$APP.rh,$APP.nl,$APP.Nl,$APP.Zj,$APP.T,$APP.Qk],[g,k,e,h,c,c?"Loading…":""+$APP.S.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.O("",b)?b:null,m]);var p=$APP.N(b);b=$APP.G(p,$APP.Qk);k=$APP.G(p,$APP.Fh);d=$APP.G(p,
4
+ $APP.yj);h=$APP.G(p,$APP.ui);c=$APP.G(p,$APP.rh);e=$APP.G(p,$APP.Nl);g=$APP.G(p,$APP.nl);m=$APP.G(p,$APP.T);p=$APP.G(p,$APP.Zj);var q=$APP.l(a,"__xProgressBase"),w=$APP.l(a,"__xProgressHeader"),x=$APP.l(a,"__xProgressFill"),y=$APP.l(a,"__xProgressLabel"),A=$APP.l(a,"__xProgressValue");var C=(C=m!=null)?C:d;var E=$APP.l(a,"__xProgressCompleted"),H=$APP.t(g)&&h>=p;q.setAttribute("data-variant",k);q.setAttribute("data-size",c);q.setAttribute("data-indeterminate",$APP.r(g)?"true":"false");x.style.width=
5
+ $APP.r(g)?"40%":""+$APP.S.g(b.toFixed(2))+"%";w.style.display=$APP.r(C)?"flex":"none";y.textContent=$APP.r(m)?m:"";y.style.display=m!=null?"":"none";A.textContent=$APP.r($APP.r(d)?$APP.t(g):d)?""+$APP.S.g(Math.round(b))+"%":"";A.style.display=$APP.r(d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.r(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.S.g(h)),
6
+ a.setAttribute("aria-valuemax",""+$APP.S.g(p)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");H&&$APP.t(E)&&a.dispatchEvent(new CustomEvent("x-progress-complete",{bubbles:!0,composed:!0,detail:{value:h,max:p}}));a.__xProgressCompleted=$APP.I(H)},HZ=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.r(b)?b:"0"},set:function(b){return this.setAttribute("value",
7
+ ""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"max",{get:function(){var b=this.getAttribute("max");return $APP.r(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"indeterminate",{get:function(){return this.hasAttribute("indeterminate")},set:function(b){return $APP.r(b)?this.setAttribute("indeterminate",""):this.removeAttribute("indeterminate")},enumerable:!0,configurable:!0});Object.defineProperty(a,
8
+ "showValue",{get:function(){return this.hasAttribute("show-value")},set:function(b){return $APP.r(b)?this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0});Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.r(b)?b:""},set:function(b){return this.setAttribute("variant",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.r(b)?
9
+ b:""},set:function(b){return this.setAttribute("size",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){return this.getAttribute("label")},set:function(b){return $APP.r(b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},JZ=function(){var a=class extends HTMLElement{};a.observedAttributes=IZ;a.prototype.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xProgressInit"))){var b=this.attachShadow({mode:"open"}),
10
10
  c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("span"),k=document.createElement("div"),m=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;box-sizing:border-box;--x-progress-border-radius:9999px;--x-progress-track-color:rgba(0,0,0,0.10);--x-progress-fill-color:#3b82f6;--x-progress-label-color:rgba(0,0,0,0.60);--x-progress-value-color:rgba(0,0,0,0.50);}@media (prefers-color-scheme:dark){:host{--x-progress-track-color:rgba(255,255,255,0.12);--x-progress-label-color:rgba(255,255,255,0.60);--x-progress-value-color:rgba(255,255,255,0.50);}}[part\x3dbase][data-size\x3d'sm']{--x-progress-height:4px;}[part\x3dbase][data-size\x3d'md']{--x-progress-height:8px;}[part\x3dbase][data-size\x3d'lg']{--x-progress-height:12px;}[part\x3dbase][data-variant\x3d'success']{--x-progress-fill-color:#22c55e;}[part\x3dbase][data-variant\x3d'warning']{--x-progress-fill-color:#f59e0b;}[part\x3dbase][data-variant\x3d'danger']{--x-progress-fill-color:#ef4444;}[part\x3dbase]{width:100%;box-sizing:border-box;}[part\x3dheader]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px;}[part\x3dlabel-text]{font-size:0.875rem;color:var(--x-progress-label-color);font-weight:500;}[part\x3dvalue-text]{font-size:0.8125rem;color:var(--x-progress-value-color);}[part\x3dtrack]{height:var(--x-progress-height,8px);border-radius:var(--x-progress-border-radius,9999px);background:var(--x-progress-track-color);overflow:hidden;position:relative;}[part\x3dfill]{height:100%;background:var(--x-progress-fill-color);border-radius:var(--x-progress-border-radius,9999px);transition:width 0.3s ease;width:0%;}@keyframes x-progress-indeterminate{0%{transform:translateX(-100%) scaleX(0.5);}50%{transform:translateX(60%) scaleX(0.8);}100%{transform:translateX(200%) scaleX(0.5);}}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:x-progress-indeterminate 1.5s ease infinite;width:40%;transform-origin:left center;}@media (prefers-reduced-motion:reduce){[part\x3dfill]{transition:none;}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:none;width:50%;}}";
11
- d.setAttribute("part","base");e.setAttribute("part","header");g.setAttribute("part","label-text");h.setAttribute("part","value-text");k.setAttribute("part","track");m.setAttribute("part","fill");e.appendChild(g);e.appendChild(h);k.appendChild(m);d.appendChild(e);d.appendChild(k);b.appendChild(c);b.appendChild(d);this.__xProgressBase=d;this.__xProgressHeader=e;this.__xProgressFill=m;this.__xProgressLabel=g;this.__xProgressValue=h;this.__xProgressInit=!0}rR(this);return null};a.prototype.disconnectedCallback=
12
- function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&$APP.n($APP.l(this,"__xProgressInit"))&&rR(this);return null};sR(a.prototype);return a},vR=function(){$APP.n(customElements.get("x-progress"))||customElements.define("x-progress",uR());return null};var pR=new $APP.R(null,new $APP.Q(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),qR=new $APP.R(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),tR="value max variant size label show-value indeterminate".split(" ");$APP.zd(["x-progress-complete",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,2,[$APP.si,$APP.U,$APP.Ih,$APP.U],null)],null)]);$APP.ja("baredom.exports.x_progress.init",vR);export const init=vR;
11
+ d.setAttribute("part","base");e.setAttribute("part","header");g.setAttribute("part","label-text");h.setAttribute("part","value-text");k.setAttribute("part","track");m.setAttribute("part","fill");e.appendChild(g);e.appendChild(h);k.appendChild(m);d.appendChild(e);d.appendChild(k);b.appendChild(c);b.appendChild(d);this.__xProgressBase=d;this.__xProgressHeader=e;this.__xProgressFill=m;this.__xProgressLabel=g;this.__xProgressValue=h;this.__xProgressInit=!0}GZ(this);return null};a.prototype.disconnectedCallback=
12
+ function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&$APP.r($APP.l(this,"__xProgressInit"))&&GZ(this);return null};HZ(a.prototype);return a},KZ=function(){$APP.r(customElements.get("x-progress"))||customElements.define("x-progress",JZ());return null};var EZ=new $APP.R(null,new $APP.P(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),FZ=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),IZ="value max variant size label show-value indeterminate".split(" ");$APP.Sd(["x-progress-complete",new $APP.P(null,1,[$APP.U,new $APP.P(null,2,[$APP.ui,$APP.V,$APP.Zj,$APP.V],null)],null)]);$APP.ka("baredom.exports.x_progress.init",KZ);export const init=KZ;
package/dist/x-radio.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var $o=function(a,b,c){return a.setAttribute(b,c)},ap=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},bp=function(a){a=$APP.gf([$APP.Ai,$APP.aj,$APP.Tg,$APP.jh,$APP.bj,$APP.Cj,$APP.Rj,$APP.Nj,$APP.oj],[a.getAttribute("name"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.getAttribute("aria-labelledby"),a.hasAttribute("checked"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.N(a);a=
3
- $APP.H(b,$APP.Nj);var c=$APP.H(b,$APP.oj),d=$APP.H(b,$APP.Ai),e=$APP.H(b,$APP.aj),g=$APP.H(b,$APP.Tg),h=$APP.H(b,$APP.jh),k=$APP.H(b,$APP.bj),m=$APP.H(b,$APP.Cj);b=$APP.H(b,$APP.Rj);k=$APP.J(k);g=$APP.J(g);return $APP.gf([$APP.zh,$APP.uh,$APP.uk,$APP.tj,$APP.$g,$APP.mj,$APP.si,$APP.ek,$APP.ok,$APP.cj,$APP.V],[g,k?"true":"false",$APP.J(m),k,$APP.n(g)?k:!0,d,b!=null?b:"on",h,c,a,$APP.J(e)])},cp=function(a){var b=$APP.l(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.l(b,"control");b=bp(a);var d=$APP.V.g(b),
4
- e=$APP.tj.g(b);$o(c,"aria-checked",$APP.uh.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");$o(c,"aria-required",$APP.n($APP.zh.g(b))?"true":"false");$o(c,"aria-readonly",$APP.n($APP.uk.g(b))?"true":"false");var g=$APP.cj.g(b);$APP.n(g)?c.setAttribute("aria-label",g):c.removeAttribute("aria-label");g=$APP.ek.g(b);$APP.n(g)?c.setAttribute("aria-labelledby",g):c.removeAttribute("aria-labelledby");g=$APP.ok.g(b);$APP.n(g)?c.setAttribute("aria-describedby",g):c.removeAttribute("aria-describedby");
5
- $APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");ap(a,"data-checked",e);ap(a,"data-disabled",d);a=$APP.l(a,"__xRadioInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.si.g(b):null):null}return null},dp=function(a){var b=a.getAttribute("name"),c=$APP.n(a.form)?a.form:null;c=$APP.n(c)?c:document;if($APP.n($APP.n(b)?$APP.O(b,""):b)){var d=[];c.querySelectorAll("x-radio").forEach(function(e){return $APP.C.h(e.getAttribute("name"),b)?d.push(e):null});return d}return[a]},ep=
6
- function(a){a=dp(a);var b=a.find(function(d){return d.hasAttribute("checked")}),c=a.length>0?a[0]:null;return a.forEach(function(d){var e=$APP.l(d,"__xRadioRefs");return $APP.n(e)?(e=$APP.l(e,"control"),d=$APP.n(b)?$APP.C.h(d,b)?0:-1:$APP.C.h(d,c)?0:-1,e.tabIndex=d):null})},fp=function(a,b){b=new CustomEvent("x-radio-change-request",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.q(b.defaultPrevented)},gp=function(a,b){return a.dispatchEvent(new CustomEvent("x-radio-change",
7
- {detail:b,bubbles:!0,composed:!0,cancelable:!1}))},hp=function(a){var b=bp(a),c=$APP.V.g(b),d=$APP.uk.g(b),e=$APP.tj.g(b);if($APP.n($APP.n(c)?c:$APP.n(d)?d:e))return null;b=$APP.si.g(b);return fp(a,{value:b,previousChecked:!1,nextChecked:!0})?(a.setAttribute("checked",""),cp(a),dp(a).forEach(function(g){var h=$APP.O(g,a);return $APP.n(h?g.hasAttribute("checked"):h)?(g.removeAttribute("checked"),cp(g)):null}),ep(a),gp(a,{value:b,checked:!0})):null},ip=function(a){a=$APP.l(a,"__xRadioRefs");return $APP.n(a)?
8
- $APP.l(a,"control").focus():null},jp=function(a){return function(b){var c=b.key,d=dp(a),e=d.length,g=d.indexOf(a);if($APP.C.h(c," ")||$APP.C.h(c,"Enter"))return b.preventDefault(),hp(a);if($APP.C.h(c,"ArrowDown")||$APP.C.h(c,"ArrowRight")){if(b.preventDefault(),e>0)return b=d[$APP.Sc(g+1,e)],hp(b),ip(b)}else if($APP.C.h(c,"ArrowUp")||$APP.C.h(c,"ArrowLeft"))if(b.preventDefault(),e>0)return b=d[$APP.Sc(g-1,e)],hp(b),ip(b);return null}},kp=function(a){return function(){return hp(a)}},Ap=function(a){var b=
9
- $APP.l(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.l(a,"__xRadioHandlers");if($APP.n(c)){b=$APP.l(b,"control");a.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xRadioHandlers=null;return}}return null},Bp=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return ap(this,c,$APP.J(d))}})},Cp=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
10
- get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.O(d)?$o(this,c,""+$APP.S.g(d)):this.removeAttribute(c)}})},Ep=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return Dp}});Bp(b,"checked","checked");Bp(b,"disabled","disabled");Bp(b,"readOnly","readonly");Bp(b,"required","required");Cp(b,"name","name");Cp(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.l(this,
2
+ var ur=function(a,b,c){return a.setAttribute(b,c)},vr=function(a,b,c){return $APP.r(c)?a.setAttribute(b,""):a.removeAttribute(b)},wr=function(a){a=$APP.Q([$APP.Ek,$APP.Rk,$APP.sh,$APP.Dh,$APP.Mi,$APP.cj,$APP.vl,$APP.kj,$APP.Ui],[a.getAttribute("name"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.getAttribute("aria-labelledby"),a.hasAttribute("checked"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.N(a);a=
3
+ $APP.G(b,$APP.kj);var c=$APP.G(b,$APP.Ui),d=$APP.G(b,$APP.Ek),e=$APP.G(b,$APP.Rk),g=$APP.G(b,$APP.sh),h=$APP.G(b,$APP.Dh),k=$APP.G(b,$APP.Mi),m=$APP.G(b,$APP.cj);b=$APP.G(b,$APP.vl);k=$APP.I(k);g=$APP.I(g);return $APP.Q([$APP.Lh,$APP.Gh,$APP.Sl,$APP.Wi,$APP.xh,$APP.Si,$APP.ui,$APP.sj,$APP.Ol,$APP.Tk,$APP.W],[g,k?"true":"false",$APP.I(m),k,$APP.r(g)?k:!0,d,b!=null?b:"on",h,c,a,$APP.I(e)])},xr=function(a){var b=$APP.l(a,"__xRadioRefs");if($APP.r(b)){var c=$APP.l(b,"control");b=wr(a);var d=$APP.W.g(b),
4
+ e=$APP.Wi.g(b);ur(c,"aria-checked",$APP.Gh.g(b));c.setAttribute("aria-disabled",$APP.r(d)?"true":"false");ur(c,"aria-required",$APP.r($APP.Lh.g(b))?"true":"false");ur(c,"aria-readonly",$APP.r($APP.Sl.g(b))?"true":"false");var g=$APP.Tk.g(b);$APP.r(g)?c.setAttribute("aria-label",g):c.removeAttribute("aria-label");g=$APP.sj.g(b);$APP.r(g)?c.setAttribute("aria-labelledby",g):c.removeAttribute("aria-labelledby");g=$APP.Ol.g(b);$APP.r(g)?c.setAttribute("aria-describedby",g):c.removeAttribute("aria-describedby");
5
+ $APP.r(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");vr(a,"data-checked",e);vr(a,"data-disabled",d);a=$APP.l(a,"__xRadioInternals");return $APP.r(a)?a.setFormValue($APP.r(e)?$APP.ui.g(b):null):null}return null},yr=function(a){var b=a.getAttribute("name"),c=$APP.r(a.form)?a.form:null;c=$APP.r(c)?c:document;if($APP.r($APP.r(b)?$APP.O(b,""):b)){var d=[];c.querySelectorAll("x-radio").forEach(function(e){return $APP.D.i(e.getAttribute("name"),b)?d.push(e):null});return d}return[a]},zr=
6
+ function(a){a=yr(a);var b=a.find(function(d){return d.hasAttribute("checked")}),c=a.length>0?a[0]:null;return a.forEach(function(d){var e=$APP.l(d,"__xRadioRefs");return $APP.r(e)?(e=$APP.l(e,"control"),d=$APP.r(b)?$APP.D.i(d,b)?0:-1:$APP.D.i(d,c)?0:-1,e.tabIndex=d):null})},Ar=function(a,b){b=new CustomEvent("x-radio-change-request",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.t(b.defaultPrevented)},Pr=function(a,b){return a.dispatchEvent(new CustomEvent("x-radio-change",
7
+ {detail:b,bubbles:!0,composed:!0,cancelable:!1}))},Qr=function(a){var b=wr(a),c=$APP.W.g(b),d=$APP.Sl.g(b),e=$APP.Wi.g(b);if($APP.r($APP.r(c)?c:$APP.r(d)?d:e))return null;b=$APP.ui.g(b);return Ar(a,{value:b,previousChecked:!1,nextChecked:!0})?(a.setAttribute("checked",""),xr(a),yr(a).forEach(function(g){var h=$APP.O(g,a);return $APP.r(h?g.hasAttribute("checked"):h)?(g.removeAttribute("checked"),xr(g)):null}),zr(a),Pr(a,{value:b,checked:!0})):null},Rr=function(a){a=$APP.l(a,"__xRadioRefs");return $APP.r(a)?
8
+ $APP.l(a,"control").focus():null},Sr=function(a){return function(b){var c=b.key,d=yr(a),e=d.length,g=d.indexOf(a);if($APP.D.i(c," ")||$APP.D.i(c,"Enter"))return b.preventDefault(),Qr(a);if($APP.D.i(c,"ArrowDown")||$APP.D.i(c,"ArrowRight")){if(b.preventDefault(),e>0)return b=d[$APP.hd(g+1,e)],Qr(b),Rr(b)}else if($APP.D.i(c,"ArrowUp")||$APP.D.i(c,"ArrowLeft"))if(b.preventDefault(),e>0)return b=d[$APP.hd(g-1,e)],Qr(b),Rr(b);return null}},Tr=function(a){return function(){return Qr(a)}},Ur=function(a){var b=
9
+ $APP.l(a,"__xRadioRefs");if($APP.r(b)){var c=$APP.l(a,"__xRadioHandlers");if($APP.r(c)){b=$APP.l(b,"control");a.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xRadioHandlers=null;return}}return null},Vr=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return vr(this,c,$APP.I(d))}})},Wr=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
10
+ get:function(){var d=this.getAttribute(c);return $APP.r(d)?d:null},set:function(d){return d!=null&&$APP.O(d)?ur(this,c,""+$APP.S.g(d)):this.removeAttribute(c)}})},Yr=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return Xr}});Vr(b,"checked","checked");Vr(b,"disabled","disabled");Vr(b,"readOnly","readonly");Vr(b,"required","required");Wr(b,"name","name");Wr(b,"value","value");b.connectedCallback=function(){if(!$APP.r($APP.l(this,
11
11
  "__xRadioRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("button"),g=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-radio-size:16px;--x-radio-border-width:2px;--x-radio-border-color:#6b7280;--x-radio-bg:#ffffff;--x-radio-checked-color:#2563eb;--x-radio-dot-size:6px;--x-radio-focus-ring:#60a5fa;--x-radio-disabled-opacity:0.45;--x-radio-transition:background 120ms ease,border-color 120ms ease;}@media (prefers-color-scheme:dark){:host{--x-radio-border-color:#9ca3af;--x-radio-bg:#1f2937;--x-radio-checked-color:#3b82f6;--x-radio-focus-ring:#93c5fd;}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-radio-size);height:var(--x-radio-size);border:var(--x-radio-border-width) solid var(--x-radio-border-color);border-radius:50%;background:var(--x-radio-bg);transition:var(--x-radio-transition);cursor:pointer;flex-shrink:0;position:relative;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-radio-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-radio-focus-ring);}:host([data-checked]) [part\x3dcontrol]{border-color:var(--x-radio-checked-color);}[part\x3ddot]{display:block;width:var(--x-radio-dot-size);height:var(--x-radio-dot-size);border-radius:50%;background:var(--x-radio-checked-color);opacity:0;transition:opacity 100ms ease;}:host([data-checked]) [part\x3ddot]{opacity:1;}@media (prefers-reduced-motion:reduce){[part\x3dcontrol]{transition:none;}[part\x3ddot]{transition:none;}}";
12
- e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","radio");g.setAttribute("part","dot");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xRadioRefs={root:c,control:e,dot:g};$APP.n(this.attachInternals)&&(this.__xRadioInternals=this.attachInternals())}Ap(this);c=$APP.l(this,"__xRadioRefs");$APP.n(c)&&(c=$APP.l(c,"control"),d=kp(this),e=jp(this),g={click:d,keydown:e},this.addEventListener("click",d),c.addEventListener("keydown",e),this.__xRadioHandlers=
13
- g);cp(this);return ep(this)};b.disconnectedCallback=function(){return Ap(this)};b.attributeChangedCallback=function(){return cp(this)};b.formDisabledCallback=function(c){ap(this,"disabled",$APP.J(c));return cp(this)};b.formResetCallback=function(){this.removeAttribute("checked");return cp(this)};return a},Fp=function(){return $APP.n(customElements.get("x-radio"))?null:customElements.define("x-radio",Ep())};var Dp="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.zd(["x-radio-change-request",new $APP.Q(null,2,[$APP.Dj,!0,$APP.Y,new $APP.Q(null,3,[$APP.si,$APP.X,$APP.Rg,$APP.Yj,$APP.kj,$APP.Yj],null)],null),"x-radio-change",new $APP.Q(null,2,[$APP.Dj,!1,$APP.Y,new $APP.Q(null,2,[$APP.si,$APP.X,$APP.ik,$APP.Yj],null)],null)]);$APP.ja("baredom.exports.x_radio.init",Fp);export const init=Fp;
12
+ e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","radio");g.setAttribute("part","dot");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xRadioRefs={root:c,control:e,dot:g};$APP.r(this.attachInternals)&&(this.__xRadioInternals=this.attachInternals())}Ur(this);c=$APP.l(this,"__xRadioRefs");$APP.r(c)&&(c=$APP.l(c,"control"),d=Tr(this),e=Sr(this),g={click:d,keydown:e},this.addEventListener("click",d),c.addEventListener("keydown",e),this.__xRadioHandlers=
13
+ g);xr(this);return zr(this)};b.disconnectedCallback=function(){return Ur(this)};b.attributeChangedCallback=function(){return xr(this)};b.formDisabledCallback=function(c){vr(this,"disabled",$APP.I(c));return xr(this)};b.formResetCallback=function(){this.removeAttribute("checked");return xr(this)};return a},Zr=function(){return $APP.r(customElements.get("x-radio"))?null:customElements.define("x-radio",Yr())};var Xr="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.Sd(["x-radio-change-request",new $APP.P(null,2,[$APP.kl,!0,$APP.U,new $APP.P(null,3,[$APP.ui,$APP.Y,$APP.Ej,$APP.qj,$APP.Xk,$APP.qj],null)],null),"x-radio-change",new $APP.P(null,2,[$APP.kl,!1,$APP.U,new $APP.P(null,2,[$APP.ui,$APP.Y,$APP.Hl,$APP.qj],null)],null)]);$APP.ka("baredom.exports.x_radio.init",Zr);export const init=Zr;
@@ -1,14 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var sF=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?25:Math.min(100,Math.max(1,a))}return 25},tF=function(a){if(typeof a==="string"){a=parseInt(a.trim(),10);var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?800:Math.min(5E3,Math.max(100,a))}return 800},uF=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?.04:Math.min(.2,Math.max(.005,a))}return.04},wF=function(a){var b=$APP.l(a,
3
- "__xRippleRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot"),g=document.createElementNS("http://www.w3.org/2000/svg","svg");c.textContent=":host{display:inline-block;position:relative;}:host([disabled]){cursor:default;}[part\x3dcontainer]{display:block;width:100%;height:100%;}";d.setAttribute("part","container");d.appendChild(e);g.setAttribute("part","filters");g.style.position="absolute";
4
- g.style.width="0";g.style.height="0";g.style.overflow="hidden";b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xRippleRefs=new $APP.Q(null,3,[$APP.Yh,b,$APP.xj,d,vF,g],null);a.__xRippleCounter=0;a.__xRippleFrames=[];return $APP.l(a,"__xRippleRefs")},DF=function(a){a=new $APP.Q(null,4,[xF,a.getAttribute("intensity"),yF,a.getAttribute("duration"),zF,a.getAttribute("frequency"),$APP.aj,a.hasAttribute("disabled")],null);var b=$APP.N(a);a=$APP.H(b,xF);var c=$APP.H(b,yF),d=$APP.H(b,zF);b=$APP.H(b,
5
- $APP.aj);return new $APP.Q(null,4,[AF,sF(a),BF,tF(c),CF,uF(d),$APP.V,$APP.J(b)],null)},HF=function(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feTurbulence"),g=document.createElementNS("http://www.w3.org/2000/svg","feDisplacementMap");d.setAttribute("id",b);d.setAttribute("x","-10%");d.setAttribute("y","-10%");d.setAttribute("width","120%");d.setAttribute("height","120%");e.setAttribute("type","turbulence");
6
- e.setAttribute("baseFrequency",""+$APP.S.g(c));e.setAttribute("numOctaves","3");e.setAttribute("seed",""+$APP.S.g(Math.floor(Math.random()*1E3)));e.setAttribute("result","turbulence");g.setAttribute("in","SourceGraphic");g.setAttribute("in2","turbulence");g.setAttribute("scale","0");g.setAttribute("xChannelSelector","R");g.setAttribute("yChannelSelector","G");d.appendChild(e);d.appendChild(g);a.appendChild(d);return new $APP.Q(null,3,[EF,d,FF,e,GF,g],null)},IF=function(a,b){var c=DF(a);if(!$APP.n($APP.V.g(c))){c=
7
- $APP.N(c);var d=$APP.H(c,AF),e=$APP.H(c,BF),g=$APP.H(c,CF);c=wF(a);c=$APP.N(c);var h=$APP.H(c,$APP.xj),k=$APP.H(c,vF),m=$APP.l(a,"__xRippleCounter");c="xr-"+$APP.S.g(m);a.__xRippleCounter=m+1;m=HF(k,c,g);m=$APP.N(m);var p=$APP.H(m,EF),r=$APP.H(m,FF),v=$APP.H(m,GF),x=b.clientX,y=b.clientY,A=performance.now(),D=$APP.l(a,"__xRippleFrames");b=$APP.J(window.matchMedia("(prefers-reduced-motion:reduce)").matches);h.style.filter="url(#"+$APP.S.g(c)+")";a.dispatchEvent(new CustomEvent("x-ripple-effect-start",
8
- {detail:{x,y},bubbles:!0,composed:!0}));b?(v.setAttribute("scale",""+$APP.S.g(d/2)),b=requestAnimationFrame(function(){v.setAttribute("scale","0");k.removeChild(p);h.style.filter="";return a.dispatchEvent(new CustomEvent("x-ripple-effect-end",{detail:{x,y},bubbles:!0,composed:!0}))})):b=requestAnimationFrame(function I(){var F=performance.now()-A;F=Math.min(1,F/e);var P=1-F;P=1-P*P*P;var la=g*(1-P*.7);v.setAttribute("scale",""+$APP.S.g(d*(1-P)));r.setAttribute("baseFrequency",""+$APP.S.g(la));if(F>=
9
- 1)return k.removeChild(p),k.childNodes.length===0&&(h.style.filter=""),a.dispatchEvent(new CustomEvent("x-ripple-effect-end",{detail:{x,y},bubbles:!0,composed:!0}));F=requestAnimationFrame(I);return D.push(F)});D.push(b)}},JF=function(a){function b(c){c.button===0&&IF(a,c);return null}a.addEventListener("pointerdown",b);a.__xRippleHandler=b},KF=function(a){var b=$APP.l(a,"__xRippleFrames");if($APP.n(b)){for(var c=b.length,d=0;;)if(d<c)cancelAnimationFrame(b[d]),d+=1;else break;b.length=0}b=$APP.l(a,
10
- "__xRippleRefs");if($APP.n(b)){c=$APP.N(b);b=$APP.H(c,vF);for(c=$APP.H(c,$APP.xj);;)if(d=b.firstChild,$APP.n(d))b.removeChild(d);else break;c.style.filter=""}b=$APP.l(a,"__xRippleHandler");$APP.n(b)&&(a.removeEventListener("pointerdown",b),a.__xRippleHandler=null)},LF=function(a){Object.defineProperty(a,"intensity",{get:function(){return sF(this.getAttribute("intensity"))},set:function(b){return b==null?this.removeAttribute("intensity"):this.setAttribute("intensity",""+$APP.S.g(b))},enumerable:!0,
11
- configurable:!0});Object.defineProperty(a,"duration",{get:function(){return tF(this.getAttribute("duration"))},set:function(b){return b==null?this.removeAttribute("duration"):this.setAttribute("duration",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"frequency",{get:function(){return uF(this.getAttribute("frequency"))},set:function(b){return b==null?this.removeAttribute("frequency"):this.setAttribute("frequency",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,
12
- "disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},NF=function(){var a=class extends HTMLElement{};a.observedAttributes=MF;a.prototype.connectedCallback=function(){wF(this);KF(this);JF(this);return null};a.prototype.disconnectedCallback=function(){KF(this);return null};a.prototype.attributeChangedCallback=function(){return null};LF(a.prototype);return a},
13
- OF=function(){$APP.n(customElements.get("x-ripple-effect"))||customElements.define("x-ripple-effect",NF());return null},AF=new $APP.M(null,"intensity","intensity",1142770863),xF=new $APP.M(null,"intensity-raw","intensity-raw",135576065),FF=new $APP.M(null,"turb","turb",-804768361),BF=new $APP.M(null,"duration","duration",1444101068),EF=new $APP.M(null,"filter-el","filter-el",-1380571810),zF=new $APP.M(null,"frequency-raw","frequency-raw",-1367383022),yF=new $APP.M(null,"duration-raw","duration-raw",
14
- -510770508),GF=new $APP.M(null,"disp","disp",-2047544334),CF=new $APP.M(null,"frequency","frequency",-1408891382),vF=new $APP.M(null,"svg","svg",856789142);var MF=["intensity","duration","frequency","disabled"];$APP.zd(["x-ripple-effect-start",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.Wi,$APP.U,$APP.Ui,$APP.U],null),$APP.Dj,!1],null),"x-ripple-effect-end",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.Wi,$APP.U,$APP.Ui,$APP.U],null),$APP.Dj,!1],null)]);$APP.ja("baredom.exports.x_ripple_effect.init",OF);export const init=OF;
2
+ var gL=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.r($APP.r(b)?b:!(a>0))?25:Math.min(100,Math.max(1,a))}return 25},hL=function(a){if(typeof a==="string"){a=parseInt(a.trim(),10);var b=isNaN(a);return $APP.r($APP.r(b)?b:!(a>0))?800:Math.min(5E3,Math.max(100,a))}return 800},iL=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.r($APP.r(b)?b:!(a>0))?.04:Math.min(.2,Math.max(.005,a))}return.04},jL=function(a){var b=$APP.l(a,
3
+ "__xRippleRefs");if($APP.r(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot"),g=document.createElementNS("http://www.w3.org/2000/svg","svg");c.textContent=":host{display:inline-block;position:relative;}:host([disabled]){cursor:default;}[part\x3dcontainer]{display:block;width:100%;height:100%;}";d.setAttribute("part","container");d.appendChild(e);g.setAttribute("part","filters");g.style.position="absolute";
4
+ g.style.width="0";g.style.height="0";g.style.overflow="hidden";b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xRippleRefs=new $APP.P(null,3,[$APP.bi,b,$APP.Zi,d,$APP.xj,g],null);a.__xRippleCounter=0;a.__xRippleFrames=[];return $APP.l(a,"__xRippleRefs")},mL=function(a){a=new $APP.P(null,4,[$APP.Mj,a.getAttribute("intensity"),$APP.oi,a.getAttribute("duration"),kL,a.getAttribute("frequency"),$APP.Rk,a.hasAttribute("disabled")],null);var b=$APP.N(a);a=$APP.G(b,$APP.Mj);var c=$APP.G(b,$APP.oi),
5
+ d=$APP.G(b,kL);b=$APP.G(b,$APP.Rk);return new $APP.P(null,4,[$APP.Gj,gL(a),$APP.nk,hL(c),lL,iL(d),$APP.W,$APP.I(b)],null)},pL=function(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feTurbulence"),g=document.createElementNS("http://www.w3.org/2000/svg","feDisplacementMap");d.setAttribute("id",b);d.setAttribute("x","-10%");d.setAttribute("y","-10%");d.setAttribute("width","120%");d.setAttribute("height","120%");
6
+ e.setAttribute("type","turbulence");e.setAttribute("baseFrequency",""+$APP.S.g(c));e.setAttribute("numOctaves","3");e.setAttribute("seed",""+$APP.S.g(Math.floor(Math.random()*1E3)));e.setAttribute("result","turbulence");g.setAttribute("in","SourceGraphic");g.setAttribute("in2","turbulence");g.setAttribute("scale","0");g.setAttribute("xChannelSelector","R");g.setAttribute("yChannelSelector","G");d.appendChild(e);d.appendChild(g);a.appendChild(d);return new $APP.P(null,3,[$APP.qk,d,nL,e,oL,g],null)},
7
+ qL=function(a,b){var c=mL(a);if(!$APP.r($APP.W.g(c))){c=$APP.N(c);var d=$APP.G(c,$APP.Gj),e=$APP.G(c,$APP.nk),g=$APP.G(c,lL);c=jL(a);c=$APP.N(c);var h=$APP.G(c,$APP.Zi),k=$APP.G(c,$APP.xj),m=$APP.l(a,"__xRippleCounter");c="xr-"+$APP.S.g(m);a.__xRippleCounter=m+1;m=pL(k,c,g);m=$APP.N(m);var p=$APP.G(m,$APP.qk),q=$APP.G(m,nL),w=$APP.G(m,oL),x=b.clientX,y=b.clientY,A=performance.now(),C=$APP.l(a,"__xRippleFrames");b=$APP.I(window.matchMedia("(prefers-reduced-motion:reduce)").matches);h.style.filter=
8
+ "url(#"+$APP.S.g(c)+")";a.dispatchEvent(new CustomEvent("x-ripple-effect-start",{detail:{x,y},bubbles:!0,composed:!0}));b?(w.setAttribute("scale",""+$APP.S.g(d/2)),b=requestAnimationFrame(function(){w.setAttribute("scale","0");k.removeChild(p);h.style.filter="";return a.dispatchEvent(new CustomEvent("x-ripple-effect-end",{detail:{x,y},bubbles:!0,composed:!0}))})):b=requestAnimationFrame(function H(){var F=performance.now()-A;F=Math.min(1,F/e);var K=1-F;K=1-K*K*K;var X=g*(1-K*.7);w.setAttribute("scale",
9
+ ""+$APP.S.g(d*(1-K)));q.setAttribute("baseFrequency",""+$APP.S.g(X));if(F>=1)return k.removeChild(p),k.childNodes.length===0&&(h.style.filter=""),a.dispatchEvent(new CustomEvent("x-ripple-effect-end",{detail:{x,y},bubbles:!0,composed:!0}));F=requestAnimationFrame(H);return C.push(F)});C.push(b)}},rL=function(a){function b(c){c.button===0&&qL(a,c);return null}a.addEventListener("pointerdown",b);a.__xRippleHandler=b},sL=function(a){var b=$APP.l(a,"__xRippleFrames");if($APP.r(b)){for(var c=b.length,
10
+ d=0;;)if(d<c)cancelAnimationFrame(b[d]),d+=1;else break;b.length=0}b=$APP.l(a,"__xRippleRefs");if($APP.r(b)){c=$APP.N(b);b=$APP.G(c,$APP.xj);for(c=$APP.G(c,$APP.Zi);;)if(d=b.firstChild,$APP.r(d))b.removeChild(d);else break;c.style.filter=""}b=$APP.l(a,"__xRippleHandler");$APP.r(b)&&(a.removeEventListener("pointerdown",b),a.__xRippleHandler=null)},tL=function(a){Object.defineProperty(a,"intensity",{get:function(){return gL(this.getAttribute("intensity"))},set:function(b){return b==null?this.removeAttribute("intensity"):
11
+ this.setAttribute("intensity",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"duration",{get:function(){return hL(this.getAttribute("duration"))},set:function(b){return b==null?this.removeAttribute("duration"):this.setAttribute("duration",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"frequency",{get:function(){return iL(this.getAttribute("frequency"))},set:function(b){return b==null?this.removeAttribute("frequency"):this.setAttribute("frequency",
12
+ ""+$APP.S.g(b))},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,configurable:!0})},vL=function(){var a=class extends HTMLElement{};a.observedAttributes=uL;a.prototype.connectedCallback=function(){jL(this);sL(this);rL(this);return null};a.prototype.disconnectedCallback=function(){sL(this);return null};a.prototype.attributeChangedCallback=
13
+ function(){return null};tL(a.prototype);return a},wL=function(){$APP.r(customElements.get("x-ripple-effect"))||customElements.define("x-ripple-effect",vL());return null},nL=new $APP.M(null,"turb","turb",-804768361),kL=new $APP.M(null,"frequency-raw","frequency-raw",-1367383022),oL=new $APP.M(null,"disp","disp",-2047544334),lL=new $APP.M(null,"frequency","frequency",-1408891382);var uL=["intensity","duration","frequency","disabled"];$APP.Sd(["x-ripple-effect-start",new $APP.P(null,2,[$APP.U,new $APP.P(null,2,[$APP.Ok,$APP.V,$APP.Nk,$APP.V],null),$APP.kl,!1],null),"x-ripple-effect-end",new $APP.P(null,2,[$APP.U,new $APP.P(null,2,[$APP.Ok,$APP.V,$APP.Nk,$APP.V],null),$APP.kl,!1],null)]);$APP.ka("baredom.exports.x_ripple_effect.init",wL);export const init=wL;
@@ -1,20 +1,20 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var cL=function(a){return new $APP.Q(null,1,[$APP.vj,a],null)},dL=function(a){var b=$APP.l(a,"__xScrollParallaxRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot"),g=document.createElement("div");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-parallax-perspective:none;--x-scroll-parallax-overflow:hidden;--x-scroll-parallax-smooth-duration:80ms;--x-scroll-parallax-fade-range:20%;--x-scroll-parallax-scale-min:0.85;--x-scroll-parallax-disabled-opacity:0.55;}[part\x3dviewport]{position:relative;width:100%;height:100%;overflow:var(--x-scroll-parallax-overflow);perspective:var(--x-scroll-parallax-perspective);}::slotted(*){will-change:transform;}:host([disabled]){opacity:var(--x-scroll-parallax-disabled-opacity);}:host([easing\x3dsmooth]) ::slotted(*){transition:transform var(--x-scroll-parallax-smooth-duration) ease-out,opacity var(--x-scroll-parallax-smooth-duration) ease-out;}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}@media (prefers-reduced-motion:reduce){::slotted(*){transform:none !important;opacity:1 !important;}}";
3
- d.setAttribute("part","viewport");d.setAttribute("role","region");d.appendChild(e);g.setAttribute("part","live");g.setAttribute("aria-live","polite");g.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xScrollParallaxRefs=new $APP.Q(null,4,[$APP.Yh,b,$APP.Vi,d,$APP.Si,e,$APP.Wh,g],null);return $APP.l(a,"__xScrollParallaxRefs")},JL=function(a){a=new $APP.Q(null,5,[$APP.ti,a.getAttribute("direction"),eL,a.getAttribute("source"),fL,a.getAttribute("easing"),$APP.Bi,
4
- $APP.n(a.hasAttribute("disabled"))?"":null,$APP.Dh,a.getAttribute("label")],null);var b=$APP.N(a),c=$APP.H(b,$APP.ti),d=$APP.H(b,eL),e=$APP.H(b,fL);a=$APP.H(b,$APP.Bi);b=$APP.H(b,$APP.Dh);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.K(gL,c)?c:"vertical";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.K(hL,d)?d:"document";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.K(iL,e)?e:"none";return new $APP.Q(null,5,[$APP.dj,c,$APP.oi,d,oL,e,$APP.V,a!=null,$APP.W,$APP.n(b)?
5
- b:""],null)},KL=function(a){a=dL(a);a=$APP.N(a);return $APP.H(a,$APP.Si).assignedElements()},ML=function(a){var b=a.getAttribute("data-speed");typeof b==="string"?(b=parseFloat(b.trim()),b=$APP.n(isNaN(b))?1:b):b=1;var c=a.getAttribute("data-offset");typeof c==="string"?(c=parseFloat(c.trim()),c=$APP.n(isNaN(c))?0:c):c=0;return new $APP.Q(null,4,[$APP.uj,b,$APP.Hh,c,$APP.Fh,$APP.C.h("fade",a.getAttribute("data-opacity")),LL,$APP.C.h("grow",a.getAttribute("data-scale"))],null)},NL=function(a){var b=
6
- $APP.l(a,"__xScrollParallaxChildCache");if($APP.n(b))return b;b=KL(a);b=$APP.Ee.m($APP.Nd,$APP.Jd.g(ML),$APP.ic(b));return a.__xScrollParallaxChildCache=b},OL=function(a){a.__xScrollParallaxChildCache=null},PL=function(a){a=window.getComputedStyle(a).getPropertyValue("--x-scroll-parallax-fade-range");a=typeof a==="string"?a.trim():null;return $APP.n($APP.n(a)?a.endsWith("%"):a)?(a=parseFloat(a.slice(0,-1)),$APP.n(isNaN(a))?.2:a/100):.2},QL=function(a){a=window.getComputedStyle(a).getPropertyValue("--x-scroll-parallax-scale-min");
7
- a=typeof a==="string"?parseFloat(a.trim()):null;var b=a==null;return $APP.n(b?b:isNaN(a))?.85:a},RL=function(a,b,c){b=new CustomEvent(b,{detail:$APP.Mg(c),bubbles:!0,composed:!0,cancelable:!1});return a.dispatchEvent(b)},SL=function(a){var b=function(){var I=$APP.l(a,"__xScrollParallaxModel");return $APP.n(I)?I:JL(a)}();if(!$APP.n($APP.V.g(b))){var c=a.getBoundingClientRect();b=$APP.C.h("vertical",$APP.dj.g(b));var d=window.innerHeight,e=b?d:window.innerWidth,g=$APP.Ag.h(0,$APP.Bg.h(1,(d-c.top)/(d+
8
- c.height)));c=$APP.l(a,"__xScrollParallaxLastProg");d=KL(a);for(var h=NL(a),k=PL(a),m=QL(a),p=d.length,r=0;;)if(r<p){if(r<$APP.B(h)){var v=d[r],x=$APP.dc(h,r),y=$APP.N(x),A=$APP.H(y,$APP.uj),D=$APP.H(y,$APP.Hh);x=$APP.H(y,$APP.Fh);y=$APP.H(y,LL);A=(g-.5)*e*(A-1)+D;var G=b?"translateY("+$APP.S.g(A)+"px)":"translateX("+$APP.S.g(A)+"px)";A=$APP.n(y)?function(){var I=m+(1-m)*(1-Math.abs(g-.5)*2);return""+$APP.S.g(G)+" scale("+$APP.S.g(I)+")"}():G;v.style.transform=A;$APP.n(x)&&(v.style.opacity=""+$APP.S.g(g<
9
- k?g/k:g>1-k?(1-g)/k:1))}r+=1}else break;if(c==null||Math.abs(g-c)>.001)a.__xScrollParallaxLastProg=g,RL(a,"x-scroll-parallax-progress",cL(g))}a.__xScrollParallaxRAF=null},TL=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.l(a,"__xScrollParallaxVisible"),$APP.n(b)?!$APP.J(window.matchMedia("(prefers-reduced-motion:reduce)").matches):b):b}())?$APP.n($APP.l(a,"__xScrollParallaxRAF"))?null:$APP.ma(a,"__xScrollParallaxRAF",requestAnimationFrame(function(){return SL(a)})):
10
- null},UL=function(a){a=$APP.l(a,"__xScrollParallaxHandlers");$APP.n($APP.n(a)?$APP.q($APP.l(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.l(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},VL=function(a){a=$APP.l(a,"__xScrollParallaxHandlers");$APP.n($APP.n(a)?$APP.l(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.l(a,"scroll")),a.scrollAttached=!1)},WL=function(a,b){a.textContent=b;setTimeout(function(){return a.textContent=""},1E3)},XL=function(a,b){b=b[0].isIntersecting;
11
- var c=$APP.N($APP.l(a,"__xScrollParallaxRefs"));c=$APP.H(c,$APP.Wh);a.__xScrollParallaxVisible=b;if($APP.n(b))return UL(a),SL(a),WL(c,"Parallax section entered viewport"),RL(a,"x-scroll-parallax-enter",cL(function(){var d=$APP.l(a,"__xScrollParallaxLastProg");return $APP.n(d)?d:0}()));VL(a);WL(c,"Parallax section left viewport");return RL(a,"x-scroll-parallax-leave",cL(function(){var d=$APP.l(a,"__xScrollParallaxLastProg");return $APP.n(d)?d:0}()))},YL=function(a){function b(){return $APP.n($APP.l(a,
12
- "__xScrollParallaxVisible"))?(OL(a),SL(a)):null}function c(){OL(a);return $APP.n($APP.l(a,"__xScrollParallaxVisible"))?SL(a):null}var d=dL(a);d=$APP.N(d);$APP.H(d,$APP.Si).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.ma(a,"__xScrollParallaxHandlers",{scroll:function(){return TL(a)},slot:c,resize:b,scrollAttached:!1})},ZL=function(a){var b=$APP.l(a,"__xScrollParallaxHandlers");if($APP.n(b)){VL(a);var c=$APP.l(a,"__xScrollParallaxRefs");if($APP.n(c)){c=$APP.Si.g(c);var d=
13
- $APP.l(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",d)}b=$APP.l(b,"resize");$APP.n(b)&&window.removeEventListener("resize",b)}b=$APP.l(a,"__xScrollParallaxRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollParallaxRAF=null);a.__xScrollParallaxHandlers=null},$L=function(a){var b=$APP.l(a,"__xScrollParallaxIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){return XL(a,c)},{threshold:[0]});b.observe(a);a.__xScrollParallaxIO=b},aM=function(a){var b=JL(a);if($APP.O($APP.l(a,
14
- "__xScrollParallaxModel"),b)){var c=$APP.N(b),d=$APP.H(c,$APP.dj);$APP.H(c,oL);b=$APP.H(c,$APP.V);var e=$APP.H(c,$APP.W),g=dL(a);g=$APP.N(g);var h=$APP.H(g,$APP.Vi);$APP.H(g,$APP.Wh);a.setAttribute("data-direction",d);$APP.u(e)?h.setAttribute("aria-label",e):h.removeAttribute("aria-label");a.__xScrollParallaxModel=c;c=$APP.l(a,"__xScrollParallaxVisible");$APP.n($APP.n(c)?$APP.q(b):c)&&SL(a)}},bM=function(a){Object.defineProperty(a,"direction",{get:function(){var b=this.getAttribute("direction");return $APP.n(b)?
15
- b:"vertical"},set:function(b){return $APP.n(b)?this.setAttribute("direction",""+$APP.S.g(b)):this.removeAttribute("direction")},enumerable:!0,configurable:!0});Object.defineProperty(a,"source",{get:function(){var b=this.getAttribute("source");return $APP.n(b)?b:"document"},set:function(b){return $APP.n(b)?this.setAttribute("source",""+$APP.S.g(b)):this.removeAttribute("source")},enumerable:!0,configurable:!0});Object.defineProperty(a,"easing",{get:function(){var b=this.getAttribute("easing");return $APP.n(b)?
16
- b:"none"},set:function(b){return $APP.n(b)?this.setAttribute("easing",""+$APP.S.g(b)):this.removeAttribute("easing")},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=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?
17
- $APP.O(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.l(this,"__xScrollParallaxLastProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0})},dM=function(){var a=class extends HTMLElement{};a.observedAttributes=cM;a.prototype.connectedCallback=function(){dL(this);ZL(this);YL(this);$L(this);aM(this);return null};a.prototype.disconnectedCallback=function(){for(var b=KL(this),
18
- c=b.length,d=0;;)if(d<c){var e=b[d];e.style.transform="";e.style.opacity="";d+=1}else break;$APP.n($APP.l(this,"__xScrollParallaxVisible"))&&(b=$APP.l(this,"__xScrollParallaxLastProg"),RL(this,"x-scroll-parallax-leave",cL($APP.n(b)?b:0)));ZL(this);b=$APP.l(this,"__xScrollParallaxIO");$APP.n(b)&&(b.disconnect(),this.__xScrollParallaxIO=null);OL(this);this.__xScrollParallaxVisible=!1;return this.__xScrollParallaxLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&aM(this);
19
- return null};bM(a.prototype);return a},eM=function(){$APP.n(customElements.get("x-scroll-parallax"))||customElements.define("x-scroll-parallax",dM());return null},fL=new $APP.M(null,"easing-raw","easing-raw",440485546),LL=new $APP.M(null,"scale","scale",-230427353),oL=new $APP.M(null,"easing","easing",735372043),eL=new $APP.M(null,"source-raw","source-raw",396083546);var cM=["direction","source","easing","disabled","label"];$APP.zd(["x-scroll-parallax-enter",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,1,[$APP.vj,$APP.U],null),$APP.Dj,!1],null),"x-scroll-parallax-leave",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,1,[$APP.vj,$APP.U],null),$APP.Dj,!1],null),"x-scroll-parallax-progress",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,1,[$APP.vj,$APP.U],null),$APP.Dj,!1],null)]);
20
- var gL=new $APP.R(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),hL=new $APP.R(null,new $APP.Q(null,1,["document",null],null),null),iL=new $APP.R(null,new $APP.Q(null,2,["none",null,"smooth",null],null),null);$APP.ja("baredom.exports.x_scroll_parallax.init",eM);export const init=eM;
2
+ var DR=function(a){return new $APP.P(null,1,[$APP.dl,a],null)},ER=function(a){var b=$APP.l(a,"__xScrollParallaxRefs");if($APP.r(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot"),g=document.createElement("div");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-parallax-perspective:none;--x-scroll-parallax-overflow:hidden;--x-scroll-parallax-smooth-duration:80ms;--x-scroll-parallax-fade-range:20%;--x-scroll-parallax-scale-min:0.85;--x-scroll-parallax-disabled-opacity:0.55;}[part\x3dviewport]{position:relative;width:100%;height:100%;overflow:var(--x-scroll-parallax-overflow);perspective:var(--x-scroll-parallax-perspective);}::slotted(*){will-change:transform;}:host([disabled]){opacity:var(--x-scroll-parallax-disabled-opacity);}:host([easing\x3dsmooth]) ::slotted(*){transition:transform var(--x-scroll-parallax-smooth-duration) ease-out,opacity var(--x-scroll-parallax-smooth-duration) ease-out;}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}@media (prefers-reduced-motion:reduce){::slotted(*){transform:none !important;opacity:1 !important;}}";
3
+ d.setAttribute("part","viewport");d.setAttribute("role","region");d.appendChild(e);g.setAttribute("part","live");g.setAttribute("aria-live","polite");g.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xScrollParallaxRefs=new $APP.P(null,4,[$APP.bi,b,$APP.Hi,d,$APP.Fi,e,$APP.$h,g],null);return $APP.l(a,"__xScrollParallaxRefs")},LR=function(a){a=new $APP.P(null,5,[$APP.vi,a.getAttribute("direction"),FR,a.getAttribute("source"),GR,a.getAttribute("easing"),$APP.Ai,
4
+ $APP.r(a.hasAttribute("disabled"))?"":null,$APP.Oh,a.getAttribute("label")],null);var b=$APP.N(a),c=$APP.G(b,$APP.vi),d=$APP.G(b,FR),e=$APP.G(b,GR);a=$APP.G(b,$APP.Ai);b=$APP.G(b,$APP.Oh);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.J(HR,c)?c:"vertical";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.J(IR,d)?d:"document";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.J(JR,e)?e:"none";return new $APP.P(null,5,[$APP.Ni,c,$APP.yk,d,KR,e,$APP.W,a!=null,$APP.T,$APP.r(b)?
5
+ b:""],null)},MR=function(a){a=ER(a);a=$APP.N(a);return $APP.G(a,$APP.Fi).assignedElements()},NR=function(a){var b=a.getAttribute("data-speed");typeof b==="string"?(b=parseFloat(b.trim()),b=$APP.r(isNaN(b))?1:b):b=1;var c=a.getAttribute("data-offset");typeof c==="string"?(c=parseFloat(c.trim()),c=$APP.r(isNaN(c))?0:c):c=0;return new $APP.P(null,4,[$APP.Yi,b,$APP.Rh,c,$APP.Ph,$APP.D.i("fade",a.getAttribute("data-opacity")),$APP.xi,$APP.D.i("grow",a.getAttribute("data-scale"))],null)},OR=function(a){var b=
6
+ $APP.l(a,"__xScrollParallaxChildCache");if($APP.r(b))return b;b=MR(a);b=$APP.af.o($APP.ie,$APP.de.g(NR),$APP.wc(b));return a.__xScrollParallaxChildCache=b},PR=function(a){a.__xScrollParallaxChildCache=null},QR=function(a){a=window.getComputedStyle(a).getPropertyValue("--x-scroll-parallax-fade-range");a=typeof a==="string"?a.trim():null;return $APP.r($APP.r(a)?a.endsWith("%"):a)?(a=parseFloat(a.slice(0,-1)),$APP.r(isNaN(a))?.2:a/100):.2},RR=function(a){a=window.getComputedStyle(a).getPropertyValue("--x-scroll-parallax-scale-min");
7
+ a=typeof a==="string"?parseFloat(a.trim()):null;var b=a==null;return $APP.r(b?b:isNaN(a))?.85:a},SR=function(a,b,c){b=new CustomEvent(b,{detail:$APP.nh(c),bubbles:!0,composed:!0,cancelable:!1});return a.dispatchEvent(b)},TR=function(a){var b=function(){var H=$APP.l(a,"__xScrollParallaxModel");return $APP.r(H)?H:LR(a)}();if(!$APP.r($APP.W.g(b))){var c=a.getBoundingClientRect();b=$APP.D.i("vertical",$APP.Ni.g(b));var d=window.innerHeight,e=b?d:window.innerWidth,g=$APP.Yg.i(0,$APP.Zg.i(1,(d-c.top)/(d+
8
+ c.height)));c=$APP.l(a,"__xScrollParallaxLastProg");d=MR(a);for(var h=OR(a),k=QR(a),m=RR(a),p=d.length,q=0;;)if(q<p){if(q<$APP.B(h)){var w=d[q],x=$APP.rc(h,q),y=$APP.N(x),A=$APP.G(y,$APP.Yi),C=$APP.G(y,$APP.Rh);x=$APP.G(y,$APP.Ph);y=$APP.G(y,$APP.xi);A=(g-.5)*e*(A-1)+C;var E=b?"translateY("+$APP.S.g(A)+"px)":"translateX("+$APP.S.g(A)+"px)";A=$APP.r(y)?function(){var H=m+(1-m)*(1-Math.abs(g-.5)*2);return""+$APP.S.g(E)+" scale("+$APP.S.g(H)+")"}():E;w.style.transform=A;$APP.r(x)&&(w.style.opacity=""+
9
+ $APP.S.g(g<k?g/k:g>1-k?(1-g)/k:1))}q+=1}else break;if(c==null||Math.abs(g-c)>.001)a.__xScrollParallaxLastProg=g,SR(a,"x-scroll-parallax-progress",DR(g))}a.__xScrollParallaxRAF=null},UR=function(a){return $APP.r(function(){var b=a.isConnected;return $APP.r(b)?(b=$APP.l(a,"__xScrollParallaxVisible"),$APP.r(b)?!$APP.I(window.matchMedia("(prefers-reduced-motion:reduce)").matches):b):b}())?$APP.r($APP.l(a,"__xScrollParallaxRAF"))?null:$APP.n(a,"__xScrollParallaxRAF",requestAnimationFrame(function(){return TR(a)})):
10
+ null},VR=function(a){a=$APP.l(a,"__xScrollParallaxHandlers");$APP.r($APP.r(a)?$APP.t($APP.l(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.l(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},WR=function(a){a=$APP.l(a,"__xScrollParallaxHandlers");$APP.r($APP.r(a)?$APP.l(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.l(a,"scroll")),a.scrollAttached=!1)},YR=function(a,b){a.textContent=b;setTimeout(function(){return a.textContent=""},1E3)},ZR=function(a,b){b=b[0].isIntersecting;
11
+ var c=$APP.N($APP.l(a,"__xScrollParallaxRefs"));c=$APP.G(c,$APP.$h);a.__xScrollParallaxVisible=b;if($APP.r(b))return VR(a),TR(a),YR(c,"Parallax section entered viewport"),SR(a,"x-scroll-parallax-enter",DR(function(){var d=$APP.l(a,"__xScrollParallaxLastProg");return $APP.r(d)?d:0}()));WR(a);YR(c,"Parallax section left viewport");return SR(a,"x-scroll-parallax-leave",DR(function(){var d=$APP.l(a,"__xScrollParallaxLastProg");return $APP.r(d)?d:0}()))},$R=function(a){function b(){return $APP.r($APP.l(a,
12
+ "__xScrollParallaxVisible"))?(PR(a),TR(a)):null}function c(){PR(a);return $APP.r($APP.l(a,"__xScrollParallaxVisible"))?TR(a):null}var d=ER(a);d=$APP.N(d);$APP.G(d,$APP.Fi).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.n(a,"__xScrollParallaxHandlers",{scroll:function(){return UR(a)},slot:c,resize:b,scrollAttached:!1})},aS=function(a){var b=$APP.l(a,"__xScrollParallaxHandlers");if($APP.r(b)){WR(a);var c=$APP.l(a,"__xScrollParallaxRefs");if($APP.r(c)){c=$APP.Fi.g(c);var d=
13
+ $APP.l(b,"slot");$APP.r(d)&&c.removeEventListener("slotchange",d)}b=$APP.l(b,"resize");$APP.r(b)&&window.removeEventListener("resize",b)}b=$APP.l(a,"__xScrollParallaxRAF");$APP.r(b)&&(cancelAnimationFrame(b),a.__xScrollParallaxRAF=null);a.__xScrollParallaxHandlers=null},bS=function(a){var b=$APP.l(a,"__xScrollParallaxIO");$APP.r(b)&&b.disconnect();b=new IntersectionObserver(function(c){return ZR(a,c)},{threshold:[0]});b.observe(a);a.__xScrollParallaxIO=b},cS=function(a){var b=LR(a);if($APP.O($APP.l(a,
14
+ "__xScrollParallaxModel"),b)){var c=$APP.N(b),d=$APP.G(c,$APP.Ni);$APP.G(c,KR);b=$APP.G(c,$APP.W);var e=$APP.G(c,$APP.T),g=ER(a);g=$APP.N(g);var h=$APP.G(g,$APP.Hi);$APP.G(g,$APP.$h);a.setAttribute("data-direction",d);$APP.u(e)?h.setAttribute("aria-label",e):h.removeAttribute("aria-label");a.__xScrollParallaxModel=c;c=$APP.l(a,"__xScrollParallaxVisible");$APP.r($APP.r(c)?$APP.t(b):c)&&TR(a)}},dS=function(a){Object.defineProperty(a,"direction",{get:function(){var b=this.getAttribute("direction");return $APP.r(b)?
15
+ b:"vertical"},set:function(b){return $APP.r(b)?this.setAttribute("direction",""+$APP.S.g(b)):this.removeAttribute("direction")},enumerable:!0,configurable:!0});Object.defineProperty(a,"source",{get:function(){var b=this.getAttribute("source");return $APP.r(b)?b:"document"},set:function(b){return $APP.r(b)?this.setAttribute("source",""+$APP.S.g(b)):this.removeAttribute("source")},enumerable:!0,configurable:!0});Object.defineProperty(a,"easing",{get:function(){var b=this.getAttribute("easing");return $APP.r(b)?
16
+ b:"none"},set:function(b){return $APP.r(b)?this.setAttribute("easing",""+$APP.S.g(b)):this.removeAttribute("easing")},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,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)?
17
+ $APP.O(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.l(this,"__xScrollParallaxLastProg");return $APP.r(b)?b:0},enumerable:!0,configurable:!0})},fS=function(){var a=class extends HTMLElement{};a.observedAttributes=eS;a.prototype.connectedCallback=function(){ER(this);aS(this);$R(this);bS(this);cS(this);return null};a.prototype.disconnectedCallback=function(){for(var b=MR(this),
18
+ c=b.length,d=0;;)if(d<c){var e=b[d];e.style.transform="";e.style.opacity="";d+=1}else break;$APP.r($APP.l(this,"__xScrollParallaxVisible"))&&(b=$APP.l(this,"__xScrollParallaxLastProg"),SR(this,"x-scroll-parallax-leave",DR($APP.r(b)?b:0)));aS(this);b=$APP.l(this,"__xScrollParallaxIO");$APP.r(b)&&(b.disconnect(),this.__xScrollParallaxIO=null);PR(this);this.__xScrollParallaxVisible=!1;return this.__xScrollParallaxLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&cS(this);
19
+ return null};dS(a.prototype);return a},gS=function(){$APP.r(customElements.get("x-scroll-parallax"))||customElements.define("x-scroll-parallax",fS());return null},FR=new $APP.M(null,"source-raw","source-raw",396083546),GR=new $APP.M(null,"easing-raw","easing-raw",440485546),KR=new $APP.M(null,"easing","easing",735372043);var eS=["direction","source","easing","disabled","label"];$APP.Sd(["x-scroll-parallax-enter",new $APP.P(null,2,[$APP.U,new $APP.P(null,1,[$APP.dl,$APP.V],null),$APP.kl,!1],null),"x-scroll-parallax-leave",new $APP.P(null,2,[$APP.U,new $APP.P(null,1,[$APP.dl,$APP.V],null),$APP.kl,!1],null),"x-scroll-parallax-progress",new $APP.P(null,2,[$APP.U,new $APP.P(null,1,[$APP.dl,$APP.V],null),$APP.kl,!1],null)]);
20
+ var HR=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null),IR=new $APP.R(null,new $APP.P(null,1,["document",null],null),null),JR=new $APP.R(null,new $APP.P(null,2,["none",null,"smooth",null],null),null);$APP.ka("baredom.exports.x_scroll_parallax.init",gS);export const init=gS;
@@ -1,20 +1,20 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var qv=function(a,b){return typeof a==="string"?(a=parseFloat(a.trim()),typeof a==="number"&&$APP.q(isNaN(a))&&a>0?a:b):b},sv=function(a){return typeof a==="string"&&$APP.K(rv,a.trim().toLowerCase())?a.trim().toLowerCase():"center"},tv=function(a,b,c){b*=c;c=b+c-b;return Math.max(0,Math.min(1,c<=0?0:(a-b)/c))},uv=function(a,b,c){b*=c;return b<=0?0:Math.max(0,Math.min(1,a/b))},vv=function(a){var b=$APP.l(a,"__xScrollStackRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),
2
+ var Uy=function(a,b){return typeof a==="string"?(a=parseFloat(a.trim()),typeof a==="number"&&$APP.t(isNaN(a))&&a>0?a:b):b},Wy=function(a){return typeof a==="string"&&$APP.J(Vy,a.trim().toLowerCase())?a.trim().toLowerCase():"center"},Xy=function(a,b,c){b*=c;c=b+c-b;return Math.max(0,Math.min(1,c<=0?0:(a-b)/c))},Yy=function(a,b,c){b*=c;return b<=0?0:Math.max(0,Math.min(1,a/b))},Zy=function(a){var b=$APP.l(a,"__xScrollStackRefs");if($APP.r(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),
3
3
  d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-stack-peek:6px;--x-scroll-stack-rotation:3deg;--x-scroll-stack-gap:1rem;}[part\x3dcontainer]{position:sticky;top:0;height:100vh;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding-top:var(--x-scroll-stack-padding-top,2rem);gap:var(--x-scroll-stack-gap);}::slotted(*){flex-shrink:0;will-change:transform;transition:transform 60ms linear;}:host([disabled]){opacity:0.55;}@media (prefers-reduced-motion:reduce){::slotted(*){transition:none !important;}}";
4
- d.setAttribute("part","container");d.setAttribute("role","region");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xScrollStackRefs=new $APP.Q(null,3,[$APP.Yh,b,$APP.xj,d,$APP.Si,e],null);return $APP.l(a,"__xScrollStackRefs")},Cv=function(a){a=new $APP.Q(null,5,[wv,a.getAttribute("peek"),xv,a.getAttribute("rotation"),yv,a.getAttribute("scroll-distance"),$APP.qi,a.getAttribute("align"),$APP.Bi,$APP.n(a.hasAttribute("disabled"))?"":null],null);var b=$APP.N(a);a=$APP.H(b,wv);var c=$APP.H(b,xv),
5
- d=$APP.H(b,yv),e=$APP.H(b,$APP.qi);b=$APP.H(b,$APP.Bi);return new $APP.Q(null,5,[zv,qv(a,6),Av,qv(c,3),Bv,qv(d,150),$APP.hj,sv(e),$APP.V,b!=null],null)},Dv=function(a){a=vv(a);a=$APP.N(a);return $APP.H(a,$APP.Si).assignedElements()},Ev=function(a,b,c){b=new CustomEvent(b,{detail:$APP.Mg(c),bubbles:!0,composed:!0,cancelable:!1});a.dispatchEvent(b)},Fv=function(a){var b=$APP.l(a,"__xScrollStackModel");b=$APP.n(b)?b:Cv(a);var c=Dv(a).length;b=window.innerHeight+c*Bv.g(b);a.style.height=""+$APP.S.g(b)+
6
- "px"},Lv=function(a){var b=function(){var Wa=$APP.l(a,"__xScrollStackModel");return $APP.n(Wa)?Wa:Cv(a)}(),c=a.getBoundingClientRect();c=Math.max(0,-c.top);var d=Dv(a),e=d.length,g=$APP.l(a,"__xScrollStackNaturalOffsets"),h=$APP.l(a,"__xScrollStackChildHeights");if($APP.n(function(){var Wa=e>0;return Wa?$APP.n(g)?$APP.n(h)?$APP.C.h(g.length,e)&&$APP.C.h(h.length,e):h:g:Wa}())){var k=Bv.g(b),m=zv.g(b),p=Av.g(b),r=$APP.hj.g(b),v=g[0],x=$APP.n(a.hasAttribute("align"))?function(){var Wa=(e-1)*m+h[e-1],
7
- Wb=$APP.N($APP.l(a,"__xScrollStackRefs"));Wb=$APP.H(Wb,$APP.xj).clientHeight;a:switch(r){case "top":Wa=32;break a;case "bottom":Wa=Wb-Wa-32;break a;default:Wa=(Wb-Wa)/2}return Wa-v}():0;b=uv(c,e,k);for(var y=Math.max(0,Math.min(e,Math.floor(c/Math.max(1,k)))),A=function(){var Wa=$APP.l(a,"__xScrollStackStackedCount");return $APP.n(Wa)?Wa:0}(),D=0;;)if(D<e){var G=d[D],I=tv(c,D,k),F=new $APP.Q(null,3,[Gv,D*m,Hv,p*Math.sin(D*2.3),Iv,2*Math.cos(D*3.7)],null),P=g[D];P=v+Gv.g(F)-P;P=I*P+I*x;var la=I*Hv.g(F);
8
- F=I*Iv.g(F);var Ca=I>0?""+$APP.S.g(D):"";G.style.transform=I===0?"":"translate("+$APP.S.g(F.toFixed(2))+"px,"+$APP.S.g(P.toFixed(2))+"px) rotate("+$APP.S.g(la.toFixed(3))+"deg)";G.style.zIndex=Ca;D+=1}else break;$APP.O(y,A)&&(a.__xScrollStackStackedCount=y,Ev(a,"x-scroll-stack-change",new $APP.Q(null,3,[Jv,y,Kv,e,$APP.vj,b],null)));c=$APP.l(a,"__xScrollStackLastProg");if(c==null||Math.abs(b-c)>.001)a.__xScrollStackLastProg=b,Ev(a,"x-scroll-stack-progress",new $APP.Q(null,3,[$APP.vj,b,Jv,y,Kv,e],null))}a.__xScrollStackRAF=
9
- null},Mv=function(a){a=$APP.l(a,"__xScrollStackModel");return $APP.n(a)?$APP.V.g(a):a},Nv=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.l(a,"__xScrollStackVisible"),$APP.n(b)?$APP.q(Mv(a)):b):b}())?$APP.n($APP.l(a,"__xScrollStackRAF"))?null:$APP.ma(a,"__xScrollStackRAF",requestAnimationFrame(function(){return Lv(a)})):null},Ov=function(a){a=$APP.l(a,"__xScrollStackHandlers");$APP.n($APP.n(a)?$APP.q($APP.l(a,"scrollAttached")):a)&&(window.addEventListener("scroll",
10
- $APP.l(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},Pv=function(a){a=$APP.l(a,"__xScrollStackHandlers");if($APP.n($APP.n(a)?$APP.l(a,"scrollAttached"):a))window.removeEventListener("scroll",$APP.l(a,"scroll")),a.scrollAttached=!1;else return null},Qv=function(a){var b=$APP.l(a,"__xScrollStackCacheRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStackCacheRAF=null);return $APP.ma(a,"__xScrollStackCacheRAF",requestAnimationFrame(function(){a.__xScrollStackCacheRAF=null;if($APP.n(a.isConnected)){var c=
11
- Dv(a),d=c.length;if(d>0){var e=$APP.N($APP.l(a,"__xScrollStackRefs")),g=$APP.H(e,$APP.xj);e=Array(d);for(var h=Array(d),k=0;;)if(k<d){var m=c[k];m.style.transform="";m.style.zIndex="";k+=1}else break;g.offsetHeight;g=g.getBoundingClientRect();for(k=0;;)if(k<d)m=c[k].getBoundingClientRect(),e[k]=m.top-g.top,h[k]=m.height,k+=1;else break;a.__xScrollStackNaturalOffsets=e;a.__xScrollStackChildHeights=h}return Lv(a)}return null}))},Rv=function(a){var b=$APP.l(a,"__xScrollStackIO");$APP.n(b)&&b.disconnect();
12
- b=new IntersectionObserver(function(c){c=c[0].isIntersecting;a.__xScrollStackVisible=c;$APP.n(c)?$APP.n(Mv(a))?c=null:(Ov(a),c=Qv(a)):c=Pv(a);return c},{threshold:[0]});b.observe(a);a.__xScrollStackIO=b},Sv=function(a){a=Dv(a);for(var b=a.length,c=0;;)if(c<b){var d=a[c];d.style.transform="";d.style.zIndex="";c+=1}else break},Tv=function(a){function b(){Fv(a);return $APP.n($APP.l(a,"__xScrollStackVisible"))?Qv(a):null}function c(){Fv(a);return $APP.n($APP.l(a,"__xScrollStackVisible"))?Qv(a):null}var d=
13
- vv(a);d=$APP.N(d);$APP.H(d,$APP.Si).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.ma(a,"__xScrollStackHandlers",{scroll:function(){return Nv(a)},slot:c,resize:b,scrollAttached:!1})},Uv=function(a){var b=$APP.l(a,"__xScrollStackHandlers");if($APP.n(b)){Pv(a);var c=$APP.l(a,"__xScrollStackRefs");if($APP.n(c)){c=$APP.Si.g(c);var d=$APP.l(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",d)}b=$APP.l(b,"resize");$APP.n(b)&&window.removeEventListener("resize",b)}b=$APP.l(a,
14
- "__xScrollStackRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStackRAF=null);b=$APP.l(a,"__xScrollStackCacheRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStackCacheRAF=null);a.__xScrollStackHandlers=null},Vv=function(a){var b=Cv(a);if($APP.O($APP.l(a,"__xScrollStackModel"),b)){b=$APP.N(b);var c=$APP.H(b,$APP.V);a.__xScrollStackModel=b;$APP.n(c)?(Sv(a),a.__xScrollStackStackedCount=0,a.__xScrollStackLastProg=null,Pv(a)):$APP.n($APP.l(a,"__xScrollStackVisible"))&&(Ov(a),Qv(a))}},Wv=function(a){Object.defineProperty(a,
15
- "peek",{get:function(){return qv(this.getAttribute("peek"),6)},set:function(b){return b!=null?this.setAttribute("peek",""+$APP.S.g(b)):this.removeAttribute("peek")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rotation",{get:function(){return qv(this.getAttribute("rotation"),3)},set:function(b){return b!=null?this.setAttribute("rotation",""+$APP.S.g(b)):this.removeAttribute("rotation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"scrollDistance",{get:function(){return qv(this.getAttribute("scroll-distance"),
16
- 150)},set:function(b){return b!=null?this.setAttribute("scroll-distance",""+$APP.S.g(b)):this.removeAttribute("scroll-distance")},enumerable:!0,configurable:!0});Object.defineProperty(a,"align",{get:function(){return sv(this.getAttribute("align"))},set:function(b){return b!=null?this.setAttribute("align",""+$APP.S.g(b)):this.removeAttribute("align")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?
17
- this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"stackedCount",{get:function(){var b=$APP.l(this,"__xScrollStackStackedCount");return $APP.n(b)?b:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.l(this,"__xScrollStackLastProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"refresh",{value:function(){Fv(this);return $APP.n($APP.l(this,"__xScrollStackVisible"))?
18
- Qv(this):null},enumerable:!0,configurable:!0})},Yv=function(){var a=class extends HTMLElement{};a.observedAttributes=Xv;a.prototype.connectedCallback=function(){vv(this);Uv(this);Tv(this);Rv(this);Vv(this);Fv(this);return null};a.prototype.disconnectedCallback=function(){Sv(this);Uv(this);var b=$APP.l(this,"__xScrollStackIO");$APP.n(b)&&(b.disconnect(),this.__xScrollStackIO=null);this.__xScrollStackVisible=!1;this.__xScrollStackStackedCount=0;return this.__xScrollStackChildHeights=this.__xScrollStackNaturalOffsets=
19
- this.__xScrollStackLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&(Vv(this),Fv(this),$APP.n($APP.l(this,"__xScrollStackVisible"))&&Qv(this));return null};Wv(a.prototype);return a},Zv=function(){$APP.n(customElements.get("x-scroll-stack"))||customElements.define("x-scroll-stack",Yv());return null},Hv=new $APP.M(null,"stack-rot","stack-rot",-949440704),yv=new $APP.M(null,"scroll-distance-raw","scroll-distance-raw",1537519796),zv=new $APP.M(null,"peek","peek",-291396325),
20
- Iv=new $APP.M(null,"stack-x","stack-x",-1557848736),Gv=new $APP.M(null,"stack-y","stack-y",146748620),xv=new $APP.M(null,"rotation-raw","rotation-raw",318004495),Av=new $APP.M(null,"rotation","rotation",-1728051644),wv=new $APP.M(null,"peek-raw","peek-raw",361729174),Jv=new $APP.M(null,"stackedCount","stackedCount",137366007),Bv=new $APP.M(null,"scroll-distance","scroll-distance",-544947824),Kv=new $APP.M(null,"totalCount","totalCount",2101470328);var Xv=["peek","rotation","scroll-distance","align","disabled"];$APP.zd(["x-scroll-stack-change",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[Jv,$APP.U,Kv,$APP.U,$APP.vj,$APP.U],null),$APP.Dj,!1],null),"x-scroll-stack-progress",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.vj,$APP.U,Jv,$APP.U,Kv,$APP.U],null),$APP.Dj,!1],null)]);var rv=new $APP.R(null,new $APP.Q(null,3,["top",null,"center",null,"bottom",null],null),null);$APP.ja("baredom.exports.x_scroll_stack.init",Zv);export const init=Zv;
4
+ d.setAttribute("part","container");d.setAttribute("role","region");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xScrollStackRefs=new $APP.P(null,3,[$APP.bi,b,$APP.Zi,d,$APP.Fi,e],null);return $APP.l(a,"__xScrollStackRefs")},ez=function(a){a=new $APP.P(null,5,[$y,a.getAttribute("peek"),az,a.getAttribute("rotation"),bz,a.getAttribute("scroll-distance"),$APP.qi,a.getAttribute("align"),$APP.Ai,$APP.r(a.hasAttribute("disabled"))?"":null],null);var b=$APP.N(a);a=$APP.G(b,$y);var c=$APP.G(b,az),
5
+ d=$APP.G(b,bz),e=$APP.G(b,$APP.qi);b=$APP.G(b,$APP.Ai);return new $APP.P(null,5,[cz,Uy(a,6),$APP.cl,Uy(c,3),dz,Uy(d,150),$APP.Qi,Wy(e),$APP.W,b!=null],null)},fz=function(a){a=Zy(a);a=$APP.N(a);return $APP.G(a,$APP.Fi).assignedElements()},gz=function(a,b,c){b=new CustomEvent(b,{detail:$APP.nh(c),bubbles:!0,composed:!0,cancelable:!1});a.dispatchEvent(b)},hz=function(a){var b=$APP.l(a,"__xScrollStackModel");b=$APP.r(b)?b:ez(a);var c=fz(a).length;b=window.innerHeight+c*dz.g(b);a.style.height=""+$APP.S.g(b)+
6
+ "px"},nz=function(a){var b=function(){var sa=$APP.l(a,"__xScrollStackModel");return $APP.r(sa)?sa:ez(a)}(),c=a.getBoundingClientRect();c=Math.max(0,-c.top);var d=fz(a),e=d.length,g=$APP.l(a,"__xScrollStackNaturalOffsets"),h=$APP.l(a,"__xScrollStackChildHeights");if($APP.r(function(){var sa=e>0;return sa?$APP.r(g)?$APP.r(h)?$APP.D.i(g.length,e)&&$APP.D.i(h.length,e):h:g:sa}())){var k=dz.g(b),m=cz.g(b),p=$APP.cl.g(b),q=$APP.Qi.g(b),w=g[0],x=$APP.r(a.hasAttribute("align"))?function(){var sa=(e-1)*m+
7
+ h[e-1],Ga=$APP.N($APP.l(a,"__xScrollStackRefs"));Ga=$APP.G(Ga,$APP.Zi).clientHeight;a:switch(q){case "top":sa=32;break a;case "bottom":sa=Ga-sa-32;break a;default:sa=(Ga-sa)/2}return sa-w}():0;b=Yy(c,e,k);for(var y=Math.max(0,Math.min(e,Math.floor(c/Math.max(1,k)))),A=function(){var sa=$APP.l(a,"__xScrollStackStackedCount");return $APP.r(sa)?sa:0}(),C=0;;)if(C<e){var E=d[C],H=Xy(c,C,k),F=new $APP.P(null,3,[iz,C*m,jz,p*Math.sin(C*2.3),kz,2*Math.cos(C*3.7)],null),K=g[C];K=w+iz.g(F)-K;K=H*K+H*x;var X=
8
+ H*jz.g(F);F=H*kz.g(F);var da=H>0?""+$APP.S.g(C):"";E.style.transform=H===0?"":"translate("+$APP.S.g(F.toFixed(2))+"px,"+$APP.S.g(K.toFixed(2))+"px) rotate("+$APP.S.g(X.toFixed(3))+"deg)";E.style.zIndex=da;C+=1}else break;$APP.O(y,A)&&(a.__xScrollStackStackedCount=y,gz(a,"x-scroll-stack-change",new $APP.P(null,3,[lz,y,mz,e,$APP.dl,b],null)));c=$APP.l(a,"__xScrollStackLastProg");if(c==null||Math.abs(b-c)>.001)a.__xScrollStackLastProg=b,gz(a,"x-scroll-stack-progress",new $APP.P(null,3,[$APP.dl,b,lz,
9
+ y,mz,e],null))}a.__xScrollStackRAF=null},oz=function(a){a=$APP.l(a,"__xScrollStackModel");return $APP.r(a)?$APP.W.g(a):a},pz=function(a){return $APP.r(function(){var b=a.isConnected;return $APP.r(b)?(b=$APP.l(a,"__xScrollStackVisible"),$APP.r(b)?$APP.t(oz(a)):b):b}())?$APP.r($APP.l(a,"__xScrollStackRAF"))?null:$APP.n(a,"__xScrollStackRAF",requestAnimationFrame(function(){return nz(a)})):null},qz=function(a){a=$APP.l(a,"__xScrollStackHandlers");$APP.r($APP.r(a)?$APP.t($APP.l(a,"scrollAttached")):a)&&
10
+ (window.addEventListener("scroll",$APP.l(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},rz=function(a){a=$APP.l(a,"__xScrollStackHandlers");if($APP.r($APP.r(a)?$APP.l(a,"scrollAttached"):a))window.removeEventListener("scroll",$APP.l(a,"scroll")),a.scrollAttached=!1;else return null},sz=function(a){var b=$APP.l(a,"__xScrollStackCacheRAF");$APP.r(b)&&(cancelAnimationFrame(b),a.__xScrollStackCacheRAF=null);return $APP.n(a,"__xScrollStackCacheRAF",requestAnimationFrame(function(){a.__xScrollStackCacheRAF=
11
+ null;if($APP.r(a.isConnected)){var c=fz(a),d=c.length;if(d>0){var e=$APP.N($APP.l(a,"__xScrollStackRefs")),g=$APP.G(e,$APP.Zi);e=Array(d);for(var h=Array(d),k=0;;)if(k<d){var m=c[k];m.style.transform="";m.style.zIndex="";k+=1}else break;g.offsetHeight;g=g.getBoundingClientRect();for(k=0;;)if(k<d)m=c[k].getBoundingClientRect(),e[k]=m.top-g.top,h[k]=m.height,k+=1;else break;a.__xScrollStackNaturalOffsets=e;a.__xScrollStackChildHeights=h}return nz(a)}return null}))},tz=function(a){var b=$APP.l(a,"__xScrollStackIO");
12
+ $APP.r(b)&&b.disconnect();b=new IntersectionObserver(function(c){c=c[0].isIntersecting;a.__xScrollStackVisible=c;$APP.r(c)?$APP.r(oz(a))?c=null:(qz(a),c=sz(a)):c=rz(a);return c},{threshold:[0]});b.observe(a);a.__xScrollStackIO=b},uz=function(a){a=fz(a);for(var b=a.length,c=0;;)if(c<b){var d=a[c];d.style.transform="";d.style.zIndex="";c+=1}else break},vz=function(a){function b(){hz(a);return $APP.r($APP.l(a,"__xScrollStackVisible"))?sz(a):null}function c(){hz(a);return $APP.r($APP.l(a,"__xScrollStackVisible"))?
13
+ sz(a):null}var d=Zy(a);d=$APP.N(d);$APP.G(d,$APP.Fi).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.n(a,"__xScrollStackHandlers",{scroll:function(){return pz(a)},slot:c,resize:b,scrollAttached:!1})},wz=function(a){var b=$APP.l(a,"__xScrollStackHandlers");if($APP.r(b)){rz(a);var c=$APP.l(a,"__xScrollStackRefs");if($APP.r(c)){c=$APP.Fi.g(c);var d=$APP.l(b,"slot");$APP.r(d)&&c.removeEventListener("slotchange",d)}b=$APP.l(b,"resize");$APP.r(b)&&window.removeEventListener("resize",
14
+ b)}b=$APP.l(a,"__xScrollStackRAF");$APP.r(b)&&(cancelAnimationFrame(b),a.__xScrollStackRAF=null);b=$APP.l(a,"__xScrollStackCacheRAF");$APP.r(b)&&(cancelAnimationFrame(b),a.__xScrollStackCacheRAF=null);a.__xScrollStackHandlers=null},xz=function(a){var b=ez(a);if($APP.O($APP.l(a,"__xScrollStackModel"),b)){b=$APP.N(b);var c=$APP.G(b,$APP.W);a.__xScrollStackModel=b;$APP.r(c)?(uz(a),a.__xScrollStackStackedCount=0,a.__xScrollStackLastProg=null,rz(a)):$APP.r($APP.l(a,"__xScrollStackVisible"))&&(qz(a),sz(a))}},
15
+ yz=function(a){Object.defineProperty(a,"peek",{get:function(){return Uy(this.getAttribute("peek"),6)},set:function(b){return b!=null?this.setAttribute("peek",""+$APP.S.g(b)):this.removeAttribute("peek")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rotation",{get:function(){return Uy(this.getAttribute("rotation"),3)},set:function(b){return b!=null?this.setAttribute("rotation",""+$APP.S.g(b)):this.removeAttribute("rotation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"scrollDistance",
16
+ {get:function(){return Uy(this.getAttribute("scroll-distance"),150)},set:function(b){return b!=null?this.setAttribute("scroll-distance",""+$APP.S.g(b)):this.removeAttribute("scroll-distance")},enumerable:!0,configurable:!0});Object.defineProperty(a,"align",{get:function(){return Wy(this.getAttribute("align"))},set:function(b){return b!=null?this.setAttribute("align",""+$APP.S.g(b)):this.removeAttribute("align")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},
17
+ set:function(b){return $APP.r(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"stackedCount",{get:function(){var b=$APP.l(this,"__xScrollStackStackedCount");return $APP.r(b)?b:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.l(this,"__xScrollStackLastProg");return $APP.r(b)?b:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"refresh",{value:function(){hz(this);return $APP.r($APP.l(this,
18
+ "__xScrollStackVisible"))?sz(this):null},enumerable:!0,configurable:!0})},Az=function(){var a=class extends HTMLElement{};a.observedAttributes=zz;a.prototype.connectedCallback=function(){Zy(this);wz(this);vz(this);tz(this);xz(this);hz(this);return null};a.prototype.disconnectedCallback=function(){uz(this);wz(this);var b=$APP.l(this,"__xScrollStackIO");$APP.r(b)&&(b.disconnect(),this.__xScrollStackIO=null);this.__xScrollStackVisible=!1;this.__xScrollStackStackedCount=0;return this.__xScrollStackChildHeights=
19
+ this.__xScrollStackNaturalOffsets=this.__xScrollStackLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&(xz(this),hz(this),$APP.r($APP.l(this,"__xScrollStackVisible"))&&sz(this));return null};yz(a.prototype);return a},Bz=function(){$APP.r(customElements.get("x-scroll-stack"))||customElements.define("x-scroll-stack",Az());return null},jz=new $APP.M(null,"stack-rot","stack-rot",-949440704),cz=new $APP.M(null,"peek","peek",-291396325),mz=new $APP.M(null,"totalCount","totalCount",
20
+ 2101470328),bz=new $APP.M(null,"scroll-distance-raw","scroll-distance-raw",1537519796),kz=new $APP.M(null,"stack-x","stack-x",-1557848736),iz=new $APP.M(null,"stack-y","stack-y",146748620),az=new $APP.M(null,"rotation-raw","rotation-raw",318004495),$y=new $APP.M(null,"peek-raw","peek-raw",361729174),lz=new $APP.M(null,"stackedCount","stackedCount",137366007),dz=new $APP.M(null,"scroll-distance","scroll-distance",-544947824);var zz=["peek","rotation","scroll-distance","align","disabled"];$APP.Sd(["x-scroll-stack-change",new $APP.P(null,2,[$APP.U,new $APP.P(null,3,[lz,$APP.V,mz,$APP.V,$APP.dl,$APP.V],null),$APP.kl,!1],null),"x-scroll-stack-progress",new $APP.P(null,2,[$APP.U,new $APP.P(null,3,[$APP.dl,$APP.V,lz,$APP.V,mz,$APP.V],null),$APP.kl,!1],null)]);var Vy=new $APP.R(null,new $APP.P(null,3,["top",null,"center",null,"bottom",null],null),null);$APP.ka("baredom.exports.x_scroll_stack.init",Bz);export const init=Bz;