@vanelsas/baredom 1.0.0 → 1.1.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 (70) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +11 -3
  3. package/dist/base.js +368 -349
  4. package/dist/x-alert.js +18 -18
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +16 -17
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-breadcrumbs.js +14 -14
  9. package/dist/x-button.js +16 -16
  10. package/dist/x-cancel-dialogue.js +17 -17
  11. package/dist/x-card.js +7 -7
  12. package/dist/x-chart.js +47 -47
  13. package/dist/x-checkbox.js +11 -11
  14. package/dist/x-chip.js +8 -8
  15. package/dist/x-collapse.js +11 -11
  16. package/dist/x-command-palette.js +31 -31
  17. package/dist/x-container.js +6 -6
  18. package/dist/x-context-menu.js +19 -20
  19. package/dist/x-copy.js +23 -23
  20. package/dist/x-currency-field.js +23 -23
  21. package/dist/x-date-picker.js +39 -39
  22. package/dist/x-divider.js +12 -12
  23. package/dist/x-drawer.js +12 -12
  24. package/dist/x-dropdown.js +10 -10
  25. package/dist/x-fieldset.js +6 -6
  26. package/dist/x-file-download.js +7 -7
  27. package/dist/x-form-field.js +17 -17
  28. package/dist/x-form.js +9 -9
  29. package/dist/x-gaussian-blur.js +33 -0
  30. package/dist/x-grid.js +7 -7
  31. package/dist/x-kinetic-typography.js +62 -0
  32. package/dist/x-menu-item.js +10 -10
  33. package/dist/x-menu.js +10 -10
  34. package/dist/x-modal.js +13 -13
  35. package/dist/x-navbar.js +13 -13
  36. package/dist/x-notification-center.js +10 -10
  37. package/dist/x-organic-divider.js +20 -0
  38. package/dist/x-organic-shape.js +15 -0
  39. package/dist/x-pagination.js +16 -16
  40. package/dist/x-popover.js +15 -15
  41. package/dist/x-progress-circle.js +10 -10
  42. package/dist/x-progress.js +11 -11
  43. package/dist/x-radio.js +11 -11
  44. package/dist/x-ripple-effect.js +14 -0
  45. package/dist/x-scroll-parallax.js +20 -0
  46. package/dist/x-scroll-story.js +38 -0
  47. package/dist/x-scroll-timeline.js +51 -0
  48. package/dist/x-scroll.js +43 -0
  49. package/dist/x-search-field.js +14 -14
  50. package/dist/x-select.js +9 -9
  51. package/dist/x-sidebar.js +16 -16
  52. package/dist/x-skeleton.js +6 -7
  53. package/dist/x-slider.js +16 -16
  54. package/dist/x-spacer.js +5 -5
  55. package/dist/x-spinner.js +5 -5
  56. package/dist/x-stat.js +11 -11
  57. package/dist/x-stepper.js +16 -16
  58. package/dist/x-switch.js +10 -10
  59. package/dist/x-tab.js +7 -7
  60. package/dist/x-table-cell.js +21 -21
  61. package/dist/x-table-row.js +10 -10
  62. package/dist/x-table.js +14 -14
  63. package/dist/x-tabs.js +11 -12
  64. package/dist/x-text-area.js +19 -19
  65. package/dist/x-timeline-item.js +23 -23
  66. package/dist/x-timeline.js +9 -9
  67. package/dist/x-toast.js +23 -23
  68. package/dist/x-toaster.js +8 -8
  69. package/dist/x-typography.js +11 -0
  70. package/package.json +43 -2
@@ -1,17 +1,17 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Xv=function(a){for(var b=[],c=arguments.length,d=0;;)if(d<c)b.push(arguments[d]),d+=1;else break;return $APP.Bc($APP.za,$APP.og,0<b.length?new $APP.Fb(b.slice(0),0,null):null)},Yv=function(a){if(typeof a==="string"){a=parseInt(a,10);var b=isFinite(a);return $APP.n($APP.n(b)?a>0:b)?a:1}return 1},ew=function(a){var b=$APP.l(a,"__xPaginationRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("nav"),e=document.createElement("ol");
3
- var g=document.createElement("li");var h=document.createElement("button"),k=document.createElement("slot");g.setAttribute("part","item item-prev");h.setAttribute("part","button button-prev");h.setAttribute("aria-label","Previous page");k.setAttribute("name","prev");k.textContent="Prev";h.appendChild(k);g.appendChild(h);g=new $APP.Q(null,2,[Zv,g,$v,h],null);h=document.createElement("li");k=document.createElement("button");var m=document.createElement("slot");h.setAttribute("part","item item-next");
4
- k.setAttribute("part","button button-next");k.setAttribute("aria-label","Next page");m.setAttribute("name","next");m.textContent="Next";k.appendChild(m);h.appendChild(k);h=new $APP.Q(null,2,[Zv,h,$v,k],null);c.textContent=":host{display:block;color-scheme:light dark;--x-pagination-gap:0.25rem;--x-pagination-button-size:2rem;--x-pagination-button-radius:0.375rem;--x-pagination-button-bg:transparent;--x-pagination-button-color:rgba(0,0,0,0.75);--x-pagination-button-border:1px solid rgba(0,0,0,0.15);--x-pagination-button-hover-bg:rgba(0,0,0,0.06);--x-pagination-button-hover-color:rgba(0,0,0,0.9);--x-pagination-current-bg:rgba(0,0,0,0.88);--x-pagination-current-color:#fff;--x-pagination-current-border:1px solid transparent;--x-pagination-disabled-opacity:0.4;--x-pagination-font-size:0.875rem;--x-pagination-ellipsis-color:rgba(0,0,0,0.45);}@media (prefers-color-scheme:dark){:host{--x-pagination-button-color:rgba(255,255,255,0.75);--x-pagination-button-border:1px solid rgba(255,255,255,0.15);--x-pagination-button-hover-bg:rgba(255,255,255,0.08);--x-pagination-button-hover-color:rgba(255,255,255,0.95);--x-pagination-current-bg:rgba(255,255,255,0.90);--x-pagination-current-color:#000;--x-pagination-ellipsis-color:rgba(255,255,255,0.40);}}:host([data-size\x3d'sm']){--x-pagination-button-size:1.75rem;--x-pagination-font-size:0.75rem;}:host([data-size\x3d'lg']){--x-pagination-button-size:2.5rem;--x-pagination-font-size:1rem;}[part~\x3d'nav']{display:block;}[part~\x3d'list']{display:flex;flex-wrap:wrap;align-items:center;list-style:none;margin:0;padding:0;gap:var(--x-pagination-gap);}[part~\x3d'button']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);padding:0 0.5rem;border:var(--x-pagination-button-border);border-radius:var(--x-pagination-button-radius);background:var(--x-pagination-button-bg);color:var(--x-pagination-button-color);font:inherit;font-size:var(--x-pagination-font-size);cursor:pointer;user-select:none;box-sizing:border-box;transition:background 0.15s,color 0.15s;}[part~\x3d'button']:hover:not(:disabled){background:var(--x-pagination-button-hover-bg);color:var(--x-pagination-button-hover-color);}[part~\x3d'button'][data-current]{background:var(--x-pagination-current-bg);color:var(--x-pagination-current-color);border:var(--x-pagination-current-border);font-weight:600;cursor:default;}[part~\x3d'button']:disabled{opacity:var(--x-pagination-disabled-opacity);cursor:not-allowed;}[part~\x3d'ellipsis']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);color:var(--x-pagination-ellipsis-color);font-size:var(--x-pagination-font-size);user-select:none;}@media (prefers-reduced-motion:reduce){[part~\x3d'button']{transition:none !important;}}";
5
- d.setAttribute("part","nav");e.setAttribute("part","list");e.appendChild(Zv.g(g));e.appendChild(Zv.g(h));d.appendChild(e);b.appendChild(c);b.appendChild(d);b=new $APP.Q(null,6,[$APP.fh,d,$APP.eh,e,aw,Zv.g(g),bw,$v.g(g),cw,Zv.g(h),dw,$v.g(h)],null);a.__xPaginationRefs=b;return $APP.l(a,"__xPaginationRefs")},fw=function(a,b,c){var d=document.createElement("li"),e=document.createElement("button");d.setAttribute("part","item item-page");d.setAttribute("data-page",""+$APP.T.g(a));e.setAttribute("part",
6
- "button button-page");e.setAttribute("aria-label","Page "+$APP.T.g(a));e.setAttribute("data-page",""+$APP.T.g(a));$APP.n(b)&&(e.setAttribute("aria-current","page"),e.setAttribute("data-current",""));$APP.n(c)&&e.setAttribute("disabled","");e.textContent=""+$APP.T.g(a);d.appendChild(e);return d},gw=function(){var a=document.createElement("li"),b=document.createElement("span");a.setAttribute("part","item item-ellipsis");b.setAttribute("part","ellipsis");b.setAttribute("aria-hidden","true");b.textContent=
7
- "…";a.appendChild(b);return a},sw=function(a){a=new $APP.Q(null,7,[hw,a.getAttribute("page"),iw,a.getAttribute("total-pages"),jw,a.getAttribute("sibling-count"),kw,a.getAttribute("boundary-count"),$APP.$h,a.getAttribute("size"),$APP.Sh,a.hasAttribute("disabled"),$APP.Wg,a.getAttribute("label")],null);var b=$APP.N(a),c=$APP.I(b,hw),d=$APP.I(b,iw),e=$APP.I(b,jw),g=$APP.I(b,kw),h=$APP.I(b,$APP.$h);a=$APP.I(b,$APP.Sh);b=$APP.I(b,$APP.Wg);d=Yv(d);c=$APP.dg.h(1,$APP.eg.h(Yv(c),d));if(typeof e==="string"){e=
8
- parseInt(e,10);var k=isFinite(e);e=$APP.n($APP.n(k)?e>=0:k)?e:1}else e=1;typeof g==="string"?(g=parseInt(g,10),k=isFinite(g),k=$APP.n($APP.n(k)?g>=0:k)?g:1):k=1;g=e;e=k;h=typeof h==="string"?h.trim().toLowerCase():null;h=$APP.yc(lw,h)?h:"md";return new $APP.Q(null,7,[mw,c,nw,d,qw,g,rw,e,$APP.sg,h,$APP.pi,$APP.K(a),$APP.W,$APP.n(b)?b:"Pagination"],null)},vw=function(a){var b=ew(a),c=$APP.eh.g(b),d=$APP.fh.g(b),e=bw.g(b),g=dw.g(b),h=aw.g(b);b=cw.g(b);var k=sw(a),m=$APP.N(k),q=$APP.I(m,mw),r=$APP.I(m,
9
- nw),v=$APP.I(m,qw),w=$APP.I(m,rw),z=$APP.I(m,$APP.sg);m=$APP.I(m,$APP.W);a:if(r<=0)r=$APP.Fd;else{var A=$APP.eg.h(w,r);w=$APP.dg.h(r-w- -1,1);var D=$APP.dg.h(1,q-v);v=$APP.eg.h(r,q+v);r=$APP.ve.h($APP.ve.h($APP.ve.h(Xv(),$APP.wf(1,A+1)),$APP.wf(w,r+1)),$APP.wf(D,v+1));r=$APP.Wd(r);D=$APP.Fd;for(v=0;;){if(v>=$APP.B(r)){r=D;break a}A=$APP.$b(r,v);var G=w=v>0?$APP.$b(r,v-1):null;w=$APP.n($APP.n(G)?A>w+1:G)?$APP.$e.h(D,new $APP.Q(null,1,[$APP.Z,tw],null)):D;A=$APP.$e.h(w,new $APP.Q(null,2,[$APP.Z,mw,
10
- uw,A],null));v+=1;D=A}r=void 0}d.setAttribute("aria-label",m);a.setAttribute("data-size",z);d=$APP.N(k);a=$APP.I(d,mw);d=$APP.I(d,$APP.pi);$APP.n($APP.n(d)?d:a<=1)?e.setAttribute("disabled",""):e.removeAttribute("disabled");d=$APP.N(k);e=$APP.I(d,mw);a=$APP.I(d,nw);d=$APP.I(d,$APP.pi);$APP.n($APP.n(d)?d:e>=a)?g.setAttribute("disabled",""):g.removeAttribute("disabled");c.innerHTML="";c.appendChild(h);g=$APP.u(r);h=null;for(a=e=0;;)if(a<e)d=h.D(null,a),$APP.C.h(tw,$APP.Z.g(d))?c.appendChild(gw()):c.appendChild(fw(uw.g(d),
11
- $APP.C.h(uw.g(d),q),$APP.pi.g(k))),a+=1;else if(g=$APP.u(g))h=g,$APP.uc(h)?(g=$APP.mb(h),a=$APP.nb(h),h=g,e=$APP.B(g),g=a):(g=$APP.x(h),$APP.C.h(tw,$APP.Z.g(g))?c.appendChild(gw()):c.appendChild(fw(uw.g(g),$APP.C.h(uw.g(g),q),$APP.pi.g(k))),g=$APP.y(h),h=null,e=0),a=0;else break;c.appendChild(b)},ww=function(a,b){return a.dispatchEvent(new CustomEvent("page-change",{detail:{page:b},bubbles:!0,composed:!0,cancelable:!1}))},xw=function(a,b){a:{b=b.composedPath();for(var c=b.length,d=0;;)if(d<c){var e=
12
- b[d];if($APP.C.h("BUTTON",$APP.n(e)?e.tagName:null)){b=e;break a}d+=1}else{b=null;break a}b=void 0}if($APP.n($APP.n(b)?$APP.p(b.hasAttribute("disabled")):b)){d=$APP.l(a,"__xPaginationRefs");c=bw.g(d);d=dw.g(d);e=b.getAttribute("data-page");if(b===c)return c=sw(a),b=mw.g(c),b>1?ww(a,b-1):null;if(b===d)return c=sw(a),b=mw.g(c),c=nw.g(c),b<c?ww(a,b+1):null;if(e!=null)return b=parseInt(e,10),$APP.n(isFinite(b))?ww(a,b):null}return null},yw=function(a){function b(d){return xw(a,d)}var c=ew(a);$APP.eh.g(c).addEventListener("click",
13
- b);$APP.la(a,"__xPaginationHandlers",{click:b})},zw=function(a){var b=$APP.l(a,"__xPaginationHandlers");if($APP.n(b)){var c=$APP.l(a,"__xPaginationRefs");$APP.n(c)&&(c=$APP.eh.g(c),b=$APP.l(b,"click"),$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",b))}a.__xPaginationHandlers=null},Aw=function(a){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,
14
- configurable:!0})},Bw=function(a,b,c){Object.defineProperty(a,b,{get:function(){return Yv(this.getAttribute(c))},set:function(d){return d!=null?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)},enumerable:!0,configurable:!0})},Cw=function(a,b,c,d){Object.defineProperty(a,b,{get:function(){var e=this.getAttribute(c);return $APP.n(e)?e:d},set:function(e){return e!=null?this.setAttribute(c,""+$APP.T.g(e)):this.removeAttribute(c)},enumerable:!0,configurable:!0})},Dw=function(a){Bw(a,"page",
15
- "page");Bw(a,"total-pages","total-pages");Bw(a,"sibling-count","sibling-count");Bw(a,"boundary-count","boundary-count");Cw(a,"size","size","md");Aw(a);Cw(a,"label","label","Pagination")},Fw=function(){var a=class extends HTMLElement{};a.observedAttributes=Ew;a.prototype.connectedCallback=function(){ew(this);zw(this);yw(this);vw(this);return null};a.prototype.disconnectedCallback=function(){zw(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&vw(this);return null};
16
- Dw(a.prototype);return a},Gw=function(){$APP.n(customElements.get("x-pagination"))||customElements.define("x-pagination",Fw());return null},iw=new $APP.M(null,"total-pages-raw","total-pages-raw",430880208),dw=new $APP.M(null,"next-btn","next-btn",-286265938),aw=new $APP.M(null,"prev-li","prev-li",940258334),rw=new $APP.M(null,"boundary-count","boundary-count",1637925987),hw=new $APP.M(null,"page-raw","page-raw",-1198808870),Zv=new $APP.M(null,"li","li",723558921),bw=new $APP.M(null,"prev-btn","prev-btn",
17
- -352689882),tw=new $APP.M(null,"ellipsis","ellipsis",998505738),uw=new $APP.M(null,"n","n",562130025),kw=new $APP.M(null,"boundary-count-raw","boundary-count-raw",410083250),nw=new $APP.M(null,"total-pages","total-pages",685894112),mw=new $APP.M(null,"page","page",849072397),cw=new $APP.M(null,"next-li","next-li",648524823),jw=new $APP.M(null,"sibling-count-raw","sibling-count-raw",-620117200),$v=new $APP.M(null,"btn","btn",1978294651),qw=new $APP.M(null,"sibling-count","sibling-count",1756034573);var Ew="page total-pages sibling-count boundary-count size disabled label".split(" "),lw=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null);$APP.ja("baredom.exports.x_pagination.init",Gw);export const init=Gw;
2
+ var ZA=function(a){for(var b=[],c=arguments.length,d=0;;)if(d<c)b.push(arguments[d]),d+=1;else break;return $APP.Hc($APP.za,$APP.Kg,0<b.length?new $APP.Gb(b.slice(0),0,null):null)},$A=function(a){if(typeof a==="string"){a=parseInt(a,10);var b=isFinite(a);return $APP.n($APP.n(b)?a>0:b)?a:1}return 1},eB=function(a){var b=$APP.l(a,"__xPaginationRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("nav"),e=document.createElement("ol");
3
+ var g=document.createElement("li");var h=document.createElement("button"),k=document.createElement("slot");g.setAttribute("part","item item-prev");h.setAttribute("part","button button-prev");h.setAttribute("aria-label","Previous page");k.setAttribute("name","prev");k.textContent="Prev";h.appendChild(k);g.appendChild(h);g=new $APP.Q(null,2,[aB,g,bB,h],null);h=document.createElement("li");k=document.createElement("button");var m=document.createElement("slot");h.setAttribute("part","item item-next");
4
+ k.setAttribute("part","button button-next");k.setAttribute("aria-label","Next page");m.setAttribute("name","next");m.textContent="Next";k.appendChild(m);h.appendChild(k);h=new $APP.Q(null,2,[aB,h,bB,k],null);c.textContent=":host{display:block;color-scheme:light dark;--x-pagination-gap:0.25rem;--x-pagination-button-size:2rem;--x-pagination-button-radius:0.375rem;--x-pagination-button-bg:transparent;--x-pagination-button-color:rgba(0,0,0,0.75);--x-pagination-button-border:1px solid rgba(0,0,0,0.15);--x-pagination-button-hover-bg:rgba(0,0,0,0.06);--x-pagination-button-hover-color:rgba(0,0,0,0.9);--x-pagination-current-bg:rgba(0,0,0,0.88);--x-pagination-current-color:#fff;--x-pagination-current-border:1px solid transparent;--x-pagination-disabled-opacity:0.4;--x-pagination-font-size:0.875rem;--x-pagination-ellipsis-color:rgba(0,0,0,0.45);}@media (prefers-color-scheme:dark){:host{--x-pagination-button-color:rgba(255,255,255,0.75);--x-pagination-button-border:1px solid rgba(255,255,255,0.15);--x-pagination-button-hover-bg:rgba(255,255,255,0.08);--x-pagination-button-hover-color:rgba(255,255,255,0.95);--x-pagination-current-bg:rgba(255,255,255,0.90);--x-pagination-current-color:#000;--x-pagination-ellipsis-color:rgba(255,255,255,0.40);}}:host([data-size\x3d'sm']){--x-pagination-button-size:1.75rem;--x-pagination-font-size:0.75rem;}:host([data-size\x3d'lg']){--x-pagination-button-size:2.5rem;--x-pagination-font-size:1rem;}[part~\x3d'nav']{display:block;}[part~\x3d'list']{display:flex;flex-wrap:wrap;align-items:center;list-style:none;margin:0;padding:0;gap:var(--x-pagination-gap);}[part~\x3d'button']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);padding:0 0.5rem;border:var(--x-pagination-button-border);border-radius:var(--x-pagination-button-radius);background:var(--x-pagination-button-bg);color:var(--x-pagination-button-color);font:inherit;font-size:var(--x-pagination-font-size);cursor:pointer;user-select:none;box-sizing:border-box;transition:background 0.15s,color 0.15s;}[part~\x3d'button']:hover:not(:disabled){background:var(--x-pagination-button-hover-bg);color:var(--x-pagination-button-hover-color);}[part~\x3d'button'][data-current]{background:var(--x-pagination-current-bg);color:var(--x-pagination-current-color);border:var(--x-pagination-current-border);font-weight:600;cursor:default;}[part~\x3d'button']:disabled{opacity:var(--x-pagination-disabled-opacity);cursor:not-allowed;}[part~\x3d'ellipsis']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);color:var(--x-pagination-ellipsis-color);font-size:var(--x-pagination-font-size);user-select:none;}@media (prefers-reduced-motion:reduce){[part~\x3d'button']{transition:none !important;}}";
5
+ d.setAttribute("part","nav");e.setAttribute("part","list");e.appendChild(aB.g(g));e.appendChild(aB.g(h));d.appendChild(e);b.appendChild(c);b.appendChild(d);b=new $APP.Q(null,6,[$APP.Rh,d,$APP.Ph,e,cB,aB.g(g),$APP.Li,bB.g(g),dB,aB.g(h),$APP.Yg,bB.g(h)],null);a.__xPaginationRefs=b;return $APP.l(a,"__xPaginationRefs")},fB=function(a,b,c){var d=document.createElement("li"),e=document.createElement("button");d.setAttribute("part","item item-page");d.setAttribute("data-page",""+$APP.T.g(a));e.setAttribute("part",
6
+ "button button-page");e.setAttribute("aria-label","Page "+$APP.T.g(a));e.setAttribute("data-page",""+$APP.T.g(a));$APP.n(b)&&(e.setAttribute("aria-current","page"),e.setAttribute("data-current",""));$APP.n(c)&&e.setAttribute("disabled","");e.textContent=""+$APP.T.g(a);d.appendChild(e);return d},gB=function(){var a=document.createElement("li"),b=document.createElement("span");a.setAttribute("part","item item-ellipsis");b.setAttribute("part","ellipsis");b.setAttribute("aria-hidden","true");b.textContent=
7
+ "…";a.appendChild(b);return a},qB=function(a){a=new $APP.Q(null,7,[hB,a.getAttribute("page"),iB,a.getAttribute("total-pages"),jB,a.getAttribute("sibling-count"),kB,a.getAttribute("boundary-count"),$APP.lj,a.getAttribute("size"),$APP.aj,a.hasAttribute("disabled"),$APP.Ch,a.getAttribute("label")],null);var b=$APP.O(a),c=$APP.I(b,hB),d=$APP.I(b,iB),e=$APP.I(b,jB),g=$APP.I(b,kB),h=$APP.I(b,$APP.lj);a=$APP.I(b,$APP.aj);b=$APP.I(b,$APP.Ch);d=$A(d);c=$APP.zg.h(1,$APP.Ag.h($A(c),d));if(typeof e==="string"){e=
8
+ parseInt(e,10);var k=isFinite(e);e=$APP.n($APP.n(k)?e>=0:k)?e:1}else e=1;typeof g==="string"?(g=parseInt(g,10),k=isFinite(g),k=$APP.n($APP.n(k)?g>=0:k)?g:1):k=1;g=e;e=k;h=typeof h==="string"?h.trim().toLowerCase():null;h=$APP.M(lB,h)?h:"md";return new $APP.Q(null,7,[mB,c,nB,d,oB,g,pB,e,$APP.Pg,h,$APP.Fj,$APP.K(a),$APP.W,$APP.n(b)?b:"Pagination"],null)},tB=function(a){var b=eB(a),c=$APP.Ph.g(b),d=$APP.Rh.g(b),e=$APP.Li.g(b),g=$APP.Yg.g(b),h=cB.g(b);b=dB.g(b);var k=qB(a),m=$APP.O(k),p=$APP.I(m,mB),
9
+ r=$APP.I(m,nB),v=$APP.I(m,oB),x=$APP.I(m,pB),y=$APP.I(m,$APP.Pg);m=$APP.I(m,$APP.W);a:if(r<=0)r=$APP.Md;else{var A=$APP.Ag.h(x,r);x=$APP.zg.h(r-x- -1,1);var D=$APP.zg.h(1,p-v);v=$APP.Ag.h(r,p+v);r=$APP.De.h($APP.De.h($APP.De.h(ZA(),$APP.Of(1,A+1)),$APP.Of(x,r+1)),$APP.Of(D,v+1));r=$APP.ee(r);D=$APP.Md;for(v=0;;){if(v>=$APP.B(r)){r=D;break a}A=$APP.bc(r,v);var F=x=v>0?$APP.bc(r,v-1):null;x=$APP.n($APP.n(F)?A>x+1:F)?$APP.jf.h(D,new $APP.Q(null,1,[$APP.Z,rB],null)):D;A=$APP.jf.h(x,new $APP.Q(null,2,
10
+ [$APP.Z,mB,sB,A],null));v+=1;D=A}r=void 0}d.setAttribute("aria-label",m);a.setAttribute("data-size",y);d=$APP.O(k);a=$APP.I(d,mB);d=$APP.I(d,$APP.Fj);$APP.n($APP.n(d)?d:a<=1)?e.setAttribute("disabled",""):e.removeAttribute("disabled");d=$APP.O(k);e=$APP.I(d,mB);a=$APP.I(d,nB);d=$APP.I(d,$APP.Fj);$APP.n($APP.n(d)?d:e>=a)?g.setAttribute("disabled",""):g.removeAttribute("disabled");c.innerHTML="";c.appendChild(h);g=$APP.u(r);h=null;for(a=e=0;;)if(a<e)d=h.H(null,a),$APP.C.h(rB,$APP.Z.g(d))?c.appendChild(gB()):
11
+ c.appendChild(fB(sB.g(d),$APP.C.h(sB.g(d),p),$APP.Fj.g(k))),a+=1;else if(g=$APP.u(g))h=g,$APP.yc(h)?(g=$APP.nb(h),a=$APP.ob(h),h=g,e=$APP.B(g),g=a):(g=$APP.w(h),$APP.C.h(rB,$APP.Z.g(g))?c.appendChild(gB()):c.appendChild(fB(sB.g(g),$APP.C.h(sB.g(g),p),$APP.Fj.g(k))),g=$APP.z(h),h=null,e=0),a=0;else break;c.appendChild(b)},uB=function(a,b){return a.dispatchEvent(new CustomEvent("page-change",{detail:{page:b},bubbles:!0,composed:!0,cancelable:!1}))},vB=function(a,b){a:{b=b.composedPath();for(var c=b.length,
12
+ d=0;;)if(d<c){var e=b[d];if($APP.C.h("BUTTON",$APP.n(e)?e.tagName:null)){b=e;break a}d+=1}else{b=null;break a}b=void 0}if($APP.n($APP.n(b)?$APP.q(b.hasAttribute("disabled")):b)){d=$APP.l(a,"__xPaginationRefs");c=$APP.Li.g(d);d=$APP.Yg.g(d);e=b.getAttribute("data-page");if(b===c)return c=qB(a),b=mB.g(c),b>1?uB(a,b-1):null;if(b===d)return c=qB(a),b=mB.g(c),c=nB.g(c),b<c?uB(a,b+1):null;if(e!=null)return b=parseInt(e,10),$APP.n(isFinite(b))?uB(a,b):null}return null},wB=function(a){function b(d){return vB(a,
13
+ d)}var c=eB(a);$APP.Ph.g(c).addEventListener("click",b);$APP.la(a,"__xPaginationHandlers",{click:b})},xB=function(a){var b=$APP.l(a,"__xPaginationHandlers");if($APP.n(b)){var c=$APP.l(a,"__xPaginationRefs");$APP.n(c)&&(c=$APP.Ph.g(c),b=$APP.l(b,"click"),$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",b))}a.__xPaginationHandlers=null},yB=function(a){Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",
14
+ ""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},zB=function(a,b,c){Object.defineProperty(a,b,{get:function(){return $A(this.getAttribute(c))},set:function(d){return d!=null?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)},enumerable:!0,configurable:!0})},AB=function(a,b,c,d){Object.defineProperty(a,b,{get:function(){var e=this.getAttribute(c);return $APP.n(e)?e:d},set:function(e){return e!=null?this.setAttribute(c,""+$APP.T.g(e)):this.removeAttribute(c)},enumerable:!0,
15
+ configurable:!0})},BB=function(a){zB(a,"page","page");zB(a,"total-pages","total-pages");zB(a,"sibling-count","sibling-count");zB(a,"boundary-count","boundary-count");AB(a,"size","size","md");yB(a);AB(a,"label","label","Pagination")},DB=function(){var a=class extends HTMLElement{};a.observedAttributes=CB;a.prototype.connectedCallback=function(){eB(this);xB(this);wB(this);tB(this);return null};a.prototype.disconnectedCallback=function(){xB(this);return null};a.prototype.attributeChangedCallback=function(b,
16
+ c,d){$APP.P(c,d)&&tB(this);return null};BB(a.prototype);return a},EB=function(){$APP.n(customElements.get("x-pagination"))||customElements.define("x-pagination",DB());return null},iB=new $APP.N(null,"total-pages-raw","total-pages-raw",430880208),cB=new $APP.N(null,"prev-li","prev-li",940258334),pB=new $APP.N(null,"boundary-count","boundary-count",1637925987),hB=new $APP.N(null,"page-raw","page-raw",-1198808870),aB=new $APP.N(null,"li","li",723558921),rB=new $APP.N(null,"ellipsis","ellipsis",998505738),
17
+ sB=new $APP.N(null,"n","n",562130025),kB=new $APP.N(null,"boundary-count-raw","boundary-count-raw",410083250),nB=new $APP.N(null,"total-pages","total-pages",685894112),mB=new $APP.N(null,"page","page",849072397),dB=new $APP.N(null,"next-li","next-li",648524823),jB=new $APP.N(null,"sibling-count-raw","sibling-count-raw",-620117200),bB=new $APP.N(null,"btn","btn",1978294651),oB=new $APP.N(null,"sibling-count","sibling-count",1756034573);var CB="page total-pages sibling-count boundary-count size disabled label".split(" "),lB=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null);$APP.ja("baredom.exports.x_pagination.init",EB);export const init=EB;
package/dist/x-popover.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Gm=function(a){return document.createElement(a)},Hm=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},Om=function(a){var b=$APP.l(a,"__xPopoverRefs");if($APP.n(b)){a=new $APP.Q(null,6,[$APP.jh,a.hasAttribute("open"),$APP.Sh,a.hasAttribute("disabled"),Im,a.hasAttribute("no-close"),Jm,a.getAttribute("heading"),$APP.Yi,a.getAttribute("placement"),Km,a.getAttribute("close-label")],null);var c=$APP.N(a),d=$APP.I(c,$APP.jh),e=$APP.I(c,$APP.Sh),g=$APP.I(c,Im),h=$APP.I(c,Jm);
3
- a=$APP.I(c,$APP.Yi);c=$APP.I(c,Km);d=$APP.K(d);e=$APP.K(e);g=$APP.K(g);h=$APP.n(h)?h:"";c=$APP.n(c)?c:"Close";a=$APP.yc(Lm,a)?a:"bottom-start";e=$APP.N(new $APP.Q(null,6,[$APP.Hi,d,$APP.V,e,Mm,g,$APP.Eh,h,Nm,c,$APP.ri,a],null));d=$APP.I(e,$APP.Hi);a=$APP.I(e,Mm);h=$APP.I(e,$APP.Eh);c=$APP.I(e,Nm);g=$APP.I(e,$APP.ri);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);Hm(k,"inert",$APP.p(d));$APP.O(h,"")?k.setAttribute("aria-labelledby",
4
- "popover-heading"):k.removeAttribute("aria-labelledby");m.textContent=h;b.setAttribute("aria-label",c);Hm(b,"hidden",a);b=$APP.C.h(h,"");return Hm(e,"hidden",b?a:b)}return null},Pm=function(a,b){b=new CustomEvent("x-popover-toggle",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.p(b.defaultPrevented)},Qm=function(a,b){return a.dispatchEvent(new CustomEvent("x-popover-change",{detail:b,bubbles:!0,composed:!0,cancelable:!1}))},Rm=function(a,b){return $APP.p(a.hasAttribute("disabled"))&&
5
- $APP.p(a.hasAttribute("open"))&&Pm(a,{open:!0,source:b})?(a.setAttribute("open",""),Qm(a,{open:!0})):null},Sm=function(a,b){var c=$APP.p(a.hasAttribute("disabled"));return $APP.n(c?a.hasAttribute("open"):c)&&Pm(a,{open:!1,source:b})?(a.removeAttribute("open"),Qm(a,{open:!1})):null},Tm=function(a,b){return $APP.n(a.hasAttribute("open"))?Sm(a,b):Rm(a,b)},Um=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},Vm=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},Wm=function(a){return{triggerClick:function(){return Tm(a,"pointer")},closeBtnClick:function(){return Sm(a,"close-button")},hostFocusout:function(b){return $APP.n(a.hasAttribute("open"))?
7
- (b=b.relatedTarget,b==null||$APP.p(a.contains(b))?Sm(a,"focusout"):null):null},docClick:function(b){return $APP.n(a.hasAttribute("open"))?(b=$APP.ec(b.composedPath()),b=$APP.xd(function(c){return c===a},b),$APP.n(b)?null:Sm(a,"outside-click")):null},docKeydown:function(b){b=$APP.C.h(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?Sm(a,"escape"):null},footerSlotchange:function(){var b=$APP.l(a,"__xPopoverRefs");return $APP.n(b)?Hm($APP.l(b,"footer"),"hidden",!($APP.l(b,"footerSlot").assignedNodes().length>
8
- 0)):null}}},Xm=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"))}}},Ym=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
9
- get:function(){return this.hasAttribute(c)},set:function(d){return Hm(this,c,$APP.K(d))}})},Zm=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.T.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},an=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return $m}});Ym(b,"open","open");
10
- Ym(b,"disabled","disabled");Ym(b,"noClose","no-close");Zm(b,"placement","placement");Zm(b,"heading","heading");Zm(b,"closeLabel","close-label");b.show=function(){return Rm(this,"programmatic")};b.hide=function(){return Sm(this,"programmatic")};b.toggle=function(){return Tm(this,"programmatic")};b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xPopoverRefs"))){var c=this.attachShadow({mode:"open"}),d=Gm("style"),e=Gm("span"),g=Gm("slot"),h=Gm("div"),k=Gm("div"),m=Gm("div"),q=Gm("span"),r=Gm("button"),
11
- v=Gm("div"),w=Gm("slot"),z=Gm("div"),A=Gm("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");q.setAttribute("part","heading");q.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");z.setAttribute("part","footer");z.setAttribute("hidden","");A.setAttribute("name","footer");e.appendChild(g);m.appendChild(q);m.appendChild(r);v.appendChild(w);z.appendChild(A);h.appendChild(k);h.appendChild(m);h.appendChild(v);h.appendChild(z);c.appendChild(d);c.appendChild(e);c.appendChild(h);this.__xPopoverRefs={trigger:e,panel:h,header:m,heading:q,closeBtn:r,body:v,footer:z,footerSlot:A}}Xm(this);Vm(this);this.__xPopoverHandlers=Wm(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"))&&Um(this);return Om(this)};b.disconnectedCallback=function(){Xm(this);return Vm(this)};b.attributeChangedCallback=
15
- function(c){$APP.n($APP.l(this,"__xPopoverRefs"))?(Om(this),c=$APP.C.h(c,"open")?$APP.n(this.hasAttribute("open"))?Um(this):Vm(this):null):c=null;return c};return a},bn=function(){return $APP.n(customElements.get("x-popover"))?null:customElements.define("x-popover",an())},Nm=new $APP.M(null,"close-label","close-label",-1088385889),Mm=new $APP.M(null,"no-close?","no-close?",1842227643),Km=new $APP.M(null,"close-label-raw","close-label-raw",798572883),Im=new $APP.M(null,"no-close-present?","no-close-present?",
16
- -154717274),Jm=new $APP.M(null,"heading-raw","heading-raw",116296555);var Lm=new $APP.S(null,new $APP.Q(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),$m="open placement heading close-label no-close disabled".split(" ");$APP.sd(["x-popover-toggle",new $APP.Q(null,2,[$APP.ni,!0,$APP.Y,new $APP.Q(null,2,[$APP.ji,$APP.Di,$APP.vh,$APP.X],null)],null),"x-popover-change",new $APP.Q(null,2,[$APP.ni,!1,$APP.Y,new $APP.Q(null,1,[$APP.ji,$APP.Di],null)],null)]);$APP.ja("baredom.exports.x_popover.init",bn);export const init=bn;
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.Wh,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.O(a),d=$APP.I(c,$APP.Wh),e=$APP.I(c,$APP.aj),g=$APP.I(c,po),h=$APP.I(c,qo);
3
+ a=$APP.I(c,$APP.Ak);c=$APP.I(c,ro);d=$APP.K(d);e=$APP.K(e);g=$APP.K(g);h=$APP.n(h)?h:"";c=$APP.n(c)?c:"Close";a=$APP.M(so,a)?a:"bottom-start";e=$APP.O(new $APP.Q(null,6,[$APP.fk,d,$APP.V,e,to,g,$APP.Ci,h,uo,c,$APP.Hj,a],null));d=$APP.I(e,$APP.fk);a=$APP.I(e,to);h=$APP.I(e,$APP.Ci);c=$APP.I(e,uo);g=$APP.I(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.P(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.gc(b.composedPath()),b=$APP.Cd(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.K(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.P(d)?(d=""+$APP.T.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.N(null,"close-label","close-label",-1088385889),to=new $APP.N(null,"no-close?","no-close?",1842227643),ro=new $APP.N(null,"close-label-raw","close-label-raw",798572883),po=new $APP.N(null,"no-close-present?","no-close-present?",
16
+ -154717274),qo=new $APP.N(null,"heading-raw","heading-raw",116296555);var so=new $APP.S(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.yd(["x-popover-toggle",new $APP.Q(null,2,[$APP.Dj,!0,$APP.Y,new $APP.Q(null,2,[$APP.zj,$APP.Yj,$APP.ni,$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;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var sD=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},vD=function(a){var b=new $APP.Q(null,7,[$APP.U,a.getAttribute("value"),$APP.Yg,a.getAttribute("max"),$APP.Ng,a.getAttribute("variant"),$APP.sg,a.getAttribute("size"),$APP.W,a.getAttribute("label"),$APP.Si,a.hasAttribute("show-value"),$APP.ti,a.hasAttribute("indeterminate")],null);var c=$APP.N(b),d=$APP.I(c,$APP.Yg),e=$APP.I(c,$APP.U),g=$APP.I(c,$APP.Ng),h=$APP.I(c,$APP.sg);b=$APP.I(c,$APP.W);var k=$APP.I(c,$APP.Si);
3
- c=$APP.I(c,$APP.ti);d=sD(d,100);d=d>0?d:100;e=$APP.eg.h($APP.dg.h(sD(e,0),0),d);g=typeof g==="string"&&$APP.yc(tD,g)?g:"default";h=typeof h==="string"&&$APP.yc(uD,h)?h:"md";c=$APP.K(c);k=$APP.K(k);var m=c?50:$APP.eg.h($APP.dg.h(e/d*100,0),100);b=$APP.Xe([$APP.Ng,$APP.Si,$APP.U,$APP.sg,$APP.ti,$APP.Oi,$APP.Yg,$APP.W,$APP.Qh],[g,k,e,h,c,c?"Loading…":""+$APP.T.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.O("",b)?b:null,m]);var q=$APP.N(b);b=$APP.I(q,$APP.Qh);k=$APP.I(q,$APP.Ng);d=$APP.I(q,$APP.Si);
4
- h=$APP.I(q,$APP.U);c=$APP.I(q,$APP.sg);e=$APP.I(q,$APP.Oi);g=$APP.I(q,$APP.ti);m=$APP.I(q,$APP.W);q=$APP.I(q,$APP.Yg);var r=$APP.l(a,"__xProgressCircleBase"),v=$APP.l(a,"__xProgressCircleFill"),w=$APP.l(a,"__xProgressCircleValueNode"),z=$APP.l(a,"__xProgressCircleCompleted"),A=$APP.p(g)&&h>=q,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.T.g(100));v.setAttribute("stroke-dashoffset",
5
- ""+$APP.T.g(D));w.textContent=$APP.n($APP.n(d)?$APP.p(g):d)?""+$APP.T.g(Math.round(b))+"%":"";w.style.display=$APP.n($APP.n(d)?$APP.p(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.T.g(h)),a.setAttribute("aria-valuemax",""+$APP.T.g(q)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));
6
- m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");A&&$APP.p(z)&&a.dispatchEvent(new CustomEvent("x-progress-circle-complete",{bubbles:!0,composed:!0,detail:{value:h,max:q}}));a.__xProgressCircleCompleted=$APP.K(A)},wD=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.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"max",{get:function(){var b=
7
- this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.T.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")},set:function(b){return $APP.n(b)?
8
- this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0})},yD=function(){var a=class extends HTMLElement{};a.observedAttributes=xD;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","circle"),
9
- 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;}}";
2
+ var aJ=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},dJ=function(a){var b=new $APP.Q(null,7,[$APP.ri,a.getAttribute("value"),$APP.Hh,a.getAttribute("max"),$APP.sh,a.getAttribute("variant"),$APP.Pg,a.getAttribute("size"),$APP.W,a.getAttribute("label"),$APP.rk,a.hasAttribute("show-value"),$APP.Jj,a.hasAttribute("indeterminate")],null);var c=$APP.O(b),d=$APP.I(c,$APP.Hh),e=$APP.I(c,$APP.ri),g=$APP.I(c,$APP.sh),h=$APP.I(c,$APP.Pg);b=$APP.I(c,$APP.W);var k=$APP.I(c,
3
+ $APP.rk);c=$APP.I(c,$APP.Jj);d=aJ(d,100);d=d>0?d:100;e=$APP.Ag.h($APP.zg.h(aJ(e,0),0),d);g=typeof g==="string"&&$APP.M(bJ,g)?g:"default";h=typeof h==="string"&&$APP.M(cJ,h)?h:"md";c=$APP.K(c);k=$APP.K(k);var m=c?50:$APP.Ag.h($APP.zg.h(e/d*100,0),100);b=$APP.ff([$APP.sh,$APP.rk,$APP.ri,$APP.Pg,$APP.Jj,$APP.nk,$APP.Hh,$APP.W,$APP.Zi],[g,k,e,h,c,c?"Loading…":""+$APP.T.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.P("",b)?b:null,m]);var p=$APP.O(b);b=$APP.I(p,$APP.Zi);k=$APP.I(p,$APP.sh);d=$APP.I(p,
4
+ $APP.rk);h=$APP.I(p,$APP.ri);c=$APP.I(p,$APP.Pg);e=$APP.I(p,$APP.nk);g=$APP.I(p,$APP.Jj);m=$APP.I(p,$APP.W);p=$APP.I(p,$APP.Hh);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.T.g(100));
5
+ v.setAttribute("stroke-dashoffset",""+$APP.T.g(D));x.textContent=$APP.n($APP.n(d)?$APP.q(g):d)?""+$APP.T.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.T.g(h)),a.setAttribute("aria-valuemax",""+$APP.T.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.K(A)},eJ=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.T.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.T.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})},gJ=function(){var a=class extends HTMLElement{};a.observedAttributes=fJ;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",
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}vD(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"))&&vD(this);return null};wD(a.prototype);return a},zD=function(){$APP.n(customElements.get("x-progress-circle"))||customElements.define("x-progress-circle",
12
- yD());return null};var tD=new $APP.S(null,new $APP.Q(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),uD=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),xD="value max variant size label show-value indeterminate".split(" ");$APP.sd(["x-progress-circle-complete",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,2,[$APP.U,$APP.zh,$APP.Yg,$APP.zh],null)],null)]);$APP.ja("baredom.exports.x_progress_circle.init",zD);export const init=zD;
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}dJ(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.P(c,d)&&$APP.n($APP.l(this,"__xProgressCircleInit"))&&dJ(this);return null};eJ(a.prototype);return a},hJ=function(){$APP.n(customElements.get("x-progress-circle"))||customElements.define("x-progress-circle",
12
+ gJ());return null};var bJ=new $APP.S(null,new $APP.Q(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),cJ=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),fJ="value max variant size label show-value indeterminate".split(" ");$APP.yd(["x-progress-circle-complete",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,2,[$APP.ri,$APP.ui,$APP.Hh,$APP.ui],null)],null)]);$APP.ja("baredom.exports.x_progress_circle.init",hJ);export const init=hJ;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var FH=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},IH=function(a){var b=new $APP.Q(null,7,[$APP.U,a.getAttribute("value"),$APP.Yg,a.getAttribute("max"),$APP.Ng,a.getAttribute("variant"),$APP.sg,a.getAttribute("size"),$APP.W,a.getAttribute("label"),$APP.Si,a.hasAttribute("show-value"),$APP.ti,a.hasAttribute("indeterminate")],null);var c=$APP.N(b),d=$APP.I(c,$APP.Yg),e=$APP.I(c,$APP.U),g=$APP.I(c,$APP.Ng),h=$APP.I(c,$APP.sg);b=$APP.I(c,$APP.W);var k=$APP.I(c,$APP.Si);
3
- c=$APP.I(c,$APP.ti);d=FH(d,100);d=d>0?d:100;e=$APP.eg.h($APP.dg.h(FH(e,0),0),d);g=typeof g==="string"&&$APP.yc(GH,g)?g:"default";h=typeof h==="string"&&$APP.yc(HH,h)?h:"md";c=$APP.K(c);k=$APP.K(k);var m=c?50:$APP.eg.h($APP.dg.h(e/d*100,0),100);b=$APP.Xe([$APP.Ng,$APP.Si,$APP.U,$APP.sg,$APP.ti,$APP.Oi,$APP.Yg,$APP.W,$APP.Qh],[g,k,e,h,c,c?"Loading…":""+$APP.T.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.O("",b)?b:null,m]);var q=$APP.N(b);b=$APP.I(q,$APP.Qh);k=$APP.I(q,$APP.Ng);d=$APP.I(q,$APP.Si);
4
- h=$APP.I(q,$APP.U);c=$APP.I(q,$APP.sg);e=$APP.I(q,$APP.Oi);g=$APP.I(q,$APP.ti);m=$APP.I(q,$APP.W);q=$APP.I(q,$APP.Yg);var r=$APP.l(a,"__xProgressBase"),v=$APP.l(a,"__xProgressHeader"),w=$APP.l(a,"__xProgressFill"),z=$APP.l(a,"__xProgressLabel"),A=$APP.l(a,"__xProgressValue");var D=(D=m!=null)?D:d;var G=$APP.l(a,"__xProgressCompleted"),J=$APP.p(g)&&h>=q;r.setAttribute("data-variant",k);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");w.style.width=$APP.n(g)?
5
- "40%":""+$APP.T.g(b.toFixed(2))+"%";v.style.display=$APP.n(D)?"flex":"none";z.textContent=$APP.n(m)?m:"";z.style.display=m!=null?"":"none";A.textContent=$APP.n($APP.n(d)?$APP.p(g):d)?""+$APP.T.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.T.g(h)),a.setAttribute("aria-valuemax",
6
- ""+$APP.T.g(q)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");J&&$APP.p(G)&&a.dispatchEvent(new CustomEvent("x-progress-complete",{bubbles:!0,composed:!0,detail:{value:h,max:q}}));a.__xProgressCompleted=$APP.K(J)},JH=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.T.g(b))},enumerable:!0,
7
- 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.T.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});Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:""},set:function(b){return this.setAttribute("variant",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?b:""},set:function(b){return this.setAttribute("size",""+$APP.T.g(b))},
9
- 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.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},LH=function(){var a=class extends HTMLElement{};a.observedAttributes=KH;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xProgressInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),
10
- 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}IH(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"))&&IH(this);return null};JH(a.prototype);return a},MH=function(){$APP.n(customElements.get("x-progress"))||customElements.define("x-progress",LH());return null};var GH=new $APP.S(null,new $APP.Q(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),HH=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),KH="value max variant size label show-value indeterminate".split(" ");$APP.sd(["x-progress-complete",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,2,[$APP.U,$APP.zh,$APP.Yg,$APP.zh],null)],null)]);$APP.ja("baredom.exports.x_progress.init",MH);export const init=MH;
2
+ var FQ=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},IQ=function(a){var b=new $APP.Q(null,7,[$APP.ri,a.getAttribute("value"),$APP.Hh,a.getAttribute("max"),$APP.sh,a.getAttribute("variant"),$APP.Pg,a.getAttribute("size"),$APP.W,a.getAttribute("label"),$APP.rk,a.hasAttribute("show-value"),$APP.Jj,a.hasAttribute("indeterminate")],null);var c=$APP.O(b),d=$APP.I(c,$APP.Hh),e=$APP.I(c,$APP.ri),g=$APP.I(c,$APP.sh),h=$APP.I(c,$APP.Pg);b=$APP.I(c,$APP.W);var k=$APP.I(c,
3
+ $APP.rk);c=$APP.I(c,$APP.Jj);d=FQ(d,100);d=d>0?d:100;e=$APP.Ag.h($APP.zg.h(FQ(e,0),0),d);g=typeof g==="string"&&$APP.M(GQ,g)?g:"default";h=typeof h==="string"&&$APP.M(HQ,h)?h:"md";c=$APP.K(c);k=$APP.K(k);var m=c?50:$APP.Ag.h($APP.zg.h(e/d*100,0),100);b=$APP.ff([$APP.sh,$APP.rk,$APP.ri,$APP.Pg,$APP.Jj,$APP.nk,$APP.Hh,$APP.W,$APP.Zi],[g,k,e,h,c,c?"Loading…":""+$APP.T.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.P("",b)?b:null,m]);var p=$APP.O(b);b=$APP.I(p,$APP.Zi);k=$APP.I(p,$APP.sh);d=$APP.I(p,
4
+ $APP.rk);h=$APP.I(p,$APP.ri);c=$APP.I(p,$APP.Pg);e=$APP.I(p,$APP.nk);g=$APP.I(p,$APP.Jj);m=$APP.I(p,$APP.W);p=$APP.I(p,$APP.Hh);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 F=$APP.l(a,"__xProgressCompleted"),J=$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.T.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.T.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.T.g(h)),
6
+ a.setAttribute("aria-valuemax",""+$APP.T.g(p)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");J&&$APP.q(F)&&a.dispatchEvent(new CustomEvent("x-progress-complete",{bubbles:!0,composed:!0,detail:{value:h,max:p}}));a.__xProgressCompleted=$APP.K(J)},JQ=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.T.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.T.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.T.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.T.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.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},LQ=function(){var a=class extends HTMLElement{};a.observedAttributes=KQ;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xProgressInit"))){var b=this.attachShadow({mode:"open"}),
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}IQ(this);return null};a.prototype.disconnectedCallback=
12
+ function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.P(c,d)&&$APP.n($APP.l(this,"__xProgressInit"))&&IQ(this);return null};JQ(a.prototype);return a},MQ=function(){$APP.n(customElements.get("x-progress"))||customElements.define("x-progress",LQ());return null};var GQ=new $APP.S(null,new $APP.Q(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),HQ=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),KQ="value max variant size label show-value indeterminate".split(" ");$APP.yd(["x-progress-complete",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,2,[$APP.ri,$APP.ui,$APP.Hh,$APP.ui],null)],null)]);$APP.ja("baredom.exports.x_progress.init",MQ);export const init=MQ;
package/dist/x-radio.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var tn=function(a,b,c){return a.setAttribute(b,c)},un=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},vn=function(a){a=$APP.Xe([$APP.Dh,$APP.Sh,$APP.ug,$APP.Ig,$APP.Th,$APP.mi,$APP.yi,$APP.wi,$APP.ci],[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.I(b,$APP.wi);var c=$APP.I(b,$APP.ci),d=$APP.I(b,$APP.Dh),e=$APP.I(b,$APP.Sh),g=$APP.I(b,$APP.ug),h=$APP.I(b,$APP.Ig),k=$APP.I(b,$APP.Th),m=$APP.I(b,$APP.mi);b=$APP.I(b,$APP.yi);k=$APP.K(k);g=$APP.K(g);return $APP.Xe([$APP.Tg,$APP.Og,$APP.Vi,$APP.hi,$APP.Ag,$APP.ai,$APP.U,$APP.Gi,$APP.Pi,$APP.Uh,$APP.V],[g,k?"true":"false",$APP.K(m),k,$APP.n(g)?k:!0,d,b!=null?b:"on",h,c,a,$APP.K(e)])},wn=function(a){var b=$APP.l(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.l(b,"control");b=vn(a);var d=$APP.V.g(b),
4
- e=$APP.hi.g(b);tn(c,"aria-checked",$APP.Og.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");tn(c,"aria-required",$APP.n($APP.Tg.g(b))?"true":"false");tn(c,"aria-readonly",$APP.n($APP.Vi.g(b))?"true":"false");var g=$APP.Uh.g(b);$APP.n(g)?c.setAttribute("aria-label",g):c.removeAttribute("aria-label");g=$APP.Gi.g(b);$APP.n(g)?c.setAttribute("aria-labelledby",g):c.removeAttribute("aria-labelledby");g=$APP.Pi.g(b);$APP.n(g)?c.setAttribute("aria-describedby",g):c.removeAttribute("aria-describedby");
5
- $APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");un(a,"data-checked",e);un(a,"data-disabled",d);a=$APP.l(a,"__xRadioInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.U.g(b):null):null}return null},xn=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]},yn=
6
- function(a){a=xn(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})},zn=function(a,b){b=new CustomEvent("x-radio-change-request",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.p(b.defaultPrevented)},An=function(a,b){return a.dispatchEvent(new CustomEvent("x-radio-change",
7
- {detail:b,bubbles:!0,composed:!0,cancelable:!1}))},Bn=function(a){var b=vn(a),c=$APP.V.g(b),d=$APP.Vi.g(b),e=$APP.hi.g(b);if($APP.n($APP.n(c)?c:$APP.n(d)?d:e))return null;b=$APP.U.g(b);return zn(a,{value:b,previousChecked:!1,nextChecked:!0})?(a.setAttribute("checked",""),wn(a),xn(a).forEach(function(g){var h=$APP.O(g,a);return $APP.n(h?g.hasAttribute("checked"):h)?(g.removeAttribute("checked"),wn(g)):null}),yn(a),An(a,{value:b,checked:!0})):null},Cn=function(a){a=$APP.l(a,"__xRadioRefs");return $APP.n(a)?
8
- $APP.l(a,"control").focus():null},Dn=function(a){return function(b){var c=b.key,d=xn(a),e=d.length,g=d.indexOf(a);if($APP.C.h(c," ")||$APP.C.h(c,"Enter"))return b.preventDefault(),Bn(a);if($APP.C.h(c,"ArrowDown")||$APP.C.h(c,"ArrowRight")){if(b.preventDefault(),e>0)return b=d[$APP.Lc(g+1,e)],Bn(b),Cn(b)}else if($APP.C.h(c,"ArrowUp")||$APP.C.h(c,"ArrowLeft"))if(b.preventDefault(),e>0)return b=d[$APP.Lc(g-1,e)],Bn(b),Cn(b);return null}},En=function(a){return function(){return Bn(a)}},Fn=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},Gn=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return un(this,c,$APP.K(d))}})},Hn=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)?tn(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},Jn=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return In}});Gn(b,"checked","checked");Gn(b,"disabled","disabled");Gn(b,"readOnly","readonly");Gn(b,"required","required");Hn(b,"name","name");Hn(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.l(this,
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)},qp=function(a){a=$APP.ff([$APP.Ai,$APP.aj,$APP.Sg,$APP.ih,$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.O(a);a=
3
+ $APP.I(b,$APP.Nj);var c=$APP.I(b,$APP.oj),d=$APP.I(b,$APP.Ai),e=$APP.I(b,$APP.aj),g=$APP.I(b,$APP.Sg),h=$APP.I(b,$APP.ih),k=$APP.I(b,$APP.bj),m=$APP.I(b,$APP.Cj);b=$APP.I(b,$APP.Rj);k=$APP.K(k);g=$APP.K(g);return $APP.ff([$APP.yh,$APP.th,$APP.uk,$APP.tj,$APP.Zg,$APP.mj,$APP.ri,$APP.ek,$APP.ok,$APP.cj,$APP.V],[g,k?"true":"false",$APP.K(m),k,$APP.n(g)?k:!0,d,b!=null?b:"on",h,c,a,$APP.K(e)])},rp=function(a){var b=$APP.l(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.l(b,"control");b=qp(a);var d=$APP.V.g(b),
4
+ e=$APP.tj.g(b);$o(c,"aria-checked",$APP.th.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");$o(c,"aria-required",$APP.n($APP.yh.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.ri.g(b):null):null}return null},sp=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.P(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]},tp=
6
+ function(a){a=sp(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})},up=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)},vp=function(a,b){return a.dispatchEvent(new CustomEvent("x-radio-change",
7
+ {detail:b,bubbles:!0,composed:!0,cancelable:!1}))},wp=function(a){var b=qp(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.ri.g(b);return up(a,{value:b,previousChecked:!1,nextChecked:!0})?(a.setAttribute("checked",""),rp(a),sp(a).forEach(function(g){var h=$APP.P(g,a);return $APP.n(h?g.hasAttribute("checked"):h)?(g.removeAttribute("checked"),rp(g)):null}),tp(a),vp(a,{value:b,checked:!0})):null},xp=function(a){a=$APP.l(a,"__xRadioRefs");return $APP.n(a)?
8
+ $APP.l(a,"control").focus():null},yp=function(a){return function(b){var c=b.key,d=sp(a),e=d.length,g=d.indexOf(a);if($APP.C.h(c," ")||$APP.C.h(c,"Enter"))return b.preventDefault(),wp(a);if($APP.C.h(c,"ArrowDown")||$APP.C.h(c,"ArrowRight")){if(b.preventDefault(),e>0)return b=d[$APP.Qc(g+1,e)],wp(b),xp(b)}else if($APP.C.h(c,"ArrowUp")||$APP.C.h(c,"ArrowLeft"))if(b.preventDefault(),e>0)return b=d[$APP.Qc(g-1,e)],wp(b),xp(b);return null}},zp=function(a){return function(){return wp(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.K(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.P(d)?$o(this,c,""+$APP.T.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,
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())}Fn(this);c=$APP.l(this,"__xRadioRefs");$APP.n(c)&&(c=$APP.l(c,"control"),d=En(this),e=Dn(this),g={click:d,keydown:e},this.addEventListener("click",d),c.addEventListener("keydown",e),this.__xRadioHandlers=
13
- g);wn(this);return yn(this)};b.disconnectedCallback=function(){return Fn(this)};b.attributeChangedCallback=function(){return wn(this)};b.formDisabledCallback=function(c){un(this,"disabled",$APP.K(c));return wn(this)};b.formResetCallback=function(){this.removeAttribute("checked");return wn(this)};return a},Kn=function(){return $APP.n(customElements.get("x-radio"))?null:customElements.define("x-radio",Jn())};var In="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.sd(["x-radio-change-request",new $APP.Q(null,2,[$APP.ni,!0,$APP.Y,new $APP.Q(null,3,[$APP.U,$APP.X,$APP.tg,$APP.Di,$APP.Zh,$APP.Di],null)],null),"x-radio-change",new $APP.Q(null,2,[$APP.ni,!1,$APP.Y,new $APP.Q(null,2,[$APP.U,$APP.X,$APP.Ki,$APP.Di],null)],null)]);$APP.ja("baredom.exports.x_radio.init",Kn);export const init=Kn;
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=zp(this),e=yp(this),g={click:d,keydown:e},this.addEventListener("click",d),c.addEventListener("keydown",e),this.__xRadioHandlers=
13
+ g);rp(this);return tp(this)};b.disconnectedCallback=function(){return Ap(this)};b.attributeChangedCallback=function(){return rp(this)};b.formDisabledCallback=function(c){ap(this,"disabled",$APP.K(c));return rp(this)};b.formResetCallback=function(){this.removeAttribute("checked");return rp(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.yd(["x-radio-change-request",new $APP.Q(null,2,[$APP.Dj,!0,$APP.Y,new $APP.Q(null,3,[$APP.ri,$APP.X,$APP.Qg,$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.ri,$APP.X,$APP.ik,$APP.Yj],null)],null)]);$APP.ja("baredom.exports.x_radio.init",Fp);export const init=Fp;
@@ -0,0 +1,14 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var JE=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},KE=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},LE=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},NE=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.Xh,b,$APP.xj,d,ME,g],null);a.__xRippleCounter=0;a.__xRippleFrames=[];return $APP.l(a,"__xRippleRefs")},UE=function(a){a=new $APP.Q(null,4,[OE,a.getAttribute("intensity"),PE,a.getAttribute("duration"),QE,a.getAttribute("frequency"),$APP.aj,a.hasAttribute("disabled")],null);var b=$APP.O(a);a=$APP.I(b,OE);var c=$APP.I(b,PE),d=$APP.I(b,QE);b=$APP.I(b,
5
+ $APP.aj);return new $APP.Q(null,4,[RE,JE(a),SE,KE(c),TE,LE(d),$APP.V,$APP.K(b)],null)},YE=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.T.g(c));e.setAttribute("numOctaves","3");e.setAttribute("seed",""+$APP.T.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,[VE,d,WE,e,XE,g],null)},ZE=function(a,b){var c=UE(a);if(!$APP.n($APP.V.g(c))){c=
7
+ $APP.O(c);var d=$APP.I(c,RE),e=$APP.I(c,SE),g=$APP.I(c,TE);c=NE(a);c=$APP.O(c);var h=$APP.I(c,$APP.xj),k=$APP.I(c,ME),m=$APP.l(a,"__xRippleCounter");c="xr-"+$APP.T.g(m);a.__xRippleCounter=m+1;m=YE(k,c,g);m=$APP.O(m);var p=$APP.I(m,VE),r=$APP.I(m,WE),v=$APP.I(m,XE),x=b.clientX,y=b.clientY,A=performance.now(),D=$APP.l(a,"__xRippleFrames");b=$APP.K(window.matchMedia("(prefers-reduced-motion:reduce)").matches);h.style.filter="url(#"+$APP.T.g(c)+")";a.dispatchEvent(new CustomEvent("x-ripple-effect-start",
8
+ {detail:{x,y},bubbles:!0,composed:!0}));b?(v.setAttribute("scale",""+$APP.T.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 J(){var G=performance.now()-A;G=Math.min(1,G/e);var R=1-G;R=1-R*R*R;var ma=g*(1-R*.7);v.setAttribute("scale",""+$APP.T.g(d*(1-R)));r.setAttribute("baseFrequency",""+$APP.T.g(ma));if(G>=
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}));G=requestAnimationFrame(J);return D.push(G)});D.push(b)}},$E=function(a){function b(c){c.button===0&&ZE(a,c);return null}a.addEventListener("pointerdown",b);a.__xRippleHandler=b},aF=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.O(b);b=$APP.I(c,ME);for(c=$APP.I(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)},bF=function(a){Object.defineProperty(a,"intensity",{get:function(){return JE(this.getAttribute("intensity"))},set:function(b){return b==null?this.removeAttribute("intensity"):this.setAttribute("intensity",""+$APP.T.g(b))},enumerable:!0,
11
+ configurable:!0});Object.defineProperty(a,"duration",{get:function(){return KE(this.getAttribute("duration"))},set:function(b){return b==null?this.removeAttribute("duration"):this.setAttribute("duration",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"frequency",{get:function(){return LE(this.getAttribute("frequency"))},set:function(b){return b==null?this.removeAttribute("frequency"):this.setAttribute("frequency",""+$APP.T.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})},dF=function(){var a=class extends HTMLElement{};a.observedAttributes=cF;a.prototype.connectedCallback=function(){NE(this);aF(this);$E(this);return null};a.prototype.disconnectedCallback=function(){aF(this);return null};a.prototype.attributeChangedCallback=function(){return null};bF(a.prototype);return a},
13
+ eF=function(){$APP.n(customElements.get("x-ripple-effect"))||customElements.define("x-ripple-effect",dF());return null},RE=new $APP.N(null,"intensity","intensity",1142770863),OE=new $APP.N(null,"intensity-raw","intensity-raw",135576065),WE=new $APP.N(null,"turb","turb",-804768361),SE=new $APP.N(null,"duration","duration",1444101068),VE=new $APP.N(null,"filter-el","filter-el",-1380571810),QE=new $APP.N(null,"frequency-raw","frequency-raw",-1367383022),PE=new $APP.N(null,"duration-raw","duration-raw",
14
+ -510770508),XE=new $APP.N(null,"disp","disp",-2047544334),TE=new $APP.N(null,"frequency","frequency",-1408891382),ME=new $APP.N(null,"svg","svg",856789142);var cF=["intensity","duration","frequency","disabled"];$APP.yd(["x-ripple-effect-start",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.Wi,$APP.ui,$APP.Ui,$APP.ui],null),$APP.Dj,!1],null),"x-ripple-effect-end",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.Wi,$APP.ui,$APP.Ui,$APP.ui],null),$APP.Dj,!1],null)]);$APP.ja("baredom.exports.x_ripple_effect.init",eF);export const init=eF;
@@ -0,0 +1,20 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var tK=function(a){return new $APP.Q(null,1,[$APP.vj,a],null)},uK=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.Xh,b,$APP.Vi,d,$APP.Si,e,$APP.Vh,g],null);return $APP.l(a,"__xScrollParallaxRefs")},$K=function(a){a=new $APP.Q(null,5,[$APP.si,a.getAttribute("direction"),vK,a.getAttribute("source"),wK,a.getAttribute("easing"),$APP.Bi,
4
+ $APP.n(a.hasAttribute("disabled"))?"":null,$APP.Ch,a.getAttribute("label")],null);var b=$APP.O(a),c=$APP.I(b,$APP.si),d=$APP.I(b,vK),e=$APP.I(b,wK);a=$APP.I(b,$APP.Bi);b=$APP.I(b,$APP.Ch);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.M(xK,c)?c:"vertical";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.M(yK,d)?d:"document";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.M(zK,e)?e:"none";return new $APP.Q(null,5,[$APP.dj,c,$APP.ni,d,FK,e,$APP.V,a!=null,$APP.W,$APP.n(b)?
5
+ b:""],null)},aL=function(a){a=uK(a);a=$APP.O(a);return $APP.I(a,$APP.Si).assignedElements()},cL=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.Gh,c,$APP.Eh,$APP.C.h("fade",a.getAttribute("data-opacity")),bL,$APP.C.h("grow",a.getAttribute("data-scale"))],null)},dL=function(a){var b=
6
+ $APP.l(a,"__xScrollParallaxChildCache");if($APP.n(b))return b;b=aL(a);b=$APP.De.m($APP.Md,$APP.Id.g(cL),$APP.fc(b));return a.__xScrollParallaxChildCache=b},eL=function(a){a.__xScrollParallaxChildCache=null},fL=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},gL=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},hL=function(a,b,c){b=new CustomEvent(b,{detail:$APP.Lg(c),bubbles:!0,composed:!0,cancelable:!1});return a.dispatchEvent(b)},iL=function(a){var b=function(){var J=$APP.l(a,"__xScrollParallaxModel");return $APP.n(J)?J:$K(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.zg.h(0,$APP.Ag.h(1,(d-c.top)/(d+
8
+ c.height)));c=$APP.l(a,"__xScrollParallaxLastProg");d=aL(a);for(var h=dL(a),k=fL(a),m=gL(a),p=d.length,r=0;;)if(r<p){if(r<$APP.B(h)){var v=d[r],x=$APP.bc(h,r),y=$APP.O(x),A=$APP.I(y,$APP.uj),D=$APP.I(y,$APP.Gh);x=$APP.I(y,$APP.Eh);y=$APP.I(y,bL);A=(g-.5)*e*(A-1)+D;var F=b?"translateY("+$APP.T.g(A)+"px)":"translateX("+$APP.T.g(A)+"px)";A=$APP.n(y)?function(){var J=m+(1-m)*(1-Math.abs(g-.5)*2);return""+$APP.T.g(F)+" scale("+$APP.T.g(J)+")"}():F;v.style.transform=A;$APP.n(x)&&(v.style.opacity=""+$APP.T.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,hL(a,"x-scroll-parallax-progress",tK(g))}a.__xScrollParallaxRAF=null},jL=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.l(a,"__xScrollParallaxVisible"),$APP.n(b)?!$APP.K(window.matchMedia("(prefers-reduced-motion:reduce)").matches):b):b}())?$APP.n($APP.l(a,"__xScrollParallaxRAF"))?null:$APP.la(a,"__xScrollParallaxRAF",requestAnimationFrame(function(){return iL(a)})):
10
+ null},kL=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)},lL=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)},mL=function(a,b){a.textContent=b;setTimeout(function(){return a.textContent=""},1E3)},nL=function(a,b){b=b[0].isIntersecting;
11
+ var c=$APP.O($APP.l(a,"__xScrollParallaxRefs"));c=$APP.I(c,$APP.Vh);a.__xScrollParallaxVisible=b;if($APP.n(b))return kL(a),iL(a),mL(c,"Parallax section entered viewport"),hL(a,"x-scroll-parallax-enter",tK(function(){var d=$APP.l(a,"__xScrollParallaxLastProg");return $APP.n(d)?d:0}()));lL(a);mL(c,"Parallax section left viewport");return hL(a,"x-scroll-parallax-leave",tK(function(){var d=$APP.l(a,"__xScrollParallaxLastProg");return $APP.n(d)?d:0}()))},oL=function(a){function b(){return $APP.n($APP.l(a,
12
+ "__xScrollParallaxVisible"))?(eL(a),iL(a)):null}function c(){eL(a);return $APP.n($APP.l(a,"__xScrollParallaxVisible"))?iL(a):null}var d=uK(a);d=$APP.O(d);$APP.I(d,$APP.Si).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.la(a,"__xScrollParallaxHandlers",{scroll:function(){return jL(a)},slot:c,resize:b,scrollAttached:!1})},pL=function(a){var b=$APP.l(a,"__xScrollParallaxHandlers");if($APP.n(b)){lL(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},qL=function(a){var b=$APP.l(a,"__xScrollParallaxIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){return nL(a,c)},{threshold:[0]});b.observe(a);a.__xScrollParallaxIO=b},rL=function(a){var b=$K(a);if($APP.P($APP.l(a,
14
+ "__xScrollParallaxModel"),b)){var c=$APP.O(b),d=$APP.I(c,$APP.dj);$APP.I(c,FK);b=$APP.I(c,$APP.V);var e=$APP.I(c,$APP.W),g=uK(a);g=$APP.O(g);var h=$APP.I(g,$APP.Vi);$APP.I(g,$APP.Vh);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)&&iL(a)}},sL=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.T.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.T.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.T.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.P(b,""):b)?this.setAttribute("label",""+$APP.T.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})},uL=function(){var a=class extends HTMLElement{};a.observedAttributes=tL;a.prototype.connectedCallback=function(){uK(this);pL(this);oL(this);qL(this);rL(this);return null};a.prototype.disconnectedCallback=function(){for(var b=aL(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"),hL(this,"x-scroll-parallax-leave",tK($APP.n(b)?b:0)));pL(this);b=$APP.l(this,"__xScrollParallaxIO");$APP.n(b)&&(b.disconnect(),this.__xScrollParallaxIO=null);eL(this);this.__xScrollParallaxVisible=!1;return this.__xScrollParallaxLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.P(c,d)&&rL(this);
19
+ return null};sL(a.prototype);return a},vL=function(){$APP.n(customElements.get("x-scroll-parallax"))||customElements.define("x-scroll-parallax",uL());return null},wK=new $APP.N(null,"easing-raw","easing-raw",440485546),bL=new $APP.N(null,"scale","scale",-230427353),FK=new $APP.N(null,"easing","easing",735372043),vK=new $APP.N(null,"source-raw","source-raw",396083546);var tL=["direction","source","easing","disabled","label"];$APP.yd(["x-scroll-parallax-enter",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,1,[$APP.vj,$APP.ui],null),$APP.Dj,!1],null),"x-scroll-parallax-leave",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,1,[$APP.vj,$APP.ui],null),$APP.Dj,!1],null),"x-scroll-parallax-progress",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,1,[$APP.vj,$APP.ui],null),$APP.Dj,!1],null)]);
20
+ var xK=new $APP.S(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),yK=new $APP.S(null,new $APP.Q(null,1,["document",null],null),null),zK=new $APP.S(null,new $APP.Q(null,2,["none",null,"smooth",null],null),null);$APP.ja("baredom.exports.x_scroll_parallax.init",vL);export const init=vL;
@@ -0,0 +1,38 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var jO=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.zg.h(0,$APP.Ag.h(1,a))):.5},kO=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.zg.h(.1,$APP.Ag.h(.9,a))):.5},lO=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?50:$APP.zg.h(1,$APP.Ag.h(1E3,a))):50},mO=function(a,b){var c=$APP.B(a);if(c===0)return-1;for(var d=0,e=-1,g=-1;;){if(d>=c)return e>=0?e:g;var h=$APP.bc(a,d),k=$APP.O(h);h=$APP.I(k,
3
+ $APP.Fh);k=$APP.I(k,$APP.hh);e=h<=b&&k>b?d:e;g=h<=b?d:g;d+=1}},oO=function(a){var b=$APP.l(a,"__xScrollStoryRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("slot"),k=document.createElement("slot"),m=document.createElement("div");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-story-gap:0;--x-scroll-story-step-min-height:80vh;--x-scroll-story-step-padding:2rem;--x-scroll-story-active-opacity:1;--x-scroll-story-inactive-opacity:0.3;--x-scroll-story-transition-duration:300ms;--x-scroll-story-disabled-opacity:0.55;--x-scroll-story-media-top:0;}[part\x3dcontainer]{display:flex;gap:var(--x-scroll-story-gap);}:host([data-layout\x3dleft]) [part\x3dcontainer]{flex-direction:row;}:host([data-layout\x3dright]) [part\x3dcontainer]{flex-direction:row-reverse;}:host([data-layout\x3dtop]) [part\x3dcontainer]{flex-direction:column;}[part\x3dmedia]{position:sticky;top:var(--x-scroll-story-media-top);align-self:flex-start;flex-shrink:0;}:host([data-layout\x3dtop]) [part\x3dmedia]{position:sticky;width:100%;}[part\x3dsteps]{flex:1;min-width:0;}[part\x3dmedia]{height:100vh;}::slotted(:not([slot])){min-height:var(--x-scroll-story-step-min-height);padding:var(--x-scroll-story-step-padding);opacity:var(--x-scroll-story-inactive-opacity);transition:opacity var(--x-scroll-story-transition-duration) ease;}::slotted([data-active]){opacity:var(--x-scroll-story-active-opacity);}:host([disabled]){opacity:var(--x-scroll-story-disabled-opacity);}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}[part\x3dindicator]{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;width:48px;height:48px;opacity:0.7;}[part\x3dindicator]::before,[part\x3dindicator]::after{content:'';position:absolute;top:8px;width:12px;height:32px;background:rgba(255,255,255,0.9);border-radius:3px;}[part\x3dindicator]::before{left:8px;}[part\x3dindicator]::after{right:8px;}:host([data-autoplay-paused][autoplay-indicator]) [part\x3dindicator]{display:block;}@media (prefers-reduced-motion:reduce){::slotted(*){transition:none !important;}}";
4
+ d.setAttribute("part","container");d.setAttribute("role","region");e.setAttribute("part","media");h.setAttribute("name","media");var p=document.createElement("div");p.setAttribute("part","indicator");e.appendChild(p);e.appendChild(h);g.setAttribute("part","steps");g.appendChild(k);d.appendChild(e);d.appendChild(g);m.setAttribute("part","live");m.setAttribute("aria-live","polite");m.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(m);a.__xScrollStoryRefs=new $APP.Q(null,
5
+ 6,[$APP.Xh,b,$APP.xj,d,nO,e,$APP.Sj,g,$APP.Si,k,$APP.Vh,m],null);return $APP.l(a,"__xScrollStoryRefs")},sO=function(a){a=$APP.ff([$APP.Ch,$APP.Oj,$APP.yj,$APP.dh,$APP.Yh,$APP.hi,$APP.Bi,$APP.wj,pO],[a.getAttribute("label"),a.getAttribute("autoplay-speed"),$APP.n(a.hasAttribute("autoplay"))?"":null,a.getAttribute("threshold"),a.getAttribute("layout"),$APP.n(a.hasAttribute("autoplay-indicator"))?"":null,$APP.n(a.hasAttribute("disabled"))?"":null,$APP.n(a.hasAttribute("autoplay-loop"))?"":null,a.getAttribute("split")]);
6
+ var b=$APP.O(a);a=$APP.I(b,$APP.Bi);var c=$APP.I(b,$APP.wj),d=$APP.I(b,pO),e=$APP.I(b,$APP.Ch),g=$APP.I(b,$APP.Oj),h=$APP.I(b,$APP.yj),k=$APP.I(b,$APP.dh),m=$APP.I(b,$APP.Yh);b=$APP.I(b,$APP.hi);m=typeof m==="string"?m.trim().toLowerCase():null;m=$APP.M(qO,m)?m:"left";return $APP.ff([$APP.wk,$APP.Qh,$APP.jj,rO,$APP.W,$APP.ai,$APP.V,$APP.Qj,$APP.di],[m,c!=null,jO(k),kO(d),$APP.n(e)?e:"",b!=null,a!=null,lO(g),h!=null])},tO=function(a){a=oO(a);a=$APP.O(a);return $APP.I(a,$APP.Si).assignedElements()},
7
+ uO=function(){return $APP.K(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},vO=function(a){a=a.getAttribute("id");return typeof a==="string"&&$APP.P(a,"")?a:null},wO=function(a,b,c){b=new CustomEvent(b,{detail:$APP.Lg(c),bubbles:!0,composed:!0,cancelable:!1});return a.dispatchEvent(b)},xO=function(a,b){a.textContent=b;setTimeout(function(){return a.textContent=""},3E3)},yO=function(a,b,c){var d=$APP.l(a,"__xScrollStoryActiveIndex");d=$APP.n(d)?d:-1;if($APP.P(d,c)){d>=0&&d<b.length&&
8
+ b[d].removeAttribute("data-active");c>=0&&c<b.length&&b[c].setAttribute("data-active","");c>=0?a.setAttribute("data-active-index",""+$APP.T.g(c)):a.removeAttribute("data-active-index");a.__xScrollStoryActiveIndex=c;var e=d>=0&&d<b.length?vO(b[d]):null;b=c>=0&&c<b.length?vO(b[c]):null;wO(a,"x-scroll-story-step-change",new $APP.Q(null,4,[$APP.rh,c,$APP.xi,b,$APP.ck,d,$APP.xk,e],null));a=$APP.O($APP.l(a,"__xScrollStoryRefs"));a=$APP.I(a,$APP.Vh);xO(a,"Step "+$APP.T.g(c+1)+" active")}},zO=function(a,
9
+ b,c,d){var e=b.length;var g=$APP.l(a,"__xScrollStoryStepStates");if(!$APP.n($APP.n(g)?$APP.C.h(g.length,e):g)){for(var h=Array(e),k=0;;)if(k<e)h[k]=$APP.n($APP.n(g)?k<g.length:g)?g[k]:!1,k+=1;else break;g=a.__xScrollStoryStepStates=h}for(h=0;;)if(h<e){if(h<$APP.B(c)){k=$APP.bc(c,h);k=$APP.O(k);var m=$APP.I(k,$APP.Fh),p=$APP.I(k,$APP.hh),r=g[h];k=m<=d&&p>d;var v=vO(b[h]),x=m;m=p-m;m=m<=0?0:$APP.zg.h(0,$APP.Ag.h(1,(d-x)/m));$APP.q(r)&&k?(g[h]=!0,wO(a,"x-scroll-story-step-enter",new $APP.Q(null,3,[$APP.rh,
10
+ h,$APP.xi,v,$APP.vj,m],null))):$APP.n($APP.n(r)?!k:r)&&(g[h]=!1,wO(a,"x-scroll-story-step-leave",new $APP.Q(null,3,[$APP.rh,h,$APP.xi,v,$APP.vj,m],null)))}h+=1}else break},AO=function(a){var b=function(){var m=$APP.l(a,"__xScrollStoryModel");return $APP.n(m)?m:sO(a)}();if(!$APP.n($APP.V.g(b))){var c=tO(a),d=c.length,e=window.innerHeight,g=e*$APP.jj.g(b),h=function(){for(var m=0,p=$APP.Md;;){if(m>=d)return p;var r=c[m].getBoundingClientRect();m+=1;p=$APP.jf.h(p,new $APP.Q(null,2,[$APP.Fh,r.top,$APP.hh,
11
+ r.top+r.height],null))}}();b=mO(h,g);var k=$APP.O($APP.l(a,"__xScrollStoryRefs"));k=$APP.I(k,$APP.Sj).getBoundingClientRect();e=$APP.zg.h(0,$APP.Ag.h(1,(e-k.top)/(e+k.height)));k=$APP.l(a,"__xScrollStoryLastProg");yO(a,c,b);zO(a,c,h,g);if(k==null||Math.abs(e-k)>.001)a.__xScrollStoryLastProg=e,g=b>=0&&b<d?vO(c[b]):null,wO(a,"x-scroll-story-progress",new $APP.Q(null,3,[$APP.vj,e,$APP.zk,b,$APP.Qi,g],null))}a.__xScrollStoryRAF=null},BO=function(a){return function d(c){if($APP.n(function(){var k=a.isConnected;
12
+ return $APP.n(k)?(k=$APP.l(a,"__xScrollStoryVisible"),$APP.n(k)?$APP.q($APP.l(a,"__xScrollStoryAutoplayPaused")):k):k}())){var e=$APP.l(a,"__xScrollStoryModel");if($APP.n(function(){if($APP.n(e)){var k=$APP.di.g(e);return $APP.n(k)?$APP.q($APP.V.g(e)):k}return e}())){var g=$APP.l(a,"__xScrollStoryAutoplayLast");g=$APP.n(g)?(c-g)/1E3:0;a.__xScrollStoryAutoplayLast=c;if(g>0){var h=window.scrollY;window.scrollBy(0,$APP.Qj.g(e)*g);$APP.n(function(){var k=$APP.Qh.g(e);return $APP.n(k)?window.scrollY-h<
13
+ .5:k}())&&(c=a.getBoundingClientRect().top+window.scrollY,window.scrollTo(0,c),a.__xScrollStoryAutoplayLast=null)}return $APP.la(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(d))}}return null}},CO=function(a){if($APP.n($APP.l(a,"__xScrollStoryAutoplayPaused")))return null;a.__xScrollStoryAutoplayPaused=!0;var b=$APP.l(a,"__xScrollStoryAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryAutoplayRAF=null);a.setAttribute("data-autoplay-paused","");b=function(){var e=$APP.l(a,"__xScrollStoryLastProg");
14
+ return $APP.n(e)?e:0}();var c=function(){var e=$APP.l(a,"__xScrollStoryActiveIndex");return $APP.n(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?vO(d[c]):null;return wO(a,"x-scroll-story-autoplay-pause",new $APP.Q(null,3,[$APP.vj,b,$APP.zk,c,$APP.Qi,d],null))},DO=function(a){if($APP.n($APP.l(a,"__xScrollStoryAutoplayPaused"))){a.__xScrollStoryAutoplayPaused=!1;a.removeAttribute("data-autoplay-paused");a.__xScrollStoryAutoplayLast=null;$APP.la(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(BO(a)));
15
+ var b=function(){var e=$APP.l(a,"__xScrollStoryLastProg");return $APP.n(e)?e:0}(),c=function(){var e=$APP.l(a,"__xScrollStoryActiveIndex");return $APP.n(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?vO(d[c]):null;return wO(a,"x-scroll-story-autoplay-resume",new $APP.Q(null,3,[$APP.vj,b,$APP.zk,c,$APP.Qi,d],null))}return null},EO=function(a){var b=$APP.l(a,"__xScrollStoryAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryAutoplayRAF=null);b=$APP.l(a,"__xScrollStoryAutoplayHandlers");$APP.n(b)&&
16
+ (a.removeEventListener("mousedown",$APP.l(b,"mousedown")),a.removeEventListener("mouseup",$APP.l(b,"mouseup")),a.removeEventListener("mouseleave",$APP.l(b,"mouseleave")),a.removeEventListener("touchstart",$APP.l(b,"touchstart")),a.removeEventListener("touchend",$APP.l(b,"touchend")),a.removeEventListener("keydown",$APP.l(b,"keydown")),a.removeEventListener("keyup",$APP.l(b,"keyup")),a.__xScrollStoryAutoplayHandlers=null);a.removeAttribute("data-autoplay-paused");a.removeAttribute("tabindex");a.__xScrollStoryAutoplayPaused=
17
+ !1;a.__xScrollStoryAutoplayLast=null},FO=function(a){if($APP.l(a,"__xScrollStoryAutoplayRAF")==null){var b=$APP.l(a,"__xScrollStoryModel");if($APP.n(function(){if($APP.n(b)){var p=$APP.di.g(b);return $APP.n(p)?(p=$APP.q($APP.V.g(b)))?(p=$APP.l(a,"__xScrollStoryVisible"),$APP.n(p)?!uO():p):p:p}return b}())){a.setAttribute("tabindex","0");a.__xScrollStoryAutoplayPaused=!1;a.__xScrollStoryAutoplayLast=null;var c=function(){return CO(a)},d=function(){return DO(a)},e=function(){return $APP.n($APP.l(a,
18
+ "__xScrollStoryAutoplayPaused"))?DO(a):null},g=function(){return CO(a)},h=function(){return DO(a)},k=function(p){return $APP.C.h(p.code,"Space")?(p.preventDefault(),CO(a)):null},m=function(p){return $APP.C.h(p.code,"Space")?DO(a):null};a.addEventListener("mousedown",c);a.addEventListener("mouseup",d);a.addEventListener("mouseleave",e);a.addEventListener("touchstart",g,{passive:!0});a.addEventListener("touchend",h,{passive:!0});a.addEventListener("keydown",k);a.addEventListener("keyup",m);$APP.la(a,
19
+ "__xScrollStoryAutoplayHandlers",{mousedown:c,mouseup:d,mouseleave:e,touchstart:g,touchend:h,keydown:k,keyup:m});$APP.la(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(BO(a)))}}return null},GO=function(a){a=$APP.l(a,"__xScrollStoryModel");return $APP.n(a)?$APP.V.g(a):a},HO=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.l(a,"__xScrollStoryVisible"),$APP.n(b)?$APP.q(GO(a))&&!uO():b):b}())?$APP.n($APP.l(a,"__xScrollStoryRAF"))?null:$APP.la(a,"__xScrollStoryRAF",
20
+ requestAnimationFrame(function(){return AO(a)})):null},IO=function(a){a=$APP.l(a,"__xScrollStoryHandlers");$APP.n($APP.n(a)?$APP.q($APP.l(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.l(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},JO=function(a){a=$APP.l(a,"__xScrollStoryHandlers");$APP.n($APP.n(a)?$APP.l(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.l(a,"scroll")),a.scrollAttached=!1)},KO=function(a,b){b=b[0].isIntersecting;var c=$APP.O($APP.l(a,"__xScrollStoryRefs"));
21
+ c=$APP.I(c,$APP.Vh);a.__xScrollStoryVisible=b;if($APP.n(b)){if($APP.n(GO(a)))return null;IO(a);AO(a);xO(c,"Story section entered viewport");wO(a,"x-scroll-story-enter",new $APP.Q(null,1,[$APP.vj,function(){var d=$APP.l(a,"__xScrollStoryLastProg");return $APP.n(d)?d:0}()],null));b=$APP.l(a,"__xScrollStoryModel");return $APP.n($APP.n(b)?$APP.di.g(b):b)?FO(a):null}JO(a);EO(a);if($APP.n(GO(a)))return null;xO(c,"Story section left viewport");return wO(a,"x-scroll-story-leave",new $APP.Q(null,1,[$APP.vj,
22
+ function(){var d=$APP.l(a,"__xScrollStoryLastProg");return $APP.n(d)?d:0}()],null))},LO=function(a){function b(){return $APP.n($APP.l(a,"__xScrollStoryVisible"))?(a.__xScrollStoryStepStates=null,AO(a)):null}function c(){a.__xScrollStoryStepStates=null;return $APP.n($APP.l(a,"__xScrollStoryVisible"))?AO(a):null}var d=oO(a);d=$APP.O(d);$APP.I(d,$APP.Si).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.la(a,"__xScrollStoryHandlers",{scroll:function(){return HO(a)},slot:c,resize:b,
23
+ scrollAttached:!1})},MO=function(a){var b=$APP.l(a,"__xScrollStoryHandlers");if($APP.n(b)){JO(a);var c=$APP.l(a,"__xScrollStoryRefs");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,"__xScrollStoryRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryRAF=null);a.__xScrollStoryHandlers=null},NO=function(a){var b=$APP.l(a,"__xScrollStoryIO");$APP.n(b)&&b.disconnect();
24
+ b=new IntersectionObserver(function(c){return KO(a,c)},{threshold:[0]});b.observe(a);a.__xScrollStoryIO=b},OO=function(a){a=tO(a);for(var b=a.length,c=0;;)if(c<b)a[c].removeAttribute("data-active"),c+=1;else break},PO=function(a){var b=sO(a);if($APP.P($APP.l(a,"__xScrollStoryModel"),b)){var c=$APP.O(b),d=$APP.I(c,$APP.wk),e=$APP.I(c,rO);b=$APP.I(c,$APP.V);var g=$APP.I(c,$APP.W),h=oO(a);h=$APP.O(h);var k=$APP.I(h,$APP.xj),m=$APP.I(h,nO);$APP.I(h,$APP.Vh);a.setAttribute("data-layout",d);$APP.C.h(d,
25
+ "top")?m.style.width="":m.style.width="var(--x-scroll-story-media-width,"+$APP.T.g(e*100)+"%)";$APP.u(g)?k.setAttribute("aria-label",g):k.removeAttribute("aria-label");a.__xScrollStoryModel=c;$APP.n(b)?(OO(a),a.__xScrollStoryActiveIndex=-1,a.__xScrollStoryStepStates=null,JO(a),EO(a)):$APP.n($APP.l(a,"__xScrollStoryVisible"))&&(IO(a),AO(a));c=$APP.di.g(c);b=$APP.n(c)?(b=$APP.q(b))?$APP.l(a,"__xScrollStoryVisible"):b:c;$APP.n(b)?FO(a):EO(a)}},QO=function(a){Object.defineProperty(a,"layout",{get:function(){var b=
26
+ this.getAttribute("layout");return $APP.n(b)?b:"left"},set:function(b){return $APP.n(b)?this.setAttribute("layout",""+$APP.T.g(b)):this.removeAttribute("layout")},enumerable:!0,configurable:!0});Object.defineProperty(a,"threshold",{get:function(){return jO(this.getAttribute("threshold"))},set:function(b){return b!=null?this.setAttribute("threshold",""+$APP.T.g(b)):this.removeAttribute("threshold")},enumerable:!0,configurable:!0});Object.defineProperty(a,"split",{get:function(){return kO(this.getAttribute("split"))},
27
+ set:function(b){return b!=null?this.setAttribute("split",""+$APP.T.g(b)):this.removeAttribute("split")},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)?
28
+ $APP.P(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"activeIndex",{get:function(){var b=$APP.l(this,"__xScrollStoryActiveIndex");return b!=null?b:-1},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.l(this,"__xScrollStoryLastProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoplay",{get:function(){return this.hasAttribute("autoplay")},
29
+ set:function(b){return $APP.n(b)?this.setAttribute("autoplay",""):this.removeAttribute("autoplay")},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoplaySpeed",{get:function(){return lO(this.getAttribute("autoplay-speed"))},set:function(b){return b!=null?this.setAttribute("autoplay-speed",""+$APP.T.g(b)):this.removeAttribute("autoplay-speed")},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoplayLoop",{get:function(){return this.hasAttribute("autoplay-loop")},set:function(b){return $APP.n(b)?
30
+ this.setAttribute("autoplay-loop",""):this.removeAttribute("autoplay-loop")},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoplayIndicator",{get:function(){return this.hasAttribute("autoplay-indicator")},set:function(b){return $APP.n(b)?this.setAttribute("autoplay-indicator",""):this.removeAttribute("autoplay-indicator")},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoplayPaused",{get:function(){return $APP.K($APP.l(this,"__xScrollStoryAutoplayPaused"))},enumerable:!0,configurable:!0})},
31
+ SO=function(){var a=class extends HTMLElement{};a.observedAttributes=RO;a.prototype.connectedCallback=function(){oO(this);MO(this);LO(this);NO(this);PO(this);return null};a.prototype.disconnectedCallback=function(){EO(this);OO(this);if($APP.n($APP.l(this,"__xScrollStoryVisible"))){var b=$APP.l(this,"__xScrollStoryLastProg");wO(this,"x-scroll-story-leave",new $APP.Q(null,1,[$APP.vj,$APP.n(b)?b:0],null))}MO(this);b=$APP.l(this,"__xScrollStoryIO");$APP.n(b)&&(b.disconnect(),this.__xScrollStoryIO=null);
32
+ this.__xScrollStoryVisible=!1;this.__xScrollStoryActiveIndex=-1;return this.__xScrollStoryStepStates=this.__xScrollStoryLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.P(c,d)&&PO(this);return null};QO(a.prototype);return a},TO=function(){$APP.n(customElements.get("x-scroll-story"))||customElements.define("x-scroll-story",SO());return null},pO=new $APP.N(null,"split-raw","split-raw",-455766786),rO=new $APP.N(null,"split","split",-599435118),nO=new $APP.N(null,"media","media",
33
+ -1066138403);var RO="layout threshold split disabled label autoplay autoplay-speed autoplay-loop autoplay-indicator".split(" ");
34
+ $APP.ff([$APP.oi,$APP.Ng,$APP.qh,$APP.Fj,$APP.wk,$APP.zk,$APP.jj,$APP.bk,rO,$APP.W,$APP.gh,$APP.vj],[new $APP.Q(null,1,[$APP.Z,$APP.Yj],null),new $APP.Q(null,1,[$APP.Z,$APP.ui],null),new $APP.Q(null,1,[$APP.Z,$APP.Yj],null),new $APP.Q(null,1,[$APP.Z,$APP.Yj],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,2,[$APP.Z,$APP.ui,$APP.Rg,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.ui],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.Rg,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.ui],null),new $APP.Q(null,
35
+ 1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.Yj],null),new $APP.Q(null,2,[$APP.Z,$APP.ui,$APP.Rg,!0],null)]);
36
+ $APP.yd(["x-scroll-story-step-change",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,4,[$APP.rh,$APP.ui,$APP.xi,$APP.X,$APP.ck,$APP.ui,$APP.xk,$APP.X],null),$APP.Dj,!1],null),"x-scroll-story-step-enter",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.rh,$APP.ui,$APP.xi,$APP.X,$APP.vj,$APP.ui],null),$APP.Dj,!1],null),"x-scroll-story-step-leave",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.rh,$APP.ui,$APP.xi,$APP.X,$APP.vj,$APP.ui],null),$APP.Dj,!1],null),"x-scroll-story-progress",new $APP.Q(null,
37
+ 2,[$APP.Y,new $APP.Q(null,3,[$APP.vj,$APP.ui,$APP.zk,$APP.ui,$APP.Qi,$APP.X],null),$APP.Dj,!1],null),"x-scroll-story-enter",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,1,[$APP.vj,$APP.ui],null),$APP.Dj,!1],null),"x-scroll-story-leave",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,1,[$APP.vj,$APP.ui],null),$APP.Dj,!1],null),"x-scroll-story-autoplay-pause",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.vj,$APP.ui,$APP.zk,$APP.ui,$APP.Qi,$APP.X],null),$APP.Dj,!1],null),"x-scroll-story-autoplay-resume",
38
+ new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.vj,$APP.ui,$APP.zk,$APP.ui,$APP.Qi,$APP.X],null),$APP.Dj,!1],null)]);var qO=new $APP.S(null,new $APP.Q(null,3,["right",null,"top",null,"left",null],null),null);$APP.ja("baredom.exports.x_scroll_story.init",TO);export const init=TO;