@vanelsas/baredom 2.1.0 → 2.2.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 (89) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +3 -3
  3. package/dist/base.js +75 -73
  4. package/dist/x-alert.js +17 -17
  5. package/dist/x-avatar-group.js +10 -10
  6. package/dist/x-avatar.js +13 -14
  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 +15 -15
  12. package/dist/x-cancel-dialogue.js +12 -12
  13. package/dist/x-card.js +7 -7
  14. package/dist/x-carousel.js +28 -28
  15. package/dist/x-chart.js +46 -46
  16. package/dist/x-checkbox.js +11 -11
  17. package/dist/x-chip.js +8 -8
  18. package/dist/x-collapse.js +10 -10
  19. package/dist/x-color-picker.js +40 -40
  20. package/dist/x-command-palette.js +25 -25
  21. package/dist/x-container.js +6 -6
  22. package/dist/x-context-menu.js +18 -18
  23. package/dist/x-copy.js +20 -20
  24. package/dist/x-currency-field.js +21 -21
  25. package/dist/x-date-picker.js +37 -37
  26. package/dist/x-divider.js +8 -8
  27. package/dist/x-drawer.js +11 -11
  28. package/dist/x-dropdown.js +9 -9
  29. package/dist/x-fieldset.js +5 -5
  30. package/dist/x-file-download.js +7 -7
  31. package/dist/x-form-field.js +15 -15
  32. package/dist/x-form.js +9 -9
  33. package/dist/x-gaussian-blur.js +16 -16
  34. package/dist/x-grid.js +6 -6
  35. package/dist/x-icon.js +9 -0
  36. package/dist/x-image.js +20 -0
  37. package/dist/x-kinetic-font.js +28 -28
  38. package/dist/x-kinetic-typography.js +37 -37
  39. package/dist/x-liquid-dock.js +35 -35
  40. package/dist/x-liquid-fill.js +40 -40
  41. package/dist/x-liquid-glass.js +33 -33
  42. package/dist/x-menu-item.js +10 -10
  43. package/dist/x-menu.js +10 -10
  44. package/dist/x-metaball-cursor.js +25 -25
  45. package/dist/x-modal.js +11 -11
  46. package/dist/x-morph-stack.js +39 -39
  47. package/dist/x-navbar.js +12 -12
  48. package/dist/x-neural-glow.js +30 -30
  49. package/dist/x-notification-center.js +10 -10
  50. package/dist/x-organic-divider.js +15 -15
  51. package/dist/x-organic-progress.js +35 -35
  52. package/dist/x-organic-shape.js +12 -12
  53. package/dist/x-pagination.js +16 -16
  54. package/dist/x-particle-button.js +46 -46
  55. package/dist/x-popover.js +14 -14
  56. package/dist/x-progress-circle.js +7 -7
  57. package/dist/x-progress.js +7 -7
  58. package/dist/x-radio.js +11 -11
  59. package/dist/x-ripple-effect.js +10 -10
  60. package/dist/x-scroll-parallax.js +17 -17
  61. package/dist/x-scroll-stack.js +18 -18
  62. package/dist/x-scroll-story.js +33 -33
  63. package/dist/x-scroll-timeline.js +45 -45
  64. package/dist/x-scroll.js +40 -40
  65. package/dist/x-search-field.js +14 -14
  66. package/dist/x-select.js +9 -9
  67. package/dist/x-sidebar.js +16 -16
  68. package/dist/x-skeleton.js +4 -4
  69. package/dist/x-slider.js +16 -16
  70. package/dist/x-soft-body.js +20 -20
  71. package/dist/x-spacer.js +5 -5
  72. package/dist/x-spinner.js +5 -5
  73. package/dist/x-splash.js +13 -13
  74. package/dist/x-stat.js +9 -9
  75. package/dist/x-stepper.js +16 -16
  76. package/dist/x-switch.js +10 -10
  77. package/dist/x-tab.js +7 -7
  78. package/dist/x-table-cell.js +20 -20
  79. package/dist/x-table-row.js +10 -10
  80. package/dist/x-table.js +13 -13
  81. package/dist/x-tabs.js +11 -11
  82. package/dist/x-text-area.js +17 -17
  83. package/dist/x-theme.js +24 -24
  84. package/dist/x-timeline-item.js +20 -20
  85. package/dist/x-timeline.js +9 -9
  86. package/dist/x-toast.js +21 -21
  87. package/dist/x-toaster.js +8 -8
  88. package/dist/x-typography.js +8 -8
  89. package/package.json +9 -1
@@ -1,28 +1,28 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var vF=function(a){if(typeof a==="string"){a=parseInt(a.trim(),10);var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?5:Math.min(10,Math.max(2,a))}return 5},wF=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?40:Math.min(200,Math.max(10,a))}return 40},xF=function(a){return typeof a==="string"&&a.trim().length>0?a.trim():"#6366f1"},yF=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?
3
- 3:Math.min(20,Math.max(.5,a))}return 3},zF=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?.02:Math.min(.1,Math.max(.001,a))}return.02},AF=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?6:Math.min(30,Math.max(1,a))}return 6},BF=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?12:Math.min(40,Math.max(4,a))}return 12},CF=
4
- function(a){return typeof a==="string"&&a.trim().length>0?a.trim():"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 20 -10"},EF=function(a){if(typeof a==="string"&&a.trim().length>0){var b=$APP.D(DF,a.trim().toLowerCase());if($APP.n(b))return b;if(a.indexOf(",")>=0)return a=a.split(","),$APP.Ue.m($APP.ee,$APP.bh.i($APP.$d.g(function(c){return c.trim()}),$APP.be(function(c){return c.length>0})),a)}return null},FF=function(a){for(var b=[],c=0;;)if(c<a)b.push(Math.max(.01,.35*Math.pow(.45,c))),c+=1;else break;
5
- return b},GF=function(a,b){for(var c=[],d=0;;)if(d<b)c.push(Math.max(a*.5,a*(1-d*.08))),d+=1;else break;return c},HF=function(a,b,c){return a+(b-a)*c},WF=function(a){a=$APP.xf([$APP.Bl,IF,JF,KF,LF,MF,$APP.Gh,$APP.om,NF,OF],[a.getAttribute("blur"),a.getAttribute("noise-intensity"),a.getAttribute("blob-size"),a.getAttribute("palette"),a.getAttribute("noise-scale"),a.getAttribute("noise"),a.getAttribute("threshold"),a.getAttribute("color"),a.getAttribute("blob-count"),a.getAttribute("noise-speed")]);
6
- var b=$APP.M(a),c=$APP.D(b,OF);a=$APP.D(b,$APP.Bl);var d=$APP.D(b,IF),e=$APP.D(b,JF),g=$APP.D(b,KF),h=$APP.D(b,LF),l=$APP.D(b,MF),m=$APP.D(b,$APP.Gh),p=$APP.D(b,$APP.om);b=$APP.D(b,NF);b=vF(b);p=xF(p);g=EF(g);c=zF(c);var q=[];if($APP.n($APP.n(g)?$APP.z(g)>0:g))for(var v=$APP.z(g),x=0;;)if(x<b)q.push($APP.oc(g,$APP.ed(x,v))),x+=1;else break;else for(v=0;;)if(v<b)q.push(p),v+=1;else break;return $APP.xf([$APP.lj,PF,QF,$APP.Cl,$APP.gl,RF,SF,$APP.Rh,TF,UF,VF],[p,g,c,q,CF(m),yF(h),b,BF(a),wF(e),l!=null,
7
- AF(d)])},XF=function(a,b){b=$APP.M(b);b=$APP.D(b,$APP.lj);return a.style.setProperty("--x-metaball-cursor-color",b)},ZF=function(a){$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)||(a.__xMetaballSeed=0,$APP.ia(a,"__xMetaballRaf",requestAnimationFrame(function(){return YF(a)})))},$F=function(a){function b(c){var d=$APP.Ni.g($APP.k(a,"__xMetaballRefs"));if($APP.n(d)){d=d.getBoundingClientRect();var e=$APP.k(a,"__xMetaballMouse");e.x=c.clientX-d.left;e.y=c.clientY-d.top}return null}
8
- window.addEventListener("pointermove",b);a.__xMetaballHandler=b},aG=function(a){var b=$APP.k(a,"__xMetaballHandler");$APP.n(b)&&(window.removeEventListener("pointermove",b),a.__xMetaballHandler=null)},bG=function(a){Object.defineProperty(a,"blobCount",{get:function(){return vF(this.getAttribute("blob-count"))},set:function(b){return b==null?this.removeAttribute("blob-count"):this.setAttribute("blob-count",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"blobSize",{get:function(){return wF(this.getAttribute("blob-size"))},
9
- set:function(b){return b==null?this.removeAttribute("blob-size"):this.setAttribute("blob-size",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"color",{get:function(){return xF(this.getAttribute("color"))},set:function(b){return b==null?this.removeAttribute("color"):this.setAttribute("color",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"noise",{get:function(){return this.hasAttribute("noise")},set:function(b){return $APP.n(b)?this.setAttribute("noise",
10
- ""):this.removeAttribute("noise")},enumerable:!0,configurable:!0});Object.defineProperty(a,"noiseScale",{get:function(){return yF(this.getAttribute("noise-scale"))},set:function(b){return b==null?this.removeAttribute("noise-scale"):this.setAttribute("noise-scale",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"noiseSpeed",{get:function(){return zF(this.getAttribute("noise-speed"))},set:function(b){return b==null?this.removeAttribute("noise-speed"):this.setAttribute("noise-speed",
11
- ""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"noiseIntensity",{get:function(){return AF(this.getAttribute("noise-intensity"))},set:function(b){return b==null?this.removeAttribute("noise-intensity"):this.setAttribute("noise-intensity",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"blur",{get:function(){return BF(this.getAttribute("blur"))},set:function(b){return b==null?this.removeAttribute("blur"):this.setAttribute("blur",""+$APP.T.g(b))},enumerable:!0,
12
- configurable:!0});Object.defineProperty(a,"threshold",{get:function(){return CF(this.getAttribute("threshold"))},set:function(b){return b==null?this.removeAttribute("threshold"):this.setAttribute("threshold",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"palette",{get:function(){return EF(this.getAttribute("palette"))},set:function(b){return b==null||$APP.C.i("",b)?this.removeAttribute("palette"):this.setAttribute("palette",""+$APP.T.g(b))},enumerable:!0,configurable:!0})},
13
- fG=function(){var a=class extends HTMLElement{};a.observedAttributes=cG;a.prototype.connectedCallback=function(){var b=WF(this);this.__xMetaballModel=b;this.__xMetaballMouse={x:0,y:0};if(!$APP.n($APP.k(this,"__xMetaballRefs"))){var c=$APP.k(this,"__xMetaballModel"),d=dG[0];dG[0]=d+1;var e="mb-"+$APP.T.g(d),g=this.attachShadow({mode:"open"}),h=document.createElement("style"),l=document.createElement("div"),m=document.createElementNS("http://www.w3.org/2000/svg","svg");this.__xMetaballUid=d;h.textContent=
14
- eG;l.setAttribute("part","viewport");l.style.filter="url(#"+$APP.T.g(e)+")";m.style.position="absolute";m.style.width="0";m.style.height="0";m.style.overflow="hidden";var p=$APP.M(c);c=$APP.D(p,$APP.Rh);d=$APP.D(p,$APP.gl);var q=$APP.D(p,UF),v=$APP.D(p,RF);p=$APP.D(p,VF);var x=document.createElementNS("http://www.w3.org/2000/svg","defs"),y=document.createElementNS("http://www.w3.org/2000/svg","filter"),A=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),B=document.createElementNS("http://www.w3.org/2000/svg",
2
+ var EF=function(a){if(typeof a==="string"){a=parseInt(a.trim(),10);var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?5:Math.min(10,Math.max(2,a))}return 5},FF=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?40:Math.min(200,Math.max(10,a))}return 40},GF=function(a){return typeof a==="string"&&a.trim().length>0?a.trim():"#6366f1"},HF=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?
3
+ 3:Math.min(20,Math.max(.5,a))}return 3},IF=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?.02:Math.min(.1,Math.max(.001,a))}return.02},JF=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?6:Math.min(30,Math.max(1,a))}return 6},KF=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?12:Math.min(40,Math.max(4,a))}return 12},LF=
4
+ function(a){return typeof a==="string"&&a.trim().length>0?a.trim():"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 20 -10"},NF=function(a){if(typeof a==="string"&&a.trim().length>0){var b=$APP.D(MF,a.trim().toLowerCase());if($APP.n(b))return b;if(a.indexOf(",")>=0)return a=a.split(","),$APP.Ue.m($APP.ee,$APP.bh.i($APP.$d.g(function(c){return c.trim()}),$APP.be(function(c){return c.length>0})),a)}return null},OF=function(a){for(var b=[],c=0;;)if(c<a)b.push(Math.max(.01,.35*Math.pow(.45,c))),c+=1;else break;
5
+ return b},PF=function(a,b){for(var c=[],d=0;;)if(d<b)c.push(Math.max(a*.5,a*(1-d*.08))),d+=1;else break;return c},QF=function(a,b,c){return a+(b-a)*c},eG=function(a){a=$APP.xf([$APP.Il,RF,SF,TF,UF,VF,$APP.Dh,$APP.xm,WF,XF],[a.getAttribute("blur"),a.getAttribute("noise-intensity"),a.getAttribute("blob-size"),a.getAttribute("palette"),a.getAttribute("noise-scale"),a.getAttribute("noise"),a.getAttribute("threshold"),a.getAttribute("color"),a.getAttribute("blob-count"),a.getAttribute("noise-speed")]);
6
+ var b=$APP.M(a),c=$APP.D(b,XF);a=$APP.D(b,$APP.Il);var d=$APP.D(b,RF),e=$APP.D(b,SF),g=$APP.D(b,TF),h=$APP.D(b,UF),l=$APP.D(b,VF),m=$APP.D(b,$APP.Dh),p=$APP.D(b,$APP.xm);b=$APP.D(b,WF);b=EF(b);p=GF(p);g=NF(g);c=IF(c);var q=[];if($APP.n($APP.n(g)?$APP.z(g)>0:g))for(var v=$APP.z(g),x=0;;)if(x<b)q.push($APP.oc(g,$APP.ed(x,v))),x+=1;else break;else for(v=0;;)if(v<b)q.push(p),v+=1;else break;return $APP.xf([$APP.pj,YF,ZF,$APP.Jl,$APP.ml,$F,aG,$APP.Th,bG,cG,dG],[p,g,c,q,LF(m),HF(h),b,KF(a),FF(e),l!=null,
7
+ JF(d)])},fG=function(a,b){b=$APP.M(b);b=$APP.D(b,$APP.pj);return a.style.setProperty("--x-metaball-cursor-color",b)},hG=function(a){$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)||(a.__xMetaballSeed=0,$APP.ia(a,"__xMetaballRaf",requestAnimationFrame(function(){return gG(a)})))},iG=function(a){function b(c){var d=$APP.Pi.g($APP.k(a,"__xMetaballRefs"));if($APP.n(d)){d=d.getBoundingClientRect();var e=$APP.k(a,"__xMetaballMouse");e.x=c.clientX-d.left;e.y=c.clientY-d.top}return null}
8
+ window.addEventListener("pointermove",b);a.__xMetaballHandler=b},jG=function(a){var b=$APP.k(a,"__xMetaballHandler");$APP.n(b)&&(window.removeEventListener("pointermove",b),a.__xMetaballHandler=null)},kG=function(a){Object.defineProperty(a,"blobCount",{get:function(){return EF(this.getAttribute("blob-count"))},set:function(b){return b==null?this.removeAttribute("blob-count"):this.setAttribute("blob-count",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"blobSize",{get:function(){return FF(this.getAttribute("blob-size"))},
9
+ set:function(b){return b==null?this.removeAttribute("blob-size"):this.setAttribute("blob-size",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"color",{get:function(){return GF(this.getAttribute("color"))},set:function(b){return b==null?this.removeAttribute("color"):this.setAttribute("color",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"noise",{get:function(){return this.hasAttribute("noise")},set:function(b){return $APP.n(b)?this.setAttribute("noise",
10
+ ""):this.removeAttribute("noise")},enumerable:!0,configurable:!0});Object.defineProperty(a,"noiseScale",{get:function(){return HF(this.getAttribute("noise-scale"))},set:function(b){return b==null?this.removeAttribute("noise-scale"):this.setAttribute("noise-scale",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"noiseSpeed",{get:function(){return IF(this.getAttribute("noise-speed"))},set:function(b){return b==null?this.removeAttribute("noise-speed"):this.setAttribute("noise-speed",
11
+ ""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"noiseIntensity",{get:function(){return JF(this.getAttribute("noise-intensity"))},set:function(b){return b==null?this.removeAttribute("noise-intensity"):this.setAttribute("noise-intensity",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"blur",{get:function(){return KF(this.getAttribute("blur"))},set:function(b){return b==null?this.removeAttribute("blur"):this.setAttribute("blur",""+$APP.T.g(b))},enumerable:!0,
12
+ configurable:!0});Object.defineProperty(a,"threshold",{get:function(){return LF(this.getAttribute("threshold"))},set:function(b){return b==null?this.removeAttribute("threshold"):this.setAttribute("threshold",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"palette",{get:function(){return NF(this.getAttribute("palette"))},set:function(b){return b==null||$APP.C.i("",b)?this.removeAttribute("palette"):this.setAttribute("palette",""+$APP.T.g(b))},enumerable:!0,configurable:!0})},
13
+ oG=function(){var a=class extends HTMLElement{};a.observedAttributes=lG;a.prototype.connectedCallback=function(){var b=eG(this);this.__xMetaballModel=b;this.__xMetaballMouse={x:0,y:0};if(!$APP.n($APP.k(this,"__xMetaballRefs"))){var c=$APP.k(this,"__xMetaballModel"),d=mG[0];mG[0]=d+1;var e="mb-"+$APP.T.g(d),g=this.attachShadow({mode:"open"}),h=document.createElement("style"),l=document.createElement("div"),m=document.createElementNS("http://www.w3.org/2000/svg","svg");this.__xMetaballUid=d;h.textContent=
14
+ nG;l.setAttribute("part","viewport");l.style.filter="url(#"+$APP.T.g(e)+")";m.style.position="absolute";m.style.width="0";m.style.height="0";m.style.overflow="hidden";var p=$APP.M(c);c=$APP.D(p,$APP.Th);d=$APP.D(p,$APP.ml);var q=$APP.D(p,cG),v=$APP.D(p,$F);p=$APP.D(p,dG);var x=document.createElementNS("http://www.w3.org/2000/svg","defs"),y=document.createElementNS("http://www.w3.org/2000/svg","filter"),A=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),B=document.createElementNS("http://www.w3.org/2000/svg",
15
15
  "feColorMatrix"),E=document.createElementNS("http://www.w3.org/2000/svg","feTurbulence"),H=document.createElementNS("http://www.w3.org/2000/svg","feDisplacementMap");y.setAttribute("id",e);y.setAttribute("x","-20%");y.setAttribute("y","-20%");y.setAttribute("width","140%");y.setAttribute("height","140%");A.setAttribute("in","SourceGraphic");A.setAttribute("stdDeviation",""+$APP.T.g(c));A.setAttribute("result","blur");B.setAttribute("in","blur");B.setAttribute("type","matrix");B.setAttribute("values",
16
16
  d);B.setAttribute("result","threshold");E.setAttribute("type","fractalNoise");E.setAttribute("baseFrequency",""+$APP.T.g(.01*v));E.setAttribute("numOctaves","3");E.setAttribute("seed","0");E.setAttribute("result","noise");H.setAttribute("in","threshold");H.setAttribute("in2","noise");H.setAttribute("scale",$APP.n(q)?""+$APP.T.g(p):"0");H.setAttribute("xChannelSelector","R");H.setAttribute("yChannelSelector","G");y.appendChild(A);y.appendChild(B);y.appendChild(E);y.appendChild(H);x.appendChild(y);
17
- m.appendChild(x);e=new $APP.R(null,5,[$APP.zk,y,$APP.Oi,A,$APP.cm,B,$APP.bl,E,$APP.jj,H],null);l.appendChild(m);g.appendChild(h);g.appendChild(l);this.__xMetaballRefs=$APP.Pf($APP.tc([e,new $APP.R(null,3,[$APP.ji,g,$APP.Ni,l,$APP.Jj,m],null)]))}g=$APP.k(this,"__xMetaballBlobs");if($APP.n(g)){h=g.length;for(l=0;;)if(l<h)m=g[l],$APP.n(m.parentNode)&&m.parentNode.removeChild(m),l+=1;else break;this.__xMetaballBlobs=[];this.__xMetaballPos=[]}h=$APP.M(b);g=$APP.D(h,SF);m=$APP.D(h,TF);h=$APP.D(h,$APP.Cl);
18
- l=$APP.M($APP.k(this,"__xMetaballRefs"));l=$APP.D(l,$APP.Ni);m=GF(m,g);e=[];c=[];for(d=0;;)if(d<g)q=document.createElement("div"),v=m[d],q.className="blob",q.style.width=""+$APP.T.g(v)+"px",q.style.height=""+$APP.T.g(v)+"px",q.style.background=h[d],l.appendChild(q),e.push(q),c.push({x:0,y:0}),d+=1;else break;this.__xMetaballBlobs=e;this.__xMetaballPos=c;this.__xMetaballSpeeds=FF(g);XF(this,b);this.setAttribute("aria-hidden","true");this.setAttribute("role","presentation");aG(this);$F(this);ZF(this);
19
- return null};a.prototype.disconnectedCallback=function(){var b=$APP.k(this,"__xMetaballRaf");$APP.n(b)&&(cancelAnimationFrame(b),this.__xMetaballRaf=null);aG(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){if($APP.N(c,d)&&(this.__xMetaballModel=b=WF(this),$APP.n($APP.k(this,"__xMetaballRefs")))){d=$APP.M(b);c=$APP.D(d,SF);var e=$APP.D(d,TF);d=$APP.D(d,$APP.Cl);var g=$APP.M($APP.k(this,"__xMetaballRefs")),h=$APP.D(g,$APP.Ni);g=$APP.k(this,"__xMetaballBlobs");var l=$APP.k(this,
20
- "__xMetaballPos"),m=g.length;e=GF(e,c);for(var p=m;;)if(p<c){var q=document.createElement("div");q.className="blob";h.appendChild(q);g.push(q);l.push({x:0,y:0});p+=1}else break;for(h=m;;)if(h>c)m=g.pop(),l.pop(),$APP.n(m.parentNode)&&m.parentNode.removeChild(m),--h;else break;for(l=0;;)if(l<c)h=g[l],m=e[l],h.style.width=""+$APP.T.g(m)+"px",h.style.height=""+$APP.T.g(m)+"px",h.style.background=d[l],l+=1;else break;this.__xMetaballSpeeds=FF(c);g=$APP.M(b);h=$APP.D(g,$APP.Rh);e=$APP.D(g,$APP.gl);c=$APP.D(g,
21
- UF);d=$APP.D(g,RF);g=$APP.D(g,VF);l=$APP.k(this,"__xMetaballRefs");m=$APP.Oi.g(l);$APP.n(m)&&m.setAttribute("stdDeviation",""+$APP.T.g(h));h=$APP.cm.g(l);$APP.n(h)&&h.setAttribute("values",e);e=$APP.bl.g(l);$APP.n(e)&&e.setAttribute("baseFrequency",""+$APP.T.g(.01*d));d=$APP.jj.g(l);$APP.n(d)&&d.setAttribute("scale",$APP.n(c)?""+$APP.T.g(g):"0");return XF(this,b)}return null};bG(a.prototype);return a},gG=function(){$APP.n(customElements.get("x-metaball-cursor"))||customElements.define("x-metaball-cursor",
22
- fG());return null},LF=new $APP.K(null,"noise-scale-raw","noise-scale-raw",123215597),IF=new $APP.K(null,"noise-intensity-raw","noise-intensity-raw",-116633534),UF=new $APP.K(null,"noise?","noise?",-38350370),TF=new $APP.K(null,"blob-size","blob-size",-1862159046),RF=new $APP.K(null,"noise-scale","noise-scale",-2033475279),MF=new $APP.K(null,"noise-attr","noise-attr",-1534959409),KF=new $APP.K(null,"palette-raw","palette-raw",-1398782582),PF=new $APP.K(null,"palette","palette",-456203511),NF=new $APP.K(null,
23
- "blob-count-raw","blob-count-raw",-1850938603),OF=new $APP.K(null,"noise-speed-raw","noise-speed-raw",1761342974),QF=new $APP.K(null,"noise-speed","noise-speed",866692139),SF=new $APP.K(null,"blob-count","blob-count",-248711053),VF=new $APP.K(null,"noise-intensity","noise-intensity",747731519),JF=new $APP.K(null,"blob-size-raw","blob-size-raw",530207878);var cG="blob-count blob-size color noise noise-scale noise-speed noise-intensity blur threshold palette".split(" ");
24
- $APP.xf([$APP.lj,new $APP.K(null,"blobSize","blobSize",-64083896),new $APP.K(null,"noiseIntensity","noiseIntensity",-792053623),PF,new $APP.K(null,"noiseScale","noiseScale",2003002730),new $APP.K(null,"noise","noise",-994696820),$APP.gl,$APP.Rh,new $APP.K(null,"noiseSpeed","noiseSpeed",-959403627),new $APP.K(null,"blobCount","blobCount",-1279691625)],[new $APP.R(null,1,[$APP.Z,$APP.X],null),new $APP.R(null,1,[$APP.Z,$APP.V],null),new $APP.R(null,1,[$APP.Z,$APP.V],null),new $APP.R(null,1,[$APP.Z,$APP.X],
25
- null),new $APP.R(null,1,[$APP.Z,$APP.V],null),new $APP.R(null,1,[$APP.Z,$APP.Bj],null),new $APP.R(null,1,[$APP.Z,$APP.X],null),new $APP.R(null,1,[$APP.Z,$APP.V],null),new $APP.R(null,1,[$APP.Z,$APP.V],null),new $APP.R(null,1,[$APP.Z,$APP.V],null)]);
26
- var DF=new $APP.R(null,5,["rainbow",new $APP.O(null,5,5,$APP.P,["#ef4444","#f59e0b","#22c55e","#3b82f6","#a855f7"],null),"ocean",new $APP.O(null,5,5,$APP.P,["#06b6d4","#0ea5e9","#6366f1","#8b5cf6","#0d9488"],null),"sunset",new $APP.O(null,5,5,$APP.P,["#ef4444","#f97316","#eab308","#ec4899","#f43f5e"],null),"neon",new $APP.O(null,5,5,$APP.P,["#22d3ee","#a78bfa","#f472b6","#34d399","#facc15"],null),"ember",new $APP.O(null,5,5,$APP.P,["#dc2626","#ea580c","#d97706","#b91c1c","#f59e0b"],null)],null);var dG=[0],eG=":host{display:block;position:relative;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:var("+$APP.T.g("--x-metaball-cursor-z-index")+",9999);}[part\x3dviewport]{position:absolute;inset:var("+$APP.T.g("--x-metaball-cursor-inset")+",0);pointer-events:none;opacity:var("+$APP.T.g("--x-metaball-cursor-opacity")+",1);mix-blend-mode:var("+$APP.T.g("--x-metaball-cursor-blend-mode")+",normal);}.blob{position:absolute;border-radius:50%;will-change:transform;pointer-events:none;top:0;left:0;background:var("+
27
- $APP.T.g("--x-metaball-cursor-color")+",#6366f1);}@media(prefers-reduced-motion:reduce){.blob{transition:none!important;}}",YF=function YF(a){if($APP.n(a.isConnected)){var c=$APP.k(a,"__xMetaballMouse"),d=$APP.k(a,"__xMetaballBlobs"),e=$APP.k(a,"__xMetaballPos"),g=$APP.k(a,"__xMetaballSpeeds"),h=$APP.k(c,"x");c=$APP.k(c,"y");for(var l=$APP.k(a,"__xMetaballModel"),m=d.length,p=0;;)if(p<m){var q=e[p],v=g[p],x=HF($APP.k(q,"x"),h,v);v=HF($APP.k(q,"y"),c,v);var y=d[p];q.x=x;q.y=v;y.style.transform="translate("+
28
- $APP.T.g(x)+"px,"+$APP.T.g(v)+"px) translate(-50%,-50%)";p+=1}else break;$APP.n(UF.g(l))&&(d=$APP.k(a,"__xMetaballSeed")+QF.g(l),e=$APP.k(a,"__xMetaballRefs"),a.__xMetaballSeed=d,e=$APP.bl.g(e),$APP.n(e)&&e.setAttribute("seed",""+$APP.T.g(Math.floor(d))));$APP.ia(a,"__xMetaballRaf",requestAnimationFrame(function(){return YF.g?YF.g(a):YF.call(null,a)}))}return null};$APP.fa("baredom.exports.x_metaball_cursor.init",gG);export const init=gG;
17
+ m.appendChild(x);e=new $APP.R(null,5,[$APP.Fk,y,$APP.Qi,A,$APP.lm,B,$APP.hl,E,$APP.nj,H],null);l.appendChild(m);g.appendChild(h);g.appendChild(l);this.__xMetaballRefs=$APP.Pf($APP.tc([e,new $APP.R(null,3,[$APP.li,g,$APP.Pi,l,$APP.Nj,m],null)]))}g=$APP.k(this,"__xMetaballBlobs");if($APP.n(g)){h=g.length;for(l=0;;)if(l<h)m=g[l],$APP.n(m.parentNode)&&m.parentNode.removeChild(m),l+=1;else break;this.__xMetaballBlobs=[];this.__xMetaballPos=[]}h=$APP.M(b);g=$APP.D(h,aG);m=$APP.D(h,bG);h=$APP.D(h,$APP.Jl);
18
+ l=$APP.M($APP.k(this,"__xMetaballRefs"));l=$APP.D(l,$APP.Pi);m=PF(m,g);e=[];c=[];for(d=0;;)if(d<g)q=document.createElement("div"),v=m[d],q.className="blob",q.style.width=""+$APP.T.g(v)+"px",q.style.height=""+$APP.T.g(v)+"px",q.style.background=h[d],l.appendChild(q),e.push(q),c.push({x:0,y:0}),d+=1;else break;this.__xMetaballBlobs=e;this.__xMetaballPos=c;this.__xMetaballSpeeds=OF(g);fG(this,b);this.setAttribute("aria-hidden","true");this.setAttribute("role","presentation");jG(this);iG(this);hG(this);
19
+ return null};a.prototype.disconnectedCallback=function(){var b=$APP.k(this,"__xMetaballRaf");$APP.n(b)&&(cancelAnimationFrame(b),this.__xMetaballRaf=null);jG(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){if($APP.N(c,d)&&(this.__xMetaballModel=b=eG(this),$APP.n($APP.k(this,"__xMetaballRefs")))){d=$APP.M(b);c=$APP.D(d,aG);var e=$APP.D(d,bG);d=$APP.D(d,$APP.Jl);var g=$APP.M($APP.k(this,"__xMetaballRefs")),h=$APP.D(g,$APP.Pi);g=$APP.k(this,"__xMetaballBlobs");var l=$APP.k(this,
20
+ "__xMetaballPos"),m=g.length;e=PF(e,c);for(var p=m;;)if(p<c){var q=document.createElement("div");q.className="blob";h.appendChild(q);g.push(q);l.push({x:0,y:0});p+=1}else break;for(h=m;;)if(h>c)m=g.pop(),l.pop(),$APP.n(m.parentNode)&&m.parentNode.removeChild(m),--h;else break;for(l=0;;)if(l<c)h=g[l],m=e[l],h.style.width=""+$APP.T.g(m)+"px",h.style.height=""+$APP.T.g(m)+"px",h.style.background=d[l],l+=1;else break;this.__xMetaballSpeeds=OF(c);g=$APP.M(b);h=$APP.D(g,$APP.Th);e=$APP.D(g,$APP.ml);c=$APP.D(g,
21
+ cG);d=$APP.D(g,$F);g=$APP.D(g,dG);l=$APP.k(this,"__xMetaballRefs");m=$APP.Qi.g(l);$APP.n(m)&&m.setAttribute("stdDeviation",""+$APP.T.g(h));h=$APP.lm.g(l);$APP.n(h)&&h.setAttribute("values",e);e=$APP.hl.g(l);$APP.n(e)&&e.setAttribute("baseFrequency",""+$APP.T.g(.01*d));d=$APP.nj.g(l);$APP.n(d)&&d.setAttribute("scale",$APP.n(c)?""+$APP.T.g(g):"0");return fG(this,b)}return null};kG(a.prototype);return a},pG=function(){$APP.n(customElements.get("x-metaball-cursor"))||customElements.define("x-metaball-cursor",
22
+ oG());return null},UF=new $APP.K(null,"noise-scale-raw","noise-scale-raw",123215597),RF=new $APP.K(null,"noise-intensity-raw","noise-intensity-raw",-116633534),cG=new $APP.K(null,"noise?","noise?",-38350370),bG=new $APP.K(null,"blob-size","blob-size",-1862159046),$F=new $APP.K(null,"noise-scale","noise-scale",-2033475279),VF=new $APP.K(null,"noise-attr","noise-attr",-1534959409),TF=new $APP.K(null,"palette-raw","palette-raw",-1398782582),YF=new $APP.K(null,"palette","palette",-456203511),WF=new $APP.K(null,
23
+ "blob-count-raw","blob-count-raw",-1850938603),XF=new $APP.K(null,"noise-speed-raw","noise-speed-raw",1761342974),ZF=new $APP.K(null,"noise-speed","noise-speed",866692139),aG=new $APP.K(null,"blob-count","blob-count",-248711053),dG=new $APP.K(null,"noise-intensity","noise-intensity",747731519),SF=new $APP.K(null,"blob-size-raw","blob-size-raw",530207878);var lG="blob-count blob-size color noise noise-scale noise-speed noise-intensity blur threshold palette".split(" ");
24
+ $APP.xf([$APP.pj,new $APP.K(null,"blobSize","blobSize",-64083896),new $APP.K(null,"noiseIntensity","noiseIntensity",-792053623),YF,new $APP.K(null,"noiseScale","noiseScale",2003002730),new $APP.K(null,"noise","noise",-994696820),$APP.ml,$APP.Th,new $APP.K(null,"noiseSpeed","noiseSpeed",-959403627),new $APP.K(null,"blobCount","blobCount",-1279691625)],[new $APP.R(null,1,[$APP.Y,$APP.X],null),new $APP.R(null,1,[$APP.Y,$APP.V],null),new $APP.R(null,1,[$APP.Y,$APP.V],null),new $APP.R(null,1,[$APP.Y,$APP.X],
25
+ null),new $APP.R(null,1,[$APP.Y,$APP.V],null),new $APP.R(null,1,[$APP.Y,$APP.Fj],null),new $APP.R(null,1,[$APP.Y,$APP.X],null),new $APP.R(null,1,[$APP.Y,$APP.V],null),new $APP.R(null,1,[$APP.Y,$APP.V],null),new $APP.R(null,1,[$APP.Y,$APP.V],null)]);
26
+ var MF=new $APP.R(null,5,["rainbow",new $APP.O(null,5,5,$APP.P,["#ef4444","#f59e0b","#22c55e","#3b82f6","#a855f7"],null),"ocean",new $APP.O(null,5,5,$APP.P,["#06b6d4","#0ea5e9","#6366f1","#8b5cf6","#0d9488"],null),"sunset",new $APP.O(null,5,5,$APP.P,["#ef4444","#f97316","#eab308","#ec4899","#f43f5e"],null),"neon",new $APP.O(null,5,5,$APP.P,["#22d3ee","#a78bfa","#f472b6","#34d399","#facc15"],null),"ember",new $APP.O(null,5,5,$APP.P,["#dc2626","#ea580c","#d97706","#b91c1c","#f59e0b"],null)],null);var mG=[0],nG=":host{display:block;position:relative;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:var("+$APP.T.g("--x-metaball-cursor-z-index")+",9999);}[part\x3dviewport]{position:absolute;inset:var("+$APP.T.g("--x-metaball-cursor-inset")+",0);pointer-events:none;opacity:var("+$APP.T.g("--x-metaball-cursor-opacity")+",1);mix-blend-mode:var("+$APP.T.g("--x-metaball-cursor-blend-mode")+",normal);}.blob{position:absolute;border-radius:50%;will-change:transform;pointer-events:none;top:0;left:0;background:var("+
27
+ $APP.T.g("--x-metaball-cursor-color")+",#6366f1);}@media(prefers-reduced-motion:reduce){.blob{transition:none!important;}}",gG=function gG(a){if($APP.n(a.isConnected)){var c=$APP.k(a,"__xMetaballMouse"),d=$APP.k(a,"__xMetaballBlobs"),e=$APP.k(a,"__xMetaballPos"),g=$APP.k(a,"__xMetaballSpeeds"),h=$APP.k(c,"x");c=$APP.k(c,"y");for(var l=$APP.k(a,"__xMetaballModel"),m=d.length,p=0;;)if(p<m){var q=e[p],v=g[p],x=QF($APP.k(q,"x"),h,v);v=QF($APP.k(q,"y"),c,v);var y=d[p];q.x=x;q.y=v;y.style.transform="translate("+
28
+ $APP.T.g(x)+"px,"+$APP.T.g(v)+"px) translate(-50%,-50%)";p+=1}else break;$APP.n(cG.g(l))&&(d=$APP.k(a,"__xMetaballSeed")+ZF.g(l),e=$APP.k(a,"__xMetaballRefs"),a.__xMetaballSeed=d,e=$APP.hl.g(e),$APP.n(e)&&e.setAttribute("seed",""+$APP.T.g(Math.floor(d))));$APP.ia(a,"__xMetaballRaf",requestAnimationFrame(function(){return gG.g?gG.g(a):gG.call(null,a)}))}return null};$APP.fa("baredom.exports.x_metaball_cursor.init",pG);export const init=pG;
package/dist/x-modal.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var RT=function(a){var b=$APP.k(a,"__xModalRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("slot"),l=document.createElement("div"),m=document.createElement("slot"),p=document.createElement("div"),q=document.createElement("slot");c.textContent=":host{display:contents;color-scheme:light dark;--x-modal-bg:var(--x-color-bg,Canvas);--x-modal-fg:var(--x-color-text,CanvasText);--x-modal-backdrop:rgb(0 0 0/0.45);--x-modal-shadow:var(--x-shadow-lg,0 20px 60px rgb(0 0 0/0.25));--x-modal-radius:var(--x-radius-md,0.75rem);--x-modal-width-sm:22rem;--x-modal-width-md:32rem;--x-modal-width-lg:44rem;--x-modal-width-xl:60rem;--x-modal-max-height:90dvh;--x-modal-header-padding:1rem 1.25rem;--x-modal-body-padding:1rem 1.25rem;--x-modal-footer-padding:0.75rem 1.25rem;--x-modal-border:var(--x-color-border,color-mix(in srgb,currentColor 12%,transparent));--x-modal-duration:var(--x-transition-duration,180ms);--x-modal-easing:ease;--x-modal-z:1000;}[part\x3dbackdrop]{position:fixed;inset:0;background:var(--x-modal-backdrop);z-index:var(--x-modal-z);opacity:0;visibility:hidden;pointer-events:none;transition:opacity var(--x-modal-duration) var(--x-modal-easing),visibility 0s var(--x-modal-easing) var(--x-modal-duration);}:host([data-open\x3dtrue]) [part\x3dbackdrop]{opacity:1;visibility:visible;pointer-events:auto;transition:opacity var(--x-modal-duration) var(--x-modal-easing),visibility 0s;}[part\x3ddialog]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%) scale(0.96);opacity:0;visibility:hidden;pointer-events:none;background:var(--x-modal-bg);color:var(--x-modal-fg);box-shadow:var(--x-modal-shadow);border-radius:var(--x-modal-radius);display:flex;flex-direction:column;overflow:hidden;z-index:calc(var(--x-modal-z) + 1);max-height:var(--x-modal-max-height);transition:opacity var(--x-modal-duration) var(--x-modal-easing),transform var(--x-modal-duration) var(--x-modal-easing),visibility 0s var(--x-modal-easing) var(--x-modal-duration);}:host([data-size\x3dsm]) [part\x3ddialog]{width:var(--x-modal-width-sm);}:host([data-size\x3dmd]) [part\x3ddialog]{width:var(--x-modal-width-md);}:host([data-size\x3dlg]) [part\x3ddialog]{width:var(--x-modal-width-lg);}:host([data-size\x3dxl]) [part\x3ddialog]{width:var(--x-modal-width-xl);}:host([data-size\x3dfull]) [part\x3ddialog]{inset:0;top:0;left:0;width:100%;height:100dvh;border-radius:0;max-width:100%;max-height:100dvh;transform:scale(0.98);}:host([data-open\x3dtrue]) [part\x3ddialog]{opacity:1;transform:translate(-50%,-50%) scale(1);visibility:visible;pointer-events:auto;transition:opacity var(--x-modal-duration) var(--x-modal-easing),transform var(--x-modal-duration) var(--x-modal-easing),visibility 0s;}:host([data-open\x3dtrue][data-size\x3dfull]) [part\x3ddialog]{transform:scale(1);}[part\x3ddialog]:focus{outline:none;}[part\x3dheader]{padding:var(--x-modal-header-padding);border-bottom:1px solid var(--x-modal-border);flex-shrink:0;}[part\x3dbody]{padding:var(--x-modal-body-padding);overflow-y:auto;flex:1;}[part\x3dfooter]{padding:var(--x-modal-footer-padding);border-top:1px solid var(--x-modal-border);flex-shrink:0;}[part\x3ddialog]{max-width:calc(100vw - 2rem);}:host([data-size\x3dfull]) [part\x3ddialog]{max-width:100%;}@media (prefers-reduced-motion:reduce){[part\x3ddialog],[part\x3dbackdrop]{transition:none;}}";
2
+ var UU=function(a){var b=$APP.k(a,"__xModalRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("slot"),l=document.createElement("div"),m=document.createElement("slot"),p=document.createElement("div"),q=document.createElement("slot");c.textContent=":host{display:contents;color-scheme:light dark;--x-modal-bg:var(--x-color-bg,Canvas);--x-modal-fg:var(--x-color-text,CanvasText);--x-modal-backdrop:rgb(0 0 0/0.45);--x-modal-shadow:var(--x-shadow-lg,0 20px 60px rgb(0 0 0/0.25));--x-modal-radius:var(--x-radius-md,0.75rem);--x-modal-width-sm:22rem;--x-modal-width-md:32rem;--x-modal-width-lg:44rem;--x-modal-width-xl:60rem;--x-modal-max-height:90dvh;--x-modal-header-padding:1rem 1.25rem;--x-modal-body-padding:1rem 1.25rem;--x-modal-footer-padding:0.75rem 1.25rem;--x-modal-border:var(--x-color-border,color-mix(in srgb,currentColor 12%,transparent));--x-modal-duration:var(--x-transition-duration,180ms);--x-modal-easing:ease;--x-modal-z:1000;}[part\x3dbackdrop]{position:fixed;inset:0;background:var(--x-modal-backdrop);z-index:var(--x-modal-z);opacity:0;visibility:hidden;pointer-events:none;transition:opacity var(--x-modal-duration) var(--x-modal-easing),visibility 0s var(--x-modal-easing) var(--x-modal-duration);}:host([data-open\x3dtrue]) [part\x3dbackdrop]{opacity:1;visibility:visible;pointer-events:auto;transition:opacity var(--x-modal-duration) var(--x-modal-easing),visibility 0s;}[part\x3ddialog]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%) scale(0.96);opacity:0;visibility:hidden;pointer-events:none;background:var(--x-modal-bg);color:var(--x-modal-fg);box-shadow:var(--x-modal-shadow);border-radius:var(--x-modal-radius);display:flex;flex-direction:column;overflow:hidden;z-index:calc(var(--x-modal-z) + 1);max-height:var(--x-modal-max-height);transition:opacity var(--x-modal-duration) var(--x-modal-easing),transform var(--x-modal-duration) var(--x-modal-easing),visibility 0s var(--x-modal-easing) var(--x-modal-duration);}:host([data-size\x3dsm]) [part\x3ddialog]{width:var(--x-modal-width-sm);}:host([data-size\x3dmd]) [part\x3ddialog]{width:var(--x-modal-width-md);}:host([data-size\x3dlg]) [part\x3ddialog]{width:var(--x-modal-width-lg);}:host([data-size\x3dxl]) [part\x3ddialog]{width:var(--x-modal-width-xl);}:host([data-size\x3dfull]) [part\x3ddialog]{inset:0;top:0;left:0;width:100%;height:100dvh;border-radius:0;max-width:100%;max-height:100dvh;transform:scale(0.98);}:host([data-open\x3dtrue]) [part\x3ddialog]{opacity:1;transform:translate(-50%,-50%) scale(1);visibility:visible;pointer-events:auto;transition:opacity var(--x-modal-duration) var(--x-modal-easing),transform var(--x-modal-duration) var(--x-modal-easing),visibility 0s;}:host([data-open\x3dtrue][data-size\x3dfull]) [part\x3ddialog]{transform:scale(1);}[part\x3ddialog]:focus{outline:none;}[part\x3dheader]{padding:var(--x-modal-header-padding);border-bottom:1px solid var(--x-modal-border);flex-shrink:0;}[part\x3dbody]{padding:var(--x-modal-body-padding);overflow-y:auto;flex:1;}[part\x3dfooter]{padding:var(--x-modal-footer-padding);border-top:1px solid var(--x-modal-border);flex-shrink:0;}[part\x3ddialog]{max-width:calc(100vw - 2rem);}:host([data-size\x3dfull]) [part\x3ddialog]{max-width:100%;}@media (prefers-reduced-motion:reduce){[part\x3ddialog],[part\x3dbackdrop]{transition:none;}}";
3
3
  d.setAttribute("part","backdrop");e.setAttribute("part","dialog");e.setAttribute("role","dialog");e.setAttribute("aria-modal","true");g.setAttribute("part","header");h.setAttribute("name","header");l.setAttribute("part","body");p.setAttribute("part","footer");q.setAttribute("name","footer");g.appendChild(h);l.appendChild(m);p.appendChild(q);e.appendChild(g);e.appendChild(l);e.appendChild(p);b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xModalRefs={root:b,backdrop:d,dialog:e,header:g,body:l,
4
- footer:p};return $APP.k(a,"__xModalRefs")},ST=function(a,b,c){a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},TT=function(a){function b(d){var e=window.getComputedStyle(d);return $APP.N("none",e.display)&&$APP.N("hidden",e.visibility)&&d.offsetWidth>0&&d.offsetHeight>0}var c=$APP.ce(b,$APP.tc($APP.k(a,"dialog").querySelectorAll("a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex\x3d'-1'])")));
4
+ footer:p};return $APP.k(a,"__xModalRefs")},VU=function(a,b,c){a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},WU=function(a){function b(d){var e=window.getComputedStyle(d);return $APP.N("none",e.display)&&$APP.N("hidden",e.visibility)&&d.offsetWidth>0&&d.offsetHeight>0}var c=$APP.ce(b,$APP.tc($APP.k(a,"dialog").querySelectorAll("a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex\x3d'-1'])")));
5
5
  a=$APP.ae(function(d){return $APP.ce(b,$APP.ae(function(e){var g=$APP.tc(e.querySelectorAll("a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex\x3d'-1'])"));return $APP.n(e.matches("a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex\x3d'-1'])"))?$APP.nd(e,g):g},$APP.tc([$APP.uc(d.assignedElements({flatten:!0}))])))},$APP.tc([$APP.tc($APP.k(a,"root").querySelectorAll("slot"))]));
6
- return $APP.ve($APP.Zd.i(c,a))},UT=function(a){var b=$APP.k(a,"__xModalRefs");b=$APP.n(b)?$APP.k(b,"dialog"):null;var c=$APP.k(a,"__xModalRestore"),d=$APP.k(a,"__xModalDialogTab")===!0;a.__xModalTabbables=null;a.__xModalRestore=null;$APP.n($APP.n(b)?d:b)&&(b.removeAttribute("tabindex"),a.__xModalDialogTab=!1);$APP.n($APP.n(c)?c.isConnected:c)&&c.focus()},VT=function(a,b){ST(a,"x-modal-dismiss",{reason:b});a.removeAttribute("open");return null},WT=function(a){$APP.n(a.hasAttribute("open"))||a.setAttribute("open",
7
- "");return null},XT=function(a){a.removeAttribute("open");return null},YT=function(a,b){$APP.N($APP.k(a,"__xModalPrevOpen"),b)&&(a.__xModalPrevOpen=b,ST(a,"x-modal-toggle",{open:b}),$APP.n(b)?setTimeout(function(){var c=$APP.k(a,"__xModalRefs"),d=$APP.n(c)?$APP.k(c,"dialog"):null;c=$APP.n(c)?TT(c):null;a.__xModalRestore=document.activeElement;var e=$APP.n(c)?$APP.ph(c):null;a.__xModalTabbables=e;$APP.t(c)?$APP.u(c).focus():$APP.n(d)&&($APP.n(d.hasAttribute("tabindex"))||(d.setAttribute("tabindex",
8
- "-1"),a.__xModalDialogTab=!0),d.focus());return null},0):UT(a))},$T=function(a){var b=RT(a);b=$APP.k(b,"dialog");var c=new $APP.R(null,3,[$APP.ii,a.hasAttribute("open"),$APP.il,a.getAttribute("size"),$APP.Wh,a.getAttribute("label")],null);var d=$APP.M(c),e=$APP.D(d,$APP.ii);c=$APP.D(d,$APP.il);d=$APP.D(d,$APP.Wh);e=$APP.F(e);c=typeof c==="string"&&$APP.J(ZT,c)?c:"md";d=typeof d==="string"&&$APP.N(d,"")?d:"Modal";c=new $APP.R(null,3,[$APP.Wl,e,$APP.th,c,$APP.U,d],null);d=$APP.Wl.g(c);a.setAttribute("data-open",
9
- $APP.n(d)?"true":"false");a.setAttribute("data-size",$APP.th.g(c));b.setAttribute("aria-label",$APP.U.g(c));YT(a,d)},aU=function(a){function b(g){var h=g.key;if($APP.C.i(h,"Escape"))g.preventDefault(),VT(a,"escape");else if($APP.C.i(h,"Tab")){h=$APP.k(a,"__xModalTabbables");h=$APP.n(h)?$APP.ve($APP.tc(h)):$APP.ee;var l=$APP.k(a,"__xModalRefs");l=$APP.n(l)?$APP.k(l,"dialog"):null;if($APP.Gc(h))g.preventDefault(),$APP.n(l)&&l.focus();else{l=document.activeElement;var m=$APP.u(h);h=$APP.wc(h);var p=
10
- g.shiftKey;$APP.n($APP.n(p)?$APP.C.i(l,m):p)?(g.preventDefault(),h.focus()):$APP.r(p)&&$APP.C.i(l,h)&&(g.preventDefault(),m.focus())}}return null}function c(){return VT(a,"backdrop")}var d=RT(a),e=$APP.k(d,"dialog");$APP.k(d,"backdrop").addEventListener("click",c);e.addEventListener("keydown",b);$APP.ia(a,"__xModalHandlers",{backdrop:c,keydown:b})},bU=function(a){var b=$APP.k(a,"__xModalHandlers"),c=$APP.k(a,"__xModalRefs");if($APP.n($APP.n(b)?c:b)){var d=$APP.k(c,"backdrop");c=$APP.k(c,"dialog");
11
- var e=$APP.k(b,"backdrop");b=$APP.k(b,"keydown");$APP.n(e)&&d.removeEventListener("click",e);$APP.n(b)&&c.removeEventListener("keydown",b)}a.__xModalHandlers=null},cU=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return $APP.n(b)?WT(this):XT(this)},enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?b:"md"},set:function(b){return b==null?this.removeAttribute("size"):
12
- this.setAttribute("size",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Modal"},set:function(b){return b==null?this.removeAttribute("label"):this.setAttribute("label",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"show",{value:function(){return WT(this)},enumerable:!0,configurable:!0,writable:!0});Object.defineProperty(a,"hide",{value:function(){return XT(this)},enumerable:!0,
13
- configurable:!0,writable:!0});Object.defineProperty(a,"toggle",{value:function(){$APP.n(this.hasAttribute("open"))?XT(this):WT(this);return null},enumerable:!0,configurable:!0,writable:!0})},eU=function(){if(!$APP.n(customElements.get("x-modal"))){var a=class extends HTMLElement{};a.observedAttributes=dU;a.prototype.connectedCallback=function(){RT(this);bU(this);aU(this);$T(this);return null};a.prototype.disconnectedCallback=function(){bU(this);UT(this);return null};a.prototype.attributeChangedCallback=
14
- function(b,c,d){$APP.N(c,d)&&$T(this);return null};cU(a.prototype);customElements.define("x-modal",a)}return null},fU=function(){return eU()};var ZT=new $APP.S(null,new $APP.R(null,5,["md",null,"lg",null,"full",null,"xl",null,"sm",null],null),null),dU=["open","size","label"];$APP.Pd(["x-modal-toggle",new $APP.R(null,2,[$APP.wl,!1,$APP.yj,new $APP.R(null,1,[$APP.tl,$APP.Bj],null)],null),"x-modal-dismiss",new $APP.R(null,2,[$APP.wl,!1,$APP.yj,new $APP.R(null,1,[$APP.ri,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_modal.init",fU);export const init=fU;
6
+ return $APP.ve($APP.Zd.i(c,a))},XU=function(a){var b=$APP.k(a,"__xModalRefs");b=$APP.n(b)?$APP.k(b,"dialog"):null;var c=$APP.k(a,"__xModalRestore"),d=$APP.k(a,"__xModalDialogTab")===!0;a.__xModalTabbables=null;a.__xModalRestore=null;$APP.n($APP.n(b)?d:b)&&(b.removeAttribute("tabindex"),a.__xModalDialogTab=!1);$APP.n($APP.n(c)?c.isConnected:c)&&c.focus()},YU=function(a,b){VU(a,"x-modal-dismiss",{reason:b});a.removeAttribute("open");return null},ZU=function(a){$APP.n(a.hasAttribute("open"))||a.setAttribute("open",
7
+ "");return null},$U=function(a){a.removeAttribute("open");return null},aV=function(a,b){$APP.N($APP.k(a,"__xModalPrevOpen"),b)&&(a.__xModalPrevOpen=b,VU(a,"x-modal-toggle",{open:b}),$APP.n(b)?setTimeout(function(){var c=$APP.k(a,"__xModalRefs"),d=$APP.n(c)?$APP.k(c,"dialog"):null;c=$APP.n(c)?WU(c):null;a.__xModalRestore=document.activeElement;var e=$APP.n(c)?$APP.ph(c):null;a.__xModalTabbables=e;$APP.t(c)?$APP.u(c).focus():$APP.n(d)&&($APP.n(d.hasAttribute("tabindex"))||(d.setAttribute("tabindex",
8
+ "-1"),a.__xModalDialogTab=!0),d.focus());return null},0):XU(a))},cV=function(a){var b=UU(a);b=$APP.k(b,"dialog");var c=new $APP.R(null,3,[$APP.ki,a.hasAttribute("open"),$APP.ol,a.getAttribute("size"),$APP.Yh,a.getAttribute("label")],null);var d=$APP.M(c),e=$APP.D(d,$APP.ki);c=$APP.D(d,$APP.ol);d=$APP.D(d,$APP.Yh);e=$APP.F(e);c=typeof c==="string"&&$APP.J(bV,c)?c:"md";d=typeof d==="string"&&$APP.N(d,"")?d:"Modal";c=new $APP.R(null,3,[$APP.em,e,$APP.th,c,$APP.U,d],null);d=$APP.em.g(c);a.setAttribute("data-open",
9
+ $APP.n(d)?"true":"false");a.setAttribute("data-size",$APP.th.g(c));b.setAttribute("aria-label",$APP.U.g(c));aV(a,d)},dV=function(a){function b(g){var h=g.key;if($APP.C.i(h,"Escape"))g.preventDefault(),YU(a,"escape");else if($APP.C.i(h,"Tab")){h=$APP.k(a,"__xModalTabbables");h=$APP.n(h)?$APP.ve($APP.tc(h)):$APP.ee;var l=$APP.k(a,"__xModalRefs");l=$APP.n(l)?$APP.k(l,"dialog"):null;if($APP.Gc(h))g.preventDefault(),$APP.n(l)&&l.focus();else{l=document.activeElement;var m=$APP.u(h);h=$APP.wc(h);var p=
10
+ g.shiftKey;$APP.n($APP.n(p)?$APP.C.i(l,m):p)?(g.preventDefault(),h.focus()):$APP.r(p)&&$APP.C.i(l,h)&&(g.preventDefault(),m.focus())}}return null}function c(){return YU(a,"backdrop")}var d=UU(a),e=$APP.k(d,"dialog");$APP.k(d,"backdrop").addEventListener("click",c);e.addEventListener("keydown",b);$APP.ia(a,"__xModalHandlers",{backdrop:c,keydown:b})},eV=function(a){var b=$APP.k(a,"__xModalHandlers"),c=$APP.k(a,"__xModalRefs");if($APP.n($APP.n(b)?c:b)){var d=$APP.k(c,"backdrop");c=$APP.k(c,"dialog");
11
+ var e=$APP.k(b,"backdrop");b=$APP.k(b,"keydown");$APP.n(e)&&d.removeEventListener("click",e);$APP.n(b)&&c.removeEventListener("keydown",b)}a.__xModalHandlers=null},fV=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return $APP.n(b)?ZU(this):$U(this)},enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?b:"md"},set:function(b){return b==null?this.removeAttribute("size"):
12
+ this.setAttribute("size",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Modal"},set:function(b){return b==null?this.removeAttribute("label"):this.setAttribute("label",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"show",{value:function(){return ZU(this)},enumerable:!0,configurable:!0,writable:!0});Object.defineProperty(a,"hide",{value:function(){return $U(this)},enumerable:!0,
13
+ configurable:!0,writable:!0});Object.defineProperty(a,"toggle",{value:function(){$APP.n(this.hasAttribute("open"))?$U(this):ZU(this);return null},enumerable:!0,configurable:!0,writable:!0})},hV=function(){if(!$APP.n(customElements.get("x-modal"))){var a=class extends HTMLElement{};a.observedAttributes=gV;a.prototype.connectedCallback=function(){UU(this);eV(this);dV(this);cV(this);return null};a.prototype.disconnectedCallback=function(){eV(this);XU(this);return null};a.prototype.attributeChangedCallback=
14
+ function(b,c,d){$APP.N(c,d)&&cV(this);return null};fV(a.prototype);customElements.define("x-modal",a)}return null},iV=function(){return hV()};var bV=new $APP.S(null,new $APP.R(null,5,["md",null,"lg",null,"full",null,"xl",null,"sm",null],null),null),gV=["open","size","label"];$APP.Pd(["x-modal-toggle",new $APP.R(null,2,[$APP.Dl,!1,$APP.Cj,new $APP.R(null,1,[$APP.Al,$APP.Fj],null)],null),"x-modal-dismiss",new $APP.R(null,2,[$APP.Dl,!1,$APP.Cj,new $APP.R(null,1,[$APP.ti,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_modal.init",iV);export const init=iV;
@@ -1,41 +1,41 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Nu=function(a){return typeof a==="string"?(a=a.trim().toLowerCase(),$APP.J(Mu,a)?a:"clean"):"clean"},Ou=function(a){return $APP.C.i(a,"organic")||$APP.C.i(a,"liquid")},Pu=function(a){var b=(a-1)/17*-7;return"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 "+$APP.T.g(a)+" "+$APP.T.g(b)},Qu=function(a,b,c,d){if(typeof a==="string"){a=a.trim();if($APP.C.i(a,""))return b;a=parseFloat(a);return $APP.n(isNaN(a))?b:Math.min(d,Math.max(c,a))}return b},Ru=function(a,b,c,d){if($APP.n($APP.n(a)?a>0:a)){b=$APP.$g.i(1E-4,
3
- $APP.n(b)?b:0);c=$APP.$g.i(1E-4,$APP.n(c)?c:0);d=$APP.$g.i(1E-4,$APP.n(d)?d:0);var e=Math.sqrt(b/d);a=1E3*(4/($APP.$g.i(.2,$APP.ah.i(5,c/(2*Math.sqrt(b*d))))*e)+Math.PI/e)/a}else a=1;return a},Su=function(a,b,c,d,e,g){b+=(e*(1-a)-g*b)/d*c;return[a+b*c,b]},Uu=function(a,b){b=$APP.M(b);var c=$APP.D(b,Tu);b=$APP.D(b,$APP.Fj);var d=$APP.ve(a);a=$APP.z(d);if(a>0){var e=$APP.n(function(){return $APP.n(c)?$APP.Td(function(g){return $APP.C.i(g,c)},d):c}())?c:null;if($APP.n(e))return e;a=$APP.$g.i(0,$APP.ah.i(a-
4
- 1,$APP.n(b)?b:0));return $APP.oc(d,a)}return null},Vu=function(a,b,c){return a+(b-a)*c},Wu=function(a){if(typeof a==="string"){a=a.match(/rgba?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)(?:\s*,\s*(\d*(?:\.\d+)?))?\s*\)/);if($APP.n(a)){var b=parseFloat(a[1]),c=parseFloat(a[2]),d=parseFloat(a[3]);var e=a[4];e=$APP.n(e)?$APP.N("",a[4]):e;a=[b,c,d,$APP.n(e)?parseFloat(a[4]):1]}else a=null;return a}return null},Xu=function(a,b,c){var d=Wu(a),e=Wu(b);return $APP.n($APP.n(d)?e:d)?"rgba("+
5
- $APP.T.g(Math.round(Vu(d[0],e[0],c)))+","+$APP.T.g(Math.round(Vu(d[1],e[1],c)))+","+$APP.T.g(Math.round(Vu(d[2],e[2],c)))+","+$APP.T.g(Vu(d[3],e[3],c))+")":c<.5?a:b},Yu=function(a){if(typeof a==="string")if(a=a.trim(),$APP.N(a,"")){a=a.split(/\s+/);for(var b=a.length,c=[],d=0;;){if(d>=b)return c.length>0?c:null;var e=a[d];if($APP.n(e.endsWith("px"))){e=parseFloat(e.slice(0,e.length-2));if($APP.n(isNaN(e)))return null;c.push(e);d+=1}else return null}}else return null;else return null},Zu=function(a,
6
- b){return new $APP.R(null,2,[$APP.Fh,$APP.n(a)?a:"",$APP.pl,$APP.n(b)?b:""],null)},av=function(a){var b=$APP.k(a,"__xMorphStackRefs"),c=$APP.n(b)?$u.g(b):null;if($APP.n($APP.n(c)?c.isConnected:c))return b;c=document.createElement("div");var d=document.createElementNS("http://www.w3.org/2000/svg","svg");c.style.position="fixed";c.style.top="0";c.style.left="0";c.style.width="100%";c.style.height="100dvh";c.style.pointerEvents="none";c.style.overflow="visible";c.style.zIndex="2147483646";c.setAttribute("aria-hidden",
7
- "true");c.setAttribute("data-x-morph-stack-ghost-layer","");d.style.position="absolute";d.style.width="0";d.style.height="0";d.style.overflow="hidden";d.setAttribute("aria-hidden","true");c.appendChild(d);document.body.appendChild(c);b=$APP.Yg.C(b,$u,c,$APP.tc([$APP.Jj,d]));return a.__xMorphStackRefs=b},bv=function(a){var b=$APP.k(a,"__xMorphStackRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");
2
+ var Wu=function(a){return typeof a==="string"?(a=a.trim().toLowerCase(),$APP.J(Vu,a)?a:"clean"):"clean"},Xu=function(a){return $APP.C.i(a,"organic")||$APP.C.i(a,"liquid")},Yu=function(a){var b=(a-1)/17*-7;return"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 "+$APP.T.g(a)+" "+$APP.T.g(b)},Zu=function(a,b,c,d){if(typeof a==="string"){a=a.trim();if($APP.C.i(a,""))return b;a=parseFloat(a);return $APP.n(isNaN(a))?b:Math.min(d,Math.max(c,a))}return b},$u=function(a,b,c,d){if($APP.n($APP.n(a)?a>0:a)){b=$APP.$g.i(1E-4,
3
+ $APP.n(b)?b:0);c=$APP.$g.i(1E-4,$APP.n(c)?c:0);d=$APP.$g.i(1E-4,$APP.n(d)?d:0);var e=Math.sqrt(b/d);a=1E3*(4/($APP.$g.i(.2,$APP.ah.i(5,c/(2*Math.sqrt(b*d))))*e)+Math.PI/e)/a}else a=1;return a},av=function(a,b,c,d,e,g){b+=(e*(1-a)-g*b)/d*c;return[a+b*c,b]},cv=function(a,b){b=$APP.M(b);var c=$APP.D(b,bv);b=$APP.D(b,$APP.Jj);var d=$APP.ve(a);a=$APP.z(d);if(a>0){var e=$APP.n(function(){return $APP.n(c)?$APP.Td(function(g){return $APP.C.i(g,c)},d):c}())?c:null;if($APP.n(e))return e;a=$APP.$g.i(0,$APP.ah.i(a-
4
+ 1,$APP.n(b)?b:0));return $APP.oc(d,a)}return null},dv=function(a,b,c){return a+(b-a)*c},ev=function(a){if(typeof a==="string"){a=a.match(/rgba?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)(?:\s*,\s*(\d*(?:\.\d+)?))?\s*\)/);if($APP.n(a)){var b=parseFloat(a[1]),c=parseFloat(a[2]),d=parseFloat(a[3]);var e=a[4];e=$APP.n(e)?$APP.N("",a[4]):e;a=[b,c,d,$APP.n(e)?parseFloat(a[4]):1]}else a=null;return a}return null},fv=function(a,b,c){var d=ev(a),e=ev(b);return $APP.n($APP.n(d)?e:d)?"rgba("+
5
+ $APP.T.g(Math.round(dv(d[0],e[0],c)))+","+$APP.T.g(Math.round(dv(d[1],e[1],c)))+","+$APP.T.g(Math.round(dv(d[2],e[2],c)))+","+$APP.T.g(dv(d[3],e[3],c))+")":c<.5?a:b},gv=function(a){if(typeof a==="string")if(a=a.trim(),$APP.N(a,"")){a=a.split(/\s+/);for(var b=a.length,c=[],d=0;;){if(d>=b)return c.length>0?c:null;var e=a[d];if($APP.n(e.endsWith("px"))){e=parseFloat(e.slice(0,e.length-2));if($APP.n(isNaN(e)))return null;c.push(e);d+=1}else return null}}else return null;else return null},hv=function(a,
6
+ b){return new $APP.R(null,2,[$APP.Ch,$APP.n(a)?a:"",$APP.vl,$APP.n(b)?b:""],null)},jv=function(a){var b=$APP.k(a,"__xMorphStackRefs"),c=$APP.n(b)?iv.g(b):null;if($APP.n($APP.n(c)?c.isConnected:c))return b;c=document.createElement("div");var d=document.createElementNS("http://www.w3.org/2000/svg","svg");c.style.position="fixed";c.style.top="0";c.style.left="0";c.style.width="100%";c.style.height="100dvh";c.style.pointerEvents="none";c.style.overflow="visible";c.style.zIndex="2147483646";c.setAttribute("aria-hidden",
7
+ "true");c.setAttribute("data-x-morph-stack-ghost-layer","");d.style.position="absolute";d.style.width="0";d.style.height="0";d.style.overflow="hidden";d.setAttribute("aria-hidden","true");c.appendChild(d);document.body.appendChild(c);b=$APP.Yg.C(b,iv,c,$APP.tc([$APP.Nj,d]));return a.__xMorphStackRefs=b},kv=function(a){var b=$APP.k(a,"__xMorphStackRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");
8
8
  c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-morph-stack-spring-stiffness:170;--x-morph-stack-spring-damping:26;--x-morph-stack-spring-mass:1;--x-morph-stack-fade-ms:160ms;--x-morph-stack-goo-blur:10;--x-morph-stack-goo-threshold:18;--x-morph-stack-bg:transparent;}:host([data-variant\x3d'clean']){--x-morph-stack-spring-stiffness:280;--x-morph-stack-spring-damping:30;--x-morph-stack-spring-mass:0.7;}:host([data-variant\x3d'organic']){--x-morph-stack-spring-stiffness:180;--x-morph-stack-spring-damping:5;--x-morph-stack-spring-mass:1.0;--x-morph-stack-goo-blur:6;--x-morph-stack-goo-threshold:14;}:host([data-variant\x3d'liquid']){--x-morph-stack-spring-stiffness:50;--x-morph-stack-spring-damping:14;--x-morph-stack-spring-mass:2.0;--x-morph-stack-goo-blur:26;--x-morph-stack-goo-threshold:26;}[part\x3dviewport]{position:relative;display:block;background:var(--x-morph-stack-bg);}:host([disabled]){opacity:0.7;}";
9
- d.setAttribute("part","viewport");e.setAttribute("name","state");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xMorphStackRefs=new $APP.R(null,3,[$APP.ji,b,$APP.Ni,d,$APP.Li,e],null);return $APP.k(a,"__xMorphStackRefs")},dv=function(a){a=new $APP.R(null,8,[cv,a.getAttribute("active-state"),$APP.Dk,a.getAttribute("active-index"),$APP.vl,a.getAttribute("stiffness"),$APP.fm,a.getAttribute("damping"),$APP.cj,a.getAttribute("mass"),$APP.Jk,a.getAttribute("variant"),$APP.wi,a.getAttribute("duration"),
10
- $APP.al,a.hasAttribute("disabled")],null);a=$APP.M(a);var b=$APP.D(a,cv),c=$APP.D(a,$APP.Dk),d=$APP.D(a,$APP.vl),e=$APP.D(a,$APP.fm),g=$APP.D(a,$APP.cj),h=$APP.D(a,$APP.Jk),l=$APP.D(a,$APP.wi);a=$APP.D(a,$APP.al);b=typeof b==="string"&&$APP.N("",b.trim())?b.trim():null;a:{if(typeof c==="string"&&(c=c.trim(),$APP.N(c,""))){c=parseInt(c,10);c=typeof c==="number"&&$APP.r(isNaN(c))&&c>=0?c:null;break a}c=null}d=Qu(d,170,10,500);e=Qu(e,26,1,100);g=Qu(g,1,.1,10);h=Nu(h);a:{if(typeof l==="string"&&(l=l.trim(),
11
- $APP.N(l,""))){l=parseFloat(l);l=typeof l==="number"&&$APP.r(isNaN(l))&&l>0?l:null;break a}l=null}return new $APP.R(null,8,[Tu,b,$APP.Fj,c,$APP.fl,d,$APP.kk,e,$APP.Ll,g,$APP.Nh,h,$APP.wk,l,$APP.W,$APP.F(a)],null)},ev=function(a,b,c){a=window.getComputedStyle(a).getPropertyValue(b);return typeof a==="string"&&$APP.N("",a.trim())?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?c:a):c},fv=function(a){a=bv(a);a=$APP.M(a);a=$APP.D(a,$APP.Li).assignedElements();for(var b=[],c=a.length,d=0;;)if(d<c){var e=a[d],
12
- g=$APP.C.i(1,e.nodeType);$APP.n(g?e.hasAttribute("data-state"):g)&&b.push(e);d+=1}else break;return b},gv=function(a){a=fv(a);for(var b=[],c=a.length,d=0;;)if(d<c)b.push(a[d].getAttribute("data-state")),d+=1;else break;return b},hv=function(a,b){a=fv(a);for(var c=a.length,d=0;;)if(d<c){var e=a[d];if($APP.C.i(b,e.getAttribute("data-state")))return e;d+=1}else return null},iv=function(a,b){for(var c=fv(a),d=c.length,e=0;;)if(e<d){var g=c[e],h=g.getAttribute("data-state");$APP.C.i(h,b)?g.style.display=
13
- "":g.style.display="none";e+=1}else break;$APP.n(b)?a.setAttribute("data-active-state",b):a.removeAttribute("data-active-state");a.__xMorphStackCurrent=b},jv=function(a){var b={};if($APP.n(a)){a=a.querySelectorAll("["+$APP.T.g("data-morph-id")+"]");for(var c=a.length,d=0;;)if(d<c){var e=a[d],g=e.getAttribute("data-morph-id"),h=e.getBoundingClientRect(),l=window.getComputedStyle(e);b[g]={rect:{x:h.left,y:h.top,w:h.width,h:h.height},br:l.borderRadius,bg:l.backgroundColor,color:l.color,clip:l.clipPath,
14
- text:e.textContent,node:e};d+=1}else break}return b},kv=function(a,b,c){var d=$APP.k(a,"__xMorphStackFilterBlur");a=$APP.k(a,"__xMorphStackFilterMatrix");$APP.n(d)&&d.setAttribute("stdDeviation",""+$APP.T.g(b));$APP.n(a)&&a.setAttribute("values",Pu(c))},lv=function(a,b){var c=$APP.k(a,"__xMorphStackGooBaseBlur"),d=$APP.k(a,"__xMorphStackGooBaseThreshold");c!=null&&d!=null&&(b=b<=0?1:b<.18?1-b/.18:b<.7?0:b<1?(b-.7)/(1-.7):1,kv(a,c*(1-b),Vu(d,1,b)))},nv=function(a){var b=av(a);b=$APP.M(b);b=$APP.D(b,
15
- $APP.Jj);var c=$APP.k(a,"__xMorphStackFilterId");if($APP.n(c))b=c;else{c=mv[0];mv[0]=c+1;c="x-morph-stack-goo-"+$APP.T.g(c);var d=document.createElementNS("http://www.w3.org/2000/svg","defs"),e=document.createElementNS("http://www.w3.org/2000/svg","filter"),g=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),h=document.createElementNS("http://www.w3.org/2000/svg","feColorMatrix");e.setAttribute("id",c);e.setAttribute("x","-20%");e.setAttribute("y","-20%");e.setAttribute("width",
16
- "140%");e.setAttribute("height","140%");g.setAttribute("in","SourceGraphic");g.setAttribute("stdDeviation",""+$APP.T.g(10));g.setAttribute("result","blur");h.setAttribute("in","blur");h.setAttribute("type","matrix");h.setAttribute("values",Pu(18));e.appendChild(g);e.appendChild(h);d.appendChild(e);b.appendChild(d);a.__xMorphStackFilterId=c;a.__xMorphStackFilterBlur=g;a.__xMorphStackFilterMatrix=h;b=c}c=av(a);c=$APP.M(c);c=$APP.D(c,$u);d=ev(a,"--x-morph-stack-goo-blur",10);e=ev(a,"--x-morph-stack-goo-threshold",
17
- 18);a.__xMorphStackGooBaseBlur=d;a.__xMorphStackGooBaseThreshold=e;kv(a,d,e);c.style.filter="url(#"+$APP.T.g(b)+")";c.style.webkitFilter="url(#"+$APP.T.g(b)+")"},ov=function(a){a=$APP.k(a,"__xMorphStackRefs");a=$APP.n(a)?$u.g(a):null;$APP.n(a)&&(a.style.filter="",a.style.webkitFilter="")},pv=function(a){a.style.position="absolute";a.style.margin="0";a.style.boxSizing="border-box";a.style.transformOrigin="top left";a.style.pointerEvents="none"},qv=function(a,b,c){var d=b.y-c.top;a.style.left=""+$APP.T.g(b.x-
18
- c.left)+"px";a.style.top=""+$APP.T.g(d)+"px";a.style.width=""+$APP.T.g(b.w)+"px";a.style.height=""+$APP.T.g(b.h)+"px"},rv=function(a,b,c,d){function e(la){la=$APP.$g.i(0,$APP.ah.i(1,la));var za=Vu(Y,0,la),Ka=Vu(G,1,la),$a=Vu(I,1,la);B.style.transform="translate("+$APP.T.g(Vu(Q,0,la))+"px,"+$APP.T.g(za)+"px) scale("+$APP.T.g(Ka)+","+$APP.T.g($a)+")";za=B.style;Ka=Yu(m);$a=Yu(p);if($APP.n($APP.n(Ka)?$APP.n($a)?$APP.C.i(Ka.length,$a.length):$a:Ka)){for(var ab=[],jb=Ka.length,Ib=0;;)if(Ib<jb)ab.push(""+
19
- $APP.T.g(Vu(Ka[Ib],$a[Ib],la))+"px"),Ib+=1;else break;Ka=ab.join(" ")}else Ka=la<.5?m:p;za.borderRadius=Ka;$APP.n($APP.n(q)?v:q)&&(B.style.backgroundColor=Xu(q,v,la));$APP.n($APP.n(x)?y:x)&&(B.style.color=Xu(x,y,la));A&&(B.style.opacity=""+$APP.T.g($APP.$g.i(0,$APP.ah.i(1,la))));return null}var g=$APP.k(d,"node"),h=$APP.k(d,"rect"),l=$APP.k(c,"rect"),m=$APP.k(c,"br"),p=$APP.k(d,"br"),q=$APP.k(c,"bg"),v=$APP.k(d,"bg"),x=$APP.k(c,"color"),y=$APP.k(d,"color"),A=$APP.N($APP.k(c,"text"),$APP.k(d,"text")),
20
- B=g.cloneNode(!0);c=h.w;d=h.h;var E=l.w,H=l.h,G=c>0?E/c:1,I=d>0?H/d:1,Q=l.x-h.x,Y=l.y-h.y;pv(B);qv(B,h,b);a.appendChild(B);g.style.visibility="hidden";e(0);return{t:0,v:0,update:e,finalize:function(){g.style.visibility="";return $APP.n(B.parentNode)?B.parentNode.removeChild(B):null}}},sv=function(a,b,c,d){function e(B){B=$APP.$g.i(0,$APP.ah.i(1,B));var E=Vu(0,v,B),H=Vu(1,x,B),G=Vu(1,y,B);A.style.transform="translate("+$APP.T.g(Vu(0,q,B))+"px,"+$APP.T.g(E)+"px) scale("+$APP.T.g(H)+","+$APP.T.g(G)+
21
- ")";A.style.opacity=""+$APP.T.g($APP.$g.i(0,1-B));return null}var g=$APP.k(c,"rect");d=$APP.k(d,"rect");var h=g.w,l=g.h,m=d.w,p=d.h,q=d.x-g.x,v=d.y-g.y,x=h>0?m/h:1,y=l>0?p/l:1,A=$APP.k(c,"node").cloneNode(!0);pv(A);qv(A,g,b);a.appendChild(A);e(0);return{t:0,v:0,update:e,finalize:function(){return $APP.n(A.parentNode)?A.parentNode.removeChild(A):null}}},tv=function(a,b,c){var d=$APP.k(c,"rect"),e=$APP.k(c,"node").cloneNode(!0);pv(e);qv(e,d,b);a.appendChild(e);return{t:0,v:0,update:function(g){e.style.opacity=
22
- ""+$APP.T.g($APP.$g.i(0,1-g));return null},finalize:function(){return $APP.n(e.parentNode)?e.parentNode.removeChild(e):null}}},uv=function(a){var b=$APP.k(a,"node");b.style.opacity="0";return{t:0,v:0,update:function(c){b.style.opacity=""+$APP.T.g($APP.$g.i(0,$APP.ah.i(1,c)));return null},finalize:function(){return b.style.opacity=""}}},zv=function(a,b,c){a=av(a);a=$APP.M(a);var d=$APP.D(a,$u),e=d.getBoundingClientRect(),g=Object.keys(b);a=Object.keys(c);g=$APP.ve(g);a=$APP.ve(a);g=$APP.Vf(g);a=$APP.Vf(a);
23
- a=new $APP.R(null,3,[vv,$APP.tm.i(g,a),wv,xv.i(g,a),yv,xv.i(a,g)],null);var h=vv.g(a),l=wv.g(a);g=yv.g(a);a=[];h=$APP.t(h);for(var m=null,p=0,q=0;;)if(q<p){var v=m.G(null,q),x=$APP.k(b,v);v=$APP.k(c,v);var y=$APP.k(x,"text"),A=$APP.k(v,"text");a.push(rv(d,e,x,v));$APP.N(y,A)&&a.push(sv(d,e,x,v));q+=1}else if(h=$APP.t(h))$APP.Nc(h)?(p=$APP.xb(h),h=$APP.yb(h),m=p,p=$APP.z(p)):(p=$APP.u(h),m=$APP.k(b,p),p=$APP.k(c,p),q=$APP.k(m,"text"),x=$APP.k(p,"text"),a.push(rv(d,e,m,p)),$APP.N(q,x)&&a.push(sv(d,
24
- e,m,p)),h=$APP.w(h),m=null,p=0),q=0;else break;l=$APP.t(l);h=null;for(p=m=0;;)if(p<m)q=h.G(null,p),a.push(tv(d,e,$APP.k(b,q))),p+=1;else if(l=$APP.t(l))h=l,$APP.Nc(h)?(l=$APP.xb(h),p=$APP.yb(h),h=l,m=$APP.z(l),l=p):(l=$APP.u(h),a.push(tv(d,e,$APP.k(b,l))),l=$APP.w(h),h=null,m=0),p=0;else break;b=$APP.t(g);d=null;for(g=e=0;;)if(g<e)l=d.G(null,g),a.push(uv($APP.k(c,l))),g+=1;else if(b=$APP.t(b))d=b,$APP.Nc(d)?(b=$APP.xb(d),g=$APP.yb(d),d=b,e=$APP.z(b),b=g):(b=$APP.u(d),a.push(uv($APP.k(c,b))),b=$APP.w(d),
25
- d=null,e=0),g=0;else break;return a},Av=function(a){if($APP.n(a))for(var b=a.length,c=0;;)if(c<b){var d=a[c].finalize;$APP.n(d)&&(d.H?d.H():d.call(null));c+=1}else break},Bv=function(a,b,c){if($APP.C.i(b,$APP.k(a,"__xMorphStackToken"))){b=$APP.k(a,"__xMorphStackEntries");var d=$APP.k(a,"__xMorphStackRaf");$APP.n(d)&&(window.cancelAnimationFrame(d),a.__xMorphStackRaf=null);Av(b);a.__xMorphStackEntries=null;a.__xMorphStackLast=null;ov(a);$APP.n(c)&&(c=$APP.ph(Zu($APP.k(a,"__xMorphStackFrom"),$APP.k(a,
26
- "__xMorphStackTo"))),c=new CustomEvent("x-morph-stack-changed",{detail:c,bubbles:!0,composed:!0,cancelable:!1}),a.dispatchEvent(c),a.__xMorphStackFrom=null,a.__xMorphStackTo=null)}return null},Cv=function(a){var b=$APP.k(a,"__xMorphStackRaf");$APP.n(b)&&(window.cancelAnimationFrame(b),a.__xMorphStackRaf=null);Av($APP.k(a,"__xMorphStackEntries"));a.__xMorphStackEntries=null;a.__xMorphStackLast=null;ov(a)},Ev=function(a,b,c){var d=$APP.k(a,"__xMorphStackCurrent"),e=function(){var m=$APP.k(a,"__xMorphStackModel");
27
- return $APP.n(m)?m:dv(a)}(),g=gv(a);if(g.length===0||b==null||$APP.r($APP.Td(function(m){return $APP.C.i(m,b)},g)))return!1;if($APP.C.i(d,b))return!0;var h=$APP.n(d)?hv(a,d):null;g=hv(a,b);c=$APP.ph(new $APP.R(null,3,[$APP.Fh,$APP.n(d)?d:"",$APP.pl,$APP.n(b)?b:"",$APP.ri,$APP.n(c)?c:"method"],null));c=new CustomEvent("x-morph-stack-change",{detail:c,bubbles:!0,composed:!0,cancelable:!0});c=a.dispatchEvent(c);if($APP.r(c))return!1;Cv(a);c=function(){var m=$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches);
28
- return m?m:$APP.W.g(e)}();if($APP.n(c))iv(a,b),queueMicrotask(function(){var m=$APP.ph(Zu(d,b));m=new CustomEvent("x-morph-stack-changed",{detail:m,bubbles:!0,composed:!0});return a.dispatchEvent(m)});else{h=jv(h);iv(a,b);$APP.Ni.g(bv(a));g=jv(g);g=zv(a,h,g);var l=function(){var m=$APP.k(a,"__xMorphStackToken");return $APP.n(m)?m:0}()+1;a.__xMorphStackToken=l;a.__xMorphStackEntries=g;a.__xMorphStackLast=null;a.__xMorphStackFrom=d;a.__xMorphStackTo=b;$APP.ia(a,"__xMorphStackTimeScale",Ru($APP.wk.g(e),
29
- $APP.fl.g(e),$APP.kk.g(e),$APP.Ll.g(e)));Ou($APP.Nh.g(e))&&(nv(a),lv(a,0));g.length===0?Bv(a,l,!0):(g=window.requestAnimationFrame(function(m){return $APP.C.i(l,$APP.k(a,"__xMorphStackToken"))?Dv(a,m):null}),a.__xMorphStackRaf=g)}return!0},Fv=function(a){bv(a);var b=dv(a);a.__xMorphStackModel=b;a.setAttribute("data-variant",$APP.Nh.g(b));var c=gv(a);c=Uu($APP.ve($APP.tc(c)),b);b=$APP.k(a,"__xMorphStackCurrent");b==null?$APP.n(c)&&iv(a,c):$APP.n($APP.n(c)?$APP.N(c,b):c)?Ev(a,c,"attribute"):(c=c==null,
30
- $APP.n(c?b:c)&&(Cv(a),iv(a,null)))},Gv=function(a){var b=gv(a);var c=$APP.k(a,"__xMorphStackModel");c=$APP.n(c)?c:dv(a);b=Uu($APP.ve($APP.tc(b)),c);c=$APP.k(a,"__xMorphStackCurrent");b==null?(Cv(a),iv(a,null)):$APP.n($APP.n(c)?hv(a,c)==null:c)?(Cv(a),iv(a,b)):c==null?iv(a,b):iv(a,c);return null},Hv=function(a){function b(){return Gv(a)}var c=bv(a);c=$APP.M(c);$APP.D(c,$APP.Li).addEventListener("slotchange",b);$APP.ia(a,"__xMorphStackHandlers",{slot:b})},Iv=function(a){var b=$APP.k(a,"__xMorphStackHandlers"),
31
- c=$APP.k(a,"__xMorphStackRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.Li.g(c),b=$APP.k(b,"slot"),$APP.n(b)&&c.removeEventListener("slotchange",b));a.__xMorphStackHandlers=null},Jv=function(a){Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},Kv=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(c);return d==
32
- null?null:parseFloat(d)},set:function(d){return d==null?this.removeAttribute(c):this.setAttribute(c,""+$APP.T.g(d))},enumerable:!0,configurable:!0})},Lv=function(a){Object.defineProperty(a,"activeState",{get:function(){return this.getAttribute("active-state")},set:function(b){return b==null?this.removeAttribute("active-state"):this.setAttribute("active-state",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"activeIndex",{get:function(){var b=this.getAttribute("active-index");
33
- return b==null?null:parseInt(b,10)},set:function(b){return b==null?this.removeAttribute("active-index"):this.setAttribute("active-index",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Kv(a,"stiffness","stiffness");Kv(a,"damping","damping");Kv(a,"mass","mass");Kv(a,"duration","duration");Object.defineProperty(a,"variant",{get:function(){return Nu(this.getAttribute("variant"))},set:function(b){return b==null?this.removeAttribute("variant"):this.setAttribute("variant",""+$APP.T.g(b))},enumerable:!0,
34
- configurable:!0});Jv(a);a.goTo=function(b){b=b!=null?""+$APP.T.g(b):null;return Ev(this,b,"method")};a.next=function(){var b=gv(this);var c=b.length,d=$APP.k(this,"__xMorphStackCurrent");if(c>0){b:{for(var e=0;;){if(e>=c){d=-1;break b}if($APP.C.i(b[e],d)){d=e;break b}e+=1}d=void 0}b=Ev(this,b[$APP.ed(d+1,c)],"method")}else b=null;return b};a.prev=function(){var b=gv(this);var c=b.length,d=$APP.k(this,"__xMorphStackCurrent");if(c>0){b:{for(var e=0;;){if(e>=c){d=0;break b}if($APP.C.i(b[e],d)){d=e;break b}e+=
35
- 1}d=void 0}b=Ev(this,b[$APP.ed(d-1+c,c)],"method")}else b=null;return b};a.states=function(){return gv(this)}},Ov=function(){var a=class extends HTMLElement{};a.observedAttributes=Mv;a.prototype.connectedCallback=function(){bv(this);Iv(this);Hv(this);Fv(this);$APP.k(this,"__xMorphStackCurrent")==null&&Gv(this);return null};a.prototype.disconnectedCallback=function(){Cv(this);var b=$APP.k(this,"__xMorphStackRefs"),c=$APP.n(b)?$u.g(b):null;$APP.n($APP.n(c)?c.parentNode:c)&&c.parentNode.removeChild(c);
36
- $APP.n(b)&&(this.__xMorphStackRefs=Nv.i(Nv.i(b,$u),$APP.Jj));this.__xMorphStackGooBaseThreshold=this.__xMorphStackGooBaseBlur=this.__xMorphStackFilterMatrix=this.__xMorphStackFilterBlur=this.__xMorphStackFilterId=null;Iv(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&Fv(this);return null};Lv(a.prototype);return a},Pv=function(){$APP.n(customElements.get("x-morph-stack"))||customElements.define("x-morph-stack",Ov());return null},Nv=function Nv(a){switch(arguments.length){case 1:return Nv.g(arguments[0]);
37
- case 2:return Nv.i(arguments[0],arguments[1]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return Nv.C(arguments[0],arguments[1],2<c.length?new $APP.Tb(c.slice(2),0,null):null)}};Nv.g=function(a){return a};Nv.i=function(a,b){return a==null?null:$APP.Ma(a,b)};Nv.C=function(a,b,c){for(;;){if(a==null)return null;a=Nv.i(a,b);if($APP.n(c))b=$APP.u(c),c=$APP.w(c);else return a}};
38
- Nv.J=function(a){var b=$APP.u(a),c=$APP.w(a);a=$APP.u(c);c=$APP.w(c);return this.C(b,a,c)};Nv.N=2;var xv=function xv(a){switch(arguments.length){case 1:return xv.g(arguments[0]);case 2:return xv.i(arguments[0],arguments[1]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return xv.C(arguments[0],arguments[1],2<c.length?new $APP.Tb(c.slice(2),0,null):null)}};xv.g=function(a){return a};
39
- xv.i=function(a,b){return $APP.z(a)<$APP.z(b)?$APP.Wc(function(c,d){return $APP.J(b,d)?$APP.Zg.i(c,d):c},a,a):$APP.Wc($APP.Zg,a,b)};xv.C=function(a,b,c){return $APP.Wc(xv,a,$APP.kd.i(c,b))};xv.J=function(a){var b=$APP.u(a),c=$APP.w(a);a=$APP.u(c);c=$APP.w(c);return this.C(b,a,c)};xv.N=2;
40
- var yv=new $APP.K(null,"entering","entering",-413471949),wv=new $APP.K(null,"leaving","leaving",608616060),vv=new $APP.K(null,"matched","matched",-975207164),cv=new $APP.K(null,"active-state-raw","active-state-raw",-60607051),Tu=new $APP.K(null,"active-state","active-state",-1185168001),$u=new $APP.K(null,"ghost-layer","ghost-layer",1707493707);var Mv="active-state active-index stiffness damping mass variant duration disabled".split(" "),Mu=$APP.Sf(["liquid","clean","organic"]);$APP.Pd(["x-morph-stack-change",new $APP.R(null,2,[$APP.yj,new $APP.R(null,3,[$APP.Fh,$APP.X,$APP.pl,$APP.X,$APP.ri,$APP.X],null),$APP.wl,!0],null),"x-morph-stack-changed",new $APP.R(null,2,[$APP.yj,new $APP.R(null,2,[$APP.Fh,$APP.X,$APP.pl,$APP.X],null),$APP.wl,!1],null)]);var mv=[0],Dv=function Dv(a,b){var d=$APP.k(a,"__xMorphStackToken"),e=$APP.k(a,"__xMorphStackEntries"),g=$APP.k(a,"__xMorphStackLast"),h=function(){var B=$APP.k(a,"__xMorphStackModel");return $APP.n(B)?B:dv(a)}(),l=$APP.Ll.g(h),m=$APP.fl.g(h);h=$APP.kk.g(h);g=$APP.$g.i(0,$APP.ah.i(1/30,function(){var B=$APP.k(a,"__xMorphStackTimeScale");return $APP.n(B)?B:1}()*($APP.n(g)?(b-g)/1E3:1/60)));a.__xMorphStackLast=b;if($APP.n($APP.n(e)?e.length:e)){b=[!0];for(var p=[1],q=e.length,v=0;;)if(v<q){var x=e[v],
41
- y=Su(x.t,x.v,g,l,m,h),A=y[0];y=y[1];x.t=A;x.v=y;x=x.update;x.g?x.g(A):x.call(null,A);A<p[0]&&(p[0]=A);Math.abs(A-1)<.001&&Math.abs(y)<.01||(b[0]=!1);v+=1}else break;lv(a,p[0]);$APP.n(b[0])?Bv.m?Bv.m(a,d,!0):Bv.call(null,a,d,!0):(e=window.requestAnimationFrame(function(B){return $APP.C.i(d,$APP.k(a,"__xMorphStackToken"))?Dv.i?Dv.i(a,B):Dv.call(null,a,B):null}),a.__xMorphStackRaf=e)}return null};$APP.fa("baredom.exports.x_morph_stack.init",Pv);export const init=Pv;
9
+ d.setAttribute("part","viewport");e.setAttribute("name","state");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xMorphStackRefs=new $APP.R(null,3,[$APP.li,b,$APP.Pi,d,$APP.Ni,e],null);return $APP.k(a,"__xMorphStackRefs")},mv=function(a){a=new $APP.R(null,8,[lv,a.getAttribute("active-state"),$APP.Jk,a.getAttribute("active-index"),$APP.Cl,a.getAttribute("stiffness"),$APP.om,a.getAttribute("damping"),$APP.gj,a.getAttribute("mass"),$APP.Pk,a.getAttribute("variant"),$APP.yi,a.getAttribute("duration"),
10
+ $APP.gl,a.hasAttribute("disabled")],null);a=$APP.M(a);var b=$APP.D(a,lv),c=$APP.D(a,$APP.Jk),d=$APP.D(a,$APP.Cl),e=$APP.D(a,$APP.om),g=$APP.D(a,$APP.gj),h=$APP.D(a,$APP.Pk),l=$APP.D(a,$APP.yi);a=$APP.D(a,$APP.gl);b=typeof b==="string"&&$APP.N("",b.trim())?b.trim():null;a:{if(typeof c==="string"&&(c=c.trim(),$APP.N(c,""))){c=parseInt(c,10);c=typeof c==="number"&&$APP.r(isNaN(c))&&c>=0?c:null;break a}c=null}d=Zu(d,170,10,500);e=Zu(e,26,1,100);g=Zu(g,1,.1,10);h=Wu(h);a:{if(typeof l==="string"&&(l=l.trim(),
11
+ $APP.N(l,""))){l=parseFloat(l);l=typeof l==="number"&&$APP.r(isNaN(l))&&l>0?l:null;break a}l=null}return new $APP.R(null,8,[bv,b,$APP.Jj,c,$APP.ll,d,$APP.pk,e,$APP.Sl,g,$APP.Oh,h,$APP.Bk,l,$APP.W,$APP.F(a)],null)},nv=function(a,b,c){a=window.getComputedStyle(a).getPropertyValue(b);return typeof a==="string"&&$APP.N("",a.trim())?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?c:a):c},ov=function(a){a=kv(a);a=$APP.M(a);a=$APP.D(a,$APP.Ni).assignedElements();for(var b=[],c=a.length,d=0;;)if(d<c){var e=a[d],
12
+ g=$APP.C.i(1,e.nodeType);$APP.n(g?e.hasAttribute("data-state"):g)&&b.push(e);d+=1}else break;return b},pv=function(a){a=ov(a);for(var b=[],c=a.length,d=0;;)if(d<c)b.push(a[d].getAttribute("data-state")),d+=1;else break;return b},qv=function(a,b){a=ov(a);for(var c=a.length,d=0;;)if(d<c){var e=a[d];if($APP.C.i(b,e.getAttribute("data-state")))return e;d+=1}else return null},rv=function(a,b){for(var c=ov(a),d=c.length,e=0;;)if(e<d){var g=c[e],h=g.getAttribute("data-state");$APP.C.i(h,b)?g.style.display=
13
+ "":g.style.display="none";e+=1}else break;$APP.n(b)?a.setAttribute("data-active-state",b):a.removeAttribute("data-active-state");a.__xMorphStackCurrent=b},sv=function(a){var b={};if($APP.n(a)){a=a.querySelectorAll("["+$APP.T.g("data-morph-id")+"]");for(var c=a.length,d=0;;)if(d<c){var e=a[d],g=e.getAttribute("data-morph-id"),h=e.getBoundingClientRect(),l=window.getComputedStyle(e);b[g]={rect:{x:h.left,y:h.top,w:h.width,h:h.height},br:l.borderRadius,bg:l.backgroundColor,color:l.color,clip:l.clipPath,
14
+ text:e.textContent,node:e};d+=1}else break}return b},tv=function(a,b,c){var d=$APP.k(a,"__xMorphStackFilterBlur");a=$APP.k(a,"__xMorphStackFilterMatrix");$APP.n(d)&&d.setAttribute("stdDeviation",""+$APP.T.g(b));$APP.n(a)&&a.setAttribute("values",Yu(c))},uv=function(a,b){var c=$APP.k(a,"__xMorphStackGooBaseBlur"),d=$APP.k(a,"__xMorphStackGooBaseThreshold");c!=null&&d!=null&&(b=b<=0?1:b<.18?1-b/.18:b<.7?0:b<1?(b-.7)/(1-.7):1,tv(a,c*(1-b),dv(d,1,b)))},wv=function(a){var b=jv(a);b=$APP.M(b);b=$APP.D(b,
15
+ $APP.Nj);var c=$APP.k(a,"__xMorphStackFilterId");if($APP.n(c))b=c;else{c=vv[0];vv[0]=c+1;c="x-morph-stack-goo-"+$APP.T.g(c);var d=document.createElementNS("http://www.w3.org/2000/svg","defs"),e=document.createElementNS("http://www.w3.org/2000/svg","filter"),g=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),h=document.createElementNS("http://www.w3.org/2000/svg","feColorMatrix");e.setAttribute("id",c);e.setAttribute("x","-20%");e.setAttribute("y","-20%");e.setAttribute("width",
16
+ "140%");e.setAttribute("height","140%");g.setAttribute("in","SourceGraphic");g.setAttribute("stdDeviation",""+$APP.T.g(10));g.setAttribute("result","blur");h.setAttribute("in","blur");h.setAttribute("type","matrix");h.setAttribute("values",Yu(18));e.appendChild(g);e.appendChild(h);d.appendChild(e);b.appendChild(d);a.__xMorphStackFilterId=c;a.__xMorphStackFilterBlur=g;a.__xMorphStackFilterMatrix=h;b=c}c=jv(a);c=$APP.M(c);c=$APP.D(c,iv);d=nv(a,"--x-morph-stack-goo-blur",10);e=nv(a,"--x-morph-stack-goo-threshold",
17
+ 18);a.__xMorphStackGooBaseBlur=d;a.__xMorphStackGooBaseThreshold=e;tv(a,d,e);c.style.filter="url(#"+$APP.T.g(b)+")";c.style.webkitFilter="url(#"+$APP.T.g(b)+")"},xv=function(a){a=$APP.k(a,"__xMorphStackRefs");a=$APP.n(a)?iv.g(a):null;$APP.n(a)&&(a.style.filter="",a.style.webkitFilter="")},yv=function(a){a.style.position="absolute";a.style.margin="0";a.style.boxSizing="border-box";a.style.transformOrigin="top left";a.style.pointerEvents="none"},zv=function(a,b,c){var d=b.y-c.top;a.style.left=""+$APP.T.g(b.x-
18
+ c.left)+"px";a.style.top=""+$APP.T.g(d)+"px";a.style.width=""+$APP.T.g(b.w)+"px";a.style.height=""+$APP.T.g(b.h)+"px"},Av=function(a,b,c,d){function e(la){la=$APP.$g.i(0,$APP.ah.i(1,la));var za=dv(Z,0,la),Ka=dv(G,1,la),$a=dv(I,1,la);B.style.transform="translate("+$APP.T.g(dv(Q,0,la))+"px,"+$APP.T.g(za)+"px) scale("+$APP.T.g(Ka)+","+$APP.T.g($a)+")";za=B.style;Ka=gv(m);$a=gv(p);if($APP.n($APP.n(Ka)?$APP.n($a)?$APP.C.i(Ka.length,$a.length):$a:Ka)){for(var ab=[],jb=Ka.length,Ib=0;;)if(Ib<jb)ab.push(""+
19
+ $APP.T.g(dv(Ka[Ib],$a[Ib],la))+"px"),Ib+=1;else break;Ka=ab.join(" ")}else Ka=la<.5?m:p;za.borderRadius=Ka;$APP.n($APP.n(q)?v:q)&&(B.style.backgroundColor=fv(q,v,la));$APP.n($APP.n(x)?y:x)&&(B.style.color=fv(x,y,la));A&&(B.style.opacity=""+$APP.T.g($APP.$g.i(0,$APP.ah.i(1,la))));return null}var g=$APP.k(d,"node"),h=$APP.k(d,"rect"),l=$APP.k(c,"rect"),m=$APP.k(c,"br"),p=$APP.k(d,"br"),q=$APP.k(c,"bg"),v=$APP.k(d,"bg"),x=$APP.k(c,"color"),y=$APP.k(d,"color"),A=$APP.N($APP.k(c,"text"),$APP.k(d,"text")),
20
+ B=g.cloneNode(!0);c=h.w;d=h.h;var E=l.w,H=l.h,G=c>0?E/c:1,I=d>0?H/d:1,Q=l.x-h.x,Z=l.y-h.y;yv(B);zv(B,h,b);a.appendChild(B);g.style.visibility="hidden";e(0);return{t:0,v:0,update:e,finalize:function(){g.style.visibility="";return $APP.n(B.parentNode)?B.parentNode.removeChild(B):null}}},Bv=function(a,b,c,d){function e(B){B=$APP.$g.i(0,$APP.ah.i(1,B));var E=dv(0,v,B),H=dv(1,x,B),G=dv(1,y,B);A.style.transform="translate("+$APP.T.g(dv(0,q,B))+"px,"+$APP.T.g(E)+"px) scale("+$APP.T.g(H)+","+$APP.T.g(G)+
21
+ ")";A.style.opacity=""+$APP.T.g($APP.$g.i(0,1-B));return null}var g=$APP.k(c,"rect");d=$APP.k(d,"rect");var h=g.w,l=g.h,m=d.w,p=d.h,q=d.x-g.x,v=d.y-g.y,x=h>0?m/h:1,y=l>0?p/l:1,A=$APP.k(c,"node").cloneNode(!0);yv(A);zv(A,g,b);a.appendChild(A);e(0);return{t:0,v:0,update:e,finalize:function(){return $APP.n(A.parentNode)?A.parentNode.removeChild(A):null}}},Cv=function(a,b,c){var d=$APP.k(c,"rect"),e=$APP.k(c,"node").cloneNode(!0);yv(e);zv(e,d,b);a.appendChild(e);return{t:0,v:0,update:function(g){e.style.opacity=
22
+ ""+$APP.T.g($APP.$g.i(0,1-g));return null},finalize:function(){return $APP.n(e.parentNode)?e.parentNode.removeChild(e):null}}},Dv=function(a){var b=$APP.k(a,"node");b.style.opacity="0";return{t:0,v:0,update:function(c){b.style.opacity=""+$APP.T.g($APP.$g.i(0,$APP.ah.i(1,c)));return null},finalize:function(){return b.style.opacity=""}}},Iv=function(a,b,c){a=jv(a);a=$APP.M(a);var d=$APP.D(a,iv),e=d.getBoundingClientRect(),g=Object.keys(b);a=Object.keys(c);g=$APP.ve(g);a=$APP.ve(a);g=$APP.Vf(g);a=$APP.Vf(a);
23
+ a=new $APP.R(null,3,[Ev,$APP.Cm.i(g,a),Fv,Gv.i(g,a),Hv,Gv.i(a,g)],null);var h=Ev.g(a),l=Fv.g(a);g=Hv.g(a);a=[];h=$APP.t(h);for(var m=null,p=0,q=0;;)if(q<p){var v=m.G(null,q),x=$APP.k(b,v);v=$APP.k(c,v);var y=$APP.k(x,"text"),A=$APP.k(v,"text");a.push(Av(d,e,x,v));$APP.N(y,A)&&a.push(Bv(d,e,x,v));q+=1}else if(h=$APP.t(h))$APP.Nc(h)?(p=$APP.xb(h),h=$APP.yb(h),m=p,p=$APP.z(p)):(p=$APP.u(h),m=$APP.k(b,p),p=$APP.k(c,p),q=$APP.k(m,"text"),x=$APP.k(p,"text"),a.push(Av(d,e,m,p)),$APP.N(q,x)&&a.push(Bv(d,
24
+ e,m,p)),h=$APP.w(h),m=null,p=0),q=0;else break;l=$APP.t(l);h=null;for(p=m=0;;)if(p<m)q=h.G(null,p),a.push(Cv(d,e,$APP.k(b,q))),p+=1;else if(l=$APP.t(l))h=l,$APP.Nc(h)?(l=$APP.xb(h),p=$APP.yb(h),h=l,m=$APP.z(l),l=p):(l=$APP.u(h),a.push(Cv(d,e,$APP.k(b,l))),l=$APP.w(h),h=null,m=0),p=0;else break;b=$APP.t(g);d=null;for(g=e=0;;)if(g<e)l=d.G(null,g),a.push(Dv($APP.k(c,l))),g+=1;else if(b=$APP.t(b))d=b,$APP.Nc(d)?(b=$APP.xb(d),g=$APP.yb(d),d=b,e=$APP.z(b),b=g):(b=$APP.u(d),a.push(Dv($APP.k(c,b))),b=$APP.w(d),
25
+ d=null,e=0),g=0;else break;return a},Jv=function(a){if($APP.n(a))for(var b=a.length,c=0;;)if(c<b){var d=a[c].finalize;$APP.n(d)&&(d.H?d.H():d.call(null));c+=1}else break},Kv=function(a,b,c){if($APP.C.i(b,$APP.k(a,"__xMorphStackToken"))){b=$APP.k(a,"__xMorphStackEntries");var d=$APP.k(a,"__xMorphStackRaf");$APP.n(d)&&(window.cancelAnimationFrame(d),a.__xMorphStackRaf=null);Jv(b);a.__xMorphStackEntries=null;a.__xMorphStackLast=null;xv(a);$APP.n(c)&&(c=$APP.ph(hv($APP.k(a,"__xMorphStackFrom"),$APP.k(a,
26
+ "__xMorphStackTo"))),c=new CustomEvent("x-morph-stack-changed",{detail:c,bubbles:!0,composed:!0,cancelable:!1}),a.dispatchEvent(c),a.__xMorphStackFrom=null,a.__xMorphStackTo=null)}return null},Lv=function(a){var b=$APP.k(a,"__xMorphStackRaf");$APP.n(b)&&(window.cancelAnimationFrame(b),a.__xMorphStackRaf=null);Jv($APP.k(a,"__xMorphStackEntries"));a.__xMorphStackEntries=null;a.__xMorphStackLast=null;xv(a)},Nv=function(a,b,c){var d=$APP.k(a,"__xMorphStackCurrent"),e=function(){var m=$APP.k(a,"__xMorphStackModel");
27
+ return $APP.n(m)?m:mv(a)}(),g=pv(a);if(g.length===0||b==null||$APP.r($APP.Td(function(m){return $APP.C.i(m,b)},g)))return!1;if($APP.C.i(d,b))return!0;var h=$APP.n(d)?qv(a,d):null;g=qv(a,b);c=$APP.ph(new $APP.R(null,3,[$APP.Ch,$APP.n(d)?d:"",$APP.vl,$APP.n(b)?b:"",$APP.ti,$APP.n(c)?c:"method"],null));c=new CustomEvent("x-morph-stack-change",{detail:c,bubbles:!0,composed:!0,cancelable:!0});c=a.dispatchEvent(c);if($APP.r(c))return!1;Lv(a);c=function(){var m=$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches);
28
+ return m?m:$APP.W.g(e)}();if($APP.n(c))rv(a,b),queueMicrotask(function(){var m=$APP.ph(hv(d,b));m=new CustomEvent("x-morph-stack-changed",{detail:m,bubbles:!0,composed:!0});return a.dispatchEvent(m)});else{h=sv(h);rv(a,b);$APP.Pi.g(kv(a));g=sv(g);g=Iv(a,h,g);var l=function(){var m=$APP.k(a,"__xMorphStackToken");return $APP.n(m)?m:0}()+1;a.__xMorphStackToken=l;a.__xMorphStackEntries=g;a.__xMorphStackLast=null;a.__xMorphStackFrom=d;a.__xMorphStackTo=b;$APP.ia(a,"__xMorphStackTimeScale",$u($APP.Bk.g(e),
29
+ $APP.ll.g(e),$APP.pk.g(e),$APP.Sl.g(e)));Xu($APP.Oh.g(e))&&(wv(a),uv(a,0));g.length===0?Kv(a,l,!0):(g=window.requestAnimationFrame(function(m){return $APP.C.i(l,$APP.k(a,"__xMorphStackToken"))?Mv(a,m):null}),a.__xMorphStackRaf=g)}return!0},Ov=function(a){kv(a);var b=mv(a);a.__xMorphStackModel=b;a.setAttribute("data-variant",$APP.Oh.g(b));var c=pv(a);c=cv($APP.ve($APP.tc(c)),b);b=$APP.k(a,"__xMorphStackCurrent");b==null?$APP.n(c)&&rv(a,c):$APP.n($APP.n(c)?$APP.N(c,b):c)?Nv(a,c,"attribute"):(c=c==null,
30
+ $APP.n(c?b:c)&&(Lv(a),rv(a,null)))},Pv=function(a){var b=pv(a);var c=$APP.k(a,"__xMorphStackModel");c=$APP.n(c)?c:mv(a);b=cv($APP.ve($APP.tc(b)),c);c=$APP.k(a,"__xMorphStackCurrent");b==null?(Lv(a),rv(a,null)):$APP.n($APP.n(c)?qv(a,c)==null:c)?(Lv(a),rv(a,b)):c==null?rv(a,b):rv(a,c);return null},Qv=function(a){function b(){return Pv(a)}var c=kv(a);c=$APP.M(c);$APP.D(c,$APP.Ni).addEventListener("slotchange",b);$APP.ia(a,"__xMorphStackHandlers",{slot:b})},Rv=function(a){var b=$APP.k(a,"__xMorphStackHandlers"),
31
+ c=$APP.k(a,"__xMorphStackRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.Ni.g(c),b=$APP.k(b,"slot"),$APP.n(b)&&c.removeEventListener("slotchange",b));a.__xMorphStackHandlers=null},Sv=function(a){Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},Tv=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(c);return d==
32
+ null?null:parseFloat(d)},set:function(d){return d==null?this.removeAttribute(c):this.setAttribute(c,""+$APP.T.g(d))},enumerable:!0,configurable:!0})},Uv=function(a){Object.defineProperty(a,"activeState",{get:function(){return this.getAttribute("active-state")},set:function(b){return b==null?this.removeAttribute("active-state"):this.setAttribute("active-state",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"activeIndex",{get:function(){var b=this.getAttribute("active-index");
33
+ return b==null?null:parseInt(b,10)},set:function(b){return b==null?this.removeAttribute("active-index"):this.setAttribute("active-index",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Tv(a,"stiffness","stiffness");Tv(a,"damping","damping");Tv(a,"mass","mass");Tv(a,"duration","duration");Object.defineProperty(a,"variant",{get:function(){return Wu(this.getAttribute("variant"))},set:function(b){return b==null?this.removeAttribute("variant"):this.setAttribute("variant",""+$APP.T.g(b))},enumerable:!0,
34
+ configurable:!0});Sv(a);a.goTo=function(b){b=b!=null?""+$APP.T.g(b):null;return Nv(this,b,"method")};a.next=function(){var b=pv(this);var c=b.length,d=$APP.k(this,"__xMorphStackCurrent");if(c>0){b:{for(var e=0;;){if(e>=c){d=-1;break b}if($APP.C.i(b[e],d)){d=e;break b}e+=1}d=void 0}b=Nv(this,b[$APP.ed(d+1,c)],"method")}else b=null;return b};a.prev=function(){var b=pv(this);var c=b.length,d=$APP.k(this,"__xMorphStackCurrent");if(c>0){b:{for(var e=0;;){if(e>=c){d=0;break b}if($APP.C.i(b[e],d)){d=e;break b}e+=
35
+ 1}d=void 0}b=Nv(this,b[$APP.ed(d-1+c,c)],"method")}else b=null;return b};a.states=function(){return pv(this)}},Xv=function(){var a=class extends HTMLElement{};a.observedAttributes=Vv;a.prototype.connectedCallback=function(){kv(this);Rv(this);Qv(this);Ov(this);$APP.k(this,"__xMorphStackCurrent")==null&&Pv(this);return null};a.prototype.disconnectedCallback=function(){Lv(this);var b=$APP.k(this,"__xMorphStackRefs"),c=$APP.n(b)?iv.g(b):null;$APP.n($APP.n(c)?c.parentNode:c)&&c.parentNode.removeChild(c);
36
+ $APP.n(b)&&(this.__xMorphStackRefs=Wv.i(Wv.i(b,iv),$APP.Nj));this.__xMorphStackGooBaseThreshold=this.__xMorphStackGooBaseBlur=this.__xMorphStackFilterMatrix=this.__xMorphStackFilterBlur=this.__xMorphStackFilterId=null;Rv(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&Ov(this);return null};Uv(a.prototype);return a},Yv=function(){$APP.n(customElements.get("x-morph-stack"))||customElements.define("x-morph-stack",Xv());return null},Wv=function Wv(a){switch(arguments.length){case 1:return Wv.g(arguments[0]);
37
+ case 2:return Wv.i(arguments[0],arguments[1]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return Wv.C(arguments[0],arguments[1],2<c.length?new $APP.Tb(c.slice(2),0,null):null)}};Wv.g=function(a){return a};Wv.i=function(a,b){return a==null?null:$APP.Ma(a,b)};Wv.C=function(a,b,c){for(;;){if(a==null)return null;a=Wv.i(a,b);if($APP.n(c))b=$APP.u(c),c=$APP.w(c);else return a}};
38
+ Wv.J=function(a){var b=$APP.u(a),c=$APP.w(a);a=$APP.u(c);c=$APP.w(c);return this.C(b,a,c)};Wv.N=2;var Gv=function Gv(a){switch(arguments.length){case 1:return Gv.g(arguments[0]);case 2:return Gv.i(arguments[0],arguments[1]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return Gv.C(arguments[0],arguments[1],2<c.length?new $APP.Tb(c.slice(2),0,null):null)}};Gv.g=function(a){return a};
39
+ Gv.i=function(a,b){return $APP.z(a)<$APP.z(b)?$APP.Wc(function(c,d){return $APP.J(b,d)?$APP.Zg.i(c,d):c},a,a):$APP.Wc($APP.Zg,a,b)};Gv.C=function(a,b,c){return $APP.Wc(Gv,a,$APP.kd.i(c,b))};Gv.J=function(a){var b=$APP.u(a),c=$APP.w(a);a=$APP.u(c);c=$APP.w(c);return this.C(b,a,c)};Gv.N=2;
40
+ var Hv=new $APP.K(null,"entering","entering",-413471949),Fv=new $APP.K(null,"leaving","leaving",608616060),Ev=new $APP.K(null,"matched","matched",-975207164),lv=new $APP.K(null,"active-state-raw","active-state-raw",-60607051),bv=new $APP.K(null,"active-state","active-state",-1185168001),iv=new $APP.K(null,"ghost-layer","ghost-layer",1707493707);var Vv="active-state active-index stiffness damping mass variant duration disabled".split(" "),Vu=$APP.Sf(["liquid","clean","organic"]);$APP.Pd(["x-morph-stack-change",new $APP.R(null,2,[$APP.Cj,new $APP.R(null,3,[$APP.Ch,$APP.X,$APP.vl,$APP.X,$APP.ti,$APP.X],null),$APP.Dl,!0],null),"x-morph-stack-changed",new $APP.R(null,2,[$APP.Cj,new $APP.R(null,2,[$APP.Ch,$APP.X,$APP.vl,$APP.X],null),$APP.Dl,!1],null)]);var vv=[0],Mv=function Mv(a,b){var d=$APP.k(a,"__xMorphStackToken"),e=$APP.k(a,"__xMorphStackEntries"),g=$APP.k(a,"__xMorphStackLast"),h=function(){var B=$APP.k(a,"__xMorphStackModel");return $APP.n(B)?B:mv(a)}(),l=$APP.Sl.g(h),m=$APP.ll.g(h);h=$APP.pk.g(h);g=$APP.$g.i(0,$APP.ah.i(1/30,function(){var B=$APP.k(a,"__xMorphStackTimeScale");return $APP.n(B)?B:1}()*($APP.n(g)?(b-g)/1E3:1/60)));a.__xMorphStackLast=b;if($APP.n($APP.n(e)?e.length:e)){b=[!0];for(var p=[1],q=e.length,v=0;;)if(v<q){var x=e[v],
41
+ y=av(x.t,x.v,g,l,m,h),A=y[0];y=y[1];x.t=A;x.v=y;x=x.update;x.g?x.g(A):x.call(null,A);A<p[0]&&(p[0]=A);Math.abs(A-1)<.001&&Math.abs(y)<.01||(b[0]=!1);v+=1}else break;uv(a,p[0]);$APP.n(b[0])?Kv.m?Kv.m(a,d,!0):Kv.call(null,a,d,!0):(e=window.requestAnimationFrame(function(B){return $APP.C.i(d,$APP.k(a,"__xMorphStackToken"))?Mv.i?Mv.i(a,B):Mv.call(null,a,B):null}),a.__xMorphStackRaf=e)}return null};$APP.fa("baredom.exports.x_morph_stack.init",Yv);export const init=Yv;
package/dist/x-navbar.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var yT=function(a,b,c){return typeof a==="string"&&$APP.J(b,a)?a:c},zT=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},AT=function(a){return a.assignedNodes({flatten:!0})},BT=function(a){return document.createElement(a)},IT=function(a,b){var c=$APP.k(b,"base"),d=$APP.k(b,"bar"),e=$APP.k(b,"brand"),g=$APP.k(b,"start"),h=$APP.k(b,"actions"),l=$APP.k(b,"toggle"),m=$APP.k(b,"end"),p=$APP.k(b,"brand-slot"),q=$APP.k(b,"start-slot"),v=$APP.k(b,
3
- "actions-slot"),x=$APP.k(b,"toggle-slot");b=$APP.k(b,"end-slot");a=new $APP.R(null,7,[$APP.U,a.getAttribute("label"),$APP.Gk,a.getAttribute("orientation"),$APP.Nh,a.getAttribute("variant"),$APP.Vk,a.hasAttribute("sticky"),CT,a.hasAttribute("elevated"),$APP.Ji,a.getAttribute("breakpoint"),DT,a.getAttribute("alignment")],null);var y=$APP.M(a);a=$APP.D(y,$APP.U);var A=$APP.D(y,$APP.Gk),B=$APP.D(y,$APP.Nh),E=$APP.D(y,$APP.Vk),H=$APP.D(y,CT),G=$APP.D(y,$APP.Ji);y=$APP.D(y,DT);a=new $APP.R(null,7,[$APP.U,
4
- typeof a==="string"?a:null,$APP.Gk,yT(A,ET,"horizontal"),$APP.Nh,yT(B,FT,"default"),$APP.Vk,$APP.F(E),CT,$APP.F(H),$APP.Ji,yT(G,GT,"md"),DT,yT(y,HT,"space-between")],null);p=AT(p).length>0;q=AT(q).length>0;v=AT(v).length>0;x=AT(x).length>0;b=AT(b).length>0;A=$APP.M(a);A=$APP.D(A,$APP.U);A=$APP.Hg(A)?A:null;$APP.n(A)?c.setAttribute("aria-label",A):c.removeAttribute("aria-label");c.setAttribute("data-variant",$APP.Nh.g(a));c.setAttribute("data-orientation",$APP.Gk.g(a));c.setAttribute("data-breakpoint",
5
- $APP.Ji.g(a));d.setAttribute("data-alignment",DT.g(a));e.setAttribute("data-has-brand",p?"true":"false");g.setAttribute("data-has-start",q?"true":"false");h.setAttribute("data-has-actions",v?"true":"false");l.setAttribute("data-has-toggle",x?"true":"false");return m.setAttribute("data-has-end",b?"true":"false")},JT=function(a,b){b.addEventListener("click",function(c){var d=$APP.k(a,"__xNavbarRefs"),e=c.target,g=$APP.n(e)?e.closest("a"):null;c=c instanceof PointerEvent?"pointer":c instanceof MouseEvent?
6
- "pointer":c instanceof KeyboardEvent?"keyboard":"programmatic";$APP.n(g)&&(g=g.getAttribute("href"),zT(a,"navigate",{href:$APP.n(g)?g:"",source:c}));a:{d=AT($APP.k(d,"brand-slot"));for(g=0;;)if(g<d.length){var h=d[g];var l=$APP.C.i(h,e);h=l?l:(l=$APP.C.i(h.nodeType,Node.ELEMENT_NODE))?h.contains(e):l;if($APP.n(h)){e=!0;break a}g+=1}else{e=!1;break a}e=void 0}return e?zT(a,"brand-activate",{source:c}):null});b.addEventListener("focusin",function(c){c=c.target;if($APP.n($APP.n(c)?c.matches(":focus-visible"):
7
- c)){if($APP.n($APP.k(a,"__xNavbarFocusVisible")))return null;a.__xNavbarFocusVisible=!0;a.setAttribute("data-focus-visible-within","true");return zT(a,"focus-visible",{})}return null});b.addEventListener("focusout",function(c){c=c.relatedTarget;if($APP.n($APP.n(c)?a.contains(c):c))return null;a.__xNavbarFocusVisible=!1;return a.removeAttribute("data-focus-visible-within")})},KT=function(a,b){function c(){return IT(a,b)}$APP.k(b,"brand-slot").addEventListener("slotchange",c);$APP.k(b,"start-slot").addEventListener("slotchange",
8
- c);$APP.k(b,"default-slot").addEventListener("slotchange",c);$APP.k(b,"actions-slot").addEventListener("slotchange",c);$APP.k(b,"toggle-slot").addEventListener("slotchange",c);$APP.k(b,"end-slot").addEventListener("slotchange",c)},LT=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.F(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},MT=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,
9
- enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return $APP.n(d)?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)}})},NT=function(a){LT(a,"sticky","sticky");LT(a,"elevated","elevated");MT(a,"label","label");MT(a,"variant","variant");MT(a,"orientation","orientation");MT(a,"alignment","alignment");MT(a,"breakpoint","breakpoint")},PT=function(){var a=class extends HTMLElement{};a.observedAttributes=OT;a.prototype.connectedCallback=function(){var b=
10
- $APP.k(this,"__xNavbarRefs")==null;var c=$APP.k(this,"__xNavbarRefs");if(!$APP.n(c)){c=this.attachShadow({mode:"open"});var d=BT("style"),e=BT("nav"),g=BT("div"),h=BT("div"),l=BT("div"),m=BT("div"),p=BT("div"),q=BT("div"),v=BT("div"),x=BT("slot"),y=BT("slot"),A=BT("slot"),B=BT("slot"),E=BT("slot"),H=BT("slot");d.textContent=":host{display:block;color-scheme:light dark;--x-navbar-height:4rem;--x-navbar-padding-inline:1rem;--x-navbar-gap:0.75rem;--x-navbar-bg:var(--x-color-surface,rgba(255,255,255,0.88));--x-navbar-color:var(--x-color-text,#0f172a);--x-navbar-border:var(--x-color-border,rgba(148,163,184,0.22));--x-navbar-shadow:var(--x-shadow-md,0 8px 24px rgba(15,23,42,0.08));--x-navbar-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-navbar-z-index:40;--x-navbar-radius:var(--x-radius-lg,1rem);--x-navbar-transition-duration:var(--x-transition-duration,180ms);--x-navbar-transition-easing:var(--x-transition-easing,cubic-bezier(0.2,0,0,1));--x-navbar-align-items:center;}@media (prefers-color-scheme: dark){:host{--x-navbar-bg:var(--x-color-surface,rgba(15,23,42,0.84));--x-navbar-color:var(--x-color-text,#e5e7eb);--x-navbar-border:var(--x-color-border,rgba(51,65,85,0.9));--x-navbar-shadow:var(--x-shadow-md,0 14px 36px rgba(0,0,0,0.35));--x-navbar-focus-ring:var(--x-color-focus-ring,#93c5fd);}}:host([hidden]){display:none;}[part\x3d'base']{display:block;color:var(--x-navbar-color);background:var(--x-navbar-bg);border:1px solid var(--x-navbar-border);border-radius:var(--x-navbar-radius);box-shadow:none;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);transition:background var(--x-navbar-transition-duration) var(--x-navbar-transition-easing),border-color var(--x-navbar-transition-duration) var(--x-navbar-transition-easing),box-shadow var(--x-navbar-transition-duration) var(--x-navbar-transition-easing);}:host([sticky]) [part\x3d'base']{position:sticky;top:0;z-index:var(--x-navbar-z-index);}:host([elevated]) [part\x3d'base']{box-shadow:var(--x-navbar-shadow);}[part\x3d'base'][data-variant\x3d'subtle']{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;}[part\x3d'base'][data-variant\x3d'inverted']{background:#0f172a;color:#f8fafc;border-color:#1e293b;}@media (prefers-color-scheme: dark){[part\x3d'base'][data-variant\x3d'inverted']{background:#020617;color:#f8fafc;border-color:#172033;}}[part\x3d'base'][data-variant\x3d'transparent']{background:transparent;border-color:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;}[part\x3d'bar']{display:grid;grid-template-columns:auto auto 1fr auto auto auto;align-items:var(--x-navbar-align-items, center);gap:var(--x-navbar-gap);min-block-size:var(--x-navbar-height);padding-inline:var(--x-navbar-padding-inline);}[part\x3d'bar'][data-alignment\x3d'start']{justify-items:start;}[part\x3d'bar'][data-alignment\x3d'center']{justify-items:center;}[part\x3d'bar'][data-alignment\x3d'space-between']{justify-items:stretch;}[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'bar']{grid-template-columns:1fr;grid-auto-rows:auto;align-items:var(--x-navbar-align-items, center);padding-block:0.75rem;}[part\x3d'brand'],[part\x3d'start'],[part\x3d'nav'],[part\x3d'actions'],[part\x3d'toggle'],[part\x3d'end']{display:flex;align-items:inherit;min-inline-size:0;}[part\x3d'nav']{gap:var(--x-navbar-gap);}[part\x3d'actions'],[part\x3d'end'],[part\x3d'toggle']{justify-self:end;}[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'actions'],[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'end'],[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'toggle']{justify-self:start;}[part\x3d'brand'][data-has-brand\x3d'false'],[part\x3d'start'][data-has-start\x3d'false'],[part\x3d'actions'][data-has-actions\x3d'false'],[part\x3d'toggle'][data-has-toggle\x3d'false'],[part\x3d'end'][data-has-end\x3d'false']{display:none;}slot[name\x3d'brand'],slot[name\x3d'start'],slot[name\x3d'actions'],slot[name\x3d'toggle'],slot[name\x3d'end']{display:contents;}slot{display:contents;}:host(:focus-within) [part\x3d'base']{box-shadow:var(--x-navbar-shadow);}:host([data-focus-visible-within\x3d'true']) [part\x3d'base']{box-shadow:0 0 0 2px var(--x-navbar-focus-ring), var(--x-navbar-shadow);}@media (max-width:640px){:host(:not([orientation\x3dvertical])) [part\x3d'bar']{display:flex;align-items:center;gap:var(--x-navbar-gap);min-block-size:var(--x-navbar-height);padding-inline:var(--x-navbar-padding-inline);}:host(:not([orientation\x3dvertical])) [part\x3d'brand']{flex:1;}:host(:not([orientation\x3dvertical])) [part\x3d'start'],:host(:not([orientation\x3dvertical])) [part\x3d'nav'],:host(:not([orientation\x3dvertical])) [part\x3d'actions'],:host(:not([orientation\x3dvertical])) [part\x3d'end']{display:none;}}@media (prefers-reduced-motion: reduce){[part\x3d'base']{transition:none;}}";
2
+ var BU=function(a,b,c){return typeof a==="string"&&$APP.J(b,a)?a:c},CU=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},DU=function(a){return a.assignedNodes({flatten:!0})},EU=function(a){return document.createElement(a)},LU=function(a,b){var c=$APP.k(b,"base"),d=$APP.k(b,"bar"),e=$APP.k(b,"brand"),g=$APP.k(b,"start"),h=$APP.k(b,"actions"),l=$APP.k(b,"toggle"),m=$APP.k(b,"end"),p=$APP.k(b,"brand-slot"),q=$APP.k(b,"start-slot"),v=$APP.k(b,
3
+ "actions-slot"),x=$APP.k(b,"toggle-slot");b=$APP.k(b,"end-slot");a=new $APP.R(null,7,[$APP.U,a.getAttribute("label"),$APP.Mk,a.getAttribute("orientation"),$APP.Oh,a.getAttribute("variant"),$APP.al,a.hasAttribute("sticky"),FU,a.hasAttribute("elevated"),$APP.Li,a.getAttribute("breakpoint"),GU,a.getAttribute("alignment")],null);var y=$APP.M(a);a=$APP.D(y,$APP.U);var A=$APP.D(y,$APP.Mk),B=$APP.D(y,$APP.Oh),E=$APP.D(y,$APP.al),H=$APP.D(y,FU),G=$APP.D(y,$APP.Li);y=$APP.D(y,GU);a=new $APP.R(null,7,[$APP.U,
4
+ typeof a==="string"?a:null,$APP.Mk,BU(A,HU,"horizontal"),$APP.Oh,BU(B,IU,"default"),$APP.al,$APP.F(E),FU,$APP.F(H),$APP.Li,BU(G,JU,"md"),GU,BU(y,KU,"space-between")],null);p=DU(p).length>0;q=DU(q).length>0;v=DU(v).length>0;x=DU(x).length>0;b=DU(b).length>0;A=$APP.M(a);A=$APP.D(A,$APP.U);A=$APP.Hg(A)?A:null;$APP.n(A)?c.setAttribute("aria-label",A):c.removeAttribute("aria-label");c.setAttribute("data-variant",$APP.Oh.g(a));c.setAttribute("data-orientation",$APP.Mk.g(a));c.setAttribute("data-breakpoint",
5
+ $APP.Li.g(a));d.setAttribute("data-alignment",GU.g(a));e.setAttribute("data-has-brand",p?"true":"false");g.setAttribute("data-has-start",q?"true":"false");h.setAttribute("data-has-actions",v?"true":"false");l.setAttribute("data-has-toggle",x?"true":"false");return m.setAttribute("data-has-end",b?"true":"false")},MU=function(a,b){b.addEventListener("click",function(c){var d=$APP.k(a,"__xNavbarRefs"),e=c.target,g=$APP.n(e)?e.closest("a"):null;c=c instanceof PointerEvent?"pointer":c instanceof MouseEvent?
6
+ "pointer":c instanceof KeyboardEvent?"keyboard":"programmatic";$APP.n(g)&&(g=g.getAttribute("href"),CU(a,"navigate",{href:$APP.n(g)?g:"",source:c}));a:{d=DU($APP.k(d,"brand-slot"));for(g=0;;)if(g<d.length){var h=d[g];var l=$APP.C.i(h,e);h=l?l:(l=$APP.C.i(h.nodeType,Node.ELEMENT_NODE))?h.contains(e):l;if($APP.n(h)){e=!0;break a}g+=1}else{e=!1;break a}e=void 0}return e?CU(a,"brand-activate",{source:c}):null});b.addEventListener("focusin",function(c){c=c.target;if($APP.n($APP.n(c)?c.matches(":focus-visible"):
7
+ c)){if($APP.n($APP.k(a,"__xNavbarFocusVisible")))return null;a.__xNavbarFocusVisible=!0;a.setAttribute("data-focus-visible-within","true");return CU(a,"focus-visible",{})}return null});b.addEventListener("focusout",function(c){c=c.relatedTarget;if($APP.n($APP.n(c)?a.contains(c):c))return null;a.__xNavbarFocusVisible=!1;return a.removeAttribute("data-focus-visible-within")})},NU=function(a,b){function c(){return LU(a,b)}$APP.k(b,"brand-slot").addEventListener("slotchange",c);$APP.k(b,"start-slot").addEventListener("slotchange",
8
+ c);$APP.k(b,"default-slot").addEventListener("slotchange",c);$APP.k(b,"actions-slot").addEventListener("slotchange",c);$APP.k(b,"toggle-slot").addEventListener("slotchange",c);$APP.k(b,"end-slot").addEventListener("slotchange",c)},OU=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.F(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},PU=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,
9
+ enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return $APP.n(d)?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)}})},QU=function(a){OU(a,"sticky","sticky");OU(a,"elevated","elevated");PU(a,"label","label");PU(a,"variant","variant");PU(a,"orientation","orientation");PU(a,"alignment","alignment");PU(a,"breakpoint","breakpoint")},SU=function(){var a=class extends HTMLElement{};a.observedAttributes=RU;a.prototype.connectedCallback=function(){var b=
10
+ $APP.k(this,"__xNavbarRefs")==null;var c=$APP.k(this,"__xNavbarRefs");if(!$APP.n(c)){c=this.attachShadow({mode:"open"});var d=EU("style"),e=EU("nav"),g=EU("div"),h=EU("div"),l=EU("div"),m=EU("div"),p=EU("div"),q=EU("div"),v=EU("div"),x=EU("slot"),y=EU("slot"),A=EU("slot"),B=EU("slot"),E=EU("slot"),H=EU("slot");d.textContent=":host{display:block;color-scheme:light dark;--x-navbar-height:4rem;--x-navbar-padding-inline:1rem;--x-navbar-gap:0.75rem;--x-navbar-bg:var(--x-color-surface,rgba(255,255,255,0.88));--x-navbar-color:var(--x-color-text,#0f172a);--x-navbar-border:var(--x-color-border,rgba(148,163,184,0.22));--x-navbar-shadow:var(--x-shadow-md,0 8px 24px rgba(15,23,42,0.08));--x-navbar-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-navbar-z-index:40;--x-navbar-radius:0;--x-navbar-transition-duration:var(--x-transition-duration,180ms);--x-navbar-transition-easing:var(--x-transition-easing,cubic-bezier(0.2,0,0,1));--x-navbar-align-items:center;}@media (prefers-color-scheme: dark){:host{--x-navbar-bg:var(--x-color-surface,rgba(15,23,42,0.84));--x-navbar-color:var(--x-color-text,#e5e7eb);--x-navbar-border:var(--x-color-border,rgba(51,65,85,0.9));--x-navbar-shadow:var(--x-shadow-md,0 14px 36px rgba(0,0,0,0.35));--x-navbar-focus-ring:var(--x-color-focus-ring,#93c5fd);}}:host([hidden]){display:none;}[part\x3d'base']{display:block;color:var(--x-navbar-color);background:var(--x-navbar-bg);border:0;border-bottom:1px solid var(--x-navbar-border);border-radius:var(--x-navbar-radius);box-shadow:none;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);transition:background var(--x-navbar-transition-duration) var(--x-navbar-transition-easing),border-color var(--x-navbar-transition-duration) var(--x-navbar-transition-easing),box-shadow var(--x-navbar-transition-duration) var(--x-navbar-transition-easing);}:host([sticky]) [part\x3d'base']{position:sticky;top:0;z-index:var(--x-navbar-z-index);}:host([elevated]) [part\x3d'base']{box-shadow:var(--x-navbar-shadow);}[part\x3d'base'][data-variant\x3d'subtle']{background:transparent;border-bottom-color:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;}[part\x3d'base'][data-variant\x3d'inverted']{background:#0f172a;color:#f8fafc;border-bottom-color:#1e293b;}@media (prefers-color-scheme: dark){[part\x3d'base'][data-variant\x3d'inverted']{background:#020617;color:#f8fafc;border-bottom-color:#172033;}}[part\x3d'base'][data-variant\x3d'transparent']{background:transparent;border-bottom-color:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;}[part\x3d'bar']{display:grid;grid-template-columns:auto auto 1fr auto auto auto;align-items:var(--x-navbar-align-items, center);gap:var(--x-navbar-gap);min-block-size:var(--x-navbar-height);padding-inline:var(--x-navbar-padding-inline);}[part\x3d'bar'][data-alignment\x3d'start']{justify-items:start;}[part\x3d'bar'][data-alignment\x3d'center']{justify-items:center;}[part\x3d'bar'][data-alignment\x3d'space-between']{justify-items:stretch;}[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'bar']{grid-template-columns:1fr;grid-auto-rows:auto;align-items:var(--x-navbar-align-items, center);padding-block:0.75rem;}[part\x3d'brand'],[part\x3d'start'],[part\x3d'nav'],[part\x3d'actions'],[part\x3d'toggle'],[part\x3d'end']{display:flex;align-items:inherit;min-inline-size:0;}[part\x3d'nav']{gap:var(--x-navbar-gap);}[part\x3d'actions'],[part\x3d'end'],[part\x3d'toggle']{justify-self:end;}[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'actions'],[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'end'],[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'toggle']{justify-self:start;}[part\x3d'brand'][data-has-brand\x3d'false'],[part\x3d'start'][data-has-start\x3d'false'],[part\x3d'actions'][data-has-actions\x3d'false'],[part\x3d'toggle'][data-has-toggle\x3d'false'],[part\x3d'end'][data-has-end\x3d'false']{display:none;}slot[name\x3d'brand'],slot[name\x3d'start'],slot[name\x3d'actions'],slot[name\x3d'toggle'],slot[name\x3d'end']{display:contents;}slot{display:contents;}:host(:focus-within) [part\x3d'base']{box-shadow:var(--x-navbar-shadow);}:host([data-focus-visible-within\x3d'true']) [part\x3d'base']{box-shadow:0 0 0 2px var(--x-navbar-focus-ring), var(--x-navbar-shadow);}@media (max-width:640px){:host(:not([orientation\x3dvertical])) [part\x3d'bar']{display:flex;align-items:center;gap:var(--x-navbar-gap);min-block-size:var(--x-navbar-height);padding-inline:var(--x-navbar-padding-inline);}:host(:not([orientation\x3dvertical])) [part\x3d'brand']{flex:1;}:host(:not([orientation\x3dvertical])) [part\x3d'start'],:host(:not([orientation\x3dvertical])) [part\x3d'nav'],:host(:not([orientation\x3dvertical])) [part\x3d'actions'],:host(:not([orientation\x3dvertical])) [part\x3d'end']{display:none;}}@media (prefers-reduced-motion: reduce){[part\x3d'base']{transition:none;}}";
11
11
  e.setAttribute("part","base");g.setAttribute("part","bar");h.setAttribute("part","brand");l.setAttribute("part","start");m.setAttribute("part","nav");p.setAttribute("part","actions");q.setAttribute("part","toggle");v.setAttribute("part","end");x.setAttribute("name","brand");y.setAttribute("name","start");B.setAttribute("name","actions");E.setAttribute("name","toggle");H.setAttribute("name","end");h.appendChild(x);l.appendChild(y);m.appendChild(A);p.appendChild(B);q.appendChild(E);v.appendChild(H);
12
- g.appendChild(h);g.appendChild(l);g.appendChild(m);g.appendChild(p);g.appendChild(q);g.appendChild(v);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xNavbarRefs=c={"end-slot":H,bar:g,start:l,toggle:q,actions:p,brand:h,"default-slot":A,root:c,"brand-slot":x,"start-slot":y,"actions-slot":B,"toggle-slot":E,end:v,base:e,nav:m}}b&&(this.__xNavbarFocusVisible=!1,JT(this,$APP.k(c,"base")),KT(this,c));return IT(this,c)};a.prototype.disconnectedCallback=function(){this.__xNavbarFocusVisible=!1};
13
- a.prototype.attributeChangedCallback=function(){var b=$APP.k(this,"__xNavbarRefs");return $APP.n(b)?IT(this,b):null};NT(a.prototype);return a},QT=function(){$APP.n(customElements.get("x-navbar"))||customElements.define("x-navbar",PT());return null},CT=new $APP.K(null,"elevated","elevated",-7323953),DT=new $APP.K(null,"alignment","alignment",1040093386);var ET=new $APP.S(null,new $APP.R(null,2,["vertical",null,"horizontal",null],null),null),FT=new $APP.S(null,new $APP.R(null,4,["transparent",null,"inverted",null,"subtle",null,"default",null],null),null),GT=new $APP.S(null,new $APP.R(null,4,["md",null,"lg",null,"xl",null,"sm",null],null),null),HT=new $APP.S(null,new $APP.R(null,3,["center",null,"start",null,"space-between",null],null),null),OT="label orientation variant sticky elevated breakpoint alignment".split(" ");
14
- $APP.Pd(["focus-visible",new $APP.R(null,1,[$APP.yj,$APP.Qd],null),"navigate",new $APP.R(null,1,[$APP.yj,new $APP.R(null,2,[$APP.im,$APP.X,$APP.Hk,$APP.X],null)],null),"brand-activate",new $APP.R(null,1,[$APP.yj,new $APP.R(null,1,[$APP.Hk,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_navbar.init",QT);export const init=QT;
12
+ g.appendChild(h);g.appendChild(l);g.appendChild(m);g.appendChild(p);g.appendChild(q);g.appendChild(v);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xNavbarRefs=c={"end-slot":H,bar:g,start:l,toggle:q,actions:p,brand:h,"default-slot":A,root:c,"brand-slot":x,"start-slot":y,"actions-slot":B,"toggle-slot":E,end:v,base:e,nav:m}}b&&(this.__xNavbarFocusVisible=!1,MU(this,$APP.k(c,"base")),NU(this,c));return LU(this,c)};a.prototype.disconnectedCallback=function(){this.__xNavbarFocusVisible=!1};
13
+ a.prototype.attributeChangedCallback=function(){var b=$APP.k(this,"__xNavbarRefs");return $APP.n(b)?LU(this,b):null};QU(a.prototype);return a},TU=function(){$APP.n(customElements.get("x-navbar"))||customElements.define("x-navbar",SU());return null},FU=new $APP.K(null,"elevated","elevated",-7323953),GU=new $APP.K(null,"alignment","alignment",1040093386);var HU=new $APP.S(null,new $APP.R(null,2,["vertical",null,"horizontal",null],null),null),IU=new $APP.S(null,new $APP.R(null,4,["transparent",null,"inverted",null,"subtle",null,"default",null],null),null),JU=new $APP.S(null,new $APP.R(null,4,["md",null,"lg",null,"xl",null,"sm",null],null),null),KU=new $APP.S(null,new $APP.R(null,3,["center",null,"start",null,"space-between",null],null),null),RU="label orientation variant sticky elevated breakpoint alignment".split(" ");
14
+ $APP.Pd(["focus-visible",new $APP.R(null,1,[$APP.Cj,$APP.Qd],null),"navigate",new $APP.R(null,1,[$APP.Cj,new $APP.R(null,2,[$APP.rm,$APP.X,$APP.Nk,$APP.X],null)],null),"brand-activate",new $APP.R(null,1,[$APP.Cj,new $APP.R(null,1,[$APP.Nk,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_navbar.init",TU);export const init=TU;