@vanelsas/baredom 2.2.0 → 2.3.1

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 (92) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +3 -3
  3. package/dist/base.js +408 -394
  4. package/dist/x-alert.js +17 -17
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +14 -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 +16 -16
  13. package/dist/x-card.js +7 -7
  14. package/dist/x-carousel.js +29 -29
  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 +42 -42
  20. package/dist/x-combobox.js +28 -0
  21. package/dist/x-command-palette.js +25 -25
  22. package/dist/x-container.js +6 -6
  23. package/dist/x-context-menu.js +18 -20
  24. package/dist/x-copy.js +22 -22
  25. package/dist/x-currency-field.js +21 -21
  26. package/dist/x-date-picker.js +37 -37
  27. package/dist/x-divider.js +8 -8
  28. package/dist/x-drawer.js +11 -11
  29. package/dist/x-dropdown.js +9 -9
  30. package/dist/x-fieldset.js +5 -5
  31. package/dist/x-file-download.js +7 -7
  32. package/dist/x-form-field.js +15 -15
  33. package/dist/x-form.js +9 -9
  34. package/dist/x-gaussian-blur.js +18 -18
  35. package/dist/x-grid.js +6 -6
  36. package/dist/x-icon.js +7 -7
  37. package/dist/x-image.js +18 -18
  38. package/dist/x-kinetic-font.js +28 -28
  39. package/dist/x-kinetic-typography.js +37 -37
  40. package/dist/x-liquid-dock.js +35 -35
  41. package/dist/x-liquid-fill.js +40 -40
  42. package/dist/x-liquid-glass.js +39 -39
  43. package/dist/x-menu-item.js +10 -10
  44. package/dist/x-menu.js +10 -10
  45. package/dist/x-metaball-cursor.js +27 -27
  46. package/dist/x-modal.js +12 -12
  47. package/dist/x-morph-stack.js +39 -39
  48. package/dist/x-navbar.js +13 -13
  49. package/dist/x-neural-glow.js +31 -31
  50. package/dist/x-notification-center.js +10 -10
  51. package/dist/x-organic-divider.js +15 -15
  52. package/dist/x-organic-progress.js +35 -35
  53. package/dist/x-organic-shape.js +12 -12
  54. package/dist/x-pagination.js +16 -16
  55. package/dist/x-particle-button.js +47 -47
  56. package/dist/x-popover.js +24 -14
  57. package/dist/x-progress-circle.js +7 -7
  58. package/dist/x-progress.js +7 -7
  59. package/dist/x-radio.js +11 -11
  60. package/dist/x-ripple-effect.js +11 -11
  61. package/dist/x-scroll-parallax.js +17 -17
  62. package/dist/x-scroll-stack.js +18 -18
  63. package/dist/x-scroll-story.js +34 -34
  64. package/dist/x-scroll-timeline.js +45 -45
  65. package/dist/x-scroll.js +40 -40
  66. package/dist/x-search-field.js +14 -14
  67. package/dist/x-select.js +9 -9
  68. package/dist/x-sidebar.js +16 -16
  69. package/dist/x-skeleton-group.js +15 -0
  70. package/dist/x-skeleton.js +1 -6
  71. package/dist/x-slider.js +16 -16
  72. package/dist/x-soft-body.js +20 -20
  73. package/dist/x-spacer.js +5 -5
  74. package/dist/x-spinner.js +5 -5
  75. package/dist/x-splash.js +13 -13
  76. package/dist/x-stat.js +9 -9
  77. package/dist/x-stepper.js +15 -16
  78. package/dist/x-switch.js +10 -10
  79. package/dist/x-tab.js +7 -7
  80. package/dist/x-table-cell.js +19 -19
  81. package/dist/x-table-row.js +10 -10
  82. package/dist/x-table.js +13 -13
  83. package/dist/x-tabs.js +11 -11
  84. package/dist/x-text-area.js +17 -17
  85. package/dist/x-theme.js +25 -25
  86. package/dist/x-timeline-item.js +21 -21
  87. package/dist/x-timeline.js +9 -9
  88. package/dist/x-toast.js +22 -22
  89. package/dist/x-toaster.js +8 -8
  90. package/dist/x-tooltip.js +14 -0
  91. package/dist/x-typography.js +8 -8
  92. package/package.json +13 -1
@@ -1,28 +1,28 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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
- "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
- 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.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;
2
+ var yH=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},zH=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},AH=function(a){return typeof a==="string"&&a.trim().length>0?a.trim():"#6366f1"},BH=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},CH=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},DH=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},EH=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},FH=
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"},HH=function(a){if(typeof a==="string"&&a.trim().length>0){var b=$APP.D(GH,a.trim().toLowerCase());if($APP.n(b))return b;if(a.indexOf(",")>=0)return a=a.split(","),$APP.We.m($APP.fe,$APP.sh.i($APP.ae.g(function(c){return c.trim()}),$APP.ce(function(c){return c.length>0})),a)}return null},IH=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},JH=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},KH=function(a,b,c){return a+(b-a)*c},ZH=function(a){a=$APP.zf([$APP.jm,LH,MH,NH,OH,PH,$APP.Yh,$APP.Sm,QH,RH],[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,RH);a=$APP.D(b,$APP.jm);var d=$APP.D(b,LH),e=$APP.D(b,MH),g=$APP.D(b,NH),h=$APP.D(b,OH),l=$APP.D(b,PH),m=$APP.D(b,$APP.Yh),p=$APP.D(b,$APP.Sm);b=$APP.D(b,QH);b=yH(b);p=AH(p);g=HH(g);c=CH(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.pc(g,$APP.fd(x,v))),x+=1;else break;else for(v=0;;)if(v<b)q.push(p),v+=1;else break;return $APP.zf([$APP.Jj,SH,TH,$APP.km,$APP.Gl,UH,VH,$APP.ii,WH,XH,YH],[p,g,c,q,FH(m),BH(h),b,EH(a),zH(e),l!=null,
7
+ DH(d)])},$H=function(a,b){b=$APP.M(b);b=$APP.D(b,$APP.Jj);return a.style.setProperty("--x-metaball-cursor-color",b)},bI=function(a){$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)||(a.__xMetaballSeed=0,$APP.ja(a,"__xMetaballRaf",requestAnimationFrame(function(){return aI(a)})))},cI=function(a){function b(c){var d=$APP.hj.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},dI=function(a){var b=$APP.k(a,"__xMetaballHandler");$APP.n(b)&&(window.removeEventListener("pointermove",b),a.__xMetaballHandler=null)},eI=function(a){Object.defineProperty(a,"blobCount",{get:function(){return yH(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 zH(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 AH(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 BH(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 CH(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 DH(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 EH(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 FH(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 HH(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
+ iI=function(){var a=class extends HTMLElement{};a.observedAttributes=fI;a.prototype.connectedCallback=function(){var b=ZH(this);this.__xMetaballModel=b;this.__xMetaballMouse={x:0,y:0};if(!$APP.n($APP.k(this,"__xMetaballRefs"))){var c=$APP.k(this,"__xMetaballModel"),d=gI[0];gI[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
+ hI;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.ii);d=$APP.D(p,$APP.Gl);var q=$APP.D(p,XH),v=$APP.D(p,UH);p=$APP.D(p,YH);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
+ "feColorMatrix"),E=document.createElementNS("http://www.w3.org/2000/svg","feTurbulence"),G=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
+ 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");G.setAttribute("in","threshold");G.setAttribute("in2","noise");G.setAttribute("scale",$APP.n(q)?""+$APP.T.g(p):"0");G.setAttribute("xChannelSelector","R");G.setAttribute("yChannelSelector","G");y.appendChild(A);y.appendChild(B);y.appendChild(E);y.appendChild(G);x.appendChild(y);
17
+ m.appendChild(x);e=new $APP.Q(null,5,[$APP.Yk,y,$APP.ij,A,$APP.Gm,B,$APP.Bl,E,$APP.Hj,G],null);l.appendChild(m);g.appendChild(h);g.appendChild(l);this.__xMetaballRefs=$APP.Rf($APP.uc([e,new $APP.Q(null,3,[$APP.Ci,g,$APP.hj,l,$APP.gk,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,VH);m=$APP.D(h,WH);h=$APP.D(h,$APP.km);
18
+ l=$APP.M($APP.k(this,"__xMetaballRefs"));l=$APP.D(l,$APP.hj);m=JH(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=IH(g);$H(this,b);this.setAttribute("aria-hidden","true");this.setAttribute("role","presentation");dI(this);cI(this);bI(this);
19
+ return null};a.prototype.disconnectedCallback=function(){var b=$APP.k(this,"__xMetaballRaf");$APP.n(b)&&(cancelAnimationFrame(b),this.__xMetaballRaf=null);dI(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){if($APP.N(c,d)&&(this.__xMetaballModel=b=ZH(this),$APP.n($APP.k(this,"__xMetaballRefs")))){d=$APP.M(b);c=$APP.D(d,VH);var e=$APP.D(d,WH);d=$APP.D(d,$APP.km);var g=$APP.M($APP.k(this,"__xMetaballRefs")),h=$APP.D(g,$APP.hj);g=$APP.k(this,"__xMetaballBlobs");var l=$APP.k(this,
20
+ "__xMetaballPos"),m=g.length;e=JH(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=IH(c);g=$APP.M(b);h=$APP.D(g,$APP.ii);e=$APP.D(g,$APP.Gl);c=$APP.D(g,
21
+ XH);d=$APP.D(g,UH);g=$APP.D(g,YH);l=$APP.k(this,"__xMetaballRefs");m=$APP.ij.g(l);$APP.n(m)&&m.setAttribute("stdDeviation",""+$APP.T.g(h));h=$APP.Gm.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.Hj.g(l);$APP.n(d)&&d.setAttribute("scale",$APP.n(c)?""+$APP.T.g(g):"0");return $H(this,b)}return null};eI(a.prototype);return a},jI=function(){$APP.n(customElements.get("x-metaball-cursor"))||customElements.define("x-metaball-cursor",
22
+ iI());return null},OH=new $APP.K(null,"noise-scale-raw","noise-scale-raw",123215597),LH=new $APP.K(null,"noise-intensity-raw","noise-intensity-raw",-116633534),XH=new $APP.K(null,"noise?","noise?",-38350370),WH=new $APP.K(null,"blob-size","blob-size",-1862159046),UH=new $APP.K(null,"noise-scale","noise-scale",-2033475279),PH=new $APP.K(null,"noise-attr","noise-attr",-1534959409),NH=new $APP.K(null,"palette-raw","palette-raw",-1398782582),SH=new $APP.K(null,"palette","palette",-456203511),QH=new $APP.K(null,
23
+ "blob-count-raw","blob-count-raw",-1850938603),RH=new $APP.K(null,"noise-speed-raw","noise-speed-raw",1761342974),TH=new $APP.K(null,"noise-speed","noise-speed",866692139),VH=new $APP.K(null,"blob-count","blob-count",-248711053),YH=new $APP.K(null,"noise-intensity","noise-intensity",747731519),MH=new $APP.K(null,"blob-size-raw","blob-size-raw",530207878);var fI="blob-count blob-size color noise noise-scale noise-speed noise-intensity blur threshold palette".split(" ");
24
+ $APP.zf([$APP.Jj,new $APP.K(null,"blobSize","blobSize",-64083896),new $APP.K(null,"noiseIntensity","noiseIntensity",-792053623),SH,new $APP.K(null,"noiseScale","noiseScale",2003002730),new $APP.K(null,"noise","noise",-994696820),$APP.Gl,$APP.ii,new $APP.K(null,"noiseSpeed","noiseSpeed",-959403627),new $APP.K(null,"blobCount","blobCount",-1279691625)],[new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],
25
+ null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.Xj],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null)]);
26
+ var GH=new $APP.Q(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 gI=[0],hI=":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;}}",aI=function aI(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=KH($APP.k(q,"x"),h,v);v=KH($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(XH.g(l))&&(d=$APP.k(a,"__xMetaballSeed")+TH.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.ja(a,"__xMetaballRaf",requestAnimationFrame(function(){return aI.g?aI.g(a):aI.call(null,a)}))}return null};$APP.ha("baredom.exports.x_metaball_cursor.init",jI);export const init=jI;
package/dist/x-modal.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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;}}";
2
+ var HW=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")},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
- 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))},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;
4
+ footer:p};return $APP.k(a,"__xModalRefs")},IW=function(a,b,c){a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},JW=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.de(b,$APP.uc($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
+ a=$APP.be(function(d){return $APP.de(b,$APP.be(function(e){var g=$APP.uc(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.od(e,g):g},$APP.uc([$APP.vc(d.assignedElements({flatten:!0}))])))},$APP.uc([$APP.uc($APP.k(a,"root").querySelectorAll("slot"))]));
6
+ return $APP.xe($APP.$d.i(c,a))},KW=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()},LW=function(a,b){IW(a,"x-modal-dismiss",{reason:b});a.removeAttribute("open");return null},MW=function(a){$APP.n(a.hasAttribute("open"))||a.setAttribute("open",
7
+ "");return null},NW=function(a){a.removeAttribute("open");return null},OW=function(a,b){$APP.N($APP.k(a,"__xModalPrevOpen"),b)&&(a.__xModalPrevOpen=b,IW(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)?JW(c):null;a.__xModalRestore=document.activeElement;var e=$APP.n(c)?$APP.Gh(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):KW(a))},QW=function(a){var b=HW(a);b=$APP.k(b,"dialog");var c=new $APP.Q(null,3,[$APP.Bi,a.hasAttribute("open"),$APP.Il,a.getAttribute("size"),$APP.ni,a.getAttribute("label")],null);var d=$APP.M(c),e=$APP.D(d,$APP.Bi);c=$APP.D(d,$APP.Il);d=$APP.D(d,$APP.ni);e=$APP.F(e);c=typeof c==="string"&&$APP.I(PW,c)?c:"md";d=typeof d==="string"&&$APP.N(d,"")?d:"Modal";c=new $APP.Q(null,3,[$APP.zm,e,$APP.Kh,c,$APP.U,d],null);d=$APP.zm.g(c);a.setAttribute("data-open",
9
+ $APP.n(d)?"true":"false");a.setAttribute("data-size",$APP.Kh.g(c));b.setAttribute("aria-label",$APP.U.g(c));OW(a,d)},RW=function(a){function b(g){var h=g.key;if($APP.C.i(h,"Escape"))g.preventDefault(),LW(a,"escape");else if($APP.C.i(h,"Tab")){h=$APP.k(a,"__xModalTabbables");h=$APP.n(h)?$APP.xe($APP.uc(h)):$APP.fe;var l=$APP.k(a,"__xModalRefs");l=$APP.n(l)?$APP.k(l,"dialog"):null;if($APP.Hc(h))g.preventDefault(),$APP.n(l)&&l.focus();else{l=document.activeElement;var m=$APP.u(h);h=$APP.xc(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 LW(a,"backdrop")}var d=HW(a),e=$APP.k(d,"dialog");$APP.k(d,"backdrop").addEventListener("click",c);e.addEventListener("keydown",b);$APP.ja(a,"__xModalHandlers",{backdrop:c,keydown:b})},SW=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},TW=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return $APP.n(b)?MW(this):NW(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 MW(this)},enumerable:!0,configurable:!0,writable:!0});Object.defineProperty(a,"hide",{value:function(){return NW(this)},enumerable:!0,
13
+ configurable:!0,writable:!0});Object.defineProperty(a,"toggle",{value:function(){$APP.n(this.hasAttribute("open"))?NW(this):MW(this);return null},enumerable:!0,configurable:!0,writable:!0})},VW=function(){if(!$APP.n(customElements.get("x-modal"))){var a=class extends HTMLElement{};a.observedAttributes=UW;a.prototype.connectedCallback=function(){HW(this);SW(this);RW(this);QW(this);return null};a.prototype.disconnectedCallback=function(){SW(this);KW(this);return null};a.prototype.attributeChangedCallback=
14
+ function(b,c,d){$APP.N(c,d)&&QW(this);return null};TW(a.prototype);customElements.define("x-modal",a)}return null},WW=function(){return VW()};var PW=new $APP.R(null,new $APP.Q(null,5,["md",null,"lg",null,"full",null,"xl",null,"sm",null],null),null),UW=["open","size","label"];$APP.Qd(["x-modal-toggle",new $APP.Q(null,2,[$APP.Yl,!1,$APP.V,new $APP.Q(null,1,[$APP.Vl,$APP.Xj],null)],null),"x-modal-dismiss",new $APP.Q(null,2,[$APP.Yl,!1,$APP.V,new $APP.Q(null,1,[$APP.Li,$APP.Y],null)],null)]);$APP.ha("baredom.exports.x_modal.init",WW);export const init=WW;
@@ -1,41 +1,41 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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");
2
+ var yw=function(a){return typeof a==="string"?(a=a.trim().toLowerCase(),$APP.I(xw,a)?a:"clean"):"clean"},zw=function(a){return $APP.C.i(a,"organic")||$APP.C.i(a,"liquid")},Aw=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)},Bw=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},Cw=function(a,b,c,d){if($APP.n($APP.n(a)?a>0:a)){b=$APP.qh.i(1E-4,
3
+ $APP.n(b)?b:0);c=$APP.qh.i(1E-4,$APP.n(c)?c:0);d=$APP.qh.i(1E-4,$APP.n(d)?d:0);var e=Math.sqrt(b/d);a=1E3*(4/($APP.qh.i(.2,$APP.rh.i(5,c/(2*Math.sqrt(b*d))))*e)+Math.PI/e)/a}else a=1;return a},Dw=function(a,b,c,d,e,g){b+=(e*(1-a)-g*b)/d*c;return[a+b*c,b]},Fw=function(a,b){b=$APP.M(b);var c=$APP.D(b,Ew);b=$APP.D(b,$APP.bk);var d=$APP.xe(a);a=$APP.z(d);if(a>0){var e=$APP.n(function(){return $APP.n(c)?$APP.Ud(function(g){return $APP.C.i(g,c)},d):c}())?c:null;if($APP.n(e))return e;a=$APP.qh.i(0,$APP.rh.i(a-
4
+ 1,$APP.n(b)?b:0));return $APP.pc(d,a)}return null},Gw=function(a,b,c){return a+(b-a)*c},Hw=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},Iw=function(a,b,c){var d=Hw(a),e=Hw(b);return $APP.n($APP.n(d)?e:d)?"rgba("+
5
+ $APP.T.g(Math.round(Gw(d[0],e[0],c)))+","+$APP.T.g(Math.round(Gw(d[1],e[1],c)))+","+$APP.T.g(Math.round(Gw(d[2],e[2],c)))+","+$APP.T.g(Gw(d[3],e[3],c))+")":c<.5?a:b},Jw=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},Kw=function(a,
6
+ b){return new $APP.Q(null,2,[$APP.Xh,$APP.n(a)?a:"",$APP.Ql,$APP.n(b)?b:""],null)},Mw=function(a){var b=$APP.k(a,"__xMorphStackRefs"),c=$APP.n(b)?Lw.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.oh.C(b,Lw,c,$APP.uc([$APP.gk,d]));return a.__xMorphStackRefs=b},Nw=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.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;
9
+ d.setAttribute("part","viewport");e.setAttribute("name","state");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xMorphStackRefs=new $APP.Q(null,3,[$APP.Ci,b,$APP.hj,d,$APP.fj,e],null);return $APP.k(a,"__xMorphStackRefs")},Pw=function(a){a=new $APP.Q(null,8,[Ow,a.getAttribute("active-state"),$APP.bl,a.getAttribute("active-index"),$APP.Xl,a.getAttribute("stiffness"),$APP.Jm,a.getAttribute("damping"),$APP.Aj,a.getAttribute("mass"),$APP.hl,a.getAttribute("variant"),$APP.Qi,a.getAttribute("duration"),
10
+ $APP.Al,a.hasAttribute("disabled")],null);a=$APP.M(a);var b=$APP.D(a,Ow),c=$APP.D(a,$APP.bl),d=$APP.D(a,$APP.Xl),e=$APP.D(a,$APP.Jm),g=$APP.D(a,$APP.Aj),h=$APP.D(a,$APP.hl),l=$APP.D(a,$APP.Qi);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=Bw(d,170,10,500);e=Bw(e,26,1,100);g=Bw(g,1,.1,10);h=yw(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.Q(null,8,[Ew,b,$APP.bk,c,$APP.Fl,d,$APP.Ik,e,$APP.mm,g,$APP.Tg,h,$APP.Uk,l,$APP.X,$APP.F(a)],null)},Qw=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},Rw=function(a){a=Nw(a);a=$APP.M(a);a=$APP.D(a,$APP.fj).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},Sw=function(a){a=Rw(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},Tw=function(a,b){a=Rw(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},Uw=function(a,b){for(var c=Rw(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},Vw=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},Ww=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",Aw(c))},Xw=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,Ww(a,c*(1-b),Gw(d,1,b)))},Zw=function(a){var b=Mw(a);b=$APP.M(b);b=$APP.D(b,
15
+ $APP.gk);var c=$APP.k(a,"__xMorphStackFilterId");if($APP.n(c))b=c;else{c=Yw[0];Yw[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",Aw(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=Mw(a);c=$APP.M(c);c=$APP.D(c,Lw);d=Qw(a,"--x-morph-stack-goo-blur",10);e=Qw(a,"--x-morph-stack-goo-threshold",
17
+ 18);a.__xMorphStackGooBaseBlur=d;a.__xMorphStackGooBaseThreshold=e;Ww(a,d,e);c.style.filter="url(#"+$APP.T.g(b)+")";c.style.webkitFilter="url(#"+$APP.T.g(b)+")"},$w=function(a){a=$APP.k(a,"__xMorphStackRefs");a=$APP.n(a)?Lw.g(a):null;$APP.n(a)&&(a.style.filter="",a.style.webkitFilter="")},ax=function(a){a.style.position="absolute";a.style.margin="0";a.style.boxSizing="border-box";a.style.transformOrigin="top left";a.style.pointerEvents="none"},bx=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"},cx=function(a,b,c,d){function e(oa){oa=$APP.qh.i(0,$APP.rh.i(1,oa));var Aa=Gw(aa,0,oa),Na=Gw(H,1,oa),cb=Gw(J,1,oa);B.style.transform="translate("+$APP.T.g(Gw(S,0,oa))+"px,"+$APP.T.g(Aa)+"px) scale("+$APP.T.g(Na)+","+$APP.T.g(cb)+")";Aa=B.style;Na=Jw(m);cb=Jw(p);if($APP.n($APP.n(Na)?$APP.n(cb)?$APP.C.i(Na.length,cb.length):cb:Na)){for(var db=[],mb=Na.length,Lb=0;;)if(Lb<mb)db.push(""+
19
+ $APP.T.g(Gw(Na[Lb],cb[Lb],oa))+"px"),Lb+=1;else break;Na=db.join(" ")}else Na=oa<.5?m:p;Aa.borderRadius=Na;$APP.n($APP.n(q)?v:q)&&(B.style.backgroundColor=Iw(q,v,oa));$APP.n($APP.n(x)?y:x)&&(B.style.color=Iw(x,y,oa));A&&(B.style.opacity=""+$APP.T.g($APP.qh.i(0,$APP.rh.i(1,oa))));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,G=l.h,H=c>0?E/c:1,J=d>0?G/d:1,S=l.x-h.x,aa=l.y-h.y;ax(B);bx(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}}},dx=function(a,b,c,d){function e(B){B=$APP.qh.i(0,$APP.rh.i(1,B));var E=Gw(0,v,B),G=Gw(1,x,B),H=Gw(1,y,B);A.style.transform="translate("+$APP.T.g(Gw(0,q,B))+"px,"+$APP.T.g(E)+"px) scale("+$APP.T.g(G)+","+$APP.T.g(H)+
21
+ ")";A.style.opacity=""+$APP.T.g($APP.qh.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);ax(A);bx(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}}},ex=function(a,b,c){var d=$APP.k(c,"rect"),e=$APP.k(c,"node").cloneNode(!0);ax(e);bx(e,d,b);a.appendChild(e);return{t:0,v:0,update:function(g){e.style.opacity=
22
+ ""+$APP.T.g($APP.qh.i(0,1-g));return null},finalize:function(){return $APP.n(e.parentNode)?e.parentNode.removeChild(e):null}}},fx=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.qh.i(0,$APP.rh.i(1,c)));return null},finalize:function(){return b.style.opacity=""}}},kx=function(a,b,c){a=Mw(a);a=$APP.M(a);var d=$APP.D(a,Lw),e=d.getBoundingClientRect(),g=Object.keys(b);a=Object.keys(c);g=$APP.xe(g);a=$APP.xe(a);g=$APP.Xf(g);a=$APP.Xf(a);
23
+ a=new $APP.Q(null,3,[gx,$APP.Xm.i(g,a),hx,ix.i(g,a),jx,ix.i(a,g)],null);var h=gx.g(a),l=hx.g(a);g=jx.g(a);a=[];h=$APP.t(h);for(var m=null,p=0,q=0;;)if(q<p){var v=m.F(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(cx(d,e,x,v));$APP.N(y,A)&&a.push(dx(d,e,x,v));q+=1}else if(h=$APP.t(h))$APP.Nc(h)?(p=$APP.yb(h),h=$APP.zb(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(cx(d,e,m,p)),$APP.N(q,x)&&a.push(dx(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.F(null,p),a.push(ex(d,e,$APP.k(b,q))),p+=1;else if(l=$APP.t(l))h=l,$APP.Nc(h)?(l=$APP.yb(h),p=$APP.zb(h),h=l,m=$APP.z(l),l=p):(l=$APP.u(h),a.push(ex(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.F(null,g),a.push(fx($APP.k(c,l))),g+=1;else if(b=$APP.t(b))d=b,$APP.Nc(d)?(b=$APP.yb(d),g=$APP.zb(d),d=b,e=$APP.z(b),b=g):(b=$APP.u(d),a.push(fx($APP.k(c,b))),b=$APP.w(d),
25
+ d=null,e=0),g=0;else break;return a},lx=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},mx=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);lx(b);a.__xMorphStackEntries=null;a.__xMorphStackLast=null;$w(a);$APP.n(c)&&(c=$APP.Gh(Kw($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},nx=function(a){var b=$APP.k(a,"__xMorphStackRaf");$APP.n(b)&&(window.cancelAnimationFrame(b),a.__xMorphStackRaf=null);lx($APP.k(a,"__xMorphStackEntries"));a.__xMorphStackEntries=null;a.__xMorphStackLast=null;$w(a)},px=function(a,b,c){var d=$APP.k(a,"__xMorphStackCurrent"),e=function(){var m=$APP.k(a,"__xMorphStackModel");
27
+ return $APP.n(m)?m:Pw(a)}(),g=Sw(a);if(g.length===0||b==null||$APP.r($APP.Ud(function(m){return $APP.C.i(m,b)},g)))return!1;if($APP.C.i(d,b))return!0;var h=$APP.n(d)?Tw(a,d):null;g=Tw(a,b);c=$APP.Gh(new $APP.Q(null,3,[$APP.Xh,$APP.n(d)?d:"",$APP.Ql,$APP.n(b)?b:"",$APP.Li,$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;nx(a);c=function(){var m=$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches);
28
+ return m?m:$APP.X.g(e)}();if($APP.n(c))Uw(a,b),queueMicrotask(function(){var m=$APP.Gh(Kw(d,b));m=new CustomEvent("x-morph-stack-changed",{detail:m,bubbles:!0,composed:!0});return a.dispatchEvent(m)});else{h=Vw(h);Uw(a,b);$APP.hj.g(Nw(a));g=Vw(g);g=kx(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.ja(a,"__xMorphStackTimeScale",Cw($APP.Uk.g(e),
29
+ $APP.Fl.g(e),$APP.Ik.g(e),$APP.mm.g(e)));zw($APP.Tg.g(e))&&(Zw(a),Xw(a,0));g.length===0?mx(a,l,!0):(g=window.requestAnimationFrame(function(m){return $APP.C.i(l,$APP.k(a,"__xMorphStackToken"))?ox(a,m):null}),a.__xMorphStackRaf=g)}return!0},qx=function(a){Nw(a);var b=Pw(a);a.__xMorphStackModel=b;a.setAttribute("data-variant",$APP.Tg.g(b));var c=Sw(a);c=Fw($APP.xe($APP.uc(c)),b);b=$APP.k(a,"__xMorphStackCurrent");b==null?$APP.n(c)&&Uw(a,c):$APP.n($APP.n(c)?$APP.N(c,b):c)?px(a,c,"attribute"):(c=c==null,
30
+ $APP.n(c?b:c)&&(nx(a),Uw(a,null)))},rx=function(a){var b=Sw(a);var c=$APP.k(a,"__xMorphStackModel");c=$APP.n(c)?c:Pw(a);b=Fw($APP.xe($APP.uc(b)),c);c=$APP.k(a,"__xMorphStackCurrent");b==null?(nx(a),Uw(a,null)):$APP.n($APP.n(c)?Tw(a,c)==null:c)?(nx(a),Uw(a,b)):c==null?Uw(a,b):Uw(a,c);return null},sx=function(a){function b(){return rx(a)}var c=Nw(a);c=$APP.M(c);$APP.D(c,$APP.fj).addEventListener("slotchange",b);$APP.ja(a,"__xMorphStackHandlers",{slot:b})},tx=function(a){var b=$APP.k(a,"__xMorphStackHandlers"),
31
+ c=$APP.k(a,"__xMorphStackRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.fj.g(c),b=$APP.k(b,"slot"),$APP.n(b)&&c.removeEventListener("slotchange",b));a.__xMorphStackHandlers=null},ux=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})},vx=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})},wx=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});vx(a,"stiffness","stiffness");vx(a,"damping","damping");vx(a,"mass","mass");vx(a,"duration","duration");Object.defineProperty(a,"variant",{get:function(){return yw(this.getAttribute("variant"))},set:function(b){return b==null?this.removeAttribute("variant"):this.setAttribute("variant",""+$APP.T.g(b))},enumerable:!0,
34
+ configurable:!0});ux(a);a.goTo=function(b){b=b!=null?""+$APP.T.g(b):null;return px(this,b,"method")};a.next=function(){var b=Sw(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=px(this,b[$APP.fd(d+1,c)],"method")}else b=null;return b};a.prev=function(){var b=Sw(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=px(this,b[$APP.fd(d-1+c,c)],"method")}else b=null;return b};a.states=function(){return Sw(this)}},zx=function(){var a=class extends HTMLElement{};a.observedAttributes=xx;a.prototype.connectedCallback=function(){Nw(this);tx(this);sx(this);qx(this);$APP.k(this,"__xMorphStackCurrent")==null&&rx(this);return null};a.prototype.disconnectedCallback=function(){nx(this);var b=$APP.k(this,"__xMorphStackRefs"),c=$APP.n(b)?Lw.g(b):null;$APP.n($APP.n(c)?c.parentNode:c)&&c.parentNode.removeChild(c);
36
+ $APP.n(b)&&(this.__xMorphStackRefs=yx.i(yx.i(b,Lw),$APP.gk));this.__xMorphStackGooBaseThreshold=this.__xMorphStackGooBaseBlur=this.__xMorphStackFilterMatrix=this.__xMorphStackFilterBlur=this.__xMorphStackFilterId=null;tx(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&qx(this);return null};wx(a.prototype);return a},Ax=function(){$APP.n(customElements.get("x-morph-stack"))||customElements.define("x-morph-stack",zx());return null},yx=function yx(a){switch(arguments.length){case 1:return yx.g(arguments[0]);
37
+ case 2:return yx.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 yx.C(arguments[0],arguments[1],2<c.length?new $APP.Ub(c.slice(2),0,null):null)}};yx.g=function(a){return a};yx.i=function(a,b){return a==null?null:$APP.La(a,b)};yx.C=function(a,b,c){for(;;){if(a==null)return null;a=yx.i(a,b);if($APP.n(c))b=$APP.u(c),c=$APP.w(c);else return a}};
38
+ yx.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)};yx.N=2;var ix=function ix(a){switch(arguments.length){case 1:return ix.g(arguments[0]);case 2:return ix.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 ix.C(arguments[0],arguments[1],2<c.length?new $APP.Ub(c.slice(2),0,null):null)}};ix.g=function(a){return a};
39
+ ix.i=function(a,b){return $APP.z(a)<$APP.z(b)?$APP.Xc(function(c,d){return $APP.I(b,d)?$APP.ph.i(c,d):c},a,a):$APP.Xc($APP.ph,a,b)};ix.C=function(a,b,c){return $APP.Xc(ix,a,$APP.ld.i(c,b))};ix.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)};ix.N=2;
40
+ var jx=new $APP.K(null,"entering","entering",-413471949),hx=new $APP.K(null,"leaving","leaving",608616060),gx=new $APP.K(null,"matched","matched",-975207164),Ow=new $APP.K(null,"active-state-raw","active-state-raw",-60607051),Ew=new $APP.K(null,"active-state","active-state",-1185168001),Lw=new $APP.K(null,"ghost-layer","ghost-layer",1707493707);var xx="active-state active-index stiffness damping mass variant duration disabled".split(" "),xw=$APP.Uf(["liquid","clean","organic"]);$APP.Qd(["x-morph-stack-change",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.Xh,$APP.Y,$APP.Ql,$APP.Y,$APP.Li,$APP.Y],null),$APP.Yl,!0],null),"x-morph-stack-changed",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.Xh,$APP.Y,$APP.Ql,$APP.Y],null),$APP.Yl,!1],null)]);var Yw=[0],ox=function ox(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:Pw(a)}(),l=$APP.mm.g(h),m=$APP.Fl.g(h);h=$APP.Ik.g(h);g=$APP.qh.i(0,$APP.rh.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=Dw(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;Xw(a,p[0]);$APP.n(b[0])?mx.m?mx.m(a,d,!0):mx.call(null,a,d,!0):(e=window.requestAnimationFrame(function(B){return $APP.C.i(d,$APP.k(a,"__xMorphStackToken"))?ox.i?ox.i(a,B):ox.call(null,a,B):null}),a.__xMorphStackRaf=e)}return null};$APP.ha("baredom.exports.x_morph_stack.init",Ax);export const init=Ax;
package/dist/x-navbar.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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
- 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,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;
2
+ var oW=function(a,b,c){return typeof a==="string"&&$APP.I(b,a)?a:c},pW=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},qW=function(a){return a.assignedNodes({flatten:!0})},rW=function(a){return document.createElement(a)},yW=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.Q(null,7,[$APP.U,a.getAttribute("label"),$APP.el,a.getAttribute("orientation"),$APP.Tg,a.getAttribute("variant"),$APP.tl,a.hasAttribute("sticky"),sW,a.hasAttribute("elevated"),$APP.dj,a.getAttribute("breakpoint"),tW,a.getAttribute("alignment")],null);var y=$APP.M(a);a=$APP.D(y,$APP.U);var A=$APP.D(y,$APP.el),B=$APP.D(y,$APP.Tg),E=$APP.D(y,$APP.tl),G=$APP.D(y,sW),H=$APP.D(y,$APP.dj);y=$APP.D(y,tW);a=new $APP.Q(null,7,[$APP.U,
4
+ typeof a==="string"?a:null,$APP.el,oW(A,uW,"horizontal"),$APP.Tg,oW(B,vW,"default"),$APP.tl,$APP.F(E),sW,$APP.F(G),$APP.dj,oW(H,wW,"md"),tW,oW(y,xW,"space-between")],null);p=qW(p).length>0;q=qW(q).length>0;v=qW(v).length>0;x=qW(x).length>0;b=qW(b).length>0;A=$APP.M(a);A=$APP.D(A,$APP.U);A=$APP.Jg(A)?A:null;$APP.n(A)?c.setAttribute("aria-label",A):c.removeAttribute("aria-label");c.setAttribute("data-variant",$APP.Tg.g(a));c.setAttribute("data-orientation",$APP.el.g(a));c.setAttribute("data-breakpoint",
5
+ $APP.dj.g(a));d.setAttribute("data-alignment",tW.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")},zW=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"),pW(a,"navigate",{href:$APP.n(g)?g:"",source:c}));a:{d=qW($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?pW(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 pW(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")})},AW=function(a,b){function c(){return yW(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)},BW=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)}})},CW=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)}})},DW=function(a){BW(a,"sticky","sticky");BW(a,"elevated","elevated");CW(a,"label","label");CW(a,"variant","variant");CW(a,"orientation","orientation");CW(a,"alignment","alignment");CW(a,"breakpoint","breakpoint")},FW=function(){var a=class extends HTMLElement{};a.observedAttributes=EW;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=rW("style"),e=rW("nav"),g=rW("div"),h=rW("div"),l=rW("div"),m=rW("div"),p=rW("div"),q=rW("div"),v=rW("div"),x=rW("slot"),y=rW("slot"),A=rW("slot"),B=rW("slot"),E=rW("slot"),G=rW("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
+ 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");G.setAttribute("name","end");h.appendChild(x);l.appendChild(y);m.appendChild(A);p.appendChild(B);q.appendChild(E);v.appendChild(G);
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":G,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,zW(this,$APP.k(c,"base")),AW(this,c));return yW(this,c)};a.prototype.disconnectedCallback=function(){this.__xNavbarFocusVisible=!1};
13
+ a.prototype.attributeChangedCallback=function(){var b=$APP.k(this,"__xNavbarRefs");return $APP.n(b)?yW(this,b):null};DW(a.prototype);return a},GW=function(){$APP.n(customElements.get("x-navbar"))||customElements.define("x-navbar",FW());return null},sW=new $APP.K(null,"elevated","elevated",-7323953),tW=new $APP.K(null,"alignment","alignment",1040093386);var uW=new $APP.R(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),vW=new $APP.R(null,new $APP.Q(null,4,["transparent",null,"inverted",null,"subtle",null,"default",null],null),null),wW=new $APP.R(null,new $APP.Q(null,4,["md",null,"lg",null,"xl",null,"sm",null],null),null),xW=new $APP.R(null,new $APP.Q(null,3,["center",null,"start",null,"space-between",null],null),null),EW="label orientation variant sticky elevated breakpoint alignment".split(" ");
14
+ $APP.Qd(["focus-visible",new $APP.Q(null,1,[$APP.V,$APP.Rd],null),"navigate",new $APP.Q(null,1,[$APP.V,new $APP.Q(null,2,[$APP.Mm,$APP.Y,$APP.fl,$APP.Y],null)],null),"brand-activate",new $APP.Q(null,1,[$APP.V,new $APP.Q(null,1,[$APP.fl,$APP.Y],null)],null)]);$APP.ha("baredom.exports.x_navbar.init",GW);export const init=GW;