@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
package/dist/x-drawer.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Wt=function(a){var b=$APP.l(a,"__xDrawerRefs");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("div"),m=document.createElement("slot"),q=document.createElement("div"),r=document.createElement("slot");c.textContent=":host{display:contents;color-scheme:light dark;--x-drawer-size:20rem;--x-drawer-bg:Canvas;--x-drawer-fg:CanvasText;--x-drawer-backdrop:rgb(0 0 0/0.4);--x-drawer-shadow:0 8px 24px rgb(0 0 0/0.18);--x-drawer-duration:200ms;--x-drawer-easing:ease;--x-drawer-z:1000;--x-drawer-header-padding:1rem 1.25rem;--x-drawer-body-padding:1rem 1.25rem;--x-drawer-footer-padding:0.75rem 1.25rem;--x-drawer-border:color-mix(in srgb,currentColor 12%,transparent);}[part\x3dbackdrop]{display:none;position:fixed;inset:0;background:var(--x-drawer-backdrop);z-index:var(--x-drawer-z);}:host([data-open\x3dtrue]) [part\x3dbackdrop]{display:block;}[part\x3dpanel]{position:fixed;background:var(--x-drawer-bg);color:var(--x-drawer-fg);box-shadow:var(--x-drawer-shadow);display:flex;flex-direction:column;overflow:hidden;z-index:calc(var(--x-drawer-z) + 1);transition:transform var(--x-drawer-duration) var(--x-drawer-easing);}:host([data-placement\x3dleft]) [part\x3dpanel],:host([data-placement\x3dright]) [part\x3dpanel]{top:0;bottom:0;width:var(--x-drawer-size);max-width:100vw;}:host([data-placement\x3dleft]) [part\x3dpanel]{left:0;transform:translateX(-100%);}:host([data-placement\x3dright]) [part\x3dpanel]{right:0;transform:translateX(100%);}:host([data-placement\x3dtop]) [part\x3dpanel],:host([data-placement\x3dbottom]) [part\x3dpanel]{left:0;right:0;height:var(--x-drawer-size);max-height:100vh;}:host([data-placement\x3dtop]) [part\x3dpanel]{top:0;transform:translateY(-100%);}:host([data-placement\x3dbottom]) [part\x3dpanel]{bottom:0;transform:translateY(100%);}:host([data-open\x3dtrue]) [part\x3dpanel]{transform:none;}[part\x3dpanel]:focus{outline:none;}[part\x3dheader]{padding:var(--x-drawer-header-padding);border-bottom:1px solid var(--x-drawer-border);flex-shrink:0;}[part\x3dbody]{padding:var(--x-drawer-body-padding);overflow-y:auto;flex:1;}[part\x3dfooter]{padding:var(--x-drawer-footer-padding);border-top:1px solid var(--x-drawer-border);flex-shrink:0;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none;}}@media (prefers-color-scheme:dark){:host{--x-drawer-bg:#1c1d24;--x-drawer-fg:#e2e4ef;--x-drawer-border:rgb(255 255 255/0.08);--x-drawer-shadow:0 8px 40px rgb(0 0 0/0.55);--x-drawer-backdrop:rgb(0 0 0/0.55);}}";
3
- d.setAttribute("part","backdrop");e.setAttribute("part","panel");e.setAttribute("role","dialog");e.setAttribute("aria-modal","true");g.setAttribute("part","header");h.setAttribute("name","header");k.setAttribute("part","body");q.setAttribute("part","footer");r.setAttribute("name","footer");g.appendChild(h);k.appendChild(m);q.appendChild(r);e.appendChild(g);e.appendChild(k);e.appendChild(q);b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xDrawerRefs={root:b,backdrop:d,panel:e,header:g,body:k,
4
- footer:q};return $APP.l(a,"__xDrawerRefs")},Yt=function(a){a=new $APP.Q(null,3,[$APP.jh,a.hasAttribute("open"),$APP.Yi,a.getAttribute("placement"),$APP.Wg,a.getAttribute("label")],null);var b=$APP.N(a),c=$APP.I(b,$APP.jh);a=$APP.I(b,$APP.Yi);b=$APP.I(b,$APP.Wg);c=$APP.K(c);a=typeof a==="string"&&$APP.yc(Xt,a)?a:"right";b=typeof b==="string"&&$APP.O(b,"")?b:"Drawer";return new $APP.Q(null,3,[$APP.Hi,c,$APP.ri,a,$APP.W,b],null)},Zt=function(a,b,c){a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,
5
- composed:!0,cancelable:!1}))},$t=function(a){return $APP.Wd($APP.Ed(function(b){var c=window.getComputedStyle(b);return $APP.O("none",c.display)&&$APP.O("hidden",c.visibility)&&b.offsetWidth>0&&b.offsetHeight>0},$APP.dc(a.querySelectorAll("a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex\x3d'-1'])"))))},au=function(a){var b=$APP.l(a,"__xDrawerRefs");b=$APP.n(b)?$APP.l(b,"panel"):null;var c=$APP.l(a,"__xDrawerRestore"),d=
6
- $APP.l(a,"__xDrawerPanelTab")===!0;a.__xDrawerTabbables=null;a.__xDrawerRestore=null;$APP.n($APP.n(b)?d:b)&&(b.removeAttribute("tabindex"),a.__xDrawerPanelTab=!1);$APP.n($APP.n(c)?c.isConnected:c)&&c.focus()},bu=function(a,b){Zt(a,"x-drawer-dismiss",{reason:b});a.removeAttribute("open");return null},cu=function(a){$APP.n(a.hasAttribute("open"))||a.setAttribute("open","");return null},du=function(a){a.removeAttribute("open");return null},eu=function(a){var b=Wt(a);b=$APP.l(b,"panel");var c=Yt(a),d=
7
- $APP.Hi.g(c),e=$APP.l(a,"__xDrawerPrevOpen");a.setAttribute("data-open",$APP.n(d)?"true":"false");a.setAttribute("data-placement",$APP.ri.g(c));b.setAttribute("aria-label",$APP.W.g(c));$APP.n(d)?b.removeAttribute("aria-hidden"):b.setAttribute("aria-hidden","true");$APP.O(e,d)&&(a.__xDrawerPrevOpen=d,Zt(a,"x-drawer-toggle",{open:d}),$APP.n(d)?setTimeout(function(){var g=$APP.l(a,"__xDrawerRefs");g=$APP.n(g)?$APP.l(g,"panel"):null;var h=$t(a);a.__xDrawerRestore=document.activeElement;var k=$APP.n(h)?
8
- $APP.pg(h):null;a.__xDrawerTabbables=k;$APP.u(h)?$APP.x(h).focus():$APP.n(g)&&($APP.n(g.hasAttribute("tabindex"))||(g.setAttribute("tabindex","-1"),a.__xDrawerPanelTab=!0),g.focus());return null},0):au(a))},fu=function(a){function b(g){var h=g.key;if($APP.C.h(h,"Escape"))g.preventDefault(),bu(a,"escape");else if($APP.C.h(h,"Tab")){h=$APP.l(a,"__xDrawerTabbables");h=$APP.n(h)?$APP.Wd($APP.dc(h)):$APP.Fd;var k=$APP.l(a,"__xDrawerRefs");k=$APP.n(k)?$APP.l(k,"panel"):null;if($APP.oc(h))g.preventDefault(),
9
- $APP.n(k)&&k.focus();else{k=document.activeElement;var m=$APP.x(h);h=$APP.fc(h);var q=g.shiftKey;$APP.n($APP.n(q)?$APP.C.h(k,m):q)?(g.preventDefault(),h.focus()):$APP.p(q)&&$APP.C.h(k,h)&&(g.preventDefault(),m.focus())}}return null}function c(){return bu(a,"backdrop")}var d=Wt(a),e=$APP.l(d,"panel");$APP.l(d,"backdrop").addEventListener("click",c);e.addEventListener("keydown",b);$APP.la(a,"__xDrawerHandlers",{backdrop:c,keydown:b})},gu=function(a){var b=$APP.l(a,"__xDrawerHandlers"),c=$APP.l(a,"__xDrawerRefs");
10
- if($APP.n($APP.n(b)?c:b)){var d=$APP.l(c,"backdrop");c=$APP.l(c,"panel");var e=$APP.l(b,"backdrop");b=$APP.l(b,"keydown");$APP.n(e)&&d.removeEventListener("click",e);$APP.n(b)&&c.removeEventListener("keydown",b)}a.__xDrawerHandlers=null},hu=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return $APP.n(b)?cu(this):du(this)},enumerable:!0,configurable:!0});Object.defineProperty(a,"placement",{get:function(){var b=this.getAttribute("placement");
11
- return $APP.n(b)?b:"right"},set:function(b){return b==null?this.removeAttribute("placement"):this.setAttribute("placement",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Drawer"},set:function(b){return b==null?this.removeAttribute("label"):this.setAttribute("label",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"show",{value:function(){return cu(this)},enumerable:!0,configurable:!0,
12
- writable:!0});Object.defineProperty(a,"hide",{value:function(){return du(this)},enumerable:!0,configurable:!0,writable:!0});Object.defineProperty(a,"toggle",{value:function(){$APP.n(this.hasAttribute("open"))?du(this):cu(this);return null},enumerable:!0,configurable:!0,writable:!0})},ju=function(){if(!$APP.n(customElements.get("x-drawer"))){var a=class extends HTMLElement{};a.observedAttributes=iu;a.prototype.connectedCallback=function(){Wt(this);gu(this);fu(this);eu(this);return null};a.prototype.disconnectedCallback=
13
- function(){gu(this);au(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&eu(this);return null};hu(a.prototype);customElements.define("x-drawer",a)}return null},ku=function(){return ju()};var Xt=new $APP.S(null,new $APP.Q(null,4,["right",null,"top",null,"bottom",null,"left",null],null),null),iu=["open","placement","label"];$APP.sd(["x-drawer-toggle",new $APP.Q(null,2,[$APP.ni,!1,$APP.Y,new $APP.Q(null,1,[$APP.ji,$APP.Di],null)],null),"x-drawer-dismiss",new $APP.Q(null,2,[$APP.ni,!1,$APP.Y,new $APP.Q(null,1,[$APP.qh,$APP.X],null)],null)]);$APP.ja("baredom.exports.x_drawer.init",ku);export const init=ku;
2
+ var bx=function(a){var b=$APP.l(a,"__xDrawerRefs");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("div"),m=document.createElement("slot"),p=document.createElement("div"),r=document.createElement("slot");c.textContent=":host{display:contents;color-scheme:light dark;--x-drawer-size:20rem;--x-drawer-bg:Canvas;--x-drawer-fg:CanvasText;--x-drawer-backdrop:rgb(0 0 0/0.4);--x-drawer-shadow:0 8px 24px rgb(0 0 0/0.18);--x-drawer-duration:200ms;--x-drawer-easing:ease;--x-drawer-z:1000;--x-drawer-header-padding:1rem 1.25rem;--x-drawer-body-padding:1rem 1.25rem;--x-drawer-footer-padding:0.75rem 1.25rem;--x-drawer-border:color-mix(in srgb,currentColor 12%,transparent);}[part\x3dbackdrop]{display:none;position:fixed;inset:0;background:var(--x-drawer-backdrop);z-index:var(--x-drawer-z);}:host([data-open\x3dtrue]) [part\x3dbackdrop]{display:block;}[part\x3dpanel]{position:fixed;background:var(--x-drawer-bg);color:var(--x-drawer-fg);box-shadow:var(--x-drawer-shadow);display:flex;flex-direction:column;overflow:hidden;z-index:calc(var(--x-drawer-z) + 1);transition:transform var(--x-drawer-duration) var(--x-drawer-easing);}:host([data-placement\x3dleft]) [part\x3dpanel],:host([data-placement\x3dright]) [part\x3dpanel]{top:0;bottom:0;width:var(--x-drawer-size);max-width:100vw;}:host([data-placement\x3dleft]) [part\x3dpanel]{left:0;transform:translateX(-100%);}:host([data-placement\x3dright]) [part\x3dpanel]{right:0;transform:translateX(100%);}:host([data-placement\x3dtop]) [part\x3dpanel],:host([data-placement\x3dbottom]) [part\x3dpanel]{left:0;right:0;height:var(--x-drawer-size);max-height:100vh;}:host([data-placement\x3dtop]) [part\x3dpanel]{top:0;transform:translateY(-100%);}:host([data-placement\x3dbottom]) [part\x3dpanel]{bottom:0;transform:translateY(100%);}:host([data-open\x3dtrue]) [part\x3dpanel]{transform:none;}[part\x3dpanel]:focus{outline:none;}[part\x3dheader]{padding:var(--x-drawer-header-padding);border-bottom:1px solid var(--x-drawer-border);flex-shrink:0;}[part\x3dbody]{padding:var(--x-drawer-body-padding);overflow-y:auto;flex:1;}[part\x3dfooter]{padding:var(--x-drawer-footer-padding);border-top:1px solid var(--x-drawer-border);flex-shrink:0;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none;}}@media (prefers-color-scheme:dark){:host{--x-drawer-bg:#1c1d24;--x-drawer-fg:#e2e4ef;--x-drawer-border:rgb(255 255 255/0.08);--x-drawer-shadow:0 8px 40px rgb(0 0 0/0.55);--x-drawer-backdrop:rgb(0 0 0/0.55);}}";
3
+ d.setAttribute("part","backdrop");e.setAttribute("part","panel");e.setAttribute("role","dialog");e.setAttribute("aria-modal","true");g.setAttribute("part","header");h.setAttribute("name","header");k.setAttribute("part","body");p.setAttribute("part","footer");r.setAttribute("name","footer");g.appendChild(h);k.appendChild(m);p.appendChild(r);e.appendChild(g);e.appendChild(k);e.appendChild(p);b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xDrawerRefs={root:b,backdrop:d,panel:e,header:g,body:k,
4
+ footer:p};return $APP.l(a,"__xDrawerRefs")},dx=function(a){a=new $APP.Q(null,3,[$APP.Wh,a.hasAttribute("open"),$APP.Ak,a.getAttribute("placement"),$APP.Ch,a.getAttribute("label")],null);var b=$APP.O(a),c=$APP.I(b,$APP.Wh);a=$APP.I(b,$APP.Ak);b=$APP.I(b,$APP.Ch);c=$APP.K(c);a=typeof a==="string"&&$APP.M(cx,a)?a:"right";b=typeof b==="string"&&$APP.P(b,"")?b:"Drawer";return new $APP.Q(null,3,[$APP.fk,c,$APP.Hj,a,$APP.W,b],null)},ex=function(a,b,c){a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,
5
+ composed:!0,cancelable:!1}))},fx=function(a){return $APP.ee($APP.Kd(function(b){var c=window.getComputedStyle(b);return $APP.P("none",c.display)&&$APP.P("hidden",c.visibility)&&b.offsetWidth>0&&b.offsetHeight>0},$APP.fc(a.querySelectorAll("a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex\x3d'-1'])"))))},gx=function(a){var b=$APP.l(a,"__xDrawerRefs");b=$APP.n(b)?$APP.l(b,"panel"):null;var c=$APP.l(a,"__xDrawerRestore"),d=
6
+ $APP.l(a,"__xDrawerPanelTab")===!0;a.__xDrawerTabbables=null;a.__xDrawerRestore=null;$APP.n($APP.n(b)?d:b)&&(b.removeAttribute("tabindex"),a.__xDrawerPanelTab=!1);$APP.n($APP.n(c)?c.isConnected:c)&&c.focus()},hx=function(a,b){ex(a,"x-drawer-dismiss",{reason:b});a.removeAttribute("open");return null},ix=function(a){$APP.n(a.hasAttribute("open"))||a.setAttribute("open","");return null},jx=function(a){a.removeAttribute("open");return null},kx=function(a){var b=bx(a);b=$APP.l(b,"panel");var c=dx(a),d=
7
+ $APP.fk.g(c),e=$APP.l(a,"__xDrawerPrevOpen");a.setAttribute("data-open",$APP.n(d)?"true":"false");a.setAttribute("data-placement",$APP.Hj.g(c));b.setAttribute("aria-label",$APP.W.g(c));$APP.n(d)?b.removeAttribute("aria-hidden"):b.setAttribute("aria-hidden","true");$APP.P(e,d)&&(a.__xDrawerPrevOpen=d,ex(a,"x-drawer-toggle",{open:d}),$APP.n(d)?setTimeout(function(){var g=$APP.l(a,"__xDrawerRefs");g=$APP.n(g)?$APP.l(g,"panel"):null;var h=fx(a);a.__xDrawerRestore=document.activeElement;var k=$APP.n(h)?
8
+ $APP.Lg(h):null;a.__xDrawerTabbables=k;$APP.u(h)?$APP.w(h).focus():$APP.n(g)&&($APP.n(g.hasAttribute("tabindex"))||(g.setAttribute("tabindex","-1"),a.__xDrawerPanelTab=!0),g.focus());return null},0):gx(a))},lx=function(a){function b(g){var h=g.key;if($APP.C.h(h,"Escape"))g.preventDefault(),hx(a,"escape");else if($APP.C.h(h,"Tab")){h=$APP.l(a,"__xDrawerTabbables");h=$APP.n(h)?$APP.ee($APP.fc(h)):$APP.Md;var k=$APP.l(a,"__xDrawerRefs");k=$APP.n(k)?$APP.l(k,"panel"):null;if($APP.sc(h))g.preventDefault(),
9
+ $APP.n(k)&&k.focus();else{k=document.activeElement;var m=$APP.w(h);h=$APP.ic(h);var p=g.shiftKey;$APP.n($APP.n(p)?$APP.C.h(k,m):p)?(g.preventDefault(),h.focus()):$APP.q(p)&&$APP.C.h(k,h)&&(g.preventDefault(),m.focus())}}return null}function c(){return hx(a,"backdrop")}var d=bx(a),e=$APP.l(d,"panel");$APP.l(d,"backdrop").addEventListener("click",c);e.addEventListener("keydown",b);$APP.la(a,"__xDrawerHandlers",{backdrop:c,keydown:b})},mx=function(a){var b=$APP.l(a,"__xDrawerHandlers"),c=$APP.l(a,"__xDrawerRefs");
10
+ if($APP.n($APP.n(b)?c:b)){var d=$APP.l(c,"backdrop");c=$APP.l(c,"panel");var e=$APP.l(b,"backdrop");b=$APP.l(b,"keydown");$APP.n(e)&&d.removeEventListener("click",e);$APP.n(b)&&c.removeEventListener("keydown",b)}a.__xDrawerHandlers=null},nx=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return $APP.n(b)?ix(this):jx(this)},enumerable:!0,configurable:!0});Object.defineProperty(a,"placement",{get:function(){var b=this.getAttribute("placement");
11
+ return $APP.n(b)?b:"right"},set:function(b){return b==null?this.removeAttribute("placement"):this.setAttribute("placement",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Drawer"},set:function(b){return b==null?this.removeAttribute("label"):this.setAttribute("label",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"show",{value:function(){return ix(this)},enumerable:!0,configurable:!0,
12
+ writable:!0});Object.defineProperty(a,"hide",{value:function(){return jx(this)},enumerable:!0,configurable:!0,writable:!0});Object.defineProperty(a,"toggle",{value:function(){$APP.n(this.hasAttribute("open"))?jx(this):ix(this);return null},enumerable:!0,configurable:!0,writable:!0})},px=function(){if(!$APP.n(customElements.get("x-drawer"))){var a=class extends HTMLElement{};a.observedAttributes=ox;a.prototype.connectedCallback=function(){bx(this);mx(this);lx(this);kx(this);return null};a.prototype.disconnectedCallback=
13
+ function(){mx(this);gx(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.P(c,d)&&kx(this);return null};nx(a.prototype);customElements.define("x-drawer",a)}return null},qx=function(){return px()};var cx=new $APP.S(null,new $APP.Q(null,4,["right",null,"top",null,"bottom",null,"left",null],null),null),ox=["open","placement","label"];$APP.yd(["x-drawer-toggle",new $APP.Q(null,2,[$APP.Dj,!1,$APP.Y,new $APP.Q(null,1,[$APP.zj,$APP.Yj],null)],null),"x-drawer-dismiss",new $APP.Q(null,2,[$APP.Dj,!1,$APP.Y,new $APP.Q(null,1,[$APP.gi,$APP.X],null)],null)]);$APP.ja("baredom.exports.x_drawer.init",qx);export const init=qx;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Fl=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},Hl=function(a){var b=$APP.l(a,"__xDropdownRefs");if($APP.n(b)){var c=$APP.l(b,"trigger"),d=$APP.l(b,"label");b=$APP.l(b,"panel");var e=a.hasAttribute("open"),g=a.hasAttribute("disabled");var h=a.getAttribute("label");h=$APP.n(h)?h:"";a=a.getAttribute("placement");a=$APP.yc(Gl,a)?a:"bottom-start";d.textContent=h;c.setAttribute("aria-expanded",$APP.n(e)?"true":"false");Fl(c,"disabled",g);return b.setAttribute("data-placement",
3
- a)}return null},Il=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=$APP.p(a.hasAttribute("open"));b=new CustomEvent("x-dropdown-toggle",{detail:{open:c,source:b},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.p(b.defaultPrevented)?(c?a.setAttribute("open",""):a.removeAttribute("open"),a.dispatchEvent(new CustomEvent("x-dropdown-change",{detail:{open:c},bubbles:!0,composed:!0,cancelable:!1}))):null},Jl=function(a){var b=$APP.l(a,"__xDropdownHandlers");if($APP.n(b)){var c=
4
- $APP.l(b,"docClick"),d=$APP.l(b,"docKeydown");return setTimeout(function(){return $APP.n(a.hasAttribute("open"))?(document.addEventListener("click",c),document.addEventListener("keydown",d)):null},0)}return null},Kl=function(a){a=$APP.l(a,"__xDropdownHandlers");if($APP.n(a)){var b=$APP.l(a,"docKeydown");document.removeEventListener("click",$APP.l(a,"docClick"));return document.removeEventListener("keydown",b)}return null},Ll=function(a){return{triggerClick:function(){return Il(a,"pointer")},triggerKeydown:function(b){var c=
5
- b.key;return $APP.C.h(c," ")||$APP.C.h(c,"Enter")?(b.preventDefault(),Il(a,"keyboard")):null},hostFocusout:function(b){return $APP.n(a.hasAttribute("open"))?(b=b.relatedTarget,b==null||$APP.p(a.contains(b))?Il(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:Il(a,"outside-click")):null},docKeydown:function(b){b=$APP.C.h(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?Il(a,
6
- "escape"):null}}},Ml=function(a){var b=$APP.l(a,"__xDropdownRefs");if($APP.n(b)){var c=$APP.l(a,"__xDropdownHandlers");$APP.n(c)&&(b=$APP.l(b,"trigger"),b.removeEventListener("click",$APP.l(c,"triggerClick")),b.removeEventListener("keydown",$APP.l(c,"triggerKeydown")),a.removeEventListener("focusout",$APP.l(c,"hostFocusout")))}},Nl=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return Fl(this,c,$APP.K(d))}})},Ol=
7
- 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}})},Ql=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return Pl}});Nl(b,"open","open");Nl(b,"disabled","disabled");Ol(b,"label","label");Ol(b,"placement","placement");b.show=function(){return $APP.n(this.hasAttribute("open"))?
8
- null:Il(this,"programmatic")};b.hide=function(){return $APP.n(this.hasAttribute("open"))?Il(this,"programmatic"):null};b.toggle=function(){return Il(this,"programmatic")};b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xDropdownRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("button"),g=document.createElement("span"),h=document.createElement("span"),k=document.createElement("div"),m=document.createElement("div"),q=document.createElement("slot");
2
+ var ln=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},nn=function(a){var b=$APP.l(a,"__xDropdownRefs");if($APP.n(b)){var c=$APP.l(b,"trigger"),d=$APP.l(b,"label");b=$APP.l(b,"panel");var e=a.hasAttribute("open"),g=a.hasAttribute("disabled");var h=a.getAttribute("label");h=$APP.n(h)?h:"";a=a.getAttribute("placement");a=$APP.M(mn,a)?a:"bottom-start";d.textContent=h;c.setAttribute("aria-expanded",$APP.n(e)?"true":"false");ln(c,"disabled",g);return b.setAttribute("data-placement",
3
+ a)}return null},on=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=$APP.q(a.hasAttribute("open"));b=new CustomEvent("x-dropdown-toggle",{detail:{open:c,source:b},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.q(b.defaultPrevented)?(c?a.setAttribute("open",""):a.removeAttribute("open"),a.dispatchEvent(new CustomEvent("x-dropdown-change",{detail:{open:c},bubbles:!0,composed:!0,cancelable:!1}))):null},pn=function(a){var b=$APP.l(a,"__xDropdownHandlers");if($APP.n(b)){var c=
4
+ $APP.l(b,"docClick"),d=$APP.l(b,"docKeydown");return setTimeout(function(){return $APP.n(a.hasAttribute("open"))?(document.addEventListener("click",c),document.addEventListener("keydown",d)):null},0)}return null},qn=function(a){a=$APP.l(a,"__xDropdownHandlers");if($APP.n(a)){var b=$APP.l(a,"docKeydown");document.removeEventListener("click",$APP.l(a,"docClick"));return document.removeEventListener("keydown",b)}return null},rn=function(a){return{triggerClick:function(){return on(a,"pointer")},triggerKeydown:function(b){var c=
5
+ b.key;return $APP.C.h(c," ")||$APP.C.h(c,"Enter")?(b.preventDefault(),on(a,"keyboard")):null},hostFocusout:function(b){return $APP.n(a.hasAttribute("open"))?(b=b.relatedTarget,b==null||$APP.q(a.contains(b))?on(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:on(a,"outside-click")):null},docKeydown:function(b){b=$APP.C.h(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?on(a,
6
+ "escape"):null}}},sn=function(a){var b=$APP.l(a,"__xDropdownRefs");if($APP.n(b)){var c=$APP.l(a,"__xDropdownHandlers");$APP.n(c)&&(b=$APP.l(b,"trigger"),b.removeEventListener("click",$APP.l(c,"triggerClick")),b.removeEventListener("keydown",$APP.l(c,"triggerKeydown")),a.removeEventListener("focusout",$APP.l(c,"hostFocusout")))}},tn=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return ln(this,c,$APP.K(d))}})},un=
7
+ 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}})},wn=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return vn}});tn(b,"open","open");tn(b,"disabled","disabled");un(b,"label","label");un(b,"placement","placement");b.show=function(){return $APP.n(this.hasAttribute("open"))?
8
+ null:on(this,"programmatic")};b.hide=function(){return $APP.n(this.hasAttribute("open"))?on(this,"programmatic"):null};b.toggle=function(){return on(this,"programmatic")};b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xDropdownRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("button"),g=document.createElement("span"),h=document.createElement("span"),k=document.createElement("div"),m=document.createElement("div"),p=document.createElement("slot");
9
9
  d.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-dropdown-trigger-bg:#f8fafc;--x-dropdown-trigger-bg-hover:#f1f5f9;--x-dropdown-trigger-bg-active:#e2e8f0;--x-dropdown-trigger-color:#0f172a;--x-dropdown-trigger-border:1px solid #e2e8f0;--x-dropdown-trigger-radius:6px;--x-dropdown-trigger-padding:0 0.75rem;--x-dropdown-trigger-height:2.25rem;--x-dropdown-trigger-font-size:0.9375rem;--x-dropdown-trigger-font-weight:500;--x-dropdown-chevron-color:#64748b;--x-dropdown-focus-ring:#60a5fa;--x-dropdown-panel-bg:#ffffff;--x-dropdown-panel-border:1px solid #e2e8f0;--x-dropdown-panel-radius:8px;--x-dropdown-panel-shadow:0 4px 16px rgba(0,0,0,0.12);--x-dropdown-panel-padding:0.25rem;--x-dropdown-panel-min-width:10rem;--x-dropdown-panel-max-height:20rem;--x-dropdown-panel-offset:4px;--x-dropdown-transition-duration:150ms;--x-dropdown-transition-easing:ease;}@media (prefers-color-scheme:dark){:host{--x-dropdown-trigger-bg:#1e293b;--x-dropdown-trigger-bg-hover:#334155;--x-dropdown-trigger-bg-active:#475569;--x-dropdown-trigger-color:#e2e8f0;--x-dropdown-trigger-border:1px solid #334155;--x-dropdown-chevron-color:#94a3b8;--x-dropdown-focus-ring:#93c5fd;--x-dropdown-panel-bg:#1e293b;--x-dropdown-panel-border:1px solid #334155;--x-dropdown-panel-shadow:0 4px 24px rgba(0,0,0,0.4);}}[part\x3dtrigger]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:0.375rem;height:var(--x-dropdown-trigger-height);padding:var(--x-dropdown-trigger-padding);background:var(--x-dropdown-trigger-bg);color:var(--x-dropdown-trigger-color);border:var(--x-dropdown-trigger-border);border-radius:var(--x-dropdown-trigger-radius);font-size:var(--x-dropdown-trigger-font-size);font-weight:var(--x-dropdown-trigger-font-weight);font-family:inherit;cursor:pointer;user-select:none;white-space:nowrap;}[part\x3dtrigger]:hover:not(:disabled){background:var(--x-dropdown-trigger-bg-hover);}[part\x3dtrigger]:active:not(:disabled){background:var(--x-dropdown-trigger-bg-active);}[part\x3dtrigger]:disabled{cursor:default;opacity:0.55;}[part\x3dtrigger]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-dropdown-focus-ring);}[part\x3dtrigger-label]{flex:1;}[part\x3dchevron]{display:inline-block;color:var(--x-dropdown-chevron-color);font-style:normal;flex-shrink:0;transition:transform 200ms ease;}:host([open]) [part\x3dchevron]{transform:rotate(180deg);}[part\x3dpanel]{position:absolute;z-index:1000;box-sizing:border-box;background:var(--x-dropdown-panel-bg);border:var(--x-dropdown-panel-border);border-radius:var(--x-dropdown-panel-radius);box-shadow:var(--x-dropdown-panel-shadow);padding:var(--x-dropdown-panel-padding);min-width:var(--x-dropdown-panel-min-width);max-height:var(--x-dropdown-panel-max-height);overflow-y:auto;visibility:hidden;pointer-events:none;opacity:0;transform:scaleY(0.95);transition:opacity var(--x-dropdown-transition-duration) var(--x-dropdown-transition-easing),transform var(--x-dropdown-transition-duration) var(--x-dropdown-transition-easing),visibility 0s var(--x-dropdown-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;pointer-events:auto;opacity:1;transform:scaleY(1);transition:opacity var(--x-dropdown-transition-duration) var(--x-dropdown-transition-easing),transform var(--x-dropdown-transition-duration) var(--x-dropdown-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dbottom-start]{top:calc(100% + var(--x-dropdown-panel-offset));left:0;transform-origin:top left;}[part\x3dpanel][data-placement\x3dbottom-end]{top:calc(100% + var(--x-dropdown-panel-offset));right:0;transform-origin:top right;}[part\x3dpanel][data-placement\x3dtop-start]{bottom:calc(100% + var(--x-dropdown-panel-offset));left:0;transform-origin:bottom left;}[part\x3dpanel][data-placement\x3dtop-end]{bottom:calc(100% + var(--x-dropdown-panel-offset));right:0;transform-origin:bottom right;}[part\x3dpanel-inner]{display:contents;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}[part\x3dchevron]{transition:none !important;}}";
10
- e.setAttribute("part","trigger");e.setAttribute("type","button");e.setAttribute("aria-haspopup","true");e.setAttribute("aria-expanded","false");e.setAttribute("aria-controls","panel");g.setAttribute("part","trigger-label");h.setAttribute("part","chevron");h.setAttribute("aria-hidden","true");h.textContent="▾";k.setAttribute("part","panel");k.setAttribute("id","panel");k.setAttribute("data-placement","bottom-start");m.setAttribute("part","panel-inner");e.appendChild(g);e.appendChild(h);m.appendChild(q);
11
- k.appendChild(m);c.appendChild(d);c.appendChild(e);c.appendChild(k);this.__xDropdownRefs={trigger:e,label:g,chevron:h,panel:k}}Ml(this);Kl(this);this.__xDropdownHandlers=Ll(this);d=$APP.l(this,"__xDropdownRefs");$APP.n(d)&&(c=$APP.l(this,"__xDropdownHandlers"),$APP.n(c)&&(d=$APP.l(d,"trigger"),d.addEventListener("click",$APP.l(c,"triggerClick")),d.addEventListener("keydown",$APP.l(c,"triggerKeydown")),this.addEventListener("focusout",$APP.l(c,"hostFocusout"))));$APP.n(this.hasAttribute("open"))&&
12
- Jl(this);return Hl(this)};b.disconnectedCallback=function(){Ml(this);return Kl(this)};b.attributeChangedCallback=function(c){$APP.n($APP.l(this,"__xDropdownRefs"))?(Hl(this),c=$APP.C.h(c,"open")?$APP.n(this.hasAttribute("open"))?Jl(this):Kl(this):null):c=null;return c};return a},Rl=function(){return $APP.n(customElements.get("x-dropdown"))?null:customElements.define("x-dropdown",Ql())};var Gl=new $APP.S(null,new $APP.Q(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),Pl=["open","disabled","label","placement"];$APP.sd(["x-dropdown-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-dropdown-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_dropdown.init",Rl);export const init=Rl;
10
+ e.setAttribute("part","trigger");e.setAttribute("type","button");e.setAttribute("aria-haspopup","true");e.setAttribute("aria-expanded","false");e.setAttribute("aria-controls","panel");g.setAttribute("part","trigger-label");h.setAttribute("part","chevron");h.setAttribute("aria-hidden","true");h.textContent="▾";k.setAttribute("part","panel");k.setAttribute("id","panel");k.setAttribute("data-placement","bottom-start");m.setAttribute("part","panel-inner");e.appendChild(g);e.appendChild(h);m.appendChild(p);
11
+ k.appendChild(m);c.appendChild(d);c.appendChild(e);c.appendChild(k);this.__xDropdownRefs={trigger:e,label:g,chevron:h,panel:k}}sn(this);qn(this);this.__xDropdownHandlers=rn(this);d=$APP.l(this,"__xDropdownRefs");$APP.n(d)&&(c=$APP.l(this,"__xDropdownHandlers"),$APP.n(c)&&(d=$APP.l(d,"trigger"),d.addEventListener("click",$APP.l(c,"triggerClick")),d.addEventListener("keydown",$APP.l(c,"triggerKeydown")),this.addEventListener("focusout",$APP.l(c,"hostFocusout"))));$APP.n(this.hasAttribute("open"))&&
12
+ pn(this);return nn(this)};b.disconnectedCallback=function(){sn(this);return qn(this)};b.attributeChangedCallback=function(c){$APP.n($APP.l(this,"__xDropdownRefs"))?(nn(this),c=$APP.C.h(c,"open")?$APP.n(this.hasAttribute("open"))?pn(this):qn(this):null):c=null;return c};return a},xn=function(){return $APP.n(customElements.get("x-dropdown"))?null:customElements.define("x-dropdown",wn())};var mn=new $APP.S(null,new $APP.Q(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),vn=["open","disabled","label","placement"];$APP.yd(["x-dropdown-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-dropdown-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_dropdown.init",xn);export const init=xn;
@@ -1,7 +1,7 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Us=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},Ys=function(a){var b=$APP.l(a,"__xFieldsetRefs");if($APP.n(b)){var c=$APP.l(b,"root-el"),d=$APP.l(b,"legend-el");b=$APP.l(b,"content-el");var e=a.getAttribute("legend");e=new $APP.Q(null,4,[Vs,e,$APP.Sh,a.hasAttribute("disabled"),$APP.wi,a.getAttribute("aria-label"),$APP.ci,a.getAttribute("aria-describedby")],null);var g=$APP.N(e),h=$APP.I(g,Vs);var k=$APP.I(g,$APP.Sh);e=$APP.I(g,$APP.wi);g=$APP.I(g,$APP.ci);h=$APP.n(h)?
3
- h:"";k=$APP.K(k);k=new $APP.Q(null,5,[Ws,h,Xs,$APP.O(h,""),$APP.V,k,$APP.Uh,e,$APP.Pi,g],null);h=Ws.g(k);g=Xs.g(k);e=$APP.V.g(k);d.textContent=h;$APP.n(g)?d.removeAttribute("hidden"):d.setAttribute("hidden","");d=$APP.Uh.g(k);$APP.n(d)?(c.setAttribute("aria-label",d),c.removeAttribute("aria-labelledby")):(c.removeAttribute("aria-label"),$APP.n(g)?c.setAttribute("aria-labelledby","x-fieldset-legend"):c.removeAttribute("aria-labelledby"));d=$APP.Pi.g(k);$APP.n(d)?c.setAttribute("aria-describedby",d):
4
- c.removeAttribute("aria-describedby");Us(a,"data-disabled",e);return Us(b,"inert",e)}return null},Zs=function(a){Object.defineProperty(a,"disabled",{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute("disabled")},set:function(b){return Us(this,"disabled",$APP.K(b))}})},$s=function(a){Object.defineProperty(a,"legend",{configurable:!0,enumerable:!0,get:function(){return this.getAttribute("legend")},set:function(b){b!=null&&$APP.O(b)?(b=""+$APP.T.g(b),b=this.setAttribute("legend",
5
- b)):b=this.removeAttribute("legend");return b}})},bt=function(){var a=class extends HTMLElement{},b=a.prototype;a.observedAttributes=at;$s(b);Zs(b);b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xFieldsetRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("div"),k=document.createElement("slot");d.textContent=":host{display:block;color-scheme:light dark;--x-fieldset-border-color:#d1d5db;--x-fieldset-border-width:1px;--x-fieldset-border-radius:8px;--x-fieldset-padding:1rem;--x-fieldset-gap:0.75rem;--x-fieldset-bg:transparent;--x-fieldset-legend-color:#374151;--x-fieldset-legend-font-size:0.875rem;--x-fieldset-legend-font-weight:600;--x-fieldset-legend-padding:0 0.375rem;--x-fieldset-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-fieldset-border-color:#374151;--x-fieldset-legend-color:#d1d5db;}}[part\x3droot]{display:block;border:var(--x-fieldset-border-width) solid var(--x-fieldset-border-color);border-radius:var(--x-fieldset-border-radius);padding:var(--x-fieldset-padding);background:var(--x-fieldset-bg);position:relative;}:host([data-disabled]) [part\x3droot]{opacity:var(--x-fieldset-disabled-opacity);}[part\x3dlegend]{display:block;position:absolute;top:calc(-0.5em);left:calc(var(--x-fieldset-border-radius) - 0.375rem);padding:var(--x-fieldset-legend-padding);color:var(--x-fieldset-legend-color);font-size:var(--x-fieldset-legend-font-size);font-weight:var(--x-fieldset-legend-font-weight);background:inherit;line-height:1;white-space:nowrap;}[part\x3dlegend][hidden]{display:none;}[part\x3dcontent]{display:flex;flex-direction:column;gap:var(--x-fieldset-gap);}";
6
- e.setAttribute("part","root");e.setAttribute("role","group");g.setAttribute("part","legend");g.setAttribute("id","x-fieldset-legend");h.setAttribute("part","content");h.appendChild(k);e.appendChild(g);e.appendChild(h);c.appendChild(d);c.appendChild(e);this.__xFieldsetRefs={root:c,"root-el":e,"legend-el":g,"content-el":h}}return Ys(this)};b.disconnectedCallback=function(){return null};b.attributeChangedCallback=function(){return Ys(this)};return a},ct=function(){return $APP.n(customElements.get("x-fieldset"))?
7
- null:customElements.define("x-fieldset",bt())},Ws=new $APP.M(null,"legend","legend",-1027192245),Xs=new $APP.M(null,"legend-visible?","legend-visible?",-281107501),Vs=new $APP.M(null,"legend-raw","legend-raw",907427195);var at=["legend","disabled","aria-label","aria-describedby"];$APP.ja("baredom.exports.x_fieldset.init",ct);export const init=ct;
2
+ var Pv=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},Tv=function(a){var b=$APP.l(a,"__xFieldsetRefs");if($APP.n(b)){var c=$APP.l(b,"root-el"),d=$APP.l(b,"legend-el");b=$APP.l(b,"content-el");var e=a.getAttribute("legend");e=new $APP.Q(null,4,[Qv,e,$APP.aj,a.hasAttribute("disabled"),$APP.Nj,a.getAttribute("aria-label"),$APP.oj,a.getAttribute("aria-describedby")],null);var g=$APP.O(e),h=$APP.I(g,Qv);var k=$APP.I(g,$APP.aj);e=$APP.I(g,$APP.Nj);g=$APP.I(g,$APP.oj);h=$APP.n(h)?
3
+ h:"";k=$APP.K(k);k=new $APP.Q(null,5,[Rv,h,Sv,$APP.P(h,""),$APP.V,k,$APP.cj,e,$APP.ok,g],null);h=Rv.g(k);g=Sv.g(k);e=$APP.V.g(k);d.textContent=h;$APP.n(g)?d.removeAttribute("hidden"):d.setAttribute("hidden","");d=$APP.cj.g(k);$APP.n(d)?(c.setAttribute("aria-label",d),c.removeAttribute("aria-labelledby")):(c.removeAttribute("aria-label"),$APP.n(g)?c.setAttribute("aria-labelledby","x-fieldset-legend"):c.removeAttribute("aria-labelledby"));d=$APP.ok.g(k);$APP.n(d)?c.setAttribute("aria-describedby",d):
4
+ c.removeAttribute("aria-describedby");Pv(a,"data-disabled",e);return Pv(b,"inert",e)}return null},Uv=function(a){Object.defineProperty(a,"disabled",{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute("disabled")},set:function(b){return Pv(this,"disabled",$APP.K(b))}})},Vv=function(a){Object.defineProperty(a,"legend",{configurable:!0,enumerable:!0,get:function(){return this.getAttribute("legend")},set:function(b){b!=null&&$APP.P(b)?(b=""+$APP.T.g(b),b=this.setAttribute("legend",
5
+ b)):b=this.removeAttribute("legend");return b}})},Xv=function(){var a=class extends HTMLElement{},b=a.prototype;a.observedAttributes=Wv;Vv(b);Uv(b);b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xFieldsetRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("div"),k=document.createElement("slot");d.textContent=":host{display:block;color-scheme:light dark;--x-fieldset-border-color:#d1d5db;--x-fieldset-border-width:1px;--x-fieldset-border-radius:8px;--x-fieldset-padding:1rem;--x-fieldset-gap:0.75rem;--x-fieldset-bg:transparent;--x-fieldset-legend-color:#374151;--x-fieldset-legend-font-size:0.875rem;--x-fieldset-legend-font-weight:600;--x-fieldset-legend-padding:0 0.375rem;--x-fieldset-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-fieldset-border-color:#374151;--x-fieldset-legend-color:#d1d5db;}}[part\x3droot]{display:block;border:var(--x-fieldset-border-width) solid var(--x-fieldset-border-color);border-radius:var(--x-fieldset-border-radius);padding:var(--x-fieldset-padding);background:var(--x-fieldset-bg);position:relative;}:host([data-disabled]) [part\x3droot]{opacity:var(--x-fieldset-disabled-opacity);}[part\x3dlegend]{display:block;position:absolute;top:calc(-0.5em);left:calc(var(--x-fieldset-border-radius) - 0.375rem);padding:var(--x-fieldset-legend-padding);color:var(--x-fieldset-legend-color);font-size:var(--x-fieldset-legend-font-size);font-weight:var(--x-fieldset-legend-font-weight);background:inherit;line-height:1;white-space:nowrap;}[part\x3dlegend][hidden]{display:none;}[part\x3dcontent]{display:flex;flex-direction:column;gap:var(--x-fieldset-gap);}";
6
+ e.setAttribute("part","root");e.setAttribute("role","group");g.setAttribute("part","legend");g.setAttribute("id","x-fieldset-legend");h.setAttribute("part","content");h.appendChild(k);e.appendChild(g);e.appendChild(h);c.appendChild(d);c.appendChild(e);this.__xFieldsetRefs={root:c,"root-el":e,"legend-el":g,"content-el":h}}return Tv(this)};b.disconnectedCallback=function(){return null};b.attributeChangedCallback=function(){return Tv(this)};return a},Yv=function(){return $APP.n(customElements.get("x-fieldset"))?
7
+ null:customElements.define("x-fieldset",Xv())},Rv=new $APP.N(null,"legend","legend",-1027192245),Sv=new $APP.N(null,"legend-visible?","legend-visible?",-281107501),Qv=new $APP.N(null,"legend-raw","legend-raw",907427195);var Wv=["legend","disabled","aria-label","aria-describedby"];$APP.ja("baredom.exports.x_fieldset.init",Yv);export const init=Yv;
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Qp=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},Up=function(a){a=new $APP.Q(null,4,[Rp,a.getAttribute("href"),Sp,a.getAttribute("filename"),$APP.Sh,a.hasAttribute("disabled"),$APP.wi,a.getAttribute("aria-label")],null);var b=$APP.N(a);a=$APP.I(b,Rp);var c=$APP.I(b,Sp),d=$APP.I(b,$APP.Sh);b=$APP.I(b,$APP.wi);return new $APP.Q(null,4,[$APP.Qi,$APP.n(a)?a:"",Tp,$APP.n(c)?c:"",$APP.V,$APP.K(d),$APP.Uh,b],null)},Vp=function(a){var b=$APP.l(a,"__xFileDownloadRefs");if($APP.n(b)){b=
3
- $APP.l(b,"anchor-el");var c=Up(a),d=$APP.Qi.g(c),e=Tp.g(c),g=$APP.V.g(c);c=$APP.Uh.g(c);b.href=d;typeof e==="string"&&$APP.O(e,"")?b.setAttribute("download",e):(e=typeof d==="string",$APP.n(e?d.startsWith("data:"):e)?b.setAttribute("download",""):b.removeAttribute("download"));$APP.n(g)?b.setAttribute("aria-disabled","true"):b.removeAttribute("aria-disabled");$APP.n(c)?b.setAttribute("aria-label",c):b.removeAttribute("aria-label");return Qp(a,"data-disabled",g)}return null},Wp=function(a){return function(b){if($APP.n(a.hasAttribute("disabled")))return b.preventDefault();
4
- var c=Up(a);c={href:$APP.Qi.g(c),filename:Tp.g(c)};c=new CustomEvent("x-file-download-click",{detail:c,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(c);return $APP.n(c.defaultPrevented)?b.preventDefault():null}},Xp=function(a){var b=$APP.l(a,"__xFileDownloadHandlers"),c=$APP.l(a,"__xFileDownloadRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.l(c,"anchor-el"),b=$APP.l(b,"click"),$APP.n(b)&&c.removeEventListener("click",b));return a.__xFileDownloadHandlers=null},Yp=function(a,b,c){Object.defineProperty(a,
5
- 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}})},Zp=function(a){Object.defineProperty(a,"disabled",{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute("disabled")},set:function(b){return Qp(this,"disabled",$APP.K(b))}})},aq=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",
6
- {get:function(){return $p}});Yp(b,"href","href");Yp(b,"filename","filename");Zp(b);b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xFileDownloadRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("a"),g=document.createElement("span"),h=document.createElement("span"),k=document.createElement("slot");d.textContent=":host{display:inline-block;color-scheme:light dark;--x-file-download-bg:#2563eb;--x-file-download-color:#ffffff;--x-file-download-hover-bg:#1d4ed8;--x-file-download-active-bg:#1e40af;--x-file-download-border-radius:6px;--x-file-download-padding:0.5rem 1rem;--x-file-download-font-size:0.875rem;--x-file-download-font-weight:500;--x-file-download-gap:0.375rem;--x-file-download-icon-size:1em;--x-file-download-focus-ring:#60a5fa;--x-file-download-disabled-opacity:0.45;--x-file-download-transition:background 120ms ease;}@media (prefers-color-scheme:dark){:host{--x-file-download-bg:#3b82f6;--x-file-download-hover-bg:#2563eb;--x-file-download-active-bg:#1d4ed8;--x-file-download-focus-ring:#93c5fd;}}[part\x3danchor]{display:inline-flex;align-items:center;gap:var(--x-file-download-gap);padding:var(--x-file-download-padding);background:var(--x-file-download-bg);color:var(--x-file-download-color);border-radius:var(--x-file-download-border-radius);font-size:var(--x-file-download-font-size);font-weight:var(--x-file-download-font-weight);text-decoration:none;cursor:pointer;box-sizing:border-box;transition:var(--x-file-download-transition);outline:none;user-select:none;-webkit-user-select:none;}[part\x3danchor]:hover{background:var(--x-file-download-hover-bg);}[part\x3danchor]:active{background:var(--x-file-download-active-bg);}[part\x3danchor]:focus-visible{outline:2px solid var(--x-file-download-focus-ring);outline-offset:2px;}[part\x3dicon]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-file-download-icon-size);height:var(--x-file-download-icon-size);flex-shrink:0;}[part\x3dcontent]{display:inline;}:host([data-disabled]) [part\x3danchor]{opacity:var(--x-file-download-disabled-opacity);pointer-events:none;cursor:default;}@media (prefers-reduced-motion:reduce){[part\x3danchor]{transition:none;}}";
2
+ var Ns=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},Rs=function(a){a=new $APP.Q(null,4,[Os,a.getAttribute("href"),Ps,a.getAttribute("filename"),$APP.aj,a.hasAttribute("disabled"),$APP.Nj,a.getAttribute("aria-label")],null);var b=$APP.O(a);a=$APP.I(b,Os);var c=$APP.I(b,Ps),d=$APP.I(b,$APP.aj);b=$APP.I(b,$APP.Nj);return new $APP.Q(null,4,[$APP.pk,$APP.n(a)?a:"",Qs,$APP.n(c)?c:"",$APP.V,$APP.K(d),$APP.cj,b],null)},Ss=function(a){var b=$APP.l(a,"__xFileDownloadRefs");if($APP.n(b)){b=
3
+ $APP.l(b,"anchor-el");var c=Rs(a),d=$APP.pk.g(c),e=Qs.g(c),g=$APP.V.g(c);c=$APP.cj.g(c);b.href=d;typeof e==="string"&&$APP.P(e,"")?b.setAttribute("download",e):(e=typeof d==="string",$APP.n(e?d.startsWith("data:"):e)?b.setAttribute("download",""):b.removeAttribute("download"));$APP.n(g)?b.setAttribute("aria-disabled","true"):b.removeAttribute("aria-disabled");$APP.n(c)?b.setAttribute("aria-label",c):b.removeAttribute("aria-label");return Ns(a,"data-disabled",g)}return null},Ts=function(a){return function(b){if($APP.n(a.hasAttribute("disabled")))return b.preventDefault();
4
+ var c=Rs(a);c={href:$APP.pk.g(c),filename:Qs.g(c)};c=new CustomEvent("x-file-download-click",{detail:c,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(c);return $APP.n(c.defaultPrevented)?b.preventDefault():null}},Us=function(a){var b=$APP.l(a,"__xFileDownloadHandlers"),c=$APP.l(a,"__xFileDownloadRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.l(c,"anchor-el"),b=$APP.l(b,"click"),$APP.n(b)&&c.removeEventListener("click",b));return a.__xFileDownloadHandlers=null},Vs=function(a,b,c){Object.defineProperty(a,
5
+ 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}})},Ws=function(a){Object.defineProperty(a,"disabled",{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute("disabled")},set:function(b){return Ns(this,"disabled",$APP.K(b))}})},Ys=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",
6
+ {get:function(){return Xs}});Vs(b,"href","href");Vs(b,"filename","filename");Ws(b);b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xFileDownloadRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("a"),g=document.createElement("span"),h=document.createElement("span"),k=document.createElement("slot");d.textContent=":host{display:inline-block;color-scheme:light dark;--x-file-download-bg:#2563eb;--x-file-download-color:#ffffff;--x-file-download-hover-bg:#1d4ed8;--x-file-download-active-bg:#1e40af;--x-file-download-border-radius:6px;--x-file-download-padding:0.5rem 1rem;--x-file-download-font-size:0.875rem;--x-file-download-font-weight:500;--x-file-download-gap:0.375rem;--x-file-download-icon-size:1em;--x-file-download-focus-ring:#60a5fa;--x-file-download-disabled-opacity:0.45;--x-file-download-transition:background 120ms ease;}@media (prefers-color-scheme:dark){:host{--x-file-download-bg:#3b82f6;--x-file-download-hover-bg:#2563eb;--x-file-download-active-bg:#1d4ed8;--x-file-download-focus-ring:#93c5fd;}}[part\x3danchor]{display:inline-flex;align-items:center;gap:var(--x-file-download-gap);padding:var(--x-file-download-padding);background:var(--x-file-download-bg);color:var(--x-file-download-color);border-radius:var(--x-file-download-border-radius);font-size:var(--x-file-download-font-size);font-weight:var(--x-file-download-font-weight);text-decoration:none;cursor:pointer;box-sizing:border-box;transition:var(--x-file-download-transition);outline:none;user-select:none;-webkit-user-select:none;}[part\x3danchor]:hover{background:var(--x-file-download-hover-bg);}[part\x3danchor]:active{background:var(--x-file-download-active-bg);}[part\x3danchor]:focus-visible{outline:2px solid var(--x-file-download-focus-ring);outline-offset:2px;}[part\x3dicon]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-file-download-icon-size);height:var(--x-file-download-icon-size);flex-shrink:0;}[part\x3dcontent]{display:inline;}:host([data-disabled]) [part\x3danchor]{opacity:var(--x-file-download-disabled-opacity);pointer-events:none;cursor:default;}@media (prefers-reduced-motion:reduce){[part\x3danchor]{transition:none;}}";
7
7
  e.setAttribute("part","anchor");g.setAttribute("part","icon");h.setAttribute("part","content");g.innerHTML='\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" width\x3d"1em" height\x3d"1em" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 1a.75.75 0 0 1 .75.75v6.19l1.97-1.97a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.03a.75.75 0 0 1 1.06-1.06L7.25 7.94V1.75A.75.75 0 0 1 8 1ZM2.5 13.25a.75.75 0 0 1 .75-.75h9.5a.75.75 0 0 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75Z"/\x3e\x3c/svg\x3e';
8
- h.appendChild(k);e.appendChild(g);e.appendChild(h);c.appendChild(d);c.appendChild(e);this.__xFileDownloadRefs={"anchor-el":e,"icon-el":g,"content-el":h}}Xp(this);c=Wp(this);$APP.l($APP.l(this,"__xFileDownloadRefs"),"anchor-el").addEventListener("click",c);this.__xFileDownloadHandlers={click:c};return Vp(this)};b.disconnectedCallback=function(){return Xp(this)};b.attributeChangedCallback=function(){return Vp(this)};return a},bq=function(){return $APP.n(customElements.get("x-file-download"))?null:customElements.define("x-file-download",
9
- aq())},Sp=new $APP.M(null,"filename-raw","filename-raw",-706184256),Tp=new $APP.M(null,"filename","filename",-1428840783),Rp=new $APP.M(null,"href-raw","href-raw",-1680949453);var $p=["href","filename","disabled","aria-label"];$APP.ja("baredom.exports.x_file_download.init",bq);export const init=bq;
8
+ h.appendChild(k);e.appendChild(g);e.appendChild(h);c.appendChild(d);c.appendChild(e);this.__xFileDownloadRefs={"anchor-el":e,"icon-el":g,"content-el":h}}Us(this);c=Ts(this);$APP.l($APP.l(this,"__xFileDownloadRefs"),"anchor-el").addEventListener("click",c);this.__xFileDownloadHandlers={click:c};return Ss(this)};b.disconnectedCallback=function(){return Us(this)};b.attributeChangedCallback=function(){return Ss(this)};return a},Zs=function(){return $APP.n(customElements.get("x-file-download"))?null:customElements.define("x-file-download",
9
+ Ys())},Ps=new $APP.N(null,"filename-raw","filename-raw",-706184256),Qs=new $APP.N(null,"filename","filename",-1428840783),Os=new $APP.N(null,"href-raw","href-raw",-1680949453);var Xs=["href","filename","disabled","aria-label"];$APP.ja("baredom.exports.x_file_download.init",Zs);export const init=Zs;
@@ -1,18 +1,18 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var JB=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},KB=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var g=c.value;return $APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.C.h(g,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},MB=function(a){var b=$APP.l(a,"__xFormFieldRefs");if($APP.n(b)){var c=$APP.l(b,"label"),d=$APP.l(b,"input"),
3
- e=$APP.l(b,"hint");b=$APP.l(b,"error");var g=$APP.Xe([$APP.Wg,$APP.Dh,$APP.lh,$APP.yh,$APP.Sh,$APP.ug,$APP.mi,$APP.yi,$APP.Vg,$APP.bh,$APP.ph],[a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("type"),a.getAttribute("placeholder")]);var h=$APP.N(g),k=$APP.I(h,$APP.ph),m=$APP.I(h,$APP.Wg),q=$APP.I(h,$APP.Dh);
4
- g=$APP.I(h,$APP.lh);var r=$APP.I(h,$APP.yh),v=$APP.I(h,$APP.Sh),w=$APP.I(h,$APP.ug),z=$APP.I(h,$APP.mi),A=$APP.I(h,$APP.yi),D=$APP.I(h,$APP.Vg),G=$APP.I(h,$APP.bh);h=$APP.n(g)?g:"";var J=$APP.n(r)?r:"",E=$APP.n(m)?m:"",R=[$APP.Tg,$APP.Vi,$APP.vi,$APP.Zg,$APP.ai,$APP.U,$APP.Gh,$APP.Z,$APP.ch,$APP.ei,$APP.W,$APP.ih,$APP.gi,$APP.V];w=$APP.K(w);z=$APP.K(z);k=$APP.n(k)?k:"";r=typeof r==="string"&&$APP.O(r,"")&&r!=null;q=$APP.n(q)?q:"";A=$APP.n(A)?A:"";m=typeof m==="string"&&$APP.O(m,"")&&m!=null;G=typeof G===
5
- "string"&&$APP.yc(LB,G)?G:"text";g=$APP.Xe(R,[w,z,k,r,q,A,m,G,typeof g==="string"&&$APP.O(g,"")&&g!=null,J,E,h,$APP.n(D)?D:"",$APP.K(v)]);v=$APP.ch.g(g);D=$APP.Zg.g(g);h=$APP.Gh.g(g);d.type=$APP.Z.g(g);d.name=$APP.ai.g(g);d.placeholder=$APP.vi.g(g);d.disabled=$APP.V.g(g);d.readOnly=$APP.Vi.g(g);d.required=$APP.Tg.g(g);d.autocomplete=$APP.gi.g(g);J=$APP.n($APP.Tg.g(g))?"true":"false";d.setAttribute("aria-required",J);d.setAttribute("aria-invalid",$APP.n(v)?"true":"false");J=$APP.n($APP.n(D)?v:D)?"hint error":
6
- $APP.n(D)?"hint":$APP.n(v)?"error":null;$APP.n(J)?d.setAttribute("aria-describedby",J):d.removeAttribute("aria-describedby");c.textContent=$APP.W.g(g);$APP.n(h)?c.classList.remove("label-hidden"):c.classList.add("label-hidden");e.textContent=$APP.ei.g(g);$APP.n(D)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.ih.g(g);$APP.n(v)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");JB(a,"data-invalid",v);c=$APP.l(a,"__xFormFieldInternals");return $APP.n(c)?
7
- KB(a,c,d):null}return null},NB=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},OB=function(a){return function(){var b=$APP.l(a,"__xFormFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xFormFieldInternals");$APP.n(e)&&(e.setFormValue(c),KB(a,e,b));return NB(a,"x-form-field-input",{name:d,value:c})}return null}},PB=function(a){return function(){var b=$APP.l(a,"__xFormFieldRefs");
8
- if($APP.n(b)){b=$APP.l(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xFormFieldInternals");$APP.n(e)&&(e.setFormValue(c),KB(a,e,b));return NB(a,"x-form-field-change",{name:d,value:c})}return null}},QB=function(a){var b=$APP.l(a,"__xFormFieldRefs");if($APP.n(b)){var c=$APP.l(a,"__xFormFieldHandlers");if($APP.n(c)){b=$APP.l(b,"input");b.removeEventListener("input",$APP.l(c,"input"));b.removeEventListener("change",$APP.l(c,"change"));a.__xFormFieldHandlers=
9
- null;return}}return null},RB=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}})},SB=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return JB(this,c,$APP.K(d))}})},TB=function(a){Object.defineProperty(a,"value",{configurable:!0,
10
- enumerable:!0,get:function(){var b=$APP.l(this,"__xFormFieldRefs");if($APP.n(b))return $APP.l(b,"input").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.O(b)?""+$APP.T.g(b):"";this.setAttribute("value",b);var c=$APP.l(this,"__xFormFieldRefs");return $APP.n(c)?$APP.l(c,"input").value=b:null}})},VB=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return UB}});TB(b);RB(b,
11
- "label","label");RB(b,"type","type");RB(b,"name","name");RB(b,"placeholder","placeholder");RB(b,"autocomplete","autocomplete");SB(b,"disabled","disabled");SB(b,"readOnly","readonly");SB(b,"required","required");b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xFormFieldRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("label"),h=document.createElement("div"),k=document.createElement("input"),m=document.createElement("span"),
12
- q=document.createElement("span");d.textContent=":host{display:block;color-scheme:light dark;--x-form-field-label-color:#374151;--x-form-field-label-font-size:0.875rem;--x-form-field-input-bg:#ffffff;--x-form-field-input-color:#111827;--x-form-field-input-border:1px solid #d1d5db;--x-form-field-input-border-radius:6px;--x-form-field-input-padding:0.5rem 0.75rem;--x-form-field-focus-ring-color:#2563eb;--x-form-field-error-color:#dc2626;--x-form-field-hint-color:#6b7280;--x-form-field-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-form-field-label-color:#d1d5db;--x-form-field-input-bg:#1f2937;--x-form-field-input-color:#f9fafb;--x-form-field-input-border:1px solid #4b5563;--x-form-field-focus-ring-color:#3b82f6;--x-form-field-error-color:#f87171;--x-form-field-hint-color:#9ca3af;}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:var(--x-form-field-label-font-size);font-weight:500;color:var(--x-form-field-label-color);}.label-hidden{display:none;}[part\x3dinput-wrapper]{display:block;}[part\x3dinput]{display:block;width:100%;box-sizing:border-box;padding:var(--x-form-field-input-padding);background:var(--x-form-field-input-bg);color:var(--x-form-field-input-color);border:var(--x-form-field-input-border);border-radius:var(--x-form-field-input-border-radius);font-size:1rem;line-height:1.5;font-family:inherit;outline:none;transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dinput]:focus{border-color:var(--x-form-field-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-form-field-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dinput]{border-color:var(--x-form-field-error-color);}:host([data-invalid]) [part\x3dinput]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-form-field-error-color) 20%,transparent);}[part\x3dinput]:disabled{opacity:var(--x-form-field-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-form-field-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-form-field-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput]{transition:none;}}";
13
- e.setAttribute("part","field");g.setAttribute("part","label");g.setAttribute("id","label");g.setAttribute("for","input");h.setAttribute("part","input-wrapper");k.setAttribute("part","input");k.setAttribute("id","input");k.setAttribute("aria-labelledby","label");m.setAttribute("part","hint");m.setAttribute("id","hint");m.setAttribute("aria-live","polite");q.setAttribute("part","error");q.setAttribute("id","error");q.setAttribute("role","alert");q.setAttribute("aria-live","assertive");h.appendChild(k);
14
- e.appendChild(g);e.appendChild(h);e.appendChild(m);e.appendChild(q);c.appendChild(d);c.appendChild(e);this.__xFormFieldRefs={field:e,label:g,input:k,hint:m,error:q};$APP.n(this.attachInternals)&&(this.__xFormFieldInternals=this.attachInternals())}QB(this);c=$APP.l(this,"__xFormFieldRefs");$APP.n(c)&&(c=$APP.l(c,"input"),d=this.getAttribute("value"),$APP.n(d)&&(c.value=d));c=$APP.l(this,"__xFormFieldInternals");$APP.n(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.n(e)?e:""));c=$APP.l(this,
15
- "__xFormFieldRefs");$APP.n(c)&&(c=$APP.l(c,"input"),d=OB(this),e=PB(this),c.addEventListener("input",d),c.addEventListener("change",e),this.__xFormFieldHandlers={input:d,change:e});return MB(this)};b.disconnectedCallback=function(){return QB(this)};b.attributeChangedCallback=function(c,d,e){$APP.C.h(c,"value")&&(c=$APP.l(this,"__xFormFieldRefs"),$APP.n(c)&&(c=$APP.l(c,"input"),$APP.O(c.value,e)&&(c.value=$APP.n(e)?e:"")));return MB(this)};b.formDisabledCallback=function(c){JB(this,"disabled",$APP.K(c));
16
- return MB(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.l(this,"__xFormFieldRefs");$APP.n(c)&&($APP.l(c,"input").value="");c=$APP.l(this,"__xFormFieldInternals");$APP.n(c)&&c.setFormValue("");return MB(this)};return a},WB=function(){return $APP.n(customElements.get("x-form-field"))?null:customElements.define("x-form-field",VB())};var UB="label type name value placeholder hint error disabled readonly required autocomplete".split(" "),LB=new $APP.S(null,new $APP.Q(null,6,["url",null,"tel",null,"email",null,"text",null,"number",null,"password",null],null),null);
17
- $APP.Xe([$APP.vi,$APP.pi,$APP.ai,$APP.U,$APP.bi,$APP.Z,$APP.W,$APP.gi,$APP.Eg],[new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"placeholder"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"name"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"value"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"readonly"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"type"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"label"],null),new $APP.Q(null,2,
18
- [$APP.Z,$APP.X,$APP.Hg,"autocomplete"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"required"],null)]);$APP.ja("baredom.exports.x_form_field.init",WB);export const init=WB;
2
+ var rH=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},sH=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var g=c.value;return $APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.C.h(g,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},uH=function(a){var b=$APP.l(a,"__xFormFieldRefs");if($APP.n(b)){var c=$APP.l(b,"label"),d=$APP.l(b,"input"),
3
+ e=$APP.l(b,"hint");b=$APP.l(b,"error");var g=$APP.ff([$APP.Ch,$APP.Ai,$APP.Zh,$APP.ti,$APP.aj,$APP.Sg,$APP.Cj,$APP.Rj,$APP.Bh,$APP.Mh,$APP.fi],[a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("type"),a.getAttribute("placeholder")]);var h=$APP.O(g),k=$APP.I(h,$APP.fi),m=$APP.I(h,$APP.Ch),p=$APP.I(h,$APP.Ai);
4
+ g=$APP.I(h,$APP.Zh);var r=$APP.I(h,$APP.ti),v=$APP.I(h,$APP.aj),x=$APP.I(h,$APP.Sg),y=$APP.I(h,$APP.Cj),A=$APP.I(h,$APP.Rj),D=$APP.I(h,$APP.Bh),F=$APP.I(h,$APP.Mh);h=$APP.n(g)?g:"";var J=$APP.n(r)?r:"",G=$APP.n(m)?m:"",R=[$APP.yh,$APP.uk,$APP.Mj,$APP.Ih,$APP.mj,$APP.ri,$APP.Mi,$APP.Z,$APP.Nh,$APP.qj,$APP.W,$APP.Uh,$APP.sj,$APP.V];x=$APP.K(x);y=$APP.K(y);k=$APP.n(k)?k:"";r=typeof r==="string"&&$APP.P(r,"")&&r!=null;p=$APP.n(p)?p:"";A=$APP.n(A)?A:"";m=typeof m==="string"&&$APP.P(m,"")&&m!=null;F=typeof F===
5
+ "string"&&$APP.M(tH,F)?F:"text";g=$APP.ff(R,[x,y,k,r,p,A,m,F,typeof g==="string"&&$APP.P(g,"")&&g!=null,J,G,h,$APP.n(D)?D:"",$APP.K(v)]);v=$APP.Nh.g(g);D=$APP.Ih.g(g);h=$APP.Mi.g(g);d.type=$APP.Z.g(g);d.name=$APP.mj.g(g);d.placeholder=$APP.Mj.g(g);d.disabled=$APP.V.g(g);d.readOnly=$APP.uk.g(g);d.required=$APP.yh.g(g);d.autocomplete=$APP.sj.g(g);J=$APP.n($APP.yh.g(g))?"true":"false";d.setAttribute("aria-required",J);d.setAttribute("aria-invalid",$APP.n(v)?"true":"false");J=$APP.n($APP.n(D)?v:D)?"hint error":
6
+ $APP.n(D)?"hint":$APP.n(v)?"error":null;$APP.n(J)?d.setAttribute("aria-describedby",J):d.removeAttribute("aria-describedby");c.textContent=$APP.W.g(g);$APP.n(h)?c.classList.remove("label-hidden"):c.classList.add("label-hidden");e.textContent=$APP.qj.g(g);$APP.n(D)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.Uh.g(g);$APP.n(v)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");rH(a,"data-invalid",v);c=$APP.l(a,"__xFormFieldInternals");return $APP.n(c)?
7
+ sH(a,c,d):null}return null},vH=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},wH=function(a){return function(){var b=$APP.l(a,"__xFormFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xFormFieldInternals");$APP.n(e)&&(e.setFormValue(c),sH(a,e,b));return vH(a,"x-form-field-input",{name:d,value:c})}return null}},xH=function(a){return function(){var b=$APP.l(a,"__xFormFieldRefs");
8
+ if($APP.n(b)){b=$APP.l(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xFormFieldInternals");$APP.n(e)&&(e.setFormValue(c),sH(a,e,b));return vH(a,"x-form-field-change",{name:d,value:c})}return null}},yH=function(a){var b=$APP.l(a,"__xFormFieldRefs");if($APP.n(b)){var c=$APP.l(a,"__xFormFieldHandlers");if($APP.n(c)){b=$APP.l(b,"input");b.removeEventListener("input",$APP.l(c,"input"));b.removeEventListener("change",$APP.l(c,"change"));a.__xFormFieldHandlers=
9
+ null;return}}return null},zH=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}})},AH=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return rH(this,c,$APP.K(d))}})},BH=function(a){Object.defineProperty(a,"value",{configurable:!0,
10
+ enumerable:!0,get:function(){var b=$APP.l(this,"__xFormFieldRefs");if($APP.n(b))return $APP.l(b,"input").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.P(b)?""+$APP.T.g(b):"";this.setAttribute("value",b);var c=$APP.l(this,"__xFormFieldRefs");return $APP.n(c)?$APP.l(c,"input").value=b:null}})},DH=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return CH}});BH(b);zH(b,
11
+ "label","label");zH(b,"type","type");zH(b,"name","name");zH(b,"placeholder","placeholder");zH(b,"autocomplete","autocomplete");AH(b,"disabled","disabled");AH(b,"readOnly","readonly");AH(b,"required","required");b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xFormFieldRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("label"),h=document.createElement("div"),k=document.createElement("input"),m=document.createElement("span"),
12
+ p=document.createElement("span");d.textContent=":host{display:block;color-scheme:light dark;--x-form-field-label-color:#374151;--x-form-field-label-font-size:0.875rem;--x-form-field-input-bg:#ffffff;--x-form-field-input-color:#111827;--x-form-field-input-border:1px solid #d1d5db;--x-form-field-input-border-radius:6px;--x-form-field-input-padding:0.5rem 0.75rem;--x-form-field-focus-ring-color:#2563eb;--x-form-field-error-color:#dc2626;--x-form-field-hint-color:#6b7280;--x-form-field-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-form-field-label-color:#d1d5db;--x-form-field-input-bg:#1f2937;--x-form-field-input-color:#f9fafb;--x-form-field-input-border:1px solid #4b5563;--x-form-field-focus-ring-color:#3b82f6;--x-form-field-error-color:#f87171;--x-form-field-hint-color:#9ca3af;}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:var(--x-form-field-label-font-size);font-weight:500;color:var(--x-form-field-label-color);}.label-hidden{display:none;}[part\x3dinput-wrapper]{display:block;}[part\x3dinput]{display:block;width:100%;box-sizing:border-box;padding:var(--x-form-field-input-padding);background:var(--x-form-field-input-bg);color:var(--x-form-field-input-color);border:var(--x-form-field-input-border);border-radius:var(--x-form-field-input-border-radius);font-size:1rem;line-height:1.5;font-family:inherit;outline:none;transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dinput]:focus{border-color:var(--x-form-field-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-form-field-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dinput]{border-color:var(--x-form-field-error-color);}:host([data-invalid]) [part\x3dinput]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-form-field-error-color) 20%,transparent);}[part\x3dinput]:disabled{opacity:var(--x-form-field-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-form-field-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-form-field-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput]{transition:none;}}";
13
+ e.setAttribute("part","field");g.setAttribute("part","label");g.setAttribute("id","label");g.setAttribute("for","input");h.setAttribute("part","input-wrapper");k.setAttribute("part","input");k.setAttribute("id","input");k.setAttribute("aria-labelledby","label");m.setAttribute("part","hint");m.setAttribute("id","hint");m.setAttribute("aria-live","polite");p.setAttribute("part","error");p.setAttribute("id","error");p.setAttribute("role","alert");p.setAttribute("aria-live","assertive");h.appendChild(k);
14
+ e.appendChild(g);e.appendChild(h);e.appendChild(m);e.appendChild(p);c.appendChild(d);c.appendChild(e);this.__xFormFieldRefs={field:e,label:g,input:k,hint:m,error:p};$APP.n(this.attachInternals)&&(this.__xFormFieldInternals=this.attachInternals())}yH(this);c=$APP.l(this,"__xFormFieldRefs");$APP.n(c)&&(c=$APP.l(c,"input"),d=this.getAttribute("value"),$APP.n(d)&&(c.value=d));c=$APP.l(this,"__xFormFieldInternals");$APP.n(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.n(e)?e:""));c=$APP.l(this,
15
+ "__xFormFieldRefs");$APP.n(c)&&(c=$APP.l(c,"input"),d=wH(this),e=xH(this),c.addEventListener("input",d),c.addEventListener("change",e),this.__xFormFieldHandlers={input:d,change:e});return uH(this)};b.disconnectedCallback=function(){return yH(this)};b.attributeChangedCallback=function(c,d,e){$APP.C.h(c,"value")&&(c=$APP.l(this,"__xFormFieldRefs"),$APP.n(c)&&(c=$APP.l(c,"input"),$APP.P(c.value,e)&&(c.value=$APP.n(e)?e:"")));return uH(this)};b.formDisabledCallback=function(c){rH(this,"disabled",$APP.K(c));
16
+ return uH(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.l(this,"__xFormFieldRefs");$APP.n(c)&&($APP.l(c,"input").value="");c=$APP.l(this,"__xFormFieldInternals");$APP.n(c)&&c.setFormValue("");return uH(this)};return a},EH=function(){return $APP.n(customElements.get("x-form-field"))?null:customElements.define("x-form-field",DH())};var CH="label type name value placeholder hint error disabled readonly required autocomplete".split(" "),tH=new $APP.S(null,new $APP.Q(null,6,["url",null,"tel",null,"email",null,"text",null,"number",null,"password",null],null),null);
17
+ $APP.ff([$APP.Mj,$APP.Fj,$APP.mj,$APP.ri,$APP.nj,$APP.Z,$APP.W,$APP.sj,$APP.ch],[new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"placeholder"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.U,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"name"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"value"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.U,"readonly"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"type"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"label"],null),new $APP.Q(null,2,[$APP.Z,
18
+ $APP.X,$APP.U,"autocomplete"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.U,"required"],null)]);$APP.ja("baredom.exports.x_form_field.init",EH);export const init=EH;
package/dist/x-form.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var ry=function(a,b){return a.setAttribute("autocomplete",b)},wy=function(a){a=new $APP.Q(null,3,[sy,a.getAttribute("loading"),ty,$APP.n(a.hasAttribute("novalidate"))?"":null,$APP.Vg,a.getAttribute("autocomplete")],null);var b=$APP.N(a),c=$APP.I(b,sy);a=$APP.I(b,ty);b=$APP.I(b,$APP.Vg);c=c!=null&&$APP.O(c,"false");b=$APP.yc(uy,b)?b:"on";return new $APP.Q(null,3,[$APP.gh,c,vy,a!=null,$APP.gi,b],null)},xy=function(a){var b=$APP.l(a,"__xFormRefs");if($APP.n(b)){b=$APP.l(b,"form");a=wy(a);ry(b,$APP.gi.g(a));
3
- if($APP.n($APP.gh.g(a)))return b.setAttribute("aria-busy","true"),b.setAttribute("data-loading","");b.removeAttribute("aria-busy");return b.removeAttribute("data-loading")}return null},yy=function(a){a=a.querySelectorAll("[name]:not([disabled])");for(var b={},c=a.length,d=0;;)if(d<c){var e=a[d],g=e.name;if($APP.n(function(){var m=g;return $APP.n(m)?$APP.O(g,""):m}())){var h=e.tagName.toLowerCase(),k=e.getAttribute("type");$APP.C.h(k,"checkbox")||$APP.C.h(k,"radio")||$APP.C.h(h,"x-checkbox")?$APP.n(e.checked)&&
4
- (b[g]=function(){var m=e.value;return $APP.n(m)?m:"on"}()):b[g]=function(){var m=e.value;return $APP.n(m)?m:""}()}d+=1}else break;return b},zy=function(a,b,c,d){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:d}))},Ay=function(a){var b=$APP.l(a,"__xFormRefs");if($APP.n(b)){b=$APP.l(b,"form");var c=function(g){g.preventDefault();g=wy(a);if($APP.n($APP.gh.g(g)))g=null;else{g=vy.g(g);if(!$APP.n(g)){g=a.querySelectorAll("[name]:not([disabled])");for(var h={ok:!0},
5
- k=g.length,m=0;;)if(m<k){var q=g[m];$APP.n(q.reportValidity)&&($APP.n(q.reportValidity())||(h.ok=!1));m+=1}else break;g=h.ok}$APP.n(g)?(g=yy(a),g=zy(a,"x-form-submit",{values:g},!0)):g=null}return g},d=function(){for(var g=a.querySelectorAll("[name]"),h=g.length,k=0;;)if(k<h){var m=g[k];$APP.n(m.formResetCallback)&&m.formResetCallback();k+=1}else break;return zy(a,"x-form-reset",{},!1)},e=function(g){a:{g=g.target.closest("button,input[type\x3dsubmit],input[type\x3dreset]");if($APP.n(g)){g=g.type;
6
- var h=$APP.l(a,"__xFormRefs");if($APP.n(h)){h=$APP.l(h,"form");g=$APP.C.h(g,"submit")||$APP.C.h(g,"")?h.requestSubmit():$APP.C.h(g,"reset")?h.reset():null;break a}}g=null}return g};b.addEventListener("submit",c);b.addEventListener("reset",d);a.addEventListener("click",e);$APP.la(a,"__xFormHandlers",{submit:c,reset:d,click:e})}},By=function(a){var b=$APP.l(a,"__xFormRefs");if($APP.n(b)){var c=$APP.l(a,"__xFormHandlers");if($APP.n(c)){b=$APP.l(b,"form");b.removeEventListener("submit",$APP.l(c,"submit"));
7
- b.removeEventListener("reset",$APP.l(c,"reset"));a.removeEventListener("click",$APP.l(c,"click"));a.__xFormHandlers=null;return}}return null},Cy=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.K(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},Dy=function(a){Object.defineProperty(a,"autocomplete",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("autocomplete");return $APP.n(b)?
8
- b:""},set:function(b){return b!=null&&$APP.O(b)?ry(this,""+$APP.T.g(b)):this.removeAttribute("autocomplete")}})},Fy=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return Ey}});Cy(b,"loading","loading");Cy(b,"novalidate","novalidate");Dy(b);b.connectedCallback=function(){if(!$APP.n(this.shadowRoot)){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("form"),g=document.createElement("slot");
9
- d.textContent=":host{display:block;}[part\x3droot]{display:flex;flex-direction:column;gap:var(--x-form-gap,1rem);width:var(--x-form-width,100%);}:host([loading]){pointer-events:none;opacity:0.6;}";e.setAttribute("part","root");e.setAttribute("novalidate","");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xFormRefs={form:e}}By(this);Ay(this);return xy(this)};b.disconnectedCallback=function(){return By(this)};b.attributeChangedCallback=function(){return xy(this)};b.submit=function(){var c=
2
+ var nD=function(a,b){return a.setAttribute("autocomplete",b)},sD=function(a){a=new $APP.Q(null,3,[oD,a.getAttribute("loading"),pD,$APP.n(a.hasAttribute("novalidate"))?"":null,$APP.Bh,a.getAttribute("autocomplete")],null);var b=$APP.O(a),c=$APP.I(b,oD);a=$APP.I(b,pD);b=$APP.I(b,$APP.Bh);c=c!=null&&$APP.P(c,"false");b=$APP.M(qD,b)?b:"on";return new $APP.Q(null,3,[$APP.Sh,c,rD,a!=null,$APP.sj,b],null)},tD=function(a){var b=$APP.l(a,"__xFormRefs");if($APP.n(b)){b=$APP.l(b,"form");a=sD(a);nD(b,$APP.sj.g(a));
3
+ if($APP.n($APP.Sh.g(a)))return b.setAttribute("aria-busy","true"),b.setAttribute("data-loading","");b.removeAttribute("aria-busy");return b.removeAttribute("data-loading")}return null},uD=function(a){a=a.querySelectorAll("[name]:not([disabled])");for(var b={},c=a.length,d=0;;)if(d<c){var e=a[d],g=e.name;if($APP.n(function(){var m=g;return $APP.n(m)?$APP.P(g,""):m}())){var h=e.tagName.toLowerCase(),k=e.getAttribute("type");$APP.C.h(k,"checkbox")||$APP.C.h(k,"radio")||$APP.C.h(h,"x-checkbox")?$APP.n(e.checked)&&
4
+ (b[g]=function(){var m=e.value;return $APP.n(m)?m:"on"}()):b[g]=function(){var m=e.value;return $APP.n(m)?m:""}()}d+=1}else break;return b},vD=function(a,b,c,d){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:d}))},wD=function(a){var b=$APP.l(a,"__xFormRefs");if($APP.n(b)){b=$APP.l(b,"form");var c=function(g){g.preventDefault();g=sD(a);if($APP.n($APP.Sh.g(g)))g=null;else{g=rD.g(g);if(!$APP.n(g)){g=a.querySelectorAll("[name]:not([disabled])");for(var h={ok:!0},
5
+ k=g.length,m=0;;)if(m<k){var p=g[m];$APP.n(p.reportValidity)&&($APP.n(p.reportValidity())||(h.ok=!1));m+=1}else break;g=h.ok}$APP.n(g)?(g=uD(a),g=vD(a,"x-form-submit",{values:g},!0)):g=null}return g},d=function(){for(var g=a.querySelectorAll("[name]"),h=g.length,k=0;;)if(k<h){var m=g[k];$APP.n(m.formResetCallback)&&m.formResetCallback();k+=1}else break;return vD(a,"x-form-reset",{},!1)},e=function(g){a:{g=g.target.closest("button,input[type\x3dsubmit],input[type\x3dreset]");if($APP.n(g)){g=g.type;
6
+ var h=$APP.l(a,"__xFormRefs");if($APP.n(h)){h=$APP.l(h,"form");g=$APP.C.h(g,"submit")||$APP.C.h(g,"")?h.requestSubmit():$APP.C.h(g,"reset")?h.reset():null;break a}}g=null}return g};b.addEventListener("submit",c);b.addEventListener("reset",d);a.addEventListener("click",e);$APP.la(a,"__xFormHandlers",{submit:c,reset:d,click:e})}},xD=function(a){var b=$APP.l(a,"__xFormRefs");if($APP.n(b)){var c=$APP.l(a,"__xFormHandlers");if($APP.n(c)){b=$APP.l(b,"form");b.removeEventListener("submit",$APP.l(c,"submit"));
7
+ b.removeEventListener("reset",$APP.l(c,"reset"));a.removeEventListener("click",$APP.l(c,"click"));a.__xFormHandlers=null;return}}return null},yD=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.K(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},zD=function(a){Object.defineProperty(a,"autocomplete",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("autocomplete");return $APP.n(b)?
8
+ b:""},set:function(b){return b!=null&&$APP.P(b)?nD(this,""+$APP.T.g(b)):this.removeAttribute("autocomplete")}})},BD=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return AD}});yD(b,"loading","loading");yD(b,"novalidate","novalidate");zD(b);b.connectedCallback=function(){if(!$APP.n(this.shadowRoot)){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("form"),g=document.createElement("slot");
9
+ d.textContent=":host{display:block;}[part\x3droot]{display:flex;flex-direction:column;gap:var(--x-form-gap,1rem);width:var(--x-form-width,100%);}:host([loading]){pointer-events:none;opacity:0.6;}";e.setAttribute("part","root");e.setAttribute("novalidate","");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xFormRefs={form:e}}xD(this);wD(this);return tD(this)};b.disconnectedCallback=function(){return xD(this)};b.attributeChangedCallback=function(){return tD(this)};b.submit=function(){var c=
10
10
  $APP.l(this,"__xFormRefs");return $APP.n(c)?$APP.l(c,"form").requestSubmit():null};b.reset=function(){var c=$APP.l(this,"__xFormRefs");return $APP.n(c)?$APP.l(c,"form").reset():null};b.setFieldError=function(c,d){c=this.querySelector('[name\x3d"'+$APP.T.g(c)+'"]');return $APP.n(c)?d==null||$APP.C.h(d,"")||$APP.C.h(d,void 0)?c.removeAttribute("error"):c.setAttribute("error",d):null};b.clearErrors=function(){for(var c=this.querySelectorAll("[error]"),d=c.length,e=0;;)if(e<d)c[e].removeAttribute("error"),
11
- e+=1;else return null};return a},Gy=function(){return $APP.n(customElements.get("x-form"))?null:customElements.define("x-form",Fy())},sy=new $APP.M(null,"loading-raw","loading-raw",-1707143099),vy=new $APP.M(null,"novalidate?","novalidate?",491529885),ty=new $APP.M(null,"novalidate-raw","novalidate-raw",1783236714);var Ey=["loading","novalidate","autocomplete"],uy=new $APP.S(null,new $APP.Q(null,2,["off",null,"on",null],null),null);$APP.ja("baredom.exports.x_form.init",Gy);export const init=Gy;
11
+ e+=1;else return null};return a},CD=function(){return $APP.n(customElements.get("x-form"))?null:customElements.define("x-form",BD())},oD=new $APP.N(null,"loading-raw","loading-raw",-1707143099),rD=new $APP.N(null,"novalidate?","novalidate?",491529885),pD=new $APP.N(null,"novalidate-raw","novalidate-raw",1783236714);var AD=["loading","novalidate","autocomplete"],qD=new $APP.S(null,new $APP.Q(null,2,["off",null,"on",null],null),null);$APP.ja("baredom.exports.x_form.init",CD);export const init=CD;
@@ -0,0 +1,33 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var iJ=function(a){if(a!=null&&a.qa!=null)a=a.qa(a);else{var b=iJ[$APP.da(a==null?null:a)];if(b!=null)a=b.g?b.g(a):b.call(null,a);else if(b=iJ._,b!=null)a=b.g?b.g(a):b.call(null,a);else throw $APP.ra("IReversible.-rseq",a);}return a},jJ=function(){},kJ=function(a){return function(b){return function(){function c(h,k){return $APP.n(a.g?a.g(k):a.call(null,k))?b.h?b.h(h,k):b.call(null,h,k):h}function d(h){return b.g?b.g(h):b.call(null,h)}function e(){return b.G?b.G():b.call(null)}var g=null;g=function(h,
3
+ k){switch(arguments.length){case 0:return e.call(this);case 1:return d.call(this,h);case 2:return c.call(this,h,k)}throw Error("Invalid arity: "+arguments.length);};g.G=e;g.g=d;g.h=c;return g}()}},lJ=function(a){return(a!=null?a.o&134217728||$APP.t===a.Fc||(a.o?0:$APP.qa(jJ,a)):$APP.qa(jJ,a))?(a=iJ(a))?a:$APP.Jb:$APP.Hc($APP.jf,$APP.Jb,a)},pJ=function(a,b,c){var d=$APP.B(a);return $APP.De.m($APP.Md,$APP.Id.g(function(e){var g=e*2.39996323,h=50+30*Math.cos(g);g=50+30*Math.sin(g);var k=10*Math.sin(e*
4
+ 2.39996323),m=10*Math.cos(e*Math.PI),p=Math.sin(e*1.618);p=.7+p*p*.6;var r=.8+.4*Math.sin(e*1.3),v=-(e/$APP.zg.h(b,1));return new $APP.Q(null,7,[$APP.Ej,$APP.bc(a,$APP.Qc(e,d)),$APP.Wi,h+k,$APP.Ui,g+m,$APP.Pg,c*p,mJ,$APP.Qc(e,4),nJ,r,oJ,v],null)}),$APP.Of(0,b))},qJ=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("slot");c.textContent=":host{display:block;position:relative;width:100%;height:100%;overflow:hidden;box-sizing:border-box;color-scheme:light dark;--x-gaussian-blur-bg:transparent;--x-gaussian-blur-z-index:0;--x-gaussian-blur-border-radius:0;}:host{border-radius:var(--x-gaussian-blur-border-radius);}[part\x3dbackdrop]{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:var(--x-gaussian-blur-z-index);background:var(--x-gaussian-blur-bg);}[part\x3dcontent]{position:relative;z-index:1;width:100%;height:100%;}.blob{position:absolute;border-radius:50%;will-change:transform;pointer-events:none;}@keyframes x-gb-float-0{0%,100%{transform:translate(-50%,-50%) translate(0,0);}25%{transform:translate(-50%,-50%) translate(12%,-18%);}50%{transform:translate(-50%,-50%) translate(-10%,15%);}75%{transform:translate(-50%,-50%) translate(15%,6%);}}@keyframes x-gb-float-1{0%,100%{transform:translate(-50%,-50%) translate(0,0);}25%{transform:translate(-50%,-50%) translate(-15%,10%);}50%{transform:translate(-50%,-50%) translate(18%,-12%);}75%{transform:translate(-50%,-50%) translate(-8%,-16%);}}@keyframes x-gb-float-2{0%,100%{transform:translate(-50%,-50%) translate(0,0);}25%{transform:translate(-50%,-50%) translate(10%,16%);}50%{transform:translate(-50%,-50%) translate(-18%,-8%);}75%{transform:translate(-50%,-50%) translate(14%,-12%);}}@keyframes x-gb-float-3{0%,100%{transform:translate(-50%,-50%) translate(0,0);}25%{transform:translate(-50%,-50%) translate(-12%,-10%);}50%{transform:translate(-50%,-50%) translate(16%,18%);}75%{transform:translate(-50%,-50%) translate(-10%,14%);}}@keyframes x-gb-pulse-0{0%,100%{transform:translate(-50%,-50%) scale(1) translate(0,0);}33%{transform:translate(-50%,-50%) scale(1.2) translate(10%,-14%);}66%{transform:translate(-50%,-50%) scale(0.85) translate(-10%,10%);}}@keyframes x-gb-pulse-1{0%,100%{transform:translate(-50%,-50%) scale(1) translate(0,0);}33%{transform:translate(-50%,-50%) scale(0.85) translate(-14%,10%);}66%{transform:translate(-50%,-50%) scale(1.2) translate(12%,-8%);}}@keyframes x-gb-pulse-2{0%,100%{transform:translate(-50%,-50%) scale(1) translate(0,0);}33%{transform:translate(-50%,-50%) scale(1.18) translate(8%,16%);}66%{transform:translate(-50%,-50%) scale(0.82) translate(-16%,-10%);}}@keyframes x-gb-pulse-3{0%,100%{transform:translate(-50%,-50%) scale(1) translate(0,0);}33%{transform:translate(-50%,-50%) scale(0.88) translate(-10%,-14%);}66%{transform:translate(-50%,-50%) scale(1.15) translate(10%,16%);}}:host([data-paused]) .blob{animation-play-state:paused;}@media (prefers-reduced-motion:reduce){.blob{animation:none!important;}}";
5
+ d.setAttribute("part","backdrop");d.setAttribute("aria-hidden","true");e.setAttribute("part","content");e.appendChild(g);b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xGaussianBlurBackdrop=d;a.__xGaussianBlurSlot=g;a.__xGaussianBlurBlobs=[];a.__xGaussianBlurInit=!0},rJ=function(a,b){if($APP.n($APP.n(b)?b.assignedNodes().length>0:null))return a.removeAttribute("role"),a.removeAttribute("aria-hidden");a.setAttribute("role","presentation");return a.setAttribute("aria-hidden","true")},EJ=function(a){var b=
6
+ $APP.ff([sJ,$APP.ej,$APP.uj,tJ,$APP.Pg,uJ,$APP.Eh,$APP.Xg,vJ],[a.getAttribute("paused"),a.getAttribute("animation"),a.getAttribute("speed"),a.getAttribute("colors"),a.getAttribute("size"),a.getAttribute("blur"),a.getAttribute("opacity"),a.getAttribute("count"),a.getAttribute("blend")]);var c=$APP.O(b);b=$APP.I(c,vJ);var d=$APP.I(c,sJ),e=$APP.I(c,$APP.ej),g=$APP.I(c,$APP.uj);var h=$APP.I(c,tJ);var k=$APP.I(c,$APP.Pg),m=$APP.I(c,uJ),p=$APP.I(c,$APP.Eh);c=$APP.I(c,$APP.Xg);h=wJ(h);typeof c==="string"&&
7
+ $APP.P("",c.trim())?(c=parseInt(c.trim(),10),c=$APP.n(isFinite(c))?$APP.Ag.h(12,$APP.zg.h(1,c)):5):c=5;if(typeof k==="string"&&$APP.P("",k.trim())){k=k.trim();var r=$APP.I(xJ,k);$APP.n(r)?k=r:(k=parseFloat(k),r=isFinite(k),k=$APP.n($APP.n(r)?k>0:r)?$APP.Ag.h(100,$APP.zg.h(10,k)):50)}else k=50;typeof g==="string"&&$APP.P("",g.trim())?(g=g.trim(),r=$APP.I(yJ,g),$APP.n(r)?g=r:(g=parseFloat(g),r=isFinite(g),g=$APP.n($APP.n(r)?g>0:r)?g:10)):g=10;e=typeof e==="string"&&$APP.M(zJ,e)?e:"float";d=d!=null;
8
+ typeof m==="string"&&$APP.P("",m.trim())?(m=parseFloat(m.trim()),r=isFinite(m),m=$APP.n($APP.n(r)?m>0:r)?m:60):m=60;r=pJ(h,c,k);typeof p==="string"&&$APP.P("",p.trim())?(p=parseFloat(p.trim()),p=$APP.n(isFinite(p))?$APP.Ag.h(1,$APP.zg.h(0,p)):.7):p=.7;b=typeof b==="string"&&$APP.M(AJ,b)?b:"normal";h=$APP.ff([sJ,$APP.ej,tJ,BJ,uJ,CJ,$APP.Eh,$APP.Xg,vJ,DJ],[d,e,h,g,m,r,p,c,b,k]);b=$APP.O(h);p=$APP.I(b,uJ);c=$APP.I(b,$APP.Eh);m=$APP.I(b,vJ);k=$APP.I(b,$APP.ej);d=$APP.I(b,sJ);e=$APP.l(a,"__xGaussianBlurBackdrop");
9
+ b=$APP.l(a,"__xGaussianBlurSlot");e.style.setProperty("filter","blur("+$APP.T.g(p)+"px)");e.style.setProperty("opacity",""+$APP.T.g(c));e.style.setProperty("mix-blend-mode",m);$APP.n(d)?a.setAttribute("data-paused",""):a.removeAttribute("data-paused");a.setAttribute("data-animation",k);a:{m=$APP.O(h);h=$APP.I(m,CJ);p=$APP.I(m,$APP.ej);c=$APP.I(m,BJ);$APP.I(m,uJ);d=$APP.l(a,"__xGaussianBlurBackdrop");m=$APP.l(a,"__xGaussianBlurBlobs");e=m.length;k=$APP.B(h);for(g=e;;)if(g<k)r=document.createElement("div"),
10
+ r.className="blob",d.appendChild(r),m.push(r),g+=1;else break;for(;;)if(e>k)g=m.pop(),d.removeChild(g),--e;else break;for(d=0;;)if(d<k){var v=m[d];r=$APP.bc(h,d);g=p;e=c;var x=$APP.O(r),y=$APP.I(x,$APP.Ej),A=$APP.I(x,$APP.Wi),D=$APP.I(x,$APP.Ui),F=$APP.I(x,$APP.Pg),J=$APP.I(x,mJ);r=$APP.I(x,nJ);x=$APP.I(x,oJ);v=v.style;F=""+$APP.T.g(F)+"%";v.setProperty("left",""+$APP.T.g(A)+"%");v.setProperty("top",""+$APP.T.g(D)+"%");v.setProperty("width",F);v.setProperty("height",F);v.setProperty("background",
11
+ "radial-gradient(circle,"+$APP.T.g(y)+" 0%,transparent 70%)");v.setProperty("transform","translate(-50%,-50%)");b:switch(y=J,g){case "float":g="x-gb-float-"+$APP.T.g(y);break b;case "pulse":g="x-gb-pulse-"+$APP.T.g(y);break b;default:g=null}$APP.n(g)?(r*=e,e*=x,v.setProperty("animation",""+$APP.T.g(g)+" "+$APP.T.g(r)+"s ease-in-out "+$APP.T.g(e)+"s infinite")):v.removeProperty("animation");d+=1}else break a}rJ(a,b)},FJ=function(a){function b(){return rJ(a,c)}$APP.n($APP.l(a,"__xGaussianBlurInit"))||
12
+ qJ(a);var c=$APP.l(a,"__xGaussianBlurSlot");a.__xGaussianBlurSlotHandler=b;c.addEventListener("slotchange",b);EJ(a)},GJ=function(a){for(var b=$APP.u(new $APP.Zd(null,8,5,$APP.$d,[new $APP.Zd(null,3,5,$APP.$d,["colors","colors","#6366f1, #ec4899, #14b8a6, #f59e0b"],null),new $APP.Zd(null,3,5,$APP.$d,["blur","blur","60"],null),new $APP.Zd(null,3,5,$APP.$d,["speed","speed","medium"],null),new $APP.Zd(null,3,5,$APP.$d,["count","count","5"],null),new $APP.Zd(null,3,5,$APP.$d,["size","size","medium"],null),
13
+ new $APP.Zd(null,3,5,$APP.$d,["opacity","opacity","0.7"],null),new $APP.Zd(null,3,5,$APP.$d,["animation","animation","float"],null),new $APP.Zd(null,3,5,$APP.$d,["blend","blend","normal"],null)],null)),c=null,d=0,e=0;;)if(e<d){var g=c.H(null,e),h=$APP.H(g,0,null),k=$APP.H(g,1,null),m=$APP.H(g,2,null);Object.defineProperty(a,h,{get:function(v,x,y,A,D,F,J,G){return function(){var R=this.getAttribute(J);return $APP.n(R)?R:G}}(b,c,d,e,g,h,k,m),set:function(v,x,y,A,D,F,J){return function(G){return typeof G===
14
+ "string"&&$APP.P("",G)?this.setAttribute(J,G):this.removeAttribute(J)}}(b,c,d,e,g,h,k,m),enumerable:!0,configurable:!0});e+=1}else if(h=$APP.u(b)){g=h;if($APP.yc(g))b=$APP.nb(g),e=$APP.ob(g),c=b,d=$APP.B(b),b=e;else{k=$APP.w(g);m=$APP.H(k,0,null);var p=$APP.H(k,1,null),r=$APP.H(k,2,null);Object.defineProperty(a,m,{get:function(v,x,y,A,D,F,J,G){return function(){var R=this.getAttribute(J);return $APP.n(R)?R:G}}(b,c,d,e,k,m,p,r,g,h),set:function(v,x,y,A,D,F,J){return function(G){return typeof G==="string"&&
15
+ $APP.P("",G)?this.setAttribute(J,G):this.removeAttribute(J)}}(b,c,d,e,k,m,p,r,g,h),enumerable:!0,configurable:!0});b=$APP.z(g);c=null;d=0}e=0}else break;Object.defineProperty(a,"paused",{get:function(){return this.hasAttribute("paused")},set:function(v){return $APP.n(v)?this.setAttribute("paused",""):this.removeAttribute("paused")},enumerable:!0,configurable:!0})},IJ=function(){var a=class extends HTMLElement{};a.observedAttributes=HJ;a.prototype.connectedCallback=function(){FJ(this);return null};
16
+ a.prototype.disconnectedCallback=function(){var b=$APP.l(this,"__xGaussianBlurSlot"),c=$APP.l(this,"__xGaussianBlurSlotHandler");$APP.n($APP.n(b)?c:b)&&b.removeEventListener("slotchange",c);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.P(c,d)&&$APP.n($APP.l(this,"__xGaussianBlurInit"))&&EJ(this);return null};GJ(a.prototype);return a},JJ=function(){$APP.n(customElements.get("x-gaussian-blur"))||customElements.define("x-gaussian-blur",IJ());return null};
17
+ $APP.Gb.prototype.qa=$APP.ca(35,function(){var a=this.N(null);return a>0?new $APP.hc(this,a-1,null):null});$APP.Zd.prototype.qa=$APP.ca(34,function(){return this.j>0?new $APP.hc(this,this.j-1,null):null});$APP.we.prototype.qa=$APP.ca(33,function(){return new $APP.Gb([this.l,this.key],0,null)});$APP.uf.prototype.qa=$APP.ca(32,function(){return new $APP.Gb([this.l,this.key],0,null)});$APP.vf.prototype.qa=$APP.ca(31,function(){return new $APP.Gb([this.l,this.key],0,null)});
18
+ $APP.wf.prototype.qa=$APP.ca(30,function(){return this.j>0?$APP.tf(this.La,!1,this.j):null});$APP.Gf.prototype.qa=$APP.ca(29,function(){return $APP.B(this.xa)>0?$APP.Id.h($APP.ce,iJ(this.xa)):null});
19
+ var KJ=function KJ(a){switch(arguments.length){case 0:return KJ.G();case 1:return KJ.g(arguments[0]);case 2:return KJ.h(arguments[0],arguments[1]);case 3:return KJ.m(arguments[0],arguments[1],arguments[2]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return KJ.B(arguments[0],arguments[1],arguments[2],3<c.length?new $APP.Gb(c.slice(3),0,null):null)}};KJ.G=function(){return $APP.Nc};KJ.g=function(a){return a};
20
+ KJ.h=function(a,b){return function(){function c(m,p,r){m=b.m?b.m(m,p,r):b.call(null,m,p,r);return a.g?a.g(m):a.call(null,m)}function d(m,p){m=b.h?b.h(m,p):b.call(null,m,p);return a.g?a.g(m):a.call(null,m)}function e(m){m=b.g?b.g(m):b.call(null,m);return a.g?a.g(m):a.call(null,m)}function g(){var m=b.G?b.G():b.call(null);return a.g?a.g(m):a.call(null,m)}var h=null,k=function(){function m(r,v,x,y){var A=null;if(arguments.length>3){A=0;for(var D=Array(arguments.length-3);A<D.length;)D[A]=arguments[A+
21
+ 3],++A;A=new $APP.Gb(D,0,null)}return p.call(this,r,v,x,A)}function p(r,v,x,y){r=$APP.vd(b,r,v,x,y);return a.g?a.g(r):a.call(null,r)}m.P=3;m.K=function(r){var v=$APP.w(r);r=$APP.z(r);var x=$APP.w(r);r=$APP.z(r);var y=$APP.w(r);r=$APP.Lb(r);return p(v,x,y,r)};m.B=p;return m}();h=function(m,p,r,v){switch(arguments.length){case 0:return g.call(this);case 1:return e.call(this,m);case 2:return d.call(this,m,p);case 3:return c.call(this,m,p,r);default:var x=null;if(arguments.length>3){x=0;for(var y=Array(arguments.length-
22
+ 3);x<y.length;)y[x]=arguments[x+3],++x;x=new $APP.Gb(y,0,null)}return k.B(m,p,r,x)}throw Error("Invalid arity: "+arguments.length);};h.P=3;h.K=k.K;h.G=g;h.g=e;h.h=d;h.m=c;h.B=k.B;return h}()};
23
+ KJ.m=function(a,b,c){return function(){function d(p,r,v){p=c.m?c.m(p,r,v):c.call(null,p,r,v);p=b.g?b.g(p):b.call(null,p);return a.g?a.g(p):a.call(null,p)}function e(p,r){p=c.h?c.h(p,r):c.call(null,p,r);p=b.g?b.g(p):b.call(null,p);return a.g?a.g(p):a.call(null,p)}function g(p){p=c.g?c.g(p):c.call(null,p);p=b.g?b.g(p):b.call(null,p);return a.g?a.g(p):a.call(null,p)}function h(){var p=c.G?c.G():c.call(null);p=b.g?b.g(p):b.call(null,p);return a.g?a.g(p):a.call(null,p)}var k=null,m=function(){function p(v,
24
+ x,y,A){var D=null;if(arguments.length>3){D=0;for(var F=Array(arguments.length-3);D<F.length;)F[D]=arguments[D+3],++D;D=new $APP.Gb(F,0,null)}return r.call(this,v,x,y,D)}function r(v,x,y,A){v=$APP.vd(c,v,x,y,A);v=b.g?b.g(v):b.call(null,v);return a.g?a.g(v):a.call(null,v)}p.P=3;p.K=function(v){var x=$APP.w(v);v=$APP.z(v);var y=$APP.w(v);v=$APP.z(v);var A=$APP.w(v);v=$APP.Lb(v);return r(x,y,A,v)};p.B=r;return p}();k=function(p,r,v,x){switch(arguments.length){case 0:return h.call(this);case 1:return g.call(this,
25
+ p);case 2:return e.call(this,p,r);case 3:return d.call(this,p,r,v);default:var y=null;if(arguments.length>3){y=0;for(var A=Array(arguments.length-3);y<A.length;)A[y]=arguments[y+3],++y;y=new $APP.Gb(A,0,null)}return m.B(p,r,v,y)}throw Error("Invalid arity: "+arguments.length);};k.P=3;k.K=m.K;k.G=h;k.g=g;k.h=e;k.m=d;k.B=m.B;return k}()};
26
+ KJ.B=function(a,b,c,d){var e=lJ($APP.Xc(a,$APP.Xc(b,$APP.Xc(c,d))));return function(){function g(k){var m=null;if(arguments.length>0){m=0;for(var p=Array(arguments.length-0);m<p.length;)p[m]=arguments[m+0],++m;m=new $APP.Gb(p,0,null)}return h.call(this,m)}function h(k){k=$APP.sd($APP.w(e),k);for(var m=$APP.z(e);;)if(m){var p=$APP.w(m);k=p.g?p.g(k):p.call(null,k);m=$APP.z(m)}else return k}g.P=0;g.K=function(k){k=$APP.u(k);return h(k)};g.B=h;return g}()};
27
+ KJ.K=function(a){var b=$APP.w(a),c=$APP.z(a);a=$APP.w(c);var d=$APP.z(c);c=$APP.w(d);d=$APP.z(d);return this.B(b,a,c,d)};KJ.P=3;
28
+ var uJ=new $APP.N(null,"blur","blur",-453500461),sJ=new $APP.N(null,"paused","paused",-1710376127),DJ=new $APP.N(null,"size-pct","size-pct",-741809955),BJ=new $APP.N(null,"speed-s","speed-s",-1018350546),mJ=new $APP.N(null,"anim-index","anim-index",-1563021855),tJ=new $APP.N(null,"colors","colors",1157174732),oJ=new $APP.N(null,"delay-factor","delay-factor",-751650178),CJ=new $APP.N(null,"blobs","blobs",-1606355916),nJ=new $APP.N(null,"duration-factor","duration-factor",-409465019),vJ=new $APP.N(null,
29
+ "blend","blend",249565561);var HJ="colors blur speed count size opacity animation blend paused".split(" ");
30
+ $APP.ff([sJ,$APP.ej,$APP.uj,tJ,$APP.Pg,uJ,$APP.Eh,$APP.Xg,vJ],[new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.U,"paused"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"animation"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"speed"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"colors"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"size"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"blur"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"opacity"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"count"],
31
+ null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"blend"],null)]);
32
+ var zJ=new $APP.S(null,new $APP.Q(null,3,["float",null,"none",null,"pulse",null],null),null),AJ=new $APP.S(null,new $APP.Q(null,5,["soft-light",null,"multiply",null,"screen",null,"normal",null,"overlay",null],null),null),yJ=new $APP.Q(null,3,["slow",18,"medium",10,"fast",5],null),xJ=new $APP.Q(null,3,["small",30,"medium",50,"large",70],null),wJ=function wJ(a){return typeof a==="string"&&$APP.P("",a.trim())?(a=a.trim().split(/,/),$APP.De.m($APP.Md,KJ.h($APP.Id.g(function(c){return c.trim()}),kJ(function(c){return $APP.P("",
33
+ c)})),a)):wJ.g?wJ.g("#6366f1, #ec4899, #14b8a6, #f59e0b"):wJ.call(null,"#6366f1, #ec4899, #14b8a6, #f59e0b")};$APP.ja("baredom.exports.x_gaussian_blur.init",JJ);export const init=JJ;
package/dist/x-grid.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Hw=function(a){switch(a){case "none":return"0";case "xs":return"4px";case "sm":return"8px";case "md":return"16px";case "lg":return"24px";case "xl":return"32px";default:return"16px"}},Iw=function(a,b,c){return $APP.yc(b,a)?a:c},Jw=function(a){switch(a){case "row-dense":return"row dense";case "column-dense":return"column dense";default:return a}},Kw=function(a){return $APP.n($APP.n(a)?$APP.O("",a):a)?a:null},Lw=function(a){return $APP.n($APP.n(a)?$APP.O("",a):a)?a:"16rem"},Zw=function(a){var b=
3
- $APP.N(a);a=$APP.I(b,Mw);var c=$APP.I(b,Nw),d=$APP.I(b,Ow),e=$APP.I(b,Pw),g=$APP.I(b,Qw),h=$APP.I(b,$APP.Kg),k=$APP.I(b,Rw),m=$APP.I(b,Sw);b=$APP.I(b,Tw);h=Kw(h);k=Lw(k);var q=Iw(b,Uw,"md");b=function(){var v=$APP.yc(Uw,d)?d:null;return $APP.n(v)?v:q}();var r=function(){var v=$APP.yc(Uw,m)?m:null;return $APP.n(v)?v:q}();g=Iw(g,Vw,"stretch");c=Iw(c,Vw,"stretch");e=Jw(Iw(e,Ww,"row"));h=$APP.n(h)?h:"repeat(auto-fit,minmax("+$APP.T.g(k)+",1fr))";return $APP.Xe([Pw,Qw,$APP.Kg,Sw,Tw,Xw,Mw,Yw,Ow,Nw],[e,
4
- g,h,Hw(r),q,b,$APP.K(a),r,Hw(b),c])},$w=function(a){var b=$APP.Xe([Pw,Qw,$APP.Kg,Rw,Sw,Tw,Mw,Ow,Nw],[a.getAttribute("auto-flow"),a.getAttribute("align-items"),a.getAttribute("columns"),a.getAttribute("min-column-size"),a.getAttribute("column-gap"),a.getAttribute("gap"),a.hasAttribute("inline"),a.getAttribute("row-gap"),a.getAttribute("justify-items")]);b=Zw(b);a=$APP.l(a,"__x_grid_base");if($APP.n(a)){var c=a.style;a.setAttribute("data-gap",Tw.g(b));c.setProperty("--x-grid-columns",$APP.Kg.g(b));
5
- c.setProperty("--x-grid-row-gap",Ow.g(b));c.setProperty("--x-grid-column-gap",Sw.g(b));c.setProperty("--x-grid-align-items",Qw.g(b));c.setProperty("--x-grid-justify-items",Nw.g(b));b=c.setProperty("--x-grid-auto-flow",Pw.g(b))}else b=null;return b},ax=function(a){if($APP.l(a,"__x_grid_initialized")!==!0){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent="\n :host {\n display:block;\n }\n\n :host([inline]) {\n display:inline-block;\n }\n\n .base {\n display:grid;\n box-sizing:border-box;\n grid-template-columns:var(--x-grid-columns);\n row-gap:var(--x-grid-row-gap);\n column-gap:var(--x-grid-column-gap);\n align-items:var(--x-grid-align-items);\n justify-items:var(--x-grid-justify-items);\n grid-auto-flow:var(--x-grid-auto-flow);\n }\n ";
6
- d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__x_grid_root=b;a.__x_grid_base=d;a.__x_grid_initialized=!0}$w(a);return a},cx=function(){var a=class extends HTMLElement{};a.observedAttributes=bx;a.prototype.connectedCallback=function(){return ax(this)};a.prototype.attributeChangedCallback=function(){return $APP.l(this,"__x_grid_initialized")===!0?$w(this):ax(this)};return a},dx=function(){return $APP.n(customElements.get("x-grid"))?null:customElements.define("x-grid",
7
- cx())},Rw=new $APP.M(null,"min-column-size","min-column-size",-1066019378),Mw=new $APP.M(null,"inline","inline",1399884222),Pw=new $APP.M(null,"auto-flow","auto-flow",-1524521728),Sw=new $APP.M(null,"column-gap","column-gap",384822863),Nw=new $APP.M(null,"justify-items","justify-items",1638310783),Ow=new $APP.M(null,"row-gap","row-gap",-1809905537),Yw=new $APP.M(null,"column-gap-token","column-gap-token",-10192833),Tw=new $APP.M(null,"gap","gap",80255254),Qw=new $APP.M(null,"align-items","align-items",
8
- -267946462),Xw=new $APP.M(null,"row-gap-token","row-gap-token",-219143816);var bx="columns min-column-size gap row-gap column-gap align-items justify-items auto-flow inline".split(" "),Uw=new $APP.S(null,new $APP.Q(null,6,["none",null,"xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),Vw=new $APP.S(null,new $APP.Q(null,4,["center",null,"start",null,"stretch",null,"end",null],null),null),Ww=new $APP.S(null,new $APP.Q(null,5,["column-dense",null,"row-dense",null,"dense",null,"column",null,"row",null],null),null);$APP.ja("baredom.exports.x_grid.init",dx);export const init=dx;
2
+ var FB=function(a){switch(a){case "none":return"0";case "xs":return"4px";case "sm":return"8px";case "md":return"16px";case "lg":return"24px";case "xl":return"32px";default:return"16px"}},GB=function(a,b,c){return $APP.M(b,a)?a:c},HB=function(a){switch(a){case "row-dense":return"row dense";case "column-dense":return"column dense";default:return a}},IB=function(a){return $APP.n($APP.n(a)?$APP.P("",a):a)?a:null},JB=function(a){return $APP.n($APP.n(a)?$APP.P("",a):a)?a:"16rem"},WB=function(a){var b=$APP.O(a);
3
+ a=$APP.I(b,KB);var c=$APP.I(b,LB),d=$APP.I(b,MB),e=$APP.I(b,NB),g=$APP.I(b,OB),h=$APP.I(b,$APP.kh),k=$APP.I(b,PB),m=$APP.I(b,QB);b=$APP.I(b,$APP.Vj);h=IB(h);k=JB(k);var p=GB(b,RB,"md");b=function(){var v=$APP.M(RB,d)?d:null;return $APP.n(v)?v:p}();var r=function(){var v=$APP.M(RB,m)?m:null;return $APP.n(v)?v:p}();g=GB(g,SB,"stretch");c=GB(c,SB,"stretch");e=HB(GB(e,TB,"row"));h=$APP.n(h)?h:"repeat(auto-fit,minmax("+$APP.T.g(k)+",1fr))";return $APP.ff([NB,OB,$APP.kh,QB,$APP.Vj,UB,KB,VB,MB,LB],[e,g,
4
+ h,FB(r),p,b,$APP.K(a),r,FB(b),c])},XB=function(a){var b=$APP.ff([NB,OB,$APP.kh,PB,QB,$APP.Vj,KB,MB,LB],[a.getAttribute("auto-flow"),a.getAttribute("align-items"),a.getAttribute("columns"),a.getAttribute("min-column-size"),a.getAttribute("column-gap"),a.getAttribute("gap"),a.hasAttribute("inline"),a.getAttribute("row-gap"),a.getAttribute("justify-items")]);b=WB(b);a=$APP.l(a,"__x_grid_base");if($APP.n(a)){var c=a.style;a.setAttribute("data-gap",$APP.Vj.g(b));c.setProperty("--x-grid-columns",$APP.kh.g(b));
5
+ c.setProperty("--x-grid-row-gap",MB.g(b));c.setProperty("--x-grid-column-gap",QB.g(b));c.setProperty("--x-grid-align-items",OB.g(b));c.setProperty("--x-grid-justify-items",LB.g(b));b=c.setProperty("--x-grid-auto-flow",NB.g(b))}else b=null;return b},YB=function(a){if($APP.l(a,"__x_grid_initialized")!==!0){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent="\n :host {\n display:block;\n }\n\n :host([inline]) {\n display:inline-block;\n }\n\n .base {\n display:grid;\n box-sizing:border-box;\n grid-template-columns:var(--x-grid-columns);\n row-gap:var(--x-grid-row-gap);\n column-gap:var(--x-grid-column-gap);\n align-items:var(--x-grid-align-items);\n justify-items:var(--x-grid-justify-items);\n grid-auto-flow:var(--x-grid-auto-flow);\n }\n ";
6
+ d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__x_grid_root=b;a.__x_grid_base=d;a.__x_grid_initialized=!0}XB(a);return a},$B=function(){var a=class extends HTMLElement{};a.observedAttributes=ZB;a.prototype.connectedCallback=function(){return YB(this)};a.prototype.attributeChangedCallback=function(){return $APP.l(this,"__x_grid_initialized")===!0?XB(this):YB(this)};return a},aC=function(){return $APP.n(customElements.get("x-grid"))?null:customElements.define("x-grid",
7
+ $B())},PB=new $APP.N(null,"min-column-size","min-column-size",-1066019378),KB=new $APP.N(null,"inline","inline",1399884222),NB=new $APP.N(null,"auto-flow","auto-flow",-1524521728),QB=new $APP.N(null,"column-gap","column-gap",384822863),LB=new $APP.N(null,"justify-items","justify-items",1638310783),MB=new $APP.N(null,"row-gap","row-gap",-1809905537),VB=new $APP.N(null,"column-gap-token","column-gap-token",-10192833),OB=new $APP.N(null,"align-items","align-items",-267946462),UB=new $APP.N(null,"row-gap-token",
8
+ "row-gap-token",-219143816);var ZB="columns min-column-size gap row-gap column-gap align-items justify-items auto-flow inline".split(" "),RB=new $APP.S(null,new $APP.Q(null,6,["none",null,"xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),SB=new $APP.S(null,new $APP.Q(null,4,["center",null,"start",null,"stretch",null,"end",null],null),null),TB=new $APP.S(null,new $APP.Q(null,5,["column-dense",null,"row-dense",null,"dense",null,"column",null,"row",null],null),null);$APP.ja("baredom.exports.x_grid.init",aC);export const init=aC;