@moni-labs/moni-ui 0.4.7 → 0.4.8
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/custom-elements.json +30 -0
- package/dist/browser/moni-ui.iife.min.js +19 -6
- package/dist/browser/moni-ui.iife.min.js.br +0 -0
- package/dist/browser/moni-ui.iife.min.js.gz +0 -0
- package/dist/browser/moni-ui.iife.min.js.map +1 -1
- package/dist/browser/moni-ui.min.js +1539 -1508
- package/dist/browser/moni-ui.min.js.br +0 -0
- package/dist/browser/moni-ui.min.js.gz +0 -0
- package/dist/browser/moni-ui.min.js.map +1 -1
- package/dist/cdn/components/moni-morph-modal.js +17 -4
- package/dist/cdn/importmap.json +98 -98
- package/dist/components/moni-morph-modal.d.ts +7 -0
- package/dist/components/moni-morph-modal.d.ts.map +1 -1
- package/dist/components/moni-morph-modal.js +37 -1
- package/docs/api.json +28 -1
- package/docs/components/morph-modal.md +3 -0
- package/package.json +90 -90
- package/src/components/moni-morph-modal.test.ts +26 -0
- package/src/components/moni-morph-modal.ts +33 -1
|
@@ -7445,7 +7445,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
7445
7445
|
</div>
|
|
7446
7446
|
</div>
|
|
7447
7447
|
</div>
|
|
7448
|
-
`}};G([B({reflect:!0})],rn.prototype,`variant`,void 0),G([H(`.container`)],rn.prototype,`_container`,void 0),rn=G([z(`moni-loading-indicator`)],rn);function an(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function on(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var sn={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},cn={duration:.5,overwrite:!1,delay:0},ln,un,dn,fn=1e8,X=1/fn,pn=Math.PI*2,mn=pn/4,hn=0,gn=Math.sqrt,_n=Math.cos,vn=Math.sin,yn=function(e){return typeof e==`string`},bn=function(e){return typeof e==`function`},xn=function(e){return typeof e==`number`},Sn=function(e){return e===void 0},Cn=function(e){return typeof e==`object`},wn=function(e){return e!==!1},Tn=function(){return typeof window<`u`},En=function(e){return bn(e)||yn(e)},Dn=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},On=Array.isArray,kn=/random\([^)]+\)/g,An=/,\s*/g,jn=/(?:-?\.?\d|\.)+/gi,Mn=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Nn=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Pn=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Fn=/[+-]=-?[.\d]+/,In=/[^,'"\[\]\s]+/gi,Ln=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Rn,zn,Bn,Vn,Hn={},Un={},Wn,Gn=function(e){return(Un=Cr(e,Hn))&&Ba},Kn=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},qn=function(e,t){return!t&&console.warn(e)},Jn=function(e,t){return e&&(Hn[e]=t)&&Un&&(Un[e]=t)||Hn},Yn=function(){return 0},Xn={suppressEvents:!0,isStart:!0,kill:!1},Zn={suppressEvents:!0,kill:!1},Qn={suppressEvents:!0},$n={},er=[],tr={},nr,rr={},ir={},ar=30,or=[],sr=``,cr=function(e){var t=e[0],n,r;if(Cn(t)||bn(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=or.length;r--&&!or[r].targetTest(t););n=or[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new Xi(e[r],n)))||e.splice(r,1);return e},lr=function(e){return e._gsap||cr(oi(e))[0]._gsap},ur=function(e,t,n){return(n=e[t])&&bn(n)?e[t]():Sn(n)&&e.getAttribute&&e.getAttribute(t)||n},dr=function(e,t){return(e=e.split(`,`)).forEach(t)||e},fr=function(e){return Math.round(e*1e5)/1e5||0},pr=function(e){return Math.round(e*1e7)/1e7||0},mr=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),n===`+`?e+r:n===`-`?e-r:n===`*`?e*r:e/r},hr=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++r<n;);return r<n},gr=function(){var e=er.length,t=er.slice(0),n,r;for(tr={},er.length=0,n=0;n<e;n++)r=t[n],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},_r=function(e){return!!(e._initted||e._startAt||e.add)},vr=function(e,t,n,r){er.length&&!un&&gr(),e.render(t,n,r||!!(un&&t<0&&_r(e))),er.length&&!un&&gr()},yr=function(e){var t=parseFloat(e);return(t||t===0)&&(e+``).match(In).length<2?t:yn(e)?e.trim():e},br=function(e){return e},xr=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},Sr=function(e){return function(t,n){for(var r in n)r in t||r===`duration`&&e||r===`ease`||(t[r]=n[r])}},Cr=function(e,t){for(var n in t)e[n]=t[n];return e},wr=function e(t,n){for(var r in n)r!==`__proto__`&&r!==`constructor`&&r!==`prototype`&&(t[r]=Cn(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},Tr=function(e,t){var n={},r;for(r in e)r in t||(n[r]=e[r]);return n},Er=function(e){var t=e.parent||Rn,n=e.keyframes?Sr(On(e.keyframes)):xr;if(wn(e.inherit))for(;t;)n(e,t.vars.defaults),t=t.parent||t._dp;return e},Dr=function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0},Or=function(e,t,n,r,i){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var a=e[r],o;if(i)for(o=t[i];a&&a[i]>o;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=a,t.parent=t._dp=e,t},kr=function(e,t,n,r){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var i=t._prev,a=t._next;i?i._next=a:e[n]===t&&(e[n]=a),a?a._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},Ar=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},jr=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},Mr=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},Nr=function(e,t,n,r){return e._startAt&&(un?e._startAt.revert(Zn):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},Pr=function e(t){return!t||t._ts&&e(t.parent)},Fr=function(e){return e._repeat?Ir(e._tTime,e=e.duration()+e._rDelay)*e:0},Ir=function(e,t){var n=Math.floor(e=pr(e/t));return e&&n===e?n-1:n},Lr=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Rr=function(e){return e._end=pr(e._start+(e._tDur/Math.abs(e._ts||e._rts||X)||0))},zr=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=pr(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Rr(e),n._dirty||jr(n,e)),e},Br=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=Lr(e.rawTime(),t),(!t._dur||ei(0,t.totalDuration(),n)-t._tTime>X)&&t.render(n,!0)),jr(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(n=e;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-X}},Vr=function(e,t,n,r){return t.parent&&Ar(t),t._start=pr((xn(n)?n:n||e!==Rn?Zr(e,n,t):e._time)+t._delay),t._end=pr(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Or(e,t,`_first`,`_last`,e._sort?`_start`:0),Gr(t)||(e._recent=t),r||Br(e,t),e._ts<0&&zr(e,e._tTime),e},Hr=function(e,t){return(Hn.ScrollTrigger||Kn(`scrollTrigger`,t))&&Hn.ScrollTrigger.create(t,e)},Ur=function(e,t,n,r,i){if(aa(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!un&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&nr!==Li.frame)return er.push(e),e._lazy=[i,r],1},Wr=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},Gr=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},Kr=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&Wr(e)&&!(!e._initted&&Gr(e))||(e._ts<0||e._dp._ts<0)&&!Gr(e))?0:1,o=e._rDelay,s=0,c,l,u;if(o&&e._repeat&&(s=ei(0,e._tDur,t),l=Ir(s,o),e._yoyo&&l&1&&(a=1-a),l!==Ir(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==i||un||r||e._zTime===X||!t&&e._zTime){if(!e._initted&&Ur(e,t,r,n,s))return;for(u=e._zTime,e._zTime=t||(n?X:0),n||=t&&!u,e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=s,c=e._pt;c;)c.r(a,c.d),c=c._next;t<0&&Nr(e,t,n,!0),e._onUpdate&&!n&&Ci(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&Ci(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&Ar(e,1),!n&&!un&&(Ci(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},qr=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if(r.data===`isPause`&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(r.data===`isPause`&&r._start<t)return r;r=r._prev}},Jr=function(e,t,n,r){var i=e._repeat,a=pr(t)||0,o=e._tTime/e._tDur;return o&&!r&&(e._time*=a/e._dur),e._dur=a,e._tDur=i?i<0?1e10:pr(a*(i+1)+e._rDelay*i):a,o>0&&!r&&zr(e,e._tTime=e._tDur*o),e.parent&&Rr(e),n||jr(e.parent,e),e},Yr=function(e){return e instanceof Qi?jr(e):Jr(e,e._dur)},Xr={_start:0,endTime:Yn,totalDuration:Yn},Zr=function e(t,n,r){var i=t.labels,a=t._recent||Xr,o=t.duration()>=fn?a.endTime(!1):t._dur,s,c,l;return yn(n)&&(isNaN(n)||n in i)?(c=n.charAt(0),l=n.substr(-1)===`%`,s=n.indexOf(`=`),c===`<`||c===`>`?(s>=0&&(n=n.replace(/=/,``)),(c===`<`?a._start:a.endTime(a._repeat>=0))+(parseFloat(n.substr(1))||0)*(l?(s<0?a:r).totalDuration()/100:1)):s<0?(n in i||(i[n]=o),i[n]):(c=parseFloat(n.charAt(s-1)+n.substr(s+1)),l&&r&&(c=c/100*(On(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},Qr=function(e,t,n){var r=xn(t[1]),i=(r?2:1)+(e<2?0:1),a=t[i],o,s;if(r&&(a.duration=t[1]),a.parent=n,e){for(o=a,s=n;s&&!(`immediateRender`in o);)o=s.vars.defaults||{},s=wn(s.vars.inherit)&&s.parent;a.immediateRender=wn(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new fa(t[0],a,t[i+1])},$r=function(e,t){return e||e===0?t(e):t},ei=function(e,t,n){return n<e?e:n>t?t:n},ti=function(e,t){return!yn(e)||!(t=Ln.exec(e))?``:t[1]},ni=function(e,t,n){return $r(n,function(n){return ei(e,t,n)})},ri=[].slice,ii=function(e,t){return e&&Cn(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&Cn(e[0]))&&!e.nodeType&&e!==zn},ai=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return yn(e)&&!t||ii(e,1)?(r=n).push.apply(r,oi(e)):n.push(e)})||n},oi=function(e,t,n){return dn&&!t&&dn.selector?dn.selector(e):yn(e)&&!n&&(Bn||!Ri())?ri.call((t||Vn).querySelectorAll(e),0):On(e)?ai(e,n):ii(e)?ri.call(e,0):e?[e]:[]},si=function(e){return e=oi(e)[0]||qn(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return oi(t,n.querySelectorAll?n:n===e?qn(`Invalid scope`)||Vn.createElement(`div`):e)}},ci=function(e){return e.sort(function(){return .5-Math.random()})},li=function(e){if(bn(e))return e;var t=Cn(e)?e:{each:e},n=Gi(t.ease),r=t.from||0,i=parseFloat(t.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,c=t.axis,l=r,u=r;return yn(r)?l=u={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(l=r[0],u=r[1]),function(e,o,d){var f=(d||t).length,p=a[f],m,h,g,_,v,y,b,x,S;if(!p){if(S=t.grid===`auto`?0:(t.grid||[1,fn])[1],!S){for(b=-fn;b<(b=d[S++].getBoundingClientRect().left)&&S<f;);S<f&&S--}for(p=a[f]=[],m=s?Math.min(S,f)*l-.5:r%S,h=S===fn?0:s?f*u/S-.5:r/S|0,b=0,x=fn,y=0;y<f;y++)g=y%S-m,_=h-(y/S|0),p[y]=v=c?Math.abs(c===`y`?_:g):gn(g*g+_*_),v>b&&(b=v),v<x&&(x=v);r===`random`&&ci(p),p.max=b-x,p.min=x,p.v=f=(parseFloat(t.amount)||parseFloat(t.each)*(S>f?f-1:c?c===`y`?f/S:S:Math.max(S,f/S))||0)*(r===`edges`?-1:1),p.b=f<0?i-f:i,p.u=ti(t.amount||t.each)||0,n=n&&f<0?Wi(n):n}return f=(p[e]-p.min)/p.max||0,pr(p.b+(n?n(f):f)*p.v)+p.u}},ui=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=pr(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(xn(n)?0:ti(n))}},di=function(e,t){var n=On(e),r,i;return!n&&Cn(e)&&(r=n=e.radius||fn,e.values?(e=oi(e.values),(i=!xn(e[0]))&&(r*=r)):e=ui(e.increment)),$r(t,n?bn(e)?function(t){return i=e(t),Math.abs(i-t)<=r?i:t}:function(t){for(var n=parseFloat(i?t.x:t),a=parseFloat(i?t.y:0),o=fn,s=0,c=e.length,l,u;c--;)i?(l=e[c].x-n,u=e[c].y-a,l=l*l+u*u):l=Math.abs(e[c]-n),l<o&&(o=l,s=c);return s=!r||o<=r?e[s]:t,i||s===t||xn(t)?s:s+ti(t)}:ui(e))},fi=function(e,t,n,r){return $r(On(e)?!t:n===!0?!!(n=0):!r,function(){return On(e)?e[~~(Math.random()*e.length)]:(n||=1e-5)&&(r=n<1?10**((n+``).length-2):1)&&Math.floor(Math.round((e-n/2+Math.random()*(t-e+n*.99))/n)*n*r)/r})},pi=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce(function(e,t){return t(e)},e)}},mi=function(e,t){return function(n){return e(parseFloat(n))+(t||ti(n))}},hi=function(e,t,n){return bi(e,t,0,1,n)},gi=function(e,t,n){return $r(n,function(n){return e[~~t(n)]})},_i=function e(t,n,r){var i=n-t;return On(t)?gi(t,e(0,t.length),n):$r(r,function(e){return(i+(e-t)%i)%i+t})},vi=function e(t,n,r){var i=n-t,a=i*2;return On(t)?gi(t,e(0,t.length-1),n):$r(r,function(e){return e=(a+(e-t)%a)%a||0,t+(e>i?a-e:e)})},yi=function(e){return e.replace(kn,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(An);return fi(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},bi=function(e,t,n,r,i){var a=t-e,o=r-n;return $r(i,function(t){return n+((t-e)/a*o||0)})},xi=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=yn(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(On(t)&&!On(n)){for(u=[],d=t.length,f=d-2,l=1;l<d;l++)u.push(e(t[l-1],t[l]));d--,a=function(e){e*=d;var t=Math.min(f,~~e);return u[t](e-t)},r=n}else i||(t=Cr(On(t)?[]:{},t));if(!u){for(c in n)ea.call(s,t,c,`get`,n[c]);a=function(e){return xa(e,s)||(o?t.p:t)}}}return $r(r,a)},Si=function(e,t,n){var r=e.labels,i=fn,a,o,s;for(a in r)o=r[a]-t,o<0==!!n&&o&&i>(o=Math.abs(o))&&(s=a,i=o);return s},Ci=function(e,t,n){var r=e.vars,i=r[t],a=dn,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&er.length&&gr(),o&&(dn=o),l=s?i.apply(c,s):i.call(c),dn=a,l},wi=function(e){return Ar(e),e.scrollTrigger&&e.scrollTrigger.kill(!!un),e.progress()<1&&Ci(e,`onInterrupt`),e},Ti,Ei=[],Di=function(e){if(e){if(e=!e.name&&e.default||e,Tn()||e.headless){var t=e.name,n=bn(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:Yn,render:xa,add:ea,kill:Ca,modifier:Sa,rawVars:0},a={targetTest:0,get:0,getSetter:_a,aliases:{},register:0};if(Ri(),e!==r){if(rr[t])return;xr(r,xr(Tr(e,i),a)),Cr(r.prototype,Cr(i,Tr(e,a))),rr[r.prop=t]=r,e.targetTest&&(or.push(r),$n[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}Jn(t,r),e.register&&e.register(Ba,r,Ea)}else Ei.push(e)}},Z=255,Oi={aqua:[0,Z,Z],lime:[0,Z,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Z],navy:[0,0,128],white:[Z,Z,Z],olive:[128,128,0],yellow:[Z,Z,0],orange:[Z,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Z,0,0],pink:[Z,192,203],cyan:[0,Z,Z],transparent:[Z,Z,Z,0]},ki=function(e,t,n){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(n-t)*e*6:e<.5?n:e*3<2?t+(n-t)*(2/3-e)*6:t)*Z+.5|0},Ai=function(e,t,n){var r=e?xn(e)?[e>>16,e>>8&Z,e&Z]:0:Oi.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),Oi[e])r=Oi[e];else if(e.charAt(0)===`#`){if(e.length<6&&(i=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e=`#`+i+i+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):``)),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&Z,r&Z,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&Z,e&Z]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(jn),!t)s=r[0]%360/360,c=r[1]/100,l=r[2]/100,a=l<=.5?l*(c+1):l+c-l*c,i=l*2-a,r.length>3&&(r[3]*=1),r[0]=ki(s+1/3,i,a),r[1]=ki(s,i,a),r[2]=ki(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(Mn),n&&r.length<4&&(r[3]=1),r}else r=e.match(jn)||Oi.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/Z,a=r[1]/Z,o=r[2]/Z,u=Math.max(i,a,o),d=Math.min(i,a,o),l=(u+d)/2,u===d?s=c=0:(f=u-d,c=l>.5?f/(2-u-d):f/(u+d),s=u===i?(a-o)/f+(a<o?6:0):u===a?(o-i)/f+2:(i-a)/f+4,s*=60),r[0]=~~(s+.5),r[1]=~~(c*100+.5),r[2]=~~(l*100+.5)),n&&r.length<4&&(r[3]=1),r},ji=function(e){var t=[],n=[],r=-1;return e.split(Ni).forEach(function(e){var i=e.match(Nn)||[];t.push.apply(t,i),n.push(r+=i.length+1)}),t.c=n,t},Mi=function(e,t,n){var r=``,i=(e+r).match(Ni),a=t?`hsla(`:`rgba(`,o=0,s,c,l,u;if(!i)return e;if(i=i.map(function(e){return(e=Ai(e,t,1))&&a+(t?e[0]+`,`+e[1]+`%,`+e[2]+`%,`+e[3]:e.join(`,`))+`)`}),n&&(l=ji(e),s=n.c,s.join(r)!==l.c.join(r)))for(c=e.replace(Ni,`1`).split(Nn),u=c.length-1;o<u;o++)r+=c[o]+(~s.indexOf(o)?i.shift()||a+`0,0,0,0)`:(l.length?l:i.length?i:n).shift());if(!c)for(c=e.split(Ni),u=c.length-1;o<u;o++)r+=c[o]+i[o];return r+c[u]},Ni=function(){var e=`(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b`,t;for(t in Oi)e+=`|`+t+`\\b`;return RegExp(e+`)`,`gi`)}(),Pi=/hsl[a]?\(/,Fi=function(e){var t=e.join(` `),n;if(Ni.lastIndex=0,Ni.test(t))return n=Pi.test(t),e[1]=Mi(e[1],n),e[0]=Mi(e[0],n,ji(e[1])),!0},Ii,Li=function(){var e=Date.now,t=500,n=33,r=e(),i=r,a=1e3/240,o=a,s=[],c,l,u,d,f,p,m=function u(m){var h=e()-i,g=m===!0,_,v,y,b;if((h>t||h<0)&&(r+=h-n),i+=h,y=i-r,_=y-o,(_>0||g)&&(b=++d.frame,f=y-d.time*1e3,d.time=y/=1e3,o+=_+(_>=a?4:a-_),v=1),g||(c=l(u)),v)for(p=0;p<s.length;p++)s[p](y,f,b,m)};return d={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(e){return f/(1e3/(e||60))},wake:function(){Wn&&(!Bn&&Tn()&&(zn=Bn=window,Vn=zn.document||{},Hn.gsap=Ba,(zn.gsapVersions||(zn.gsapVersions=[])).push(Ba.version),Gn(Un||zn.GreenSockGlobals||!zn.gsap&&zn||{}),Ei.forEach(Di)),u=typeof requestAnimationFrame<`u`&&requestAnimationFrame,c&&d.sleep(),l=u||function(e){return setTimeout(e,o-d.time*1e3+1|0)},Ii=1,m(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(c),Ii=0,l=Yn},lagSmoothing:function(e,r){t=e||1/0,n=Math.min(r||33,t)},fps:function(e){a=1e3/(e||240),o=d.time*1e3+a},add:function(e,t,n){var r=t?function(t,n,i,a){e(t,n,i,a),d.remove(r)}:e;return d.remove(e),s[n?`unshift`:`push`](r),Ri(),r},remove:function(e,t){~(t=s.indexOf(e))&&s.splice(t,1)&&p>=t&&p--},_listeners:s},d}(),Ri=function(){return!Ii&&Li.wake()},Q={},zi=/^[\d.\-M][\d.\-,\s]/,Bi=/["']/g,Vi=function(e){for(var t={},n=e.substr(1,e.length-3).split(`:`),r=n[0],i=1,a=n.length,o,s,c;i<a;i++)s=n[i],o=i===a-1?s.length:s.lastIndexOf(`,`),c=s.substr(0,o),t[r]=isNaN(c)?c.replace(Bi,``).trim():+c,r=s.substr(o+1).trim();return t},Hi=function(e){var t=e.indexOf(`(`)+1,n=e.indexOf(`)`),r=e.indexOf(`(`,t);return e.substring(t,~r&&r<n?e.indexOf(`)`,n+1):n)},Ui=function(e){var t=(e+``).split(`(`),n=Q[t[0]];return n&&t.length>1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[Vi(t[1])]:Hi(e).split(`,`).map(yr)):Q._CE&&zi.test(e)?Q._CE(``,e):n},Wi=function(e){return function(t){return 1-e(1-t)}},Gi=function(e,t){return e&&(bn(e)?e:Q[e]||Ui(e))||t},Ki=function(e,t,n,r){n===void 0&&(n=function(e){return 1-t(1-e)}),r===void 0&&(r=function(e){return e<.5?t(e*2)/2:1-t((1-e)*2)/2});var i={easeIn:t,easeOut:n,easeInOut:r},a;return dr(e,function(e){for(var t in Q[e]=Hn[e]=i,Q[a=e.toLowerCase()]=n,i)Q[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=Q[e+`.`+t]=i[t]}),i},qi=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},Ji=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/pn*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*vn((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:qi(s);return a=pn/a,c.config=function(n,r){return e(t,n,r)},c},Yi=function e(t,n){n===void 0&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},i=t===`out`?r:t===`in`?function(e){return 1-r(1-e)}:qi(r);return i.config=function(n){return e(t,n)},i};dr(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;Ki(e+`,Power`+(n-1),t?function(e){return e**+n}:function(e){return e},function(e){return 1-(1-e)**n},function(e){return e<.5?(e*2)**n/2:1-((1-e)*2)**n/2})}),Q.Linear.easeNone=Q.none=Q.Linear.easeIn,Ki(`Elastic`,Ji(`in`),Ji(`out`),Ji()),(function(e,t){var n=1/t,r=2*n,i=2.5*n,a=function(a){return a<n?e*a*a:a<r?e*(a-1.5/t)**2+.75:a<i?e*(a-=2.25/t)*a+.9375:e*(a-2.625/t)**2+.984375};Ki(`Bounce`,function(e){return 1-a(1-e)},a)})(7.5625,2.75),Ki(`Expo`,function(e){return 2**(10*(e-1))*e+e*e*e*e*e*e*(1-e)}),Ki(`Circ`,function(e){return-(gn(1-e*e)-1)}),Ki(`Sine`,function(e){return e===1?1:-_n(e*mn)+1}),Ki(`Back`,Yi(`in`),Yi(`out`),Yi()),Q.SteppedEase=Q.steps=Hn.SteppedEase={config:function(e,t){e===void 0&&(e=1);var n=1/e,r=e+ +!t,i=+!!t,a=1-X;return function(e){return((r*ei(0,a,e)|0)+i)*n}}},cn.ease=Q[`quad.out`],dr(`onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt`,function(e){return sr+=e+`,`+e+`Params,`});var Xi=function(e,t){this.id=hn++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:ur,this.set=t?t.getSetter:_a},Zi=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,Jr(this,+e.duration,1,1),this.data=e.data,dn&&(this._ctx=dn,dn.data.push(this)),Ii||Li.wake()}var t=e.prototype;return t.delay=function(e){return e||e===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,Jr(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(Ri(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(zr(this,e),!n._dp||n.parent||Br(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&Vr(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===X||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),vr(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+Fr(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+Fr(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?Ir(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-X?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?Lr(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-X?0:this._rts,this.totalTime(ei(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),Rr(this),Mr(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ri(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==X&&(this._tTime-=X)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=pr(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&Vr(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(wn(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Lr(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=Qn);var t=un;return un=e,_r(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),un=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,Yr(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,Yr(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(Zr(this,e),wn(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,wn(t)),this._dur||(this._zTime=-X),this},t.play=function(e,t){return e!=null&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return e!=null&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return e!=null&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-X:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-X,this},t.isActive=function(){var e=this.parent||this._dp,t=this._start,n;return!!(!e||this._ts&&this._initted&&e.isActive()&&(n=e.rawTime(!0))>=t&&n<this.endTime(!0)-X)},t.eventCallback=function(e,t,n){var r=this.vars;return arguments.length>1?(t?(r[e]=t,n&&(r[e+`Params`]=n),e===`onUpdate`&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var i=bn(e)?e:br,a=function(){var e=t.then;t.then=null,n&&n(),bn(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),r(i),t.then=e};t._initted&&t.totalProgress()===1&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){wi(this)},e}();xr(Zi.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-X,_prom:0,_ps:!1,_rts:1});var Qi=function(e){on(t,e);function t(t,n){var r;return t===void 0&&(t={}),r=e.call(this,t)||this,r.labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=wn(t.sortChildren),Rn&&Vr(t.parent||Rn,an(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&Hr(an(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return Qr(0,arguments,this),this},n.from=function(e,t,n){return Qr(1,arguments,this),this},n.fromTo=function(e,t,n,r){return Qr(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,Er(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new fa(e,t,Zr(this,n),1),this},n.call=function(e,t,n){return Vr(this,fa.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,r,i,a,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new fa(e,n,Zr(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,Er(n).immediateRender=wn(n.immediateRender),this.staggerTo(e,t,n,r,i,a,o)},n.staggerFromTo=function(e,t,n,r,i,a,o,s){return r.startAt=n,Er(r).immediateRender=wn(r.immediateRender),this.staggerTo(e,t,r,i,a,o,s)},n.render=function(e,t,n){var r=this._time,i=this._dirty?this.totalDuration():this._tDur,a=this._dur,o=e<=0?0:pr(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,l,u,d,f,p,m,h,g,_,v,y;if(this!==Rn&&o>i&&e>=0&&(o=i),o!==this._tTime||n||s){if(r!==this._time&&a&&(o+=this._time-r,e+=this._time-r),c=o,g=this._start,h=this._ts,p=!h,s&&(a||(r=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(v=this._yoyo,f=a+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(f*100+e,t,n);if(c=pr(o%f),o===i?(d=this._repeat,c=a):(_=pr(o/f),d=~~_,d&&d===_&&(c=a,d--),c>a&&(c=a)),_=Ir(this._tTime,f),!r&&this._tTime&&_!==d&&this._tTime-_*f-this._dur<=0&&(_=d),v&&d&1&&(c=a-c,y=1),d!==_&&!this._lock){var b=v&&_&1,x=b===(v&&d&1);if(d<_&&(b=!b),r=b?0:o%a?a:o,this._lock=1,this.render(r||(y?0:pr(d*f)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&Ci(this,`onRepeat`),this.vars.repeatRefresh&&!y&&(this.invalidate()._lock=1,_=d),r&&r!==this._time||p!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act||(a=this._dur,i=this._tDur,x&&(this._lock=2,r=b?a:-1e-4,this.render(r,!0),this.vars.repeatRefresh&&!y&&this.invalidate()),this._lock=0,!this._ts&&!p))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(m=qr(this,pr(r),pr(c)),m&&(o-=c-(c=m._start))),this._tTime=o,this._time=c,this._act=!!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,r=0),!r&&o&&a&&!t&&!_&&(Ci(this,`onStart`),this._tTime!==o))return this;if(c>=r&&e>=0)for(l=this._first;l;){if(u=l._next,(l._act||c>=l._start)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(c-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(c-l._start)*l._ts,t,n),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=-X);break}}l=u}else{l=this._last;for(var S=e<0?e:c;l;){if(u=l._prev,(l._act||S<=l._end)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(S-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(S-l._start)*l._ts,t,n||un&&_r(l)),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=S?-X:X);break}}l=u}}if(m&&!t&&(this.pause(),m.render(c>=r?0:-X)._zTime=c>=r?1:-1,this._ts))return this._start=g,Rr(this),this.render(e,t,n);this._onUpdate&&!t&&Ci(this,`onUpdate`,!0),(o===i&&this._tTime>=this.totalDuration()||!o&&r)&&(g===this._start||Math.abs(h)!==Math.abs(this._ts))&&(this._lock||((e||!a)&&(o===i&&this._ts>0||!o&&this._ts<0)&&Ar(this,1),!t&&!(e<0&&!r)&&(o||r||!i)&&(Ci(this,o===i&&e>=0?`onComplete`:`onReverseComplete`,!0),this._prom&&!(o<i&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(e,t){var n=this;if(xn(t)||(t=Zr(this,t,e)),!(e instanceof Zi)){if(On(e))return e.forEach(function(e){return n.add(e,t)}),this;if(yn(e))return this.addLabel(e,t);if(bn(e))e=fa.delayedCall(0,e);else return this}return this===e?this:Vr(this,e,t)},n.getChildren=function(e,t,n,r){e===void 0&&(e=!0),t===void 0&&(t=!0),n===void 0&&(n=!0),r===void 0&&(r=-fn);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof fa?t&&i.push(a):(n&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,n)))),a=a._next;return i},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return yn(e)?this.removeLabel(e):bn(e)?this.killTweensOf(e):(e.parent===this&&kr(this,e),e===this._recent&&(this._recent=this._last),jr(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=pr(Li.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=Zr(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=fa.delayedCall(0,t||Yn,n);return r.data=`isPause`,this._hasPause=1,Vr(this,r,Zr(this,e))},n.removePause=function(e){var t=this._first;for(e=Zr(this,e);t;)t._start===e&&t.data===`isPause`&&Ar(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)ra!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=oi(e),i=this._first,a=xn(t),o;i;)i instanceof fa?hr(i._targets,r)&&(a?(!ra||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&n.push(i):(o=i.getTweensOf(r,t)).length&&n.push.apply(n,o),i=i._next;return n},n.tweenTo=function(e,t){t||={};var n=this,r=Zr(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=fa.to(n,xr({ease:t.ease||`none`,lazy:!1,immediateRender:!1,time:r,overwrite:`auto`,duration:t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale())||X,onStart:function(){if(n.pause(),!l){var e=t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale());u._dur!==e&&Jr(u,e,0,1).render(u._time,!0,!0),l=1}o&&o.apply(u,s||[])}},t));return c?u.render(0):u},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,xr({startAt:{time:Zr(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),Si(this,Zr(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),Si(this,Zr(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+X)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=pr(e);r;)r._start>=n&&(r._start+=e,r._end+=e),r=r._next;if(t)for(a in i)i[a]>=n&&(i[a]+=e);return jr(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){e===void 0&&(e=!0);for(var t=this._first,n;t;)n=t._next,this.remove(t),t=n;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),jr(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=fn,a,o,s;if(arguments.length)return n.timeScale((n._repeat<0?n.duration():n.totalDuration())/(n.reversed()?-e:e));if(n._dirty){for(s=n.parent;r;)a=r._prev,r._dirty&&r.totalDuration(),o=r._start,o>i&&n._sort&&r._ts&&!n._lock?(n._lock=1,Vr(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=pr(o/n._ts),n._time-=o,n._tTime-=o),n.shiftChildren(-o,!1,-1/0),i=0),r._end>t&&r._ts&&(t=r._end),r=a;Jr(n,n===Rn&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(Rn._ts&&(vr(Rn,Lr(e,Rn)),nr=Li.frame),Li.frame>=ar){ar+=sn.autoSleep||120;var t=Rn._first;if((!t||!t._ts)&&sn.autoSleep&&Li._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||Li.sleep()}}},t}(Zi);xr(Qi.prototype,{_lock:0,_hasPause:0,_forcing:0});var $i=function(e,t,n,r,i,a,o){var s=new Ea(this._pt,e,t,0,1,ba,null,i),c=0,l=0,u,d,f,p,m,h,g,_;for(s.b=n,s.e=r,n+=``,r+=``,(g=~r.indexOf(`random(`))&&(r=yi(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(Pn)||[];u=Pn.exec(r);)p=u[0],m=r.substring(c,u.index),f?f=(f+1)%5:m.substr(-5)===`rgba(`&&(f=1),p!==d[l++]&&(h=parseFloat(d[l-1])||0,s._pt={_next:s._pt,p:m||l===1?m:`,`,s:h,c:p.charAt(1)===`=`?mr(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=Pn.lastIndex);return s.c=c<r.length?r.substring(c,r.length):``,s.fp=o,(Fn.test(r)||g)&&(s.e=0),this._pt=s,s},ea=function(e,t,n,r,i,a,o,s,c,l){bn(r)&&(r=r(i||0,e,a));var u=e[t],d=n===`get`?bn(u)?c?e[t.indexOf(`set`)||!bn(e[`get`+t.substr(3)])?t:`get`+t.substr(3)](c):e[t]():u:n,f=bn(u)?c?ha:ma:pa,p;if(yn(r)&&(~r.indexOf(`random(`)&&(r=yi(r)),r.charAt(1)===`=`&&(p=mr(d,r)+(ti(d)||0),(p||p===0)&&(r=p))),!l||d!==r||ia)return!isNaN(d*r)&&r!==``?(p=new Ea(this._pt,e,t,+d||0,r-(d||0),typeof u==`boolean`?ya:va,0,f),c&&(p.fp=c),o&&p.modifier(o,this,e),this._pt=p):(!u&&!(t in e)&&Kn(t,r),$i.call(this,e,t,d,r,f,s||sn.stringFilter,c))},ta=function(e,t,n,r,i){if(bn(e)&&(e=la(e,i,t,n,r)),!Cn(e)||e.style&&e.nodeType||On(e)||Dn(e))return yn(e)?la(e,i,t,n,r):e;var a={},o;for(o in e)a[o]=la(e[o],i,t,n,r);return a},na=function(e,t,n,r,i,a){var o,s,c,l;if(rr[e]&&(o=new rr[e]).init(i,o.rawVars?t[e]:ta(t[e],r,i,a,n),n,r,a)!==!1&&(n._pt=s=new Ea(n._pt,i,e,0,1,o.render,o,0,o.priority),n!==Ti))for(c=n._ptLookup[n._targets.indexOf(i)],l=o._props.length;l--;)c[o._props[l]]=s;return o},ra,ia,aa=function e(t,n,r){var i=t.vars,a=i.ease,o=i.startAt,s=i.immediateRender,c=i.lazy,l=i.onUpdate,u=i.runBackwards,d=i.yoyoEase,f=i.keyframes,p=i.autoRevert,m=t._dur,h=t._startAt,g=t._targets,_=t.parent,v=_&&_.data===`nested`?_.vars.targets:g,y=t._overwrite===`auto`&&!ln,b=t.timeline,x=i.easeReverse||d,S,C,w,T,E,D,O,k,A,j,M,ee,te;if(b&&(!f||!a)&&(a=`none`),t._ease=Gi(a,cn.ease),t._rEase=x&&(Gi(x)||t._ease),t._from=!b&&!!i.runBackwards,t._from&&(t.ratio=1),!b||f&&!i.stagger){if(k=g[0]?lr(g[0]).harness:0,ee=k&&i[k.prop],S=Tr(i,$n),h&&(h._zTime<0&&h.progress(1),n<0&&u&&s&&!p?h.render(-1,!0):h.revert(u&&m?Zn:Xn),h._lazy=0),o){if(Ar(t._startAt=fa.set(g,xr({data:`isStart`,overwrite:!1,parent:_,immediateRender:!0,lazy:!h&&wn(c),startAt:null,delay:0,onUpdate:l&&function(){return Ci(t,`onUpdate`)},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(un||!s&&!p)&&t._startAt.revert(Zn),s&&m&&n<=0&&r<=0){n&&(t._zTime=n);return}}else if(u&&m&&!h){if(n&&(s=!1),w=xr({overwrite:!1,data:`isFromStart`,lazy:s&&!h&&wn(c),immediateRender:s,stagger:0,parent:_},S),ee&&(w[k.prop]=ee),Ar(t._startAt=fa.set(g,w)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(un?t._startAt.revert(Zn):t._startAt.render(-1,!0)),t._zTime=n,!s)e(t._startAt,X,X);else if(!n)return}for(t._pt=t._ptCache=0,c=m&&wn(c)||c&&!m,C=0;C<g.length;C++){if(E=g[C],O=E._gsap||cr(g)[C]._gsap,t._ptLookup[C]=j={},tr[O.id]&&er.length&&gr(),M=v===g?C:v.indexOf(E),k&&(A=new k).init(E,ee||S,t,M,v)!==!1&&(t._pt=T=new Ea(t._pt,E,A.name,0,1,A.render,A,0,A.priority),A._props.forEach(function(e){j[e]=T}),A.priority&&(D=1)),!k||ee)for(w in S)rr[w]&&(A=na(w,S,t,M,E,v))?A.priority&&(D=1):j[w]=T=ea.call(t,E,w,`get`,S[w],M,v,0,i.stringFilter);t._op&&t._op[C]&&t.kill(E,t._op[C]),y&&t._pt&&(ra=t,Rn.killTweensOf(E,j,t.globalTime(n)),te=!t.parent,ra=0),t._pt&&c&&(tr[O.id]=1)}D&&Ta(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!te,f&&n<=0&&b.render(fn,!0,!0)},oa=function(e,t,n,r,i,a,o,s){var c=(e._pt&&e._ptCache||(e._ptCache={}))[t],l,u,d,f;if(!c)for(c=e._ptCache[t]=[],d=e._ptLookup,f=e._targets.length;f--;){if(l=d[f][t],l&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return ia=1,e.vars[t]=`+=0`,aa(e,o),ia=0,s?qn(t+` not eligible for reset. Try splitting into individual properties`):1;c.push(l)}for(f=c.length;f--;)u=c[f],l=u._pt||u,l.s=(r||r===0)&&!i?r:l.s+(r||0)+a*l.c,l.c=n-l.s,u.e&&(u.e=fr(n)+ti(u.e)),u.b&&(u.b=l.s+ti(u.b))},sa=function(e,t){var n=e[0]?lr(e[0]).harness:0,r=n&&n.aliases,i,a,o,s;if(!r)return t;for(a in i=Cr({},t),r)if(a in i)for(s=r[a].split(`,`),o=s.length;o--;)i[s[o]]=i[a];return i},ca=function(e,t,n,r){var i=t.ease||r||`power1.inOut`,a,o;if(On(t))o=n[e]||(n[e]=[]),t.forEach(function(e,n){return o.push({t:n/(t.length-1)*100,v:e,e:i})});else for(a in t)o=n[a]||(n[a]=[]),a===`ease`||o.push({t:parseFloat(e),v:t[a],e:i})},la=function(e,t,n,r,i){return bn(e)?e.call(t,n,r,i):yn(e)&&~e.indexOf(`random(`)?yi(e):e},ua=sr+`repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert`,da={};dr(ua+`,id,stagger,delay,duration,paused,scrollTrigger`,function(e){return da[e]=1});var fa=function(e){on(t,e);function t(t,n,r,i){var a;typeof n==`number`&&(r.duration=n,n=r,r=null),a=e.call(this,i?n:Er(n))||this;var o=a.vars,s=o.duration,c=o.delay,l=o.immediateRender,u=o.stagger,d=o.overwrite,f=o.keyframes,p=o.defaults,m=o.scrollTrigger,h=n.parent||Rn,g=(On(t)||Dn(t)?xn(t[0]):`length`in n)?[t]:oi(t),_,v,y,b,x,S,C,w;if(a._targets=g.length?cr(g):qn(`GSAP target `+t+` not found. https://gsap.com`,!sn.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=d,f||u||En(s)||En(c)){n=a.vars;var T=n.easeReverse||n.yoyoEase;if(_=a.timeline=new Qi({data:`nested`,defaults:p||{},targets:h&&h.data===`nested`?h.vars.targets:g}),_.kill(),_.parent=_._dp=an(a),_._start=0,u||En(s)||En(c)){if(b=g.length,C=u&&li(u),Cn(u))for(x in u)~ua.indexOf(x)&&(w||={},w[x]=u[x]);for(v=0;v<b;v++)y=Tr(n,da),y.stagger=0,T&&(y.easeReverse=T),w&&Cr(y,w),S=g[v],y.duration=+la(s,an(a),v,S,g),y.delay=(+la(c,an(a),v,S,g)||0)-a._delay,!u&&b===1&&y.delay&&(a._delay=c=y.delay,a._start+=c,y.delay=0),_.to(S,y,C?C(v,S,g):0),_._ease=Q.none;_.duration()?s=c=0:a.timeline=0}else if(f){Er(xr(_.vars.defaults,{ease:`none`})),_._ease=Gi(f.ease||n.ease||`none`);var E=0,D,O,k;if(On(f))f.forEach(function(e){return _.to(g,e,`>`)}),_.duration();else{for(x in y={},f)x===`ease`||x===`easeEach`||ca(x,f[x],y,f.easeEach);for(x in y)for(D=y[x].sort(function(e,t){return e.t-t.t}),E=0,v=0;v<D.length;v++)O=D[v],k={ease:O.e,duration:(O.t-(v?D[v-1].t:0))/100*s},k[x]=O.v,_.to(g,k,E),E+=k.duration;_.duration()<s&&_.to({},{duration:s-_.duration()})}}s||a.duration(s=_.duration())}else a.timeline=0;return d===!0&&!ln&&(ra=an(a),Rn.killTweensOf(g),ra=0),Vr(h,an(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(l||!s&&!f&&a._start===pr(h._time)&&wn(l)&&Pr(an(a))&&h.data!==`nested`)&&(a._tTime=-X,a.render(Math.max(0,-c)||0)),m&&Hr(an(a),m),a}var n=t.prototype;return n.render=function(e,t,n){var r=this._time,i=this._tDur,a=this._dur,o=e<0,s=e>i-X&&!o?i:e<X?0:e,c,l,u,d,f,p,m,h;if(!a)Kr(this,e,t,n);else if(s!==this._tTime||!e||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==o||this._lazy){if(c=s,h=this.timeline,this._repeat){if(d=a+this._rDelay,this._repeat<-1&&o)return this.totalTime(d*100+e,t,n);if(c=pr(s%d),s===i?(u=this._repeat,c=a):(f=pr(s/d),u=~~f,u&&u===f?(c=a,u--):c>a&&(c=a)),p=this._yoyo&&u&1,p&&(c=a-c),f=Ir(this._tTime,d),c===r&&!n&&this._initted&&u===f)return this._tTime=s,this;u!==f&&this.vars.repeatRefresh&&!p&&!this._lock&&c!==d&&this._initted&&(this._lock=n=1,this.render(pr(d*u),!0).invalidate()._lock=0)}if(!this._initted){if(Ur(this,o?e:c,n,t,s))return this._tTime=0,this;if(r!==this._time&&!(n&&this.vars.repeatRefresh&&u!==f))return this;if(a!==this._dur)return this.render(e,t,n)}if(this._rEase){var g=c<r;if(g!==this._inv){var _=g?r:a-r;this._inv=g,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=r,this._invRecip=_?(g?-1:1)/_:0,this._invScale=g?-this.ratio:1-this.ratio,this._invEase=g?this._rEase:this._ease}this.ratio=m=this._invRatio+this._invScale*this._invEase((c-this._invTime)*this._invRecip)}else this.ratio=m=this._ease(c/a);if(this._from&&(this.ratio=m=1-m),this._tTime=s,this._time=c,!this._act&&this._ts&&(this._act=1,this._lazy=0),!r&&s&&!t&&!f&&(Ci(this,`onStart`),this._tTime!==s))return this;for(l=this._pt;l;)l.r(m,l.d),l=l._next;h&&h.render(e<0?e:h._dur*h._ease(c/this._dur),t,n)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(o&&Nr(this,e,t,n),Ci(this,`onUpdate`)),this._repeat&&u!==f&&this.vars.onRepeat&&!t&&this.parent&&Ci(this,`onRepeat`),(s===this._tDur||!s)&&this._tTime===s&&(o&&!this._onUpdate&&Nr(this,e,!0,!0),(e||!a)&&(s===this._tDur&&this._ts>0||!s&&this._ts<0)&&Ar(this,1),!t&&!(o&&!r)&&(s||r||p)&&(Ci(this,s===i?`onComplete`:`onReverseComplete`,!0),this._prom&&!(s<i&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,r,i){Ii||Li.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||aa(this,a),o=this._ease(a/this._dur),oa(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(zr(this,0),this.parent||Or(this._dp,this,`_first`,`_last`,this._dp._sort?`_start`:0),this.render(0))},n.kill=function(e,t){if(t===void 0&&(t=`all`),!e&&(!t||t===`all`))return this._lazy=this._pt=0,this.parent?wi(this):this.scrollTrigger&&this.scrollTrigger.kill(!!un),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,ra&&ra.vars.overwrite!==!0)._first||wi(this),this.parent&&n!==this.timeline.totalDuration()&&Jr(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?oi(e):r,a=this._ptLookup,o=this._pt,s,c,l,u,d,f,p;if((!t||t===`all`)&&Dr(r,i))return t===`all`&&(this._pt=0),wi(this);for(s=this._op=this._op||[],t!==`all`&&(yn(t)&&(d={},dr(t,function(e){return d[e]=1}),t=d),t=sa(r,t)),p=r.length;p--;)if(~i.indexOf(r[p]))for(d in c=a[p],t===`all`?(s[p]=t,u=c,l={}):(l=s[p]=s[p]||{},u=t),u)f=c&&c[d],f&&((!(`kill`in f.d)||f.d.kill(d)===!0)&&kr(this,f,`_pt`),delete c[d]),l!==`all`&&(l[d]=1);return this._initted&&!this._pt&&o&&wi(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return Qr(1,arguments)},t.delayedCall=function(e,n,r,i){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},t.fromTo=function(e,t,n){return Qr(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return Rn.killTweensOf(e,t,n)},t}(Zi);xr(fa.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),dr(`staggerTo,staggerFrom,staggerFromTo`,function(e){fa[e]=function(){var t=new Qi,n=ri.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var pa=function(e,t,n){return e[t]=n},ma=function(e,t,n){return e[t](n)},ha=function(e,t,n,r){return e[t](r.fp,n)},ga=function(e,t,n){return e.setAttribute(t,n)},_a=function(e,t){return bn(e[t])?ma:Sn(e[t])&&e.setAttribute?ga:pa},va=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},ya=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},ba=function(e,t){var n=t._pt,r=``;if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},xa=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},Sa=function(e,t,n,r){for(var i=this._pt,a;i;)a=i._next,i.p===r&&i.modifier(e,t,n),i=a},Ca=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?kr(this,t,`_pt`):t.dep||(n=1),t=r;return!n},wa=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},Ta=function(e){for(var t=e._pt,n,r,i,a;t;){for(n=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:a)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:a=t,t=n}e._pt=i},Ea=function(){function e(e,t,n,r,i,a,o,s,c){this.t=t,this.s=r,this.c=i,this.p=n,this.r=a||va,this.d=o||this,this.set=s||pa,this.pr=c||0,this._next=e,e&&(e._prev=this)}var t=e.prototype;return t.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=wa,this.m=e,this.mt=n,this.tween=t},e}();dr(sr+`parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse`,function(e){return $n[e]=1}),Hn.TweenMax=Hn.TweenLite=fa,Hn.TimelineLite=Hn.TimelineMax=Qi,Rn=new Qi({sortChildren:!1,defaults:cn,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),sn.stringFilter=Fi;var Da=[],Oa={},ka=[],Aa=0,ja=0,Ma=function(e){return(Oa[e]||ka).map(function(e){return e()})},Na=function(){var e=Date.now(),t=[];e-Aa>2&&(Ma(`matchMediaInit`),Da.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=zn.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),Ma(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),Aa=e,Ma(`matchMedia`))},Pa=function(){function e(e,t){this.selector=t&&si(t),this.data=[],this._r=[],this.isReverted=!1,this.id=ja++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){bn(e)&&(n=t,t=e,e=bn);var r=this,i=function(){var e=dn,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=si(n)),dn=r,a=t.apply(r,arguments),bn(a)&&r._r.push(a),dn=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===bn?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=dn;dn=null,e(this),dn=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof fa&&!(n.parent&&n.parent.data===`nested`)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e?(function(){for(var t=n.getTweens(),r=n.data.length,i;r--;)i=n.data[r],i.data===`isFlip`&&(i.revert(),i.getChildren(!0,!0,!1).forEach(function(e){return t.splice(t.indexOf(e),1)}));for(t.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),r=n.data.length;r--;)i=n.data[r],i instanceof Qi?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof fa)&&i.revert&&i.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0})():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),t)for(var r=Da.length;r--;)Da[r].id===this.id&&Da.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),Fa=function(){function e(e){this.contexts=[],this.scope=e,dn&&dn.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){Cn(e)||(e={matches:e});var r=new Pa(0,n||this.scope),i=r.conditions={},a,o,s;for(o in dn&&!r.selector&&(r.selector=dn.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=zn.matchMedia(e[o]),a&&(Da.indexOf(r)<0&&Da.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(Na):a.addEventListener(`change`,Na)));return s&&t(r,function(e){return r.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),Ia={registerPlugin:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(function(e){return Di(e)})},timeline:function(e){return new Qi(e)},getTweensOf:function(e,t){return Rn.getTweensOf(e,t)},getProperty:function(e,t,n,r){yn(e)&&(e=oi(e)[0]);var i=lr(e||{}).get,a=n?br:yr;return n===`native`&&(n=``),e&&(t?a((rr[t]&&rr[t].get||i)(e,t,n,r)):function(t,n,r){return a((rr[t]&&rr[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=oi(e),e.length>1){var r=e.map(function(e){return Ba.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=rr[t],o=lr(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;Ti._pt=0,r.init(e,n?t+n:t,Ti,0,[e]),r.render(1,r),Ti._pt&&xa(1,Ti)}:o.set(e,s);return a?c:function(t){return c(e,s,n?t+n:t,o,1)}},quickTo:function(e,t,n){var r,i=Ba.to(e,xr((r={},r[t]=`+=0.1`,r.paused=!0,r.stagger=0,r),n||{})),a=function(e,n,r){return i.resetTo(t,e,n,r)};return a.tween=i,a},isTweening:function(e){return Rn.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Gi(e.ease,cn.ease)),wr(cn,e||{})},config:function(e){return wr(sn,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,a=e.extendTimeline;(r||``).split(`,`).forEach(function(e){return e&&!rr[e]&&!Hn[e]&&qn(t+` effect requires `+e+` plugin.`)}),ir[t]=function(e,t,r){return n(oi(e),xr(t||{},i),r)},a&&(Qi.prototype[t]=function(e,n,r){return this.add(ir[t](e,Cn(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){Q[e]=Gi(t)},parseEase:function(e,t){return arguments.length?Gi(e,t):Q},getById:function(e){return Rn.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new Qi(e),r,i;for(n.smoothChildTiming=wn(e.smoothChildTiming),Rn.remove(n),n._dp=0,n._time=n._tTime=Rn._time,r=Rn._first;r;)i=r._next,(t||!(!r._dur&&r instanceof fa&&r.vars.onComplete===r._targets[0]))&&Vr(n,r,r._start-r._delay),r=i;return Vr(Rn,n,0),n},context:function(e,t){return e?new Pa(e,t):dn},matchMedia:function(e){return new Fa(e)},matchMediaRefresh:function(){return Da.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||Na()},addEventListener:function(e,t){var n=Oa[e]||(Oa[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=Oa[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:_i,wrapYoyo:vi,distribute:li,random:fi,snap:di,normalize:hi,getUnit:ti,clamp:ni,splitColor:Ai,toArray:oi,selector:si,mapRange:bi,pipe:pi,unitize:mi,interpolate:xi,shuffle:ci},install:Gn,effects:ir,ticker:Li,updateRoot:Qi.updateRoot,plugins:rr,globalTimeline:Rn,core:{PropTween:Ea,globals:Jn,Tween:fa,Timeline:Qi,Animation:Zi,getCache:lr,_removeLinkedListItem:kr,reverting:function(){return un},context:function(e){return e&&dn&&(dn.data.push(e),e._ctx=dn),dn},suppressOverwrites:function(e){return ln=e}}};dr(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return Ia[e]=fa[e]}),Li.add(Qi.updateRoot),Ti=Ia.to({},{duration:0});var La=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},Ra=function(e,t){var n=e._targets,r,i,a;for(r in t)for(i=n.length;i--;)a=e._ptLookup[i][r],(a&&=a.d)&&(a._pt&&(a=La(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},za=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(yn(n)&&(r={},dr(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}Ra(e,n)}}}},Ba=Ia.registerPlugin({name:`attr`,init:function(e,t,n,r,i){var a,o,s;for(a in this.tween=n,t)s=e.getAttribute(a)||``,o=this.add(e,`setAttribute`,(s||0)+``,t[a],r,i,0,0,a),o.op=a,o.b=s,this._props.push(a)},render:function(e,t){for(var n=t._pt;n;)un?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:`endArray`,headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},za(`roundProps`,ui),za(`modifiers`),za(`snap`,di))||Ia;fa.version=Qi.version=Ba.version=`3.15.0`,Wn=1,Tn()&&Ri(),Q.Power0,Q.Power1,Q.Power2,Q.Power3,Q.Power4,Q.Linear,Q.Quad,Q.Cubic,Q.Quart,Q.Quint,Q.Strong,Q.Elastic,Q.Back,Q.SteppedEase,Q.Bounce,Q.Sine,Q.Expo,Q.Circ;var Va,Ha,Ua,Wa,Ga,Ka,qa,Ja=function(){return typeof window<`u`},Ya={},Xa=180/Math.PI,Za=Math.PI/180,Qa=Math.atan2,$a=1e8,eo=/([A-Z])/g,to=/(left|right|width|margin|padding|x)/i,no=/[\s,\(]\S/,ro={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},io=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},ao=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},oo=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},so=function(e,t){return t.set(t.t,t.p,e===1?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},co=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},lo=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},uo=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},fo=function(e,t,n){return e.style[t]=n},po=function(e,t,n){return e.style.setProperty(t,n)},mo=function(e,t,n){return e._gsap[t]=n},ho=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},go=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},_o=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},vo=`transform`,yo=vo+`Origin`,bo=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in Ya&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=ro[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=zo(i,e)}):this.tfm[t]=o.x?o[t]:zo(i,t),t===yo&&(this.tfm.zOrigin=o.zOrigin);else return ro.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(vo)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(yo,n,``)),t=vo}(a||n)&&this.props.push(t,n,a[t])},xo=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},So=function(){var e=this.props,t=this.target,n=t.style,r=t._gsap,i,a;for(i=0;i<e.length;i+=3)e[i+1]?e[i+1]===2?t[e[i]](e[i+2]):t[e[i]]=e[i+2]:e[i+2]?n[e[i]]=e[i+2]:n.removeProperty(e[i].substr(0,2)===`--`?e[i]:e[i].replace(eo,`-$1`).toLowerCase());if(this.tfm){for(a in this.tfm)r[a]=this.tfm[a];r.svg&&(r.renderTransform(),t.setAttribute(`data-svg-origin`,this.svgo||``)),i=qa(),(!i||!i.isStart)&&!n[vo]&&(xo(n),r.zOrigin&&n[yo]&&(n[yo]+=` `+r.zOrigin+`px`,r.zOrigin=0,r.renderTransform()),r.uncache=1)}},Co=function(e,t){var n={target:e,props:[],revert:So,save:bo};return e._gsap||Ba.core.getCache(e),t&&e.style&&e.nodeType&&t.split(`,`).forEach(function(e){return n.save(e)}),n},wo,To=function(e,t){var n=Ha.createElementNS?Ha.createElementNS((t||`http://www.w3.org/1999/xhtml`).replace(/^https/,`http`),e):Ha.createElement(e);return n&&n.style?n:Ha.createElement(e)},Eo=function e(t,n,r){var i=getComputedStyle(t);return i[n]||i.getPropertyValue(n.replace(eo,`-$1`).toLowerCase())||i.getPropertyValue(n)||!r&&e(t,Oo(n)||n,1)||``},Do=`O,Moz,ms,Ms,Webkit`.split(`,`),Oo=function(e,t,n){var r=(t||Ga).style,i=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(Do[i]+e in r););return i<0?null:(i===3?`ms`:i>=0?Do[i]:``)+e},ko=function(){Ja()&&window.document&&(Va=window,Ha=Va.document,Ua=Ha.documentElement,Ga=To(`div`)||{style:{}},To(`div`),vo=Oo(vo),yo=vo+`Origin`,Ga.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,wo=!!Oo(`perspective`),qa=Ba.core.reverting,Wa=1)},Ao=function(e){var t=e.ownerSVGElement,n=To(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),Ua.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),Ua.removeChild(n),i},jo=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},Mo=function(e){var t,n;try{t=e.getBBox()}catch{t=Ao(e),n=1}return t&&(t.width||t.height)||n||(t=Ao(e)),t&&!t.width&&!t.x&&!t.y?{x:+jo(e,[`x`,`cx`,`x1`])||0,y:+jo(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},No=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Mo(e))},Po=function(e,t){if(t){var n=e.style,r;t in Ya&&t!==yo&&(t=vo),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(eo,`-$1`).toLowerCase())):n.removeAttribute(t)}},Fo=function(e,t,n,r,i,a){var o=new Ea(e._pt,t,n,0,1,a?uo:lo);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},Io={deg:1,rad:1,turn:1},Lo={grid:1,flex:1},Ro=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=Ga.style,c=to.test(n),l=t.tagName.toLowerCase()===`svg`,u=(l?`client`:`offset`)+(c?`Width`:`Height`),d=100,f=i===`px`,p=i===`%`,m,h,g,_;if(i===o||!a||Io[i]||Io[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&No(t),(p||o===`%`)&&(Ya[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],fr(p?a/m*d:a/100*m);if(s[c?`width`:`height`]=d+(f?o:i),h=i!==`rem`&&~n.indexOf(`adius`)||i===`em`&&t.appendChild&&!l?t:t.parentNode,_&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===Ha||!h.appendChild)&&(h=Ha.body),g=h._gsap,g&&p&&g.width&&c&&g.time===Li.time&&!g.uncache)return fr(a/g.width*d);if(p&&(n===`height`||n===`width`)){var v=t.style[n];t.style[n]=d+i,m=t[u],v?t.style[n]=v:Po(t,n)}else(p||o===`%`)&&!Lo[Eo(h,`display`)]&&(s.position=Eo(t,`position`)),h===t&&(s.position=`static`),h.appendChild(Ga),m=Ga[u],h.removeChild(Ga),s.position=`absolute`;return c&&p&&(g=lr(h),g.time=Li.time,g.width=h[u]),fr(f?m*a/d:m&&a?d/m*a:0)},zo=function(e,t,n,r){var i;return Wa||ko(),t in ro&&t!==`transform`&&(t=ro[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),Ya[t]&&t!==`transform`?(i=Zo(e,r),i=t===`transformOrigin`?i.svg?i.origin:Qo(Eo(e,yo))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=Wo[t]&&Wo[t](e,t,n)||Eo(e,t)||ur(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?Ro(e,t,i,n)+n:i},Bo=function(e,t,n,r){if(!n||n===`none`){var i=Oo(t,e,1),a=i&&Eo(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=Eo(e,`borderTopColor`))}var o=new Ea(this._pt,e.style,t,0,1,ba),s=0,c=0,l,u,d,f,p,m,h,g,_,v,y,b;if(o.b=n,o.e=r,n+=``,r+=``,r.substring(0,6)===`var(--`&&(r=Eo(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(m=e.style[t],e.style[t]=r,r=Eo(e,t)||r,m?e.style[t]=m:Po(e,t)),l=[n,r],Fi(l),n=l[0],r=l[1],d=n.match(Nn)||[],b=r.match(Nn)||[],b.length){for(;u=Nn.exec(r);)h=u[0],_=r.substring(s,u.index),p?p=(p+1)%5:(_.substr(-5)===`rgba(`||_.substr(-5)===`hsla(`)&&(p=1),h!==(m=d[c++]||``)&&(f=parseFloat(m)||0,y=m.substr((f+``).length),h.charAt(1)===`=`&&(h=mr(f,h)+y),g=parseFloat(h),v=h.substr((g+``).length),s=Nn.lastIndex-v.length,v||(v=v||sn.units[t]||y,s===r.length&&(r+=v,o.e+=v)),y!==v&&(f=Ro(e,t,m,v)||0),o._pt={_next:o._pt,p:_||c===1?_:`,`,s:f,c:g-f,m:p&&p<4||t===`zIndex`?Math.round:0});o.c=s<r.length?r.substring(s,r.length):``}else o.r=t===`display`&&r===`none`?uo:lo;return Fn.test(r)&&(o.e=0),this._pt=o,o},Vo={top:`0%`,bottom:`100%`,left:`0%`,right:`100%`,center:`50%`},Ho=function(e){var t=e.split(` `),n=t[0],r=t[1]||`50%`;return(n===`top`||n===`bottom`||r===`left`||r===`right`)&&(e=n,n=r,r=e),t[0]=Vo[n]||n,t[1]=Vo[r]||r,t.join(` `)},Uo=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var n=t.t,r=n.style,i=t.u,a=n._gsap,o,s,c;if(i===`all`||i===!0)r.cssText=``,s=1;else for(i=i.split(`,`),c=i.length;--c>-1;)o=i[c],Ya[o]&&(s=1,o=o===`transformOrigin`?yo:vo),Po(n,o);s&&(Po(n,vo),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,Zo(n,1),a.uncache=1,xo(r)))}},Wo={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new Ea(e._pt,t,n,0,0,Uo);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},Go=[1,0,0,1,0,0],Ko={},qo=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},Jo=function(e){var t=Eo(e,vo);return qo(t)?Go:t.substr(7).match(Mn).map(fr)},Yo=function(e,t){var n=e._gsap||lr(e),r=e.style,i=Jo(e),a,o,s,c;return n.svg&&e.getAttribute(`transform`)?(s=e.transform.baseVal.consolidate().matrix,i=[s.a,s.b,s.c,s.d,s.e,s.f],i.join(`,`)===`1,0,0,1,0,0`?Go:i):(i===Go&&!e.offsetParent&&e!==Ua&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,Ua.appendChild(e)),i=Jo(e),s?r.display=s:Po(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):Ua.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},Xo=function(e,t,n,r,i,a){var o=e._gsap,s=i||Yo(e,!0),c=o.xOrigin||0,l=o.yOrigin||0,u=o.xOffset||0,d=o.yOffset||0,f=s[0],p=s[1],m=s[2],h=s[3],g=s[4],_=s[5],v=t.split(` `),y=parseFloat(v[0])||0,b=parseFloat(v[1])||0,x,S,C,w;n?s!==Go&&(S=f*h-p*m)&&(C=h/S*y+b*(-m/S)+(m*_-h*g)/S,w=y*(-p/S)+f/S*b-(f*_-p*g)/S,y=C,b=w):(x=Mo(e),y=x.x+(~v[0].indexOf(`%`)?y/100*x.width:y),b=x.y+(~(v[1]||v[0]).indexOf(`%`)?b/100*x.height:b)),r||r!==!1&&o.smooth?(g=y-c,_=b-l,o.xOffset=u+(g*f+_*m)-g,o.yOffset=d+(g*p+_*h)-_):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=b,o.smooth=!!r,o.origin=t,o.originIsAbsolute=!!n,e.style[yo]=`0px 0px`,a&&(Fo(a,o,`xOrigin`,c,y),Fo(a,o,`yOrigin`,l,b),Fo(a,o,`xOffset`,u,o.xOffset),Fo(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},Zo=function(e,t){var n=e._gsap||new Xi(e);if(`x`in n&&!t&&!n.uncache)return n;var r=e.style,i=n.scaleX<0,a=`px`,o=`deg`,s=getComputedStyle(e),c=Eo(e,yo)||`0`,l=u=d=m=h=g=_=v=y=0,u,d,f=p=1,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,ee,te,ne,re,N,ie,P,F;return n.svg=!!(e.getCTM&&No(e)),s.translate&&((s.translate!==`none`||s.scale!==`none`||s.rotate!==`none`)&&(r[vo]=(s.translate===`none`?``:`translate3d(`+(s.translate+` 0 0`).split(` `).slice(0,3).join(`, `)+`) `)+(s.rotate===`none`?``:`rotate(`+s.rotate+`) `)+(s.scale===`none`?``:`scale(`+s.scale.split(` `).join(`,`)+`) `)+(s[vo]===`none`?``:s[vo])),r.scale=r.rotate=r.translate=`none`),S=Yo(e,n.svg),n.svg&&(n.uncache?(ee=e.getBBox(),c=n.xOrigin-ee.x+`px `+(n.yOrigin-ee.y)+`px`,M=``):M=!t&&e.getAttribute(`data-svg-origin`),Xo(e,M||c,!!M||n.originIsAbsolute,n.smooth!==!1,S)),b=n.xOrigin||0,x=n.yOrigin||0,S!==Go&&(E=S[0],D=S[1],O=S[2],k=S[3],l=A=S[4],u=j=S[5],S.length===6?(f=Math.sqrt(E*E+D*D),p=Math.sqrt(k*k+O*O),m=E||D?Qa(D,E)*Xa:0,_=O||k?Qa(O,k)*Xa+m:0,_&&(p*=Math.abs(Math.cos(_*Za))),n.svg&&(l-=b-(b*E+x*O),u-=x-(b*D+x*k))):(F=S[6],ie=S[7],ne=S[8],re=S[9],N=S[10],P=S[11],l=S[12],u=S[13],d=S[14],C=Qa(F,N),h=C*Xa,C&&(w=Math.cos(-C),T=Math.sin(-C),M=A*w+ne*T,ee=j*w+re*T,te=F*w+N*T,ne=A*-T+ne*w,re=j*-T+re*w,N=F*-T+N*w,P=ie*-T+P*w,A=M,j=ee,F=te),C=Qa(-O,N),g=C*Xa,C&&(w=Math.cos(-C),T=Math.sin(-C),M=E*w-ne*T,ee=D*w-re*T,te=O*w-N*T,P=k*T+P*w,E=M,D=ee,O=te),C=Qa(D,E),m=C*Xa,C&&(w=Math.cos(C),T=Math.sin(C),M=E*w+D*T,ee=A*w+j*T,D=D*w-E*T,j=j*w-A*T,E=M,A=ee),h&&Math.abs(h)+Math.abs(m)>359.9&&(h=m=0,g=180-g),f=fr(Math.sqrt(E*E+D*D+O*O)),p=fr(Math.sqrt(j*j+F*F)),C=Qa(A,j),_=Math.abs(C)>2e-4?C*Xa:0,y=P?1/(P<0?-P:P):0),n.svg&&(M=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!qo(Eo(e,vo)),M&&e.setAttribute(`transform`,M))),Math.abs(_)>90&&Math.abs(_)<270&&(i?(f*=-1,_+=m<=0?180:-180,m+=m<=0?180:-180):(p*=-1,_+=_<=0?180:-180)),t||=n.uncache,n.x=l-((n.xPercent=l&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-l)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+a,n.y=u-((n.yPercent=u&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-u)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+a,n.z=d+a,n.scaleX=fr(f),n.scaleY=fr(p),n.rotation=fr(m)+o,n.rotationX=fr(h)+o,n.rotationY=fr(g)+o,n.skewX=_+o,n.skewY=v+o,n.transformPerspective=y+a,(n.zOrigin=parseFloat(c.split(` `)[2])||!t&&n.zOrigin||0)&&(r[yo]=Qo(c)),n.xOffset=n.yOffset=0,n.force3D=sn.force3D,n.renderTransform=n.svg?as:wo?is:es,n.uncache=0,n},Qo=function(e){return(e=e.split(` `))[0]+` `+e[1]},$o=function(e,t,n){var r=ti(t);return fr(parseFloat(t)+parseFloat(Ro(e,`x`,n+`px`,r)))+r},es=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,is(e,t)},ts=`0deg`,ns=`0px`,rs=`) `,is=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,c=n.rotation,l=n.rotationY,u=n.rotationX,d=n.skewX,f=n.skewY,p=n.scaleX,m=n.scaleY,h=n.transformPerspective,g=n.force3D,_=n.target,v=n.zOrigin,y=``,b=g===`auto`&&e&&e!==1||g===!0;if(v&&(u!==ts||l!==ts)){var x=parseFloat(l)*Za,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*Za,w=Math.cos(x),a=$o(_,a,S*w*-v),o=$o(_,o,-Math.sin(x)*-v),s=$o(_,s,C*w*-v+v)}h!==ns&&(y+=`perspective(`+h+rs),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==ns||o!==ns||s!==ns)&&(y+=s!==ns||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+rs),c!==ts&&(y+=`rotate(`+c+rs),l!==ts&&(y+=`rotateY(`+l+rs),u!==ts&&(y+=`rotateX(`+u+rs),(d!==ts||f!==ts)&&(y+=`skew(`+d+`, `+f+rs),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+rs),_.style[vo]=y||`translate(0, 0)`},as=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.rotation,c=n.skewX,l=n.skewY,u=n.scaleX,d=n.scaleY,f=n.target,p=n.xOrigin,m=n.yOrigin,h=n.xOffset,g=n.yOffset,_=n.forceCSS,v=parseFloat(a),y=parseFloat(o),b,x,S,C,w;s=parseFloat(s),c=parseFloat(c),l=parseFloat(l),l&&(l=parseFloat(l),c+=l,s+=l),s||c?(s*=Za,c*=Za,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=Za,w=Math.tan(c-l),w=Math.sqrt(1+w*w),S*=w,C*=w,l&&(w=Math.tan(l),w=Math.sqrt(1+w*w),b*=w,x*=w)),b=fr(b),x=fr(x),S=fr(S),C=fr(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=Ro(f,`x`,a,`px`),y=Ro(f,`y`,o,`px`)),(p||m||h||g)&&(v=fr(v+p-(p*b+m*S)+h),y=fr(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=fr(v+r/100*w.width),y=fr(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[vo]=w)},os=function(e,t,n,r,i){var a=360,o=yn(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?Xa:1)-r,c=r+s+`deg`,l,u;return o&&(l=i.split(`_`)[1],l===`short`&&(s%=a,s!==s%(a/2)&&(s+=s<0?a:-a)),l===`cw`&&s<0?s=(s+a*$a)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*$a)%a-~~(s/a)*a)),e._pt=u=new Ea(e._pt,t,n,r,s,ao),u.e=c,u.u=`deg`,e._props.push(n),u},ss=function(e,t){for(var n in t)e[n]=t[n];return e},cs=function(e,t,n){var r=ss({},n._gsap),i=`perspective,force3D,transformOrigin,svgOrigin`,a=n.style,o,s,c,l,u,d,f,p;for(s in r.svg?(c=n.getAttribute(`transform`),n.setAttribute(`transform`,``),a[vo]=t,o=Zo(n,1),Po(n,vo),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[vo],a[vo]=t,o=Zo(n,1),a[vo]=c),Ya)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=ti(c),p=ti(l),u=f===p?parseFloat(c):Ro(n,s,c,p),d=parseFloat(l),e._pt=new Ea(e._pt,o,s,u,d-u,io),e._pt.u=p||0,e._props.push(s));ss(o,r)};dr(`padding,margin,Width,Radius`,function(e,t){var n=`Top`,r=`Right`,i=`Bottom`,a=`Left`,o=(t<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map(function(n){return t<2?e+n:`border`+n+e});Wo[t>1?`border`+e:e]=function(e,t,n,r,i){var a,s;if(arguments.length<4)return a=o.map(function(t){return zo(e,t,n)}),s=a.join(` `),s.split(a[0]).length===5?a[0]:s;a=(r+``).split(` `),s={},o.forEach(function(e,t){return s[e]=a[t]=a[t]||a[(t-1)/2|0]}),e.init(t,s,i)}});var ls={name:`css`,register:ko,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var a=this._props,o=e.style,s=n.vars.startAt,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;for(m in Wa||ko(),this.styles=this.styles||Co(e),C=this.styles.props,this.tween=n,t)if(m!==`autoRound`&&(l=t[m],!(rr[m]&&na(m,t,n,r,e,i)))){if(f=typeof l,p=Wo[m],f===`function`&&(l=l.call(n,r,e,i),f=typeof l),f===`string`&&~l.indexOf(`random(`)&&(l=yi(l)),p)p(this,e,m,l,n)&&(S=1);else if(m.substr(0,2)===`--`)c=(getComputedStyle(e).getPropertyValue(m)+``).trim(),l+=``,Ni.lastIndex=0,Ni.test(c)||(h=ti(c),g=ti(l),g?h!==g&&(c=Ro(e,m,c,g)+g):h&&(l+=h)),this.add(o,`setProperty`,c,l,r,i,0,0,m),a.push(m),C.push(m,0,o[m]);else if(f!==`undefined`){if(s&&m in s?(c=typeof s[m]==`function`?s[m].call(n,r,e,i):s[m],yn(c)&&~c.indexOf(`random(`)&&(c=yi(c)),ti(c+``)||c===`auto`||(c+=sn.units[m]||ti(zo(e,m))||``),(c+``).charAt(1)===`=`&&(c=zo(e,m))):c=zo(e,m),d=parseFloat(c),_=f===`string`&&l.charAt(1)===`=`&&l.substr(0,2),_&&(l=l.substr(2)),u=parseFloat(l),m in ro&&(m===`autoAlpha`&&(d===1&&zo(e,`visibility`)===`hidden`&&u&&(d=0),C.push(`visibility`,0,o.visibility),Fo(this,o,`visibility`,d?`inherit`:`hidden`,u?`inherit`:`hidden`,!u)),m!==`scale`&&m!==`transform`&&(m=ro[m],~m.indexOf(`,`)&&(m=m.split(`,`)[0]))),v=m in Ya,v){if(this.styles.save(m),w=l,f===`string`&&l.substring(0,6)===`var(--`){if(l=Eo(e,l.substring(4,l.indexOf(`)`))),l.substring(0,5)===`calc(`){var T=e.style.perspective;e.style.perspective=l,l=Eo(e,`perspective`),T?e.style.perspective=T:Po(e,`perspective`)}u=parseFloat(l)}if(y||(b=e._gsap,b.renderTransform&&!t.parseTransform||Zo(e,t.parseTransform),x=t.smoothOrigin!==!1&&b.smooth,y=this._pt=new Ea(this._pt,o,vo,0,1,b.renderTransform,b,0,-1),y.dep=1),m===`scale`)this._pt=new Ea(this._pt,b,`scaleY`,b.scaleY,(_?mr(b.scaleY,_+u):u)-b.scaleY||0,io),this._pt.u=0,a.push(`scaleY`,m),m+=`X`;else if(m===`transformOrigin`){C.push(yo,0,o[yo]),l=Ho(l),b.svg?Xo(e,l,0,x,0,this):(g=parseFloat(l.split(` `)[2])||0,g!==b.zOrigin&&Fo(this,b,`zOrigin`,b.zOrigin,g),Fo(this,o,m,Qo(c),Qo(l)));continue}else if(m===`svgOrigin`){Xo(e,l,1,x,0,this);continue}else if(m in Ko){os(this,b,m,d,_?mr(d,_+l):l);continue}else if(m===`smoothOrigin`){Fo(this,b,`smooth`,b.smooth,l);continue}else if(m===`force3D`){b[m]=l;continue}else if(m===`transform`){cs(this,l,e);continue}}else m in o||(m=Oo(m)||m);if(v||(u||u===0)&&(d||d===0)&&!no.test(l)&&m in o)h=(c+``).substr((d+``).length),u||=0,g=ti(l)||(m in sn.units?sn.units[m]:h),h!==g&&(d=Ro(e,m,c,g)),this._pt=new Ea(this._pt,v?b:o,m,d,(_?mr(d,_+u):u)-d,!v&&(g===`px`||m===`zIndex`)&&t.autoRound!==!1?co:io),this._pt.u=g||0,v&&w!==l?(this._pt.b=c,this._pt.e=w,this._pt.r=so):h!==g&&g!==`%`&&(this._pt.b=c,this._pt.r=oo);else if(m in o)Bo.call(this,e,m,c,_?_+l:l);else if(m in e)this.add(e,m,c||e[m],_?_+l:l,r,i);else if(m!==`parseTransform`){Kn(m,l);continue}v||(m in o?C.push(m,0,o[m]):typeof e[m]==`function`?C.push(m,2,e[m]()):C.push(m,1,c||e[m])),a.push(m)}}S&&Ta(this)},render:function(e,t){if(t.tween._time||!qa())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:zo,aliases:ro,getSetter:function(e,t,n){var r=ro[t];return r&&r.indexOf(`,`)<0&&(t=r),t in Ya&&t!==yo&&(e._gsap.x||zo(e,`x`))?n&&Ka===n?t===`scale`?ho:mo:(Ka=n||{})&&(t===`scale`?go:_o):e.style&&!Sn(e.style[t])?fo:~t.indexOf(`-`)?po:_a(e,t)},core:{_removeProperty:Po,_getMatrix:Yo}};Ba.utils.checkPrefix=Oo,Ba.core.getStyleSaver=Co,(function(e,t,n,r){var i=dr(e+`,`+t+`,`+n,function(e){Ya[e]=1});dr(t,function(e){sn.units[e]=`deg`,Ko[e]=1}),ro[i[13]]=e+`,`+t,dr(r,function(e){var t=e.split(`:`);ro[t[1]]=i[t[0]]})})(`x,y,z,scale,scaleX,scaleY,xPercent,yPercent`,`rotation,rotationX,rotationY,skewX,skewY`,`transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective`,`0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY`),dr(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){sn.units[e]=`px`}),Ba.registerPlugin(ls);var $=Ba.registerPlugin(ls)||Ba;$.core.Tween;var us,ds,fs,ps,ms,hs,gs,_s,vs=`transform`,ys=vs+`Origin`,bs,xs=function(e){var t=e.ownerDocument||e;for(!(vs in e.style)&&(`msTransform`in e.style)&&(vs=`msTransform`,ys=vs+`Origin`);t.parentNode&&(t=t.parentNode););if(ds=window,gs=new Ps,t){us=t,fs=t.documentElement,ps=t.body,_s=us.createElementNS(`http://www.w3.org/2000/svg`,`g`),_s.style.transform=`none`;var n=t.createElement(`div`),r=t.createElement(`div`),i=t&&(t.body||t.firstElementChild);i&&i.appendChild&&(i.appendChild(n),n.appendChild(r),n.style.position=`static`,n.style.transform=`translate3d(0,0,1px)`,bs=r.offsetParent!==n,i.removeChild(n))}return t},Ss=function(e){for(var t,n;e&&e!==ps;)n=e._gsap,n&&n.uncache&&n.get(e,`x`),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),t?t.push(n):t=[n]),e=e.parentNode;return t},Cs=[],ws=[],Ts=function(){return ds.pageYOffset||us.scrollTop||fs.scrollTop||ps.scrollTop||0},Es=function(){return ds.pageXOffset||us.scrollLeft||fs.scrollLeft||ps.scrollLeft||0},Ds=function(e){return e.ownerSVGElement||((e.tagName+``).toLowerCase()===`svg`?e:null)},Os=function e(t){if(ds.getComputedStyle(t).position===`fixed`)return!0;if(t=t.parentNode,t&&t.nodeType===1)return e(t)},ks=function e(t,n){if(t.parentNode&&(us||xs(t))){var r=Ds(t),i=r?r.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`:`http://www.w3.org/1999/xhtml`,a=r?n?`rect`:`g`:`div`,o=n===2?100:0,s=n===3?100:0,c={position:`absolute`,display:`block`,pointerEvents:`none`,margin:`0`,padding:`0`},l=us.createElementNS?us.createElementNS(i.replace(/^https/,`http`),a):us.createElement(a);return n&&(r?(hs||=e(t),l.setAttribute(`width`,.01),l.setAttribute(`height`,.01),l.setAttribute(`transform`,`translate(`+o+`,`+s+`)`),l.setAttribute(`fill`,`transparent`),hs.appendChild(l)):(ms||(ms=e(t),Object.assign(ms.style,c)),Object.assign(l.style,c,{width:`0.1px`,height:`0.1px`,top:s+`px`,left:o+`px`}),ms.appendChild(l))),l}throw`Need document and parent.`},As=function(e){for(var t=new Ps,n=0;n<e.numberOfItems;n++)t.multiply(e.getItem(n).matrix);return t},js=function(e){var t=e.getCTM(),n;return t||(n=e.style[vs],e.style[vs]=`none`,e.appendChild(_s),t=_s.getCTM(),e.removeChild(_s),n?e.style[vs]=n:e.style.removeProperty(vs.replace(/([A-Z])/g,`-$1`).toLowerCase())),t||gs.clone()},Ms=function(e,t){var n=Ds(e),r=e===n,i=n?Cs:ws,a=e.parentNode,o=a&&!n&&a.shadowRoot&&a.shadowRoot.appendChild?a.shadowRoot:a,s,c,l,u,d,f;if(e===ds)return e;if(i.length||i.push(ks(e,1),ks(e,2),ks(e,3)),s=n?hs:ms,n)r?(l=js(e),u=-l.e/l.a,d=-l.f/l.d,c=gs):e.getBBox?(l=e.getBBox(),c=e.transform?e.transform.baseVal:{},c=c.numberOfItems?c.numberOfItems>1?As(c):c.getItem(0).matrix:gs,u=c.a*l.x+c.c*l.y,d=c.b*l.x+c.d*l.y):(c=new Ps,u=d=0),t&&e.tagName.toLowerCase()===`g`&&(u=d=0),(r||!e.getBoundingClientRect().width?n:a).appendChild(s),s.setAttribute(`transform`,`matrix(`+c.a+`,`+c.b+`,`+c.c+`,`+c.d+`,`+(c.e+u)+`,`+(c.f+d)+`)`);else{if(u=d=0,bs)for(c=e.offsetParent,l=e;(l&&=l.parentNode)&&l!==c&&l.parentNode;)(ds.getComputedStyle(l)[vs]+``).length>4&&(u=l.offsetLeft,d=l.offsetTop,l=0);if(f=ds.getComputedStyle(e),f.position!==`absolute`&&f.position!==`fixed`)for(c=e.offsetParent;a&&a!==c;)u+=a.scrollLeft||0,d+=a.scrollTop||0,a=a.parentNode;l=s.style,l.top=e.offsetTop-d+`px`,l.left=e.offsetLeft-u+`px`,l[vs]=f[vs],l[ys]=f[ys],l.position=f.position===`fixed`?`fixed`:`absolute`,o.appendChild(s)}return s},Ns=function(e,t,n,r,i,a,o){return e.a=t,e.b=n,e.c=r,e.d=i,e.e=a,e.f=o,e},Ps=function(){function e(e,t,n,r,i,a){e===void 0&&(e=1),t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=1),i===void 0&&(i=0),a===void 0&&(a=0),Ns(this,e,t,n,r,i,a)}var t=e.prototype;return t.inverse=function(){var e=this.a,t=this.b,n=this.c,r=this.d,i=this.e,a=this.f,o=e*r-t*n||1e-10;return Ns(this,r/o,-t/o,-n/o,e/o,(n*a-r*i)/o,-(e*a-t*i)/o)},t.multiply=function(e){var t=this.a,n=this.b,r=this.c,i=this.d,a=this.e,o=this.f,s=e.a,c=e.c,l=e.b,u=e.d,d=e.e,f=e.f;return Ns(this,s*t+l*r,s*n+l*i,c*t+u*r,c*n+u*i,a+d*t+f*r,o+d*n+f*i)},t.clone=function(){return new e(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function(e){var t=this.a,n=this.b,r=this.c,i=this.d,a=this.e,o=this.f;return t===e.a&&n===e.b&&r===e.c&&i===e.d&&a===e.e&&o===e.f},t.apply=function(e,t){t===void 0&&(t={});var n=e.x,r=e.y,i=this.a,a=this.b,o=this.c,s=this.d,c=this.e,l=this.f;return t.x=n*i+r*o+c||0,t.y=n*a+r*s+l||0,t},e}();function Fs(e,t,n,r){if(!e||!e.parentNode||(us||xs(e)).documentElement===e)return new Ps;var i=Ss(e),a=Ds(e)?Cs:ws,o=Ms(e,n),s=a[0].getBoundingClientRect(),c=a[1].getBoundingClientRect(),l=a[2].getBoundingClientRect(),u=o.parentNode,d=!r&&Os(e),f=new Ps((c.left-s.left)/100,(c.top-s.top)/100,(l.left-s.left)/100,(l.top-s.top)/100,s.left+(d?0:Es()),s.top+(d?0:Ts()));if(u.removeChild(o),i)for(s=i.length;s--;)c=i[s],c.scaleX=c.scaleY=0,c.renderTransform(1,c);return t?f.inverse():f}var Is=1,Ls,Rs,zs,Bs,Vs,Hs,Us,Ws=function(e,t){return e.actions.forEach(function(e){return e.vars[t]&&e.vars[t](e)})},Gs={},Ks=180/Math.PI,qs=Math.PI/180,Js={},Ys={},Xs={},Zs=function(e){return typeof e==`string`?e.split(` `).join(``).split(`,`):e},Qs=Zs(`onStart,onUpdate,onComplete,onReverseComplete,onInterrupt`),$s=Zs(`transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight`),ec=function(e){return Ls(e)[0]||console.warn(`Element not found:`,e)},tc=function(e){return Math.round(e*1e4)/1e4||0},nc=function(e,t,n){return e.forEach(function(e){return e.classList[n](t)})},rc={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},ic={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},ac=function(e){return e.replace(/([A-Z])/g,`-$1`).toLowerCase()},oc=function(e,t){var n={},r;for(r in e)t[r]||(n[r]=e[r]);return n},sc={},cc=function(e){var t=sc[e]=Zs(e);return Xs[e]=t.concat($s),t},lc=function(e){var t=e._gsap||Rs.core.getCache(e);return t.gmCache===Rs.ticker.frame?t.gMatrix:(t.gmCache=Rs.ticker.frame,t.gMatrix=Fs(e,!0,!1,!0))},uc=function e(t,n,r){r===void 0&&(r=0);for(var i=t.parentNode,a=1e3*10**r*(n?-1:1),o=n?-a*900:0;t;)o+=a,t=t.previousSibling;return i?o+e(i,n,r+1):o},dc=function(e,t,n){return e.forEach(function(e){return e.d=uc(n?e.element:e.t,t)}),e.sort(function(e,t){return e.d-t.d}),e},fc=function(e,t){for(var n=e.element.style,r=e.css=e.css||[],i=t.length,a,o;i--;)a=t[i],o=n[a]||n.getPropertyValue(a),r.push(o?a:Ys[a]||(Ys[a]=ac(a)),o);return n},pc=function(e){var t=e.css,n=e.element.style,r=0;for(e.cache.uncache=1;r<t.length;r+=2)t[r+1]?n[t[r]]=t[r+1]:n.removeProperty(t[r]);!t[t.indexOf(`transform`)+1]&&n.translate&&(n.removeProperty(`translate`),n.removeProperty(`scale`),n.removeProperty(`rotate`))},mc=function(e,t){e.forEach(function(e){return e.a.cache.uncache=1}),t||e.finalStates.forEach(pc)},hc=`paddingTop,paddingRight,paddingBottom,paddingLeft,gridArea,transition`.split(`,`),gc=function(e,t,n){var r=e.element,i=e.width,a=e.height,o=e.uncache,s=e.getProp,c=r.style,l=4,u,d,f;if(typeof t!=`object`&&(t=e),zs&&n!==1)return zs._abs.push({t:r,b:e,a:e,sd:0}),zs._final.push(function(){return(e.cache.uncache=1)&&pc(e)}),r;for(d=s(`display`)===`none`,(!e.isVisible||d)&&(d&&(fc(e,[`display`]).display=t.display),e.matrix=t.matrix,e.width=i=e.width||t.width,e.height=a=e.height||t.height),fc(e,hc),f=window.getComputedStyle(r);l--;)c[hc[l]]=f[hc[l]];if(c.gridArea=`1 / 1 / 1 / 1`,c.transition=`none`,c.position=`absolute`,c.width=i+`px`,c.height=a+`px`,c.top||=`0px`,c.left||=`0px`,o)u=new zc(r);else if(u=oc(e,Js),u.position=`absolute`,e.simple){var p=r.getBoundingClientRect();u.matrix=new Ps(1,0,0,1,p.left+Es(),p.top+Ts())}else u.matrix=Fs(r,!1,!1,!0);return u=Ec(u,e,!0),e.x=Hs(u.x,.01),e.y=Hs(u.y,.01),r},_c=function(e,t){return t!==!0&&(t=Ls(t),e=e.filter(function(e){if(t.indexOf((e.sd<0?e.b:e.a).element)!==-1)return!0;e.t._gsap.renderTransform(1),e.b.isVisible&&(e.t.style.width=e.b.width+`px`,e.t.style.height=e.b.height+`px`)})),e},vc=function(e){return dc(e,!0).forEach(function(e){return(e.a.isVisible||e.b.isVisible)&&gc(e.sd<0?e.b:e.a,e.b,1)})},yc=function(e,t){return t&&e.idLookup[bc(t).id]||e.elementStates[0]},bc=function(e,t,n,r){return e instanceof zc?e:e instanceof Rc?yc(e,r):new zc(typeof e==`string`?ec(e)||console.warn(e+` not found`):e,t,n)},xc=function(e,t){for(var n=Rs.getProperty(e.element,null,`native`),r=e.props={},i=t.length;i--;)r[t[i]]=(n(t[i])+``).trim();return r.zIndex&&=parseFloat(r.zIndex)||0,e},Sc=function(e,t){var n=e.style||e,r;for(r in t)n[r]=t[r]},Cc=function(e){var t=e.getAttribute(`data-flip-id`);return t||e.setAttribute(`data-flip-id`,t=`auto-`+Is++),t},wc=function(e){return e.map(function(e){return e.element})},Tc=function(e,t,n){return e&&t.length&&n.add(e(wc(t),n,new Rc(t,0,!0)),0)},Ec=function(e,t,n,r,i,a){var o=e.element,s=e.cache,c=e.parent,l=e.x,u=e.y,d=t.width,f=t.height,p=t.scaleX,m=t.scaleY,h=t.rotation,g=t.bounds,_=a&&Us&&Us(o,`transform,width,height`),v=e,y=t.matrix,b=y.e,x=y.f,S=e.bounds.width!==g.width||e.bounds.height!==g.height||e.scaleX!==p||e.scaleY!==m||e.rotation!==h,C=!S&&e.simple&&t.simple&&!i,w,T,E,D,O,k,A;return C||!c?(p=m=1,h=w=0):(O=lc(c),k=O.clone().multiply(t.ctm?t.matrix.clone().multiply(t.ctm):t.matrix),h=tc(Math.atan2(k.b,k.a)*Ks),w=tc(Math.atan2(k.c,k.d)*Ks+h)%360,p=Math.sqrt(k.a**2+k.b**2),m=Math.sqrt(k.c**2+k.d**2)*Math.cos(w*qs),i&&(i=Ls(i)[0],D=Rs.getProperty(i),A=i.getBBox&&typeof i.getBBox==`function`&&i.getBBox(),v={scaleX:D(`scaleX`),scaleY:D(`scaleY`),width:A?A.width:Math.ceil(parseFloat(D(`width`,`px`))),height:A?A.height:parseFloat(D(`height`,`px`))}),s.rotation=h+`deg`,s.skewX=w+`deg`),n?(p*=d===v.width||!v.width?1:d/v.width,m*=f===v.height||!v.height?1:f/v.height,s.scaleX=p,s.scaleY=m):(d=Hs(d*p/v.scaleX,0),f=Hs(f*m/v.scaleY,0),o.style.width=d+`px`,o.style.height=f+`px`),r&&Sc(o,t.props),C||!c?(l+=b-e.matrix.e,u+=x-e.matrix.f):S||c!==t.parent?(s.x=l+`px`,s.y=u+`px`,s.renderTransform(1,s),k=Fs(i||o,!1,!1,!0),T=O.apply({x:k.e,y:k.f}),E=O.apply({x:b,y:x}),l+=E.x-T.x,u+=E.y-T.y):(O.e=O.f=0,E=O.apply({x:b-e.matrix.e,y:x-e.matrix.f}),l+=E.x,u+=E.y),l=Hs(l,.02),u=Hs(u,.02),a&&!(a instanceof zc)?_&&_.revert():(s.x=l+`px`,s.y=u+`px`,s.renderTransform(1,s)),a&&(a.x=l,a.y=u,a.rotation=h,a.skewX=w,n?(a.scaleX=p,a.scaleY=m):(a.width=d,a.height=f)),a||s},Dc=function(e,t){return e instanceof Rc?e:new Rc(e,t)},Oc=function(e,t,n){var r=e.idLookup[n],i=e.alt[n];return i.isVisible&&(!(t.getElementState(i.element)||i).isVisible||!r.isVisible)?i:r},kc=[],Ac=`width,height,overflowX,overflowY`.split(`,`),jc,Mc=function(e){if(e!==jc){var t=Vs.style,n=Vs.clientWidth===window.outerWidth,r=Vs.clientHeight===window.outerHeight,i=4;if(e&&(n||r)){for(;i--;)kc[i]=t[Ac[i]];n&&(t.width=Vs.clientWidth+`px`,t.overflowY=`hidden`),r&&(t.height=Vs.clientHeight+`px`,t.overflowX=`hidden`),jc=e}else if(jc){for(;i--;)kc[i]?t[Ac[i]]=kc[i]:t.removeProperty(ac(Ac[i]));jc=e}}},Nc=function(e,t){for(var n=0;n<e.length;n+=3)Rs.set(e[n],{clearProps:!0}),e[n].setAttribute(`style`,e[n+t]),e[n]._gsap.gmCache=-1},Pc=function(e,t,n,r){e instanceof Rc&&t instanceof Rc||console.warn(`Not a valid state object.`),n||={};var i=n,a=i.clearProps,o=i.onEnter,s=i.onLeave,c=i.absolute,l=i.absoluteOnLeave,u=i.custom,d=i.delay,f=i.paused,p=i.repeat,m=i.repeatDelay,h=i.yoyo,g=i.toggleClass,_=i.nested,v=i.zIndex,y=i.scale,b=i.fade,x=i.stagger,S=i.spin,C=i.prune,w=(`props`in n?n:e).props,T=oc(n,rc),E=Rs.timeline({delay:d,paused:f,repeat:p,repeatDelay:m,yoyo:h,data:`isFlip`}),D=T,O=[],k=[],A=[],j=[],M=S===!0?1:S||0,ee=typeof S==`function`?S:function(){return M},te=e.interrupted||t.interrupted,ne=E[r===1?`from`:`to`],re,N,ie,P,F,I,ae,oe,se,ce,le,ue,de,fe;for(N in t.idLookup)le=t.alt[N]?Oc(t,e,N):t.idLookup[N],F=le.element,ce=e.idLookup[N],e.alt[N]&&F===ce.element&&(e.alt[N].isVisible||!le.isVisible)&&(ce=e.alt[N]),ce?(I={t:F,b:ce,a:le,sd:ce.element===F?0:le.isVisible?1:-1},A.push(I),I.sd&&(I.sd<0&&(I.b=le,I.a=ce),te&&fc(I.b,w?Xs[w]:$s),b&&A.push(I.swap={t:ce.element,b:I.b,a:I.a,sd:-I.sd,swap:I})),F._flip=ce.element._flip=zs?zs.timeline:E):le.isVisible&&(A.push({t:F,b:oc(le,{isVisible:1}),a:le,sd:0,entering:1}),F._flip=zs?zs.timeline:E);if(w&&(sc[w]||cc(w)).forEach(function(e){return T[e]=function(t){return A[t].a.props[e]}}),A.finalStates=se=[],ue=function(){dc(A),Mc(!0);var t=[];for(P=0;P<A.length;P++)I=A[P],de=I.a,fe=I.b,C&&!de.isDifferent(fe)&&!I.entering?A.splice(P--,1):(F=I.t,_&&!(I.sd<0)&&P&&(de=I.a=de.clone({matrix:Fs(F,!1,!1,!0)})),fe.isVisible&&de.isVisible?(I.sd<0?(_&&Nc(t,1),ae=new zc(F,w,e.simple),Ec(ae,de,y,0,0,ae),ae.matrix=Fs(F,!1,!1,!0),ae.bounds=F.getBoundingClientRect(),ae.css=I.b.css,I.a=de=ae,b&&(F.style.opacity=te?fe.opacity:de.opacity),x&&j.push(F),_&&(Nc(t,2),t.push(F,F.getAttribute(`style`)))):I.sd>0&&b&&(F.style.opacity=te?de.opacity-fe.opacity:`0`),Ec(de,fe,y,w),_&&I.sd<0&&t.push(F.getAttribute(`style`))):fe.isVisible!==de.isVisible&&(fe.isVisible?de.isVisible||(fe.css=de.css,k.push(fe),A.splice(P--,1),c&&_&&Ec(de,fe,y,w)):(de.isVisible&&O.push(de),A.splice(P--,1))),y||(F.style.maxWidth=Math.max(de.width,fe.width)+`px`,F.style.maxHeight=Math.max(de.height,fe.height)+`px`,F.style.minWidth=Math.min(de.width,fe.width)+`px`,F.style.minHeight=Math.min(de.height,fe.height)+`px`),_&&g&&F.classList.add(g)),se.push(de);var r;if(g&&(r=se.map(function(e){return e.element}),_&&r.forEach(function(e){return e.classList.remove(g)})),Mc(!1),y?(T.scaleX=function(e){return A[e].a.scaleX},T.scaleY=function(e){return A[e].a.scaleY}):(T.width=function(e){return A[e].a.width+`px`},T.height=function(e){return A[e].a.height+`px`},T.autoRound=n.autoRound||!1),T.x=function(e){return A[e].a.x+`px`},T.y=function(e){return A[e].a.y+`px`},T.rotation=function(e){return A[e].a.rotation+(S?ee(e,oe[e],oe)*360:0)},T.skewX=function(e){return A[e].a.skewX},oe=A.map(function(e){return e.t}),(v||v===0)&&(T.modifiers={zIndex:function(){return v}},T.zIndex=v,T.immediateRender=n.immediateRender!==!1),b&&(T.opacity=function(e){return A[e].sd<0?0:A[e].sd>0?A[e].a.opacity:`+=0`}),j.length){x=Rs.utils.distribute(x);var i=oe.slice(j.length);T.stagger=function(e,t){return x(~j.indexOf(t)?oe.indexOf(A[e].swap.t):e,t,i)}}if(Qs.forEach(function(e){return n[e]&&E.eventCallback(e,n[e],n[e+`Params`])}),u&&oe.length)for(N in D=oc(T,rc),`scale`in u&&(u.scaleX=u.scaleY=u.scale,delete u.scale),u)re=oc(u[N],ic),re[N]=T[N],!(`duration`in re)&&`duration`in T&&(re.duration=T.duration),re.stagger=T.stagger,ne.call(E,oe,re,0),delete D[N];(oe.length||k.length||O.length)&&(g&&E.add(function(){return nc(r,g,E._zTime<0?`remove`:`add`)},0)&&!f&&nc(r,g,`add`),oe.length&&ne.call(E,oe,D,0)),Tc(o,O,E),Tc(s,k,E);var l=zs&&zs.timeline;l&&(l.add(E,0),zs._final.push(function(){return mc(A,!a)})),ie=E.duration(),E.call(function(){var e=E.time()>=ie;e&&!l&&mc(A,!a),g&&nc(r,g,e?`remove`:`add`)})},l&&(c=A.filter(function(e){return!e.sd&&!e.a.isVisible&&e.b.isVisible}).map(function(e){return e.a.element})),zs){var pe;c&&(pe=zs._abs).push.apply(pe,_c(A,c)),zs._run.push(ue)}else c&&vc(_c(A,c)),ue();var me=zs?zs.timeline:E;return me.revert=function(){return Ic(me,1,1)},me},Fc=function e(t){t.vars.onInterrupt&&t.vars.onInterrupt.apply(t,t.vars.onInterruptParams||[]),t.getChildren(!0,!1,!0).forEach(e)},Ic=function(e,t,n){if(e&&e.progress()<1&&(!e.paused()||n))return t&&(Fc(e),t<2&&e.progress(1),e.kill()),!0},Lc=function(e){for(var t=e.idLookup={},n=e.alt={},r=e.elementStates,i=r.length,a;i--;)a=r[i],t[a.id]?n[a.id]=a:t[a.id]=a},Rc=function(){function e(e,t,n){if(this.props=t&&t.props,this.simple=!!(t&&t.simple),n)this.targets=wc(e),this.elementStates=e,Lc(this);else{this.targets=Ls(e);var r=t&&(t.kill===!1||t.batch&&!t.kill);zs&&!r&&zs._kill.push(this),this.update(r||!!zs)}}var t=e.prototype;return t.update=function(e){var t=this;return this.elementStates=this.targets.map(function(e){return new zc(e,t.props,t.simple)}),Lc(this),this.interrupt(e),this.recordInlineStyles(),this},t.clear=function(){return this.targets.length=this.elementStates.length=0,Lc(this),this},t.fit=function(e,t,n){for(var r=dc(this.elementStates.slice(0),!1,!0),i=(e||this).idLookup,a=0,o,s;a<r.length;a++)o=r[a],n&&(o.matrix=Fs(o.element,!1,!1,!0)),s=i[o.id],s&&Ec(o,s,t,!0,0,o),o.matrix=Fs(o.element,!1,!1,!0);return this},t.getProperty=function(e,t){var n=this.getElementState(e)||Js;return(t in n?n:n.props||Js)[t]},t.add=function(e){for(var t=e.targets.length,n=this.idLookup,r=this.alt,i,a,o;t--;)a=e.elementStates[t],o=n[a.id],o&&(a.element===o.element||r[a.id]&&r[a.id].element===a.element)?(i=this.elementStates.indexOf(a.element===o.element?o:r[a.id]),this.targets.splice(i,1,e.targets[t]),this.elementStates.splice(i,1,a)):(this.targets.push(e.targets[t]),this.elementStates.push(a));return e.interrupted&&(this.interrupted=!0),e.simple||(this.simple=!1),Lc(this),this},t.compare=function(e){var t=e.idLookup,n=this.idLookup,r=[],i=[],a=[],o=[],s=[],c=e.alt,l=this.alt,u=function(e,t,n){return(e.isVisible===t.isVisible?e.isVisible?i:r:e.isVisible?a:o).push(n)&&s.push(n)},d=function(e,t,n){return s.indexOf(n)<0&&u(e,t,n)},f,p,m,h,g,_,v,y;for(m in t)g=c[m],_=l[m],f=g?Oc(e,this,m):t[m],h=f.element,p=n[m],_?(y=p.isVisible||!_.isVisible&&h===p.element?p:_,v=g&&!f.isVisible&&!g.isVisible&&y.element===g.element?g:f,v.isVisible&&y.isVisible&&v.element!==y.element?((v.isDifferent(y)?i:r).push(v.element,y.element),s.push(v.element,y.element)):u(v,y,v.element),g&&v.element===g.element&&(g=t[m]),d(v.element!==p.element&&g?g:v,p,p.element),d(g&&g.element===_.element?g:v,_,_.element),g&&d(g,_.element===g.element?_:p,g.element)):(p?p.isDifferent(f)?u(f,p,h):r.push(h):a.push(h),g&&d(g,p,g.element));for(m in n)t[m]||(o.push(n[m].element),l[m]&&o.push(l[m].element));return{changed:i,unchanged:r,enter:a,leave:o}},t.recordInlineStyles=function(){for(var e=Xs[this.props]||$s,t=this.elementStates.length;t--;)fc(this.elementStates[t],e)},t.interrupt=function(e){var t=this,n=[];this.targets.forEach(function(r){var i=r._flip,a=Ic(i,+!e);e&&a&&n.indexOf(i)<0&&i.add(function(){return t.updateVisibility()}),a&&n.push(i)}),!e&&n.length&&this.updateVisibility(),this.interrupted||=!!n.length},t.updateVisibility=function(){this.elementStates.forEach(function(e){var t=e.element.getBoundingClientRect();e.isVisible=!!(t.width||t.height||t.top||t.left),e.uncache=1})},t.getElementState=function(e){return this.elementStates[this.targets.indexOf(ec(e))]},t.makeAbsolute=function(){return dc(this.elementStates.slice(0),!0,!0).map(gc)},e}(),zc=function(){function e(t,n,r){t instanceof e?Object.assign(this,t,n||{}):(this.element=t,this.update(n,r))}var t=e.prototype;return t.isDifferent=function(e){var t=this.bounds,n=e.bounds;return t.top!==n.top||t.left!==n.left||t.width!==n.width||t.height!==n.height||!this.matrix.equals(e.matrix)||this.opacity!==e.opacity||this.props&&e.props&&JSON.stringify(this.props)!==JSON.stringify(e.props)},t.clone=function(t){return new e(this,t)},t.update=function(e,t){var n=this,r=n.element,i=Rs.getProperty(r),a=Rs.core.getCache(r),o=r.getBoundingClientRect(),s=r.getBBox&&typeof r.getBBox==`function`&&r.nodeName.toLowerCase()!==`svg`&&r.getBBox(),c=t?new Ps(1,0,0,1,o.left+Es(),o.top+Ts()):Fs(r,!1,!1,!0);a.uncache=1,n.getProp=i,n.element=r,n.id=Cc(r),n.matrix=c,n.cache=a,n.bounds=o,n.isVisible=!!(o.width||o.height||o.left||o.top),n.display=i(`display`),n.position=i(`position`),n.parent=r.parentNode,n.x=i(`x`,`px`),n.y=i(`y`,`px`),n.scaleX=a.scaleX,n.scaleY=a.scaleY,n.rotation=i(`rotation`),n.skewX=i(`skewX`),n.opacity=i(`opacity`),n.width=s?s.width:Hs(i(`width`,`px`),.04),n.height=s?s.height:Hs(i(`height`,`px`),.04),e&&xc(n,sc[e]||cc(e)),n.ctm=r.getCTM&&r.nodeName.toLowerCase()===`svg`&&js(r).inverse(),n.simple=t||tc(c.a)===1&&!tc(c.b)&&!tc(c.c)&&tc(c.d)===1,n.uncache=0},e}(),Bc=function(){function e(e,t){this.vars=e,this.batch=t,this.states=[],this.timeline=t.timeline}var t=e.prototype;return t.getStateById=function(e){for(var t=this.states.length;t--;)if(this.states[t].idLookup[e])return this.states[t]},t.kill=function(){this.batch.remove(this)},e}(),Vc=function(){function e(e){this.id=e,this.actions=[],this._kill=[],this._final=[],this._abs=[],this._run=[],this.data={},this.state=new Rc,this.timeline=Rs.timeline()}var t=e.prototype;return t.add=function(e){var t=this.actions.filter(function(t){return t.vars===e});return t.length?t[0]:(t=new Bc(typeof e==`function`?{animate:e}:e,this),this.actions.push(t),t)},t.remove=function(e){var t=this.actions.indexOf(e);return t>=0&&this.actions.splice(t,1),this},t.getState=function(e){var t=this,n=zs,r=Bs;return zs=this,this.state.clear(),this._kill.length=0,this.actions.forEach(function(n){n.vars.getState&&(n.states.length=0,Bs=n,n.state=n.vars.getState(n)),e&&n.states.forEach(function(e){return t.state.add(e)})}),Bs=r,zs=n,this.killConflicts(),this},t.animate=function(){var e=this,t=zs,n=this.timeline,r=this.actions.length,i,a;for(zs=this,n.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(function(e){e.vars.animate&&e.vars.animate(e);var t=e.vars.onEnter,n=e.vars.onLeave,r=e.targets,i,a;r&&r.length&&(t||n)&&(i=new Rc,e.states.forEach(function(e){return i.add(e)}),a=i.compare(Hc.getState(r)),a.enter.length&&t&&t(a.enter),a.leave.length&&n&&n(a.leave))}),vc(this._abs),this._run.forEach(function(e){return e()}),a=n.duration(),i=this._final.slice(0),n.add(function(){a<=n.time()&&(i.forEach(function(e){return e()}),Ws(e,`onComplete`))}),zs=t;r--;)this.actions[r].vars.once&&this.actions[r].kill();return Ws(this,`onStart`),n.restart(),this},t.loadState=function(e){e||=function(){return 0};var t=[];return this.actions.forEach(function(n){if(n.vars.loadState){var r,i=function i(a){a&&(n.targets=a),r=t.indexOf(i),~r&&(t.splice(r,1),t.length||e())};t.push(i),n.vars.loadState(i)}}),t.length||e(),this},t.setState=function(){return this.actions.forEach(function(e){return e.targets=e.vars.setState&&e.vars.setState(e)}),this},t.killConflicts=function(e){return this.state.interrupt(e),this._kill.forEach(function(t){return t.interrupt(e)}),this},t.run=function(e,t){var n=this;return this!==zs&&(e||this.getState(t),this.loadState(function(){n._killed||(n.setState(),n.animate())})),this},t.clear=function(e){this.state.clear(),e||(this.actions.length=0)},t.getStateById=function(e){for(var t=this.actions.length,n;t--;)if(n=this.actions[t].getStateById(e),n)return n;return this.state.idLookup[e]&&this.state},t.kill=function(){this._killed=1,this.clear(),delete Gs[this.id]},e}(),Hc=function(){function e(){}return e.getState=function(t,n){var r=Dc(t,n);return Bs&&Bs.states.push(r),n&&n.batch&&e.batch(n.batch).state.add(r),r},e.from=function(e,t){return t||={},`clearProps`in t||(t.clearProps=!0),Pc(e,Dc(t.targets||e.targets,{props:t.props||e.props,simple:t.simple,kill:!!t.kill}),t,-1)},e.to=function(e,t){return Pc(e,Dc(t.targets||e.targets,{props:t.props||e.props,simple:t.simple,kill:!!t.kill}),t,1)},e.fromTo=function(e,t,n){return Pc(e,t,n)},e.fit=function(e,t,n){var r=n?oc(n,ic):{},i=n||r,a=i.absolute,o=i.scale,s=i.getVars,c=i.props,l=i.runBackwards,u=i.onComplete,d=i.simple,f=n&&n.fitChild&&ec(n.fitChild),p=bc(t,c,d,e),m=bc(e,0,d,p),h=c?Xs[c]:$s,g=Rs.context();return c&&Sc(r,p.props),fc(m,h),l&&(`immediateRender`in r||(r.immediateRender=!0),r.onComplete=function(){pc(m),u&&u.apply(this,arguments)}),a&&gc(m,p),r=Ec(m,p,o||f,!r.duration&&c,f,r.duration||s?r:0),typeof n==`object`&&`zIndex`in n&&(r.zIndex=n.zIndex),g&&!s&&g.add(function(){return function(){return pc(m)}}),s?r:r.duration?Rs.to(m.element,r):null},e.makeAbsolute=function(e,t){return(e instanceof Rc?e:new Rc(e,t)).makeAbsolute()},e.batch=function(e){return e||=`default`,Gs[e]||(Gs[e]=new Vc(e))},e.killFlipsOf=function(e,t){(e instanceof Rc?e.targets:Ls(e)).forEach(function(e){return e&&Ic(e._flip,t===!1?2:1)})},e.isFlipping=function(t){var n=e.getByTarget(t);return!!n&&n.isActive()},e.getByTarget=function(e){return(ec(e)||Js)._flip},e.getElementState=function(e,t){return new zc(ec(e),t)},e.convertCoordinates=function(e,t,n){var r=Fs(t,!0,!0).multiply(Fs(e));return n?r.apply(n):r},e.register=function(e){if(Vs=typeof document<`u`&&document.body,Vs){Rs=e,xs(Vs),Ls=Rs.utils.toArray,Us=Rs.core.getStyleSaver;var t=Rs.utils.snap(.1);Hs=function(e,n){return t(parseFloat(e)+n)}}},e}();Hc.version=`3.15.0`,typeof window<`u`&&window.gsap&&window.gsap.registerPlugin(Hc);var Uc=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,Wc=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,Gc=Math.PI/180;180/Math.PI;var Kc=Math.sin,qc=Math.cos,Jc=Math.abs,Yc=Math.sqrt,Xc=function(e){return typeof e==`number`},Zc=1e5,Qc=function(e){return Math.round(e*Zc)/Zc||0},$c=function(e){return e.closed=Math.abs(e[0]-e[e.length-2])<.001&&Math.abs(e[1]-e[e.length-1])<.001};function el(e,t,n,r,i,a,o){for(var s=e.length,c,l,u,d,f;--s>-1;)for(c=e[s],l=c.length,u=0;u<l;u+=2)d=c[u],f=c[u+1],c[u]=d*t+f*r+a,c[u+1]=d*n+f*i+o;return e._dirty=1,e}function tl(e,t,n,r,i,a,o,s,c){if(e!==s||t!==c){n=Jc(n),r=Jc(r);var l=i%360*Gc,u=qc(l),d=Kc(l),f=Math.PI,p=f*2,m=(e-s)/2,h=(t-c)/2,g=u*m+d*h,_=-d*m+u*h,v=g*g,y=_*_,b=v/(n*n)+y/(r*r);b>1&&(n=Yc(b)*n,r=Yc(b)*r);var x=n*n,S=r*r,C=(x*S-x*y-S*v)/(x*y+S*v);C<0&&(C=0);var w=(a===o?-1:1)*Yc(C),T=w*(n*_/r),E=w*-(r*g/n),D=(e+s)/2,O=(t+c)/2,k=D+(u*T-d*E),A=O+(d*T+u*E),j=(g-T)/n,M=(_-E)/r,ee=(-g-T)/n,te=(-_-E)/r,ne=j*j+M*M,re=(M<0?-1:1)*Math.acos(j/Yc(ne)),N=(j*te-M*ee<0?-1:1)*Math.acos((j*ee+M*te)/Yc(ne*(ee*ee+te*te)));isNaN(N)&&(N=f),!o&&N>0?N-=p:o&&N<0&&(N+=p),re%=p,N%=p;var ie=Math.ceil(Jc(N)/(p/4)),P=[],F=N/ie,I=4/3*Kc(F/2)/(1+qc(F/2)),ae=u*n,oe=d*n,se=d*-r,ce=u*r,le;for(le=0;le<ie;le++)i=re+le*F,g=qc(i),_=Kc(i),j=qc(i+=F),M=Kc(i),P.push(g-I*_,_+I*g,j+I*M,M-I*j,j,M);for(le=0;le<P.length;le+=2)g=P[le],_=P[le+1],P[le]=g*ae+_*se+k,P[le+1]=g*oe+_*ce+A;return P[le-2]=s,P[le-1]=c,P}}function nl(e){var t=(e+``).replace(Wc,function(e){var t=+e;return t<1e-4&&t>-1e-4?0:t}).match(Uc)||[],n=[],r=0,i=0,a=2/3,o=t.length,s=0,c=`ERROR: malformed path: `+e,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w=function(e,t,n,r){v=(n-e)/3,y=(r-t)/3,h.push(e+v,t+y,n-v,r-y,n,r)};if(!e||!isNaN(t[0])||isNaN(t[1]))return console.log(c),n;for(l=0;l<o;l++)if(x=p,isNaN(t[l])?(p=t[l].toUpperCase(),m=p!==t[l]):l--,d=+t[l+1],f=+t[l+2],m&&(d+=r,f+=i),l||(g=d,_=f),p===`M`)h&&(h.length<8?--n.length:s+=h.length,$c(h)),r=g=d,i=_=f,h=[d,f],n.push(h),l+=2,p=`L`;else if(p===`C`)h||=[0,0],m||(r=i=0),h.push(d,f,r+t[l+3]*1,i+t[l+4]*1,r+=t[l+5]*1,i+=t[l+6]*1),l+=6;else if(p===`S`)v=r,y=i,(x===`C`||x===`S`)&&(v+=r-h[h.length-4],y+=i-h[h.length-3]),m||(r=i=0),h.push(v,y,d,f,r+=t[l+3]*1,i+=t[l+4]*1),l+=4;else if(p===`Q`)v=r+(d-r)*a,y=i+(f-i)*a,m||(r=i=0),r+=t[l+3]*1,i+=t[l+4]*1,h.push(v,y,r+(d-r)*a,i+(f-i)*a,r,i),l+=4;else if(p===`T`)v=r-h[h.length-4],y=i-h[h.length-3],h.push(r+v,i+y,d+(r+v*1.5-d)*a,f+(i+y*1.5-f)*a,r=d,i=f),l+=2;else if(p===`H`)w(r,i,r=d,i),l+=1;else if(p===`V`)w(r,i,r,i=d+(m?i-r:0)),l+=1;else if(p===`L`||p===`Z`)p===`Z`&&(d=g,f=_,h.closed=!0),(p===`L`||Jc(r-d)>.5||Jc(i-f)>.5)&&(w(r,i,d,f),p===`L`&&(l+=2)),r=d,i=f;else if(p===`A`){if(S=t[l+4],C=t[l+5],v=t[l+6],y=t[l+7],u=7,S.length>1&&(S.length<3?(y=v,v=C,u--):(y=C,v=S.substr(2),u-=2),C=S.charAt(1),S=S.charAt(0)),b=tl(r,i,+t[l+1],+t[l+2],+t[l+3],+S,+C,(m?r:0)+v*1,(m?i:0)+y*1),l+=u,b)for(u=0;u<b.length;u++)h.push(b[u]);r=h[h.length-2],i=h[h.length-1]}else console.log(c);return l=h.length,l<6?(n.pop(),l=0):$c(h),n.totalPoints=s+l,n}function rl(e){Xc(e[0])&&(e=[e]);var t=``,n=e.length,r,i,a,o;for(i=0;i<n;i++){for(o=e[i],t+=`M`+Qc(o[0])+`,`+Qc(o[1])+` C`,r=o.length,a=2;a<r;a++)t+=Qc(o[a++])+`,`+Qc(o[a++])+` `+Qc(o[a++])+`,`+Qc(o[a++])+` `+Qc(o[a++])+`,`+Qc(o[a])+` `;o.closed&&(t+=`z`)}return t}var il,al,ol=function(){return il||typeof window<`u`&&(il=window.gsap)&&il.registerPlugin&&il},sl=function(){il=ol(),il?(il.registerEase(`_CE`,gl.create),al=1):console.warn(`Please gsap.registerPlugin(CustomEase)`)},cl=0x56bc75e2d63100000,ll=function(e){return~~(e*1e3+(e<0?-.5:.5))/1e3},ul=1,dl=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,fl=/[cLlsSaAhHvVtTqQ]/g,pl=function(e){var t=e.length,n=cl,r;for(r=1;r<t;r+=6)+e[r]<n&&(n=+e[r]);return n},ml=function(e,t,n){!n&&n!==0&&(n=Math.max(+e[e.length-1],+e[1]));var r=e[0]*-1,i=-n,a=e.length,o=1/(+e[a-2]+r),s=-t||(Math.abs(e[a-1]-+e[1])<.01*(e[a-2]-+e[0])?pl(e)+i:+e[a-1]+i),c;for(s=s?1/s:-o,c=0;c<a;c+=2)e[c]=(+e[c]+r)*o,e[c+1]=(+e[c+1]+i)*s},hl=function e(t,n,r,i,a,o,s,c,l,u,d){var f=(t+r)/2,p=(n+i)/2,m=(r+a)/2,h=(i+o)/2,g=(a+s)/2,_=(o+c)/2,v=(f+m)/2,y=(p+h)/2,b=(m+g)/2,x=(h+_)/2,S=(v+b)/2,C=(y+x)/2,w=s-t,T=c-n,E=Math.abs((r-s)*T-(i-c)*w),D=Math.abs((a-s)*T-(o-c)*w),O;return u||(u=[{x:t,y:n},{x:s,y:c}],d=1),u.splice(d||u.length-1,0,{x:S,y:C}),(E+D)*(E+D)>l*(w*w+T*T)&&(O=u.length,e(t,n,f,p,v,y,S,C,l,u,d),e(S,C,b,x,g,_,s,c,l,u,d+1+(u.length-O))),u},gl=function(){function e(e,t,n){al||sl(),this.id=e,ul&&this.setData(t,n)}var t=e.prototype;return t.setData=function(e,t){t||={},e||=`0,0,1,1`;var n=e.match(dl),r=1,i=[],a=[],o=t.precision||1,s=o<=1,c,l,u,d,f,p,m,h,g;if(this.data=e,(fl.test(e)||~e.indexOf(`M`)&&e.indexOf(`C`)<0)&&(n=nl(e)[0]),c=n.length,c===4)n.unshift(0,0),n.push(1,1),c=8;else if((c-2)%6)throw`Invalid CustomEase`;for((+n[0]!=0||+n[c-2]!=1)&&ml(n,t.height,t.originY),this.segment=n,d=2;d<c;d+=6)l={x:+n[d-2],y:+n[d-1]},u={x:+n[d+4],y:+n[d+5]},i.push(l,u),hl(l.x,l.y,+n[d],+n[d+1],+n[d+2],+n[d+3],u.x,u.y,1/(o*2e5),i,i.length-1);for(c=i.length,d=0;d<c;d++)m=i[d],h=i[d-1]||m,(m.x>h.x||h.y!==m.y&&h.x===m.x||m===h)&&m.x<=1?(h.cx=m.x-h.x,h.cy=m.y-h.y,h.n=m,h.nx=m.x,s&&d>1&&Math.abs(h.cy/h.cx-i[d-2].cy/i[d-2].cx)>2&&(s=0),h.cx<r&&(h.cx?r=h.cx:(h.cx=.001,d===c-1&&(h.x-=.001,r=Math.min(r,.001),s=0)))):(i.splice(d--,1),c--);if(c=1/r+1|0,f=1/c,p=0,m=i[0],s){for(d=0;d<c;d++)g=d*f,m.nx<g&&(m=i[++p]),l=m.y+(g-m.x)/m.cx*m.cy,a[d]={x:g,cx:f,y:l,cy:0,nx:9},d&&(a[d-1].cy=l-a[d-1].y);p=i[i.length-1],a[c-1].cy=p.y-l,a[c-1].cx=p.x-a[a.length-1].x}else{for(d=0;d<c;d++)m.nx<d*f&&(m=i[++p]),a[d]=m;p<i.length-1&&(a[d-1]=i[i.length-2])}return this.ease=function(e){var t=a[e*c|0]||a[c-1];return t.nx<e&&(t=t.n),t.y+(e-t.x)/t.cx*t.cy},this.ease.custom=this,this.id&&il&&il.registerEase(this.id,this.ease),this},t.getSVGData=function(t){return e.getSVGData(this,t)},e.create=function(t,n,r){return new e(t,n,r).ease},e.register=function(e){il=e,sl()},e.get=function(e){return il.parseEase(e)},e.getSVGData=function(t,n){n||={};var r=n.width||100,i=n.height||100,a=n.x||0,o=(n.y||0)+i,s=il.utils.toArray(n.path)[0],c,l,u,d,f,p,m,h,g,_;if(n.invert&&(i=-i,o=0),typeof t==`string`&&(t=il.parseEase(t)),t.custom&&(t=t.custom),t instanceof e)c=rl(el([t.segment.slice(0)],r,0,0,-i,a,o));else{for(c=[a,o],m=Math.max(5,(n.precision||1)*200),d=1/m,m+=2,h=5/m,g=ll(a+d*r),_=ll(o+t(d)*-i),l=(_-o)/(g-a),u=2;u<m;u++)f=ll(a+u*d*r),p=ll(o+t(u*d)*-i),(Math.abs((p-_)/(f-g)-l)>h||u===m-1)&&(c.push(g,_),l=(p-_)/(f-g)),g=f,_=p;c=`M`+c.join(`,`)}return s&&s.setAttribute(`d`,c),c},e}();gl.version=`3.15.0`,gl.headless=!0,ol()&&il.registerPlugin(gl);var _l;$.registerPlugin(Hc,gl),gl.create(`morph-open`,`0.15, 0.85, 0.2, 1`),gl.create(`morph-close`,`0.4, 0, 0.2, 1`);var vl={fromAttribute:e=>e!==`false`&&e!==null,toAttribute:e=>e?``:null},yl=class extends U{static{_l=this}constructor(...e){super(...e),this.target=``,this.open=!1,this.modal=!0,this.placement=`center`,this.expandedWidth=`22rem`,this.expandedHeight=`18rem`,this.closeOnClickOutside=!0,this.closeOnEsc=!0,this.showCloseButton=!1,this.morphLabel=!1,this.morphLabelSelector=``,this.hasBackdrop=!0,this.hideTarget=!1,this.coverTarget=!1,this.autoSize=!1,this.blurContent=!1,this.debug=!1,this._hasHeader=!1,this._hasFooter=!1,this._hasTriggerLabel=!1,this._targetEl=null,this._isAnimating=!1,this._visible=!1,this._handlingOpenChange=!1,this._zIndex=100,this._morphEls={text:null,icon:null},this._targetSnapshot=null,this._originFallbacks=[],this._targetStylesCache=new Map,this._onTargetClick=()=>this.show(),this._onDocKeydown=e=>this._handleDocKeydown(e),this._onDocClick=e=>{!this.open||!this._visible||!this.closeOnClickOutside||e.composedPath().includes(this._panel)||this._targetEl&&e.composedPath().includes(this._targetEl)||this.hide()}}static{this._openStack=[]}connectedCallback(){super.connectedCallback(),this._resolveTarget(),document.addEventListener(`keydown`,this._onDocKeydown),document.addEventListener(`click`,this._onDocClick)}disconnectedCallback(){document.removeEventListener(`keydown`,this._onDocKeydown),document.removeEventListener(`click`,this._onDocClick),this._targetEl&&this._targetEl.removeEventListener(`click`,this._onTargetClick);let e=_l._openStack.indexOf(this);e>-1&&_l._openStack.splice(e,1),this.style.removeProperty(`z-index`),this.style.removeProperty(`--_z-index`),this.style.removeProperty(`--_backdrop-duration`),this.style.removeProperty(`--_backdrop-ease`),this._cleanupMorphElements(),this._restoreTargetContent(),super.disconnectedCallback()}updated(e){super.updated(e),e.has(`target`)&&this._resolveTarget(),e.has(`open`)&&!this._handlingOpenChange&&(this.open?this.show():this.hide())}_resolveTarget(){if(!this.target)return;let e=document.querySelector(this.target);e&&(this._targetEl&&this._targetEl!==e&&this._targetEl.removeEventListener(`click`,this._onTargetClick),this._targetEl=e,this._targetEl.addEventListener(`click`,this._onTargetClick))}show(){if(!(this._isAnimating||this._visible)){if(this._targetEl||this._resolveTarget(),!this._targetEl){console.warn(`[moni-morph-modal] cannot show: target not found`);return}this._captureOriginFallbacks(this._targetEl),this._isAnimating=!0,this._handlingOpenChange=!0,this.open=!0,this._handlingOpenChange=!1,_l._openStack.push(this),this._zIndex=1e3+_l._openStack.length,this.style.zIndex=String(this._zIndex),this.style.setProperty(`--_z-index`,String(this._zIndex)),this.style.setProperty(`--_backdrop-duration`,`0.38s`),this.style.setProperty(`--_backdrop-ease`,`cubic-bezier(0.15, 0.85, 0.2, 1)`),this._backdrop&&$.set(this._backdrop,{clearProps:`opacity,transition`}),this._hideTargetContent(),this.updateComplete.then(async()=>{if(!this._targetEl||!this._panel||!this._inner){this._isAnimating=!1;return}this._panel.classList.add(`is-animating`),await new Promise(e=>requestAnimationFrame(e));let e=this._getTargetState(this._targetEl);this._debugMorph(`open`,this._targetEl,`target`,[this._targetEl]);let t=this._panel;this._applyRect(t,this._toPanelCoordinateRect(e.rect)),t.style.backgroundColor=e.backgroundColor,t.style.color=e.color,t.style.borderRadius=e.borderRadius,t.style.boxShadow=e.boxShadow,t.style.zIndex=String(this._zIndex),t.style.visibility=`visible`,t.style.opacity=`1`,t.style.pointerEvents=`auto`,this._backdrop&&(this._backdrop.style.zIndex=String(this._zIndex-1)),this._cleanupMorphElements();let n=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,r=this._shouldMorphLabel()&&!n,i=[],a=null,o=this.shadowRoot.querySelector(`.header-morph-wrapper`);if(r){if(this._animateLabelOpen(),a=this._resolveMorphSource(),a.text){let e=this._createMorphText(a.text.content,a.text.sourceEl);this._positionElement(e,a.text.rect),i.push(e)}if(a.icon){let e=this._createMorphIcon(a.icon.element);this._positionElement(e,a.icon.rect),i.push(e)}i.length===0&&(r=!1)}r&&o&&(o.style.opacity=`0`);let s=Hc.getState(t,{props:`backgroundColor,borderRadius,color,boxShadow`}),c=Hc.getState(i,{props:`color,fontSize,fontWeight,lineHeight`}),l;if(this.autoSize){let e=t.style.getPropertyValue(`--_panel-width`),n=t.style.getPropertyValue(`--_panel-height`),r=t.style.width,i=t.style.height;t.style.width=`auto`,t.style.height=`auto`,t.style.setProperty(`--_panel-width`,`max-content`),t.style.setProperty(`--_panel-height`,`max-content`);let a=this.shadowRoot.querySelector(`.body`),o=a?a.style.overflow:``;a&&(a.style.overflow=`visible`),l={width:this._inner.scrollWidth,height:this._inner.scrollHeight},t.style.setProperty(`--_panel-width`,e),t.style.setProperty(`--_panel-height`,n),t.style.width=r,t.style.height=i,a&&(a.style.overflow=o)}let u=this._computeFinalRect(e.rect,l);if(t.style.setProperty(`--_panel-width`,`${u.width}px`),t.style.setProperty(`--_panel-height`,`${u.height}px`),this._applyRect(t,u),t.style.backgroundColor=``,t.style.color=``,t.style.borderRadius=``,t.style.boxShadow=``,r&&a){let e=this._measureHeaderTextRect(),t=this._measureHeaderIconRect(),n=window.getComputedStyle(this._header);this._morphEls.text&&e&&(this._positionElement(this._morphEls.text,e),this._morphEls.text.style.color=n.color||`var(--on-surface)`,this._morphEls.text.style.fontSize=n.fontSize||`inherit`,this._morphEls.text.style.fontWeight=n.fontWeight||`inherit`,this._morphEls.text.style.lineHeight=n.lineHeight||`inherit`),this._morphEls.icon&&t&&(this._positionElement(this._morphEls.icon,t),this._morphEls.icon.style.color=n.color||`var(--on-surface)`)}if(Hc.from(s,{targets:t,duration:.38,ease:`morph-open`,zIndex:this._zIndex,onComplete:()=>{this._isAnimating=!1,this._visible=!0,this._cleanupMorphElements(),o&&(o.style.opacity=`1`)}}),i.length>0){this.blurContent&&$.set(i,{filter:`blur(16px)`});let e={targets:i,duration:.38,ease:`morph-open`,zIndex:this._zIndex+10};this.blurContent&&(e.filter=`blur(0px)`,e.clearProps=`filter`),Hc.from(c,e)}let d=[this.shadowRoot.querySelector(`.body`),this.shadowRoot.querySelector(`footer`),this.shadowRoot.querySelector(`.close-btn`)].filter(Boolean),f=this.blurContent?`blur(16px)`:`blur(0px)`;$.set(d,{opacity:0,y:8,filter:f}),$.fromTo(d,{opacity:0,y:8,filter:f},{opacity:1,y:0,filter:`blur(0px)`,duration:.32,delay:.08,stagger:.04,ease:`power2.out`,onComplete:()=>{$.set(d,{clearProps:`opacity,transform,filter`}),this._panel.classList.remove(`is-animating`)}})})}}showFrom(e){e&&(this._targetEl=e,this.show())}resizeTo(e,t,n=`center`){if(this.expandedWidth=e,this.expandedHeight=t,!this._visible||!this._panel||!this._targetEl)return;let r=this._computeFinalRect(this._targetEl.getBoundingClientRect()),i=this.parentElement?.closest(`.lab-canvas, [data-morph-coordinate-space]`),a=i?getComputedStyle(i).transform:`none`,o=1,s=1,c;if(i&&a!==`none`){let e=new DOMMatrix(a);o=Math.hypot(e.a,e.b)||1,s=Math.hypot(e.c,e.d)||1,c=i.getBoundingClientRect()}if(n===`top-left`){let e=this._panel.getBoundingClientRect(),t=e.left,n=e.top;c&&(t=(e.left-c.left)/o,n=(e.top-c.top)/s),r=new DOMRect(t,n,r.width,r.height)}else if(n===`center`&&c){let e=window.innerWidth/2-r.width*o/2,t=window.innerHeight/2-r.height*s/2;r=new DOMRect((e-c.left)/o,(t-c.top)/s,r.width,r.height)}this._panel.classList.add(`is-animating`),$.to(this._panel,{top:r.top,left:r.left,width:r.width,height:r.height,"--_panel-width":`${r.width}px`,"--_panel-height":`${r.height}px`,duration:.32,ease:`morph-open`,overwrite:!0,onComplete:()=>this._panel?.classList.remove(`is-animating`),onInterrupt:()=>this._panel?.classList.remove(`is-animating`)})}_ensureSolidPanelBackground(){if(!this._panel)return;let e=window.getComputedStyle(this._panel).backgroundColor;if(this._isColorTransparent(e)){let e=this._findSolidBackground(this._panel);if(e)this._panel.style.backgroundColor=e;else{let e=getComputedStyle(document.body).getPropertyValue(`--surface-container-high`).trim();this._panel.style.backgroundColor=e||`#2d2d2d`}}}hide(){if(this._isAnimating||!this._visible)return;this._isAnimating=!0,this._panel.classList.add(`is-animating`),this._ensureSolidPanelBackground(),this.style.setProperty(`--_backdrop-duration`,`0.3s`),this.style.setProperty(`--_backdrop-ease`,`cubic-bezier(0.4, 0, 0.2, 1)`);let e=this.shadowRoot.querySelector(`.body`),t=this.shadowRoot.querySelector(`footer`),n=this.shadowRoot.querySelector(`.close-btn`),r=this.shadowRoot.querySelector(`.header-morph-wrapper`),i=[e,t,n,r].filter(Boolean),a=this.blurContent?`blur(12px)`:`blur(6px)`;$.fromTo(i,{opacity:1,filter:`blur(0px)`},{opacity:0,filter:a,duration:.12,ease:`power2.in`,onComplete:()=>{let e=this._panel,t=this._resolveClosingTarget();this._cleanupMorphElements();let n=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,a=!1,o=[],s=null,c=null;if(a){this._animateLabelClose(),s=this._resolveMorphSource();let e=this._measureHeaderTextRect(),t=this._measureHeaderIconRect(),n=window.getComputedStyle(this._header);if(s.text&&e){let t=this._createMorphText(s.text.content,s.text.sourceEl);this._positionElement(t,e),t.style.color=n.color||`var(--on-surface)`,t.style.fontSize=n.fontSize||`inherit`,t.style.fontWeight=n.fontWeight||`inherit`,t.style.lineHeight=n.lineHeight||`inherit`,o.push(t)}if(s.icon&&t){let e=this._createMorphIcon(s.icon.element);this._positionElement(e,t),e.style.color=n.color||`var(--on-surface)`,o.push(e)}o.length===0&&(a=!1)}if(t&&!a&&!n){let e=this._resolveVisualTarget(t),n=e.getBoundingClientRect();if(n.width>0&&n.height>0){t===this._targetEl&&this._restoreTargetContent();let r=this._createTargetSnapshot(e,n);t===this._targetEl&&this._hideTargetContent(),r.style.opacity=`0`,c={element:r,rect:n,source:e}}}a&&r&&(r.style.opacity=`0`);let l=Hc.getState(e,{props:`backgroundColor,borderRadius,color,boxShadow`}),u=Hc.getState(o,{props:`color,fontSize,fontWeight,lineHeight,opacity`});if(!t){$.to(this._backdrop,{opacity:0,duration:n?.01:.22,ease:`power2.in`}),$.to(e,{autoAlpha:0,scale:.92,duration:n?.01:.22,ease:`power2.in`,overwrite:!0,onComplete:()=>{$.set(e,{clearProps:`transform`}),this._finishHide(i,r)}});return}let d=this._getTargetState(t);if(c){this._runTargetMorphTimeline(e,d,c,i,r,n);return}let f;if(this.autoSize){let t=e.style.getPropertyValue(`--_panel-width`),n=e.style.getPropertyValue(`--_panel-height`),r=e.style.width,i=e.style.height;e.style.width=`auto`,e.style.height=`auto`,e.style.setProperty(`--_panel-width`,`max-content`),e.style.setProperty(`--_panel-height`,`max-content`);let a=this.shadowRoot.querySelector(`.body`),o=a?a.style.overflow:``;a&&(a.style.overflow=`visible`),f={width:this._inner.scrollWidth,height:this._inner.scrollHeight},e.style.setProperty(`--_panel-width`,t),e.style.setProperty(`--_panel-height`,n),e.style.width=r,e.style.height=i,a&&(a.style.overflow=o)}let p=this._computeFinalRect(d.rect,f);if(e.style.setProperty(`--_panel-width`,`${p.width}px`),e.style.setProperty(`--_panel-height`,`${p.height}px`),this._applyRect(e,this._toPanelCoordinateRect(d.rect)),e.style.backgroundColor=d.backgroundColor,e.style.color=d.color,e.style.borderRadius=d.borderRadius,e.style.boxShadow=d.boxShadow,a&&s&&(this._morphEls.text&&s.text&&(this._positionElement(this._morphEls.text,s.text.rect),this._morphEls.text.style.color=window.getComputedStyle(s.text.sourceEl).color||`inherit`,this._morphEls.text.style.fontSize=window.getComputedStyle(s.text.sourceEl).fontSize||`inherit`,this._morphEls.text.style.fontWeight=window.getComputedStyle(s.text.sourceEl).fontWeight||`inherit`,this._morphEls.text.style.lineHeight=window.getComputedStyle(s.text.sourceEl).lineHeight||`inherit`),this._morphEls.icon&&s.icon&&(this._positionElement(this._morphEls.icon,s.icon.rect),this._morphEls.icon.style.color=window.getComputedStyle(s.icon.element).color||`inherit`)),Hc.from(l,{targets:e,duration:.3,ease:`morph-close`,zIndex:this._zIndex,onComplete:()=>this._finishHide(i,r)}),$.to(this._backdrop,{opacity:0,duration:.3,ease:`power2.inOut`}),o.length>0){this.blurContent&&$.set(o,{filter:`blur(0px)`});let e={targets:o,duration:.3,ease:`morph-close`,zIndex:this._zIndex+10};this.blurContent&&(e.filter=`blur(12px)`),Hc.from(u,e)}}})}_runTargetMorphTimeline(e,t,n,r,i,a){let o=this._toPanelCoordinateRect(e.getBoundingClientRect()),s=this._toPanelCoordinateRect(t.rect),c=this._toPanelCoordinateRect(n.rect),l=n.element,u=(n.source.getAnimations?.({subtree:!0})??[]).reduce((e,t)=>{let n=t.effect?.getComputedTiming(),r=typeof n?.endTime==`number`?n.endTime:0,i=typeof t.currentTime==`number`?t.currentTime:0;return Math.max(e,Math.max(0,r-i)/1e3)},0),d=Math.min(1.2,Math.max(.46,u)),f={x:o.left+o.width/2,y:o.top+o.height/2},p={x:s.left+s.width/2,y:s.top+s.height/2},m=p.x-f.x,h=p.y-f.y,g=Math.hypot(m,h)||1,_=Math.min(360,Math.max(48,g*.72)),v={x:-h/g,y:m/g},y={x:(f.x+p.x)/2,y:(f.y+p.y)/2},b=this._toPanelCoordinateRect(new DOMRect(window.innerWidth/2,window.innerHeight/2,0,0)),x=[1,-1].map(e=>({x:y.x+v.x*_*e,y:y.y+v.y*_*e})),S=e=>Math.abs(Math.abs(h)>=Math.abs(m)?e.x-b.x:e.y-b.y),C=S(x[0])<=S(x[1])?x[0]:x[1];if(Object.assign(l.style,{position:`absolute`,inset:`50% auto auto 50%`,width:`${c.width}px`,height:`${c.height}px`,transform:`translate(-50%, -50%) scale(.78)`,color:window.getComputedStyle(n.source).color||t.color,opacity:`0`}),a){e.appendChild(l),this._applyRect(e,s),e.style.backgroundColor=t.backgroundColor,e.style.color=t.color,e.style.borderRadius=t.borderRadius,e.style.boxShadow=t.boxShadow,this._backdrop.style.opacity=`0`,l.style.opacity=`1`,this._finishHide(r,i);return}let w=$.timeline({onComplete:()=>{$.set(e,{clearProps:`transform`}),this._finishHide(r,i)}});e.style.left=`${o.left}px`,e.style.top=`${o.top}px`,e.style.width=`${o.width}px`,e.style.height=`${o.height}px`;let T=window.getComputedStyle(e),E={backgroundColor:T.backgroundColor,color:T.color,borderRadius:T.borderRadius,boxShadow:T.boxShadow};this._backdrop.style.transition=`none`,this._backdrop.style.opacity=`1`;let D={progress:0},O=!1;this.debug&&console.log(`[moni-morph-modal] arc`,{start:f,control:C,end:p,distance:g,arc:_,morphDuration:d}),w.addLabel(`morph`,0).to(D,{progress:1,duration:d,ease:`power2.inOut`,onUpdate:()=>{let t=D.progress,r=this._getTargetState(n.source),i=this._toPanelCoordinateRect(r.rect),a=this._readTransformState(n.source),c={x:i.left+i.width/2,y:i.top+i.height/2},u=c.x-f.x,d=c.y-f.y,p=Math.hypot(u,d)||1,m=Math.min(360,Math.max(48,p*.72)),h={x:-d/p,y:u/p},g={x:(f.x+c.x)/2,y:(f.y+c.y)/2},_=[1,-1].map(e=>({x:g.x+h.x*m*e,y:g.y+h.y*m*e})),v=S(_[0])<=S(_[1])?_[0]:_[1];this._backdrop.style.opacity=String(Math.max(0,1-t));let y=1-t,b=y*y*f.x+2*y*t*v.x+t*t*c.x,x=y*y*f.y+2*y*t*v.y+t*t*c.y,C=n.source.offsetWidth||i.width,w=n.source.offsetHeight||i.height,T=n.source.offsetWidth||s.width,k=n.source.offsetHeight||s.height,A=o.width+(T-o.width)*t+(C-T),j=o.height+(k-o.height)*t+(w-k);e.style.width=`${A}px`,e.style.height=`${j}px`,$.set(e,{x:b-A/2-o.left,y:x-j/2-o.top,rotation:a.rotation*t,skewX:a.skewX*t,scaleX:1+(a.scaleX-1)*t,scaleY:1+(a.scaleY-1)*t,backgroundColor:$.utils.interpolate(E.backgroundColor,r.backgroundColor,t),color:$.utils.interpolate(E.color,r.color,t),borderRadius:$.utils.interpolate(E.borderRadius,r.borderRadius,t),boxShadow:$.utils.interpolate(E.boxShadow,r.boxShadow,t)});let M=Math.max(0,Math.min(1,(t-.6)/.4));!O&&M>0&&(e.appendChild(l),O=!0),l.style.width=`${C}px`,l.style.height=`${w}px`;let ee=.82+M*.18;$.set(l,{opacity:M,scaleX:A/Math.max(1,C)*ee,scaleY:j/Math.max(1,w)*ee})}},`morph`).addLabel(`target-fade`).to(e,{autoAlpha:0,duration:.08,ease:`power1.out`,onStart:()=>{l.style.visibility=`hidden`,this._restoreTargetContent(),e.style.backgroundColor=`transparent`,e.style.boxShadow=`none`,e.style.borderColor=`transparent`}},`morph+=${d}`)}_finishHide(e,t){let n=this._panel;n.style.visibility=`hidden`,n.style.opacity=`0`,n.style.pointerEvents=`none`,this._visible=!1,this._handlingOpenChange=!0,this.open=!1,this._handlingOpenChange=!1,this._isAnimating=!1,n.classList.remove(`is-animating`),n.style.removeProperty(`--_panel-width`),n.style.removeProperty(`--_panel-height`),this._cleanupMorphElements(),this._restoreTargetContent(),$.set(e,{clearProps:`opacity,transform,filter`}),t&&(t.style.opacity=`1`),this.style.removeProperty(`z-index`),this.style.removeProperty(`--_z-index`),this.style.removeProperty(`--_backdrop-duration`),this.style.removeProperty(`--_backdrop-ease`);let r=_l._openStack.indexOf(this);r>-1&&_l._openStack.splice(r,1)}_captureOriginFallbacks(e){this._originFallbacks=[];let t=this._getComposedParent(e);for(;t&&t!==document.body&&t!==document.documentElement;)this._originFallbacks.push(t),t=this._getComposedParent(t)}_getComposedParent(e){if(e.parentElement)return e.parentElement;let t=e.getRootNode();return t instanceof ShadowRoot?t.host:null}_resolveClosingTarget(){this.target&&this._resolveTarget();let e=[this._targetEl,...this._originFallbacks].filter((e,t,n)=>!!e&&n.indexOf(e)===t),t=e.find(e=>this._isUsableClosingTarget(e))??null,n=t?t===this._targetEl?`target`:`ancestor`:`fade`;return this._debugMorph(`close`,t,n,e),t}_debugMorph(e,t,n,r){if(!this.debug)return;let i=r.map((e,t)=>{let n=e.getBoundingClientRect();return{index:t,element:`${e.tagName.toLowerCase()}${e.id?`#${e.id}`:``}`,connected:e.isConnected,usable:this._isUsableClosingTarget(e),x:Math.round(n.x),y:Math.round(n.y),width:Math.round(n.width),height:Math.round(n.height)}});console.groupCollapsed(`[moni-morph-modal] ${e} → ${n}`),console.log(`Origin:`,this._targetEl),console.log(`Resolved morph target:`,t),console.table(i),console.groupEnd()}_isUsableClosingTarget(e){if(!e?.isConnected)return!1;let t=e.getBoundingClientRect();if(t.width<2||t.height<2||t.right<=0||t.bottom<=0||t.left>=window.innerWidth||t.top>=window.innerHeight)return!1;let n=e;for(;n&&n!==document.body;){let e=getComputedStyle(n);if(e.display===`none`||e.visibility===`hidden`||e.contentVisibility===`hidden`||Number.parseFloat(e.opacity||`1`)===0&&!this._targetStylesCache.has(n))return!1;n=this._getComposedParent(n)}return!0}toggle(){this._visible||this.open?this.hide():this.show()}_handleDocKeydown(e){e.key!==`Escape`||!this.closeOnEsc||_l._openStack[_l._openStack.length-1]===this&&(e.stopPropagation(),this.hide())}_hideTargetContent(){if(!this._targetEl)return;let e=(e,t)=>{this._targetStylesCache.has(e)||this._targetStylesCache.set(e,{opacity:e.style.opacity,color:e.style.color}),t===`opacity`&&(e.style.opacity=`0`),t===`color`&&(e.style.color=`transparent`)};if(this.hideTarget){e(this._targetEl,`opacity`);return}if(this._targetEl.tagName===`MONI-BUTTON`){let t=this._getMoniButtonParts();t.label&&e(t.label,`opacity`),t.icon&&e(t.icon,`opacity`),t.iconTrailing&&e(t.iconTrailing,`opacity`)}else if(this._targetEl.tagName===`MONI-FAB`){let t=this._targetEl.shadowRoot?.querySelector(`.icon`),n=this._targetEl.shadowRoot?.querySelector(`.label`);t&&e(t,`opacity`),n&&e(n,`opacity`)}else{e(this._targetEl,`color`);let t=this._targetEl.querySelector(`moni-icon, svg, [class*="icon"]`);t&&e(t,`opacity`)}}_restoreTargetContent(){if(!this._targetEl)return;let e=e=>{if(this._targetStylesCache.has(e)){let t=this._targetStylesCache.get(e);e.style.opacity=t.opacity,e.style.color=t.color,this._targetStylesCache.delete(e)}};if(this.hideTarget){e(this._targetEl);return}if(this._targetEl.tagName===`MONI-BUTTON`){let t=this._getMoniButtonParts();t.label&&e(t.label),t.icon&&e(t.icon),t.iconTrailing&&e(t.iconTrailing)}else if(this._targetEl.tagName===`MONI-FAB`){let t=this._targetEl.shadowRoot?.querySelector(`.icon`),n=this._targetEl.shadowRoot?.querySelector(`.label`);t&&e(t),n&&e(n)}else{e(this._targetEl);let t=this._targetEl.querySelector(`moni-icon, svg, [class*="icon"]`);t&&e(t)}}_onHeaderSlotChange(e){let t=e.target;this._hasHeader=t.assignedNodes({flatten:!0}).length>0}_onFooterSlotChange(e){let t=e.target;this._hasFooter=t.assignedNodes({flatten:!0}).length>0}_onTriggerLabelSlotChange(e){let t=e.target;this._hasTriggerLabel=t.assignedNodes({flatten:!0}).length>0}_getTriggerLabelNodes(){return(this.shadowRoot?.querySelector(`slot[name="trigger-label"]`))?.assignedNodes({flatten:!0})??[]}_shouldMorphLabel(){return this.morphLabel&&!!this._targetEl&&(this._hasHeader||this._hasTriggerLabel)}_cleanupMorphElements(){this._targetSnapshot&&=(this._targetSnapshot.remove(),null),this._morphEls.text&&(this._morphEls.text.remove(),this._morphEls.text=null),this._morphEls.icon&&(this._morphEls.icon.remove(),this._morphEls.icon=null)}_animateLabelOpen(){}_animateLabelClose(){}_createMorphText(e,t){let n=document.createElement(`div`);n.className=`morph-text`,n.setAttribute(`data-flip-id`,`morph-text-${this.target}`),n.setAttribute(`aria-hidden`,`true`),n.textContent=e;let r=window.getComputedStyle(t);return n.style.position=`fixed`,n.style.pointerEvents=`none`,n.style.zIndex=String(this._zIndex+10),n.style.display=`inline-flex`,n.style.alignItems=r.alignItems===`normal`?`center`:r.alignItems,n.style.justifyContent=r.justifyContent===`normal`?`flex-start`:r.justifyContent,n.style.whiteSpace=`nowrap`,n.style.color=r.color||`inherit`,n.style.fontFamily=r.fontFamily||`inherit`,n.style.fontSize=r.fontSize||`inherit`,n.style.fontWeight=r.fontWeight||`inherit`,n.style.lineHeight=r.lineHeight||`inherit`,n.style.letterSpacing=r.letterSpacing||`inherit`,this.shadowRoot.appendChild(n),this._morphEls.text=n,n}_createMorphIcon(e){let t=document.createElement(`div`);if(t.className=`morph-icon`,t.setAttribute(`data-flip-id`,`morph-icon-${this.target}`),t.setAttribute(`aria-hidden`,`true`),e.tagName===`MONI-ICON`){let n=document.createElement(`span`);n.textContent=e.getAttribute(`name`)||``;let r=window.getComputedStyle(e);n.style.display=`inline-flex`,n.style.alignItems=`center`,n.style.justifyContent=`center`,n.style.fontFamily=r.fontFamily||`var(--font-icon)`,n.style.fontSize=r.fontSize||`1.125rem`,n.style.inlineSize=r.inlineSize||`1.125rem`,n.style.blockSize=r.blockSize||`1.125rem`,n.style.lineHeight=`1`,n.style.color=`inherit`,n.style.fontWeight=`normal`,n.style.fontStyle=`normal`,n.style.letterSpacing=`normal`,n.style.textTransform=`none`,n.style.whiteSpace=`nowrap`,n.style.wordWrap=`normal`,n.style.direction=`ltr`,n.style.fontFeatureSettings=`'liga'`,n.style.fontVariationSettings=`'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24`,n.style.setProperty(`-webkit-font-smoothing`,`antialiased`),t.appendChild(n)}else t.appendChild(e.cloneNode(!0));let n=window.getComputedStyle(e);return t.style.position=`fixed`,t.style.pointerEvents=`none`,t.style.zIndex=String(this._zIndex+10),t.style.display=`inline-flex`,t.style.alignItems=`center`,t.style.justifyContent=`center`,t.style.color=n.color||`inherit`,t.style.inlineSize=n.inlineSize||`1.125rem`,t.style.blockSize=n.blockSize||`1.125rem`,this.shadowRoot.appendChild(t),this._morphEls.icon=t,t}_positionElement(e,t){let n=this._toPanelCoordinateRect(t);e.style.top=`${n.top}px`,e.style.left=`${n.left}px`,e.style.width=`${n.width}px`,e.style.height=`${n.height}px`}_toPanelCoordinateRect(e){let t=this.parentElement?.closest(`.lab-canvas, [data-morph-coordinate-space]`);if(!t)return e;let n=getComputedStyle(t).transform;if(!n||n===`none`)return e;let r=1,i=1;if(typeof DOMMatrix<`u`){let e=new DOMMatrix(n);r=Math.hypot(e.a,e.b)||1,i=Math.hypot(e.c,e.d)||1}else{let e=n.match(/^matrix\(([^)]+)\)$/),t=n.match(/^scale\(([^)]+)\)$/);if(e){let t=e[1].split(`,`).map(Number);r=Math.hypot(t[0],t[1])||1,i=Math.hypot(t[2],t[3])||1}else if(t){let e=t[1].split(/[,\s]+/).map(Number);r=e[0]||1,i=e[1]||r}}let a=t.getBoundingClientRect();return new DOMRect((e.left-a.left)/r,(e.top-a.top)/i,e.width/r,e.height/i)}_getMoniButtonParts(){let e=this._targetEl?.shadowRoot;return{label:e?.querySelector(`[part="label"]`)??null,icon:e?.querySelector(`[part="icon"]`)??null,iconTrailing:e?.querySelector(`[part="icon-trailing"]`)??null}}_resolveMorphSource(){let e={text:null,icon:null};if(!this._targetEl)return e;if(this._hasTriggerLabel){let t=this._getTriggerLabelNodes();if(t.length>0){let n=document.createElement(`div`);for(let e of t)n.appendChild(e.cloneNode(!0));n.style.position=`fixed`,n.style.visibility=`hidden`,n.style.pointerEvents=`none`,this.shadowRoot.appendChild(n);let r=this._targetEl.getBoundingClientRect();n.remove(),e.text={content:n.textContent?.trim()||``,rect:r,sourceEl:this._targetEl}}return e}if(this._targetEl.tagName===`MONI-BUTTON`){let t=this._getMoniButtonParts();if(t.label&&(e.text={content:this._targetEl.textContent?.trim()||``,rect:t.label.getBoundingClientRect(),sourceEl:t.label}),t.icon){let n=t.icon.querySelector(`moni-icon, svg`)||t.icon;e.icon={element:n,rect:n.getBoundingClientRect()}}return e}let t=this._targetEl;if(this.morphLabelSelector){let e=this._targetEl.querySelector(this.morphLabelSelector);e&&(t=e)}let n=t.textContent?.trim()||``;n&&(e.text={content:n,rect:t.getBoundingClientRect(),sourceEl:t});let r=t.querySelector(`moni-icon, svg, [class*="icon"]`);return r&&(e.icon={element:r,rect:r.getBoundingClientRect()}),e}_measureHeaderTextRect(){if(!this._header)return null;let e=(this.shadowRoot?.querySelector(`slot[name="header"]`))?.assignedNodes({flatten:!0})??[];for(let t of e){if(t.nodeType===Node.TEXT_NODE&&t.textContent?.trim()){let e=document.createRange();return e.selectNode(t),e.getBoundingClientRect()}if(t.nodeType===Node.ELEMENT_NODE){let e=t;if(e.tagName===`MONI-ICON`||e.tagName===`SVG`)continue;let n=Array.from(e.childNodes);for(let e of n){if(e.nodeType===Node.TEXT_NODE&&e.textContent?.trim()){let t=document.createRange();return t.selectNode(e),t.getBoundingClientRect()}if(e.nodeType===Node.ELEMENT_NODE){let t=e;if(t.tagName!==`MONI-ICON`&&t.tagName!==`SVG`&&t.textContent?.trim())return t.getBoundingClientRect()}}if(e.textContent?.trim())return e.getBoundingClientRect()}}return this._header.getBoundingClientRect()}_measureHeaderIconRect(){let e=this._measureHeaderTextRect();if(!e)return null;let t=(this.shadowRoot?.querySelector(`slot[name="header"]`))?.assignedNodes({flatten:!0})??[];for(let e of t)if(e.nodeType===Node.ELEMENT_NODE){let t=e;if(t.tagName===`MONI-ICON`||t.tagName===`SVG`)return t.getBoundingClientRect();let n=t.querySelector(`moni-icon, svg`);if(n)return n.getBoundingClientRect()}return new DOMRect(e.left-24-12,e.top+e.height/2-12,24,24)}_findSolidBackground(e){let t=[e,...Array.from(e.querySelectorAll(`*`))];for(let e of t){let t=window.getComputedStyle(e).backgroundColor;if(!this._isColorTransparent(t))return t}if(e.shadowRoot){let t=Array.from(e.shadowRoot.querySelectorAll(`*`));for(let e of t){let t=window.getComputedStyle(e).backgroundColor;if(!this._isColorTransparent(t))return t}}return null}_getTargetState(e){let t=this._resolveVisualTarget(e),n=t.getBoundingClientRect(),r=window.getComputedStyle(t).backgroundColor;if(this._isColorTransparent(r)){let e=window.getComputedStyle(t,`::before`).backgroundColor;if(!this._isColorTransparent(e))r=e;else{let e=window.getComputedStyle(t,`::after`).backgroundColor;if(!this._isColorTransparent(e))r=e;else{let e=this._findSolidBackground(t);e&&(r=e)}}}this._isColorTransparent(r)&&this._panel&&(r=window.getComputedStyle(this._panel).backgroundColor);let i=window.getComputedStyle(t);return{rect:n,backgroundColor:r,color:i.color||`var(--on-surface)`,borderRadius:i.borderRadius||`1.25rem`,boxShadow:i.boxShadow||`none`}}_resolveVisualTarget(e){if(e.tagName===`MONI-BUTTON`)return e.shadowRoot?.querySelector(`.button`)??e;if(e.tagName===`MONI-FAB`)return e.shadowRoot?.querySelector(`button`)??e;if(e.tagName===`MONI-FAB-MENU`){let t=e.shadowRoot?.querySelector(`.trigger`);return t?.shadowRoot?.querySelector(`button`)??t??e}return e}_createTargetSnapshot(e,t){this._targetSnapshot?.remove();let n=document.createElement(`div`);n.className=`morph-target-snapshot`,n.setAttribute(`aria-hidden`,`true`);let r=this._cloneComposedNode(e);return r&&(n.appendChild(r),r instanceof HTMLElement&&![`IMG`,`VIDEO`,`CANVAS`,`SVG`,`PICTURE`].includes(e.tagName)&&(Object.assign(r.style,{background:`transparent`,backgroundColor:`transparent`,boxShadow:`none`,borderColor:`transparent`,outline:`none`,position:`relative`,inset:`auto`,transform:`none`,opacity:`1`,visibility:`visible`,width:`100%`,height:`100%`}),e.tagName===`BUTTON`&&(r.style.whiteSpace=`nowrap`,r.querySelectorAll(`span, [part~="label"]`).forEach(e=>{e.style.whiteSpace=`nowrap`})))),Object.assign(n.style,{width:`${t.width}px`,height:`${t.height}px`,overflow:`hidden`,pointerEvents:`none`}),this._targetSnapshot=n,n}_cloneComposedNode(e){if(e.nodeType===Node.TEXT_NODE)return e.cloneNode(!1);if(!(e instanceof Element))return null;if(e instanceof HTMLSlotElement){let t=document.createDocumentFragment(),n=e.assignedNodes({flatten:!0});for(let r of n.length?n:Array.from(e.childNodes)){let e=this._cloneComposedNode(r);e&&t.appendChild(e)}return t}let t=e.shadowRoot?document.createElement(`div`):e.cloneNode(!1);e instanceof HTMLImageElement&&t instanceof HTMLImageElement&&(t.loading=`eager`,t.decoding=`sync`,e.currentSrc&&(t.src=e.currentSrc)),t.removeAttribute(`id`),t.removeAttribute(`name`),t.setAttribute(`aria-hidden`,`true`);let n=window.getComputedStyle(e);for(let e=0;e<n.length;e+=1){let r=n.item(e);t.style.setProperty(r,n.getPropertyValue(r),n.getPropertyPriority(r))}let r=e.shadowRoot?Array.from(e.shadowRoot.childNodes).filter(e=>!(e instanceof HTMLStyleElement)):Array.from(e.childNodes);for(let e of r){let n=this._cloneComposedNode(e);n&&t.appendChild(n)}return t}_isColorTransparent(e){if(!e)return!0;let t=e.replace(/\s/g,``).toLowerCase();return t===`rgba(0,0,0,0)`||t===`transparent`||t===``||t.includes(`,0)`)||t.includes(`/0)`)}_readTransformState(e){let t=window.getComputedStyle(e).transform;if(!t||t===`none`)return{rotation:0,skewX:0,scaleX:1,scaleY:1};try{let e=t.match(/matrix(?:3d)?\(([^)]+)\)/)?.[1].split(`,`).map(e=>Number.parseFloat(e.trim())),n,r,i,a;if(e?.length===6)[n,r,i,a]=e;else if(e?.length===16)n=e[0],r=e[1],i=e[4],a=e[5];else{let e=new DOMMatrix(t);({a:n,b:r,c:i,d:a}=e)}let o=Math.hypot(n,r)||1,s=(n*a-r*i)/o||1;return{rotation:180/Math.PI*Math.atan2(r,n),skewX:Math.atan2(n*i+r*a,o*o)*(180/Math.PI),scaleX:o,scaleY:s}}catch{return{rotation:0,skewX:0,scaleX:1,scaleY:1}}}_applyRect(e,t){e.style.top=`${t.top}px`,e.style.left=`${t.left}px`,e.style.width=`${t.width}px`,e.style.height=`${t.height}px`}_computeFinalRect(e,t){let n=window.innerWidth,r=window.innerHeight,i=this.autoSize&&t?t.width:this._parseSize(this.expandedWidth,n),a=this.autoSize&&t?t.height:this._parseSize(this.expandedHeight,r);i=Math.min(i,n-32),a=Math.min(a,r-32);let o=e.top,s=e.left;switch(this.placement){case`viewport-center`:s=n/2-i/2,o=r/2-a/2;break;case`viewport-top`:s=n/2-i/2,o=16;break;case`viewport-bottom`:s=n/2-i/2,o=r-a-16;break;case`viewport-left`:s=16,o=r/2-a/2;break;case`viewport-right`:s=n-i-16,o=r/2-a/2;break;case`viewport-top-left`:s=16,o=16;break;case`viewport-top-right`:s=n-i-16,o=16;break;case`viewport-bottom-left`:s=16,o=r-a-16;break;case`viewport-bottom-right`:s=n-i-16,o=r-a-16;break;case`center`:s=e.left+e.width/2-i/2,o=e.top+e.height/2-a/2;break;case`top`:s=e.left+e.width/2-i/2,o=this.coverTarget?e.top+e.height-a:e.top-a;break;case`top-start`:s=e.left+e.width-i,o=this.coverTarget?e.top+e.height-a:e.top-a;break;case`top-end`:s=e.left,o=this.coverTarget?e.top+e.height-a:e.top-a;break;case`bottom`:s=e.left+e.width/2-i/2,o=this.coverTarget?e.top:e.top+e.height;break;case`bottom-start`:s=e.left+e.width-i,o=this.coverTarget?e.top:e.top+e.height;break;case`bottom-end`:s=e.left,o=this.coverTarget?e.top:e.top+e.height;break;case`left`:s=this.coverTarget?e.left+e.width-i:e.left-i,o=e.top+e.height/2-a/2;break;case`left-start`:s=this.coverTarget?e.left+e.width-i:e.left-i,o=e.top+e.height-a;break;case`left-end`:s=this.coverTarget?e.left+e.width-i:e.left-i,o=e.top;break;case`right`:s=this.coverTarget?e.left:e.left+e.width,o=e.top+e.height/2-a/2;break;case`right-start`:s=this.coverTarget?e.left:e.left+e.width,o=e.top+e.height-a;break;case`right-end`:s=this.coverTarget?e.left:e.left+e.width,o=e.top}return s=Math.max(16,Math.min(s,n-i-16)),o=Math.max(16,Math.min(o,r-a-16)),new DOMRect(s,o,i,a)}_parseSize(e,t){let n=parseFloat(e);return Number.isNaN(n)?352:e.endsWith(`px`)?n:e.endsWith(`rem`)||e.endsWith(`em`)?n*16:e.endsWith(`%`)?n/100*t:e.endsWith(`vw`)?n/100*window.innerWidth:e.endsWith(`vh`)?n/100*window.innerHeight:n}static{this.styles=[W,g`
|
|
7448
|
+
`}};G([B({reflect:!0})],rn.prototype,`variant`,void 0),G([H(`.container`)],rn.prototype,`_container`,void 0),rn=G([z(`moni-loading-indicator`)],rn);function an(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function on(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var sn={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},cn={duration:.5,overwrite:!1,delay:0},ln,un,dn,fn=1e8,X=1/fn,pn=Math.PI*2,mn=pn/4,hn=0,gn=Math.sqrt,_n=Math.cos,vn=Math.sin,yn=function(e){return typeof e==`string`},bn=function(e){return typeof e==`function`},xn=function(e){return typeof e==`number`},Sn=function(e){return e===void 0},Cn=function(e){return typeof e==`object`},wn=function(e){return e!==!1},Tn=function(){return typeof window<`u`},En=function(e){return bn(e)||yn(e)},Dn=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},On=Array.isArray,kn=/random\([^)]+\)/g,An=/,\s*/g,jn=/(?:-?\.?\d|\.)+/gi,Mn=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Nn=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Pn=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Fn=/[+-]=-?[.\d]+/,In=/[^,'"\[\]\s]+/gi,Ln=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Rn,zn,Bn,Vn,Hn={},Un={},Wn,Gn=function(e){return(Un=Cr(e,Hn))&&Va},Kn=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},qn=function(e,t){return!t&&console.warn(e)},Jn=function(e,t){return e&&(Hn[e]=t)&&Un&&(Un[e]=t)||Hn},Yn=function(){return 0},Xn={suppressEvents:!0,isStart:!0,kill:!1},Zn={suppressEvents:!0,kill:!1},Qn={suppressEvents:!0},$n={},er=[],tr={},nr,rr={},ir={},ar=30,or=[],sr=``,cr=function(e){var t=e[0],n,r;if(Cn(t)||bn(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=or.length;r--&&!or[r].targetTest(t););n=or[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new Zi(e[r],n)))||e.splice(r,1);return e},lr=function(e){return e._gsap||cr(oi(e))[0]._gsap},ur=function(e,t,n){return(n=e[t])&&bn(n)?e[t]():Sn(n)&&e.getAttribute&&e.getAttribute(t)||n},dr=function(e,t){return(e=e.split(`,`)).forEach(t)||e},fr=function(e){return Math.round(e*1e5)/1e5||0},pr=function(e){return Math.round(e*1e7)/1e7||0},mr=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),n===`+`?e+r:n===`-`?e-r:n===`*`?e*r:e/r},hr=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++r<n;);return r<n},gr=function(){var e=er.length,t=er.slice(0),n,r;for(tr={},er.length=0,n=0;n<e;n++)r=t[n],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},_r=function(e){return!!(e._initted||e._startAt||e.add)},vr=function(e,t,n,r){er.length&&!un&&gr(),e.render(t,n,r||!!(un&&t<0&&_r(e))),er.length&&!un&&gr()},yr=function(e){var t=parseFloat(e);return(t||t===0)&&(e+``).match(In).length<2?t:yn(e)?e.trim():e},br=function(e){return e},xr=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},Sr=function(e){return function(t,n){for(var r in n)r in t||r===`duration`&&e||r===`ease`||(t[r]=n[r])}},Cr=function(e,t){for(var n in t)e[n]=t[n];return e},wr=function e(t,n){for(var r in n)r!==`__proto__`&&r!==`constructor`&&r!==`prototype`&&(t[r]=Cn(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},Tr=function(e,t){var n={},r;for(r in e)r in t||(n[r]=e[r]);return n},Er=function(e){var t=e.parent||Rn,n=e.keyframes?Sr(On(e.keyframes)):xr;if(wn(e.inherit))for(;t;)n(e,t.vars.defaults),t=t.parent||t._dp;return e},Dr=function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0},Or=function(e,t,n,r,i){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var a=e[r],o;if(i)for(o=t[i];a&&a[i]>o;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=a,t.parent=t._dp=e,t},kr=function(e,t,n,r){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var i=t._prev,a=t._next;i?i._next=a:e[n]===t&&(e[n]=a),a?a._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},Ar=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},jr=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},Mr=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},Nr=function(e,t,n,r){return e._startAt&&(un?e._startAt.revert(Zn):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},Pr=function e(t){return!t||t._ts&&e(t.parent)},Fr=function(e){return e._repeat?Ir(e._tTime,e=e.duration()+e._rDelay)*e:0},Ir=function(e,t){var n=Math.floor(e=pr(e/t));return e&&n===e?n-1:n},Lr=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Rr=function(e){return e._end=pr(e._start+(e._tDur/Math.abs(e._ts||e._rts||X)||0))},zr=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=pr(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Rr(e),n._dirty||jr(n,e)),e},Br=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=Lr(e.rawTime(),t),(!t._dur||ei(0,t.totalDuration(),n)-t._tTime>X)&&t.render(n,!0)),jr(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(n=e;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-X}},Vr=function(e,t,n,r){return t.parent&&Ar(t),t._start=pr((xn(n)?n:n||e!==Rn?Zr(e,n,t):e._time)+t._delay),t._end=pr(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Or(e,t,`_first`,`_last`,e._sort?`_start`:0),Gr(t)||(e._recent=t),r||Br(e,t),e._ts<0&&zr(e,e._tTime),e},Hr=function(e,t){return(Hn.ScrollTrigger||Kn(`scrollTrigger`,t))&&Hn.ScrollTrigger.create(t,e)},Ur=function(e,t,n,r,i){if(oa(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!un&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&nr!==Ri.frame)return er.push(e),e._lazy=[i,r],1},Wr=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},Gr=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},Kr=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&Wr(e)&&!(!e._initted&&Gr(e))||(e._ts<0||e._dp._ts<0)&&!Gr(e))?0:1,o=e._rDelay,s=0,c,l,u;if(o&&e._repeat&&(s=ei(0,e._tDur,t),l=Ir(s,o),e._yoyo&&l&1&&(a=1-a),l!==Ir(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==i||un||r||e._zTime===X||!t&&e._zTime){if(!e._initted&&Ur(e,t,r,n,s))return;for(u=e._zTime,e._zTime=t||(n?X:0),n||=t&&!u,e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=s,c=e._pt;c;)c.r(a,c.d),c=c._next;t<0&&Nr(e,t,n,!0),e._onUpdate&&!n&&Ci(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&Ci(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&Ar(e,1),!n&&!un&&(Ci(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},qr=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if(r.data===`isPause`&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(r.data===`isPause`&&r._start<t)return r;r=r._prev}},Jr=function(e,t,n,r){var i=e._repeat,a=pr(t)||0,o=e._tTime/e._tDur;return o&&!r&&(e._time*=a/e._dur),e._dur=a,e._tDur=i?i<0?1e10:pr(a*(i+1)+e._rDelay*i):a,o>0&&!r&&zr(e,e._tTime=e._tDur*o),e.parent&&Rr(e),n||jr(e.parent,e),e},Yr=function(e){return e instanceof $i?jr(e):Jr(e,e._dur)},Xr={_start:0,endTime:Yn,totalDuration:Yn},Zr=function e(t,n,r){var i=t.labels,a=t._recent||Xr,o=t.duration()>=fn?a.endTime(!1):t._dur,s,c,l;return yn(n)&&(isNaN(n)||n in i)?(c=n.charAt(0),l=n.substr(-1)===`%`,s=n.indexOf(`=`),c===`<`||c===`>`?(s>=0&&(n=n.replace(/=/,``)),(c===`<`?a._start:a.endTime(a._repeat>=0))+(parseFloat(n.substr(1))||0)*(l?(s<0?a:r).totalDuration()/100:1)):s<0?(n in i||(i[n]=o),i[n]):(c=parseFloat(n.charAt(s-1)+n.substr(s+1)),l&&r&&(c=c/100*(On(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},Qr=function(e,t,n){var r=xn(t[1]),i=(r?2:1)+(e<2?0:1),a=t[i],o,s;if(r&&(a.duration=t[1]),a.parent=n,e){for(o=a,s=n;s&&!(`immediateRender`in o);)o=s.vars.defaults||{},s=wn(s.vars.inherit)&&s.parent;a.immediateRender=wn(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new pa(t[0],a,t[i+1])},$r=function(e,t){return e||e===0?t(e):t},ei=function(e,t,n){return n<e?e:n>t?t:n},ti=function(e,t){return!yn(e)||!(t=Ln.exec(e))?``:t[1]},ni=function(e,t,n){return $r(n,function(n){return ei(e,t,n)})},ri=[].slice,ii=function(e,t){return e&&Cn(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&Cn(e[0]))&&!e.nodeType&&e!==zn},ai=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return yn(e)&&!t||ii(e,1)?(r=n).push.apply(r,oi(e)):n.push(e)})||n},oi=function(e,t,n){return dn&&!t&&dn.selector?dn.selector(e):yn(e)&&!n&&(Bn||!zi())?ri.call((t||Vn).querySelectorAll(e),0):On(e)?ai(e,n):ii(e)?ri.call(e,0):e?[e]:[]},si=function(e){return e=oi(e)[0]||qn(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return oi(t,n.querySelectorAll?n:n===e?qn(`Invalid scope`)||Vn.createElement(`div`):e)}},ci=function(e){return e.sort(function(){return .5-Math.random()})},li=function(e){if(bn(e))return e;var t=Cn(e)?e:{each:e},n=Ki(t.ease),r=t.from||0,i=parseFloat(t.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,c=t.axis,l=r,u=r;return yn(r)?l=u={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(l=r[0],u=r[1]),function(e,o,d){var f=(d||t).length,p=a[f],m,h,g,_,v,y,b,x,S;if(!p){if(S=t.grid===`auto`?0:(t.grid||[1,fn])[1],!S){for(b=-fn;b<(b=d[S++].getBoundingClientRect().left)&&S<f;);S<f&&S--}for(p=a[f]=[],m=s?Math.min(S,f)*l-.5:r%S,h=S===fn?0:s?f*u/S-.5:r/S|0,b=0,x=fn,y=0;y<f;y++)g=y%S-m,_=h-(y/S|0),p[y]=v=c?Math.abs(c===`y`?_:g):gn(g*g+_*_),v>b&&(b=v),v<x&&(x=v);r===`random`&&ci(p),p.max=b-x,p.min=x,p.v=f=(parseFloat(t.amount)||parseFloat(t.each)*(S>f?f-1:c?c===`y`?f/S:S:Math.max(S,f/S))||0)*(r===`edges`?-1:1),p.b=f<0?i-f:i,p.u=ti(t.amount||t.each)||0,n=n&&f<0?Gi(n):n}return f=(p[e]-p.min)/p.max||0,pr(p.b+(n?n(f):f)*p.v)+p.u}},ui=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=pr(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(xn(n)?0:ti(n))}},di=function(e,t){var n=On(e),r,i;return!n&&Cn(e)&&(r=n=e.radius||fn,e.values?(e=oi(e.values),(i=!xn(e[0]))&&(r*=r)):e=ui(e.increment)),$r(t,n?bn(e)?function(t){return i=e(t),Math.abs(i-t)<=r?i:t}:function(t){for(var n=parseFloat(i?t.x:t),a=parseFloat(i?t.y:0),o=fn,s=0,c=e.length,l,u;c--;)i?(l=e[c].x-n,u=e[c].y-a,l=l*l+u*u):l=Math.abs(e[c]-n),l<o&&(o=l,s=c);return s=!r||o<=r?e[s]:t,i||s===t||xn(t)?s:s+ti(t)}:ui(e))},fi=function(e,t,n,r){return $r(On(e)?!t:n===!0?!!(n=0):!r,function(){return On(e)?e[~~(Math.random()*e.length)]:(n||=1e-5)&&(r=n<1?10**((n+``).length-2):1)&&Math.floor(Math.round((e-n/2+Math.random()*(t-e+n*.99))/n)*n*r)/r})},pi=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce(function(e,t){return t(e)},e)}},mi=function(e,t){return function(n){return e(parseFloat(n))+(t||ti(n))}},hi=function(e,t,n){return bi(e,t,0,1,n)},gi=function(e,t,n){return $r(n,function(n){return e[~~t(n)]})},_i=function e(t,n,r){var i=n-t;return On(t)?gi(t,e(0,t.length),n):$r(r,function(e){return(i+(e-t)%i)%i+t})},vi=function e(t,n,r){var i=n-t,a=i*2;return On(t)?gi(t,e(0,t.length-1),n):$r(r,function(e){return e=(a+(e-t)%a)%a||0,t+(e>i?a-e:e)})},yi=function(e){return e.replace(kn,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(An);return fi(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},bi=function(e,t,n,r,i){var a=t-e,o=r-n;return $r(i,function(t){return n+((t-e)/a*o||0)})},xi=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=yn(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(On(t)&&!On(n)){for(u=[],d=t.length,f=d-2,l=1;l<d;l++)u.push(e(t[l-1],t[l]));d--,a=function(e){e*=d;var t=Math.min(f,~~e);return u[t](e-t)},r=n}else i||(t=Cr(On(t)?[]:{},t));if(!u){for(c in n)ta.call(s,t,c,`get`,n[c]);a=function(e){return Sa(e,s)||(o?t.p:t)}}}return $r(r,a)},Si=function(e,t,n){var r=e.labels,i=fn,a,o,s;for(a in r)o=r[a]-t,o<0==!!n&&o&&i>(o=Math.abs(o))&&(s=a,i=o);return s},Ci=function(e,t,n){var r=e.vars,i=r[t],a=dn,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&er.length&&gr(),o&&(dn=o),l=s?i.apply(c,s):i.call(c),dn=a,l},wi=function(e){return Ar(e),e.scrollTrigger&&e.scrollTrigger.kill(!!un),e.progress()<1&&Ci(e,`onInterrupt`),e},Ti,Ei=[],Di=function(e){if(e){if(e=!e.name&&e.default||e,Tn()||e.headless){var t=e.name,n=bn(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:Yn,render:Sa,add:ta,kill:wa,modifier:Ca,rawVars:0},a={targetTest:0,get:0,getSetter:va,aliases:{},register:0};if(zi(),e!==r){if(rr[t])return;xr(r,xr(Tr(e,i),a)),Cr(r.prototype,Cr(i,Tr(e,a))),rr[r.prop=t]=r,e.targetTest&&(or.push(r),$n[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}Jn(t,r),e.register&&e.register(Va,r,Da)}else Ei.push(e)}},Oi=255,ki={aqua:[0,Oi,Oi],lime:[0,Oi,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Oi],navy:[0,0,128],white:[Oi,Oi,Oi],olive:[128,128,0],yellow:[Oi,Oi,0],orange:[Oi,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Oi,0,0],pink:[Oi,192,203],cyan:[0,Oi,Oi],transparent:[Oi,Oi,Oi,0]},Ai=function(e,t,n){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(n-t)*e*6:e<.5?n:e*3<2?t+(n-t)*(2/3-e)*6:t)*Oi+.5|0},ji=function(e,t,n){var r=e?xn(e)?[e>>16,e>>8&Oi,e&Oi]:0:ki.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),ki[e])r=ki[e];else if(e.charAt(0)===`#`){if(e.length<6&&(i=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e=`#`+i+i+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):``)),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&Oi,r&Oi,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&Oi,e&Oi]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(jn),!t)s=r[0]%360/360,c=r[1]/100,l=r[2]/100,a=l<=.5?l*(c+1):l+c-l*c,i=l*2-a,r.length>3&&(r[3]*=1),r[0]=Ai(s+1/3,i,a),r[1]=Ai(s,i,a),r[2]=Ai(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(Mn),n&&r.length<4&&(r[3]=1),r}else r=e.match(jn)||ki.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/Oi,a=r[1]/Oi,o=r[2]/Oi,u=Math.max(i,a,o),d=Math.min(i,a,o),l=(u+d)/2,u===d?s=c=0:(f=u-d,c=l>.5?f/(2-u-d):f/(u+d),s=u===i?(a-o)/f+(a<o?6:0):u===a?(o-i)/f+2:(i-a)/f+4,s*=60),r[0]=~~(s+.5),r[1]=~~(c*100+.5),r[2]=~~(l*100+.5)),n&&r.length<4&&(r[3]=1),r},Mi=function(e){var t=[],n=[],r=-1;return e.split(Pi).forEach(function(e){var i=e.match(Nn)||[];t.push.apply(t,i),n.push(r+=i.length+1)}),t.c=n,t},Ni=function(e,t,n){var r=``,i=(e+r).match(Pi),a=t?`hsla(`:`rgba(`,o=0,s,c,l,u;if(!i)return e;if(i=i.map(function(e){return(e=ji(e,t,1))&&a+(t?e[0]+`,`+e[1]+`%,`+e[2]+`%,`+e[3]:e.join(`,`))+`)`}),n&&(l=Mi(e),s=n.c,s.join(r)!==l.c.join(r)))for(c=e.replace(Pi,`1`).split(Nn),u=c.length-1;o<u;o++)r+=c[o]+(~s.indexOf(o)?i.shift()||a+`0,0,0,0)`:(l.length?l:i.length?i:n).shift());if(!c)for(c=e.split(Pi),u=c.length-1;o<u;o++)r+=c[o]+i[o];return r+c[u]},Pi=function(){var e=`(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b`,t;for(t in ki)e+=`|`+t+`\\b`;return RegExp(e+`)`,`gi`)}(),Fi=/hsl[a]?\(/,Ii=function(e){var t=e.join(` `),n;if(Pi.lastIndex=0,Pi.test(t))return n=Fi.test(t),e[1]=Ni(e[1],n),e[0]=Ni(e[0],n,Mi(e[1])),!0},Li,Ri=function(){var e=Date.now,t=500,n=33,r=e(),i=r,a=1e3/240,o=a,s=[],c,l,u,d,f,p,m=function u(m){var h=e()-i,g=m===!0,_,v,y,b;if((h>t||h<0)&&(r+=h-n),i+=h,y=i-r,_=y-o,(_>0||g)&&(b=++d.frame,f=y-d.time*1e3,d.time=y/=1e3,o+=_+(_>=a?4:a-_),v=1),g||(c=l(u)),v)for(p=0;p<s.length;p++)s[p](y,f,b,m)};return d={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(e){return f/(1e3/(e||60))},wake:function(){Wn&&(!Bn&&Tn()&&(zn=Bn=window,Vn=zn.document||{},Hn.gsap=Va,(zn.gsapVersions||(zn.gsapVersions=[])).push(Va.version),Gn(Un||zn.GreenSockGlobals||!zn.gsap&&zn||{}),Ei.forEach(Di)),u=typeof requestAnimationFrame<`u`&&requestAnimationFrame,c&&d.sleep(),l=u||function(e){return setTimeout(e,o-d.time*1e3+1|0)},Li=1,m(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(c),Li=0,l=Yn},lagSmoothing:function(e,r){t=e||1/0,n=Math.min(r||33,t)},fps:function(e){a=1e3/(e||240),o=d.time*1e3+a},add:function(e,t,n){var r=t?function(t,n,i,a){e(t,n,i,a),d.remove(r)}:e;return d.remove(e),s[n?`unshift`:`push`](r),zi(),r},remove:function(e,t){~(t=s.indexOf(e))&&s.splice(t,1)&&p>=t&&p--},_listeners:s},d}(),zi=function(){return!Li&&Ri.wake()},Z={},Bi=/^[\d.\-M][\d.\-,\s]/,Vi=/["']/g,Hi=function(e){for(var t={},n=e.substr(1,e.length-3).split(`:`),r=n[0],i=1,a=n.length,o,s,c;i<a;i++)s=n[i],o=i===a-1?s.length:s.lastIndexOf(`,`),c=s.substr(0,o),t[r]=isNaN(c)?c.replace(Vi,``).trim():+c,r=s.substr(o+1).trim();return t},Ui=function(e){var t=e.indexOf(`(`)+1,n=e.indexOf(`)`),r=e.indexOf(`(`,t);return e.substring(t,~r&&r<n?e.indexOf(`)`,n+1):n)},Wi=function(e){var t=(e+``).split(`(`),n=Z[t[0]];return n&&t.length>1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[Hi(t[1])]:Ui(e).split(`,`).map(yr)):Z._CE&&Bi.test(e)?Z._CE(``,e):n},Gi=function(e){return function(t){return 1-e(1-t)}},Ki=function(e,t){return e&&(bn(e)?e:Z[e]||Wi(e))||t},qi=function(e,t,n,r){n===void 0&&(n=function(e){return 1-t(1-e)}),r===void 0&&(r=function(e){return e<.5?t(e*2)/2:1-t((1-e)*2)/2});var i={easeIn:t,easeOut:n,easeInOut:r},a;return dr(e,function(e){for(var t in Z[e]=Hn[e]=i,Z[a=e.toLowerCase()]=n,i)Z[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=Z[e+`.`+t]=i[t]}),i},Ji=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},Yi=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/pn*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*vn((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:Ji(s);return a=pn/a,c.config=function(n,r){return e(t,n,r)},c},Xi=function e(t,n){n===void 0&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},i=t===`out`?r:t===`in`?function(e){return 1-r(1-e)}:Ji(r);return i.config=function(n){return e(t,n)},i};dr(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;qi(e+`,Power`+(n-1),t?function(e){return e**+n}:function(e){return e},function(e){return 1-(1-e)**n},function(e){return e<.5?(e*2)**n/2:1-((1-e)*2)**n/2})}),Z.Linear.easeNone=Z.none=Z.Linear.easeIn,qi(`Elastic`,Yi(`in`),Yi(`out`),Yi()),(function(e,t){var n=1/t,r=2*n,i=2.5*n,a=function(a){return a<n?e*a*a:a<r?e*(a-1.5/t)**2+.75:a<i?e*(a-=2.25/t)*a+.9375:e*(a-2.625/t)**2+.984375};qi(`Bounce`,function(e){return 1-a(1-e)},a)})(7.5625,2.75),qi(`Expo`,function(e){return 2**(10*(e-1))*e+e*e*e*e*e*e*(1-e)}),qi(`Circ`,function(e){return-(gn(1-e*e)-1)}),qi(`Sine`,function(e){return e===1?1:-_n(e*mn)+1}),qi(`Back`,Xi(`in`),Xi(`out`),Xi()),Z.SteppedEase=Z.steps=Hn.SteppedEase={config:function(e,t){e===void 0&&(e=1);var n=1/e,r=e+ +!t,i=+!!t,a=1-X;return function(e){return((r*ei(0,a,e)|0)+i)*n}}},cn.ease=Z[`quad.out`],dr(`onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt`,function(e){return sr+=e+`,`+e+`Params,`});var Zi=function(e,t){this.id=hn++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:ur,this.set=t?t.getSetter:va},Qi=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,Jr(this,+e.duration,1,1),this.data=e.data,dn&&(this._ctx=dn,dn.data.push(this)),Li||Ri.wake()}var t=e.prototype;return t.delay=function(e){return e||e===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,Jr(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(zi(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(zr(this,e),!n._dp||n.parent||Br(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&Vr(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===X||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),vr(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+Fr(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+Fr(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?Ir(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-X?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?Lr(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-X?0:this._rts,this.totalTime(ei(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),Rr(this),Mr(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(zi(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==X&&(this._tTime-=X)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=pr(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&Vr(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(wn(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Lr(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=Qn);var t=un;return un=e,_r(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),un=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,Yr(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,Yr(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(Zr(this,e),wn(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,wn(t)),this._dur||(this._zTime=-X),this},t.play=function(e,t){return e!=null&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return e!=null&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return e!=null&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-X:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-X,this},t.isActive=function(){var e=this.parent||this._dp,t=this._start,n;return!!(!e||this._ts&&this._initted&&e.isActive()&&(n=e.rawTime(!0))>=t&&n<this.endTime(!0)-X)},t.eventCallback=function(e,t,n){var r=this.vars;return arguments.length>1?(t?(r[e]=t,n&&(r[e+`Params`]=n),e===`onUpdate`&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var i=bn(e)?e:br,a=function(){var e=t.then;t.then=null,n&&n(),bn(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),r(i),t.then=e};t._initted&&t.totalProgress()===1&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){wi(this)},e}();xr(Qi.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-X,_prom:0,_ps:!1,_rts:1});var $i=function(e){on(t,e);function t(t,n){var r;return t===void 0&&(t={}),r=e.call(this,t)||this,r.labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=wn(t.sortChildren),Rn&&Vr(t.parent||Rn,an(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&Hr(an(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return Qr(0,arguments,this),this},n.from=function(e,t,n){return Qr(1,arguments,this),this},n.fromTo=function(e,t,n,r){return Qr(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,Er(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new pa(e,t,Zr(this,n),1),this},n.call=function(e,t,n){return Vr(this,pa.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,r,i,a,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new pa(e,n,Zr(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,Er(n).immediateRender=wn(n.immediateRender),this.staggerTo(e,t,n,r,i,a,o)},n.staggerFromTo=function(e,t,n,r,i,a,o,s){return r.startAt=n,Er(r).immediateRender=wn(r.immediateRender),this.staggerTo(e,t,r,i,a,o,s)},n.render=function(e,t,n){var r=this._time,i=this._dirty?this.totalDuration():this._tDur,a=this._dur,o=e<=0?0:pr(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,l,u,d,f,p,m,h,g,_,v,y;if(this!==Rn&&o>i&&e>=0&&(o=i),o!==this._tTime||n||s){if(r!==this._time&&a&&(o+=this._time-r,e+=this._time-r),c=o,g=this._start,h=this._ts,p=!h,s&&(a||(r=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(v=this._yoyo,f=a+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(f*100+e,t,n);if(c=pr(o%f),o===i?(d=this._repeat,c=a):(_=pr(o/f),d=~~_,d&&d===_&&(c=a,d--),c>a&&(c=a)),_=Ir(this._tTime,f),!r&&this._tTime&&_!==d&&this._tTime-_*f-this._dur<=0&&(_=d),v&&d&1&&(c=a-c,y=1),d!==_&&!this._lock){var b=v&&_&1,x=b===(v&&d&1);if(d<_&&(b=!b),r=b?0:o%a?a:o,this._lock=1,this.render(r||(y?0:pr(d*f)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&Ci(this,`onRepeat`),this.vars.repeatRefresh&&!y&&(this.invalidate()._lock=1,_=d),r&&r!==this._time||p!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act||(a=this._dur,i=this._tDur,x&&(this._lock=2,r=b?a:-1e-4,this.render(r,!0),this.vars.repeatRefresh&&!y&&this.invalidate()),this._lock=0,!this._ts&&!p))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(m=qr(this,pr(r),pr(c)),m&&(o-=c-(c=m._start))),this._tTime=o,this._time=c,this._act=!!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,r=0),!r&&o&&a&&!t&&!_&&(Ci(this,`onStart`),this._tTime!==o))return this;if(c>=r&&e>=0)for(l=this._first;l;){if(u=l._next,(l._act||c>=l._start)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(c-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(c-l._start)*l._ts,t,n),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=-X);break}}l=u}else{l=this._last;for(var S=e<0?e:c;l;){if(u=l._prev,(l._act||S<=l._end)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(S-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(S-l._start)*l._ts,t,n||un&&_r(l)),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=S?-X:X);break}}l=u}}if(m&&!t&&(this.pause(),m.render(c>=r?0:-X)._zTime=c>=r?1:-1,this._ts))return this._start=g,Rr(this),this.render(e,t,n);this._onUpdate&&!t&&Ci(this,`onUpdate`,!0),(o===i&&this._tTime>=this.totalDuration()||!o&&r)&&(g===this._start||Math.abs(h)!==Math.abs(this._ts))&&(this._lock||((e||!a)&&(o===i&&this._ts>0||!o&&this._ts<0)&&Ar(this,1),!t&&!(e<0&&!r)&&(o||r||!i)&&(Ci(this,o===i&&e>=0?`onComplete`:`onReverseComplete`,!0),this._prom&&!(o<i&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(e,t){var n=this;if(xn(t)||(t=Zr(this,t,e)),!(e instanceof Qi)){if(On(e))return e.forEach(function(e){return n.add(e,t)}),this;if(yn(e))return this.addLabel(e,t);if(bn(e))e=pa.delayedCall(0,e);else return this}return this===e?this:Vr(this,e,t)},n.getChildren=function(e,t,n,r){e===void 0&&(e=!0),t===void 0&&(t=!0),n===void 0&&(n=!0),r===void 0&&(r=-fn);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof pa?t&&i.push(a):(n&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,n)))),a=a._next;return i},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return yn(e)?this.removeLabel(e):bn(e)?this.killTweensOf(e):(e.parent===this&&kr(this,e),e===this._recent&&(this._recent=this._last),jr(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=pr(Ri.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=Zr(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=pa.delayedCall(0,t||Yn,n);return r.data=`isPause`,this._hasPause=1,Vr(this,r,Zr(this,e))},n.removePause=function(e){var t=this._first;for(e=Zr(this,e);t;)t._start===e&&t.data===`isPause`&&Ar(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)ia!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=oi(e),i=this._first,a=xn(t),o;i;)i instanceof pa?hr(i._targets,r)&&(a?(!ia||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&n.push(i):(o=i.getTweensOf(r,t)).length&&n.push.apply(n,o),i=i._next;return n},n.tweenTo=function(e,t){t||={};var n=this,r=Zr(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=pa.to(n,xr({ease:t.ease||`none`,lazy:!1,immediateRender:!1,time:r,overwrite:`auto`,duration:t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale())||X,onStart:function(){if(n.pause(),!l){var e=t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale());u._dur!==e&&Jr(u,e,0,1).render(u._time,!0,!0),l=1}o&&o.apply(u,s||[])}},t));return c?u.render(0):u},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,xr({startAt:{time:Zr(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),Si(this,Zr(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),Si(this,Zr(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+X)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=pr(e);r;)r._start>=n&&(r._start+=e,r._end+=e),r=r._next;if(t)for(a in i)i[a]>=n&&(i[a]+=e);return jr(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){e===void 0&&(e=!0);for(var t=this._first,n;t;)n=t._next,this.remove(t),t=n;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),jr(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=fn,a,o,s;if(arguments.length)return n.timeScale((n._repeat<0?n.duration():n.totalDuration())/(n.reversed()?-e:e));if(n._dirty){for(s=n.parent;r;)a=r._prev,r._dirty&&r.totalDuration(),o=r._start,o>i&&n._sort&&r._ts&&!n._lock?(n._lock=1,Vr(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=pr(o/n._ts),n._time-=o,n._tTime-=o),n.shiftChildren(-o,!1,-1/0),i=0),r._end>t&&r._ts&&(t=r._end),r=a;Jr(n,n===Rn&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(Rn._ts&&(vr(Rn,Lr(e,Rn)),nr=Ri.frame),Ri.frame>=ar){ar+=sn.autoSleep||120;var t=Rn._first;if((!t||!t._ts)&&sn.autoSleep&&Ri._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||Ri.sleep()}}},t}(Qi);xr($i.prototype,{_lock:0,_hasPause:0,_forcing:0});var ea=function(e,t,n,r,i,a,o){var s=new Da(this._pt,e,t,0,1,xa,null,i),c=0,l=0,u,d,f,p,m,h,g,_;for(s.b=n,s.e=r,n+=``,r+=``,(g=~r.indexOf(`random(`))&&(r=yi(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(Pn)||[];u=Pn.exec(r);)p=u[0],m=r.substring(c,u.index),f?f=(f+1)%5:m.substr(-5)===`rgba(`&&(f=1),p!==d[l++]&&(h=parseFloat(d[l-1])||0,s._pt={_next:s._pt,p:m||l===1?m:`,`,s:h,c:p.charAt(1)===`=`?mr(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=Pn.lastIndex);return s.c=c<r.length?r.substring(c,r.length):``,s.fp=o,(Fn.test(r)||g)&&(s.e=0),this._pt=s,s},ta=function(e,t,n,r,i,a,o,s,c,l){bn(r)&&(r=r(i||0,e,a));var u=e[t],d=n===`get`?bn(u)?c?e[t.indexOf(`set`)||!bn(e[`get`+t.substr(3)])?t:`get`+t.substr(3)](c):e[t]():u:n,f=bn(u)?c?ga:ha:ma,p;if(yn(r)&&(~r.indexOf(`random(`)&&(r=yi(r)),r.charAt(1)===`=`&&(p=mr(d,r)+(ti(d)||0),(p||p===0)&&(r=p))),!l||d!==r||aa)return!isNaN(d*r)&&r!==``?(p=new Da(this._pt,e,t,+d||0,r-(d||0),typeof u==`boolean`?ba:ya,0,f),c&&(p.fp=c),o&&p.modifier(o,this,e),this._pt=p):(!u&&!(t in e)&&Kn(t,r),ea.call(this,e,t,d,r,f,s||sn.stringFilter,c))},na=function(e,t,n,r,i){if(bn(e)&&(e=ua(e,i,t,n,r)),!Cn(e)||e.style&&e.nodeType||On(e)||Dn(e))return yn(e)?ua(e,i,t,n,r):e;var a={},o;for(o in e)a[o]=ua(e[o],i,t,n,r);return a},ra=function(e,t,n,r,i,a){var o,s,c,l;if(rr[e]&&(o=new rr[e]).init(i,o.rawVars?t[e]:na(t[e],r,i,a,n),n,r,a)!==!1&&(n._pt=s=new Da(n._pt,i,e,0,1,o.render,o,0,o.priority),n!==Ti))for(c=n._ptLookup[n._targets.indexOf(i)],l=o._props.length;l--;)c[o._props[l]]=s;return o},ia,aa,oa=function e(t,n,r){var i=t.vars,a=i.ease,o=i.startAt,s=i.immediateRender,c=i.lazy,l=i.onUpdate,u=i.runBackwards,d=i.yoyoEase,f=i.keyframes,p=i.autoRevert,m=t._dur,h=t._startAt,g=t._targets,_=t.parent,v=_&&_.data===`nested`?_.vars.targets:g,y=t._overwrite===`auto`&&!ln,b=t.timeline,x=i.easeReverse||d,S,C,w,T,E,D,O,k,A,j,M,ee,te;if(b&&(!f||!a)&&(a=`none`),t._ease=Ki(a,cn.ease),t._rEase=x&&(Ki(x)||t._ease),t._from=!b&&!!i.runBackwards,t._from&&(t.ratio=1),!b||f&&!i.stagger){if(k=g[0]?lr(g[0]).harness:0,ee=k&&i[k.prop],S=Tr(i,$n),h&&(h._zTime<0&&h.progress(1),n<0&&u&&s&&!p?h.render(-1,!0):h.revert(u&&m?Zn:Xn),h._lazy=0),o){if(Ar(t._startAt=pa.set(g,xr({data:`isStart`,overwrite:!1,parent:_,immediateRender:!0,lazy:!h&&wn(c),startAt:null,delay:0,onUpdate:l&&function(){return Ci(t,`onUpdate`)},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(un||!s&&!p)&&t._startAt.revert(Zn),s&&m&&n<=0&&r<=0){n&&(t._zTime=n);return}}else if(u&&m&&!h){if(n&&(s=!1),w=xr({overwrite:!1,data:`isFromStart`,lazy:s&&!h&&wn(c),immediateRender:s,stagger:0,parent:_},S),ee&&(w[k.prop]=ee),Ar(t._startAt=pa.set(g,w)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(un?t._startAt.revert(Zn):t._startAt.render(-1,!0)),t._zTime=n,!s)e(t._startAt,X,X);else if(!n)return}for(t._pt=t._ptCache=0,c=m&&wn(c)||c&&!m,C=0;C<g.length;C++){if(E=g[C],O=E._gsap||cr(g)[C]._gsap,t._ptLookup[C]=j={},tr[O.id]&&er.length&&gr(),M=v===g?C:v.indexOf(E),k&&(A=new k).init(E,ee||S,t,M,v)!==!1&&(t._pt=T=new Da(t._pt,E,A.name,0,1,A.render,A,0,A.priority),A._props.forEach(function(e){j[e]=T}),A.priority&&(D=1)),!k||ee)for(w in S)rr[w]&&(A=ra(w,S,t,M,E,v))?A.priority&&(D=1):j[w]=T=ta.call(t,E,w,`get`,S[w],M,v,0,i.stringFilter);t._op&&t._op[C]&&t.kill(E,t._op[C]),y&&t._pt&&(ia=t,Rn.killTweensOf(E,j,t.globalTime(n)),te=!t.parent,ia=0),t._pt&&c&&(tr[O.id]=1)}D&&Ea(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!te,f&&n<=0&&b.render(fn,!0,!0)},sa=function(e,t,n,r,i,a,o,s){var c=(e._pt&&e._ptCache||(e._ptCache={}))[t],l,u,d,f;if(!c)for(c=e._ptCache[t]=[],d=e._ptLookup,f=e._targets.length;f--;){if(l=d[f][t],l&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return aa=1,e.vars[t]=`+=0`,oa(e,o),aa=0,s?qn(t+` not eligible for reset. Try splitting into individual properties`):1;c.push(l)}for(f=c.length;f--;)u=c[f],l=u._pt||u,l.s=(r||r===0)&&!i?r:l.s+(r||0)+a*l.c,l.c=n-l.s,u.e&&(u.e=fr(n)+ti(u.e)),u.b&&(u.b=l.s+ti(u.b))},ca=function(e,t){var n=e[0]?lr(e[0]).harness:0,r=n&&n.aliases,i,a,o,s;if(!r)return t;for(a in i=Cr({},t),r)if(a in i)for(s=r[a].split(`,`),o=s.length;o--;)i[s[o]]=i[a];return i},la=function(e,t,n,r){var i=t.ease||r||`power1.inOut`,a,o;if(On(t))o=n[e]||(n[e]=[]),t.forEach(function(e,n){return o.push({t:n/(t.length-1)*100,v:e,e:i})});else for(a in t)o=n[a]||(n[a]=[]),a===`ease`||o.push({t:parseFloat(e),v:t[a],e:i})},ua=function(e,t,n,r,i){return bn(e)?e.call(t,n,r,i):yn(e)&&~e.indexOf(`random(`)?yi(e):e},da=sr+`repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert`,fa={};dr(da+`,id,stagger,delay,duration,paused,scrollTrigger`,function(e){return fa[e]=1});var pa=function(e){on(t,e);function t(t,n,r,i){var a;typeof n==`number`&&(r.duration=n,n=r,r=null),a=e.call(this,i?n:Er(n))||this;var o=a.vars,s=o.duration,c=o.delay,l=o.immediateRender,u=o.stagger,d=o.overwrite,f=o.keyframes,p=o.defaults,m=o.scrollTrigger,h=n.parent||Rn,g=(On(t)||Dn(t)?xn(t[0]):`length`in n)?[t]:oi(t),_,v,y,b,x,S,C,w;if(a._targets=g.length?cr(g):qn(`GSAP target `+t+` not found. https://gsap.com`,!sn.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=d,f||u||En(s)||En(c)){n=a.vars;var T=n.easeReverse||n.yoyoEase;if(_=a.timeline=new $i({data:`nested`,defaults:p||{},targets:h&&h.data===`nested`?h.vars.targets:g}),_.kill(),_.parent=_._dp=an(a),_._start=0,u||En(s)||En(c)){if(b=g.length,C=u&&li(u),Cn(u))for(x in u)~da.indexOf(x)&&(w||={},w[x]=u[x]);for(v=0;v<b;v++)y=Tr(n,fa),y.stagger=0,T&&(y.easeReverse=T),w&&Cr(y,w),S=g[v],y.duration=+ua(s,an(a),v,S,g),y.delay=(+ua(c,an(a),v,S,g)||0)-a._delay,!u&&b===1&&y.delay&&(a._delay=c=y.delay,a._start+=c,y.delay=0),_.to(S,y,C?C(v,S,g):0),_._ease=Z.none;_.duration()?s=c=0:a.timeline=0}else if(f){Er(xr(_.vars.defaults,{ease:`none`})),_._ease=Ki(f.ease||n.ease||`none`);var E=0,D,O,k;if(On(f))f.forEach(function(e){return _.to(g,e,`>`)}),_.duration();else{for(x in y={},f)x===`ease`||x===`easeEach`||la(x,f[x],y,f.easeEach);for(x in y)for(D=y[x].sort(function(e,t){return e.t-t.t}),E=0,v=0;v<D.length;v++)O=D[v],k={ease:O.e,duration:(O.t-(v?D[v-1].t:0))/100*s},k[x]=O.v,_.to(g,k,E),E+=k.duration;_.duration()<s&&_.to({},{duration:s-_.duration()})}}s||a.duration(s=_.duration())}else a.timeline=0;return d===!0&&!ln&&(ia=an(a),Rn.killTweensOf(g),ia=0),Vr(h,an(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(l||!s&&!f&&a._start===pr(h._time)&&wn(l)&&Pr(an(a))&&h.data!==`nested`)&&(a._tTime=-X,a.render(Math.max(0,-c)||0)),m&&Hr(an(a),m),a}var n=t.prototype;return n.render=function(e,t,n){var r=this._time,i=this._tDur,a=this._dur,o=e<0,s=e>i-X&&!o?i:e<X?0:e,c,l,u,d,f,p,m,h;if(!a)Kr(this,e,t,n);else if(s!==this._tTime||!e||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==o||this._lazy){if(c=s,h=this.timeline,this._repeat){if(d=a+this._rDelay,this._repeat<-1&&o)return this.totalTime(d*100+e,t,n);if(c=pr(s%d),s===i?(u=this._repeat,c=a):(f=pr(s/d),u=~~f,u&&u===f?(c=a,u--):c>a&&(c=a)),p=this._yoyo&&u&1,p&&(c=a-c),f=Ir(this._tTime,d),c===r&&!n&&this._initted&&u===f)return this._tTime=s,this;u!==f&&this.vars.repeatRefresh&&!p&&!this._lock&&c!==d&&this._initted&&(this._lock=n=1,this.render(pr(d*u),!0).invalidate()._lock=0)}if(!this._initted){if(Ur(this,o?e:c,n,t,s))return this._tTime=0,this;if(r!==this._time&&!(n&&this.vars.repeatRefresh&&u!==f))return this;if(a!==this._dur)return this.render(e,t,n)}if(this._rEase){var g=c<r;if(g!==this._inv){var _=g?r:a-r;this._inv=g,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=r,this._invRecip=_?(g?-1:1)/_:0,this._invScale=g?-this.ratio:1-this.ratio,this._invEase=g?this._rEase:this._ease}this.ratio=m=this._invRatio+this._invScale*this._invEase((c-this._invTime)*this._invRecip)}else this.ratio=m=this._ease(c/a);if(this._from&&(this.ratio=m=1-m),this._tTime=s,this._time=c,!this._act&&this._ts&&(this._act=1,this._lazy=0),!r&&s&&!t&&!f&&(Ci(this,`onStart`),this._tTime!==s))return this;for(l=this._pt;l;)l.r(m,l.d),l=l._next;h&&h.render(e<0?e:h._dur*h._ease(c/this._dur),t,n)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(o&&Nr(this,e,t,n),Ci(this,`onUpdate`)),this._repeat&&u!==f&&this.vars.onRepeat&&!t&&this.parent&&Ci(this,`onRepeat`),(s===this._tDur||!s)&&this._tTime===s&&(o&&!this._onUpdate&&Nr(this,e,!0,!0),(e||!a)&&(s===this._tDur&&this._ts>0||!s&&this._ts<0)&&Ar(this,1),!t&&!(o&&!r)&&(s||r||p)&&(Ci(this,s===i?`onComplete`:`onReverseComplete`,!0),this._prom&&!(s<i&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,r,i){Li||Ri.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||oa(this,a),o=this._ease(a/this._dur),sa(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(zr(this,0),this.parent||Or(this._dp,this,`_first`,`_last`,this._dp._sort?`_start`:0),this.render(0))},n.kill=function(e,t){if(t===void 0&&(t=`all`),!e&&(!t||t===`all`))return this._lazy=this._pt=0,this.parent?wi(this):this.scrollTrigger&&this.scrollTrigger.kill(!!un),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,ia&&ia.vars.overwrite!==!0)._first||wi(this),this.parent&&n!==this.timeline.totalDuration()&&Jr(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?oi(e):r,a=this._ptLookup,o=this._pt,s,c,l,u,d,f,p;if((!t||t===`all`)&&Dr(r,i))return t===`all`&&(this._pt=0),wi(this);for(s=this._op=this._op||[],t!==`all`&&(yn(t)&&(d={},dr(t,function(e){return d[e]=1}),t=d),t=ca(r,t)),p=r.length;p--;)if(~i.indexOf(r[p]))for(d in c=a[p],t===`all`?(s[p]=t,u=c,l={}):(l=s[p]=s[p]||{},u=t),u)f=c&&c[d],f&&((!(`kill`in f.d)||f.d.kill(d)===!0)&&kr(this,f,`_pt`),delete c[d]),l!==`all`&&(l[d]=1);return this._initted&&!this._pt&&o&&wi(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return Qr(1,arguments)},t.delayedCall=function(e,n,r,i){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},t.fromTo=function(e,t,n){return Qr(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return Rn.killTweensOf(e,t,n)},t}(Qi);xr(pa.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),dr(`staggerTo,staggerFrom,staggerFromTo`,function(e){pa[e]=function(){var t=new $i,n=ri.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var ma=function(e,t,n){return e[t]=n},ha=function(e,t,n){return e[t](n)},ga=function(e,t,n,r){return e[t](r.fp,n)},_a=function(e,t,n){return e.setAttribute(t,n)},va=function(e,t){return bn(e[t])?ha:Sn(e[t])&&e.setAttribute?_a:ma},ya=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},ba=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},xa=function(e,t){var n=t._pt,r=``;if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},Sa=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},Ca=function(e,t,n,r){for(var i=this._pt,a;i;)a=i._next,i.p===r&&i.modifier(e,t,n),i=a},wa=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?kr(this,t,`_pt`):t.dep||(n=1),t=r;return!n},Ta=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},Ea=function(e){for(var t=e._pt,n,r,i,a;t;){for(n=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:a)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:a=t,t=n}e._pt=i},Da=function(){function e(e,t,n,r,i,a,o,s,c){this.t=t,this.s=r,this.c=i,this.p=n,this.r=a||ya,this.d=o||this,this.set=s||ma,this.pr=c||0,this._next=e,e&&(e._prev=this)}var t=e.prototype;return t.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=Ta,this.m=e,this.mt=n,this.tween=t},e}();dr(sr+`parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse`,function(e){return $n[e]=1}),Hn.TweenMax=Hn.TweenLite=pa,Hn.TimelineLite=Hn.TimelineMax=$i,Rn=new $i({sortChildren:!1,defaults:cn,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),sn.stringFilter=Ii;var Oa=[],ka={},Aa=[],ja=0,Ma=0,Na=function(e){return(ka[e]||Aa).map(function(e){return e()})},Pa=function(){var e=Date.now(),t=[];e-ja>2&&(Na(`matchMediaInit`),Oa.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=zn.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),Na(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),ja=e,Na(`matchMedia`))},Fa=function(){function e(e,t){this.selector=t&&si(t),this.data=[],this._r=[],this.isReverted=!1,this.id=Ma++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){bn(e)&&(n=t,t=e,e=bn);var r=this,i=function(){var e=dn,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=si(n)),dn=r,a=t.apply(r,arguments),bn(a)&&r._r.push(a),dn=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===bn?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=dn;dn=null,e(this),dn=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof pa&&!(n.parent&&n.parent.data===`nested`)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e?(function(){for(var t=n.getTweens(),r=n.data.length,i;r--;)i=n.data[r],i.data===`isFlip`&&(i.revert(),i.getChildren(!0,!0,!1).forEach(function(e){return t.splice(t.indexOf(e),1)}));for(t.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),r=n.data.length;r--;)i=n.data[r],i instanceof $i?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof pa)&&i.revert&&i.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0})():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),t)for(var r=Oa.length;r--;)Oa[r].id===this.id&&Oa.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),Ia=function(){function e(e){this.contexts=[],this.scope=e,dn&&dn.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){Cn(e)||(e={matches:e});var r=new Fa(0,n||this.scope),i=r.conditions={},a,o,s;for(o in dn&&!r.selector&&(r.selector=dn.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=zn.matchMedia(e[o]),a&&(Oa.indexOf(r)<0&&Oa.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(Pa):a.addEventListener(`change`,Pa)));return s&&t(r,function(e){return r.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),La={registerPlugin:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(function(e){return Di(e)})},timeline:function(e){return new $i(e)},getTweensOf:function(e,t){return Rn.getTweensOf(e,t)},getProperty:function(e,t,n,r){yn(e)&&(e=oi(e)[0]);var i=lr(e||{}).get,a=n?br:yr;return n===`native`&&(n=``),e&&(t?a((rr[t]&&rr[t].get||i)(e,t,n,r)):function(t,n,r){return a((rr[t]&&rr[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=oi(e),e.length>1){var r=e.map(function(e){return Va.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=rr[t],o=lr(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;Ti._pt=0,r.init(e,n?t+n:t,Ti,0,[e]),r.render(1,r),Ti._pt&&Sa(1,Ti)}:o.set(e,s);return a?c:function(t){return c(e,s,n?t+n:t,o,1)}},quickTo:function(e,t,n){var r,i=Va.to(e,xr((r={},r[t]=`+=0.1`,r.paused=!0,r.stagger=0,r),n||{})),a=function(e,n,r){return i.resetTo(t,e,n,r)};return a.tween=i,a},isTweening:function(e){return Rn.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Ki(e.ease,cn.ease)),wr(cn,e||{})},config:function(e){return wr(sn,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,a=e.extendTimeline;(r||``).split(`,`).forEach(function(e){return e&&!rr[e]&&!Hn[e]&&qn(t+` effect requires `+e+` plugin.`)}),ir[t]=function(e,t,r){return n(oi(e),xr(t||{},i),r)},a&&($i.prototype[t]=function(e,n,r){return this.add(ir[t](e,Cn(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){Z[e]=Ki(t)},parseEase:function(e,t){return arguments.length?Ki(e,t):Z},getById:function(e){return Rn.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new $i(e),r,i;for(n.smoothChildTiming=wn(e.smoothChildTiming),Rn.remove(n),n._dp=0,n._time=n._tTime=Rn._time,r=Rn._first;r;)i=r._next,(t||!(!r._dur&&r instanceof pa&&r.vars.onComplete===r._targets[0]))&&Vr(n,r,r._start-r._delay),r=i;return Vr(Rn,n,0),n},context:function(e,t){return e?new Fa(e,t):dn},matchMedia:function(e){return new Ia(e)},matchMediaRefresh:function(){return Oa.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||Pa()},addEventListener:function(e,t){var n=ka[e]||(ka[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=ka[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:_i,wrapYoyo:vi,distribute:li,random:fi,snap:di,normalize:hi,getUnit:ti,clamp:ni,splitColor:ji,toArray:oi,selector:si,mapRange:bi,pipe:pi,unitize:mi,interpolate:xi,shuffle:ci},install:Gn,effects:ir,ticker:Ri,updateRoot:$i.updateRoot,plugins:rr,globalTimeline:Rn,core:{PropTween:Da,globals:Jn,Tween:pa,Timeline:$i,Animation:Qi,getCache:lr,_removeLinkedListItem:kr,reverting:function(){return un},context:function(e){return e&&dn&&(dn.data.push(e),e._ctx=dn),dn},suppressOverwrites:function(e){return ln=e}}};dr(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return La[e]=pa[e]}),Ri.add($i.updateRoot),Ti=La.to({},{duration:0});var Ra=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},za=function(e,t){var n=e._targets,r,i,a;for(r in t)for(i=n.length;i--;)a=e._ptLookup[i][r],(a&&=a.d)&&(a._pt&&(a=Ra(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},Ba=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(yn(n)&&(r={},dr(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}za(e,n)}}}},Va=La.registerPlugin({name:`attr`,init:function(e,t,n,r,i){var a,o,s;for(a in this.tween=n,t)s=e.getAttribute(a)||``,o=this.add(e,`setAttribute`,(s||0)+``,t[a],r,i,0,0,a),o.op=a,o.b=s,this._props.push(a)},render:function(e,t){for(var n=t._pt;n;)un?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:`endArray`,headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},Ba(`roundProps`,ui),Ba(`modifiers`),Ba(`snap`,di))||La;pa.version=$i.version=Va.version=`3.15.0`,Wn=1,Tn()&&zi(),Z.Power0,Z.Power1,Z.Power2,Z.Power3,Z.Power4,Z.Linear,Z.Quad,Z.Cubic,Z.Quart,Z.Quint,Z.Strong,Z.Elastic,Z.Back,Z.SteppedEase,Z.Bounce,Z.Sine,Z.Expo,Z.Circ;var Ha,Ua,Wa,Ga,Ka,qa,Ja,Ya=function(){return typeof window<`u`},Xa={},Za=180/Math.PI,Qa=Math.PI/180,$a=Math.atan2,eo=1e8,to=/([A-Z])/g,no=/(left|right|width|margin|padding|x)/i,ro=/[\s,\(]\S/,io={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},ao=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},oo=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},so=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},co=function(e,t){return t.set(t.t,t.p,e===1?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},lo=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},uo=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},fo=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},po=function(e,t,n){return e.style[t]=n},mo=function(e,t,n){return e.style.setProperty(t,n)},ho=function(e,t,n){return e._gsap[t]=n},go=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},_o=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},vo=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},yo=`transform`,bo=yo+`Origin`,xo=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in Xa&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=io[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=Bo(i,e)}):this.tfm[t]=o.x?o[t]:Bo(i,t),t===bo&&(this.tfm.zOrigin=o.zOrigin);else return io.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(yo)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(bo,n,``)),t=yo}(a||n)&&this.props.push(t,n,a[t])},So=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},Co=function(){var e=this.props,t=this.target,n=t.style,r=t._gsap,i,a;for(i=0;i<e.length;i+=3)e[i+1]?e[i+1]===2?t[e[i]](e[i+2]):t[e[i]]=e[i+2]:e[i+2]?n[e[i]]=e[i+2]:n.removeProperty(e[i].substr(0,2)===`--`?e[i]:e[i].replace(to,`-$1`).toLowerCase());if(this.tfm){for(a in this.tfm)r[a]=this.tfm[a];r.svg&&(r.renderTransform(),t.setAttribute(`data-svg-origin`,this.svgo||``)),i=Ja(),(!i||!i.isStart)&&!n[yo]&&(So(n),r.zOrigin&&n[bo]&&(n[bo]+=` `+r.zOrigin+`px`,r.zOrigin=0,r.renderTransform()),r.uncache=1)}},wo=function(e,t){var n={target:e,props:[],revert:Co,save:xo};return e._gsap||Va.core.getCache(e),t&&e.style&&e.nodeType&&t.split(`,`).forEach(function(e){return n.save(e)}),n},To,Eo=function(e,t){var n=Ua.createElementNS?Ua.createElementNS((t||`http://www.w3.org/1999/xhtml`).replace(/^https/,`http`),e):Ua.createElement(e);return n&&n.style?n:Ua.createElement(e)},Do=function e(t,n,r){var i=getComputedStyle(t);return i[n]||i.getPropertyValue(n.replace(to,`-$1`).toLowerCase())||i.getPropertyValue(n)||!r&&e(t,ko(n)||n,1)||``},Oo=`O,Moz,ms,Ms,Webkit`.split(`,`),ko=function(e,t,n){var r=(t||Ka).style,i=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(Oo[i]+e in r););return i<0?null:(i===3?`ms`:i>=0?Oo[i]:``)+e},Ao=function(){Ya()&&window.document&&(Ha=window,Ua=Ha.document,Wa=Ua.documentElement,Ka=Eo(`div`)||{style:{}},Eo(`div`),yo=ko(yo),bo=yo+`Origin`,Ka.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,To=!!ko(`perspective`),Ja=Va.core.reverting,Ga=1)},jo=function(e){var t=e.ownerSVGElement,n=Eo(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),Wa.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),Wa.removeChild(n),i},Mo=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},No=function(e){var t,n;try{t=e.getBBox()}catch{t=jo(e),n=1}return t&&(t.width||t.height)||n||(t=jo(e)),t&&!t.width&&!t.x&&!t.y?{x:+Mo(e,[`x`,`cx`,`x1`])||0,y:+Mo(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},Po=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&No(e))},Fo=function(e,t){if(t){var n=e.style,r;t in Xa&&t!==bo&&(t=yo),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(to,`-$1`).toLowerCase())):n.removeAttribute(t)}},Io=function(e,t,n,r,i,a){var o=new Da(e._pt,t,n,0,1,a?fo:uo);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},Lo={deg:1,rad:1,turn:1},Ro={grid:1,flex:1},zo=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=Ka.style,c=no.test(n),l=t.tagName.toLowerCase()===`svg`,u=(l?`client`:`offset`)+(c?`Width`:`Height`),d=100,f=i===`px`,p=i===`%`,m,h,g,_;if(i===o||!a||Lo[i]||Lo[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&Po(t),(p||o===`%`)&&(Xa[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],fr(p?a/m*d:a/100*m);if(s[c?`width`:`height`]=d+(f?o:i),h=i!==`rem`&&~n.indexOf(`adius`)||i===`em`&&t.appendChild&&!l?t:t.parentNode,_&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===Ua||!h.appendChild)&&(h=Ua.body),g=h._gsap,g&&p&&g.width&&c&&g.time===Ri.time&&!g.uncache)return fr(a/g.width*d);if(p&&(n===`height`||n===`width`)){var v=t.style[n];t.style[n]=d+i,m=t[u],v?t.style[n]=v:Fo(t,n)}else(p||o===`%`)&&!Ro[Do(h,`display`)]&&(s.position=Do(t,`position`)),h===t&&(s.position=`static`),h.appendChild(Ka),m=Ka[u],h.removeChild(Ka),s.position=`absolute`;return c&&p&&(g=lr(h),g.time=Ri.time,g.width=h[u]),fr(f?m*a/d:m&&a?d/m*a:0)},Bo=function(e,t,n,r){var i;return Ga||Ao(),t in io&&t!==`transform`&&(t=io[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),Xa[t]&&t!==`transform`?(i=Qo(e,r),i=t===`transformOrigin`?i.svg?i.origin:$o(Do(e,bo))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=Go[t]&&Go[t](e,t,n)||Do(e,t)||ur(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?zo(e,t,i,n)+n:i},Vo=function(e,t,n,r){if(!n||n===`none`){var i=ko(t,e,1),a=i&&Do(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=Do(e,`borderTopColor`))}var o=new Da(this._pt,e.style,t,0,1,xa),s=0,c=0,l,u,d,f,p,m,h,g,_,v,y,b;if(o.b=n,o.e=r,n+=``,r+=``,r.substring(0,6)===`var(--`&&(r=Do(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(m=e.style[t],e.style[t]=r,r=Do(e,t)||r,m?e.style[t]=m:Fo(e,t)),l=[n,r],Ii(l),n=l[0],r=l[1],d=n.match(Nn)||[],b=r.match(Nn)||[],b.length){for(;u=Nn.exec(r);)h=u[0],_=r.substring(s,u.index),p?p=(p+1)%5:(_.substr(-5)===`rgba(`||_.substr(-5)===`hsla(`)&&(p=1),h!==(m=d[c++]||``)&&(f=parseFloat(m)||0,y=m.substr((f+``).length),h.charAt(1)===`=`&&(h=mr(f,h)+y),g=parseFloat(h),v=h.substr((g+``).length),s=Nn.lastIndex-v.length,v||(v=v||sn.units[t]||y,s===r.length&&(r+=v,o.e+=v)),y!==v&&(f=zo(e,t,m,v)||0),o._pt={_next:o._pt,p:_||c===1?_:`,`,s:f,c:g-f,m:p&&p<4||t===`zIndex`?Math.round:0});o.c=s<r.length?r.substring(s,r.length):``}else o.r=t===`display`&&r===`none`?fo:uo;return Fn.test(r)&&(o.e=0),this._pt=o,o},Ho={top:`0%`,bottom:`100%`,left:`0%`,right:`100%`,center:`50%`},Uo=function(e){var t=e.split(` `),n=t[0],r=t[1]||`50%`;return(n===`top`||n===`bottom`||r===`left`||r===`right`)&&(e=n,n=r,r=e),t[0]=Ho[n]||n,t[1]=Ho[r]||r,t.join(` `)},Wo=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var n=t.t,r=n.style,i=t.u,a=n._gsap,o,s,c;if(i===`all`||i===!0)r.cssText=``,s=1;else for(i=i.split(`,`),c=i.length;--c>-1;)o=i[c],Xa[o]&&(s=1,o=o===`transformOrigin`?bo:yo),Fo(n,o);s&&(Fo(n,yo),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,Qo(n,1),a.uncache=1,So(r)))}},Go={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new Da(e._pt,t,n,0,0,Wo);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},Ko=[1,0,0,1,0,0],qo={},Jo=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},Yo=function(e){var t=Do(e,yo);return Jo(t)?Ko:t.substr(7).match(Mn).map(fr)},Xo=function(e,t){var n=e._gsap||lr(e),r=e.style,i=Yo(e),a,o,s,c;return n.svg&&e.getAttribute(`transform`)?(s=e.transform.baseVal.consolidate().matrix,i=[s.a,s.b,s.c,s.d,s.e,s.f],i.join(`,`)===`1,0,0,1,0,0`?Ko:i):(i===Ko&&!e.offsetParent&&e!==Wa&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,Wa.appendChild(e)),i=Yo(e),s?r.display=s:Fo(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):Wa.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},Zo=function(e,t,n,r,i,a){var o=e._gsap,s=i||Xo(e,!0),c=o.xOrigin||0,l=o.yOrigin||0,u=o.xOffset||0,d=o.yOffset||0,f=s[0],p=s[1],m=s[2],h=s[3],g=s[4],_=s[5],v=t.split(` `),y=parseFloat(v[0])||0,b=parseFloat(v[1])||0,x,S,C,w;n?s!==Ko&&(S=f*h-p*m)&&(C=h/S*y+b*(-m/S)+(m*_-h*g)/S,w=y*(-p/S)+f/S*b-(f*_-p*g)/S,y=C,b=w):(x=No(e),y=x.x+(~v[0].indexOf(`%`)?y/100*x.width:y),b=x.y+(~(v[1]||v[0]).indexOf(`%`)?b/100*x.height:b)),r||r!==!1&&o.smooth?(g=y-c,_=b-l,o.xOffset=u+(g*f+_*m)-g,o.yOffset=d+(g*p+_*h)-_):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=b,o.smooth=!!r,o.origin=t,o.originIsAbsolute=!!n,e.style[bo]=`0px 0px`,a&&(Io(a,o,`xOrigin`,c,y),Io(a,o,`yOrigin`,l,b),Io(a,o,`xOffset`,u,o.xOffset),Io(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},Qo=function(e,t){var n=e._gsap||new Zi(e);if(`x`in n&&!t&&!n.uncache)return n;var r=e.style,i=n.scaleX<0,a=`px`,o=`deg`,s=getComputedStyle(e),c=Do(e,bo)||`0`,l=u=d=m=h=g=_=v=y=0,u,d,f=p=1,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,ee,te,ne,re,N,ie,P,F;return n.svg=!!(e.getCTM&&Po(e)),s.translate&&((s.translate!==`none`||s.scale!==`none`||s.rotate!==`none`)&&(r[yo]=(s.translate===`none`?``:`translate3d(`+(s.translate+` 0 0`).split(` `).slice(0,3).join(`, `)+`) `)+(s.rotate===`none`?``:`rotate(`+s.rotate+`) `)+(s.scale===`none`?``:`scale(`+s.scale.split(` `).join(`,`)+`) `)+(s[yo]===`none`?``:s[yo])),r.scale=r.rotate=r.translate=`none`),S=Xo(e,n.svg),n.svg&&(n.uncache?(ee=e.getBBox(),c=n.xOrigin-ee.x+`px `+(n.yOrigin-ee.y)+`px`,M=``):M=!t&&e.getAttribute(`data-svg-origin`),Zo(e,M||c,!!M||n.originIsAbsolute,n.smooth!==!1,S)),b=n.xOrigin||0,x=n.yOrigin||0,S!==Ko&&(E=S[0],D=S[1],O=S[2],k=S[3],l=A=S[4],u=j=S[5],S.length===6?(f=Math.sqrt(E*E+D*D),p=Math.sqrt(k*k+O*O),m=E||D?$a(D,E)*Za:0,_=O||k?$a(O,k)*Za+m:0,_&&(p*=Math.abs(Math.cos(_*Qa))),n.svg&&(l-=b-(b*E+x*O),u-=x-(b*D+x*k))):(F=S[6],ie=S[7],ne=S[8],re=S[9],N=S[10],P=S[11],l=S[12],u=S[13],d=S[14],C=$a(F,N),h=C*Za,C&&(w=Math.cos(-C),T=Math.sin(-C),M=A*w+ne*T,ee=j*w+re*T,te=F*w+N*T,ne=A*-T+ne*w,re=j*-T+re*w,N=F*-T+N*w,P=ie*-T+P*w,A=M,j=ee,F=te),C=$a(-O,N),g=C*Za,C&&(w=Math.cos(-C),T=Math.sin(-C),M=E*w-ne*T,ee=D*w-re*T,te=O*w-N*T,P=k*T+P*w,E=M,D=ee,O=te),C=$a(D,E),m=C*Za,C&&(w=Math.cos(C),T=Math.sin(C),M=E*w+D*T,ee=A*w+j*T,D=D*w-E*T,j=j*w-A*T,E=M,A=ee),h&&Math.abs(h)+Math.abs(m)>359.9&&(h=m=0,g=180-g),f=fr(Math.sqrt(E*E+D*D+O*O)),p=fr(Math.sqrt(j*j+F*F)),C=$a(A,j),_=Math.abs(C)>2e-4?C*Za:0,y=P?1/(P<0?-P:P):0),n.svg&&(M=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!Jo(Do(e,yo)),M&&e.setAttribute(`transform`,M))),Math.abs(_)>90&&Math.abs(_)<270&&(i?(f*=-1,_+=m<=0?180:-180,m+=m<=0?180:-180):(p*=-1,_+=_<=0?180:-180)),t||=n.uncache,n.x=l-((n.xPercent=l&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-l)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+a,n.y=u-((n.yPercent=u&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-u)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+a,n.z=d+a,n.scaleX=fr(f),n.scaleY=fr(p),n.rotation=fr(m)+o,n.rotationX=fr(h)+o,n.rotationY=fr(g)+o,n.skewX=_+o,n.skewY=v+o,n.transformPerspective=y+a,(n.zOrigin=parseFloat(c.split(` `)[2])||!t&&n.zOrigin||0)&&(r[bo]=$o(c)),n.xOffset=n.yOffset=0,n.force3D=sn.force3D,n.renderTransform=n.svg?os:To?as:ts,n.uncache=0,n},$o=function(e){return(e=e.split(` `))[0]+` `+e[1]},es=function(e,t,n){var r=ti(t);return fr(parseFloat(t)+parseFloat(zo(e,`x`,n+`px`,r)))+r},ts=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,as(e,t)},ns=`0deg`,rs=`0px`,is=`) `,as=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,c=n.rotation,l=n.rotationY,u=n.rotationX,d=n.skewX,f=n.skewY,p=n.scaleX,m=n.scaleY,h=n.transformPerspective,g=n.force3D,_=n.target,v=n.zOrigin,y=``,b=g===`auto`&&e&&e!==1||g===!0;if(v&&(u!==ns||l!==ns)){var x=parseFloat(l)*Qa,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*Qa,w=Math.cos(x),a=es(_,a,S*w*-v),o=es(_,o,-Math.sin(x)*-v),s=es(_,s,C*w*-v+v)}h!==rs&&(y+=`perspective(`+h+is),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==rs||o!==rs||s!==rs)&&(y+=s!==rs||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+is),c!==ns&&(y+=`rotate(`+c+is),l!==ns&&(y+=`rotateY(`+l+is),u!==ns&&(y+=`rotateX(`+u+is),(d!==ns||f!==ns)&&(y+=`skew(`+d+`, `+f+is),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+is),_.style[yo]=y||`translate(0, 0)`},os=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.rotation,c=n.skewX,l=n.skewY,u=n.scaleX,d=n.scaleY,f=n.target,p=n.xOrigin,m=n.yOrigin,h=n.xOffset,g=n.yOffset,_=n.forceCSS,v=parseFloat(a),y=parseFloat(o),b,x,S,C,w;s=parseFloat(s),c=parseFloat(c),l=parseFloat(l),l&&(l=parseFloat(l),c+=l,s+=l),s||c?(s*=Qa,c*=Qa,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=Qa,w=Math.tan(c-l),w=Math.sqrt(1+w*w),S*=w,C*=w,l&&(w=Math.tan(l),w=Math.sqrt(1+w*w),b*=w,x*=w)),b=fr(b),x=fr(x),S=fr(S),C=fr(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=zo(f,`x`,a,`px`),y=zo(f,`y`,o,`px`)),(p||m||h||g)&&(v=fr(v+p-(p*b+m*S)+h),y=fr(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=fr(v+r/100*w.width),y=fr(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[yo]=w)},ss=function(e,t,n,r,i){var a=360,o=yn(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?Za:1)-r,c=r+s+`deg`,l,u;return o&&(l=i.split(`_`)[1],l===`short`&&(s%=a,s!==s%(a/2)&&(s+=s<0?a:-a)),l===`cw`&&s<0?s=(s+a*eo)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*eo)%a-~~(s/a)*a)),e._pt=u=new Da(e._pt,t,n,r,s,oo),u.e=c,u.u=`deg`,e._props.push(n),u},cs=function(e,t){for(var n in t)e[n]=t[n];return e},ls=function(e,t,n){var r=cs({},n._gsap),i=`perspective,force3D,transformOrigin,svgOrigin`,a=n.style,o,s,c,l,u,d,f,p;for(s in r.svg?(c=n.getAttribute(`transform`),n.setAttribute(`transform`,``),a[yo]=t,o=Qo(n,1),Fo(n,yo),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[yo],a[yo]=t,o=Qo(n,1),a[yo]=c),Xa)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=ti(c),p=ti(l),u=f===p?parseFloat(c):zo(n,s,c,p),d=parseFloat(l),e._pt=new Da(e._pt,o,s,u,d-u,ao),e._pt.u=p||0,e._props.push(s));cs(o,r)};dr(`padding,margin,Width,Radius`,function(e,t){var n=`Top`,r=`Right`,i=`Bottom`,a=`Left`,o=(t<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map(function(n){return t<2?e+n:`border`+n+e});Go[t>1?`border`+e:e]=function(e,t,n,r,i){var a,s;if(arguments.length<4)return a=o.map(function(t){return Bo(e,t,n)}),s=a.join(` `),s.split(a[0]).length===5?a[0]:s;a=(r+``).split(` `),s={},o.forEach(function(e,t){return s[e]=a[t]=a[t]||a[(t-1)/2|0]}),e.init(t,s,i)}});var us={name:`css`,register:Ao,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var a=this._props,o=e.style,s=n.vars.startAt,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;for(m in Ga||Ao(),this.styles=this.styles||wo(e),C=this.styles.props,this.tween=n,t)if(m!==`autoRound`&&(l=t[m],!(rr[m]&&ra(m,t,n,r,e,i)))){if(f=typeof l,p=Go[m],f===`function`&&(l=l.call(n,r,e,i),f=typeof l),f===`string`&&~l.indexOf(`random(`)&&(l=yi(l)),p)p(this,e,m,l,n)&&(S=1);else if(m.substr(0,2)===`--`)c=(getComputedStyle(e).getPropertyValue(m)+``).trim(),l+=``,Pi.lastIndex=0,Pi.test(c)||(h=ti(c),g=ti(l),g?h!==g&&(c=zo(e,m,c,g)+g):h&&(l+=h)),this.add(o,`setProperty`,c,l,r,i,0,0,m),a.push(m),C.push(m,0,o[m]);else if(f!==`undefined`){if(s&&m in s?(c=typeof s[m]==`function`?s[m].call(n,r,e,i):s[m],yn(c)&&~c.indexOf(`random(`)&&(c=yi(c)),ti(c+``)||c===`auto`||(c+=sn.units[m]||ti(Bo(e,m))||``),(c+``).charAt(1)===`=`&&(c=Bo(e,m))):c=Bo(e,m),d=parseFloat(c),_=f===`string`&&l.charAt(1)===`=`&&l.substr(0,2),_&&(l=l.substr(2)),u=parseFloat(l),m in io&&(m===`autoAlpha`&&(d===1&&Bo(e,`visibility`)===`hidden`&&u&&(d=0),C.push(`visibility`,0,o.visibility),Io(this,o,`visibility`,d?`inherit`:`hidden`,u?`inherit`:`hidden`,!u)),m!==`scale`&&m!==`transform`&&(m=io[m],~m.indexOf(`,`)&&(m=m.split(`,`)[0]))),v=m in Xa,v){if(this.styles.save(m),w=l,f===`string`&&l.substring(0,6)===`var(--`){if(l=Do(e,l.substring(4,l.indexOf(`)`))),l.substring(0,5)===`calc(`){var T=e.style.perspective;e.style.perspective=l,l=Do(e,`perspective`),T?e.style.perspective=T:Fo(e,`perspective`)}u=parseFloat(l)}if(y||(b=e._gsap,b.renderTransform&&!t.parseTransform||Qo(e,t.parseTransform),x=t.smoothOrigin!==!1&&b.smooth,y=this._pt=new Da(this._pt,o,yo,0,1,b.renderTransform,b,0,-1),y.dep=1),m===`scale`)this._pt=new Da(this._pt,b,`scaleY`,b.scaleY,(_?mr(b.scaleY,_+u):u)-b.scaleY||0,ao),this._pt.u=0,a.push(`scaleY`,m),m+=`X`;else if(m===`transformOrigin`){C.push(bo,0,o[bo]),l=Uo(l),b.svg?Zo(e,l,0,x,0,this):(g=parseFloat(l.split(` `)[2])||0,g!==b.zOrigin&&Io(this,b,`zOrigin`,b.zOrigin,g),Io(this,o,m,$o(c),$o(l)));continue}else if(m===`svgOrigin`){Zo(e,l,1,x,0,this);continue}else if(m in qo){ss(this,b,m,d,_?mr(d,_+l):l);continue}else if(m===`smoothOrigin`){Io(this,b,`smooth`,b.smooth,l);continue}else if(m===`force3D`){b[m]=l;continue}else if(m===`transform`){ls(this,l,e);continue}}else m in o||(m=ko(m)||m);if(v||(u||u===0)&&(d||d===0)&&!ro.test(l)&&m in o)h=(c+``).substr((d+``).length),u||=0,g=ti(l)||(m in sn.units?sn.units[m]:h),h!==g&&(d=zo(e,m,c,g)),this._pt=new Da(this._pt,v?b:o,m,d,(_?mr(d,_+u):u)-d,!v&&(g===`px`||m===`zIndex`)&&t.autoRound!==!1?lo:ao),this._pt.u=g||0,v&&w!==l?(this._pt.b=c,this._pt.e=w,this._pt.r=co):h!==g&&g!==`%`&&(this._pt.b=c,this._pt.r=so);else if(m in o)Vo.call(this,e,m,c,_?_+l:l);else if(m in e)this.add(e,m,c||e[m],_?_+l:l,r,i);else if(m!==`parseTransform`){Kn(m,l);continue}v||(m in o?C.push(m,0,o[m]):typeof e[m]==`function`?C.push(m,2,e[m]()):C.push(m,1,c||e[m])),a.push(m)}}S&&Ea(this)},render:function(e,t){if(t.tween._time||!Ja())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:Bo,aliases:io,getSetter:function(e,t,n){var r=io[t];return r&&r.indexOf(`,`)<0&&(t=r),t in Xa&&t!==bo&&(e._gsap.x||Bo(e,`x`))?n&&qa===n?t===`scale`?go:ho:(qa=n||{})&&(t===`scale`?_o:vo):e.style&&!Sn(e.style[t])?po:~t.indexOf(`-`)?mo:va(e,t)},core:{_removeProperty:Fo,_getMatrix:Xo}};Va.utils.checkPrefix=ko,Va.core.getStyleSaver=wo,(function(e,t,n,r){var i=dr(e+`,`+t+`,`+n,function(e){Xa[e]=1});dr(t,function(e){sn.units[e]=`deg`,qo[e]=1}),io[i[13]]=e+`,`+t,dr(r,function(e){var t=e.split(`:`);io[t[1]]=i[t[0]]})})(`x,y,z,scale,scaleX,scaleY,xPercent,yPercent`,`rotation,rotationX,rotationY,skewX,skewY`,`transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective`,`0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY`),dr(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){sn.units[e]=`px`}),Va.registerPlugin(us);var Q=Va.registerPlugin(us)||Va;Q.core.Tween;var ds,fs,ps,ms,hs,gs,_s,vs,ys=`transform`,bs=ys+`Origin`,xs,Ss=function(e){var t=e.ownerDocument||e;for(!(ys in e.style)&&(`msTransform`in e.style)&&(ys=`msTransform`,bs=ys+`Origin`);t.parentNode&&(t=t.parentNode););if(fs=window,_s=new Fs,t){ds=t,ps=t.documentElement,ms=t.body,vs=ds.createElementNS(`http://www.w3.org/2000/svg`,`g`),vs.style.transform=`none`;var n=t.createElement(`div`),r=t.createElement(`div`),i=t&&(t.body||t.firstElementChild);i&&i.appendChild&&(i.appendChild(n),n.appendChild(r),n.style.position=`static`,n.style.transform=`translate3d(0,0,1px)`,xs=r.offsetParent!==n,i.removeChild(n))}return t},Cs=function(e){for(var t,n;e&&e!==ms;)n=e._gsap,n&&n.uncache&&n.get(e,`x`),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),t?t.push(n):t=[n]),e=e.parentNode;return t},ws=[],Ts=[],Es=function(){return fs.pageYOffset||ds.scrollTop||ps.scrollTop||ms.scrollTop||0},Ds=function(){return fs.pageXOffset||ds.scrollLeft||ps.scrollLeft||ms.scrollLeft||0},Os=function(e){return e.ownerSVGElement||((e.tagName+``).toLowerCase()===`svg`?e:null)},ks=function e(t){if(fs.getComputedStyle(t).position===`fixed`)return!0;if(t=t.parentNode,t&&t.nodeType===1)return e(t)},As=function e(t,n){if(t.parentNode&&(ds||Ss(t))){var r=Os(t),i=r?r.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`:`http://www.w3.org/1999/xhtml`,a=r?n?`rect`:`g`:`div`,o=n===2?100:0,s=n===3?100:0,c={position:`absolute`,display:`block`,pointerEvents:`none`,margin:`0`,padding:`0`},l=ds.createElementNS?ds.createElementNS(i.replace(/^https/,`http`),a):ds.createElement(a);return n&&(r?(gs||=e(t),l.setAttribute(`width`,.01),l.setAttribute(`height`,.01),l.setAttribute(`transform`,`translate(`+o+`,`+s+`)`),l.setAttribute(`fill`,`transparent`),gs.appendChild(l)):(hs||(hs=e(t),Object.assign(hs.style,c)),Object.assign(l.style,c,{width:`0.1px`,height:`0.1px`,top:s+`px`,left:o+`px`}),hs.appendChild(l))),l}throw`Need document and parent.`},js=function(e){for(var t=new Fs,n=0;n<e.numberOfItems;n++)t.multiply(e.getItem(n).matrix);return t},Ms=function(e){var t=e.getCTM(),n;return t||(n=e.style[ys],e.style[ys]=`none`,e.appendChild(vs),t=vs.getCTM(),e.removeChild(vs),n?e.style[ys]=n:e.style.removeProperty(ys.replace(/([A-Z])/g,`-$1`).toLowerCase())),t||_s.clone()},Ns=function(e,t){var n=Os(e),r=e===n,i=n?ws:Ts,a=e.parentNode,o=a&&!n&&a.shadowRoot&&a.shadowRoot.appendChild?a.shadowRoot:a,s,c,l,u,d,f;if(e===fs)return e;if(i.length||i.push(As(e,1),As(e,2),As(e,3)),s=n?gs:hs,n)r?(l=Ms(e),u=-l.e/l.a,d=-l.f/l.d,c=_s):e.getBBox?(l=e.getBBox(),c=e.transform?e.transform.baseVal:{},c=c.numberOfItems?c.numberOfItems>1?js(c):c.getItem(0).matrix:_s,u=c.a*l.x+c.c*l.y,d=c.b*l.x+c.d*l.y):(c=new Fs,u=d=0),t&&e.tagName.toLowerCase()===`g`&&(u=d=0),(r||!e.getBoundingClientRect().width?n:a).appendChild(s),s.setAttribute(`transform`,`matrix(`+c.a+`,`+c.b+`,`+c.c+`,`+c.d+`,`+(c.e+u)+`,`+(c.f+d)+`)`);else{if(u=d=0,xs)for(c=e.offsetParent,l=e;(l&&=l.parentNode)&&l!==c&&l.parentNode;)(fs.getComputedStyle(l)[ys]+``).length>4&&(u=l.offsetLeft,d=l.offsetTop,l=0);if(f=fs.getComputedStyle(e),f.position!==`absolute`&&f.position!==`fixed`)for(c=e.offsetParent;a&&a!==c;)u+=a.scrollLeft||0,d+=a.scrollTop||0,a=a.parentNode;l=s.style,l.top=e.offsetTop-d+`px`,l.left=e.offsetLeft-u+`px`,l[ys]=f[ys],l[bs]=f[bs],l.position=f.position===`fixed`?`fixed`:`absolute`,o.appendChild(s)}return s},Ps=function(e,t,n,r,i,a,o){return e.a=t,e.b=n,e.c=r,e.d=i,e.e=a,e.f=o,e},Fs=function(){function e(e,t,n,r,i,a){e===void 0&&(e=1),t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=1),i===void 0&&(i=0),a===void 0&&(a=0),Ps(this,e,t,n,r,i,a)}var t=e.prototype;return t.inverse=function(){var e=this.a,t=this.b,n=this.c,r=this.d,i=this.e,a=this.f,o=e*r-t*n||1e-10;return Ps(this,r/o,-t/o,-n/o,e/o,(n*a-r*i)/o,-(e*a-t*i)/o)},t.multiply=function(e){var t=this.a,n=this.b,r=this.c,i=this.d,a=this.e,o=this.f,s=e.a,c=e.c,l=e.b,u=e.d,d=e.e,f=e.f;return Ps(this,s*t+l*r,s*n+l*i,c*t+u*r,c*n+u*i,a+d*t+f*r,o+d*n+f*i)},t.clone=function(){return new e(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function(e){var t=this.a,n=this.b,r=this.c,i=this.d,a=this.e,o=this.f;return t===e.a&&n===e.b&&r===e.c&&i===e.d&&a===e.e&&o===e.f},t.apply=function(e,t){t===void 0&&(t={});var n=e.x,r=e.y,i=this.a,a=this.b,o=this.c,s=this.d,c=this.e,l=this.f;return t.x=n*i+r*o+c||0,t.y=n*a+r*s+l||0,t},e}();function Is(e,t,n,r){if(!e||!e.parentNode||(ds||Ss(e)).documentElement===e)return new Fs;var i=Cs(e),a=Os(e)?ws:Ts,o=Ns(e,n),s=a[0].getBoundingClientRect(),c=a[1].getBoundingClientRect(),l=a[2].getBoundingClientRect(),u=o.parentNode,d=!r&&ks(e),f=new Fs((c.left-s.left)/100,(c.top-s.top)/100,(l.left-s.left)/100,(l.top-s.top)/100,s.left+(d?0:Ds()),s.top+(d?0:Es()));if(u.removeChild(o),i)for(s=i.length;s--;)c=i[s],c.scaleX=c.scaleY=0,c.renderTransform(1,c);return t?f.inverse():f}var Ls=1,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs=function(e,t){return e.actions.forEach(function(e){return e.vars[t]&&e.vars[t](e)})},Ks={},qs=180/Math.PI,Js=Math.PI/180,Ys={},Xs={},Zs={},Qs=function(e){return typeof e==`string`?e.split(` `).join(``).split(`,`):e},$s=Qs(`onStart,onUpdate,onComplete,onReverseComplete,onInterrupt`),ec=Qs(`transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight`),tc=function(e){return Rs(e)[0]||console.warn(`Element not found:`,e)},nc=function(e){return Math.round(e*1e4)/1e4||0},rc=function(e,t,n){return e.forEach(function(e){return e.classList[n](t)})},ic={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},ac={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},oc=function(e){return e.replace(/([A-Z])/g,`-$1`).toLowerCase()},sc=function(e,t){var n={},r;for(r in e)t[r]||(n[r]=e[r]);return n},cc={},lc=function(e){var t=cc[e]=Qs(e);return Zs[e]=t.concat(ec),t},uc=function(e){var t=e._gsap||zs.core.getCache(e);return t.gmCache===zs.ticker.frame?t.gMatrix:(t.gmCache=zs.ticker.frame,t.gMatrix=Is(e,!0,!1,!0))},dc=function e(t,n,r){r===void 0&&(r=0);for(var i=t.parentNode,a=1e3*10**r*(n?-1:1),o=n?-a*900:0;t;)o+=a,t=t.previousSibling;return i?o+e(i,n,r+1):o},fc=function(e,t,n){return e.forEach(function(e){return e.d=dc(n?e.element:e.t,t)}),e.sort(function(e,t){return e.d-t.d}),e},pc=function(e,t){for(var n=e.element.style,r=e.css=e.css||[],i=t.length,a,o;i--;)a=t[i],o=n[a]||n.getPropertyValue(a),r.push(o?a:Xs[a]||(Xs[a]=oc(a)),o);return n},mc=function(e){var t=e.css,n=e.element.style,r=0;for(e.cache.uncache=1;r<t.length;r+=2)t[r+1]?n[t[r]]=t[r+1]:n.removeProperty(t[r]);!t[t.indexOf(`transform`)+1]&&n.translate&&(n.removeProperty(`translate`),n.removeProperty(`scale`),n.removeProperty(`rotate`))},hc=function(e,t){e.forEach(function(e){return e.a.cache.uncache=1}),t||e.finalStates.forEach(mc)},gc=`paddingTop,paddingRight,paddingBottom,paddingLeft,gridArea,transition`.split(`,`),_c=function(e,t,n){var r=e.element,i=e.width,a=e.height,o=e.uncache,s=e.getProp,c=r.style,l=4,u,d,f;if(typeof t!=`object`&&(t=e),Bs&&n!==1)return Bs._abs.push({t:r,b:e,a:e,sd:0}),Bs._final.push(function(){return(e.cache.uncache=1)&&mc(e)}),r;for(d=s(`display`)===`none`,(!e.isVisible||d)&&(d&&(pc(e,[`display`]).display=t.display),e.matrix=t.matrix,e.width=i=e.width||t.width,e.height=a=e.height||t.height),pc(e,gc),f=window.getComputedStyle(r);l--;)c[gc[l]]=f[gc[l]];if(c.gridArea=`1 / 1 / 1 / 1`,c.transition=`none`,c.position=`absolute`,c.width=i+`px`,c.height=a+`px`,c.top||=`0px`,c.left||=`0px`,o)u=new Bc(r);else if(u=sc(e,Ys),u.position=`absolute`,e.simple){var p=r.getBoundingClientRect();u.matrix=new Fs(1,0,0,1,p.left+Ds(),p.top+Es())}else u.matrix=Is(r,!1,!1,!0);return u=Dc(u,e,!0),e.x=Us(u.x,.01),e.y=Us(u.y,.01),r},vc=function(e,t){return t!==!0&&(t=Rs(t),e=e.filter(function(e){if(t.indexOf((e.sd<0?e.b:e.a).element)!==-1)return!0;e.t._gsap.renderTransform(1),e.b.isVisible&&(e.t.style.width=e.b.width+`px`,e.t.style.height=e.b.height+`px`)})),e},yc=function(e){return fc(e,!0).forEach(function(e){return(e.a.isVisible||e.b.isVisible)&&_c(e.sd<0?e.b:e.a,e.b,1)})},bc=function(e,t){return t&&e.idLookup[xc(t).id]||e.elementStates[0]},xc=function(e,t,n,r){return e instanceof Bc?e:e instanceof zc?bc(e,r):new Bc(typeof e==`string`?tc(e)||console.warn(e+` not found`):e,t,n)},Sc=function(e,t){for(var n=zs.getProperty(e.element,null,`native`),r=e.props={},i=t.length;i--;)r[t[i]]=(n(t[i])+``).trim();return r.zIndex&&=parseFloat(r.zIndex)||0,e},Cc=function(e,t){var n=e.style||e,r;for(r in t)n[r]=t[r]},wc=function(e){var t=e.getAttribute(`data-flip-id`);return t||e.setAttribute(`data-flip-id`,t=`auto-`+Ls++),t},Tc=function(e){return e.map(function(e){return e.element})},Ec=function(e,t,n){return e&&t.length&&n.add(e(Tc(t),n,new zc(t,0,!0)),0)},Dc=function(e,t,n,r,i,a){var o=e.element,s=e.cache,c=e.parent,l=e.x,u=e.y,d=t.width,f=t.height,p=t.scaleX,m=t.scaleY,h=t.rotation,g=t.bounds,_=a&&Ws&&Ws(o,`transform,width,height`),v=e,y=t.matrix,b=y.e,x=y.f,S=e.bounds.width!==g.width||e.bounds.height!==g.height||e.scaleX!==p||e.scaleY!==m||e.rotation!==h,C=!S&&e.simple&&t.simple&&!i,w,T,E,D,O,k,A;return C||!c?(p=m=1,h=w=0):(O=uc(c),k=O.clone().multiply(t.ctm?t.matrix.clone().multiply(t.ctm):t.matrix),h=nc(Math.atan2(k.b,k.a)*qs),w=nc(Math.atan2(k.c,k.d)*qs+h)%360,p=Math.sqrt(k.a**2+k.b**2),m=Math.sqrt(k.c**2+k.d**2)*Math.cos(w*Js),i&&(i=Rs(i)[0],D=zs.getProperty(i),A=i.getBBox&&typeof i.getBBox==`function`&&i.getBBox(),v={scaleX:D(`scaleX`),scaleY:D(`scaleY`),width:A?A.width:Math.ceil(parseFloat(D(`width`,`px`))),height:A?A.height:parseFloat(D(`height`,`px`))}),s.rotation=h+`deg`,s.skewX=w+`deg`),n?(p*=d===v.width||!v.width?1:d/v.width,m*=f===v.height||!v.height?1:f/v.height,s.scaleX=p,s.scaleY=m):(d=Us(d*p/v.scaleX,0),f=Us(f*m/v.scaleY,0),o.style.width=d+`px`,o.style.height=f+`px`),r&&Cc(o,t.props),C||!c?(l+=b-e.matrix.e,u+=x-e.matrix.f):S||c!==t.parent?(s.x=l+`px`,s.y=u+`px`,s.renderTransform(1,s),k=Is(i||o,!1,!1,!0),T=O.apply({x:k.e,y:k.f}),E=O.apply({x:b,y:x}),l+=E.x-T.x,u+=E.y-T.y):(O.e=O.f=0,E=O.apply({x:b-e.matrix.e,y:x-e.matrix.f}),l+=E.x,u+=E.y),l=Us(l,.02),u=Us(u,.02),a&&!(a instanceof Bc)?_&&_.revert():(s.x=l+`px`,s.y=u+`px`,s.renderTransform(1,s)),a&&(a.x=l,a.y=u,a.rotation=h,a.skewX=w,n?(a.scaleX=p,a.scaleY=m):(a.width=d,a.height=f)),a||s},Oc=function(e,t){return e instanceof zc?e:new zc(e,t)},kc=function(e,t,n){var r=e.idLookup[n],i=e.alt[n];return i.isVisible&&(!(t.getElementState(i.element)||i).isVisible||!r.isVisible)?i:r},Ac=[],jc=`width,height,overflowX,overflowY`.split(`,`),Mc,Nc=function(e){if(e!==Mc){var t=Hs.style,n=Hs.clientWidth===window.outerWidth,r=Hs.clientHeight===window.outerHeight,i=4;if(e&&(n||r)){for(;i--;)Ac[i]=t[jc[i]];n&&(t.width=Hs.clientWidth+`px`,t.overflowY=`hidden`),r&&(t.height=Hs.clientHeight+`px`,t.overflowX=`hidden`),Mc=e}else if(Mc){for(;i--;)Ac[i]?t[jc[i]]=Ac[i]:t.removeProperty(oc(jc[i]));Mc=e}}},Pc=function(e,t){for(var n=0;n<e.length;n+=3)zs.set(e[n],{clearProps:!0}),e[n].setAttribute(`style`,e[n+t]),e[n]._gsap.gmCache=-1},Fc=function(e,t,n,r){e instanceof zc&&t instanceof zc||console.warn(`Not a valid state object.`),n||={};var i=n,a=i.clearProps,o=i.onEnter,s=i.onLeave,c=i.absolute,l=i.absoluteOnLeave,u=i.custom,d=i.delay,f=i.paused,p=i.repeat,m=i.repeatDelay,h=i.yoyo,g=i.toggleClass,_=i.nested,v=i.zIndex,y=i.scale,b=i.fade,x=i.stagger,S=i.spin,C=i.prune,w=(`props`in n?n:e).props,T=sc(n,ic),E=zs.timeline({delay:d,paused:f,repeat:p,repeatDelay:m,yoyo:h,data:`isFlip`}),D=T,O=[],k=[],A=[],j=[],M=S===!0?1:S||0,ee=typeof S==`function`?S:function(){return M},te=e.interrupted||t.interrupted,ne=E[r===1?`from`:`to`],re,N,ie,P,F,I,ae,oe,se,ce,le,ue,de,fe;for(N in t.idLookup)le=t.alt[N]?kc(t,e,N):t.idLookup[N],F=le.element,ce=e.idLookup[N],e.alt[N]&&F===ce.element&&(e.alt[N].isVisible||!le.isVisible)&&(ce=e.alt[N]),ce?(I={t:F,b:ce,a:le,sd:ce.element===F?0:le.isVisible?1:-1},A.push(I),I.sd&&(I.sd<0&&(I.b=le,I.a=ce),te&&pc(I.b,w?Zs[w]:ec),b&&A.push(I.swap={t:ce.element,b:I.b,a:I.a,sd:-I.sd,swap:I})),F._flip=ce.element._flip=Bs?Bs.timeline:E):le.isVisible&&(A.push({t:F,b:sc(le,{isVisible:1}),a:le,sd:0,entering:1}),F._flip=Bs?Bs.timeline:E);if(w&&(cc[w]||lc(w)).forEach(function(e){return T[e]=function(t){return A[t].a.props[e]}}),A.finalStates=se=[],ue=function(){fc(A),Nc(!0);var t=[];for(P=0;P<A.length;P++)I=A[P],de=I.a,fe=I.b,C&&!de.isDifferent(fe)&&!I.entering?A.splice(P--,1):(F=I.t,_&&!(I.sd<0)&&P&&(de=I.a=de.clone({matrix:Is(F,!1,!1,!0)})),fe.isVisible&&de.isVisible?(I.sd<0?(_&&Pc(t,1),ae=new Bc(F,w,e.simple),Dc(ae,de,y,0,0,ae),ae.matrix=Is(F,!1,!1,!0),ae.bounds=F.getBoundingClientRect(),ae.css=I.b.css,I.a=de=ae,b&&(F.style.opacity=te?fe.opacity:de.opacity),x&&j.push(F),_&&(Pc(t,2),t.push(F,F.getAttribute(`style`)))):I.sd>0&&b&&(F.style.opacity=te?de.opacity-fe.opacity:`0`),Dc(de,fe,y,w),_&&I.sd<0&&t.push(F.getAttribute(`style`))):fe.isVisible!==de.isVisible&&(fe.isVisible?de.isVisible||(fe.css=de.css,k.push(fe),A.splice(P--,1),c&&_&&Dc(de,fe,y,w)):(de.isVisible&&O.push(de),A.splice(P--,1))),y||(F.style.maxWidth=Math.max(de.width,fe.width)+`px`,F.style.maxHeight=Math.max(de.height,fe.height)+`px`,F.style.minWidth=Math.min(de.width,fe.width)+`px`,F.style.minHeight=Math.min(de.height,fe.height)+`px`),_&&g&&F.classList.add(g)),se.push(de);var r;if(g&&(r=se.map(function(e){return e.element}),_&&r.forEach(function(e){return e.classList.remove(g)})),Nc(!1),y?(T.scaleX=function(e){return A[e].a.scaleX},T.scaleY=function(e){return A[e].a.scaleY}):(T.width=function(e){return A[e].a.width+`px`},T.height=function(e){return A[e].a.height+`px`},T.autoRound=n.autoRound||!1),T.x=function(e){return A[e].a.x+`px`},T.y=function(e){return A[e].a.y+`px`},T.rotation=function(e){return A[e].a.rotation+(S?ee(e,oe[e],oe)*360:0)},T.skewX=function(e){return A[e].a.skewX},oe=A.map(function(e){return e.t}),(v||v===0)&&(T.modifiers={zIndex:function(){return v}},T.zIndex=v,T.immediateRender=n.immediateRender!==!1),b&&(T.opacity=function(e){return A[e].sd<0?0:A[e].sd>0?A[e].a.opacity:`+=0`}),j.length){x=zs.utils.distribute(x);var i=oe.slice(j.length);T.stagger=function(e,t){return x(~j.indexOf(t)?oe.indexOf(A[e].swap.t):e,t,i)}}if($s.forEach(function(e){return n[e]&&E.eventCallback(e,n[e],n[e+`Params`])}),u&&oe.length)for(N in D=sc(T,ic),`scale`in u&&(u.scaleX=u.scaleY=u.scale,delete u.scale),u)re=sc(u[N],ac),re[N]=T[N],!(`duration`in re)&&`duration`in T&&(re.duration=T.duration),re.stagger=T.stagger,ne.call(E,oe,re,0),delete D[N];(oe.length||k.length||O.length)&&(g&&E.add(function(){return rc(r,g,E._zTime<0?`remove`:`add`)},0)&&!f&&rc(r,g,`add`),oe.length&&ne.call(E,oe,D,0)),Ec(o,O,E),Ec(s,k,E);var l=Bs&&Bs.timeline;l&&(l.add(E,0),Bs._final.push(function(){return hc(A,!a)})),ie=E.duration(),E.call(function(){var e=E.time()>=ie;e&&!l&&hc(A,!a),g&&rc(r,g,e?`remove`:`add`)})},l&&(c=A.filter(function(e){return!e.sd&&!e.a.isVisible&&e.b.isVisible}).map(function(e){return e.a.element})),Bs){var pe;c&&(pe=Bs._abs).push.apply(pe,vc(A,c)),Bs._run.push(ue)}else c&&yc(vc(A,c)),ue();var me=Bs?Bs.timeline:E;return me.revert=function(){return Lc(me,1,1)},me},Ic=function e(t){t.vars.onInterrupt&&t.vars.onInterrupt.apply(t,t.vars.onInterruptParams||[]),t.getChildren(!0,!1,!0).forEach(e)},Lc=function(e,t,n){if(e&&e.progress()<1&&(!e.paused()||n))return t&&(Ic(e),t<2&&e.progress(1),e.kill()),!0},Rc=function(e){for(var t=e.idLookup={},n=e.alt={},r=e.elementStates,i=r.length,a;i--;)a=r[i],t[a.id]?n[a.id]=a:t[a.id]=a},zc=function(){function e(e,t,n){if(this.props=t&&t.props,this.simple=!!(t&&t.simple),n)this.targets=Tc(e),this.elementStates=e,Rc(this);else{this.targets=Rs(e);var r=t&&(t.kill===!1||t.batch&&!t.kill);Bs&&!r&&Bs._kill.push(this),this.update(r||!!Bs)}}var t=e.prototype;return t.update=function(e){var t=this;return this.elementStates=this.targets.map(function(e){return new Bc(e,t.props,t.simple)}),Rc(this),this.interrupt(e),this.recordInlineStyles(),this},t.clear=function(){return this.targets.length=this.elementStates.length=0,Rc(this),this},t.fit=function(e,t,n){for(var r=fc(this.elementStates.slice(0),!1,!0),i=(e||this).idLookup,a=0,o,s;a<r.length;a++)o=r[a],n&&(o.matrix=Is(o.element,!1,!1,!0)),s=i[o.id],s&&Dc(o,s,t,!0,0,o),o.matrix=Is(o.element,!1,!1,!0);return this},t.getProperty=function(e,t){var n=this.getElementState(e)||Ys;return(t in n?n:n.props||Ys)[t]},t.add=function(e){for(var t=e.targets.length,n=this.idLookup,r=this.alt,i,a,o;t--;)a=e.elementStates[t],o=n[a.id],o&&(a.element===o.element||r[a.id]&&r[a.id].element===a.element)?(i=this.elementStates.indexOf(a.element===o.element?o:r[a.id]),this.targets.splice(i,1,e.targets[t]),this.elementStates.splice(i,1,a)):(this.targets.push(e.targets[t]),this.elementStates.push(a));return e.interrupted&&(this.interrupted=!0),e.simple||(this.simple=!1),Rc(this),this},t.compare=function(e){var t=e.idLookup,n=this.idLookup,r=[],i=[],a=[],o=[],s=[],c=e.alt,l=this.alt,u=function(e,t,n){return(e.isVisible===t.isVisible?e.isVisible?i:r:e.isVisible?a:o).push(n)&&s.push(n)},d=function(e,t,n){return s.indexOf(n)<0&&u(e,t,n)},f,p,m,h,g,_,v,y;for(m in t)g=c[m],_=l[m],f=g?kc(e,this,m):t[m],h=f.element,p=n[m],_?(y=p.isVisible||!_.isVisible&&h===p.element?p:_,v=g&&!f.isVisible&&!g.isVisible&&y.element===g.element?g:f,v.isVisible&&y.isVisible&&v.element!==y.element?((v.isDifferent(y)?i:r).push(v.element,y.element),s.push(v.element,y.element)):u(v,y,v.element),g&&v.element===g.element&&(g=t[m]),d(v.element!==p.element&&g?g:v,p,p.element),d(g&&g.element===_.element?g:v,_,_.element),g&&d(g,_.element===g.element?_:p,g.element)):(p?p.isDifferent(f)?u(f,p,h):r.push(h):a.push(h),g&&d(g,p,g.element));for(m in n)t[m]||(o.push(n[m].element),l[m]&&o.push(l[m].element));return{changed:i,unchanged:r,enter:a,leave:o}},t.recordInlineStyles=function(){for(var e=Zs[this.props]||ec,t=this.elementStates.length;t--;)pc(this.elementStates[t],e)},t.interrupt=function(e){var t=this,n=[];this.targets.forEach(function(r){var i=r._flip,a=Lc(i,+!e);e&&a&&n.indexOf(i)<0&&i.add(function(){return t.updateVisibility()}),a&&n.push(i)}),!e&&n.length&&this.updateVisibility(),this.interrupted||=!!n.length},t.updateVisibility=function(){this.elementStates.forEach(function(e){var t=e.element.getBoundingClientRect();e.isVisible=!!(t.width||t.height||t.top||t.left),e.uncache=1})},t.getElementState=function(e){return this.elementStates[this.targets.indexOf(tc(e))]},t.makeAbsolute=function(){return fc(this.elementStates.slice(0),!0,!0).map(_c)},e}(),Bc=function(){function e(t,n,r){t instanceof e?Object.assign(this,t,n||{}):(this.element=t,this.update(n,r))}var t=e.prototype;return t.isDifferent=function(e){var t=this.bounds,n=e.bounds;return t.top!==n.top||t.left!==n.left||t.width!==n.width||t.height!==n.height||!this.matrix.equals(e.matrix)||this.opacity!==e.opacity||this.props&&e.props&&JSON.stringify(this.props)!==JSON.stringify(e.props)},t.clone=function(t){return new e(this,t)},t.update=function(e,t){var n=this,r=n.element,i=zs.getProperty(r),a=zs.core.getCache(r),o=r.getBoundingClientRect(),s=r.getBBox&&typeof r.getBBox==`function`&&r.nodeName.toLowerCase()!==`svg`&&r.getBBox(),c=t?new Fs(1,0,0,1,o.left+Ds(),o.top+Es()):Is(r,!1,!1,!0);a.uncache=1,n.getProp=i,n.element=r,n.id=wc(r),n.matrix=c,n.cache=a,n.bounds=o,n.isVisible=!!(o.width||o.height||o.left||o.top),n.display=i(`display`),n.position=i(`position`),n.parent=r.parentNode,n.x=i(`x`,`px`),n.y=i(`y`,`px`),n.scaleX=a.scaleX,n.scaleY=a.scaleY,n.rotation=i(`rotation`),n.skewX=i(`skewX`),n.opacity=i(`opacity`),n.width=s?s.width:Us(i(`width`,`px`),.04),n.height=s?s.height:Us(i(`height`,`px`),.04),e&&Sc(n,cc[e]||lc(e)),n.ctm=r.getCTM&&r.nodeName.toLowerCase()===`svg`&&Ms(r).inverse(),n.simple=t||nc(c.a)===1&&!nc(c.b)&&!nc(c.c)&&nc(c.d)===1,n.uncache=0},e}(),Vc=function(){function e(e,t){this.vars=e,this.batch=t,this.states=[],this.timeline=t.timeline}var t=e.prototype;return t.getStateById=function(e){for(var t=this.states.length;t--;)if(this.states[t].idLookup[e])return this.states[t]},t.kill=function(){this.batch.remove(this)},e}(),Hc=function(){function e(e){this.id=e,this.actions=[],this._kill=[],this._final=[],this._abs=[],this._run=[],this.data={},this.state=new zc,this.timeline=zs.timeline()}var t=e.prototype;return t.add=function(e){var t=this.actions.filter(function(t){return t.vars===e});return t.length?t[0]:(t=new Vc(typeof e==`function`?{animate:e}:e,this),this.actions.push(t),t)},t.remove=function(e){var t=this.actions.indexOf(e);return t>=0&&this.actions.splice(t,1),this},t.getState=function(e){var t=this,n=Bs,r=Vs;return Bs=this,this.state.clear(),this._kill.length=0,this.actions.forEach(function(n){n.vars.getState&&(n.states.length=0,Vs=n,n.state=n.vars.getState(n)),e&&n.states.forEach(function(e){return t.state.add(e)})}),Vs=r,Bs=n,this.killConflicts(),this},t.animate=function(){var e=this,t=Bs,n=this.timeline,r=this.actions.length,i,a;for(Bs=this,n.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(function(e){e.vars.animate&&e.vars.animate(e);var t=e.vars.onEnter,n=e.vars.onLeave,r=e.targets,i,a;r&&r.length&&(t||n)&&(i=new zc,e.states.forEach(function(e){return i.add(e)}),a=i.compare(Uc.getState(r)),a.enter.length&&t&&t(a.enter),a.leave.length&&n&&n(a.leave))}),yc(this._abs),this._run.forEach(function(e){return e()}),a=n.duration(),i=this._final.slice(0),n.add(function(){a<=n.time()&&(i.forEach(function(e){return e()}),Gs(e,`onComplete`))}),Bs=t;r--;)this.actions[r].vars.once&&this.actions[r].kill();return Gs(this,`onStart`),n.restart(),this},t.loadState=function(e){e||=function(){return 0};var t=[];return this.actions.forEach(function(n){if(n.vars.loadState){var r,i=function i(a){a&&(n.targets=a),r=t.indexOf(i),~r&&(t.splice(r,1),t.length||e())};t.push(i),n.vars.loadState(i)}}),t.length||e(),this},t.setState=function(){return this.actions.forEach(function(e){return e.targets=e.vars.setState&&e.vars.setState(e)}),this},t.killConflicts=function(e){return this.state.interrupt(e),this._kill.forEach(function(t){return t.interrupt(e)}),this},t.run=function(e,t){var n=this;return this!==Bs&&(e||this.getState(t),this.loadState(function(){n._killed||(n.setState(),n.animate())})),this},t.clear=function(e){this.state.clear(),e||(this.actions.length=0)},t.getStateById=function(e){for(var t=this.actions.length,n;t--;)if(n=this.actions[t].getStateById(e),n)return n;return this.state.idLookup[e]&&this.state},t.kill=function(){this._killed=1,this.clear(),delete Ks[this.id]},e}(),Uc=function(){function e(){}return e.getState=function(t,n){var r=Oc(t,n);return Vs&&Vs.states.push(r),n&&n.batch&&e.batch(n.batch).state.add(r),r},e.from=function(e,t){return t||={},`clearProps`in t||(t.clearProps=!0),Fc(e,Oc(t.targets||e.targets,{props:t.props||e.props,simple:t.simple,kill:!!t.kill}),t,-1)},e.to=function(e,t){return Fc(e,Oc(t.targets||e.targets,{props:t.props||e.props,simple:t.simple,kill:!!t.kill}),t,1)},e.fromTo=function(e,t,n){return Fc(e,t,n)},e.fit=function(e,t,n){var r=n?sc(n,ac):{},i=n||r,a=i.absolute,o=i.scale,s=i.getVars,c=i.props,l=i.runBackwards,u=i.onComplete,d=i.simple,f=n&&n.fitChild&&tc(n.fitChild),p=xc(t,c,d,e),m=xc(e,0,d,p),h=c?Zs[c]:ec,g=zs.context();return c&&Cc(r,p.props),pc(m,h),l&&(`immediateRender`in r||(r.immediateRender=!0),r.onComplete=function(){mc(m),u&&u.apply(this,arguments)}),a&&_c(m,p),r=Dc(m,p,o||f,!r.duration&&c,f,r.duration||s?r:0),typeof n==`object`&&`zIndex`in n&&(r.zIndex=n.zIndex),g&&!s&&g.add(function(){return function(){return mc(m)}}),s?r:r.duration?zs.to(m.element,r):null},e.makeAbsolute=function(e,t){return(e instanceof zc?e:new zc(e,t)).makeAbsolute()},e.batch=function(e){return e||=`default`,Ks[e]||(Ks[e]=new Hc(e))},e.killFlipsOf=function(e,t){(e instanceof zc?e.targets:Rs(e)).forEach(function(e){return e&&Lc(e._flip,t===!1?2:1)})},e.isFlipping=function(t){var n=e.getByTarget(t);return!!n&&n.isActive()},e.getByTarget=function(e){return(tc(e)||Ys)._flip},e.getElementState=function(e,t){return new Bc(tc(e),t)},e.convertCoordinates=function(e,t,n){var r=Is(t,!0,!0).multiply(Is(e));return n?r.apply(n):r},e.register=function(e){if(Hs=typeof document<`u`&&document.body,Hs){zs=e,Ss(Hs),Rs=zs.utils.toArray,Ws=zs.core.getStyleSaver;var t=zs.utils.snap(.1);Us=function(e,n){return t(parseFloat(e)+n)}}},e}();Uc.version=`3.15.0`,typeof window<`u`&&window.gsap&&window.gsap.registerPlugin(Uc);var Wc=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,Gc=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,Kc=Math.PI/180;180/Math.PI;var qc=Math.sin,Jc=Math.cos,Yc=Math.abs,Xc=Math.sqrt,Zc=function(e){return typeof e==`number`},Qc=1e5,$c=function(e){return Math.round(e*Qc)/Qc||0},el=function(e){return e.closed=Math.abs(e[0]-e[e.length-2])<.001&&Math.abs(e[1]-e[e.length-1])<.001};function tl(e,t,n,r,i,a,o){for(var s=e.length,c,l,u,d,f;--s>-1;)for(c=e[s],l=c.length,u=0;u<l;u+=2)d=c[u],f=c[u+1],c[u]=d*t+f*r+a,c[u+1]=d*n+f*i+o;return e._dirty=1,e}function nl(e,t,n,r,i,a,o,s,c){if(e!==s||t!==c){n=Yc(n),r=Yc(r);var l=i%360*Kc,u=Jc(l),d=qc(l),f=Math.PI,p=f*2,m=(e-s)/2,h=(t-c)/2,g=u*m+d*h,_=-d*m+u*h,v=g*g,y=_*_,b=v/(n*n)+y/(r*r);b>1&&(n=Xc(b)*n,r=Xc(b)*r);var x=n*n,S=r*r,C=(x*S-x*y-S*v)/(x*y+S*v);C<0&&(C=0);var w=(a===o?-1:1)*Xc(C),T=w*(n*_/r),E=w*-(r*g/n),D=(e+s)/2,O=(t+c)/2,k=D+(u*T-d*E),A=O+(d*T+u*E),j=(g-T)/n,M=(_-E)/r,ee=(-g-T)/n,te=(-_-E)/r,ne=j*j+M*M,re=(M<0?-1:1)*Math.acos(j/Xc(ne)),N=(j*te-M*ee<0?-1:1)*Math.acos((j*ee+M*te)/Xc(ne*(ee*ee+te*te)));isNaN(N)&&(N=f),!o&&N>0?N-=p:o&&N<0&&(N+=p),re%=p,N%=p;var ie=Math.ceil(Yc(N)/(p/4)),P=[],F=N/ie,I=4/3*qc(F/2)/(1+Jc(F/2)),ae=u*n,oe=d*n,se=d*-r,ce=u*r,le;for(le=0;le<ie;le++)i=re+le*F,g=Jc(i),_=qc(i),j=Jc(i+=F),M=qc(i),P.push(g-I*_,_+I*g,j+I*M,M-I*j,j,M);for(le=0;le<P.length;le+=2)g=P[le],_=P[le+1],P[le]=g*ae+_*se+k,P[le+1]=g*oe+_*ce+A;return P[le-2]=s,P[le-1]=c,P}}function rl(e){var t=(e+``).replace(Gc,function(e){var t=+e;return t<1e-4&&t>-1e-4?0:t}).match(Wc)||[],n=[],r=0,i=0,a=2/3,o=t.length,s=0,c=`ERROR: malformed path: `+e,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w=function(e,t,n,r){v=(n-e)/3,y=(r-t)/3,h.push(e+v,t+y,n-v,r-y,n,r)};if(!e||!isNaN(t[0])||isNaN(t[1]))return console.log(c),n;for(l=0;l<o;l++)if(x=p,isNaN(t[l])?(p=t[l].toUpperCase(),m=p!==t[l]):l--,d=+t[l+1],f=+t[l+2],m&&(d+=r,f+=i),l||(g=d,_=f),p===`M`)h&&(h.length<8?--n.length:s+=h.length,el(h)),r=g=d,i=_=f,h=[d,f],n.push(h),l+=2,p=`L`;else if(p===`C`)h||=[0,0],m||(r=i=0),h.push(d,f,r+t[l+3]*1,i+t[l+4]*1,r+=t[l+5]*1,i+=t[l+6]*1),l+=6;else if(p===`S`)v=r,y=i,(x===`C`||x===`S`)&&(v+=r-h[h.length-4],y+=i-h[h.length-3]),m||(r=i=0),h.push(v,y,d,f,r+=t[l+3]*1,i+=t[l+4]*1),l+=4;else if(p===`Q`)v=r+(d-r)*a,y=i+(f-i)*a,m||(r=i=0),r+=t[l+3]*1,i+=t[l+4]*1,h.push(v,y,r+(d-r)*a,i+(f-i)*a,r,i),l+=4;else if(p===`T`)v=r-h[h.length-4],y=i-h[h.length-3],h.push(r+v,i+y,d+(r+v*1.5-d)*a,f+(i+y*1.5-f)*a,r=d,i=f),l+=2;else if(p===`H`)w(r,i,r=d,i),l+=1;else if(p===`V`)w(r,i,r,i=d+(m?i-r:0)),l+=1;else if(p===`L`||p===`Z`)p===`Z`&&(d=g,f=_,h.closed=!0),(p===`L`||Yc(r-d)>.5||Yc(i-f)>.5)&&(w(r,i,d,f),p===`L`&&(l+=2)),r=d,i=f;else if(p===`A`){if(S=t[l+4],C=t[l+5],v=t[l+6],y=t[l+7],u=7,S.length>1&&(S.length<3?(y=v,v=C,u--):(y=C,v=S.substr(2),u-=2),C=S.charAt(1),S=S.charAt(0)),b=nl(r,i,+t[l+1],+t[l+2],+t[l+3],+S,+C,(m?r:0)+v*1,(m?i:0)+y*1),l+=u,b)for(u=0;u<b.length;u++)h.push(b[u]);r=h[h.length-2],i=h[h.length-1]}else console.log(c);return l=h.length,l<6?(n.pop(),l=0):el(h),n.totalPoints=s+l,n}function il(e){Zc(e[0])&&(e=[e]);var t=``,n=e.length,r,i,a,o;for(i=0;i<n;i++){for(o=e[i],t+=`M`+$c(o[0])+`,`+$c(o[1])+` C`,r=o.length,a=2;a<r;a++)t+=$c(o[a++])+`,`+$c(o[a++])+` `+$c(o[a++])+`,`+$c(o[a++])+` `+$c(o[a++])+`,`+$c(o[a])+` `;o.closed&&(t+=`z`)}return t}var al,ol,sl=function(){return al||typeof window<`u`&&(al=window.gsap)&&al.registerPlugin&&al},cl=function(){al=sl(),al?(al.registerEase(`_CE`,_l.create),ol=1):console.warn(`Please gsap.registerPlugin(CustomEase)`)},ll=0x56bc75e2d63100000,ul=function(e){return~~(e*1e3+(e<0?-.5:.5))/1e3},dl=1,fl=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,pl=/[cLlsSaAhHvVtTqQ]/g,ml=function(e){var t=e.length,n=ll,r;for(r=1;r<t;r+=6)+e[r]<n&&(n=+e[r]);return n},hl=function(e,t,n){!n&&n!==0&&(n=Math.max(+e[e.length-1],+e[1]));var r=e[0]*-1,i=-n,a=e.length,o=1/(+e[a-2]+r),s=-t||(Math.abs(e[a-1]-+e[1])<.01*(e[a-2]-+e[0])?ml(e)+i:+e[a-1]+i),c;for(s=s?1/s:-o,c=0;c<a;c+=2)e[c]=(+e[c]+r)*o,e[c+1]=(+e[c+1]+i)*s},gl=function e(t,n,r,i,a,o,s,c,l,u,d){var f=(t+r)/2,p=(n+i)/2,m=(r+a)/2,h=(i+o)/2,g=(a+s)/2,_=(o+c)/2,v=(f+m)/2,y=(p+h)/2,b=(m+g)/2,x=(h+_)/2,S=(v+b)/2,C=(y+x)/2,w=s-t,T=c-n,E=Math.abs((r-s)*T-(i-c)*w),D=Math.abs((a-s)*T-(o-c)*w),O;return u||(u=[{x:t,y:n},{x:s,y:c}],d=1),u.splice(d||u.length-1,0,{x:S,y:C}),(E+D)*(E+D)>l*(w*w+T*T)&&(O=u.length,e(t,n,f,p,v,y,S,C,l,u,d),e(S,C,b,x,g,_,s,c,l,u,d+1+(u.length-O))),u},_l=function(){function e(e,t,n){ol||cl(),this.id=e,dl&&this.setData(t,n)}var t=e.prototype;return t.setData=function(e,t){t||={},e||=`0,0,1,1`;var n=e.match(fl),r=1,i=[],a=[],o=t.precision||1,s=o<=1,c,l,u,d,f,p,m,h,g;if(this.data=e,(pl.test(e)||~e.indexOf(`M`)&&e.indexOf(`C`)<0)&&(n=rl(e)[0]),c=n.length,c===4)n.unshift(0,0),n.push(1,1),c=8;else if((c-2)%6)throw`Invalid CustomEase`;for((+n[0]!=0||+n[c-2]!=1)&&hl(n,t.height,t.originY),this.segment=n,d=2;d<c;d+=6)l={x:+n[d-2],y:+n[d-1]},u={x:+n[d+4],y:+n[d+5]},i.push(l,u),gl(l.x,l.y,+n[d],+n[d+1],+n[d+2],+n[d+3],u.x,u.y,1/(o*2e5),i,i.length-1);for(c=i.length,d=0;d<c;d++)m=i[d],h=i[d-1]||m,(m.x>h.x||h.y!==m.y&&h.x===m.x||m===h)&&m.x<=1?(h.cx=m.x-h.x,h.cy=m.y-h.y,h.n=m,h.nx=m.x,s&&d>1&&Math.abs(h.cy/h.cx-i[d-2].cy/i[d-2].cx)>2&&(s=0),h.cx<r&&(h.cx?r=h.cx:(h.cx=.001,d===c-1&&(h.x-=.001,r=Math.min(r,.001),s=0)))):(i.splice(d--,1),c--);if(c=1/r+1|0,f=1/c,p=0,m=i[0],s){for(d=0;d<c;d++)g=d*f,m.nx<g&&(m=i[++p]),l=m.y+(g-m.x)/m.cx*m.cy,a[d]={x:g,cx:f,y:l,cy:0,nx:9},d&&(a[d-1].cy=l-a[d-1].y);p=i[i.length-1],a[c-1].cy=p.y-l,a[c-1].cx=p.x-a[a.length-1].x}else{for(d=0;d<c;d++)m.nx<d*f&&(m=i[++p]),a[d]=m;p<i.length-1&&(a[d-1]=i[i.length-2])}return this.ease=function(e){var t=a[e*c|0]||a[c-1];return t.nx<e&&(t=t.n),t.y+(e-t.x)/t.cx*t.cy},this.ease.custom=this,this.id&&al&&al.registerEase(this.id,this.ease),this},t.getSVGData=function(t){return e.getSVGData(this,t)},e.create=function(t,n,r){return new e(t,n,r).ease},e.register=function(e){al=e,cl()},e.get=function(e){return al.parseEase(e)},e.getSVGData=function(t,n){n||={};var r=n.width||100,i=n.height||100,a=n.x||0,o=(n.y||0)+i,s=al.utils.toArray(n.path)[0],c,l,u,d,f,p,m,h,g,_;if(n.invert&&(i=-i,o=0),typeof t==`string`&&(t=al.parseEase(t)),t.custom&&(t=t.custom),t instanceof e)c=il(tl([t.segment.slice(0)],r,0,0,-i,a,o));else{for(c=[a,o],m=Math.max(5,(n.precision||1)*200),d=1/m,m+=2,h=5/m,g=ul(a+d*r),_=ul(o+t(d)*-i),l=(_-o)/(g-a),u=2;u<m;u++)f=ul(a+u*d*r),p=ul(o+t(u*d)*-i),(Math.abs((p-_)/(f-g)-l)>h||u===m-1)&&(c.push(g,_),l=(p-_)/(f-g)),g=f,_=p;c=`M`+c.join(`,`)}return s&&s.setAttribute(`d`,c),c},e}();_l.version=`3.15.0`,_l.headless=!0,sl()&&al.registerPlugin(_l);var vl;Q.registerPlugin(Uc,_l),_l.create(`morph-open`,`0.15, 0.85, 0.2, 1`),_l.create(`morph-close`,`0.4, 0, 0.2, 1`);var yl={fromAttribute:e=>e!==`false`&&e!==null,toAttribute:e=>e?``:null},$=class extends U{static{vl=this}constructor(...e){super(...e),this.target=``,this.open=!1,this.modal=!0,this.placement=`center`,this.expandedWidth=`22rem`,this.expandedHeight=`18rem`,this.closeOnClickOutside=!0,this.closeOnEsc=!0,this.showCloseButton=!1,this.morphLabel=!1,this.morphLabelSelector=``,this.hasBackdrop=!0,this.hideTarget=!1,this.coverTarget=!1,this.autoSize=!1,this.fullscreen=!1,this.responsiveFullscreen=!1,this.fullscreenBreakpoint=600,this.blurContent=!1,this.debug=!1,this._hasHeader=!1,this._hasFooter=!1,this._hasTriggerLabel=!1,this._targetEl=null,this._isAnimating=!1,this._visible=!1,this._handlingOpenChange=!1,this._zIndex=100,this._morphEls={text:null,icon:null},this._targetSnapshot=null,this._originFallbacks=[],this._targetStylesCache=new Map,this._onTargetClick=()=>this.show(),this._onDocKeydown=e=>this._handleDocKeydown(e),this._onDocClick=e=>{!this.open||!this._visible||!this.closeOnClickOutside||e.composedPath().includes(this._panel)||this._targetEl&&e.composedPath().includes(this._targetEl)||this.hide()}}static{this._openStack=[]}connectedCallback(){super.connectedCallback(),this._resolveTarget(),document.addEventListener(`keydown`,this._onDocKeydown),document.addEventListener(`click`,this._onDocClick)}disconnectedCallback(){document.removeEventListener(`keydown`,this._onDocKeydown),document.removeEventListener(`click`,this._onDocClick),this._targetEl&&this._targetEl.removeEventListener(`click`,this._onTargetClick);let e=vl._openStack.indexOf(this);e>-1&&vl._openStack.splice(e,1),this.style.removeProperty(`z-index`),this.style.removeProperty(`--_z-index`),this.style.removeProperty(`--_backdrop-duration`),this.style.removeProperty(`--_backdrop-ease`),this._cleanupMorphElements(),this._restoreTargetContent(),super.disconnectedCallback()}updated(e){super.updated(e),e.has(`target`)&&this._resolveTarget(),e.has(`open`)&&!this._handlingOpenChange&&(this.open?this.show():this.hide())}_resolveTarget(){if(!this.target)return;let e=document.querySelector(this.target);e&&(this._targetEl&&this._targetEl!==e&&this._targetEl.removeEventListener(`click`,this._onTargetClick),this._targetEl=e,this._targetEl.addEventListener(`click`,this._onTargetClick))}show(){if(!(this._isAnimating||this._visible)){if(this._targetEl||this._resolveTarget(),!this._targetEl){console.warn(`[moni-morph-modal] cannot show: target not found`);return}this._captureOriginFallbacks(this._targetEl),this._isAnimating=!0,this._handlingOpenChange=!0,this.open=!0,this._handlingOpenChange=!1,vl._openStack.push(this),this._zIndex=1e3+vl._openStack.length,this.style.zIndex=String(this._zIndex),this.style.setProperty(`--_z-index`,String(this._zIndex)),this.style.setProperty(`--_backdrop-duration`,`0.38s`),this.style.setProperty(`--_backdrop-ease`,`cubic-bezier(0.15, 0.85, 0.2, 1)`),this._backdrop&&Q.set(this._backdrop,{clearProps:`opacity,transition`}),this._hideTargetContent(),this.updateComplete.then(async()=>{if(!this._targetEl||!this._panel||!this._inner){this._isAnimating=!1;return}this._panel.classList.add(`is-animating`),await new Promise(e=>requestAnimationFrame(e));let e=this._getTargetState(this._targetEl);this._debugMorph(`open`,this._targetEl,`target`,[this._targetEl]);let t=this._panel;this._applyRect(t,this._toPanelCoordinateRect(e.rect)),t.style.backgroundColor=e.backgroundColor,t.style.color=e.color,t.style.borderRadius=e.borderRadius,t.style.boxShadow=e.boxShadow,t.style.zIndex=String(this._zIndex),t.style.visibility=`visible`,t.style.opacity=`1`,t.style.pointerEvents=`auto`,this._backdrop&&(this._backdrop.style.zIndex=String(this._zIndex-1)),this._cleanupMorphElements();let n=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,r=this._shouldMorphLabel()&&!n,i=[],a=null,o=this.shadowRoot.querySelector(`.header-morph-wrapper`);if(r){if(this._animateLabelOpen(),a=this._resolveMorphSource(),a.text){let e=this._createMorphText(a.text.content,a.text.sourceEl);this._positionElement(e,a.text.rect),i.push(e)}if(a.icon){let e=this._createMorphIcon(a.icon.element);this._positionElement(e,a.icon.rect),i.push(e)}i.length===0&&(r=!1)}r&&o&&(o.style.opacity=`0`);let s=Uc.getState(t,{props:`backgroundColor,borderRadius,color,boxShadow`}),c=Uc.getState(i,{props:`color,fontSize,fontWeight,lineHeight`}),l;if(this.autoSize){let e=t.style.getPropertyValue(`--_panel-width`),n=t.style.getPropertyValue(`--_panel-height`),r=t.style.width,i=t.style.height;t.style.width=`auto`,t.style.height=`auto`,t.style.setProperty(`--_panel-width`,`max-content`),t.style.setProperty(`--_panel-height`,`max-content`);let a=this.shadowRoot.querySelector(`.body`),o=a?a.style.overflow:``;a&&(a.style.overflow=`visible`),l={width:this._inner.scrollWidth,height:this._inner.scrollHeight},t.style.setProperty(`--_panel-width`,e),t.style.setProperty(`--_panel-height`,n),t.style.width=r,t.style.height=i,a&&(a.style.overflow=o)}let u=this._computeFinalRect(e.rect,l);if(t.style.setProperty(`--_panel-width`,`${u.width}px`),t.style.setProperty(`--_panel-height`,`${u.height}px`),this._applyRect(t,u),t.style.backgroundColor=``,t.style.color=``,t.style.borderRadius=``,t.style.boxShadow=``,r&&a){let e=this._measureHeaderTextRect(),t=this._measureHeaderIconRect(),n=window.getComputedStyle(this._header);this._morphEls.text&&e&&(this._positionElement(this._morphEls.text,e),this._morphEls.text.style.color=n.color||`var(--on-surface)`,this._morphEls.text.style.fontSize=n.fontSize||`inherit`,this._morphEls.text.style.fontWeight=n.fontWeight||`inherit`,this._morphEls.text.style.lineHeight=n.lineHeight||`inherit`),this._morphEls.icon&&t&&(this._positionElement(this._morphEls.icon,t),this._morphEls.icon.style.color=n.color||`var(--on-surface)`)}if(Uc.from(s,{targets:t,duration:.38,ease:`morph-open`,zIndex:this._zIndex,onComplete:()=>{this._isAnimating=!1,this._visible=!0,this._cleanupMorphElements(),o&&(o.style.opacity=`1`)}}),i.length>0){this.blurContent&&Q.set(i,{filter:`blur(16px)`});let e={targets:i,duration:.38,ease:`morph-open`,zIndex:this._zIndex+10};this.blurContent&&(e.filter=`blur(0px)`,e.clearProps=`filter`),Uc.from(c,e)}let d=[this.shadowRoot.querySelector(`.body`),this.shadowRoot.querySelector(`footer`),this.shadowRoot.querySelector(`.close-btn`)].filter(Boolean),f=this.blurContent?`blur(16px)`:`blur(0px)`;Q.set(d,{opacity:0,y:8,filter:f}),Q.fromTo(d,{opacity:0,y:8,filter:f},{opacity:1,y:0,filter:`blur(0px)`,duration:.32,delay:.08,stagger:.04,ease:`power2.out`,onComplete:()=>{Q.set(d,{clearProps:`opacity,transform,filter`}),this._panel.classList.remove(`is-animating`)}})})}}showFrom(e){e&&(this._targetEl=e,this.show())}resizeTo(e,t,n=`center`){if(this.expandedWidth=e,this.expandedHeight=t,!this._visible||!this._panel||!this._targetEl)return;let r=this._computeFinalRect(this._targetEl.getBoundingClientRect()),i=this.parentElement?.closest(`.lab-canvas, [data-morph-coordinate-space]`),a=i?getComputedStyle(i).transform:`none`,o=1,s=1,c;if(i&&a!==`none`){let e=new DOMMatrix(a);o=Math.hypot(e.a,e.b)||1,s=Math.hypot(e.c,e.d)||1,c=i.getBoundingClientRect()}if(n===`top-left`){let e=this._panel.getBoundingClientRect(),t=e.left,n=e.top;c&&(t=(e.left-c.left)/o,n=(e.top-c.top)/s),r=new DOMRect(t,n,r.width,r.height)}else if(n===`center`&&c){let e=window.innerWidth/2-r.width*o/2,t=window.innerHeight/2-r.height*s/2;r=new DOMRect((e-c.left)/o,(t-c.top)/s,r.width,r.height)}this._panel.classList.add(`is-animating`),Q.to(this._panel,{top:r.top,left:r.left,width:r.width,height:r.height,"--_panel-width":`${r.width}px`,"--_panel-height":`${r.height}px`,duration:.32,ease:`morph-open`,overwrite:!0,onComplete:()=>this._panel?.classList.remove(`is-animating`),onInterrupt:()=>this._panel?.classList.remove(`is-animating`)})}_ensureSolidPanelBackground(){if(!this._panel)return;let e=window.getComputedStyle(this._panel).backgroundColor;if(this._isColorTransparent(e)){let e=this._findSolidBackground(this._panel);if(e)this._panel.style.backgroundColor=e;else{let e=getComputedStyle(document.body).getPropertyValue(`--surface-container-high`).trim();this._panel.style.backgroundColor=e||`#2d2d2d`}}}hide(){if(this._isAnimating||!this._visible)return;this._isAnimating=!0,this._panel.classList.add(`is-animating`),this._ensureSolidPanelBackground(),this.style.setProperty(`--_backdrop-duration`,`0.3s`),this.style.setProperty(`--_backdrop-ease`,`cubic-bezier(0.4, 0, 0.2, 1)`);let e=this.shadowRoot.querySelector(`.body`),t=this.shadowRoot.querySelector(`footer`),n=this.shadowRoot.querySelector(`.close-btn`),r=this.shadowRoot.querySelector(`.header-morph-wrapper`),i=[e,t,n,r].filter(Boolean),a=this.blurContent?`blur(12px)`:`blur(6px)`;Q.fromTo(i,{opacity:1,filter:`blur(0px)`},{opacity:0,filter:a,duration:.12,ease:`power2.in`,onComplete:()=>{let e=this._panel,t=this._resolveClosingTarget();this._cleanupMorphElements();let n=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,a=!1,o=[],s=null,c=null;if(a){this._animateLabelClose(),s=this._resolveMorphSource();let e=this._measureHeaderTextRect(),t=this._measureHeaderIconRect(),n=window.getComputedStyle(this._header);if(s.text&&e){let t=this._createMorphText(s.text.content,s.text.sourceEl);this._positionElement(t,e),t.style.color=n.color||`var(--on-surface)`,t.style.fontSize=n.fontSize||`inherit`,t.style.fontWeight=n.fontWeight||`inherit`,t.style.lineHeight=n.lineHeight||`inherit`,o.push(t)}if(s.icon&&t){let e=this._createMorphIcon(s.icon.element);this._positionElement(e,t),e.style.color=n.color||`var(--on-surface)`,o.push(e)}o.length===0&&(a=!1)}if(t&&!a&&!n){let e=this._resolveVisualTarget(t),n=e.getBoundingClientRect();if(n.width>0&&n.height>0){t===this._targetEl&&this._restoreTargetContent();let r=this._createTargetSnapshot(e,n);t===this._targetEl&&this._hideTargetContent(),r.style.opacity=`0`,c={element:r,rect:n,source:e}}}a&&r&&(r.style.opacity=`0`);let l=Uc.getState(e,{props:`backgroundColor,borderRadius,color,boxShadow`}),u=Uc.getState(o,{props:`color,fontSize,fontWeight,lineHeight,opacity`});if(!t){Q.to(this._backdrop,{opacity:0,duration:n?.01:.22,ease:`power2.in`}),Q.to(e,{autoAlpha:0,scale:.92,duration:n?.01:.22,ease:`power2.in`,overwrite:!0,onComplete:()=>{Q.set(e,{clearProps:`transform`}),this._finishHide(i,r)}});return}let d=this._getTargetState(t);if(c){this._runTargetMorphTimeline(e,d,c,i,r,n);return}let f;if(this.autoSize){let t=e.style.getPropertyValue(`--_panel-width`),n=e.style.getPropertyValue(`--_panel-height`),r=e.style.width,i=e.style.height;e.style.width=`auto`,e.style.height=`auto`,e.style.setProperty(`--_panel-width`,`max-content`),e.style.setProperty(`--_panel-height`,`max-content`);let a=this.shadowRoot.querySelector(`.body`),o=a?a.style.overflow:``;a&&(a.style.overflow=`visible`),f={width:this._inner.scrollWidth,height:this._inner.scrollHeight},e.style.setProperty(`--_panel-width`,t),e.style.setProperty(`--_panel-height`,n),e.style.width=r,e.style.height=i,a&&(a.style.overflow=o)}let p=this._computeFinalRect(d.rect,f);if(e.style.setProperty(`--_panel-width`,`${p.width}px`),e.style.setProperty(`--_panel-height`,`${p.height}px`),this._applyRect(e,this._toPanelCoordinateRect(d.rect)),e.style.backgroundColor=d.backgroundColor,e.style.color=d.color,e.style.borderRadius=d.borderRadius,e.style.boxShadow=d.boxShadow,a&&s&&(this._morphEls.text&&s.text&&(this._positionElement(this._morphEls.text,s.text.rect),this._morphEls.text.style.color=window.getComputedStyle(s.text.sourceEl).color||`inherit`,this._morphEls.text.style.fontSize=window.getComputedStyle(s.text.sourceEl).fontSize||`inherit`,this._morphEls.text.style.fontWeight=window.getComputedStyle(s.text.sourceEl).fontWeight||`inherit`,this._morphEls.text.style.lineHeight=window.getComputedStyle(s.text.sourceEl).lineHeight||`inherit`),this._morphEls.icon&&s.icon&&(this._positionElement(this._morphEls.icon,s.icon.rect),this._morphEls.icon.style.color=window.getComputedStyle(s.icon.element).color||`inherit`)),Uc.from(l,{targets:e,duration:.3,ease:`morph-close`,zIndex:this._zIndex,onComplete:()=>this._finishHide(i,r)}),Q.to(this._backdrop,{opacity:0,duration:.3,ease:`power2.inOut`}),o.length>0){this.blurContent&&Q.set(o,{filter:`blur(0px)`});let e={targets:o,duration:.3,ease:`morph-close`,zIndex:this._zIndex+10};this.blurContent&&(e.filter=`blur(12px)`),Uc.from(u,e)}}})}_runTargetMorphTimeline(e,t,n,r,i,a){let o=this._toPanelCoordinateRect(e.getBoundingClientRect()),s=this._toPanelCoordinateRect(t.rect),c=this._toPanelCoordinateRect(n.rect),l=n.element,u=(n.source.getAnimations?.({subtree:!0})??[]).reduce((e,t)=>{let n=t.effect?.getComputedTiming(),r=typeof n?.endTime==`number`?n.endTime:0,i=typeof t.currentTime==`number`?t.currentTime:0;return Math.max(e,Math.max(0,r-i)/1e3)},0),d=Math.min(1.2,Math.max(.46,u)),f={x:o.left+o.width/2,y:o.top+o.height/2},p={x:s.left+s.width/2,y:s.top+s.height/2},m=p.x-f.x,h=p.y-f.y,g=Math.hypot(m,h)||1,_=Math.min(360,Math.max(48,g*.72)),v={x:-h/g,y:m/g},y={x:(f.x+p.x)/2,y:(f.y+p.y)/2},b=this._toPanelCoordinateRect(new DOMRect(window.innerWidth/2,window.innerHeight/2,0,0)),x=[1,-1].map(e=>({x:y.x+v.x*_*e,y:y.y+v.y*_*e})),S=e=>Math.abs(Math.abs(h)>=Math.abs(m)?e.x-b.x:e.y-b.y),C=S(x[0])<=S(x[1])?x[0]:x[1];if(Object.assign(l.style,{position:`absolute`,inset:`50% auto auto 50%`,width:`${c.width}px`,height:`${c.height}px`,transform:`translate(-50%, -50%) scale(.78)`,color:window.getComputedStyle(n.source).color||t.color,opacity:`0`}),a){e.appendChild(l),this._applyRect(e,s),e.style.backgroundColor=t.backgroundColor,e.style.color=t.color,e.style.borderRadius=t.borderRadius,e.style.boxShadow=t.boxShadow,this._backdrop.style.opacity=`0`,l.style.opacity=`1`,this._finishHide(r,i);return}let w=Q.timeline({onComplete:()=>{Q.set(e,{clearProps:`transform`}),this._finishHide(r,i)}});e.style.left=`${o.left}px`,e.style.top=`${o.top}px`,e.style.width=`${o.width}px`,e.style.height=`${o.height}px`;let T=window.getComputedStyle(e),E={backgroundColor:T.backgroundColor,color:T.color,borderRadius:T.borderRadius,boxShadow:T.boxShadow};this._backdrop.style.transition=`none`,this._backdrop.style.opacity=`1`;let D={progress:0},O=!1;this.debug&&console.log(`[moni-morph-modal] arc`,{start:f,control:C,end:p,distance:g,arc:_,morphDuration:d}),w.addLabel(`morph`,0).to(D,{progress:1,duration:d,ease:`power2.inOut`,onUpdate:()=>{let t=D.progress,r=this._getTargetState(n.source),i=this._toPanelCoordinateRect(r.rect),a=this._readTransformState(n.source),c={x:i.left+i.width/2,y:i.top+i.height/2},u=c.x-f.x,d=c.y-f.y,p=Math.hypot(u,d)||1,m=Math.min(360,Math.max(48,p*.72)),h={x:-d/p,y:u/p},g={x:(f.x+c.x)/2,y:(f.y+c.y)/2},_=[1,-1].map(e=>({x:g.x+h.x*m*e,y:g.y+h.y*m*e})),v=S(_[0])<=S(_[1])?_[0]:_[1];this._backdrop.style.opacity=String(Math.max(0,1-t));let y=1-t,b=y*y*f.x+2*y*t*v.x+t*t*c.x,x=y*y*f.y+2*y*t*v.y+t*t*c.y,C=n.source.offsetWidth||i.width,w=n.source.offsetHeight||i.height,T=n.source.offsetWidth||s.width,k=n.source.offsetHeight||s.height,A=o.width+(T-o.width)*t+(C-T),j=o.height+(k-o.height)*t+(w-k);e.style.width=`${A}px`,e.style.height=`${j}px`,Q.set(e,{x:b-A/2-o.left,y:x-j/2-o.top,rotation:a.rotation*t,skewX:a.skewX*t,scaleX:1+(a.scaleX-1)*t,scaleY:1+(a.scaleY-1)*t,backgroundColor:Q.utils.interpolate(E.backgroundColor,r.backgroundColor,t),color:Q.utils.interpolate(E.color,r.color,t),borderRadius:Q.utils.interpolate(E.borderRadius,r.borderRadius,t),boxShadow:Q.utils.interpolate(E.boxShadow,r.boxShadow,t)});let M=Math.max(0,Math.min(1,(t-.6)/.4));!O&&M>0&&(e.appendChild(l),O=!0),l.style.width=`${C}px`,l.style.height=`${w}px`;let ee=.82+M*.18;Q.set(l,{opacity:M,scaleX:A/Math.max(1,C)*ee,scaleY:j/Math.max(1,w)*ee})}},`morph`).addLabel(`target-fade`).to(e,{autoAlpha:0,duration:.08,ease:`power1.out`,onStart:()=>{l.style.visibility=`hidden`,this._restoreTargetContent(),e.style.backgroundColor=`transparent`,e.style.boxShadow=`none`,e.style.borderColor=`transparent`}},`morph+=${d}`)}_finishHide(e,t){let n=this._panel;n.style.visibility=`hidden`,n.style.opacity=`0`,n.style.pointerEvents=`none`,this._visible=!1,this._handlingOpenChange=!0,this.open=!1,this._handlingOpenChange=!1,this._isAnimating=!1,n.classList.remove(`is-animating`),n.style.removeProperty(`--_panel-width`),n.style.removeProperty(`--_panel-height`),this._cleanupMorphElements(),this._restoreTargetContent(),Q.set(e,{clearProps:`opacity,transform,filter`}),t&&(t.style.opacity=`1`),this.style.removeProperty(`z-index`),this.style.removeProperty(`--_z-index`),this.style.removeProperty(`--_backdrop-duration`),this.style.removeProperty(`--_backdrop-ease`);let r=vl._openStack.indexOf(this);r>-1&&vl._openStack.splice(r,1)}_captureOriginFallbacks(e){this._originFallbacks=[];let t=this._getComposedParent(e);for(;t&&t!==document.body&&t!==document.documentElement;)this._originFallbacks.push(t),t=this._getComposedParent(t)}_getComposedParent(e){if(e.parentElement)return e.parentElement;let t=e.getRootNode();return t instanceof ShadowRoot?t.host:null}_resolveClosingTarget(){this.target&&this._resolveTarget();let e=[this._targetEl,...this._originFallbacks].filter((e,t,n)=>!!e&&n.indexOf(e)===t),t=e.find(e=>this._isUsableClosingTarget(e))??null,n=t?t===this._targetEl?`target`:`ancestor`:`fade`;return this._debugMorph(`close`,t,n,e),t}_debugMorph(e,t,n,r){if(!this.debug)return;let i=r.map((e,t)=>{let n=e.getBoundingClientRect();return{index:t,element:`${e.tagName.toLowerCase()}${e.id?`#${e.id}`:``}`,connected:e.isConnected,usable:this._isUsableClosingTarget(e),x:Math.round(n.x),y:Math.round(n.y),width:Math.round(n.width),height:Math.round(n.height)}});console.groupCollapsed(`[moni-morph-modal] ${e} → ${n}`),console.log(`Origin:`,this._targetEl),console.log(`Resolved morph target:`,t),console.table(i),console.groupEnd()}_isUsableClosingTarget(e){if(!e?.isConnected)return!1;let t=e.getBoundingClientRect();if(t.width<2||t.height<2||t.right<=0||t.bottom<=0||t.left>=window.innerWidth||t.top>=window.innerHeight)return!1;let n=e;for(;n&&n!==document.body;){let e=getComputedStyle(n);if(e.display===`none`||e.visibility===`hidden`||e.contentVisibility===`hidden`||Number.parseFloat(e.opacity||`1`)===0&&!this._targetStylesCache.has(n))return!1;n=this._getComposedParent(n)}return!0}toggle(){this._visible||this.open?this.hide():this.show()}_handleDocKeydown(e){e.key!==`Escape`||!this.closeOnEsc||vl._openStack[vl._openStack.length-1]===this&&(e.stopPropagation(),this.hide())}_hideTargetContent(){if(!this._targetEl)return;let e=(e,t)=>{this._targetStylesCache.has(e)||this._targetStylesCache.set(e,{opacity:e.style.opacity,color:e.style.color}),t===`opacity`&&(e.style.opacity=`0`),t===`color`&&(e.style.color=`transparent`)};if(this.hideTarget){e(this._targetEl,`opacity`);return}if(this._targetEl.tagName===`MONI-BUTTON`){let t=this._getMoniButtonParts();t.label&&e(t.label,`opacity`),t.icon&&e(t.icon,`opacity`),t.iconTrailing&&e(t.iconTrailing,`opacity`)}else if(this._targetEl.tagName===`MONI-FAB`){let t=this._targetEl.shadowRoot?.querySelector(`.icon`),n=this._targetEl.shadowRoot?.querySelector(`.label`);t&&e(t,`opacity`),n&&e(n,`opacity`)}else{e(this._targetEl,`color`);let t=this._targetEl.querySelector(`moni-icon, svg, [class*="icon"]`);t&&e(t,`opacity`)}}_restoreTargetContent(){if(!this._targetEl)return;let e=e=>{if(this._targetStylesCache.has(e)){let t=this._targetStylesCache.get(e);e.style.opacity=t.opacity,e.style.color=t.color,this._targetStylesCache.delete(e)}};if(this.hideTarget){e(this._targetEl);return}if(this._targetEl.tagName===`MONI-BUTTON`){let t=this._getMoniButtonParts();t.label&&e(t.label),t.icon&&e(t.icon),t.iconTrailing&&e(t.iconTrailing)}else if(this._targetEl.tagName===`MONI-FAB`){let t=this._targetEl.shadowRoot?.querySelector(`.icon`),n=this._targetEl.shadowRoot?.querySelector(`.label`);t&&e(t),n&&e(n)}else{e(this._targetEl);let t=this._targetEl.querySelector(`moni-icon, svg, [class*="icon"]`);t&&e(t)}}_onHeaderSlotChange(e){let t=e.target;this._hasHeader=t.assignedNodes({flatten:!0}).length>0}_onFooterSlotChange(e){let t=e.target;this._hasFooter=t.assignedNodes({flatten:!0}).length>0}_onTriggerLabelSlotChange(e){let t=e.target;this._hasTriggerLabel=t.assignedNodes({flatten:!0}).length>0}_getTriggerLabelNodes(){return(this.shadowRoot?.querySelector(`slot[name="trigger-label"]`))?.assignedNodes({flatten:!0})??[]}_shouldMorphLabel(){return this.morphLabel&&!!this._targetEl&&(this._hasHeader||this._hasTriggerLabel)}_cleanupMorphElements(){this._targetSnapshot&&=(this._targetSnapshot.remove(),null),this._morphEls.text&&(this._morphEls.text.remove(),this._morphEls.text=null),this._morphEls.icon&&(this._morphEls.icon.remove(),this._morphEls.icon=null)}_animateLabelOpen(){}_animateLabelClose(){}_createMorphText(e,t){let n=document.createElement(`div`);n.className=`morph-text`,n.setAttribute(`data-flip-id`,`morph-text-${this.target}`),n.setAttribute(`aria-hidden`,`true`),n.textContent=e;let r=window.getComputedStyle(t);return n.style.position=`fixed`,n.style.pointerEvents=`none`,n.style.zIndex=String(this._zIndex+10),n.style.display=`inline-flex`,n.style.alignItems=r.alignItems===`normal`?`center`:r.alignItems,n.style.justifyContent=r.justifyContent===`normal`?`flex-start`:r.justifyContent,n.style.whiteSpace=`nowrap`,n.style.color=r.color||`inherit`,n.style.fontFamily=r.fontFamily||`inherit`,n.style.fontSize=r.fontSize||`inherit`,n.style.fontWeight=r.fontWeight||`inherit`,n.style.lineHeight=r.lineHeight||`inherit`,n.style.letterSpacing=r.letterSpacing||`inherit`,this.shadowRoot.appendChild(n),this._morphEls.text=n,n}_createMorphIcon(e){let t=document.createElement(`div`);if(t.className=`morph-icon`,t.setAttribute(`data-flip-id`,`morph-icon-${this.target}`),t.setAttribute(`aria-hidden`,`true`),e.tagName===`MONI-ICON`){let n=document.createElement(`span`);n.textContent=e.getAttribute(`name`)||``;let r=window.getComputedStyle(e);n.style.display=`inline-flex`,n.style.alignItems=`center`,n.style.justifyContent=`center`,n.style.fontFamily=r.fontFamily||`var(--font-icon)`,n.style.fontSize=r.fontSize||`1.125rem`,n.style.inlineSize=r.inlineSize||`1.125rem`,n.style.blockSize=r.blockSize||`1.125rem`,n.style.lineHeight=`1`,n.style.color=`inherit`,n.style.fontWeight=`normal`,n.style.fontStyle=`normal`,n.style.letterSpacing=`normal`,n.style.textTransform=`none`,n.style.whiteSpace=`nowrap`,n.style.wordWrap=`normal`,n.style.direction=`ltr`,n.style.fontFeatureSettings=`'liga'`,n.style.fontVariationSettings=`'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24`,n.style.setProperty(`-webkit-font-smoothing`,`antialiased`),t.appendChild(n)}else t.appendChild(e.cloneNode(!0));let n=window.getComputedStyle(e);return t.style.position=`fixed`,t.style.pointerEvents=`none`,t.style.zIndex=String(this._zIndex+10),t.style.display=`inline-flex`,t.style.alignItems=`center`,t.style.justifyContent=`center`,t.style.color=n.color||`inherit`,t.style.inlineSize=n.inlineSize||`1.125rem`,t.style.blockSize=n.blockSize||`1.125rem`,this.shadowRoot.appendChild(t),this._morphEls.icon=t,t}_positionElement(e,t){let n=this._toPanelCoordinateRect(t);e.style.top=`${n.top}px`,e.style.left=`${n.left}px`,e.style.width=`${n.width}px`,e.style.height=`${n.height}px`}_toPanelCoordinateRect(e){let t=this.parentElement?.closest(`.lab-canvas, [data-morph-coordinate-space]`);if(!t)return e;let n=getComputedStyle(t).transform;if(!n||n===`none`)return e;let r=1,i=1;if(typeof DOMMatrix<`u`){let e=new DOMMatrix(n);r=Math.hypot(e.a,e.b)||1,i=Math.hypot(e.c,e.d)||1}else{let e=n.match(/^matrix\(([^)]+)\)$/),t=n.match(/^scale\(([^)]+)\)$/);if(e){let t=e[1].split(`,`).map(Number);r=Math.hypot(t[0],t[1])||1,i=Math.hypot(t[2],t[3])||1}else if(t){let e=t[1].split(/[,\s]+/).map(Number);r=e[0]||1,i=e[1]||r}}let a=t.getBoundingClientRect();return new DOMRect((e.left-a.left)/r,(e.top-a.top)/i,e.width/r,e.height/i)}_getMoniButtonParts(){let e=this._targetEl?.shadowRoot;return{label:e?.querySelector(`[part="label"]`)??null,icon:e?.querySelector(`[part="icon"]`)??null,iconTrailing:e?.querySelector(`[part="icon-trailing"]`)??null}}_resolveMorphSource(){let e={text:null,icon:null};if(!this._targetEl)return e;if(this._hasTriggerLabel){let t=this._getTriggerLabelNodes();if(t.length>0){let n=document.createElement(`div`);for(let e of t)n.appendChild(e.cloneNode(!0));n.style.position=`fixed`,n.style.visibility=`hidden`,n.style.pointerEvents=`none`,this.shadowRoot.appendChild(n);let r=this._targetEl.getBoundingClientRect();n.remove(),e.text={content:n.textContent?.trim()||``,rect:r,sourceEl:this._targetEl}}return e}if(this._targetEl.tagName===`MONI-BUTTON`){let t=this._getMoniButtonParts();if(t.label&&(e.text={content:this._targetEl.textContent?.trim()||``,rect:t.label.getBoundingClientRect(),sourceEl:t.label}),t.icon){let n=t.icon.querySelector(`moni-icon, svg`)||t.icon;e.icon={element:n,rect:n.getBoundingClientRect()}}return e}let t=this._targetEl;if(this.morphLabelSelector){let e=this._targetEl.querySelector(this.morphLabelSelector);e&&(t=e)}let n=t.textContent?.trim()||``;n&&(e.text={content:n,rect:t.getBoundingClientRect(),sourceEl:t});let r=t.querySelector(`moni-icon, svg, [class*="icon"]`);return r&&(e.icon={element:r,rect:r.getBoundingClientRect()}),e}_measureHeaderTextRect(){if(!this._header)return null;let e=(this.shadowRoot?.querySelector(`slot[name="header"]`))?.assignedNodes({flatten:!0})??[];for(let t of e){if(t.nodeType===Node.TEXT_NODE&&t.textContent?.trim()){let e=document.createRange();return e.selectNode(t),e.getBoundingClientRect()}if(t.nodeType===Node.ELEMENT_NODE){let e=t;if(e.tagName===`MONI-ICON`||e.tagName===`SVG`)continue;let n=Array.from(e.childNodes);for(let e of n){if(e.nodeType===Node.TEXT_NODE&&e.textContent?.trim()){let t=document.createRange();return t.selectNode(e),t.getBoundingClientRect()}if(e.nodeType===Node.ELEMENT_NODE){let t=e;if(t.tagName!==`MONI-ICON`&&t.tagName!==`SVG`&&t.textContent?.trim())return t.getBoundingClientRect()}}if(e.textContent?.trim())return e.getBoundingClientRect()}}return this._header.getBoundingClientRect()}_measureHeaderIconRect(){let e=this._measureHeaderTextRect();if(!e)return null;let t=(this.shadowRoot?.querySelector(`slot[name="header"]`))?.assignedNodes({flatten:!0})??[];for(let e of t)if(e.nodeType===Node.ELEMENT_NODE){let t=e;if(t.tagName===`MONI-ICON`||t.tagName===`SVG`)return t.getBoundingClientRect();let n=t.querySelector(`moni-icon, svg`);if(n)return n.getBoundingClientRect()}return new DOMRect(e.left-24-12,e.top+e.height/2-12,24,24)}_findSolidBackground(e){let t=[e,...Array.from(e.querySelectorAll(`*`))];for(let e of t){let t=window.getComputedStyle(e).backgroundColor;if(!this._isColorTransparent(t))return t}if(e.shadowRoot){let t=Array.from(e.shadowRoot.querySelectorAll(`*`));for(let e of t){let t=window.getComputedStyle(e).backgroundColor;if(!this._isColorTransparent(t))return t}}return null}_getTargetState(e){let t=this._resolveVisualTarget(e),n=t.getBoundingClientRect(),r=window.getComputedStyle(t).backgroundColor;if(this._isColorTransparent(r)){let e=window.getComputedStyle(t,`::before`).backgroundColor;if(!this._isColorTransparent(e))r=e;else{let e=window.getComputedStyle(t,`::after`).backgroundColor;if(!this._isColorTransparent(e))r=e;else{let e=this._findSolidBackground(t);e&&(r=e)}}}this._isColorTransparent(r)&&this._panel&&(r=window.getComputedStyle(this._panel).backgroundColor);let i=window.getComputedStyle(t);return{rect:n,backgroundColor:r,color:i.color||`var(--on-surface)`,borderRadius:i.borderRadius||`1.25rem`,boxShadow:i.boxShadow||`none`}}_resolveVisualTarget(e){if(e.tagName===`MONI-BUTTON`)return e.shadowRoot?.querySelector(`.button`)??e;if(e.tagName===`MONI-FAB`)return e.shadowRoot?.querySelector(`button`)??e;if(e.tagName===`MONI-FAB-MENU`){let t=e.shadowRoot?.querySelector(`.trigger`);return t?.shadowRoot?.querySelector(`button`)??t??e}return e}_createTargetSnapshot(e,t){this._targetSnapshot?.remove();let n=document.createElement(`div`);n.className=`morph-target-snapshot`,n.setAttribute(`aria-hidden`,`true`);let r=this._cloneComposedNode(e);return r&&(n.appendChild(r),r instanceof HTMLElement&&![`IMG`,`VIDEO`,`CANVAS`,`SVG`,`PICTURE`].includes(e.tagName)&&(Object.assign(r.style,{background:`transparent`,backgroundColor:`transparent`,boxShadow:`none`,borderColor:`transparent`,outline:`none`,position:`relative`,inset:`auto`,transform:`none`,opacity:`1`,visibility:`visible`,width:`100%`,height:`100%`}),e.tagName===`BUTTON`&&(r.style.whiteSpace=`nowrap`,r.querySelectorAll(`span, [part~="label"]`).forEach(e=>{e.style.whiteSpace=`nowrap`})))),Object.assign(n.style,{width:`${t.width}px`,height:`${t.height}px`,overflow:`hidden`,pointerEvents:`none`}),this._targetSnapshot=n,n}_cloneComposedNode(e){if(e.nodeType===Node.TEXT_NODE)return e.cloneNode(!1);if(!(e instanceof Element))return null;if(e instanceof HTMLSlotElement){let t=document.createDocumentFragment(),n=e.assignedNodes({flatten:!0});for(let r of n.length?n:Array.from(e.childNodes)){let e=this._cloneComposedNode(r);e&&t.appendChild(e)}return t}let t=e.shadowRoot?document.createElement(`div`):e.cloneNode(!1);e instanceof HTMLImageElement&&t instanceof HTMLImageElement&&(t.loading=`eager`,t.decoding=`sync`,e.currentSrc&&(t.src=e.currentSrc)),t.removeAttribute(`id`),t.removeAttribute(`name`),t.setAttribute(`aria-hidden`,`true`);let n=window.getComputedStyle(e);for(let e=0;e<n.length;e+=1){let r=n.item(e);t.style.setProperty(r,n.getPropertyValue(r),n.getPropertyPriority(r))}let r=e.shadowRoot?Array.from(e.shadowRoot.childNodes).filter(e=>!(e instanceof HTMLStyleElement)):Array.from(e.childNodes);for(let e of r){let n=this._cloneComposedNode(e);n&&t.appendChild(n)}return t}_isColorTransparent(e){if(!e)return!0;let t=e.replace(/\s/g,``).toLowerCase();return t===`rgba(0,0,0,0)`||t===`transparent`||t===``||t.includes(`,0)`)||t.includes(`/0)`)}_readTransformState(e){let t=window.getComputedStyle(e).transform;if(!t||t===`none`)return{rotation:0,skewX:0,scaleX:1,scaleY:1};try{let e=t.match(/matrix(?:3d)?\(([^)]+)\)/)?.[1].split(`,`).map(e=>Number.parseFloat(e.trim())),n,r,i,a;if(e?.length===6)[n,r,i,a]=e;else if(e?.length===16)n=e[0],r=e[1],i=e[4],a=e[5];else{let e=new DOMMatrix(t);({a:n,b:r,c:i,d:a}=e)}let o=Math.hypot(n,r)||1,s=(n*a-r*i)/o||1;return{rotation:180/Math.PI*Math.atan2(r,n),skewX:Math.atan2(n*i+r*a,o*o)*(180/Math.PI),scaleX:o,scaleY:s}}catch{return{rotation:0,skewX:0,scaleX:1,scaleY:1}}}_applyRect(e,t){e.style.top=`${t.top}px`,e.style.left=`${t.left}px`,e.style.width=`${t.width}px`,e.style.height=`${t.height}px`}_usesFullscreen(){return this.fullscreen?!0:this.responsiveFullscreen&&typeof window<`u`&&window.innerWidth<=this.fullscreenBreakpoint}_computeFinalRect(e,t){let n=window.innerWidth,r=window.innerHeight;if(this._usesFullscreen())return new DOMRect(0,0,n,r);let i=this.autoSize&&t?t.width:this._parseSize(this.expandedWidth,n),a=this.autoSize&&t?t.height:this._parseSize(this.expandedHeight,r);i=Math.min(i,n-32),a=Math.min(a,r-32);let o=e.top,s=e.left;switch(this.placement){case`viewport-center`:s=n/2-i/2,o=r/2-a/2;break;case`viewport-top`:s=n/2-i/2,o=16;break;case`viewport-bottom`:s=n/2-i/2,o=r-a-16;break;case`viewport-left`:s=16,o=r/2-a/2;break;case`viewport-right`:s=n-i-16,o=r/2-a/2;break;case`viewport-top-left`:s=16,o=16;break;case`viewport-top-right`:s=n-i-16,o=16;break;case`viewport-bottom-left`:s=16,o=r-a-16;break;case`viewport-bottom-right`:s=n-i-16,o=r-a-16;break;case`center`:s=e.left+e.width/2-i/2,o=e.top+e.height/2-a/2;break;case`top`:s=e.left+e.width/2-i/2,o=this.coverTarget?e.top+e.height-a:e.top-a;break;case`top-start`:s=e.left+e.width-i,o=this.coverTarget?e.top+e.height-a:e.top-a;break;case`top-end`:s=e.left,o=this.coverTarget?e.top+e.height-a:e.top-a;break;case`bottom`:s=e.left+e.width/2-i/2,o=this.coverTarget?e.top:e.top+e.height;break;case`bottom-start`:s=e.left+e.width-i,o=this.coverTarget?e.top:e.top+e.height;break;case`bottom-end`:s=e.left,o=this.coverTarget?e.top:e.top+e.height;break;case`left`:s=this.coverTarget?e.left+e.width-i:e.left-i,o=e.top+e.height/2-a/2;break;case`left-start`:s=this.coverTarget?e.left+e.width-i:e.left-i,o=e.top+e.height-a;break;case`left-end`:s=this.coverTarget?e.left+e.width-i:e.left-i,o=e.top;break;case`right`:s=this.coverTarget?e.left:e.left+e.width,o=e.top+e.height/2-a/2;break;case`right-start`:s=this.coverTarget?e.left:e.left+e.width,o=e.top+e.height-a;break;case`right-end`:s=this.coverTarget?e.left:e.left+e.width,o=e.top}return s=Math.max(16,Math.min(s,n-i-16)),o=Math.max(16,Math.min(o,r-a-16)),new DOMRect(s,o,i,a)}_parseSize(e,t){let n=parseFloat(e);return Number.isNaN(n)?352:e.endsWith(`px`)?n:e.endsWith(`rem`)||e.endsWith(`em`)?n*16:e.endsWith(`%`)?n/100*t:e.endsWith(`vw`)?n/100*window.innerWidth:e.endsWith(`vh`)?n/100*window.innerHeight:n}static{this.styles=[W,g`
|
|
7449
7449
|
:host {
|
|
7450
7450
|
display: contents;
|
|
7451
7451
|
}
|
|
@@ -7482,6 +7482,19 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
7482
7482
|
z-index: var(--_z-index, 100);
|
|
7483
7483
|
}
|
|
7484
7484
|
|
|
7485
|
+
.panel.fullscreen {
|
|
7486
|
+
border-radius: 0;
|
|
7487
|
+
box-shadow: none;
|
|
7488
|
+
}
|
|
7489
|
+
|
|
7490
|
+
.panel.fullscreen header {
|
|
7491
|
+
padding-block-start: max(1.25rem, env(safe-area-inset-top));
|
|
7492
|
+
}
|
|
7493
|
+
|
|
7494
|
+
.panel.fullscreen footer {
|
|
7495
|
+
padding-block-end: max(1.5rem, env(safe-area-inset-bottom));
|
|
7496
|
+
}
|
|
7497
|
+
|
|
7485
7498
|
.panel-inner {
|
|
7486
7499
|
display: flex;
|
|
7487
7500
|
flex-direction: column;
|
|
@@ -7564,7 +7577,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
7564
7577
|
.trigger-label-slot {
|
|
7565
7578
|
display: none;
|
|
7566
7579
|
}
|
|
7567
|
-
`]}render(){let e=this._visible||this.open,t=!this._hasHeader&&!this.showCloseButton;return L`
|
|
7580
|
+
`]}render(){let e=this._visible||this.open,t=!this._hasHeader&&!this.showCloseButton,n=this._usesFullscreen();return L`
|
|
7568
7581
|
${this.hasBackdrop?L`
|
|
7569
7582
|
<div
|
|
7570
7583
|
class="backdrop ${e?`open`:``}"
|
|
@@ -7572,7 +7585,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
7572
7585
|
style="${this.modal?``:`background-color: transparent;`}"
|
|
7573
7586
|
></div>
|
|
7574
7587
|
`:``}
|
|
7575
|
-
<div class="panel" part="panel">
|
|
7588
|
+
<div class="panel ${n?`fullscreen`:``}" part="panel">
|
|
7576
7589
|
<div class="panel-inner" part="panel-inner">
|
|
7577
7590
|
<header
|
|
7578
7591
|
class="${t?`is-empty`:``}"
|
|
@@ -7601,7 +7614,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
7601
7614
|
<div class="trigger-label-slot">
|
|
7602
7615
|
<slot name="trigger-label" @slotchange=${this._onTriggerLabelSlotChange}></slot>
|
|
7603
7616
|
</div>
|
|
7604
|
-
`}};G([B({reflect:!0})]
|
|
7617
|
+
`}};G([B({reflect:!0})],$.prototype,`target`,void 0),G([B({type:Boolean,reflect:!0,converter:yl})],$.prototype,`open`,void 0),G([B({type:Boolean,reflect:!0,converter:yl})],$.prototype,`modal`,void 0),G([B({reflect:!0})],$.prototype,`placement`,void 0),G([B({reflect:!0,attribute:`expanded-width`})],$.prototype,`expandedWidth`,void 0),G([B({reflect:!0,attribute:`expanded-height`})],$.prototype,`expandedHeight`,void 0),G([B({type:Boolean,reflect:!0,attribute:`close-on-click-outside`,converter:yl})],$.prototype,`closeOnClickOutside`,void 0),G([B({type:Boolean,reflect:!0,attribute:`close-on-esc`,converter:yl})],$.prototype,`closeOnEsc`,void 0),G([B({type:Boolean,reflect:!0,attribute:`show-close-button`,converter:yl})],$.prototype,`showCloseButton`,void 0),G([B({type:Boolean,reflect:!0,attribute:`morph-label`,converter:yl})],$.prototype,`morphLabel`,void 0),G([B({reflect:!0,attribute:`morph-label-selector`})],$.prototype,`morphLabelSelector`,void 0),G([B({type:Boolean,reflect:!0,attribute:`has-backdrop`,converter:yl})],$.prototype,`hasBackdrop`,void 0),G([B({type:Boolean,reflect:!0,attribute:`hide-target`,converter:yl})],$.prototype,`hideTarget`,void 0),G([B({type:Boolean,reflect:!0,attribute:`cover-target`,converter:yl})],$.prototype,`coverTarget`,void 0),G([B({type:Boolean,reflect:!0,attribute:`auto-size`,converter:yl})],$.prototype,`autoSize`,void 0),G([B({type:Boolean,reflect:!0,converter:yl})],$.prototype,`fullscreen`,void 0),G([B({type:Boolean,reflect:!0,attribute:`responsive-fullscreen`,converter:yl})],$.prototype,`responsiveFullscreen`,void 0),G([B({type:Number,reflect:!0,attribute:`fullscreen-breakpoint`})],$.prototype,`fullscreenBreakpoint`,void 0),G([B({type:Boolean,reflect:!0,attribute:`blur-content`,converter:yl})],$.prototype,`blurContent`,void 0),G([B({type:Boolean,reflect:!0,converter:yl})],$.prototype,`debug`,void 0),G([H(`.panel`)],$.prototype,`_panel`,void 0),G([H(`.panel-inner`)],$.prototype,`_inner`,void 0),G([H(`.backdrop`)],$.prototype,`_backdrop`,void 0),G([H(`header`)],$.prototype,`_header`,void 0),G([V()],$.prototype,`_hasHeader`,void 0),G([V()],$.prototype,`_hasFooter`,void 0),G([V()],$.prototype,`_hasTriggerLabel`,void 0),$=vl=G([z(`moni-morph-modal`)],$);var bl=class extends U{constructor(...e){super(...e),this.items=[],this.layout=`multi-browse`,this.auto=!0,this.largeWidth=220,this.mediumWidth=96,this.smallWidth=48,this.gap=8,this.padding=16,this.borderRadius=28,this.showAll=!1,this.showAllText=`Show all`,this.headerText=``,this.hideNav=!1,this.infinite=!1,this.autoplay=!1,this.autoplayInterval=3e3,this._containerWidth=0,this._slottedItems=[],this._hasSlottedShowAll=!1,this._resizeObserver=null,this._logicalItemInViewport=[],this._isDragging=!1,this._dragStartX=0,this._scrollLeftAtDragStart=0,this._pointerVelocity=0,this._lastPointerTime=0,this._lastPointerX=0,this._totalDraggedDistance=0,this._animationFrameId=null,this._isMobile=!1,this._tickerTarget=0,this._tickerCurrent=0,this._isTicking=!1,this._infiniteInitialized=!1,this._autoplayTimer=null,this._cardSetX=[],this._cardSetWidth=[],this._imgSetX=[],this._titleSetOpacity=[],this._tick=()=>{let e=Q.ticker.deltaRatio(),t=this._isMobile?.08:.15;this._tickerCurrent+=(this._tickerTarget-this._tickerCurrent)*t*e,Math.abs(this._tickerTarget-this._tickerCurrent)<5e-4&&(this._tickerCurrent=this._tickerTarget,Q.ticker.remove(this._tick),this._isTicking=!1,this._checkInfiniteWrap()),this._applyLayout(this._tickerCurrent)},this._scheduleLayout=()=>{this._scrollContainer&&(this._tickerTarget=this._scrollContainer.scrollLeft/this.itemSize,this._isTicking||(this._isTicking=!0,Q.ticker.add(this._tick)))},this.updateLayout=(e=!1)=>{if(!(!this._scrollContainer||!this._cards||this._cards.length===0)){if(this._cardSetX.length!==this._cards.length&&this._buildQuickSetters(),this.infinite&&!this._infiniteInitialized&&this.effectiveItems.length>0){let e=this.effectiveItems.length*this._visualCardsMultiplier,t=this._snapSetsCount,n=Math.floor(t/2);requestAnimationFrame(()=>{setTimeout(()=>{this._scrollContainer&&(this._scrollContainer.scrollWidth,this._scrollContainer.scrollLeft=n*e*this.itemSize,this._tickerTarget=this._scrollContainer.scrollLeft/this.itemSize,this._tickerCurrent=this._tickerTarget,this._applyLayout(this._tickerCurrent))},20)}),this._infiniteInitialized=!0}this._tickerTarget=this._scrollContainer.scrollLeft/this.itemSize,e||!this._isTicking&&this._tickerCurrent===0?(this._tickerCurrent=this._tickerTarget,this._applyLayout(this._tickerCurrent)):this._isTicking||(this._isTicking=!0,Q.ticker.add(this._tick))}}}willUpdate(e){super.willUpdate(e);for(let e of[`largeWidth`,`mediumWidth`,`smallWidth`,`gap`,`padding`,`borderRadius`,`autoplayInterval`]){let t=this[e];if(typeof t!=`string`)continue;let n=Number(t);Number.isFinite(n)&&(this[e]=n)}}get effectiveItems(){return this.items&&this.items.length>0?this.items:this._slottedItems}static{this.styles=[W,g`
|
|
7605
7618
|
:host {
|
|
7606
7619
|
display: block;
|
|
7607
7620
|
width: 100%;
|
|
@@ -7825,7 +7838,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
7825
7838
|
direction: ltr;
|
|
7826
7839
|
-webkit-font-smoothing: antialiased;
|
|
7827
7840
|
}
|
|
7828
|
-
`]}connectedCallback(){if(super.connectedCallback(),typeof ResizeObserver<`u`&&(this._resizeObserver=new ResizeObserver(e=>{for(let t of e)this._containerWidth=t.contentRect.width,this.updateLayout(!0),this.requestUpdate()}),this._resizeObserver.observe(this)),typeof window<`u`&&typeof window.matchMedia==`function`){let e=window.matchMedia(`(max-width: 600px)`);this._isMobile=e.matches;let t=e=>{this._isMobile=e.matches};e.addEventListener(`change`,t),this.__mqlCleanup=()=>e.removeEventListener(`change`,t)}}disconnectedCallback(){this._resizeObserver&&this._resizeObserver.disconnect(),this._animationFrameId!==null&&(cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null),$.ticker.remove(this._tick),this._isTicking=!1,this.__mqlCleanup&&(this.__mqlCleanup(),delete this.__mqlCleanup),super.disconnectedCallback()}firstUpdated(){let e=this.shadowRoot?.querySelector(`slot:not([name])`);e&&this._handleSlotChange({target:e});let t=this.shadowRoot?.querySelector(`slot[name="show-all"]`);t&&this._handleShowAllSlotChange({target:t}),this._buildQuickSetters(),this.updateLayout(!0),this.autoplay&&this._startAutoplay()}updated(e){super.updated(e),(e.has(`layout`)||e.has(`largeWidth`)||e.has(`mediumWidth`)||e.has(`smallWidth`)||e.has(`gap`)||e.has(`padding`)||e.has(`items`)||e.has(`hideNav`)||e.has(`infinite`)||e.has(`autoplay`)||e.has(`autoplayInterval`)||e.has(`_containerWidth`)||e.has(`_slottedItems`)||e.has(`_hasSlottedShowAll`))&&((e.has(`infinite`)||e.has(`items`)||e.has(`_slottedItems`))&&(this._infiniteInitialized=!1),e.has(`layout`)&&this._scrollContainer&&(this._scrollContainer.scrollLeft=0,this._infiniteInitialized=!1,this._scrollContainer.style.scrollSnapType=this.layout===`uncontained`?`none`:`x mandatory`),this.updateLayout(!0),(e.has(`autoplay`)||e.has(`autoplayInterval`)||e.has(`items`)||e.has(`_slottedItems`))&&(this.autoplay?this._startAutoplay():this._stopAutoplay()))}get computedLayout(){let e=this._containerWidth||this.getBoundingClientRect().width||360,t=this.gap,n=e-2*this.padding,r=this.largeWidth,i=this.mediumWidth,a=this.smallWidth,o=1;if(this.auto){if(this.layout===`uncontained`)r=Math.min(n,260);else if(this.layout===`hero`)a=48,o=Math.max(1,Math.floor((n-a)/(250+t))),r=(n-a-o*t)/o,r<150&&(o=1,r=n-a-t);else{a=48;let e=1,s=220,c=1/0;for(let r=1;r<=10;r++){let i=(n-a-(r+1)*t)/(r+.45);if(i>=140&&i<=340){let t=Math.abs(i-220);t<c&&(c=t,e=r,s=i)}}c===1/0?(o=1,r=(n-a-2*t)/1.45):(o=e,r=s),i=.45*r}}else r=this.largeWidth,i=this.mediumWidth,a=this.smallWidth,o=this.layout===`hero`?1:this.layout===`uncontained`?Math.max(1,Math.floor(n/(r+t))):1;return{largeItemWidth:r,mediumItemWidth:i,smallItemWidth:a,largeItemCount:o}}get itemSize(){return this.computedLayout.largeItemWidth+this.gap}_getCardLayout(e){let{largeItemWidth:t,mediumItemWidth:n,smallItemWidth:r,largeItemCount:i}=this.computedLayout,a=this.gap,o=this.padding,s=t,c=o,l=1,u=!0;if(this.layout===`uncontained`){s=t,c=o+e*(t+a),l=1;let n=this._containerWidth||this.getBoundingClientRect().width||360;u=c+s>0&&c<n}else if(this.layout===`hero`){let n=o+i*(t+a),d=-r;if(e<=-1)s=r,c=d+(e- -1)*(r+Math.max(a,o)),l=0,u=!1;else if(e<=0)s=$.utils.interpolate(r,t,e+1),c=$.utils.interpolate(d,o,e+1),l=$.utils.interpolate(0,1,e+1),u=!0;else if(e<=i-1)s=t,c=o+e*(t+a),l=1,u=!0;else if(e<=i){let d=e-(i-1),f=o+(i-1)*(t+a);s=$.utils.interpolate(t,r,d),c=$.utils.interpolate(f,n,d),l=$.utils.interpolate(1,0,d),u=!0}else{let t=this._containerWidth||this.getBoundingClientRect().width||360;s=r;let a=Math.max(r+o,t-n);c=n+(e-i)*a,l=0,u=!1}}else{let d=o+i*(t+a),f=d+n+a,p=-r;if(e<=-1)s=r,c=p+(e- -1)*(r+Math.max(a,o)),l=0,u=!1;else if(e<=0)s=$.utils.interpolate(r,t,e+1),c=$.utils.interpolate(p,o,e+1),l=$.utils.interpolate(0,1,e+1),u=!0;else if(e<=i-1)s=t,c=o+e*(t+a),l=1,u=!0;else if(e<=i){let r=e-(i-1),f=o+(i-1)*(t+a);s=$.utils.interpolate(t,n,r),c=$.utils.interpolate(f,d,r),l=$.utils.interpolate(1,0,r),u=!0}else if(e<=i+1){let t=e-i;s=$.utils.interpolate(n,r,t),c=$.utils.interpolate(d,f,t),l=0,u=!0}else{let t=this._containerWidth||this.getBoundingClientRect().width||360;s=r;let n=Math.max(r+o,t-f);c=f+(e-(i+1))*n,l=0,u=!1}}return{width:s,x:c,opacity:l,visible:u}}_buildQuickSetters(){!this._cards||this._cards.length===0||(this._cardSetX=[],this._cardSetWidth=[],this._imgSetX=[],this._titleSetOpacity=[],this._logicalItemInViewport=Array(this.effectiveItems.length).fill(!1),this._cards.forEach(e=>{this._cardSetX.push($.quickSetter(e,`x`,`px`)),this._cardSetWidth.push($.quickSetter(e,`width`,`px`));let t=e.querySelector(`img`);this._imgSetX.push(t?$.quickSetter(t,`x`,`px`):(()=>{}));let n=e.querySelector(`.card-title`);this._titleSetOpacity.push(n?$.quickSetter(n,`opacity`):(()=>{}))}))}_applyLayout(e){let t=this._isMobile,n=this._cards.length,r=new Map,i=new Map;for(let a=0;a<n;a++){let o=a-e,s=this._cards[a],c=Number(s.dataset.index||0),l=this.infinite?c%this.effectiveItems.length:c;if(i.has(l)||i.set(l,s),this.infinite&&(o=a-e%n,o>n/2&&(o-=n),o<-n/2&&(o+=n)),o<-15||o>15){this._cardSetX[a](-9999),this._titleSetOpacity[a](0);continue}let u=this._getCardLayout(o);if(u.visible&&(r.has(l)||r.set(l,s)),this._cardSetX[a](u.x),this._cardSetWidth[a](u.width),!t){let e=Math.max(-1,Math.min(1,o));this._imgSetX[a](e*-25)}this._titleSetOpacity[a](u.opacity)}for(let e=0;e<this.effectiveItems.length;e++){let t=r.has(e);if(this._logicalItemInViewport[e]!==t){this._logicalItemInViewport[e]=t;let n=t?`moni-item-entered-viewport`:`moni-item-left-viewport`,a=r.get(e)||i.get(e)||null;Ye(this,n,{detail:{item:this.effectiveItems[e],index:e,card:a}})}}}get _visualCardsMultiplier(){if(!this.infinite||this.effectiveItems.length===0)return 1;let e=this.effectiveItems.length;return Math.max(1,Math.ceil(15/e))}get _snapSetsCount(){if(!this.infinite||this.effectiveItems.length===0)return 1;let e=this.effectiveItems.length*this._visualCardsMultiplier,t=Math.ceil(1e3/e);return t%2==0&&(t+=1),Math.max(3,t)}get _snapItemsCount(){if(this.infinite){let e=this.effectiveItems.length,t=this._visualCardsMultiplier;return this._snapSetsCount*(e*t)}return this.effectiveItems.length}_checkInfiniteWrap(){if(!this.infinite||this.effectiveItems.length===0||!this._scrollContainer)return;let e=this.effectiveItems.length*this._visualCardsMultiplier,t=this._snapSetsCount,n=Math.floor(t/2),r=e*this.itemSize,i=this._scrollContainer.scrollLeft,a=Math.floor(i/r);if(a!==n){let e=(n-a)*r,t=this._scrollContainer.style.scrollSnapType,i=this._scrollContainer.style.scrollBehavior;this._scrollContainer.style.scrollSnapType=`none`,this._scrollContainer.style.scrollBehavior=`auto`,this._scrollContainer.scrollLeft+=e,this._tickerTarget=this._scrollContainer.scrollLeft/this.itemSize,this._tickerCurrent=this._tickerTarget,this._applyLayout(this._tickerCurrent),this._scrollContainer.style.scrollBehavior=i,this._isDragging&&(this._scrollLeftAtDragStart+=e),t&&t!==`none`&&requestAnimationFrame(()=>{this._scrollContainer&&!this._isDragging&&(this._scrollContainer.style.scrollSnapType=t)})}}_startAutoplay(){this._stopAutoplay(),this.autoplay&&this.effectiveItems.length>0&&(this._autoplayTimer=setInterval(()=>{this._isDragging||this._scrollNext()},this.autoplayInterval))}_stopAutoplay(){this._autoplayTimer&&=(clearInterval(this._autoplayTimer),null)}_handleMouseEnter(){}_handleMouseLeave(){this._handleMouseUp()}_handleMouseDown(e){$.killTweensOf(this._scrollContainer),this._checkInfiniteWrap(),this._isDragging=!0,this._totalDraggedDistance=0,this._scrollContainer.style.scrollBehavior=`auto`,this._scrollContainer.style.scrollSnapType=`none`,this._dragStartX=e.pageX-this._scrollContainer.offsetLeft,this._scrollLeftAtDragStart=this._scrollContainer.scrollLeft,this._pointerVelocity=0,this._lastPointerX=e.pageX,this._lastPointerTime=performance.now()}_handleMouseMove(e){if(!this._isDragging)return;e.preventDefault();let t=e.pageX,n=t-this._scrollContainer.offsetLeft;this._scrollContainer.scrollLeft=this._scrollLeftAtDragStart+(this._dragStartX-n)*1.25;let r=performance.now(),i=r-this._lastPointerTime;i>0&&(this._pointerVelocity=(t-this._lastPointerX)/i),this._totalDraggedDistance+=Math.abs(t-this._lastPointerX),this._lastPointerX=t,this._lastPointerTime=r}_handleMouseUp(){if(!this._isDragging)return;this._isDragging=!1,performance.now()-this._lastPointerTime>100&&(this._pointerVelocity=0);let e=350+Math.abs(this._pointerVelocity)*300,t=this._scrollContainer.scrollLeft-this._pointerVelocity*e,n=15*this.itemSize;if(t<this._scrollContainer.scrollLeft-n?t=this._scrollContainer.scrollLeft-n:t>this._scrollContainer.scrollLeft+n&&(t=this._scrollContainer.scrollLeft+n),this.layout!==`uncontained`){this._scrollContainer.style.scrollSnapType=`none`;let e=Math.round(t/this.itemSize),n=this.effectiveItems.length>0?this._snapItemsCount-1:0;e=Math.max(0,Math.min(n,e));let r=e*this.itemSize,i=Math.round(this._scrollContainer.scrollLeft/this.itemSize),a=Math.abs(e-i),o=Math.min(.85,.25+a*.04);this._scrollContainer.style.scrollBehavior=`auto`,$.to(this._scrollContainer,{scrollLeft:r,duration:o,ease:`power3.out`,onComplete:()=>{!this._isDragging&&this._scrollContainer&&(this._scrollContainer.style.scrollSnapType=`x mandatory`)}})}}_handleTouchStart(e){$.killTweensOf(this._scrollContainer),this._checkInfiniteWrap(),this._isDragging=!0,this._totalDraggedDistance=0,this._scrollContainer.style.scrollBehavior=`auto`,this._scrollContainer.style.scrollSnapType=`none`;let t=e.touches[0];this._dragStartX=t.pageX-this._scrollContainer.offsetLeft,this._scrollLeftAtDragStart=this._scrollContainer.scrollLeft,this._pointerVelocity=0,this._lastPointerX=t.pageX,this._lastPointerTime=performance.now()}_handleTouchMove(e){if(!this._isDragging)return;let t=e.touches[0].pageX,n=t-this._scrollContainer.offsetLeft;this._scrollContainer.scrollLeft=this._scrollLeftAtDragStart+(this._dragStartX-n);let r=performance.now(),i=r-this._lastPointerTime;i>0&&(this._pointerVelocity=(t-this._lastPointerX)/i),this._totalDraggedDistance+=Math.abs(t-this._lastPointerX),this._lastPointerX=t,this._lastPointerTime=r}_handleTouchEnd(){this._handleMouseUp()}_handleWheel(e){if(Math.abs(e.deltaY)>Math.abs(e.deltaX)){let t=this._scrollContainer.scrollWidth-this._scrollContainer.clientWidth,n=this._scrollContainer.scrollLeft,r=n<=0,i=n>=t-1;if(e.deltaY<0&&r||e.deltaY>0&&i)return;e.preventDefault(),this._scrollContainer.style.scrollSnapType=`none`;let a=e.deltaY;e.deltaMode===1?a*=40:e.deltaMode===2&&(a*=800),this._scrollContainer.scrollLeft+=a,this._wheelTimeout&&clearTimeout(this._wheelTimeout),this._wheelTimeout=setTimeout(()=>{this.layout!==`uncontained`&&!this._isDragging&&(this._scrollContainer.style.scrollSnapType=`x mandatory`)},150)}}_handleCardClick(e,t,n){if(this._totalDraggedDistance>8){e.preventDefault(),e.stopPropagation();return}let r=n%this.effectiveItems.length;this.dispatchEvent(new CustomEvent(`item-click`,{bubbles:!0,composed:!0,detail:{item:t,index:r}})),Ye(this,`moni-item-click`,{detail:{item:t,index:r}})}_scrollPrevious(){let e=this._scrollContainer.scrollLeft-this.itemSize;this._scrollContainer.style.scrollBehavior=`smooth`,this._scrollContainer.scrollTo({left:e,behavior:`smooth`})}_scrollNext(){let e=this._scrollContainer.scrollLeft+this.itemSize;this._scrollContainer.style.scrollBehavior=`smooth`,this._scrollContainer.scrollTo({left:e,behavior:`smooth`})}_handleShowAllClick(e){let t=e.target;t.tagName.toLowerCase()===`a`&&t.getAttribute(`href`)===`#`&&e.preventDefault(),this.dispatchEvent(new CustomEvent(`show-all-click`,{bubbles:!0,composed:!0})),Ye(this,`moni-show-all-click`)}_handleShowAllSlotChange(e){let t=e.target,n=typeof t.assignedElements==`function`?t.assignedElements({flatten:!0}):[];n.length===0&&(n=t.assignedNodes().filter(e=>e.nodeType===1)),n.length===0&&(n=Array.from(this.querySelectorAll(`[slot="show-all"]`))),this._hasSlottedShowAll=n.length>0}_handleSlotChange(e){let t=e.target,n=typeof t.assignedElements==`function`?t.assignedElements({flatten:!0}):[];n.length===0&&(n=t.assignedNodes().filter(e=>e.nodeType===1)),n.length===0&&(n=Array.from(this.children).filter(e=>e.getAttribute(`slot`)!==`show-all`));let r=[];for(let e of n)if(e.tagName.toLowerCase()===`img`){let t=e;r.push({title:t.getAttribute(`title`)||t.getAttribute(`alt`)||``,img:t.src})}else if(e.tagName.toLowerCase()===`a`){let t=e,n=t.querySelector(`img`);n&&r.push({title:n.getAttribute(`title`)||n.getAttribute(`alt`)||t.getAttribute(`title`)||``,img:n.src,href:t.href,target:t.target})}this._slottedItems=r;let i=!!this.querySelector(`[slot="show-all"]`);i!==this._hasSlottedShowAll&&(this._hasSlottedShowAll=i),this.updateComplete.then(()=>{this.updateLayout(!0),Ye(this,`moni-slot-items-changed`,{detail:{items:this._slottedItems}})})}render(){let{largeItemWidth:e,mediumItemWidth:t,smallItemWidth:n}=this.computedLayout,r=this.effectiveItems&&this.effectiveItems.length>0,i=this._hasSlottedShowAll||!!this.querySelector(`[slot="show-all"]`),a=this.headerText||this.showAll||i,o=128;o=this.layout===`hero`?n+this.gap:this.layout===`uncontained`?16:t+n+2*this.gap;let s=(this._containerWidth||this.getBoundingClientRect().width||360)-e-this.padding+400;o<s&&(o=s);let c=r?this._snapItemsCount:0,l=this.effectiveItems;if(this.infinite&&r){let e=this._visualCardsMultiplier;l=[];for(let t=0;t<e;t++)l=l.concat(this.effectiveItems)}let u=r?c*e+(c-1)*this.gap:0,d=r&&this._scrollContainer&&this._scrollContainer.scrollWidth>this._scrollContainer.clientWidth,f=this.infinite||d&&this._scrollContainer.scrollLeft>5,p=this.infinite||d&&this._scrollContainer.scrollWidth-this._scrollContainer.scrollLeft-this._scrollContainer.clientWidth>5;return L`
|
|
7841
|
+
`]}connectedCallback(){if(super.connectedCallback(),typeof ResizeObserver<`u`&&(this._resizeObserver=new ResizeObserver(e=>{for(let t of e)this._containerWidth=t.contentRect.width,this.updateLayout(!0),this.requestUpdate()}),this._resizeObserver.observe(this)),typeof window<`u`&&typeof window.matchMedia==`function`){let e=window.matchMedia(`(max-width: 600px)`);this._isMobile=e.matches;let t=e=>{this._isMobile=e.matches};e.addEventListener(`change`,t),this.__mqlCleanup=()=>e.removeEventListener(`change`,t)}}disconnectedCallback(){this._resizeObserver&&this._resizeObserver.disconnect(),this._animationFrameId!==null&&(cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null),Q.ticker.remove(this._tick),this._isTicking=!1,this.__mqlCleanup&&(this.__mqlCleanup(),delete this.__mqlCleanup),super.disconnectedCallback()}firstUpdated(){let e=this.shadowRoot?.querySelector(`slot:not([name])`);e&&this._handleSlotChange({target:e});let t=this.shadowRoot?.querySelector(`slot[name="show-all"]`);t&&this._handleShowAllSlotChange({target:t}),this._buildQuickSetters(),this.updateLayout(!0),this.autoplay&&this._startAutoplay()}updated(e){super.updated(e),(e.has(`layout`)||e.has(`largeWidth`)||e.has(`mediumWidth`)||e.has(`smallWidth`)||e.has(`gap`)||e.has(`padding`)||e.has(`items`)||e.has(`hideNav`)||e.has(`infinite`)||e.has(`autoplay`)||e.has(`autoplayInterval`)||e.has(`_containerWidth`)||e.has(`_slottedItems`)||e.has(`_hasSlottedShowAll`))&&((e.has(`infinite`)||e.has(`items`)||e.has(`_slottedItems`))&&(this._infiniteInitialized=!1),e.has(`layout`)&&this._scrollContainer&&(this._scrollContainer.scrollLeft=0,this._infiniteInitialized=!1,this._scrollContainer.style.scrollSnapType=this.layout===`uncontained`?`none`:`x mandatory`),this.updateLayout(!0),(e.has(`autoplay`)||e.has(`autoplayInterval`)||e.has(`items`)||e.has(`_slottedItems`))&&(this.autoplay?this._startAutoplay():this._stopAutoplay()))}get computedLayout(){let e=this._containerWidth||this.getBoundingClientRect().width||360,t=this.gap,n=e-2*this.padding,r=this.largeWidth,i=this.mediumWidth,a=this.smallWidth,o=1;if(this.auto){if(this.layout===`uncontained`)r=Math.min(n,260);else if(this.layout===`hero`)a=48,o=Math.max(1,Math.floor((n-a)/(250+t))),r=(n-a-o*t)/o,r<150&&(o=1,r=n-a-t);else{a=48;let e=1,s=220,c=1/0;for(let r=1;r<=10;r++){let i=(n-a-(r+1)*t)/(r+.45);if(i>=140&&i<=340){let t=Math.abs(i-220);t<c&&(c=t,e=r,s=i)}}c===1/0?(o=1,r=(n-a-2*t)/1.45):(o=e,r=s),i=.45*r}}else r=this.largeWidth,i=this.mediumWidth,a=this.smallWidth,o=this.layout===`hero`?1:this.layout===`uncontained`?Math.max(1,Math.floor(n/(r+t))):1;return{largeItemWidth:r,mediumItemWidth:i,smallItemWidth:a,largeItemCount:o}}get itemSize(){return this.computedLayout.largeItemWidth+this.gap}_getCardLayout(e){let{largeItemWidth:t,mediumItemWidth:n,smallItemWidth:r,largeItemCount:i}=this.computedLayout,a=this.gap,o=this.padding,s=t,c=o,l=1,u=!0;if(this.layout===`uncontained`){s=t,c=o+e*(t+a),l=1;let n=this._containerWidth||this.getBoundingClientRect().width||360;u=c+s>0&&c<n}else if(this.layout===`hero`){let n=o+i*(t+a),d=-r;if(e<=-1)s=r,c=d+(e- -1)*(r+Math.max(a,o)),l=0,u=!1;else if(e<=0)s=Q.utils.interpolate(r,t,e+1),c=Q.utils.interpolate(d,o,e+1),l=Q.utils.interpolate(0,1,e+1),u=!0;else if(e<=i-1)s=t,c=o+e*(t+a),l=1,u=!0;else if(e<=i){let d=e-(i-1),f=o+(i-1)*(t+a);s=Q.utils.interpolate(t,r,d),c=Q.utils.interpolate(f,n,d),l=Q.utils.interpolate(1,0,d),u=!0}else{let t=this._containerWidth||this.getBoundingClientRect().width||360;s=r;let a=Math.max(r+o,t-n);c=n+(e-i)*a,l=0,u=!1}}else{let d=o+i*(t+a),f=d+n+a,p=-r;if(e<=-1)s=r,c=p+(e- -1)*(r+Math.max(a,o)),l=0,u=!1;else if(e<=0)s=Q.utils.interpolate(r,t,e+1),c=Q.utils.interpolate(p,o,e+1),l=Q.utils.interpolate(0,1,e+1),u=!0;else if(e<=i-1)s=t,c=o+e*(t+a),l=1,u=!0;else if(e<=i){let r=e-(i-1),f=o+(i-1)*(t+a);s=Q.utils.interpolate(t,n,r),c=Q.utils.interpolate(f,d,r),l=Q.utils.interpolate(1,0,r),u=!0}else if(e<=i+1){let t=e-i;s=Q.utils.interpolate(n,r,t),c=Q.utils.interpolate(d,f,t),l=0,u=!0}else{let t=this._containerWidth||this.getBoundingClientRect().width||360;s=r;let n=Math.max(r+o,t-f);c=f+(e-(i+1))*n,l=0,u=!1}}return{width:s,x:c,opacity:l,visible:u}}_buildQuickSetters(){!this._cards||this._cards.length===0||(this._cardSetX=[],this._cardSetWidth=[],this._imgSetX=[],this._titleSetOpacity=[],this._logicalItemInViewport=Array(this.effectiveItems.length).fill(!1),this._cards.forEach(e=>{this._cardSetX.push(Q.quickSetter(e,`x`,`px`)),this._cardSetWidth.push(Q.quickSetter(e,`width`,`px`));let t=e.querySelector(`img`);this._imgSetX.push(t?Q.quickSetter(t,`x`,`px`):(()=>{}));let n=e.querySelector(`.card-title`);this._titleSetOpacity.push(n?Q.quickSetter(n,`opacity`):(()=>{}))}))}_applyLayout(e){let t=this._isMobile,n=this._cards.length,r=new Map,i=new Map;for(let a=0;a<n;a++){let o=a-e,s=this._cards[a],c=Number(s.dataset.index||0),l=this.infinite?c%this.effectiveItems.length:c;if(i.has(l)||i.set(l,s),this.infinite&&(o=a-e%n,o>n/2&&(o-=n),o<-n/2&&(o+=n)),o<-15||o>15){this._cardSetX[a](-9999),this._titleSetOpacity[a](0);continue}let u=this._getCardLayout(o);if(u.visible&&(r.has(l)||r.set(l,s)),this._cardSetX[a](u.x),this._cardSetWidth[a](u.width),!t){let e=Math.max(-1,Math.min(1,o));this._imgSetX[a](e*-25)}this._titleSetOpacity[a](u.opacity)}for(let e=0;e<this.effectiveItems.length;e++){let t=r.has(e);if(this._logicalItemInViewport[e]!==t){this._logicalItemInViewport[e]=t;let n=t?`moni-item-entered-viewport`:`moni-item-left-viewport`,a=r.get(e)||i.get(e)||null;Ye(this,n,{detail:{item:this.effectiveItems[e],index:e,card:a}})}}}get _visualCardsMultiplier(){if(!this.infinite||this.effectiveItems.length===0)return 1;let e=this.effectiveItems.length;return Math.max(1,Math.ceil(15/e))}get _snapSetsCount(){if(!this.infinite||this.effectiveItems.length===0)return 1;let e=this.effectiveItems.length*this._visualCardsMultiplier,t=Math.ceil(1e3/e);return t%2==0&&(t+=1),Math.max(3,t)}get _snapItemsCount(){if(this.infinite){let e=this.effectiveItems.length,t=this._visualCardsMultiplier;return this._snapSetsCount*(e*t)}return this.effectiveItems.length}_checkInfiniteWrap(){if(!this.infinite||this.effectiveItems.length===0||!this._scrollContainer)return;let e=this.effectiveItems.length*this._visualCardsMultiplier,t=this._snapSetsCount,n=Math.floor(t/2),r=e*this.itemSize,i=this._scrollContainer.scrollLeft,a=Math.floor(i/r);if(a!==n){let e=(n-a)*r,t=this._scrollContainer.style.scrollSnapType,i=this._scrollContainer.style.scrollBehavior;this._scrollContainer.style.scrollSnapType=`none`,this._scrollContainer.style.scrollBehavior=`auto`,this._scrollContainer.scrollLeft+=e,this._tickerTarget=this._scrollContainer.scrollLeft/this.itemSize,this._tickerCurrent=this._tickerTarget,this._applyLayout(this._tickerCurrent),this._scrollContainer.style.scrollBehavior=i,this._isDragging&&(this._scrollLeftAtDragStart+=e),t&&t!==`none`&&requestAnimationFrame(()=>{this._scrollContainer&&!this._isDragging&&(this._scrollContainer.style.scrollSnapType=t)})}}_startAutoplay(){this._stopAutoplay(),this.autoplay&&this.effectiveItems.length>0&&(this._autoplayTimer=setInterval(()=>{this._isDragging||this._scrollNext()},this.autoplayInterval))}_stopAutoplay(){this._autoplayTimer&&=(clearInterval(this._autoplayTimer),null)}_handleMouseEnter(){}_handleMouseLeave(){this._handleMouseUp()}_handleMouseDown(e){Q.killTweensOf(this._scrollContainer),this._checkInfiniteWrap(),this._isDragging=!0,this._totalDraggedDistance=0,this._scrollContainer.style.scrollBehavior=`auto`,this._scrollContainer.style.scrollSnapType=`none`,this._dragStartX=e.pageX-this._scrollContainer.offsetLeft,this._scrollLeftAtDragStart=this._scrollContainer.scrollLeft,this._pointerVelocity=0,this._lastPointerX=e.pageX,this._lastPointerTime=performance.now()}_handleMouseMove(e){if(!this._isDragging)return;e.preventDefault();let t=e.pageX,n=t-this._scrollContainer.offsetLeft;this._scrollContainer.scrollLeft=this._scrollLeftAtDragStart+(this._dragStartX-n)*1.25;let r=performance.now(),i=r-this._lastPointerTime;i>0&&(this._pointerVelocity=(t-this._lastPointerX)/i),this._totalDraggedDistance+=Math.abs(t-this._lastPointerX),this._lastPointerX=t,this._lastPointerTime=r}_handleMouseUp(){if(!this._isDragging)return;this._isDragging=!1,performance.now()-this._lastPointerTime>100&&(this._pointerVelocity=0);let e=350+Math.abs(this._pointerVelocity)*300,t=this._scrollContainer.scrollLeft-this._pointerVelocity*e,n=15*this.itemSize;if(t<this._scrollContainer.scrollLeft-n?t=this._scrollContainer.scrollLeft-n:t>this._scrollContainer.scrollLeft+n&&(t=this._scrollContainer.scrollLeft+n),this.layout!==`uncontained`){this._scrollContainer.style.scrollSnapType=`none`;let e=Math.round(t/this.itemSize),n=this.effectiveItems.length>0?this._snapItemsCount-1:0;e=Math.max(0,Math.min(n,e));let r=e*this.itemSize,i=Math.round(this._scrollContainer.scrollLeft/this.itemSize),a=Math.abs(e-i),o=Math.min(.85,.25+a*.04);this._scrollContainer.style.scrollBehavior=`auto`,Q.to(this._scrollContainer,{scrollLeft:r,duration:o,ease:`power3.out`,onComplete:()=>{!this._isDragging&&this._scrollContainer&&(this._scrollContainer.style.scrollSnapType=`x mandatory`)}})}}_handleTouchStart(e){Q.killTweensOf(this._scrollContainer),this._checkInfiniteWrap(),this._isDragging=!0,this._totalDraggedDistance=0,this._scrollContainer.style.scrollBehavior=`auto`,this._scrollContainer.style.scrollSnapType=`none`;let t=e.touches[0];this._dragStartX=t.pageX-this._scrollContainer.offsetLeft,this._scrollLeftAtDragStart=this._scrollContainer.scrollLeft,this._pointerVelocity=0,this._lastPointerX=t.pageX,this._lastPointerTime=performance.now()}_handleTouchMove(e){if(!this._isDragging)return;let t=e.touches[0].pageX,n=t-this._scrollContainer.offsetLeft;this._scrollContainer.scrollLeft=this._scrollLeftAtDragStart+(this._dragStartX-n);let r=performance.now(),i=r-this._lastPointerTime;i>0&&(this._pointerVelocity=(t-this._lastPointerX)/i),this._totalDraggedDistance+=Math.abs(t-this._lastPointerX),this._lastPointerX=t,this._lastPointerTime=r}_handleTouchEnd(){this._handleMouseUp()}_handleWheel(e){if(Math.abs(e.deltaY)>Math.abs(e.deltaX)){let t=this._scrollContainer.scrollWidth-this._scrollContainer.clientWidth,n=this._scrollContainer.scrollLeft,r=n<=0,i=n>=t-1;if(e.deltaY<0&&r||e.deltaY>0&&i)return;e.preventDefault(),this._scrollContainer.style.scrollSnapType=`none`;let a=e.deltaY;e.deltaMode===1?a*=40:e.deltaMode===2&&(a*=800),this._scrollContainer.scrollLeft+=a,this._wheelTimeout&&clearTimeout(this._wheelTimeout),this._wheelTimeout=setTimeout(()=>{this.layout!==`uncontained`&&!this._isDragging&&(this._scrollContainer.style.scrollSnapType=`x mandatory`)},150)}}_handleCardClick(e,t,n){if(this._totalDraggedDistance>8){e.preventDefault(),e.stopPropagation();return}let r=n%this.effectiveItems.length;this.dispatchEvent(new CustomEvent(`item-click`,{bubbles:!0,composed:!0,detail:{item:t,index:r}})),Ye(this,`moni-item-click`,{detail:{item:t,index:r}})}_scrollPrevious(){let e=this._scrollContainer.scrollLeft-this.itemSize;this._scrollContainer.style.scrollBehavior=`smooth`,this._scrollContainer.scrollTo({left:e,behavior:`smooth`})}_scrollNext(){let e=this._scrollContainer.scrollLeft+this.itemSize;this._scrollContainer.style.scrollBehavior=`smooth`,this._scrollContainer.scrollTo({left:e,behavior:`smooth`})}_handleShowAllClick(e){let t=e.target;t.tagName.toLowerCase()===`a`&&t.getAttribute(`href`)===`#`&&e.preventDefault(),this.dispatchEvent(new CustomEvent(`show-all-click`,{bubbles:!0,composed:!0})),Ye(this,`moni-show-all-click`)}_handleShowAllSlotChange(e){let t=e.target,n=typeof t.assignedElements==`function`?t.assignedElements({flatten:!0}):[];n.length===0&&(n=t.assignedNodes().filter(e=>e.nodeType===1)),n.length===0&&(n=Array.from(this.querySelectorAll(`[slot="show-all"]`))),this._hasSlottedShowAll=n.length>0}_handleSlotChange(e){let t=e.target,n=typeof t.assignedElements==`function`?t.assignedElements({flatten:!0}):[];n.length===0&&(n=t.assignedNodes().filter(e=>e.nodeType===1)),n.length===0&&(n=Array.from(this.children).filter(e=>e.getAttribute(`slot`)!==`show-all`));let r=[];for(let e of n)if(e.tagName.toLowerCase()===`img`){let t=e;r.push({title:t.getAttribute(`title`)||t.getAttribute(`alt`)||``,img:t.src})}else if(e.tagName.toLowerCase()===`a`){let t=e,n=t.querySelector(`img`);n&&r.push({title:n.getAttribute(`title`)||n.getAttribute(`alt`)||t.getAttribute(`title`)||``,img:n.src,href:t.href,target:t.target})}this._slottedItems=r;let i=!!this.querySelector(`[slot="show-all"]`);i!==this._hasSlottedShowAll&&(this._hasSlottedShowAll=i),this.updateComplete.then(()=>{this.updateLayout(!0),Ye(this,`moni-slot-items-changed`,{detail:{items:this._slottedItems}})})}render(){let{largeItemWidth:e,mediumItemWidth:t,smallItemWidth:n}=this.computedLayout,r=this.effectiveItems&&this.effectiveItems.length>0,i=this._hasSlottedShowAll||!!this.querySelector(`[slot="show-all"]`),a=this.headerText||this.showAll||i,o=128;o=this.layout===`hero`?n+this.gap:this.layout===`uncontained`?16:t+n+2*this.gap;let s=(this._containerWidth||this.getBoundingClientRect().width||360)-e-this.padding+400;o<s&&(o=s);let c=r?this._snapItemsCount:0,l=this.effectiveItems;if(this.infinite&&r){let e=this._visualCardsMultiplier;l=[];for(let t=0;t<e;t++)l=l.concat(this.effectiveItems)}let u=r?c*e+(c-1)*this.gap:0,d=r&&this._scrollContainer&&this._scrollContainer.scrollWidth>this._scrollContainer.clientWidth,f=this.infinite||d&&this._scrollContainer.scrollLeft>5,p=this.infinite||d&&this._scrollContainer.scrollWidth-this._scrollContainer.scrollLeft-this._scrollContainer.clientWidth>5;return L`
|
|
7829
7842
|
<div class="carousel-container" style="
|
|
7830
7843
|
--carousel-snap-width: ${e}px;
|
|
7831
7844
|
--carousel-gap: ${this.gap}px;
|
|
@@ -8009,5 +8022,5 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
8009
8022
|
:host([color='tertiary']) { --_shape-bg:var(--color-tertiary-container);--_shape-fg:var(--color-on-tertiary-container); }
|
|
8010
8023
|
:host([color='surface']) { --_shape-bg:var(--color-surface-container-highest);--_shape-fg:var(--color-on-surface); }
|
|
8011
8024
|
@media (prefers-reduced-motion:reduce) { .shape { transition:none; } }
|
|
8012
|
-
`]}render(){return L`<div class="shape" style=${`--_radius:${this.shapeRadius||`1rem`};--_morph-duration:${this.duration};--_morph-easing:${this.easing};`} part="shape"><slot></slot></div>`}};return G([B({reflect:!0})],xl.prototype,`type`,void 0),G([B({reflect:!0})],xl.prototype,`name`,void 0),G([B({reflect:!0})],xl.prototype,`size`,void 0),G([B({type:Boolean,reflect:!0})],xl.prototype,`border`,void 0),G([B({type:Boolean,reflect:!0})],xl.prototype,`shadow`,void 0),G([B({reflect:!0,attribute:`shape-radius`})],xl.prototype,`shapeRadius`,void 0),G([B({reflect:!0})],xl.prototype,`color`,void 0),G([B({reflect:!0})],xl.prototype,`duration`,void 0),G([B({reflect:!0})],xl.prototype,`easing`,void 0),xl=G([z(`moni-shape`)],xl),Object.defineProperty(e,"MoniAppBar",{enumerable:!0,get:function(){return qe}}),Object.defineProperty(e,"MoniBadge",{enumerable:!0,get:function(){return Je}}),Object.defineProperty(e,"MoniBottomSheet",{enumerable:!0,get:function(){return Xe}}),Object.defineProperty(e,"MoniButton",{enumerable:!0,get:function(){return et}}),Object.defineProperty(e,"MoniButtonGroup",{enumerable:!0,get:function(){return Zt}}),Object.defineProperty(e,"MoniButtonSegment",{enumerable:!0,get:function(){return $t}}),Object.defineProperty(e,"MoniCard",{enumerable:!0,get:function(){return tt}}),Object.defineProperty(e,"MoniCarousel",{enumerable:!0,get:function(){return bl}}),Object.defineProperty(e,"MoniCheckbox",{enumerable:!0,get:function(){return ut}}),Object.defineProperty(e,"MoniChip",{enumerable:!0,get:function(){return dt}}),Object.defineProperty(e,"MoniColorField",{enumerable:!0,get:function(){return pt}}),Object.defineProperty(e,"MoniContextMenu",{enumerable:!0,get:function(){return ht}}),Object.defineProperty(e,"MoniDialog",{enumerable:!0,get:function(){return gt}}),Object.defineProperty(e,"MoniDivider",{enumerable:!0,get:function(){return _t}}),Object.defineProperty(e,"MoniExpansion",{enumerable:!0,get:function(){return vt}}),Object.defineProperty(e,"MoniFab",{enumerable:!0,get:function(){return yt}}),Object.defineProperty(e,"MoniFabMenu",{enumerable:!0,get:function(){return bt}}),Object.defineProperty(e,"MoniFileField",{enumerable:!0,get:function(){return xt}}),Object.defineProperty(e,"MoniIcon",{enumerable:!0,get:function(){return Ze}}),Object.defineProperty(e,"MoniList",{enumerable:!0,get:function(){return St}}),Object.defineProperty(e,"MoniListItem",{enumerable:!0,get:function(){return Ct}}),Object.defineProperty(e,"MoniLoadingIndicator",{enumerable:!0,get:function(){return rn}}),Object.defineProperty(e,"MoniMenu",{enumerable:!0,get:function(){return mt}}),Object.defineProperty(e,"MoniMenuItem",{enumerable:!0,get:function(){return wt}}),Object.defineProperty(e,"MoniMorphModal",{enumerable:!0,get:function(){return
|
|
8025
|
+
`]}render(){return L`<div class="shape" style=${`--_radius:${this.shapeRadius||`1rem`};--_morph-duration:${this.duration};--_morph-easing:${this.easing};`} part="shape"><slot></slot></div>`}};return G([B({reflect:!0})],xl.prototype,`type`,void 0),G([B({reflect:!0})],xl.prototype,`name`,void 0),G([B({reflect:!0})],xl.prototype,`size`,void 0),G([B({type:Boolean,reflect:!0})],xl.prototype,`border`,void 0),G([B({type:Boolean,reflect:!0})],xl.prototype,`shadow`,void 0),G([B({reflect:!0,attribute:`shape-radius`})],xl.prototype,`shapeRadius`,void 0),G([B({reflect:!0})],xl.prototype,`color`,void 0),G([B({reflect:!0})],xl.prototype,`duration`,void 0),G([B({reflect:!0})],xl.prototype,`easing`,void 0),xl=G([z(`moni-shape`)],xl),Object.defineProperty(e,"MoniAppBar",{enumerable:!0,get:function(){return qe}}),Object.defineProperty(e,"MoniBadge",{enumerable:!0,get:function(){return Je}}),Object.defineProperty(e,"MoniBottomSheet",{enumerable:!0,get:function(){return Xe}}),Object.defineProperty(e,"MoniButton",{enumerable:!0,get:function(){return et}}),Object.defineProperty(e,"MoniButtonGroup",{enumerable:!0,get:function(){return Zt}}),Object.defineProperty(e,"MoniButtonSegment",{enumerable:!0,get:function(){return $t}}),Object.defineProperty(e,"MoniCard",{enumerable:!0,get:function(){return tt}}),Object.defineProperty(e,"MoniCarousel",{enumerable:!0,get:function(){return bl}}),Object.defineProperty(e,"MoniCheckbox",{enumerable:!0,get:function(){return ut}}),Object.defineProperty(e,"MoniChip",{enumerable:!0,get:function(){return dt}}),Object.defineProperty(e,"MoniColorField",{enumerable:!0,get:function(){return pt}}),Object.defineProperty(e,"MoniContextMenu",{enumerable:!0,get:function(){return ht}}),Object.defineProperty(e,"MoniDialog",{enumerable:!0,get:function(){return gt}}),Object.defineProperty(e,"MoniDivider",{enumerable:!0,get:function(){return _t}}),Object.defineProperty(e,"MoniExpansion",{enumerable:!0,get:function(){return vt}}),Object.defineProperty(e,"MoniFab",{enumerable:!0,get:function(){return yt}}),Object.defineProperty(e,"MoniFabMenu",{enumerable:!0,get:function(){return bt}}),Object.defineProperty(e,"MoniFileField",{enumerable:!0,get:function(){return xt}}),Object.defineProperty(e,"MoniIcon",{enumerable:!0,get:function(){return Ze}}),Object.defineProperty(e,"MoniList",{enumerable:!0,get:function(){return St}}),Object.defineProperty(e,"MoniListItem",{enumerable:!0,get:function(){return Ct}}),Object.defineProperty(e,"MoniLoadingIndicator",{enumerable:!0,get:function(){return rn}}),Object.defineProperty(e,"MoniMenu",{enumerable:!0,get:function(){return mt}}),Object.defineProperty(e,"MoniMenuItem",{enumerable:!0,get:function(){return wt}}),Object.defineProperty(e,"MoniMorphModal",{enumerable:!0,get:function(){return $}}),Object.defineProperty(e,"MoniNav",{enumerable:!0,get:function(){return Tt}}),Object.defineProperty(e,"MoniNavItem",{enumerable:!0,get:function(){return Et}}),Object.defineProperty(e,"MoniProgress",{enumerable:!0,get:function(){return Qe}}),Object.defineProperty(e,"MoniRadio",{enumerable:!0,get:function(){return Ot}}),Object.defineProperty(e,"MoniRipple",{enumerable:!0,get:function(){return kt}}),Object.defineProperty(e,"MoniSegmentedButton",{enumerable:!0,get:function(){return tn}}),Object.defineProperty(e,"MoniSelect",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"MoniSelectOption",{enumerable:!0,get:function(){return At}}),Object.defineProperty(e,"MoniShape",{enumerable:!0,get:function(){return xl}}),Object.defineProperty(e,"MoniSideSheet",{enumerable:!0,get:function(){return Ht}}),Object.defineProperty(e,"MoniSlider",{enumerable:!0,get:function(){return jt}}),Object.defineProperty(e,"MoniSnackbar",{enumerable:!0,get:function(){return Mt}}),Object.defineProperty(e,"MoniSplitButton",{enumerable:!0,get:function(){return Qt}}),Object.defineProperty(e,"MoniStep",{enumerable:!0,get:function(){return Nt}}),Object.defineProperty(e,"MoniStepper",{enumerable:!0,get:function(){return Pt}}),Object.defineProperty(e,"MoniSwitch",{enumerable:!0,get:function(){return Ft}}),Object.defineProperty(e,"MoniTab",{enumerable:!0,get:function(){return It}}),Object.defineProperty(e,"MoniTabs",{enumerable:!0,get:function(){return Lt}}),Object.defineProperty(e,"MoniTextField",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(e,"MoniTextarea",{enumerable:!0,get:function(){return J}}),Object.defineProperty(e,"MoniTimePicker",{enumerable:!0,get:function(){return Bt}}),Object.defineProperty(e,"MoniToolbar",{enumerable:!0,get:function(){return Vt}}),Object.defineProperty(e,"MoniTooltip",{enumerable:!0,get:function(){return Ut}}),Object.defineProperty(e,"MoniTypography",{enumerable:!0,get:function(){return Xt}}),e})({});
|
|
8013
8026
|
//# sourceMappingURL=moni-ui.iife.min.js.map
|