@vanelsas/baredom 2.7.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/custom-elements.json +344 -5
  3. package/dist/baredom.d.ts +4 -0
  4. package/dist/base.js +451 -427
  5. package/dist/integrity.json +97 -93
  6. package/dist/x-alert.js +17 -18
  7. package/dist/x-avatar-group.js +9 -10
  8. package/dist/x-avatar.js +15 -15
  9. package/dist/x-badge.js +9 -10
  10. package/dist/x-bento-grid.js +5 -5
  11. package/dist/x-bento-item.js +4 -4
  12. package/dist/x-breadcrumbs.js +13 -14
  13. package/dist/x-button.js +16 -18
  14. package/dist/x-cancel-dialogue.js +13 -17
  15. package/dist/x-card.js +7 -7
  16. package/dist/x-carousel.js +33 -34
  17. package/dist/x-chart.d.ts +26 -0
  18. package/dist/x-chart.js +47 -46
  19. package/dist/x-checkbox.js +11 -10
  20. package/dist/x-chip.js +1 -9
  21. package/dist/x-collapse.js +10 -10
  22. package/dist/x-color-picker.js +44 -44
  23. package/dist/x-combobox.js +26 -26
  24. package/dist/x-command-palette.js +26 -26
  25. package/dist/x-container.js +4 -4
  26. package/dist/x-context-menu.d.ts +31 -2
  27. package/dist/x-context-menu.js +20 -18
  28. package/dist/x-copy.js +20 -23
  29. package/dist/x-currency-field.js +23 -23
  30. package/dist/x-date-picker.d.ts +27 -0
  31. package/dist/x-date-picker.js +42 -41
  32. package/dist/x-divider.js +9 -9
  33. package/dist/x-drawer.js +10 -11
  34. package/dist/x-dropdown.js +11 -10
  35. package/dist/x-fieldset.js +5 -6
  36. package/dist/x-file-download.js +7 -7
  37. package/dist/x-file-upload.js +20 -20
  38. package/dist/x-form-field.js +15 -15
  39. package/dist/x-form.js +9 -8
  40. package/dist/x-gaussian-blur.js +13 -19
  41. package/dist/x-grid.js +6 -6
  42. package/dist/x-i18n-provider.d.ts +43 -0
  43. package/dist/x-i18n-provider.js +8 -0
  44. package/dist/x-i18n.d.ts +14 -0
  45. package/dist/x-i18n.js +5 -0
  46. package/dist/x-icon.js +6 -7
  47. package/dist/x-image.js +18 -19
  48. package/dist/x-kinetic-canvas.d.ts +18 -0
  49. package/dist/x-kinetic-canvas.js +26 -0
  50. package/dist/x-kinetic-font.js +27 -28
  51. package/dist/x-kinetic-typography.js +33 -39
  52. package/dist/x-liquid-dock.js +39 -39
  53. package/dist/x-liquid-fill.js +45 -45
  54. package/dist/x-liquid-glass.js +47 -47
  55. package/dist/x-menu-item.js +8 -9
  56. package/dist/x-menu.js +10 -11
  57. package/dist/x-metaball-cursor.js +27 -27
  58. package/dist/x-modal.js +11 -12
  59. package/dist/x-morph-stack.js +37 -38
  60. package/dist/x-multi-combobox.d.ts +50 -0
  61. package/dist/x-multi-combobox.js +37 -0
  62. package/dist/x-navbar.js +12 -12
  63. package/dist/x-neural-glow.js +33 -33
  64. package/dist/x-notification-center.js +9 -9
  65. package/dist/x-organic-divider.js +17 -18
  66. package/dist/x-organic-progress.js +38 -38
  67. package/dist/x-organic-shape.js +13 -13
  68. package/dist/x-pagination.js +15 -16
  69. package/dist/x-particle-button.js +51 -51
  70. package/dist/x-popover.js +26 -24
  71. package/dist/x-progress-circle.js +9 -10
  72. package/dist/x-progress.js +10 -11
  73. package/dist/x-radio.js +11 -10
  74. package/dist/x-ripple-effect.js +11 -12
  75. package/dist/x-scroll-parallax.js +18 -19
  76. package/dist/x-scroll-stack.js +17 -18
  77. package/dist/x-scroll-story.js +34 -36
  78. package/dist/x-scroll-timeline.js +45 -46
  79. package/dist/x-scroll.js +40 -41
  80. package/dist/x-search-field.js +15 -15
  81. package/dist/x-select.js +10 -9
  82. package/dist/x-sidebar.js +17 -17
  83. package/dist/x-skeleton-group.js +12 -12
  84. package/dist/x-skeleton.js +1 -1
  85. package/dist/x-slider.js +15 -16
  86. package/dist/x-soft-body.js +22 -22
  87. package/dist/x-spacer.js +4 -5
  88. package/dist/x-spinner.js +4 -5
  89. package/dist/x-splash.js +12 -13
  90. package/dist/x-stat.js +10 -12
  91. package/dist/x-stepper.js +14 -15
  92. package/dist/x-switch.js +10 -9
  93. package/dist/x-tab.js +7 -8
  94. package/dist/x-table-cell.js +20 -24
  95. package/dist/x-table-row.js +8 -9
  96. package/dist/x-table.js +12 -15
  97. package/dist/x-tabs.js +11 -11
  98. package/dist/x-text-area.js +18 -18
  99. package/dist/x-theme.js +25 -25
  100. package/dist/x-timeline-item.js +21 -23
  101. package/dist/x-timeline.js +8 -9
  102. package/dist/x-toast.js +22 -24
  103. package/dist/x-toaster.js +8 -8
  104. package/dist/x-tooltip.js +12 -11
  105. package/dist/x-typography.js +9 -11
  106. package/dist/x-welcome-tour.js +60 -64
  107. package/package.json +21 -1
@@ -1,48 +1,48 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var IZ=function(a,b,c,d){if(typeof a==="string"){a=a.trim();if($APP.B.i(a,""))return b;a=parseFloat(a);return $APP.n(isNaN(a))?b:Math.min(d,Math.max(c,a))}return b},JZ=function(a){if(typeof a==="string"){a=a.trim();if($APP.B.i(a,""))return 5;a=parseInt(a,10);return $APP.n(isNaN(a))?5:Math.min(8,Math.max(3,a))}return 5},KZ=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")?a:null):null},LZ=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")?a:null):null},OZ=function(a){a=$APP.D(MZ,
3
- typeof a==="string"?a.trim().toLowerCase():null);return $APP.n(a)?a:NZ},g_=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.wj);var c=$APP.D(b,PZ),d=$APP.D(b,QZ),e=$APP.D(b,$APP.Pm),g=$APP.D(b,RZ),h=$APP.D(b,SZ),l=$APP.D(b,$APP.Pl),m=$APP.D(b,TZ),p=$APP.D(b,UZ),r=$APP.D(b,VZ),v=$APP.D(b,WZ),x=$APP.D(b,XZ),y=$APP.D(b,YZ);b=$APP.D(b,ZZ);return $APP.zf([$Z,a_,b_,$APP.Yj,$APP.Oj,c_,d_,e_,$APP.zl,$APP.Ci,$APP.yl,$APP.hn,f_,$APP.X],[IZ(r,.5,0,1),IZ(y,10,4,20),IZ(h,.15,.05,.4),IZ(p,.3,.05,2),OZ(l),KZ(d),IZ(c,
4
- .4,.1,1),b!=null,function(){var A=LZ(v);return $APP.n(A)?A:"rgba(244,114,182,0.35)"}(),IZ(e,12,0,40),function(){var A=LZ(x);return $APP.n(A)?A:"rgba(99,102,241,0.4)"}(),JZ(g),IZ(m,.3,0,1),a!=null])},h_=function(a,b,c){return Math.sin(a*1.7+c*.3)*Math.cos(b*2.3+c*.5)*.5+Math.sin(a*3.1-c*.7)*Math.cos(b*1.3+c*.2)*.25+Math.sin(a*5.3+c*.4)*Math.cos(b*4.7-c*.6)*.125},j_=function(){var a=$APP.k(i_,"v");i_.v=a+1;return a},k_=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},
5
- r_=function(a){var b=j_(),c=a.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElementNS("http://www.w3.org/2000/svg","svg"),g=document.createElementNS("http://www.w3.org/2000/svg","defs"),h=document.createElementNS("http://www.w3.org/2000/svg","filter"),l=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),m=document.createElementNS("http://www.w3.org/2000/svg","feColorMatrix"),p=document.createElementNS("http://www.w3.org/2000/svg","g"),r=document.createElementNS("http://www.w3.org/2000/svg",
6
- "ellipse"),v=document.createElement("div"),x=document.createElement("div"),y=document.createElement("div"),A=document.createElement("div"),C=document.createElement("div"),E=document.createElement("slot"),H="lg-goo-"+$APP.S.g(b);a.__xLiquidGlassUID=b;d.textContent=":host{display:block;position:relative;isolation:isolate;min-width:120px;min-height:80px;"+$APP.S.g("--x-liquid-glass-padding")+":1.5rem;"+$APP.S.g("--x-liquid-glass-specular-color")+":rgba(255,255,255,0.6);"+$APP.S.g("--x-liquid-glass-spring")+
7
- ":"+$APP.S.g("linear(0, 0.006, 0.025, 0.058, 0.104, 0.163, 0.234, 0.315, 0.403, 0.496, 0.591, 0.685, 0.774, 0.856, 0.926, 0.983, 1.025, 1.052, 1.065, 1.063, 1.049, 1.025, 0.995, 0.961, 0.927, 0.896, 0.870, 0.850, 0.837, 0.831, 0.832, 0.839, 0.851, 0.867, 0.885, 0.903, 0.921, 0.937, 0.951, 0.962, 0.970, 0.976, 0.979, 0.981, 0.981, 0.980, 0.979, 0.977, 0.976, 0.975, 0.975, 0.976, 0.977, 0.979, 0.981, 0.983, 0.986, 0.989, 0.992, 0.995, 0.998, 1)")+";"+$APP.S.g("--x-liquid-glass-spring-duration")+":"+
8
- $APP.S.g("600ms")+";}[part\x3dsvg]{display:block;width:100%;height:100%;position:absolute;inset:0;overflow:visible;pointer-events:none;z-index:1;}[part\x3dglass]{position:absolute;inset:0;backdrop-filter:blur(var("+$APP.S.g("--x-liquid-glass-blur")+",12px)) saturate(180%);-webkit-backdrop-filter:blur(var("+$APP.S.g("--x-liquid-glass-blur")+",12px)) saturate(180%);z-index:0;}[part\x3dgrain]{position:absolute;inset:0;z-index:2;opacity:0.4;pointer-events:none;}[part\x3dgradient]{position:absolute;inset:0;z-index:1;pointer-events:none;}[part\x3dspecular]{position:absolute;inset:0;z-index:1;opacity:0;pointer-events:none;transition:background var("+
9
- $APP.S.g("--x-liquid-glass-spring-duration")+","+$APP.S.g("600ms")+") var("+$APP.S.g("--x-liquid-glass-spring")+","+$APP.S.g("linear(0, 0.006, 0.025, 0.058, 0.104, 0.163, 0.234, 0.315, 0.403, 0.496, 0.591, 0.685, 0.774, 0.856, 0.926, 0.983, 1.025, 1.052, 1.065, 1.063, 1.049, 1.025, 0.995, 0.961, 0.927, 0.896, 0.870, 0.850, 0.837, 0.831, 0.832, 0.839, 0.851, 0.867, 0.885, 0.903, 0.921, 0.937, 0.951, 0.962, 0.970, 0.976, 0.979, 0.981, 0.981, 0.980, 0.979, 0.977, 0.976, 0.975, 0.975, 0.976, 0.977, 0.979, 0.981, 0.983, 0.986, 0.989, 0.992, 0.995, 0.998, 1)")+
10
- "),opacity var("+$APP.S.g("--x-liquid-glass-spring-duration")+","+$APP.S.g("600ms")+") var("+$APP.S.g("--x-liquid-glass-spring")+","+$APP.S.g("linear(0, 0.006, 0.025, 0.058, 0.104, 0.163, 0.234, 0.315, 0.403, 0.496, 0.591, 0.685, 0.774, 0.856, 0.926, 0.983, 1.025, 1.052, 1.065, 1.063, 1.049, 1.025, 0.995, 0.961, 0.927, 0.896, 0.870, 0.850, 0.837, 0.831, 0.832, 0.839, 0.851, 0.867, 0.885, 0.903, 0.921, 0.937, 0.951, 0.962, 0.970, 0.976, 0.979, 0.981, 0.981, 0.980, 0.979, 0.977, 0.976, 0.975, 0.975, 0.976, 0.977, 0.979, 0.981, 0.983, 0.986, 0.989, 0.992, 0.995, 0.998, 1)")+
11
- ");}[part\x3dcontent]{position:relative;padding:var("+$APP.S.g("--x-liquid-glass-padding")+",1.5rem);z-index:3;}@keyframes lg-enter{from{opacity:0;transform:scale(0.92);}to{opacity:1;transform:scale(1);}}:host([data-entering]) [part\x3dglass],:host([data-entering]) [part\x3dsvg]{animation:lg-enter var("+$APP.S.g("--x-liquid-glass-spring-duration")+","+$APP.S.g("600ms")+") var("+$APP.S.g("--x-liquid-glass-spring")+","+$APP.S.g("linear(0, 0.006, 0.025, 0.058, 0.104, 0.163, 0.234, 0.315, 0.403, 0.496, 0.591, 0.685, 0.774, 0.856, 0.926, 0.983, 1.025, 1.052, 1.065, 1.063, 1.049, 1.025, 0.995, 0.961, 0.927, 0.896, 0.870, 0.850, 0.837, 0.831, 0.832, 0.839, 0.851, 0.867, 0.885, 0.903, 0.921, 0.937, 0.951, 0.962, 0.970, 0.976, 0.979, 0.981, 0.981, 0.980, 0.979, 0.977, 0.976, 0.975, 0.975, 0.976, 0.977, 0.979, 0.981, 0.983, 0.986, 0.989, 0.992, 0.995, 0.998, 1)")+
12
- ") both;}@media(prefers-color-scheme:dark){:host{"+$APP.S.g("--x-liquid-glass-specular-color")+":rgba(255,255,255,0.3);}}@media(prefers-reduced-motion:reduce){:host([data-entering]) [part\x3dglass],:host([data-entering]) [part\x3dsvg]{animation:none;}[part\x3dspecular]{transition:none!important;}}";e.setAttribute("part","svg");e.setAttribute("viewBox","0 0 300 200");e.setAttribute("preserveAspectRatio","none");e.setAttribute("aria-hidden","true");h.setAttribute("id",H);l.setAttribute("in","SourceGraphic");
13
- l.setAttribute("stdDeviation","10");l.setAttribute("result","blur");m.setAttribute("in","blur");m.setAttribute("mode","matrix");m.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 19 -9");h.appendChild(l);h.appendChild(m);g.appendChild(h);e.appendChild(g);p.setAttribute("filter","url(#"+$APP.S.g(H)+")");p.setAttribute("opacity","0.35");r.setAttribute("class","blob-core");p.appendChild(r);e.appendChild(p);m=document.createElementNS("http://www.w3.org/2000/svg","linearGradient");var G="lg-edge-"+
14
- $APP.S.g(b),J=document.createElementNS("http://www.w3.org/2000/svg","stop"),U=document.createElementNS("http://www.w3.org/2000/svg","stop"),aa=document.createElementNS("http://www.w3.org/2000/svg","stop");m.setAttribute("id",G);m.setAttribute("x1","0");m.setAttribute("y1","0");m.setAttribute("x2","1");m.setAttribute("y2","1");J.setAttribute("offset","0%");J.setAttribute("stop-color","white");J.setAttribute("stop-opacity","0.9");U.setAttribute("offset","50%");U.setAttribute("stop-color","white");U.setAttribute("stop-opacity",
15
- "0.15");aa.setAttribute("offset","100%");aa.setAttribute("stop-color","white");aa.setAttribute("stop-opacity","0.5");m.appendChild(J);m.appendChild(U);m.appendChild(aa);g.appendChild(m);a.__xLiquidGlassEdgeId=G;m=document.createElementNS("http://www.w3.org/2000/svg","g");G=document.createElementNS("http://www.w3.org/2000/svg","ellipse");J=$APP.k(a,"__xLiquidGlassEdgeId");m.setAttribute("filter","url(#"+$APP.S.g(H)+")");m.setAttribute("opacity","0.7");G.setAttribute("class","blob-border");G.setAttribute("fill",
16
- "none");G.setAttribute("stroke","url(#"+$APP.S.g(J)+")");G.setAttribute("stroke-width","2.5");m.appendChild(G);e.appendChild(m);a.__xLiquidGlassBorderG=m;a.__xLiquidGlassBorderCore=G;m=document.createElementNS("http://www.w3.org/2000/svg","filter");G="lg-grain-"+$APP.S.g(b);J=document.createElementNS("http://www.w3.org/2000/svg","feTurbulence");U=document.createElementNS("http://www.w3.org/2000/svg","feColorMatrix");m.setAttribute("id",G);J.setAttribute("type","fractalNoise");J.setAttribute("baseFrequency",
17
- "0.6");J.setAttribute("numOctaves","3");J.setAttribute("stitchTiles","stitch");U.setAttribute("type","matrix");U.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0");m.appendChild(J);m.appendChild(U);g.appendChild(m);a.__xLiquidGlassGrainId=G;m=document.createElementNS("http://www.w3.org/2000/svg","mask");b="lg-mask-"+$APP.S.g(b);G=document.createElementNS("http://www.w3.org/2000/svg","g");J=document.createElementNS("http://www.w3.org/2000/svg","ellipse");m.setAttribute("id",b);
18
- m.setAttribute("maskUnits","userSpaceOnUse");m.setAttribute("maskContentUnits","userSpaceOnUse");G.setAttribute("filter","url(#"+$APP.S.g(H)+")");J.setAttribute("fill","white");G.appendChild(J);m.appendChild(G);g.appendChild(m);a.__xLiquidGlassMaskG=G;a.__xLiquidGlassMaskCore=J;$APP.ja(a,"__xLiquidGlassMaskSats",[]);a.__xLiquidGlassMaskId=b;v.setAttribute("part","glass");g="url(#"+$APP.S.g($APP.k(a,"__xLiquidGlassMaskId"))+")";v.style.mask=g;v.style.webkitMask=g;x.setAttribute("part","grain");x.style.filter=
19
- "url(#"+$APP.S.g($APP.k(a,"__xLiquidGlassGrainId"))+")";g="url(#"+$APP.S.g($APP.k(a,"__xLiquidGlassMaskId"))+")";x.style.mask=g;x.style.webkitMask=g;y.setAttribute("part","gradient");g="url(#"+$APP.S.g($APP.k(a,"__xLiquidGlassMaskId"))+")";y.style.mask=g;y.style.webkitMask=g;A.setAttribute("part","specular");g="url(#"+$APP.S.g($APP.k(a,"__xLiquidGlassMaskId"))+")";A.style.mask=g;A.style.webkitMask=g;C.setAttribute("part","content");C.appendChild(E);c.appendChild(d);c.appendChild(v);c.appendChild(e);
20
- c.appendChild(x);c.appendChild(y);c.appendChild(A);c.appendChild(C);a.setAttribute("data-entering","");setTimeout(function(){return a.removeAttribute("data-entering")},700);$APP.ja(a,"__xLiquidGlassRefs",$APP.zf([$APP.Ri,$APP.Il,l_,$APP.im,m_,n_,$APP.Ci,$APP.Zi,o_,$APP.Ek,p_,q_],[C,A,v,p,h,[],l,c,y,e,r,x]))},s_=function(a,b,c){var d=$APP.hn.g($APP.k(a,"__xLiquidGlassModel")),e=b/2,g=c/2,h=b*.32,l=c*.32,m=h*.55,p=l*.55;var r=h*.9;for(var v=l*.9,x=new Float64Array(d),y=new Float64Array(d),A=0;;)if(A<
21
- d){var C=2*Math.PI*(A/d);x[A]=e+r*Math.cos(C);y[A]=g+v*Math.sin(C);A+=1}else break;r=[x,y];v=$APP.M($APP.k(a,"__xLiquidGlassRefs"));v=$APP.D(v,p_);v.setAttribute("cx",""+$APP.S.g(e));v.setAttribute("cy",""+$APP.S.g(g));v.setAttribute("rx",""+$APP.S.g(h));v.setAttribute("ry",""+$APP.S.g(l));v=$APP.k(a,"__xLiquidGlassMaskCore");$APP.n(v)&&(v.setAttribute("cx",""+$APP.S.g(e)),v.setAttribute("cy",""+$APP.S.g(g)),v.setAttribute("rx",""+$APP.S.g(h)),v.setAttribute("ry",""+$APP.S.g(l)));b*=.44;c*=.44;h=
22
- $APP.k(a,"__xLiquidGlassBorderCore");$APP.n(h)&&(h.setAttribute("cx",""+$APP.S.g(e)),h.setAttribute("cy",""+$APP.S.g(g)),h.setAttribute("rx",""+$APP.S.g(b)),h.setAttribute("ry",""+$APP.S.g(c)));g=$APP.k(a,"__xLiquidGlassRefs");e=$APP.im.g(g);g=n_.g(g);c=$APP.k(a,"__xLiquidGlassMaskG");b=$APP.k(a,"__xLiquidGlassMaskSats");for(h=g.length-1;;)if(h>=d)e.removeChild(g[h]),$APP.n(c)&&c.removeChild(b[h]),--h;else break;g.length>d&&(g.length=d,$APP.n(b)&&(b.length=d));for(h=g.length;;)if(h<d)l=document.createElementNS("http://www.w3.org/2000/svg",
23
- "ellipse"),l.setAttribute("class","blob-sat-"+$APP.S.g(h)),l.setAttribute("fill","#ffffff"),e.appendChild(l),g.push(l),$APP.n(c)&&(l=document.createElementNS("http://www.w3.org/2000/svg","ellipse"),l.setAttribute("fill","white"),c.appendChild(l),b.push(l)),h+=1;else break;e=$APP.M($APP.k(a,"__xLiquidGlassRefs"));e=$APP.D(e,n_);g=$APP.k(a,"__xLiquidGlassMaskSats");for(c=0;;)if(c<d)b=e[c],b.setAttribute("rx",""+$APP.S.g(m)),b.setAttribute("ry",""+$APP.S.g(p)),$APP.n($APP.n(g)?c<g.length:g)&&(b=g[c],
24
- b.setAttribute("rx",""+$APP.S.g(m)),b.setAttribute("ry",""+$APP.S.g(p))),c+=1;else break;a.__xLiquidGlassRX=r[0];a.__xLiquidGlassRY=r[1]},u_=function(a){var b=$APP.k(a,"__xLiquidGlassModel"),c=$APP.k(a,"__xLiquidGlassRefs"),d=$APP.Ci.g(c),e=l_.g(c),g=$APP.Il.g(c),h=p_.g(c),l=$APP.im.g(c);d.setAttribute("stdDeviation",""+$APP.S.g(a_.g(b)));e.style.setProperty("--x-liquid-glass-blur",""+$APP.S.g($APP.Ci.g(b))+"px");h.setAttribute("fill","#ffffff");d=n_.g(c);e=d.length;for(h=0;;)if(h<e)d[h].setAttribute("fill",
25
- "#ffffff"),h+=1;else break;h=$APP.B.i(t_,$APP.Oj.g(b));d=$APP.Ri.g(c);c=q_.g(c);e="url(#"+$APP.S.g($APP.k(a,"__xLiquidGlassMaskId"))+")";if(h){d.style.position="relative";d.style.zIndex="0";h=$Z.g(b);var m=1-h*.5,p=h*.35,r=h*.2;d.style.filter="blur("+$APP.S.g((h*2).toFixed(1))+"px)";d.style.opacity=""+$APP.S.g(m.toFixed(2));d.style.mask=e;d.style.webkitMask=e;l.setAttribute("opacity",p.toFixed(2));$APP.n(c)&&(c.style.opacity=r.toFixed(2));a.style.contain="layout style"}else d.style.position="relative",
26
- d.style.zIndex="3",d.style.filter="",d.style.opacity="",d.style.mask="",d.style.webkitMask="",l.setAttribute("opacity","0.35"),$APP.n(c)&&(c.style.opacity="0.4"),a.style.contain="";$APP.n(e_.g(b))||(g.style.opacity="0")},v_=function(a,b){var c=$APP.k(a,"__xLiquidGlassModel"),d=$APP.hn.g(c),e=$APP.Yj.g(c);c=b_.g(c)*(Math.min($APP.k(a,"__xLiquidGlassW"),$APP.k(a,"__xLiquidGlassH"))*.32)*.6;var g=$APP.k(a,"__xLiquidGlassRX"),h=$APP.k(a,"__xLiquidGlassRY"),l=$APP.M($APP.k(a,"__xLiquidGlassRefs"));l=$APP.D(l,
27
- n_);a=$APP.k(a,"__xLiquidGlassMaskSats");for(var m=0;;)if(m<d){var p=m*2.39996;var r=[g[m]+c*h_(p,0,b*e),h[m]+c*h_(0,p,b*e)];p=r[0].toFixed(2);r=r[1].toFixed(2);var v=l[m];v.setAttribute("cx",p);v.setAttribute("cy",r);$APP.n($APP.n(a)?m<a.length:a)&&(v=a[m],v.setAttribute("cx",p),v.setAttribute("cy",r));m+=1}else break},w_=function(a){var b=$APP.k(a,"__xLiquidGlassModel"),c=$APP.Il.g($APP.k(a,"__xLiquidGlassRefs"));if($APP.n(e_.g(b))){var d=$APP.k(a,"__xLiquidGlassPA"),e=$APP.k(a,"__xLiquidGlassPX"),
28
- g=$APP.k(a,"__xLiquidGlassPY"),h=$APP.k(a,"__xLiquidGlassW");a=$APP.k(a,"__xLiquidGlassH");h=d_.g(b)*Math.min(h,a);a="var("+$APP.S.g("--x-liquid-glass-specular-color")+",rgba(255,255,255,0.6))";$APP.n(d)?(c.style.opacity=""+$APP.S.g(f_.g(b)),c.style.background="radial-gradient(ellipse "+$APP.S.g(h)+"px "+$APP.S.g(h)+"px at "+$APP.S.g(e.toFixed(1))+"px "+$APP.S.g(g.toFixed(1))+"px,"+$APP.S.g(a)+" 0%,transparent 100%)"):c.style.opacity="0"}},x_=function(a,b){var c=$APP.k(a,"__xLiquidGlassModel");a=
29
- o_.g($APP.k(a,"__xLiquidGlassRefs"));var d=$APP.yl.g(c);c=$APP.zl.g(c);var e=20+8*Math.cos(b*.09),g=70+12*Math.cos(b*.05),h=80+10*Math.sin(b*.06);a.style.background="radial-gradient(ellipse at "+$APP.S.g((30+10*Math.sin(b*.07)).toFixed(1))+"% "+$APP.S.g(e.toFixed(1))+"%,"+$APP.S.g(d)+" 0%,transparent 70%),radial-gradient(ellipse at "+$APP.S.g(g.toFixed(1))+"% "+$APP.S.g(h.toFixed(1))+"%,"+$APP.S.g(c)+" 0%,transparent 70%)"},z_=function(a){$APP.n($APP.k(a,"__xLiquidGlassRaf"))||($APP.ja(a,"__xLiquidGlassLF",
30
- performance.now()),$APP.ja(a,"__xLiquidGlassRaf",requestAnimationFrame(function(){return y_(a)})))},A_=function(a){var b=$APP.k(a,"__xLiquidGlassRaf");$APP.n(b)&&(cancelAnimationFrame(b),a.__xLiquidGlassRaf=null)},B_=function(a){var b=$APP.hn.g($APP.k(a,"__xLiquidGlassModel")),c=$APP.k(a,"__xLiquidGlassRX"),d=$APP.k(a,"__xLiquidGlassRY"),e=$APP.M($APP.k(a,"__xLiquidGlassRefs"));e=$APP.D(e,n_);a=$APP.k(a,"__xLiquidGlassMaskSats");for(var g=0;;)if(g<b){var h=c[g].toFixed(2),l=d[g].toFixed(2);if(g<e.length){var m=
31
- e[g];m.setAttribute("cx",h);m.setAttribute("cy",l)}$APP.n($APP.n(a)?g<a.length:a)&&(m=a[g],m.setAttribute("cx",h),m.setAttribute("cy",l));g+=1}else break},C_=function(a,b){if(b.length>0){var c=b[0].contentRect;b=c.width;c=c.height;if(b>0&&c>0){a.__xLiquidGlassW=b;a.__xLiquidGlassH=c;var d=$APP.M($APP.k(a,"__xLiquidGlassRefs"));d=$APP.D(d,$APP.Ek);d.setAttribute("viewBox","0 0 "+$APP.S.g(b)+" "+$APP.S.g(c));d=d.querySelector("#"+$APP.S.g($APP.k(a,"__xLiquidGlassMaskId")));$APP.n(d)&&(d.setAttribute("x",
32
- "0"),d.setAttribute("y","0"),d.setAttribute("width",""+$APP.S.g(b)),d.setAttribute("height",""+$APP.S.g(c)));s_(a,b,c);u_(a);var e=$APP.k(a,"__xLiquidGlassModel");$APP.n(function(){var g=$APP.X.g(e);return $APP.n(g)?g:k_()}())?B_(a):(v_(a,function(){var g=$APP.k(a,"__xLiquidGlassTime");return $APP.n(g)?g:0}()),z_(a))}}return null},D_=function(a){function b(){a.__xLiquidGlassPA=!1;return null}function c(){a.__xLiquidGlassPA=!0;return null}function d(e){var g=a.getBoundingClientRect();a.__xLiquidGlassPX=
33
- e.clientX-g.left;a.__xLiquidGlassPY=e.clientY-g.top;return null}$APP.ja(a,"__xLiquidGlassHdl",{move:d,enter:c,leave:b});a.addEventListener("pointermove",d,{passive:!0});a.addEventListener("pointerenter",c);a.addEventListener("pointerleave",b)},E_=function(a){var b=$APP.k(a,"__xLiquidGlassHdl");$APP.n(b)&&(a.removeEventListener("pointermove",$APP.k(b,"move")),a.removeEventListener("pointerenter",$APP.k(b,"enter")),a.removeEventListener("pointerleave",$APP.k(b,"leave")),a.__xLiquidGlassHdl=null)},F_=
34
- function(a){return g_($APP.zf([$APP.Pm,RZ,SZ,$APP.Pl,TZ,UZ,VZ,WZ,XZ,YZ,ZZ,$APP.wj,PZ,QZ],[a.getAttribute("blur"),a.getAttribute("blobs"),a.getAttribute("amplitude"),a.getAttribute("mode"),a.getAttribute("specular-intensity"),a.getAttribute("speed"),a.getAttribute("frost"),a.getAttribute("color-2"),a.getAttribute("color-1"),a.getAttribute("goo"),a.getAttribute("specular"),a.getAttribute("disabled"),a.getAttribute("specular-size"),a.getAttribute("tint")]))},G_=function(a){var b=F_(a);a.__xLiquidGlassModel=
35
- b;var c=$APP.k(a,"__xLiquidGlassW"),d=$APP.k(a,"__xLiquidGlassH");$APP.n($APP.n(c)?$APP.n(d)?c>0&&d>0:d:c)&&(s_(a,c,d),u_(a),$APP.n(function(){var e=$APP.X.g(b);return $APP.n(e)?e:k_()}())?(A_(a),B_(a)):(v_(a,function(){var e=$APP.k(a,"__xLiquidGlassTime");return $APP.n(e)?e:0}()),z_(a)))},H_=function(a){Object.defineProperty(a,"blobs",{get:function(){var b=this.getAttribute("blobs");return JZ(b)},set:function(b){return b==null?this.removeAttribute("blobs"):this.setAttribute("blobs",""+$APP.S.g(b))},
36
- enumerable:!0,configurable:!0});Object.defineProperty(a,"speed",{get:function(){var b=this.getAttribute("speed");return IZ(b,.3,.05,2)},set:function(b){return b==null?this.removeAttribute("speed"):this.setAttribute("speed",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"amplitude",{get:function(){var b=this.getAttribute("amplitude");return IZ(b,.15,.05,.4)},set:function(b){return b==null?this.removeAttribute("amplitude"):this.setAttribute("amplitude",""+$APP.S.g(b))},enumerable:!0,
37
- configurable:!0});Object.defineProperty(a,"blur",{get:function(){var b=this.getAttribute("blur");return IZ(b,12,0,40)},set:function(b){return b==null?this.removeAttribute("blur"):this.setAttribute("blur",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"goo",{get:function(){var b=this.getAttribute("goo");return IZ(b,10,4,20)},set:function(b){return b==null?this.removeAttribute("goo"):this.setAttribute("goo",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,
38
- "tint",{get:function(){return this.getAttribute("tint")},set:function(b){return b==null?this.removeAttribute("tint"):this.setAttribute("tint",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"specular",{get:function(){return this.hasAttribute("specular")},set:function(b){return $APP.n(b)?this.setAttribute("specular",""):this.removeAttribute("specular")},enumerable:!0,configurable:!0});Object.defineProperty(a,"specularSize",{get:function(){var b=this.getAttribute("specular-size");
39
- return IZ(b,.4,.1,1)},set:function(b){return b==null?this.removeAttribute("specular-size"):this.setAttribute("specular-size",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"specularIntensity",{get:function(){var b=this.getAttribute("specular-intensity");return IZ(b,.3,0,1)},set:function(b){return b==null?this.removeAttribute("specular-intensity"):this.setAttribute("specular-intensity",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},
40
- set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"mode",{get:function(){var b=this.getAttribute("mode");return $APP.B.i(b,"submerged")?"submerged":"surface"},set:function(b){return b==null?this.removeAttribute("mode"):this.setAttribute("mode",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"frost",{get:function(){var b=this.getAttribute("frost");return IZ(b,.5,0,1)},
41
- set:function(b){return b==null?this.removeAttribute("frost"):this.setAttribute("frost",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"color1",{get:function(){return this.getAttribute("color-1")},set:function(b){return b==null?this.removeAttribute("color-1"):this.setAttribute("color-1",""+$APP.S.g(b))},enumerable:!0,configurable:!0});return Object.defineProperty(a,"color2",{get:function(){return this.getAttribute("color-2")},set:function(b){return b==null?this.removeAttribute("color-2"):
42
- this.setAttribute("color-2",""+$APP.S.g(b))},enumerable:!0,configurable:!0})},I_=function(a){var b=F_(a);a.__xLiquidGlassModel=b;a.__xLiquidGlassTime=0;a.__xLiquidGlassPA=!1;a.__xLiquidGlassPX=0;a.__xLiquidGlassPY=0;a.__xLiquidGlassGT=0;$APP.n($APP.k(a,"__xLiquidGlassRefs"))||r_(a);u_(a);b=new ResizeObserver(function(c){return C_(a,c)});a.__xLiquidGlassRO=b;b.observe(a);E_(a);D_(a);return null},J_=function(a){A_(a);E_(a);var b=$APP.k(a,"__xLiquidGlassRO");$APP.n(b)&&(b.disconnect(),a.__xLiquidGlassRO=
43
- null);return null},K_=function(a,b,c,d){$APP.N(c,d)&&$APP.n($APP.k(a,"__xLiquidGlassRefs"))&&G_(a);return null},M_=function(){return $APP.Lg("x-liquid-glass",new $APP.Q(null,5,[$APP.Cg,L_,$APP.Dg,I_,$APP.Eg,J_,$APP.Fg,K_,$APP.Jg,H_],null))},NZ=new $APP.K(null,"surface","surface",699915646),p_=new $APP.K(null,"core","core",-86019209),f_=new $APP.K(null,"specular-intensity","specular-intensity",437849876),SZ=new $APP.K(null,"amplitude-raw","amplitude-raw",-673525115),a_=new $APP.K(null,"goo","goo",
44
- -1253057564),l_=new $APP.K(null,"glass","glass",1652756718),m_=new $APP.K(null,"filter","filter",-948537934),$Z=new $APP.K(null,"frost","frost",-3478780),d_=new $APP.K(null,"specular-size","specular-size",757318993),t_=new $APP.K(null,"submerged","submerged",1636004473),c_=new $APP.K(null,"tint","tint",-1286736913),q_=new $APP.K(null,"grain","grain",2007662171),QZ=new $APP.K(null,"tint-raw","tint-raw",-653441954),WZ=new $APP.K(null,"color-2-raw","color-2-raw",-1440423537),ZZ=new $APP.K(null,"specular-attr",
45
- "specular-attr",-716021610),TZ=new $APP.K(null,"specular-intensity-raw","specular-intensity-raw",109079177),UZ=new $APP.K(null,"speed-raw","speed-raw",1756460778),YZ=new $APP.K(null,"goo-raw","goo-raw",59658675),PZ=new $APP.K(null,"specular-size-raw","specular-size-raw",592980345),XZ=new $APP.K(null,"color-1-raw","color-1-raw",-1322552111),b_=new $APP.K(null,"amplitude","amplitude",-1387734203),o_=new $APP.K(null,"gradient","gradient",-1983908971),VZ=new $APP.K(null,"frost-raw","frost-raw",1383732749),
46
- e_=new $APP.K(null,"specular?","specular?",964138290),RZ=new $APP.K(null,"blobs-raw","blobs-raw",1729393761),n_=new $APP.K(null,"satellites","satellites",644765266);var L_="blobs speed amplitude blur goo tint specular specular-size specular-intensity disabled mode frost color-1 color-2".split(" ");
47
- $APP.zf([$Z,a_,b_,new $APP.K(null,"specularSize","specularSize",-1757715579),$APP.kk,$APP.Yj,$APP.Oj,$APP.Il,c_,new $APP.K(null,"color2","color2",1248091856),$APP.Ci,$APP.hn,new $APP.K(null,"color1","color1",306558619),new $APP.K(null,"specularIntensity","specularIntensity",138075)],[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),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.uk],null),new $APP.Q(null,
48
- 1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.uk],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],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.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null)]);var MZ=new $APP.Q(null,2,["surface",NZ,"submerged",t_],null);var i_={v:0},y_=function y_(a){if($APP.n(a.isConnected)){var c=performance.now(),d=$APP.k(a,"__xLiquidGlassTime")+Math.min(c-$APP.k(a,"__xLiquidGlassLF"),100)/1E3;a.__xLiquidGlassLF=c;a.__xLiquidGlassTime=d;v_(a,d);w_(a);x_(a,d);$APP.ja(a,"__xLiquidGlassRaf",requestAnimationFrame(function(){return y_.g?y_.g(a):y_.call(null,a)}))}return null};$APP.ha("baredom.exports.x_liquid_glass.init",M_);export const init=M_;
2
+ var $0=function(a,b,c,d){if(typeof a==="string"){a=a.trim();if($APP.B.i(a,""))return b;a=parseFloat(a);return $APP.n(isNaN(a))?b:Math.min(d,Math.max(c,a))}return b},a1=function(a){if(typeof a==="string"){a=a.trim();if($APP.B.i(a,""))return 5;a=parseInt(a,10);return $APP.n(isNaN(a))?5:Math.min(8,Math.max(3,a))}return 5},b1=function(a){return typeof a==="string"?(a=a.trim(),$APP.M(a,"")?a:null):null},c1=function(a){return typeof a==="string"?(a=a.trim(),$APP.M(a,"")?a:null):null},f1=function(a){a=$APP.C(d1,
3
+ typeof a==="string"?a.trim().toLowerCase():null);return $APP.n(a)?a:e1},x1=function(a){var b=$APP.J(a);a=$APP.C(b,$APP.mk);var c=$APP.C(b,g1),d=$APP.C(b,h1),e=$APP.C(b,$APP.Kn),f=$APP.C(b,i1),h=$APP.C(b,j1),l=$APP.C(b,$APP.Jm),m=$APP.C(b,k1),q=$APP.C(b,$APP.pm),r=$APP.C(b,l1),v=$APP.C(b,m1),x=$APP.C(b,n1),y=$APP.C(b,o1);b=$APP.C(b,p1);return $APP.Lf([q1,r1,s1,$APP.Sk,$APP.Jk,t1,u1,v1,$APP.tm,$APP.wj,$APP.sm,$APP.co,w1,$APP.Y],[$0(r,.5,0,1),$0(y,10,4,20),$0(h,.15,.05,.4),$0(q,.3,.05,2),f1(l),b1(d),
4
+ $0(c,.4,.1,1),b!=null,function(){var A=c1(v);return $APP.n(A)?A:"rgba(244,114,182,0.35)"}(),$0(e,12,0,40),function(){var A=c1(x);return $APP.n(A)?A:"rgba(99,102,241,0.4)"}(),a1(f),$0(m,.3,0,1),a!=null])},y1=function(a,b,c){return Math.sin(a*1.7+c*.3)*Math.cos(b*2.3+c*.5)*.5+Math.sin(a*3.1-c*.7)*Math.cos(b*1.3+c*.2)*.25+Math.sin(a*5.3+c*.4)*Math.cos(b*4.7-c*.6)*.125},A1=function(){var a=$APP.k(z1,"v");z1.v=a+1;return a},B1=function(){return $APP.E(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},
5
+ I1=function(a){var b=A1(),c=a.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElementNS("http://www.w3.org/2000/svg","svg"),f=document.createElementNS("http://www.w3.org/2000/svg","defs"),h=document.createElementNS("http://www.w3.org/2000/svg","filter"),l=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),m=document.createElementNS("http://www.w3.org/2000/svg","feColorMatrix"),q=document.createElementNS("http://www.w3.org/2000/svg","g"),r=document.createElementNS("http://www.w3.org/2000/svg",
6
+ "ellipse"),v=document.createElement("div"),x=document.createElement("div"),y=document.createElement("div"),A=document.createElement("div"),D=document.createElement("div"),G=document.createElement("slot"),I="lg-goo-"+$APP.Q.g(b);a.__xLiquidGlassUID=b;d.textContent=":host{display:block;position:relative;isolation:isolate;min-width:120px;min-height:80px;"+$APP.Q.g("--x-liquid-glass-padding")+":1.5rem;"+$APP.Q.g("--x-liquid-glass-specular-color")+":rgba(255,255,255,0.6);"+$APP.Q.g("--x-liquid-glass-spring")+
7
+ ":"+$APP.Q.g("linear(0, 0.006, 0.025, 0.058, 0.104, 0.163, 0.234, 0.315, 0.403, 0.496, 0.591, 0.685, 0.774, 0.856, 0.926, 0.983, 1.025, 1.052, 1.065, 1.063, 1.049, 1.025, 0.995, 0.961, 0.927, 0.896, 0.870, 0.850, 0.837, 0.831, 0.832, 0.839, 0.851, 0.867, 0.885, 0.903, 0.921, 0.937, 0.951, 0.962, 0.970, 0.976, 0.979, 0.981, 0.981, 0.980, 0.979, 0.977, 0.976, 0.975, 0.975, 0.976, 0.977, 0.979, 0.981, 0.983, 0.986, 0.989, 0.992, 0.995, 0.998, 1)")+";"+$APP.Q.g("--x-liquid-glass-spring-duration")+":"+
8
+ $APP.Q.g("600ms")+";}[part\x3dsvg]{display:block;width:100%;height:100%;position:absolute;inset:0;overflow:visible;pointer-events:none;z-index:1;}[part\x3dglass]{position:absolute;inset:0;backdrop-filter:blur(var("+$APP.Q.g("--x-liquid-glass-blur")+",12px)) saturate(180%);-webkit-backdrop-filter:blur(var("+$APP.Q.g("--x-liquid-glass-blur")+",12px)) saturate(180%);z-index:0;}[part\x3dgrain]{position:absolute;inset:0;z-index:2;opacity:0.4;pointer-events:none;}[part\x3dgradient]{position:absolute;inset:0;z-index:1;pointer-events:none;}[part\x3dspecular]{position:absolute;inset:0;z-index:1;opacity:0;pointer-events:none;transition:background var("+
9
+ $APP.Q.g("--x-liquid-glass-spring-duration")+","+$APP.Q.g("600ms")+") var("+$APP.Q.g("--x-liquid-glass-spring")+","+$APP.Q.g("linear(0, 0.006, 0.025, 0.058, 0.104, 0.163, 0.234, 0.315, 0.403, 0.496, 0.591, 0.685, 0.774, 0.856, 0.926, 0.983, 1.025, 1.052, 1.065, 1.063, 1.049, 1.025, 0.995, 0.961, 0.927, 0.896, 0.870, 0.850, 0.837, 0.831, 0.832, 0.839, 0.851, 0.867, 0.885, 0.903, 0.921, 0.937, 0.951, 0.962, 0.970, 0.976, 0.979, 0.981, 0.981, 0.980, 0.979, 0.977, 0.976, 0.975, 0.975, 0.976, 0.977, 0.979, 0.981, 0.983, 0.986, 0.989, 0.992, 0.995, 0.998, 1)")+
10
+ "),opacity var("+$APP.Q.g("--x-liquid-glass-spring-duration")+","+$APP.Q.g("600ms")+") var("+$APP.Q.g("--x-liquid-glass-spring")+","+$APP.Q.g("linear(0, 0.006, 0.025, 0.058, 0.104, 0.163, 0.234, 0.315, 0.403, 0.496, 0.591, 0.685, 0.774, 0.856, 0.926, 0.983, 1.025, 1.052, 1.065, 1.063, 1.049, 1.025, 0.995, 0.961, 0.927, 0.896, 0.870, 0.850, 0.837, 0.831, 0.832, 0.839, 0.851, 0.867, 0.885, 0.903, 0.921, 0.937, 0.951, 0.962, 0.970, 0.976, 0.979, 0.981, 0.981, 0.980, 0.979, 0.977, 0.976, 0.975, 0.975, 0.976, 0.977, 0.979, 0.981, 0.983, 0.986, 0.989, 0.992, 0.995, 0.998, 1)")+
11
+ ");}[part\x3dcontent]{position:relative;padding:var("+$APP.Q.g("--x-liquid-glass-padding")+",1.5rem);z-index:3;}@keyframes lg-enter{from{opacity:0;transform:scale(0.92);}to{opacity:1;transform:scale(1);}}:host([data-entering]) [part\x3dglass],:host([data-entering]) [part\x3dsvg]{animation:lg-enter var("+$APP.Q.g("--x-liquid-glass-spring-duration")+","+$APP.Q.g("600ms")+") var("+$APP.Q.g("--x-liquid-glass-spring")+","+$APP.Q.g("linear(0, 0.006, 0.025, 0.058, 0.104, 0.163, 0.234, 0.315, 0.403, 0.496, 0.591, 0.685, 0.774, 0.856, 0.926, 0.983, 1.025, 1.052, 1.065, 1.063, 1.049, 1.025, 0.995, 0.961, 0.927, 0.896, 0.870, 0.850, 0.837, 0.831, 0.832, 0.839, 0.851, 0.867, 0.885, 0.903, 0.921, 0.937, 0.951, 0.962, 0.970, 0.976, 0.979, 0.981, 0.981, 0.980, 0.979, 0.977, 0.976, 0.975, 0.975, 0.976, 0.977, 0.979, 0.981, 0.983, 0.986, 0.989, 0.992, 0.995, 0.998, 1)")+
12
+ ") both;}@media(prefers-color-scheme:dark){:host{"+$APP.Q.g("--x-liquid-glass-specular-color")+":rgba(255,255,255,0.3);}}@media(prefers-reduced-motion:reduce){:host([data-entering]) [part\x3dglass],:host([data-entering]) [part\x3dsvg]{animation:none;}[part\x3dspecular]{transition:none!important;}}";e.setAttribute("part","svg");e.setAttribute("viewBox","0 0 300 200");e.setAttribute("preserveAspectRatio","none");e.setAttribute("aria-hidden","true");h.setAttribute("id",I);l.setAttribute("in","SourceGraphic");
13
+ l.setAttribute("stdDeviation","10");l.setAttribute("result","blur");m.setAttribute("in","blur");m.setAttribute("mode","matrix");m.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 19 -9");h.appendChild(l);h.appendChild(m);f.appendChild(h);e.appendChild(f);q.setAttribute("filter","url(#"+$APP.Q.g(I)+")");q.setAttribute("opacity","0.35");r.setAttribute("class","blob-core");q.appendChild(r);e.appendChild(q);m=document.createElementNS("http://www.w3.org/2000/svg","linearGradient");var H="lg-edge-"+
14
+ $APP.Q.g(b),K=document.createElementNS("http://www.w3.org/2000/svg","stop"),W=document.createElementNS("http://www.w3.org/2000/svg","stop"),ea=document.createElementNS("http://www.w3.org/2000/svg","stop");m.setAttribute("id",H);m.setAttribute("x1","0");m.setAttribute("y1","0");m.setAttribute("x2","1");m.setAttribute("y2","1");K.setAttribute("offset","0%");K.setAttribute("stop-color","white");K.setAttribute("stop-opacity","0.9");W.setAttribute("offset","50%");W.setAttribute("stop-color","white");W.setAttribute("stop-opacity",
15
+ "0.15");ea.setAttribute("offset","100%");ea.setAttribute("stop-color","white");ea.setAttribute("stop-opacity","0.5");m.appendChild(K);m.appendChild(W);m.appendChild(ea);f.appendChild(m);a.__xLiquidGlassEdgeId=H;m=document.createElementNS("http://www.w3.org/2000/svg","g");H=document.createElementNS("http://www.w3.org/2000/svg","ellipse");K=$APP.k(a,"__xLiquidGlassEdgeId");m.setAttribute("filter","url(#"+$APP.Q.g(I)+")");m.setAttribute("opacity","0.7");H.setAttribute("class","blob-border");H.setAttribute("fill",
16
+ "none");H.setAttribute("stroke","url(#"+$APP.Q.g(K)+")");H.setAttribute("stroke-width","2.5");m.appendChild(H);e.appendChild(m);a.__xLiquidGlassBorderG=m;a.__xLiquidGlassBorderCore=H;m=document.createElementNS("http://www.w3.org/2000/svg","filter");H="lg-grain-"+$APP.Q.g(b);K=document.createElementNS("http://www.w3.org/2000/svg","feTurbulence");W=document.createElementNS("http://www.w3.org/2000/svg","feColorMatrix");m.setAttribute("id",H);K.setAttribute("type","fractalNoise");K.setAttribute("baseFrequency",
17
+ "0.6");K.setAttribute("numOctaves","3");K.setAttribute("stitchTiles","stitch");W.setAttribute("type","matrix");W.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0");m.appendChild(K);m.appendChild(W);f.appendChild(m);a.__xLiquidGlassGrainId=H;m=document.createElementNS("http://www.w3.org/2000/svg","mask");b="lg-mask-"+$APP.Q.g(b);H=document.createElementNS("http://www.w3.org/2000/svg","g");K=document.createElementNS("http://www.w3.org/2000/svg","ellipse");m.setAttribute("id",b);
18
+ m.setAttribute("maskUnits","userSpaceOnUse");m.setAttribute("maskContentUnits","userSpaceOnUse");H.setAttribute("filter","url(#"+$APP.Q.g(I)+")");K.setAttribute("fill","white");H.appendChild(K);m.appendChild(H);f.appendChild(m);a.__xLiquidGlassMaskG=H;a.__xLiquidGlassMaskCore=K;$APP.fa(a,"__xLiquidGlassMaskSats",[]);a.__xLiquidGlassMaskId=b;v.setAttribute("part","glass");f="url(#"+$APP.Q.g($APP.k(a,"__xLiquidGlassMaskId"))+")";v.style.mask=f;v.style.webkitMask=f;x.setAttribute("part","grain");x.style.filter=
19
+ "url(#"+$APP.Q.g($APP.k(a,"__xLiquidGlassGrainId"))+")";f="url(#"+$APP.Q.g($APP.k(a,"__xLiquidGlassMaskId"))+")";x.style.mask=f;x.style.webkitMask=f;y.setAttribute("part","gradient");f="url(#"+$APP.Q.g($APP.k(a,"__xLiquidGlassMaskId"))+")";y.style.mask=f;y.style.webkitMask=f;A.setAttribute("part","specular");f="url(#"+$APP.Q.g($APP.k(a,"__xLiquidGlassMaskId"))+")";A.style.mask=f;A.style.webkitMask=f;D.setAttribute("part","content");D.appendChild(G);c.appendChild(d);c.appendChild(v);c.appendChild(e);
20
+ c.appendChild(x);c.appendChild(y);c.appendChild(A);c.appendChild(D);a.setAttribute("data-entering","");setTimeout(function(){return a.removeAttribute("data-entering")},700);$APP.fa(a,"__xLiquidGlassRefs",$APP.Lf([$APP.Ij,$APP.Bm,C1,$APP.hn,D1,E1,$APP.wj,$APP.Uh,F1,$APP.tl,G1,H1],[D,A,v,q,h,[],l,c,y,e,r,x]))},J1=function(a,b,c){var d=$APP.co.g($APP.k(a,"__xLiquidGlassModel")),e=b/2,f=c/2,h=b*.32,l=c*.32,m=h*.55,q=l*.55;var r=h*.9;for(var v=l*.9,x=new Float64Array(d),y=new Float64Array(d),A=0;;)if(A<
21
+ d){var D=2*Math.PI*(A/d);x[A]=e+r*Math.cos(D);y[A]=f+v*Math.sin(D);A+=1}else break;r=[x,y];v=$APP.J($APP.k(a,"__xLiquidGlassRefs"));v=$APP.C(v,G1);v.setAttribute("cx",""+$APP.Q.g(e));v.setAttribute("cy",""+$APP.Q.g(f));v.setAttribute("rx",""+$APP.Q.g(h));v.setAttribute("ry",""+$APP.Q.g(l));v=$APP.k(a,"__xLiquidGlassMaskCore");$APP.n(v)&&(v.setAttribute("cx",""+$APP.Q.g(e)),v.setAttribute("cy",""+$APP.Q.g(f)),v.setAttribute("rx",""+$APP.Q.g(h)),v.setAttribute("ry",""+$APP.Q.g(l)));b*=.44;c*=.44;h=
22
+ $APP.k(a,"__xLiquidGlassBorderCore");$APP.n(h)&&(h.setAttribute("cx",""+$APP.Q.g(e)),h.setAttribute("cy",""+$APP.Q.g(f)),h.setAttribute("rx",""+$APP.Q.g(b)),h.setAttribute("ry",""+$APP.Q.g(c)));f=$APP.k(a,"__xLiquidGlassRefs");e=$APP.hn.g(f);f=E1.g(f);c=$APP.k(a,"__xLiquidGlassMaskG");b=$APP.k(a,"__xLiquidGlassMaskSats");for(h=f.length-1;;)if(h>=d)e.removeChild(f[h]),$APP.n(c)&&c.removeChild(b[h]),--h;else break;f.length>d&&(f.length=d,$APP.n(b)&&(b.length=d));for(h=f.length;;)if(h<d)l=document.createElementNS("http://www.w3.org/2000/svg",
23
+ "ellipse"),l.setAttribute("class","blob-sat-"+$APP.Q.g(h)),l.setAttribute("fill","#ffffff"),e.appendChild(l),f.push(l),$APP.n(c)&&(l=document.createElementNS("http://www.w3.org/2000/svg","ellipse"),l.setAttribute("fill","white"),c.appendChild(l),b.push(l)),h+=1;else break;e=$APP.J($APP.k(a,"__xLiquidGlassRefs"));e=$APP.C(e,E1);f=$APP.k(a,"__xLiquidGlassMaskSats");for(c=0;;)if(c<d)b=e[c],b.setAttribute("rx",""+$APP.Q.g(m)),b.setAttribute("ry",""+$APP.Q.g(q)),$APP.n($APP.n(f)?c<f.length:f)&&(b=f[c],
24
+ b.setAttribute("rx",""+$APP.Q.g(m)),b.setAttribute("ry",""+$APP.Q.g(q))),c+=1;else break;a.__xLiquidGlassRX=r[0];a.__xLiquidGlassRY=r[1]},L1=function(a){var b=$APP.k(a,"__xLiquidGlassModel"),c=$APP.k(a,"__xLiquidGlassRefs"),d=$APP.wj.g(c),e=C1.g(c),f=$APP.Bm.g(c),h=G1.g(c),l=$APP.hn.g(c);d.setAttribute("stdDeviation",""+$APP.Q.g(r1.g(b)));e.style.setProperty("--x-liquid-glass-blur",""+$APP.Q.g($APP.wj.g(b))+"px");h.setAttribute("fill","#ffffff");d=E1.g(c);e=d.length;for(h=0;;)if(h<e)d[h].setAttribute("fill",
25
+ "#ffffff"),h+=1;else break;h=$APP.B.i(K1,$APP.Jk.g(b));d=$APP.Ij.g(c);c=H1.g(c);e="url(#"+$APP.Q.g($APP.k(a,"__xLiquidGlassMaskId"))+")";if(h){d.style.position="relative";d.style.zIndex="0";h=q1.g(b);var m=1-h*.5,q=h*.35,r=h*.2;d.style.filter="blur("+$APP.Q.g((h*2).toFixed(1))+"px)";d.style.opacity=""+$APP.Q.g(m.toFixed(2));d.style.mask=e;d.style.webkitMask=e;l.setAttribute("opacity",q.toFixed(2));$APP.n(c)&&(c.style.opacity=r.toFixed(2));a.style.contain="layout style"}else d.style.position="relative",
26
+ d.style.zIndex="3",d.style.filter="",d.style.opacity="",d.style.mask="",d.style.webkitMask="",l.setAttribute("opacity","0.35"),$APP.n(c)&&(c.style.opacity="0.4"),a.style.contain="";$APP.n(v1.g(b))||(f.style.opacity="0")},M1=function(a,b){var c=$APP.k(a,"__xLiquidGlassModel"),d=$APP.co.g(c),e=$APP.Sk.g(c);c=s1.g(c)*(Math.min($APP.k(a,"__xLiquidGlassW"),$APP.k(a,"__xLiquidGlassH"))*.32)*.6;var f=$APP.k(a,"__xLiquidGlassRX"),h=$APP.k(a,"__xLiquidGlassRY"),l=$APP.J($APP.k(a,"__xLiquidGlassRefs"));l=$APP.C(l,
27
+ E1);a=$APP.k(a,"__xLiquidGlassMaskSats");for(var m=0;;)if(m<d){var q=m*2.39996;var r=[f[m]+c*y1(q,0,b*e),h[m]+c*y1(0,q,b*e)];q=r[0].toFixed(2);r=r[1].toFixed(2);var v=l[m];v.setAttribute("cx",q);v.setAttribute("cy",r);$APP.n($APP.n(a)?m<a.length:a)&&(v=a[m],v.setAttribute("cx",q),v.setAttribute("cy",r));m+=1}else break},N1=function(a){var b=$APP.k(a,"__xLiquidGlassModel"),c=$APP.Bm.g($APP.k(a,"__xLiquidGlassRefs"));if($APP.n(v1.g(b))){var d=$APP.k(a,"__xLiquidGlassPA"),e=$APP.k(a,"__xLiquidGlassPX"),
28
+ f=$APP.k(a,"__xLiquidGlassPY"),h=$APP.k(a,"__xLiquidGlassW");a=$APP.k(a,"__xLiquidGlassH");h=u1.g(b)*Math.min(h,a);a="var("+$APP.Q.g("--x-liquid-glass-specular-color")+",rgba(255,255,255,0.6))";$APP.n(d)?(c.style.opacity=""+$APP.Q.g(w1.g(b)),c.style.background="radial-gradient(ellipse "+$APP.Q.g(h)+"px "+$APP.Q.g(h)+"px at "+$APP.Q.g(e.toFixed(1))+"px "+$APP.Q.g(f.toFixed(1))+"px,"+$APP.Q.g(a)+" 0%,transparent 100%)"):c.style.opacity="0"}},O1=function(a,b){var c=$APP.k(a,"__xLiquidGlassModel");a=
29
+ F1.g($APP.k(a,"__xLiquidGlassRefs"));var d=$APP.sm.g(c);c=$APP.tm.g(c);var e=20+8*Math.cos(b*.09),f=70+12*Math.cos(b*.05),h=80+10*Math.sin(b*.06);a.style.background="radial-gradient(ellipse at "+$APP.Q.g((30+10*Math.sin(b*.07)).toFixed(1))+"% "+$APP.Q.g(e.toFixed(1))+"%,"+$APP.Q.g(d)+" 0%,transparent 70%),radial-gradient(ellipse at "+$APP.Q.g(f.toFixed(1))+"% "+$APP.Q.g(h.toFixed(1))+"%,"+$APP.Q.g(c)+" 0%,transparent 70%)"},Q1=function(a){$APP.n($APP.k(a,"__xLiquidGlassRaf"))||($APP.fa(a,"__xLiquidGlassLF",
30
+ performance.now()),$APP.fa(a,"__xLiquidGlassRaf",requestAnimationFrame(function(){return P1(a)})))},R1=function(a){var b=$APP.k(a,"__xLiquidGlassRaf");$APP.n(b)&&(cancelAnimationFrame(b),a.__xLiquidGlassRaf=null)},S1=function(a){var b=$APP.co.g($APP.k(a,"__xLiquidGlassModel")),c=$APP.k(a,"__xLiquidGlassRX"),d=$APP.k(a,"__xLiquidGlassRY"),e=$APP.J($APP.k(a,"__xLiquidGlassRefs"));e=$APP.C(e,E1);a=$APP.k(a,"__xLiquidGlassMaskSats");for(var f=0;;)if(f<b){var h=c[f].toFixed(2),l=d[f].toFixed(2);if(f<e.length){var m=
31
+ e[f];m.setAttribute("cx",h);m.setAttribute("cy",l)}$APP.n($APP.n(a)?f<a.length:a)&&(m=a[f],m.setAttribute("cx",h),m.setAttribute("cy",l));f+=1}else break},T1=function(a,b){if(b.length>0){var c=b[0].contentRect;b=c.width;c=c.height;if(b>0&&c>0){a.__xLiquidGlassW=b;a.__xLiquidGlassH=c;var d=$APP.J($APP.k(a,"__xLiquidGlassRefs"));d=$APP.C(d,$APP.tl);d.setAttribute("viewBox","0 0 "+$APP.Q.g(b)+" "+$APP.Q.g(c));d=d.querySelector("#"+$APP.Q.g($APP.k(a,"__xLiquidGlassMaskId")));$APP.n(d)&&(d.setAttribute("x",
32
+ "0"),d.setAttribute("y","0"),d.setAttribute("width",""+$APP.Q.g(b)),d.setAttribute("height",""+$APP.Q.g(c)));J1(a,b,c);L1(a);var e=$APP.k(a,"__xLiquidGlassModel");$APP.n(function(){var f=$APP.Y.g(e);return $APP.n(f)?f:B1()}())?S1(a):(M1(a,function(){var f=$APP.k(a,"__xLiquidGlassTime");return $APP.n(f)?f:0}()),Q1(a))}}return null},U1=function(a){function b(){a.__xLiquidGlassPA=!1;return null}function c(){a.__xLiquidGlassPA=!0;return null}function d(e){var f=a.getBoundingClientRect();a.__xLiquidGlassPX=
33
+ e.clientX-f.left;a.__xLiquidGlassPY=e.clientY-f.top;return null}$APP.fa(a,"__xLiquidGlassHdl",{move:d,enter:c,leave:b});a.addEventListener("pointermove",d,{passive:!0});a.addEventListener("pointerenter",c);a.addEventListener("pointerleave",b)},V1=function(a){var b=$APP.k(a,"__xLiquidGlassHdl");$APP.n(b)&&(a.removeEventListener("pointermove",$APP.k(b,"move")),a.removeEventListener("pointerenter",$APP.k(b,"enter")),a.removeEventListener("pointerleave",$APP.k(b,"leave")),a.__xLiquidGlassHdl=null)},W1=
34
+ function(a){return x1($APP.Lf([$APP.Kn,i1,j1,$APP.Jm,k1,$APP.pm,l1,m1,n1,o1,p1,$APP.mk,g1,h1],[a.getAttribute("blur"),a.getAttribute("blobs"),a.getAttribute("amplitude"),a.getAttribute("mode"),a.getAttribute("specular-intensity"),a.getAttribute("speed"),a.getAttribute("frost"),a.getAttribute("color-2"),a.getAttribute("color-1"),a.getAttribute("goo"),a.getAttribute("specular"),a.getAttribute("disabled"),a.getAttribute("specular-size"),a.getAttribute("tint")]))},X1=function(a){var b=W1(a);a.__xLiquidGlassModel=
35
+ b;var c=$APP.k(a,"__xLiquidGlassW"),d=$APP.k(a,"__xLiquidGlassH");$APP.n($APP.n(c)?$APP.n(d)?c>0&&d>0:d:c)&&(J1(a,c,d),L1(a),$APP.n(function(){var e=$APP.Y.g(b);return $APP.n(e)?e:B1()}())?(R1(a),S1(a)):(M1(a,function(){var e=$APP.k(a,"__xLiquidGlassTime");return $APP.n(e)?e:0}()),Q1(a)))},Y1=function(a){Object.defineProperty(a,"blobs",{get:function(){var b=this.getAttribute("blobs");return a1(b)},set:function(b){return b==null?this.removeAttribute("blobs"):this.setAttribute("blobs",""+$APP.Q.g(b))},
36
+ enumerable:!0,configurable:!0});Object.defineProperty(a,"speed",{get:function(){var b=this.getAttribute("speed");return $0(b,.3,.05,2)},set:function(b){return b==null?this.removeAttribute("speed"):this.setAttribute("speed",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"amplitude",{get:function(){var b=this.getAttribute("amplitude");return $0(b,.15,.05,.4)},set:function(b){return b==null?this.removeAttribute("amplitude"):this.setAttribute("amplitude",""+$APP.Q.g(b))},enumerable:!0,
37
+ configurable:!0});Object.defineProperty(a,"blur",{get:function(){var b=this.getAttribute("blur");return $0(b,12,0,40)},set:function(b){return b==null?this.removeAttribute("blur"):this.setAttribute("blur",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"goo",{get:function(){var b=this.getAttribute("goo");return $0(b,10,4,20)},set:function(b){return b==null?this.removeAttribute("goo"):this.setAttribute("goo",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,
38
+ "tint",{get:function(){return this.getAttribute("tint")},set:function(b){return b==null?this.removeAttribute("tint"):this.setAttribute("tint",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"specular",{get:function(){return this.hasAttribute("specular")},set:function(b){return $APP.n(b)?this.setAttribute("specular",""):this.removeAttribute("specular")},enumerable:!0,configurable:!0});Object.defineProperty(a,"specularSize",{get:function(){var b=this.getAttribute("specular-size");
39
+ return $0(b,.4,.1,1)},set:function(b){return b==null?this.removeAttribute("specular-size"):this.setAttribute("specular-size",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"specularIntensity",{get:function(){var b=this.getAttribute("specular-intensity");return $0(b,.3,0,1)},set:function(b){return b==null?this.removeAttribute("specular-intensity"):this.setAttribute("specular-intensity",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},
40
+ set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"mode",{get:function(){var b=this.getAttribute("mode");return $APP.B.i(b,"submerged")?"submerged":"surface"},set:function(b){return b==null?this.removeAttribute("mode"):this.setAttribute("mode",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"frost",{get:function(){var b=this.getAttribute("frost");return $0(b,.5,0,1)},
41
+ set:function(b){return b==null?this.removeAttribute("frost"):this.setAttribute("frost",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"color1",{get:function(){return this.getAttribute("color-1")},set:function(b){return b==null?this.removeAttribute("color-1"):this.setAttribute("color-1",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});return Object.defineProperty(a,"color2",{get:function(){return this.getAttribute("color-2")},set:function(b){return b==null?this.removeAttribute("color-2"):
42
+ this.setAttribute("color-2",""+$APP.Q.g(b))},enumerable:!0,configurable:!0})},Z1=function(a){var b=W1(a);a.__xLiquidGlassModel=b;a.__xLiquidGlassTime=0;a.__xLiquidGlassPA=!1;a.__xLiquidGlassPX=0;a.__xLiquidGlassPY=0;a.__xLiquidGlassGT=0;$APP.n($APP.k(a,"__xLiquidGlassRefs"))||I1(a);L1(a);b=new ResizeObserver(function(c){return T1(a,c)});a.__xLiquidGlassRO=b;b.observe(a);V1(a);U1(a);return null},$1=function(a){R1(a);V1(a);var b=$APP.k(a,"__xLiquidGlassRO");$APP.n(b)&&(b.disconnect(),a.__xLiquidGlassRO=
43
+ null);return null},a2=function(a,b,c,d){$APP.M(c,d)&&$APP.n($APP.k(a,"__xLiquidGlassRefs"))&&X1(a);return null},c2=function(){return $APP.Yg("x-liquid-glass",new $APP.N(null,5,[$APP.Pg,b2,$APP.Qg,Z1,$APP.Rg,$1,$APP.Sg,a2,$APP.Wg,Y1],null))},e1=new $APP.F(null,"surface","surface",699915646),G1=new $APP.F(null,"core","core",-86019209),w1=new $APP.F(null,"specular-intensity","specular-intensity",437849876),j1=new $APP.F(null,"amplitude-raw","amplitude-raw",-673525115),r1=new $APP.F(null,"goo","goo",
44
+ -1253057564),C1=new $APP.F(null,"glass","glass",1652756718),D1=new $APP.F(null,"filter","filter",-948537934),q1=new $APP.F(null,"frost","frost",-3478780),u1=new $APP.F(null,"specular-size","specular-size",757318993),K1=new $APP.F(null,"submerged","submerged",1636004473),t1=new $APP.F(null,"tint","tint",-1286736913),H1=new $APP.F(null,"grain","grain",2007662171),h1=new $APP.F(null,"tint-raw","tint-raw",-653441954),m1=new $APP.F(null,"color-2-raw","color-2-raw",-1440423537),p1=new $APP.F(null,"specular-attr",
45
+ "specular-attr",-716021610),k1=new $APP.F(null,"specular-intensity-raw","specular-intensity-raw",109079177),o1=new $APP.F(null,"goo-raw","goo-raw",59658675),g1=new $APP.F(null,"specular-size-raw","specular-size-raw",592980345),n1=new $APP.F(null,"color-1-raw","color-1-raw",-1322552111),s1=new $APP.F(null,"amplitude","amplitude",-1387734203),F1=new $APP.F(null,"gradient","gradient",-1983908971),l1=new $APP.F(null,"frost-raw","frost-raw",1383732749),v1=new $APP.F(null,"specular?","specular?",964138290),
46
+ i1=new $APP.F(null,"blobs-raw","blobs-raw",1729393761),E1=new $APP.F(null,"satellites","satellites",644765266);var b2="blobs speed amplitude blur goo tint specular specular-size specular-intensity disabled mode frost color-1 color-2".split(" ");
47
+ $APP.Lf([q1,r1,s1,new $APP.F(null,"specularSize","specularSize",-1757715579),$APP.al,$APP.Sk,$APP.Jk,$APP.Bm,t1,new $APP.F(null,"color2","color2",1248091856),$APP.wj,$APP.co,new $APP.F(null,"color1","color1",306558619),new $APP.F(null,"specularIntensity","specularIntensity",138075)],[new $APP.N(null,1,[$APP.R,$APP.V],null),new $APP.N(null,1,[$APP.R,$APP.V],null),new $APP.N(null,1,[$APP.R,$APP.V],null),new $APP.N(null,1,[$APP.R,$APP.V],null),new $APP.N(null,1,[$APP.R,$APP.T],null),new $APP.N(null,
48
+ 1,[$APP.R,$APP.V],null),new $APP.N(null,1,[$APP.R,$APP.U],null),new $APP.N(null,1,[$APP.R,$APP.T],null),new $APP.N(null,1,[$APP.R,$APP.U],null),new $APP.N(null,1,[$APP.R,$APP.U],null),new $APP.N(null,1,[$APP.R,$APP.V],null),new $APP.N(null,1,[$APP.R,$APP.V],null),new $APP.N(null,1,[$APP.R,$APP.U],null),new $APP.N(null,1,[$APP.R,$APP.V],null)]);var d1=new $APP.N(null,2,["surface",e1,"submerged",K1],null);var z1={v:0},P1=function P1(a){if($APP.n(a.isConnected)){var c=performance.now(),d=$APP.k(a,"__xLiquidGlassTime")+Math.min(c-$APP.k(a,"__xLiquidGlassLF"),100)/1E3;a.__xLiquidGlassLF=c;a.__xLiquidGlassTime=d;M1(a,d);N1(a);O1(a,d);$APP.fa(a,"__xLiquidGlassRaf",requestAnimationFrame(function(){return P1.g?P1.g(a):P1.call(null,a)}))}return null};$APP.ca("baredom.exports.x_liquid_glass.init",c2);export const init=c2;
@@ -1,10 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var TY=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.pj);var c=$APP.D(b,$APP.kk),d=$APP.D(b,$APP.lh);b=$APP.D(b,$APP.Z);a=$APP.n(a)?a:"";c=$APP.F(c);d=$APP.n(d)?d:"";d=$APP.I(RY,d)?d:"";b=$APP.n(b)?b:"";b=$APP.I(SY,b)?b:"";return new $APP.Q(null,4,[$APP.pj,a,$APP.kk,c,$APP.lh,d,$APP.Z,b],null)},UY=function(a){return new $APP.Q(null,4,[$APP.pj,a.getAttribute("value"),$APP.kk,a.hasAttribute("disabled"),$APP.lh,a.getAttribute("variant"),$APP.Z,a.getAttribute("type")],null)},VY=function(a){var b=a.getAttribute("value");
3
- return a.dispatchEvent(new CustomEvent("x-menu-item-select",{detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))},WY=function(a){var b=$APP.k(a,"__xMenuItemRefs");b=$APP.n(b)?$APP.k(b,"base"):null;var c=TY(UY(a));if($APP.n(b)){if($APP.B.i($APP.Z.g(c),"divider"))return a.setAttribute("role","separator"),a.removeAttribute("tabindex"),a.removeAttribute("aria-disabled"),b.setAttribute("data-type","divider"),b.setAttribute("data-variant",""),b.setAttribute("data-disabled","false");a.setAttribute("role",
4
- "menuitem");a.setAttribute("tabindex","-1");b.setAttribute("data-type","");b.setAttribute("data-variant",$APP.lh.g(c));b.setAttribute("data-disabled",$APP.n($APP.kk.g(c))?"true":"false");return $APP.n($APP.kk.g(c))?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled")}return null},XY=function(a){function b(){return e.assignedNodes().length>0?a.setAttribute("has-icon",""):a.removeAttribute("has-icon")}function c(h){var l=h.key,m=TY(UY(a));($APP.B.i(l,"Enter")||$APP.B.i(l," "))&&
5
- $APP.q($APP.kk.g(m))&&$APP.N($APP.Z.g(m),"divider")?(h.preventDefault(),h=VY(a)):h=null;return h}function d(h){var l=TY(UY(a));var m=$APP.kk.g(l);m=$APP.n(m)?m:$APP.B.i($APP.Z.g(l),"divider");$APP.n(m)&&h.preventDefault();return $APP.q($APP.kk.g(l))&&$APP.N($APP.Z.g(l),"divider")?VY(a):null}var e=$APP.k($APP.k(a,"__xMenuItemRefs"),"icon-slot"),g={};a.addEventListener("click",d);a.addEventListener("keydown",c);e.addEventListener("slotchange",b);g.click=d;g.keydown=c;g["icon-slotchange"]=b;a.__xMenuItemHandlers=
6
- g},YY=function(a){if($APP.Ng(a,"__xMenuItemInit"))return XY(a),WY(a);if(!$APP.Ng(a,"__xMenuItemInit")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("span"),g=document.createElement("slot"),h=document.createElement("span"),l=document.createElement("slot"),m=document.createElement("hr");c.textContent=":host{display:block;outline:none;color-scheme:light dark;--x-menu-item-color:var(--x-color-text,#111827);--x-menu-item-hover-bg:var(--x-color-surface-hover,#f3f4f6);--x-menu-item-focus-bg:var(--x-color-surface-hover,#eff6ff);--x-menu-item-focus-color:var(--x-color-primary-hover,#1d4ed8);--x-menu-item-disabled-opacity:0.45;--x-menu-item-danger-color:var(--x-color-danger,#dc2626);--x-menu-item-danger-hover-bg:#fef2f2;--x-menu-item-padding:8px 12px;--x-menu-item-border-radius:var(--x-radius-sm,4px);--x-menu-item-font-size:0.9375rem;--x-menu-item-icon-gap:8px;--x-menu-item-divider-color:var(--x-color-border,#e5e7eb);}:host([disabled]){pointer-events:none;}@media (prefers-color-scheme:dark){:host{--x-menu-item-color:var(--x-color-text,#f9fafb);--x-menu-item-hover-bg:var(--x-color-surface-hover,#1f2937);--x-menu-item-focus-bg:var(--x-color-surface-hover,#1e3a5f);--x-menu-item-focus-color:var(--x-color-focus-ring,#60a5fa);--x-menu-item-danger-color:var(--x-color-danger,#f87171);--x-menu-item-danger-hover-bg:#2d1515;--x-menu-item-divider-color:var(--x-color-border,#374151);}}.base{display:flex;align-items:center;gap:var(--x-menu-item-icon-gap);padding:var(--x-menu-item-padding);border-radius:var(--x-menu-item-border-radius);font-size:var(--x-menu-item-font-size);color:var(--x-menu-item-color);cursor:pointer;user-select:none;transition:background 100ms ease,color 100ms ease;}.base:hover{background:var(--x-menu-item-hover-bg);}:host(:focus) .base{background:var(--x-menu-item-focus-bg);color:var(--x-menu-item-focus-color);}.base[data-variant\x3d'danger']{color:var(--x-menu-item-danger-color);}.base[data-variant\x3d'danger']:hover{background:var(--x-menu-item-danger-hover-bg);}:host(:focus) .base[data-variant\x3d'danger']{background:var(--x-menu-item-danger-hover-bg);}.base[data-disabled\x3d'true']{opacity:var(--x-menu-item-disabled-opacity);cursor:default;pointer-events:none;}.base[data-type\x3d'divider']{padding:0;cursor:default;pointer-events:none;}.icon-span{display:none;flex-shrink:0;align-items:center;}:host([has-icon]) .icon-span{display:flex;}.divider-hr{display:none;}.base[data-type\x3d'divider'] .icon-span,.base[data-type\x3d'divider'] .label-span{display:none;}.base[data-type\x3d'divider'] .divider-hr{display:block;width:100%;border:none;border-top:1px solid var(--x-menu-item-divider-color);margin:4px 0;}@media (prefers-reduced-motion:reduce){.base{transition:none;}}";
7
- d.setAttribute("part","base");d.className="base";e.setAttribute("part","icon");e.className="icon-span";g.setAttribute("name","icon");e.appendChild(g);h.className="label-span";h.appendChild(l);m.className="divider-hr";d.appendChild(e);d.appendChild(h);d.appendChild(m);b.appendChild(c);b.appendChild(d);b={};b.base=d;b["icon-span"]=e;b["icon-slot"]=g;a.__xMenuItemRefs=b;XY(a);a.__xMenuItemInit=!0}WY(a);return a},ZY=function(a){var b=$APP.k(a,"__xMenuItemHandlers"),c=$APP.k(a,"__xMenuItemRefs");if($APP.n(b)){var d=
8
- $APP.k(b,"keydown"),e=$APP.k(b,"icon-slotchange");c=$APP.n(c)?$APP.k(c,"icon-slot"):null;a.removeEventListener("click",$APP.k(b,"click"));a.removeEventListener("keydown",d);a=$APP.n(c)?c.removeEventListener("slotchange",e):null}else a=null;return a},$Y=function(a){return $APP.Ng(a,"__xMenuItemInit")?WY(a):null},aZ=function(a){Object.defineProperty(a,"value",{get:function(){return this.getAttribute("value")},set:function(b){return $APP.n(b)?this.setAttribute("value",b):this.removeAttribute("value")},
9
- configurable:!0,enumerable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},configurable:!0,enumerable:!0});Object.defineProperty(a,"variant",{get:function(){return this.getAttribute("variant")},set:function(b){return $APP.n(b)?this.setAttribute("variant",b):this.removeAttribute("variant")},configurable:!0,enumerable:!0});return Object.defineProperty(a,"type",
10
- {get:function(){return this.getAttribute("type")},set:function(b){return $APP.n(b)?this.setAttribute("type",b):this.removeAttribute("type")},configurable:!0,enumerable:!0})},cZ=function(){return $APP.Lg("x-menu-item",new $APP.Q(null,5,[$APP.Cg,bZ,$APP.Dg,YY,$APP.Eg,ZY,$APP.Fg,$Y,$APP.Jg,aZ],null))};var bZ=["value","disabled","variant","type"],RY=new $APP.R(null,new $APP.Q(null,2,["",null,"danger",null],null),null),SY=new $APP.R(null,new $APP.Q(null,2,["",null,"divider",null],null),null);$APP.Pd(["x-menu-item-select",new $APP.Q(null,1,[$APP.V,new $APP.Q(null,1,[$APP.pj,$APP.Y],null)],null)]);$APP.ha("baredom.exports.x_menu_item.init",cZ);export const init=cZ;
2
+ var j0=function(a){var b=$APP.J(a);a=$APP.C(b,$APP.Gh);var c=$APP.C(b,$APP.al),d=$APP.C(b,$APP.ii);b=$APP.C(b,$APP.R);a=$APP.n(a)?a:"";c=$APP.E(c);d=$APP.n(d)?d:"";d=$APP.Zc(h0,d)?d:"";b=$APP.n(b)?b:"";b=$APP.Zc(i0,b)?b:"";return new $APP.N(null,4,[$APP.Gh,a,$APP.al,c,$APP.ii,d,$APP.R,b],null)},k0=function(a){return new $APP.N(null,4,[$APP.Gh,a.getAttribute("value"),$APP.al,a.hasAttribute("disabled"),$APP.ii,a.getAttribute("variant"),$APP.R,a.getAttribute("type")],null)},l0=function(a){var b=a.getAttribute("value");
3
+ return $APP.P(a,"x-menu-item-select",{value:$APP.n(b)?b:""})},m0=function(a){var b=$APP.k(a,"__xMenuItemRefs");b=$APP.n(b)?$APP.k(b,"base"):null;var c=j0(k0(a));if($APP.n(b)){if($APP.B.i($APP.R.g(c),"divider"))return a.setAttribute("role","separator"),a.removeAttribute("tabindex"),a.removeAttribute("aria-disabled"),b.setAttribute("data-type","divider"),b.setAttribute("data-variant",""),b.setAttribute("data-disabled","false");a.setAttribute("role","menuitem");a.setAttribute("tabindex","-1");b.setAttribute("data-type",
4
+ "");b.setAttribute("data-variant",$APP.ii.g(c));b.setAttribute("data-disabled",$APP.n($APP.al.g(c))?"true":"false");return $APP.n($APP.al.g(c))?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled")}return null},n0=function(a){function b(){return e.assignedNodes().length>0?a.setAttribute("has-icon",""):a.removeAttribute("has-icon")}function c(h){var l=h.key,m=j0(k0(a));($APP.B.i(l,"Enter")||$APP.B.i(l," "))&&$APP.p($APP.al.g(m))&&$APP.M($APP.R.g(m),"divider")?(h.preventDefault(),
5
+ h=l0(a)):h=null;return h}function d(h){var l=j0(k0(a));var m=$APP.al.g(l);m=$APP.n(m)?m:$APP.B.i($APP.R.g(l),"divider");$APP.n(m)&&h.preventDefault();return $APP.p($APP.al.g(l))&&$APP.M($APP.R.g(l),"divider")?l0(a):null}var e=$APP.k($APP.k(a,"__xMenuItemRefs"),"icon-slot"),f={};a.addEventListener("click",d);a.addEventListener("keydown",c);e.addEventListener("slotchange",b);f.click=d;f.keydown=c;f["icon-slotchange"]=b;a.__xMenuItemHandlers=f},o0=function(a){if($APP.$g(a,"__xMenuItemInit"))return n0(a),
6
+ m0(a);if(!$APP.$g(a,"__xMenuItemInit")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("span"),f=document.createElement("slot"),h=document.createElement("span"),l=document.createElement("slot"),m=document.createElement("hr");c.textContent=":host{display:block;outline:none;color-scheme:light dark;--x-menu-item-color:var(--x-color-text,#111827);--x-menu-item-hover-bg:var(--x-color-surface-hover,#f3f4f6);--x-menu-item-focus-bg:var(--x-color-surface-hover,#eff6ff);--x-menu-item-focus-color:var(--x-color-primary-hover,#1d4ed8);--x-menu-item-disabled-opacity:0.45;--x-menu-item-danger-color:var(--x-color-danger,#dc2626);--x-menu-item-danger-hover-bg:#fef2f2;--x-menu-item-padding:8px 12px;--x-menu-item-border-radius:var(--x-radius-sm,4px);--x-menu-item-font-size:0.9375rem;--x-menu-item-icon-gap:8px;--x-menu-item-divider-color:var(--x-color-border,#e5e7eb);}:host([disabled]){pointer-events:none;}@media (prefers-color-scheme:dark){:host{--x-menu-item-color:var(--x-color-text,#f9fafb);--x-menu-item-hover-bg:var(--x-color-surface-hover,#1f2937);--x-menu-item-focus-bg:var(--x-color-surface-hover,#1e3a5f);--x-menu-item-focus-color:var(--x-color-focus-ring,#60a5fa);--x-menu-item-danger-color:var(--x-color-danger,#f87171);--x-menu-item-danger-hover-bg:#2d1515;--x-menu-item-divider-color:var(--x-color-border,#374151);}}.base{display:flex;align-items:center;gap:var(--x-menu-item-icon-gap);padding:var(--x-menu-item-padding);border-radius:var(--x-menu-item-border-radius);font-size:var(--x-menu-item-font-size);color:var(--x-menu-item-color);cursor:pointer;user-select:none;transition:background 100ms ease,color 100ms ease;}.base:hover{background:var(--x-menu-item-hover-bg);}:host(:focus) .base{background:var(--x-menu-item-focus-bg);color:var(--x-menu-item-focus-color);}.base[data-variant\x3d'danger']{color:var(--x-menu-item-danger-color);}.base[data-variant\x3d'danger']:hover{background:var(--x-menu-item-danger-hover-bg);}:host(:focus) .base[data-variant\x3d'danger']{background:var(--x-menu-item-danger-hover-bg);}.base[data-disabled\x3d'true']{opacity:var(--x-menu-item-disabled-opacity);cursor:default;pointer-events:none;}.base[data-type\x3d'divider']{padding:0;cursor:default;pointer-events:none;}.icon-span{display:none;flex-shrink:0;align-items:center;}:host([has-icon]) .icon-span{display:flex;}.divider-hr{display:none;}.base[data-type\x3d'divider'] .icon-span,.base[data-type\x3d'divider'] .label-span{display:none;}.base[data-type\x3d'divider'] .divider-hr{display:block;width:100%;border:none;border-top:1px solid var(--x-menu-item-divider-color);margin:4px 0;}@media (prefers-reduced-motion:reduce){.base{transition:none;}}";
7
+ d.setAttribute("part","base");d.className="base";e.setAttribute("part","icon");e.className="icon-span";f.setAttribute("name","icon");e.appendChild(f);h.className="label-span";h.appendChild(l);m.className="divider-hr";d.appendChild(e);d.appendChild(h);d.appendChild(m);b.appendChild(c);b.appendChild(d);b={};b.base=d;b["icon-span"]=e;b["icon-slot"]=f;a.__xMenuItemRefs=b;n0(a);a.__xMenuItemInit=!0}m0(a);return a},p0=function(a){var b=$APP.k(a,"__xMenuItemHandlers"),c=$APP.k(a,"__xMenuItemRefs");if($APP.n(b)){var d=
8
+ $APP.k(b,"keydown"),e=$APP.k(b,"icon-slotchange");c=$APP.n(c)?$APP.k(c,"icon-slot"):null;a.removeEventListener("click",$APP.k(b,"click"));a.removeEventListener("keydown",d);a=$APP.n(c)?c.removeEventListener("slotchange",e):null}else a=null;return a},q0=function(a){return $APP.$g(a,"__xMenuItemInit")?m0(a):null},s0=function(a){return $APP.jh(a,r0)},u0=function(){return $APP.Yg("x-menu-item",new $APP.N(null,5,[$APP.Pg,t0,$APP.Qg,o0,$APP.Rg,p0,$APP.Sg,q0,$APP.Wg,s0],null))};var t0=["value","disabled","variant","type"],h0=new $APP.O(null,new $APP.N(null,2,["",null,"danger",null],null),null),i0=new $APP.O(null,new $APP.N(null,2,["",null,"divider",null],null),null),r0=new $APP.N(null,4,[$APP.Gh,new $APP.N(null,2,[$APP.R,$APP.U,$APP.S,"value"],null),$APP.al,new $APP.N(null,2,[$APP.R,$APP.T,$APP.S,"disabled"],null),$APP.ii,new $APP.N(null,2,[$APP.R,$APP.U,$APP.S,"variant"],null),$APP.R,new $APP.N(null,2,[$APP.R,$APP.U,$APP.S,"type"],null)],null);
9
+ $APP.Yd(["x-menu-item-select",new $APP.N(null,1,[$APP.Z,new $APP.N(null,1,[$APP.Gh,$APP.U],null)],null)]);$APP.ca("baredom.exports.x_menu_item.init",u0);export const init=u0;
package/dist/x-menu.js CHANGED
@@ -1,12 +1,11 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var CP=function(a){a=a.querySelectorAll("x-menu-item");for(var b=[],c=a.length,d=0;;)if(d<c){var e=a[d];$APP.q(e.hasAttribute("disabled"))&&$APP.N(e.getAttribute("type"),"divider")&&b.push(e);d+=1}else break;return b},DP=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0}))},GP=function(a){$APP.n(a.hasAttribute("open"))||(a.setAttribute("open",""),DP(a,"x-menu-open",{}));if($APP.n(null)){a=CP(a);var b=a.length;return b>0?$APP.B.i(null,EP)?a[0].focus():$APP.B.i(null,
3
- FP)?a[b-1].focus():null:null}return null},HP=function(a,b){$APP.n(a.hasAttribute("open"))&&(a.removeAttribute("open"),DP(a,"x-menu-close",{}));return $APP.n(b)?(a=$APP.k(a,"__xMenuRefs"),a=$APP.n(a)?$APP.k(a,"trigger-slot"):null,a=$APP.n(a)?a.assignedElements():null,a=$APP.n($APP.n(a)?a.length>0:a)?a[0]:null,$APP.n(a)?a.focus():null):null},IP=function(a,b){var c=b.composedPath();a=$APP.vc(a.assignedElements());return $APP.F($APP.Td(function(d){return c.indexOf(d)>-1},a))},JP=function(a,b){var c=b.key,
4
- d=a.hasAttribute("open");if($APP.B.i(c,"Escape"))return $APP.n(d)?(b.preventDefault(),HP(a,!0)):null;if($APP.B.i(c,"Tab"))return $APP.n(d)?HP(a,!1):null;if($APP.B.i(c,"ArrowDown")||$APP.B.i(c,"ArrowUp")){var e=CP(a),g=e.length;if(g>0){b.preventDefault();if($APP.n(d))return a=e.indexOf(document.activeElement),c=$APP.B.i(c,"ArrowDown")?a>=g-1?0:a<0?0:a+1:a<=0?g-1:a-1,e[c].focus();GP(a);return e[$APP.B.i(c,"ArrowDown")?0:g-1].focus()}}else if($APP.B.i(c,"Home")){if($APP.n(d)&&(e=CP(a),e.length>0))return b.preventDefault(),
5
- e[0].focus()}else if($APP.B.i(c,"End")&&$APP.n(d)&&(e=CP(a),e.length>0))return b.preventDefault(),e[e.length-1].focus();return null},LP=function(a){var b=$APP.k(a,"__xMenuRefs");b=$APP.n(b)?$APP.k(b,"popup"):null;a=new $APP.Q(null,3,[$APP.Hm,a.hasAttribute("open"),$APP.lk,a.getAttribute("placement"),$APP.T,a.getAttribute("label")],null);a=$APP.M(a);var c=$APP.D(a,$APP.Hm),d=$APP.D(a,$APP.lk);a=$APP.D(a,$APP.T);c=$APP.F(c);d=$APP.n(d)?d:"";d=$APP.I(KP,d)?d:"bottom-start";a=new $APP.Q(null,3,[$APP.Hm,
6
- c,$APP.lk,d,$APP.T,$APP.n(a)?a:""],null);return $APP.n(b)?(b.setAttribute("data-placement",$APP.lk.g(a)),a=$APP.T.g(a),$APP.n($APP.n(a)?$APP.N(a,""):a)?b.setAttribute("aria-label",a):b.removeAttribute("aria-label")):null},MP=function(a){function b(h){h.stopPropagation();h=h.detail.value;HP(a,!1);return DP(a,"x-menu-select",{value:$APP.n(h)?h:""})}function c(h){return JP(a,h)}function d(h){$APP.n(a.hasAttribute("open"))?(h=h.composedPath(),h=$APP.B.i(-1,h.indexOf(a))?HP(a,!1):null):h=null;return h}
7
- function e(h){var l=$APP.k(a,"__xMenuRefs");l=$APP.n(l)?$APP.k(l,"trigger-slot"):null;return $APP.n($APP.n(l)?IP(l,h):l)?$APP.n(a.hasAttribute("open"))?HP(a,!0):GP(a):null}var g={};a.addEventListener("click",e);document.addEventListener("click",d,!0);a.addEventListener("keydown",c);a.addEventListener("x-menu-item-select",b);g.click=e;g["doc-click"]=d;g.keydown=c;g["item-select"]=b;a.__xMenuHandlers=g},NP=function(a){if($APP.Ng(a,"__xMenuInit"))return MP(a),LP(a);if(!$APP.Ng(a,"__xMenuInit")){var b=
8
- a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot"),g=document.createElement("div"),h=document.createElement("slot");c.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-menu-bg:var(--x-color-bg,#ffffff);--x-menu-border:1px solid var(--x-color-border,#e5e7eb);--x-menu-border-radius:var(--x-radius-md,8px);--x-menu-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-menu-min-width:160px;--x-menu-padding:4px;--x-menu-z-index:1000;}@media (prefers-color-scheme:dark){:host{--x-menu-bg:var(--x-color-bg,#1f2937);--x-menu-border:1px solid var(--x-color-border,#374151);--x-menu-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.4));}}.base{position:relative;display:inline-block;}.popup{display:none;position:absolute;background:var(--x-menu-bg);border:var(--x-menu-border);border-radius:var(--x-menu-border-radius);box-shadow:var(--x-menu-shadow);min-width:var(--x-menu-min-width);max-width:calc(100vw - 1rem);padding:var(--x-menu-padding);z-index:var(--x-menu-z-index);box-sizing:border-box;}:host([open]) .popup{display:block;}.popup[data-placement\x3d'bottom-start']{top:100%;left:0;margin-top:4px;}.popup[data-placement\x3d'bottom-end']{top:100%;right:0;margin-top:4px;}.popup[data-placement\x3d'top-start']{bottom:100%;left:0;margin-bottom:4px;}.popup[data-placement\x3d'top-end']{bottom:100%;right:0;margin-bottom:4px;}";
9
- d.setAttribute("part","base");d.className="base";e.setAttribute("name","trigger");g.setAttribute("part","popup");g.className="popup";g.setAttribute("role","menu");g.appendChild(h);d.appendChild(e);d.appendChild(g);b.appendChild(c);b.appendChild(d);b={};b.base=d;b.popup=g;b["trigger-slot"]=e;b["item-slot"]=h;a.__xMenuRefs=b;MP(a);a.__xMenuInit=!0}LP(a);return a},OP=function(a){var b=$APP.k(a,"__xMenuHandlers");if($APP.n(b)){var c=$APP.k(b,"doc-click"),d=$APP.k(b,"keydown"),e=$APP.k(b,"item-select");
10
- a.removeEventListener("click",$APP.k(b,"click"));document.removeEventListener("click",c,!0);a.removeEventListener("keydown",d);a=a.removeEventListener("x-menu-item-select",e)}else a=null;return a},PP=function(a){return $APP.Ng(a,"__xMenuInit")?LP(a):null},QP=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return $APP.n(b)?this.setAttribute("open",""):this.removeAttribute("open")},configurable:!0,enumerable:!0});Object.defineProperty(a,"placement",
11
- {get:function(){return this.getAttribute("placement")},set:function(b){return $APP.n(b)?this.setAttribute("placement",b):this.removeAttribute("placement")},configurable:!0,enumerable:!0});return Object.defineProperty(a,"label",{get:function(){return this.getAttribute("label")},set:function(b){return $APP.n(b)?this.setAttribute("label",b):this.removeAttribute("label")},configurable:!0,enumerable:!0})},SP=function(){return $APP.Lg("x-menu",new $APP.Q(null,5,[$APP.Cg,RP,$APP.Dg,NP,$APP.Eg,OP,$APP.Fg,
12
- PP,$APP.Jg,QP],null))},FP=new $APP.K(null,"last","last",1105735132),EP=new $APP.K(null,"first","first",-644103046);var RP=["open","placement","label"],KP=new $APP.R(null,new $APP.Q(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null);$APP.Pd(["x-menu-open",new $APP.Q(null,1,[$APP.V,$APP.Qd],null),"x-menu-close",new $APP.Q(null,1,[$APP.V,$APP.Qd],null),"x-menu-select",new $APP.Q(null,1,[$APP.V,new $APP.Q(null,1,[$APP.pj,$APP.Y],null)],null)]);$APP.ha("baredom.exports.x_menu.init",SP);export const init=SP;
2
+ var JR=function(a){a=a.querySelectorAll("x-menu-item");for(var b=[],c=a.length,d=0;;)if(d<c){var e=a[d];$APP.p(e.hasAttribute("disabled"))&&$APP.M(e.getAttribute("type"),"divider")&&b.push(e);d+=1}else break;return b},MR=function(a){$APP.n(a.hasAttribute("open"))||(a.setAttribute("open",""),$APP.P(a,"x-menu-open",{}));if($APP.n(null)){a=JR(a);var b=a.length;return b>0?$APP.B.i(null,KR)?a[0].focus():$APP.B.i(null,LR)?a[b-1].focus():null:null}return null},NR=function(a,b){$APP.n(a.hasAttribute("open"))&&
3
+ (a.removeAttribute("open"),$APP.P(a,"x-menu-close",{}));return $APP.n(b)?(a=$APP.k(a,"__xMenuRefs"),a=$APP.n(a)?$APP.k(a,"trigger-slot"):null,a=$APP.n(a)?a.assignedElements():null,a=$APP.n($APP.n(a)?a.length>0:a)?a[0]:null,$APP.n(a)?a.focus():null):null},OR=function(a,b){var c=b.composedPath();a=$APP.Cc(a.assignedElements());return $APP.E($APP.be(function(d){return c.indexOf(d)>-1},a))},PR=function(a,b){var c=b.key,d=a.hasAttribute("open");if($APP.B.i(c,"Escape"))return $APP.n(d)?(b.preventDefault(),
4
+ NR(a,!0)):null;if($APP.B.i(c,"Tab"))return $APP.n(d)?NR(a,!1):null;if($APP.B.i(c,"ArrowDown")||$APP.B.i(c,"ArrowUp")){var e=JR(a),f=e.length;if(f>0){b.preventDefault();if($APP.n(d))return a=e.indexOf(document.activeElement),c=$APP.B.i(c,"ArrowDown")?a>=f-1?0:a<0?0:a+1:a<=0?f-1:a-1,e[c].focus();MR(a);return e[$APP.B.i(c,"ArrowDown")?0:f-1].focus()}}else if($APP.B.i(c,"Home")){if($APP.n(d)&&(e=JR(a),e.length>0))return b.preventDefault(),e[0].focus()}else if($APP.B.i(c,"End")&&$APP.n(d)&&(e=JR(a),e.length>
5
+ 0))return b.preventDefault(),e[e.length-1].focus();return null},RR=function(a){var b=$APP.k(a,"__xMenuRefs");b=$APP.n(b)?$APP.k(b,"popup"):null;a=new $APP.N(null,3,[$APP.Bn,a.hasAttribute("open"),$APP.bl,a.getAttribute("placement"),$APP.X,a.getAttribute("label")],null);a=$APP.J(a);var c=$APP.C(a,$APP.Bn),d=$APP.C(a,$APP.bl);a=$APP.C(a,$APP.X);c=$APP.E(c);d=$APP.n(d)?d:"";d=$APP.Zc(QR,d)?d:"bottom-start";a=new $APP.N(null,3,[$APP.Bn,c,$APP.bl,d,$APP.X,$APP.n(a)?a:""],null);return $APP.n(b)?(b.setAttribute("data-placement",
6
+ $APP.bl.g(a)),a=$APP.X.g(a),$APP.n($APP.n(a)?$APP.M(a,""):a)?b.setAttribute("aria-label",a):b.removeAttribute("aria-label")):null},SR=function(a){function b(h){h.stopPropagation();h=h.detail.value;NR(a,!1);return $APP.P(a,"x-menu-select",{value:$APP.n(h)?h:""})}function c(h){return PR(a,h)}function d(h){$APP.n(a.hasAttribute("open"))?(h=h.composedPath(),h=$APP.B.i(-1,h.indexOf(a))?NR(a,!1):null):h=null;return h}function e(h){var l=$APP.k(a,"__xMenuRefs");l=$APP.n(l)?$APP.k(l,"trigger-slot"):null;
7
+ return $APP.n($APP.n(l)?OR(l,h):l)?$APP.n(a.hasAttribute("open"))?NR(a,!0):MR(a):null}var f={};a.addEventListener("click",e);document.addEventListener("click",d,!0);a.addEventListener("keydown",c);a.addEventListener("x-menu-item-select",b);f.click=e;f["doc-click"]=d;f.keydown=c;f["item-select"]=b;a.__xMenuHandlers=f},TR=function(a){if($APP.$g(a,"__xMenuInit"))return SR(a),RR(a);if(!$APP.$g(a,"__xMenuInit")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),
8
+ e=document.createElement("slot"),f=document.createElement("div"),h=document.createElement("slot");c.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-menu-bg:var(--x-color-bg,#ffffff);--x-menu-border:1px solid var(--x-color-border,#e5e7eb);--x-menu-border-radius:var(--x-radius-md,8px);--x-menu-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-menu-min-width:160px;--x-menu-padding:4px;--x-menu-z-index:1000;}@media (prefers-color-scheme:dark){:host{--x-menu-bg:var(--x-color-bg,#1f2937);--x-menu-border:1px solid var(--x-color-border,#374151);--x-menu-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.4));}}.base{position:relative;display:inline-block;}.popup{display:none;position:absolute;background:var(--x-menu-bg);border:var(--x-menu-border);border-radius:var(--x-menu-border-radius);box-shadow:var(--x-menu-shadow);min-width:var(--x-menu-min-width);max-width:calc(100vw - 1rem);padding:var(--x-menu-padding);z-index:var(--x-menu-z-index);box-sizing:border-box;}:host([open]) .popup{display:block;}.popup[data-placement\x3d'bottom-start']{top:100%;left:0;margin-top:4px;}.popup[data-placement\x3d'bottom-end']{top:100%;right:0;margin-top:4px;}.popup[data-placement\x3d'top-start']{bottom:100%;left:0;margin-bottom:4px;}.popup[data-placement\x3d'top-end']{bottom:100%;right:0;margin-bottom:4px;}";
9
+ d.setAttribute("part","base");d.className="base";e.setAttribute("name","trigger");f.setAttribute("part","popup");f.className="popup";f.setAttribute("role","menu");f.appendChild(h);d.appendChild(e);d.appendChild(f);b.appendChild(c);b.appendChild(d);b={};b.base=d;b.popup=f;b["trigger-slot"]=e;b["item-slot"]=h;a.__xMenuRefs=b;SR(a);a.__xMenuInit=!0}RR(a);return a},UR=function(a){var b=$APP.k(a,"__xMenuHandlers");if($APP.n(b)){var c=$APP.k(b,"doc-click"),d=$APP.k(b,"keydown"),e=$APP.k(b,"item-select");
10
+ a.removeEventListener("click",$APP.k(b,"click"));document.removeEventListener("click",c,!0);a.removeEventListener("keydown",d);a=a.removeEventListener("x-menu-item-select",e)}else a=null;return a},VR=function(a){return $APP.$g(a,"__xMenuInit")?RR(a):null},YR=function(a){return $APP.jh(a,WR)},$R=function(){return $APP.Yg("x-menu",new $APP.N(null,5,[$APP.Pg,ZR,$APP.Qg,TR,$APP.Rg,UR,$APP.Sg,VR,$APP.Wg,YR],null))},LR=new $APP.F(null,"last","last",1105735132),KR=new $APP.F(null,"first","first",-644103046);var ZR=["open","placement","label"],QR=new $APP.O(null,new $APP.N(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),WR=new $APP.N(null,3,[$APP.Bn,new $APP.N(null,2,[$APP.R,$APP.T,$APP.S,"open"],null),$APP.bl,new $APP.N(null,2,[$APP.R,$APP.U,$APP.S,"placement"],null),$APP.X,new $APP.N(null,2,[$APP.R,$APP.U,$APP.S,"label"],null)],null);
11
+ $APP.Yd(["x-menu-open",new $APP.N(null,1,[$APP.Z,$APP.Zd],null),"x-menu-close",new $APP.N(null,1,[$APP.Z,$APP.Zd],null),"x-menu-select",new $APP.N(null,1,[$APP.Z,new $APP.N(null,1,[$APP.Gh,$APP.U],null)],null)]);$APP.ca("baredom.exports.x_menu.init",$R);export const init=$R;
@@ -1,28 +1,28 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var KL=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},LL=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},ML=function(a){return typeof a==="string"&&a.trim().length>0?a.trim():"#6366f1"},NL=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},OL=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},PL=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},QL=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},RL=
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"},TL=function(a){if(typeof a==="string"&&a.trim().length>0){var b=$APP.D(SL,a.trim().toLowerCase());if($APP.n(b))return b;if(a.indexOf(",")>=0)return a=a.split(","),$APP.We.m($APP.ee,$APP.Lh.i($APP.$d.g(function(c){return c.trim()}),$APP.be(function(c){return c.length>0})),a)}return null},UL=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},VL=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},WL=function(a,b,c){return a+(b-a)*c},kM=function(a){a=$APP.zf([$APP.Pm,XL,YL,ZL,$L,aM,$APP.ri,$APP.zn,bM,cM],[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,cM);a=$APP.D(b,$APP.Pm);var d=$APP.D(b,XL),e=$APP.D(b,YL),g=$APP.D(b,ZL),h=$APP.D(b,$L),l=$APP.D(b,aM),m=$APP.D(b,$APP.ri),p=$APP.D(b,$APP.zn);b=$APP.D(b,bM);b=KL(b);p=ML(p);g=TL(g);c=OL(c);var r=[];if($APP.n($APP.n(g)?$APP.z(g)>0:g))for(var v=$APP.z(g),x=0;;)if(x<b)r.push($APP.pc(g,$APP.ed(x,v))),x+=1;else break;else for(v=0;;)if(v<b)r.push(p),v+=1;else break;return $APP.zf([$APP.jk,dM,eM,$APP.Qm,$APP.lm,fM,gM,$APP.Ci,hM,iM,jM],[p,g,c,r,RL(m),NL(h),b,QL(a),LL(e),l!=null,
7
- PL(d)])},lM=function(a,b){b=$APP.M(b);b=$APP.D(b,$APP.jk);return a.style.setProperty("--x-metaball-cursor-color",b)},nM=function(a){$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)||(a.__xMetaballSeed=0,$APP.ja(a,"__xMetaballRaf",requestAnimationFrame(function(){return mM(a)})))},oM=function(a){function b(c){var d=$APP.Ej.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},pM=function(a){var b=$APP.k(a,"__xMetaballHandler");$APP.n(b)&&(window.removeEventListener("pointermove",b),a.__xMetaballHandler=null)},qM=function(a){Object.defineProperty(a,"blobCount",{get:function(){return KL(this.getAttribute("blob-count"))},set:function(b){return b==null?this.removeAttribute("blob-count"):this.setAttribute("blob-count",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"blobSize",{get:function(){return LL(this.getAttribute("blob-size"))},
9
- set:function(b){return b==null?this.removeAttribute("blob-size"):this.setAttribute("blob-size",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"color",{get:function(){return ML(this.getAttribute("color"))},set:function(b){return b==null?this.removeAttribute("color"):this.setAttribute("color",""+$APP.S.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 NL(this.getAttribute("noise-scale"))},set:function(b){return b==null?this.removeAttribute("noise-scale"):this.setAttribute("noise-scale",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"noiseSpeed",{get:function(){return OL(this.getAttribute("noise-speed"))},set:function(b){return b==null?this.removeAttribute("noise-speed"):this.setAttribute("noise-speed",
11
- ""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"noiseIntensity",{get:function(){return PL(this.getAttribute("noise-intensity"))},set:function(b){return b==null?this.removeAttribute("noise-intensity"):this.setAttribute("noise-intensity",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"blur",{get:function(){return QL(this.getAttribute("blur"))},set:function(b){return b==null?this.removeAttribute("blur"):this.setAttribute("blur",""+$APP.S.g(b))},enumerable:!0,
12
- configurable:!0});Object.defineProperty(a,"threshold",{get:function(){return RL(this.getAttribute("threshold"))},set:function(b){return b==null?this.removeAttribute("threshold"):this.setAttribute("threshold",""+$APP.S.g(b))},enumerable:!0,configurable:!0});return Object.defineProperty(a,"palette",{get:function(){return TL(this.getAttribute("palette"))},set:function(b){return b==null||$APP.B.i("",b)?this.removeAttribute("palette"):this.setAttribute("palette",""+$APP.S.g(b))},enumerable:!0,configurable:!0})},
13
- tM=function(a){var b=kM(a);a.__xMetaballModel=b;a.__xMetaballMouse={x:0,y:0};if(!$APP.n($APP.k(a,"__xMetaballRefs"))){var c=$APP.k(a,"__xMetaballModel"),d=rM[0];rM[0]=d+1;var e="mb-"+$APP.S.g(d),g=a.attachShadow({mode:"open"}),h=document.createElement("style"),l=document.createElement("div"),m=document.createElementNS("http://www.w3.org/2000/svg","svg");a.__xMetaballUid=d;h.textContent=sM;l.setAttribute("part","viewport");l.style.filter="url(#"+$APP.S.g(e)+")";m.style.position="absolute";m.style.width=
14
- "0";m.style.height="0";m.style.overflow="hidden";var p=$APP.M(c);c=$APP.D(p,$APP.Ci);d=$APP.D(p,$APP.lm);var r=$APP.D(p,iM),v=$APP.D(p,fM);p=$APP.D(p,jM);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"),C=document.createElementNS("http://www.w3.org/2000/svg","feColorMatrix"),E=document.createElementNS("http://www.w3.org/2000/svg","feTurbulence"),
15
- 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.S.g(c));A.setAttribute("result","blur");C.setAttribute("in","blur");C.setAttribute("type","matrix");C.setAttribute("values",d);C.setAttribute("result","threshold");E.setAttribute("type","fractalNoise");E.setAttribute("baseFrequency",
16
- ""+$APP.S.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(r)?""+$APP.S.g(p):"0");H.setAttribute("xChannelSelector","R");H.setAttribute("yChannelSelector","G");y.appendChild(A);y.appendChild(C);y.appendChild(E);y.appendChild(H);x.appendChild(y);m.appendChild(x);e=new $APP.Q(null,5,[$APP.Cl,y,$APP.Fj,A,$APP.nn,C,$APP.gm,E,$APP.ek,H],null);l.appendChild(m);
17
- g.appendChild(h);g.appendChild(l);g=$APP.Rf($APP.uc([e,new $APP.Q(null,3,[$APP.Zi,g,$APP.Ej,l,$APP.Ek,m],null)]));a.__xMetaballRefs=g}g=$APP.k(a,"__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;a.__xMetaballBlobs=[];a.__xMetaballPos=[]}h=$APP.M(b);g=$APP.D(h,gM);m=$APP.D(h,hM);h=$APP.D(h,$APP.Qm);l=$APP.M($APP.k(a,"__xMetaballRefs"));l=$APP.D(l,$APP.Ej);m=VL(m,g);e=[];c=[];for(d=0;;)if(d<g)r=document.createElement("div"),
18
- v=m[d],r.className="blob",r.style.width=""+$APP.S.g(v)+"px",r.style.height=""+$APP.S.g(v)+"px",r.style.background=h[d],l.appendChild(r),e.push(r),c.push({x:0,y:0}),d+=1;else break;a.__xMetaballBlobs=e;a.__xMetaballPos=c;g=UL(g);a.__xMetaballSpeeds=g;lM(a,b);a.setAttribute("aria-hidden","true");a.setAttribute("role","presentation");pM(a);oM(a);nM(a);return null},uM=function(a){var b=$APP.k(a,"__xMetaballRaf");$APP.n(b)&&(cancelAnimationFrame(b),a.__xMetaballRaf=null);pM(a);return null},vM=function(a,
19
- b,c,d){if($APP.N(c,d)&&(b=kM(a),a.__xMetaballModel=b,$APP.n($APP.k(a,"__xMetaballRefs")))){d=$APP.M(b);c=$APP.D(d,gM);var e=$APP.D(d,hM);d=$APP.D(d,$APP.Qm);var g=$APP.M($APP.k(a,"__xMetaballRefs")),h=$APP.D(g,$APP.Ej);g=$APP.k(a,"__xMetaballBlobs");var l=$APP.k(a,"__xMetaballPos"),m=g.length;e=VL(e,c);for(var p=m;;)if(p<c){var r=document.createElement("div");r.className="blob";h.appendChild(r);g.push(r);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),
20
- --h;else break;for(l=0;;)if(l<c)h=g[l],m=e[l],h.style.width=""+$APP.S.g(m)+"px",h.style.height=""+$APP.S.g(m)+"px",h.style.background=d[l],l+=1;else break;c=UL(c);a.__xMetaballSpeeds=c;g=$APP.M(b);h=$APP.D(g,$APP.Ci);e=$APP.D(g,$APP.lm);c=$APP.D(g,iM);d=$APP.D(g,fM);g=$APP.D(g,jM);l=$APP.k(a,"__xMetaballRefs");m=$APP.Fj.g(l);$APP.n(m)&&m.setAttribute("stdDeviation",""+$APP.S.g(h));h=$APP.nn.g(l);$APP.n(h)&&h.setAttribute("values",e);e=$APP.gm.g(l);$APP.n(e)&&e.setAttribute("baseFrequency",""+$APP.S.g(.01*
21
- d));d=$APP.ek.g(l);$APP.n(d)&&d.setAttribute("scale",$APP.n(c)?""+$APP.S.g(g):"0");return lM(a,b)}return null},xM=function(){return $APP.Lg("x-metaball-cursor",new $APP.Q(null,5,[$APP.Cg,wM,$APP.Dg,tM,$APP.Eg,uM,$APP.Fg,vM,$APP.Jg,qM],null))},$L=new $APP.K(null,"noise-scale-raw","noise-scale-raw",123215597),XL=new $APP.K(null,"noise-intensity-raw","noise-intensity-raw",-116633534),iM=new $APP.K(null,"noise?","noise?",-38350370),hM=new $APP.K(null,"blob-size","blob-size",-1862159046),fM=new $APP.K(null,
22
- "noise-scale","noise-scale",-2033475279),aM=new $APP.K(null,"noise-attr","noise-attr",-1534959409),ZL=new $APP.K(null,"palette-raw","palette-raw",-1398782582),dM=new $APP.K(null,"palette","palette",-456203511),bM=new $APP.K(null,"blob-count-raw","blob-count-raw",-1850938603),cM=new $APP.K(null,"noise-speed-raw","noise-speed-raw",1761342974),eM=new $APP.K(null,"noise-speed","noise-speed",866692139),gM=new $APP.K(null,"blob-count","blob-count",-248711053),jM=new $APP.K(null,"noise-intensity","noise-intensity",
23
- 747731519),YL=new $APP.K(null,"blob-size-raw","blob-size-raw",530207878);var wM="blob-count blob-size color noise noise-scale noise-speed noise-intensity blur threshold palette".split(" ");
24
- $APP.zf([$APP.jk,new $APP.K(null,"blobSize","blobSize",-64083896),new $APP.K(null,"noiseIntensity","noiseIntensity",-792053623),dM,new $APP.K(null,"noiseScale","noiseScale",2003002730),new $APP.K(null,"noise","noise",-994696820),$APP.lm,$APP.Ci,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.uk],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 SL=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 rM=[0],sM=":host{display:block;position:relative;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:var("+$APP.S.g("--x-metaball-cursor-z-index")+",9999);}[part\x3dviewport]{position:absolute;inset:var("+$APP.S.g("--x-metaball-cursor-inset")+",0);pointer-events:none;opacity:var("+$APP.S.g("--x-metaball-cursor-opacity")+",1);mix-blend-mode:var("+$APP.S.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.S.g("--x-metaball-cursor-color")+",#6366f1);}@media(prefers-reduced-motion:reduce){.blob{transition:none!important;}}",mM=function mM(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 r=e[p],v=g[p],x=WL($APP.k(r,"x"),h,v);v=WL($APP.k(r,"y"),c,v);var y=d[p];r.x=x;r.y=v;y.style.transform="translate("+
28
- $APP.S.g(x)+"px,"+$APP.S.g(v)+"px) translate(-50%,-50%)";p+=1}else break;$APP.n(iM.g(l))&&(d=$APP.k(a,"__xMetaballSeed")+eM.g(l),e=$APP.k(a,"__xMetaballRefs"),a.__xMetaballSeed=d,e=$APP.gm.g(e),$APP.n(e)&&e.setAttribute("seed",""+$APP.S.g(Math.floor(d))));$APP.ja(a,"__xMetaballRaf",requestAnimationFrame(function(){return mM.g?mM.g(a):mM.call(null,a)}))}return null};$APP.ha("baredom.exports.x_metaball_cursor.init",xM);export const init=xM;
2
+ var XN=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},YN=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},ZN=function(a){return typeof a==="string"&&a.trim().length>0?a.trim():"#6366f1"},$N=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},aO=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},bO=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},cO=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},dO=
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"},fO=function(a){if(typeof a==="string"&&a.trim().length>0){var b=$APP.C(eO,a.trim().toLowerCase());if($APP.n(b))return b;if(a.indexOf(",")>=0)return a=a.split(","),$APP.hf.l($APP.pe,$APP.Ji.i($APP.he.g(function(c){return c.trim()}),$APP.me(function(c){return c.length>0})),a)}return null},gO=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},hO=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},iO=function(a,b,c){return a+(b-a)*c},xO=function(a){a=$APP.Lf([$APP.Kn,jO,kO,lO,mO,nO,$APP.lj,$APP.to,oO,pO],[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.J(a),c=$APP.C(b,pO);a=$APP.C(b,$APP.Kn);var d=$APP.C(b,jO),e=$APP.C(b,kO),f=$APP.C(b,lO),h=$APP.C(b,mO),l=$APP.C(b,nO),m=$APP.C(b,$APP.lj),q=$APP.C(b,$APP.to);b=$APP.C(b,oO);b=XN(b);q=ZN(q);f=fO(f);c=aO(c);var r=[];if($APP.n($APP.n(f)?$APP.z(f)>0:f))for(var v=$APP.z(f),x=0;;)if(x<b)r.push($APP.wc(f,$APP.od(x,v))),x+=1;else break;else for(v=0;;)if(v<b)r.push(q),v+=1;else break;return $APP.Lf([$APP.$k,qO,rO,$APP.Ln,$APP.ln,sO,tO,$APP.wj,uO,vO,wO],[q,f,c,r,dO(m),$N(h),b,cO(a),YN(e),l!=null,
7
+ bO(d)])},yO=function(a,b){b=$APP.J(b);b=$APP.C(b,$APP.$k);return a.style.setProperty("--x-metaball-cursor-color",b)},AO=function(a){$APP.E(window.matchMedia("(prefers-reduced-motion:reduce)").matches)||(a.__xMetaballSeed=0,$APP.fa(a,"__xMetaballRaf",requestAnimationFrame(function(){return zO(a)})))},BO=function(a){function b(c){var d=$APP.vk.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},CO=function(a){var b=$APP.k(a,"__xMetaballHandler");$APP.n(b)&&(window.removeEventListener("pointermove",b),a.__xMetaballHandler=null)},DO=function(a){Object.defineProperty(a,"blobCount",{get:function(){return XN(this.getAttribute("blob-count"))},set:function(b){return b==null?this.removeAttribute("blob-count"):this.setAttribute("blob-count",""+$APP.Q.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"blobSize",{get:function(){return YN(this.getAttribute("blob-size"))},
9
+ set:function(b){return b==null?this.removeAttribute("blob-size"):this.setAttribute("blob-size",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"color",{get:function(){return ZN(this.getAttribute("color"))},set:function(b){return b==null?this.removeAttribute("color"):this.setAttribute("color",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});$APP.dh(a,"noise","noise");Object.defineProperty(a,"noiseScale",{get:function(){return $N(this.getAttribute("noise-scale"))},set:function(b){return b==
10
+ null?this.removeAttribute("noise-scale"):this.setAttribute("noise-scale",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"noiseSpeed",{get:function(){return aO(this.getAttribute("noise-speed"))},set:function(b){return b==null?this.removeAttribute("noise-speed"):this.setAttribute("noise-speed",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"noiseIntensity",{get:function(){return bO(this.getAttribute("noise-intensity"))},set:function(b){return b==null?
11
+ this.removeAttribute("noise-intensity"):this.setAttribute("noise-intensity",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"blur",{get:function(){return cO(this.getAttribute("blur"))},set:function(b){return b==null?this.removeAttribute("blur"):this.setAttribute("blur",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"threshold",{get:function(){return dO(this.getAttribute("threshold"))},set:function(b){return b==null?this.removeAttribute("threshold"):
12
+ this.setAttribute("threshold",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});return Object.defineProperty(a,"palette",{get:function(){return fO(this.getAttribute("palette"))},set:function(b){return b==null||$APP.B.i("",b)?this.removeAttribute("palette"):this.setAttribute("palette",""+$APP.Q.g(b))},enumerable:!0,configurable:!0})},GO=function(a){var b=xO(a);a.__xMetaballModel=b;a.__xMetaballMouse={x:0,y:0};if(!$APP.n($APP.k(a,"__xMetaballRefs"))){var c=$APP.k(a,"__xMetaballModel"),d=EO[0];EO[0]=
13
+ d+1;var e="mb-"+$APP.Q.g(d),f=a.attachShadow({mode:"open"}),h=document.createElement("style"),l=document.createElement("div"),m=document.createElementNS("http://www.w3.org/2000/svg","svg");a.__xMetaballUid=d;h.textContent=FO;l.setAttribute("part","viewport");l.style.filter="url(#"+$APP.Q.g(e)+")";m.style.position="absolute";m.style.width="0";m.style.height="0";m.style.overflow="hidden";var q=$APP.J(c);c=$APP.C(q,$APP.wj);d=$APP.C(q,$APP.ln);var r=$APP.C(q,vO),v=$APP.C(q,sO);q=$APP.C(q,wO);var x=document.createElementNS("http://www.w3.org/2000/svg",
14
+ "defs"),y=document.createElementNS("http://www.w3.org/2000/svg","filter"),A=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),D=document.createElementNS("http://www.w3.org/2000/svg","feColorMatrix"),G=document.createElementNS("http://www.w3.org/2000/svg","feTurbulence"),I=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",
15
+ "140%");A.setAttribute("in","SourceGraphic");A.setAttribute("stdDeviation",""+$APP.Q.g(c));A.setAttribute("result","blur");D.setAttribute("in","blur");D.setAttribute("type","matrix");D.setAttribute("values",d);D.setAttribute("result","threshold");G.setAttribute("type","fractalNoise");G.setAttribute("baseFrequency",""+$APP.Q.g(.01*v));G.setAttribute("numOctaves","3");G.setAttribute("seed","0");G.setAttribute("result","noise");I.setAttribute("in","threshold");I.setAttribute("in2","noise");I.setAttribute("scale",
16
+ $APP.n(r)?""+$APP.Q.g(q):"0");I.setAttribute("xChannelSelector","R");I.setAttribute("yChannelSelector","G");y.appendChild(A);y.appendChild(D);y.appendChild(G);y.appendChild(I);x.appendChild(y);m.appendChild(x);e=new $APP.N(null,5,[$APP.wm,y,$APP.wk,A,$APP.ho,D,$APP.fn,G,$APP.Yk,I],null);l.appendChild(m);f.appendChild(h);f.appendChild(l);f=$APP.cg($APP.Bc([e,new $APP.N(null,3,[$APP.Uh,f,$APP.vk,l,$APP.tl,m],null)]));a.__xMetaballRefs=f}f=$APP.k(a,"__xMetaballBlobs");if($APP.n(f)){h=f.length;for(l=
17
+ 0;;)if(l<h)m=f[l],$APP.n(m.parentNode)&&m.parentNode.removeChild(m),l+=1;else break;a.__xMetaballBlobs=[];a.__xMetaballPos=[]}h=$APP.J(b);f=$APP.C(h,tO);m=$APP.C(h,uO);h=$APP.C(h,$APP.Ln);l=$APP.J($APP.k(a,"__xMetaballRefs"));l=$APP.C(l,$APP.vk);m=hO(m,f);e=[];c=[];for(d=0;;)if(d<f)r=document.createElement("div"),v=m[d],r.className="blob",r.style.width=""+$APP.Q.g(v)+"px",r.style.height=""+$APP.Q.g(v)+"px",r.style.background=h[d],l.appendChild(r),e.push(r),c.push({x:0,y:0}),d+=1;else break;a.__xMetaballBlobs=
18
+ e;a.__xMetaballPos=c;f=gO(f);a.__xMetaballSpeeds=f;yO(a,b);a.setAttribute("aria-hidden","true");a.setAttribute("role","presentation");CO(a);BO(a);AO(a);return null},HO=function(a){var b=$APP.k(a,"__xMetaballRaf");$APP.n(b)&&(cancelAnimationFrame(b),a.__xMetaballRaf=null);CO(a);return null},IO=function(a,b,c,d){if($APP.M(c,d)&&(b=xO(a),a.__xMetaballModel=b,$APP.n($APP.k(a,"__xMetaballRefs")))){d=$APP.J(b);c=$APP.C(d,tO);var e=$APP.C(d,uO);d=$APP.C(d,$APP.Ln);var f=$APP.J($APP.k(a,"__xMetaballRefs")),
19
+ h=$APP.C(f,$APP.vk);f=$APP.k(a,"__xMetaballBlobs");var l=$APP.k(a,"__xMetaballPos"),m=f.length;e=hO(e,c);for(var q=m;;)if(q<c){var r=document.createElement("div");r.className="blob";h.appendChild(r);f.push(r);l.push({x:0,y:0});q+=1}else break;for(h=m;;)if(h>c)m=f.pop(),l.pop(),$APP.n(m.parentNode)&&m.parentNode.removeChild(m),--h;else break;for(l=0;;)if(l<c)h=f[l],m=e[l],h.style.width=""+$APP.Q.g(m)+"px",h.style.height=""+$APP.Q.g(m)+"px",h.style.background=d[l],l+=1;else break;c=gO(c);a.__xMetaballSpeeds=
20
+ c;f=$APP.J(b);h=$APP.C(f,$APP.wj);e=$APP.C(f,$APP.ln);c=$APP.C(f,vO);d=$APP.C(f,sO);f=$APP.C(f,wO);l=$APP.k(a,"__xMetaballRefs");m=$APP.wk.g(l);$APP.n(m)&&m.setAttribute("stdDeviation",""+$APP.Q.g(h));h=$APP.ho.g(l);$APP.n(h)&&h.setAttribute("values",e);e=$APP.fn.g(l);$APP.n(e)&&e.setAttribute("baseFrequency",""+$APP.Q.g(.01*d));d=$APP.Yk.g(l);$APP.n(d)&&d.setAttribute("scale",$APP.n(c)?""+$APP.Q.g(f):"0");return yO(a,b)}return null},KO=function(){return $APP.Yg("x-metaball-cursor",new $APP.N(null,
21
+ 5,[$APP.Pg,JO,$APP.Qg,GO,$APP.Rg,HO,$APP.Sg,IO,$APP.Wg,DO],null))},mO=new $APP.F(null,"noise-scale-raw","noise-scale-raw",123215597),jO=new $APP.F(null,"noise-intensity-raw","noise-intensity-raw",-116633534),vO=new $APP.F(null,"noise?","noise?",-38350370),uO=new $APP.F(null,"blob-size","blob-size",-1862159046),sO=new $APP.F(null,"noise-scale","noise-scale",-2033475279),nO=new $APP.F(null,"noise-attr","noise-attr",-1534959409),lO=new $APP.F(null,"palette-raw","palette-raw",-1398782582),qO=new $APP.F(null,
22
+ "palette","palette",-456203511),oO=new $APP.F(null,"blob-count-raw","blob-count-raw",-1850938603),pO=new $APP.F(null,"noise-speed-raw","noise-speed-raw",1761342974),rO=new $APP.F(null,"noise-speed","noise-speed",866692139),tO=new $APP.F(null,"blob-count","blob-count",-248711053),wO=new $APP.F(null,"noise-intensity","noise-intensity",747731519),kO=new $APP.F(null,"blob-size-raw","blob-size-raw",530207878);var JO="blob-count blob-size color noise noise-scale noise-speed noise-intensity blur threshold palette".split(" ");
23
+ $APP.Lf([$APP.$k,new $APP.F(null,"blobSize","blobSize",-64083896),new $APP.F(null,"noiseIntensity","noiseIntensity",-792053623),qO,new $APP.F(null,"noiseScale","noiseScale",2003002730),new $APP.F(null,"noise","noise",-994696820),$APP.ln,$APP.wj,new $APP.F(null,"noiseSpeed","noiseSpeed",-959403627),new $APP.F(null,"blobCount","blobCount",-1279691625)],[new $APP.N(null,1,[$APP.R,$APP.U],null),new $APP.N(null,1,[$APP.R,$APP.V],null),new $APP.N(null,1,[$APP.R,$APP.V],null),new $APP.N(null,1,[$APP.R,$APP.U],
24
+ null),new $APP.N(null,1,[$APP.R,$APP.V],null),new $APP.N(null,1,[$APP.R,$APP.T],null),new $APP.N(null,1,[$APP.R,$APP.U],null),new $APP.N(null,1,[$APP.R,$APP.V],null),new $APP.N(null,1,[$APP.R,$APP.V],null),new $APP.N(null,1,[$APP.R,$APP.V],null)]);
25
+ var eO=new $APP.N(null,5,["rainbow",new $APP.De(null,5,5,$APP.Ee,["#ef4444","#f59e0b","#22c55e","#3b82f6","#a855f7"],null),"ocean",new $APP.De(null,5,5,$APP.Ee,["#06b6d4","#0ea5e9","#6366f1","#8b5cf6","#0d9488"],null),"sunset",new $APP.De(null,5,5,$APP.Ee,["#ef4444","#f97316","#eab308","#ec4899","#f43f5e"],null),"neon",new $APP.De(null,5,5,$APP.Ee,["#22d3ee","#a78bfa","#f472b6","#34d399","#facc15"],null),"ember",new $APP.De(null,5,5,$APP.Ee,["#dc2626","#ea580c","#d97706","#b91c1c","#f59e0b"],null)],
26
+ null);var EO=[0],FO=":host{display:block;position:relative;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:var("+$APP.Q.g("--x-metaball-cursor-z-index")+",9999);}[part\x3dviewport]{position:absolute;inset:var("+$APP.Q.g("--x-metaball-cursor-inset")+",0);pointer-events:none;opacity:var("+$APP.Q.g("--x-metaball-cursor-opacity")+",1);mix-blend-mode:var("+$APP.Q.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.Q.g("--x-metaball-cursor-color")+",#6366f1);}@media(prefers-reduced-motion:reduce){.blob{transition:none!important;}}",zO=function zO(a){if($APP.n(a.isConnected)){var c=$APP.k(a,"__xMetaballMouse"),d=$APP.k(a,"__xMetaballBlobs"),e=$APP.k(a,"__xMetaballPos"),f=$APP.k(a,"__xMetaballSpeeds"),h=$APP.k(c,"x");c=$APP.k(c,"y");for(var l=$APP.k(a,"__xMetaballModel"),m=d.length,q=0;;)if(q<m){var r=e[q],v=f[q],x=iO($APP.k(r,"x"),h,v);v=iO($APP.k(r,"y"),c,v);var y=d[q];r.x=x;r.y=v;y.style.transform="translate("+
28
+ $APP.Q.g(x)+"px,"+$APP.Q.g(v)+"px) translate(-50%,-50%)";q+=1}else break;$APP.n(vO.g(l))&&(d=$APP.k(a,"__xMetaballSeed")+rO.g(l),e=$APP.k(a,"__xMetaballRefs"),a.__xMetaballSeed=d,e=$APP.fn.g(e),$APP.n(e)&&e.setAttribute("seed",""+$APP.Q.g(Math.floor(d))));$APP.fa(a,"__xMetaballRaf",requestAnimationFrame(function(){return zO.g?zO.g(a):zO.call(null,a)}))}return null};$APP.ca("baredom.exports.x_metaball_cursor.init",KO);export const init=KO;
package/dist/x-modal.js CHANGED
@@ -1,13 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var g0=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"),r=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
- 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");r.setAttribute("name","footer");g.appendChild(h);l.appendChild(m);p.appendChild(r);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")},h0=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.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'])")));a=$APP.ae(function(d){return $APP.ce(b,$APP.ae(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'])"));
5
- 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"))]));return $APP.xe($APP.Zd.i(c,a))},i0=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=
6
- 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()},j0=function(a,b){$APP.Qg(a,"x-modal-dismiss",{reason:b});a.removeAttribute("open");return null},k0=function(a){$APP.n(a.hasAttribute("open"))||a.setAttribute("open","");return null},l0=function(a){a.removeAttribute("open");return null},m0=function(a,b){$APP.N($APP.k(a,"__xModalPrevOpen"),b)&&(a.__xModalPrevOpen=b,$APP.Qg(a,"x-modal-toggle",{open:b}),
7
- $APP.n(b)?setTimeout(function(){var c=$APP.k(a,"__xModalRefs"),d=$APP.n(c)?$APP.k(c,"dialog"):null;c=$APP.n(c)?h0(c):null;a.__xModalRestore=document.activeElement;var e=$APP.n(c)?$APP.Zh(c):null;a.__xModalTabbables=e;$APP.t(c)?$APP.u(c).focus():$APP.n(d)&&($APP.n(d.hasAttribute("tabindex"))||(d.setAttribute("tabindex","-1"),a.__xModalDialogTab=!0),d.focus());return null},0):i0(a))},o0=function(a){var b=g0(a);b=$APP.k(b,"dialog");var c=new $APP.Q(null,3,[$APP.Yi,a.hasAttribute("open"),$APP.nm,a.getAttribute("size"),
8
- $APP.Hi,a.getAttribute("label")],null);var d=$APP.M(c),e=$APP.D(d,$APP.Yi);c=$APP.D(d,$APP.nm);d=$APP.D(d,$APP.Hi);e=$APP.F(e);c=typeof c==="string"&&$APP.I(n0,c)?c:"md";d=typeof d==="string"&&$APP.N(d,"")?d:"Modal";c=new $APP.Q(null,3,[$APP.fn,e,$APP.di,c,$APP.T,d],null);d=$APP.fn.g(c);a.setAttribute("data-open",$APP.n(d)?"true":"false");a.setAttribute("data-size",$APP.di.g(c));b.setAttribute("aria-label",$APP.T.g(c));m0(a,d)},p0=function(a){function b(g){var h=g.key;if($APP.B.i(h,"Escape"))g.preventDefault(),
9
- j0(a,"escape");else if($APP.B.i(h,"Tab")){h=$APP.k(a,"__xModalTabbables");h=$APP.n(h)?$APP.xe($APP.uc(h)):$APP.ee;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=g.shiftKey;$APP.n($APP.n(p)?$APP.B.i(l,m):p)?(g.preventDefault(),h.focus()):$APP.q(p)&&$APP.B.i(l,h)&&(g.preventDefault(),m.focus())}}return null}function c(){return j0(a,"backdrop")}var d=g0(a),e=$APP.k(d,
10
- "dialog");$APP.k(d,"backdrop").addEventListener("click",c);e.addEventListener("keydown",b);$APP.ja(a,"__xModalHandlers",{backdrop:c,keydown:b})},q0=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");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},r0=function(a){g0(a);q0(a);p0(a);o0(a);return null},
11
- s0=function(a){q0(a);i0(a);return null},t0=function(a,b,c,d){$APP.N(c,d)&&o0(a);return null},u0=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return $APP.n(b)?k0(this):l0(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"):this.setAttribute("size",""+$APP.S.g(b))},enumerable:!0,configurable:!0});
12
- 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.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"show",{value:function(){return k0(this)},enumerable:!0,configurable:!0,writable:!0});Object.defineProperty(a,"hide",{value:function(){return l0(this)},enumerable:!0,configurable:!0,writable:!0});return Object.defineProperty(a,"toggle",
13
- {value:function(){$APP.n(this.hasAttribute("open"))?l0(this):k0(this);return null},enumerable:!0,configurable:!0,writable:!0})},w0=function(){return $APP.Lg("x-modal",new $APP.Q(null,5,[$APP.Cg,v0,$APP.Dg,r0,$APP.Eg,s0,$APP.Fg,t0,$APP.Jg,u0],null))};var n0=new $APP.R(null,new $APP.Q(null,5,["md",null,"lg",null,"full",null,"xl",null,"sm",null],null),null),v0=["open","size","label"];$APP.Pd(["x-modal-toggle",new $APP.Q(null,2,[$APP.Km,!1,$APP.V,new $APP.Q(null,1,[$APP.Hm,$APP.uk],null)],null),"x-modal-dismiss",new $APP.Q(null,2,[$APP.Km,!1,$APP.V,new $APP.Q(null,1,[$APP.hj,$APP.Y],null)],null)]);$APP.ha("baredom.exports.x_modal.init",w0);export const init=w0;
2
+ var w2=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"),f=document.createElement("div"),h=document.createElement("slot"),l=document.createElement("div"),m=document.createElement("slot"),q=document.createElement("div"),r=document.createElement("slot");c.textContent=":host{display:contents;color-scheme:light dark;--x-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
+ d.setAttribute("part","backdrop");e.setAttribute("part","dialog");e.setAttribute("role","dialog");e.setAttribute("aria-modal","true");f.setAttribute("part","header");h.setAttribute("name","header");l.setAttribute("part","body");q.setAttribute("part","footer");r.setAttribute("name","footer");f.appendChild(h);l.appendChild(m);q.appendChild(r);e.appendChild(f);e.appendChild(l);e.appendChild(q);b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xModalRefs={root:b,backdrop:d,dialog:e,header:f,body:l,
4
+ footer:q};return $APP.k(a,"__xModalRefs")},x2=function(a){function b(d){var e=window.getComputedStyle(d);return $APP.M("none",e.display)&&$APP.M("hidden",e.visibility)&&d.offsetWidth>0&&d.offsetHeight>0}var c=$APP.ne(b,$APP.Bc($APP.k(a,"dialog").querySelectorAll("a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex\x3d'-1'])")));a=$APP.le(function(d){return $APP.ne(b,$APP.le(function(e){var f=$APP.Bc(e.querySelectorAll("a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex\x3d'-1'])"));
5
+ 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.xd(e,f):f},$APP.Bc([$APP.Cc(d.assignedElements({flatten:!0}))])))},$APP.Bc([$APP.Bc($APP.k(a,"root").querySelectorAll("slot"))]));return $APP.Je($APP.ke.i(c,a))},y2=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=
6
+ 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()},z2=function(a,b){$APP.P(a,"x-modal-dismiss",{reason:b});a.removeAttribute("open");return null},A2=function(a){$APP.n(a.hasAttribute("open"))||a.setAttribute("open","");return null},B2=function(a){a.removeAttribute("open");return null},C2=function(a,b){$APP.M($APP.k(a,"__xModalPrevOpen"),b)&&(a.__xModalPrevOpen=b,$APP.P(a,"x-modal-toggle",{open:b}),
7
+ $APP.n(b)?setTimeout(function(){var c=$APP.k(a,"__xModalRefs"),d=$APP.n(c)?$APP.k(c,"dialog"):null;c=$APP.n(c)?x2(c):null;a.__xModalRestore=document.activeElement;var e=$APP.n(c)?$APP.Xi(c):null;a.__xModalTabbables=e;$APP.t(c)?$APP.u(c).focus():$APP.n(d)&&($APP.n(d.hasAttribute("tabindex"))||(d.setAttribute("tabindex","-1"),a.__xModalDialogTab=!0),d.focus());return null},0):y2(a))},E2=function(a){var b=w2(a);b=$APP.k(b,"dialog");var c=new $APP.N(null,3,[$APP.Pj,a.hasAttribute("open"),$APP.on,a.getAttribute("size"),
8
+ $APP.Ch,a.getAttribute("label")],null);var d=$APP.J(c),e=$APP.C(d,$APP.Pj);c=$APP.C(d,$APP.on);d=$APP.C(d,$APP.Ch);e=$APP.E(e);c=typeof c==="string"&&$APP.Zc(D2,c)?c:"md";d=typeof d==="string"&&$APP.M(d,"")?d:"Modal";c=new $APP.N(null,3,[$APP.ao,e,$APP.bj,c,$APP.X,d],null);d=$APP.ao.g(c);a.setAttribute("data-open",$APP.n(d)?"true":"false");a.setAttribute("data-size",$APP.bj.g(c));b.setAttribute("aria-label",$APP.X.g(c));C2(a,d)},F2=function(a){function b(f){var h=f.key;if($APP.B.i(h,"Escape"))f.preventDefault(),
9
+ z2(a,"escape");else if($APP.B.i(h,"Tab")){h=$APP.k(a,"__xModalTabbables");h=$APP.n(h)?$APP.Je($APP.Bc(h)):$APP.pe;var l=$APP.k(a,"__xModalRefs");l=$APP.n(l)?$APP.k(l,"dialog"):null;if($APP.Oc(h))f.preventDefault(),$APP.n(l)&&l.focus();else{l=document.activeElement;var m=$APP.u(h);h=$APP.Ec(h);var q=f.shiftKey;$APP.n($APP.n(q)?$APP.B.i(l,m):q)?(f.preventDefault(),h.focus()):$APP.p(q)&&$APP.B.i(l,h)&&(f.preventDefault(),m.focus())}}return null}function c(){return z2(a,"backdrop")}var d=w2(a),e=$APP.k(d,
10
+ "dialog");$APP.k(d,"backdrop").addEventListener("click",c);e.addEventListener("keydown",b);$APP.fa(a,"__xModalHandlers",{backdrop:c,keydown:b})},G2=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");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},H2=function(a){w2(a);G2(a);F2(a);E2(a);return null},
11
+ I2=function(a){G2(a);y2(a);return null},J2=function(a,b,c,d){$APP.M(c,d)&&E2(a);return null},K2=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return $APP.n(b)?A2(this):B2(this)},enumerable:!0,configurable:!0});$APP.eh(a,"size","size","md");$APP.eh(a,"label","label","Modal");Object.defineProperty(a,"show",{value:function(){return A2(this)},enumerable:!0,configurable:!0,writable:!0});Object.defineProperty(a,"hide",{value:function(){return B2(this)},
12
+ enumerable:!0,configurable:!0,writable:!0});return Object.defineProperty(a,"toggle",{value:function(){$APP.n(this.hasAttribute("open"))?B2(this):A2(this);return null},enumerable:!0,configurable:!0,writable:!0})},M2=function(){return $APP.Yg("x-modal",new $APP.N(null,5,[$APP.Pg,L2,$APP.Qg,H2,$APP.Rg,I2,$APP.Sg,J2,$APP.Wg,K2],null))};var D2=new $APP.O(null,new $APP.N(null,5,["md",null,"lg",null,"full",null,"xl",null,"sm",null],null),null),L2=["open","size","label"];$APP.Yd(["x-modal-toggle",new $APP.N(null,2,[$APP.Fn,!1,$APP.Z,new $APP.N(null,1,[$APP.Bn,$APP.T],null)],null),"x-modal-dismiss",new $APP.N(null,2,[$APP.Fn,!1,$APP.Z,new $APP.N(null,1,[$APP.Yj,$APP.U],null)],null)]);$APP.ca("baredom.exports.x_modal.init",M2);export const init=M2;