@vanelsas/baredom 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +6 -4
  3. package/dist/base.js +397 -373
  4. package/dist/x-alert.js +19 -19
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +15 -15
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-bento-grid.js +5 -5
  9. package/dist/x-bento-item.js +4 -4
  10. package/dist/x-breadcrumbs.js +14 -14
  11. package/dist/x-button.js +16 -16
  12. package/dist/x-cancel-dialogue.js +17 -17
  13. package/dist/x-card.js +7 -7
  14. package/dist/x-chart.js +47 -47
  15. package/dist/x-checkbox.js +11 -11
  16. package/dist/x-chip.js +8 -8
  17. package/dist/x-collapse.js +10 -10
  18. package/dist/x-command-palette.js +31 -31
  19. package/dist/x-container.js +6 -6
  20. package/dist/x-context-menu.js +19 -19
  21. package/dist/x-copy.js +23 -23
  22. package/dist/x-currency-field.js +22 -22
  23. package/dist/x-date-picker.js +41 -41
  24. package/dist/x-divider.js +13 -13
  25. package/dist/x-drawer.js +11 -11
  26. package/dist/x-dropdown.js +9 -9
  27. package/dist/x-fieldset.js +6 -6
  28. package/dist/x-file-download.js +7 -7
  29. package/dist/x-form-field.js +15 -15
  30. package/dist/x-form.js +10 -10
  31. package/dist/x-gaussian-blur.js +18 -18
  32. package/dist/x-grid.js +6 -6
  33. package/dist/x-kinetic-font.js +29 -0
  34. package/dist/x-kinetic-typography.js +39 -61
  35. package/dist/x-liquid-dock.js +40 -0
  36. package/dist/x-liquid-fill.js +45 -0
  37. package/dist/x-liquid-glass.js +48 -0
  38. package/dist/x-menu-item.js +10 -10
  39. package/dist/x-menu.js +11 -11
  40. package/dist/x-metaball-cursor.js +28 -27
  41. package/dist/x-modal.js +12 -12
  42. package/dist/x-morph-stack.js +41 -0
  43. package/dist/x-navbar.js +13 -13
  44. package/dist/x-neural-glow.js +34 -34
  45. package/dist/x-notification-center.js +9 -10
  46. package/dist/x-organic-divider.js +19 -19
  47. package/dist/x-organic-progress.js +38 -38
  48. package/dist/x-organic-shape.js +14 -14
  49. package/dist/x-pagination.js +16 -16
  50. package/dist/x-popover.js +14 -14
  51. package/dist/x-progress-circle.js +9 -9
  52. package/dist/x-progress.js +10 -10
  53. package/dist/x-radio.js +11 -11
  54. package/dist/x-ripple-effect.js +12 -13
  55. package/dist/x-scroll-parallax.js +19 -19
  56. package/dist/x-scroll-stack.js +18 -18
  57. package/dist/x-scroll-story.js +36 -36
  58. package/dist/x-scroll-timeline.js +50 -50
  59. package/dist/x-scroll.js +41 -41
  60. package/dist/x-search-field.js +14 -14
  61. package/dist/x-select.js +9 -9
  62. package/dist/x-sidebar.js +16 -16
  63. package/dist/x-skeleton.js +6 -6
  64. package/dist/x-slider.js +16 -16
  65. package/dist/x-soft-body.js +22 -0
  66. package/dist/x-spacer.js +5 -5
  67. package/dist/x-spinner.js +5 -5
  68. package/dist/x-splash.js +13 -13
  69. package/dist/x-stat.js +11 -11
  70. package/dist/x-stepper.js +16 -16
  71. package/dist/x-switch.js +10 -10
  72. package/dist/x-tab.js +7 -7
  73. package/dist/x-table-cell.js +22 -22
  74. package/dist/x-table-row.js +10 -10
  75. package/dist/x-table.js +16 -16
  76. package/dist/x-tabs.js +11 -11
  77. package/dist/x-text-area.js +18 -18
  78. package/dist/x-timeline-item.js +24 -24
  79. package/dist/x-timeline.js +9 -9
  80. package/dist/x-toast.js +24 -24
  81. package/dist/x-toaster.js +8 -8
  82. package/dist/x-typography.js +10 -10
  83. package/package.json +25 -1
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Xu=function(a){return a!=null&&$APP.O(a,"false")},Yu=function(a,b,c){return a.setAttribute(b,c)},Zu=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},av=function(a){a=$APP.mf([$APP.Pj,$APP.ck,$APP.Xg,$APP.hh,$APP.mi,$u,$APP.Bi,$APP.Ak,$APP.Hi,$APP.ui],[a.getAttribute("name"),Xu(a.getAttribute("disabled")),Xu(a.getAttribute("required")),a.getAttribute("aria-labelledby"),Xu(a.getAttribute("checked")),Xu(a.getAttribute("indeterminate")),Xu(a.getAttribute("readonly")),a.getAttribute("value"),
3
- a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.N(a);a=$APP.I(b,$APP.Hi);var c=$APP.I(b,$APP.ui),d=$APP.I(b,$APP.Pj),e=$APP.I(b,$APP.ck),g=$APP.I(b,$APP.Xg),h=$APP.I(b,$APP.hh),k=$APP.I(b,$APP.mi),m=$APP.I(b,$u),p=$APP.I(b,$APP.Bi);b=$APP.I(b,$APP.Ak);k=$APP.J(k);m=$APP.J(m);g=$APP.J(g);return $APP.mf([$APP.kk,$APP.ph,$APP.kh,$APP.Uk,$APP.wi,$APP.bh,$APP.si,$APP.Xh,$APP.Pi,$APP.Qk,$APP.dk,$APP.X],[m,g,m?"mixed":k?"true":"false",$APP.J(p),k,$APP.n(g)?k:!0,d,b!=null?b:"on",
4
- h,c,a,$APP.J(e)])},bv=function(a){var b=$APP.l(a,"__xCheckboxRefs");if($APP.n(b)){var c=$APP.l(b,"control");b=av(a);var d=$APP.X.g(b),e=$APP.wi.g(b),g=$APP.kk.g(b);Yu(c,"aria-checked",$APP.kh.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");Yu(c,"aria-required",$APP.n($APP.ph.g(b))?"true":"false");Yu(c,"aria-readonly",$APP.n($APP.Uk.g(b))?"true":"false");var h=$APP.dk.g(b);$APP.n(h)?c.setAttribute("aria-label",h):c.removeAttribute("aria-label");h=$APP.Pi.g(b);$APP.n(h)?c.setAttribute("aria-labelledby",
5
- h):c.removeAttribute("aria-labelledby");h=$APP.Qk.g(b);$APP.n(h)?c.setAttribute("aria-describedby",h):c.removeAttribute("aria-describedby");c.tabIndex=$APP.n(d)?-1:0;$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");Zu(a,"data-checked",e);Zu(a,"data-indeterminate",g);Zu(a,"data-disabled",d);a=$APP.l(a,"__xCheckboxInternals");if($APP.n(a))return b=$APP.n(e)?$APP.Xh.g(b):null,a.setFormValue($APP.n(b)?b:null)}return null},cv=function(a){var b=av(a),c=$APP.X.g(b),d=$APP.Uk.g(b);if($APP.n($APP.n(c)?
6
- c:d))return null;c=$APP.wi.g(b);d=$APP.kk.g(b);d=$APP.n(d)?new $APP.R(null,2,[$APP.wi,!0,$APP.kk,!1],null):new $APP.R(null,2,[$APP.wi,$APP.r(c),$APP.kk,!1],null);var e=$APP.wi.g(d);b=$APP.Xh.g(b);c=new CustomEvent("x-checkbox-change-request",{detail:{value:b,previousChecked:c,nextChecked:e},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(c);return $APP.r(c.defaultPrevented)?(Zu(a,"checked",e),Zu(a,"indeterminate",$APP.kk.g(d)),bv(a),a.dispatchEvent(new CustomEvent("x-checkbox-change",{detail:{value:b,
7
- checked:e},bubbles:!0,composed:!0,cancelable:!1}))):null},dv=function(a){return function(){return cv(a)}},ev=function(a){return function(b){var c=b.key;return $APP.C.h(c," ")||$APP.C.h(c,"Enter")?(b.preventDefault(),cv(a)):null}},fv=function(a){var b=$APP.l(a,"__xCheckboxRefs");if($APP.n(b)){var c=$APP.l(a,"__xCheckboxHandlers");if($APP.n(c)){b=$APP.l(b,"control");b.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xCheckboxHandlers=null;return}}return null},
8
- gv=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return Zu(this,c,$APP.J(d))}})},hv=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.O(d)?Yu(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},jv=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;a.observedAttributes=
9
- iv;gv(b,"checked","checked");gv(b,"indeterminate","indeterminate");gv(b,"disabled","disabled");gv(b,"readOnly","readonly");gv(b,"required","required");hv(b,"name","name");hv(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xCheckboxRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("button"),g=document.createElement("span"),h=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-checkbox-size:16px;--x-checkbox-border-width:2px;--x-checkbox-border-color:#6b7280;--x-checkbox-border-radius:4px;--x-checkbox-bg:#ffffff;--x-checkbox-bg-checked:#2563eb;--x-checkbox-bg-indeterminate:#2563eb;--x-checkbox-border-checked:#2563eb;--x-checkbox-border-indeterminate:#2563eb;--x-checkbox-check-color:#ffffff;--x-checkbox-focus-ring:#60a5fa;--x-checkbox-disabled-opacity:0.45;--x-checkbox-transition:background 120ms ease,border-color 120ms ease;}@media (prefers-color-scheme:dark){:host{--x-checkbox-border-color:#9ca3af;--x-checkbox-bg:#1f2937;--x-checkbox-bg-checked:#3b82f6;--x-checkbox-bg-indeterminate:#3b82f6;--x-checkbox-border-checked:#3b82f6;--x-checkbox-border-indeterminate:#3b82f6;--x-checkbox-focus-ring:#93c5fd;}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-checkbox-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-checkbox-focus-ring);border-radius:calc(var(--x-checkbox-border-radius) + 2px);}[part\x3dbox]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-checkbox-size);height:var(--x-checkbox-size);border:var(--x-checkbox-border-width) solid var(--x-checkbox-border-color);border-radius:var(--x-checkbox-border-radius);background:var(--x-checkbox-bg);transition:var(--x-checkbox-transition);position:relative;flex-shrink:0;}:host([data-checked]) [part\x3dbox]{background:var(--x-checkbox-bg-checked);border-color:var(--x-checkbox-border-checked);}:host([data-indeterminate]) [part\x3dbox]{background:var(--x-checkbox-bg-indeterminate);border-color:var(--x-checkbox-border-indeterminate);}[part\x3dcheck]{display:inline-flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;}[part\x3dcheck]::before{content:'\\2713';color:var(--x-checkbox-check-color);font-size:10px;font-weight:700;line-height:1;opacity:0;transition:opacity 100ms ease;position:absolute;}:host([data-checked]) [part\x3dcheck]::before{opacity:1;}[part\x3dcheck]::after{content:'';display:block;width:8px;height:2px;background:var(--x-checkbox-check-color);border-radius:1px;opacity:0;transition:opacity 100ms ease;position:absolute;}:host([data-indeterminate]) [part\x3dcheck]::after{opacity:1;}@media (prefers-reduced-motion:reduce){[part\x3dbox]{transition:none;}[part\x3dcheck]::before{transition:none;}[part\x3dcheck]::after{transition:none;}}";
10
- e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","checkbox");g.setAttribute("part","box");h.setAttribute("part","check");g.appendChild(h);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xCheckboxRefs={root:c,control:e,box:g,check:h};$APP.n(this.attachInternals)&&(this.__xCheckboxInternals=this.attachInternals())}fv(this);c=$APP.l(this,"__xCheckboxRefs");$APP.n(c)&&(c=$APP.l(c,"control"),d=dv(this),e=ev(this),g={click:d,keydown:e},c.addEventListener("click",
11
- d),c.addEventListener("keydown",e),this.__xCheckboxHandlers=g);d=this.getAttribute("id");$APP.n(d)&&(c=document.querySelector("label[for\x3d'"+$APP.T.g(d)+"']"),$APP.n(c)&&(e=c.getAttribute("id"),$APP.n(e)?c=e:(d="x-cb-lbl-"+$APP.T.g(d),c.setAttribute("id",d),c=d),d=$APP.l(this,"__xCheckboxRefs"),$APP.n(d)&&(d=$APP.l(d,"control"),$APP.n(this.hasAttribute("aria-labelledby"))||d.setAttribute("aria-labelledby",c))));return bv(this)};b.disconnectedCallback=function(){return fv(this)};b.attributeChangedCallback=
12
- function(){return bv(this)};b.formDisabledCallback=function(c){Zu(this,"disabled",$APP.J(c));return bv(this)};b.formResetCallback=function(){this.removeAttribute("checked");this.removeAttribute("indeterminate");return bv(this)};return a},kv=function(){return $APP.n(customElements.get("x-checkbox"))?null:customElements.define("x-checkbox",jv())},$u=new $APP.M(null,"indeterminate-present?","indeterminate-present?",-1714683438);var iv="checked indeterminate disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.Ed(["x-checkbox-change-request",new $APP.R(null,2,[$APP.rk,!0,$APP.V,new $APP.R(null,3,[$APP.Xh,$APP.Y,$APP.fj,$APP.Ni,$APP.gk,$APP.Ni],null)],null),"x-checkbox-change",new $APP.R(null,2,[$APP.rk,!1,$APP.V,new $APP.R(null,2,[$APP.Xh,$APP.Y,$APP.Lk,$APP.Ni],null)],null)]);$APP.ja("baredom.exports.x_checkbox.init",kv);export const init=kv;
2
+ var Yx=function(a){return a!=null&&$APP.O(a,"false")},Zx=function(a,b,c){return a.setAttribute(b,c)},$x=function(a,b,c){return $APP.r(c)?a.setAttribute(b,""):a.removeAttribute(b)},by=function(a){a=$APP.Q([$APP.Ek,$APP.Rk,$APP.sh,$APP.Dh,$APP.Mi,ay,$APP.cj,$APP.vl,$APP.kj,$APP.Ui],[a.getAttribute("name"),Yx(a.getAttribute("disabled")),Yx(a.getAttribute("required")),a.getAttribute("aria-labelledby"),Yx(a.getAttribute("checked")),Yx(a.getAttribute("indeterminate")),Yx(a.getAttribute("readonly")),a.getAttribute("value"),
3
+ a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.N(a);a=$APP.G(b,$APP.kj);var c=$APP.G(b,$APP.Ui),d=$APP.G(b,$APP.Ek),e=$APP.G(b,$APP.Rk),g=$APP.G(b,$APP.sh),h=$APP.G(b,$APP.Dh),k=$APP.G(b,$APP.Mi),m=$APP.G(b,ay),p=$APP.G(b,$APP.cj);b=$APP.G(b,$APP.vl);k=$APP.I(k);m=$APP.I(m);g=$APP.I(g);return $APP.Q([$APP.al,$APP.Lh,$APP.Gh,$APP.Sl,$APP.Wi,$APP.xh,$APP.Si,$APP.ui,$APP.sj,$APP.Ol,$APP.Tk,$APP.W],[m,g,m?"mixed":k?"true":"false",$APP.I(p),k,$APP.r(g)?k:!0,d,b!=null?b:"on",
4
+ h,c,a,$APP.I(e)])},cy=function(a){var b=$APP.l(a,"__xCheckboxRefs");if($APP.r(b)){var c=$APP.l(b,"control");b=by(a);var d=$APP.W.g(b),e=$APP.Wi.g(b),g=$APP.al.g(b);Zx(c,"aria-checked",$APP.Gh.g(b));c.setAttribute("aria-disabled",$APP.r(d)?"true":"false");Zx(c,"aria-required",$APP.r($APP.Lh.g(b))?"true":"false");Zx(c,"aria-readonly",$APP.r($APP.Sl.g(b))?"true":"false");var h=$APP.Tk.g(b);$APP.r(h)?c.setAttribute("aria-label",h):c.removeAttribute("aria-label");h=$APP.sj.g(b);$APP.r(h)?c.setAttribute("aria-labelledby",
5
+ h):c.removeAttribute("aria-labelledby");h=$APP.Ol.g(b);$APP.r(h)?c.setAttribute("aria-describedby",h):c.removeAttribute("aria-describedby");c.tabIndex=$APP.r(d)?-1:0;$APP.r(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");$x(a,"data-checked",e);$x(a,"data-indeterminate",g);$x(a,"data-disabled",d);a=$APP.l(a,"__xCheckboxInternals");if($APP.r(a))return b=$APP.r(e)?$APP.ui.g(b):null,a.setFormValue($APP.r(b)?b:null)}return null},dy=function(a){var b=by(a),c=$APP.W.g(b),d=$APP.Sl.g(b);if($APP.r($APP.r(c)?
6
+ c:d))return null;c=$APP.Wi.g(b);d=$APP.al.g(b);d=$APP.r(d)?new $APP.P(null,2,[$APP.Wi,!0,$APP.al,!1],null):new $APP.P(null,2,[$APP.Wi,$APP.t(c),$APP.al,!1],null);var e=$APP.Wi.g(d);b=$APP.ui.g(b);c=new CustomEvent("x-checkbox-change-request",{detail:{value:b,previousChecked:c,nextChecked:e},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(c);return $APP.t(c.defaultPrevented)?($x(a,"checked",e),$x(a,"indeterminate",$APP.al.g(d)),cy(a),a.dispatchEvent(new CustomEvent("x-checkbox-change",{detail:{value:b,
7
+ checked:e},bubbles:!0,composed:!0,cancelable:!1}))):null},ey=function(a){return function(){return dy(a)}},fy=function(a){return function(b){var c=b.key;return $APP.D.i(c," ")||$APP.D.i(c,"Enter")?(b.preventDefault(),dy(a)):null}},gy=function(a){var b=$APP.l(a,"__xCheckboxRefs");if($APP.r(b)){var c=$APP.l(a,"__xCheckboxHandlers");if($APP.r(c)){b=$APP.l(b,"control");b.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xCheckboxHandlers=null;return}}return null},
8
+ hy=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $x(this,c,$APP.I(d))}})},iy=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.r(d)?d:null},set:function(d){return d!=null&&$APP.O(d)?Zx(this,c,""+$APP.S.g(d)):this.removeAttribute(c)}})},ky=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;a.observedAttributes=
9
+ jy;hy(b,"checked","checked");hy(b,"indeterminate","indeterminate");hy(b,"disabled","disabled");hy(b,"readOnly","readonly");hy(b,"required","required");iy(b,"name","name");iy(b,"value","value");b.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xCheckboxRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("button"),g=document.createElement("span"),h=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-checkbox-size:16px;--x-checkbox-border-width:2px;--x-checkbox-border-color:#6b7280;--x-checkbox-border-radius:4px;--x-checkbox-bg:#ffffff;--x-checkbox-bg-checked:#2563eb;--x-checkbox-bg-indeterminate:#2563eb;--x-checkbox-border-checked:#2563eb;--x-checkbox-border-indeterminate:#2563eb;--x-checkbox-check-color:#ffffff;--x-checkbox-focus-ring:#60a5fa;--x-checkbox-disabled-opacity:0.45;--x-checkbox-transition:background 120ms ease,border-color 120ms ease;}@media (prefers-color-scheme:dark){:host{--x-checkbox-border-color:#9ca3af;--x-checkbox-bg:#1f2937;--x-checkbox-bg-checked:#3b82f6;--x-checkbox-bg-indeterminate:#3b82f6;--x-checkbox-border-checked:#3b82f6;--x-checkbox-border-indeterminate:#3b82f6;--x-checkbox-focus-ring:#93c5fd;}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-checkbox-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-checkbox-focus-ring);border-radius:calc(var(--x-checkbox-border-radius) + 2px);}[part\x3dbox]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-checkbox-size);height:var(--x-checkbox-size);border:var(--x-checkbox-border-width) solid var(--x-checkbox-border-color);border-radius:var(--x-checkbox-border-radius);background:var(--x-checkbox-bg);transition:var(--x-checkbox-transition);position:relative;flex-shrink:0;}:host([data-checked]) [part\x3dbox]{background:var(--x-checkbox-bg-checked);border-color:var(--x-checkbox-border-checked);}:host([data-indeterminate]) [part\x3dbox]{background:var(--x-checkbox-bg-indeterminate);border-color:var(--x-checkbox-border-indeterminate);}[part\x3dcheck]{display:inline-flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;}[part\x3dcheck]::before{content:'\\2713';color:var(--x-checkbox-check-color);font-size:10px;font-weight:700;line-height:1;opacity:0;transition:opacity 100ms ease;position:absolute;}:host([data-checked]) [part\x3dcheck]::before{opacity:1;}[part\x3dcheck]::after{content:'';display:block;width:8px;height:2px;background:var(--x-checkbox-check-color);border-radius:1px;opacity:0;transition:opacity 100ms ease;position:absolute;}:host([data-indeterminate]) [part\x3dcheck]::after{opacity:1;}@media (prefers-reduced-motion:reduce){[part\x3dbox]{transition:none;}[part\x3dcheck]::before{transition:none;}[part\x3dcheck]::after{transition:none;}}";
10
+ e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","checkbox");g.setAttribute("part","box");h.setAttribute("part","check");g.appendChild(h);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xCheckboxRefs={root:c,control:e,box:g,check:h};$APP.r(this.attachInternals)&&(this.__xCheckboxInternals=this.attachInternals())}gy(this);c=$APP.l(this,"__xCheckboxRefs");$APP.r(c)&&(c=$APP.l(c,"control"),d=ey(this),e=fy(this),g={click:d,keydown:e},c.addEventListener("click",
11
+ d),c.addEventListener("keydown",e),this.__xCheckboxHandlers=g);d=this.getAttribute("id");$APP.r(d)&&(c=document.querySelector("label[for\x3d'"+$APP.S.g(d)+"']"),$APP.r(c)&&(e=c.getAttribute("id"),$APP.r(e)?c=e:(d="x-cb-lbl-"+$APP.S.g(d),c.setAttribute("id",d),c=d),d=$APP.l(this,"__xCheckboxRefs"),$APP.r(d)&&(d=$APP.l(d,"control"),$APP.r(this.hasAttribute("aria-labelledby"))||d.setAttribute("aria-labelledby",c))));return cy(this)};b.disconnectedCallback=function(){return gy(this)};b.attributeChangedCallback=
12
+ function(){return cy(this)};b.formDisabledCallback=function(c){$x(this,"disabled",$APP.I(c));return cy(this)};b.formResetCallback=function(){this.removeAttribute("checked");this.removeAttribute("indeterminate");return cy(this)};return a},ly=function(){return $APP.r(customElements.get("x-checkbox"))?null:customElements.define("x-checkbox",ky())},ay=new $APP.M(null,"indeterminate-present?","indeterminate-present?",-1714683438);var jy="checked indeterminate disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.Sd(["x-checkbox-change-request",new $APP.P(null,2,[$APP.kl,!0,$APP.U,new $APP.P(null,3,[$APP.ui,$APP.Y,$APP.Ej,$APP.qj,$APP.Xk,$APP.qj],null)],null),"x-checkbox-change",new $APP.P(null,2,[$APP.kl,!1,$APP.U,new $APP.P(null,2,[$APP.ui,$APP.Y,$APP.Hl,$APP.qj],null)],null)]);$APP.ka("baredom.exports.x_checkbox.init",ly);export const init=ly;
package/dist/x-chip.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var hp=function(a){var b=$APP.N(a),c=$APP.I(b,$APP.sh);a=$APP.I(b,$APP.Ak);var d=$APP.I(b,fp);b=$APP.I(b,$APP.ck);c=$APP.n(c)?c:"";d=d==null?!0:!($APP.C.h(d,"false")||$APP.C.h(d,"0"));return new $APP.R(null,4,[$APP.U,c,$APP.Xh,typeof a==="string"&&a.length>0?a:c,gp,d,$APP.X,$APP.J(b)],null)},ip=function(a){var b=$APP.N(a);a=$APP.I(b,gp);b=$APP.I(b,$APP.X);return $APP.n(a)?$APP.r(b):a},jp=function(a){var b=setTimeout(function(){return a.remove()},400);a.addEventListener("animationend",function d(){clearTimeout(b);
3
- a.removeEventListener("animationend",d);return a.remove()});return a.setAttribute("data-exiting","")},kp=function(a){var b=hp(new $APP.R(null,4,[$APP.sh,a.getAttribute("label"),$APP.Ak,a.getAttribute("value"),fp,a.getAttribute("removable"),$APP.ck,a.hasAttribute("disabled")],null));if($APP.n(ip(b))){var c=$APP.N(b);b=$APP.I(c,$APP.Xh);c=$APP.I(c,$APP.U);b=new CustomEvent("x-chip-remove",{detail:{value:b,label:c},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);a=$APP.r(b.defaultPrevented)?
4
- jp(a):null}else a=null;return a},mp=function(a){var b=hp(new $APP.R(null,4,[$APP.sh,a.getAttribute("label"),$APP.Ak,a.getAttribute("value"),fp,a.getAttribute("removable"),$APP.ck,a.hasAttribute("disabled")],null)),c=$APP.N(b),d=$APP.I(c,$APP.U),e=$APP.I(c,gp);c=$APP.I(c,$APP.X);var g=$APP.l(a,"__xChipRefs"),h=$APP.Kk.g(g);g=lp.g(g);b=ip(b);$APP.n(h)&&(h.textContent=d);$APP.n(e)?a.setAttribute("data-removable",""):a.removeAttribute("data-removable");a.tabIndex=$APP.n(b)?0:-1;$APP.n(c)?a.setAttribute("aria-disabled",
5
- "true"):a.removeAttribute("aria-disabled");$APP.n(b)?a.setAttribute("aria-keyshortcuts","Backspace Delete"):a.removeAttribute("aria-keyshortcuts");$APP.n(g)&&($APP.n(c)?g.setAttribute("disabled",""):g.removeAttribute("disabled"));return null},np=function(a){function b(e){var g=e.key;return $APP.C.h(g,"Backspace")||$APP.C.h(g,"Delete")?(e.preventDefault(),kp(a)):null}function c(){return kp(a)}var d=lp.g($APP.l(a,"__xChipRefs"));$APP.n(d)&&d.addEventListener("click",c);a.addEventListener("keydown",
6
- b);$APP.ma(a,"__xChipHandlers",{click:c,keydown:b})},op=function(a){var b=$APP.l(a,"__xChipHandlers");if($APP.n(b)){var c=$APP.l(a,"__xChipRefs"),d=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n($APP.n(c)?d:c)&&(c=lp.g(c),$APP.n(c)&&c.removeEventListener("click",d));$APP.n(b)&&a.removeEventListener("keydown",b)}return a.__xChipHandlers=null},pp=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return c!=null?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},
7
- enumerable:!0,configurable:!0})},qp=function(a,b){Object.defineProperty(a,b,{get:function(){return this.hasAttribute(b)},set:function(c){return $APP.n(c)?this.setAttribute(b,""):this.removeAttribute(b)},enumerable:!0,configurable:!0})},rp=function(a){pp(a,"label");pp(a,"value");qp(a,"removable");qp(a,"disabled")},tp=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return sp}});b.connectedCallback=function(){if(!$APP.n($APP.l(this,
2
+ var gr=function(a){var b=$APP.N(a),c=$APP.G(b,$APP.Oh);a=$APP.G(b,$APP.vl);var d=$APP.G(b,er);b=$APP.G(b,$APP.Rk);c=$APP.r(c)?c:"";d=d==null?!0:!($APP.D.i(d,"false")||$APP.D.i(d,"0"));return new $APP.P(null,4,[$APP.T,c,$APP.ui,typeof a==="string"&&a.length>0?a:c,fr,d,$APP.W,$APP.I(b)],null)},hr=function(a){var b=$APP.N(a);a=$APP.G(b,fr);b=$APP.G(b,$APP.W);return $APP.r(a)?$APP.t(b):a},ir=function(a){var b=setTimeout(function(){return a.remove()},400);a.addEventListener("animationend",function d(){clearTimeout(b);
3
+ a.removeEventListener("animationend",d);return a.remove()});return a.setAttribute("data-exiting","")},jr=function(a){var b=gr(new $APP.P(null,4,[$APP.Oh,a.getAttribute("label"),$APP.vl,a.getAttribute("value"),er,a.getAttribute("removable"),$APP.Rk,a.hasAttribute("disabled")],null));if($APP.r(hr(b))){var c=$APP.N(b);b=$APP.G(c,$APP.ui);c=$APP.G(c,$APP.T);b=new CustomEvent("x-chip-remove",{detail:{value:b,label:c},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);a=$APP.t(b.defaultPrevented)?
4
+ ir(a):null}else a=null;return a},lr=function(a){var b=gr(new $APP.P(null,4,[$APP.Oh,a.getAttribute("label"),$APP.vl,a.getAttribute("value"),er,a.getAttribute("removable"),$APP.Rk,a.hasAttribute("disabled")],null)),c=$APP.N(b),d=$APP.G(c,$APP.T),e=$APP.G(c,fr);c=$APP.G(c,$APP.W);var g=$APP.l(a,"__xChipRefs"),h=$APP.Gl.g(g);g=kr.g(g);b=hr(b);$APP.r(h)&&(h.textContent=d);$APP.r(e)?a.setAttribute("data-removable",""):a.removeAttribute("data-removable");a.tabIndex=$APP.r(b)?0:-1;$APP.r(c)?a.setAttribute("aria-disabled",
5
+ "true"):a.removeAttribute("aria-disabled");$APP.r(b)?a.setAttribute("aria-keyshortcuts","Backspace Delete"):a.removeAttribute("aria-keyshortcuts");$APP.r(g)&&($APP.r(c)?g.setAttribute("disabled",""):g.removeAttribute("disabled"));return null},mr=function(a){function b(e){var g=e.key;return $APP.D.i(g,"Backspace")||$APP.D.i(g,"Delete")?(e.preventDefault(),jr(a)):null}function c(){return jr(a)}var d=kr.g($APP.l(a,"__xChipRefs"));$APP.r(d)&&d.addEventListener("click",c);a.addEventListener("keydown",
6
+ b);$APP.n(a,"__xChipHandlers",{click:c,keydown:b})},nr=function(a){var b=$APP.l(a,"__xChipHandlers");if($APP.r(b)){var c=$APP.l(a,"__xChipRefs"),d=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.r($APP.r(c)?d:c)&&(c=kr.g(c),$APP.r(c)&&c.removeEventListener("click",d));$APP.r(b)&&a.removeEventListener("keydown",b)}return a.__xChipHandlers=null},or=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return c!=null?this.setAttribute(b,""+$APP.S.g(c)):this.removeAttribute(b)},
7
+ enumerable:!0,configurable:!0})},pr=function(a,b){Object.defineProperty(a,b,{get:function(){return this.hasAttribute(b)},set:function(c){return $APP.r(c)?this.setAttribute(b,""):this.removeAttribute(b)},enumerable:!0,configurable:!0})},qr=function(a){or(a,"label");or(a,"value");pr(a,"removable");pr(a,"disabled")},sr=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return rr}});b.connectedCallback=function(){if(!$APP.r($APP.l(this,
8
8
  "__xChipRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("span"),g=document.createElement("span"),h=document.createElement("button"),k=document.createElement("span");d.textContent=":host{--x-chip-bg:rgba(0,0,0,0.08);--x-chip-color:rgba(0,0,0,0.80);--x-chip-border:rgba(0,0,0,0.12);--x-chip-radius:9999px;--x-chip-font-size:0.875rem;--x-chip-padding-x:0.625rem;--x-chip-padding-y:0.25rem;--x-chip-remove-size:1rem;--x-chip-exit-duration:300ms;display:inline-flex;align-items:center;vertical-align:middle;color-scheme:light dark;font-family:inherit;font-size:var(--x-chip-font-size);line-height:1;border-radius:var(--x-chip-radius);background:var(--x-chip-bg);border:1px solid var(--x-chip-border);color:var(--x-chip-color);padding:var(--x-chip-padding-y) var(--x-chip-padding-x);gap:0.25rem;box-sizing:border-box;cursor:default;user-select:none;outline:none;}@media (prefers-color-scheme:dark){:host{--x-chip-bg:rgba(255,255,255,0.10);--x-chip-border:rgba(255,255,255,0.16);--x-chip-color:rgba(255,255,255,0.88);}}:host(:focus-visible){outline:2px solid currentColor;outline-offset:2px;}:host([disabled]){opacity:0.55;pointer-events:none;}[part\x3dcontainer]{display:inline-flex;align-items:center;gap:0.25rem;}[part\x3dlabel]{display:inline;font-size:inherit;color:inherit;}[part\x3dremove]{display:none;align-items:center;justify-content:center;width:var(--x-chip-remove-size);height:var(--x-chip-remove-size);border:none;background:none;color:inherit;cursor:pointer;padding:0;border-radius:50%;font-size:1rem;line-height:1;opacity:0.7;flex-shrink:0;}[part\x3dremove]:hover{opacity:1;}[part\x3dremove]:focus-visible{outline:2px solid currentColor;outline-offset:1px;}:host([data-removable]) [part\x3dremove]{display:inline-flex;}@keyframes x-chip-exit{to{opacity:0;transform:scale(0.85);}}:host([data-exiting]){animation:x-chip-exit var(--x-chip-exit-duration) forwards;}@media (prefers-reduced-motion:reduce){:host([data-exiting]){animation-duration:0ms;}}";
9
- e.setAttribute("part","container");g.setAttribute("part","label");h.setAttribute("part","remove");h.setAttribute("type","button");h.setAttribute("aria-label","Remove");k.setAttribute("aria-hidden","true");k.textContent="×";h.appendChild(k);e.appendChild(g);e.appendChild(h);c.appendChild(d);c.appendChild(e);this.__xChipRefs=new $APP.R(null,4,[$APP.Jh,c,$APP.yi,e,$APP.Kk,g,lp,h],null)}op(this);np(this);return mp(this)};b.disconnectedCallback=function(){return op(this)};b.attributeChangedCallback=function(c,
10
- d,e){return $APP.O(d,e)?$APP.n($APP.l(this,"__xChipRefs"))?mp(this):null:null};rp(b);return a},up=function(){$APP.n(customElements.get("x-chip"))||customElements.define("x-chip",tp());return null},fp=new $APP.M(null,"removable-raw","removable-raw",1718453796),lp=new $APP.M(null,"remove-btn","remove-btn",843430290),gp=new $APP.M(null,"removable?","removable?",1886800649);var sp=["label","value","removable","disabled"];$APP.Ed(["x-chip-remove",new $APP.R(null,2,[$APP.V,new $APP.R(null,2,[$APP.Xh,$APP.Y,$APP.U,$APP.Y],null),$APP.rk,!0],null)]);$APP.ja("baredom.exports.x_chip.init",up);export const init=up;
9
+ e.setAttribute("part","container");g.setAttribute("part","label");h.setAttribute("part","remove");h.setAttribute("type","button");h.setAttribute("aria-label","Remove");k.setAttribute("aria-hidden","true");k.textContent="×";h.appendChild(k);e.appendChild(g);e.appendChild(h);c.appendChild(d);c.appendChild(e);this.__xChipRefs=new $APP.P(null,4,[$APP.bi,c,$APP.Zi,e,$APP.Gl,g,kr,h],null)}nr(this);mr(this);return lr(this)};b.disconnectedCallback=function(){return nr(this)};b.attributeChangedCallback=function(c,
10
+ d,e){return $APP.O(d,e)?$APP.r($APP.l(this,"__xChipRefs"))?lr(this):null:null};qr(b);return a},tr=function(){$APP.r(customElements.get("x-chip"))||customElements.define("x-chip",sr());return null},er=new $APP.M(null,"removable-raw","removable-raw",1718453796),kr=new $APP.M(null,"remove-btn","remove-btn",843430290),fr=new $APP.M(null,"removable?","removable?",1886800649);var rr=["label","value","removable","disabled"];$APP.Sd(["x-chip-remove",new $APP.P(null,2,[$APP.U,new $APP.P(null,2,[$APP.ui,$APP.Y,$APP.T,$APP.Y],null),$APP.kl,!0],null)]);$APP.ka("baredom.exports.x_chip.init",tr);export const init=tr;
@@ -1,13 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var dV=function(){var a=window.matchMedia;return $APP.n(a)?window.matchMedia("(prefers-reduced-motion: reduce)").matches:a},eV=function(a){a=a.getAttribute("duration-ms");return $APP.n(a)?(a=parseInt(a,10),$APP.n(isNaN(a))?300:$APP.Fg.h(0,$APP.Gg.h(2E3,a))):300},fV=function(a,b){function c(){clearTimeout(e);b.style.height="";b.style.transition="";return b.removeEventListener("transitionend",$APP.l(g,"fn"))}if($APP.n(dV()))return b.style.height="",b.style.transition="";a=eV(a);b.style.height="0px";
3
- b.offsetHeight;var d=""+$APP.T.g(b.scrollHeight)+"px";b.style.transition="height "+$APP.T.g(a)+"ms ease";b.style.height=d;var e=setTimeout(function(){b.style.height="";return b.style.transition=""},a+80),g={fn:null};g.fn=c;return b.addEventListener("transitionend",c)},gV=function(a,b){function c(){clearTimeout(e);b.style.height="";b.style.transition="";return b.removeEventListener("transitionend",$APP.l(g,"fn"))}if($APP.n(dV()))return b.style.height="0px",b.style.transition="";var d=""+$APP.T.g(b.offsetHeight)+
4
- "px";a=eV(a);b.style.height=d;b.offsetHeight;b.style.transition="height "+$APP.T.g(a)+"ms ease";b.style.height="0px";var e=setTimeout(function(){b.style.height="";return b.style.transition=""},a+80),g={fn:null};g.fn=c;return b.addEventListener("transitionend",c)},hV=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.n(b)){var c=$APP.l(b,"trigger");b=$APP.l(b,"header-text");var d=a.hasAttribute("open"),e=a.hasAttribute("disabled");a=a.getAttribute("header");b.textContent=$APP.n(a)?a:"";c.setAttribute("aria-expanded",
5
- $APP.n(d)?"true":"false");if($APP.n(e))return c.setAttribute("disabled",""),c.setAttribute("aria-disabled","true");c.removeAttribute("disabled");return c.removeAttribute("aria-disabled")}return null},iV=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=$APP.r(a.hasAttribute("open"));b=new CustomEvent("x-collapse-toggle",{detail:{open:c,source:b},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.r(b.defaultPrevented)?(c?a.setAttribute("open",""):a.removeAttribute("open"),
6
- a.dispatchEvent(new CustomEvent("x-collapse-change",{detail:{open:c},bubbles:!0,composed:!0,cancelable:!1}))):null},jV=function(a){return function(){return iV(a,"pointer")}},kV=function(a){return function(b){var c=b.key;return $APP.C.h(c," ")||$APP.C.h(c,"Enter")?(b.preventDefault(),iV(a,"keyboard")):null}},lV=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.n(b)){var c=$APP.l(a,"__xCollapseHandlers");if($APP.n(c)){b=$APP.l(b,"trigger");b.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",
7
- $APP.l(c,"keydown"));a.__xCollapseHandlers=null;return}}return null},mV=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n($APP.J(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},nV=function(a){Object.defineProperty(a,"header",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("header");return $APP.n(b)?b:""},set:function(b){b!=null&&$APP.O(b)?(b=""+$APP.T.g(b),b=this.setAttribute("header",
8
- b)):b=this.removeAttribute("header");return b}})},oV=function(a){Object.defineProperty(a,"durationMs",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("duration-ms");return $APP.n(b)?(b=parseInt(b,10),$APP.n(isNaN(b))?300:b):300},set:function(b){typeof b==="number"&&$APP.r(isNaN(b))?(b=""+$APP.T.g(Math.round(b)),b=this.setAttribute("duration-ms",b)):b=this.removeAttribute("duration-ms");return b}})},qV=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,
9
- "observedAttributes",{get:function(){return pV}});mV(b,"open","open");mV(b,"disabled","disabled");nV(b);oV(b);b.toggle=function(){return iV(this,"programmatic")};b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xCollapseRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("button"),h=document.createElement("span"),k=document.createElement("span"),m=document.createElement("div"),p=document.createElement("div"),
2
+ var LZ=function(){var a=window.matchMedia;return $APP.r(a)?window.matchMedia("(prefers-reduced-motion: reduce)").matches:a},MZ=function(a){a=a.getAttribute("duration-ms");return $APP.r(a)?(a=parseInt(a,10),$APP.r(isNaN(a))?300:$APP.Yg.i(0,$APP.Zg.i(2E3,a))):300},NZ=function(a,b){function c(){clearTimeout(e);b.style.height="";b.style.transition="";return b.removeEventListener("transitionend",$APP.l(g,"fn"))}if($APP.r(LZ()))return b.style.height="",b.style.transition="";a=MZ(a);b.style.height="0px";
3
+ b.offsetHeight;var d=""+$APP.S.g(b.scrollHeight)+"px";b.style.transition="height "+$APP.S.g(a)+"ms ease";b.style.height=d;var e=setTimeout(function(){b.style.height="";return b.style.transition=""},a+80),g={fn:null};g.fn=c;return b.addEventListener("transitionend",c)},OZ=function(a,b){function c(){clearTimeout(e);b.style.height="";b.style.transition="";return b.removeEventListener("transitionend",$APP.l(g,"fn"))}if($APP.r(LZ()))return b.style.height="0px",b.style.transition="";var d=""+$APP.S.g(b.offsetHeight)+
4
+ "px";a=MZ(a);b.style.height=d;b.offsetHeight;b.style.transition="height "+$APP.S.g(a)+"ms ease";b.style.height="0px";var e=setTimeout(function(){b.style.height="";return b.style.transition=""},a+80),g={fn:null};g.fn=c;return b.addEventListener("transitionend",c)},PZ=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.r(b)){var c=$APP.l(b,"trigger");b=$APP.l(b,"header-text");var d=a.hasAttribute("open"),e=a.hasAttribute("disabled");a=a.getAttribute("header");b.textContent=$APP.r(a)?a:"";c.setAttribute("aria-expanded",
5
+ $APP.r(d)?"true":"false");if($APP.r(e))return c.setAttribute("disabled",""),c.setAttribute("aria-disabled","true");c.removeAttribute("disabled");return c.removeAttribute("aria-disabled")}return null},QZ=function(a,b){if($APP.r(a.hasAttribute("disabled")))return null;var c=$APP.t(a.hasAttribute("open"));b=new CustomEvent("x-collapse-toggle",{detail:{open:c,source:b},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.t(b.defaultPrevented)?(c?a.setAttribute("open",""):a.removeAttribute("open"),
6
+ a.dispatchEvent(new CustomEvent("x-collapse-change",{detail:{open:c},bubbles:!0,composed:!0,cancelable:!1}))):null},RZ=function(a){return function(){return QZ(a,"pointer")}},SZ=function(a){return function(b){var c=b.key;return $APP.D.i(c," ")||$APP.D.i(c,"Enter")?(b.preventDefault(),QZ(a,"keyboard")):null}},TZ=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.r(b)){var c=$APP.l(a,"__xCollapseHandlers");if($APP.r(c)){b=$APP.l(b,"trigger");b.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",
7
+ $APP.l(c,"keydown"));a.__xCollapseHandlers=null;return}}return null},UZ=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.r($APP.I(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},VZ=function(a){Object.defineProperty(a,"header",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("header");return $APP.r(b)?b:""},set:function(b){b!=null&&$APP.O(b)?(b=""+$APP.S.g(b),b=this.setAttribute("header",
8
+ b)):b=this.removeAttribute("header");return b}})},WZ=function(a){Object.defineProperty(a,"durationMs",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("duration-ms");return $APP.r(b)?(b=parseInt(b,10),$APP.r(isNaN(b))?300:b):300},set:function(b){typeof b==="number"&&$APP.t(isNaN(b))?(b=""+$APP.S.g(Math.round(b)),b=this.setAttribute("duration-ms",b)):b=this.removeAttribute("duration-ms");return b}})},YZ=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,
9
+ "observedAttributes",{get:function(){return XZ}});UZ(b,"open","open");UZ(b,"disabled","disabled");VZ(b);WZ(b);b.toggle=function(){return QZ(this,"programmatic")};b.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xCollapseRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("button"),h=document.createElement("span"),k=document.createElement("span"),m=document.createElement("div"),p=document.createElement("div"),
10
10
  q=document.createElement("slot");d.textContent=":host{display:block;color-scheme:light dark;--x-collapse-border-radius:8px;--x-collapse-border:1px solid #e2e8f0;--x-collapse-bg:#ffffff;--x-collapse-trigger-bg:#f8fafc;--x-collapse-trigger-bg-hover:#f1f5f9;--x-collapse-trigger-color:#0f172a;--x-collapse-trigger-padding:0.75rem 1rem;--x-collapse-content-padding:1rem;--x-collapse-font-size:0.9375rem;--x-collapse-font-weight:600;--x-collapse-chevron-color:#64748b;--x-collapse-focus-ring:#60a5fa;}@media (prefers-color-scheme:dark){:host{--x-collapse-border:1px solid #334155;--x-collapse-bg:#1e293b;--x-collapse-trigger-bg:#0f172a;--x-collapse-trigger-bg-hover:#1e293b;--x-collapse-trigger-color:#e2e8f0;--x-collapse-chevron-color:#94a3b8;--x-collapse-focus-ring:#93c5fd;}}[part\x3dcontainer]{box-sizing:border-box;border:var(--x-collapse-border);border-radius:var(--x-collapse-border-radius);background:var(--x-collapse-bg);overflow:hidden;}[part\x3dtrigger]{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;padding:var(--x-collapse-trigger-padding);background:var(--x-collapse-trigger-bg);color:var(--x-collapse-trigger-color);font-size:var(--x-collapse-font-size);font-weight:var(--x-collapse-font-weight);cursor:pointer;user-select:none;}[part\x3dtrigger][disabled]{cursor:default;opacity:0.55;}[part\x3dtrigger]:hover:not([disabled]){background:var(--x-collapse-trigger-bg-hover);}[part\x3dtrigger]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--x-collapse-focus-ring);}[part\x3dheader-text]{flex:1;text-align:start;}[part\x3dchevron]{display:inline-block;margin-inline-start:0.5rem;color:var(--x-collapse-chevron-color);transition:transform 200ms ease;flex-shrink:0;}:host([open]) [part\x3dchevron]{transform:rotate(180deg);}[part\x3dcontent]{overflow:hidden;height:0;}:host([open]) [part\x3dcontent]{height:auto;}[part\x3dcontent-inner]{padding:var(--x-collapse-content-padding);}@media (prefers-reduced-motion:reduce){[part\x3dcontent]{transition:none !important;}[part\x3dchevron]{transition:none !important;}}";
11
11
  e.setAttribute("part","container");g.setAttribute("part","trigger");g.setAttribute("type","button");g.setAttribute("id","trigger");g.setAttribute("aria-controls","panel");h.setAttribute("part","header-text");k.setAttribute("part","chevron");k.setAttribute("aria-hidden","true");m.setAttribute("part","content");m.setAttribute("id","panel");m.setAttribute("role","region");m.setAttribute("aria-labelledby","trigger");p.setAttribute("part","content-inner");q.setAttribute("name","content");k.textContent=
12
- "▼";g.appendChild(h);g.appendChild(k);p.appendChild(q);m.appendChild(p);e.appendChild(g);e.appendChild(m);c.appendChild(d);c.appendChild(e);this.__xCollapseRefs={root:c,trigger:g,"header-text":h,content:m}}lV(this);c=$APP.l(this,"__xCollapseRefs");$APP.n(c)&&(c=$APP.l(c,"trigger"),d=jV(this),e=kV(this),g={click:d,keydown:e},c.addEventListener("click",d),c.addEventListener("keydown",e),this.__xCollapseHandlers=g);return hV(this)};b.disconnectedCallback=function(){return lV(this)};b.attributeChangedCallback=
13
- function(c){a:{if($APP.n($APP.l(this,"__xCollapseRefs"))&&(hV(this),$APP.C.h(c,"open"))){c=$APP.l(this,"__xCollapseRefs");c=$APP.n(c)?$APP.l(c,"content"):null;var d=this.hasAttribute("open");c=$APP.n(c)?$APP.n(d)?fV(this,c):gV(this,c):null;break a}c=null}return c};return a},rV=function(){return $APP.n(customElements.get("x-collapse"))?null:customElements.define("x-collapse",qV())};var pV=["open","disabled","header","duration-ms"];$APP.Ed(["x-collapse-toggle",new $APP.R(null,2,[$APP.rk,!0,$APP.V,new $APP.R(null,2,[$APP.pk,$APP.Ni,$APP.Jj,$APP.Y],null)],null),"x-collapse-change",new $APP.R(null,2,[$APP.rk,!1,$APP.V,new $APP.R(null,1,[$APP.pk,$APP.Ni],null)],null)]);$APP.ja("baredom.exports.x_collapse.init",rV);export const init=rV;
12
+ "▼";g.appendChild(h);g.appendChild(k);p.appendChild(q);m.appendChild(p);e.appendChild(g);e.appendChild(m);c.appendChild(d);c.appendChild(e);this.__xCollapseRefs={root:c,trigger:g,"header-text":h,content:m}}TZ(this);c=$APP.l(this,"__xCollapseRefs");$APP.r(c)&&(c=$APP.l(c,"trigger"),d=RZ(this),e=SZ(this),g={click:d,keydown:e},c.addEventListener("click",d),c.addEventListener("keydown",e),this.__xCollapseHandlers=g);return PZ(this)};b.disconnectedCallback=function(){return TZ(this)};b.attributeChangedCallback=
13
+ function(c){a:{if($APP.r($APP.l(this,"__xCollapseRefs"))&&(PZ(this),$APP.D.i(c,"open"))){c=$APP.l(this,"__xCollapseRefs");c=$APP.r(c)?$APP.l(c,"content"):null;var d=this.hasAttribute("open");c=$APP.r(c)?$APP.r(d)?NZ(this,c):OZ(this,c):null;break a}c=null}return c};return a},ZZ=function(){return $APP.r(customElements.get("x-collapse"))?null:customElements.define("x-collapse",YZ())};var XZ=["open","disabled","header","duration-ms"];$APP.Sd(["x-collapse-toggle",new $APP.P(null,2,[$APP.kl,!0,$APP.U,new $APP.P(null,2,[$APP.hl,$APP.qj,$APP.yk,$APP.Y],null)],null),"x-collapse-change",new $APP.P(null,2,[$APP.kl,!1,$APP.U,new $APP.P(null,1,[$APP.hl,$APP.qj],null)],null)]);$APP.ka("baredom.exports.x_collapse.init",ZZ);export const init=ZZ;
@@ -1,33 +1,33 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Wq=function(a){if(a!=null&&a.ta!=null)a=a.ta(a);else{var b=Wq[$APP.da(a==null?null:a)];if(b!=null)a=b.g?b.g(a):b.call(null,a);else if(b=Wq._,b!=null)a=b.g?b.g(a):b.call(null,a);else throw $APP.ra("IStack.-pop",a);}return a},Xq=function(a,b){return $APP.qd($APP.Lc(function(c,d){return $APP.n(a.g?a.g(d):a.call(null,d))?$APP.kb(c,d):c},$APP.jb($APP.Td),b))},Yq=function(a){var b=/\s+/;a="/(?:)/"===""+$APP.T.g(b)?$APP.ad.h($APP.ke($APP.dd("",$APP.Od.h($APP.T,$APP.u(a)))),""):$APP.ke((""+$APP.T.g(a)).split(b));
3
- if(1<$APP.B(a))a:{for(;;)if(""===(a==null?null:$APP.Oa(a)))a=a==null?null:Wq(a);else break a;a=void 0}return a},Zq=function(a){return a==null?!0:$APP.O(a,"false")},$q=function(a){return typeof a==="string"?(a=a.trim(),$APP.O(a,"")?a:null):null},cr=function(a){if(a==null||$APP.r($APP.pa(a)))return $APP.Td;for(var b=a.length,c=0,d=$APP.jb($APP.Td);;){if($APP.C.h(c,b))return $APP.lb(d);var e=a[c],g=""+$APP.T.g(function(){var A=e.id;return $APP.n(A)?A:c}()),h=""+$APP.T.g(function(){var A=e.label;return $APP.n(A)?
4
- A:""}()),k=$q(e.group),m=e.value,p=e.icon,q=$APP.C.h(!0,e.disabled),v=e.keywords;v=$APP.n($APP.pa(v))?v.join(" "):typeof v==="string"?v:"";var x=function(){var A=k;return $APP.n(A)?A:""}(),y=typeof m==="string"?m:"";x=(""+$APP.T.g(h)+" "+$APP.T.g(v)+" "+$APP.T.g(x)+" "+$APP.T.g(y)).toLowerCase();v=c+1;d=$APP.rd(d,new $APP.R(null,7,[$APP.Oj,g,$APP.U,h,ar,k,$APP.Xh,m,$APP.tj,p,$APP.X,q,br,x],null));c=v}},er=function(a,b){b=typeof b==="string"?b.trim():"";var c=$APP.O(b,"")?$APP.Ld($q,Yq(b)):null;if($APP.wc(c))return new $APP.R(null,
5
- 2,[$APP.ak,a,dr,$APP.Je.h($APP.Jf,$APP.Ld(ar,a))],null);a=Xq(function(d){return $APP.Hd(function(e){return $APP.O(-1,br.g(d).indexOf(e.toLowerCase()))},c)},a);return new $APP.R(null,2,[$APP.ak,a,dr,$APP.Je.h($APP.Jf,$APP.Ld(ar,a))],null)},fr=function(a,b,c){var d=$APP.B(a);if(d>0)for(var e=1;;)if(e<=d){var g=$APP.Vc(b+e*c,d),h=$APP.E(a,g,null),k=h;h=$APP.n(k)?$APP.r($APP.X.g(h)):k;if($APP.n(h))return g;e+=1}else return null;else return null},sr=function(a){var b=$APP.N(a);a=$APP.I(b,$APP.Ih);var c=
6
- $APP.I(b,$APP.Qh),d=$APP.I(b,$APP.sh),e=$APP.I(b,gr),g=$APP.I(b,hr),h=$APP.I(b,ir),k=$APP.I(b,jr),m=$APP.I(b,kr),p=$APP.I(b,lr);b=$APP.I(b,mr);b=Zq(b);p=Zq(p);m=m!=null&&$APP.O(m,"false");m=b&&!m;g=g!=null?g!=null&&$APP.O(g,"false"):m;k=Zq(k);return $APP.mf([$APP.xk,$APP.Ph,nr,or,pr,qr,$APP.U,$APP.Ik,rr,$APP.X],[function(){var q=$q(c);return $APP.n(q)?q:"Search…"}(),p,function(){var q=$q(e);return $APP.n(q)?q:"No results"}(),g,k,m,$q(d),$APP.J(a),b,h!=null&&$APP.O(h,"false")])},tr=function(a){return document.createElement(a)},
7
- ur=function(a){return sr($APP.mf([$APP.sh,gr,hr,ir,jr,kr,lr,mr,$APP.Ih,$APP.Qh],[a.getAttribute("label"),a.getAttribute("empty-text"),a.getAttribute("close-on-scrim"),a.getAttribute("disabled"),a.getAttribute("close-on-escape"),a.getAttribute("no-scrim"),a.getAttribute("dismissible"),a.getAttribute("modal"),a.hasAttribute("open"),a.getAttribute("placeholder")]))},vr=function(a,b,c,d){b=new CustomEvent(b,{detail:d,bubbles:!0,composed:!0,cancelable:$APP.J(c)});a.dispatchEvent(b);return b},wr=function(a){var b=
8
- $APP.l(a,"__xCommandPaletteRefs");if($APP.n(b)){var c=$APP.l(b,"list"),d=$APP.l(b,"empty");b=$APP.l(b,"input");var e=function(){var q=$APP.l(a,"__xCommandPaletteQuery");return $APP.n(q)?q:""}(),g=cr($APP.l(a,"__xCommandPaletteItems"));e=er(g,e);e=$APP.N(e);g=$APP.I(e,$APP.ak);e=function(){var q=$APP.l(a,"__xCommandPaletteActiveIdx");return $APP.n(q)?q:0}();c.textContent="";if($APP.wc(g))return d.removeAttribute("hidden"),$APP.n(b)?b.removeAttribute("aria-activedescendant"):null;d.setAttribute("hidden",
9
- "");d=$APP.Kd($APP.Kg,g);for(var h=null;;)if(g=$APP.w(d),$APP.n(g)){var k=g;g=$APP.E(k,0,null);k=$APP.E(k,1,null);var m=ar.g(k);if($APP.n(function(){var q=m;return $APP.n(q)?$APP.O(m,h):q}())){var p=tr("div");p.setAttribute("part","group-header");p.setAttribute("aria-hidden","true");p.textContent=m;c.appendChild(p)}p=tr("div");p.setAttribute("part","item");p.setAttribute("role","option");p.setAttribute("id","x-cp-item-"+$APP.T.g(g));p.setAttribute("data-id",""+$APP.T.g($APP.Oj.g(k)));p.setAttribute("data-idx",
10
- ""+$APP.T.g(g));p.setAttribute("tabindex","-1");$APP.n($APP.X.g(k))&&p.setAttribute("aria-disabled","true");p.textContent=$APP.U.g(k);$APP.C.h(g,e)&&p.setAttribute("aria-selected","true");c.appendChild(p);d=$APP.Ob(d);h=g=function(){var q=m;return $APP.n(q)?q:h}()}else break;return $APP.n(b)?b.setAttribute("aria-activedescendant","x-cp-item-"+$APP.T.g(e)):null}return null},xr=function(a){var b=$APP.l(a,"__xCommandPaletteRefs");if($APP.n(b)){var c=ur(a),d=$APP.l(b,"panel"),e=$APP.l(b,"input"),g=$APP.l(b,
11
- "overlay");b=$APP.l(b,"empty");var h=$APP.U.g(c),k=$APP.xk.g(c),m=nr.g(c);$APP.n(h)?d.setAttribute("aria-label",h):d.setAttribute("aria-label","Command palette");$APP.n(qr.g(c))?g.removeAttribute("hidden"):g.setAttribute("hidden","");e.setAttribute("placeholder",k);e.setAttribute("aria-expanded",$APP.n($APP.Ik.g(c))?"true":"false");$APP.n($APP.X.g(c))&&(e.setAttribute("disabled",""),e.setAttribute("aria-disabled","true"));$APP.n($APP.X.g(c))||(e.removeAttribute("disabled"),e.removeAttribute("aria-disabled"));
12
- b.textContent=m;return wr(a)}return null},yr=function(a){if($APP.n(a.hasAttribute("open")))return null;var b=vr(a,"x-command-palette-open-request",!0,{});$APP.n(b.defaultPrevented)?a=null:(a.setAttribute("open",""),b=$APP.l(a,"__xCommandPaletteRefs"),b=$APP.n(b)?$APP.l(b,"input"):null,$APP.n(b)&&b.focus(),xr(a),a=vr(a,"x-command-palette-open",!1,{}));return a},zr=function(a){if($APP.n(a.hasAttribute("open"))){var b=vr(a,"x-command-palette-close-request",!0,{});$APP.n(b.defaultPrevented)?a=null:(a.removeAttribute("open"),
13
- b=$APP.l(a,"__xCommandPaletteRefs"),b=$APP.n(b)?$APP.l(b,"input"):null,$APP.n(b)&&b.removeAttribute("aria-activedescendant"),xr(a),a=vr(a,"x-command-palette-close",!1,{}));return a}return null},Ar=function(a){var b=$APP.l(a,"__xCommandPaletteQuery");b=$APP.n(b)?b:"";a=cr($APP.l(a,"__xCommandPaletteItems"));a=er(a,b);a=$APP.N(a);return $APP.I(a,$APP.ak)},Cr=function(a,b){var c=Ar(a);var d=$APP.l(a,"__xCommandPaletteActiveIdx");d=$APP.n(d)?d:0;$APP.C.h(b,Br)?(c=fr(c,$APP.n(d)?d:-1,1),c=$APP.n(c)?c:
14
- 0):(b=$APP.B(c),c=fr(c,$APP.n(d)?d:b,-1),c=$APP.n(c)?c:0);a.__xCommandPaletteActiveIdx=c;wr(a);a=$APP.l(a,"__xCommandPaletteRefs");a=$APP.n(a)?$APP.l(a,"list"):null;a=$APP.n(a)?a.querySelector("[data-idx\x3d'"+$APP.T.g(c)+"']"):null;return $APP.n(a)?a.scrollIntoView({block:"nearest"}):null},Er=function(a,b){var c=b.key;return $APP.C.h(c,"ArrowDown")?(b.preventDefault(),Cr(a,Br)):$APP.C.h(c,"ArrowUp")?(b.preventDefault(),Cr(a,Dr)):$APP.C.h(c,"Enter")?(b.preventDefault(),b=Ar(a),c=$APP.l(a,"__xCommandPaletteActiveIdx"),
15
- b=$APP.E(b,$APP.n(c)?c:0,null),$APP.n($APP.n(b)?$APP.r($APP.X.g(b)):b)?(c=vr(a,"x-command-palette-select-request",!0,{item:$APP.Sg(b)}),$APP.n(c.defaultPrevented)?a=null:(vr(a,"x-command-palette-select",!1,{item:$APP.Sg(b)}),a=zr(a))):a=null,a):$APP.C.h(c,"Escape")?(b=ur(a),$APP.n(pr.g(b))?zr(a):null):null},Fr=function(a){function b(){var q=$APP.l(a,"__xCommandPaletteRefs"),v=$APP.n(q)?$APP.l(q,"input"):null;q=$APP.n(q)?$APP.l(q,"clear-btn"):null;$APP.n(v)&&(v.value="");$APP.n(q)&&q.setAttribute("hidden",
16
- "");a.__xCommandPaletteQuery="";a.__xCommandPaletteActiveIdx=0;vr(a,"x-command-palette-query-change",!1,{query:""});wr(a);return $APP.n(v)?v.focus():null}function c(q){a:{q=q.target.closest("[part\x3ditem]");if($APP.n(q)){q=parseInt(q.getAttribute("data-idx"),10);var v=Ar(a);q=$APP.E(v,q,null);if($APP.n($APP.n(q)?$APP.r($APP.X.g(q)):q)){v=vr(a,"x-command-palette-select-request",!0,{item:$APP.Sg(q)});if($APP.n(v.defaultPrevented)){q=null;break a}vr(a,"x-command-palette-select",!1,{item:$APP.Sg(q)});
17
- q=zr(a);break a}}q=null}return q}function d(){var q=ur(a);return $APP.n(or.g(q))?zr(a):null}function e(q){return Er(a,q)}function g(){var q=$APP.l(a,"__xCommandPaletteRefs"),v=$APP.n(q)?$APP.l(q,"input"):null;q=$APP.n(q)?$APP.l(q,"clear-btn"):null;v=$APP.n(v)?v.value:null;a.__xCommandPaletteQuery=$APP.n(v)?v:"";a.__xCommandPaletteActiveIdx=0;$APP.n(q)&&($APP.n($APP.n(v)?$APP.O(v,""):v)?q.removeAttribute("hidden"):q.setAttribute("hidden",""));vr(a,"x-command-palette-query-change",!1,{query:$APP.n(v)?
18
- v:""});return wr(a)}var h=$APP.l(a,"__xCommandPaletteRefs"),k=$APP.l(h,"input"),m=$APP.l(h,"overlay"),p=$APP.l(h,"list");h=$APP.l(h,"clear-btn");k.addEventListener("input",g);k.addEventListener("keydown",e);m.addEventListener("click",d);p.addEventListener("click",c);h.addEventListener("click",b);$APP.ma(a,"__xCommandPaletteHandlers",{input:g,keydown:e,scrim:d,list:c,clear:b})},Gr=function(a){var b=$APP.l(a,"__xCommandPaletteRefs");a=$APP.l(a,"__xCommandPaletteHandlers");if($APP.n($APP.n(b)?a:b)){var c=
19
- $APP.l(b,"input"),d=$APP.l(b,"overlay"),e=$APP.l(b,"list");b=$APP.l(b,"clear-btn");c.removeEventListener("input",$APP.l(a,"input"));c.removeEventListener("keydown",$APP.l(a,"keydown"));d.removeEventListener("click",$APP.l(a,"scrim"));e.removeEventListener("click",$APP.l(a,"list"));return b.removeEventListener("click",$APP.l(a,"clear"))}return null},Hr=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n(d)?
20
- this.setAttribute(c,""):this.removeAttribute(c)}})},Ir=function(a){Object.defineProperty(a,"items",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xCommandPaletteItems");return $APP.n(b)?b:[]},set:function(b){this.__xCommandPaletteItems=b;this.__xCommandPaletteActiveIdx=0;return wr(this)}})},Jr=function(a){Object.defineProperty(a,"open",{configurable:!0,writable:!0,value:function(){return yr(this)}});Object.defineProperty(a,"close",{configurable:!0,writable:!0,value:function(){return zr(this)}});
21
- Object.defineProperty(a,"toggle",{configurable:!0,writable:!0,value:function(){return $APP.n(this.hasAttribute("open"))?zr(this):yr(this)}})},Lr=function(){var a=class extends HTMLElement{};a.observedAttributes=Kr;var b=a.prototype;Hr(b,"open","open");Hr(b,"disabled","disabled");Ir(b);Jr(b);b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xCommandPaletteRefs"))){var c=this.attachShadow({mode:"open"}),d=tr("style"),e=tr("div"),g=tr("div"),h=tr("div"),k=tr("span"),m=tr("input"),p=tr("button"),
22
- q=tr("div"),v=tr("div"),x=tr("div");d.textContent=":host{display:contents;}[part\x3doverlay]{display:none;position:fixed;inset:0;background:rgba(0,0,0,0.45);z-index:var(--x-command-palette-z,800);}[part\x3dpanel]{display:none;position:fixed;top:20vh;left:50%;transform:translateX(-50%);width:var(--x-command-palette-width,560px);max-height:60vh;z-index:calc(var(--x-command-palette-z,800) + 1);flex-direction:column;border-radius:var(--x-command-palette-radius,12px);background:var(--x-command-palette-bg,#fff);box-shadow:0 20px 60px rgba(0,0,0,0.25),0 4px 16px rgba(0,0,0,0.12);overflow:hidden;}:host([open]) [part\x3doverlay]{display:block;}:host([open]) [part\x3dpanel]{display:flex;}[part\x3dsearch-wrap]{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--x-command-palette-divider,rgba(0,0,0,0.08));}[part\x3dsearch-icon]{flex:none;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;color:var(--x-command-palette-icon-color,#64748b);}[part\x3dinput]{flex:1;border:none;outline:none;background:transparent;font-size:1rem;line-height:1.5;color:var(--x-command-palette-text,inherit);}[part\x3dinput]::placeholder{color:var(--x-command-palette-placeholder,#94a3b8);}[part\x3dclear-btn]{all:unset;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;color:var(--x-command-palette-icon-color,#64748b);}[part\x3dclear-btn]:focus-visible{outline:2px solid var(--x-command-palette-focus-ring,#60a5fa);}[part\x3dclear-btn][hidden]{display:none;}[part\x3dlist-wrap]{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:8px 0;}[part\x3dlist]{display:flex;flex-direction:column;}[part\x3ditem]{padding:10px 16px;cursor:default;font-size:0.9375rem;line-height:1.4;color:var(--x-command-palette-item-text,inherit);border-radius:0;outline:none;}[part\x3ditem]:hover,[part\x3ditem]:focus{background:var(--x-command-palette-item-hover,#f1f5f9);}[part\x3ditem][aria-selected\x3dtrue]{background:var(--x-command-palette-item-active,#e0e7ff);color:var(--x-command-palette-item-active-text,#3730a3);}[part\x3ditem][aria-disabled\x3dtrue]{opacity:0.45;cursor:default;pointer-events:none;}[part\x3dgroup-header]{padding:8px 16px 4px;font-size:0.75rem;font-weight:600;letter-spacing:0.05em;text-transform:uppercase;color:var(--x-command-palette-group-text,#94a3b8);}[part\x3dempty]{padding:32px 16px;text-align:center;color:var(--x-command-palette-empty-text,#94a3b8);font-size:0.9375rem;}[part\x3dempty][hidden]{display:none;}@media (prefers-color-scheme:dark){[part\x3dpanel]{background:var(--x-command-palette-bg,#1e293b);box-shadow:0 20px 60px rgba(0,0,0,0.6),0 4px 16px rgba(0,0,0,0.4);}[part\x3dsearch-wrap]{border-bottom-color:var(--x-command-palette-divider,rgba(255,255,255,0.08));}[part\x3ditem]:hover,[part\x3ditem]:focus{background:var(--x-command-palette-item-hover,#334155);}[part\x3ditem][aria-selected\x3dtrue]{background:var(--x-command-palette-item-active,#312e81);color:var(--x-command-palette-item-active-text,#c7d2fe);}}@media (prefers-reduced-motion:reduce){[part\x3dpanel],[part\x3doverlay]{transition:none;}}";
2
+ var Us=function(a){if(a!=null&&a.ua!=null)a=a.ua(a);else{var b=Us[$APP.ea(a==null?null:a)];if(b!=null)a=b.g?b.g(a):b.call(null,a);else if(b=Us._,b!=null)a=b.g?b.g(a):b.call(null,a);else throw $APP.qa("IStack.-pop",a);}return a},Vs=function(a,b){return $APP.Ed($APP.Zc(function(c,d){return $APP.r(a.g?a.g(d):a.call(null,d))?$APP.rb(c,d):c},$APP.qb($APP.ie),b))},Ws=function(a){var b=/\s+/;a="/(?:)/"===""+$APP.S.g(b)?$APP.od.i($APP.Be($APP.rd("",$APP.de.i($APP.S,$APP.u(a)))),""):$APP.Be((""+$APP.S.g(a)).split(b));
3
+ if(1<$APP.B(a))a:{for(;;)if(""===(a==null?null:$APP.Sa(a)))a=a==null?null:Us(a);else break a;a=void 0}return a},Xs=function(a){return a==null?!0:$APP.O(a,"false")},Ys=function(a){return typeof a==="string"?(a=a.trim(),$APP.O(a,"")?a:null):null},at=function(a){if(a==null||$APP.t($APP.oa(a)))return $APP.ie;for(var b=a.length,c=0,d=$APP.qb($APP.ie);;){if($APP.D.i(c,b))return $APP.sb(d);var e=a[c],g=""+$APP.S.g(function(){var A=e.id;return $APP.r(A)?A:c}()),h=""+$APP.S.g(function(){var A=e.label;return $APP.r(A)?
4
+ A:""}()),k=Ys(e.group),m=e.value,p=e.icon,q=$APP.D.i(!0,e.disabled),w=e.keywords;w=$APP.r($APP.oa(w))?w.join(" "):typeof w==="string"?w:"";var x=function(){var A=k;return $APP.r(A)?A:""}(),y=typeof m==="string"?m:"";x=(""+$APP.S.g(h)+" "+$APP.S.g(w)+" "+$APP.S.g(x)+" "+$APP.S.g(y)).toLowerCase();w=c+1;d=$APP.Fd(d,new $APP.P(null,7,[$APP.Dk,g,$APP.T,h,Zs,k,$APP.ui,m,$APP.Wj,p,$APP.W,q,$s,x],null));c=w}},ct=function(a,b){b=typeof b==="string"?b.trim():"";var c=$APP.O(b,"")?$APP.$d(Ys,Ws(b)):null;if($APP.Jc(c))return new $APP.P(null,
5
+ 2,[$APP.Pk,a,bt,$APP.af.i($APP.Xf,$APP.$d(Zs,a))],null);a=Vs(function(d){return $APP.Vd(function(e){return $APP.O(-1,$s.g(d).indexOf(e.toLowerCase()))},c)},a);return new $APP.P(null,2,[$APP.Pk,a,bt,$APP.af.i($APP.Xf,$APP.$d(Zs,a))],null)},dt=function(a,b,c){var d=$APP.B(a);if(d>0)for(var e=1;;)if(e<=d){var g=$APP.hd(b+e*c,d),h=$APP.Cc(a,g,null),k=h;h=$APP.r(k)?$APP.t($APP.W.g(h)):k;if($APP.r(h))return g;e+=1}else return null;else return null},qt=function(a){var b=$APP.N(a);a=$APP.G(b,$APP.ai);var c=
6
+ $APP.G(b,$APP.ii),d=$APP.G(b,$APP.Oh),e=$APP.G(b,et),g=$APP.G(b,ft),h=$APP.G(b,gt),k=$APP.G(b,ht),m=$APP.G(b,it),p=$APP.G(b,jt);b=$APP.G(b,kt);b=Xs(b);p=Xs(p);m=m!=null&&$APP.O(m,"false");m=b&&!m;g=g!=null?g!=null&&$APP.O(g,"false"):m;k=Xs(k);return $APP.Q([$APP.rl,$APP.hi,lt,mt,nt,ot,$APP.T,$APP.Dl,pt,$APP.W],[function(){var q=Ys(c);return $APP.r(q)?q:"Search…"}(),p,function(){var q=Ys(e);return $APP.r(q)?q:"No results"}(),g,k,m,Ys(d),$APP.I(a),b,h!=null&&$APP.O(h,"false")])},rt=function(a){return document.createElement(a)},
7
+ st=function(a){return qt($APP.Q([$APP.Oh,et,ft,gt,ht,it,jt,kt,$APP.ai,$APP.ii],[a.getAttribute("label"),a.getAttribute("empty-text"),a.getAttribute("close-on-scrim"),a.getAttribute("disabled"),a.getAttribute("close-on-escape"),a.getAttribute("no-scrim"),a.getAttribute("dismissible"),a.getAttribute("modal"),a.hasAttribute("open"),a.getAttribute("placeholder")]))},tt=function(a,b,c,d){b=new CustomEvent(b,{detail:d,bubbles:!0,composed:!0,cancelable:$APP.I(c)});a.dispatchEvent(b);return b},ut=function(a){var b=
8
+ $APP.l(a,"__xCommandPaletteRefs");if($APP.r(b)){var c=$APP.l(b,"list"),d=$APP.l(b,"empty");b=$APP.l(b,"input");var e=function(){var q=$APP.l(a,"__xCommandPaletteQuery");return $APP.r(q)?q:""}(),g=at($APP.l(a,"__xCommandPaletteItems"));e=ct(g,e);e=$APP.N(e);g=$APP.G(e,$APP.Pk);e=function(){var q=$APP.l(a,"__xCommandPaletteActiveIdx");return $APP.r(q)?q:0}();c.textContent="";if($APP.Jc(g))return d.removeAttribute("hidden"),$APP.r(b)?b.removeAttribute("aria-activedescendant"):null;d.setAttribute("hidden",
9
+ "");d=$APP.Zd($APP.ch,g);for(var h=null;;)if(g=$APP.v(d),$APP.r(g)){var k=g;g=$APP.Cc(k,0,null);k=$APP.Cc(k,1,null);var m=Zs.g(k);if($APP.r(function(){var q=m;return $APP.r(q)?$APP.O(m,h):q}())){var p=rt("div");p.setAttribute("part","group-header");p.setAttribute("aria-hidden","true");p.textContent=m;c.appendChild(p)}p=rt("div");p.setAttribute("part","item");p.setAttribute("role","option");p.setAttribute("id","x-cp-item-"+$APP.S.g(g));p.setAttribute("data-id",""+$APP.S.g($APP.Dk.g(k)));p.setAttribute("data-idx",
10
+ ""+$APP.S.g(g));p.setAttribute("tabindex","-1");$APP.r($APP.W.g(k))&&p.setAttribute("aria-disabled","true");p.textContent=$APP.T.g(k);$APP.D.i(g,e)&&p.setAttribute("aria-selected","true");c.appendChild(p);d=$APP.Zb(d);h=g=function(){var q=m;return $APP.r(q)?q:h}()}else break;return $APP.r(b)?b.setAttribute("aria-activedescendant","x-cp-item-"+$APP.S.g(e)):null}return null},vt=function(a){var b=$APP.l(a,"__xCommandPaletteRefs");if($APP.r(b)){var c=st(a),d=$APP.l(b,"panel"),e=$APP.l(b,"input"),g=$APP.l(b,
11
+ "overlay");b=$APP.l(b,"empty");var h=$APP.T.g(c),k=$APP.rl.g(c),m=lt.g(c);$APP.r(h)?d.setAttribute("aria-label",h):d.setAttribute("aria-label","Command palette");$APP.r(ot.g(c))?g.removeAttribute("hidden"):g.setAttribute("hidden","");e.setAttribute("placeholder",k);e.setAttribute("aria-expanded",$APP.r($APP.Dl.g(c))?"true":"false");$APP.r($APP.W.g(c))&&(e.setAttribute("disabled",""),e.setAttribute("aria-disabled","true"));$APP.r($APP.W.g(c))||(e.removeAttribute("disabled"),e.removeAttribute("aria-disabled"));
12
+ b.textContent=m;return ut(a)}return null},wt=function(a){if($APP.r(a.hasAttribute("open")))return null;var b=tt(a,"x-command-palette-open-request",!0,{});$APP.r(b.defaultPrevented)?a=null:(a.setAttribute("open",""),b=$APP.l(a,"__xCommandPaletteRefs"),b=$APP.r(b)?$APP.l(b,"input"):null,$APP.r(b)&&b.focus(),vt(a),a=tt(a,"x-command-palette-open",!1,{}));return a},xt=function(a){if($APP.r(a.hasAttribute("open"))){var b=tt(a,"x-command-palette-close-request",!0,{});$APP.r(b.defaultPrevented)?a=null:(a.removeAttribute("open"),
13
+ b=$APP.l(a,"__xCommandPaletteRefs"),b=$APP.r(b)?$APP.l(b,"input"):null,$APP.r(b)&&b.removeAttribute("aria-activedescendant"),vt(a),a=tt(a,"x-command-palette-close",!1,{}));return a}return null},yt=function(a){var b=$APP.l(a,"__xCommandPaletteQuery");b=$APP.r(b)?b:"";a=at($APP.l(a,"__xCommandPaletteItems"));a=ct(a,b);a=$APP.N(a);return $APP.G(a,$APP.Pk)},At=function(a,b){var c=yt(a);var d=$APP.l(a,"__xCommandPaletteActiveIdx");d=$APP.r(d)?d:0;$APP.D.i(b,zt)?(c=dt(c,$APP.r(d)?d:-1,1),c=$APP.r(c)?c:
14
+ 0):(b=$APP.B(c),c=dt(c,$APP.r(d)?d:b,-1),c=$APP.r(c)?c:0);a.__xCommandPaletteActiveIdx=c;ut(a);a=$APP.l(a,"__xCommandPaletteRefs");a=$APP.r(a)?$APP.l(a,"list"):null;a=$APP.r(a)?a.querySelector("[data-idx\x3d'"+$APP.S.g(c)+"']"):null;return $APP.r(a)?a.scrollIntoView({block:"nearest"}):null},Ct=function(a,b){var c=b.key;return $APP.D.i(c,"ArrowDown")?(b.preventDefault(),At(a,zt)):$APP.D.i(c,"ArrowUp")?(b.preventDefault(),At(a,Bt)):$APP.D.i(c,"Enter")?(b.preventDefault(),b=yt(a),c=$APP.l(a,"__xCommandPaletteActiveIdx"),
15
+ b=$APP.Cc(b,$APP.r(c)?c:0,null),$APP.r($APP.r(b)?$APP.t($APP.W.g(b)):b)?(c=tt(a,"x-command-palette-select-request",!0,{item:$APP.nh(b)}),$APP.r(c.defaultPrevented)?a=null:(tt(a,"x-command-palette-select",!1,{item:$APP.nh(b)}),a=xt(a))):a=null,a):$APP.D.i(c,"Escape")?(b=st(a),$APP.r(nt.g(b))?xt(a):null):null},Dt=function(a){function b(){var q=$APP.l(a,"__xCommandPaletteRefs"),w=$APP.r(q)?$APP.l(q,"input"):null;q=$APP.r(q)?$APP.l(q,"clear-btn"):null;$APP.r(w)&&(w.value="");$APP.r(q)&&q.setAttribute("hidden",
16
+ "");a.__xCommandPaletteQuery="";a.__xCommandPaletteActiveIdx=0;tt(a,"x-command-palette-query-change",!1,{query:""});ut(a);return $APP.r(w)?w.focus():null}function c(q){a:{q=q.target.closest("[part\x3ditem]");if($APP.r(q)){q=parseInt(q.getAttribute("data-idx"),10);var w=yt(a);q=$APP.Cc(w,q,null);if($APP.r($APP.r(q)?$APP.t($APP.W.g(q)):q)){w=tt(a,"x-command-palette-select-request",!0,{item:$APP.nh(q)});if($APP.r(w.defaultPrevented)){q=null;break a}tt(a,"x-command-palette-select",!1,{item:$APP.nh(q)});
17
+ q=xt(a);break a}}q=null}return q}function d(){var q=st(a);return $APP.r(mt.g(q))?xt(a):null}function e(q){return Ct(a,q)}function g(){var q=$APP.l(a,"__xCommandPaletteRefs"),w=$APP.r(q)?$APP.l(q,"input"):null;q=$APP.r(q)?$APP.l(q,"clear-btn"):null;w=$APP.r(w)?w.value:null;a.__xCommandPaletteQuery=$APP.r(w)?w:"";a.__xCommandPaletteActiveIdx=0;$APP.r(q)&&($APP.r($APP.r(w)?$APP.O(w,""):w)?q.removeAttribute("hidden"):q.setAttribute("hidden",""));tt(a,"x-command-palette-query-change",!1,{query:$APP.r(w)?
18
+ w:""});return ut(a)}var h=$APP.l(a,"__xCommandPaletteRefs"),k=$APP.l(h,"input"),m=$APP.l(h,"overlay"),p=$APP.l(h,"list");h=$APP.l(h,"clear-btn");k.addEventListener("input",g);k.addEventListener("keydown",e);m.addEventListener("click",d);p.addEventListener("click",c);h.addEventListener("click",b);$APP.n(a,"__xCommandPaletteHandlers",{input:g,keydown:e,scrim:d,list:c,clear:b})},Et=function(a){var b=$APP.l(a,"__xCommandPaletteRefs");a=$APP.l(a,"__xCommandPaletteHandlers");if($APP.r($APP.r(b)?a:b)){var c=
19
+ $APP.l(b,"input"),d=$APP.l(b,"overlay"),e=$APP.l(b,"list");b=$APP.l(b,"clear-btn");c.removeEventListener("input",$APP.l(a,"input"));c.removeEventListener("keydown",$APP.l(a,"keydown"));d.removeEventListener("click",$APP.l(a,"scrim"));e.removeEventListener("click",$APP.l(a,"list"));return b.removeEventListener("click",$APP.l(a,"clear"))}return null},Ft=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.r(d)?
20
+ this.setAttribute(c,""):this.removeAttribute(c)}})},Gt=function(a){Object.defineProperty(a,"items",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xCommandPaletteItems");return $APP.r(b)?b:[]},set:function(b){this.__xCommandPaletteItems=b;this.__xCommandPaletteActiveIdx=0;return ut(this)}})},Ht=function(a){Object.defineProperty(a,"open",{configurable:!0,writable:!0,value:function(){return wt(this)}});Object.defineProperty(a,"close",{configurable:!0,writable:!0,value:function(){return xt(this)}});
21
+ Object.defineProperty(a,"toggle",{configurable:!0,writable:!0,value:function(){return $APP.r(this.hasAttribute("open"))?xt(this):wt(this)}})},Jt=function(){var a=class extends HTMLElement{};a.observedAttributes=It;var b=a.prototype;Ft(b,"open","open");Ft(b,"disabled","disabled");Gt(b);Ht(b);b.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xCommandPaletteRefs"))){var c=this.attachShadow({mode:"open"}),d=rt("style"),e=rt("div"),g=rt("div"),h=rt("div"),k=rt("span"),m=rt("input"),p=rt("button"),
22
+ q=rt("div"),w=rt("div"),x=rt("div");d.textContent=":host{display:contents;}[part\x3doverlay]{display:none;position:fixed;inset:0;background:rgba(0,0,0,0.45);z-index:var(--x-command-palette-z,800);}[part\x3dpanel]{display:none;position:fixed;top:20vh;left:50%;transform:translateX(-50%);width:var(--x-command-palette-width,560px);max-height:60vh;z-index:calc(var(--x-command-palette-z,800) + 1);flex-direction:column;border-radius:var(--x-command-palette-radius,12px);background:var(--x-command-palette-bg,#fff);box-shadow:0 20px 60px rgba(0,0,0,0.25),0 4px 16px rgba(0,0,0,0.12);overflow:hidden;}:host([open]) [part\x3doverlay]{display:block;}:host([open]) [part\x3dpanel]{display:flex;}[part\x3dsearch-wrap]{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--x-command-palette-divider,rgba(0,0,0,0.08));}[part\x3dsearch-icon]{flex:none;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;color:var(--x-command-palette-icon-color,#64748b);}[part\x3dinput]{flex:1;border:none;outline:none;background:transparent;font-size:1rem;line-height:1.5;color:var(--x-command-palette-text,inherit);}[part\x3dinput]::placeholder{color:var(--x-command-palette-placeholder,#94a3b8);}[part\x3dclear-btn]{all:unset;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;color:var(--x-command-palette-icon-color,#64748b);}[part\x3dclear-btn]:focus-visible{outline:2px solid var(--x-command-palette-focus-ring,#60a5fa);}[part\x3dclear-btn][hidden]{display:none;}[part\x3dlist-wrap]{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:8px 0;}[part\x3dlist]{display:flex;flex-direction:column;}[part\x3ditem]{padding:10px 16px;cursor:default;font-size:0.9375rem;line-height:1.4;color:var(--x-command-palette-item-text,inherit);border-radius:0;outline:none;}[part\x3ditem]:hover,[part\x3ditem]:focus{background:var(--x-command-palette-item-hover,#f1f5f9);}[part\x3ditem][aria-selected\x3dtrue]{background:var(--x-command-palette-item-active,#e0e7ff);color:var(--x-command-palette-item-active-text,#3730a3);}[part\x3ditem][aria-disabled\x3dtrue]{opacity:0.45;cursor:default;pointer-events:none;}[part\x3dgroup-header]{padding:8px 16px 4px;font-size:0.75rem;font-weight:600;letter-spacing:0.05em;text-transform:uppercase;color:var(--x-command-palette-group-text,#94a3b8);}[part\x3dempty]{padding:32px 16px;text-align:center;color:var(--x-command-palette-empty-text,#94a3b8);font-size:0.9375rem;}[part\x3dempty][hidden]{display:none;}@media (prefers-color-scheme:dark){[part\x3dpanel]{background:var(--x-command-palette-bg,#1e293b);box-shadow:0 20px 60px rgba(0,0,0,0.6),0 4px 16px rgba(0,0,0,0.4);}[part\x3dsearch-wrap]{border-bottom-color:var(--x-command-palette-divider,rgba(255,255,255,0.08));}[part\x3ditem]:hover,[part\x3ditem]:focus{background:var(--x-command-palette-item-hover,#334155);}[part\x3ditem][aria-selected\x3dtrue]{background:var(--x-command-palette-item-active,#312e81);color:var(--x-command-palette-item-active-text,#c7d2fe);}}@media (prefers-reduced-motion:reduce){[part\x3dpanel],[part\x3doverlay]{transition:none;}}";
23
23
  e.setAttribute("part","overlay");g.setAttribute("part","panel");g.setAttribute("role","dialog");g.setAttribute("aria-modal","true");h.setAttribute("part","search-wrap");k.setAttribute("part","search-icon");k.setAttribute("aria-hidden","true");k.textContent="\ud83d\udd0d";m.setAttribute("part","input");m.setAttribute("type","search");m.setAttribute("role","combobox");m.setAttribute("autocomplete","off");m.setAttribute("autocorrect","off");m.setAttribute("spellcheck","false");m.setAttribute("aria-autocomplete",
24
- "list");m.setAttribute("aria-expanded","false");m.setAttribute("aria-controls","x-cp-list");p.setAttribute("part","clear-btn");p.setAttribute("type","button");p.setAttribute("aria-label","Clear");p.setAttribute("hidden","");q.setAttribute("part","list-wrap");v.setAttribute("part","list");v.setAttribute("id","x-cp-list");v.setAttribute("role","listbox");v.setAttribute("aria-label","Results");x.setAttribute("part","empty");x.setAttribute("hidden","");h.appendChild(k);h.appendChild(m);h.appendChild(p);
25
- q.appendChild(v);q.appendChild(x);g.appendChild(h);g.appendChild(q);c.appendChild(d);c.appendChild(e);c.appendChild(g);this.__xCommandPaletteRefs={overlay:e,panel:g,input:m,"clear-btn":p,list:v,empty:x}}Gr(this);Fr(this);return xr(this)};b.disconnectedCallback=function(){return Gr(this)};b.attributeChangedCallback=function(){return xr(this)};return a},Mr=function(){return $APP.n(customElements.get("x-command-palette"))?null:customElements.define("x-command-palette",Lr())},Nr=function Nr(a,b,c){var e=
26
- a.j-2>>>b&31;if(b>5){b-=5;var g=c.i[e];a=Nr.m?Nr.m(a,b,g):Nr.call(null,a,b,g);if(a==null&&e===0)return null;c=$APP.Yd(c);c.i[e]=a;return c}if(e===0)return null;c=$APP.Yd(c);c.i[e]=null;return c};$APP.Zc.prototype.ta=$APP.ca(41,function(){return this.ga(null)});$APP.$c.prototype.ta=$APP.ca(40,function(){throw Error("Can't pop empty list");});
27
- $APP.Q.prototype.ta=$APP.ca(39,function(){if(this.j===0)throw Error("Can't pop empty vector");if(1===this.j)return $APP.Ta($APP.Td,this.s);if(1<this.j-$APP.Zd(this))return new $APP.Q(this.s,this.j-1,this.shift,this.root,this.na.slice(0,-1),null);var a=$APP.ae(this,this.j-2),b=Nr(this,this.shift,this.root);b=b==null?$APP.fe:b;var c=this.j-1;return 5<this.shift&&b.i[1]==null?new $APP.Q(this.s,c,this.shift-5,b.i[0],a,null):new $APP.Q(this.s,c,this.shift,b,a,null)});
28
- $APP.Ce.prototype.ta=$APP.ca(38,function(){return new $APP.Q(null,1,5,$APP.fe,[this.key],null)});$APP.sf.prototype.ta=$APP.ca(37,function(){return new $APP.Q(null,1,5,$APP.fe,[this.key],null)});$APP.tf.prototype.ta=$APP.ca(36,function(){return new $APP.Q(null,1,5,$APP.fe,[this.key],null)});
29
- var nr=new $APP.M(null,"empty-text","empty-text",1554384594),hr=new $APP.M(null,"close-on-scrim-raw","close-on-scrim-raw",159828234),gr=new $APP.M(null,"empty-text-raw","empty-text-raw",1477406757),lr=new $APP.M(null,"dismissible-raw","dismissible-raw",947680658),mr=new $APP.M(null,"modal-raw","modal-raw",-263722282),pr=new $APP.M(null,"close-on-escape?","close-on-escape?",-1559868909),dr=new $APP.M(null,"groups","groups",-136896102),jr=new $APP.M(null,"close-on-escape-raw","close-on-escape-raw",
30
- -1942646255),qr=new $APP.M(null,"scrim?","scrim?",744210580),kr=new $APP.M(null,"no-scrim-raw","no-scrim-raw",-1344365743),Or=new $APP.M(null,"item","item",249373802),or=new $APP.M(null,"close-on-scrim?","close-on-scrim?",-367113965),Pr=new $APP.Hb(null,"object","object",-1179821820,null),ar=new $APP.M(null,"group","group",582596132),Br=new $APP.M(null,"down","down",1565245570),br=new $APP.M(null,"search-str","search-str",-821246171),Dr=new $APP.M(null,"up","up",-269712113),rr=new $APP.M(null,"modal?",
31
- "modal?",2146094679),ir=new $APP.M(null,"disabled-raw","disabled-raw",498098381);var Kr="open modal dismissible disabled no-scrim close-on-scrim close-on-escape label placeholder empty-text".split(" ");
32
- $APP.Ed(["x-command-palette-open-request",new $APP.R(null,2,[$APP.rk,!0,$APP.V,$APP.Fd],null),"x-command-palette-open",new $APP.R(null,2,[$APP.rk,!1,$APP.V,$APP.Fd],null),"x-command-palette-close-request",new $APP.R(null,2,[$APP.rk,!0,$APP.V,$APP.Fd],null),"x-command-palette-close",new $APP.R(null,2,[$APP.rk,!1,$APP.V,$APP.Fd],null),"x-command-palette-select-request",new $APP.R(null,2,[$APP.rk,!0,$APP.V,new $APP.R(null,1,[Or,Pr],null)],null),"x-command-palette-select",new $APP.R(null,2,[$APP.rk,!1,
33
- $APP.V,new $APP.R(null,1,[Or,Pr],null)],null),"x-command-palette-query-change",new $APP.R(null,2,[$APP.rk,!1,$APP.V,new $APP.R(null,1,[new $APP.M(null,"query","query",-1288509510),$APP.Y],null)],null)]);$APP.ja("baredom.exports.x_command_palette.init",Mr);export const init=Mr;
24
+ "list");m.setAttribute("aria-expanded","false");m.setAttribute("aria-controls","x-cp-list");p.setAttribute("part","clear-btn");p.setAttribute("type","button");p.setAttribute("aria-label","Clear");p.setAttribute("hidden","");q.setAttribute("part","list-wrap");w.setAttribute("part","list");w.setAttribute("id","x-cp-list");w.setAttribute("role","listbox");w.setAttribute("aria-label","Results");x.setAttribute("part","empty");x.setAttribute("hidden","");h.appendChild(k);h.appendChild(m);h.appendChild(p);
25
+ q.appendChild(w);q.appendChild(x);g.appendChild(h);g.appendChild(q);c.appendChild(d);c.appendChild(e);c.appendChild(g);this.__xCommandPaletteRefs={overlay:e,panel:g,input:m,"clear-btn":p,list:w,empty:x}}Et(this);Dt(this);return vt(this)};b.disconnectedCallback=function(){return Et(this)};b.attributeChangedCallback=function(){return vt(this)};return a},Kt=function(){return $APP.r(customElements.get("x-command-palette"))?null:customElements.define("x-command-palette",Jt())},Lt=function Lt(a,b,c){var e=
26
+ a.l-2>>>b&31;if(b>5){b-=5;var g=c.j[e];a=Lt.o?Lt.o(a,b,g):Lt.call(null,a,b,g);if(a==null&&e===0)return null;c=$APP.ne(c);c.j[e]=a;return c}if(e===0)return null;c=$APP.ne(c);c.j[e]=null;return c};$APP.md.prototype.ua=$APP.ca(12,function(){return this.ia(null)});$APP.nd.prototype.ua=$APP.ca(11,function(){throw Error("Can't pop empty list");});
27
+ $APP.ve.prototype.ua=$APP.ca(10,function(){if(this.l===0)throw Error("Can't pop empty vector");if(1===this.l)return $APP.Za($APP.ie,this.u);if(1<this.l-$APP.oe(this))return new $APP.ve(this.u,this.l-1,this.shift,this.root,this.oa.slice(0,-1),null);var a=$APP.qe(this,this.l-2),b=Lt(this,this.shift,this.root);b=b==null?$APP.we:b;var c=this.l-1;return 5<this.shift&&b.j[1]==null?new $APP.ve(this.u,c,this.shift-5,b.j[0],a,null):new $APP.ve(this.u,c,this.shift,b,a,null)});
28
+ $APP.Ue.prototype.ua=$APP.ca(9,function(){return new $APP.ve(null,1,5,$APP.we,[this.key],null)});$APP.Kf.prototype.ua=$APP.ca(8,function(){return new $APP.ve(null,1,5,$APP.we,[this.key],null)});$APP.Jf.prototype.ua=$APP.ca(7,function(){return new $APP.ve(null,1,5,$APP.we,[this.key],null)});
29
+ var lt=new $APP.M(null,"empty-text","empty-text",1554384594),ft=new $APP.M(null,"close-on-scrim-raw","close-on-scrim-raw",159828234),et=new $APP.M(null,"empty-text-raw","empty-text-raw",1477406757),jt=new $APP.M(null,"dismissible-raw","dismissible-raw",947680658),kt=new $APP.M(null,"modal-raw","modal-raw",-263722282),nt=new $APP.M(null,"close-on-escape?","close-on-escape?",-1559868909),bt=new $APP.M(null,"groups","groups",-136896102),ht=new $APP.M(null,"close-on-escape-raw","close-on-escape-raw",
30
+ -1942646255),ot=new $APP.M(null,"scrim?","scrim?",744210580),it=new $APP.M(null,"no-scrim-raw","no-scrim-raw",-1344365743),mt=new $APP.M(null,"close-on-scrim?","close-on-scrim?",-367113965),Mt=new $APP.Sb(null,"object","object",-1179821820,null),Zs=new $APP.M(null,"group","group",582596132),zt=new $APP.M(null,"down","down",1565245570),$s=new $APP.M(null,"search-str","search-str",-821246171),Bt=new $APP.M(null,"up","up",-269712113),pt=new $APP.M(null,"modal?","modal?",2146094679),gt=new $APP.M(null,
31
+ "disabled-raw","disabled-raw",498098381);var It="open modal dismissible disabled no-scrim close-on-scrim close-on-escape label placeholder empty-text".split(" ");
32
+ $APP.Sd(["x-command-palette-open-request",new $APP.P(null,2,[$APP.kl,!0,$APP.U,$APP.Td],null),"x-command-palette-open",new $APP.P(null,2,[$APP.kl,!1,$APP.U,$APP.Td],null),"x-command-palette-close-request",new $APP.P(null,2,[$APP.kl,!0,$APP.U,$APP.Td],null),"x-command-palette-close",new $APP.P(null,2,[$APP.kl,!1,$APP.U,$APP.Td],null),"x-command-palette-select-request",new $APP.P(null,2,[$APP.kl,!0,$APP.U,new $APP.P(null,1,[$APP.Dj,Mt],null)],null),"x-command-palette-select",new $APP.P(null,2,[$APP.kl,
33
+ !1,$APP.U,new $APP.P(null,1,[$APP.Dj,Mt],null)],null),"x-command-palette-query-change",new $APP.P(null,2,[$APP.kl,!1,$APP.U,new $APP.P(null,1,[new $APP.M(null,"query","query",-1288509510),$APP.Y],null)],null)]);$APP.ka("baredom.exports.x_command_palette.init",Kt);export const init=Kt;
@@ -1,7 +1,7 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var TD=function(a,b,c){return typeof a==="string"&&$APP.K(b,a)?a:c},UD=function(a){return a.__xContainerState},VD=function(a){Object.defineProperty(a,"fluid",{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute("fluid")},set:function(b){return $APP.n($APP.J(b))?this.setAttribute("fluid",""):this.removeAttribute("fluid")}})},WD=function(a){Object.defineProperty(a,"center",{configurable:!0,enumerable:!0,get:function(){return $APP.O("false",this.getAttribute("center"))},set:function(b){return $APP.J(b)?
3
- this.removeAttribute("center"):this.setAttribute("center","false")}})},cE=function(a,b){var c=a.getAttribute("as"),d=a.getAttribute("size"),e=a.getAttribute("padding"),g=$APP.O("false",a.getAttribute("center"));a=new $APP.R(null,6,[XD,c,$APP.Wg,d,$APP.Hk,e,YD,g,ZD,a.hasAttribute("fluid"),$APP.U,a.getAttribute("label")],null);var h=$APP.N(a);a=$APP.I(h,XD);c=$APP.I(h,$APP.Wg);d=$APP.I(h,$APP.Hk);e=$APP.I(h,YD);g=$APP.I(h,ZD);h=$APP.I(h,$APP.U);a=new $APP.R(null,6,[XD,TD(a,$D,"div"),$APP.Wg,TD(c,aE,
4
- "lg"),$APP.Hk,TD(d,bE,"md"),YD,$APP.J(e),ZD,$APP.J(g),$APP.U,typeof h==="string"&&$APP.O(h,"")?h:null],null);g=XD.g(a);c=b.base;$APP.O(c.tagName.toLowerCase(),g)&&(d=b.root,e=b.slot,g=document.createElement(g),g.setAttribute("part","base"),g.appendChild(e),d.replaceChild(g,c),b.base=g);b=b.base;b.setAttribute("data-size",$APP.Wg.g(a));b.setAttribute("data-padding",$APP.Hk.g(a));b.setAttribute("data-center",$APP.n(YD.g(a))?"true":"false");b.setAttribute("data-fluid",$APP.n(ZD.g(a))?"true":"false");
5
- a=$APP.U.g(a);return $APP.n(a)?b.setAttribute("aria-label",a):b.removeAttribute("aria-label")},eE=function(){var a=class extends HTMLElement{};a.observedAttributes=dE;a.prototype.connectedCallback=function(){if(!$APP.n(UD(this))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent="\n :host{\n display:block;\n color-scheme:light dark;\n\n --x-container-max-width-xs:480px;\n --x-container-max-width-sm:640px;\n --x-container-max-width-md:768px;\n --x-container-max-width-lg:1024px;\n --x-container-max-width-xl:1280px;\n\n --x-container-padding-sm:0.5rem;\n --x-container-padding-md:1rem;\n --x-container-padding-lg:1.5rem;\n\n --x-container-padding-block:0;\n --x-container-margin-inline:auto;\n\n --x-container-bg:transparent;\n --x-container-color:#0f172a;\n --x-container-border:transparent;\n --x-container-radius:0;\n --x-container-shadow:none;\n }\n\n @media (prefers-color-scheme: dark){\n :host{\n --x-container-bg:transparent;\n --x-container-color:#e5e7eb;\n --x-container-border:transparent;\n --x-container-radius:0;\n --x-container-shadow:none;\n }\n }\n\n [part\x3d'base']{\n display:block;\n box-sizing:border-box;\n width:100%;\n max-width:var(--x-container-max-width-lg);\n padding-inline:var(--x-container-padding-md);\n padding-block:var(--x-container-padding-block);\n margin-inline:0;\n background:var(--x-container-bg);\n color:var(--x-container-color);\n border:1px solid var(--x-container-border);\n border-radius:var(--x-container-radius);\n box-shadow:var(--x-container-shadow);\n }\n\n [part\x3d'base'][data-size\x3d'xs']{max-width:var(--x-container-max-width-xs);}\n [part\x3d'base'][data-size\x3d'sm']{max-width:var(--x-container-max-width-sm);}\n [part\x3d'base'][data-size\x3d'md']{max-width:var(--x-container-max-width-md);}\n [part\x3d'base'][data-size\x3d'lg']{max-width:var(--x-container-max-width-lg);}\n [part\x3d'base'][data-size\x3d'xl']{max-width:var(--x-container-max-width-xl);}\n [part\x3d'base'][data-size\x3d'full']{max-width:none;width:100%;}\n\n [part\x3d'base'][data-padding\x3d'none']{padding-inline:0;}\n [part\x3d'base'][data-padding\x3d'sm']{padding-inline:var(--x-container-padding-sm);}\n [part\x3d'base'][data-padding\x3d'md']{padding-inline:var(--x-container-padding-md);}\n [part\x3d'base'][data-padding\x3d'lg']{padding-inline:var(--x-container-padding-lg);}\n\n [part\x3d'base'][data-center\x3d'true']{\n margin-inline:var(--x-container-margin-inline);\n }\n\n [part\x3d'base'][data-center\x3d'false']{\n margin-inline:0;\n }\n\n [part\x3d'base'][data-fluid\x3d'true']{\n max-width:none;\n width:100%;\n }\n\n ";
6
- d.setAttribute("part","base");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__xContainerState={root:b,base:d,slot:e}}return cE(this,UD(this))};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(){var b=UD(this);return $APP.n(b)?cE(this,b):null};WD(a.prototype);VD(a.prototype);return a},fE=function(){$APP.n(customElements.get("x-container"))||customElements.define("x-container",eE());return null},ZD=new $APP.M(null,"fluid","fluid",-1823657759),
7
- XD=new $APP.M(null,"as","as",1148689641),YD=new $APP.M(null,"center","center",-748944368);var $D=new $APP.S(null,new $APP.R(null,8,["article",null,"footer",null,"section",null,"main",null,"nav",null,"div",null,"aside",null,"header",null],null),null),aE=new $APP.S(null,new $APP.R(null,6,["xs",null,"md",null,"lg",null,"full",null,"xl",null,"sm",null],null),null),bE=new $APP.S(null,new $APP.R(null,4,["none",null,"md",null,"lg",null,"sm",null],null),null),dE="as size padding center fluid label".split(" ");$APP.ja("baredom.exports.x_container.init",fE);export const init=fE;
2
+ var QG=function(a,b,c){return typeof a==="string"&&$APP.J(b,a)?a:c},RG=function(a){return a.__xContainerState},SG=function(a){Object.defineProperty(a,"fluid",{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute("fluid")},set:function(b){return $APP.r($APP.I(b))?this.setAttribute("fluid",""):this.removeAttribute("fluid")}})},TG=function(a){Object.defineProperty(a,"center",{configurable:!0,enumerable:!0,get:function(){return $APP.O("false",this.getAttribute("center"))},set:function(b){return $APP.I(b)?
3
+ this.removeAttribute("center"):this.setAttribute("center","false")}})},$G=function(a,b){var c=a.getAttribute("as"),d=a.getAttribute("size"),e=a.getAttribute("padding"),g=$APP.O("false",a.getAttribute("center"));a=new $APP.P(null,6,[UG,c,$APP.rh,d,$APP.Cl,e,VG,g,WG,a.hasAttribute("fluid"),$APP.T,a.getAttribute("label")],null);var h=$APP.N(a);a=$APP.G(h,UG);c=$APP.G(h,$APP.rh);d=$APP.G(h,$APP.Cl);e=$APP.G(h,VG);g=$APP.G(h,WG);h=$APP.G(h,$APP.T);a=new $APP.P(null,6,[UG,QG(a,XG,"div"),$APP.rh,QG(c,YG,
4
+ "lg"),$APP.Cl,QG(d,ZG,"md"),VG,$APP.I(e),WG,$APP.I(g),$APP.T,typeof h==="string"&&$APP.O(h,"")?h:null],null);g=UG.g(a);c=b.base;$APP.O(c.tagName.toLowerCase(),g)&&(d=b.root,e=b.slot,g=document.createElement(g),g.setAttribute("part","base"),g.appendChild(e),d.replaceChild(g,c),b.base=g);b=b.base;b.setAttribute("data-size",$APP.rh.g(a));b.setAttribute("data-padding",$APP.Cl.g(a));b.setAttribute("data-center",$APP.r(VG.g(a))?"true":"false");b.setAttribute("data-fluid",$APP.r(WG.g(a))?"true":"false");
5
+ a=$APP.T.g(a);return $APP.r(a)?b.setAttribute("aria-label",a):b.removeAttribute("aria-label")},bH=function(){var a=class extends HTMLElement{};a.observedAttributes=aH;a.prototype.connectedCallback=function(){if(!$APP.r(RG(this))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent="\n :host{\n display:block;\n color-scheme:light dark;\n\n --x-container-max-width-xs:480px;\n --x-container-max-width-sm:640px;\n --x-container-max-width-md:768px;\n --x-container-max-width-lg:1024px;\n --x-container-max-width-xl:1280px;\n\n --x-container-padding-sm:0.5rem;\n --x-container-padding-md:1rem;\n --x-container-padding-lg:1.5rem;\n\n --x-container-padding-block:0;\n --x-container-margin-inline:auto;\n\n --x-container-bg:transparent;\n --x-container-color:#0f172a;\n --x-container-border:transparent;\n --x-container-radius:0;\n --x-container-shadow:none;\n }\n\n @media (prefers-color-scheme: dark){\n :host{\n --x-container-bg:transparent;\n --x-container-color:#e5e7eb;\n --x-container-border:transparent;\n --x-container-radius:0;\n --x-container-shadow:none;\n }\n }\n\n [part\x3d'base']{\n display:block;\n box-sizing:border-box;\n width:100%;\n max-width:var(--x-container-max-width-lg);\n padding-inline:var(--x-container-padding-md);\n padding-block:var(--x-container-padding-block);\n margin-inline:0;\n background:var(--x-container-bg);\n color:var(--x-container-color);\n border:1px solid var(--x-container-border);\n border-radius:var(--x-container-radius);\n box-shadow:var(--x-container-shadow);\n }\n\n [part\x3d'base'][data-size\x3d'xs']{max-width:var(--x-container-max-width-xs);}\n [part\x3d'base'][data-size\x3d'sm']{max-width:var(--x-container-max-width-sm);}\n [part\x3d'base'][data-size\x3d'md']{max-width:var(--x-container-max-width-md);}\n [part\x3d'base'][data-size\x3d'lg']{max-width:var(--x-container-max-width-lg);}\n [part\x3d'base'][data-size\x3d'xl']{max-width:var(--x-container-max-width-xl);}\n [part\x3d'base'][data-size\x3d'full']{max-width:none;width:100%;}\n\n [part\x3d'base'][data-padding\x3d'none']{padding-inline:0;}\n [part\x3d'base'][data-padding\x3d'sm']{padding-inline:var(--x-container-padding-sm);}\n [part\x3d'base'][data-padding\x3d'md']{padding-inline:var(--x-container-padding-md);}\n [part\x3d'base'][data-padding\x3d'lg']{padding-inline:var(--x-container-padding-lg);}\n\n [part\x3d'base'][data-center\x3d'true']{\n margin-inline:var(--x-container-margin-inline);\n }\n\n [part\x3d'base'][data-center\x3d'false']{\n margin-inline:0;\n }\n\n [part\x3d'base'][data-fluid\x3d'true']{\n max-width:none;\n width:100%;\n }\n\n ";
6
+ d.setAttribute("part","base");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__xContainerState={root:b,base:d,slot:e}}return $G(this,RG(this))};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(){var b=RG(this);return $APP.r(b)?$G(this,b):null};TG(a.prototype);SG(a.prototype);return a},cH=function(){$APP.r(customElements.get("x-container"))||customElements.define("x-container",bH());return null},WG=new $APP.M(null,"fluid","fluid",-1823657759),
7
+ UG=new $APP.M(null,"as","as",1148689641),VG=new $APP.M(null,"center","center",-748944368);var XG=new $APP.R(null,new $APP.P(null,8,["article",null,"footer",null,"section",null,"main",null,"nav",null,"div",null,"aside",null,"header",null],null),null),YG=new $APP.R(null,new $APP.P(null,6,["xs",null,"md",null,"lg",null,"full",null,"xl",null,"sm",null],null),null),ZG=new $APP.R(null,new $APP.P(null,4,["none",null,"md",null,"lg",null,"sm",null],null),null),aH="as size padding center fluid label".split(" ");$APP.ka("baredom.exports.x_container.init",cH);export const init=cH;
@@ -1,20 +1,20 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var kT=function(a,b){return typeof a==="string"?(a=parseInt(a,10),$APP.r(isNaN(a))&&a>0?a:b):b},lT=function(a){return $APP.C.h(a,"bottom-start")?"top-start":$APP.C.h(a,"bottom-end")?"top-end":$APP.C.h(a,"top-start")?"bottom-start":$APP.C.h(a,"top-end")?"bottom-end":$APP.C.h(a,"right-start")?"left-start":$APP.C.h(a,"left-start")?"right-start":a},mT=function(a,b,c,d){var e=$APP.N(c);c=$APP.I(e,$APP.Zj);var g=$APP.I(e,$APP.Yj),h=$APP.I(e,$APP.lj);e=$APP.I(e,$APP.Mi);var k=$APP.N(d);d=$APP.I(k,$APP.lj);
3
- k=$APP.I(k,$APP.Mi);switch(a){case "bottom-start":return new $APP.R(null,2,[$APP.Zj,c,$APP.Yj,g+e+b],null);case "bottom-end":return new $APP.R(null,2,[$APP.Zj,c+h-d,$APP.Yj,g+e+b],null);case "top-start":return new $APP.R(null,2,[$APP.Zj,c,$APP.Yj,g-k-b],null);case "top-end":return new $APP.R(null,2,[$APP.Zj,c+h-d,$APP.Yj,g-k-b],null);case "right-start":return new $APP.R(null,2,[$APP.Zj,c+h+b,$APP.Yj,g],null);case "left-start":return new $APP.R(null,2,[$APP.Zj,c-d-b,$APP.Yj,g],null);default:return new $APP.R(null,
4
- 2,[$APP.Zj,c,$APP.Yj,g+e+b],null)}},qT=function(a,b,c,d,e){function g(x){var y=mT(x,b,c,d);y=$APP.N(y);var A=$APP.I(y,$APP.Zj),D=$APP.I(y,$APP.Yj);y=A>=8&&A+m<=h-8;var G=D>=8&&D+p<=k-8;A=$APP.Gg.h($APP.Fg.h(A,8),h-m-8);D=$APP.Gg.h($APP.Fg.h(D,8),k-p-8);return new $APP.R(null,5,[$APP.Zj,A,$APP.Yj,D,nT,x,oT,y&&G,pT,$APP.Fg.h(40,k-D-8)],null)}e=$APP.N(e);var h=$APP.I(e,$APP.lj),k=$APP.I(e,$APP.Mi);e=$APP.N(d);var m=$APP.I(e,$APP.lj),p=$APP.I(e,$APP.Mi),q=g(a),v=g(lT(a));return $APP.n(function(){var x=
5
- oT.g(q);return $APP.n(x)?x:$APP.r(oT.g(v))}())?q:v},vT=function(a){a=new $APP.R(null,5,[$APP.Ih,$APP.n(a.hasAttribute("open"))?a.getAttribute("open"):null,$APP.ck,$APP.n(a.hasAttribute("disabled"))?a.getAttribute("disabled"):null,$APP.Yk,a.getAttribute("placement"),rT,a.getAttribute("offset"),sT,a.getAttribute("z-index")],null);var b=$APP.N(a),c=$APP.I(b,$APP.Ih),d=$APP.I(b,$APP.ck),e=$APP.I(b,$APP.Yk);a=$APP.I(b,rT);b=$APP.I(b,sT);c=c!=null&&$APP.O(c,"false");d=d!=null&&$APP.O(d,"false");e=typeof e===
6
- "string"&&$APP.K(tT,e)?e:"bottom-start";return new $APP.R(null,5,[$APP.Ik,c,$APP.X,d,$APP.Ei,e,$APP.vh,kT(a,8),uT,kT(b,1E3)],null)},wT=function(a,b,c,d){b=new CustomEvent(b,{detail:d,bubbles:!0,composed:!0,cancelable:c});a.dispatchEvent(b);return $APP.r(b.defaultPrevented)},xT=function(a){return $APP.kc(a.querySelectorAll("[role\x3dmenuitem]:not([disabled]):not([aria-disabled\x3dtrue])"))},yT=function(a){return $APP.n(a)?a.focus():null},zT=function(a){var b=document.getElementById("__xOverlayRoot");
7
- $APP.n(b)||(b=document.createElement("div"),b.setAttribute("id","__xOverlayRoot"),b.style.position="fixed",b.style.inset="0",b.style.pointerEvents="none",b.style.zIndex="0",document.body.appendChild(b));var c=document.createElement("div"),d=c.attachShadow({mode:"open"}),e=document.createElement("style"),g=document.createElement("div");c.style.position="fixed";c.style.inset="0";c.style.pointerEvents="none";c.style.zIndex=""+$APP.T.g(a);e.textContent=":host{color-scheme:light dark;--x-context-menu-bg:rgba(255,255,255,0.97);--x-context-menu-border:rgba(0,0,0,0.1);--x-context-menu-shadow:0 8px 32px rgba(0,0,0,0.14),0 2px 8px rgba(0,0,0,0.08);--x-context-menu-radius:10px;--x-context-menu-item-hover:rgba(0,0,0,0.05);--x-context-menu-item-active:rgba(0,0,0,0.09);--x-context-menu-item-fg:rgba(0,0,0,0.87);--x-context-menu-separator:rgba(0,0,0,0.1);}@media(prefers-color-scheme:dark){:host{--x-context-menu-bg:#1e293b;--x-context-menu-border:rgba(255,255,255,0.12);--x-context-menu-shadow:0 8px 32px rgba(0,0,0,0.7),0 2px 8px rgba(0,0,0,0.4);--x-context-menu-item-hover:rgba(255,255,255,0.08);--x-context-menu-item-active:rgba(255,255,255,0.14);--x-context-menu-item-fg:rgba(255,255,255,0.9);--x-context-menu-separator:rgba(255,255,255,0.12);}}[part\x3dpanel]{position:absolute;min-width:160px;border-radius:var(--x-context-menu-radius);background:var(--x-context-menu-bg);border:1px solid var(--x-context-menu-border);box-shadow:var(--x-context-menu-shadow);padding:4px 0;overflow:auto;pointer-events:auto;outline:none;@media(prefers-reduced-motion:no-preference){transition:opacity 120ms ease,transform 120ms ease;}}[role\x3dmenuitem]{color:var(--x-context-menu-item-fg);}[role\x3dmenuitem]:hover{background:var(--x-context-menu-item-hover);}";
8
- g.setAttribute("part","panel");g.setAttribute("role","menu");g.setAttribute("tabindex","-1");d.appendChild(e);d.appendChild(g);b.appendChild(c);return c},AT=function(a){return $APP.n(a)?a.shadowRoot.querySelector("[part\x3dpanel]"):null},BT=function(a,b,c,d){var e=$APP.N(d);d=$APP.I(e,uT);e=$APP.I(e,pT);a.style.zIndex=""+$APP.T.g(d);a=AT(a);$APP.n(a)&&(a.style.left=""+$APP.T.g(b)+"px",a.style.top=""+$APP.T.g(c)+"px",a.style.maxHeight=""+$APP.T.g(e)+"px")},CT=function(a,b){a=$APP.u($APP.kc(a.children));
9
- for(var c=null,d=0,e=0;;)if(e<d){var g=c.G(null,e);b.appendChild(g.cloneNode(!0));e+=1}else if(a=$APP.u(a))c=a,$APP.Cc(c)?(a=$APP.qb(c),d=$APP.rb(c),c=a,g=$APP.B(a),a=d,d=g):(g=$APP.w(c),b.appendChild(g.cloneNode(!0)),a=$APP.z(c),c=null,d=0),e=0;else break},ET=function(a,b){function c(h){h.stopPropagation();h=h.target.closest("[role\x3dmenuitem]");return $APP.n(h)?(wT(a,"x-context-menu-select",!1,{item:h}),DT.h?DT.h(a,"select"):DT.call(null,a,"select")):null}function d(h){var k=AT(b);return $APP.n($APP.n(k)?
10
- $APP.r(k.contains(h.target)):k)?DT.h?DT.h(a,"backdrop"):DT.call(null,a,"backdrop"):null}function e(h){var k=h.key,m=b.shadowRoot.activeElement;return $APP.C.h(k,"Escape")?(h.preventDefault(),h.stopPropagation(),DT.h?DT.h(a,"keyboard"):DT.call(null,a,"keyboard")):$APP.C.h(k,"Tab")?DT.h?DT.h(a,"keyboard"):DT.call(null,a,"keyboard"):$APP.C.h(k,"ArrowDown")?(h.preventDefault(),$APP.n(m)?(h=xT(g),m=$APP.od(h).indexOf(m),m=$APP.E(h,$APP.Vc(m+1,$APP.B(h)),null),m=yT(m)):m=yT($APP.w(xT(g))),m):$APP.C.h(k,
11
- "ArrowUp")?(h.preventDefault(),$APP.n(m)?(h=xT(g),k=$APP.B(h),m=$APP.od(h).indexOf(m),m=$APP.E(h,$APP.Vc(m+(k-1),k),null),m=yT(m)):m=yT($APP.w(xT(g))),m):($APP.C.h(k,"Enter")||$APP.C.h(k," "))&&$APP.n(m)?(h.preventDefault(),m.click()):null}var g=AT(b);b.addEventListener("keydown",e,!0);b.addEventListener("click",d);$APP.n(g)&&g.addEventListener("click",c);b.__onKey=e;b.__onClickBackdrop=d;b.__onItemClick=c},FT=function(a){if($APP.n(a)){var b=$APP.l(a,"__onKey"),c=$APP.l(a,"__onClickBackdrop"),d=$APP.l(a,
12
- "__onItemClick"),e=AT(a);$APP.n(b)&&a.removeEventListener("keydown",b,!0);$APP.n(c)&&a.removeEventListener("click",c);$APP.n($APP.n(e)?d:e)&&e.removeEventListener("click",d);$APP.n(a.parentNode)&&a.parentNode.removeChild(a)}},DT=function(a,b){return $APP.n(a.hasAttribute("open"))&&wT(a,"x-context-menu-close-request",!0,{reason:b})?(a.removeAttribute("open"),FT($APP.l(a,"__xContextMenuLayer")),a.__xContextMenuLayer=null,wT(a,"x-context-menu-close",!1,{reason:b})):null},GT=function(a,b,c,d){if($APP.n(a.hasAttribute("disabled")))return null;
13
- if(wT(a,"x-context-menu-open-request",!0,{reason:d})){var e=vT(a);e=$APP.N(e);var g=$APP.I(e,$APP.Ei),h=$APP.I(e,$APP.vh),k=$APP.I(e,uT),m=window.innerWidth,p=window.innerHeight,q=new $APP.R(null,4,[$APP.Zj,b,$APP.Yj,c,$APP.lj,1,$APP.Mi,1],null);b=qT(g,h,q,new $APP.R(null,2,[$APP.lj,200,$APP.Mi,300],null),new $APP.R(null,2,[$APP.lj,m,$APP.Mi,p],null));var v=zT(k);CT(a,AT(v));ET(a,v);BT(v,$APP.Zj.g(b),$APP.Yj.g(b),$APP.Eg.m(b,uT,k));a.setAttribute("open","");a.__xContextMenuLayer=v;requestAnimationFrame(function(){var x=
14
- AT(v);if($APP.n(x)){var y=qT(g,h,q,new $APP.R(null,2,[$APP.lj,x.offsetWidth,$APP.Mi,x.offsetHeight],null),new $APP.R(null,2,[$APP.lj,m,$APP.Mi,p],null));BT(v,$APP.Zj.g(y),$APP.Yj.g(y),$APP.Eg.m(y,uT,k));return yT($APP.w(xT(x)))}return null});return wT(a,"x-context-menu-open",!1,{reason:d})}return null},HT=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;b=b.getBoundingClientRect();var c=vT(a);c=$APP.N(c);var d=$APP.I(c,$APP.Ei),e=$APP.I(c,$APP.vh),g=$APP.I(c,uT),h=window.innerWidth,
15
- k=window.innerHeight,m=new $APP.R(null,4,[$APP.Zj,b.left,$APP.Yj,b.top,$APP.lj,b.width,$APP.Mi,b.height],null);if(wT(a,"x-context-menu-open-request",!0,{reason:"programmatic"})){b=qT(d,e,m,new $APP.R(null,2,[$APP.lj,200,$APP.Mi,300],null),new $APP.R(null,2,[$APP.lj,h,$APP.Mi,k],null));var p=zT(g);CT(a,AT(p));ET(a,p);BT(p,$APP.Zj.g(b),$APP.Yj.g(b),$APP.Eg.m(b,uT,g));a.setAttribute("open","");a.__xContextMenuLayer=p;requestAnimationFrame(function(){var q=AT(p);if($APP.n(q)){var v=qT(d,e,m,new $APP.R(null,
16
- 2,[$APP.lj,q.offsetWidth,$APP.Mi,q.offsetHeight],null),new $APP.R(null,2,[$APP.lj,h,$APP.Mi,k],null));BT(p,$APP.Zj.g(v),$APP.Yj.g(v),$APP.Eg.m(v,uT,g));return yT($APP.w(xT(q)))}return null});return wT(a,"x-context-menu-open",!1,{reason:"programmatic"})}return null},IT=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},JT=function(a,b,c){Object.defineProperty(a,
17
- b,{configurable:!0,enumerable:!0,get:function(){return this.getAttribute(c)},set:function(d){return d!=null?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)}})},KT=function(a){a.openAt=function(b,c){return GT(this,b,c,"programmatic")};a.toggleAt=function(b,c){return $APP.n(this.hasAttribute("open"))?DT(this,"toggle"):GT(this,b,c,"toggle")};a.openForElement=function(b){return HT(this,b)};a.close=function(){return DT(this,"programmatic")}},MT=function(){var a=class extends HTMLElement{};
18
- a.observedAttributes=LT;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xContextMenuRefs"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=":host{display:contents;}slot{display:none;}";b.appendChild(c);b.appendChild(d);c={};c.root=b;c.slot=d;this.__xContextMenuRefs=c}return $APP.n(this.hasAttribute("open"))?this.removeAttribute("open"):null};a.prototype.disconnectedCallback=function(){var b=$APP.l(this,"__xContextMenuLayer");
19
- $APP.n(b)?(FT(b),this.__xContextMenuLayer=null,b=void 0):b=null;return b};a.prototype.attributeChangedCallback=function(b){a:{if($APP.C.h(b,"open")){if($APP.n(this.hasAttribute("open"))){b=null;break a}b=$APP.l(this,"__xContextMenuLayer");if($APP.n(b)){FT(b);this.__xContextMenuLayer=null;b=void 0;break a}}b=null}return b};IT(a.prototype,"open","open");IT(a.prototype,"disabled","disabled");JT(a.prototype,"placement","placement");JT(a.prototype,"offset","offset");JT(a.prototype,"zIndex","z-index");
20
- KT(a.prototype);return a},NT=function(){return $APP.n(customElements.get("x-context-menu"))?null:customElements.define("x-context-menu",MT())},nT=new $APP.M(null,"final-placement","final-placement",-1586044424),sT=new $APP.M(null,"z-index-raw","z-index-raw",-1179679257),pT=new $APP.M(null,"max-height","max-height",-612563804),oT=new $APP.M(null,"fits","fits",2008565808),uT=new $APP.M(null,"z-index","z-index",1892827090),rT=new $APP.M(null,"offset-raw","offset-raw",-1418404095);var LT=["open","disabled","placement","offset","z-index"],tT=new $APP.S(null,new $APP.R(null,6,["right-start",null,"bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null,"left-start",null],null),null);$APP.ja("baredom.exports.x_context_menu.init",NT);export const init=NT;
2
+ var VX=function(a,b){return typeof a==="string"?(a=parseInt(a,10),$APP.t(isNaN(a))&&a>0?a:b):b},WX=function(a){return $APP.D.i(a,"bottom-start")?"top-start":$APP.D.i(a,"bottom-end")?"top-end":$APP.D.i(a,"top-start")?"bottom-start":$APP.D.i(a,"top-end")?"bottom-end":$APP.D.i(a,"right-start")?"left-start":$APP.D.i(a,"left-start")?"right-start":a},XX=function(a,b,c,d){var e=$APP.N(c);c=$APP.G(e,$APP.Ok);var g=$APP.G(e,$APP.Nk),h=$APP.G(e,$APP.Lj);e=$APP.G(e,$APP.pj);var k=$APP.N(d);d=$APP.G(k,$APP.Lj);
3
+ k=$APP.G(k,$APP.pj);switch(a){case "bottom-start":return new $APP.P(null,2,[$APP.Ok,c,$APP.Nk,g+e+b],null);case "bottom-end":return new $APP.P(null,2,[$APP.Ok,c+h-d,$APP.Nk,g+e+b],null);case "top-start":return new $APP.P(null,2,[$APP.Ok,c,$APP.Nk,g-k-b],null);case "top-end":return new $APP.P(null,2,[$APP.Ok,c+h-d,$APP.Nk,g-k-b],null);case "right-start":return new $APP.P(null,2,[$APP.Ok,c+h+b,$APP.Nk,g],null);case "left-start":return new $APP.P(null,2,[$APP.Ok,c-d-b,$APP.Nk,g],null);default:return new $APP.P(null,
4
+ 2,[$APP.Ok,c,$APP.Nk,g+e+b],null)}},aY=function(a,b,c,d,e){function g(x){var y=XX(x,b,c,d);y=$APP.N(y);var A=$APP.G(y,$APP.Ok),C=$APP.G(y,$APP.Nk);y=A>=8&&A+m<=h-8;var E=C>=8&&C+p<=k-8;A=$APP.Zg.i($APP.Yg.i(A,8),h-m-8);C=$APP.Zg.i($APP.Yg.i(C,8),k-p-8);return new $APP.P(null,5,[$APP.Ok,A,$APP.Nk,C,YX,x,ZX,y&&E,$X,$APP.Yg.i(40,k-C-8)],null)}e=$APP.N(e);var h=$APP.G(e,$APP.Lj),k=$APP.G(e,$APP.pj);e=$APP.N(d);var m=$APP.G(e,$APP.Lj),p=$APP.G(e,$APP.pj),q=g(a),w=g(WX(a));return $APP.r(function(){var x=
5
+ ZX.g(q);return $APP.r(x)?x:$APP.t(ZX.g(w))}())?q:w},fY=function(a){a=new $APP.P(null,5,[$APP.ai,$APP.r(a.hasAttribute("open"))?a.getAttribute("open"):null,$APP.Rk,$APP.r(a.hasAttribute("disabled"))?a.getAttribute("disabled"):null,$APP.Wl,a.getAttribute("placement"),bY,a.getAttribute("offset"),cY,a.getAttribute("z-index")],null);var b=$APP.N(a),c=$APP.G(b,$APP.ai),d=$APP.G(b,$APP.Rk),e=$APP.G(b,$APP.Wl);a=$APP.G(b,bY);b=$APP.G(b,cY);c=c!=null&&$APP.O(c,"false");d=d!=null&&$APP.O(d,"false");e=typeof e===
6
+ "string"&&$APP.J(dY,e)?e:"bottom-start";return new $APP.P(null,5,[$APP.Dl,c,$APP.W,d,$APP.hj,e,$APP.Rh,VX(a,8),eY,VX(b,1E3)],null)},gY=function(a,b,c,d){b=new CustomEvent(b,{detail:d,bubbles:!0,composed:!0,cancelable:c});a.dispatchEvent(b);return $APP.t(b.defaultPrevented)},hY=function(a){return $APP.wc(a.querySelectorAll("[role\x3dmenuitem]:not([disabled]):not([aria-disabled\x3dtrue])"))},iY=function(a){return $APP.r(a)?a.focus():null},jY=function(a){var b=document.getElementById("__xOverlayRoot");
7
+ $APP.r(b)||(b=document.createElement("div"),b.setAttribute("id","__xOverlayRoot"),b.style.position="fixed",b.style.inset="0",b.style.pointerEvents="none",b.style.zIndex="0",document.body.appendChild(b));var c=document.createElement("div"),d=c.attachShadow({mode:"open"}),e=document.createElement("style"),g=document.createElement("div");c.style.position="fixed";c.style.inset="0";c.style.pointerEvents="none";c.style.zIndex=""+$APP.S.g(a);e.textContent=":host{color-scheme:light dark;--x-context-menu-bg:rgba(255,255,255,0.97);--x-context-menu-border:rgba(0,0,0,0.1);--x-context-menu-shadow:0 8px 32px rgba(0,0,0,0.14),0 2px 8px rgba(0,0,0,0.08);--x-context-menu-radius:10px;--x-context-menu-item-hover:rgba(0,0,0,0.05);--x-context-menu-item-active:rgba(0,0,0,0.09);--x-context-menu-item-fg:rgba(0,0,0,0.87);--x-context-menu-separator:rgba(0,0,0,0.1);}@media(prefers-color-scheme:dark){:host{--x-context-menu-bg:#1e293b;--x-context-menu-border:rgba(255,255,255,0.12);--x-context-menu-shadow:0 8px 32px rgba(0,0,0,0.7),0 2px 8px rgba(0,0,0,0.4);--x-context-menu-item-hover:rgba(255,255,255,0.08);--x-context-menu-item-active:rgba(255,255,255,0.14);--x-context-menu-item-fg:rgba(255,255,255,0.9);--x-context-menu-separator:rgba(255,255,255,0.12);}}[part\x3dpanel]{position:absolute;min-width:160px;border-radius:var(--x-context-menu-radius);background:var(--x-context-menu-bg);border:1px solid var(--x-context-menu-border);box-shadow:var(--x-context-menu-shadow);padding:4px 0;overflow:auto;pointer-events:auto;outline:none;@media(prefers-reduced-motion:no-preference){transition:opacity 120ms ease,transform 120ms ease;}}[role\x3dmenuitem]{color:var(--x-context-menu-item-fg);}[role\x3dmenuitem]:hover{background:var(--x-context-menu-item-hover);}";
8
+ g.setAttribute("part","panel");g.setAttribute("role","menu");g.setAttribute("tabindex","-1");d.appendChild(e);d.appendChild(g);b.appendChild(c);return c},kY=function(a){return $APP.r(a)?a.shadowRoot.querySelector("[part\x3dpanel]"):null},lY=function(a,b,c,d){var e=$APP.N(d);d=$APP.G(e,eY);e=$APP.G(e,$X);a.style.zIndex=""+$APP.S.g(d);a=kY(a);$APP.r(a)&&(a.style.left=""+$APP.S.g(b)+"px",a.style.top=""+$APP.S.g(c)+"px",a.style.maxHeight=""+$APP.S.g(e)+"px")},mY=function(a,b){a=$APP.u($APP.wc(a.children));
9
+ for(var c=null,d=0,e=0;;)if(e<d){var g=c.G(null,e);b.appendChild(g.cloneNode(!0));e+=1}else if(a=$APP.u(a))c=a,$APP.Pc(c)?(a=$APP.yb(c),d=$APP.zb(c),c=a,g=$APP.B(a),a=d,d=g):(g=$APP.v(c),b.appendChild(g.cloneNode(!0)),a=$APP.z(c),c=null,d=0),e=0;else break},oY=function(a,b){function c(h){h.stopPropagation();h=h.target.closest("[role\x3dmenuitem]");return $APP.r(h)?(gY(a,"x-context-menu-select",!1,{item:h}),nY.i?nY.i(a,"select"):nY.call(null,a,"select")):null}function d(h){var k=kY(b);return $APP.r($APP.r(k)?
10
+ $APP.t(k.contains(h.target)):k)?nY.i?nY.i(a,"backdrop"):nY.call(null,a,"backdrop"):null}function e(h){var k=h.key,m=b.shadowRoot.activeElement;return $APP.D.i(k,"Escape")?(h.preventDefault(),h.stopPropagation(),nY.i?nY.i(a,"keyboard"):nY.call(null,a,"keyboard")):$APP.D.i(k,"Tab")?nY.i?nY.i(a,"keyboard"):nY.call(null,a,"keyboard"):$APP.D.i(k,"ArrowDown")?(h.preventDefault(),$APP.r(m)?(h=hY(g),m=$APP.Cd(h).indexOf(m),m=$APP.Cc(h,$APP.hd(m+1,$APP.B(h)),null),m=iY(m)):m=iY($APP.v(hY(g))),m):$APP.D.i(k,
11
+ "ArrowUp")?(h.preventDefault(),$APP.r(m)?(h=hY(g),k=$APP.B(h),m=$APP.Cd(h).indexOf(m),m=$APP.Cc(h,$APP.hd(m+(k-1),k),null),m=iY(m)):m=iY($APP.v(hY(g))),m):($APP.D.i(k,"Enter")||$APP.D.i(k," "))&&$APP.r(m)?(h.preventDefault(),m.click()):null}var g=kY(b);b.addEventListener("keydown",e,!0);b.addEventListener("click",d);$APP.r(g)&&g.addEventListener("click",c);b.__onKey=e;b.__onClickBackdrop=d;b.__onItemClick=c},pY=function(a){if($APP.r(a)){var b=$APP.l(a,"__onKey"),c=$APP.l(a,"__onClickBackdrop"),d=
12
+ $APP.l(a,"__onItemClick"),e=kY(a);$APP.r(b)&&a.removeEventListener("keydown",b,!0);$APP.r(c)&&a.removeEventListener("click",c);$APP.r($APP.r(e)?d:e)&&e.removeEventListener("click",d);$APP.r(a.parentNode)&&a.parentNode.removeChild(a)}},nY=function(a,b){return $APP.r(a.hasAttribute("open"))&&gY(a,"x-context-menu-close-request",!0,{reason:b})?(a.removeAttribute("open"),pY($APP.l(a,"__xContextMenuLayer")),a.__xContextMenuLayer=null,gY(a,"x-context-menu-close",!1,{reason:b})):null},qY=function(a,b,c,d){if($APP.r(a.hasAttribute("disabled")))return null;
13
+ if(gY(a,"x-context-menu-open-request",!0,{reason:d})){var e=fY(a);e=$APP.N(e);var g=$APP.G(e,$APP.hj),h=$APP.G(e,$APP.Rh),k=$APP.G(e,eY),m=window.innerWidth,p=window.innerHeight,q=new $APP.P(null,4,[$APP.Ok,b,$APP.Nk,c,$APP.Lj,1,$APP.pj,1],null);b=aY(g,h,q,new $APP.P(null,2,[$APP.Lj,200,$APP.pj,300],null),new $APP.P(null,2,[$APP.Lj,m,$APP.pj,p],null));var w=jY(k);mY(a,kY(w));oY(a,w);lY(w,$APP.Ok.g(b),$APP.Nk.g(b),$APP.Wg.o(b,eY,k));a.setAttribute("open","");a.__xContextMenuLayer=w;requestAnimationFrame(function(){var x=
14
+ kY(w);if($APP.r(x)){var y=aY(g,h,q,new $APP.P(null,2,[$APP.Lj,x.offsetWidth,$APP.pj,x.offsetHeight],null),new $APP.P(null,2,[$APP.Lj,m,$APP.pj,p],null));lY(w,$APP.Ok.g(y),$APP.Nk.g(y),$APP.Wg.o(y,eY,k));return iY($APP.v(hY(x)))}return null});return gY(a,"x-context-menu-open",!1,{reason:d})}return null},rY=function(a,b){if($APP.r(a.hasAttribute("disabled")))return null;b=b.getBoundingClientRect();var c=fY(a);c=$APP.N(c);var d=$APP.G(c,$APP.hj),e=$APP.G(c,$APP.Rh),g=$APP.G(c,eY),h=window.innerWidth,
15
+ k=window.innerHeight,m=new $APP.P(null,4,[$APP.Ok,b.left,$APP.Nk,b.top,$APP.Lj,b.width,$APP.pj,b.height],null);if(gY(a,"x-context-menu-open-request",!0,{reason:"programmatic"})){b=aY(d,e,m,new $APP.P(null,2,[$APP.Lj,200,$APP.pj,300],null),new $APP.P(null,2,[$APP.Lj,h,$APP.pj,k],null));var p=jY(g);mY(a,kY(p));oY(a,p);lY(p,$APP.Ok.g(b),$APP.Nk.g(b),$APP.Wg.o(b,eY,g));a.setAttribute("open","");a.__xContextMenuLayer=p;requestAnimationFrame(function(){var q=kY(p);if($APP.r(q)){var w=aY(d,e,m,new $APP.P(null,
16
+ 2,[$APP.Lj,q.offsetWidth,$APP.pj,q.offsetHeight],null),new $APP.P(null,2,[$APP.Lj,h,$APP.pj,k],null));lY(p,$APP.Ok.g(w),$APP.Nk.g(w),$APP.Wg.o(w,eY,g));return iY($APP.v(hY(q)))}return null});return gY(a,"x-context-menu-open",!1,{reason:"programmatic"})}return null},sY=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.r(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},tY=function(a,b,c){Object.defineProperty(a,
17
+ b,{configurable:!0,enumerable:!0,get:function(){return this.getAttribute(c)},set:function(d){return d!=null?this.setAttribute(c,""+$APP.S.g(d)):this.removeAttribute(c)}})},uY=function(a){a.openAt=function(b,c){return qY(this,b,c,"programmatic")};a.toggleAt=function(b,c){return $APP.r(this.hasAttribute("open"))?nY(this,"toggle"):qY(this,b,c,"toggle")};a.openForElement=function(b){return rY(this,b)};a.close=function(){return nY(this,"programmatic")}},wY=function(){var a=class extends HTMLElement{};
18
+ a.observedAttributes=vY;a.prototype.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xContextMenuRefs"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=":host{display:contents;}slot{display:none;}";b.appendChild(c);b.appendChild(d);c={};c.root=b;c.slot=d;this.__xContextMenuRefs=c}return $APP.r(this.hasAttribute("open"))?this.removeAttribute("open"):null};a.prototype.disconnectedCallback=function(){var b=$APP.l(this,"__xContextMenuLayer");
19
+ $APP.r(b)?(pY(b),this.__xContextMenuLayer=null,b=void 0):b=null;return b};a.prototype.attributeChangedCallback=function(b){a:{if($APP.D.i(b,"open")){if($APP.r(this.hasAttribute("open"))){b=null;break a}b=$APP.l(this,"__xContextMenuLayer");if($APP.r(b)){pY(b);this.__xContextMenuLayer=null;b=void 0;break a}}b=null}return b};sY(a.prototype,"open","open");sY(a.prototype,"disabled","disabled");tY(a.prototype,"placement","placement");tY(a.prototype,"offset","offset");tY(a.prototype,"zIndex","z-index");
20
+ uY(a.prototype);return a},xY=function(){return $APP.r(customElements.get("x-context-menu"))?null:customElements.define("x-context-menu",wY())},YX=new $APP.M(null,"final-placement","final-placement",-1586044424),cY=new $APP.M(null,"z-index-raw","z-index-raw",-1179679257),$X=new $APP.M(null,"max-height","max-height",-612563804),ZX=new $APP.M(null,"fits","fits",2008565808),eY=new $APP.M(null,"z-index","z-index",1892827090),bY=new $APP.M(null,"offset-raw","offset-raw",-1418404095);var vY=["open","disabled","placement","offset","z-index"],dY=new $APP.R(null,new $APP.P(null,6,["right-start",null,"bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null,"left-start",null],null),null);$APP.ka("baredom.exports.x_context_menu.init",xY);export const init=xY;