@vanelsas/baredom 2.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +26 -7
  3. package/dist/base.js +405 -403
  4. package/dist/x-alert.js +19 -19
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +15 -15
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-bento-grid.js +5 -5
  9. package/dist/x-bento-item.js +4 -4
  10. package/dist/x-breadcrumbs.js +14 -14
  11. package/dist/x-button.js +16 -16
  12. package/dist/x-cancel-dialogue.js +17 -17
  13. package/dist/x-card.js +7 -7
  14. package/dist/x-carousel.js +35 -0
  15. package/dist/x-chart.js +48 -48
  16. package/dist/x-checkbox.js +11 -11
  17. package/dist/x-chip.js +9 -9
  18. package/dist/x-collapse.js +11 -11
  19. package/dist/x-color-picker.js +46 -0
  20. package/dist/x-command-palette.js +27 -32
  21. package/dist/x-container.js +6 -6
  22. package/dist/x-context-menu.js +20 -20
  23. package/dist/x-copy.js +23 -23
  24. package/dist/x-currency-field.js +23 -23
  25. package/dist/x-date-picker.js +42 -42
  26. package/dist/x-divider.js +10 -13
  27. package/dist/x-drawer.js +12 -12
  28. package/dist/x-dropdown.js +10 -10
  29. package/dist/x-fieldset.js +6 -6
  30. package/dist/x-file-download.js +7 -7
  31. package/dist/x-form-field.js +16 -16
  32. package/dist/x-form.js +10 -10
  33. package/dist/x-gaussian-blur.js +18 -18
  34. package/dist/x-grid.js +6 -6
  35. package/dist/x-kinetic-font.js +29 -28
  36. package/dist/x-kinetic-typography.js +39 -39
  37. package/dist/x-liquid-dock.js +39 -39
  38. package/dist/x-liquid-fill.js +45 -44
  39. package/dist/x-liquid-glass.js +47 -47
  40. package/dist/x-menu-item.js +10 -10
  41. package/dist/x-menu.js +11 -12
  42. package/dist/x-metaball-cursor.js +27 -28
  43. package/dist/x-modal.js +13 -13
  44. package/dist/x-morph-stack.js +39 -39
  45. package/dist/x-navbar.js +13 -13
  46. package/dist/x-neural-glow.js +34 -34
  47. package/dist/x-notification-center.js +10 -9
  48. package/dist/x-organic-divider.js +19 -19
  49. package/dist/x-organic-progress.js +38 -38
  50. package/dist/x-organic-shape.js +14 -14
  51. package/dist/x-pagination.js +16 -16
  52. package/dist/x-particle-button.js +53 -0
  53. package/dist/x-popover.js +15 -15
  54. package/dist/x-progress-circle.js +11 -11
  55. package/dist/x-progress.js +11 -11
  56. package/dist/x-radio.js +11 -11
  57. package/dist/x-ripple-effect.js +12 -12
  58. package/dist/x-scroll-parallax.js +19 -19
  59. package/dist/x-scroll-stack.js +19 -19
  60. package/dist/x-scroll-story.js +36 -36
  61. package/dist/x-scroll-timeline.js +47 -47
  62. package/dist/x-scroll.js +42 -42
  63. package/dist/x-search-field.js +15 -15
  64. package/dist/x-select.js +11 -11
  65. package/dist/x-sidebar.js +17 -17
  66. package/dist/x-skeleton.js +6 -6
  67. package/dist/x-slider.js +16 -16
  68. package/dist/x-soft-body.js +22 -22
  69. package/dist/x-spacer.js +5 -5
  70. package/dist/x-spinner.js +5 -5
  71. package/dist/x-splash.js +13 -13
  72. package/dist/x-stat.js +11 -11
  73. package/dist/x-stepper.js +16 -16
  74. package/dist/x-switch.js +10 -10
  75. package/dist/x-tab.js +8 -8
  76. package/dist/x-table-cell.js +24 -24
  77. package/dist/x-table-row.js +10 -10
  78. package/dist/x-table.js +16 -16
  79. package/dist/x-tabs.js +11 -11
  80. package/dist/x-text-area.js +19 -19
  81. package/dist/x-theme.js +25 -24
  82. package/dist/x-timeline-item.js +24 -24
  83. package/dist/x-timeline.js +9 -9
  84. package/dist/x-toast.js +25 -25
  85. package/dist/x-toaster.js +8 -8
  86. package/dist/x-typography.js +11 -11
  87. package/package.json +14 -2
@@ -1,40 +1,40 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Ho=function(a){return typeof a==="string"?(a=a.trim().toLowerCase(),$APP.J(Go,a)?a:"bottom"):"bottom"},Io=function(a,b,c,d){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.r(isNaN(a))?b:Math.min(d,Math.max(c,a))):b},Jo=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 18 -7"},Ko=function(a){return typeof a==="string"&&a.trim().length>0?a.trim():null},Lo=function(a,b){return a+(b-a)*.1},Po=function(a,b,c,d,e,g,h){a=c-a;b=d-b;d=Math.sqrt(a*
3
- a+b*b);e=Math.max(0,1-d/e);c=e*e;g=c*g*20;d=d>.001?1/d:0;return new $APP.P(null,4,[Mo,e,$APP.ui,1+c*(h-1),No,a*d*g*.3,Oo,b*d*g*.3],null)},So=function(a,b){var c=a*a;a=c*28;c=.6+c*.9;switch(b){case "bottom":return new $APP.P(null,3,[Qo,0,Ro,-a,$APP.ui,c],null);case "top":return new $APP.P(null,3,[Qo,0,Ro,a,$APP.ui,c],null);case "left":return new $APP.P(null,3,[Qo,a,Ro,0,$APP.ui,c],null);case "right":return new $APP.P(null,3,[Qo,-a,Ro,0,$APP.ui,c],null);default:return new $APP.P(null,3,[Qo,0,Ro,-a,
4
- $APP.ui,c],null)}},Uo=function(a,b,c,d){a*=a;var e=12*d*a;return new $APP.P(null,3,[To,function(){switch(c){case "bottom":return-e;case "top":return e;case "left":return e;case "right":return-e;default:return-e}}(),$APP.dl,5*d*a*b,$APP.ui,1+.12*d*a],null)},$o=function(a){var b=$APP.l(a,"__xLiquidDockModel"),c=Vo[0];Vo[0]=c+1;var d="goo-"+$APP.S.g(c),e=a.attachShadow({mode:"open"}),g=document.createElement("style"),h=document.createElement("nav"),k=document.createElementNS("http://www.w3.org/2000/svg",
5
- "svg"),m=document.createElement("div"),p=document.createElement("div"),q=document.createElement("slot");a.__xLiquidDockUid=c;g.textContent=Wo;h.setAttribute("part","dock");h.setAttribute("role","navigation");h.setAttribute("aria-label","Navigation dock");k.setAttribute("part","filter-svg");k.setAttribute("aria-hidden","true");k.setAttribute("role","presentation");m.setAttribute("part","liquid-layer");m.style.filter="url(#"+$APP.S.g(d)+")";p.setAttribute("part","items");p.appendChild(q);var w=$APP.N(b);
6
- b=$APP.G(w,$APP.Jh);c=$APP.G(w,$APP.Xk);w=$APP.G(w,Xo);var x=document.createElementNS("http://www.w3.org/2000/svg","defs"),y=document.createElementNS("http://www.w3.org/2000/svg","filter"),A=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),B=document.createElementNS("http://www.w3.org/2000/svg","feColorMatrix"),E=document.createElementNS("http://www.w3.org/2000/svg","feTurbulence"),H=document.createElementNS("http://www.w3.org/2000/svg","feDisplacementMap");y.setAttribute("id",
7
- d);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(b));A.setAttribute("result","blur");B.setAttribute("in","blur");B.setAttribute("type","matrix");B.setAttribute("values",c);B.setAttribute("result","goo");E.setAttribute("type","fractalNoise");E.setAttribute("baseFrequency","0.015");E.setAttribute("numOctaves","2");E.setAttribute("seed","0");E.setAttribute("result",
8
- "noise");H.setAttribute("in","goo");H.setAttribute("in2","noise");H.setAttribute("scale",""+$APP.S.g(w));H.setAttribute("xChannelSelector","R");H.setAttribute("yChannelSelector","G");y.appendChild(A);y.appendChild(B);y.appendChild(E);y.appendChild(H);x.appendChild(y);k.appendChild(x);d=new $APP.P(null,5,[$APP.kk,y,$APP.Ii,A,$APP.Ll,B,$APP.Tk,E,$APP.dj,H],null);h.appendChild(k);h.appendChild(m);h.appendChild(p);e.appendChild(g);e.appendChild(h);e=$APP.Vf($APP.wc([d,new $APP.P(null,6,[$APP.bi,e,$APP.Xh,
9
- h,$APP.xj,k,Yo,m,Zo,p,$APP.Fi,q],null)]));a.__xLiquidDockRefs=e},kp=function(a){a=$APP.Q([$APP.nj,$APP.ql,ap,bp,$APP.Ah,$APP.Wl,cp,$APP.pi,dp,$APP.Ai,ep],[a.getAttribute("position"),a.getAttribute("blur"),a.getAttribute("magnet-strength"),a.getAttribute("ripple-speed"),a.getAttribute("threshold"),a.getAttribute("color"),a.getAttribute("ripple-scale"),a.getAttribute("gap"),a.getAttribute("bob-intensity"),a.getAttribute("disabled"),a.getAttribute("magnet-radius")]);var b=$APP.N(a);a=$APP.G(b,$APP.Ai);
10
- var c=$APP.G(b,ep),d=$APP.G(b,$APP.nj),e=$APP.G(b,$APP.ql),g=$APP.G(b,ap),h=$APP.G(b,bp),k=$APP.G(b,$APP.Ah),m=$APP.G(b,$APP.Wl),p=$APP.G(b,cp),q=$APP.G(b,$APP.pi);b=$APP.G(b,dp);d=Ho(d);return $APP.Q([$APP.fj,fp,gp,$APP.Xk,Xo,$APP.Jh,hp,$APP.oj,ip,$APP.Sl,jp,$APP.W],[Ko(m),Io(h,.03,.005,.15),Io(b,1,0,2),Jo(k),Io(p,8,0,40),Io(e,10,2,30),$APP.D.i(d,"left")||$APP.D.i(d,"right"),Io(q,8,0,40),Io(c,150,40,400),d,Io(g,.6,0,2),a!=null])},lp=function(a){a=$APP.Fi.g($APP.l(a,"__xLiquidDockRefs"));return $APP.r(a)?
11
- a.assignedElements():null},mp=function(a){var b=$APP.N($APP.l(a,"__xLiquidDockRefs")),c=$APP.G(b,Yo);b=function(){var q=lp(a);return $APP.r(q)?q:[]}().length*2;for(var d=function(){var q=$APP.l(a,"__xLiquidDockBlobs");return $APP.r(q)?q:[]}(),e=function(){var q=$APP.l(a,"__xLiquidDockBlobSt");return $APP.r(q)?q:[]}(),g=d.length,h=g;;)if(h<b){var k=document.createElement("div"),m=$APP.Xd(h);k.className=m?"blob blob-rest":"blob blob-phantom";var p=m?52:44;k.style.width=""+$APP.S.g(p)+"px";k.style.height=
12
- ""+$APP.S.g(p)+"px";c.appendChild(k);d.push(k);e.push(m?{type:"rest"}:{type:"phantom",cpDx:0,cpDy:0,cpScale:.6,cLift:0,cRot:0,cScale:1});h+=1}else break;for(c=g;;)if(c>b)g=d.pop(),e.pop(),$APP.r(g.parentNode)&&g.parentNode.removeChild(g),--c;else break;a.__xLiquidDockBlobs=d;a.__xLiquidDockBlobSt=e},np=function(a){var b=$APP.N($APP.l(a,"__xLiquidDockRefs")),c=$APP.G(b,$APP.Xh);b=lp(a);b=$APP.r(b)?b:[];var d=b.length,e=[];if($APP.r($APP.r(c)?d>0:c)){c=c.getBoundingClientRect();for(var g=0;;)if(g<d){var h=
13
- b[g].getBoundingClientRect();e.push({cx:h.left+h.width/2-c.left,cy:h.top+h.height/2-c.top});g+=1}else break}a.__xLiquidDockItemsR=e;return null},op=function(a,b){var c=$APP.N(b);b=$APP.G(c,$APP.fj);c=$APP.G(c,$APP.oj);$APP.r(b)?a.style.setProperty("--x-liquid-dock-color",b):a.style.removeProperty("--x-liquid-dock-color");a.style.setProperty("--x-liquid-dock-gap",""+$APP.S.g(c)+"px")},qp=function(a){$APP.I(window.matchMedia("(prefers-reduced-motion:reduce)").matches)||$APP.r($APP.W.g($APP.l(a,"__xLiquidDockModel")))||
14
- (a.__xLiquidDockSeed=0,$APP.n(a,"__xLiquidDockRaf",requestAnimationFrame(function(){return pp(a)})));return null},rp=function(a){var b=$APP.l(a,"__xLiquidDockRaf");$APP.r(b)&&(cancelAnimationFrame(b),a.__xLiquidDockRaf=null)},sp=function(a){a=lp(a);if($APP.r(a))for(var b=a.length,c=0;;)if(c<b)a[c].style.transform="",c+=1;else break},tp=function(a,b,c,d){var e=Date.now();a.__xLiquidDockBurst=e;b=new CustomEvent("x-liquid-dock-select",{bubbles:!0,composed:!0,cancelable:!0,detail:$APP.nh(new $APP.P(null,
15
- 3,["index",b,"item",c,"source",d],null))});a.dispatchEvent(b)},up=function(a){mp(a);var b=lp(a);if($APP.r(b))for(var c=b.length,d=0;;)if(d<c){var e=b[d];e.getAttribute("tabindex")==null&&e.setAttribute("tabindex","0");d+=1}else break;requestAnimationFrame(function(){return np(a)});return null},yp=function(a){function b(){return up(a)}function c(k){var m=$APP.l(a,"__xLiquidDockModel");if(!$APP.r($APP.W.g(m))){var p=lp(a),q=$APP.r(p)?p.length:null,w=k.key,x=hp.g(m);m=$APP.r(x)?"ArrowUp":"ArrowLeft";
16
- x=$APP.r(x)?"ArrowDown":"ArrowRight";var y=$APP.l(a,"__xLiquidDockFocus");y=$APP.r(y)?y:-1;$APP.r($APP.r(q)?q>0:q)&&($APP.D.i(w,m)?(k.preventDefault(),k=y<1?q-1:y-1,a.__xLiquidDockFocus=k,p[k].focus()):$APP.D.i(w,x)?(k.preventDefault(),k=y>=q-1?0:y+1,a.__xLiquidDockFocus=k,p[k].focus()):($APP.D.i(w,"Enter")||$APP.D.i(w," "))&&y>=0&&(k.preventDefault(),tp(a,y,p[y],"keyboard")))}return null}function d(k){if(!$APP.r($APP.W.g($APP.l(a,"__xLiquidDockModel")))){var m=lp(a);if($APP.r(m)){a:{k=k.target;for(var p=
17
- m.length,q=0;;)if(q<p){if($APP.D.i(k,m[q])){k=q;break a}q+=1}else{k=null;break a}k=void 0}$APP.r(k)&&tp(a,k,m[k],"pointer")}}return null}function e(){$APP.l(a,"__xLiquidDockMouse").active=!1;return null}function g(k){var m=$APP.N($APP.l(a,"__xLiquidDockRefs"));m=$APP.G(m,$APP.Xh);if($APP.r(m)){m=m.getBoundingClientRect();var p=$APP.l(a,"__xLiquidDockMouse");p.x=k.clientX-m.left;p.y=k.clientY-m.top;p.active=!0}return null}var h=$APP.N($APP.l(a,"__xLiquidDockRefs"));h=$APP.G(h,$APP.Fi);a.addEventListener("pointermove",
18
- g);a.addEventListener("pointerleave",e);a.addEventListener("click",d);a.addEventListener("keydown",c);$APP.r(h)&&h.addEventListener("slotchange",b);$APP.n(a,"__xLiquidDockHdl",new $APP.P(null,5,[vp,g,wp,e,$APP.Qj,d,xp,c,$APP.Fi,b],null))},zp=function(a){var b=$APP.l(a,"__xLiquidDockHdl");if($APP.r(b)){a.removeEventListener("pointermove",vp.g(b));a.removeEventListener("pointerleave",wp.g(b));a.removeEventListener("click",$APP.Qj.g(b));a.removeEventListener("keydown",xp.g(b));var c=$APP.l(a,"__xLiquidDockRefs");
19
- $APP.r(c)&&(c=$APP.N(c),c=$APP.G(c,$APP.Fi),$APP.r(c)&&c.removeEventListener("slotchange",$APP.Fi.g(b)));a.__xLiquidDockHdl=null}},Ap=function(a){Object.defineProperty(a,"position",{get:function(){return Ho(this.getAttribute("position"))},set:function(b){return b==null?this.removeAttribute("position"):this.setAttribute("position",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"gap",{get:function(){var b=this.getAttribute("gap");return Io(b,8,0,40)},set:function(b){return b==
20
- null?this.removeAttribute("gap"):this.setAttribute("gap",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"blur",{get:function(){var b=this.getAttribute("blur");return Io(b,10,2,30)},set:function(b){return b==null?this.removeAttribute("blur"):this.setAttribute("blur",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"threshold",{get:function(){return Jo(this.getAttribute("threshold"))},set:function(b){return b==null?this.removeAttribute("threshold"):
21
- this.setAttribute("threshold",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"rippleScale",{get:function(){var b=this.getAttribute("ripple-scale");return Io(b,8,0,40)},set:function(b){return b==null?this.removeAttribute("ripple-scale"):this.setAttribute("ripple-scale",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"rippleSpeed",{get:function(){var b=this.getAttribute("ripple-speed");return Io(b,.03,.005,.15)},set:function(b){return b==null?this.removeAttribute("ripple-speed"):
22
- this.setAttribute("ripple-speed",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"color",{get:function(){return Ko(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,"magnetRadius",{get:function(){var b=this.getAttribute("magnet-radius");return Io(b,150,40,400)},set:function(b){return b==null?this.removeAttribute("magnet-radius"):this.setAttribute("magnet-radius",
23
- ""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"magnetStrength",{get:function(){var b=this.getAttribute("magnet-strength");return Io(b,.6,0,2)},set:function(b){return b==null?this.removeAttribute("magnet-strength"):this.setAttribute("magnet-strength",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"bobIntensity",{get:function(){var b=this.getAttribute("bob-intensity");return Io(b,1,0,2)},set:function(b){return b==null?this.removeAttribute("bob-intensity"):
24
- this.setAttribute("bob-intensity",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.r(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},Cp=function(){var a=class extends HTMLElement{};a.observedAttributes=Bp;a.prototype.connectedCallback=function(){var b=this,c=kp(b);b.__xLiquidDockModel=c;$APP.n(b,"__xLiquidDockMouse",{x:0,y:0,active:!1});
25
- $APP.n(b,"__xLiquidDockBlobs",[]);$APP.n(b,"__xLiquidDockBlobSt",[]);$APP.n(b,"__xLiquidDockItemsR",[]);b.__xLiquidDockFocus=-1;b.__xLiquidDockBurst=0;$APP.r($APP.l(b,"__xLiquidDockRefs"))||$o(b);op(b,c);$APP.r(b.hasAttribute("role"))||b.setAttribute("role","navigation");zp(b);yp(b);c=$APP.l(b,"__xLiquidDockRO");$APP.r(c)&&c.disconnect();c=new ResizeObserver(function(){np(b);return null});b.__xLiquidDockRO=c;c.observe(b);requestAnimationFrame(function(){mp(b);np(b);return qp(b)});return null};a.prototype.disconnectedCallback=
26
- function(){rp(this);zp(this);sp(this);var b=$APP.l(this,"__xLiquidDockRO");$APP.r(b)&&(b.disconnect(),this.__xLiquidDockRO=null);return null};a.prototype.attributeChangedCallback=function(b,c,d){if($APP.O(c,d)&&(this.__xLiquidDockModel=b=kp(this),$APP.r($APP.l(this,"__xLiquidDockRefs")))){d=$APP.N(b);var e=$APP.G(d,$APP.Jh);c=$APP.G(d,$APP.Xk);d=$APP.G(d,Xo);var g=$APP.l(this,"__xLiquidDockRefs"),h=$APP.Ii.g(g);$APP.r(h)&&h.setAttribute("stdDeviation",""+$APP.S.g(e));e=$APP.Ll.g(g);$APP.r(e)&&e.setAttribute("values",
27
- c);c=$APP.dj.g(g);$APP.r(c)&&c.setAttribute("scale",""+$APP.S.g(d));op(this,b);np(this);$APP.r($APP.W.g(b))?(rp(this),sp(this)):$APP.r($APP.l(this,"__xLiquidDockRaf"))||qp(this)}return null};Ap(a.prototype);return a},Dp=function(){$APP.r(customElements.get("x-liquid-dock"))||customElements.define("x-liquid-dock",Cp());return null},fp=new $APP.K(null,"ripple-speed","ripple-speed",229709223),Xo=new $APP.K(null,"ripple-scale","ripple-scale",-1874116111),ep=new $APP.K(null,"magnet-radius-raw","magnet-radius-raw",
28
- 1386161852),Ep=new $APP.K(null,"bobIntensity","bobIntensity",-531647277),Zo=new $APP.K(null,"items-div","items-div",-555506089),Fp=new $APP.K(null,"magnetStrength","magnetStrength",331224709),Gp=new $APP.K(null,"rippleScale","rippleScale",-1633180735),ip=new $APP.K(null,"magnet-radius","magnet-radius",1447549494),Yo=new $APP.K(null,"liquid","liquid",1322031275),wp=new $APP.K(null,"leave","leave",1022579443),Mo=new $APP.K(null,"influence","influence",1453493017),hp=new $APP.K(null,"vertical?","vertical?",
29
- -1522630444),dp=new $APP.K(null,"bob-intensity-raw","bob-intensity-raw",-669810474),xp=new $APP.K(null,"key","key",-1516042587),vp=new $APP.K(null,"move","move",-2110884309),Ro=new $APP.K(null,"dy","dy",1719547243),Qo=new $APP.K(null,"dx","dx",-381796732),ap=new $APP.K(null,"magnet-strength-raw","magnet-strength-raw",535053898),bp=new $APP.K(null,"ripple-speed-raw","ripple-speed-raw",-1426902422),Hp=new $APP.K(null,"rippleSpeed","rippleSpeed",-1816718091),Oo=new $APP.K(null,"ty","ty",158290825),No=
30
- new $APP.K(null,"tx","tx",466630418),gp=new $APP.K(null,"bob-intensity","bob-intensity",-981181657),To=new $APP.K(null,"lift","lift",903632035),Ip=new $APP.K(null,"magnetRadius","magnetRadius",1616130031),jp=new $APP.K(null,"magnet-strength","magnet-strength",-1089389895),cp=new $APP.K(null,"ripple-scale-raw","ripple-scale-raw",1254964336);var Bp="position gap blur threshold ripple-scale ripple-speed color magnet-radius magnet-strength disabled bob-intensity".split(" ");$APP.Sd(["x-liquid-dock-select",new $APP.P(null,4,[$APP.U,new $APP.P(null,3,[$APP.Eh,$APP.V,$APP.Dj,new $APP.Sb(null,"Element","Element",1498489072,null),$APP.zk,$APP.X],null),$APP.yl,!0,$APP.Kl,!0,$APP.ll,!0],null)]);
31
- $APP.Q([Gp,$APP.fj,Fp,$APP.gj,$APP.Xk,Ip,Ep,$APP.Jh,Hp,$APP.oj,$APP.Sl],[new $APP.P(null,1,[$APP.Z,$APP.V],null),new $APP.P(null,1,[$APP.Z,$APP.X],null),new $APP.P(null,1,[$APP.Z,$APP.V],null),new $APP.P(null,1,[$APP.Z,$APP.qj],null),new $APP.P(null,1,[$APP.Z,$APP.X],null),new $APP.P(null,1,[$APP.Z,$APP.V],null),new $APP.P(null,1,[$APP.Z,$APP.V],null),new $APP.P(null,1,[$APP.Z,$APP.V],null),new $APP.P(null,1,[$APP.Z,$APP.V],null),new $APP.P(null,1,[$APP.Z,$APP.V],null),new $APP.P(null,1,[$APP.Z,$APP.X],
32
- null)]);var Go=new $APP.R(null,new $APP.P(null,4,["right",null,"top",null,"bottom",null,"left",null],null),null);var Vo=[0],Wo=":host{display:block;position:fixed;z-index:var("+$APP.S.g("--x-liquid-dock-z-index")+",50);pointer-events:auto;"+$APP.S.g("--x-liquid-dock-color")+':var(--x-color-primary,#6366f1);}:host(:not([position])),:host([position\x3d"bottom"]){bottom:12px;left:50%;transform:translateX(-50%);}:host([position\x3d"top"]){top:12px;left:50%;transform:translateX(-50%);}:host([position\x3d"left"]){left:12px;top:50%;transform:translateY(-50%);}:host([position\x3d"right"]){right:12px;top:50%;transform:translateY(-50%);}[part\x3ddock]{display:flex;align-items:center;gap:var('+
33
- $APP.S.g("--x-liquid-dock-gap")+",8px);padding:var("+$APP.S.g("--x-liquid-dock-padding")+",8px);border-radius:var("+$APP.S.g("--x-liquid-dock-radius")+",20px);background:var("+$APP.S.g("--x-liquid-dock-bg")+",rgba(255,255,255,0.88));border:1px solid var("+$APP.S.g("--x-liquid-dock-border")+",rgba(148,163,184,0.22));box-shadow:var("+$APP.S.g("--x-liquid-dock-shadow")+',0 8px 24px rgba(15,23,42,0.12));backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);position:relative;outline:none;}:host([position\x3d"left"]) [part\x3ddock],:host([position\x3d"right"]) [part\x3ddock]{flex-direction:column;}[part\x3dfilter-svg]{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none;}[part\x3dliquid-layer]{position:absolute;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none;}.blob{position:absolute;border-radius:50%;will-change:transform;pointer-events:none;background:var('+
34
- $APP.S.g("--x-liquid-dock-color")+',#6366f1);top:0;left:0;}.blob-rest{opacity:0.65;}.blob-phantom{opacity:0.5;}[part\x3ditems]{display:flex;align-items:center;gap:inherit;position:relative;z-index:1;}:host([position\x3d"left"]) [part\x3ditems],:host([position\x3d"right"]) [part\x3ditems]{flex-direction:column;}::slotted(*){width:var('+$APP.S.g("--x-liquid-dock-item-size")+",48px);height:var("+$APP.S.g("--x-liquid-dock-item-size")+",48px);display:flex;align-items:center;justify-content:center;cursor:pointer;will-change:transform;position:relative;z-index:1;border:none;background:transparent;color:inherit;font-size:1.4em;transition:none;border-radius:50%;}::slotted(:hover){background:color-mix(in srgb,var("+
35
- $APP.S.g("--x-liquid-dock-color")+",#6366f1) 12%,transparent);}::slotted(:focus-visible){outline:2px solid var("+$APP.S.g("--x-liquid-dock-color")+",#6366f1);outline-offset:2px;}@media(prefers-color-scheme:dark){:host{--x-liquid-dock-bg:rgba(15,23,42,0.84);--x-liquid-dock-border:rgba(51,65,85,0.9);--x-liquid-dock-shadow:var(--x-shadow-lg,0 14px 36px rgba(0,0,0,0.35));--x-liquid-dock-color:var(--x-color-primary,#818cf8);}}@media(prefers-reduced-motion:reduce){.blob{transition:none!important;}::slotted(*){transition:none!important;}}",
36
- pp=function pp(a){if($APP.r(a.isConnected)){var c=$APP.l(a,"__xLiquidDockModel"),d=$APP.l(a,"__xLiquidDockMouse"),e=$APP.l(a,"__xLiquidDockBlobs"),g=$APP.l(a,"__xLiquidDockBlobSt"),h=$APP.l(a,"__xLiquidDockItemsR"),k=function(){var cb=lp(a);return $APP.r(cb)?cb:[]}(),m=$APP.Zg.i(h.length,k.length),p=$APP.l(d,"x"),q=$APP.l(d,"y"),w=$APP.l(d,"active"),x=ip.g(c),y=jp.g(c),A=gp.g(c),B=$APP.Sl.g(c),E=1+y*.8,H=function(){var cb=$APP.l(a,"__xLiquidDockSeed");return $APP.r(cb)?cb:0}(),F=Date.now();d=function(){var cb=
37
- $APP.l(a,"__xLiquidDockBurst");return $APP.r(cb)?cb:0}();var M=F-d<300;if(M){F=(1-(F-d)/300)*20;var Y=Xo.g(c),ea=$APP.dj.g($APP.l(a,"__xLiquidDockRefs"));$APP.r(ea)&&ea.setAttribute("scale",""+$APP.S.g(Y+F))}for(F=0;;)if(F<m){Y=h[F];var ta=$APP.l(Y,"cx"),Ha=$APP.l(Y,"cy");ea=F*2;var Na=ea+1;if(Na<e.length){Y=Mo.g($APP.r(w)?Po(ta,Ha,p,q,x,y,E):new $APP.P(null,4,[Mo,0,$APP.ui,1,No,0,Oo,0],null));ea=e[ea];var Ya="translate("+$APP.S.g(ta-26)+"px,"+$APP.S.g(Ha-26)+"px)";ea.style.transform=Ya;var Za=So(Y,
38
- B);ea=g[Na];Ya=Qo.g(Za);var ib=Ro.g(Za);Za=$APP.ui.g(Za);Ya=Lo($APP.l(ea,"cpDx"),Ya);ib=Lo($APP.l(ea,"cpDy"),ib);Za=Lo($APP.l(ea,"cpScale"),Za);ea.cpDx=Ya;ea.cpDy=ib;ea.cpScale=Za;Na=e[Na];Ha="translate("+$APP.S.g(ta-22+Ya)+"px,"+$APP.S.g(Ha-22+ib)+"px) scale("+$APP.S.g(Za)+")";Na.style.transform=Ha;Na=Uo(Y,$APP.r(w)?function(){var cb=p-ta;return cb>1?1:cb<-1?-1:0}():0,B,A);Ya=Lo($APP.l(ea,"cLift"),To.g(Na));Ha=Lo($APP.l(ea,"cRot"),$APP.dl.g(Na));Na=Lo($APP.l(ea,"cScale"),$APP.ui.g(Na));ea.cLift=
39
- Ya;ea.cRot=Ha;ea.cScale=Na;ib=H+F*2.39996;Za=1-Y*.7;Y=Math.sin(ib)*1.8*Za*A;ea=Math.cos(ib*.7)*.8*Za*A;var Kb=Math.sin(ib*1.3)*1.2*Za*A;ib=k[F];Za=hp.g(c);Ya+=$APP.r(Za)?ea:Y;Ha+=Kb;Y=$APP.r(Za)?"translate("+$APP.S.g(Ya)+"px,"+$APP.S.g(Y)+"px) rotate("+$APP.S.g(Ha)+"deg) scale("+$APP.S.g(Na)+")":"translate("+$APP.S.g(ea)+"px,"+$APP.S.g(Ya)+"px) rotate("+$APP.S.g(Ha)+"deg) scale("+$APP.S.g(Na)+")";ib.style.transform=Y}F+=1}else break;g=$APP.l(a,"__xLiquidDockSeed")+fp.g(c);h=$APP.l(a,"__xLiquidDockRefs");
40
- e=.012+.006*Math.sin(g);a.__xLiquidDockSeed=g;g=$APP.Tk.g(h);$APP.r(g)&&g.setAttribute("baseFrequency",""+$APP.S.g(e));!M&&d>0&&(d=$APP.dj.g($APP.l(a,"__xLiquidDockRefs")),$APP.r(d)&&d.setAttribute("scale",""+$APP.S.g(Xo.g(c))),a.__xLiquidDockBurst=0);$APP.n(a,"__xLiquidDockRaf",requestAnimationFrame(function(){return pp.g?pp.g(a):pp.call(null,a)}))}return null};$APP.ka("baredom.exports.x_liquid_dock.init",Dp);export const init=Dp;
2
+ var Qo=function(a){return typeof a==="string"?(a=a.trim().toLowerCase(),$APP.J(Po,a)?a:"bottom"):"bottom"},Ro=function(a,b,c,d){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?b:Math.min(d,Math.max(c,a))):b},So=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 18 -7"},To=function(a){return typeof a==="string"&&a.trim().length>0?a.trim():null},Uo=function(a,b){return a+(b-a)*.1},Yo=function(a,b,c,d,e,g,h){a=c-a;b=d-b;d=Math.sqrt(a*
3
+ a+b*b);e=Math.max(0,1-d/e);c=e*e;g=c*g*20;d=d>.001?1/d:0;return new $APP.R(null,4,[Vo,e,$APP.Ci,1+c*(h-1),Wo,a*d*g*.3,Xo,b*d*g*.3],null)},ap=function(a,b){var c=a*a;a=c*28;c=.6+c*.9;switch(b){case "bottom":return new $APP.R(null,3,[Zo,0,$o,-a,$APP.Ci,c],null);case "top":return new $APP.R(null,3,[Zo,0,$o,a,$APP.Ci,c],null);case "left":return new $APP.R(null,3,[Zo,a,$o,0,$APP.Ci,c],null);case "right":return new $APP.R(null,3,[Zo,-a,$o,0,$APP.Ci,c],null);default:return new $APP.R(null,3,[Zo,0,$o,-a,
4
+ $APP.Ci,c],null)}},cp=function(a,b,c,d){a*=a;var e=12*d*a;return new $APP.R(null,3,[bp,function(){switch(c){case "bottom":return-e;case "top":return e;case "left":return e;case "right":return-e;default:return-e}}(),$APP.nl,5*d*a*b,$APP.Ci,1+.12*d*a],null)},ip=function(a){var b=$APP.k(a,"__xLiquidDockModel"),c=dp[0];dp[0]=c+1;var d="goo-"+$APP.T.g(c),e=a.attachShadow({mode:"open"}),g=document.createElement("style"),h=document.createElement("nav"),l=document.createElementNS("http://www.w3.org/2000/svg",
5
+ "svg"),m=document.createElement("div"),p=document.createElement("div"),q=document.createElement("slot");a.__xLiquidDockUid=c;g.textContent=ep;h.setAttribute("part","dock");h.setAttribute("role","navigation");h.setAttribute("aria-label","Navigation dock");l.setAttribute("part","filter-svg");l.setAttribute("aria-hidden","true");l.setAttribute("role","presentation");m.setAttribute("part","liquid-layer");m.style.filter="url(#"+$APP.T.g(d)+")";p.setAttribute("part","items");p.appendChild(q);var v=$APP.M(b);
6
+ b=$APP.D(v,$APP.Rh);c=$APP.D(v,$APP.gl);v=$APP.D(v,fp);var x=document.createElementNS("http://www.w3.org/2000/svg","defs"),y=document.createElementNS("http://www.w3.org/2000/svg","filter"),A=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),B=document.createElementNS("http://www.w3.org/2000/svg","feColorMatrix"),E=document.createElementNS("http://www.w3.org/2000/svg","feTurbulence"),H=document.createElementNS("http://www.w3.org/2000/svg","feDisplacementMap");y.setAttribute("id",
7
+ d);y.setAttribute("x","-20%");y.setAttribute("y","-20%");y.setAttribute("width","140%");y.setAttribute("height","140%");A.setAttribute("in","SourceGraphic");A.setAttribute("stdDeviation",""+$APP.T.g(b));A.setAttribute("result","blur");B.setAttribute("in","blur");B.setAttribute("type","matrix");B.setAttribute("values",c);B.setAttribute("result","goo");E.setAttribute("type","fractalNoise");E.setAttribute("baseFrequency","0.015");E.setAttribute("numOctaves","2");E.setAttribute("seed","0");E.setAttribute("result",
8
+ "noise");H.setAttribute("in","goo");H.setAttribute("in2","noise");H.setAttribute("scale",""+$APP.T.g(v));H.setAttribute("xChannelSelector","R");H.setAttribute("yChannelSelector","G");y.appendChild(A);y.appendChild(B);y.appendChild(E);y.appendChild(H);x.appendChild(y);l.appendChild(x);d=new $APP.R(null,5,[$APP.zk,y,$APP.Oi,A,$APP.cm,B,$APP.bl,E,$APP.jj,H],null);h.appendChild(l);h.appendChild(m);h.appendChild(p);e.appendChild(g);e.appendChild(h);e=$APP.Pf($APP.tc([d,new $APP.R(null,6,[$APP.ji,e,$APP.ei,
9
+ h,$APP.Jj,l,gp,m,hp,p,$APP.Li,q],null)]));a.__xLiquidDockRefs=e},Bp=function(a){a=$APP.xf([$APP.xj,$APP.Bl,jp,kp,$APP.Gh,$APP.om,tp,$APP.xi,up,$APP.Gi,vp],[a.getAttribute("position"),a.getAttribute("blur"),a.getAttribute("magnet-strength"),a.getAttribute("ripple-speed"),a.getAttribute("threshold"),a.getAttribute("color"),a.getAttribute("ripple-scale"),a.getAttribute("gap"),a.getAttribute("bob-intensity"),a.getAttribute("disabled"),a.getAttribute("magnet-radius")]);var b=$APP.M(a);a=$APP.D(b,$APP.Gi);
10
+ var c=$APP.D(b,vp),d=$APP.D(b,$APP.xj),e=$APP.D(b,$APP.Bl),g=$APP.D(b,jp),h=$APP.D(b,kp),l=$APP.D(b,$APP.Gh),m=$APP.D(b,$APP.om),p=$APP.D(b,tp),q=$APP.D(b,$APP.xi);b=$APP.D(b,up);d=Qo(d);return $APP.xf([$APP.lj,wp,xp,$APP.gl,fp,$APP.Rh,yp,$APP.zj,zp,$APP.km,Ap,$APP.W],[To(m),Ro(h,.03,.005,.15),Ro(b,1,0,2),So(l),Ro(p,8,0,40),Ro(e,10,2,30),$APP.C.i(d,"left")||$APP.C.i(d,"right"),Ro(q,8,0,40),Ro(c,150,40,400),d,Ro(g,.6,0,2),a!=null])},Cp=function(a){a=$APP.Li.g($APP.k(a,"__xLiquidDockRefs"));return $APP.n(a)?
11
+ a.assignedElements():null},Dp=function(a){var b=$APP.M($APP.k(a,"__xLiquidDockRefs")),c=$APP.D(b,gp);b=function(){var q=Cp(a);return $APP.n(q)?q:[]}().length*2;for(var d=function(){var q=$APP.k(a,"__xLiquidDockBlobs");return $APP.n(q)?q:[]}(),e=function(){var q=$APP.k(a,"__xLiquidDockBlobSt");return $APP.n(q)?q:[]}(),g=d.length,h=g;;)if(h<b){var l=document.createElement("div"),m=$APP.Ud(h);l.className=m?"blob blob-rest":"blob blob-phantom";var p=m?52:44;l.style.width=""+$APP.T.g(p)+"px";l.style.height=
12
+ ""+$APP.T.g(p)+"px";c.appendChild(l);d.push(l);e.push(m?{type:"rest"}:{type:"phantom",cpDx:0,cpDy:0,cpScale:.6,cLift:0,cRot:0,cScale:1});h+=1}else break;for(c=g;;)if(c>b)g=d.pop(),e.pop(),$APP.n(g.parentNode)&&g.parentNode.removeChild(g),--c;else break;a.__xLiquidDockBlobs=d;a.__xLiquidDockBlobSt=e},Ep=function(a){var b=$APP.M($APP.k(a,"__xLiquidDockRefs")),c=$APP.D(b,$APP.ei);b=Cp(a);b=$APP.n(b)?b:[];var d=b.length,e=[];if($APP.n($APP.n(c)?d>0:c)){c=c.getBoundingClientRect();for(var g=0;;)if(g<d){var h=
13
+ b[g].getBoundingClientRect();e.push({cx:h.left+h.width/2-c.left,cy:h.top+h.height/2-c.top});g+=1}else break}a.__xLiquidDockItemsR=e;return null},Fp=function(a,b){var c=$APP.M(b);b=$APP.D(c,$APP.lj);c=$APP.D(c,$APP.zj);$APP.n(b)?a.style.setProperty("--x-liquid-dock-color",b):a.style.removeProperty("--x-liquid-dock-color");a.style.setProperty("--x-liquid-dock-gap",""+$APP.T.g(c)+"px")},Hp=function(a){$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)||$APP.n($APP.W.g($APP.k(a,"__xLiquidDockModel")))||
14
+ (a.__xLiquidDockSeed=0,$APP.ia(a,"__xLiquidDockRaf",requestAnimationFrame(function(){return Gp(a)})));return null},Ip=function(a){var b=$APP.k(a,"__xLiquidDockRaf");$APP.n(b)&&(cancelAnimationFrame(b),a.__xLiquidDockRaf=null)},Jp=function(a){a=Cp(a);if($APP.n(a))for(var b=a.length,c=0;;)if(c<b)a[c].style.transform="",c+=1;else break},Kp=function(a,b,c,d){var e=Date.now();a.__xLiquidDockBurst=e;b=new CustomEvent("x-liquid-dock-select",{bubbles:!0,composed:!0,cancelable:!0,detail:$APP.ph(new $APP.R(null,
15
+ 3,["index",b,"item",c,"source",d],null))});a.dispatchEvent(b)},Lp=function(a){Dp(a);var b=Cp(a);if($APP.n(b))for(var c=b.length,d=0;;)if(d<c){var e=b[d];e.getAttribute("tabindex")==null&&e.setAttribute("tabindex","0");d+=1}else break;requestAnimationFrame(function(){return Ep(a)});return null},Pp=function(a){function b(){return Lp(a)}function c(l){var m=$APP.k(a,"__xLiquidDockModel");if(!$APP.n($APP.W.g(m))){var p=Cp(a),q=$APP.n(p)?p.length:null,v=l.key,x=yp.g(m);m=$APP.n(x)?"ArrowUp":"ArrowLeft";
16
+ x=$APP.n(x)?"ArrowDown":"ArrowRight";var y=$APP.k(a,"__xLiquidDockFocus");y=$APP.n(y)?y:-1;$APP.n($APP.n(q)?q>0:q)&&($APP.C.i(v,m)?(l.preventDefault(),l=y<1?q-1:y-1,a.__xLiquidDockFocus=l,p[l].focus()):$APP.C.i(v,x)?(l.preventDefault(),l=y>=q-1?0:y+1,a.__xLiquidDockFocus=l,p[l].focus()):($APP.C.i(v,"Enter")||$APP.C.i(v," "))&&y>=0&&(l.preventDefault(),Kp(a,y,p[y],"keyboard")))}return null}function d(l){if(!$APP.n($APP.W.g($APP.k(a,"__xLiquidDockModel")))){var m=Cp(a);if($APP.n(m)){a:{l=l.target;for(var p=
17
+ m.length,q=0;;)if(q<p){if($APP.C.i(l,m[q])){l=q;break a}q+=1}else{l=null;break a}l=void 0}$APP.n(l)&&Kp(a,l,m[l],"pointer")}}return null}function e(){$APP.k(a,"__xLiquidDockMouse").active=!1;return null}function g(l){var m=$APP.M($APP.k(a,"__xLiquidDockRefs"));m=$APP.D(m,$APP.ei);if($APP.n(m)){m=m.getBoundingClientRect();var p=$APP.k(a,"__xLiquidDockMouse");p.x=l.clientX-m.left;p.y=l.clientY-m.top;p.active=!0}return null}var h=$APP.M($APP.k(a,"__xLiquidDockRefs"));h=$APP.D(h,$APP.Li);a.addEventListener("pointermove",
18
+ g);a.addEventListener("pointerleave",e);a.addEventListener("click",d);a.addEventListener("keydown",c);$APP.n(h)&&h.addEventListener("slotchange",b);$APP.ia(a,"__xLiquidDockHdl",new $APP.R(null,5,[Mp,g,Np,e,$APP.ek,d,Op,c,$APP.Li,b],null))},Qp=function(a){var b=$APP.k(a,"__xLiquidDockHdl");if($APP.n(b)){a.removeEventListener("pointermove",Mp.g(b));a.removeEventListener("pointerleave",Np.g(b));a.removeEventListener("click",$APP.ek.g(b));a.removeEventListener("keydown",Op.g(b));var c=$APP.k(a,"__xLiquidDockRefs");
19
+ $APP.n(c)&&(c=$APP.M(c),c=$APP.D(c,$APP.Li),$APP.n(c)&&c.removeEventListener("slotchange",$APP.Li.g(b)));a.__xLiquidDockHdl=null}},Rp=function(a){Object.defineProperty(a,"position",{get:function(){return Qo(this.getAttribute("position"))},set:function(b){return b==null?this.removeAttribute("position"):this.setAttribute("position",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"gap",{get:function(){var b=this.getAttribute("gap");return Ro(b,8,0,40)},set:function(b){return b==
20
+ null?this.removeAttribute("gap"):this.setAttribute("gap",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"blur",{get:function(){var b=this.getAttribute("blur");return Ro(b,10,2,30)},set:function(b){return b==null?this.removeAttribute("blur"):this.setAttribute("blur",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"threshold",{get:function(){return So(this.getAttribute("threshold"))},set:function(b){return b==null?this.removeAttribute("threshold"):
21
+ this.setAttribute("threshold",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"rippleScale",{get:function(){var b=this.getAttribute("ripple-scale");return Ro(b,8,0,40)},set:function(b){return b==null?this.removeAttribute("ripple-scale"):this.setAttribute("ripple-scale",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"rippleSpeed",{get:function(){var b=this.getAttribute("ripple-speed");return Ro(b,.03,.005,.15)},set:function(b){return b==null?this.removeAttribute("ripple-speed"):
22
+ this.setAttribute("ripple-speed",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"color",{get:function(){return To(this.getAttribute("color"))},set:function(b){return b==null?this.removeAttribute("color"):this.setAttribute("color",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"magnetRadius",{get:function(){var b=this.getAttribute("magnet-radius");return Ro(b,150,40,400)},set:function(b){return b==null?this.removeAttribute("magnet-radius"):this.setAttribute("magnet-radius",
23
+ ""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"magnetStrength",{get:function(){var b=this.getAttribute("magnet-strength");return Ro(b,.6,0,2)},set:function(b){return b==null?this.removeAttribute("magnet-strength"):this.setAttribute("magnet-strength",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"bobIntensity",{get:function(){var b=this.getAttribute("bob-intensity");return Ro(b,1,0,2)},set:function(b){return b==null?this.removeAttribute("bob-intensity"):
24
+ this.setAttribute("bob-intensity",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},Tp=function(){var a=class extends HTMLElement{};a.observedAttributes=Sp;a.prototype.connectedCallback=function(){var b=this,c=Bp(b);b.__xLiquidDockModel=c;$APP.ia(b,"__xLiquidDockMouse",{x:0,y:0,active:!1});
25
+ $APP.ia(b,"__xLiquidDockBlobs",[]);$APP.ia(b,"__xLiquidDockBlobSt",[]);$APP.ia(b,"__xLiquidDockItemsR",[]);b.__xLiquidDockFocus=-1;b.__xLiquidDockBurst=0;$APP.n($APP.k(b,"__xLiquidDockRefs"))||ip(b);Fp(b,c);$APP.n(b.hasAttribute("role"))||b.setAttribute("role","navigation");Qp(b);Pp(b);c=$APP.k(b,"__xLiquidDockRO");$APP.n(c)&&c.disconnect();c=new ResizeObserver(function(){Ep(b);return null});b.__xLiquidDockRO=c;c.observe(b);requestAnimationFrame(function(){Dp(b);Ep(b);return Hp(b)});return null};
26
+ a.prototype.disconnectedCallback=function(){Ip(this);Qp(this);Jp(this);var b=$APP.k(this,"__xLiquidDockRO");$APP.n(b)&&(b.disconnect(),this.__xLiquidDockRO=null);return null};a.prototype.attributeChangedCallback=function(b,c,d){if($APP.N(c,d)&&(this.__xLiquidDockModel=b=Bp(this),$APP.n($APP.k(this,"__xLiquidDockRefs")))){d=$APP.M(b);var e=$APP.D(d,$APP.Rh);c=$APP.D(d,$APP.gl);d=$APP.D(d,fp);var g=$APP.k(this,"__xLiquidDockRefs"),h=$APP.Oi.g(g);$APP.n(h)&&h.setAttribute("stdDeviation",""+$APP.T.g(e));
27
+ e=$APP.cm.g(g);$APP.n(e)&&e.setAttribute("values",c);c=$APP.jj.g(g);$APP.n(c)&&c.setAttribute("scale",""+$APP.T.g(d));Fp(this,b);Ep(this);$APP.n($APP.W.g(b))?(Ip(this),Jp(this)):$APP.n($APP.k(this,"__xLiquidDockRaf"))||Hp(this)}return null};Rp(a.prototype);return a},Up=function(){$APP.n(customElements.get("x-liquid-dock"))||customElements.define("x-liquid-dock",Tp());return null},wp=new $APP.K(null,"ripple-speed","ripple-speed",229709223),fp=new $APP.K(null,"ripple-scale","ripple-scale",-1874116111),
28
+ vp=new $APP.K(null,"magnet-radius-raw","magnet-radius-raw",1386161852),Vp=new $APP.K(null,"bobIntensity","bobIntensity",-531647277),hp=new $APP.K(null,"items-div","items-div",-555506089),Wp=new $APP.K(null,"magnetStrength","magnetStrength",331224709),Xp=new $APP.K(null,"rippleScale","rippleScale",-1633180735),zp=new $APP.K(null,"magnet-radius","magnet-radius",1447549494),gp=new $APP.K(null,"liquid","liquid",1322031275),Np=new $APP.K(null,"leave","leave",1022579443),Vo=new $APP.K(null,"influence",
29
+ "influence",1453493017),yp=new $APP.K(null,"vertical?","vertical?",-1522630444),up=new $APP.K(null,"bob-intensity-raw","bob-intensity-raw",-669810474),Op=new $APP.K(null,"key","key",-1516042587),Mp=new $APP.K(null,"move","move",-2110884309),$o=new $APP.K(null,"dy","dy",1719547243),Zo=new $APP.K(null,"dx","dx",-381796732),jp=new $APP.K(null,"magnet-strength-raw","magnet-strength-raw",535053898),kp=new $APP.K(null,"ripple-speed-raw","ripple-speed-raw",-1426902422),Yp=new $APP.K(null,"rippleSpeed","rippleSpeed",
30
+ -1816718091),Xo=new $APP.K(null,"ty","ty",158290825),Wo=new $APP.K(null,"tx","tx",466630418),xp=new $APP.K(null,"bob-intensity","bob-intensity",-981181657),bp=new $APP.K(null,"lift","lift",903632035),Zp=new $APP.K(null,"magnetRadius","magnetRadius",1616130031),Ap=new $APP.K(null,"magnet-strength","magnet-strength",-1089389895),tp=new $APP.K(null,"ripple-scale-raw","ripple-scale-raw",1254964336);var Sp="position gap blur threshold ripple-scale ripple-speed color magnet-radius magnet-strength disabled bob-intensity".split(" ");$APP.Pd(["x-liquid-dock-select",new $APP.R(null,4,[$APP.yj,new $APP.R(null,3,[$APP.Lh,$APP.V,$APP.Qj,new $APP.Rb(null,"Element","Element",1498489072,null),$APP.Hk,$APP.X],null),$APP.Ql,!0,$APP.bm,!0,$APP.wl,!0],null)]);
31
+ $APP.xf([Xp,$APP.lj,Wp,$APP.mj,$APP.gl,Zp,Vp,$APP.Rh,Yp,$APP.zj,$APP.km],[new $APP.R(null,1,[$APP.Z,$APP.V],null),new $APP.R(null,1,[$APP.Z,$APP.X],null),new $APP.R(null,1,[$APP.Z,$APP.V],null),new $APP.R(null,1,[$APP.Z,$APP.Bj],null),new $APP.R(null,1,[$APP.Z,$APP.X],null),new $APP.R(null,1,[$APP.Z,$APP.V],null),new $APP.R(null,1,[$APP.Z,$APP.V],null),new $APP.R(null,1,[$APP.Z,$APP.V],null),new $APP.R(null,1,[$APP.Z,$APP.V],null),new $APP.R(null,1,[$APP.Z,$APP.V],null),new $APP.R(null,1,[$APP.Z,
32
+ $APP.X],null)]);var Po=new $APP.S(null,new $APP.R(null,4,["right",null,"top",null,"bottom",null,"left",null],null),null);var dp=[0],ep=":host{display:block;position:fixed;z-index:var("+$APP.T.g("--x-liquid-dock-z-index")+",50);pointer-events:auto;"+$APP.T.g("--x-liquid-dock-color")+':var(--x-color-primary,#6366f1);}:host(:not([position])),:host([position\x3d"bottom"]){bottom:12px;left:50%;transform:translateX(-50%);}:host([position\x3d"top"]){top:12px;left:50%;transform:translateX(-50%);}:host([position\x3d"left"]){left:12px;top:50%;transform:translateY(-50%);}:host([position\x3d"right"]){right:12px;top:50%;transform:translateY(-50%);}[part\x3ddock]{display:flex;align-items:center;gap:var('+
33
+ $APP.T.g("--x-liquid-dock-gap")+",8px);padding:var("+$APP.T.g("--x-liquid-dock-padding")+",8px);border-radius:var("+$APP.T.g("--x-liquid-dock-radius")+",20px);background:var("+$APP.T.g("--x-liquid-dock-bg")+",rgba(255,255,255,0.88));border:1px solid var("+$APP.T.g("--x-liquid-dock-border")+",rgba(148,163,184,0.22));box-shadow:var("+$APP.T.g("--x-liquid-dock-shadow")+',0 8px 24px rgba(15,23,42,0.12));backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);position:relative;outline:none;}:host([position\x3d"left"]) [part\x3ddock],:host([position\x3d"right"]) [part\x3ddock]{flex-direction:column;}[part\x3dfilter-svg]{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none;}[part\x3dliquid-layer]{position:absolute;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none;}.blob{position:absolute;border-radius:50%;will-change:transform;pointer-events:none;background:var('+
34
+ $APP.T.g("--x-liquid-dock-color")+',#6366f1);top:0;left:0;}.blob-rest{opacity:0.65;}.blob-phantom{opacity:0.5;}[part\x3ditems]{display:flex;align-items:center;gap:inherit;position:relative;z-index:1;}:host([position\x3d"left"]) [part\x3ditems],:host([position\x3d"right"]) [part\x3ditems]{flex-direction:column;}::slotted(*){width:var('+$APP.T.g("--x-liquid-dock-item-size")+",48px);height:var("+$APP.T.g("--x-liquid-dock-item-size")+",48px);display:flex;align-items:center;justify-content:center;cursor:pointer;will-change:transform;position:relative;z-index:1;border:none;background:transparent;color:inherit;font-size:1.4em;transition:none;border-radius:50%;}::slotted(:hover){background:color-mix(in srgb,var("+
35
+ $APP.T.g("--x-liquid-dock-color")+",#6366f1) 12%,transparent);}::slotted(:focus-visible){outline:2px solid var("+$APP.T.g("--x-liquid-dock-color")+",#6366f1);outline-offset:2px;}@media(prefers-color-scheme:dark){:host{--x-liquid-dock-bg:rgba(15,23,42,0.84);--x-liquid-dock-border:rgba(51,65,85,0.9);--x-liquid-dock-shadow:var(--x-shadow-lg,0 14px 36px rgba(0,0,0,0.35));--x-liquid-dock-color:var(--x-color-primary,#818cf8);}}@media(prefers-reduced-motion:reduce){.blob{transition:none!important;}::slotted(*){transition:none!important;}}",
36
+ Gp=function Gp(a){if($APP.n(a.isConnected)){var c=$APP.k(a,"__xLiquidDockModel"),d=$APP.k(a,"__xLiquidDockMouse"),e=$APP.k(a,"__xLiquidDockBlobs"),g=$APP.k(a,"__xLiquidDockBlobSt"),h=$APP.k(a,"__xLiquidDockItemsR"),l=function(){var bb=Cp(a);return $APP.n(bb)?bb:[]}(),m=$APP.ah.i(h.length,l.length),p=$APP.k(d,"x"),q=$APP.k(d,"y"),v=$APP.k(d,"active"),x=zp.g(c),y=Ap.g(c),A=xp.g(c),B=$APP.km.g(c),E=1+y*.8,H=function(){var bb=$APP.k(a,"__xLiquidDockSeed");return $APP.n(bb)?bb:0}(),G=Date.now();d=function(){var bb=
37
+ $APP.k(a,"__xLiquidDockBurst");return $APP.n(bb)?bb:0}();var I=G-d<300;if(I){G=(1-(G-d)/300)*20;var Q=fp.g(c),Y=$APP.jj.g($APP.k(a,"__xLiquidDockRefs"));$APP.n(Y)&&Y.setAttribute("scale",""+$APP.T.g(Q+G))}for(G=0;;)if(G<m){Q=h[G];var la=$APP.k(Q,"cx"),za=$APP.k(Q,"cy");Y=G*2;var Ka=Y+1;if(Ka<e.length){Q=Vo.g($APP.n(v)?Yo(la,za,p,q,x,y,E):new $APP.R(null,4,[Vo,0,$APP.Ci,1,Wo,0,Xo,0],null));Y=e[Y];var $a="translate("+$APP.T.g(la-26)+"px,"+$APP.T.g(za-26)+"px)";Y.style.transform=$a;var ab=ap(Q,B);Y=
38
+ g[Ka];$a=Zo.g(ab);var jb=$o.g(ab);ab=$APP.Ci.g(ab);$a=Uo($APP.k(Y,"cpDx"),$a);jb=Uo($APP.k(Y,"cpDy"),jb);ab=Uo($APP.k(Y,"cpScale"),ab);Y.cpDx=$a;Y.cpDy=jb;Y.cpScale=ab;Ka=e[Ka];za="translate("+$APP.T.g(la-22+$a)+"px,"+$APP.T.g(za-22+jb)+"px) scale("+$APP.T.g(ab)+")";Ka.style.transform=za;Ka=cp(Q,$APP.n(v)?function(){var bb=p-la;return bb>1?1:bb<-1?-1:0}():0,B,A);$a=Uo($APP.k(Y,"cLift"),bp.g(Ka));za=Uo($APP.k(Y,"cRot"),$APP.nl.g(Ka));Ka=Uo($APP.k(Y,"cScale"),$APP.Ci.g(Ka));Y.cLift=$a;Y.cRot=za;Y.cScale=
39
+ Ka;jb=H+G*2.39996;ab=1-Q*.7;Q=Math.sin(jb)*1.8*ab*A;Y=Math.cos(jb*.7)*.8*ab*A;var Ib=Math.sin(jb*1.3)*1.2*ab*A;jb=l[G];ab=yp.g(c);$a+=$APP.n(ab)?Y:Q;za+=Ib;Q=$APP.n(ab)?"translate("+$APP.T.g($a)+"px,"+$APP.T.g(Q)+"px) rotate("+$APP.T.g(za)+"deg) scale("+$APP.T.g(Ka)+")":"translate("+$APP.T.g(Y)+"px,"+$APP.T.g($a)+"px) rotate("+$APP.T.g(za)+"deg) scale("+$APP.T.g(Ka)+")";jb.style.transform=Q}G+=1}else break;g=$APP.k(a,"__xLiquidDockSeed")+wp.g(c);h=$APP.k(a,"__xLiquidDockRefs");e=.012+.006*Math.sin(g);
40
+ a.__xLiquidDockSeed=g;g=$APP.bl.g(h);$APP.n(g)&&g.setAttribute("baseFrequency",""+$APP.T.g(e));!I&&d>0&&(d=$APP.jj.g($APP.k(a,"__xLiquidDockRefs")),$APP.n(d)&&d.setAttribute("scale",""+$APP.T.g(fp.g(c))),a.__xLiquidDockBurst=0);$APP.ia(a,"__xLiquidDockRaf",requestAnimationFrame(function(){return Gp.g?Gp.g(a):Gp.call(null,a)}))}return null};$APP.fa("baredom.exports.x_liquid_dock.init",Up);export const init=Up;
@@ -1,45 +1,46 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var D_=function(a){function b(d,e){d.push(e);return d}var c=[];return $APP.Zc?$APP.Zc(b,c,a):$APP.$c.call(null,b,c,a)},F_=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.J(E_,a)?a:"vertical"},H_=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.J(G_,a)?a:"fill"},J_=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.J(I_,a)?a:"gold"},K_=function(a,b){if(typeof a==="string"){a=a.trim();if($APP.D.i(a,""))return b;a=parseFloat(a);
3
- return $APP.r(isNaN(a))?b:Math.min(1,Math.max(0,a))}return b},L_=function(a){if(typeof a==="string"){a=a.trim();if($APP.D.i(a,""))return 3;a=parseInt(a,10);return $APP.r(isNaN(a))?3:Math.min(5,Math.max(2,a))}return 3},P_=function(a,b){b=b>1?a/(b-1):1;return new $APP.P(null,6,[M_,a*2.39996,N_,.7+.6*b,O_,.6+.8*b,$APP.Wk,200-a*30,$APP.Wj,10+a*3,$APP.Ph,1],null)},Q_=function(a,b,c){b-=c;return b<=0?0:Math.min(1,Math.max(0,a/b))},R_=function(a,b,c){return c<=.001?0:Math.min(1,Math.abs(a-b)/c/2E3)},S_=
4
- function(a,b,c,d){return c*(.5*Math.sin(a*6.283185307179586*3+b+d)+.3*Math.sin(a*6.283185307179586*5+b*1.3+d*1.7)+.2*Math.sin(a*6.283185307179586*7+b*.7+d*2.3))},T_=function(a,b,c,d,e,g){b=c+(e*(b-a)-g*c)*d;return[a+b*d,b]},U_=function(a,b,c){return a+(b-a)*c},V_=function(){return $APP.I(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},W_=function(a,b){if(typeof b==="string"&&$APP.O(b.trim(),""))a=document.querySelector(b);else a:{for(a=a.parentElement;;)if($APP.r(a)){var c=window.getComputedStyle(a);
5
- b=c.getPropertyValue("overflow-y");c=c.getPropertyValue("overflow-x");if($APP.D.i(b,"auto")||$APP.D.i(b,"scroll")||$APP.D.i(c,"auto")||$APP.D.i(c,"scroll"))break a;a=a.parentElement}else{a=null;break a}a=void 0}return a},X_=function(a,b){return a==null?$APP.D.i(b,"horizontal")?[window.scrollX,document.documentElement.scrollWidth,window.innerWidth]:[window.scrollY,document.documentElement.scrollHeight,window.innerHeight]:$APP.D.i(b,"horizontal")?[a.scrollLeft,a.scrollWidth,a.clientWidth]:[a.scrollTop,
6
- a.scrollHeight,a.clientHeight]},e0=function(a){var b=Y_.Tb(null,Y_.wb(null)+1),c=a.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElementNS("http://www.w3.org/2000/svg","svg"),h=document.createElementNS("http://www.w3.org/2000/svg","defs"),k=document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),m=document.createElementNS("http://www.w3.org/2000/svg","stop"),p=document.createElementNS("http://www.w3.org/2000/svg","stop"),
7
- q=document.createElementNS("http://www.w3.org/2000/svg","stop"),w=document.createElementNS("http://www.w3.org/2000/svg","filter"),x=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),y=document.createElementNS("http://www.w3.org/2000/svg","feSpecularLighting"),A=document.createElementNS("http://www.w3.org/2000/svg","fePointLight"),B=document.createElementNS("http://www.w3.org/2000/svg","feComposite"),E=document.createElementNS("http://www.w3.org/2000/svg","feComposite"),H=D_(function(){return function Na(Ha){return new $APP.ud(null,
8
- function(){for(;;){var Ya=$APP.u(Ha);if(Ya){if($APP.Pc(Ya)){var Za=$APP.yb(Ya),ib=$APP.C(Za),Kb=$APP.xd(ib);a:{for(var cb=0;;)if(cb<ib){$APP.Ac(Za,cb);var gc=Kb,Tb=document.createElementNS("http://www.w3.org/2000/svg","path");gc.add(Tb);cb+=1}else{Za=!0;break a}Za=void 0}return Za?$APP.Ad(Kb.ba(),Na($APP.zb(Ya))):$APP.Ad(Kb.ba(),null)}$APP.v(Ya);return $APP.rd(document.createElementNS("http://www.w3.org/2000/svg","path"),Na($APP.Zb(Ya)))}return null}},null)}($APP.kg(0,5))}()),F=document.createElement("div"),
9
- M=document.createElement("slot"),Y=""+$APP.S.g("xlf-grad-")+$APP.S.g(b),ea=""+$APP.S.g("xlf-spec-")+$APP.S.g(b);d.textContent=Z_;e.setAttribute("part","container");g.setAttribute("part","svg");g.setAttribute("viewBox","0 0 300 200");g.setAttribute("preserveAspectRatio","none");g.setAttribute("aria-hidden","true");k.setAttribute("id",Y);k.setAttribute("gradientUnits","userSpaceOnUse");k.setAttribute("cx","150");k.setAttribute("cy","200");k.setAttribute("r","200");k.setAttribute("fx","150");k.setAttribute("fy",
10
- "200");m.setAttribute("offset","0%");m.setAttribute("stop-color","var("+$APP.S.g("--x-liquid-fill-color-1")+",#B8860B)");p.setAttribute("offset","50%");p.setAttribute("stop-color","var("+$APP.S.g("--x-liquid-fill-color-2")+",#D4AF37)");q.setAttribute("offset","100%");q.setAttribute("stop-color","var("+$APP.S.g("--x-liquid-fill-color-3")+",#F9F295)");k.appendChild(m);k.appendChild(p);k.appendChild(q);w.setAttribute("id",ea);w.setAttribute("x","-10%");w.setAttribute("y","-10%");w.setAttribute("width",
11
- "120%");w.setAttribute("height","120%");x.setAttribute("in","SourceAlpha");x.setAttribute("stdDeviation","3");x.setAttribute("result","blur");y.setAttribute("in","blur");y.setAttribute("surfaceScale","5");y.setAttribute("specularConstant","0.75");y.setAttribute("specularExponent","20");y.setAttribute("lighting-color","var("+$APP.S.g("--x-liquid-fill-specular-color")+",rgba(255,255,240,0.6))");y.setAttribute("result","specular");y.appendChild(A);A.setAttribute("x","90");A.setAttribute("y","-50");A.setAttribute("z",
12
- "200");B.setAttribute("in","specular");B.setAttribute("in2","SourceAlpha");B.setAttribute("operator","in");B.setAttribute("result","specClip");E.setAttribute("in","SourceGraphic");E.setAttribute("in2","specClip");E.setAttribute("operator","arithmetic");E.setAttribute("k1","0");E.setAttribute("k2","1");E.setAttribute("k3","1");E.setAttribute("k4","0");w.appendChild(x);w.appendChild(y);w.appendChild(B);w.appendChild(E);h.appendChild(k);h.appendChild(w);g.appendChild(h);for(h=0;;)if(h<5)m=H[h],m.setAttribute("class",
13
- "wave-layer"),m.setAttribute("data-layer",""+$APP.S.g(h)),m.setAttribute("fill","url(#"+$APP.S.g(Y)+")"),m.style.display="none",g.appendChild(m),h+=1;else break;F.setAttribute("part","content");F.appendChild(M);e.appendChild(g);e.appendChild(F);c.appendChild(d);c.appendChild(e);a.__xLiquidFillUid=b;$APP.n(a,"__xLiquidFillRefs",new $APP.P(null,8,[$APP.bi,c,$APP.xj,g,$_,H,$APP.Vh,F,a0,A,b0,k,c0,ea,d0,Y],null))},o0=function(a){a=new $APP.P(null,8,[f0,a.getAttribute("target"),$APP.$k,a.getAttribute("orientation"),
14
- $APP.Ck,a.getAttribute("mode"),g0,a.getAttribute("theme"),h0,a.getAttribute("wave-intensity"),i0,a.getAttribute("splash-intensity"),j0,a.getAttribute("layers"),$APP.Ai,a.getAttribute("disabled")],null);var b=$APP.N(a);a=$APP.G(b,f0);var c=$APP.G(b,$APP.$k),d=$APP.G(b,$APP.Ck),e=$APP.G(b,g0),g=$APP.G(b,h0),h=$APP.G(b,i0),k=$APP.G(b,j0);b=$APP.G(b,$APP.Ai);return new $APP.P(null,8,[k0,typeof a==="string"&&$APP.O(a.trim(),"")?a.trim():null,$APP.yk,F_(c),$APP.Ri,H_(d),l0,J_(e),m0,K_(g,.5),n0,K_(h,.7),
15
- $APP.Bi,L_(k),$APP.W,b!=null],null)},p0=function(a,b){var c=new Float64Array(b);a.__xLiquidFillWA=c;c=new Float64Array(b);a.__xLiquidFillWV=c;b=new Float64Array(b);a.__xLiquidFillWP=b},q0=function(a,b){var c=$APP.N($APP.l(a,"__xLiquidFillRefs"));a=$APP.G(c,$_);c=$APP.G(c,c0);for(var d=0;;)if(d<5){var e=a[d];if(d<b){var g=P_(d,b),h=$APP.D.i(d,b-1);e.style.display="";e.setAttribute("opacity",""+$APP.S.g($APP.Ph.g(g)));h?e.setAttribute("filter","url(#"+$APP.S.g(c)+")"):e.removeAttribute("filter")}else e.style.display=
16
- "none";d+=1}else break},r0=function(a){return $APP.D.i("vertical",$APP.yk.g(a))&&$APP.O("bar",$APP.Ri.g(a))},s0=function(a){var b=$APP.l(a,"__xLiquidFillModel"),c=$APP.l(a,"__xLiquidFillW"),d=$APP.l(a,"__xLiquidFillH"),e=$APP.l(a,"__xLiquidFillTime"),g=$APP.l(a,"__xLiquidFillProg"),h=$APP.Bi.g(b);b=r0(b);var k=$APP.l(a,"__xLiquidFillWA"),m=$APP.l(a,"__xLiquidFillWP");a=$APP.N($APP.l(a,"__xLiquidFillRefs"));a=$APP.G(a,$_);if($APP.r($APP.r(c)?$APP.r(d)?c>0&&d>0:d:c))for(var p=0;;)if(p<h){var q=a[p],
17
- w=k[p],x=m[p];if(b){var y=d*(1-g),A=c,B=d,E=e,H=[];H.push("M0,"+$APP.S.g((y+S_(0,E,w,x)).toFixed(2)));for(var F=0;;)if(F<10){var M=(F+.5)/10,Y=(F+1)/10,ea=y+S_(M,E,w,x),ta=Y*A;Y=y+S_(Y,E,w,x);H.push("Q"+$APP.S.g((M*A).toFixed(2))+","+$APP.S.g(ea.toFixed(2))+" "+$APP.S.g(ta.toFixed(2))+","+$APP.S.g(Y.toFixed(2)));F+=1}else break;H.push("L"+$APP.S.g(A.toFixed(2))+","+$APP.S.g(B.toFixed(2)));H.push("L0,"+$APP.S.g(B.toFixed(2)));H.push("Z");q.setAttribute("d",H.join(""))}else{y=c*g;A=d;B=e;E=w;w=x;x=
18
- [];x.push("M"+$APP.S.g((y+S_(0,B,E,w)).toFixed(2))+",0");for(H=0;;)if(H<10)F=(H+.5)/10,ta=(H+1)/10,M=F*A,ea=ta*A,ta=y+S_(ta,B,E,w),x.push("Q"+$APP.S.g((y+S_(F,B,E,w)).toFixed(2))+","+$APP.S.g(M.toFixed(2))+" "+$APP.S.g(ta.toFixed(2))+","+$APP.S.g(ea.toFixed(2))),H+=1;else break;x.push("L0,"+$APP.S.g(A.toFixed(2)));x.push("L0,0");x.push("Z");q.setAttribute("d",x.join(""))}p+=1}else break},t0=function(a){var b=$APP.l(a,"__xLiquidFillModel"),c=$APP.l(a,"__xLiquidFillW"),d=$APP.l(a,"__xLiquidFillH");
19
- var e=$APP.l(a,"__xLiquidFillProg");e=$APP.r(e)?e:0;var g=$APP.Bi.g(b);b=r0(b);a=$APP.N($APP.l(a,"__xLiquidFillRefs"));a=$APP.G(a,$_);if($APP.r($APP.r(c)?$APP.r(d)?c>0&&d>0:d:c))for(var h=0;;)if(h<g){var k=a[h];if(b){var m=d*(1-e);k.setAttribute("d","M0,"+$APP.S.g(m.toFixed(2))+"L"+$APP.S.g(c.toFixed(2))+","+$APP.S.g(m.toFixed(2))+"L"+$APP.S.g(c.toFixed(2))+","+$APP.S.g(d.toFixed(2))+"L0,"+$APP.S.g(d.toFixed(2))+"Z")}else m=c*e,k.setAttribute("d","M"+$APP.S.g(m.toFixed(2))+",0L"+$APP.S.g(m.toFixed(2))+
20
- ","+$APP.S.g(d.toFixed(2))+"L0,"+$APP.S.g(d.toFixed(2))+"L0,0Z");h+=1}else break},v0=function(a,b,c){b=new CustomEvent("x-liquid-fill-progress",{detail:$APP.nh(new $APP.P(null,2,[$APP.el,b,u0,c],null)),bubbles:!0,composed:!0,cancelable:!1});a.dispatchEvent(b)},x0=function(a){$APP.r($APP.l(a,"__xLiquidFillRaf"))||($APP.n(a,"__xLiquidFillLF",performance.now()),$APP.n(a,"__xLiquidFillRaf",requestAnimationFrame(function(){return w0(a)})))},y0=function(a){var b=$APP.l(a,"__xLiquidFillRaf");$APP.r(b)&&
21
- (cancelAnimationFrame(b),a.__xLiquidFillRaf=null)},B0=function(a){if($APP.r(function(){var h=a.isConnected;return $APP.r(h)?$APP.l(a,"__xLiquidFillVis"):h}())){var b=$APP.l(a,"__xLiquidFillModel");$APP.l(a,"__xLiquidFillST")==null&&k0.g(b)!=null&&(b=W_(a,k0.g(b)),$APP.r(b)&&(z0.g?z0.g(a):z0.call(null,a),a.__xLiquidFillST=b,A0.g?A0.g(a):A0.call(null,a)));var c=$APP.l(a,"__xLiquidFillModel");b=$APP.l(a,"__xLiquidFillST");var d=$APP.yk.g(c);d=X_(b,d);var e=d[0];b=d[1];d=d[2];var g=performance.now();
22
- b=Q_(e,b,d);d=R_(e,function(){var h=$APP.l(a,"__xLiquidFillLS");return $APP.r(h)?h:e}(),(g-function(){var h=$APP.l(a,"__xLiquidFillLST");return $APP.r(h)?h:g}())/1E3);a.__xLiquidFillTP=b;$APP.n(a,"__xLiquidFillSV",Math.max(function(){var h=$APP.l(a,"__xLiquidFillSV");return $APP.r(h)?h:0}(),d));a.__xLiquidFillLS=e;a.__xLiquidFillLST=g;$APP.r(function(){var h=$APP.W.g(c);return $APP.r(h)?h:V_()}())||x0(a);$APP.r(function(){var h=$APP.W.g(c);return $APP.r(h)?h:V_()}())&&(a.__xLiquidFillProg=b,t0(a),
23
- v0(a,b,d))}return null},A0=function(a){var b=$APP.l(a,"__xLiquidFillHdl");if($APP.r($APP.r(b)?$APP.t($APP.l(b,"scrollAttached")):b)){var c=$APP.l(b,"scroll");a=$APP.l(a,"__xLiquidFillST");$APP.r(a)?a.addEventListener("scroll",c,{passive:!0}):window.addEventListener("scroll",c,{passive:!0});b.scrollAttached=!0}else return null},z0=function(a){var b=$APP.l(a,"__xLiquidFillHdl");if($APP.r($APP.r(b)?$APP.l(b,"scrollAttached"):b)){var c=$APP.l(b,"scroll");a=$APP.l(a,"__xLiquidFillST");$APP.r(a)?a.removeEventListener("scroll",
24
- c):window.removeEventListener("scroll",c);b.scrollAttached=!1}else return null},C0=function(a){var b=k0.g($APP.l(a,"__xLiquidFillModel")),c=W_(a,b);a.__xLiquidFillST=c;A0(a);B0(a);b!=null&&c==null&&requestAnimationFrame(function(){if($APP.r(a.isConnected)){var d=k0.g($APP.l(a,"__xLiquidFillModel"));d!=null&&$APP.l(a,"__xLiquidFillST")==null&&(d=W_(a,d),$APP.r(d)&&(z0(a),a.__xLiquidFillST=d,A0(a),B0(a)))}return null})},D0=function(a){$APP.n(a,"__xLiquidFillHdl",{scroll:function(){return B0(a)},scrollAttached:!1})},
25
- E0=function(a){z0(a);a.__xLiquidFillHdl=null},F0=function(a){var b=new IntersectionObserver(function(c){c=c[0].isIntersecting;a.__xLiquidFillVis=c;$APP.r(c)?(c=$APP.W.g($APP.l(a,"__xLiquidFillModel")),c=$APP.r(c)?c:V_(),$APP.r(c)||x0(a)):y0(a);return null},{threshold:[0]});b.observe(a);a.__xLiquidFillIO=b;b=new ResizeObserver(function(c){if(c.length>0){var d=c[0].contentRect;c=d.width;d=d.height;if(c>0&&d>0){a.__xLiquidFillW=c;a.__xLiquidFillH=d;var e=$APP.N($APP.l(a,"__xLiquidFillRefs")),g=$APP.G(e,
26
- $APP.xj),h=$APP.G(e,a0);e=$APP.G(e,b0);var k=Math.max(c,d);g.setAttribute("viewBox","0 0 "+$APP.S.g(c)+" "+$APP.S.g(d));h.setAttribute("x",""+$APP.S.g(c*.3));e.setAttribute("cx",""+$APP.S.g(c*.5));e.setAttribute("cy",""+$APP.S.g(d));e.setAttribute("r",""+$APP.S.g(k));e.setAttribute("fx",""+$APP.S.g(c*.5));e.setAttribute("fy",""+$APP.S.g(d));c=$APP.W.g($APP.l(a,"__xLiquidFillModel"));c=$APP.r(c)?c:V_();$APP.r(c)?t0(a):(s0(a),x0(a))}}return null});b.observe(a);a.__xLiquidFillRO=b},I0=function(a,b){b=
27
- $APP.G(G0,b);$APP.r(b)?(a=a.style,a.setProperty("--x-liquid-fill-color-1",$APP.ik.g(b)),a.setProperty("--x-liquid-fill-color-2",$APP.jk.g(b)),a.setProperty("--x-liquid-fill-color-3",H0.g(b)),a.setProperty("--x-liquid-fill-specular-color",$APP.xk.g(b))):(a=a.style,a.removeProperty("--x-liquid-fill-color-1"),a.removeProperty("--x-liquid-fill-color-2"),a.removeProperty("--x-liquid-fill-color-3"),a.removeProperty("--x-liquid-fill-specular-color"))},J0=function(a){Object.defineProperty(a,"target",{get:function(){return this.getAttribute("target")},
28
- set:function(b){return $APP.r(b)?this.setAttribute("target",""+$APP.S.g(b)):this.removeAttribute("target")},enumerable:!0,configurable:!0});Object.defineProperty(a,"orientation",{get:function(){return F_(this.getAttribute("orientation"))},set:function(b){return $APP.r(b)?this.setAttribute("orientation",""+$APP.S.g(b)):this.removeAttribute("orientation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"mode",{get:function(){return H_(this.getAttribute("mode"))},set:function(b){return $APP.r(b)?
29
- this.setAttribute("mode",""+$APP.S.g(b)):this.removeAttribute("mode")},enumerable:!0,configurable:!0});Object.defineProperty(a,"theme",{get:function(){return J_(this.getAttribute("theme"))},set:function(b){return $APP.r(b)?this.setAttribute("theme",""+$APP.S.g(b)):this.removeAttribute("theme")},enumerable:!0,configurable:!0});Object.defineProperty(a,"waveIntensity",{get:function(){var b=this.getAttribute("wave-intensity");return K_(b,.5)},set:function(b){return b==null?this.removeAttribute("wave-intensity"):
30
- this.setAttribute("wave-intensity",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"splashIntensity",{get:function(){var b=this.getAttribute("splash-intensity");return K_(b,.7)},set:function(b){return b==null?this.removeAttribute("splash-intensity"):this.setAttribute("splash-intensity",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"layers",{get:function(){return L_(this.getAttribute("layers"))},set:function(b){return b==null?this.removeAttribute("layers"):
31
- this.setAttribute("layers",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.r(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.l(this,"__xLiquidFillProg");return $APP.r(b)?b:0},enumerable:!0,configurable:!0})},L0=function(){var a=class extends HTMLElement{};a.observedAttributes=
32
- K0;a.prototype.connectedCallback=function(){var b=o0(this);this.__xLiquidFillModel=b;this.__xLiquidFillTime=this.__xLiquidFillSV=this.__xLiquidFillTP=this.__xLiquidFillProg=0;this.__xLiquidFillLD=-1;this.__xLiquidFillVis=!0;$APP.r($APP.l(this,"__xLiquidFillRefs"))||e0(this);I0(this,l0.g(b));p0(this,$APP.Bi.g(b));q0(this,$APP.Bi.g(b));E0(this);D0(this);F0(this);C0(this);return null};a.prototype.disconnectedCallback=function(){y0(this);E0(this);var b=$APP.l(this,"__xLiquidFillIO");$APP.r(b)&&(b.disconnect(),
33
- this.__xLiquidFillIO=null);b=$APP.l(this,"__xLiquidFillRO");$APP.r(b)&&(b.disconnect(),this.__xLiquidFillRO=null);this.__xLiquidFillVis=!1;return null};a.prototype.attributeChangedCallback=function(b,c,d){if($APP.O(c,d)&&$APP.r($APP.l(this,"__xLiquidFillRefs"))){b=o0(this);c=$APP.l(this,"__xLiquidFillModel");this.__xLiquidFillModel=b;if(c==null||$APP.O($APP.Bi.g(b),$APP.Bi.g(c)))p0(this,$APP.Bi.g(b)),q0(this,$APP.Bi.g(b));(c==null||$APP.O(l0.g(b),l0.g(c)))&&I0(this,l0.g(b));if(c==null||$APP.O(k0.g(b),
34
- k0.g(c)))z0(this),C0(this);c=$APP.l(this,"__xLiquidFillW");d=$APP.l(this,"__xLiquidFillH");$APP.r($APP.r(c)?$APP.r(d)?c>0&&d>0:d:c)&&(b=$APP.W.g(b),b=$APP.r(b)?b:V_(),$APP.r(b)?(y0(this),t0(this)):(s0(this),x0(this)))}return null};J0(a.prototype);return a},M0=function(){$APP.r(customElements.get("x-liquid-fill"))||customElements.define("x-liquid-fill",L0());return null},O_=new $APP.K(null,"amp-mult","amp-mult",698045242),a0=new $APP.K(null,"feLight","feLight",-1941454484),N_=new $APP.K(null,"speed-mult",
35
- "speed-mult",-353631814),j0=new $APP.K(null,"layers-raw","layers-raw",-233899391),M_=new $APP.K(null,"phase-offset","phase-offset",-1013192067),$_=new $APP.K(null,"paths","paths",-1807389588),g0=new $APP.K(null,"theme-raw","theme-raw",1068228849),c0=new $APP.K(null,"filt-id","filt-id",-672558408),m0=new $APP.K(null,"wave-intensity","wave-intensity",-915557489),b0=new $APP.K(null,"grad","grad",1125187229),l0=new $APP.K(null,"theme","theme",-1247880880),H0=new $APP.K(null,"color-3","color-3",265727868),
36
- h0=new $APP.K(null,"wave-intensity-raw","wave-intensity-raw",1563162777),d0=new $APP.K(null,"grad-id","grad-id",1430109665),f0=new $APP.K(null,"target-raw","target-raw",-72152629),n0=new $APP.K(null,"splash-intensity","splash-intensity",-619909243),u0=new $APP.K(null,"velocity","velocity",-581524355),i0=new $APP.K(null,"splash-intensity-raw","splash-intensity-raw",1573376927),k0=new $APP.K(null,"target","target",253001721);var K0="target orientation mode theme wave-intensity splash-intensity layers disabled".split(" ");
37
- $APP.Q([new $APP.K(null,"waveIntensity","waveIntensity",695633410),$APP.gj,new $APP.K(null,"splashIntensity","splashIntensity",1275664841),$APP.Ri,$APP.yk,l0,$APP.Bi,k0,$APP.el],[new $APP.P(null,1,[$APP.Z,$APP.V],null),new $APP.P(null,1,[$APP.Z,$APP.qj],null),new $APP.P(null,1,[$APP.Z,$APP.V],null),new $APP.P(null,1,[$APP.Z,$APP.X],null),new $APP.P(null,1,[$APP.Z,$APP.X],null),new $APP.P(null,1,[$APP.Z,$APP.X],null),new $APP.P(null,1,[$APP.Z,$APP.V],null),new $APP.P(null,1,[$APP.Z,$APP.X],null),new $APP.P(null,
38
- 2,[$APP.Z,$APP.V,$APP.Fj,!0],null)]);$APP.Sd(["x-liquid-fill-progress",new $APP.P(null,2,[$APP.U,new $APP.P(null,2,[$APP.el,$APP.V,u0,$APP.V],null),$APP.ll,!1],null)]);
39
- var E_=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null),G_=new $APP.R(null,new $APP.P(null,2,["bar",null,"fill",null],null),null),I_=new $APP.R(null,new $APP.P(null,4,["custom",null,"gold",null,"lava",null,"water",null],null),null),G0=new $APP.P(null,3,["gold",new $APP.P(null,4,[$APP.ik,"#B8860B",$APP.jk,"#D4AF37",H0,"#F9F295",$APP.xk,"rgba(255,255,240,0.6)"],null),"water",new $APP.P(null,4,[$APP.ik,"#0077B6",$APP.jk,"#00B4D8",H0,"#90E0EF",$APP.xk,"rgba(255,255,255,0.5)"],
40
- null),"lava",new $APP.P(null,4,[$APP.ik,"#8B0000",$APP.jk,"#FF4500",H0,"#FF8C00",$APP.xk,"rgba(255,255,200,0.7)"],null)],null);var Y_=new $APP.ae(0),Z_=":host{display:block;position:relative;overflow:hidden;"+$APP.S.g("--x-liquid-fill-bg")+":transparent;"+$APP.S.g("--x-liquid-fill-border")+":none;"+$APP.S.g("--x-liquid-fill-radius")+":0;"+$APP.S.g("--x-liquid-fill-opacity")+":1;"+$APP.S.g("--x-liquid-fill-wave-speed")+":1;"+$APP.S.g("--x-liquid-fill-color-1")+":#B8860B;"+$APP.S.g("--x-liquid-fill-color-2")+":#D4AF37;"+$APP.S.g("--x-liquid-fill-color-3")+":#F9F295;"+$APP.S.g("--x-liquid-fill-specular-color")+":rgba(255,255,240,0.6);}:host{background:var("+
41
- $APP.S.g("--x-liquid-fill-bg")+",transparent);border:var("+$APP.S.g("--x-liquid-fill-border")+",none);border-radius:var("+$APP.S.g("--x-liquid-fill-radius")+",0);}:host([mode\x3dbar]){"+$APP.S.g("--x-liquid-fill-bar-height")+":14px;height:var("+$APP.S.g("--x-liquid-fill-bar-height")+",14px);}[part\x3dcontainer]{position:relative;width:100%;height:100%;overflow:hidden;border-radius:inherit;}[part\x3dsvg]{display:block;width:100%;height:100%;position:absolute;inset:0;pointer-events:none;opacity:var("+
42
- $APP.S.g("--x-liquid-fill-opacity")+",1);}[part\x3dcontent]{position:relative;z-index:1;}."+$APP.S.g("wave-layer")+"{transition:none;}@media(prefers-color-scheme:dark){:host{"+$APP.S.g("--x-liquid-fill-bg")+":transparent;"+$APP.S.g("--x-liquid-fill-specular-color")+":rgba(255,255,200,0.4);}}@media(prefers-reduced-motion:reduce){."+$APP.S.g("wave-layer")+"{transition:none!important;}}",w0=function w0(a){if($APP.r(a.isConnected)){var c=$APP.l(a,"__xLiquidFillModel"),d=performance.now(),e=Math.min(d-
43
- $APP.l(a,"__xLiquidFillLF"),100)/1E3,g=function(){var E=window.getComputedStyle(a).getPropertyValue("--x-liquid-fill-wave-speed");E=typeof E==="string"?parseFloat(E.trim()):null;var H=E==null;H||(H=isNaN(E),H=$APP.r(H)?H:E<=0);return $APP.r(H)?1:E}(),h=$APP.Bi.g(c),k=m0.g(c);c=n0.g(c);var m=function(){var E=$APP.l(a,"__xLiquidFillSV");return $APP.r(E)?E:0}(),p=$APP.l(a,"__xLiquidFillWA"),q=$APP.l(a,"__xLiquidFillWV"),w=$APP.l(a,"__xLiquidFillWP");a.__xLiquidFillLF=d;$APP.n(a,"__xLiquidFillTime",function(){var E=
44
- $APP.l(a,"__xLiquidFillTime");return $APP.r(E)?E:0}()+e*g);$APP.n(a,"__xLiquidFillProg",U_(function(){var E=$APP.l(a,"__xLiquidFillProg");return $APP.r(E)?E:0}(),function(){var E=$APP.l(a,"__xLiquidFillTP");return $APP.r(E)?E:0}(),5*e));var x=new $APP.ae(!1);for(d=0;;)if(d<h){var y=P_(d,h),A=m*k*c*O_.g(y)*30+2*k*O_.g(y);A=T_(p[d],A,q[d],e,$APP.Wk.g(y),$APP.Wj.g(y));p[d]=A[0];q[d]=A[1];w[d]+=e*g*N_.g(y);Math.abs(q[d])>.05&&$APP.Ab(x,!0);d+=1}else break;a.__xLiquidFillSV=m*Math.max(0,1-3*e);s0(a);e=
45
- $APP.l(a,"__xLiquidFillProg");Math.abs(e-function(){var E=$APP.l(a,"__xLiquidFillLD");return $APP.r(E)?E:-1}())>.005&&(a.__xLiquidFillLD=e,v0(a,e,m));var B=Math.abs(function(){var E=$APP.l(a,"__xLiquidFillProg");return $APP.r(E)?E:0}()-function(){var E=$APP.l(a,"__xLiquidFillTP");return $APP.r(E)?E:0}());$APP.r(function(){var E=$APP.Ua(x);return $APP.r(E)?E:m>.01||B>.001}())?$APP.n(a,"__xLiquidFillRaf",requestAnimationFrame(function(){return w0.g?w0.g(a):w0.call(null,a)})):a.__xLiquidFillRaf=null}return null};$APP.ka("baredom.exports.x_liquid_fill.init",M0);export const init=M0;
2
+ var a3=function(a){function b(d,e){d.push(e);return d}var c=[];return $APP.Wc?$APP.Wc(b,c,a):$APP.Xc.call(null,b,c,a)},c3=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.J(b3,a)?a:"vertical"},e3=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.J(d3,a)?a:"fill"},g3=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.J(f3,a)?a:"gold"},h3=function(a,b){if(typeof a==="string"){a=a.trim();if($APP.C.i(a,""))return b;a=parseFloat(a);
3
+ return $APP.n(isNaN(a))?b:Math.min(1,Math.max(0,a))}return b},i3=function(a){if(typeof a==="string"){a=a.trim();if($APP.C.i(a,""))return 3;a=parseInt(a,10);return $APP.n(isNaN(a))?3:Math.min(5,Math.max(2,a))}return 3},m3=function(a,b){b=b>1?a/(b-1):1;return new $APP.R(null,6,[j3,a*2.39996,k3,.7+.6*b,l3,.6+.8*b,$APP.fl,200-a*30,$APP.kk,10+a*3,$APP.Xh,1],null)},n3=function(a,b,c){b-=c;return b<=0?0:Math.min(1,Math.max(0,a/b))},o3=function(a,b,c){return c<=.001?0:Math.min(1,Math.abs(a-b)/c/2E3)},p3=
4
+ function(a,b,c,d){return c*(.5*Math.sin(a*6.283185307179586*3+b+d)+.3*Math.sin(a*6.283185307179586*5+b*1.3+d*1.7)+.2*Math.sin(a*6.283185307179586*7+b*.7+d*2.3))},q3=function(a,b,c,d,e,g){b=c+(e*(b-a)-g*c)*d;return[a+b*d,b]},r3=function(a,b,c){return a+(b-a)*c},t3=function(){var a=s3+1;return s3=a},u3=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},v3=function(a,b){if(typeof b==="string"&&$APP.N(b.trim(),""))a=document.querySelector(b);else a:{for(a=a.parentElement;;)if($APP.n(a)){var c=
5
+ window.getComputedStyle(a);b=c.getPropertyValue("overflow-y");c=c.getPropertyValue("overflow-x");if($APP.C.i(b,"auto")||$APP.C.i(b,"scroll")||$APP.C.i(c,"auto")||$APP.C.i(c,"scroll"))break a;a=a.parentElement}else{a=null;break a}a=void 0}return a},w3=function(a,b){return a==null?$APP.C.i(b,"horizontal")?[window.scrollX,document.documentElement.scrollWidth,window.innerWidth]:[window.scrollY,document.documentElement.scrollHeight,window.innerHeight]:$APP.C.i(b,"horizontal")?[a.scrollLeft,a.scrollWidth,
6
+ a.clientWidth]:[a.scrollTop,a.scrollHeight,a.clientHeight]},D3=function(a){var b=t3(),c=a.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElementNS("http://www.w3.org/2000/svg","svg"),h=document.createElementNS("http://www.w3.org/2000/svg","defs"),l=document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),m=document.createElementNS("http://www.w3.org/2000/svg","stop"),p=document.createElementNS("http://www.w3.org/2000/svg",
7
+ "stop"),q=document.createElementNS("http://www.w3.org/2000/svg","stop"),v=document.createElementNS("http://www.w3.org/2000/svg","filter"),x=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),y=document.createElementNS("http://www.w3.org/2000/svg","feSpecularLighting"),A=document.createElementNS("http://www.w3.org/2000/svg","fePointLight"),B=document.createElementNS("http://www.w3.org/2000/svg","feComposite"),E=document.createElementNS("http://www.w3.org/2000/svg","feComposite"),
8
+ H=a3(function(){return function Ka(za){return new $APP.qd(null,function(){for(;;){var $a=$APP.t(za);if($a){if($APP.Nc($a)){var ab=$APP.xb($a),jb=$APP.z(ab),Ib=$APP.td(jb);a:{for(var bb=0;;)if(bb<jb){$APP.xc(ab,bb);var ca=Ib,pa=document.createElementNS("http://www.w3.org/2000/svg","path");ca.add(pa);bb+=1}else{ab=!0;break a}ab=void 0}return ab?$APP.wd(Ib.aa(),Ka($APP.yb($a))):$APP.wd(Ib.aa(),null)}$APP.u($a);return $APP.nd(document.createElementNS("http://www.w3.org/2000/svg","path"),Ka($APP.Yb($a)))}return null}},
9
+ null)}($APP.bg(0,5))}()),G=document.createElement("div"),I=document.createElement("slot"),Q=""+$APP.T.g("xlf-grad-")+$APP.T.g(b),Y=""+$APP.T.g("xlf-spec-")+$APP.T.g(b);d.textContent=x3;e.setAttribute("part","container");g.setAttribute("part","svg");g.setAttribute("viewBox","0 0 300 200");g.setAttribute("preserveAspectRatio","none");g.setAttribute("aria-hidden","true");l.setAttribute("id",Q);l.setAttribute("gradientUnits","userSpaceOnUse");l.setAttribute("cx","150");l.setAttribute("cy","200");l.setAttribute("r",
10
+ "200");l.setAttribute("fx","150");l.setAttribute("fy","200");m.setAttribute("offset","0%");m.setAttribute("stop-color","var("+$APP.T.g("--x-liquid-fill-color-1")+",#B8860B)");p.setAttribute("offset","50%");p.setAttribute("stop-color","var("+$APP.T.g("--x-liquid-fill-color-2")+",#D4AF37)");q.setAttribute("offset","100%");q.setAttribute("stop-color","var("+$APP.T.g("--x-liquid-fill-color-3")+",#F9F295)");l.appendChild(m);l.appendChild(p);l.appendChild(q);v.setAttribute("id",Y);v.setAttribute("x","-10%");
11
+ v.setAttribute("y","-10%");v.setAttribute("width","120%");v.setAttribute("height","120%");x.setAttribute("in","SourceAlpha");x.setAttribute("stdDeviation","3");x.setAttribute("result","blur");y.setAttribute("in","blur");y.setAttribute("surfaceScale","5");y.setAttribute("specularConstant","0.75");y.setAttribute("specularExponent","20");y.setAttribute("lighting-color","var("+$APP.T.g("--x-liquid-fill-specular-color")+",rgba(255,255,240,0.6))");y.setAttribute("result","specular");y.appendChild(A);A.setAttribute("x",
12
+ "90");A.setAttribute("y","-50");A.setAttribute("z","200");B.setAttribute("in","specular");B.setAttribute("in2","SourceAlpha");B.setAttribute("operator","in");B.setAttribute("result","specClip");E.setAttribute("in","SourceGraphic");E.setAttribute("in2","specClip");E.setAttribute("operator","arithmetic");E.setAttribute("k1","0");E.setAttribute("k2","1");E.setAttribute("k3","1");E.setAttribute("k4","0");v.appendChild(x);v.appendChild(y);v.appendChild(B);v.appendChild(E);h.appendChild(l);h.appendChild(v);
13
+ g.appendChild(h);for(h=0;;)if(h<5)m=H[h],m.setAttribute("class","wave-layer"),m.setAttribute("data-layer",""+$APP.T.g(h)),m.setAttribute("fill","url(#"+$APP.T.g(Q)+")"),m.style.display="none",g.appendChild(m),h+=1;else break;G.setAttribute("part","content");G.appendChild(I);e.appendChild(g);e.appendChild(G);c.appendChild(d);c.appendChild(e);a.__xLiquidFillUid=b;$APP.ia(a,"__xLiquidFillRefs",new $APP.R(null,8,[$APP.ji,c,$APP.Jj,g,y3,H,$APP.ci,G,z3,A,A3,l,B3,Y,C3,Q],null))},N3=function(a){a=new $APP.R(null,
14
+ 8,[E3,a.getAttribute("target"),$APP.jl,a.getAttribute("orientation"),$APP.Lk,a.getAttribute("mode"),F3,a.getAttribute("theme"),G3,a.getAttribute("wave-intensity"),H3,a.getAttribute("splash-intensity"),I3,a.getAttribute("layers"),$APP.Gi,a.getAttribute("disabled")],null);var b=$APP.M(a);a=$APP.D(b,E3);var c=$APP.D(b,$APP.jl),d=$APP.D(b,$APP.Lk),e=$APP.D(b,F3),g=$APP.D(b,G3),h=$APP.D(b,H3),l=$APP.D(b,I3);b=$APP.D(b,$APP.Gi);return new $APP.R(null,8,[J3,typeof a==="string"&&$APP.N(a.trim(),"")?a.trim():
15
+ null,$APP.Gk,c3(c),$APP.Xi,e3(d),K3,g3(e),L3,h3(g,.5),M3,h3(h,.7),$APP.Hi,i3(l),$APP.W,b!=null],null)},O3=function(a,b){var c=new Float64Array(b);a.__xLiquidFillWA=c;c=new Float64Array(b);a.__xLiquidFillWV=c;b=new Float64Array(b);a.__xLiquidFillWP=b},P3=function(a,b){var c=$APP.M($APP.k(a,"__xLiquidFillRefs"));a=$APP.D(c,y3);c=$APP.D(c,B3);for(var d=0;;)if(d<5){var e=a[d];if(d<b){var g=m3(d,b),h=$APP.C.i(d,b-1);e.style.display="";e.setAttribute("opacity",""+$APP.T.g($APP.Xh.g(g)));h?e.setAttribute("filter",
16
+ "url(#"+$APP.T.g(c)+")"):e.removeAttribute("filter")}else e.style.display="none";d+=1}else break},Q3=function(a){return $APP.C.i("vertical",$APP.Gk.g(a))&&$APP.N("bar",$APP.Xi.g(a))},R3=function(a){var b=$APP.k(a,"__xLiquidFillModel"),c=$APP.k(a,"__xLiquidFillW"),d=$APP.k(a,"__xLiquidFillH"),e=$APP.k(a,"__xLiquidFillTime"),g=$APP.k(a,"__xLiquidFillProg"),h=$APP.Hi.g(b);b=Q3(b);var l=$APP.k(a,"__xLiquidFillWA"),m=$APP.k(a,"__xLiquidFillWP");a=$APP.M($APP.k(a,"__xLiquidFillRefs"));a=$APP.D(a,y3);if($APP.n($APP.n(c)?
17
+ $APP.n(d)?c>0&&d>0:d:c))for(var p=0;;)if(p<h){var q=a[p],v=l[p],x=m[p];if(b){var y=d*(1-g),A=c,B=d,E=e,H=[];H.push("M0,"+$APP.T.g((y+p3(0,E,v,x)).toFixed(2)));for(var G=0;;)if(G<10){var I=(G+.5)/10,Q=(G+1)/10,Y=y+p3(I,E,v,x),la=Q*A;Q=y+p3(Q,E,v,x);H.push("Q"+$APP.T.g((I*A).toFixed(2))+","+$APP.T.g(Y.toFixed(2))+" "+$APP.T.g(la.toFixed(2))+","+$APP.T.g(Q.toFixed(2)));G+=1}else break;H.push("L"+$APP.T.g(A.toFixed(2))+","+$APP.T.g(B.toFixed(2)));H.push("L0,"+$APP.T.g(B.toFixed(2)));H.push("Z");q.setAttribute("d",
18
+ H.join(""))}else{y=c*g;A=d;B=e;E=v;v=x;x=[];x.push("M"+$APP.T.g((y+p3(0,B,E,v)).toFixed(2))+",0");for(H=0;;)if(H<10)G=(H+.5)/10,la=(H+1)/10,I=G*A,Y=la*A,la=y+p3(la,B,E,v),x.push("Q"+$APP.T.g((y+p3(G,B,E,v)).toFixed(2))+","+$APP.T.g(I.toFixed(2))+" "+$APP.T.g(la.toFixed(2))+","+$APP.T.g(Y.toFixed(2))),H+=1;else break;x.push("L0,"+$APP.T.g(A.toFixed(2)));x.push("L0,0");x.push("Z");q.setAttribute("d",x.join(""))}p+=1}else break},S3=function(a){var b=$APP.k(a,"__xLiquidFillModel"),c=$APP.k(a,"__xLiquidFillW"),
19
+ d=$APP.k(a,"__xLiquidFillH");var e=$APP.k(a,"__xLiquidFillProg");e=$APP.n(e)?e:0;var g=$APP.Hi.g(b);b=Q3(b);a=$APP.M($APP.k(a,"__xLiquidFillRefs"));a=$APP.D(a,y3);if($APP.n($APP.n(c)?$APP.n(d)?c>0&&d>0:d:c))for(var h=0;;)if(h<g){var l=a[h];if(b){var m=d*(1-e);l.setAttribute("d","M0,"+$APP.T.g(m.toFixed(2))+"L"+$APP.T.g(c.toFixed(2))+","+$APP.T.g(m.toFixed(2))+"L"+$APP.T.g(c.toFixed(2))+","+$APP.T.g(d.toFixed(2))+"L0,"+$APP.T.g(d.toFixed(2))+"Z")}else m=c*e,l.setAttribute("d","M"+$APP.T.g(m.toFixed(2))+
20
+ ",0L"+$APP.T.g(m.toFixed(2))+","+$APP.T.g(d.toFixed(2))+"L0,"+$APP.T.g(d.toFixed(2))+"L0,0Z");h+=1}else break},U3=function(a,b,c){b=new CustomEvent("x-liquid-fill-progress",{detail:$APP.ph(new $APP.R(null,2,[$APP.ol,b,T3,c],null)),bubbles:!0,composed:!0,cancelable:!1});a.dispatchEvent(b)},W3=function(a){$APP.n($APP.k(a,"__xLiquidFillRaf"))||($APP.ia(a,"__xLiquidFillLF",performance.now()),$APP.ia(a,"__xLiquidFillRaf",requestAnimationFrame(function(){return V3(a)})))},X3=function(a){var b=$APP.k(a,
21
+ "__xLiquidFillRaf");$APP.n(b)&&(cancelAnimationFrame(b),a.__xLiquidFillRaf=null)},$3=function(a){if($APP.n(function(){var h=a.isConnected;return $APP.n(h)?(h=$APP.k(a,"__xLiquidFillVis"),$APP.n(h)?$APP.r($APP.W.g($APP.k(a,"__xLiquidFillModel"))):h):h}())){var b=$APP.k(a,"__xLiquidFillModel");$APP.k(a,"__xLiquidFillST")==null&&J3.g(b)!=null&&(b=v3(a,J3.g(b)),$APP.n(b)&&(Y3.g?Y3.g(a):Y3.call(null,a),a.__xLiquidFillST=b,Z3.g?Z3.g(a):Z3.call(null,a)));var c=$APP.k(a,"__xLiquidFillModel");b=$APP.k(a,"__xLiquidFillST");
22
+ var d=$APP.Gk.g(c);d=w3(b,d);var e=d[0];b=d[1];d=d[2];var g=performance.now();b=n3(e,b,d);d=o3(e,function(){var h=$APP.k(a,"__xLiquidFillLS");return $APP.n(h)?h:e}(),(g-function(){var h=$APP.k(a,"__xLiquidFillLST");return $APP.n(h)?h:g}())/1E3);a.__xLiquidFillTP=b;$APP.ia(a,"__xLiquidFillSV",Math.max(function(){var h=$APP.k(a,"__xLiquidFillSV");return $APP.n(h)?h:0}(),d));a.__xLiquidFillLS=e;a.__xLiquidFillLST=g;$APP.n(function(){var h=$APP.W.g(c);return $APP.n(h)?h:u3()}())||W3(a);$APP.n(function(){var h=
23
+ $APP.W.g(c);return $APP.n(h)?h:u3()}())&&(a.__xLiquidFillProg=b,S3(a),U3(a,b,d))}return null},Z3=function(a){var b=$APP.k(a,"__xLiquidFillHdl");if($APP.n($APP.n(b)?$APP.r($APP.k(b,"scrollAttached")):b)){var c=$APP.k(b,"scroll");a=$APP.k(a,"__xLiquidFillST");$APP.n(a)?a.addEventListener("scroll",c,{passive:!0}):window.addEventListener("scroll",c,{passive:!0});b.scrollAttached=!0}else return null},Y3=function(a){var b=$APP.k(a,"__xLiquidFillHdl");if($APP.n($APP.n(b)?$APP.k(b,"scrollAttached"):b)){var c=
24
+ $APP.k(b,"scroll");a=$APP.k(a,"__xLiquidFillST");$APP.n(a)?a.removeEventListener("scroll",c):window.removeEventListener("scroll",c);b.scrollAttached=!1}else return null},a4=function(a){var b=J3.g($APP.k(a,"__xLiquidFillModel")),c=v3(a,b);a.__xLiquidFillST=c;Z3(a);$3(a);b!=null&&c==null&&requestAnimationFrame(function(){if($APP.n(a.isConnected)){var d=J3.g($APP.k(a,"__xLiquidFillModel"));d!=null&&$APP.k(a,"__xLiquidFillST")==null&&(d=v3(a,d),$APP.n(d)&&(Y3(a),a.__xLiquidFillST=d,Z3(a),$3(a)))}return null})},
25
+ b4=function(a){$APP.ia(a,"__xLiquidFillHdl",{scroll:function(){return $3(a)},scrollAttached:!1})},c4=function(a){Y3(a);a.__xLiquidFillHdl=null},d4=function(a){var b=new IntersectionObserver(function(c){c=c[0].isIntersecting;a.__xLiquidFillVis=c;$APP.n(c)?(c=$APP.W.g($APP.k(a,"__xLiquidFillModel")),c=$APP.n(c)?c:u3(),$APP.n(c)||W3(a)):X3(a);return null},{threshold:[0]});b.observe(a);a.__xLiquidFillIO=b;b=new ResizeObserver(function(c){if(c.length>0){var d=c[0].contentRect;c=d.width;d=d.height;if(c>
26
+ 0&&d>0){a.__xLiquidFillW=c;a.__xLiquidFillH=d;var e=$APP.M($APP.k(a,"__xLiquidFillRefs")),g=$APP.D(e,$APP.Jj),h=$APP.D(e,z3);e=$APP.D(e,A3);var l=Math.max(c,d);g.setAttribute("viewBox","0 0 "+$APP.T.g(c)+" "+$APP.T.g(d));h.setAttribute("x",""+$APP.T.g(c*.3));e.setAttribute("cx",""+$APP.T.g(c*.5));e.setAttribute("cy",""+$APP.T.g(d));e.setAttribute("r",""+$APP.T.g(l));e.setAttribute("fx",""+$APP.T.g(c*.5));e.setAttribute("fy",""+$APP.T.g(d));c=$APP.W.g($APP.k(a,"__xLiquidFillModel"));c=$APP.n(c)?c:
27
+ u3();$APP.n(c)?S3(a):(R3(a),W3(a))}}return null});b.observe(a);a.__xLiquidFillRO=b},g4=function(a,b){b=$APP.D(e4,b);$APP.n(b)?(a=a.style,a.setProperty("--x-liquid-fill-color-1",$APP.xk.g(b)),a.setProperty("--x-liquid-fill-color-2",$APP.yk.g(b)),a.setProperty("--x-liquid-fill-color-3",f4.g(b)),a.setProperty("--x-liquid-fill-specular-color",$APP.Fk.g(b))):(a=a.style,a.removeProperty("--x-liquid-fill-color-1"),a.removeProperty("--x-liquid-fill-color-2"),a.removeProperty("--x-liquid-fill-color-3"),a.removeProperty("--x-liquid-fill-specular-color"))},
28
+ h4=function(a){Object.defineProperty(a,"target",{get:function(){return this.getAttribute("target")},set:function(b){return $APP.n(b)?this.setAttribute("target",""+$APP.T.g(b)):this.removeAttribute("target")},enumerable:!0,configurable:!0});Object.defineProperty(a,"orientation",{get:function(){return c3(this.getAttribute("orientation"))},set:function(b){return $APP.n(b)?this.setAttribute("orientation",""+$APP.T.g(b)):this.removeAttribute("orientation")},enumerable:!0,configurable:!0});Object.defineProperty(a,
29
+ "mode",{get:function(){return e3(this.getAttribute("mode"))},set:function(b){return $APP.n(b)?this.setAttribute("mode",""+$APP.T.g(b)):this.removeAttribute("mode")},enumerable:!0,configurable:!0});Object.defineProperty(a,"theme",{get:function(){return g3(this.getAttribute("theme"))},set:function(b){return $APP.n(b)?this.setAttribute("theme",""+$APP.T.g(b)):this.removeAttribute("theme")},enumerable:!0,configurable:!0});Object.defineProperty(a,"waveIntensity",{get:function(){var b=this.getAttribute("wave-intensity");
30
+ return h3(b,.5)},set:function(b){return b==null?this.removeAttribute("wave-intensity"):this.setAttribute("wave-intensity",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"splashIntensity",{get:function(){var b=this.getAttribute("splash-intensity");return h3(b,.7)},set:function(b){return b==null?this.removeAttribute("splash-intensity"):this.setAttribute("splash-intensity",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"layers",{get:function(){return i3(this.getAttribute("layers"))},
31
+ set:function(b){return b==null?this.removeAttribute("layers"):this.setAttribute("layers",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.k(this,"__xLiquidFillProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0})},
32
+ j4=function(){var a=class extends HTMLElement{};a.observedAttributes=i4;a.prototype.connectedCallback=function(){var b=N3(this);this.__xLiquidFillModel=b;this.__xLiquidFillTime=this.__xLiquidFillSV=this.__xLiquidFillTP=this.__xLiquidFillProg=0;this.__xLiquidFillLD=-1;this.__xLiquidFillVis=!0;$APP.n($APP.k(this,"__xLiquidFillRefs"))||D3(this);g4(this,K3.g(b));O3(this,$APP.Hi.g(b));P3(this,$APP.Hi.g(b));c4(this);b4(this);d4(this);a4(this);return null};a.prototype.disconnectedCallback=function(){X3(this);
33
+ c4(this);var b=$APP.k(this,"__xLiquidFillIO");$APP.n(b)&&(b.disconnect(),this.__xLiquidFillIO=null);b=$APP.k(this,"__xLiquidFillRO");$APP.n(b)&&(b.disconnect(),this.__xLiquidFillRO=null);this.__xLiquidFillVis=!1;return null};a.prototype.attributeChangedCallback=function(b,c,d){if($APP.N(c,d)&&$APP.n($APP.k(this,"__xLiquidFillRefs"))){b=N3(this);c=$APP.k(this,"__xLiquidFillModel");this.__xLiquidFillModel=b;if(c==null||$APP.N($APP.Hi.g(b),$APP.Hi.g(c)))O3(this,$APP.Hi.g(b)),P3(this,$APP.Hi.g(b));(c==
34
+ null||$APP.N(K3.g(b),K3.g(c)))&&g4(this,K3.g(b));if(c==null||$APP.N(J3.g(b),J3.g(c)))Y3(this),a4(this);c=$APP.k(this,"__xLiquidFillW");d=$APP.k(this,"__xLiquidFillH");$APP.n($APP.n(c)?$APP.n(d)?c>0&&d>0:d:c)&&(b=$APP.W.g(b),b=$APP.n(b)?b:u3(),$APP.n(b)?(X3(this),S3(this)):(R3(this),W3(this)))}return null};h4(a.prototype);return a},k4=function(){$APP.n(customElements.get("x-liquid-fill"))||customElements.define("x-liquid-fill",j4());return null},l3=new $APP.K(null,"amp-mult","amp-mult",698045242),
35
+ z3=new $APP.K(null,"feLight","feLight",-1941454484),k3=new $APP.K(null,"speed-mult","speed-mult",-353631814),I3=new $APP.K(null,"layers-raw","layers-raw",-233899391),j3=new $APP.K(null,"phase-offset","phase-offset",-1013192067),y3=new $APP.K(null,"paths","paths",-1807389588),F3=new $APP.K(null,"theme-raw","theme-raw",1068228849),B3=new $APP.K(null,"filt-id","filt-id",-672558408),L3=new $APP.K(null,"wave-intensity","wave-intensity",-915557489),A3=new $APP.K(null,"grad","grad",1125187229),K3=new $APP.K(null,
36
+ "theme","theme",-1247880880),f4=new $APP.K(null,"color-3","color-3",265727868),G3=new $APP.K(null,"wave-intensity-raw","wave-intensity-raw",1563162777),C3=new $APP.K(null,"grad-id","grad-id",1430109665),E3=new $APP.K(null,"target-raw","target-raw",-72152629),M3=new $APP.K(null,"splash-intensity","splash-intensity",-619909243),T3=new $APP.K(null,"velocity","velocity",-581524355),H3=new $APP.K(null,"splash-intensity-raw","splash-intensity-raw",1573376927),J3=new $APP.K(null,"target","target",253001721);var i4="target orientation mode theme wave-intensity splash-intensity layers disabled".split(" ");
37
+ $APP.xf([new $APP.K(null,"waveIntensity","waveIntensity",695633410),$APP.mj,new $APP.K(null,"splashIntensity","splashIntensity",1275664841),$APP.Xi,$APP.Gk,K3,$APP.Hi,J3,$APP.ol],[new $APP.R(null,1,[$APP.Z,$APP.V],null),new $APP.R(null,1,[$APP.Z,$APP.Bj],null),new $APP.R(null,1,[$APP.Z,$APP.V],null),new $APP.R(null,1,[$APP.Z,$APP.X],null),new $APP.R(null,1,[$APP.Z,$APP.X],null),new $APP.R(null,1,[$APP.Z,$APP.X],null),new $APP.R(null,1,[$APP.Z,$APP.V],null),new $APP.R(null,1,[$APP.Z,$APP.X],null),
38
+ new $APP.R(null,2,[$APP.Z,$APP.V,$APP.Sj,!0],null)]);$APP.Pd(["x-liquid-fill-progress",new $APP.R(null,2,[$APP.yj,new $APP.R(null,2,[$APP.ol,$APP.V,T3,$APP.V],null),$APP.wl,!1],null)]);
39
+ var b3=new $APP.S(null,new $APP.R(null,2,["vertical",null,"horizontal",null],null),null),d3=new $APP.S(null,new $APP.R(null,2,["bar",null,"fill",null],null),null),f3=new $APP.S(null,new $APP.R(null,4,["custom",null,"gold",null,"lava",null,"water",null],null),null),e4=new $APP.R(null,3,["gold",new $APP.R(null,4,[$APP.xk,"#B8860B",$APP.yk,"#D4AF37",f4,"#F9F295",$APP.Fk,"rgba(255,255,240,0.6)"],null),"water",new $APP.R(null,4,[$APP.xk,"#0077B6",$APP.yk,"#00B4D8",f4,"#90E0EF",$APP.Fk,"rgba(255,255,255,0.5)"],
40
+ null),"lava",new $APP.R(null,4,[$APP.xk,"#8B0000",$APP.yk,"#FF4500",f4,"#FF8C00",$APP.Fk,"rgba(255,255,200,0.7)"],null)],null);var s3=0,x3=":host{display:block;position:relative;overflow:hidden;"+$APP.T.g("--x-liquid-fill-bg")+":transparent;"+$APP.T.g("--x-liquid-fill-border")+":none;"+$APP.T.g("--x-liquid-fill-radius")+":0;"+$APP.T.g("--x-liquid-fill-opacity")+":1;"+$APP.T.g("--x-liquid-fill-wave-speed")+":1;"+$APP.T.g("--x-liquid-fill-color-1")+":#B8860B;"+$APP.T.g("--x-liquid-fill-color-2")+":#D4AF37;"+$APP.T.g("--x-liquid-fill-color-3")+":#F9F295;"+$APP.T.g("--x-liquid-fill-specular-color")+":rgba(255,255,240,0.6);}:host{background:var("+
41
+ $APP.T.g("--x-liquid-fill-bg")+",transparent);border:var("+$APP.T.g("--x-liquid-fill-border")+",none);border-radius:var("+$APP.T.g("--x-liquid-fill-radius")+",0);}:host([mode\x3dbar]){"+$APP.T.g("--x-liquid-fill-bar-height")+":14px;height:var("+$APP.T.g("--x-liquid-fill-bar-height")+",14px);}[part\x3dcontainer]{position:relative;width:100%;height:100%;overflow:hidden;border-radius:inherit;}[part\x3dsvg]{display:block;width:100%;height:100%;position:absolute;inset:0;pointer-events:none;opacity:var("+
42
+ $APP.T.g("--x-liquid-fill-opacity")+",1);}[part\x3dcontent]{position:relative;z-index:1;}."+$APP.T.g("wave-layer")+"{transition:none;}@media(prefers-color-scheme:dark){:host{"+$APP.T.g("--x-liquid-fill-bg")+":transparent;"+$APP.T.g("--x-liquid-fill-specular-color")+":rgba(255,255,200,0.4);}}@media(prefers-reduced-motion:reduce){."+$APP.T.g("wave-layer")+"{transition:none!important;}}",V3=function V3(a){if(!$APP.r(a.isConnected))if($APP.n(function(){var E=$APP.W.g($APP.k(a,"__xLiquidFillModel"));return $APP.n(E)?
43
+ E:u3()}()))a.__xLiquidFillRaf=null;else{var c=$APP.k(a,"__xLiquidFillModel"),d=performance.now(),e=Math.min(d-$APP.k(a,"__xLiquidFillLF"),100)/1E3,g=function(){var E=window.getComputedStyle(a).getPropertyValue("--x-liquid-fill-wave-speed");E=typeof E==="string"?parseFloat(E.trim()):null;var H=E==null;H||(H=isNaN(E),H=$APP.n(H)?H:E<=0);return $APP.n(H)?1:E}(),h=$APP.Hi.g(c),l=L3.g(c);c=M3.g(c);var m=function(){var E=$APP.k(a,"__xLiquidFillSV");return $APP.n(E)?E:0}(),p=$APP.k(a,"__xLiquidFillWA"),
44
+ q=$APP.k(a,"__xLiquidFillWV"),v=$APP.k(a,"__xLiquidFillWP");a.__xLiquidFillLF=d;$APP.ia(a,"__xLiquidFillTime",function(){var E=$APP.k(a,"__xLiquidFillTime");return $APP.n(E)?E:0}()+e*g);$APP.ia(a,"__xLiquidFillProg",r3(function(){var E=$APP.k(a,"__xLiquidFillProg");return $APP.n(E)?E:0}(),function(){var E=$APP.k(a,"__xLiquidFillTP");return $APP.n(E)?E:0}(),5*e));var x=[!1];for(d=0;;)if(d<h){var y=m3(d,h),A=m*l*c*l3.g(y)*30+2*l*l3.g(y);A=q3(p[d],A,q[d],e,$APP.fl.g(y),$APP.kk.g(y));p[d]=A[0];q[d]=A[1];
45
+ v[d]+=e*g*k3.g(y);Math.abs(q[d])>.05&&(x[0]=!0);d+=1}else break;a.__xLiquidFillSV=m*Math.max(0,1-3*e);R3(a);e=$APP.k(a,"__xLiquidFillProg");Math.abs(e-function(){var E=$APP.k(a,"__xLiquidFillLD");return $APP.n(E)?E:-1}())>.005&&(a.__xLiquidFillLD=e,U3(a,e,m));var B=Math.abs(function(){var E=$APP.k(a,"__xLiquidFillProg");return $APP.n(E)?E:0}()-function(){var E=$APP.k(a,"__xLiquidFillTP");return $APP.n(E)?E:0}());$APP.n(function(){var E=x[0];return $APP.n(E)?E:m>.01||B>.001}())?$APP.ia(a,"__xLiquidFillRaf",
46
+ requestAnimationFrame(function(){return V3.g?V3.g(a):V3.call(null,a)})):a.__xLiquidFillRaf=null}return null};$APP.fa("baredom.exports.x_liquid_fill.init",k4);export const init=k4;