@vanelsas/baredom 1.3.0 → 2.0.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.
- package/CHANGELOG.md +37 -1
- package/README.md +60 -6
- package/dist/base.js +397 -373
- package/dist/x-alert.js +19 -19
- package/dist/x-avatar-group.js +11 -11
- package/dist/x-avatar.js +16 -16
- 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 +16 -16
- package/dist/x-cancel-dialogue.js +17 -17
- package/dist/x-card.js +7 -7
- package/dist/x-chart.js +47 -47
- package/dist/x-checkbox.js +11 -11
- package/dist/x-chip.js +9 -9
- package/dist/x-collapse.js +11 -11
- package/dist/x-command-palette.js +31 -31
- package/dist/x-container.js +6 -6
- package/dist/x-context-menu.js +20 -19
- package/dist/x-copy.js +24 -24
- package/dist/x-currency-field.js +22 -22
- package/dist/x-date-picker.js +41 -41
- package/dist/x-divider.js +13 -13
- package/dist/x-drawer.js +11 -11
- package/dist/x-dropdown.js +10 -10
- package/dist/x-fieldset.js +6 -6
- package/dist/x-file-download.js +7 -7
- package/dist/x-form-field.js +16 -16
- package/dist/x-form.js +10 -10
- package/dist/x-gaussian-blur.js +18 -18
- package/dist/x-grid.js +6 -6
- package/dist/x-kinetic-font.js +29 -0
- package/dist/x-kinetic-typography.js +39 -61
- package/dist/x-liquid-dock.js +40 -0
- package/dist/x-liquid-fill.js +45 -0
- package/dist/x-liquid-glass.js +48 -0
- package/dist/x-menu-item.js +10 -10
- package/dist/x-menu.js +12 -12
- package/dist/x-metaball-cursor.js +28 -27
- package/dist/x-modal.js +12 -12
- package/dist/x-morph-stack.js +41 -0
- package/dist/x-navbar.js +13 -13
- package/dist/x-neural-glow.js +34 -34
- package/dist/x-notification-center.js +9 -10
- package/dist/x-organic-divider.js +19 -19
- package/dist/x-organic-progress.js +38 -38
- package/dist/x-organic-shape.js +14 -14
- package/dist/x-pagination.js +16 -16
- package/dist/x-popover.js +14 -14
- package/dist/x-progress-circle.js +10 -10
- package/dist/x-progress.js +11 -11
- package/dist/x-radio.js +12 -12
- package/dist/x-ripple-effect.js +12 -13
- package/dist/x-scroll-parallax.js +19 -19
- package/dist/x-scroll-stack.js +18 -18
- package/dist/x-scroll-story.js +36 -37
- package/dist/x-scroll-timeline.js +47 -50
- package/dist/x-scroll.js +41 -41
- package/dist/x-search-field.js +15 -15
- package/dist/x-select.js +10 -10
- package/dist/x-sidebar.js +17 -17
- package/dist/x-skeleton.js +6 -6
- package/dist/x-slider.js +16 -16
- package/dist/x-soft-body.js +23 -0
- package/dist/x-spacer.js +5 -5
- package/dist/x-spinner.js +6 -6
- package/dist/x-splash.js +14 -14
- package/dist/x-stat.js +11 -11
- package/dist/x-stepper.js +16 -16
- package/dist/x-switch.js +11 -11
- package/dist/x-tab.js +8 -8
- package/dist/x-table-cell.js +23 -23
- package/dist/x-table-row.js +10 -10
- package/dist/x-table.js +16 -16
- package/dist/x-tabs.js +11 -11
- package/dist/x-text-area.js +18 -18
- package/dist/x-theme.js +25 -0
- package/dist/x-timeline-item.js +24 -24
- package/dist/x-timeline.js +9 -9
- package/dist/x-toast.js +25 -25
- package/dist/x-toaster.js +8 -8
- package/dist/x-typography.js +11 -10
- package/package.json +30 -2
|
@@ -1,62 +1,40 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
$APP.
|
|
21
|
-
|
|
22
|
-
""+$APP.
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
function(){
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
$APP.
|
|
35
|
-
$APP.
|
|
36
|
-
$APP.
|
|
37
|
-
$APP.
|
|
38
|
-
$APP.
|
|
39
|
-
|
|
40
|
-
$APP.
|
|
41
|
-
$APP.R.prototype.ib=$APP.ca(28,function(a,b){if($APP.Be(this.i,b)>=0){a=this.i.length;var c=a-2;if(c===0)return this.F(null);c=Array(c);for(var d=0,e=0;;){if(d>=a)return new $APP.R(this.s,this.j-1,c,null);$APP.C.h(b,this.i[d])?d+=2:(c[e]=this.i[d],c[e+1]=this.i[d+1],e+=2,d+=2)}}else return this});
|
|
42
|
-
$APP.lf.prototype.ib=$APP.ca(27,function(a,b){if(b==null)return this.la?new $APP.lf(this.s,this.j-1,this.root,!1,null,null):this;if(this.root==null)return this;a=this.root.Pa(0,$APP.Eb(b),b);return a===this.root?this:new $APP.lf(this.s,this.j-1,a,this.la,this.ma,null)});$APP.Bf.prototype.ib=$APP.ca(26,function(a,b){a=[null];b=iD(this.va,this.Ka,b,a);return b==null?$APP.fc(a,0)==null?this:new $APP.Bf(this.va,null,0,this.s,null):new $APP.Bf(this.va,b.Fa(),this.j-1,this.s,null)});
|
|
43
|
-
$APP.Jb.prototype.F=$APP.ca(25,function(){return $APP.Mb});$APP.mc.prototype.F=$APP.ca(24,function(){return $APP.Mb});$APP.Zc.prototype.F=$APP.ca(23,function(){return $APP.Ta($APP.Mb,this.s)});$APP.$c.prototype.F=$APP.ca(22,function(){return this});$APP.cd.prototype.F=$APP.ca(21,function(){return $APP.Mb});$APP.gd.prototype.F=$APP.ca(20,function(){return $APP.Ta($APP.Mb,this.s)});$APP.ld.prototype.F=$APP.ca(19,function(){return $APP.Mb});$APP.Md.prototype.F=$APP.ca(18,function(){return $APP.Mb});
|
|
44
|
-
$APP.Q.prototype.F=$APP.ca(17,function(){return $APP.Ta($APP.Td,this.s)});$APP.le.prototype.F=$APP.ca(16,function(){return $APP.Mb});$APP.Ce.prototype.F=$APP.ca(15,function(){return null});$APP.De.prototype.F=$APP.ca(14,function(){return $APP.Mb});$APP.R.prototype.F=$APP.ca(13,function(){return $APP.Ta($APP.Fd,this.s)});$APP.bf.prototype.F=$APP.ca(12,function(){return $APP.Mb});$APP.ff.prototype.F=$APP.ca(11,function(){return $APP.Mb});
|
|
45
|
-
$APP.lf.prototype.F=$APP.ca(10,function(){return $APP.Ta($APP.Le,this.s)});$APP.qf.prototype.F=$APP.ca(9,function(){return $APP.Mb});$APP.sf.prototype.F=$APP.ca(8,function(){return null});$APP.tf.prototype.F=$APP.ca(7,function(){return null});$APP.Bf.prototype.F=$APP.ca(6,function(){return new $APP.Bf(this.va,null,0,this.s,0)});$APP.Df.prototype.F=$APP.ca(5,function(){return $APP.Mb});$APP.Ff.prototype.F=$APP.ca(4,function(){return $APP.Mb});
|
|
46
|
-
$APP.S.prototype.F=$APP.ca(3,function(){return $APP.Ta($APP.Jf,this.s)});$APP.Mf.prototype.F=$APP.ca(2,function(){return new $APP.Mf(this.s,hC(this.wa),0)});$APP.Rf.prototype.F=$APP.ca(1,function(){return $APP.Mb});$APP.Sf.prototype.F=$APP.ca(0,function(){return $APP.Mb});
|
|
47
|
-
var xC=function xC(a){switch(arguments.length){case 2:return xC.h(arguments[0],arguments[1]);case 3:return xC.m(arguments[0],arguments[1],arguments[2]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return xC.B(arguments[0],arguments[1],arguments[2],3<c.length?new $APP.Jb(c.slice(3),0,null):null)}};xC.h=function(a,b){return b};xC.m=function(a,b,c){return(a.g?a.g(b):a.call(null,b))>(a.g?a.g(c):a.call(null,c))?b:c};
|
|
48
|
-
xC.B=function(a,b,c,d){return $APP.Lc(function(e,g){return xC.m(a,e,g)},xC.m(a,b,c),d)};xC.K=function(a){var b=$APP.w(a),c=$APP.z(a);a=$APP.w(c);var d=$APP.z(c);c=$APP.w(d);d=$APP.z(d);return this.B(b,a,c,d)};xC.P=3;
|
|
49
|
-
var WC=function WC(a){switch(arguments.length){case 1:return WC.g(arguments[0]);case 2:return WC.h(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 WC.B(arguments[0],arguments[1],2<c.length?new $APP.Jb(c.slice(2),0,null):null)}};WC.g=function(a){return a};WC.h=function(a,b){return a==null?null:sC(a,b)};WC.B=function(a,b,c){for(;;){if(a==null)return null;a=WC.h(a,b);if($APP.n(c))b=$APP.w(c),c=$APP.z(c);else return a}};
|
|
50
|
-
WC.K=function(a){var b=$APP.w(a),c=$APP.z(a);a=$APP.w(c);c=$APP.z(c);return this.B(b,a,c)};WC.P=2;var aD=function aD(a){switch(arguments.length){case 0:return aD.H();case 1:return aD.g(arguments[0]);case 2:return aD.h(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 aD.B(arguments[0],arguments[1],2<c.length?new $APP.Jb(c.slice(2),0,null):null)}};aD.H=function(){return $APP.Mb};
|
|
51
|
-
aD.g=function(a){return new $APP.gd(null,function(){return a},null)};aD.h=function(a,b){return new $APP.gd(null,function(){var c=$APP.u(a),d=$APP.u(b);return c&&d?$APP.dd($APP.w(c),$APP.dd($APP.w(d),aD.h($APP.Ob(c),$APP.Ob(d)))):null},null)};aD.B=function(a,b,c){return new $APP.gd(null,function(){var d=$APP.Od.h($APP.u,$APP.ad.B(c,b,$APP.kc([a])));return $APP.Hd($APP.Sc,d)?$APP.Nd.h($APP.Od.h($APP.w,d),$APP.yd(aD,$APP.Od.h($APP.Ob,d))):null},null)};
|
|
52
|
-
aD.K=function(a){var b=$APP.w(a),c=$APP.z(a);a=$APP.w(c);c=$APP.z(c);return this.B(b,a,c)};aD.P=2;$APP.f=uC.prototype;$APP.f.pc=$APP.t;$APP.f.toString=function(){return this.qb};$APP.f.R=function(a,b){return(a=b!=null?$APP.t===b.pc?!0:!1:!1)?this.qb===b.qb:a};$APP.f.S=function(a,b){return $APP.gb(b,['#uuid "',$APP.sa(this.qb),'"'].join(""))};$APP.f.T=function(){this.A==null&&(this.A=$APP.Eb(this.qb));return this.A};
|
|
53
|
-
$APP.f.Ha=function(a,b){if(b instanceof uC)return $APP.na(this.qb,b.qb);throw Error(["Cannot compare ",$APP.sa(this)," to ",$APP.sa(b)].join(""));};
|
|
54
|
-
var OC=new $APP.M(null,"echo-opacity","echo-opacity",-1476699970),jD=new $APP.M(null,"startSize","startSize",-1750632892),IC=new $APP.M(null,"start-size","start-size",-1818812493),XC=new $APP.M(null,"crawl?","crawl?",829918610),FC=new $APP.M(null,"echo-scale","echo-scale",1307207648),kD=new $APP.M(null,"echoOpacity","echoOpacity",-1325258611),LC=new $APP.M(null,"echo-delay","echo-delay",845689658),lD=new $APP.M(null,"endSize","endSize",674490141),MC=new $APP.M(null,"echo-count","echo-count",1053271067),
|
|
55
|
-
UC=new $APP.M(null,"view-box","view-box",-1792199155),HC=new $APP.M(null,"preset","preset",777387345),JC=new $APP.M(null,"repeat","repeat",832692087),mD=new $APP.M(null,"fontSize","fontSize",919623033),$C=new $APP.M(null,"custom-path?","custom-path?",-1532616839),KC=new $APP.M(null,"effect","effect",347343289),nD=new $APP.M(null,"echoDelay","echoDelay",-1807132900),ZC=new $APP.M(null,"duration-s","duration-s",-1976899627),oD=new $APP.M(null,"echoCount","echoCount",-1194377974),GC=new $APP.M(null,
|
|
56
|
-
"font-size","font-size",-1847940346),YC=new $APP.M(null,"effects","effects",-282369292),NC=new $APP.M(null,"end-size","end-size",761612093),pD=new $APP.M(null,"echoScale","echoScale",1536204716);var SC=function SC(a){switch(arguments.length){case 1:return SC.g(arguments[0]);case 2:return SC.h(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 SC.B(arguments[0],arguments[1],2<c.length?new $APP.Jb(c.slice(2),0,null):null)}};SC.g=function(a){return a};SC.h=function(a,b){for(;;)if($APP.B(b)<$APP.B(a)){var c=a;a=b;b=c}else return $APP.Lc(function(d,e){return function(g,h){return $APP.K(e,h)?g:WC.h(g,h)}}(a,b),a,a)};
|
|
57
|
-
SC.B=function(a,b,c){a=yC(function(d){return-$APP.B(d)},$APP.ad.B(c,b,$APP.kc([a])));return $APP.Lc(SC,$APP.w(a),$APP.Ob(a))};SC.K=function(a){var b=$APP.w(a),c=$APP.z(a);a=$APP.w(c);c=$APP.z(c);return this.B(b,a,c)};SC.P=2;var eD="text path preset animation speed direction effect font-size start-size end-size repeat echo-count echo-delay echo-opacity echo-scale".split(" ");
|
|
58
|
-
$APP.mf([$APP.xj,jD,$APP.oi,$APP.xi,oD,pD,kD,HC,JC,mD,KC,nD,lD,$APP.ni,$APP.Rj],[new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"path"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"start-size"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"animation"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"speed"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"echo-count"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"echo-scale"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"echo-opacity"],null),new $APP.R(null,
|
|
59
|
-
2,[$APP.Z,$APP.Y,$APP.nj,"preset"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"repeat"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"font-size"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"effect"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"echo-delay"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"end-size"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"direction"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"text"],null)]);
|
|
60
|
-
var PC=new $APP.S(null,new $APP.R(null,8,["spiral",null,"infinity",null,"arc",null,"line",null,"crawl",null,"wave",null,"circle",null,"sine",null],null),null),QC=new $APP.S(null,new $APP.R(null,4,["none",null,"scroll",null,"bounce",null,"oscillate",null],null),null),RC=new $APP.S(null,new $APP.R(null,2,["reverse",null,"normal",null],null),null),TC=new $APP.S(null,new $APP.R(null,6,["spacing-breathe",null,"color-shift",null,"opacity-wave",null,"color-wave",null,"size-gradient",null,"size-pulse",null],
|
|
61
|
-
null),null),VC=new $APP.R(null,7,["wave",new $APP.R(null,2,[$APP.ek,"M0,100 C100,20 200,180 300,100 C400,20 500,180 600,100 C700,20 800,180 800,100",UC,"0 0 800 200"],null),"circle",new $APP.R(null,2,[$APP.ek,"M125,10 A115,115 0 1,1 124.99,10",UC,"0 0 250 250"],null),"arc",new $APP.R(null,2,[$APP.ek,"M50,350 Q400,10 750,350",UC,"0 0 800 400"],null),"infinity",new $APP.R(null,2,[$APP.ek,"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",UC,"0 0 400 400"],
|
|
62
|
-
null),"spiral",new $APP.R(null,2,[$APP.ek,"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",UC,"0 0 500 500"],null),"sine",new $APP.R(null,2,[$APP.ek,"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",UC,"0 0 800 200"],null),"line",new $APP.R(null,2,[$APP.ek,"M0,50 L800,50",UC,"0 0 800 100"],null)],null);$APP.ja("baredom.exports.x_kinetic_typography.init",gD);export const init=gD;
|
|
2
|
+
var eG=function(a,b){if(a!=null&&a.qa!=null)a=a.qa(a,b);else{var c=eG[$APP.da(a==null?null:a)];if(c!=null)a=c.i?c.i(a,b):c.call(null,a,b);else if(c=eG._,c!=null)a=c.i?c.i(a,b):c.call(null,a,b);else throw $APP.qa("IDrop.-drop",a);}return a},fG=function(a,b){a.sort(b||$APP.ma)},hG=function(a){var b=gG();const c=Array(a.length);for(let e=0;e<a.length;e++)c[e]={index:e,value:a[e]};const d=b||$APP.ma;fG(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},
|
|
3
|
+
gG=function(){return $APP.D.i($APP.Tc,$APP.Tc)?$APP.Tc:function(a,b){var c=$APP.Tc.i?$APP.Tc.i(a,b):$APP.Tc.call(null,a,b);return typeof c==="number"?c:$APP.r(c)?-1:$APP.r($APP.Tc.i?$APP.Tc.i(b,a):$APP.Tc.call(null,b,a))?1:0}},iG=function(a){if(a!=null&&(a.F&262144||$APP.Ob===a.zc)){var b=a.qa(null,1);return $APP.r(b)?b:$APP.Yb}return new $APP.ud(null,function(){a:{var c=1;for(var d=a;;)if(d=$APP.u(d),c>0&&d)--c,d=$APP.Zb(d);else{c=d;break a}c=void 0}return c},null)},jG=function(a){this.ob=a;this.B=
|
|
4
|
+
null;this.s=2153775104;this.F=2048},kG=function(a){return new jG(a.toLowerCase())},lG=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 kG([a(),a(),"-",a(),"-",b,"-",c,"-",a(),a(),a()].join(""))},mG=function(a){return typeof a===
|
|
5
|
+
"string"&&$APP.O("",a.trim())?a.trim():null},nG=function(a){return document.createElementNS("http://www.w3.org/2000/svg",a)},oG=function(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches},pG=function(a){var b=$APP.l(a,"__xKineticTypographyAnimate");$APP.r(b)&&(b.remove(),a.__xKineticTypographyAnimate=null)},qG=function(a,b,c,d){var e=nG("animate");c=""+$APP.S.g(c)+"s";b=$APP.D.i(b,"reverse")?"reverse":"normal";e.setAttribute("attributeName","startOffset");e.setAttribute("repeatCount",
|
|
6
|
+
"indefinite");e.setAttribute("dur",c);d>0&&e.setAttribute("begin",""+$APP.S.g(d)+"s");switch(a){case "scroll":e.setAttribute("from",$APP.D.i(b,"reverse")?"100%":"0%");e.setAttribute("to",$APP.D.i(b,"reverse")?"0%":"100%");break;case "bounce":e.setAttribute("values",$APP.D.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.D.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},rG=function(a){var b=$APP.l(a,"__xKineticTypographyEchoEls");if($APP.r(b)){for(var c=b.length,d=0;;)if(d<c)b[d].textEl.remove(),d+=1;else break;a.__xKineticTypographyEchoEls=[]}},MG=function(a){var b=$APP.Q([$APP.bk,sG,$APP.Oi,tG,$APP.Yi,$APP.Mj,uG,vG,wG,xG,yG,zG,$APP.Ni,AG,$APP.Hk],[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.N(b),d=$APP.G(c,wG),e=$APP.G(c,xG),g=$APP.G(c,yG),h=$APP.G(c,zG),k=$APP.G(c,$APP.Ni),m=$APP.G(c,AG),p=$APP.G(c,$APP.Hk),q=$APP.G(c,$APP.bk),w=$APP.G(c,sG),x=$APP.G(c,$APP.Oi),y=$APP.G(c,tG),A=$APP.G(c,$APP.Yi),B=$APP.G(c,
|
|
9
|
+
$APP.Mj),E=$APP.G(c,uG),H=$APP.G(c,vG),F=typeof p==="string"?p:"",M=mG(q),Y=typeof B==="string"?B.trim().toLowerCase():null;var ea=$APP.J(BG,Y)?Y:"wave";var ta=$APP.D.i(ea,"crawl"),Ha=typeof x==="string"?x.trim().toLowerCase():null;var Na=$APP.J(CG,Ha)?Ha:"scroll";var Ya=typeof k==="string"?k.trim().toLowerCase():null;var Za=$APP.J(DG,Ya)?Ya:"normal";if(typeof A==="string"){var ib=parseFloat(A.trim());var Kb=typeof ib==="number"&&$APP.t(isNaN(ib))&&ib>0?ib:1}else Kb=1;if(typeof H==="string"){var cb=
|
|
10
|
+
parseInt(H.trim(),10);var gc=typeof cb==="number"&&$APP.t(isNaN(cb))&&cb>0?cb:1}else gc=1;if(typeof d==="string"){var Tb=$APP.ag(d.toLowerCase().trim().split(/\s+/));var Xc=$APP.am.i(Tb,EG)}else Xc=$APP.Xf;var Ie=mG(E),xb=mG(h);var md=$APP.D.i(ea,"crawl")?null:M!=null?new $APP.P(null,2,[$APP.Vk,M,FG,"0 0 800 200"],null):$APP.G(GG,ea);var Lr=$APP.r($APP.r(Ie)?$APP.r(xb)?!ta:xb:Ie)?$APP.od.i(Xc,"size-gradient"):Xc,Mr=$APP.J(Lr,"size-gradient")?$APP.Xg.i(Lr,"size-pulse"):Lr,bU=$APP.J(Mr,"color-wave")?
|
|
11
|
+
$APP.Xg.i(Mr,"color-shift"):Mr;if(typeof w==="string"){var mk=parseFloat(w.trim());var YE=typeof mk==="number"&&$APP.t(isNaN(mk))&&mk>0&&mk<=1?mk:.85}else YE=.85;var cU=$APP.Vk.g(md),dU=mG(y),eU=FG.g(md),fU=10/$APP.Yg.i(Kb,.01);if(ta)var Nr=0;else if(typeof g==="string"){var nk=parseInt(g.trim(),10);Nr=typeof nk==="number"&&$APP.t(isNaN(nk))&&nk>=0&&nk<=5?nk:0}else Nr=0;if(typeof e==="string"){var Cn=parseFloat(e.trim());var ZE=typeof Cn==="number"&&$APP.t(isNaN(Cn))&&Cn>0?Cn:.3}else ZE=.3;if(typeof m===
|
|
12
|
+
"string"){var ok=parseFloat(m.trim());var $E=typeof ok==="number"&&$APP.t(isNaN(ok))&&ok>0&&ok<=1?ok:.5}else $E=.5;var hU=$APP.Q([sG,$APP.ij,$APP.Oi,tG,$APP.Yi,FG,$APP.Mj,HG,uG,IG,JG,vG,KG,xG,yG,zG,$APP.Ni,AG,$APP.Hk],[YE,cU,Na,dU,Kb,eU,ea,ta,Ie,bU,fU,gc,M!=null,ZE,Nr,xb,Za,$E,F]);var $b=$APP.N(hU),dF=$APP.G($b,xG),eF=$APP.G($b,yG),Or=$APP.G($b,zG),Pr=$APP.G($b,$APP.Ni),iU=$APP.G($b,AG),eg=$APP.G($b,$APP.Hk),jU=$APP.G($b,sG),Dn=$APP.G($b,$APP.ij),fg=$APP.G($b,$APP.Oi),fF=$APP.G($b,tG);$APP.G($b,$APP.Yi);
|
|
13
|
+
var gF=$APP.G($b,FG);$APP.G($b,$APP.Mj);var kU=$APP.G($b,HG),pk=$APP.G($b,uG),xi=$APP.G($b,IG),Sg=$APP.G($b,JG),Qr=$APP.G($b,vG),hF=$APP.l(a,"__xKineticTypographySvg"),lU=$APP.l(a,"__xKineticTypographyPath"),iF=$APP.l(a,"__xKineticTypographyText"),qk=$APP.l(a,"__xKineticTypographyTextPath"),mU=$APP.l(a,"__xKineticTypographySrOnly"),nU=$APP.l(a,"__xKineticTypographyCrawlText"),Rr=a.shadowRoot.querySelector("[part\x3dpath-line]");if($APP.r(kU))a.setAttribute("data-preset","crawl"),nU.textContent=eg,
|
|
14
|
+
pG(a),rG(a),$APP.O(fg,"none")?a.setAttribute("data-animation",fg):a.removeAttribute("data-animation"),$APP.D.i(Pr,"reverse")?a.setAttribute("data-direction","reverse"):a.removeAttribute("data-direction"),$APP.J(xi,"color-shift")?a.setAttribute("data-effect","color-shift"):a.removeAttribute("data-effect");else{a.removeAttribute("data-preset");a.removeAttribute("data-direction");$APP.r(gF)&&hF.setAttribute("viewBox",gF);$APP.r(Dn)&&lU.setAttribute("d",Dn);$APP.r($APP.r(Rr)?Dn:Rr)&&Rr.setAttribute("d",
|
|
15
|
+
Dn);var Sr=Qr<=1?eg:$APP.Md($APP.S,iG(LG.i(new $APP.be(null,-1," · ",null),Qr>0?new $APP.be(null,Qr,eg,null):$APP.Yb))),jF=$APP.J(xi,"size-gradient"),oU=$APP.J(xi,"color-wave"),kF=jF?$APP.r(pk)?$APP.r(Or)?$APP.O(eg,""):Or:pk:jF;var pU=$APP.r(kF)?kF:oU&&$APP.O(eg,"");if($APP.r(pU)){qk.textContent="";var Tr=$APP.Be(Sr),Tg=$APP.C(Tr),Ug=$APP.J(xi,"size-gradient"),Ur=$APP.J(xi,"color-wave"),gg=Ug?parseFloat(pk):null,En=Ug?parseFloat(Or):null;if(Ug){var lF=$APP.r(pk)?pk:"px",qU=/[a-z%]+/;if(typeof lF===
|
|
16
|
+
"string"){var Fn=qU.exec(lF);var mF=Fn==null?null:Fn.length===1?Fn[0]:$APP.Be(Fn)}else throw new TypeError("re-find must match against a string.");var nF=$APP.r(mF)?mF:"px"}else nF=null;for(var oF=nF,pF=Ur?Tg>0?Sg/Tg:0:null,Vr=$APP.u($APP.kg(0,Tg)),Wr=null,Xr=0,Gn=0;;)if(Gn<Xr){var Vg=Wr.G(null,Gn),Hn=nG("tspan");$APP.r(Ug?$APP.r(gg)?En:gg:Ug)&&Hn.setAttribute("font-size",""+$APP.S.g(gg+(Tg>1?Vg/(Tg-1):0)*(En-gg))+$APP.S.g(oF));Ur&&(Hn.style.cssText="animation:xkt-color-wave "+$APP.S.g(Sg)+"s ease-in-out infinite;animation-delay:"+
|
|
17
|
+
$APP.S.g(Vg*pF)+"s;");Hn.textContent=$APP.rc(Tr,Vg);qk.appendChild(Hn);Gn+=1}else{var qF=$APP.u(Vr);if(qF){var rk=qF;if($APP.Pc(rk)){var rF=$APP.yb(rk),rU=$APP.zb(rk),sU=rF,tU=$APP.C(rF);Vr=rU;Wr=sU;Xr=tU}else{Vg=$APP.v(rk);var In=nG("tspan");$APP.r(Ug?$APP.r(gg)?En:gg:Ug)&&In.setAttribute("font-size",""+$APP.S.g(gg+(Tg>1?Vg/(Tg-1):0)*(En-gg))+$APP.S.g(oF));Ur&&(In.style.cssText="animation:xkt-color-wave "+$APP.S.g(Sg)+"s ease-in-out infinite;animation-delay:"+$APP.S.g(Vg*pF)+"s;");In.textContent=
|
|
18
|
+
$APP.rc(Tr,Vg);qk.appendChild(In);Vr=$APP.z(rk);Wr=null;Xr=0}Gn=0}else break}}else qk.textContent=Sr;rG(a);if(eF>0){for(var sF=$APP.l(a,"__xKineticTypographyPathId"),tF=[],uU=$APP.O(fg,"none")&&$APP.t(oG()),vU=Sg>0?dF/Sg*100:5,Yr=0;;)if(Yr<eF){var Jn=Yr+1,yi=document.createElementNS("http://www.w3.org/2000/svg","text"),zi=document.createElementNS("http://www.w3.org/2000/svg","textPath"),wU=Math.pow(iU,Jn),xU=Math.pow(jU,Jn),yU="-"+$APP.S.g(vU*Jn)+"%";yi.setAttribute("part","text-echo");yi.setAttribute("opacity",
|
|
19
|
+
""+$APP.S.g(wU));yi.setAttribute("font-size","calc(var(--x-kinetic-typography-font-size) * "+$APP.S.g(xU)+")");zi.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+$APP.S.g(sF));zi.setAttribute("href","#"+$APP.S.g(sF));zi.setAttribute("startOffset",yU);zi.textContent=Sr;if(uU){var zU=qG(fg,Pr,Sg,dF*Jn);zi.appendChild(zU)}yi.appendChild(zi);hF.appendChild(yi);tF.push({textEl:yi});Yr+=1}else break;a.__xKineticTypographyEchoEls=tF}$APP.r(fF)?iF.style.setProperty("font-size",fF):iF.style.removeProperty("font-size");
|
|
20
|
+
pG(a);if($APP.O(fg,"none")&&$APP.t(oG())){var uF=qG(fg,Pr,Sg,0);qk.appendChild(uF);a.__xKineticTypographyAnimate=uF}var sk=$APP.Xg.C(xi,"size-gradient",$APP.wc(["color-wave"]));if($APP.u(sk)){var AU=a.setAttribute;if($APP.u(sk)){var vF=$APP.Cd.g?$APP.Cd.g(sk):$APP.Cd.call(null,sk);hG(vF);var wF=$APP.Hc($APP.u(vF),$APP.Ic(sk))}else wF=$APP.Yb;AU.call(a,"data-effect",$APP.Jg(wF))}else a.removeAttribute("data-effect");$APP.O(fg,"none")?a.setAttribute("data-animation",fg):a.removeAttribute("data-animation")}mU.textContent=
|
|
21
|
+
eg;$APP.D.i(eg,"")?(a.setAttribute("role","presentation"),a.setAttribute("aria-hidden","true")):(a.setAttribute("role","img"),a.setAttribute("aria-label",eg))},NG=function(a,b,c,d){Object.defineProperty(a,c,{get:function(){var e=this.getAttribute(b);return $APP.r(e)?e:d},set:function(e){return typeof e==="string"&&$APP.O("",e)?this.setAttribute(b,e):this.removeAttribute(b)},enumerable:!0,configurable:!0})},OG=function(a){NG(a,"text","text","");NG(a,"path","path",null);NG(a,"preset","preset","wave");
|
|
22
|
+
NG(a,"animation","animation","scroll");NG(a,"speed","speed",""+$APP.S.g(1));NG(a,"direction","direction","normal");NG(a,"effect","effect","none");NG(a,"font-size","fontSize",null);NG(a,"start-size","startSize",null);NG(a,"end-size","endSize",null);NG(a,"repeat","repeat",""+$APP.S.g(1));NG(a,"echo-count","echoCount",""+$APP.S.g(0));NG(a,"echo-delay","echoDelay",""+$APP.S.g(.3));NG(a,"echo-opacity","echoOpacity",""+$APP.S.g(.5));NG(a,"echo-scale","echoScale",""+$APP.S.g(.85))},QG=function(){var a=class extends HTMLElement{};
|
|
23
|
+
a.observedAttributes=PG;a.prototype.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xKineticTypographyInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=nG("svg"),g=nG("defs"),h=nG("path"),k=nG("path"),m=nG("text"),p=nG("textPath"),q=document.createElement("span"),w=document.createElement("div"),x=document.createElement("div"),y="xkt-"+$APP.S.g(lG());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
|
+
d.setAttribute("part","container");e.setAttribute("part","svg");e.setAttribute("aria-hidden","true");e.setAttribute("focusable","false");h.setAttribute("id",y);g.appendChild(h);k.setAttribute("part","path-line");e.appendChild(k);m.setAttribute("part","text");p.setAttribute("href","#"+$APP.S.g(y));m.appendChild(p);e.appendChild(g);e.appendChild(m);w.setAttribute("part","crawl-viewport");x.setAttribute("part","crawl-text");w.appendChild(x);q.classList.add("sr-only");q.setAttribute("part","sr-only");
|
|
25
|
+
d.appendChild(e);d.appendChild(w);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=w;this.__xKineticTypographyCrawlText=x;this.__xKineticTypographyEchoEls=[];this.__xKineticTypographyInit=!0}MG(this);return null};a.prototype.disconnectedCallback=
|
|
26
|
+
function(){pG(this);$APP.r($APP.l(this,"__xKineticTypographySvg"))&&rG(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&$APP.r($APP.l(this,"__xKineticTypographyInit"))&&MG(this);return null};OG(a.prototype);return a},RG=function(){$APP.r(customElements.get("x-kinetic-typography"))||customElements.define("x-kinetic-typography",QG());return null};
|
|
27
|
+
$APP.Vb.prototype.qa=$APP.ca(6,function(a,b){return b>0?this.A+b<this.j.length?new $APP.Vb(this.j,this.A+b,null):null:this});$APP.be.prototype.qa=$APP.ca(5,function(a,b){if(this.count===-1)return this;a=this.count-b;return a>0?new $APP.be(null,a,this.m,null):null});$APP.ve.prototype.qa=$APP.ca(4,function(a,b){if(b<this.l){a=b%32;var c=$APP.qe(this,b);b-=a;return $APP.De?$APP.De(this,c,b,a):$APP.Fe.call(null,this,c,b,a)}return null});
|
|
28
|
+
$APP.Ce.prototype.qa=$APP.ca(3,function(a,b){a=this.ja+b;if(a<this.node.length)return $APP.De?$APP.De(this.ka,this.node,this.A,a):$APP.Fe.call(null,this.ka,this.node,this.A,a);var c=this.A+a;if(c<$APP.xa(this.ka)){a=c%32;b=this.ka;var d=$APP.qe(this.ka,c);c-=a;return $APP.De?$APP.De(b,d,c,a):$APP.Fe.call(null,b,d,c,a)}return null});$APP.Ve.prototype.qa=$APP.ca(2,function(a,b){return b<this.O(null)?new $APP.Ve(this.j,this.A+2*b,null):null});
|
|
29
|
+
$APP.P.prototype.qa=$APP.ca(1,function(a,b){a=this.R(null);return a==null?null:eG(a,b)});$APP.hg.prototype.qa=$APP.ca(0,function(a,b){return b>0?b<this.l?new $APP.hg(null,this.start+this.step*b,this.end,this.step,this.l-b,null):null:this});
|
|
30
|
+
var LG=function LG(a){switch(arguments.length){case 0:return LG.H();case 1:return LG.g(arguments[0]);case 2:return LG.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 LG.C(arguments[0],arguments[1],2<c.length?new $APP.Vb(c.slice(2),0,null):null)}};LG.H=function(){return $APP.Yb};LG.g=function(a){return new $APP.ud(null,function(){return a},null)};
|
|
31
|
+
LG.i=function(a,b){return new $APP.ud(null,function(){var c=$APP.u(a),d=$APP.u(b);return c&&d?$APP.rd($APP.v(c),$APP.rd($APP.v(d),LG.i($APP.Zb(c),$APP.Zb(d)))):null},null)};LG.C=function(a,b,c){return new $APP.ud(null,function(){var d=$APP.de.i($APP.u,$APP.od.C(c,b,$APP.wc([a])));return $APP.Vd($APP.fd,d)?$APP.ce.i($APP.de.i($APP.v,d),$APP.Md(LG,$APP.de.i($APP.Zb,d))):null},null)};LG.J=function(a){var b=$APP.v(a),c=$APP.z(a);a=$APP.v(c);c=$APP.z(c);return this.C(b,a,c)};LG.N=2;$APP.f=jG.prototype;
|
|
32
|
+
$APP.f.rc=$APP.Ob;$APP.f.toString=function(){return this.ob};$APP.f.S=function(a,b){return(a=b!=null?$APP.Ob===b.rc?!0:!1:!1)?this.ob===b.ob:a};$APP.f.P=function(a,b){return $APP.nb(b,['#uuid "',$APP.ra(this.ob),'"'].join(""))};$APP.f.T=function(){this.B==null&&(this.B=$APP.Pb(this.ob));return this.B};$APP.f.Ia=function(a,b){if(b instanceof jG)return $APP.ma(this.ob,b.ob);throw Error(["Cannot compare ",$APP.ra(this)," to ",$APP.ra(b)].join(""));};
|
|
33
|
+
var AG=new $APP.K(null,"echo-opacity","echo-opacity",-1476699970),uG=new $APP.K(null,"start-size","start-size",-1818812493),HG=new $APP.K(null,"crawl?","crawl?",829918610),sG=new $APP.K(null,"echo-scale","echo-scale",1307207648),xG=new $APP.K(null,"echo-delay","echo-delay",845689658),yG=new $APP.K(null,"echo-count","echo-count",1053271067),FG=new $APP.K(null,"view-box","view-box",-1792199155),vG=new $APP.K(null,"repeat","repeat",832692087),KG=new $APP.K(null,"custom-path?","custom-path?",-1532616839),
|
|
34
|
+
wG=new $APP.K(null,"effect","effect",347343289),JG=new $APP.K(null,"duration-s","duration-s",-1976899627),tG=new $APP.K(null,"font-size","font-size",-1847940346),IG=new $APP.K(null,"effects","effects",-282369292),zG=new $APP.K(null,"end-size","end-size",761612093);var PG="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.Q([$APP.bk,new $APP.K(null,"startSize","startSize",-1750632892),$APP.Oi,$APP.Yi,new $APP.K(null,"echoCount","echoCount",-1194377974),new $APP.K(null,"echoScale","echoScale",1536204716),new $APP.K(null,"echoOpacity","echoOpacity",-1325258611),$APP.Mj,vG,new $APP.K(null,"fontSize","fontSize",919623033),wG,new $APP.K(null,"echoDelay","echoDelay",-1807132900),new $APP.K(null,"endSize","endSize",674490141),$APP.Ni,$APP.Hk],[new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"path"],null),new $APP.P(null,2,
|
|
36
|
+
[$APP.Z,$APP.X,$APP.Pj,"start-size"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"animation"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"speed"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"echo-count"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"echo-scale"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"echo-opacity"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"preset"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"repeat"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"font-size"],
|
|
37
|
+
null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"effect"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"echo-delay"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"end-size"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"direction"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"text"],null)]);
|
|
38
|
+
var BG=new $APP.R(null,new $APP.P(null,8,["spiral",null,"infinity",null,"arc",null,"line",null,"crawl",null,"wave",null,"circle",null,"sine",null],null),null),CG=new $APP.R(null,new $APP.P(null,4,["none",null,"scroll",null,"bounce",null,"oscillate",null],null),null),DG=new $APP.R(null,new $APP.P(null,2,["reverse",null,"normal",null],null),null),EG=new $APP.R(null,new $APP.P(null,6,["spacing-breathe",null,"color-shift",null,"opacity-wave",null,"color-wave",null,"size-gradient",null,"size-pulse",null],
|
|
39
|
+
null),null),GG=new $APP.P(null,7,["wave",new $APP.P(null,2,[$APP.Vk,"M0,100 C100,20 200,180 300,100 C400,20 500,180 600,100 C700,20 800,180 800,100",FG,"0 0 800 200"],null),"circle",new $APP.P(null,2,[$APP.Vk,"M125,10 A115,115 0 1,1 124.99,10",FG,"0 0 250 250"],null),"arc",new $APP.P(null,2,[$APP.Vk,"M50,350 Q400,10 750,350",FG,"0 0 800 400"],null),"infinity",new $APP.P(null,2,[$APP.Vk,"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",FG,"0 0 400 400"],
|
|
40
|
+
null),"spiral",new $APP.P(null,2,[$APP.Vk,"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",FG,"0 0 500 500"],null),"sine",new $APP.P(null,2,[$APP.Vk,"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",FG,"0 0 800 200"],null),"line",new $APP.P(null,2,[$APP.Vk,"M0,50 L800,50",FG,"0 0 800 100"],null)],null);$APP.ka("baredom.exports.x_kinetic_typography.init",RG);export const init=RG;
|
|
@@ -0,0 +1,40 @@
|
|
|
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;
|
|
@@ -0,0 +1,45 @@
|
|
|
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;
|