const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_slug_-P9mvh-RZ.js","assets/_slug_-CzAwYCf0.css","assets/default-0mkgnYKn.js","assets/IconYT-BUXcvX_O.js","assets/default-wHqkqLt-.css","assets/example-Dxe2qH_7.js","assets/ButtonToggle-ClAdrFWV.js","assets/ButtonToggle-CZqZoMXc.css","assets/example-DDLPA9LR.css","assets/fellows-projects-CpOwXh9y.js","assets/fellows-projects-CTeKRzVi.css","assets/partners-B71sJaHG.js","assets/HeroHeader-8_qJURVU.js","assets/HeroHeader-BWqtW8Xi.css","assets/partners-BmU2IQYc.css","assets/people-BsCNT1Ce.js","assets/PeopleGridList-aM36r-lR.js","assets/PeopleGridList-C2QCYTaP.css","assets/people-ROy3gRV0.css","assets/perspectives-DKuhZF3v.js","assets/perspectives-DYlrbtOh.css","assets/programs-Cv1OSf98.js","assets/programs-CdsrYbUq.css","assets/signup-o0iKoR0d.js","assets/signup-C9FcDUYJ.css"])))=>i.map(i=>d[i]);
var uk=Object.defineProperty;var ck=(t,e,n)=>e in t?uk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Oe=(t,e,n)=>ck(t,typeof e!="symbol"?e+"":e,n);function fk(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();/*!
  * shared v10.0.8
  * (c) 2025 kazuya kawaguchi
  * Released under the MIT License.
  */function dk(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const ed=typeof window<"u",Fs=(t,e=!1)=>e?Symbol.for(t):Symbol(t),hk=(t,e,n)=>pk({l:t,k:e,s:n}),pk=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),zn=t=>typeof t=="number"&&isFinite(t),mk=t=>Bm(t)==="[object Date]",td=t=>Bm(t)==="[object RegExp]",$d=t=>Bt(t)&&Object.keys(t).length===0,sr=Object.assign,gk=Object.create,on=(t=null)=>gk(t);let U_;const Nm=()=>U_||(U_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:on());function j_(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function W_(t){return t.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function _k(t){return t=t.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,i,o)=>`${i}="${W_(o)}"`),t=t.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,i,o)=>`${i}='${W_(o)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(t)&&(t=t.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{t=t.replace(r,"$1javascript&#58;")}),t}const vk=Object.prototype.hasOwnProperty;function ji(t,e){return vk.call(t,e)}const Zn=Array.isArray,Tn=t=>typeof t=="function",et=t=>typeof t=="string",kn=t=>typeof t=="boolean",Yt=t=>t!==null&&typeof t=="object",yk=t=>Yt(t)&&Tn(t.then)&&Tn(t.catch),k1=Object.prototype.toString,Bm=t=>k1.call(t),Bt=t=>Bm(t)==="[object Object]",bk=t=>t==null?"":Zn(t)||Bt(t)&&t.toString===k1?JSON.stringify(t,null,2):String(t);function Vm(t,e=""){return t.reduce((n,r,i)=>i===0?n+r:n+e+r,"")}const Zc=t=>!Yt(t)||Zn(t);function Pf(t,e){if(Zc(t)||Zc(e))throw new Error("Invalid value");const n=[{src:t,des:e}];for(;n.length;){const{src:r,des:i}=n.pop();Object.keys(r).forEach(o=>{o!=="__proto__"&&(Yt(r[o])&&!Yt(i[o])&&(i[o]=Array.isArray(r[o])?[]:on()),Zc(i[o])||Zc(r[o])?i[o]=r[o]:n.push({src:r[o],des:i[o]}))})}}/*!
  * message-compiler v10.0.8
  * (c) 2025 kazuya kawaguchi
  * Released under the MIT License.
  */function wk(t,e,n){return{line:t,column:e,offset:n}}function wp(t,e,n){return{start:t,end:e}}const nn={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},Sk=17;function Hd(t,e,n={}){const{domain:r,messages:i,args:o}=n,s=t,a=new SyntaxError(String(s));return a.code=t,e&&(a.location=e),a.domain=r,a}function Tk(t){throw t}const xo=" ",Ek="\r",Fr=`
`,kk="\u2028",Ak="\u2029";function Rk(t){const e=t;let n=0,r=1,i=1,o=0;const s=L=>e[L]===Ek&&e[L+1]===Fr,a=L=>e[L]===Fr,u=L=>e[L]===Ak,c=L=>e[L]===kk,h=L=>s(L)||a(L)||u(L)||c(L),l=()=>n,d=()=>r,f=()=>i,_=()=>o,g=L=>s(L)||u(L)||c(L)?Fr:e[L],b=()=>g(n),y=()=>g(n+o);function w(){return o=0,h(n)&&(r++,i=0),s(n)&&n++,n++,i++,e[n]}function A(){return s(n+o)&&o++,o++,e[n+o]}function k(){n=0,r=1,i=1,o=0}function R(L=0){o=L}function C(){const L=n+o;for(;L!==n;)w();o=0}return{index:l,line:d,column:f,peekOffset:_,charAt:g,currentChar:b,currentPeek:y,next:w,peek:A,reset:k,resetPeek:R,skipToPeek:C}}const os=void 0,xk=".",z_="'",Ck="tokenizer";function Pk(t,e={}){const n=e.location!==!1,r=Rk(t),i=()=>r.index(),o=()=>wk(r.line(),r.column(),r.index()),s=o(),a=i(),u={currentType:13,offset:a,startLoc:s,endLoc:s,lastType:13,lastOffset:a,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},c=()=>u,{onError:h}=e;function l(G,I,F,...Z){const fe=c();if(I.column+=F,I.offset+=F,h){const ue=n?wp(fe.startLoc,I):null,S=Hd(G,ue,{domain:Ck,args:Z});h(S)}}function d(G,I,F){G.endLoc=o(),G.currentType=I;const Z={type:I};return n&&(Z.loc=wp(G.startLoc,G.endLoc)),F!=null&&(Z.value=F),Z}const f=G=>d(G,13);function _(G,I){return G.currentChar()===I?(G.next(),I):(l(nn.EXPECTED_TOKEN,o(),0,I),"")}function g(G){let I="";for(;G.currentPeek()===xo||G.currentPeek()===Fr;)I+=G.currentPeek(),G.peek();return I}function b(G){const I=g(G);return G.skipToPeek(),I}function y(G){if(G===os)return!1;const I=G.charCodeAt(0);return I>=97&&I<=122||I>=65&&I<=90||I===95}function w(G){if(G===os)return!1;const I=G.charCodeAt(0);return I>=48&&I<=57}function A(G,I){const{currentType:F}=I;if(F!==2)return!1;g(G);const Z=y(G.currentPeek());return G.resetPeek(),Z}function k(G,I){const{currentType:F}=I;if(F!==2)return!1;g(G);const Z=G.currentPeek()==="-"?G.peek():G.currentPeek(),fe=w(Z);return G.resetPeek(),fe}function R(G,I){const{currentType:F}=I;if(F!==2)return!1;g(G);const Z=G.currentPeek()===z_;return G.resetPeek(),Z}function C(G,I){const{currentType:F}=I;if(F!==7)return!1;g(G);const Z=G.currentPeek()===".";return G.resetPeek(),Z}function L(G,I){const{currentType:F}=I;if(F!==8)return!1;g(G);const Z=y(G.currentPeek());return G.resetPeek(),Z}function M(G,I){const{currentType:F}=I;if(!(F===7||F===11))return!1;g(G);const Z=G.currentPeek()===":";return G.resetPeek(),Z}function $(G,I){const{currentType:F}=I;if(F!==9)return!1;const Z=()=>{const ue=G.currentPeek();return ue==="{"?y(G.peek()):ue==="@"||ue==="|"||ue===":"||ue==="."||ue===xo||!ue?!1:ue===Fr?(G.peek(),Z()):ne(G,!1)},fe=Z();return G.resetPeek(),fe}function U(G){g(G);const I=G.currentPeek()==="|";return G.resetPeek(),I}function ne(G,I=!0){const F=(fe=!1,ue="")=>{const S=G.currentPeek();return S==="{"||S==="@"||!S?fe:S==="|"?!(ue===xo||ue===Fr):S===xo?(G.peek(),F(!0,xo)):S===Fr?(G.peek(),F(!0,Fr)):!0},Z=F();return I&&G.resetPeek(),Z}function D(G,I){const F=G.currentChar();return F===os?os:I(F)?(G.next(),F):null}function Q(G){const I=G.charCodeAt(0);return I>=97&&I<=122||I>=65&&I<=90||I>=48&&I<=57||I===95||I===36}function N(G){return D(G,Q)}function W(G){const I=G.charCodeAt(0);return I>=97&&I<=122||I>=65&&I<=90||I>=48&&I<=57||I===95||I===36||I===45}function V(G){return D(G,W)}function B(G){const I=G.charCodeAt(0);return I>=48&&I<=57}function oe(G){return D(G,B)}function se(G){const I=G.charCodeAt(0);return I>=48&&I<=57||I>=65&&I<=70||I>=97&&I<=102}function q(G){return D(G,se)}function be(G){let I="",F="";for(;I=oe(G);)F+=I;return F}function Te(G){let I="";for(;;){const F=G.currentChar();if(F==="{"||F==="}"||F==="@"||F==="|"||!F)break;if(F===xo||F===Fr)if(ne(G))I+=F,G.next();else{if(U(G))break;I+=F,G.next()}else I+=F,G.next()}return I}function he(G){b(G);let I="",F="";for(;I=V(G);)F+=I;return G.currentChar()===os&&l(nn.UNTERMINATED_CLOSING_BRACE,o(),0),F}function ge(G){b(G);let I="";return G.currentChar()==="-"?(G.next(),I+=`-${be(G)}`):I+=be(G),G.currentChar()===os&&l(nn.UNTERMINATED_CLOSING_BRACE,o(),0),I}function Ae(G){return G!==z_&&G!==Fr}function ye(G){b(G),_(G,"'");let I="",F="";for(;I=D(G,Ae);)I==="\\"?F+=ie(G):F+=I;const Z=G.currentChar();return Z===Fr||Z===os?(l(nn.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),Z===Fr&&(G.next(),_(G,"'")),F):(_(G,"'"),F)}function ie(G){const I=G.currentChar();switch(I){case"\\":case"'":return G.next(),`\\${I}`;case"u":return le(G,I,4);case"U":return le(G,I,6);default:return l(nn.UNKNOWN_ESCAPE_SEQUENCE,o(),0,I),""}}function le(G,I,F){_(G,I);let Z="";for(let fe=0;fe<F;fe++){const ue=q(G);if(!ue){l(nn.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${I}${Z}${G.currentChar()}`);break}Z+=ue}return`\\${I}${Z}`}function pe(G){return G!=="{"&&G!=="}"&&G!==xo&&G!==Fr}function Se(G){b(G);let I="",F="";for(;I=D(G,pe);)F+=I;return F}function Ie(G){let I="",F="";for(;I=N(G);)F+=I;return F}function z(G){const I=F=>{const Z=G.currentChar();return Z==="{"||Z==="@"||Z==="|"||Z==="("||Z===")"||!Z||Z===xo?F:(F+=Z,G.next(),I(F))};return I("")}function P(G){b(G);const I=_(G,"|");return b(G),I}function Y(G,I){let F=null;switch(G.currentChar()){case"{":return I.braceNest>=1&&l(nn.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),G.next(),F=d(I,2,"{"),b(G),I.braceNest++,F;case"}":return I.braceNest>0&&I.currentType===2&&l(nn.EMPTY_PLACEHOLDER,o(),0),G.next(),F=d(I,3,"}"),I.braceNest--,I.braceNest>0&&b(G),I.inLinked&&I.braceNest===0&&(I.inLinked=!1),F;case"@":return I.braceNest>0&&l(nn.UNTERMINATED_CLOSING_BRACE,o(),0),F=ee(G,I)||f(I),I.braceNest=0,F;default:{let fe=!0,ue=!0,S=!0;if(U(G))return I.braceNest>0&&l(nn.UNTERMINATED_CLOSING_BRACE,o(),0),F=d(I,1,P(G)),I.braceNest=0,I.inLinked=!1,F;if(I.braceNest>0&&(I.currentType===4||I.currentType===5||I.currentType===6))return l(nn.UNTERMINATED_CLOSING_BRACE,o(),0),I.braceNest=0,K(G,I);if(fe=A(G,I))return F=d(I,4,he(G)),b(G),F;if(ue=k(G,I))return F=d(I,5,ge(G)),b(G),F;if(S=R(G,I))return F=d(I,6,ye(G)),b(G),F;if(!fe&&!ue&&!S)return F=d(I,12,Se(G)),l(nn.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,F.value),b(G),F;break}}return F}function ee(G,I){const{currentType:F}=I;let Z=null;const fe=G.currentChar();switch((F===7||F===8||F===11||F===9)&&(fe===Fr||fe===xo)&&l(nn.INVALID_LINKED_FORMAT,o(),0),fe){case"@":return G.next(),Z=d(I,7,"@"),I.inLinked=!0,Z;case".":return b(G),G.next(),d(I,8,".");case":":return b(G),G.next(),d(I,9,":");default:return U(G)?(Z=d(I,1,P(G)),I.braceNest=0,I.inLinked=!1,Z):C(G,I)||M(G,I)?(b(G),ee(G,I)):L(G,I)?(b(G),d(I,11,Ie(G))):$(G,I)?(b(G),fe==="{"?Y(G,I)||Z:d(I,10,z(G))):(F===7&&l(nn.INVALID_LINKED_FORMAT,o(),0),I.braceNest=0,I.inLinked=!1,K(G,I))}}function K(G,I){let F={type:13};if(I.braceNest>0)return Y(G,I)||f(I);if(I.inLinked)return ee(G,I)||f(I);switch(G.currentChar()){case"{":return Y(G,I)||f(I);case"}":return l(nn.UNBALANCED_CLOSING_BRACE,o(),0),G.next(),d(I,3,"}");case"@":return ee(G,I)||f(I);default:{if(U(G))return F=d(I,1,P(G)),I.braceNest=0,I.inLinked=!1,F;if(ne(G))return d(I,0,Te(G));break}}return F}function x(){const{currentType:G,offset:I,startLoc:F,endLoc:Z}=u;return u.lastType=G,u.lastOffset=I,u.lastStartLoc=F,u.lastEndLoc=Z,u.offset=i(),u.startLoc=o(),r.currentChar()===os?d(u,13):K(r,u)}return{nextToken:x,currentOffset:i,currentPosition:o,context:c}}const Ik="parser",Lk=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Ok(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function Mk(t={}){const e=t.location!==!1,{onError:n}=t;function r(y,w,A,k,...R){const C=y.currentPosition();if(C.offset+=k,C.column+=k,n){const L=e?wp(A,C):null,M=Hd(w,L,{domain:Ik,args:R});n(M)}}function i(y,w,A){const k={type:y};return e&&(k.start=w,k.end=w,k.loc={start:A,end:A}),k}function o(y,w,A,k){e&&(y.end=w,y.loc&&(y.loc.end=A))}function s(y,w){const A=y.context(),k=i(3,A.offset,A.startLoc);return k.value=w,o(k,y.currentOffset(),y.currentPosition()),k}function a(y,w){const A=y.context(),{lastOffset:k,lastStartLoc:R}=A,C=i(5,k,R);return C.index=parseInt(w,10),y.nextToken(),o(C,y.currentOffset(),y.currentPosition()),C}function u(y,w){const A=y.context(),{lastOffset:k,lastStartLoc:R}=A,C=i(4,k,R);return C.key=w,y.nextToken(),o(C,y.currentOffset(),y.currentPosition()),C}function c(y,w){const A=y.context(),{lastOffset:k,lastStartLoc:R}=A,C=i(9,k,R);return C.value=w.replace(Lk,Ok),y.nextToken(),o(C,y.currentOffset(),y.currentPosition()),C}function h(y){const w=y.nextToken(),A=y.context(),{lastOffset:k,lastStartLoc:R}=A,C=i(8,k,R);return w.type!==11?(r(y,nn.UNEXPECTED_EMPTY_LINKED_MODIFIER,A.lastStartLoc,0),C.value="",o(C,k,R),{nextConsumeToken:w,node:C}):(w.value==null&&r(y,nn.UNEXPECTED_LEXICAL_ANALYSIS,A.lastStartLoc,0,io(w)),C.value=w.value||"",o(C,y.currentOffset(),y.currentPosition()),{node:C})}function l(y,w){const A=y.context(),k=i(7,A.offset,A.startLoc);return k.value=w,o(k,y.currentOffset(),y.currentPosition()),k}function d(y){const w=y.context(),A=i(6,w.offset,w.startLoc);let k=y.nextToken();if(k.type===8){const R=h(y);A.modifier=R.node,k=R.nextConsumeToken||y.nextToken()}switch(k.type!==9&&r(y,nn.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,io(k)),k=y.nextToken(),k.type===2&&(k=y.nextToken()),k.type){case 10:k.value==null&&r(y,nn.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,io(k)),A.key=l(y,k.value||"");break;case 4:k.value==null&&r(y,nn.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,io(k)),A.key=u(y,k.value||"");break;case 5:k.value==null&&r(y,nn.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,io(k)),A.key=a(y,k.value||"");break;case 6:k.value==null&&r(y,nn.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,io(k)),A.key=c(y,k.value||"");break;default:{r(y,nn.UNEXPECTED_EMPTY_LINKED_KEY,w.lastStartLoc,0);const R=y.context(),C=i(7,R.offset,R.startLoc);return C.value="",o(C,R.offset,R.startLoc),A.key=C,o(A,R.offset,R.startLoc),{nextConsumeToken:k,node:A}}}return o(A,y.currentOffset(),y.currentPosition()),{node:A}}function f(y){const w=y.context(),A=w.currentType===1?y.currentOffset():w.offset,k=w.currentType===1?w.endLoc:w.startLoc,R=i(2,A,k);R.items=[];let C=null;do{const $=C||y.nextToken();switch(C=null,$.type){case 0:$.value==null&&r(y,nn.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,io($)),R.items.push(s(y,$.value||""));break;case 5:$.value==null&&r(y,nn.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,io($)),R.items.push(a(y,$.value||""));break;case 4:$.value==null&&r(y,nn.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,io($)),R.items.push(u(y,$.value||""));break;case 6:$.value==null&&r(y,nn.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,io($)),R.items.push(c(y,$.value||""));break;case 7:{const U=d(y);R.items.push(U.node),C=U.nextConsumeToken||null;break}}}while(w.currentType!==13&&w.currentType!==1);const L=w.currentType===1?w.lastOffset:y.currentOffset(),M=w.currentType===1?w.lastEndLoc:y.currentPosition();return o(R,L,M),R}function _(y,w,A,k){const R=y.context();let C=k.items.length===0;const L=i(1,w,A);L.cases=[],L.cases.push(k);do{const M=f(y);C||(C=M.items.length===0),L.cases.push(M)}while(R.currentType!==13);return C&&r(y,nn.MUST_HAVE_MESSAGES_IN_PLURAL,A,0),o(L,y.currentOffset(),y.currentPosition()),L}function g(y){const w=y.context(),{offset:A,startLoc:k}=w,R=f(y);return w.currentType===13?R:_(y,A,k,R)}function b(y){const w=Pk(y,sr({},t)),A=w.context(),k=i(0,A.offset,A.startLoc);return e&&k.loc&&(k.loc.source=y),k.body=g(w),t.onCacheKey&&(k.cacheKey=t.onCacheKey(y)),A.currentType!==13&&r(w,nn.UNEXPECTED_LEXICAL_ANALYSIS,A.lastStartLoc,0,y[A.offset]||""),o(k,w.currentOffset(),w.currentPosition()),k}return{parse:b}}function io(t){if(t.type===13)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function Fk(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function q_(t,e){for(let n=0;n<t.length;n++)Um(t[n],e)}function Um(t,e){switch(t.type){case 1:q_(t.cases,e),e.helper("plural");break;case 2:q_(t.items,e);break;case 6:{Um(t.key,e),e.helper("linked"),e.helper("type");break}case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function Dk(t,e={}){const n=Fk(t);n.helper("normalize"),t.body&&Um(t.body,n);const r=n.context();t.helpers=Array.from(r.helpers)}function $k(t){const e=t.body;return e.type===2?G_(e):e.cases.forEach(n=>G_(n)),t}function G_(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let n=0;n<t.items.length;n++){const r=t.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;e.push(r.value)}if(e.length===t.items.length){t.static=Vm(e);for(let n=0;n<t.items.length;n++){const r=t.items[n];(r.type===3||r.type===9)&&delete r.value}}}}function Wa(t){switch(t.t=t.type,t.type){case 0:{const e=t;Wa(e.body),e.b=e.body,delete e.body;break}case 1:{const e=t,n=e.cases;for(let r=0;r<n.length;r++)Wa(n[r]);e.c=n,delete e.cases;break}case 2:{const e=t,n=e.items;for(let r=0;r<n.length;r++)Wa(n[r]);e.i=n,delete e.items,e.static&&(e.s=e.static,delete e.static);break}case 3:case 9:case 8:case 7:{const e=t;e.value&&(e.v=e.value,delete e.value);break}case 6:{const e=t;Wa(e.key),e.k=e.key,delete e.key,e.modifier&&(Wa(e.modifier),e.m=e.modifier,delete e.modifier);break}case 5:{const e=t;e.i=e.index,delete e.index;break}case 4:{const e=t;e.k=e.key,delete e.key;break}}delete t.type}function Hk(t,e){const{filename:n,breakLineCode:r,needIndent:i}=e,o=e.location!==!1,s={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:i,indentLevel:0};o&&t.loc&&(s.source=t.loc.source);const a=()=>s;function u(g,b){s.code+=g}function c(g,b=!0){const y=b?r:"";u(i?y+"  ".repeat(g):y)}function h(g=!0){const b=++s.indentLevel;g&&c(b)}function l(g=!0){const b=--s.indentLevel;g&&c(b)}function d(){c(s.indentLevel)}return{context:a,push:u,indent:h,deindent:l,newline:d,helper:g=>`_${g}`,needIndent:()=>s.needIndent}}function Nk(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),ml(t,e.key),e.modifier?(t.push(", "),ml(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function Bk(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const i=e.items.length;for(let o=0;o<i&&(ml(t,e.items[o]),o!==i-1);o++)t.push(", ");t.deindent(r()),t.push("])")}function Vk(t,e){const{helper:n,needIndent:r}=t;if(e.cases.length>1){t.push(`${n("plural")}([`),t.indent(r());const i=e.cases.length;for(let o=0;o<i&&(ml(t,e.cases[o]),o!==i-1);o++)t.push(", ");t.deindent(r()),t.push("])")}}function Uk(t,e){e.body?ml(t,e.body):t.push("null")}function ml(t,e){const{helper:n}=t;switch(e.type){case 0:Uk(t,e);break;case 1:Vk(t,e);break;case 2:Bk(t,e);break;case 6:Nk(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${n("interpolate")}(${n("list")}(${e.index}))`,e);break;case 4:t.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break}}const jk=(t,e={})=>{const n=et(e.mode)?e.mode:"normal",r=et(e.filename)?e.filename:"message.intl";e.sourceMap;const i=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":`
`,o=e.needIndent?e.needIndent:n!=="arrow",s=t.helpers||[],a=Hk(t,{filename:r,breakLineCode:i,needIndent:o});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(o),s.length>0&&(a.push(`const { ${Vm(s.map(h=>`${h}: _${h}`),", ")} } = ctx`),a.newline()),a.push("return "),ml(a,t),a.deindent(o),a.push("}"),delete t.helpers;const{code:u,map:c}=a.context();return{ast:t,code:u,map:c?c.toJSON():void 0}};function Wk(t,e={}){const n=sr({},e),r=!!n.jit,i=!!n.minify,o=n.optimize==null?!0:n.optimize,a=Mk(n).parse(t);return r?(o&&$k(a),i&&Wa(a),{ast:a,code:""}):(Dk(a,n),jk(a,n))}/*!
  * core-base v10.0.8
  * (c) 2025 kazuya kawaguchi
  * Released under the MIT License.
  */function zk(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Nm().__INTLIFY_PROD_DEVTOOLS__=!1)}function vo(t){return Yt(t)&&jm(t)===0&&(ji(t,"b")||ji(t,"body"))}const A1=["b","body"];function qk(t){return Ds(t,A1)}const R1=["c","cases"];function Gk(t){return Ds(t,R1,[])}const x1=["s","static"];function Yk(t){return Ds(t,x1)}const C1=["i","items"];function Kk(t){return Ds(t,C1,[])}const P1=["t","type"];function jm(t){return Ds(t,P1)}const I1=["v","value"];function ef(t,e){const n=Ds(t,I1);if(n!=null)return n;throw Wu(e)}const L1=["m","modifier"];function Xk(t){return Ds(t,L1)}const O1=["k","key"];function Qk(t){const e=Ds(t,O1);if(e)return e;throw Wu(6)}function Ds(t,e,n){for(let r=0;r<e.length;r++){const i=e[r];if(ji(t,i)&&t[i]!=null)return t[i]}return n}const M1=[...A1,...R1,...x1,...C1,...O1,...L1,...I1,...P1];function Wu(t){return new Error(`unhandled node type: ${t}`)}function Ch(t){return n=>Jk(n,t)}function Jk(t,e){const n=qk(e);if(n==null)throw Wu(0);if(jm(n)===1){const o=Gk(n);return t.plural(o.reduce((s,a)=>[...s,Y_(t,a)],[]))}else return Y_(t,n)}function Y_(t,e){const n=Yk(e);if(n!=null)return t.type==="text"?n:t.normalize([n]);{const r=Kk(e).reduce((i,o)=>[...i,Sp(t,o)],[]);return t.normalize(r)}}function Sp(t,e){const n=jm(e);switch(n){case 3:return ef(e,n);case 9:return ef(e,n);case 4:{const r=e;if(ji(r,"k")&&r.k)return t.interpolate(t.named(r.k));if(ji(r,"key")&&r.key)return t.interpolate(t.named(r.key));throw Wu(n)}case 5:{const r=e;if(ji(r,"i")&&zn(r.i))return t.interpolate(t.list(r.i));if(ji(r,"index")&&zn(r.index))return t.interpolate(t.list(r.index));throw Wu(n)}case 6:{const r=e,i=Xk(r),o=Qk(r);return t.linked(Sp(t,o),i?Sp(t,i):void 0,t.type)}case 7:return ef(e,n);case 8:return ef(e,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Zk=t=>t;let tf=on();function eA(t,e={}){let n=!1;const r=e.onError||Tk;return e.onError=i=>{n=!0,r(i)},{...Wk(t,e),detectError:n}}function tA(t,e){if(et(t)){kn(e.warnHtmlMessage)&&e.warnHtmlMessage;const r=(e.onCacheKey||Zk)(t),i=tf[r];if(i)return i;const{ast:o,detectError:s}=eA(t,{...e,location:!1,jit:!0}),a=Ch(o);return s?a:tf[r]=a}else{const n=t.cacheKey;if(n){const r=tf[n];return r||(tf[n]=Ch(t))}else return Ch(t)}}let zu=null;function nA(t){zu=t}function rA(t,e,n){zu&&zu.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:e,meta:n})}const iA=oA("function:translate");function oA(t){return e=>zu&&zu.emit(t,e)}const Vo={INVALID_ARGUMENT:Sk,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},sA=24;function Uo(t){return Hd(t,null,void 0)}function Wm(t,e){return e.locale!=null?K_(e.locale):K_(t.locale)}let Ph;function K_(t){if(et(t))return t;if(Tn(t)){if(t.resolvedOnce&&Ph!=null)return Ph;if(t.constructor.name==="Function"){const e=t();if(yk(e))throw Uo(Vo.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Ph=e}else throw Uo(Vo.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Uo(Vo.NOT_SUPPORT_LOCALE_TYPE)}function aA(t,e,n){return[...new Set([n,...Zn(e)?e:Yt(e)?Object.keys(e):et(e)?[e]:[n]])]}function F1(t,e,n){const r=et(n)?n:nd,i=t;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(r);if(!o){o=[];let s=[n];for(;Zn(s);)s=X_(o,s,e);const a=Zn(e)||!Bt(e)?e:e.default?e.default:null;s=et(a)?[a]:a,Zn(s)&&X_(o,s,!1),i.__localeChainCache.set(r,o)}return o}function X_(t,e,n){let r=!0;for(let i=0;i<e.length&&kn(r);i++){const o=e[i];et(o)&&(r=lA(t,e[i],n))}return r}function lA(t,e,n){let r;const i=e.split("-");do{const o=i.join("-");r=uA(t,o,n),i.splice(-1,1)}while(i.length&&r===!0);return r}function uA(t,e,n){let r=!1;if(!t.includes(e)&&(r=!0,e)){r=e[e.length-1]!=="!";const i=e.replace(/!/g,"");t.push(i),(Zn(n)||Bt(n))&&n[i]&&(r=n[i])}return r}const $s=[];$s[0]={w:[0],i:[3,0],"[":[4],o:[7]};$s[1]={w:[1],".":[2],"[":[4],o:[7]};$s[2]={w:[2],i:[3,0],0:[3,0]};$s[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};$s[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};$s[5]={"'":[4,0],o:8,l:[5,0]};$s[6]={'"':[4,0],o:8,l:[6,0]};const cA=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function fA(t){return cA.test(t)}function dA(t){const e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e===n&&(e===34||e===39)?t.slice(1,-1):t}function hA(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function pA(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:fA(e)?dA(e):"*"+e}function mA(t){const e=[];let n=-1,r=0,i=0,o,s,a,u,c,h,l;const d=[];d[0]=()=>{s===void 0?s=a:s+=a},d[1]=()=>{s!==void 0&&(e.push(s),s=void 0)},d[2]=()=>{d[0](),i++},d[3]=()=>{if(i>0)i--,r=4,d[0]();else{if(i=0,s===void 0||(s=pA(s),s===!1))return!1;d[1]()}};function f(){const _=t[n+1];if(r===5&&_==="'"||r===6&&_==='"')return n++,a="\\"+_,d[0](),!0}for(;r!==null;)if(n++,o=t[n],!(o==="\\"&&f())){if(u=hA(o),l=$s[r],c=l[u]||l.l||8,c===8||(r=c[0],c[1]!==void 0&&(h=d[c[1]],h&&(a=o,h()===!1))))return;if(r===7)return e}}const Q_=new Map;function gA(t,e){return Yt(t)?t[e]:null}function _A(t,e){if(!Yt(t))return null;let n=Q_.get(e);if(n||(n=mA(e),n&&Q_.set(e,n)),!n)return null;const r=n.length;let i=t,o=0;for(;o<r;){const s=n[o];if(M1.includes(s)&&vo(i))return null;const a=i[s];if(a===void 0||Tn(i))return null;i=a,o++}return i}const vA="10.0.8",Nd=-1,nd="en-US",J_="",Z_=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function yA(){return{upper:(t,e)=>e==="text"&&et(t)?t.toUpperCase():e==="vnode"&&Yt(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&et(t)?t.toLowerCase():e==="vnode"&&Yt(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&et(t)?Z_(t):e==="vnode"&&Yt(t)&&"__v_isVNode"in t?Z_(t.children):t}}let D1;function bA(t){D1=t}let $1;function wA(t){$1=t}let H1;function SA(t){H1=t}let N1=null;const TA=t=>{N1=t},EA=()=>N1;let B1=null;const ev=t=>{B1=t},kA=()=>B1;let tv=0;function AA(t={}){const e=Tn(t.onWarn)?t.onWarn:dk,n=et(t.version)?t.version:vA,r=et(t.locale)||Tn(t.locale)?t.locale:nd,i=Tn(r)?nd:r,o=Zn(t.fallbackLocale)||Bt(t.fallbackLocale)||et(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:i,s=Bt(t.messages)?t.messages:Ih(i),a=Bt(t.datetimeFormats)?t.datetimeFormats:Ih(i),u=Bt(t.numberFormats)?t.numberFormats:Ih(i),c=sr(on(),t.modifiers,yA()),h=t.pluralRules||on(),l=Tn(t.missing)?t.missing:null,d=kn(t.missingWarn)||td(t.missingWarn)?t.missingWarn:!0,f=kn(t.fallbackWarn)||td(t.fallbackWarn)?t.fallbackWarn:!0,_=!!t.fallbackFormat,g=!!t.unresolving,b=Tn(t.postTranslation)?t.postTranslation:null,y=Bt(t.processor)?t.processor:null,w=kn(t.warnHtmlMessage)?t.warnHtmlMessage:!0,A=!!t.escapeParameter,k=Tn(t.messageCompiler)?t.messageCompiler:D1,R=Tn(t.messageResolver)?t.messageResolver:$1||gA,C=Tn(t.localeFallbacker)?t.localeFallbacker:H1||aA,L=Yt(t.fallbackContext)?t.fallbackContext:void 0,M=t,$=Yt(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,U=Yt(M.__numberFormatters)?M.__numberFormatters:new Map,ne=Yt(M.__meta)?M.__meta:{};tv++;const D={version:n,cid:tv,locale:r,fallbackLocale:o,messages:s,modifiers:c,pluralRules:h,missing:l,missingWarn:d,fallbackWarn:f,fallbackFormat:_,unresolving:g,postTranslation:b,processor:y,warnHtmlMessage:w,escapeParameter:A,messageCompiler:k,messageResolver:R,localeFallbacker:C,fallbackContext:L,onWarn:e,__meta:ne};return D.datetimeFormats=a,D.numberFormats=u,D.__datetimeFormatters=$,D.__numberFormatters=U,__INTLIFY_PROD_DEVTOOLS__&&rA(D,n,ne),D}const Ih=t=>({[t]:on()});function zm(t,e,n,r,i){const{missing:o,onWarn:s}=t;if(o!==null){const a=o(t,n,e,i);return et(a)?a:e}else return e}function Xl(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}function RA(t,e){return t===e?!1:t.split("-")[0]===e.split("-")[0]}function xA(t,e){const n=e.indexOf(t);if(n===-1)return!1;for(let r=n+1;r<e.length;r++)if(RA(t,e[r]))return!0;return!1}function nv(t,...e){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:s}=t,{__datetimeFormatters:a}=t,[u,c,h,l]=Tp(...e),d=kn(h.missingWarn)?h.missingWarn:t.missingWarn;kn(h.fallbackWarn)?h.fallbackWarn:t.fallbackWarn;const f=!!h.part,_=Wm(t,h),g=s(t,i,_);if(!et(u)||u==="")return new Intl.DateTimeFormat(_,l).format(c);let b={},y,w=null;const A="datetime format";for(let C=0;C<g.length&&(y=g[C],b=n[y]||{},w=b[u],!Bt(w));C++)zm(t,u,y,d,A);if(!Bt(w)||!et(y))return r?Nd:u;let k=`${y}__${u}`;$d(l)||(k=`${k}__${JSON.stringify(l)}`);let R=a.get(k);return R||(R=new Intl.DateTimeFormat(y,sr({},w,l)),a.set(k,R)),f?R.formatToParts(c):R.format(c)}const V1=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Tp(...t){const[e,n,r,i]=t,o=on();let s=on(),a;if(et(e)){const u=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!u)throw Uo(Vo.INVALID_ISO_DATE_ARGUMENT);const c=u[3]?u[3].trim().startsWith("T")?`${u[1].trim()}${u[3].trim()}`:`${u[1].trim()}T${u[3].trim()}`:u[1].trim();a=new Date(c);try{a.toISOString()}catch{throw Uo(Vo.INVALID_ISO_DATE_ARGUMENT)}}else if(mk(e)){if(isNaN(e.getTime()))throw Uo(Vo.INVALID_DATE_ARGUMENT);a=e}else if(zn(e))a=e;else throw Uo(Vo.INVALID_ARGUMENT);return et(n)?o.key=n:Bt(n)&&Object.keys(n).forEach(u=>{V1.includes(u)?s[u]=n[u]:o[u]=n[u]}),et(r)?o.locale=r:Bt(r)&&(s=r),Bt(i)&&(s=i),[o.key||"",a,o,s]}function rv(t,e,n){const r=t;for(const i in n){const o=`${e}__${i}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function iv(t,...e){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:s}=t,{__numberFormatters:a}=t,[u,c,h,l]=Ep(...e),d=kn(h.missingWarn)?h.missingWarn:t.missingWarn;kn(h.fallbackWarn)?h.fallbackWarn:t.fallbackWarn;const f=!!h.part,_=Wm(t,h),g=s(t,i,_);if(!et(u)||u==="")return new Intl.NumberFormat(_,l).format(c);let b={},y,w=null;const A="number format";for(let C=0;C<g.length&&(y=g[C],b=n[y]||{},w=b[u],!Bt(w));C++)zm(t,u,y,d,A);if(!Bt(w)||!et(y))return r?Nd:u;let k=`${y}__${u}`;$d(l)||(k=`${k}__${JSON.stringify(l)}`);let R=a.get(k);return R||(R=new Intl.NumberFormat(y,sr({},w,l)),a.set(k,R)),f?R.formatToParts(c):R.format(c)}const U1=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Ep(...t){const[e,n,r,i]=t,o=on();let s=on();if(!zn(e))throw Uo(Vo.INVALID_ARGUMENT);const a=e;return et(n)?o.key=n:Bt(n)&&Object.keys(n).forEach(u=>{U1.includes(u)?s[u]=n[u]:o[u]=n[u]}),et(r)?o.locale=r:Bt(r)&&(s=r),Bt(i)&&(s=i),[o.key||"",a,o,s]}function ov(t,e,n){const r=t;for(const i in n){const o=`${e}__${i}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}const CA=t=>t,PA=t=>"",IA="text",LA=t=>t.length===0?"":Vm(t),OA=bk;function sv(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function MA(t){const e=zn(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(zn(t.named.count)||zn(t.named.n))?zn(t.named.count)?t.named.count:zn(t.named.n)?t.named.n:e:e}function FA(t,e){e.count||(e.count=t),e.n||(e.n=t)}function DA(t={}){const e=t.locale,n=MA(t),r=Yt(t.pluralRules)&&et(e)&&Tn(t.pluralRules[e])?t.pluralRules[e]:sv,i=Yt(t.pluralRules)&&et(e)&&Tn(t.pluralRules[e])?sv:void 0,o=y=>y[r(n,y.length,i)],s=t.list||[],a=y=>s[y],u=t.named||on();zn(t.pluralIndex)&&FA(n,u);const c=y=>u[y];function h(y,w){const A=Tn(t.messages)?t.messages(y,!!w):Yt(t.messages)?t.messages[y]:!1;return A||(t.parent?t.parent.message(y):PA)}const l=y=>t.modifiers?t.modifiers[y]:CA,d=Bt(t.processor)&&Tn(t.processor.normalize)?t.processor.normalize:LA,f=Bt(t.processor)&&Tn(t.processor.interpolate)?t.processor.interpolate:OA,_=Bt(t.processor)&&et(t.processor.type)?t.processor.type:IA,b={list:a,named:c,plural:o,linked:(y,...w)=>{const[A,k]=w;let R="text",C="";w.length===1?Yt(A)?(C=A.modifier||C,R=A.type||R):et(A)&&(C=A||C):w.length===2&&(et(A)&&(C=A||C),et(k)&&(R=k||R));const L=h(y,!0)(b),M=R==="vnode"&&Zn(L)&&C?L[0]:L;return C?l(C)(M,R):M},message:h,type:_,interpolate:f,normalize:d,values:sr(on(),s,u)};return b}const av=()=>"",ki=t=>Tn(t);function lv(t,...e){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:o,fallbackLocale:s,messages:a}=t,[u,c]=kp(...e),h=kn(c.missingWarn)?c.missingWarn:t.missingWarn,l=kn(c.fallbackWarn)?c.fallbackWarn:t.fallbackWarn,d=kn(c.escapeParameter)?c.escapeParameter:t.escapeParameter,f=!!c.resolvedMessage,_=et(c.default)||kn(c.default)?kn(c.default)?o?u:()=>u:c.default:n?o?u:()=>u:null,g=n||_!=null&&(et(_)||Tn(_)),b=Wm(t,c);d&&$A(c);let[y,w,A]=f?[u,b,a[b]||on()]:j1(t,u,b,s,l,h),k=y,R=u;if(!f&&!(et(k)||vo(k)||ki(k))&&g&&(k=_,R=k),!f&&(!(et(k)||vo(k)||ki(k))||!et(w)))return i?Nd:u;let C=!1;const L=()=>{C=!0},M=ki(k)?k:W1(t,u,w,k,R,L);if(C)return k;const $=BA(t,w,A,c),U=DA($),ne=HA(t,M,U);let D=r?r(ne,u):ne;if(d&&et(D)&&(D=_k(D)),__INTLIFY_PROD_DEVTOOLS__){const Q={timestamp:Date.now(),key:et(u)?u:ki(k)?k.key:"",locale:w||(ki(k)?k.locale:""),format:et(k)?k:ki(k)?k.source:"",message:D};Q.meta=sr({},t.__meta,EA()||{}),iA(Q)}return D}function $A(t){Zn(t.list)?t.list=t.list.map(e=>et(e)?j_(e):e):Yt(t.named)&&Object.keys(t.named).forEach(e=>{et(t.named[e])&&(t.named[e]=j_(t.named[e]))})}function j1(t,e,n,r,i,o){const{messages:s,onWarn:a,messageResolver:u,localeFallbacker:c}=t,h=c(t,r,n);let l=on(),d,f=null;const _="translate";for(let g=0;g<h.length&&(d=h[g],l=s[d]||on(),(f=u(l,e))===null&&(f=l[e]),!(et(f)||vo(f)||ki(f)));g++)if(!xA(d,h)){const b=zm(t,e,d,o,_);b!==e&&(f=b)}return[f,d,l]}function W1(t,e,n,r,i,o){const{messageCompiler:s,warnHtmlMessage:a}=t;if(ki(r)){const c=r;return c.locale=c.locale||n,c.key=c.key||e,c}if(s==null){const c=()=>r;return c.locale=n,c.key=e,c}const u=s(r,NA(t,n,i,r,a,o));return u.locale=n,u.key=e,u.source=r,u}function HA(t,e,n){return e(n)}function kp(...t){const[e,n,r]=t,i=on();if(!et(e)&&!zn(e)&&!ki(e)&&!vo(e))throw Uo(Vo.INVALID_ARGUMENT);const o=zn(e)?String(e):(ki(e),e);return zn(n)?i.plural=n:et(n)?i.default=n:Bt(n)&&!$d(n)?i.named=n:Zn(n)&&(i.list=n),zn(r)?i.plural=r:et(r)?i.default=r:Bt(r)&&sr(i,r),[o,i]}function NA(t,e,n,r,i,o){return{locale:e,key:n,warnHtmlMessage:i,onError:s=>{throw o&&o(s),s},onCacheKey:s=>hk(e,n,s)}}function BA(t,e,n,r){const{modifiers:i,pluralRules:o,messageResolver:s,fallbackLocale:a,fallbackWarn:u,missingWarn:c,fallbackContext:h}=t,d={locale:e,modifiers:i,pluralRules:o,messages:(f,_)=>{let g=s(n,f);if(g==null&&(h||_)){const[,,b]=j1(h||t,f,e,a,u,c);g=s(b,f)}if(et(g)||vo(g)){let b=!1;const w=W1(t,f,e,g,f,()=>{b=!0});return b?av:w}else return ki(g)?g:av}};return t.processor&&(d.processor=t.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),zn(r.plural)&&(d.pluralIndex=r.plural),d}zk();/**
* @vue/shared v3.5.17
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function qm(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const dn={},tl=[],yo=()=>{},VA=()=>!1,Bd=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Gm=t=>t.startsWith("onUpdate:"),ar=Object.assign,Ym=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},UA=Object.prototype.hasOwnProperty,tn=(t,e)=>UA.call(t,e),at=Array.isArray,nl=t=>_c(t)==="[object Map]",Vd=t=>_c(t)==="[object Set]",uv=t=>_c(t)==="[object Date]",ft=t=>typeof t=="function",Rn=t=>typeof t=="string",qi=t=>typeof t=="symbol",sn=t=>t!==null&&typeof t=="object",z1=t=>(sn(t)||ft(t))&&ft(t.then)&&ft(t.catch),q1=Object.prototype.toString,_c=t=>q1.call(t),jA=t=>_c(t).slice(8,-1),G1=t=>_c(t)==="[object Object]",Km=t=>Rn(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,bu=qm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ud=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},WA=/-(\w)/g,Fi=Ud(t=>t.replace(WA,(e,n)=>n?n.toUpperCase():"")),zA=/\B([A-Z])/g,Ra=Ud(t=>t.replace(zA,"-$1").toLowerCase()),jd=Ud(t=>t.charAt(0).toUpperCase()+t.slice(1)),Lh=Ud(t=>t?`on${jd(t)}`:""),ks=(t,e)=>!Object.is(t,e),If=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},Ap=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},rd=t=>{const e=parseFloat(t);return isNaN(e)?t:e},qA=t=>{const e=Rn(t)?Number(t):NaN;return isNaN(e)?t:e};let cv;const Wd=()=>cv||(cv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Xm(t){if(at(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],i=Rn(r)?XA(r):Xm(r);if(i)for(const o in i)e[o]=i[o]}return e}else if(Rn(t)||sn(t))return t}const GA=/;(?![^(]*\))/g,YA=/:([^]+)/,KA=/\/\*[^]*?\*\//g;function XA(t){const e={};return t.replace(KA,"").split(GA).forEach(n=>{if(n){const r=n.split(YA);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function st(t){let e="";if(Rn(t))e=t;else if(at(t))for(let n=0;n<t.length;n++){const r=st(t[n]);r&&(e+=r+" ")}else if(sn(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const QA="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",JA=qm(QA);function Y1(t){return!!t||t===""}function ZA(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=zd(t[r],e[r]);return n}function zd(t,e){if(t===e)return!0;let n=uv(t),r=uv(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=qi(t),r=qi(e),n||r)return t===e;if(n=at(t),r=at(e),n||r)return n&&r?ZA(t,e):!1;if(n=sn(t),r=sn(e),n||r){if(!n||!r)return!1;const i=Object.keys(t).length,o=Object.keys(e).length;if(i!==o)return!1;for(const s in t){const a=t.hasOwnProperty(s),u=e.hasOwnProperty(s);if(a&&!u||!a&&u||!zd(t[s],e[s]))return!1}}return String(t)===String(e)}function eR(t,e){return t.findIndex(n=>zd(n,e))}const K1=t=>!!(t&&t.__v_isRef===!0),We=t=>Rn(t)?t:t==null?"":at(t)||sn(t)&&(t.toString===q1||!ft(t.toString))?K1(t)?We(t.value):JSON.stringify(t,X1,2):String(t),X1=(t,e)=>K1(e)?X1(t,e.value):nl(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,i],o)=>(n[Oh(r,o)+" =>"]=i,n),{})}:Vd(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Oh(n))}:qi(e)?Oh(e):sn(e)&&!at(e)&&!G1(e)?String(e):e,Oh=(t,e="")=>{var n;return qi(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/**
* @vue/reactivity v3.5.17
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let wr;class Q1{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=wr,!e&&wr&&(this.index=(wr.scopes||(wr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].pause();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].resume();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].resume()}}run(e){if(this._active){const n=wr;try{return wr=this,e()}finally{wr=n}}}on(){++this._on===1&&(this.prevScope=wr,wr=this)}off(){this._on>0&&--this._on===0&&(wr=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Qm(t){return new Q1(t)}function J1(){return wr}function tR(t,e=!1){wr&&wr.cleanups.push(t)}let mn;const Mh=new WeakSet;class Z1{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,wr&&wr.active&&wr.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Mh.has(this)&&(Mh.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||tb(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,fv(this),nb(this);const e=mn,n=Wi;mn=this,Wi=!0;try{return this.fn()}finally{rb(this),mn=e,Wi=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)eg(e);this.deps=this.depsTail=void 0,fv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Mh.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Rp(this)&&this.run()}get dirty(){return Rp(this)}}let eb=0,wu,Su;function tb(t,e=!1){if(t.flags|=8,e){t.next=Su,Su=t;return}t.next=wu,wu=t}function Jm(){eb++}function Zm(){if(--eb>0)return;if(Su){let e=Su;for(Su=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;wu;){let e=wu;for(wu=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}function nb(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function rb(t){let e,n=t.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),eg(r),nR(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}t.deps=e,t.depsTail=n}function Rp(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(ib(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function ib(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===qu)||(t.globalVersion=qu,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!Rp(t))))return;t.flags|=2;const e=t.dep,n=mn,r=Wi;mn=t,Wi=!0;try{nb(t);const i=t.fn(t._value);(e.version===0||ks(i,t._value))&&(t.flags|=128,t._value=i,e.version++)}catch(i){throw e.version++,i}finally{mn=n,Wi=r,rb(t),t.flags&=-3}}function eg(t,e=!1){const{dep:n,prevSub:r,nextSub:i}=t;if(r&&(r.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=r,t.nextSub=void 0),n.subs===t&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)eg(o,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function nR(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let Wi=!0;const ob=[];function Ko(){ob.push(Wi),Wi=!1}function Xo(){const t=ob.pop();Wi=t===void 0?!0:t}function fv(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=mn;mn=void 0;try{e()}finally{mn=n}}}let qu=0;class rR{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class tg{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!mn||!Wi||mn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==mn)n=this.activeLink=new rR(mn,this),mn.deps?(n.prevDep=mn.depsTail,mn.depsTail.nextDep=n,mn.depsTail=n):mn.deps=mn.depsTail=n,sb(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=mn.depsTail,n.nextDep=void 0,mn.depsTail.nextDep=n,mn.depsTail=n,mn.deps===n&&(mn.deps=r)}return n}trigger(e){this.version++,qu++,this.notify(e)}notify(e){Jm();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Zm()}}}function sb(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)sb(r)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const id=new WeakMap,sa=Symbol(""),xp=Symbol(""),Gu=Symbol("");function Tr(t,e,n){if(Wi&&mn){let r=id.get(t);r||id.set(t,r=new Map);let i=r.get(n);i||(r.set(n,i=new tg),i.map=r,i.key=n),i.track()}}function Ho(t,e,n,r,i,o){const s=id.get(t);if(!s){qu++;return}const a=u=>{u&&u.trigger()};if(Jm(),e==="clear")s.forEach(a);else{const u=at(t),c=u&&Km(n);if(u&&n==="length"){const h=Number(r);s.forEach((l,d)=>{(d==="length"||d===Gu||!qi(d)&&d>=h)&&a(l)})}else switch((n!==void 0||s.has(void 0))&&a(s.get(n)),c&&a(s.get(Gu)),e){case"add":u?c&&a(s.get("length")):(a(s.get(sa)),nl(t)&&a(s.get(xp)));break;case"delete":u||(a(s.get(sa)),nl(t)&&a(s.get(xp)));break;case"set":nl(t)&&a(s.get(sa));break}}Zm()}function iR(t,e){const n=id.get(t);return n&&n.get(e)}function $a(t){const e=Nt(t);return e===t?e:(Tr(e,"iterate",Gu),Oi(t)?e:e.map(fr))}function qd(t){return Tr(t=Nt(t),"iterate",Gu),t}const oR={__proto__:null,[Symbol.iterator](){return Fh(this,Symbol.iterator,fr)},concat(...t){return $a(this).concat(...t.map(e=>at(e)?$a(e):e))},entries(){return Fh(this,"entries",t=>(t[1]=fr(t[1]),t))},every(t,e){return Co(this,"every",t,e,void 0,arguments)},filter(t,e){return Co(this,"filter",t,e,n=>n.map(fr),arguments)},find(t,e){return Co(this,"find",t,e,fr,arguments)},findIndex(t,e){return Co(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Co(this,"findLast",t,e,fr,arguments)},findLastIndex(t,e){return Co(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Co(this,"forEach",t,e,void 0,arguments)},includes(...t){return Dh(this,"includes",t)},indexOf(...t){return Dh(this,"indexOf",t)},join(t){return $a(this).join(t)},lastIndexOf(...t){return Dh(this,"lastIndexOf",t)},map(t,e){return Co(this,"map",t,e,void 0,arguments)},pop(){return Ql(this,"pop")},push(...t){return Ql(this,"push",t)},reduce(t,...e){return dv(this,"reduce",t,e)},reduceRight(t,...e){return dv(this,"reduceRight",t,e)},shift(){return Ql(this,"shift")},some(t,e){return Co(this,"some",t,e,void 0,arguments)},splice(...t){return Ql(this,"splice",t)},toReversed(){return $a(this).toReversed()},toSorted(t){return $a(this).toSorted(t)},toSpliced(...t){return $a(this).toSpliced(...t)},unshift(...t){return Ql(this,"unshift",t)},values(){return Fh(this,"values",fr)}};function Fh(t,e,n){const r=qd(t),i=r[e]();return r!==t&&!Oi(t)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.value&&(o.value=n(o.value)),o}),i}const sR=Array.prototype;function Co(t,e,n,r,i,o){const s=qd(t),a=s!==t&&!Oi(t),u=s[e];if(u!==sR[e]){const l=u.apply(t,o);return a?fr(l):l}let c=n;s!==t&&(a?c=function(l,d){return n.call(this,fr(l),d,t)}:n.length>2&&(c=function(l,d){return n.call(this,l,d,t)}));const h=u.call(s,c,r);return a&&i?i(h):h}function dv(t,e,n,r){const i=qd(t);let o=n;return i!==t&&(Oi(t)?n.length>3&&(o=function(s,a,u){return n.call(this,s,a,u,t)}):o=function(s,a,u){return n.call(this,s,fr(a),u,t)}),i[e](o,...r)}function Dh(t,e,n){const r=Nt(t);Tr(r,"iterate",Gu);const i=r[e](...n);return(i===-1||i===!1)&&ig(n[0])?(n[0]=Nt(n[0]),r[e](...n)):i}function Ql(t,e,n=[]){Ko(),Jm();const r=Nt(t)[e].apply(t,n);return Zm(),Xo(),r}const aR=qm("__proto__,__v_isRef,__isVue"),ab=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(qi));function lR(t){qi(t)||(t=String(t));const e=Nt(this);return Tr(e,"has",t),e.hasOwnProperty(t)}class lb{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){if(n==="__v_skip")return e.__v_skip;const i=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(i?o?vR:db:o?fb:cb).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const s=at(e);if(!i){let u;if(s&&(u=oR[n]))return u;if(n==="hasOwnProperty")return lR}const a=Reflect.get(e,n,vn(e)?e:r);return(qi(n)?ab.has(n):aR(n))||(i||Tr(e,"get",n),o)?a:vn(a)?s&&Km(n)?a:a.value:sn(a)?i?pb(a):xa(a):a}}class ub extends lb{constructor(e=!1){super(!1,e)}set(e,n,r,i){let o=e[n];if(!this._isShallow){const u=Qo(o);if(!Oi(r)&&!Qo(r)&&(o=Nt(o),r=Nt(r)),!at(e)&&vn(o)&&!vn(r))return u?!1:(o.value=r,!0)}const s=at(e)&&Km(n)?Number(n)<e.length:tn(e,n),a=Reflect.set(e,n,r,vn(e)?e:i);return e===Nt(i)&&(s?ks(r,o)&&Ho(e,"set",n,r):Ho(e,"add",n,r)),a}deleteProperty(e,n){const r=tn(e,n);e[n];const i=Reflect.deleteProperty(e,n);return i&&r&&Ho(e,"delete",n,void 0),i}has(e,n){const r=Reflect.has(e,n);return(!qi(n)||!ab.has(n))&&Tr(e,"has",n),r}ownKeys(e){return Tr(e,"iterate",at(e)?"length":sa),Reflect.ownKeys(e)}}class uR extends lb{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const cR=new ub,fR=new uR,dR=new ub(!0);const Cp=t=>t,nf=t=>Reflect.getPrototypeOf(t);function hR(t,e,n){return function(...r){const i=this.__v_raw,o=Nt(i),s=nl(o),a=t==="entries"||t===Symbol.iterator&&s,u=t==="keys"&&s,c=i[t](...r),h=n?Cp:e?od:fr;return!e&&Tr(o,"iterate",u?xp:sa),{next(){const{value:l,done:d}=c.next();return d?{value:l,done:d}:{value:a?[h(l[0]),h(l[1])]:h(l),done:d}},[Symbol.iterator](){return this}}}}function rf(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function pR(t,e){const n={get(i){const o=this.__v_raw,s=Nt(o),a=Nt(i);t||(ks(i,a)&&Tr(s,"get",i),Tr(s,"get",a));const{has:u}=nf(s),c=e?Cp:t?od:fr;if(u.call(s,i))return c(o.get(i));if(u.call(s,a))return c(o.get(a));o!==s&&o.get(i)},get size(){const i=this.__v_raw;return!t&&Tr(Nt(i),"iterate",sa),Reflect.get(i,"size",i)},has(i){const o=this.__v_raw,s=Nt(o),a=Nt(i);return t||(ks(i,a)&&Tr(s,"has",i),Tr(s,"has",a)),i===a?o.has(i):o.has(i)||o.has(a)},forEach(i,o){const s=this,a=s.__v_raw,u=Nt(a),c=e?Cp:t?od:fr;return!t&&Tr(u,"iterate",sa),a.forEach((h,l)=>i.call(o,c(h),c(l),s))}};return ar(n,t?{add:rf("add"),set:rf("set"),delete:rf("delete"),clear:rf("clear")}:{add(i){!e&&!Oi(i)&&!Qo(i)&&(i=Nt(i));const o=Nt(this);return nf(o).has.call(o,i)||(o.add(i),Ho(o,"add",i,i)),this},set(i,o){!e&&!Oi(o)&&!Qo(o)&&(o=Nt(o));const s=Nt(this),{has:a,get:u}=nf(s);let c=a.call(s,i);c||(i=Nt(i),c=a.call(s,i));const h=u.call(s,i);return s.set(i,o),c?ks(o,h)&&Ho(s,"set",i,o):Ho(s,"add",i,o),this},delete(i){const o=Nt(this),{has:s,get:a}=nf(o);let u=s.call(o,i);u||(i=Nt(i),u=s.call(o,i)),a&&a.call(o,i);const c=o.delete(i);return u&&Ho(o,"delete",i,void 0),c},clear(){const i=Nt(this),o=i.size!==0,s=i.clear();return o&&Ho(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=hR(i,t,e)}),n}function ng(t,e){const n=pR(t,e);return(r,i,o)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?r:Reflect.get(tn(n,i)&&i in r?n:r,i,o)}const mR={get:ng(!1,!1)},gR={get:ng(!1,!0)},_R={get:ng(!0,!1)};const cb=new WeakMap,fb=new WeakMap,db=new WeakMap,vR=new WeakMap;function yR(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function bR(t){return t.__v_skip||!Object.isExtensible(t)?0:yR(jA(t))}function xa(t){return Qo(t)?t:rg(t,!1,cR,mR,cb)}function hb(t){return rg(t,!1,dR,gR,fb)}function pb(t){return rg(t,!0,fR,_R,db)}function rg(t,e,n,r,i){if(!sn(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=bR(t);if(o===0)return t;const s=i.get(t);if(s)return s;const a=new Proxy(t,o===2?r:n);return i.set(t,a),a}function qo(t){return Qo(t)?qo(t.__v_raw):!!(t&&t.__v_isReactive)}function Qo(t){return!!(t&&t.__v_isReadonly)}function Oi(t){return!!(t&&t.__v_isShallow)}function ig(t){return t?!!t.__v_raw:!1}function Nt(t){const e=t&&t.__v_raw;return e?Nt(e):t}function og(t){return!tn(t,"__v_skip")&&Object.isExtensible(t)&&Ap(t,"__v_skip",!0),t}const fr=t=>sn(t)?xa(t):t,od=t=>sn(t)?pb(t):t;function vn(t){return t?t.__v_isRef===!0:!1}function j(t){return mb(t,!1)}function _a(t){return mb(t,!0)}function mb(t,e){return vn(t)?t:new wR(t,e)}class wR{constructor(e,n){this.dep=new tg,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:Nt(e),this._value=n?e:fr(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,r=this.__v_isShallow||Oi(e)||Qo(e);e=r?e:Nt(e),ks(e,n)&&(this._rawValue=e,this._value=r?e:fr(e),this.dep.trigger())}}function _e(t){return vn(t)?t.value:t}function SR(t){return ft(t)?t():_e(t)}const TR={get:(t,e,n)=>e==="__v_raw"?t:_e(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const i=t[e];return vn(i)&&!vn(n)?(i.value=n,!0):Reflect.set(t,e,n,r)}};function gb(t){return qo(t)?t:new Proxy(t,TR)}function _b(t){const e=at(t)?new Array(t.length):{};for(const n in t)e[n]=vb(t,n);return e}class ER{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return iR(Nt(this._object),this._key)}}class kR{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function AR(t,e,n){return vn(t)?t:ft(t)?new kR(t):sn(t)&&arguments.length>1?vb(t,e,n):j(t)}function vb(t,e,n){const r=t[e];return vn(r)?r:new ER(t,e,n)}class RR{constructor(e,n,r){this.fn=e,this.setter=n,this._value=void 0,this.dep=new tg(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=qu-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&mn!==this)return tb(this,!0),!0}get value(){const e=this.dep.track();return ib(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function xR(t,e,n=!1){let r,i;return ft(t)?r=t:(r=t.get,i=t.set),new RR(r,i,n)}const of={},sd=new WeakMap;let Ks;function CR(t,e=!1,n=Ks){if(n){let r=sd.get(n);r||sd.set(n,r=[]),r.push(t)}}function PR(t,e,n=dn){const{immediate:r,deep:i,once:o,scheduler:s,augmentJob:a,call:u}=n,c=k=>i?k:Oi(k)||i===!1||i===0?No(k,1):No(k);let h,l,d,f,_=!1,g=!1;if(vn(t)?(l=()=>t.value,_=Oi(t)):qo(t)?(l=()=>c(t),_=!0):at(t)?(g=!0,_=t.some(k=>qo(k)||Oi(k)),l=()=>t.map(k=>{if(vn(k))return k.value;if(qo(k))return c(k);if(ft(k))return u?u(k,2):k()})):ft(t)?e?l=u?()=>u(t,2):t:l=()=>{if(d){Ko();try{d()}finally{Xo()}}const k=Ks;Ks=h;try{return u?u(t,3,[f]):t(f)}finally{Ks=k}}:l=yo,e&&i){const k=l,R=i===!0?1/0:i;l=()=>No(k(),R)}const b=J1(),y=()=>{h.stop(),b&&b.active&&Ym(b.effects,h)};if(o&&e){const k=e;e=(...R)=>{k(...R),y()}}let w=g?new Array(t.length).fill(of):of;const A=k=>{if(!(!(h.flags&1)||!h.dirty&&!k))if(e){const R=h.run();if(i||_||(g?R.some((C,L)=>ks(C,w[L])):ks(R,w))){d&&d();const C=Ks;Ks=h;try{const L=[R,w===of?void 0:g&&w[0]===of?[]:w,f];w=R,u?u(e,3,L):e(...L)}finally{Ks=C}}}else h.run()};return a&&a(A),h=new Z1(l),h.scheduler=s?()=>s(A,!1):A,f=k=>CR(k,!1,h),d=h.onStop=()=>{const k=sd.get(h);if(k){if(u)u(k,4);else for(const R of k)R();sd.delete(h)}},e?r?A(!0):w=h.run():s?s(A.bind(null,!0),!0):h.run(),y.pause=h.pause.bind(h),y.resume=h.resume.bind(h),y.stop=y,y}function No(t,e=1/0,n){if(e<=0||!sn(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),e--,vn(t))No(t.value,e,n);else if(at(t))for(let r=0;r<t.length;r++)No(t[r],e,n);else if(Vd(t)||nl(t))t.forEach(r=>{No(r,e,n)});else if(G1(t)){for(const r in t)No(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&No(t[r],e,n)}return t}/**
* @vue/runtime-core v3.5.17
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function vc(t,e,n,r){try{return r?t(...r):t()}catch(i){yc(i,e,n)}}function Gi(t,e,n,r){if(ft(t)){const i=vc(t,e,n,r);return i&&z1(i)&&i.catch(o=>{yc(o,e,n)}),i}if(at(t)){const i=[];for(let o=0;o<t.length;o++)i.push(Gi(t[o],e,n,r));return i}}function yc(t,e,n,r=!0){const i=e?e.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=e&&e.appContext.config||dn;if(e){let a=e.parent;const u=e.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const h=a.ec;if(h){for(let l=0;l<h.length;l++)if(h[l](t,u,c)===!1)return}a=a.parent}if(o){Ko(),vc(o,null,10,[t,u,c]),Xo();return}}IR(t,n,i,r,s)}function IR(t,e,n,r=!0,i=!1){if(i)throw t;console.error(t)}const Br=[];let ao=-1;const rl=[];let hs=null,za=0;const yb=Promise.resolve();let ad=null;function Lt(t){const e=ad||yb;return t?e.then(this?t.bind(this):t):e}function LR(t){let e=ao+1,n=Br.length;for(;e<n;){const r=e+n>>>1,i=Br[r],o=Yu(i);o<t||o===t&&i.flags&2?e=r+1:n=r}return e}function sg(t){if(!(t.flags&1)){const e=Yu(t),n=Br[Br.length-1];!n||!(t.flags&2)&&e>=Yu(n)?Br.push(t):Br.splice(LR(e),0,t),t.flags|=1,bb()}}function bb(){ad||(ad=yb.then(Sb))}function OR(t){at(t)?rl.push(...t):hs&&t.id===-1?hs.splice(za+1,0,t):t.flags&1||(rl.push(t),t.flags|=1),bb()}function hv(t,e,n=ao+1){for(;n<Br.length;n++){const r=Br[n];if(r&&r.flags&2){if(t&&r.id!==t.uid)continue;Br.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function wb(t){if(rl.length){const e=[...new Set(rl)].sort((n,r)=>Yu(n)-Yu(r));if(rl.length=0,hs){hs.push(...e);return}for(hs=e,za=0;za<hs.length;za++){const n=hs[za];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}hs=null,za=0}}const Yu=t=>t.id==null?t.flags&2?-1:1/0:t.id;function Sb(t){try{for(ao=0;ao<Br.length;ao++){const e=Br[ao];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),vc(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;ao<Br.length;ao++){const e=Br[ao];e&&(e.flags&=-2)}ao=-1,Br.length=0,wb(),ad=null,(Br.length||rl.length)&&Sb()}}let er=null,Tb=null;function ld(t){const e=er;return er=t,Tb=t&&t.type.__scopeId||null,e}function Di(t,e=er,n){if(!e||t._n)return t;const r=(...i)=>{r._d&&xv(-1);const o=ld(e);let s;try{s=t(...i)}finally{ld(o),r._d&&xv(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function MR(t,e){if(er===null)return t;const n=Xd(er),r=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[o,s,a,u=dn]=e[i];o&&(ft(o)&&(o={mounted:o,updated:o}),o.deep&&No(s),r.push({dir:o,instance:n,value:s,oldValue:void 0,arg:a,modifiers:u}))}return t}function js(t,e,n,r){const i=t.dirs,o=e&&e.dirs;for(let s=0;s<i.length;s++){const a=i[s];o&&(a.oldValue=o[s].value);let u=a.dir[r];u&&(Ko(),Gi(u,n,8,[t.el,a,t,e]),Xo())}}const Eb=Symbol("_vte"),kb=t=>t.__isTeleport,Tu=t=>t&&(t.disabled||t.disabled===""),pv=t=>t&&(t.defer||t.defer===""),mv=t=>typeof SVGElement<"u"&&t instanceof SVGElement,gv=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,Pp=(t,e)=>{const n=t&&t.to;return Rn(n)?e?e(n):null:n},Ab={name:"Teleport",__isTeleport:!0,process(t,e,n,r,i,o,s,a,u,c){const{mc:h,pc:l,pbc:d,o:{insert:f,querySelector:_,createText:g,createComment:b}}=c,y=Tu(e.props);let{shapeFlag:w,children:A,dynamicChildren:k}=e;if(t==null){const R=e.el=g(""),C=e.anchor=g("");f(R,n,r),f(C,n,r);const L=($,U)=>{w&16&&(i&&i.isCE&&(i.ce._teleportTarget=$),h(A,$,U,i,o,s,a,u))},M=()=>{const $=e.target=Pp(e.props,_),U=Rb($,e,g,f);$&&(s!=="svg"&&mv($)?s="svg":s!=="mathml"&&gv($)&&(s="mathml"),y||(L($,U),Lf(e,!1)))};y&&(L(n,C),Lf(e,!0)),pv(e.props)?(e.el.__isMounted=!1,Dr(()=>{M(),delete e.el.__isMounted},o)):M()}else{if(pv(e.props)&&t.el.__isMounted===!1){Dr(()=>{Ab.process(t,e,n,r,i,o,s,a,u,c)},o);return}e.el=t.el,e.targetStart=t.targetStart;const R=e.anchor=t.anchor,C=e.target=t.target,L=e.targetAnchor=t.targetAnchor,M=Tu(t.props),$=M?n:C,U=M?R:L;if(s==="svg"||mv(C)?s="svg":(s==="mathml"||gv(C))&&(s="mathml"),k?(d(t.dynamicChildren,k,$,i,o,s,a),fg(t,e,!0)):u||l(t,e,$,U,i,o,s,a,!1),y)M?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):sf(e,n,R,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const ne=e.target=Pp(e.props,_);ne&&sf(e,ne,null,c,0)}else M&&sf(e,C,L,c,1);Lf(e,y)}},remove(t,e,n,{um:r,o:{remove:i}},o){const{shapeFlag:s,children:a,anchor:u,targetStart:c,targetAnchor:h,target:l,props:d}=t;if(l&&(i(c),i(h)),o&&i(u),s&16){const f=o||!Tu(d);for(let _=0;_<a.length;_++){const g=a[_];r(g,e,n,f,!!g.dynamicChildren)}}},move:sf,hydrate:FR};function sf(t,e,n,{o:{insert:r},m:i},o=2){o===0&&r(t.targetAnchor,e,n);const{el:s,anchor:a,shapeFlag:u,children:c,props:h}=t,l=o===2;if(l&&r(s,e,n),(!l||Tu(h))&&u&16)for(let d=0;d<c.length;d++)i(c[d],e,n,2);l&&r(a,e,n)}function FR(t,e,n,r,i,o,{o:{nextSibling:s,parentNode:a,querySelector:u,insert:c,createText:h}},l){const d=e.target=Pp(e.props,u);if(d){const f=Tu(e.props),_=d._lpa||d.firstChild;if(e.shapeFlag&16)if(f)e.anchor=l(s(t),e,a(t),n,r,i,o),e.targetStart=_,e.targetAnchor=_&&s(_);else{e.anchor=s(t);let g=_;for(;g;){if(g&&g.nodeType===8){if(g.data==="teleport start anchor")e.targetStart=g;else if(g.data==="teleport anchor"){e.targetAnchor=g,d._lpa=e.targetAnchor&&s(e.targetAnchor);break}}g=s(g)}e.targetAnchor||Rb(d,e,h,c),l(_&&s(_),e,d,n,r,i,o)}Lf(e,f)}return e.anchor&&s(e.anchor)}const DR=Ab;function Lf(t,e){const n=t.ctx;if(n&&n.ut){let r,i;for(e?(r=t.el,i=t.anchor):(r=t.targetStart,i=t.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Rb(t,e,n,r){const i=e.targetStart=n(""),o=e.targetAnchor=n("");return i[Eb]=o,t&&(r(i,t),r(o,t)),o}const ps=Symbol("_leaveCb"),af=Symbol("_enterCb");function $R(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return xt(()=>{t.isMounted=!0}),wc(()=>{t.isUnmounting=!0}),t}const Si=[Function,Array],xb={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Si,onEnter:Si,onAfterEnter:Si,onEnterCancelled:Si,onBeforeLeave:Si,onLeave:Si,onAfterLeave:Si,onLeaveCancelled:Si,onBeforeAppear:Si,onAppear:Si,onAfterAppear:Si,onAppearCancelled:Si},Cb=t=>{const e=t.subTree;return e.component?Cb(e.component):e},HR={name:"BaseTransition",props:xb,setup(t,{slots:e}){const n=Cl(),r=$R();return()=>{const i=e.default&&Lb(e.default(),!0);if(!i||!i.length)return;const o=Pb(i),s=Nt(t),{mode:a}=s;if(r.isLeaving)return $h(o);const u=_v(o);if(!u)return $h(o);let c=Ip(u,s,r,n,l=>c=l);u.type!==Er&&Ku(u,c);let h=n.subTree&&_v(n.subTree);if(h&&h.type!==Er&&!ea(u,h)&&Cb(n).type!==Er){let l=Ip(h,s,r,n);if(Ku(h,l),a==="out-in"&&u.type!==Er)return r.isLeaving=!0,l.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete l.afterLeave,h=void 0},$h(o);a==="in-out"&&u.type!==Er?l.delayLeave=(d,f,_)=>{const g=Ib(r,h);g[String(h.key)]=h,d[ps]=()=>{f(),d[ps]=void 0,delete c.delayedLeave,h=void 0},c.delayedLeave=()=>{_(),delete c.delayedLeave,h=void 0}}:h=void 0}else h&&(h=void 0);return o}}};function Pb(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==Er){e=n;break}}return e}const NR=HR;function Ib(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function Ip(t,e,n,r,i){const{appear:o,mode:s,persisted:a=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:h,onEnterCancelled:l,onBeforeLeave:d,onLeave:f,onAfterLeave:_,onLeaveCancelled:g,onBeforeAppear:b,onAppear:y,onAfterAppear:w,onAppearCancelled:A}=e,k=String(t.key),R=Ib(n,t),C=($,U)=>{$&&Gi($,r,9,U)},L=($,U)=>{const ne=U[1];C($,U),at($)?$.every(D=>D.length<=1)&&ne():$.length<=1&&ne()},M={mode:s,persisted:a,beforeEnter($){let U=u;if(!n.isMounted)if(o)U=b||u;else return;$[ps]&&$[ps](!0);const ne=R[k];ne&&ea(t,ne)&&ne.el[ps]&&ne.el[ps](),C(U,[$])},enter($){let U=c,ne=h,D=l;if(!n.isMounted)if(o)U=y||c,ne=w||h,D=A||l;else return;let Q=!1;const N=$[af]=W=>{Q||(Q=!0,W?C(D,[$]):C(ne,[$]),M.delayedLeave&&M.delayedLeave(),$[af]=void 0)};U?L(U,[$,N]):N()},leave($,U){const ne=String(t.key);if($[af]&&$[af](!0),n.isUnmounting)return U();C(d,[$]);let D=!1;const Q=$[ps]=N=>{D||(D=!0,U(),N?C(g,[$]):C(_,[$]),$[ps]=void 0,R[ne]===t&&delete R[ne])};R[ne]=t,f?L(f,[$,Q]):Q()},clone($){const U=Ip($,e,n,r,i);return i&&i(U),U}};return M}function $h(t){if(bc(t))return t=Ps(t),t.children=null,t}function _v(t){if(!bc(t))return kb(t.type)&&t.children?Pb(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&ft(n.default))return n.default()}}function Ku(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Ku(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Lb(t,e=!1,n){let r=[],i=0;for(let o=0;o<t.length;o++){let s=t[o];const a=n==null?s.key:String(n)+String(s.key!=null?s.key:o);s.type===Ye?(s.patchFlag&128&&i++,r=r.concat(Lb(s.children,e,a))):(e||s.type!==Er)&&r.push(a!=null?Ps(s,{key:a}):s)}if(i>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function Ji(t,e){return ft(t)?ar({name:t.name},e,{setup:t}):t}function ag(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function Eu(t,e,n,r,i=!1){if(at(t)){t.forEach((_,g)=>Eu(_,e&&(at(e)?e[g]:e),n,r,i));return}if(il(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Eu(t,e,n,r.component.subTree);return}const o=r.shapeFlag&4?Xd(r.component):r.el,s=i?null:o,{i:a,r:u}=t,c=e&&e.r,h=a.refs===dn?a.refs={}:a.refs,l=a.setupState,d=Nt(l),f=l===dn?()=>!1:_=>tn(d,_);if(c!=null&&c!==u&&(Rn(c)?(h[c]=null,f(c)&&(l[c]=null)):vn(c)&&(c.value=null)),ft(u))vc(u,a,12,[s,h]);else{const _=Rn(u),g=vn(u);if(_||g){const b=()=>{if(t.f){const y=_?f(u)?l[u]:h[u]:u.value;i?at(y)&&Ym(y,o):at(y)?y.includes(o)||y.push(o):_?(h[u]=[o],f(u)&&(l[u]=h[u])):(u.value=[o],t.k&&(h[t.k]=u.value))}else _?(h[u]=s,f(u)&&(l[u]=s)):g&&(u.value=s,t.k&&(h[t.k]=s))};s?(b.id=-1,Dr(b,n)):b()}}}const vv=t=>t.nodeType===8;Wd().requestIdleCallback;Wd().cancelIdleCallback;function BR(t,e){if(vv(t)&&t.data==="["){let n=1,r=t.nextSibling;for(;r;){if(r.nodeType===1){if(e(r)===!1)break}else if(vv(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else e(t)}const il=t=>!!t.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function VR(t){ft(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:o,timeout:s,suspensible:a=!0,onError:u}=t;let c=null,h,l=0;const d=()=>(l++,c=null,f()),f=()=>{let _;return c||(_=c=e().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),u)return new Promise((b,y)=>{u(g,()=>b(d()),()=>y(g),l+1)});throw g}).then(g=>_!==c&&c?c:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),h=g,g)))};return Ji({name:"AsyncComponentWrapper",__asyncLoader:f,__asyncHydrate(_,g,b){const y=o?()=>{const A=o(()=>{b()},k=>BR(_,k));A&&(g.bum||(g.bum=[])).push(A),(g.u||(g.u=[])).push(()=>!0)}:b;h?y():f().then(()=>!g.isUnmounted&&y())},get __asyncResolved(){return h},setup(){const _=Jn;if(ag(_),h)return()=>Hh(h,_);const g=A=>{c=null,yc(A,_,13,!r)};if(a&&_.suspense||gl)return f().then(A=>()=>Hh(A,_)).catch(A=>(g(A),()=>r?Ve(r,{error:A}):null));const b=j(!1),y=j(),w=j(!!i);return i&&setTimeout(()=>{w.value=!1},i),s!=null&&setTimeout(()=>{if(!b.value&&!y.value){const A=new Error(`Async component timed out after ${s}ms.`);g(A),y.value=A}},s),f().then(()=>{b.value=!0,_.parent&&bc(_.parent.vnode)&&_.parent.update()}).catch(A=>{g(A),y.value=A}),()=>{if(b.value&&h)return Hh(h,_);if(y.value&&r)return Ve(r,{error:y.value});if(n&&!w.value)return Ve(n)}}})}function Hh(t,e){const{ref:n,props:r,children:i,ce:o}=e.vnode,s=Ve(t,r,i);return s.ref=n,s.ce=o,delete e.vnode.ce,s}const bc=t=>t.type.__isKeepAlive;function Ob(t,e){Fb(t,"a",e)}function Mb(t,e){Fb(t,"da",e)}function Fb(t,e,n=Jn){const r=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Gd(e,r,n),n){let i=n.parent;for(;i&&i.parent;)bc(i.parent.vnode)&&UR(r,e,n,i),i=i.parent}}function UR(t,e,n,r){const i=Gd(e,t,r,!0);Vt(()=>{Ym(r[e],i)},n)}function Gd(t,e,n=Jn,r=!1){if(n){const i=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...s)=>{Ko();const a=kc(n),u=Gi(e,n,t,s);return a(),Xo(),u});return r?i.unshift(o):i.push(o),o}}const es=t=>(e,n=Jn)=>{(!gl||t==="sp")&&Gd(t,(...r)=>e(...r),n)},Yd=es("bm"),xt=es("m"),jR=es("bu"),Db=es("u"),wc=es("bum"),Vt=es("um"),Sc=es("sp"),WR=es("rtg"),zR=es("rtc");function qR(t,e=Jn){Gd("ec",t,e)}const $b="components";function lg(t,e){return Nb($b,t,!0,e)||t}const Hb=Symbol.for("v-ndc");function va(t){return Rn(t)?Nb($b,t,!1)||t:t||Hb}function Nb(t,e,n=!0,r=!1){const i=er||Jn;if(i){const o=i.type;{const a=Ix(o,!1);if(a&&(a===e||a===Fi(e)||a===jd(Fi(e))))return o}const s=yv(i[t]||o[t],e)||yv(i.appContext[t],e);return!s&&r?o:s}}function yv(t,e){return t&&(t[e]||t[Fi(e)]||t[jd(Fi(e))])}function ut(t,e,n,r){let i;const o=n,s=at(t);if(s||Rn(t)){const a=s&&qo(t);let u=!1,c=!1;a&&(u=!Oi(t),c=Qo(t),t=qd(t)),i=new Array(t.length);for(let h=0,l=t.length;h<l;h++)i[h]=e(u?c?od(fr(t[h])):fr(t[h]):t[h],h,void 0,o)}else if(typeof t=="number"){i=new Array(t);for(let a=0;a<t;a++)i[a]=e(a+1,a,void 0,o)}else if(sn(t))if(t[Symbol.iterator])i=Array.from(t,(a,u)=>e(a,u,void 0,o));else{const a=Object.keys(t);i=new Array(a.length);for(let u=0,c=a.length;u<c;u++){const h=a[u];i[u]=e(t[h],h,u,o)}}else i=[];return i}function Do(t,e,n={},r,i){if(er.ce||er.parent&&il(er.parent)&&er.parent.ce)return ae(),Kt(Ye,null,[Ve("slot",n,r)],64);let o=t[e];o&&o._c&&(o._d=!1),ae();const s=o&&Bb(o(n)),a=n.key||s&&s.key,u=Kt(Ye,{key:(a&&!qi(a)?a:`_${e}`)+(!s&&r?"_fb":"")},s||[],s&&t._===1?64:-2);return!i&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),o&&o._c&&(o._d=!0),u}function Bb(t){return t.some(e=>Qu(e)?!(e.type===Er||e.type===Ye&&!Bb(e.children)):!0)?t:null}const Lp=t=>t?sw(t)?Xd(t):Lp(t.parent):null,ku=ar(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Lp(t.parent),$root:t=>Lp(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Ub(t),$forceUpdate:t=>t.f||(t.f=()=>{sg(t.update)}),$nextTick:t=>t.n||(t.n=Lt.bind(t.proxy)),$watch:t=>hx.bind(t)}),Nh=(t,e)=>t!==dn&&!t.__isScriptSetup&&tn(t,e),GR={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:o,accessCache:s,type:a,appContext:u}=t;let c;if(e[0]!=="$"){const f=s[e];if(f!==void 0)switch(f){case 1:return r[e];case 2:return i[e];case 4:return n[e];case 3:return o[e]}else{if(Nh(r,e))return s[e]=1,r[e];if(i!==dn&&tn(i,e))return s[e]=2,i[e];if((c=t.propsOptions[0])&&tn(c,e))return s[e]=3,o[e];if(n!==dn&&tn(n,e))return s[e]=4,n[e];Op&&(s[e]=0)}}const h=ku[e];let l,d;if(h)return e==="$attrs"&&Tr(t.attrs,"get",""),h(t);if((l=a.__cssModules)&&(l=l[e]))return l;if(n!==dn&&tn(n,e))return s[e]=4,n[e];if(d=u.config.globalProperties,tn(d,e))return d[e]},set({_:t},e,n){const{data:r,setupState:i,ctx:o}=t;return Nh(i,e)?(i[e]=n,!0):r!==dn&&tn(r,e)?(r[e]=n,!0):tn(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(o[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:i,propsOptions:o}},s){let a;return!!n[s]||t!==dn&&tn(t,s)||Nh(e,s)||(a=o[0])&&tn(a,s)||tn(r,s)||tn(ku,s)||tn(i.config.globalProperties,s)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:tn(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function bv(t){return at(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let Op=!0;function YR(t){const e=Ub(t),n=t.proxy,r=t.ctx;Op=!1,e.beforeCreate&&wv(e.beforeCreate,t,"bc");const{data:i,computed:o,methods:s,watch:a,provide:u,inject:c,created:h,beforeMount:l,mounted:d,beforeUpdate:f,updated:_,activated:g,deactivated:b,beforeDestroy:y,beforeUnmount:w,destroyed:A,unmounted:k,render:R,renderTracked:C,renderTriggered:L,errorCaptured:M,serverPrefetch:$,expose:U,inheritAttrs:ne,components:D,directives:Q,filters:N}=e;if(c&&KR(c,r,null),s)for(const B in s){const oe=s[B];ft(oe)&&(r[B]=oe.bind(n))}if(i){const B=i.call(n,n);sn(B)&&(t.data=xa(B))}if(Op=!0,o)for(const B in o){const oe=o[B],se=ft(oe)?oe.bind(n,n):ft(oe.get)?oe.get.bind(n,n):yo,q=!ft(oe)&&ft(oe.set)?oe.set.bind(n):yo,be=Ce({get:se,set:q});Object.defineProperty(r,B,{enumerable:!0,configurable:!0,get:()=>be.value,set:Te=>be.value=Te})}if(a)for(const B in a)Vb(a[B],r,n,B);if(u){const B=ft(u)?u.call(n):u;Reflect.ownKeys(B).forEach(oe=>{Of(oe,B[oe])})}h&&wv(h,t,"c");function V(B,oe){at(oe)?oe.forEach(se=>B(se.bind(n))):oe&&B(oe.bind(n))}if(V(Yd,l),V(xt,d),V(jR,f),V(Db,_),V(Ob,g),V(Mb,b),V(qR,M),V(zR,C),V(WR,L),V(wc,w),V(Vt,k),V(Sc,$),at(U))if(U.length){const B=t.exposed||(t.exposed={});U.forEach(oe=>{Object.defineProperty(B,oe,{get:()=>n[oe],set:se=>n[oe]=se})})}else t.exposed||(t.exposed={});R&&t.render===yo&&(t.render=R),ne!=null&&(t.inheritAttrs=ne),D&&(t.components=D),Q&&(t.directives=Q),$&&ag(t)}function KR(t,e,n=yo){at(t)&&(t=Mp(t));for(const r in t){const i=t[r];let o;sn(i)?"default"in i?o=Yr(i.from||r,i.default,!0):o=Yr(i.from||r):o=Yr(i),vn(o)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):e[r]=o}}function wv(t,e,n){Gi(at(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function Vb(t,e,n,r){let i=r.includes(".")?ew(n,r):()=>n[r];if(Rn(t)){const o=e[t];ft(o)&&Ne(i,o)}else if(ft(t))Ne(i,t.bind(n));else if(sn(t))if(at(t))t.forEach(o=>Vb(o,e,n,r));else{const o=ft(t.handler)?t.handler.bind(n):e[t.handler];ft(o)&&Ne(i,o,t)}}function Ub(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=t.appContext,a=o.get(e);let u;return a?u=a:!i.length&&!n&&!r?u=e:(u={},i.length&&i.forEach(c=>ud(u,c,s,!0)),ud(u,e,s)),sn(e)&&o.set(e,u),u}function ud(t,e,n,r=!1){const{mixins:i,extends:o}=e;o&&ud(t,o,n,!0),i&&i.forEach(s=>ud(t,s,n,!0));for(const s in e)if(!(r&&s==="expose")){const a=XR[s]||n&&n[s];t[s]=a?a(t[s],e[s]):e[s]}return t}const XR={data:Sv,props:Tv,emits:Tv,methods:fu,computed:fu,beforeCreate:Lr,created:Lr,beforeMount:Lr,mounted:Lr,beforeUpdate:Lr,updated:Lr,beforeDestroy:Lr,beforeUnmount:Lr,destroyed:Lr,unmounted:Lr,activated:Lr,deactivated:Lr,errorCaptured:Lr,serverPrefetch:Lr,components:fu,directives:fu,watch:JR,provide:Sv,inject:QR};function Sv(t,e){return e?t?function(){return ar(ft(t)?t.call(this,this):t,ft(e)?e.call(this,this):e)}:e:t}function QR(t,e){return fu(Mp(t),Mp(e))}function Mp(t){if(at(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Lr(t,e){return t?[...new Set([].concat(t,e))]:e}function fu(t,e){return t?ar(Object.create(null),t,e):e}function Tv(t,e){return t?at(t)&&at(e)?[...new Set([...t,...e])]:ar(Object.create(null),bv(t),bv(e??{})):e}function JR(t,e){if(!t)return e;if(!e)return t;const n=ar(Object.create(null),t);for(const r in e)n[r]=Lr(t[r],e[r]);return n}function jb(){return{app:null,config:{isNativeTag:VA,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ZR=0;function ex(t,e){return function(r,i=null){ft(r)||(r=ar({},r)),i!=null&&!sn(i)&&(i=null);const o=jb(),s=new WeakSet,a=[];let u=!1;const c=o.app={_uid:ZR++,_component:r,_props:i,_container:null,_context:o,_instance:null,version:Ox,get config(){return o.config},set config(h){},use(h,...l){return s.has(h)||(h&&ft(h.install)?(s.add(h),h.install(c,...l)):ft(h)&&(s.add(h),h(c,...l))),c},mixin(h){return o.mixins.includes(h)||o.mixins.push(h),c},component(h,l){return l?(o.components[h]=l,c):o.components[h]},directive(h,l){return l?(o.directives[h]=l,c):o.directives[h]},mount(h,l,d){if(!u){const f=c._ceVNode||Ve(r,i);return f.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),t(f,h,d),u=!0,c._container=h,h.__vue_app__=c,Xd(f.component)}},onUnmount(h){a.push(h)},unmount(){u&&(Gi(a,c._instance,16),t(null,c._container),delete c._container.__vue_app__)},provide(h,l){return o.provides[h]=l,c},runWithContext(h){const l=aa;aa=c;try{return h()}finally{aa=l}}};return c}}let aa=null;function Of(t,e){if(Jn){let n=Jn.provides;const r=Jn.parent&&Jn.parent.provides;r===n&&(n=Jn.provides=Object.create(r)),n[t]=e}}function Yr(t,e,n=!1){const r=Jn||er;if(r||aa){let i=aa?aa._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&t in i)return i[t];if(arguments.length>1)return n&&ft(e)?e.call(r&&r.proxy):e}}function Wb(){return!!(Jn||er||aa)}const zb={},qb=()=>Object.create(zb),Gb=t=>Object.getPrototypeOf(t)===zb;function tx(t,e,n,r=!1){const i={},o=qb();t.propsDefaults=Object.create(null),Yb(t,e,i,o);for(const s in t.propsOptions[0])s in i||(i[s]=void 0);n?t.props=r?i:hb(i):t.type.props?t.props=i:t.props=o,t.attrs=o}function nx(t,e,n,r){const{props:i,attrs:o,vnode:{patchFlag:s}}=t,a=Nt(i),[u]=t.propsOptions;let c=!1;if((r||s>0)&&!(s&16)){if(s&8){const h=t.vnode.dynamicProps;for(let l=0;l<h.length;l++){let d=h[l];if(Kd(t.emitsOptions,d))continue;const f=e[d];if(u)if(tn(o,d))f!==o[d]&&(o[d]=f,c=!0);else{const _=Fi(d);i[_]=Fp(u,a,_,f,t,!1)}else f!==o[d]&&(o[d]=f,c=!0)}}}else{Yb(t,e,i,o)&&(c=!0);let h;for(const l in a)(!e||!tn(e,l)&&((h=Ra(l))===l||!tn(e,h)))&&(u?n&&(n[l]!==void 0||n[h]!==void 0)&&(i[l]=Fp(u,a,l,void 0,t,!0)):delete i[l]);if(o!==a)for(const l in o)(!e||!tn(e,l))&&(delete o[l],c=!0)}c&&Ho(t.attrs,"set","")}function Yb(t,e,n,r){const[i,o]=t.propsOptions;let s=!1,a;if(e)for(let u in e){if(bu(u))continue;const c=e[u];let h;i&&tn(i,h=Fi(u))?!o||!o.includes(h)?n[h]=c:(a||(a={}))[h]=c:Kd(t.emitsOptions,u)||(!(u in r)||c!==r[u])&&(r[u]=c,s=!0)}if(o){const u=Nt(n),c=a||dn;for(let h=0;h<o.length;h++){const l=o[h];n[l]=Fp(i,u,l,c[l],t,!tn(c,l))}}return s}function Fp(t,e,n,r,i,o){const s=t[n];if(s!=null){const a=tn(s,"default");if(a&&r===void 0){const u=s.default;if(s.type!==Function&&!s.skipFactory&&ft(u)){const{propsDefaults:c}=i;if(n in c)r=c[n];else{const h=kc(i);r=c[n]=u.call(null,e),h()}}else r=u;i.ce&&i.ce._setProp(n,r)}s[0]&&(o&&!a?r=!1:s[1]&&(r===""||r===Ra(n))&&(r=!0))}return r}const rx=new WeakMap;function Kb(t,e,n=!1){const r=n?rx:e.propsCache,i=r.get(t);if(i)return i;const o=t.props,s={},a=[];let u=!1;if(!ft(t)){const h=l=>{u=!0;const[d,f]=Kb(l,e,!0);ar(s,d),f&&a.push(...f)};!n&&e.mixins.length&&e.mixins.forEach(h),t.extends&&h(t.extends),t.mixins&&t.mixins.forEach(h)}if(!o&&!u)return sn(t)&&r.set(t,tl),tl;if(at(o))for(let h=0;h<o.length;h++){const l=Fi(o[h]);Ev(l)&&(s[l]=dn)}else if(o)for(const h in o){const l=Fi(h);if(Ev(l)){const d=o[h],f=s[l]=at(d)||ft(d)?{type:d}:ar({},d),_=f.type;let g=!1,b=!0;if(at(_))for(let y=0;y<_.length;++y){const w=_[y],A=ft(w)&&w.name;if(A==="Boolean"){g=!0;break}else A==="String"&&(b=!1)}else g=ft(_)&&_.name==="Boolean";f[0]=g,f[1]=b,(g||tn(f,"default"))&&a.push(l)}}const c=[s,a];return sn(t)&&r.set(t,c),c}function Ev(t){return t[0]!=="$"&&!bu(t)}const ug=t=>t[0]==="_"||t==="$stable",cg=t=>at(t)?t.map(co):[co(t)],ix=(t,e,n)=>{if(e._n)return e;const r=Di((...i)=>cg(e(...i)),n);return r._c=!1,r},Xb=(t,e,n)=>{const r=t._ctx;for(const i in t){if(ug(i))continue;const o=t[i];if(ft(o))e[i]=ix(i,o,r);else if(o!=null){const s=cg(o);e[i]=()=>s}}},Qb=(t,e)=>{const n=cg(e);t.slots.default=()=>n},Jb=(t,e,n)=>{for(const r in e)(n||!ug(r))&&(t[r]=e[r])},ox=(t,e,n)=>{const r=t.slots=qb();if(t.vnode.shapeFlag&32){const i=e.__;i&&Ap(r,"__",i,!0);const o=e._;o?(Jb(r,e,n),n&&Ap(r,"_",o,!0)):Xb(e,r)}else e&&Qb(t,e)},sx=(t,e,n)=>{const{vnode:r,slots:i}=t;let o=!0,s=dn;if(r.shapeFlag&32){const a=e._;a?n&&a===1?o=!1:Jb(i,e,n):(o=!e.$stable,Xb(e,i)),s=e}else e&&(Qb(t,e),s={default:1});if(o)for(const a in i)!ug(a)&&s[a]==null&&delete i[a]},Dr=bx;function ax(t){return lx(t)}function lx(t,e){const n=Wd();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:s,createText:a,createComment:u,setText:c,setElementText:h,parentNode:l,nextSibling:d,setScopeId:f=yo,insertStaticContent:_}=t,g=(z,P,Y,ee=null,K=null,x=null,G=void 0,I=null,F=!!P.dynamicChildren)=>{if(z===P)return;z&&!ea(z,P)&&(ee=ie(z),Te(z,K,x,!0),z=null),P.patchFlag===-2&&(F=!1,P.dynamicChildren=null);const{type:Z,ref:fe,shapeFlag:ue}=P;switch(Z){case Ec:b(z,P,Y,ee);break;case Er:y(z,P,Y,ee);break;case Mf:z==null&&w(P,Y,ee,G);break;case Ye:D(z,P,Y,ee,K,x,G,I,F);break;default:ue&1?R(z,P,Y,ee,K,x,G,I,F):ue&6?Q(z,P,Y,ee,K,x,G,I,F):(ue&64||ue&128)&&Z.process(z,P,Y,ee,K,x,G,I,F,Se)}fe!=null&&K?Eu(fe,z&&z.ref,x,P||z,!P):fe==null&&z&&z.ref!=null&&Eu(z.ref,null,x,z,!0)},b=(z,P,Y,ee)=>{if(z==null)r(P.el=a(P.children),Y,ee);else{const K=P.el=z.el;P.children!==z.children&&c(K,P.children)}},y=(z,P,Y,ee)=>{z==null?r(P.el=u(P.children||""),Y,ee):P.el=z.el},w=(z,P,Y,ee)=>{[z.el,z.anchor]=_(z.children,P,Y,ee,z.el,z.anchor)},A=({el:z,anchor:P},Y,ee)=>{let K;for(;z&&z!==P;)K=d(z),r(z,Y,ee),z=K;r(P,Y,ee)},k=({el:z,anchor:P})=>{let Y;for(;z&&z!==P;)Y=d(z),i(z),z=Y;i(P)},R=(z,P,Y,ee,K,x,G,I,F)=>{P.type==="svg"?G="svg":P.type==="math"&&(G="mathml"),z==null?C(P,Y,ee,K,x,G,I,F):$(z,P,K,x,G,I,F)},C=(z,P,Y,ee,K,x,G,I)=>{let F,Z;const{props:fe,shapeFlag:ue,transition:S,dirs:m}=z;if(F=z.el=s(z.type,x,fe&&fe.is,fe),ue&8?h(F,z.children):ue&16&&M(z.children,F,null,ee,K,Bh(z,x),G,I),m&&js(z,null,ee,"created"),L(F,z,z.scopeId,G,ee),fe){for(const H in fe)H!=="value"&&!bu(H)&&o(F,H,null,fe[H],x,ee);"value"in fe&&o(F,"value",null,fe.value,x),(Z=fe.onVnodeBeforeMount)&&oo(Z,ee,z)}m&&js(z,null,ee,"beforeMount");const T=ux(K,S);T&&S.beforeEnter(F),r(F,P,Y),((Z=fe&&fe.onVnodeMounted)||T||m)&&Dr(()=>{Z&&oo(Z,ee,z),T&&S.enter(F),m&&js(z,null,ee,"mounted")},K)},L=(z,P,Y,ee,K)=>{if(Y&&f(z,Y),ee)for(let x=0;x<ee.length;x++)f(z,ee[x]);if(K){let x=K.subTree;if(P===x||nw(x.type)&&(x.ssContent===P||x.ssFallback===P)){const G=K.vnode;L(z,G,G.scopeId,G.slotScopeIds,K.parent)}}},M=(z,P,Y,ee,K,x,G,I,F=0)=>{for(let Z=F;Z<z.length;Z++){const fe=z[Z]=I?ms(z[Z]):co(z[Z]);g(null,fe,P,Y,ee,K,x,G,I)}},$=(z,P,Y,ee,K,x,G)=>{const I=P.el=z.el;let{patchFlag:F,dynamicChildren:Z,dirs:fe}=P;F|=z.patchFlag&16;const ue=z.props||dn,S=P.props||dn;let m;if(Y&&Ws(Y,!1),(m=S.onVnodeBeforeUpdate)&&oo(m,Y,P,z),fe&&js(P,z,Y,"beforeUpdate"),Y&&Ws(Y,!0),(ue.innerHTML&&S.innerHTML==null||ue.textContent&&S.textContent==null)&&h(I,""),Z?U(z.dynamicChildren,Z,I,Y,ee,Bh(P,K),x):G||oe(z,P,I,null,Y,ee,Bh(P,K),x,!1),F>0){if(F&16)ne(I,ue,S,Y,K);else if(F&2&&ue.class!==S.class&&o(I,"class",null,S.class,K),F&4&&o(I,"style",ue.style,S.style,K),F&8){const T=P.dynamicProps;for(let H=0;H<T.length;H++){const re=T[H],ce=ue[re],Ee=S[re];(Ee!==ce||re==="value")&&o(I,re,ce,Ee,K,Y)}}F&1&&z.children!==P.children&&h(I,P.children)}else!G&&Z==null&&ne(I,ue,S,Y,K);((m=S.onVnodeUpdated)||fe)&&Dr(()=>{m&&oo(m,Y,P,z),fe&&js(P,z,Y,"updated")},ee)},U=(z,P,Y,ee,K,x,G)=>{for(let I=0;I<P.length;I++){const F=z[I],Z=P[I],fe=F.el&&(F.type===Ye||!ea(F,Z)||F.shapeFlag&198)?l(F.el):Y;g(F,Z,fe,null,ee,K,x,G,!0)}},ne=(z,P,Y,ee,K)=>{if(P!==Y){if(P!==dn)for(const x in P)!bu(x)&&!(x in Y)&&o(z,x,P[x],null,K,ee);for(const x in Y){if(bu(x))continue;const G=Y[x],I=P[x];G!==I&&x!=="value"&&o(z,x,I,G,K,ee)}"value"in Y&&o(z,"value",P.value,Y.value,K)}},D=(z,P,Y,ee,K,x,G,I,F)=>{const Z=P.el=z?z.el:a(""),fe=P.anchor=z?z.anchor:a("");let{patchFlag:ue,dynamicChildren:S,slotScopeIds:m}=P;m&&(I=I?I.concat(m):m),z==null?(r(Z,Y,ee),r(fe,Y,ee),M(P.children||[],Y,fe,K,x,G,I,F)):ue>0&&ue&64&&S&&z.dynamicChildren?(U(z.dynamicChildren,S,Y,K,x,G,I),(P.key!=null||K&&P===K.subTree)&&fg(z,P,!0)):oe(z,P,Y,fe,K,x,G,I,F)},Q=(z,P,Y,ee,K,x,G,I,F)=>{P.slotScopeIds=I,z==null?P.shapeFlag&512?K.ctx.activate(P,Y,ee,G,F):N(P,Y,ee,K,x,G,F):W(z,P,F)},N=(z,P,Y,ee,K,x,G)=>{const I=z.component=Ax(z,ee,K);if(bc(z)&&(I.ctx.renderer=Se),Rx(I,!1,G),I.asyncDep){if(K&&K.registerDep(I,V,G),!z.el){const F=I.subTree=Ve(Er);y(null,F,P,Y)}}else V(I,z,P,Y,K,x,G)},W=(z,P,Y)=>{const ee=P.component=z.component;if(vx(z,P,Y))if(ee.asyncDep&&!ee.asyncResolved){B(ee,P,Y);return}else ee.next=P,ee.update();else P.el=z.el,ee.vnode=P},V=(z,P,Y,ee,K,x,G)=>{const I=()=>{if(z.isMounted){let{next:ue,bu:S,u:m,parent:T,vnode:H}=z;{const Pe=Zb(z);if(Pe){ue&&(ue.el=H.el,B(z,ue,G)),Pe.asyncDep.then(()=>{z.isUnmounted||I()});return}}let re=ue,ce;Ws(z,!1),ue?(ue.el=H.el,B(z,ue,G)):ue=H,S&&If(S),(ce=ue.props&&ue.props.onVnodeBeforeUpdate)&&oo(ce,T,ue,H),Ws(z,!0);const Ee=Av(z),De=z.subTree;z.subTree=Ee,g(De,Ee,l(De.el),ie(De),z,K,x),ue.el=Ee.el,re===null&&yx(z,Ee.el),m&&Dr(m,K),(ce=ue.props&&ue.props.onVnodeUpdated)&&Dr(()=>oo(ce,T,ue,H),K)}else{let ue;const{el:S,props:m}=P,{bm:T,m:H,parent:re,root:ce,type:Ee}=z,De=il(P);Ws(z,!1),T&&If(T),!De&&(ue=m&&m.onVnodeBeforeMount)&&oo(ue,re,P),Ws(z,!0);{ce.ce&&ce.ce._def.shadowRoot!==!1&&ce.ce._injectChildStyle(Ee);const Pe=z.subTree=Av(z);g(null,Pe,Y,ee,z,K,x),P.el=Pe.el}if(H&&Dr(H,K),!De&&(ue=m&&m.onVnodeMounted)){const Pe=P;Dr(()=>oo(ue,re,Pe),K)}(P.shapeFlag&256||re&&il(re.vnode)&&re.vnode.shapeFlag&256)&&z.a&&Dr(z.a,K),z.isMounted=!0,P=Y=ee=null}};z.scope.on();const F=z.effect=new Z1(I);z.scope.off();const Z=z.update=F.run.bind(F),fe=z.job=F.runIfDirty.bind(F);fe.i=z,fe.id=z.uid,F.scheduler=()=>sg(fe),Ws(z,!0),Z()},B=(z,P,Y)=>{P.component=z;const ee=z.vnode.props;z.vnode=P,z.next=null,nx(z,P.props,ee,Y),sx(z,P.children,Y),Ko(),hv(z),Xo()},oe=(z,P,Y,ee,K,x,G,I,F=!1)=>{const Z=z&&z.children,fe=z?z.shapeFlag:0,ue=P.children,{patchFlag:S,shapeFlag:m}=P;if(S>0){if(S&128){q(Z,ue,Y,ee,K,x,G,I,F);return}else if(S&256){se(Z,ue,Y,ee,K,x,G,I,F);return}}m&8?(fe&16&&ye(Z,K,x),ue!==Z&&h(Y,ue)):fe&16?m&16?q(Z,ue,Y,ee,K,x,G,I,F):ye(Z,K,x,!0):(fe&8&&h(Y,""),m&16&&M(ue,Y,ee,K,x,G,I,F))},se=(z,P,Y,ee,K,x,G,I,F)=>{z=z||tl,P=P||tl;const Z=z.length,fe=P.length,ue=Math.min(Z,fe);let S;for(S=0;S<ue;S++){const m=P[S]=F?ms(P[S]):co(P[S]);g(z[S],m,Y,null,K,x,G,I,F)}Z>fe?ye(z,K,x,!0,!1,ue):M(P,Y,ee,K,x,G,I,F,ue)},q=(z,P,Y,ee,K,x,G,I,F)=>{let Z=0;const fe=P.length;let ue=z.length-1,S=fe-1;for(;Z<=ue&&Z<=S;){const m=z[Z],T=P[Z]=F?ms(P[Z]):co(P[Z]);if(ea(m,T))g(m,T,Y,null,K,x,G,I,F);else break;Z++}for(;Z<=ue&&Z<=S;){const m=z[ue],T=P[S]=F?ms(P[S]):co(P[S]);if(ea(m,T))g(m,T,Y,null,K,x,G,I,F);else break;ue--,S--}if(Z>ue){if(Z<=S){const m=S+1,T=m<fe?P[m].el:ee;for(;Z<=S;)g(null,P[Z]=F?ms(P[Z]):co(P[Z]),Y,T,K,x,G,I,F),Z++}}else if(Z>S)for(;Z<=ue;)Te(z[Z],K,x,!0),Z++;else{const m=Z,T=Z,H=new Map;for(Z=T;Z<=S;Z++){const tt=P[Z]=F?ms(P[Z]):co(P[Z]);tt.key!=null&&H.set(tt.key,Z)}let re,ce=0;const Ee=S-T+1;let De=!1,Pe=0;const Be=new Array(Ee);for(Z=0;Z<Ee;Z++)Be[Z]=0;for(Z=m;Z<=ue;Z++){const tt=z[Z];if(ce>=Ee){Te(tt,K,x,!0);continue}let pt;if(tt.key!=null)pt=H.get(tt.key);else for(re=T;re<=S;re++)if(Be[re-T]===0&&ea(tt,P[re])){pt=re;break}pt===void 0?Te(tt,K,x,!0):(Be[pt-T]=Z+1,pt>=Pe?Pe=pt:De=!0,g(tt,P[pt],Y,null,K,x,G,I,F),ce++)}const Qe=De?cx(Be):tl;for(re=Qe.length-1,Z=Ee-1;Z>=0;Z--){const tt=T+Z,pt=P[tt],mt=tt+1<fe?P[tt+1].el:ee;Be[Z]===0?g(null,pt,Y,mt,K,x,G,I,F):De&&(re<0||Z!==Qe[re]?be(pt,Y,mt,2):re--)}}},be=(z,P,Y,ee,K=null)=>{const{el:x,type:G,transition:I,children:F,shapeFlag:Z}=z;if(Z&6){be(z.component.subTree,P,Y,ee);return}if(Z&128){z.suspense.move(P,Y,ee);return}if(Z&64){G.move(z,P,Y,Se);return}if(G===Ye){r(x,P,Y);for(let ue=0;ue<F.length;ue++)be(F[ue],P,Y,ee);r(z.anchor,P,Y);return}if(G===Mf){A(z,P,Y);return}if(ee!==2&&Z&1&&I)if(ee===0)I.beforeEnter(x),r(x,P,Y),Dr(()=>I.enter(x),K);else{const{leave:ue,delayLeave:S,afterLeave:m}=I,T=()=>{z.ctx.isUnmounted?i(x):r(x,P,Y)},H=()=>{ue(x,()=>{T(),m&&m()})};S?S(x,T,H):H()}else r(x,P,Y)},Te=(z,P,Y,ee=!1,K=!1)=>{const{type:x,props:G,ref:I,children:F,dynamicChildren:Z,shapeFlag:fe,patchFlag:ue,dirs:S,cacheIndex:m}=z;if(ue===-2&&(K=!1),I!=null&&(Ko(),Eu(I,null,Y,z,!0),Xo()),m!=null&&(P.renderCache[m]=void 0),fe&256){P.ctx.deactivate(z);return}const T=fe&1&&S,H=!il(z);let re;if(H&&(re=G&&G.onVnodeBeforeUnmount)&&oo(re,P,z),fe&6)Ae(z.component,Y,ee);else{if(fe&128){z.suspense.unmount(Y,ee);return}T&&js(z,null,P,"beforeUnmount"),fe&64?z.type.remove(z,P,Y,Se,ee):Z&&!Z.hasOnce&&(x!==Ye||ue>0&&ue&64)?ye(Z,P,Y,!1,!0):(x===Ye&&ue&384||!K&&fe&16)&&ye(F,P,Y),ee&&he(z)}(H&&(re=G&&G.onVnodeUnmounted)||T)&&Dr(()=>{re&&oo(re,P,z),T&&js(z,null,P,"unmounted")},Y)},he=z=>{const{type:P,el:Y,anchor:ee,transition:K}=z;if(P===Ye){ge(Y,ee);return}if(P===Mf){k(z);return}const x=()=>{i(Y),K&&!K.persisted&&K.afterLeave&&K.afterLeave()};if(z.shapeFlag&1&&K&&!K.persisted){const{leave:G,delayLeave:I}=K,F=()=>G(Y,x);I?I(z.el,x,F):F()}else x()},ge=(z,P)=>{let Y;for(;z!==P;)Y=d(z),i(z),z=Y;i(P)},Ae=(z,P,Y)=>{const{bum:ee,scope:K,job:x,subTree:G,um:I,m:F,a:Z,parent:fe,slots:{__:ue}}=z;kv(F),kv(Z),ee&&If(ee),fe&&at(ue)&&ue.forEach(S=>{fe.renderCache[S]=void 0}),K.stop(),x&&(x.flags|=8,Te(G,z,P,Y)),I&&Dr(I,P),Dr(()=>{z.isUnmounted=!0},P),P&&P.pendingBranch&&!P.isUnmounted&&z.asyncDep&&!z.asyncResolved&&z.suspenseId===P.pendingId&&(P.deps--,P.deps===0&&P.resolve())},ye=(z,P,Y,ee=!1,K=!1,x=0)=>{for(let G=x;G<z.length;G++)Te(z[G],P,Y,ee,K)},ie=z=>{if(z.shapeFlag&6)return ie(z.component.subTree);if(z.shapeFlag&128)return z.suspense.next();const P=d(z.anchor||z.el),Y=P&&P[Eb];return Y?d(Y):P};let le=!1;const pe=(z,P,Y)=>{z==null?P._vnode&&Te(P._vnode,null,null,!0):g(P._vnode||null,z,P,null,null,null,Y),P._vnode=z,le||(le=!0,hv(),wb(),le=!1)},Se={p:g,um:Te,m:be,r:he,mt:N,mc:M,pc:oe,pbc:U,n:ie,o:t};return{render:pe,hydrate:void 0,createApp:ex(pe)}}function Bh({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function Ws({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function ux(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function fg(t,e,n=!1){const r=t.children,i=e.children;if(at(r)&&at(i))for(let o=0;o<r.length;o++){const s=r[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=ms(i[o]),a.el=s.el),!n&&a.patchFlag!==-2&&fg(s,a)),a.type===Ec&&(a.el=s.el),a.type===Er&&!a.el&&(a.el=s.el)}}function cx(t){const e=t.slice(),n=[0];let r,i,o,s,a;const u=t.length;for(r=0;r<u;r++){const c=t[r];if(c!==0){if(i=n[n.length-1],t[i]<c){e[r]=i,n.push(r);continue}for(o=0,s=n.length-1;o<s;)a=o+s>>1,t[n[a]]<c?o=a+1:s=a;c<t[n[o]]&&(o>0&&(e[r]=n[o-1]),n[o]=r)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=e[s];return n}function Zb(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Zb(e)}function kv(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}const fx=Symbol.for("v-scx"),dx=()=>Yr(fx);function Tc(t,e){return dg(t,null,e)}function Ne(t,e,n){return dg(t,e,n)}function dg(t,e,n=dn){const{immediate:r,deep:i,flush:o,once:s}=n,a=ar({},n),u=e&&r||!e&&o!=="post";let c;if(gl){if(o==="sync"){const f=dx();c=f.__watcherHandles||(f.__watcherHandles=[])}else if(!u){const f=()=>{};return f.stop=yo,f.resume=yo,f.pause=yo,f}}const h=Jn;a.call=(f,_,g)=>Gi(f,h,_,g);let l=!1;o==="post"?a.scheduler=f=>{Dr(f,h&&h.suspense)}:o!=="sync"&&(l=!0,a.scheduler=(f,_)=>{_?f():sg(f)}),a.augmentJob=f=>{e&&(f.flags|=4),l&&(f.flags|=2,h&&(f.id=h.uid,f.i=h))};const d=PR(t,e,a);return gl&&(c?c.push(d):u&&d()),d}function hx(t,e,n){const r=this.proxy,i=Rn(t)?t.includes(".")?ew(r,t):()=>r[t]:t.bind(r,r);let o;ft(e)?o=e:(o=e.handler,n=e);const s=kc(this),a=dg(i,o.bind(r),n);return s(),a}function ew(t,e){const n=e.split(".");return()=>{let r=t;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const px=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Fi(e)}Modifiers`]||t[`${Ra(e)}Modifiers`];function mx(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||dn;let i=n;const o=e.startsWith("update:"),s=o&&px(r,e.slice(7));s&&(s.trim&&(i=n.map(h=>Rn(h)?h.trim():h)),s.number&&(i=n.map(rd)));let a,u=r[a=Lh(e)]||r[a=Lh(Fi(e))];!u&&o&&(u=r[a=Lh(Ra(e))]),u&&Gi(u,t,6,i);const c=r[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,Gi(c,t,6,i)}}function tw(t,e,n=!1){const r=e.emitsCache,i=r.get(t);if(i!==void 0)return i;const o=t.emits;let s={},a=!1;if(!ft(t)){const u=c=>{const h=tw(c,e,!0);h&&(a=!0,ar(s,h))};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}return!o&&!a?(sn(t)&&r.set(t,null),null):(at(o)?o.forEach(u=>s[u]=null):ar(s,o),sn(t)&&r.set(t,s),s)}function Kd(t,e){return!t||!Bd(e)?!1:(e=e.slice(2).replace(/Once$/,""),tn(t,e[0].toLowerCase()+e.slice(1))||tn(t,Ra(e))||tn(t,e))}function Av(t){const{type:e,vnode:n,proxy:r,withProxy:i,propsOptions:[o],slots:s,attrs:a,emit:u,render:c,renderCache:h,props:l,data:d,setupState:f,ctx:_,inheritAttrs:g}=t,b=ld(t);let y,w;try{if(n.shapeFlag&4){const k=i||r,R=k;y=co(c.call(R,k,h,l,f,d,_)),w=a}else{const k=e;y=co(k.length>1?k(l,{attrs:a,slots:s,emit:u}):k(l,null)),w=e.props?a:gx(a)}}catch(k){Au.length=0,yc(k,t,1),y=Ve(Er)}let A=y;if(w&&g!==!1){const k=Object.keys(w),{shapeFlag:R}=A;k.length&&R&7&&(o&&k.some(Gm)&&(w=_x(w,o)),A=Ps(A,w,!1,!0))}return n.dirs&&(A=Ps(A,null,!1,!0),A.dirs=A.dirs?A.dirs.concat(n.dirs):n.dirs),n.transition&&Ku(A,n.transition),y=A,ld(b),y}const gx=t=>{let e;for(const n in t)(n==="class"||n==="style"||Bd(n))&&((e||(e={}))[n]=t[n]);return e},_x=(t,e)=>{const n={};for(const r in t)(!Gm(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function vx(t,e,n){const{props:r,children:i,component:o}=t,{props:s,children:a,patchFlag:u}=e,c=o.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return r?Rv(r,s,c):!!s;if(u&8){const h=e.dynamicProps;for(let l=0;l<h.length;l++){const d=h[l];if(s[d]!==r[d]&&!Kd(c,d))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:r===s?!1:r?s?Rv(r,s,c):!0:!!s;return!1}function Rv(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(e[o]!==t[o]&&!Kd(n,o))return!0}return!1}function yx({vnode:t,parent:e},n){for(;e;){const r=e.subTree;if(r.suspense&&r.suspense.activeBranch===t&&(r.el=t.el),r===t)(t=e.vnode).el=n,e=e.parent;else break}}const nw=t=>t.__isSuspense;function bx(t,e){e&&e.pendingBranch?at(t)?e.effects.push(...t):e.effects.push(t):OR(t)}const Ye=Symbol.for("v-fgt"),Ec=Symbol.for("v-txt"),Er=Symbol.for("v-cmt"),Mf=Symbol.for("v-stc"),Au=[];let ci=null;function ae(t=!1){Au.push(ci=t?null:[])}function wx(){Au.pop(),ci=Au[Au.length-1]||null}let Xu=1;function xv(t,e=!1){Xu+=t,t<0&&ci&&e&&(ci.hasOnce=!0)}function rw(t){return t.dynamicChildren=Xu>0?ci||tl:null,wx(),Xu>0&&ci&&ci.push(t),t}function me(t,e,n,r,i,o){return rw(J(t,e,n,r,i,o,!0))}function Kt(t,e,n,r,i){return rw(Ve(t,e,n,r,i,!0))}function Qu(t){return t?t.__v_isVNode===!0:!1}function ea(t,e){return t.type===e.type&&t.key===e.key}const iw=({key:t})=>t??null,Ff=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Rn(t)||vn(t)||ft(t)?{i:er,r:t,k:e,f:!!n}:t:null);function J(t,e=null,n=null,r=0,i=null,o=t===Ye?0:1,s=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&iw(e),ref:e&&Ff(e),scopeId:Tb,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:er};return a?(hg(u,n),o&128&&t.normalize(u)):n&&(u.shapeFlag|=Rn(n)?8:16),Xu>0&&!s&&ci&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&ci.push(u),u}const Ve=Sx;function Sx(t,e=null,n=null,r=0,i=null,o=!1){if((!t||t===Hb)&&(t=Er),Qu(t)){const a=Ps(t,e,!0);return n&&hg(a,n),Xu>0&&!o&&ci&&(a.shapeFlag&6?ci[ci.indexOf(t)]=a:ci.push(a)),a.patchFlag=-2,a}if(Lx(t)&&(t=t.__vccOpts),e){e=Tx(e);let{class:a,style:u}=e;a&&!Rn(a)&&(e.class=st(a)),sn(u)&&(ig(u)&&!at(u)&&(u=ar({},u)),e.style=Xm(u))}const s=Rn(t)?1:nw(t)?128:kb(t)?64:sn(t)?4:ft(t)?2:0;return J(t,e,n,r,i,s,o,!0)}function Tx(t){return t?ig(t)||Gb(t)?ar({},t):t:null}function Ps(t,e,n=!1,r=!1){const{props:i,ref:o,patchFlag:s,children:a,transition:u}=t,c=e?ow(i||{},e):i,h={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&iw(c),ref:e&&e.ref?n&&o?at(o)?o.concat(Ff(e)):[o,Ff(e)]:Ff(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ye?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:u,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ps(t.ssContent),ssFallback:t.ssFallback&&Ps(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return u&&r&&Ku(h,u.clone(h)),h}function Ju(t=" ",e=0){return Ve(Ec,null,t,e)}function g8(t,e){const n=Ve(Mf,null,t);return n.staticCount=e,n}function bt(t="",e=!1){return e?(ae(),Kt(Er,null,t)):Ve(Er,null,t)}function co(t){return t==null||typeof t=="boolean"?Ve(Er):at(t)?Ve(Ye,null,t.slice()):Qu(t)?ms(t):Ve(Ec,null,String(t))}function ms(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Ps(t)}function hg(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(at(e))n=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),hg(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!Gb(e)?e._ctx=er:i===3&&er&&(er.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ft(e)?(e={default:e,_ctx:er},n=32):(e=String(e),r&64?(n=16,e=[Ju(e)]):n=8);t.children=e,t.shapeFlag|=n}function ow(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const i in r)if(i==="class")e.class!==r.class&&(e.class=st([e.class,r.class]));else if(i==="style")e.style=Xm([e.style,r.style]);else if(Bd(i)){const o=e[i],s=r[i];s&&o!==s&&!(at(o)&&o.includes(s))&&(e[i]=o?[].concat(o,s):s)}else i!==""&&(e[i]=r[i])}return e}function oo(t,e,n,r=null){Gi(t,e,7,[n,r])}const Ex=jb();let kx=0;function Ax(t,e,n){const r=t.type,i=(e?e.appContext:t.appContext)||Ex,o={uid:kx++,vnode:t,type:r,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Q1(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Kb(r,i),emitsOptions:tw(r,i),emit:null,emitted:null,propsDefaults:dn,inheritAttrs:r.inheritAttrs,ctx:dn,data:dn,props:dn,attrs:dn,slots:dn,refs:dn,setupState:dn,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=e?e.root:o,o.emit=mx.bind(null,o),t.ce&&t.ce(o),o}let Jn=null;const Cl=()=>Jn||er;let cd,Dp;{const t=Wd(),e=(n,r)=>{let i;return(i=t[n])||(i=t[n]=[]),i.push(r),o=>{i.length>1?i.forEach(s=>s(o)):i[0](o)}};cd=e("__VUE_INSTANCE_SETTERS__",n=>Jn=n),Dp=e("__VUE_SSR_SETTERS__",n=>gl=n)}const kc=t=>{const e=Jn;return cd(t),t.scope.on(),()=>{t.scope.off(),cd(e)}},Cv=()=>{Jn&&Jn.scope.off(),cd(null)};function sw(t){return t.vnode.shapeFlag&4}let gl=!1;function Rx(t,e=!1,n=!1){e&&Dp(e);const{props:r,children:i}=t.vnode,o=sw(t);tx(t,r,o,e),ox(t,i,n||e);const s=o?xx(t,e):void 0;return e&&Dp(!1),s}function xx(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,GR);const{setup:r}=n;if(r){Ko();const i=t.setupContext=r.length>1?Px(t):null,o=kc(t),s=vc(r,t,0,[t.props,i]),a=z1(s);if(Xo(),o(),(a||t.sp)&&!il(t)&&ag(t),a){if(s.then(Cv,Cv),e)return s.then(u=>{Pv(t,u)}).catch(u=>{yc(u,t,0)});t.asyncDep=s}else Pv(t,s)}else aw(t)}function Pv(t,e,n){ft(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:sn(e)&&(t.setupState=gb(e)),aw(t)}function aw(t,e,n){const r=t.type;t.render||(t.render=r.render||yo);{const i=kc(t);Ko();try{YR(t)}finally{Xo(),i()}}}const Cx={get(t,e){return Tr(t,"get",""),t[e]}};function Px(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,Cx),slots:t.slots,emit:t.emit,expose:e}}function Xd(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(gb(og(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in ku)return ku[n](t)},has(e,n){return n in e||n in ku}})):t.proxy}function Ix(t,e=!0){return ft(t)?t.displayName||t.name:t.name||e&&t.__name}function Lx(t){return ft(t)&&"__vccOpts"in t}const Ce=(t,e)=>xR(t,e,gl);function Ac(t,e,n){const r=arguments.length;return r===2?sn(e)&&!at(e)?Qu(e)?Ve(t,null,[e]):Ve(t,e):Ve(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Qu(n)&&(n=[n]),Ve(t,e,n))}const Ox="3.5.17";/**
* @vue/runtime-dom v3.5.17
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let $p;const Iv=typeof window<"u"&&window.trustedTypes;if(Iv)try{$p=Iv.createPolicy("vue",{createHTML:t=>t})}catch{}const lw=$p?t=>$p.createHTML(t):t=>t,Mx="http://www.w3.org/2000/svg",Fx="http://www.w3.org/1998/Math/MathML",Oo=typeof document<"u"?document:null,Lv=Oo&&Oo.createElement("template"),Dx={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const i=e==="svg"?Oo.createElementNS(Mx,t):e==="mathml"?Oo.createElementNS(Fx,t):n?Oo.createElement(t,{is:n}):Oo.createElement(t);return t==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:t=>Oo.createTextNode(t),createComment:t=>Oo.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Oo.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,i,o){const s=n?n.previousSibling:e.lastChild;if(i&&(i===o||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{Lv.innerHTML=lw(r==="svg"?`<svg>${t}</svg>`:r==="mathml"?`<math>${t}</math>`:t);const a=Lv.content;if(r==="svg"||r==="mathml"){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}e.insertBefore(a,n)}return[s?s.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},ss="transition",Jl="animation",Zu=Symbol("_vtc"),uw={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},$x=ar({},xb,uw),Hx=t=>(t.displayName="Transition",t.props=$x,t),_8=Hx((t,{slots:e})=>Ac(NR,Nx(t),e)),zs=(t,e=[])=>{at(t)?t.forEach(n=>n(...e)):t&&t(...e)},Ov=t=>t?at(t)?t.some(e=>e.length>1):t.length>1:!1;function Nx(t){const e={};for(const D in t)D in uw||(e[D]=t[D]);if(t.css===!1)return e;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:u=o,appearActiveClass:c=s,appearToClass:h=a,leaveFromClass:l=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=t,_=Bx(i),g=_&&_[0],b=_&&_[1],{onBeforeEnter:y,onEnter:w,onEnterCancelled:A,onLeave:k,onLeaveCancelled:R,onBeforeAppear:C=y,onAppear:L=w,onAppearCancelled:M=A}=e,$=(D,Q,N,W)=>{D._enterCancelled=W,qs(D,Q?h:a),qs(D,Q?c:s),N&&N()},U=(D,Q)=>{D._isLeaving=!1,qs(D,l),qs(D,f),qs(D,d),Q&&Q()},ne=D=>(Q,N)=>{const W=D?L:w,V=()=>$(Q,D,N);zs(W,[Q,V]),Mv(()=>{qs(Q,D?u:o),Po(Q,D?h:a),Ov(W)||Fv(Q,r,g,V)})};return ar(e,{onBeforeEnter(D){zs(y,[D]),Po(D,o),Po(D,s)},onBeforeAppear(D){zs(C,[D]),Po(D,u),Po(D,c)},onEnter:ne(!1),onAppear:ne(!0),onLeave(D,Q){D._isLeaving=!0;const N=()=>U(D,Q);Po(D,l),D._enterCancelled?(Po(D,d),Hv()):(Hv(),Po(D,d)),Mv(()=>{D._isLeaving&&(qs(D,l),Po(D,f),Ov(k)||Fv(D,r,b,N))}),zs(k,[D,N])},onEnterCancelled(D){$(D,!1,void 0,!0),zs(A,[D])},onAppearCancelled(D){$(D,!0,void 0,!0),zs(M,[D])},onLeaveCancelled(D){U(D),zs(R,[D])}})}function Bx(t){if(t==null)return null;if(sn(t))return[Vh(t.enter),Vh(t.leave)];{const e=Vh(t);return[e,e]}}function Vh(t){return qA(t)}function Po(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[Zu]||(t[Zu]=new Set)).add(e)}function qs(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[Zu];n&&(n.delete(e),n.size||(t[Zu]=void 0))}function Mv(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let Vx=0;function Fv(t,e,n,r){const i=t._endId=++Vx,o=()=>{i===t._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:s,timeout:a,propCount:u}=Ux(t,e);if(!s)return r();const c=s+"end";let h=0;const l=()=>{t.removeEventListener(c,d),o()},d=f=>{f.target===t&&++h>=u&&l()};setTimeout(()=>{h<u&&l()},a+1),t.addEventListener(c,d)}function Ux(t,e){const n=window.getComputedStyle(t),r=_=>(n[_]||"").split(", "),i=r(`${ss}Delay`),o=r(`${ss}Duration`),s=Dv(i,o),a=r(`${Jl}Delay`),u=r(`${Jl}Duration`),c=Dv(a,u);let h=null,l=0,d=0;e===ss?s>0&&(h=ss,l=s,d=o.length):e===Jl?c>0&&(h=Jl,l=c,d=u.length):(l=Math.max(s,c),h=l>0?s>c?ss:Jl:null,d=h?h===ss?o.length:u.length:0);const f=h===ss&&/\b(transform|all)(,|$)/.test(r(`${ss}Property`).toString());return{type:h,timeout:l,propCount:d,hasTransform:f}}function Dv(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>$v(n)+$v(t[r])))}function $v(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function Hv(){return document.body.offsetHeight}function jx(t,e,n){const r=t[Zu];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const fd=Symbol("_vod"),cw=Symbol("_vsh"),Wx={beforeMount(t,{value:e},{transition:n}){t[fd]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Zl(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),Zl(t,!0),r.enter(t)):r.leave(t,()=>{Zl(t,!1)}):Zl(t,e))},beforeUnmount(t,{value:e}){Zl(t,e)}};function Zl(t,e){t.style.display=e?t[fd]:"none",t[cw]=!e}const zx=Symbol(""),qx=/(^|;)\s*display\s*:/;function Gx(t,e,n){const r=t.style,i=Rn(n);let o=!1;if(n&&!i){if(e)if(Rn(e))for(const s of e.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&Df(r,a,"")}else for(const s in e)n[s]==null&&Df(r,s,"");for(const s in n)s==="display"&&(o=!0),Df(r,s,n[s])}else if(i){if(e!==n){const s=r[zx];s&&(n+=";"+s),r.cssText=n,o=qx.test(n)}}else e&&t.removeAttribute("style");fd in t&&(t[fd]=o?r.display:"",t[cw]&&(r.display="none"))}const Nv=/\s*!important$/;function Df(t,e,n){if(at(n))n.forEach(r=>Df(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=Yx(t,e);Nv.test(n)?t.setProperty(Ra(r),n.replace(Nv,""),"important"):t[r]=n}}const Bv=["Webkit","Moz","ms"],Uh={};function Yx(t,e){const n=Uh[e];if(n)return n;let r=Fi(e);if(r!=="filter"&&r in t)return Uh[e]=r;r=jd(r);for(let i=0;i<Bv.length;i++){const o=Bv[i]+r;if(o in t)return Uh[e]=o}return e}const Vv="http://www.w3.org/1999/xlink";function Uv(t,e,n,r,i,o=JA(e)){r&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(Vv,e.slice(6,e.length)):t.setAttributeNS(Vv,e,n):n==null||o&&!Y1(n)?t.removeAttribute(e):t.setAttribute(e,o?"":qi(n)?String(n):n)}function jv(t,e,n,r,i){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?lw(n):n);return}const o=t.tagName;if(e==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?t.getAttribute("value")||"":t.value,u=n==null?t.type==="checkbox"?"on":"":String(n);(a!==u||!("_value"in t))&&(t.value=u),n==null&&t.removeAttribute(e),t._value=n;return}let s=!1;if(n===""||n==null){const a=typeof t[e];a==="boolean"?n=Y1(n):n==null&&a==="string"?(n="",s=!0):a==="number"&&(n=0,s=!0)}try{t[e]=n}catch{}s&&t.removeAttribute(i||e)}function ta(t,e,n,r){t.addEventListener(e,n,r)}function Kx(t,e,n,r){t.removeEventListener(e,n,r)}const Wv=Symbol("_vei");function Xx(t,e,n,r,i=null){const o=t[Wv]||(t[Wv]={}),s=o[e];if(r&&s)s.value=r;else{const[a,u]=Qx(e);if(r){const c=o[e]=eC(r,i);ta(t,a,c,u)}else s&&(Kx(t,a,s,u),o[e]=void 0)}}const zv=/(?:Once|Passive|Capture)$/;function Qx(t){let e;if(zv.test(t)){e={};let r;for(;r=t.match(zv);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Ra(t.slice(2)),e]}let jh=0;const Jx=Promise.resolve(),Zx=()=>jh||(Jx.then(()=>jh=0),jh=Date.now());function eC(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Gi(tC(r,n.value),e,5,[r])};return n.value=t,n.attached=Zx(),n}function tC(t,e){if(at(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>i=>!i._stopped&&r&&r(i))}else return e}const qv=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,nC=(t,e,n,r,i,o)=>{const s=i==="svg";e==="class"?jx(t,r,s):e==="style"?Gx(t,n,r):Bd(e)?Gm(e)||Xx(t,e,n,r,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):rC(t,e,r,s))?(jv(t,e,r),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Uv(t,e,r,s,o,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!Rn(r))?jv(t,Fi(e),r,o,e):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),Uv(t,e,r,s))};function rC(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&qv(e)&&ft(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return qv(e)&&Rn(n)?!1:e in t}const dd=t=>{const e=t.props["onUpdate:modelValue"]||!1;return at(e)?n=>If(e,n):e};function iC(t){t.target.composing=!0}function Gv(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const ol=Symbol("_assign"),v8={created(t,{modifiers:{lazy:e,trim:n,number:r}},i){t[ol]=dd(i);const o=r||i.props&&i.props.type==="number";ta(t,e?"change":"input",s=>{if(s.target.composing)return;let a=t.value;n&&(a=a.trim()),o&&(a=rd(a)),t[ol](a)}),n&&ta(t,"change",()=>{t.value=t.value.trim()}),e||(ta(t,"compositionstart",iC),ta(t,"compositionend",Gv),ta(t,"change",Gv))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:r,trim:i,number:o}},s){if(t[ol]=dd(s),t.composing)return;const a=(o||t.type==="number")&&!/^0\d/.test(t.value)?rd(t.value):t.value,u=e??"";a!==u&&(document.activeElement===t&&t.type!=="range"&&(r&&e===n||i&&t.value.trim()===u)||(t.value=u))}},y8={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const i=Vd(e);ta(t,"change",()=>{const o=Array.prototype.filter.call(t.options,s=>s.selected).map(s=>n?rd(hd(s)):hd(s));t[ol](t.multiple?i?new Set(o):o:o[0]),t._assigning=!0,Lt(()=>{t._assigning=!1})}),t[ol]=dd(r)},mounted(t,{value:e}){Yv(t,e)},beforeUpdate(t,e,n){t[ol]=dd(n)},updated(t,{value:e}){t._assigning||Yv(t,e)}};function Yv(t,e){const n=t.multiple,r=at(e);if(!(n&&!r&&!Vd(e))){for(let i=0,o=t.options.length;i<o;i++){const s=t.options[i],a=hd(s);if(n)if(r){const u=typeof a;u==="string"||u==="number"?s.selected=e.some(c=>String(c)===String(a)):s.selected=eR(e,a)>-1}else s.selected=e.has(a);else if(zd(hd(s),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function hd(t){return"_value"in t?t._value:t.value}const oC=["ctrl","shift","alt","meta"],sC={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>oC.some(n=>t[`${n}Key`]&&!e.includes(n))},Kv=(t,e)=>{const n=t._withMods||(t._withMods={}),r=e.join(".");return n[r]||(n[r]=(i,...o)=>{for(let s=0;s<e.length;s++){const a=sC[e[s]];if(a&&a(i,e))return}return t(i,...o)})},aC=ar({patchProp:nC},Dx);let Xv;function lC(){return Xv||(Xv=ax(aC))}const uC=(...t)=>{const e=lC().createApp(...t),{mount:n}=e;return e.mount=r=>{const i=fC(r);if(!i)return;const o=e._component;!ft(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=n(i,!1,cC(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},e};function cC(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function fC(t){return Rn(t)?document.querySelector(t):t}/*!
  * vue-i18n v10.0.8
  * (c) 2025 kazuya kawaguchi
  * Released under the MIT License.
  */const dC="10.0.8";function hC(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Nm().__INTLIFY_PROD_DEVTOOLS__=!1)}const $i={UNEXPECTED_RETURN_TYPE:sA,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function Yi(t,...e){return Hd(t,null,void 0)}const Hp=Fs("__translateVNode"),Np=Fs("__datetimeParts"),Bp=Fs("__numberParts"),pC=Fs("__setPluralRules"),mC=Fs("__injectWithOption"),Vp=Fs("__dispose");function ec(t){if(!Yt(t)||vo(t))return t;for(const e in t)if(ji(t,e))if(!e.includes("."))Yt(t[e])&&ec(t[e]);else{const n=e.split("."),r=n.length-1;let i=t,o=!1;for(let s=0;s<r;s++){if(n[s]==="__proto__")throw new Error(`unsafe key: ${n[s]}`);if(n[s]in i||(i[n[s]]=on()),!Yt(i[n[s]])){o=!0;break}i=i[n[s]]}if(o||(vo(i)?M1.includes(n[r])||delete t[e]:(i[n[r]]=t[e],delete t[e])),!vo(i)){const s=i[n[r]];Yt(s)&&ec(s)}}return t}function fw(t,e){const{messages:n,__i18n:r,messageResolver:i,flatJson:o}=e,s=Bt(n)?n:Zn(r)?on():{[t]:on()};if(Zn(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:u,resource:c}=a;u?(s[u]=s[u]||on(),Pf(c,s[u])):Pf(c,s)}else et(a)&&Pf(JSON.parse(a),s)}),i==null&&o)for(const a in s)ji(s,a)&&ec(s[a]);return s}function dw(t){return t.type}function gC(t,e,n){let r=Yt(e.messages)?e.messages:on();"__i18nGlobal"in n&&(r=fw(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(o=>{t.mergeLocaleMessage(o,r[o])});{if(Yt(e.datetimeFormats)){const o=Object.keys(e.datetimeFormats);o.length&&o.forEach(s=>{t.mergeDateTimeFormat(s,e.datetimeFormats[s])})}if(Yt(e.numberFormats)){const o=Object.keys(e.numberFormats);o.length&&o.forEach(s=>{t.mergeNumberFormat(s,e.numberFormats[s])})}}}function Qv(t){return Ve(Ec,null,t,0)}const Jv="__INTLIFY_META__",Zv=()=>[],_C=()=>!1;let e0=0;function t0(t){return(e,n,r,i)=>t(n,r,Cl()||void 0,i)}const vC=()=>{const t=Cl();let e=null;return t&&(e=dw(t)[Jv])?{[Jv]:e}:null};function hw(t={}){const{__root:e,__injectWithOption:n}=t,r=e===void 0,i=t.flatJson,o=ed?j:_a;let s=kn(t.inheritLocale)?t.inheritLocale:!0;const a=o(e&&s?e.locale.value:et(t.locale)?t.locale:nd),u=o(e&&s?e.fallbackLocale.value:et(t.fallbackLocale)||Zn(t.fallbackLocale)||Bt(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:a.value),c=o(fw(a.value,t)),h=o(Bt(t.datetimeFormats)?t.datetimeFormats:{[a.value]:{}}),l=o(Bt(t.numberFormats)?t.numberFormats:{[a.value]:{}});let d=e?e.missingWarn:kn(t.missingWarn)||td(t.missingWarn)?t.missingWarn:!0,f=e?e.fallbackWarn:kn(t.fallbackWarn)||td(t.fallbackWarn)?t.fallbackWarn:!0,_=e?e.fallbackRoot:kn(t.fallbackRoot)?t.fallbackRoot:!0,g=!!t.fallbackFormat,b=Tn(t.missing)?t.missing:null,y=Tn(t.missing)?t0(t.missing):null,w=Tn(t.postTranslation)?t.postTranslation:null,A=e?e.warnHtmlMessage:kn(t.warnHtmlMessage)?t.warnHtmlMessage:!0,k=!!t.escapeParameter;const R=e?e.modifiers:Bt(t.modifiers)?t.modifiers:{};let C=t.pluralRules||e&&e.pluralRules,L;L=(()=>{r&&ev(null);const S={version:dC,locale:a.value,fallbackLocale:u.value,messages:c.value,modifiers:R,pluralRules:C,missing:y===null?void 0:y,missingWarn:d,fallbackWarn:f,fallbackFormat:g,unresolving:!0,postTranslation:w===null?void 0:w,warnHtmlMessage:A,escapeParameter:k,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};S.datetimeFormats=h.value,S.numberFormats=l.value,S.__datetimeFormatters=Bt(L)?L.__datetimeFormatters:void 0,S.__numberFormatters=Bt(L)?L.__numberFormatters:void 0;const m=AA(S);return r&&ev(m),m})(),Xl(L,a.value,u.value);function $(){return[a.value,u.value,c.value,h.value,l.value]}const U=Ce({get:()=>a.value,set:S=>{a.value=S,L.locale=a.value}}),ne=Ce({get:()=>u.value,set:S=>{u.value=S,L.fallbackLocale=u.value,Xl(L,a.value,S)}}),D=Ce(()=>c.value),Q=Ce(()=>h.value),N=Ce(()=>l.value);function W(){return Tn(w)?w:null}function V(S){w=S,L.postTranslation=S}function B(){return b}function oe(S){S!==null&&(y=t0(S)),b=S,L.missing=y}const se=(S,m,T,H,re,ce)=>{$();let Ee;try{__INTLIFY_PROD_DEVTOOLS__,r||(L.fallbackContext=e?kA():void 0),Ee=S(L)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(L.fallbackContext=void 0)}if(T!=="translate exists"&&zn(Ee)&&Ee===Nd||T==="translate exists"&&!Ee){const[De,Pe]=m();return e&&_?H(e):re(De)}else{if(ce(Ee))return Ee;throw Yi($i.UNEXPECTED_RETURN_TYPE)}};function q(...S){return se(m=>Reflect.apply(lv,null,[m,...S]),()=>kp(...S),"translate",m=>Reflect.apply(m.t,m,[...S]),m=>m,m=>et(m))}function be(...S){const[m,T,H]=S;if(H&&!Yt(H))throw Yi($i.INVALID_ARGUMENT);return q(m,T,sr({resolvedMessage:!0},H||{}))}function Te(...S){return se(m=>Reflect.apply(nv,null,[m,...S]),()=>Tp(...S),"datetime format",m=>Reflect.apply(m.d,m,[...S]),()=>J_,m=>et(m))}function he(...S){return se(m=>Reflect.apply(iv,null,[m,...S]),()=>Ep(...S),"number format",m=>Reflect.apply(m.n,m,[...S]),()=>J_,m=>et(m))}function ge(S){return S.map(m=>et(m)||zn(m)||kn(m)?Qv(String(m)):m)}const ye={normalize:ge,interpolate:S=>S,type:"vnode"};function ie(...S){return se(m=>{let T;const H=m;try{H.processor=ye,T=Reflect.apply(lv,null,[H,...S])}finally{H.processor=null}return T},()=>kp(...S),"translate",m=>m[Hp](...S),m=>[Qv(m)],m=>Zn(m))}function le(...S){return se(m=>Reflect.apply(iv,null,[m,...S]),()=>Ep(...S),"number format",m=>m[Bp](...S),Zv,m=>et(m)||Zn(m))}function pe(...S){return se(m=>Reflect.apply(nv,null,[m,...S]),()=>Tp(...S),"datetime format",m=>m[Np](...S),Zv,m=>et(m)||Zn(m))}function Se(S){C=S,L.pluralRules=C}function Ie(S,m){return se(()=>{if(!S)return!1;const T=et(m)?m:a.value,H=Y(T),re=L.messageResolver(H,S);return vo(re)||ki(re)||et(re)},()=>[S],"translate exists",T=>Reflect.apply(T.te,T,[S,m]),_C,T=>kn(T))}function z(S){let m=null;const T=F1(L,u.value,a.value);for(let H=0;H<T.length;H++){const re=c.value[T[H]]||{},ce=L.messageResolver(re,S);if(ce!=null){m=ce;break}}return m}function P(S){const m=z(S);return m??(e?e.tm(S)||{}:{})}function Y(S){return c.value[S]||{}}function ee(S,m){if(i){const T={[S]:m};for(const H in T)ji(T,H)&&ec(T[H]);m=T[S]}c.value[S]=m,L.messages=c.value}function K(S,m){c.value[S]=c.value[S]||{};const T={[S]:m};if(i)for(const H in T)ji(T,H)&&ec(T[H]);m=T[S],Pf(m,c.value[S]),L.messages=c.value}function x(S){return h.value[S]||{}}function G(S,m){h.value[S]=m,L.datetimeFormats=h.value,rv(L,S,m)}function I(S,m){h.value[S]=sr(h.value[S]||{},m),L.datetimeFormats=h.value,rv(L,S,m)}function F(S){return l.value[S]||{}}function Z(S,m){l.value[S]=m,L.numberFormats=l.value,ov(L,S,m)}function fe(S,m){l.value[S]=sr(l.value[S]||{},m),L.numberFormats=l.value,ov(L,S,m)}e0++,e&&ed&&(Ne(e.locale,S=>{s&&(a.value=S,L.locale=S,Xl(L,a.value,u.value))}),Ne(e.fallbackLocale,S=>{s&&(u.value=S,L.fallbackLocale=S,Xl(L,a.value,u.value))}));const ue={id:e0,locale:U,fallbackLocale:ne,get inheritLocale(){return s},set inheritLocale(S){s=S,S&&e&&(a.value=e.locale.value,u.value=e.fallbackLocale.value,Xl(L,a.value,u.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:D,get modifiers(){return R},get pluralRules(){return C||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(S){d=S,L.missingWarn=d},get fallbackWarn(){return f},set fallbackWarn(S){f=S,L.fallbackWarn=f},get fallbackRoot(){return _},set fallbackRoot(S){_=S},get fallbackFormat(){return g},set fallbackFormat(S){g=S,L.fallbackFormat=g},get warnHtmlMessage(){return A},set warnHtmlMessage(S){A=S,L.warnHtmlMessage=S},get escapeParameter(){return k},set escapeParameter(S){k=S,L.escapeParameter=S},t:q,getLocaleMessage:Y,setLocaleMessage:ee,mergeLocaleMessage:K,getPostTranslationHandler:W,setPostTranslationHandler:V,getMissingHandler:B,setMissingHandler:oe,[pC]:Se};return ue.datetimeFormats=Q,ue.numberFormats=N,ue.rt=be,ue.te=Ie,ue.tm=P,ue.d=Te,ue.n=he,ue.getDateTimeFormat=x,ue.setDateTimeFormat=G,ue.mergeDateTimeFormat=I,ue.getNumberFormat=F,ue.setNumberFormat=Z,ue.mergeNumberFormat=fe,ue[mC]=n,ue[Hp]=ie,ue[Np]=pe,ue[Bp]=le,ue}const pg={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function yC({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,i)=>[...r,...i.type===Ye?i.children:[i]],[]):e.reduce((n,r)=>{const i=t[r];return i&&(n[r]=i()),n},on())}function pw(){return Ye}const bC=Ji({name:"i18n-t",props:sr({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>zn(t)||!isNaN(t)}},pg),setup(t,e){const{slots:n,attrs:r}=e,i=t.i18n||mg({useScope:t.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(l=>l!=="_"),s=on();t.locale&&(s.locale=t.locale),t.plural!==void 0&&(s.plural=et(t.plural)?+t.plural:t.plural);const a=yC(e,o),u=i[Hp](t.keypath,a,s),c=sr(on(),r),h=et(t.tag)||Yt(t.tag)?t.tag:pw();return Ac(h,c,u)}}}),n0=bC;function wC(t){return Zn(t)&&!et(t[0])}function mw(t,e,n,r){const{slots:i,attrs:o}=e;return()=>{const s={part:!0};let a=on();t.locale&&(s.locale=t.locale),et(t.format)?s.key=t.format:Yt(t.format)&&(et(t.format.key)&&(s.key=t.format.key),a=Object.keys(t.format).reduce((d,f)=>n.includes(f)?sr(on(),d,{[f]:t.format[f]}):d,on()));const u=r(t.value,s,a);let c=[s.key];Zn(u)?c=u.map((d,f)=>{const _=i[d.type],g=_?_({[d.type]:d.value,index:f,parts:u}):[d.value];return wC(g)&&(g[0].key=`${d.type}-${f}`),g}):et(u)&&(c=[u]);const h=sr(on(),o),l=et(t.tag)||Yt(t.tag)?t.tag:pw();return Ac(l,h,c)}}const SC=Ji({name:"i18n-n",props:sr({value:{type:Number,required:!0},format:{type:[String,Object]}},pg),setup(t,e){const n=t.i18n||mg({useScope:t.scope,__useComponent:!0});return mw(t,e,U1,(...r)=>n[Bp](...r))}}),r0=SC,TC=Ji({name:"i18n-d",props:sr({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},pg),setup(t,e){const n=t.i18n||mg({useScope:t.scope,__useComponent:!0});return mw(t,e,V1,(...r)=>n[Np](...r))}}),i0=TC;function EC(t,e){const n=t;if(t.mode==="composition")return n.__getInstance(e)||t.global;{const r=n.__getInstance(e);return r!=null?r.__composer:t.global.__composer}}function kC(t){const e=s=>{const{instance:a,value:u}=s;if(!a||!a.$)throw Yi($i.UNEXPECTED_ERROR);const c=EC(t,a.$),h=o0(u);return[Reflect.apply(c.t,c,[...s0(h)]),c]};return{created:(s,a)=>{const[u,c]=e(a);ed&&t.global===c&&(s.__i18nWatcher=Ne(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),s.__composer=c,s.textContent=u},unmounted:s=>{ed&&s.__i18nWatcher&&(s.__i18nWatcher(),s.__i18nWatcher=void 0,delete s.__i18nWatcher),s.__composer&&(s.__composer=void 0,delete s.__composer)},beforeUpdate:(s,{value:a})=>{if(s.__composer){const u=s.__composer,c=o0(a);s.textContent=Reflect.apply(u.t,u,[...s0(c)])}},getSSRProps:s=>{const[a]=e(s);return{textContent:a}}}}function o0(t){if(et(t))return{path:t};if(Bt(t)){if(!("path"in t))throw Yi($i.REQUIRED_VALUE,"path");return t}else throw Yi($i.INVALID_VALUE)}function s0(t){const{path:e,locale:n,args:r,choice:i,plural:o}=t,s={},a=r||{};return et(n)&&(s.locale=n),zn(i)&&(s.plural=i),zn(o)&&(s.plural=o),[e,a,s]}function AC(t,e,...n){const r=Bt(n[0])?n[0]:{};(kn(r.globalInstall)?r.globalInstall:!0)&&([n0.name,"I18nT"].forEach(o=>t.component(o,n0)),[r0.name,"I18nN"].forEach(o=>t.component(o,r0)),[i0.name,"I18nD"].forEach(o=>t.component(o,i0))),t.directive("t",kC(e))}const RC=Fs("global-vue-i18n");function xC(t={},e){const n=kn(t.globalInjection)?t.globalInjection:!0,r=new Map,[i,o]=CC(t),s=Fs("");function a(l){return r.get(l)||null}function u(l,d){r.set(l,d)}function c(l){r.delete(l)}const h={get mode(){return"composition"},async install(l,...d){if(l.__VUE_I18N_SYMBOL__=s,l.provide(l.__VUE_I18N_SYMBOL__,h),Bt(d[0])){const g=d[0];h.__composerExtend=g.__composerExtend,h.__vueI18nExtend=g.__vueI18nExtend}let f=null;n&&(f=$C(l,h.global)),AC(l,h,...d);const _=l.unmount;l.unmount=()=>{f&&f(),h.dispose(),_()}},get global(){return o},dispose(){i.stop()},__instances:r,__getInstance:a,__setInstance:u,__deleteInstance:c};return h}function mg(t={}){const e=Cl();if(e==null)throw Yi($i.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Yi($i.NOT_INSTALLED);const n=PC(e),r=LC(n),i=dw(e),o=IC(t,i);if(o==="global")return gC(r,t,i),r;if(o==="parent"){let u=OC(n,e,t.__useComponent);return u==null&&(u=r),u}const s=n;let a=s.__getInstance(e);if(a==null){const u=sr({},t);"__i18n"in i&&(u.__i18n=i.__i18n),r&&(u.__root=r),a=hw(u),s.__composerExtend&&(a[Vp]=s.__composerExtend(a)),FC(s,e,a),s.__setInstance(e,a)}return a}function CC(t,e,n){const r=Qm(),i=r.run(()=>hw(t));if(i==null)throw Yi($i.UNEXPECTED_ERROR);return[r,i]}function PC(t){const e=Yr(t.isCE?RC:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Yi(t.isCE?$i.NOT_INSTALLED_WITH_PROVIDE:$i.UNEXPECTED_ERROR);return e}function IC(t,e){return $d(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function LC(t){return t.mode==="composition"?t.global:t.global.__composer}function OC(t,e,n=!1){let r=null;const i=e.root;let o=MC(e,n);for(;o!=null;){const s=t;if(t.mode==="composition"&&(r=s.__getInstance(o)),r!=null||i===o)break;o=o.parent}return r}function MC(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function FC(t,e,n){xt(()=>{},e),Vt(()=>{const r=n;t.__deleteInstance(e);const i=r[Vp];i&&(i(),delete r[Vp])},e)}const DC=["locale","fallbackLocale","availableLocales"],a0=["t","rt","d","n","tm","te"];function $C(t,e){const n=Object.create(null);return DC.forEach(i=>{const o=Object.getOwnPropertyDescriptor(e,i);if(!o)throw Yi($i.UNEXPECTED_ERROR);const s=vn(o.value)?{get(){return o.value.value},set(a){o.value.value=a}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,i,s)}),t.config.globalProperties.$i18n=n,a0.forEach(i=>{const o=Object.getOwnPropertyDescriptor(e,i);if(!o||!o.value)throw Yi($i.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${i}`,o)}),()=>{delete t.config.globalProperties.$i18n,a0.forEach(i=>{delete t.config.globalProperties[`$${i}`]})}}hC();bA(tA);wA(_A);SA(F1);if(__INTLIFY_PROD_DEVTOOLS__){const t=Nm();t.__INTLIFY__=!0,nA(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const HC=Object.fromEntries(Object.entries(Object.assign({})).map(([t,e])=>{const n=t.endsWith(".yaml");return[t.slice(14,n?-5:-4),e.default]})),NC=({app:t})=>{const e=xC({locale:"en",messages:HC});t.use(e)},BC=Object.freeze(Object.defineProperty({__proto__:null,install:NC},Symbol.toStringTag,{value:"Module"}));/*!
 * pinia v2.3.1
 * (c) 2025 Eduardo San Martin Morote
 * @license MIT
 */let gw;const Qd=t=>gw=t,_w=Symbol();function Up(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Ru;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Ru||(Ru={}));function VC(){const t=Qm(!0),e=t.run(()=>j({}));let n=[],r=[];const i=og({install(o){Qd(i),i._a=o,o.provide(_w,i),o.config.globalProperties.$pinia=i,r.forEach(s=>n.push(s)),r=[]},use(o){return this._a?n.push(o):r.push(o),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return i}const vw=()=>{};function l0(t,e,n,r=vw){t.push(e);const i=()=>{const o=t.indexOf(e);o>-1&&(t.splice(o,1),r())};return!n&&J1()&&tR(i),i}function Ha(t,...e){t.slice().forEach(n=>{n(...e)})}const UC=t=>t(),u0=Symbol(),Wh=Symbol();function jp(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,r)=>t.set(r,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],i=t[n];Up(i)&&Up(r)&&t.hasOwnProperty(n)&&!vn(r)&&!qo(r)?t[n]=jp(i,r):t[n]=r}return t}const jC=Symbol();function WC(t){return!Up(t)||!t.hasOwnProperty(jC)}const{assign:fs}=Object;function zC(t){return!!(vn(t)&&t.effect)}function qC(t,e,n,r){const{state:i,actions:o,getters:s}=e,a=n.state.value[t];let u;function c(){a||(n.state.value[t]=i?i():{});const h=_b(n.state.value[t]);return fs(h,o,Object.keys(s||{}).reduce((l,d)=>(l[d]=og(Ce(()=>{Qd(n);const f=n._s.get(t);return s[d].call(f,f)})),l),{}))}return u=yw(t,c,e,n,r,!0),u}function yw(t,e,n={},r,i,o){let s;const a=fs({actions:{}},n),u={deep:!0};let c,h,l=[],d=[],f;const _=r.state.value[t];!o&&!_&&(r.state.value[t]={}),j({});let g;function b(M){let $;c=h=!1,typeof M=="function"?(M(r.state.value[t]),$={type:Ru.patchFunction,storeId:t,events:f}):(jp(r.state.value[t],M),$={type:Ru.patchObject,payload:M,storeId:t,events:f});const U=g=Symbol();Lt().then(()=>{g===U&&(c=!0)}),h=!0,Ha(l,$,r.state.value[t])}const y=o?function(){const{state:$}=n,U=$?$():{};this.$patch(ne=>{fs(ne,U)})}:vw;function w(){s.stop(),l=[],d=[],r._s.delete(t)}const A=(M,$="")=>{if(u0 in M)return M[Wh]=$,M;const U=function(){Qd(r);const ne=Array.from(arguments),D=[],Q=[];function N(B){D.push(B)}function W(B){Q.push(B)}Ha(d,{args:ne,name:U[Wh],store:R,after:N,onError:W});let V;try{V=M.apply(this&&this.$id===t?this:R,ne)}catch(B){throw Ha(Q,B),B}return V instanceof Promise?V.then(B=>(Ha(D,B),B)).catch(B=>(Ha(Q,B),Promise.reject(B))):(Ha(D,V),V)};return U[u0]=!0,U[Wh]=$,U},k={_p:r,$id:t,$onAction:l0.bind(null,d),$patch:b,$reset:y,$subscribe(M,$={}){const U=l0(l,M,$.detached,()=>ne()),ne=s.run(()=>Ne(()=>r.state.value[t],D=>{($.flush==="sync"?h:c)&&M({storeId:t,type:Ru.direct,events:f},D)},fs({},u,$)));return U},$dispose:w},R=xa(k);r._s.set(t,R);const L=(r._a&&r._a.runWithContext||UC)(()=>r._e.run(()=>(s=Qm()).run(()=>e({action:A}))));for(const M in L){const $=L[M];if(vn($)&&!zC($)||qo($))o||(_&&WC($)&&(vn($)?$.value=_[M]:jp($,_[M])),r.state.value[t][M]=$);else if(typeof $=="function"){const U=A($,M);L[M]=U,a.actions[M]=$}}return fs(R,L),fs(Nt(R),L),Object.defineProperty(R,"$state",{get:()=>r.state.value[t],set:M=>{b($=>{fs($,M)})}}),r._p.forEach(M=>{fs(R,s.run(()=>M({store:R,app:r._a,pinia:r,options:a})))}),_&&o&&n.hydrate&&n.hydrate(R.$state,_),c=!0,h=!0,R}/*! #__NO_SIDE_EFFECTS__ */function Rc(t,e,n){let r,i;const o=typeof e=="function";typeof t=="string"?(r=t,i=o?n:e):(i=t,r=t.id);function s(a,u){const c=Wb();return a=a||(c?Yr(_w,null):null),a&&Qd(a),a=gw,a._s.has(r)||(o?yw(r,e,i,a):qC(r,i,a)),a._s.get(r)}return s.$id=r,s}function bw(t){{const e=Nt(t),n={};for(const r in e){const i=e[r];i.effect?n[r]=Ce({get:()=>t[r],set(o){t[r]=o}}):(vn(i)||qo(i))&&(n[r]=AR(t,r))}return n}}const GC=({isClient:t,initialState:e,app:n})=>{const r=VC();n.use(r),t?r.state.value=e.pinia||{}:e.pinia=r.state.value},YC=Object.freeze(Object.defineProperty({__proto__:null,install:GC},Symbol.toStringTag,{value:"Module"})),KC="modulepreload",XC=function(t){return"/"+t},c0={},zr=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){let s=function(c){return Promise.all(c.map(h=>Promise.resolve(h).then(l=>({status:"fulfilled",value:l}),l=>({status:"rejected",reason:l}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),u=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=s(n.map(c=>{if(c=XC(c),c in c0)return;c0[c]=!0;const h=c.endsWith(".css"),l=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${l}`))return;const d=document.createElement("link");if(d.rel=h?"stylesheet":KC,h||(d.as="script"),d.crossOrigin="",d.href=c,u&&d.setAttribute("nonce",u),document.head.appendChild(d),h)return new Promise((f,_)=>{d.addEventListener("load",f),d.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return e().catch(o)})};/*!
  * vue-router v4.5.1
  * (c) 2025 Eduardo San Martin Morote
  * @license MIT
  */const qa=typeof document<"u";function ww(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function QC(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&ww(t.default)}const Zt=Object.assign;function zh(t,e){const n={};for(const r in e){const i=e[r];n[r]=Ki(i)?i.map(t):t(i)}return n}const xu=()=>{},Ki=Array.isArray,Sw=/#/g,JC=/&/g,ZC=/\//g,e2=/=/g,t2=/\?/g,Tw=/\+/g,n2=/%5B/g,r2=/%5D/g,Ew=/%5E/g,i2=/%60/g,kw=/%7B/g,o2=/%7C/g,Aw=/%7D/g,s2=/%20/g;function gg(t){return encodeURI(""+t).replace(o2,"|").replace(n2,"[").replace(r2,"]")}function a2(t){return gg(t).replace(kw,"{").replace(Aw,"}").replace(Ew,"^")}function Wp(t){return gg(t).replace(Tw,"%2B").replace(s2,"+").replace(Sw,"%23").replace(JC,"%26").replace(i2,"`").replace(kw,"{").replace(Aw,"}").replace(Ew,"^")}function l2(t){return Wp(t).replace(e2,"%3D")}function u2(t){return gg(t).replace(Sw,"%23").replace(t2,"%3F")}function c2(t){return t==null?"":u2(t).replace(ZC,"%2F")}function tc(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const f2=/\/$/,d2=t=>t.replace(f2,"");function qh(t,e,n="/"){let r,i={},o="",s="";const a=e.indexOf("#");let u=e.indexOf("?");return a<u&&a>=0&&(u=-1),u>-1&&(r=e.slice(0,u),o=e.slice(u+1,a>-1?a:e.length),i=t(o)),a>-1&&(r=r||e.slice(0,a),s=e.slice(a,e.length)),r=g2(r??e,n),{fullPath:r+(o&&"?")+o+s,path:r,query:i,hash:tc(s)}}function h2(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function f0(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function p2(t,e,n){const r=e.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&_l(e.matched[r],n.matched[i])&&Rw(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function _l(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function Rw(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!m2(t[n],e[n]))return!1;return!0}function m2(t,e){return Ki(t)?d0(t,e):Ki(e)?d0(e,t):t===e}function d0(t,e){return Ki(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function g2(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let o=n.length-1,s,a;for(s=0;s<r.length;s++)if(a=r[s],a!==".")if(a==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(s).join("/")}const as={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var nc;(function(t){t.pop="pop",t.push="push"})(nc||(nc={}));var Cu;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Cu||(Cu={}));function _2(t){if(!t)if(qa){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),d2(t)}const v2=/^[^#]+#/;function y2(t,e){return t.replace(v2,"#")+e}function b2(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const Jd=()=>({left:window.scrollX,top:window.scrollY});function w2(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;e=b2(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function h0(t,e){return(history.state?history.state.position-e:-1)+t}const zp=new Map;function S2(t,e){zp.set(t,e)}function T2(t){const e=zp.get(t);return zp.delete(t),e}let E2=()=>location.protocol+"//"+location.host;function xw(t,e){const{pathname:n,search:r,hash:i}=e,o=t.indexOf("#");if(o>-1){let a=i.includes(t.slice(o))?t.slice(o).length:1,u=i.slice(a);return u[0]!=="/"&&(u="/"+u),f0(u,"")}return f0(n,t)+r+i}function k2(t,e,n,r){let i=[],o=[],s=null;const a=({state:d})=>{const f=xw(t,location),_=n.value,g=e.value;let b=0;if(d){if(n.value=f,e.value=d,s&&s===_){s=null;return}b=g?d.position-g.position:0}else r(f);i.forEach(y=>{y(n.value,_,{delta:b,type:nc.pop,direction:b?b>0?Cu.forward:Cu.back:Cu.unknown})})};function u(){s=n.value}function c(d){i.push(d);const f=()=>{const _=i.indexOf(d);_>-1&&i.splice(_,1)};return o.push(f),f}function h(){const{history:d}=window;d.state&&d.replaceState(Zt({},d.state,{scroll:Jd()}),"")}function l(){for(const d of o)d();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:u,listen:c,destroy:l}}function p0(t,e,n,r=!1,i=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:i?Jd():null}}function A2(t){const{history:e,location:n}=window,r={value:xw(t,n)},i={value:e.state};i.value||o(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function o(u,c,h){const l=t.indexOf("#"),d=l>-1?(n.host&&document.querySelector("base")?t:t.slice(l))+u:E2()+t+u;try{e[h?"replaceState":"pushState"](c,"",d),i.value=c}catch(f){console.error(f),n[h?"replace":"assign"](d)}}function s(u,c){const h=Zt({},e.state,p0(i.value.back,u,i.value.forward,!0),c,{position:i.value.position});o(u,h,!0),r.value=u}function a(u,c){const h=Zt({},i.value,e.state,{forward:u,scroll:Jd()});o(h.current,h,!0);const l=Zt({},p0(r.value,u,null),{position:h.position+1},c);o(u,l,!1),r.value=u}return{location:r,state:i,push:a,replace:s}}function R2(t){t=_2(t);const e=A2(t),n=k2(t,e.state,e.location,e.replace);function r(o,s=!0){s||n.pauseListeners(),history.go(o)}const i=Zt({location:"",base:t,go:r,createHref:y2.bind(null,t)},e,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function x2(t){return typeof t=="string"||t&&typeof t=="object"}function Cw(t){return typeof t=="string"||typeof t=="symbol"}const Pw=Symbol("");var m0;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(m0||(m0={}));function vl(t,e){return Zt(new Error,{type:t,[Pw]:!0},e)}function Io(t,e){return t instanceof Error&&Pw in t&&(e==null||!!(t.type&e))}const g0="[^/]+?",C2={sensitive:!1,strict:!1,start:!0,end:!0},P2=/[.+*?^${}()[\]/\\]/g;function I2(t,e){const n=Zt({},C2,e),r=[];let i=n.start?"^":"";const o=[];for(const c of t){const h=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let l=0;l<c.length;l++){const d=c[l];let f=40+(n.sensitive?.25:0);if(d.type===0)l||(i+="/"),i+=d.value.replace(P2,"\\$&"),f+=40;else if(d.type===1){const{value:_,repeatable:g,optional:b,regexp:y}=d;o.push({name:_,repeatable:g,optional:b});const w=y||g0;if(w!==g0){f+=10;try{new RegExp(`(${w})`)}catch(k){throw new Error(`Invalid custom RegExp for param "${_}" (${w}): `+k.message)}}let A=g?`((?:${w})(?:/(?:${w}))*)`:`(${w})`;l||(A=b&&c.length<2?`(?:/${A})`:"/"+A),b&&(A+="?"),i+=A,f+=20,b&&(f+=-8),g&&(f+=-20),w===".*"&&(f+=-50)}h.push(f)}r.push(h)}if(n.strict&&n.end){const c=r.length-1;r[c][r[c].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const s=new RegExp(i,n.sensitive?"":"i");function a(c){const h=c.match(s),l={};if(!h)return null;for(let d=1;d<h.length;d++){const f=h[d]||"",_=o[d-1];l[_.name]=f&&_.repeatable?f.split("/"):f}return l}function u(c){let h="",l=!1;for(const d of t){(!l||!h.endsWith("/"))&&(h+="/"),l=!1;for(const f of d)if(f.type===0)h+=f.value;else if(f.type===1){const{value:_,repeatable:g,optional:b}=f,y=_ in c?c[_]:"";if(Ki(y)&&!g)throw new Error(`Provided param "${_}" is an array but it is not repeatable (* or + modifiers)`);const w=Ki(y)?y.join("/"):y;if(!w)if(b)d.length<2&&(h.endsWith("/")?h=h.slice(0,-1):l=!0);else throw new Error(`Missing required param "${_}"`);h+=w}}return h||"/"}return{re:s,score:r,keys:o,parse:a,stringify:u}}function L2(t,e){let n=0;for(;n<t.length&&n<e.length;){const r=e[n]-t[n];if(r)return r;n++}return t.length<e.length?t.length===1&&t[0]===80?-1:1:t.length>e.length?e.length===1&&e[0]===80?1:-1:0}function Iw(t,e){let n=0;const r=t.score,i=e.score;for(;n<r.length&&n<i.length;){const o=L2(r[n],i[n]);if(o)return o;n++}if(Math.abs(i.length-r.length)===1){if(_0(r))return 1;if(_0(i))return-1}return i.length-r.length}function _0(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const O2={type:0,value:""},M2=/[a-zA-Z0-9_]/;function F2(t){if(!t)return[[]];if(t==="/")return[[O2]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(f){throw new Error(`ERR (${n})/"${c}": ${f}`)}let n=0,r=n;const i=[];let o;function s(){o&&i.push(o),o=[]}let a=0,u,c="",h="";function l(){c&&(n===0?o.push({type:0,value:c}):n===1||n===2||n===3?(o.length>1&&(u==="*"||u==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:h,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):e("Invalid state to consume buffer"),c="")}function d(){c+=u}for(;a<t.length;){if(u=t[a++],u==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:u==="/"?(c&&l(),s()):u===":"?(l(),n=1):d();break;case 4:d(),n=r;break;case 1:u==="("?n=2:M2.test(u)?d():(l(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&a--);break;case 2:u===")"?h[h.length-1]=="\\"?h=h.slice(0,-1)+u:n=3:h+=u;break;case 3:l(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&a--,h="";break;default:e("Unknown state");break}}return n===2&&e(`Unfinished custom RegExp for param "${c}"`),l(),s(),i}function D2(t,e,n){const r=I2(F2(t.path),n),i=Zt(r,{record:t,parent:e,children:[],alias:[]});return e&&!i.record.aliasOf==!e.record.aliasOf&&e.children.push(i),i}function $2(t,e){const n=[],r=new Map;e=w0({strict:!1,end:!0,sensitive:!1},e);function i(l){return r.get(l)}function o(l,d,f){const _=!f,g=y0(l);g.aliasOf=f&&f.record;const b=w0(e,l),y=[g];if("alias"in l){const k=typeof l.alias=="string"?[l.alias]:l.alias;for(const R of k)y.push(y0(Zt({},g,{components:f?f.record.components:g.components,path:R,aliasOf:f?f.record:g})))}let w,A;for(const k of y){const{path:R}=k;if(d&&R[0]!=="/"){const C=d.record.path,L=C[C.length-1]==="/"?"":"/";k.path=d.record.path+(R&&L+R)}if(w=D2(k,d,b),f?f.alias.push(w):(A=A||w,A!==w&&A.alias.push(w),_&&l.name&&!b0(w)&&s(l.name)),Lw(w)&&u(w),g.children){const C=g.children;for(let L=0;L<C.length;L++)o(C[L],w,f&&f.children[L])}f=f||w}return A?()=>{s(A)}:xu}function s(l){if(Cw(l)){const d=r.get(l);d&&(r.delete(l),n.splice(n.indexOf(d),1),d.children.forEach(s),d.alias.forEach(s))}else{const d=n.indexOf(l);d>-1&&(n.splice(d,1),l.record.name&&r.delete(l.record.name),l.children.forEach(s),l.alias.forEach(s))}}function a(){return n}function u(l){const d=B2(l,n);n.splice(d,0,l),l.record.name&&!b0(l)&&r.set(l.record.name,l)}function c(l,d){let f,_={},g,b;if("name"in l&&l.name){if(f=r.get(l.name),!f)throw vl(1,{location:l});b=f.record.name,_=Zt(v0(d.params,f.keys.filter(A=>!A.optional).concat(f.parent?f.parent.keys.filter(A=>A.optional):[]).map(A=>A.name)),l.params&&v0(l.params,f.keys.map(A=>A.name))),g=f.stringify(_)}else if(l.path!=null)g=l.path,f=n.find(A=>A.re.test(g)),f&&(_=f.parse(g),b=f.record.name);else{if(f=d.name?r.get(d.name):n.find(A=>A.re.test(d.path)),!f)throw vl(1,{location:l,currentLocation:d});b=f.record.name,_=Zt({},d.params,l.params),g=f.stringify(_)}const y=[];let w=f;for(;w;)y.unshift(w.record),w=w.parent;return{name:b,path:g,params:_,matched:y,meta:N2(y)}}t.forEach(l=>o(l));function h(){n.length=0,r.clear()}return{addRoute:o,resolve:c,removeRoute:s,clearRoutes:h,getRoutes:a,getRecordMatcher:i}}function v0(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function y0(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:H2(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function H2(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]=typeof n=="object"?n[r]:n;return e}function b0(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function N2(t){return t.reduce((e,n)=>Zt(e,n.meta),{})}function w0(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function B2(t,e){let n=0,r=e.length;for(;n!==r;){const o=n+r>>1;Iw(t,e[o])<0?r=o:n=o+1}const i=V2(t);return i&&(r=e.lastIndexOf(i,r-1)),r}function V2(t){let e=t;for(;e=e.parent;)if(Lw(e)&&Iw(t,e)===0)return e}function Lw({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function U2(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;i<r.length;++i){const o=r[i].replace(Tw," "),s=o.indexOf("="),a=tc(s<0?o:o.slice(0,s)),u=s<0?null:tc(o.slice(s+1));if(a in e){let c=e[a];Ki(c)||(c=e[a]=[c]),c.push(u)}else e[a]=u}return e}function S0(t){let e="";for(let n in t){const r=t[n];if(n=l2(n),r==null){r!==void 0&&(e+=(e.length?"&":"")+n);continue}(Ki(r)?r.map(o=>o&&Wp(o)):[r&&Wp(r)]).forEach(o=>{o!==void 0&&(e+=(e.length?"&":"")+n,o!=null&&(e+="="+o))})}return e}function j2(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=Ki(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return e}const W2=Symbol(""),T0=Symbol(""),Zd=Symbol(""),_g=Symbol(""),qp=Symbol("");function eu(){let t=[];function e(r){return t.push(r),()=>{const i=t.indexOf(r);i>-1&&t.splice(i,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function gs(t,e,n,r,i,o=s=>s()){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((a,u)=>{const c=d=>{d===!1?u(vl(4,{from:n,to:e})):d instanceof Error?u(d):x2(d)?u(vl(2,{from:e,to:d})):(s&&r.enterCallbacks[i]===s&&typeof d=="function"&&s.push(d),a())},h=o(()=>t.call(r&&r.instances[i],e,n,c));let l=Promise.resolve(h);t.length<3&&(l=l.then(c)),l.catch(d=>u(d))})}function Gh(t,e,n,r,i=o=>o()){const o=[];for(const s of t)for(const a in s.components){let u=s.components[a];if(!(e!=="beforeRouteEnter"&&!s.instances[a]))if(ww(u)){const h=(u.__vccOpts||u)[e];h&&o.push(gs(h,n,r,s,a,i))}else{let c=u();o.push(()=>c.then(h=>{if(!h)throw new Error(`Couldn't resolve component "${a}" at "${s.path}"`);const l=QC(h)?h.default:h;s.mods[a]=h,s.components[a]=l;const f=(l.__vccOpts||l)[e];return f&&gs(f,n,r,s,a,i)()}))}}return o}function E0(t){const e=Yr(Zd),n=Yr(_g),r=Ce(()=>{const u=_e(t.to);return e.resolve(u)}),i=Ce(()=>{const{matched:u}=r.value,{length:c}=u,h=u[c-1],l=n.matched;if(!h||!l.length)return-1;const d=l.findIndex(_l.bind(null,h));if(d>-1)return d;const f=k0(u[c-2]);return c>1&&k0(h)===f&&l[l.length-1].path!==f?l.findIndex(_l.bind(null,u[c-2])):d}),o=Ce(()=>i.value>-1&&K2(n.params,r.value.params)),s=Ce(()=>i.value>-1&&i.value===n.matched.length-1&&Rw(n.params,r.value.params));function a(u={}){if(Y2(u)){const c=e[_e(t.replace)?"replace":"push"](_e(t.to)).catch(xu);return t.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:Ce(()=>r.value.href),isActive:o,isExactActive:s,navigate:a}}function z2(t){return t.length===1?t[0]:t}const q2=Ji({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:E0,setup(t,{slots:e}){const n=xa(E0(t)),{options:r}=Yr(Zd),i=Ce(()=>({[A0(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[A0(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=e.default&&z2(e.default(n));return t.custom?o:Ac("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),G2=q2;function Y2(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function K2(t,e){for(const n in e){const r=e[n],i=t[n];if(typeof r=="string"){if(r!==i)return!1}else if(!Ki(i)||i.length!==r.length||r.some((o,s)=>o!==i[s]))return!1}return!0}function k0(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const A0=(t,e,n)=>t??e??n,X2=Ji({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=Yr(qp),i=Ce(()=>t.route||r.value),o=Yr(T0,0),s=Ce(()=>{let c=_e(o);const{matched:h}=i.value;let l;for(;(l=h[c])&&!l.components;)c++;return c}),a=Ce(()=>i.value.matched[s.value]);Of(T0,Ce(()=>s.value+1)),Of(W2,a),Of(qp,i);const u=j();return Ne(()=>[u.value,a.value,t.name],([c,h,l],[d,f,_])=>{h&&(h.instances[l]=c,f&&f!==h&&c&&c===d&&(h.leaveGuards.size||(h.leaveGuards=f.leaveGuards),h.updateGuards.size||(h.updateGuards=f.updateGuards))),c&&h&&(!f||!_l(h,f)||!d)&&(h.enterCallbacks[l]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=i.value,h=t.name,l=a.value,d=l&&l.components[h];if(!d)return R0(n.default,{Component:d,route:c});const f=l.props[h],_=f?f===!0?c.params:typeof f=="function"?f(c):f:null,b=Ac(d,Zt({},_,e,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(l.instances[h]=null)},ref:u}));return R0(n.default,{Component:b,route:c})||b}}});function R0(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const Q2=X2;function J2(t){const e=$2(t.routes,t),n=t.parseQuery||U2,r=t.stringifyQuery||S0,i=t.history,o=eu(),s=eu(),a=eu(),u=_a(as);let c=as;qa&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=zh.bind(null,ie=>""+ie),l=zh.bind(null,c2),d=zh.bind(null,tc);function f(ie,le){let pe,Se;return Cw(ie)?(pe=e.getRecordMatcher(ie),Se=le):Se=ie,e.addRoute(Se,pe)}function _(ie){const le=e.getRecordMatcher(ie);le&&e.removeRoute(le)}function g(){return e.getRoutes().map(ie=>ie.record)}function b(ie){return!!e.getRecordMatcher(ie)}function y(ie,le){if(le=Zt({},le||u.value),typeof ie=="string"){const Y=qh(n,ie,le.path),ee=e.resolve({path:Y.path},le),K=i.createHref(Y.fullPath);return Zt(Y,ee,{params:d(ee.params),hash:tc(Y.hash),redirectedFrom:void 0,href:K})}let pe;if(ie.path!=null)pe=Zt({},ie,{path:qh(n,ie.path,le.path).path});else{const Y=Zt({},ie.params);for(const ee in Y)Y[ee]==null&&delete Y[ee];pe=Zt({},ie,{params:l(Y)}),le.params=l(le.params)}const Se=e.resolve(pe,le),Ie=ie.hash||"";Se.params=h(d(Se.params));const z=h2(r,Zt({},ie,{hash:a2(Ie),path:Se.path})),P=i.createHref(z);return Zt({fullPath:z,hash:Ie,query:r===S0?j2(ie.query):ie.query||{}},Se,{redirectedFrom:void 0,href:P})}function w(ie){return typeof ie=="string"?qh(n,ie,u.value.path):Zt({},ie)}function A(ie,le){if(c!==ie)return vl(8,{from:le,to:ie})}function k(ie){return L(ie)}function R(ie){return k(Zt(w(ie),{replace:!0}))}function C(ie){const le=ie.matched[ie.matched.length-1];if(le&&le.redirect){const{redirect:pe}=le;let Se=typeof pe=="function"?pe(ie):pe;return typeof Se=="string"&&(Se=Se.includes("?")||Se.includes("#")?Se=w(Se):{path:Se},Se.params={}),Zt({query:ie.query,hash:ie.hash,params:Se.path!=null?{}:ie.params},Se)}}function L(ie,le){const pe=c=y(ie),Se=u.value,Ie=ie.state,z=ie.force,P=ie.replace===!0,Y=C(pe);if(Y)return L(Zt(w(Y),{state:typeof Y=="object"?Zt({},Ie,Y.state):Ie,force:z,replace:P}),le||pe);const ee=pe;ee.redirectedFrom=le;let K;return!z&&p2(r,Se,pe)&&(K=vl(16,{to:ee,from:Se}),be(Se,Se,!0,!1)),(K?Promise.resolve(K):U(ee,Se)).catch(x=>Io(x)?Io(x,2)?x:q(x):oe(x,ee,Se)).then(x=>{if(x){if(Io(x,2))return L(Zt({replace:P},w(x.to),{state:typeof x.to=="object"?Zt({},Ie,x.to.state):Ie,force:z}),le||ee)}else x=D(ee,Se,!0,P,Ie);return ne(ee,Se,x),x})}function M(ie,le){const pe=A(ie,le);return pe?Promise.reject(pe):Promise.resolve()}function $(ie){const le=ge.values().next().value;return le&&typeof le.runWithContext=="function"?le.runWithContext(ie):ie()}function U(ie,le){let pe;const[Se,Ie,z]=Z2(ie,le);pe=Gh(Se.reverse(),"beforeRouteLeave",ie,le);for(const Y of Se)Y.leaveGuards.forEach(ee=>{pe.push(gs(ee,ie,le))});const P=M.bind(null,ie,le);return pe.push(P),ye(pe).then(()=>{pe=[];for(const Y of o.list())pe.push(gs(Y,ie,le));return pe.push(P),ye(pe)}).then(()=>{pe=Gh(Ie,"beforeRouteUpdate",ie,le);for(const Y of Ie)Y.updateGuards.forEach(ee=>{pe.push(gs(ee,ie,le))});return pe.push(P),ye(pe)}).then(()=>{pe=[];for(const Y of z)if(Y.beforeEnter)if(Ki(Y.beforeEnter))for(const ee of Y.beforeEnter)pe.push(gs(ee,ie,le));else pe.push(gs(Y.beforeEnter,ie,le));return pe.push(P),ye(pe)}).then(()=>(ie.matched.forEach(Y=>Y.enterCallbacks={}),pe=Gh(z,"beforeRouteEnter",ie,le,$),pe.push(P),ye(pe))).then(()=>{pe=[];for(const Y of s.list())pe.push(gs(Y,ie,le));return pe.push(P),ye(pe)}).catch(Y=>Io(Y,8)?Y:Promise.reject(Y))}function ne(ie,le,pe){a.list().forEach(Se=>$(()=>Se(ie,le,pe)))}function D(ie,le,pe,Se,Ie){const z=A(ie,le);if(z)return z;const P=le===as,Y=qa?history.state:{};pe&&(Se||P?i.replace(ie.fullPath,Zt({scroll:P&&Y&&Y.scroll},Ie)):i.push(ie.fullPath,Ie)),u.value=ie,be(ie,le,pe,P),q()}let Q;function N(){Q||(Q=i.listen((ie,le,pe)=>{if(!Ae.listening)return;const Se=y(ie),Ie=C(Se);if(Ie){L(Zt(Ie,{replace:!0,force:!0}),Se).catch(xu);return}c=Se;const z=u.value;qa&&S2(h0(z.fullPath,pe.delta),Jd()),U(Se,z).catch(P=>Io(P,12)?P:Io(P,2)?(L(Zt(w(P.to),{force:!0}),Se).then(Y=>{Io(Y,20)&&!pe.delta&&pe.type===nc.pop&&i.go(-1,!1)}).catch(xu),Promise.reject()):(pe.delta&&i.go(-pe.delta,!1),oe(P,Se,z))).then(P=>{P=P||D(Se,z,!1),P&&(pe.delta&&!Io(P,8)?i.go(-pe.delta,!1):pe.type===nc.pop&&Io(P,20)&&i.go(-1,!1)),ne(Se,z,P)}).catch(xu)}))}let W=eu(),V=eu(),B;function oe(ie,le,pe){q(ie);const Se=V.list();return Se.length?Se.forEach(Ie=>Ie(ie,le,pe)):console.error(ie),Promise.reject(ie)}function se(){return B&&u.value!==as?Promise.resolve():new Promise((ie,le)=>{W.add([ie,le])})}function q(ie){return B||(B=!ie,N(),W.list().forEach(([le,pe])=>ie?pe(ie):le()),W.reset()),ie}function be(ie,le,pe,Se){const{scrollBehavior:Ie}=t;if(!qa||!Ie)return Promise.resolve();const z=!pe&&T2(h0(ie.fullPath,0))||(Se||!pe)&&history.state&&history.state.scroll||null;return Lt().then(()=>Ie(ie,le,z)).then(P=>P&&w2(P)).catch(P=>oe(P,ie,le))}const Te=ie=>i.go(ie);let he;const ge=new Set,Ae={currentRoute:u,listening:!0,addRoute:f,removeRoute:_,clearRoutes:e.clearRoutes,hasRoute:b,getRoutes:g,resolve:y,options:t,push:k,replace:R,go:Te,back:()=>Te(-1),forward:()=>Te(1),beforeEach:o.add,beforeResolve:s.add,afterEach:a.add,onError:V.add,isReady:se,install(ie){const le=this;ie.component("RouterLink",G2),ie.component("RouterView",Q2),ie.config.globalProperties.$router=le,Object.defineProperty(ie.config.globalProperties,"$route",{enumerable:!0,get:()=>_e(u)}),qa&&!he&&u.value===as&&(he=!0,k(i.location).catch(Ie=>{}));const pe={};for(const Ie in as)Object.defineProperty(pe,Ie,{get:()=>u.value[Ie],enumerable:!0});ie.provide(Zd,le),ie.provide(_g,hb(pe)),ie.provide(qp,u);const Se=ie.unmount;ge.add(ie),ie.unmount=function(){ge.delete(ie),ge.size<1&&(c=as,Q&&Q(),Q=null,u.value=as,he=!1,B=!1),Se()}}};function ye(ie){return ie.reduce((le,pe)=>le.then(()=>$(pe)),Promise.resolve())}return Ae}function Z2(t,e){const n=[],r=[],i=[],o=Math.max(e.matched.length,t.matched.length);for(let s=0;s<o;s++){const a=e.matched[s];a&&(t.matched.find(c=>_l(c,a))?r.push(a):n.push(a));const u=t.matched[s];u&&(e.matched.find(c=>_l(c,u))||i.push(u))}return[n,r,i]}function Pl(){return Yr(Zd)}function Il(t){return Yr(_g)}const eP=["href","rel","target"],Ow={__name:"AppLink",props:{to:{type:String,required:!0},rel:{type:String,default:null},target:{type:String,default:null},params:{type:String,default:null}},setup(t){const e=Il(),n=t,r=u=>typeof u=="string"&&(u.startsWith("http")||u.startsWith("mailto:")||u.startsWith("tel:")),i=Ce(()=>r(n.to)||n.target==="_blank"||n.to.includes("tel:")||n.to.includes("mailto:")),o=Ce(()=>typeof n.target=="string"?n.target:i.value?"_blank":"_self"),s=()=>{typeof window<"u"&&e.fullPath===n.to&&window.location.reload()},a=Ce(()=>n.params?n.to+n.params:n.to);return(u,c)=>{const h=lg("router-link");return _e(i)?(ae(),me("a",{key:0,href:_e(a),rel:t.rel,target:_e(o),"c-cursor":"no-custom",class:"link"},[Do(u.$slots,"default")],8,eP)):(ae(),Kt(h,{key:1,to:_e(a),"c-cursor":"no-custom",class:"link",onClick:s},{default:Di(()=>[Do(u.$slots,"default")]),_:3},8,["to"]))}}},tP=!0,pi=()=>typeof window<"u",nP=()=>typeof document<"u"&&!!document.body,Mw=!pi(),rP=()=>pi(),ya=pi()?window.navigator.userAgent:"",iP=pi()?window.location.href:"",Fw=pi()?window.location.search:"",oP=pi()?window.safari:!1,vg=pi()?navigator.vendor:"",x0=pi()?navigator.platform:"",yg=pi()?navigator.maxTouchPoints:0,sP=yg>1,qn=ya.toLowerCase(),aP=new URLSearchParams(Fw),lP=qn.includes("mac"),uP=qn.includes("windows"),Dw=/apple/i.test(vg)||oP,cP=/firefox/.test(qn),fP=/edge\/\d+/.test(ya),dP=qn.includes("trident")&&ya.includes("rv:11"),bg=/(iphone|ipod)/.test(qn),wg=/(ipad)/.test(qn)||x0==="iPad"||!bg&&/MacIntel/.test(x0)&&yg>0,xc=bg||wg,Sg=/(android)/.test(qn),eh=wg||/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(qn),th=xc||eh||Sg,nh=!th,hP=th&&!eh,pP=th&&!eh,mP=!xc&&Dw&&!yg,Tg=/fban\/messengerforios/.test(qn)||/fb_iab\/messenger/.test(qn),$w=!1,gP=/(fban|fbav)/.test(qn)&&!Tg&&!$w,_P=/instagram/.test(qn),vP=/micromessenger/.test(qn),yP=/weibo/.test(qn),bP=/ucbrowser/.test(qn),wP=/samsung/.test(qn),SP=/(crios|fxios|opios|mercury|ucbrowser|fbav|fban|instagram)/.test(qn),TP=/(opera|ucbrowser|samsung|fbav|fban|instagram)/.test(qn),EP=xc&&!SP,kP=xc&&/crios/.test(qn),AP=Sg&&!TP&&/chrome/.test(qn)&&!Tg,RP=nh&&/Chrome/.test(ya)&&/Google Inc/.test(vg)&&!/Edg/.test(ya),xP=nh&&/Chrome/.test(ya)&&/Google Inc/.test(vg)&&/Edg/.test(ya),CP=!1,PP="https://graphql.kontent.ai/",IP="null",Hw="4bb91847-d552-009a-ce6f-52272156c6c2",LP=!1,OP=PP+Hw,MP="https://videos.breakthroughenergy.org/bevideos/video/fetch/w_1308/q_auto/ar_16:9/",FP="",DP="https://videos.breakthroughenergy.org/bevideos/",$P=2,HP=pi()?Math.min(window.devicePixelRatio||1,$P):1,NP=async function(){},lt={get hasDocument(){return nP()},get hasWindow(){return pi()},get isClient(){return rP()},window:pi()?window:{},isSSR:Mw,touchScreen:sP,mobile:th,tablet:eh,desktop:nh,phone:hP,mac:lP,windows:uP,href:iP,queryString:Fw,urlParams:aP,pixelRatio:HP,ios:xc,iphone:bg,ipad:wg,android:Sg,learnMobile:pP,facebook_video_ad:$w,facebook:gP,messenger:Tg,instagram:_P,wechat:vP,weibo:yP,ucbrowser:bP,samsung:wP,edge:fP,ie11:dP,safari:Dw,ios_safari:EP,ios_chrome:kP,desktop_safari:mP,desktop_chrome:RP,desktop_edge:xP,webp:()=>tP,android_chrome:AP,firefox:cP,init:NP,localhost:CP,graphQLURL:OP,kontentAPIKey:IP,kontentEnvID:Hw,usePreview:LP,cloudinaryVideoURL:MP,cloudinaryAssetURL:FP,videoPrefix:DP};function BP(){if(!pi)return;const t=Mw?null:document.querySelector("html"),e={};for(const n in lt)t&&lt[n]===!0&&t.classList.add(e[n]||n)}BP();function Mo(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Nw(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=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 hi={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},yl={duration:.5,overwrite:!1,delay:0},Eg,hr,bn,xi=1e8,fn=1/xi,Gp=Math.PI*2,VP=Gp/4,UP=0,Bw=Math.sqrt,jP=Math.cos,WP=Math.sin,lr=function(e){return typeof e=="string"},On=function(e){return typeof e=="function"},Jo=function(e){return typeof e=="number"},kg=function(e){return typeof e>"u"},wo=function(e){return typeof e=="object"},Kr=function(e){return e!==!1},Ag=function(){return typeof window<"u"},lf=function(e){return On(e)||lr(e)},Vw=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Cr=Array.isArray,Yp=/(?:-?\.?\d|\.)+/gi,Uw=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Ja=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Yh=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,jw=/[+-]=-?[.\d]+/,Ww=/[^,'"\[\]\s]+/gi,zP=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,En,lo,Kp,Rg,mi={},pd={},zw,qw=function(e){return(pd=bl(e,mi))&&ti},xg=function(e,n){return console.warn("Invalid property",e,"set to",n,"Missing plugin? gsap.registerPlugin()")},rc=function(e,n){return!n&&console.warn(e)},Gw=function(e,n){return e&&(mi[e]=n)&&pd&&(pd[e]=n)||mi},ic=function(){return 0},qP={suppressEvents:!0,isStart:!0,kill:!1},$f={suppressEvents:!0,kill:!1},GP={suppressEvents:!0},Cg={},As=[],Xp={},Yw,si={},Kh={},C0=30,Hf=[],Pg="",Ig=function(e){var n=e[0],r,i;if(wo(n)||On(n)||(e=[e]),!(r=(n._gsap||{}).harness)){for(i=Hf.length;i--&&!Hf[i].targetTest(n););r=Hf[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new vS(e[i],r)))||e.splice(i,1);return e},la=function(e){return e._gsap||Ig(Ci(e))[0]._gsap},Kw=function(e,n,r){return(r=e[n])&&On(r)?e[n]():kg(r)&&e.getAttribute&&e.getAttribute(n)||r},Xr=function(e,n){return(e=e.split(",")).forEach(n)||e},Dn=function(e){return Math.round(e*1e5)/1e5||0},jn=function(e){return Math.round(e*1e7)/1e7||0},sl=function(e,n){var r=n.charAt(0),i=parseFloat(n.substr(2));return e=parseFloat(e),r==="+"?e+i:r==="-"?e-i:r==="*"?e*i:e/i},YP=function(e,n){for(var r=n.length,i=0;e.indexOf(n[i])<0&&++i<r;);return i<r},md=function(){var e=As.length,n=As.slice(0),r,i;for(Xp={},As.length=0,r=0;r<e;r++)i=n[r],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},Lg=function(e){return!!(e._initted||e._startAt||e.add)},Xw=function(e,n,r,i){As.length&&!hr&&md(),e.render(n,r,!!(hr&&n<0&&Lg(e))),As.length&&!hr&&md()},Qw=function(e){var n=parseFloat(e);return(n||n===0)&&(e+"").match(Ww).length<2?n:lr(e)?e.trim():e},Jw=function(e){return e},gi=function(e,n){for(var r in n)r in e||(e[r]=n[r]);return e},KP=function(e){return function(n,r){for(var i in r)i in n||i==="duration"&&e||i==="ease"||(n[i]=r[i])}},bl=function(e,n){for(var r in n)e[r]=n[r];return e},P0=function t(e,n){for(var r in n)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(e[r]=wo(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},gd=function(e,n){var r={},i;for(i in e)i in n||(r[i]=e[i]);return r},Pu=function(e){var n=e.parent||En,r=e.keyframes?KP(Cr(e.keyframes)):gi;if(Kr(e.inherit))for(;n;)r(e,n.vars.defaults),n=n.parent||n._dp;return e},XP=function(e,n){for(var r=e.length,i=r===n.length;i&&r--&&e[r]===n[r];);return r<0},Zw=function(e,n,r,i,o){var s=e[i],a;if(o)for(a=n[o];s&&s[o]>a;)s=s._prev;return s?(n._next=s._next,s._next=n):(n._next=e[r],e[r]=n),n._next?n._next._prev=n:e[i]=n,n._prev=s,n.parent=n._dp=e,n},rh=function(e,n,r,i){r===void 0&&(r="_first"),i===void 0&&(i="_last");var o=n._prev,s=n._next;o?o._next=s:e[r]===n&&(e[r]=s),s?s._prev=o:e[i]===n&&(e[i]=o),n._next=n._prev=n.parent=null},Is=function(e,n){e.parent&&(!n||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},ua=function(e,n){if(e&&(!n||n._end>e._dur||n._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},QP=function(e){for(var n=e.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return e},Qp=function(e,n,r,i){return e._startAt&&(hr?e._startAt.revert($f):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(n,!0,i))},JP=function t(e){return!e||e._ts&&t(e.parent)},I0=function(e){return e._repeat?wl(e._tTime,e=e.duration()+e._rDelay)*e:0},wl=function(e,n){var r=Math.floor(e=jn(e/n));return e&&r===e?r-1:r},_d=function(e,n){return(e-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},ih=function(e){return e._end=jn(e._start+(e._tDur/Math.abs(e._ts||e._rts||fn)||0))},oh=function(e,n){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=jn(r._time-(e._ts>0?n/e._ts:((e._dirty?e.totalDuration():e._tDur)-n)/-e._ts)),ih(e),r._dirty||ua(r,e)),e},eS=function(e,n){var r;if((n._time||!n._dur&&n._initted||n._start<e._time&&(n._dur||!n.add))&&(r=_d(e.rawTime(),n),(!n._dur||Cc(0,n.totalDuration(),r)-n._tTime>fn)&&n.render(r,!0)),ua(e,n)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-fn}},ho=function(e,n,r,i){return n.parent&&Is(n),n._start=jn((Jo(r)?r:r||e!==En?Ei(e,r,n):e._time)+n._delay),n._end=jn(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),Zw(e,n,"_first","_last",e._sort?"_start":0),Jp(n)||(e._recent=n),i||eS(e,n),e._ts<0&&oh(e,e._tTime),e},tS=function(e,n){return(mi.ScrollTrigger||xg("scrollTrigger",n))&&mi.ScrollTrigger.create(n,e)},nS=function(e,n,r,i,o){if(Mg(e,n,o),!e._initted)return 1;if(!r&&e._pt&&!hr&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Yw!==li.frame)return As.push(e),e._lazy=[o,i],1},ZP=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},Jp=function(e){var n=e.data;return n==="isFromStart"||n==="isStart"},eI=function(e,n,r,i){var o=e.ratio,s=n<0||!n&&(!e._start&&ZP(e)&&!(!e._initted&&Jp(e))||(e._ts<0||e._dp._ts<0)&&!Jp(e))?0:1,a=e._rDelay,u=0,c,h,l;if(a&&e._repeat&&(u=Cc(0,e._tDur,n),h=wl(u,a),e._yoyo&&h&1&&(s=1-s),h!==wl(e._tTime,a)&&(o=1-s,e.vars.repeatRefresh&&e._initted&&e.invalidate())),s!==o||hr||i||e._zTime===fn||!n&&e._zTime){if(!e._initted&&nS(e,n,i,r,u))return;for(l=e._zTime,e._zTime=n||(r?fn:0),r||(r=n&&!l),e.ratio=s,e._from&&(s=1-s),e._time=0,e._tTime=u,c=e._pt;c;)c.r(s,c.d),c=c._next;n<0&&Qp(e,n,r,!0),e._onUpdate&&!r&&fi(e,"onUpdate"),u&&e._repeat&&!r&&e.parent&&fi(e,"onRepeat"),(n>=e._tDur||n<0)&&e.ratio===s&&(s&&Is(e,1),!r&&!hr&&(fi(e,s?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=n)},tI=function(e,n,r){var i;if(r>n)for(i=e._first;i&&i._start<=r;){if(i.data==="isPause"&&i._start>n)return i;i=i._next}else for(i=e._last;i&&i._start>=r;){if(i.data==="isPause"&&i._start<n)return i;i=i._prev}},Sl=function(e,n,r,i){var o=e._repeat,s=jn(n)||0,a=e._tTime/e._tDur;return a&&!i&&(e._time*=s/e._dur),e._dur=s,e._tDur=o?o<0?1e10:jn(s*(o+1)+e._rDelay*o):s,a>0&&!i&&oh(e,e._tTime=e._tDur*a),e.parent&&ih(e),r||ua(e.parent,e),e},L0=function(e){return e instanceof Vr?ua(e):Sl(e,e._dur)},nI={_start:0,endTime:ic,totalDuration:ic},Ei=function t(e,n,r){var i=e.labels,o=e._recent||nI,s=e.duration()>=xi?o.endTime(!1):e._dur,a,u,c;return lr(n)&&(isNaN(n)||n in i)?(u=n.charAt(0),c=n.substr(-1)==="%",a=n.indexOf("="),u==="<"||u===">"?(a>=0&&(n=n.replace(/=/,"")),(u==="<"?o._start:o.endTime(o._repeat>=0))+(parseFloat(n.substr(1))||0)*(c?(a<0?o:r).totalDuration()/100:1)):a<0?(n in i||(i[n]=s),i[n]):(u=parseFloat(n.charAt(a-1)+n.substr(a+1)),c&&r&&(u=u/100*(Cr(r)?r[0]:r).totalDuration()),a>1?t(e,n.substr(0,a-1),r)+u:s+u)):n==null?s:+n},Iu=function(e,n,r){var i=Jo(n[1]),o=(i?2:1)+(e<2?0:1),s=n[o],a,u;if(i&&(s.duration=n[1]),s.parent=r,e){for(a=s,u=r;u&&!("immediateRender"in a);)a=u.vars.defaults||{},u=Kr(u.vars.inherit)&&u.parent;s.immediateRender=Kr(a.immediateRender),e<2?s.runBackwards=1:s.startAt=n[o-1]}return new Un(n[0],s,n[o+1])},Hs=function(e,n){return e||e===0?n(e):n},Cc=function(e,n,r){return r<e?e:r>n?n:r},kr=function(e,n){return!lr(e)||!(n=zP.exec(e))?"":n[1]},rI=function(e,n,r){return Hs(r,function(i){return Cc(e,n,i)})},Zp=[].slice,rS=function(e,n){return e&&wo(e)&&"length"in e&&(!n&&!e.length||e.length-1 in e&&wo(e[0]))&&!e.nodeType&&e!==lo},iI=function(e,n,r){return r===void 0&&(r=[]),e.forEach(function(i){var o;return lr(i)&&!n||rS(i,1)?(o=r).push.apply(o,Ci(i)):r.push(i)})||r},Ci=function(e,n,r){return bn&&!n&&bn.selector?bn.selector(e):lr(e)&&!r&&(Kp||!Tl())?Zp.call((n||Rg).querySelectorAll(e),0):Cr(e)?iI(e,r):rS(e)?Zp.call(e,0):e?[e]:[]},em=function(e){return e=Ci(e)[0]||rc("Invalid scope")||{},function(n){var r=e.current||e.nativeElement||e;return Ci(n,r.querySelectorAll?r:r===e?rc("Invalid scope")||Rg.createElement("div"):e)}},iS=function(e){return e.sort(function(){return .5-Math.random()})},oS=function(e){if(On(e))return e;var n=wo(e)?e:{each:e},r=ca(n.ease),i=n.from||0,o=parseFloat(n.base)||0,s={},a=i>0&&i<1,u=isNaN(i)||a,c=n.axis,h=i,l=i;return lr(i)?h=l={center:.5,edges:.5,end:1}[i]||0:!a&&u&&(h=i[0],l=i[1]),function(d,f,_){var g=(_||n).length,b=s[g],y,w,A,k,R,C,L,M,$;if(!b){if($=n.grid==="auto"?0:(n.grid||[1,xi])[1],!$){for(L=-xi;L<(L=_[$++].getBoundingClientRect().left)&&$<g;);$<g&&$--}for(b=s[g]=[],y=u?Math.min($,g)*h-.5:i%$,w=$===xi?0:u?g*l/$-.5:i/$|0,L=0,M=xi,C=0;C<g;C++)A=C%$-y,k=w-(C/$|0),b[C]=R=c?Math.abs(c==="y"?k:A):Bw(A*A+k*k),R>L&&(L=R),R<M&&(M=R);i==="random"&&iS(b),b.max=L-M,b.min=M,b.v=g=(parseFloat(n.amount)||parseFloat(n.each)*($>g?g-1:c?c==="y"?g/$:$:Math.max($,g/$))||0)*(i==="edges"?-1:1),b.b=g<0?o-g:o,b.u=kr(n.amount||n.each)||0,r=r&&g<0?mS(r):r}return g=(b[d]-b.min)/b.max||0,jn(b.b+(r?r(g):g)*b.v)+b.u}},tm=function(e){var n=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var i=jn(Math.round(parseFloat(r)/e)*e*n);return(i-i%1)/n+(Jo(r)?0:kr(r))}},sS=function(e,n){var r=Cr(e),i,o;return!r&&wo(e)&&(i=r=e.radius||xi,e.values?(e=Ci(e.values),(o=!Jo(e[0]))&&(i*=i)):e=tm(e.increment)),Hs(n,r?On(e)?function(s){return o=e(s),Math.abs(o-s)<=i?o:s}:function(s){for(var a=parseFloat(o?s.x:s),u=parseFloat(o?s.y:0),c=xi,h=0,l=e.length,d,f;l--;)o?(d=e[l].x-a,f=e[l].y-u,d=d*d+f*f):d=Math.abs(e[l]-a),d<c&&(c=d,h=l);return h=!i||c<=i?e[h]:s,o||h===s||Jo(s)?h:h+kr(s)}:tm(e))},aS=function(e,n,r,i){return Hs(Cr(e)?!n:r===!0?!!(r=0):!i,function(){return Cr(e)?e[~~(Math.random()*e.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(n-e+r*.99))/r)*r*i)/i})},oI=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(i){return n.reduce(function(o,s){return s(o)},i)}},sI=function(e,n){return function(r){return e(parseFloat(r))+(n||kr(r))}},aI=function(e,n,r){return uS(e,n,0,1,r)},lS=function(e,n,r){return Hs(r,function(i){return e[~~n(i)]})},lI=function t(e,n,r){var i=n-e;return Cr(e)?lS(e,t(0,e.length),n):Hs(r,function(o){return(i+(o-e)%i)%i+e})},uI=function t(e,n,r){var i=n-e,o=i*2;return Cr(e)?lS(e,t(0,e.length-1),n):Hs(r,function(s){return s=(o+(s-e)%o)%o||0,e+(s>i?o-s:s)})},oc=function(e){for(var n=0,r="",i,o,s,a;~(i=e.indexOf("random(",n));)s=e.indexOf(")",i),a=e.charAt(i+7)==="[",o=e.substr(i+7,s-i-7).match(a?Ww:Yp),r+=e.substr(n,i-n)+aS(a?o:+o[0],a?0:+o[1],+o[2]||1e-5),n=s+1;return r+e.substr(n,e.length-n)},uS=function(e,n,r,i,o){var s=n-e,a=i-r;return Hs(o,function(u){return r+((u-e)/s*a||0)})},cI=function t(e,n,r,i){var o=isNaN(e+n)?0:function(f){return(1-f)*e+f*n};if(!o){var s=lr(e),a={},u,c,h,l,d;if(r===!0&&(i=1)&&(r=null),s)e={p:e},n={p:n};else if(Cr(e)&&!Cr(n)){for(h=[],l=e.length,d=l-2,c=1;c<l;c++)h.push(t(e[c-1],e[c]));l--,o=function(_){_*=l;var g=Math.min(d,~~_);return h[g](_-g)},r=n}else i||(e=bl(Cr(e)?[]:{},e));if(!h){for(u in n)Og.call(a,e,u,"get",n[u]);o=function(_){return $g(_,a)||(s?e.p:e)}}}return Hs(r,o)},O0=function(e,n,r){var i=e.labels,o=xi,s,a,u;for(s in i)a=i[s]-n,a<0==!!r&&a&&o>(a=Math.abs(a))&&(u=s,o=a);return u},fi=function(e,n,r){var i=e.vars,o=i[n],s=bn,a=e._ctx,u,c,h;if(o)return u=i[n+"Params"],c=i.callbackScope||e,r&&As.length&&md(),a&&(bn=a),h=u?o.apply(c,u):o.call(c),bn=s,h},du=function(e){return Is(e),e.scrollTrigger&&e.scrollTrigger.kill(!!hr),e.progress()<1&&fi(e,"onInterrupt"),e},Za,cS=[],fS=function(e){if(e)if(e=!e.name&&e.default||e,Ag()||e.headless){var n=e.name,r=On(e),i=n&&!r&&e.init?function(){this._props=[]}:e,o={init:ic,render:$g,add:Og,kill:AI,modifier:kI,rawVars:0},s={targetTest:0,get:0,getSetter:Dg,aliases:{},register:0};if(Tl(),e!==i){if(si[n])return;gi(i,gi(gd(e,o),s)),bl(i.prototype,bl(o,gd(e,s))),si[i.prop=n]=i,e.targetTest&&(Hf.push(i),Cg[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}Gw(n,i),e.register&&e.register(ti,i,Qr)}else cS.push(e)},cn=255,hu={aqua:[0,cn,cn],lime:[0,cn,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,cn],navy:[0,0,128],white:[cn,cn,cn],olive:[128,128,0],yellow:[cn,cn,0],orange:[cn,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[cn,0,0],pink:[cn,192,203],cyan:[0,cn,cn],transparent:[cn,cn,cn,0]},Xh=function(e,n,r){return e+=e<0?1:e>1?-1:0,(e*6<1?n+(r-n)*e*6:e<.5?r:e*3<2?n+(r-n)*(2/3-e)*6:n)*cn+.5|0},dS=function(e,n,r){var i=e?Jo(e)?[e>>16,e>>8&cn,e&cn]:0:hu.black,o,s,a,u,c,h,l,d,f,_;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),hu[e])i=hu[e];else if(e.charAt(0)==="#"){if(e.length<6&&(o=e.charAt(1),s=e.charAt(2),a=e.charAt(3),e="#"+o+o+s+s+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&cn,i&cn,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&cn,e&cn]}else if(e.substr(0,3)==="hsl"){if(i=_=e.match(Yp),!n)u=+i[0]%360/360,c=+i[1]/100,h=+i[2]/100,s=h<=.5?h*(c+1):h+c-h*c,o=h*2-s,i.length>3&&(i[3]*=1),i[0]=Xh(u+1/3,o,s),i[1]=Xh(u,o,s),i[2]=Xh(u-1/3,o,s);else if(~e.indexOf("="))return i=e.match(Uw),r&&i.length<4&&(i[3]=1),i}else i=e.match(Yp)||hu.transparent;i=i.map(Number)}return n&&!_&&(o=i[0]/cn,s=i[1]/cn,a=i[2]/cn,l=Math.max(o,s,a),d=Math.min(o,s,a),h=(l+d)/2,l===d?u=c=0:(f=l-d,c=h>.5?f/(2-l-d):f/(l+d),u=l===o?(s-a)/f+(s<a?6:0):l===s?(a-o)/f+2:(o-s)/f+4,u*=60),i[0]=~~(u+.5),i[1]=~~(c*100+.5),i[2]=~~(h*100+.5)),r&&i.length<4&&(i[3]=1),i},hS=function(e){var n=[],r=[],i=-1;return e.split(Rs).forEach(function(o){var s=o.match(Ja)||[];n.push.apply(n,s),r.push(i+=s.length+1)}),n.c=r,n},M0=function(e,n,r){var i="",o=(e+i).match(Rs),s=n?"hsla(":"rgba(",a=0,u,c,h,l;if(!o)return e;if(o=o.map(function(d){return(d=dS(d,n,1))&&s+(n?d[0]+","+d[1]+"%,"+d[2]+"%,"+d[3]:d.join(","))+")"}),r&&(h=hS(e),u=r.c,u.join(i)!==h.c.join(i)))for(c=e.replace(Rs,"1").split(Ja),l=c.length-1;a<l;a++)i+=c[a]+(~u.indexOf(a)?o.shift()||s+"0,0,0,0)":(h.length?h:o.length?o:r).shift());if(!c)for(c=e.split(Rs),l=c.length-1;a<l;a++)i+=c[a]+o[a];return i+c[l]},Rs=function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in hu)t+="|"+e+"\\b";return new RegExp(t+")","gi")}(),fI=/hsl[a]?\(/,pS=function(e){var n=e.join(" "),r;if(Rs.lastIndex=0,Rs.test(n))return r=fI.test(n),e[1]=M0(e[1],r),e[0]=M0(e[0],r,hS(e[1])),!0},sc,li=function(){var t=Date.now,e=500,n=33,r=t(),i=r,o=1e3/240,s=o,a=[],u,c,h,l,d,f,_=function g(b){var y=t()-i,w=b===!0,A,k,R,C;if((y>e||y<0)&&(r+=y-n),i+=y,R=i-r,A=R-s,(A>0||w)&&(C=++l.frame,d=R-l.time*1e3,l.time=R=R/1e3,s+=A+(A>=o?4:o-A),k=1),w||(u=c(g)),k)for(f=0;f<a.length;f++)a[f](R,d,C,b)};return l={time:0,frame:0,tick:function(){_(!0)},deltaRatio:function(b){return d/(1e3/(b||60))},wake:function(){zw&&(!Kp&&Ag()&&(lo=Kp=window,Rg=lo.document||{},mi.gsap=ti,(lo.gsapVersions||(lo.gsapVersions=[])).push(ti.version),qw(pd||lo.GreenSockGlobals||!lo.gsap&&lo||{}),cS.forEach(fS)),h=typeof requestAnimationFrame<"u"&&requestAnimationFrame,u&&l.sleep(),c=h||function(b){return setTimeout(b,s-l.time*1e3+1|0)},sc=1,_(2))},sleep:function(){(h?cancelAnimationFrame:clearTimeout)(u),sc=0,c=ic},lagSmoothing:function(b,y){e=b||1/0,n=Math.min(y||33,e)},fps:function(b){o=1e3/(b||240),s=l.time*1e3+o},add:function(b,y,w){var A=y?function(k,R,C,L){b(k,R,C,L),l.remove(A)}:b;return l.remove(b),a[w?"unshift":"push"](A),Tl(),A},remove:function(b,y){~(y=a.indexOf(b))&&a.splice(y,1)&&f>=y&&f--},_listeners:a},l}(),Tl=function(){return!sc&&li.wake()},Dt={},dI=/^[\d.\-M][\d.\-,\s]/,hI=/["']/g,pI=function(e){for(var n={},r=e.substr(1,e.length-3).split(":"),i=r[0],o=1,s=r.length,a,u,c;o<s;o++)u=r[o],a=o!==s-1?u.lastIndexOf(","):u.length,c=u.substr(0,a),n[i]=isNaN(c)?c.replace(hI,"").trim():+c,i=u.substr(a+1).trim();return n},mI=function(e){var n=e.indexOf("(")+1,r=e.indexOf(")"),i=e.indexOf("(",n);return e.substring(n,~i&&i<r?e.indexOf(")",r+1):r)},gI=function(e){var n=(e+"").split("("),r=Dt[n[0]];return r&&n.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[pI(n[1])]:mI(e).split(",").map(Qw)):Dt._CE&&dI.test(e)?Dt._CE("",e):r},mS=function(e){return function(n){return 1-e(1-n)}},gS=function t(e,n){for(var r=e._first,i;r;)r instanceof Vr?t(r,n):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==n&&(r.timeline?t(r.timeline,n):(i=r._ease,r._ease=r._yEase,r._yEase=i,r._yoyo=n)),r=r._next},ca=function(e,n){return e&&(On(e)?e:Dt[e]||gI(e))||n},Ca=function(e,n,r,i){r===void 0&&(r=function(u){return 1-n(1-u)}),i===void 0&&(i=function(u){return u<.5?n(u*2)/2:1-n((1-u)*2)/2});var o={easeIn:n,easeOut:r,easeInOut:i},s;return Xr(e,function(a){Dt[a]=mi[a]=o,Dt[s=a.toLowerCase()]=r;for(var u in o)Dt[s+(u==="easeIn"?".in":u==="easeOut"?".out":".inOut")]=Dt[a+"."+u]=o[u]}),o},_S=function(e){return function(n){return n<.5?(1-e(1-n*2))/2:.5+e((n-.5)*2)/2}},Qh=function t(e,n,r){var i=n>=1?n:1,o=(r||(e?.3:.45))/(n<1?n:1),s=o/Gp*(Math.asin(1/i)||0),a=function(h){return h===1?1:i*Math.pow(2,-10*h)*WP((h-s)*o)+1},u=e==="out"?a:e==="in"?function(c){return 1-a(1-c)}:_S(a);return o=Gp/o,u.config=function(c,h){return t(e,c,h)},u},Jh=function t(e,n){n===void 0&&(n=1.70158);var r=function(s){return s?--s*s*((n+1)*s+n)+1:0},i=e==="out"?r:e==="in"?function(o){return 1-r(1-o)}:_S(r);return i.config=function(o){return t(e,o)},i};Xr("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var n=e<5?e+1:e;Ca(t+",Power"+(n-1),e?function(r){return Math.pow(r,n)}:function(r){return r},function(r){return 1-Math.pow(1-r,n)},function(r){return r<.5?Math.pow(r*2,n)/2:1-Math.pow((1-r)*2,n)/2})});Dt.Linear.easeNone=Dt.none=Dt.Linear.easeIn;Ca("Elastic",Qh("in"),Qh("out"),Qh());(function(t,e){var n=1/e,r=2*n,i=2.5*n,o=function(a){return a<n?t*a*a:a<r?t*Math.pow(a-1.5/e,2)+.75:a<i?t*(a-=2.25/e)*a+.9375:t*Math.pow(a-2.625/e,2)+.984375};Ca("Bounce",function(s){return 1-o(1-s)},o)})(7.5625,2.75);Ca("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)});Ca("Circ",function(t){return-(Bw(1-t*t)-1)});Ca("Sine",function(t){return t===1?1:-jP(t*VP)+1});Ca("Back",Jh("in"),Jh("out"),Jh());Dt.SteppedEase=Dt.steps=mi.SteppedEase={config:function(e,n){e===void 0&&(e=1);var r=1/e,i=e+(n?0:1),o=n?1:0,s=1-fn;return function(a){return((i*Cc(0,s,a)|0)+o)*r}}};yl.ease=Dt["quad.out"];Xr("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return Pg+=t+","+t+"Params,"});var vS=function(e,n){this.id=UP++,e._gsap=this,this.target=e,this.harness=n,this.get=n?n.get:Kw,this.set=n?n.getSetter:Dg},ac=function(){function t(n){this.vars=n,this._delay=+n.delay||0,(this._repeat=n.repeat===1/0?-2:n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase),this._ts=1,Sl(this,+n.duration,1,1),this.data=n.data,bn&&(this._ctx=bn,bn.data.push(this)),sc||li.wake()}var e=t.prototype;return e.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},e.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,Sl(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,i){if(Tl(),!arguments.length)return this._tTime;var o=this._dp;if(o&&o.smoothChildTiming&&this._ts){for(oh(this,r),!o._dp||o.parent||eS(o,this);o&&o.parent;)o.parent._time!==o._start+(o._ts>=0?o._tTime/o._ts:(o.totalDuration()-o._tTime)/-o._ts)&&o.totalTime(o._tTime,!0),o=o.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&ho(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===fn||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),Xw(this,r,i)),this},e.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+I0(this))%(this._dur+this._rDelay)||(r?this._dur:0),i):this._time},e.totalProgress=function(r,i){return arguments.length?this.totalTime(this.totalDuration()*r,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(r,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+I0(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,i){var o=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*o,i):this._repeat?wl(this._tTime,o)+1:1},e.timeScale=function(r,i){if(!arguments.length)return this._rts===-fn?0:this._rts;if(this._rts===r)return this;var o=this.parent&&this._ts?_d(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-fn?0:this._rts,this.totalTime(Cc(-Math.abs(this._delay),this.totalDuration(),o),i!==!1),ih(this),QP(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Tl(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==fn&&(this._tTime-=fn)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=r;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&ho(i,this,r-this._delay),this}return this._start},e.endTime=function(r){return this._start+(Kr(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var i=this.parent||this._dp;return i?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?_d(i.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=GP);var i=hr;return hr=r,Lg(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),hr=i,this},e.globalTime=function(r){for(var i=this,o=arguments.length?r:i.rawTime();i;)o=i._start+o/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(r):o},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,L0(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,L0(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,i){return this.totalTime(Ei(this,r),Kr(i))},e.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,Kr(i)),this._dur||(this._zTime=-fn),this},e.play=function(r,i){return r!=null&&this.seek(r,i),this.reversed(!1).paused(!1)},e.reverse=function(r,i){return r!=null&&this.seek(r||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(r,i){return r!=null&&this.seek(r,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-fn:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-fn,this},e.isActive=function(){var r=this.parent||this._dp,i=this._start,o;return!!(!r||this._ts&&this._initted&&r.isActive()&&(o=r.rawTime(!0))>=i&&o<this.endTime(!0)-fn)},e.eventCallback=function(r,i,o){var s=this.vars;return arguments.length>1?(i?(s[r]=i,o&&(s[r+"Params"]=o),r==="onUpdate"&&(this._onUpdate=i)):delete s[r],this):s[r]},e.then=function(r){var i=this;return new Promise(function(o){var s=On(r)?r:Jw,a=function(){var c=i.then;i.then=null,On(s)&&(s=s(i))&&(s.then||s===i)&&(i.then=c),o(s),i.then=c};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?a():i._prom=a})},e.kill=function(){du(this)},t}();gi(ac.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:-fn,_prom:0,_ps:!1,_rts:1});var Vr=function(t){Nw(e,t);function e(r,i){var o;return r===void 0&&(r={}),o=t.call(this,r)||this,o.labels={},o.smoothChildTiming=!!r.smoothChildTiming,o.autoRemoveChildren=!!r.autoRemoveChildren,o._sort=Kr(r.sortChildren),En&&ho(r.parent||En,Mo(o),i),r.reversed&&o.reverse(),r.paused&&o.paused(!0),r.scrollTrigger&&tS(Mo(o),r.scrollTrigger),o}var n=e.prototype;return n.to=function(i,o,s){return Iu(0,arguments,this),this},n.from=function(i,o,s){return Iu(1,arguments,this),this},n.fromTo=function(i,o,s,a){return Iu(2,arguments,this),this},n.set=function(i,o,s){return o.duration=0,o.parent=this,Pu(o).repeatDelay||(o.repeat=0),o.immediateRender=!!o.immediateRender,new Un(i,o,Ei(this,s),1),this},n.call=function(i,o,s){return ho(this,Un.delayedCall(0,i,o),s)},n.staggerTo=function(i,o,s,a,u,c,h){return s.duration=o,s.stagger=s.stagger||a,s.onComplete=c,s.onCompleteParams=h,s.parent=this,new Un(i,s,Ei(this,u)),this},n.staggerFrom=function(i,o,s,a,u,c,h){return s.runBackwards=1,Pu(s).immediateRender=Kr(s.immediateRender),this.staggerTo(i,o,s,a,u,c,h)},n.staggerFromTo=function(i,o,s,a,u,c,h,l){return a.startAt=s,Pu(a).immediateRender=Kr(a.immediateRender),this.staggerTo(i,o,a,u,c,h,l)},n.render=function(i,o,s){var a=this._time,u=this._dirty?this.totalDuration():this._tDur,c=this._dur,h=i<=0?0:jn(i),l=this._zTime<0!=i<0&&(this._initted||!c),d,f,_,g,b,y,w,A,k,R,C,L;if(this!==En&&h>u&&i>=0&&(h=u),h!==this._tTime||s||l){if(a!==this._time&&c&&(h+=this._time-a,i+=this._time-a),d=h,k=this._start,A=this._ts,y=!A,l&&(c||(a=this._zTime),(i||!o)&&(this._zTime=i)),this._repeat){if(C=this._yoyo,b=c+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(b*100+i,o,s);if(d=jn(h%b),h===u?(g=this._repeat,d=c):(R=jn(h/b),g=~~R,g&&g===R&&(d=c,g--),d>c&&(d=c)),R=wl(this._tTime,b),!a&&this._tTime&&R!==g&&this._tTime-R*b-this._dur<=0&&(R=g),C&&g&1&&(d=c-d,L=1),g!==R&&!this._lock){var M=C&&R&1,$=M===(C&&g&1);if(g<R&&(M=!M),a=M?0:h%c?c:h,this._lock=1,this.render(a||(L?0:jn(g*b)),o,!c)._lock=0,this._tTime=h,!o&&this.parent&&fi(this,"onRepeat"),this.vars.repeatRefresh&&!L&&(this.invalidate()._lock=1),a&&a!==this._time||y!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(c=this._dur,u=this._tDur,$&&(this._lock=2,a=M?c:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!L&&this.invalidate()),this._lock=0,!this._ts&&!y)return this;gS(this,L)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(w=tI(this,jn(a),jn(d)),w&&(h-=d-(d=w._start))),this._tTime=h,this._time=d,this._act=!A,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,a=0),!a&&h&&!o&&!R&&(fi(this,"onStart"),this._tTime!==h))return this;if(d>=a&&i>=0)for(f=this._first;f;){if(_=f._next,(f._act||d>=f._start)&&f._ts&&w!==f){if(f.parent!==this)return this.render(i,o,s);if(f.render(f._ts>0?(d-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(d-f._start)*f._ts,o,s),d!==this._time||!this._ts&&!y){w=0,_&&(h+=this._zTime=-fn);break}}f=_}else{f=this._last;for(var U=i<0?i:d;f;){if(_=f._prev,(f._act||U<=f._end)&&f._ts&&w!==f){if(f.parent!==this)return this.render(i,o,s);if(f.render(f._ts>0?(U-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(U-f._start)*f._ts,o,s||hr&&Lg(f)),d!==this._time||!this._ts&&!y){w=0,_&&(h+=this._zTime=U?-fn:fn);break}}f=_}}if(w&&!o&&(this.pause(),w.render(d>=a?0:-fn)._zTime=d>=a?1:-1,this._ts))return this._start=k,ih(this),this.render(i,o,s);this._onUpdate&&!o&&fi(this,"onUpdate",!0),(h===u&&this._tTime>=this.totalDuration()||!h&&a)&&(k===this._start||Math.abs(A)!==Math.abs(this._ts))&&(this._lock||((i||!c)&&(h===u&&this._ts>0||!h&&this._ts<0)&&Is(this,1),!o&&!(i<0&&!a)&&(h||a||!u)&&(fi(this,h===u&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(h<u&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(i,o){var s=this;if(Jo(o)||(o=Ei(this,o,i)),!(i instanceof ac)){if(Cr(i))return i.forEach(function(a){return s.add(a,o)}),this;if(lr(i))return this.addLabel(i,o);if(On(i))i=Un.delayedCall(0,i);else return this}return this!==i?ho(this,i,o):this},n.getChildren=function(i,o,s,a){i===void 0&&(i=!0),o===void 0&&(o=!0),s===void 0&&(s=!0),a===void 0&&(a=-xi);for(var u=[],c=this._first;c;)c._start>=a&&(c instanceof Un?o&&u.push(c):(s&&u.push(c),i&&u.push.apply(u,c.getChildren(!0,o,s)))),c=c._next;return u},n.getById=function(i){for(var o=this.getChildren(1,1,1),s=o.length;s--;)if(o[s].vars.id===i)return o[s]},n.remove=function(i){return lr(i)?this.removeLabel(i):On(i)?this.killTweensOf(i):(i.parent===this&&rh(this,i),i===this._recent&&(this._recent=this._last),ua(this))},n.totalTime=function(i,o){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=jn(li.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),t.prototype.totalTime.call(this,i,o),this._forcing=0,this):this._tTime},n.addLabel=function(i,o){return this.labels[i]=Ei(this,o),this},n.removeLabel=function(i){return delete this.labels[i],this},n.addPause=function(i,o,s){var a=Un.delayedCall(0,o||ic,s);return a.data="isPause",this._hasPause=1,ho(this,a,Ei(this,i))},n.removePause=function(i){var o=this._first;for(i=Ei(this,i);o;)o._start===i&&o.data==="isPause"&&Is(o),o=o._next},n.killTweensOf=function(i,o,s){for(var a=this.getTweensOf(i,s),u=a.length;u--;)vs!==a[u]&&a[u].kill(i,o);return this},n.getTweensOf=function(i,o){for(var s=[],a=Ci(i),u=this._first,c=Jo(o),h;u;)u instanceof Un?YP(u._targets,a)&&(c?(!vs||u._initted&&u._ts)&&u.globalTime(0)<=o&&u.globalTime(u.totalDuration())>o:!o||u.isActive())&&s.push(u):(h=u.getTweensOf(a,o)).length&&s.push.apply(s,h),u=u._next;return s},n.tweenTo=function(i,o){o=o||{};var s=this,a=Ei(s,i),u=o,c=u.startAt,h=u.onStart,l=u.onStartParams,d=u.immediateRender,f,_=Un.to(s,gi({ease:o.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:o.duration||Math.abs((a-(c&&"time"in c?c.time:s._time))/s.timeScale())||fn,onStart:function(){if(s.pause(),!f){var b=o.duration||Math.abs((a-(c&&"time"in c?c.time:s._time))/s.timeScale());_._dur!==b&&Sl(_,b,0,1).render(_._time,!0,!0),f=1}h&&h.apply(_,l||[])}},o));return d?_.render(0):_},n.tweenFromTo=function(i,o,s){return this.tweenTo(o,gi({startAt:{time:Ei(this,i)}},s))},n.recent=function(){return this._recent},n.nextLabel=function(i){return i===void 0&&(i=this._time),O0(this,Ei(this,i))},n.previousLabel=function(i){return i===void 0&&(i=this._time),O0(this,Ei(this,i),1)},n.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+fn)},n.shiftChildren=function(i,o,s){s===void 0&&(s=0);for(var a=this._first,u=this.labels,c;a;)a._start>=s&&(a._start+=i,a._end+=i),a=a._next;if(o)for(c in u)u[c]>=s&&(u[c]+=i);return ua(this)},n.invalidate=function(i){var o=this._first;for(this._lock=0;o;)o.invalidate(i),o=o._next;return t.prototype.invalidate.call(this,i)},n.clear=function(i){i===void 0&&(i=!0);for(var o=this._first,s;o;)s=o._next,this.remove(o),o=s;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),ua(this)},n.totalDuration=function(i){var o=0,s=this,a=s._last,u=xi,c,h,l;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-i:i));if(s._dirty){for(l=s.parent;a;)c=a._prev,a._dirty&&a.totalDuration(),h=a._start,h>u&&s._sort&&a._ts&&!s._lock?(s._lock=1,ho(s,a,h-a._delay,1)._lock=0):u=h,h<0&&a._ts&&(o-=h,(!l&&!s._dp||l&&l.smoothChildTiming)&&(s._start+=h/s._ts,s._time-=h,s._tTime-=h),s.shiftChildren(-h,!1,-1/0),u=0),a._end>o&&a._ts&&(o=a._end),a=c;Sl(s,s===En&&s._time>o?s._time:o,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(i){if(En._ts&&(Xw(En,_d(i,En)),Yw=li.frame),li.frame>=C0){C0+=hi.autoSleep||120;var o=En._first;if((!o||!o._ts)&&hi.autoSleep&&li._listeners.length<2){for(;o&&!o._ts;)o=o._next;o||li.sleep()}}},e}(ac);gi(Vr.prototype,{_lock:0,_hasPause:0,_forcing:0});var _I=function(e,n,r,i,o,s,a){var u=new Qr(this._pt,e,n,0,1,ES,null,o),c=0,h=0,l,d,f,_,g,b,y,w;for(u.b=r,u.e=i,r+="",i+="",(y=~i.indexOf("random("))&&(i=oc(i)),s&&(w=[r,i],s(w,e,n),r=w[0],i=w[1]),d=r.match(Yh)||[];l=Yh.exec(i);)_=l[0],g=i.substring(c,l.index),f?f=(f+1)%5:g.substr(-5)==="rgba("&&(f=1),_!==d[h++]&&(b=parseFloat(d[h-1])||0,u._pt={_next:u._pt,p:g||h===1?g:",",s:b,c:_.charAt(1)==="="?sl(b,_)-b:parseFloat(_)-b,m:f&&f<4?Math.round:0},c=Yh.lastIndex);return u.c=c<i.length?i.substring(c,i.length):"",u.fp=a,(jw.test(i)||y)&&(u.e=0),this._pt=u,u},Og=function(e,n,r,i,o,s,a,u,c,h){On(i)&&(i=i(o||0,e,s));var l=e[n],d=r!=="get"?r:On(l)?c?e[n.indexOf("set")||!On(e["get"+n.substr(3)])?n:"get"+n.substr(3)](c):e[n]():l,f=On(l)?c?SI:SS:Fg,_;if(lr(i)&&(~i.indexOf("random(")&&(i=oc(i)),i.charAt(1)==="="&&(_=sl(d,i)+(kr(d)||0),(_||_===0)&&(i=_))),!h||d!==i||nm)return!isNaN(d*i)&&i!==""?(_=new Qr(this._pt,e,n,+d||0,i-(d||0),typeof l=="boolean"?EI:TS,0,f),c&&(_.fp=c),a&&_.modifier(a,this,e),this._pt=_):(!l&&!(n in e)&&xg(n,i),_I.call(this,e,n,d,i,f,u||hi.stringFilter,c))},vI=function(e,n,r,i,o){if(On(e)&&(e=Lu(e,o,n,r,i)),!wo(e)||e.style&&e.nodeType||Cr(e)||Vw(e))return lr(e)?Lu(e,o,n,r,i):e;var s={},a;for(a in e)s[a]=Lu(e[a],o,n,r,i);return s},yS=function(e,n,r,i,o,s){var a,u,c,h;if(si[e]&&(a=new si[e]).init(o,a.rawVars?n[e]:vI(n[e],i,o,s,r),r,i,s)!==!1&&(r._pt=u=new Qr(r._pt,o,e,0,1,a.render,a,0,a.priority),r!==Za))for(c=r._ptLookup[r._targets.indexOf(o)],h=a._props.length;h--;)c[a._props[h]]=u;return a},vs,nm,Mg=function t(e,n,r){var i=e.vars,o=i.ease,s=i.startAt,a=i.immediateRender,u=i.lazy,c=i.onUpdate,h=i.runBackwards,l=i.yoyoEase,d=i.keyframes,f=i.autoRevert,_=e._dur,g=e._startAt,b=e._targets,y=e.parent,w=y&&y.data==="nested"?y.vars.targets:b,A=e._overwrite==="auto"&&!Eg,k=e.timeline,R,C,L,M,$,U,ne,D,Q,N,W,V,B;if(k&&(!d||!o)&&(o="none"),e._ease=ca(o,yl.ease),e._yEase=l?mS(ca(l===!0?o:l,yl.ease)):0,l&&e._yoyo&&!e._repeat&&(l=e._yEase,e._yEase=e._ease,e._ease=l),e._from=!k&&!!i.runBackwards,!k||d&&!i.stagger){if(D=b[0]?la(b[0]).harness:0,V=D&&i[D.prop],R=gd(i,Cg),g&&(g._zTime<0&&g.progress(1),n<0&&h&&a&&!f?g.render(-1,!0):g.revert(h&&_?$f:qP),g._lazy=0),s){if(Is(e._startAt=Un.set(b,gi({data:"isStart",overwrite:!1,parent:y,immediateRender:!0,lazy:!g&&Kr(u),startAt:null,delay:0,onUpdate:c&&function(){return fi(e,"onUpdate")},stagger:0},s))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(hr||!a&&!f)&&e._startAt.revert($f),a&&_&&n<=0&&r<=0){n&&(e._zTime=n);return}}else if(h&&_&&!g){if(n&&(a=!1),L=gi({overwrite:!1,data:"isFromStart",lazy:a&&!g&&Kr(u),immediateRender:a,stagger:0,parent:y},R),V&&(L[D.prop]=V),Is(e._startAt=Un.set(b,L)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(hr?e._startAt.revert($f):e._startAt.render(-1,!0)),e._zTime=n,!a)t(e._startAt,fn,fn);else if(!n)return}for(e._pt=e._ptCache=0,u=_&&Kr(u)||u&&!_,C=0;C<b.length;C++){if($=b[C],ne=$._gsap||Ig(b)[C]._gsap,e._ptLookup[C]=N={},Xp[ne.id]&&As.length&&md(),W=w===b?C:w.indexOf($),D&&(Q=new D).init($,V||R,e,W,w)!==!1&&(e._pt=M=new Qr(e._pt,$,Q.name,0,1,Q.render,Q,0,Q.priority),Q._props.forEach(function(oe){N[oe]=M}),Q.priority&&(U=1)),!D||V)for(L in R)si[L]&&(Q=yS(L,R,e,W,$,w))?Q.priority&&(U=1):N[L]=M=Og.call(e,$,L,"get",R[L],W,w,0,i.stringFilter);e._op&&e._op[C]&&e.kill($,e._op[C]),A&&e._pt&&(vs=e,En.killTweensOf($,N,e.globalTime(n)),B=!e.parent,vs=0),e._pt&&u&&(Xp[ne.id]=1)}U&&kS(e),e._onInit&&e._onInit(e)}e._onUpdate=c,e._initted=(!e._op||e._pt)&&!B,d&&n<=0&&k.render(xi,!0,!0)},yI=function(e,n,r,i,o,s,a,u){var c=(e._pt&&e._ptCache||(e._ptCache={}))[n],h,l,d,f;if(!c)for(c=e._ptCache[n]=[],d=e._ptLookup,f=e._targets.length;f--;){if(h=d[f][n],h&&h.d&&h.d._pt)for(h=h.d._pt;h&&h.p!==n&&h.fp!==n;)h=h._next;if(!h)return nm=1,e.vars[n]="+=0",Mg(e,a),nm=0,u?rc(n+" not eligible for reset"):1;c.push(h)}for(f=c.length;f--;)l=c[f],h=l._pt||l,h.s=(i||i===0)&&!o?i:h.s+(i||0)+s*h.c,h.c=r-h.s,l.e&&(l.e=Dn(r)+kr(l.e)),l.b&&(l.b=h.s+kr(l.b))},bI=function(e,n){var r=e[0]?la(e[0]).harness:0,i=r&&r.aliases,o,s,a,u;if(!i)return n;o=bl({},n);for(s in i)if(s in o)for(u=i[s].split(","),a=u.length;a--;)o[u[a]]=o[s];return o},wI=function(e,n,r,i){var o=n.ease||i||"power1.inOut",s,a;if(Cr(n))a=r[e]||(r[e]=[]),n.forEach(function(u,c){return a.push({t:c/(n.length-1)*100,v:u,e:o})});else for(s in n)a=r[s]||(r[s]=[]),s==="ease"||a.push({t:parseFloat(e),v:n[s],e:o})},Lu=function(e,n,r,i,o){return On(e)?e.call(n,r,i,o):lr(e)&&~e.indexOf("random(")?oc(e):e},bS=Pg+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",wS={};Xr(bS+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return wS[t]=1});var Un=function(t){Nw(e,t);function e(r,i,o,s){var a;typeof i=="number"&&(o.duration=i,i=o,o=null),a=t.call(this,s?i:Pu(i))||this;var u=a.vars,c=u.duration,h=u.delay,l=u.immediateRender,d=u.stagger,f=u.overwrite,_=u.keyframes,g=u.defaults,b=u.scrollTrigger,y=u.yoyoEase,w=i.parent||En,A=(Cr(r)||Vw(r)?Jo(r[0]):"length"in i)?[r]:Ci(r),k,R,C,L,M,$,U,ne;if(a._targets=A.length?Ig(A):rc("GSAP target "+r+" not found. https://gsap.com",!hi.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=f,_||d||lf(c)||lf(h)){if(i=a.vars,k=a.timeline=new Vr({data:"nested",defaults:g||{},targets:w&&w.data==="nested"?w.vars.targets:A}),k.kill(),k.parent=k._dp=Mo(a),k._start=0,d||lf(c)||lf(h)){if(L=A.length,U=d&&oS(d),wo(d))for(M in d)~bS.indexOf(M)&&(ne||(ne={}),ne[M]=d[M]);for(R=0;R<L;R++)C=gd(i,wS),C.stagger=0,y&&(C.yoyoEase=y),ne&&bl(C,ne),$=A[R],C.duration=+Lu(c,Mo(a),R,$,A),C.delay=(+Lu(h,Mo(a),R,$,A)||0)-a._delay,!d&&L===1&&C.delay&&(a._delay=h=C.delay,a._start+=h,C.delay=0),k.to($,C,U?U(R,$,A):0),k._ease=Dt.none;k.duration()?c=h=0:a.timeline=0}else if(_){Pu(gi(k.vars.defaults,{ease:"none"})),k._ease=ca(_.ease||i.ease||"none");var D=0,Q,N,W;if(Cr(_))_.forEach(function(V){return k.to(A,V,">")}),k.duration();else{C={};for(M in _)M==="ease"||M==="easeEach"||wI(M,_[M],C,_.easeEach);for(M in C)for(Q=C[M].sort(function(V,B){return V.t-B.t}),D=0,R=0;R<Q.length;R++)N=Q[R],W={ease:N.e,duration:(N.t-(R?Q[R-1].t:0))/100*c},W[M]=N.v,k.to(A,W,D),D+=W.duration;k.duration()<c&&k.to({},{duration:c-k.duration()})}}c||a.duration(c=k.duration())}else a.timeline=0;return f===!0&&!Eg&&(vs=Mo(a),En.killTweensOf(A),vs=0),ho(w,Mo(a),o),i.reversed&&a.reverse(),i.paused&&a.paused(!0),(l||!c&&!_&&a._start===jn(w._time)&&Kr(l)&&JP(Mo(a))&&w.data!=="nested")&&(a._tTime=-fn,a.render(Math.max(0,-h)||0)),b&&tS(Mo(a),b),a}var n=e.prototype;return n.render=function(i,o,s){var a=this._time,u=this._tDur,c=this._dur,h=i<0,l=i>u-fn&&!h?u:i<fn?0:i,d,f,_,g,b,y,w,A,k;if(!c)eI(this,i,o,s);else if(l!==this._tTime||!i||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==h||this._lazy){if(d=l,A=this.timeline,this._repeat){if(g=c+this._rDelay,this._repeat<-1&&h)return this.totalTime(g*100+i,o,s);if(d=jn(l%g),l===u?(_=this._repeat,d=c):(b=jn(l/g),_=~~b,_&&_===b?(d=c,_--):d>c&&(d=c)),y=this._yoyo&&_&1,y&&(k=this._yEase,d=c-d),b=wl(this._tTime,g),d===a&&!s&&this._initted&&_===b)return this._tTime=l,this;_!==b&&(A&&this._yEase&&gS(A,y),this.vars.repeatRefresh&&!y&&!this._lock&&d!==g&&this._initted&&(this._lock=s=1,this.render(jn(g*_),!0).invalidate()._lock=0))}if(!this._initted){if(nS(this,h?i:d,s,o,l))return this._tTime=0,this;if(a!==this._time&&!(s&&this.vars.repeatRefresh&&_!==b))return this;if(c!==this._dur)return this.render(i,o,s)}if(this._tTime=l,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=w=(k||this._ease)(d/c),this._from&&(this.ratio=w=1-w),!a&&l&&!o&&!b&&(fi(this,"onStart"),this._tTime!==l))return this;for(f=this._pt;f;)f.r(w,f.d),f=f._next;A&&A.render(i<0?i:A._dur*A._ease(d/this._dur),o,s)||this._startAt&&(this._zTime=i),this._onUpdate&&!o&&(h&&Qp(this,i,o,s),fi(this,"onUpdate")),this._repeat&&_!==b&&this.vars.onRepeat&&!o&&this.parent&&fi(this,"onRepeat"),(l===this._tDur||!l)&&this._tTime===l&&(h&&!this._onUpdate&&Qp(this,i,!0,!0),(i||!c)&&(l===this._tDur&&this._ts>0||!l&&this._ts<0)&&Is(this,1),!o&&!(h&&!a)&&(l||a||y)&&(fi(this,l===u?"onComplete":"onReverseComplete",!0),this._prom&&!(l<u&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),t.prototype.invalidate.call(this,i)},n.resetTo=function(i,o,s,a,u){sc||li.wake(),this._ts||this.play();var c=Math.min(this._dur,(this._dp._time-this._start)*this._ts),h;return this._initted||Mg(this,c),h=this._ease(c/this._dur),yI(this,i,o,s,a,h,c,u)?this.resetTo(i,o,s,a,1):(oh(this,0),this.parent||Zw(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(i,o){if(o===void 0&&(o="all"),!i&&(!o||o==="all"))return this._lazy=this._pt=0,this.parent?du(this):this.scrollTrigger&&this.scrollTrigger.kill(!!hr),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(i,o,vs&&vs.vars.overwrite!==!0)._first||du(this),this.parent&&s!==this.timeline.totalDuration()&&Sl(this,this._dur*this.timeline._tDur/s,0,1),this}var a=this._targets,u=i?Ci(i):a,c=this._ptLookup,h=this._pt,l,d,f,_,g,b,y;if((!o||o==="all")&&XP(a,u))return o==="all"&&(this._pt=0),du(this);for(l=this._op=this._op||[],o!=="all"&&(lr(o)&&(g={},Xr(o,function(w){return g[w]=1}),o=g),o=bI(a,o)),y=a.length;y--;)if(~u.indexOf(a[y])){d=c[y],o==="all"?(l[y]=o,_=d,f={}):(f=l[y]=l[y]||{},_=o);for(g in _)b=d&&d[g],b&&((!("kill"in b.d)||b.d.kill(g)===!0)&&rh(this,b,"_pt"),delete d[g]),f!=="all"&&(f[g]=1)}return this._initted&&!this._pt&&h&&du(this),this},e.to=function(i,o){return new e(i,o,arguments[2])},e.from=function(i,o){return Iu(1,arguments)},e.delayedCall=function(i,o,s,a){return new e(o,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:o,onReverseComplete:o,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:a})},e.fromTo=function(i,o,s){return Iu(2,arguments)},e.set=function(i,o){return o.duration=0,o.repeatDelay||(o.repeat=0),new e(i,o)},e.killTweensOf=function(i,o,s){return En.killTweensOf(i,o,s)},e}(ac);gi(Un.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Xr("staggerTo,staggerFrom,staggerFromTo",function(t){Un[t]=function(){var e=new Vr,n=Zp.call(arguments,0);return n.splice(t==="staggerFromTo"?5:4,0,0),e[t].apply(e,n)}});var Fg=function(e,n,r){return e[n]=r},SS=function(e,n,r){return e[n](r)},SI=function(e,n,r,i){return e[n](i.fp,r)},TI=function(e,n,r){return e.setAttribute(n,r)},Dg=function(e,n){return On(e[n])?SS:kg(e[n])&&e.setAttribute?TI:Fg},TS=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e6)/1e6,n)},EI=function(e,n){return n.set(n.t,n.p,!!(n.s+n.c*e),n)},ES=function(e,n){var r=n._pt,i="";if(!e&&n.b)i=n.b;else if(e===1&&n.e)i=n.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+i,r=r._next;i+=n.c}n.set(n.t,n.p,i,n)},$g=function(e,n){for(var r=n._pt;r;)r.r(e,r.d),r=r._next},kI=function(e,n,r,i){for(var o=this._pt,s;o;)s=o._next,o.p===i&&o.modifier(e,n,r),o=s},AI=function(e){for(var n=this._pt,r,i;n;)i=n._next,n.p===e&&!n.op||n.op===e?rh(this,n,"_pt"):n.dep||(r=1),n=i;return!r},RI=function(e,n,r,i){i.mSet(e,n,i.m.call(i.tween,r,i.mt),i)},kS=function(e){for(var n=e._pt,r,i,o,s;n;){for(r=n._next,i=o;i&&i.pr>n.pr;)i=i._next;(n._prev=i?i._prev:s)?n._prev._next=n:o=n,(n._next=i)?i._prev=n:s=n,n=r}e._pt=o},Qr=function(){function t(n,r,i,o,s,a,u,c,h){this.t=r,this.s=o,this.c=s,this.p=i,this.r=a||TS,this.d=u||this,this.set=c||Fg,this.pr=h||0,this._next=n,n&&(n._prev=this)}var e=t.prototype;return e.modifier=function(r,i,o){this.mSet=this.mSet||this.set,this.set=RI,this.m=r,this.mt=o,this.tween=i},t}();Xr(Pg+"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(t){return Cg[t]=1});mi.TweenMax=mi.TweenLite=Un;mi.TimelineLite=mi.TimelineMax=Vr;En=new Vr({sortChildren:!1,defaults:yl,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});hi.stringFilter=pS;var fa=[],Nf={},xI=[],F0=0,CI=0,Zh=function(e){return(Nf[e]||xI).map(function(n){return n()})},rm=function(){var e=Date.now(),n=[];e-F0>2&&(Zh("matchMediaInit"),fa.forEach(function(r){var i=r.queries,o=r.conditions,s,a,u,c;for(a in i)s=lo.matchMedia(i[a]).matches,s&&(u=1),s!==o[a]&&(o[a]=s,c=1);c&&(r.revert(),u&&n.push(r))}),Zh("matchMediaRevert"),n.forEach(function(r){return r.onMatch(r,function(i){return r.add(null,i)})}),F0=e,Zh("matchMedia"))},AS=function(){function t(n,r){this.selector=r&&em(r),this.data=[],this._r=[],this.isReverted=!1,this.id=CI++,n&&this.add(n)}var e=t.prototype;return e.add=function(r,i,o){On(r)&&(o=i,i=r,r=On);var s=this,a=function(){var c=bn,h=s.selector,l;return c&&c!==s&&c.data.push(s),o&&(s.selector=em(o)),bn=s,l=i.apply(s,arguments),On(l)&&s._r.push(l),bn=c,s.selector=h,s.isReverted=!1,l};return s.last=a,r===On?a(s,function(u){return s.add(null,u)}):r?s[r]=a:a},e.ignore=function(r){var i=bn;bn=null,r(this),bn=i},e.getTweens=function(){var r=[];return this.data.forEach(function(i){return i instanceof t?r.push.apply(r,i.getTweens()):i instanceof Un&&!(i.parent&&i.parent.data==="nested")&&r.push(i)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,i){var o=this;if(r?function(){for(var a=o.getTweens(),u=o.data.length,c;u--;)c=o.data[u],c.data==="isFlip"&&(c.revert(),c.getChildren(!0,!0,!1).forEach(function(h){return a.splice(a.indexOf(h),1)}));for(a.map(function(h){return{g:h._dur||h._delay||h._sat&&!h._sat.vars.immediateRender?h.globalTime(0):-1/0,t:h}}).sort(function(h,l){return l.g-h.g||-1/0}).forEach(function(h){return h.t.revert(r)}),u=o.data.length;u--;)c=o.data[u],c instanceof Vr?c.data!=="nested"&&(c.scrollTrigger&&c.scrollTrigger.revert(),c.kill()):!(c instanceof Un)&&c.revert&&c.revert(r);o._r.forEach(function(h){return h(r,o)}),o.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),i)for(var s=fa.length;s--;)fa[s].id===this.id&&fa.splice(s,1)},e.revert=function(r){this.kill(r||{})},t}(),PI=function(){function t(n){this.contexts=[],this.scope=n,bn&&bn.data.push(this)}var e=t.prototype;return e.add=function(r,i,o){wo(r)||(r={matches:r});var s=new AS(0,o||this.scope),a=s.conditions={},u,c,h;bn&&!s.selector&&(s.selector=bn.selector),this.contexts.push(s),i=s.add("onMatch",i),s.queries=r;for(c in r)c==="all"?h=1:(u=lo.matchMedia(r[c]),u&&(fa.indexOf(s)<0&&fa.push(s),(a[c]=u.matches)&&(h=1),u.addListener?u.addListener(rm):u.addEventListener("change",rm)));return h&&i(s,function(l){return s.add(null,l)}),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(i){return i.kill(r,!0)})},t}(),vd={registerPlugin:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach(function(i){return fS(i)})},timeline:function(e){return new Vr(e)},getTweensOf:function(e,n){return En.getTweensOf(e,n)},getProperty:function(e,n,r,i){lr(e)&&(e=Ci(e)[0]);var o=la(e||{}).get,s=r?Jw:Qw;return r==="native"&&(r=""),e&&(n?s((si[n]&&si[n].get||o)(e,n,r,i)):function(a,u,c){return s((si[a]&&si[a].get||o)(e,a,u,c))})},quickSetter:function(e,n,r){if(e=Ci(e),e.length>1){var i=e.map(function(h){return ti.quickSetter(h,n,r)}),o=i.length;return function(h){for(var l=o;l--;)i[l](h)}}e=e[0]||{};var s=si[n],a=la(e),u=a.harness&&(a.harness.aliases||{})[n]||n,c=s?function(h){var l=new s;Za._pt=0,l.init(e,r?h+r:h,Za,0,[e]),l.render(1,l),Za._pt&&$g(1,Za)}:a.set(e,u);return s?c:function(h){return c(e,u,r?h+r:h,a,1)}},quickTo:function(e,n,r){var i,o=ti.to(e,gi((i={},i[n]="+=0.1",i.paused=!0,i.stagger=0,i),r||{})),s=function(u,c,h){return o.resetTo(n,u,c,h)};return s.tween=o,s},isTweening:function(e){return En.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=ca(e.ease,yl.ease)),P0(yl,e||{})},config:function(e){return P0(hi,e||{})},registerEffect:function(e){var n=e.name,r=e.effect,i=e.plugins,o=e.defaults,s=e.extendTimeline;(i||"").split(",").forEach(function(a){return a&&!si[a]&&!mi[a]&&rc(n+" effect requires "+a+" plugin.")}),Kh[n]=function(a,u,c){return r(Ci(a),gi(u||{},o),c)},s&&(Vr.prototype[n]=function(a,u,c){return this.add(Kh[n](a,wo(u)?u:(c=u)&&{},this),c)})},registerEase:function(e,n){Dt[e]=ca(n)},parseEase:function(e,n){return arguments.length?ca(e,n):Dt},getById:function(e){return En.getById(e)},exportRoot:function(e,n){e===void 0&&(e={});var r=new Vr(e),i,o;for(r.smoothChildTiming=Kr(e.smoothChildTiming),En.remove(r),r._dp=0,r._time=r._tTime=En._time,i=En._first;i;)o=i._next,(n||!(!i._dur&&i instanceof Un&&i.vars.onComplete===i._targets[0]))&&ho(r,i,i._start-i._delay),i=o;return ho(En,r,0),r},context:function(e,n){return e?new AS(e,n):bn},matchMedia:function(e){return new PI(e)},matchMediaRefresh:function(){return fa.forEach(function(e){var n=e.conditions,r,i;for(i in n)n[i]&&(n[i]=!1,r=1);r&&e.revert()})||rm()},addEventListener:function(e,n){var r=Nf[e]||(Nf[e]=[]);~r.indexOf(n)||r.push(n)},removeEventListener:function(e,n){var r=Nf[e],i=r&&r.indexOf(n);i>=0&&r.splice(i,1)},utils:{wrap:lI,wrapYoyo:uI,distribute:oS,random:aS,snap:sS,normalize:aI,getUnit:kr,clamp:rI,splitColor:dS,toArray:Ci,selector:em,mapRange:uS,pipe:oI,unitize:sI,interpolate:cI,shuffle:iS},install:qw,effects:Kh,ticker:li,updateRoot:Vr.updateRoot,plugins:si,globalTimeline:En,core:{PropTween:Qr,globals:Gw,Tween:Un,Timeline:Vr,Animation:ac,getCache:la,_removeLinkedListItem:rh,reverting:function(){return hr},context:function(e){return e&&bn&&(bn.data.push(e),e._ctx=bn),bn},suppressOverwrites:function(e){return Eg=e}}};Xr("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return vd[t]=Un[t]});li.add(Vr.updateRoot);Za=vd.to({},{duration:0});var II=function(e,n){for(var r=e._pt;r&&r.p!==n&&r.op!==n&&r.fp!==n;)r=r._next;return r},LI=function(e,n){var r=e._targets,i,o,s;for(i in n)for(o=r.length;o--;)s=e._ptLookup[o][i],s&&(s=s.d)&&(s._pt&&(s=II(s,i)),s&&s.modifier&&s.modifier(n[i],e,r[o],i))},ep=function(e,n){return{name:e,headless:1,rawVars:1,init:function(i,o,s){s._onInit=function(a){var u,c;if(lr(o)&&(u={},Xr(o,function(h){return u[h]=1}),o=u),n){u={};for(c in o)u[c]=n(o[c]);o=u}LI(a,o)}}}},ti=vd.registerPlugin({name:"attr",init:function(e,n,r,i,o){var s,a,u;this.tween=r;for(s in n)u=e.getAttribute(s)||"",a=this.add(e,"setAttribute",(u||0)+"",n[s],i,o,0,0,s),a.op=s,a.b=u,this._props.push(s)},render:function(e,n){for(var r=n._pt;r;)hr?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",headless:1,init:function(e,n){for(var r=n.length;r--;)this.add(e,r,e[r]||0,n[r],0,0,0,0,0,1)}},ep("roundProps",tm),ep("modifiers"),ep("snap",sS))||vd;Un.version=Vr.version=ti.version="3.13.0";zw=1;Ag()&&Tl();Dt.Power0;Dt.Power1;Dt.Power2;Dt.Power3;Dt.Power4;Dt.Linear;Dt.Quad;Dt.Cubic;Dt.Quart;Dt.Quint;Dt.Strong;Dt.Elastic;Dt.Back;Dt.SteppedEase;Dt.Bounce;Dt.Sine;Dt.Expo;Dt.Circ;/*!
 * CSSPlugin 3.13.0
 * https://gsap.com
 *
 * Copyright 2008-2025, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license
 * @author: Jack Doyle, jack@greensock.com
*/var D0,ys,al,Hg,ra,$0,Ng,OI=function(){return typeof window<"u"},Zo={},Xs=180/Math.PI,ll=Math.PI/180,Na=Math.atan2,H0=1e8,Bg=/([A-Z])/g,MI=/(left|right|width|margin|padding|x)/i,FI=/[\s,\(]\S/,po={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},im=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},DI=function(e,n){return n.set(n.t,n.p,e===1?n.e:Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},$I=function(e,n){return n.set(n.t,n.p,e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},HI=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},RS=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},xS=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},NI=function(e,n,r){return e.style[n]=r},BI=function(e,n,r){return e.style.setProperty(n,r)},VI=function(e,n,r){return e._gsap[n]=r},UI=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},jI=function(e,n,r,i,o){var s=e._gsap;s.scaleX=s.scaleY=r,s.renderTransform(o,s)},WI=function(e,n,r,i,o){var s=e._gsap;s[n]=r,s.renderTransform(o,s)},An="transform",Jr=An+"Origin",zI=function t(e,n){var r=this,i=this.target,o=i.style,s=i._gsap;if(e in Zo&&o){if(this.tfm=this.tfm||{},e!=="transform")e=po[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=$o(i,a)}):this.tfm[e]=s.x?s[e]:$o(i,e),e===Jr&&(this.tfm.zOrigin=s.zOrigin);else return po.transform.split(",").forEach(function(a){return t.call(r,a,n)});if(this.props.indexOf(An)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Jr,n,"")),e=An}(o||n)&&this.props.push(e,n,o[e])},CS=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},qI=function(){var e=this.props,n=this.target,r=n.style,i=n._gsap,o,s;for(o=0;o<e.length;o+=3)e[o+1]?e[o+1]===2?n[e[o]](e[o+2]):n[e[o]]=e[o+2]:e[o+2]?r[e[o]]=e[o+2]:r.removeProperty(e[o].substr(0,2)==="--"?e[o]:e[o].replace(Bg,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)i[s]=this.tfm[s];i.svg&&(i.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),o=Ng(),(!o||!o.isStart)&&!r[An]&&(CS(r),i.zOrigin&&r[Jr]&&(r[Jr]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},PS=function(e,n){var r={target:e,props:[],revert:qI,save:zI};return e._gsap||ti.core.getCache(e),n&&e.style&&e.nodeType&&n.split(",").forEach(function(i){return r.save(i)}),r},IS,om=function(e,n){var r=ys.createElementNS?ys.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):ys.createElement(e);return r&&r.style?r:ys.createElement(e)},Pi=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(Bg,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,El(n)||n,1)||""},N0="O,Moz,ms,Ms,Webkit".split(","),El=function(e,n,r){var i=n||ra,o=i.style,s=5;if(e in o&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);s--&&!(N0[s]+e in o););return s<0?null:(s===3?"ms":s>=0?N0[s]:"")+e},sm=function(){OI()&&window.document&&(D0=window,ys=D0.document,al=ys.documentElement,ra=om("div")||{style:{}},om("div"),An=El(An),Jr=An+"Origin",ra.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",IS=!!El("perspective"),Ng=ti.core.reverting,Hg=1)},B0=function(e){var n=e.ownerSVGElement,r=om("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0),o;i.style.display="block",r.appendChild(i),al.appendChild(r);try{o=i.getBBox()}catch{}return r.removeChild(i),al.removeChild(r),o},V0=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},LS=function(e){var n,r;try{n=e.getBBox()}catch{n=B0(e),r=1}return n&&(n.width||n.height)||r||(n=B0(e)),n&&!n.width&&!n.x&&!n.y?{x:+V0(e,["x","cx","x1"])||0,y:+V0(e,["y","cy","y1"])||0,width:0,height:0}:n},OS=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&LS(e))},ba=function(e,n){if(n){var r=e.style,i;n in Zo&&n!==Jr&&(n=An),r.removeProperty?(i=n.substr(0,2),(i==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(i==="--"?n:n.replace(Bg,"-$1").toLowerCase())):r.removeAttribute(n)}},bs=function(e,n,r,i,o,s){var a=new Qr(e._pt,n,r,0,1,s?xS:RS);return e._pt=a,a.b=i,a.e=o,e._props.push(r),a},U0={deg:1,rad:1,turn:1},GI={grid:1,flex:1},Ls=function t(e,n,r,i){var o=parseFloat(r)||0,s=(r+"").trim().substr((o+"").length)||"px",a=ra.style,u=MI.test(n),c=e.tagName.toLowerCase()==="svg",h=(c?"client":"offset")+(u?"Width":"Height"),l=100,d=i==="px",f=i==="%",_,g,b,y;if(i===s||!o||U0[i]||U0[s])return o;if(s!=="px"&&!d&&(o=t(e,n,r,"px")),y=e.getCTM&&OS(e),(f||s==="%")&&(Zo[n]||~n.indexOf("adius")))return _=y?e.getBBox()[u?"width":"height"]:e[h],Dn(f?o/_*l:o/100*_);if(a[u?"width":"height"]=l+(d?s:i),g=i!=="rem"&&~n.indexOf("adius")||i==="em"&&e.appendChild&&!c?e:e.parentNode,y&&(g=(e.ownerSVGElement||{}).parentNode),(!g||g===ys||!g.appendChild)&&(g=ys.body),b=g._gsap,b&&f&&b.width&&u&&b.time===li.time&&!b.uncache)return Dn(o/b.width*l);if(f&&(n==="height"||n==="width")){var w=e.style[n];e.style[n]=l+i,_=e[h],w?e.style[n]=w:ba(e,n)}else(f||s==="%")&&!GI[Pi(g,"display")]&&(a.position=Pi(e,"position")),g===e&&(a.position="static"),g.appendChild(ra),_=ra[h],g.removeChild(ra),a.position="absolute";return u&&f&&(b=la(g),b.time=li.time,b.width=g[h]),Dn(d?_*o/l:_&&o?l/_*o:0)},$o=function(e,n,r,i){var o;return Hg||sm(),n in po&&n!=="transform"&&(n=po[n],~n.indexOf(",")&&(n=n.split(",")[0])),Zo[n]&&n!=="transform"?(o=uc(e,i),o=n!=="transformOrigin"?o[n]:o.svg?o.origin:bd(Pi(e,Jr))+" "+o.zOrigin+"px"):(o=e.style[n],(!o||o==="auto"||i||~(o+"").indexOf("calc("))&&(o=yd[n]&&yd[n](e,n,r)||Pi(e,n)||Kw(e,n)||(n==="opacity"?1:0))),r&&!~(o+"").trim().indexOf(" ")?Ls(e,n,o,r)+r:o},YI=function(e,n,r,i){if(!r||r==="none"){var o=El(n,e,1),s=o&&Pi(e,o,1);s&&s!==r?(n=o,r=s):n==="borderColor"&&(r=Pi(e,"borderTopColor"))}var a=new Qr(this._pt,e.style,n,0,1,ES),u=0,c=0,h,l,d,f,_,g,b,y,w,A,k,R;if(a.b=r,a.e=i,r+="",i+="",i.substring(0,6)==="var(--"&&(i=Pi(e,i.substring(4,i.indexOf(")")))),i==="auto"&&(g=e.style[n],e.style[n]=i,i=Pi(e,n)||i,g?e.style[n]=g:ba(e,n)),h=[r,i],pS(h),r=h[0],i=h[1],d=r.match(Ja)||[],R=i.match(Ja)||[],R.length){for(;l=Ja.exec(i);)b=l[0],w=i.substring(u,l.index),_?_=(_+1)%5:(w.substr(-5)==="rgba("||w.substr(-5)==="hsla(")&&(_=1),b!==(g=d[c++]||"")&&(f=parseFloat(g)||0,k=g.substr((f+"").length),b.charAt(1)==="="&&(b=sl(f,b)+k),y=parseFloat(b),A=b.substr((y+"").length),u=Ja.lastIndex-A.length,A||(A=A||hi.units[n]||k,u===i.length&&(i+=A,a.e+=A)),k!==A&&(f=Ls(e,n,g,A)||0),a._pt={_next:a._pt,p:w||c===1?w:",",s:f,c:y-f,m:_&&_<4||n==="zIndex"?Math.round:0});a.c=u<i.length?i.substring(u,i.length):""}else a.r=n==="display"&&i==="none"?xS:RS;return jw.test(i)&&(a.e=0),this._pt=a,a},j0={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},KI=function(e){var n=e.split(" "),r=n[0],i=n[1]||"50%";return(r==="top"||r==="bottom"||i==="left"||i==="right")&&(e=r,r=i,i=e),n[0]=j0[r]||r,n[1]=j0[i]||i,n.join(" ")},XI=function(e,n){if(n.tween&&n.tween._time===n.tween._dur){var r=n.t,i=r.style,o=n.u,s=r._gsap,a,u,c;if(o==="all"||o===!0)i.cssText="",u=1;else for(o=o.split(","),c=o.length;--c>-1;)a=o[c],Zo[a]&&(u=1,a=a==="transformOrigin"?Jr:An),ba(r,a);u&&(ba(r,An),s&&(s.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",uc(r,1),s.uncache=1,CS(i)))}},yd={clearProps:function(e,n,r,i,o){if(o.data!=="isFromStart"){var s=e._pt=new Qr(e._pt,n,r,0,0,XI);return s.u=i,s.pr=-10,s.tween=o,e._props.push(r),1}}},lc=[1,0,0,1,0,0],MS={},FS=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},W0=function(e){var n=Pi(e,An);return FS(n)?lc:n.substr(7).match(Uw).map(Dn)},Vg=function(e,n){var r=e._gsap||la(e),i=e.style,o=W0(e),s,a,u,c;return r.svg&&e.getAttribute("transform")?(u=e.transform.baseVal.consolidate().matrix,o=[u.a,u.b,u.c,u.d,u.e,u.f],o.join(",")==="1,0,0,1,0,0"?lc:o):(o===lc&&!e.offsetParent&&e!==al&&!r.svg&&(u=i.display,i.display="block",s=e.parentNode,(!s||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,a=e.nextElementSibling,al.appendChild(e)),o=W0(e),u?i.display=u:ba(e,"display"),c&&(a?s.insertBefore(e,a):s?s.appendChild(e):al.removeChild(e))),n&&o.length>6?[o[0],o[1],o[4],o[5],o[12],o[13]]:o)},am=function(e,n,r,i,o,s){var a=e._gsap,u=o||Vg(e,!0),c=a.xOrigin||0,h=a.yOrigin||0,l=a.xOffset||0,d=a.yOffset||0,f=u[0],_=u[1],g=u[2],b=u[3],y=u[4],w=u[5],A=n.split(" "),k=parseFloat(A[0])||0,R=parseFloat(A[1])||0,C,L,M,$;r?u!==lc&&(L=f*b-_*g)&&(M=k*(b/L)+R*(-g/L)+(g*w-b*y)/L,$=k*(-_/L)+R*(f/L)-(f*w-_*y)/L,k=M,R=$):(C=LS(e),k=C.x+(~A[0].indexOf("%")?k/100*C.width:k),R=C.y+(~(A[1]||A[0]).indexOf("%")?R/100*C.height:R)),i||i!==!1&&a.smooth?(y=k-c,w=R-h,a.xOffset=l+(y*f+w*g)-y,a.yOffset=d+(y*_+w*b)-w):a.xOffset=a.yOffset=0,a.xOrigin=k,a.yOrigin=R,a.smooth=!!i,a.origin=n,a.originIsAbsolute=!!r,e.style[Jr]="0px 0px",s&&(bs(s,a,"xOrigin",c,k),bs(s,a,"yOrigin",h,R),bs(s,a,"xOffset",l,a.xOffset),bs(s,a,"yOffset",d,a.yOffset)),e.setAttribute("data-svg-origin",k+" "+R)},uc=function(e,n){var r=e._gsap||new vS(e);if("x"in r&&!n&&!r.uncache)return r;var i=e.style,o=r.scaleX<0,s="px",a="deg",u=getComputedStyle(e),c=Pi(e,Jr)||"0",h,l,d,f,_,g,b,y,w,A,k,R,C,L,M,$,U,ne,D,Q,N,W,V,B,oe,se,q,be,Te,he,ge,Ae;return h=l=d=g=b=y=w=A=k=0,f=_=1,r.svg=!!(e.getCTM&&OS(e)),u.translate&&((u.translate!=="none"||u.scale!=="none"||u.rotate!=="none")&&(i[An]=(u.translate!=="none"?"translate3d("+(u.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(u.rotate!=="none"?"rotate("+u.rotate+") ":"")+(u.scale!=="none"?"scale("+u.scale.split(" ").join(",")+") ":"")+(u[An]!=="none"?u[An]:"")),i.scale=i.rotate=i.translate="none"),L=Vg(e,r.svg),r.svg&&(r.uncache?(oe=e.getBBox(),c=r.xOrigin-oe.x+"px "+(r.yOrigin-oe.y)+"px",B=""):B=!n&&e.getAttribute("data-svg-origin"),am(e,B||c,!!B||r.originIsAbsolute,r.smooth!==!1,L)),R=r.xOrigin||0,C=r.yOrigin||0,L!==lc&&(ne=L[0],D=L[1],Q=L[2],N=L[3],h=W=L[4],l=V=L[5],L.length===6?(f=Math.sqrt(ne*ne+D*D),_=Math.sqrt(N*N+Q*Q),g=ne||D?Na(D,ne)*Xs:0,w=Q||N?Na(Q,N)*Xs+g:0,w&&(_*=Math.abs(Math.cos(w*ll))),r.svg&&(h-=R-(R*ne+C*Q),l-=C-(R*D+C*N))):(Ae=L[6],he=L[7],q=L[8],be=L[9],Te=L[10],ge=L[11],h=L[12],l=L[13],d=L[14],M=Na(Ae,Te),b=M*Xs,M&&($=Math.cos(-M),U=Math.sin(-M),B=W*$+q*U,oe=V*$+be*U,se=Ae*$+Te*U,q=W*-U+q*$,be=V*-U+be*$,Te=Ae*-U+Te*$,ge=he*-U+ge*$,W=B,V=oe,Ae=se),M=Na(-Q,Te),y=M*Xs,M&&($=Math.cos(-M),U=Math.sin(-M),B=ne*$-q*U,oe=D*$-be*U,se=Q*$-Te*U,ge=N*U+ge*$,ne=B,D=oe,Q=se),M=Na(D,ne),g=M*Xs,M&&($=Math.cos(M),U=Math.sin(M),B=ne*$+D*U,oe=W*$+V*U,D=D*$-ne*U,V=V*$-W*U,ne=B,W=oe),b&&Math.abs(b)+Math.abs(g)>359.9&&(b=g=0,y=180-y),f=Dn(Math.sqrt(ne*ne+D*D+Q*Q)),_=Dn(Math.sqrt(V*V+Ae*Ae)),M=Na(W,V),w=Math.abs(M)>2e-4?M*Xs:0,k=ge?1/(ge<0?-ge:ge):0),r.svg&&(B=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!FS(Pi(e,An)),B&&e.setAttribute("transform",B))),Math.abs(w)>90&&Math.abs(w)<270&&(o?(f*=-1,w+=g<=0?180:-180,g+=g<=0?180:-180):(_*=-1,w+=w<=0?180:-180)),n=n||r.uncache,r.x=h-((r.xPercent=h&&(!n&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-h)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+s,r.y=l-((r.yPercent=l&&(!n&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-l)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+s,r.z=d+s,r.scaleX=Dn(f),r.scaleY=Dn(_),r.rotation=Dn(g)+a,r.rotationX=Dn(b)+a,r.rotationY=Dn(y)+a,r.skewX=w+a,r.skewY=A+a,r.transformPerspective=k+s,(r.zOrigin=parseFloat(c.split(" ")[2])||!n&&r.zOrigin||0)&&(i[Jr]=bd(c)),r.xOffset=r.yOffset=0,r.force3D=hi.force3D,r.renderTransform=r.svg?JI:IS?DS:QI,r.uncache=0,r},bd=function(e){return(e=e.split(" "))[0]+" "+e[1]},tp=function(e,n,r){var i=kr(n);return Dn(parseFloat(n)+parseFloat(Ls(e,"x",r+"px",i)))+i},QI=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,DS(e,n)},Gs="0deg",tu="0px",Ys=") ",DS=function(e,n){var r=n||this,i=r.xPercent,o=r.yPercent,s=r.x,a=r.y,u=r.z,c=r.rotation,h=r.rotationY,l=r.rotationX,d=r.skewX,f=r.skewY,_=r.scaleX,g=r.scaleY,b=r.transformPerspective,y=r.force3D,w=r.target,A=r.zOrigin,k="",R=y==="auto"&&e&&e!==1||y===!0;if(A&&(l!==Gs||h!==Gs)){var C=parseFloat(h)*ll,L=Math.sin(C),M=Math.cos(C),$;C=parseFloat(l)*ll,$=Math.cos(C),s=tp(w,s,L*$*-A),a=tp(w,a,-Math.sin(C)*-A),u=tp(w,u,M*$*-A+A)}b!==tu&&(k+="perspective("+b+Ys),(i||o)&&(k+="translate("+i+"%, "+o+"%) "),(R||s!==tu||a!==tu||u!==tu)&&(k+=u!==tu||R?"translate3d("+s+", "+a+", "+u+") ":"translate("+s+", "+a+Ys),c!==Gs&&(k+="rotate("+c+Ys),h!==Gs&&(k+="rotateY("+h+Ys),l!==Gs&&(k+="rotateX("+l+Ys),(d!==Gs||f!==Gs)&&(k+="skew("+d+", "+f+Ys),(_!==1||g!==1)&&(k+="scale("+_+", "+g+Ys),w.style[An]=k||"translate(0, 0)"},JI=function(e,n){var r=n||this,i=r.xPercent,o=r.yPercent,s=r.x,a=r.y,u=r.rotation,c=r.skewX,h=r.skewY,l=r.scaleX,d=r.scaleY,f=r.target,_=r.xOrigin,g=r.yOrigin,b=r.xOffset,y=r.yOffset,w=r.forceCSS,A=parseFloat(s),k=parseFloat(a),R,C,L,M,$;u=parseFloat(u),c=parseFloat(c),h=parseFloat(h),h&&(h=parseFloat(h),c+=h,u+=h),u||c?(u*=ll,c*=ll,R=Math.cos(u)*l,C=Math.sin(u)*l,L=Math.sin(u-c)*-d,M=Math.cos(u-c)*d,c&&(h*=ll,$=Math.tan(c-h),$=Math.sqrt(1+$*$),L*=$,M*=$,h&&($=Math.tan(h),$=Math.sqrt(1+$*$),R*=$,C*=$)),R=Dn(R),C=Dn(C),L=Dn(L),M=Dn(M)):(R=l,M=d,C=L=0),(A&&!~(s+"").indexOf("px")||k&&!~(a+"").indexOf("px"))&&(A=Ls(f,"x",s,"px"),k=Ls(f,"y",a,"px")),(_||g||b||y)&&(A=Dn(A+_-(_*R+g*L)+b),k=Dn(k+g-(_*C+g*M)+y)),(i||o)&&($=f.getBBox(),A=Dn(A+i/100*$.width),k=Dn(k+o/100*$.height)),$="matrix("+R+","+C+","+L+","+M+","+A+","+k+")",f.setAttribute("transform",$),w&&(f.style[An]=$)},ZI=function(e,n,r,i,o){var s=360,a=lr(o),u=parseFloat(o)*(a&&~o.indexOf("rad")?Xs:1),c=u-i,h=i+c+"deg",l,d;return a&&(l=o.split("_")[1],l==="short"&&(c%=s,c!==c%(s/2)&&(c+=c<0?s:-s)),l==="cw"&&c<0?c=(c+s*H0)%s-~~(c/s)*s:l==="ccw"&&c>0&&(c=(c-s*H0)%s-~~(c/s)*s)),e._pt=d=new Qr(e._pt,n,r,i,c,DI),d.e=h,d.u="deg",e._props.push(r),d},z0=function(e,n){for(var r in n)e[r]=n[r];return e},eL=function(e,n,r){var i=z0({},r._gsap),o="perspective,force3D,transformOrigin,svgOrigin",s=r.style,a,u,c,h,l,d,f,_;i.svg?(c=r.getAttribute("transform"),r.setAttribute("transform",""),s[An]=n,a=uc(r,1),ba(r,An),r.setAttribute("transform",c)):(c=getComputedStyle(r)[An],s[An]=n,a=uc(r,1),s[An]=c);for(u in Zo)c=i[u],h=a[u],c!==h&&o.indexOf(u)<0&&(f=kr(c),_=kr(h),l=f!==_?Ls(r,u,c,_):parseFloat(c),d=parseFloat(h),e._pt=new Qr(e._pt,a,u,l,d-l,im),e._pt.u=_||0,e._props.push(u));z0(a,i)};Xr("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",i="Bottom",o="Left",s=(e<3?[n,r,i,o]:[n+o,n+r,i+r,i+o]).map(function(a){return e<2?t+a:"border"+a+t});yd[e>1?"border"+t:t]=function(a,u,c,h,l){var d,f;if(arguments.length<4)return d=s.map(function(_){return $o(a,_,c)}),f=d.join(" "),f.split(d[0]).length===5?d[0]:f;d=(h+"").split(" "),f={},s.forEach(function(_,g){return f[_]=d[g]=d[g]||d[(g-1)/2|0]}),a.init(u,f,l)}});var $S={name:"css",register:sm,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,r,i,o){var s=this._props,a=e.style,u=r.vars.startAt,c,h,l,d,f,_,g,b,y,w,A,k,R,C,L,M;Hg||sm(),this.styles=this.styles||PS(e),M=this.styles.props,this.tween=r;for(g in n)if(g!=="autoRound"&&(h=n[g],!(si[g]&&yS(g,n,r,i,e,o)))){if(f=typeof h,_=yd[g],f==="function"&&(h=h.call(r,i,e,o),f=typeof h),f==="string"&&~h.indexOf("random(")&&(h=oc(h)),_)_(this,e,g,h,r)&&(L=1);else if(g.substr(0,2)==="--")c=(getComputedStyle(e).getPropertyValue(g)+"").trim(),h+="",Rs.lastIndex=0,Rs.test(c)||(b=kr(c),y=kr(h)),y?b!==y&&(c=Ls(e,g,c,y)+y):b&&(h+=b),this.add(a,"setProperty",c,h,i,o,0,0,g),s.push(g),M.push(g,0,a[g]);else if(f!=="undefined"){if(u&&g in u?(c=typeof u[g]=="function"?u[g].call(r,i,e,o):u[g],lr(c)&&~c.indexOf("random(")&&(c=oc(c)),kr(c+"")||c==="auto"||(c+=hi.units[g]||kr($o(e,g))||""),(c+"").charAt(1)==="="&&(c=$o(e,g))):c=$o(e,g),d=parseFloat(c),w=f==="string"&&h.charAt(1)==="="&&h.substr(0,2),w&&(h=h.substr(2)),l=parseFloat(h),g in po&&(g==="autoAlpha"&&(d===1&&$o(e,"visibility")==="hidden"&&l&&(d=0),M.push("visibility",0,a.visibility),bs(this,a,"visibility",d?"inherit":"hidden",l?"inherit":"hidden",!l)),g!=="scale"&&g!=="transform"&&(g=po[g],~g.indexOf(",")&&(g=g.split(",")[0]))),A=g in Zo,A){if(this.styles.save(g),f==="string"&&h.substring(0,6)==="var(--"&&(h=Pi(e,h.substring(4,h.indexOf(")"))),l=parseFloat(h)),k||(R=e._gsap,R.renderTransform&&!n.parseTransform||uc(e,n.parseTransform),C=n.smoothOrigin!==!1&&R.smooth,k=this._pt=new Qr(this._pt,a,An,0,1,R.renderTransform,R,0,-1),k.dep=1),g==="scale")this._pt=new Qr(this._pt,R,"scaleY",R.scaleY,(w?sl(R.scaleY,w+l):l)-R.scaleY||0,im),this._pt.u=0,s.push("scaleY",g),g+="X";else if(g==="transformOrigin"){M.push(Jr,0,a[Jr]),h=KI(h),R.svg?am(e,h,0,C,0,this):(y=parseFloat(h.split(" ")[2])||0,y!==R.zOrigin&&bs(this,R,"zOrigin",R.zOrigin,y),bs(this,a,g,bd(c),bd(h)));continue}else if(g==="svgOrigin"){am(e,h,1,C,0,this);continue}else if(g in MS){ZI(this,R,g,d,w?sl(d,w+h):h);continue}else if(g==="smoothOrigin"){bs(this,R,"smooth",R.smooth,h);continue}else if(g==="force3D"){R[g]=h;continue}else if(g==="transform"){eL(this,h,e);continue}}else g in a||(g=El(g)||g);if(A||(l||l===0)&&(d||d===0)&&!FI.test(h)&&g in a)b=(c+"").substr((d+"").length),l||(l=0),y=kr(h)||(g in hi.units?hi.units[g]:b),b!==y&&(d=Ls(e,g,c,y)),this._pt=new Qr(this._pt,A?R:a,g,d,(w?sl(d,w+l):l)-d,!A&&(y==="px"||g==="zIndex")&&n.autoRound!==!1?HI:im),this._pt.u=y||0,b!==y&&y!=="%"&&(this._pt.b=c,this._pt.r=$I);else if(g in a)YI.call(this,e,g,c,w?w+h:h);else if(g in e)this.add(e,g,c||e[g],w?w+h:h,i,o);else if(g!=="parseTransform"){xg(g,h);continue}A||(g in a?M.push(g,0,a[g]):typeof e[g]=="function"?M.push(g,2,e[g]()):M.push(g,1,c||e[g])),s.push(g)}}L&&kS(this)},render:function(e,n){if(n.tween._time||!Ng())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:$o,aliases:po,getSetter:function(e,n,r){var i=po[n];return i&&i.indexOf(",")<0&&(n=i),n in Zo&&n!==Jr&&(e._gsap.x||$o(e,"x"))?r&&$0===r?n==="scale"?UI:VI:($0=r||{})&&(n==="scale"?jI:WI):e.style&&!kg(e.style[n])?NI:~n.indexOf("-")?BI:Dg(e,n)},core:{_removeProperty:ba,_getMatrix:Vg}};ti.utils.checkPrefix=El;ti.core.getStyleSaver=PS;(function(t,e,n,r){var i=Xr(t+","+e+","+n,function(o){Zo[o]=1});Xr(e,function(o){hi.units[o]="deg",MS[o]=1}),po[i[13]]=t+","+e,Xr(r,function(o){var s=o.split(":");po[s[1]]=i[s[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Xr("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){hi.units[t]="px"});ti.registerPlugin($S);var Bn=ti.registerPlugin($S)||ti;Bn.core.Tween;/*!
 * CSSRulePlugin 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 ws,lm,Bf,wd,HS=function(){return typeof window<"u"},NS=function(){return ws||HS()&&(ws=window.gsap)&&ws.registerPlugin&&ws},q0=function(){return lm||(BS(),wd||console.warn("Please gsap.registerPlugin(CSSPlugin, CSSRulePlugin)")),lm},BS=function(e){ws=e||NS(),HS()&&(Bf=document),ws&&(wd=ws.plugins.css,wd&&(lm=1))},um={version:"3.13.0",name:"cssRule",init:function(e,n,r,i,o){if(!q0()||typeof e.cssText>"u")return!1;var s=e._gsProxy=e._gsProxy||Bf.createElement("div");this.ss=e,this.style=s.style,s.style.cssText=e.cssText,wd.prototype.init.call(this,s,n,r,i,o)},render:function(e,n){for(var r=n._pt,i=n.style,o=n.ss,s;r;)r.r(e,r.d),r=r._next;for(s=i.length;--s>-1;)o[i[s]]=i[i[s]]},getRule:function(e){q0();var n=Bf.all?"rules":"cssRules",r=Bf.styleSheets,i=r.length,o=e.charAt(0)===":",s,a,u,c;for(e=(o?"":",")+e.split("::").join(":").toLowerCase()+",",o&&(c=[]);i--;){try{if(a=r[i][n],!a)continue;s=a.length}catch(h){console.warn(h);continue}for(;--s>-1;)if(u=a[s],u.selectorText&&(","+u.selectorText.split("::").join(":").toLowerCase()+",").indexOf(e)!==-1)if(o)c.push(u.style);else return u.style}return c},register:BS};NS()&&ws.registerPlugin(um);/*!
 * paths 3.13.0
 * https://gsap.com
 *
 * Copyright 2008-2025, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license
 * @author: Jack Doyle, jack@greensock.com
*/var tL=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,nL=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig,rL=Math.PI/180,uf=Math.sin,cf=Math.cos,Ou=Math.abs,nu=Math.sqrt,iL=function(e){return typeof e=="number"},G0=1e5,ls=function(e){return Math.round(e*G0)/G0||0};function oL(t,e,n,r,i,o,s){for(var a=t.length,u,c,h,l,d;--a>-1;)for(u=t[a],c=u.length,h=0;h<c;h+=2)l=u[h],d=u[h+1],u[h]=l*e+d*r+o,u[h+1]=l*n+d*i+s;return t._dirty=1,t}function sL(t,e,n,r,i,o,s,a,u){if(!(t===a&&e===u)){n=Ou(n),r=Ou(r);var c=i%360*rL,h=cf(c),l=uf(c),d=Math.PI,f=d*2,_=(t-a)/2,g=(e-u)/2,b=h*_+l*g,y=-l*_+h*g,w=b*b,A=y*y,k=w/(n*n)+A/(r*r);k>1&&(n=nu(k)*n,r=nu(k)*r);var R=n*n,C=r*r,L=(R*C-R*A-C*w)/(R*A+C*w);L<0&&(L=0);var M=(o===s?-1:1)*nu(L),$=M*(n*y/r),U=M*-(r*b/n),ne=(t+a)/2,D=(e+u)/2,Q=ne+(h*$-l*U),N=D+(l*$+h*U),W=(b-$)/n,V=(y-U)/r,B=(-b-$)/n,oe=(-y-U)/r,se=W*W+V*V,q=(V<0?-1:1)*Math.acos(W/nu(se)),be=(W*oe-V*B<0?-1:1)*Math.acos((W*B+V*oe)/nu(se*(B*B+oe*oe)));isNaN(be)&&(be=d),!s&&be>0?be-=f:s&&be<0&&(be+=f),q%=f,be%=f;var Te=Math.ceil(Ou(be)/(f/4)),he=[],ge=be/Te,Ae=4/3*uf(ge/2)/(1+cf(ge/2)),ye=h*n,ie=l*n,le=l*-r,pe=h*r,Se;for(Se=0;Se<Te;Se++)i=q+Se*ge,b=cf(i),y=uf(i),W=cf(i+=ge),V=uf(i),he.push(b-Ae*y,y+Ae*b,W+Ae*V,V-Ae*W,W,V);for(Se=0;Se<he.length;Se+=2)b=he[Se],y=he[Se+1],he[Se]=b*ye+y*le+Q,he[Se+1]=b*ie+y*pe+N;return he[Se-2]=a,he[Se-1]=u,he}}function aL(t){var e=(t+"").replace(nL,function($){var U=+$;return U<1e-4&&U>-1e-4?0:U}).match(tL)||[],n=[],r=0,i=0,o=2/3,s=e.length,a=0,u="ERROR: malformed path: "+t,c,h,l,d,f,_,g,b,y,w,A,k,R,C,L,M=function(U,ne,D,Q){w=(D-U)/3,A=(Q-ne)/3,g.push(U+w,ne+A,D-w,Q-A,D,Q)};if(!t||!isNaN(e[0])||isNaN(e[1]))return n;for(c=0;c<s;c++)if(R=f,isNaN(e[c])?(f=e[c].toUpperCase(),_=f!==e[c]):c--,l=+e[c+1],d=+e[c+2],_&&(l+=r,d+=i),c||(b=l,y=d),f==="M")g&&(g.length<8?n.length-=1:a+=g.length),r=b=l,i=y=d,g=[l,d],n.push(g),c+=2,f="L";else if(f==="C")g||(g=[0,0]),_||(r=i=0),g.push(l,d,r+e[c+3]*1,i+e[c+4]*1,r+=e[c+5]*1,i+=e[c+6]*1),c+=6;else if(f==="S")w=r,A=i,(R==="C"||R==="S")&&(w+=r-g[g.length-4],A+=i-g[g.length-3]),_||(r=i=0),g.push(w,A,l,d,r+=e[c+3]*1,i+=e[c+4]*1),c+=4;else if(f==="Q")w=r+(l-r)*o,A=i+(d-i)*o,_||(r=i=0),r+=e[c+3]*1,i+=e[c+4]*1,g.push(w,A,r+(l-r)*o,i+(d-i)*o,r,i),c+=4;else if(f==="T")w=r-g[g.length-4],A=i-g[g.length-3],g.push(r+w,i+A,l+(r+w*1.5-l)*o,d+(i+A*1.5-d)*o,r=l,i=d),c+=2;else if(f==="H")M(r,i,r=l,i),c+=1;else if(f==="V")M(r,i,r,i=l+(_?i-r:0)),c+=1;else if(f==="L"||f==="Z")f==="Z"&&(l=b,d=y,g.closed=!0),(f==="L"||Ou(r-l)>.5||Ou(i-d)>.5)&&(M(r,i,l,d),f==="L"&&(c+=2)),r=l,i=d;else if(f==="A"){if(C=e[c+4],L=e[c+5],w=e[c+6],A=e[c+7],h=7,C.length>1&&(C.length<3?(A=w,w=L,h--):(A=L,w=C.substr(2),h-=2),L=C.charAt(1),C=C.charAt(0)),k=sL(r,i,+e[c+1],+e[c+2],+e[c+3],+C,+L,(_?r:0)+w*1,(_?i:0)+A*1),c+=h,k)for(h=0;h<k.length;h++)g.push(k[h]);r=g[g.length-2],i=g[g.length-1]}return c=g.length,c<6?(n.pop(),c=0):g[0]===g[c-2]&&g[1]===g[c-1]&&(g.closed=!0),n.totalPoints=a+c,n}function lL(t){iL(t[0])&&(t=[t]);var e="",n=t.length,r,i,o,s;for(i=0;i<n;i++){for(s=t[i],e+="M"+ls(s[0])+","+ls(s[1])+" C",r=s.length,o=2;o<r;o++)e+=ls(s[o++])+","+ls(s[o++])+" "+ls(s[o++])+","+ls(s[o++])+" "+ls(s[o++])+","+ls(s[o])+" ";s.closed&&(e+="z")}return e}/*!
 * CustomEase 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 Gr,VS,US=function(){return Gr||typeof window<"u"&&(Gr=window.gsap)&&Gr.registerPlugin&&Gr},Y0=function(){Gr=US(),Gr?(Gr.registerEase("_CE",kl.create),VS=1):console.warn("Please gsap.registerPlugin(CustomEase)")},uL=1e20,ff=function(e){return~~(e*1e3+(e<0?-.5:.5))/1e3},cL=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,fL=/[cLlsSaAhHvVtTqQ]/g,dL=function(e){var n=e.length,r=uL,i;for(i=1;i<n;i+=6)+e[i]<r&&(r=+e[i]);return r},hL=function(e,n,r){!r&&r!==0&&(r=Math.max(+e[e.length-1],+e[1]));var i=+e[0]*-1,o=-r,s=e.length,a=1/(+e[s-2]+i),u=-n||(Math.abs(+e[s-1]-+e[1])<.01*(+e[s-2]-+e[0])?dL(e)+o:+e[s-1]+o),c;for(u?u=1/u:u=-a,c=0;c<s;c+=2)e[c]=(+e[c]+i)*a,e[c+1]=(+e[c+1]+o)*u},pL=function t(e,n,r,i,o,s,a,u,c,h,l){var d=(e+r)/2,f=(n+i)/2,_=(r+o)/2,g=(i+s)/2,b=(o+a)/2,y=(s+u)/2,w=(d+_)/2,A=(f+g)/2,k=(_+b)/2,R=(g+y)/2,C=(w+k)/2,L=(A+R)/2,M=a-e,$=u-n,U=Math.abs((r-a)*$-(i-u)*M),ne=Math.abs((o-a)*$-(s-u)*M),D;return h||(h=[{x:e,y:n},{x:a,y:u}],l=1),h.splice(l||h.length-1,0,{x:C,y:L}),(U+ne)*(U+ne)>c*(M*M+$*$)&&(D=h.length,t(e,n,d,f,w,A,C,L,c,h,l),t(C,L,k,R,b,y,a,u,c,h,l+1+(h.length-D))),h},kl=function(){function t(n,r,i){VS||Y0(),this.id=n,this.setData(r,i)}var e=t.prototype;return e.setData=function(r,i){i=i||{},r=r||"0,0,1,1";var o=r.match(cL),s=1,a=[],u=[],c=i.precision||1,h=c<=1,l,d,f,_,g,b,y,w,A;if(this.data=r,(fL.test(r)||~r.indexOf("M")&&r.indexOf("C")<0)&&(o=aL(r)[0]),l=o.length,l===4)o.unshift(0,0),o.push(1,1),l=8;else if((l-2)%6)throw"Invalid CustomEase";for((+o[0]!=0||+o[l-2]!=1)&&hL(o,i.height,i.originY),this.segment=o,_=2;_<l;_+=6)d={x:+o[_-2],y:+o[_-1]},f={x:+o[_+4],y:+o[_+5]},a.push(d,f),pL(d.x,d.y,+o[_],+o[_+1],+o[_+2],+o[_+3],f.x,f.y,1/(c*2e5),a,a.length-1);for(l=a.length,_=0;_<l;_++)y=a[_],w=a[_-1]||y,(y.x>w.x||w.y!==y.y&&w.x===y.x||y===w)&&y.x<=1?(w.cx=y.x-w.x,w.cy=y.y-w.y,w.n=y,w.nx=y.x,h&&_>1&&Math.abs(w.cy/w.cx-a[_-2].cy/a[_-2].cx)>2&&(h=0),w.cx<s&&(w.cx?s=w.cx:(w.cx=.001,_===l-1&&(w.x-=.001,s=Math.min(s,.001),h=0)))):(a.splice(_--,1),l--);if(l=1/s+1|0,g=1/l,b=0,y=a[0],h){for(_=0;_<l;_++)A=_*g,y.nx<A&&(y=a[++b]),d=y.y+(A-y.x)/y.cx*y.cy,u[_]={x:A,cx:g,y:d,cy:0,nx:9},_&&(u[_-1].cy=d-u[_-1].y);b=a[a.length-1],u[l-1].cy=b.y-d,u[l-1].cx=b.x-u[u.length-1].x}else{for(_=0;_<l;_++)y.nx<_*g&&(y=a[++b]),u[_]=y;b<a.length-1&&(u[_-1]=a[a.length-2])}return this.ease=function(k){var R=u[k*l|0]||u[l-1];return R.nx<k&&(R=R.n),R.y+(k-R.x)/R.cx*R.cy},this.ease.custom=this,this.id&&Gr&&Gr.registerEase(this.id,this.ease),this},e.getSVGData=function(r){return t.getSVGData(this,r)},t.create=function(r,i,o){return new t(r,i,o).ease},t.register=function(r){Gr=r,Y0()},t.get=function(r){return Gr.parseEase(r)},t.getSVGData=function(r,i){i=i||{};var o=i.width||100,s=i.height||100,a=i.x||0,u=(i.y||0)+s,c=Gr.utils.toArray(i.path)[0],h,l,d,f,_,g,b,y,w,A;if(i.invert&&(s=-s,u=0),typeof r=="string"&&(r=Gr.parseEase(r)),r.custom&&(r=r.custom),r instanceof t)h=lL(oL([r.segment],o,0,0,-s,a,u));else{for(h=[a,u],b=Math.max(5,(i.precision||1)*200),f=1/b,b+=2,y=5/b,w=ff(a+f*o),A=ff(u+r(f)*-s),l=(A-u)/(w-a),d=2;d<b;d++)_=ff(a+d*f*o),g=ff(u+r(d*f)*-s),(Math.abs((g-A)/(_-w)-l)>y||d===b-1)&&(h.push(w,A),l=(g-A)/(_-w)),w=_,A=g;h="M"+h.join(",")}return c&&c.setAttribute("d",h),h},t}();kl.version="3.13.0";kl.headless=!0;US()&&Gr.registerPlugin(kl);/*!
 * SplitText 3.13.0
 * https://gsap.com
 *
 * @license Copyright 2025, GreenSock. All rights reserved. Subject to the terms at https://gsap.com/standard-license.
 * @author: Jack Doyle
 */let ru,Ba,cm,mL=()=>cm||hm.register(window.gsap),K0=typeof Intl<"u"?new Intl.Segmenter:0,Sd=t=>typeof t=="string"?Sd(document.querySelectorAll(t)):"length"in t?Array.from(t):[t],X0=t=>Sd(t).filter(e=>e instanceof HTMLElement),fm=[],np=function(){},gL=/\s+/g,Q0=new RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.","gu"),J0={left:0,top:0,width:0,height:0},Z0=(t,e)=>{if(e){let n=new Set(t.join("").match(e)||fm),r=t.length,i,o,s,a;if(n.size)for(;--r>-1;){o=t[r];for(s of n)if(s.startsWith(o)&&s.length>o.length){for(i=0,a=o;s.startsWith(a+=t[r+ ++i])&&a.length<s.length;);if(i&&a.length===s.length){t[r]=s,t.splice(r+1,i);break}}}}return t},ey=t=>window.getComputedStyle(t).display==="inline"&&(t.style.display="inline-block"),Va=(t,e,n)=>e.insertBefore(typeof t=="string"?document.createTextNode(t):t,n),dm=(t,e,n)=>{let r=e[t+"sClass"]||"",{tag:i="div",aria:o="auto",propIndex:s=!1}=e,a=t==="line"?"block":"inline-block",u=r.indexOf("++")>-1,c=h=>{let l=document.createElement(i),d=n.length+1;return r&&(l.className=r+(u?" "+r+d:"")),s&&l.style.setProperty("--"+t,d+""),o!=="none"&&l.setAttribute("aria-hidden","true"),i!=="span"&&(l.style.position="relative",l.style.display=a),l.textContent=h,n.push(l),l};return u&&(r=r.replace("++","")),c.collection=n,c},_L=(t,e,n,r)=>{let i=dm("line",n,r),o=window.getComputedStyle(t).textAlign||"left";return(s,a)=>{let u=i("");for(u.style.textAlign=o,t.insertBefore(u,e[s]);s<a;s++)u.appendChild(e[s]);u.normalize()}},jS=(t,e,n,r,i,o,s,a,u,c)=>{var h;let l=Array.from(t.childNodes),d=0,{wordDelimiter:f,reduceWhiteSpace:_=!0,prepareText:g}=e,b=t.getBoundingClientRect(),y=b,w=!_&&window.getComputedStyle(t).whiteSpace.substring(0,3)==="pre",A=0,k=n.collection,R,C,L,M,$,U,ne,D,Q,N,W,V,B,oe,se,q,be,Te;for(typeof f=="object"?(L=f.delimiter||f,C=f.replaceWith||""):C=f===""?"":f||" ",R=C!==" ";d<l.length;d++)if(M=l[d],M.nodeType===3){for(se=M.textContent||"",_?se=se.replace(gL," "):w&&(se=se.replace(/\n/g,C+`
`)),g&&(se=g(se,t)),M.textContent=se,$=C||L?se.split(L||C):se.match(a)||fm,be=$[$.length-1],D=R?be.slice(-1)===" ":!be,be||$.pop(),y=b,ne=R?$[0].charAt(0)===" ":!$[0],ne&&Va(" ",t,M),$[0]||$.shift(),Z0($,u),o&&c||(M.textContent=""),Q=1;Q<=$.length;Q++)if(q=$[Q-1],!_&&w&&q.charAt(0)===`
`&&((h=M.previousSibling)==null||h.remove(),Va(document.createElement("br"),t,M),q=q.slice(1)),!_&&q==="")Va(C,t,M);else if(q===" ")t.insertBefore(document.createTextNode(" "),M);else{if(R&&q.charAt(0)===" "&&Va(" ",t,M),A&&Q===1&&!ne&&k.indexOf(A.parentNode)>-1?(U=k[k.length-1],U.appendChild(document.createTextNode(r?"":q))):(U=n(r?"":q),Va(U,t,M),A&&Q===1&&!ne&&U.insertBefore(A,U.firstChild)),r)for(W=K0?Z0([...K0.segment(q)].map(he=>he.segment),u):q.match(a)||fm,Te=0;Te<W.length;Te++)U.appendChild(W[Te]===" "?document.createTextNode(" "):r(W[Te]));if(o&&c){if(se=M.textContent=se.substring(q.length+1,se.length),N=U.getBoundingClientRect(),N.top>y.top&&N.left<=y.left){for(V=t.cloneNode(),B=t.childNodes[0];B&&B!==U;)oe=B,B=B.nextSibling,V.appendChild(oe);t.parentNode.insertBefore(V,t),i&&ey(V)}y=N}(Q<$.length||D)&&Va(Q>=$.length?" ":R&&q.slice(-1)===" "?" "+C:C,t,M)}t.removeChild(M),A=0}else M.nodeType===1&&(s&&s.indexOf(M)>-1?(k.indexOf(M.previousSibling)>-1&&k[k.length-1].appendChild(M),A=M):(jS(M,e,n,r,i,o,s,a,u,!0),A=0),i&&ey(M))};const WS=class zS{constructor(e,n){this.isSplit=!1,mL(),this.elements=X0(e),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=n,this._split=()=>this.isSplit&&this.split(this.vars);let r=[],i,o=()=>{let s=r.length,a;for(;s--;){a=r[s];let u=a.element.offsetWidth;if(u!==a.width){a.width=u,this._split();return}}};this._data={orig:r,obs:typeof ResizeObserver<"u"&&new ResizeObserver(()=>{clearTimeout(i),i=setTimeout(o,200)})},np(this),this.split(n)}split(e){this.isSplit&&this.revert(),this.vars=e=e||this.vars||{};let{type:n="chars,words,lines",aria:r="auto",deepSlice:i=!0,smartWrap:o,onSplit:s,autoSplit:a=!1,specialChars:u,mask:c}=this.vars,h=n.indexOf("lines")>-1,l=n.indexOf("chars")>-1,d=n.indexOf("words")>-1,f=l&&!d&&!h,_=u&&("push"in u?new RegExp("(?:"+u.join("|")+")","gu"):u),g=_?new RegExp(_.source+"|"+Q0.source,"gu"):Q0,b=!!e.ignore&&X0(e.ignore),{orig:y,animTime:w,obs:A}=this._data,k;return(l||d||h)&&(this.elements.forEach((R,C)=>{y[C]={element:R,html:R.innerHTML,ariaL:R.getAttribute("aria-label"),ariaH:R.getAttribute("aria-hidden")},r==="auto"?R.setAttribute("aria-label",(R.textContent||"").trim()):r==="hidden"&&R.setAttribute("aria-hidden","true");let L=[],M=[],$=[],U=l?dm("char",e,L):null,ne=dm("word",e,M),D,Q,N,W;if(jS(R,e,ne,U,f,i&&(h||f),b,g,_,!1),h){let V=Sd(R.childNodes),B=_L(R,V,e,$),oe,se=[],q=0,be=V.map(he=>he.nodeType===1?he.getBoundingClientRect():J0),Te=J0;for(D=0;D<V.length;D++)oe=V[D],oe.nodeType===1&&(oe.nodeName==="BR"?(se.push(oe),B(q,D+1),q=D+1,Te=be[q]):(D&&be[D].top>Te.top&&be[D].left<=Te.left&&(B(q,D),q=D),Te=be[D]));q<D&&B(q,D),se.forEach(he=>{var ge;return(ge=he.parentNode)==null?void 0:ge.removeChild(he)})}if(!d){for(D=0;D<M.length;D++)if(Q=M[D],l||!Q.nextSibling||Q.nextSibling.nodeType!==3)if(o&&!h){for(N=document.createElement("span"),N.style.whiteSpace="nowrap";Q.firstChild;)N.appendChild(Q.firstChild);Q.replaceWith(N)}else Q.replaceWith(...Q.childNodes);else W=Q.nextSibling,W&&W.nodeType===3&&(W.textContent=(Q.textContent||"")+(W.textContent||""),Q.remove());M.length=0,R.normalize()}this.lines.push(...$),this.words.push(...M),this.chars.push(...L)}),c&&this[c]&&this.masks.push(...this[c].map(R=>{let C=R.cloneNode();return R.replaceWith(C),C.appendChild(R),R.className&&(C.className=R.className.replace(/(\b\w+\b)/g,"$1-mask")),C.style.overflow="clip",C}))),this.isSplit=!0,Ba&&(a?Ba.addEventListener("loadingdone",this._split):Ba.status==="loading"&&console.warn("SplitText called before fonts loaded")),(k=s&&s(this))&&k.totalTime&&(this._data.anim=w?k.totalTime(w):k),h&&a&&this.elements.forEach((R,C)=>{y[C].width=R.offsetWidth,A&&A.observe(R)}),this}revert(){var e,n;let{orig:r,anim:i,obs:o}=this._data;return o&&o.disconnect(),r.forEach(({element:s,html:a,ariaL:u,ariaH:c})=>{s.innerHTML=a,u?s.setAttribute("aria-label",u):s.removeAttribute("aria-label"),c?s.setAttribute("aria-hidden",c):s.removeAttribute("aria-hidden")}),this.chars.length=this.words.length=this.lines.length=r.length=this.masks.length=0,this.isSplit=!1,Ba==null||Ba.removeEventListener("loadingdone",this._split),i&&(this._data.animTime=i.totalTime(),i.revert()),(n=(e=this.vars).onRevert)==null||n.call(e,this),this}static create(e,n){return new zS(e,n)}static register(e){ru=ru||e||window.gsap,ru&&(Sd=ru.utils.toArray,np=ru.core.context||np),!cm&&window.innerWidth>0&&(Ba=document.fonts,cm=!0)}};WS.version="3.13.0";let hm=WS;function vL(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function yL(t,e,n){return e&&vL(t.prototype,e),t}/*!
 * Observer 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 dr,Vf,ui,Ss,Ts,ul,qS,Qs,Mu,GS,jo,Ui,YS,KS=function(){return dr||typeof window<"u"&&(dr=window.gsap)&&dr.registerPlugin&&dr},XS=1,el=[],Pt=[],bo=[],Fu=Date.now,pm=function(e,n){return n},bL=function(){var e=Mu.core,n=e.bridge||{},r=e._scrollers,i=e._proxies;r.push.apply(r,Pt),i.push.apply(i,bo),Pt=r,bo=i,pm=function(s,a){return n[s](a)}},xs=function(e,n){return~bo.indexOf(e)&&bo[bo.indexOf(e)+1][n]},Du=function(e){return!!~GS.indexOf(e)},Or=function(e,n,r,i,o){return e.addEventListener(n,r,{passive:i!==!1,capture:!!o})},Ir=function(e,n,r,i){return e.removeEventListener(n,r,!!i)},df="scrollLeft",hf="scrollTop",mm=function(){return jo&&jo.isPressed||Pt.cache++},Td=function(e,n){var r=function i(o){if(o||o===0){XS&&(ui.history.scrollRestoration="manual");var s=jo&&jo.isPressed;o=i.v=Math.round(o)||(jo&&jo.iOS?1:0),e(o),i.cacheID=Pt.cache,s&&pm("ss",o)}else(n||Pt.cache!==i.cacheID||pm("ref"))&&(i.cacheID=Pt.cache,i.v=e());return i.v+i.offset};return r.offset=0,e&&r},Ur={s:df,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Td(function(t){return arguments.length?ui.scrollTo(t,Qn.sc()):ui.pageXOffset||Ss[df]||Ts[df]||ul[df]||0})},Qn={s:hf,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Ur,sc:Td(function(t){return arguments.length?ui.scrollTo(Ur.sc(),t):ui.pageYOffset||Ss[hf]||Ts[hf]||ul[hf]||0})},qr=function(e,n){return(n&&n._ctx&&n._ctx.selector||dr.utils.toArray)(e)[0]||(typeof e=="string"&&dr.config().nullTargetWarn!==!1?console.warn("Element not found:",e):null)},wL=function(e,n){for(var r=n.length;r--;)if(n[r]===e||n[r].contains(e))return!0;return!1},Os=function(e,n){var r=n.s,i=n.sc;Du(e)&&(e=Ss.scrollingElement||Ts);var o=Pt.indexOf(e),s=i===Qn.sc?1:2;!~o&&(o=Pt.push(e)-1),Pt[o+s]||Or(e,"scroll",mm);var a=Pt[o+s],u=a||(Pt[o+s]=Td(xs(e,r),!0)||(Du(e)?i:Td(function(c){return arguments.length?e[r]=c:e[r]})));return u.target=e,a||(u.smooth=dr.getProperty(e,"scrollBehavior")==="smooth"),u},gm=function(e,n,r){var i=e,o=e,s=Fu(),a=s,u=n||50,c=Math.max(500,u*3),h=function(_,g){var b=Fu();g||b-s>u?(o=i,i=_,a=s,s=b):r?i+=_:i=o+(_-o)/(b-a)*(s-a)},l=function(){o=i=r?0:i,a=s=0},d=function(_){var g=a,b=o,y=Fu();return(_||_===0)&&_!==i&&h(_),s===a||y-a>c?0:(i+(r?b:-b))/((r?y:s)-g)*1e3};return{update:h,reset:l,getVelocity:d}},iu=function(e,n){return n&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},ty=function(e){var n=Math.max.apply(Math,e),r=Math.min.apply(Math,e);return Math.abs(n)>=Math.abs(r)?n:r},QS=function(){Mu=dr.core.globals().ScrollTrigger,Mu&&Mu.core&&bL()},JS=function(e){return dr=e||KS(),!Vf&&dr&&typeof document<"u"&&document.body&&(ui=window,Ss=document,Ts=Ss.documentElement,ul=Ss.body,GS=[ui,Ss,Ts,ul],dr.utils.clamp,YS=dr.core.context||function(){},Qs="onpointerenter"in ul?"pointer":"mouse",qS=$n.isTouch=ui.matchMedia&&ui.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in ui||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Ui=$n.eventTypes=("ontouchstart"in Ts?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Ts?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return XS=0},500),QS(),Vf=1),Vf};Ur.op=Qn;Pt.cache=0;var $n=function(){function t(n){this.init(n)}var e=t.prototype;return e.init=function(r){Vf||JS(dr)||console.warn("Please gsap.registerPlugin(Observer)"),Mu||QS();var i=r.tolerance,o=r.dragMinimum,s=r.type,a=r.target,u=r.lineHeight,c=r.debounce,h=r.preventDefault,l=r.onStop,d=r.onStopDelay,f=r.ignore,_=r.wheelSpeed,g=r.event,b=r.onDragStart,y=r.onDragEnd,w=r.onDrag,A=r.onPress,k=r.onRelease,R=r.onRight,C=r.onLeft,L=r.onUp,M=r.onDown,$=r.onChangeX,U=r.onChangeY,ne=r.onChange,D=r.onToggleX,Q=r.onToggleY,N=r.onHover,W=r.onHoverEnd,V=r.onMove,B=r.ignoreCheck,oe=r.isNormalizer,se=r.onGestureStart,q=r.onGestureEnd,be=r.onWheel,Te=r.onEnable,he=r.onDisable,ge=r.onClick,Ae=r.scrollSpeed,ye=r.capture,ie=r.allowClicks,le=r.lockAxis,pe=r.onLockAxis;this.target=a=qr(a)||Ts,this.vars=r,f&&(f=dr.utils.toArray(f)),i=i||1e-9,o=o||0,_=_||1,Ae=Ae||1,s=s||"wheel,touch,pointer",c=c!==!1,u||(u=parseFloat(ui.getComputedStyle(ul).lineHeight)||22);var Se,Ie,z,P,Y,ee,K,x=this,G=0,I=0,F=r.passive||!h&&r.passive!==!1,Z=Os(a,Ur),fe=Os(a,Qn),ue=Z(),S=fe(),m=~s.indexOf("touch")&&!~s.indexOf("pointer")&&Ui[0]==="pointerdown",T=Du(a),H=a.ownerDocument||Ss,re=[0,0,0],ce=[0,0,0],Ee=0,De=function(){return Ee=Fu()},Pe=function(ot,Ot){return(x.event=ot)&&f&&wL(ot.target,f)||Ot&&m&&ot.pointerType!=="touch"||B&&B(ot,Ot)},Be=function(){x._vx.reset(),x._vy.reset(),Ie.pause(),l&&l(x)},Qe=function(){var ot=x.deltaX=ty(re),Ot=x.deltaY=ty(ce),ze=Math.abs(ot)>=i,ct=Math.abs(Ot)>=i;ne&&(ze||ct)&&ne(x,ot,Ot,re,ce),ze&&(R&&x.deltaX>0&&R(x),C&&x.deltaX<0&&C(x),$&&$(x),D&&x.deltaX<0!=G<0&&D(x),G=x.deltaX,re[0]=re[1]=re[2]=0),ct&&(M&&x.deltaY>0&&M(x),L&&x.deltaY<0&&L(x),U&&U(x),Q&&x.deltaY<0!=I<0&&Q(x),I=x.deltaY,ce[0]=ce[1]=ce[2]=0),(P||z)&&(V&&V(x),z&&(b&&z===1&&b(x),w&&w(x),z=0),P=!1),ee&&!(ee=!1)&&pe&&pe(x),Y&&(be(x),Y=!1),Se=0},tt=function(ot,Ot,ze){re[ze]+=ot,ce[ze]+=Ot,x._vx.update(ot),x._vy.update(Ot),c?Se||(Se=requestAnimationFrame(Qe)):Qe()},pt=function(ot,Ot){le&&!K&&(x.axis=K=Math.abs(ot)>Math.abs(Ot)?"x":"y",ee=!0),K!=="y"&&(re[2]+=ot,x._vx.update(ot,!0)),K!=="x"&&(ce[2]+=Ot,x._vy.update(Ot,!0)),c?Se||(Se=requestAnimationFrame(Qe)):Qe()},mt=function(ot){if(!Pe(ot,1)){ot=iu(ot,h);var Ot=ot.clientX,ze=ot.clientY,ct=Ot-x.x,it=ze-x.y,Le=x.isDragging;x.x=Ot,x.y=ze,(Le||(ct||it)&&(Math.abs(x.startX-Ot)>=o||Math.abs(x.startY-ze)>=o))&&(z=Le?2:1,Le||(x.isDragging=!0),pt(ct,it))}},rn=x.onPress=function(rt){Pe(rt,1)||rt&&rt.button||(x.axis=K=null,Ie.pause(),x.isPressed=!0,rt=iu(rt),G=I=0,x.startX=x.x=rt.clientX,x.startY=x.y=rt.clientY,x._vx.reset(),x._vy.reset(),Or(oe?a:H,Ui[1],mt,F,!0),x.deltaX=x.deltaY=0,A&&A(x))},nt=x.onRelease=function(rt){if(!Pe(rt,1)){Ir(oe?a:H,Ui[1],mt,!0);var ot=!isNaN(x.y-x.startY),Ot=x.isDragging,ze=Ot&&(Math.abs(x.x-x.startX)>3||Math.abs(x.y-x.startY)>3),ct=iu(rt);!ze&&ot&&(x._vx.reset(),x._vy.reset(),h&&ie&&dr.delayedCall(.08,function(){if(Fu()-Ee>300&&!rt.defaultPrevented){if(rt.target.click)rt.target.click();else if(H.createEvent){var it=H.createEvent("MouseEvents");it.initMouseEvent("click",!0,!0,ui,1,ct.screenX,ct.screenY,ct.clientX,ct.clientY,!1,!1,!1,!1,0,null),rt.target.dispatchEvent(it)}}})),x.isDragging=x.isGesturing=x.isPressed=!1,l&&Ot&&!oe&&Ie.restart(!0),z&&Qe(),y&&Ot&&y(x),k&&k(x,ze)}},Ut=function(ot){return ot.touches&&ot.touches.length>1&&(x.isGesturing=!0)&&se(ot,x.isDragging)},kt=function(){return(x.isGesturing=!1)||q(x)},dt=function(ot){if(!Pe(ot)){var Ot=Z(),ze=fe();tt((Ot-ue)*Ae,(ze-S)*Ae,1),ue=Ot,S=ze,l&&Ie.restart(!0)}},jt=function(ot){if(!Pe(ot)){ot=iu(ot,h),be&&(Y=!0);var Ot=(ot.deltaMode===1?u:ot.deltaMode===2?ui.innerHeight:1)*_;tt(ot.deltaX*Ot,ot.deltaY*Ot,0),l&&!oe&&Ie.restart(!0)}},Cn=function(ot){if(!Pe(ot)){var Ot=ot.clientX,ze=ot.clientY,ct=Ot-x.x,it=ze-x.y;x.x=Ot,x.y=ze,P=!0,l&&Ie.restart(!0),(ct||it)&&pt(ct,it)}},Pn=function(ot){x.event=ot,N(x)},Ke=function(ot){x.event=ot,W(x)},ht=function(ot){return Pe(ot)||iu(ot,h)&&ge(x)};Ie=x._dc=dr.delayedCall(d||.25,Be).pause(),x.deltaX=x.deltaY=0,x._vx=gm(0,50,!0),x._vy=gm(0,50,!0),x.scrollX=Z,x.scrollY=fe,x.isDragging=x.isGesturing=x.isPressed=!1,YS(this),x.enable=function(rt){return x.isEnabled||(Or(T?H:a,"scroll",mm),s.indexOf("scroll")>=0&&Or(T?H:a,"scroll",dt,F,ye),s.indexOf("wheel")>=0&&Or(a,"wheel",jt,F,ye),(s.indexOf("touch")>=0&&qS||s.indexOf("pointer")>=0)&&(Or(a,Ui[0],rn,F,ye),Or(H,Ui[2],nt),Or(H,Ui[3],nt),ie&&Or(a,"click",De,!0,!0),ge&&Or(a,"click",ht),se&&Or(H,"gesturestart",Ut),q&&Or(H,"gestureend",kt),N&&Or(a,Qs+"enter",Pn),W&&Or(a,Qs+"leave",Ke),V&&Or(a,Qs+"move",Cn)),x.isEnabled=!0,x.isDragging=x.isGesturing=x.isPressed=P=z=!1,x._vx.reset(),x._vy.reset(),ue=Z(),S=fe(),rt&&rt.type&&rn(rt),Te&&Te(x)),x},x.disable=function(){x.isEnabled&&(el.filter(function(rt){return rt!==x&&Du(rt.target)}).length||Ir(T?H:a,"scroll",mm),x.isPressed&&(x._vx.reset(),x._vy.reset(),Ir(oe?a:H,Ui[1],mt,!0)),Ir(T?H:a,"scroll",dt,ye),Ir(a,"wheel",jt,ye),Ir(a,Ui[0],rn,ye),Ir(H,Ui[2],nt),Ir(H,Ui[3],nt),Ir(a,"click",De,!0),Ir(a,"click",ht),Ir(H,"gesturestart",Ut),Ir(H,"gestureend",kt),Ir(a,Qs+"enter",Pn),Ir(a,Qs+"leave",Ke),Ir(a,Qs+"move",Cn),x.isEnabled=x.isPressed=x.isDragging=!1,he&&he(x))},x.kill=x.revert=function(){x.disable();var rt=el.indexOf(x);rt>=0&&el.splice(rt,1),jo===x&&(jo=0)},el.push(x),oe&&Du(a)&&(jo=x),x.enable(g)},yL(t,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),t}();$n.version="3.13.0";$n.create=function(t){return new $n(t)};$n.register=JS;$n.getAll=function(){return el.slice()};$n.getById=function(t){return el.filter(function(e){return e.vars.id===t})[0]};KS()&&dr.registerPlugin($n);/*!
 * ScrollTrigger 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 Ze,Ga,Ct,pn,ai,en,Ug,Ed,cc,$u,pu,pf,br,sh,_m,Hr,ny,ry,Ya,ZS,rp,eT,$r,vm,tT,nT,ds,ym,jg,cl,Wg,kd,bm,ip,mf=1,Sr=Date.now,op=Sr(),Mi=0,mu=0,iy=function(e,n,r){var i=oi(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return r["_"+n+"Clamp"]=i,i?e.substr(6,e.length-7):e},oy=function(e,n){return n&&(!oi(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},SL=function t(){return mu&&requestAnimationFrame(t)},sy=function(){return sh=1},ay=function(){return sh=0},uo=function(e){return e},gu=function(e){return Math.round(e*1e5)/1e5||0},rT=function(){return typeof window<"u"},iT=function(){return Ze||rT()&&(Ze=window.gsap)&&Ze.registerPlugin&&Ze},wa=function(e){return!!~Ug.indexOf(e)},oT=function(e){return(e==="Height"?Wg:Ct["inner"+e])||ai["client"+e]||en["client"+e]},sT=function(e){return xs(e,"getBoundingClientRect")||(wa(e)?function(){return qf.width=Ct.innerWidth,qf.height=Wg,qf}:function(){return Bo(e)})},TL=function(e,n,r){var i=r.d,o=r.d2,s=r.a;return(s=xs(e,"getBoundingClientRect"))?function(){return s()[i]}:function(){return(n?oT(o):e["client"+o])||0}},EL=function(e,n){return!n||~bo.indexOf(e)?sT(e):function(){return qf}},mo=function(e,n){var r=n.s,i=n.d2,o=n.d,s=n.a;return Math.max(0,(r="scroll"+i)&&(s=xs(e,r))?s()-sT(e)()[o]:wa(e)?(ai[r]||en[r])-oT(i):e[r]-e["offset"+i])},gf=function(e,n){for(var r=0;r<Ya.length;r+=3)(!n||~n.indexOf(Ya[r+1]))&&e(Ya[r],Ya[r+1],Ya[r+2])},oi=function(e){return typeof e=="string"},Ar=function(e){return typeof e=="function"},_u=function(e){return typeof e=="number"},Js=function(e){return typeof e=="object"},ou=function(e,n,r){return e&&e.progress(n?0:1)&&r&&e.pause()},sp=function(e,n){if(e.enabled){var r=e._ctx?e._ctx.add(function(){return n(e)}):n(e);r&&r.totalTime&&(e.callbackAnimation=r)}},Ua=Math.abs,aT="left",lT="top",zg="right",qg="bottom",da="width",ha="height",Hu="Right",Nu="Left",Bu="Top",Vu="Bottom",Vn="padding",Ai="margin",Al="Width",Gg="Height",Xn="px",Ri=function(e){return Ct.getComputedStyle(e)},kL=function(e){var n=Ri(e).position;e.style.position=n==="absolute"||n==="fixed"?n:"relative"},ly=function(e,n){for(var r in n)r in e||(e[r]=n[r]);return e},Bo=function(e,n){var r=n&&Ri(e)[_m]!=="matrix(1, 0, 0, 1, 0, 0)"&&Ze.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),i=e.getBoundingClientRect();return r&&r.progress(0).kill(),i},Ad=function(e,n){var r=n.d2;return e["offset"+r]||e["client"+r]||0},uT=function(e){var n=[],r=e.labels,i=e.duration(),o;for(o in r)n.push(r[o]/i);return n},AL=function(e){return function(n){return Ze.utils.snap(uT(e),n)}},Yg=function(e){var n=Ze.utils.snap(e),r=Array.isArray(e)&&e.slice(0).sort(function(i,o){return i-o});return r?function(i,o,s){s===void 0&&(s=.001);var a;if(!o)return n(i);if(o>0){for(i-=s,a=0;a<r.length;a++)if(r[a]>=i)return r[a];return r[a-1]}else for(a=r.length,i+=s;a--;)if(r[a]<=i)return r[a];return r[0]}:function(i,o,s){s===void 0&&(s=.001);var a=n(i);return!o||Math.abs(a-i)<s||a-i<0==o<0?a:n(o<0?i-e:i+e)}},RL=function(e){return function(n,r){return Yg(uT(e))(n,r.direction)}},_f=function(e,n,r,i){return r.split(",").forEach(function(o){return e(n,o,i)})},ir=function(e,n,r,i,o){return e.addEventListener(n,r,{passive:!i,capture:!!o})},rr=function(e,n,r,i){return e.removeEventListener(n,r,!!i)},vf=function(e,n,r){r=r&&r.wheelHandler,r&&(e(n,"wheel",r),e(n,"touchmove",r))},uy={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},yf={toggleActions:"play",anticipatePin:0},Rd={top:0,left:0,center:.5,bottom:1,right:1},Uf=function(e,n){if(oi(e)){var r=e.indexOf("="),i=~r?+(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(i*=n/100),e=e.substr(0,r-1)),e=i+(e in Rd?Rd[e]*n:~e.indexOf("%")?parseFloat(e)*n/100:parseFloat(e)||0)}return e},bf=function(e,n,r,i,o,s,a,u){var c=o.startColor,h=o.endColor,l=o.fontSize,d=o.indent,f=o.fontWeight,_=pn.createElement("div"),g=wa(r)||xs(r,"pinType")==="fixed",b=e.indexOf("scroller")!==-1,y=g?en:r,w=e.indexOf("start")!==-1,A=w?c:h,k="border-color:"+A+";font-size:"+l+";color:"+A+";font-weight:"+f+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return k+="position:"+((b||u)&&g?"fixed;":"absolute;"),(b||u||!g)&&(k+=(i===Qn?zg:qg)+":"+(s+parseFloat(d))+"px;"),a&&(k+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),_._isStart=w,_.setAttribute("class","gsap-marker-"+e+(n?" marker-"+n:"")),_.style.cssText=k,_.innerText=n||n===0?e+"-"+n:e,y.children[0]?y.insertBefore(_,y.children[0]):y.appendChild(_),_._offset=_["offset"+i.op.d2],jf(_,0,i,w),_},jf=function(e,n,r,i){var o={display:"block"},s=r[i?"os2":"p2"],a=r[i?"p2":"os2"];e._isFlipped=i,o[r.a+"Percent"]=i?-100:0,o[r.a]=i?"1px":0,o["border"+s+Al]=1,o["border"+a+Al]=0,o[r.p]=n+"px",Ze.set(e,o)},Rt=[],wm={},fc,cy=function(){return Sr()-Mi>34&&(fc||(fc=requestAnimationFrame(Go)))},ja=function(){(!$r||!$r.isPressed||$r.startX>en.clientWidth)&&(Pt.cache++,$r?fc||(fc=requestAnimationFrame(Go)):Go(),Mi||Ta("scrollStart"),Mi=Sr())},ap=function(){nT=Ct.innerWidth,tT=Ct.innerHeight},vu=function(e){Pt.cache++,(e===!0||!br&&!eT&&!pn.fullscreenElement&&!pn.webkitFullscreenElement&&(!vm||nT!==Ct.innerWidth||Math.abs(Ct.innerHeight-tT)>Ct.innerHeight*.25))&&Ed.restart(!0)},Sa={},xL=[],cT=function t(){return rr(It,"scrollEnd",t)||ia(!0)},Ta=function(e){return Sa[e]&&Sa[e].map(function(n){return n()})||xL},ii=[],fT=function(e){for(var n=0;n<ii.length;n+=5)(!e||ii[n+4]&&ii[n+4].query===e)&&(ii[n].style.cssText=ii[n+1],ii[n].getBBox&&ii[n].setAttribute("transform",ii[n+2]||""),ii[n+3].uncache=1)},Kg=function(e,n){var r;for(Hr=0;Hr<Rt.length;Hr++)r=Rt[Hr],r&&(!n||r._ctx===n)&&(e?r.kill(1):r.revert(!0,!0));kd=!0,n&&fT(n),n||Ta("revert")},dT=function(e,n){Pt.cache++,(n||!Nr)&&Pt.forEach(function(r){return Ar(r)&&r.cacheID++&&(r.rec=0)}),oi(e)&&(Ct.history.scrollRestoration=jg=e)},Nr,pa=0,fy,CL=function(){if(fy!==pa){var e=fy=pa;requestAnimationFrame(function(){return e===pa&&ia(!0)})}},hT=function(){en.appendChild(cl),Wg=!$r&&cl.offsetHeight||Ct.innerHeight,en.removeChild(cl)},dy=function(e){return cc(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(n){return n.style.display=e?"none":"block"})},ia=function(e,n){if(ai=pn.documentElement,en=pn.body,Ug=[Ct,pn,ai,en],Mi&&!e&&!kd){ir(It,"scrollEnd",cT);return}hT(),Nr=It.isRefreshing=!0,Pt.forEach(function(i){return Ar(i)&&++i.cacheID&&(i.rec=i())});var r=Ta("refreshInit");ZS&&It.sort(),n||Kg(),Pt.forEach(function(i){Ar(i)&&(i.smooth&&(i.target.style.scrollBehavior="auto"),i(0))}),Rt.slice(0).forEach(function(i){return i.refresh()}),kd=!1,Rt.forEach(function(i){if(i._subPinOffset&&i.pin){var o=i.vars.horizontal?"offsetWidth":"offsetHeight",s=i.pin[o];i.revert(!0,1),i.adjustPinSpacing(i.pin[o]-s),i.refresh()}}),bm=1,dy(!0),Rt.forEach(function(i){var o=mo(i.scroller,i._dir),s=i.vars.end==="max"||i._endClamp&&i.end>o,a=i._startClamp&&i.start>=o;(s||a)&&i.setPositions(a?o-1:i.start,s?Math.max(a?o:i.start+1,o):i.end,!0)}),dy(!1),bm=0,r.forEach(function(i){return i&&i.render&&i.render(-1)}),Pt.forEach(function(i){Ar(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),dT(jg,1),Ed.pause(),pa++,Nr=2,Go(2),Rt.forEach(function(i){return Ar(i.vars.onRefresh)&&i.vars.onRefresh(i)}),Nr=It.isRefreshing=!1,Ta("refresh")},Sm=0,Wf=1,Uu,Go=function(e){if(e===2||!Nr&&!kd){It.isUpdating=!0,Uu&&Uu.update(0);var n=Rt.length,r=Sr(),i=r-op>=50,o=n&&Rt[0].scroll();if(Wf=Sm>o?-1:1,Nr||(Sm=o),i&&(Mi&&!sh&&r-Mi>200&&(Mi=0,Ta("scrollEnd")),pu=op,op=r),Wf<0){for(Hr=n;Hr-- >0;)Rt[Hr]&&Rt[Hr].update(0,i);Wf=1}else for(Hr=0;Hr<n;Hr++)Rt[Hr]&&Rt[Hr].update(0,i);It.isUpdating=!1}fc=0},Tm=[aT,lT,qg,zg,Ai+Vu,Ai+Hu,Ai+Bu,Ai+Nu,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],zf=Tm.concat([da,ha,"boxSizing","max"+Al,"max"+Gg,"position",Ai,Vn,Vn+Bu,Vn+Hu,Vn+Vu,Vn+Nu]),PL=function(e,n,r){fl(r);var i=e._gsap;if(i.spacerIsNative)fl(i.spacerState);else if(e._gsap.swappedIn){var o=n.parentNode;o&&(o.insertBefore(e,n),o.removeChild(n))}e._gsap.swappedIn=!1},lp=function(e,n,r,i){if(!e._gsap.swappedIn){for(var o=Tm.length,s=n.style,a=e.style,u;o--;)u=Tm[o],s[u]=r[u];s.position=r.position==="absolute"?"absolute":"relative",r.display==="inline"&&(s.display="inline-block"),a[qg]=a[zg]="auto",s.flexBasis=r.flexBasis||"auto",s.overflow="visible",s.boxSizing="border-box",s[da]=Ad(e,Ur)+Xn,s[ha]=Ad(e,Qn)+Xn,s[Vn]=a[Ai]=a[lT]=a[aT]="0",fl(i),a[da]=a["max"+Al]=r[da],a[ha]=a["max"+Gg]=r[ha],a[Vn]=r[Vn],e.parentNode!==n&&(e.parentNode.insertBefore(n,e),n.appendChild(e)),e._gsap.swappedIn=!0}},IL=/([A-Z])/g,fl=function(e){if(e){var n=e.t.style,r=e.length,i=0,o,s;for((e.t._gsap||Ze.core.getCache(e.t)).uncache=1;i<r;i+=2)s=e[i+1],o=e[i],s?n[o]=s:n[o]&&n.removeProperty(o.replace(IL,"-$1").toLowerCase())}},wf=function(e){for(var n=zf.length,r=e.style,i=[],o=0;o<n;o++)i.push(zf[o],r[zf[o]]);return i.t=e,i},LL=function(e,n,r){for(var i=[],o=e.length,s=r?8:0,a;s<o;s+=2)a=e[s],i.push(a,a in n?n[a]:e[s+1]);return i.t=e.t,i},qf={left:0,top:0},hy=function(e,n,r,i,o,s,a,u,c,h,l,d,f,_){Ar(e)&&(e=e(u)),oi(e)&&e.substr(0,3)==="max"&&(e=d+(e.charAt(4)==="="?Uf("0"+e.substr(3),r):0));var g=f?f.time():0,b,y,w;if(f&&f.seek(0),isNaN(e)||(e=+e),_u(e))f&&(e=Ze.utils.mapRange(f.scrollTrigger.start,f.scrollTrigger.end,0,d,e)),a&&jf(a,r,i,!0);else{Ar(n)&&(n=n(u));var A=(e||"0").split(" "),k,R,C,L;w=qr(n,u)||en,k=Bo(w)||{},(!k||!k.left&&!k.top)&&Ri(w).display==="none"&&(L=w.style.display,w.style.display="block",k=Bo(w),L?w.style.display=L:w.style.removeProperty("display")),R=Uf(A[0],k[i.d]),C=Uf(A[1]||"0",r),e=k[i.p]-c[i.p]-h+R+o-C,a&&jf(a,C,i,r-C<20||a._isStart&&C>20),r-=r-C}if(_&&(u[_]=e||-.001,e<0&&(e=0)),s){var M=e+r,$=s._isStart;b="scroll"+i.d2,jf(s,M,i,$&&M>20||!$&&(l?Math.max(en[b],ai[b]):s.parentNode[b])<=M+1),l&&(c=Bo(a),l&&(s.style[i.op.p]=c[i.op.p]-i.op.m-s._offset+Xn))}return f&&w&&(b=Bo(w),f.seek(d),y=Bo(w),f._caScrollDist=b[i.p]-y[i.p],e=e/f._caScrollDist*d),f&&f.seek(g),f?e:Math.round(e)},OL=/(webkit|moz|length|cssText|inset)/i,py=function(e,n,r,i){if(e.parentNode!==n){var o=e.style,s,a;if(n===en){e._stOrig=o.cssText,a=Ri(e);for(s in a)!+s&&!OL.test(s)&&a[s]&&typeof o[s]=="string"&&s!=="0"&&(o[s]=a[s]);o.top=r,o.left=i}else o.cssText=e._stOrig;Ze.core.getCache(e).uncache=1,n.appendChild(e)}},pT=function(e,n,r){var i=n,o=i;return function(s){var a=Math.round(e());return a!==i&&a!==o&&Math.abs(a-i)>3&&Math.abs(a-o)>3&&(s=a,r&&r()),o=i,i=Math.round(s),i}},Sf=function(e,n,r){var i={};i[n.p]="+="+r,Ze.set(e,i)},my=function(e,n){var r=Os(e,n),i="_scroll"+n.p2,o=function s(a,u,c,h,l){var d=s.tween,f=u.onComplete,_={};c=c||r();var g=pT(r,c,function(){d.kill(),s.tween=0});return l=h&&l||0,h=h||a-c,d&&d.kill(),u[i]=a,u.inherit=!1,u.modifiers=_,_[i]=function(){return g(c+h*d.ratio+l*d.ratio*d.ratio)},u.onUpdate=function(){Pt.cache++,s.tween&&Go()},u.onComplete=function(){s.tween=0,f&&f.call(d)},d=s.tween=Ze.to(e,u),d};return e[i]=r,r.wheelHandler=function(){return o.tween&&o.tween.kill()&&(o.tween=0)},ir(e,"wheel",r.wheelHandler),It.isTouch&&ir(e,"touchmove",r.wheelHandler),o},It=function(){function t(n,r){Ga||t.register(Ze)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),ym(this),this.init(n,r)}var e=t.prototype;return e.init=function(r,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!mu){this.update=this.refresh=this.kill=uo;return}r=ly(oi(r)||_u(r)||r.nodeType?{trigger:r}:r,yf);var o=r,s=o.onUpdate,a=o.toggleClass,u=o.id,c=o.onToggle,h=o.onRefresh,l=o.scrub,d=o.trigger,f=o.pin,_=o.pinSpacing,g=o.invalidateOnRefresh,b=o.anticipatePin,y=o.onScrubComplete,w=o.onSnapComplete,A=o.once,k=o.snap,R=o.pinReparent,C=o.pinSpacer,L=o.containerAnimation,M=o.fastScrollEnd,$=o.preventOverlaps,U=r.horizontal||r.containerAnimation&&r.horizontal!==!1?Ur:Qn,ne=!l&&l!==0,D=qr(r.scroller||Ct),Q=Ze.core.getCache(D),N=wa(D),W=("pinType"in r?r.pinType:xs(D,"pinType")||N&&"fixed")==="fixed",V=[r.onEnter,r.onLeave,r.onEnterBack,r.onLeaveBack],B=ne&&r.toggleActions.split(" "),oe="markers"in r?r.markers:yf.markers,se=N?0:parseFloat(Ri(D)["border"+U.p2+Al])||0,q=this,be=r.onRefreshInit&&function(){return r.onRefreshInit(q)},Te=TL(D,N,U),he=EL(D,N),ge=0,Ae=0,ye=0,ie=Os(D,U),le,pe,Se,Ie,z,P,Y,ee,K,x,G,I,F,Z,fe,ue,S,m,T,H,re,ce,Ee,De,Pe,Be,Qe,tt,pt,mt,rn,nt,Ut,kt,dt,jt,Cn,Pn,Ke;if(q._startClamp=q._endClamp=!1,q._dir=U,b*=45,q.scroller=D,q.scroll=L?L.time.bind(L):ie,Ie=ie(),q.vars=r,i=i||r.animation,"refreshPriority"in r&&(ZS=1,r.refreshPriority===-9999&&(Uu=q)),Q.tweenScroll=Q.tweenScroll||{top:my(D,Qn),left:my(D,Ur)},q.tweenTo=le=Q.tweenScroll[U.p],q.scrubDuration=function(ze){Ut=_u(ze)&&ze,Ut?nt?nt.duration(ze):nt=Ze.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:Ut,paused:!0,onComplete:function(){return y&&y(q)}}):(nt&&nt.progress(1).kill(),nt=0)},i&&(i.vars.lazy=!1,i._initted&&!q.isReverted||i.vars.immediateRender!==!1&&r.immediateRender!==!1&&i.duration()&&i.render(0,!0,!0),q.animation=i.pause(),i.scrollTrigger=q,q.scrubDuration(l),mt=0,u||(u=i.vars.id)),k&&((!Js(k)||k.push)&&(k={snapTo:k}),"scrollBehavior"in en.style&&Ze.set(N?[en,ai]:D,{scrollBehavior:"auto"}),Pt.forEach(function(ze){return Ar(ze)&&ze.target===(N?pn.scrollingElement||ai:D)&&(ze.smooth=!1)}),Se=Ar(k.snapTo)?k.snapTo:k.snapTo==="labels"?AL(i):k.snapTo==="labelsDirectional"?RL(i):k.directional!==!1?function(ze,ct){return Yg(k.snapTo)(ze,Sr()-Ae<500?0:ct.direction)}:Ze.utils.snap(k.snapTo),kt=k.duration||{min:.1,max:2},kt=Js(kt)?$u(kt.min,kt.max):$u(kt,kt),dt=Ze.delayedCall(k.delay||Ut/2||.1,function(){var ze=ie(),ct=Sr()-Ae<500,it=le.tween;if((ct||Math.abs(q.getVelocity())<10)&&!it&&!sh&&ge!==ze){var Le=(ze-P)/Z,In=i&&!ne?i.totalProgress():Le,vt=ct?0:(In-rn)/(Sr()-pu)*1e3||0,yn=Ze.utils.clamp(-Le,1-Le,Ua(vt/2)*vt/.185),Gn=Le+(k.inertia===!1?0:yn),an,ln,Xt=k,gr=Xt.onStart,hn=Xt.onInterrupt,Pr=Xt.onComplete;if(an=Se(Gn,q),_u(an)||(an=Gn),ln=Math.max(0,Math.round(P+an*Z)),ze<=Y&&ze>=P&&ln!==ze){if(it&&!it._initted&&it.data<=Ua(ln-ze))return;k.inertia===!1&&(yn=an-Le),le(ln,{duration:kt(Ua(Math.max(Ua(Gn-In),Ua(an-In))*.185/vt/.05||0)),ease:k.ease||"power3",data:Ua(ln-ze),onInterrupt:function(){return dt.restart(!0)&&hn&&hn(q)},onComplete:function(){q.update(),ge=ie(),i&&!ne&&(nt?nt.resetTo("totalProgress",an,i._tTime/i._tDur):i.progress(an)),mt=rn=i&&!ne?i.totalProgress():q.progress,w&&w(q),Pr&&Pr(q)}},ze,yn*Z,ln-ze-yn*Z),gr&&gr(q,le.tween)}}else q.isActive&&ge!==ze&&dt.restart(!0)}).pause()),u&&(wm[u]=q),d=q.trigger=qr(d||f!==!0&&f),Ke=d&&d._gsap&&d._gsap.stRevert,Ke&&(Ke=Ke(q)),f=f===!0?d:qr(f),oi(a)&&(a={targets:d,className:a}),f&&(_===!1||_===Ai||(_=!_&&f.parentNode&&f.parentNode.style&&Ri(f.parentNode).display==="flex"?!1:Vn),q.pin=f,pe=Ze.core.getCache(f),pe.spacer?fe=pe.pinState:(C&&(C=qr(C),C&&!C.nodeType&&(C=C.current||C.nativeElement),pe.spacerIsNative=!!C,C&&(pe.spacerState=wf(C))),pe.spacer=m=C||pn.createElement("div"),m.classList.add("pin-spacer"),u&&m.classList.add("pin-spacer-"+u),pe.pinState=fe=wf(f)),r.force3D!==!1&&Ze.set(f,{force3D:!0}),q.spacer=m=pe.spacer,pt=Ri(f),De=pt[_+U.os2],H=Ze.getProperty(f),re=Ze.quickSetter(f,U.a,Xn),lp(f,m,pt),S=wf(f)),oe){I=Js(oe)?ly(oe,uy):uy,x=bf("scroller-start",u,D,U,I,0),G=bf("scroller-end",u,D,U,I,0,x),T=x["offset"+U.op.d2];var ht=qr(xs(D,"content")||D);ee=this.markerStart=bf("start",u,ht,U,I,T,0,L),K=this.markerEnd=bf("end",u,ht,U,I,T,0,L),L&&(Pn=Ze.quickSetter([ee,K],U.a,Xn)),!W&&!(bo.length&&xs(D,"fixedMarkers")===!0)&&(kL(N?en:D),Ze.set([x,G],{force3D:!0}),Be=Ze.quickSetter(x,U.a,Xn),tt=Ze.quickSetter(G,U.a,Xn))}if(L){var rt=L.vars.onUpdate,ot=L.vars.onUpdateParams;L.eventCallback("onUpdate",function(){q.update(0,0,1),rt&&rt.apply(L,ot||[])})}if(q.previous=function(){return Rt[Rt.indexOf(q)-1]},q.next=function(){return Rt[Rt.indexOf(q)+1]},q.revert=function(ze,ct){if(!ct)return q.kill(!0);var it=ze!==!1||!q.enabled,Le=br;it!==q.isReverted&&(it&&(jt=Math.max(ie(),q.scroll.rec||0),ye=q.progress,Cn=i&&i.progress()),ee&&[ee,K,x,G].forEach(function(In){return In.style.display=it?"none":"block"}),it&&(br=q,q.update(it)),f&&(!R||!q.isActive)&&(it?PL(f,m,fe):lp(f,m,Ri(f),Pe)),it||q.update(it),br=Le,q.isReverted=it)},q.refresh=function(ze,ct,it,Le){if(!((br||!q.enabled)&&!ct)){if(f&&ze&&Mi){ir(t,"scrollEnd",cT);return}!Nr&&be&&be(q),br=q,le.tween&&!it&&(le.tween.kill(),le.tween=0),nt&&nt.pause(),g&&i&&(i.revert({kill:!1}).invalidate(),i.getChildren&&i.getChildren(!0,!0,!1).forEach(function(vr){return vr.vars.immediateRender&&vr.render(0,!0,!0)})),q.isReverted||q.revert(!0,!0),q._subPinOffset=!1;var In=Te(),vt=he(),yn=L?L.duration():mo(D,U),Gn=Z<=.01||!Z,an=0,ln=Le||0,Xt=Js(it)?it.end:r.end,gr=r.endTrigger||d,hn=Js(it)?it.start:r.start||(r.start===0||!d?0:f?"0 0":"0 100%"),Pr=q.pinnedContainer=r.pinnedContainer&&qr(r.pinnedContainer,q),Yn=d&&Math.max(0,Rt.indexOf(q))||0,Hn=Yn,Kn,Nn,eo,_r,Fn,Sn,yi,ts,Bl,ns,ni,Hi,rs;for(oe&&Js(it)&&(Hi=Ze.getProperty(x,U.p),rs=Ze.getProperty(G,U.p));Hn-- >0;)Sn=Rt[Hn],Sn.end||Sn.refresh(0,1)||(br=q),yi=Sn.pin,yi&&(yi===d||yi===f||yi===Pr)&&!Sn.isReverted&&(ns||(ns=[]),ns.unshift(Sn),Sn.revert(!0,!0)),Sn!==Rt[Hn]&&(Yn--,Hn--);for(Ar(hn)&&(hn=hn(q)),hn=iy(hn,"start",q),P=hy(hn,d,In,U,ie(),ee,x,q,vt,se,W,yn,L,q._startClamp&&"_startClamp")||(f?-.001:0),Ar(Xt)&&(Xt=Xt(q)),oi(Xt)&&!Xt.indexOf("+=")&&(~Xt.indexOf(" ")?Xt=(oi(hn)?hn.split(" ")[0]:"")+Xt:(an=Uf(Xt.substr(2),In),Xt=oi(hn)?hn:(L?Ze.utils.mapRange(0,L.duration(),L.scrollTrigger.start,L.scrollTrigger.end,P):P)+an,gr=d)),Xt=iy(Xt,"end",q),Y=Math.max(P,hy(Xt||(gr?"100% 0":yn),gr,In,U,ie()+an,K,G,q,vt,se,W,yn,L,q._endClamp&&"_endClamp"))||-.001,an=0,Hn=Yn;Hn--;)Sn=Rt[Hn],yi=Sn.pin,yi&&Sn.start-Sn._pinPush<=P&&!L&&Sn.end>0&&(Kn=Sn.end-(q._startClamp?Math.max(0,Sn.start):Sn.start),(yi===d&&Sn.start-Sn._pinPush<P||yi===Pr)&&isNaN(hn)&&(an+=Kn*(1-Sn.progress)),yi===f&&(ln+=Kn));if(P+=an,Y+=an,q._startClamp&&(q._startClamp+=an),q._endClamp&&!Nr&&(q._endClamp=Y||-.001,Y=Math.min(Y,mo(D,U))),Z=Y-P||(P-=.01)&&.001,Gn&&(ye=Ze.utils.clamp(0,1,Ze.utils.normalize(P,Y,jt))),q._pinPush=ln,ee&&an&&(Kn={},Kn[U.a]="+="+an,Pr&&(Kn[U.p]="-="+ie()),Ze.set([ee,K],Kn)),f&&!(bm&&q.end>=mo(D,U)))Kn=Ri(f),_r=U===Qn,eo=ie(),ce=parseFloat(H(U.a))+ln,!yn&&Y>1&&(ni=(N?pn.scrollingElement||ai:D).style,ni={style:ni,value:ni["overflow"+U.a.toUpperCase()]},N&&Ri(en)["overflow"+U.a.toUpperCase()]!=="scroll"&&(ni.style["overflow"+U.a.toUpperCase()]="scroll")),lp(f,m,Kn),S=wf(f),Nn=Bo(f,!0),ts=W&&Os(D,_r?Ur:Qn)(),_?(Pe=[_+U.os2,Z+ln+Xn],Pe.t=m,Hn=_===Vn?Ad(f,U)+Z+ln:0,Hn&&(Pe.push(U.d,Hn+Xn),m.style.flexBasis!=="auto"&&(m.style.flexBasis=Hn+Xn)),fl(Pe),Pr&&Rt.forEach(function(vr){vr.pin===Pr&&vr.vars.pinSpacing!==!1&&(vr._subPinOffset=!0)}),W&&ie(jt)):(Hn=Ad(f,U),Hn&&m.style.flexBasis!=="auto"&&(m.style.flexBasis=Hn+Xn)),W&&(Fn={top:Nn.top+(_r?eo-P:ts)+Xn,left:Nn.left+(_r?ts:eo-P)+Xn,boxSizing:"border-box",position:"fixed"},Fn[da]=Fn["max"+Al]=Math.ceil(Nn.width)+Xn,Fn[ha]=Fn["max"+Gg]=Math.ceil(Nn.height)+Xn,Fn[Ai]=Fn[Ai+Bu]=Fn[Ai+Hu]=Fn[Ai+Vu]=Fn[Ai+Nu]="0",Fn[Vn]=Kn[Vn],Fn[Vn+Bu]=Kn[Vn+Bu],Fn[Vn+Hu]=Kn[Vn+Hu],Fn[Vn+Vu]=Kn[Vn+Vu],Fn[Vn+Nu]=Kn[Vn+Nu],ue=LL(fe,Fn,R),Nr&&ie(0)),i?(Bl=i._initted,rp(1),i.render(i.duration(),!0,!0),Ee=H(U.a)-ce+Z+ln,Qe=Math.abs(Z-Ee)>1,W&&Qe&&ue.splice(ue.length-2,2),i.render(0,!0,!0),Bl||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),rp(0)):Ee=Z,ni&&(ni.value?ni.style["overflow"+U.a.toUpperCase()]=ni.value:ni.style.removeProperty("overflow-"+U.a));else if(d&&ie()&&!L)for(Nn=d.parentNode;Nn&&Nn!==en;)Nn._pinOffset&&(P-=Nn._pinOffset,Y-=Nn._pinOffset),Nn=Nn.parentNode;ns&&ns.forEach(function(vr){return vr.revert(!1,!0)}),q.start=P,q.end=Y,Ie=z=Nr?jt:ie(),!L&&!Nr&&(Ie<jt&&ie(jt),q.scroll.rec=0),q.revert(!1,!0),Ae=Sr(),dt&&(ge=-1,dt.restart(!0)),br=0,i&&ne&&(i._initted||Cn)&&i.progress()!==Cn&&i.progress(Cn||0,!0).render(i.time(),!0,!0),(Gn||ye!==q.progress||L||g||i&&!i._initted)&&(i&&!ne&&(i._initted||ye||i.vars.immediateRender!==!1)&&i.totalProgress(L&&P<-.001&&!ye?Ze.utils.normalize(P,Y,0):ye,!0),q.progress=Gn||(Ie-P)/Z===ye?0:ye),f&&_&&(m._pinOffset=Math.round(q.progress*Ee)),nt&&nt.invalidate(),isNaN(Hi)||(Hi-=Ze.getProperty(x,U.p),rs-=Ze.getProperty(G,U.p),Sf(x,U,Hi),Sf(ee,U,Hi-(Le||0)),Sf(G,U,rs),Sf(K,U,rs-(Le||0))),Gn&&!Nr&&q.update(),h&&!Nr&&!F&&(F=!0,h(q),F=!1)}},q.getVelocity=function(){return(ie()-z)/(Sr()-pu)*1e3||0},q.endAnimation=function(){ou(q.callbackAnimation),i&&(nt?nt.progress(1):i.paused()?ne||ou(i,q.direction<0,1):ou(i,i.reversed()))},q.labelToScroll=function(ze){return i&&i.labels&&(P||q.refresh()||P)+i.labels[ze]/i.duration()*Z||0},q.getTrailing=function(ze){var ct=Rt.indexOf(q),it=q.direction>0?Rt.slice(0,ct).reverse():Rt.slice(ct+1);return(oi(ze)?it.filter(function(Le){return Le.vars.preventOverlaps===ze}):it).filter(function(Le){return q.direction>0?Le.end<=P:Le.start>=Y})},q.update=function(ze,ct,it){if(!(L&&!it&&!ze)){var Le=Nr===!0?jt:q.scroll(),In=ze?0:(Le-P)/Z,vt=In<0?0:In>1?1:In||0,yn=q.progress,Gn,an,ln,Xt,gr,hn,Pr,Yn;if(ct&&(z=Ie,Ie=L?ie():Le,k&&(rn=mt,mt=i&&!ne?i.totalProgress():vt)),b&&f&&!br&&!mf&&Mi&&(!vt&&P<Le+(Le-z)/(Sr()-pu)*b?vt=1e-4:vt===1&&Y>Le+(Le-z)/(Sr()-pu)*b&&(vt=.9999)),vt!==yn&&q.enabled){if(Gn=q.isActive=!!vt&&vt<1,an=!!yn&&yn<1,hn=Gn!==an,gr=hn||!!vt!=!!yn,q.direction=vt>yn?1:-1,q.progress=vt,gr&&!br&&(ln=vt&&!yn?0:vt===1?1:yn===1?2:3,ne&&(Xt=!hn&&B[ln+1]!=="none"&&B[ln+1]||B[ln],Yn=i&&(Xt==="complete"||Xt==="reset"||Xt in i))),$&&(hn||Yn)&&(Yn||l||!i)&&(Ar($)?$(q):q.getTrailing($).forEach(function(eo){return eo.endAnimation()})),ne||(nt&&!br&&!mf?(nt._dp._time-nt._start!==nt._time&&nt.render(nt._dp._time-nt._start),nt.resetTo?nt.resetTo("totalProgress",vt,i._tTime/i._tDur):(nt.vars.totalProgress=vt,nt.invalidate().restart())):i&&i.totalProgress(vt,!!(br&&(Ae||ze)))),f){if(ze&&_&&(m.style[_+U.os2]=De),!W)re(gu(ce+Ee*vt));else if(gr){if(Pr=!ze&&vt>yn&&Y+1>Le&&Le+1>=mo(D,U),R)if(!ze&&(Gn||Pr)){var Hn=Bo(f,!0),Kn=Le-P;py(f,en,Hn.top+(U===Qn?Kn:0)+Xn,Hn.left+(U===Qn?0:Kn)+Xn)}else py(f,m);fl(Gn||Pr?ue:S),Qe&&vt<1&&Gn||re(ce+(vt===1&&!Pr?Ee:0))}}k&&!le.tween&&!br&&!mf&&dt.restart(!0),a&&(hn||A&&vt&&(vt<1||!ip))&&cc(a.targets).forEach(function(eo){return eo.classList[Gn||A?"add":"remove"](a.className)}),s&&!ne&&!ze&&s(q),gr&&!br?(ne&&(Yn&&(Xt==="complete"?i.pause().totalProgress(1):Xt==="reset"?i.restart(!0).pause():Xt==="restart"?i.restart(!0):i[Xt]()),s&&s(q)),(hn||!ip)&&(c&&hn&&sp(q,c),V[ln]&&sp(q,V[ln]),A&&(vt===1?q.kill(!1,1):V[ln]=0),hn||(ln=vt===1?1:3,V[ln]&&sp(q,V[ln]))),M&&!Gn&&Math.abs(q.getVelocity())>(_u(M)?M:2500)&&(ou(q.callbackAnimation),nt?nt.progress(1):ou(i,Xt==="reverse"?1:!vt,1))):ne&&s&&!br&&s(q)}if(tt){var Nn=L?Le/L.duration()*(L._caScrollDist||0):Le;Be(Nn+(x._isFlipped?1:0)),tt(Nn)}Pn&&Pn(-Le/L.duration()*(L._caScrollDist||0))}},q.enable=function(ze,ct){q.enabled||(q.enabled=!0,ir(D,"resize",vu),N||ir(D,"scroll",ja),be&&ir(t,"refreshInit",be),ze!==!1&&(q.progress=ye=0,Ie=z=ge=ie()),ct!==!1&&q.refresh())},q.getTween=function(ze){return ze&&le?le.tween:nt},q.setPositions=function(ze,ct,it,Le){if(L){var In=L.scrollTrigger,vt=L.duration(),yn=In.end-In.start;ze=In.start+yn*ze/vt,ct=In.start+yn*ct/vt}q.refresh(!1,!1,{start:oy(ze,it&&!!q._startClamp),end:oy(ct,it&&!!q._endClamp)},Le),q.update()},q.adjustPinSpacing=function(ze){if(Pe&&ze){var ct=Pe.indexOf(U.d)+1;Pe[ct]=parseFloat(Pe[ct])+ze+Xn,Pe[1]=parseFloat(Pe[1])+ze+Xn,fl(Pe)}},q.disable=function(ze,ct){if(q.enabled&&(ze!==!1&&q.revert(!0,!0),q.enabled=q.isActive=!1,ct||nt&&nt.pause(),jt=0,pe&&(pe.uncache=1),be&&rr(t,"refreshInit",be),dt&&(dt.pause(),le.tween&&le.tween.kill()&&(le.tween=0)),!N)){for(var it=Rt.length;it--;)if(Rt[it].scroller===D&&Rt[it]!==q)return;rr(D,"resize",vu),N||rr(D,"scroll",ja)}},q.kill=function(ze,ct){q.disable(ze,ct),nt&&!ct&&nt.kill(),u&&delete wm[u];var it=Rt.indexOf(q);it>=0&&Rt.splice(it,1),it===Hr&&Wf>0&&Hr--,it=0,Rt.forEach(function(Le){return Le.scroller===q.scroller&&(it=1)}),it||Nr||(q.scroll.rec=0),i&&(i.scrollTrigger=null,ze&&i.revert({kill:!1}),ct||i.kill()),ee&&[ee,K,x,G].forEach(function(Le){return Le.parentNode&&Le.parentNode.removeChild(Le)}),Uu===q&&(Uu=0),f&&(pe&&(pe.uncache=1),it=0,Rt.forEach(function(Le){return Le.pin===f&&it++}),it||(pe.spacer=0)),r.onKill&&r.onKill(q)},Rt.push(q),q.enable(!1,!1),Ke&&Ke(q),i&&i.add&&!Z){var Ot=q.update;q.update=function(){q.update=Ot,Pt.cache++,P||Y||q.refresh()},Ze.delayedCall(.01,q.update),Z=.01,P=Y=0}else q.refresh();f&&CL()},t.register=function(r){return Ga||(Ze=r||iT(),rT()&&window.document&&t.enable(),Ga=mu),Ga},t.defaults=function(r){if(r)for(var i in r)yf[i]=r[i];return yf},t.disable=function(r,i){mu=0,Rt.forEach(function(s){return s[i?"kill":"disable"](r)}),rr(Ct,"wheel",ja),rr(pn,"scroll",ja),clearInterval(pf),rr(pn,"touchcancel",uo),rr(en,"touchstart",uo),_f(rr,pn,"pointerdown,touchstart,mousedown",sy),_f(rr,pn,"pointerup,touchend,mouseup",ay),Ed.kill(),gf(rr);for(var o=0;o<Pt.length;o+=3)vf(rr,Pt[o],Pt[o+1]),vf(rr,Pt[o],Pt[o+2])},t.enable=function(){if(Ct=window,pn=document,ai=pn.documentElement,en=pn.body,Ze&&(cc=Ze.utils.toArray,$u=Ze.utils.clamp,ym=Ze.core.context||uo,rp=Ze.core.suppressOverwrites||uo,jg=Ct.history.scrollRestoration||"auto",Sm=Ct.pageYOffset||0,Ze.core.globals("ScrollTrigger",t),en)){mu=1,cl=document.createElement("div"),cl.style.height="100vh",cl.style.position="absolute",hT(),SL(),$n.register(Ze),t.isTouch=$n.isTouch,ds=$n.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),vm=$n.isTouch===1,ir(Ct,"wheel",ja),Ug=[Ct,pn,ai,en],Ze.matchMedia?(t.matchMedia=function(c){var h=Ze.matchMedia(),l;for(l in c)h.add(l,c[l]);return h},Ze.addEventListener("matchMediaInit",function(){return Kg()}),Ze.addEventListener("matchMediaRevert",function(){return fT()}),Ze.addEventListener("matchMedia",function(){ia(0,1),Ta("matchMedia")}),Ze.matchMedia().add("(orientation: portrait)",function(){return ap(),ap})):console.warn("Requires GSAP 3.11.0 or later"),ap(),ir(pn,"scroll",ja);var r=en.hasAttribute("style"),i=en.style,o=i.borderTopStyle,s=Ze.core.Animation.prototype,a,u;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",a=Bo(en),Qn.m=Math.round(a.top+Qn.sc())||0,Ur.m=Math.round(a.left+Ur.sc())||0,o?i.borderTopStyle=o:i.removeProperty("border-top-style"),r||(en.setAttribute("style",""),en.removeAttribute("style")),pf=setInterval(cy,250),Ze.delayedCall(.5,function(){return mf=0}),ir(pn,"touchcancel",uo),ir(en,"touchstart",uo),_f(ir,pn,"pointerdown,touchstart,mousedown",sy),_f(ir,pn,"pointerup,touchend,mouseup",ay),_m=Ze.utils.checkPrefix("transform"),zf.push(_m),Ga=Sr(),Ed=Ze.delayedCall(.2,ia).pause(),Ya=[pn,"visibilitychange",function(){var c=Ct.innerWidth,h=Ct.innerHeight;pn.hidden?(ny=c,ry=h):(ny!==c||ry!==h)&&vu()},pn,"DOMContentLoaded",ia,Ct,"load",ia,Ct,"resize",vu],gf(ir),Rt.forEach(function(c){return c.enable(0,1)}),u=0;u<Pt.length;u+=3)vf(rr,Pt[u],Pt[u+1]),vf(rr,Pt[u],Pt[u+2])}},t.config=function(r){"limitCallbacks"in r&&(ip=!!r.limitCallbacks);var i=r.syncInterval;i&&clearInterval(pf)||(pf=i)&&setInterval(cy,i),"ignoreMobileResize"in r&&(vm=t.isTouch===1&&r.ignoreMobileResize),"autoRefreshEvents"in r&&(gf(rr)||gf(ir,r.autoRefreshEvents||"none"),eT=(r.autoRefreshEvents+"").indexOf("resize")===-1)},t.scrollerProxy=function(r,i){var o=qr(r),s=Pt.indexOf(o),a=wa(o);~s&&Pt.splice(s,a?6:2),i&&(a?bo.unshift(Ct,i,en,i,ai,i):bo.unshift(o,i))},t.clearMatchMedia=function(r){Rt.forEach(function(i){return i._ctx&&i._ctx.query===r&&i._ctx.kill(!0,!0)})},t.isInViewport=function(r,i,o){var s=(oi(r)?qr(r):r).getBoundingClientRect(),a=s[o?da:ha]*i||0;return o?s.right-a>0&&s.left+a<Ct.innerWidth:s.bottom-a>0&&s.top+a<Ct.innerHeight},t.positionInViewport=function(r,i,o){oi(r)&&(r=qr(r));var s=r.getBoundingClientRect(),a=s[o?da:ha],u=i==null?a/2:i in Rd?Rd[i]*a:~i.indexOf("%")?parseFloat(i)*a/100:parseFloat(i)||0;return o?(s.left+u)/Ct.innerWidth:(s.top+u)/Ct.innerHeight},t.killAll=function(r){if(Rt.slice(0).forEach(function(o){return o.vars.id!=="ScrollSmoother"&&o.kill()}),r!==!0){var i=Sa.killAll||[];Sa={},i.forEach(function(o){return o()})}},t}();It.version="3.13.0";It.saveStyles=function(t){return t?cc(t).forEach(function(e){if(e&&e.style){var n=ii.indexOf(e);n>=0&&ii.splice(n,5),ii.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),Ze.core.getCache(e),ym())}}):ii};It.revert=function(t,e){return Kg(!t,e)};It.create=function(t,e){return new It(t,e)};It.refresh=function(t){return t?vu(!0):(Ga||It.register())&&ia(!0)};It.update=function(t){return++Pt.cache&&Go(t===!0?2:0)};It.clearScrollMemory=dT;It.maxScroll=function(t,e){return mo(t,e?Ur:Qn)};It.getScrollFunc=function(t,e){return Os(qr(t),e?Ur:Qn)};It.getById=function(t){return wm[t]};It.getAll=function(){return Rt.filter(function(t){return t.vars.id!=="ScrollSmoother"})};It.isScrolling=function(){return!!Mi};It.snapDirectional=Yg;It.addEventListener=function(t,e){var n=Sa[t]||(Sa[t]=[]);~n.indexOf(e)||n.push(e)};It.removeEventListener=function(t,e){var n=Sa[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)};It.batch=function(t,e){var n=[],r={},i=e.interval||.016,o=e.batchMax||1e9,s=function(c,h){var l=[],d=[],f=Ze.delayedCall(i,function(){h(l,d),l=[],d=[]}).pause();return function(_){l.length||f.restart(!0),l.push(_.trigger),d.push(_),o<=l.length&&f.progress(1)}},a;for(a in e)r[a]=a.substr(0,2)==="on"&&Ar(e[a])&&a!=="onRefreshInit"?s(a,e[a]):e[a];return Ar(o)&&(o=o(),ir(It,"refresh",function(){return o=e.batchMax()})),cc(t).forEach(function(u){var c={};for(a in r)c[a]=r[a];c.trigger=u,n.push(It.create(c))}),n};var gy=function(e,n,r,i){return n>i?e(i):n<0&&e(0),r>i?(i-n)/(r-n):r<0?n/(n-r):1},up=function t(e,n){n===!0?e.style.removeProperty("touch-action"):e.style.touchAction=n===!0?"auto":n?"pan-"+n+($n.isTouch?" pinch-zoom":""):"none",e===ai&&t(en,n)},Tf={auto:1,scroll:1},ML=function(e){var n=e.event,r=e.target,i=e.axis,o=(n.changedTouches?n.changedTouches[0]:n).target,s=o._gsap||Ze.core.getCache(o),a=Sr(),u;if(!s._isScrollT||a-s._isScrollT>2e3){for(;o&&o!==en&&(o.scrollHeight<=o.clientHeight&&o.scrollWidth<=o.clientWidth||!(Tf[(u=Ri(o)).overflowY]||Tf[u.overflowX]));)o=o.parentNode;s._isScroll=o&&o!==r&&!wa(o)&&(Tf[(u=Ri(o)).overflowY]||Tf[u.overflowX]),s._isScrollT=a}(s._isScroll||i==="x")&&(n.stopPropagation(),n._gsapAllow=!0)},mT=function(e,n,r,i){return $n.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:n,onWheel:i=i&&ML,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return r&&ir(pn,$n.eventTypes[0],vy,!1,!0)},onDisable:function(){return rr(pn,$n.eventTypes[0],vy,!0)}})},FL=/(input|label|select|textarea)/i,_y,vy=function(e){var n=FL.test(e.target.tagName);(n||_y)&&(e._gsapAllow=!0,_y=n)},DL=function(e){Js(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var n=e,r=n.normalizeScrollX,i=n.momentum,o=n.allowNestedScroll,s=n.onRelease,a,u,c=qr(e.target)||ai,h=Ze.core.globals().ScrollSmoother,l=h&&h.get(),d=ds&&(e.content&&qr(e.content)||l&&e.content!==!1&&!l.smooth()&&l.content()),f=Os(c,Qn),_=Os(c,Ur),g=1,b=($n.isTouch&&Ct.visualViewport?Ct.visualViewport.scale*Ct.visualViewport.width:Ct.outerWidth)/Ct.innerWidth,y=0,w=Ar(i)?function(){return i(a)}:function(){return i||2.8},A,k,R=mT(c,e.type,!0,o),C=function(){return k=!1},L=uo,M=uo,$=function(){u=mo(c,Qn),M=$u(ds?1:0,u),r&&(L=$u(0,mo(c,Ur))),A=pa},U=function(){d._gsap.y=gu(parseFloat(d._gsap.y)+f.offset)+"px",d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(d._gsap.y)+", 0, 1)",f.offset=f.cacheID=0},ne=function(){if(k){requestAnimationFrame(C);var oe=gu(a.deltaY/2),se=M(f.v-oe);if(d&&se!==f.v+f.offset){f.offset=se-f.v;var q=gu((parseFloat(d&&d._gsap.y)||0)-f.offset);d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+q+", 0, 1)",d._gsap.y=q+"px",f.cacheID=Pt.cache,Go()}return!0}f.offset&&U(),k=!0},D,Q,N,W,V=function(){$(),D.isActive()&&D.vars.scrollY>u&&(f()>u?D.progress(1)&&f(u):D.resetTo("scrollY",u))};return d&&Ze.set(d,{y:"+=0"}),e.ignoreCheck=function(B){return ds&&B.type==="touchmove"&&ne()||g>1.05&&B.type!=="touchstart"||a.isGesturing||B.touches&&B.touches.length>1},e.onPress=function(){k=!1;var B=g;g=gu((Ct.visualViewport&&Ct.visualViewport.scale||1)/b),D.pause(),B!==g&&up(c,g>1.01?!0:r?!1:"x"),Q=_(),N=f(),$(),A=pa},e.onRelease=e.onGestureStart=function(B,oe){if(f.offset&&U(),!oe)W.restart(!0);else{Pt.cache++;var se=w(),q,be;r&&(q=_(),be=q+se*.05*-B.velocityX/.227,se*=gy(_,q,be,mo(c,Ur)),D.vars.scrollX=L(be)),q=f(),be=q+se*.05*-B.velocityY/.227,se*=gy(f,q,be,mo(c,Qn)),D.vars.scrollY=M(be),D.invalidate().duration(se).play(.01),(ds&&D.vars.scrollY>=u||q>=u-1)&&Ze.to({},{onUpdate:V,duration:se})}s&&s(B)},e.onWheel=function(){D._ts&&D.pause(),Sr()-y>1e3&&(A=0,y=Sr())},e.onChange=function(B,oe,se,q,be){if(pa!==A&&$(),oe&&r&&_(L(q[2]===oe?Q+(B.startX-B.x):_()+oe-q[1])),se){f.offset&&U();var Te=be[2]===se,he=Te?N+B.startY-B.y:f()+se-be[1],ge=M(he);Te&&he!==ge&&(N+=ge-he),f(ge)}(se||oe)&&Go()},e.onEnable=function(){up(c,r?!1:"x"),It.addEventListener("refresh",V),ir(Ct,"resize",V),f.smooth&&(f.target.style.scrollBehavior="auto",f.smooth=_.smooth=!1),R.enable()},e.onDisable=function(){up(c,!0),rr(Ct,"resize",V),It.removeEventListener("refresh",V),R.kill()},e.lockAxis=e.lockAxis!==!1,a=new $n(e),a.iOS=ds,ds&&!f()&&f(1),ds&&Ze.ticker.add(uo),W=a._dc,D=Ze.to(a,{ease:"power4",paused:!0,inherit:!1,scrollX:r?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:pT(f,f(),function(){return D.pause()})},onUpdate:Go,onComplete:W.vars.onComplete}),a};It.sort=function(t){if(Ar(t))return Rt.sort(t);var e=Ct.pageYOffset||0;return It.getAll().forEach(function(n){return n._sortY=n.trigger?e+n.trigger.getBoundingClientRect().top:n.start+Ct.innerHeight}),Rt.sort(t||function(n,r){return(n.vars.refreshPriority||0)*-1e6+(n.vars.containerAnimation?1e6:n._sortY)-((r.vars.containerAnimation?1e6:r._sortY)+(r.vars.refreshPriority||0)*-1e6)})};It.observe=function(t){return new $n(t)};It.normalizeScroll=function(t){if(typeof t>"u")return $r;if(t===!0&&$r)return $r.enable();if(t===!1){$r&&$r.kill(),$r=t;return}var e=t instanceof $n?t:DL(t);return $r&&$r.target===e.target&&$r.kill(),wa(e.target)&&($r=e),e};It.core={_getVelocityProp:gm,_inputObserver:mT,_scrollers:Pt,_proxies:bo,bridge:{ss:function(){Mi||Ta("scrollStart"),Mi=Sr()},ref:function(){return br}}};iT()&&Ze.registerPlugin(It);function $L(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function HL(t,e,n){return e&&$L(t.prototype,e),t}/*!
 * ScrollSmoother 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 Jt,Ef,Mr,_s,yu,Lo,Zs,yy,Et,fo,kf,by,wy,Sy,Ty,gT=function(){return typeof window<"u"},_T=function(){return Jt||gT()&&(Jt=window.gsap)&&Jt.registerPlugin&&Jt},NL=function(e){return Math.round(e*1e5)/1e5||0},us=function(e){return Et.maxScroll(e||Mr)},BL=function(e,n){var r=e.parentNode||yu,i=e.getBoundingClientRect(),o=r.getBoundingClientRect(),s=o.top-i.top,a=o.bottom-i.bottom,u=(Math.abs(s)>Math.abs(a)?s:a)/(1-n),c=-u*n,h,l;return u>0&&(h=o.height/(Mr.innerHeight+o.height),l=h===.5?o.height*2:Math.min(o.height,Math.abs(-u*h/(2*h-1)))*2*(n||1),c+=n?-l*n:-l/2,u+=l),{change:u,offset:c}},VL=function(e){var n=_s.querySelector(".ScrollSmoother-wrapper");return n||(n=_s.createElement("div"),n.classList.add("ScrollSmoother-wrapper"),e.parentNode.insertBefore(n,e),n.appendChild(e)),n},Ea=function(){function t(e){var n=this;Ef||t.register(Jt)||console.warn("Please gsap.registerPlugin(ScrollSmoother)"),e=this.vars=e||{},fo&&fo.kill(),fo=this,Sy(this);var r=e,i=r.smoothTouch,o=r.onUpdate,s=r.onStop,a=r.smooth,u=r.onFocusIn,c=r.normalizeScroll,h=r.wholePixels,l,d,f,_,g,b,y,w,A,k,R,C,L,M,$=this,U=e.effectsPrefix||"",ne=Et.getScrollFunc(Mr),D=Et.isTouch===1?i===!0?.8:parseFloat(i)||0:a===0||a===!1?0:parseFloat(a)||.8,Q=D&&+e.speed||1,N=0,W=0,V=1,B=by(0),oe=function(){return B.update(-N)},se={y:0},q=function(){return l.style.overflow="visible"},be,Te=function(F){F.update();var Z=F.getTween();Z&&(Z.pause(),Z._time=Z._dur,Z._tTime=Z._tDur),be=!1,F.animation.progress(F.progress,!0)},he=function(F,Z){(F!==N&&!k||Z)&&(h&&(F=Math.round(F)),D&&(l.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+F+", 0, 1)",l._gsap.y=F+"px"),W=F-N,N=F,Et.isUpdating||t.isRefreshing||Et.update())},ge=function(F){return arguments.length?(F<0&&(F=0),se.y=-F,be=!0,k?N=-F:he(-F),Et.isRefreshing?_.update():ne(F/Q),this):-N},Ae=typeof ResizeObserver<"u"&&e.autoResize!==!1&&new ResizeObserver(function(){if(!Et.isRefreshing){var I=us(d)*Q;I<-N&&ge(I),Ty.restart(!0)}}),ye,ie=function(F){d.scrollTop=0,!(F.target.contains&&F.target.contains(d)||u&&u(n,F)===!1)&&(Et.isInViewport(F.target)||F.target===ye||n.scrollTo(F.target,!1,"center center"),ye=F.target)},le=function(F,Z){if(F<Z.start)return F;var fe=isNaN(Z.ratio)?1:Z.ratio,ue=Z.end-Z.start,S=F-Z.start,m=Z.offset||0,T=Z.pins||[],H=T.offset||0,re=Z._startClamp&&Z.start<=0||Z.pins&&Z.pins.offset?0:Z._endClamp&&Z.end===us()?1:.5;return T.forEach(function(ce){ue-=ce.distance,ce.nativeStart<=F&&(S-=ce.distance)}),H&&(S*=(ue-H/fe)/ue),F+(S-m*re)/fe-S},pe=function I(F,Z,fe){fe||(F.pins.length=F.pins.offset=0);var ue=F.pins,S=F.markers,m,T,H,re,ce,Ee,De,Pe;for(De=0;De<Z.length;De++)if(Pe=Z[De],F.trigger&&Pe.trigger&&F!==Pe&&(Pe.trigger===F.trigger||Pe.pinnedContainer===F.trigger||F.trigger.contains(Pe.trigger))&&(ce=Pe._startNative||Pe._startClamp||Pe.start,Ee=Pe._endNative||Pe._endClamp||Pe.end,H=le(ce,F),re=Pe.pin&&Ee>0?H+(Ee-ce):le(Ee,F),Pe.setPositions(H,re,!0,(Pe._startClamp?Math.max(0,H):H)-ce),Pe.markerStart&&S.push(Jt.quickSetter([Pe.markerStart,Pe.markerEnd],"y","px")),Pe.pin&&Pe.end>0&&!fe)){if(m=Pe.end-Pe.start,T=F._startClamp&&Pe.start<0,T){if(F.start>0){F.setPositions(0,F.end+(F._startNative-F.start),!0),I(F,Z);return}m+=Pe.start,ue.offset=-Pe.start}ue.push({start:Pe.start,nativeStart:ce,end:Pe.end,distance:m,trig:Pe}),F.setPositions(F.start,F.end+(T?-Pe.start:m),!0)}},Se=function(F,Z){g.forEach(function(fe){return pe(fe,F,Z)})},Ie=function(){yu=_s.documentElement,Lo=_s.body,q(),requestAnimationFrame(q),g&&(Et.getAll().forEach(function(F){F._startNative=F.start,F._endNative=F.end}),g.forEach(function(F){var Z=F._startClamp||F.start,fe=F.autoSpeed?Math.min(us(),F.end):Z+Math.abs((F.end-Z)/F.ratio),ue=fe-F.end;if(Z-=ue/2,fe-=ue/2,Z>fe){var S=Z;Z=fe,fe=S}F._startClamp&&Z<0?(fe=F.ratio<0?us():F.end/F.ratio,ue=fe-F.end,Z=0):(F.ratio<0||F._endClamp&&fe>=us())&&(fe=us(),Z=F.ratio<0||F.ratio>1?0:fe-(fe-F.start)/F.ratio,ue=(fe-Z)*F.ratio-(F.end-F.start)),F.offset=ue||1e-4,F.pins.length=F.pins.offset=0,F.setPositions(Z,fe,!0)}),Se(Et.sort())),B.reset()},z=function(){return Et.addEventListener("refresh",Ie)},P=function(){return g&&g.forEach(function(F){return F.vars.onRefresh(F)})},Y=function(){return g&&g.forEach(function(F){return F.vars.onRefreshInit(F)}),P},ee=function(F,Z,fe,ue){return function(){var S=typeof Z=="function"?Z(fe,ue):Z;S||S===0||(S=ue.getAttribute("data-"+U+F)||(F==="speed"?1:0)),ue.setAttribute("data-"+U+F,S);var m=(S+"").substr(0,6)==="clamp(";return{clamp:m,value:m?S.substr(6,S.length-7):S}}},K=function(F,Z,fe,ue,S){S=(typeof S=="function"?S(ue,F):S)||0;var m=ee("speed",Z,ue,F),T=ee("lag",fe,ue,F),H=Jt.getProperty(F,"y"),re=F._gsap,ce,Ee,De,Pe,Be,Qe,tt=[],pt=function(){Z=m(),fe=parseFloat(T().value),ce=parseFloat(Z.value)||1,De=Z.value==="auto",Be=De||Ee&&Ee._startClamp&&Ee.start<=0||tt.offset?0:Ee&&Ee._endClamp&&Ee.end===us()?1:.5,Pe&&Pe.kill(),Pe=fe&&Jt.to(F,{ease:kf,overwrite:!1,y:"+=0",duration:fe}),Ee&&(Ee.ratio=ce,Ee.autoSpeed=De)},mt=function(){re.y=H+"px",re.renderTransform(1),pt()},rn=[],nt=0,Ut=function(dt){if(De){mt();var jt=BL(F,yy(0,1,-dt.start/(dt.end-dt.start)));nt=jt.change,Qe=jt.offset}else Qe=tt.offset||0,nt=(dt.end-dt.start-Qe)*(1-ce);tt.forEach(function(Cn){return nt-=Cn.distance*(1-ce)}),dt.offset=nt||.001,dt.vars.onUpdate(dt),Pe&&Pe.progress(1)};return pt(),(ce!==1||De||Pe)&&(Ee=Et.create({trigger:De?F.parentNode:F,start:function(){return Z.clamp?"clamp(top bottom+="+S+")":"top bottom+="+S},end:function(){return Z.value<0?"max":Z.clamp?"clamp(bottom top-="+S+")":"bottom top-="+S},scroller:d,scrub:!0,refreshPriority:-999,onRefreshInit:mt,onRefresh:Ut,onKill:function(dt){var jt=g.indexOf(dt);jt>=0&&g.splice(jt,1),mt()},onUpdate:function(dt){var jt=H+nt*(dt.progress-Be),Cn=tt.length,Pn=0,Ke,ht,rt;if(dt.offset){if(Cn){for(ht=-N,rt=dt.end;Cn--;){if(Ke=tt[Cn],Ke.trig.isActive||ht>=Ke.start&&ht<=Ke.end){Pe&&(Ke.trig.progress+=Ke.trig.direction<0?.001:-.001,Ke.trig.update(0,0,1),Pe.resetTo("y",parseFloat(re.y),-W,!0),V&&Pe.progress(1));return}ht>Ke.end&&(Pn+=Ke.distance),rt-=Ke.distance}jt=H+Pn+nt*((Jt.utils.clamp(dt.start,dt.end,ht)-dt.start-Pn)/(rt-dt.start)-Be)}rn.length&&!De&&rn.forEach(function(ot){return ot(jt-Pn)}),jt=NL(jt+Qe),Pe?(Pe.resetTo("y",jt,-W,!0),V&&Pe.progress(1)):(re.y=jt+"px",re.renderTransform(1))}}}),Ut(Ee),Jt.core.getCache(Ee.trigger).stRevert=Y,Ee.startY=H,Ee.pins=tt,Ee.markers=rn,Ee.ratio=ce,Ee.autoSpeed=De,F.style.willChange="transform"),Ee};z(),Et.addEventListener("killAll",z),Jt.delayedCall(.5,function(){return V=0}),this.scrollTop=ge,this.scrollTo=function(I,F,Z){var fe=Jt.utils.clamp(0,us(),isNaN(I)?n.offset(I,Z,!!F&&!k):+I);F?k?Jt.to(n,{duration:D,scrollTop:fe,overwrite:"auto",ease:kf}):ne(fe):ge(fe)},this.offset=function(I,F,Z){I=Zs(I)[0];var fe=I.style.cssText,ue=Et.create({trigger:I,start:F||"top top"}),S;return g&&(V?Et.refresh():Se([ue],!0)),S=ue.start/(Z?Q:1),ue.kill(!1),I.style.cssText=fe,Jt.core.getCache(I).uncache=1,S};function x(){return f=l.clientHeight,l.style.overflow="visible",Lo.style.height=Mr.innerHeight+(f-Mr.innerHeight)/Q+"px",f-Mr.innerHeight}this.content=function(I){if(arguments.length){var F=Zs(I||"#smooth-content")[0]||console.warn("ScrollSmoother needs a valid content element.")||Lo.children[0];return F!==l&&(l=F,A=l.getAttribute("style")||"",Ae&&Ae.observe(l),Jt.set(l,{overflow:"visible",width:"100%",boxSizing:"border-box",y:"+=0"}),D||Jt.set(l,{clearProps:"transform"})),this}return l},this.wrapper=function(I){return arguments.length?(d=Zs(I||"#smooth-wrapper")[0]||VL(l),w=d.getAttribute("style")||"",x(),Jt.set(d,D?{overflow:"hidden",position:"fixed",height:"100%",width:"100%",top:0,left:0,right:0,bottom:0}:{overflow:"visible",position:"relative",width:"100%",height:"auto",top:"auto",bottom:"auto",left:"auto",right:"auto"}),this):d},this.effects=function(I,F){var Z;if(g||(g=[]),!I)return g.slice(0);I=Zs(I),I.forEach(function(ce){for(var Ee=g.length;Ee--;)g[Ee].trigger===ce&&g[Ee].kill()}),F=F||{};var fe=F,ue=fe.speed,S=fe.lag,m=fe.effectsPadding,T=[],H,re;for(H=0;H<I.length;H++)re=K(I[H],ue,S,H,m),re&&T.push(re);return(Z=g).push.apply(Z,T),F.refresh!==!1&&Et.refresh(),T},this.sections=function(I,F){var Z;if(b||(b=[]),!I)return b.slice(0);var fe=Zs(I).map(function(ue){return Et.create({trigger:ue,start:"top 120%",end:"bottom -20%",onToggle:function(m){ue.style.opacity=m.isActive?"1":"0",ue.style.pointerEvents=m.isActive?"all":"none"}})});return F&&F.add?(Z=b).push.apply(Z,fe):b=fe.slice(0),fe},this.content(e.content),this.wrapper(e.wrapper),this.render=function(I){return he(I||I===0?I:N)},this.getVelocity=function(){return B.getVelocity(-N)},Et.scrollerProxy(d,{scrollTop:ge,scrollHeight:function(){return x()&&Lo.scrollHeight},fixedMarkers:e.fixedMarkers!==!1&&!!D,content:l,getBoundingClientRect:function(){return{top:0,left:0,width:Mr.innerWidth,height:Mr.innerHeight}}}),Et.defaults({scroller:d});var G=Et.getAll().filter(function(I){return I.scroller===Mr||I.scroller===d});G.forEach(function(I){return I.revert(!0,!0)}),_=Et.create({animation:Jt.fromTo(se,{y:function(){return M=0,0}},{y:function(){return M=1,-x()},immediateRender:!1,ease:"none",data:"ScrollSmoother",duration:100,onUpdate:function(){if(M){var F=be;F&&(Te(_),se.y=N),he(se.y,F),oe(),o&&!k&&o($)}}}),onRefreshInit:function(F){if(!t.isRefreshing){if(t.isRefreshing=!0,g){var Z=Et.getAll().filter(function(ue){return!!ue.pin});g.forEach(function(ue){ue.vars.pinnedContainer||Z.forEach(function(S){if(S.pin.contains(ue.trigger)){var m=ue.vars;m.pinnedContainer=S.pin,ue.vars=null,ue.init(m,ue.animation)}})})}var fe=F.getTween();L=fe&&fe._end>fe._dp._time,C=N,se.y=0,D&&(Et.isTouch===1&&(d.style.position="absolute"),d.scrollTop=0,Et.isTouch===1&&(d.style.position="fixed"))}},onRefresh:function(F){F.animation.invalidate(),F.setPositions(F.start,x()/Q),L||Te(F),se.y=-ne()*Q,he(se.y),V||(L&&(be=!1),F.animation.progress(Jt.utils.clamp(0,1,C/Q/-F.end))),L&&(F.progress-=.001,F.update()),t.isRefreshing=!1},id:"ScrollSmoother",scroller:Mr,invalidateOnRefresh:!0,start:0,refreshPriority:-9999,end:function(){return x()/Q},onScrubComplete:function(){B.reset(),s&&s(n)},scrub:D||!0}),this.smooth=function(I){return arguments.length&&(D=I||0,Q=D&&+e.speed||1,_.scrubDuration(I)),_.getTween()?_.getTween().duration():0},_.getTween()&&(_.getTween().vars.ease=e.ease||kf),this.scrollTrigger=_,e.effects&&this.effects(e.effects===!0?"[data-"+U+"speed], [data-"+U+"lag]":e.effects,{effectsPadding:e.effectsPadding,refresh:!1}),e.sections&&this.sections(e.sections===!0?"[data-section]":e.sections),G.forEach(function(I){I.vars.scroller=d,I.revert(!1,!0),I.init(I.vars,I.animation)}),this.paused=function(I,F){return arguments.length?(!!k!==I&&(I?(_.getTween()&&_.getTween().pause(),ne(-N/Q),B.reset(),R=Et.normalizeScroll(),R&&R.disable(),k=Et.observe({preventDefault:!0,type:"wheel,touch,scroll",debounce:!1,allowClicks:!0,onChangeY:function(){return ge(-N)}}),k.nested=wy(yu,"wheel,touch,scroll",!0,F!==!1)):(k.nested.kill(),k.kill(),k=0,R&&R.enable(),_.progress=(-N/Q-_.start)/(_.end-_.start),Te(_))),this):!!k},this.kill=this.revert=function(){n.paused(!1),Te(_),_.kill();for(var I=(g||[]).concat(b||[]),F=I.length;F--;)I[F].kill();Et.scrollerProxy(d),Et.removeEventListener("killAll",z),Et.removeEventListener("refresh",Ie),d.style.cssText=w,l.style.cssText=A;var Z=Et.defaults({});Z&&Z.scroller===d&&Et.defaults({scroller:Mr}),n.normalizer&&Et.normalizeScroll(!1),clearInterval(y),fo=null,Ae&&Ae.disconnect(),Lo.style.removeProperty("height"),Mr.removeEventListener("focusin",ie)},this.refresh=function(I,F){return _.refresh(I,F)},c&&(this.normalizer=Et.normalizeScroll(c===!0?{debounce:!0,content:!D&&l}:c)),Et.config(e),"scrollBehavior"in Mr.getComputedStyle(Lo)&&Jt.set([Lo,yu],{scrollBehavior:"auto"}),Mr.addEventListener("focusin",ie),y=setInterval(oe,250),_s.readyState==="loading"||requestAnimationFrame(function(){return Et.refresh()})}return t.register=function(n){return Ef||(Jt=n||_T(),gT()&&window.document&&(Mr=window,_s=document,yu=_s.documentElement,Lo=_s.body),Jt&&(Zs=Jt.utils.toArray,yy=Jt.utils.clamp,kf=Jt.parseEase("expo"),Sy=Jt.core.context||function(){},Et=Jt.core.globals().ScrollTrigger,Jt.core.globals("ScrollSmoother",t),Lo&&Et&&(Ty=Jt.delayedCall(.2,function(){return Et.isRefreshing||fo&&fo.refresh()}).pause(),by=Et.core._getVelocityProp,wy=Et.core._inputObserver,t.refresh=Et.refresh,Ef=1))),Ef},HL(t,[{key:"progress",get:function(){return this.scrollTrigger?this.scrollTrigger.animation._time/100:0}}]),t}();Ea.version="3.13.0";Ea.create=function(t){return fo&&t&&fo.content()===Zs(t.content)[0]?fo:new Ea(t)};Ea.get=function(){return fo};_T()&&Jt.registerPlugin(Ea);/*!
 * ScrollToPlugin 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 Rr,vT,Yo,go,Cs,yT,dl,Af,bT=function(){return typeof window<"u"},wT=function(){return Rr||bT()&&(Rr=window.gsap)&&Rr.registerPlugin&&Rr},ST=function(e){return typeof e=="string"},Ey=function(e){return typeof e=="function"},dc=function(e,n){var r=n==="x"?"Width":"Height",i="scroll"+r,o="client"+r;return e===Yo||e===go||e===Cs?Math.max(go[i],Cs[i])-(Yo["inner"+r]||go[o]||Cs[o]):e[i]-e["offset"+r]},hc=function(e,n){var r="scroll"+(n==="x"?"Left":"Top");return e===Yo&&(e.pageXOffset!=null?r="page"+n.toUpperCase()+"Offset":e=go[r]!=null?go:Cs),function(){return e[r]}},UL=function(e,n,r,i){if(Ey(e)&&(e=e(n,r,i)),typeof e!="object")return ST(e)&&e!=="max"&&e.charAt(1)!=="="?{x:e,y:e}:{y:e};if(e.nodeType)return{y:e,x:e};var o={},s;for(s in e)o[s]=s!=="onAutoKill"&&Ey(e[s])?e[s](n,r,i):e[s];return o},TT=function(e,n){if(e=yT(e)[0],!e||!e.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var r=e.getBoundingClientRect(),i=!n||n===Yo||n===Cs,o=i?{top:go.clientTop-(Yo.pageYOffset||go.scrollTop||Cs.scrollTop||0),left:go.clientLeft-(Yo.pageXOffset||go.scrollLeft||Cs.scrollLeft||0)}:n.getBoundingClientRect(),s={x:r.left-o.left,y:r.top-o.top};return!i&&n&&(s.x+=hc(n,"x")(),s.y+=hc(n,"y")()),s},ky=function(e,n,r,i,o){return!isNaN(e)&&typeof e!="object"?parseFloat(e)-o:ST(e)&&e.charAt(1)==="="?parseFloat(e.substr(2))*(e.charAt(0)==="-"?-1:1)+i-o:e==="max"?dc(n,r)-o:Math.min(dc(n,r),TT(e,n)[r]-o)},Em=function(){Rr=wT(),bT()&&Rr&&typeof document<"u"&&document.body&&(Yo=window,Cs=document.body,go=document.documentElement,yT=Rr.utils.toArray,Rr.config({autoKillThreshold:7}),dl=Rr.config(),vT=1)},ka={version:"3.13.0",name:"scrollTo",rawVars:1,register:function(e){Rr=e,Em()},init:function(e,n,r,i,o){vT||Em();var s=this,a=Rr.getProperty(e,"scrollSnapType");s.isWin=e===Yo,s.target=e,s.tween=r,n=UL(n,i,e,o),s.vars=n,s.autoKill=!!("autoKill"in n?n:dl).autoKill,s.getX=hc(e,"x"),s.getY=hc(e,"y"),s.x=s.xPrev=s.getX(),s.y=s.yPrev=s.getY(),Af||(Af=Rr.core.globals().ScrollTrigger),Rr.getProperty(e,"scrollBehavior")==="smooth"&&Rr.set(e,{scrollBehavior:"auto"}),a&&a!=="none"&&(s.snap=1,s.snapInline=e.style.scrollSnapType,e.style.scrollSnapType="none"),n.x!=null?(s.add(s,"x",s.x,ky(n.x,e,"x",s.x,n.offsetX||0),i,o),s._props.push("scrollTo_x")):s.skipX=1,n.y!=null?(s.add(s,"y",s.y,ky(n.y,e,"y",s.y,n.offsetY||0),i,o),s._props.push("scrollTo_y")):s.skipY=1},render:function(e,n){for(var r=n._pt,i=n.target,o=n.tween,s=n.autoKill,a=n.xPrev,u=n.yPrev,c=n.isWin,h=n.snap,l=n.snapInline,d,f,_,g,b;r;)r.r(e,r.d),r=r._next;d=c||!n.skipX?n.getX():a,f=c||!n.skipY?n.getY():u,_=f-u,g=d-a,b=dl.autoKillThreshold,n.x<0&&(n.x=0),n.y<0&&(n.y=0),s&&(!n.skipX&&(g>b||g<-b)&&d<dc(i,"x")&&(n.skipX=1),!n.skipY&&(_>b||_<-b)&&f<dc(i,"y")&&(n.skipY=1),n.skipX&&n.skipY&&(o.kill(),n.vars.onAutoKill&&n.vars.onAutoKill.apply(o,n.vars.onAutoKillParams||[]))),c?Yo.scrollTo(n.skipX?d:n.x,n.skipY?f:n.y):(n.skipY||(i.scrollTop=n.y),n.skipX||(i.scrollLeft=n.x)),h&&(e===1||e===0)&&(f=i.scrollTop,d=i.scrollLeft,l?i.style.scrollSnapType=l:i.style.removeProperty("scroll-snap-type"),i.scrollTop=f+1,i.scrollLeft=d+1,i.scrollTop=f,i.scrollLeft=d),n.xPrev=n.x,n.yPrev=n.y,Af&&Af.update()},kill:function(e){var n=e==="scrollTo",r=this._props.indexOf(e);return(n||e==="scrollTo_x")&&(this.skipX=1),(n||e==="scrollTo_y")&&(this.skipY=1),r>-1&&this._props.splice(r,1),!this._props.length}};ka.max=dc;ka.getOffset=TT;ka.buildGetter=hc;ka.config=function(t){dl||Em()||(dl=Rr.config());for(var e in t)dl[e]=t[e]};wT()&&Rr.registerPlugin(ka);/*!
 * DrawSVGPlugin 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 _o,Xg,xd,ET,kT,Ay,km,AT,RT=function(){return typeof window<"u"},xT=function(){return _o||RT()&&(_o=window.gsap)&&_o.registerPlugin&&_o},jL=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,cp={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},na=function(e){return Math.round(e*1e4)/1e4},Wo=function(e){return parseFloat(e)||0},Ry=function(e,n){var r=Wo(e);return~e.indexOf("%")?r/100*n:r},Rf=function(e,n){return Wo(e.getAttribute(n))},Gf=Math.sqrt,xy=function(e,n,r,i,o,s){return Gf(Math.pow((Wo(r)-Wo(e))*o,2)+Math.pow((Wo(i)-Wo(n))*s,2))},Cy=function(e){return console.warn(e)},CT=function(e){return e.getAttribute("vector-effect")==="non-scaling-stroke"},WL=1,zL=function(e,n,r){var i=e.indexOf(" "),o,s;return i<0?(o=r!==void 0?r+"":e,s=e):(o=e.substr(0,i),s=e.substr(i+1)),o=Ry(o,n),s=Ry(s,n),o>s?[s,o]:[o,s]},Yf=function(e){if(e=Xg(e)[0],!e)return 0;var n=e.tagName.toLowerCase(),r=e.style,i=1,o=1,s,a,u,c,h,l,d;CT(e)&&(o=e.getScreenCTM(),i=Gf(o.a*o.a+o.b*o.b),o=Gf(o.d*o.d+o.c*o.c));try{a=e.getBBox()}catch{Cy("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var f=a||{x:0,y:0,width:0,height:0},_=f.x,g=f.y,b=f.width,y=f.height;if((!a||!b&&!y)&&cp[n]&&(b=Rf(e,cp[n][0]),y=Rf(e,cp[n][1]),n!=="rect"&&n!=="line"&&(b*=2,y*=2),n==="line"&&(_=Rf(e,"x1"),g=Rf(e,"y1"),b=Math.abs(b-_),y=Math.abs(y-g))),n==="path")c=r.strokeDasharray,r.strokeDasharray="none",s=e.getTotalLength()||0,na(i)!==na(o)&&!Ay&&(Ay=1)&&Cy("Warning: <path> length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),s*=(i+o)/2,r.strokeDasharray=c;else if(n==="rect")s=b*2*i+y*2*o;else if(n==="line")s=xy(_,g,_+b,g+y,i,o);else if(n==="polyline"||n==="polygon")for(u=e.getAttribute("points").match(jL)||[],n==="polygon"&&u.push(u[0],u[1]),s=0,h=2;h<u.length;h+=2)s+=xy(u[h-2],u[h-1],u[h],u[h+1],i,o)||0;else(n==="circle"||n==="ellipse")&&(l=b/2*i,d=y/2*o,s=Math.PI*(3*(l+d)-Gf((3*l+d)*(l+3*d))));return s||0},Py=function(e,n){if(e=Xg(e)[0],!e)return[0,0];n||(n=Yf(e)+1);var r=xd.getComputedStyle(e),i=r.strokeDasharray||"",o=Wo(r.strokeDashoffset),s=i.indexOf(",");return s<0&&(s=i.indexOf(" ")),i=s<0?n:Wo(i.substr(0,s)),i>n&&(i=n),[-o||0,i-o||0]},Iy=function(){RT()&&(xd=window,kT=_o=xT(),Xg=_o.utils.toArray,km=_o.core.getStyleSaver,AT=_o.core.reverting||function(){},ET=((xd.navigator||{}).userAgent||"").indexOf("Edge")!==-1)},PT={version:"3.13.0",name:"drawSVG",register:function(e){_o=e,Iy()},init:function(e,n,r,i,o){if(!e.getBBox)return!1;kT||Iy();var s=Yf(e),a,u,c;return this.styles=km&&km(e,"strokeDashoffset,strokeDasharray,strokeMiterlimit"),this.tween=r,this._style=e.style,this._target=e,n+""=="true"?n="0 100%":n?(n+"").indexOf(" ")===-1&&(n="0 "+n):n="0 0",a=Py(e,s),u=zL(n,s,a[0]),this._length=na(s),this._dash=na(a[1]-a[0]),this._offset=na(-a[0]),this._dashPT=this.add(this,"_dash",this._dash,na(u[1]-u[0]),0,0,0,0,0,1),this._offsetPT=this.add(this,"_offset",this._offset,na(-u[0]),0,0,0,0,0,1),ET&&(c=xd.getComputedStyle(e),c.strokeLinecap!==c.strokeLinejoin&&(u=Wo(c.strokeMiterlimit),this.add(e.style,"strokeMiterlimit",u,u+.01))),this._live=CT(e)||~(n+"").indexOf("live"),this._nowrap=~(n+"").indexOf("nowrap"),this._props.push("drawSVG"),WL},render:function(e,n){if(n.tween._time||!AT()){var r=n._pt,i=n._style,o,s,a,u;if(r){for(n._live&&(o=Yf(n._target),o!==n._length&&(s=o/n._length,n._length=o,n._offsetPT&&(n._offsetPT.s*=s,n._offsetPT.c*=s),n._dashPT?(n._dashPT.s*=s,n._dashPT.c*=s):n._dash*=s));r;)r.r(e,r.d),r=r._next;a=n._dash||e&&e!==1&&1e-4||0,o=n._length-a+.1,u=n._offset,a&&u&&a+Math.abs(u%n._length)>n._length-.05&&(u+=u<0?.005:-.005)&&(o+=.005),i.strokeDashoffset=a?u:u+.001,i.strokeDasharray=o<.1?"none":a?a+"px,"+(n._nowrap?999999:o)+"px":"0px, 999999px"}}else n.styles.revert()},getLength:Yf,getPosition:Py};xT()&&_o.registerPlugin(PT);const gn=function(){return lt.isSSR||(Bn.registerPlugin(kl,Ea,um,hm,It,ka,PT),Bn.defaults({ease:"linear"})),{gsap:Bn,CustomEase:kl,ScrollSmoother:Ea,CSSRulePlugin:um,SplitText:hm,ScrollTrigger:It,ScrollToPlugin:ka}},_t=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},qL=["data-variant"],GL={class:"ButtonBasic ButtonBasic--hover"},YL=["data-variant"],KL=["data-variant"],XL={class:"ButtonBasic ButtonBasic--hover"},QL=["data-variant"],JL={__name:"ButtonBasic",props:{label:{type:String,required:!0,default:""},theme:{type:String,default:"black"},to:{type:String},rel:{type:String},download:{type:String},buttonType:{type:String},variant:{type:String,default:"default"},target:{type:String,default:null},manualHover:{type:Boolean,default:!1,required:!1},notButton:{type:Boolean,default:!1,required:!1}},emits:["click"],setup(t,{emit:e}){const n=t,r=e,{gsap:i}=gn();let o=null;const s=[],a=[],u=j(null);let c=!1;Ne(()=>n.manualHover,()=>{n.manualHover?(h(),c=!0):(c=!1,l())});function h(){c||(o==null||o.kill(),o=i.timeline(),o.set(u.value,{y:"101%"},0),o.to(u.value,{duration:.45,ease:"sine.inOut",y:0},0),o.to(s,{duration:.45,stagger:.05,y:"-150%",ease:"sine.in"},0),o.set(a,{y:"150%"},0),o.to(a,{delay:.1,duration:.5,stagger:.05,y:0,ease:"sine.out"},0))}function l(){c||(o==null||o.kill(),o=i.timeline(),o.to(u.value,{duration:.45,ease:"sine.inOut",y:"-101%"}),o.set(s,{y:"150%"},0),o.to(s,{delay:.1,duration:.45,stagger:.05,y:0,ease:"sine.out"},0),o.to(a,{duration:.5,stagger:.05,y:"-150%",ease:"sine.out"},0))}function d(A){r("click",A)}function f(){lt.touchScreen||h()}function _(){lt.touchScreen||l()}function g(A){return String(A).trim()}const b=Ce(()=>!n.to||n.buttonType);Ce(()=>g(n.label));const y=Ce(()=>g(n.label)),w=Ce(()=>{var A;return(A=y.value)==null?void 0:A.split(" ")});return xt(()=>{i.set([u.value],{y:"101%"}),i.set(a,{y:"100%"})}),(A,k)=>{const R=Ow;return _e(b)?(ae(),Kt(va(t.notButton?"span":"button"),{key:0,class:"ButtonBasic-wrapper",type:n.buttonType,"data-variant":t.variant,"data-is-hover":t.manualHover,onClick:d,onMouseenter:f,onMouseleave:_},{default:Di(()=>[J("span",{class:st(["ButtonBasic ButtonBasic--static",[`ButtonBasic--${n.theme}`]])},[_e(y)?(ae(),me("span",{key:0,class:"ButtonBasic-text","data-variant":t.variant},[(ae(!0),me(Ye,null,ut(_e(w),(C,L)=>(ae(),me("span",{key:`ButtonBasic-word-${L}`,ref_for:!0,ref:M=>s[L]=M,class:"ButtonBasic-word"},We(C),1))),128))],8,qL)):bt("",!0)],2),J("span",{ref_key:"hoverBgRef",ref:u,class:st(["ButtonBasic-hover-bg",[`ButtonBasic--${n.theme}-hover`]])},null,2),J("span",GL,[_e(y)?(ae(),me("span",{key:0,class:"ButtonBasic-text ButtonBasic-text--hover","data-variant":t.variant,"aria-hidden":"true"},[(ae(!0),me(Ye,null,ut(_e(w),(C,L)=>(ae(),me("span",{key:`ButtonBasic-word-${L}`,ref_for:!0,ref:M=>a[L]=M,class:"ButtonBasic-word"},We(C),1))),128))],8,YL)):bt("",!0)])]),_:1},40,["type","data-variant","data-is-hover"])):(ae(),Kt(R,{key:1,class:"ButtonBasic-wrapper",to:n.to,download:n.download,rel:n.rel,"data-variant":t.variant,"data-is-hover":t.manualHover,target:t.target,onMouseenter:f,onMouseleave:_},{default:Di(()=>[J("span",{class:st(["ButtonBasic ButtonBasic--static",[`ButtonBasic--${n.theme}`]])},[_e(y)?(ae(),me("span",{key:0,class:"ButtonBasic-text","data-variant":t.variant},[(ae(!0),me(Ye,null,ut(_e(w),(C,L)=>(ae(),me("span",{key:`ButtonBasic-word-${L}`,ref_for:!0,ref:M=>s[L]=M,class:"ButtonBasic-word"},We(C),1))),128))],8,KL)):bt("",!0)],2),J("span",{ref_key:"hoverBgRef",ref:u,class:st(["ButtonBasic-hover-bg",[`ButtonBasic--${n.theme}-hover`]])},null,2),J("span",XL,[_e(y)?(ae(),me("span",{key:0,class:"ButtonBasic-text ButtonBasic-text--hover","data-variant":t.variant,"aria-hidden":"true"},[(ae(!0),me(Ye,null,ut(_e(w),(C,L)=>(ae(),me("span",{key:`ButtonBasic-word-${L}`,ref_for:!0,ref:M=>a[L]=M,class:"ButtonBasic-word"},We(C),1))),128))],8,QL)):bt("",!0)])]),_:1},8,["to","download","rel","data-variant","data-is-hover","target"]))}}},IT=_t(JL,[["__scopeId","data-v-96eda748"]]),ZL={},eO={class:"The404"},tO={class:"The404-container"},nO={class:"The404-wrapper"};function rO(t,e){const n=IT;return ae(),me("section",eO,[e[1]||(e[1]=J("div",{class:"The404-bgtext"},null,-1)),J("div",tO,[J("div",nO,[e[0]||(e[0]=J("p",{class:"The404-text type-body--md"},"Sorry, we can't find the page you're looking for.",-1)),Ve(n,{label:"Go back home",to:"/",variant:"primary",size:"large"})])])])}const iO=_t(ZL,[["render",rO],["__scopeId","data-v-b39b54b2"]]),oO=["data-in-column","innerHTML"],Pc=Ji({__name:"RichText",props:{html:{type:String,required:!1},disableStyles:{type:Boolean,default:!1},extraClasses:{type:String,default:""},inColumn:{type:Boolean,default:!1}},setup(t){return(e,n)=>t.html?(ae(),me("div",{key:0,"data-in-column":t.inColumn,class:st([t.disableStyles?"":"RichText",t.extraClasses]),innerHTML:t.html},null,10,oO)):bt("",!0)}});class sO{addOptionsToUrl(e,n){return n&&n.forEach(r=>{e.indexOf("?")>-1?e+="&":e+="?",e+=r.getParam()}),e}}const Ly=new sO;function Ll(t){const e=[];for(const n of Object.keys(t.headers))e.push({header:n,value:t.headers[n]});return e}class aO{constructor(){this.requestCancelledMessagePrefix="Request cancelled",this.retryAfterHeaderName="Retry-After",this.defaultRetryStatusCodes=[408,429,500,502,503,504],this.defaultRetryStrategy={addJitter:!0,deltaBackoffMs:1e3,maxAttempts:5,canRetryError:e=>this.canRetryErrorDefault(e)}}getRetryErrorResult(e){var n,r,i;if(e.error&&e.error.message&&e.error.message.startsWith(this.requestCancelledMessagePrefix))return{canRetry:!1,retryInMs:0,maxRetries:0};if(!(e.retryStrategy.canRetryError?e.retryStrategy.canRetryError(e.error):this.defaultRetryStrategy.canRetryError(e.error)))return{canRetry:!1,retryInMs:0,maxRetries:0};const s=(n=e.retryStrategy.maxAttempts)!==null&&n!==void 0?n:this.defaultRetryStrategy.maxAttempts;if(e.retryAttempt>=s)return{canRetry:!1,retryInMs:0,maxRetries:s};const u=this.tryGetRetryAfterInMsFromError(e.error);return u?{canRetry:!0,retryInMs:u,maxRetries:s}:{canRetry:!0,retryInMs:this.getNextWaitTimeMs((r=e.retryStrategy.addJitter)!==null&&r!==void 0?r:this.defaultRetryStrategy.addJitter,(i=e.retryStrategy.deltaBackoffMs)!==null&&i!==void 0?i:this.defaultRetryStrategy.deltaBackoffMs,e.retryAttempt),maxRetries:s}}getRetryStrategyFromStrategyOptions(e){return e||this.defaultRetryStrategy}canRetryInTime(e,n){const r=e.getTime(),o=new Date().getTime()-r;return{canRetry:o<n,differenceInMs:o}}getNextWaitTimeMs(e,n,r){if(!e)return n*Math.pow(2,r);const i=.8*n,o=1.2*n*Math.pow(2,r);return this.randomNumberFromInterval(i,o)}canRetryErrorDefault(e){if(!this.tryGetAxiosError(e))return!1;const r=this.getStatusCodeFromError(e);return!!this.canRetryStatusCode(r,this.defaultRetryStatusCodes)}tryGetRetryAfterInMsFromError(e){const n=this.tryGetAxiosError(e);if(!n||!n.response)return;const i=Ll(n.response).find(s=>s.header.toLowerCase()===this.retryAfterHeaderName.toLowerCase());return i?+i.value*1e3:void 0}canRetryStatusCode(e,n){return n.includes(e)}getStatusCodeFromError(e){const n=this.tryGetAxiosError(e);return!n||!n.response?0:n.response.status}tryGetAxiosError(e){if(!e)return;if(e.isAxiosError)return e;const n=e.originalError;if(n&&n.isAxiosError)return n}randomNumberFromInterval(e,n){return Math.floor(Math.random()*(n-e+1)+e)}}const Pa=new aO;var Oy;(function(t){class e{constructor(r,i){if(this.name=r,this.value=i,!r)throw Error("Name of the custom parameter is not specified")}getParam(){return this.name}getParamValue(){return this.value}}t.CustomParameter=e})(Oy||(Oy={}));function LT(t,e){return function(){return t.apply(e,arguments)}}const{toString:lO}=Object.prototype,{getPrototypeOf:Qg}=Object,{iterator:ah,toStringTag:OT}=Symbol,lh=(t=>e=>{const n=lO.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Zi=t=>(t=t.toLowerCase(),e=>lh(e)===t),uh=t=>e=>typeof e===t,{isArray:Ol}=Array,pc=uh("undefined");function uO(t){return t!==null&&!pc(t)&&t.constructor!==null&&!pc(t.constructor)&&Zr(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const MT=Zi("ArrayBuffer");function cO(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&MT(t.buffer),e}const fO=uh("string"),Zr=uh("function"),FT=uh("number"),ch=t=>t!==null&&typeof t=="object",dO=t=>t===!0||t===!1,Kf=t=>{if(lh(t)!=="object")return!1;const e=Qg(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(OT in t)&&!(ah in t)},hO=Zi("Date"),pO=Zi("File"),mO=Zi("Blob"),gO=Zi("FileList"),_O=t=>ch(t)&&Zr(t.pipe),vO=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Zr(t.append)&&((e=lh(t))==="formdata"||e==="object"&&Zr(t.toString)&&t.toString()==="[object FormData]"))},yO=Zi("URLSearchParams"),[bO,wO,SO,TO]=["ReadableStream","Request","Response","Headers"].map(Zi),EO=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ic(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),Ol(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),s=o.length;let a;for(r=0;r<s;r++)a=o[r],e.call(null,t[a],a,t)}}function DT(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const oa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,$T=t=>!pc(t)&&t!==oa;function Am(){const{caseless:t}=$T(this)&&this||{},e={},n=(r,i)=>{const o=t&&DT(e,i)||i;Kf(e[o])&&Kf(r)?e[o]=Am(e[o],r):Kf(r)?e[o]=Am({},r):Ol(r)?e[o]=r.slice():e[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Ic(arguments[r],n);return e}const kO=(t,e,n,{allOwnKeys:r}={})=>(Ic(e,(i,o)=>{n&&Zr(i)?t[o]=LT(i,n):t[o]=i},{allOwnKeys:r}),t),AO=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),RO=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},xO=(t,e,n,r)=>{let i,o,s;const a={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)s=i[o],(!r||r(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=n!==!1&&Qg(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},CO=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},PO=t=>{if(!t)return null;if(Ol(t))return t;let e=t.length;if(!FT(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},IO=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Qg(Uint8Array)),LO=(t,e)=>{const r=(t&&t[ah]).call(t);let i;for(;(i=r.next())&&!i.done;){const o=i.value;e.call(t,o[0],o[1])}},OO=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},MO=Zi("HTMLFormElement"),FO=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),My=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),DO=Zi("RegExp"),HT=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Ic(n,(i,o)=>{let s;(s=e(i,o,t))!==!1&&(r[o]=s||i)}),Object.defineProperties(t,r)},$O=t=>{HT(t,(e,n)=>{if(Zr(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Zr(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},HO=(t,e)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Ol(t)?r(t):r(String(t).split(e)),n},NO=()=>{},BO=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function VO(t){return!!(t&&Zr(t.append)&&t[OT]==="FormData"&&t[ah])}const UO=t=>{const e=new Array(10),n=(r,i)=>{if(ch(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const o=Ol(r)?[]:{};return Ic(r,(s,a)=>{const u=n(s,i+1);!pc(u)&&(o[a]=u)}),e[i]=void 0,o}}return r};return n(t,0)},jO=Zi("AsyncFunction"),WO=t=>t&&(ch(t)||Zr(t))&&Zr(t.then)&&Zr(t.catch),NT=((t,e)=>t?setImmediate:e?((n,r)=>(oa.addEventListener("message",({source:i,data:o})=>{i===oa&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),oa.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Zr(oa.postMessage)),zO=typeof queueMicrotask<"u"?queueMicrotask.bind(oa):typeof process<"u"&&process.nextTick||NT,qO=t=>t!=null&&Zr(t[ah]),Re={isArray:Ol,isArrayBuffer:MT,isBuffer:uO,isFormData:vO,isArrayBufferView:cO,isString:fO,isNumber:FT,isBoolean:dO,isObject:ch,isPlainObject:Kf,isReadableStream:bO,isRequest:wO,isResponse:SO,isHeaders:TO,isUndefined:pc,isDate:hO,isFile:pO,isBlob:mO,isRegExp:DO,isFunction:Zr,isStream:_O,isURLSearchParams:yO,isTypedArray:IO,isFileList:gO,forEach:Ic,merge:Am,extend:kO,trim:EO,stripBOM:AO,inherits:RO,toFlatObject:xO,kindOf:lh,kindOfTest:Zi,endsWith:CO,toArray:PO,forEachEntry:LO,matchAll:OO,isHTMLForm:MO,hasOwnProperty:My,hasOwnProp:My,reduceDescriptors:HT,freezeMethods:$O,toObjectSet:HO,toCamelCase:FO,noop:NO,toFiniteNumber:BO,findKey:DT,global:oa,isContextDefined:$T,isSpecCompliantForm:VO,toJSONObject:UO,isAsyncFn:jO,isThenable:WO,setImmediate:NT,asap:zO,isIterable:qO};function yt(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}Re.inherits(yt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Re.toJSONObject(this.config),code:this.code,status:this.status}}});const BT=yt.prototype,VT={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{VT[t]={value:t}});Object.defineProperties(yt,VT);Object.defineProperty(BT,"isAxiosError",{value:!0});yt.from=(t,e,n,r,i,o)=>{const s=Object.create(BT);return Re.toFlatObject(t,s,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),yt.call(s,t.message,e,n,r,i),s.cause=t,s.name=t.name,o&&Object.assign(s,o),s};const GO=null;function Rm(t){return Re.isPlainObject(t)||Re.isArray(t)}function UT(t){return Re.endsWith(t,"[]")?t.slice(0,-2):t}function Fy(t,e,n){return t?t.concat(e).map(function(i,o){return i=UT(i),!n&&o?"["+i+"]":i}).join(n?".":""):e}function YO(t){return Re.isArray(t)&&!t.some(Rm)}const KO=Re.toFlatObject(Re,{},null,function(e){return/^is[A-Z]/.test(e)});function fh(t,e,n){if(!Re.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=Re.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,b){return!Re.isUndefined(b[g])});const r=n.metaTokens,i=n.visitor||h,o=n.dots,s=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&Re.isSpecCompliantForm(e);if(!Re.isFunction(i))throw new TypeError("visitor must be a function");function c(_){if(_===null)return"";if(Re.isDate(_))return _.toISOString();if(!u&&Re.isBlob(_))throw new yt("Blob is not supported. Use a Buffer instead.");return Re.isArrayBuffer(_)||Re.isTypedArray(_)?u&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function h(_,g,b){let y=_;if(_&&!b&&typeof _=="object"){if(Re.endsWith(g,"{}"))g=r?g:g.slice(0,-2),_=JSON.stringify(_);else if(Re.isArray(_)&&YO(_)||(Re.isFileList(_)||Re.endsWith(g,"[]"))&&(y=Re.toArray(_)))return g=UT(g),y.forEach(function(A,k){!(Re.isUndefined(A)||A===null)&&e.append(s===!0?Fy([g],k,o):s===null?g:g+"[]",c(A))}),!1}return Rm(_)?!0:(e.append(Fy(b,g,o),c(_)),!1)}const l=[],d=Object.assign(KO,{defaultVisitor:h,convertValue:c,isVisitable:Rm});function f(_,g){if(!Re.isUndefined(_)){if(l.indexOf(_)!==-1)throw Error("Circular reference detected in "+g.join("."));l.push(_),Re.forEach(_,function(y,w){(!(Re.isUndefined(y)||y===null)&&i.call(e,y,Re.isString(w)?w.trim():w,g,d))===!0&&f(y,g?g.concat(w):[w])}),l.pop()}}if(!Re.isObject(t))throw new TypeError("data must be an object");return f(t),e}function Dy(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Jg(t,e){this._pairs=[],t&&fh(t,this,e)}const jT=Jg.prototype;jT.append=function(e,n){this._pairs.push([e,n])};jT.toString=function(e){const n=e?function(r){return e.call(this,r,Dy)}:Dy;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function XO(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function WT(t,e,n){if(!e)return t;const r=n&&n.encode||XO;Re.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(e,n):o=Re.isURLSearchParams(e)?e.toString():new Jg(e,n).toString(r),o){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class $y{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Re.forEach(this.handlers,function(r){r!==null&&e(r)})}}const zT={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},QO=typeof URLSearchParams<"u"?URLSearchParams:Jg,JO=typeof FormData<"u"?FormData:null,ZO=typeof Blob<"u"?Blob:null,eM={isBrowser:!0,classes:{URLSearchParams:QO,FormData:JO,Blob:ZO},protocols:["http","https","file","blob","url","data"]},Zg=typeof window<"u"&&typeof document<"u",xm=typeof navigator=="object"&&navigator||void 0,tM=Zg&&(!xm||["ReactNative","NativeScript","NS"].indexOf(xm.product)<0),nM=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",rM=Zg&&window.location.href||"http://localhost",iM=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Zg,hasStandardBrowserEnv:tM,hasStandardBrowserWebWorkerEnv:nM,navigator:xm,origin:rM},Symbol.toStringTag,{value:"Module"})),xr={...iM,...eM};function oM(t,e){return fh(t,new xr.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return xr.isNode&&Re.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function sM(t){return Re.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function aM(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],e[o]=t[o];return e}function qT(t){function e(n,r,i,o){let s=n[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),u=o>=n.length;return s=!s&&Re.isArray(i)?i.length:s,u?(Re.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!Re.isObject(i[s]))&&(i[s]=[]),e(n,r,i[s],o)&&Re.isArray(i[s])&&(i[s]=aM(i[s])),!a)}if(Re.isFormData(t)&&Re.isFunction(t.entries)){const n={};return Re.forEachEntry(t,(r,i)=>{e(sM(r),i,n,0)}),n}return null}function lM(t,e,n){if(Re.isString(t))try{return(e||JSON.parse)(t),Re.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const Lc={transitional:zT,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=Re.isObject(e);if(o&&Re.isHTMLForm(e)&&(e=new FormData(e)),Re.isFormData(e))return i?JSON.stringify(qT(e)):e;if(Re.isArrayBuffer(e)||Re.isBuffer(e)||Re.isStream(e)||Re.isFile(e)||Re.isBlob(e)||Re.isReadableStream(e))return e;if(Re.isArrayBufferView(e))return e.buffer;if(Re.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return oM(e,this.formSerializer).toString();if((a=Re.isFileList(e))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return fh(a?{"files[]":e}:e,u&&new u,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),lM(e)):e}],transformResponse:[function(e){const n=this.transitional||Lc.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(Re.isResponse(e)||Re.isReadableStream(e))return e;if(e&&Re.isString(e)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?yt.from(a,yt.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xr.classes.FormData,Blob:xr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Re.forEach(["delete","get","head","post","put","patch"],t=>{Lc.headers[t]={}});const uM=Re.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),cM=t=>{const e={};let n,r,i;return t&&t.split(`
`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||e[n]&&uM[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Hy=Symbol("internals");function su(t){return t&&String(t).trim().toLowerCase()}function Xf(t){return t===!1||t==null?t:Re.isArray(t)?t.map(Xf):String(t)}function fM(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const dM=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function fp(t,e,n,r,i){if(Re.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!Re.isString(e)){if(Re.isString(r))return e.indexOf(r)!==-1;if(Re.isRegExp(r))return r.test(e)}}function hM(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function pM(t,e){const n=Re.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,o,s){return this[r].call(this,e,i,o,s)},configurable:!0})})}let ei=class{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function o(a,u,c){const h=su(u);if(!h)throw new Error("header name must be a non-empty string");const l=Re.findKey(i,h);(!l||i[l]===void 0||c===!0||c===void 0&&i[l]!==!1)&&(i[l||u]=Xf(a))}const s=(a,u)=>Re.forEach(a,(c,h)=>o(c,h,u));if(Re.isPlainObject(e)||e instanceof this.constructor)s(e,n);else if(Re.isString(e)&&(e=e.trim())&&!dM(e))s(cM(e),n);else if(Re.isObject(e)&&Re.isIterable(e)){let a={},u,c;for(const h of e){if(!Re.isArray(h))throw TypeError("Object iterator must return a key-value pair");a[c=h[0]]=(u=a[c])?Re.isArray(u)?[...u,h[1]]:[u,h[1]]:h[1]}s(a,n)}else e!=null&&o(n,e,r);return this}get(e,n){if(e=su(e),e){const r=Re.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return fM(i);if(Re.isFunction(n))return n.call(this,i,r);if(Re.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=su(e),e){const r=Re.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||fp(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function o(s){if(s=su(s),s){const a=Re.findKey(r,s);a&&(!n||fp(r,r[a],a,n))&&(delete r[a],i=!0)}}return Re.isArray(e)?e.forEach(o):o(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!e||fp(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){const n=this,r={};return Re.forEach(this,(i,o)=>{const s=Re.findKey(r,o);if(s){n[s]=Xf(i),delete n[o];return}const a=e?hM(o):String(o).trim();a!==o&&delete n[o],n[a]=Xf(i),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return Re.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&Re.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[Hy]=this[Hy]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=su(s);r[a]||(pM(i,s),r[a]=!0)}return Re.isArray(e)?e.forEach(o):o(e),this}};ei.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Re.reduceDescriptors(ei.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});Re.freezeMethods(ei);function dp(t,e){const n=this||Lc,r=e||n,i=ei.from(r.headers);let o=r.data;return Re.forEach(t,function(a){o=a.call(n,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function GT(t){return!!(t&&t.__CANCEL__)}function Ml(t,e,n){yt.call(this,t??"canceled",yt.ERR_CANCELED,e,n),this.name="CanceledError"}Re.inherits(Ml,yt,{__CANCEL__:!0});function YT(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new yt("Request failed with status code "+n.status,[yt.ERR_BAD_REQUEST,yt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function mM(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function gM(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,o=0,s;return e=e!==void 0?e:1e3,function(u){const c=Date.now(),h=r[o];s||(s=c),n[i]=u,r[i]=c;let l=o,d=0;for(;l!==i;)d+=n[l++],l=l%t;if(i=(i+1)%t,i===o&&(o=(o+1)%t),c-s<e)return;const f=h&&c-h;return f?Math.round(d*1e3/f):void 0}}function _M(t,e){let n=0,r=1e3/e,i,o;const s=(c,h=Date.now())=>{n=h,i=null,o&&(clearTimeout(o),o=null),t.apply(null,c)};return[(...c)=>{const h=Date.now(),l=h-n;l>=r?s(c,h):(i=c,o||(o=setTimeout(()=>{o=null,s(i)},r-l)))},()=>i&&s(i)]}const Cd=(t,e,n=3)=>{let r=0;const i=gM(50,250);return _M(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,u=s-r,c=i(u),h=s<=a;r=s;const l={loaded:s,total:a,progress:a?s/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a&&h?(a-s)/c:void 0,event:o,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(l)},n)},Ny=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},By=t=>(...e)=>Re.asap(()=>t(...e)),vM=xr.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,xr.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(xr.origin),xr.navigator&&/(msie|trident)/i.test(xr.navigator.userAgent)):()=>!0,yM=xr.hasStandardBrowserEnv?{write(t,e,n,r,i,o){const s=[t+"="+encodeURIComponent(e)];Re.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Re.isString(r)&&s.push("path="+r),Re.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function bM(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function wM(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function KT(t,e,n){let r=!bM(e);return t&&(r||n==!1)?wM(t,e):e}const Vy=t=>t instanceof ei?{...t}:t;function Aa(t,e){e=e||{};const n={};function r(c,h,l,d){return Re.isPlainObject(c)&&Re.isPlainObject(h)?Re.merge.call({caseless:d},c,h):Re.isPlainObject(h)?Re.merge({},h):Re.isArray(h)?h.slice():h}function i(c,h,l,d){if(Re.isUndefined(h)){if(!Re.isUndefined(c))return r(void 0,c,l,d)}else return r(c,h,l,d)}function o(c,h){if(!Re.isUndefined(h))return r(void 0,h)}function s(c,h){if(Re.isUndefined(h)){if(!Re.isUndefined(c))return r(void 0,c)}else return r(void 0,h)}function a(c,h,l){if(l in e)return r(c,h);if(l in t)return r(void 0,c)}const u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,h,l)=>i(Vy(c),Vy(h),l,!0)};return Re.forEach(Object.keys(Object.assign({},t,e)),function(h){const l=u[h]||i,d=l(t[h],e[h],h);Re.isUndefined(d)&&l!==a||(n[h]=d)}),n}const XT=t=>{const e=Aa({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=e;e.headers=s=ei.from(s),e.url=WT(KT(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let u;if(Re.isFormData(n)){if(xr.hasStandardBrowserEnv||xr.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((u=s.getContentType())!==!1){const[c,...h]=u?u.split(";").map(l=>l.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...h].join("; "))}}if(xr.hasStandardBrowserEnv&&(r&&Re.isFunction(r)&&(r=r(e)),r||r!==!1&&vM(e.url))){const c=i&&o&&yM.read(o);c&&s.set(i,c)}return e},SM=typeof XMLHttpRequest<"u",TM=SM&&function(t){return new Promise(function(n,r){const i=XT(t);let o=i.data;const s=ei.from(i.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:c}=i,h,l,d,f,_;function g(){f&&f(),_&&_(),i.cancelToken&&i.cancelToken.unsubscribe(h),i.signal&&i.signal.removeEventListener("abort",h)}let b=new XMLHttpRequest;b.open(i.method.toUpperCase(),i.url,!0),b.timeout=i.timeout;function y(){if(!b)return;const A=ei.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),R={data:!a||a==="text"||a==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:A,config:t,request:b};YT(function(L){n(L),g()},function(L){r(L),g()},R),b=null}"onloadend"in b?b.onloadend=y:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(y)},b.onabort=function(){b&&(r(new yt("Request aborted",yt.ECONNABORTED,t,b)),b=null)},b.onerror=function(){r(new yt("Network Error",yt.ERR_NETWORK,t,b)),b=null},b.ontimeout=function(){let k=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const R=i.transitional||zT;i.timeoutErrorMessage&&(k=i.timeoutErrorMessage),r(new yt(k,R.clarifyTimeoutError?yt.ETIMEDOUT:yt.ECONNABORTED,t,b)),b=null},o===void 0&&s.setContentType(null),"setRequestHeader"in b&&Re.forEach(s.toJSON(),function(k,R){b.setRequestHeader(R,k)}),Re.isUndefined(i.withCredentials)||(b.withCredentials=!!i.withCredentials),a&&a!=="json"&&(b.responseType=i.responseType),c&&([d,_]=Cd(c,!0),b.addEventListener("progress",d)),u&&b.upload&&([l,f]=Cd(u),b.upload.addEventListener("progress",l),b.upload.addEventListener("loadend",f)),(i.cancelToken||i.signal)&&(h=A=>{b&&(r(!A||A.type?new Ml(null,t,b):A),b.abort(),b=null)},i.cancelToken&&i.cancelToken.subscribe(h),i.signal&&(i.signal.aborted?h():i.signal.addEventListener("abort",h)));const w=mM(i.url);if(w&&xr.protocols.indexOf(w)===-1){r(new yt("Unsupported protocol "+w+":",yt.ERR_BAD_REQUEST,t));return}b.send(o||null)})},EM=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,i;const o=function(c){if(!i){i=!0,a();const h=c instanceof Error?c:this.reason;r.abort(h instanceof yt?h:new Ml(h instanceof Error?h.message:h))}};let s=e&&setTimeout(()=>{s=null,o(new yt(`timeout ${e} of ms exceeded`,yt.ETIMEDOUT))},e);const a=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),t=null)};t.forEach(c=>c.addEventListener("abort",o));const{signal:u}=r;return u.unsubscribe=()=>Re.asap(a),u}},kM=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,i;for(;r<n;)i=r+e,yield t.slice(r,i),r=i},AM=async function*(t,e){for await(const n of RM(t))yield*kM(n,e)},RM=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},Uy=(t,e,n,r)=>{const i=AM(t,e);let o=0,s,a=u=>{s||(s=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:c,value:h}=await i.next();if(c){a(),u.close();return}let l=h.byteLength;if(n){let d=o+=l;n(d)}u.enqueue(new Uint8Array(h))}catch(c){throw a(c),c}},cancel(u){return a(u),i.return()}},{highWaterMark:2})},dh=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",QT=dh&&typeof ReadableStream=="function",xM=dh&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),JT=(t,...e)=>{try{return!!t(...e)}catch{return!1}},CM=QT&&JT(()=>{let t=!1;const e=new Request(xr.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),jy=64*1024,Cm=QT&&JT(()=>Re.isReadableStream(new Response("").body)),Pd={stream:Cm&&(t=>t.body)};dh&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Pd[e]&&(Pd[e]=Re.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new yt(`Response type '${e}' is not supported`,yt.ERR_NOT_SUPPORT,r)})})})(new Response);const PM=async t=>{if(t==null)return 0;if(Re.isBlob(t))return t.size;if(Re.isSpecCompliantForm(t))return(await new Request(xr.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(Re.isArrayBufferView(t)||Re.isArrayBuffer(t))return t.byteLength;if(Re.isURLSearchParams(t)&&(t=t+""),Re.isString(t))return(await xM(t)).byteLength},IM=async(t,e)=>{const n=Re.toFiniteNumber(t.getContentLength());return n??PM(e)},LM=dh&&(async t=>{let{url:e,method:n,data:r,signal:i,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:u,responseType:c,headers:h,withCredentials:l="same-origin",fetchOptions:d}=XT(t);c=c?(c+"").toLowerCase():"text";let f=EM([i,o&&o.toAbortSignal()],s),_;const g=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let b;try{if(u&&CM&&n!=="get"&&n!=="head"&&(b=await IM(h,r))!==0){let R=new Request(e,{method:"POST",body:r,duplex:"half"}),C;if(Re.isFormData(r)&&(C=R.headers.get("content-type"))&&h.setContentType(C),R.body){const[L,M]=Ny(b,Cd(By(u)));r=Uy(R.body,jy,L,M)}}Re.isString(l)||(l=l?"include":"omit");const y="credentials"in Request.prototype;_=new Request(e,{...d,signal:f,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:r,duplex:"half",credentials:y?l:void 0});let w=await fetch(_);const A=Cm&&(c==="stream"||c==="response");if(Cm&&(a||A&&g)){const R={};["status","statusText","headers"].forEach($=>{R[$]=w[$]});const C=Re.toFiniteNumber(w.headers.get("content-length")),[L,M]=a&&Ny(C,Cd(By(a),!0))||[];w=new Response(Uy(w.body,jy,L,()=>{M&&M(),g&&g()}),R)}c=c||"text";let k=await Pd[Re.findKey(Pd,c)||"text"](w,t);return!A&&g&&g(),await new Promise((R,C)=>{YT(R,C,{data:k,headers:ei.from(w.headers),status:w.status,statusText:w.statusText,config:t,request:_})})}catch(y){throw g&&g(),y&&y.name==="TypeError"&&/Load failed|fetch/i.test(y.message)?Object.assign(new yt("Network Error",yt.ERR_NETWORK,t,_),{cause:y.cause||y}):yt.from(y,y&&y.code,t,_)}}),Pm={http:GO,xhr:TM,fetch:LM};Re.forEach(Pm,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Wy=t=>`- ${t}`,OM=t=>Re.isFunction(t)||t===null||t===!1,ZT={getAdapter:t=>{t=Re.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let o=0;o<e;o++){n=t[o];let s;if(r=n,!OM(n)&&(r=Pm[(s=String(n)).toLowerCase()],r===void 0))throw new yt(`Unknown adapter '${s}'`);if(r)break;i[s||"#"+o]=r}if(!r){const o=Object.entries(i).map(([a,u])=>`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=e?o.length>1?`since :
`+o.map(Wy).join(`
`):" "+Wy(o[0]):"as no adapter specified";throw new yt("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Pm};function hp(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ml(null,t)}function zy(t){return hp(t),t.headers=ei.from(t.headers),t.data=dp.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ZT.getAdapter(t.adapter||Lc.adapter)(t).then(function(r){return hp(t),r.data=dp.call(t,t.transformResponse,r),r.headers=ei.from(r.headers),r},function(r){return GT(r)||(hp(t),r&&r.response&&(r.response.data=dp.call(t,t.transformResponse,r.response),r.response.headers=ei.from(r.response.headers))),Promise.reject(r)})}const eE="1.9.0",hh={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{hh[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const qy={};hh.transitional=function(e,n,r){function i(o,s){return"[Axios v"+eE+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(e===!1)throw new yt(i(s," has been removed"+(n?" in "+n:"")),yt.ERR_DEPRECATED);return n&&!qy[s]&&(qy[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,s,a):!0}};hh.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function MM(t,e,n){if(typeof t!="object")throw new yt("options must be an object",yt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const o=r[i],s=e[o];if(s){const a=t[o],u=a===void 0||s(a,o,t);if(u!==!0)throw new yt("option "+o+" must be "+u,yt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new yt("Unknown option "+o,yt.ERR_BAD_OPTION)}}const Qf={assertOptions:MM,validators:hh},so=Qf.validators;let ma=class{constructor(e){this.defaults=e||{},this.interceptors={request:new $y,response:new $y}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+o):r.stack=o}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Aa(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Qf.assertOptions(r,{silentJSONParsing:so.transitional(so.boolean),forcedJSONParsing:so.transitional(so.boolean),clarifyTimeoutError:so.transitional(so.boolean)},!1),i!=null&&(Re.isFunction(i)?n.paramsSerializer={serialize:i}:Qf.assertOptions(i,{encode:so.function,serialize:so.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Qf.assertOptions(n,{baseUrl:so.spelling("baseURL"),withXsrfToken:so.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&Re.merge(o.common,o[n.method]);o&&Re.forEach(["delete","get","head","post","put","patch","common"],_=>{delete o[_]}),n.headers=ei.concat(s,o);const a=[];let u=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(u=u&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let h,l=0,d;if(!u){const _=[zy.bind(this),void 0];for(_.unshift.apply(_,a),_.push.apply(_,c),d=_.length,h=Promise.resolve(n);l<d;)h=h.then(_[l++],_[l++]);return h}d=a.length;let f=n;for(l=0;l<d;){const _=a[l++],g=a[l++];try{f=_(f)}catch(b){g.call(this,b);break}}try{h=zy.call(this,f)}catch(_){return Promise.reject(_)}for(l=0,d=c.length;l<d;)h=h.then(c[l++],c[l++]);return h}getUri(e){e=Aa(this.defaults,e);const n=KT(e.baseURL,e.url,e.allowAbsoluteUrls);return WT(n,e.params,e.paramsSerializer)}};Re.forEach(["delete","get","head","options"],function(e){ma.prototype[e]=function(n,r){return this.request(Aa(r||{},{method:e,url:n,data:(r||{}).data}))}});Re.forEach(["post","put","patch"],function(e){function n(r){return function(o,s,a){return this.request(Aa(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}ma.prototype[e]=n(),ma.prototype[e+"Form"]=n(!0)});let FM=class tE{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},e(function(o,s,a){r.reason||(r.reason=new Ml(o,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new tE(function(i){e=i}),cancel:e}}};function DM(t){return function(n){return t.apply(null,n)}}function $M(t){return Re.isObject(t)&&t.isAxiosError===!0}const Im={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Im).forEach(([t,e])=>{Im[e]=t});function nE(t){const e=new ma(t),n=LT(ma.prototype.request,e);return Re.extend(n,ma.prototype,e,{allOwnKeys:!0}),Re.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return nE(Aa(t,i))},n}const Mn=nE(Lc);Mn.Axios=ma;Mn.CanceledError=Ml;Mn.CancelToken=FM;Mn.isCancel=GT;Mn.VERSION=eE;Mn.toFormData=fh;Mn.AxiosError=yt;Mn.Cancel=Mn.CanceledError;Mn.all=function(e){return Promise.all(e)};Mn.spread=DM;Mn.isAxiosError=$M;Mn.mergeConfig=Aa;Mn.AxiosHeaders=ei;Mn.formToJSON=t=>qT(Re.isHTMLForm(t)?new FormData(t):t);Mn.getAdapter=ZT.getAdapter;Mn.HttpStatusCode=Im;Mn.default=Mn;const{Axios:S8,AxiosError:T8,CanceledError:E8,isCancel:k8,CancelToken:A8,VERSION:R8,all:x8,Cancel:C8,isAxiosError:P8,spread:I8,toFormData:L8,AxiosHeaders:O8,HttpStatusCode:M8,formToJSON:F8,getAdapter:D8,mergeConfig:$8}=Mn;class HM{debugStartHttpRequest(){}debugSuccessHttpRequest(){}debugRetryHttpRequest(){}}const Xi=new HM;var Qi=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(h){try{c(r.next(h))}catch(l){s(l)}}function u(h){try{c(r.throw(h))}catch(l){s(l)}}function c(h){h.done?o(h.value):i(h.value).then(a,u)}c((r=r.apply(t,e||[])).next())})};function NM(t,e,n,r){var i;return Qi(this,void 0,void 0,function*(){const o=(i=r==null?void 0:r.retryStrategy)!==null&&i!==void 0?i:Pa.defaultRetryStrategy;return yield Fl({retryAttempt:0,url:e.url,retryStrategy:o,functionsConfig:n,call:s=>Qi(this,void 0,void 0,function*(){var a,u;Xi.debugStartHttpRequest();const c=yield t.get(e.url,{headers:Oc((a=r==null?void 0:r.headers)!==null&&a!==void 0?a:[]),responseType:r==null?void 0:r.responseType,cancelToken:(u=r==null?void 0:r.cancelToken)===null||u===void 0?void 0:u.token}),h={data:c.data,rawResponse:c,headers:Ll(c),status:c.status,retryStrategy:{options:o,retryAttempts:s}};return Xi.debugSuccessHttpRequest(),h})})})}function BM(t,e,n,r){var i;return Qi(this,void 0,void 0,function*(){const o=(i=r==null?void 0:r.retryStrategy)!==null&&i!==void 0?i:Pa.defaultRetryStrategy;return yield Fl({retryAttempt:0,url:e.url,retryStrategy:o,functionsConfig:n,call:s=>Qi(this,void 0,void 0,function*(){var a,u;Xi.debugStartHttpRequest();const c=yield t.post(e.url,e.body,{headers:Oc((a=r==null?void 0:r.headers)!==null&&a!==void 0?a:[]),responseType:r==null?void 0:r.responseType,maxContentLength:"Infinity",maxBodyLength:"Infinity",cancelToken:(u=r==null?void 0:r.cancelToken)===null||u===void 0?void 0:u.token}),h={data:c.data,rawResponse:c,headers:Ll(c),status:c.status,retryStrategy:{options:o,retryAttempts:s}};return Xi.debugSuccessHttpRequest(),h})})})}function VM(t,e,n,r){var i;return Qi(this,void 0,void 0,function*(){const o=(i=r==null?void 0:r.retryStrategy)!==null&&i!==void 0?i:Pa.defaultRetryStrategy;return yield Fl({retryAttempt:0,url:e.url,retryStrategy:o,functionsConfig:n,call:s=>Qi(this,void 0,void 0,function*(){var a,u;Xi.debugStartHttpRequest();const c=yield t.put(e.url,e.body,{headers:Oc((a=r==null?void 0:r.headers)!==null&&a!==void 0?a:[]),responseType:r==null?void 0:r.responseType,maxContentLength:"Infinity",maxBodyLength:"Infinity",cancelToken:(u=r==null?void 0:r.cancelToken)===null||u===void 0?void 0:u.token}),h={data:c.data,rawResponse:c,headers:Ll(c),status:c.status,retryStrategy:{options:o,retryAttempts:s}};return Xi.debugSuccessHttpRequest(),h})})})}function UM(t,e,n,r){var i;return Qi(this,void 0,void 0,function*(){const o=(i=r==null?void 0:r.retryStrategy)!==null&&i!==void 0?i:Pa.defaultRetryStrategy;return yield Fl({retryAttempt:0,url:e.url,retryStrategy:o,functionsConfig:n,call:s=>Qi(this,void 0,void 0,function*(){var a,u;Xi.debugStartHttpRequest();const c=yield t.patch(e.url,e.body,{headers:Oc((a=r==null?void 0:r.headers)!==null&&a!==void 0?a:[]),responseType:r==null?void 0:r.responseType,maxContentLength:"Infinity",maxBodyLength:"Infinity",cancelToken:(u=r==null?void 0:r.cancelToken)===null||u===void 0?void 0:u.token}),h={data:c.data,rawResponse:c,headers:Ll(c),status:c.status,retryStrategy:{options:o,retryAttempts:s}};return Xi.debugSuccessHttpRequest(),h})})})}function jM(t,e,n,r){var i;return Qi(this,void 0,void 0,function*(){const o=(i=r==null?void 0:r.retryStrategy)!==null&&i!==void 0?i:Pa.defaultRetryStrategy;return yield Fl({retryAttempt:0,url:e.url,retryStrategy:o,functionsConfig:n,call:s=>Qi(this,void 0,void 0,function*(){var a,u;Xi.debugStartHttpRequest();const c=yield t.delete(e.url,{headers:Oc((a=r==null?void 0:r.headers)!==null&&a!==void 0?a:[]),responseType:r==null?void 0:r.responseType,maxContentLength:"Infinity",maxBodyLength:"Infinity",cancelToken:(u=r==null?void 0:r.cancelToken)===null||u===void 0?void 0:u.token}),h={data:c.data,rawResponse:c,headers:Ll(c),status:c.status,retryStrategy:{options:o,retryAttempts:s}};return Xi.debugSuccessHttpRequest(),h})})})}function WM(){let t;const e=new Mn.CancelToken(n=>{t=n});return{cancel:n=>t(`${Pa.requestCancelledMessagePrefix}: ${n??"User cancel"}`),token:e}}function Fl(t){return Qi(this,void 0,void 0,function*(){try{return yield t.call(t.retryAttempt)}catch(e){const n=Pa.getRetryErrorResult({error:e,retryAttempt:t.retryAttempt,retryStrategy:t.retryStrategy});if(n.canRetry)return Xi.debugRetryHttpRequest(),yield new Promise(r=>setTimeout(r,n.retryInMs)),t.functionsConfig.logErrorsToConsole&&console.warn(`Retry attempt '${t.retryAttempt+1}' from a maximum of '${n.maxRetries}' retries. Request url: '${t.url}'`),yield Fl({call:t.call,retryStrategy:t.retryStrategy,retryAttempt:t.retryAttempt+1,url:t.url,functionsConfig:t.functionsConfig});throw t.functionsConfig.logErrorsToConsole&&console.error(`Executing '${t.url}' failed. Request was retried '${t.retryAttempt}' times. `,e),e}})}function Oc(t,e){const n={};return t.forEach(r=>{n[r.header]=r.value}),n}var au=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(h){try{c(r.next(h))}catch(l){s(l)}}function u(h){try{c(r.throw(h))}catch(l){s(l)}}function c(h){h.done?o(h.value):i(h.value).then(a,u)}c((r=r.apply(t,e||[])).next())})};class zM{constructor(e){this.opts=e,this.axiosInstance=Mn.create(e==null?void 0:e.axiosRequestConfig),this.functionsConfig=this.getFunctionsConfig()}getAsync(e,n){return au(this,void 0,void 0,function*(){return yield NM(this.axiosInstance,e,this.functionsConfig,n)})}postAsync(e,n){return au(this,void 0,void 0,function*(){return yield BM(this.axiosInstance,e,this.functionsConfig,n)})}putAsync(e,n){return au(this,void 0,void 0,function*(){return yield VM(this.axiosInstance,e,this.functionsConfig,n)})}patchAsync(e,n){return au(this,void 0,void 0,function*(){return yield UM(this.axiosInstance,e,this.functionsConfig,n)})}deleteAsync(e,n){return au(this,void 0,void 0,function*(){return yield jM(this.axiosInstance,e,this.functionsConfig,n)})}createCancelToken(){return WM()}getFunctionsConfig(){var e,n;return{logErrorsToConsole:(n=(e=this.opts)===null||e===void 0?void 0:e.logErrorsToConsole)!==null&&n!==void 0?n:!0}}}var zt;(function(t){const r=k=>{if(!k)return"";if(Array.isArray(k)){let R="";for(let C=0;C<k.length;C++)R=R+k[C].toString(),C!==k.length-1&&(R=R+",");return R}return k.toString()};class i{constructor(R){this.type=R}getParam(){return Array.isArray(this.type)?`system.type[in]=${r(this.type)}`:`system.type=${r(this.type)}`}}t.TypeFilter=i;class o{constructor(R){this.collection=R}getParam(){return Array.isArray(this.collection)?`system.collection[in]=${r(this.collection)}`:`system.collection=${r(this.collection)}`}}t.CollectionFilter=o;class s{constructor(R){this.element=R}getParam(){return`${this.element.trim()}[empty]`}}t.EmptyFilter=s;class a{constructor(R){this.element=R}getParam(){return`${this.element.trim()}[nempty]`}}t.NotEmptyFilter=a;class u{constructor(R,C){this.element=R,this.value=C}getParam(){return`${this.element.trim()}[eq]=${this.getParamValue()}`}getParamValue(){return this.value?this.value:""}}t.EqualsFilter=u;class c{constructor(R,C){this.element=R,this.value=C}getParam(){return`${this.element.trim()}[neq]=${this.getParamValue()}`}getParamValue(){return this.value?this.value:""}}t.NotEqualsFilter=c;class h{constructor(R,C){this.element=R,this.values=C}getParam(){return`${this.element.trim()}[all]=${this.getParamValue()}`}getParamValue(){return!this.values||!Array.isArray(this.values)?"":this.values.map(R=>R.trim()).join(",")}}t.AllFilter=h;class l{constructor(R,C){this.element=R,this.values=C}getParam(){return`${this.element.trim()}[any]=${this.getParamValue()}`}getParamValue(){return!this.values||!Array.isArray(this.values)?"":this.values.map(R=>R.trim()).join(",")}}t.AnyFilter=l;class d{constructor(R,C){this.element=R,this.values=C}getParam(){return`${this.element.trim()}[contains]=${this.getParamValue()}`}getParamValue(){return!this.values||!Array.isArray(this.values)?"":this.values.map(R=>R.trim()).join(",")}}t.ContainsFilter=d;class f{constructor(R,C){this.element=R,this.value=C}getParam(){return`${this.element.trim()}[gt]=${this.getParamValue()}`}getParamValue(){return this.value?this.value:""}}t.GreaterThanFilter=f;class _{constructor(R,C){this.element=R,this.value=C}getParam(){return`${this.element.trim()}[gte]=${this.getParamValue()}`}getParamValue(){return this.value?this.value:""}}t.GreaterThanOrEqualFilter=_;class g{constructor(R,C){this.element=R,this.values=C}getParam(){return`${this.element.trim()}[in]=${this.getParamValue()}`}getParamValue(){return!this.values||!Array.isArray(this.values)?"":this.values.map(R=>R.trim()).join(",")}}t.InFilter=g;class b{constructor(R,C){this.element=R,this.values=C}getParam(){return`${this.element.trim()}[nin]=${this.getParamValue()}`}getParamValue(){return!this.values||!Array.isArray(this.values)?"":this.values.map(R=>R.trim()).join(",")}}t.NotInFilter=b;class y{constructor(R,C){this.element=R,this.value=C}getParam(){return`${this.element.trim()}[lt]=${this.getParamValue()}`}getParamValue(){return this.value?this.value:""}}t.LessThanFilter=y;class w{constructor(R,C){this.element=R,this.value=C}getParam(){return`${this.element.trim()}[lte]=${this.getParamValue()}`}getParamValue(){return this.value?this.value:""}}t.LessThanOrEqualFilter=w;class A{constructor(R,C,L){this.element=R,this.lowerValue=C,this.higherValue=L}getParam(){return`${this.element.trim()}[range]=${this.getParamValue()}`}getParamValue(){let R="",C="";return this.lowerValue&&(R=this.lowerValue.toString()),this.higherValue&&(C=this.higherValue.toString()),`${R},${C}`}}t.RangeFilter=A})(zt||(zt={}));var Gt;(function(t){class n{constructor(f,_){if(this.name=f,this.value=_,!f)throw Error("Name of the parameter is not specified")}getParam(){return`${this.name}=${this.value}`}}t.QueryParameter=n;class r{constructor(f){this.elementCodenames=f}getParam(){return`elements=${this.getParamValue()}`}getParamValue(){return this.elementCodenames?this.elementCodenames.map(f=>{if(!f)throw Error("Codename of 'ElementsParameter' cannot be null or empty");return f.trim()}).join(","):""}}t.ElementsParameter=r;class i{constructor(f){this.elementCodenames=f}getParam(){return`excludeElements=${this.getParamValue()}`}getParamValue(){return this.elementCodenames?this.elementCodenames.map(f=>{if(!f)throw Error("Codename of 'ExcludeElementsParameter' cannot be null or empty");return f.trim()}).join(","):""}}t.ExcludeElementsParameter=i;class o{constructor(f){if(this.limit=f,f<=0)throw Error("'LimitParameter' must specify a positive integer")}getParam(){return`limit=${this.limit}`}}t.LimitParameter=o;class s{constructor(){}getParam(){return"includeTotalCount=true"}}t.IncludeTotalCountParameter=s;class a{constructor(f){if(this.skip=f,f<0)throw Error(`'SkipParameter' must specify a positive integer number or zero."`)}getParam(){return`skip=${this.skip}`}}t.SkipParameter=a;class u{constructor(f,_){if(this.element=f,this.sortOrder=_,!f)throw Error("Element specified in 'OrderParameter' is null or empty")}getParam(){return`order=${this.getParamValue()}`}getParamValue(){return`${this.element.trim()}[${this.sortOrder}]`}}t.OrderParameter=u;class c{constructor(f){this.param=f}getParam(){return this.param}}t.CustomParameter=c;class h{constructor(f){if(this.depth=f,f<0)throw Error("'DepthParameter' must specify a positive integer or zero")}getParam(){return`depth=${this.depth}`}}t.DepthParameter=h;class l{constructor(f){this.languageCodename=f}getParam(){return`language=${this.languageCodename}`}}t.LanguageParameter=l})(Gt||(Gt={}));class qM{constructor(e){this.message=e.message,this.requestId=e.requestId,this.errorCode=e.errorCode,this.specificCode=e.specificCode}}const Lm="X-Continuation",GM="X-KC-Wait-For-Loading-New-Content",YM="X-KC-SDKID",KM="X-Stale-Content";class Dl{constructor(e,n){this.config=e,this.queryService=n,this.parameters=[]}withCustomParameter(e,n){return this.parameters.push(new Gt.QueryParameter(e,n)),this}withParameter(e){return this.parameters.push(e),this}withParameters(e){return this.parameters.push(...e),this}getHeaders(){return this.queryService.getHeaders(this._queryConfig,[])}withHeaders(e){var n;const r=(n=this._queryConfig.customHeaders)!==null&&n!==void 0?n:[];return r.push(...e),this._queryConfig.customHeaders=r,this}withHeader(e){var n;const r=(n=this._queryConfig.customHeaders)!==null&&n!==void 0?n:[];return r.push(e),this._queryConfig.customHeaders=r,this}withCustomUrl(e){return this.customUrl=e,this}getParameters(){return this.parameters}queryConfig(e){return this._queryConfig=e,this}resolveUrlInternal(e){var n;return this.customUrl?this.customUrl:this.queryService.getUrl(e,(n=this._queryConfig)!==null&&n!==void 0?n:{},this.getParameters())}processDefaultLanguageParameter(){this.config.defaultLanguage&&(this.getParameters().find(n=>{var r;return(r=n.getParam())===null||r===void 0?void 0:r.toLowerCase().includes("language=".toLowerCase())})||this.parameters.push(new Gt.LanguageParameter(this.config.defaultLanguage)))}processExcludeArchivedItemsParameter(){this.config.excludeArchivedItems&&this.parameters.push(new zt.NotEqualsFilter("system.workflow_step","archived"))}}class XM extends Dl{constructor(e,n,r,i){if(super(e,n),this.config=e,this.queryService=n,this.typeCodename=r,this.elementCodename=i,this._queryConfig={},!r)throw Error("Codename of the type has to be provided");if(!i)throw Error("Codename of the element has to be provided")}toPromise(){var e;return this.queryService.getElementAsync(this.getUrl(),(e=this._queryConfig)!==null&&e!==void 0?e:{})}getUrl(){return super.resolveUrlInternal(`/types/${this.typeCodename}/elements/${this.elementCodename}`)}map(e){return this.queryService.mappingService.viewContentTypeElementResponse(e)}}var un;(function(t){t.Text="text",t.Number="number",t.ModularContent="modular_content",t.Asset="asset",t.DateTime="date_time",t.RichText="rich_text",t.MultipleChoice="multiple_choice",t.UrlSlug="url_slug",t.Taxonomy="taxonomy",t.Custom="custom",t.Unknown="unknown"})(un||(un={}));class $l extends Dl{constructor(e,n){super(e,n),this.config=e,this.queryService=n}withContinuationToken(e){var n;let r=(n=this._queryConfig.customHeaders)!==null&&n!==void 0?n:[];return r=r.filter(i=>i.header!==Lm),this._queryConfig.customHeaders=r,this.withHeaders([{header:Lm,value:e}]),this}toAllPromise(e){return this.queryService.getListAllResponse({page:1,listQueryConfig:e,allResponseFactory:(n,r)=>({data:this.allResponseFactory(n,r),responses:r}),getResponse:(n,r)=>(n&&this.withCustomUrl(n),r&&this.withContinuationToken(r),this.toPromise())})}}class rE extends $l{constructor(e,n){super(e,n),this.config=e,this.queryService=n}emptyFilter(e){return this.parameters.push(new zt.EmptyFilter(e)),this}notEmptyFilter(e){return this.parameters.push(new zt.NotEmptyFilter(e)),this}equalsFilter(e,n){return this.parameters.push(new zt.EqualsFilter(e,n)),this}notEqualsFilter(e,n){return this.parameters.push(new zt.NotEqualsFilter(e,n)),this}allFilter(e,n){return this.parameters.push(new zt.AllFilter(e,n)),this}anyFilter(e,n){return this.parameters.push(new zt.AnyFilter(e,n)),this}containsFilter(e,n){return this.parameters.push(new zt.ContainsFilter(e,n)),this}greaterThanFilter(e,n){return this.parameters.push(new zt.GreaterThanFilter(e,n)),this}greaterThanOrEqualFilter(e,n){return this.parameters.push(new zt.GreaterThanOrEqualFilter(e,n)),this}inFilter(e,n){return this.parameters.push(new zt.InFilter(e,n)),this}notInFilter(e,n){return this.parameters.push(new zt.NotInFilter(e,n)),this}lessThanFilter(e,n){return this.parameters.push(new zt.LessThanFilter(e,n)),this}lessThanOrEqualFilter(e,n){return this.parameters.push(new zt.LessThanOrEqualFilter(e,n)),this}rangeFilter(e,n,r){return this.parameters.push(new zt.RangeFilter(e,n,r)),this}limitParameter(e){return this.parameters.push(new Gt.LimitParameter(e)),this}orderParameter(e,n){return this.parameters.push(new Gt.OrderParameter(e,n)),this}orderByDescending(e){return this.parameters.push(new Gt.OrderParameter(e,"desc")),this}orderByAscending(e){return this.parameters.push(new Gt.OrderParameter(e,"asc")),this}skipParameter(e){return this.parameters.push(new Gt.SkipParameter(e)),this}linkItemsInRte(e){for(const n of e)for(const r of Object.keys(n.elements)){const i=n.elements[r];if(i.type===un.ModularContent){const o=i,s=[];for(const a of o.value){let u;const c=o.linkedItems.find(h=>h.system.codename.toLowerCase()===a.toLowerCase());c?u=c:u=e.find(h=>h.system.codename.toLowerCase()===a.toLowerCase()),u&&s.push(u)}o.linkedItems=s}if(i.type===un.RichText){const o=[],s=i;for(const a of s.linkedItemCodenames){let u;const c=s.linkedItems.find(h=>h.system.codename.toLowerCase()===a.toLowerCase());c?u=c:u=e.find(h=>h.system.codename.toLowerCase()===a.toLowerCase()),u&&o.push(u)}s.linkedItems=o}}}}class QM extends rE{constructor(e,n){super(e,n),this.config=e,this.queryService=n,this._queryConfig={}}includeTotalCountParameter(){return this.parameters.push(new Gt.IncludeTotalCountParameter),this}type(e){return this.parameters.push(new zt.TypeFilter(e)),this}types(e){return this.parameters.push(new zt.TypeFilter(e)),this}collection(e){return this.parameters.push(new zt.CollectionFilter(e)),this}collections(e){return this.parameters.push(new zt.CollectionFilter(e)),this}depthParameter(e){return this.parameters.push(new Gt.DepthParameter(e)),this}languageParameter(e){return this.parameters.push(new Gt.LanguageParameter(e)),this}elementsParameter(e){return this.parameters.push(new Gt.ElementsParameter(e)),this}excludeElementsParameter(e){return this.parameters.push(new Gt.ExcludeElementsParameter(e)),this}toPromise(){var e;return this.queryService.getMultipleItems(this.getUrl(),(e=this._queryConfig)!==null&&e!==void 0?e:{})}getUrl(){const e="/items";return this.processDefaultLanguageParameter(),this.processExcludeArchivedItemsParameter(),super.resolveUrlInternal(e)}map(e){return this.queryService.mappingService.listContentItemsResponse(e)}allResponseFactory(e,n){return this.linkItems(e,n),{items:e,responses:n}}linkItems(e,n){const r=[];for(const i of n)r.push(...Object.values(i.data.linkedItems).filter(o=>o!==void 0).map(o=>o));for(const i of e)r.find(o=>o.system.codename.toLowerCase()===i.system.codename.toLowerCase())||r.push(i);this.linkItemsInRte(r)}}class JM extends Dl{constructor(e,n,r){if(super(e,n),this.config=e,this.queryService=n,this.codename=r,this._queryConfig={},!r)throw Error("'codename' has to be configured for 'SingleItemQuery' query")}depthParameter(e){return this.parameters.push(new Gt.DepthParameter(e)),this}queryConfig(e){return this._queryConfig=e,this}languageParameter(e){return this.parameters.push(new Gt.LanguageParameter(e)),this}elementsParameter(e){return this.parameters.push(new Gt.ElementsParameter(e)),this}excludeElementsParameter(e){return this.parameters.push(new Gt.ExcludeElementsParameter(e)),this}toPromise(){var e;return this.queryService.getSingleItemAsync(this.getUrl(),(e=this._queryConfig)!==null&&e!==void 0?e:{})}getUrl(){const e="/items/"+this.codename;return this.processDefaultLanguageParameter(),this.processExcludeArchivedItemsParameter(),super.resolveUrlInternal(e)}map(e){return this.queryService.mappingService.viewContentItemResponse(e)}}class ZM extends $l{constructor(e,n){super(e,n),this.config=e,this.queryService=n,this.taxonomiesEndpoint="taxonomies",this._queryConfig={}}limitParameter(e){return this.parameters.push(new Gt.LimitParameter(e)),this}skipParameter(e){return this.parameters.push(new Gt.SkipParameter(e)),this}toPromise(){var e;return this.queryService.getTaxonomies(this.getUrl(),(e=this._queryConfig)!==null&&e!==void 0?e:{})}getUrl(){const e="/"+this.taxonomiesEndpoint;return super.resolveUrlInternal(e)}map(e){return this.queryService.mappingService.listTaxonomiesResponse(e)}allResponseFactory(e,n){return{items:e,responses:n}}}class e3 extends Dl{constructor(e,n,r){if(super(e,n),this.config=e,this.queryService=n,this.taxonomyCodename=r,this.taxonomiesEndpoint="taxonomies",this._queryConfig={},!r)throw Error("Cannot create taxonomy query without codename of the taxonomy")}toPromise(){var e;return this.queryService.getTaxonomy(this.getUrl(),(e=this._queryConfig)!==null&&e!==void 0?e:{})}getUrl(){const e="/"+this.taxonomiesEndpoint+"/"+this.taxonomyCodename;return super.resolveUrlInternal(e)}map(e){return this.queryService.mappingService.viewTaxonomyResponse(e)}}class t3 extends $l{constructor(e,n){super(e,n),this.config=e,this.queryService=n,this._queryConfig={}}elementsParameter(e){return this.parameters.push(new Gt.ElementsParameter(e)),this}excludeElementsParameter(e){return this.parameters.push(new Gt.ExcludeElementsParameter(e)),this}limitParameter(e){return this.parameters.push(new Gt.LimitParameter(e)),this}skipParameter(e){return this.parameters.push(new Gt.SkipParameter(e)),this}toPromise(){var e;return this.queryService.getMultipleTypes(this.getUrl(),(e=this._queryConfig)!==null&&e!==void 0?e:{})}getUrl(){return super.resolveUrlInternal("/types")}map(e){return this.queryService.mappingService.listContentTypesResponse(e)}allResponseFactory(e,n){return{items:e,responses:n}}}class n3 extends Dl{constructor(e,n,r){if(super(e,n),this.config=e,this.queryService=n,this.typeCodename=r,this._queryConfig={},!r)throw Error("Cannot create type query without the codename of the type")}toPromise(){var e;return this.queryService.getSingleType(this.getUrl(),(e=this._queryConfig)!==null&&e!==void 0?e:{})}getUrl(){const e="/types/"+this.typeCodename;return super.resolveUrlInternal(e)}map(e){return this.queryService.mappingService.viewContentTypeResponse(e)}}class r3 extends rE{constructor(e,n){super(e,n),this.config=e,this.queryService=n,this._queryConfig={}}type(e){return this.parameters.push(new zt.TypeFilter(e)),this}types(e){return this.parameters.push(new zt.TypeFilter(e)),this}collection(e){return this.parameters.push(new zt.CollectionFilter(e)),this}collections(e){return this.parameters.push(new zt.CollectionFilter(e)),this}languageParameter(e){return this.parameters.push(new Gt.LanguageParameter(e)),this}elementsParameter(e){return this.parameters.push(new Gt.ElementsParameter(e)),this}excludeElementsParameter(e){return this.parameters.push(new Gt.ExcludeElementsParameter(e)),this}toPromise(){var e;return this.queryService.getItemsFeed(this.getUrl(),(e=this._queryConfig)!==null&&e!==void 0?e:{})}getUrl(){const e="/items-feed";return this.processDefaultLanguageParameter(),this.processExcludeArchivedItemsParameter(),super.resolveUrlInternal(e)}queryConfig(e){return this._queryConfig=e,this}map(e){return this.queryService.mappingService.itemsFeedResponse(e)}allResponseFactory(e,n){return this.canLinkItems()&&this.linkFeedItems(e,n),{items:e,responses:n}}linkFeedItems(e,n){const r=[];for(const i of n)r.push(...Object.values(i.data.linkedItems).filter(o=>o!==void 0).map(o=>o));for(const i of e)r.find(o=>o.system.codename.toLowerCase()===i.system.codename.toLowerCase())||r.push(i);this.linkItemsInRte(r)}canLinkItems(){return!(this.config.linkedItemsReferenceHandler==="ignore"||this._queryConfig.disableItemLinking===!0)}}class i3 extends $l{constructor(e,n){super(e,n),this.config=e,this.queryService=n,this.endpoint="languages",this._queryConfig={}}limitParameter(e){return this.parameters.push(new Gt.LimitParameter(e)),this}skipParameter(e){return this.parameters.push(new Gt.SkipParameter(e)),this}toPromise(){var e;return this.queryService.getLanguages(this.getUrl(),(e=this._queryConfig)!==null&&e!==void 0?e:{})}getUrl(){const e="/"+this.endpoint;return super.resolveUrlInternal(e)}queryConfig(e){return this._queryConfig=e,this}map(e){return this.queryService.mappingService.listLanguagesResponse(e)}allResponseFactory(e,n){return{items:e,responses:n}}}class o3 extends Dl{constructor(e,n){super(e,n),this.config=e,this.queryService=n,this.endpoint="sync/init",this._queryConfig={}}type(e){return this.parameters.push(new zt.TypeFilter(e)),this}collection(e){return this.parameters.push(new zt.CollectionFilter(e)),this}languageParameter(e){return this.parameters.push(new Gt.LanguageParameter(e)),this}toPromise(){var e;return console.warn("Sync Api v1 is deprecated. Please use the new Sync Api v2. https://kontent.ai/learn/docs/apis/openapi/sync-api-v2/"),this.queryService.initializeSync(this.getUrl(),(e=this._queryConfig)!==null&&e!==void 0?e:{})}getUrl(){const e="/"+this.endpoint;return super.resolveUrlInternal(e)}queryConfig(e){return this._queryConfig=e,this}map(e){return this.queryService.mappingService.initializeContentSync(e)}}class s3 extends $l{constructor(e,n){super(e,n),this.config=e,this.queryService=n,this._queryConfig={},this.action="/sync"}toPromise(){var e;return console.warn("Sync Api v1 is deprecated. Please use the new Sync Api v2. https://kontent.ai/learn/docs/apis/openapi/sync-api-v2/"),this.queryService.syncChanges(this.getUrl(),(e=this._queryConfig)!==null&&e!==void 0?e:{})}getUrl(){return super.resolveUrlInternal(this.action)}queryConfig(e){return this._queryConfig=e,this}map(e){return this.queryService.mappingService.syncChanges(e)}allResponseFactory(e,n){return{items:e,responses:n}}}class Gy extends $l{constructor(e,n,r){super(e,n),this.config=e,this.queryService=n,this.setup=r,this._queryConfig={}}type(e){return this.parameters.push(new zt.TypeFilter(e)),this}types(e){return this.parameters.push(new zt.TypeFilter(e)),this}collection(e){return this.parameters.push(new zt.CollectionFilter(e)),this}collections(e){return this.parameters.push(new zt.CollectionFilter(e)),this}languageParameter(e){return this.parameters.push(new Gt.LanguageParameter(e)),this}toPromise(){var e;return this.queryService.getUsedIn(this.getUrl(),(e=this._queryConfig)!==null&&e!==void 0?e:{})}getUrl(){const e=`/${this.setup.entity==="asset"?"assets":"items"}/${this.setup.codename}/used-in`;return this.processDefaultLanguageParameter(),this.processExcludeArchivedItemsParameter(),super.resolveUrlInternal(e)}queryConfig(e){return this._queryConfig=e,this}map(e){return this.queryService.mappingService.usedInResponse(e)}allResponseFactory(e,n){return{items:e,responses:n}}}const pp={host:"npmjs.com",version:"16.2.1",name:"@kontent-ai/delivery-sdk"};var Yy=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(h){try{c(r.next(h))}catch(l){s(l)}}function u(h){try{c(r.throw(h))}catch(l){s(l)}}function c(h){h.done?o(h.value):i(h.value).then(a,u)}c((r=r.apply(t,e||[])).next())})};class a3{constructor(e,n,r,i){this.config=e,this.httpService=n,this.sdkInfo=r,this.mappingService=i,this.defaultBaseDeliveryApiUrl="https://deliver.kontent.ai",this.defaultPreviewDeliveryApiUrl="https://preview-deliver.kontent.ai"}getUrl(e,n,r){return!this.config.proxy||!this.config.proxy.advancedProxyUrlResolver?Ly.addOptionsToUrl(this.getBaseUrl(n)+e,r):this.config.proxy.advancedProxyUrlResolver({queryParameters:r||[],queryString:Ly.addOptionsToUrl("",r),action:e,domain:this.getDomain(n),queryConfig:n,environmentId:this.config.environmentId})}getHeaders(e,n){const r=[];if(n&&r.push(...n),r.push(this.getSdkIdHeader()),this.config.globalHeaders&&r.push(...this.config.globalHeaders(e)),r.push(...this.getQueryHeaders(e)),this.isPreviewModeEnabled(e)&&this.isSecuredModeEnabled(e))throw Error("Preview & secured modes cannot be used at the same time.");return this.isPreviewModeEnabled(e)&&this.config.previewApiKey&&r.push(this.getAuthorizationHeader(this.config.previewApiKey)),this.isSecuredModeEnabled(e)&&this.config.secureApiKey&&r.push(this.getAuthorizationHeader(this.config.secureApiKey)),this.shouldAddWaitForLoadingNewContentHeader(e)&&r.push({header:GM,value:"true"}),r}postResponseAsync(e,n,r,i){return Yy(this,void 0,void 0,function*(){r||(r={}),i||(i={});try{return yield this.httpService.postAsync({url:e,body:n},{cancelToken:r==null?void 0:r.cancelToken,responseType:"json",retryStrategy:this.config.retryStrategy,headers:this.getHeaders(r,i.headers?i.headers:[])})}catch(o){throw this.mapDeliveryError(o)}})}getResponseAsync(e,n,r){return Yy(this,void 0,void 0,function*(){n||(n={}),r||(r={});try{return yield this.httpService.getAsync({url:e},{cancelToken:n==null?void 0:n.cancelToken,responseType:"json",retryStrategy:this.config.retryStrategy,headers:this.getHeaders(n,r.headers?r.headers:[])})}catch(i){throw this.mapDeliveryError(i)}})}getBaseUrl(e){return this.getDomain(e)+"/"+this.config.environmentId}mapNetworkResponse(e,n){return{data:e,response:n,hasStaleContent:this.getHasStaleContent(n.headers),xContinuationToken:this.getContinuationToken(n.headers)}}isPreviewModeEnabled(e){return e.usePreviewMode!==void 0?e.usePreviewMode:this.config.defaultQueryConfig?this.config.defaultQueryConfig.usePreviewMode===!0:!1}getQueryHeaders(e){var n;return e.customHeaders?e.customHeaders:!((n=this.config.defaultQueryConfig)===null||n===void 0)&&n.customHeaders?this.config.defaultQueryConfig.customHeaders:[]}shouldAddWaitForLoadingNewContentHeader(e){return e.waitForLoadingNewContent!==void 0?e.waitForLoadingNewContent:this.config.defaultQueryConfig?this.config.defaultQueryConfig.waitForLoadingNewContent===!0:!1}isSecuredModeEnabled(e){return e.useSecuredMode!==void 0?e.useSecuredMode:this.config.defaultQueryConfig?this.config.defaultQueryConfig.useSecuredMode===!0:!1}getDomain(e){if(this.isPreviewModeEnabled(e)){if(!this.config.previewApiKey)throw Error("Preview API key is not configured.");return this.config.proxy&&this.config.proxy.basePreviewUrl?this.config.proxy.basePreviewUrl:this.defaultPreviewDeliveryApiUrl}return this.config.proxy&&this.config.proxy.baseUrl?this.config.proxy.baseUrl:this.defaultBaseDeliveryApiUrl}getAuthorizationHeader(e){if(!e)throw Error("Cannot get authorization header because key is invalid");return{header:"authorization",value:`bearer ${e}`}}getSdkIdHeader(){return{header:YM,value:`${this.sdkInfo.host};${this.sdkInfo.name};${this.sdkInfo.version}`}}mapDeliveryError(e){var n;let r;if(e.error?r=e.error:r=e,!r||!r.isAxiosError)return e;const i=(n=r.response)===null||n===void 0?void 0:n.data;return!i||!i.error_code?e:new qM({errorCode:i.error_code,message:i.message,specificCode:i.specific_code,requestId:i.request_id})}getHasStaleContent(e){const n=e.find(r=>r.header.toLowerCase()===KM.toLowerCase());return!!(n&&n.value.toString()==="1")}getContinuationToken(e){const n=e.find(r=>r.header.toLowerCase()===Lm.toLowerCase());return n?n.value:void 0}}var Wr=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(h){try{c(r.next(h))}catch(l){s(l)}}function u(h){try{c(r.throw(h))}catch(l){s(l)}}function c(h){h.done?o(h.value):i(h.value).then(a,u)}c((r=r.apply(t,e||[])).next())})};class l3 extends a3{constructor(e,n,r,i){super(e,n,r,i)}getSingleItemAsync(e,n){return Wr(this,void 0,void 0,function*(){const r=yield this.getResponseAsync(e,n);return this.mapNetworkResponse(this.mappingService.viewContentItemResponse(r.data),r)})}getItemsFeed(e,n){return Wr(this,void 0,void 0,function*(){const r=yield this.getResponseAsync(e,n);return this.mapNetworkResponse(this.mappingService.itemsFeedResponse(r.data),r)})}getUsedIn(e,n){return Wr(this,void 0,void 0,function*(){const r=yield this.getResponseAsync(e,n);return this.mapNetworkResponse(this.mappingService.usedInResponse(r.data),r)})}getMultipleItems(e,n){return Wr(this,void 0,void 0,function*(){const r=yield this.getResponseAsync(e,n);return this.mapNetworkResponse(this.mappingService.listContentItemsResponse(r.data),r)})}getSingleType(e,n){return Wr(this,void 0,void 0,function*(){const r=yield this.getResponseAsync(e,n);return this.mapNetworkResponse(this.mappingService.viewContentTypeResponse(r.data),r)})}getMultipleTypes(e,n){return Wr(this,void 0,void 0,function*(){const r=yield this.getResponseAsync(e,n);return this.mapNetworkResponse(this.mappingService.listContentTypesResponse(r.data),r)})}initializeSync(e,n){return Wr(this,void 0,void 0,function*(){const r=yield this.postResponseAsync(e,{},n);return this.mapNetworkResponse(this.mappingService.initializeContentSync(r.data),r)})}syncChanges(e,n){return Wr(this,void 0,void 0,function*(){const r=yield this.getResponseAsync(e,n);return this.mapNetworkResponse(this.mappingService.syncChanges(r.data),r)})}getLanguages(e,n){return Wr(this,void 0,void 0,function*(){const r=yield this.getResponseAsync(e,n);return this.mapNetworkResponse(this.mappingService.listLanguagesResponse(r.data),r)})}getTaxonomy(e,n){return Wr(this,void 0,void 0,function*(){const r=yield this.getResponseAsync(e,n);return this.mapNetworkResponse(this.mappingService.viewTaxonomyResponse(r.data),r)})}getTaxonomies(e,n){return Wr(this,void 0,void 0,function*(){const r=yield this.getResponseAsync(e,n);return this.mapNetworkResponse(this.mappingService.listTaxonomiesResponse(r.data),r)})}getElementAsync(e,n){return Wr(this,void 0,void 0,function*(){const r=yield this.getResponseAsync(e,n);return this.mapNetworkResponse(this.mappingService.viewContentTypeElementResponse(r.data),r)})}getListAllResponse(e){return Wr(this,void 0,void 0,function*(){const n=yield this.getListAllResponseInternalAsync({page:e.page,resolvedResponses:[],getResponse:e.getResponse,nextPageUrl:void 0,continuationToken:void 0,listQueryConfig:e.listQueryConfig});return e.allResponseFactory(n.reduce((r,i)=>(r.push(...i.data.items),r),[]),n)})}getListAllResponseInternalAsync(e){var n,r,i,o;return Wr(this,void 0,void 0,function*(){if(!((n=e.listQueryConfig)===null||n===void 0)&&n.pages&&e.page>e.listQueryConfig.pages)return e.resolvedResponses;const s=yield e.getResponse(e.nextPageUrl,e.continuationToken);!((r=e.listQueryConfig)===null||r===void 0)&&r.delayBetweenRequests&&(yield this.sleep(e.listQueryConfig.delayBetweenRequests)),e.resolvedResponses.push(s),!((i=e.listQueryConfig)===null||i===void 0)&&i.responseFetched&&e.listQueryConfig.responseFetched(s,e.nextPageUrl,e.continuationToken);const a=(o=s.data.pagination)===null||o===void 0?void 0:o.nextPage,u=s.xContinuationToken;return a||u?yield this.getListAllResponseInternalAsync({page:e.page+1,nextPageUrl:a,continuationToken:u,listQueryConfig:e.listQueryConfig,getResponse:e.getResponse,resolvedResponses:e.resolvedResponses}):e.resolvedResponses})}sleep(e){return new Promise(n=>setTimeout(n,e))}}class u3{escapeCodenameInCodenameIndexer(e){return`_${e}`}}const hl=new u3;class c3{replaceAssetDomain(e,n){return`${n}${this.getPathname(e)}`}getPathname(e){return new URL(e).pathname}}const Ky=new c3;class f3{getAllValues(e){return Object.keys(e).map(r=>e[r])}getEnumFromValue(e,n){try{if(!n)return;if(this.isNumeric(n))return e[n];const i=this.getAllValues(e).find(o=>o.toLowerCase()===n.toString().toLowerCase());return i||void 0}catch{return}}isNumeric(e){return!isNaN(parseFloat(e))&&isFinite(e)}}const d3=new f3;class h3{constructor(e){this.config=e}mapElements(e){const n=e.processedItems[hl.escapeCodenameInCodenameIndexer(e.dataToMap.item.system.codename)];if(n)return{item:n,processedItems:e.processedItems,preparedItems:e.preparedItems,processingStartedForCodenames:e.processingStartedForCodenames};const r=e.preparedItems[hl.escapeCodenameInCodenameIndexer(e.dataToMap.item.system.codename)],i=r==null?void 0:r.item;if(!i)return;const o=Object.getOwnPropertyNames(e.dataToMap.rawItem.elements);for(const s of o){const a={system:e.dataToMap.item.system,rawElement:e.dataToMap.rawItem.elements[s],element:s},u=this.mapElement({elementWrapper:a,item:i,preparedItems:e.preparedItems,processingStartedForCodenames:e.processingStartedForCodenames,processedItems:e.processedItems});i.elements[s]=u}return{item:i,processedItems:e.processedItems,preparedItems:e.preparedItems,processingStartedForCodenames:e.processingStartedForCodenames}}mapElement(e){const n=d3.getEnumFromValue(un,e.elementWrapper.rawElement.type);if(n){if(n===un.ModularContent)return this.mapLinkedItemsElement({elementWrapper:e.elementWrapper,preparedItems:e.preparedItems,processingStartedForCodenames:e.processingStartedForCodenames,processedItems:e.processedItems});if(n===un.Text)return this.mapTextElement(e.elementWrapper);if(n===un.Asset)return this.mapAssetsElement(e.elementWrapper);if(n===un.Number)return this.mapNumberElement(e.elementWrapper);if(n===un.MultipleChoice)return this.mapMultipleChoiceElement(e.elementWrapper);if(n===un.DateTime)return this.mapDateTimeElement(e.elementWrapper);if(n===un.RichText)return this.mapRichTextElement(e.elementWrapper,e.processedItems,e.processingStartedForCodenames,e.preparedItems);if(n===un.UrlSlug)return this.mapUrlSlugElement(e.elementWrapper);if(n===un.Taxonomy)return this.mapTaxonomyElement(e.elementWrapper);if(n===un.Custom)return this.mapCustomElement(e.elementWrapper)}return console.warn(`Could not map element '${e.elementWrapper.rawElement.name}' of type '${e.elementWrapper.rawElement.type}'. Returning unknown element instead.`),this.mapUnknowElement(e.elementWrapper)}mapRichTextElement(e,n,r,i){const o=e.rawElement,s=[],a=[],u=o.value.matchAll(/<object[^>]+data-codename="(?<codename>[a-z0-9_]*)".*?>/g),c=Array.from(u).reduce((g,b)=>(b.groups&&b.groups.codename&&g.push(b.groups.codename),g),[]),h=[...o.modular_content].sort(function(g,b){return c.indexOf(g)-c.indexOf(b)});for(const g of h){a.push(g);const b=i[g];if(this.canMapLinkedItems()){const y=this.getOrSaveLinkedItemForElement(g,o,n,r,i);if(y)s.push(y);else if(b){const w=this.mapElements({dataToMap:b,preparedItems:i,processingStartedForCodenames:r,processedItems:n});w&&s.push(w.item)}}}const l=this.getRichTextImages(o.images),d=this.mapRichTextLinks(o.links),f=l.richTextImages,_=this.getRichTextHtml(o.value,l.imageUrlRecords);return{images:f,linkedItemCodenames:a,linkedItems:s,links:d,name:o.name,type:un.RichText,value:_}}mapDateTimeElement(e){var n;const r=e.rawElement;return Object.assign(Object.assign({},this.buildElement(e,un.DateTime,()=>r.value)),{displayTimeZone:(n=r.display_timezone)!==null&&n!==void 0?n:null})}mapMultipleChoiceElement(e){return this.buildElement(e,un.MultipleChoice,()=>e.rawElement.value)}mapNumberElement(e){return this.buildElement(e,un.Number,()=>e.rawElement.value===0?0:e.rawElement.value?+e.rawElement.value:null)}mapTextElement(e){return this.buildElement(e,un.Text,()=>e.rawElement.value)}mapAssetsElement(e){return this.buildElement(e,un.Asset,()=>{var n;const r=e.rawElement.value,i=[];for(const o of r){let s=null;const a=this.config.assetsDomain?Ky.replaceAssetDomain(o.url,this.config.assetsDomain):o.url;if(o.renditions){s={};for(const l of Object.keys(o.renditions)){const d=o.renditions[l];s[l]=Object.assign(Object.assign({},d),{url:`${a}?${d.query}`})}}const u=this.config.defaultRenditionPreset&&(s==null?void 0:s[this.config.defaultRenditionPreset])||null,c=(n=u==null?void 0:u.url)!==null&&n!==void 0?n:a,h=Object.assign(Object.assign({},o),{url:c,renditions:s});i.push(h)}return i})}mapTaxonomyElement(e){var n;return Object.assign(Object.assign({},this.buildElement(e,un.Taxonomy,()=>e.rawElement.value)),{taxonomyGroup:(n=e.rawElement.taxonomy_group)!==null&&n!==void 0?n:""})}mapUnknowElement(e){return this.buildElement(e,un.Unknown,()=>e.rawElement.value)}mapCustomElement(e){if(this.config.elementResolver){const n=this.config.elementResolver(e);if(n)return this.buildElement(e,un.Custom,()=>n)}return this.buildElement(e,un.Custom,()=>e.rawElement.value)}mapUrlSlugElement(e){return this.buildElement(e,un.UrlSlug,()=>e.rawElement.value)}mapLinkedItemsElement(e){const n=[],r=e.elementWrapper.rawElement.value;for(const i of r)if(this.canMapLinkedItems()){const o=this.getOrSaveLinkedItemForElement(i,e.elementWrapper.rawElement,e.processedItems,e.processingStartedForCodenames,e.preparedItems);o&&n.push(o)}return Object.assign(Object.assign({},this.buildElement(e.elementWrapper,un.ModularContent,()=>r)),{linkedItems:n})}getOrSaveLinkedItemForElement(e,n,r,i,o){const s=hl.escapeCodenameInCodenameIndexer(e),a=r[s];if(a)return a;const u=o[s];if(i.includes(e))return u==null?void 0:u.item;if(i.push(e),!u)return;let c;const h=this.mapElements({dataToMap:u,preparedItems:o,processingStartedForCodenames:i,processedItems:r});return h&&(c=h.item,r[s]=c),c}mapRichTextLinks(e){const n=[];for(const r of Object.keys(e)){const i=e[r];n.push({codename:i.codename,linkId:r,urlSlug:i.url_slug,type:i.type})}return n}getRichTextHtml(e,n){for(const r of n)r.newUrl!==r.originalUrl&&(e=e.replace(new RegExp(r.originalUrl,"g"),r.newUrl));return e}getRichTextImages(e){var n,r,i;const o=[],s=[];for(const a of Object.keys(e)){const u=e[a],c=this.config.assetsDomain?Ky.replaceAssetDomain(u.url,this.config.assetsDomain):u.url;o.push({description:(n=u.description)!==null&&n!==void 0?n:null,imageId:u.image_id,url:c,height:(r=u.height)!==null&&r!==void 0?r:null,width:(i=u.width)!==null&&i!==void 0?i:null}),s.push({originalUrl:u.url,newUrl:c})}return{imageUrlRecords:s,richTextImages:o}}buildElement(e,n,r){return{name:e.rawElement.name,type:n,value:r()}}canMapLinkedItems(){return this.config.linkedItemsReferenceHandler?this.config.linkedItemsReferenceHandler==="map":!0}}class p3{constructor(e){this.config=e,this.elementMapper=new h3(e)}mapSingleItemFromResponse(e){const n=this.mapItems({mainItems:[e.item],linkedItems:Object.values(e.modular_content)});return{item:n.items[0],linkedItems:n.linkedItems}}mapMultipleItemsFromResponse(e){return this.mapItems({mainItems:e.items,linkedItems:Object.values(e.modular_content)})}mapItems(e){const n={},r={},i=[],o=[],s={},a=[...e.mainItems,...e.linkedItems];for(const u of a)r[hl.escapeCodenameInCodenameIndexer(u.system.codename)]={item:this.createContentItem(u),rawItem:u};for(const u of e.mainItems){const c=this.mapItem({item:r[hl.escapeCodenameInCodenameIndexer(u.system.codename)],processedItems:n,preparedItems:r,processingStartedForCodenames:i});o.push(c.item)}for(const u of e.linkedItems){const c=this.mapItem({item:r[hl.escapeCodenameInCodenameIndexer(u.system.codename)],processedItems:n,preparedItems:r,processingStartedForCodenames:i});s[u.system.codename]=c.item}return{items:o,linkedItems:s}}mapItem(e){if(!e.item)throw Error("Could not map item because its undefined");const n=this.elementMapper.mapElements({dataToMap:e.item,preparedItems:e.preparedItems,processingStartedForCodenames:[],processedItems:e.processedItems});if(!n)throw Error(`Mapping of content item '${e.item.item.system.codename}' failed`);return{item:n.item,processedItems:n.processedItems,preparedItems:n.preparedItems,processingStartedForCodenames:n.processingStartedForCodenames}}createContentItem(e){var n,r;return{elements:{},system:{codename:e.system.codename,collection:e.system.collection,id:e.system.id,language:e.system.language,lastModified:e.system.last_modified,name:e.system.name,sitemapLocations:e.system.sitemap_locations,type:e.system.type,workflowStep:(n=e.system.workflow_step)!==null&&n!==void 0?n:null,workflow:(r=e.system.workflow)!==null&&r!==void 0?r:null}}}}class m3{mapTaxonomy(e,n){if(!e)throw Error("Cannot map taxonomy due to missing 'system' property");if(!n)throw Error("Cannot map taxonomy due to missing 'terms' property");if(!Array.isArray(n))throw Error("Cannot map terms because no terms array was provided");const r={name:e.name,codename:e.codename,id:e.id,lastModified:e.last_modified},i=this.mapTaxonomyTerms(n);return{system:r,terms:i}}mapTaxonomies(e){if(!e)throw Error("Cannot map taxonomy due to missing 'taxonomies' property");if(!Array.isArray(e))throw Error("Cannot map taxonomies because the 'taxonomies' property is not an array ");const n=[];return e.forEach(r=>{n.push(this.mapTaxonomy(r.system,r.terms))}),n}mapTaxonomyTerms(e){if(e.length===0)return[];const n=[];return e.forEach(r=>{const i={codename:r.codename,name:r.name,terms:this.mapTaxonomyTerms(r.terms)};n.push(i)}),n}}class g3{mapSingleType(e){return this.mapType(e)}mapMultipleTypes(e){return e.types.map(n=>this.mapType(n))}mapType(e){if(!e)throw Error("Cannot map type");if(!e.elements)throw Error("Cannot map type elements");const n={codename:e.system.codename,id:e.system.id,name:e.system.name,lastModified:e.system.last_modified},r=[];return Object.getOwnPropertyNames(e.elements).forEach(o=>{const s=e.elements[o];if(!s)throw Error(`Cannot find element '${o}' on type '${e.system.codename}'`);const a=o,u=[],c=s.options;if(c){if(!Array.isArray(c))throw Error("Content type 'options' property has to be an array");c.forEach(h=>{u.push({codename:h.codename,name:h.name})})}r.push({codename:a,taxonomyGroup:s.taxonomy_group,options:u,name:s.name,type:s.type})}),{elements:r,system:n}}}class _3{mapElement(e){if(!e)throw Error("Invalid response for mapping element");const n=e;return{codename:n.codename,name:n.name,type:n.type,options:n.options?n.options:[],taxonomyGroup:n.taxonomy_group}}}class v3{mapMultipleLanguages(e){return e.languages.map(n=>this.mapLanguage(n))}mapLanguage(e){if(!e)throw Error("Cannot map language");return{system:{codename:e.system.codename,id:e.system.id,name:e.system.name}}}}class y3{mapUsedInItem(e){return{system:{id:e.system.id,name:e.system.name,codename:e.system.codename,language:e.system.language,type:e.system.type,collection:e.system.collection,workflow:e.system.workflow,workflowStep:e.system.workflow_step,lastModified:e.system.last_modified}}}}class b3{mapContentItemDelta(e){var n,r;const i=e.data.system,o=e.data.elements?e.data.elements:{};return{changeType:e.change_type,timestamp:e.timestamp,data:{elements:o,system:{codename:i.codename,collection:i.collection,id:i.id,language:i.language,lastModified:i.last_modified,name:i.name,sitemapLocations:i.sitemap_locations,type:i.type,workflowStep:(n=i.workflow_step)!==null&&n!==void 0?n:null,workflow:(r=i.workflow)!==null&&r!==void 0?r:null}}}}}class w3{constructor(e){this.config=e,this.typeMapper=new g3,this.languageMapper=new v3,this.itemMapper=new p3(e),this.taxonomyMapper=new m3,this.usedInMapper=new y3,this.genericElementMapper=new _3,this.syncMapper=new b3}usedInResponse(e){return{items:e.items.map(n=>this.usedInMapper.mapUsedInItem(n))}}listLanguagesResponse(e){return{items:this.languageMapper.mapMultipleLanguages(e),pagination:this.mapPagination(e.pagination)}}listContentTypesResponse(e){return{items:this.typeMapper.mapMultipleTypes(e),pagination:this.mapPagination(e.pagination)}}viewContentTypeResponse(e){return{type:this.typeMapper.mapSingleType(e)}}itemsFeedResponse(e){const n=this.itemMapper.mapItems({linkedItems:Object.values(e.modular_content),mainItems:e.items});return{items:n.items,linkedItems:n.linkedItems}}viewContentItemResponse(e){const n=this.itemMapper.mapSingleItemFromResponse(e);return{item:n.item,linkedItems:n.linkedItems}}listContentItemsResponse(e){const n=this.itemMapper.mapMultipleItemsFromResponse(e);return{items:n.items,pagination:this.mapPagination(e.pagination),linkedItems:n.linkedItems}}viewTaxonomyResponse(e){return{taxonomy:this.taxonomyMapper.mapTaxonomy(e.system,e.terms)}}listTaxonomiesResponse(e){return{items:this.taxonomyMapper.mapTaxonomies(e.taxonomies),pagination:this.mapPagination(e.pagination)}}viewContentTypeElementResponse(e){return this.genericElementMapper.mapElement(e)}initializeContentSync(e){return{items:e.items.map(n=>this.syncMapper.mapContentItemDelta(n))}}syncChanges(e){return{items:e.items.map(n=>this.syncMapper.mapContentItemDelta(n))}}mapPagination(e){var n;return{skip:e.skip,count:e.count,limit:e.limit,nextPage:e.next_page,totalCount:(n=e.total_count)!==null&&n!==void 0?n:null}}}class S3{constructor(e){if(this.config=e,!e)throw Error("Delivery client configuration is not set");this.mappingService=new w3(e),this.queryService=new l3(e,e.httpService?e.httpService:new zM,{host:pp.host,name:pp.name,version:pp.version},this.mappingService)}languages(){return new i3(this.config,this.queryService)}types(){return new t3(this.config,this.queryService)}type(e){return new n3(this.config,this.queryService,e)}items(){return new QM(this.config,this.queryService)}item(e){return new JM(this.config,this.queryService,e)}itemsFeed(){return new r3(this.config,this.queryService)}taxonomy(e){return new e3(this.config,this.queryService,e)}taxonomies(){return new ZM(this.config,this.queryService)}element(e,n){return new XM(this.config,this.queryService,e,n)}initializeSync(){return new o3(this.config,this.queryService)}syncChanges(){return new s3(this.config,this.queryService)}assetUsedIn(e){return new Gy(this.config,this.queryService,{entity:"asset",codename:e})}itemUsedIn(e){return new Gy(this.config,this.queryService,{entity:"contentItem",codename:e})}}const{kontentEnvID:T3}=lt,E3="https://content.breakthroughenergy.org",k3="https://preview.breakthroughenergy.org",A3="https://images.breakthroughenergy.org",R3={environmentId:T3,defaultQueryConfig:{usePreviewMode:!1},proxy:{baseUrl:E3,basePreviewUrl:k3},assetsDomain:A3},ph=new S3(R3),iE=async(t,e=!1,n=1)=>{try{const r=await ph.items().type(t).depthParameter(n).toPromise();return e?r.data.items[0]:r.data.items}catch(r){return console.error("Error fetching content from Kontent:",r),null}},x3=async(t,e=1)=>{try{return(await ph.items().equalsFilter("elements.slug",t).depthParameter(e).toPromise()).data.items[0]}catch(n){return console.error(`Error fetching content by slug "${t}":`,n),null}},C3=async()=>{try{return(await ph.items().depthParameter(2).notEqualsFilter("elements.slug","").toPromise()).data.items}catch(t){return console.error("Error fetching items from Kontent:",t),null}},oE=async(t=null)=>{try{const e=await ph.taxonomy(t).toPromise();return e&&e.data&&e.data.taxonomy?e.data.taxonomy.terms:{}}catch(e){return console.error("Error fetching taxonomies:",e),{}}};var mp=new WeakMap,Xy=0;function P3(t){if(!t.length)return"";for(var e="arg",n=0;n<t.length;++n){var r=void 0;t[n]===null||typeof t[n]!="object"&&typeof t[n]!="function"?typeof t[n]=="string"?r='"'+t[n]+'"':r=String(t[n]):mp.has(t[n])?r=mp.get(t[n]):(r=Xy,mp.set(t[n],Xy++)),e+="@"+r}return e}function I3(t){if(typeof t=="function")try{t=t()}catch{t=""}return Array.isArray(t)?t=P3(t):t=String(t||""),t}var e_=function(){function t(e){e===void 0&&(e=0),this.items=new Map,this.ttl=e}return t.prototype.serializeKey=function(e){return I3(e)},t.prototype.get=function(e){var n=this.serializeKey(e);return this.items.get(n)},t.prototype.set=function(e,n,r){var i=this.serializeKey(e),o=r||this.ttl,s=Date.now(),a={data:n,createdAt:s,expiresAt:o?s+o:1/0};this.dispatchExpire(o,a,i),this.items.set(i,a)},t.prototype.dispatchExpire=function(e,n,r){var i=this;e&&setTimeout(function(){var o=Date.now(),s=o>=n.expiresAt;s&&i.delete(r)},e)},t.prototype.delete=function(e){this.items.delete(e)},t}();function L3(){return typeof navigator.onLine<"u"?navigator.onLine:!0}function O3(){return typeof document<"u"&&typeof document.visibilityState<"u"?document.visibilityState!=="hidden":!0}var M3=function(t){return fetch(t).then(function(e){return e.json()})};const gp={isOnline:L3,isDocumentVisible:O3,fetcher:M3};var Fo=function(){return Fo=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Fo.apply(this,arguments)},Ka=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(h){try{c(r.next(h))}catch(l){s(l)}}function u(h){try{c(r.throw(h))}catch(l){s(l)}}function c(h){h.done?o(h.value):i(h.value).then(a,u)}c((r=r.apply(t,e||[])).next())})},Xa=function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(h){return u([c,h])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(h){c=[6,h],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},F3=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},D3=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},sE=new e_,Id=new e_,_p=new e_,aE={cache:sE,refreshInterval:0,ttl:0,serverTTL:1e3,dedupingInterval:2e3,revalidateOnFocus:!0,revalidateDebounce:0,shouldRetryOnError:!0,errorRetryInterval:5e3,errorRetryCount:5,fetcher:gp.fetcher,isOnline:gp.isOnline,isDocumentVisible:gp.isDocumentVisible};function $3(t,e,n){var r=Id.get(t);if(r)r.data.push(e);else{var i=5e3;Id.set(t,[e],n>0?n+i:n)}}function H3(t,e,n){if(n.isDocumentVisible()&&!(n.errorRetryCount!==void 0&&e>n.errorRetryCount)){var r=Math.min(e||0,n.errorRetryCount),i=r*n.errorRetryInterval;setTimeout(function(){t(null,{errorRetryCount:r+1,shouldRetryOnError:!0})},i)}}var Qy=function(t,e,n,r){return n===void 0&&(n=sE),r===void 0&&(r=aE.ttl),Ka(void 0,void 0,void 0,function(){var i,o,s,a,u,c,h;return Xa(this,function(l){switch(l.label){case 0:if(!B3(e))return[3,5];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,e];case 2:return i=l.sent(),[3,4];case 3:return a=l.sent(),o=a,[3,4];case 4:return[3,6];case 5:i=e,l.label=6;case 6:if(s=!1,u={data:i,error:o,isValidating:s},typeof i<"u")try{n.set(t,u,r)}catch(d){console.error("swrv(mutate): failed to set cache",d)}return c=Id.get(t),c&&c.data.length&&(h=c.data.filter(function(d){return d.key===t}),h.forEach(function(d,f){typeof u.data<"u"&&(d.data=u.data),d.error=u.error,d.isValidating=u.isValidating,d.isLoading=u.isValidating;var _=f===h.length-1;_||delete h[f]}),h=h.filter(Boolean)),[2,u]}})})};function N3(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r,i,o=Fo({},aE),s=!1,a=!1,u=Cl(),c=(u==null?void 0:u.proxy)||u;if(!c)return console.error("Could not get current instance, check to make sure that `useSwrv` is declared in the top level of the setup function."),null;var h=(c==null?void 0:c.$isServer)||!1;e.length>=1&&(r=e[0]),e.length>=2&&(i=e[1]),e.length>2&&(o=Fo(Fo({},o),e[2]));var l=h?o.serverTTL:o.ttl,d=typeof r=="function"?r:j(r);typeof i>"u"&&(i=o.fetcher);var f=null;f||(f=xa({data:void 0,error:void 0,isValidating:!0,isLoading:!0,key:null}));var _=function(w,A){return Ka(t,void 0,void 0,function(){var k,R,C,L,M,$,U,ne=this;return Xa(this,function(D){switch(D.label){case 0:return k=f.data===void 0,R=d.value,R?(C=o.cache.get(R),L=C&&C.data,f.isValidating=!0,f.isLoading=!L,L&&(f.data=L.data,f.error=L.error),M=w||i,!M||!o.isDocumentVisible()&&!k||(A==null?void 0:A.forceRevalidate)!==void 0&&!(A!=null&&A.forceRevalidate)?(f.isValidating=!1,f.isLoading=!1,[2]):C&&($=!!(Date.now()-C.createdAt>=o.dedupingInterval||A!=null&&A.forceRevalidate),!$)?(f.isValidating=!1,f.isLoading=!1,[2]):(U=function(){return Ka(ne,void 0,void 0,function(){var Q,N,W,V;return Xa(this,function(B){switch(B.label){case 0:return Q=_p.get(R),Q?[3,2]:(N=Array.isArray(R)?R:[R],W=M.apply(void 0,D3([],F3(N),!1)),_p.set(R,W,o.dedupingInterval),[4,Qy(R,W,o.cache,l)]);case 1:return B.sent(),[3,4];case 2:return[4,Qy(R,Q.data,o.cache,l)];case 3:B.sent(),B.label=4;case 4:return f.isValidating=!1,f.isLoading=!1,_p.delete(R),f.error!==void 0&&(V=!s&&o.shouldRetryOnError&&(A?A.shouldRetryOnError:!0),V&&H3(_,A?A.errorRetryCount:1,o)),[2]}})})},L&&o.revalidateDebounce?(setTimeout(function(){return Ka(ne,void 0,void 0,function(){return Xa(this,function(Q){switch(Q.label){case 0:return s?[3,2]:[4,U()];case 1:Q.sent(),Q.label=2;case 2:return[2]}})})},o.revalidateDebounce),[3,3]):[3,1])):[2];case 1:return[4,U()];case 2:D.sent(),D.label=3;case 3:return[2]}})})},g=function(){return Ka(t,void 0,void 0,function(){return Xa(this,function(w){return[2,_(null,{shouldRetryOnError:!1})]})})},b=null;xt(function(){var w=function(){return Ka(t,void 0,void 0,function(){return Xa(this,function(A){switch(A.label){case 0:return!f.error&&o.isOnline()?[4,_()]:[3,2];case 1:return A.sent(),[3,3];case 2:b&&clearTimeout(b),A.label=3;case 3:return o.refreshInterval&&!s&&(b=setTimeout(w,o.refreshInterval)),[2]}})})};o.refreshInterval&&(b=setTimeout(w,o.refreshInterval)),o.revalidateOnFocus&&(document.addEventListener("visibilitychange",g,!1),window.addEventListener("focus",g,!1))}),Vt(function(){s=!0,b&&clearTimeout(b),o.revalidateOnFocus&&(document.removeEventListener("visibilitychange",g,!1),window.removeEventListener("focus",g,!1));var w=Id.get(d.value);w&&(w.data=w.data.filter(function(A){return A!==f}))});try{Ne(d,function(w){Qo(d)||(d.value=w),f.key=w,f.isValidating=!!w,$3(d.value,f,l),!h&&!a&&d.value&&_(),a=!1},{immediate:!0})}catch{}var y=Fo(Fo({},_b(f)),{mutate:function(w,A){return _(w,Fo(Fo({},A),{forceRevalidate:!0}))}});return y}function B3(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}const V3=lt.isSSR;function U3(t){const e=j(null),n=j(null),r=j(!0);return t().then(i=>{e.value=i,r.value=!1}).catch(i=>{n.value=i,r.value=!1}),{data:e,error:n,isLoading:r,mutate:async()=>{r.value=!0;try{const i=await t();e.value=i}catch(i){n.value=i}finally{r.value=!1}}}}function t_(t,e,n={}){if(V3)return U3(e);const r={dedupingInterval:5e3,revalidateOnFocus:!1,...n},{data:i,error:o,isValidating:s,mutate:a}=N3(t,e,r);return{data:i,error:o,isLoading:s,mutate:a}}const j3=(t=null)=>{const e=async()=>await oE(t),n=t?`kontent/taxonomy/${t}`:"kontent/taxonomies";return t_(n,e)},lE=(t,e=5)=>{const n=async()=>{const r=mr(),i=await x3(t,e);return i?r.prepComponentsField("components",{...i}):null};return t_(`kontent/content-by-slug/${t}/${e}`,n)},Ld=(t,e=!1,n=1)=>{const r=async()=>{const i=mr(),o=await iE(t,e,n);return o?e?i.prepComponentsField("components",{...o}):o.map(s=>i.prepComponentsField("components",{...s})):null};return t_(`kontent/content-type/${t}/${e}/${n}`,r)},W3="375",z3="1440",Mc={mobile:W3,"tablet-portrait":"768","tablet-landscape":"1024",desktop:z3,"desktop-wide":"1920"},mr=Rc("content",()=>{const t=j([]),e=j(null),n=j(!0);j(!0);const r=j(null),i=j(null),o=j([]),s=async()=>{const N=await C3();return N?(o.value=N,N):{}},a=N=>!N||o.value.length===0?[]:o.value.filter(W=>W.slug?W.slug.value===N:!1),u=N=>{const W=a(N);return W&&W.length>0?b(W[0]):!1},c=N=>({})[N]||"ProxyBlock",h=(N,W)=>{const V=W[N];if(!V)return W;const B=[];return V.forEach((oe,se)=>{var be;const q={...oe};q.vueType=c(q._type),q.pageTitle=W.title,q.pageSlug=(be=W.slug)==null?void 0:be.current,q.blockIndex=se,q.cascadeColor="white",B.push(q)}),W[N]=B,W},l=async()=>{if(r.value)return r.value;const N=await iE("siteconfig",!0,3);return N?(r.value={...N},r.value):{}},d=(N=null)=>[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"},{rel:"icon",type:"image/svg+xml",href:"/favicon.svg"},{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"},{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"192x192",href:"/android-chrome-192x192.png"},{rel:"icon",type:"image/png",sizes:"512x512",href:"/android-chrome-512x512.png"},{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"},{rel:"mask-icon",href:"/apple-touch-icon.png",color:"#000000"}],f=N=>{var B,oe,se,q,be;if(!r.value&&!N.metadata)return[];const W=Array.isArray((se=(oe=(B=r==null?void 0:r.value)==null?void 0:B.elements)==null?void 0:oe.metadata)==null?void 0:se.linkedItems)&&r.value.elements.metadata.linkedItems.length>0?r.value.elements.metadata.linkedItems[0].elements:{},V=Array.isArray((q=N==null?void 0:N.metadata)==null?void 0:q.linkedItems)&&((be=N.metadata)==null?void 0:be.linkedItems.length)>0?N.metadata.linkedItems[0].elements:{};return[{rel:"canonical",href:Ce(()=>{var Te,he,ge;return(ge=(he=(Te=r==null?void 0:r.value)==null?void 0:Te.elements)==null?void 0:he.url)==null?void 0:ge.value})},{name:"description",content:Ce(()=>{var Te,he;return((Te=V==null?void 0:V.description)==null?void 0:Te.value)||((he=W==null?void 0:W.description)==null?void 0:he.value)})},{name:"keywords",content:Ce(()=>{var Te,he;return((Te=V==null?void 0:V.keywords)==null?void 0:Te.value)||((he=W==null?void 0:W.keywords)==null?void 0:he.value)})},{property:"og:type",content:"website"},{property:"og:title",content:Ce(()=>{var Te,he,ge,Ae,ye;return`${(ge=(he=(Te=r.value)==null?void 0:Te.elements)==null?void 0:he.sitename)==null?void 0:ge.value}${(Ae=N==null?void 0:N.title)!=null&&Ae.value?` | ${(ye=N==null?void 0:N.title)==null?void 0:ye.value}`:""}`})},{property:"og:description",content:Ce(()=>{var Te,he;return((Te=V==null?void 0:V.description)==null?void 0:Te.value)||((he=W==null?void 0:W.description)==null?void 0:he.value)})},{property:"og:url",content:Ce(()=>{var Te,he,ge;return(ge=(he=(Te=r==null?void 0:r.value)==null?void 0:Te.elements)==null?void 0:he.url)==null?void 0:ge.value})},{property:"og:image",content:Ce(()=>D(W==null?void 0:W.socialimagefacebook))},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:Ce(()=>{var Te,he,ge,Ae,ye;return`${(ge=(he=(Te=r.value)==null?void 0:Te.elements)==null?void 0:he.sitename)==null?void 0:ge.value}${(Ae=N==null?void 0:N.title)!=null&&Ae.value?` | ${(ye=N==null?void 0:N.title)==null?void 0:ye.value}`:""}`})},{name:"twitter:description",content:Ce(()=>{var Te,he;return((Te=V==null?void 0:V.description)==null?void 0:Te.value)||((he=W==null?void 0:W.description)==null?void 0:he.value)})},{name:"twitter:image",content:Ce(()=>D(W==null?void 0:W.socialimagetwitter))}]},_=N=>(Array.isArray(N)||(N=[]),N.map(W=>A(W)).filter(Boolean)),g=(N,W,V=null)=>{let B="";const oe={},se=V||b(W);return B=oe[se]||B,N==="/"?"/":`/${B}${N}`},b=N=>typeof N.type=="object"&&N.type._system&&N.type._system.name?N.type._system.name:N.type,y=N=>{if(!N||!o.value||o.value.length===0)return!1;const W=o.value.find(V=>{var B,oe;return((oe=(B=V.elements)==null?void 0:B.slug)==null?void 0:oe.value)===N});return W&&(W.system.type||W._type)||!1},w=N=>{var B,oe,se;const W=N.system?N.system:y((B=N.elements.slug)==null?void 0:B.value),V=((se=(oe=N.elements)==null?void 0:oe.slug)==null?void 0:se.value)||"/";return typeof V>"u"?"":g(V,W)},A=N=>{if(!N)return"";const W=y(N);return g(N,null,W)};function k(N){return!N||!Array.isArray(N)?[]:N.filter(W=>{var V,B;return(B=(V=W.elements)==null?void 0:V.slug)==null?void 0:B.value})}function R(N,W="beige"){var V,B;return((B=(V=N==null?void 0:N.value)==null?void 0:V[0])==null?void 0:B.name)||W}function C(N,W=""){const V={"warm-grey":"#12110E"};let B=N;return N&&typeof N=="object"&&(B=Object.keys(N).find(oe=>N[oe])),typeof B=="string"&&(B=B.replace(/^\.?theme-bg--/,"").replace(/^\.?theme--/,"")),V[B]||W}const L=(N,{width:W=null,height:V=null,crop:B=null}={})=>{const se=lt.pixelRatio;let q=`${N}?fm=jpg&dpr=${se}&q=60`;return W&&(W>1300&&(W=1300),q+=`&w=${W}`),V&&(q+=`&h=${V}`),W&&V&&B&&(q+=`&fit=${B}`),q},M=N=>lt.videoPrefix+N,$=N=>lt.cloudinaryVideoURL+N,U=N=>N.replace("https://assets-us-01.kc-usercontent.com/","https://images.breakthroughenergy.org/"),ne=N=>!N||!N.value||!Array.isArray(N.value)||N.value.length===0?[]:N.value.filter(W=>W.url&&W.type).map(W=>({src:$(W.url),type:W.type})),D=N=>!N||!N.value||!N.value.length||!N.value[0].url?!1:lt.cloudinaryAssetURL+N.value[0].url;return{getWebP:L,prefixedVideoURL:M,getVideoSource:$,getVideoSourceKontent:U,getVideoSources:ne,getAssetURL:D,getAssetURLs:N=>!N||!N.value||!N.value.length?[]:N.value.map(W=>lt.cloudinaryAssetURL+W.url).filter(W=>!!W),prepComponentsField:h,getRouteTypeFromSlug:u,prepLinkList:_,prepLink:A,getMeta:f,getMetaLinks:d,siteConfig:r,populateSiteConfig:l,getAllRoutes:s,pages:t,currentContent:e,isLoading:n,internalRouting:g,pageType:i,filterLinkList:k,getInternalTo:w,getThemeValue:R,getNavColorValue:C}});function n_(t){if(!t)return"";const e=t.charAt(0);return e>="A"&&e<="Z"?`type-nudge--${e.toLowerCase()}`:""}const q3=["data-nav-color"],G3={class:"SectionHeader-container"},Y3=["data-show-grid"],K3=["data-align"],X3={__name:"SectionHeader",props:{showGrid:{type:Boolean,default:!1},hLevel:{type:String,default:"h2"},block:{type:Object,required:!0,default:()=>({_type:"sectionHeader",vueType:"SectionHeader",title:"",intro:"",theme:{name:"theme",type:"multiple_choice",value:[{name:"black",codename:"black"}]},blockIndex:0,cascadeColor:"white",leadAlignment:"right"})}},setup(t){const e=t,n=mr();function r(){return e.block.leadAlignment||"right"}const i=Ce(()=>n_(e.block.intro));return(o,s)=>{const a=Pc;return ae(),me("header",{class:st(["SectionHeader",`theme--${_e(n).getThemeValue(t.block.theme)}`]),"data-nav-color":_e(n).getNavColorValue(_e(n).getThemeValue(t.block.theme))},[J("div",G3,[J("div",{class:"SectionHeader-wrap","data-show-grid":t.showGrid},[t.block.title?(ae(),Kt(va(t.hLevel),{key:0,class:"SectionHeader-title type-h1"},{default:Di(()=>[Ju(We(t.block.title),1)]),_:1})):bt("",!0),J("div",{class:"SectionHeader-lead","data-align":r()},[Ve(a,{class:st(["SectionHeader-intro type-h5",i.value]),html:t.block.intro},null,8,["class","html"])],8,K3)],8,Y3)])],10,q3)}}},Q3=_t(X3,[["__scopeId","data-v-cd9aca6e"]]),di={NONE:null,MENU:"MENU",FILTER:"FILTER",CONTENT:"CONTENT",VIDEO:"VIDEO"},ga={PENDING_TRANSITION:"TRANSITION_STATE:PENDING_TRANSITION",LEAVE:"TRANSITION_STATE:LEAVE",AFTER_LEAVE:"TRANSITION_STATE:AFTER_LEAVE",ENTER:"TRANSITION_STATE:ENTER",ENTER_AFTER_LOADED:"TRANSITION_STATE:ENTER_AFTER_LOADED",AFTER_ENTER:"TRANSITION_STATE:AFTER_ENTER"},H8={LEAVE:2,ENTER_TOTAL:1.2,ENTER_DELAY:.4},J3={BLACK:"rgb(18,17,14)",CREAM:"#FAFBF8",YELLOW:"#DFFF5C",KEYLINE_DARK:"#12110E4D"},vi=Rc("app",()=>{const t=Il(),e=j(!1);j(!1);const n=j(!1),r=j(null),i=_a({sources:[],timeOffset:0,title:"Title"}),o=!lt.isSSR&&lt.hasDocument?document.visibilityState==="visible":!0,s=j(!1),a=j(!1),u=j(!0);u.value=o;const c=j(!1),h=Ce(()=>c.value||!u.value),l=j(!1),d=j(di.NONE),f=j(!1),_=j(!0),g=j(!0),b=Ce(()=>d.value!==di.NONE),y=U=>{d.value=U},w=U=>{c.value=U},A=U=>{s.value=U},k=U=>{u.value=U},R=U=>{f.value=U},C=U=>{_.value=U};return Ne(()=>t.path,()=>{g.value=!1}),Ne(()=>t.path,()=>{n.value=d.value===di.MENU,y(di.NONE),setTimeout(()=>{n.value=!1},200)},{immediate:!0}),{navbarCanShow:_,toggleNavbarCanShow:C,setIsLoaderVisible:U=>{e.value=U},isLoaderVisible:e,audioUnlocked:a,tabVisible:u,setTabVisible:k,setAudioUserMuted:w,audioUserMuted:c,audioMuted:h,isWarningShowing:l,setModalState:y,modalState:d,modalShowing:b,videoModalData:i,videoModalPlayerRef:r,setVideoModalData:U=>{i.value=U},setVideoModalPlayerRef:U=>{r.value=U},menuOpenBeforeRouteChange:n,setPageHasAudio:A,pageHasAudio:s,lowFPS:f,setLowFPS:R}}),Z3=new Set(["link","style","script","noscript"]),e5=new Set(["title","titleTemplate","script","style","noscript"]),Jy=new Set(["base","meta","link","style","script","noscript"]),t5=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),n5=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),r5=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),i5=new Set(["templateParams","htmlAttrs","bodyAttrs"]),o5=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);function Om(t,e={},n){for(const r in t){const i=t[r],o=n?`${n}:${r}`:r;typeof i=="object"&&i!==null?Om(i,e,o):typeof i=="function"&&(e[o]=i)}return e}const s5={run:t=>t()},a5=()=>s5,uE=typeof console.createTask<"u"?console.createTask:a5;function l5(t,e){const n=e.shift(),r=uE(n);return t.reduce((i,o)=>i.then(()=>r.run(()=>o(...e))),Promise.resolve())}function u5(t,e){const n=e.shift(),r=uE(n);return Promise.all(t.map(i=>r.run(()=>i(...e))))}function vp(t,e){for(const n of[...t])n(e)}class c5{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,n,r={}){if(!e||typeof n!="function")return()=>{};const i=e;let o;for(;this._deprecatedHooks[e];)o=this._deprecatedHooks[e],e=o.to;if(o&&!r.allowDeprecated){let s=o.message;s||(s=`${i} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(s)||(console.warn(s),this._deprecatedMessages.add(s))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(n),()=>{n&&(this.removeHook(e,n),n=void 0)}}hookOnce(e,n){let r,i=(...o)=>(typeof r=="function"&&r(),r=void 0,i=void 0,n(...o));return r=this.hook(e,i),r}removeHook(e,n){if(this._hooks[e]){const r=this._hooks[e].indexOf(n);r!==-1&&this._hooks[e].splice(r,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,n){this._deprecatedHooks[e]=typeof n=="string"?{to:n}:n;const r=this._hooks[e]||[];delete this._hooks[e];for(const i of r)this.hook(e,i)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const n in e)this.deprecateHook(n,e[n])}addHooks(e){const n=Om(e),r=Object.keys(n).map(i=>this.hook(i,n[i]));return()=>{for(const i of r.splice(0,r.length))i()}}removeHooks(e){const n=Om(e);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...n){return n.unshift(e),this.callHookWith(l5,e,...n)}callHookParallel(e,...n){return n.unshift(e),this.callHookWith(u5,e,...n)}callHookWith(e,n,...r){const i=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&vp(this._before,i);const o=e(n in this._hooks?[...this._hooks[n]]:[],r);return o instanceof Promise?o.finally(()=>{this._after&&i&&vp(this._after,i)}):(this._after&&i&&vp(this._after,i),o)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const n=this._before.indexOf(e);n!==-1&&this._before.splice(n,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const n=this._after.indexOf(e);n!==-1&&this._after.splice(n,1)}}}}function f5(){return new c5}const d5=["name","property","http-equiv"],h5=new Set(["viewport","description","keywords","robots"]);function cE(t){const e=t.split(":");return e.length?o5.has(e[1]):!1}function Mm(t){const{props:e,tag:n}=t;if(n5.has(n))return n;if(n==="link"&&e.rel==="canonical")return"canonical";if(e.charset)return"charset";if(t.tag==="meta"){for(const r of d5)if(e[r]!==void 0){const i=e[r],o=i.includes(":"),s=h5.has(i),u=!(o||s)&&t.key?`:key:${t.key}`:"";return`${n}:${i}${u}`}}if(t.key)return`${n}:key:${t.key}`;if(e.id)return`${n}:id:${e.id}`;if(e5.has(n)){const r=t.textContent||t.innerHTML;if(r)return`${n}:content:${r}`}}function Zy(t){const e=t._h||t._d;if(e)return e;const n=t.textContent||t.innerHTML;return n||`${t.tag}:${Object.entries(t.props).map(([r,i])=>`${r}:${String(i)}`).join(",")}`}function Od(t,e,n){typeof t==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(t=t());let i;if(e&&(i=e(n,t)),Array.isArray(i))return i.map(o=>Od(o,e));if((i==null?void 0:i.constructor)===Object){const o={};for(const s of Object.keys(i))o[s]=Od(i[s],e,s);return o}return i}function p5(t,e){const n=t==="style"?new Map:new Set;function r(i){const o=i.trim();if(o)if(t==="style"){const[s,...a]=o.split(":").map(u=>u.trim());s&&a.length&&n.set(s,a.join(":"))}else o.split(" ").filter(Boolean).forEach(s=>n.add(s))}return typeof e=="string"?t==="style"?e.split(";").forEach(r):r(e):Array.isArray(e)?e.forEach(i=>r(i)):e&&typeof e=="object"&&Object.entries(e).forEach(([i,o])=>{o&&o!=="false"&&(t==="style"?n.set(i.trim(),o):r(i))}),n}function fE(t,e){return t.props=t.props||{},e&&Object.entries(e).forEach(([n,r])=>{if(r===null){t.props[n]=null;return}if(n==="class"||n==="style"){t.props[n]=p5(n,r);return}if(r5.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="object"){let s=e.type;if(e.type||(s="application/json"),!(s!=null&&s.endsWith("json"))&&s!=="speculationrules")return;e.type=s,t.props.type=s,t[n]=JSON.stringify(r)}else t[n]=r;return}const i=String(r),o=n.startsWith("data-");i==="true"||i===""?t.props[n]=o?i:!0:!r&&o&&i==="false"?t.props[n]="false":r!==void 0&&(t.props[n]=r)}),t}function m5(t,e){const n=typeof e=="object"&&typeof e!="function"?e:{[t==="script"||t==="noscript"||t==="style"?"innerHTML":"textContent"]:e},r=fE({tag:t,props:{}},n);return r.key&&Z3.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(i=>({...r,props:{...r.props,content:i}})):r}function g5(t,e){if(!t)return[];typeof t=="function"&&(t=t());const n=(i,o)=>{for(let s=0;s<e.length;s++)o=e[s](i,o);return o};t=n(void 0,t);const r=[];return t=Od(t,n),Object.entries(t||{}).forEach(([i,o])=>{if(o!==void 0)for(const s of Array.isArray(o)?o:[o])r.push(m5(i,s))}),r.flat()}const e1=(t,e)=>t._w===e._w?t._p-e._p:t._w-e._w,t1={base:-10,title:10},_5={critical:-8,high:-1,low:2},n1={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},v5=/@import/,lu=t=>t===""||t===!0;function y5(t,e){var o;if(typeof e.tagPriority=="number")return e.tagPriority;let n=100;const r=_5[e.tagPriority]||0,i=t.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:n1;if(e.tag in t1)n=t1[e.tag];else if(e.tag==="meta"){const s=e.props["http-equiv"]==="content-security-policy"?"content-security-policy":e.props.charset?"charset":e.props.name==="viewport"?"viewport":null;s&&(n=n1.meta[s])}else e.tag==="link"&&e.props.rel?n=i.link[e.props.rel]:e.tag==="script"?lu(e.props.async)?n=i.script.async:e.props.src&&!lu(e.props.defer)&&!lu(e.props.async)&&e.props.type!=="module"&&!((o=e.props.type)!=null&&o.endsWith("json"))?n=i.script.sync:lu(e.props.defer)&&e.props.src&&!lu(e.props.async)&&(n=i.script.defer):e.tag==="style"&&(n=e.innerHTML&&v5.test(e.innerHTML)?i.style.imported:i.style.sync);return(n||100)+r}function r1(t,e){const n=typeof e=="function"?e(t):e,r=n.key||String(t.plugins.size+1);t.plugins.get(r)||(t.plugins.set(r,n),t.hooks.addHooks(n.hooks||{}))}function b5(t={}){var a;const e=f5();e.addHooks(t.hooks||{});const n=!t.document,r=new Map,i=new Map,o=new Set,s={_entryCount:1,plugins:i,dirty:!1,resolvedOptions:t,hooks:e,ssr:n,entries:r,headEntries(){return[...r.values()]},use:u=>r1(s,u),push(u,c){const h={...c||{}};delete h.head;const l=h._index??s._entryCount++,d={_i:l,input:u,options:h},f={_poll(_=!1){s.dirty=!0,!_&&o.add(l),e.callHook("entries:updated",s)},dispose(){r.delete(l)&&s.invalidate()},patch(_){(!h.mode||h.mode==="server"&&n||h.mode==="client"&&!n)&&(d.input=_,r.set(l,d),f._poll())}};return f.patch(u),f},async resolveTags(){var f;const u={tagMap:new Map,tags:[],entries:[...s.entries.values()]};for(await e.callHook("entries:resolve",u);o.size;){const _=o.values().next().value;o.delete(_);const g=r.get(_);if(g){const b={tags:g5(g.input,t.propResolvers||[]).map(y=>Object.assign(y,g.options)),entry:g};await e.callHook("entries:normalize",b),g._tags=b.tags.map((y,w)=>(y._w=y5(s,y),y._p=(g._i<<10)+w,y._d=Mm(y),y))}}let c=!1;u.entries.flatMap(_=>(_._tags||[]).map(g=>({...g,props:{...g.props}}))).sort(e1).reduce((_,g)=>{const b=String(g._d||g._p);if(!_.has(b))return _.set(b,g);const y=_.get(b);if(((g==null?void 0:g.tagDuplicateStrategy)||(i5.has(g.tag)?"merge":null)||(g.key&&g.key===y.key?"merge":null))==="merge"){const A={...y.props};Object.entries(g.props).forEach(([k,R])=>A[k]=k==="style"?new Map([...y.props.style||new Map,...R]):k==="class"?new Set([...y.props.class||new Set,...R]):R),_.set(b,{...g,props:A})}else g._p>>10===y._p>>10&&g.tag==="meta"&&cE(b)?(_.set(b,Object.assign([...Array.isArray(y)?y:[y],g],g)),c=!0):(g._w===y._w?g._p>y._p:(g==null?void 0:g._w)<(y==null?void 0:y._w))&&_.set(b,g);return _},u.tagMap);const h=u.tagMap.get("title"),l=u.tagMap.get("titleTemplate");if(s._title=h==null?void 0:h.textContent,l){const _=l==null?void 0:l.textContent;if(s._titleTemplate=_,_){let g=typeof _=="function"?_(h==null?void 0:h.textContent):_;typeof g=="string"&&!s.plugins.has("template-params")&&(g=g.replace("%s",(h==null?void 0:h.textContent)||"")),h?g===null?u.tagMap.delete("title"):u.tagMap.set("title",{...h,textContent:g}):(l.tag="title",l.textContent=g)}}u.tags=Array.from(u.tagMap.values()),c&&(u.tags=u.tags.flat().sort(e1)),await e.callHook("tags:beforeResolve",u),await e.callHook("tags:resolve",u),await e.callHook("tags:afterResolve",u);const d=[];for(const _ of u.tags){const{innerHTML:g,tag:b,props:y}=_;if(t5.has(b)&&!(Object.keys(y).length===0&&!_.innerHTML&&!_.textContent)&&!(b==="meta"&&!y.content&&!y["http-equiv"]&&!y.charset)){if(b==="script"&&g){if((f=y.type)!=null&&f.endsWith("json")){const w=typeof g=="string"?g:JSON.stringify(g);_.innerHTML=w.replace(/</g,"\\u003C")}else typeof g=="string"&&(_.innerHTML=g.replace(new RegExp(`</${b}`,"g"),`<\\/${b}`));_._d=Mm(_)}d.push(_)}}return d},invalidate(){for(const u of r.values())o.add(u._i);s.dirty=!0,e.callHook("entries:updated",s)}};return((t==null?void 0:t.plugins)||[]).forEach(u=>r1(s,u)),s.hooks.callHook("init",s),(a=t.init)==null||a.forEach(u=>u&&s.push(u)),s}const w5=(t,e)=>vn(e)?SR(e):e,dE="usehead";function S5(t){return{install(n){n.config.globalProperties.$unhead=t,n.config.globalProperties.$head=t,n.provide(dE,t)}}.install}function hE(){if(Wb()){const t=Yr(dE);if(!t)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return t}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function r_(t,e={}){const n=e.head||hE();return n.ssr?n.push(t||{},e):T5(n,t,e)}function T5(t,e,n={}){const r=j(!1);let i;return Tc(()=>{const s=r.value?{}:Od(e,w5);i?i.patch(s):i=t.push(s,n)}),Cl()&&(wc(()=>{i.dispose()}),Mb(()=>{r.value=!0}),Ob(()=>{r.value=!1})),i}const i1={},E5=["data-slug"],k5={key:1,class:"page-loading"},A5=["data-nav-color"],R5=["data-nav-color"],x5={class:"page-container"},C5={class:"page-grid"},P5={key:0,class:"type-eyebrow page-eyebrow"},I5={class:"page-body"},L5={key:3,class:"page-content page-content--404 theme--cream"},O5={class:"page-container page-container--404"},pE={__name:"[...slug]",props:{slug:{type:Array,required:!0},isModalRoute:{type:Boolean,default:!1},theme:{name:"theme",type:Object,default:()=>({name:"theme",type:"multiple_choice",value:[{name:"beige",codename:"beige"}]})}},setup(t){const e=t,n=Ce(()=>!e.slug&&!Array.isArray(e.slug)?!1:typeof e.slug=="string"||Array.isArray(e.slug)&&e.slug.length===1),r=VR(()=>zr(()=>import("./_slug_-P9mvh-RZ.js"),__vite__mapDeps([0,1])));j("page");const i=mr(),o=j(""),s=j(null);Il(),Pl();const a=j(),u=j(null),c=Ce(()=>typeof e.slug=="string"?[e.slug]:Array.isArray(e.slug)?e.slug:[]),h=Ce(()=>c.value.join("/")),{data:l,error:d,isLoading:f}=lE(h);e.isModalRoute||r_(Ce(()=>({title:o.value||g(),meta:s.value?i.getMeta(s.value):[],link:i.getMetaLinks(s.value)})));async function _(){var y,w;if(a.value=!1,!l.value){s.value=null;return}if(!((y=l.value.system)!=null&&y.type)){console.error("Invalid page data structure"),a.value="Invalid page data structure",s.value=null;return}l.value.elements?(s.value=l.value.elements,s.value,s.value,o.value=(w=s.value.title)==null?void 0:w.value,i.pageType=l.value.system.type):(console.error("No page elements found"),s.value=null)}Tc(()=>{f.value||(d.value?(a.value="Error loading page",console.error("Error loading page:",d.value),s.value=null):l.value?_():s.value=null)});function g(){const y=c.value;if(!Array.isArray(y)||!y.length)return"";try{return y.map(w=>typeof w!="string"?"":w.split("-").map(A=>A.charAt(0).toUpperCase()+A.slice(1)).join(" ")).filter(Boolean).join(" - ")}catch(w){return console.error("Error formatting slug title:",w),""}}async function b(){try{await new Promise((y,w)=>{const A=Ne(()=>f.value,k=>{k||(A(),y())},{immediate:!0})}),l.value&&await _()}catch(y){console.error("Error in onServerPrefetch:",y)}}return Yd(async()=>{u.value=h.value,u.value,BTEDL.newPage(u.value),l.value&&!f.value&&_()}),Sc(async()=>{u.value=h.value,await b()}),Vt(()=>{}),(y,w)=>{var R,C,L,M,$,U,ne,D,Q,N,W,V,B,oe,se,q,be;const A=Q3,k=iO;return ae(),me("div",{key:h.value,"data-slug":c.value,class:"page"},[n.value?(ae(),Kt(va(_e(r)),{key:0,slug:Array.isArray(e.slug)?e.slug[0]:e.slug,isModalRoute:e.isModalRoute},null,8,["slug","isModalRoute"])):_e(f)?(ae(),me("div",k5,w[0]||(w[0]=[J("div",{class:"loading-indicator"}," Loading page content... ",-1)]))):s.value?(ae(),me("div",{key:2,class:st(["page-content",`theme--${((L=(C=(R=s.value.theme)==null?void 0:R.value)==null?void 0:C[0])==null?void 0:L.name)||"beige"}`]),"data-nav-color":_e(i).getNavColorValue(((U=($=(M=s.value.theme)==null?void 0:M.value)==null?void 0:$[0])==null?void 0:U.name)||"beige")},[Ve(A,{block:{_type:"sectionHeader",vueType:"SectionHeader",title:o.value,intro:((ne=s.value.intro)==null?void 0:ne.value)||"",theme:s.value.theme||t.theme,blockIndex:0,cascadeColor:"white",leadAlignment:"right-compact"}},null,8,["block"]),J("div",{class:st(`theme--${((N=(Q=(D=s.value.theme)==null?void 0:D.value)==null?void 0:Q[0])==null?void 0:N.name)||"beige"}`),"data-nav-color":_e(i).getNavColorValue(((B=(V=(W=s.value.theme)==null?void 0:W.value)==null?void 0:V[0])==null?void 0:B.name)||"beige")},[J("div",x5,[J("div",C5,[s.value.eyebrow?(ae(),me("h2",P5,We((oe=s.value.eyebrow)==null?void 0:oe.value),1)):bt("",!0),J("div",I5,[Ve(Pc,{html:(se=s.value.body)==null?void 0:se.value,"in-column":!0},null,8,["html"])])])])],10,R5),(be=(q=_e(l))==null?void 0:q.components)!=null&&be.length?(ae(!0),me(Ye,{key:0},ut(_e(l).components,Te=>(ae(),Kt(va(Te.vueType),{key:Te.blockIndex,data:Te,class:"page-component"},null,8,["data"]))),128)):bt("",!0)],10,A5)):(ae(),me("div",L5,[J("div",O5,[Ve(k)])]))],8,E5)}}};typeof i1=="function"&&i1(pE);const Fm=_t(pE,[["__scopeId","data-v-301a2568"]]),M5=Object.freeze(Object.defineProperty({__proto__:null,default:Fm},Symbol.toStringTag,{value:"Module"})),F5={class:"ButtonIcon-icon ButtonIcon-icon--static"},D5={class:"ButtonIcon-clip"},$5={class:"ButtonIcon-clip"},H5={class:"sr-only"},N5={class:"ButtonIcon-icon ButtonIcon-icon--static"},B5={class:"ButtonIcon-clip"},V5={class:"ButtonIcon-clip"},U5={class:"sr-only"},j5={__name:"ButtonIcon",props:{label:{type:String,required:!0,default:"",description:"Accessible label for screen readers"},theme:{type:String,default:"black"},to:{type:String},rel:{type:String},download:{type:String},buttonType:{type:String},variant:{type:String,default:"default"},manualHover:{type:Boolean,default:!1},notButton:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:e}){const n=t,r=e,{gsap:i}=gn();let o=null;const s=j(null),a=j(null),u=j(null);let c=!1;Ne(()=>n.manualHover,()=>{n.manualHover?(h(),c=!0):(c=!1,l())});function h(){c||(o==null||o.kill(),o=i.timeline(),o.set(s.value,{y:"100%"},0),o.to(s.value,{duration:.45,ease:"sine.inOut",y:0},0),o.set(a.value,{y:0},0),o.to(a.value,{duration:.45,y:"-100%",ease:"sine.out"},0),o.set(u.value,{y:"100%"},0),o.to(u.value,{delay:.1,duration:.5,stagger:.05,y:0,ease:"sine.out"},0))}function l(){c||(o==null||o.kill(),o=i.timeline(),o.to(s.value,{duration:.45,ease:"sine.inOut",y:"-100%"}),o.set(a.value,{y:"100%"},0),o.to(a.value,{delay:.1,duration:.45,y:0,ease:"sine.out"},0),o.set(u.value,{y:0},0),o.to(u.value,{duration:.5,y:"-100%",ease:"sine.out"},0))}function d(w){r("click",w)}function f(){lt.touchScreen||h()}function _(){lt.touchScreen||l()}function g(w){return String(w).trim()}const b=Ce(()=>!n.to||n.buttonType),y=Ce(()=>g(n.label));return xt(()=>{i.set([s.value,u.value],{y:"-100%"})}),(w,A)=>{const k=Ow;return b.value?(ae(),Kt(va(t.notButton?"span":"button"),{key:0,class:st(["ButtonIconWrapper",`ButtonIconWrapper--${t.variant}`]),type:n.buttonType,"data-is-hover":t.manualHover,onClick:d,onMouseenter:f,onMouseleave:_},{default:Di(()=>[J("span",{class:st(["ButtonIcon",[`ButtonIcon--${t.variant}`]])},[J("span",F5,[Do(w.$slots,"default",{},void 0,!0)])],2),J("span",{class:st(["ButtonIcon ButtonIcon-icon ButtonIcon-icon--animated",[`ButtonIcon--${n.theme}`,`ButtonIcon--${t.variant}`]])},[J("span",D5,[J("span",{ref_key:"iconRef",ref:a,class:"ButtonIcon-anim"},[Do(w.$slots,"default",{},void 0,!0)],512)])],2),J("span",{ref_key:"hoverBgRef",ref:s,class:st(["ButtonIcon-hover-bg",[`ButtonIcon--${n.theme}-hover`,`ButtonIcon--${t.variant}`]])},null,2),J("span",{class:st(["ButtonIcon-icon ButtonIcon-icon--hover",[`ButtonIcon--${n.theme}-hover-icon`,`ButtonIcon--${t.variant}`]])},[J("span",$5,[J("span",{ref_key:"hoverIconRef",ref:u,class:"ButtonIcon-anim"},[Do(w.$slots,"default",{},void 0,!0)],512)])],2),J("span",H5,We(y.value),1)]),_:3},40,["class","type","data-is-hover"])):(ae(),Kt(k,{key:1,class:st(["ButtonIconWrapper",`ButtonIconWrapper--${t.variant}`]),to:n.to,download:n.download,rel:n.rel,"data-is-hover":t.manualHover},{default:Di(()=>[J("span",{class:st(["ButtonIcon",[`ButtonIcon--${t.variant}`]])},[J("span",N5,[Do(w.$slots,"default",{},void 0,!0)])],2),J("span",{class:st(["ButtonIcon ButtonIcon-icon ButtonIcon-icon--animated",[`ButtonIcon--${n.theme}`,`ButtonIcon--${t.variant}`]])},[J("span",B5,[J("span",{ref_key:"iconRef",ref:a,class:"ButtonIcon-anim"},[Do(w.$slots,"default",{},void 0,!0)],512)])],2),J("span",{ref_key:"hoverBgRef",ref:s,class:st(["ButtonIcon-hover-bg",[`ButtonIcon--${n.theme}-hover`,`ButtonIcon--${t.variant}`]])},null,2),J("span",{class:st(["ButtonIcon-icon ButtonIcon-icon--hover",[`ButtonIcon--${n.theme}-hover-icon`,`ButtonIcon--${t.variant}`]])},[J("span",V5,[J("span",{ref_key:"hoverIconRef",ref:u,class:"ButtonIcon-anim"},[Do(w.$slots,"default",{},void 0,!0)],512)])],2),J("span",U5,We(y.value),1)]),_:3},8,["class","to","download","rel","data-is-hover"]))}}},i_=_t(j5,[["__scopeId","data-v-d7d7ae78"]]),W5={fill:"none",viewBox:"0 0 41 40",xmlns:"http://www.w3.org/2000/svg"};function z5(t,e){return ae(),me("svg",W5,e[0]||(e[0]=[J("path",{d:"m19.1638 23.7501c.3334-.3333.7667-.5 1.2-.5.4334 0 .8667.1667 1.2.5l9.5 9.5 2.5667-2.5666-9.5-9.5c-.3333-.3334-.5-.7334-.5-1.2 0-.4667.1667-.8667.5-1.2l9.5-9.50004-2.5667-2.56666-9.5 9.5c-.6666.6667-1.7333.6667-2.4 0l-9.49997-9.5-2.56666 2.56666 9.50003 9.50004c.3333.3333.5.7333.5 1.2 0 .4666-.1667.8666-.5 1.2l-9.50003 9.5333 2.56666 2.5667 9.49997-9.5z",fill:"currentColor"},null,-1)]))}const q5={render:z5},Ii=(t,e=0,n=1)=>t<e?e:t>n?n:t,je=(t,e,n,r=0,i=1,o=!0)=>{const s=(t-e)/(n-e);return o?Ii(s,r,i):s},Wn=(t,e,n)=>e+t*(n-e),_i={};_i.subscribe=function(t,e,n=-1,r=void 0){return this.on(t,e,n),r!==void 0&&e(r),()=>{this.off(t,e)}};_i.on=function(t,e,n=-1){typeof e=="function"&&(this._emitCallbacks=this._emitCallbacks||{},this._emitCallbacks[t]=this._emitCallbacks[t]||[],e._callback_order=n===-1?1e6:n,this._emitCallbacks[t].unshift(e),n>-1&&this._emitCallbacks[t].sort((r,i)=>i._callback_order-r._callback_order))};_i.off=function(t,e){if(this._emitCallbacks&&(!t&&!e&&(this._emitCallbacks=null),t&&!e&&(this._emitCallbacks[t]=null),t&&e&&this._emitCallbacks[t])){const n=this._emitCallbacks[t].indexOf(e);n>-1&&this._emitCallbacks[t].splice(n,1)}};_i.emit=function(t,e){var r;if(!(this._emitCallbacks&&this._emitCallbacks[t]))return;const n=this._emitCallbacks[t];for(let i=n.length-1;i>-1;i--)(r=n[i])==null||r.call(n,e)};_i.set=function(t,e,n=null){this.setEmit(t,e,n)};_i.setEmit=function(t,e,n=null){this[t]!==e&&(this[t]=e,n=n||t,this.emit(n,e))};_i.removeEventListener=_i.off;_i.addEventListener=_i.on;_i.trigger=_i.emit;const o_={},pl=function(t){return typeof t=="function"},G5=function(t,e,n,r){const i=pl(t.on)?"on":null,o=pl(t.$on)?"$on":null,s=pl(t.addEventListener)?"addEventListener":null;t[i||o||s](e,n,r)},Qa=function(t,e,n){const r=pl(t.off)?"off":null,i=pl(t.$off)?"$off":null,o=pl(t.addEventListener)?"removeEventListener":null;t[r||i||o](e,n)};o_.listen=function(t,e,n,r){this._emitters=this._emitters||new Map,this._emitters.has(t)||this._emitters.set(t,new Set);let i=!1;this._emitters.get(t).forEach(o=>{o.eventKey===e&&o.callback===n&&(i=!0)}),i||(Qa(t,e,n),G5(t,e,n,r),this._emitters.get(t).add({eventKey:e,callback:n}))};o_.unlisten=function(t,e,n){if(this._emitters){if(!t)this._emitters.forEach((r,i)=>{r.forEach(o=>{Qa(i,o.eventKey,o.callback)})}),this._emitters.clear();else if(t&&e&&n){const r=this._emitters.get(t);r&&r.forEach(i=>{i.eventKey===e&&i.callback===n&&(Qa(t,i.eventKey,i.callback),r.delete(i))})}else if(t&&e&&Array.isArray(e)){const r=this._emitters.get(t),i=e;r&&r.forEach(o=>{i.includes(o.eventKey)&&(Qa(t,o.eventKey,o.callback),r.delete(o))})}else if(t&&e){const r=this._emitters.get(t);r&&r.forEach(i=>{i.eventKey===e&&(Qa(t,i.eventKey,i.callback),r.delete(i))})}else if(t){const r=this._emitters.get(t);r&&(r.forEach(i=>{Qa(t,i.eventKey,i.callback),r.delete(i)}),this._emitters.delete(t))}}};const Y5=Number.parseInt(Mc.desktop,10),K5=Number.parseInt(Mc.mobile,10),Jf=Number.parseInt(Mc["tablet-portrait"],10),Dm=Number.parseInt(Mc["tablet-landscape"],10),ju=Number.parseInt(Mc.desktop,10),uu={RESIZE:"resize",POLL_RESIZE:"poll_resize",BODY_HEIGHT_CHANGE:"body_height_change"},X5="mobile",Q5="tablet",J5="tablet-portrait",Z5="tablet-landscape",e4="desktop",o1="breakpoint-tablet-portrait",s1="breakpoint-tablet-landscape",a1="breakpoint-mobile",l1="breakpoint-tablet",$m="breakpoint-desktop",t4={alwaysEmitResize:!1,scale:1,baseFontSize:1,pollResizeSeconds:2,breakpoints:{[a1]:{name:a1,maxWidth:Jf},[l1]:{name:l1,maxWidth:ju},[o1]:{name:o1,maxWidth:Dm},[s1]:{name:s1,maxWidth:ju},[$m]:{name:$m,maxWidth:2e4}},deviceTypes:{[X5]:{portrait:{designSize:{width:K5,height:667}},landscape:{designSize:{width:667,height:375}}},[J5]:{designSize:{width:768,height:1024}},[Z5]:{designSize:{width:1024,height:768}},[Q5]:{designSize:{width:1024,height:900}},[e4]:{designSize:{width:Y5,height:900}}}},xf=()=>lt.hasWindow&&lt.hasDocument;class n4{constructor(e){Oe(this,"cssVar",{lvh:600,svh:600,dvh:600,lch:0,dch:0});Oe(this,"subscribeBodyHeight",(e,n=!0,r=-1)=>this.subscribe(this.EVENTS.BODY_HEIGHT_CHANGE,e,r,n?this.current:null));Oe(this,"subscribeResize",(e,n=!0,r=-1,i=!1)=>{const o=this.subscribe(this.EVENTS.RESIZE,e,r,n?this.current:null);if(i){const s=this.subscribe(this.EVENTS.POLL_RESIZE,e,!1,r);return()=>{o(),s()}}else return o});Oe(this,"triggerResize",()=>{this._resize(!0)});Oe(this,"_pollResize",()=>{this.emit(uu.POLL_RESIZE,this.current)});Oe(this,"onFrame",()=>{var e,n;this._resize(),this.rafRef=(n=(e=lt.window).requestAnimationFrame)==null?void 0:n.call(e,this.onFrame)});Oe(this,"_bodyChange",()=>{this.emit(uu.BODY_HEIGHT_CHANGE,this.current)});Oe(this,"_resize",(e=!1,n=!1)=>{const r=this.ww,i=this.wh,o=r!==this.width||i!==this.height||e,s=o||this.config.alwaysEmitResize||e;this.width=r,this.height=i,o&&(this._updateBreakpointClass(),this._updateCSSVars(),this._updateOrientationClass()),s&&this.emit(uu.RESIZE,this.current),s&&!n&&(clearTimeout(this.resizeDelayedTimeout),this.resizeDelayedTimeout=setTimeout(this._resize(!0,!0),500))});Oe(this,"_updateBreakpointClass",()=>{const e=this.breakpoint,n=this.config.breakpoints;for(const r in n)this.html.classList[r===e?"add":"remove"](r)});Oe(this,"_updateOrientationClass",()=>{this.html.classList.toggle("landscape",this.landscape),this.html.classList.toggle("portrait",!this.landscape)});Oe(this,"_updateCSSVars",()=>{this.isDesktop?(this.dvh=this.wh,this.svh=this.wh,this.lvh=this.wh,this.lch=0,this.dch=0):(this._makeVHRuler(),this.dvh=this.wh,this.lvh=this.lvh_ruler.clientHeight,this.svh=this.svh_ruler.clientHeight,this.lch=this.lvh-this.svh,this.dch=this.lvh-this.dvh)});Oe(this,"_makeVHRuler",()=>{if(lt.isSSR||!lt.hasDocument||this.lvh_ruler)return;const e=document.createElement("div");e.style="width:1px; height:1px; position:fixed; overflow:hidden;",document.body.appendChild(e),this.lvh_ruler=document.createElement("div"),this.lvh_ruler.style="width:1; height:100lvh; position:absolute;",e.appendChild(this.lvh_ruler),this.svh_ruler=document.createElement("div"),this.svh_ruler.style="width:1; height:100svh; position:absolute;",e.appendChild(this.svh_ruler)});var i,o,s,a,u,c;if(Object.assign(this,_i),Object.assign(this,o_),!xf())return;this.config=Object.assign({},t4,e),this.html=xf()?document.querySelector("html"):{};const n=Math.max(this.wh,this.ww);this.cssVar={lvh:n,svh:n,dvh:n,lch:0,dch:0},this._scale=1,this._resize(!0),(o=(i=lt.window).setTimeout)==null||o.call(i,()=>this._resize(!0),50),(a=(s=lt.window).setTimeout)==null||a.call(s,()=>this._resize(!0),500),this.pollInterval=(c=(u=lt.window).setInterval)==null?void 0:c.call(u,()=>this._pollResize(),this.config.pollResizeSeconds*1e3),this.onFrame();const r=new ResizeObserver(()=>this._bodyChange());xf()&&r.observe(document.body)}static get EVENTS(){return uu}get EVENTS(){return uu}destroy(){var e,n;(n=(e=lt.window).cancelAnimationFrame)==null||n.call(e,this.rafRef),this.unlisten()}setCSSVar(e,n){xf()&&(document.documentElement.style.setProperty(`--${e}`,`${n}px`),this.cssVar[e]=n)}get lvh(){return this.cssVar.lvh}set lvh(e){this.cssVar.lvh=e}get svh(){return this.cssVar.svh}set svh(e){this.setCSSVar("svh",e)}get dvh(){return this.cssVar.dvh}set dvh(e){this.setCSSVar("dvh",e)}get lch(){return this.cssVar.lch}set lch(e){this.setCSSVar("lch",e)}get dch(){return this.cssVar.dch}set dch(e){this.setCSSVar("dch",e)}get wh(){return lt.window.innerHeight}get ww(){return lt.window.innerWidth}get isPhoneBreakpoint(){return this.ww<=Jf}get isTabletBreakpoint(){return this.ww>Jf&&this.ww<=ju}get isTabletPortraitBreakpoint(){return this.ww>Jf&&this.ww<=Dm}get isTabletLandscapeBreakpoint(){return this.ww>Dm&&this.ww<=ju}get isDesktopBreakpoint(){return this.ww>ju}get isPhone(){return lt.phone}get isMobile(){return lt.mobile}get isTablet(){return lt.tablet}get isDesktop(){return!lt.mobile&&!lt.tablet}get breakpoint(){var n;const e=((n=this.config)==null?void 0:n.breakpoints)||[];for(const r in e)if(this.width<=e[r].maxWidth)return r;return $m}get landscape(){return this.ww>this.wh&&this.ww>600}get orientation(){return this.landscape?"landscape":"portrait"}get device(){return this.deviceType}get deviceType(){return this.isMobile?"mobile":this.isTablet?"tablet":"desktop"}get baseFontSize(){return this.config.baseFontSize}get current(){return{width:this.width,height:this.height,breakpoint:this.breakpoint,deviceType:this.deviceType,orientation:this.orientation}}}const Je=new n4,mE=Rc("browser",()=>{const t=j(0),e=j(0),n=j(1),r=j(""),i=j(!1),o=j(!1),s=j(!1),a=j(""),u=j(""),c=j(0),h=j(!1),l=j(!1),d=j(!1),f=j(!1),_=j(!1),g=j(!1),b=function(){t.value=Je.width,e.value=Je.height,n.value=1,r.value=Je.breakpoint,i.value=Je.isPhoneBreakpoint,o.value=Je.isTabletBreakpoint,s.value=Je.isDesktopBreakpoint,a.value=Je.deviceType,u.value=Je.orientation,c.value=16,h.value=Je.isMobile,l.value=Je.isTablet,d.value=Je.isDesktop,f.value=Je.isTabletPortraitBreakpoint,_.value=Je.isTabletLandscapeBreakpoint,t.value!==0&&(g.value=!0)};typeof window<"u"?setTimeout(()=>{b(),Je.subscribeResize(b,!0,1)},0):(t.value=1920,e.value=1080,n.value=1,r.value="desktop",i.value=!1,o.value=!1,s.value=!0,a.value="desktop",u.value="landscape",c.value=16,h.value=!1,l.value=!1,d.value=!0,f.value=!1,_.value=!1,g.value=!0);const y=Ce(()=>i.value||f.value);return{ww:t,wh:e,scale:n,breakpoint:r,isPhoneBreakpoint:i,isTabletBreakpoint:o,isDesktopBreakpoint:s,deviceType:a,orientation:u,fontSize:c,isMobile:h,isTablet:l,isDesktop:d,isTabletPortrait:f,isTabletLandscape:_,storeReady:g,update:b,isMobileOrPortraitTablet:y}});var r4="1.1.20";function gE(t,e,n){return Math.max(t,Math.min(e,n))}function i4(t,e,n){return(1-n)*t+n*e}function o4(t,e,n,r){return i4(t,e,1-Math.exp(-n*r))}function s4(t,e){return(t%e+e)%e}var a4=class{constructor(){Oe(this,"isRunning",!1);Oe(this,"value",0);Oe(this,"from",0);Oe(this,"to",0);Oe(this,"currentTime",0);Oe(this,"lerp");Oe(this,"duration");Oe(this,"easing");Oe(this,"onUpdate")}advance(t){var n;if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=t;const r=gE(0,this.currentTime/this.duration,1);e=r>=1;const i=e?1:this.easing(r);this.value=this.from+(this.to-this.from)*i}else this.lerp?(this.value=o4(this.value,this.to,this.lerp*60,t),Math.round(this.value)===this.to&&(this.value=this.to,e=!0)):(this.value=this.to,e=!0);e&&this.stop(),(n=this.onUpdate)==null||n.call(this,this.value,e)}stop(){this.isRunning=!1}fromTo(t,e,{lerp:n,duration:r,easing:i,onStart:o,onUpdate:s}){this.from=this.value=t,this.to=e,this.lerp=n,this.duration=r,this.easing=i,this.currentTime=0,this.isRunning=!0,o==null||o(),this.onUpdate=s}};function l4(t,e){let n;return function(...r){let i=this;clearTimeout(n),n=setTimeout(()=>{n=void 0,t.apply(i,r)},e)}}var u4=class{constructor(t,e,{autoResize:n=!0,debounce:r=250}={}){Oe(this,"width",0);Oe(this,"height",0);Oe(this,"scrollHeight",0);Oe(this,"scrollWidth",0);Oe(this,"debouncedResize");Oe(this,"wrapperResizeObserver");Oe(this,"contentResizeObserver");Oe(this,"resize",()=>{this.onWrapperResize(),this.onContentResize()});Oe(this,"onWrapperResize",()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)});Oe(this,"onContentResize",()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)});this.wrapper=t,this.content=e,n&&(this.debouncedResize=l4(this.resize,r),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){var t,e;(t=this.wrapperResizeObserver)==null||t.disconnect(),(e=this.contentResizeObserver)==null||e.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},_E=class{constructor(){Oe(this,"events",{})}emit(t,...e){var r;let n=this.events[t]||[];for(let i=0,o=n.length;i<o;i++)(r=n[i])==null||r.call(n,...e)}on(t,e){var n;return(n=this.events[t])!=null&&n.push(e)||(this.events[t]=[e]),()=>{var r;this.events[t]=(r=this.events[t])==null?void 0:r.filter(i=>e!==i)}}off(t,e){var n;this.events[t]=(n=this.events[t])==null?void 0:n.filter(r=>e!==r)}destroy(){this.events={}}},u1=100/6,cs={passive:!1},c4=class{constructor(t,e={wheelMultiplier:1,touchMultiplier:1}){Oe(this,"touchStart",{x:0,y:0});Oe(this,"lastDelta",{x:0,y:0});Oe(this,"window",{width:0,height:0});Oe(this,"emitter",new _E);Oe(this,"onTouchStart",t=>{const{clientX:e,clientY:n}=t.targetTouches?t.targetTouches[0]:t;this.touchStart.x=e,this.touchStart.y=n,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:t})});Oe(this,"onTouchMove",t=>{const{clientX:e,clientY:n}=t.targetTouches?t.targetTouches[0]:t,r=-(e-this.touchStart.x)*this.options.touchMultiplier,i=-(n-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=n,this.lastDelta={x:r,y:i},this.emitter.emit("scroll",{deltaX:r,deltaY:i,event:t})});Oe(this,"onTouchEnd",t=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:t})});Oe(this,"onWheel",t=>{let{deltaX:e,deltaY:n,deltaMode:r}=t;const i=r===1?u1:r===2?this.window.width:1,o=r===1?u1:r===2?this.window.height:1;e*=i,n*=o,e*=this.options.wheelMultiplier,n*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:n,event:t})});Oe(this,"onWindowResize",()=>{this.window={width:window.innerWidth,height:window.innerHeight}});this.element=t,this.options=e,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,cs),this.element.addEventListener("touchstart",this.onTouchStart,cs),this.element.addEventListener("touchmove",this.onTouchMove,cs),this.element.addEventListener("touchend",this.onTouchEnd,cs)}on(t,e){return this.emitter.on(t,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,cs),this.element.removeEventListener("touchstart",this.onTouchStart,cs),this.element.removeEventListener("touchmove",this.onTouchMove,cs),this.element.removeEventListener("touchend",this.onTouchEnd,cs)}},f4=class{constructor({wrapper:t=window,content:e=document.documentElement,eventsTarget:n=t,smoothWheel:r=!0,syncTouch:i=!1,syncTouchLerp:o=.075,touchInertiaMultiplier:s=35,duration:a,easing:u=C=>Math.min(1,1.001-Math.pow(2,-10*C)),lerp:c=.1,infinite:h=!1,orientation:l="vertical",gestureOrientation:d="vertical",touchMultiplier:f=1,wheelMultiplier:_=1,autoResize:g=!0,prevent:b,virtualScroll:y,overscroll:w=!0,autoRaf:A=!1,anchors:k=!1,__experimental__naiveDimensions:R=!1}={}){Oe(this,"_isScrolling",!1);Oe(this,"_isStopped",!1);Oe(this,"_isLocked",!1);Oe(this,"_preventNextNativeScrollEvent",!1);Oe(this,"_resetVelocityTimeout",null);Oe(this,"__rafID",null);Oe(this,"isTouching");Oe(this,"time",0);Oe(this,"userData",{});Oe(this,"lastVelocity",0);Oe(this,"velocity",0);Oe(this,"direction",0);Oe(this,"options");Oe(this,"targetScroll");Oe(this,"animatedScroll");Oe(this,"animate",new a4);Oe(this,"emitter",new _E);Oe(this,"dimensions");Oe(this,"virtualScroll");Oe(this,"onScrollEnd",t=>{t instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&t.stopPropagation()});Oe(this,"dispatchScrollendEvent",()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))});Oe(this,"onClick",t=>{const n=t.composedPath().find(r=>{var i;return r instanceof HTMLAnchorElement&&((i=r.getAttribute("href"))==null?void 0:i.startsWith("#"))});if(n){const r=n.getAttribute("href");if(r){const i=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0;this.scrollTo(r,i)}}});Oe(this,"onPointerDown",t=>{t.button===1&&this.reset()});Oe(this,"onVirtualScroll",t=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(t)===!1)return;const{deltaX:e,deltaY:n,event:r}=t;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:n,event:r}),r.ctrlKey||r.lenisStopPropagation)return;const i=r.type.includes("touch"),o=r.type.includes("wheel");this.isTouching=r.type==="touchstart"||r.type==="touchmove";const s=e===0&&n===0;if(this.options.syncTouch&&i&&r.type==="touchstart"&&s&&!this.isStopped&&!this.isLocked){this.reset();return}const u=this.options.gestureOrientation==="vertical"&&n===0||this.options.gestureOrientation==="horizontal"&&e===0;if(s||u)return;let c=r.composedPath();c=c.slice(0,c.indexOf(this.rootElement));const h=this.options.prevent;if(c.find(b=>{var y,w,A;return b instanceof HTMLElement&&(typeof h=="function"&&(h==null?void 0:h(b))||((y=b.hasAttribute)==null?void 0:y.call(b,"data-lenis-prevent"))||i&&((w=b.hasAttribute)==null?void 0:w.call(b,"data-lenis-prevent-touch"))||o&&((A=b.hasAttribute)==null?void 0:A.call(b,"data-lenis-prevent-wheel")))}))return;if(this.isStopped||this.isLocked){r.preventDefault();return}if(!(this.options.syncTouch&&i||this.options.smoothWheel&&o)){this.isScrolling="native",this.animate.stop(),r.lenisStopPropagation=!0;return}let d=n;this.options.gestureOrientation==="both"?d=Math.abs(n)>Math.abs(e)?n:e:this.options.gestureOrientation==="horizontal"&&(d=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&n>0||this.animatedScroll===this.limit&&n<0))&&(r.lenisStopPropagation=!0),r.preventDefault();const f=i&&this.options.syncTouch,g=i&&r.type==="touchend"&&Math.abs(d)>5;g&&(d=this.velocity*this.options.touchInertiaMultiplier),this.scrollTo(this.targetScroll+d,{programmatic:!1,...f?{lerp:g?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})});Oe(this,"onNativeScroll",()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){const t=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-t,this.direction=Math.sign(this.animatedScroll-t),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}});Oe(this,"raf",t=>{const e=t-(this.time||t);this.time=t,this.animate.advance(e*.001),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))});window.lenisVersion=r4,(!t||t===document.documentElement)&&(t=window),this.options={wrapper:t,content:e,eventsTarget:n,smoothWheel:r,syncTouch:i,syncTouchLerp:o,touchInertiaMultiplier:s,duration:a,easing:u,lerp:c,infinite:h,gestureOrientation:d,orientation:l,touchMultiplier:f,wheelMultiplier:_,autoResize:g,prevent:b,virtualScroll:y,overscroll:w,autoRaf:A,anchors:k,__experimental__naiveDimensions:R},this.dimensions=new u4(t,e,{autoResize:g}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new c4(n,{touchMultiplier:f,wheelMultiplier:_}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this.__rafID&&cancelAnimationFrame(this.__rafID)}on(t,e){return this.emitter.on(t,e)}off(t,e){return this.emitter.off(t,e)}setScroll(t){this.isHorizontal?this.options.wrapper.scrollTo({left:t,behavior:"instant"}):this.options.wrapper.scrollTo({top:t,behavior:"instant"})}resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){this.isStopped&&(this.reset(),this.isStopped=!1)}stop(){this.isStopped||(this.reset(),this.isStopped=!0)}scrollTo(t,{offset:e=0,immediate:n=!1,lock:r=!1,duration:i=this.options.duration,easing:o=this.options.easing,lerp:s=this.options.lerp,onStart:a,onComplete:u,force:c=!1,programmatic:h=!0,userData:l}={}){if(!((this.isStopped||this.isLocked)&&!c)){if(typeof t=="string"&&["top","left","start"].includes(t))t=0;else if(typeof t=="string"&&["bottom","right","end"].includes(t))t=this.limit;else{let d;if(typeof t=="string"?d=document.querySelector(t):t instanceof HTMLElement&&(t!=null&&t.nodeType)&&(d=t),d){if(this.options.wrapper!==window){const _=this.rootElement.getBoundingClientRect();e-=this.isHorizontal?_.left:_.top}const f=d.getBoundingClientRect();t=(this.isHorizontal?f.left:f.top)+this.animatedScroll}}if(typeof t=="number"){if(t+=e,t=Math.round(t),this.options.infinite?h&&(this.targetScroll=this.animatedScroll=this.scroll):t=gE(0,t,this.limit),t===this.targetScroll){a==null||a(this),u==null||u(this);return}if(this.userData=l??{},n){this.animatedScroll=this.targetScroll=t,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),u==null||u(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}h||(this.targetScroll=t),this.animate.fromTo(this.animatedScroll,t,{duration:i,easing:o,lerp:s,onStart:()=>{r&&(this.isLocked=!0),this.isScrolling="smooth",a==null||a(this)},onUpdate:(d,f)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=d-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=d,this.setScroll(this.scroll),h&&(this.targetScroll=d),f||this.emit(),f&&(this.reset(),this.emit(),u==null||u(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){const t=this.options.wrapper;return this.isHorizontal?t.scrollX??t.scrollLeft:t.scrollY??t.scrollTop}get scroll(){return this.options.infinite?s4(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(t){this._isScrolling!==t&&(this._isScrolling=t,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(t){this._isStopped!==t&&(this._isStopped=t,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(t){this._isLocked!==t&&(this._isLocked=t,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let t="lenis";return this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),this.isScrolling==="smooth"&&(t+=" lenis-smooth"),t}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}};const d4={mouseWheelDuration:.8,touchDragDuration:.2,touchSwipeMaxDuration:10,touchSwipeDurationFactor:.5,touchSwipeVelocityFactor:1.5,touchSwipeDecayFactor:.95};function h4(t,e=d4){t.mobileConfig=e,t.virtualScroll.emitter.off("scroll",t.onVirtualScroll),t.virtualScroll.on("scroll",n=>{p4(n,t)})}function p4(t,e){var M,$;const n=($=(M=t.event)==null?void 0:M.type)==null?void 0:$.includes("wheel");if(e.options.infinite&&n){const U=t.deltaY<=0,D=t.deltaY+e.targetScroll<=0;if(U&&D){t.deltaY=0,t.event.lenisStopPropagation=!0,e.scrollTo(0,{programmatic:!0,lerp:e.options.lerp,duration:e.options.duration,easing:e.options.easing});return}}if(typeof e.options.virtualScroll=="function"&&e.options.virtualScroll(t)===!1)return;const{deltaX:r,deltaY:i,event:o}=t;if(e.emitter.emit("virtual-scroll",{deltaX:r,deltaY:i,event:o}),o.ctrlKey||o.lenisStopPropagation)return;const s=o.type.includes("touch"),a=o.type.includes("wheel");e.isTouching=o.type==="touchstart"||o.type==="touchmove";const u=r===0&&i===0;if(e.options.syncTouch&&s&&o.type==="touchstart"&&u&&!e.isStopped&&!e.isLocked){e.reset();return}const h=e.options.gestureOrientation==="vertical"&&i===0||e.options.gestureOrientation==="horizontal"&&r===0;if(u||h)return;let l=o.composedPath();l=l.slice(0,l.indexOf(e.rootElement));const d=e.options.prevent;if(l.find(U=>{var ne,D,Q;return U instanceof HTMLElement&&(typeof d=="function"&&(d==null?void 0:d(U))||((ne=U.hasAttribute)==null?void 0:ne.call(U,"data-lenis-prevent"))||s&&((D=U.hasAttribute)==null?void 0:D.call(U,"data-lenis-prevent-touch"))||a&&((Q=U.hasAttribute)==null?void 0:Q.call(U,"data-lenis-prevent-wheel")))}))return;if(e.isStopped||e.isLocked){o.preventDefault();return}if(!(e.options.syncTouch&&s||e.options.smoothWheel&&a)){e.isScrolling="native",e.animate.stop(),o.lenisStopPropagation=!0;return}let _=i;e.options.gestureOrientation==="both"?_=Math.abs(i)>Math.abs(r)?i:r:e.options.gestureOrientation==="horizontal"&&(_=r),(!e.options.overscroll||e.options.infinite||e.options.wrapper!==window&&(e.animatedScroll>0&&e.animatedScroll<e.limit||e.animatedScroll===0&&i>0||e.animatedScroll===e.limit&&i<0))&&(o.lenisStopPropagation=!0),o.preventDefault();const g=s&&e.options.syncTouch,y=s&&o.type==="touchend"&&Math.abs(_)>5,{mouseWheelDuration:w,touchDragDuration:A,touchSwipeMaxDuration:k,touchSwipeDurationFactor:R,touchSwipeVelocityFactor:C,touchSwipeDecayFactor:L}=e.mobileConfig;if(y){const U=Math.abs(e.velocity),ne=e.velocity>0?1:-1,D=Math.min(A+Math.log(1+U*R),k);e.options.duration=D;const Q=D*1e3/(1e3/60),N=(1-L**Q)/(1-L)*C*U;_=ne*N}else g?e.options.duration=A:e.options.duration=w;e.scrollTo(e.targetScroll+_,{programmatic:!1,...g?{lerp:y?e.options.syncTouchLerp:1}:{lerp:e.options.lerp,duration:e.options.duration,easing:e.options.easing}})}const mh=Rc("transition",()=>{const t=j(!1),e=j(!1),n=j(!1),r=j(ga.PENDING_TRANSITION),i=j(ga.PENDING_TRANSITION),o=j(0),s=j(!1);return{routeFrom:t,routeTo:e,skipTransition:n,transitionState:r,transitionCancelled:s,setRoute:function(d){t.value=e.value,e.value=d.path},setSkipTransition:function(d){n.value=d},setTransitionState:function(d){r.value=d},setTransitionCancelled:function(d){s.value=d},transitionVisibleState:i,setTransitionVisibleState:function(d){i.value=d},transitionEnterProgress:o}}),{ScrollTrigger:Cf,gsap:m4}=gn();function g4(t){return t===1?1:1.001-2**(-10*t)}const wn=Rc("scroll",()=>{const t=Pl(),e=mh(),n=vi(),{transitionState:r,transitionVisibleState:i}=bw(e);let o=-1,s={top:0};const a=_a(null),u=j(0),c=j(-.001),h=j(-.001),l=j(-.001),d=j(0),f=j(0),_=j(0),g=j(!1),b=j(!1),y=j(!1),w=j(!1);function A(){const W=s.top||0,V=s.hash||void 0,B=lt.isSSR&&!lt.hasDocument?null:document.querySelector(V||"#-----------------"),oe=B?B.getBoundingClientRect().top+window.scrollY:W;a.value&&a.value.scrollTo(oe,{immediate:!0,force:!0}),!a.value&&window.scrollTo({top:oe,behavior:"instant"},!1),Q()}t.options.scrollBehavior=(W,V,B)=>{const oe=["/"].includes(W.path),se={TOP:{top:0},SAVED_POSITION:{top:B==null?void 0:B.top},HASH:{hash:W==null?void 0:W.hash}};let q=W!=null&&W.hash?se.HASH:se.TOP;return q=B?se.SAVED_POSITION:q,q=oe?se.TOP:q,s=q,{top:lt.isSSR?0:window.scrollY}},Ne(r,W=>{var B;const V={[ga.LEAVE]:()=>R(!0),[ga.ENTER]:()=>{R(!0),setTimeout(A,20)},[ga.AFTER_ENTER]:()=>{R(!1)}};(B=V[W])==null||B.call(V)},{immediate:!0}),Ne(()=>n.modalShowing,W=>{L(W)},{immediate:!0});const k=Ce(()=>g.value||b.value||y.value);function R(W){g.value=W}function C(W){b.value=W}function L(W){y.value=W}function M(W){w.value=W}Tc(()=>{a.value&&(k.value?a.value.stop():a.value.start(),k.value||Q())});function $(W){a.value.raf(W),Lt(()=>{h.value=a.value.scroll.toFixed(3)}),o=requestAnimationFrame($)}function U(){var W,V;(W=a.value)==null||W.destroy(),a.value=new f4({duration:.8,easing:g4,syncTouch:!0}),h4(a.value),$(),(V=a.value)==null||V.on("scroll",()=>ne()),ne()}function ne(){a.value&&(u.value=a.value.velocity||0,c.value=a.value.actualScroll||0,f.value=a.value.targetScroll||0,d.value=a.value.progress||0,_.value=a.value.direction||0,Cf.update(),window.scrollProgress=d.value,Lt(()=>{l.value=a.value.actualScroll||0}))}function D(W,V){var B;(B=a.value)==null||B.scrollTo(W,V)}function Q(W){lt.isSSR||(m4.ticker.lagSmoothing(0),Cf==null||Cf.refresh())}function N(){var W;cancelAnimationFrame(o.value),(W=a.value)==null||W.destroy(),a.value=null}return{initLenis:U,lenis:a,scrollLock:k,setScrollLockTransition:R,setScrollLockModal:L,setScrollLockLoader:C,scrollVelocity:u,scrollCurrent:c,scrollSubPixel:h,scrollCurrentAfter:l,scrollProgress:d,scrollTarget:f,scrollDirection:_,refreshScroller:Q,scrollTo:D,setScrollBarDragging:M,scrollBarDragging:w,cleanup:N}}),_4=["data-theme-color"],v4=["data-theme-color"],y4=["data-theme-color"],b4=["data-large"],w4=["data-nav-color"],S4=["data-large"],T4={key:1,class:"modal-404"},E4={__name:"ContentModal",props:{uniqueId:{type:String,required:!0},theme:{name:"theme",type:Object,default:()=>({name:"theme",type:"multiple_choice",value:[{name:"yellow",codename:"yellow"}]})},isLarge:{type:Boolean,required:!1,default:!0},overlayTheme:{name:"overlaytheme",type:Object,default:()=>({name:"theme",type:"multiple_choice",value:[{name:"yellow",codename:"yellow"}]})},slug:{type:String,required:!1,default:null},filter:{type:String,required:!1,default:null}},setup(t){const e=t,n=vi(),r=mr(),i=mE();wn();const{gsap:o}=gn(),s=Pl();Il();const a=_a(null),u=j(!1),c=j({}),h=j(null),l=j(null),d=j(null),f=j(null),_=j(null),g=j(null),b=j(null),y=j(null);async function w(M){var ne;if(u.value=!1,a.value=null,!M)return;const $=s.resolve(M);if(!$.matched.length||!((ne=$.matched[$.matched.length-1].components)!=null&&ne.default)){u.value=!0;return}let U=$.matched[$.matched.length-1].components.default;typeof U=="function"&&(U=(await U()).default||await U()),a.value=U,c.value={slug:e.slug,filter:e.filter}}function A(){n.setModalState(di.NONE)}let k=null,R=null;function C(){k==null||k.kill(),R==null||R.kill(),k=o.timeline({}),k.set([g.value,_.value,d.value,l.value,f.value],{autoAlpha:1},">"),k.to(l.value,{autoAlpha:1,duration:.6},0),k.to(g.value,{scaleX:1,duration:.6,ease:"power2.inOut"},0),k.to(f.value,{scale:1,duration:.25,ease:"power2.inOut"},">-0.1"),k.to(_.value,{translateX:"0%",duration:.6,ease:"power2.inOut"},0),k.to(b.value,{translateX:"0%",duration:.6,ease:"power2.inOut"},0),y.value&&(y.value.scrollTop=0)}function L(M=!1){k==null||k.kill(),R==null||R.kill(),R=o.timeline({}),R.to(l.value,{autoAlpha:0,duration:M?0:.4},0),R.to(f.value,{scale:.01,duration:M?0:.18,ease:"power2.inOut"},0),R.set([f.value],{autoAlpha:0},">"),R.to(_.value,{autoAlpha:0,ease:"linear",duration:M?0:.2},0),R.to(_.value,{translateX:"100%",ease:"power2.inOut",duration:M?0:.25},.1),R.to(b.value,{translateX:"-100%",ease:"power2.inOut",duration:M?0:.25},.1),R.to(g.value,{scaleX:.01,ease:"power2.inOut",duration:M?0:.25},.1),R.set([g.value,_.value,d.value],{autoAlpha:0},">")}return Ne(()=>n.modalState,M=>{M===di.CONTENT+e.uniqueId?C():L(!1)}),Ne(()=>e.slug,w),xt(async()=>{L(!0),e.slug&&await w(e.slug)}),(M,$)=>{const U=q5,ne=i_;return ae(),Kt(DR,{to:"body"},[J("div",{ref_key:"rootRef",ref:h,class:"ContentModal"},[J("div",{ref_key:"bgWrapperRef",ref:l,class:"ContentModal-bgWrapper",onClick:A},[J("div",{class:"ContentModal-bg ContentModal-bg--first","data-theme-color":_e(r).getThemeValue(t.overlayTheme)},null,8,_4),J("div",{class:"ContentModal-bg ContentModal-bg--second","data-theme-color":_e(r).getThemeValue(t.overlayTheme)},null,8,v4),J("div",{class:"ContentModal-bg ContentModal-bg--third","data-theme-color":_e(r).getThemeValue(t.overlayTheme)},null,8,y4)],512),J("div",{ref_key:"blockRef",ref:d,class:"ContentModal-block","data-large":t.isLarge},[J("div",{ref_key:"contentBgRef",ref:g,class:st(["ContentModal-contentbackground",`theme--${_e(r).getThemeValue(t.theme)}`]),"data-nav-color":_e(r).getNavColorValue(_e(r).getThemeValue(t.theme))},null,10,w4),J("div",{ref_key:"closeRef",ref:f,class:"ContentModal-closeButton"},[Ve(ne,{label:"Close",theme:_e(i).isMobileOrPortraitTablet?"yellow-alt":"yellow",onClick:A},{default:Di(()=>[Ve(U)]),_:1},8,["theme"])],512),J("div",{ref_key:"contentRef",ref:_,class:"ContentModal-content"},[J("div",{ref_key:"inverseRef",ref:b,class:"ContentModal-inverse"},[J("div",{ref_key:"scrollRef",ref:y,class:"ContentModal-scroll","data-lenis-prevent":""},[J("div",{class:"ContentModal-container","data-large":t.isLarge},[t.slug&&a.value?(ae(),me(Ye,{key:0},[a.value?(ae(),Kt(va(a.value),ow({key:0},_e(c),{slug:_e(c).slug,filter:_e(c).filter,theme:t.theme,"is-modal-route":!0}),null,16,["slug","filter","theme"])):bt("",!0)],64)):t.slug&&_e(u)?(ae(),me("div",T4,$[0]||($[0]=[J("h1",{class:"type-h3"}," Sorry ",-1),Ju(" This content was not found. ")]))):Do(M.$slots,"default",{key:2},void 0,!0)],8,S4)],512)],512)],512)],8,b4)],512)])}}},k4=_t(E4,[["__scopeId","data-v-0089f1d3"]]),A4={class:"mody"},R4={__name:"HomePortfolioModal",setup(t){function e(){return[{name:"Manufacturing",codename:"manufacturing"},{name:"Electricity",codename:"electricity"},{name:"Agriculture",codename:"agriculture"},{name:"Transportation",codename:"transportation"},{name:"Buildings",codename:"buildings"}]}function n(){return{theme:{name:"theme",type:"multiple_choice",value:[{name:"yellow",codename:"yellow"}]},overlay:{name:"overlaytheme",type:"multiple_choice",value:[{name:"yellow",codename:"yellow"}]}}}return(r,i)=>{const o=k4;return ae(),me("div",A4,[(ae(!0),me(Ye,null,ut(e(),s=>(ae(),Kt(o,{key:s.name,"unique-id":s.codename,slug:"portfolio",filter:s.codename,theme:n().theme,"overlay-theme":n().overlay},null,8,["unique-id","filter","theme","overlay-theme"]))),128))])}}},x4=_t(R4,[["__scopeId","data-v-a594cd35"]]);var cu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function C4(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Zf={exports:{}},P4=Zf.exports,c1;function I4(){return c1||(c1=1,function(t,e){(function(r,i){t.exports=i()})(P4,()=>(()=>{var n=[,(s,a,u)=>{u.r(a),u.d(a,{default:()=>h});var c=(()=>{var l=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(d={}){var f=d,_,g;f.ready=new Promise((p,v)=>{_=p,g=v});function b(){function p(de){const ke=O;E=v=0,O=new Map,ke.forEach(xe=>{try{xe(de)}catch(we){console.error(we)}}),this.pb(),X&&X.Tb()}let v=0,E=0,O=new Map,X=null,te=null;this.requestAnimationFrame=function(de){v||(v=requestAnimationFrame(p.bind(this)));const ke=++E;return O.set(ke,de),ke},this.cancelAnimationFrame=function(de){O.delete(de),v&&O.size==0&&(cancelAnimationFrame(v),v=0)},this.Rb=function(de){te&&(document.body.remove(te),te=null),de||(te=document.createElement("div"),te.style.backgroundColor="black",te.style.position="fixed",te.style.right=0,te.style.top=0,te.style.color="white",te.style.padding="4px",te.innerHTML="RIVE FPS",de=function(ke){te.innerHTML="RIVE FPS "+ke.toFixed(1)},document.body.appendChild(te)),X=new function(){let ke=0,xe=0;this.Tb=function(){var we=performance.now();xe?(++ke,we-=xe,1e3<we&&(de(1e3*ke/we),ke=xe=0)):(xe=we,ke=0)}}},this.Ob=function(){te&&(document.body.remove(te),te=null),X=null},this.pb=function(){}}function y(p){console.assert(!0);const v=new Map;let E=-1/0;this.push=function(O){return O=O+((1<<p)-1)>>p,v.has(O)&&clearTimeout(v.get(O)),v.set(O,setTimeout(function(){v.delete(O),v.length==0?E=-1/0:O==E&&(E=Math.max(...v.keys()),console.assert(E<O))},1e3)),E=Math.max(O,E),E<<p}}const w=f.onRuntimeInitialized;f.onRuntimeInitialized=function(){w&&w();let p=f.decodeAudio;f.decodeAudio=function(X,te){X=p(X),te(X)};let v=f.decodeFont;f.decodeFont=function(X,te){X=v(X),te(X)};const E=f.FileAssetLoader;f.ptrToAsset=X=>{let te=f.ptrToFileAsset(X);return te.isImage?f.ptrToImageAsset(X):te.isFont?f.ptrToFontAsset(X):te.isAudio?f.ptrToAudioAsset(X):te},f.CustomFileAssetLoader=E.extend("CustomFileAssetLoader",{__construct:function({loadContents:X}){this.__parent.__construct.call(this),this.Gb=X},loadContents:function(X,te){return X=f.ptrToAsset(X),this.Gb(X,te)}}),f.CDNFileAssetLoader=E.extend("CDNFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this)},loadContents:function(X){let te=f.ptrToAsset(X);return X=te.cdnUuid,X===""?!1:(function(de,ke){var xe=new XMLHttpRequest;xe.responseType="arraybuffer",xe.onreadystatechange=function(){xe.readyState==4&&xe.status==200&&ke(xe)},xe.open("GET",de,!0),xe.send(null)}(te.cdnBaseUrl+"/"+X,de=>{te.decode(new Uint8Array(de.response))}),!0)}}),f.FallbackFileAssetLoader=E.extend("FallbackFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this),this.lb=[]},addLoader:function(X){this.lb.push(X)},loadContents:function(X,te){for(let de of this.lb)if(de.loadContents(X,te))return!0;return!1}});let O=f.computeAlignment;f.computeAlignment=function(X,te,de,ke,xe=1){return O.call(this,X,te,de,ke,xe)}};const A="createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "),k=new function(){function p(){if(!v){let St=function(At,qe,_n){if(qe=Fe.createShader(qe),Fe.shaderSource(qe,_n),Fe.compileShader(qe),_n=Fe.getShaderInfoLog(qe),0<(_n||"").length)throw _n;Fe.attachShader(At,qe)};var ve=document.createElement("canvas"),$e={alpha:1,depth:0,stencil:0,antialias:0,premultipliedAlpha:1,preserveDrawingBuffer:0,powerPreference:"high-performance",failIfMajorPerformanceCaveat:0,enableExtensionsByDefault:1,explicitSwapControl:1,renderViaOffscreenBackBuffer:1};let Fe;if(/iPhone|iPad|iPod/i.test(navigator.userAgent)){if(Fe=ve.getContext("webgl",$e),E=1,!Fe)return!1}else if(Fe=ve.getContext("webgl2",$e))E=2;else if(Fe=ve.getContext("webgl",$e))E=1;else return!1;if(Fe=new Proxy(Fe,{get(At,qe){if(At.isContextLost()){if(xe||(console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ",qe),xe=!0),typeof At[qe]=="function")return function(){}}else return typeof At[qe]=="function"?function(..._n){return At[qe].apply(At,_n)}:At[qe]},set(At,qe,_n){if(At.isContextLost())xe||(console.error("Cannot render the mesh because the GL Context was lost. Tried to set property "+qe),xe=!0);else return At[qe]=_n,!0}}),O=Math.min(Fe.getParameter(Fe.MAX_RENDERBUFFER_SIZE),Fe.getParameter(Fe.MAX_TEXTURE_SIZE)),ve=Fe.createProgram(),St(ve,Fe.VERTEX_SHADER,`attribute vec2 vertex;
                attribute vec2 uv;
                uniform vec4 mat;
                uniform vec2 translate;
                varying vec2 st;
                void main() {
                    st = uv;
                    gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1);
                }`),St(ve,Fe.FRAGMENT_SHADER,`precision highp float;
                uniform sampler2D image;
                varying vec2 st;
                void main() {
                    gl_FragColor = texture2D(image, st);
                }`),Fe.bindAttribLocation(ve,0,"vertex"),Fe.bindAttribLocation(ve,1,"uv"),Fe.linkProgram(ve),$e=Fe.getProgramInfoLog(ve),0<($e||"").trim().length)throw $e;X=Fe.getUniformLocation(ve,"mat"),te=Fe.getUniformLocation(ve,"translate"),Fe.useProgram(ve),Fe.bindBuffer(Fe.ARRAY_BUFFER,Fe.createBuffer()),Fe.enableVertexAttribArray(0),Fe.enableVertexAttribArray(1),Fe.bindBuffer(Fe.ELEMENT_ARRAY_BUFFER,Fe.createBuffer()),Fe.uniform1i(Fe.getUniformLocation(ve,"image"),0),Fe.pixelStorei(Fe.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),v=Fe}return!0}let v=null,E=0,O=0,X=null,te=null,de=0,ke=0,xe=!1;p(),this.hc=function(){return p(),O},this.Mb=function(ve){v.deleteTexture&&v.deleteTexture(ve)},this.Lb=function(ve){if(!p())return null;const $e=v.createTexture();return $e?(v.bindTexture(v.TEXTURE_2D,$e),v.texImage2D(v.TEXTURE_2D,0,v.RGBA,v.RGBA,v.UNSIGNED_BYTE,ve),v.texParameteri(v.TEXTURE_2D,v.TEXTURE_WRAP_S,v.CLAMP_TO_EDGE),v.texParameteri(v.TEXTURE_2D,v.TEXTURE_WRAP_T,v.CLAMP_TO_EDGE),v.texParameteri(v.TEXTURE_2D,v.TEXTURE_MAG_FILTER,v.LINEAR),E==2?(v.texParameteri(v.TEXTURE_2D,v.TEXTURE_MIN_FILTER,v.LINEAR_MIPMAP_LINEAR),v.generateMipmap(v.TEXTURE_2D)):v.texParameteri(v.TEXTURE_2D,v.TEXTURE_MIN_FILTER,v.LINEAR),$e):null};const we=new y(8),He=new y(8),Ue=new y(10),Xe=new y(10);this.Qb=function(ve,$e,Fe,St,At){if(p()){var qe=we.push(ve),_n=He.push($e);if(v.canvas){(v.canvas.width!=qe||v.canvas.height!=_n)&&(v.canvas.width=qe,v.canvas.height=_n),v.viewport(0,_n-$e,ve,$e),v.disable(v.SCISSOR_TEST),v.clearColor(0,0,0,0),v.clear(v.COLOR_BUFFER_BIT),v.enable(v.SCISSOR_TEST),Fe.sort(($t,ro)=>ro.xb-$t.xb),qe=Ue.push(St),de!=qe&&(v.bufferData(v.ARRAY_BUFFER,8*qe,v.DYNAMIC_DRAW),de=qe),qe=0;for(var ur of Fe)v.bufferSubData(v.ARRAY_BUFFER,qe,ur.Ua),qe+=4*ur.Ua.length;console.assert(qe==4*St);for(var no of Fe)v.bufferSubData(v.ARRAY_BUFFER,qe,no.Db),qe+=4*no.Db.length;console.assert(qe==8*St),qe=Xe.push(At),ke!=qe&&(v.bufferData(v.ELEMENT_ARRAY_BUFFER,2*qe,v.DYNAMIC_DRAW),ke=qe),ur=0;for(var Bs of Fe)v.bufferSubData(v.ELEMENT_ARRAY_BUFFER,ur,Bs.indices),ur+=2*Bs.indices.length;console.assert(ur==2*At),Bs=0,no=!0,qe=ur=0;for(const $t of Fe){$t.image.Ka!=Bs&&(v.bindTexture(v.TEXTURE_2D,$t.image.Ja||null),Bs=$t.image.Ka),$t.mc?(v.scissor($t.Za,_n-$t.$a-$t.kb,$t.Ac,$t.kb),no=!0):no&&(v.scissor(0,_n-$e,ve,$e),no=!1),Fe=2/ve;const ro=-2/$e;v.uniform4f(X,$t.ha[0]*Fe*$t.Ba,$t.ha[1]*ro*$t.Ca,$t.ha[2]*Fe*$t.Ba,$t.ha[3]*ro*$t.Ca),v.uniform2f(te,$t.ha[4]*Fe*$t.Ba+Fe*($t.Za-$t.ic*$t.Ba)-1,$t.ha[5]*ro*$t.Ca+ro*($t.$a-$t.jc*$t.Ca)+1),v.vertexAttribPointer(0,2,v.FLOAT,!1,0,qe),v.vertexAttribPointer(1,2,v.FLOAT,!1,0,qe+4*St),v.drawElements(v.TRIANGLES,$t.indices.length,v.UNSIGNED_SHORT,ur),qe+=4*$t.Ua.length,ur+=2*$t.indices.length}console.assert(qe==4*St),console.assert(ur==2*At)}}},this.canvas=function(){return p()&&v.canvas}},R=f.onRuntimeInitialized;f.onRuntimeInitialized=function(){function p(Me){switch(Me){case we.srcOver:return"source-over";case we.screen:return"screen";case we.overlay:return"overlay";case we.darken:return"darken";case we.lighten:return"lighten";case we.colorDodge:return"color-dodge";case we.colorBurn:return"color-burn";case we.hardLight:return"hard-light";case we.softLight:return"soft-light";case we.difference:return"difference";case we.exclusion:return"exclusion";case we.multiply:return"multiply";case we.hue:return"hue";case we.saturation:return"saturation";case we.color:return"color";case we.luminosity:return"luminosity"}}function v(Me){return"rgba("+((16711680&Me)>>>16)+","+((65280&Me)>>>8)+","+((255&Me)>>>0)+","+((4278190080&Me)>>>24)/255+")"}function E(){0<_n.length&&(k.Qb(qe.drawWidth(),qe.drawHeight(),_n,ur,no),_n=[],no=ur=0,qe.reset(512,512));for(const Me of At){for(const Ge of Me.H)Ge();Me.H=[]}At.clear()}R&&R();var O=f.RenderPaintStyle;const X=f.RenderPath,te=f.RenderPaint,de=f.Renderer,ke=f.StrokeCap,xe=f.StrokeJoin,we=f.BlendMode,He=O.fill,Ue=O.stroke,Xe=f.FillRule.evenOdd;let ve=1;var $e=f.RenderImage.extend("CanvasRenderImage",{__construct:function({la:Me,xa:Ge}={}){this.__parent.__construct.call(this),this.Ka=ve,ve=ve+1&2147483647||1,this.la=Me,this.xa=Ge},__destruct:function(){this.Ja&&(k.Mb(this.Ja),URL.revokeObjectURL(this.Xa)),this.__parent.__destruct.call(this)},decode:function(Me){var Ge=this;Ge.xa&&Ge.xa(Ge);var Mt=new Image;Ge.Xa=URL.createObjectURL(new Blob([Me],{type:"image/png"})),Mt.onload=function(){Ge.Fb=Mt,Ge.Ja=k.Lb(Mt),Ge.size(Mt.width,Mt.height),Ge.la&&Ge.la(Ge)},Mt.src=Ge.Xa}}),Fe=X.extend("CanvasRenderPath",{__construct:function(){this.__parent.__construct.call(this),this.T=new Path2D},rewind:function(){this.T=new Path2D},addPath:function(Me,Ge,Mt,Ht,Tt,Ft,Wt){var Qt=this.T,Vi=Qt.addPath;Me=Me.T;const tr=new DOMMatrix;tr.a=Ge,tr.b=Mt,tr.c=Ht,tr.d=Tt,tr.e=Ft,tr.f=Wt,Vi.call(Qt,Me,tr)},fillRule:function(Me){this.Wa=Me},moveTo:function(Me,Ge){this.T.moveTo(Me,Ge)},lineTo:function(Me,Ge){this.T.lineTo(Me,Ge)},cubicTo:function(Me,Ge,Mt,Ht,Tt,Ft){this.T.bezierCurveTo(Me,Ge,Mt,Ht,Tt,Ft)},close:function(){this.T.closePath()}}),St=te.extend("CanvasRenderPaint",{color:function(Me){this.Ya=v(Me)},thickness:function(Me){this.Ib=Me},join:function(Me){switch(Me){case xe.miter:this.Ia="miter";break;case xe.round:this.Ia="round";break;case xe.bevel:this.Ia="bevel"}},cap:function(Me){switch(Me){case ke.butt:this.Ha="butt";break;case ke.round:this.Ha="round";break;case ke.square:this.Ha="square"}},style:function(Me){this.Hb=Me},blendMode:function(Me){this.Eb=p(Me)},clearGradient:function(){this.ja=null},linearGradient:function(Me,Ge,Mt,Ht){this.ja={zb:Me,Ab:Ge,cb:Mt,eb:Ht,Ra:[]}},radialGradient:function(Me,Ge,Mt,Ht){this.ja={zb:Me,Ab:Ge,cb:Mt,eb:Ht,Ra:[],ec:!0}},addStop:function(Me,Ge){this.ja.Ra.push({color:Me,stop:Ge})},completeGradient:function(){},draw:function(Me,Ge,Mt){let Ht=this.Hb;var Tt=this.Ya,Ft=this.ja;if(Me.globalCompositeOperation=this.Eb,Ft!=null){Tt=Ft.zb;var Wt=Ft.Ab;const Vi=Ft.cb;var Qt=Ft.eb;const tr=Ft.Ra;Ft.ec?(Ft=Vi-Tt,Qt-=Wt,Tt=Me.createRadialGradient(Tt,Wt,0,Tt,Wt,Math.sqrt(Ft*Ft+Qt*Qt))):Tt=Me.createLinearGradient(Tt,Wt,Vi,Qt);for(let wi=0,nr=tr.length;wi<nr;wi++)Wt=tr[wi],Tt.addColorStop(Wt.stop,v(Wt.color));this.Ya=Tt,this.ja=null}switch(Ht){case Ue:Me.strokeStyle=Tt,Me.lineWidth=this.Ib,Me.lineCap=this.Ha,Me.lineJoin=this.Ia,Me.stroke(Ge);break;case He:Me.fillStyle=Tt,Me.fill(Ge,Mt)}}});const At=new Set;let qe=null,_n=[],ur=0,no=0;var Bs=f.CanvasRenderer=de.extend("Renderer",{__construct:function(Me){this.__parent.__construct.call(this),this.S=[1,0,0,1,0,0],this.C=Me.getContext("2d"),this.Va=Me,this.H=[]},save:function(){this.S.push(...this.S.slice(this.S.length-6)),this.H.push(this.C.save.bind(this.C))},restore:function(){const Me=this.S.length-6;if(6>Me)throw"restore() called without matching save().";this.S.splice(Me),this.H.push(this.C.restore.bind(this.C))},transform:function(Me,Ge,Mt,Ht,Tt,Ft){const Wt=this.S,Qt=Wt.length-6;Wt.splice(Qt,6,Wt[Qt]*Me+Wt[Qt+2]*Ge,Wt[Qt+1]*Me+Wt[Qt+3]*Ge,Wt[Qt]*Mt+Wt[Qt+2]*Ht,Wt[Qt+1]*Mt+Wt[Qt+3]*Ht,Wt[Qt]*Tt+Wt[Qt+2]*Ft+Wt[Qt+4],Wt[Qt+1]*Tt+Wt[Qt+3]*Ft+Wt[Qt+5]),this.H.push(this.C.transform.bind(this.C,Me,Ge,Mt,Ht,Tt,Ft))},rotate:function(Me){const Ge=Math.sin(Me);Me=Math.cos(Me),this.transform(Me,Ge,-Ge,Me,0,0)},_drawPath:function(Me,Ge){this.H.push(Ge.draw.bind(Ge,this.C,Me.T,Me.Wa===Xe?"evenodd":"nonzero"))},_drawRiveImage:function(Me,Ge,Mt,Ht){var Tt=Me.Fb;if(Tt){var Ft=this.C,Wt=p(Mt);this.H.push(function(){Ft.globalCompositeOperation=Wt,Ft.globalAlpha=Ht,Ft.drawImage(Tt,0,0),Ft.globalAlpha=1})}},_getMatrix:function(Me){const Ge=this.S,Mt=Ge.length-6;for(let Ht=0;6>Ht;++Ht)Me[Ht]=Ge[Mt+Ht]},_drawImageMesh:function(Me,Ge,Mt,Ht,Tt,Ft,Wt,Qt,Vi,tr,wi){Ge=this.C.canvas.width;var nr=this.C.canvas.height;const $_=tr-Qt,H_=wi-Vi;Qt=Math.max(Qt,0),Vi=Math.max(Vi,0),tr=Math.min(tr,Ge),wi=Math.min(wi,nr);const Yl=tr-Qt,Kl=wi-Vi;if(console.assert(Yl<=Math.min($_,Ge)),console.assert(Kl<=Math.min(H_,nr)),!(0>=Yl||0>=Kl)){tr=Yl<$_||Kl<H_,Ge=wi=1;var Vs=Math.ceil(Yl*wi),Us=Math.ceil(Kl*Ge);nr=k.hc(),Vs>nr&&(wi*=nr/Vs,Vs=nr),Us>nr&&(Ge*=nr/Us,Us=nr),qe||(qe=new f.DynamicRectanizer(nr),qe.reset(512,512)),nr=qe.addRect(Vs,Us),0>nr&&(E(),At.add(this),nr=qe.addRect(Vs,Us),console.assert(0<=nr));var N_=nr&65535,B_=nr>>16;_n.push({ha:this.S.slice(this.S.length-6),image:Me,Za:N_,$a:B_,ic:Qt,jc:Vi,Ac:Vs,kb:Us,Ba:wi,Ca:Ge,Ua:new Float32Array(Tt),Db:new Float32Array(Ft),indices:new Uint16Array(Wt),mc:tr,xb:Me.Ka<<1|(tr?1:0)}),ur+=Tt.length,no+=Wt.length;var Da=this.C,lk=p(Mt);this.H.push(function(){Da.save(),Da.resetTransform(),Da.globalCompositeOperation=lk,Da.globalAlpha=Ht;const V_=k.canvas();V_&&Da.drawImage(V_,N_,B_,Vs,Us,Qt,Vi,Yl,Kl),Da.restore()})}},_clipPath:function(Me){this.H.push(this.C.clip.bind(this.C,Me.T,Me.Wa===Xe?"evenodd":"nonzero"))},clear:function(){At.add(this),this.H.push(this.C.clearRect.bind(this.C,0,0,this.Va.width,this.Va.height))},flush:function(){},translate:function(Me,Ge){this.transform(1,0,0,1,Me,Ge)}});f.makeRenderer=function(Me){const Ge=new Bs(Me),Mt=Ge.C;return new Proxy(Ge,{get(Ht,Tt){if(typeof Ht[Tt]=="function")return function(...Ft){return Ht[Tt].apply(Ht,Ft)};if(typeof Mt[Tt]=="function"){if(-1<A.indexOf(Tt))throw Error("RiveException: Method call to '"+Tt+"()' is not allowed, as the renderer cannot immediately pass through the return                 values of any canvas 2d context methods.");return function(...Ft){Ge.H.push(Mt[Tt].bind(Mt,...Ft))}}return Ht[Tt]},set(Ht,Tt,Ft){if(Tt in Mt)return Ge.H.push(()=>{Mt[Tt]=Ft}),!0}})},f.decodeImage=function(Me,Ge){new $e({la:Ge}).decode(Me)},f.renderFactory={makeRenderPaint:function(){return new St},makeRenderPath:function(){return new Fe},makeRenderImage:function(){let Me=ro;return new $e({xa:()=>{Me.total++},la:()=>{if(Me.loaded++,Me.loaded===Me.total){const Ge=Me.ready;Ge&&(Ge(),Me.ready=null)}}})}};let $t=f.load,ro=null;f.load=function(Me,Ge,Mt=!0){const Ht=new f.FallbackFileAssetLoader;return Ge!==void 0&&Ht.addLoader(Ge),Mt&&(Ge=new f.CDNFileAssetLoader,Ht.addLoader(Ge)),new Promise(function(Tt){let Ft=null;ro={total:0,loaded:0,ready:function(){Tt(Ft)}},Ft=$t(Me,Ht),ro.total==0&&Tt(Ft)})};let ak=f.RendererWrapper.prototype.align;f.RendererWrapper.prototype.align=function(Me,Ge,Mt,Ht,Tt=1){ak.call(this,Me,Ge,Mt,Ht,Tt)},O=new b,f.requestAnimationFrame=O.requestAnimationFrame.bind(O),f.cancelAnimationFrame=O.cancelAnimationFrame.bind(O),f.enableFPSCounter=O.Rb.bind(O),f.disableFPSCounter=O.Ob,O.pb=E,f.resolveAnimationFrame=E,f.cleanup=function(){qe&&qe.delete()}};var C=Object.assign({},f),L="./this.program",M=typeof window=="object",$=typeof importScripts=="function",U="",ne,D;(M||$)&&($?U=self.location.href:typeof document<"u"&&document.currentScript&&(U=document.currentScript.src),l&&(U=l),U.indexOf("blob:")!==0?U=U.substr(0,U.replace(/[?#].*/,"").lastIndexOf("/")+1):U="",$&&(D=p=>{var v=new XMLHttpRequest;return v.open("GET",p,!1),v.responseType="arraybuffer",v.send(null),new Uint8Array(v.response)}),ne=(p,v,E)=>{var O=new XMLHttpRequest;O.open("GET",p,!0),O.responseType="arraybuffer",O.onload=()=>{O.status==200||O.status==0&&O.response?v(O.response):E()},O.onerror=E,O.send(null)});var Q=f.print||console.log.bind(console),N=f.printErr||console.error.bind(console);Object.assign(f,C),C=null,f.thisProgram&&(L=f.thisProgram);var W;f.wasmBinary&&(W=f.wasmBinary),f.noExitRuntime,typeof WebAssembly!="object"&&ee("no native wasm support detected");var V,B,oe=!1,se,q,be,Te,he,ge,Ae,ye;function ie(){var p=V.buffer;f.HEAP8=se=new Int8Array(p),f.HEAP16=be=new Int16Array(p),f.HEAP32=he=new Int32Array(p),f.HEAPU8=q=new Uint8Array(p),f.HEAPU16=Te=new Uint16Array(p),f.HEAPU32=ge=new Uint32Array(p),f.HEAPF32=Ae=new Float32Array(p),f.HEAPF64=ye=new Float64Array(p)}var le,pe=[],Se=[],Ie=[];function z(){var p=f.preRun.shift();pe.unshift(p)}var P=0,Y=null;function ee(p){throw f.onAbort&&f.onAbort(p),p="Aborted("+p+")",N(p),oe=!0,p=new WebAssembly.RuntimeError(p+". Build with -sASSERTIONS for more info."),g(p),p}function K(p){return p.startsWith("data:application/octet-stream;base64,")}var x;if(x="canvas_advanced.wasm",!K(x)){var G=x;x=f.locateFile?f.locateFile(G,U):U+G}function I(p){if(p==x&&W)return new Uint8Array(W);if(D)return D(p);throw"both async and sync fetching of the wasm failed"}function F(p){if(!W&&(M||$)){if(typeof fetch=="function"&&!p.startsWith("file://"))return fetch(p,{credentials:"same-origin"}).then(v=>{if(!v.ok)throw"failed to load wasm binary file at '"+p+"'";return v.arrayBuffer()}).catch(()=>I(p));if(ne)return new Promise((v,E)=>{ne(p,O=>v(new Uint8Array(O)),E)})}return Promise.resolve().then(()=>I(p))}function Z(p,v,E){return F(p).then(O=>WebAssembly.instantiate(O,v)).then(O=>O).then(E,O=>{N("failed to asynchronously prepare wasm: "+O),ee(O)})}function fe(p,v){var E=x;return W||typeof WebAssembly.instantiateStreaming!="function"||K(E)||E.startsWith("file://")||typeof fetch!="function"?Z(E,p,v):fetch(E,{credentials:"same-origin"}).then(O=>WebAssembly.instantiateStreaming(O,p).then(v,function(X){return N("wasm streaming compile failed: "+X),N("falling back to ArrayBuffer instantiation"),Z(E,p,v)}))}var ue,S,m={459036:(p,v,E,O,X)=>{if(typeof window>"u"||(window.AudioContext||window.webkitAudioContext)===void 0)return 0;if(typeof window.h>"u"){window.h={Aa:0},window.h.I={},window.h.I.ya=p,window.h.I.capture=v,window.h.I.La=E,window.h.ga={},window.h.ga.stopped=O,window.h.ga.yb=X;let te=window.h;te.D=[],te.yc=function(de){for(var ke=0;ke<te.D.length;++ke)if(te.D[ke]==null)return te.D[ke]=de,ke;return te.D.push(de),te.D.length-1},te.Cb=function(de){for(te.D[de]=null;0<te.D.length&&te.D[te.D.length-1]==null;)te.D.pop()},te.Sc=function(de){for(var ke=0;ke<te.D.length;++ke)if(te.D[ke]==de)return te.Cb(ke)},te.ra=function(de){return te.D[de]},te.Ta=["touchend","click"],te.unlock=function(){for(var de=0;de<te.D.length;++de){var ke=te.D[de];ke!=null&&ke.J!=null&&ke.state===te.ga.yb&&ke.J.resume().then(()=>{L_(ke.qb)},xe=>{console.error("Failed to resume audiocontext",xe)})}te.Ta.map(function(xe){document.removeEventListener(xe,te.unlock,!0)})},te.Ta.map(function(de){document.addEventListener(de,te.unlock,!0)})}return window.h.Aa+=1,1},461214:()=>{typeof window.h<"u"&&(window.h.Ta.map(function(p){document.removeEventListener(p,window.h.unlock,!0)}),--window.h.Aa,window.h.Aa===0&&delete window.h)},461518:()=>navigator.mediaDevices!==void 0&&navigator.mediaDevices.getUserMedia!==void 0,461622:()=>{try{var p=new(window.AudioContext||window.webkitAudioContext),v=p.sampleRate;return p.close(),v}catch{return 0}},461793:(p,v,E,O,X,te)=>{if(typeof window.h>"u")return-1;var de={},ke={};return p==window.h.I.ya&&E!=0&&(ke.sampleRate=E),de.J=new(window.AudioContext||window.webkitAudioContext)(ke),de.J.suspend(),de.state=window.h.ga.stopped,E=0,p!=window.h.I.ya&&(E=v),de.Z=de.J.createScriptProcessor(O,E,v),de.Z.onaudioprocess=function(xe){if((de.sa==null||de.sa.length==0)&&(de.sa=new Float32Array(Ae.buffer,X,O*v)),p==window.h.I.capture||p==window.h.I.La){for(var we=0;we<v;we+=1)for(var He=xe.inputBuffer.getChannelData(we),Ue=de.sa,Xe=0;Xe<O;Xe+=1)Ue[Xe*v+we]=He[Xe];O_(te,O,X)}if(p==window.h.I.ya||p==window.h.I.La)for(M_(te,O,X),we=0;we<xe.outputBuffer.numberOfChannels;++we)for(He=xe.outputBuffer.getChannelData(we),Ue=de.sa,Xe=0;Xe<O;Xe+=1)He[Xe]=Ue[Xe*v+we];else for(we=0;we<xe.outputBuffer.numberOfChannels;++we)xe.outputBuffer.getChannelData(we).fill(0)},p!=window.h.I.capture&&p!=window.h.I.La||navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(function(xe){de.Da=de.J.createMediaStreamSource(xe),de.Da.connect(de.Z),de.Z.connect(de.J.destination)}).catch(function(xe){""+xe}),p==window.h.I.ya&&de.Z.connect(de.J.destination),de.qb=te,window.h.yc(de)},464670:p=>window.h.ra(p).J.sampleRate,464743:p=>{p=window.h.ra(p),p.Z!==void 0&&(p.Z.onaudioprocess=function(){},p.Z.disconnect(),p.Z=void 0),p.Da!==void 0&&(p.Da.disconnect(),p.Da=void 0),p.J.close(),p.J=void 0,p.qb=void 0},465143:p=>{window.h.Cb(p)},465193:p=>{p=window.h.ra(p),p.J.resume(),p.state=window.h.ga.yb},465332:p=>{p=window.h.ra(p),p.J.suspend(),p.state=window.h.ga.stopped}},T=p=>{for(;0<p.length;)p.shift()(f)},H=(p,v)=>{for(var E=0,O=p.length-1;0<=O;O--){var X=p[O];X==="."?p.splice(O,1):X===".."?(p.splice(O,1),E++):E&&(p.splice(O,1),E--)}if(v)for(;E;E--)p.unshift("..");return p},re=p=>{var v=p.charAt(0)==="/",E=p.substr(-1)==="/";return(p=H(p.split("/").filter(O=>!!O),!v).join("/"))||v||(p="."),p&&E&&(p+="/"),(v?"/":"")+p},ce=p=>{var v=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(p).slice(1);return p=v[0],v=v[1],!p&&!v?".":(v&&(v=v.substr(0,v.length-1)),p+v)},Ee=p=>{if(p==="/")return"/";p=re(p),p=p.replace(/\/$/,"");var v=p.lastIndexOf("/");return v===-1?p:p.substr(v+1)},De=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return p=>crypto.getRandomValues(p);ee("initRandomDevice")},Pe=p=>(Pe=De())(p);function Be(){for(var p="",v=!1,E=arguments.length-1;-1<=E&&!v;E--){if(v=0<=E?arguments[E]:"/",typeof v!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!v)return"";p=v+"/"+p,v=v.charAt(0)==="/"}return p=H(p.split("/").filter(O=>!!O),!v).join("/"),(v?"/":"")+p||"."}var Qe=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,tt=(p,v,E)=>{var O=v+E;for(E=v;p[E]&&!(E>=O);)++E;if(16<E-v&&p.buffer&&Qe)return Qe.decode(p.subarray(v,E));for(O="";v<E;){var X=p[v++];if(X&128){var te=p[v++]&63;if((X&224)==192)O+=String.fromCharCode((X&31)<<6|te);else{var de=p[v++]&63;X=(X&240)==224?(X&15)<<12|te<<6|de:(X&7)<<18|te<<12|de<<6|p[v++]&63,65536>X?O+=String.fromCharCode(X):(X-=65536,O+=String.fromCharCode(55296|X>>10,56320|X&1023))}}else O+=String.fromCharCode(X)}return O},pt=[],mt=p=>{for(var v=0,E=0;E<p.length;++E){var O=p.charCodeAt(E);127>=O?v++:2047>=O?v+=2:55296<=O&&57343>=O?(v+=4,++E):v+=3}return v},rn=(p,v,E,O)=>{if(!(0<O))return 0;var X=E;O=E+O-1;for(var te=0;te<p.length;++te){var de=p.charCodeAt(te);if(55296<=de&&57343>=de){var ke=p.charCodeAt(++te);de=65536+((de&1023)<<10)|ke&1023}if(127>=de){if(E>=O)break;v[E++]=de}else{if(2047>=de){if(E+1>=O)break;v[E++]=192|de>>6}else{if(65535>=de){if(E+2>=O)break;v[E++]=224|de>>12}else{if(E+3>=O)break;v[E++]=240|de>>18,v[E++]=128|de>>12&63}v[E++]=128|de>>6&63}v[E++]=128|de&63}}return v[E]=0,E-X};function nt(p,v){var E=Array(mt(p)+1);return p=rn(p,E,0,E.length),v&&(E.length=p),E}var Ut=[];function kt(p,v){Ut[p]={input:[],F:[],V:v},Nn(p,dt)}var dt={open:function(p){var v=Ut[p.node.za];if(!v)throw new Le(43);p.s=v,p.seekable=!1},close:function(p){p.s.V.qa(p.s)},qa:function(p){p.s.V.qa(p.s)},read:function(p,v,E,O){if(!p.s||!p.s.V.jb)throw new Le(60);for(var X=0,te=0;te<O;te++){try{var de=p.s.V.jb(p.s)}catch{throw new Le(29)}if(de===void 0&&X===0)throw new Le(6);if(de==null)break;X++,v[E+te]=de}return X&&(p.node.timestamp=Date.now()),X},write:function(p,v,E,O){if(!p.s||!p.s.V.Oa)throw new Le(60);try{for(var X=0;X<O;X++)p.s.V.Oa(p.s,v[E+X])}catch{throw new Le(29)}return O&&(p.node.timestamp=Date.now()),X}},jt={jb:function(){e:{if(!pt.length){var p=null;if(typeof window<"u"&&typeof window.prompt=="function"?(p=window.prompt("Input: "),p!==null&&(p+=`
`)):typeof readline=="function"&&(p=readline(),p!==null&&(p+=`
`)),!p){p=null;break e}pt=nt(p,!0)}p=pt.shift()}return p},Oa:function(p,v){v===null||v===10?(Q(tt(p.F,0)),p.F=[]):v!=0&&p.F.push(v)},qa:function(p){p.F&&0<p.F.length&&(Q(tt(p.F,0)),p.F=[])},bc:function(){return{Fc:25856,Hc:5,Ec:191,Gc:35387,Dc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},cc:function(){return 0},dc:function(){return[24,80]}},Cn={Oa:function(p,v){v===null||v===10?(N(tt(p.F,0)),p.F=[]):v!=0&&p.F.push(v)},qa:function(p){p.F&&0<p.F.length&&(N(tt(p.F,0)),p.F=[])}};function Pn(p,v){var E=p.j?p.j.length:0;E>=v||(v=Math.max(v,E*(1048576>E?2:1.125)>>>0),E!=0&&(v=Math.max(v,256)),E=p.j,p.j=new Uint8Array(v),0<p.v&&p.j.set(E.subarray(0,p.v),0))}var Ke={O:null,U(){return Ke.createNode(null,"/",16895,0)},createNode(p,v,E,O){if((E&61440)===24576||(E&61440)===4096)throw new Le(63);return Ke.O||(Ke.O={dir:{node:{Y:Ke.l.Y,P:Ke.l.P,ka:Ke.l.ka,va:Ke.l.va,vb:Ke.l.vb,Bb:Ke.l.Bb,wb:Ke.l.wb,tb:Ke.l.tb,Ea:Ke.l.Ea},stream:{ba:Ke.m.ba}},file:{node:{Y:Ke.l.Y,P:Ke.l.P},stream:{ba:Ke.m.ba,read:Ke.m.read,write:Ke.m.write,pa:Ke.m.pa,mb:Ke.m.mb,ob:Ke.m.ob}},link:{node:{Y:Ke.l.Y,P:Ke.l.P,ma:Ke.l.ma},stream:{}},ab:{node:{Y:Ke.l.Y,P:Ke.l.P},stream:Kn}}),E=ln(p,v,E,O),(E.mode&61440)===16384?(E.l=Ke.O.dir.node,E.m=Ke.O.dir.stream,E.j={}):(E.mode&61440)===32768?(E.l=Ke.O.file.node,E.m=Ke.O.file.stream,E.v=0,E.j=null):(E.mode&61440)===40960?(E.l=Ke.O.link.node,E.m=Ke.O.link.stream):(E.mode&61440)===8192&&(E.l=Ke.O.ab.node,E.m=Ke.O.ab.stream),E.timestamp=Date.now(),p&&(p.j[v]=E,p.timestamp=E.timestamp),E},Kc(p){return p.j?p.j.subarray?p.j.subarray(0,p.v):new Uint8Array(p.j):new Uint8Array(0)},l:{Y(p){var v={};return v.Jc=(p.mode&61440)===8192?p.id:1,v.Mc=p.id,v.mode=p.mode,v.Oc=1,v.uid=0,v.Lc=0,v.za=p.za,(p.mode&61440)===16384?v.size=4096:(p.mode&61440)===32768?v.size=p.v:(p.mode&61440)===40960?v.size=p.link.length:v.size=0,v.Bc=new Date(p.timestamp),v.Nc=new Date(p.timestamp),v.Ic=new Date(p.timestamp),v.Jb=4096,v.Cc=Math.ceil(v.size/v.Jb),v},P(p,v){if(v.mode!==void 0&&(p.mode=v.mode),v.timestamp!==void 0&&(p.timestamp=v.timestamp),v.size!==void 0&&(v=v.size,p.v!=v))if(v==0)p.j=null,p.v=0;else{var E=p.j;p.j=new Uint8Array(v),E&&p.j.set(E.subarray(0,Math.min(v,p.v))),p.v=v}},ka(){throw In[44]},va(p,v,E,O){return Ke.createNode(p,v,E,O)},vb(p,v,E){if((p.mode&61440)===16384){try{var O=an(v,E)}catch{}if(O)for(var X in O.j)throw new Le(55)}delete p.parent.j[p.name],p.parent.timestamp=Date.now(),p.name=E,v.j[E]=p,v.timestamp=p.parent.timestamp,p.parent=v},Bb(p,v){delete p.j[v],p.timestamp=Date.now()},wb(p,v){var E=an(p,v),O;for(O in E.j)throw new Le(55);delete p.j[v],p.timestamp=Date.now()},tb(p){var v=[".",".."],E;for(E in p.j)p.j.hasOwnProperty(E)&&v.push(E);return v},Ea(p,v,E){return p=Ke.createNode(p,v,41471,0),p.link=E,p},ma(p){if((p.mode&61440)!==40960)throw new Le(28);return p.link}},m:{read(p,v,E,O,X){var te=p.node.j;if(X>=p.node.v)return 0;if(p=Math.min(p.node.v-X,O),8<p&&te.subarray)v.set(te.subarray(X,X+p),E);else for(O=0;O<p;O++)v[E+O]=te[X+O];return p},write(p,v,E,O,X,te){if(v.buffer===se.buffer&&(te=!1),!O)return 0;if(p=p.node,p.timestamp=Date.now(),v.subarray&&(!p.j||p.j.subarray)){if(te)return p.j=v.subarray(E,E+O),p.v=O;if(p.v===0&&X===0)return p.j=v.slice(E,E+O),p.v=O;if(X+O<=p.v)return p.j.set(v.subarray(E,E+O),X),O}if(Pn(p,X+O),p.j.subarray&&v.subarray)p.j.set(v.subarray(E,E+O),X);else for(te=0;te<O;te++)p.j[X+te]=v[E+te];return p.v=Math.max(p.v,X+O),O},ba(p,v,E){if(E===1?v+=p.position:E===2&&(p.node.mode&61440)===32768&&(v+=p.node.v),0>v)throw new Le(28);return v},pa(p,v,E){Pn(p.node,v+E),p.node.v=Math.max(p.node.v,v+E)},mb(p,v,E,O,X){if((p.node.mode&61440)!==32768)throw new Le(43);if(p=p.node.j,X&2||p.buffer!==se.buffer){if((0<E||E+v<p.length)&&(p.subarray?p=p.subarray(E,E+v):p=Array.prototype.slice.call(p,E,E+v)),E=!0,ee(),v=void 0,!v)throw new Le(48);se.set(p,v)}else E=!1,v=p.byteOffset;return{o:v,M:E}},ob(p,v,E,O){return Ke.m.write(p,v,0,O,E,!1),0}}};function ht(p,v){var E=0;return p&&(E|=365),v&&(E|=146),E}var rt=null,ot={},Ot=[],ze=1,ct=null,it=!0,Le=null,In={},vt=(p,v={})=>{if(p=Be(p),!p)return{path:"",node:null};if(v=Object.assign({hb:!0,Qa:0},v),8<v.Qa)throw new Le(32);p=p.split("/").filter(de=>!!de);for(var E=rt,O="/",X=0;X<p.length;X++){var te=X===p.length-1;if(te&&v.parent)break;if(E=an(E,p[X]),O=re(O+"/"+p[X]),E.wa&&(!te||te&&v.hb)&&(E=E.wa.root),!te||v.gb){for(te=0;(E.mode&61440)===40960;)if(E=yi(O),O=Be(ce(O),E),E=vt(O,{Qa:v.Qa+1}).node,40<te++)throw new Le(32)}}return{path:O,node:E}},yn=p=>{for(var v;;){if(p===p.parent)return p=p.U.nb,v?p[p.length-1]!=="/"?`${p}/${v}`:p+v:p;v=v?`${p.name}/${v}`:p.name,p=p.parent}},Gn=(p,v)=>{for(var E=0,O=0;O<v.length;O++)E=(E<<5)-E+v.charCodeAt(O)|0;return(p+E>>>0)%ct.length},an=(p,v)=>{var E;if(E=(E=gr(p,"x"))?E:p.l.ka?0:2)throw new Le(E,p);for(E=ct[Gn(p.id,v)];E;E=E.lc){var O=E.name;if(E.parent.id===p.id&&O===v)return E}return p.l.ka(p,v)},ln=(p,v,E,O)=>(p=new x_(p,v,E,O),v=Gn(p.parent.id,p.name),p.lc=ct[v],ct[v]=p),Xt=p=>{var v=["r","w","rw"][p&3];return p&512&&(v+="w"),v},gr=(p,v)=>{if(it)return 0;if(!v.includes("r")||p.mode&292){if(v.includes("w")&&!(p.mode&146)||v.includes("x")&&!(p.mode&73))return 2}else return 2;return 0},hn=(p,v)=>{try{return an(p,v),20}catch{}return gr(p,"wx")},Pr=()=>{for(var p=0;4096>=p;p++)if(!Ot[p])return p;throw new Le(33)},Yn=p=>{if(p=Ot[p],!p)throw new Le(8);return p},Hn=(p,v=-1)=>(Vl||(Vl=function(){this.h={}},Vl.prototype={},Object.defineProperties(Vl.prototype,{object:{get(){return this.node},set(E){this.node=E}},flags:{get(){return this.h.flags},set(E){this.h.flags=E}},position:{get(){return this.h.position},set(E){this.h.position=E}}})),p=Object.assign(new Vl,p),v==-1&&(v=Pr()),p.X=v,Ot[v]=p),Kn={open:p=>{p.m=ot[p.node.za].m,p.m.open&&p.m.open(p)},ba:()=>{throw new Le(70)}},Nn=(p,v)=>{ot[p]={m:v}},eo=(p,v)=>{var E=v==="/",O=!v;if(E&&rt)throw new Le(10);if(!E&&!O){var X=vt(v,{hb:!1});if(v=X.path,X=X.node,X.wa)throw new Le(10);if((X.mode&61440)!==16384)throw new Le(54)}v={type:p,Qc:{},nb:v,kc:[]},p=p.U(v),p.U=v,v.root=p,E?rt=p:X&&(X.wa=v,X.U&&X.U.kc.push(v))},_r=(p,v,E)=>{var O=vt(p,{parent:!0}).node;if(p=Ee(p),!p||p==="."||p==="..")throw new Le(28);var X=hn(O,p);if(X)throw new Le(X);if(!O.l.va)throw new Le(63);return O.l.va(O,p,v,E)},Fn=(p,v,E)=>{typeof E>"u"&&(E=v,v=438),_r(p,v|8192,E)},Sn=(p,v)=>{if(!Be(p))throw new Le(44);var E=vt(v,{parent:!0}).node;if(!E)throw new Le(44);v=Ee(v);var O=hn(E,v);if(O)throw new Le(O);if(!E.l.Ea)throw new Le(63);E.l.Ea(E,v,p)},yi=p=>{if(p=vt(p).node,!p)throw new Le(44);if(!p.l.ma)throw new Le(28);return Be(yn(p.parent),p.l.ma(p))},ts=(p,v,E)=>{if(p==="")throw new Le(44);if(typeof v=="string"){var O={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[v];if(typeof O>"u")throw Error(`Unknown file open mode: ${v}`);v=O}if(E=v&64?(typeof E>"u"?438:E)&4095|32768:0,typeof p=="object")var X=p;else{p=re(p);try{X=vt(p,{gb:!(v&131072)}).node}catch{}}if(O=!1,v&64)if(X){if(v&128)throw new Le(20)}else X=_r(p,E,0),O=!0;if(!X)throw new Le(44);if((X.mode&61440)===8192&&(v&=-513),v&65536&&(X.mode&61440)!==16384)throw new Le(54);if(!O&&(E=X?(X.mode&61440)===40960?32:(X.mode&61440)===16384&&(Xt(v)!=="r"||v&512)?31:gr(X,Xt(v)):44))throw new Le(E);if(v&512&&!O){if(E=X,E=typeof E=="string"?vt(E,{gb:!0}).node:E,!E.l.P)throw new Le(63);if((E.mode&61440)===16384)throw new Le(31);if((E.mode&61440)!==32768)throw new Le(28);if(O=gr(E,"w"))throw new Le(O);E.l.P(E,{size:0,timestamp:Date.now()})}return v&=-131713,X=Hn({node:X,path:yn(X),flags:v,seekable:!0,position:0,m:X.m,zc:[],error:!1}),X.m.open&&X.m.open(X),!f.logReadFiles||v&1||(Dc||(Dc={}),p in Dc||(Dc[p]=1)),X},Bl=(p,v,E)=>{if(p.X===null)throw new Le(8);if(!p.seekable||!p.m.ba)throw new Le(70);if(E!=0&&E!=1&&E!=2)throw new Le(28);p.position=p.m.ba(p,v,E),p.zc=[]},ns=()=>{Le||(Le=function(p,v){this.name="ErrnoError",this.node=v,this.pc=function(E){this.aa=E},this.pc(p),this.message="FS error"},Le.prototype=Error(),Le.prototype.constructor=Le,[44].forEach(p=>{In[p]=new Le(p),In[p].stack="<generic error, no stack>"}))},ni,Hi=(p,v,E)=>{p=re("/dev/"+p);var O=ht(!!v,!!E);rs||(rs=64);var X=rs++<<8|0;Nn(X,{open:te=>{te.seekable=!1},close:()=>{E&&E.buffer&&E.buffer.length&&E(10)},read:(te,de,ke,xe)=>{for(var we=0,He=0;He<xe;He++){try{var Ue=v()}catch{throw new Le(29)}if(Ue===void 0&&we===0)throw new Le(6);if(Ue==null)break;we++,de[ke+He]=Ue}return we&&(te.node.timestamp=Date.now()),we},write:(te,de,ke,xe)=>{for(var we=0;we<xe;we++)try{E(de[ke+we])}catch{throw new Le(29)}return xe&&(te.node.timestamp=Date.now()),we}}),Fn(p,O,X)},rs,vr={},Vl,Dc,Ul=void 0;function To(){return Ul+=4,he[Ul-4>>2]}function u_(p){if(p===void 0)return"_unknown";p=p.replace(/[^a-zA-Z0-9_]/g,"$");var v=p.charCodeAt(0);return 48<=v&&57>=v?`_${p}`:p}function $c(p,v){return p=u_(p),{[p]:function(){return v.apply(this,arguments)}}[p]}function c_(){this.M=[void 0],this.ib=[]}var bi=new c_,Oa=void 0;function wt(p){throw new Oa(p)}var Ni=p=>(p||wt("Cannot use deleted val. handle = "+p),bi.get(p).value),Bi=p=>{switch(p){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return bi.pa({ub:1,value:p})}};function f_(p){var v=Error,E=$c(p,function(O){this.name=p,this.message=O,O=Error(O).stack,O!==void 0&&(this.stack=this.toString()+`
`+O.replace(/^Error(:[^\n]*)?\n/,""))});return E.prototype=Object.create(v.prototype),E.prototype.constructor=E,E.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},E}var d_=void 0,h_=void 0;function Ln(p){for(var v="";q[p];)v+=h_[q[p++]];return v}var jl=[];function _h(){for(;jl.length;){var p=jl.pop();p.g.fa=!1,p.delete()}}var Wl=void 0,Eo={};function vh(p,v){for(v===void 0&&wt("ptr should not be undefined");p.A;)v=p.na(v),p=p.A;return v}var Ns={};function p_(p){p=F_(p);var v=Ln(p);return Ro(p),v}function zl(p,v){var E=Ns[p];return E===void 0&&wt(v+" has unknown type "+p_(p)),E}function Hc(){}var yh=!1;function m_(p){--p.count.value,p.count.value===0&&(p.G?p.L.W(p.G):p.u.i.W(p.o))}function g_(p,v,E){return v===E?p:E.A===void 0?null:(p=g_(p,v,E.A),p===null?null:E.Pb(p))}var __={};function VE(p,v){return v=vh(p,v),Eo[v]}var v_=void 0;function Nc(p){throw new v_(p)}function Bc(p,v){return v.u&&v.o||Nc("makeClassHandle requires ptr and ptrType"),!!v.L!=!!v.G&&Nc("Both smartPtrType and smartPtr must be specified"),v.count={value:1},Ma(Object.create(p,{g:{value:v}}))}function Ma(p){return typeof FinalizationRegistry>"u"?(Ma=v=>v,p):(yh=new FinalizationRegistry(v=>{m_(v.g)}),Ma=v=>{var E=v.g;return E.G&&yh.register(v,{g:E},v),v},Hc=v=>{yh.unregister(v)},Ma(p))}var Vc={};function ql(p){for(;p.length;){var v=p.pop();p.pop()(v)}}function Gl(p){return this.fromWireType(he[p>>2])}var Fa={},Uc={};function ri(p,v,E){function O(ke){ke=E(ke),ke.length!==p.length&&Nc("Mismatched type converter count");for(var xe=0;xe<p.length;++xe)to(p[xe],ke[xe])}p.forEach(function(ke){Uc[ke]=v});var X=Array(v.length),te=[],de=0;v.forEach((ke,xe)=>{Ns.hasOwnProperty(ke)?X[xe]=Ns[ke]:(te.push(ke),Fa.hasOwnProperty(ke)||(Fa[ke]=[]),Fa[ke].push(()=>{X[xe]=Ns[ke],++de,de===te.length&&O(X)}))}),te.length===0&&O(X)}function jc(p){switch(p){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError(`Unknown type size: ${p}`)}}function UE(p,v,E={}){var O=v.name;if(p||wt(`type "${O}" must have a positive integer typeid pointer`),Ns.hasOwnProperty(p)){if(E.$b)return;wt(`Cannot register type '${O}' twice`)}Ns[p]=v,delete Uc[p],Fa.hasOwnProperty(p)&&(v=Fa[p],delete Fa[p],v.forEach(X=>X()))}function to(p,v,E={}){if(!("argPackAdvance"in v))throw new TypeError("registerType registeredInstance requires argPackAdvance");UE(p,v,E)}function bh(p){wt(p.g.u.i.name+" instance already deleted")}function is(){}function wh(p,v,E){if(p[v].B===void 0){var O=p[v];p[v]=function(){return p[v].B.hasOwnProperty(arguments.length)||wt(`Function '${E}' called with an invalid number of arguments (${arguments.length}) - expects one of (${p[v].B})!`),p[v].B[arguments.length].apply(this,arguments)},p[v].B=[],p[v].B[O.ea]=O}}function Sh(p,v,E){f.hasOwnProperty(p)?((E===void 0||f[p].B!==void 0&&f[p].B[E]!==void 0)&&wt(`Cannot register public name '${p}' twice`),wh(f,p,p),f.hasOwnProperty(E)&&wt(`Cannot register multiple overloads of a function with the same number of arguments (${E})!`),f[p].B[E]=v):(f[p]=v,E!==void 0&&(f[p].Pc=E))}function jE(p,v,E,O,X,te,de,ke){this.name=p,this.constructor=v,this.N=E,this.W=O,this.A=X,this.Ub=te,this.na=de,this.Pb=ke,this.rb=[]}function Wc(p,v,E){for(;v!==E;)v.na||wt(`Expected null or instance of ${E.name}, got an instance of ${v.name}`),p=v.na(p),v=v.A;return p}function WE(p,v){return v===null?(this.Na&&wt(`null is not a valid ${this.name}`),0):(v.g||wt(`Cannot pass "${Eh(v)}" as a ${this.name}`),v.g.o||wt(`Cannot pass deleted object as a pointer of type ${this.name}`),Wc(v.g.o,v.g.u.i,this.i))}function zE(p,v){if(v===null){if(this.Na&&wt(`null is not a valid ${this.name}`),this.ua){var E=this.Pa();return p!==null&&p.push(this.W,E),E}return 0}if(v.g||wt(`Cannot pass "${Eh(v)}" as a ${this.name}`),v.g.o||wt(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.ta&&v.g.u.ta&&wt(`Cannot convert argument of type ${v.g.L?v.g.L.name:v.g.u.name} to parameter type ${this.name}`),E=Wc(v.g.o,v.g.u.i,this.i),this.ua)switch(v.g.G===void 0&&wt("Passing raw pointer to smart pointer is illegal"),this.tc){case 0:v.g.L===this?E=v.g.G:wt(`Cannot convert argument of type ${v.g.L?v.g.L.name:v.g.u.name} to parameter type ${this.name}`);break;case 1:E=v.g.G;break;case 2:if(v.g.L===this)E=v.g.G;else{var O=v.clone();E=this.oc(E,Bi(function(){O.delete()})),p!==null&&p.push(this.W,E)}break;default:wt("Unsupporting sharing policy")}return E}function qE(p,v){return v===null?(this.Na&&wt(`null is not a valid ${this.name}`),0):(v.g||wt(`Cannot pass "${Eh(v)}" as a ${this.name}`),v.g.o||wt(`Cannot pass deleted object as a pointer of type ${this.name}`),v.g.u.ta&&wt(`Cannot convert argument of type ${v.g.u.name} to parameter type ${this.name}`),Wc(v.g.o,v.g.u.i,this.i))}function ko(p,v,E,O){this.name=p,this.i=v,this.Na=E,this.ta=O,this.ua=!1,this.W=this.oc=this.Pa=this.sb=this.tc=this.nc=void 0,v.A!==void 0?this.toWireType=zE:(this.toWireType=O?WE:qE,this.K=null)}function y_(p,v,E){f.hasOwnProperty(p)||Nc("Replacing nonexistant public symbol"),f[p].B!==void 0&&E!==void 0?f[p].B[E]=v:(f[p]=v,f[p].ea=E)}var zc=[],b_=p=>{var v=zc[p];return v||(p>=zc.length&&(zc.length=p+1),zc[p]=v=le.get(p)),v},GE=(p,v)=>{var E=[];return function(){if(E.length=0,Object.assign(E,arguments),p.includes("j")){var O=f["dynCall_"+p];O=E&&E.length?O.apply(null,[v].concat(E)):O.call(null,v)}else O=b_(v).apply(null,E);return O}};function yr(p,v){p=Ln(p);var E=p.includes("j")?GE(p,v):b_(v);return typeof E!="function"&&wt(`unknown function pointer with signature ${p}: ${v}`),E}var w_=void 0;function Ao(p,v){function E(te){X[te]||Ns[te]||(Uc[te]?Uc[te].forEach(E):(O.push(te),X[te]=!0))}var O=[],X={};throw v.forEach(E),new w_(`${p}: `+O.map(p_).join([", "]))}function qc(p,v,E,O,X){var te=v.length;2>te&&wt("argTypes array size mismatch! Must at least get return value and 'this' types!");var de=v[1]!==null&&E!==null,ke=!1;for(E=1;E<v.length;++E)if(v[E]!==null&&v[E].K===void 0){ke=!0;break}var xe=v[0].name!=="void",we=te-2,He=Array(we),Ue=[],Xe=[];return function(){if(arguments.length!==we&&wt(`function ${p} called with ${arguments.length} arguments, expected ${we} args!`),Xe.length=0,Ue.length=de?2:1,Ue[0]=X,de){var ve=v[1].toWireType(Xe,this);Ue[1]=ve}for(var $e=0;$e<we;++$e)He[$e]=v[$e+2].toWireType(Xe,arguments[$e]),Ue.push(He[$e]);if($e=O.apply(null,Ue),ke)ql(Xe);else for(var Fe=de?1:2;Fe<v.length;Fe++){var St=Fe===1?ve:He[Fe-2];v[Fe].K!==null&&v[Fe].K(St)}return ve=xe?v[0].fromWireType($e):void 0,ve}}function Gc(p,v){for(var E=[],O=0;O<p;O++)E.push(ge[v+4*O>>2]);return E}function S_(p,v,E){return p instanceof Object||wt(`${E} with invalid "this": ${p}`),p instanceof v.i.constructor||wt(`${E} incompatible with "this" of type ${p.constructor.name}`),p.g.o||wt(`cannot call emscripten binding method ${E} on deleted object`),Wc(p.g.o,p.g.u.i,v.i)}function Th(p){p>=bi.h&&--bi.get(p).ub===0&&bi.Zb(p)}function YE(p,v,E){switch(v){case 0:return function(O){return this.fromWireType((E?se:q)[O])};case 1:return function(O){return this.fromWireType((E?be:Te)[O>>1])};case 2:return function(O){return this.fromWireType((E?he:ge)[O>>2])};default:throw new TypeError("Unknown integer type: "+p)}}function Eh(p){if(p===null)return"null";var v=typeof p;return v==="object"||v==="array"||v==="function"?p.toString():""+p}function KE(p,v){switch(v){case 2:return function(E){return this.fromWireType(Ae[E>>2])};case 3:return function(E){return this.fromWireType(ye[E>>3])};default:throw new TypeError("Unknown float type: "+p)}}function XE(p,v,E){switch(v){case 0:return E?function(O){return se[O]}:function(O){return q[O]};case 1:return E?function(O){return be[O>>1]}:function(O){return Te[O>>1]};case 2:return E?function(O){return he[O>>2]}:function(O){return ge[O>>2]};default:throw new TypeError("Unknown integer type: "+p)}}var T_=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,QE=(p,v)=>{for(var E=p>>1,O=E+v/2;!(E>=O)&&Te[E];)++E;if(E<<=1,32<E-p&&T_)return T_.decode(q.subarray(p,E));for(E="",O=0;!(O>=v/2);++O){var X=be[p+2*O>>1];if(X==0)break;E+=String.fromCharCode(X)}return E},JE=(p,v,E)=>{if(E===void 0&&(E=2147483647),2>E)return 0;E-=2;var O=v;E=E<2*p.length?E/2:p.length;for(var X=0;X<E;++X)be[v>>1]=p.charCodeAt(X),v+=2;return be[v>>1]=0,v-O},ZE=p=>2*p.length,ek=(p,v)=>{for(var E=0,O="";!(E>=v/4);){var X=he[p+4*E>>2];if(X==0)break;++E,65536<=X?(X-=65536,O+=String.fromCharCode(55296|X>>10,56320|X&1023)):O+=String.fromCharCode(X)}return O},tk=(p,v,E)=>{if(E===void 0&&(E=2147483647),4>E)return 0;var O=v;E=O+E-4;for(var X=0;X<p.length;++X){var te=p.charCodeAt(X);if(55296<=te&&57343>=te){var de=p.charCodeAt(++X);te=65536+((te&1023)<<10)|de&1023}if(he[v>>2]=te,v+=4,v+4>E)break}return he[v>>2]=0,v-O},nk=p=>{for(var v=0,E=0;E<p.length;++E){var O=p.charCodeAt(E);55296<=O&&57343>=O&&++E,v+=4}return v},rk={};function Yc(p){var v=rk[p];return v===void 0?Ln(p):v}var Kc=[];function ik(p){var v=Kc.length;return Kc.push(p),v}function ok(p,v){for(var E=Array(p),O=0;O<p;++O)E[O]=zl(ge[v+4*O>>2],"parameter "+O);return E}var E_=[],kh=[],Ah={},k_=()=>{if(!Rh){var p={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:L||"./this.program"},v;for(v in Ah)Ah[v]===void 0?delete p[v]:p[v]=Ah[v];var E=[];for(v in p)E.push(`${v}=${p[v]}`);Rh=E}return Rh},Rh,Xc=p=>p%4===0&&(p%100!==0||p%400===0),A_=[31,29,31,30,31,30,31,31,30,31,30,31],R_=[31,28,31,30,31,30,31,31,30,31,30,31],sk=(p,v,E,O)=>{function X(ve,$e,Fe){for(ve=typeof ve=="number"?ve.toString():ve||"";ve.length<$e;)ve=Fe[0]+ve;return ve}function te(ve,$e){return X(ve,$e,"0")}function de(ve,$e){function Fe(At){return 0>At?-1:0<At?1:0}var St;return(St=Fe(ve.getFullYear()-$e.getFullYear()))===0&&(St=Fe(ve.getMonth()-$e.getMonth()))===0&&(St=Fe(ve.getDate()-$e.getDate())),St}function ke(ve){switch(ve.getDay()){case 0:return new Date(ve.getFullYear()-1,11,29);case 1:return ve;case 2:return new Date(ve.getFullYear(),0,3);case 3:return new Date(ve.getFullYear(),0,2);case 4:return new Date(ve.getFullYear(),0,1);case 5:return new Date(ve.getFullYear()-1,11,31);case 6:return new Date(ve.getFullYear()-1,11,30)}}function xe(ve){var $e=ve.ca;for(ve=new Date(new Date(ve.da+1900,0,1).getTime());0<$e;){var Fe=ve.getMonth(),St=(Xc(ve.getFullYear())?A_:R_)[Fe];if($e>St-ve.getDate())$e-=St-ve.getDate()+1,ve.setDate(1),11>Fe?ve.setMonth(Fe+1):(ve.setMonth(0),ve.setFullYear(ve.getFullYear()+1));else{ve.setDate(ve.getDate()+$e);break}}return Fe=new Date(ve.getFullYear()+1,0,4),$e=ke(new Date(ve.getFullYear(),0,4)),Fe=ke(Fe),0>=de($e,ve)?0>=de(Fe,ve)?ve.getFullYear()+1:ve.getFullYear():ve.getFullYear()-1}var we=he[O+40>>2];O={wc:he[O>>2],vc:he[O+4>>2],Fa:he[O+8>>2],Sa:he[O+12>>2],Ga:he[O+16>>2],da:he[O+20>>2],R:he[O+24>>2],ca:he[O+28>>2],Rc:he[O+32>>2],uc:he[O+36>>2],xc:we&&we?tt(q,we):""},E=E?tt(q,E):"",we={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var He in we)E=E.replace(new RegExp(He,"g"),we[He]);var Ue="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Xe="January February March April May June July August September October November December".split(" ");we={"%a":ve=>Ue[ve.R].substring(0,3),"%A":ve=>Ue[ve.R],"%b":ve=>Xe[ve.Ga].substring(0,3),"%B":ve=>Xe[ve.Ga],"%C":ve=>te((ve.da+1900)/100|0,2),"%d":ve=>te(ve.Sa,2),"%e":ve=>X(ve.Sa,2," "),"%g":ve=>xe(ve).toString().substring(2),"%G":ve=>xe(ve),"%H":ve=>te(ve.Fa,2),"%I":ve=>(ve=ve.Fa,ve==0?ve=12:12<ve&&(ve-=12),te(ve,2)),"%j":ve=>{for(var $e=0,Fe=0;Fe<=ve.Ga-1;$e+=(Xc(ve.da+1900)?A_:R_)[Fe++]);return te(ve.Sa+$e,3)},"%m":ve=>te(ve.Ga+1,2),"%M":ve=>te(ve.vc,2),"%n":()=>`
`,"%p":ve=>0<=ve.Fa&&12>ve.Fa?"AM":"PM","%S":ve=>te(ve.wc,2),"%t":()=>"	","%u":ve=>ve.R||7,"%U":ve=>te(Math.floor((ve.ca+7-ve.R)/7),2),"%V":ve=>{var $e=Math.floor((ve.ca+7-(ve.R+6)%7)/7);if(2>=(ve.R+371-ve.ca-2)%7&&$e++,$e)$e==53&&(Fe=(ve.R+371-ve.ca)%7,Fe==4||Fe==3&&Xc(ve.da)||($e=1));else{$e=52;var Fe=(ve.R+7-ve.ca-1)%7;(Fe==4||Fe==5&&Xc(ve.da%400-1))&&$e++}return te($e,2)},"%w":ve=>ve.R,"%W":ve=>te(Math.floor((ve.ca+7-(ve.R+6)%7)/7),2),"%y":ve=>(ve.da+1900).toString().substring(2),"%Y":ve=>ve.da+1900,"%z":ve=>{ve=ve.uc;var $e=0<=ve;return ve=Math.abs(ve)/60,($e?"+":"-")+("0000"+(ve/60*100+ve%60)).slice(-4)},"%Z":ve=>ve.xc,"%%":()=>"%"},E=E.replace(/%%/g,"\0\0");for(He in we)E.includes(He)&&(E=E.replace(new RegExp(He,"g"),we[He](O)));return E=E.replace(/\0\0/g,"%"),He=nt(E,!1),He.length>v?0:(se.set(He,p),He.length-1)};function x_(p,v,E,O){p||(p=this),this.parent=p,this.U=p.U,this.wa=null,this.id=ze++,this.name=v,this.mode=E,this.l={},this.m={},this.za=O}Object.defineProperties(x_.prototype,{read:{get:function(){return(this.mode&365)===365},set:function(p){p?this.mode|=365:this.mode&=-366}},write:{get:function(){return(this.mode&146)===146},set:function(p){p?this.mode|=146:this.mode&=-147}}}),ns(),ct=Array(4096),eo(Ke,"/"),_r("/tmp",16895,0),_r("/home",16895,0),_r("/home/web_user",16895,0),(()=>{_r("/dev",16895,0),Nn(259,{read:()=>0,write:(O,X,te,de)=>de}),Fn("/dev/null",259),kt(1280,jt),kt(1536,Cn),Fn("/dev/tty",1280),Fn("/dev/tty1",1536);var p=new Uint8Array(1024),v=0,E=()=>(v===0&&(v=Pe(p).byteLength),p[--v]);Hi("random",E),Hi("urandom",E),_r("/dev/shm",16895,0),_r("/dev/shm/tmp",16895,0)})(),(()=>{_r("/proc",16895,0);var p=_r("/proc/self",16895,0);_r("/proc/self/fd",16895,0),eo({U:()=>{var v=ln(p,"fd",16895,73);return v.l={ka:(E,O)=>{var X=Yn(+O);return E={parent:null,U:{nb:"fake"},l:{ma:()=>X.path}},E.parent=E}},v}},"/proc/self/fd")})(),Object.assign(c_.prototype,{get(p){return this.M[p]},has(p){return this.M[p]!==void 0},pa(p){var v=this.ib.pop()||this.M.length;return this.M[v]=p,v},Zb(p){this.M[p]=void 0,this.ib.push(p)}}),Oa=f.BindingError=class extends Error{constructor(p){super(p),this.name="BindingError"}},bi.M.push({value:void 0},{value:null},{value:!0},{value:!1}),bi.h=bi.M.length,f.count_emval_handles=function(){for(var p=0,v=bi.h;v<bi.M.length;++v)bi.M[v]!==void 0&&++p;return p},d_=f.PureVirtualError=f_("PureVirtualError");for(var C_=Array(256),Qc=0;256>Qc;++Qc)C_[Qc]=String.fromCharCode(Qc);h_=C_,f.getInheritedInstanceCount=function(){return Object.keys(Eo).length},f.getLiveInheritedInstances=function(){var p=[],v;for(v in Eo)Eo.hasOwnProperty(v)&&p.push(Eo[v]);return p},f.flushPendingDeletes=_h,f.setDelayFunction=function(p){Wl=p,jl.length&&Wl&&Wl(_h)},v_=f.InternalError=class extends Error{constructor(p){super(p),this.name="InternalError"}},is.prototype.isAliasOf=function(p){if(!(this instanceof is&&p instanceof is))return!1;var v=this.g.u.i,E=this.g.o,O=p.g.u.i;for(p=p.g.o;v.A;)E=v.na(E),v=v.A;for(;O.A;)p=O.na(p),O=O.A;return v===O&&E===p},is.prototype.clone=function(){if(this.g.o||bh(this),this.g.ia)return this.g.count.value+=1,this;var p=Ma,v=Object,E=v.create,O=Object.getPrototypeOf(this),X=this.g;return p=p(E.call(v,O,{g:{value:{count:X.count,fa:X.fa,ia:X.ia,o:X.o,u:X.u,G:X.G,L:X.L}}})),p.g.count.value+=1,p.g.fa=!1,p},is.prototype.delete=function(){this.g.o||bh(this),this.g.fa&&!this.g.ia&&wt("Object already scheduled for deletion"),Hc(this),m_(this.g),this.g.ia||(this.g.G=void 0,this.g.o=void 0)},is.prototype.isDeleted=function(){return!this.g.o},is.prototype.deleteLater=function(){return this.g.o||bh(this),this.g.fa&&!this.g.ia&&wt("Object already scheduled for deletion"),jl.push(this),jl.length===1&&Wl&&Wl(_h),this.g.fa=!0,this},ko.prototype.Vb=function(p){return this.sb&&(p=this.sb(p)),p},ko.prototype.bb=function(p){this.W&&this.W(p)},ko.prototype.argPackAdvance=8,ko.prototype.readValueFromPointer=Gl,ko.prototype.deleteObject=function(p){p!==null&&p.delete()},ko.prototype.fromWireType=function(p){function v(){return this.ua?Bc(this.i.N,{u:this.nc,o:E,L:this,G:p}):Bc(this.i.N,{u:this,o:p})}var E=this.Vb(p);if(!E)return this.bb(p),null;var O=VE(this.i,E);if(O!==void 0)return O.g.count.value===0?(O.g.o=E,O.g.G=p,O.clone()):(O=O.clone(),this.bb(p),O);if(O=this.i.Ub(E),O=__[O],!O)return v.call(this);O=this.ta?O.Kb:O.pointerType;var X=g_(E,this.i,O.i);return X===null?v.call(this):this.ua?Bc(O.i.N,{u:O,o:X,L:this,G:p}):Bc(O.i.N,{u:O,o:X})},w_=f.UnboundTypeError=f_("UnboundTypeError");var P_={__syscall_fcntl64:function(p,v,E){Ul=E;try{var O=Yn(p);switch(v){case 0:var X=To();return 0>X?-28:Hn(O,X).X;case 1:case 2:return 0;case 3:return O.flags;case 4:return X=To(),O.flags|=X,0;case 5:return X=To(),be[X+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return he[I_()>>2]=28,-1;default:return-28}}catch(te){if(typeof vr>"u"||te.name!=="ErrnoError")throw te;return-te.aa}},__syscall_ioctl:function(p,v,E){Ul=E;try{var O=Yn(p);switch(v){case 21509:return O.s?0:-59;case 21505:if(!O.s)return-59;if(O.s.V.bc){v=[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];var X=To();he[X>>2]=25856,he[X+4>>2]=5,he[X+8>>2]=191,he[X+12>>2]=35387;for(var te=0;32>te;te++)se[X+te+17>>0]=v[te]||0}return 0;case 21510:case 21511:case 21512:return O.s?0:-59;case 21506:case 21507:case 21508:if(!O.s)return-59;if(O.s.V.cc)for(X=To(),v=[],te=0;32>te;te++)v.push(se[X+te+17>>0]);return 0;case 21519:return O.s?(X=To(),he[X>>2]=0):-59;case 21520:return O.s?-28:-59;case 21531:if(X=To(),!O.m.ac)throw new Le(59);return O.m.ac(O,v,X);case 21523:return O.s?(O.s.V.dc&&(te=[24,80],X=To(),be[X>>1]=te[0],be[X+2>>1]=te[1]),0):-59;case 21524:return O.s?0:-59;case 21515:return O.s?0:-59;default:return-28}}catch(de){if(typeof vr>"u"||de.name!=="ErrnoError")throw de;return-de.aa}},__syscall_openat:function(p,v,E,O){Ul=O;try{v=v?tt(q,v):"";var X=v;if(X.charAt(0)==="/")v=X;else{var te=p===-100?"/":Yn(p).path;if(X.length==0)throw new Le(44);v=re(te+"/"+X)}var de=O?To():0;return ts(v,E,de).X}catch(ke){if(typeof vr>"u"||ke.name!=="ErrnoError")throw ke;return-ke.aa}},_embind_create_inheriting_constructor:function(p,v,E){p=Ln(p),v=zl(v,"wrapper"),E=Ni(E);var O=[].slice,X=v.i,te=X.N,de=X.A.N,ke=X.A.constructor;p=$c(p,function(){X.A.rb.forEach((function(we){if(this[we]===de[we])throw new d_(`Pure virtual function ${we} must be implemented in JavaScript`)}).bind(this)),Object.defineProperty(this,"__parent",{value:te}),this.__construct.apply(this,O.call(arguments))}),te.__construct=function(){this===te&&wt("Pass correct 'this' to __construct");var we=ke.implement.apply(void 0,[this].concat(O.call(arguments)));Hc(we);var He=we.g;we.notifyOnDestruction(),He.ia=!0,Object.defineProperties(this,{g:{value:He}}),Ma(this),we=He.o,we=vh(X,we),Eo.hasOwnProperty(we)?wt(`Tried to register registered instance: ${we}`):Eo[we]=this},te.__destruct=function(){this===te&&wt("Pass correct 'this' to __destruct"),Hc(this);var we=this.g.o;we=vh(X,we),Eo.hasOwnProperty(we)?delete Eo[we]:wt(`Tried to unregister unregistered instance: ${we}`)},p.prototype=Object.create(te);for(var xe in E)p.prototype[xe]=E[xe];return Bi(p)},_embind_finalize_value_object:function(p){var v=Vc[p];delete Vc[p];var E=v.Pa,O=v.W,X=v.fb,te=X.map(de=>de.Yb).concat(X.map(de=>de.rc));ri([p],te,de=>{var ke={};return X.forEach((xe,we)=>{var He=de[we],Ue=xe.Wb,Xe=xe.Xb,ve=de[we+X.length],$e=xe.qc,Fe=xe.sc;ke[xe.Sb]={read:St=>He.fromWireType(Ue(Xe,St)),write:(St,At)=>{var qe=[];$e(Fe,St,ve.toWireType(qe,At)),ql(qe)}}}),[{name:v.name,fromWireType:function(xe){var we={},He;for(He in ke)we[He]=ke[He].read(xe);return O(xe),we},toWireType:function(xe,we){for(var He in ke)if(!(He in we))throw new TypeError(`Missing field: "${He}"`);var Ue=E();for(He in ke)ke[He].write(Ue,we[He]);return xe!==null&&xe.push(O,Ue),Ue},argPackAdvance:8,readValueFromPointer:Gl,K:O}]})},_embind_register_bigint:function(){},_embind_register_bool:function(p,v,E,O,X){var te=jc(E);v=Ln(v),to(p,{name:v,fromWireType:function(de){return!!de},toWireType:function(de,ke){return ke?O:X},argPackAdvance:8,readValueFromPointer:function(de){if(E===1)var ke=se;else if(E===2)ke=be;else if(E===4)ke=he;else throw new TypeError("Unknown boolean type size: "+v);return this.fromWireType(ke[de>>te])},K:null})},_embind_register_class:function(p,v,E,O,X,te,de,ke,xe,we,He,Ue,Xe){He=Ln(He),te=yr(X,te),ke&&(ke=yr(de,ke)),we&&(we=yr(xe,we)),Xe=yr(Ue,Xe);var ve=u_(He);Sh(ve,function(){Ao(`Cannot construct ${He} due to unbound types`,[O])}),ri([p,v,E],O?[O]:[],function($e){if($e=$e[0],O)var Fe=$e.i,St=Fe.N;else St=is.prototype;$e=$c(ve,function(){if(Object.getPrototypeOf(this)!==At)throw new Oa("Use 'new' to construct "+He);if(qe.$===void 0)throw new Oa(He+" has no accessible constructor");var ur=qe.$[arguments.length];if(ur===void 0)throw new Oa(`Tried to invoke ctor of ${He} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(qe.$).toString()}) parameters instead!`);return ur.apply(this,arguments)});var At=Object.create(St,{constructor:{value:$e}});$e.prototype=At;var qe=new jE(He,$e,At,Xe,Fe,te,ke,we);qe.A&&(qe.A.oa===void 0&&(qe.A.oa=[]),qe.A.oa.push(qe)),Fe=new ko(He,qe,!0,!1),St=new ko(He+"*",qe,!1,!1);var _n=new ko(He+" const*",qe,!1,!0);return __[p]={pointerType:St,Kb:_n},y_(ve,$e),[Fe,St,_n]})},_embind_register_class_class_function:function(p,v,E,O,X,te,de){var ke=Gc(E,O);v=Ln(v),te=yr(X,te),ri([],[p],function(xe){function we(){Ao(`Cannot call ${He} due to unbound types`,ke)}xe=xe[0];var He=`${xe.name}.${v}`;v.startsWith("@@")&&(v=Symbol[v.substring(2)]);var Ue=xe.i.constructor;return Ue[v]===void 0?(we.ea=E-1,Ue[v]=we):(wh(Ue,v,He),Ue[v].B[E-1]=we),ri([],ke,function(Xe){if(Xe=qc(He,[Xe[0],null].concat(Xe.slice(1)),null,te,de),Ue[v].B===void 0?(Xe.ea=E-1,Ue[v]=Xe):Ue[v].B[E-1]=Xe,xe.i.oa)for(const ve of xe.i.oa)ve.constructor.hasOwnProperty(v)||(ve.constructor[v]=Xe);return[]}),[]})},_embind_register_class_class_property:function(p,v,E,O,X,te,de,ke){v=Ln(v),te=yr(X,te),ri([],[p],function(xe){xe=xe[0];var we=`${xe.name}.${v}`,He={get(){Ao(`Cannot access ${we} due to unbound types`,[E])},enumerable:!0,configurable:!0};return He.set=ke?()=>{Ao(`Cannot access ${we} due to unbound types`,[E])}:()=>{wt(`${we} is a read-only property`)},Object.defineProperty(xe.i.constructor,v,He),ri([],[E],function(Ue){Ue=Ue[0];var Xe={get(){return Ue.fromWireType(te(O))},enumerable:!0};return ke&&(ke=yr(de,ke),Xe.set=ve=>{var $e=[];ke(O,Ue.toWireType($e,ve)),ql($e)}),Object.defineProperty(xe.i.constructor,v,Xe),[]}),[]})},_embind_register_class_constructor:function(p,v,E,O,X,te){var de=Gc(v,E);X=yr(O,X),ri([],[p],function(ke){ke=ke[0];var xe=`constructor ${ke.name}`;if(ke.i.$===void 0&&(ke.i.$=[]),ke.i.$[v-1]!==void 0)throw new Oa(`Cannot register multiple constructors with identical number of parameters (${v-1}) for class '${ke.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return ke.i.$[v-1]=()=>{Ao(`Cannot construct ${ke.name} due to unbound types`,de)},ri([],de,function(we){return we.splice(1,0,null),ke.i.$[v-1]=qc(xe,we,null,X,te),[]}),[]})},_embind_register_class_function:function(p,v,E,O,X,te,de,ke){var xe=Gc(E,O);v=Ln(v),te=yr(X,te),ri([],[p],function(we){function He(){Ao(`Cannot call ${Ue} due to unbound types`,xe)}we=we[0];var Ue=`${we.name}.${v}`;v.startsWith("@@")&&(v=Symbol[v.substring(2)]),ke&&we.i.rb.push(v);var Xe=we.i.N,ve=Xe[v];return ve===void 0||ve.B===void 0&&ve.className!==we.name&&ve.ea===E-2?(He.ea=E-2,He.className=we.name,Xe[v]=He):(wh(Xe,v,Ue),Xe[v].B[E-2]=He),ri([],xe,function($e){return $e=qc(Ue,$e,we,te,de),Xe[v].B===void 0?($e.ea=E-2,Xe[v]=$e):Xe[v].B[E-2]=$e,[]}),[]})},_embind_register_class_property:function(p,v,E,O,X,te,de,ke,xe,we){v=Ln(v),X=yr(O,X),ri([],[p],function(He){He=He[0];var Ue=`${He.name}.${v}`,Xe={get(){Ao(`Cannot access ${Ue} due to unbound types`,[E,de])},enumerable:!0,configurable:!0};return Xe.set=xe?()=>{Ao(`Cannot access ${Ue} due to unbound types`,[E,de])}:()=>{wt(Ue+" is a read-only property")},Object.defineProperty(He.i.N,v,Xe),ri([],xe?[E,de]:[E],function(ve){var $e=ve[0],Fe={get(){var At=S_(this,He,Ue+" getter");return $e.fromWireType(X(te,At))},enumerable:!0};if(xe){xe=yr(ke,xe);var St=ve[1];Fe.set=function(At){var qe=S_(this,He,Ue+" setter"),_n=[];xe(we,qe,St.toWireType(_n,At)),ql(_n)}}return Object.defineProperty(He.i.N,v,Fe),[]}),[]})},_embind_register_emval:function(p,v){v=Ln(v),to(p,{name:v,fromWireType:function(E){var O=Ni(E);return Th(E),O},toWireType:function(E,O){return Bi(O)},argPackAdvance:8,readValueFromPointer:Gl,K:null})},_embind_register_enum:function(p,v,E,O){function X(){}E=jc(E),v=Ln(v),X.values={},to(p,{name:v,constructor:X,fromWireType:function(te){return this.constructor.values[te]},toWireType:function(te,de){return de.value},argPackAdvance:8,readValueFromPointer:YE(v,E,O),K:null}),Sh(v,X)},_embind_register_enum_value:function(p,v,E){var O=zl(p,"enum");v=Ln(v),p=O.constructor,O=Object.create(O.constructor.prototype,{value:{value:E},constructor:{value:$c(`${O.name}_${v}`,function(){})}}),p.values[E]=O,p[v]=O},_embind_register_float:function(p,v,E){E=jc(E),v=Ln(v),to(p,{name:v,fromWireType:function(O){return O},toWireType:function(O,X){return X},argPackAdvance:8,readValueFromPointer:KE(v,E),K:null})},_embind_register_function:function(p,v,E,O,X,te){var de=Gc(v,E);p=Ln(p),X=yr(O,X),Sh(p,function(){Ao(`Cannot call ${p} due to unbound types`,de)},v-1),ri([],de,function(ke){return y_(p,qc(p,[ke[0],null].concat(ke.slice(1)),null,X,te),v-1),[]})},_embind_register_integer:function(p,v,E,O,X){v=Ln(v),X===-1&&(X=4294967295),X=jc(E);var te=ke=>ke;if(O===0){var de=32-8*E;te=ke=>ke<<de>>>de}E=v.includes("unsigned")?function(ke,xe){return xe>>>0}:function(ke,xe){return xe},to(p,{name:v,fromWireType:te,toWireType:E,argPackAdvance:8,readValueFromPointer:XE(v,X,O!==0),K:null})},_embind_register_memory_view:function(p,v,E){function O(te){te>>=2;var de=ge;return new X(de.buffer,de[te+1],de[te])}var X=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][v];E=Ln(E),to(p,{name:E,fromWireType:O,argPackAdvance:8,readValueFromPointer:O},{$b:!0})},_embind_register_std_string:function(p,v){v=Ln(v);var E=v==="std::string";to(p,{name:v,fromWireType:function(O){var X=ge[O>>2],te=O+4;if(E)for(var de=te,ke=0;ke<=X;++ke){var xe=te+ke;if(ke==X||q[xe]==0){if(de=de?tt(q,de,xe-de):"",we===void 0)var we=de;else we+="\0",we+=de;de=xe+1}}else{for(we=Array(X),ke=0;ke<X;++ke)we[ke]=String.fromCharCode(q[te+ke]);we=we.join("")}return Ro(O),we},toWireType:function(O,X){X instanceof ArrayBuffer&&(X=new Uint8Array(X));var te=typeof X=="string";te||X instanceof Uint8Array||X instanceof Uint8ClampedArray||X instanceof Int8Array||wt("Cannot pass non-string to std::string");var de=E&&te?mt(X):X.length,ke=xh(4+de+1),xe=ke+4;if(ge[ke>>2]=de,E&&te)rn(X,q,xe,de+1);else if(te)for(te=0;te<de;++te){var we=X.charCodeAt(te);255<we&&(Ro(xe),wt("String has UTF-16 code units that do not fit in 8 bits")),q[xe+te]=we}else for(te=0;te<de;++te)q[xe+te]=X[te];return O!==null&&O.push(Ro,ke),ke},argPackAdvance:8,readValueFromPointer:Gl,K:function(O){Ro(O)}})},_embind_register_std_wstring:function(p,v,E){if(E=Ln(E),v===2)var O=QE,X=JE,te=ZE,de=()=>Te,ke=1;else v===4&&(O=ek,X=tk,te=nk,de=()=>ge,ke=2);to(p,{name:E,fromWireType:function(xe){for(var we=ge[xe>>2],He=de(),Ue,Xe=xe+4,ve=0;ve<=we;++ve){var $e=xe+4+ve*v;(ve==we||He[$e>>ke]==0)&&(Xe=O(Xe,$e-Xe),Ue===void 0?Ue=Xe:(Ue+="\0",Ue+=Xe),Xe=$e+v)}return Ro(xe),Ue},toWireType:function(xe,we){typeof we!="string"&&wt(`Cannot pass non-string to C++ string type ${E}`);var He=te(we),Ue=xh(4+He+v);return ge[Ue>>2]=He>>ke,X(we,Ue+4,He+v),xe!==null&&xe.push(Ro,Ue),Ue},argPackAdvance:8,readValueFromPointer:Gl,K:function(xe){Ro(xe)}})},_embind_register_value_object:function(p,v,E,O,X,te){Vc[p]={name:Ln(v),Pa:yr(E,O),W:yr(X,te),fb:[]}},_embind_register_value_object_field:function(p,v,E,O,X,te,de,ke,xe,we){Vc[p].fb.push({Sb:Ln(v),Yb:E,Wb:yr(O,X),Xb:te,rc:de,qc:yr(ke,xe),sc:we})},_embind_register_void:function(p,v){v=Ln(v),to(p,{fc:!0,name:v,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},_emscripten_get_now_is_monotonic:()=>!0,_emval_as:function(p,v,E){p=Ni(p),v=zl(v,"emval::as");var O=[],X=Bi(O);return ge[E>>2]=X,v.toWireType(O,p)},_emval_call_method:function(p,v,E,O,X){p=Kc[p],v=Ni(v),E=Yc(E);var te=[];return ge[O>>2]=Bi(te),p(v,E,te,X)},_emval_call_void_method:function(p,v,E,O){p=Kc[p],v=Ni(v),E=Yc(E),p(v,E,null,O)},_emval_decref:Th,_emval_get_method_caller:function(p,v){var E=ok(p,v),O=E[0];v=O.name+"_$"+E.slice(1).map(function(de){return de.name}).join("_")+"$";var X=E_[v];if(X!==void 0)return X;var te=Array(p-1);return X=ik((de,ke,xe,we)=>{for(var He=0,Ue=0;Ue<p-1;++Ue)te[Ue]=E[Ue+1].readValueFromPointer(we+He),He+=E[Ue+1].argPackAdvance;for(de=de[ke].apply(de,te),Ue=0;Ue<p-1;++Ue)E[Ue+1].Nb&&E[Ue+1].Nb(te[Ue]);if(!O.fc)return O.toWireType(xe,de)}),E_[v]=X},_emval_get_module_property:function(p){return p=Yc(p),Bi(f[p])},_emval_get_property:function(p,v){return p=Ni(p),v=Ni(v),Bi(p[v])},_emval_incref:function(p){4<p&&(bi.get(p).ub+=1)},_emval_new_array:function(){return Bi([])},_emval_new_cstring:function(p){return Bi(Yc(p))},_emval_new_object:function(){return Bi({})},_emval_run_destructors:function(p){var v=Ni(p);ql(v),Th(p)},_emval_set_property:function(p,v,E){p=Ni(p),v=Ni(v),E=Ni(E),p[v]=E},_emval_take_value:function(p,v){return p=zl(p,"_emval_take_value"),p=p.readValueFromPointer(v),Bi(p)},abort:()=>{ee("")},emscripten_asm_const_int:(p,v,E)=>{kh.length=0;var O;for(E>>=2;O=q[v++];)E+=O!=105&E,kh.push(O==105?he[E]:ye[E++>>1]),++E;return m[p].apply(null,kh)},emscripten_date_now:function(){return Date.now()},emscripten_get_now:()=>performance.now(),emscripten_memcpy_big:(p,v,E)=>q.copyWithin(p,v,v+E),emscripten_resize_heap:p=>{var v=q.length;if(p>>>=0,2147483648<p)return!1;for(var E=1;4>=E;E*=2){var O=v*(1+.2/E);O=Math.min(O,p+100663296);var X=Math;O=Math.max(p,O);e:{X=X.min.call(X,2147483648,O+(65536-O%65536)%65536)-V.buffer.byteLength+65535>>>16;try{V.grow(X),ie();var te=1;break e}catch{}te=void 0}if(te)return!0}return!1},environ_get:(p,v)=>{var E=0;return k_().forEach(function(O,X){var te=v+E;for(X=ge[p+4*X>>2]=te,te=0;te<O.length;++te)se[X++>>0]=O.charCodeAt(te);se[X>>0]=0,E+=O.length+1}),0},environ_sizes_get:(p,v)=>{var E=k_();ge[p>>2]=E.length;var O=0;return E.forEach(function(X){O+=X.length+1}),ge[v>>2]=O,0},fd_close:function(p){try{var v=Yn(p);if(v.X===null)throw new Le(8);v.Ma&&(v.Ma=null);try{v.m.close&&v.m.close(v)}catch(E){throw E}finally{Ot[v.X]=null}return v.X=null,0}catch(E){if(typeof vr>"u"||E.name!=="ErrnoError")throw E;return E.aa}},fd_read:function(p,v,E,O){try{e:{var X=Yn(p);p=v;for(var te,de=v=0;de<E;de++){var ke=ge[p>>2],xe=ge[p+4>>2];p+=8;var we=X,He=ke,Ue=xe,Xe=te,ve=se;if(0>Ue||0>Xe)throw new Le(28);if(we.X===null)throw new Le(8);if((we.flags&2097155)===1)throw new Le(8);if((we.node.mode&61440)===16384)throw new Le(31);if(!we.m.read)throw new Le(28);var $e=typeof Xe<"u";if(!$e)Xe=we.position;else if(!we.seekable)throw new Le(70);var Fe=we.m.read(we,ve,He,Ue,Xe);$e||(we.position+=Fe);var St=Fe;if(0>St){var At=-1;break e}if(v+=St,St<xe)break;typeof te<"u"&&(te+=St)}At=v}return ge[O>>2]=At,0}catch(qe){if(typeof vr>"u"||qe.name!=="ErrnoError")throw qe;return qe.aa}},fd_seek:function(p,v,E,O,X){v=E+2097152>>>0<4194305-!!v?(v>>>0)+4294967296*E:NaN;try{if(isNaN(v))return 61;var te=Yn(p);return Bl(te,v,O),S=[te.position>>>0,(ue=te.position,1<=+Math.abs(ue)?0<ue?+Math.floor(ue/4294967296)>>>0:~~+Math.ceil((ue-+(~~ue>>>0))/4294967296)>>>0:0)],he[X>>2]=S[0],he[X+4>>2]=S[1],te.Ma&&v===0&&O===0&&(te.Ma=null),0}catch(de){if(typeof vr>"u"||de.name!=="ErrnoError")throw de;return de.aa}},fd_write:function(p,v,E,O){try{e:{var X=Yn(p);p=v;for(var te,de=v=0;de<E;de++){var ke=ge[p>>2],xe=ge[p+4>>2];p+=8;var we=X,He=ke,Ue=xe,Xe=te,ve=se;if(0>Ue||0>Xe)throw new Le(28);if(we.X===null)throw new Le(8);if((we.flags&2097155)===0)throw new Le(8);if((we.node.mode&61440)===16384)throw new Le(31);if(!we.m.write)throw new Le(28);we.seekable&&we.flags&1024&&Bl(we,0,2);var $e=typeof Xe<"u";if(!$e)Xe=we.position;else if(!we.seekable)throw new Le(70);var Fe=we.m.write(we,ve,He,Ue,Xe,void 0);$e||(we.position+=Fe);var St=Fe;if(0>St){var At=-1;break e}v+=St,typeof te<"u"&&(te+=St)}At=v}return ge[O>>2]=At,0}catch(qe){if(typeof vr>"u"||qe.name!=="ErrnoError")throw qe;return qe.aa}},strftime_l:(p,v,E,O)=>sk(p,v,E,O)};(function(){function p(E){if(B=E=E.exports,V=B.memory,ie(),le=B.__indirect_function_table,Se.unshift(B.__wasm_call_ctors),P--,f.monitorRunDependencies&&f.monitorRunDependencies(P),P==0&&Y){var O=Y;Y=null,O()}return E}var v={env:P_,wasi_snapshot_preview1:P_};if(P++,f.monitorRunDependencies&&f.monitorRunDependencies(P),f.instantiateWasm)try{return f.instantiateWasm(v,p)}catch(E){N("Module.instantiateWasm callback failed with error: "+E),g(E)}return fe(v,function(E){p(E.instance)}).catch(g),{}})();var Ro=p=>(Ro=B.free)(p),xh=p=>(xh=B.malloc)(p),I_=()=>(I_=B.__errno_location)(),L_=f._ma_device__on_notification_unlocked=p=>(L_=f._ma_device__on_notification_unlocked=B.ma_device__on_notification_unlocked)(p);f._ma_malloc_emscripten=(p,v)=>(f._ma_malloc_emscripten=B.ma_malloc_emscripten)(p,v),f._ma_free_emscripten=(p,v)=>(f._ma_free_emscripten=B.ma_free_emscripten)(p,v);var O_=f._ma_device_process_pcm_frames_capture__webaudio=(p,v,E)=>(O_=f._ma_device_process_pcm_frames_capture__webaudio=B.ma_device_process_pcm_frames_capture__webaudio)(p,v,E),M_=f._ma_device_process_pcm_frames_playback__webaudio=(p,v,E)=>(M_=f._ma_device_process_pcm_frames_playback__webaudio=B.ma_device_process_pcm_frames_playback__webaudio)(p,v,E),F_=p=>(F_=B.__getTypeName)(p);f.__embind_initialize_bindings=()=>(f.__embind_initialize_bindings=B._embind_initialize_bindings)(),f.dynCall_iiji=(p,v,E,O,X)=>(f.dynCall_iiji=B.dynCall_iiji)(p,v,E,O,X),f.dynCall_jiji=(p,v,E,O,X)=>(f.dynCall_jiji=B.dynCall_jiji)(p,v,E,O,X),f.dynCall_iiiji=(p,v,E,O,X,te)=>(f.dynCall_iiiji=B.dynCall_iiiji)(p,v,E,O,X,te),f.dynCall_iij=(p,v,E,O)=>(f.dynCall_iij=B.dynCall_iij)(p,v,E,O),f.dynCall_jii=(p,v,E)=>(f.dynCall_jii=B.dynCall_jii)(p,v,E),f.dynCall_viijii=(p,v,E,O,X,te,de)=>(f.dynCall_viijii=B.dynCall_viijii)(p,v,E,O,X,te,de),f.dynCall_iiiiij=(p,v,E,O,X,te,de)=>(f.dynCall_iiiiij=B.dynCall_iiiiij)(p,v,E,O,X,te,de),f.dynCall_iiiiijj=(p,v,E,O,X,te,de,ke,xe)=>(f.dynCall_iiiiijj=B.dynCall_iiiiijj)(p,v,E,O,X,te,de,ke,xe),f.dynCall_iiiiiijj=(p,v,E,O,X,te,de,ke,xe,we)=>(f.dynCall_iiiiiijj=B.dynCall_iiiiiijj)(p,v,E,O,X,te,de,ke,xe,we);var Jc;Y=function p(){Jc||D_(),Jc||(Y=p)};function D_(){function p(){if(!Jc&&(Jc=!0,f.calledRun=!0,!oe)){if(f.noFSInit||ni||(ni=!0,ns(),f.stdin=f.stdin,f.stdout=f.stdout,f.stderr=f.stderr,f.stdin?Hi("stdin",f.stdin):Sn("/dev/tty","/dev/stdin"),f.stdout?Hi("stdout",null,f.stdout):Sn("/dev/tty","/dev/stdout"),f.stderr?Hi("stderr",null,f.stderr):Sn("/dev/tty1","/dev/stderr"),ts("/dev/stdin",0),ts("/dev/stdout",1),ts("/dev/stderr",1)),it=!1,T(Se),_(f),f.onRuntimeInitialized&&f.onRuntimeInitialized(),f.postRun)for(typeof f.postRun=="function"&&(f.postRun=[f.postRun]);f.postRun.length;){var v=f.postRun.shift();Ie.unshift(v)}T(Ie)}}if(!(0<P)){if(f.preRun)for(typeof f.preRun=="function"&&(f.preRun=[f.preRun]);f.preRun.length;)z();T(pe),0<P||(f.setStatus?(f.setStatus("Running..."),setTimeout(function(){setTimeout(function(){f.setStatus("")},1),p()},1)):p())}}if(f.preInit)for(typeof f.preInit=="function"&&(f.preInit=[f.preInit]);0<f.preInit.length;)f.preInit.pop()();return D_(),d.ready}})();const h=c},s=>{s.exports=JSON.parse(`{"name":"@rive-app/canvas","version":"2.30.4","description":"Rive's canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}`)},(s,a,u)=>{u.r(a),u.d(a,{Animation:()=>c.Animation});var c=u(4)},(s,a,u)=>{u.r(a),u.d(a,{Animation:()=>c});var c=function(){function h(l,d,f,_){this.animation=l,this.artboard=d,this.playing=_,this.loopCount=0,this.scrubTo=null,this.instance=new f.LinearAnimationInstance(l,d)}return Object.defineProperty(h.prototype,"name",{get:function(){return this.animation.name},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"time",{get:function(){return this.instance.time},set:function(l){this.instance.time=l},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"loopValue",{get:function(){return this.animation.loopValue},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"needsScrub",{get:function(){return this.scrubTo!==null},enumerable:!1,configurable:!0}),h.prototype.advance=function(l){this.scrubTo===null?this.instance.advance(l):(this.instance.time=0,this.instance.advance(this.scrubTo),this.scrubTo=null)},h.prototype.apply=function(l){this.instance.apply(l)},h.prototype.cleanup=function(){this.instance.delete()},h}()},(s,a,u)=>{u.r(a),u.d(a,{AudioAssetWrapper:()=>l.AudioAssetWrapper,AudioWrapper:()=>l.AudioWrapper,BLANK_URL:()=>h.BLANK_URL,CustomFileAssetLoaderWrapper:()=>l.CustomFileAssetLoaderWrapper,FileAssetWrapper:()=>l.FileAssetWrapper,Finalizable:()=>l.Finalizable,FontAssetWrapper:()=>l.FontAssetWrapper,FontWrapper:()=>l.FontWrapper,ImageAssetWrapper:()=>l.ImageAssetWrapper,ImageWrapper:()=>l.ImageWrapper,finalizationRegistry:()=>l.finalizationRegistry,registerTouchInteractions:()=>c.registerTouchInteractions,sanitizeUrl:()=>h.sanitizeUrl});var c=u(6),h=u(7),l=u(8)},(s,a,u)=>{u.r(a),u.d(a,{registerTouchInteractions:()=>l});var c=void 0,h=function(d,f){var _,g;return["touchstart","touchmove"].indexOf(d.type)>-1&&(!((_=d.touches)===null||_===void 0)&&_.length)?(f||d.preventDefault(),{clientX:d.touches[0].clientX,clientY:d.touches[0].clientY}):d.type==="touchend"&&(!((g=d.changedTouches)===null||g===void 0)&&g.length)?{clientX:d.changedTouches[0].clientX,clientY:d.changedTouches[0].clientY}:{clientX:d.clientX,clientY:d.clientY}},l=function(d){var f=d.canvas,_=d.artboard,g=d.stateMachines,b=g===void 0?[]:g,y=d.renderer,w=d.rive,A=d.fit,k=d.alignment,R=d.isTouchScrollEnabled,C=R===void 0?!1:R,L=d.layoutScaleFactor,M=L===void 0?1:L;if(!f||!b.length||!y||!w||!_||typeof window>"u")return null;var $=null,U=!1,ne=function(Q){if(U&&Q instanceof MouseEvent){Q.type=="mouseup"&&(U=!1);return}U=C&&Q.type==="touchend"&&$==="touchstart",$=Q.type;var N=Q.currentTarget.getBoundingClientRect(),W=h(Q,C),V=W.clientX,B=W.clientY;if(!(!V&&!B)){var oe=V-N.left,se=B-N.top,q=w.computeAlignment(A,k,{minX:0,minY:0,maxX:N.width,maxY:N.height},_.bounds,M),be=new w.Mat2D;q.invert(be);var Te=new w.Vec2D(oe,se),he=w.mapXY(be,Te),ge=he.x(),Ae=he.y();switch(he.delete(),be.delete(),Te.delete(),q.delete(),Q.type){case"mouseout":for(var ye=0,ie=b;ye<ie.length;ye++){var le=ie[ye];le.pointerMove(ge,Ae)}break;case"touchmove":case"mouseover":case"mousemove":{for(var pe=0,Se=b;pe<Se.length;pe++){var le=Se[pe];le.pointerMove(ge,Ae)}break}case"touchstart":case"mousedown":{for(var Ie=0,z=b;Ie<z.length;Ie++){var le=z[Ie];le.pointerDown(ge,Ae)}break}case"touchend":case"mouseup":{for(var P=0,Y=b;P<Y.length;P++){var le=Y[P];le.pointerUp(ge,Ae)}break}}}},D=ne.bind(c);return f.addEventListener("mouseover",D),f.addEventListener("mouseout",D),f.addEventListener("mousemove",D),f.addEventListener("mousedown",D),f.addEventListener("mouseup",D),f.addEventListener("touchmove",D,{passive:C}),f.addEventListener("touchstart",D,{passive:C}),f.addEventListener("touchend",D),function(){f.removeEventListener("mouseover",D),f.removeEventListener("mouseout",D),f.removeEventListener("mousemove",D),f.removeEventListener("mousedown",D),f.removeEventListener("mouseup",D),f.removeEventListener("touchmove",D),f.removeEventListener("touchstart",D),f.removeEventListener("touchend",D)}}},(s,a,u)=>{u.r(a),u.d(a,{BLANK_URL:()=>g,sanitizeUrl:()=>w});var c=/^([^\w]*)(javascript|data|vbscript)/im,h=/&#(\w+)(^\w|;)?/g,l=/&(newline|tab);/gi,d=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,f=/^.+(:|&colon;)/gim,_=[".","/"],g="about:blank";function b(A){return _.indexOf(A[0])>-1}function y(A){var k=A.replace(d,"");return k.replace(h,function(R,C){return String.fromCharCode(C)})}function w(A){if(!A)return g;var k=y(A).replace(l,"").replace(d,"").trim();if(!k)return g;if(b(k))return k;var R=k.match(f);if(!R)return k;var C=R[0];return c.test(C)?g:k}},(s,a,u)=>{u.r(a),u.d(a,{AudioAssetWrapper:()=>y,AudioWrapper:()=>d,CustomFileAssetLoaderWrapper:()=>_,FileAssetWrapper:()=>g,Finalizable:()=>h,FontAssetWrapper:()=>w,FontWrapper:()=>f,ImageAssetWrapper:()=>b,ImageWrapper:()=>l,finalizationRegistry:()=>R});var c=function(){var C=function(L,M){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,U){$.__proto__=U}||function($,U){for(var ne in U)Object.prototype.hasOwnProperty.call(U,ne)&&($[ne]=U[ne])},C(L,M)};return function(L,M){if(typeof M!="function"&&M!==null)throw new TypeError("Class extends value "+String(M)+" is not a constructor or null");C(L,M);function $(){this.constructor=L}L.prototype=M===null?Object.create(M):($.prototype=M.prototype,new $)}}(),h=function(){function C(){this.selfUnref=!1}return C}(),l=function(C){c(L,C);function L(M){var $=C.call(this)||this;return $._nativeImage=M,$}return Object.defineProperty(L.prototype,"nativeImage",{get:function(){return this._nativeImage},enumerable:!1,configurable:!0}),L.prototype.unref=function(){this.selfUnref&&this._nativeImage.unref()},L}(h),d=function(C){c(L,C);function L(M){var $=C.call(this)||this;return $._nativeAudio=M,$}return Object.defineProperty(L.prototype,"nativeAudio",{get:function(){return this._nativeAudio},enumerable:!1,configurable:!0}),L.prototype.unref=function(){this.selfUnref&&this._nativeAudio.unref()},L}(h),f=function(C){c(L,C);function L(M){var $=C.call(this)||this;return $._nativeFont=M,$}return Object.defineProperty(L.prototype,"nativeFont",{get:function(){return this._nativeFont},enumerable:!1,configurable:!0}),L.prototype.unref=function(){this.selfUnref&&this._nativeFont.unref()},L}(h),_=function(){function C(L,M){this._assetLoaderCallback=M,this.assetLoader=new L.CustomFileAssetLoader({loadContents:this.loadContents.bind(this)})}return C.prototype.loadContents=function(L,M){var $;return L.isImage?$=new b(L):L.isAudio?$=new y(L):L.isFont&&($=new w(L)),this._assetLoaderCallback($,M)},C}(),g=function(){function C(L){this._nativeFileAsset=L}return C.prototype.decode=function(L){this._nativeFileAsset.decode(L)},Object.defineProperty(C.prototype,"name",{get:function(){return this._nativeFileAsset.name},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"fileExtension",{get:function(){return this._nativeFileAsset.fileExtension},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"uniqueFilename",{get:function(){return this._nativeFileAsset.uniqueFilename},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"isAudio",{get:function(){return this._nativeFileAsset.isAudio},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"isImage",{get:function(){return this._nativeFileAsset.isImage},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"isFont",{get:function(){return this._nativeFileAsset.isFont},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"cdnUuid",{get:function(){return this._nativeFileAsset.cdnUuid},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"nativeFileAsset",{get:function(){return this._nativeFileAsset},enumerable:!1,configurable:!0}),C}(),b=function(C){c(L,C);function L(){return C!==null&&C.apply(this,arguments)||this}return L.prototype.setRenderImage=function(M){this._nativeFileAsset.setRenderImage(M.nativeImage)},L}(g),y=function(C){c(L,C);function L(){return C!==null&&C.apply(this,arguments)||this}return L.prototype.setAudioSource=function(M){this._nativeFileAsset.setAudioSource(M.nativeAudio)},L}(g),w=function(C){c(L,C);function L(){return C!==null&&C.apply(this,arguments)||this}return L.prototype.setFont=function(M){this._nativeFileAsset.setFont(M.nativeFont)},L}(g),A=function(){function C(L){}return C.prototype.register=function(L){L.selfUnref=!0},C.prototype.unregister=function(L){},C}(),k=typeof FinalizationRegistry<"u"?FinalizationRegistry:A,R=new k(function(C){C.unref()})}],r={};function i(s){var a=r[s];if(a!==void 0)return a.exports;var u=r[s]={exports:{}};return n[s](u,u.exports,i),u.exports}i.d=(s,a)=>{for(var u in a)i.o(a,u)&&!i.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:a[u]})},i.o=(s,a)=>Object.prototype.hasOwnProperty.call(s,a),i.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var o={};return(()=>{i.r(o),i.d(o,{Alignment:()=>w,DataEnum:()=>Ae,EventType:()=>ne,Fit:()=>y,Layout:()=>A,LoopType:()=>D,Rive:()=>he,RiveEventType:()=>L,RiveFile:()=>Te,RuntimeLoader:()=>k,StateMachineInput:()=>C,StateMachineInputType:()=>R,Testing:()=>F,ViewModel:()=>ge,ViewModelInstance:()=>ie,ViewModelInstanceArtboard:()=>x,ViewModelInstanceAssetImage:()=>K,ViewModelInstanceBoolean:()=>Ie,ViewModelInstanceColor:()=>ee,ViewModelInstanceEnum:()=>P,ViewModelInstanceList:()=>Y,ViewModelInstanceNumber:()=>Se,ViewModelInstanceString:()=>pe,ViewModelInstanceTrigger:()=>z,ViewModelInstanceValue:()=>le,decodeAudio:()=>Z,decodeFont:()=>ue,decodeImage:()=>fe});var s=i(1),a=i(2),u=i(3),c=i(5),h=function(){var S=function(m,T){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(H,re){H.__proto__=re}||function(H,re){for(var ce in re)Object.prototype.hasOwnProperty.call(re,ce)&&(H[ce]=re[ce])},S(m,T)};return function(m,T){if(typeof T!="function"&&T!==null)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");S(m,T);function H(){this.constructor=m}m.prototype=T===null?Object.create(T):(H.prototype=T.prototype,new H)}}(),l=function(){return l=Object.assign||function(S){for(var m,T=1,H=arguments.length;T<H;T++){m=arguments[T];for(var re in m)Object.prototype.hasOwnProperty.call(m,re)&&(S[re]=m[re])}return S},l.apply(this,arguments)},d=function(S,m,T,H){function re(ce){return ce instanceof T?ce:new T(function(Ee){Ee(ce)})}return new(T||(T=Promise))(function(ce,Ee){function De(Qe){try{Be(H.next(Qe))}catch(tt){Ee(tt)}}function Pe(Qe){try{Be(H.throw(Qe))}catch(tt){Ee(tt)}}function Be(Qe){Qe.done?ce(Qe.value):re(Qe.value).then(De,Pe)}Be((H=H.apply(S,m||[])).next())})},f=function(S,m){var T={label:0,sent:function(){if(ce[0]&1)throw ce[1];return ce[1]},trys:[],ops:[]},H,re,ce,Ee=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return Ee.next=De(0),Ee.throw=De(1),Ee.return=De(2),typeof Symbol=="function"&&(Ee[Symbol.iterator]=function(){return this}),Ee;function De(Be){return function(Qe){return Pe([Be,Qe])}}function Pe(Be){if(H)throw new TypeError("Generator is already executing.");for(;Ee&&(Ee=0,Be[0]&&(T=0)),T;)try{if(H=1,re&&(ce=Be[0]&2?re.return:Be[0]?re.throw||((ce=re.return)&&ce.call(re),0):re.next)&&!(ce=ce.call(re,Be[1])).done)return ce;switch(re=0,ce&&(Be=[Be[0]&2,ce.value]),Be[0]){case 0:case 1:ce=Be;break;case 4:return T.label++,{value:Be[1],done:!1};case 5:T.label++,re=Be[1],Be=[0];continue;case 7:Be=T.ops.pop(),T.trys.pop();continue;default:if(ce=T.trys,!(ce=ce.length>0&&ce[ce.length-1])&&(Be[0]===6||Be[0]===2)){T=0;continue}if(Be[0]===3&&(!ce||Be[1]>ce[0]&&Be[1]<ce[3])){T.label=Be[1];break}if(Be[0]===6&&T.label<ce[1]){T.label=ce[1],ce=Be;break}if(ce&&T.label<ce[2]){T.label=ce[2],T.ops.push(Be);break}ce[2]&&T.ops.pop(),T.trys.pop();continue}Be=m.call(S,T)}catch(Qe){Be=[6,Qe],re=0}finally{H=ce=0}if(Be[0]&5)throw Be[1];return{value:Be[0]?Be[1]:void 0,done:!0}}},_=function(S,m,T){if(T||arguments.length===2)for(var H=0,re=m.length,ce;H<re;H++)(ce||!(H in m))&&(ce||(ce=Array.prototype.slice.call(m,0,H)),ce[H]=m[H]);return S.concat(ce||Array.prototype.slice.call(m))},g=function(S){h(m,S);function m(){var T=S!==null&&S.apply(this,arguments)||this;return T.isHandledError=!0,T}return m}(Error),b=function(S){return S&&S.isHandledError?S.message:"Problem loading file; may be corrupt!"},y;(function(S){S.Cover="cover",S.Contain="contain",S.Fill="fill",S.FitWidth="fitWidth",S.FitHeight="fitHeight",S.None="none",S.ScaleDown="scaleDown",S.Layout="layout"})(y||(y={}));var w;(function(S){S.Center="center",S.TopLeft="topLeft",S.TopCenter="topCenter",S.TopRight="topRight",S.CenterLeft="centerLeft",S.CenterRight="centerRight",S.BottomLeft="bottomLeft",S.BottomCenter="bottomCenter",S.BottomRight="bottomRight"})(w||(w={}));var A=function(){function S(m){var T,H,re,ce,Ee,De,Pe;this.fit=(T=m==null?void 0:m.fit)!==null&&T!==void 0?T:y.Contain,this.alignment=(H=m==null?void 0:m.alignment)!==null&&H!==void 0?H:w.Center,this.layoutScaleFactor=(re=m==null?void 0:m.layoutScaleFactor)!==null&&re!==void 0?re:1,this.minX=(ce=m==null?void 0:m.minX)!==null&&ce!==void 0?ce:0,this.minY=(Ee=m==null?void 0:m.minY)!==null&&Ee!==void 0?Ee:0,this.maxX=(De=m==null?void 0:m.maxX)!==null&&De!==void 0?De:0,this.maxY=(Pe=m==null?void 0:m.maxY)!==null&&Pe!==void 0?Pe:0}return S.new=function(m){var T=m.fit,H=m.alignment,re=m.minX,ce=m.minY,Ee=m.maxX,De=m.maxY;return console.warn("This function is deprecated: please use `new Layout({})` instead"),new S({fit:T,alignment:H,minX:re,minY:ce,maxX:Ee,maxY:De})},S.prototype.copyWith=function(m){var T=m.fit,H=m.alignment,re=m.layoutScaleFactor,ce=m.minX,Ee=m.minY,De=m.maxX,Pe=m.maxY;return new S({fit:T??this.fit,alignment:H??this.alignment,layoutScaleFactor:re??this.layoutScaleFactor,minX:ce??this.minX,minY:Ee??this.minY,maxX:De??this.maxX,maxY:Pe??this.maxY})},S.prototype.runtimeFit=function(m){if(this.cachedRuntimeFit)return this.cachedRuntimeFit;var T;return this.fit===y.Cover?T=m.Fit.cover:this.fit===y.Contain?T=m.Fit.contain:this.fit===y.Fill?T=m.Fit.fill:this.fit===y.FitWidth?T=m.Fit.fitWidth:this.fit===y.FitHeight?T=m.Fit.fitHeight:this.fit===y.ScaleDown?T=m.Fit.scaleDown:this.fit===y.Layout?T=m.Fit.layout:T=m.Fit.none,this.cachedRuntimeFit=T,T},S.prototype.runtimeAlignment=function(m){if(this.cachedRuntimeAlignment)return this.cachedRuntimeAlignment;var T;return this.alignment===w.TopLeft?T=m.Alignment.topLeft:this.alignment===w.TopCenter?T=m.Alignment.topCenter:this.alignment===w.TopRight?T=m.Alignment.topRight:this.alignment===w.CenterLeft?T=m.Alignment.centerLeft:this.alignment===w.CenterRight?T=m.Alignment.centerRight:this.alignment===w.BottomLeft?T=m.Alignment.bottomLeft:this.alignment===w.BottomCenter?T=m.Alignment.bottomCenter:this.alignment===w.BottomRight?T=m.Alignment.bottomRight:T=m.Alignment.center,this.cachedRuntimeAlignment=T,T},S}(),k=function(){function S(){}return S.loadRuntime=function(){s.default({locateFile:function(){return S.wasmURL}}).then(function(m){var T;for(S.runtime=m;S.callBackQueue.length>0;)(T=S.callBackQueue.shift())===null||T===void 0||T(S.runtime)}).catch(function(m){var T={message:(m==null?void 0:m.message)||"Unknown error",type:(m==null?void 0:m.name)||"Error",wasmError:m instanceof WebAssembly.CompileError||m instanceof WebAssembly.RuntimeError,originalError:m},H="https://cdn.jsdelivr.net/npm/".concat(a.name,"@").concat(a.version,"/rive_fallback.wasm");if(S.wasmURL.toLowerCase()!==H)console.warn("Failed to load WASM from ".concat(S.wasmURL," (").concat(T.message,"), trying jsdelivr as a backup")),S.setWasmUrl(H),S.loadRuntime();else{var re=["Could not load Rive WASM file from ".concat(S.wasmURL," or ").concat(H,"."),"Possible reasons:","- Network connection is down","- WebAssembly is not supported in this environment","- The WASM file is corrupted or incompatible",`
Error details:`,"- Type: ".concat(T.type),"- Message: ".concat(T.message),"- WebAssembly-specific error: ".concat(T.wasmError),`
To resolve, you may need to:`,"1. Check your network connection","2. Set a new WASM source via RuntimeLoader.setWasmUrl()","3. Call RuntimeLoader.loadRuntime() again"].join(`
`);console.error(re)}})},S.getInstance=function(m){S.isLoading||(S.isLoading=!0,S.loadRuntime()),S.runtime?m(S.runtime):S.callBackQueue.push(m)},S.awaitInstance=function(){return new Promise(function(m){return S.getInstance(function(T){return m(T)})})},S.setWasmUrl=function(m){S.wasmURL=m},S.getWasmUrl=function(){return S.wasmURL},S.isLoading=!1,S.callBackQueue=[],S.wasmURL="https://unpkg.com/".concat(a.name,"@").concat(a.version,"/rive.wasm"),S}(),R;(function(S){S[S.Number=56]="Number",S[S.Trigger=58]="Trigger",S[S.Boolean=59]="Boolean"})(R||(R={}));var C=function(){function S(m,T){this.type=m,this.runtimeInput=T}return Object.defineProperty(S.prototype,"name",{get:function(){return this.runtimeInput.name},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"value",{get:function(){return this.runtimeInput.value},set:function(m){this.runtimeInput.value=m},enumerable:!1,configurable:!0}),S.prototype.fire=function(){this.type===R.Trigger&&this.runtimeInput.fire()},S.prototype.delete=function(){this.runtimeInput=null},S}(),L;(function(S){S[S.General=128]="General",S[S.OpenUrl=131]="OpenUrl"})(L||(L={}));var M=function(){function S(m){this.nativeArtboard=m}return S}(),$=function(){function S(m,T,H,re){this.stateMachine=m,this.playing=H,this.artboard=re,this.inputs=[],this.instance=new T.StateMachineInstance(m,re),this.initInputs(T)}return Object.defineProperty(S.prototype,"name",{get:function(){return this.stateMachine.name},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"statesChanged",{get:function(){for(var m=[],T=0;T<this.instance.stateChangedCount();T++)m.push(this.instance.stateChangedNameByIndex(T));return m},enumerable:!1,configurable:!0}),S.prototype.advance=function(m){this.instance.advance(m)},S.prototype.advanceAndApply=function(m){this.instance.advanceAndApply(m)},S.prototype.reportedEventCount=function(){return this.instance.reportedEventCount()},S.prototype.reportedEventAt=function(m){return this.instance.reportedEventAt(m)},S.prototype.initInputs=function(m){for(var T=0;T<this.instance.inputCount();T++){var H=this.instance.input(T);this.inputs.push(this.mapRuntimeInput(H,m))}},S.prototype.mapRuntimeInput=function(m,T){if(m.type===T.SMIInput.bool)return new C(R.Boolean,m.asBool());if(m.type===T.SMIInput.number)return new C(R.Number,m.asNumber());if(m.type===T.SMIInput.trigger)return new C(R.Trigger,m.asTrigger())},S.prototype.cleanup=function(){this.inputs.forEach(function(m){m.delete()}),this.inputs.length=0,this.instance.delete()},S.prototype.bindViewModelInstance=function(m){m.runtimeInstance!=null&&this.instance.bindViewModelInstance(m.runtimeInstance)},S}(),U=function(){function S(m,T,H,re,ce){re===void 0&&(re=[]),ce===void 0&&(ce=[]),this.runtime=m,this.artboard=T,this.eventManager=H,this.animations=re,this.stateMachines=ce}return S.prototype.add=function(m,T,H){if(H===void 0&&(H=!0),m=I(m),m.length===0)this.animations.forEach(function(mt){return mt.playing=T}),this.stateMachines.forEach(function(mt){return mt.playing=T});else for(var re=this.animations.map(function(mt){return mt.name}),ce=this.stateMachines.map(function(mt){return mt.name}),Ee=0;Ee<m.length;Ee++){var De=re.indexOf(m[Ee]),Pe=ce.indexOf(m[Ee]);if(De>=0||Pe>=0)De>=0?this.animations[De].playing=T:this.stateMachines[Pe].playing=T;else{var Be=this.artboard.animationByName(m[Ee]);if(Be){var Qe=new u.Animation(Be,this.artboard,this.runtime,T);Qe.advance(0),Qe.apply(1),this.animations.push(Qe)}else{var tt=this.artboard.stateMachineByName(m[Ee]);if(tt){var pt=new $(tt,this.runtime,T,this.artboard);this.stateMachines.push(pt)}}}}return H&&(T?this.eventManager.fire({type:ne.Play,data:this.playing}):this.eventManager.fire({type:ne.Pause,data:this.paused})),T?this.playing:this.paused},S.prototype.initLinearAnimations=function(m,T){for(var H=this.animations.map(function(Pe){return Pe.name}),re=0;re<m.length;re++){var ce=H.indexOf(m[re]);if(ce>=0)this.animations[ce].playing=T;else{var Ee=this.artboard.animationByName(m[re]);if(Ee){var De=new u.Animation(Ee,this.artboard,this.runtime,T);De.advance(0),De.apply(1),this.animations.push(De)}else console.error("Animation with name ".concat(m[re]," not found."))}}},S.prototype.initStateMachines=function(m,T){for(var H=this.stateMachines.map(function(Pe){return Pe.name}),re=0;re<m.length;re++){var ce=H.indexOf(m[re]);if(ce>=0)this.stateMachines[ce].playing=T;else{var Ee=this.artboard.stateMachineByName(m[re]);if(Ee){var De=new $(Ee,this.runtime,T,this.artboard);this.stateMachines.push(De),T||De.advanceAndApply(0)}else console.warn("State Machine with name ".concat(m[re]," not found.")),this.initLinearAnimations([m[re]],T)}}},S.prototype.play=function(m){return this.add(m,!0)},S.prototype.pause=function(m){return this.add(m,!1)},S.prototype.scrub=function(m,T){var H=this.animations.filter(function(re){return m.includes(re.name)});return H.forEach(function(re){return re.scrubTo=T}),H.map(function(re){return re.name})},Object.defineProperty(S.prototype,"playing",{get:function(){return this.animations.filter(function(m){return m.playing}).map(function(m){return m.name}).concat(this.stateMachines.filter(function(m){return m.playing}).map(function(m){return m.name}))},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"paused",{get:function(){return this.animations.filter(function(m){return!m.playing}).map(function(m){return m.name}).concat(this.stateMachines.filter(function(m){return!m.playing}).map(function(m){return m.name}))},enumerable:!1,configurable:!0}),S.prototype.stop=function(m){var T=this;m=I(m);var H=[];if(m.length===0)H=this.animations.map(function(Ee){return Ee.name}).concat(this.stateMachines.map(function(Ee){return Ee.name})),this.animations.forEach(function(Ee){return Ee.cleanup()}),this.stateMachines.forEach(function(Ee){return Ee.cleanup()}),this.animations.splice(0,this.animations.length),this.stateMachines.splice(0,this.stateMachines.length);else{var re=this.animations.filter(function(Ee){return m.includes(Ee.name)});re.forEach(function(Ee){Ee.cleanup(),T.animations.splice(T.animations.indexOf(Ee),1)});var ce=this.stateMachines.filter(function(Ee){return m.includes(Ee.name)});ce.forEach(function(Ee){Ee.cleanup(),T.stateMachines.splice(T.stateMachines.indexOf(Ee),1)}),H=re.map(function(Ee){return Ee.name}).concat(ce.map(function(Ee){return Ee.name}))}return this.eventManager.fire({type:ne.Stop,data:H}),H},Object.defineProperty(S.prototype,"isPlaying",{get:function(){return this.animations.reduce(function(m,T){return m||T.playing},!1)||this.stateMachines.reduce(function(m,T){return m||T.playing},!1)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isPaused",{get:function(){return!this.isPlaying&&(this.animations.length>0||this.stateMachines.length>0)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isStopped",{get:function(){return this.animations.length===0&&this.stateMachines.length===0},enumerable:!1,configurable:!0}),S.prototype.atLeastOne=function(m,T){T===void 0&&(T=!0);var H;return this.animations.length===0&&this.stateMachines.length===0&&(this.artboard.animationCount()>0?this.add([H=this.artboard.animationByIndex(0).name],m,T):this.artboard.stateMachineCount()>0&&this.add([H=this.artboard.stateMachineByIndex(0).name],m,T)),H},S.prototype.handleLooping=function(){for(var m=0,T=this.animations.filter(function(re){return re.playing});m<T.length;m++){var H=T[m];H.loopValue===0&&H.loopCount?(H.loopCount=0,this.stop(H.name)):H.loopValue===1&&H.loopCount?(this.eventManager.fire({type:ne.Loop,data:{animation:H.name,type:D.Loop}}),H.loopCount=0):H.loopValue===2&&H.loopCount>1&&(this.eventManager.fire({type:ne.Loop,data:{animation:H.name,type:D.PingPong}}),H.loopCount=0)}},S.prototype.handleStateChanges=function(){for(var m=[],T=0,H=this.stateMachines.filter(function(ce){return ce.playing});T<H.length;T++){var re=H[T];m.push.apply(m,re.statesChanged)}m.length>0&&this.eventManager.fire({type:ne.StateChange,data:m})},S.prototype.handleAdvancing=function(m){this.eventManager.fire({type:ne.Advance,data:m})},S}(),ne;(function(S){S.Load="load",S.LoadError="loaderror",S.Play="play",S.Pause="pause",S.Stop="stop",S.Loop="loop",S.Draw="draw",S.Advance="advance",S.StateChange="statechange",S.RiveEvent="riveevent",S.AudioStatusChange="audiostatuschange"})(ne||(ne={}));var D;(function(S){S.OneShot="oneshot",S.Loop="loop",S.PingPong="pingpong"})(D||(D={}));var Q=function(){function S(m){m===void 0&&(m=[]),this.listeners=m}return S.prototype.getListeners=function(m){return this.listeners.filter(function(T){return T.type===m})},S.prototype.add=function(m){this.listeners.includes(m)||this.listeners.push(m)},S.prototype.remove=function(m){for(var T=0;T<this.listeners.length;T++){var H=this.listeners[T];if(H.type===m.type&&H.callback===m.callback){this.listeners.splice(T,1);break}}},S.prototype.removeAll=function(m){var T=this;m?this.listeners.filter(function(H){return H.type===m}).forEach(function(H){return T.remove(H)}):this.listeners.splice(0,this.listeners.length)},S.prototype.fire=function(m){var T=this.getListeners(m.type);T.forEach(function(H){return H.callback(m)})},S}(),N=function(){function S(m){this.eventManager=m,this.queue=[]}return S.prototype.add=function(m){this.queue.push(m)},S.prototype.process=function(){for(;this.queue.length>0;){var m=this.queue.shift();m!=null&&m.action&&m.action(),m!=null&&m.event&&this.eventManager.fire(m.event)}},S}(),W;(function(S){S[S.AVAILABLE=0]="AVAILABLE",S[S.UNAVAILABLE=1]="UNAVAILABLE"})(W||(W={}));var V=function(S){h(m,S);function m(){var T=S!==null&&S.apply(this,arguments)||this;return T._started=!1,T._enabled=!1,T._status=W.UNAVAILABLE,T}return m.prototype.delay=function(T){return d(this,void 0,void 0,function(){return f(this,function(H){return[2,new Promise(function(re){return setTimeout(re,T)})]})})},m.prototype.timeout=function(){return d(this,void 0,void 0,function(){return f(this,function(T){return[2,new Promise(function(H,re){return setTimeout(re,50)})]})})},m.prototype.reportToListeners=function(){this.fire({type:ne.AudioStatusChange}),this.removeAll()},m.prototype.enableAudio=function(){return d(this,void 0,void 0,function(){return f(this,function(T){return this._enabled||(this._enabled=!0,this._status=W.AVAILABLE,this.reportToListeners()),[2]})})},m.prototype.testAudio=function(){return d(this,void 0,void 0,function(){return f(this,function(T){switch(T.label){case 0:if(!(this._status===W.UNAVAILABLE&&this._audioContext!==null))return[3,4];T.label=1;case 1:return T.trys.push([1,3,,4]),[4,Promise.race([this._audioContext.resume(),this.timeout()])];case 2:return T.sent(),this.enableAudio(),[3,4];case 3:return T.sent(),[3,4];case 4:return[2]}})})},m.prototype._establishAudio=function(){return d(this,void 0,void 0,function(){return f(this,function(T){switch(T.label){case 0:return this._started?[3,5]:(this._started=!0,typeof window>"u"?(this.enableAudio(),[3,5]):[3,1]);case 1:this._audioContext=new AudioContext,this.listenForUserAction(),T.label=2;case 2:return this._status!==W.UNAVAILABLE?[3,5]:[4,this.testAudio()];case 3:return T.sent(),[4,this.delay(1e3)];case 4:return T.sent(),[3,2];case 5:return[2]}})})},m.prototype.listenForUserAction=function(){var T=this,H=function(){return d(T,void 0,void 0,function(){return f(this,function(re){return this.enableAudio(),[2]})})};document.addEventListener("pointerdown",H,{once:!0})},m.prototype.establishAudio=function(){return d(this,void 0,void 0,function(){return f(this,function(T){return this._establishAudio(),[2]})})},Object.defineProperty(m.prototype,"systemVolume",{get:function(){return this._status===W.UNAVAILABLE?(this.testAudio(),0):1},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),m}(Q),B=new V,oe=function(){function S(){}return S.prototype.observe=function(){},S.prototype.unobserve=function(){},S.prototype.disconnect=function(){},S}(),se=globalThis.ResizeObserver||oe,q=function(){function S(){var m=this;this._elementsMap=new Map,this._onObservedEntry=function(T){var H=m._elementsMap.get(T.target);H!==null?H.onResize(T.target.clientWidth==0||T.target.clientHeight==0):m._resizeObserver.unobserve(T.target)},this._onObserved=function(T){T.forEach(m._onObservedEntry)},this._resizeObserver=new se(this._onObserved)}return S.prototype.add=function(m,T){var H={onResize:T,element:m};return this._elementsMap.set(m,H),this._resizeObserver.observe(m),H},S.prototype.remove=function(m){this._resizeObserver.unobserve(m.element),this._elementsMap.delete(m.element)},S}(),be=new q,Te=function(){function S(m){this.enableRiveAssetCDN=!0,this.referenceCount=0,this.destroyed=!1,this.src=m.src,this.buffer=m.buffer,m.assetLoader&&(this.assetLoader=m.assetLoader),this.enableRiveAssetCDN=typeof m.enableRiveAssetCDN=="boolean"?m.enableRiveAssetCDN:!0,this.eventManager=new Q,m.onLoad&&this.on(ne.Load,m.onLoad),m.onLoadError&&this.on(ne.LoadError,m.onLoadError)}return S.prototype.initData=function(){return d(this,void 0,void 0,function(){var m,T,H,re,ce;return f(this,function(Ee){switch(Ee.label){case 0:return this.src?(m=this,[4,G(this.src)]):[3,2];case 1:m.buffer=Ee.sent(),Ee.label=2;case 2:return this.destroyed?[2]:(this.assetLoader&&(H=new c.CustomFileAssetLoaderWrapper(this.runtime,this.assetLoader),T=H.assetLoader),re=this,[4,this.runtime.load(new Uint8Array(this.buffer),T,this.enableRiveAssetCDN)]);case 3:return re.file=Ee.sent(),this.destroyed?((ce=this.file)===null||ce===void 0||ce.delete(),this.file=null,[2]):(this.file!==null?this.eventManager.fire({type:ne.Load,data:this}):this.fireLoadError(S.fileLoadErrorMessage),[2])}})})},S.prototype.init=function(){return d(this,void 0,void 0,function(){var m,T;return f(this,function(H){switch(H.label){case 0:if(!this.src&&!this.buffer)return this.fireLoadError(S.missingErrorMessage),[2];H.label=1;case 1:return H.trys.push([1,4,,5]),m=this,[4,k.awaitInstance()];case 2:return m.runtime=H.sent(),this.destroyed?[2]:[4,this.initData()];case 3:return H.sent(),[3,5];case 4:return T=H.sent(),this.fireLoadError(T instanceof Error?T.message:S.fileLoadErrorMessage),[3,5];case 5:return[2]}})})},S.prototype.fireLoadError=function(m){throw this.eventManager.fire({type:ne.LoadError,data:m}),new Error(m)},S.prototype.on=function(m,T){this.eventManager.add({type:m,callback:T})},S.prototype.off=function(m,T){this.eventManager.remove({type:m,callback:T})},S.prototype.cleanup=function(){var m;this.referenceCount-=1,this.referenceCount<=0&&(this.removeAllRiveEventListeners(),(m=this.file)===null||m===void 0||m.delete(),this.file=null,this.destroyed=!0)},S.prototype.removeAllRiveEventListeners=function(m){this.eventManager.removeAll(m)},S.prototype.getInstance=function(){if(this.file!==null)return this.referenceCount+=1,this.file},S.prototype.destroyIfUnused=function(){this.referenceCount<=0&&this.cleanup()},S.prototype.getArtboard=function(m){var T=this.file.artboardByName(m);return T!=null?new M(T):null},S.missingErrorMessage="Rive source file or data buffer required",S.fileLoadErrorMessage="The file failed to load",S}(),he=function(){function S(m){var T=this,H;this.loaded=!1,this.destroyed=!1,this._observed=null,this.readyForPlaying=!1,this.artboard=null,this.eventCleanup=null,this.shouldDisableRiveListeners=!1,this.automaticallyHandleEvents=!1,this.enableRiveAssetCDN=!0,this._volume=1,this._artboardWidth=void 0,this._artboardHeight=void 0,this._devicePixelRatioUsed=1,this._hasZeroSize=!1,this._audioEventListener=null,this._boundDraw=null,this._viewModelInstance=null,this._dataEnums=null,this.durations=[],this.frameTimes=[],this.frameCount=0,this.isTouchScrollEnabled=!1,this.onCanvasResize=function(re){var ce=T._hasZeroSize!==re;T._hasZeroSize=re,re?(!T._layout.maxX||!T._layout.maxY)&&T.resizeToCanvas():ce&&T.resizeDrawingSurfaceToCanvas()},this.renderSecondTimer=0,this._boundDraw=this.draw.bind(this),this.canvas=m.canvas,m.canvas.constructor===HTMLCanvasElement&&(this._observed=be.add(this.canvas,this.onCanvasResize)),this.src=m.src,this.buffer=m.buffer,this.riveFile=m.riveFile,this.layout=(H=m.layout)!==null&&H!==void 0?H:new A,this.shouldDisableRiveListeners=!!m.shouldDisableRiveListeners,this.isTouchScrollEnabled=!!m.isTouchScrollEnabled,this.automaticallyHandleEvents=!!m.automaticallyHandleEvents,this.enableRiveAssetCDN=m.enableRiveAssetCDN===void 0?!0:m.enableRiveAssetCDN,this.eventManager=new Q,m.onLoad&&this.on(ne.Load,m.onLoad),m.onLoadError&&this.on(ne.LoadError,m.onLoadError),m.onPlay&&this.on(ne.Play,m.onPlay),m.onPause&&this.on(ne.Pause,m.onPause),m.onStop&&this.on(ne.Stop,m.onStop),m.onLoop&&this.on(ne.Loop,m.onLoop),m.onStateChange&&this.on(ne.StateChange,m.onStateChange),m.onAdvance&&this.on(ne.Advance,m.onAdvance),m.onload&&!m.onLoad&&this.on(ne.Load,m.onload),m.onloaderror&&!m.onLoadError&&this.on(ne.LoadError,m.onloaderror),m.onplay&&!m.onPlay&&this.on(ne.Play,m.onplay),m.onpause&&!m.onPause&&this.on(ne.Pause,m.onpause),m.onstop&&!m.onStop&&this.on(ne.Stop,m.onstop),m.onloop&&!m.onLoop&&this.on(ne.Loop,m.onloop),m.onstatechange&&!m.onStateChange&&this.on(ne.StateChange,m.onstatechange),m.assetLoader&&(this.assetLoader=m.assetLoader),this.taskQueue=new N(this.eventManager),this.init({src:this.src,buffer:this.buffer,riveFile:this.riveFile,autoplay:m.autoplay,autoBind:m.autoBind,animations:m.animations,stateMachines:m.stateMachines,artboard:m.artboard,useOffscreenRenderer:m.useOffscreenRenderer})}return Object.defineProperty(S.prototype,"viewModelCount",{get:function(){return this.file.viewModelCount()},enumerable:!1,configurable:!0}),S.new=function(m){return console.warn("This function is deprecated: please use `new Rive({})` instead"),new S(m)},S.prototype.onSystemAudioChanged=function(){this.volume=this._volume},S.prototype.init=function(m){var T=this,H=m.src,re=m.buffer,ce=m.riveFile,Ee=m.animations,De=m.stateMachines,Pe=m.artboard,Be=m.autoplay,Qe=Be===void 0?!1:Be,tt=m.useOffscreenRenderer,pt=tt===void 0?!1:tt,mt=m.autoBind,rn=mt===void 0?!1:mt;if(!this.destroyed){if(this.src=H,this.buffer=re,this.riveFile=ce,!this.src&&!this.buffer&&!this.riveFile)throw new g(S.missingErrorMessage);var nt=I(Ee),Ut=I(De);this.loaded=!1,this.readyForPlaying=!1,k.awaitInstance().then(function(kt){T.destroyed||(T.runtime=kt,T.removeRiveListeners(),T.deleteRiveRenderer(),T.renderer=T.runtime.makeRenderer(T.canvas,pt),T.canvas.width||T.canvas.height||T.resizeDrawingSurfaceToCanvas(),T.initData(Pe,nt,Ut,Qe,rn).then(function(dt){if(dt)return T.setupRiveListeners()}).catch(function(dt){console.error(dt)}))}).catch(function(kt){console.error(kt)})}},S.prototype.setupRiveListeners=function(m){var T=this;if(this.eventCleanup&&this.eventCleanup(),!this.shouldDisableRiveListeners){var H=(this.animator.stateMachines||[]).filter(function(ce){return ce.playing&&T.runtime.hasListeners(ce.instance)}).map(function(ce){return ce.instance}),re=this.isTouchScrollEnabled;m&&"isTouchScrollEnabled"in m&&(re=m.isTouchScrollEnabled),this.eventCleanup=(0,c.registerTouchInteractions)({canvas:this.canvas,artboard:this.artboard,stateMachines:H,renderer:this.renderer,rive:this.runtime,fit:this._layout.runtimeFit(this.runtime),alignment:this._layout.runtimeAlignment(this.runtime),isTouchScrollEnabled:re,layoutScaleFactor:this._layout.layoutScaleFactor})}},S.prototype.removeRiveListeners=function(){this.eventCleanup&&(this.eventCleanup(),this.eventCleanup=null)},S.prototype.initializeAudio=function(){var m=this,T;B.status==W.UNAVAILABLE&&!((T=this.artboard)===null||T===void 0)&&T.hasAudio&&this._audioEventListener===null&&(this._audioEventListener={type:ne.AudioStatusChange,callback:function(){return m.onSystemAudioChanged()}},B.add(this._audioEventListener),B.establishAudio())},S.prototype.initArtboardSize=function(){this.artboard&&(this._artboardWidth=this.artboard.width=this._artboardWidth||this.artboard.width,this._artboardHeight=this.artboard.height=this._artboardHeight||this.artboard.height)},S.prototype.initData=function(m,T,H,re,ce){return d(this,void 0,void 0,function(){var Ee,De,Pe,Be;return f(this,function(Qe){switch(Qe.label){case 0:return Qe.trys.push([0,3,,4]),this.riveFile!=null?[3,2]:(Ee=new Te({src:this.src,buffer:this.buffer,enableRiveAssetCDN:this.enableRiveAssetCDN,assetLoader:this.assetLoader}),this.riveFile=Ee,[4,Ee.init()]);case 1:if(Qe.sent(),this.destroyed)return Ee.destroyIfUnused(),[2,!1];Qe.label=2;case 2:return this.file=this.riveFile.getInstance(),this.initArtboard(m,T,H,re,ce),this.initArtboardSize(),this.initializeAudio(),this.loaded=!0,this.eventManager.fire({type:ne.Load,data:(Be=this.src)!==null&&Be!==void 0?Be:"buffer"}),this.readyForPlaying=!0,this.taskQueue.process(),this.drawFrame(),[2,!0];case 3:return De=Qe.sent(),Pe=b(De),console.warn(Pe),this.eventManager.fire({type:ne.LoadError,data:Pe}),[2,Promise.reject(Pe)];case 4:return[2]}})})},S.prototype.initArtboard=function(m,T,H,re,ce){if(this.file){var Ee=m?this.file.artboardByName(m):this.file.defaultArtboard();if(!Ee){var De="Invalid artboard name or no default artboard";console.warn(De),this.eventManager.fire({type:ne.LoadError,data:De});return}if(this.artboard=Ee,Ee.volume=this._volume*B.systemVolume,this.artboard.animationCount()<1){var De="Artboard has no animations";throw this.eventManager.fire({type:ne.LoadError,data:De}),De}this.animator=new U(this.runtime,this.artboard,this.eventManager);var Pe;if(T.length>0||H.length>0?(Pe=T.concat(H),this.animator.initLinearAnimations(T,re),this.animator.initStateMachines(H,re)):Pe=[this.animator.atLeastOne(re,!1)],this.taskQueue.add({event:{type:re?ne.Play:ne.Pause,data:Pe}}),ce){var Be=this.file.defaultArtboardViewModel(Ee);if(Be!==null){var Qe=Be.defaultInstance();if(Qe!==null){var tt=new ie(Qe,null);this.bindViewModelInstance(tt)}}}}},S.prototype.drawFrame=function(){var m,T;!((m=document==null?void 0:document.timeline)===null||m===void 0)&&m.currentTime?this.loaded&&this.artboard&&!this.frameRequestId&&(this._boundDraw(document.timeline.currentTime),(T=this.runtime)===null||T===void 0||T.resolveAnimationFrame()):this.startRendering()},S.prototype.draw=function(m,T){var H;this.frameRequestId=null;var re=performance.now();this.lastRenderTime||(this.lastRenderTime=m),this.renderSecondTimer+=m-this.lastRenderTime,this.renderSecondTimer>5e3&&(this.renderSecondTimer=0,T==null||T());var ce=(m-this.lastRenderTime)/1e3;this.lastRenderTime=m;for(var Ee=this.animator.animations.filter(function(rt){return rt.playing||rt.needsScrub}).sort(function(rt){return rt.needsScrub?-1:1}),De=0,Pe=Ee;De<Pe.length;De++){var Be=Pe[De];Be.advance(ce),Be.instance.didLoop&&(Be.loopCount+=1),Be.apply(1)}for(var Qe=this.animator.stateMachines.filter(function(rt){return rt.playing}),tt=0,pt=Qe;tt<pt.length;tt++){var mt=pt[tt],rn=mt.reportedEventCount();if(rn)for(var nt=0;nt<rn;nt++){var Ut=mt.reportedEventAt(nt);if(Ut)if(Ut.type===L.OpenUrl){if(this.eventManager.fire({type:ne.RiveEvent,data:Ut}),this.automaticallyHandleEvents){var kt=document.createElement("a"),dt=Ut,jt=dt.url,Cn=dt.target,Pn=(0,c.sanitizeUrl)(jt);jt&&kt.setAttribute("href",Pn),Cn&&kt.setAttribute("target",Cn),Pn&&Pn!==c.BLANK_URL&&kt.click()}}else this.eventManager.fire({type:ne.RiveEvent,data:Ut})}mt.advanceAndApply(ce)}this.animator.stateMachines.length==0&&this.artboard.advance(ce);var Ke=this.renderer;Ke.clear(),Ke.save(),this.alignRenderer(),this._hasZeroSize||this.artboard.draw(Ke),Ke.restore(),Ke.flush(),this.animator.handleLooping(),this.animator.handleStateChanges(),this.animator.handleAdvancing(ce),this.frameCount++;var ht=performance.now();for(this.frameTimes.push(ht),this.durations.push(ht-re);this.frameTimes[0]<=ht-1e3;)this.frameTimes.shift(),this.durations.shift();(H=this._viewModelInstance)===null||H===void 0||H.handleCallbacks(),this.animator.isPlaying?this.startRendering():this.animator.isPaused?this.lastRenderTime=0:this.animator.isStopped&&(this.lastRenderTime=0)},S.prototype.alignRenderer=function(){var m=this,T=m.renderer,H=m.runtime,re=m._layout,ce=m.artboard;T.align(re.runtimeFit(H),re.runtimeAlignment(H),{minX:re.minX,minY:re.minY,maxX:re.maxX,maxY:re.maxY},ce.bounds,this._devicePixelRatioUsed*re.layoutScaleFactor)},Object.defineProperty(S.prototype,"fps",{get:function(){return this.durations.length},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"frameTime",{get:function(){return this.durations.length===0?0:(this.durations.reduce(function(m,T){return m+T},0)/this.durations.length).toFixed(4)},enumerable:!1,configurable:!0}),S.prototype.cleanup=function(){var m,T;this.destroyed=!0,this.stopRendering(),this.cleanupInstances(),this._observed!==null&&be.remove(this._observed),this.removeRiveListeners(),this.file&&((m=this.riveFile)===null||m===void 0||m.cleanup(),this.file=null),this.riveFile=null,this.deleteRiveRenderer(),this._audioEventListener!==null&&(B.remove(this._audioEventListener),this._audioEventListener=null),(T=this._viewModelInstance)===null||T===void 0||T.cleanup(),this._viewModelInstance=null,this._dataEnums=null},S.prototype.deleteRiveRenderer=function(){var m;(m=this.renderer)===null||m===void 0||m.delete(),this.renderer=null},S.prototype.cleanupInstances=function(){this.eventCleanup!==null&&this.eventCleanup(),this.stop(),this.artboard&&(this.artboard.delete(),this.artboard=null)},S.prototype.retrieveTextRun=function(m){var T;if(!m){console.warn("No text run name provided");return}if(!this.artboard){console.warn("Tried to access text run, but the Artboard is null");return}var H=this.artboard.textRun(m);if(!H){console.warn("Could not access a text run with name '".concat(m,"' in the '").concat((T=this.artboard)===null||T===void 0?void 0:T.name,"' Artboard. Note that you must rename a text run node in the Rive editor to make it queryable at runtime."));return}return H},S.prototype.getTextRunValue=function(m){var T=this.retrieveTextRun(m);return T?T.text:void 0},S.prototype.setTextRunValue=function(m,T){var H=this.retrieveTextRun(m);H&&(H.text=T)},S.prototype.play=function(m,T){var H=this;if(m=I(m),!this.readyForPlaying){this.taskQueue.add({action:function(){return H.play(m,T)}});return}this.animator.play(m),this.eventCleanup&&this.eventCleanup(),this.setupRiveListeners(),this.startRendering()},S.prototype.pause=function(m){var T=this;if(m=I(m),!this.readyForPlaying){this.taskQueue.add({action:function(){return T.pause(m)}});return}this.eventCleanup&&this.eventCleanup(),this.animator.pause(m)},S.prototype.scrub=function(m,T){var H=this;if(m=I(m),!this.readyForPlaying){this.taskQueue.add({action:function(){return H.scrub(m,T)}});return}this.animator.scrub(m,T||0),this.drawFrame()},S.prototype.stop=function(m){var T=this;if(m=I(m),!this.readyForPlaying){this.taskQueue.add({action:function(){return T.stop(m)}});return}this.animator&&this.animator.stop(m),this.eventCleanup&&this.eventCleanup()},S.prototype.reset=function(m){var T,H,re=m==null?void 0:m.artboard,ce=I(m==null?void 0:m.animations),Ee=I(m==null?void 0:m.stateMachines),De=(T=m==null?void 0:m.autoplay)!==null&&T!==void 0?T:!1,Pe=(H=m==null?void 0:m.autoBind)!==null&&H!==void 0?H:!1;this.cleanupInstances(),this.initArtboard(re,ce,Ee,De,Pe),this.taskQueue.process()},S.prototype.load=function(m){this.file=null,this.stop(),this.init(m)},Object.defineProperty(S.prototype,"layout",{get:function(){return this._layout},set:function(m){this._layout=m,(!m.maxX||!m.maxY)&&this.resizeToCanvas(),this.loaded&&!this.animator.isPlaying&&this.drawFrame()},enumerable:!1,configurable:!0}),S.prototype.resizeToCanvas=function(){this._layout=this.layout.copyWith({minX:0,minY:0,maxX:this.canvas.width,maxY:this.canvas.height})},S.prototype.resizeDrawingSurfaceToCanvas=function(m){if(this.canvas instanceof HTMLCanvasElement&&window){var T=this.canvas.getBoundingClientRect(),H=T.width,re=T.height,ce=m||window.devicePixelRatio||1;if(this.devicePixelRatioUsed=ce,this.canvas.width=ce*H,this.canvas.height=ce*re,this.resizeToCanvas(),this.drawFrame(),this.layout.fit===y.Layout){var Ee=this._layout.layoutScaleFactor;this.artboard.width=H/Ee,this.artboard.height=re/Ee}}},Object.defineProperty(S.prototype,"source",{get:function(){return this.src},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"activeArtboard",{get:function(){return this.artboard?this.artboard.name:""},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"animationNames",{get:function(){if(!this.loaded||!this.artboard)return[];for(var m=[],T=0;T<this.artboard.animationCount();T++)m.push(this.artboard.animationByIndex(T).name);return m},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"stateMachineNames",{get:function(){if(!this.loaded||!this.artboard)return[];for(var m=[],T=0;T<this.artboard.stateMachineCount();T++)m.push(this.artboard.stateMachineByIndex(T).name);return m},enumerable:!1,configurable:!0}),S.prototype.stateMachineInputs=function(m){if(this.loaded){var T=this.animator.stateMachines.find(function(H){return H.name===m});return T==null?void 0:T.inputs}},S.prototype.retrieveInputAtPath=function(m,T){if(!m){console.warn("No input name provided for path '".concat(T,"'"));return}if(!this.artboard){console.warn("Tried to access input: '".concat(m,"', at path: '").concat(T,"', but the Artboard is null"));return}var H=this.artboard.inputByPath(m,T);if(!H){console.warn("Could not access an input with name: '".concat(m,"', at path:'").concat(T,"'"));return}return H},S.prototype.setBooleanStateAtPath=function(m,T,H){var re=this.retrieveInputAtPath(m,H);re&&(re.type===R.Boolean?re.asBool().value=T:console.warn("Input with name: '".concat(m,"', at path:'").concat(H,"' is not a boolean")))},S.prototype.setNumberStateAtPath=function(m,T,H){var re=this.retrieveInputAtPath(m,H);re&&(re.type===R.Number?re.asNumber().value=T:console.warn("Input with name: '".concat(m,"', at path:'").concat(H,"' is not a number")))},S.prototype.fireStateAtPath=function(m,T){var H=this.retrieveInputAtPath(m,T);H&&(H.type===R.Trigger?H.asTrigger().fire():console.warn("Input with name: '".concat(m,"', at path:'").concat(T,"' is not a trigger")))},S.prototype.retrieveTextAtPath=function(m,T){if(!m){console.warn("No text name provided for path '".concat(T,"'"));return}if(!T){console.warn("No path provided for text '".concat(m,"'"));return}if(!this.artboard){console.warn("Tried to access text: '".concat(m,"', at path: '").concat(T,"', but the Artboard is null"));return}var H=this.artboard.textByPath(m,T);if(!H){console.warn("Could not access text with name: '".concat(m,"', at path:'").concat(T,"'"));return}return H},S.prototype.getTextRunValueAtPath=function(m,T){var H=this.retrieveTextAtPath(m,T);if(!H){console.warn("Could not get text with name: '".concat(m,"', at path:'").concat(T,"'"));return}return H.text},S.prototype.setTextRunValueAtPath=function(m,T,H){var re=this.retrieveTextAtPath(m,H);if(!re){console.warn("Could not set text with name: '".concat(m,"', at path:'").concat(H,"'"));return}re.text=T},Object.defineProperty(S.prototype,"playingStateMachineNames",{get:function(){return this.loaded?this.animator.stateMachines.filter(function(m){return m.playing}).map(function(m){return m.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"playingAnimationNames",{get:function(){return this.loaded?this.animator.animations.filter(function(m){return m.playing}).map(function(m){return m.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"pausedAnimationNames",{get:function(){return this.loaded?this.animator.animations.filter(function(m){return!m.playing}).map(function(m){return m.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"pausedStateMachineNames",{get:function(){return this.loaded?this.animator.stateMachines.filter(function(m){return!m.playing}).map(function(m){return m.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isPlaying",{get:function(){return this.animator.isPlaying},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isPaused",{get:function(){return this.animator.isPaused},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isStopped",{get:function(){return this.animator.isStopped},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"bounds",{get:function(){return this.artboard?this.artboard.bounds:void 0},enumerable:!1,configurable:!0}),S.prototype.on=function(m,T){this.eventManager.add({type:m,callback:T})},S.prototype.off=function(m,T){this.eventManager.remove({type:m,callback:T})},S.prototype.unsubscribe=function(m,T){console.warn("This function is deprecated: please use `off()` instead."),this.off(m,T)},S.prototype.removeAllRiveEventListeners=function(m){this.eventManager.removeAll(m)},S.prototype.unsubscribeAll=function(m){console.warn("This function is deprecated: please use `removeAllRiveEventListeners()` instead."),this.removeAllRiveEventListeners(m)},S.prototype.stopRendering=function(){this.loaded&&this.frameRequestId&&(this.runtime.cancelAnimationFrame?this.runtime.cancelAnimationFrame(this.frameRequestId):cancelAnimationFrame(this.frameRequestId),this.frameRequestId=null)},S.prototype.startRendering=function(){this.loaded&&this.artboard&&!this.frameRequestId&&(this.runtime.requestAnimationFrame?this.frameRequestId=this.runtime.requestAnimationFrame(this._boundDraw):this.frameRequestId=requestAnimationFrame(this._boundDraw))},S.prototype.enableFPSCounter=function(m){this.runtime.enableFPSCounter(m)},S.prototype.disableFPSCounter=function(){this.runtime.disableFPSCounter()},Object.defineProperty(S.prototype,"contents",{get:function(){if(this.loaded){for(var m={artboards:[]},T=0;T<this.file.artboardCount();T++){for(var H=this.file.artboardByIndex(T),re={name:H.name,animations:[],stateMachines:[]},ce=0;ce<H.animationCount();ce++){var Ee=H.animationByIndex(ce);re.animations.push(Ee.name)}for(var De=0;De<H.stateMachineCount();De++){for(var Pe=H.stateMachineByIndex(De),Be=Pe.name,Qe=new this.runtime.StateMachineInstance(Pe,H),tt=[],pt=0;pt<Qe.inputCount();pt++){var mt=Qe.input(pt);tt.push({name:mt.name,type:mt.type})}re.stateMachines.push({name:Be,inputs:tt})}m.artboards.push(re)}return m}},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"volume",{get:function(){return this.artboard&&this.artboard.volume!==this._volume&&(this._volume=this.artboard.volume),this._volume},set:function(m){this._volume=m,this.artboard&&(this.artboard.volume=m*B.systemVolume)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"artboardWidth",{get:function(){var m;return this.artboard?this.artboard.width:(m=this._artboardWidth)!==null&&m!==void 0?m:0},set:function(m){this._artboardWidth=m,this.artboard&&(this.artboard.width=m)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"artboardHeight",{get:function(){var m;return this.artboard?this.artboard.height:(m=this._artboardHeight)!==null&&m!==void 0?m:0},set:function(m){this._artboardHeight=m,this.artboard&&(this.artboard.height=m)},enumerable:!1,configurable:!0}),S.prototype.resetArtboardSize=function(){this.artboard?(this.artboard.resetArtboardSize(),this._artboardWidth=this.artboard.width,this._artboardHeight=this.artboard.height):(this._artboardWidth=void 0,this._artboardHeight=void 0)},Object.defineProperty(S.prototype,"devicePixelRatioUsed",{get:function(){return this._devicePixelRatioUsed},set:function(m){this._devicePixelRatioUsed=m},enumerable:!1,configurable:!0}),S.prototype.bindViewModelInstance=function(m){var T;this.artboard&&!this.destroyed&&m&&m.runtimeInstance&&(m.internalIncrementReferenceCount(),(T=this._viewModelInstance)===null||T===void 0||T.cleanup(),this._viewModelInstance=m,this.animator.stateMachines.length>0?this.animator.stateMachines.forEach(function(H){return H.bindViewModelInstance(m)}):this.artboard.bindViewModelInstance(m.runtimeInstance))},Object.defineProperty(S.prototype,"viewModelInstance",{get:function(){return this._viewModelInstance},enumerable:!1,configurable:!0}),S.prototype.viewModelByIndex=function(m){var T=this.file.viewModelByIndex(m);return T!==null?new ge(T):null},S.prototype.viewModelByName=function(m){var T=this.file.viewModelByName(m);return T!==null?new ge(T):null},S.prototype.enums=function(){if(this._dataEnums===null){var m=this.file.enums();this._dataEnums=m.map(function(T){return new Ae(T)})}return this._dataEnums},S.prototype.defaultViewModel=function(){if(this.artboard){var m=this.file.defaultArtboardViewModel(this.artboard);if(m)return new ge(m)}return null},S.prototype.getArtboard=function(m){var T,H;return(H=(T=this.riveFile)===null||T===void 0?void 0:T.getArtboard(m))!==null&&H!==void 0?H:null},S.missingErrorMessage="Rive source file or data buffer required",S.cleanupErrorMessage="Attempt to use file after calling cleanup.",S}(),ge=function(){function S(m){this._viewModel=m}return Object.defineProperty(S.prototype,"instanceCount",{get:function(){return this._viewModel.instanceCount},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"name",{get:function(){return this._viewModel.name},enumerable:!1,configurable:!0}),S.prototype.instanceByIndex=function(m){var T=this._viewModel.instanceByIndex(m);return T!==null?new ie(T,null):null},S.prototype.instanceByName=function(m){var T=this._viewModel.instanceByName(m);return T!==null?new ie(T,null):null},S.prototype.defaultInstance=function(){var m=this._viewModel.defaultInstance();return m!==null?new ie(m,null):null},S.prototype.instance=function(){var m=this._viewModel.instance();return m!==null?new ie(m,null):null},Object.defineProperty(S.prototype,"properties",{get:function(){return this._viewModel.getProperties()},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"instanceNames",{get:function(){return this._viewModel.getInstanceNames()},enumerable:!1,configurable:!0}),S}(),Ae=function(){function S(m){this._dataEnum=m}return Object.defineProperty(S.prototype,"name",{get:function(){return this._dataEnum.name},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"values",{get:function(){return this._dataEnum.values},enumerable:!1,configurable:!0}),S}(),ye;(function(S){S.Number="number",S.String="string",S.Boolean="boolean",S.Color="color",S.Trigger="trigger",S.Enum="enum",S.List="list",S.Image="image",S.Artboard="artboard"})(ye||(ye={}));var ie=function(){function S(m,T){this._parents=[],this._children=[],this._viewModelInstances=new Map,this._propertiesWithCallbacks=[],this._referenceCount=0,this._runtimeInstance=m,T!==null&&this._parents.push(T)}return Object.defineProperty(S.prototype,"runtimeInstance",{get:function(){return this._runtimeInstance},enumerable:!1,configurable:!0}),S.prototype.handleCallbacks=function(){this._propertiesWithCallbacks.length!==0&&(this._propertiesWithCallbacks.forEach(function(m){m.handleCallbacks()}),this._propertiesWithCallbacks.forEach(function(m){m.clearChanges()})),this._children.forEach(function(m){return m.handleCallbacks()})},S.prototype.addParent=function(m){this._parents.includes(m)||(this._parents.push(m),(this._propertiesWithCallbacks.length>0||this._children.length>0)&&m.addToViewModelCallbacks(this))},S.prototype.removeParent=function(m){var T=this._parents.indexOf(m);if(T!==-1){var H=this._parents[T];H.removeFromViewModelCallbacks(this),this._parents.splice(T,1)}},S.prototype.addToPropertyCallbacks=function(m){var T=this;this._propertiesWithCallbacks.includes(m)||(this._propertiesWithCallbacks.push(m),this._propertiesWithCallbacks.length>0&&this._parents.forEach(function(H){H.addToViewModelCallbacks(T)}))},S.prototype.removeFromPropertyCallbacks=function(m){var T=this;this._propertiesWithCallbacks.includes(m)&&(this._propertiesWithCallbacks=this._propertiesWithCallbacks.filter(function(H){return H!==m}),this._children.length===0&&this._propertiesWithCallbacks.length===0&&this._parents.forEach(function(H){H.removeFromViewModelCallbacks(T)}))},S.prototype.addToViewModelCallbacks=function(m){var T=this;this._children.includes(m)||(this._children.push(m),this._parents.forEach(function(H){H.addToViewModelCallbacks(T)}))},S.prototype.removeFromViewModelCallbacks=function(m){var T=this;this._children.includes(m)&&(this._children=this._children.filter(function(H){return H!==m}),this._children.length===0&&this._propertiesWithCallbacks.length===0&&this._parents.forEach(function(H){H.removeFromViewModelCallbacks(T)}))},S.prototype.clearCallbacks=function(){this._propertiesWithCallbacks.forEach(function(m){m.clearCallbacks()})},S.prototype.propertyFromPath=function(m,T){var H=m.split("/");return this.propertyFromPathSegments(H,0,T)},S.prototype.viewModelFromPathSegments=function(m,T){var H=this.internalViewModelInstance(m[T]);return H!==null?T==m.length-1?H:H.viewModelFromPathSegments(m,T++):null},S.prototype.propertyFromPathSegments=function(m,T,H){var re,ce,Ee,De,Pe,Be,Qe,tt,pt,mt,rn,nt,Ut,kt,dt,jt,Cn,Pn;if(T<m.length-1){var Ke=this.internalViewModelInstance(m[T]);return Ke!==null?Ke.propertyFromPathSegments(m,T+1,H):null}var ht=null;switch(H){case ye.Number:if(ht=(ce=(re=this._runtimeInstance)===null||re===void 0?void 0:re.number(m[T]))!==null&&ce!==void 0?ce:null,ht!==null)return new Se(ht,this);break;case ye.String:if(ht=(De=(Ee=this._runtimeInstance)===null||Ee===void 0?void 0:Ee.string(m[T]))!==null&&De!==void 0?De:null,ht!==null)return new pe(ht,this);break;case ye.Boolean:if(ht=(Be=(Pe=this._runtimeInstance)===null||Pe===void 0?void 0:Pe.boolean(m[T]))!==null&&Be!==void 0?Be:null,ht!==null)return new Ie(ht,this);break;case ye.Color:if(ht=(tt=(Qe=this._runtimeInstance)===null||Qe===void 0?void 0:Qe.color(m[T]))!==null&&tt!==void 0?tt:null,ht!==null)return new ee(ht,this);break;case ye.Trigger:if(ht=(mt=(pt=this._runtimeInstance)===null||pt===void 0?void 0:pt.trigger(m[T]))!==null&&mt!==void 0?mt:null,ht!==null)return new z(ht,this);break;case ye.Enum:if(ht=(nt=(rn=this._runtimeInstance)===null||rn===void 0?void 0:rn.enum(m[T]))!==null&&nt!==void 0?nt:null,ht!==null)return new P(ht,this);break;case ye.List:if(ht=(kt=(Ut=this._runtimeInstance)===null||Ut===void 0?void 0:Ut.list(m[T]))!==null&&kt!==void 0?kt:null,ht!==null)return new Y(ht,this);break;case ye.Image:if(ht=(jt=(dt=this._runtimeInstance)===null||dt===void 0?void 0:dt.image(m[T]))!==null&&jt!==void 0?jt:null,ht!==null)return new K(ht,this);break;case ye.Artboard:if(ht=(Pn=(Cn=this._runtimeInstance)===null||Cn===void 0?void 0:Cn.artboard(m[T]))!==null&&Pn!==void 0?Pn:null,ht!==null)return new x(ht,this);break}return null},S.prototype.internalViewModelInstance=function(m){var T;if(this._viewModelInstances.has(m))return this._viewModelInstances.get(m);var H=(T=this._runtimeInstance)===null||T===void 0?void 0:T.viewModel(m);if(H!==null){var re=new S(H,this);return re.internalIncrementReferenceCount(),this._viewModelInstances.set(m,re),re}return null},S.prototype.number=function(m){var T=this.propertyFromPath(m,ye.Number);return T},S.prototype.string=function(m){var T=this.propertyFromPath(m,ye.String);return T},S.prototype.boolean=function(m){var T=this.propertyFromPath(m,ye.Boolean);return T},S.prototype.color=function(m){var T=this.propertyFromPath(m,ye.Color);return T},S.prototype.trigger=function(m){var T=this.propertyFromPath(m,ye.Trigger);return T},S.prototype.enum=function(m){var T=this.propertyFromPath(m,ye.Enum);return T},S.prototype.list=function(m){var T=this.propertyFromPath(m,ye.List);return T},S.prototype.image=function(m){var T=this.propertyFromPath(m,ye.Image);return T},S.prototype.artboard=function(m){var T=this.propertyFromPath(m,ye.Artboard);return T},S.prototype.viewModel=function(m){var T=m.split("/"),H=T.length>1?this.viewModelFromPathSegments(T.slice(0,T.length-1),0):this;return H!=null?H.internalViewModelInstance(T[T.length-1]):null},S.prototype.internalReplaceViewModel=function(m,T){var H;if(T.runtimeInstance!==null){var re=((H=this._runtimeInstance)===null||H===void 0?void 0:H.replaceViewModel(m,T.runtimeInstance))||!1;if(re){T.internalIncrementReferenceCount();var ce=this.internalViewModelInstance(m);ce!==null&&(ce.removeParent(this),this._children.includes(ce)&&(this._children=this._children.filter(function(Ee){return Ee!==ce})),ce.cleanup()),this._viewModelInstances.set(m,T),T.addParent(this)}return re}return!1},S.prototype.replaceViewModel=function(m,T){var H,re=m.split("/"),ce=re.length>1?this.viewModelFromPathSegments(re.slice(0,re.length-1),0):this;return(H=ce==null?void 0:ce.internalReplaceViewModel(re[re.length-1],T))!==null&&H!==void 0?H:!1},S.prototype.incrementReferenceCount=function(){var m;this._referenceCount++,(m=this._runtimeInstance)===null||m===void 0||m.incrementReferenceCount()},S.prototype.decrementReferenceCount=function(){var m;this._referenceCount--,(m=this._runtimeInstance)===null||m===void 0||m.decrementReferenceCount()},Object.defineProperty(S.prototype,"properties",{get:function(){var m;return((m=this._runtimeInstance)===null||m===void 0?void 0:m.getProperties().map(function(T){return l({},T)}))||[]},enumerable:!1,configurable:!0}),S.prototype.internalIncrementReferenceCount=function(){this._referenceCount++},S.prototype.cleanup=function(){var m=this;if(this._referenceCount--,this._referenceCount<=0){this._runtimeInstance=null,this.clearCallbacks(),this._propertiesWithCallbacks=[],this._viewModelInstances.forEach(function(re){re.cleanup()}),this._viewModelInstances.clear();var T=_([],this._children,!0);this._children.length=0;var H=_([],this._parents,!0);this._parents.length=0,T.forEach(function(re){re.removeParent(m)}),H.forEach(function(re){re.removeFromViewModelCallbacks(m)})}},S}(),le=function(){function S(m,T){this.callbacks=[],this._viewModelInstanceValue=m,this._parentViewModel=T}return S.prototype.on=function(m){this.callbacks.length===0&&this._viewModelInstanceValue.clearChanges(),this.callbacks.includes(m)||(this.callbacks.push(m),this._parentViewModel.addToPropertyCallbacks(this))},S.prototype.off=function(m){m?this.callbacks=this.callbacks.filter(function(T){return T!==m}):this.callbacks.length=0,this.callbacks.length===0&&this._parentViewModel.removeFromPropertyCallbacks(this)},S.prototype.internalHandleCallback=function(m){},S.prototype.handleCallbacks=function(){var m=this;this._viewModelInstanceValue.hasChanged&&this.callbacks.forEach(function(T){m.internalHandleCallback(T)})},S.prototype.clearChanges=function(){this._viewModelInstanceValue.clearChanges()},S.prototype.clearCallbacks=function(){this.callbacks.length=0},Object.defineProperty(S.prototype,"name",{get:function(){return this._viewModelInstanceValue.name},enumerable:!1,configurable:!0}),S}(),pe=function(S){h(m,S);function m(T,H){return S.call(this,T,H)||this}return Object.defineProperty(m.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(T){this._viewModelInstanceValue.value=T},enumerable:!1,configurable:!0}),m.prototype.internalHandleCallback=function(T){T(this.value)},m}(le),Se=function(S){h(m,S);function m(T,H){return S.call(this,T,H)||this}return Object.defineProperty(m.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(T){this._viewModelInstanceValue.value=T},enumerable:!1,configurable:!0}),m.prototype.internalHandleCallback=function(T){T(this.value)},m}(le),Ie=function(S){h(m,S);function m(T,H){return S.call(this,T,H)||this}return Object.defineProperty(m.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(T){this._viewModelInstanceValue.value=T},enumerable:!1,configurable:!0}),m.prototype.internalHandleCallback=function(T){T(this.value)},m}(le),z=function(S){h(m,S);function m(T,H){return S.call(this,T,H)||this}return m.prototype.trigger=function(){return this._viewModelInstanceValue.trigger()},m.prototype.internalHandleCallback=function(T){T()},m}(le),P=function(S){h(m,S);function m(T,H){return S.call(this,T,H)||this}return Object.defineProperty(m.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(T){this._viewModelInstanceValue.value=T},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"valueIndex",{get:function(){return this._viewModelInstanceValue.valueIndex},set:function(T){this._viewModelInstanceValue.valueIndex=T},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"values",{get:function(){return this._viewModelInstanceValue.values},enumerable:!1,configurable:!0}),m.prototype.internalHandleCallback=function(T){T(this.value)},m}(le),Y=function(S){h(m,S);function m(T,H){return S.call(this,T,H)||this}return Object.defineProperty(m.prototype,"length",{get:function(){return this._viewModelInstanceValue.size},enumerable:!1,configurable:!0}),m.prototype.addInstance=function(T){T.runtimeInstance!=null&&(this._viewModelInstanceValue.addInstance(T.runtimeInstance),T.addParent(this._parentViewModel))},m.prototype.addInstanceAt=function(T,H){return T.runtimeInstance!=null&&this._viewModelInstanceValue.addInstanceAt(T.runtimeInstance,H)?(T.addParent(this._parentViewModel),!0):!1},m.prototype.removeInstance=function(T){T.runtimeInstance!=null&&(this._viewModelInstanceValue.removeInstance(T.runtimeInstance),T.removeParent(this._parentViewModel))},m.prototype.removeInstanceAt=function(T){this._viewModelInstanceValue.removeInstanceAt(T)},m.prototype.instanceAt=function(T){var H=this._viewModelInstanceValue.instanceAt(T);if(H!=null){var re=new ie(H,this._parentViewModel);return re}return null},m.prototype.swap=function(T,H){this._viewModelInstanceValue.swap(T,H)},m.prototype.internalHandleCallback=function(T){T()},m}(le),ee=function(S){h(m,S);function m(T,H){return S.call(this,T,H)||this}return Object.defineProperty(m.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(T){this._viewModelInstanceValue.value=T},enumerable:!1,configurable:!0}),m.prototype.rgb=function(T,H,re){this._viewModelInstanceValue.rgb(T,H,re)},m.prototype.rgba=function(T,H,re,ce){this._viewModelInstanceValue.argb(ce,T,H,re)},m.prototype.argb=function(T,H,re,ce){this._viewModelInstanceValue.argb(T,H,re,ce)},m.prototype.alpha=function(T){this._viewModelInstanceValue.alpha(T)},m.prototype.opacity=function(T){this._viewModelInstanceValue.alpha(Math.round(Math.max(0,Math.min(1,T))*255))},m.prototype.internalHandleCallback=function(T){T(this.value)},m}(le),K=function(S){h(m,S);function m(T,H){return S.call(this,T,H)||this}return Object.defineProperty(m.prototype,"value",{set:function(T){var H;this._viewModelInstanceValue.value((H=T==null?void 0:T.nativeImage)!==null&&H!==void 0?H:null)},enumerable:!1,configurable:!0}),m.prototype.internalHandleCallback=function(T){T()},m}(le),x=function(S){h(m,S);function m(T,H){return S.call(this,T,H)||this}return Object.defineProperty(m.prototype,"value",{set:function(T){this._viewModelInstanceValue.value(T.nativeArtboard)},enumerable:!1,configurable:!0}),m.prototype.internalHandleCallback=function(T){T()},m}(le),G=function(S){return d(void 0,void 0,void 0,function(){var m,T,H;return f(this,function(re){switch(re.label){case 0:return m=new Request(S),[4,fetch(m)];case 1:return T=re.sent(),[4,T.arrayBuffer()];case 2:return H=re.sent(),[2,H]}})})},I=function(S){return typeof S=="string"?[S]:S instanceof Array?S:[]},F={EventManager:Q,TaskQueueManager:N},Z=function(S){return d(void 0,void 0,void 0,function(){var m,T,H;return f(this,function(re){switch(re.label){case 0:return m=new Promise(function(ce){return k.getInstance(function(Ee){Ee.decodeAudio(S,ce)})}),[4,m];case 1:return T=re.sent(),H=new c.AudioWrapper(T),c.finalizationRegistry.register(H,T),[2,H]}})})},fe=function(S){return d(void 0,void 0,void 0,function(){var m,T,H;return f(this,function(re){switch(re.label){case 0:return m=new Promise(function(ce){return k.getInstance(function(Ee){Ee.decodeImage(S,ce)})}),[4,m];case 1:return T=re.sent(),H=new c.ImageWrapper(T),c.finalizationRegistry.register(H,T),[2,H]}})})},ue=function(S){return d(void 0,void 0,void 0,function(){var m,T,H;return f(this,function(re){switch(re.label){case 0:return m=new Promise(function(ce){return k.getInstance(function(Ee){Ee.decodeFont(S,ce)})}),[4,m];case 1:return T=re.sent(),H=new c.FontWrapper(T),c.finalizationRegistry.register(H,T),[2,H]}})})}})(),o})())}(Zf)),Zf.exports}var Md=I4();const L4=C4(Md),O4=fk({__proto__:null,default:L4},[Md]),f1={fontMap:{"RoslindaleDisplayCondensed-Light":"/rive/RoslindaleDisplayCondensed-Light-3462095.ttf"},imageMap:{}},M4={__name:"RivePlayer",props:{srcAll:{default:{src:"",artboard:"Main",animation:"Main"},required:!0},assets:{default:f1},textRuns:{default:{}},fit:{default:"contain"},alignment:{default:"center"},stateMachines:{default:null},autoplay:{default:!0},fpsCounter:{default:!1},logInstance:{default:!1}},emits:["load"],setup(t,{expose:e,emit:n}){const r=t,i=n,{Rive:o,Layout:s}=O4,a=j(null),u=j(null),c=_a(null),h=_a([]),l=j(!1),d=j(0),f=j(""),_=j("");let g=[],b=null;Ne(()=>a.value&&u.value,()=>$());function y(){var B,oe;const V=Math.min(window.devicePixelRatio,2);(B=c.value)==null||B.resizeDrawingSurfaceToCanvas(V),(oe=c.value)==null||oe.startRendering()}function w(){var V;g=[],(V=c.value)==null||V.cleanup(),b==null||b.disconnect(),b=null,c.value=null,l.value=!1}function A(){const V=M();Object.keys(V).forEach(B=>{V[B]})}function k(){const V=c.value;r.textRuns&&Object.keys(r.textRuns).forEach(B=>{V==null||V.setTextRunValue(B,r.textRuns[B])})}function R(){return r.assets||f1}function C(V){var oe;const B=((oe=R().fontMap)==null?void 0:oe[V.name])||null;if(!B){console.warn(`rive: ${r.srcAll.src} :: missing font asset: ${V.name}`);return}fetch(B).then(async se=>{const q=await Md.decodeFont(new Uint8Array(await se.arrayBuffer()));V.setFont(q),q.unref()})}function L(V){var oe,se;const B=((se=(oe=R())==null?void 0:oe.imageMap)==null?void 0:se[V.name])||null;if(!B){console.warn(`rive: ${r.srcAll.src} :: missing image asset: ${V.name}`);return}fetch(B).then(async q=>{const be=await Md.decodeImage(new Uint8Array(await q.arrayBuffer()));V.setRenderImage(be),be.unref()})}function M(){var Te;const V=c.value;if(!V)return null;const B=V.animator.animations[0].animation.duration,oe=V.animator.animations[0].animation.fps,se=B/oe,q=(Te=c.value.contents)==null?void 0:Te.artboards.map(he=>he.name),be=c.value.animationNames;return{src:c.value.src,rive:c.value,artboardNames:q,animationNames:be,artboardHeight:V._artboardHeight,artboardWidth:V._artboardWidth,ratio:V._artboardWidth/V._artboardHeight,fps:oe,durationFrames:B,durationSeconds:se,assetsRequested:g}}function $(V=!1){w();const B=r.logInstance||V;B&&console.group("RIVE INFO"),f.value=V?null:r.srcAll.animation||"Main",_.value=V?null:r.srcAll.artboard||"Main";let oe=!1;B&&r.srcAll.src,c.value=new o({src:r.srcAll.src,artboard:_.value,animation:f.value,canvas:u.value,layout:new s({fit:r.fit,alignment:r.alignment}),autoplay:r.autoplay,assetLoader:(se,q)=>{const be={name:se.name,fileExtension:se.fileExtension,cdnUuid:se.cdnUuid,isFont:se.isFont,isImage:se.isImage,bytes:q};return g.push(be),se.cdnUuid.length>0||q.length>0?!1:se.isFont?(C(se),!0):se.isImage?(L(se),!0):!1},onLoad:()=>{if(oe)return;y(),h.value=c.value.stateMachineInputs(r.stateMachines),r.fpsCounter&&c.value.enableFPSCounter(),B&&(V&&console.warn(`ERROR IN RIVE CONFIGURATION,: ${r.srcAll.src}, animation: ${r.srcAll.animation}, artboard: ${r.srcAll.artboard}`),(r.logInstance||V)&&A(),console.groupEnd());const se=M();d.value=se.durationSeconds,k(),l.value=!0,i("load")},onLoadError:se=>{V||(oe=!0,setTimeout(()=>$(!0),500))}}),b=new ResizeObserver(y),b.observe(u.value)}function U(V,B=null){var oe,se;B=B||f.value,(oe=c.value)==null||oe.scrub(B,V),(se=c.value)==null||se.startRendering()}let ne=null;function D(V,B=null){var se,q,be;if(B=B||f.value,V===ne)return;const oe=Ii(V)*d.value;(se=c.value)==null||se.pause(B),(q=c.value)==null||q.scrub(B,oe),(be=c.value)==null||be.startRendering(),ne=V}function Q(V=null){var B;V=V||f.value,(B=c.value)==null||B.play(V)}function N(V=null){var B;V=V||f.value,(B=c.value)==null||B.pause(V)}function W(V=null){var B;V=V||f.value,(B=c.value)==null||B.stop(V)}return xt(()=>{setTimeout(()=>{a.value=!0},50)}),Vt(()=>{w()}),e({animation:f,loaded:l,resize:y,instance:c,inputs:h,scrub:U,play:Q,pause:N,stop:W,progress:D,getInfo:M}),(V,B)=>(ae(),me("canvas",{ref_key:"canvasRef",ref:u,class:"RivePlayer"},null,512))}},vE=_t(M4,[["__scopeId","data-v-667a266b"]]),Ti=5.6;class F4{constructor(){Oe(this,"desktop",{elements:{heroRect:null},time:{swirlEnd:Ti,graphStart:Ti-.15,imageStackStart:Ti+2,quoteStart:Ti+4.5,keyAreaStart:Ti+5.5,approachStart:Ti+15.3}});Oe(this,"mobile",{elements:{heroRect:null},time:{swirlEnd:Ti,graphStart:Ti-.15,imageStackStart:Ti+2,quoteStart:Ti+4.5,keyAreaStart:Ti+5.5,approachStart:Ti+15.3}})}}const pr=new F4;function D4(t,e=0,n=1){return t<e?e:t>n?n:t}class yE{constructor({decel:e=.4,accel:n=.06,maxSpeed:r=.2}={}){this.maxSpeed=r,this.decel=e,this.accel=n,this.to=this.current=this.velocity=0}set(e){e=e===void 0?this.to:e,this.to=this.current=e,this.velocity=0}update(e){return this.to=e,this.process()}process(){const n=(this.to-this.current)*this.accel;return this.velocity+=n,this.velocity*=1-this.decel,this.velocity=D4(this.velocity,0-this.maxSpeed,this.maxSpeed),this.current+=this.velocity,this.current}}const Li=function(t){return t*=2,t<1?.5*t*t*t:.5*((t-=2)*t*t+2)},mc=function(t){return 1-Math.cos(t*Math.PI/2)},zo=function(t){return Math.sin(t*Math.PI/2)},Rl=function(t){return .5*(1-Math.cos(Math.PI*t))};function Ms(t,e=.3333){return t<e?1/(2*e)*t*t:t-e/2}const $4="/assets/desktop-1500-1080-homepage-approach%20section-refresh-v8-CGbbtDTB.riv",H4="/assets/mobile-375-520-homepage-approach%20section-refresh-v10-57ftYjte.riv",N4={desktop:{rive:$4,chapters:[{title:"DISCOVER",subtitle:`Our Ventures
  innovation approach `,body:"Based on a clear investment thesis, we discover promising technologies and leverage our unique resources and talent to build companies from the ground.up."},{title:"DEVELOP",subtitle:null,body:"Once the technology has been validated, we accelerate the development of breakthrough innovations and build resilient companies."},{title:"DEPLOY",subtitle:null,body:"We focus on driving down the costs and eliminating green premiums of clean technologies so they can be deployed globally"}]},mobile:{rive:H4,chapters:[{title:"DISCOVER",subtitle:`Our Ventures
  innovation approach `,body:"Based on a clear investment thesis, we discover promising technologies and leverage our unique resources and talent to build companies from the ground.up."},{title:"DEVELOP",subtitle:null,body:"Once the technology has been validated, we accelerate the development of breakthrough innovations and build resilient companies."},{title:"DEPLOY",subtitle:null,body:"We focus on driving down the costs and eliminating green premiums of clean technologies so they can be deployed globally"}]}},{gsap:Fc,SplitText:s_}=gn(),zi=Math.PI*2;function jr(t){Object.values(t).forEach(e=>{var n;return(n=e.timeline)==null?void 0:n.kill()})}function a_(t){return B4(Math.sin(t*43758.5453123)*43758.5453123)}function B4(t){return t-Math.floor(t)}function cr(t){return{baseRadius:1,radiusWander:.5,radiusFreq:.2,angleSpeed:1,angleWander:.5,angleFreq:.5,seed:a_(t*.01)}}function bE(t,e,{baseRadius:n=0,radiusWander:r=1,radiusFreq:i=.2,angleSpeed:o=1,angleWander:s=.5,angleFreq:a=.5,seed:u=0}={}){const c=t,h=u*zi,l=u*zi,d=(1-u)*zi,f=n+Math.sin(c*i+h)*r;let _=c*o+Math.sin(c*a+l)*s;_-=c+.75*o*1.4+Math.sin(c*a+l*1.3)*s*.5;let g=c*o+Math.cos(c*a+d)*s;g-=c+1.75*o*1.2+Math.cos(c*a+d*1.5)*s*.65;const b=Math.cos(_)*f*e,y=Math.sin(_)*f*e,w=Math.sin(g)*f*e;return[b,y,w]}function gt(t,e,n){return t>=e&&t<n}function Hl(t,e){return t.forEach(n=>{const r=`<${n}>`,i=`</${n}>`;e.includes(r)&&!e.includes(i)&&(e=e+i),e.includes(i)&&!e.includes(r)&&(e=r+e)}),e}function wE({timeline:t,lineElementsArray:e}={}){const n=t;let r=.25;e.forEach(i=>{var a;const o={duration:.6,y:0,ease:"circ.out"};n.set(i,{y:50},0),n.to(i,o,r),(a=i.wordSplit)==null||a.revert(),i.wordSplit=s_.create(i,{type:"words"});const s={duration:.001,autoAlpha:1,stagger:o.duration*.8/i.wordSplit.words.length};n.set(i.wordSplit.words,{autoAlpha:0},0),Fc.set(i.wordSplit.words,{autoAlpha:0},0),n.to(i.wordSplit.words,s,r+.01),r+=.6})}function Es({timeline:t,lineElementsArray:e,outroOffset:n=.01,x:r=100}={}){const i=t;let o=.25;e.forEach(c=>{var d;const h={duration:.6,x:0,ease:"circ.out"};i.set(c,{x:r},0),i.to(c,h,o),(d=c.wordSplit)==null||d.revert(),c.wordSplit=s_.create(c,{type:"words"});const l={duration:.001,autoAlpha:1,stagger:h.duration*.8/c.wordSplit.words.length};i.set(c.wordSplit.words,{autoAlpha:0},0),Fc.set(c.wordSplit.words,{autoAlpha:0},0),i.to(c.wordSplit.words,l,o+.01),o+=.6});const s=i.duration();o=n+s+.01,e.forEach(c=>{i.to(c.wordSplit.words,{duration:.001,autoAlpha:0,stagger:.1},o),o+=.1});const a=i.duration();return s/a}function SE({timeline:t,lineElementsArray:e,outroOffset:n=.01,x:r=100}={}){const i=t;let o=.25;e.forEach(h=>{var f;const l={duration:.6,x:0,ease:"circ.out"};i.set(h,{x:r},0),i.to(h,l,o),(f=h.wordSplit)==null||f.revert(),h.wordSplit=s_.create(h,{type:"words"});const d={duration:.001,autoAlpha:1,stagger:l.duration*.8/h.wordSplit.words.length};i.set(h.wordSplit.words,{autoAlpha:0},0),Fc.set(h.wordSplit.words,{autoAlpha:0},0),i.to(h.wordSplit.words,d,o+.01),o+=.6});const s=i.duration();o=n+s;const a="circ.in";e.forEach(h=>{i.to(h,{duration:.3,x:-r*.5,ease:a},o),i.to(h,{duration:.001,autoAlpha:0},o+.3),o+=.2});const u=i.duration();return s/u}function gh({timeline:t,lineElementsArray:e,x:n=100}={}){const r=t;let i=0;e.forEach((u,c)=>{const h={duration:1.5-c*.2,x:0,ease:"circ.out"};r.set(u,{x:n,autoAlpha:0},0),Fc.set(u,{x:n,autoAlpha:0},0),r.to(u,h,i),r.to(u,{duration:0,autoAlpha:1},i+.05),i+=.3});const o=r.duration();e.forEach(u=>{r.to(u,{duration:.5,autoAlpha:0},o+.01)});const s=r.duration();return o/s}function Fd({timeline:t,lineElementsArray:e,lineDuration:n,startTime:r}={}){const i=t;let o=r;e.forEach((s,a)=>{const u={duration:n,y:0,ease:"circ.out"};i.set(s,{y:"11cqh",autoAlpha:0},0),Fc.set(s,{y:"11cqh",autoAlpha:0},0),i.to(s,u,o),i.to(s,{duration:0,autoAlpha:1},o+n*.3),o+=n*.3})}function TE({timeline:t,lineElementsArray:e,lineDuration:n,startTime:r}={}){const i=t;let o=r;e.forEach((s,a)=>{const u={duration:n,y:"-11cqh",ease:"circ.in"};i.to(s,u,o),i.to(s,{duration:0,autoAlpha:0},o+n*.8),o+=n*.1})}function EE(t,e=.5){if(!Array.isArray(t)||t.length<2)throw new Error("points must be an array of [input, output] pairs with length >= 2");const n=t.map(o=>o[0]),r=t.map(o=>o[1]);function i(o,s,a,u,c){const h=(a-o)*e,l=(u-s)*e,d=c*c,f=d*c;return(2*f-3*d+1)*s+(f-2*d+c)*h+(-2*f+3*d)*a+(f-d)*l}return function(s){let a=0;for(;a<n.length-1&&s>n[a+1];)a++;for(;a>0&&s<n[a];)a--;const u=r[Math.max(a-1,0)],c=r[a],h=r[Math.min(a+1,r.length-1)],l=r[Math.min(a+2,r.length-1)],d=n[a],f=n[Math.min(a+1,n.length-1)],_=(s-d)/(f-d);return i(u,c,h,l,_)}}const xn=function(t=()=>{},e=!0,n=-1,r=!1){let i=[];const o=()=>{i.forEach(s=>s==null?void 0:s()),i=[]};return xt(()=>{i.push(Je.subscribeResize(t,e,n)),r&&i.push(Je.subscribeBodyHeight(t,e,n))}),wc(()=>{o()}),o};class V4{constructor(){Oe(this,"_update",e=>{const n=e-this._prevElapsed;this._prevElapsed=e;let r=this._fns.length;for(;r--;)this._fns[r]&&this._fns[r]({elapsed:e,delta:n});this.rafId=lt.isSSR?null:window.requestAnimationFrame(this._update)});Oe(this,"_updateWithStats",e=>{const n=e-this._prevElapsed;this._prevElapsed=e,this.stats.begin();const r=this._fns.length;for(let i=0;i<r;i++)this._fns[i]&&this._fns[i]({elapsed:e,delta:n});this.stats.end(),this.rafId=lt.isSSR?null:window.requestAnimationFrame(this._updateWithStats)});Oe(this,"start",()=>{this.running||(this.running=!0,this.rafId=lt.isSSR?null:window.requestAnimationFrame(this._update))});Oe(this,"stop",()=>{window.cancelAnimationFrame(this.rafId),this.running=!1});Oe(this,"add",(e,n=-1)=>typeof e=="function"?this._fns.includes(e)?!1:(this._fns.push(e),e._callback_order=n===-1?1e6:n,n>-1&&this._fns.sort((r,i)=>r._callback_order-i._callback_order),!0):!1);Oe(this,"remove",e=>{const n=this._fns.indexOf(e);n>=0&&this._fns.splice(n,1)});this.running=!1,this.rafId=null,this._fns=[],this._prevElapsed=0}async startWithStats(){const e=await zr(()=>import("./stats.min-CXbiH0Ij.js").then(n=>n.s),[]);this.stats=new e.default,this.stats.showPanel(0),this.stats.dom.id="stats",lt.isClient&&document.querySelector("html").appendChild(this.stats.dom),!this.running&&(this.running=!0,this.rafId=lt.isSSR?null:window.requestAnimationFrame(this._updateWithStats))}}const Hm=new V4;function So(t=()=>{},e={}){const n=xa({autoplay:!0,delegate:null,...e}),r=e.order||-1,i=n.delegate!==null,o=j(i?n.delegate:n.autoplay),s=j(!0),a=l=>{t({...l,isFirstTick:s.value}),s.value=!1},u=()=>{i||(o.value=!0),Hm.add(a,r)},c=()=>{i||(o.value=!1),Hm.remove(a)},h=()=>{i&&(o.value=n.delegate),o.value?u():c()};return Ne(()=>n.delegate,()=>h()),xt(()=>h()),Db(()=>h()),wc(()=>c()),i?{isActive:o,isFirstTick:s}:{isActive:o,isFirstTick:s,pause:c,resume:u}}const U4={key:1,class:"HomeApproach-inner"},j4={key:0,ref:"chaptersRef",class:"HomeApproach-chapters"},W4={class:"HomeApproach-chapter-inner"},z4={__name:"HomeApproachMo",props:{block:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=Ce(()=>n.block),o=Ce(()=>i.value.chapters),s={radar:"Loop Radar",smallDots:"Init Loop",largeDot:"Loop B",whiteDot:"Loop C",main:"main"},a=Ce(()=>{var Ae;return{src:((Ae=i.value)==null?void 0:Ae.rive)||"",artboard:"main",animation:s.main}}),u={dots:.307,bigDot:.4756,premium:.665},c={dots:[u.dots,u.dots+.04],bigDot:[u.bigDot,u.bigDot+.01],premium:[u.premium-0,1]},h=[u.dots,u.bigDot,u.premium],l=[c.dots[1],c.bigDot[1],c.premium[1]],d=EE([[-1,0],[0,h[0]],[.2,l[0]],[1,h[1]],[1.2,l[1]],[2,h[2]],[3,1]],.4),f=j(null),_=j(null),g={decel:.8,accel:.5,maxSpeed:.01};new yE(g);const b=j(!1),y=j(!1),w=j(!1),A=j(!1),k={[s.radar]:0,[s.smallDots]:0,[s.largeDot]:0,[s.whiteDot]:0},R=j(!1);function C(){Object.values(s).forEach(Ae=>{f.value.stop(Ae)}),R.value=!0,r("load"),Te()}const L=wn(),M=[],$=[],U=j(!1),ne=j(0);j(0);const D={indexEased:0,indexLinear:0},Q=j(null),N=j(!1),{gsap:W}=gn(),V={main:{timeline:null}};function B(){const Ae=V.main;Ae.timeline=W.timeline({paused:!0}),Ae.timeline.set(D,{indexEased:-1},0),Ae.timeline.set(D,{indexLinear:-1},0),Ae.timeline.to(D,{indexLinear:3,ease:"linear",duration:1},0);const ye=1/4,ie=ye*.1;for(let le=0;le<4;le++)Ae.timeline.to(D,{indexEased:le,ease:"sine.inOut",duration:ye-ie},ye*le)}function oe(){const Ae=f.value,{indexLinear:ye}=D,ie=d(ye);Ae&&Ae.progress(ie),b.value=gt(ie,...c.dots),y.value=gt(ie,...c.dots),w.value=gt(ie,...c.bigDot),A.value=gt(ie,...c.premium)}function se(Ae,ye){var ie,le,pe;ye?((ie=f.value)==null||ie.play(Ae),k[Ae]=setInterval(()=>{var Se;return(Se=f.value)==null?void 0:Se.play(Ae)},3e3)):(clearInterval(k[Ae]),(le=f.value)==null||le.pause(Ae),(pe=f.value)==null||pe.scrub(0,Ae))}Ne(()=>b.value&&R.value,Ae=>se(s.radar,Ae)),Ne(()=>y.value&&R.value,Ae=>se(s.smallDots,Ae)),Ne(()=>w.value&&R.value,Ae=>se(s.largeDot,Ae)),Ne(()=>A.value&&R.value,Ae=>se(s.whiteDot,Ae));function q(){var Ie;const Ae=Je.lvh,ye=L.scrollSubPixel/Ae,ie=pr.mobile.time.approachStart,le=[ie,ie+4.2],pe=ie+4.8,Se=V.main;if(N.value=gt(ye,le[0],pe),N.value){(Ie=Se.timeline)==null||Ie.progress(je(ye,le[0],le[1]));const z=Ms(je(ye,le[0]+.8,le[0]),.2)*Ae*.5;_.value.style.translate=`0px ${z}px`;const P=Ms(je(ye,pe-1,pe),.2)*-Ae;Q.value.style.translate=`0px ${P}px`}}function be(){const Ae=Je.lvh;L.scrollSubPixel/Ae;const{indexEased:ye}=D;ne.value=Math.round(ye);for(let ie=0;ie<M.length;ie++){let le=M[ie];const pe=0;let Se=Math.min(ye,2)*-Ae;Se+=ie*Ae,le.style.translate=`${pe}px ${Se}px`,le=$[ie];const Ie=je(ye,ie-.4,ie-.25);le.style.opacity=Ie}}function Te(){U.value&&(q(),N.value&&be())}function he(){N.value&&oe()}function ge(){Te()}return Ne(()=>L.scrollSubPixel,()=>{Te()}),xn(ge),So(he),xt(()=>{Lt(()=>{U.value=!0,B(),Te()})}),Vt(()=>{U.value=!1}),(Ae,ye)=>{var le;const ie=vE;return ae(),me("div",{ref_key:"rootRef",ref:Q,class:st(["HomeApproach",{visible:_e(N)}])},[_e(a)?(ae(),me("div",{key:0,ref_key:"riveParentRef",ref:_,class:"HomeApproach-rive-container"},[Ve(ie,{ref_key:"rivePlayerRef",ref:f,"src-all":_e(a),"log-instance":!1,autoplay:!0,onLoad:C},null,8,["src-all"])],512)):bt("",!0),_e(a)?(ae(),me("div",U4,[(le=_e(o))!=null&&le.length?(ae(),me("div",j4,[(ae(!0),me(Ye,null,ut(_e(o),(pe,Se)=>(ae(),me("div",{ref_for:!0,ref:Ie=>M[Se]=Ie,key:`chapter-${Se}`,class:"HomeApproach-chapter"},[J("div",W4,[pe.title?(ae(),me("div",{key:0,ref_for:!0,ref:Ie=>Ie,class:"HomeApproach-title"},We(pe.title),513)):bt("",!0),pe.subtitle?(ae(),me("div",{key:1,ref_for:!0,ref:Ie=>Ie,class:"HomeApproach-subtitle"},We(pe.subtitle),513)):bt("",!0),pe.body?(ae(),me("div",{key:2,ref_for:!0,ref:Ie=>$[Se]=Ie,class:"HomeApproach-body"},We(pe.body),513)):bt("",!0)])]))),128))],512)):bt("",!0)])):bt("",!0)],2)}}},q4=_t(z4,[["__scopeId","data-v-7c969422"]]);let G4=0;const Y4=5e3;function K4(){const t=j(!1),e=G4++,n=e*Y4;let r=null;function i(){if(n===0){t.value=!0;return}r=setTimeout(()=>{t.value=!0},n)}function o(){r&&clearTimeout(r)}return{canLoad:t,start:i,cancel:o,slot:e,delay:n}}const X4={class:"InlineVideo"},Q4=["src"],J4=["src"],Z4={__name:"InlineVideo",props:{videoUrl:{type:String,required:!0},webmUrl:{type:String,required:!1},imageUrl:{type:String,required:!0},fallbackToStatic:{type:Boolean,default:!1}},emits:["imgload","videoplay"],setup(t,{expose:e,emit:n}){const r=t,i=n,o={imgLoaded:"imgload",videoPlaying:"videoplay"};let s;const a=j(null),u=j(null),c=j(!1),h=j(!1),l=j(!1),{gsap:d}=gn(),{canLoad:f,start:_,cancel:g}=K4();function b(){c.value=!0,i(o.imgLoaded)}async function y(){try{await s.play()}catch(R){console.warn("Autoplay failed:",R.name,R.message)}}Ne(()=>r.fallbackToStatic,R=>{u.value&&(d.killTweensOf(u.value),d.set(u.value,{autoAlpha:R?1:0}))}),Ne(()=>h.value&&u.value,R=>{R&&(i(o.videoPlaying),d.to(u.value,{duration:.2,autoAlpha:0}))});const w=Ce(()=>{const R=lt.android||lt.windows,C=r.webmUrl||r.videoUrl;return R?C:r.videoUrl});function A(){!h.value&&s&&s.currentTime>0&&(h.value=!0,s==null||s.removeEventListener("timeupdate",A))}function k(){Lt(()=>{s=a.value,s&&(s.muted=!0,s.addEventListener("timeupdate",A),s.readyState>=3?y():s.addEventListener("canplay",y,{once:!0}))})}return Ne(f,R=>{R&&k()}),xt(()=>{l.value=!0,_()}),Vt(()=>{l.value=!1,g(),s==null||s.removeEventListener("timeupdate",A)}),e({isImgLoaded:c,isVideoPlaying:h}),(R,C)=>(ae(),me("div",X4,[!t.fallbackToStatic&&_e(f)?(ae(),me("video",{key:0,ref_key:"videoRef",ref:a,class:"InlineVideo-video",src:_e(w),preload:"auto",playsinline:"","webkit-playsinline":"",autoplay:"",muted:"",loop:"",disablepictureinpicture:""},null,8,Q4)):bt("",!0),J("img",{ref_key:"imageRef",ref:u,src:t.imageUrl,class:"InlineVideo-image",alt:"video placeholder",onLoad:b},null,40,J4)]))}},Nl=_t(Z4,[["__scopeId","data-v-ee1f6f48"]]),eF={__name:"KeyAreasBtnLabel",props:{currentIndex:{type:Number,default:0},itemIndex:{type:Number,default:0},label:{type:String,default:"this is default"}},setup(t,{expose:e}){const n=t,{gsap:r}=gn(),i=j(null),o=j(!1),s=[];let a,u=20;const c=Ce(()=>{var b;return(b=n.label)==null?void 0:b.split(" ")}),h=Ce(()=>n.itemIndex===n.currentIndex,{});Ne(()=>h.value&&o.value,b=>{!b&&l(),b&&d()},{immediate:!0});function l(){if(!o.value)return;a==null||a.kill(),a=r.timeline(),a.to(s,{duration:.5,stagger:.05,y:-u,ease:"sine.in"})}function d(){if(!o.value)return;a==null||a.kill(),a=r.timeline();const b=a,y="sine.out";b.set(s,{y:u}),b.to(s,{delay:.1,duration:.5,stagger:.05,y:0,ease:y})}function f(){i.value&&(u=i.value.getBoundingClientRect().height*2)}xn(f);function _(){h.value||r.set(s,{y:u})}xt(()=>{Lt(()=>{o.value=!0,f(),_()})}),Vt(()=>{o.value=!1});function g(){var b;return((b=i.value)==null?void 0:b.getBoundingClientRect().width)||-1}return e({getLabelWidth:g}),(b,y)=>(ae(),me("div",{class:st(["KeyAreasBtnLabel",{isCurrentIndex:_e(h)}])},[J("div",{ref_key:"labelRef",ref:i,class:"KeyAreasBtnLabel-label"},[(ae(!0),me(Ye,null,ut(_e(c),(w,A)=>(ae(),me("div",{key:`KeyAreasBtnLabel-word-${A}`,ref_for:!0,ref:k=>s[A]=k,class:"KeyAreasBtnLabel-word"},We(w),1))),128))],512)],2))}},tF=_t(eF,[["__scopeId","data-v-e196f883"]]),nF={class:"KeyAreasBtn-labels-wrap"},rF={class:"KeyAreasBtn-labels"},iF={class:"KeyAreasBtn-labels-wrap"},oF={class:"KeyAreasBtn-labels"},sF={__name:"KeyAreasBtn",props:{labelIndex:{type:Number,default:0},areas:{type:Array,default:[]}},setup(t){const e=t,n=Pl(),r=wn(),i=vi(),{gsap:o}=gn(),s=[],a=j(null),u=j(null),c=j(null),h=j(null),l=j(null),d=j(!1),f=j(!1),_=j(!1),g={roll:{timeline:null},width:{timeline:null}};function b(){const W=Je.lvh,V=r.scrollSubPixel/W,B=pr.desktop.time.keyAreaStart;if(d.value=gt(V,B+3,B+10.5),d.value){let oe,se;gt(V,B+2.8,B+3.3)?(se=mc(je(V,B+3.2,B+2.9))*W*.15,oe=zo(je(V,B+2.9,B+3.2))):oe=1,u.value.style.translate=`0px ${se}px`,u.value.style.opacity=oe;const q=Rl(je(V,B+9.5,B+10.5))*W*.13;a.value.style.translate=`0px ${q}px`}}function y(){f.value=!0}function w(){f.value=!1}function A(W){var B;return(B=s[W])==null?void 0:B.getLabelWidth()}const k=j(270);Ne(k,W=>{_.value&&(c.value.style.width=`${W}px`,l.value.style.width=`${W}px`)});function R(W){var oe;const V=g.roll;(oe=V.timeline)==null||oe.kill(),V.timeline=o.timeline(),V.timeline.to(k,{value:W,duration:.3,ease:"sine.inOut"},.1)}function C(){const W=$.value;if(W>-1){const V=A(W),B=Je.landscape?56:32,oe=Math.max(V+B,140);R(oe)}}function L(){var V;const W=g.roll;(V=W.timeline)==null||V.kill(),W.timeline=o.timeline(),W.timeline.set(h.value,{y:"100%"},0),W.timeline.to(h.value,{duration:.45,ease:"sine.inOut",y:0},.01)}function M(W=.45){var B;const V=g.roll;(B=V.timeline)==null||B.kill(),V.timeline=o.timeline(),V.timeline.to(h.value,{duration:W,ease:"sine.inOut",y:"-100%"})}const $=Ce(()=>f.value?-1:e.labelIndex,{});Ne($,W=>{C()});const U=Ce(()=>f.value?e.labelIndex:-1,{});Ne(f,W=>{lt.touchScreen||(W&&L(),!W&&M())});const ne=Ce(()=>{var W,V;if((W=e.areas)!=null&&W.length){const B=Ii(e.labelIndex,0,e.areas.length-1);return((V=e.areas[B])==null?void 0:V.url)||"no modal url"}return""});function D(){if(ne.value.startsWith("/")){n.push(ne.value);return}i.setModalState(di.CONTENT+ne.value)}function Q(){_.value&&b()}function N(){d.value=!1,M(0),Q(),C()}return Ne(()=>r.scrollSubPixel,()=>{Q()}),xt(()=>{Lt(()=>{_.value=!0,N()})}),Vt(()=>{_.value=!1,jr(g)}),(W,V)=>{const B=tF;return ae(),me("div",{ref_key:"rootRef",ref:a,class:st(["KeyAreasBtn",{visible:_e(d)}])},[J("div",{ref_key:"btnRef",ref:u,class:"KeyAreasBtn-btn",onMouseover:y,onMouseout:w},[J("div",{ref_key:"greenBgRef",ref:l,class:"KeyAreasBtn-bg green"},null,512),J("div",nF,[J("div",rF,[(ae(!0),me(Ye,null,ut(t.areas,(oe,se)=>(ae(),Kt(B,{key:`KeyAreasBtn-label-${se}`,ref_for:!0,ref:q=>s[se]=q,label:oe.label,"current-index":_e($),"item-index":se},null,8,["label","current-index","item-index"]))),128))])]),J("div",{ref_key:"rollParentBgRef",ref:c,class:"KeyAreasBtn-bg masked"},[J("div",{ref_key:"rollWhiteBgRef",ref:h,class:"KeyAreasBtn-bg white"},null,512)],512),J("div",iF,[J("div",oF,[(ae(!0),me(Ye,null,ut(t.areas,(oe,se)=>(ae(),Kt(B,{key:`KeyAreasBtn-label-${se}`,ref_for:!0,ref:q=>q,label:oe.label,"current-index":_e(U),"item-index":se},null,8,["label","current-index","item-index"]))),128))])]),J("button",{class:"KeyAreasBtn-link",onClick:D})],544)],2)}}},kE=_t(sF,[["__scopeId","data-v-c25791e6"]]),aF=["innerHTML"],lF={__name:"KeyAreasOutroMo",props:{block:{type:Object,required:!0,default:()=>({})}},setup(t){const e=t,n=wn(),r=Ce(()=>e.block.content.outro),i=j(!1),o=j(null),s=[],a=Ce(()=>{var w,A;let y=((A=(w=r.value)==null?void 0:w.title)==null?void 0:A.split(`
`))||[];return y=y.map(k=>Hl(["code","em"],k)),y}),u=j(null),c=j(null),h=j(!1),{gsap:l}=gn(),d={main:{timeline:null}};function f(){const y=d.main;y.timeline=l.timeline({paused:!0}),wE({timeline:y.timeline,lineElementsArray:s})}function _(){var C;const y=Je.lvh,w=n.scrollSubPixel/y,A=pr.mobile.time.keyAreaStart,k=d.main;h.value=gt(w,A+6,A+10.5),h.value&&((C=k.timeline)==null||C.progress(je(w,A+8.4,A+8.8)));const R=Rl(je(w,A+9.5,A+10.5))*y*.13;c.value.style.translate=`0px ${R}px`}function g(){i.value&&_()}function b(){g()}return Ne(()=>n.scrollSubPixel,()=>{g()}),xn(b),xt(()=>{Lt(()=>{i.value=!0,f(),g()})}),Vt(()=>{i.value=!1}),(y,w)=>(ae(),me("div",{ref_key:"rootRef",ref:u,class:st(["KeyAreasOutro",{visible:_e(h)}])},[J("div",{ref_key:"contentRef",ref:c,class:"KeyAreasOutro-inner"},[J("div",{ref_key:"titleRef",ref:o,class:"KeyAreasOutro-title"},[(ae(!0),me(Ye,null,ut(_e(a),(A,k)=>(ae(),me("div",{ref_for:!0,ref:R=>s[k]=R,key:`titleLine-${k}`,innerHTML:A},null,8,aF))),128))],512)],512)],2))}},uF=_t(lF,[["__scopeId","data-v-498ebf65"]]);class or{constructor(){Oe(this,"width",1e3);Oe(this,"height",1e3);Oe(this,"top",0);Oe(this,"left",0)}get right(){return this.left+this.width}get bottom(){return this.top+this.height}updateFromElement(e){if(e){const n=e.getBoundingClientRect();this.width=n.width,this.height=n.height,this.top=n.top,this.left=n.left}}static clipPathInsetFromRects(e,n){const r={top:e.top-n.top,left:e.left-n.left,right:n.right-e.right,bottom:n.bottom-e.bottom};return`inset(${r.top}px ${r.right}px ${r.bottom}px ${r.left}px)`}}const cF={class:"KeyAreas-title-wrap"},fF={ref:"titleMaskedRef",class:"KeyAreas-title"},dF=["innerHTML"],hF={key:0,class:"KeyAreas-rect-wrap"},pF={class:"KeyAreas-video"},mF={class:"KeyAreas-content-wrap"},gF={class:"KeyAreas-content unmasked"},_F={class:"KeyAreas-content"},vF={class:"KeyAreas-content-body-inner"},yF={class:"KeyAreas-content-eyebrow"},bF={__name:"KeyAreasMo",props:{block:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=j(!1);let o=0;Ne(()=>i.value,P=>{P&&r("load")},{immediate:!0});const s=vi(),a=wn(),{gsap:u}=gn(),c=j(!1),h=[],l=[],d=[],f=j(null),_=j(null),g=j(null),b=j(null),y=j(null),w=j(0),A=j(null),k=j(!1),R=Ce(()=>s.lowFPS),C=j(!1);Ne(C,P=>{const Y=[_.value,g.value];Y[0]&&Y[1]&&Y.forEach(ee=>{ee.style.visibility=P?"visible":"hidden"})});const L={title:{timeline:null,bisection:.5},areas:{timeline:null}},M=Ce(()=>n.block),$=Ce(()=>{var P;return(P=M.value)==null?void 0:P.content.areas}),U=Ce(()=>{var P;return(P=M.value)==null?void 0:P.content.main.title}),ne=Ce(()=>{var Y;let P=((Y=U.value)==null?void 0:Y.split(`
`))||[];return P=P.map(ee=>Hl(["code","em"],ee)),P}),D=j(""),Q=j(""),N=j("");class W{constructor(Y=0,ee=0){Oe(this,"clusterRectScale",1);Oe(this,"clusterOverShoot",-1);Oe(this,"clusterRadius",0);Oe(this,"stackLerp",0);Oe(this,"clusterRect",null);Oe(this,"stackRect",null);Oe(this,"outputRect",null);Oe(this,"clusterIndex",0);Oe(this,"index",0);Oe(this,"wanderData",{});this.index=0,this.clusterIndex=ee,this.clusterRect=new or,this.stackRect=new or,this.outputRect=new or,this.wanderData=cr(Y)}}const V={areaIndex:0,areaTitleIndex:-1,areas:[new W(0,3),new W(1,3),new W(2,2),new W(3,1),new W(4,0),new W(5)]},B=Ce(()=>{var ee,K;const P=[];(ee=$.value)==null||ee.forEach(x=>{P.push({label:x.button,url:x.url})});const Y=(K=M.value)==null?void 0:K.content.outro;return P.push({label:Y.button,url:Y.url}),P}),oe=j(0);function se(){var Y,ee;jr(L);let P=L.title;(Y=P.timeline)==null||Y.kill(),P.timeline=u.timeline({paused:!0}),P.bisection=gh({timeline:P.timeline,lineElementsArray:h,x:50}),P=L.areas,(ee=P.timeline)==null||ee.kill(),P.timeline=u.timeline({paused:!0}),V.areas.forEach((K,x)=>{const{clusterIndex:G}=K;P.timeline.set(K,{clusterRadius:0,stackLerp:0,clusterRectScale:1.7,clusterOverShoot:-3},0);const I=G*.08;P.timeline.to(K,{clusterRectScale:1,duration:1,ease:"power3.inOut"},1+I),P.timeline.to(K,{clusterRadius:1,duration:1,ease:"power3.inOut"},1+I),P.timeline.set(K,{clusterOverShoot:-1},.8),P.timeline.to(K,{clusterOverShoot:0,duration:.6,ease:"sine.inOut"},1+I),P.timeline.to(K,{stackLerp:1,duration:1.4,ease:"power2.inOut"},3.4-x*.05),P.timeline.set(V,{areaIndex:0,areaTitleIndex:-1},0),P.timeline.set(C,{value:!1},3.5),P.timeline.set(C,{value:!0},4.1);const F="sine.inOut";x===0&&P.timeline.to(V,{duration:1,areaTitleIndex:x,ease:F},3.5+.05),x>0&&(P.timeline.to(V,{duration:1,areaIndex:x,ease:F},4.5+x*1.25),P.timeline.to(V,{duration:1,areaTitleIndex:x,ease:F},4.5+x*1.25+.05))})}const q=new or,be=new or;function Te(){const P=Je.lvh,Y=Je.ww,ee=Math.round(V.areaTitleIndex),K=ee-V.areaTitleIndex,x=Ii(ee,0,4);w.value=Ii(ee,0,4),oe.value=Ii(ee,0,5);const G=V.areas[x],I=$.value[x];D.value=(I==null?void 0:I.title)||"",Q.value=(I==null?void 0:I.body)||"",N.value=(I==null?void 0:I.emission)||"";const F=G.outputRect;q.width=Y,q.height=P,be.width=F.width,be.height=F.height,be.left=F.x-F.width*.5,be.top=F.y-F.height*.5,f.value.style.clipPath=or.clipPathInsetFromRects(be,q);let Z=0,fe=be.top+Y*.04;fe+=P*.15*je(Math.max(K,0),.01,.5);let ue=1-zo(je(Math.abs(K),.25,.45));_.value.style.translate=`${Z}px ${fe}px`,_.value.style.opacity=ue,g.value.style.translate=`${Z}px ${fe}px`,g.value.style.opacity=ue,Z=0,fe=P+P*K*.8,ue=1-zo(je(Math.abs(K),.07,.2)),ue=ee<0||ee>4?0:ue,y.value.style.translate=`${Z}px ${fe}px`,y.value.style.opacity=ue}function he(){const P=Je.svh,Y=Je.ww,ee=121,K=48,x=11,G=P-(ee+K),I=Y-x*2;return{top:ee,height:G,width:I,pad:x,base:K}}const ge=[375,667],Ae={x:0,y:0};function ye(P,Y,ee){const K=Y[0]*.5+P[0],x=Y[1]*.5+P[1];return Ae.x=(K-ee[0]*.5)/ee[0],Ae.y=(x-ee[1]*.5)/ee[0],Ae}function ie(){const P=Je.svh,Y=Je.ww,ee=l,{pivot:K,rects:x}=M.value.animation.cluster;ee.forEach((G,I)=>{const F=V.areas[I],{offset:Z,rectSize:fe}=x[I],{clusterRectScale:ue,clusterRadius:S,clusterOverShoot:m,stackLerp:T,clusterRect:H,stackRect:re,outputRect:ce,wanderData:Ee}=F;H.width=fe[0]/ge[0]*ue*Y,H.height=fe[1]/ge[0]*ue*Y,H.x=K.x,H.y=K.y,H.x*=Y,H.y*=P;const De=P/Y,Pe=1-Ii(je(De,ge[1]/ge[0],0)*1.05),Be=ye(Z,fe,ge);H.x+=Be.x*S*Y,H.y+=Be.y*S*Y*Pe,H.x+=m*Y*.3;let{areaIndex:Qe}=V;Qe=Math.max(Qe,0);const{top:tt,height:pt,width:mt,base:rn}=he(),nt=P-rn*2;re.width=mt,re.height=pt,re.x=.5*Y,re.y=re.height*.5+tt+nt*I,re.y-=Qe*nt;const Ut=zo(je(Math.abs(I-Qe),1,0));re.width*=Wn(Ut,.75,1),re.height*=Wn(Ut,.75,1);const kt=T;ce.x=Wn(zo(kt),H.x,re.x),ce.y=Wn(kt,H.y,re.y),ce.width=Wn(mc(kt),H.width,re.width),ce.height=Wn(mc(kt),H.height,re.height);const dt=0;G.style.width=`${ce.width}px`,G.style.height=`${ce.height}px`,G.style.translate=`${ce.x}px ${ce.y}px ${dt}px`,d[I].style.opacity=je(T,.1,.6,0,.5,!0)})}function le(){var K,x,G;const P=Je.lvh,Y=a.scrollSubPixel/P,ee=pr.mobile.time.keyAreaStart;if(k.value=gt(Y,ee+.2,ee+10.5),k.value){let I=L.title;gt(Y,-1,ee+1.9)?(K=I.timeline)==null||K.progress(je(Y,ee+1.15,ee+1.85,0,I.bisection,!0)):(x=I.timeline)==null||x.progress(je(Y,ee+1.9,ee+2.3,I.bisection,1,!0)),I=L.areas,(G=I.timeline)==null||G.progress(je(Y,ee-.5,ee+9));const F=Rl(je(Y,ee+9.5,ee+10.5))*-P;A.value.style.translate=`0px ${F}px`}}function pe(){c.value&&(le(),k.value&&(ie(),Te()))}function Se(){}function Ie(){pe()}Ne(()=>a.scrollSubPixel,()=>{pe()}),xn(Ie),So(Se),xt(()=>{Lt(()=>{c.value=!0,se(),pe()})}),Vt(()=>{var Y;o=0,(Y=L.title.timeline)==null||Y.kill()});function z(){var Y;o++;const P=(Y=$.value)==null?void 0:Y.length;i.value=P>0&&o===P}return(P,Y)=>{const ee=uF,K=kE,x=Nl;return ae(),me("div",{ref_key:"rootRef",ref:A,class:st(["KeyAreas",{visible:_e(k)}])},[Ve(ee,{block:t.block},null,8,["block"]),Ve(K,{"label-index":_e(oe),areas:_e(B)},null,8,["label-index","areas"]),J("div",cF,[J("div",fF,[(ae(!0),me(Ye,null,ut(_e(ne),(G,I)=>(ae(),me("div",{ref_for:!0,ref:F=>h[I]=F,key:`line-${I}`,innerHTML:G},null,8,dF))),128))],512)]),_e($)?(ae(),me("div",hF,[(ae(!0),me(Ye,null,ut(_e($),(G,I)=>(ae(),me("div",{ref_for:!0,ref:F=>l[I]=F,key:`area-${I}`,class:"KeyAreas-area"},[J("div",pF,[Ve(x,{"image-url":G.imageSrc,"video-url":G.src,"fallback-to-static":_e(R),onImgload:z},null,8,["image-url","video-url","fallback-to-static"]),J("div",{ref_for:!0,ref:F=>d[I]=F,class:"KeyAreas-video-gradient"},null,512)])]))),128))])):bt("",!0),J("div",mF,[J("div",gF,[J("h2",{ref_key:"unmaskedTitleRef",ref:_,class:"KeyAreas-content-title"},We(_e(D)),513)]),J("div",{ref_key:"maskedRef",ref:f,class:"KeyAreas-content masked"},[J("div",{ref_key:"maskedTitleRef",ref:g,class:"KeyAreas-content-title"},We(_e(D)),513)],512),J("div",_F,[J("div",{ref_key:"maskedBodyWrapRef",ref:y,class:"KeyAreas-content-body-wrap"},[J("div",vF,[J("div",yF,We(_e(N)),1),J("div",{ref_key:"maskedBodyRef",ref:b,class:"KeyAreas-content-body"},We(_e(Q)),513)])],512)])])],2)}}},wF=_t(bF,[["__scopeId","data-v-c690cc61"]]),SF={fill:"none",viewBox:"0 0 41 40",xmlns:"http://www.w3.org/2000/svg"};function TF(t,e){return ae(),me("svg",SF,e[0]||(e[0]=[J("path",{d:"m14.6501 8.90342c-.1667-.13333-.3667-.16666-.5667-.16666-.1667 0-.3333.03333-.5.13333-.3333.16667-.5667.53333-.5667.9v21.03331c0 .4.2.7334.5667.9.3333.1667.7333.1667 1.0667-.0666l16.8333-11.3667zm2.0333 5.73338 8.3333 5.6333-8.3333 5.6333z",fill:"currentColor"},null,-1)]))}const AE={render:TF},EF={class:"icon-plus",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 6",fill:"none"};function kF(t,e){return ae(),me("svg",EF,e[0]||(e[0]=[J("path",{d:"M6 3L3.12201e-08 3",stroke:"currentColor","stroke-width":"0.666667","stroke-miterlimit":"10"},null,-1),J("path",{d:"M3 6L3 0",stroke:"currentColor","stroke-width":"0.666667","stroke-miterlimit":"10"},null,-1)]))}const RE={render:kF},AF=["innerHTML"],RF={ref:"videoSectionRef",class:"HomeQuote-video-section"},xF={ref:"videoTitlesRef",class:"HomeQuote-video-titles"},CF={class:"HomeQuote-video-play"},PF=["src"],IF={__name:"HomeQuoteMo",props:{block:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=lt.href.includes("debug-quote-video");let o=0;const s=wn(),a=vi(),u=mr(),c=Ce(()=>n.block),h=Ce(()=>{if(i)return!1;const N=a.modalState===di.VIDEO;return a.lowFPS||N}),l=j(!1),d=j(null),f=[],_=Ce(()=>{var W,V;let N=((V=(W=c.value)==null?void 0:W.title)==null?void 0:V.split(`
`))||[];return N=N.map(B=>Hl(["code","em"],B)),N}),g=j(null),b=j(null),y=j(null),w=j(null),A=j(!1),{gsap:k}=gn(),R={title:{timeline:null}};function C(){var W;jr(R);const N=R.title;(W=N.timeline)==null||W.kill(),N.timeline=k.timeline({paused:!0}),N.bisection=gh({timeline:N.timeline,lineElementsArray:f})}function L(){var B;const N=Je.lvh,W=s.scrollSubPixel/N,V=pr.mobile.time.quoteStart;if(A.value=gt(W,V,V+2.5),A.value){const oe=R.title;(B=oe.timeline)==null||B.progress(je(W,V+.4,V+1.4,0,oe.bisection,!0));const se=Li(je(W,V+1.1,V-.2)),q=Li(je(W,V+1.2,V+2.4))*-1,be=gt(W,0,V+1.2)?se:q;w.value.style.translate=`0px ${be*N}px`;const Te=Math.max(se,0),he=Math.max(Te*N*.07,0);i||(g.value.style.clipPath=`inset(${he}px ${he}px ${he}px ${he}px)`);const ge=be*-N*.13;b.value.style.translate=`0px ${ge}px`;const Ae=be*-N*.6;y.value.style.translate=`0px ${Ae}px`}}function M(){l.value&&L()}function $(){M()}Ne(()=>s.scrollSubPixel,()=>{M()}),xn($);function U(){a.setVideoModalData({sources:u.getVideoSources(n.block.video.videoData),timeOffset:0}),a.setModalState(di.VIDEO)}const ne=j(!1);function D(N){ne.value=N}xt(()=>{Lt(()=>{l.value=!0,C(),M()})}),Vt(()=>{o=0,l.value=!1});function Q(){o++,o===2&&r("load")}return(N,W)=>{const V=Nl,B=RE,oe=AE,se=i_;return _e(c)?(ae(),me("div",{key:0,ref_key:"rootRef",ref:w,class:st(["HomeQuote",{visible:_e(A)}])},[J("div",{ref_key:"maskRef",ref:g,class:"HomeQuote-inner"},[J("div",{ref_key:"bgRef",ref:y,class:"HomeQuote-bg"},[Ve(V,{"image-url":_e(c).backgroundImageSrc,"video-url":_e(c).backgroundVideoSrc,"fallback-to-static":_e(h),onImgload:Q},null,8,["image-url","video-url","fallback-to-static"])],512),J("div",{ref_key:"columnRef",ref:b,class:"HomeQuote-grid"},[J("div",{ref_key:"columnRef",ref:b,class:"HomeQuote-column"},[J("div",{ref_key:"titleRef",ref:d,class:"HomeQuote-title"},[(ae(!0),me(Ye,null,ut(_e(_),(q,be)=>(ae(),me("div",{ref_for:!0,ref:Te=>f[be]=Te,key:`titleLine-${be}`,innerHTML:q},null,8,AF))),128))],512),J("div",RF,[J("div",xF,[J("div",{ref:"videoTitleNameRef",class:"HomeQuote-video-title"},We(_e(c).video.name),513),J("div",{ref:"videoTitleRoleRef",class:"HomeQuote-video-title green"},We(_e(c).video.role),513),Ve(B)],512),J("button",{ref:"videoWrapRef",class:"HomeQuote-video-wrap",onClick:U,onMouseenter:W[0]||(W[0]=q=>D(!0)),onMouseleave:W[1]||(W[1]=q=>D(!1))},[J("span",CF,[Ve(se,{label:"Open video modal",theme:"white-alt","not-button":!0,"manual-hover":_e(ne)},{default:Di(()=>[Ve(oe)]),_:1},8,["manual-hover"])]),J("img",{class:"HomeQuote-video-bg",src:_e(c).video.videoImageSrc,onLoad:Q,alt:""},null,40,PF)],544)],512)],512)],512)],512)],2)):bt("",!0)}}},LF=_t(IF,[["__scopeId","data-v-18f28bb9"]]),OF=["width","height","viewBox"],MF=["x","y","width","height","rx","ry","stroke","stroke-width"],FF={__name:"GraphBorder",props:{width:{default:100},height:{default:100},progress:{default:0},radius:{default:3},stroke:{default:1.5}},setup(t){const e=t,n=j(!1),r=J3.KEYLINE_DARK,i=j(null);let o=1;So(()=>{n.value&&a()}),xn(()=>{s()});function s(){if(!n.value)return;o=i.value.getTotalLength()}function a(){if(!n.value)return;const u=i.value,c=e.progress,h=Wn(c,0,o*.95),l=Wn(c,o,0),d=Wn(c,0,o*.05),f=0,_=Wn(c,-o*.27,0);u==null||u.setAttribute("stroke-dasharray",`${d} ${l} ${h} ${f}`),u==null||u.setAttribute("stroke-dashoffset",_)}return xt(()=>{Lt(()=>{n.value=!0,s()})}),Vt(()=>{n.value=!1}),(u,c)=>(ae(),me("svg",{width:t.width,height:t.height,viewBox:`0 0 ${t.width} ${t.height}`,class:"GraphBorder",xmlns:"http://www.w3.org/2000/svg"},[J("rect",{ref_key:"borderRect",ref:i,x:t.stroke/2,y:t.stroke/2,width:t.width-t.stroke,height:t.height-t.stroke,rx:t.radius,ry:t.radius,stroke:_e(r),"stroke-width":t.stroke,fill:"none"},null,8,MF)],8,OF))}},xE=_t(FF,[["__scopeId","data-v-99ab6858"]]),DF={viewBox:"0 0 9 9",fill:"none","stroke-width":"1px",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"};function $F(t,e){return ae(),me("svg",DF,e[0]||(e[0]=[J("path",{d:"M9 4.5L-4.0 4.5","vector-effect":"non-scaling-stroke","stroke-miterlimit":"10"},null,-1),J("path",{d:"M4.5 9L4.5 0","vector-effect":"non-scaling-stroke","stroke-miterlimit":"10"},null,-1)]))}const CE={render:$F},HF={class:"HomeImageStack-inner"},NF={class:"HomeImageStack-box"},BF={class:"HomeImageStack-box-content"},VF={class:"HomeImageStack-box-text"},UF={class:"HomeImageStack-subtitle HomeImageStack-typo"},jF=["src"],WF={class:"HomeImageStack-box-text masked"},zF={class:"HomeImageStack-subtitle HomeImageStack-typo"},qF={__name:"HomeImageStackMo",props:{block:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=wn(),o=Ce(()=>n.block),s=j(!1);let a=40;const u=[],c=[],h=[],l=j(null),d=j(null),f=j(null),_=j(null),g=j(),b=j(null),y=j(!1),w=j(!1);let A=0;const k=j(!1);Ne(()=>k.value,Q=>{Q&&r("load")},{immediate:!0});const{gsap:R,CustomEase:C}=gn(),L={main:{timeline:null}};function M(){jr(L);const Q=L.main;Q.timeline=R.timeline({paused:!0});const N=C.create("custom","M0,0 C0,0.023 0,0.229 0,0.248 0,0.699 0.493,1 1,1 "),W=C.create("imgEase","M0,0 C0.36,0.521 0.624,1 1,1 ");let V=[];const B=u.length,oe=Q.timeline,se=a*B;oe.set([d.value,l.value],{y:se},0),oe.set([u,c],{opacity:0},0),V=[f.value,_.value],oe.set(V,{y:a,opacity:0},0),oe.to(V,{y:0,ease:N,duration:.95},.2),oe.set(V,{opacity:1},.2);for(let q=0;q<B;q++){const be=se-a*(q+1),Te=q<1?q+.01:q+.5,he=N;if(V=[d.value,l.value],oe.to(V,{y:be,duration:.95,ease:he},Te),V=[u[q],c[q]],oe.set(V,{opacity:1},Te),q>0){const ge=h[q],Ae=W;oe.set(ge,{opacity:0,scale:1},0),oe.to(ge,{opacity:1,duration:.1},Te),oe.to(ge,{scale:1.1,duration:.95,ease:Ae},Te)}else{const ge=h[q];oe.set(ge,{opacity:1},0)}}oe.progress(.001)}function $(){var V;const Q=Je.lvh,N=i.scrollSubPixel/Q,W=pr.mobile.time.imageStackStart;y.value=gt(N,W,W+3.9),y.value&&((V=L.main.timeline)==null||V.progress(je(N,W+.3,W+2.2)))}function U(){s.value&&$()}function ne(){var Q;a=((Q=u[0])==null?void 0:Q.getBoundingClientRect().height)||40,M(),U()}Ne(()=>i.scrollSubPixel,()=>{U()}),xn(ne),xt(()=>{Lt(()=>{var Q;s.value=!0,ne(),M(),U(),Lt(ne),w.value=(Q=lt.href)==null?void 0:Q.includes("debug-vertical")})}),Vt(()=>{A=0,k.value=!1,s.value=!1});function D(Q,N){A++;const W=o.value.stacks.length;k.value=W>0&&A===W}return(Q,N)=>(ae(),me("div",{ref_key:"rootRef",ref:b,class:st(["HomeImageStack",{visible:_e(y),debugVertical:_e(w)}])},[N[1]||(N[1]=J("div",{class:"HomeImageStack-redline"},null,-1)),J("div",HF,[J("div",NF,[J("div",BF,[J("div",VF,[J("div",{ref_key:"labelsRef",ref:d,class:"HomeImageStack-labels HomeImageStack-typo"},[(ae(!0),me(Ye,null,ut(_e(o).stacks,(W,V)=>(ae(),me("div",{ref_for:!0,ref:B=>u[V]=B,key:`label-${V}`,class:"HomeImageStack-label"},We(W.label),1))),128))],512),J("div",UF,[J("div",{ref_key:"subtitleRef",ref:f,class:"HomeImageStack-label"},We(_e(o).subtitle),513)])]),J("div",{ref_key:"imagesRef",ref:g,class:"HomeImageStack-images"},[(ae(!0),me(Ye,null,ut(_e(o).stacks,(W,V)=>(ae(),me("img",{ref_for:!0,ref:B=>h[V]=B,key:`image-${V}`,class:"HomeImageStack-image",src:W.imageSrc,onLoad:N[0]||(N[0]=B=>D(B,Q.image)),alt:""},null,40,jF))),128))],512),J("div",WF,[J("div",{ref_key:"labelsMaskedRef",ref:l,class:"HomeImageStack-labels HomeImageStack-typo"},[(ae(!0),me(Ye,null,ut(_e(o).stacks,(W,V)=>(ae(),me("div",{ref_for:!0,ref:B=>c[V]=B,key:`label-masked--${V}`,class:"HomeImageStack-label white"},We(W.label),1))),128))],512),J("div",zF,[J("div",{ref_key:"subtitleMaskedRef",ref:_,class:"HomeImageStack-label green"},We(_e(o).subtitle),513)])])])])])],2))}},GF=_t(qF,[["__scopeId","data-v-9426fd8e"]]),YF={desktop:{title:"THE OPPORTUNITY AHEAD",body1:`The world’s demand for
  energy will more than
  double by 2050.`,body2:`Innovation must meet
  rising needs without
  compromise to people
  and planet.`,maximum1:"66k TWh",maximum2:"in 2050",minimum1:"26k TWh",minimum2:"in 2023"}},KF={class:"HomeGraph-sidetitle-wrap"},XF={class:"HomeGraph-inner"},QF={class:"HomeGraph-box"},JF={class:"HomeGraph-text"},ZF={class:"HomeGraph-text text2"},eD={class:"HomeGraph-value-labels"},tD={class:"HomeGraph-value-labels"},nD={__name:"HomeGraphMo",props:{block:{type:Object,required:!0,default:()=>({})},blockStack:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=wn(),o=Ce(()=>n.block),s=j(null),a=j(null),u=j(null),c=j(null),h=j(null),l=j(null),d=j(null),f=j(0),_=j(300),g=j(300),b=j(null),y=j(null),w=j(null),A=j(null),k=j(null),R=j(null),C=j(null),L=j(null),M=j(null),$=j(null),U=j(null),ne=j(null),D=j(null),Q=j(null),N=j(null),W=j(null),V=j(null),B=j(null),oe=j(null),se=j(null),q=[],be=[],Te=Ce(()=>{var ee,K;return((K=(ee=o.value)==null?void 0:ee.body1)==null?void 0:K.split(`
`))||[]}),he=Ce(()=>{var ee,K;return((K=(ee=o.value)==null?void 0:ee.body2)==null?void 0:K.split(`
`))||[]}),ge=j(!1),Ae=j(null),ye=j(!1),{gsap:ie}=gn(),le={main:{timeline:null}};function pe(){jr(le);const ee=le.main;ee.timeline=ie.timeline({paused:!0});const K=ee.timeline;let x=[];x=s.value,K.set(x,{y:"100svh"},0),K.to(x,{duration:.75,y:"42.4svh",ease:"sine.out"},.001),K.to(x,{duration:.65,y:0,ease:"sine.in"},1.2),K.set(x,{y:0},3),x=a.value,K.set(x,{scale:.7,y:"75svh"},0),K.to(x,{duration:.75,scale:1,y:0,ease:"sine.out"},.05),K.set(f,{value:0},0),K.to(f,{value:1,duration:1,ease:"sine.out"},.1);const G=.9;x=[B.value,oe.value],K.set(x,{opacity:0},0),K.to(x,{opacity:1,duration:0,ease:"sine.out"},G),x=l.value,K.set(x,{x:20,opacity:0},0),K.to(x,{x:0,opacity:1,duration:.5,ease:"sine.out"},.5);function I({start:fe=.6,parent:ue,barHorz:S,barVertArray:m,labelArray:T}={}){x=ue,K.set(x,{x:"-5cqw"},0),K.to(x,{x:0,duration:.4,ease:"sine.out"},fe),x=S,K.set(x,{x:-10,scaleX:.5,opacity:0},0),K.to(x,{x:0,scaleX:1,duration:.35,ease:"sine.out"},fe),K.set(x,{opacity:1},fe),x=m,K.set(x,{opacity:0},0),K.set(x,{opacity:1},fe),x=T,K.set(x,{opacity:0,x:-10},0),K.to(x,{x:0,duration:.35,ease:"sine.out"},fe+.15),K.set(x,{opacity:1},fe+.2)}I({start:.5,parent:y.value,barHorz:A.value,barVertArray:[k.value,R.value],labelArray:[C.value,L.value]}),x=M.value,K.set(x,{x:-10,scaleX:0,opacity:0},0),K.to(x,{x:0,scaleX:1,duration:.5,ease:"sine.out"},.75),K.set(x,{opacity:1},.7),x=$.value,K.set(x,{x:-10,scaleX:0,opacity:0},0),K.to(x,{x:0,scaleX:1,duration:.5,ease:"sine.out"},.85),K.set(x,{opacity:1},.8),I({start:.75,parent:U.value,barHorz:D.value,barVertArray:[Q.value,N.value],labelArray:[W.value,V.value]}),x=q,Fd({timeline:K,lineElementsArray:x,lineDuration:.3,startTime:.7}),TE({timeline:K,lineElementsArray:x,lineDuration:.3,startTime:1.35}),x=be,Fd({timeline:K,lineElementsArray:x,lineDuration:.3,startTime:2.1}),x=se.value,K.set(x,{y:"100cqh"},0);const F="67cqh",Z="25.5cqh";K.to(x,{y:F,duration:.75,ease:"sine.out"},.3),K.to(x,{y:Z,duration:0,ease:"sine.inOut"},1.75),x=c.value,K.set(x,{y:"100cqh"},0),K.to(x,{y:F,duration:.75,ease:"sine.out"},.3),K.to(x,{y:Z,duration:1,ease:"sine.inOut"},1.25),x=h.value,K.set(x,{autoAlpha:1},0)}function Se(){var G;const ee=Je.lvh,K=i.scrollSubPixel/ee,x=pr.mobile.time.graphStart;if(ye.value=gt(K,x,x+5.95),ye.value){(G=le.main.timeline)==null||G.progress(je(K,x,x+2.15));const F=Li(je(K,x+4.45,x+5.75))*-1;Ae.value.style.translate=`0px ${F*ee}px`;const Z=Li(je(K,x+2.15,x+2.65)),fe=ee*.65,ue=Wn(Z,0,fe);u.value.style.clipPath=`inset( -2px -2px ${ue}px  -2px )`;const S=Li(je(K,x+2.75,x+2.55));d.value.style.opacity=S;const m=Li(je(K,x+2.35,x+2.15));b.value.style.opacity=m}}function Ie(){const{svh:ee,ww:K}=Je;_.value=Math.max(50,Math.min(.584*ee,.589*K)),g.value=Math.max(100,.5967*ee)}function z(){ge.value&&Se()}function P(){pe(),Ie(),z()}Ne(()=>i.scrollSubPixel,()=>{z()}),xn(P),xt(()=>{Lt(()=>{ge.value=!0,pe(),z()})}),Vt(()=>{ge.value=!1});function Y(){r("load")}return(ee,K)=>{const x=GF,G=CE,I=xE;return ae(),me("div",{ref_key:"rootRef",ref:Ae,class:st(["HomeGraph",{visible:_e(ye)}])},[J("div",{ref_key:"bgRef",ref:s,class:"HomeGraph-bg"},null,512),J("div",KF,[J("div",{ref_key:"sideTitleRef",ref:l,class:"HomeGraph-sidetitle"},We(_e(o).title),513)]),Ve(x,{block:t.blockStack,onLoad:Y},null,8,["block"]),J("div",XF,[J("div",{ref_key:"boxRef",ref:a,class:"HomeGraph-box-wrap"},[J("div",QF,[J("div",{ref_key:"cornerCrossTLRef",ref:B,class:"HomeGraph-box-corner tl"},[Ve(G)],512),J("div",{ref_key:"cornerCrossBRRef",ref:oe,class:"HomeGraph-box-corner br"},[Ve(G)],512),J("div",{ref_key:"boxContentRef",ref:u,class:"HomeGraph-box-content"},[J("div",{ref_key:"boxWhiteBGRef",ref:h,class:"HomeGraph-box-content-bg white"},null,512),J("div",{ref_key:"boxGreenBGRef",ref:c,class:"HomeGraph-box-content-bg"},null,512),J("div",{ref_key:"titleRef",ref:se,class:"HomeGraph-text-wrap"},[J("div",JF,[(ae(!0),me(Ye,null,ut(_e(Te),(F,Z)=>(ae(),me("div",{ref_for:!0,ref:fe=>q[Z]=fe,key:`title1Line-${Z}`},We(F),1))),128))]),J("div",ZF,[(ae(!0),me(Ye,null,ut(_e(he),(F,Z)=>(ae(),me("div",{ref_for:!0,ref:fe=>be[Z]=fe,key:`title2Line-${Z}`},We(F),1))),128))])],512)],512),J("div",{ref_key:"valuesRef",ref:b,class:"HomeGraph-box-values"},[J("div",{ref_key:"values1Ref",ref:y,class:"HomeGraph-value top"},[J("div",{ref_key:"values1BarRef",ref:w,class:"HomeGraph-value-bar"},[J("div",{ref_key:"values1BarHorzRef",ref:A,class:"HomeGraph-value-bar-horz"},null,512),J("div",{ref_key:"values1BarVertLeftRef",ref:k,class:"HomeGraph-value-bar-vert left"},null,512),J("div",{ref_key:"values1BarVertRightRef",ref:R,class:"HomeGraph-value-bar-vert right"},null,512)],512),J("div",eD,[J("div",{ref_key:"values1Label1",ref:C,class:"HomeGraph-value-label top"},We(_e(o).maximum1),513),J("div",{ref_key:"values1Label2",ref:L,class:"HomeGraph-value-label base"},We(_e(o).maximum2),513)])],512),J("div",{ref_key:"valuesMid1Ref",ref:M,class:"HomeGraph-value-mid"},null,512),J("div",{ref_key:"valuesMid2Ref",ref:$,class:"HomeGraph-value-mid"},null,512),J("div",{ref_key:"values2Ref",ref:U,class:"HomeGraph-value base"},[J("div",{ref_key:"values2BarRef",ref:ne,class:"HomeGraph-value-bar"},[J("div",{ref_key:"values2BarHorzRef",ref:D,class:"HomeGraph-value-bar-horz"},null,512),J("div",{ref_key:"values2BarVertLeftRef",ref:Q,class:"HomeGraph-value-bar-vert left"},null,512),J("div",{ref_key:"values2BarVertRightRef",ref:N,class:"HomeGraph-value-bar-vert right"},null,512)],512),J("div",tD,[J("div",{ref_key:"values2Label1",ref:W,class:"HomeGraph-value-label top"},We(_e(o).minimum1),513),J("div",{ref_key:"values2Label2",ref:V,class:"HomeGraph-value-label base"},We(_e(o).minimum2),513)])],512)],512)]),J("div",{ref_key:"boxBorderRef",ref:d,class:"HomeGraph-box-border"},[Ve(I,{width:_e(_),height:_e(g),progress:_e(f),radius:2,stroke:.75},null,8,["width","height","progress"])],512)],512)])],2)}}},rD=_t(nD,[["__scopeId","data-v-6f4e13e6"]]),iD="/assets/mediaswirl-1@2x-BnmEsBkb.webp",oD="/assets/mediaswirl-2@2x-Cj07mDi-.webp",sD="/assets/mediaswirl-3@2x-HAT8tFyE.webp",aD="/assets/mediaswirl-4@2x-Dqbow5UR.webp",lD="/assets/mediaswirl-5@2x-D3af6shk.webp",uD="/assets/mediaswirl-6@2x-soDYuKkW.webp",cD="/assets/mediaswirl-7@2x-BWMLbOS2.webp",fD="/assets/mediaswirl-8@2x-DmLJDpg0.webp",dD="/assets/mediaswirl-9@2x-DPL8GeNt.webp",hD="/assets/mediaswirl-10@2x-BHrUQZCI.webp",pD="/assets/mediaswirl-11@2x-BG58g1Ow.webp",mD="/assets/mediaswirl-12@2x-DoAy-BYk.webp",gD="/assets/mediaswirl-13@2x-DImtqJBE.webp",_D="/assets/mediaswirl-14@2x-BM3rNPwo.webp",vD="/assets/mediaswirl-15@2x-f8ACBS_2.webp",gc={desktop:{content:{title1:`
      Breakthrough Energy is a global
      platform focused on accelerating
      clean energy innovation and building
      the industries of the future`.trim(),title2:"Energy is prosperity",images:[{id:0,src:iD},{id:1,src:oD},{id:2,src:sD},{id:3,src:aD},{id:4,src:lD},{id:5,src:uD},{id:6,src:cD},{id:7,src:fD},{id:8,src:dD},{id:9,src:hD},{id:10,src:pD},{id:11,src:mD},{id:12,src:gD},{id:13,src:_D},{id:14,src:vD}]},animation:{main:{radius_multiply:.6,radius_add:0,radius_random_mul:1,z_scale:1,z_add:0,rect_scale:.01,rotation:0,rotationModulated:0,rotationModulateRamp:1,aspect_scale:1},rects:[{id:0,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:cr(0)},{id:1,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:cr(1)},{id:2,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:cr(2)},{id:3,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:cr(3)},{id:4,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:cr(4)},{id:5,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:cr(5)},{id:6,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:cr(6)},{id:7,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:cr(7)},{id:8,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:cr(8)},{id:9,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:cr(9)},{id:10,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:cr(10)},{id:11,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:cr(11)},{id:12,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:cr(12)},{id:13,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:cr(13)},{id:14,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:cr(14)}]}}},yD=["src","onLoad"],bD={__name:"ImageSwirlMo",props:{block:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=wn(),{gsap:o}=gn(),s=j(!1),a=j(null),u=j(!1),c=[];let h=null;const l=Ce(()=>n.block),d=Ce(()=>l.value.content),f=structuredClone(gc.desktop.animation.main),_=structuredClone(gc.desktop.animation.rects),g=j(!1);Ne(()=>g.value,M=>{M&&r("load")},{immediate:!0});function b(){h==null||h.kill(),h=o.timeline({paused:!0});const M=h,$=l.value.animation.main,U=f;for(const[se,q]of Object.entries($))M.set(U,{[se]:q},0);const ne=6,D=1,Q={s:.001,k:2.3,d:2.3},N={s:Q.k,k:3.2,d:3.2-Q.k},W={s:N.k,d:4.4-N.k},V={s:ne-1,d:1},B="power2.inOut";M.set(U,{aspect_scale:0,rect_scale:1.5,duration:0,radius_multiply:1,radius_add:.3,radius_random_mul:1,ease:B},0),M.to(U,{aspect_scale:.1,duration:Q.d,ease:B},Q.s),M.to(U,{rect_scale:.9,duration:Q.d,ease:B},Q.s),M.to(U,{radius_multiply:.3,radius_add:.03,duration:Q.d,ease:B},Q.s),M.to(U,{rect_scale:1.2,duration:N.d,ease:B},N.s),M.to(U,{radius_multiply:.6,duration:N.d,ease:B},N.s),M.to(U,{radius_add:.05,duration:N.d+.6,ease:"sine.in"},N.s+.6),M.to(U,{aspect_scale:0,duration:N.d,ease:B},N.s),M.to(U,{radius_random_mul:.6,duration:N.d,ease:B},N.s),M.to(U,{radius_add:1,duration:V.d,ease:"sine.in"},V.s-.6),M.to(U,{radius_random_mul:0,rect_scale:1.4,duration:W.d,ease:B},W.s),M.to(U,{rect_scale:0,duration:0,ease:B},ne-.05),M.to(U,{rotation:2,duration:ne-D,ease:se=>Ms(se,.07)},D);const oe=Q.k-D;M.to(U,{rotationModulated:0,duration:oe,ease:B},D),M.to(U,{rotationModulated:.8,duration:W.d+V.d,ease:se=>Ms(se,.35)},W.s)}function y(){let M=0;const $=performance.now()/1e3,{radius_multiply:U,radius_random_mul:ne,radius_add:D,z_scale:Q,z_add:N,rect_scale:W,rotation:V,rotationModulated:B,rotationModulateRamp:oe,aspect_scale:se}=f,q=(V+B-.2)*.5*zi;for(const be of c){const Te=_[M];if(Te.el=be,be){const he=Je.lvh,ge=Je.ww,Ae=ge/he,ye=M/c.length;let{el:ie,scale:le,aspect:pe,z:Se,rotation:Ie,radius:z}=Te,P=Te.wander.seed;const Y=.5+P*.5,ee=bE($,Y,Te.wander);Se+=N,Se+=ee[2]*.1;const K=Se*Q+(1-Q);let x=le*K*W;P=a_(P)*ne,x*=.75*P+.25;const G=Ie*zi,I=ye*zi,F=G+I+q;let Z=K*z*U;Z+=D,Z+=P*.6,Z+=x*.15*pe;const fe=Z*ge,ue=Wn(se,1,Ae);let S=Math.cos(F)*fe*ue,m=Math.sin(F)*fe;S+=ee[0]*.15*ge*Z,m+=ee[1]*.15*ge*Z,S+=ge*.5,m+=he*.5,m-=he*.15,S-=he*.15*pe,ie.style.translate=`${S}px ${m}px`,ie.style.scale=`${x} ${x}`}M++}}function w(){const M=i.scrollSubPixel/Je.lvh,$=[.1,5.5];u.value=gt(M,-1,$[1]),u.value&&(h==null||h.progress(je(M,$[0],$[1])))}function A(){s.value&&w()}function k(){u.value&&y()}function R(){A()}Ne(()=>i.scrollSubPixel,()=>{A()}),xn(R),So(k),xt(()=>{Lt(()=>{s.value=!0,b()})}),Vt(()=>{h==null||h.kill(),c.splice(0,c.length),C=0});let C=0;function L(M,$){const U=M.target;$.aspect=U.naturalWidth/U.naturalHeight,C++;const ne=_.length;g.value=ne>0&&C===ne}return(M,$)=>(ae(),me("div",{ref_key:"rootRef",ref:a,class:st(["ImageSwirl",{visible:_e(u)}])},[(ae(!0),me(Ye,null,ut(_e(_),(U,ne)=>{var D;return ae(),me("img",{ref_for:!0,ref:Q=>c[ne]=Q,key:`swirlimage-${ne}`,class:"ImageSwirl-rect",src:((D=_e(d).images[ne])==null?void 0:D.src)||"",onLoad:Q=>L(Q,U),alt:""},null,40,yD)}),128))],2))}},wD=_t(bD,[["__scopeId","data-v-af7fb688"]]),SD={class:"icon-logo-bt",viewBox:"0 0 184 184",xmlns:"http://www.w3.org/2000/svg"};function TD(t,e){return ae(),me("svg",SD,e[0]||(e[0]=[J("g",null,[J("path",{d:"M65.1896 27.2328L70.1777 10.1643C71.8144 4.47475 77.1142 0.499878 83.0376 0.499878H101.041C106.965 0.499878 112.265 4.47475 113.901 10.1643L127.463 56.6157L148.428 62.7729L144.219 70.4109L120.526 63.4743L105.64 12.5804C105.016 10.554 103.146 9.07313 100.963 9.07313H82.9596C80.7773 9.07313 78.9068 10.554 78.2833 12.5804L72.7496 31.4415L65.1117 27.2328H65.1896ZM27.2335 118.811L31.4421 111.173L12.581 105.639C10.5546 105.016 9.07374 103.145 9.07374 100.963V82.959C9.07374 81.634 9.61931 80.387 10.4766 79.5297C11.0222 78.9841 11.7237 78.5165 12.503 78.2827L63.397 63.3964L70.3335 39.703L62.6956 35.4943L56.5384 56.4599L10.0869 70.0212C4.47536 71.8138 0.500488 77.1136 0.500488 83.0369V101.041C0.500488 106.964 4.47536 112.264 10.1649 113.901L27.2335 118.889V118.811ZM173.914 70.1771L156.845 65.189L152.637 72.827L171.498 78.3606C173.524 78.9841 175.005 80.8547 175.005 83.0369V101.041C175.005 103.223 173.602 105.094 171.498 105.717L120.604 120.603L113.667 144.297L121.305 148.505L127.463 127.54L173.914 113.979C176.096 113.355 178.045 112.186 179.604 110.627C182.098 108.133 183.578 104.782 183.578 101.119V83.1149C183.578 77.1915 179.604 71.8917 173.914 70.255V70.1771ZM111.173 152.636L105.64 171.497C105.016 173.524 103.146 175.005 100.963 175.005H82.9596C80.7773 175.005 78.9068 173.602 78.2833 171.497L63.397 120.603L39.7036 113.667L35.495 121.305L56.4605 127.462L70.0218 173.913C71.6585 179.603 76.9583 183.578 82.8817 183.578H100.886C106.809 183.578 112.109 179.603 113.745 173.913L118.733 156.845L111.095 152.636H111.173Z",fill:"currentColor"}),J("path",{opacity:"0.62",d:"M27.2328 65.1888L18.6595 49.6011C15.8538 44.4571 16.789 37.9103 20.9198 33.7016L33.6238 20.9976C37.8325 16.7889 44.3014 15.8536 49.5233 18.7374L91.9998 41.9631L111.173 31.4414L113.589 39.7808L91.9219 51.6275L45.3925 26.1415C43.522 25.1283 41.1059 25.4401 39.6251 26.9989L26.921 39.7029C25.4402 41.2616 25.0505 43.5998 26.0637 45.4703L35.4943 62.6948L27.1549 65.1109L27.2328 65.1888ZM65.1889 156.767L62.7728 148.427L45.5484 157.858C43.6779 158.871 41.2618 158.559 39.7809 157.001L27.0769 144.297C26.1417 143.361 25.674 142.114 25.674 140.867C25.674 139.62 25.8299 139.231 26.2975 138.529L51.7835 91.9997L39.9368 70.3328L31.5974 72.7489L42.1191 91.9218L18.8934 134.398C16.0876 139.542 17.0228 146.089 21.1536 150.298L33.8576 163.002C38.0663 167.211 44.5352 168.146 49.7571 165.262L65.3448 156.689L65.1889 156.767ZM134.476 18.6594L118.889 27.2327L121.305 35.5721L138.529 26.1415C140.4 25.1283 142.816 25.4401 144.297 26.9989L157.001 39.7029C158.482 41.2616 158.871 43.5998 157.858 45.4703L132.372 91.9997L144.219 113.667L152.558 111.251L142.036 92.0777L165.262 49.6011C166.353 47.5747 166.899 45.3924 166.899 43.2101C166.899 39.7029 165.574 36.2736 163.002 33.7016L150.298 20.9976C146.089 16.7889 139.62 15.8536 134.398 18.7374L134.476 18.6594ZM148.427 121.305L157.858 138.529C158.871 140.4 158.559 142.816 157.001 144.297L144.297 157.001C142.816 158.481 140.4 158.871 138.529 157.858L91.9998 132.372L70.3329 144.219L72.749 152.558L91.9219 142.036L134.398 165.262C139.542 168.068 146.089 167.133 150.298 163.002L163.002 150.298C167.211 146.089 168.146 139.62 165.262 134.398L156.689 118.811L148.35 121.227L148.427 121.305Z",fill:"currentColor"})],-1)]))}const PE={render:TD},ED={class:"HomeSwirlTitles-title-wrap"},kD={class:"HomeSwirlTitles-title-wrap"},AD={__name:"HomeSwirlTitlesMo",props:{block:{type:Object,required:!0,default:()=>({})}},setup(t){const e=t,n=wn(),r=j(null),i=j(null),o=j(null),s=j(null),a=j(null),u=j(null),c=j(null),h=[],l=[],d=Ce(()=>e.block),f=Ce(()=>{var D,Q,N;return((N=(Q=(D=d.value)==null?void 0:D.content)==null?void 0:Q.title1)==null?void 0:N.split(`
`))||""}),_=Ce(()=>{var D,Q,N;return((N=(Q=(D=d.value)==null?void 0:D.content)==null?void 0:Q.title2)==null?void 0:N.split(`
`))||""});Ce(()=>{var D,Q,N;return((N=(Q=(D=d.value)==null?void 0:D.content)==null?void 0:Q.title3)==null?void 0:N.split(`
`))||""});const g=j(!1),b=j(null),y=j(!1),{gsap:w}=gn(),A={logoOutro:{timeline:null,bisection:.5},background:{timeline:null},title1:{timeline:null,bisection:.5},title2:{timeline:null,bisection:.5}};function k(){w.set(i.value,{autoAlpha:0}),w.set(a.value,{autoAlpha:0}),w.set(o.value,{autoAlpha:1})}function R(){jr(A);let D=A.logoOutro;D.timeline=w.timeline({paused:!0});let Q=D.timeline;Q.set(o.value,{autoAlpha:1},0),Q.to(o.value,{duration:.25,autoAlpha:0},.01),D=A.background,D.timeline=w.timeline({paused:!0}),Q=D.timeline,Q.set(i.value,{autoAlpha:0},0),Q.set(a.value,{autoAlpha:0},0),Q.to(i.value,{duration:.25,autoAlpha:1},.01),Q.to(a.value,{duration:.25,autoAlpha:1},.01),Q.to(r.value,{duration:0,autoAlpha:0},.26),D=A.title1,D.timeline=w.timeline({paused:!0}),D.bisection=SE({timeline:D.timeline,lineElementsArray:h,x:30}),D=A.title2,D.timeline=w.timeline({paused:!0}),D.timeline.set(c.value,{y:0},0),D.bisection=Es({timeline:D.timeline,lineElementsArray:l,outroOffset:.3,x:30});const N=D.bisection*D.timeline.duration(),W=D.timeline.duration()-N;D.timeline.to(c.value,{y:-20,ease:"power2.in",duration:W},N+.01)}const C={vis:[-1,7],background:[2.4,2.6],title1_in:[2.6,3.6],title1_out:[3.8,4.5],title2_in:[4.5,4.9],title2_out:[4.9,5.4],logo:[5.2,5.6]};function L(){var q,be,Te,he,ge,Ae;const D=n.scrollSubPixel/Je.lvh,{vis:Q,logo:N,background:W,title1_in:V,title1_out:B,title2_in:oe,title2_out:se}=C;if(y.value=gt(D,Q[0],Q[1]),y.value){let ye=A.logoOutro;(q=ye.timeline)==null||q.progress(je(D,N[0],N[1])),ye=A.background,(be=ye.timeline)==null||be.progress(je(D,W[0],W[1])),ye=A.title1,gt(D,-1,V[1])?(Te=ye.timeline)==null||Te.progress(je(D,V[0],V[1],0,ye.bisection,!0)):(he=ye.timeline)==null||he.progress(je(D,B[0],B[1],ye.bisection,1,!0)),ye=A.title2,gt(D,-1,oe[1])?(ge=ye.timeline)==null||ge.progress(je(D,oe[0],oe[1],0,ye.bisection,!0)):(Ae=ye.timeline)==null||Ae.progress(je(D,se[0],se[1],ye.bisection,1,!0))}}let M=0;function $(){M+=.25,g.value&&y.value&&(o.value.style.rotate=`${M}deg`,s.value.style.rotate=`${M}deg`)}So($);function U(){g.value&&L()}function ne(){U()}return Ne(()=>n.scrollSubPixel,()=>{U()}),xn(ne),xt(()=>{Lt(()=>{g.value=!0,k(),R(),U()})}),Vt(()=>{g.value=!1}),(D,Q)=>{const N=PE;return ae(),me("div",{ref_key:"rootRef",ref:b,class:st(["HomeSwirlTitles",{visible:_e(y)}])},[J("div",{ref_key:"bgWhiteRef",ref:r,class:"HomeSwirlTitles-bg white"},[J("div",{ref_key:"logoGreenRef",ref:s,class:"HomeSwirlTitles-logo green"},[Ve(N)],512)],512),J("div",{ref_key:"bgGreenRef",ref:i,class:"HomeSwirlTitles-bg green"},null,512),J("div",{ref_key:"logoWhiteWrapRef",ref:a,class:"HomeSwirlTitles-bg"},[J("div",{ref_key:"logoWhiteRef",ref:o,class:"HomeSwirlTitles-logo white"},[Ve(N)],512)],512),J("div",ED,[J("div",{ref_key:"titleRef1",ref:u,class:"HomeSwirlTitles-title"},[(ae(!0),me(Ye,null,ut(_e(f),(W,V)=>(ae(),me("div",{ref_for:!0,ref:B=>h[V]=B,key:`title1Line-${V}`,role:"group"},We(W),1))),128))],512)]),J("div",kD,[J("div",{ref_key:"titleRef2",ref:c,class:"HomeSwirlTitles-title"},[(ae(!0),me(Ye,null,ut(_e(_),(W,V)=>(ae(),me("div",{ref_for:!0,ref:B=>l[V]=B,key:`title2Line-${V}`,role:"group"},We(W),1))),128))],512)])],2)}}},RD=_t(AD,[["__scopeId","data-v-9da85970"]]),xD={class:"HomeHero-inner"},CD={class:"sr-only"},PD={class:"HomeHero-title"},ID={class:"HomeHero-title base"},LD={class:"HomeHero-title"},OD={class:"HomeHero-title base"},MD={__name:"HomeHeroMo",props:{block:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=wn(),o=mh();vi();const s=[],a=[],u=[],c=[],h=j(null),l=j(null),d=j(null),f={rectScale:1,zScale:1,radiusScale:0,rotationUnit:0,el:null},_=j(!1),g=j(null),b=j(!1),{gsap:y}=gn(),w=Ce(()=>n.block),A=Ce(()=>w.value.videoSrc),k=Ce(()=>w.value.imageSrc),R=Ce(()=>w.value.title1),C=Ce(()=>{var P;const z=((P=R.value)==null?void 0:P.split(`
`))||[];return w.value.title2&&z.push(w.value.title2),z}),L=Ce(()=>{var P;return((P=w.value.title3)==null?void 0:P.split(`
`))||[]}),M=new or,$=new or,U={progress:0},ne=[-1,.2],D=[.3,1],Q={unmasked:{timeline:null,bisection:.5},masked:{timeline:null,bisection:.5},unmaskedBase:{timeline:null,bisection:.5},maskedBase:{timeline:null,bisection:.5},video:{timeline:null,bisection:.5}},N=j(!1),W=j(!1),V=()=>N.value=!0,B=()=>W.value=!0,oe=Ce(()=>W.value);Ne(oe,z=>z&&r("load"),{immediate:!0});const se=Ce(()=>!1);function q(){jr(Q);let z=Q.masked;const P=50;z.timeline=y.timeline({paused:!0}),z.bisection=Es({timeline:z.timeline,lineElementsArray:s,x:P}),z=Q.unmasked,z.timeline=y.timeline({paused:!0}),z.bisection=Es({timeline:z.timeline,lineElementsArray:a,x:P}),z=Q.maskedBase,z.timeline=y.timeline({paused:!0}),z.bisection=Es({timeline:z.timeline,lineElementsArray:u,x:P}),z=Q.unmaskedBase,z.timeline=y.timeline({paused:!0}),z.bisection=Es({timeline:z.timeline,lineElementsArray:c,x:P}),z=Q.video,z.timeline=y.timeline({paused:!0}),z.timeline.set(f,{rotationUnit:.5},0),z.timeline.to(f,{rectScale:.3,duration:1.5,ease:"power2.inOut"},.001),z.timeline.to(f,{zScale:.7,duration:2,ease:"power2.inOut"},.001),z.timeline.to(f,{rotationUnit:.75,duration:2,ease:"power2.inOut"},.2),z.timeline.to(f,{radiusScale:1.02,duration:1.7,ease:"power2.inOut"},.3)}Ne(()=>o.transitionVisibleState,z=>{z===ga.AFTER_ENTER&&be()},{immediate:!0});function be(){y.to(U,{progress:1,duration:3.4,ease:"sine.out"})}function Te(){$.updateFromElement(h.value)}function he(){const{el:z,rectScale:P,zScale:Y,rotationUnit:ee,radiusScale:K}=f;if(z){const x=Je.lvh,I=Je.ww/x,F=P*Y,Z=ee*zi,fe=Y*K*x,ue=Math.cos(Z)*fe*I,S=Math.sin(Z)*fe;z.style.translate=`${ue}px ${S}px`,z.style.scale=`${F} ${F}`}}function ge(){he(),M.updateFromElement(pr.mobile.elements.heroRect)}function Ae(){_.value&&(h.value.style.clipPath=or.clipPathInsetFromRects(M,$),l.value.style.translate=`${M.left}px ${M.top}px`,l.value.style.width=`${M.width}px`,l.value.style.height=`${M.height}px`)}function ye(z){var P,Y;(P=Q.masked.timeline)==null||P.progress(z),(Y=Q.unmasked.timeline)==null||Y.progress(z)}function ie(z){var P,Y;(P=Q.maskedBase.timeline)==null||P.progress(z),(Y=Q.unmaskedBase.timeline)==null||Y.progress(z)}function le(){var ee;const z=i.scrollSubPixel/Je.lvh,P=D[1]+1;b.value=gt(z,-1,P);let Y=Q.masked;if(b.value){if(gt(z,D[0],P)){let K=je(z,D[0],D[1],Y.bisection,1,!0);ye(K),Y=Q.maskedBase,K=je(z,D[0],D[1],Y.bisection,1,!0),ie(K)}Y=Q.video,(ee=Y.timeline)==null||ee.progress(je(z,.2,2.5))}}function pe(){_.value&&(le(),Te(),ge(),Ae())}function Se(){pe()}Ne(()=>i.scrollSubPixel,()=>{pe()}),xn(Se);function Ie(){const z=i.scrollSubPixel/Je.lvh;if(gt(z,ne[0],ne[1])){let P=Q.masked,Y=je(U.progress,0,.7,0,P.bisection,!0);ye(Y),P=Q.maskedBase,Y=je(U.progress,.65,1,0,P.bisection,!0),ie(Y)}}return So(Ie),xt(()=>{Lt(()=>{_.value=!0,pr.mobile.elements.heroRect=d.value,f.el=d.value,q(),pe(),Lt(pe)})}),Vt(()=>{y.killTweensOf(U),jr(Q),U.progress=0}),(z,P)=>{const Y=Nl;return ae(),me("div",{ref_key:"rootRef",ref:g,class:st(["HomeHero",{visible:_e(b)}])},[J("div",{ref_key:"inputRectRef",ref:d,class:"HomeHero-rect"},null,512),J("div",xD,[J("h1",CD,[(ae(!0),me(Ye,null,ut(_e(C),(ee,K)=>(ae(),me("span",{key:`sr-only-line-${K}`},We(ee),1))),128)),(ae(!0),me(Ye,null,ut(_e(L),(ee,K)=>(ae(),me("span",{key:`sr-only-line-base-${K}`},We(ee),1))),128))]),J("div",PD,[(ae(!0),me(Ye,null,ut(_e(C),(ee,K)=>(ae(),me("div",{ref_for:!0,ref:x=>a[K]=x,key:`unmaskedLine-${K}`,class:"HomeHero-title-line",role:"group"},We(ee),1))),128))]),J("div",ID,[(ae(!0),me(Ye,null,ut(_e(L),(ee,K)=>(ae(),me("div",{ref_for:!0,ref:x=>c[K]=x,key:`unmaskedLineBase-${K}`,class:"HomeHero-title-line-base",role:"group"},We(ee),1))),128))])]),J("div",{ref_key:"maskedBGRef",ref:l,class:"HomeHero-bg"},[Ve(Y,{"image-url":_e(k),"video-url":_e(A),"fallback-to-static":_e(se),onVideoplay:V,onImgload:B},null,8,["image-url","video-url","fallback-to-static"])],512),J("div",{ref_key:"maskedRef",ref:h,class:"HomeHero-inner masked"},[J("div",LD,[(ae(!0),me(Ye,null,ut(_e(C),(ee,K)=>(ae(),me("div",{ref_for:!0,ref:x=>s[K]=x,key:`maskedLine-${K}`,class:"HomeHero-title-line",role:"group"},We(ee),1))),128))]),J("div",OD,[(ae(!0),me(Ye,null,ut(_e(L),(ee,K)=>(ae(),me("div",{ref_for:!0,ref:x=>u[K]=x,key:`maskedLineBase-${K}`,class:"HomeHero-title-line-base",role:"group"},We(ee),1))),128))])],512)],2)}}},FD=_t(MD,[["__scopeId","data-v-088b7959"]]),DD={class:"icon-arrow",fill:"none",viewBox:"0 0 40 41",xmlns:"http://www.w3.org/2000/svg"};function $D(t,e){return ae(),me("svg",DD,e[0]||(e[0]=[J("path",{d:"m26.8333 17.5709c.6334.2667 1.0334.8667 1.0334 1.5667v9.7h3.6333v-20.06666h-20.0333v3.63336h9.8333c.7 0 1.3.4 1.5667 1.0666.2666.6667.1333 1.3667-.3667 1.8667l-14 13.7 2.5333 2.5667 13.9667-13.7c.5-.5 1.2-.6334 1.8333-.3667z",fill:"currentColor"},null,-1)]))}const IE={render:$D},HD={ref:"iconRef",class:"HomeScrollCTA-icon"},ND={ref:"labelRef",class:"HomeScrollCTA-label"},BD={__name:"HomeScrollCTA",setup(t){const e=wn(),n=mh(),r=j(null),i=j(null),o=j(!1),s=j(!1);Ne(()=>n.transitionVisibleState,c=>{},{immediate:!0});function a(){if(s.value){const c=e.scrollSubPixel/Je.lvh;o.value=gt(c,-1,1)}}function u(){a()}return xn(u),Ne(()=>e.scrollSubPixel,()=>{a()}),xt(()=>{Lt(()=>{s.value=!0,a(),Lt(a)})}),Vt(()=>{}),(c,h)=>{const l=IE;return ae(),me("div",{ref_key:"rootRef",ref:r,class:st(["HomeScrollCTA",{visible:_e(o)}])},[J("div",{ref_key:"ctaRef",ref:i,class:"HomeScrollCTA-cta"},[J("div",HD,[Ve(l)],512),J("div",ND," Scroll for more ",512)],512)],2)}}},LE=_t(BD,[["__scopeId","data-v-4aa9c26c"]]),VD={class:"HomeAnimation-portrait"},UD={class:"HomeAnimation-portrait-sticky-wrap"},jD={key:0,class:"HomeAnimation-portrait-sticky"},WD={__name:"HomeAnimationPortrait",props:{content:{type:Object,required:!0,default:()=>({hero:{},swirl:{},graph:{},stack:{},quote:{},keyAreas:{},approach:{},stats:{},funds:{}})}},emits:["load"],setup(t,{emit:e}){const n=e,r=j(!1),i=j(!1),o=j(!1),s=j(!1),a=j(!1),u=j(!1),c=Ce(()=>r.value&&i.value&&o.value&&s.value&&a.value&&u.value);Ne(c,b=>{b&&n("load")});function h(){r.value=!0}function l(){i.value=!0}function d(){o.value=!0}function f(){s.value=!0}function _(){a.value=!0}function g(){u.value=!0}return(b,y)=>{const w=LE,A=FD,k=RD,R=wD,C=rD,L=LF,M=wF,$=q4;return ae(),me("div",VD,[J("div",UD,[t.content?(ae(),me("div",jD,[Ve(w),Ve(A,{block:t.content.hero.mobile,onLoad:h},null,8,["block"]),Ve(k,{block:t.content.swirl.mobile},null,8,["block"]),Ve(R,{block:t.content.swirl.mobile,onLoad:l},null,8,["block"]),Ve(C,{block:t.content.graph.mobile,"block-stack":t.content.stack.mobile,onLoad:d},null,8,["block","block-stack"]),Ve(L,{block:t.content.quote.mobile,onLoad:f},null,8,["block"]),Ve(M,{block:t.content.keyAreas.mobile,onLoad:_},null,8,["block"]),Ve($,{block:t.content.approach.mobile,onLoad:g},null,8,["block"])])):bt("",!0)])])}}},zD=_t(WD,[["__scopeId","data-v-3f8622f7"]]),qD={class:"PaginationDots"},GD={__name:"PaginationDots",props:{currentIndex:{type:Number,default:0},total:{type:Number,default:5}},setup(t){return(e,n)=>(ae(),me("div",qD,[(ae(!0),me(Ye,null,ut(t.total,r=>(ae(),me("div",{ref_for:!0,ref:i=>i,key:`pagination-dot-${r}`,class:st(["PaginationDots-dot",{current:r<=t.currentIndex+1}])},n[0]||(n[0]=[J("div",{class:"PaginationDots-dot-border"},null,-1),J("div",{class:"PaginationDots-dot-fill"},null,-1)]),2))),128))]))}},OE=_t(GD,[["__scopeId","data-v-fa615e89"]]),YD={key:0,class:"HomeApproach-inner"},KD={key:0,ref:"chapterTitlesRef",class:"HomeApproach-sideTitles"},XD={class:"HomeApproach-sideTitles-inner"},QD={key:1,ref:"chaptersRef",class:"HomeApproach-chapters"},JD={class:"HomeApproach-dots"},ZD={class:"HomeApproach-chapter-inner"},e6={__name:"HomeApproach",props:{block:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=Ce(()=>n.block),o=Ce(()=>i.value.chapters),s={radar:"Loop Radar",smallDots:"Init Loop",largeDot:"Loop B",whiteDot:"Loop C",main:"main"},a=Ce(()=>{var ie;return{src:((ie=i.value)==null?void 0:ie.rive)||"",artboard:"main",animation:s.main}}),u={dots:.307,bigDot:.4756,premium:.665},c={dots:[u.dots,u.dots+.04],bigDot:[u.bigDot,u.bigDot+.01],premium:[u.premium,1]},h=[u.dots,u.bigDot,u.premium],l=[c.dots[1],c.bigDot[1],c.premium[1]],d=EE([[-1,0],[0,h[0]],[.2,l[0]],[1,h[1]],[1.2,l[1]],[2,h[2]],[3,1]],.4),f=j(null),_=j(null),g={decel:.8,accel:.5,maxSpeed:.01};new yE(g);const b=j(!1),y=j(!1),w=j(!1),A=j(!1),k={[s.radar]:0,[s.smallDots]:0,[s.largeDot]:0,[s.whiteDot]:0},R=j(!1);function C(){Object.values(s).forEach(ie=>{f.value.stop(ie)}),R.value=!0,r("load"),ge()}const L=wn(),M=[],$=[],U=[],ne=j(!1),D=j(0),Q=j(0),N={indexEased:0,indexLinear:0},W=j(null),V=j(!1);Ne(D,(ie,le)=>{const pe=le!==ie&&gt(le,0,3),Se=le!==ie&&gt(ie,0,3);if(Q.value=Ii(ie,0,2),ne.value&&pe){const Ie=$[le];B.killTweensOf(Ie),B.to(Ie,{opacity:0,x:0,duration:.1})}if(ne.value&&Se){const Ie=$[ie];B.killTweensOf(Ie),B.set(Ie,{opacity:0,x:"-2vw"}),B.to(Ie,{opacity:1,x:0,duration:.6,delay:.1,ease:"sine.out"})}});const{gsap:B}=gn(),oe={main:{timeline:null}};function se(){const ie=oe.main;ie.timeline=B.timeline({paused:!0}),ie.timeline.set(N,{indexEased:-1},0),ie.timeline.set(N,{indexLinear:-1},0),ie.timeline.to(N,{indexLinear:3,ease:"linear",duration:1},0);const le=1/4,pe=le*.1;for(let Se=0;Se<4;Se++)ie.timeline.to(N,{indexEased:Se,ease:"sine.inOut",duration:le-pe},le*Se)}function q(){const ie=f.value,{indexLinear:le}=N,pe=d(le);ie&&ie.progress(pe),b.value=gt(pe,...c.dots),y.value=gt(pe,...c.dots),w.value=gt(pe,...c.bigDot),A.value=gt(pe,...c.premium)}function be(ie,le){var pe,Se,Ie;le?((pe=f.value)==null||pe.play(ie),k[ie]=setInterval(()=>{var z;return(z=f.value)==null?void 0:z.play(ie)},3e3)):(clearInterval(k[ie]),(Se=f.value)==null||Se.pause(ie),(Ie=f.value)==null||Ie.scrub(0,ie))}Ne(()=>b.value&&R.value,ie=>be(s.radar,ie)),Ne(()=>y.value&&R.value,ie=>be(s.smallDots,ie)),Ne(()=>w.value&&R.value,ie=>be(s.largeDot,ie)),Ne(()=>A.value&&R.value,ie=>be(s.whiteDot,ie));function Te(){var P;const ie=Je.lvh,le=L.scrollSubPixel/ie,pe=pr.desktop.time.approachStart,Se=[pe,pe+4.2],Ie=pe+4.7,z=oe.main;if(V.value=gt(le,Se[0],Ie),V.value){(P=z.timeline)==null||P.progress(je(le,Se[0],Se[1]));const Y=Ms(je(le,Se[0]+.8,Se[0]),.2)*ie*.5;_.value.style.translate=`0px ${Y}px`;const ee=Ms(je(le,Ie-1.2,Ie),.2)*-ie;W.value.style.translate=`0px ${ee}px`}}function he(){const ie=Je.lvh;L.scrollSubPixel/ie;const{indexEased:le}=N;D.value=Math.round(le);for(let pe=0;pe<M.length;pe++){let Se=M[pe];const Ie=0;let z=Math.min(le,2)*-ie;z+=pe*ie,Se.style.translate=`${Ie}px ${z}px`,Se=U[pe];const P=je(le,pe-.4,pe-.25);Se.style.opacity=P}}function ge(){ne.value&&(Te(),V.value&&he())}function Ae(){V.value&&q()}function ye(){ge()}return Ne(()=>L.scrollSubPixel,()=>{ge()}),xn(ye),So(Ae),xt(()=>{Lt(()=>{ne.value=!0,se(),ge()})}),Vt(()=>{ne.value=!1}),(ie,le)=>{var Ie,z;const pe=vE,Se=OE;return ae(),me("div",{ref_key:"rootRef",ref:W,class:st(["HomeApproach",{visible:_e(V)}])},[_e(a)?(ae(),me("div",YD,[J("div",{ref_key:"riveParentRef",ref:_,class:"HomeApproach-rive-container"},[Ve(pe,{ref_key:"rivePlayerRef",ref:f,"src-all":_e(a),"log-instance":!1,autoplay:!0,onLoad:C},null,8,["src-all"])],512),(Ie=_e(o))!=null&&Ie.length?(ae(),me("div",KD,[J("div",XD,[(ae(!0),me(Ye,null,ut(_e(o),(P,Y)=>(ae(),me("div",{ref_for:!0,ref:ee=>$[Y]=ee,key:`chapter-${Y}`,class:"HomeApproach-sideTitle"},We(P.title),1))),128))])],512)):bt("",!0),(z=_e(o))!=null&&z.length?(ae(),me("div",QD,[J("div",JD,[Ve(Se,{total:_e(o).length,"current-index":_e(Q)},null,8,["total","current-index"])]),(ae(!0),me(Ye,null,ut(_e(o),(P,Y)=>(ae(),me("div",{ref_for:!0,ref:ee=>M[Y]=ee,key:`chapter-${Y}`,class:"HomeApproach-chapter"},[J("div",ZD,[P.subtitle?(ae(),me("div",{key:0,ref_for:!0,ref:ee=>ee,class:"HomeApproach-subtitle"},We(P.subtitle),513)):bt("",!0),P.body?(ae(),me("div",{key:1,ref_for:!0,ref:ee=>U[Y]=ee,class:"HomeApproach-body"},We(P.body),513)):bt("",!0)])]))),128))],512)):bt("",!0)])):bt("",!0)],2)}}},t6=_t(e6,[["__scopeId","data-v-77d46489"]]),n6=["innerHTML"],r6={__name:"KeyAreasOutro",props:{block:{type:Object,required:!0,default:()=>({})}},setup(t){const e=t,n=wn(),r=Ce(()=>e.block.content.outro),i=j(!1),o=j(null),s=[],a=Ce(()=>{var w,A;let y=((A=(w=r.value)==null?void 0:w.title)==null?void 0:A.split(`
`))||[];return y=y.map(k=>Hl(["code","em"],k)),y}),u=j(null),c=j(null),h=j(!1),{gsap:l}=gn(),d={main:{timeline:null}};function f(){const y=d.main;y.timeline=l.timeline({paused:!0}),wE({timeline:y.timeline,lineElementsArray:s})}function _(){var C;const y=Je.lvh,w=n.scrollSubPixel/y,A=pr.desktop.time.keyAreaStart,k=d.main;h.value=gt(w,A+6,A+10.5),h.value&&((C=k.timeline)==null||C.progress(je(w,A+8.5,A+8.8)));const R=Rl(je(w,A+9.5,A+10.5))*y*.13;c.value.style.translate=`0px ${R}px`}function g(){i.value&&_()}function b(){g()}return Ne(()=>n.scrollSubPixel,()=>{g()}),xn(b),xt(()=>{Lt(()=>{i.value=!0,f(),g()})}),Vt(()=>{i.value=!1}),(y,w)=>(ae(),me("div",{ref_key:"rootRef",ref:u,class:st(["KeyAreasOutro",{visible:_e(h)}])},[J("div",{ref_key:"contentRef",ref:c,class:"KeyAreasOutro-inner"},[J("div",{ref_key:"titleRef",ref:o,class:"KeyAreasOutro-title"},[(ae(!0),me(Ye,null,ut(_e(a),(A,k)=>(ae(),me("div",{ref_for:!0,ref:R=>s[k]=R,key:`titleLine-${k}`,innerHTML:A},null,8,n6))),128))],512)],512)],2))}},i6=_t(r6,[["__scopeId","data-v-6e5404a4"]]),o6={class:"KeyAreas-title-wrap"},s6={ref:"titleMaskedRef",class:"KeyAreas-title"},a6=["innerHTML"],l6={key:0,class:"KeyAreas-rect-wrap"},u6={class:"KeyAreas-video"},c6={class:"KeyAreas-content-wrap"},f6={class:"KeyAreas-content unmasked"},d6={class:"KeyAreas-content-body-inner"},h6={class:"KeyAreas-content-eyebrow"},p6=.92,m6={__name:"KeyAreas",props:{block:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=j(!1);let o=0;Ne(()=>i.value,P=>{P&&r("load")},{immediate:!0});const s=vi(),a=wn(),{gsap:u}=gn(),c=j(!1),h=[],l=[],d=[],f=j(null),_=j(null),g=j(null),b=j(null),y=j(null),w=j(null),A=j(0),k=j(null),R=j(!1),C=Ce(()=>s.lowFPS),L=j(!1);Ne(L,P=>{const Y=[_.value,g.value];Y[0]&&Y[1]&&Y.forEach(ee=>{ee.style.visibility=P?"visible":"hidden"})});const M={title:{timeline:null,bisection:.5},areas:{timeline:null}},$=Ce(()=>n.block),U=Ce(()=>{var P;return(P=$.value)==null?void 0:P.content.areas}),ne=Ce(()=>{var P;return(P=$.value)==null?void 0:P.content.main.title}),D=Ce(()=>{var Y;let P=((Y=ne.value)==null?void 0:Y.split(`
`))||[];return P=P.map(ee=>Hl(["code","em"],ee)),P}),Q=j(""),N=j(""),W=j(""),V=[1440,810];class B{constructor(Y=0,ee=0){Oe(this,"clusterRectScale",1);Oe(this,"clusterOverShoot",-1);Oe(this,"clusterRadius",0);Oe(this,"stackLerp",0);Oe(this,"clusterRect",null);Oe(this,"stackRect",null);Oe(this,"outputRect",null);Oe(this,"clusterIndex",0);Oe(this,"index",0);Oe(this,"wanderData",{});this.index=0,this.clusterIndex=ee,this.clusterRect=new or,this.stackRect=new or,this.outputRect=new or,this.wanderData=cr(Y)}}const oe={areaIndex:0,areaTitleIndex:-1,areas:[new B(0,3),new B(1,4),new B(2,2),new B(3,1),new B(4,0),new B(5)]},se=Ce(()=>{var ee,K;const P=[];(ee=U.value)==null||ee.forEach(x=>{P.push({label:x.button,url:x.url})});const Y=(K=$.value)==null?void 0:K.content.outro;return P.push({label:Y.button,url:Y.url}),P}),q=j(0);function be(){var Y,ee;jr(M);let P=M.title;(Y=P.timeline)==null||Y.kill(),P.timeline=u.timeline({paused:!0}),P.bisection=gh({timeline:P.timeline,lineElementsArray:h,x:100}),P=M.areas,(ee=P.timeline)==null||ee.kill(),P.timeline=u.timeline({paused:!0}),oe.areas.forEach((K,x)=>{const{clusterIndex:G}=K;P.timeline.set(K,{clusterRadius:0,stackLerp:0,clusterRectScale:1.7,clusterOverShoot:-3},0);const I=G*.05;P.timeline.to(K,{clusterRectScale:1,duration:1,ease:"power3.inOut"},1+I),P.timeline.to(K,{clusterRadius:1,duration:1,ease:"power3.inOut"},1+I),P.timeline.set(K,{clusterOverShoot:-1},.8),P.timeline.to(K,{clusterOverShoot:0,duration:.6,ease:"sine.out"},1.1+I),P.timeline.to(K,{stackLerp:1,duration:1.4,ease:"power2.inOut"},3.4-x*.05),P.timeline.set(oe,{areaIndex:0,areaTitleIndex:-1},0),P.timeline.set(L,{value:!1},3.5),P.timeline.set(L,{value:!0},4.1);const F="sine.inOut";x===0&&P.timeline.to(oe,{duration:1,areaTitleIndex:x,ease:F},3.5+.05),x>0&&(P.timeline.to(oe,{duration:1,areaIndex:x,ease:F},4.5+x*1.25),P.timeline.to(oe,{duration:1,areaTitleIndex:x,ease:F},4.5+x*1.25+.05))})}const Te=new or,he=new or;function ge(){const P=Je.svh,Y=Je.ww,ee=Math.round(oe.areaTitleIndex),K=ee-oe.areaTitleIndex,x=Ii(ee,0,4);A.value=Ii(ee,0,4),q.value=Ii(ee,0,5);const G=oe.areas[x],I=U.value[x];Q.value=(I==null?void 0:I.title)||"",N.value=(I==null?void 0:I.body)||"",W.value=(I==null?void 0:I.emission)||"";const F=G.outputRect;Te.width=Y,Te.height=P,he.width=F.width,he.height=F.height,he.left=F.x-F.width*.5,he.top=F.y-F.height*.5,f.value.style.clipPath=or.clipPathInsetFromRects(he,Te);let Z=0,fe=he.top+Y*.059;fe+=P*.2*je(Math.max(K,0),.01,.5);let ue=1-zo(je(Math.abs(K),.25,.45));_.value.style.translate=`${Z}px ${fe}px`,_.value.style.opacity=ue,g.value.style.translate=`${Z}px ${fe}px`,g.value.style.opacity=ue;const{pad:S,padSide:m}=Ae();Z=m,fe=P-S+P*K*.8,ue=1-zo(je(Math.abs(K),.07,.2)),y.value.style.translate=`${Z}px ${fe}px`,y.value.style.opacity=ue}function Ae(){const P=Je.lvh,K=Je.ww*.046+60,x=p6*K;return{stackHeight:P-K*2,pad:K,padSide:x}}const ye={x:0,y:0};function ie(P,Y,ee){const K=Y[0]*.6+P[0],x=Y[1]*.5+P[1];return ye.x=(K-ee[0]*.6)/ee[0],ye.y=(x-ee[1]*.5)/ee[0],ye}function le(){performance.now()/1e3;const P=Je.lvh,Y=Je.ww,ee=l,{pivot:K,rects:x}=$.value.animation.cluster;ee.forEach((G,I)=>{const F=oe.areas[I],{offset:Z,rectSize:fe}=x[I],{clusterRectScale:ue,clusterRadius:S,clusterOverShoot:m,stackLerp:T,clusterRect:H,stackRect:re,outputRect:ce,wanderData:Ee}=F;H.width=fe[0]/V[0]*ue*Y,H.height=fe[1]/V[0]*ue*Y,H.x=K.x,H.y=K.y,H.x*=Y,H.y*=P;const De=P/Y,Pe=1-Ii(je(De,V[1]/V[0],0)*1.5),Be=ie(Z,fe,V);H.x+=Be.x*S*Y,H.y+=Be.y*S*Y*Pe,H.x+=m*Y*.2;let{areaIndex:Qe}=oe;Qe=Math.max(Qe,0);const{stackHeight:tt,pad:pt,padSide:mt}=Ae(),rn=tt+pt;re.width=Y-mt*2,re.height=tt,re.x=.5*Y,re.y=re.height*.5+pt+rn*I,re.y-=Qe*rn;const nt=zo(je(Math.abs(I-Qe),1,0));re.width*=Wn(nt,.85,1),re.height*=Wn(nt,.85,1);const Ut=T;ce.x=Wn(zo(Ut),H.x,re.x),ce.y=Wn(Ut,H.y,re.y),ce.width=Wn(mc(Ut),H.width,re.width),ce.height=Wn(mc(Ut),H.height,re.height);const kt=0;G.style.width=`${ce.width}px`,G.style.height=`${ce.height}px`,G.style.translate=`${ce.x}px ${ce.y}px ${kt}px`,d[I].style.opacity=je(T,.1,.6,0,.5,!0)})}function pe(){var K,x,G;const P=Je.lvh,Y=a.scrollSubPixel/P,ee=pr.desktop.time.keyAreaStart;if(R.value=gt(Y,ee+.2,ee+10.5),R.value){let I=M.title;gt(Y,-1,ee+1.9)?(K=I.timeline)==null||K.progress(je(Y,ee+.9,ee+1.9,0,I.bisection,!0)):(x=I.timeline)==null||x.progress(je(Y,ee+2.3,ee+2.65,I.bisection,1,!0)),I=M.areas,(G=I.timeline)==null||G.progress(je(Y,ee-.5,ee+9));const F=Rl(je(Y,ee+9.5,ee+10.5))*-P;k.value.style.translate=`0px ${F}px`;const Z=je(Y,ee+3,ee+3.3),fe=je(Y,ee+8.4,ee+8.2),ue=Rl(gt(Y,0,ee+3.4)?Z:fe);w.value.style.opacity=ue}}function Se(){c.value&&(pe(),R.value&&(le(),ge()))}function Ie(){Se()}Ne(()=>a.scrollSubPixel,()=>{Se()}),xn(Ie),xt(()=>{Lt(()=>{c.value=!0,be(),Se()})}),Vt(()=>{var Y;o=0,(Y=M.title.timeline)==null||Y.kill()});function z(){var Y;o++;const P=(Y=U.value)==null?void 0:Y.length;i.value=P>0&&o===P}return(P,Y)=>{var I;const ee=i6,K=kE,x=OE,G=Nl;return ae(),me("div",{ref_key:"rootRef",ref:k,class:st(["KeyAreas",{visible:_e(R)}])},[Ve(ee,{block:t.block},null,8,["block"]),Ve(K,{"label-index":_e(q),areas:_e(se)},null,8,["label-index","areas"]),J("div",o6,[J("div",s6,[(ae(!0),me(Ye,null,ut(_e(D),(F,Z)=>(ae(),me("div",{ref_for:!0,ref:fe=>h[Z]=fe,key:`line-${Z}`,innerHTML:F},null,8,a6))),128))],512)]),_e(U)?(ae(),me("div",l6,[J("div",{ref_key:"dotsRef",ref:w,class:"KeyAreas-dots"},[Ve(x,{total:((I=_e(U))==null?void 0:I.length)||5,"current-index":_e(A)},null,8,["total","current-index"])],512),(ae(!0),me(Ye,null,ut(_e(U),(F,Z)=>(ae(),me("div",{ref_for:!0,ref:fe=>l[Z]=fe,key:`area-${Z}`,class:"KeyAreas-area"},[J("div",u6,[Ve(G,{"image-url":F.imageSrc,"video-url":F.src,"fallback-to-static":_e(C),onImgload:z},null,8,["image-url","video-url","fallback-to-static"]),J("div",{ref_for:!0,ref:fe=>d[Z]=fe,class:"KeyAreas-video-gradient"},null,512)])]))),128))])):bt("",!0),J("div",c6,[J("div",f6,[J("h2",{ref_key:"unmaskedTitleRef",ref:_,class:"KeyAreas-content-title"},We(_e(Q)),513)]),J("div",{ref_key:"maskedRef",ref:f,class:"KeyAreas-content masked"},[J("div",{ref_key:"maskedTitleRef",ref:g,class:"KeyAreas-content-title"},We(_e(Q)),513),J("div",{ref_key:"maskedBodyWrapRef",ref:y,class:"KeyAreas-content-body-wrap"},[J("div",d6,[J("div",h6,We(_e(W)),1),J("div",{ref_key:"maskedBodyRef",ref:b,class:"KeyAreas-content-body"},We(_e(N)),513)])],512)],512)])],2)}}},g6=_t(m6,[["__scopeId","data-v-4c555c38"]]),_6=["innerHTML"],v6={ref:"videoSectionRef",class:"HomeQuote-video-section"},y6={ref:"videoTitlesRef",class:"HomeQuote-video-titles"},b6={class:"HomeQuote-video-play"},w6=["src"],S6={__name:"HomeQuote",props:{block:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=lt.href.includes("debug-quote-video");let o=0;const s=wn(),a=vi(),u=mr(),c=Ce(()=>n.block),h=Ce(()=>{if(i)return!1;const N=a.modalState===di.VIDEO;return a.lowFPS||N}),l=j(!1),d=j(null),f=[],_=Ce(()=>{var W,V;let N=((V=(W=c.value)==null?void 0:W.title)==null?void 0:V.split(`
`))||[];return N=N.map(B=>Hl(["code","em"],B)),N}),g=j(null),b=j(null),y=j(null),w=j(null),A=j(!1),{gsap:k}=gn(),R={title:{timeline:null}};function C(){var W;jr(R);const N=R.title;(W=N.timeline)==null||W.kill(),N.timeline=k.timeline({paused:!0}),N.bisection=gh({timeline:N.timeline,lineElementsArray:f})}function L(){var B;const N=Je.lvh,W=s.scrollSubPixel/N,V=pr.desktop.time.quoteStart;if(A.value=gt(W,V,V+2.5),A.value){const oe=R.title;(B=oe.timeline)==null||B.progress(je(W,V+.4,V+1.4,0,oe.bisection,!0));const se=Li(je(W,V+1.1,V-.2)),q=Li(je(W,V+1.2,V+2.4))*-1,be=gt(W,0,V+1.1)?se:q;w.value.style.translate=`0px ${be*N}px`;const Te=Math.max(se,0),he=Math.max(Te*N*.07,0),ge=1+Te*4;i||(g.value.style.clipPath=`inset(${he}px ${he}px ${he}px ${he}px round ${ge}px)`);const Ae=be*-N*.13;b.value.style.translate=`0px ${Ae}px`;const ye=be*-N*.6;y.value.style.translate=`0px ${ye}px`}}function M(){l.value&&L()}function $(){M()}Ne(()=>s.scrollSubPixel,()=>{M()}),xn($);function U(){a.setVideoModalData({sources:u.getVideoSources(n.block.video.videoData),timeOffset:0}),a.setModalState(di.VIDEO)}xt(()=>{Lt(()=>{l.value=!0,C(),M()})});const ne=j(!1);function D(N){ne.value=N}Vt(()=>{o=0,l.value=!1});function Q(){o++,o===2&&r("load")}return(N,W)=>{const V=Nl,B=RE,oe=AE,se=i_;return _e(c)?(ae(),me("div",{key:0,ref_key:"rootRef",ref:w,class:st(["HomeQuote",{visible:_e(A)}])},[J("div",{ref_key:"maskRef",ref:g,class:"HomeQuote-inner"},[J("div",{ref_key:"bgRef",ref:y,class:"HomeQuote-bg"},[Ve(V,{"image-url":_e(c).backgroundImageSrc,"video-url":_e(c).backgroundVideoSrc,"fallback-to-static":_e(h),onImgload:Q},null,8,["image-url","video-url","fallback-to-static"])],512),J("div",{ref_key:"columnRef",ref:b,class:"HomeQuote-grid"},[J("div",{ref_key:"columnRef",ref:b,class:"HomeQuote-column"},[J("div",{ref_key:"titleRef",ref:d,class:"HomeQuote-title"},[(ae(!0),me(Ye,null,ut(_e(_),(q,be)=>(ae(),me("div",{ref_for:!0,ref:Te=>f[be]=Te,key:`titleLine-${be}`,innerHTML:q},null,8,_6))),128))],512),J("div",v6,[J("div",y6,[J("div",{ref:"videoTitleNameRef",class:"HomeQuote-video-title"},We(_e(c).video.name),513),J("div",{ref:"videoTitleRoleRef",class:"HomeQuote-video-title green"},We(_e(c).video.role),513),Ve(B)],512),J("button",{ref:"videoWrapRef",class:"HomeQuote-video-wrap",onClick:U,onMouseenter:W[0]||(W[0]=q=>D(!0)),onMouseleave:W[1]||(W[1]=q=>D(!1))},[J("span",b6,[Ve(se,{label:"Open video modal",theme:"white-alt","not-button":!0,variant:"large","manual-hover":_e(ne)},{default:Di(()=>[Ve(oe)]),_:1},8,["manual-hover"])]),J("img",{alt:"",class:"HomeQuote-video-bg",src:_e(c).video.videoImageSrc,onLoad:Q},null,40,w6)],544)],512)],512)],512)],512)],2)):bt("",!0)}}},T6=_t(S6,[["__scopeId","data-v-ed655a87"]]),E6={class:"HomeImageStack-inner"},k6={class:"HomeImageStack-box"},A6={class:"HomeImageStack-box-content"},R6={class:"HomeImageStack-box-text"},x6={class:"HomeImageStack-subtitle HomeImageStack-typo"},C6=["src"],P6={class:"HomeImageStack-box-text masked"},I6={class:"HomeImageStack-subtitle HomeImageStack-typo"},L6={__name:"HomeImageStack",props:{block:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=wn(),o=Ce(()=>n.block),s=j(!1);let a=40;const u=[],c=[],h=[],l=j(null),d=j(null),f=j(null),_=j(null),g=j(),b=j(null),y=j(!1),w=j(!1);let A=0;const k=j(!1);Ne(()=>k.value,Q=>{Q&&r("load")},{immediate:!0});const{gsap:R,CustomEase:C}=gn(),L={main:{timeline:null}};function M(){jr(L);const Q=L.main;Q.timeline=R.timeline({paused:!0});const N=C.create("custom","M0,0 C0,0.023 0,0.229 0,0.248 0,0.699 0.493,1 1,1 "),W=C.create("imgEase","M0,0 C0.36,0.521 0.624,1 1,1 ");let V=[];const B=u.length,oe=Q.timeline,se=a*B;oe.set([d.value,l.value],{y:se},0),oe.set([u,c],{opacity:0},0),V=[f.value,_.value],oe.set(V,{y:a,opacity:0},0),oe.to(V,{y:0,ease:N,duration:.95},.2),oe.set(V,{opacity:1},.2);for(let q=0;q<B;q++){const be=se-a*(q+1),Te=q<1?q+.01:q+.5,he=N;if(V=[d.value,l.value],oe.to(V,{y:be,duration:.95,ease:he},Te),V=[u[q],c[q]],oe.set(V,{opacity:1},Te),q>0){const ge=h[q],Ae=W;oe.set(ge,{opacity:0,scale:1},0),oe.to(ge,{opacity:1,duration:.1},Te),oe.to(ge,{scale:1.1,duration:.95,ease:Ae},Te)}else{const ge=h[q];oe.set(ge,{opacity:1},0)}}oe.progress(.001)}function $(){var V;const Q=Je.lvh,N=i.scrollSubPixel/Q,W=pr.desktop.time.imageStackStart;y.value=gt(N,W,W+3.9),y.value&&((V=L.main.timeline)==null||V.progress(je(N,W+.3,W+2.2)))}function U(){s.value&&$()}function ne(){var Q;a=((Q=u[0])==null?void 0:Q.getBoundingClientRect().height)||40,M(),U()}Ne(()=>i.scrollSubPixel,()=>{U()}),xn(ne),xt(()=>{Lt(()=>{var Q;s.value=!0,ne(),M(),U(),Lt(ne),w.value=(Q=lt.href)==null?void 0:Q.includes("debug-vertical")})}),Vt(()=>{A=0,k.value=!1,s.value=!1});function D(Q,N){A++;const W=o.value.stacks.length;k.value=W>0&&A===W}return(Q,N)=>(ae(),me("div",{ref_key:"rootRef",ref:b,class:st(["HomeImageStack",{visible:_e(y),debugVertical:_e(w)}])},[N[1]||(N[1]=J("div",{class:"HomeImageStack-redline"},null,-1)),J("div",E6,[J("div",k6,[J("div",A6,[J("div",R6,[J("div",{ref_key:"labelsRef",ref:d,class:"HomeImageStack-labels HomeImageStack-typo"},[(ae(!0),me(Ye,null,ut(_e(o).stacks,(W,V)=>(ae(),me("div",{ref_for:!0,ref:B=>u[V]=B,key:`label-${V}`,class:"HomeImageStack-label"},We(W.label),1))),128))],512),J("div",x6,[J("div",{ref_key:"subtitleRef",ref:f,class:"HomeImageStack-label"},We(_e(o).subtitle),513)])]),J("div",{ref_key:"imagesRef",ref:g,class:"HomeImageStack-images"},[(ae(!0),me(Ye,null,ut(_e(o).stacks,(W,V)=>(ae(),me("img",{ref_for:!0,ref:B=>h[V]=B,key:`image-${V}`,class:"HomeImageStack-image",src:W.imageSrc,onLoad:N[0]||(N[0]=B=>D(B,Q.image)),alt:""},null,40,C6))),128))],512),J("div",P6,[J("div",{ref_key:"labelsMaskedRef",ref:l,class:"HomeImageStack-labels HomeImageStack-typo"},[(ae(!0),me(Ye,null,ut(_e(o).stacks,(W,V)=>(ae(),me("div",{ref_for:!0,ref:B=>c[V]=B,key:`label-masked--${V}`,class:"HomeImageStack-label white"},We(W.label),1))),128))],512),J("div",I6,[J("div",{ref_key:"subtitleMaskedRef",ref:_,class:"HomeImageStack-label green"},We(_e(o).subtitle),513)])])])])])],2))}},O6=_t(L6,[["__scopeId","data-v-99a445c1"]]),M6={class:"HomeGraph-sidetitle-wrap"},F6={class:"HomeGraph-inner"},D6={class:"HomeGraph-box"},$6={class:"HomeGraph-text"},H6={class:"HomeGraph-text text2"},N6={class:"HomeGraph-value-labels"},B6={class:"HomeGraph-value-labels"},V6={__name:"HomeGraph",props:{block:{type:Object,required:!0,default:()=>({})},blockStack:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=wn(),o=Ce(()=>n.block),s=j(null),a=j(null),u=j(null),c=j(null),h=j(null),l=j(null),d=j(null),f=j(0),_=j(300),g=j(300),b=j(null),y=j(null),w=j(null),A=j(null),k=j(null),R=j(null),C=j(null),L=j(null),M=j(null),$=j(null),U=j(null),ne=j(null),D=j(null),Q=j(null),N=j(null),W=j(null),V=j(null),B=j(null),oe=j(null),se=j(null),q=[],be=[],Te=Ce(()=>{var ee,K;return((K=(ee=o.value)==null?void 0:ee.body1)==null?void 0:K.split(`
`))||[]}),he=Ce(()=>{var ee,K;return((K=(ee=o.value)==null?void 0:ee.body2)==null?void 0:K.split(`
`))||[]}),ge=j(!1),Ae=j(null),ye=j(!1),{gsap:ie}=gn(),le={main:{timeline:null}};function pe(){jr(le);const ee=le.main;ee.timeline=ie.timeline({paused:!0});const K=ee.timeline;let x=[];x=s.value,K.set(x,{y:"100lvh"},0),K.to(x,{duration:.75,y:"35.5vh",ease:"sine.out"},.001),K.to(x,{duration:.65,y:0,ease:"sine.in"},1.2),K.set(x,{y:0},3),x=a.value,K.set(x,{scale:.7,y:"75vh"},0),K.to(x,{duration:.75,scale:1,y:0,ease:"sine.out"},.05),K.set(f,{value:0},0),K.to(f,{value:1,duration:1,ease:"sine.out"},.1);const G=.9;x=[B.value,oe.value],K.set(x,{opacity:0},0),K.to(x,{opacity:1,duration:0,ease:"sine.out"},G),x=l.value,K.set(x,{x:20,opacity:0},0),K.to(x,{x:0,opacity:1,duration:.5,ease:"sine.out"},.5);function I({start:fe=.6,parent:ue,barHorz:S,barVertArray:m,labelArray:T}={}){x=ue,K.set(x,{x:"-5cqw"},0),K.to(x,{x:0,duration:.4,ease:"sine.out"},fe),x=S,K.set(x,{x:-10,scaleX:.5,opacity:0},0),K.to(x,{x:0,scaleX:1,duration:.35,ease:"sine.out"},fe),K.set(x,{opacity:1},fe),x=m,K.set(x,{opacity:0},0),K.set(x,{opacity:1},fe),x=T,K.set(x,{opacity:0,x:-10},0),K.to(x,{x:0,duration:.35,ease:"sine.out"},fe+.15),K.set(x,{opacity:1},fe+.2)}I({start:.5,parent:y.value,barHorz:A.value,barVertArray:[k.value,R.value],labelArray:[C.value,L.value]}),x=M.value,K.set(x,{x:-10,scaleX:0,opacity:0},0),K.to(x,{x:0,scaleX:1,duration:.5,ease:"sine.out"},.75),K.set(x,{opacity:1},.7),x=$.value,K.set(x,{x:-10,scaleX:0,opacity:0},0),K.to(x,{x:0,scaleX:1,duration:.5,ease:"sine.out"},.85),K.set(x,{opacity:1},.8),I({start:.75,parent:U.value,barHorz:D.value,barVertArray:[Q.value,N.value],labelArray:[W.value,V.value]}),x=q,Fd({timeline:K,lineElementsArray:x,lineDuration:.3,startTime:.7}),TE({timeline:K,lineElementsArray:x,lineDuration:.3,startTime:1.35}),x=be,Fd({timeline:K,lineElementsArray:x,lineDuration:.3,startTime:2.1}),x=se.value,K.set(x,{y:"100cqh"},0);const F="61cqh",Z="20.8cqh";K.to(x,{y:F,duration:.75,ease:"sine.out"},.3),K.to(x,{y:Z,duration:0,ease:"sine.inOut"},1.75),x=c.value,K.set(x,{y:"100cqh"},0),K.to(x,{y:F,duration:.75,ease:"sine.out"},.3),K.to(x,{y:Z,duration:1,ease:"sine.inOut"},1.25),x=h.value,K.set(x,{autoAlpha:1},0)}function Se(){var G;const ee=Je.lvh,K=i.scrollSubPixel/ee,x=pr.desktop.time.graphStart;if(ye.value=gt(K,x,x+5.95),ye.value){(G=le.main.timeline)==null||G.progress(je(K,x,x+2.15));const F=Li(je(K,x+4.45,x+5.75))*-1;Ae.value.style.translate=`0px ${F*ee}px`;const Z=Li(je(K,x+2.15,x+2.65)),fe=ee*.65,ue=Wn(Z,0,fe);u.value.style.clipPath=`inset( -2px -2px ${ue}px  -2px )`;const S=Li(je(K,x+2.75,x+2.55));d.value.style.opacity=S;const m=Li(je(K,x+2.35,x+2.15));b.value.style.opacity=m}}function Ie(){const{svh:ee}=Je;_.value=Math.max(300,.584*ee),g.value=Math.max(100,.65*ee)}function z(){ge.value&&Se()}function P(){pe(),Ie(),z()}Ne(()=>i.scrollSubPixel,()=>{z()}),xn(P),xt(()=>{Lt(()=>{ge.value=!0,pe(),z()})}),Vt(()=>{ge.value=!1});function Y(){r("load")}return(ee,K)=>{const x=O6,G=CE,I=xE;return ae(),me("div",{ref_key:"rootRef",ref:Ae,class:st(["HomeGraph",{visible:_e(ye)}])},[J("div",{ref_key:"bgRef",ref:s,class:"HomeGraph-bg"},null,512),J("div",M6,[J("div",{ref_key:"sideTitleRef",ref:l,class:"HomeGraph-sidetitle"},We(_e(o).title),513)]),Ve(x,{block:t.blockStack,onLoad:Y},null,8,["block"]),J("div",F6,[J("div",{ref_key:"boxRef",ref:a,class:"HomeGraph-box-wrap"},[J("div",D6,[J("div",{ref_key:"cornerCrossTLRef",ref:B,class:"HomeGraph-box-corner tl"},[Ve(G)],512),J("div",{ref_key:"cornerCrossBRRef",ref:oe,class:"HomeGraph-box-corner br"},[Ve(G)],512),J("div",{ref_key:"boxContentRef",ref:u,class:"HomeGraph-box-content"},[J("div",{ref_key:"boxWhiteBGRef",ref:h,class:"HomeGraph-box-content-bg white"},null,512),J("div",{ref_key:"boxGreenBGRef",ref:c,class:"HomeGraph-box-content-bg"},null,512),J("div",{ref_key:"titleRef",ref:se,class:"HomeGraph-text-wrap"},[J("div",$6,[(ae(!0),me(Ye,null,ut(_e(Te),(F,Z)=>(ae(),me("div",{ref_for:!0,ref:fe=>q[Z]=fe,key:`title1Line-${Z}`},We(F),1))),128))]),J("div",H6,[(ae(!0),me(Ye,null,ut(_e(he),(F,Z)=>(ae(),me("div",{ref_for:!0,ref:fe=>be[Z]=fe,key:`title2Line-${Z}`},We(F),1))),128))])],512)],512),J("div",{ref_key:"valuesRef",ref:b,class:"HomeGraph-box-values"},[J("div",{ref_key:"values1Ref",ref:y,class:"HomeGraph-value top"},[J("div",{ref_key:"values1BarRef",ref:w,class:"HomeGraph-value-bar"},[J("div",{ref_key:"values1BarHorzRef",ref:A,class:"HomeGraph-value-bar-horz"},null,512),J("div",{ref_key:"values1BarVertLeftRef",ref:k,class:"HomeGraph-value-bar-vert left"},null,512),J("div",{ref_key:"values1BarVertRightRef",ref:R,class:"HomeGraph-value-bar-vert right"},null,512)],512),J("div",N6,[J("div",{ref_key:"values1Label1",ref:C,class:"HomeGraph-value-label top"},We(_e(o).maximum1),513),J("div",{ref_key:"values1Label2",ref:L,class:"HomeGraph-value-label base"},We(_e(o).maximum2),513)])],512),J("div",{ref_key:"valuesMid1Ref",ref:M,class:"HomeGraph-value-mid"},null,512),J("div",{ref_key:"valuesMid2Ref",ref:$,class:"HomeGraph-value-mid"},null,512),J("div",{ref_key:"values2Ref",ref:U,class:"HomeGraph-value base"},[J("div",{ref_key:"values2BarRef",ref:ne,class:"HomeGraph-value-bar"},[J("div",{ref_key:"values2BarHorzRef",ref:D,class:"HomeGraph-value-bar-horz"},null,512),J("div",{ref_key:"values2BarVertLeftRef",ref:Q,class:"HomeGraph-value-bar-vert left"},null,512),J("div",{ref_key:"values2BarVertRightRef",ref:N,class:"HomeGraph-value-bar-vert right"},null,512)],512),J("div",B6,[J("div",{ref_key:"values2Label1",ref:W,class:"HomeGraph-value-label top"},We(_e(o).minimum1),513),J("div",{ref_key:"values2Label2",ref:V,class:"HomeGraph-value-label base"},We(_e(o).minimum2),513)])],512)],512)]),J("div",{ref_key:"boxBorderRef",ref:d,class:"HomeGraph-box-border"},[Ve(I,{width:_e(_),height:_e(g),progress:_e(f)},null,8,["width","height","progress"])],512)],512)])],2)}}},U6=_t(V6,[["__scopeId","data-v-18da34fd"]]),j6=["src","onLoad"],W6={__name:"ImageSwirl",props:{block:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=wn(),{gsap:o}=gn(),s=j(!1),a=j(null),u=j(!1),c=[];let h=null;const l=Ce(()=>n.block),d=Ce(()=>l.value.content),f=structuredClone(gc.desktop.animation.main),_=structuredClone(gc.desktop.animation.rects),g=j(!1);Ne(()=>g.value,M=>{M&&r("load")},{immediate:!0});function b(){h==null||h.kill(),h=o.timeline({paused:!0});const M=h;l.value;const $=l.value.animation.main,U=f;for(const[se,q]of Object.entries($))M.set(U,{[se]:q},0);const ne=6,D=1,Q={s:.001,k:2.3,d:2.3},N={s:Q.k,k:3.2,d:3.2-Q.k},W={s:N.k,d:4.4-N.k},V={s:ne-1,d:1},B="sine.inOut";M.set(U,{rect_scale:5,duration:0,ease:B},0),M.to(U,{aspect_scale:.3,duration:Q.d,ease:B},Q.s),M.to(U,{rect_scale:1.5,duration:Q.d,ease:B},Q.s),M.to(U,{radius_multiply:.2,duration:Q.d,ease:B},Q.s),M.to(U,{rect_scale:2.2,duration:N.d,ease:B},N.s),M.to(U,{radius_multiply:.36,duration:N.d,ease:B},N.s),M.to(U,{aspect_scale:1,duration:N.d,ease:B},N.s),M.to(U,{radius_random_mul:.3,duration:N.d,ease:B},N.s),M.to(U,{radius_add:.48,duration:V.d,ease:"sine.in"},V.s-.6),M.to(U,{radius_random_mul:0,duration:W.d,ease:B},W.s),M.to(U,{rect_scale:0,duration:0,ease:B},ne-.05),M.to(U,{rotation:2,duration:ne-D,ease:se=>Ms(se,.07)},D);const oe=Q.k-D;M.to(U,{rotationModulated:0,duration:oe,ease:B},D),M.to(U,{rotationModulated:.8,duration:W.d+V.d,ease:se=>Ms(se,.35)},W.s)}function y(){let M=0;const $=performance.now()/1e3,{radius_multiply:U,radius_random_mul:ne,radius_add:D,z_scale:Q,z_add:N,rect_scale:W,rotation:V,rotationModulated:B,rotationModulateRamp:oe,aspect_scale:se}=f,q=(V+B-.2)*.5*zi;for(const be of c){const Te=_[M];if(Te.el=be,be){const he=Je.lvh,ge=Je.ww,Ae=ge/he,ye=M/c.length;let{el:ie,scale:le,aspect:pe,z:Se,rotation:Ie,radius:z}=Te,P=Te.wander.seed;const Y=.5+P*.5,ee=bE($,Y,Te.wander);Se+=N,Se+=ee[2]*.1;const K=Se*Q+(1-Q);let x=le*K*W;P=a_(P)*ne,x*=.75*P+.25;const G=Ie*zi,I=ye*zi,F=G+I+q;let Z=K*z*U;Z+=D,Z+=P*.6,Z+=x*.15*pe;const fe=Z*he,ue=Wn(se,1,Ae);let S=Math.cos(F)*fe*ue,m=Math.sin(F)*fe;S+=ee[0]*.1*he*Z,m+=ee[1]*.1*he*Z,S+=ge*.5,m+=he*.5,m-=he*.15,S-=he*.15*pe,ie.style.translate=`${S}px ${m}px`,ie.style.scale=`${x} ${x}`}M++}}function w(){const M=i.scrollSubPixel/Je.lvh,$=[.1,5.5];u.value=gt(M,-1,$[1]),u.value&&(h==null||h.progress(je(M,$[0],$[1])))}function A(){s.value&&w()}function k(){u.value&&y()}function R(){A()}Ne(()=>i.scrollSubPixel,()=>{A()}),xn(R),So(k),xt(()=>{Lt(()=>{s.value=!0,b()})}),Vt(()=>{h==null||h.kill(),c.splice(0,c.length),C=0});let C=0;function L(M,$){const U=M.target;$.aspect=U.naturalWidth/U.naturalHeight,C++;const ne=_.length;g.value=ne>0&&C===ne}return(M,$)=>(ae(),me("div",{ref_key:"rootRef",ref:a,class:st(["ImageSwirl",{visible:_e(u)}])},[(ae(!0),me(Ye,null,ut(_e(_),(U,ne)=>{var D;return ae(),me("img",{ref_for:!0,ref:Q=>c[ne]=Q,key:`swirlimage-${ne}`,class:"ImageSwirl-rect",src:((D=_e(d).images[ne])==null?void 0:D.src)||"",onLoad:Q=>L(Q,U),alt:""},null,40,j6)}),128))],2))}},z6=_t(W6,[["__scopeId","data-v-59404dea"]]),q6={class:"HomeSwirlTitles-title-wrap"},G6={class:"HomeSwirlTitles-title-wrap"},Y6={__name:"HomeSwirlTitles",props:{block:{type:Object,required:!0,default:()=>({})}},setup(t){const e=t,n=wn(),r=j(null),i=j(null),o=j(null),s=j(null),a=j(null),u=j(null),c=j(null),h=[],l=[],d=Ce(()=>e.block),f=Ce(()=>{var D,Q,N;return((N=(Q=(D=d.value)==null?void 0:D.content)==null?void 0:Q.title1)==null?void 0:N.split(`
`))||""}),_=Ce(()=>{var D,Q,N;return((N=(Q=(D=d.value)==null?void 0:D.content)==null?void 0:Q.title2)==null?void 0:N.split(`
`))||""});Ce(()=>{var D,Q,N;return((N=(Q=(D=d.value)==null?void 0:D.content)==null?void 0:Q.title3)==null?void 0:N.split(`
`))||""});const g=j(!1),b=j(null),y=j(!1),{gsap:w}=gn(),A={logoOutro:{timeline:null,bisection:.5},background:{timeline:null},title1:{timeline:null,bisection:.5},title2:{timeline:null,bisection:.5}};function k(){w.set(i.value,{autoAlpha:0}),w.set(a.value,{autoAlpha:0}),w.set(o.value,{autoAlpha:1})}function R(){jr(A);let D=A.logoOutro;D.timeline=w.timeline({paused:!0});let Q=D.timeline;Q.set(o.value,{autoAlpha:1},0),Q.to(o.value,{duration:.25,autoAlpha:0},.01),D=A.background,D.timeline=w.timeline({paused:!0}),Q=D.timeline,Q.set(i.value,{autoAlpha:0},0),Q.set(a.value,{autoAlpha:0},0),Q.to(i.value,{duration:.25,autoAlpha:1},.01),Q.to(a.value,{duration:.25,autoAlpha:1},.01),Q.to(r.value,{duration:0,autoAlpha:0},.26),D=A.title1,D.timeline=w.timeline({paused:!0}),D.bisection=SE({timeline:D.timeline,lineElementsArray:h}),D=A.title2,D.timeline=w.timeline({paused:!0}),D.timeline.set(c.value,{y:0},0),D.bisection=Es({timeline:D.timeline,lineElementsArray:l,outroOffset:.3});const N=D.bisection*D.timeline.duration(),W=D.timeline.duration()-N;D.timeline.to(c.value,{y:-20,ease:"power2.in",duration:W},N+.01)}const C={vis:[-1,7],background:[2.4,2.6],title1_in:[2.6,3.6],title1_out:[3.8,4.5],title2_in:[4.5,4.9],title2_out:[4.9,5.4],logo:[5.2,5.6]};function L(){var q,be,Te,he,ge,Ae;const D=n.scrollSubPixel/Je.lvh,{vis:Q,logo:N,background:W,title1_in:V,title1_out:B,title2_in:oe,title2_out:se}=C;if(y.value=gt(D,Q[0],Q[1]),y.value){let ye=A.logoOutro;(q=ye.timeline)==null||q.progress(je(D,N[0],N[1])),ye=A.background,(be=ye.timeline)==null||be.progress(je(D,W[0],W[1])),ye=A.title1,gt(D,-1,V[1])?(Te=ye.timeline)==null||Te.progress(je(D,V[0],V[1],0,ye.bisection,!0)):(he=ye.timeline)==null||he.progress(je(D,B[0],B[1],ye.bisection,1,!0)),ye=A.title2,gt(D,-1,oe[1])?(ge=ye.timeline)==null||ge.progress(je(D,oe[0],oe[1],0,ye.bisection,!0)):(Ae=ye.timeline)==null||Ae.progress(je(D,se[0],se[1],ye.bisection,1,!0))}}let M=0;function $(){M+=.25,g.value&&y.value&&(o.value.style.rotate=`${M}deg`,s.value.style.rotate=`${M}deg`)}So($);function U(){g.value&&L()}function ne(){U()}return Ne(()=>n.scrollSubPixel,()=>{U()}),xn(ne),xt(()=>{Lt(()=>{g.value=!0,k(),R(),U()})}),Vt(()=>{g.value=!1}),(D,Q)=>{const N=PE;return ae(),me("div",{ref_key:"rootRef",ref:b,class:st(["HomeSwirlTitles",{visible:_e(y)}])},[J("div",{ref_key:"bgWhiteRef",ref:r,class:"HomeSwirlTitles-bg white"},[J("div",{ref_key:"logoGreenRef",ref:s,class:"HomeSwirlTitles-logo green"},[Ve(N)],512)],512),J("div",{ref_key:"bgGreenRef",ref:i,class:"HomeSwirlTitles-bg green"},null,512),J("div",{ref_key:"logoWhiteWrapRef",ref:a,class:"HomeSwirlTitles-bg"},[J("div",{ref_key:"logoWhiteRef",ref:o,class:"HomeSwirlTitles-logo white"},[Ve(N)],512)],512),J("div",q6,[J("div",{ref_key:"titleRef1",ref:u,class:"HomeSwirlTitles-title"},[(ae(!0),me(Ye,null,ut(_e(f),(W,V)=>(ae(),me("div",{ref_for:!0,ref:B=>h[V]=B,key:`title1Line-${V}`,role:"group"},We(W),1))),128))],512)]),J("div",G6,[J("div",{ref_key:"titleRef2",ref:c,class:"HomeSwirlTitles-title"},[(ae(!0),me(Ye,null,ut(_e(_),(W,V)=>(ae(),me("div",{ref_for:!0,ref:B=>l[V]=B,key:`title2Line-${V}`,role:"group"},We(W),1))),128))],512)])],2)}}},K6=_t(Y6,[["__scopeId","data-v-79c990d7"]]),X6={class:"HomeHero-inner"},Q6={class:"sr-only"},J6={class:"HomeHero-title"},Z6={class:"HomeHero-title"},e$={__name:"HomeHero",props:{block:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=wn(),o=mh(),s=[],a=[],u=j(null),c=j(null),h=j(null),l={rectScale:1,zScale:1,radiusScale:0,rotationUnit:0,el:null},d=j(!1),f=j(null),_=j(!1),{gsap:g}=gn(),b=Ce(()=>n.block),y=Ce(()=>b.value.videoSrc),w=Ce(()=>b.value.imageSrc),A=Ce(()=>b.value.title1),k=Ce(()=>{var pe;const le=((pe=A.value)==null?void 0:pe.split(`
`))||[];return b.value.title2&&le.push(b.value.title2),le}),R=Ce(()=>{const le=k.value,pe=["Empowering innovators","to build the future","of energy"];let Se=!0;return pe.forEach((Ie,z)=>{pe[z]!==le[z]&&(Se=!1)}),Se}),C=new or,L=new or,M={progress:0},$=[-1,.2],U=[.3,1],ne={unmasked:{timeline:null,bisection:.5},masked:{timeline:null,bisection:.5},video:{timeline:null,bisection:.5}},D=j(!1),Q=j(!1),N=()=>D.value=!0,W=()=>Q.value=!0,V=Ce(()=>Q.value);Ne(V,le=>le&&r("load"),{immediate:!0});function B(){jr(ne);let le=ne.masked;le.timeline=g.timeline({paused:!0}),le.bisection=Es({timeline:le.timeline,lineElementsArray:s}),le=ne.unmasked,le.timeline=g.timeline({paused:!0}),le.bisection=Es({timeline:le.timeline,lineElementsArray:a}),le=ne.video,le.timeline=g.timeline({paused:!0}),le.timeline.set(l,{rotationUnit:.5},0),le.timeline.to(l,{rectScale:.3,duration:1.5,ease:"power2.inOut"},.001),le.timeline.to(l,{zScale:.7,duration:2,ease:"power2.inOut"},.001),le.timeline.to(l,{rotationUnit:.75,duration:2,ease:"power2.inOut"},.2),le.timeline.to(l,{radiusScale:1.02,duration:1.7,ease:"power2.inOut"},.3)}Ne(()=>o.transitionVisibleState,le=>{le===ga.AFTER_ENTER&&oe()},{immediate:!0});function oe(){g.to(M,{progress:1,duration:3.4,ease:"sine.out"})}function se(){L.updateFromElement(u.value)}function q(){const{el:le,rectScale:pe,zScale:Se,rotationUnit:Ie,radiusScale:z}=l;if(le){const P=Je.lvh,ee=Je.ww/P,K=pe*Se,x=Ie*zi,G=Se*z*P,I=Math.cos(x)*G*ee,F=Math.sin(x)*G;le.style.translate=`${I}px ${F}px`,le.style.scale=`${K} ${K}`}}function be(){q(),C.updateFromElement(pr.desktop.elements.heroRect)}function Te(){d.value&&(u.value.style.clipPath=or.clipPathInsetFromRects(C,L),c.value.style.translate=`${C.left}px ${C.top}px`,c.value.style.width=`${C.width}px`,c.value.style.height=`${C.height}px`)}function he(le){var pe,Se;(pe=ne.masked.timeline)==null||pe.progress(le),(Se=ne.unmasked.timeline)==null||Se.progress(le)}function ge(){var Ie;const le=i.scrollSubPixel/Je.lvh,pe=U[1]+1;_.value=gt(le,-1,pe);let Se=ne.masked;if(_.value){if(gt(le,U[0],pe)){const z=je(le,U[0],U[1],Se.bisection,1,!0);he(z)}Se=ne.video,(Ie=Se.timeline)==null||Ie.progress(je(le,.2,2.5))}}function Ae(){d.value&&(ge(),se(),be(),Te())}function ye(){Ae()}Ne(()=>i.scrollSubPixel,()=>{Ae()}),xn(ye);function ie(){const le=i.scrollSubPixel/Je.lvh,pe=ne.masked;if(gt(le,$[0],$[1])){const Se=je(M.progress,0,1,0,pe.bisection,!0);he(Se)}}return So(ie),xt(()=>{Lt(()=>{d.value=!0,pr.desktop.elements.heroRect=h.value,l.el=h.value,B(),Ae(),Lt(Ae)})}),Vt(()=>{g.killTweensOf(M),jr(ne),M.progress=0}),(le,pe)=>{const Se=Nl;return ae(),me("div",{ref_key:"rootRef",ref:f,class:st(["HomeHero",{visible:_e(_),isInitialText:_e(R)}])},[J("div",{ref_key:"inputRectRef",ref:h,class:"HomeHero-rect"},null,512),J("div",X6,[J("h1",Q6,[(ae(!0),me(Ye,null,ut(_e(k),(Ie,z)=>(ae(),me("span",{key:`sr-only-line-${z}`},We(Ie),1))),128))]),J("div",J6,[(ae(!0),me(Ye,null,ut(_e(k),(Ie,z)=>(ae(),me("div",{ref_for:!0,ref:P=>a[z]=P,key:`unmaskedLine-${z}`,class:"HomeHero-title-line",role:"group"},We(Ie),1))),128))])]),J("div",{ref_key:"maskedBGRef",ref:c,class:"HomeHero-bg"},[Ve(Se,{"image-url":_e(w),"video-url":_e(y),onVideoplay:N,onImgload:W},null,8,["image-url","video-url"])],512),J("div",{ref_key:"maskedRef",ref:u,class:"HomeHero-inner masked"},[J("div",Z6,[(ae(!0),me(Ye,null,ut(_e(k),(Ie,z)=>(ae(),me("div",{ref_for:!0,ref:P=>s[z]=P,key:`maskedLine-${z}`,class:"HomeHero-title-line",role:"group"},We(Ie),1))),128))])],512)],2)}}},t$=_t(e$,[["__scopeId","data-v-f92dfd40"]]),n$={class:"HomeAnimation-landscape"},r$={class:"HomeAnimation-landscape-sticky-wrap"},i$={key:0,class:"HomeAnimation-landscape-sticky"},o$={__name:"HomeAnimationLandscape",props:{content:{type:Object,required:!0,default:()=>({hero:{},swirl:{},graph:{},stack:{},quote:{},keyAreas:{},approach:{},stats:{},funds:{}})}},emits:["load"],setup(t,{expose:e,emit:n}){const r=n,i=j(!1),o=j(!1),s=j(!1),a=j(!1),u=j(!1),c=j(!1),h=Ce(()=>i.value&&o.value&&s.value&&a.value&&u.value&&c.value);Ne(h,y=>{y&&r("load")},{immediate:!0});function l(){i.value=!0}function d(){o.value=!0}function f(){s.value=!0}function _(){a.value=!0}function g(){u.value=!0}function b(){c.value=!0}return e({loaded:h}),(y,w)=>{const A=LE,k=t$,R=K6,C=z6,L=U6,M=T6,$=g6,U=t6;return ae(),me("div",n$,[J("div",r$,[t.content?(ae(),me("div",i$,[Ve(A),Ve(k,{block:t.content.hero.desktop,onLoad:l},null,8,["block"]),Ve(R,{block:t.content.swirl.desktop},null,8,["block"]),Ve(C,{block:t.content.swirl.desktop,onLoad:d},null,8,["block"]),Ve(L,{block:t.content.graph.desktop,"block-stack":t.content.stack.desktop,onLoad:f},null,8,["block","block-stack"]),Ve(M,{block:t.content.quote.desktop,onLoad:_},null,8,["block"]),Ve($,{block:t.content.keyAreas.desktop,onLoad:g},null,8,["block"]),Ve(U,{block:t.content.approach.desktop,onLoad:b},null,8,["block"])])):bt("",!0)])])}}},s$=_t(o$,[["__scopeId","data-v-3059f735"]]);class a${constructor(e){Oe(this,"canObserve",!1);Oe(this,"onFallback",null);Oe(this,"detector",null);Oe(this,"onLowPerformance",()=>{var e;(e=this.onFallback)==null||e.call(this),this.destroy()})}destroy(){var e;this.onFallback=null,(e=this.detector)==null||e.destroy(),this.detector=null}}const l$={class:"HomeAnimation"},u$={__name:"HomeAnimation",props:{content:{type:Object,required:!0,default:()=>({hero:{},swirl:{},graph:{},stack:{},quote:{},keyAreas:{},approach:{},stats:{},funds:{}})}},emits:["load"],setup(t,{emit:e}){const n=e,r=mE(),i=wn(),o=vi(),s=j(!1),a=j(!1);let u;const c=Ce(()=>r.orientation==="landscape");Ne(a,d=>{d&&s.value&&(n("load"),u==null||u.destroy(),u=new a$(()=>{console.warn("LOW FPS DETECTED"),o.setLowFPS(!0)}))},{immediate:!0});function h(){a.value=!0}let l=!1;return Ne(()=>!i.scrollLock&&s.value,d=>{d&&l&&(l=!1,setTimeout(i.scrollTo(1),50),setTimeout(i.scrollTo(0),100))}),xt(()=>{l=!0,s.value=!0}),Vt(()=>{s.value=!1,u==null||u.destroy(),u=null}),(d,f)=>{const _=s$,g=zD;return ae(),me("div",l$,[_e(c)?(ae(),Kt(_,{key:0,content:t.content,onLoad:h},null,8,["content"])):(ae(),Kt(g,{key:1,content:t.content,onLoad:h},null,8,["content"]))])}}},c$=_t(u$,[["__scopeId","data-v-f0803819"]]),f$="/assets/feature_quote_video_thumb-Z86du56P.webp",d$="/assets/featured_quote_bg-CSY0NBS6.webp",h$="/assets/Quote-CPw6Wkep.mp4",p$={desktop:{backgroundVideoSrc:h$,backgroundImageSrc:d$,title:`When I see a tough problem, my first
  thought is always <code>“how can innovation help</code>
  <code>solve this?”</code> That’s why Breakthrough
  Energy was started – to bring the power of
  innovation to bear on the toughest problem
  humanity has ever faced: climate change.`,video:{name:"Bill Gates",role:`Founder
    Breakthrough Energy`,videoImageSrc:f$,videoData:{value:{url:"",type:""}}}}},d1="/assets/Hero-Reel-compressed-COlxHHPV.mp4",h1="/assets/hero_f0-C9PFU_wA.webp",m$={desktop:{imageSrc:h1,videoSrc:d1,title1:`
Empowering innovators
to build the future
`.trim(),title2:`
of energy.
`.trim()},mobile:{imageSrc:h1,videoSrc:d1,title1:`
Empowering
innovators
`.trim(),title2:`
to build`,title3:`
the future
of energy
`.trim()}},g$="/assets/affordable-1@2x-BiGOHVqX.webp",_$="/assets/reliable-2@2x-CETxX1DK.webp",v$="/assets/zero-carbon-3@2x-CaxkkjRK.webp",y$={desktop:{title:"THE OPPORTUNITY AHEAD",subtitle:"Energy",stacks:[{label:"Affordable",imageSrc:g$},{label:"Reliable",imageSrc:_$},{label:"Zero Carbon",imageSrc:v$}]}},p1="/assets/Agriculture-Edit-compressed-Ddb0a7xq.mp4",m1="/assets/agriculture_f0-B2HbTrze.webp",g1="/assets/Buildings-Edit-compressed-CM3Iudkx.mp4",_1="/assets/buildings_f0-DkMi9yRx.webp",v1="/assets/Electricity-Edit-compressed-Da1Qay8h.mp4",y1="/assets/electricity_f0-Bv7ZfiCF.webp",b1="/assets/Manufacturing-Edit-compressed-DpJAf_Rb.mp4",w1="/assets/manufacturing_f0-DN44fdvY.webp",S1="/assets/Transportation-Edit-compressed-BuDVVJlQ.mp4",T1="/assets/transportation_f0-CJ_Tegjh.webp",b$={desktop:{content:{main:{title:`
      We work to accelerate progress across
      every source of emissions. In these five
      critical areas of energy consumption,
      a fundamental shift is underway,
      creating a <em>landscape of opportunity.</em>
      `.trim(),sideTitle:"ENERGY CONSUMPTION"},areas:[{id:0,src:b1,imageSrc:w1,emission:"30% emissions",button:"25 Manufacturing Companies",url:"manufacturing",title:"Manufacturing",body:"The shift to clean materials is accelerating opening up massive opportunity across  every mode of movement."},{id:1,src:v1,imageSrc:y1,emission:"28% emissions",button:"32 Electricity Companies",url:"electricity",title:"Electricity",body:"A surge in innovation is leading the charge to deliver clean and reliable power while transforming the grid."},{id:2,src:p1,imageSrc:m1,emission:"19% emissions",button:"16 Agriculture Companies",url:"agriculture",title:"Agriculture",body:"Agriculture is undergoing a fundamental shift—toward systems that feed more people with fewer emissions."},{id:3,src:S1,imageSrc:T1,emission:"16% emissions",button:"12 Transportation Companies",url:"transportation",title:"Transportation",body:"The shift to clean mobility is accelerating—opening up massive opportunity across every mode of movement."},{id:4,src:g1,imageSrc:_1,emission:"7% emissions",button:"8 Building Companies",url:"buildings",title:"Buildings",body:"Decarbonizing the built environment is a global challenge and a high-leverage play for long-term impact."}],outro:{title:`This is <em>energy innovation</em>
      on a global scale`,button:"Full Portfolio",url:"/portfolio"}},animation:{cluster:{pivot:{x:.6,y:.5},rects:[{offset:[501,82],rectSize:[138,87]},{offset:[1036,98],rectSize:[172,97]},{offset:[741,256],rectSize:[172,126]},{offset:[1036,509],rectSize:[165,97]},{offset:[777,695],rectSize:[138,87]}]}}},mobile:{content:{main:{title:`
      We work to accelerate progress across
      every source of emissions. In these five
      critical areas of energy consumption,
      a fundamental shift is underway,
      creating a <em>landscape of opportunity.</em>
      `.trim(),sideTitle:"ENERGY CONSUMPTION"},areas:[{id:0,src:b1,imageSrc:w1,emission:"30% emissions",button:"25 Manufacturing Companies",url:"manufacturing",title:"Manufacturing",body:"The shift to clean materials is accelerating opening up massive opportunity across  every mode of movement."},{id:1,src:v1,imageSrc:y1,emission:"28% emissions",button:"32 Electricity Companies",url:"electricity",title:"Electricity",body:"A surge in innovation is leading the charge to deliver clean and reliable power while transforming the grid."},{id:2,src:p1,imageSrc:m1,emission:"19% emissions",button:"16 Agriculture Companies",url:"agriculture",title:"Agriculture",body:"Agriculture is undergoing a fundamental shift—toward systems that feed more people with fewer emissions."},{id:3,src:S1,imageSrc:T1,emission:"16% emissions",button:"12 Transportation Companies",url:"transportation",title:"Transportation",body:"The shift to clean mobility is accelerating—opening up massive opportunity across every mode of movement."},{id:4,src:g1,imageSrc:_1,emission:"7% emissions",button:"8 Building Companies",url:"buildings",title:"Buildings",body:"Decarbonizing the built environment is a global challenge and a high-leverage play for long-term impact."}],outro:{title:`This is <em>energy innovation</em>
      on a global scale`,button:"Full Portfolio",url:"/portfolio"}},animation:{cluster:{pivot:{x:.5,y:.5},rects:[{offset:[221,54],rectSize:[69,44]},{offset:[34,128],rectSize:[68,43]},{offset:[289,190],rectSize:[105,60]},{offset:[25,449],rectSize:[87,51]},{offset:[240,510],rectSize:[75,55]}]}}}},Ia=["desktop","mobile"];function qt(t,e,n){var o,s;e=e==="desktop"?"":"mobile_";const r=e+n;let i=(o=t[r])==null?void 0:o.value;return i==null&&(i=((s=t[n])==null?void 0:s.value)||null),i}function La(t){const e=structuredClone(t);return e.desktop=e.desktop||{},e.mobile=e.mobile||structuredClone(t.desktop),e}function l_(t){return t?mr().getVideoSourceKontent(t):null}function xl(t,{width:e=null,height:n=null}={}){return t?mr().getWebP(t,{width:e,height:n}):null}function w$(t){const e={};return e.hero=S$(t),e.swirl=T$(t),e.graph=E$(t),e.stack=k$(t),e.quote=A$(t),e.keyAreas=R$(t),e.approach=x$(t),e.stats={},e.funds={},e}function S$(t){const e=La(m$);return Ia.forEach(n=>{var a,u,c,h;const r=e[n];r.title1=qt(t,n,"home_hero_heading_1"),r.title2=qt(t,n,"home_hero_heading_2"),r.title3=qt(t,n,"home_hero_heading_3");const i=(u=(a=qt(t,n,"home_hero_video"))==null?void 0:a[0])==null?void 0:u.url;r.videoSrc=l_(i);const o=(h=(c=qt(t,n,"home_hero_video_image"))==null?void 0:c[0])==null?void 0:h.url,s=n==="desktop"?1920:375;r.imageSrc=xl(o,{width:s})||r.imageSrc}),e}function T$(t){const e=La(gc);return Ia.forEach(n=>{const r=e[n].content;r.title1=qt(t,n,"home_swirl_title_1"),r.title2=qt(t,n,"home_swirl_title_2");const i=qt(t,n,"home_swirl_images")||[];r.images.forEach((o,s)=>{var u;const a=n==="desktop"?700:300;o.src=xl((u=i[s])==null?void 0:u.url,{width:a})||o.src})}),e}function E$(t){const e=La(YF);return Ia.forEach(n=>{const r=e[n];r.title=qt(t,n,"home_graph_title"),r.body1=qt(t,n,"home_graph_body_1"),r.body2=qt(t,n,"home_graph_body_2"),r.maximum1=qt(t,n,"home_graph_max_1"),r.maximum2=qt(t,n,"home_graph_max_2"),r.minimum1=qt(t,n,"home_graph_min_1"),r.minimum2=qt(t,n,"home_graph_min_2")}),e}function k$(t){const e=La(y$);return Ia.forEach(n=>{e[n]=e[n]||{};const r=e[n];r.title=qt(t,n,"home_graph_title"),r.subtitle=qt(t,n,"home_image_stack_subtitle"),r.stacks.forEach((i,o)=>{var c,h;const s=qt(t,n,`home_image_stack_label_${o+1}`);i.label=s||i.label;const a=(h=(c=qt(t,n,`home_image_stack_img_src_${o+1}`))==null?void 0:c[0])==null?void 0:h.url,u=n==="desktop"?1024:375;i.imageSrc=xl(a,{width:u})||i.imageSrc})}),e}function A$(t){const e=La(p$);return Ia.forEach(n=>{var u,c,h,l,d,f,_,g;const r=e[n];r.title=qt(t,n,"home_quote_text"),r.video.name=qt(t,n,"home_quote_title"),r.video.role=qt(t,n,"home_quote_role");const i=(c=(u=qt(t,n,"home_quote_bg_video"))==null?void 0:u[0])==null?void 0:c.url;r.backgroundVideoSrc=l_(i)||r.backgroundVideoSrc;const o=(l=(h=qt(t,n,"home_quote_bg_image"))==null?void 0:h[0])==null?void 0:l.url;let s=n==="desktop"?1920:375;r.backgroundImageSrc=xl(o,{width:s})||r.backgroundImageSrc;const a=(f=(d=qt(t,n,"home_quote_video_image"))==null?void 0:d[0])==null?void 0:f.url;s=n==="desktop"?500:375,r.video.videoImageSrc=xl(a,{width:s})||r.video.videoImageSrc,n==="desktop"?r.video.videoData=((_=t.home_quote_video)==null?void 0:_.linkedItems[0].elements.video)||null:r.video.videoData=((g=t.home_quote_video)==null?void 0:g.linkedItems[0].elements.video)||null}),e}function R$(t){const e=La(b$);return Ia.forEach(n=>{const r=e[n].content;r.main.title=qt(t,n,"home_key_areas_intro"),r.main.sidetitle=qt(t,n,"home_key_areas_sidetitle"),r.outro.title=qt(t,n,"home_key_areas_outro"),r.areas.forEach((i,o)=>{var a,u,c,h,l,d,f,_,g;const s=(c=(u=(a=t.key_areas)==null?void 0:a.linkedItems)==null?void 0:u[o])==null?void 0:c.elements;if(s){const b=(d=(l=(h=s[n==="desktop"?"video":"mobile_video"])==null?void 0:h.value)==null?void 0:l[0])==null?void 0:d.url;i.src=l_(b)||i.src;const y=(g=(_=(f=s[n==="desktop"?"video_image":"mobile_video_image"])==null?void 0:f.value)==null?void 0:_[0])==null?void 0:g.url,w=n==="desktop"?1920:375;i.imageSrc=xl(y,{width:w})||i.imageSrc,i.emission=s.emissions.value,i.button=s.button.value,i.title=s.title.value,i.body=s.description.value}})}),e}function x$(t){const e=La(N4);return Ia.forEach(n=>{e[n].chapters.forEach((i,o)=>{i.title=qt(t,n,`home_approach_${o+1}_title`),i.subtitle=qt(t,n,`home_approach_${o+1}_subtitle`),i.body=qt(t,n,`home_approach_${o+1}_body`)})}),e}const C$={class:"page"},P$=Object.assign({name:"IndexPage"},{__name:"index",setup(t){const e=mr(),n=vi();j("home");const r=j(""),i=j(null);Il(),Pl();const o=j(),{data:s,error:a,isLoading:u}=Ld("home",!0,5),c=j(null);r_(Ce(()=>({title:r.value||"Home",meta:i.value?e.getMeta(i.value):[],link:e.getMetaLinks(i.value)})));async function h(){var _,g;if(o.value=!1,!!s.value){if(!((_=s.value.system)!=null&&_.type)){o.value="Invalid page data structure";return}i.value=s.value.elements,l(),r.value=(g=i.value.title)==null?void 0:g.value,e.pageType=s.value.system.type}}function l(){var g,b,y,w;const _=(w=(y=(b=(g=i.value)==null?void 0:g.components)==null?void 0:b.linkedItems)==null?void 0:y[0])==null?void 0:w.elements;if(_){const A=w$(_);c.value=A}}async function d(){try{await new Promise((_,g)=>{const b=Ne(()=>u.value,y=>{y||(b(),_())},{immediate:!0})}),s.value&&await h()}catch(_){console.error("Error in onServerPrefetch:",_)}}Tc(()=>{s.value&&!u.value&&h(),a.value&&(o.value="Error loading page",console.error("Error loading page:",a.value))}),Yd(async()=>{BTEDL.newPage("home"),s.value&&!u.value&&h()}),Sc(async()=>{await d()});function f(){n.setIsLoaderVisible(!1)}return xt(()=>{n.setIsLoaderVisible(!0)}),Vt(()=>{}),(_,g)=>{const b=c$,y=x4;return ae(),me("div",C$,[c.value?(ae(),Kt(b,{key:0,content:c.value,onLoad:f},null,8,["content"])):bt("",!0),c.value?(ae(),Kt(y,{key:1})):bt("",!0)])}}}),ME=_t(P$,[["__scopeId","data-v-5a57413c"]]),I$=Object.freeze(Object.defineProperty({__proto__:null,default:ME},Symbol.toStringTag,{value:"Module"}));function L$({elRef:t=j(null),activeMargin:e=0,activeInitDelaySeconds:n=.1,onUpdate:r}={}){const i=wn(),o=j(!1);let s=null,a=null;const u=(b,y=0)=>{clearTimeout(s),y?s=setTimeout(()=>{o.value=b},y*1e3):o.value=b},c={scrollY:0,viewportHeight:1080,viewportWidth:1080,svh:1e3,lvh:1e3,rect:{scrollContent:{y:1,height:1,get baseY(){return this.y+this.height},x:1,width:1},viewport:{y:-1,height:1,get baseY(){return this.y+this.height},x:1,width:1},viewportUnit:{y:1,height:1,get baseY(){return this.y+this.height},x:1,width:1}},rectIsVisible:!1,rectIsActive:!1},h=j(!1),l=j(!1);Ne(()=>t.value&&o.value,b=>{b&&_()},{immediate:!0});const d=()=>i.scrollCurrent,f=()=>Je.lvh||window.innerHeight,_=()=>{const b=f(),y=window.innerWidth,w=d();if(c.scrollY=w,c.viewportHeight=b,c.viewportWidth=y,c.svh=Je.svh,c.lvh=Je.lvh,!t.value)return;const{top:A,left:k,width:R,height:C}=t.value.getBoundingClientRect();let L=c.rect.scrollContent;L.y=A+w,L.height=C,L.x=k,L.width=R,L=c.rect.viewport,L.height=C,L.x=k,L.width=R,L=c.rect.viewportUnit,L.height=C/b,L.x=k/y,L.width=R/y,g()},g=()=>{const b=c.viewportHeight,y=d();if(c.scrollY=y,c.rect.viewport.y=c.rect.scrollContent.y-y,c.rect.viewportUnit.y=c.rect.viewport.y/b,o.value){const{y:w,baseY:A}=c.rect.viewportUnit,k=e;c.rectIsVisible=A>0&&w<1,c.rectIsActive=A+k>0&&w-k<1,h.value=c.rectIsVisible,l.value=c.rectIsActive}r==null||r(c)};return xn(()=>{_(),clearTimeout(a),a=setTimeout(_,100)},!0,3,!0),Ne(()=>i.scrollCurrent,()=>{g()}),Vt(()=>{u(!1),clearTimeout(a)}),xt(()=>{u(!1),u(!0,n)}),{elRef:t,scrollData:c,rectIsVisible:h,rectIsActive:l}}const O$=["data-open","data-fixed"],M$=["data-open"],F$=["data-open"],D$={class:"FilterList-container"},$$={class:"FilterList-items"},H$=["data-active","aria-label","onClick"],N$={key:0,class:"FilterList-bullet","aria-hidden":"true"},B$={class:"FilterList-footeritem FilterList-footeritem--left"},V$=["aria-hidden"],U$=["aria-hidden"],j$=["data-open"],W$={__name:"FilterList",props:{taxonomies:{type:Object,required:!0,default:()=>[{codename:"sector",name:"sector",terms:[{codename:"manufacturing",name:"manufacturing",terms:[]},{codename:"electricity",name:"electricity",terms:[]}]},{codename:"program",name:"program",terms:[{codename:"fellows",name:"fellows",terms:[]}]}]},selectedTerm:{type:String,default:""}},emits:["update:selectedTerm"],setup(t,{emit:e}){const n=t,r=e,i=vi(),o=wn(),s=j(n.selectedTerm),a=j(!1),u=j(!1),c=j(null),h=j(null),l=j(null),d=j(null),f=j(null),_=j(null),g=[],b=j(null),y=j(null),w=j(null),A=j(!1);L$({elRef:c,activeMargin:.1,onUpdate:()=>Q()});let k=null;const R=Ce(()=>!!s.value),C=Ce(()=>{if(!Array.isArray(n.taxonomies))return n.taxonomies;const he={};return n.taxonomies.forEach(ge=>{ge.name&&ge.terms&&(he[ge.name]=ge.terms)}),he}),L=Ce(()=>Object.keys(C.value));function M(){i.setModalState(di.FILTER)}function $(){i.setModalState(di.NONE)}function U(he){const ge=s.value===he?"":he;s.value=ge,r("update:selectedTerm",ge)}function ne(){s.value="",r("update:selectedTerm","")}function D(){a.value=!a.value,a.value?M():$()}function Q(){if(!c.value||!c.value.parentElement)return;const he=c.value.getBoundingClientRect(),ge=c.value.parentElement.getBoundingClientRect(),Ae=ge.top>0&&he.top<=ge.top,ye=he.bottom>=ge.bottom;Ae&&!ye?A.value=!1:ye?A.value=!0:A.value=!1}function N(){Q()}function W(){Q()}function V(){u.value=!0,Lt(()=>{const he=h.value,ge=d.value;if(!he||!ge)return;k&&(k.kill(),k=null),Bn.set(ge,{clipPath:"inset(100% 0% 0% 0%)",display:"block"}),A.value&&Bn.set(c.value,{position:"fixed"}),g.flat().forEach(ye=>{ye&&Bn.set(ye,{opacity:0,y:20})}),k=Bn.timeline(),k.set(he,{clipPath:"inset(0% 0% 0% 0%)"}),k.to(ge,{clipPath:"inset(0% 0% 0% 0%)",duration:.33,ease:"power1.inOut"},"-=0.10");const Ae="-=0.10";g.forEach(ye=>{!ye||!ye.length||k.to(ye.filter(Boolean),{y:0,opacity:1,duration:.18,ease:"power4.out",stagger:.03},Ae)})})}function B(){const he=h.value,ge=d.value;if(!he||!ge)return;k&&(k.kill(),k=null),k=Bn.timeline();let Ae="0";g.forEach(ye=>{!ye||!ye.length||(k.to(ye.filter(Boolean),{y:20,opacity:0,duration:.1,ease:"power4.in",stagger:0},Ae),Ae="+=0.05")}),k.to(ge,{duration:.14,ease:"power1.inOut",onComplete:()=>{Bn.set(ge,{clearProps:"all"}),Bn.set(he,{clearProps:"all"}),Bn.set(c.value,{clearProps:"all"}),Bn.set(_.value,{clearProps:"all"}),g.flat().forEach(ye=>{ye&&Bn.set(ye,{clearProps:"all"})}),u.value=!1}},"-=0.08")}function oe(he,ge,Ae,ye=0){he&&Bn.to(he,{y:-Ae,duration:.5,ease:"power3.out",delay:ye}),ge&&Bn.fromTo(ge,{y:Ae},{y:0,duration:.5,ease:"power3.out",delay:0})}function se(he,ge,Ae,ye=0){ge&&Bn.to(ge,{y:Ae,duration:.5,ease:"power3.out",delay:ye}),he&&Bn.fromTo(he,{y:-Ae},{y:0,duration:.5,ease:"power3.out",delay:0})}function q(){D()}function be(){a.value=!1,$()}function Te(he){return s.value===he}return Ne(a,async he=>{await Lt();const ge=b.value,Ae=y.value,ye=w.value;!ge||!Ae||(he?(oe(ge,Ae,30),R.value&&(Bn.set(ye,{opacity:1,delay:.5}),oe(null,ye,30,.5))):(se(ge,Ae,30),R.value&&(se(null,ye,30,.5),Bn.set(ye,{opacity:0,delay:0}))))}),Ne(a,he=>{he?V():B()}),Ne(()=>n.selectedTerm,he=>{s.value=he}),Ne(()=>o.scrollSubPixel,()=>{N()}),xn(W),xt(()=>{Lt(N)}),Vt(()=>{a.value&&$(),k&&(k.kill(),k=null)}),(he,ge)=>(ae(),me(Ye,null,[u.value?(ae(),me("div",{key:0,ref_key:"filterSpacer",ref:_,"aria-hidden":"true",class:"FilterList-spacer"},null,512)):bt("",!0),J("div",{ref_key:"filterWrapperRef",ref:c,class:"FilterList-wrapper","data-open":a.value,"data-fixed":A.value},[J("div",{ref_key:"filterPanelRef",ref:h,class:"FilterList","data-open":a.value},[J("div",{ref_key:"filterBgRef",ref:d,class:"FilterList-bg","data-open":a.value},null,8,F$),J("div",D$,[(ae(!0),me(Ye,null,ut(L.value,(Ae,ye)=>(ae(),me("div",{key:Ae,class:"FilterList-category"},[J("h3",{ref_for:!0,ref:ie=>{g[ye]||(g[ye]=[]),g[ye][0]=ie},class:"FilterList-categorytitle"},We(Ae),513),J("ul",$$,[(ae(!0),me(Ye,null,ut(C.value[Ae],(ie,le)=>(ae(),me("li",{key:`${Ae}-${ie.name||ie}`,class:"FilterList-item"},[J("button",{ref_for:!0,ref:pe=>{g[ye]||(g[ye]=[]),g[ye][le+1]=pe},class:"FilterList-term","data-active":Te(ie.name||ie),"aria-label":`Filter by ${ie.name||ie}`,onClick:pe=>U(ie.name||ie)},[J("span",null,We(ie.name||ie),1),Te(ie.name||ie)?(ae(),me("span",N$)):bt("",!0)],8,H$)]))),128))])]))),128))]),J("div",{class:"FilterList-footer",onClick:q},[J("div",B$,[MR(J("button",{ref_key:"seeAllBtn",ref:w,class:"FilterList-action FilterList-action--seeall","aria-label":"See all categories",onClick:Kv(ne,["stop"])}," See All ",512),[[Wx,R.value&&a.value]])]),J("div",{ref_key:"filterFooter",ref:f,class:"FilterList-footeritem FilterList-footeritem--center type-body--bold"},[J("button",{class:"FilterList-action FilterList-togglebtn",onClick:Kv(D,["stop"])},[J("span",{ref_key:"filterTextTop",ref:b,class:"FilterList-toggletext FilterList-toggletext--filter","aria-hidden":a.value},"Filter",8,V$),J("span",{ref_key:"closeTextBottom",ref:y,class:"FilterList-toggletext FilterList-toggletext--close","aria-hidden":!a.value},"Close",8,U$)])],512),ge[0]||(ge[0]=J("div",{class:"FilterList-footeritem FilterList-footeritem--right",role:"presentation"},null,-1))])],8,M$)],8,O$),J("div",{ref_key:"filterBackdropRef",ref:l,class:"FilterList-backdrop","data-open":a.value,onClick:be},ge[1]||(ge[1]=[J("div",{class:"FilterList-backdrop-gradient"},null,-1)]),8,j$)],64))}},z$=_t(W$,[["__scopeId","data-v-acb5d8b3"]]),q$=Ji({__name:"PillLabel",props:{label:{type:String,required:!0},variant:{type:String,required:!1,default:"default"},isActive:{type:Boolean,required:!1,default:!1},action:{type:Function,required:!1,default:null},to:{type:String,required:!1,default:""}},setup(t){return(e,n)=>{const r=lg("router-link");return t.to?(ae(),Kt(r,{key:0,to:t.to,class:st(["PillLabel",`PillLabel--${t.variant}`]),"data-active":t.isActive},{default:Di(()=>[Ju(We(t.label),1)]),_:1},8,["to","class","data-active"])):(ae(),Kt(va(t.action?"button":"span"),{key:1,class:st(["PillLabel",`PillLabel--${t.variant}`]),"data-active":t.isActive,onClick:t.action},{default:Di(()=>[Ju(We(t.label),1)]),_:1},8,["class","data-active","onClick"]))}}}),FE=_t(q$,[["__scopeId","data-v-3fbcf133"]]),G$=["href","data-nav-color"],Y$={class:"PortfolioCard-inner"},K$={class:"PortfolioCard-logo"},X$=["src","alt"],Q$={class:"PortfolioCard-title type-body--bold"},J$={class:"PortfolioCard-description type-body--xs"},Z$={key:1},eH={class:"PortfolioCard-tags"},tH={__name:"PortfolioCard",props:{company:{type:Object,required:!0},theme:{type:Object,default:()=>({name:"theme",type:"multiple_choice",value:[{name:"yellow",codename:"yellow"}]})}},setup(t){const e=t,n=mr(),r=Ce(()=>{var s,a,u;const o=(u=(a=(s=e.company)==null?void 0:s.elements)==null?void 0:a.description_rt)==null?void 0:u.value;return!o||o.trim()==="<p><br></p>"?!1:o}),i=o=>{var a;const s=n.getAssetURL((a=e.company.elements)==null?void 0:a.logo);return s||"https://placehold.co/200x80/transparent/000000?font=Poppins&text="+o};return Ce(()=>{var o,s,a;return(a=(s=(o=e.company.elements)==null?void 0:o.tags)==null?void 0:s.value)!=null&&a.length?e.company.elements.tags.value.map(u=>u.name).join(" • "):""}),(o,s)=>{const a=IE,u=Pc,c=FE;return ae(),me("a",{href:t.company.elements.url.value,target:"_blank",class:st(["PortfolioCard",`theme--${_e(n).getThemeValue(t.theme)}`]),"data-nav-color":_e(n).getNavColorValue(_e(n).getThemeValue(t.theme))},[J("div",Y$,[Ve(a,{class:"PortfolioCard-icon"}),J("div",K$,[J("img",{src:i(t.company.elements.title.value),alt:t.company.elements.title.value+" logo",class:"PortfolioCard-img"},null,8,X$)]),J("h3",Q$,We(t.company.elements.title.value),1),J("div",J$,[r.value?(ae(),Kt(u,{key:0,"disable-styles":!0,html:r.value},null,8,["html"])):(ae(),me("p",Z$,We(t.company.elements.description.value),1))]),J("div",eH,[(ae(!0),me(Ye,null,ut(t.company.elements.technologies.value,h=>(ae(),Kt(c,{key:h.codename,label:h.name,variant:"compact"},null,8,["label"]))),128))])])],10,G$)}}},nH=_t(tH,[["__scopeId","data-v-cd1068c8"]]),rH=["data-is-modal-route"],iH=["data-is-modal-route"],oH={__name:"PortfolioGrid",props:{companies:{type:Array,required:!0,default:()=>[]},filtered:{type:Boolean,default:!1},theme:{type:Object,default:()=>({name:"theme",type:"multiple_choice",value:[{name:"yellow",codename:"yellow"}]})},isModalRoute:{type:Boolean,default:!1}},setup(t){return(e,n)=>{const r=nH;return ae(),me("div",{class:st(["PortfolioGrid",{"PortfolioGrid--filtered":t.filtered}]),"data-is-modal-route":t.isModalRoute},[J("div",{class:"PortfolioGrid-container","data-is-modal-route":t.isModalRoute},[(ae(!0),me(Ye,null,ut(t.companies,i=>(ae(),me("div",{key:i.system.id,class:"PortfolioGrid-item"},[Ve(r,{company:i,theme:t.theme},null,8,["company","theme"])]))),128))],8,iH)],10,rH)}}},sH=_t(oH,[["__scopeId","data-v-0b547557"]]),aH={viewBox:"0 0 63 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function lH(t,e){return ae(),me("svg",aH,e[0]||(e[0]=[J("path",{d:"M49.2303 38.2347C48.1636 39.3014 47.0969 40.1547 45.9769 40.7947C42.8303 42.6614 39.4169 43.4614 35.8436 43.1947C33.3903 43.0347 30.9903 42.2881 28.8569 41.1147C26.6703 39.9414 24.8036 38.2881 23.3103 36.3147L21.5503 34.0214L24.8569 31.5147C25.2303 31.2481 25.6569 31.1414 26.0836 31.1947C26.5103 31.2481 26.8836 31.4614 27.1503 31.8347L27.8969 32.8481C28.8569 34.1814 30.1369 35.2481 31.5769 36.0481C33.0169 36.8481 34.6169 37.2747 36.2169 37.4347C38.4569 37.5947 40.7503 37.0614 42.7769 35.9414C43.6303 35.4614 44.4303 34.8214 45.2303 34.0214L53.7103 25.5414C55.7903 23.4081 56.9103 20.5814 56.8569 17.5947C56.8569 13.3814 54.5103 9.59474 50.7236 7.56808C49.2303 6.76808 47.4703 6.34141 45.4436 6.28808C42.4569 6.28808 39.6836 7.40808 37.5503 9.48808L31.7903 15.1947C31.1503 15.8347 30.0836 15.8347 29.4436 15.1947L26.5103 12.2614L33.4969 5.32808C36.7503 2.28808 41.0169 0.528076 45.6569 0.528076C50.1903 0.528076 54.457 2.34141 57.657 5.54141C60.857 8.74141 62.6703 13.0081 62.6703 17.5414C62.6703 22.0747 61.017 26.3414 57.8703 29.5947L49.2303 38.2347ZM4.85695 33.9681C1.71028 37.2214 0.0569458 41.5414 0.0569458 46.0747C0.110279 52.3681 3.52361 57.9681 9.17695 61.1147C11.4703 62.3947 14.2436 63.0881 17.1236 63.0881H17.2836C21.7636 63.0881 26.0303 61.3814 29.2836 58.2347L36.2169 51.3014L33.2836 48.3681C32.6436 47.7281 31.5769 47.7281 30.9369 48.3681L25.2303 54.0747C23.0969 56.1547 20.3236 57.2747 17.2303 57.2747C14.1903 57.2747 11.3636 56.0481 9.28361 53.9147C7.15028 51.7814 5.97695 48.9547 5.97695 45.9681C5.97695 42.9814 7.04361 40.1547 9.12361 38.0214L17.7103 29.4347C18.8836 28.2614 20.2169 27.4081 21.7636 26.8214C23.3103 26.2347 24.9103 26.0214 26.5636 26.1281C28.1636 26.2347 29.8169 26.7147 31.2036 27.5147C32.6436 28.3147 33.8703 29.3814 34.8836 30.7147L35.6303 31.7281C35.8969 32.1014 36.2703 32.3147 36.6969 32.3681C37.1236 32.3681 37.5503 32.3681 37.9236 32.0481L41.2303 29.5414L39.4703 27.2481C38.0303 25.2747 36.1103 23.6214 33.9236 22.4481C31.7903 21.2747 29.3369 20.5814 26.9369 20.3681C26.5103 20.3681 26.0836 20.3681 25.7103 20.3681C23.1503 20.3681 20.6969 20.9014 18.3503 22.0214C16.5903 22.8747 14.8303 24.1014 13.1769 25.7547L4.91028 34.0214L4.85695 33.9681Z",fill:"currentColor"},null,-1)]))}const uH={render:lH},cH={fill:"none",viewBox:"0 0 41 41",xmlns:"http://www.w3.org/2000/svg"};function fH(t,e){return ae(),me("svg",cH,e[0]||(e[0]=[J("path",{d:"m6.06382 18.4375 2.53333-2.6 7.06665 6.9333c.5.5 1.2.6334 1.8334.3667.6333-.2667 1.0333-.8667 1.0333-1.5667v-19.59997h3.6333v19.73337c0 .7.4 1.3 1.0334 1.5666.6666.2667 1.3666.1334 1.8666-.3666l7.0334-7.0334 2.5666 2.5667-14.1666 14.1667zm-3.9 16.3333v3.6334h36.39998v-3.6334z",fill:"currentColor"},null,-1)]))}const dH={render:fH},hH=["data-is-modal-route"],pH=["data-is-modal-route"],mH={class:"AreaDetail-main"},gH={class:"AreaDetail-header"},_H={class:"AreaDetail-content"},vH={key:1,class:"AreaDetail-technologies"},yH={class:"AreaDetail-pilllist"},bH={key:2,class:"AreaDetail-links"},wH={class:"AreaDetail-linklist"},SH=["href","target"],TH={key:0,class:"AreaDetail-linktype type-body--bold"},EH={key:1,class:"AreaDetail-linktype AreaDetail-linktype--placeholder"},kH={class:"AreaDetail-linktitle type-body"},AH={class:"AreaDetail-linkicon"},RH={key:0,class:"AreaDetail-actions"},xH={__name:"AreaDetail",props:{area:{type:Object,required:!0},theme:{type:Object,default:()=>({name:"theme",type:"multiple_choice",value:[{name:"yellow",codename:"yellow"}]})},isModalRoute:{type:Boolean,default:!1}},setup(t){const e=t,n=mr(),r=Ce(()=>e.area.elements||{});function i(c){var l,d;if(!c.elements)return"#";const h=n.getAssetURL(c.elements.download);return h||((d=(l=c.elements)==null?void 0:l.link)!=null&&d.value?c.elements.link.value:"#")}function o(c){return!!n.getAssetURL(c.elements.download)}function s(c){var h,l;return!!((l=(h=c.elements)==null?void 0:h.link)!=null&&l.value)}function a(c){if(!c.type)return"";const h=c.type.value;return!h||!h.length?"":h[0].name||""}const u=Ce(()=>e.area.elements.title.value?n_(e.area.elements.title.value):"");return(c,h)=>{var b,y,w,A;const l=Pc,d=FE,f=dH,_=uH,g=IT;return ae(),me("section",{class:"AreaDetail","data-is-modal-route":t.isModalRoute},[J("div",{class:"AreaDetail-container","data-is-modal-route":t.isModalRoute},[J("div",mH,[J("header",gH,[r.value.title?(ae(),me("h2",{key:0,class:st(["AreaDetail-title type-h3",u.value])},We(r.value.title.value),3)):bt("",!0)]),J("div",_H,[r.value.intro?(ae(),Kt(l,{key:0,class:"AreaDetail-intro type-body--lg",html:r.value.intro.value},null,8,["html"])):bt("",!0),(y=(b=r.value.technologies)==null?void 0:b.value)!=null&&y.length?(ae(),me("div",vH,[h[0]||(h[0]=J("h3",{class:"AreaDetail-sectiontitle type-h6"}," Key Technologies ",-1)),J("ul",yH,[(ae(!0),me(Ye,null,ut(r.value.technologies.value,k=>(ae(),me("li",{key:k.codename,class:"technology-item"},[Ve(d,{label:k.name},null,8,["label"])]))),128))])])):bt("",!0),(A=(w=r.value.perspectives)==null?void 0:w.linkedItems)!=null&&A.length?(ae(),me("div",bH,[h[1]||(h[1]=J("h3",{class:"AreaDetail-sectiontitle type-h6"}," Perspectives ",-1)),J("ul",wH,[(ae(!0),me(Ye,null,ut(r.value.perspectives.linkedItems,k=>{var R;return ae(),me("li",{key:k.system.id,class:"AreaDetail-linkitem"},[J("a",{href:i(k),target:s(k)?"_blank":"_self",class:"AreaDetail-link"},[(R=k.elements)!=null&&R.type?(ae(),me("span",TH,We(a(k.elements)),1)):(ae(),me("span",EH)),J("span",kH,We(k.system.name),1),J("span",AH,[o(k)?(ae(),Kt(f,{key:0})):(ae(),Kt(_,{key:1}))])],8,SH)])}),128))])])):bt("",!0)])]),t.isModalRoute?(ae(),me("div",RH,[Ve(g,{to:_e(n).prepLink("portfolio"),theme:"black",label:"Explore the Full Portfolio"},null,8,["to"])])):bt("",!0)],8,pH)],8,hH)}}},CH=_t(xH,[["__scopeId","data-v-36cae1fc"]]),PH={class:"TextHero-container"},IH={class:"TextHero-wrap"},LH={class:"TextHero-titlewrap"},OH={class:"TextHero-lead"},MH=Ji({__name:"TextHero",props:{block:{type:Object,required:!0,default:()=>({_type:"",vueType:"",pageTitle:"",blockIndex:1,cascadeColor:"white",theme:{name:"theme",type:"multiple_choice",value:[{name:"white",codename:"white"}]}})}},setup(t){const e=t;mr();const n=Ce(()=>{var r;return n_((r=e.block.title)==null?void 0:r.value)});return(r,i)=>{const o=Pc;return ae(),me("header",{class:st(["TextHero","theme-text--yellow"])},[J("div",PH,[J("div",IH,[J("div",LH,[t.block.title?(ae(),me("h1",{key:0,class:st(["TextHero-title type-oversized",n.value])},We(t.block.title.value),3)):bt("",!0)]),J("div",OH,[t.block.intro?(ae(),Kt(o,{key:0,class:"TextHero-leadtext type-h6",html:t.block.intro.value},null,8,["html"])):bt("",!0)])])])])}}}),FH=_t(MH,[["__scopeId","data-v-63347f05"]]),DH=["data-nav-color","data-is-modal-route"],$H={key:0,class:"portfolio-loading"},HH={key:1,class:"portfolio-error"},NH={class:"type-oversized"},BH={key:2,class:"portfolio-content"},VH=["data-is-modal-route","data-has-filter"],UH=["data-has-filter","data-is-modal-route"],jH={__name:"portfolio",props:{slug:{type:String,required:!0},filter:{type:String,default:""},isModalRoute:{type:Boolean,default:!1},theme:{name:"theme",type:Object,default:()=>({name:"theme",type:"multiple_choice",value:[{name:"cream",codename:"cream"}]})}},setup(t){const e=t,n=mr(),r=j(""),i=j(null),o=Il(),s=Pl(),a=j(),u=j(null),{data:c,error:h,isLoading:l}=lE("portfolio"),{data:d,error:f,isLoading:_}=Ld("sector"),{data:g,error:b,isLoading:y}=Ld("program"),{data:w,error:A,isLoading:k}=j3("be"),R=j(""),C=j([]),L=Ce(()=>R.value?`${r.value||"Portfolio"} - ${R.value}`:r.value||"Portfolio");e.isModalRoute||r_(Ce(()=>({title:L.value,meta:i.value?n.getMeta(i.value):[],link:n.getMetaLinks(i.value)})));function M(){i.value.theme=e.theme}const $=Ce(()=>!i.value||!i.value.theme?{}:{[`theme--${n.getThemeValue(i.value.theme)}`]:!0}),U=Ce(()=>{var oe,se,q;return(q=(se=(oe=i.value)==null?void 0:oe.companies)==null?void 0:se.linkedItems)!=null&&q.length?i.value.companies.linkedItems:[]}),ne=Ce(()=>R.value?U.value.filter(oe=>{var se,q,be;return(be=(q=(se=oe.elements)==null?void 0:se.tags)==null?void 0:q.value)!=null&&be.length?!!(oe.elements.tags.value.some(Te=>Te.name===R.value)||oe.elements.tags.value.some(Te=>Te.name===R.value)):!1}):U.value);async function D(){var oe,se;if(a.value=!1,W(),!!c.value){if(!((oe=c.value.system)!=null&&oe.type)){a.value="Invalid page data structure";return}i.value=c.value.elements,r.value=(se=i.value.title)==null?void 0:se.value,e.isModalRoute||(n.pageType=c.value.system.type),M()}}function Q(oe){var q,be;let se=(be=(q=oe.elements)==null?void 0:q.portfolio_area)==null?void 0:be.value;return se.length<1?!1:(se=se[0].name,se===R.value)}function N(){if(!d||!g||!d.value||!g.value){C.value=[];return}const oe=d.value.filter(q=>Q(q)),se=g.value.filter(q=>Q(q));C.value=oe.length?oe[0]:se.length?se[0]:[]}function W(){R.value=e.filter?e.filter:"",(g.value||d.value)&&R.value!==""&&N()}function V(oe){if(e.filter===oe)return;const se=oe?`/portfolio/${encodeURIComponent(oe)}`:"/portfolio";s.push(se)}async function B(){try{await new Promise((oe,se)=>{const q=Ne(()=>l.value,be=>{be||(q(),oe())},{immediate:!0})}),c.value&&await D()}catch(oe){console.error("Error in onServerPrefetch:",oe)}}return Ne(R,oe=>{V(oe)}),Ne(()=>o.params,()=>{W()},{immediate:!0}),Tc(()=>{c.value&&!l.value&&D(),h.value&&(a.value="Error loading page")}),Yd(async()=>{u.value=e.slug,BTEDL.newPage("portfolio"),c.value&&!l.value&&D()}),Sc(async()=>{u.value=e.slug,await B()}),Vt(()=>{}),(oe,se)=>{const q=FH,be=CH,Te=sH,he=z$;return ae(),me("div",{key:oe.$route.fullPath,class:st(["portfolio",$.value]),"data-nav-color":_e(n).getNavColorValue($.value),"data-is-modal-route":t.isModalRoute},[_e(l)||_e(k)?(ae(),me("div",$H,se[1]||(se[1]=[J("div",{class:"loading-indicator"}," Loading page content... ",-1)]))):a.value?(ae(),me("div",HH,[J("h1",NH,We(a.value),1),se[2]||(se[2]=J("p",null,"Sorry, we couldn't load the page you requested.",-1))])):i.value?(ae(),me("div",BH,[!C.value||!R.value?(ae(),Kt(q,{key:0,block:i.value},null,8,["block"])):bt("",!0),J("section",{class:"portfolio-companies","data-is-modal-route":t.isModalRoute,"data-has-filter":!!R.value},[J("div",{class:st(["portfolio-container",t.isModalRoute?"portfolio-container--modal":""])},[J("div",{class:"portfolio-layout","data-has-filter":!!R.value,"data-is-modal-route":t.isModalRoute},[C.value&&R.value?(ae(),Kt(be,{key:0,area:C.value,theme:i.value.theme,class:"portfolio-areadetail","is-modal-route":t.isModalRoute},null,8,["area","theme","is-modal-route"])):bt("",!0),Ve(Te,{companies:ne.value,filtered:!!R.value,theme:i.value.theme,class:"portfolio-gridcontainer","is-modal-route":t.isModalRoute},null,8,["companies","filtered","theme","is-modal-route"])],8,UH)],2)],8,VH),!t.isModalRoute&&Object.keys(_e(w)).length>0?(ae(),Kt(he,{key:1,"selected-term":R.value,"onUpdate:selectedTerm":se[0]||(se[0]=ge=>R.value=ge),taxonomies:_e(w)},null,8,["selected-term","taxonomies"])):bt("",!0)])):bt("",!0)],10,DH)}}},Dd=_t(jH,[["__scopeId","data-v-e29f5a32"]]),WH=Object.freeze(Object.defineProperty({__proto__:null,default:Dd},Symbol.toStringTag,{value:"Module"})),DE=t=>{const e={};Object.entries(Object.assign({"/src/layouts/default.vue":()=>zr(()=>import("./default-0mkgnYKn.js"),__vite__mapDeps([2,3,4]))})).forEach(([i,o])=>{let s=i.replace("/src/layouts/","").replace(".vue","");e[s]=o});function r(i,o=!0){return i.map(s=>{var a,u,c,h,l,d;if(((a=s.children)==null?void 0:a.length)>0&&(s.children=r(s.children,!1)),o){if(!s.component&&((u=s.children)==null?void 0:u.find(_=>{var g;return(_.path===""||_.path==="/")&&((g=_.meta)==null?void 0:g.isLayout)})))return s;if(((c=s.meta)==null?void 0:c.layout)!==!1)return{path:s.path,component:e[((h=s.meta)==null?void 0:h.layout)||"default"],children:s.path==="/"?[s]:[{...s,path:""}],meta:{isLayout:!0}}}return(l=s.meta)!=null&&l.layout?{path:s.path,component:e[(d=s.meta)==null?void 0:d.layout],children:[{...s,path:""}],meta:{isLayout:!0}}:s})}return r(t)};async function $E(t,e={}){const n=e.document||t.resolvedOptions.document;if(!n||!t.dirty)return;const r={shouldRender:!0,tags:[]};if(await t.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return t._domUpdatePromise||(t._domUpdatePromise=new Promise(async i=>{var f;const o=new Map,s=new Promise(_=>{t.resolveTags().then(g=>{_(g.map(b=>{const y=o.get(b._d)||0,w={tag:b,id:(y?`${b._d}:${y}`:b._d)||Zy(b),shouldRender:!0};return b._d&&cE(b._d)&&o.set(b._d,y+1),w}))})});let a=t._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const _ of["body","head"]){const g=(f=n[_])==null?void 0:f.children;for(const b of g){const y=b.tagName.toLowerCase();if(!Jy.has(y))continue;const w=fE({tag:y,props:{}},{innerHTML:b.innerHTML,...b.getAttributeNames().reduce((A,k)=>(A[k]=b.getAttribute(k),A),{})||{}});if(w.key=b.getAttribute("data-hid")||void 0,w._d=Mm(w)||Zy(w),a.elMap.has(w._d)){let A=1,k=w._d;for(;a.elMap.has(k);)k=`${w._d}:${A++}`;a.elMap.set(k,b)}else a.elMap.set(w._d,b)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function u(_,g,b){const y=`${_}:${g}`;a.sideEffects[y]=b,delete a.pendingSideEffects[y]}function c({id:_,$el:g,tag:b}){const y=b.tag.endsWith("Attrs");a.elMap.set(_,g),y||(b.textContent&&b.textContent!==g.textContent&&(g.textContent=b.textContent),b.innerHTML&&b.innerHTML!==g.innerHTML&&(g.innerHTML=b.innerHTML),u(_,"el",()=>{g==null||g.remove(),a.elMap.delete(_)}));for(const w in b.props){if(!Object.prototype.hasOwnProperty.call(b.props,w))continue;const A=b.props[w];if(w.startsWith("on")&&typeof A=="function"){const R=g==null?void 0:g.dataset;if(R&&R[`${w}fired`]){const C=w.slice(0,-5);A.call(g,new Event(C.substring(2)))}g.getAttribute(`data-${w}`)!==""&&((b.tag==="bodyAttrs"?n.defaultView:g).addEventListener(w.substring(2),A.bind(g)),g.setAttribute(`data-${w}`,""));continue}const k=`attr:${w}`;if(w==="class"){if(!A)continue;for(const R of A)y&&u(_,`${k}:${R}`,()=>g.classList.remove(R)),!g.classList.contains(R)&&g.classList.add(R)}else if(w==="style"){if(!A)continue;for(const[R,C]of A)u(_,`${k}:${R}`,()=>{g.style.removeProperty(R)}),g.style.setProperty(R,C)}else A!==!1&&A!==null&&(g.getAttribute(w)!==A&&g.setAttribute(w,A===!0?"":String(A)),y&&u(_,k,()=>g.removeAttribute(w)))}}const h=[],l={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await s;for(const _ of d){const{tag:g,shouldRender:b,id:y}=_;if(b){if(g.tag==="title"){n.title=g.textContent,u("title","",()=>n.title=a.title);continue}_.$el=_.$el||a.elMap.get(y),_.$el?c(_):Jy.has(g.tag)&&h.push(_)}}for(const _ of h){const g=_.tag.tagPosition||"head";_.$el=n.createElement(_.tag.tag),c(_),l[g]=l[g]||n.createDocumentFragment(),l[g].appendChild(_.$el)}for(const _ of d)await t.hooks.callHook("dom:renderTag",_,n,u);l.head&&n.head.appendChild(l.head),l.bodyOpen&&n.body.insertBefore(l.bodyOpen,n.body.firstChild),l.bodyClose&&n.body.appendChild(l.bodyClose);for(const _ in a.pendingSideEffects)a.pendingSideEffects[_]();t._dom=a,await t.hooks.callHook("dom:rendered",{renders:d}),i()}).finally(()=>{t._domUpdatePromise=void 0,t.dirty=!1})),t._domUpdatePromise}function zH(t={}){var r,i,o;const e=((r=t.domOptions)==null?void 0:r.render)||$E;t.document=t.document||(typeof window<"u"?document:void 0);const n=((o=(i=t.document)==null?void 0:i.head.querySelector('script[id="unhead:payload"]'))==null?void 0:o.innerHTML)||!1;return b5({...t,plugins:[...t.plugins||[],{key:"client",hooks:{"entries:updated":e}}],init:[n?JSON.parse(n):!1,...t.init||[]]})}function qH(t,e){let n=0;return()=>{const r=++n;e(()=>{n===r&&t()})}}function GH(t={}){const e=zH({domOptions:{render:qH(()=>$E(e),n=>setTimeout(n,0))},...t});return e.install=S5(e),e}function YH(t){return document.readyState==="loading"?new Promise(e=>{document.addEventListener("DOMContentLoaded",()=>e(t))}):Promise.resolve(t)}const KH=Ji({setup(t,{slots:e}){const n=j(!1);return xt(()=>n.value=!0),()=>n.value?e.default&&e.default({}):e.placeholder&&e.placeholder({})}});function XH(t){try{return JSON.parse(t||"{}")}catch(e){return console.error("[SSG] On state deserialization -",e,t),{}}}function QH(t,e,n,r){const{transformState:i,registerComponents:o=!0,useHead:s=!0,rootContainer:a="#app"}={};async function u(c=!1,h){const l=uC(t);let d;s&&l.use(d=GH());const f=J2({history:R2(e.base),...e}),{routes:_}=e;o&&l.component("ClientOnly",KH);const g=[],w={app:l,head:d,isClient:!0,router:f,routes:_,onSSRAppRendered:()=>{},triggerOnSSRAppRendered:()=>Promise.all(g.map(C=>C())),initialState:{},transformState:i,routePath:h};await YH(),w.initialState=(i==null?void 0:i(window.__INITIAL_STATE__||{}))||XH(window.__INITIAL_STATE__),await(n==null?void 0:n(w)),l.use(f);let A,k=!0;f.beforeEach((C,L,M)=>{(k||A&&A===C.path)&&(k=!1,A=C.path,C.meta.state=w.initialState),M()});const R=w.initialState;return{...w,initialState:R}}return(async()=>{const{app:c,router:h}=await u();await h.isReady(),c.mount(a,!0)})(),u}const HE=[{path:"/",name:"/",component:()=>zr(()=>Promise.resolve().then(()=>I$),void 0)},{path:"/:slug",name:"/[slug]",component:()=>zr(()=>import("./_slug_-P9mvh-RZ.js"),__vite__mapDeps([0,1])),meta:{layout:"default"}},{path:"/:slug(.*)",name:"/[...slug]",component:()=>zr(()=>Promise.resolve().then(()=>M5),void 0),meta:{layout:"default"}},{path:"/example",name:"/example",component:()=>zr(()=>import("./example-Dxe2qH_7.js"),__vite__mapDeps([5,6,7,3,8]))},{path:"/fellows-projects",name:"/fellows-projects",component:()=>zr(()=>import("./fellows-projects-CpOwXh9y.js"),__vite__mapDeps([9,10]))},{path:"/partners",name:"/partners",component:()=>zr(()=>import("./partners-B71sJaHG.js"),__vite__mapDeps([11,12,13,14]))},{path:"/people",name:"/people",component:()=>zr(()=>import("./people-BsCNT1Ce.js"),__vite__mapDeps([15,16,12,13,17,18]))},{path:"/perspectives",name:"/perspectives",component:()=>zr(()=>import("./perspectives-DKuhZF3v.js"),__vite__mapDeps([19,6,7,20]))},{path:"/portfolio",name:"/portfolio",component:()=>zr(()=>Promise.resolve().then(()=>WH),void 0)},{path:"/programs",name:"/programs",component:()=>zr(()=>import("./programs-Cv1OSf98.js"),__vite__mapDeps([21,16,12,13,17,22]))},{path:"/signup",name:"/signup",component:()=>zr(()=>import("./signup-o0iKoR0d.js"),__vite__mapDeps([23,24]))}],JH={class:"proxy-block"},ZH={__name:"ProxyBlock",props:{block:{type:Object,required:!0,default:()=>({_type:"",vueType:"",pageTitle:"",pageSlug:"",blockIndex:1,cascadeColor:"white"})}},setup(t){return(e,n)=>(ae(),me("div",JH,[J("h3",null,We(t.block.vueType)+" : "+We(t.block._type),1),J("p",null,We(t.block),1)]))}},e8=_t(ZH,[["__scopeId","data-v-f15c05b3"]]);var yp={};/*!
 *  howler.js v2.2.4
 *  howlerjs.com
 *
 *  (c) 2013-2020, James Simpson of GoldFire Studios
 *  goldfirestudios.com
 *
 *  MIT License
 */var E1;function t8(){return E1||(E1=1,function(t){(function(){var e=function(){this.init()};e.prototype={init:function(){var l=this||n;return l._counter=1e3,l._html5AudioPool=[],l.html5PoolSize=10,l._codecs={},l._howls=[],l._muted=!1,l._volume=1,l._canPlayEvent="canplaythrough",l._navigator=typeof window<"u"&&window.navigator?window.navigator:null,l.masterGain=null,l.noAudio=!1,l.usingWebAudio=!0,l.autoSuspend=!0,l.ctx=null,l.autoUnlock=!0,l._setup(),l},volume:function(l){var d=this||n;if(l=parseFloat(l),d.ctx||h(),typeof l<"u"&&l>=0&&l<=1){if(d._volume=l,d._muted)return d;d.usingWebAudio&&d.masterGain.gain.setValueAtTime(l,n.ctx.currentTime);for(var f=0;f<d._howls.length;f++)if(!d._howls[f]._webAudio)for(var _=d._howls[f]._getSoundIds(),g=0;g<_.length;g++){var b=d._howls[f]._soundById(_[g]);b&&b._node&&(b._node.volume=b._volume*l)}return d}return d._volume},mute:function(l){var d=this||n;d.ctx||h(),d._muted=l,d.usingWebAudio&&d.masterGain.gain.setValueAtTime(l?0:d._volume,n.ctx.currentTime);for(var f=0;f<d._howls.length;f++)if(!d._howls[f]._webAudio)for(var _=d._howls[f]._getSoundIds(),g=0;g<_.length;g++){var b=d._howls[f]._soundById(_[g]);b&&b._node&&(b._node.muted=l?!0:b._muted)}return d},stop:function(){for(var l=this||n,d=0;d<l._howls.length;d++)l._howls[d].stop();return l},unload:function(){for(var l=this||n,d=l._howls.length-1;d>=0;d--)l._howls[d].unload();return l.usingWebAudio&&l.ctx&&typeof l.ctx.close<"u"&&(l.ctx.close(),l.ctx=null,h()),l},codecs:function(l){return(this||n)._codecs[l.replace(/^x-/,"")]},_setup:function(){var l=this||n;if(l.state=l.ctx&&l.ctx.state||"suspended",l._autoSuspend(),!l.usingWebAudio)if(typeof Audio<"u")try{var d=new Audio;typeof d.oncanplaythrough>"u"&&(l._canPlayEvent="canplay")}catch{l.noAudio=!0}else l.noAudio=!0;try{var d=new Audio;d.muted&&(l.noAudio=!0)}catch{}return l.noAudio||l._setupCodecs(),l},_setupCodecs:function(){var l=this||n,d=null;try{d=typeof Audio<"u"?new Audio:null}catch{return l}if(!d||typeof d.canPlayType!="function")return l;var f=d.canPlayType("audio/mpeg;").replace(/^no$/,""),_=l._navigator?l._navigator.userAgent:"",g=_.match(/OPR\/(\d+)/g),b=g&&parseInt(g[0].split("/")[1],10)<33,y=_.indexOf("Safari")!==-1&&_.indexOf("Chrome")===-1,w=_.match(/Version\/(.*?) /),A=y&&w&&parseInt(w[1],10)<15;return l._codecs={mp3:!!(!b&&(f||d.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!f,opus:!!d.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!d.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!d.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(d.canPlayType('audio/wav; codecs="1"')||d.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!d.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!d.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(d.canPlayType("audio/x-m4a;")||d.canPlayType("audio/m4a;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(d.canPlayType("audio/x-m4b;")||d.canPlayType("audio/m4b;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(d.canPlayType("audio/x-mp4;")||d.canPlayType("audio/mp4;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!A&&d.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!A&&d.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!d.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(d.canPlayType("audio/x-flac;")||d.canPlayType("audio/flac;")).replace(/^no$/,"")},l},_unlockAudio:function(){var l=this||n;if(!(l._audioUnlocked||!l.ctx)){l._audioUnlocked=!1,l.autoUnlock=!1,!l._mobileUnloaded&&l.ctx.sampleRate!==44100&&(l._mobileUnloaded=!0,l.unload()),l._scratchBuffer=l.ctx.createBuffer(1,1,22050);var d=function(f){for(;l._html5AudioPool.length<l.html5PoolSize;)try{var _=new Audio;_._unlocked=!0,l._releaseHtml5Audio(_)}catch{l.noAudio=!0;break}for(var g=0;g<l._howls.length;g++)if(!l._howls[g]._webAudio)for(var b=l._howls[g]._getSoundIds(),y=0;y<b.length;y++){var w=l._howls[g]._soundById(b[y]);w&&w._node&&!w._node._unlocked&&(w._node._unlocked=!0,w._node.load())}l._autoResume();var A=l.ctx.createBufferSource();A.buffer=l._scratchBuffer,A.connect(l.ctx.destination),typeof A.start>"u"?A.noteOn(0):A.start(0),typeof l.ctx.resume=="function"&&l.ctx.resume(),A.onended=function(){A.disconnect(0),l._audioUnlocked=!0,document.removeEventListener("touchstart",d,!0),document.removeEventListener("touchend",d,!0),document.removeEventListener("click",d,!0),document.removeEventListener("keydown",d,!0);for(var k=0;k<l._howls.length;k++)l._howls[k]._emit("unlock")}};return document.addEventListener("touchstart",d,!0),document.addEventListener("touchend",d,!0),document.addEventListener("click",d,!0),document.addEventListener("keydown",d,!0),l}},_obtainHtml5Audio:function(){var l=this||n;if(l._html5AudioPool.length)return l._html5AudioPool.pop();var d=new Audio().play();return d&&typeof Promise<"u"&&(d instanceof Promise||typeof d.then=="function")&&d.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(l){var d=this||n;return l._unlocked&&d._html5AudioPool.push(l),d},_autoSuspend:function(){var l=this;if(!(!l.autoSuspend||!l.ctx||typeof l.ctx.suspend>"u"||!n.usingWebAudio)){for(var d=0;d<l._howls.length;d++)if(l._howls[d]._webAudio){for(var f=0;f<l._howls[d]._sounds.length;f++)if(!l._howls[d]._sounds[f]._paused)return l}return l._suspendTimer&&clearTimeout(l._suspendTimer),l._suspendTimer=setTimeout(function(){if(l.autoSuspend){l._suspendTimer=null,l.state="suspending";var _=function(){l.state="suspended",l._resumeAfterSuspend&&(delete l._resumeAfterSuspend,l._autoResume())};l.ctx.suspend().then(_,_)}},3e4),l}},_autoResume:function(){var l=this;if(!(!l.ctx||typeof l.ctx.resume>"u"||!n.usingWebAudio))return l.state==="running"&&l.ctx.state!=="interrupted"&&l._suspendTimer?(clearTimeout(l._suspendTimer),l._suspendTimer=null):l.state==="suspended"||l.state==="running"&&l.ctx.state==="interrupted"?(l.ctx.resume().then(function(){l.state="running";for(var d=0;d<l._howls.length;d++)l._howls[d]._emit("resume")}),l._suspendTimer&&(clearTimeout(l._suspendTimer),l._suspendTimer=null)):l.state==="suspending"&&(l._resumeAfterSuspend=!0),l}};var n=new e,r=function(l){var d=this;if(!l.src||l.src.length===0){console.error("An array of source files must be passed with any new Howl.");return}d.init(l)};r.prototype={init:function(l){var d=this;return n.ctx||h(),d._autoplay=l.autoplay||!1,d._format=typeof l.format!="string"?l.format:[l.format],d._html5=l.html5||!1,d._muted=l.mute||!1,d._loop=l.loop||!1,d._pool=l.pool||5,d._preload=typeof l.preload=="boolean"||l.preload==="metadata"?l.preload:!0,d._rate=l.rate||1,d._sprite=l.sprite||{},d._src=typeof l.src!="string"?l.src:[l.src],d._volume=l.volume!==void 0?l.volume:1,d._xhr={method:l.xhr&&l.xhr.method?l.xhr.method:"GET",headers:l.xhr&&l.xhr.headers?l.xhr.headers:null,withCredentials:l.xhr&&l.xhr.withCredentials?l.xhr.withCredentials:!1},d._duration=0,d._state="unloaded",d._sounds=[],d._endTimers={},d._queue=[],d._playLock=!1,d._onend=l.onend?[{fn:l.onend}]:[],d._onfade=l.onfade?[{fn:l.onfade}]:[],d._onload=l.onload?[{fn:l.onload}]:[],d._onloaderror=l.onloaderror?[{fn:l.onloaderror}]:[],d._onplayerror=l.onplayerror?[{fn:l.onplayerror}]:[],d._onpause=l.onpause?[{fn:l.onpause}]:[],d._onplay=l.onplay?[{fn:l.onplay}]:[],d._onstop=l.onstop?[{fn:l.onstop}]:[],d._onmute=l.onmute?[{fn:l.onmute}]:[],d._onvolume=l.onvolume?[{fn:l.onvolume}]:[],d._onrate=l.onrate?[{fn:l.onrate}]:[],d._onseek=l.onseek?[{fn:l.onseek}]:[],d._onunlock=l.onunlock?[{fn:l.onunlock}]:[],d._onresume=[],d._webAudio=n.usingWebAudio&&!d._html5,typeof n.ctx<"u"&&n.ctx&&n.autoUnlock&&n._unlockAudio(),n._howls.push(d),d._autoplay&&d._queue.push({event:"play",action:function(){d.play()}}),d._preload&&d._preload!=="none"&&d.load(),d},load:function(){var l=this,d=null;if(n.noAudio){l._emit("loaderror",null,"No audio support.");return}typeof l._src=="string"&&(l._src=[l._src]);for(var f=0;f<l._src.length;f++){var _,g;if(l._format&&l._format[f])_=l._format[f];else{if(g=l._src[f],typeof g!="string"){l._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}_=/^data:audio\/([^;,]+);/i.exec(g),_||(_=/\.([^.]+)$/.exec(g.split("?",1)[0])),_&&(_=_[1].toLowerCase())}if(_||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),_&&n.codecs(_)){d=l._src[f];break}}if(!d){l._emit("loaderror",null,"No codec support for selected audio sources.");return}return l._src=d,l._state="loading",window.location.protocol==="https:"&&d.slice(0,5)==="http:"&&(l._html5=!0,l._webAudio=!1),new i(l),l._webAudio&&s(l),l},play:function(l,d){var f=this,_=null;if(typeof l=="number")_=l,l=null;else{if(typeof l=="string"&&f._state==="loaded"&&!f._sprite[l])return null;if(typeof l>"u"&&(l="__default",!f._playLock)){for(var g=0,b=0;b<f._sounds.length;b++)f._sounds[b]._paused&&!f._sounds[b]._ended&&(g++,_=f._sounds[b]._id);g===1?l=null:_=null}}var y=_?f._soundById(_):f._inactiveSound();if(!y)return null;if(_&&!l&&(l=y._sprite||"__default"),f._state!=="loaded"){y._sprite=l,y._ended=!1;var w=y._id;return f._queue.push({event:"play",action:function(){f.play(w)}}),w}if(_&&!y._paused)return d||f._loadQueue("play"),y._id;f._webAudio&&n._autoResume();var A=Math.max(0,y._seek>0?y._seek:f._sprite[l][0]/1e3),k=Math.max(0,(f._sprite[l][0]+f._sprite[l][1])/1e3-A),R=k*1e3/Math.abs(y._rate),C=f._sprite[l][0]/1e3,L=(f._sprite[l][0]+f._sprite[l][1])/1e3;y._sprite=l,y._ended=!1;var M=function(){y._paused=!1,y._seek=A,y._start=C,y._stop=L,y._loop=!!(y._loop||f._sprite[l][2])};if(A>=L){f._ended(y);return}var $=y._node;if(f._webAudio){var U=function(){f._playLock=!1,M(),f._refreshBuffer(y);var N=y._muted||f._muted?0:y._volume;$.gain.setValueAtTime(N,n.ctx.currentTime),y._playStart=n.ctx.currentTime,typeof $.bufferSource.start>"u"?y._loop?$.bufferSource.noteGrainOn(0,A,86400):$.bufferSource.noteGrainOn(0,A,k):y._loop?$.bufferSource.start(0,A,86400):$.bufferSource.start(0,A,k),R!==1/0&&(f._endTimers[y._id]=setTimeout(f._ended.bind(f,y),R)),d||setTimeout(function(){f._emit("play",y._id),f._loadQueue()},0)};n.state==="running"&&n.ctx.state!=="interrupted"?U():(f._playLock=!0,f.once("resume",U),f._clearTimer(y._id))}else{var ne=function(){$.currentTime=A,$.muted=y._muted||f._muted||n._muted||$.muted,$.volume=y._volume*n.volume(),$.playbackRate=y._rate;try{var N=$.play();if(N&&typeof Promise<"u"&&(N instanceof Promise||typeof N.then=="function")?(f._playLock=!0,M(),N.then(function(){f._playLock=!1,$._unlocked=!0,d?f._loadQueue():f._emit("play",y._id)}).catch(function(){f._playLock=!1,f._emit("playerror",y._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),y._ended=!0,y._paused=!0})):d||(f._playLock=!1,M(),f._emit("play",y._id)),$.playbackRate=y._rate,$.paused){f._emit("playerror",y._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}l!=="__default"||y._loop?f._endTimers[y._id]=setTimeout(f._ended.bind(f,y),R):(f._endTimers[y._id]=function(){f._ended(y),$.removeEventListener("ended",f._endTimers[y._id],!1)},$.addEventListener("ended",f._endTimers[y._id],!1))}catch(W){f._emit("playerror",y._id,W)}};$.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&($.src=f._src,$.load());var D=window&&window.ejecta||!$.readyState&&n._navigator.isCocoonJS;if($.readyState>=3||D)ne();else{f._playLock=!0,f._state="loading";var Q=function(){f._state="loaded",ne(),$.removeEventListener(n._canPlayEvent,Q,!1)};$.addEventListener(n._canPlayEvent,Q,!1),f._clearTimer(y._id)}}return y._id},pause:function(l){var d=this;if(d._state!=="loaded"||d._playLock)return d._queue.push({event:"pause",action:function(){d.pause(l)}}),d;for(var f=d._getSoundIds(l),_=0;_<f.length;_++){d._clearTimer(f[_]);var g=d._soundById(f[_]);if(g&&!g._paused&&(g._seek=d.seek(f[_]),g._rateSeek=0,g._paused=!0,d._stopFade(f[_]),g._node))if(d._webAudio){if(!g._node.bufferSource)continue;typeof g._node.bufferSource.stop>"u"?g._node.bufferSource.noteOff(0):g._node.bufferSource.stop(0),d._cleanBuffer(g._node)}else(!isNaN(g._node.duration)||g._node.duration===1/0)&&g._node.pause();arguments[1]||d._emit("pause",g?g._id:null)}return d},stop:function(l,d){var f=this;if(f._state!=="loaded"||f._playLock)return f._queue.push({event:"stop",action:function(){f.stop(l)}}),f;for(var _=f._getSoundIds(l),g=0;g<_.length;g++){f._clearTimer(_[g]);var b=f._soundById(_[g]);b&&(b._seek=b._start||0,b._rateSeek=0,b._paused=!0,b._ended=!0,f._stopFade(_[g]),b._node&&(f._webAudio?b._node.bufferSource&&(typeof b._node.bufferSource.stop>"u"?b._node.bufferSource.noteOff(0):b._node.bufferSource.stop(0),f._cleanBuffer(b._node)):(!isNaN(b._node.duration)||b._node.duration===1/0)&&(b._node.currentTime=b._start||0,b._node.pause(),b._node.duration===1/0&&f._clearSound(b._node))),d||f._emit("stop",b._id))}return f},mute:function(l,d){var f=this;if(f._state!=="loaded"||f._playLock)return f._queue.push({event:"mute",action:function(){f.mute(l,d)}}),f;if(typeof d>"u")if(typeof l=="boolean")f._muted=l;else return f._muted;for(var _=f._getSoundIds(d),g=0;g<_.length;g++){var b=f._soundById(_[g]);b&&(b._muted=l,b._interval&&f._stopFade(b._id),f._webAudio&&b._node?b._node.gain.setValueAtTime(l?0:b._volume,n.ctx.currentTime):b._node&&(b._node.muted=n._muted?!0:l),f._emit("mute",b._id))}return f},volume:function(){var l=this,d=arguments,f,_;if(d.length===0)return l._volume;if(d.length===1||d.length===2&&typeof d[1]>"u"){var g=l._getSoundIds(),b=g.indexOf(d[0]);b>=0?_=parseInt(d[0],10):f=parseFloat(d[0])}else d.length>=2&&(f=parseFloat(d[0]),_=parseInt(d[1],10));var y;if(typeof f<"u"&&f>=0&&f<=1){if(l._state!=="loaded"||l._playLock)return l._queue.push({event:"volume",action:function(){l.volume.apply(l,d)}}),l;typeof _>"u"&&(l._volume=f),_=l._getSoundIds(_);for(var w=0;w<_.length;w++)y=l._soundById(_[w]),y&&(y._volume=f,d[2]||l._stopFade(_[w]),l._webAudio&&y._node&&!y._muted?y._node.gain.setValueAtTime(f,n.ctx.currentTime):y._node&&!y._muted&&(y._node.volume=f*n.volume()),l._emit("volume",y._id))}else return y=_?l._soundById(_):l._sounds[0],y?y._volume:0;return l},fade:function(l,d,f,_){var g=this;if(g._state!=="loaded"||g._playLock)return g._queue.push({event:"fade",action:function(){g.fade(l,d,f,_)}}),g;l=Math.min(Math.max(0,parseFloat(l)),1),d=Math.min(Math.max(0,parseFloat(d)),1),f=parseFloat(f),g.volume(l,_);for(var b=g._getSoundIds(_),y=0;y<b.length;y++){var w=g._soundById(b[y]);if(w){if(_||g._stopFade(b[y]),g._webAudio&&!w._muted){var A=n.ctx.currentTime,k=A+f/1e3;w._volume=l,w._node.gain.setValueAtTime(l,A),w._node.gain.linearRampToValueAtTime(d,k)}g._startFadeInterval(w,l,d,f,b[y],typeof _>"u")}}return g},_startFadeInterval:function(l,d,f,_,g,b){var y=this,w=d,A=f-d,k=Math.abs(A/.01),R=Math.max(4,k>0?_/k:_),C=Date.now();l._fadeTo=f,l._interval=setInterval(function(){var L=(Date.now()-C)/_;C=Date.now(),w+=A*L,w=Math.round(w*100)/100,A<0?w=Math.max(f,w):w=Math.min(f,w),y._webAudio?l._volume=w:y.volume(w,l._id,!0),b&&(y._volume=w),(f<d&&w<=f||f>d&&w>=f)&&(clearInterval(l._interval),l._interval=null,l._fadeTo=null,y.volume(f,l._id),y._emit("fade",l._id))},R)},_stopFade:function(l){var d=this,f=d._soundById(l);return f&&f._interval&&(d._webAudio&&f._node.gain.cancelScheduledValues(n.ctx.currentTime),clearInterval(f._interval),f._interval=null,d.volume(f._fadeTo,l),f._fadeTo=null,d._emit("fade",l)),d},loop:function(){var l=this,d=arguments,f,_,g;if(d.length===0)return l._loop;if(d.length===1)if(typeof d[0]=="boolean")f=d[0],l._loop=f;else return g=l._soundById(parseInt(d[0],10)),g?g._loop:!1;else d.length===2&&(f=d[0],_=parseInt(d[1],10));for(var b=l._getSoundIds(_),y=0;y<b.length;y++)g=l._soundById(b[y]),g&&(g._loop=f,l._webAudio&&g._node&&g._node.bufferSource&&(g._node.bufferSource.loop=f,f&&(g._node.bufferSource.loopStart=g._start||0,g._node.bufferSource.loopEnd=g._stop,l.playing(b[y])&&(l.pause(b[y],!0),l.play(b[y],!0)))));return l},rate:function(){var l=this,d=arguments,f,_;if(d.length===0)_=l._sounds[0]._id;else if(d.length===1){var g=l._getSoundIds(),b=g.indexOf(d[0]);b>=0?_=parseInt(d[0],10):f=parseFloat(d[0])}else d.length===2&&(f=parseFloat(d[0]),_=parseInt(d[1],10));var y;if(typeof f=="number"){if(l._state!=="loaded"||l._playLock)return l._queue.push({event:"rate",action:function(){l.rate.apply(l,d)}}),l;typeof _>"u"&&(l._rate=f),_=l._getSoundIds(_);for(var w=0;w<_.length;w++)if(y=l._soundById(_[w]),y){l.playing(_[w])&&(y._rateSeek=l.seek(_[w]),y._playStart=l._webAudio?n.ctx.currentTime:y._playStart),y._rate=f,l._webAudio&&y._node&&y._node.bufferSource?y._node.bufferSource.playbackRate.setValueAtTime(f,n.ctx.currentTime):y._node&&(y._node.playbackRate=f);var A=l.seek(_[w]),k=(l._sprite[y._sprite][0]+l._sprite[y._sprite][1])/1e3-A,R=k*1e3/Math.abs(y._rate);(l._endTimers[_[w]]||!y._paused)&&(l._clearTimer(_[w]),l._endTimers[_[w]]=setTimeout(l._ended.bind(l,y),R)),l._emit("rate",y._id)}}else return y=l._soundById(_),y?y._rate:l._rate;return l},seek:function(){var l=this,d=arguments,f,_;if(d.length===0)l._sounds.length&&(_=l._sounds[0]._id);else if(d.length===1){var g=l._getSoundIds(),b=g.indexOf(d[0]);b>=0?_=parseInt(d[0],10):l._sounds.length&&(_=l._sounds[0]._id,f=parseFloat(d[0]))}else d.length===2&&(f=parseFloat(d[0]),_=parseInt(d[1],10));if(typeof _>"u")return 0;if(typeof f=="number"&&(l._state!=="loaded"||l._playLock))return l._queue.push({event:"seek",action:function(){l.seek.apply(l,d)}}),l;var y=l._soundById(_);if(y)if(typeof f=="number"&&f>=0){var w=l.playing(_);w&&l.pause(_,!0),y._seek=f,y._ended=!1,l._clearTimer(_),!l._webAudio&&y._node&&!isNaN(y._node.duration)&&(y._node.currentTime=f);var A=function(){w&&l.play(_,!0),l._emit("seek",_)};if(w&&!l._webAudio){var k=function(){l._playLock?setTimeout(k,0):A()};setTimeout(k,0)}else A()}else if(l._webAudio){var R=l.playing(_)?n.ctx.currentTime-y._playStart:0,C=y._rateSeek?y._rateSeek-y._seek:0;return y._seek+(C+R*Math.abs(y._rate))}else return y._node.currentTime;return l},playing:function(l){var d=this;if(typeof l=="number"){var f=d._soundById(l);return f?!f._paused:!1}for(var _=0;_<d._sounds.length;_++)if(!d._sounds[_]._paused)return!0;return!1},duration:function(l){var d=this,f=d._duration,_=d._soundById(l);return _&&(f=d._sprite[_._sprite][1]/1e3),f},state:function(){return this._state},unload:function(){for(var l=this,d=l._sounds,f=0;f<d.length;f++)d[f]._paused||l.stop(d[f]._id),l._webAudio||(l._clearSound(d[f]._node),d[f]._node.removeEventListener("error",d[f]._errorFn,!1),d[f]._node.removeEventListener(n._canPlayEvent,d[f]._loadFn,!1),d[f]._node.removeEventListener("ended",d[f]._endFn,!1),n._releaseHtml5Audio(d[f]._node)),delete d[f]._node,l._clearTimer(d[f]._id);var _=n._howls.indexOf(l);_>=0&&n._howls.splice(_,1);var g=!0;for(f=0;f<n._howls.length;f++)if(n._howls[f]._src===l._src||l._src.indexOf(n._howls[f]._src)>=0){g=!1;break}return o&&g&&delete o[l._src],n.noAudio=!1,l._state="unloaded",l._sounds=[],l=null,null},on:function(l,d,f,_){var g=this,b=g["_on"+l];return typeof d=="function"&&b.push(_?{id:f,fn:d,once:_}:{id:f,fn:d}),g},off:function(l,d,f){var _=this,g=_["_on"+l],b=0;if(typeof d=="number"&&(f=d,d=null),d||f)for(b=0;b<g.length;b++){var y=f===g[b].id;if(d===g[b].fn&&y||!d&&y){g.splice(b,1);break}}else if(l)_["_on"+l]=[];else{var w=Object.keys(_);for(b=0;b<w.length;b++)w[b].indexOf("_on")===0&&Array.isArray(_[w[b]])&&(_[w[b]]=[])}return _},once:function(l,d,f){var _=this;return _.on(l,d,f,1),_},_emit:function(l,d,f){for(var _=this,g=_["_on"+l],b=g.length-1;b>=0;b--)(!g[b].id||g[b].id===d||l==="load")&&(setTimeout((function(y){y.call(this,d,f)}).bind(_,g[b].fn),0),g[b].once&&_.off(l,g[b].fn,g[b].id));return _._loadQueue(l),_},_loadQueue:function(l){var d=this;if(d._queue.length>0){var f=d._queue[0];f.event===l&&(d._queue.shift(),d._loadQueue()),l||f.action()}return d},_ended:function(l){var d=this,f=l._sprite;if(!d._webAudio&&l._node&&!l._node.paused&&!l._node.ended&&l._node.currentTime<l._stop)return setTimeout(d._ended.bind(d,l),100),d;var _=!!(l._loop||d._sprite[f][2]);if(d._emit("end",l._id),!d._webAudio&&_&&d.stop(l._id,!0).play(l._id),d._webAudio&&_){d._emit("play",l._id),l._seek=l._start||0,l._rateSeek=0,l._playStart=n.ctx.currentTime;var g=(l._stop-l._start)*1e3/Math.abs(l._rate);d._endTimers[l._id]=setTimeout(d._ended.bind(d,l),g)}return d._webAudio&&!_&&(l._paused=!0,l._ended=!0,l._seek=l._start||0,l._rateSeek=0,d._clearTimer(l._id),d._cleanBuffer(l._node),n._autoSuspend()),!d._webAudio&&!_&&d.stop(l._id,!0),d},_clearTimer:function(l){var d=this;if(d._endTimers[l]){if(typeof d._endTimers[l]!="function")clearTimeout(d._endTimers[l]);else{var f=d._soundById(l);f&&f._node&&f._node.removeEventListener("ended",d._endTimers[l],!1)}delete d._endTimers[l]}return d},_soundById:function(l){for(var d=this,f=0;f<d._sounds.length;f++)if(l===d._sounds[f]._id)return d._sounds[f];return null},_inactiveSound:function(){var l=this;l._drain();for(var d=0;d<l._sounds.length;d++)if(l._sounds[d]._ended)return l._sounds[d].reset();return new i(l)},_drain:function(){var l=this,d=l._pool,f=0,_=0;if(!(l._sounds.length<d)){for(_=0;_<l._sounds.length;_++)l._sounds[_]._ended&&f++;for(_=l._sounds.length-1;_>=0;_--){if(f<=d)return;l._sounds[_]._ended&&(l._webAudio&&l._sounds[_]._node&&l._sounds[_]._node.disconnect(0),l._sounds.splice(_,1),f--)}}},_getSoundIds:function(l){var d=this;if(typeof l>"u"){for(var f=[],_=0;_<d._sounds.length;_++)f.push(d._sounds[_]._id);return f}else return[l]},_refreshBuffer:function(l){var d=this;return l._node.bufferSource=n.ctx.createBufferSource(),l._node.bufferSource.buffer=o[d._src],l._panner?l._node.bufferSource.connect(l._panner):l._node.bufferSource.connect(l._node),l._node.bufferSource.loop=l._loop,l._loop&&(l._node.bufferSource.loopStart=l._start||0,l._node.bufferSource.loopEnd=l._stop||0),l._node.bufferSource.playbackRate.setValueAtTime(l._rate,n.ctx.currentTime),d},_cleanBuffer:function(l){var d=this,f=n._navigator&&n._navigator.vendor.indexOf("Apple")>=0;if(!l.bufferSource)return d;if(n._scratchBuffer&&l.bufferSource&&(l.bufferSource.onended=null,l.bufferSource.disconnect(0),f))try{l.bufferSource.buffer=n._scratchBuffer}catch{}return l.bufferSource=null,d},_clearSound:function(l){var d=/MSIE |Trident\//.test(n._navigator&&n._navigator.userAgent);d||(l.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var i=function(l){this._parent=l,this.init()};i.prototype={init:function(){var l=this,d=l._parent;return l._muted=d._muted,l._loop=d._loop,l._volume=d._volume,l._rate=d._rate,l._seek=0,l._paused=!0,l._ended=!0,l._sprite="__default",l._id=++n._counter,d._sounds.push(l),l.create(),l},create:function(){var l=this,d=l._parent,f=n._muted||l._muted||l._parent._muted?0:l._volume;return d._webAudio?(l._node=typeof n.ctx.createGain>"u"?n.ctx.createGainNode():n.ctx.createGain(),l._node.gain.setValueAtTime(f,n.ctx.currentTime),l._node.paused=!0,l._node.connect(n.masterGain)):n.noAudio||(l._node=n._obtainHtml5Audio(),l._errorFn=l._errorListener.bind(l),l._node.addEventListener("error",l._errorFn,!1),l._loadFn=l._loadListener.bind(l),l._node.addEventListener(n._canPlayEvent,l._loadFn,!1),l._endFn=l._endListener.bind(l),l._node.addEventListener("ended",l._endFn,!1),l._node.src=d._src,l._node.preload=d._preload===!0?"auto":d._preload,l._node.volume=f*n.volume(),l._node.load()),l},reset:function(){var l=this,d=l._parent;return l._muted=d._muted,l._loop=d._loop,l._volume=d._volume,l._rate=d._rate,l._seek=0,l._rateSeek=0,l._paused=!0,l._ended=!0,l._sprite="__default",l._id=++n._counter,l},_errorListener:function(){var l=this;l._parent._emit("loaderror",l._id,l._node.error?l._node.error.code:0),l._node.removeEventListener("error",l._errorFn,!1)},_loadListener:function(){var l=this,d=l._parent;d._duration=Math.ceil(l._node.duration*10)/10,Object.keys(d._sprite).length===0&&(d._sprite={__default:[0,d._duration*1e3]}),d._state!=="loaded"&&(d._state="loaded",d._emit("load"),d._loadQueue()),l._node.removeEventListener(n._canPlayEvent,l._loadFn,!1)},_endListener:function(){var l=this,d=l._parent;d._duration===1/0&&(d._duration=Math.ceil(l._node.duration*10)/10,d._sprite.__default[1]===1/0&&(d._sprite.__default[1]=d._duration*1e3),d._ended(l)),l._node.removeEventListener("ended",l._endFn,!1)}};var o={},s=function(l){var d=l._src;if(o[d]){l._duration=o[d].duration,c(l);return}if(/^data:[^;]+;base64,/.test(d)){for(var f=atob(d.split(",")[1]),_=new Uint8Array(f.length),g=0;g<f.length;++g)_[g]=f.charCodeAt(g);u(_.buffer,l)}else{var b=new XMLHttpRequest;b.open(l._xhr.method,d,!0),b.withCredentials=l._xhr.withCredentials,b.responseType="arraybuffer",l._xhr.headers&&Object.keys(l._xhr.headers).forEach(function(y){b.setRequestHeader(y,l._xhr.headers[y])}),b.onload=function(){var y=(b.status+"")[0];if(y!=="0"&&y!=="2"&&y!=="3"){l._emit("loaderror",null,"Failed loading audio file with status: "+b.status+".");return}u(b.response,l)},b.onerror=function(){l._webAudio&&(l._html5=!0,l._webAudio=!1,l._sounds=[],delete o[d],l.load())},a(b)}},a=function(l){try{l.send()}catch{l.onerror()}},u=function(l,d){var f=function(){d._emit("loaderror",null,"Decoding audio data failed.")},_=function(g){g&&d._sounds.length>0?(o[d._src]=g,c(d,g)):f()};typeof Promise<"u"&&n.ctx.decodeAudioData.length===1?n.ctx.decodeAudioData(l).then(_).catch(f):n.ctx.decodeAudioData(l,_,f)},c=function(l,d){d&&!l._duration&&(l._duration=d.duration),Object.keys(l._sprite).length===0&&(l._sprite={__default:[0,l._duration*1e3]}),l._state!=="loaded"&&(l._state="loaded",l._emit("load"),l._loadQueue())},h=function(){if(n.usingWebAudio){try{typeof AudioContext<"u"?n.ctx=new AudioContext:typeof webkitAudioContext<"u"?n.ctx=new webkitAudioContext:n.usingWebAudio=!1}catch{n.usingWebAudio=!1}n.ctx||(n.usingWebAudio=!1);var l=/iP(hone|od|ad)/.test(n._navigator&&n._navigator.platform),d=n._navigator&&n._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),f=d?parseInt(d[1],10):null;if(l&&f&&f<9){var _=/safari/.test(n._navigator&&n._navigator.userAgent.toLowerCase());n._navigator&&!_&&(n.usingWebAudio=!1)}n.usingWebAudio&&(n.masterGain=typeof n.ctx.createGain>"u"?n.ctx.createGainNode():n.ctx.createGain(),n.masterGain.gain.setValueAtTime(n._muted?0:n._volume,n.ctx.currentTime),n.masterGain.connect(n.ctx.destination)),n._setup()}};t.Howler=n,t.Howl=r,typeof cu<"u"?(cu.HowlerGlobal=e,cu.Howler=n,cu.Howl=r,cu.Sound=i):typeof window<"u"&&(window.HowlerGlobal=e,window.Howler=n,window.Howl=r,window.Sound=i)})();/*!
 *  Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
 *  
 *  howler.js v2.2.4
 *  howlerjs.com
 *
 *  (c) 2013-2020, James Simpson of GoldFire Studios
 *  goldfirestudios.com
 *
 *  MIT License
 */(function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(n){var r=this;if(!r.ctx||!r.ctx.listener)return r;for(var i=r._howls.length-1;i>=0;i--)r._howls[i].stereo(n);return r},HowlerGlobal.prototype.pos=function(n,r,i){var o=this;if(!o.ctx||!o.ctx.listener)return o;if(r=typeof r!="number"?o._pos[1]:r,i=typeof i!="number"?o._pos[2]:i,typeof n=="number")o._pos=[n,r,i],typeof o.ctx.listener.positionX<"u"?(o.ctx.listener.positionX.setTargetAtTime(o._pos[0],Howler.ctx.currentTime,.1),o.ctx.listener.positionY.setTargetAtTime(o._pos[1],Howler.ctx.currentTime,.1),o.ctx.listener.positionZ.setTargetAtTime(o._pos[2],Howler.ctx.currentTime,.1)):o.ctx.listener.setPosition(o._pos[0],o._pos[1],o._pos[2]);else return o._pos;return o},HowlerGlobal.prototype.orientation=function(n,r,i,o,s,a){var u=this;if(!u.ctx||!u.ctx.listener)return u;var c=u._orientation;if(r=typeof r!="number"?c[1]:r,i=typeof i!="number"?c[2]:i,o=typeof o!="number"?c[3]:o,s=typeof s!="number"?c[4]:s,a=typeof a!="number"?c[5]:a,typeof n=="number")u._orientation=[n,r,i,o,s,a],typeof u.ctx.listener.forwardX<"u"?(u.ctx.listener.forwardX.setTargetAtTime(n,Howler.ctx.currentTime,.1),u.ctx.listener.forwardY.setTargetAtTime(r,Howler.ctx.currentTime,.1),u.ctx.listener.forwardZ.setTargetAtTime(i,Howler.ctx.currentTime,.1),u.ctx.listener.upX.setTargetAtTime(o,Howler.ctx.currentTime,.1),u.ctx.listener.upY.setTargetAtTime(s,Howler.ctx.currentTime,.1),u.ctx.listener.upZ.setTargetAtTime(a,Howler.ctx.currentTime,.1)):u.ctx.listener.setOrientation(n,r,i,o,s,a);else return c;return u},Howl.prototype.init=function(n){return function(r){var i=this;return i._orientation=r.orientation||[1,0,0],i._stereo=r.stereo||null,i._pos=r.pos||null,i._pannerAttr={coneInnerAngle:typeof r.coneInnerAngle<"u"?r.coneInnerAngle:360,coneOuterAngle:typeof r.coneOuterAngle<"u"?r.coneOuterAngle:360,coneOuterGain:typeof r.coneOuterGain<"u"?r.coneOuterGain:0,distanceModel:typeof r.distanceModel<"u"?r.distanceModel:"inverse",maxDistance:typeof r.maxDistance<"u"?r.maxDistance:1e4,panningModel:typeof r.panningModel<"u"?r.panningModel:"HRTF",refDistance:typeof r.refDistance<"u"?r.refDistance:1,rolloffFactor:typeof r.rolloffFactor<"u"?r.rolloffFactor:1},i._onstereo=r.onstereo?[{fn:r.onstereo}]:[],i._onpos=r.onpos?[{fn:r.onpos}]:[],i._onorientation=r.onorientation?[{fn:r.onorientation}]:[],n.call(this,r)}}(Howl.prototype.init),Howl.prototype.stereo=function(n,r){var i=this;if(!i._webAudio)return i;if(i._state!=="loaded")return i._queue.push({event:"stereo",action:function(){i.stereo(n,r)}}),i;var o=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof r>"u")if(typeof n=="number")i._stereo=n,i._pos=[n,0,0];else return i._stereo;for(var s=i._getSoundIds(r),a=0;a<s.length;a++){var u=i._soundById(s[a]);if(u)if(typeof n=="number")u._stereo=n,u._pos=[n,0,0],u._node&&(u._pannerAttr.panningModel="equalpower",(!u._panner||!u._panner.pan)&&e(u,o),o==="spatial"?typeof u._panner.positionX<"u"?(u._panner.positionX.setValueAtTime(n,Howler.ctx.currentTime),u._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),u._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):u._panner.setPosition(n,0,0):u._panner.pan.setValueAtTime(n,Howler.ctx.currentTime)),i._emit("stereo",u._id);else return u._stereo}return i},Howl.prototype.pos=function(n,r,i,o){var s=this;if(!s._webAudio)return s;if(s._state!=="loaded")return s._queue.push({event:"pos",action:function(){s.pos(n,r,i,o)}}),s;if(r=typeof r!="number"?0:r,i=typeof i!="number"?-.5:i,typeof o>"u")if(typeof n=="number")s._pos=[n,r,i];else return s._pos;for(var a=s._getSoundIds(o),u=0;u<a.length;u++){var c=s._soundById(a[u]);if(c)if(typeof n=="number")c._pos=[n,r,i],c._node&&((!c._panner||c._panner.pan)&&e(c,"spatial"),typeof c._panner.positionX<"u"?(c._panner.positionX.setValueAtTime(n,Howler.ctx.currentTime),c._panner.positionY.setValueAtTime(r,Howler.ctx.currentTime),c._panner.positionZ.setValueAtTime(i,Howler.ctx.currentTime)):c._panner.setPosition(n,r,i)),s._emit("pos",c._id);else return c._pos}return s},Howl.prototype.orientation=function(n,r,i,o){var s=this;if(!s._webAudio)return s;if(s._state!=="loaded")return s._queue.push({event:"orientation",action:function(){s.orientation(n,r,i,o)}}),s;if(r=typeof r!="number"?s._orientation[1]:r,i=typeof i!="number"?s._orientation[2]:i,typeof o>"u")if(typeof n=="number")s._orientation=[n,r,i];else return s._orientation;for(var a=s._getSoundIds(o),u=0;u<a.length;u++){var c=s._soundById(a[u]);if(c)if(typeof n=="number")c._orientation=[n,r,i],c._node&&(c._panner||(c._pos||(c._pos=s._pos||[0,0,-.5]),e(c,"spatial")),typeof c._panner.orientationX<"u"?(c._panner.orientationX.setValueAtTime(n,Howler.ctx.currentTime),c._panner.orientationY.setValueAtTime(r,Howler.ctx.currentTime),c._panner.orientationZ.setValueAtTime(i,Howler.ctx.currentTime)):c._panner.setOrientation(n,r,i)),s._emit("orientation",c._id);else return c._orientation}return s},Howl.prototype.pannerAttr=function(){var n=this,r=arguments,i,o,s;if(!n._webAudio)return n;if(r.length===0)return n._pannerAttr;if(r.length===1)if(typeof r[0]=="object")i=r[0],typeof o>"u"&&(i.pannerAttr||(i.pannerAttr={coneInnerAngle:i.coneInnerAngle,coneOuterAngle:i.coneOuterAngle,coneOuterGain:i.coneOuterGain,distanceModel:i.distanceModel,maxDistance:i.maxDistance,refDistance:i.refDistance,rolloffFactor:i.rolloffFactor,panningModel:i.panningModel}),n._pannerAttr={coneInnerAngle:typeof i.pannerAttr.coneInnerAngle<"u"?i.pannerAttr.coneInnerAngle:n._coneInnerAngle,coneOuterAngle:typeof i.pannerAttr.coneOuterAngle<"u"?i.pannerAttr.coneOuterAngle:n._coneOuterAngle,coneOuterGain:typeof i.pannerAttr.coneOuterGain<"u"?i.pannerAttr.coneOuterGain:n._coneOuterGain,distanceModel:typeof i.pannerAttr.distanceModel<"u"?i.pannerAttr.distanceModel:n._distanceModel,maxDistance:typeof i.pannerAttr.maxDistance<"u"?i.pannerAttr.maxDistance:n._maxDistance,refDistance:typeof i.pannerAttr.refDistance<"u"?i.pannerAttr.refDistance:n._refDistance,rolloffFactor:typeof i.pannerAttr.rolloffFactor<"u"?i.pannerAttr.rolloffFactor:n._rolloffFactor,panningModel:typeof i.pannerAttr.panningModel<"u"?i.pannerAttr.panningModel:n._panningModel});else return s=n._soundById(parseInt(r[0],10)),s?s._pannerAttr:n._pannerAttr;else r.length===2&&(i=r[0],o=parseInt(r[1],10));for(var a=n._getSoundIds(o),u=0;u<a.length;u++)if(s=n._soundById(a[u]),s){var c=s._pannerAttr;c={coneInnerAngle:typeof i.coneInnerAngle<"u"?i.coneInnerAngle:c.coneInnerAngle,coneOuterAngle:typeof i.coneOuterAngle<"u"?i.coneOuterAngle:c.coneOuterAngle,coneOuterGain:typeof i.coneOuterGain<"u"?i.coneOuterGain:c.coneOuterGain,distanceModel:typeof i.distanceModel<"u"?i.distanceModel:c.distanceModel,maxDistance:typeof i.maxDistance<"u"?i.maxDistance:c.maxDistance,refDistance:typeof i.refDistance<"u"?i.refDistance:c.refDistance,rolloffFactor:typeof i.rolloffFactor<"u"?i.rolloffFactor:c.rolloffFactor,panningModel:typeof i.panningModel<"u"?i.panningModel:c.panningModel};var h=s._panner;h||(s._pos||(s._pos=n._pos||[0,0,-.5]),e(s,"spatial"),h=s._panner),h.coneInnerAngle=c.coneInnerAngle,h.coneOuterAngle=c.coneOuterAngle,h.coneOuterGain=c.coneOuterGain,h.distanceModel=c.distanceModel,h.maxDistance=c.maxDistance,h.refDistance=c.refDistance,h.rolloffFactor=c.rolloffFactor,h.panningModel=c.panningModel}return n},Sound.prototype.init=function(n){return function(){var r=this,i=r._parent;r._orientation=i._orientation,r._stereo=i._stereo,r._pos=i._pos,r._pannerAttr=i._pannerAttr,n.call(this),r._stereo?i.stereo(r._stereo):r._pos&&i.pos(r._pos[0],r._pos[1],r._pos[2],r._id)}}(Sound.prototype.init),Sound.prototype.reset=function(n){return function(){var r=this,i=r._parent;return r._orientation=i._orientation,r._stereo=i._stereo,r._pos=i._pos,r._pannerAttr=i._pannerAttr,r._stereo?i.stereo(r._stereo):r._pos?i.pos(r._pos[0],r._pos[1],r._pos[2],r._id):r._panner&&(r._panner.disconnect(0),r._panner=void 0,i._refreshBuffer(r)),n.call(this)}}(Sound.prototype.reset);var e=function(n,r){r=r||"spatial",r==="spatial"?(n._panner=Howler.ctx.createPanner(),n._panner.coneInnerAngle=n._pannerAttr.coneInnerAngle,n._panner.coneOuterAngle=n._pannerAttr.coneOuterAngle,n._panner.coneOuterGain=n._pannerAttr.coneOuterGain,n._panner.distanceModel=n._pannerAttr.distanceModel,n._panner.maxDistance=n._pannerAttr.maxDistance,n._panner.refDistance=n._pannerAttr.refDistance,n._panner.rolloffFactor=n._pannerAttr.rolloffFactor,n._panner.panningModel=n._pannerAttr.panningModel,typeof n._panner.positionX<"u"?(n._panner.positionX.setValueAtTime(n._pos[0],Howler.ctx.currentTime),n._panner.positionY.setValueAtTime(n._pos[1],Howler.ctx.currentTime),n._panner.positionZ.setValueAtTime(n._pos[2],Howler.ctx.currentTime)):n._panner.setPosition(n._pos[0],n._pos[1],n._pos[2]),typeof n._panner.orientationX<"u"?(n._panner.orientationX.setValueAtTime(n._orientation[0],Howler.ctx.currentTime),n._panner.orientationY.setValueAtTime(n._orientation[1],Howler.ctx.currentTime),n._panner.orientationZ.setValueAtTime(n._orientation[2],Howler.ctx.currentTime)):n._panner.setOrientation(n._orientation[0],n._orientation[1],n._orientation[2])):(n._panner=Howler.ctx.createStereoPanner(),n._panner.pan.setValueAtTime(n._stereo,Howler.ctx.currentTime)),n._panner.connect(n._node),n._paused||n._parent.pause(n._id,!0).play(n._id,!0)}})()}(yp)),yp}var bp=t8();const n8={class:"audio-unlock"},r8={__name:"AudioUnlock",setup(t){const e=vi(),{audioMuted:n}=bw(e);let r;return bp.Howler._audioUnlocked?e.audioUnlocked=!0:lt.isClient&&(window.addEventListener("click",()=>{e.audioUnlocked=!0},{once:!0}),r=setInterval(()=>{bp.Howler._audioUnlocked&&(e.audioUnlocked=!0,clearInterval(r))},100)),Ne(n,i=>{bp.Howler.mute(i)}),(i,o)=>(ae(),me("div",n8))}},i8=Ji({__name:"App",setup(t){const e=hE(),n=j(""),r=vi(),i=mr(),{data:o,error:s,isLoading:a}=Ld("siteconfig",!0,3);Ne(o,c=>{c&&(i.siteConfig={...c})}),lt.isClient&&document.addEventListener("visibilitychange",()=>{r.tabVisible=document.visibilityState==="visible"||!1});function u(c){lt.isClient&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"page_view",page_title:c,page_location:window.location.href,page_path:window.location.pathname}))}return e.hooks.hook("entries:updated",c=>{lt.isClient&&setTimeout(()=>{var d;const h=e.headEntries().find(f=>f.input&&typeof f.input=="object"&&"title"in f.input),l=(d=h==null?void 0:h.input)==null?void 0:d.title;l&&l!==n.value&&(n.value=l,u(l))},0)}),xt(async()=>{o.value||await i.populateSiteConfig()}),Sc(async()=>{a.value&&!o.value?await i.populateSiteConfig():o.value&&(i.siteConfig={...o.value})}),Hm.start(),(c,h)=>{const l=r8,d=lg("RouterView");return ae(),me(Ye,null,[Ve(l),Ve(d)],64)}}}),o8=["portfolio"],s8=["/prototype/","/test/","/readme"],a8=!1;function NE(t){let e=!1;return s8.forEach(n=>{t.includes(n)&&(e=!0)}),e?a8:!0}function BE(){return(HE.filter(e=>NE(e.path||""))||[]).map(e=>({...e,props:{slug:e.path.substring(1)||"index"}}))}function l8(){const t=DE(HE);return(t==null?void 0:t.filter(e=>NE(e.path||"")))||[]}function u8(t){t.component("ProxyBlock",e8)}QH(i8,{routes:BE(),base:"/"},async t=>{const{app:e,router:n}=t;Object.values([BC,YC]).forEach(o=>{var s;return(s=o.install)==null?void 0:s.call(o,t)});const r=await d8();DE(r).forEach(o=>{n.addRoute(o)}),u8(e)});function c8(t,e){var h,l,d;const n=mr(),r="default",i=n.internalRouting(t,e.system),o=(h=l8())==null?void 0:h.find(f=>f.path===i);let s=o==null?void 0:o.component;const a=i==="/"?"/index":`${i}/index`,u=o8.includes(t)?`${i}/index`:`${i}`;if(s)return{componentTemplate:s,path:u,layout:r,pathAlias:a};const c={page:Fm,home:ME,portfolio:Dd};return s=c[(l=e==null?void 0:e.system)==null?void 0:l.type]?c[(d=e==null?void 0:e.system)==null?void 0:d.type]:Fm,{componentTemplate:s,path:u,layout:r,pathAlias:a}}async function f8(){const e=await mr().getAllRoutes();if(!e||!Array.isArray(e))return[];const n=[];return e.forEach(r=>{const i=r.elements||{},o=r.system||{};if(!i.slug||!i.slug.value)return;let s;const a=i.slug.value,u=o.type,{componentTemplate:c,path:h,layout:l,pathAlias:d}=c8(a,r);c&&(s={path:h,name:`${u}-${a}`,component:c,props:{slug:a},meta:{layout:l},alias:d},s.name&&n.push(s))}),n}async function d8(){const t=await f8(),e=BE(),n=await p8();return t.length<1?[...e,...n]:[...e,...t,...n]}function h8(t){if(!Array.isArray(t))return t;const e=[];return t.forEach(n=>{n.name&&n.terms&&n.terms.map(i=>{e.push(i.name)})}),e}async function p8(){const t=await oE("be"),n=h8(t).map(r=>({path:`/portfolio/${r}`,name:`portfolio-filter-${r}`,component:Dd,props:{slug:"portfolio",filter:r},meta:{layout:"default"}}));return n.push({path:"/portfolio/:filter(.*)",name:"portfolio-filter-404",component:Dd,props:{slug:"portfolio",filter:null},meta:{layout:"default"}}),n}export{Lt as $,i1 as A,gn as B,vi as C,xn as D,So as E,Ye as F,xt as G,Ju as H,Di as I,q5 as J,i_ as K,AE as L,di as M,Xm as N,Ii as O,wn as P,bw as Q,lt as R,je as S,DR as T,IE as U,Ow as V,PE as W,mE as X,g8 as Y,H8 as Z,_t as _,Il as a,Je as a0,gt as a1,mh as a2,ga as a3,MR as a4,Wx as a5,J3 as a6,vn as a7,v8 as a8,y8 as a9,lg as aa,_8 as ab,ow as ac,Mc as ad,Ji as ae,dH as af,uH as ag,RE as ah,IT as ai,k4 as aj,FE as ak,vE as al,Ld as am,j3 as an,sH as ao,FH as ap,CH as aq,n_ as ar,cu as as,C4 as at,L$ as au,Pl as b,lE as c,r_ as d,Ce as e,Sc as f,Vt as g,me as h,ae as i,_e as j,J as k,Ve as l,bt as m,st as n,Yd as o,Q3 as p,Pc as q,j as r,ut as s,We as t,mr as u,Kt as v,Tc as w,va as x,iO as y,Ne as z};