/*! Anime.js - IIFE Version: v4.1.3 Plugin URL: https://animejs.com License: (c) 2025 Julian Garnier | Released under the MIT license !*/ var anime=function(e){"use strict";const t="undefined"!=typeof window,i=t?window:null,s=t?document:null,n={replace:0,none:1,blend:2},r=Symbol(),o=Symbol(),a=Symbol(),l=Symbol(),c=Symbol(),d=Symbol(),u=1e-11,h=1e12,p=1e3,f="",m=(()=>{const e=new Map;return e.set("x","translateX"),e.set("y","translateY"),e.set("z","translateZ"),e})(),g=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],v=g.reduce(((e,t)=>({...e,[t]:t+"("})),{}),y=()=>{},b=/(^#([\da-f]{3}){1,2}$)|(^#([\da-f]{4}){1,2}$)/i,_=/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i,w=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,x=/hsl\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*\)/i,T=/hsla\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,S=/[-+]?\d*\.?\d+(?:e[-+]?\d)?/gi,E=/^([-+]?\d*\.?\d+(?:e[-+]?\d+)?)([a-z]+|%)$/i,C=/([a-z])([A-Z])/g,M=/(\w+)(\([^)]+\)+)/g,k=/(\*=|\+=|-=)/,A={id:null,keyframes:null,playbackEase:null,playbackRate:1,frameRate:120,loop:0,reversed:!1,alternate:!1,autoplay:!0,duration:p,delay:0,loopDelay:0,ease:"out(2)",composition:n.replace,modifier:e=>e,onBegin:y,onBeforeUpdate:y,onUpdate:y,onLoop:y,onPause:y,onComplete:y,onRender:y},I={current:null,root:s},O={defaults:A,precision:4,timeScale:1,tickThreshold:200},L={version:"4.1.3",engine:null};t&&(i.AnimeJS||(i.AnimeJS=[]),i.AnimeJS.push(L));const P=e=>e.replace(C,"$1-$2").toLowerCase(),z=(e,t)=>0===e.indexOf(t),D=Date.now,$=Array.isArray,B=e=>e&&e.constructor===Object,R=e=>"number"==typeof e&&!isNaN(e),F=e=>"string"==typeof e,j=e=>"function"==typeof e,N=e=>void 0===e,H=e=>N(e)||null===e,W=e=>t&&e instanceof SVGElement,q=e=>b.test(e),Y=e=>z(e,"rgb"),X=e=>z(e,"hsl"),V=e=>!O.defaults.hasOwnProperty(e),G=e=>F(e)?parseFloat(e):e,U=Math.pow,Q=Math.sqrt,Z=Math.sin,K=Math.cos,J=Math.abs,ee=Math.exp,te=Math.ceil,ie=Math.floor,se=Math.asin,ne=Math.max,re=Math.atan2,oe=Math.PI,ae=Math.round,le=(e,t,i)=>ei?i:e,ce={},de=(e,t)=>{if(t<0)return e;if(!t)return ae(e);let i=ce[t];return i||(i=ce[t]=10**t),ae(e*i)/i},ue=(e,t)=>$(t)?t.reduce(((t,i)=>J(i-e)e+(t-e)*i,pe=(e,t,i)=>{const s=10**(i||0);return ie((Math.random()*(t-e+1/s)+e)*s)/s},fe=e=>{let t,i,s=e.length;for(;s;)i=pe(0,--s),t=e[s],e[s]=e[i],e[i]=t;return e},me=e=>e===1/0?h:e===-1/0?-1e12:e,ge=e=>e<=u?u:me(de(e,11)),ve=e=>$(e)?[...e]:e,ye=(e,t)=>{const i={...e};for(let s in t){const n=e[s];i[s]=N(n)?t[s]:n}return i},be=(e,t,i,s="_prev",n="_next")=>{let r=e._head,o=n;for(i&&(r=e._tail,o=s);r;){const e=r[o];t(r),r=e}},_e=(e,t,i="_prev",s="_next")=>{const n=t[i],r=t[s];n?n[s]=r:e._head=r,r?r[i]=n:e._tail=n,t[i]=null,t[s]=null},we=(e,t,i,s="_prev",n="_next")=>{let r=e._tail;for(;r&&i&&i(r,t);)r=r[s];const o=r?r[n]:e._head;r?r[n]=t:e._head=t,o?o[s]=t:e._tail=t,t[s]=r,t[n]=o},xe=e=>{let t;return(...i)=>{let s,n,r,o;t&&(s=t.currentIteration,n=t.iterationProgress,r=t.reversed,o=t._alternate,t.revert());const a=e(...i);return a&&!j(a)&&a.revert&&(t=a),N(n)||(t.currentIteration=s,t.iterationProgress=(o&&s%2?!r:r)?1-n:n),a||y}};class Te{constructor(e=0){this.deltaTime=0,this._currentTime=e,this._elapsedTime=e,this._startTime=e,this._lastTime=e,this._scheduledTime=0,this._frameDuration=de(p/120,0),this._fps=120,this._speed=1,this._hasChildren=!1,this._head=null,this._tail=null}get fps(){return this._fps}set fps(e){const t=this._frameDuration,i=+e,s=i{const o=e.parent,a=e.duration,c=e.completed,d=e.iterationDuration,h=e.iterationCount,p=e._currentIteration,m=e._loopDelay,g=e._reversed,y=e._alternate,b=e._hasChildren,_=e._delay,w=e._currentTime,x=_+d,T=t-_,S=le(w,-_,a),E=le(T,-_,a),C=T-w,M=E>0,k=E>=a,A=a<=u,I=2===r;let L=0,P=T,z=0;if(h>1){const t=~~(E/(d+(k?0:m)));e._currentIteration=le(t,0,h),k&&e._currentIteration--,L=e._currentIteration%2,P=E%(d+m)||0}const D=g^(y&&L),$=e._ease;let B=k?D?0:a:D?d-P:P;$&&(B=d*$(B/d)||0);const R=(o?o.backwards:T=_&&t<=x||t<=_&&S>_||t>=x&&S!==a)||B>=x&&S!==a||B<=_&&S>0||t<=S&&S===a&&c||k&&!c&&A){if(M&&(e.computeDeltaTime(S),i||e.onBeforeUpdate(e)),!b){const t=I||(R?-1*C:C)>=O.tickThreshold,r=e._offset+(o?o._offset:0)+_+B;let a,c,d,u,h=e._head,p=0;for(;h;){const e=h._composition,i=h._currentTime,o=h._changeDuration,m=h._absoluteStartTime+h._changeDuration,g=h._nextRep,y=h._prevRep,b=e!==n.none;if((t||(i!==o||r<=m+(g?g._delay:0))&&(0!==i||r>=h._absoluteStartTime))&&(!b||!h._isOverridden&&(!h._isOverlapped||r<=m)&&(!g||g._isOverridden||r<=g._absoluteStartTime)&&(!y||y._isOverridden||r>=y._absoluteStartTime+y._changeDuration+h._delay))){const t=h._currentTime=le(B-h._startTime,0,o),i=h._ease(t/h._updateDuration),r=h._modifier,f=h._valueType,m=h._tweenType,g=0===m,v=0===f,y=v&&g||0===i||1===i?-1:O.precision;let _,w;if(v)_=w=r(de(he(h._fromNumber,h._toNumber,i),y));else if(1===f)w=r(de(he(h._fromNumber,h._toNumber,i),y)),_=`${w}${h._unit}`;else if(2===f){const e=h._fromNumbers,t=h._toNumbers,s=de(le(r(he(e[0],t[0],i)),0,255),0),n=de(le(r(he(e[1],t[1],i)),0,255),0),o=de(le(r(he(e[2],t[2],i)),0,255),0),a=le(r(de(he(e[3],t[3],i),y)),0,1);if(_=`rgba(${s},${n},${o},${a})`,b){const e=h._numbers;e[0]=s,e[1]=n,e[2]=o,e[3]=a}}else if(3===f){_=h._strings[0];for(let e=0,t=h._toNumbers.length;e=a&&!c||R&&T<=u&&c)&&(e.onComplete(e),e.completed=!R):M&&k?h===1/0?e._startTime+=e.duration:e._currentIteration>=h-1&&(e.paused=!0,c||b||(e.completed=!0,i||o&&(R||!o.began)||(e.onComplete(e),e._resolve(e)))):e.completed=!1,z},Ee=(e,t,i,s,n)=>{const r=e._currentIteration;if(Se(e,t,i,s,n),e._hasChildren){const o=e,a=o.backwards,l=s?t:o._iterationTime,c=D();let d=0,h=!0;if(!s&&o._currentIteration!==r){const e=o.iterationDuration;be(o,(t=>{if(a){const s=t.duration,n=t._offset+t._delay;i||!(s<=u)||n&&n+s!==e||t.onComplete(t)}else!t.completed&&!t.backwards&&t._currentTime{const t=de((l-e._offset)*e._speed,12),r=e._fps=o.duration&&(o.paused=!0,o.completed||(o.completed=!0,i||(o.onComplete(o),o._resolve(o))))}},Ce={animation:null,update:y},Me=t?requestAnimationFrame:setImmediate,ke=t?cancelAnimationFrame:clearImmediate;class Ae extends Te{constructor(e){super(e),this.useDefaultMainLoop=!0,this.pauseOnDocumentHidden=!0,this.defaults=A,this.paused=!0,this.reqId=0}update(){const e=this._currentTime=D();if(this.requestTick(e)){this.computeDeltaTime(e);const t=this._speed,i=this._fps;let s=this._head;for(;s;){const n=s._next;s.paused?(_e(this,s),this._hasChildren=!!this._tail,s._running=!1,s.completed&&!s._cancelled&&s.cancel()):Ee(s,(e-s._startTime)*s._speed*t,0,0,s._fpse.resetTime())),this.wake()}get speed(){return this._speed*(1===O.timeScale?1:p)}set speed(e){this._speed=e*O.timeScale,be(this,(e=>e.speed=e._speed))}get timeUnit(){return 1===O.timeScale?"ms":"s"}set timeUnit(e){const t="s"===e,i=t?.001:1;if(O.timeScale!==i){O.timeScale=i,O.tickThreshold=200*i;const e=t?.001:p;this.defaults.duration*=e,this._speed*=e}}get precision(){return O.precision}set precision(e){O.precision=e}}const Ie=(()=>{const e=new Ae(D());return t&&(L.engine=e,s.addEventListener("visibilitychange",(()=>{e.pauseOnDocumentHidden&&(s.hidden?e.pause():e.resume())}))),e})(),Oe=()=>{Ie._head?(Ie.reqId=Me(Oe),Ie.update()):Ie.reqId=0},Le=()=>(ke(Ie.reqId),Ie.reqId=0,Ie);function Pe(e){const t=F(e)?I.root.querySelectorAll(e):e;if(t instanceof NodeList||t instanceof HTMLCollection)return t}function ze(e){if(H(e))return[];if(!t)return $(e)&&e.flat(1/0)||[e];if($(e)){const t=e.flat(1/0),i=[];for(let e=0,s=t.length;e{const t=ze(e)[0];if(t&&W(t))return t},Be=(e,t,i=0)=>e.getPointAtLength(t+i>=1?t+i:0),Re=(e,t)=>i=>{const s=+e.getTotalLength(),n=i[a],r=e.getCTM();return{from:0,to:s,modifier:i=>{if("a"===t){const t=Be(e,i,-1),s=Be(e,i,1);return 180*re(s.y-t.y,s.x-t.x)/oe}{const s=Be(e,i,0);return"x"===t?n||!r?s.x:s.x*r.a+s.y*r.c+r.e:n||!r?s.y:s.x*r.b+s.y*r.d+r.f}}}},Fe=["opacity","rotate","overflow","color"],je={morphTo:(e,t=.33)=>i=>{const s=$e(e);if(!s)return;const n="path"===i.tagName,r=n?" ":",",o=i[c];o&&i.setAttribute(n?"d":"points",o);let a="",l="";if(t){const e=i.getTotalLength(),o=s.getTotalLength(),c=Math.max(Math.ceil(e*t),Math.ceil(o*t));for(let t=0;t{const t=$e(e);if(t)return{translateX:Re(t,"x"),translateY:Re(t,"y"),rotate:Re(t,"a")}},createDrawable:(e,t=0,i=0)=>ze(e).map((e=>((e,t,i)=>{const s=getComputedStyle(e),n=s.strokeLinecap,r="non-scaling-stroke"===s.vectorEffect?e:null;let o=n;const a=new Proxy(e,{get(e,t){const i=e[t];return t===d?e:"setAttribute"===t?(...t)=>{if("draw"===t[0]){const i=t[1].split(" "),s=+i[0],a=+i[1],l=(e=>{let t=1;if(e&&e.getCTM){const i=e.getCTM();i&&(t=(Q(i.a*i.a+i.b*i.b)+Q(i.c*i.c+i.d*i.d))/2)}return t})(r),c=-1e3*s*l,d=1e3*a*l+c,u=1e3*l+(0===s&&1===a||1===s&&0===a?0:10*l)-d;if("butt"!==n){const t=s===a?"butt":n;o!==t&&(e.style.strokeLinecap=`${t}`,o=t)}e.setAttribute("stroke-dashoffset",`${c}`),e.setAttribute("stroke-dasharray",`${d} ${u}`)}return Reflect.apply(i,e,t)}:j(i)?(...t)=>Reflect.apply(i,e,t):i}});return"1000"!==e.getAttribute("pathLength")&&(e.setAttribute("pathLength","1000"),a.setAttribute("draw",`${t} ${i}`)),a})(e,t,i)))},Ne=(e,t,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e),He=(e,t)=>N(e)?t:e,We=(e,t,i,s,n)=>{if(j(e)){const r=()=>{const n=e(t,i,s);return isNaN(+n)?n||0:+n};return n&&(n.func=r),r()}return e},qe=(e,t)=>e[o]?e[a]&&((e,t)=>{if(Fe.includes(t))return!1;if(e.getAttribute(t)||t in e){if("scale"===t){const t=e.parentNode;return t&&"filter"===t.tagName}return!0}})(e,t)?1:g.includes(t)||m.get(t)?3:z(t,"--")?4:t in e.style?2:t in e?0:1:0,Ye=(e,t,i)=>{const s=e.style[t];s&&i&&(i[t]=s);const n=s||getComputedStyle(e[d]||e).getPropertyValue(t);return"auto"===n?"0":n},Xe=(e,t,i,s)=>{const n=N(i)?qe(e,t):i;return 0===n?e[t]||0:1===n?e.getAttribute(t):3===n?((e,t,i)=>{const s=e.style.transform;let n;if(s){const r=e[l];let o;for(;o=M.exec(s);){const e=o[1],s=o[2].slice(1,-1);r[e]=s,e===t&&(n=s,i&&(i[t]=s))}}return s&&!N(n)?n:z(t,"scale")?"1":z(t,"rotate")||z(t,"skew")?"0deg":"0px"})(e,t,s):4===n?Ye(e,t,s).trimStart():Ye(e,t,s)},Ve=(e,t,i)=>"-"===i?e-t:"+"===i?e+t:e*t,Ge=(e,t)=>{if(t.t=0,t.n=0,t.u=null,t.o=null,t.d=null,t.s=null,!e)return t;const i=+e;if(isNaN(i)){let i=e;"="===i[1]&&(t.o=i[0],i=i.slice(2));const r=!i.includes(" ")&&E.exec(i);if(r)return t.t=1,t.n=+r[1],t.u=r[2],t;if(t.o)return t.n=+i,t;if(q(n=i)||Y(n)||X(n))return t.t=2,t.d=Y(s=i)?(e=>{const t=_.exec(e)||w.exec(e),i=N(t[4])?1:+t[4];return[+t[1],+t[2],+t[3],i]})(s):q(s)?(e=>{const t=e.length,i=4===t||5===t;return[+("0x"+e[1]+e[i?1:2]),+("0x"+e[i?2:3]+e[i?2:4]),+("0x"+e[i?3:5]+e[i?3:6]),5===t||9===t?+(+("0x"+e[i?4:7]+e[i?4:8])/255).toFixed(3):1]})(s):X(s)?(e=>{const t=x.exec(e)||T.exec(e),i=+t[1]/360,s=+t[2]/100,n=+t[3]/100,r=N(t[4])?1:+t[4];let o,a,l;if(0===s)o=a=l=n;else{const e=n<.5?n*(1+s):n+s-n*s,t=2*n-e;o=de(255*Ne(t,e,i+1/3),0),a=de(255*Ne(t,e,i),0),l=de(255*Ne(t,e,i-1/3),0)}return[o,a,l,r]})(s):[0,0,0,1],t;{const e=i.match(S);return t.t=3,t.d=e?e.map(Number):[],t.s=i.split(S)||[],t}}var s,n;return t.n=i,t},Ue=(e,t)=>(t.t=e._valueType,t.n=e._toNumber,t.u=e._unit,t.o=null,t.d=ve(e._toNumbers),t.s=ve(e._strings),t),Qe={t:0,n:0,u:null,o:null,d:null,s:null},Ze={_rep:new WeakMap,_add:new Map},Ke=(e,t,i="_rep")=>{const s=Ze[i];let n=s.get(e);return n||(n={},s.set(e,n)),n[t]?n[t]:n[t]={_head:null,_tail:null}},Je=(e,t)=>e._isOverridden||e._absoluteStartTime>t._absoluteStartTime,et=e=>{e._isOverlapped=1,e._isOverridden=1,e._changeDuration=u,e._currentTime=u},tt=(e,t)=>{const i=e._composition;if(i===n.replace){const i=e._absoluteStartTime;we(t,e,Je,"_prevRep","_nextRep");const s=e._prevRep;if(s){const t=s.parent,n=s._absoluteStartTime+s._changeDuration;if(e.parent.id!==t.id&&t.iterationCount>1&&n+(t.duration-t.iterationDuration)>i){et(s);let e=s._prevRep;for(;e&&e.parent.id===t.id;)et(e),e=e._prevRep}const r=i-e._delay;if(n>r){const e=s._startTime,t=n-(e+s._updateDuration),i=de(r-t-e,12);s._changeDuration=i,s._currentTime=i,s._isOverlapped=1,i{e._isOverlapped||(o=!1)})),o){const e=t.parent;if(e){let i=!0;be(e,(e=>{e!==t&&be(e,(e=>{e._isOverlapped||(i=!1)}))})),i&&e.cancel()}else t.cancel()}}}else if(i===n.blend){const t=Ke(e.target,e.property,"_add"),i=(e=>{let t=Ce.animation;return t||(t={duration:u,computeDeltaTime:y,_offset:0,_delay:0,_head:null,_tail:null},Ce.animation=t,Ce.update=()=>{e.forEach((e=>{for(let t in e){const i=e[t],s=i._head;if(s){const e=s._valueType,t=3===e||2===e?ve(s._fromNumbers):null;let n=s._fromNumber,r=i._tail;for(;r&&r!==s;){if(t)for(let e=0,i=r._numbers.length;e{e._fromNumbers[i]=s._fromNumbers[i]-t,e._toNumbers[i]=0})),s._fromNumbers=t}we(t,e,null,"_prevAdd","_nextAdd")}return e},it=e=>{const t=e._composition;if(t!==n.none){const i=e.target,s=e.property,r=Ze._rep.get(i)[s];if(_e(r,e,"_prevRep","_nextRep"),t===n.blend){const t=Ze._add,n=t.get(i);if(!n)return;const r=n[s],o=Ce.animation;_e(r,e,"_prevAdd","_nextAdd");const a=r._head;if(a&&a===r._tail){_e(r,a,"_prevAdd","_nextAdd"),_e(o,a);let e=!0;for(let t in n)if(n[t]._head){e=!1;break}e&&t.delete(i)}}}return e},st=e=>(e.paused=!0,e.began=!1,e.completed=!1,e),nt=e=>e._cancelled?(e._hasChildren?be(e,nt):be(e,(e=>{e._composition!==n.none&&tt(e,Ke(e.target,e.property))})),e._cancelled=0,e):e;let rt=0;class ot extends Te{constructor(e={},t=null,i=0){super(0);const{id:s,delay:n,duration:r,reversed:o,alternate:a,loop:l,loopDelay:c,autoplay:d,frameRate:h,playbackRate:p,onComplete:f,onLoop:m,onPause:g,onBegin:v,onBeforeUpdate:b,onUpdate:_}=e;I.current&&I.current.register(this);const w=t?0:Ie._elapsedTime,x=t?t.defaults:O.defaults,T=j(n)||N(n)?x.delay:+n,S=j(r)||N(r)?1/0:+r,E=He(l,x.loop),C=He(c,x.loopDelay),M=!0===E||E===1/0||E<0?1/0:E+1;let k=0;t?k=i:(Ie.reqId||Ie.requestTick(D()),k=(Ie._elapsedTime-Ie._startTime)*O.timeScale),this.id=N(s)?++rt:s,this.parent=t,this.duration=me((S+C)*M-C)||u,this.backwards=!1,this.paused=!0,this.began=!1,this.completed=!1,this.onBegin=v||x.onBegin,this.onBeforeUpdate=b||x.onBeforeUpdate,this.onUpdate=_||x.onUpdate,this.onLoop=m||x.onLoop,this.onPause=g||x.onPause,this.onComplete=f||x.onComplete,this.iterationDuration=S,this.iterationCount=M,this._autoplay=!t&&He(d,x.autoplay),this._offset=k,this._delay=T,this._loopDelay=C,this._iterationTime=0,this._currentIteration=0,this._resolve=y,this._running=!1,this._reversed=+He(o,x.reversed),this._reverse=this._reversed,this._cancelled=0,this._alternate=He(a,x.alternate),this._prev=null,this._next=null,this._elapsedTime=w,this._startTime=w,this._lastTime=w,this._fps=He(h,x.frameRate),this._speed=He(p,x.playbackRate)}get cancelled(){return!!this._cancelled}set cancelled(e){e?this.cancel():this.reset(1).play()}get currentTime(){return le(de(this._currentTime,O.precision),-this._delay,this.duration)}set currentTime(e){const t=this.paused;this.pause().seek(+e),t||this.resume()}get iterationCurrentTime(){return de(this._iterationTime,O.precision)}set iterationCurrentTime(e){this.currentTime=this.iterationDuration*this._currentIteration+e}get progress(){return le(de(this._currentTime/this.duration,10),0,1)}set progress(e){this.currentTime=this.duration*e}get iterationProgress(){return le(de(this._iterationTime/this.iterationDuration,10),0,1)}set iterationProgress(e){const t=this.iterationDuration;this.currentTime=t*this._currentIteration+t*e}get currentIteration(){return this._currentIteration}set currentIteration(e){this.currentTime=this.iterationDuration*le(+e,0,this.iterationCount-1)}get reversed(){return!!this._reversed}set reversed(e){e?this.reverse():this.play()}get speed(){return super.speed}set speed(e){super.speed=e,this.resetTime()}reset(e=0){return nt(this),this._reversed&&!this._reverse&&(this.reversed=!1),this._iterationTime=this.iterationDuration,Ee(this,0,1,e,2),st(this),this._hasChildren&&be(this,st),this}init(e=0){this.fps=this._fps,this.speed=this._speed,!e&&this._hasChildren&&Ee(this,this.duration,1,e,2),this.reset(e);const t=this._autoplay;return!0===t?this.resume():t&&!N(t.linked)&&t.link(this),this}resetTime(){const e=1/(this._speed*Ie._speed);return this._startTime=D()-(this._currentTime+this._delay)*e,this}pause(){return this.paused||(this.paused=!0,this.onPause(this)),this}resume(){return this.paused?(this.paused=!1,this.duration<=u&&!this._hasChildren?Ee(this,u,0,0,2):(this._running||(we(Ie,this),Ie._hasChildren=!0,this._running=!0),this.resetTime(),this._startTime-=12,Ie.wake()),this):this}restart(){return this.reset(0).resume()}seek(e,t=0,i=0){nt(this),this.completed=!1;const s=this.paused;return this.paused=!0,Ee(this,e+this._delay,~~t,~~i,1),s?this:this.resume()}alternate(){const e=this._reversed,t=this.iterationCount,i=this.iterationDuration,s=t===1/0?ie(h/i):t;return this._reversed=+(!this._alternate||s%2?!e:e),t===1/0?this.iterationProgress=this._reversed?1-this.iterationProgress:this.iterationProgress:this.seek(i*s-this._currentTime),this.resetTime(),this}play(){return this._reversed&&this.alternate(),this.resume()}reverse(){return this._reversed||this.alternate(),this.resume()}cancel(){return this._hasChildren?be(this,(e=>e.cancel()),!0):be(this,it),this._cancelled=1,this.pause()}stretch(e){const t=this.duration,i=ge(e);if(t===i)return this;const s=e/t,n=e<=u;return this.duration=n?u:i,this.iterationDuration=n?u:ge(this.iterationDuration*s),this._offset*=s,this._delay*=s,this._loopDelay*=s,this}revert(){Ee(this,0,1,0,1);const e=this._autoplay;return e&&e.linked&&e.linked===this&&e.revert(),this.cancel()}complete(){return this.seek(this.duration).cancel()}then(e=y){const t=this.then,i=()=>{this.then=null,e(this),this.then=t,this._resolve=y};return new Promise((e=>(this._resolve=()=>e(i()),this.completed&&this._resolve(),this)))}}const at=e=>e,lt=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e,ct=(e=.5,t=0,i=.5,s=1)=>e===t&&i===s?at:n=>0===n||1===n?n:lt(((e,t,i)=>{let s,n,r=0,o=1,a=0;do{n=r+(o-r)/2,s=lt(n,t,i)-e,s>0?o=n:r=n}while(J(s)>1e-7&&++a<100);return n})(n,e,i),t,s),dt=(e=10,t)=>{const i=t?te:ie;return t=>i(le(t,0,1)*e)*(1/e)},ut=(...e)=>{const t=e.length;if(!t)return at;const i=t-1,s=e[0],n=e[i],r=[0],o=[G(s)];for(let t=1;t{const i=[0],s=e-1;for(let e=1;et=>U(t,+e),gt={[f]:mt,Quad:mt(2),Cubic:mt(3),Quart:mt(4),Quint:mt(5),Sine:e=>1-K(e*pt),Circ:e=>1-Q(1-e*e),Expo:e=>e?U(2,10*e-10):0,Bounce:e=>{let t,i=4;for(;e<((t=U(2,--i))-1)/11;);return 1/U(4,3-i)-7.5625*U((3*t-2)/22-e,2)},Back:(e=1.70158)=>t=>(+e+1)*t*t*t-+e*t*t,Elastic:(e=1,t=.3)=>{const i=le(+e,1,10),s=le(+t,u,2),n=s/ft*se(1/i),r=ft/s;return e=>0===e||1===e?e:-i*U(2,-10*(1-e))*Z((1-e-n)*r)}},vt={in:e=>t=>e(t),out:e=>t=>1-e(1-t),inOut:e=>t=>t<.5?e(2*t)/2:1-e(-2*t+2)/2,outIn:e=>t=>t<.5?(1-e(1-2*t))/2:(e(2*t-1)+1)/2},yt=(e,t,i)=>{if(i[e])return i[e];if(e.indexOf("(")<=-1){const s=vt[e]||e.includes("Back")||e.includes("Elastic")?t[e]():t[e];return s?i[e]=s:at}{const s=e.slice(0,-1).split("("),n=t[s[0]];return n?i[e]=n(...s[1].split(",")):at}},bt=(()=>{const e={linear:ut,irregular:ht,steps:dt,cubicBezier:ct};for(let t in vt)for(let i in gt){const s=gt[i],n=vt[t];e[t+i]=i===f||"Back"===i||"Elastic"===i?(e,t)=>n(s(e,t)):n(s)}return e})(),_t={linear:at},wt=e=>j(e)?e:F(e)?yt(e,bt,_t):at,xt={},Tt=(e,t,i)=>{if(3===i)return m.get(e)||e;if(2===i||1===i&&W(t)&&e in t.style){const t=xt[e];if(t)return t;{const t=e?P(e):e;return xt[e]=t,t}}return e},St={deg:1,rad:180/oe,turn:360},Et={},Ct=(e,t,i,n=!1)=>{const r=t.u,o=t.n;if(1===t.t&&r===i)return t;const a=o+r+i,l=Et[a];if(N(l)||n){let n;if(r in St)n=o*St[r]/St[i];else{const t=100,a=e.cloneNode(),l=e.parentNode,c=l&&l!==s?l:s.body;c.appendChild(a);const d=a.style;d.width=t+r;const u=a.offsetWidth||t;d.width=t+i;const h=u/(a.offsetWidth||t);c.removeChild(a),n=h*o}t.n=n,Et[a]=n}else t.n=l;return t.t,t.u=i,t},Mt=e=>{if(e._hasChildren)be(e,Mt,!0);else{const t=e;t.pause(),be(t,(e=>{const i=e.property,s=e.target;if(s[o]){const n=s.style,r=t._inlineStyles[i];if(3===e._tweenType){const t=s[l];if(N(r)||r===f?delete t[i]:t[i]=r,e._renderTransforms)if(Object.keys(t).length){let e=f;for(let i in t)e+=v[i]+t[i]+") ";n.transform=e}else n.removeProperty("transform")}else N(r)||r===f?n.removeProperty(i):n[i]=r;t._tail===e&&t.targets.forEach((e=>{e.getAttribute&&e.getAttribute("style")===f&&e.removeAttribute("style")}))}}))}return e},kt={t:0,n:0,u:null,o:null,d:null,s:null},At={t:0,n:0,u:null,o:null,d:null,s:null},It={func:null},Ot=[null],Lt=[null,null],Pt={to:null};let zt,Dt,$t=0;class Bt extends ot{constructor(e,t,i,s,r=!1,o=0,a=0){super(t,i,s);const l=De(e),c=l.length,d=t.keyframes,h=d?ye(((e,t)=>{const i={};if($(e)){const t=[].concat(...e.map((e=>Object.keys(e)))).filter(V);for(let s=0,n=t.length;s{const t={};for(let i in e){const s=e[i];V(i)?i===n&&(t.to=s):t[i]=s}return t}));i[n]=r}}else{const s=He(t.duration,O.defaults.duration),n=Object.keys(e).map((t=>({o:parseFloat(t)/100,p:e[t]}))).sort(((e,t)=>e.o-t.o));n.forEach((e=>{const t=e.o,n=e.p;for(let e in n)if(V(e)){let r=i[e];r||(r=i[e]=[]);const o=t*s;let a=r.length,l=r[a-1];const c={to:n[e]};let d=0;for(let e=0;e=p?n.none:N(b)?w.composition:b,I={},L=this._offset+(i?i._offset:0);let P=NaN,z=NaN,D=0,F=0;for(let e=0;e2&&t?(zt=[],l.forEach(((e,t)=>{t?1===t?(Lt[1]=e,zt.push(Lt)):zt.push(e):Lt[0]=e}))):zt=l}else Ot[0]=l,zt=Ot;let m=null,g=null,v=NaN,y=0,b=0;for(let e=zt.length;b1?We(C,t,s,d)/e:C),t,s,d),x=We(He(Dt.delay,b?0:M),t,s,d),T=We(He(Dt.composition,A),t,s,d),S=R(T)?T:n[T],O=Dt.modifier||k,P=!N(h),z=!N(c),j=$(c),H=j||P&&z,W=g?y+x:x,q=de(L+W,12);F||!P&&!j||(F=1);let Y=g;if(S!==n.none){m||(m=Ke(t,a));let e=m._head;for(;e&&!e._isOverridden&&e._absoluteStartTime<=q;)if(Y=e,e=e._nextRep,e&&e._absoluteStartTime>=q)for(;e;)et(e),e=e._nextRep}if(H?(Ge(j?We(c[0],t,s,d):h,kt),Ge(j?We(c[1],t,s,d,It):c,At),0===kt.t&&(Y?1===Y._valueType&&(kt.t=1,kt.u=Y._unit):(Ge(Xe(t,a,o,I),Qe),1===Qe.t&&(kt.t=1,kt.u=Qe.u)))):(z?Ge(c,At):g?Ue(g,At):Ge(i&&Y&&Y.parent.parent===i?Y._value:Xe(t,a,o,I),At),P?Ge(h,kt):g?Ue(g,kt):Ge(i&&Y&&Y.parent.parent===i?Y._value:Xe(t,a,o,I),kt)),kt.o&&(kt.n=Ve(Y?Y._toNumber:Ge(Xe(t,a,o,I),Qe).n,kt.n,kt.o)),At.o&&(At.n=Ve(kt.n,At.n,At.o)),kt.t!==At.t)if(3===kt.t||3===At.t){const e=3===kt.t?kt:At,t=3===kt.t?At:kt;t.t=3,t.s=ve(e.s),t.d=e.d.map((()=>t.n))}else if(1===kt.t||1===At.t){const e=1===kt.t?kt:At,t=1===kt.t?At:kt;t.t=1,t.u=e.u}else if(2===kt.t||2===At.t){const e=2===kt.t?kt:At,t=2===kt.t?At:kt;t.t=2,t.s=e.s,t.d=[0,0,0,1]}if(kt.u!==At.u){let e=At.u?kt:At;e=Ct(t,e,At.u?At.u:kt.u,!1)}if(At.d&&kt.d&&At.d.length!==kt.d.length){const e=kt.d.length>At.d.length?kt:At,t=e===kt?At:kt;t.d=e.d.map(((e,i)=>N(t.d[i])?0:t.d[i])),t.s=ve(e.s)}const X=de(+w||u,12),V={parent:this,id:$t++,property:a,target:t,_value:null,_func:It.func,_ease:wt(_),_fromNumbers:ve(kt.d),_toNumbers:ve(At.d),_strings:ve(At.s),_fromNumber:kt.n,_toNumber:At.n,_numbers:ve(kt.d),_number:kt.n,_unit:At.u,_modifier:O,_currentTime:0,_startTime:W,_delay:+x,_updateDuration:X,_changeDuration:X,_absoluteStartTime:q,_tweenType:o,_valueType:At.t,_composition:S,_isOverlapped:0,_isOverridden:0,_renderTransforms:0,_prevRep:null,_nextRep:null,_prevAdd:null,_nextAdd:null,_prev:null,_next:null};S!==n.none&&tt(V,m),isNaN(v)&&(v=V._startTime),y=de(W+X,12),g=V,D++,we(this,V)}(isNaN(z)||vP)&&(P=y),3===o&&(p=D-b,f=D)}if(!isNaN(p)){let e=0;be(this,(t=>{e>=p&&e{e.id===t.id&&(e._renderTransforms=1)}))),e++}))}}c||console.warn("No target found. Make sure the element you're trying to animate is accessible before creating your animation."),z?(be(this,(e=>{e._startTime-e._delay||(e._delay-=z),e._startTime-=z})),P-=z):z=0,P||(P=u,this.iterationCount=0),this.targets=l,this.duration=P===u?u:me((P+this._loopDelay)*this.iterationCount-this._loopDelay)||u,this.onRender=_||w.onRender,this._ease=T,this._delay=z,this.iterationDuration=P,this._inlineStyles=I,!this._autoplay&&F&&this.onRender(this)}stretch(e){const t=this.duration;if(t===ge(e))return this;const i=e/t;return be(this,(e=>{e._updateDuration=ge(e._updateDuration*i),e._changeDuration=ge(e._changeDuration*i),e._currentTime*=i,e._startTime*=i,e._absoluteStartTime*=i})),super.stretch(e)}refresh(){return be(this,(e=>{const t=e._func;if(t){const i=Xe(e.target,e.property,e._tweenType);Ge(i,Qe),Ge(t(),At),e._fromNumbers=ve(Qe.d),e._fromNumber=Qe.n,e._toNumbers=ve(At.d),e._strings=ve(At.s),e._toNumber=At.o?Ve(Qe.n,At.n,At.o):At.n}})),this}revert(){return super.revert(),Mt(this)}then(e){return super.then(e)}}const Rt=(e,t=100)=>{const i=[];for(let s=0;s<=t;s++)i.push(e(s/t));return`linear(${i.join(", ")})`},Ft={in:"ease-in",out:"ease-out",inOut:"ease-in-out"},jt=(()=>{const e={};for(let t in vt)e[t]=e=>vt[t](mt(e));return e})(),Nt=e=>{let t=Ft[e];if(t)return t;if(t="linear",F(e)){if(z(e,"linear")||z(e,"cubic-")||z(e,"steps")||z(e,"ease"))t=e;else if(z(e,"cubicB"))t=P(e);else{const i=yt(e,jt,Ft);j(i)&&(t=i===at?"linear":Rt(i))}Ft[e]=t}else if(j(e)){const i=Rt(e);i&&(t=i)}else e.ease&&(t=Rt(e.ease));return t},Ht=["x","y","z"],Wt=["perspective","width","height","margin","padding","top","right","bottom","left","borderWidth","fontSize","borderRadius",...Ht],qt=[...Ht,...g.filter((e=>["X","Y","Z"].some((t=>e.endsWith(t)))))];let Yt=null;const Xt={_head:null,_tail:null},Vt=(e,t,i)=>{let s=Xt._head;for(;s;){const n=s._next,r=s.$el===e,o=!t||s.property===t,a=!i||s.parent===i;if(r&&o&&a){const e=s.animation;try{e.commitStyles()}catch{}e.cancel(),_e(Xt,s);const t=s.parent;t&&(t._completed++,t.animations.length===t._completed&&(t.completed=!0,t.muteCallbacks||(t.paused=!0,t.onComplete(t),t._resolve(t))))}s=n}},Gt=(e,t,i,s,n)=>{const r=t.animate(s,n),o=n.delay+ +n.duration*n.iterations;r.playbackRate=e._speed,e.paused&&r.pause(),e.duration{Vt(t,i,e)};return r.onremove=a,r.onfinish=a,r},Ut=(e,t,i,s,n)=>{let r=We(t,i,s,n);return R(r)?Wt.includes(e)||z(e,"translate")?`${r}px`:z(e,"rotate")||z(e,"skew")?`${r}deg`:`${r}`:r},Qt=(e,t,i,s,n,r)=>{let o="0";const a=N(s)?getComputedStyle(e)[t]:Ut(t,s,e,n,r);return o=N(i)?$(s)?s.map((i=>Ut(t,i,e,n,r))):a:[Ut(t,i,e,n,r),a],o};class Zt{constructor(e,i){I.current&&I.current.register(this),H(Yt)&&(!t||!N(CSS)&&Object.hasOwnProperty.call(CSS,"registerProperty")?(g.forEach((e=>{const t=z(e,"skew"),i=z(e,"scale"),s=z(e,"rotate"),n=z(e,"translate"),r=s||t,o=r?"":i?"":n?"":"*";try{CSS.registerProperty({name:"--"+e,syntax:o,inherits:!1,initialValue:n?"0px":r?"0deg":i?"1":"0"})}catch{}})),Yt=!0):Yt=!1);const s=De(e),n=s.length;n||console.warn("No target found. Make sure the element you're trying to animate is accessible before creating your animation.");const r=He(i.ease,Nt(O.defaults.ease)),o=r.ease&&r,a=He(i.autoplay,O.defaults.autoplay),c=!(!a||!a.link)&&a,d=i.alternate&&!0===i.alternate,u=i.reversed&&!0===i.reversed,h=He(i.loop,O.defaults.loop),b=!0===h||h===1/0?1/0:R(h)?h+1:1,_=d?u?"alternate-reverse":"alternate":u?"reverse":"normal",w=Nt(r),x=1===O.timeScale?1:p;this.targets=s,this.animations=[],this.controlAnimation=null,this.onComplete=i.onComplete||y,this.duration=0,this.muteCallbacks=!1,this.completed=!1,this.paused=!a||!1!==c,this.reversed=u,this.autoplay=a,this._speed=He(i.playbackRate,O.defaults.playbackRate),this._resolve=y,this._completed=0,this._inlineStyles=s.map((e=>e.getAttribute("style"))),s.forEach(((e,t)=>{const s=e[l],a=qt.some((e=>i.hasOwnProperty(e))),c=(o?o.duration:We(He(i.duration,O.defaults.duration),e,t,n))*x,d=We(He(i.delay,O.defaults.delay),e,t,n)*x,u=He(i.composition,"replace");for(let o in i){if(!V(o))continue;const l={},h={iterations:b,direction:_,fill:"forwards",easing:w,duration:c,delay:d,composite:u},p=i[o],f=!!a&&(g.includes(o)?o:m.get(o));let v;if(B(p)){const i=p,a=He(i.ease,r),m=a.ease&&a,g=i.to,y=i.from;if(h.duration=(m?m.duration:We(He(i.duration,c),e,t,n))*x,h.delay=We(He(i.delay,d),e,t,n)*x,h.composite=He(i.composition,u),h.easing=Nt(a),v=Qt(e,o,y,g,t,n),f?(l[`--${f}`]=v,s[f]=v):l[o]=Qt(e,o,y,g,t,n),Gt(this,e,o,l,h),!N(y))if(f){const t=`--${f}`;e.style.setProperty(t,l[t][0])}else e.style[o]=l[o][0]}else v=$(p)?p.map((i=>Ut(o,i,e,t,n))):Ut(o,p,e,t,n),f?(l[`--${f}`]=v,s[f]=v):l[o]=v,Gt(this,e,o,l,h)}if(a){let t=f;for(let e in s)t+=`${v[e]}var(--${e})) `;e.style.transform=t}})),c&&this.autoplay.link(this)}forEach(e){const t=F(e)?t=>t[e]():e;return this.animations.forEach(t),this}get speed(){return this._speed}set speed(e){this._speed=+e,this.forEach((t=>t.playbackRate=e))}get currentTime(){const e=this.controlAnimation,t=O.timeScale;return this.completed?this.duration:e?+e.currentTime*(1===t?1:t):0}set currentTime(e){const t=e*(1===O.timeScale?1:p);this.forEach((e=>{t>=this.duration&&e.play(),e.currentTime=t}))}get progress(){return this.currentTime/this.duration}set progress(e){this.forEach((t=>t.currentTime=e*this.duration||0))}resume(){return this.paused?(this.paused=!1,this.forEach("play")):this}pause(){return this.paused?this:(this.paused=!0,this.forEach("pause"))}alternate(){return this.reversed=!this.reversed,this.forEach("reverse"),this.paused&&this.forEach("pause"),this}play(){return this.reversed&&this.alternate(),this.resume()}reverse(){return this.reversed||this.alternate(),this.resume()}seek(e,t=!1){return t&&(this.muteCallbacks=!0),ee.setAttribute("style",this._inlineStyles[t]))),this}then(e=y){const t=this.then,i=()=>{this.then=null,e(this),this.then=t,this._resolve=y};return new Promise((e=>(this._resolve=()=>e(i()),this.completed&&this._resolve(),this)))}}const Kt={animate:(e,t)=>new Zt(e,t),convertEase:Rt},Jt=(e=y)=>new ot({duration:1*O.timeScale,onComplete:e},null,0).resume();function ei(e,t,i){const s=De(e);if(!s.length)return;const[n]=s,r=qe(n,t),o=Tt(t,n,r);let a=Xe(n,o);if(N(i))return a;if(Ge(a,Qe),0===Qe.t||1===Qe.t){if(!1===i)return Qe.n;{const e=Ct(n,Qe,i,!1);return`${de(e.n,O.precision)}${e.u}`}}}const ti=(e,t)=>{if(!N(t))return t.duration=u,t.composition=He(t.composition,n.none),new Bt(e,t,null,0,!0).resume()},ii=(e,t,i)=>{let s=!1;return be(t,(n=>{const r=n.target;if(e.includes(r)){const e=n.property,o=n._tweenType,a=Tt(i,r,o);(!a||a&&a===e)&&(n.parent._tail===n&&3===n._tweenType&&n._prev&&3===n._prev._tweenType&&(n._prev._renderTransforms=1),_e(t,n),it(n),s=!0)}}),!0),s},si=(e,t,i)=>{const s=ze(e),n=t||Ie,r=t&&t.controlAnimation&&t;for(let e=0,t=s.length;e{if(!r._hasChildren)if(o=ii(s,r,i),o&&!r._head)r.cancel(),_e(n,r);else{const e=r._offset+r._delay+r.duration;e>t&&(t=e)}r._head?si(e,r,i):r._hasChildren=!1}),!0),N(n.iterationDuration)||(n.iterationDuration=t)}else o=ii(s,n,i);return o&&!n._head&&(n._hasChildren=!1,n.cancel&&n.cancel()),s},ni=(e,t,i,s,n)=>s+(e-t)/(i-t)*(n-s),ri=(e,t,i,s)=>{let n=p/O.defaults.frameRate;if(!1!==s){const e=s||Ie._hasChildren&&Ie;e&&e.deltaTime&&(n=e.deltaTime)}const r=1-Math.exp(-i*n*.1);return i?1===i?t:(1-r)*e+r*t:e},oi=e=>(...t)=>{const i=e(...t);return new Proxy(y,{apply:(e,t,[s])=>i(s),get:(e,t)=>oi(((...e)=>{const s=li[t](...e);return e=>s(i(e))}))})},ai=(e,t=0)=>(...i)=>(i.length(...i)=>t?t=>e(...i,t):t=>e(t,...i))(e,t)):e)(...i),li={$:De,get:ei,set:ti,remove:si,cleanInlineStyles:Mt,random:pe,randomPick:e=>e[pe(0,e.length-1)],shuffle:fe,lerp:ri,sync:Jt,keepTime:xe,clamp:ai(le),round:ai(de),snap:ai(ue),wrap:ai(((e,t,i)=>((e-t)%(i-t)+(i-t))%(i-t)+t)),interpolate:ai(he,1),mapRange:ai(ni),roundPad:ai(((e,t)=>(+e).toFixed(t))),padStart:ai(((e,t,i)=>`${e}`.padStart(t,i))),padEnd:ai(((e,t,i)=>`${e}`.padEnd(t,i))),degToRad:ai((e=>e*oe/180)),radToDeg:ai((e=>180*e/oe))},ci=(e,t)=>{let i=e.iterationDuration;if(i===u&&(i=0),N(t))return i;if(R(+t))return+t;const s=t,n=e?e.labels:null,r=!H(n),o=((e,t)=>{if(z(t,"<")){const i="<"===t[1],s=e._tail,n=s?s._offset+s._delay:0;return i?n:n+s.duration}})(e,s),a=!N(o),l=k.exec(s);if(l){const e=l[0],t=s.split(e),c=r&&t[0]?n[t[0]]:i,d=a?o:r?c:i,u=+t[1];return Ve(d,u,e[0])}return a?o:r?N(n[s])?i:n[s]:i};function di(e,t,i,s,n,r){const o=R(e.duration)&&e.duration<=u?i-u:i;Ee(t,o,1,1,1);const a=s?new Bt(s,e,t,o,!1,n,r):new ot(e,t,o);return a.init(1),we(t,a),be(t,(e=>{const i=e._offset+e._delay+e.duration;i>t.iterationDuration&&(t.iterationDuration=i)})),t.duration=function(e){return me((e.iterationDuration+e._loopDelay)*e.iterationCount-e._loopDelay)||u}(t),t}class ui extends ot{constructor(e={}){super(e,null,0),this.duration=0,this.labels={};const t=e.defaults,i=O.defaults;this.defaults=t?ye(t,i):i,this.onRender=e.onRender||i.onRender;const s=He(e.playbackEase,i.playbackEase);this._ease=s?wt(s):null,this.iterationDuration=0}add(e,t,i){const s=B(t),n=B(e);if(s||n){if(this._hasChildren=!0,s){const s=t;if(j(i)){const t=i,n=ze(e),r=this.duration,o=this.iterationDuration,a=s.id;let l=0;const c=n.length;n.forEach((e=>{const i={...s};this.duration=r,this.iterationDuration=o,N(a)||(i.id=a+"-"+l),di(i,this,ci(this,t(e,l,c,this)),e,l,c),l++}))}else di(s,this,ci(this,i),e)}else di(e,this,ci(this,t));return this.init(1)}}sync(e,t){if(N(e)||e&&N(e.pause))return this;e.pause();const i=+(e.effect?e.effect.getTiming().duration:e.duration);return this.add(e,{currentTime:[0,i],duration:i,ease:"linear"},t)}set(e,t,i){return N(t)?this:(t.duration=u,t.composition=n.replace,this.add(e,t,i))}call(e,t){return N(e)||e&&!j(e)?this:this.add({duration:0,onComplete:()=>e(this)},t)}label(e,t){return N(e)||e&&!F(e)||(this.labels[e]=ci(this,t)),this}remove(e,t){return si(e,this,t),this}stretch(e){const t=this.duration;if(t===ge(e))return this;const i=e/t,s=this.labels;be(this,(e=>e.stretch(e.duration*i)));for(let e in s)s[e]*=i;return super.stretch(e)}refresh(){return be(this,(e=>{e.refresh&&e.refresh()})),this}revert(){return super.revert(),be(this,(e=>e.revert),!0),Mt(this)}then(e){return super.then(e)}}class hi{constructor(e,t){I.current&&I.current.register(this);const i=()=>{if(this.callbacks.completed)return;let e=!0;for(let t in this.animations)if(!this.animations[t].paused&&e){e=!1;break}e&&this.callbacks.complete()},s={onBegin:()=>{this.callbacks.completed&&this.callbacks.reset(),this.callbacks.play()},onComplete:i,onPause:i},r={v:1,autoplay:!1},o={};if(this.targets=[],this.animations={},this.callbacks=null,!N(e)&&!N(t)){for(let e in t){const i=t[e];V(e)?o[e]=i:z(e,"on")?r[e]=i:s[e]=i}this.callbacks=new Bt({v:0},r);for(let t in o){const i=o[t],r=B(i);let a={},l="+=0";if(r){const e=i.unit;F(e)&&(l+=e)}else a.duration=i;a[t]=r?ye({to:l},i):l;const c=ye(s,a);c.composition=n.replace,c.autoplay=!1;const d=this.animations[t]=new Bt(e,c,null,0,!1).init();this.targets.length||this.targets.push(...d.targets),this[t]=(e,t,i)=>{const s=d._head;if(N(e)&&s){const e=s._numbers;return e&&e.length?e:s._modifier(s._number)}return be(d,(t=>{if($(e))for(let i=0,s=e.length;i0===e||1===e?e:this.solve(e*this.solverDuration)}solve(e){const{zeta:t,w0:i,wd:s,b:n}=this;let r=e;return r=t<1?ee(-r*t*i)*(1*K(s*r)+n*Z(s*r)):(1+n*r)*ee(-r*i),1-r}compute(){const{maxRestSteps:e,maxIterations:t,restThreshold:i,timeStep:s,m:n,d:r,s:o,v:a}=this,l=this.w0=le(Q(o/n),u,p),c=this.zeta=r/(2*Q(o*n)),d=this.wd=c<1?l*Q(1-c*c):0;this.b=c<1?(c*l-a)/d:-a+l;let h=0,f=0,m=0;for(;fnew fi(e),gi=e=>{e.cancelable&&e.preventDefault()};class vi{constructor(e){this.el=e,this.zIndex=0,this.parentElement=null,this.classList={add:y,remove:y}}get x(){return this.el.x||0}set x(e){this.el.x=e}get y(){return this.el.y||0}set y(e){this.el.y=e}get width(){return this.el.width||0}set width(e){this.el.width=e}get height(){return this.el.height||0}set height(e){this.el.height=e}getBoundingClientRect(){return{top:this.y,right:this.x,bottom:this.y+this.height,left:this.x+this.width}}}class yi{constructor(e){this.$el=e,this.inlineTransforms=[],this.point=new DOMPoint,this.inversedMatrix=this.getMatrix().inverse()}normalizePoint(e,t){return this.point.x=e,this.point.y=t,this.point.matrixTransform(this.inversedMatrix)}traverseUp(e){let t=this.$el.parentElement,i=0;for(;t&&t!==s;)e(t,i),t=t.parentElement,i++}getMatrix(){const e=new DOMMatrix;return this.traverseUp((t=>{const i=getComputedStyle(t).transform;if(i){const t=new DOMMatrix(i);e.preMultiplySelf(t)}})),e}remove(){this.traverseUp(((e,t)=>{this.inlineTransforms[t]=e.style.transform,e.style.transform="none"}))}revert(){this.traverseUp(((e,t)=>{const i=this.inlineTransforms[t];""===i?e.style.removeProperty("transform"):e.style.transform=i}))}}const bi=(e,t)=>e&&j(e)?e(t):e;let _i=0;class wi{constructor(e,t={}){if(!e)return;I.current&&I.current.register(this);const n=t.x,r=t.y,o=t.trigger,a=t.modifier,l=t.releaseEase,c=l&&wt(l),d=!N(l)&&!N(l.ease),u=B(n)&&!N(n.mapTo)?n.mapTo:"translateX",p=B(r)&&!N(r.mapTo)?r.mapTo:"translateY",f=bi(t.container,this);this.containerArray=$(f)?f:null,this.$container=f&&!this.containerArray?ze(f)[0]:s.body,this.useWin=this.$container===s.body,this.$scrollContainer=this.useWin?i:this.$container,this.$target=B(e)?new vi(e):ze(e)[0],this.$trigger=ze(o||e)[0],this.fixed="fixed"===ei(this.$target,"position"),this.isFinePointer=!0,this.containerPadding=[0,0,0,0],this.containerFriction=0,this.releaseContainerFriction=0,this.snapX=0,this.snapY=0,this.scrollSpeed=0,this.scrollThreshold=0,this.dragSpeed=0,this.maxVelocity=0,this.minVelocity=0,this.velocityMultiplier=0,this.cursor=!1,this.releaseXSpring=d?l:mi({mass:He(t.releaseMass,1),stiffness:He(t.releaseStiffness,80),damping:He(t.releaseDamping,20)}),this.releaseYSpring=d?l:mi({mass:He(t.releaseMass,1),stiffness:He(t.releaseStiffness,80),damping:He(t.releaseDamping,20)}),this.releaseEase=c||bt.outQuint,this.hasReleaseSpring=d,this.onGrab=t.onGrab||y,this.onDrag=t.onDrag||y,this.onRelease=t.onRelease||y,this.onUpdate=t.onUpdate||y,this.onSettle=t.onSettle||y,this.onSnap=t.onSnap||y,this.onResize=t.onResize||y,this.onAfterResize=t.onAfterResize||y,this.disabled=[0,0];const m={};if(a&&(m.modifier=a),N(n)||!0===n)m[u]=0;else if(B(n)){const e=n,t={};e.modifier&&(t.modifier=e.modifier),e.composition&&(t.composition=e.composition),m[u]=t}else!1===n&&(m[u]=0,this.disabled[0]=1);if(N(r)||!0===r)m[p]=0;else if(B(r)){const e=r,t={};e.modifier&&(t.modifier=e.modifier),e.composition&&(t.composition=e.composition),m[p]=t}else!1===r&&(m[p]=0,this.disabled[1]=1);this.animate=new hi(this.$target,m),this.xProp=u,this.yProp=p,this.destX=0,this.destY=0,this.deltaX=0,this.deltaY=0,this.scroll={x:0,y:0},this.coords=[this.x,this.y,0,0],this.snapped=[0,0],this.pointer=[0,0,0,0,0,0,0,0],this.scrollView=[0,0],this.dragArea=[0,0,0,0],this.containerBounds=[-1e12,h,h,-1e12],this.scrollBounds=[0,0,0,0],this.targetBounds=[0,0,0,0],this.window=[0,0],this.velocityStack=[0,0,0],this.velocityStackIndex=0,this.velocityTime=D(),this.velocity=0,this.angle=0,this.cursorStyles=null,this.triggerStyles=null,this.bodyStyles=null,this.targetStyles=null,this.touchActionStyles=null,this.transforms=new yi(this.$target),this.overshootCoords={x:0,y:0},this.overshootTicker=new ot({autoplay:!1,onUpdate:()=>{this.updated=!0,this.manual=!0,this.disabled[0]||this.animate[this.xProp](this.overshootCoords.x,1),this.disabled[1]||this.animate[this.yProp](this.overshootCoords.y,1)},onComplete:()=>{this.manual=!1,this.disabled[0]||this.animate[this.xProp](this.overshootCoords.x,0),this.disabled[1]||this.animate[this.yProp](this.overshootCoords.y,0)}},null,0).init(),this.updateTicker=new ot({autoplay:!1,onUpdate:()=>this.update()},null,0).init(),this.contained=!N(f),this.manual=!1,this.grabbed=!1,this.dragged=!1,this.updated=!1,this.released=!1,this.canScroll=!1,this.enabled=!1,this.initialized=!1,this.activeProp=this.disabled[1]?u:p,this.animate.callbacks.onRender=()=>{const e=this.updated,t=!(this.grabbed&&e)&&this.released,i=this.x,s=this.y,n=i-this.coords[2],r=s-this.coords[3];this.deltaX=n,this.deltaY=r,this.coords[2]=i,this.coords[3]=s,e&&(n||r)&&this.onUpdate(this),t?(this.computeVelocity(n,r),this.angle=re(r,n)):this.updated=!1},this.animate.callbacks.onComplete=()=>{!this.grabbed&&this.released&&(this.released=!1),this.manual||(this.deltaX=0,this.deltaY=0,this.velocity=0,this.velocityStack[0]=0,this.velocityStack[1]=0,this.velocityStack[2]=0,this.velocityStackIndex=0,this.onSettle(this))},this.resizeTicker=new ot({autoplay:!1,duration:150*O.timeScale,onComplete:()=>{this.onResize(this),this.refresh(),this.onAfterResize(this)}}).init(),this.parameters=t,this.resizeObserver=new ResizeObserver((()=>{this.initialized?this.resizeTicker.restart():this.initialized=!0})),this.enable(),this.refresh(),this.resizeObserver.observe(this.$container),B(e)||this.resizeObserver.observe(this.$target)}computeVelocity(e,t){const i=this.velocityTime,s=D(),n=s-i;if(n<17)return this.velocity;this.velocityTime=s;const r=this.velocityStack,o=this.velocityMultiplier,a=this.minVelocity,l=this.maxVelocity,c=this.velocityStackIndex;r[c]=de(le(Q(e*e+t*t)/n*o,a,l),5);const d=ne(r[0],r[1],r[2]);return this.velocity=d,this.velocityStackIndex=(c+1)%3,d}setX(e,t=!1){if(this.disabled[0])return;const i=de(e,5);return this.overshootTicker.pause(),this.manual=!0,this.updated=!t,this.destX=i,this.snapped[0]=ue(i,this.snapX),this.animate[this.xProp](i,0),this.manual=!1,this}setY(e,t=!1){if(this.disabled[1])return;const i=de(e,5);return this.overshootTicker.pause(),this.manual=!0,this.updated=!t,this.destY=i,this.snapped[1]=ue(i,this.snapY),this.animate[this.yProp](i,0),this.manual=!1,this}get x(){return de(this.animate[this.xProp](),O.precision)}set x(e){this.setX(e,!1)}get y(){return de(this.animate[this.yProp](),O.precision)}set y(e){this.setY(e,!1)}get progressX(){return ni(this.x,this.containerBounds[3],this.containerBounds[1],0,1)}set progressX(e){this.setX(ni(e,0,1,this.containerBounds[3],this.containerBounds[1]),!1)}get progressY(){return ni(this.y,this.containerBounds[0],this.containerBounds[2],0,1)}set progressY(e){this.setY(ni(e,0,1,this.containerBounds[0],this.containerBounds[2]),!1)}updateScrollCoords(){const e=de(this.useWin?i.scrollX:this.$container.scrollLeft,0),t=de(this.useWin?i.scrollY:this.$container.scrollTop,0),[s,n,r,o]=this.containerPadding,a=this.scrollThreshold;this.scroll.x=e,this.scroll.y=t,this.scrollBounds[0]=t-this.targetBounds[0]+s-a,this.scrollBounds[1]=e-this.targetBounds[1]-n+a,this.scrollBounds[2]=t-this.targetBounds[2]-r+a,this.scrollBounds[3]=e-this.targetBounds[3]+o-a}updateBoundingValues(){const e=this.$container;if(!e)return;const t=this.x,n=this.y,r=this.coords[2],o=this.coords[3];this.coords[2]=0,this.coords[3]=0,this.setX(0,!0),this.setY(0,!0),this.transforms.remove();const a=this.window[0]=i.innerWidth,l=this.window[1]=i.innerHeight,c=this.useWin,d=e.scrollWidth,u=e.scrollHeight,h=this.fixed,p=e.getBoundingClientRect(),[f,m,g,v]=this.containerPadding;this.dragArea[0]=c?0:p.left,this.dragArea[1]=c?0:p.top,this.scrollView[0]=c?le(d,a,d):d,this.scrollView[1]=c?le(u,l,u):u,this.updateScrollCoords();const{width:y,height:b,left:_,top:w,right:x,bottom:T}=e.getBoundingClientRect();this.dragArea[2]=de(c?le(y,a,a):y,0),this.dragArea[3]=de(c?le(b,l,l):b,0);const S=ei(e,"overflow"),E="visible"===S,C="hidden"===S;if(this.canScroll=!h&&this.contained&&(e===s.body&&E||!C&&!E)&&(d>this.dragArea[2]+v-m||u>this.dragArea[3]+f-g)&&(!this.containerArray||this.containerArray&&!$(this.containerArray)),this.contained){const t=this.scroll.x,i=this.scroll.y,s=this.canScroll,n=this.$target.getBoundingClientRect(),r=s?c?0:e.scrollLeft:0,o=s?c?0:e.scrollTop:0,d=s?this.scrollView[0]-r-y:0,u=s?this.scrollView[1]-o-b:0;this.targetBounds[0]=de(n.top+i-(c?0:w),0),this.targetBounds[1]=de(n.right+t-(c?a:x),0),this.targetBounds[2]=de(n.bottom+i-(c?l:T),0),this.targetBounds[3]=de(n.left+t-(c?0:_),0),this.containerArray?(this.containerBounds[0]=this.containerArray[0]+f,this.containerBounds[1]=this.containerArray[1]-m,this.containerBounds[2]=this.containerArray[2]-g,this.containerBounds[3]=this.containerArray[3]+v):(this.containerBounds[0]=-de(n.top-(h?le(w,0,l):w)+o-f,0),this.containerBounds[1]=-de(n.right-(h?le(x,0,a):x)-d+m,0),this.containerBounds[2]=-de(n.bottom-(h?le(T,0,l):T)-u+g,0),this.containerBounds[3]=-de(n.left-(h?le(_,0,a):_)+r-v,0))}this.transforms.revert(),this.coords[2]=r,this.coords[3]=o,this.setX(t,!0),this.setY(n,!0)}isOutOfBounds(e,t,i){if(!this.contained)return 0;const[s,n,r,o]=e,[a,l]=this.disabled,c=!a&&tn,d=!l&&ir;return c&&!d?1:!c&&d?2:c&&d?3:0}refresh(){const e=this.parameters,t=e.x,n=e.y,r=bi(e.container,this),o=bi(e.containerPadding,this)||0,a=$(o)?o:[o,o,o,o],l=this.x,c=this.y,d=bi(e.cursor,this),u={onHover:"grab",onGrab:"grabbing"};if(d){const{onHover:e,onGrab:t}=d;e&&(u.onHover=e),t&&(u.onGrab=t)}this.containerArray=$(r)?r:null,this.$container=r&&!this.containerArray?ze(r)[0]:s.body,this.useWin=this.$container===s.body,this.$scrollContainer=this.useWin?i:this.$container,this.isFinePointer=matchMedia("(pointer:fine)").matches,this.containerPadding=He(a,[0,0,0,0]),this.containerFriction=le(He(bi(e.containerFriction,this),.8),0,1),this.releaseContainerFriction=le(He(bi(e.releaseContainerFriction,this),this.containerFriction),0,1),this.snapX=bi(B(t)&&!N(t.snap)?t.snap:e.snap,this),this.snapY=bi(B(n)&&!N(n.snap)?n.snap:e.snap,this),this.scrollSpeed=He(bi(e.scrollSpeed,this),1.5),this.scrollThreshold=He(bi(e.scrollThreshold,this),20),this.dragSpeed=He(bi(e.dragSpeed,this),1),this.minVelocity=He(bi(e.minVelocity,this),0),this.maxVelocity=He(bi(e.maxVelocity,this),50),this.velocityMultiplier=He(bi(e.velocityMultiplier,this),1),this.cursor=!1!==d&&u,this.updateBoundingValues();const[h,p,f,m]=this.containerBounds;this.setX(le(l,m,p),!0),this.setY(le(c,h,f),!0)}update(){if(this.updateScrollCoords(),this.canScroll){const[e,t,i,s]=this.containerPadding,[n,r]=this.scrollView,o=this.dragArea[2],a=this.dragArea[3],l=this.scroll.x,c=this.scroll.y,d=this.$container.scrollWidth,u=this.$container.scrollHeight,h=this.useWin?le(d,this.window[0],d):d,p=this.useWin?le(u,this.window[1],u):u,f=n-h,m=r-p;this.dragged&&f>0&&(this.coords[0]-=f,this.scrollView[0]=h),this.dragged&&m>0&&(this.coords[1]-=m,this.scrollView[1]=p);const g=10*this.scrollSpeed,v=this.scrollThreshold,[y,b]=this.coords,[_,w,x,T]=this.scrollBounds,S=de(le((b-_+e)/v,-1,0)*g,0),E=de(le((y-w-t)/v,0,1)*g,0),C=de(le((b-x-i)/v,0,1)*g,0),M=de(le((y-T+s)/v,-1,0)*g,0);if(S||C||M||E){const[e,t]=this.disabled;let i=l,s=c;e||(i=de(le(l+(M||E),0,n-o),0),this.coords[0]-=l-i),t||(s=de(le(c+(S||C),0,r-a),0),this.coords[1]-=c-s),this.useWin?this.$scrollContainer.scrollBy(-(l-i),-(c-s)):this.$scrollContainer.scrollTo(i,s)}}const[e,t,i,s]=this.containerBounds,[n,r,o,a,l,c]=this.pointer;this.coords[0]+=(n-l)*this.dragSpeed,this.coords[1]+=(r-c)*this.dragSpeed,this.pointer[4]=n,this.pointer[5]=r;const[d,u]=this.coords,[h,p]=this.snapped,f=(1-this.containerFriction)*this.dragSpeed;this.setX(d>t?t+(d-t)*f:di?i+(u-i)*f:u{this.canScroll=!1,this.$scrollContainer.scrollTo(r.x,r.y)}}).init().then((()=>{this.canScroll=a}))}return this}handleHover(){this.isFinePointer&&this.cursor&&!this.cursorStyles&&(this.cursorStyles=ti(this.$trigger,{cursor:this.cursor.onHover}))}animateInView(e,t=0,i=bt.inOutQuad){this.stop(),this.updateBoundingValues();const s=this.x,n=this.y,[r,o,a,l]=this.containerPadding,c=this.scroll.y-this.targetBounds[0]+r+t,d=this.scroll.x-this.targetBounds[1]-o-t,u=this.scroll.y-this.targetBounds[2]-a-t,h=this.scroll.x-this.targetBounds[3]+l+t,p=this.isOutOfBounds([c,d,u,h],s,n);if(p){const[t,r]=this.disabled,o=le(ue(s,this.snapX),h,d),a=le(ue(n,this.snapY),c,u),l=N(e)?350*O.timeScale:e;t||1!==p&&3!==p||this.animate[this.xProp](o,l,i),r||2!==p&&3!==p||this.animate[this.yProp](a,l,i)}return this}handleDown(e){const t=e.target;if(this.grabbed||"range"===t.type)return;e.stopPropagation(),this.grabbed=!0,this.released=!1,this.stop(),this.updateBoundingValues();const i=e.changedTouches,n=i?i[0].clientX:e.clientX,r=i?i[0].clientY:e.clientY,{x:o,y:a}=this.transforms.normalizePoint(n,r),[l,c,d,u]=this.containerBounds,h=(1-this.containerFriction)*this.dragSpeed,p=this.x,f=this.y;this.coords[0]=this.coords[2]=h?p>c?c+(p-c)/h:pd?d+(f-d)/h:f_i?m:_i)+1,this.targetStyles=ti(this.$target,{zIndex:_i}),this.triggerStyles&&(this.triggerStyles.revert(),this.triggerStyles=null),this.cursorStyles&&(this.cursorStyles.revert(),this.cursorStyles=null),this.isFinePointer&&this.cursor&&(this.bodyStyles=ti(s.body,{cursor:this.cursor.onGrab})),this.scrollInView(100,0,bt.out(3)),this.onGrab(this),s.addEventListener("touchmove",this),s.addEventListener("touchend",this),s.addEventListener("touchcancel",this),s.addEventListener("mousemove",this),s.addEventListener("mouseup",this),s.addEventListener("selectstart",this)}handleMove(e){if(!this.grabbed)return;const t=e.changedTouches,i=t?t[0].clientX:e.clientX,s=t?t[0].clientY:e.clientY,{x:n,y:r}=this.transforms.normalizePoint(i,s),o=n-this.pointer[6],a=r-this.pointer[7];let l=e.target,c=!1,d=!1,u=!1;for(;t&&l&&l!==this.$trigger;){const e=ei(l,"overflow-y");if("hidden"!==e&&"visible"!==e){const{scrollTop:e,scrollHeight:t,clientHeight:i}=l;if(t>i){u=!0,c=e<=3,d=e>=t-i-3;break}}l=l.parentNode}u&&(!c&&!d||c&&a<0||d&&a>0)?(this.pointer[0]=n,this.pointer[1]=r,this.pointer[2]=n,this.pointer[3]=r,this.pointer[4]=n,this.pointer[5]=r,this.pointer[6]=n,this.pointer[7]=r):(gi(e),this.triggerStyles||(this.triggerStyles=ti(this.$trigger,{pointerEvents:"none"})),this.$trigger.addEventListener("touchstart",gi,{passive:!1}),this.$trigger.addEventListener("touchmove",gi,{passive:!1}),this.$trigger.addEventListener("touchend",gi),(!this.disabled[0]&&J(o)>3||!this.disabled[1]&&J(a)>3)&&(this.updateTicker.resume(),this.pointer[2]=this.pointer[0],this.pointer[3]=this.pointer[1],this.pointer[0]=n,this.pointer[1]=r,this.dragged=!0,this.released=!1,this.onDrag(this)))}handleUp(){if(!this.grabbed)return;this.updateTicker.pause(),this.triggerStyles&&(this.triggerStyles.revert(),this.triggerStyles=null),this.bodyStyles&&(this.bodyStyles.revert(),this.bodyStyles=null);const[e,t]=this.disabled,[i,r,o,a,l,c]=this.pointer,[d,u,h,p]=this.containerBounds,[f,m]=this.snapped,g=this.releaseXSpring,v=this.releaseYSpring,y=this.releaseEase,b=this.hasReleaseSpring,_=this.overshootCoords,w=this.x,x=this.y,T=this.computeVelocity(i-l,r-c),S=this.angle=re(r-a,i-o),E=150*T,C=(1-this.releaseContainerFriction)*this.dragSpeed,M=w+K(S)*E,k=x+Z(S)*E,A=M>u?u+(M-u)*C:Mh?h+(k-h)*C:ku?-1:1:wF&&(F=D)}if(!t){const t=P===h?x>h?-1:1:xF&&(F=$)}if(!b&&z&&C&&(D||$)){const e=n.blend;new Bt(_,{x:{to:A,duration:.65*D},y:{to:I,duration:.65*$},ease:y,composition:e}).init(),new Bt(_,{x:{to:L,duration:D},y:{to:P,duration:$},ease:y,composition:e}).init(),this.overshootTicker.stretch(ne(D,$)).restart()}else e||this.animate[this.xProp](L,D,B),t||this.animate[this.yProp](P,$,R);this.scrollInView(F,this.scrollThreshold,y);let j=!1;L!==f&&(this.snapped[0]=L,this.snapX&&(j=!0)),P!==m&&this.snapY&&(this.snapped[1]=P,this.snapY&&(j=!0)),j&&this.onSnap(this),this.grabbed=!1,this.dragged=!1,this.updated=!0,this.released=!0,this.onRelease(this),this.$trigger.removeEventListener("touchstart",gi),this.$trigger.removeEventListener("touchmove",gi),this.$trigger.removeEventListener("touchend",gi),s.removeEventListener("touchmove",this),s.removeEventListener("touchend",this),s.removeEventListener("touchcancel",this),s.removeEventListener("mousemove",this),s.removeEventListener("mouseup",this),s.removeEventListener("selectstart",this)}reset(){return this.stop(),this.resizeTicker.pause(),this.grabbed=!1,this.dragged=!1,this.updated=!1,this.released=!1,this.canScroll=!1,this.setX(0,!0),this.setY(0,!0),this.coords[0]=0,this.coords[1]=0,this.pointer[0]=0,this.pointer[1]=0,this.pointer[2]=0,this.pointer[3]=0,this.pointer[4]=0,this.pointer[5]=0,this.pointer[6]=0,this.pointer[7]=0,this.velocity=0,this.velocityStack[0]=0,this.velocityStack[1]=0,this.velocityStack[2]=0,this.velocityStackIndex=0,this.angle=0,this}enable(){return this.enabled||(this.enabled=!0,this.$target.classList.remove("is-disabled"),this.touchActionStyles=ti(this.$trigger,{touchAction:this.disabled[0]?"pan-x":this.disabled[1]?"pan-y":"none"}),this.$trigger.addEventListener("touchstart",this,{passive:!0}),this.$trigger.addEventListener("mousedown",this,{passive:!0}),this.$trigger.addEventListener("mouseenter",this)),this}disable(){return this.enabled=!1,this.grabbed=!1,this.dragged=!1,this.updated=!1,this.released=!1,this.canScroll=!1,this.touchActionStyles.revert(),this.cursorStyles&&(this.cursorStyles.revert(),this.cursorStyles=null),this.triggerStyles&&(this.triggerStyles.revert(),this.triggerStyles=null),this.bodyStyles&&(this.bodyStyles.revert(),this.bodyStyles=null),this.targetStyles&&(this.targetStyles.revert(),this.targetStyles=null),this.$target.classList.add("is-disabled"),this.$trigger.removeEventListener("touchstart",this),this.$trigger.removeEventListener("mousedown",this),this.$trigger.removeEventListener("mouseenter",this),s.removeEventListener("touchmove",this),s.removeEventListener("touchend",this),s.removeEventListener("touchcancel",this),s.removeEventListener("mousemove",this),s.removeEventListener("mouseup",this),s.removeEventListener("selectstart",this),this}revert(){return this.reset(),this.disable(),this.$target.classList.remove("is-disabled"),this.updateTicker.revert(),this.overshootTicker.revert(),this.resizeTicker.revert(),this.animate.revert(),this.resizeObserver.disconnect(),this}handleEvent(e){switch(e.type){case"mousedown":case"touchstart":this.handleDown(e);break;case"mousemove":case"touchmove":this.handleMove(e);break;case"mouseup":case"touchend":case"touchcancel":this.handleUp();break;case"mouseenter":this.handleHover();break;case"selectstart":gi(e)}}}class xi{constructor(e={}){I.current&&I.current.register(this);const t=e.root;let n=s;t&&(n=t.current||t.nativeElement||ze(t)[0]||s);const r=e.defaults,o=O.defaults,a=e.mediaQueries;if(this.defaults=r?ye(r,o):o,this.root=n,this.constructors=[],this.revertConstructors=[],this.revertibles=[],this.constructorsOnce=[],this.revertConstructorsOnce=[],this.revertiblesOnce=[],this.once=!1,this.onceIndex=0,this.methods={},this.matches={},this.mediaQueryLists={},this.data={},a)for(let e in a){const t=i.matchMedia(a[e]);this.mediaQueryLists[e]=t,t.addEventListener("change",this)}}register(e){(this.once?this.revertiblesOnce:this.revertibles).push(e)}execute(e){let t=I.current,i=I.root,s=O.defaults;I.current=this,I.root=this.root,O.defaults=this.defaults;const n=this.mediaQueryLists;for(let e in n)this.matches[e]=n[e].matches;const r=e(this);return I.current=t,I.root=i,O.defaults=s,r}refresh(){return this.onceIndex=0,this.execute((()=>{let e=this.revertibles.length,t=this.revertConstructors.length;for(;e--;)this.revertibles[e].revert();for(;t--;)this.revertConstructors[t](this);this.revertibles.length=0,this.revertConstructors.length=0,this.constructors.forEach((e=>{const t=e(this);j(t)&&this.revertConstructors.push(t)}))})),this}add(e,t){if(this.once=!1,j(e)){const t=e;this.constructors.push(t),this.execute((()=>{const e=t(this);j(e)&&this.revertConstructors.push(e)}))}else this.methods[e]=(...e)=>this.execute((()=>t(...e)));return this}addOnce(e){if(this.once=!0,j(e)){const t=this.onceIndex++;if(this.constructorsOnce[t])return this;const i=e;this.constructorsOnce[t]=i,this.execute((()=>{const e=i(this);j(e)&&this.revertConstructorsOnce.push(e)}))}return this}keepTime(e){this.once=!0;const t=this.onceIndex++,i=this.constructorsOnce[t];if(j(i))return i(this);const s=xe(e);let n;return this.constructorsOnce[t]=s,this.execute((()=>{n=s(this)})),n}handleEvent(e){"change"===e.type&&this.refresh()}revert(){const e=this.revertibles,t=this.revertConstructors,i=this.revertiblesOnce,s=this.revertConstructorsOnce,n=this.mediaQueryLists;let r=e.length,o=t.length,a=i.length,l=s.length;for(;r--;)e[r].revert();for(;o--;)t[o](this);for(;a--;)i[a].revert();for(;l--;)s[l](this);for(let e in n)n[e].removeEventListener("change",this);e.length=0,t.length=0,this.constructors.length=0,i.length=0,s.length=0,this.constructorsOnce.length=0,this.onceIndex=0,this.matches={},this.methods={},this.mediaQueryLists={},this.data={}}}const Ti=(e,t)=>e&&j(e)?e(t):e,Si=new Map;class Ei{constructor(e){this.element=e,this.useWin=this.element===s.body,this.winWidth=0,this.winHeight=0,this.width=0,this.height=0,this.left=0,this.top=0,this.zIndex=0,this.scrollX=0,this.scrollY=0,this.prevScrollX=0,this.prevScrollY=0,this.scrollWidth=0,this.scrollHeight=0,this.velocity=0,this.backwardX=!1,this.backwardY=!1,this.scrollTicker=new ot({autoplay:!1,onBegin:()=>this.dataTimer.resume(),onUpdate:()=>{const e=this.backwardX||this.backwardY;be(this,(e=>e.handleScroll()),e)},onComplete:()=>this.dataTimer.pause()}).init(),this.dataTimer=new ot({autoplay:!1,frameRate:30,onUpdate:e=>{const t=e.deltaTime,i=this.prevScrollX,s=this.prevScrollY,n=this.scrollX,r=this.scrollY,o=i-n,a=s-r;this.prevScrollX=n,this.prevScrollY=r,o&&(this.backwardX=i>n),a&&(this.backwardY=s>r),this.velocity=de(t>0?Math.sqrt(o*o+a*a)/t:0,5)}}).init(),this.resizeTicker=new ot({autoplay:!1,duration:250*O.timeScale,onComplete:()=>{this.updateWindowBounds(),this.refreshScrollObservers(),this.handleScroll()}}).init(),this.wakeTicker=new ot({autoplay:!1,duration:500*O.timeScale,onBegin:()=>{this.scrollTicker.resume()},onComplete:()=>{this.scrollTicker.pause()}}).init(),this._head=null,this._tail=null,this.updateScrollCoords(),this.updateWindowBounds(),this.updateBounds(),this.refreshScrollObservers(),this.handleScroll(),this.resizeObserver=new ResizeObserver((()=>this.resizeTicker.restart())),this.resizeObserver.observe(this.element),(this.useWin?i:this.element).addEventListener("scroll",this,!1)}updateScrollCoords(){const e=this.useWin,t=this.element;this.scrollX=de(e?i.scrollX:t.scrollLeft,0),this.scrollY=de(e?i.scrollY:t.scrollTop,0)}updateWindowBounds(){this.winWidth=i.innerWidth,this.winHeight=(()=>{const e=s.createElement("div");s.body.appendChild(e),e.style.height="100lvh";const t=e.offsetHeight;return s.body.removeChild(e),t})()}updateBounds(){const e=getComputedStyle(this.element),t=this.element;let i,s;if(this.scrollWidth=t.scrollWidth+parseFloat(e.marginLeft)+parseFloat(e.marginRight),this.scrollHeight=t.scrollHeight+parseFloat(e.marginTop)+parseFloat(e.marginBottom),this.updateWindowBounds(),this.useWin)i=this.winWidth,s=this.winHeight;else{const e=t.getBoundingClientRect();i=t.clientWidth,s=t.clientHeight,this.top=e.top,this.left=e.left}this.width=i,this.height=s}refreshScrollObservers(){be(this,(e=>{e._debug&&e.removeDebug()})),this.updateBounds(),be(this,(e=>{e.refresh(),e._debug&&e.debug()}))}refresh(){this.updateWindowBounds(),this.updateBounds(),this.refreshScrollObservers(),this.handleScroll()}handleScroll(){this.updateScrollCoords(),this.wakeTicker.restart()}handleEvent(e){"scroll"===e.type&&this.handleScroll()}revert(){this.scrollTicker.cancel(),this.dataTimer.cancel(),this.resizeTicker.cancel(),this.wakeTicker.cancel(),this.resizeObserver.disconnect(),(this.useWin?i:this.element).removeEventListener("scroll",this),Si.delete(this.element)}}const Ci=(e,t,i,s,n)=>{const r="min"===t,o="max"===t,a="top"===t||"left"===t||"start"===t||r?0:"bottom"===t||"right"===t||"end"===t||o?"100%":"center"===t?"50%":t,{n:l,u:c}=Ge(a,Qe);let d=l;return"%"===c?d=l/100*i:c&&(d=Ct(e,Qe,"px",!0).n),o&&s<0&&(d+=s),r&&n>0&&(d+=n),d},Mi=(e,t,i,s,n)=>{let r;if(F(t)){const o=k.exec(t);if(o){const a=o[0],l=a[0],c=t.split(a),d="min"===c[0],u="max"===c[0],h=Ci(e,c[0],i,s,n),p=Ci(e,c[1],i,s,n);if(d){const t=Ve(Ci(e,"min",i),p,l);r=th?h:t}else r=Ve(h,p,l)}else r=Ci(e,t,i,s,n)}else r=t;return de(r,0)},ki=e=>{let t;const i=e.targets;for(let e=0,s=i.length;e()=>{const t=this.linked;return t&&t[e]?t[e]():null})):null,c=a&&l.length>2;this.index=Ai++,this.id=N(e.id)?this.index:e.id,this.container=(e=>{const t=e&&ze(e)[0]||s.body;let i=Si.get(t);return i||(i=new Ei(t),Si.set(t,i)),i})(e.container),this.target=null,this.linked=null,this.repeat=null,this.horizontal=null,this.enter=null,this.leave=null,this.sync=r||o||!!l,this.syncEase=r?i:null,this.syncSmooth=o?!0===t||n?1:t:null,this.onSyncEnter=l&&!c&&l[0]?l[0]:y,this.onSyncLeave=l&&!c&&l[1]?l[1]:y,this.onSyncEnterForward=l&&c&&l[0]?l[0]:y,this.onSyncLeaveForward=l&&c&&l[1]?l[1]:y,this.onSyncEnterBackward=l&&c&&l[2]?l[2]:y,this.onSyncLeaveBackward=l&&c&&l[3]?l[3]:y,this.onEnter=e.onEnter||y,this.onLeave=e.onLeave||y,this.onEnterForward=e.onEnterForward||y,this.onLeaveForward=e.onLeaveForward||y,this.onEnterBackward=e.onEnterBackward||y,this.onLeaveBackward=e.onLeaveBackward||y,this.onUpdate=e.onUpdate||y,this.onSyncComplete=e.onSyncComplete||y,this.reverted=!1,this.completed=!1,this.began=!1,this.isInView=!1,this.forceEnter=!1,this.hasEntered=!1,this.offset=0,this.offsetStart=0,this.offsetEnd=0,this.distance=0,this.prevProgress=0,this.thresholds=["start","end","end","start"],this.coords=[0,0,0,0],this.debugStyles=null,this.$debug=null,this._params=e,this._debug=He(e.debug,!1),this._next=null,this._prev=null,we(this.container,this),Jt((()=>{if(!this.reverted){if(!this.target){const t=ze(e.target)[0];this.target=t||s.body,this.refresh()}this._debug&&this.debug()}}))}link(e){if(e&&(e.pause(),this.linked=e,!this._params.target)){let t;N(e.targets)?be(e,(e=>{e.targets&&!t&&(t=ki(e))})):t=ki(e),this.target=t||s.body,this.refresh()}return this}get velocity(){return this.container.velocity}get backward(){return this.horizontal?this.container.backwardX:this.container.backwardY}get scroll(){return this.horizontal?this.container.scrollX:this.container.scrollY}get progress(){const e=(this.scroll-this.offsetStart)/this.distance;return e===1/0||isNaN(e)?0:de(le(e,0,1),6)}refresh(){this.reverted=!1;const e=this._params;return this.repeat=He(Ti(e.repeat,this),!0),this.horizontal="x"===He(Ti(e.axis,this),"y"),this.enter=He(Ti(e.enter,this),"end start"),this.leave=He(Ti(e.leave,this),"start end"),this.updateBounds(),this.handleScroll(),this}removeDebug(){return this.$debug&&(this.$debug.parentNode.removeChild(this.$debug),this.$debug=null),this.debugStyles&&(this.debugStyles.revert(),this.$debug=null),this}debug(){this.removeDebug();const e=this.container,t=this.horizontal,i=e.element.querySelector(":scope > .animejs-onscroll-debug"),n=s.createElement("div"),r=s.createElement("div"),o=s.createElement("div"),a=Ii[this.index%Ii.length],l=e.useWin,c=l?e.winWidth:e.width,d=l?e.winHeight:e.height,u=e.scrollWidth,h=e.scrollHeight,p=this.container.width>360?320:260,f=t?0:10,m=t?10:0,g=t?24:p/2,v=t?g:15,y=t?60:g,b=t?y:v,_=t?"repeat-x":"repeat-y",w=e=>t?"0px "+e+"px":e+"px 2px",x=e=>`linear-gradient(${t?90:0}deg, ${e} 2px, transparent 1px)`,T=(e,t,i,s,n)=>`position:${e};left:${t}px;top:${i}px;width:${s}px;height:${n}px;`;n.style.cssText=`${T("absolute",f,m,t?u:p,t?p:h)}\n pointer-events: none;\n z-index: ${this.container.zIndex++};\n display: flex;\n flex-direction: ${t?"column":"row"};\n filter: drop-shadow(0px 1px 0px rgba(0,0,0,.75));\n `,r.style.cssText=`${T("sticky",0,0,t?c:g,t?g:d)}`,i||(r.style.cssText+=`background:\n ${x("#FFFF")}${w(g-10)} / 100px 100px ${_},\n ${x("#FFF8")}${w(g-10)} / 10px 10px ${_};\n `),o.style.cssText=`${T("relative",0,0,t?u:g,t?g:h)}`,i||(o.style.cssText+=`background:\n ${x("#FFFF")}${w(0)} / ${t?"100px 10px":"10px 100px"} ${_},\n ${x("#FFF8")}${w(0)} / ${t?"10px 0px":"0px 10px"} ${_};\n `);const S=[" enter: "," leave: "];this.coords.forEach(((e,i)=>{const n=i>1,l=(n?0:this.offset)+e,f=i%2,m=l(n?t?c:d:t?u:h)-b,_=(n?f&&!m:!f&&!m)||g,w=s.createElement("div"),x=s.createElement("div"),E=t?_?"right":"left":_?"bottom":"top",C=_?(t?y:v)+(n?t?-1:g?0:-2:t?-1:-2):t?1:0;x.innerHTML=`${this.id}${S[f]}${this.thresholds[i]}`,w.style.cssText=`${T("absolute",0,0,y,v)}\n display: flex;\n flex-direction: ${t?"column":"row"};\n justify-content: flex-${n?"start":"end"};\n align-items: flex-${_?"end":"start"};\n border-${E}: 2px solid ${a};\n `,x.style.cssText=`\n overflow: hidden;\n max-width: ${p/2-10}px;\n height: ${v};\n margin-${t?_?"right":"left":_?"bottom":"top"}: -2px;\n padding: 1px;\n font-family: ui-monospace, monospace;\n font-size: 10px;\n letter-spacing: -.025em;\n line-height: 9px;\n font-weight: 600;\n text-align: ${t&&_||!t&&!n?"right":"left"};\n white-space: pre;\n text-overflow: ellipsis;\n color: ${f?a:"rgba(0,0,0,.75)"};\n background-color: ${f?"rgba(0,0,0,.65)":a};\n border: 2px solid ${f?a:"transparent"};\n border-${t?_?"top-left":"top-right":_?"top-left":"bottom-left"}-radius: 5px;\n border-${t?_?"bottom-left":"bottom-right":_?"top-right":"bottom-right"}-radius: 5px;\n `,w.appendChild(x);let M=l-C+(t?1:0);w.style[t?"left":"top"]=`${M}px`,(n?r:o).appendChild(w)})),n.appendChild(r),n.appendChild(o),e.element.appendChild(n),i||n.classList.add("animejs-onscroll-debug"),this.$debug=n,"static"===ei(e.element,"position")&&(this.debugStyles=ti(e.element,{position:"relative "}))}updateBounds(){let e;this._debug&&this.removeDebug();const t=this.target,i=this.container,n=this.horizontal,r=this.linked;let o,a=t;for(r&&(o=r.currentTime,r.seek(0,!0)),a.parentElement;a&&a!==i.element&&a!==s.body;){const t="sticky"===ei(a,"position")&&ti(a,{position:"static"});a=a.parentElement,t&&(e||(e=[]),e.push(t))}const l=t.getBoundingClientRect(),c=n?l.left+i.scrollX-i.left:l.top+i.scrollY-i.top,d=n?l.width:l.height,u=n?i.width:i.height,h=(n?i.scrollWidth:i.scrollHeight)-u,p=this.enter,f=this.leave;let m="start",g="end",v="end",y="start";if(F(p)){const e=p.split(" ");v=e[0],m=e.length>1?e[1]:m}else if(B(p)){const e=p;N(e.container)||(v=e.container),N(e.target)||(m=e.target)}else R(p)&&(v=p);if(F(f)){const e=f.split(" ");y=e[0],g=e.length>1?e[1]:g}else if(B(f)){const e=f;N(e.container)||(y=e.container),N(e.target)||(g=e.target)}else R(f)&&(y=f);const b=Mi(t,m,d),_=Mi(t,g,d),w=b+c-u,x=_+c-h,T=Mi(t,v,u,w,x),S=Mi(t,y,u,w,x),E=b+c-T,C=_+c-S,M=C-E;this.offset=c,this.offsetStart=E,this.offsetEnd=C,this.distance=M<=0?0:M,this.thresholds=[m,g,v,y],this.coords=[b,_,T,S],e&&e.forEach((e=>e.revert())),r&&r.seek(o,!0),this._debug&&this.debug()}handleScroll(){const e=this.linked,t=this.sync,i=this.syncEase,s=this.syncSmooth,n=e&&(i||s),r=this.horizontal,o=this.container,a=this.scroll,l=a<=this.offsetStart,c=a>=this.offsetEnd,d=!l&&!c,u=a===this.offsetStart||a===this.offsetEnd,h=!this.hasEntered&&u,p=this._debug&&this.$debug;let f=!1,m=!1,g=this.progress;if(l&&this.began&&(this.began=!1),g>0&&!this.began&&(this.began=!0),n){const t=e.progress;if(s&&R(s)){if(s<1){const e=tg&&!g?-1e-4:0;g=de(ri(t,g,he(.01,.2,s),!1)+e,6)}}else i&&(g=i(g));f=g!==this.prevProgress,m=1===t,f&&!m&&s&&t&&o.wakeTicker.restart()}if(p){const e=r?o.scrollY:o.scrollX;p.style[r?"top":"left"]=e+10+"px"}(d&&!this.isInView||h&&!this.forceEnter&&!this.hasEntered)&&(d&&(this.isInView=!0),this.forceEnter&&this.hasEntered?d&&(this.forceEnter=!1):(p&&d&&(p.style.zIndex=""+this.container.zIndex++),this.onSyncEnter(this),this.onEnter(this),this.backward?(this.onSyncEnterBackward(this),this.onEnterBackward(this)):(this.onSyncEnterForward(this),this.onEnterForward(this)),this.hasEntered=!0,h&&(this.forceEnter=!0))),(d||!d&&this.isInView)&&(f=!0),f&&(n&&e.seek(e.duration*g),this.onUpdate(this)),!d&&this.isInView&&(this.isInView=!1,this.onSyncLeave(this),this.onLeave(this),this.backward?(this.onSyncLeaveBackward(this),this.onLeaveBackward(this)):(this.onSyncLeaveForward(this),this.onLeaveForward(this)),t&&!s&&(m=!0)),g>=1&&this.began&&!this.completed&&(t&&m||!t)&&(t&&this.onSyncComplete(this),this.completed=!0,(!this.repeat&&!e||!this.repeat&&e&&e.completed)&&this.revert()),g<1&&this.completed&&(this.completed=!1),this.prevProgress=g}revert(){if(this.reverted)return;const e=this.container;return _e(e,this),e._head||e.revert(),this._debug&&this.removeDebug(),this.reverted=!0,this}}const Li="undefined"!=typeof Intl&&Intl.Segmenter,Pi=/\{value\}/g,zi=/\{i\}/g,Di=/(\s+)/,$i=/^\s+$/,Bi="line",Ri="word",Fi="char",ji="data-line";let Ni=null,Hi=null,Wi=null;const qi=e=>e.isWordLike||" "===e.segment||R(+e.segment),Yi=e=>e.setAttribute("aria-hidden","true"),Xi=(e,t)=>[...e.querySelectorAll(`[data-${t}]:not([data-${t}] [data-${t}])`)],Vi={line:"#00D672",word:"#FF4B4B",char:"#5A87FF"},Gi=e=>{if(!e.childElementCount&&!e.textContent.trim()){const t=e.parentElement;e.remove(),t&&Gi(t)}},Ui=(e,t,i)=>{const s=e.getAttribute(ji);(null!==s&&+s!==t||"BR"===e.tagName)&&i.add(e);let n=e.childElementCount;for(;n--;)Ui(e.children[n],t,i);return i},Qi=(e,t={})=>{let i="";const s=F(t.class)?` class="${t.class}"`:"",n=He(t.clone,!1),r=He(t.wrap,!1),o=r?!0===r?"clip":r:!!n&&"clip";return r&&(i+=``),i+=``,n?(i+="{value}",i+=`{value}`):i+="{value}",i+="",r&&(i+=""),i},Zi=(e,t,i,s,n,r,o,a,l)=>{const c=n===Bi,d=n===Fi,u=`_${n}_`,h=j(e)?e(i):e,p=c?"block":"inline-block";Wi.innerHTML=h.replace(Pi,``).replace(zi,`${d?l:c?o:a}`);const f=Wi.content,m=f.firstElementChild,g=f.querySelector(`[data-${n}]`)||m,v=f.querySelectorAll(`i.${u}`),y=v.length;if(y){m.style.display=p,g.style.display=p,g.setAttribute(ji,`${o}`),c||(g.setAttribute("data-word",`${a}`),d&&g.setAttribute("data-char",`${l}`));let e=y;for(;e--;){const t=v[e],s=t.parentElement;s.style.display=p,c?s.innerHTML=i.innerHTML:s.replaceChild(i.cloneNode(!0),t)}t.push(g),s.appendChild(f)}else console.warn('The expression "{value}" is missing from the provided template.');return r&&(m.style.outline=`1px dotted ${Vi[n]}`),m};class Ki{constructor(e,i={}){Ni||(Ni=Li?new Li([],{granularity:Ri}):{segment:e=>{const t=[],i=e.split(Di);for(let e=0,s=i.length;e[...e].map((e=>({segment:e})))}),!Wi&&t&&(Wi=s.createElement("template")),I.current&&I.current.register(this);const{words:n,chars:r,lines:o,accessible:a,includeSpaces:l,debug:c}=i,d=(e=$(e)?e[0]:e)&&e.nodeType?e:(Pe(e)||[])[0],u=!0===o?{}:o,h=!0===n||N(n)?{}:n,p=!0===r?{}:r;this.debug=He(c,!1),this.includeSpaces=He(l,!1),this.accessible=He(a,!0),this.linesOnly=u&&!h&&!p,this.lineTemplate=B(u)?Qi(Bi,u):u,this.wordTemplate=B(h)||this.linesOnly?Qi(Ri,h):h,this.charTemplate=B(p)?Qi(Fi,p):p,this.$target=d,this.html=d&&d.innerHTML,this.lines=[],this.words=[],this.chars=[],this.effects=[],this.effectsCleanups=[],this.cache=null,this.ready=!1,this.width=0,this.resizeTimeout=null;const f=()=>this.html&&(u||h||p)&&this.split();this.resizeObserver=new ResizeObserver((()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout((()=>{const e=d.offsetWidth;e!==this.width&&(this.width=e,f())}),150)})),this.lineTemplate&&!this.ready?s.fonts.ready.then(f):f(),d?this.resizeObserver.observe(d):console.warn("No Text Splitter target found.")}addEffect(e){if(!j(e))return console.warn("Effect must return a function.");const t=xe(e);return this.effects.push(t),this.ready&&(this.effectsCleanups[this.effects.length-1]=t(this)),this}revert(){return clearTimeout(this.resizeTimeout),this.lines.length=this.words.length=this.chars.length=0,this.resizeObserver.disconnect(),this.effectsCleanups.forEach((e=>j(e)?e(this):e.revert&&e.revert())),this.$target.innerHTML=this.html,this}splitNode(e){const t=this.wordTemplate,i=this.charTemplate,n=this.includeSpaces,r=this.debug,o=e.nodeType;if(3===o){const o=e.nodeValue;if(o.trim()){const a=[],l=this.words,c=this.chars,d=Ni.segment(o),u=s.createDocumentFragment();let h=null;for(const e of d){const t=e.segment,i=qi(e);if(!h||i&&h&&qi(h))a.push(t);else{const e=a.length-1;a[e].includes(" ")||t.includes(" ")?a.push(t):a[e]+=t}h=e}for(let e=0,o=a.length;ej(e)&&e(this))),i||(e&&(t.innerHTML=this.html,this.words.length=this.chars.length=0),this.splitNode(t),this.cache=t.innerHTML),l&&(i&&(t.innerHTML=this.cache),this.lines.length=0,r&&(this.words=Xi(t,Ri))),o&&(l||r)&&(this.chars=Xi(t,Fi));const c=this.words.length?this.words:this.chars;let d,u=0;for(let e=0,t=c.length;e.5*s&&u++,t.setAttribute(ji,`${u}`);const n=t.querySelectorAll(`[${ji}]`);let r=n.length;for(;r--;)n[r].setAttribute(ji,`${u}`);d=i}if(l){const e=s.createDocumentFragment(),i=new Set,a=[];for(let e=0;e{const t=e.parentElement;t&&i.add(t),e.remove()})),a.push(s)}i.forEach(Gi);for(let t=0,i=a.length;tthis.effectsCleanups[t]=e(this))),this}refresh(){this.split(!0)}}const Ji={split:(e,t)=>new Ki(e,t)};return e.Animatable=hi,e.Draggable=wi,e.JSAnimation=Bt,e.Scope=xi,e.ScrollObserver=Oi,e.Spring=fi,e.TextSplitter=Ki,e.Timeline=ui,e.Timer=ot,e.WAAPIAnimation=Zt,e.animate=(e,t)=>new Bt(e,t,null,0,!1).init(),e.createAnimatable=(e,t)=>new hi(e,t),e.createDraggable=(e,t)=>new wi(e,t),e.createScope=e=>new xi(e),e.createSpring=mi,e.createTimeline=e=>new ui(e).init(),e.createTimer=e=>new ot(e,null,0).init(),e.eases=bt,e.engine=Ie,e.onScroll=(e={})=>new Oi(e),e.scrollContainers=Si,e.stagger=(e,t={})=>{let i=[],s=0;const n=t.from,r=t.reversed,o=t.ease,a=!N(o),l=a&&!N(o.ease)?o.ease:a?wt(o):null,c=t.grid,d=t.axis,u=t.total,h=N(n)||0===n||"first"===n,p="center"===n,m="last"===n,g="random"===n,v=$(e),y=t.use,b=G(v?e[0]:e),_=v?G(e[1]):0,w=E.exec((v?e[1]:e)+f),x=t.start||0+(v?b:0);let T=h?0:R(n)?n:0;return(e,n,o,a)=>{const[h]=De(e),f=N(u)?o:u,S=!N(y)&&(j(y)?y(h,n,f):Xe(h,y)),E=R(S)||F(S)&&R(+S)?+S:n;if(p&&(T=(f-1)/2),m&&(T=f-1),!i.length){for(let e=0;el(e/s)*s))),r&&(i=i.map((e=>d?e<0?-1*e:-e:J(s-e)))),g&&(i=fe(i))}const C=v?(_-b)/s:b;let M=(a?ci(a,N(t.start)?a.iterationDuration:x):x)+(C*de(i[E],2)||0);return t.modifier&&(M=t.modifier(M)),w&&(M=`${M}${w[2]}`),M}},e.svg=je,e.text=Ji,e.utils=li,e.waapi=Kt,e}({}),Atropos=function(){"use strict";function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t=1;t=25){var r=180*Math.atan2(Math.abs(n),Math.abs(s))/Math.PI;p="scroll-y"===x.rotateTouch?r>45:90-r>45}!1===p&&(y.classList.add("atropos-rotate-touch"),e.cancelable&&e.preventDefault())}"mouse"!==e.pointerType&&p||L(t,i)}},B=function(e){if(c=void 0,d=void 0,w.isActive&&!(e&&"pointerup"===e.type&&"mouse"===e.pointerType||e&&"pointerleave"===e.type&&"mouse"!==e.pointerType)){if("string"==typeof x.rotateTouch&&p&&y.classList.remove("atropos-rotate-touch"),x.alwaysActive)return L(),"function"==typeof x.onRotate&&x.onRotate(0,0),void("function"==typeof x.onLeave&&x.onLeave());T.push((function(){return y.classList.remove("atropos-active")})),E(a,x.duration+"ms"),C(a,""),M(a,"translate3d(0,0, 0px)"),u&&(E(u,x.duration+"ms"),C(u,"")),h&&(E(h,x.duration+"ms"),C(h,""),M(h,"translate3d(0, 0, 0)"),k(h,0)),E(o,x.duration+"ms"),C(o,""),M(o,"translate3d(0,0,0) rotateX(0deg) rotateY(0deg)"),O({duration:x.duration+"ms"}),w.isActive=!1,"function"==typeof x.onRotate&&x.onRotate(0,0),"function"==typeof x.onLeave&&x.onLeave()}},R=function(e){var t=e.target;!b.contains(t)&&t!==b&&w.isActive&&B()};return w.destroy=function(){w.destroyed=!0,cancelAnimationFrame(g),I(document,"click",R),I(b,"pointerdown",z),I(b,"pointerenter",z),I(b,"pointermove",$),I(b,"touchmove",D),I(b,"pointerleave",B),I(b,"pointerup",B),I(b,"lostpointercapture",B),delete y.__atropos__},"string"==typeof y&&(y=t(document,y)),y&&(y.__atropos__||(void 0!==b?"string"==typeof b&&(b=t(document,b)):b=y,r=_?y.parentNode.host:y,Object.assign(w,{el:y}),o=t(y,".atropos-rotate"),a=t(y,".atropos-scale"),l=t(y,".atropos-inner"),y.__atropos__=w)),y&&b&&(x.shadow&&((u=t(y,".atropos-shadow"))||((u=document.createElement("span")).classList.add("atropos-shadow"),S=!0),M(u,"translate3d(0,0,-"+x.shadowOffset+"px) scale("+x.shadowScale+")"),S&&o.appendChild(u)),x.highlight&&function(){var e;(h=t(y,".atropos-highlight"))||((h=document.createElement("span")).classList.add("atropos-highlight"),e=!0),M(h,"translate3d(0,0,0)"),e&&l.appendChild(h)}(),x.rotateTouch&&("string"==typeof x.rotateTouch?y.classList.add("atropos-rotate-touch-"+x.rotateTouch):y.classList.add("atropos-rotate-touch")),t(r,"[data-atropos-opacity]")&&O({opacityOnly:!0}),A(document,"click",R),A(b,"pointerdown",z),A(b,"pointerenter",z),A(b,"pointermove",$),A(b,"touchmove",D),A(b,"pointerleave",B),A(b,"pointerup",B),A(b,"lostpointercapture",B),x.alwaysActive&&(P(),L())),w}}(); /*! Atropos Version: 2.0.2 Plugin URL: https://atroposjs.com License: Copyright 2021-2024 | Released under the MIT License !*/ /*! Bootstrap Version: v5.3.7 Plugin URL: https://getbootstrap.com/ License: Copyright 2011-2025 The Bootstrap Authors | Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) !*/ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t()}(this,(function(){"use strict";const e=new Map,t={set(t,i,s){e.has(t)||e.set(t,new Map);const n=e.get(t);n.has(i)||0===n.size?n.set(i,s):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(t,i)=>e.has(t)&&e.get(t).get(i)||null,remove(t,i){if(!e.has(t))return;const s=e.get(t);s.delete(i),0===s.size&&e.delete(t)}},i="transitionend",s=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>`#${CSS.escape(t)}`))),e),n=e=>{e.dispatchEvent(new Event(i))},r=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),o=e=>r(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(s(e)):null,a=e=>{if(!r(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(!i)return t;if(i!==e){const t=e.closest("summary");if(t&&t.parentNode!==i)return!1;if(null===t)return!1}return t},l=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),c=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?c(e.parentNode):null},d=()=>{},u=e=>{e.offsetHeight},h=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,p=[],f=()=>"rtl"===document.documentElement.dir,m=e=>{var t;t=()=>{const t=h();if(t){const i=e.NAME,s=t.fn[i];t.fn[i]=e.jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=()=>(t.fn[i]=s,e.jQueryInterface)}},"loading"===document.readyState?(p.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of p)e()})),p.push(t)):t()},g=(e,t=[],i=e)=>"function"==typeof e?e.call(...t):i,v=(e,t,s=!0)=>{if(!s)return void g(e);const r=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const s=Number.parseFloat(t),n=Number.parseFloat(i);return s||n?(t=t.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(i))):0})(t)+5;let o=!1;const a=({target:s})=>{s===t&&(o=!0,t.removeEventListener(i,a),g(e))};t.addEventListener(i,a),setTimeout((()=>{o||n(t)}),r)},y=(e,t,i,s)=>{const n=e.length;let r=e.indexOf(t);return-1===r?!i&&s?e[n-1]:e[0]:(r+=i?1:-1,s&&(r=(r+n)%n),e[Math.max(0,Math.min(r,n-1))])},b=/[^.]*(?=\..*)\.|.*/,_=/\..*/,w=/::\d+$/,x={};let T=1;const S={mouseenter:"mouseover",mouseleave:"mouseout"},E=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function C(e,t){return t&&`${t}::${T++}`||e.uidEvent||T++}function M(e){const t=C(e);return e.uidEvent=t,x[t]=x[t]||{},x[t]}function k(e,t,i=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===i))}function A(e,t,i){const s="string"==typeof t,n=s?i:t||i;let r=P(e);return E.has(r)||(r=e),[s,n,r]}function I(e,t,i,s,n){if("string"!=typeof t||!e)return;let[r,o,a]=A(t,i,s);if(t in S){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};o=e(o)}const l=M(e),c=l[a]||(l[a]={}),d=k(c,o,r?i:null);if(d)return void(d.oneOff=d.oneOff&&n);const u=C(o,t.replace(b,"")),h=r?function(e,t,i){return function s(n){const r=e.querySelectorAll(t);for(let{target:o}=n;o&&o!==this;o=o.parentNode)for(const a of r)if(a===o)return D(n,{delegateTarget:o}),s.oneOff&&z.off(e,n.type,t,i),i.apply(o,[n])}}(e,i,o):function(e,t){return function i(s){return D(s,{delegateTarget:e}),i.oneOff&&z.off(e,s.type,t),t.apply(e,[s])}}(e,o);h.delegationSelector=r?i:null,h.callable=o,h.oneOff=n,h.uidEvent=u,c[u]=h,e.addEventListener(a,h,r)}function O(e,t,i,s,n){const r=k(t[i],s,n);r&&(e.removeEventListener(i,r,Boolean(n)),delete t[i][r.uidEvent])}function L(e,t,i,s){const n=t[i]||{};for(const[r,o]of Object.entries(n))r.includes(s)&&O(e,t,i,o.callable,o.delegationSelector)}function P(e){return e=e.replace(_,""),S[e]||e}const z={on(e,t,i,s){I(e,t,i,s,!1)},one(e,t,i,s){I(e,t,i,s,!0)},off(e,t,i,s){if("string"!=typeof t||!e)return;const[n,r,o]=A(t,i,s),a=o!==t,l=M(e),c=l[o]||{},d=t.startsWith(".");if(void 0===r){if(d)for(const i of Object.keys(l))L(e,l,i,t.slice(1));for(const[i,s]of Object.entries(c)){const n=i.replace(w,"");a&&!t.includes(n)||O(e,l,o,s.callable,s.delegationSelector)}}else{if(!Object.keys(c).length)return;O(e,l,o,r,n?i:null)}},trigger(e,t,i){if("string"!=typeof t||!e)return null;const s=h();let n=null,r=!0,o=!0,a=!1;t!==P(t)&&s&&(n=s.Event(t,i),s(e).trigger(n),r=!n.isPropagationStopped(),o=!n.isImmediatePropagationStopped(),a=n.isDefaultPrevented());const l=D(new Event(t,{bubbles:r,cancelable:!0}),i);return a&&l.preventDefault(),o&&e.dispatchEvent(l),l.defaultPrevented&&n&&n.preventDefault(),l}};function D(e,t={}){for(const[i,s]of Object.entries(t))try{e[i]=s}catch(t){Object.defineProperty(e,i,{configurable:!0,get:()=>s})}return e}function $(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function B(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const R={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${B(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${B(t)}`)},getDataAttributes(e){if(!e)return{};const t={},i=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const s of i){let i=s.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1),t[i]=$(e.dataset[s])}return t},getDataAttribute:(e,t)=>$(e.getAttribute(`data-bs-${B(t)}`))};class F{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const i=r(t)?R.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...r(t)?R.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[s,n]of Object.entries(t)){const t=e[s],o=r(t)?"element":null==(i=t)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${s}" provided type "${o}" but expected type "${n}".`)}var i}}class j extends F{constructor(e,i){super(),(e=o(e))&&(this._element=e,this._config=this._getConfig(i),t.set(this._element,this.constructor.DATA_KEY,this))}dispose(){t.remove(this._element,this.constructor.DATA_KEY),z.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){v(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return t.get(o(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.7"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const N=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&"#"!==i?i.trim():null}return t?t.split(",").map((e=>s(e))).join(","):null},H={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const i=[];let s=e.parentNode.closest(t);for(;s;)i.push(s),s=s.parentNode.closest(t);return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!l(e)&&a(e)))},getSelectorFromElement(e){const t=N(e);return t&&H.findOne(t)?t:null},getElementFromSelector(e){const t=N(e);return t?H.findOne(t):null},getMultipleElementsFromSelector(e){const t=N(e);return t?H.find(t):[]}},W=(e,t="hide")=>{const i=`click.dismiss${e.EVENT_KEY}`,s=e.NAME;z.on(document,i,`[data-bs-dismiss="${s}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),l(this))return;const n=H.getElementFromSelector(this)||this.closest(`.${s}`);e.getOrCreateInstance(n)[t]()}))},q=".bs.alert",Y=`close${q}`,X=`closed${q}`;class V extends j{static get NAME(){return"alert"}close(){if(z.trigger(this._element,Y).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),z.trigger(this._element,X),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=V.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}W(V,"close"),m(V);const G='[data-bs-toggle="button"]';class U extends j{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=U.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}z.on(document,"click.bs.button.data-api",G,(e=>{e.preventDefault();const t=e.target.closest(G);U.getOrCreateInstance(t).toggle()})),m(U);const Q=".bs.swipe",Z=`touchstart${Q}`,K=`touchmove${Q}`,J=`touchend${Q}`,ee=`pointerdown${Q}`,te=`pointerup${Q}`,ie={endCallback:null,leftCallback:null,rightCallback:null},se={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class ne extends F{constructor(e,t){super(),this._element=e,e&&ne.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return ie}static get DefaultType(){return se}static get NAME(){return"swipe"}dispose(){z.off(this._element,Q)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),g(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&g(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(z.on(this._element,ee,(e=>this._start(e))),z.on(this._element,te,(e=>this._end(e))),this._element.classList.add("pointer-event")):(z.on(this._element,Z,(e=>this._start(e))),z.on(this._element,K,(e=>this._move(e))),z.on(this._element,J,(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const re=".bs.carousel",oe=".data-api",ae="next",le="prev",ce="left",de="right",ue=`slide${re}`,he=`slid${re}`,pe=`keydown${re}`,fe=`mouseenter${re}`,me=`mouseleave${re}`,ge=`dragstart${re}`,ve=`load${re}${oe}`,ye=`click${re}${oe}`,be="carousel",_e="active",we=".active",xe=".carousel-item",Te=we+xe,Se={ArrowLeft:de,ArrowRight:ce},Ee={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Ce={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Me extends j{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=H.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===be&&this.cycle()}static get Default(){return Ee}static get DefaultType(){return Ce}static get NAME(){return"carousel"}next(){this._slide(ae)}nextWhenVisible(){!document.hidden&&a(this._element)&&this.next()}prev(){this._slide(le)}pause(){this._isSliding&&n(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?z.one(this._element,he,(()=>this.cycle())):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void z.one(this._element,he,(()=>this.to(e)));const i=this._getItemIndex(this._getActive());if(i===e)return;const s=e>i?ae:le;this._slide(s,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&z.on(this._element,pe,(e=>this._keydown(e))),"hover"===this._config.pause&&(z.on(this._element,fe,(()=>this.pause())),z.on(this._element,me,(()=>this._maybeEnableCycle()))),this._config.touch&&ne.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of H.find(".carousel-item img",this._element))z.on(e,ge,(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(ce)),rightCallback:()=>this._slide(this._directionToOrder(de)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new ne(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=Se[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=H.findOne(we,this._indicatorsElement);t.classList.remove(_e),t.removeAttribute("aria-current");const i=H.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);i&&(i.classList.add(_e),i.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const i=this._getActive(),s=e===ae,n=t||y(this._getItems(),i,s,this._config.wrap);if(n===i)return;const r=this._getItemIndex(n),o=t=>z.trigger(this._element,t,{relatedTarget:n,direction:this._orderToDirection(e),from:this._getItemIndex(i),to:r});if(o(ue).defaultPrevented)return;if(!i||!n)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=n;const l=s?"carousel-item-start":"carousel-item-end",c=s?"carousel-item-next":"carousel-item-prev";n.classList.add(c),u(n),i.classList.add(l),n.classList.add(l);this._queueCallback((()=>{n.classList.remove(l,c),n.classList.add(_e),i.classList.remove(_e,c,l),this._isSliding=!1,o(he)}),i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return H.findOne(Te,this._element)}_getItems(){return H.find(xe,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return f()?e===ce?le:ae:e===ce?ae:le}_orderToDirection(e){return f()?e===le?ce:de:e===le?de:ce}static jQueryInterface(e){return this.each((function(){const t=Me.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}z.on(document,ye,"[data-bs-slide], [data-bs-slide-to]",(function(e){const t=H.getElementFromSelector(this);if(!t||!t.classList.contains(be))return;e.preventDefault();const i=Me.getOrCreateInstance(t),s=this.getAttribute("data-bs-slide-to");return s?(i.to(s),void i._maybeEnableCycle()):"next"===R.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),z.on(window,ve,(()=>{const e=H.find('[data-bs-ride="carousel"]');for(const t of e)Me.getOrCreateInstance(t)})),m(Me);const ke=".bs.collapse",Ae=`show${ke}`,Ie=`shown${ke}`,Oe=`hide${ke}`,Le=`hidden${ke}`,Pe=`click${ke}.data-api`,ze="show",De="collapse",$e="collapsing",Be=`:scope .${De} .${De}`,Re='[data-bs-toggle="collapse"]',Fe={parent:null,toggle:!0},je={parent:"(null|element)",toggle:"boolean"};class Ne extends j{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const i=H.find(Re);for(const e of i){const t=H.getSelectorFromElement(e),i=H.find(t).filter((e=>e===this._element));null!==t&&i.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Fe}static get DefaultType(){return je}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=>e!==this._element)).map((e=>Ne.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(z.trigger(this._element,Ae).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(De),this._element.classList.add($e),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove($e),this._element.classList.add(De,ze),this._element.style[t]="",z.trigger(this._element,Ie)}),this._element,!0),this._element.style[t]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(z.trigger(this._element,Oe).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,u(this._element),this._element.classList.add($e),this._element.classList.remove(De,ze);for(const e of this._triggerArray){const t=H.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove($e),this._element.classList.add(De),z.trigger(this._element,Le)}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(ze)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=o(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Re);for(const t of e){const e=H.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=H.find(Be,this._config.parent);return H.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const i of e)i.classList.toggle("collapsed",!t),i.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const i=Ne.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}))}}z.on(document,Pe,Re,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of H.getMultipleElementsFromSelector(this))Ne.getOrCreateInstance(e,{toggle:!1}).toggle()})),m(Ne);var He="top",We="bottom",qe="right",Ye="left",Xe="auto",Ve=[He,We,qe,Ye],Ge="start",Ue="end",Qe="clippingParents",Ze="viewport",Ke="popper",Je="reference",et=Ve.reduce((function(e,t){return e.concat([t+"-"+Ge,t+"-"+Ue])}),[]),tt=[].concat(Ve,[Xe]).reduce((function(e,t){return e.concat([t,t+"-"+Ge,t+"-"+Ue])}),[]),it="beforeRead",st="read",nt="afterRead",rt="beforeMain",ot="main",at="afterMain",lt="beforeWrite",ct="write",dt="afterWrite",ut=[it,st,nt,rt,ot,at,lt,ct,dt];function ht(e){return e?(e.nodeName||"").toLowerCase():null}function pt(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ft(e){return e instanceof pt(e).Element||e instanceof Element}function mt(e){return e instanceof pt(e).HTMLElement||e instanceof HTMLElement}function gt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof pt(e).ShadowRoot||e instanceof ShadowRoot)}const vt={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},s=t.attributes[e]||{},n=t.elements[e];mt(n)&&ht(n)&&(Object.assign(n.style,i),Object.keys(s).forEach((function(e){var t=s[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var s=t.elements[e],n=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});mt(s)&&ht(s)&&(Object.assign(s.style,r),Object.keys(n).forEach((function(e){s.removeAttribute(e)})))}))}},requires:["computeStyles"]};function yt(e){return e.split("-")[0]}var bt=Math.max,_t=Math.min,wt=Math.round;function xt(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Tt(){return!/^((?!chrome|android).)*safari/i.test(xt())}function St(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var s=e.getBoundingClientRect(),n=1,r=1;t&&mt(e)&&(n=e.offsetWidth>0&&wt(s.width)/e.offsetWidth||1,r=e.offsetHeight>0&&wt(s.height)/e.offsetHeight||1);var o=(ft(e)?pt(e):window).visualViewport,a=!Tt()&&i,l=(s.left+(a&&o?o.offsetLeft:0))/n,c=(s.top+(a&&o?o.offsetTop:0))/r,d=s.width/n,u=s.height/r;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function Et(e){var t=St(e),i=e.offsetWidth,s=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:s}}function Ct(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&>(i)){var s=t;do{if(s&&e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function Mt(e){return pt(e).getComputedStyle(e)}function kt(e){return["table","td","th"].indexOf(ht(e))>=0}function At(e){return((ft(e)?e.ownerDocument:e.document)||window.document).documentElement}function It(e){return"html"===ht(e)?e:e.assignedSlot||e.parentNode||(gt(e)?e.host:null)||At(e)}function Ot(e){return mt(e)&&"fixed"!==Mt(e).position?e.offsetParent:null}function Lt(e){for(var t=pt(e),i=Ot(e);i&&kt(i)&&"static"===Mt(i).position;)i=Ot(i);return i&&("html"===ht(i)||"body"===ht(i)&&"static"===Mt(i).position)?t:i||function(e){var t=/firefox/i.test(xt());if(/Trident/i.test(xt())&&mt(e)&&"fixed"===Mt(e).position)return null;var i=It(e);for(gt(i)&&(i=i.host);mt(i)&&["html","body"].indexOf(ht(i))<0;){var s=Mt(i);if("none"!==s.transform||"none"!==s.perspective||"paint"===s.contain||-1!==["transform","perspective"].indexOf(s.willChange)||t&&"filter"===s.willChange||t&&s.filter&&"none"!==s.filter)return i;i=i.parentNode}return null}(e)||t}function Pt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function zt(e,t,i){return bt(e,_t(t,i))}function Dt(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function $t(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}const Bt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,s=e.name,n=e.options,r=i.elements.arrow,o=i.modifiersData.popperOffsets,a=yt(i.placement),l=Pt(a),c=[Ye,qe].indexOf(a)>=0?"height":"width";if(r&&o){var d=function(e,t){return Dt("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:$t(e,Ve))}(n.padding,i),u=Et(r),h="y"===l?He:Ye,p="y"===l?We:qe,f=i.rects.reference[c]+i.rects.reference[l]-o[l]-i.rects.popper[c],m=o[l]-i.rects.reference[l],g=Lt(r),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=f/2-m/2,b=d[h],_=v-u[c]-d[p],w=v/2-u[c]/2+y,x=zt(b,w,_),T=l;i.modifiersData[s]=((t={})[T]=x,t.centerOffset=x-w,t)}},effect:function(e){var t=e.state,i=e.options.element,s=void 0===i?"[data-popper-arrow]":i;null!=s&&("string"!=typeof s||(s=t.elements.popper.querySelector(s)))&&Ct(t.elements.popper,s)&&(t.elements.arrow=s)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Rt(e){return e.split("-")[1]}var Ft={top:"auto",right:"auto",bottom:"auto",left:"auto"};function jt(e){var t,i=e.popper,s=e.popperRect,n=e.placement,r=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,h=o.x,p=void 0===h?0:h,f=o.y,m=void 0===f?0:f,g="function"==typeof d?d({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),b=Ye,_=He,w=window;if(c){var x=Lt(i),T="clientHeight",S="clientWidth";if(x===pt(i)&&"static"!==Mt(x=At(i)).position&&"absolute"===a&&(T="scrollHeight",S="scrollWidth"),n===He||(n===Ye||n===qe)&&r===Ue)_=We,m-=(u&&x===w&&w.visualViewport?w.visualViewport.height:x[T])-s.height,m*=l?1:-1;if(n===Ye||(n===He||n===We)&&r===Ue)b=qe,p-=(u&&x===w&&w.visualViewport?w.visualViewport.width:x[S])-s.width,p*=l?1:-1}var E,C=Object.assign({position:a},c&&Ft),M=!0===d?function(e,t){var i=e.x,s=e.y,n=t.devicePixelRatio||1;return{x:wt(i*n)/n||0,y:wt(s*n)/n||0}}({x:p,y:m},pt(i)):{x:p,y:m};return p=M.x,m=M.y,l?Object.assign({},C,((E={})[_]=y?"0":"",E[b]=v?"0":"",E.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",E)):Object.assign({},C,((t={})[_]=y?m+"px":"",t[b]=v?p+"px":"",t.transform="",t))}const Nt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,s=i.gpuAcceleration,n=void 0===s||s,r=i.adaptive,o=void 0===r||r,a=i.roundOffsets,l=void 0===a||a,c={placement:yt(t.placement),variation:Rt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,jt(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,jt(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Ht={passive:!0};const Wt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,s=e.options,n=s.scroll,r=void 0===n||n,o=s.resize,a=void 0===o||o,l=pt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach((function(e){e.addEventListener("scroll",i.update,Ht)})),a&&l.addEventListener("resize",i.update,Ht),function(){r&&c.forEach((function(e){e.removeEventListener("scroll",i.update,Ht)})),a&&l.removeEventListener("resize",i.update,Ht)}},data:{}};var qt={left:"right",right:"left",bottom:"top",top:"bottom"};function Yt(e){return e.replace(/left|right|bottom|top/g,(function(e){return qt[e]}))}var Xt={start:"end",end:"start"};function Vt(e){return e.replace(/start|end/g,(function(e){return Xt[e]}))}function Gt(e){var t=pt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ut(e){return St(At(e)).left+Gt(e).scrollLeft}function Qt(e){var t=Mt(e),i=t.overflow,s=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+n+s)}function Zt(e){return["html","body","#document"].indexOf(ht(e))>=0?e.ownerDocument.body:mt(e)&&Qt(e)?e:Zt(It(e))}function Kt(e,t){var i;void 0===t&&(t=[]);var s=Zt(e),n=s===(null==(i=e.ownerDocument)?void 0:i.body),r=pt(s),o=n?[r].concat(r.visualViewport||[],Qt(s)?s:[]):s,a=t.concat(o);return n?a:a.concat(Kt(It(o)))}function Jt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ei(e,t,i){return t===Ze?Jt(function(e,t){var i=pt(e),s=At(e),n=i.visualViewport,r=s.clientWidth,o=s.clientHeight,a=0,l=0;if(n){r=n.width,o=n.height;var c=Tt();(c||!c&&"fixed"===t)&&(a=n.offsetLeft,l=n.offsetTop)}return{width:r,height:o,x:a+Ut(e),y:l}}(e,i)):ft(t)?function(e,t){var i=St(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):Jt(function(e){var t,i=At(e),s=Gt(e),n=null==(t=e.ownerDocument)?void 0:t.body,r=bt(i.scrollWidth,i.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),o=bt(i.scrollHeight,i.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-s.scrollLeft+Ut(e),l=-s.scrollTop;return"rtl"===Mt(n||i).direction&&(a+=bt(i.clientWidth,n?n.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}(At(e)))}function ti(e,t,i,s){var n="clippingParents"===t?function(e){var t=Kt(It(e)),i=["absolute","fixed"].indexOf(Mt(e).position)>=0&&mt(e)?Lt(e):e;return ft(i)?t.filter((function(e){return ft(e)&&Ct(e,i)&&"body"!==ht(e)})):[]}(e):[].concat(t),r=[].concat(n,[i]),o=r[0],a=r.reduce((function(t,i){var n=ei(e,i,s);return t.top=bt(n.top,t.top),t.right=_t(n.right,t.right),t.bottom=_t(n.bottom,t.bottom),t.left=bt(n.left,t.left),t}),ei(e,o,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ii(e){var t,i=e.reference,s=e.element,n=e.placement,r=n?yt(n):null,o=n?Rt(n):null,a=i.x+i.width/2-s.width/2,l=i.y+i.height/2-s.height/2;switch(r){case He:t={x:a,y:i.y-s.height};break;case We:t={x:a,y:i.y+i.height};break;case qe:t={x:i.x+i.width,y:l};break;case Ye:t={x:i.x-s.width,y:l};break;default:t={x:i.x,y:i.y}}var c=r?Pt(r):null;if(null!=c){var d="y"===c?"height":"width";switch(o){case Ge:t[c]=t[c]-(i[d]/2-s[d]/2);break;case Ue:t[c]=t[c]+(i[d]/2-s[d]/2)}}return t}function si(e,t){void 0===t&&(t={});var i=t,s=i.placement,n=void 0===s?e.placement:s,r=i.strategy,o=void 0===r?e.strategy:r,a=i.boundary,l=void 0===a?Qe:a,c=i.rootBoundary,d=void 0===c?Ze:c,u=i.elementContext,h=void 0===u?Ke:u,p=i.altBoundary,f=void 0!==p&&p,m=i.padding,g=void 0===m?0:m,v=Dt("number"!=typeof g?g:$t(g,Ve)),y=h===Ke?Je:Ke,b=e.rects.popper,_=e.elements[f?y:h],w=ti(ft(_)?_:_.contextElement||At(e.elements.popper),l,d,o),x=St(e.elements.reference),T=ii({reference:x,element:b,placement:n}),S=Jt(Object.assign({},b,T)),E=h===Ke?S:x,C={top:w.top-E.top+v.top,bottom:E.bottom-w.bottom+v.bottom,left:w.left-E.left+v.left,right:E.right-w.right+v.right},M=e.modifiersData.offset;if(h===Ke&&M){var k=M[n];Object.keys(C).forEach((function(e){var t=[qe,We].indexOf(e)>=0?1:-1,i=[He,We].indexOf(e)>=0?"y":"x";C[e]+=k[i]*t}))}return C}function ni(e,t){void 0===t&&(t={});var i=t,s=i.placement,n=i.boundary,r=i.rootBoundary,o=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?tt:l,d=Rt(s),u=d?a?et:et.filter((function(e){return Rt(e)===d})):Ve,h=u.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=u);var p=h.reduce((function(t,i){return t[i]=si(e,{placement:i,boundary:n,rootBoundary:r,padding:o})[yt(i)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}const ri={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,s=e.name;if(!t.modifiersData[s]._skip){for(var n=i.mainAxis,r=void 0===n||n,o=i.altAxis,a=void 0===o||o,l=i.fallbackPlacements,c=i.padding,d=i.boundary,u=i.rootBoundary,h=i.altBoundary,p=i.flipVariations,f=void 0===p||p,m=i.allowedAutoPlacements,g=t.options.placement,v=yt(g),y=l||(v===g||!f?[Yt(g)]:function(e){if(yt(e)===Xe)return[];var t=Yt(e);return[Vt(e),t,Vt(t)]}(g)),b=[g].concat(y).reduce((function(e,i){return e.concat(yt(i)===Xe?ni(t,{placement:i,boundary:d,rootBoundary:u,padding:c,flipVariations:f,allowedAutoPlacements:m}):i)}),[]),_=t.rects.reference,w=t.rects.popper,x=new Map,T=!0,S=b[0],E=0;E=0,I=A?"width":"height",O=si(t,{placement:C,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),L=A?k?qe:Ye:k?We:He;_[I]>w[I]&&(L=Yt(L));var P=Yt(L),z=[];if(r&&z.push(O[M]<=0),a&&z.push(O[L]<=0,O[P]<=0),z.every((function(e){return e}))){S=C,T=!1;break}x.set(C,z)}if(T)for(var D=function(e){var t=b.find((function(t){var i=x.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},$=f?3:1;$>0;$--){if("break"===D($))break}t.placement!==S&&(t.modifiersData[s]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function oi(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function ai(e){return[He,qe,We,Ye].some((function(t){return e[t]>=0}))}const li={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,s=t.rects.reference,n=t.rects.popper,r=t.modifiersData.preventOverflow,o=si(t,{elementContext:"reference"}),a=si(t,{altBoundary:!0}),l=oi(o,s),c=oi(a,n,r),d=ai(l),u=ai(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}};const ci={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,s=e.name,n=i.offset,r=void 0===n?[0,0]:n,o=tt.reduce((function(e,i){return e[i]=function(e,t,i){var s=yt(e),n=[Ye,He].indexOf(s)>=0?-1:1,r="function"==typeof i?i(Object.assign({},t,{placement:e})):i,o=r[0],a=r[1];return o=o||0,a=(a||0)*n,[Ye,qe].indexOf(s)>=0?{x:a,y:o}:{x:o,y:a}}(i,t.rects,r),e}),{}),a=o[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[s]=o}};const di={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=ii({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}};const ui={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,s=e.name,n=i.mainAxis,r=void 0===n||n,o=i.altAxis,a=void 0!==o&&o,l=i.boundary,c=i.rootBoundary,d=i.altBoundary,u=i.padding,h=i.tether,p=void 0===h||h,f=i.tetherOffset,m=void 0===f?0:f,g=si(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=yt(t.placement),y=Rt(t.placement),b=!y,_=Pt(v),w="x"===_?"y":"x",x=t.modifiersData.popperOffsets,T=t.rects.reference,S=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,C="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(x){if(r){var A,I="y"===_?He:Ye,O="y"===_?We:qe,L="y"===_?"height":"width",P=x[_],z=P+g[I],D=P-g[O],$=p?-S[L]/2:0,B=y===Ge?T[L]:S[L],R=y===Ge?-S[L]:-T[L],F=t.elements.arrow,j=p&&F?Et(F):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=N[I],W=N[O],q=zt(0,T[L],j[L]),Y=b?T[L]/2-$-q-H-C.mainAxis:B-q-H-C.mainAxis,X=b?-T[L]/2+$+q+W+C.mainAxis:R+q+W+C.mainAxis,V=t.elements.arrow&&Lt(t.elements.arrow),G=V?"y"===_?V.clientTop||0:V.clientLeft||0:0,U=null!=(A=null==M?void 0:M[_])?A:0,Q=P+X-U,Z=zt(p?_t(z,P+Y-U-G):z,P,p?bt(D,Q):D);x[_]=Z,k[_]=Z-P}if(a){var K,J="x"===_?He:Ye,ee="x"===_?We:qe,te=x[w],ie="y"===w?"height":"width",se=te+g[J],ne=te-g[ee],re=-1!==[He,Ye].indexOf(v),oe=null!=(K=null==M?void 0:M[w])?K:0,ae=re?se:te-T[ie]-S[ie]-oe+C.altAxis,le=re?te+T[ie]+S[ie]-oe-C.altAxis:ne,ce=p&&re?function(e,t,i){var s=zt(e,t,i);return s>i?i:s}(ae,te,le):zt(p?ae:se,te,p?le:ne);x[w]=ce,k[w]=ce-te}t.modifiersData[s]=k}},requiresIfExists:["offset"]};function hi(e,t,i){void 0===i&&(i=!1);var s,n,r=mt(t),o=mt(t)&&function(e){var t=e.getBoundingClientRect(),i=wt(t.width)/e.offsetWidth||1,s=wt(t.height)/e.offsetHeight||1;return 1!==i||1!==s}(t),a=At(t),l=St(e,o,i),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!i)&&(("body"!==ht(t)||Qt(a))&&(c=(s=t)!==pt(s)&&mt(s)?{scrollLeft:(n=s).scrollLeft,scrollTop:n.scrollTop}:Gt(s)),mt(t)?((d=St(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=Ut(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function pi(e){var t=new Map,i=new Set,s=[];function n(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var s=t.get(e);s&&n(s)}})),s.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||n(e)})),s}var fi={placement:"bottom",modifiers:[],strategy:"absolute"};function mi(){for(var e=arguments.length,t=new Array(e),i=0;iNumber.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(R.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...g(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){const i=H.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((e=>a(e)));i.length&&y(i,t,e===Ei,!i.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=Yi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=H.find(Di);for(const i of t){const t=Yi.getInstance(i);if(!t||!1===t._config.autoClose)continue;const s=e.composedPath(),n=s.includes(t._menu);if(s.includes(t._element)||"inside"===t._config.autoClose&&!n||"outside"===t._config.autoClose&&n)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const r={relatedTarget:t._element};"click"===e.type&&(r.clickEvent=e),t._completeHide(r)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),i="Escape"===e.key,s=[Si,Ei].includes(e.key);if(!s&&!i)return;if(t&&!i)return;e.preventDefault();const n=this.matches(zi)?this:H.prev(this,zi)[0]||H.next(this,zi)[0]||H.findOne(zi,e.delegateTarget.parentNode),r=Yi.getOrCreateInstance(n);if(s)return e.stopPropagation(),r.show(),void r._selectMenuItem(e);r._isShown()&&(e.stopPropagation(),r.hide(),n.focus())}}z.on(document,Oi,zi,Yi.dataApiKeydownHandler),z.on(document,Oi,$i,Yi.dataApiKeydownHandler),z.on(document,Ii,Yi.clearMenus),z.on(document,Li,Yi.clearMenus),z.on(document,Ii,zi,(function(e){e.preventDefault(),Yi.getOrCreateInstance(this).toggle()})),m(Yi);const Xi="backdrop",Vi="show",Gi=`mousedown.bs.${Xi}`,Ui={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Qi={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Zi extends F{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Ui}static get DefaultType(){return Qi}static get NAME(){return Xi}show(e){if(!this._config.isVisible)return void g(e);this._append();const t=this._getElement();this._config.isAnimated&&u(t),t.classList.add(Vi),this._emulateAnimation((()=>{g(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(Vi),this._emulateAnimation((()=>{this.dispose(),g(e)}))):g(e)}dispose(){this._isAppended&&(z.off(this._element,Gi),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=o(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),z.on(e,Gi,(()=>{g(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){v(e,this._getElement(),this._config.isAnimated)}}const Ki=".bs.focustrap",Ji=`focusin${Ki}`,es=`keydown.tab${Ki}`,ts="backward",is={autofocus:!0,trapElement:null},ss={autofocus:"boolean",trapElement:"element"};class ns extends F{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return is}static get DefaultType(){return ss}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),z.off(document,Ki),z.on(document,Ji,(e=>this._handleFocusin(e))),z.on(document,es,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,z.off(document,Ki))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const i=H.focusableChildren(t);0===i.length?t.focus():this._lastTabNavDirection===ts?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?ts:"forward")}}const rs=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",os=".sticky-top",as="padding-right",ls="margin-right";class cs{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,as,(t=>t+e)),this._setElementAttributes(rs,as,(t=>t+e)),this._setElementAttributes(os,ls,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,as),this._resetElementAttributes(rs,as),this._resetElementAttributes(os,ls)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,i){const s=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+s)return;this._saveInitialAttribute(e,t);const n=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${i(Number.parseFloat(n))}px`)}))}_saveInitialAttribute(e,t){const i=e.style.getPropertyValue(t);i&&R.setDataAttribute(e,t,i)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const i=R.getDataAttribute(e,t);null!==i?(R.removeDataAttribute(e,t),e.style.setProperty(t,i)):e.style.removeProperty(t)}))}_applyManipulationCallback(e,t){if(r(e))t(e);else for(const i of H.find(e,this._element))t(i)}}const ds=".bs.modal",us=`hide${ds}`,hs=`hidePrevented${ds}`,ps=`hidden${ds}`,fs=`show${ds}`,ms=`shown${ds}`,gs=`resize${ds}`,vs=`click.dismiss${ds}`,ys=`mousedown.dismiss${ds}`,bs=`keydown.dismiss${ds}`,_s=`click${ds}.data-api`,ws="modal-open",xs="show",Ts="modal-static",Ss={backdrop:!0,focus:!0,keyboard:!0},Es={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Cs extends j{constructor(e,t){super(e,t),this._dialog=H.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new cs,this._addEventListeners()}static get Default(){return Ss}static get DefaultType(){return Es}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||this._isTransitioning)return;z.trigger(this._element,fs,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(ws),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))))}hide(){if(!this._isShown||this._isTransitioning)return;z.trigger(this._element,us).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(xs),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated()))}dispose(){z.off(window,ds),z.off(this._dialog,ds),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Zi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ns({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=H.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),u(this._element),this._element.classList.add(xs);this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,z.trigger(this._element,ms,{relatedTarget:e})}),this._dialog,this._isAnimated())}_addEventListeners(){z.on(this._element,bs,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),z.on(window,gs,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),z.on(this._element,ys,(e=>{z.one(this._element,vs,(t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(ws),this._resetAdjustments(),this._scrollBar.reset(),z.trigger(this._element,ps)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(z.trigger(this._element,hs).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(Ts)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Ts),this._queueCallback((()=>{this._element.classList.remove(Ts),this._queueCallback((()=>{this._element.style.overflowY=t}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),i=t>0;if(i&&!e){const e=f()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!i&&e){const e=f()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const i=Cs.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e](t)}}))}}z.on(document,_s,'[data-bs-toggle="modal"]',(function(e){const t=H.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),z.one(t,fs,(e=>{e.defaultPrevented||z.one(t,ps,(()=>{a(this)&&this.focus()}))}));const i=H.findOne(".modal.show");i&&Cs.getInstance(i).hide();Cs.getOrCreateInstance(t).toggle(this)})),W(Cs),m(Cs);const Ms=".bs.offcanvas",ks=".data-api",As=`load${Ms}${ks}`,Is="show",Os="showing",Ls="hiding",Ps=".offcanvas.show",zs=`show${Ms}`,Ds=`shown${Ms}`,$s=`hide${Ms}`,Bs=`hidePrevented${Ms}`,Rs=`hidden${Ms}`,Fs=`resize${Ms}`,js=`click${Ms}${ks}`,Ns=`keydown.dismiss${Ms}`,Hs={backdrop:!0,keyboard:!0,scroll:!1},Ws={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class qs extends j{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Hs}static get DefaultType(){return Ws}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown)return;if(z.trigger(this._element,zs,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new cs).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Os);this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Is),this._element.classList.remove(Os),z.trigger(this._element,Ds,{relatedTarget:e})}),this._element,!0)}hide(){if(!this._isShown)return;if(z.trigger(this._element,$s).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Ls),this._backdrop.hide();this._queueCallback((()=>{this._element.classList.remove(Is,Ls),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new cs).reset(),z.trigger(this._element,Rs)}),this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new Zi({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():z.trigger(this._element,Bs)}:null})}_initializeFocusTrap(){return new ns({trapElement:this._element})}_addEventListeners(){z.on(this._element,Ns,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():z.trigger(this._element,Bs))}))}static jQueryInterface(e){return this.each((function(){const t=qs.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}z.on(document,js,'[data-bs-toggle="offcanvas"]',(function(e){const t=H.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),l(this))return;z.one(t,Rs,(()=>{a(this)&&this.focus()}));const i=H.findOne(Ps);i&&i!==t&&qs.getInstance(i).hide();qs.getOrCreateInstance(t).toggle(this)})),z.on(window,As,(()=>{for(const e of H.find(Ps))qs.getOrCreateInstance(e).show()})),z.on(window,Fs,(()=>{for(const e of H.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&qs.getOrCreateInstance(e).hide()})),W(qs),m(qs);const Ys={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Xs=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Vs=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Gs=(e,t)=>{const i=e.nodeName.toLowerCase();return t.includes(i)?!Xs.has(i)||Boolean(Vs.test(e.nodeValue)):t.filter((e=>e instanceof RegExp)).some((e=>e.test(i)))};const Us={allowList:Ys,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Qs={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Zs={entry:"(string|element|function|null)",selector:"(string|element)"};class Ks extends F{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Us}static get DefaultType(){return Qs}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((e=>this._resolvePossibleFunction(e))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,i]of Object.entries(this._config.content))this._setContent(e,i,t);const t=e.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&t.classList.add(...i.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,i]of Object.entries(e))super._typeCheckConfig({selector:t,entry:i},Zs)}_setContent(e,t,i){const s=H.findOne(i,e);s&&((t=this._resolvePossibleFunction(t))?r(t)?this._putElementInTemplate(o(t),s):this._config.html?s.innerHTML=this._maybeSanitize(t):s.textContent=t:s.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,i){if(!e.length)return e;if(i&&"function"==typeof i)return i(e);const s=(new window.DOMParser).parseFromString(e,"text/html"),n=[].concat(...s.body.querySelectorAll("*"));for(const e of n){const i=e.nodeName.toLowerCase();if(!Object.keys(t).includes(i)){e.remove();continue}const s=[].concat(...e.attributes),n=[].concat(t["*"]||[],t[i]||[]);for(const t of s)Gs(t,n)||e.removeAttribute(t.nodeName)}return s.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return g(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const Js=new Set(["sanitize","allowList","sanitizeFn"]),en="fade",tn="show",sn=".modal",nn="hide.bs.modal",rn="hover",on="focus",an="click",ln={AUTO:"auto",TOP:"top",RIGHT:f()?"left":"right",BOTTOM:"bottom",LEFT:f()?"right":"left"},cn={allowList:Ys,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},dn={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class un extends j{constructor(e,t){if(void 0===_i)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return cn}static get DefaultType(){return dn}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),z.off(this._element.closest(sn),nn,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=z.trigger(this._element,this.constructor.eventName("show")),t=(c(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(i),z.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(tn),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))z.on(e,"mouseover",d);this._queueCallback((()=>{z.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(z.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(tn),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))z.off(e,"mouseover",d);this._activeTrigger[an]=!1,this._activeTrigger[on]=!1,this._activeTrigger[rn]=!1,this._isHovered=null;this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),z.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(en,tn),t.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",i),this._isAnimated()&&t.classList.add(en),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Ks({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(en)}_isShown(){return this.tip&&this.tip.classList.contains(tn)}_createPopper(e){const t=g(this._config.placement,[this,e,this._element]),i=ln[t.toUpperCase()];return bi(this._element,e,this._getPopperConfig(i))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return g(e,[this._element,this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...g(this._config.popperConfig,[void 0,t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)z.on(this._element,this.constructor.eventName("click"),this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger[an]=!(t._isShown()&&t._activeTrigger[an]),t.toggle()}));else if("manual"!==t){const e=t===rn?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=t===rn?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");z.on(this._element,e,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?on:rn]=!0,t._enter()})),z.on(this._element,i,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?on:rn]=t._element.contains(e.relatedTarget),t._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},z.on(this._element.closest(sn),nn,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=R.getDataAttributes(this._element);for(const e of Object.keys(t))Js.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:o(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,i]of Object.entries(this._config))this.constructor.Default[t]!==i&&(e[t]=i);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each((function(){const t=un.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}m(un);const hn={...un.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},pn={...un.DefaultType,content:"(null|string|element|function)"};class fn extends un{static get Default(){return hn}static get DefaultType(){return pn}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each((function(){const t=fn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}m(fn);const mn=".bs.scrollspy",gn=`activate${mn}`,vn=`click${mn}`,yn=`load${mn}.data-api`,bn="active",_n="[href]",wn=".nav-link",xn=`${wn}, .nav-item > ${wn}, .list-group-item`,Tn={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Sn={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class En extends j{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Tn}static get DefaultType(){return Sn}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=o(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map((e=>Number.parseFloat(e)))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(z.off(this._config.target,vn),z.on(this._config.target,vn,_n,(e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const i=this._rootElement||window,s=t.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:s,behavior:"smooth"});i.scrollTop=s}})))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((e=>this._observerCallback(e)),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),i=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},s=(this._rootElement||document.documentElement).scrollTop,n=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const r of e){if(!r.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(r));continue}const e=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&e){if(i(r),!s)return}else n||e||i(r)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=H.find(_n,this._config.target);for(const t of e){if(!t.hash||l(t))continue;const e=H.findOne(decodeURI(t.hash),this._element);a(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(bn),this._activateParents(e),z.trigger(this._element,gn,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))H.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(bn);else for(const t of H.parents(e,".nav, .list-group"))for(const e of H.prev(t,xn))e.classList.add(bn)}_clearActiveClass(e){e.classList.remove(bn);const t=H.find(`${_n}.${bn}`,e);for(const e of t)e.classList.remove(bn)}static jQueryInterface(e){return this.each((function(){const t=En.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}z.on(window,yn,(()=>{for(const e of H.find('[data-bs-spy="scroll"]'))En.getOrCreateInstance(e)})),m(En);const Cn=".bs.tab",Mn=`hide${Cn}`,kn=`hidden${Cn}`,An=`show${Cn}`,In=`shown${Cn}`,On=`click${Cn}`,Ln=`keydown${Cn}`,Pn=`load${Cn}`,zn="ArrowLeft",Dn="ArrowRight",$n="ArrowUp",Bn="ArrowDown",Rn="Home",Fn="End",jn="active",Nn="fade",Hn="show",Wn=".dropdown-toggle",qn=`:not(${Wn})`,Yn='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Xn=`${`.nav-link${qn}, .list-group-item${qn}, [role="tab"]${qn}`}, ${Yn}`,Vn=`.${jn}[data-bs-toggle="tab"], .${jn}[data-bs-toggle="pill"], .${jn}[data-bs-toggle="list"]`;class Gn extends j{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),z.on(this._element,Ln,(e=>this._keydown(e))))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),i=t?z.trigger(t,Mn,{relatedTarget:e}):null;z.trigger(e,An,{relatedTarget:t}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(jn),this._activate(H.getElementFromSelector(e));this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),z.trigger(e,In,{relatedTarget:t})):e.classList.add(Hn)}),e,e.classList.contains(Nn))}_deactivate(e,t){if(!e)return;e.classList.remove(jn),e.blur(),this._deactivate(H.getElementFromSelector(e));this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),z.trigger(e,kn,{relatedTarget:t})):e.classList.remove(Hn)}),e,e.classList.contains(Nn))}_keydown(e){if(![zn,Dn,$n,Bn,Rn,Fn].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter((e=>!l(e)));let i;if([Rn,Fn].includes(e.key))i=t[e.key===Rn?0:t.length-1];else{const s=[Dn,Bn].includes(e.key);i=y(t,e.target,s,!0)}i&&(i.focus({preventScroll:!0}),Gn.getOrCreateInstance(i).show())}_getChildren(){return H.find(Xn,this._parent)}_getActiveElem(){return this._getChildren().find((e=>this._elemIsActive(e)))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),i=this._getOuterElement(e);e.setAttribute("aria-selected",t),i!==e&&this._setAttributeIfNotExists(i,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=H.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const i=this._getOuterElement(e);if(!i.classList.contains("dropdown"))return;const s=(e,s)=>{const n=H.findOne(e,i);n&&n.classList.toggle(s,t)};s(Wn,jn),s(".dropdown-menu",Hn),i.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,i){e.hasAttribute(t)||e.setAttribute(t,i)}_elemIsActive(e){return e.classList.contains(jn)}_getInnerElement(e){return e.matches(Xn)?e:H.findOne(Xn,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each((function(){const t=Gn.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}z.on(document,On,Yn,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),l(this)||Gn.getOrCreateInstance(this).show()})),z.on(window,Pn,(()=>{for(const e of H.find(Vn))Gn.getOrCreateInstance(e)})),m(Gn);const Un=".bs.toast",Qn=`mouseover${Un}`,Zn=`mouseout${Un}`,Kn=`focusin${Un}`,Jn=`focusout${Un}`,er=`hide${Un}`,tr=`hidden${Un}`,ir=`show${Un}`,sr=`shown${Un}`,nr="hide",rr="show",or="showing",ar={animation:"boolean",autohide:"boolean",delay:"number"},lr={animation:!0,autohide:!0,delay:5e3};class cr extends j{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return lr}static get DefaultType(){return ar}static get NAME(){return"toast"}show(){if(z.trigger(this._element,ir).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(nr),u(this._element),this._element.classList.add(rr,or),this._queueCallback((()=>{this._element.classList.remove(or),z.trigger(this._element,sr),this._maybeScheduleHide()}),this._element,this._config.animation)}hide(){if(!this.isShown())return;if(z.trigger(this._element,er).defaultPrevented)return;this._element.classList.add(or),this._queueCallback((()=>{this._element.classList.add(nr),this._element.classList.remove(or,rr),z.trigger(this._element,tr)}),this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(rr),super.dispose()}isShown(){return this._element.classList.contains(rr)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const i=e.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){z.on(this._element,Qn,(e=>this._onInteraction(e,!0))),z.on(this._element,Zn,(e=>this._onInteraction(e,!1))),z.on(this._element,Kn,(e=>this._onInteraction(e,!0))),z.on(this._element,Jn,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=cr.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}W(cr),m(cr);return{Alert:V,Button:U,Carousel:Me,Collapse:Ne,Dropdown:Yi,Modal:Cs,Offcanvas:qs,Popover:fn,ScrollSpy:En,Tab:Gn,Toast:cr,Tooltip:un}})), /*! GSAP Version: 3.13.0 Plugin URL: https://gsap.com License: Copyright 2025, GreenSock. All rights reserved. | Subject to the terms at https://gsap.com/standard-license or for Club GreenSock members, the agreement issued with that membership. | author: Jack Doyle, jack@greensock.com !*/ function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,(function(e){"use strict";function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e} /*! * GSAP 3.13.0 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var s,n,r,o,a,l,c,d,u,h,p,f,m,g,v,y={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},b={duration:.5,overwrite:!1,delay:0},_=1e8,w=1e-8,x=2*Math.PI,T=x/4,S=0,E=Math.sqrt,C=Math.cos,M=Math.sin,k=function(e){return"string"==typeof e},A=function(e){return"function"==typeof e},I=function(e){return"number"==typeof e},O=function(e){return void 0===e},L=function(e){return"object"==typeof e},P=function(e){return!1!==e},z=function(){return"undefined"!=typeof window},D=function(e){return A(e)||k(e)},$="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},B=Array.isArray,R=/(?:-?\.?\d|\.)+/gi,F=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,j=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,N=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,H=/[+-]=-?[.\d]+/,W=/[^,'"\[\]\s]+/gi,q=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Y={},X={},V=function(e){return(X=Te(e,Y))&&Si},G=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},U=function(e,t){return!t&&console.warn(e)},Q=function(e,t){return e&&(Y[e]=t)&&X&&(X[e]=t)||Y},Z=function(){return 0},K={suppressEvents:!0,isStart:!0,kill:!1},J={suppressEvents:!0,kill:!1},ee={suppressEvents:!0},te={},ie=[],se={},ne={},re={},oe=30,ae=[],le="",ce=function(e){var t,i,s=e[0];if(L(s)||A(s)||(e=[e]),!(t=(s._gsap||{}).harness)){for(i=ae.length;i--&&!ae[i].targetTest(s););t=ae[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new Rt(e[i],t)))||e.splice(i,1);return e},de=function(e){return e._gsap||ce(tt(e))[0]._gsap},ue=function(e,t,i){return(i=e[t])&&A(i)?e[t]():O(i)&&e.getAttribute&&e.getAttribute(t)||i},he=function(e,t){return(e=e.split(",")).forEach(t)||e},pe=function(e){return Math.round(1e5*e)/1e5||0},fe=function(e){return Math.round(1e7*e)/1e7||0},me=function(e,t){var i=t.charAt(0),s=parseFloat(t.substr(2));return e=parseFloat(e),"+"===i?e+s:"-"===i?e-s:"*"===i?e*s:e/s},ge=function(e,t){for(var i=t.length,s=0;e.indexOf(t[s])<0&&++sr;)o=o._prev;return o?(t._next=o._next,o._next=t):(t._next=e[i],e[i]=t),t._next?t._next._prev=t:e[s]=t,t._prev=o,t.parent=t._dp=e,t},ke=function(e,t,i,s){void 0===i&&(i="_first"),void 0===s&&(s="_last");var n=t._prev,r=t._next;n?n._next=r:e[i]===t&&(e[i]=r),r?r._prev=n:e[s]===t&&(e[s]=n),t._next=t._prev=t.parent=null},Ae=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Ie=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var i=e;i;)i._dirty=1,i=i.parent;return e},Oe=function(e,t,i,s){return e._startAt&&(n?e._startAt.revert(J):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,s))},Le=function e(t){return!t||t._ts&&e(t.parent)},Pe=function(e){return e._repeat?ze(e._tTime,e=e.duration()+e._rDelay)*e:0},ze=function(e,t){var i=Math.floor(e=fe(e/t));return e&&i===e?i-1:i},De=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},$e=function(e){return e._end=fe(e._start+(e._tDur/Math.abs(e._ts||e._rts||w)||0))},Be=function(e,t){var i=e._dp;return i&&i.smoothChildTiming&&e._ts&&(e._start=fe(i._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),$e(e),i._dirty||Ie(i,e)),e},Re=function(e,t){var i;if((t._time||!t._dur&&t._initted||t._startw)&&t.render(i,!0)),Ie(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&i.totalTime(i._tTime),i=i._dp;e._zTime=-1e-8}},Fe=function(e,t,i,s){return t.parent&&Ae(t),t._start=fe((I(i)?i:i||e!==o?Ve(e,i,t):e._time)+t._delay),t._end=fe(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Me(e,t,"_first","_last",e._sort?"_start":0),We(t)||(e._recent=t),s||Re(e,t),e._ts<0&&Be(e,e._tTime),e},je=function(e,t){return(Y.ScrollTrigger||G("scrollTrigger",t))&&Y.ScrollTrigger.create(t,e)},Ne=function(e,t,i,s,r){return Xt(e,t,r),e._initted?!i&&e._pt&&!n&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&u!==Et.frame?(ie.push(e),e._lazy=[r,s],1):void 0:1},He=function e(t){var i=t.parent;return i&&i._ts&&i._initted&&!i._lock&&(i.rawTime()<0||e(i))},We=function(e){var t=e.data;return"isFromStart"===t||"isStart"===t},qe=function(e,t,i,s){var n=e._repeat,r=fe(t)||0,o=e._tTime/e._tDur;return o&&!s&&(e._time*=r/e._dur),e._dur=r,e._tDur=n?n<0?1e10:fe(r*(n+1)+e._rDelay*n):r,o>0&&!s&&Be(e,e._tTime=e._tDur*o),e.parent&&$e(e),i||Ie(e.parent,e),e},Ye=function(e){return e instanceof jt?Ie(e):qe(e,e._dur)},Xe={_start:0,endTime:Z,totalDuration:Z},Ve=function e(t,i,s){var n,r,o,a=t.labels,l=t._recent||Xe,c=t.duration()>=_?l.endTime(!1):t._dur;return k(i)&&(isNaN(i)||i in a)?(r=i.charAt(0),o="%"===i.substr(-1),n=i.indexOf("="),"<"===r||">"===r?(n>=0&&(i=i.replace(/=/,"")),("<"===r?l._start:l.endTime(l._repeat>=0))+(parseFloat(i.substr(1))||0)*(o?(n<0?l:s).totalDuration()/100:1)):n<0?(i in a||(a[i]=c),a[i]):(r=parseFloat(i.charAt(n-1)+i.substr(n+1)),o&&s&&(r=r/100*(B(s)?s[0]:s).totalDuration()),n>1?e(t,i.substr(0,n-1),s)+r:c+r)):null==i?c:+i},Ge=function(e,t,i){var s,n,r=I(t[1]),o=(r?2:1)+(e<2?0:1),a=t[o];if(r&&(a.duration=t[1]),a.parent=i,e){for(s=a,n=i;n&&!("immediateRender"in s);)s=n.vars.defaults||{},n=P(n.vars.inherit)&&n.parent;a.immediateRender=P(s.immediateRender),e<2?a.runBackwards=1:a.startAt=t[o-1]}return new Zt(t[0],a,t[o+1])},Ue=function(e,t){return e||0===e?t(e):t},Qe=function(e,t,i){return it?t:i},Ze=function(e,t){return k(e)&&(t=q.exec(e))?t[1]:""},Ke=[].slice,Je=function(e,t){return e&&L(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&L(e[0]))&&!e.nodeType&&e!==a},et=function(e,t,i){return void 0===i&&(i=[]),e.forEach((function(e){var s;return k(e)&&!t||Je(e,1)?(s=i).push.apply(s,tt(e)):i.push(e)}))||i},tt=function(e,t,i){return r&&!t&&r.selector?r.selector(e):!k(e)||i||!l&&Ct()?B(e)?et(e,i):Je(e)?Ke.call(e,0):e?[e]:[]:Ke.call((t||c).querySelectorAll(e),0)},it=function(e){return e=tt(e)[0]||U("Invalid scope")||{},function(t){var i=e.current||e.nativeElement||e;return tt(t,i.querySelectorAll?i:i===e?U("Invalid scope")||c.createElement("div"):e)}},st=function(e){return e.sort((function(){return.5-Math.random()}))},nt=function(e){if(A(e))return e;var t=L(e)?e:{each:e},i=Pt(t.ease),s=t.from||0,n=parseFloat(t.base)||0,r={},o=s>0&&s<1,a=isNaN(s)||o,l=t.axis,c=s,d=s;return k(s)?c=d={center:.5,edges:.5,end:1}[s]||0:!o&&a&&(c=s[0],d=s[1]),function(e,o,u){var h,p,f,m,g,v,y,b,w,x=(u||t).length,T=r[x];if(!T){if(!(w="auto"===t.grid?0:(t.grid||[1,_])[1])){for(y=-_;y<(y=u[w++].getBoundingClientRect().left)&&wy&&(y=g),gx?x-1:l?"y"===l?x/w:w:Math.max(w,x/w))||0)*("edges"===s?-1:1),T.b=x<0?n-x:n,T.u=Ze(t.amount||t.each)||0,i=i&&x<0?Ot(i):i}return x=(T[e]-T.min)/T.max||0,fe(T.b+(i?i(x):x)*T.v)+T.u}},rt=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(i){var s=fe(Math.round(parseFloat(i)/e)*e*t);return(s-s%1)/t+(I(i)?0:Ze(i))}},ot=function(e,t){var i,s,n=B(e);return!n&&L(e)&&(i=n=e.radius||_,e.values?(e=tt(e.values),(s=!I(e[0]))&&(i*=i)):e=rt(e.increment)),Ue(t,n?A(e)?function(t){return s=e(t),Math.abs(s-t)<=i?s:t}:function(t){for(var n,r,o=parseFloat(s?t.x:t),a=parseFloat(s?t.y:0),l=_,c=0,d=e.length;d--;)(n=s?(n=e[d].x-o)*n+(r=e[d].y-a)*r:Math.abs(e[d]-o))(n=Math.abs(n))&&(r=s,a=n);return r},ht=function(e,t,i){var s,n,o,a=e.vars,l=a[t],c=r,d=e._ctx;if(l)return s=a[t+"Params"],n=a.callbackScope||e,i&&ie.length&&ve(),d&&(r=d),o=s?l.apply(n,s):l.call(n),r=c,o},pt=function(e){return Ae(e),e.scrollTrigger&&e.scrollTrigger.kill(!!n),e.progress()<1&&ht(e,"onInterrupt"),e},ft=[],mt=function(e){if(e)if(e=!e.name&&e.default||e,z()||e.headless){var t=e.name,i=A(e),s=t&&!i&&e.init?function(){this._props=[]}:e,n={init:Z,render:oi,add:qt,kill:li,modifier:ai,rawVars:0},r={targetTest:0,get:0,getSetter:ii,aliases:{},register:0};if(Ct(),e!==s){if(ne[t])return;xe(s,xe(Ee(e,n),r)),Te(s.prototype,Te(n,Ee(e,r))),ne[s.prop=t]=s,e.targetTest&&(ae.push(s),te[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}Q(t,s),e.register&&e.register(Si,s,ui)}else ft.push(e)},gt=255,vt={aqua:[0,gt,gt],lime:[0,gt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,gt],navy:[0,0,128],white:[gt,gt,gt],olive:[128,128,0],yellow:[gt,gt,0],orange:[gt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[gt,0,0],pink:[gt,192,203],cyan:[0,gt,gt],transparent:[gt,gt,gt,0]},yt=function(e,t,i){return(6*(e+=e<0?1:e>1?-1:0)<1?t+(i-t)*e*6:e<.5?i:3*e<2?t+(i-t)*(2/3-e)*6:t)*gt+.5|0},bt=function(e,t,i){var s,n,r,o,a,l,c,d,u,h,p=e?I(e)?[e>>16,e>>8>,e>]:0:vt.black;if(!p){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),vt[e])p=vt[e];else if("#"===e.charAt(0)){if(e.length<6&&(s=e.charAt(1),n=e.charAt(2),r=e.charAt(3),e="#"+s+s+n+n+r+r+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(p=parseInt(e.substr(1,6),16))>>16,p>>8>,p>,parseInt(e.substr(7),16)/255];p=[(e=parseInt(e.substr(1),16))>>16,e>>8>,e>]}else if("hsl"===e.substr(0,3))if(p=h=e.match(R),t){if(~e.indexOf("="))return p=e.match(F),i&&p.length<4&&(p[3]=1),p}else o=+p[0]%360/360,a=+p[1]/100,s=2*(l=+p[2]/100)-(n=l<=.5?l*(a+1):l+a-l*a),p.length>3&&(p[3]*=1),p[0]=yt(o+1/3,s,n),p[1]=yt(o,s,n),p[2]=yt(o-1/3,s,n);else p=e.match(R)||vt.transparent;p=p.map(Number)}return t&&!h&&(s=p[0]/gt,n=p[1]/gt,r=p[2]/gt,l=((c=Math.max(s,n,r))+(d=Math.min(s,n,r)))/2,c===d?o=a=0:(u=c-d,a=l>.5?u/(2-c-d):u/(c+d),o=c===s?(n-r)/u+(nu||b<0)&&(f+=b-h),((l=(d=(m+=b)-f)-v)>0||_)&&(p=++s.frame,n=d-1e3*s.time,s.time=d/=1e3,v+=l+(l>=g?4:g-l),c=1),_||(e=t(i)),c)for(r=0;r=t&&r--},_listeners:y}}(),Ct=function(){return!p&&Et.wake()},Mt={},kt=/^[\d.\-M][\d.\-,\s]/,At=/["']/g,It=function(e){for(var t,i,s,n={},r=e.substr(1,e.length-3).split(":"),o=r[0],a=1,l=r.length;a1&&o.config?o.config.apply(null,~e.indexOf("{")?[It(r[1])]:(t=e,i=t.indexOf("(")+1,s=t.indexOf(")"),n=t.indexOf("(",i),t.substring(i,~n&&n=1?i:1,r=(s||(t?.3:.45))/(i<1?i:1),o=r/x*(Math.asin(1/n)||0),a=function(e){return 1===e?1:n*Math.pow(2,-10*e)*M((e-o)*r)+1},l="out"===t?a:"in"===t?function(e){return 1-a(1-e)}:Dt(a);return r=x/r,l.config=function(i,s){return e(t,i,s)},l},Bt=function e(t,i){void 0===i&&(i=1.70158);var s=function(e){return e?--e*e*((i+1)*e+i)+1:0},n="out"===t?s:"in"===t?function(e){return 1-s(1-e)}:Dt(s);return n.config=function(i){return e(t,i)},n};he("Linear,Quad,Cubic,Quart,Quint,Strong",(function(e,t){var i=t<5?t+1:t;zt(e+",Power"+(i-1),t?function(e){return Math.pow(e,i)}:function(e){return e},(function(e){return 1-Math.pow(1-e,i)}),(function(e){return e<.5?Math.pow(2*e,i)/2:1-Math.pow(2*(1-e),i)/2}))})),Mt.Linear.easeNone=Mt.none=Mt.Linear.easeIn,zt("Elastic",$t("in"),$t("out"),$t()),f=7.5625,g=1/(m=2.75),zt("Bounce",(function(e){return 1-v(1-e)}),v=function(e){return e0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,qe(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(Ct(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(Be(this,e),!i._dp||i.parent||Re(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e0||!this._tDur&&!e)&&Fe(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===w||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),be(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+Pe(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?e:1-e)+Pe(this),t):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(e,t){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*i,t):this._repeat?ze(this._tTime,i)+1:1},t.timeScale=function(e,t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===e)return this;var i=this.parent&&this._ts?De(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||-1e-8===e?0:this._rts,this.totalTime(Qe(-Math.abs(this._delay),this.totalDuration(),i),!1!==t),$e(this),function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e}(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ct(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==w&&(this._tTime-=w)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=e;var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&Fe(t,this,e-this._delay),this}return this._start},t.endTime=function(e){return this._start+(P(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?De(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){void 0===e&&(e=ee);var t=n;return n=e,ye(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),"nested"!==this.data&&!1!==e.kill&&this.kill(),n=t,this},t.globalTime=function(e){for(var t=this,i=arguments.length?e:t.rawTime();t;)i=t._start+i/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):i},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,Ye(this)):-2===this._repeat?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,Ye(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(Ve(this,e),P(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,P(t)),this._dur||(this._zTime=-1e-8),this},t.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-1e-8:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},t.isActive=function(){var e,t=this.parent||this._dp,i=this._start;return!(t&&!(this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=i&&e1?(t?(s[e]=t,i&&(s[e+"Params"]=i),"onUpdate"===e&&(this._onUpdate=t)):delete s[e],this):s[e]},t.then=function(e){var t=this;return new Promise((function(i){var s=A(e)?e:we,n=function(){var e=t.then;t.then=null,A(s)&&(s=s(t))&&(s.then||s===t)&&(t.then=e),i(s),t.then=e};t._initted&&1===t.totalProgress()&&t._ts>=0||!t._tTime&&t._ts<0?n():t._prom=n}))},t.kill=function(){pt(this)},e}();xe(Ft.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:-1e-8,_prom:0,_ps:!1,_rts:1});var jt=function(e){function s(t,s){var n;return void 0===t&&(t={}),(n=e.call(this,t)||this).labels={},n.smoothChildTiming=!!t.smoothChildTiming,n.autoRemoveChildren=!!t.autoRemoveChildren,n._sort=P(t.sortChildren),o&&Fe(t.parent||o,i(n),s),t.reversed&&n.reverse(),t.paused&&n.paused(!0),t.scrollTrigger&&je(i(n),t.scrollTrigger),n}t(s,e);var r=s.prototype;return r.to=function(e,t,i){return Ge(0,arguments,this),this},r.from=function(e,t,i){return Ge(1,arguments,this),this},r.fromTo=function(e,t,i,s){return Ge(2,arguments,this),this},r.set=function(e,t,i){return t.duration=0,t.parent=this,Ce(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new Zt(e,t,Ve(this,i),1),this},r.call=function(e,t,i){return Fe(this,Zt.delayedCall(0,e,t),i)},r.staggerTo=function(e,t,i,s,n,r,o){return i.duration=t,i.stagger=i.stagger||s,i.onComplete=r,i.onCompleteParams=o,i.parent=this,new Zt(e,i,Ve(this,n)),this},r.staggerFrom=function(e,t,i,s,n,r,o){return i.runBackwards=1,Ce(i).immediateRender=P(i.immediateRender),this.staggerTo(e,t,i,s,n,r,o)},r.staggerFromTo=function(e,t,i,s,n,r,o,a){return s.startAt=i,Ce(s).immediateRender=P(s.immediateRender),this.staggerTo(e,t,s,n,r,o,a)},r.render=function(e,t,i){var s,r,a,l,c,d,u,h,p,f,m,g,v=this._time,y=this._dirty?this.totalDuration():this._tDur,b=this._dur,_=e<=0?0:fe(e),x=this._zTime<0!=e<0&&(this._initted||!b);if(this!==o&&_>y&&e>=0&&(_=y),_!==this._tTime||i||x){if(v!==this._time&&b&&(_+=this._time-v,e+=this._time-v),s=_,p=this._start,d=!(h=this._ts),x&&(b||(v=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(m=this._yoyo,c=b+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*c+e,t,i);if(s=fe(_%c),_===y?(l=this._repeat,s=b):((l=~~(f=fe(_/c)))&&l===f&&(s=b,l--),s>b&&(s=b)),f=ze(this._tTime,c),!v&&this._tTime&&f!==l&&this._tTime-f*c-this._dur<=0&&(f=l),m&&1&l&&(s=b-s,g=1),l!==f&&!this._lock){var T=m&&1&f,S=T===(m&&1&l);if(lt)for(s=e._first;s&&s._start<=i;){if("isPause"===s.data&&s._start>t)return s;s=s._next}else for(s=e._last;s&&s._start>=i;){if("isPause"===s.data&&s._start=v&&e>=0)for(r=this._first;r;){if(a=r._next,(r._act||s>=r._start)&&r._ts&&u!==r){if(r.parent!==this)return this.render(e,t,i);if(r.render(r._ts>0?(s-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(s-r._start)*r._ts,t,i),s!==this._time||!this._ts&&!d){u=0,a&&(_+=this._zTime=-1e-8);break}}r=a}else{r=this._last;for(var E=e<0?e:s;r;){if(a=r._prev,(r._act||E<=r._end)&&r._ts&&u!==r){if(r.parent!==this)return this.render(e,t,i);if(r.render(r._ts>0?(E-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(E-r._start)*r._ts,t,i||n&&ye(r)),s!==this._time||!this._ts&&!d){u=0,a&&(_+=this._zTime=E?-1e-8:w);break}}r=a}}if(u&&!t&&(this.pause(),u.render(s>=v?0:-1e-8)._zTime=s>=v?1:-1,this._ts))return this._start=p,$e(this),this.render(e,t,i);this._onUpdate&&!t&&ht(this,"onUpdate",!0),(_===y&&this._tTime>=this.totalDuration()||!_&&v)&&(p!==this._start&&Math.abs(h)===Math.abs(this._ts)||this._lock||((e||!b)&&(_===y&&this._ts>0||!_&&this._ts<0)&&Ae(this,1),t||e<0&&!v||!_&&!v&&y||(ht(this,_===y&&e>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(_0)&&this._prom())))}return this},r.add=function(e,t){var i=this;if(I(t)||(t=Ve(this,t,e)),!(e instanceof Ft)){if(B(e))return e.forEach((function(e){return i.add(e,t)})),this;if(k(e))return this.addLabel(e,t);if(!A(e))return this;e=Zt.delayedCall(0,e)}return this!==e?Fe(this,e,t):this},r.getChildren=function(e,t,i,s){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===i&&(i=!0),void 0===s&&(s=-_);for(var n=[],r=this._first;r;)r._start>=s&&(r instanceof Zt?t&&n.push(r):(i&&n.push(r),e&&n.push.apply(n,r.getChildren(!0,t,i)))),r=r._next;return n},r.getById=function(e){for(var t=this.getChildren(1,1,1),i=t.length;i--;)if(t[i].vars.id===e)return t[i]},r.remove=function(e){return k(e)?this.removeLabel(e):A(e)?this.killTweensOf(e):(e.parent===this&&ke(this,e),e===this._recent&&(this._recent=this._last),Ie(this))},r.totalTime=function(t,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=fe(Et.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,i),this._forcing=0,this):this._tTime},r.addLabel=function(e,t){return this.labels[e]=Ve(this,t),this},r.removeLabel=function(e){return delete this.labels[e],this},r.addPause=function(e,t,i){var s=Zt.delayedCall(0,t||Z,i);return s.data="isPause",this._hasPause=1,Fe(this,s,Ve(this,e))},r.removePause=function(e){var t=this._first;for(e=Ve(this,e);t;)t._start===e&&"isPause"===t.data&&Ae(t),t=t._next},r.killTweensOf=function(e,t,i){for(var s=this.getTweensOf(e,i),n=s.length;n--;)Nt!==s[n]&&s[n].kill(e,t);return this},r.getTweensOf=function(e,t){for(var i,s=[],n=tt(e),r=this._first,o=I(t);r;)r instanceof Zt?ge(r._targets,n)&&(o?(!Nt||r._initted&&r._ts)&&r.globalTime(0)<=t&&r.globalTime(r.totalDuration())>t:!t||r.isActive())&&s.push(r):(i=r.getTweensOf(n,t)).length&&s.push.apply(s,i),r=r._next;return s},r.tweenTo=function(e,t){t=t||{};var i,s=this,n=Ve(s,e),r=t,o=r.startAt,a=r.onStart,l=r.onStartParams,c=r.immediateRender,d=Zt.to(s,xe({ease:t.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:t.duration||Math.abs((n-(o&&"time"in o?o.time:s._time))/s.timeScale())||w,onStart:function(){if(s.pause(),!i){var e=t.duration||Math.abs((n-(o&&"time"in o?o.time:s._time))/s.timeScale());d._dur!==e&&qe(d,e,0,1).render(d._time,!0,!0),i=1}a&&a.apply(d,l||[])}},t));return c?d.render(0):d},r.tweenFromTo=function(e,t,i){return this.tweenTo(t,xe({startAt:{time:Ve(this,e)}},i))},r.recent=function(){return this._recent},r.nextLabel=function(e){return void 0===e&&(e=this._time),ut(this,Ve(this,e))},r.previousLabel=function(e){return void 0===e&&(e=this._time),ut(this,Ve(this,e),1)},r.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+w)},r.shiftChildren=function(e,t,i){void 0===i&&(i=0);for(var s,n=this._first,r=this.labels;n;)n._start>=i&&(n._start+=e,n._end+=e),n=n._next;if(t)for(s in r)r[s]>=i&&(r[s]+=e);return Ie(this)},r.invalidate=function(t){var i=this._first;for(this._lock=0;i;)i.invalidate(t),i=i._next;return e.prototype.invalidate.call(this,t)},r.clear=function(e){void 0===e&&(e=!0);for(var t,i=this._first;i;)t=i._next,this.remove(i),i=t;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),Ie(this)},r.totalDuration=function(e){var t,i,s,n=0,r=this,a=r._last,l=_;if(arguments.length)return r.timeScale((r._repeat<0?r.duration():r.totalDuration())/(r.reversed()?-e:e));if(r._dirty){for(s=r.parent;a;)t=a._prev,a._dirty&&a.totalDuration(),(i=a._start)>l&&r._sort&&a._ts&&!r._lock?(r._lock=1,Fe(r,a,i-a._delay,1)._lock=0):l=i,i<0&&a._ts&&(n-=i,(!s&&!r._dp||s&&s.smoothChildTiming)&&(r._start+=i/r._ts,r._time-=i,r._tTime-=i),r.shiftChildren(-i,!1,-Infinity),l=0),a._end>n&&a._ts&&(n=a._end),a=t;qe(r,r===o&&r._time>n?r._time:n,1,1),r._dirty=0}return r._tDur},s.updateRoot=function(e){if(o._ts&&(be(o,De(e,o)),u=Et.frame),Et.frame>=oe){oe+=y.autoSleep||120;var t=o._first;if((!t||!t._ts)&&y.autoSleep&&Et._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||Et.sleep()}}},s}(Ft);xe(jt.prototype,{_lock:0,_hasPause:0,_forcing:0});var Nt,Ht,Wt=function(e,t,i,s,n,r,o){var a,l,c,d,u,h,p,f,m=new ui(this._pt,e,t,0,1,ri,null,n),g=0,v=0;for(m.b=i,m.e=s,i+="",(p=~(s+="").indexOf("random("))&&(s=ct(s)),r&&(r(f=[i,s],e,t),i=f[0],s=f[1]),l=i.match(N)||[];a=N.exec(s);)d=a[0],u=s.substring(g,a.index),c?c=(c+1)%5:"rgba("===u.substr(-5)&&(c=1),d!==l[v++]&&(h=parseFloat(l[v-1])||0,m._pt={_next:m._pt,p:u||1===v?u:",",s:h,c:"="===d.charAt(1)?me(h,d)-h:parseFloat(d)-h,m:c&&c<4?Math.round:0},g=N.lastIndex);return m.c=g")})),c.duration();else{for(p in u={},S)"ease"===p||"easeEach"===p||Vt(p,S[p],u,S.easeEach);for(p in u)for(O=u[p].sort((function(e,t){return e.t-t.t})),F=0,d=0;df-w&&!g?f:em&&(s=m),(c=this._yoyo&&1&o)&&(h=this._yEase,s=m-s),l=ze(this._tTime,a),s===p&&!i&&this._initted&&o===l)return this._tTime=v,this;o!==l&&(u&&this._yEase&&Lt(u,c),this.vars.repeatRefresh&&!c&&!this._lock&&s!==a&&this._initted&&(this._lock=i=1,this.render(fe(a*o),!0).invalidate()._lock=0))}if(!this._initted){if(Ne(this,g?e:s,i,t,v))return this._tTime=0,this;if(!(p===this._time||i&&this.vars.repeatRefresh&&o!==l))return this;if(m!==this._dur)return this.render(e,t,i)}if(this._tTime=v,this._time=s,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=d=(h||this._ease)(s/m),this._from&&(this.ratio=d=1-d),!p&&v&&!t&&!l&&(ht(this,"onStart"),this._tTime!==v))return this;for(r=this._pt;r;)r.r(d,r.d),r=r._next;u&&u.render(e<0?e:u._dur*u._ease(s/this._dur),t,i)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(g&&Oe(this,e,0,i),ht(this,"onUpdate")),this._repeat&&o!==l&&this.vars.onRepeat&&!t&&this.parent&&ht(this,"onRepeat"),v!==this._tDur&&v||this._tTime!==v||(g&&!this._onUpdate&&Oe(this,e,0,!0),(e||!m)&&(v===this._tDur&&this._ts>0||!v&&this._ts<0)&&Ae(this,1),t||g&&!p||!(v||p||c)||(ht(this,v===f?"onComplete":"onReverseComplete",!0),this._prom&&!(v0)&&this._prom()))}}else!function(e,t,i,s){var r,o,a,l=e.ratio,c=t<0||!t&&(!e._start&&He(e)&&(e._initted||!We(e))||(e._ts<0||e._dp._ts<0)&&!We(e))?0:1,d=e._rDelay,u=0;if(d&&e._repeat&&(u=Qe(0,e._tDur,t),o=ze(u,d),e._yoyo&&1&o&&(c=1-c),o!==ze(e._tTime,d)&&(l=1-c,e.vars.repeatRefresh&&e._initted&&e.invalidate())),c!==l||n||s||e._zTime===w||!t&&e._zTime){if(!e._initted&&Ne(e,t,s,i,u))return;for(a=e._zTime,e._zTime=t||(i?w:0),i||(i=t&&!a),e.ratio=c,e._from&&(c=1-c),e._time=0,e._tTime=u,r=e._pt;r;)r.r(c,r.d),r=r._next;t<0&&Oe(e,t,0,!0),e._onUpdate&&!i&&ht(e,"onUpdate"),u&&e._repeat&&!i&&e.parent&&ht(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===c&&(c&&Ae(e,1),i||n||(ht(e,c?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)}(this,e,t,i);return this},a.targets=function(){return this._targets},a.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},a.resetTo=function(e,t,i,s,n){p||Et.wake(),this._ts||this.play();var r=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Xt(this,r),function(e,t,i,s,n,r,o,a){var l,c,d,u,h=(e._pt&&e._ptCache||(e._ptCache={}))[t];if(!h)for(h=e._ptCache[t]=[],d=e._ptLookup,u=e._targets.length;u--;){if((l=d[u][t])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return Ht=1,e.vars[t]="+=0",Xt(e,o),Ht=0,a?U(t+" not eligible for reset"):1;h.push(l)}for(u=h.length;u--;)(l=(c=h[u])._pt||c).s=!s&&0!==s||n?l.s+(s||0)+r*l.c:s,l.c=i-l.s,c.e&&(c.e=pe(i)+Ze(c.e)),c.b&&(c.b=l.s+Ze(c.b))}(this,e,t,i,s,this._ease(r/this._dur),r,n)?this.resetTo(e,t,i,s,1):(Be(this,0),this.parent||Me(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},a.kill=function(e,t){if(void 0===t&&(t="all"),!(e||t&&"all"!==t))return this._lazy=this._pt=0,this.parent?pt(this):this.scrollTrigger&&this.scrollTrigger.kill(!!n),this;if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Nt&&!0!==Nt.vars.overwrite)._first||pt(this),this.parent&&i!==this.timeline.totalDuration()&&qe(this,this._dur*this.timeline._tDur/i,0,1),this}var s,r,o,a,l,c,d,u=this._targets,h=e?tt(e):u,p=this._ptLookup,f=this._pt;if((!t||"all"===t)&&function(e,t){for(var i=e.length,s=i===t.length;s&&i--&&e[i]===t[i];);return i<0}(u,h))return"all"===t&&(this._pt=0),pt(this);for(s=this._op=this._op||[],"all"!==t&&(k(t)&&(l={},he(t,(function(e){return l[e]=1})),t=l),t=function(e,t){var i,s,n,r,o=e[0]?de(e[0]).harness:0,a=o&&o.aliases;if(!a)return t;for(s in i=Te({},t),a)if(s in i)for(n=(r=a[s].split(",")).length;n--;)i[r[n]]=i[s];return i}(u,t)),d=u.length;d--;)if(~h.indexOf(u[d]))for(l in r=p[d],"all"===t?(s[d]=t,a=r,o={}):(o=s[d]=s[d]||{},a=t),a)(c=r&&r[l])&&("kill"in c.d&&!0!==c.d.kill(l)||ke(this,c,"_pt"),delete r[l]),"all"!==o&&(o[l]=1);return this._initted&&!this._pt&&f&&pt(this),this},r.to=function(e,t){return new r(e,t,arguments[2])},r.from=function(e,t){return Ge(1,arguments)},r.delayedCall=function(e,t,i,s){return new r(t,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:t,onReverseComplete:t,onCompleteParams:i,onReverseCompleteParams:i,callbackScope:s})},r.fromTo=function(e,t,i){return Ge(2,arguments)},r.set=function(e,t){return t.duration=0,t.repeatDelay||(t.repeat=0),new r(e,t)},r.killTweensOf=function(e,t,i){return o.killTweensOf(e,t,i)},r}(Ft);xe(Zt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),he("staggerTo,staggerFrom,staggerFromTo",(function(e){Zt[e]=function(){var t=new jt,i=Ke.call(arguments,0);return i.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,i)}}));var Kt=function(e,t,i){return e[t]=i},Jt=function(e,t,i){return e[t](i)},ei=function(e,t,i,s){return e[t](s.fp,i)},ti=function(e,t,i){return e.setAttribute(t,i)},ii=function(e,t){return A(e[t])?Jt:O(e[t])&&e.setAttribute?ti:Kt},si=function(e,t){return t.set(t.t,t.p,Math.round(1e6*(t.s+t.c*e))/1e6,t)},ni=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},ri=function(e,t){var i=t._pt,s="";if(!e&&t.b)s=t.b;else if(1===e&&t.e)s=t.e;else{for(;i;)s=i.p+(i.m?i.m(i.s+i.c*e):Math.round(1e4*(i.s+i.c*e))/1e4)+s,i=i._next;s+=t.c}t.set(t.t,t.p,s,t)},oi=function(e,t){for(var i=t._pt;i;)i.r(e,i.d),i=i._next},ai=function(e,t,i,s){for(var n,r=this._pt;r;)n=r._next,r.p===s&&r.modifier(e,t,i),r=n},li=function(e){for(var t,i,s=this._pt;s;)i=s._next,s.p===e&&!s.op||s.op===e?ke(this,s,"_pt"):s.dep||(t=1),s=i;return!t},ci=function(e,t,i,s){s.mSet(e,t,s.m.call(s.tween,i,s.mt),s)},di=function(e){for(var t,i,s,n,r=e._pt;r;){for(t=r._next,i=s;i&&i.pr>r.pr;)i=i._next;(r._prev=i?i._prev:n)?r._prev._next=r:s=r,(r._next=i)?i._prev=r:n=r,r=t}e._pt=s},ui=function(){function e(e,t,i,s,n,r,o,a,l){this.t=t,this.s=s,this.c=n,this.p=i,this.r=r||si,this.d=o||this,this.set=a||Kt,this.pr=l||0,this._next=e,e&&(e._prev=this)}return e.prototype.modifier=function(e,t,i){this.mSet=this.mSet||this.set,this.set=ci,this.m=e,this.mt=i,this.tween=t},e}();he(le+"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(e){return te[e]=1})),Y.TweenMax=Y.TweenLite=Zt,Y.TimelineLite=Y.TimelineMax=jt,o=new jt({sortChildren:!1,defaults:b,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),y.stringFilter=St;var hi=[],pi={},fi=[],mi=0,gi=0,vi=function(e){return(pi[e]||fi).map((function(e){return e()}))},yi=function(){var e=Date.now(),t=[];e-mi>2&&(vi("matchMediaInit"),hi.forEach((function(e){var i,s,n,r,o=e.queries,l=e.conditions;for(s in o)(i=a.matchMedia(o[s]).matches)&&(n=1),i!==l[s]&&(l[s]=i,r=1);r&&(e.revert(),n&&t.push(e))})),vi("matchMediaRevert"),t.forEach((function(e){return e.onMatch(e,(function(t){return e.add(null,t)}))})),mi=e,vi("matchMedia"))},bi=function(){function e(e,t){this.selector=t&&it(t),this.data=[],this._r=[],this.isReverted=!1,this.id=gi++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,i){A(e)&&(i=t,t=e,e=A);var s=this,n=function(){var e,n=r,o=s.selector;return n&&n!==s&&n.data.push(s),i&&(s.selector=it(i)),r=s,e=t.apply(s,arguments),A(e)&&s._r.push(e),r=n,s.selector=o,s.isReverted=!1,e};return s.last=n,e===A?n(s,(function(e){return s.add(null,e)})):e?s[e]=n:n},t.ignore=function(e){var t=r;r=null,e(this),r=t},t.getTweens=function(){var t=[];return this.data.forEach((function(i){return i instanceof e?t.push.apply(t,i.getTweens()):i instanceof Zt&&!(i.parent&&"nested"===i.parent.data)&&t.push(i)})),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var i=this;if(e?function(){for(var t,s=i.getTweens(),n=i.data.length;n--;)"isFlip"===(t=i.data[n]).data&&(t.revert(),t.getChildren(!0,!0,!1).forEach((function(e){return s.splice(s.indexOf(e),1)})));for(s.map((function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}})).sort((function(e,t){return t.g-e.g||-1/0})).forEach((function(t){return t.t.revert(e)})),n=i.data.length;n--;)(t=i.data[n])instanceof jt?"nested"!==t.data&&(t.scrollTrigger&&t.scrollTrigger.revert(),t.kill()):!(t instanceof Zt)&&t.revert&&t.revert(e);i._r.forEach((function(t){return t(e,i)})),i.isReverted=!0}():this.data.forEach((function(e){return e.kill&&e.kill()})),this.clear(),t)for(var s=hi.length;s--;)hi[s].id===this.id&&hi.splice(s,1)},t.revert=function(e){this.kill(e||{})},e}(),_i=function(){function e(e){this.contexts=[],this.scope=e,r&&r.data.push(this)}var t=e.prototype;return t.add=function(e,t,i){L(e)||(e={matches:e});var s,n,o,l=new bi(0,i||this.scope),c=l.conditions={};for(n in r&&!l.selector&&(l.selector=r.selector),this.contexts.push(l),t=l.add("onMatch",t),l.queries=e,e)"all"===n?o=1:(s=a.matchMedia(e[n]))&&(hi.indexOf(l)<0&&hi.push(l),(c[n]=s.matches)&&(o=1),s.addListener?s.addListener(yi):s.addEventListener("change",yi));return o&&t(l,(function(e){return l.add(null,e)})),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach((function(t){return t.kill(e,!0)}))},e}(),wi={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),i=0;i1){var s=e.map((function(e){return Si.quickSetter(e,t,i)})),n=s.length;return function(e){for(var t=n;t--;)s[t](e)}}e=e[0]||{};var r=ne[t],o=de(e),a=o.harness&&(o.harness.aliases||{})[t]||t,l=r?function(t){var s=new r;h._pt=0,s.init(e,i?t+i:t,h,0,[e]),s.render(1,s),h._pt&&oi(1,h)}:o.set(e,a);return r?l:function(t){return l(e,a,i?t+i:t,o,1)}},quickTo:function(e,t,i){var s,n=Si.to(e,xe(((s={})[t]="+=0.1",s.paused=!0,s.stagger=0,s),i||{})),r=function(e,i,s){return n.resetTo(t,e,i,s)};return r.tween=n,r},isTweening:function(e){return o.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Pt(e.ease,b.ease)),Se(b,e||{})},config:function(e){return Se(y,e||{})},registerEffect:function(e){var t=e.name,i=e.effect,s=e.plugins,n=e.defaults,r=e.extendTimeline;(s||"").split(",").forEach((function(e){return e&&!ne[e]&&!Y[e]&&U(t+" effect requires "+e+" plugin.")})),re[t]=function(e,t,s){return i(tt(e),xe(t||{},n),s)},r&&(jt.prototype[t]=function(e,i,s){return this.add(re[t](e,L(i)?i:(s=i)&&{},this),s)})},registerEase:function(e,t){Mt[e]=Pt(t)},parseEase:function(e,t){return arguments.length?Pt(e,t):Mt},getById:function(e){return o.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var i,s,n=new jt(e);for(n.smoothChildTiming=P(e.smoothChildTiming),o.remove(n),n._dp=0,n._time=n._tTime=o._time,i=o._first;i;)s=i._next,!t&&!i._dur&&i instanceof Zt&&i.vars.onComplete===i._targets[0]||Fe(n,i,i._start-i._delay),i=s;return Fe(o,n,0),n},context:function(e,t){return e?new bi(e,t):r},matchMedia:function(e){return new _i(e)},matchMediaRefresh:function(){return hi.forEach((function(e){var t,i,s=e.conditions;for(i in s)s[i]&&(s[i]=!1,t=1);t&&e.revert()}))||yi()},addEventListener:function(e,t){var i=pi[e]||(pi[e]=[]);~i.indexOf(t)||i.push(t)},removeEventListener:function(e,t){var i=pi[e],s=i&&i.indexOf(t);s>=0&&i.splice(s,1)},utils:{wrap:function e(t,i,s){var n=i-t;return B(t)?lt(t,e(0,t.length),i):Ue(s,(function(e){return(n+(e-t)%n)%n+t}))},wrapYoyo:function e(t,i,s){var n=i-t,r=2*n;return B(t)?lt(t,e(0,t.length-1),i):Ue(s,(function(e){return t+((e=(r+(e-t)%r)%r||0)>n?r-e:e)}))},distribute:nt,random:at,snap:ot,normalize:function(e,t,i){return dt(e,t,0,1,i)},getUnit:Ze,clamp:function(e,t,i){return Ue(i,(function(i){return Qe(e,t,i)}))},splitColor:bt,toArray:tt,selector:it,mapRange:dt,pipe:function(){for(var e=arguments.length,t=new Array(e),i=0;i=0)return;o.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(ys,i,"")),t=vs}(r||i)&&this.props.push(t,i,r[t])},_s=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},ws=function(){var e,t,i=this.props,s=this.target,n=s.style,r=s._gsap;for(e=0;e=0?Es[n]:"")+e},Ms=function(){"undefined"!=typeof window&&window.document&&(Ei=window,Ci=Ei.document,Mi=Ci.documentElement,Ai=Ts("div")||{style:{}},Ts("div"),vs=Cs(vs),ys=vs+"Origin",Ai.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Li=!!Cs("perspective"),Oi=Si.core.reverting,ki=1)},ks=function(e){var t,i=e.ownerSVGElement,s=Ts("svg",i&&i.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=e.cloneNode(!0);n.style.display="block",s.appendChild(n),Mi.appendChild(s);try{t=n.getBBox()}catch(e){}return s.removeChild(n),Mi.removeChild(s),t},As=function(e,t){for(var i=t.length;i--;)if(e.hasAttribute(t[i]))return e.getAttribute(t[i])},Is=function(e){var t,i;try{t=e.getBBox()}catch(s){t=ks(e),i=1}return t&&(t.width||t.height)||i||(t=ks(e)),!t||t.width||t.x||t.y?t:{x:+As(e,["x","cx","x1"])||0,y:+As(e,["y","cy","y1"])||0,width:0,height:0}},Os=function(e){return!(!e.getCTM||e.parentNode&&!e.ownerSVGElement||!Is(e))},Ls=function(e,t){if(t){var i,s=e.style;t in Zi&&t!==ys&&(t=vs),s.removeProperty?("ms"!==(i=t.substr(0,2))&&"webkit"!==t.substr(0,6)||(t="-"+t),s.removeProperty("--"===i?t:t.replace(ts,"-$1").toLowerCase())):s.removeAttribute(t)}},Ps=function(e,t,i,s,n,r){var o=new ui(e._pt,t,i,0,1,r?ds:cs);return e._pt=o,o.b=s,o.e=n,e._props.push(i),o},zs={deg:1,rad:1,turn:1},Ds={grid:1,flex:1},$s=function e(t,i,s,n){var r,o,a,l,c=parseFloat(s)||0,d=(s+"").trim().substr((c+"").length)||"px",u=Ai.style,h=is.test(i),p="svg"===t.tagName.toLowerCase(),f=(p?"client":"offset")+(h?"Width":"Height"),m=100,g="px"===n,v="%"===n;if(n===d||!c||zs[n]||zs[d])return c;if("px"!==d&&!g&&(c=e(t,i,s,"px")),l=t.getCTM&&Os(t),(v||"%"===d)&&(Zi[i]||~i.indexOf("adius")))return r=l?t.getBBox()[h?"width":"height"]:t[f],pe(v?c/r*m:c/100*r);if(u[h?"width":"height"]=m+(g?d:n),o="rem"!==n&&~i.indexOf("adius")||"em"===n&&t.appendChild&&!p?t:t.parentNode,l&&(o=(t.ownerSVGElement||{}).parentNode),o&&o!==Ci&&o.appendChild||(o=Ci.body),(a=o._gsap)&&v&&a.width&&h&&a.time===Et.time&&!a.uncache)return pe(c/a.width*m);if(!v||"height"!==i&&"width"!==i)(v||"%"===d)&&!Ds[Ss(o,"display")]&&(u.position=Ss(t,"position")),o===t&&(u.position="static"),o.appendChild(Ai),r=Ai[f],o.removeChild(Ai),u.position="absolute";else{var y=t.style[i];t.style[i]=m+n,r=t[f],y?t.style[i]=y:Ls(t,i)}return h&&v&&((a=de(o)).time=Et.time,a.width=o[f]),pe(g?r*c/m:r&&c?m/r*c:0)},Bs=function(e,t,i,s){var n;return ki||Ms(),t in ns&&"transform"!==t&&~(t=ns[t]).indexOf(",")&&(t=t.split(",")[0]),Zi[t]&&"transform"!==t?(n=Gs(e,s),n="transformOrigin"!==t?n[t]:n.svg?n.origin:Us(Ss(e,ys))+" "+n.zOrigin+"px"):(!(n=e.style[t])||"auto"===n||s||~(n+"").indexOf("calc("))&&(n=Ns[t]&&Ns[t](e,t,i)||Ss(e,t)||ue(e,t)||("opacity"===t?1:0)),i&&!~(n+"").trim().indexOf(" ")?$s(e,t,n,i)+i:n},Rs=function(e,t,i,s){if(!i||"none"===i){var n=Cs(t,e,1),r=n&&Ss(e,n,1);r&&r!==i?(t=n,i=r):"borderColor"===t&&(i=Ss(e,"borderTopColor"))}var o,a,l,c,d,u,h,p,f,m,g,v=new ui(this._pt,e.style,t,0,1,ri),b=0,_=0;if(v.b=i,v.e=s,i+="","var(--"===(s+="").substring(0,6)&&(s=Ss(e,s.substring(4,s.indexOf(")")))),"auto"===s&&(u=e.style[t],e.style[t]=s,s=Ss(e,t)||s,u?e.style[t]=u:Ls(e,t)),St(o=[i,s]),s=o[1],l=(i=o[0]).match(j)||[],(s.match(j)||[]).length){for(;a=j.exec(s);)h=a[0],f=s.substring(b,a.index),d?d=(d+1)%5:"rgba("!==f.substr(-5)&&"hsla("!==f.substr(-5)||(d=1),h!==(u=l[_++]||"")&&(c=parseFloat(u)||0,g=u.substr((c+"").length),"="===h.charAt(1)&&(h=me(c,h)+g),p=parseFloat(h),m=h.substr((p+"").length),b=j.lastIndex-m.length,m||(m=m||y.units[t]||g,b===s.length&&(s+=m,v.e+=m)),g!==m&&(c=$s(e,t,u,m)||0),v._pt={_next:v._pt,p:f||1===_?f:",",s:c,c:p-c,m:d&&d<4||"zIndex"===t?Math.round:0});v.c=b-1;)i=a[n],Zi[i]&&(s=1,i="transformOrigin"===i?ys:vs),Ls(r,i);s&&(Ls(r,vs),l&&(l.svg&&r.removeAttribute("transform"),o.scale=o.rotate=o.translate="none",Gs(r,1),l.uncache=1,_s(o)))}},Ns={clearProps:function(e,t,i,s,n){if("isFromStart"!==n.data){var r=e._pt=new ui(e._pt,t,i,0,0,js);return r.u=s,r.pr=-10,r.tween=n,e._props.push(i),1}}},Hs=[1,0,0,1,0,0],Ws={},qs=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},Ys=function(e){var t=Ss(e,vs);return qs(t)?Hs:t.substr(7).match(F).map(pe)},Xs=function(e,t){var i,s,n,r,o=e._gsap||de(e),a=e.style,l=Ys(e);return o.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(n=e.transform.baseVal.consolidate().matrix).a,n.b,n.c,n.d,n.e,n.f]).join(",")?Hs:l:(l!==Hs||e.offsetParent||e===Mi||o.svg||(n=a.display,a.display="block",(i=e.parentNode)&&(e.offsetParent||e.getBoundingClientRect().width)||(r=1,s=e.nextElementSibling,Mi.appendChild(e)),l=Ys(e),n?a.display=n:Ls(e,"display"),r&&(s?i.insertBefore(e,s):i?i.appendChild(e):Mi.removeChild(e))),t&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},Vs=function(e,t,i,s,n,r){var o,a,l,c=e._gsap,d=n||Xs(e,!0),u=c.xOrigin||0,h=c.yOrigin||0,p=c.xOffset||0,f=c.yOffset||0,m=d[0],g=d[1],v=d[2],y=d[3],b=d[4],_=d[5],w=t.split(" "),x=parseFloat(w[0])||0,T=parseFloat(w[1])||0;i?d!==Hs&&(a=m*y-g*v)&&(l=x*(-g/a)+T*(m/a)-(m*_-g*b)/a,x=x*(y/a)+T*(-v/a)+(v*_-y*b)/a,T=l):(x=(o=Is(e)).x+(~w[0].indexOf("%")?x/100*o.width:x),T=o.y+(~(w[1]||w[0]).indexOf("%")?T/100*o.height:T)),s||!1!==s&&c.smooth?(b=x-u,_=T-h,c.xOffset=p+(b*m+_*v)-b,c.yOffset=f+(b*g+_*y)-_):c.xOffset=c.yOffset=0,c.xOrigin=x,c.yOrigin=T,c.smooth=!!s,c.origin=t,c.originIsAbsolute=!!i,e.style[ys]="0px 0px",r&&(Ps(r,c,"xOrigin",u,x),Ps(r,c,"yOrigin",h,T),Ps(r,c,"xOffset",p,c.xOffset),Ps(r,c,"yOffset",f,c.yOffset)),e.setAttribute("data-svg-origin",x+" "+T)},Gs=function(e,t){var i=e._gsap||new Rt(e);if("x"in i&&!t&&!i.uncache)return i;var s,n,r,o,a,l,c,d,u,h,p,f,m,g,v,b,_,w,x,T,S,E,C,M,k,A,I,O,L,P,z,D,$=e.style,B=i.scaleX<0,R="px",F="deg",j=getComputedStyle(e),N=Ss(e,ys)||"0";return s=n=r=l=c=d=u=h=p=0,o=a=1,i.svg=!(!e.getCTM||!Os(e)),j.translate&&("none"===j.translate&&"none"===j.scale&&"none"===j.rotate||($[vs]=("none"!==j.translate?"translate3d("+(j.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==j.rotate?"rotate("+j.rotate+") ":"")+("none"!==j.scale?"scale("+j.scale.split(" ").join(",")+") ":"")+("none"!==j[vs]?j[vs]:"")),$.scale=$.rotate=$.translate="none"),g=Xs(e,i.svg),i.svg&&(i.uncache?(k=e.getBBox(),N=i.xOrigin-k.x+"px "+(i.yOrigin-k.y)+"px",M=""):M=!t&&e.getAttribute("data-svg-origin"),Vs(e,M||N,!!M||i.originIsAbsolute,!1!==i.smooth,g)),f=i.xOrigin||0,m=i.yOrigin||0,g!==Hs&&(w=g[0],x=g[1],T=g[2],S=g[3],s=E=g[4],n=C=g[5],6===g.length?(o=Math.sqrt(w*w+x*x),a=Math.sqrt(S*S+T*T),l=w||x?es(x,w)*Ki:0,(u=T||S?es(T,S)*Ki+l:0)&&(a*=Math.abs(Math.cos(u*Ji))),i.svg&&(s-=f-(f*w+m*T),n-=m-(f*x+m*S))):(D=g[6],P=g[7],I=g[8],O=g[9],L=g[10],z=g[11],s=g[12],n=g[13],r=g[14],c=(v=es(D,L))*Ki,v&&(M=E*(b=Math.cos(-v))+I*(_=Math.sin(-v)),k=C*b+O*_,A=D*b+L*_,I=E*-_+I*b,O=C*-_+O*b,L=D*-_+L*b,z=P*-_+z*b,E=M,C=k,D=A),d=(v=es(-T,L))*Ki,v&&(b=Math.cos(-v),z=S*(_=Math.sin(-v))+z*b,w=M=w*b-I*_,x=k=x*b-O*_,T=A=T*b-L*_),l=(v=es(x,w))*Ki,v&&(M=w*(b=Math.cos(v))+x*(_=Math.sin(v)),k=E*b+C*_,x=x*b-w*_,C=C*b-E*_,w=M,E=k),c&&Math.abs(c)+Math.abs(l)>359.9&&(c=l=0,d=180-d),o=pe(Math.sqrt(w*w+x*x+T*T)),a=pe(Math.sqrt(C*C+D*D)),v=es(E,C),u=Math.abs(v)>2e-4?v*Ki:0,p=z?1/(z<0?-z:z):0),i.svg&&(M=e.getAttribute("transform"),i.forceCSS=e.setAttribute("transform","")||!qs(Ss(e,vs)),M&&e.setAttribute("transform",M))),Math.abs(u)>90&&Math.abs(u)<270&&(B?(o*=-1,u+=l<=0?180:-180,l+=l<=0?180:-180):(a*=-1,u+=u<=0?180:-180)),t=t||i.uncache,i.x=s-((i.xPercent=s&&(!t&&i.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-s)?-50:0)))?e.offsetWidth*i.xPercent/100:0)+R,i.y=n-((i.yPercent=n&&(!t&&i.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-n)?-50:0)))?e.offsetHeight*i.yPercent/100:0)+R,i.z=r+R,i.scaleX=pe(o),i.scaleY=pe(a),i.rotation=pe(l)+F,i.rotationX=pe(c)+F,i.rotationY=pe(d)+F,i.skewX=u+F,i.skewY=h+F,i.transformPerspective=p+R,(i.zOrigin=parseFloat(N.split(" ")[2])||!t&&i.zOrigin||0)&&($[ys]=Us(N)),i.xOffset=i.yOffset=0,i.force3D=y.force3D,i.renderTransform=i.svg?sn:Li?tn:Zs,i.uncache=0,i},Us=function(e){return(e=e.split(" "))[0]+" "+e[1]},Qs=function(e,t,i){var s=Ze(t);return pe(parseFloat(t)+parseFloat($s(e,"x",i+"px",s)))+s},Zs=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,tn(e,t)},Ks="0deg",Js="0px",en=") ",tn=function(e,t){var i=t||this,s=i.xPercent,n=i.yPercent,r=i.x,o=i.y,a=i.z,l=i.rotation,c=i.rotationY,d=i.rotationX,u=i.skewX,h=i.skewY,p=i.scaleX,f=i.scaleY,m=i.transformPerspective,g=i.force3D,v=i.target,y=i.zOrigin,b="",_="auto"===g&&e&&1!==e||!0===g;if(y&&(d!==Ks||c!==Ks)){var w,x=parseFloat(c)*Ji,T=Math.sin(x),S=Math.cos(x);x=parseFloat(d)*Ji,w=Math.cos(x),r=Qs(v,r,T*w*-y),o=Qs(v,o,-Math.sin(x)*-y),a=Qs(v,a,S*w*-y+y)}m!==Js&&(b+="perspective("+m+en),(s||n)&&(b+="translate("+s+"%, "+n+"%) "),(_||r!==Js||o!==Js||a!==Js)&&(b+=a!==Js||_?"translate3d("+r+", "+o+", "+a+") ":"translate("+r+", "+o+en),l!==Ks&&(b+="rotate("+l+en),c!==Ks&&(b+="rotateY("+c+en),d!==Ks&&(b+="rotateX("+d+en),u===Ks&&h===Ks||(b+="skew("+u+", "+h+en),1===p&&1===f||(b+="scale("+p+", "+f+en),v.style[vs]=b||"translate(0, 0)"},sn=function(e,t){var i,s,n,r,o,a=t||this,l=a.xPercent,c=a.yPercent,d=a.x,u=a.y,h=a.rotation,p=a.skewX,f=a.skewY,m=a.scaleX,g=a.scaleY,v=a.target,y=a.xOrigin,b=a.yOrigin,_=a.xOffset,w=a.yOffset,x=a.forceCSS,T=parseFloat(d),S=parseFloat(u);h=parseFloat(h),p=parseFloat(p),(f=parseFloat(f))&&(p+=f=parseFloat(f),h+=f),h||p?(h*=Ji,p*=Ji,i=Math.cos(h)*m,s=Math.sin(h)*m,n=Math.sin(h-p)*-g,r=Math.cos(h-p)*g,p&&(f*=Ji,o=Math.tan(p-f),n*=o=Math.sqrt(1+o*o),r*=o,f&&(o=Math.tan(f),i*=o=Math.sqrt(1+o*o),s*=o)),i=pe(i),s=pe(s),n=pe(n),r=pe(r)):(i=m,r=g,s=n=0),(T&&!~(d+"").indexOf("px")||S&&!~(u+"").indexOf("px"))&&(T=$s(v,"x",d,"px"),S=$s(v,"y",u,"px")),(y||b||_||w)&&(T=pe(T+y-(y*i+b*n)+_),S=pe(S+b-(y*s+b*r)+w)),(l||c)&&(o=v.getBBox(),T=pe(T+l/100*o.width),S=pe(S+c/100*o.height)),o="matrix("+i+","+s+","+n+","+r+","+T+","+S+")",v.setAttribute("transform",o),x&&(v.style[vs]=o)},nn=function(e,t,i,s,n){var r,o,a=360,l=k(n),c=parseFloat(n)*(l&&~n.indexOf("rad")?Ki:1)-s,d=s+c+"deg";return l&&("short"===(r=n.split("_")[1])&&(c%=a)!==c%180&&(c+=c<0?a:-360),"cw"===r&&c<0?c=(c+36e9)%a-~~(c/a)*a:"ccw"===r&&c>0&&(c=(c-36e9)%a-~~(c/a)*a)),e._pt=o=new ui(e._pt,t,i,s,c,os),o.e=d,o.u="deg",e._props.push(i),o},rn=function(e,t){for(var i in t)e[i]=t[i];return e},on=function(e,t,i){var s,n,r,o,a,l,c,d=rn({},i._gsap),u=i.style;for(n in d.svg?(r=i.getAttribute("transform"),i.setAttribute("transform",""),u[vs]=t,s=Gs(i,1),Ls(i,vs),i.setAttribute("transform",r)):(r=getComputedStyle(i)[vs],u[vs]=t,s=Gs(i,1),u[vs]=r),Zi)(r=d[n])!==(o=s[n])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(n)<0&&(a=Ze(r)!==(c=Ze(o))?$s(i,n,r,c):parseFloat(r),l=parseFloat(o),e._pt=new ui(e._pt,s,n,a,l-a,rs),e._pt.u=c||0,e._props.push(n));rn(s,d)};he("padding,margin,Width,Radius",(function(e,t){var i="Top",s="Right",n="Bottom",r="Left",o=(t<3?[i,s,n,r]:[i+r,i+s,n+s,n+r]).map((function(i){return t<2?e+i:"border"+i+e}));Ns[t>1?"border"+e:e]=function(e,t,i,s,n){var r,a;if(arguments.length<4)return r=o.map((function(t){return Bs(e,t,i)})),5===(a=r.join(" ")).split(r[0]).length?r[0]:a;r=(s+"").split(" "),a={},o.forEach((function(e,t){return a[e]=r[t]=r[t]||r[(t-1)/2|0]})),e.init(t,a,n)}}));var an,ln,cn,dn={name:"css",register:Ms,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,i,s,n){var r,o,a,l,c,d,u,h,p,f,m,g,v,b,_,w,x,T,S,E,C=this._props,M=e.style,A=i.vars.startAt;for(u in ki||Ms(),this.styles=this.styles||xs(e),w=this.styles.props,this.tween=i,t)if("autoRound"!==u&&(o=t[u],!ne[u]||!Yt(u,t,i,s,e,n)))if(c=typeof o,d=Ns[u],"function"===c&&(c=typeof(o=o.call(i,s,e,n))),"string"===c&&~o.indexOf("random(")&&(o=ct(o)),d)d(this,e,u,o,i)&&(_=1);else if("--"===u.substr(0,2))r=(getComputedStyle(e).getPropertyValue(u)+"").trim(),o+="",xt.lastIndex=0,xt.test(r)||(h=Ze(r),p=Ze(o)),p?h!==p&&(r=$s(e,u,r,p)+p):h&&(o+=h),this.add(M,"setProperty",r,o,s,n,0,0,u),C.push(u),w.push(u,0,M[u]);else if("undefined"!==c){if(A&&u in A?(r="function"==typeof A[u]?A[u].call(i,s,e,n):A[u],k(r)&&~r.indexOf("random(")&&(r=ct(r)),Ze(r+"")||"auto"===r||(r+=y.units[u]||Ze(Bs(e,u))||""),"="===(r+"").charAt(1)&&(r=Bs(e,u))):r=Bs(e,u),l=parseFloat(r),(f="string"===c&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),a=parseFloat(o),u in ns&&("autoAlpha"===u&&(1===l&&"hidden"===Bs(e,"visibility")&&a&&(l=0),w.push("visibility",0,M.visibility),Ps(this,M,"visibility",l?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==u&&"transform"!==u&&~(u=ns[u]).indexOf(",")&&(u=u.split(",")[0])),m=u in Zi)if(this.styles.save(u),"string"===c&&"var(--"===o.substring(0,6)&&(o=Ss(e,o.substring(4,o.indexOf(")"))),a=parseFloat(o)),g||((v=e._gsap).renderTransform&&!t.parseTransform||Gs(e,t.parseTransform),b=!1!==t.smoothOrigin&&v.smooth,(g=this._pt=new ui(this._pt,M,vs,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===u)this._pt=new ui(this._pt,v,"scaleY",v.scaleY,(f?me(v.scaleY,f+a):a)-v.scaleY||0,rs),this._pt.u=0,C.push("scaleY",u),u+="X";else{if("transformOrigin"===u){w.push(ys,0,M[ys]),T=void 0,S=void 0,E=void 0,T=(x=o).split(" "),S=T[0],E=T[1]||"50%","top"!==S&&"bottom"!==S&&"left"!==E&&"right"!==E||(x=S,S=E,E=x),T[0]=Fs[S]||S,T[1]=Fs[E]||E,o=T.join(" "),v.svg?Vs(e,o,0,b,0,this):((p=parseFloat(o.split(" ")[2])||0)!==v.zOrigin&&Ps(this,v,"zOrigin",v.zOrigin,p),Ps(this,M,u,Us(r),Us(o)));continue}if("svgOrigin"===u){Vs(e,o,1,b,0,this);continue}if(u in Ws){nn(this,v,u,l,f?me(l,f+o):o);continue}if("smoothOrigin"===u){Ps(this,v,"smooth",v.smooth,o);continue}if("force3D"===u){v[u]=o;continue}if("transform"===u){on(this,o,e);continue}}else u in M||(u=Cs(u)||u);if(m||(a||0===a)&&(l||0===l)&&!ss.test(o)&&u in M)a||(a=0),(h=(r+"").substr((l+"").length))!==(p=Ze(o)||(u in y.units?y.units[u]:h))&&(l=$s(e,u,r,p)),this._pt=new ui(this._pt,m?v:M,u,l,(f?me(l,f+a):a)-l,m||"px"!==p&&"zIndex"!==u||!1===t.autoRound?rs:ls),this._pt.u=p||0,h!==p&&"%"!==p&&(this._pt.b=r,this._pt.r=as);else if(u in M)Rs.call(this,e,u,r,f?f+o:o);else if(u in e)this.add(e,u,r||e[u],f?f+o:o,s,n);else if("parseTransform"!==u){G(u,o);continue}m||(u in M?w.push(u,0,M[u]):"function"==typeof e[u]?w.push(u,2,e[u]()):w.push(u,1,r||e[u])),C.push(u)}_&&di(this)},render:function(e,t){if(t.tween._time||!Oi())for(var i=t._pt;i;)i.r(e,i.d),i=i._next;else t.styles.revert()},get:Bs,aliases:ns,getSetter:function(e,t,i){var s=ns[t];return s&&s.indexOf(",")<0&&(t=s),t in Zi&&t!==ys&&(e._gsap.x||Bs(e,"x"))?i&&Ii===i?"scale"===t?fs:ps:(Ii=i||{})&&("scale"===t?ms:gs):e.style&&!O(e.style[t])?us:~t.indexOf("-")?hs:ii(e,t)},core:{_removeProperty:Ls,_getMatrix:Xs}};Si.utils.checkPrefix=Cs,Si.core.getStyleSaver=xs,cn=he((an="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(ln="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(e){Zi[e]=1})),he(ln,(function(e){y.units[e]="deg",Ws[e]=1})),ns[cn[13]]=an+","+ln,he("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(e){var t=e.split(":");ns[t[1]]=cn[t[0]]})),he("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(e){y.units[e]="px"})),Si.registerPlugin(dn);var un=Si.registerPlugin(dn)||Si,hn=un.core.Tween;e.Back=Yi,e.Bounce=Vi,e.CSSPlugin=dn,e.Circ=Qi,e.Cubic=ji,e.Elastic=qi,e.Expo=Ui,e.Linear=Ri,e.Power0=Pi,e.Power1=zi,e.Power2=Di,e.Power3=$i,e.Power4=Bi,e.Quad=Fi,e.Quart=Ni,e.Quint=Hi,e.Sine=Gi,e.SteppedEase=Xi,e.Strong=Wi,e.TimelineLite=jt,e.TimelineMax=jt,e.TweenLite=Zt,e.TweenMax=hn,e.default=un,e.gsap=un,"undefined"==typeof window||window!==e?Object.defineProperty(e,"__esModule",{value:!0}):delete window.default})), /*! Images Loaded Packaged Version: v5.0.0 Plugin URL: https://imagesloaded.desandro.com/ License: Copyright 2021-2024 | Released under the MIT License !*/ function(e,t){"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,(function(){function e(){}let t=e.prototype;return t.on=function(e,t){if(!e||!t)return this;let i=this._events=this._events||{},s=i[e]=i[e]||[];return s.includes(t)||s.push(t),this},t.once=function(e,t){if(!e||!t)return this;this.on(e,t);let i=this._onceEvents=this._onceEvents||{};return(i[e]=i[e]||{})[t]=!0,this},t.off=function(e,t){let i=this._events&&this._events[e];if(!i||!i.length)return this;let s=i.indexOf(t);return-1!=s&&i.splice(s,1),this},t.emitEvent=function(e,t){let i=this._events&&this._events[e];if(!i||!i.length)return this;i=i.slice(0),t=t||[];let s=this._onceEvents&&this._onceEvents[e];for(let n of i){s&&s[n]&&(this.off(e,n),delete s[n]),n.apply(this,t)}return this},t.allOff=function(){return delete this._events,delete this._onceEvents,this},e})), /*! * imagesLoaded v5.0.0 * JavaScript is all like "You images are done yet or what?" * MIT License */ function(e,t){"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,(function(e,t){let i=e.jQuery,s=e.console;function n(e,t,r){if(!(this instanceof n))return new n(e,t,r);let o=e;var a;("string"==typeof e&&(o=document.querySelectorAll(e)),o)?(this.elements=(a=o,Array.isArray(a)?a:"object"==typeof a&&"number"==typeof a.length?[...a]:[a]),this.options={},"function"==typeof t?r=t:Object.assign(this.options,t),r&&this.on("always",r),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${o||e}`)}n.prototype=Object.create(t.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const r=[1,9,11];n.prototype.addElementImages=function(e){"IMG"===e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);let{nodeType:t}=e;if(!t||!r.includes(t))return;let i=e.querySelectorAll("img");for(let e of i)this.addImage(e);if("string"==typeof this.options.background){let t=e.querySelectorAll(this.options.background);for(let e of t)this.addElementBackgroundImages(e)}};const o=/url\((['"])?(.*?)\1\)/gi;function a(e){this.img=e}function l(e,t){this.url=e,this.element=t,this.img=new Image}return n.prototype.addElementBackgroundImages=function(e){let t=getComputedStyle(e);if(!t)return;let i=o.exec(t.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,e),i=o.exec(t.backgroundImage)}},n.prototype.addImage=function(e){let t=new a(e);this.images.push(t)},n.prototype.addBackground=function(e,t){let i=new l(e,t);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let e=(e,t,i)=>{setTimeout((()=>{this.progress(e,t,i)}))};this.images.forEach((function(t){t.once("progress",e),t.check()}))},n.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,e,t)},n.prototype.complete=function(){let e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){let e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},a.prototype=Object.create(t.prototype),a.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},a.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},a.prototype.confirm=function(e,t){this.isLoaded=e;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,t])},a.prototype.handleEvent=function(e){let t="on"+e.type;this[t]&&this[t](e)},a.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},a.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},a.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype=Object.create(a.prototype),l.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},l.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},n.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&(i=t,i.fn.imagesLoaded=function(e,t){return new n(this,e,t).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n})), /*! Carto - Interactive portfolio Created by ThemeZaa !*/ $((function(){"use strict";const e=document.getElementById("stickyImgContainer");if(void 0!==e&&null!=e){const t=document.querySelector(".slides").querySelectorAll(".slide"),i=Array.from(t).map((e=>({image:"",title:"title1",meta:""})));class s{constructor(e){this.data=document.querySelectorAll(".slide"),this.container=document.querySelector(".slides"),this.currentIdx=0,this.slides=document.querySelectorAll(".slide")}mount(e){e.appendChild(this.container);for(let e=0;ee?(this.slides[e].classList.remove("next"),this.slides[e].classList.add("prev")):(this.slides[e].classList.add("next"),this.slides[e].classList.remove("prev"))}onActiveIndexChange(e){this.currentIdx=e;for(let t=0;tt?(this.slides[t].classList.remove("next"),this.slides[t].classList.add("prev")):(this.slides[t].classList.add("next"),this.slides[t].classList.remove("prev"))}onMove(e){this.container.style.transform=`translateY(${100*e/this.slides.length}%)`}appear(){this.container.classList.add("scrolling"),e.classList.add("scrolling"),this.slides[this.currentIdx].classList.remove("show-meta")}disperse(t){this.currentIdx=t,this.slides[this.currentIdx].classList.add("show-meta"),this.container.classList.remove("scrolling"),e.classList.remove("scrolling");for(let e=0;et?(this.slides[e].classList.add("next"),this.slides[e].classList.remove("prev")):e=0;d--)c=n[d],l=s[c]+.1*(t[c]-s[c]),Math.abs(t[c]-l){this.options.onIndexChange&&this.options.onIndexChange(e.index),this.index.current=e.index},complete:e=>{this.options.onIndexChange&&this.options.onIndexChange(e.index),this.index.current=e.index}})},o.prototype.onGrabStart=function(){this.options.onZoomOutStart&&this.options.onZoomOutStart({activeIndex:this.index.active}),this.index.initial=this.index.current},o.prototype.snapCurrentToActiveIndex=function(){this.slidesPop&&this.slidesPop.stop(),this.slidesPop=r({from:{index:this.index.current},to:{index:Math.round(this.index.target)},restDelta:.001}).start({complete:()=>{},update:e=>{this.options.onIndexChange&&this.options.onIndexChange(e.index),this.index.current=e.index}})},o.prototype.onGrabEnd=function(){this.options.onFullscreenStart&&(this.options.onFullscreenStart({activeIndex:this.index.active}),this.snapCurrentToActiveIndex())},o.prototype.onResize=function(){};const l=new s;new o(i,{onActiveIndexChange:e=>{l.onActiveIndexChange(e)},onIndexChange:e=>{l.onMove(e)},onZoomOutStart:({activeIndex:e})=>{l.appear()},onZoomOutFinish:({activeIndex:e})=>{},onFullscreenStart:({activeIndex:e})=>{l.disperse(e)},onFullscreenFinish:({activeIndex:e})=>{}});l.mount(e)}})), /*! Isotope Version: v3.0.6 Plugin URL: https://isotope.metafizzy.co License: Copyright 2010-2018 Metafizzy | Licensed GPLv3 for open source use or Isotope Commercial License for commercial use !*/ function(e,t){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],(function(i){return t(e,i)})):"object"==typeof module&&module.exports?module.exports=t(e,require("jquery")):e.jQueryBridget=t(e,e.jQuery)}(window,(function(e,t){"use strict";var i=Array.prototype.slice,s=e.console,n=void 0===s?function(){}:function(e){s.error(e)};function r(s,r,a){(a=a||t||e.jQuery)&&(r.prototype.option||(r.prototype.option=function(e){a.isPlainObject(e)&&(this.options=a.extend(!0,this.options,e))}),a.fn[s]=function(e){var t;return"string"==typeof e?function(e,t,i){var r,o="$()."+s+'("'+t+'")';return e.each((function(e,l){var c=a.data(l,s);if(c){var d=c[t];if(d&&"_"!=t.charAt(0)){var u=d.apply(c,i);r=void 0===r?u:r}else n(o+" is not a valid method")}else n(s+" not initialized. Cannot call methods, i.e. "+o)})),void 0!==r?r:e}(this,e,i.call(arguments,1)):(t=e,this.each((function(e,i){var n=a.data(i,s);n?(n.option(t),n._init()):(n=new r(i,t),a.data(i,s,n))})),this)},o(a))}function o(e){!e||e&&e.bridget||(e.bridget=r)}return o(t||e.jQuery),r})),function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,(function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},s=i[e]=i[e]||[];return-1==s.indexOf(t)&&s.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{};return(i[e]=i[e]||{})[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var s=i.indexOf(t);return-1!=s&&i.splice(s,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var s=this._onceEvents&&this._onceEvents[e],n=0;n