@vanelsas/baredom 2.2.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/README.md +3 -3
- package/dist/base.js +408 -394
- package/dist/x-alert.js +17 -17
- package/dist/x-avatar-group.js +11 -11
- package/dist/x-avatar.js +14 -14
- package/dist/x-badge.js +11 -11
- package/dist/x-bento-grid.js +5 -5
- package/dist/x-bento-item.js +4 -4
- package/dist/x-breadcrumbs.js +14 -14
- package/dist/x-button.js +15 -15
- package/dist/x-cancel-dialogue.js +16 -16
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +29 -29
- package/dist/x-chart.js +46 -46
- package/dist/x-checkbox.js +11 -11
- package/dist/x-chip.js +8 -8
- package/dist/x-collapse.js +10 -10
- package/dist/x-color-picker.js +42 -42
- package/dist/x-combobox.js +28 -0
- package/dist/x-command-palette.js +25 -25
- package/dist/x-container.js +6 -6
- package/dist/x-context-menu.js +18 -20
- package/dist/x-copy.js +22 -22
- package/dist/x-currency-field.js +21 -21
- package/dist/x-date-picker.js +37 -37
- package/dist/x-divider.js +8 -8
- package/dist/x-drawer.js +11 -11
- package/dist/x-dropdown.js +9 -9
- package/dist/x-fieldset.js +5 -5
- package/dist/x-file-download.js +7 -7
- package/dist/x-form-field.js +15 -15
- package/dist/x-form.js +9 -9
- package/dist/x-gaussian-blur.js +18 -18
- package/dist/x-grid.js +6 -6
- package/dist/x-icon.js +7 -7
- package/dist/x-image.js +18 -18
- package/dist/x-kinetic-font.js +28 -28
- package/dist/x-kinetic-typography.js +37 -37
- package/dist/x-liquid-dock.js +35 -35
- package/dist/x-liquid-fill.js +40 -40
- package/dist/x-liquid-glass.js +39 -39
- package/dist/x-menu-item.js +10 -10
- package/dist/x-menu.js +10 -10
- package/dist/x-metaball-cursor.js +27 -27
- package/dist/x-modal.js +12 -12
- package/dist/x-morph-stack.js +39 -39
- package/dist/x-navbar.js +13 -13
- package/dist/x-neural-glow.js +31 -31
- package/dist/x-notification-center.js +10 -10
- package/dist/x-organic-divider.js +15 -15
- package/dist/x-organic-progress.js +35 -35
- package/dist/x-organic-shape.js +12 -12
- package/dist/x-pagination.js +16 -16
- package/dist/x-particle-button.js +47 -47
- package/dist/x-popover.js +24 -14
- package/dist/x-progress-circle.js +7 -7
- package/dist/x-progress.js +7 -7
- package/dist/x-radio.js +11 -11
- package/dist/x-ripple-effect.js +11 -11
- package/dist/x-scroll-parallax.js +17 -17
- package/dist/x-scroll-stack.js +18 -18
- package/dist/x-scroll-story.js +34 -34
- package/dist/x-scroll-timeline.js +45 -45
- package/dist/x-scroll.js +40 -40
- package/dist/x-search-field.js +14 -14
- package/dist/x-select.js +9 -9
- package/dist/x-sidebar.js +16 -16
- package/dist/x-skeleton-group.js +15 -0
- package/dist/x-skeleton.js +1 -6
- package/dist/x-slider.js +16 -16
- package/dist/x-soft-body.js +20 -20
- package/dist/x-spacer.js +5 -5
- package/dist/x-spinner.js +5 -5
- package/dist/x-splash.js +13 -13
- package/dist/x-stat.js +9 -9
- package/dist/x-stepper.js +15 -16
- package/dist/x-switch.js +10 -10
- package/dist/x-tab.js +7 -7
- package/dist/x-table-cell.js +19 -19
- package/dist/x-table-row.js +10 -10
- package/dist/x-table.js +13 -13
- package/dist/x-tabs.js +11 -11
- package/dist/x-text-area.js +17 -17
- package/dist/x-theme.js +25 -25
- package/dist/x-timeline-item.js +21 -21
- package/dist/x-timeline.js +9 -9
- package/dist/x-toast.js +22 -22
- package/dist/x-toaster.js +8 -8
- package/dist/x-tooltip.js +14 -0
- package/dist/x-typography.js +8 -8
- package/package.json +13 -1
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
null)},
|
|
4
|
-
a;this.B=null;this.s=2153775104;this.
|
|
5
|
-
"string"&&$APP.N("",a.trim())?a.trim():null},
|
|
2
|
+
var PK=function(a,b){return $APP.ba[a]=b},QK=function(a,b){if(a!=null&&a.ra!=null)a=a.ra(a,b);else{var c=QK[$APP.ea(a==null?null:a)];if(c!=null)a=c.i?c.i(a,b):c.call(null,a,b);else if(c=QK._,c!=null)a=c.i?c.i(a,b):c.call(null,a,b);else throw $APP.pa("IDrop.-drop",a);}return a},RK=function(a){if(a!=null&&(a.G&262144||$APP.Ob===a.vc)){var b=a.ra(null,1);return $APP.n(b)?b:$APP.Yb}return new $APP.rd(null,function(){a:{var c=1;for(var d=a;;)if(d=$APP.t(d),c>0&&d)--c,d=$APP.Zb(d);else{c=d;break a}c=void 0}return c},
|
|
3
|
+
null)},SK=function(a,b){a.sort(b||$APP.ka)},UK=function(a){var b=TK();const c=Array(a.length);for(let e=0;e<a.length;e++)c[e]={index:e,value:a[e]};const d=b||$APP.ka;SK(c,function(e,g){return d(e.value,g.value)||e.index-g.index});for(b=0;b<a.length;b++)a[b]=c[b].value},TK=function(){return $APP.C.i($APP.Sc,$APP.Sc)?$APP.Sc:function(a,b){var c=$APP.Sc.i?$APP.Sc.i(a,b):$APP.Sc.call(null,a,b);return typeof c==="number"?c:$APP.n(c)?-1:$APP.n($APP.Sc.i?$APP.Sc.i(b,a):$APP.Sc.call(null,b,a))?1:0}},VK=function(a){this.ob=
|
|
4
|
+
a;this.B=null;this.s=2153775104;this.G=2048},WK=function(a){return new VK(a.toLowerCase())},XK=function(){function a(){var d=Math.floor(Math.random()*65536).toString(16);switch(d.length){case 1:return["000",d].join("");case 2:return["00",d].join("");case 3:return["0",d].join("");default:return d}}var b=(16384|4095&Math.floor(Math.random()*65536)).toString(16),c=(32768|16383&Math.floor(Math.random()*65536)).toString(16);return WK([a(),a(),"-",a(),"-",b,"-",c,"-",a(),a(),a()].join(""))},YK=function(a){return typeof a===
|
|
5
|
+
"string"&&$APP.N("",a.trim())?a.trim():null},ZK=function(a){return document.createElementNS("http://www.w3.org/2000/svg",a)},$K=function(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches},aL=function(a){var b=$APP.k(a,"__xKineticTypographyAnimate");$APP.n(b)&&(b.remove(),a.__xKineticTypographyAnimate=null)},bL=function(a,b,c,d){var e=ZK("animate");c=""+$APP.T.g(c)+"s";b=$APP.C.i(b,"reverse")?"reverse":"normal";e.setAttribute("attributeName","startOffset");e.setAttribute("repeatCount",
|
|
6
6
|
"indefinite");e.setAttribute("dur",c);d>0&&e.setAttribute("begin",""+$APP.T.g(d)+"s");switch(a){case "scroll":e.setAttribute("from",$APP.C.i(b,"reverse")?"100%":"0%");e.setAttribute("to",$APP.C.i(b,"reverse")?"0%":"100%");break;case "bounce":e.setAttribute("values",$APP.C.i(b,"reverse")?"100%;0%;100%":"0%;100%;0%");e.setAttribute("calcMode","spline");e.setAttribute("keySplines","0.42 0 0.58 1;0.42 0 0.58 1");break;case "oscillate":e.setAttribute("values",$APP.C.i(b,"reverse")?"120%;-20%;120%":"-20%;120%;-20%"),
|
|
7
|
-
e.setAttribute("calcMode","spline"),e.setAttribute("keySplines","0.42 0 0.58 1;0.42 0 0.58 1")}return e},
|
|
8
|
-
a.getAttribute("preset"),a.getAttribute("start-size"),a.getAttribute("repeat"),a.getAttribute("effect"),a.getAttribute("echo-delay"),a.getAttribute("echo-count"),a.getAttribute("end-size"),a.getAttribute("direction"),a.getAttribute("echo-opacity"),a.getAttribute("text")]);var c=$APP.M(b),d=$APP.D(c,
|
|
9
|
-
$APP.
|
|
10
|
-
parseInt(
|
|
11
|
-
$APP.
|
|
12
|
-
"string"){var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
-1," · ",null),
|
|
16
|
-
1?
|
|
17
|
-
$APP.
|
|
18
|
-
$APP.w(
|
|
19
|
-
"calc(var(--x-kinetic-typography-font-size) * "+$APP.T.g(
|
|
20
|
-
$APP.r(
|
|
21
|
-
"")?(a.setAttribute("role","presentation"),a.setAttribute("aria-hidden","true")):(a.setAttribute("role","img"),a.setAttribute("aria-label",
|
|
22
|
-
"animation","scroll");
|
|
23
|
-
a.observedAttributes=
|
|
7
|
+
e.setAttribute("calcMode","spline"),e.setAttribute("keySplines","0.42 0 0.58 1;0.42 0 0.58 1")}return e},cL=function(a){var b=$APP.k(a,"__xKineticTypographyEchoEls");if($APP.n(b)){for(var c=b.length,d=0;;)if(d<c)b[d].textEl.remove(),d+=1;else break;a.__xKineticTypographyEchoEls=[]}},xL=function(a){var b=$APP.zf([$APP.Ok,dL,$APP.Ug,eL,$APP.Bj,$APP.yk,fL,gL,hL,iL,jL,kL,$APP.oj,lL,$APP.ol],[a.getAttribute("path"),a.getAttribute("echo-scale"),a.getAttribute("animation"),a.getAttribute("font-size"),a.getAttribute("speed"),
|
|
8
|
+
a.getAttribute("preset"),a.getAttribute("start-size"),a.getAttribute("repeat"),a.getAttribute("effect"),a.getAttribute("echo-delay"),a.getAttribute("echo-count"),a.getAttribute("end-size"),a.getAttribute("direction"),a.getAttribute("echo-opacity"),a.getAttribute("text")]);var c=$APP.M(b),d=$APP.D(c,hL),e=$APP.D(c,iL),g=$APP.D(c,jL),h=$APP.D(c,kL),l=$APP.D(c,$APP.oj),m=$APP.D(c,lL),p=$APP.D(c,$APP.ol),q=$APP.D(c,$APP.Ok),v=$APP.D(c,dL),x=$APP.D(c,$APP.Ug),y=$APP.D(c,eL),A=$APP.D(c,$APP.Bj),B=$APP.D(c,
|
|
9
|
+
$APP.yk),E=$APP.D(c,fL),G=$APP.D(c,gL),H=typeof p==="string"?p:"",J=YK(q),S=typeof B==="string"?B.trim().toLowerCase():null;var aa=$APP.I(mL,S)?S:"wave";var oa=$APP.C.i(aa,"crawl"),Aa=typeof x==="string"?x.trim().toLowerCase():null;var Na=$APP.I(nL,Aa)?Aa:"scroll";var cb=typeof l==="string"?l.trim().toLowerCase():null;var db=$APP.I(oL,cb)?cb:"normal";if(typeof A==="string"){var mb=parseFloat(A.trim());var Lb=typeof mb==="number"&&$APP.r(isNaN(mb))&&mb>0?mb:1}else Lb=1;if(typeof G==="string"){var eb=
|
|
10
|
+
parseInt(G.trim(),10);var da=typeof eb==="number"&&$APP.r(isNaN(eb))&&eb>0?eb:1}else da=1;if(typeof d==="string"){var ra=$APP.Xf(d.toLowerCase().trim().split(/\s+/));var Pa=$APP.Xm.i(ra,pL)}else Pa=$APP.Tf;var Xb=YK(E),Eb=YK(h);var Nd=$APP.C.i(aa,"crawl")?null:J!=null?new $APP.Q(null,2,[$APP.El,J,qL,"0 0 800 200"],null):$APP.D(rL,aa);var Du=$APP.n($APP.n(Xb)?$APP.n(Eb)?!oa:Eb:Xb)?$APP.ld.i(Pa,"size-gradient"):Pa,Eu=$APP.I(Du,"size-gradient")?$APP.ph.i(Du,"size-pulse"):Du,FZ=$APP.I(Eu,"color-wave")?
|
|
11
|
+
$APP.ph.i(Eu,"color-shift"):Eu;if(typeof v==="string"){var am=parseFloat(v.trim());var fJ=typeof am==="number"&&$APP.r(isNaN(am))&&am>0&&am<=1?am:.85}else fJ=.85;var GZ=$APP.El.g(Nd),HZ=YK(y),IZ=qL.g(Nd),JZ=10/$APP.qh.i(Lb,.01);if(oa)var Fu=0;else if(typeof g==="string"){var bm=parseInt(g.trim(),10);Fu=typeof bm==="number"&&$APP.r(isNaN(bm))&&bm>=0&&bm<=5?bm:0}else Fu=0;if(typeof e==="string"){var Sp=parseFloat(e.trim());var gJ=typeof Sp==="number"&&$APP.r(isNaN(Sp))&&Sp>0?Sp:.3}else gJ=.3;if(typeof m===
|
|
12
|
+
"string"){var cm=parseFloat(m.trim());var hJ=typeof cm==="number"&&$APP.r(isNaN(cm))&&cm>0&&cm<=1?cm:.5}else hJ=.5;var LZ=$APP.zf([dL,$APP.Qj,$APP.Ug,eL,$APP.Bj,qL,$APP.yk,sL,fL,tL,uL,gL,vL,iL,jL,kL,$APP.oj,lL,$APP.ol],[fJ,GZ,Na,HZ,Lb,IZ,aa,oa,Xb,FZ,JZ,da,J!=null,gJ,Fu,Eb,db,hJ,H]);var Qc=$APP.M(LZ),lJ=$APP.D(Qc,iL),mJ=$APP.D(Qc,jL),Gu=$APP.D(Qc,kL),Hu=$APP.D(Qc,$APP.oj),MZ=$APP.D(Qc,lL),eh=$APP.D(Qc,$APP.ol),NZ=$APP.D(Qc,dL),Tp=$APP.D(Qc,$APP.Qj),fh=$APP.D(Qc,$APP.Ug),nJ=$APP.D(Qc,eL),oJ=$APP.D(Qc,
|
|
13
|
+
qL),OZ=$APP.D(Qc,sL),dm=$APP.D(Qc,fL),Kj=$APP.D(Qc,tL),Sh=$APP.D(Qc,uL),Iu=$APP.D(Qc,gL),pJ=$APP.k(a,"__xKineticTypographySvg"),PZ=$APP.k(a,"__xKineticTypographyPath"),qJ=$APP.k(a,"__xKineticTypographyText"),em=$APP.k(a,"__xKineticTypographyTextPath"),QZ=$APP.k(a,"__xKineticTypographySrOnly"),RZ=$APP.k(a,"__xKineticTypographyCrawlText"),Ju=a.shadowRoot.querySelector("[part\x3dpath-line]");if($APP.n(OZ))a.setAttribute("data-preset","crawl"),RZ.textContent=eh,aL(a),cL(a),$APP.N(fh,"none")?a.setAttribute("data-animation",
|
|
14
|
+
fh):a.removeAttribute("data-animation"),$APP.C.i(Hu,"reverse")?a.setAttribute("data-direction","reverse"):a.removeAttribute("data-direction"),$APP.I(Kj,"color-shift")?a.setAttribute("data-effect","color-shift"):a.removeAttribute("data-effect");else{a.removeAttribute("data-preset");a.removeAttribute("data-direction");$APP.n(oJ)&&pJ.setAttribute("viewBox",oJ);$APP.n(Tp)&&PZ.setAttribute("d",Tp);$APP.n($APP.n(Ju)?Tp:Ju)&&Ju.setAttribute("d",Tp);var Ku=Iu<=1?eh:$APP.Jd($APP.T,RK(wL.i(new $APP.Zd(null,
|
|
15
|
+
-1," · ",null),Iu>0?new $APP.Zd(null,Iu,eh,null):$APP.Yb))),rJ=$APP.I(Kj,"size-gradient"),SZ=$APP.I(Kj,"color-wave"),sJ=rJ?$APP.n(dm)?$APP.n(Gu)?$APP.N(eh,""):Gu:dm:rJ;var TZ=$APP.n(sJ)?sJ:SZ&&$APP.N(eh,"");if($APP.n(TZ)){em.textContent="";var Lu=$APP.xe(Ku),Th=$APP.z(Lu),Uh=$APP.I(Kj,"size-gradient"),Mu=$APP.I(Kj,"color-wave"),gh=Uh?parseFloat(dm):null,Up=Uh?parseFloat(Gu):null;if(Uh){var tJ=$APP.n(dm)?dm:"px",UZ=/[a-z%]+/;if(typeof tJ==="string"){var Vp=UZ.exec(tJ);var uJ=Vp==null?null:Vp.length===
|
|
16
|
+
1?Vp[0]:$APP.xe(Vp)}else throw new TypeError("re-find must match against a string.");var vJ=$APP.n(uJ)?uJ:"px"}else vJ=null;for(var wJ=vJ,xJ=Mu?Th>0?Sh/Th:0:null,Nu=$APP.t($APP.dg(0,Th)),Ou=null,Pu=0,Wp=0;;)if(Wp<Pu){var Vh=Ou.F(null,Wp),Xp=ZK("tspan");$APP.n(Uh?$APP.n(gh)?Up:gh:Uh)&&Xp.setAttribute("font-size",""+$APP.T.g(gh+(Th>1?Vh/(Th-1):0)*(Up-gh))+$APP.T.g(wJ));Mu&&(Xp.style.cssText="animation:xkt-color-wave "+$APP.T.g(Sh)+"s ease-in-out infinite;animation-delay:"+$APP.T.g(Vh*xJ)+"s;");Xp.textContent=
|
|
17
|
+
$APP.pc(Lu,Vh);em.appendChild(Xp);Wp+=1}else{var yJ=$APP.t(Nu);if(yJ){var fm=yJ;if($APP.Nc(fm)){var zJ=$APP.yb(fm),VZ=$APP.zb(fm),WZ=zJ,XZ=$APP.z(zJ);Nu=VZ;Ou=WZ;Pu=XZ}else{Vh=$APP.u(fm);var Yp=ZK("tspan");$APP.n(Uh?$APP.n(gh)?Up:gh:Uh)&&Yp.setAttribute("font-size",""+$APP.T.g(gh+(Th>1?Vh/(Th-1):0)*(Up-gh))+$APP.T.g(wJ));Mu&&(Yp.style.cssText="animation:xkt-color-wave "+$APP.T.g(Sh)+"s ease-in-out infinite;animation-delay:"+$APP.T.g(Vh*xJ)+"s;");Yp.textContent=$APP.pc(Lu,Vh);em.appendChild(Yp);Nu=
|
|
18
|
+
$APP.w(fm);Ou=null;Pu=0}Wp=0}else break}}else em.textContent=Ku;cL(a);if(mJ>0){for(var AJ=$APP.k(a,"__xKineticTypographyPathId"),BJ=[],YZ=$APP.N(fh,"none")&&$APP.r($K()),ZZ=Sh>0?lJ/Sh*100:5,Qu=0;;)if(Qu<mJ){var Zp=Qu+1,Lj=document.createElementNS("http://www.w3.org/2000/svg","text"),Mj=document.createElementNS("http://www.w3.org/2000/svg","textPath"),$Z=Math.pow(MZ,Zp),a_=Math.pow(NZ,Zp),b_="-"+$APP.T.g(ZZ*Zp)+"%";Lj.setAttribute("part","text-echo");Lj.setAttribute("opacity",""+$APP.T.g($Z));Lj.setAttribute("font-size",
|
|
19
|
+
"calc(var(--x-kinetic-typography-font-size) * "+$APP.T.g(a_)+")");Mj.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+$APP.T.g(AJ));Mj.setAttribute("href","#"+$APP.T.g(AJ));Mj.setAttribute("startOffset",b_);Mj.textContent=Ku;if(YZ){var c_=bL(fh,Hu,Sh,lJ*Zp);Mj.appendChild(c_)}Lj.appendChild(Mj);pJ.appendChild(Lj);BJ.push({textEl:Lj});Qu+=1}else break;a.__xKineticTypographyEchoEls=BJ}$APP.n(nJ)?qJ.style.setProperty("font-size",nJ):qJ.style.removeProperty("font-size");aL(a);if($APP.N(fh,"none")&&
|
|
20
|
+
$APP.r($K())){var CJ=bL(fh,Hu,Sh,0);em.appendChild(CJ);a.__xKineticTypographyAnimate=CJ}var gm=$APP.ph.C(Kj,"size-gradient",$APP.uc(["color-wave"]));if($APP.t(gm)){var d_=a.setAttribute;if($APP.t(gm)){var DJ=$APP.zd.g?$APP.zd.g(gm):$APP.zd.call(null,gm);UK(DJ);var EJ=$APP.Fc($APP.t(DJ),$APP.Gc(gm))}else EJ=$APP.Yb;d_.call(a,"data-effect",$APP.Gg(EJ))}else a.removeAttribute("data-effect");$APP.N(fh,"none")?a.setAttribute("data-animation",fh):a.removeAttribute("data-animation")}QZ.textContent=eh;$APP.C.i(eh,
|
|
21
|
+
"")?(a.setAttribute("role","presentation"),a.setAttribute("aria-hidden","true")):(a.setAttribute("role","img"),a.setAttribute("aria-label",eh))},yL=function(a,b,c,d){Object.defineProperty(a,c,{get:function(){var e=this.getAttribute(b);return $APP.n(e)?e:d},set:function(e){return typeof e==="string"&&$APP.N("",e)?this.setAttribute(b,e):this.removeAttribute(b)},enumerable:!0,configurable:!0})},zL=function(a){yL(a,"text","text","");yL(a,"path","path",null);yL(a,"preset","preset","wave");yL(a,"animation",
|
|
22
|
+
"animation","scroll");yL(a,"speed","speed",""+$APP.T.g(1));yL(a,"direction","direction","normal");yL(a,"effect","effect","none");yL(a,"font-size","fontSize",null);yL(a,"start-size","startSize",null);yL(a,"end-size","endSize",null);yL(a,"repeat","repeat",""+$APP.T.g(1));yL(a,"echo-count","echoCount",""+$APP.T.g(0));yL(a,"echo-delay","echoDelay",""+$APP.T.g(.3));yL(a,"echo-opacity","echoOpacity",""+$APP.T.g(.5));yL(a,"echo-scale","echoScale",""+$APP.T.g(.85))},BL=function(){var a=class extends HTMLElement{};
|
|
23
|
+
a.observedAttributes=AL;a.prototype.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xKineticTypographyInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=ZK("svg"),g=ZK("defs"),h=ZK("path"),l=ZK("path"),m=ZK("text"),p=ZK("textPath"),q=document.createElement("span"),v=document.createElement("div"),x=document.createElement("div"),y="xkt-"+$APP.T.g(XK());c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-kinetic-typography-color:var(--x-color-text,currentColor);--x-kinetic-typography-font-family:system-ui,sans-serif;--x-kinetic-typography-font-size:24px;--x-kinetic-typography-font-weight:400;--x-kinetic-typography-letter-spacing:0;--x-kinetic-typography-opacity:1;--x-kinetic-typography-stroke:none;--x-kinetic-typography-stroke-width:0;--x-kinetic-typography-duration:10s;--x-kinetic-typography-timing:linear;--x-kinetic-typography-color-shift-from:var(--x-color-text,currentColor);--x-kinetic-typography-color-shift-to:var(--x-color-primary,#3b82f6);--x-kinetic-typography-path-stroke:none;--x-kinetic-typography-path-stroke-width:0;--x-kinetic-typography-crawl-perspective:400px;}@media (prefers-color-scheme:dark){:host{--x-kinetic-typography-color:var(--x-color-text,rgba(255,255,255,0.87));}}[part\x3dcontainer]{width:100%;height:100%;position:relative;}[part\x3dsvg]{width:100%;height:100%;overflow:visible;}[part\x3dtext]{fill:var(--x-kinetic-typography-color);font-family:var(--x-kinetic-typography-font-family);font-size:var(--x-kinetic-typography-font-size);font-weight:var(--x-kinetic-typography-font-weight);letter-spacing:var(--x-kinetic-typography-letter-spacing);opacity:var(--x-kinetic-typography-opacity);stroke:var(--x-kinetic-typography-stroke);stroke-width:var(--x-kinetic-typography-stroke-width);}[part\x3dtext-echo]{fill:var(--x-kinetic-typography-color);font-family:var(--x-kinetic-typography-font-family);font-weight:var(--x-kinetic-typography-font-weight);letter-spacing:var(--x-kinetic-typography-letter-spacing);stroke:var(--x-kinetic-typography-stroke);stroke-width:var(--x-kinetic-typography-stroke-width);}@keyframes xkt-opacity-wave{0%,100%{opacity:var(--x-kinetic-typography-opacity);}50%{opacity:0.3;}}@keyframes xkt-size-pulse{0%,100%{font-size:var(--x-kinetic-typography-font-size);}50%{font-size:calc(var(--x-kinetic-typography-font-size) * 1.15);}}@keyframes xkt-spacing-breathe{0%,100%{letter-spacing:var(--x-kinetic-typography-letter-spacing);}50%{letter-spacing:0.15em;}}@keyframes xkt-color-shift{0%,100%{fill:var(--x-kinetic-typography-color-shift-from);}50%{fill:var(--x-kinetic-typography-color-shift-to);}}@keyframes xkt-color-wave{0%,100%{fill:var(--x-kinetic-typography-color-shift-from);}50%{fill:var(--x-kinetic-typography-color-shift-to);}}:host([data-effect~\x3dopacity-wave]) [part\x3dtext]{animation:xkt-opacity-wave var(--x-kinetic-typography-duration) ease-in-out infinite;}:host([data-effect~\x3dsize-pulse]) [part\x3dtext]{animation:xkt-size-pulse var(--x-kinetic-typography-duration) ease-in-out infinite;}:host([data-effect~\x3dspacing-breathe]) [part\x3dtext]{animation:xkt-spacing-breathe var(--x-kinetic-typography-duration) ease-in-out infinite;}:host([data-effect~\x3dcolor-shift]) [part\x3dtext]{animation:xkt-color-shift var(--x-kinetic-typography-duration) ease-in-out infinite;}:host([data-effect~\x3dopacity-wave][data-effect~\x3dcolor-shift]) [part\x3dtext]{animation:xkt-opacity-wave var(--x-kinetic-typography-duration) ease-in-out infinite,xkt-color-shift var(--x-kinetic-typography-duration) ease-in-out infinite;}:host([data-effect~\x3dopacity-wave][data-effect~\x3dspacing-breathe]) [part\x3dtext]{animation:xkt-opacity-wave var(--x-kinetic-typography-duration) ease-in-out infinite,xkt-spacing-breathe var(--x-kinetic-typography-duration) ease-in-out infinite;}:host([data-effect~\x3dcolor-shift][data-effect~\x3dspacing-breathe]) [part\x3dtext]{animation:xkt-color-shift var(--x-kinetic-typography-duration) ease-in-out infinite,xkt-spacing-breathe var(--x-kinetic-typography-duration) ease-in-out infinite;}:host([data-effect~\x3dopacity-wave][data-effect~\x3dcolor-shift][data-effect~\x3dspacing-breathe]) [part\x3dtext]{animation:xkt-opacity-wave var(--x-kinetic-typography-duration) ease-in-out infinite,xkt-color-shift var(--x-kinetic-typography-duration) ease-in-out infinite,xkt-spacing-breathe var(--x-kinetic-typography-duration) ease-in-out infinite;}[part\x3dpath-line]{fill:none;stroke:var(--x-kinetic-typography-path-stroke);stroke-width:var(--x-kinetic-typography-path-stroke-width);}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}[part\x3dcrawl-viewport]{display:none;}:host([data-preset\x3dcrawl]) [part\x3dsvg]{display:none;}:host([data-preset\x3dcrawl]) [part\x3dcrawl-viewport]{display:block;perspective:var(--x-kinetic-typography-crawl-perspective);height:100%;overflow:hidden;position:relative;}:host([data-preset\x3dcrawl]) [part\x3dcrawl-text]{position:absolute;bottom:0;left:50%;transform:translateX(-50%) rotateX(25deg);transform-origin:50% 100%;text-align:center;font-family:var(--x-kinetic-typography-font-family);font-size:var(--x-kinetic-typography-font-size);font-weight:var(--x-kinetic-typography-font-weight);color:var(--x-kinetic-typography-color);letter-spacing:var(--x-kinetic-typography-letter-spacing);white-space:pre-line;line-height:1.6;width:80%;}@keyframes xkt-crawl{0%{bottom:-100%;opacity:1;}90%{opacity:1;}100%{bottom:200%;opacity:0;}}:host([data-preset\x3dcrawl][data-animation\x3dscroll]) [part\x3dcrawl-text]{animation:xkt-crawl var(--x-kinetic-typography-duration) linear infinite;}:host([data-preset\x3dcrawl][data-animation\x3dscroll][data-direction\x3dreverse]) [part\x3dcrawl-text]{animation-direction:reverse;}:host([data-preset\x3dcrawl][data-effect~\x3dcolor-shift]) [part\x3dcrawl-text]{animation:xkt-crawl var(--x-kinetic-typography-duration) linear infinite,xkt-crawl-color-shift var(--x-kinetic-typography-duration) ease-in-out infinite;}@keyframes xkt-crawl-color-shift{0%,100%{color:var(--x-kinetic-typography-color-shift-from);}50%{color:var(--x-kinetic-typography-color-shift-to);}}@media (prefers-reduced-motion:reduce){:host([data-effect]) [part\x3dtext]{animation:none;}:host([data-preset\x3dcrawl]) [part\x3dcrawl-text]{animation:none;}}";
|
|
24
24
|
d.setAttribute("part","container");e.setAttribute("part","svg");e.setAttribute("aria-hidden","true");e.setAttribute("focusable","false");h.setAttribute("id",y);g.appendChild(h);l.setAttribute("part","path-line");e.appendChild(l);m.setAttribute("part","text");p.setAttribute("href","#"+$APP.T.g(y));m.appendChild(p);e.appendChild(g);e.appendChild(m);v.setAttribute("part","crawl-viewport");x.setAttribute("part","crawl-text");v.appendChild(x);q.classList.add("sr-only");q.setAttribute("part","sr-only");
|
|
25
|
-
d.appendChild(e);d.appendChild(v);d.appendChild(q);b.appendChild(c);b.appendChild(d);this.__xKineticTypographyContainer=d;this.__xKineticTypographySvg=e;this.__xKineticTypographyPath=h;this.__xKineticTypographyText=m;this.__xKineticTypographyTextPath=p;this.__xKineticTypographySrOnly=q;this.__xKineticTypographyPathId=y;this.__xKineticTypographyCrawlViewport=v;this.__xKineticTypographyCrawlText=x;this.__xKineticTypographyEchoEls=[];this.__xKineticTypographyInit=!0}
|
|
26
|
-
function(){
|
|
27
|
-
$APP.
|
|
28
|
-
$APP.
|
|
29
|
-
$APP.
|
|
30
|
-
var
|
|
31
|
-
|
|
32
|
-
$APP.f.oc=$APP.
|
|
33
|
-
var
|
|
34
|
-
|
|
35
|
-
$APP.
|
|
36
|
-
[$APP.
|
|
37
|
-
null),new $APP.
|
|
38
|
-
var
|
|
39
|
-
null),null),
|
|
40
|
-
null),"spiral",new $APP.
|
|
25
|
+
d.appendChild(e);d.appendChild(v);d.appendChild(q);b.appendChild(c);b.appendChild(d);this.__xKineticTypographyContainer=d;this.__xKineticTypographySvg=e;this.__xKineticTypographyPath=h;this.__xKineticTypographyText=m;this.__xKineticTypographyTextPath=p;this.__xKineticTypographySrOnly=q;this.__xKineticTypographyPathId=y;this.__xKineticTypographyCrawlViewport=v;this.__xKineticTypographyCrawlText=x;this.__xKineticTypographyEchoEls=[];this.__xKineticTypographyInit=!0}xL(this);return null};a.prototype.disconnectedCallback=
|
|
26
|
+
function(){aL(this);$APP.n($APP.k(this,"__xKineticTypographySvg"))&&cL(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xKineticTypographyInit"))&&xL(this);return null};zL(a.prototype);return a},CL=function(){$APP.n(customElements.get("x-kinetic-typography"))||customElements.define("x-kinetic-typography",BL());return null};$APP.Ub.prototype.ra=PK(6,function(a,b){return b>0?this.u+b<this.j.length?new $APP.Ub(this.j,this.u+b,null):null:this});
|
|
27
|
+
$APP.Zd.prototype.ra=PK(5,function(a,b){if(this.count===-1)return this;a=this.count-b;return a>0?new $APP.Zd(null,a,this.o,null):null});$APP.O.prototype.ra=PK(4,function(a,b){if(b<this.l){a=b%32;var c=$APP.oe(this,b);b-=a;return $APP.ze?$APP.ze(this,c,b,a):$APP.Be.call(null,this,c,b,a)}return null});
|
|
28
|
+
$APP.ye.prototype.ra=PK(3,function(a,b){a=this.ja+b;if(a<this.node.length)return $APP.ze?$APP.ze(this.ka,this.node,this.u,a):$APP.Be.call(null,this.ka,this.node,this.u,a);var c=this.u+a;if(c<$APP.wa(this.ka)){a=c%32;b=this.ka;var d=$APP.oe(this.ka,c);c-=a;return $APP.ze?$APP.ze(b,d,c,a):$APP.Be.call(null,b,d,c,a)}return null});$APP.Qe.prototype.ra=PK(2,function(a,b){return b<this.O(null)?new $APP.Qe(this.j,this.u+2*b,null):null});
|
|
29
|
+
$APP.Q.prototype.ra=PK(1,function(a,b){a=this.P(null);return a==null?null:QK(a,b)});$APP.ag.prototype.ra=PK(0,function(a,b){return b>0?b<this.l?new $APP.ag(null,this.start+this.step*b,this.end,this.step,this.l-b,null):null:this});
|
|
30
|
+
var wL=function wL(a){switch(arguments.length){case 0:return wL.H();case 1:return wL.g(arguments[0]);case 2:return wL.i(arguments[0],arguments[1]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return wL.C(arguments[0],arguments[1],2<c.length?new $APP.Ub(c.slice(2),0,null):null)}};wL.H=function(){return $APP.Yb};wL.g=function(a){return new $APP.rd(null,function(){return a},null)};
|
|
31
|
+
wL.i=function(a,b){return new $APP.rd(null,function(){var c=$APP.t(a),d=$APP.t(b);return c&&d?$APP.od($APP.u(c),$APP.od($APP.u(d),wL.i($APP.Zb(c),$APP.Zb(d)))):null},null)};wL.C=function(a,b,c){return new $APP.rd(null,function(){var d=$APP.ae.i($APP.t,$APP.ld.C(c,b,$APP.uc([a])));return $APP.Td($APP.dd,d)?$APP.$d.i($APP.ae.i($APP.u,d),$APP.Jd(wL,$APP.ae.i($APP.Zb,d))):null},null)};wL.J=function(a){var b=$APP.u(a),c=$APP.w(a);a=$APP.u(c);c=$APP.w(c);return this.C(b,a,c)};wL.N=2;$APP.f=VK.prototype;
|
|
32
|
+
$APP.f.oc=$APP.Ob;$APP.f.toString=function(){return this.ob};$APP.f.R=function(a,b){return(a=b!=null?$APP.Ob===b.oc?!0:!1:!1)?this.ob===b.ob:a};$APP.f.S=function(a,b){return $APP.ob(b,['#uuid "',$APP.qa(this.ob),'"'].join(""))};$APP.f.T=function(){this.B==null&&(this.B=$APP.Pb(this.ob));return this.B};$APP.f.Ha=function(a,b){if(b instanceof VK)return $APP.ka(this.ob,b.ob);throw Error(["Cannot compare ",$APP.qa(this)," to ",$APP.qa(b)].join(""));};
|
|
33
|
+
var lL=new $APP.K(null,"echo-opacity","echo-opacity",-1476699970),fL=new $APP.K(null,"start-size","start-size",-1818812493),sL=new $APP.K(null,"crawl?","crawl?",829918610),dL=new $APP.K(null,"echo-scale","echo-scale",1307207648),iL=new $APP.K(null,"echo-delay","echo-delay",845689658),jL=new $APP.K(null,"echo-count","echo-count",1053271067),qL=new $APP.K(null,"view-box","view-box",-1792199155),gL=new $APP.K(null,"repeat","repeat",832692087),vL=new $APP.K(null,"custom-path?","custom-path?",-1532616839),
|
|
34
|
+
hL=new $APP.K(null,"effect","effect",347343289),uL=new $APP.K(null,"duration-s","duration-s",-1976899627),eL=new $APP.K(null,"font-size","font-size",-1847940346),tL=new $APP.K(null,"effects","effects",-282369292),kL=new $APP.K(null,"end-size","end-size",761612093);var AL="text path preset animation speed direction effect font-size start-size end-size repeat echo-count echo-delay echo-opacity echo-scale".split(" ");
|
|
35
|
+
$APP.zf([$APP.Ok,new $APP.K(null,"startSize","startSize",-1750632892),$APP.Ug,$APP.Bj,new $APP.K(null,"echoCount","echoCount",-1194377974),new $APP.K(null,"echoScale","echoScale",1536204716),new $APP.K(null,"echoOpacity","echoOpacity",-1325258611),$APP.yk,gL,new $APP.K(null,"fontSize","fontSize",919623033),hL,new $APP.K(null,"echoDelay","echoDelay",-1807132900),new $APP.K(null,"endSize","endSize",674490141),$APP.oj,$APP.ol],[new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"path"],null),new $APP.Q(null,2,
|
|
36
|
+
[$APP.Z,$APP.Y,$APP.Bk,"start-size"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"animation"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"speed"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"echo-count"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"echo-scale"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"echo-opacity"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"preset"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"repeat"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"font-size"],
|
|
37
|
+
null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"effect"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"echo-delay"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"end-size"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"direction"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"text"],null)]);
|
|
38
|
+
var mL=new $APP.R(null,new $APP.Q(null,8,["spiral",null,"infinity",null,"arc",null,"line",null,"crawl",null,"wave",null,"circle",null,"sine",null],null),null),nL=new $APP.R(null,new $APP.Q(null,4,["none",null,"scroll",null,"bounce",null,"oscillate",null],null),null),oL=new $APP.R(null,new $APP.Q(null,2,["reverse",null,"normal",null],null),null),pL=new $APP.R(null,new $APP.Q(null,6,["spacing-breathe",null,"color-shift",null,"opacity-wave",null,"color-wave",null,"size-gradient",null,"size-pulse",null],
|
|
39
|
+
null),null),rL=new $APP.Q(null,7,["wave",new $APP.Q(null,2,[$APP.El,"M0,100 C100,20 200,180 300,100 C400,20 500,180 600,100 C700,20 800,180 800,100",qL,"0 0 800 200"],null),"circle",new $APP.Q(null,2,[$APP.El,"M125,10 A115,115 0 1,1 124.99,10",qL,"0 0 250 250"],null),"arc",new $APP.Q(null,2,[$APP.El,"M50,350 Q400,10 750,350",qL,"0 0 800 400"],null),"infinity",new $APP.Q(null,2,[$APP.El,"M200,200 C200,80 0,80 0,200 C0,320 200,320 200,200 C200,80 400,80 400,200 C400,320 200,320 200,200",qL,"0 0 400 400"],
|
|
40
|
+
null),"spiral",new $APP.Q(null,2,[$APP.El,"M250,250 C250,150 350,150 350,250 C350,370 130,370 130,250 C130,110 390,110 390,250 C390,410 90,410 90,250",qL,"0 0 500 500"],null),"sine",new $APP.Q(null,2,[$APP.El,"M0,100 C50,0 100,0 150,100 C200,200 250,200 300,100 C350,0 400,0 450,100 C500,200 550,200 600,100 C650,0 700,0 750,100 C800,200 800,150 800,100",qL,"0 0 800 200"],null),"line",new $APP.Q(null,2,[$APP.El,"M0,50 L800,50",qL,"0 0 800 100"],null)],null);$APP.ha("baredom.exports.x_kinetic_typography.init",CL);export const init=CL;
|
package/dist/x-liquid-dock.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
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.
|
|
4
|
-
$APP.
|
|
5
|
-
"svg"),m=document.createElement("div"),p=document.createElement("div"),q=document.createElement("slot");a.__xLiquidDockUid=c;g.textContent=
|
|
6
|
-
b=$APP.D(v,$APP.
|
|
2
|
+
var bq=function(a){return typeof a==="string"?(a=a.trim().toLowerCase(),$APP.I(aq,a)?a:"bottom"):"bottom"},cq=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},dq=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"},eq=function(a){return typeof a==="string"&&a.trim().length>0?a.trim():null},fq=function(a,b){return a+(b-a)*.1},jq=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.Q(null,4,[gq,e,$APP.Wi,1+c*(h-1),hq,a*d*g*.3,iq,b*d*g*.3],null)},mq=function(a,b){var c=a*a;a=c*28;c=.6+c*.9;switch(b){case "bottom":return new $APP.Q(null,3,[kq,0,lq,-a,$APP.Wi,c],null);case "top":return new $APP.Q(null,3,[kq,0,lq,a,$APP.Wi,c],null);case "left":return new $APP.Q(null,3,[kq,a,lq,0,$APP.Wi,c],null);case "right":return new $APP.Q(null,3,[kq,-a,lq,0,$APP.Wi,c],null);default:return new $APP.Q(null,3,[kq,0,lq,-a,
|
|
4
|
+
$APP.Wi,c],null)}},oq=function(a,b,c,d){a*=a;var e=12*d*a;return new $APP.Q(null,3,[nq,function(){switch(c){case "bottom":return-e;case "top":return e;case "left":return e;case "right":return-e;default:return-e}}(),$APP.Ol,5*d*a*b,$APP.Wi,1+.12*d*a],null)},uq=function(a){var b=$APP.k(a,"__xLiquidDockModel"),c=pq[0];pq[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=qq;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.ii);c=$APP.D(v,$APP.Gl);v=$APP.D(v,rq);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"),G=document.createElementNS("http://www.w3.org/2000/svg","feDisplacementMap");y.setAttribute("id",
|
|
7
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");
|
|
9
|
-
h,$APP.
|
|
10
|
-
var c=$APP.D(b,
|
|
11
|
-
a.assignedElements():null},
|
|
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},
|
|
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},
|
|
14
|
-
(a.__xLiquidDockSeed=0,$APP.
|
|
15
|
-
3,["index",b,"item",c,"source",d],null))});a.dispatchEvent(b)},
|
|
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(),
|
|
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)&&
|
|
18
|
-
g);a.addEventListener("pointerleave",e);a.addEventListener("click",d);a.addEventListener("keydown",c);$APP.n(h)&&h.addEventListener("slotchange",b);$APP.
|
|
19
|
-
$APP.n(c)&&(c=$APP.M(c),c=$APP.D(c,$APP.
|
|
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
|
|
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
|
|
22
|
-
this.setAttribute("ripple-speed",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"color",{get:function(){return
|
|
23
|
-
""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"magnetStrength",{get:function(){var b=this.getAttribute("magnet-strength");return
|
|
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})},
|
|
25
|
-
$APP.
|
|
26
|
-
a.prototype.disconnectedCallback=function(){
|
|
27
|
-
e=$APP.
|
|
28
|
-
|
|
29
|
-
"influence",1453493017),
|
|
30
|
-
-1816718091),
|
|
31
|
-
$APP.
|
|
32
|
-
$APP.
|
|
8
|
+
"noise");G.setAttribute("in","goo");G.setAttribute("in2","noise");G.setAttribute("scale",""+$APP.T.g(v));G.setAttribute("xChannelSelector","R");G.setAttribute("yChannelSelector","G");y.appendChild(A);y.appendChild(B);y.appendChild(E);y.appendChild(G);x.appendChild(y);l.appendChild(x);d=new $APP.Q(null,5,[$APP.Yk,y,$APP.ij,A,$APP.Gm,B,$APP.Bl,E,$APP.Hj,G],null);h.appendChild(l);h.appendChild(m);h.appendChild(p);e.appendChild(g);e.appendChild(h);e=$APP.Rf($APP.uc([d,new $APP.Q(null,6,[$APP.Ci,e,$APP.xi,
|
|
9
|
+
h,$APP.gk,l,sq,m,tq,p,$APP.fj,q],null)]));a.__xLiquidDockRefs=e},Fq=function(a){a=$APP.zf([$APP.Vj,$APP.jm,vq,wq,$APP.Yh,$APP.Sm,xq,$APP.Ri,yq,$APP.$i,zq],[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.$i);
|
|
10
|
+
var c=$APP.D(b,zq),d=$APP.D(b,$APP.Vj),e=$APP.D(b,$APP.jm),g=$APP.D(b,vq),h=$APP.D(b,wq),l=$APP.D(b,$APP.Yh),m=$APP.D(b,$APP.Sm),p=$APP.D(b,xq),q=$APP.D(b,$APP.Ri);b=$APP.D(b,yq);d=bq(d);return $APP.zf([$APP.Jj,Aq,Bq,$APP.Gl,rq,$APP.ii,Cq,$APP.Wj,Dq,$APP.Om,Eq,$APP.X],[eq(m),cq(h,.03,.005,.15),cq(b,1,0,2),dq(l),cq(p,8,0,40),cq(e,10,2,30),$APP.C.i(d,"left")||$APP.C.i(d,"right"),cq(q,8,0,40),cq(c,150,40,400),d,cq(g,.6,0,2),a!=null])},Gq=function(a){a=$APP.fj.g($APP.k(a,"__xLiquidDockRefs"));return $APP.n(a)?
|
|
11
|
+
a.assignedElements():null},Hq=function(a){var b=$APP.M($APP.k(a,"__xLiquidDockRefs")),c=$APP.D(b,sq);b=function(){var q=Gq(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.Vd(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},Iq=function(a){var b=$APP.M($APP.k(a,"__xLiquidDockRefs")),c=$APP.D(b,$APP.xi);b=Gq(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},Jq=function(a,b){var c=$APP.M(b);b=$APP.D(c,$APP.Jj);c=$APP.D(c,$APP.Wj);$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")},Lq=function(a){$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)||$APP.n($APP.X.g($APP.k(a,"__xLiquidDockModel")))||
|
|
14
|
+
(a.__xLiquidDockSeed=0,$APP.ja(a,"__xLiquidDockRaf",requestAnimationFrame(function(){return Kq(a)})));return null},Mq=function(a){var b=$APP.k(a,"__xLiquidDockRaf");$APP.n(b)&&(cancelAnimationFrame(b),a.__xLiquidDockRaf=null)},Nq=function(a){a=Gq(a);if($APP.n(a))for(var b=a.length,c=0;;)if(c<b)a[c].style.transform="",c+=1;else break},Oq=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.Gh(new $APP.Q(null,
|
|
15
|
+
3,["index",b,"item",c,"source",d],null))});a.dispatchEvent(b)},Pq=function(a){Hq(a);var b=Gq(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 Iq(a)});return null},Tq=function(a){function b(){return Pq(a)}function c(l){var m=$APP.k(a,"__xLiquidDockModel");if(!$APP.n($APP.X.g(m))){var p=Gq(a),q=$APP.n(p)?p.length:null,v=l.key,x=Cq.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(),Oq(a,y,p[y],"keyboard")))}return null}function d(l){if(!$APP.n($APP.X.g($APP.k(a,"__xLiquidDockModel")))){var m=Gq(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)&&Oq(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.xi);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.fj);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.ja(a,"__xLiquidDockHdl",new $APP.Q(null,5,[Qq,g,Rq,e,$APP.Ck,d,Sq,c,$APP.fj,b],null))},Uq=function(a){var b=$APP.k(a,"__xLiquidDockHdl");if($APP.n(b)){a.removeEventListener("pointermove",Qq.g(b));a.removeEventListener("pointerleave",Rq.g(b));a.removeEventListener("click",$APP.Ck.g(b));a.removeEventListener("keydown",Sq.g(b));var c=$APP.k(a,"__xLiquidDockRefs");
|
|
19
|
+
$APP.n(c)&&(c=$APP.M(c),c=$APP.D(c,$APP.fj),$APP.n(c)&&c.removeEventListener("slotchange",$APP.fj.g(b)));a.__xLiquidDockHdl=null}},Vq=function(a){Object.defineProperty(a,"position",{get:function(){return bq(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 cq(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 cq(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 dq(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 cq(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 cq(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 eq(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 cq(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 cq(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 cq(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})},Xq=function(){var a=class extends HTMLElement{};a.observedAttributes=Wq;a.prototype.connectedCallback=function(){var b=this,c=Fq(b);b.__xLiquidDockModel=c;$APP.ja(b,"__xLiquidDockMouse",{x:0,y:0,active:!1});
|
|
25
|
+
$APP.ja(b,"__xLiquidDockBlobs",[]);$APP.ja(b,"__xLiquidDockBlobSt",[]);$APP.ja(b,"__xLiquidDockItemsR",[]);b.__xLiquidDockFocus=-1;b.__xLiquidDockBurst=0;$APP.n($APP.k(b,"__xLiquidDockRefs"))||uq(b);Jq(b,c);$APP.n(b.hasAttribute("role"))||b.setAttribute("role","navigation");Uq(b);Tq(b);c=$APP.k(b,"__xLiquidDockRO");$APP.n(c)&&c.disconnect();c=new ResizeObserver(function(){Iq(b);return null});b.__xLiquidDockRO=c;c.observe(b);requestAnimationFrame(function(){Hq(b);Iq(b);return Lq(b)});return null};
|
|
26
|
+
a.prototype.disconnectedCallback=function(){Mq(this);Uq(this);Nq(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=Fq(this),$APP.n($APP.k(this,"__xLiquidDockRefs")))){d=$APP.M(b);var e=$APP.D(d,$APP.ii);c=$APP.D(d,$APP.Gl);d=$APP.D(d,rq);var g=$APP.k(this,"__xLiquidDockRefs"),h=$APP.ij.g(g);$APP.n(h)&&h.setAttribute("stdDeviation",""+$APP.T.g(e));
|
|
27
|
+
e=$APP.Gm.g(g);$APP.n(e)&&e.setAttribute("values",c);c=$APP.Hj.g(g);$APP.n(c)&&c.setAttribute("scale",""+$APP.T.g(d));Jq(this,b);Iq(this);$APP.n($APP.X.g(b))?(Mq(this),Nq(this)):$APP.n($APP.k(this,"__xLiquidDockRaf"))||Lq(this)}return null};Vq(a.prototype);return a},Yq=function(){$APP.n(customElements.get("x-liquid-dock"))||customElements.define("x-liquid-dock",Xq());return null},Aq=new $APP.K(null,"ripple-speed","ripple-speed",229709223),rq=new $APP.K(null,"ripple-scale","ripple-scale",-1874116111),
|
|
28
|
+
zq=new $APP.K(null,"magnet-radius-raw","magnet-radius-raw",1386161852),Zq=new $APP.K(null,"bobIntensity","bobIntensity",-531647277),tq=new $APP.K(null,"items-div","items-div",-555506089),$q=new $APP.K(null,"magnetStrength","magnetStrength",331224709),ar=new $APP.K(null,"rippleScale","rippleScale",-1633180735),Dq=new $APP.K(null,"magnet-radius","magnet-radius",1447549494),sq=new $APP.K(null,"liquid","liquid",1322031275),Rq=new $APP.K(null,"leave","leave",1022579443),gq=new $APP.K(null,"influence",
|
|
29
|
+
"influence",1453493017),Cq=new $APP.K(null,"vertical?","vertical?",-1522630444),yq=new $APP.K(null,"bob-intensity-raw","bob-intensity-raw",-669810474),Sq=new $APP.K(null,"key","key",-1516042587),Qq=new $APP.K(null,"move","move",-2110884309),lq=new $APP.K(null,"dy","dy",1719547243),kq=new $APP.K(null,"dx","dx",-381796732),vq=new $APP.K(null,"magnet-strength-raw","magnet-strength-raw",535053898),wq=new $APP.K(null,"ripple-speed-raw","ripple-speed-raw",-1426902422),br=new $APP.K(null,"rippleSpeed","rippleSpeed",
|
|
30
|
+
-1816718091),iq=new $APP.K(null,"ty","ty",158290825),hq=new $APP.K(null,"tx","tx",466630418),Bq=new $APP.K(null,"bob-intensity","bob-intensity",-981181657),nq=new $APP.K(null,"lift","lift",903632035),cr=new $APP.K(null,"magnetRadius","magnetRadius",1616130031),Eq=new $APP.K(null,"magnet-strength","magnet-strength",-1089389895),xq=new $APP.K(null,"ripple-scale-raw","ripple-scale-raw",1254964336);var Wq="position gap blur threshold ripple-scale ripple-speed color magnet-radius magnet-strength disabled bob-intensity".split(" ");$APP.Qd(["x-liquid-dock-select",new $APP.Q(null,4,[$APP.V,new $APP.Q(null,3,[$APP.ci,$APP.W,$APP.nk,new $APP.Sb(null,"Element","Element",1498489072,null),$APP.fl,$APP.Y],null),$APP.sm,!0,$APP.Fm,!0,$APP.Yl,!0],null)]);
|
|
31
|
+
$APP.zf([ar,$APP.Jj,$q,$APP.Nj,$APP.Gl,cr,Zq,$APP.ii,br,$APP.Wj,$APP.Om],[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),new $APP.Q(null,1,[$APP.Z,$APP.Xj],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),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,
|
|
32
|
+
$APP.Y],null)]);var aq=new $APP.R(null,new $APP.Q(null,4,["right",null,"top",null,"bottom",null,"left",null],null),null);var pq=[0],qq=":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
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
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
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
|
-
|
|
37
|
-
$APP.k(a,"__xLiquidDockBurst");return $APP.n(
|
|
38
|
-
g[
|
|
39
|
-
|
|
40
|
-
a.__xLiquidDockSeed=g;g=$APP.
|
|
36
|
+
Kq=function Kq(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 eb=Gq(a);return $APP.n(eb)?eb:[]}(),m=$APP.rh.i(h.length,l.length),p=$APP.k(d,"x"),q=$APP.k(d,"y"),v=$APP.k(d,"active"),x=Dq.g(c),y=Eq.g(c),A=Bq.g(c),B=$APP.Om.g(c),E=1+y*.8,G=function(){var eb=$APP.k(a,"__xLiquidDockSeed");return $APP.n(eb)?eb:0}(),H=Date.now();d=function(){var eb=
|
|
37
|
+
$APP.k(a,"__xLiquidDockBurst");return $APP.n(eb)?eb:0}();var J=H-d<300;if(J){H=(1-(H-d)/300)*20;var S=rq.g(c),aa=$APP.Hj.g($APP.k(a,"__xLiquidDockRefs"));$APP.n(aa)&&aa.setAttribute("scale",""+$APP.T.g(S+H))}for(H=0;;)if(H<m){S=h[H];var oa=$APP.k(S,"cx"),Aa=$APP.k(S,"cy");aa=H*2;var Na=aa+1;if(Na<e.length){S=gq.g($APP.n(v)?jq(oa,Aa,p,q,x,y,E):new $APP.Q(null,4,[gq,0,$APP.Wi,1,hq,0,iq,0],null));aa=e[aa];var cb="translate("+$APP.T.g(oa-26)+"px,"+$APP.T.g(Aa-26)+"px)";aa.style.transform=cb;var db=mq(S,
|
|
38
|
+
B);aa=g[Na];cb=kq.g(db);var mb=lq.g(db);db=$APP.Wi.g(db);cb=fq($APP.k(aa,"cpDx"),cb);mb=fq($APP.k(aa,"cpDy"),mb);db=fq($APP.k(aa,"cpScale"),db);aa.cpDx=cb;aa.cpDy=mb;aa.cpScale=db;Na=e[Na];Aa="translate("+$APP.T.g(oa-22+cb)+"px,"+$APP.T.g(Aa-22+mb)+"px) scale("+$APP.T.g(db)+")";Na.style.transform=Aa;Na=oq(S,$APP.n(v)?function(){var eb=p-oa;return eb>1?1:eb<-1?-1:0}():0,B,A);cb=fq($APP.k(aa,"cLift"),nq.g(Na));Aa=fq($APP.k(aa,"cRot"),$APP.Ol.g(Na));Na=fq($APP.k(aa,"cScale"),$APP.Wi.g(Na));aa.cLift=
|
|
39
|
+
cb;aa.cRot=Aa;aa.cScale=Na;mb=G+H*2.39996;db=1-S*.7;S=Math.sin(mb)*1.8*db*A;aa=Math.cos(mb*.7)*.8*db*A;var Lb=Math.sin(mb*1.3)*1.2*db*A;mb=l[H];db=Cq.g(c);cb+=$APP.n(db)?aa:S;Aa+=Lb;S=$APP.n(db)?"translate("+$APP.T.g(cb)+"px,"+$APP.T.g(S)+"px) rotate("+$APP.T.g(Aa)+"deg) scale("+$APP.T.g(Na)+")":"translate("+$APP.T.g(aa)+"px,"+$APP.T.g(cb)+"px) rotate("+$APP.T.g(Aa)+"deg) scale("+$APP.T.g(Na)+")";mb.style.transform=S}H+=1}else break;g=$APP.k(a,"__xLiquidDockSeed")+Aq.g(c);h=$APP.k(a,"__xLiquidDockRefs");
|
|
40
|
+
e=.012+.006*Math.sin(g);a.__xLiquidDockSeed=g;g=$APP.Bl.g(h);$APP.n(g)&&g.setAttribute("baseFrequency",""+$APP.T.g(e));!J&&d>0&&(d=$APP.Hj.g($APP.k(a,"__xLiquidDockRefs")),$APP.n(d)&&d.setAttribute("scale",""+$APP.T.g(rq.g(c))),a.__xLiquidDockBurst=0);$APP.ja(a,"__xLiquidDockRaf",requestAnimationFrame(function(){return Kq.g?Kq.g(a):Kq.call(null,a)}))}return null};$APP.ha("baredom.exports.x_liquid_dock.init",Yq);export const init=Yq;
|