@xcpcio/board-app 0.53.1 → 0.53.2
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/dist/404.html +1 -1
- package/dist/assets/Balloon.vue_vue_type_script_setup_true_lang-CNaNh1cd.js +1 -0
- package/dist/assets/Board-D7W2MZ4t.js +1 -0
- package/dist/assets/{ContestStateBadge-7wQzxk8G.js → ContestStateBadge-fTJw-IjF.js} +1 -1
- package/dist/assets/Countdown-1A-2QJ7m.js +1 -0
- package/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-CXts-riZ.js +1 -0
- package/dist/assets/{Footer.vue_vue_type_script_setup_true_lang-DKX0udaw.js → Footer.vue_vue_type_script_setup_true_lang-Bk0nFBfB.js} +1 -1
- package/dist/assets/{NavBar-u32CnGNs.js → NavBar-C6sQ5txU.js} +1 -1
- package/dist/assets/Resolver-A6qSPE_R.js +25 -0
- package/dist/assets/{RightArrowIcon-C0kFrdwD.js → RightArrowIcon-ClOVVo1B.js} +1 -1
- package/dist/assets/{TheInput.vue_vue_type_script_setup_true_lang-JUZCaDDe.js → TheInput.vue_vue_type_script_setup_true_lang-D5spkHqx.js} +1 -1
- package/dist/assets/{Tooltip.vue_vue_type_script_setup_true_lang-BDZrFekD.js → Tooltip.vue_vue_type_script_setup_true_lang-FgOX36Lq.js} +1 -1
- package/dist/assets/{_...all_-DWAxHlYz.js → _...all_-BSvAEkM-.js} +1 -1
- package/dist/assets/_...all_-DmfbP4Ao.js +1 -0
- package/dist/assets/{_name_-9a9T81bP.js → _name_-AmLA_ZW6.js} +1 -1
- package/dist/assets/{about-4fkjm2Q9.js → about-tPNAra1j.js} +1 -1
- package/dist/assets/board-D0VTebOf.js +1 -0
- package/dist/assets/{board-layout-iVgXr9cV.js → board-layout-C2v-fo1W.js} +1 -1
- package/dist/assets/{constant-BloPFjTg.js → constant-b2ZZlr_Y.js} +1 -1
- package/dist/assets/{default-Dfp7T80x.js → default-D4907N0j.js} +1 -1
- package/dist/assets/{headless-mKevhAWY.js → headless-C_cFBCtG.js} +1 -1
- package/dist/assets/{home-DtVjeLJy.js → home-CRZ6rGwZ.js} +1 -1
- package/dist/assets/{index-BjMqMJ9d.js → index-BnOiKE-V.js} +1 -1
- package/dist/assets/index-Bvki346r.js +1 -0
- package/dist/assets/{index-DXoiO_9Q.js → index-CVZtA3I-.js} +3 -3
- package/dist/assets/{index-T0V7hFOw.js → index-ClcpF-3G.js} +1 -1
- package/dist/assets/index-D5Eq7tNN.js +1 -0
- package/dist/assets/{index-CJmQltjE.js → index-DQYGiW5A.js} +1 -1
- package/dist/assets/{index-w4oLejMc.js → index-Dar9HUtt.js} +1 -1
- package/dist/assets/{index-D5ZO7j9A.js → index-XjAdtRAz.js} +1 -1
- package/dist/assets/index-cu4LZbd6.js +1 -0
- package/dist/assets/{index-layout-DcvtlPA2.js → index-layout-Bp7ERlAB.js} +1 -1
- package/dist/assets/{pagination-EiFUbGj_.js → pagination-CHOfWwrE.js} +1 -1
- package/dist/assets/query-C-pLpLZb.js +1 -0
- package/dist/assets/{test-_7cPDLJE.js → test-Bw2mUsPy.js} +1 -1
- package/dist/assets/{use-vmodel-CkMPj1sw.js → use-vmodel-BKVjZ-1P.js} +1 -1
- package/dist/assets/{user-CAaqMJHl.js → user-o9hs8HNN.js} +1 -1
- package/dist/assets/{virtual_pwa-register-Dafkmfjm.js → virtual_pwa-register-8shrxAmh.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +3 -3
- package/src/components/board/Utility.vue +18 -3
- package/src/composables/useQueryBoardData.ts +28 -14
- package/src/pages/[...all].vue +15 -4
- package/src/shims.d.ts +1 -0
- package/vite.config.ts +8 -8
- package/dist/assets/Board-CdRX5Jlm.js +0 -1
- package/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-Bn95nFBm.js +0 -1
- package/dist/assets/_...all_-BQGY1hVe.js +0 -1
- package/dist/assets/board-loNE7y_y.js +0 -1
- package/dist/assets/index-7LWkxGEA.js +0 -1
- package/dist/assets/index-B6LpxvNH.js +0 -1
- package/dist/assets/index-CLjAIeOP.js +0 -25
- package/dist/assets/useQueryBoardData-DQ09XmE8.js +0 -1
- /package/dist/assets/{index-De6dfmWB.css → Countdown-De6dfmWB.css} +0 -0
- /package/dist/assets/{index-DRiWpQTB.css → Resolver-DRiWpQTB.css} +0 -0
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import{_ as xn}from"./Tooltip.vue_vue_type_script_setup_true_lang-BDZrFekD.js";import{d as bi,g as je,p as mt,o as X,c as $,n as oi,h as C,b as Q,k as pt,a as se,w as ai,F as Xt,E as fr,j as De,s as $t,A as vn,u as Tn,m as wn,C as He,Y as bn,a3 as Re,W as Pn,T as Sn}from"./index-DXoiO_9Q.js";import{_ as Pi}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{a as kn,b as On,d as Cn,m as Mn}from"./index-w4oLejMc.js";import{d as Xi}from"./constant-BloPFjTg.js";import{u as An,g as Dn}from"./useQueryBoardData-DQ09XmE8.js";import{_ as Rn}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-Bn95nFBm.js";import{b as $i}from"./route-block-B_A1xBdJ.js";import"./index-CJmQltjE.js";import"./index-T0V7hFOw.js";import"./TheInput.vue_vue_type_script_setup_true_lang-JUZCaDDe.js";import"./use-vmodel-CkMPj1sw.js";const En={"w-20":"",flex:"","flex-shrink-0":"","justify-center":"","items-center":""},Fn={flex:"","flex-1":"","flex-col":"","justify-center":"","items-start":"","gap-y-3":""},zn={class:"resolver-team-name",truncate:"","overflow-hidden":""},In={flex:"","flex-row":"","text-sm":"","items-start":"","gap-x-2":""},Ln={"w-48":"",flex:"","flex-shrink-0":"","flex-row":"","justify-start":"","items-center":""},Bn={class:"w-1/3"},Nn={class:"w-2/3"},Vn=bi({__name:"ResolverTeamRow",props:{index:null,team:null,resolver:null},setup(u){const t=u,e=je(()=>t.index),i=je(()=>t.team),r=je(()=>t.resolver),n=mt(null);function s(o){return[o.organization,o.name].filter(l=>l).join(" - ")}return(o,a)=>{const l=xn;return X(),$("div",{ref_key:"el",ref:n,"h-24":""},[(X(),$("div",{key:0,"h-24":"",flex:"","flex-row":"","gap-x-4":"","font-mono":"","text-4xl":"",class:oi([C(e)%2===0?"bg-resolver-bg-zero":"bg-resolver-bg-one",C(r).duringAnimation&&C(r).currentTeamId===C(i).id?"bg-resolver-selected":"",!C(r).duringAnimation&&C(e)===C(r).currentIndex?"bg-resolver-selected":""])},[Q("div",En,[Q("div",null,pt(C(i).rank),1)]),Q("div",Fn,[se(l,null,{popper:ai(()=>[Q("div",null,pt(s(C(i))),1)]),default:ai(()=>[Q("div",zn,pt(s(C(i))),1)]),_:1}),Q("div",In,[(X(!0),$(Xt,null,fr(C(i).problemStatistics,(f,h)=>(X(),$("div",{key:f.problem.id,class:oi(["rounded w-22 h-7 flex justify-center items-center",[f.isAccepted?"bg-resolver-ac":"",f.isWrongAnswer?"bg-resolver-wa":"",f.isPending?"bg-resolver-pending":"",f.isUnSubmitted?"bg-resolver-untouched":"",C(r).problemFlashingEnded===!1&&C(e)===C(r).currentIndex&&C(r).currentProblemIndex===h?"resolver-uncover":""]])},[f.isAccepted?(X(),$(Xt,{key:0},[De(pt(`${f.failedCount+Number(f.isAccepted)}/${Math.floor(f.lastSubmitTimestamp/60)}`),1)],64)):$t("",!0),f.isWrongAnswer?(X(),$(Xt,{key:1},[De(pt(`${f.failedCount}/${Math.floor(f.lastSubmitTimestamp/60)}`),1)],64)):$t("",!0),f.isPending?(X(),$(Xt,{key:2},[De(pt(`${f.failedCount} + ${f.pendingCount}`),1)],64)):$t("",!0),f.isUnSubmitted?(X(),$(Xt,{key:3},[De(pt(f.problem.label),1)],64)):$t("",!0)],2))),128))])]),Q("div",Ln,[Q("div",Bn,pt(C(i).solvedProblemNum),1),Q("div",Nn,pt(C(i).penaltyToMinute),1)])],2))],512)}}}),Yn=Pi(Vn,[["__scopeId","data-v-d1b6b438"]]);function Pt(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}function _r(u,t){u.prototype=Object.create(t.prototype),u.prototype.constructor=u,u.__proto__=t}/*!
|
|
2
|
-
* GSAP 3.12.5
|
|
3
|
-
* https://gsap.com
|
|
4
|
-
*
|
|
5
|
-
* @license Copyright 2008-2024, GreenSock. All rights reserved.
|
|
6
|
-
* Subject to the terms at https://gsap.com/standard-license or for
|
|
7
|
-
* Club GSAP members, the agreement issued with that membership.
|
|
8
|
-
* @author: Jack Doyle, jack@greensock.com
|
|
9
|
-
*/var ut={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},oe={duration:.5,overwrite:!1,delay:0},Si,j,F,_t=1e8,R=1/_t,ui=Math.PI*2,Un=ui/4,Xn=0,hr=Math.sqrt,$n=Math.cos,Gn=Math.sin,W=function(t){return typeof t=="string"},L=function(t){return typeof t=="function"},Ot=function(t){return typeof t=="number"},ki=function(t){return typeof t>"u"},wt=function(t){return typeof t=="object"},tt=function(t){return t!==!1},Oi=function(){return typeof window<"u"},Ee=function(t){return L(t)||W(t)},cr=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},H=Array.isArray,li=/(?:-?\.?\d|\.)+/gi,dr=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,te=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Qe=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,pr=/[+-]=-?[.\d]+/,mr=/[^,'"\[\]\s]+/gi,Wn=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,z,gt,fi,Ci,lt={},Ne={},gr,yr=function(t){return(Ne=Ht(t,lt))&&nt},Mi=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},xe=function(t,e){return!e&&console.warn(t)},xr=function(t,e){return t&&(lt[t]=e)&&Ne&&(Ne[t]=e)||lt},ve=function(){return 0},qn={suppressEvents:!0,isStart:!0,kill:!1},ze={suppressEvents:!0,kill:!1},Kn={suppressEvents:!0},Ai={},Rt=[],_i={},vr,st={},Ze={},Gi=30,Ie=[],Di="",Ri=function(t){var e=t[0],i,r;if(wt(e)||L(e)||(t=[t]),!(i=(e._gsap||{}).harness)){for(r=Ie.length;r--&&!Ie[r].targetTest(e););i=Ie[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new $r(t[r],i)))||t.splice(r,1);return t},Wt=function(t){return t._gsap||Ri(ht(t))[0]._gsap},Tr=function(t,e,i){return(i=t[e])&&L(i)?t[e]():ki(i)&&t.getAttribute&&t.getAttribute(e)||i},et=function(t,e){return(t=t.split(",")).forEach(e)||t},B=function(t){return Math.round(t*1e5)/1e5||0},G=function(t){return Math.round(t*1e7)/1e7||0},ie=function(t,e){var i=e.charAt(0),r=parseFloat(e.substr(2));return t=parseFloat(t),i==="+"?t+r:i==="-"?t-r:i==="*"?t*r:t/r},jn=function(t,e){for(var i=e.length,r=0;t.indexOf(e[r])<0&&++r<i;);return r<i},Ve=function(){var t=Rt.length,e=Rt.slice(0),i,r;for(_i={},Rt.length=0,i=0;i<t;i++)r=e[i],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},wr=function(t,e,i,r){Rt.length&&!j&&Ve(),t.render(e,i,j&&e<0&&(t._initted||t._startAt)),Rt.length&&!j&&Ve()},br=function(t){var e=parseFloat(t);return(e||e===0)&&(t+"").match(mr).length<2?e:W(t)?t.trim():t},Pr=function(t){return t},ct=function(t,e){for(var i in e)i in t||(t[i]=e[i]);return t},Hn=function(t){return function(e,i){for(var r in i)r in e||r==="duration"&&t||r==="ease"||(e[r]=i[r])}},Ht=function(t,e){for(var i in e)t[i]=e[i];return t},Wi=function u(t,e){for(var i in e)i!=="__proto__"&&i!=="constructor"&&i!=="prototype"&&(t[i]=wt(e[i])?u(t[i]||(t[i]={}),e[i]):e[i]);return t},Ye=function(t,e){var i={},r;for(r in t)r in e||(i[r]=t[r]);return i},me=function(t){var e=t.parent||z,i=t.keyframes?Hn(H(t.keyframes)):ct;if(tt(t.inherit))for(;e;)i(t,e.vars.defaults),e=e.parent||e._dp;return t},Qn=function(t,e){for(var i=t.length,r=i===e.length;r&&i--&&t[i]===e[i];);return i<0},Sr=function(t,e,i,r,n){var s=t[r],o;if(n)for(o=e[n];s&&s[n]>o;)s=s._prev;return s?(e._next=s._next,s._next=e):(e._next=t[i],t[i]=e),e._next?e._next._prev=e:t[r]=e,e._prev=s,e.parent=e._dp=t,e},We=function(t,e,i,r){i===void 0&&(i="_first"),r===void 0&&(r="_last");var n=e._prev,s=e._next;n?n._next=s:t[i]===e&&(t[i]=s),s?s._prev=n:t[r]===e&&(t[r]=n),e._next=e._prev=e.parent=null},zt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},qt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var i=t;i;)i._dirty=1,i=i.parent;return t},Zn=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},hi=function(t,e,i,r){return t._startAt&&(j?t._startAt.revert(ze):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},Jn=function u(t){return!t||t._ts&&u(t.parent)},qi=function(t){return t._repeat?ae(t._tTime,t=t.duration()+t._rDelay)*t:0},ae=function(t,e){var i=Math.floor(t/=e);return t&&i===t?i-1:i},Ue=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},qe=function(t){return t._end=G(t._start+(t._tDur/Math.abs(t._ts||t._rts||R)||0))},Ke=function(t,e){var i=t._dp;return i&&i.smoothChildTiming&&t._ts&&(t._start=G(i._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),qe(t),i._dirty||qt(i,t)),t},kr=function(t,e){var i;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(i=Ue(t.rawTime(),e),(!e._dur||Ce(0,e.totalDuration(),i)-e._tTime>R)&&e.render(i,!0)),qt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(i=t;i._dp;)i.rawTime()>=0&&i.totalTime(i._tTime),i=i._dp;t._zTime=-R}},yt=function(t,e,i,r){return e.parent&&zt(e),e._start=G((Ot(i)?i:i||t!==z?ft(t,i,e):t._time)+e._delay),e._end=G(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Sr(t,e,"_first","_last",t._sort?"_start":0),ci(e)||(t._recent=e),r||kr(t,e),t._ts<0&&Ke(t,t._tTime),t},Or=function(t,e){return(lt.ScrollTrigger||Mi("scrollTrigger",e))&<.ScrollTrigger.create(e,t)},Cr=function(t,e,i,r,n){if(Fi(t,e,n),!t._initted)return 1;if(!i&&t._pt&&!j&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&vr!==ot.frame)return Rt.push(t),t._lazy=[n,r],1},ts=function u(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||u(e))},ci=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},es=function(t,e,i,r){var n=t.ratio,s=e<0||!e&&(!t._start&&ts(t)&&!(!t._initted&&ci(t))||(t._ts<0||t._dp._ts<0)&&!ci(t))?0:1,o=t._rDelay,a=0,l,f,h;if(o&&t._repeat&&(a=Ce(0,t._tDur,e),f=ae(a,o),t._yoyo&&f&1&&(s=1-s),f!==ae(t._tTime,o)&&(n=1-s,t.vars.repeatRefresh&&t._initted&&t.invalidate())),s!==n||j||r||t._zTime===R||!e&&t._zTime){if(!t._initted&&Cr(t,e,r,i,a))return;for(h=t._zTime,t._zTime=e||(i?R:0),i||(i=e&&!h),t.ratio=s,t._from&&(s=1-s),t._time=0,t._tTime=a,l=t._pt;l;)l.r(s,l.d),l=l._next;e<0&&hi(t,e,i,!0),t._onUpdate&&!i&&at(t,"onUpdate"),a&&t._repeat&&!i&&t.parent&&at(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===s&&(s&&zt(t,1),!i&&!j&&(at(t,s?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},is=function(t,e,i){var r;if(i>e)for(r=t._first;r&&r._start<=i;){if(r.data==="isPause"&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=i;){if(r.data==="isPause"&&r._start<e)return r;r=r._prev}},ue=function(t,e,i,r){var n=t._repeat,s=G(e)||0,o=t._tTime/t._tDur;return o&&!r&&(t._time*=s/t._dur),t._dur=s,t._tDur=n?n<0?1e10:G(s*(n+1)+t._rDelay*n):s,o>0&&!r&&Ke(t,t._tTime=t._tDur*o),t.parent&&qe(t),i||qt(t.parent,t),t},Ki=function(t){return t instanceof Z?qt(t):ue(t,t._dur)},rs={_start:0,endTime:ve,totalDuration:ve},ft=function u(t,e,i){var r=t.labels,n=t._recent||rs,s=t.duration()>=_t?n.endTime(!1):t._dur,o,a,l;return W(e)&&(isNaN(e)||e in r)?(a=e.charAt(0),l=e.substr(-1)==="%",o=e.indexOf("="),a==="<"||a===">"?(o>=0&&(e=e.replace(/=/,"")),(a==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(e.substr(1))||0)*(l?(o<0?n:i).totalDuration()/100:1)):o<0?(e in r||(r[e]=s),r[e]):(a=parseFloat(e.charAt(o-1)+e.substr(o+1)),l&&i&&(a=a/100*(H(i)?i[0]:i).totalDuration()),o>1?u(t,e.substr(0,o-1),i)+a:s+a)):e==null?s:+e},ge=function(t,e,i){var r=Ot(e[1]),n=(r?2:1)+(t<2?0:1),s=e[n],o,a;if(r&&(s.duration=e[1]),s.parent=i,t){for(o=s,a=i;a&&!("immediateRender"in o);)o=a.vars.defaults||{},a=tt(a.vars.inherit)&&a.parent;s.immediateRender=tt(o.immediateRender),t<2?s.runBackwards=1:s.startAt=e[n-1]}return new V(e[0],s,e[n+1])},Lt=function(t,e){return t||t===0?e(t):e},Ce=function(t,e,i){return i<t?t:i>e?e:i},K=function(t,e){return!W(t)||!(e=Wn.exec(t))?"":e[1]},ns=function(t,e,i){return Lt(i,function(r){return Ce(t,e,r)})},di=[].slice,Mr=function(t,e){return t&&wt(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&wt(t[0]))&&!t.nodeType&&t!==gt},ss=function(t,e,i){return i===void 0&&(i=[]),t.forEach(function(r){var n;return W(r)&&!e||Mr(r,1)?(n=i).push.apply(n,ht(r)):i.push(r)})||i},ht=function(t,e,i){return F&&!e&&F.selector?F.selector(t):W(t)&&!i&&(fi||!le())?di.call((e||Ci).querySelectorAll(t),0):H(t)?ss(t,i):Mr(t)?di.call(t,0):t?[t]:[]},pi=function(t){return t=ht(t)[0]||xe("Invalid scope")||{},function(e){var i=t.current||t.nativeElement||t;return ht(e,i.querySelectorAll?i:i===t?xe("Invalid scope")||Ci.createElement("div"):t)}},Ar=function(t){return t.sort(function(){return .5-Math.random()})},Dr=function(t){if(L(t))return t;var e=wt(t)?t:{each:t},i=Kt(e.ease),r=e.from||0,n=parseFloat(e.base)||0,s={},o=r>0&&r<1,a=isNaN(r)||o,l=e.axis,f=r,h=r;return W(r)?f=h={center:.5,edges:.5,end:1}[r]||0:!o&&a&&(f=r[0],h=r[1]),function(c,d,m){var _=(m||e).length,p=s[_],x,g,v,T,y,b,P,S,w;if(!p){if(w=e.grid==="auto"?0:(e.grid||[1,_t])[1],!w){for(P=-_t;P<(P=m[w++].getBoundingClientRect().left)&&w<_;);w<_&&w--}for(p=s[_]=[],x=a?Math.min(w,_)*f-.5:r%w,g=w===_t?0:a?_*h/w-.5:r/w|0,P=0,S=_t,b=0;b<_;b++)v=b%w-x,T=g-(b/w|0),p[b]=y=l?Math.abs(l==="y"?T:v):hr(v*v+T*T),y>P&&(P=y),y<S&&(S=y);r==="random"&&Ar(p),p.max=P-S,p.min=S,p.v=_=(parseFloat(e.amount)||parseFloat(e.each)*(w>_?_-1:l?l==="y"?_/w:w:Math.max(w,_/w))||0)*(r==="edges"?-1:1),p.b=_<0?n-_:n,p.u=K(e.amount||e.each)||0,i=i&&_<0?Yr(i):i}return _=(p[c]-p.min)/p.max||0,G(p.b+(i?i(_):_)*p.v)+p.u}},mi=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(i){var r=G(Math.round(parseFloat(i)/t)*t*e);return(r-r%1)/e+(Ot(i)?0:K(i))}},Rr=function(t,e){var i=H(t),r,n;return!i&&wt(t)&&(r=i=t.radius||_t,t.values?(t=ht(t.values),(n=!Ot(t[0]))&&(r*=r)):t=mi(t.increment)),Lt(e,i?L(t)?function(s){return n=t(s),Math.abs(n-s)<=r?n:s}:function(s){for(var o=parseFloat(n?s.x:s),a=parseFloat(n?s.y:0),l=_t,f=0,h=t.length,c,d;h--;)n?(c=t[h].x-o,d=t[h].y-a,c=c*c+d*d):c=Math.abs(t[h]-o),c<l&&(l=c,f=h);return f=!r||l<=r?t[f]:s,n||f===s||Ot(s)?f:f+K(s)}:mi(t))},Er=function(t,e,i,r){return Lt(H(t)?!e:i===!0?!!(i=0):!r,function(){return H(t)?t[~~(Math.random()*t.length)]:(i=i||1e-5)&&(r=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((t-i/2+Math.random()*(e-t+i*.99))/i)*i*r)/r})},os=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(r){return e.reduce(function(n,s){return s(n)},r)}},as=function(t,e){return function(i){return t(parseFloat(i))+(e||K(i))}},us=function(t,e,i){return zr(t,e,0,1,i)},Fr=function(t,e,i){return Lt(i,function(r){return t[~~e(r)]})},ls=function u(t,e,i){var r=e-t;return H(t)?Fr(t,u(0,t.length),e):Lt(i,function(n){return(r+(n-t)%r)%r+t})},fs=function u(t,e,i){var r=e-t,n=r*2;return H(t)?Fr(t,u(0,t.length-1),e):Lt(i,function(s){return s=(n+(s-t)%n)%n||0,t+(s>r?n-s:s)})},Te=function(t){for(var e=0,i="",r,n,s,o;~(r=t.indexOf("random(",e));)s=t.indexOf(")",r),o=t.charAt(r+7)==="[",n=t.substr(r+7,s-r-7).match(o?mr:li),i+=t.substr(e,r-e)+Er(o?n:+n[0],o?0:+n[1],+n[2]||1e-5),e=s+1;return i+t.substr(e,t.length-e)},zr=function(t,e,i,r,n){var s=e-t,o=r-i;return Lt(n,function(a){return i+((a-t)/s*o||0)})},_s=function u(t,e,i,r){var n=isNaN(t+e)?0:function(d){return(1-d)*t+d*e};if(!n){var s=W(t),o={},a,l,f,h,c;if(i===!0&&(r=1)&&(i=null),s)t={p:t},e={p:e};else if(H(t)&&!H(e)){for(f=[],h=t.length,c=h-2,l=1;l<h;l++)f.push(u(t[l-1],t[l]));h--,n=function(m){m*=h;var _=Math.min(c,~~m);return f[_](m-_)},i=e}else r||(t=Ht(H(t)?[]:{},t));if(!f){for(a in e)Ei.call(o,t,a,"get",e[a]);n=function(m){return Li(m,o)||(s?t.p:t)}}}return Lt(i,n)},ji=function(t,e,i){var r=t.labels,n=_t,s,o,a;for(s in r)o=r[s]-e,o<0==!!i&&o&&n>(o=Math.abs(o))&&(a=s,n=o);return a},at=function(t,e,i){var r=t.vars,n=r[e],s=F,o=t._ctx,a,l,f;if(n)return a=r[e+"Params"],l=r.callbackScope||t,i&&Rt.length&&Ve(),o&&(F=o),f=a?n.apply(l,a):n.call(l),F=s,f},de=function(t){return zt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!j),t.progress()<1&&at(t,"onInterrupt"),t},ee,Ir=[],Lr=function(t){if(t)if(t=!t.name&&t.default||t,Oi()||t.headless){var e=t.name,i=L(t),r=e&&!i&&t.init?function(){this._props=[]}:t,n={init:ve,render:Li,add:Ei,kill:Os,modifier:ks,rawVars:0},s={targetTest:0,get:0,getSetter:Ii,aliases:{},register:0};if(le(),t!==r){if(st[e])return;ct(r,ct(Ye(t,n),s)),Ht(r.prototype,Ht(n,Ye(t,s))),st[r.prop=e]=r,t.targetTest&&(Ie.push(r),Ai[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}xr(e,r),t.register&&t.register(nt,r,it)}else Ir.push(t)},M=255,pe={aqua:[0,M,M],lime:[0,M,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,M],navy:[0,0,128],white:[M,M,M],olive:[128,128,0],yellow:[M,M,0],orange:[M,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[M,0,0],pink:[M,192,203],cyan:[0,M,M],transparent:[M,M,M,0]},Je=function(t,e,i){return t+=t<0?1:t>1?-1:0,(t*6<1?e+(i-e)*t*6:t<.5?i:t*3<2?e+(i-e)*(2/3-t)*6:e)*M+.5|0},Br=function(t,e,i){var r=t?Ot(t)?[t>>16,t>>8&M,t&M]:0:pe.black,n,s,o,a,l,f,h,c,d,m;if(!r){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),pe[t])r=pe[t];else if(t.charAt(0)==="#"){if(t.length<6&&(n=t.charAt(1),s=t.charAt(2),o=t.charAt(3),t="#"+n+n+s+s+o+o+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return r=parseInt(t.substr(1,6),16),[r>>16,r>>8&M,r&M,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),r=[t>>16,t>>8&M,t&M]}else if(t.substr(0,3)==="hsl"){if(r=m=t.match(li),!e)a=+r[0]%360/360,l=+r[1]/100,f=+r[2]/100,s=f<=.5?f*(l+1):f+l-f*l,n=f*2-s,r.length>3&&(r[3]*=1),r[0]=Je(a+1/3,n,s),r[1]=Je(a,n,s),r[2]=Je(a-1/3,n,s);else if(~t.indexOf("="))return r=t.match(dr),i&&r.length<4&&(r[3]=1),r}else r=t.match(li)||pe.transparent;r=r.map(Number)}return e&&!m&&(n=r[0]/M,s=r[1]/M,o=r[2]/M,h=Math.max(n,s,o),c=Math.min(n,s,o),f=(h+c)/2,h===c?a=l=0:(d=h-c,l=f>.5?d/(2-h-c):d/(h+c),a=h===n?(s-o)/d+(s<o?6:0):h===s?(o-n)/d+2:(n-s)/d+4,a*=60),r[0]=~~(a+.5),r[1]=~~(l*100+.5),r[2]=~~(f*100+.5)),i&&r.length<4&&(r[3]=1),r},Nr=function(t){var e=[],i=[],r=-1;return t.split(Et).forEach(function(n){var s=n.match(te)||[];e.push.apply(e,s),i.push(r+=s.length+1)}),e.c=i,e},Hi=function(t,e,i){var r="",n=(t+r).match(Et),s=e?"hsla(":"rgba(",o=0,a,l,f,h;if(!n)return t;if(n=n.map(function(c){return(c=Br(c,e,1))&&s+(e?c[0]+","+c[1]+"%,"+c[2]+"%,"+c[3]:c.join(","))+")"}),i&&(f=Nr(t),a=i.c,a.join(r)!==f.c.join(r)))for(l=t.replace(Et,"1").split(te),h=l.length-1;o<h;o++)r+=l[o]+(~a.indexOf(o)?n.shift()||s+"0,0,0,0)":(f.length?f:n.length?n:i).shift());if(!l)for(l=t.split(Et),h=l.length-1;o<h;o++)r+=l[o]+n[o];return r+l[h]},Et=function(){var u="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in pe)u+="|"+t+"\\b";return new RegExp(u+")","gi")}(),hs=/hsl[a]?\(/,Vr=function(t){var e=t.join(" "),i;if(Et.lastIndex=0,Et.test(e))return i=hs.test(e),t[1]=Hi(t[1],i),t[0]=Hi(t[0],i,Nr(t[1])),!0},we,ot=function(){var u=Date.now,t=500,e=33,i=u(),r=i,n=1e3/240,s=n,o=[],a,l,f,h,c,d,m=function _(p){var x=u()-r,g=p===!0,v,T,y,b;if((x>t||x<0)&&(i+=x-e),r+=x,y=r-i,v=y-s,(v>0||g)&&(b=++h.frame,c=y-h.time*1e3,h.time=y=y/1e3,s+=v+(v>=n?4:n-v),T=1),g||(a=l(_)),T)for(d=0;d<o.length;d++)o[d](y,c,b,p)};return h={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(p){return c/(1e3/(p||60))},wake:function(){gr&&(!fi&&Oi()&&(gt=fi=window,Ci=gt.document||{},lt.gsap=nt,(gt.gsapVersions||(gt.gsapVersions=[])).push(nt.version),yr(Ne||gt.GreenSockGlobals||!gt.gsap&>||{}),Ir.forEach(Lr)),f=typeof requestAnimationFrame<"u"&&requestAnimationFrame,a&&h.sleep(),l=f||function(p){return setTimeout(p,s-h.time*1e3+1|0)},we=1,m(2))},sleep:function(){(f?cancelAnimationFrame:clearTimeout)(a),we=0,l=ve},lagSmoothing:function(p,x){t=p||1/0,e=Math.min(x||33,t)},fps:function(p){n=1e3/(p||240),s=h.time*1e3+n},add:function(p,x,g){var v=x?function(T,y,b,P){p(T,y,b,P),h.remove(v)}:p;return h.remove(p),o[g?"unshift":"push"](v),le(),v},remove:function(p,x){~(x=o.indexOf(p))&&o.splice(x,1)&&d>=x&&d--},_listeners:o},h}(),le=function(){return!we&&ot.wake()},k={},cs=/^[\d.\-M][\d.\-,\s]/,ds=/["']/g,ps=function(t){for(var e={},i=t.substr(1,t.length-3).split(":"),r=i[0],n=1,s=i.length,o,a,l;n<s;n++)a=i[n],o=n!==s-1?a.lastIndexOf(","):a.length,l=a.substr(0,o),e[r]=isNaN(l)?l.replace(ds,"").trim():+l,r=a.substr(o+1).trim();return e},ms=function(t){var e=t.indexOf("(")+1,i=t.indexOf(")"),r=t.indexOf("(",e);return t.substring(e,~r&&r<i?t.indexOf(")",i+1):i)},gs=function(t){var e=(t+"").split("("),i=k[e[0]];return i&&e.length>1&&i.config?i.config.apply(null,~t.indexOf("{")?[ps(e[1])]:ms(t).split(",").map(br)):k._CE&&cs.test(t)?k._CE("",t):i},Yr=function(t){return function(e){return 1-t(1-e)}},Ur=function u(t,e){for(var i=t._first,r;i;)i instanceof Z?u(i,e):i.vars.yoyoEase&&(!i._yoyo||!i._repeat)&&i._yoyo!==e&&(i.timeline?u(i.timeline,e):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=e)),i=i._next},Kt=function(t,e){return t&&(L(t)?t:k[t]||gs(t))||e},Zt=function(t,e,i,r){i===void 0&&(i=function(a){return 1-e(1-a)}),r===void 0&&(r=function(a){return a<.5?e(a*2)/2:1-e((1-a)*2)/2});var n={easeIn:e,easeOut:i,easeInOut:r},s;return et(t,function(o){k[o]=lt[o]=n,k[s=o.toLowerCase()]=i;for(var a in n)k[s+(a==="easeIn"?".in":a==="easeOut"?".out":".inOut")]=k[o+"."+a]=n[a]}),n},Xr=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},ti=function u(t,e,i){var r=e>=1?e:1,n=(i||(t?.3:.45))/(e<1?e:1),s=n/ui*(Math.asin(1/r)||0),o=function(f){return f===1?1:r*Math.pow(2,-10*f)*Gn((f-s)*n)+1},a=t==="out"?o:t==="in"?function(l){return 1-o(1-l)}:Xr(o);return n=ui/n,a.config=function(l,f){return u(t,l,f)},a},ei=function u(t,e){e===void 0&&(e=1.70158);var i=function(s){return s?--s*s*((e+1)*s+e)+1:0},r=t==="out"?i:t==="in"?function(n){return 1-i(1-n)}:Xr(i);return r.config=function(n){return u(t,n)},r};et("Linear,Quad,Cubic,Quart,Quint,Strong",function(u,t){var e=t<5?t+1:t;Zt(u+",Power"+(e-1),t?function(i){return Math.pow(i,e)}:function(i){return i},function(i){return 1-Math.pow(1-i,e)},function(i){return i<.5?Math.pow(i*2,e)/2:1-Math.pow((1-i)*2,e)/2})});k.Linear.easeNone=k.none=k.Linear.easeIn;Zt("Elastic",ti("in"),ti("out"),ti());(function(u,t){var e=1/t,i=2*e,r=2.5*e,n=function(o){return o<e?u*o*o:o<i?u*Math.pow(o-1.5/t,2)+.75:o<r?u*(o-=2.25/t)*o+.9375:u*Math.pow(o-2.625/t,2)+.984375};Zt("Bounce",function(s){return 1-n(1-s)},n)})(7.5625,2.75);Zt("Expo",function(u){return u?Math.pow(2,10*(u-1)):0});Zt("Circ",function(u){return-(hr(1-u*u)-1)});Zt("Sine",function(u){return u===1?1:-$n(u*Un)+1});Zt("Back",ei("in"),ei("out"),ei());k.SteppedEase=k.steps=lt.SteppedEase={config:function(t,e){t===void 0&&(t=1);var i=1/t,r=t+(e?0:1),n=e?1:0,s=1-R;return function(o){return((r*Ce(0,s,o)|0)+n)*i}}};oe.ease=k["quad.out"];et("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(u){return Di+=u+","+u+"Params,"});var $r=function(t,e){this.id=Xn++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Tr,this.set=e?e.getSetter:Ii},be=function(){function u(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,ue(this,+e.duration,1,1),this.data=e.data,F&&(this._ctx=F,F.data.push(this)),we||ot.wake()}var t=u.prototype;return t.delay=function(i){return i||i===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+i-this._delay),this._delay=i,this):this._delay},t.duration=function(i){return arguments.length?this.totalDuration(this._repeat>0?i+(i+this._rDelay)*this._repeat:i):this.totalDuration()&&this._dur},t.totalDuration=function(i){return arguments.length?(this._dirty=0,ue(this,this._repeat<0?i:(i-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(i,r){if(le(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Ke(this,i),!n._dp||n.parent||kr(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&&i<this._tDur||this._ts<0&&i>0||!this._tDur&&!i)&&yt(this._dp,this,this._start-this._delay)}return(this._tTime!==i||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===R||!i&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=i),wr(this,i,r)),this},t.time=function(i,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),i+qi(this))%(this._dur+this._rDelay)||(i?this._dur:0),r):this._time},t.totalProgress=function(i,r){return arguments.length?this.totalTime(this.totalDuration()*i,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},t.progress=function(i,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-i:i)+qi(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(i,r){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(i-1)*n,r):this._repeat?ae(this._tTime,n)+1:1},t.timeScale=function(i,r){if(!arguments.length)return this._rts===-R?0:this._rts;if(this._rts===i)return this;var n=this.parent&&this._ts?Ue(this.parent._time,this):this._tTime;return this._rts=+i||0,this._ts=this._ps||i===-R?0:this._rts,this.totalTime(Ce(-Math.abs(this._delay),this._tDur,n),r!==!1),qe(this),Zn(this)},t.paused=function(i){return arguments.length?(this._ps!==i&&(this._ps=i,i?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(le(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==R&&(this._tTime-=R)))),this):this._ps},t.startTime=function(i){if(arguments.length){this._start=i;var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&yt(r,this,i-this._delay),this}return this._start},t.endTime=function(i){return this._start+(tt(i)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(i){var r=this.parent||this._dp;return r?i&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ue(r.rawTime(i),this):this._tTime:this._tTime},t.revert=function(i){i===void 0&&(i=Kn);var r=j;return j=i,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(i),this.totalTime(-.01,i.suppressEvents)),this.data!=="nested"&&i.kill!==!1&&this.kill(),j=r,this},t.globalTime=function(i){for(var r=this,n=arguments.length?i:r.rawTime();r;)n=r._start+n/(Math.abs(r._ts)||1),r=r._dp;return!this.parent&&this._sat?this._sat.globalTime(i):n},t.repeat=function(i){return arguments.length?(this._repeat=i===1/0?-2:i,Ki(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(i){if(arguments.length){var r=this._time;return this._rDelay=i,Ki(this),r?this.time(r):this}return this._rDelay},t.yoyo=function(i){return arguments.length?(this._yoyo=i,this):this._yoyo},t.seek=function(i,r){return this.totalTime(ft(this,i),tt(r))},t.restart=function(i,r){return this.play().totalTime(i?-this._delay:0,tt(r))},t.play=function(i,r){return i!=null&&this.seek(i,r),this.reversed(!1).paused(!1)},t.reverse=function(i,r){return i!=null&&this.seek(i||this.totalDuration(),r),this.reversed(!0).paused(!1)},t.pause=function(i,r){return i!=null&&this.seek(i,r),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(i){return arguments.length?(!!i!==this.reversed()&&this.timeScale(-this._rts||(i?-R:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-R,this},t.isActive=function(){var i=this.parent||this._dp,r=this._start,n;return!!(!i||this._ts&&this._initted&&i.isActive()&&(n=i.rawTime(!0))>=r&&n<this.endTime(!0)-R)},t.eventCallback=function(i,r,n){var s=this.vars;return arguments.length>1?(r?(s[i]=r,n&&(s[i+"Params"]=n),i==="onUpdate"&&(this._onUpdate=r)):delete s[i],this):s[i]},t.then=function(i){var r=this;return new Promise(function(n){var s=L(i)?i:Pr,o=function(){var l=r.then;r.then=null,L(s)&&(s=s(r))&&(s.then||s===r)&&(r.then=l),n(s),r.then=l};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?o():r._prom=o})},t.kill=function(){de(this)},u}();ct(be.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:-R,_prom:0,_ps:!1,_rts:1});var Z=function(u){_r(t,u);function t(i,r){var n;return i===void 0&&(i={}),n=u.call(this,i)||this,n.labels={},n.smoothChildTiming=!!i.smoothChildTiming,n.autoRemoveChildren=!!i.autoRemoveChildren,n._sort=tt(i.sortChildren),z&&yt(i.parent||z,Pt(n),r),i.reversed&&n.reverse(),i.paused&&n.paused(!0),i.scrollTrigger&&Or(Pt(n),i.scrollTrigger),n}var e=t.prototype;return e.to=function(r,n,s){return ge(0,arguments,this),this},e.from=function(r,n,s){return ge(1,arguments,this),this},e.fromTo=function(r,n,s,o){return ge(2,arguments,this),this},e.set=function(r,n,s){return n.duration=0,n.parent=this,me(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new V(r,n,ft(this,s),1),this},e.call=function(r,n,s){return yt(this,V.delayedCall(0,r,n),s)},e.staggerTo=function(r,n,s,o,a,l,f){return s.duration=n,s.stagger=s.stagger||o,s.onComplete=l,s.onCompleteParams=f,s.parent=this,new V(r,s,ft(this,a)),this},e.staggerFrom=function(r,n,s,o,a,l,f){return s.runBackwards=1,me(s).immediateRender=tt(s.immediateRender),this.staggerTo(r,n,s,o,a,l,f)},e.staggerFromTo=function(r,n,s,o,a,l,f,h){return o.startAt=s,me(o).immediateRender=tt(o.immediateRender),this.staggerTo(r,n,o,a,l,f,h)},e.render=function(r,n,s){var o=this._time,a=this._dirty?this.totalDuration():this._tDur,l=this._dur,f=r<=0?0:G(r),h=this._zTime<0!=r<0&&(this._initted||!l),c,d,m,_,p,x,g,v,T,y,b,P;if(this!==z&&f>a&&r>=0&&(f=a),f!==this._tTime||s||h){if(o!==this._time&&l&&(f+=this._time-o,r+=this._time-o),c=f,T=this._start,v=this._ts,x=!v,h&&(l||(o=this._zTime),(r||!n)&&(this._zTime=r)),this._repeat){if(b=this._yoyo,p=l+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(p*100+r,n,s);if(c=G(f%p),f===a?(_=this._repeat,c=l):(_=~~(f/p),_&&_===f/p&&(c=l,_--),c>l&&(c=l)),y=ae(this._tTime,p),!o&&this._tTime&&y!==_&&this._tTime-y*p-this._dur<=0&&(y=_),b&&_&1&&(c=l-c,P=1),_!==y&&!this._lock){var S=b&&y&1,w=S===(b&&_&1);if(_<y&&(S=!S),o=S?0:f%l?l:f,this._lock=1,this.render(o||(P?0:G(_*p)),n,!l)._lock=0,this._tTime=f,!n&&this.parent&&at(this,"onRepeat"),this.vars.repeatRefresh&&!P&&(this.invalidate()._lock=1),o&&o!==this._time||x!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(l=this._dur,a=this._tDur,w&&(this._lock=2,o=S?l:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!P&&this.invalidate()),this._lock=0,!this._ts&&!x)return this;Ur(this,P)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(g=is(this,G(o),G(c)),g&&(f-=c-(c=g._start))),this._tTime=f,this._time=c,this._act=!v,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=r,o=0),!o&&c&&!n&&!_&&(at(this,"onStart"),this._tTime!==f))return this;if(c>=o&&r>=0)for(d=this._first;d;){if(m=d._next,(d._act||c>=d._start)&&d._ts&&g!==d){if(d.parent!==this)return this.render(r,n,s);if(d.render(d._ts>0?(c-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(c-d._start)*d._ts,n,s),c!==this._time||!this._ts&&!x){g=0,m&&(f+=this._zTime=-R);break}}d=m}else{d=this._last;for(var O=r<0?r:c;d;){if(m=d._prev,(d._act||O<=d._end)&&d._ts&&g!==d){if(d.parent!==this)return this.render(r,n,s);if(d.render(d._ts>0?(O-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(O-d._start)*d._ts,n,s||j&&(d._initted||d._startAt)),c!==this._time||!this._ts&&!x){g=0,m&&(f+=this._zTime=O?-R:R);break}}d=m}}if(g&&!n&&(this.pause(),g.render(c>=o?0:-R)._zTime=c>=o?1:-1,this._ts))return this._start=T,qe(this),this.render(r,n,s);this._onUpdate&&!n&&at(this,"onUpdate",!0),(f===a&&this._tTime>=this.totalDuration()||!f&&o)&&(T===this._start||Math.abs(v)!==Math.abs(this._ts))&&(this._lock||((r||!l)&&(f===a&&this._ts>0||!f&&this._ts<0)&&zt(this,1),!n&&!(r<0&&!o)&&(f||o||!a)&&(at(this,f===a&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(f<a&&this.timeScale()>0)&&this._prom())))}return this},e.add=function(r,n){var s=this;if(Ot(n)||(n=ft(this,n,r)),!(r instanceof be)){if(H(r))return r.forEach(function(o){return s.add(o,n)}),this;if(W(r))return this.addLabel(r,n);if(L(r))r=V.delayedCall(0,r);else return this}return this!==r?yt(this,r,n):this},e.getChildren=function(r,n,s,o){r===void 0&&(r=!0),n===void 0&&(n=!0),s===void 0&&(s=!0),o===void 0&&(o=-_t);for(var a=[],l=this._first;l;)l._start>=o&&(l instanceof V?n&&a.push(l):(s&&a.push(l),r&&a.push.apply(a,l.getChildren(!0,n,s)))),l=l._next;return a},e.getById=function(r){for(var n=this.getChildren(1,1,1),s=n.length;s--;)if(n[s].vars.id===r)return n[s]},e.remove=function(r){return W(r)?this.removeLabel(r):L(r)?this.killTweensOf(r):(We(this,r),r===this._recent&&(this._recent=this._last),qt(this))},e.totalTime=function(r,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=G(ot.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),u.prototype.totalTime.call(this,r,n),this._forcing=0,this):this._tTime},e.addLabel=function(r,n){return this.labels[r]=ft(this,n),this},e.removeLabel=function(r){return delete this.labels[r],this},e.addPause=function(r,n,s){var o=V.delayedCall(0,n||ve,s);return o.data="isPause",this._hasPause=1,yt(this,o,ft(this,r))},e.removePause=function(r){var n=this._first;for(r=ft(this,r);n;)n._start===r&&n.data==="isPause"&&zt(n),n=n._next},e.killTweensOf=function(r,n,s){for(var o=this.getTweensOf(r,s),a=o.length;a--;)Mt!==o[a]&&o[a].kill(r,n);return this},e.getTweensOf=function(r,n){for(var s=[],o=ht(r),a=this._first,l=Ot(n),f;a;)a instanceof V?jn(a._targets,o)&&(l?(!Mt||a._initted&&a._ts)&&a.globalTime(0)<=n&&a.globalTime(a.totalDuration())>n:!n||a.isActive())&&s.push(a):(f=a.getTweensOf(o,n)).length&&s.push.apply(s,f),a=a._next;return s},e.tweenTo=function(r,n){n=n||{};var s=this,o=ft(s,r),a=n,l=a.startAt,f=a.onStart,h=a.onStartParams,c=a.immediateRender,d,m=V.to(s,ct({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:n.duration||Math.abs((o-(l&&"time"in l?l.time:s._time))/s.timeScale())||R,onStart:function(){if(s.pause(),!d){var p=n.duration||Math.abs((o-(l&&"time"in l?l.time:s._time))/s.timeScale());m._dur!==p&&ue(m,p,0,1).render(m._time,!0,!0),d=1}f&&f.apply(m,h||[])}},n));return c?m.render(0):m},e.tweenFromTo=function(r,n,s){return this.tweenTo(n,ct({startAt:{time:ft(this,r)}},s))},e.recent=function(){return this._recent},e.nextLabel=function(r){return r===void 0&&(r=this._time),ji(this,ft(this,r))},e.previousLabel=function(r){return r===void 0&&(r=this._time),ji(this,ft(this,r),1)},e.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+R)},e.shiftChildren=function(r,n,s){s===void 0&&(s=0);for(var o=this._first,a=this.labels,l;o;)o._start>=s&&(o._start+=r,o._end+=r),o=o._next;if(n)for(l in a)a[l]>=s&&(a[l]+=r);return qt(this)},e.invalidate=function(r){var n=this._first;for(this._lock=0;n;)n.invalidate(r),n=n._next;return u.prototype.invalidate.call(this,r)},e.clear=function(r){r===void 0&&(r=!0);for(var n=this._first,s;n;)s=n._next,this.remove(n),n=s;return this._dp&&(this._time=this._tTime=this._pTime=0),r&&(this.labels={}),qt(this)},e.totalDuration=function(r){var n=0,s=this,o=s._last,a=_t,l,f,h;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-r:r));if(s._dirty){for(h=s.parent;o;)l=o._prev,o._dirty&&o.totalDuration(),f=o._start,f>a&&s._sort&&o._ts&&!s._lock?(s._lock=1,yt(s,o,f-o._delay,1)._lock=0):a=f,f<0&&o._ts&&(n-=f,(!h&&!s._dp||h&&h.smoothChildTiming)&&(s._start+=f/s._ts,s._time-=f,s._tTime-=f),s.shiftChildren(-f,!1,-1/0),a=0),o._end>n&&o._ts&&(n=o._end),o=l;ue(s,s===z&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},t.updateRoot=function(r){if(z._ts&&(wr(z,Ue(r,z)),vr=ot.frame),ot.frame>=Gi){Gi+=ut.autoSleep||120;var n=z._first;if((!n||!n._ts)&&ut.autoSleep&&ot._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||ot.sleep()}}},t}(be);ct(Z.prototype,{_lock:0,_hasPause:0,_forcing:0});var ys=function(t,e,i,r,n,s,o){var a=new it(this._pt,t,e,0,1,Hr,null,n),l=0,f=0,h,c,d,m,_,p,x,g;for(a.b=i,a.e=r,i+="",r+="",(x=~r.indexOf("random("))&&(r=Te(r)),s&&(g=[i,r],s(g,t,e),i=g[0],r=g[1]),c=i.match(Qe)||[];h=Qe.exec(r);)m=h[0],_=r.substring(l,h.index),d?d=(d+1)%5:_.substr(-5)==="rgba("&&(d=1),m!==c[f++]&&(p=parseFloat(c[f-1])||0,a._pt={_next:a._pt,p:_||f===1?_:",",s:p,c:m.charAt(1)==="="?ie(p,m)-p:parseFloat(m)-p,m:d&&d<4?Math.round:0},l=Qe.lastIndex);return a.c=l<r.length?r.substring(l,r.length):"",a.fp=o,(pr.test(r)||x)&&(a.e=0),this._pt=a,a},Ei=function(t,e,i,r,n,s,o,a,l,f){L(r)&&(r=r(n||0,t,s));var h=t[e],c=i!=="get"?i:L(h)?l?t[e.indexOf("set")||!L(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():h,d=L(h)?l?bs:Kr:zi,m;if(W(r)&&(~r.indexOf("random(")&&(r=Te(r)),r.charAt(1)==="="&&(m=ie(c,r)+(K(c)||0),(m||m===0)&&(r=m))),!f||c!==r||gi)return!isNaN(c*r)&&r!==""?(m=new it(this._pt,t,e,+c||0,r-(c||0),typeof h=="boolean"?Ss:jr,0,d),l&&(m.fp=l),o&&m.modifier(o,this,t),this._pt=m):(!h&&!(e in t)&&Mi(e,r),ys.call(this,t,e,c,r,d,a||ut.stringFilter,l))},xs=function(t,e,i,r,n){if(L(t)&&(t=ye(t,n,e,i,r)),!wt(t)||t.style&&t.nodeType||H(t)||cr(t))return W(t)?ye(t,n,e,i,r):t;var s={},o;for(o in t)s[o]=ye(t[o],n,e,i,r);return s},Gr=function(t,e,i,r,n,s){var o,a,l,f;if(st[t]&&(o=new st[t]).init(n,o.rawVars?e[t]:xs(e[t],r,n,s,i),i,r,s)!==!1&&(i._pt=a=new it(i._pt,n,t,0,1,o.render,o,0,o.priority),i!==ee))for(l=i._ptLookup[i._targets.indexOf(n)],f=o._props.length;f--;)l[o._props[f]]=a;return o},Mt,gi,Fi=function u(t,e,i){var r=t.vars,n=r.ease,s=r.startAt,o=r.immediateRender,a=r.lazy,l=r.onUpdate,f=r.runBackwards,h=r.yoyoEase,c=r.keyframes,d=r.autoRevert,m=t._dur,_=t._startAt,p=t._targets,x=t.parent,g=x&&x.data==="nested"?x.vars.targets:p,v=t._overwrite==="auto"&&!Si,T=t.timeline,y,b,P,S,w,O,E,A,D,q,Y,N,U;if(T&&(!c||!n)&&(n="none"),t._ease=Kt(n,oe.ease),t._yEase=h?Yr(Kt(h===!0?n:h,oe.ease)):0,h&&t._yoyo&&!t._repeat&&(h=t._yEase,t._yEase=t._ease,t._ease=h),t._from=!T&&!!r.runBackwards,!T||c&&!r.stagger){if(A=p[0]?Wt(p[0]).harness:0,N=A&&r[A.prop],y=Ye(r,Ai),_&&(_._zTime<0&&_.progress(1),e<0&&f&&o&&!d?_.render(-1,!0):_.revert(f&&m?ze:qn),_._lazy=0),s){if(zt(t._startAt=V.set(p,ct({data:"isStart",overwrite:!1,parent:x,immediateRender:!0,lazy:!_&&tt(a),startAt:null,delay:0,onUpdate:l&&function(){return at(t,"onUpdate")},stagger:0},s))),t._startAt._dp=0,t._startAt._sat=t,e<0&&(j||!o&&!d)&&t._startAt.revert(ze),o&&m&&e<=0&&i<=0){e&&(t._zTime=e);return}}else if(f&&m&&!_){if(e&&(o=!1),P=ct({overwrite:!1,data:"isFromStart",lazy:o&&!_&&tt(a),immediateRender:o,stagger:0,parent:x},y),N&&(P[A.prop]=N),zt(t._startAt=V.set(p,P)),t._startAt._dp=0,t._startAt._sat=t,e<0&&(j?t._startAt.revert(ze):t._startAt.render(-1,!0)),t._zTime=e,!o)u(t._startAt,R,R);else if(!e)return}for(t._pt=t._ptCache=0,a=m&&tt(a)||a&&!m,b=0;b<p.length;b++){if(w=p[b],E=w._gsap||Ri(p)[b]._gsap,t._ptLookup[b]=q={},_i[E.id]&&Rt.length&&Ve(),Y=g===p?b:g.indexOf(w),A&&(D=new A).init(w,N||y,t,Y,g)!==!1&&(t._pt=S=new it(t._pt,w,D.name,0,1,D.render,D,0,D.priority),D._props.forEach(function(dt){q[dt]=S}),D.priority&&(O=1)),!A||N)for(P in y)st[P]&&(D=Gr(P,y,t,Y,w,g))?D.priority&&(O=1):q[P]=S=Ei.call(t,w,P,"get",y[P],Y,g,0,r.stringFilter);t._op&&t._op[b]&&t.kill(w,t._op[b]),v&&t._pt&&(Mt=t,z.killTweensOf(w,q,t.globalTime(e)),U=!t.parent,Mt=0),t._pt&&a&&(_i[E.id]=1)}O&&Qr(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!U,c&&e<=0&&T.render(_t,!0,!0)},vs=function(t,e,i,r,n,s,o,a){var l=(t._pt&&t._ptCache||(t._ptCache={}))[e],f,h,c,d;if(!l)for(l=t._ptCache[e]=[],c=t._ptLookup,d=t._targets.length;d--;){if(f=c[d][e],f&&f.d&&f.d._pt)for(f=f.d._pt;f&&f.p!==e&&f.fp!==e;)f=f._next;if(!f)return gi=1,t.vars[e]="+=0",Fi(t,o),gi=0,a?xe(e+" not eligible for reset"):1;l.push(f)}for(d=l.length;d--;)h=l[d],f=h._pt||h,f.s=(r||r===0)&&!n?r:f.s+(r||0)+s*f.c,f.c=i-f.s,h.e&&(h.e=B(i)+K(h.e)),h.b&&(h.b=f.s+K(h.b))},Ts=function(t,e){var i=t[0]?Wt(t[0]).harness:0,r=i&&i.aliases,n,s,o,a;if(!r)return e;n=Ht({},e);for(s in r)if(s in n)for(a=r[s].split(","),o=a.length;o--;)n[a[o]]=n[s];return n},ws=function(t,e,i,r){var n=e.ease||r||"power1.inOut",s,o;if(H(e))o=i[t]||(i[t]=[]),e.forEach(function(a,l){return o.push({t:l/(e.length-1)*100,v:a,e:n})});else for(s in e)o=i[s]||(i[s]=[]),s==="ease"||o.push({t:parseFloat(t),v:e[s],e:n})},ye=function(t,e,i,r,n){return L(t)?t.call(e,i,r,n):W(t)&&~t.indexOf("random(")?Te(t):t},Wr=Di+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",qr={};et(Wr+",id,stagger,delay,duration,paused,scrollTrigger",function(u){return qr[u]=1});var V=function(u){_r(t,u);function t(i,r,n,s){var o;typeof r=="number"&&(n.duration=r,r=n,n=null),o=u.call(this,s?r:me(r))||this;var a=o.vars,l=a.duration,f=a.delay,h=a.immediateRender,c=a.stagger,d=a.overwrite,m=a.keyframes,_=a.defaults,p=a.scrollTrigger,x=a.yoyoEase,g=r.parent||z,v=(H(i)||cr(i)?Ot(i[0]):"length"in r)?[i]:ht(i),T,y,b,P,S,w,O,E;if(o._targets=v.length?Ri(v):xe("GSAP target "+i+" not found. https://gsap.com",!ut.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=d,m||c||Ee(l)||Ee(f)){if(r=o.vars,T=o.timeline=new Z({data:"nested",defaults:_||{},targets:g&&g.data==="nested"?g.vars.targets:v}),T.kill(),T.parent=T._dp=Pt(o),T._start=0,c||Ee(l)||Ee(f)){if(P=v.length,O=c&&Dr(c),wt(c))for(S in c)~Wr.indexOf(S)&&(E||(E={}),E[S]=c[S]);for(y=0;y<P;y++)b=Ye(r,qr),b.stagger=0,x&&(b.yoyoEase=x),E&&Ht(b,E),w=v[y],b.duration=+ye(l,Pt(o),y,w,v),b.delay=(+ye(f,Pt(o),y,w,v)||0)-o._delay,!c&&P===1&&b.delay&&(o._delay=f=b.delay,o._start+=f,b.delay=0),T.to(w,b,O?O(y,w,v):0),T._ease=k.none;T.duration()?l=f=0:o.timeline=0}else if(m){me(ct(T.vars.defaults,{ease:"none"})),T._ease=Kt(m.ease||r.ease||"none");var A=0,D,q,Y;if(H(m))m.forEach(function(N){return T.to(v,N,">")}),T.duration();else{b={};for(S in m)S==="ease"||S==="easeEach"||ws(S,m[S],b,m.easeEach);for(S in b)for(D=b[S].sort(function(N,U){return N.t-U.t}),A=0,y=0;y<D.length;y++)q=D[y],Y={ease:q.e,duration:(q.t-(y?D[y-1].t:0))/100*l},Y[S]=q.v,T.to(v,Y,A),A+=Y.duration;T.duration()<l&&T.to({},{duration:l-T.duration()})}}l||o.duration(l=T.duration())}else o.timeline=0;return d===!0&&!Si&&(Mt=Pt(o),z.killTweensOf(v),Mt=0),yt(g,Pt(o),n),r.reversed&&o.reverse(),r.paused&&o.paused(!0),(h||!l&&!m&&o._start===G(g._time)&&tt(h)&&Jn(Pt(o))&&g.data!=="nested")&&(o._tTime=-R,o.render(Math.max(0,-f)||0)),p&&Or(Pt(o),p),o}var e=t.prototype;return e.render=function(r,n,s){var o=this._time,a=this._tDur,l=this._dur,f=r<0,h=r>a-R&&!f?a:r<R?0:r,c,d,m,_,p,x,g,v,T;if(!l)es(this,r,n,s);else if(h!==this._tTime||!r||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==f){if(c=h,v=this.timeline,this._repeat){if(_=l+this._rDelay,this._repeat<-1&&f)return this.totalTime(_*100+r,n,s);if(c=G(h%_),h===a?(m=this._repeat,c=l):(m=~~(h/_),m&&m===G(h/_)&&(c=l,m--),c>l&&(c=l)),x=this._yoyo&&m&1,x&&(T=this._yEase,c=l-c),p=ae(this._tTime,_),c===o&&!s&&this._initted&&m===p)return this._tTime=h,this;m!==p&&(v&&this._yEase&&Ur(v,x),this.vars.repeatRefresh&&!x&&!this._lock&&this._time!==_&&this._initted&&(this._lock=s=1,this.render(G(_*m),!0).invalidate()._lock=0))}if(!this._initted){if(Cr(this,f?r:c,s,n,h))return this._tTime=0,this;if(o!==this._time&&!(s&&this.vars.repeatRefresh&&m!==p))return this;if(l!==this._dur)return this.render(r,n,s)}if(this._tTime=h,this._time=c,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=g=(T||this._ease)(c/l),this._from&&(this.ratio=g=1-g),c&&!o&&!n&&!m&&(at(this,"onStart"),this._tTime!==h))return this;for(d=this._pt;d;)d.r(g,d.d),d=d._next;v&&v.render(r<0?r:v._dur*v._ease(c/this._dur),n,s)||this._startAt&&(this._zTime=r),this._onUpdate&&!n&&(f&&hi(this,r,n,s),at(this,"onUpdate")),this._repeat&&m!==p&&this.vars.onRepeat&&!n&&this.parent&&at(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(f&&!this._onUpdate&&hi(this,r,!0,!0),(r||!l)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&zt(this,1),!n&&!(f&&!o)&&(h||o||x)&&(at(this,h===a?"onComplete":"onReverseComplete",!0),this._prom&&!(h<a&&this.timeScale()>0)&&this._prom()))}return this},e.targets=function(){return this._targets},e.invalidate=function(r){return(!r||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(r),u.prototype.invalidate.call(this,r)},e.resetTo=function(r,n,s,o,a){we||ot.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),f;return this._initted||Fi(this,l),f=this._ease(l/this._dur),vs(this,r,n,s,o,f,l,a)?this.resetTo(r,n,s,o,1):(Ke(this,0),this.parent||Sr(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(r,n){if(n===void 0&&(n="all"),!r&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?de(this):this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(r,n,Mt&&Mt.vars.overwrite!==!0)._first||de(this),this.parent&&s!==this.timeline.totalDuration()&&ue(this,this._dur*this.timeline._tDur/s,0,1),this}var o=this._targets,a=r?ht(r):o,l=this._ptLookup,f=this._pt,h,c,d,m,_,p,x;if((!n||n==="all")&&Qn(o,a))return n==="all"&&(this._pt=0),de(this);for(h=this._op=this._op||[],n!=="all"&&(W(n)&&(_={},et(n,function(g){return _[g]=1}),n=_),n=Ts(o,n)),x=o.length;x--;)if(~a.indexOf(o[x])){c=l[x],n==="all"?(h[x]=n,m=c,d={}):(d=h[x]=h[x]||{},m=n);for(_ in m)p=c&&c[_],p&&((!("kill"in p.d)||p.d.kill(_)===!0)&&We(this,p,"_pt"),delete c[_]),d!=="all"&&(d[_]=1)}return this._initted&&!this._pt&&f&&de(this),this},t.to=function(r,n){return new t(r,n,arguments[2])},t.from=function(r,n){return ge(1,arguments)},t.delayedCall=function(r,n,s,o){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:r,onComplete:n,onReverseComplete:n,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:o})},t.fromTo=function(r,n,s){return ge(2,arguments)},t.set=function(r,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(r,n)},t.killTweensOf=function(r,n,s){return z.killTweensOf(r,n,s)},t}(be);ct(V.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});et("staggerTo,staggerFrom,staggerFromTo",function(u){V[u]=function(){var t=new Z,e=di.call(arguments,0);return e.splice(u==="staggerFromTo"?5:4,0,0),t[u].apply(t,e)}});var zi=function(t,e,i){return t[e]=i},Kr=function(t,e,i){return t[e](i)},bs=function(t,e,i,r){return t[e](r.fp,i)},Ps=function(t,e,i){return t.setAttribute(e,i)},Ii=function(t,e){return L(t[e])?Kr:ki(t[e])&&t.setAttribute?Ps:zi},jr=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},Ss=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Hr=function(t,e){var i=e._pt,r="";if(!t&&e.b)r=e.b;else if(t===1&&e.e)r=e.e;else{for(;i;)r=i.p+(i.m?i.m(i.s+i.c*t):Math.round((i.s+i.c*t)*1e4)/1e4)+r,i=i._next;r+=e.c}e.set(e.t,e.p,r,e)},Li=function(t,e){for(var i=e._pt;i;)i.r(t,i.d),i=i._next},ks=function(t,e,i,r){for(var n=this._pt,s;n;)s=n._next,n.p===r&&n.modifier(t,e,i),n=s},Os=function(t){for(var e=this._pt,i,r;e;)r=e._next,e.p===t&&!e.op||e.op===t?We(this,e,"_pt"):e.dep||(i=1),e=r;return!i},Cs=function(t,e,i,r){r.mSet(t,e,r.m.call(r.tween,i,r.mt),r)},Qr=function(t){for(var e=t._pt,i,r,n,s;e;){for(i=e._next,r=n;r&&r.pr>e.pr;)r=r._next;(e._prev=r?r._prev:s)?e._prev._next=e:n=e,(e._next=r)?r._prev=e:s=e,e=i}t._pt=n},it=function(){function u(e,i,r,n,s,o,a,l,f){this.t=i,this.s=n,this.c=s,this.p=r,this.r=o||jr,this.d=a||this,this.set=l||zi,this.pr=f||0,this._next=e,e&&(e._prev=this)}var t=u.prototype;return t.modifier=function(i,r,n){this.mSet=this.mSet||this.set,this.set=Cs,this.m=i,this.mt=n,this.tween=r},u}();et(Di+"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",function(u){return Ai[u]=1});lt.TweenMax=lt.TweenLite=V;lt.TimelineLite=lt.TimelineMax=Z;z=new Z({sortChildren:!1,defaults:oe,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});ut.stringFilter=Vr;var jt=[],Le={},Ms=[],Qi=0,As=0,ii=function(t){return(Le[t]||Ms).map(function(e){return e()})},yi=function(){var t=Date.now(),e=[];t-Qi>2&&(ii("matchMediaInit"),jt.forEach(function(i){var r=i.queries,n=i.conditions,s,o,a,l;for(o in r)s=gt.matchMedia(r[o]).matches,s&&(a=1),s!==n[o]&&(n[o]=s,l=1);l&&(i.revert(),a&&e.push(i))}),ii("matchMediaRevert"),e.forEach(function(i){return i.onMatch(i,function(r){return i.add(null,r)})}),Qi=t,ii("matchMedia"))},Zr=function(){function u(e,i){this.selector=i&&pi(i),this.data=[],this._r=[],this.isReverted=!1,this.id=As++,e&&this.add(e)}var t=u.prototype;return t.add=function(i,r,n){L(i)&&(n=r,r=i,i=L);var s=this,o=function(){var l=F,f=s.selector,h;return l&&l!==s&&l.data.push(s),n&&(s.selector=pi(n)),F=s,h=r.apply(s,arguments),L(h)&&s._r.push(h),F=l,s.selector=f,s.isReverted=!1,h};return s.last=o,i===L?o(s,function(a){return s.add(null,a)}):i?s[i]=o:o},t.ignore=function(i){var r=F;F=null,i(this),F=r},t.getTweens=function(){var i=[];return this.data.forEach(function(r){return r instanceof u?i.push.apply(i,r.getTweens()):r instanceof V&&!(r.parent&&r.parent.data==="nested")&&i.push(r)}),i},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(i,r){var n=this;if(i?function(){for(var o=n.getTweens(),a=n.data.length,l;a--;)l=n.data[a],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(f){return o.splice(o.indexOf(f),1)}));for(o.map(function(f){return{g:f._dur||f._delay||f._sat&&!f._sat.vars.immediateRender?f.globalTime(0):-1/0,t:f}}).sort(function(f,h){return h.g-f.g||-1/0}).forEach(function(f){return f.t.revert(i)}),a=n.data.length;a--;)l=n.data[a],l instanceof Z?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof V)&&l.revert&&l.revert(i);n._r.forEach(function(f){return f(i,n)}),n.isReverted=!0}():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),r)for(var s=jt.length;s--;)jt[s].id===this.id&&jt.splice(s,1)},t.revert=function(i){this.kill(i||{})},u}(),Ds=function(){function u(e){this.contexts=[],this.scope=e,F&&F.data.push(this)}var t=u.prototype;return t.add=function(i,r,n){wt(i)||(i={matches:i});var s=new Zr(0,n||this.scope),o=s.conditions={},a,l,f;F&&!s.selector&&(s.selector=F.selector),this.contexts.push(s),r=s.add("onMatch",r),s.queries=i;for(l in i)l==="all"?f=1:(a=gt.matchMedia(i[l]),a&&(jt.indexOf(s)<0&&jt.push(s),(o[l]=a.matches)&&(f=1),a.addListener?a.addListener(yi):a.addEventListener("change",yi)));return f&&r(s,function(h){return s.add(null,h)}),this},t.revert=function(i){this.kill(i||{})},t.kill=function(i){this.contexts.forEach(function(r){return r.kill(i,!0)})},u}(),Xe={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e.forEach(function(r){return Lr(r)})},timeline:function(t){return new Z(t)},getTweensOf:function(t,e){return z.getTweensOf(t,e)},getProperty:function(t,e,i,r){W(t)&&(t=ht(t)[0]);var n=Wt(t||{}).get,s=i?Pr:br;return i==="native"&&(i=""),t&&(e?s((st[e]&&st[e].get||n)(t,e,i,r)):function(o,a,l){return s((st[o]&&st[o].get||n)(t,o,a,l))})},quickSetter:function(t,e,i){if(t=ht(t),t.length>1){var r=t.map(function(f){return nt.quickSetter(f,e,i)}),n=r.length;return function(f){for(var h=n;h--;)r[h](f)}}t=t[0]||{};var s=st[e],o=Wt(t),a=o.harness&&(o.harness.aliases||{})[e]||e,l=s?function(f){var h=new s;ee._pt=0,h.init(t,i?f+i:f,ee,0,[t]),h.render(1,h),ee._pt&&Li(1,ee)}:o.set(t,a);return s?l:function(f){return l(t,a,i?f+i:f,o,1)}},quickTo:function(t,e,i){var r,n=nt.to(t,Ht((r={},r[e]="+=0.1",r.paused=!0,r),i||{})),s=function(a,l,f){return n.resetTo(e,a,l,f)};return s.tween=n,s},isTweening:function(t){return z.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Kt(t.ease,oe.ease)),Wi(oe,t||{})},config:function(t){return Wi(ut,t||{})},registerEffect:function(t){var e=t.name,i=t.effect,r=t.plugins,n=t.defaults,s=t.extendTimeline;(r||"").split(",").forEach(function(o){return o&&!st[o]&&!lt[o]&&xe(e+" effect requires "+o+" plugin.")}),Ze[e]=function(o,a,l){return i(ht(o),ct(a||{},n),l)},s&&(Z.prototype[e]=function(o,a,l){return this.add(Ze[e](o,wt(a)?a:(l=a)&&{},this),l)})},registerEase:function(t,e){k[t]=Kt(e)},parseEase:function(t,e){return arguments.length?Kt(t,e):k},getById:function(t){return z.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var i=new Z(t),r,n;for(i.smoothChildTiming=tt(t.smoothChildTiming),z.remove(i),i._dp=0,i._time=i._tTime=z._time,r=z._first;r;)n=r._next,(e||!(!r._dur&&r instanceof V&&r.vars.onComplete===r._targets[0]))&&yt(i,r,r._start-r._delay),r=n;return yt(z,i,0),i},context:function(t,e){return t?new Zr(t,e):F},matchMedia:function(t){return new Ds(t)},matchMediaRefresh:function(){return jt.forEach(function(t){var e=t.conditions,i,r;for(r in e)e[r]&&(e[r]=!1,i=1);i&&t.revert()})||yi()},addEventListener:function(t,e){var i=Le[t]||(Le[t]=[]);~i.indexOf(e)||i.push(e)},removeEventListener:function(t,e){var i=Le[t],r=i&&i.indexOf(e);r>=0&&i.splice(r,1)},utils:{wrap:ls,wrapYoyo:fs,distribute:Dr,random:Er,snap:Rr,normalize:us,getUnit:K,clamp:ns,splitColor:Br,toArray:ht,selector:pi,mapRange:zr,pipe:os,unitize:as,interpolate:_s,shuffle:Ar},install:yr,effects:Ze,ticker:ot,updateRoot:Z.updateRoot,plugins:st,globalTimeline:z,core:{PropTween:it,globals:xr,Tween:V,Timeline:Z,Animation:be,getCache:Wt,_removeLinkedListItem:We,reverting:function(){return j},context:function(t){return t&&F&&(F.data.push(t),t._ctx=F),F},suppressOverwrites:function(t){return Si=t}}};et("to,from,fromTo,delayedCall,set,killTweensOf",function(u){return Xe[u]=V[u]});ot.add(Z.updateRoot);ee=Xe.to({},{duration:0});var Rs=function(t,e){for(var i=t._pt;i&&i.p!==e&&i.op!==e&&i.fp!==e;)i=i._next;return i},Es=function(t,e){var i=t._targets,r,n,s;for(r in e)for(n=i.length;n--;)s=t._ptLookup[n][r],s&&(s=s.d)&&(s._pt&&(s=Rs(s,r)),s&&s.modifier&&s.modifier(e[r],t,i[n],r))},ri=function(t,e){return{name:t,rawVars:1,init:function(r,n,s){s._onInit=function(o){var a,l;if(W(n)&&(a={},et(n,function(f){return a[f]=1}),n=a),e){a={};for(l in n)a[l]=e(n[l]);n=a}Es(o,n)}}}},nt=Xe.registerPlugin({name:"attr",init:function(t,e,i,r,n){var s,o,a;this.tween=i;for(s in e)a=t.getAttribute(s)||"",o=this.add(t,"setAttribute",(a||0)+"",e[s],r,n,0,0,s),o.op=s,o.b=a,this._props.push(s)},render:function(t,e){for(var i=e._pt;i;)j?i.set(i.t,i.p,i.b,i):i.r(t,i.d),i=i._next}},{name:"endArray",init:function(t,e){for(var i=e.length;i--;)this.add(t,i,t[i]||0,e[i],0,0,0,0,0,1)}},ri("roundProps",mi),ri("modifiers"),ri("snap",Rr))||Xe;V.version=Z.version=nt.version="3.12.5";gr=1;Oi()&&le();k.Power0;k.Power1;k.Power2;k.Power3;k.Power4;k.Linear;k.Quad;k.Cubic;k.Quart;k.Quint;k.Strong;k.Elastic;k.Back;k.SteppedEase;k.Bounce;k.Sine;k.Expo;k.Circ;/*!
|
|
10
|
-
* CSSPlugin 3.12.5
|
|
11
|
-
* https://gsap.com
|
|
12
|
-
*
|
|
13
|
-
* Copyright 2008-2024, GreenSock. All rights reserved.
|
|
14
|
-
* Subject to the terms at https://gsap.com/standard-license or for
|
|
15
|
-
* Club GSAP members, the agreement issued with that membership.
|
|
16
|
-
* @author: Jack Doyle, jack@greensock.com
|
|
17
|
-
*/var Zi,At,re,Bi,Gt,Ji,Ni,Fs=function(){return typeof window<"u"},Ct={},Ut=180/Math.PI,ne=Math.PI/180,Jt=Math.atan2,tr=1e8,Vi=/([A-Z])/g,zs=/(left|right|width|margin|padding|x)/i,Is=/[\s,\(]\S/,xt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},xi=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Ls=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Bs=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},Ns=function(t,e){var i=e.s+e.c*t;e.set(e.t,e.p,~~(i+(i<0?-.5:.5))+e.u,e)},Jr=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},tn=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},Vs=function(t,e,i){return t.style[e]=i},Ys=function(t,e,i){return t.style.setProperty(e,i)},Us=function(t,e,i){return t._gsap[e]=i},Xs=function(t,e,i){return t._gsap.scaleX=t._gsap.scaleY=i},$s=function(t,e,i,r,n){var s=t._gsap;s.scaleX=s.scaleY=i,s.renderTransform(n,s)},Gs=function(t,e,i,r,n){var s=t._gsap;s[e]=i,s.renderTransform(n,s)},I="transform",rt=I+"Origin",Ws=function u(t,e){var i=this,r=this.target,n=r.style,s=r._gsap;if(t in Ct&&n){if(this.tfm=this.tfm||{},t!=="transform")t=xt[t]||t,~t.indexOf(",")?t.split(",").forEach(function(o){return i.tfm[o]=St(r,o)}):this.tfm[t]=s.x?s[t]:St(r,t),t===rt&&(this.tfm.zOrigin=s.zOrigin);else return xt.transform.split(",").forEach(function(o){return u.call(i,o,e)});if(this.props.indexOf(I)>=0)return;s.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(rt,e,"")),t=I}(n||e)&&this.props.push(t,e,n[t])},en=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},qs=function(){var t=this.props,e=this.target,i=e.style,r=e._gsap,n,s;for(n=0;n<t.length;n+=3)t[n+1]?e[t[n]]=t[n+2]:t[n+2]?i[t[n]]=t[n+2]:i.removeProperty(t[n].substr(0,2)==="--"?t[n]:t[n].replace(Vi,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)r[s]=this.tfm[s];r.svg&&(r.renderTransform(),e.setAttribute("data-svg-origin",this.svgo||"")),n=Ni(),(!n||!n.isStart)&&!i[I]&&(en(i),r.zOrigin&&i[rt]&&(i[rt]+=" "+r.zOrigin+"px",r.zOrigin=0,r.renderTransform()),r.uncache=1)}},rn=function(t,e){var i={target:t,props:[],revert:qs,save:Ws};return t._gsap||nt.core.getCache(t),e&&e.split(",").forEach(function(r){return i.save(r)}),i},nn,vi=function(t,e){var i=At.createElementNS?At.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):At.createElement(t);return i&&i.style?i:At.createElement(t)},Tt=function u(t,e,i){var r=getComputedStyle(t);return r[e]||r.getPropertyValue(e.replace(Vi,"-$1").toLowerCase())||r.getPropertyValue(e)||!i&&u(t,fe(e)||e,1)||""},er="O,Moz,ms,Ms,Webkit".split(","),fe=function(t,e,i){var r=e||Gt,n=r.style,s=5;if(t in n&&!i)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);s--&&!(er[s]+t in n););return s<0?null:(s===3?"ms":s>=0?er[s]:"")+t},Ti=function(){Fs()&&window.document&&(Zi=window,At=Zi.document,re=At.documentElement,Gt=vi("div")||{style:{}},vi("div"),I=fe(I),rt=I+"Origin",Gt.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",nn=!!fe("perspective"),Ni=nt.core.reverting,Bi=1)},ni=function u(t){var e=vi("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,r=this.nextSibling,n=this.style.cssText,s;if(re.appendChild(e),e.appendChild(this),this.style.display="block",t)try{s=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=u}catch{}else this._gsapBBox&&(s=this._gsapBBox());return i&&(r?i.insertBefore(this,r):i.appendChild(this)),re.removeChild(e),this.style.cssText=n,s},ir=function(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])},sn=function(t){var e;try{e=t.getBBox()}catch{e=ni.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===ni||(e=ni.call(t,!0)),e&&!e.width&&!e.x&&!e.y?{x:+ir(t,["x","cx","x1"])||0,y:+ir(t,["y","cy","y1"])||0,width:0,height:0}:e},on=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&sn(t))},Qt=function(t,e){if(e){var i=t.style,r;e in Ct&&e!==rt&&(e=I),i.removeProperty?(r=e.substr(0,2),(r==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),i.removeProperty(r==="--"?e:e.replace(Vi,"-$1").toLowerCase())):i.removeAttribute(e)}},Dt=function(t,e,i,r,n,s){var o=new it(t._pt,e,i,0,1,s?tn:Jr);return t._pt=o,o.b=r,o.e=n,t._props.push(i),o},rr={deg:1,rad:1,turn:1},Ks={grid:1,flex:1},It=function u(t,e,i,r){var n=parseFloat(i)||0,s=(i+"").trim().substr((n+"").length)||"px",o=Gt.style,a=zs.test(e),l=t.tagName.toLowerCase()==="svg",f=(l?"client":"offset")+(a?"Width":"Height"),h=100,c=r==="px",d=r==="%",m,_,p,x;if(r===s||!n||rr[r]||rr[s])return n;if(s!=="px"&&!c&&(n=u(t,e,i,"px")),x=t.getCTM&&on(t),(d||s==="%")&&(Ct[e]||~e.indexOf("adius")))return m=x?t.getBBox()[a?"width":"height"]:t[f],B(d?n/m*h:n/100*m);if(o[a?"width":"height"]=h+(c?s:r),_=~e.indexOf("adius")||r==="em"&&t.appendChild&&!l?t:t.parentNode,x&&(_=(t.ownerSVGElement||{}).parentNode),(!_||_===At||!_.appendChild)&&(_=At.body),p=_._gsap,p&&d&&p.width&&a&&p.time===ot.time&&!p.uncache)return B(n/p.width*h);if(d&&(e==="height"||e==="width")){var g=t.style[e];t.style[e]=h+r,m=t[f],g?t.style[e]=g:Qt(t,e)}else(d||s==="%")&&!Ks[Tt(_,"display")]&&(o.position=Tt(t,"position")),_===t&&(o.position="static"),_.appendChild(Gt),m=Gt[f],_.removeChild(Gt),o.position="absolute";return a&&d&&(p=Wt(_),p.time=ot.time,p.width=_[f]),B(c?m*n/h:m&&n?h/m*n:0)},St=function(t,e,i,r){var n;return Bi||Ti(),e in xt&&e!=="transform"&&(e=xt[e],~e.indexOf(",")&&(e=e.split(",")[0])),Ct[e]&&e!=="transform"?(n=Se(t,r),n=e!=="transformOrigin"?n[e]:n.svg?n.origin:Ge(Tt(t,rt))+" "+n.zOrigin+"px"):(n=t.style[e],(!n||n==="auto"||r||~(n+"").indexOf("calc("))&&(n=$e[e]&&$e[e](t,e,i)||Tt(t,e)||Tr(t,e)||(e==="opacity"?1:0))),i&&!~(n+"").trim().indexOf(" ")?It(t,e,n,i)+i:n},js=function(t,e,i,r){if(!i||i==="none"){var n=fe(e,t,1),s=n&&Tt(t,n,1);s&&s!==i?(e=n,i=s):e==="borderColor"&&(i=Tt(t,"borderTopColor"))}var o=new it(this._pt,t.style,e,0,1,Hr),a=0,l=0,f,h,c,d,m,_,p,x,g,v,T,y;if(o.b=i,o.e=r,i+="",r+="",r==="auto"&&(_=t.style[e],t.style[e]=r,r=Tt(t,e)||r,_?t.style[e]=_:Qt(t,e)),f=[i,r],Vr(f),i=f[0],r=f[1],c=i.match(te)||[],y=r.match(te)||[],y.length){for(;h=te.exec(r);)p=h[0],g=r.substring(a,h.index),m?m=(m+1)%5:(g.substr(-5)==="rgba("||g.substr(-5)==="hsla(")&&(m=1),p!==(_=c[l++]||"")&&(d=parseFloat(_)||0,T=_.substr((d+"").length),p.charAt(1)==="="&&(p=ie(d,p)+T),x=parseFloat(p),v=p.substr((x+"").length),a=te.lastIndex-v.length,v||(v=v||ut.units[e]||T,a===r.length&&(r+=v,o.e+=v)),T!==v&&(d=It(t,e,_,v)||0),o._pt={_next:o._pt,p:g||l===1?g:",",s:d,c:x-d,m:m&&m<4||e==="zIndex"?Math.round:0});o.c=a<r.length?r.substring(a,r.length):""}else o.r=e==="display"&&r==="none"?tn:Jr;return pr.test(r)&&(o.e=0),this._pt=o,o},nr={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Hs=function(t){var e=t.split(" "),i=e[0],r=e[1]||"50%";return(i==="top"||i==="bottom"||r==="left"||r==="right")&&(t=i,i=r,r=t),e[0]=nr[i]||i,e[1]=nr[r]||r,e.join(" ")},Qs=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var i=e.t,r=i.style,n=e.u,s=i._gsap,o,a,l;if(n==="all"||n===!0)r.cssText="",a=1;else for(n=n.split(","),l=n.length;--l>-1;)o=n[l],Ct[o]&&(a=1,o=o==="transformOrigin"?rt:I),Qt(i,o);a&&(Qt(i,I),s&&(s.svg&&i.removeAttribute("transform"),Se(i,1),s.uncache=1,en(r)))}},$e={clearProps:function(t,e,i,r,n){if(n.data!=="isFromStart"){var s=t._pt=new it(t._pt,e,i,0,0,Qs);return s.u=r,s.pr=-10,s.tween=n,t._props.push(i),1}}},Pe=[1,0,0,1,0,0],an={},un=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},sr=function(t){var e=Tt(t,I);return un(e)?Pe:e.substr(7).match(dr).map(B)},Yi=function(t,e){var i=t._gsap||Wt(t),r=t.style,n=sr(t),s,o,a,l;return i.svg&&t.getAttribute("transform")?(a=t.transform.baseVal.consolidate().matrix,n=[a.a,a.b,a.c,a.d,a.e,a.f],n.join(",")==="1,0,0,1,0,0"?Pe:n):(n===Pe&&!t.offsetParent&&t!==re&&!i.svg&&(a=r.display,r.display="block",s=t.parentNode,(!s||!t.offsetParent)&&(l=1,o=t.nextElementSibling,re.appendChild(t)),n=sr(t),a?r.display=a:Qt(t,"display"),l&&(o?s.insertBefore(t,o):s?s.appendChild(t):re.removeChild(t))),e&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},wi=function(t,e,i,r,n,s){var o=t._gsap,a=n||Yi(t,!0),l=o.xOrigin||0,f=o.yOrigin||0,h=o.xOffset||0,c=o.yOffset||0,d=a[0],m=a[1],_=a[2],p=a[3],x=a[4],g=a[5],v=e.split(" "),T=parseFloat(v[0])||0,y=parseFloat(v[1])||0,b,P,S,w;i?a!==Pe&&(P=d*p-m*_)&&(S=T*(p/P)+y*(-_/P)+(_*g-p*x)/P,w=T*(-m/P)+y*(d/P)-(d*g-m*x)/P,T=S,y=w):(b=sn(t),T=b.x+(~v[0].indexOf("%")?T/100*b.width:T),y=b.y+(~(v[1]||v[0]).indexOf("%")?y/100*b.height:y)),r||r!==!1&&o.smooth?(x=T-l,g=y-f,o.xOffset=h+(x*d+g*_)-x,o.yOffset=c+(x*m+g*p)-g):o.xOffset=o.yOffset=0,o.xOrigin=T,o.yOrigin=y,o.smooth=!!r,o.origin=e,o.originIsAbsolute=!!i,t.style[rt]="0px 0px",s&&(Dt(s,o,"xOrigin",l,T),Dt(s,o,"yOrigin",f,y),Dt(s,o,"xOffset",h,o.xOffset),Dt(s,o,"yOffset",c,o.yOffset)),t.setAttribute("data-svg-origin",T+" "+y)},Se=function(t,e){var i=t._gsap||new $r(t);if("x"in i&&!e&&!i.uncache)return i;var r=t.style,n=i.scaleX<0,s="px",o="deg",a=getComputedStyle(t),l=Tt(t,rt)||"0",f,h,c,d,m,_,p,x,g,v,T,y,b,P,S,w,O,E,A,D,q,Y,N,U,dt,Ae,_e,he,Bt,Ui,bt,Nt;return f=h=c=_=p=x=g=v=T=0,d=m=1,i.svg=!!(t.getCTM&&on(t)),a.translate&&((a.translate!=="none"||a.scale!=="none"||a.rotate!=="none")&&(r[I]=(a.translate!=="none"?"translate3d("+(a.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(a.rotate!=="none"?"rotate("+a.rotate+") ":"")+(a.scale!=="none"?"scale("+a.scale.split(" ").join(",")+") ":"")+(a[I]!=="none"?a[I]:"")),r.scale=r.rotate=r.translate="none"),P=Yi(t,i.svg),i.svg&&(i.uncache?(dt=t.getBBox(),l=i.xOrigin-dt.x+"px "+(i.yOrigin-dt.y)+"px",U=""):U=!e&&t.getAttribute("data-svg-origin"),wi(t,U||l,!!U||i.originIsAbsolute,i.smooth!==!1,P)),y=i.xOrigin||0,b=i.yOrigin||0,P!==Pe&&(E=P[0],A=P[1],D=P[2],q=P[3],f=Y=P[4],h=N=P[5],P.length===6?(d=Math.sqrt(E*E+A*A),m=Math.sqrt(q*q+D*D),_=E||A?Jt(A,E)*Ut:0,g=D||q?Jt(D,q)*Ut+_:0,g&&(m*=Math.abs(Math.cos(g*ne))),i.svg&&(f-=y-(y*E+b*D),h-=b-(y*A+b*q))):(Nt=P[6],Ui=P[7],_e=P[8],he=P[9],Bt=P[10],bt=P[11],f=P[12],h=P[13],c=P[14],S=Jt(Nt,Bt),p=S*Ut,S&&(w=Math.cos(-S),O=Math.sin(-S),U=Y*w+_e*O,dt=N*w+he*O,Ae=Nt*w+Bt*O,_e=Y*-O+_e*w,he=N*-O+he*w,Bt=Nt*-O+Bt*w,bt=Ui*-O+bt*w,Y=U,N=dt,Nt=Ae),S=Jt(-D,Bt),x=S*Ut,S&&(w=Math.cos(-S),O=Math.sin(-S),U=E*w-_e*O,dt=A*w-he*O,Ae=D*w-Bt*O,bt=q*O+bt*w,E=U,A=dt,D=Ae),S=Jt(A,E),_=S*Ut,S&&(w=Math.cos(S),O=Math.sin(S),U=E*w+A*O,dt=Y*w+N*O,A=A*w-E*O,N=N*w-Y*O,E=U,Y=dt),p&&Math.abs(p)+Math.abs(_)>359.9&&(p=_=0,x=180-x),d=B(Math.sqrt(E*E+A*A+D*D)),m=B(Math.sqrt(N*N+Nt*Nt)),S=Jt(Y,N),g=Math.abs(S)>2e-4?S*Ut:0,T=bt?1/(bt<0?-bt:bt):0),i.svg&&(U=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!un(Tt(t,I)),U&&t.setAttribute("transform",U))),Math.abs(g)>90&&Math.abs(g)<270&&(n?(d*=-1,g+=_<=0?180:-180,_+=_<=0?180:-180):(m*=-1,g+=g<=0?180:-180)),e=e||i.uncache,i.x=f-((i.xPercent=f&&(!e&&i.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-f)?-50:0)))?t.offsetWidth*i.xPercent/100:0)+s,i.y=h-((i.yPercent=h&&(!e&&i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-h)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+s,i.z=c+s,i.scaleX=B(d),i.scaleY=B(m),i.rotation=B(_)+o,i.rotationX=B(p)+o,i.rotationY=B(x)+o,i.skewX=g+o,i.skewY=v+o,i.transformPerspective=T+s,(i.zOrigin=parseFloat(l.split(" ")[2])||!e&&i.zOrigin||0)&&(r[rt]=Ge(l)),i.xOffset=i.yOffset=0,i.force3D=ut.force3D,i.renderTransform=i.svg?Js:nn?ln:Zs,i.uncache=0,i},Ge=function(t){return(t=t.split(" "))[0]+" "+t[1]},si=function(t,e,i){var r=K(e);return B(parseFloat(e)+parseFloat(It(t,"x",i+"px",r)))+r},Zs=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,ln(t,e)},Vt="0deg",ce="0px",Yt=") ",ln=function(t,e){var i=e||this,r=i.xPercent,n=i.yPercent,s=i.x,o=i.y,a=i.z,l=i.rotation,f=i.rotationY,h=i.rotationX,c=i.skewX,d=i.skewY,m=i.scaleX,_=i.scaleY,p=i.transformPerspective,x=i.force3D,g=i.target,v=i.zOrigin,T="",y=x==="auto"&&t&&t!==1||x===!0;if(v&&(h!==Vt||f!==Vt)){var b=parseFloat(f)*ne,P=Math.sin(b),S=Math.cos(b),w;b=parseFloat(h)*ne,w=Math.cos(b),s=si(g,s,P*w*-v),o=si(g,o,-Math.sin(b)*-v),a=si(g,a,S*w*-v+v)}p!==ce&&(T+="perspective("+p+Yt),(r||n)&&(T+="translate("+r+"%, "+n+"%) "),(y||s!==ce||o!==ce||a!==ce)&&(T+=a!==ce||y?"translate3d("+s+", "+o+", "+a+") ":"translate("+s+", "+o+Yt),l!==Vt&&(T+="rotate("+l+Yt),f!==Vt&&(T+="rotateY("+f+Yt),h!==Vt&&(T+="rotateX("+h+Yt),(c!==Vt||d!==Vt)&&(T+="skew("+c+", "+d+Yt),(m!==1||_!==1)&&(T+="scale("+m+", "+_+Yt),g.style[I]=T||"translate(0, 0)"},Js=function(t,e){var i=e||this,r=i.xPercent,n=i.yPercent,s=i.x,o=i.y,a=i.rotation,l=i.skewX,f=i.skewY,h=i.scaleX,c=i.scaleY,d=i.target,m=i.xOrigin,_=i.yOrigin,p=i.xOffset,x=i.yOffset,g=i.forceCSS,v=parseFloat(s),T=parseFloat(o),y,b,P,S,w;a=parseFloat(a),l=parseFloat(l),f=parseFloat(f),f&&(f=parseFloat(f),l+=f,a+=f),a||l?(a*=ne,l*=ne,y=Math.cos(a)*h,b=Math.sin(a)*h,P=Math.sin(a-l)*-c,S=Math.cos(a-l)*c,l&&(f*=ne,w=Math.tan(l-f),w=Math.sqrt(1+w*w),P*=w,S*=w,f&&(w=Math.tan(f),w=Math.sqrt(1+w*w),y*=w,b*=w)),y=B(y),b=B(b),P=B(P),S=B(S)):(y=h,S=c,b=P=0),(v&&!~(s+"").indexOf("px")||T&&!~(o+"").indexOf("px"))&&(v=It(d,"x",s,"px"),T=It(d,"y",o,"px")),(m||_||p||x)&&(v=B(v+m-(m*y+_*P)+p),T=B(T+_-(m*b+_*S)+x)),(r||n)&&(w=d.getBBox(),v=B(v+r/100*w.width),T=B(T+n/100*w.height)),w="matrix("+y+","+b+","+P+","+S+","+v+","+T+")",d.setAttribute("transform",w),g&&(d.style[I]=w)},to=function(t,e,i,r,n){var s=360,o=W(n),a=parseFloat(n)*(o&&~n.indexOf("rad")?Ut:1),l=a-r,f=r+l+"deg",h,c;return o&&(h=n.split("_")[1],h==="short"&&(l%=s,l!==l%(s/2)&&(l+=l<0?s:-s)),h==="cw"&&l<0?l=(l+s*tr)%s-~~(l/s)*s:h==="ccw"&&l>0&&(l=(l-s*tr)%s-~~(l/s)*s)),t._pt=c=new it(t._pt,e,i,r,l,Ls),c.e=f,c.u="deg",t._props.push(i),c},or=function(t,e){for(var i in e)t[i]=e[i];return t},eo=function(t,e,i){var r=or({},i._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=i.style,o,a,l,f,h,c,d,m;r.svg?(l=i.getAttribute("transform"),i.setAttribute("transform",""),s[I]=e,o=Se(i,1),Qt(i,I),i.setAttribute("transform",l)):(l=getComputedStyle(i)[I],s[I]=e,o=Se(i,1),s[I]=l);for(a in Ct)l=r[a],f=o[a],l!==f&&n.indexOf(a)<0&&(d=K(l),m=K(f),h=d!==m?It(i,a,l,m):parseFloat(l),c=parseFloat(f),t._pt=new it(t._pt,o,a,h,c-h,xi),t._pt.u=m||0,t._props.push(a));or(o,r)};et("padding,margin,Width,Radius",function(u,t){var e="Top",i="Right",r="Bottom",n="Left",s=(t<3?[e,i,r,n]:[e+n,e+i,r+i,r+n]).map(function(o){return t<2?u+o:"border"+o+u});$e[t>1?"border"+u:u]=function(o,a,l,f,h){var c,d;if(arguments.length<4)return c=s.map(function(m){return St(o,m,l)}),d=c.join(" "),d.split(c[0]).length===5?c[0]:d;c=(f+"").split(" "),d={},s.forEach(function(m,_){return d[m]=c[_]=c[_]||c[(_-1)/2|0]}),o.init(a,d,h)}});var fn={name:"css",register:Ti,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,i,r,n){var s=this._props,o=t.style,a=i.vars.startAt,l,f,h,c,d,m,_,p,x,g,v,T,y,b,P,S;Bi||Ti(),this.styles=this.styles||rn(t),S=this.styles.props,this.tween=i;for(_ in e)if(_!=="autoRound"&&(f=e[_],!(st[_]&&Gr(_,e,i,r,t,n)))){if(d=typeof f,m=$e[_],d==="function"&&(f=f.call(i,r,t,n),d=typeof f),d==="string"&&~f.indexOf("random(")&&(f=Te(f)),m)m(this,t,_,f,i)&&(P=1);else if(_.substr(0,2)==="--")l=(getComputedStyle(t).getPropertyValue(_)+"").trim(),f+="",Et.lastIndex=0,Et.test(l)||(p=K(l),x=K(f)),x?p!==x&&(l=It(t,_,l,x)+x):p&&(f+=p),this.add(o,"setProperty",l,f,r,n,0,0,_),s.push(_),S.push(_,0,o[_]);else if(d!=="undefined"){if(a&&_ in a?(l=typeof a[_]=="function"?a[_].call(i,r,t,n):a[_],W(l)&&~l.indexOf("random(")&&(l=Te(l)),K(l+"")||l==="auto"||(l+=ut.units[_]||K(St(t,_))||""),(l+"").charAt(1)==="="&&(l=St(t,_))):l=St(t,_),c=parseFloat(l),g=d==="string"&&f.charAt(1)==="="&&f.substr(0,2),g&&(f=f.substr(2)),h=parseFloat(f),_ in xt&&(_==="autoAlpha"&&(c===1&&St(t,"visibility")==="hidden"&&h&&(c=0),S.push("visibility",0,o.visibility),Dt(this,o,"visibility",c?"inherit":"hidden",h?"inherit":"hidden",!h)),_!=="scale"&&_!=="transform"&&(_=xt[_],~_.indexOf(",")&&(_=_.split(",")[0]))),v=_ in Ct,v){if(this.styles.save(_),T||(y=t._gsap,y.renderTransform&&!e.parseTransform||Se(t,e.parseTransform),b=e.smoothOrigin!==!1&&y.smooth,T=this._pt=new it(this._pt,o,I,0,1,y.renderTransform,y,0,-1),T.dep=1),_==="scale")this._pt=new it(this._pt,y,"scaleY",y.scaleY,(g?ie(y.scaleY,g+h):h)-y.scaleY||0,xi),this._pt.u=0,s.push("scaleY",_),_+="X";else if(_==="transformOrigin"){S.push(rt,0,o[rt]),f=Hs(f),y.svg?wi(t,f,0,b,0,this):(x=parseFloat(f.split(" ")[2])||0,x!==y.zOrigin&&Dt(this,y,"zOrigin",y.zOrigin,x),Dt(this,o,_,Ge(l),Ge(f)));continue}else if(_==="svgOrigin"){wi(t,f,1,b,0,this);continue}else if(_ in an){to(this,y,_,c,g?ie(c,g+f):f);continue}else if(_==="smoothOrigin"){Dt(this,y,"smooth",y.smooth,f);continue}else if(_==="force3D"){y[_]=f;continue}else if(_==="transform"){eo(this,f,t);continue}}else _ in o||(_=fe(_)||_);if(v||(h||h===0)&&(c||c===0)&&!Is.test(f)&&_ in o)p=(l+"").substr((c+"").length),h||(h=0),x=K(f)||(_ in ut.units?ut.units[_]:p),p!==x&&(c=It(t,_,l,x)),this._pt=new it(this._pt,v?y:o,_,c,(g?ie(c,g+h):h)-c,!v&&(x==="px"||_==="zIndex")&&e.autoRound!==!1?Ns:xi),this._pt.u=x||0,p!==x&&x!=="%"&&(this._pt.b=l,this._pt.r=Bs);else if(_ in o)js.call(this,t,_,l,g?g+f:f);else if(_ in t)this.add(t,_,l||t[_],g?g+f:f,r,n);else if(_!=="parseTransform"){Mi(_,f);continue}v||(_ in o?S.push(_,0,o[_]):S.push(_,1,l||t[_])),s.push(_)}}P&&Qr(this)},render:function(t,e){if(e.tween._time||!Ni())for(var i=e._pt;i;)i.r(t,i.d),i=i._next;else e.styles.revert()},get:St,aliases:xt,getSetter:function(t,e,i){var r=xt[e];return r&&r.indexOf(",")<0&&(e=r),e in Ct&&e!==rt&&(t._gsap.x||St(t,"x"))?i&&Ji===i?e==="scale"?Xs:Us:(Ji=i||{})&&(e==="scale"?$s:Gs):t.style&&!ki(t.style[e])?Vs:~e.indexOf("-")?Ys:Ii(t,e)},core:{_removeProperty:Qt,_getMatrix:Yi}};nt.utils.checkPrefix=fe;nt.core.getStyleSaver=rn;(function(u,t,e,i){var r=et(u+","+t+","+e,function(n){Ct[n]=1});et(t,function(n){ut.units[n]="deg",an[n]=1}),xt[r[13]]=u+","+t,et(i,function(n){var s=n.split(":");xt[s[1]]=r[s[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");et("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(u){ut.units[u]="px"});nt.registerPlugin(fn);var Be=nt.registerPlugin(fn)||nt;Be.core.Tween;/*!
|
|
18
|
-
* ScrollToPlugin 3.12.5
|
|
19
|
-
* https://gsap.com
|
|
20
|
-
*
|
|
21
|
-
* @license Copyright 2008-2024, GreenSock. All rights reserved.
|
|
22
|
-
* Subject to the terms at https://gsap.com/standard-license or for
|
|
23
|
-
* Club GSAP members, the agreement issued with that membership.
|
|
24
|
-
* @author: Jack Doyle, jack@greensock.com
|
|
25
|
-
*/var J,_n,kt,vt,Ft,hn,cn,Fe,dn=function(){return typeof window<"u"},pn=function(){return J||dn()&&(J=window.gsap)&&J.registerPlugin&&J},mn=function(t){return typeof t=="string"},ar=function(t){return typeof t=="function"},ke=function(t,e){var i=e==="x"?"Width":"Height",r="scroll"+i,n="client"+i;return t===kt||t===vt||t===Ft?Math.max(vt[r],Ft[r])-(kt["inner"+i]||vt[n]||Ft[n]):t[r]-t["offset"+i]},Oe=function(t,e){var i="scroll"+(e==="x"?"Left":"Top");return t===kt&&(t.pageXOffset!=null?i="page"+e.toUpperCase()+"Offset":t=vt[i]!=null?vt:Ft),function(){return t[i]}},io=function(t,e,i,r){if(ar(t)&&(t=t(e,i,r)),typeof t!="object")return mn(t)&&t!=="max"&&t.charAt(1)!=="="?{x:t,y:t}:{y:t};if(t.nodeType)return{y:t,x:t};var n={},s;for(s in t)n[s]=s!=="onAutoKill"&&ar(t[s])?t[s](e,i,r):t[s];return n},gn=function(t,e){if(t=hn(t)[0],!t||!t.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var i=t.getBoundingClientRect(),r=!e||e===kt||e===Ft,n=r?{top:vt.clientTop-(kt.pageYOffset||vt.scrollTop||Ft.scrollTop||0),left:vt.clientLeft-(kt.pageXOffset||vt.scrollLeft||Ft.scrollLeft||0)}:e.getBoundingClientRect(),s={x:i.left-n.left,y:i.top-n.top};return!r&&e&&(s.x+=Oe(e,"x")(),s.y+=Oe(e,"y")()),s},ur=function(t,e,i,r,n){return!isNaN(t)&&typeof t!="object"?parseFloat(t)-n:mn(t)&&t.charAt(1)==="="?parseFloat(t.substr(2))*(t.charAt(0)==="-"?-1:1)+r-n:t==="max"?ke(e,i)-n:Math.min(ke(e,i),gn(t,e)[i]-n)},lr=function(){J=pn(),dn()&&J&&typeof document<"u"&&document.body&&(kt=window,Ft=document.body,vt=document.documentElement,hn=J.utils.toArray,J.config({autoKillThreshold:7}),cn=J.config(),_n=1)},Me={version:"3.12.5",name:"scrollTo",rawVars:1,register:function(t){J=t,lr()},init:function(t,e,i,r,n){_n||lr();var s=this,o=J.getProperty(t,"scrollSnapType");s.isWin=t===kt,s.target=t,s.tween=i,e=io(e,r,t,n),s.vars=e,s.autoKill=!!e.autoKill,s.getX=Oe(t,"x"),s.getY=Oe(t,"y"),s.x=s.xPrev=s.getX(),s.y=s.yPrev=s.getY(),Fe||(Fe=J.core.globals().ScrollTrigger),J.getProperty(t,"scrollBehavior")==="smooth"&&J.set(t,{scrollBehavior:"auto"}),o&&o!=="none"&&(s.snap=1,s.snapInline=t.style.scrollSnapType,t.style.scrollSnapType="none"),e.x!=null?(s.add(s,"x",s.x,ur(e.x,t,"x",s.x,e.offsetX||0),r,n),s._props.push("scrollTo_x")):s.skipX=1,e.y!=null?(s.add(s,"y",s.y,ur(e.y,t,"y",s.y,e.offsetY||0),r,n),s._props.push("scrollTo_y")):s.skipY=1},render:function(t,e){for(var i=e._pt,r=e.target,n=e.tween,s=e.autoKill,o=e.xPrev,a=e.yPrev,l=e.isWin,f=e.snap,h=e.snapInline,c,d,m,_,p;i;)i.r(t,i.d),i=i._next;c=l||!e.skipX?e.getX():o,d=l||!e.skipY?e.getY():a,m=d-a,_=c-o,p=cn.autoKillThreshold,e.x<0&&(e.x=0),e.y<0&&(e.y=0),s&&(!e.skipX&&(_>p||_<-p)&&c<ke(r,"x")&&(e.skipX=1),!e.skipY&&(m>p||m<-p)&&d<ke(r,"y")&&(e.skipY=1),e.skipX&&e.skipY&&(n.kill(),e.vars.onAutoKill&&e.vars.onAutoKill.apply(n,e.vars.onAutoKillParams||[]))),l?kt.scrollTo(e.skipX?c:e.x,e.skipY?d:e.y):(e.skipY||(r.scrollTop=e.y),e.skipX||(r.scrollLeft=e.x)),f&&(t===1||t===0)&&(d=r.scrollTop,c=r.scrollLeft,h?r.style.scrollSnapType=h:r.style.removeProperty("scroll-snap-type"),r.scrollTop=d+1,r.scrollLeft=c+1,r.scrollTop=d,r.scrollLeft=c),e.xPrev=e.x,e.yPrev=e.y,Fe&&Fe.update()},kill:function(t){var e=t==="scrollTo",i=this._props.indexOf(t);return(e||t==="scrollTo_x")&&(this.skipX=1),(e||t==="scrollTo_y")&&(this.skipY=1),i>-1&&this._props.splice(i,1),!this._props.length}};Me.max=ke;Me.getOffset=gn;Me.buildGetter=Oe;pn()&&J.registerPlugin(Me);const ro={"text-gray-200":"","w-screen":"","h-screen":""},no={key:0},so={flex:"","flex-col":"","justify-center":"","items-center":"","w-screen":"","h-screen":"","text-xl":"",italic:"",class:"bg-[#323443]"},oo={key:0},ao={key:1},uo={class:"bg-resolver-bg-1",flex:"","flex-col":"","justify-between":"","font-mono":"","w-screen":"","h-screen":"","overflow-hidden":""},lo=bi({__name:"Resolver",props:{dataSourceUrl:null},setup(u){const t=u;Be.registerPlugin(Me);const e=vn(Xi),{t:i}=Tn(),r=mt(!1),n=mt(!1),s=mt(!1),o=mt({}),a=mt([]),l=mt([]),f=mt({}),h=wn();function c(){const g=new Mn(o.value,a.value,l.value);g.buildResolver(),f.value=g}const{data:d,isError:m,error:_}=An(t.dataSourceUrl,h,!0);He(d,async()=>{var g,v,T;d.value===null||d.value===void 0||(o.value=kn((g=d.value)==null?void 0:g.contest),e.value=`${o.value.name} | ${Xi}`,a.value=On((v=d.value)==null?void 0:v.teams),l.value=Cn((T=d.value)==null?void 0:T.submissions),c(),r.value=!0)},{immediate:!0}),bn([" "],g=>{g.preventDefault()}),Re(["n"," "],()=>{if(!s.value){n.value=!0;return}f.value.next()},{dedupe:!0}),Re(["r"],()=>{f.value.rewind()},{dedupe:!0}),Re(["w"],()=>{f.value.currentIndex--}),Re(["s"],()=>{f.value.currentIndex++});const p=mt(null),x=mt(null);return Pn(()=>{He(()=>n.value,async()=>{if(!s.value&&n.value&&p.value){const g=p.value.scrollHeight,v=p.value.clientHeight;Be.to(p.value,{duration:Math.round(f.value.teams.length*.5),scrollTop:g-v,ease:"power1.inOut",onComplete:()=>{s.value=!0}})}},{immediate:!0}),He(()=>f.value.currentIndex,async()=>{if(s.value&&p.value&&x.value){const g=p.value.getBoundingClientRect(),v=g.height,T=x.value.getBoundingClientRect(),y=T.height,b=v-3*y,S=T.top-g.top-b;Be.to(p.value,{duration:2.5,ease:"power1.out",scrollTop:`+=${S}`})}},{flush:"post"})}),(g,v)=>{const T=Yn;return X(),$("div",ro,[C(r)?(X(),$("div",ao,[Q("div",null,[Q("div",uo,[Q("div",{ref_key:"resolverRef",ref:p,"h-full":"","overflow-y-auto":""},[se(Sn,{name:"resolver",tag:"ul"},{default:ai(()=>[(X(!0),$(Xt,null,fr(C(f).teams,(y,b)=>(X(),$("div",{key:y.id,ref_for:!0,ref:P=>{b===C(f).currentIndex&&(x.value=P)},class:oi([y.id===C(f).currentTeamId?"z-999":"z-0"]),"position-relative":""},[se(T,{index:b,team:y,resolver:C(f)},null,8,["index","team","resolver"])],2))),128))]),_:1})],512)])])])):(X(),$("div",no,[Q("div",so,[Q("div",null,pt(C(i)("common.loading"))+"... ",1),C(m)?(X(),$("div",oo,pt(C(_)),1)):$t("",!0)])]))])}}}),fo=Pi(lo,[["__scopeId","data-v-8e4ac916"]]),_o={key:0},ho={"mt-20":""},co={key:1},po=bi({__name:"CustomResolver",setup(u){const t=Dn();return(e,i)=>{const r=Rn,n=fo;return X(),$(Xt,null,[C(t).length===0?(X(),$("div",_o,[Q("div",ho,[se(r)])])):$t("",!0),C(t).length>0?(X(),$("div",co,[se(n,{"data-source-url":C(t)},null,8,["data-source-url"])])):$t("",!0)],64)}}}),yn={};function mo(u,t){const e=po;return X(),$("div",null,[se(e)])}typeof $i=="function"&&$i(yn);const Mo=Pi(yn,[["render",mo]]);export{Mo as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var at=r=>{throw TypeError(r)};var K=(r,t,s)=>t.has(r)||at("Cannot "+s);var e=(r,t,s)=>(K(r,t,"read from private field"),s?s.call(r):t.get(r)),b=(r,t,s)=>t.has(r)?at("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,s),l=(r,t,s,i)=>(K(r,t,"write to private field"),i?i.call(r,s):t.set(r,s),s),f=(r,t,s)=>(K(r,t,"access private method"),s);import{u as mt}from"./index-T0V7hFOw.js";import{a4 as gt,a5 as ot,a6 as w,a7 as G,a8 as B,a9 as Ot,aa as ht,ab as ut,ac as Ct,ad as St,ae as wt,af as ct,ag as It,ah as Tt,ai as Et,aj as Qt,g as vt,ak as Dt,al as Ft,C as W,am as lt,an as Ut,ao as dt,ap as jt}from"./index-DXoiO_9Q.js";import{a as xt}from"./constant-BloPFjTg.js";var v,n,k,m,D,M,T,S,N,A,L,F,U,E,_,u,$,Y,H,J,X,Z,q,tt,yt,bt,Pt=(bt=class extends gt{constructor(t,s){super();b(this,u);b(this,v);b(this,n);b(this,k);b(this,m);b(this,D);b(this,M);b(this,T);b(this,S);b(this,N);b(this,A);b(this,L);b(this,F);b(this,U);b(this,E);b(this,_,new Set);this.options=s,l(this,v,t),l(this,S,null),l(this,T,ot()),this.options.experimental_prefetchInRender||e(this,T).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(e(this,n).addObserver(this),ft(e(this,n),this.options)?f(this,u,$).call(this):this.updateResult(),f(this,u,X).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return et(e(this,n),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return et(e(this,n),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,f(this,u,Z).call(this),f(this,u,q).call(this),e(this,n).removeObserver(this)}setOptions(t,s){const i=this.options,o=e(this,n);if(this.options=e(this,v).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof w(this.options.enabled,e(this,n))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");f(this,u,tt).call(this),e(this,n).setOptions(this.options),i._defaulted&&!G(this.options,i)&&e(this,v).getQueryCache().notify({type:"observerOptionsUpdated",query:e(this,n),observer:this});const a=this.hasListeners();a&&pt(e(this,n),o,this.options,i)&&f(this,u,$).call(this),this.updateResult(s),a&&(e(this,n)!==o||w(this.options.enabled,e(this,n))!==w(i.enabled,e(this,n))||B(this.options.staleTime,e(this,n))!==B(i.staleTime,e(this,n)))&&f(this,u,Y).call(this);const c=f(this,u,H).call(this);a&&(e(this,n)!==o||w(this.options.enabled,e(this,n))!==w(i.enabled,e(this,n))||c!==e(this,E))&&f(this,u,J).call(this,c)}getOptimisticResult(t){const s=e(this,v).getQueryCache().build(e(this,v),t),i=this.createResult(s,t);return At(this,i)&&(l(this,m,i),l(this,M,this.options),l(this,D,e(this,n).state)),i}getCurrentResult(){return e(this,m)}trackResult(t,s){const i={};return Object.keys(t).forEach(o=>{Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),s==null||s(o),t[o])})}),i}trackProp(t){e(this,_).add(t)}getCurrentQuery(){return e(this,n)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const s=e(this,v).defaultQueryOptions(t),i=e(this,v).getQueryCache().build(e(this,v),s);return i.isFetchingOptimistic=!0,i.fetch().then(()=>this.createResult(i,s))}fetch(t){return f(this,u,$).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),e(this,m)))}createResult(t,s){var nt;const i=e(this,n),o=this.options,a=e(this,m),c=e(this,D),p=e(this,M),R=t!==i?t.state:e(this,k),{state:g}=t;let d={...g},Q=!1,h;if(s._optimisticResults){const O=this.hasListeners(),z=!O&&ft(t,s),Rt=O&&pt(t,i,s,o);(z||Rt)&&(d={...d,...wt(g.data,t.options)}),s._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:I,errorUpdatedAt:j,status:C}=d;if(s.select&&d.data!==void 0)if(a&&d.data===(c==null?void 0:c.data)&&s.select===e(this,N))h=e(this,A);else try{l(this,N,s.select),h=s.select(d.data),h=ct(a==null?void 0:a.data,h,s),l(this,A,h),l(this,S,null)}catch(O){l(this,S,O)}else h=d.data;if(s.placeholderData!==void 0&&h===void 0&&C==="pending"){let O;if(a!=null&&a.isPlaceholderData&&s.placeholderData===(p==null?void 0:p.placeholderData))O=a.data;else if(O=typeof s.placeholderData=="function"?s.placeholderData((nt=e(this,L))==null?void 0:nt.state.data,e(this,L)):s.placeholderData,s.select&&O!==void 0)try{O=s.select(O),l(this,S,null)}catch(z){l(this,S,z)}O!==void 0&&(C="success",h=ct(a==null?void 0:a.data,O,s),Q=!0)}e(this,S)&&(I=e(this,S),h=e(this,A),j=Date.now(),C="error");const x=d.fetchStatus==="fetching",P=C==="pending",V=C==="error",it=P&&x,rt=h!==void 0;return{status:C,fetchStatus:d.fetchStatus,isPending:P,isSuccess:C==="success",isError:V,isInitialLoading:it,isLoading:it,data:h,dataUpdatedAt:d.dataUpdatedAt,error:I,errorUpdatedAt:j,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>R.dataUpdateCount||d.errorUpdateCount>R.errorUpdateCount,isFetching:x,isRefetching:x&&!P,isLoadingError:V&&!rt,isPaused:d.fetchStatus==="paused",isPlaceholderData:Q,isRefetchError:V&&rt,isStale:st(t,s),refetch:this.refetch,promise:e(this,T)}}updateResult(t){const s=e(this,m),i=this.createResult(e(this,n),this.options);if(l(this,D,e(this,n).state),l(this,M,this.options),e(this,D).data!==void 0&&l(this,L,e(this,n)),G(i,s))return;if(this.options.experimental_prefetchInRender){const c=R=>{i.status==="error"?R.reject(i.error):i.data!==void 0&&R.resolve(i.data)},p=()=>{const R=l(this,T,i.promise=ot());c(R)},y=e(this,T);switch(y.status){case"pending":c(y);break;case"fulfilled":(i.status==="error"||i.data!==y.value)&&p();break;case"rejected":(i.status!=="error"||i.error!==y.reason)&&p();break}}l(this,m,i);const o={},a=()=>{if(!s)return!0;const{notifyOnChangeProps:c}=this.options,p=typeof c=="function"?c():c;if(p==="all"||!p&&!e(this,_).size)return!0;const y=new Set(p??e(this,_));return this.options.throwOnError&&y.add("error"),Object.keys(e(this,m)).some(R=>{const g=R;return e(this,m)[g]!==s[g]&&y.has(g)})};(t==null?void 0:t.listeners)!==!1&&a()&&(o.listeners=!0),f(this,u,yt).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&f(this,u,X).call(this)}},v=new WeakMap,n=new WeakMap,k=new WeakMap,m=new WeakMap,D=new WeakMap,M=new WeakMap,T=new WeakMap,S=new WeakMap,N=new WeakMap,A=new WeakMap,L=new WeakMap,F=new WeakMap,U=new WeakMap,E=new WeakMap,_=new WeakMap,u=new WeakSet,$=function(t){f(this,u,tt).call(this);let s=e(this,n).fetch(this.options,t);return t!=null&&t.throwOnError||(s=s.catch(Ot)),s},Y=function(){f(this,u,Z).call(this);const t=B(this.options.staleTime,e(this,n));if(ht||e(this,m).isStale||!ut(t))return;const i=Ct(e(this,m).dataUpdatedAt,t)+1;l(this,F,setTimeout(()=>{e(this,m).isStale||this.updateResult()},i))},H=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(e(this,n)):this.options.refetchInterval)??!1},J=function(t){f(this,u,q).call(this),l(this,E,t),!(ht||w(this.options.enabled,e(this,n))===!1||!ut(e(this,E))||e(this,E)===0)&&l(this,U,setInterval(()=>{(this.options.refetchIntervalInBackground||St.isFocused())&&f(this,u,$).call(this)},e(this,E)))},X=function(){f(this,u,Y).call(this),f(this,u,J).call(this,f(this,u,H).call(this))},Z=function(){e(this,F)&&(clearTimeout(e(this,F)),l(this,F,void 0))},q=function(){e(this,U)&&(clearInterval(e(this,U)),l(this,U,void 0))},tt=function(){const t=e(this,v).getQueryCache().build(e(this,v),this.options);if(t===e(this,n))return;const s=e(this,n);l(this,n,t),l(this,k,t.state),this.hasListeners()&&(s==null||s.removeObserver(this),t.addObserver(this))},yt=function(t){It.batch(()=>{t.listeners&&this.listeners.forEach(s=>{s(e(this,m))}),e(this,v).getQueryCache().notify({query:e(this,n),type:"observerResultsUpdated"})})},bt);function Mt(r,t){return w(t.enabled,r)!==!1&&r.state.data===void 0&&!(r.state.status==="error"&&t.retryOnMount===!1)}function ft(r,t){return Mt(r,t)||r.state.data!==void 0&&et(r,t,t.refetchOnMount)}function et(r,t,s){if(w(t.enabled,r)!==!1){const i=typeof s=="function"?s(r):s;return i==="always"||i!==!1&&st(r,t)}return!1}function pt(r,t,s,i){return(r!==t||w(i.enabled,r)===!1)&&(!s.suspense||r.state.status!=="error")&&st(r,s)}function st(r,t){return w(t.enabled,r)!==!1&&r.isStaleByTime(B(t.staleTime,r))}function At(r,t){return!G(r.getCurrentResult(),t)}function Lt(r=""){if(!Tt())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=Qt(r),s=Et(t);if(!s)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return s}function _t(r,t,s){const i=Lt(),o=vt(()=>{const h=Dt(t);typeof h.enabled=="function"&&(h.enabled=h.enabled());const I=i.defaultQueryOptions(h);return I._optimisticResults=i.isRestoring.value?"isRestoring":"optimistic",I}),a=new r(i,o.value),c=Ft(a.getCurrentResult());let p=()=>{};W(i.isRestoring,h=>{h||(p(),p=a.subscribe(I=>{lt(c,I)}))},{immediate:!0});const y=()=>{a.setOptions(o.value),lt(c,a.getCurrentResult())};W(o,y),Ut(()=>{p()});const R=(...h)=>(y(),c.refetch(...h)),g=()=>new Promise((h,I)=>{let j=()=>{};const C=()=>{if(o.value.enabled!==!1){a.setOptions(o.value);const x=a.getOptimisticResult(o.value);x.isStale?(j(),a.fetchOptimistic(o.value).then(h,P=>{dt(o.value.throwOnError,[P,a.getCurrentQuery()])?I(P):h(a.getCurrentResult())})):(j(),h(x))}};C(),j=W(o,C)});W(()=>c.error,h=>{if(c.isError&&!c.isFetching&&dt(o.value.throwOnError,[h,a.getCurrentQuery()]))throw h});const Q=jt(c);for(const h in c)typeof c[h]=="function"&&(Q[h]=c[h]);return Q.suspense=g,Q.refetch=R,Q}function $t(r,t){return _t(Pt,r)}function Gt(){return mt("data-source","",{transform:String})}function Yt(){return mt("battle-of-giants","",{transform:String})}const kt=3;async function Nt(r,t){const s=r.startsWith("/")?r.slice(1):r;let i=`${window.DATA_HOST}${s}`;r.startsWith("http")&&(i=r),i.endsWith("/")&&(i=i.slice(0,-1));const o=await fetch(`${i}/config.json?t=${t??0}`),a=await fetch(`${i}/team.json?t=${t??0}`),c=await fetch(`${i}/run.json?t=${t??0}`),{status:p,statusText:y}=o;if(p>=300||p<200)throw new Error(`fetch data failed. [status=${p}] [statusText=${y}]`);return Promise.all([o.json(),a.json(),c.json()]).then(g=>({contest:g[0],teams:g[1],submissions:g[2]}))}function Ht(r,t,s=!1){let i=3e4,o=i;const a=vt(()=>Math.floor(t.value.getTime()/1e3/10));return xt.value==="I18N"&&(i=10*1e3,o=i),s&&(i=Number.POSITIVE_INFINITY,o=!1),$t({queryKey:[r,a.value],queryFn:()=>Nt(r,a.value),retry:kt,staleTime:i,refetchInterval:o})}export{Yt as a,Gt as g,Ht as u};
|
|
File without changes
|
|
File without changes
|