(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6381],{84640:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccumulateMultipartResponsesLink=void 0;let n=r(8506),i=r(43960);class o extends n.ApolloLink{constructor(e){super(),this.maxDelay=e.cutoffDelay}request(e,t){let r,n;if(!t)throw Error("This is not a terminal link!");let o=(0,i.hasDirectives)(["defer"],e.query),s=t(e);if(!o)return s;let a=this.maxDelay;return new i.Observable(e=>{let t=s.subscribe({next:e=>{r?(r.data&&"incremental"in e?r.data=(0,i.mergeIncrementalData)(r.data,e):e.data&&(r.data=e.data),e.errors&&(r.errors=[...r.errors||[],...e.errors||[]]),e.extensions&&(r.extensions=Object.assign(Object.assign({},r.extensions),e.extensions))):r=e,a?n||(n=setTimeout(o,a)):o()},error:t=>{n&&clearTimeout(n),e.error(t)},complete:()=>{n&&(clearTimeout(n),o()),e.complete()}});function o(){e.next(r),e.complete(),t.unsubscribe()}return function(){clearTimeout(n),t.unsubscribe()}})}}t.AccumulateMultipartResponsesLink=o},87516:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveMultipartDirectivesLink=void 0;let n=r(8506),i=r(43960);function o(e,t){var r,n;return null===(n=null===(r=e.arguments)||void 0===r?void 0:r.find(e=>e.name.value===t))||void 0===n?void 0:n.value}class s extends n.ApolloLink{constructor(e){super(),this.stripDirectives=[],!1!==e.stripDefer&&this.stripDirectives.push("defer")}request(e,t){if(!t)throw Error("This is not a terminal link!");let{query:r}=e,n=r;return null===(n=(0,i.removeDirectivesFromDocument)(this.stripDirectives.map(e=>({test(t){let r="Directive"===t.kind&&t.name.value===e,n=o(t,"label");return(null==n?void 0:n.kind)==="StringValue"&&n.value.startsWith("SsrDontStrip")&&(r=!1),r},remove:!0})).concat({test(e){if("Directive"!==e.kind)return!1;let t=o(e,"label");return(null==t?void 0:t.kind)==="StringValue"&&t.value.startsWith("SsrStrip")},remove:!0}),n))?i.Observable.of({}):(e.query=n,t(e))}}t.RemoveMultipartDirectivesLink=s},17578:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SSRMultipartLink=void 0;let n=r(8506),i=r(87516),o=r(84640);class s extends n.ApolloLink{constructor(e={}){super(n.ApolloLink.from([new i.RemoveMultipartDirectivesLink({stripDefer:e.stripDefer}),new o.AccumulateMultipartResponsesLink({cutoffDelay:e.cutoffDelay||0})]).request)}}t.SSRMultipartLink=s},78222:(e,t,r)=>{"use strict";t.I3=t.WJ=t.TO=void 0;var n=r(82326);Object.defineProperty(t,"TO",{enumerable:!0,get:function(){return n.ApolloNextAppProvider}});var i=r(46125);Object.defineProperty(t,"WJ",{enumerable:!0,get:function(){return i.NextSSRInMemoryCache}});var o=r(99741);Object.defineProperty(t,"I3",{enumerable:!0,get:function(){return o.NextSSRApolloClient}}),r(15390),r(17578),r(84640),r(87516),r(33715)},33715:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetNextSSRApolloSingletons=void 0;let n=r(82326),i=r(82932);t.resetNextSSRApolloSingletons=function(){delete window[i.ApolloRehydrationCache],delete window[i.ApolloResultCache],delete window[i.ApolloSSRDataTransport],delete window[i.ApolloBackgroundQueryTransport],delete window[n.ApolloClientSingleton]}},35291:e=>{var t;self,t=()=>(()=>{"use strict";var e={611:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.detectConcordiumProvider=async function(e=5e3){return new Promise((t,r)=>{if(window.concordium)t(window.concordium);else{let n=setTimeout(()=>{window.concordium?t(window.concordium):r()},e);window.addEventListener("concordium#initialized",()=>{window.concordium&&(clearTimeout(n),t(window.concordium))},{once:!0})}})}},685:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});var n={detectConcordiumProvider:!0};Object.defineProperty(t,"detectConcordiumProvider",{enumerable:!0,get:function(){return o.detectConcordiumProvider}});var i=r(740);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))});var o=r(611)},740:(e,t)=>{var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SchemaType=t.EventType=void 0,t.EventType=r,function(e){e.AccountChanged="accountChanged",e.AccountDisconnected="accountDisconnected",e.ChainChanged="chainChanged"}(r||(t.EventType=r={})),t.SchemaType=n,function(e){e.Module="module",e.Parameter="parameter"}(n||(t.SchemaType=n={}))}},t={};return function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}(685)})(),e.exports=t()},69104:function(e,t,r){var n;!function(i){"use strict";var o,s=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,a=Math.ceil,l=Math.floor,u="[BigNumber Error] ",c=u+"Number primitive has more than 15 significant digits: ",d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function h(e){var t=0|e;return e>0||e===t?t:t-1}function f(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(r=14-(t=e[n++]+"").length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function p(e,t){var r,n,i=e.c,o=t.c,s=e.s,a=t.s,l=e.e,u=t.e;if(!s||!a)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-a:s;if(s!=a)return s;if(r=s<0,n=l==u,!i||!o)return n?0:!i^r?1:-1;if(!n)return l>u^r?1:-1;for(s=0,a=(l=i.length)<(u=o.length)?l:u;s<a;s++)if(i[s]!=o[s])return i[s]>o[s]^r?1:-1;return l==u?0:l>u^r?1:-1}function m(e,t,r,n){if(e<t||e>r||e!==l(e))throw Error(u+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function v(e){var t=e.c.length-1;return h(e.e/14)==t&&e.c[t]%2!=0}function g(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function y(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(n=e.length,++t>n){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}(o=function e(t){var r,n,i,o,w,b,x,P,E,S=I.prototype={constructor:I,toString:null,valueOf:null},A=new I(1),T=20,C=4,D=-7,R=21,M=-1e7,k=1e7,F=!1,L=1,N=0,O={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},j="0123456789abcdefghijklmnopqrstuvwxyz",V=!0;function I(e,t){var r,n,i,o,a,u,d,h,f=this;if(!(f instanceof I))return new I(e,t);if(null==t){if(e&&!0===e._isBigNumber){f.s=e.s,!e.c||e.e>k?f.c=f.e=null:e.e<M?f.c=[f.e=0]:(f.e=e.e,f.c=e.c.slice());return}if((u="number"==typeof e)&&0*e==0){if(f.s=1/e<0?(e=-e,-1):1,e===~~e){for(o=0,a=e;a>=10;a/=10,o++);o>k?f.c=f.e=null:(f.e=o,f.c=[e]);return}h=String(e)}else{if(!s.test(h=String(e)))return E(f,h,u);f.s=45==h.charCodeAt(0)?(h=h.slice(1),-1):1}(o=h.indexOf("."))>-1&&(h=h.replace(".","")),(a=h.search(/e/i))>0?(o<0&&(o=a),o+=+h.slice(a+1),h=h.substring(0,a)):o<0&&(o=h.length)}else{if(m(t,2,j.length,"Base"),10==t&&V)return H(f=new I(e),T+f.e+1,C);if(h=String(e),u="number"==typeof e){if(0*e!=0)return E(f,h,u,t);if(f.s=1/e<0?(h=h.slice(1),-1):1,I.DEBUG&&h.replace(/^0\.0*|\./,"").length>15)throw Error(c+e)}else f.s=45===h.charCodeAt(0)?(h=h.slice(1),-1):1;for(r=j.slice(0,t),o=a=0,d=h.length;a<d;a++)if(0>r.indexOf(n=h.charAt(a))){if("."==n){if(a>o){o=d;continue}}else if(!i&&(h==h.toUpperCase()&&(h=h.toLowerCase())||h==h.toLowerCase()&&(h=h.toUpperCase()))){i=!0,a=-1,o=0;continue}return E(f,String(e),u,t)}u=!1,(o=(h=P(h,t,10,f.s)).indexOf("."))>-1?h=h.replace(".",""):o=h.length}for(a=0;48===h.charCodeAt(a);a++);for(d=h.length;48===h.charCodeAt(--d););if(h=h.slice(a,++d)){if(d-=a,u&&I.DEBUG&&d>15&&(e>0x1fffffffffffff||e!==l(e)))throw Error(c+f.s*e);if((o=o-a-1)>k)f.c=f.e=null;else if(o<M)f.c=[f.e=0];else{if(f.e=o,f.c=[],a=(o+1)%14,o<0&&(a+=14),a<d){for(a&&f.c.push(+h.slice(0,a)),d-=14;a<d;)f.c.push(+h.slice(a,a+=14));a=14-(h=h.slice(a)).length}else a-=d;for(;a--;h+="0");f.c.push(+h)}}else f.c=[f.e=0]}function B(e,t,r,n){var i,o,s,a,l;if(null==r?r=C:m(r,0,8),!e.c)return e.toString();if(i=e.c[0],s=e.e,null==t)l=f(e.c),l=1==n||2==n&&(s<=D||s>=R)?g(l,s):y(l,s,"0");else if(o=(e=H(new I(e),t,r)).e,a=(l=f(e.c)).length,1==n||2==n&&(t<=o||o<=D)){for(;a<t;l+="0",a++);l=g(l,o)}else if(t-=s,l=y(l,o,"0"),o+1>a){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-a)>0)for(o+1==a&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function _(e,t){for(var r,n,i=1,o=new I(e[0]);i<e.length;i++)(n=new I(e[i])).s&&(r=p(o,n))!==t&&(0!==r||o.s!==t)||(o=n);return o}function U(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+14*r-1)>k?e.c=e.e=null:r<M?e.c=[e.e=0]:(e.e=r,e.c=t),e}function H(e,t,r,n){var i,o,s,u,c,h,f,p=e.c;if(p){e:{for(i=1,u=p[0];u>=10;u/=10,i++);if((o=t-i)<0)o+=14,s=t,f=l((c=p[h=0])/d[i-s-1]%10);else if((h=a((o+1)/14))>=p.length){if(n){for(;p.length<=h;p.push(0));c=f=0,i=1,o%=14,s=o-14+1}else break e}else{for(i=1,c=u=p[h];u>=10;u/=10,i++);o%=14,f=(s=o-14+i)<0?0:l(c/d[i-s-1]%10)}if(n=n||t<0||null!=p[h+1]||(s<0?c:c%d[i-s-1]),n=r<4?(f||n)&&(0==r||r==(e.s<0?3:2)):f>5||5==f&&(4==r||n||6==r&&(o>0?s>0?c/d[i-s]:0:p[h-1])%10&1||r==(e.s<0?8:7)),t<1||!p[0])return p.length=0,n?(t-=e.e+1,p[0]=d[(14-t%14)%14],e.e=-t||0):p[0]=e.e=0,e;if(0==o?(p.length=h,u=1,h--):(p.length=h+1,u=d[14-o],p[h]=s>0?l(c/d[i-s]%d[s])*u:0),n)for(;;){if(0==h){for(o=1,s=p[0];s>=10;s/=10,o++);for(s=p[0]+=u,u=1;s>=10;s/=10,u++);o!=u&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[h]+=u,1e14!=p[h])break;p[h--]=0,u=1}for(o=p.length;0===p[--o];p.pop());}e.e>k?e.c=e.e=null:e.e<M&&(e.c=[e.e=0])}return e}function W(e){var t,r=e.e;return null===r?e.toString():(t=f(e.c),t=r<=D||r>=R?g(t,r):y(t,r,"0"),e.s<0?"-"+t:t)}return I.clone=e,I.ROUND_UP=0,I.ROUND_DOWN=1,I.ROUND_CEIL=2,I.ROUND_FLOOR=3,I.ROUND_HALF_UP=4,I.ROUND_HALF_DOWN=5,I.ROUND_HALF_EVEN=6,I.ROUND_HALF_CEIL=7,I.ROUND_HALF_FLOOR=8,I.EUCLID=9,I.config=I.set=function(e){var t,r;if(null!=e){if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(m(r=e[t],0,1e9,t),T=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(r=e[t],0,8,t),C=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(m(r[0],-1e9,0,t),m(r[1],0,1e9,t),D=r[0],R=r[1]):(m(r,-1e9,1e9,t),D=-(R=r<0?-r:r))),e.hasOwnProperty(t="RANGE")){if((r=e[t])&&r.pop)m(r[0],-1e9,-1,t),m(r[1],1,1e9,t),M=r[0],k=r[1];else if(m(r,-1e9,1e9,t),r)M=-(k=r<0?-r:r);else throw Error(u+t+" cannot be zero: "+r)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(r=e[t])===r){if(r){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))F=r;else throw F=!r,Error(u+"crypto unavailable")}else F=r}else throw Error(u+t+" not true or false: "+r)}if(e.hasOwnProperty(t="MODULO_MODE")&&(m(r=e[t],0,9,t),L=r),e.hasOwnProperty(t="POW_PRECISION")&&(m(r=e[t],0,1e9,t),N=r),e.hasOwnProperty(t="FORMAT")){if("object"==typeof(r=e[t]))O=r;else throw Error(u+t+" not an object: "+r)}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(u+t+" invalid: "+r);V="0123456789"==r.slice(0,10),j=r}}else throw Error(u+"Object expected: "+e)}return{DECIMAL_PLACES:T,ROUNDING_MODE:C,EXPONENTIAL_AT:[D,R],RANGE:[M,k],CRYPTO:F,MODULO_MODE:L,POW_PRECISION:N,FORMAT:O,ALPHABET:j}},I.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!I.DEBUG)return!0;var t,r,n=e.c,i=e.e,o=e.s;e:if("[object Array]"==({}).toString.call(n)){if((1===o||-1===o)&&i>=-1e9&&i<=1e9&&i===l(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%14)<1&&(t+=14),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=1e14||r!==l(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(u+"Invalid BigNumber: "+e)},I.maximum=I.max=function(){return _(arguments,-1)},I.minimum=I.min=function(){return _(arguments,1)},I.random=(r=0x20000000000000*Math.random()&2097151?function(){return l(0x20000000000000*Math.random())}:function(){return(0x40000000*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(e){var t,n,i,o,s,c=0,h=[],f=new I(A);if(null==e?e=T:m(e,0,1e9),o=a(e/14),F){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));c<o;)(s=131072*t[c]+(t[c+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[c]=n[0],t[c+1]=n[1]):(h.push(s%1e14),c+=2);c=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);c<o;)(s=(31&t[c])*0x1000000000000+0x10000000000*t[c+1]+0x100000000*t[c+2]+0x1000000*t[c+3]+(t[c+4]<<16)+(t[c+5]<<8)+t[c+6])>=9e15?crypto.randomBytes(7).copy(t,c):(h.push(s%1e14),c+=7);c=o/7}else throw F=!1,Error(u+"crypto unavailable")}if(!F)for(;c<o;)(s=r())<9e15&&(h[c++]=s%1e14);for(o=h[--c],e%=14,o&&e&&(s=d[14-e],h[c]=l(o/s)*s);0===h[c];h.pop(),c--);if(c<0)h=[i=0];else{for(i=-1;0===h[0];h.splice(0,1),i-=14);for(c=1,s=h[0];s>=10;s/=10,c++);c<14&&(i-=14-c)}return f.e=i,f.c=h,f}),I.sum=function(){for(var e=1,t=arguments,r=new I(t[0]);e<t.length;)r=r.plus(t[e++]);return r},P=function(){var e="0123456789";function t(e,t,r,n){for(var i,o,s=[0],a=0,l=e.length;a<l;){for(o=s.length;o--;s[o]*=t);for(s[0]+=n.indexOf(e.charAt(a++)),i=0;i<s.length;i++)s[i]>r-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/r|0,s[i]%=r)}return s.reverse()}return function(r,n,i,o,s){var a,l,u,c,d,h,p,m,v=r.indexOf("."),g=T,w=C;for(v>=0&&(c=N,N=0,r=r.replace(".",""),h=(m=new I(n)).pow(r.length-v),N=c,m.c=t(y(f(h.c),h.e,"0"),10,i,e),m.e=m.c.length),u=c=(p=t(r,n,i,s?(a=j,e):(a=e,j))).length;0==p[--c];p.pop());if(!p[0])return a.charAt(0);if(v<0?--u:(h.c=p,h.e=u,h.s=o,p=(h=x(h,m,g,w,i)).c,d=h.r,u=h.e),v=p[l=u+g+1],c=i/2,d=d||l<0||null!=p[l+1],d=w<4?(null!=v||d)&&(0==w||w==(h.s<0?3:2)):v>c||v==c&&(4==w||d||6==w&&1&p[l-1]||w==(h.s<0?8:7)),l<1||!p[0])r=d?y(a.charAt(1),-g,a.charAt(0)):a.charAt(0);else{if(p.length=l,d)for(--i;++p[--l]>i;)p[l]=0,l||(++u,p=[1].concat(p));for(c=p.length;!p[--c];);for(v=0,r="";v<=c;r+=a.charAt(p[v++]));r=y(r,u,a.charAt(0))}return r}}(),x=function(){function e(e,t,r){var n,i,o,s,a=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)n=c*(o=e[l]%1e7)+(s=e[l]/1e7|0)*u,a=((i=u*o+n%1e7*1e7+a)/r|0)+(n/1e7|0)+c*s,e[l]=i%r;return a&&(e=[a].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,o,s,a){var u,c,d,f,p,m,v,g,y,w,b,x,P,E,S,A,T,C=n.s==i.s?1:-1,D=n.c,R=i.c;if(!D||!D[0]||!R||!R[0])return new I(n.s&&i.s&&(D?!R||D[0]!=R[0]:R)?D&&0==D[0]||!R?0*C:C/0:NaN);for(y=(g=new I(C)).c=[],C=o+(c=n.e-i.e)+1,a||(a=1e14,c=h(n.e/14)-h(i.e/14),C=C/14|0),d=0;R[d]==(D[d]||0);d++);if(R[d]>(D[d]||0)&&c--,C<0)y.push(1),f=!0;else{for(E=D.length,A=R.length,d=0,C+=2,(p=l(a/(R[0]+1)))>1&&(R=e(R,p,a),D=e(D,p,a),A=R.length,E=D.length),P=A,b=(w=D.slice(0,A)).length;b<A;w[b++]=0);T=[0].concat(T=R.slice()),S=R[0],R[1]>=a/2&&S++;do{if(p=0,(u=t(R,w,A,b))<0){if(x=w[0],A!=b&&(x=x*a+(w[1]||0)),(p=l(x/S))>1)for(p>=a&&(p=a-1),v=(m=e(R,p,a)).length,b=w.length;1==t(m,w,v,b);)p--,r(m,A<v?T:R,v,a),v=m.length,u=1;else 0==p&&(u=p=1),v=(m=R.slice()).length;if(v<b&&(m=[0].concat(m)),r(w,m,b,a),b=w.length,-1==u)for(;1>t(R,w,A,b);)p++,r(w,A<b?T:R,b,a),b=w.length}else 0===u&&(p++,w=[0]);y[d++]=p,w[0]?w[b++]=D[P]||0:(w=[D[P]],b=1)}while((P++<E||null!=w[0])&&C--);f=null!=w[0],y[0]||y.splice(0,1)}if(1e14==a){for(d=1,C=y[0];C>=10;C/=10,d++);H(g,o+(g.e=d+14*c-1)+1,s,f)}else g.e=c,g.r=+f;return g}}(),n=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,o=/^\.([^.]+)$/,w=/^-?(Infinity|NaN)$/,b=/^\s*\+(?=[\w.])|^\s+|\s+$/g,E=function(e,t,r,s){var a,l=r?t:t.replace(b,"");if(w.test(l))e.s=isNaN(l)?null:l<0?-1:1;else{if(!r&&(l=l.replace(n,function(e,t,r){return a="x"==(r=r.toLowerCase())?16:"b"==r?2:8,s&&s!=a?e:t}),s&&(a=s,l=l.replace(i,"$1").replace(o,"0.$1")),t!=l))return new I(l,a);if(I.DEBUG)throw Error(u+"Not a"+(s?" base "+s:"")+" number: "+t);e.s=null}e.c=e.e=null},S.absoluteValue=S.abs=function(){var e=new I(this);return e.s<0&&(e.s=1),e},S.comparedTo=function(e,t){return p(this,new I(e,t))},S.decimalPlaces=S.dp=function(e,t){var r,n,i;if(null!=e)return m(e,0,1e9),null==t?t=C:m(t,0,8),H(new I(this),e+this.e+1,t);if(!(r=this.c))return null;if(n=((i=r.length-1)-h(this.e/14))*14,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},S.dividedBy=S.div=function(e,t){return x(this,new I(e,t),T,C)},S.dividedToIntegerBy=S.idiv=function(e,t){return x(this,new I(e,t),0,1)},S.exponentiatedBy=S.pow=function(e,t){var r,n,i,o,s,c,d,h,f,p=this;if((e=new I(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+W(e));if(null!=t&&(t=new I(t)),c=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return f=new I(Math.pow(+W(p),c?e.s*(2-v(e)):+W(e))),t?f.mod(t):f;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new I(NaN);(n=!d&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||c&&p.c[1]>=24e7:p.c[0]<8e13||c&&p.c[0]<=9999975e7)))return o=p.s<0&&v(e)?-0:0,p.e>-1&&(o=1/o),new I(d?1/o:o);N&&(o=a(N/14+2))}for(c?(r=new I(.5),d&&(e.s=1),h=v(e)):h=(i=Math.abs(+W(e)))%2,f=new I(A);;){if(h){if(!(f=f.times(p)).c)break;o?f.c.length>o&&(f.c.length=o):n&&(f=f.mod(t))}if(i){if(0===(i=l(i/2)))break;h=i%2}else if(H(e=e.times(r),e.e+1,1),e.e>14)h=v(e);else{if(0==(i=+W(e)))break;h=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):n&&(p=p.mod(t))}return n?f:(d&&(f=A.div(f)),t?f.mod(t):o?H(f,N,C,s):f)},S.integerValue=function(e){var t=new I(this);return null==e?e=C:m(e,0,8),H(t,t.e+1,e)},S.isEqualTo=S.eq=function(e,t){return 0===p(this,new I(e,t))},S.isFinite=function(){return!!this.c},S.isGreaterThan=S.gt=function(e,t){return p(this,new I(e,t))>0},S.isGreaterThanOrEqualTo=S.gte=function(e,t){return 1===(t=p(this,new I(e,t)))||0===t},S.isInteger=function(){return!!this.c&&h(this.e/14)>this.c.length-2},S.isLessThan=S.lt=function(e,t){return 0>p(this,new I(e,t))},S.isLessThanOrEqualTo=S.lte=function(e,t){return -1===(t=p(this,new I(e,t)))||0===t},S.isNaN=function(){return!this.s},S.isNegative=function(){return this.s<0},S.isPositive=function(){return this.s>0},S.isZero=function(){return!!this.c&&0==this.c[0]},S.minus=function(e,t){var r,n,i,o,s=this.s;if(t=(e=new I(e,t)).s,!s||!t)return new I(NaN);if(s!=t)return e.s=-t,this.plus(e);var a=this.e/14,l=e.e/14,u=this.c,c=e.c;if(!a||!l){if(!u||!c)return u?(e.s=-t,e):new I(c?this:NaN);if(!u[0]||!c[0])return c[0]?(e.s=-t,e):new I(u[0]?this:3==C?-0:0)}if(a=h(a),l=h(l),u=u.slice(),s=a-l){for((o=s<0)?(s=-s,i=u):(l=a,i=c),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(n=(o=(s=u.length)<(t=c.length))?s:t,s=t=0;t<n;t++)if(u[t]!=c[t]){o=u[t]<c[t];break}if(o&&(i=u,u=c,c=i,e.s=-e.s),(t=(n=c.length)-(r=u.length))>0)for(;t--;u[r++]=0);for(t=1e14-1;n>s;){if(u[--n]<c[n]){for(r=n;r&&!u[--r];u[r]=t);--u[r],u[n]+=1e14}u[n]-=c[n]}for(;0==u[0];u.splice(0,1),--l);return u[0]?U(e,u,l):(e.s=3==C?-1:1,e.c=[e.e=0],e)},S.modulo=S.mod=function(e,t){var r,n;return(e=new I(e,t),this.c&&e.s&&(!e.c||e.c[0]))?e.c&&(!this.c||this.c[0])?(9==L?(n=e.s,e.s=1,r=x(this,e,0,3),e.s=n,r.s*=n):r=x(this,e,0,L),(e=this.minus(r.times(e))).c[0]||1!=L||(e.s=this.s),e):new I(this):new I(NaN)},S.multipliedBy=S.times=function(e,t){var r,n,i,o,s,a,l,u,c,d,f,p,m,v=this.c,g=(e=new I(e,t)).c;if(!v||!g||!v[0]||!g[0])return this.s&&e.s&&(!v||v[0]||g)&&(!g||g[0]||v)?(e.s*=this.s,v&&g?(e.c=[0],e.e=0):e.c=e.e=null):e.c=e.e=e.s=null,e;for(n=h(this.e/14)+h(e.e/14),e.s*=this.s,(l=v.length)<(d=g.length)&&(m=v,v=g,g=m,i=l,l=d,d=i),i=l+d,m=[];i--;m.push(0));for(i=d;--i>=0;){for(r=0,f=g[i]%1e7,p=g[i]/1e7|0,o=i+(s=l);o>i;)a=p*(u=v[--s]%1e7)+(c=v[s]/1e7|0)*f,r=((u=f*u+a%1e7*1e7+m[o]+r)/1e14|0)+(a/1e7|0)+p*c,m[o--]=u%1e14;m[o]=r}return r?++n:m.splice(0,1),U(e,m,n)},S.negated=function(){var e=new I(this);return e.s=-e.s||null,e},S.plus=function(e,t){var r,n=this.s;if(t=(e=new I(e,t)).s,!n||!t)return new I(NaN);if(n!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,s=this.c,a=e.c;if(!i||!o){if(!s||!a)return new I(n/0);if(!s[0]||!a[0])return a[0]?e:new I(s[0]?this:0*n)}if(i=h(i),o=h(o),s=s.slice(),n=i-o){for(n>0?(o=i,r=a):(n=-n,r=s),r.reverse();n--;r.push(0));r.reverse()}for((n=s.length)-(t=a.length)<0&&(r=a,a=s,s=r,t=n),n=0;t;)n=(s[--t]=s[t]+a[t]+n)/1e14|0,s[t]=1e14===s[t]?0:s[t]%1e14;return n&&(s=[n].concat(s),++o),U(e,s,o)},S.precision=S.sd=function(e,t){var r,n,i;if(null!=e&&!!e!==e)return m(e,1,1e9),null==t?t=C:m(t,0,8),H(new I(this),e,t);if(!(r=this.c))return null;if(n=14*(i=r.length-1)+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&this.e+1>n&&(n=this.e+1),n},S.shiftedBy=function(e){return m(e,-0x1fffffffffffff,0x1fffffffffffff),this.times("1e"+e)},S.squareRoot=S.sqrt=function(){var e,t,r,n,i,o=this.c,s=this.s,a=this.e,l=T+4,u=new I("0.5");if(1!==s||!o||!o[0])return new I(!s||s<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(s=Math.sqrt(+W(this)))||s==1/0?(((t=f(o)).length+a)%2==0&&(t+="0"),s=Math.sqrt(+t),a=h((a+1)/2)-(a<0||a%2),r=new I(t=s==1/0?"5e"+a:(t=s.toExponential()).slice(0,t.indexOf("e")+1)+a)):r=new I(s+""),r.c[0]){for((s=(a=r.e)+l)<3&&(s=0);;)if(i=r,r=u.times(i.plus(x(this,i,l,1))),f(i.c).slice(0,s)===(t=f(r.c)).slice(0,s)){if(r.e<a&&--s,"9999"!=(t=t.slice(s-3,s+1))&&(n||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(H(r,r.e+T+2,1),e=!r.times(r).eq(this));break}if(!n&&(H(i,i.e+T+2,0),i.times(i).eq(this))){r=i;break}l+=4,s+=4,n=1}}return H(r,r.e+T+1,C,e)},S.toExponential=function(e,t){return null!=e&&(m(e,0,1e9),e++),B(this,e,t,1)},S.toFixed=function(e,t){return null!=e&&(m(e,0,1e9),e=e+this.e+1),B(this,e,t)},S.toFormat=function(e,t,r){var n;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=O;else if("object"!=typeof r)throw Error(u+"Argument not an object: "+r);if(n=this.toFixed(e,t),this.c){var i,o=n.split("."),s=+r.groupSize,a=+r.secondaryGroupSize,l=r.groupSeparator||"",c=o[0],d=o[1],h=this.s<0,f=h?c.slice(1):c,p=f.length;if(a&&(i=s,s=a,a=i,p-=i),s>0&&p>0){for(i=p%s||s,c=f.substr(0,i);i<p;i+=s)c+=l+f.substr(i,s);a>0&&(c+=l+f.slice(i)),h&&(c="-"+c)}n=d?c+(r.decimalSeparator||"")+((a=+r.fractionGroupSize)?d.replace(RegExp("\\d{"+a+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):d):c}return(r.prefix||"")+n+(r.suffix||"")},S.toFraction=function(e){var t,r,n,i,o,s,a,l,c,h,p,m,v=this.c;if(null!=e&&(!(a=new I(e)).isInteger()&&(a.c||1!==a.s)||a.lt(A)))throw Error(u+"Argument "+(a.isInteger()?"out of range: ":"not an integer: ")+W(a));if(!v)return new I(this);for(t=new I(A),c=r=new I(A),n=l=new I(A),m=f(v),o=t.e=m.length-this.e-1,t.c[0]=d[(s=o%14)<0?14+s:s],e=!e||a.comparedTo(t)>0?o>0?t:c:a,s=k,k=1/0,a=new I(m),l.c[0]=0;h=x(a,t,0,1),1!=(i=r.plus(h.times(n))).comparedTo(e);)r=n,n=i,c=l.plus(h.times(i=c)),l=i,t=a.minus(h.times(i=t)),a=i;return i=x(e.minus(r),n,0,1),l=l.plus(i.times(c)),r=r.plus(i.times(n)),l.s=c.s=this.s,o*=2,p=1>x(c,n,o,C).minus(this).abs().comparedTo(x(l,r,o,C).minus(this).abs())?[c,n]:[l,r],k=s,p},S.toNumber=function(){return+W(this)},S.toPrecision=function(e,t){return null!=e&&m(e,1,1e9),B(this,e,t,2)},S.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=i<=D||i>=R?g(f(r.c),i):y(f(r.c),i,"0"):10===e&&V?t=y(f((r=H(new I(r),T+i+1,C)).c),r.e,"0"):(m(e,2,j.length,"Base"),t=P(y(f(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},S.valueOf=S.toJSON=function(){return W(this)},S._isBigNumber=!0,null!=t&&I.set(t),I}()).default=o.BigNumber=o,void 0!==(n=(function(){return o}).call(t,r,t,e))&&(e.exports=n)}(0)},74948:(e,t,r)=>{var n=r(9381).stringify,i=r(39075);e.exports=function(e){return{parse:i(e),stringify:n}},e.exports.parse=i(),e.exports.stringify=n},39075:(e,t,r)=>{var n=null;let i=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/,o=/(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;e.exports=function(e){"use strict";var t={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1,protoAction:"error",constructorAction:"error"};if(null!=e){if(!0===e.strict&&(t.strict=!0),!0===e.storeAsString&&(t.storeAsString=!0),t.alwaysParseAsBig=!0===e.alwaysParseAsBig&&e.alwaysParseAsBig,t.useNativeBigInt=!0===e.useNativeBigInt&&e.useNativeBigInt,void 0!==e.constructorAction){if("error"===e.constructorAction||"ignore"===e.constructorAction||"preserve"===e.constructorAction)t.constructorAction=e.constructorAction;else throw Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${e.constructorAction}`)}if(void 0!==e.protoAction){if("error"===e.protoAction||"ignore"===e.protoAction||"preserve"===e.protoAction)t.protoAction=e.protoAction;else throw Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${e.protoAction}`)}}var s,a,l,u,c={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"	"},d=function(e){throw{name:"SyntaxError",message:e,at:s,text:l}},h=function(e){return e&&e!==a&&d("Expected '"+e+"' instead of '"+a+"'"),a=l.charAt(s),s+=1,a},f=function(){var e,i="";for("-"===a&&(i="-",h("-"));a>="0"&&a<="9";)i+=a,h();if("."===a)for(i+=".";h()&&a>="0"&&a<="9";)i+=a;if("e"===a||"E"===a)for(i+=a,h(),("-"===a||"+"===a)&&(i+=a,h());a>="0"&&a<="9";)i+=a,h();if(isFinite(e=+i))return(null==n&&(n=r(69104)),i.length>15)?t.storeAsString?i:t.useNativeBigInt?BigInt(i):new n(i):t.alwaysParseAsBig?t.useNativeBigInt?BigInt(e):new n(e):e;d("Bad number")},p=function(){var e,t,r,n="";if('"'===a)for(var i=s;h();){if('"'===a)return s-1>i&&(n+=l.substring(i,s-1)),h(),n;if("\\"===a){if(s-1>i&&(n+=l.substring(i,s-1)),h(),"u"===a){for(t=0,r=0;t<4&&isFinite(e=parseInt(h(),16));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else if("string"==typeof c[a])n+=c[a];else break;i=s}}d("Bad string")},m=function(){for(;a&&a<=" ";)h()},v=function(){switch(a){case"t":return h("t"),h("r"),h("u"),h("e"),!0;case"f":return h("f"),h("a"),h("l"),h("s"),h("e"),!1;case"n":return h("n"),h("u"),h("l"),h("l"),null}d("Unexpected '"+a+"'")},g=function(){var e=[];if("["===a){if(h("["),m(),"]"===a)return h("]"),e;for(;a;){if(e.push(u()),m(),"]"===a)return h("]"),e;h(","),m()}}d("Bad array")},y=function(){var e,r=Object.create(null);if("{"===a){if(h("{"),m(),"}"===a)return h("}"),r;for(;a;){if(e=p(),m(),h(":"),!0===t.strict&&Object.hasOwnProperty.call(r,e)&&d('Duplicate key "'+e+'"'),!0===i.test(e)?"error"===t.protoAction?d("Object contains forbidden prototype property"):"ignore"===t.protoAction?u():r[e]=u():!0===o.test(e)?"error"===t.constructorAction?d("Object contains forbidden constructor property"):"ignore"===t.constructorAction?u():r[e]=u():r[e]=u(),m(),"}"===a)return h("}"),r;h(","),m()}}d("Bad object")};return u=function(){switch(m(),a){case"{":return y();case"[":return g();case'"':return p();case"-":return f();default:return a>="0"&&a<="9"?f():v()}},function(e,t){var r;return l=e+"",s=0,a=" ",r=u(),m(),a&&d("Syntax error"),"function"==typeof t?function e(r,n){var i,o=r[n];return o&&"object"==typeof o&&Object.keys(o).forEach(function(t){void 0!==(i=e(o,t))?o[t]=i:delete o[t]}),t.call(r,n,o)}({"":r},""):r}}},9381:(e,t,r)=>{var n=r(69104),i=e.exports;!function(){"use strict";var e,t,r,o=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b","	":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function a(e){return o.lastIndex=0,o.test(e)?'"'+e.replace(o,function(e){var t=s[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}"function"!=typeof i.stringify&&(i.stringify=function(i,o,s){var l;if(e="",t="","number"==typeof s)for(l=0;l<s;l+=1)t+=" ";else"string"==typeof s&&(t=s);if(r=o,o&&"function"!=typeof o&&("object"!=typeof o||"number"!=typeof o.length))throw Error("JSON.stringify");return function i(o,s){var l,u,c,d,h,f=e,p=s[o],m=null!=p&&(p instanceof n||n.isBigNumber(p));switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(o)),"function"==typeof r&&(p=r.call(s,o,p)),typeof p){case"string":if(m)return p;return a(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":case"bigint":return String(p);case"object":if(!p)return"null";if(e+=t,h=[],"[object Array]"===Object.prototype.toString.apply(p)){for(l=0,d=p.length;l<d;l+=1)h[l]=i(l,p)||"null";return c=0===h.length?"[]":e?"[\n"+e+h.join(",\n"+e)+"\n"+f+"]":"["+h.join(",")+"]",e=f,c}if(r&&"object"==typeof r)for(l=0,d=r.length;l<d;l+=1)"string"==typeof r[l]&&(c=i(u=r[l],p))&&h.push(a(u)+(e?": ":":")+c);else Object.keys(p).forEach(function(t){var r=i(t,p);r&&h.push(a(t)+(e?": ":":")+r)});return c=0===h.length?"{}":e?"{\n"+e+h.join(",\n"+e)+"\n"+f+"}":"{"+h.join(",")+"}",e=f,c}}("",{"":i})})}()},80727:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(72300);let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&r.indexOf(e)===t).join(" ")};var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:u="",children:c,iconNode:d,...h}=e;return(0,n.createElement)("svg",{ref:t,...s,width:i,height:i,stroke:r,strokeWidth:l?24*Number(a)/Number(i):a,className:o("lucide",u),...h},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),l=(e,t)=>{let r=(0,n.forwardRef)((r,s)=>{let{className:l,...u}=r;return(0,n.createElement)(a,{ref:s,iconNode:t,className:o("lucide-".concat(i(e)),l),...u})});return r.displayName="".concat(e),r}},49148:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(80727).A)("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]])},3243:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(80727).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},91291:e=>{e.exports={style:{fontFamily:"'Source Sans 3', 'Source Sans 3 Fallback'",fontStyle:"normal"},className:"__className_fd76fa",variable:"__variable_fd76fa"}},66077:(e,t,r)=>{"use strict";r.d(t,{o:()=>s});var n=r(17547),i=r(86589),o=r(36021);function s(e){return new i.C(function(t,r){var i=(0,n.Tt)(t,[]);return new o.c(function(n){var o,s=!1;return Promise.resolve(i).then(function(r){return e(r,t.getContext())}).then(t.setContext).then(function(){s||(o=r(t).subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}))}).catch(n.error.bind(n)),function(){s=!0,o&&o.unsubscribe()}})})}},43960:(e,t,r)=>{"use strict";r.r(t),r.d(t,{AutoCleanedStrongCache:()=>W.V,AutoCleanedWeakCache:()=>W.A,Concast:()=>D.E,DEV:()=>n.IJ,DeepMerger:()=>v.ZI,DocumentTransform:()=>o.c,Observable:()=>P.c,addTypenameToDocument:()=>c.XY,argumentsObjectFromField:()=>u.MB,asyncMap:()=>C.x,buildQueryFromSelectionSet:()=>c.zc,cacheSizes:()=>$.v,canUseAsyncIteratorSymbol:()=>L.uJ,canUseDOM:()=>L.Sw,canUseLayoutEffect:()=>L.JR,canUseSymbol:()=>L.ol,canUseWeakMap:()=>L.et,canUseWeakSet:()=>L.En,canonicalStringify:()=>B.M,checkDocument:()=>a.sw,cloneDeep:()=>S.m,compact:()=>N.o,concatPagination:()=>g,createFragmentMap:()=>s.JG,createFulfilledPromise:()=>E.$D,createRejectedPromise:()=>E.Il,fixObservableSubclass:()=>R.r,getDefaultValues:()=>a.wY,getDirectiveNames:()=>i.sx,getFragmentDefinition:()=>a.E4,getFragmentDefinitions:()=>a.zK,getFragmentFromSelection:()=>s.HQ,getFragmentQueryDocument:()=>s.ct,getGraphQLErrorsFromResult:()=>F.M,getInclusionDirectives:()=>i.tY,getMainDefinition:()=>a.Vn,getOperationDefinition:()=>a.Vu,getOperationName:()=>a.n4,getQueryDefinition:()=>a.AT,getStoreKeyName:()=>u.o5,getTypenameFromResult:()=>u.D$,graphQLResultHasError:()=>F.t,hasAllDirectives:()=>i.I5,hasAnyDirectives:()=>i.hE,hasClientExports:()=>i.f2,hasDirectives:()=>i.d8,isApolloPayloadResult:()=>I.Nw,isArray:()=>M.c,isDocumentNode:()=>u.Kc,isExecutionPatchIncrementalResult:()=>I.ST,isExecutionPatchInitialResult:()=>I.EQ,isExecutionPatchResult:()=>I.YX,isField:()=>u.dt,isInlineFragment:()=>u.kd,isMutationOperation:()=>h,isNonEmptyArray:()=>M.E,isNonNullObject:()=>k.U,isPlainObject:()=>k.Q,isQueryOperation:()=>f,isReference:()=>u.A_,isStatefulPromise:()=>E.Sz,isSubscriptionOperation:()=>p,iterateObserversSafely:()=>T.w,makeReference:()=>u.WU,makeUniqueId:()=>O.v,maybe:()=>n.no,maybeDeepFreeze:()=>A.G,mergeDeep:()=>v.D9,mergeDeepArray:()=>v.IM,mergeIncrementalData:()=>I.bd,mergeOptions:()=>V.l,offsetLimitPagination:()=>y,omitDeep:()=>_,print:()=>l.y,relayStylePagination:()=>w,removeArgumentsFromDocument:()=>c.it,removeClientSetsFromDocument:()=>c.er,removeConnectionDirectiveFromDocument:()=>c.hX,removeDirectivesFromDocument:()=>c.iz,removeFragmentSpreadFromDocument:()=>c.TC,resultKeyNameFromField:()=>u.ue,shouldInclude:()=>i.MS,storeKeyNameFromField:()=>u.Ii,stringifyForDisplay:()=>j.p,stripTypename:()=>H,valueToObjectRepresentation:()=>u.J,wrapPromiseWithState:()=>E.zq});var n=r(74614),i=r(15091),o=r(48120),s=r(83518),a=r(40025),l=r(80196),u=r(29571),c=r(82743);function d(e,t){var r;return(null===(r=(0,a.Vu)(e))||void 0===r?void 0:r.operation)===t}function h(e){return d(e,"mutation")}function f(e){return d(e,"query")}function p(e){return d(e,"subscription")}var m=r(17547),v=r(61699);function g(e){return void 0===e&&(e=!1),{keyArgs:e,merge:function(e,t){return e?(0,m.fX)((0,m.fX)([],e,!0),t,!0):t}}}function y(e){return void 0===e&&(e=!1),{keyArgs:e,merge:function(e,t,r){var n=r.args,i=e?e.slice(0):[];if(t){if(n)for(var o=n.offset,s=void 0===o?0:o,a=0;a<t.length;++a)i[s+a]=t[a];else i.push.apply(i,t)}return i}}}function w(e){return void 0===e&&(e=!1),{keyArgs:e,read:function(e,t){var r=t.canRead,n=t.readField;if(!e)return e;var i=[],o="",s="";e.edges.forEach(function(e){r(n("node",e))&&(i.push(e),e.cursor&&(o=o||e.cursor||"",s=e.cursor||s))}),i.length>1&&o===s&&(o="");var a=e.pageInfo||{},l=a.startCursor,u=a.endCursor;return(0,m.Cl)((0,m.Cl)({},b(e)),{edges:i,pageInfo:(0,m.Cl)((0,m.Cl)({},e.pageInfo),{startCursor:l||o,endCursor:u||s})})},merge:function(e,t,r){var n=r.args,i=r.isReference,o=r.readField;if(e||(e={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}),!t)return e;var s=t.edges?t.edges.map(function(e){return i(e=(0,m.Cl)({},e))&&(e.cursor=o("cursor",e)),e}):[];if(t.pageInfo){var a=t.pageInfo,l=a.startCursor,u=a.endCursor,c=s[0],d=s[s.length-1];c&&l&&(c.cursor=l),d&&u&&(d.cursor=u);var h=c&&c.cursor;h&&!l&&(t=(0,v.D9)(t,{pageInfo:{startCursor:h}}));var f=d&&d.cursor;f&&!u&&(t=(0,v.D9)(t,{pageInfo:{endCursor:f}}))}var p=e.edges,g=[];if(n&&n.after){var y=p.findIndex(function(e){return e.cursor===n.after});y>=0&&(p=p.slice(0,y+1))}else if(n&&n.before){var y=p.findIndex(function(e){return e.cursor===n.before});g=y<0?p:p.slice(y),p=[]}else t.edges&&(p=[]);var w=(0,m.fX)((0,m.fX)((0,m.fX)([],p,!0),s,!0),g,!0),x=(0,m.Cl)((0,m.Cl)({},t.pageInfo),e.pageInfo);if(t.pageInfo){var P=t.pageInfo,E=P.hasPreviousPage,S=P.hasNextPage,l=P.startCursor,u=P.endCursor;Object.assign(x,(0,m.Tt)(P,["hasPreviousPage","hasNextPage","startCursor","endCursor"])),p.length||(void 0!==E&&(x.hasPreviousPage=E),void 0===l||(x.startCursor=l)),g.length||(void 0!==S&&(x.hasNextPage=S),void 0===u||(x.endCursor=u))}return(0,m.Cl)((0,m.Cl)((0,m.Cl)({},b(e)),b(t)),{edges:w,pageInfo:x})}}}var b=function(e){return(0,m.Tt)(e,x)},x=["edges","pageInfo"],P=r(36021),E=r(96112),S=r(91214),A=r(71172),T=r(70055),C=r(81994),D=r(74067),R=r(51058),M=r(74637),k=r(7489),F=r(71958),L=r(91370),N=r(86576),O=r(76123),j=r(94227),V=r(86665),I=r(94972),B=r(44020);function _(e,t){return U(e,t)}function U(e,t,r){if(void 0===r&&(r=new Map),r.has(e))return r.get(e);var n=!1;if(Array.isArray(e)){var i=[];if(r.set(e,i),e.forEach(function(e,o){var s=U(e,t,r);n||(n=s!==e),i[o]=s}),n)return i}else if((0,k.Q)(e)){var o=Object.create(Object.getPrototypeOf(e));if(r.set(e,o),Object.keys(e).forEach(function(i){if(i===t){n=!0;return}var s=U(e[i],t,r);n||(n=s!==e[i]),o[i]=s}),n)return o}return e}function H(e){return U(e,"__typename")}var W=r(4294),$=r(59221)},60612:(e,t,r)=>{"use strict";r.d(t,{Iw:()=>n,L$:()=>i});let n=e=>{if(e.byteLength>65535)throw Error("Serialized parameter exceeds max length of smart contract parameter (65535 bytes)")};function i(e){for(let t=0;t<e.length;t++){let r=e.charCodeAt(t);if((!(32<=r)||!(r<=47))&&(!(48<=r)||!(r<=57))&&(!(58<=r)||!(r<=64))&&(!(65<=r)||!(r<=90))&&(!(91<=r)||!(r<=96))&&(!(97<=r)||!(r<=122))&&(!(123<=r)||!(r<=126)))return!1}return!0}},53652:(e,t,r)=>{"use strict";r.d(t,{oS:()=>d});var n=r(30422),i=r(74050),o=r(74948),s=r(7798),a=r(85262),l=r(60612);let u=r(7267).Rt.Parameter;class c{constructor(e){this.buffer=e,this.__type=u}}function d(e,t,r,u,h,f=!1){var p;let m=n.serializeReceiveContractParameters(o.stringify(r),i.hp.from(u).toString("hex"),s.dI(e),a.dI(t),h,f);return p=i.hp.from(m,"hex"),(0,l.Iw)(p),new c(new Uint8Array(p))}},63990:(e,t,r)=>{"use strict";var n,i,o,s,a,l,u,c,d,h,f,p,m,v,g,y,w;r.d(t,{wL:()=>g}),function(e){e[e.firstName=0]="firstName",e[e.lastName=1]="lastName",e[e.sex=2]="sex",e[e.dob=3]="dob",e[e.countryOfResidence=4]="countryOfResidence",e[e.nationality=5]="nationality",e[e.idDocType=6]="idDocType",e[e.idDocNo=7]="idDocNo",e[e.idDocIssuer=8]="idDocIssuer",e[e.idDocIssuedAt=9]="idDocIssuedAt",e[e.idDocExpiresAt=10]="idDocExpiresAt",e[e.nationalIdNo=11]="nationalIdNo",e[e.taxIdNo=12]="taxIdNo"}(n||(n={})),function(e){e.firstName="firstName",e.lastName="lastName",e.sex="sex",e.dob="dob",e.countryOfResidence="countryOfResidence",e.nationality="nationality",e.idDocType="idDocType",e.idDocNo="idDocNo",e.idDocIssuer="idDocIssuer",e.idDocIssuedAt="idDocIssuedAt",e.idDocExpiresAt="idDocExpiresAt",e.nationalIdNo="nationalIdNo",e.taxIdNo="taxIdNo"}(i||(i={})),function(e){e.NotKnown="0",e.Male="1",e.Female="2",e.NA="9"}(o||(o={})),function(e){e.NA="0",e.Passport="1",e.NationalIdCard="2",e.DriversLicense="3",e.ImmigrationCard="4"}(s||(s={})),function(e){e.Received="received",e.Finalized="finalized",e.Committed="committed"}(a||(a={})),function(e){e.AccountTransaction="accountTransaction",e.CredentialDeploymentTransaction="credentialDeploymentTransaction",e.AccountCreation="accountCreation",e.UpdateTransaction="updateTransaction"}(l||(l={})),function(e){e.ReduceStake="ReduceStake",e.RemoveStake="RemoveStake"}(u||(u={})),function(e){e[e.OpenForAll=0]="OpenForAll",e[e.ClosedForNew=1]="ClosedForNew",e[e.ClosedForAll=2]="ClosedForAll"}(c||(c={})),function(e){e.OpenForAll="openForAll",e.ClosedForNew="closedForNew",e.ClosedForAll="closedForAll"}(d||(d={})),function(e){e.ReduceBakerCapital="ReduceBakerCapital",e.RemovePool="RemovePool",e.NoChange="NoChange"}(h||(h={})),function(e){e.BakerPool="BakerPool",e.PassiveDelegation="PassiveDelegation"}(f||(f={})),function(e){e.PassiveDelegation="Passive",e.Baker="Baker"}(p||(p={})),function(e){e.Simple="simple",e.Baker="baker",e.Delegator="delegator"}(m||(m={})),function(e){e[e.AccountTransactionKind=0]="AccountTransactionKind",e[e.CredentialDeploymentKind=1]="CredentialDeploymentKind",e[e.UpdateInstructionKind=2]="UpdateInstructionKind"}(v||(v={})),function(e){e[e.DeployModule=0]="DeployModule",e[e.InitContract=1]="InitContract",e[e.Update=2]="Update",e[e.Transfer=3]="Transfer",e[e.AddBaker=4]="AddBaker",e[e.RemoveBaker=5]="RemoveBaker",e[e.UpdateBakerStake=6]="UpdateBakerStake",e[e.UpdateBakerRestakeEarnings=7]="UpdateBakerRestakeEarnings",e[e.UpdateBakerKeys=8]="UpdateBakerKeys",e[e.UpdateCredentialKeys=13]="UpdateCredentialKeys",e[e.EncryptedAmountTransfer=16]="EncryptedAmountTransfer",e[e.TransferToEncrypted=17]="TransferToEncrypted",e[e.TransferToPublic=18]="TransferToPublic",e[e.TransferWithSchedule=19]="TransferWithSchedule",e[e.UpdateCredentials=20]="UpdateCredentials",e[e.RegisterData=21]="RegisterData",e[e.TransferWithMemo=22]="TransferWithMemo",e[e.EncryptedAmountTransferWithMemo=23]="EncryptedAmountTransferWithMemo",e[e.TransferWithScheduleAndMemo=24]="TransferWithScheduleAndMemo",e[e.ConfigureBaker=25]="ConfigureBaker",e[e.ConfigureDelegation=26]="ConfigureDelegation"}(g||(g={})),function(e){e[e.V0=0]="V0",e[e.V1=1]="V1"}(y||(y={})),function(e){e[e.V0=0]="V0",e[e.V1=1]="V1",e[e.V2=2]="V2"}(w||(w={}))},53576:(e,t,r)=>{"use strict";r.d(t,{$V:()=>v});var n="[big.js] ",i=n+"Invalid ",o=i+"decimal places",s=i+"rounding mode",a=n+"Division by zero",l={},u=void 0,c=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function d(e,t,r,n){var i=e.c;if(r===u&&(r=e.constructor.RM),0!==r&&1!==r&&2!==r&&3!==r)throw Error(s);if(t<1)n=3===r&&(n||!!i[0])||0===t&&(1===r&&i[0]>=5||2===r&&(i[0]>5||5===i[0]&&(n||i[1]!==u))),i.length=1,n?(e.e=e.e-t+1,i[0]=1):i[0]=e.e=0;else if(t<i.length){if(n=1===r&&i[t]>=5||2===r&&(i[t]>5||5===i[t]&&(n||i[t+1]!==u||1&i[t-1]))||3===r&&(n||!!i[0]),i.length=t,n){for(;++i[--t]>9;)if(i[t]=0,0===t){++e.e,i.unshift(1);break}}for(t=i.length;!i[--t];)i.pop()}return e}function h(e,t,r){var n=e.e,i=e.c.join(""),o=i.length;if(t)i=i.charAt(0)+(o>1?"."+i.slice(1):"")+(n<0?"e":"e+")+n;else if(n<0){for(;++n;)i="0"+i;i="0."+i}else if(n>0){if(++n>o)for(n-=o;n--;)i+="0";else n<o&&(i=i.slice(0,n)+"."+i.slice(n))}else o>1&&(i=i.charAt(0)+"."+i.slice(1));return e.s<0&&r?"-"+i:i}l.abs=function(){var e=new this.constructor(this);return e.s=1,e},l.cmp=function(e){var t,r=this.c,n=(e=new this.constructor(e)).c,i=this.s,o=e.s,s=this.e,a=e.e;if(!r[0]||!n[0])return r[0]?i:n[0]?-o:0;if(i!=o)return i;if(t=i<0,s!=a)return s>a^t?1:-1;for(i=-1,o=(s=r.length)<(a=n.length)?s:a;++i<o;)if(r[i]!=n[i])return r[i]>n[i]^t?1:-1;return s==a?0:s>a^t?1:-1},l.div=function(e){var t=this.constructor,r=this.c,n=(e=new t(e)).c,i=this.s==e.s?1:-1,s=t.DP;if(s!==~~s||s<0||s>1e6)throw Error(o);if(!n[0])throw Error(a);if(!r[0])return e.s=i,e.c=[e.e=0],e;var l,c,h,f,p,m=n.slice(),v=l=n.length,g=r.length,y=r.slice(0,l),w=y.length,b=e,x=b.c=[],P=0,E=s+(b.e=this.e-e.e)+1;for(b.s=i,i=E<0?0:E,m.unshift(0);w++<l;)y.push(0);do{for(h=0;h<10;h++){if(l!=(w=y.length))f=l>w?1:-1;else for(p=-1,f=0;++p<l;)if(n[p]!=y[p]){f=n[p]>y[p]?1:-1;break}if(f<0){for(c=w==l?n:m;w;){if(y[--w]<c[w]){for(p=w;p&&!y[--p];)y[p]=9;--y[p],y[w]+=10}y[w]-=c[w]}for(;!y[0];)y.shift()}else break}x[P++]=f?h:++h,y[0]&&f?y[w]=r[v]||0:y=[r[v]]}while((v++<g||y[0]!==u)&&i--);return!x[0]&&1!=P&&(x.shift(),b.e--,E--),P>E&&d(b,E,t.RM,y[0]!==u),b},l.eq=function(e){return 0===this.cmp(e)},l.gt=function(e){return this.cmp(e)>0},l.gte=function(e){return this.cmp(e)>-1},l.lt=function(e){return 0>this.cmp(e)},l.lte=function(e){return 1>this.cmp(e)},l.minus=l.sub=function(e){var t,r,n,i,o=this.constructor,s=this.s,a=(e=new o(e)).s;if(s!=a)return e.s=-a,this.plus(e);var l=this.c.slice(),u=this.e,c=e.c,d=e.e;if(!l[0]||!c[0])return c[0]?e.s=-a:l[0]?e=new o(this):e.s=1,e;if(s=u-d){for((i=s<0)?(s=-s,n=l):(d=u,n=c),n.reverse(),a=s;a--;)n.push(0);n.reverse()}else for(r=((i=l.length<c.length)?l:c).length,s=a=0;a<r;a++)if(l[a]!=c[a]){i=l[a]<c[a];break}if(i&&(n=l,l=c,c=n,e.s=-e.s),(a=(r=c.length)-(t=l.length))>0)for(;a--;)l[t++]=0;for(a=t;r>s;){if(l[--r]<c[r]){for(t=r;t&&!l[--t];)l[t]=9;--l[t],l[r]+=10}l[r]-=c[r]}for(;0===l[--a];)l.pop();for(;0===l[0];)l.shift(),--d;return l[0]||(e.s=1,l=[d=0]),e.c=l,e.e=d,e},l.mod=function(e){var t,r=this,n=r.constructor,i=r.s,o=(e=new n(e)).s;if(!e.c[0])throw Error(a);return(r.s=e.s=1,t=1==e.cmp(r),r.s=i,e.s=o,t)?new n(r):(i=n.DP,o=n.RM,n.DP=n.RM=0,r=r.div(e),n.DP=i,n.RM=o,this.minus(r.times(e)))},l.neg=function(){var e=new this.constructor(this);return e.s=-e.s,e},l.plus=l.add=function(e){var t,r,n,i=this.constructor;if(e=new i(e),this.s!=e.s)return e.s=-e.s,this.minus(e);var o=this.e,s=this.c,a=e.e,l=e.c;if(!s[0]||!l[0])return l[0]||(s[0]?e=new i(this):e.s=this.s),e;if(s=s.slice(),t=o-a){for(t>0?(a=o,n=l):(t=-t,n=s),n.reverse();t--;)n.push(0);n.reverse()}for(s.length-l.length<0&&(n=l,l=s,s=n),t=l.length,r=0;t;s[t]%=10)r=(s[--t]=s[t]+l[t]+r)/10|0;for(r&&(s.unshift(r),++a),t=s.length;0===s[--t];)s.pop();return e.c=s,e.e=a,e},l.pow=function(e){var t=this,r=new t.constructor("1"),n=r,o=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(i+"exponent");for(o&&(e=-e);1&e&&(n=n.times(t)),e>>=1;)t=t.times(t);return o?r.div(n):n},l.prec=function(e,t){if(e!==~~e||e<1||e>1e6)throw Error(i+"precision");return d(new this.constructor(this),e,t)},l.round=function(e,t){if(e===u)e=0;else if(e!==~~e||e<-1e6||e>1e6)throw Error(o);return d(new this.constructor(this),e+this.e+1,t)},l.sqrt=function(){var e,t,r,i=this.constructor,o=this.s,s=this.e,a=new i("0.5");if(!this.c[0])return new i(this);if(o<0)throw Error(n+"No square root");0===(o=Math.sqrt(this+""))||o===1/0?((t=this.c.join("")).length+s&1||(t+="0"),s=((s+1)/2|0)-(s<0||1&s),e=new i(((o=Math.sqrt(t))==1/0?"5e":(o=o.toExponential()).slice(0,o.indexOf("e")+1))+s)):e=new i(o+""),s=e.e+(i.DP+=4);do r=e,e=a.times(r.plus(this.div(r)));while(r.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return d(e,(i.DP-=4)+e.e+1,i.RM)},l.times=l.mul=function(e){var t,r=this.constructor,n=this.c,i=(e=new r(e)).c,o=n.length,s=i.length,a=this.e,l=e.e;if(e.s=this.s==e.s?1:-1,!n[0]||!i[0])return e.c=[e.e=0],e;for(e.e=a+l,o<s&&(t=n,n=i,i=t,l=o,o=s,s=l),t=Array(l=o+s);l--;)t[l]=0;for(a=s;a--;){for(s=0,l=o+a;l>a;)s=t[l]+i[a]*n[l-a-1]+s,t[l--]=s%10,s=s/10|0;t[l]=s}for(s?++e.e:t.shift(),a=t.length;!t[--a];)t.pop();return e.c=t,e},l.toExponential=function(e,t){var r=this,n=r.c[0];if(e!==u){if(e!==~~e||e<0||e>1e6)throw Error(o);for(r=d(new r.constructor(r),++e,t);r.c.length<e;)r.c.push(0)}return h(r,!0,!!n)},l.toFixed=function(e,t){var r=this,n=r.c[0];if(e!==u){if(e!==~~e||e<0||e>1e6)throw Error(o);for(r=d(new r.constructor(r),e+r.e+1,t),e=e+r.e+1;r.c.length<e;)r.c.push(0)}return h(r,!1,!!n)},l[Symbol.for("nodejs.util.inspect.custom")]=l.toJSON=l.toString=function(){var e=this.constructor;return h(this,this.e<=e.NE||this.e>=e.PE,!!this.c[0])},l.toNumber=function(){var e=Number(h(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(e.toString()))throw Error(n+"Imprecise conversion");return e},l.toPrecision=function(e,t){var r=this,n=r.constructor,o=r.c[0];if(e!==u){if(e!==~~e||e<1||e>1e6)throw Error(i+"precision");for(r=d(new n(r),e,t);r.c.length<e;)r.c.push(0)}return h(r,e<=r.e||r.e<=n.NE||r.e>=n.PE,!!o)},l.valueOf=function(){var e=this.constructor;if(!0===e.strict)throw Error(n+"valueOf disallowed");return h(this,this.e<=e.NE||this.e>=e.PE,!0)};var f=function e(){function t(r){if(!(this instanceof t))return r===u?e():new t(r);if(r instanceof t)this.s=r.s,this.e=r.e,this.c=r.c.slice();else{if("string"!=typeof r){if(!0===t.strict&&"bigint"!=typeof r)throw TypeError(i+"value");r=0===r&&1/r<0?"-0":String(r)}!function(e,t){var r,n,o;if(!c.test(t))throw Error(i+"number");for(e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),o=t.length,n=0;n<o&&"0"==t.charAt(n);)++n;if(n==o)e.c=[e.e=0];else{for(;o>0&&"0"==t.charAt(--o););for(e.e=r-n-1,e.c=[],r=0;n<=o;)e.c[r++]=+t.charAt(n++)}}(this,r)}this.constructor=t}return t.prototype=l,t.DP=20,t.RM=1,t.NE=-7,t.PE=21,t.strict=!1,t.roundDown=0,t.roundHalfUp=1,t.roundHalfEven=2,t.roundUp=3,t}();let p=r(7267).Rt.CcdAmount;class m{constructor(e){this.microCcdAmount=e,this.__type=p}toJSON(){return this.microCcdAmount.toString()}}function v(e){return"bigint"==typeof e&&(e=e.toString()),function(e){if("bigint"!=typeof e){if(!(e=g(e)).mod(f(1)).eq(f(0)))throw Error("Can not create CcdAmount from a non-whole number!");e=BigInt(e.toFixed())}if(e<0n)throw Error("A micro CCD amount must be a non-negative integer but was: "+e);if(e>0xffffffffffffffffn)throw Error("A micro CCD amount must be representable as an unsigned 64 bit integer but was: "+e);return new m(e)}(g(e).mul(f(1e6)))}function g(e){return"string"==typeof e?f(e.replace(",",".")):f(e)}},7798:(e,t,r)=>{"use strict";r.d(t,{dI:()=>a,sH:()=>s});var n=r(60612);let i=r(7267).Rt.ContractName;class o{constructor(e){this.value=e,this.__type=i}}function s(e){if(e.length>95)throw Error("Invalid ContractName: Can be atmost 95 characters long.");if(e.includes("."))throw Error("Invalid ContractName: Must not contain a '.' character.");if(!(0,n.L$)(e))throw Error("Invalid ContractName: Must only contain ASCII alpha, numeric and punctuation characters.");return new o(e)}function a(e){return e.value}},85262:(e,t,r)=>{"use strict";r.d(t,{dI:()=>a,sH:()=>s});var n=r(60612);let i=r(7267).Rt.EntrypointName;class o{get serializable(){return this.value}constructor(e){this.value=e,this.__type=i}}function s(e){if(e.length>99)throw Error("Invalid EntrypointName: Can be atmost 99 characters long.");if(!(0,n.L$)(e))throw Error("Invalid EntrypointName: Must only contain ASCII alpha, numeric and punctuation characters.");return new o(e)}function a(e){return e.value}},7267:(e,t,r)=>{"use strict";var n,i;r.d(t,{Rt:()=>n}),function(e){e.AccountAddress="ccd_account_address",e.BlockHash="ccd_block_hash",e.CcdAmount="ccd_ccd_amount",e.ContractAddress="ccd_contract_address",e.ContractName="ccd_contract_name",e.CredentialRegistrationId="ccd_cred_reg_id",e.DataBlob="ccd_data_blob",e.Duration="ccd_duration",e.Energy="ccd_energy",e.EntrypointName="ccd_entrypoint_name",e.InitName="ccd_init_name",e.ModuleReference="ccd_module_reference",e.Parameter="ccd_parameter",e.ReceiveName="ccd_receive_name",e.ReturnValue="ccd_return_value",e.SequenceNumber="ccd_sequence_number",e.Timestamp="ccd_timestamp",e.TransactionExpiry="ccd_transaction_expiry",e.TransactionHash="ccd_transaction_hash"}(n||(n={})),function(e){e.MALFORMED="MALFORMED",e.WRONG_TYPE="WRONG_TYPE",e.INVALID_VALUE="INVALID_VALUE"}(i||(i={}))},80098:(e,t,r)=>{"use strict";r.d(t,{l:()=>ew});var n,i=r(72300),o=r.t(i,2),s=r(14907),a=r(85470),l=r(86325),u=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(u||{}),c=r(32659),d=r(92913),h=r(83373);let f=null!=(n=i.useId)?n:function(){let e=(0,d.g)(),[t,r]=i.useState(e?()=>h._.nextId():null);return(0,c.s)(()=>{null===t&&r(h._.nextId())},[t]),null!=t?""+t:void 0};var p=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(p||{});let m=(0,a.FX)(function(e,t){let{features:r=1,...n}=e,i={ref:t,"aria-hidden":(2&r)==2||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&r)==4&&(2&r)!=2&&{display:"none"}}};return(0,a.XX)({ourProps:i,theirProps:n,slot:{},defaultTag:"div",name:"Hidden"})});function v(e){return h._.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let g=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var y=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(y||{}),w=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(w||{}),b=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(b||{}),x=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(x||{}),P=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(P||{});function E(e){null==e||e.focus({preventScroll:!0})}function S(e,t){var r,n,i;let{sorted:o=!0,relativeTo:s=null,skipElements:a=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,u=Array.isArray(e)?o?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,r)=>{let n=t(e),i=t(r);if(null===n||null===i)return 0;let o=n.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}(e):e:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(g)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e);a.length>0&&u.length>1&&(u=u.filter(e=>!a.includes(e))),s=null!=s?s:l.activeElement;let c=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,u.indexOf(s))-1;if(4&t)return Math.max(0,u.indexOf(s))+1;if(8&t)return u.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),h=32&t?{preventScroll:!0}:{},f=0,p=u.length,m;do{if(f>=p||f+p<=0)return 0;let e=d+f;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}null==(m=u[e])||m.focus(h),f+=c}while(m!==l.activeElement);return 6&t&&null!=(i=null==(n=null==(r=m)?void 0:r.matches)?void 0:n.call(r,"textarea,input"))&&i&&m.select(),2}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));var A=r(49041),T=r(60452);function C(e,t,r){let n=(0,T.Y)(t);(0,i.useEffect)(()=>{function t(e){n.current(e)}return window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)},[e,r])}var D=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(D||{}),R=r(94358);function M(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,i.useMemo)(()=>v(...t),[...t])}function k(e,t,r,n){let o=(0,T.Y)(r);(0,i.useEffect)(()=>{function r(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)},[e,t,n])}var F=r(65140);function L(e,t){let r=(0,i.useRef)([]),n=(0,A._)(e);(0,i.useEffect)(()=>{let e=[...r.current];for(let[i,o]of t.entries())if(r.current[i]!==o){let i=n(t,e);return r.current=t,i}},[n,...t])}var N=r(40362);function O(e){let t=(0,A._)(e),r=(0,i.useRef)(!1);(0,i.useEffect)(()=>(r.current=!1,()=>{r.current=!0,(0,F._)(()=>{r.current&&t()})}),[t])}function j(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let r of e.current)r.current instanceof HTMLElement&&t.add(r.current);return t}var V=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(V||{});let I=Object.assign((0,a.FX)(function(e,t){let r,n=(0,i.useRef)(null),o=(0,l.P)(n,t),{initialFocus:u,containers:c,features:h=30,...f}=e;(0,d.g)()||(h=1);let v=M(n);!function(e,t){let{ownerDocument:r}=e,n=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,i.useRef)(B.slice());return L((e,r)=>{let[n]=e,[i]=r;!0===i&&!1===n&&(0,F._)(()=>{t.current.splice(0)}),!1===i&&!0===n&&(t.current=B.slice())},[e,B,t]),(0,A._)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(t);L(()=>{t||(null==r?void 0:r.activeElement)===(null==r?void 0:r.body)&&E(n())},[t]),O(()=>{t&&E(n())})}({ownerDocument:v},!!(16&h));let g=function(e,t){let{ownerDocument:r,container:n,initialFocus:o}=e,s=(0,i.useRef)(null),a=(0,R.a)();return L(()=>{if(!t)return;let e=n.current;e&&(0,F._)(()=>{if(!a.current)return;let t=null==r?void 0:r.activeElement;if(null!=o&&o.current){if((null==o?void 0:o.current)===t){s.current=t;return}}else if(e.contains(t)){s.current=t;return}null!=o&&o.current?E(o.current):S(e,y.First)===w.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),s.current=null==r?void 0:r.activeElement})},[t]),s}({ownerDocument:v,container:n,initialFocus:u},!!(2&h));!function(e,t){let{ownerDocument:r,container:n,containers:i,previousActiveElement:o}=e,s=(0,R.a)();k(null==r?void 0:r.defaultView,"focus",e=>{if(!t||!s.current)return;let r=j(i);n.current instanceof HTMLElement&&r.add(n.current);let a=o.current;if(!a)return;let l=e.target;l&&l instanceof HTMLElement?_(r,l)?(o.current=l,E(l)):(e.preventDefault(),e.stopPropagation(),E(a)):E(o.current)},!0)}({ownerDocument:v,container:n,containers:c,previousActiveElement:g},!!(8&h));let b=(r=(0,i.useRef)(0),C("keydown",e=>{"Tab"===e.key&&(r.current=e.shiftKey?1:0)},!0),r),x=(0,A._)(e=>{let t=n.current;t&&(0,s.Y)(b.current,{[D.Forwards]:()=>{S(t,y.First,{skipElements:[e.relatedTarget]})},[D.Backwards]:()=>{S(t,y.Last,{skipElements:[e.relatedTarget]})}})}),P=(0,N.L)(),T=(0,i.useRef)(!1);return i.createElement(i.Fragment,null,!!(4&h)&&i.createElement(m,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:x,features:p.Focusable}),(0,a.XX)({ourProps:{ref:o,onKeyDown(e){"Tab"==e.key&&(T.current=!0,P.requestAnimationFrame(()=>{T.current=!1}))},onBlur(e){let t=j(c);n.current instanceof HTMLElement&&t.add(n.current);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(_(t,r)||(T.current?S(n.current,(0,s.Y)(b.current,{[D.Forwards]:()=>y.Next,[D.Backwards]:()=>y.Previous})|y.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&E(e.target)))}},theirProps:f,defaultTag:"div",name:"FocusTrap"}),!!(4&h)&&i.createElement(m,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:x,features:p.Focusable}))}),{features:V}),B=[];function _(e,t){for(let r of e)if(r.contains(t))return!0;return!1}!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&B[0]!==e.target&&(B.unshift(e.target),(B=B.filter(e=>null!=e&&e.isConnected)).splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});var U=r(40573);let H=(0,i.createContext)(!1);function W(e){return i.createElement(H.Provider,{value:e.force},e.children)}let $=i.Fragment,X=i.Fragment,Y=(0,i.createContext)(null),K=(0,i.createContext)(null),q=Object.assign((0,a.FX)(function(e,t){let r=(0,i.useRef)(null),n=(0,l.P)((0,l.a)(e=>{r.current=e}),t),o=M(r),s=function(e){let t=(0,i.useContext)(H),r=(0,i.useContext)(Y),n=M(e),[o,s]=(0,i.useState)(()=>{if(!t&&null!==r||h._.isServer)return null;let e=null==n?void 0:n.getElementById("headlessui-portal-root");if(e)return e;if(null===n)return null;let i=n.createElement("div");return i.setAttribute("id","headlessui-portal-root"),n.body.appendChild(i)});return(0,i.useEffect)(()=>{null!==o&&(null!=n&&n.body.contains(o)||null==n||n.body.appendChild(o))},[o,n]),(0,i.useEffect)(()=>{t||null!==r&&s(r.current)},[r,s,t]),o}(r),[u]=(0,i.useState)(()=>{var e;return h._.isServer?null:null!=(e=null==o?void 0:o.createElement("div"))?e:null}),f=(0,i.useContext)(K),p=(0,d.g)();return(0,c.s)(()=>{!s||!u||s.contains(u)||(u.setAttribute("data-headlessui-portal",""),s.appendChild(u))},[s,u]),(0,c.s)(()=>{if(u&&f)return f.register(u)},[f,u]),O(()=>{var e;s&&u&&(u instanceof Node&&s.contains(u)&&s.removeChild(u),s.childNodes.length<=0&&(null==(e=s.parentElement)||e.removeChild(s)))}),p&&s&&u?(0,U.createPortal)((0,a.XX)({ourProps:{ref:n},theirProps:e,defaultTag:$,name:"Portal"}),u):null}),{Group:(0,a.FX)(function(e,t){let{target:r,...n}=e,o={ref:(0,l.P)(t)};return i.createElement(Y.Provider,{value:r},(0,a.XX)({ourProps:o,theirProps:n,defaultTag:X,name:"Popover.Group"}))})}),z=(0,i.createContext)(null),G=Object.assign((0,a.FX)(function(e,t){let r=f(),{id:n="headlessui-description-".concat(r),...o}=e,s=function e(){let t=(0,i.useContext)(z);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),u=(0,l.P)(t);(0,c.s)(()=>s.register(n),[n,s.register]);let d={ref:u,...s.props,id:n};return(0,a.XX)({ourProps:d,theirProps:o,slot:s.slot||{},defaultTag:"p",name:s.name||"Description"})}),{});var Z=r(2057);let J=(0,i.createContext)(()=>{});J.displayName="StackContext";var Q=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Q||{});function ee(e){let{children:t,onUpdate:r,type:n,element:o,enabled:s}=e,a=(0,i.useContext)(J),l=(0,A._)(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];null==r||r(...t),a(...t)});return(0,c.s)(()=>{let e=void 0===s||!0===s;return e&&l(0,n,o),()=>{e&&l(1,n,o)}},[l,n,o,s]),i.createElement(J.Provider,{value:l},t)}function et(e,t,r){let n=(0,T.Y)(t);(0,i.useEffect)(()=>{function t(e){n.current(e)}return document.addEventListener(e,t,r),()=>document.removeEventListener(e,t,r)},[e,r])}"function"==typeof Object.is&&Object.is;let{useState:er,useEffect:en,useLayoutEffect:ei,useDebugValue:eo}=o;"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;let es=o.useSyncExternalStore;var ea=r(23833);let el=function(e,t){let r=e(),n=new Set;return{getSnapshot:()=>r,subscribe:e=>(n.add(e),()=>n.delete(e)),dispatch(e){for(var i=arguments.length,o=Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];let a=t[e].call(r,...o);a&&(r=a,n.forEach(e=>e()))}}}(()=>new Map,{PUSH(e,t){var r;let n=null!=(r=this.get(e))?r:{doc:e,count:0,d:(0,ea.e)(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT(e){let t,r,{doc:n,d:i,meta:o}=e,s={doc:n,d:i,meta:function(e){let t={};for(let r of e)Object.assign(t,r(t));return t}(o)},a=[/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0?{before(){t=window.pageYOffset},after(e){let{doc:r,d:n,meta:i}=e;function o(e){return i.containers.flatMap(e=>e()).some(t=>t.contains(e))}n.microTask(()=>{if("auto"!==window.getComputedStyle(r.documentElement).scrollBehavior){let e=(0,ea.e)();e.style(r.documentElement,"scroll-behavior","auto"),n.add(()=>n.microTask(()=>e.dispose()))}n.style(r.body,"marginTop","-".concat(t,"px")),window.scrollTo(0,0);let e=null;n.addEventListener(r,"click",t=>{if(t.target instanceof HTMLElement)try{let n=t.target.closest("a");if(!n)return;let{hash:i}=new URL(n.href),s=r.querySelector(i);s&&!o(s)&&(e=s)}catch(e){}},!0),n.addEventListener(r,"touchmove",e=>{e.target instanceof HTMLElement&&!o(e.target)&&e.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+t),e&&e.isConnected&&(e.scrollIntoView({block:"nearest"}),e=null)})})}}:{},{before(e){var t;let{doc:n}=e,i=n.documentElement;r=(null!=(t=n.defaultView)?t:window).innerWidth-i.clientWidth},after(e){let{doc:t,d:n}=e,i=t.documentElement,o=i.clientWidth-i.offsetWidth,s=r-o;n.style(i,"paddingRight","".concat(s,"px"))}},{before(e){let{doc:t,d:r}=e;r.style(t.documentElement,"overflow","hidden")}}];a.forEach(e=>{let{before:t}=e;return null==t?void 0:t(s)}),a.forEach(e=>{let{after:t}=e;return null==t?void 0:t(s)})},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}});el.subscribe(()=>{let e=el.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let e="hidden"===t.get(r.doc),n=0!==r.count;(n&&!e||!n&&e)&&el.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),0===r.count&&el.dispatch("TEARDOWN",r)}});let eu=new Map,ec=new Map;function ed(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];(0,c.s)(()=>{var r;if(!t)return;let n="function"==typeof e?e():e.current;if(!n)return;let i=null!=(r=ec.get(n))?r:0;return ec.set(n,i+1),0!==i||(eu.set(n,{"aria-hidden":n.getAttribute("aria-hidden"),inert:n.inert}),n.setAttribute("aria-hidden","true"),n.inert=!0),function(){var e;if(!n)return;let t=null!=(e=ec.get(n))?e:1;if(1===t?ec.delete(n):ec.set(n,t-1),1!==t)return;let r=eu.get(n);r&&(null===r["aria-hidden"]?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",r["aria-hidden"]),n.inert=r.inert,eu.delete(n))}},[e,t])}var eh=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(eh||{}),ef=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(ef||{});let ep={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},em=(0,i.createContext)(null);function ev(e){let t=(0,i.useContext)(em);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Dialog /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,ev),t}return t}function eg(e,t){return(0,s.Y)(t.type,ep,e,t)}em.displayName="DialogContext";let ey=a.O5.RenderStrategy|a.O5.Static,ew=Object.assign((0,a.FX)(function(e,t){var r;let n,o,h,y,w;let b=f(),{id:P="headlessui-dialog-".concat(b),open:E,onClose:S,initialFocus:T,__demoMode:D=!1,...R}=e,[F,L]=(0,i.useState)(0),N=(0,Z.O_)();void 0===E&&null!==N&&(E=(N&Z.Uw.Open)===Z.Uw.Open);let O=(0,i.useRef)(null),j=(0,l.P)(O,t),V=M(O),B=e.hasOwnProperty("open")||null!==N,_=e.hasOwnProperty("onClose");if(!B&&!_)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!B)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!_)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof E)throw Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: ".concat(E));if("function"!=typeof S)throw Error("You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: ".concat(S));let U=E?0:1,[H,$]=(0,i.useReducer)(eg,{titleId:null,descriptionId:null,panelRef:(0,i.createRef)()}),X=(0,A._)(()=>S(!1)),Y=(0,A._)(e=>$({type:0,id:e})),G=!!(0,d.g)()&&!D&&0===U,J=F>1,er=null!==(0,i.useContext)(em),[en,ei]=(n=(0,i.useContext)(K),o=(0,i.useRef)([]),h=(0,A._)(e=>(o.current.push(e),n&&n.register(e),()=>y(e))),y=(0,A._)(e=>{let t=o.current.indexOf(e);-1!==t&&o.current.splice(t,1),n&&n.unregister(e)}),w=(0,i.useMemo)(()=>({register:h,unregister:y,portals:o}),[h,y,o]),[o,(0,i.useMemo)(()=>function(e){let{children:t}=e;return i.createElement(K.Provider,{value:w},t)},[w])]),{resolveContainers:eo,mainTreeNodeRef:ea,MainTreeNode:eu}=function(){var e;let{defaultContainers:t=[],portals:r,mainTreeNodeRef:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(0,i.useRef)(null!=(e=null==n?void 0:n.current)?e:null),s=M(o),a=(0,A._)(()=>{var e;let n=[];for(let e of t)null!==e&&(e instanceof HTMLElement?n.push(e):"current"in e&&e.current instanceof HTMLElement&&n.push(e.current));if(null!=r&&r.current)for(let e of r.current)n.push(e);for(let t of null!=(e=null==s?void 0:s.querySelectorAll("html > *, body > *"))?e:[])t!==document.body&&t!==document.head&&t instanceof HTMLElement&&"headlessui-portal-root"!==t.id&&(t.contains(o.current)||n.some(e=>t.contains(e))||n.push(t));return n});return{resolveContainers:a,contains:(0,A._)(e=>a().some(t=>t.contains(e))),mainTreeNodeRef:o,MainTreeNode:(0,i.useMemo)(()=>function(){return null!=n?null:i.createElement(m,{features:p.Hidden,ref:o})},[o,n])}}({portals:en,defaultContainers:[null!=(r=H.panelRef.current)?r:O.current]}),ec=null!==N&&(N&Z.Uw.Closing)===Z.Uw.Closing,eh=!er&&!ec&&G;ed((0,i.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==V?void 0:V.querySelectorAll("body > *"))?e:[]).find(e=>"headlessui-portal-root"!==e.id&&e.contains(ea.current)&&e instanceof HTMLElement))?t:null},[ea]),eh);let ef=!!J||G;ed((0,i.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==V?void 0:V.querySelectorAll("[data-headlessui-portal]"))?e:[]).find(e=>e.contains(ea.current)&&e instanceof HTMLElement))?t:null},[ea]),ef),function(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=(0,i.useRef)(!1);function o(r,i){if(!n.current||r.defaultPrevented)return;let o=i(r);if(null!==o&&o.getRootNode().contains(o)&&o.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)){if(null===t)continue;let e=t instanceof HTMLElement?t:t.current;if(null!=e&&e.contains(o)||r.composed&&r.composedPath().includes(e))return}return function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=v(e))?void 0:t.body)&&(0,s.Y)(r,{0:()=>e.matches(g),1(){let t=e;for(;null!==t;){if(t.matches(g))return!0;t=t.parentElement}return!1}})}(o,x.Loose)||-1===o.tabIndex||r.preventDefault(),t(r,o)}}(0,i.useEffect)(()=>{requestAnimationFrame(()=>{n.current=r})},[r]);let a=(0,i.useRef)(null);et("pointerdown",e=>{var t,r;n.current&&(a.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),et("mousedown",e=>{var t,r;n.current&&(a.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),et("click",e=>{a.current&&(o(e,()=>a.current),a.current=null)},!0),et("touchend",e=>o(e,()=>e.target instanceof HTMLElement?e.target:null),!0),C("blur",e=>o(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}(eo,X,!(!G||J));let ep=!(J||0!==U);k(null==V?void 0:V.defaultView,"keydown",e=>{ep&&(e.defaultPrevented||e.key===u.Escape&&(e.preventDefault(),e.stopPropagation(),X()))}),function(e,t){var r;let n,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];r=e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],o]}},n=es(el.subscribe,el.getSnapshot,el.getSnapshot),(i=e?n.get(e):void 0)&&i.count,(0,c.s)(()=>{if(!(!e||!t))return el.dispatch("PUSH",e,r),()=>el.dispatch("POP",e,r)},[t,e])}(V,!(ec||0!==U||er),eo),(0,i.useEffect)(()=>{if(0!==U||!O.current)return;let e=new ResizeObserver(e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&X()}});return e.observe(O.current),()=>e.disconnect()},[U,O,X]);let[ev,ew]=function(){let[e,t]=(0,i.useState)([]);return[e.length>0?e.join(" "):void 0,(0,i.useMemo)(()=>function(e){let r=(0,A._)(e=>(t(t=>[...t,e]),()=>t(t=>{let r=t.slice(),n=r.indexOf(e);return -1!==n&&r.splice(n,1),r}))),n=(0,i.useMemo)(()=>({register:r,slot:e.slot,name:e.name,props:e.props}),[r,e.slot,e.name,e.props]);return i.createElement(z.Provider,{value:n},e.children)},[t])]}(),eb=(0,i.useMemo)(()=>[{dialogState:U,close:X,setTitleId:Y},H],[U,H,X,Y]),ex=(0,i.useMemo)(()=>({open:0===U}),[U]),eP={ref:j,id:P,role:"dialog","aria-modal":0===U||void 0,"aria-labelledby":H.titleId,"aria-describedby":ev};return i.createElement(ee,{type:"Dialog",enabled:0===U,element:O,onUpdate:(0,A._)((e,t)=>{"Dialog"===t&&(0,s.Y)(e,{[Q.Add]:()=>L(e=>e+1),[Q.Remove]:()=>L(e=>e-1)})})},i.createElement(W,{force:!0},i.createElement(q,null,i.createElement(em.Provider,{value:eb},i.createElement(q.Group,{target:O},i.createElement(W,{force:!1},i.createElement(ew,{slot:ex,name:"Dialog.Description"},i.createElement(I,{initialFocus:T,containers:eo,features:G?(0,s.Y)(J?"parent":"leaf",{parent:I.features.RestoreFocus,leaf:I.features.All&~I.features.FocusLock}):I.features.None},i.createElement(ei,null,(0,a.XX)({ourProps:eP,theirProps:R,slot:ex,defaultTag:"div",features:ey,visible:0===U,name:"Dialog"}))))))))),i.createElement(eu,null))}),{Backdrop:(0,a.FX)(function(e,t){let r=f(),{id:n="headlessui-dialog-backdrop-".concat(r),...o}=e,[{dialogState:s},u]=ev("Dialog.Backdrop"),c=(0,l.P)(t);(0,i.useEffect)(()=>{if(null===u.panelRef.current)throw Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[u.panelRef]);let d=(0,i.useMemo)(()=>({open:0===s}),[s]);return i.createElement(W,{force:!0},i.createElement(q,null,(0,a.XX)({ourProps:{ref:c,id:n,"aria-hidden":!0},theirProps:o,slot:d,defaultTag:"div",name:"Dialog.Backdrop"})))}),Panel:(0,a.FX)(function(e,t){let r=f(),{id:n="headlessui-dialog-panel-".concat(r),...o}=e,[{dialogState:s},u]=ev("Dialog.Panel"),c=(0,l.P)(t,u.panelRef),d=(0,i.useMemo)(()=>({open:0===s}),[s]),h=(0,A._)(e=>{e.stopPropagation()});return(0,a.XX)({ourProps:{ref:c,id:n,onClick:h},theirProps:o,slot:d,defaultTag:"div",name:"Dialog.Panel"})}),Overlay:(0,a.FX)(function(e,t){let r=f(),{id:n="headlessui-dialog-overlay-".concat(r),...o}=e,[{dialogState:s,close:u}]=ev("Dialog.Overlay"),c=(0,l.P)(t),d=(0,A._)(e=>{if(e.target===e.currentTarget){if(function(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(null==t?void 0:t.getAttribute("disabled"))==="";return!(n&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(r))&&n}(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),u()}}),h=(0,i.useMemo)(()=>({open:0===s}),[s]);return(0,a.XX)({ourProps:{ref:c,id:n,"aria-hidden":!0,onClick:d},theirProps:o,slot:h,defaultTag:"div",name:"Dialog.Overlay"})}),Title:(0,a.FX)(function(e,t){let r=f(),{id:n="headlessui-dialog-title-".concat(r),...o}=e,[{dialogState:s,setTitleId:u}]=ev("Dialog.Title"),c=(0,l.P)(t);(0,i.useEffect)(()=>(u(n),()=>u(null)),[n,u]);let d=(0,i.useMemo)(()=>({open:0===s}),[s]);return(0,a.XX)({ourProps:{ref:c,id:n},theirProps:o,slot:d,defaultTag:"h2",name:"Dialog.Title"})}),Description:G})},64766:(e,t,r)=>{"use strict";r.d(t,{e:()=>k});var n=r(72300),i=r(85470),o=r(2057),s=r(14907),a=r(94358),l=r(32659),u=r(60452),c=r(92913),d=r(86325),h=r(23833);function f(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];e&&r.length>0&&e.classList.add(...r)}function p(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];e&&r.length>0&&e.classList.remove(...r)}var m=r(40362),v=r(49041),g=r(58831);function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split(" ").filter(e=>e.trim().length>1)}let w=(0,n.createContext)(null);w.displayName="TransitionContext";var b=(e=>(e.Visible="visible",e.Hidden="hidden",e))(b||{});let x=(0,n.createContext)(null);function P(e){return"children"in e?P(e.children):e.current.filter(e=>{let{el:t}=e;return null!==t.current}).filter(e=>{let{state:t}=e;return"visible"===t}).length>0}function E(e,t){let r=(0,u.Y)(e),o=(0,n.useRef)([]),l=(0,a.a)(),c=(0,m.L)(),d=(0,v._)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.mK.Hidden,n=o.current.findIndex(t=>{let{el:r}=t;return r===e});-1!==n&&((0,s.Y)(t,{[i.mK.Unmount](){o.current.splice(n,1)},[i.mK.Hidden](){o.current[n].state="hidden"}}),c.microTask(()=>{var e;!P(o)&&l.current&&(null==(e=r.current)||e.call(r))}))}),h=(0,v._)(e=>{let t=o.current.find(t=>{let{el:r}=t;return r===e});return t?"visible"!==t.state&&(t.state="visible"):o.current.push({el:e,state:"visible"}),()=>d(e,i.mK.Unmount)}),f=(0,n.useRef)([]),p=(0,n.useRef)(Promise.resolve()),g=(0,n.useRef)({enter:[],leave:[],idle:[]}),y=(0,v._)((e,r,n)=>{f.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter(t=>{let[r]=t;return r!==e})),null==t||t.chains.current[r].push([e,new Promise(e=>{f.current.push(e)})]),null==t||t.chains.current[r].push([e,new Promise(e=>{Promise.all(g.current[r].map(e=>{let[t,r]=e;return r})).then(()=>e())})]),"enter"===r?p.current=p.current.then(()=>null==t?void 0:t.wait.current).then(()=>n(r)):n(r)}),w=(0,v._)((e,t,r)=>{Promise.all(g.current[t].splice(0).map(e=>{let[t,r]=e;return r})).then(()=>{var e;null==(e=f.current.shift())||e()}).then(()=>r(t))});return(0,n.useMemo)(()=>({children:o,register:h,unregister:d,onStart:y,onStop:w,wait:p,chains:g}),[h,d,o,y,w,g,p])}function S(){}x.displayName="NestingContext";let A=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function T(e){var t;let r={};for(let n of A)r[n]=null!=(t=e[n])?t:S;return r}let C=i.O5.RenderStrategy,D=(0,i.FX)(function(e,t){let{show:r,appear:s=!1,unmount:a=!0,...u}=e,h=(0,n.useRef)(null),f=(0,d.P)(h,t);(0,c.g)();let p=(0,o.O_)();if(void 0===r&&null!==p&&(r=(p&o.Uw.Open)===o.Uw.Open),![!0,!1].includes(r))throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[m,g]=(0,n.useState)(r?"visible":"hidden"),y=E(()=>{g("hidden")}),[b,S]=(0,n.useState)(!0),A=(0,n.useRef)([r]);(0,l.s)(()=>{!1!==b&&A.current[A.current.length-1]!==r&&(A.current.push(r),S(!1))},[A,r]);let T=(0,n.useMemo)(()=>({show:r,appear:s,initial:b}),[r,s,b]);(0,n.useEffect)(()=>{if(r)g("visible");else if(P(y)){let e=h.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&g("hidden")}else g("hidden")},[r,y]);let D={unmount:a},M=(0,v._)(()=>{var t;b&&S(!1),null==(t=e.beforeEnter)||t.call(e)}),k=(0,v._)(()=>{var t;b&&S(!1),null==(t=e.beforeLeave)||t.call(e)});return n.createElement(x.Provider,{value:y},n.createElement(w.Provider,{value:T},(0,i.XX)({ourProps:{...D,as:n.Fragment,children:n.createElement(R,{ref:f,...D,...u,beforeEnter:M,beforeLeave:k})},theirProps:{},defaultTag:n.Fragment,features:C,visible:"visible"===m,name:"Transition"})))}),R=(0,i.FX)(function(e,t){var r,b,S;let A;let{beforeEnter:D,afterEnter:R,beforeLeave:M,afterLeave:k,enter:F,enterFrom:L,enterTo:N,entered:O,leave:j,leaveFrom:V,leaveTo:I,...B}=e,_=(0,n.useRef)(null),U=(0,d.P)(_,t),H=null==(r=B.unmount)||r?i.mK.Unmount:i.mK.Hidden,{show:W,appear:$,initial:X}=function(){let e=(0,n.useContext)(w);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[Y,K]=(0,n.useState)(W?"visible":"hidden"),q=function(){let e=(0,n.useContext)(x);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:z,unregister:G}=q;(0,n.useEffect)(()=>z(_),[z,_]),(0,n.useEffect)(()=>{if(H===i.mK.Hidden&&_.current){if(W&&"visible"!==Y){K("visible");return}return(0,s.Y)(Y,{hidden:()=>G(_),visible:()=>z(_)})}},[Y,_,z,G,W,H]);let Z=(0,u.Y)({base:y(B.className),enter:y(F),enterFrom:y(L),enterTo:y(N),entered:y(O),leave:y(j),leaveFrom:y(V),leaveTo:y(I)}),J=(S={beforeEnter:D,afterEnter:R,beforeLeave:M,afterLeave:k},A=(0,n.useRef)(T(S)),(0,n.useEffect)(()=>{A.current=T(S)},[S]),A),Q=(0,c.g)();(0,n.useEffect)(()=>{if(Q&&"visible"===Y&&null===_.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[_,Y,Q]);let ee=$&&W&&X,et=Q&&(!X||$)?W?"enter":"leave":"idle",er=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,r]=(0,n.useState)(e),i=(0,a.a)(),o=(0,n.useCallback)(e=>{i.current&&r(t=>t|e)},[t,i]),s=(0,n.useCallback)(e=>!!(t&e),[t]);return{flags:t,addFlag:o,hasFlag:s,removeFlag:(0,n.useCallback)(e=>{i.current&&r(t=>t&~e)},[r,i]),toggleFlag:(0,n.useCallback)(e=>{i.current&&r(t=>t^e)},[r])}}(0),en=(0,v._)(e=>(0,s.Y)(e,{enter:()=>{er.addFlag(o.Uw.Opening),J.current.beforeEnter()},leave:()=>{er.addFlag(o.Uw.Closing),J.current.beforeLeave()},idle:()=>{}})),ei=(0,v._)(e=>(0,s.Y)(e,{enter:()=>{er.removeFlag(o.Uw.Opening),J.current.afterEnter()},leave:()=>{er.removeFlag(o.Uw.Closing),J.current.afterLeave()},idle:()=>{}})),eo=E(()=>{K("hidden"),G(_)},q);!function(e){let{immediate:t,container:r,direction:n,classes:i,onStart:o,onStop:c}=e,d=(0,a.a)(),v=(0,m.L)(),g=(0,u.Y)(n);(0,l.s)(()=>{t&&(g.current="enter")},[t]),(0,l.s)(()=>{let e=(0,h.e)();v.add(e.dispose);let t=r.current;if(t&&"idle"!==g.current&&d.current){var n,a,l;let r,u,d,m,v,y,w;return e.dispose(),o.current(g.current),e.add((n=i.current,a="enter"===g.current,l=()=>{e.dispose(),c.current(g.current)},u=a?"enter":"leave",d=(0,h.e)(),m=void 0!==l?(r={called:!1},function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!r.called)return r.called=!0,l(...t)}):()=>{},"enter"===u&&(t.removeAttribute("hidden"),t.style.display=""),v=(0,s.Y)(u,{enter:()=>n.enter,leave:()=>n.leave}),y=(0,s.Y)(u,{enter:()=>n.enterTo,leave:()=>n.leaveTo}),w=(0,s.Y)(u,{enter:()=>n.enterFrom,leave:()=>n.leaveFrom}),p(t,...n.base,...n.enter,...n.enterTo,...n.enterFrom,...n.leave,...n.leaveFrom,...n.leaveTo,...n.entered),f(t,...n.base,...v,...w),d.nextFrame(()=>{p(t,...n.base,...v,...w),f(t,...n.base,...v,...y),function(e,t){let r=(0,h.e)();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:i}=getComputedStyle(e),[o,s]=[n,i].map(e=>{let[t=0]=e.split(",").filter(Boolean).map(e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t}),a=o+s;if(0!==a){r.group(r=>{r.setTimeout(()=>{t(),r.dispose()},a),r.addEventListener(e,"transitionrun",e=>{e.target===e.currentTarget&&r.dispose()})});let n=r.addEventListener(e,"transitionend",e=>{e.target===e.currentTarget&&(t(),n())})}else t();r.add(()=>t()),r.dispose}(t,()=>(p(t,...n.base,...v),f(t,...n.base,...n.entered),m()))}),d.dispose)),e.dispose}},[n])}({immediate:ee,container:_,classes:Z,direction:et,onStart:(0,u.Y)(e=>{eo.onStart(_,e,en)}),onStop:(0,u.Y)(e=>{eo.onStop(_,e,ei),"leave"!==e||P(eo)||(K("hidden"),G(_))})});let es=B;return ee?es={...es,className:(0,g.x)(B.className,...Z.current.enter,...Z.current.enterFrom)}:(es.className=(0,g.x)(B.className,null==(b=_.current)?void 0:b.className),""===es.className&&delete es.className),n.createElement(x.Provider,{value:eo},n.createElement(o.El,{value:(0,s.Y)(Y,{visible:o.Uw.Open,hidden:o.Uw.Closed})|er.flags},(0,i.XX)({ourProps:{ref:U},theirProps:es,defaultTag:"div",features:C,visible:"visible"===Y,name:"Transition.Child"})))}),M=(0,i.FX)(function(e,t){let r=null!==(0,n.useContext)(w),i=null!==(0,o.O_)();return n.createElement(n.Fragment,null,!r&&i?n.createElement(D,{ref:t,...e}):n.createElement(R,{ref:t,...e}))}),k=Object.assign(D,{Child:M,Root:D})},40362:(e,t,r)=>{"use strict";r.d(t,{L:()=>o});var n=r(72300),i=r(23833);function o(){let[e]=(0,n.useState)(i.e);return(0,n.useEffect)(()=>()=>e.dispose(),[e]),e}},49041:(e,t,r)=>{"use strict";r.d(t,{_:()=>o});var n=r(72300),i=r(60452);let o=function(e){let t=(0,i.Y)(e);return n.useCallback(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current(...r)},[t])}},94358:(e,t,r)=>{"use strict";r.d(t,{a:()=>o});var n=r(72300),i=r(32659);function o(){let e=(0,n.useRef)(!1);return(0,i.s)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},32659:(e,t,r)=>{"use strict";r.d(t,{s:()=>o});var n=r(72300),i=r(83373);let o=(e,t)=>{i._.isServer?(0,n.useEffect)(e,t):(0,n.useLayoutEffect)(e,t)}},60452:(e,t,r)=>{"use strict";r.d(t,{Y:()=>o});var n=r(72300),i=r(32659);function o(e){let t=(0,n.useRef)(e);return(0,i.s)(()=>{t.current=e},[e]),t}},92913:(e,t,r)=>{"use strict";r.d(t,{g:()=>s});var n,i=r(72300),o=r(83373);function s(){let e;let t=(e="undefined"==typeof document,(0,(n||(n=r.t(i,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[s,a]=i.useState(o._.isHandoffComplete);return s&&!1===o._.isHandoffComplete&&a(!1),i.useEffect(()=>{!0!==s&&a(!0)},[s]),i.useEffect(()=>o._.handoff(),[]),!t&&s}},86325:(e,t,r)=>{"use strict";r.d(t,{P:()=>a,a:()=>s});var n=r(72300),i=r(49041);let o=Symbol();function s(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,{[o]:t})}function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let s=(0,n.useRef)(t);(0,n.useEffect)(()=>{s.current=t},[t]);let a=(0,i._)(e=>{for(let t of s.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[o]))?void 0:a}},2057:(e,t,r)=>{"use strict";r.d(t,{El:()=>a,O_:()=>s,Uw:()=>o});var n=r(72300);let i=(0,n.createContext)(null);i.displayName="OpenClosedContext";var o=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(o||{});function s(){return(0,n.useContext)(i)}function a(e){let{value:t,children:r}=e;return n.createElement(i.Provider,{value:t},r)}},58831:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return Array.from(new Set(t.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}r.d(t,{x:()=>n})},23833:(e,t,r)=>{"use strict";r.d(t,{e:()=>function e(){let t=[],r={addEventListener:(e,t,n,i)=>(e.addEventListener(t,n,i),r.add(()=>e.removeEventListener(t,n,i))),requestAnimationFrame(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let i=requestAnimationFrame(...t);return r.add(()=>cancelAnimationFrame(i))},nextFrame(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.requestAnimationFrame(()=>r.requestAnimationFrame(...t))},setTimeout(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let i=setTimeout(...t);return r.add(()=>clearTimeout(i))},microTask(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];let o={current:!0};return(0,n._)(()=>{o.current&&t[0]()}),r.add(()=>{o.current=!1})},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add(()=>{Object.assign(e.style,{[t]:n})})},group(t){let r=e();return t(r),this.add(()=>r.dispose())},add:e=>(t.push(e),()=>{let r=t.indexOf(e);if(r>=0)for(let e of t.splice(r,1))e()}),dispose(){for(let e of t.splice(0))e()}};return r}});var n=r(65140)},83373:(e,t,r)=>{"use strict";r.d(t,{_:()=>a});var n=Object.defineProperty,i=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,o=(e,t,r)=>(i(e,"symbol"!=typeof t?t+"":t,r),r);class s{set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){o(this,"current",this.detect()),o(this,"handoffState","pending"),o(this,"currentId",0)}}let a=new s},14907:(e,t,r)=>{"use strict";function n(e,t){for(var r=arguments.length,i=Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];if(e in t){let r=t[e];return"function"==typeof r?r(...i):r}let s=Error('Tried to handle "'.concat(e,'" but there is no handler defined. Only defined handlers are: ').concat(Object.keys(t).map(e=>'"'.concat(e,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(s,n),s}r.d(t,{Y:()=>n})},65140:(e,t,r)=>{"use strict";function n(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}r.d(t,{_:()=>n})},85470:(e,t,r)=>{"use strict";r.d(t,{FX:()=>d,O5:()=>s,XX:()=>l,mK:()=>a});var n=r(72300),i=r(58831),o=r(14907),s=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(s||{}),a=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(a||{});function l(e){let{ourProps:t,theirProps:r,slot:n,defaultTag:i,features:s,visible:a=!0,name:l}=e,d=c(r,t);if(a)return u(d,n,i,l);let h=null!=s?s:0;if(2&h){let{static:e=!1,...t}=d;if(e)return u(t,n,i,l)}if(1&h){let{unmount:e=!0,...t}=d;return(0,o.Y)(e?0:1,{0:()=>null,1:()=>u({...t,hidden:!0,style:{display:"none"}},n,i,l)})}return u(d,n,i,l)}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,{as:s=r,children:a,refName:l="ref",...u}=f(e,["unmount","static"]),d=void 0!==e.ref?{[l]:e.ref}:{},p="function"==typeof a?a(t):a;"className"in u&&u.className&&"function"==typeof u.className&&(u.className=u.className(t));let m={};if(t){let e=!1,r=[];for(let[n,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&r.push(n);e&&(m["data-headlessui-state"]=r.join(" "))}if(s===n.Fragment&&Object.keys(h(u)).length>0){if(!(0,n.isValidElement)(p)||Array.isArray(p)&&p.length>1)throw Error(['Passing props on "Fragment"!',"","The current component <".concat(o,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(u).map(e=>"  - ".concat(e)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>"  - ".concat(e)).join("\n")].join("\n"));let e=p.props,t="function"==typeof(null==e?void 0:e.className)?function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return(0,i.x)(null==e?void 0:e.className(...r),u.className)}:(0,i.x)(null==e?void 0:e.className,u.className);return(0,n.cloneElement)(p,Object.assign({},c(p.props,h(f(u,["ref"]))),m,d,function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return{ref:t.every(e=>null==e)?void 0:e=>{for(let r of t)null!=r&&("function"==typeof r?r(e):r.current=e)}}}(p.ref,d.ref),t?{className:t}:{}))}return(0,n.createElement)(s,Object.assign({},f(u,["ref"]),s!==n.Fragment&&d,s!==n.Fragment&&m),p)}function c(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0===t.length)return{};if(1===t.length)return t[0];let n={},i={};for(let e of t)for(let t in e)t.startsWith("on")&&"function"==typeof e[t]?(null!=i[t]||(i[t]=[]),i[t].push(e[t])):n[t]=e[t];if(n.disabled||n["aria-disabled"])return Object.assign(n,Object.fromEntries(Object.keys(i).map(e=>[e,void 0])));for(let e in i)Object.assign(n,{[e](t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];for(let r of i[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;r(t,...n)}}});return n}function d(e){var t;return Object.assign((0,n.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function h(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}},24242:(e,t,r)=>{"use strict";r.d(t,{UC:()=>eN,YJ:()=>ej,In:()=>eF,q7:()=>eI,VF:()=>e_,p4:()=>eB,JU:()=>eV,ZL:()=>eL,bL:()=>eR,wn:()=>eH,PP:()=>eU,wv:()=>eW,l9:()=>eM,WT:()=>ek,LM:()=>eO});var n=r(72300),i=r(40573);function o(e,[t,r]){return Math.min(r,Math.max(t,e))}var s=r(46105),a=r(67420),l=r(77296),u=r(78244),c=r(54160),d=r(82001),h=r(16848),f=r(99737),p=r(33136),m=r(29179),v=r(61323),g=r(84295),y=r(98846),w=r(80152),b=r(78560),x=r(20584),P=r(77008),E=r(71996),S=r(68820),A=r(26090),T=r(55552),C=[" ","Enter","ArrowUp","ArrowDown"],D=[" ","Enter"],R="Select",[M,k,F]=(0,a.N)(R),[L,N]=(0,u.A)(R,[F,m.Bk]),O=(0,m.Bk)(),[j,V]=L(R),[I,B]=L(R),_=e=>{let{__scopeSelect:t,children:r,open:i,defaultOpen:o,onOpenChange:s,value:a,defaultValue:l,onValueChange:u,dir:d,name:h,autoComplete:f,disabled:v,required:g}=e,y=O(t),[w,x]=n.useState(null),[P,E]=n.useState(null),[S,A]=n.useState(!1),C=(0,c.jH)(d),[D=!1,R]=(0,b.i)({prop:i,defaultProp:o,onChange:s}),[k,F]=(0,b.i)({prop:a,defaultProp:l,onChange:u}),L=n.useRef(null),N=!w||!!w.closest("form"),[V,B]=n.useState(new Set),_=Array.from(V).map(e=>e.props.value).join(";");return(0,T.jsx)(m.bL,{...y,children:(0,T.jsxs)(j,{required:g,scope:t,trigger:w,onTriggerChange:x,valueNode:P,onValueNodeChange:E,valueNodeHasChildren:S,onValueNodeHasChildrenChange:A,contentId:(0,p.B)(),value:k,onValueChange:F,open:D,onOpenChange:R,dir:C,triggerPointerDownPosRef:L,disabled:v,children:[(0,T.jsx)(M.Provider,{scope:t,children:(0,T.jsx)(I,{scope:e.__scopeSelect,onNativeOptionAdd:n.useCallback(e=>{B(t=>new Set(t).add(e))},[]),onNativeOptionRemove:n.useCallback(e=>{B(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),N?(0,T.jsxs)(eT,{"aria-hidden":!0,required:g,tabIndex:-1,name:h,autoComplete:f,value:k,onChange:e=>F(e.target.value),disabled:v,children:[void 0===k?(0,T.jsx)("option",{value:""}):null,Array.from(V)]},_):null]})})};_.displayName=R;var U="SelectTrigger",H=n.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:n=!1,...i}=e,o=O(r),a=V(U,r),u=a.disabled||n,c=(0,l.s)(t,a.onTriggerChange),d=k(r),[h,f,p]=eC(e=>{let t=d().filter(e=>!e.disabled),r=t.find(e=>e.value===a.value),n=eD(t,e,r);void 0!==n&&a.onValueChange(n.value)}),v=()=>{u||(a.onOpenChange(!0),p())};return(0,T.jsx)(m.Mz,{asChild:!0,...o,children:(0,T.jsx)(g.sG.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":eA(a.value)?"":void 0,...i,ref:c,onClick:(0,s.m)(i.onClick,e=>{e.currentTarget.focus()}),onPointerDown:(0,s.m)(i.onPointerDown,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(v(),a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())}),onKeyDown:(0,s.m)(i.onKeyDown,e=>{let t=""!==h.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||f(e.key),(!t||" "!==e.key)&&C.includes(e.key)&&(v(),e.preventDefault())})})})});H.displayName=U;var W="SelectValue",$=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:i,children:o,placeholder:s="",...a}=e,u=V(W,r),{onValueNodeHasChildrenChange:c}=u,d=void 0!==o,h=(0,l.s)(t,u.onValueNodeChange);return(0,x.N)(()=>{c(d)},[c,d]),(0,T.jsx)(g.sG.span,{...a,ref:h,style:{pointerEvents:"none"},children:eA(u.value)?(0,T.jsx)(T.Fragment,{children:s}):o})});$.displayName=W;var X=n.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...i}=e;return(0,T.jsx)(g.sG.span,{"aria-hidden":!0,...i,ref:t,children:n||"▼"})});X.displayName="SelectIcon";var Y=e=>(0,T.jsx)(v.Z,{asChild:!0,...e});Y.displayName="SelectPortal";var K="SelectContent",q=n.forwardRef((e,t)=>{let r=V(K,e.__scopeSelect),[o,s]=n.useState();return((0,x.N)(()=>{s(new DocumentFragment)},[]),r.open)?(0,T.jsx)(Z,{...e,ref:t}):o?i.createPortal((0,T.jsx)(z,{scope:e.__scopeSelect,children:(0,T.jsx)(M.Slot,{scope:e.__scopeSelect,children:(0,T.jsx)("div",{children:e.children})})}),o):null});q.displayName=K;var[z,G]=L(K),Z=n.forwardRef((e,t)=>{let{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:u,side:c,sideOffset:p,align:m,alignOffset:v,arrowPadding:g,collisionBoundary:w,collisionPadding:b,sticky:x,hideWhenDetached:P,avoidCollisions:E,...C}=e,D=V(K,r),[R,M]=n.useState(null),[F,L]=n.useState(null),N=(0,l.s)(t,e=>M(e)),[O,j]=n.useState(null),[I,B]=n.useState(null),_=k(r),[U,H]=n.useState(!1),W=n.useRef(!1);n.useEffect(()=>{if(R)return(0,S.Eq)(R)},[R]),(0,h.Oh)();let $=n.useCallback(e=>{let[t,...r]=_().map(e=>e.ref.current),[n]=r.slice(-1),i=document.activeElement;for(let r of e)if(r===i||(null==r||r.scrollIntoView({block:"nearest"}),r===t&&F&&(F.scrollTop=0),r===n&&F&&(F.scrollTop=F.scrollHeight),null==r||r.focus(),document.activeElement!==i))return},[_,F]),X=n.useCallback(()=>$([O,R]),[$,O,R]);n.useEffect(()=>{U&&X()},[U,X]);let{onOpenChange:Y,triggerPointerDownPosRef:q}=D;n.useEffect(()=>{if(R){let e={x:0,y:0},t=t=>{var r,n,i,o;e={x:Math.abs(Math.round(t.pageX)-(null!==(i=null===(r=q.current)||void 0===r?void 0:r.x)&&void 0!==i?i:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(n=q.current)||void 0===n?void 0:n.y)&&void 0!==o?o:0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():R.contains(r.target)||Y(!1),document.removeEventListener("pointermove",t),q.current=null};return null!==q.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[R,Y,q]),n.useEffect(()=>{let e=()=>Y(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[Y]);let[G,Z]=eC(e=>{let t=_().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=eD(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),ee=n.useCallback((e,t,r)=>{let n=!W.current&&!r;(void 0!==D.value&&D.value===t||n)&&(j(e),n&&(W.current=!0))},[D.value]),et=n.useCallback(()=>null==R?void 0:R.focus(),[R]),er=n.useCallback((e,t,r)=>{let n=!W.current&&!r;(void 0!==D.value&&D.value===t||n)&&B(e)},[D.value]),en="popper"===i?Q:J,ei=en===Q?{side:c,sideOffset:p,align:m,alignOffset:v,arrowPadding:g,collisionBoundary:w,collisionPadding:b,sticky:x,hideWhenDetached:P,avoidCollisions:E}:{};return(0,T.jsx)(z,{scope:r,content:R,viewport:F,onViewportChange:L,itemRefCallback:ee,selectedItem:O,onItemLeave:et,itemTextRefCallback:er,focusSelectedItem:X,selectedItemText:I,position:i,isPositioned:U,searchRef:G,children:(0,T.jsx)(A.A,{as:y.DX,allowPinchZoom:!0,children:(0,T.jsx)(f.n,{asChild:!0,trapped:D.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,s.m)(o,e=>{var t;null===(t=D.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,T.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>D.onOpenChange(!1),children:(0,T.jsx)(en,{role:"listbox",id:D.contentId,"data-state":D.open?"open":"closed",dir:D.dir,onContextMenu:e=>e.preventDefault(),...C,...ei,onPlaced:()=>H(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:(0,s.m)(C.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||Z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=_().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>$(t)),e.preventDefault()}})})})})})})});Z.displayName="SelectContentImpl";var J=n.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:i,...s}=e,a=V(K,r),u=G(K,r),[c,d]=n.useState(null),[h,f]=n.useState(null),p=(0,l.s)(t,e=>f(e)),m=k(r),v=n.useRef(!1),y=n.useRef(!0),{viewport:w,selectedItem:b,selectedItemText:P,focusSelectedItem:E}=u,S=n.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&h&&w&&b&&P){let e=a.trigger.getBoundingClientRect(),t=h.getBoundingClientRect(),r=a.valueNode.getBoundingClientRect(),n=P.getBoundingClientRect();if("rtl"!==a.dir){let i=n.left-t.left,s=r.left-i,a=e.left-s,l=e.width+a,u=Math.max(l,t.width),d=o(s,[10,window.innerWidth-10-u]);c.style.minWidth=l+"px",c.style.left=d+"px"}else{let i=t.right-n.right,s=window.innerWidth-r.right-i,a=window.innerWidth-e.right-s,l=e.width+a,u=Math.max(l,t.width),d=o(s,[10,window.innerWidth-10-u]);c.style.minWidth=l+"px",c.style.right=d+"px"}let s=m(),l=window.innerHeight-20,u=w.scrollHeight,d=window.getComputedStyle(h),f=parseInt(d.borderTopWidth,10),p=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),y=f+p+u+parseInt(d.paddingBottom,10)+g,x=Math.min(5*b.offsetHeight,y),E=window.getComputedStyle(w),S=parseInt(E.paddingTop,10),A=parseInt(E.paddingBottom,10),T=e.top+e.height/2-10,C=b.offsetHeight/2,D=f+p+(b.offsetTop+C);if(D<=T){let e=b===s[s.length-1].ref.current;c.style.bottom="0px";let t=Math.max(l-T,C+(e?A:0)+(h.clientHeight-w.offsetTop-w.offsetHeight)+g);c.style.height=D+t+"px"}else{let e=b===s[0].ref.current;c.style.top="0px";let t=Math.max(T,f+w.offsetTop+(e?S:0)+C);c.style.height=t+(y-D)+"px",w.scrollTop=D-T+w.offsetTop}c.style.margin="".concat(10,"px 0"),c.style.minHeight=x+"px",c.style.maxHeight=l+"px",null==i||i(),requestAnimationFrame(()=>v.current=!0)}},[m,a.trigger,a.valueNode,c,h,w,b,P,a.dir,i]);(0,x.N)(()=>S(),[S]);let[A,C]=n.useState();(0,x.N)(()=>{h&&C(window.getComputedStyle(h).zIndex)},[h]);let D=n.useCallback(e=>{e&&!0===y.current&&(S(),null==E||E(),y.current=!1)},[S,E]);return(0,T.jsx)(ee,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:v,onScrollButtonChange:D,children:(0,T.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:A},children:(0,T.jsx)(g.sG.div,{...s,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});J.displayName="SelectItemAlignedPosition";var Q=n.forwardRef((e,t)=>{let{__scopeSelect:r,align:n="start",collisionPadding:i=10,...o}=e,s=O(r);return(0,T.jsx)(m.UC,{...s,...o,ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Q.displayName="SelectPopperPosition";var[ee,et]=L(K,{}),er="SelectViewport",en=n.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:i,...o}=e,a=G(er,r),u=et(er,r),c=(0,l.s)(t,a.onViewportChange),d=n.useRef(0);return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,T.jsx)(M.Slot,{scope:r,children:(0,T.jsx)(g.sG.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:(0,s.m)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=u;if((null==n?void 0:n.current)&&r){let e=Math.abs(d.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,i=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(i<n){let o=i+e,s=Math.min(n,o),a=o-s;r.style.height=s+"px","0px"===r.style.bottom&&(t.scrollTop=a>0?a:0,r.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})});en.displayName=er;var ei="SelectGroup",[eo,es]=L(ei),ea=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=(0,p.B)();return(0,T.jsx)(eo,{scope:r,id:i,children:(0,T.jsx)(g.sG.div,{role:"group","aria-labelledby":i,...n,ref:t})})});ea.displayName=ei;var el="SelectLabel",eu=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=es(el,r);return(0,T.jsx)(g.sG.div,{id:i.id,...n,ref:t})});eu.displayName=el;var ec="SelectItem",[ed,eh]=L(ec),ef=n.forwardRef((e,t)=>{let{__scopeSelect:r,value:i,disabled:o=!1,textValue:a,...u}=e,c=V(ec,r),d=G(ec,r),h=c.value===i,[f,m]=n.useState(null!=a?a:""),[v,y]=n.useState(!1),w=(0,l.s)(t,e=>{var t;return null===(t=d.itemRefCallback)||void 0===t?void 0:t.call(d,e,i,o)}),b=(0,p.B)(),x=()=>{o||(c.onValueChange(i),c.onOpenChange(!1))};if(""===i)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,T.jsx)(ed,{scope:r,value:i,disabled:o,textId:b,isSelected:h,onItemTextChange:n.useCallback(e=>{m(t=>{var r;return t||(null!==(r=null==e?void 0:e.textContent)&&void 0!==r?r:"").trim()})},[]),children:(0,T.jsx)(M.ItemSlot,{scope:r,value:i,disabled:o,textValue:f,children:(0,T.jsx)(g.sG.div,{role:"option","aria-labelledby":b,"data-highlighted":v?"":void 0,"aria-selected":h&&v,"data-state":h?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...u,ref:w,onFocus:(0,s.m)(u.onFocus,()=>y(!0)),onBlur:(0,s.m)(u.onBlur,()=>y(!1)),onPointerUp:(0,s.m)(u.onPointerUp,x),onPointerMove:(0,s.m)(u.onPointerMove,e=>{if(o){var t;null===(t=d.onItemLeave)||void 0===t||t.call(d)}else e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,s.m)(u.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=d.onItemLeave)||void 0===t||t.call(d)}}),onKeyDown:(0,s.m)(u.onKeyDown,e=>{var t;(null===(t=d.searchRef)||void 0===t?void 0:t.current)!==""&&" "===e.key||(D.includes(e.key)&&x()," "===e.key&&e.preventDefault())})})})})});ef.displayName=ec;var ep="SelectItemText",em=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:o,style:s,...a}=e,u=V(ep,r),c=G(ep,r),d=eh(ep,r),h=B(ep,r),[f,p]=n.useState(null),m=(0,l.s)(t,e=>p(e),d.onItemTextChange,e=>{var t;return null===(t=c.itemTextRefCallback)||void 0===t?void 0:t.call(c,e,d.value,d.disabled)}),v=null==f?void 0:f.textContent,y=n.useMemo(()=>(0,T.jsx)("option",{value:d.value,disabled:d.disabled,children:v},d.value),[d.disabled,d.value,v]),{onNativeOptionAdd:w,onNativeOptionRemove:b}=h;return(0,x.N)(()=>(w(y),()=>b(y)),[w,b,y]),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(g.sG.span,{id:d.textId,...a,ref:m}),d.isSelected&&u.valueNode&&!u.valueNodeHasChildren?i.createPortal(a.children,u.valueNode):null]})});em.displayName=ep;var ev="SelectItemIndicator",eg=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return eh(ev,r).isSelected?(0,T.jsx)(g.sG.span,{"aria-hidden":!0,...n,ref:t}):null});eg.displayName=ev;var ey="SelectScrollUpButton",ew=n.forwardRef((e,t)=>{let r=G(ey,e.__scopeSelect),i=et(ey,e.__scopeSelect),[o,s]=n.useState(!1),a=(0,l.s)(t,i.onScrollButtonChange);return(0,x.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){s(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,T.jsx)(eP,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});ew.displayName=ey;var eb="SelectScrollDownButton",ex=n.forwardRef((e,t)=>{let r=G(eb,e.__scopeSelect),i=et(eb,e.__scopeSelect),[o,s]=n.useState(!1),a=(0,l.s)(t,i.onScrollButtonChange);return(0,x.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;s(Math.ceil(t.scrollTop)<e)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,T.jsx)(eP,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});ex.displayName=eb;var eP=n.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:i,...o}=e,a=G("SelectScrollButton",r),l=n.useRef(null),u=k(r),c=n.useCallback(()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)},[]);return n.useEffect(()=>()=>c(),[c]),(0,x.N)(()=>{var e;let t=u().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[u]),(0,T.jsx)(g.sG.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,s.m)(o.onPointerDown,()=>{null===l.current&&(l.current=window.setInterval(i,50))}),onPointerMove:(0,s.m)(o.onPointerMove,()=>{var e;null===(e=a.onItemLeave)||void 0===e||e.call(a),null===l.current&&(l.current=window.setInterval(i,50))}),onPointerLeave:(0,s.m)(o.onPointerLeave,()=>{c()})})}),eE=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,T.jsx)(g.sG.div,{"aria-hidden":!0,...n,ref:t})});eE.displayName="SelectSeparator";var eS="SelectArrow";function eA(e){return""===e||void 0===e}n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=O(r),o=V(eS,r),s=G(eS,r);return o.open&&"popper"===s.position?(0,T.jsx)(m.i3,{...i,...n,ref:t}):null}).displayName=eS;var eT=n.forwardRef((e,t)=>{let{value:r,...i}=e,o=n.useRef(null),s=(0,l.s)(t,o),a=(0,P.Z)(r);return n.useEffect(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(a!==r&&t){let n=new Event("change",{bubbles:!0});t.call(e,r),e.dispatchEvent(n)}},[a,r]),(0,T.jsx)(E.s,{asChild:!0,children:(0,T.jsx)("select",{...i,ref:s,defaultValue:r})})});function eC(e){let t=(0,w.c)(e),r=n.useRef(""),i=n.useRef(0),o=n.useCallback(e=>{let n=r.current+e;t(n),function e(t){r.current=t,window.clearTimeout(i.current),""!==t&&(i.current=window.setTimeout(()=>e(""),1e3))}(n)},[t]),s=n.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return n.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,o,s]}function eD(e,t,r){var n;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=(n=Math.max(r?e.indexOf(r):-1,0),e.map((t,r)=>e[(n+r)%e.length]));1===i.length&&(o=o.filter(e=>e!==r));let s=o.find(e=>e.textValue.toLowerCase().startsWith(i.toLowerCase()));return s!==r?s:void 0}eT.displayName="BubbleSelect";var eR=_,eM=H,ek=$,eF=X,eL=Y,eN=q,eO=en,ej=ea,eV=eu,eI=ef,eB=em,e_=eg,eU=ew,eH=ex,eW=eE},12319:(e,t,r)=>{"use strict";let n;function i(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}r.d(t,{P:()=>oi});let o=e=>Array.isArray(e);function s(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function a(e){return"string"==typeof e||Array.isArray(e)}function l(e,t,r,n){if("function"==typeof t||("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t)){let[i,o]=function(e){let t=[{},{}];return null==e||e.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}(n);t=t(void 0!==r?r:e.custom,i,o)}return t}function u(e,t,r){let n=e.getProps();return l(n,t,void 0!==r?r:n.custom,e)}let c=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],d=["initial",...c],h=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],f=new Set(h),p=e=>1e3*e,m=e=>e/1e3,v={type:"spring",stiffness:500,damping:25,restSpeed:10},g=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),y={type:"keyframes",duration:.8},w={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},b=(e,{keyframes:t})=>t.length>2?y:f.has(e)?e.startsWith("scale")?g(t[1]):v:w;function x(e,t){return e?e[t]||e.default||e:void 0}let P={skipAnimations:!1,useManualTiming:!1},E={current:!1},S=e=>null!==e;function A(e,{repeat:t,repeatType:r="loop"},n){let i=e.filter(S),o=t&&"loop"!==r&&t%2==1?0:i.length-1;return o&&void 0!==n?n:i[o]}let T=e=>e,C=["read","resolveKeyframes","update","preRender","render","postRender"];function D(e,t){let r=!1,n=!0,i={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,s=C.reduce((e,t)=>(e[t]=function(e){let t=new Set,r=new Set,n=!1,i=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function a(t){o.has(t)&&(l.schedule(t),e()),t(s)}let l={schedule:(e,i=!1,s=!1)=>{let a=s&&n?t:r;return i&&o.add(e),a.has(e)||a.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,n){i=!0;return}n=!0,[t,r]=[r,t],r.clear(),t.forEach(a),n=!1,i&&(i=!1,l.process(e))}};return l}(o),e),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:h}=s,f=()=>{let o=P.useManualTiming?i.timestamp:performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(o-i.timestamp,40),1),i.timestamp=o,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),d.process(i),h.process(i),i.isProcessing=!1,r&&t&&(n=!1,e(f))},p=()=>{r=!0,n=!0,i.isProcessing||e(f)};return{schedule:C.reduce((e,t)=>{let n=s[t];return e[t]=(e,t=!1,i=!1)=>(r||p(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<C.length;t++)s[C[t]].cancel(e)},state:i,steps:s}}let{schedule:R,cancel:M,state:k,steps:F}=D("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:T,!0),L=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function N(e,t,r,n){if(e===t&&r===n)return T;let i=t=>(function(e,t,r,n,i){let o,s;let a=0;do(o=L(s=t+(r-t)/2,n,i)-e)>0?r=s:t=s;while(Math.abs(o)>1e-7&&++a<12);return s})(t,0,1,e,r);return e=>0===e||1===e?e:L(i(e),t,n)}let O=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,j=e=>t=>1-e(1-t),V=N(.33,1.53,.69,.99),I=j(V),B=O(I),_=e=>(e*=2)<1?.5*I(e):.5*(2-Math.pow(2,-10*(e-1))),U=e=>1-Math.sin(Math.acos(e)),H=j(U),W=O(U),$=e=>/^0[^.\s]+$/u.test(e),X=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Y=e=>t=>"string"==typeof t&&t.startsWith(e),K=Y("--"),q=Y("var(--"),z=e=>!!q(e)&&G.test(e.split("/*")[0].trim()),G=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Z=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,J=(e,t,r)=>r>t?t:r<e?e:r,Q={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ee={...Q,transform:e=>J(0,1,e)},et={...Q,default:1},er=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),en=er("deg"),ei=er("%"),eo=er("px"),es=er("vh"),ea=er("vw"),el={...ei,parse:e=>ei.parse(e)/100,transform:e=>ei.transform(100*e)},eu=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ec=e=>e===Q||e===eo,ed=(e,t)=>parseFloat(e.split(", ")[t]),eh=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/u);if(i)return ed(i[1],t);{let t=n.match(/^matrix\((.+)\)$/u);return t?ed(t[1],e):0}},ef=new Set(["x","y","z"]),ep=h.filter(e=>!ef.has(e)),em={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:eh(4,13),y:eh(5,14)};em.translateX=em.x,em.translateY=em.y;let ev=e=>t=>t.test(e),eg=[Q,eo,ei,en,ea,es,{test:e=>"auto"===e,parse:e=>e}],ey=e=>eg.find(ev(e)),ew=new Set,eb=!1,ex=!1;function eP(){if(ex){let e=Array.from(ew).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;t.forEach(e=>{let t=function(e){let t=[];return ep.forEach(r=>{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,r])=>{var n;null===(n=e.getValue(t))||void 0===n||n.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}ex=!1,eb=!1,ew.forEach(e=>e.complete()),ew.clear()}function eE(){ew.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ex=!0)})}class eS{constructor(e,t,r,n,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=n,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ew.add(this),eb||(eb=!0,R.read(eE),R.resolveKeyframes(eP))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;for(let i=0;i<e.length;i++)if(null===e[i]){if(0===i){let i=null==n?void 0:n.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(r&&t){let n=r.readValue(t,o);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=o),n&&void 0===i&&n.set(e[0])}else e[i]=e[i-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ew.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ew.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let eA=e=>Math.round(1e5*e)/1e5,eT=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,eC=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,eD=(e,t)=>r=>!!("string"==typeof r&&eC.test(r)&&r.startsWith(e)||t&&null!=r&&Object.prototype.hasOwnProperty.call(r,t)),eR=(e,t,r)=>n=>{if("string"!=typeof n)return n;let[i,o,s,a]=n.match(eT);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},eM=e=>J(0,255,e),ek={...Q,transform:e=>Math.round(eM(e))},eF={test:eD("rgb","red"),parse:eR("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+ek.transform(e)+", "+ek.transform(t)+", "+ek.transform(r)+", "+eA(ee.transform(n))+")"},eL={test:eD("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:eF.transform},eN={test:eD("hsl","hue"),parse:eR("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+ei.transform(eA(t))+", "+ei.transform(eA(r))+", "+eA(ee.transform(n))+")"},eO={test:e=>eF.test(e)||eL.test(e)||eN.test(e),parse:e=>eF.test(e)?eF.parse(e):eN.test(e)?eN.parse(e):eL.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?eF.transform(e):eN.transform(e)},ej=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,eV="number",eI="color",eB=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function e_(e){let t=e.toString(),r=[],n={color:[],number:[],var:[]},i=[],o=0,s=t.replace(eB,e=>(eO.test(e)?(n.color.push(o),i.push(eI),r.push(eO.parse(e))):e.startsWith("var(")?(n.var.push(o),i.push("var"),r.push(e)):(n.number.push(o),i.push(eV),r.push(parseFloat(e))),++o,"${}")).split("${}");return{values:r,split:s,indexes:n,types:i}}function eU(e){return e_(e).values}function eH(e){let{split:t,types:r}=e_(e),n=t.length;return e=>{let i="";for(let o=0;o<n;o++)if(i+=t[o],void 0!==e[o]){let t=r[o];t===eV?i+=eA(e[o]):t===eI?i+=eO.transform(e[o]):i+=e[o]}return i}}let eW=e=>"number"==typeof e?0:e,e$={test:function(e){var t,r;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(eT))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(ej))||void 0===r?void 0:r.length)||0)>0},parse:eU,createTransformer:eH,getAnimatableNone:function(e){let t=eU(e);return eH(e)(t.map(eW))}},eX=new Set(["brightness","contrast","saturate","opacity"]);function eY(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(eT)||[];if(!n)return e;let i=r.replace(n,""),o=eX.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}let eK=/\b([a-z-]*)\(.*?\)/gu,eq={...e$,getAnimatableNone:e=>{let t=e.match(eK);return t?t.map(eY).join(" "):e}},ez={...Q,transform:Math.round},eG={borderWidth:eo,borderTopWidth:eo,borderRightWidth:eo,borderBottomWidth:eo,borderLeftWidth:eo,borderRadius:eo,radius:eo,borderTopLeftRadius:eo,borderTopRightRadius:eo,borderBottomRightRadius:eo,borderBottomLeftRadius:eo,width:eo,maxWidth:eo,height:eo,maxHeight:eo,top:eo,right:eo,bottom:eo,left:eo,padding:eo,paddingTop:eo,paddingRight:eo,paddingBottom:eo,paddingLeft:eo,margin:eo,marginTop:eo,marginRight:eo,marginBottom:eo,marginLeft:eo,backgroundPositionX:eo,backgroundPositionY:eo,rotate:en,rotateX:en,rotateY:en,rotateZ:en,scale:et,scaleX:et,scaleY:et,scaleZ:et,skew:en,skewX:en,skewY:en,distance:eo,translateX:eo,translateY:eo,translateZ:eo,x:eo,y:eo,z:eo,perspective:eo,transformPerspective:eo,opacity:ee,originX:el,originY:el,originZ:eo,zIndex:ez,size:eo,fillOpacity:ee,strokeOpacity:ee,numOctaves:ez},eZ={...eG,color:eO,backgroundColor:eO,outlineColor:eO,fill:eO,stroke:eO,borderColor:eO,borderTopColor:eO,borderRightColor:eO,borderBottomColor:eO,borderLeftColor:eO,filter:eq,WebkitFilter:eq},eJ=e=>eZ[e];function eQ(e,t){let r=eJ(e);return r!==eq&&(r=e$),r.getAnimatableNone?r.getAnimatableNone(t):void 0}let e0=new Set(["auto","none","0"]);class e1 extends eS{constructor(e,t,r,n,i){super(e,t,r,n,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let n=e[r];if("string"==typeof n&&z(n=n.trim())){let i=function e(t,r,n=1){T(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[i,o]=function(e){let t=Z.exec(e);if(!t)return[,];let[,r,n,i]=t;return[`--${null!=r?r:n}`,i]}(t);if(!i)return;let s=window.getComputedStyle(r).getPropertyValue(i);if(s){let e=s.trim();return X(e)?parseFloat(e):e}return z(o)?e(o,r,n+1):o}(n,t.current);void 0!==i&&(e[r]=i),r===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!eu.has(r)||2!==e.length)return;let[n,i]=e,o=ey(n),s=ey(i);if(o!==s){if(ec(o)&&ec(s))for(let t=0;t<e.length;t++){let r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++){var n;("number"==typeof(n=e[t])?0===n:null===n||"none"===n||"0"===n||$(n))&&r.push(t)}r.length&&function(e,t,r){let n,i=0;for(;i<e.length&&!n;){let t=e[i];"string"==typeof t&&!e0.has(t)&&e_(t).values.length&&(n=e[i]),i++}if(n&&r)for(let i of t)e[i]=eQ(r,n)}(e,r,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=em[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(r,n).jump(n,!1)}measureEndState(){var e;let{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;let i=t.getValue(r);i&&i.jump(this.measuredOrigin,!1);let o=n.length-1,s=n[o];n[o]=em[r](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach(([e,r])=>{t.getValue(e).set(r)}),this.resolveNoneKeyframes()}}function e2(e){return"function"==typeof e}function e4(){n=void 0}let e5={now:()=>(void 0===n&&e5.set(k.isProcessing||P.useManualTiming?k.timestamp:performance.now()),n),set:e=>{n=e,queueMicrotask(e4)}},e3=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(e$.test(e)||"0"===e)&&!e.startsWith("url("));class e9{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:o="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=e5.now(),this.options={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:i,repeatType:o,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(eE(),eP()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=e5.now(),this.hasAttemptedResolve=!0;let{name:r,type:n,velocity:i,delay:o,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(e,t,r,n){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],s=e3(i,t),a=e3(o,t);return T(s===a,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!!s&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||("spring"===r||e2(r))&&n)}(e,r,n,i)){if(E.current||!o){null==a||a(A(e,this.options,t)),null==s||s(),this.resolveFinishedPromise();return}this.options.duration=0}let u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function e7(e,t,r){var n,i;let o=Math.max(t-5,0);return n=r-e(o),(i=t-o)?1e3/i*n:0}function e6(e,t){return e*Math.sqrt(1-t*t)}let e8=["duration","bounce"],te=["stiffness","damping","mass"];function tt(e,t){return t.some(t=>void 0!==e[t])}function tr({keyframes:e,restDelta:t,restSpeed:r,...n}){let i;let o=e[0],s=e[e.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:d,velocity:h,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!tt(e,te)&&tt(e,e8)){let r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;T(e<=p(10),"Spring duration must be 10 seconds or less");let s=1-t;s=J(.05,1,s),e=J(.01,10,m(e)),s<1?(i=t=>{let n=t*s,i=n*e;return .001-(n-r)/e6(t,s)*Math.exp(-i)},o=t=>{let n=t*s*e,o=Math.pow(s,2)*Math.pow(t,2)*e,a=Math.exp(-n),l=e6(Math.pow(t,2),s);return(n*r+r-o)*a*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),o=t=>e*e*(r-t)*Math.exp(-t*e));let a=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,o,5/e);if(e=p(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(a,2)*n;return{stiffness:t,damping:2*s*Math.sqrt(n*t),duration:e}}}(e);(t={...t,...r,mass:1}).isResolvedFromDuration=!0}return t}({...n,velocity:-m(n.velocity||0)}),v=h||0,g=u/(2*Math.sqrt(l*c)),y=s-o,w=m(Math.sqrt(l/c)),b=5>Math.abs(y);if(r||(r=b?.01:2),t||(t=b?.005:.5),g<1){let e=e6(w,g);i=t=>s-Math.exp(-g*w*t)*((v+g*w*y)/e*Math.sin(e*t)+y*Math.cos(e*t))}else if(1===g)i=e=>s-Math.exp(-w*e)*(y+(v+w*y)*e);else{let e=w*Math.sqrt(g*g-1);i=t=>{let r=Math.exp(-g*w*t),n=Math.min(e*t,300);return s-r*((v+g*w*y)*Math.sinh(n)+e*y*Math.cosh(n))/e}}return{calculatedDuration:f&&d||null,next:e=>{let n=i(e);if(f)a.done=e>=d;else{let o=0;g<1&&(o=0===e?p(v):e7(i,e,n));let l=Math.abs(o)<=r,u=Math.abs(s-n)<=t;a.done=l&&u}return a.value=a.done?s:n,a}}}function tn({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let d,h;let f=e[0],p={done:!1,value:f},m=e=>void 0!==a&&e<a||void 0!==l&&e>l,v=e=>void 0===a?l:void 0===l?a:Math.abs(a-e)<Math.abs(l-e)?a:l,g=r*t,y=f+g,w=void 0===s?y:s(y);w!==y&&(g=w-f);let b=e=>-g*Math.exp(-e/n),x=e=>w+b(e),P=e=>{let t=b(e),r=x(e);p.done=Math.abs(t)<=u,p.value=p.done?w:r},E=e=>{m(p.value)&&(d=e,h=tr({keyframes:[p.value,v(p.value)],velocity:e7(x,e,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,P(e),E(e)),void 0!==d&&e>=d)?h.next(e-d):(t||P(e),p)}}}let ti=N(.42,0,1,1),to=N(0,0,.58,1),ts=N(.42,0,.58,1),ta=e=>Array.isArray(e)&&"number"!=typeof e[0],tl=e=>Array.isArray(e)&&"number"==typeof e[0],tu={linear:T,easeIn:ti,easeInOut:ts,easeOut:to,circIn:U,circInOut:W,circOut:H,backIn:I,backInOut:B,backOut:V,anticipate:_},tc=e=>{if(tl(e)){T(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return N(t,r,n,i)}return"string"==typeof e?(T(void 0!==tu[e],`Invalid easing type '${e}'`),tu[e]):e},td=(e,t)=>r=>t(e(r)),th=(...e)=>e.reduce(td),tf=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n},tp=(e,t,r)=>e+(t-e)*r;function tm(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function tv(e,t){return r=>r>0?t:e}let tg=(e,t,r)=>{let n=e*e,i=r*(t*t-n)+n;return i<0?0:Math.sqrt(i)},ty=[eL,eF,eN],tw=e=>ty.find(t=>t.test(e));function tb(e){let t=tw(e);if(T(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let r=t.parse(e);return t===eN&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,o=0,s=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,a=2*r-n;i=tm(a,n,e+1/3),o=tm(a,n,e),s=tm(a,n,e-1/3)}else i=o=s=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:n}}(r)),r}let tx=(e,t)=>{let r=tb(e),n=tb(t);if(!r||!n)return tv(e,t);let i={...r};return e=>(i.red=tg(r.red,n.red,e),i.green=tg(r.green,n.green,e),i.blue=tg(r.blue,n.blue,e),i.alpha=tp(r.alpha,n.alpha,e),eF.transform(i))},tP=new Set(["none","hidden"]);function tE(e,t){return r=>tp(e,t,r)}function tS(e){return"number"==typeof e?tE:"string"==typeof e?z(e)?tv:eO.test(e)?tx:tC:Array.isArray(e)?tA:"object"==typeof e?eO.test(e)?tx:tT:tv}function tA(e,t){let r=[...e],n=r.length,i=e.map((e,r)=>tS(e)(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}}function tT(e,t){let r={...e,...t},n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=tS(e[i])(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}}let tC=(e,t)=>{let r=e$.createTransformer(t),n=e_(e),i=e_(t);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?tP.has(e)&&!i.values.length||tP.has(t)&&!n.values.length?function(e,t){return tP.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}(e,t):th(tA(function(e,t){var r;let n=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){let s=t.types[o],a=e.indexes[s][i[s]],l=null!==(r=e.values[a])&&void 0!==r?r:0;n[o]=l,i[s]++}return n}(n,i),i.values),r):(T(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),tv(e,t))};function tD(e,t,r){return"number"==typeof e&&"number"==typeof t&&"number"==typeof r?tp(e,t,r):tS(e)(e,t)}function tR({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){let i=ta(n)?n.map(tc):tc(n),o={done:!1,value:t[0]},s=function(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;if(T(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];if(2===o&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,r){let n=[],i=r||tD,o=e.length-1;for(let r=0;r<o;r++){let o=i(e[r],e[r+1]);t&&(o=th(Array.isArray(t)?t[r]||T:t,o)),n.push(o)}return n}(t,n,i),a=s.length,l=t=>{let r=0;if(a>1)for(;r<e.length-2&&!(t<e[r+1]);r++);let n=tf(e[r],e[r+1],t);return s[r](n)};return r?t=>l(J(e[0],e[o-1],t)):l}((r&&r.length===t.length?r:function(e){let t=[0];return function(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let i=tf(0,t,n);e.push(tp(r,1,i))}}(t,e.length-1),t}(t)).map(t=>t*e),t,{ease:Array.isArray(i)?i:t.map(()=>i||ts).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}let tM=e=>{let t=({timestamp:t})=>e(t);return{start:()=>R.update(t,!0),stop:()=>M(t),now:()=>k.isProcessing?k.timestamp:e5.now()}},tk={decay:tn,inertia:tn,tween:tR,keyframes:tR,spring:tr},tF=e=>e/100;class tL extends e9{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{let{onStop:e}=this.options;e&&e(),this.resolver.cancel(),this.isStopped=!0,"idle"!==this.state&&this.teardown()};let{name:t,motionValue:r,element:n,keyframes:i}=this.options,o=(null==n?void 0:n.KeyframeResolver)||eS;this.resolver=new o(i,(e,t)=>this.onKeyframesResolved(e,t),t,r,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let t,r;let{type:n="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s,velocity:a=0}=this.options,l=e2(n)?n:tk[n]||tR;l!==tR&&"number"!=typeof e[0]&&(t=th(tF,tD(e[0],e[1])),e=[0,100]);let u=l({...this.options,keyframes:e});"mirror"===s&&(r=l({...this.options,keyframes:[...e].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=function(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}(u));let{calculatedDuration:c}=u,d=c+o;return{generator:u,mirroredGenerator:r,mapPercentToKeyframes:t,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(i+1)-o}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){let{resolved:r}=this;if(!r){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:n,generator:i,mirroredGenerator:o,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=r;if(null===this.startTime)return i.next(0);let{delay:d,repeat:h,repeatType:f,repeatDelay:p,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let v=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,w=i;if(h){let e=Math.min(this.currentTime,u)/c,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,h+1))%2&&("reverse"===f?(r=1-r,p&&(r-=p/c)):"mirror"===f&&(w=o)),y=J(0,1,r)*c}let b=g?{done:!1,value:a[0]}:w.next(y);s&&(b.value=s(b.value));let{done:x}=b;g||null===l||(x=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return P&&void 0!==n&&(b.value=A(a,this.options,n)),m&&m(b.value),P&&this.finish(),b}get duration(){let{resolved:e}=this;return e?m(e.calculatedDuration):0}get time(){return m(this.currentTime)}set time(e){e=p(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=m(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=tM,onPlay:t,startTime:r}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=r?r:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}let tN=new Set(["opacity","clipPath","filter","transform"]),tO=(e,t)=>{let r="",n=Math.max(Math.round(t/10),2);for(let t=0;t<n;t++)r+=e(tf(0,n-1,t))+", ";return`linear(${r.substring(0,r.length-2)})`};function tj(e){let t;return()=>(void 0===t&&(t=e()),t)}let tV={linearEasing:void 0},tI=function(e,t){let r=tj(e);return()=>{var e;return null!==(e=tV[t])&&void 0!==e?e:r()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),tB=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,t_={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tB([0,.65,.55,1]),circOut:tB([.55,0,1,.45]),backIn:tB([.31,.01,.66,-.59]),backOut:tB([.33,1.53,.69,.99])};function tU(e,t){e.timeline=t,e.onfinish=null}let tH=tj(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),tW={anticipate:_,backInOut:B,circInOut:W};class t$ extends e9{constructor(e){super(e);let{name:t,motionValue:r,element:n,keyframes:i}=this.options;this.resolver=new e1(i,(e,t)=>this.onKeyframesResolved(e,t),t,r,n),this.resolver.scheduleResolve()}initPlayback(e,t){var r,n;let{duration:i=300,times:o,ease:s,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(null===(r=l.owner)||void 0===r?void 0:r.current))return!1;if("string"==typeof s&&tI()&&s in tW&&(s=tW[s]),e2((n=this.options).type)||"spring"===n.type||!function e(t){return!!("function"==typeof t&&tI()||!t||"string"==typeof t&&(t in t_||tI())||tl(t)||Array.isArray(t)&&t.every(e))}(n.ease)){let{onComplete:t,onUpdate:r,motionValue:n,element:l,...u}=this.options,c=function(e,t){let r=new tL({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:e[0]},i=[],o=0;for(;!n.done&&o<2e4;)i.push((n=r.sample(o)).value),o+=10;return{times:void 0,keyframes:i,duration:o-10,ease:"linear"}}(e,u);1===(e=c.keyframes).length&&(e[1]=e[0]),i=c.duration,o=c.times,s=c.ease,a="keyframes"}let d=function(e,t,r,{delay:n=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){let u={[t]:r};l&&(u.offset=l);let c=function e(t,r){if(t)return"function"==typeof t&&tI()?tO(t,r):tl(t)?tB(t):Array.isArray(t)?t.map(t=>e(t,r)||t_.easeOut):t_[t]}(a,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(l.owner.current,u,e,{...this.options,duration:i,times:o,ease:s});return d.startTime=null!=c?c:this.calcStartTime(),this.pendingTimeline?(tU(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:r}=this.options;l.set(A(e,this.options,t)),r&&r(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:i,times:o,type:a,ease:s,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return m(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return m(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.currentTime=p(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return T;let{animation:r}=t;tU(r,e)}else this.pendingTimeline=e;return T}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:r,duration:n,type:i,ease:o,times:s}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:a,element:l,...u}=this.options,c=new tL({...u,keyframes:r,duration:n,type:i,ease:o,times:s,isGenerator:!0}),d=p(this.time);e.setWithVelocity(c.sample(d-10).value,c.sample(d).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:r,repeatDelay:n,repeatType:i,damping:o,type:s}=e;return tH()&&r&&tN.has(r)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!n&&"mirror"!==i&&0!==o&&"inertia"!==s}}let tX=tj(()=>void 0!==window.ScrollTimeline);class tY{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=t}attachTimeline(e,t){let r=this.animations.map(r=>tX()&&r.attachTimeline?r.attachTimeline(e):t(r));return()=>{r.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let tK=(e,t,r,n={},i,o)=>s=>{let a=x(n,e)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=p(l);let c={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};!function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(a)&&(c={...c,...b(e,c)}),c.duration&&(c.duration=p(c.duration)),c.repeatDelay&&(c.repeatDelay=p(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(c.duration=0,0!==c.delay||(d=!0)),(E.current||P.skipAnimations)&&(d=!0,c.duration=0,c.delay=0),d&&!o&&void 0!==t.get()){let e=A(c.keyframes,a);if(void 0!==e)return R.update(()=>{c.onUpdate(e),c.onComplete()}),new tY([])}return!o&&t$.supports(c)?new t$(c):new tL(c)},tq=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),tz=e=>o(e)?e[e.length-1]||0:e;function tG(e,t){-1===e.indexOf(t)&&e.push(t)}function tZ(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}class tJ{constructor(){this.subscriptions=[]}add(e){return tG(this.subscriptions,e),()=>tZ(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i<n;i++){let n=this.subscriptions[i];n&&n(e,t,r)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let tQ=e=>!isNaN(parseFloat(e)),t0={current:void 0};class t1{constructor(e,t={}){this.version="12.0.0-alpha.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let r=e5.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=e5.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=tQ(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new tJ);let r=this.events[e].add(t);return"change"===e?()=>{r(),R.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return t0.current&&t0.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=e5.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),r?1e3/r*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function t2(e,t){return new t1(e,t)}let t4=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),t5="data-"+t4("framerAppearId"),t3=e=>!!(e&&e.getVelocity);function t9(e,t){let r=e.getValue("willChange");if(t3(r)&&r.add)return r.add(t)}function t7(e,t,{delay:r=0,transitionOverride:n,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;n&&(s=n);let c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in l){let n=e.getValue(t,null!==(o=e.latestValues[t])&&void 0!==o?o:null),i=l[t];if(void 0===i||d&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(d,t))continue;let a={delay:r,...x(s||{},t)},u=!1;if(window.MotionHandoffAnimation){let r=e.props[t5];if(r){let e=window.MotionHandoffAnimation(r,t,R);null!==e&&(a.startTime=e,u=!0)}}t9(e,t),n.start(tK(t,n,i,e.shouldReduceMotion&&f.has(t)?{type:!1}:a,e,u));let h=n.animation;h&&c.push(h)}return a&&Promise.all(c).then(()=>{R.update(()=>{a&&function(e,t){let{transitionEnd:r={},transition:n={},...i}=u(e,t)||{};for(let t in i={...i,...r}){let r=tz(i[t]);e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,t2(r))}}(e,a)})}),c}function t6(e,t,r={}){var n;let i=u(e,t,"exit"===r.type?null===(n=e.presenceContext)||void 0===n?void 0:n.custom:void 0),{transition:o=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(o=r.transitionOverride);let s=i?()=>Promise.all(t7(e,i,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=o;return function(e,t,r=0,n=0,i=1,o){let s=[],a=(e.variantChildren.size-1)*n,l=1===i?(e=0)=>e*n:(e=0)=>a-e*n;return Array.from(e.variantChildren).sort(t8).forEach((e,n)=>{e.notify("AnimationStart",t),s.push(t6(e,t,{...o,delay:r+l(n)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,i+n,s,a,r)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([s(),a(r.delay)]);{let[e,t]="beforeChildren"===l?[s,a]:[a,s];return e().then(()=>t())}}function t8(e,t){return e.sortNodePosition(t)}let re=d.length,rt=[...c].reverse(),rr=c.length;function rn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ri(){return{animate:rn(!0),whileInView:rn(),whileHover:rn(),whileTap:rn(),whileDrag:rn(),whileFocus:rn(),exit:rn()}}class ro{constructor(e){this.isMounted=!1,this.node=e}update(){}}class rs extends ro{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>t6(e,t,r)));else if("string"==typeof t)n=t6(e,t,r);else{let i="function"==typeof t?u(e,t,r.custom):t;n=Promise.all(t7(e,i,r))}return n.then(()=>{e.notify("AnimationComplete",t)})})(e,t,r))),r=ri(),n=!0,l=t=>(r,n)=>{var i;let o=u(e,n,"exit"===t?null===(i=e.presenceContext)||void 0===i?void 0:i.custom:void 0);if(o){let{transition:e,transitionEnd:t,...n}=o;r={...r,...n,...t}}return r};function c(u){let{props:c}=e,h=function e(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(r.initial=t.props.initial),r}let r={};for(let e=0;e<re;e++){let n=d[e],i=t.props[n];(a(i)||!1===i)&&(r[n]=i)}return r}(e.parent)||{},f=[],p=new Set,m={},v=1/0;for(let t=0;t<rr;t++){var g;let d=rt[t],y=r[d],w=void 0!==c[d]?c[d]:h[d],b=a(w),x=d===u?y.isActive:null;!1===x&&(v=t);let P=w===h[d]&&w!==c[d]&&b;if(P&&n&&e.manuallyAnimateOnMount&&(P=!1),y.protectedKeys={...m},!y.isActive&&null===x||!w&&!y.prevProp||i(w)||"boolean"==typeof w)continue;let E=(g=y.prevProp,"string"==typeof w?w!==g:!!Array.isArray(w)&&!s(w,g)),S=E||d===u&&y.isActive&&!P&&b||t>v&&b,A=!1,T=Array.isArray(w)?w:[w],C=T.reduce(l(d),{});!1===x&&(C={});let{prevResolvedValues:D={}}=y,R={...D,...C},M=t=>{S=!0,p.has(t)&&(A=!0,p.delete(t)),y.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in R){let t=C[e],r=D[e];if(!m.hasOwnProperty(e))(o(t)&&o(r)?s(t,r):t===r)?void 0!==t&&p.has(e)?M(e):y.protectedKeys[e]=!0:null!=t?M(e):p.add(e)}y.prevProp=w,y.prevResolvedValues=C,y.isActive&&(m={...m,...C}),n&&e.blockInitialAnimation&&(S=!1);let k=!(P&&E)||A;S&&k&&f.push(...T.map(e=>({animation:e,options:{type:d}})))}if(p.size){let t={};p.forEach(r=>{let n=e.getBaseTarget(r),i=e.getValue(r);i&&(i.liveStyle=!0),t[r]=null!=n?n:null}),f.push({animation:t})}let y=!!f.length;return n&&(!1===c.initial||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(y=!1),n=!1,y?t(f):Promise.resolve()}return{animateChanges:c,setActive:function(t,n){var i;if(r[t].isActive===n)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach(e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;let o=c(t);for(let e in r)r[e].protectedKeys={};return o},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=ri(),n=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();i(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}let ra=0;class rl extends ro{constructor(){super(...arguments),this.id=ra++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}let ru=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function rc(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}let rd=e=>t=>ru(t)&&e(t,rc(t));function rh(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function rf(e,t,r,n){return rh(e,t,rd(r),n)}let rp=(e,t)=>Math.abs(e-t);class rm{constructor(e,t,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=ry(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){return Math.sqrt(rp(e.x,t.x)**2+rp(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;let{point:n}=e,{timestamp:i}=k;this.history.push({...n,timestamp:i});let{onStart:o,onMove:s}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=rv(t,this.transformPagePoint),R.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=ry("pointercancel"===e.type?this.lastMoveEventInfo:rv(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,o),n&&n(e,o)},!ru(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||window;let o=rv(rc(e),this.transformPagePoint),{point:s}=o,{timestamp:a}=k;this.history=[{...s,timestamp:a}];let{onSessionStart:l}=t;l&&l(e,ry(o,this.history)),this.removeListeners=th(rf(this.contextWindow,"pointermove",this.handlePointerMove),rf(this.contextWindow,"pointerup",this.handlePointerUp),rf(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),M(this.updatePoint)}}function rv(e,t){return t?{point:t(e.point)}:e}function rg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ry({point:e},t){return{point:e,delta:rg(e,rw(t)),offset:rg(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=rw(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>p(.1)));)r--;if(!n)return{x:0,y:0};let o=m(i.timestamp-n.timestamp);if(0===o)return{x:0,y:0};let s={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t,0)}}function rw(e){return e[e.length-1]}function rb(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let rx=rb("dragHorizontal"),rP=rb("dragVertical");function rE(e){let t=!1;if("y"===e)t=rP();else if("x"===e)t=rx();else{let e=rx(),r=rP();e&&r?t=()=>{e(),r()}:(e&&e(),r&&r())}return t}function rS(){let e=rE(!0);return!e||(e(),!1)}function rA(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function rT(e){return e.max-e.min}function rC(e,t,r,n=.5){e.origin=n,e.originPoint=tp(t.min,t.max,e.origin),e.scale=rT(r)/rT(t),e.translate=tp(r.min,r.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function rD(e,t,r,n){rC(e.x,t.x,r.x,n?n.originX:void 0),rC(e.y,t.y,r.y,n?n.originY:void 0)}function rR(e,t,r){e.min=r.min+t.min,e.max=e.min+rT(t)}function rM(e,t,r){e.min=t.min-r.min,e.max=e.min+rT(t)}function rk(e,t,r){rM(e.x,t.x,r.x),rM(e.y,t.y,r.y)}function rF(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function rL(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function rN(e,t,r){return{min:rO(e,t),max:rO(e,r)}}function rO(e,t){return"number"==typeof e?e:e[t]||0}let rj=()=>({translate:0,scale:1,origin:0,originPoint:0}),rV=()=>({x:rj(),y:rj()}),rI=()=>({min:0,max:0}),rB=()=>({x:rI(),y:rI()});function r_(e){return[e("x"),e("y")]}function rU({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function rH(e){return void 0===e||1===e}function rW({scale:e,scaleX:t,scaleY:r}){return!rH(e)||!rH(t)||!rH(r)}function r$(e){return rW(e)||rX(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function rX(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function rY(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function rK(e,t=0,r=1,n,i){e.min=rY(e.min,t,r,n,i),e.max=rY(e.max,t,r,n,i)}function rq(e,{x:t,y:r}){rK(e.x,t.translate,t.scale,t.originPoint),rK(e.y,r.translate,r.scale,r.originPoint)}function rz(e,t){e.min=e.min+t,e.max=e.max+t}function rG(e,t,r,n,i=.5){let o=tp(e.min,e.max,i);rK(e,t,r,o,n)}function rZ(e,t){rG(e.x,t.x,t.scaleX,t.scale,t.originX),rG(e.y,t.y,t.scaleY,t.scale,t.originY)}function rJ(e,t){return rU(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}let rQ=({current:e})=>e?e.ownerDocument.defaultView:null,r0=new WeakMap;class r1{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rB(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new rm(e,{onSessionStart:e=>{let{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(rc(e,"page").point)},onStart:(e,t)=>{let{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=rE(r),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),r_(e=>{let t=this.getAxisMotionValue(e).get()||0;if(ei.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[e];n&&(t=rT(n)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&R.postRender(()=>i(e,t)),t9(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:o}=this.getProps();if(!r&&!this.openGlobalLock)return;let{offset:s}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>r_(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:rQ(this.visualElement)})}stop(e,t){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:n}=t;this.startAnimation(n);let{onDragEnd:i}=this.getProps();i&&R.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!r2(e,n,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?tp(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?tp(r,e,n.max):Math.min(e,r)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,i=this.constraints;t&&rA(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=function(e,{top:t,left:r,bottom:n,right:i}){return{x:rF(e.x,r,i),y:rF(e.y,t,n)}}(n.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:rN(e,"left","right"),y:rN(e,"top","bottom")}}(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&r_(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!rA(t))return!1;let n=t.current;T(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,r){let n=rJ(e,r),{scroll:i}=t;return i&&(rz(n.x,i.offset.x),rz(n.y,i.offset.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),s={x:rL((e=i.layout.layoutBox).x,o.x),y:rL(e.y,o.y)};if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=rU(e))}return s}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(r_(s=>{if(!r2(s,t,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:r?e[s]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return t9(this.visualElement,e),r.start(tK(e,r,0,t,this.visualElement,!1))}stopAnimation(){r_(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){r_(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){r_(t=>{let{drag:r}=this.getProps();if(!r2(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:o}=n.layout.layoutBox[t];i.set(e[t]-tp(r,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!rA(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};r_(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let r=t.get();n[e]=function(e,t){let r=.5,n=rT(e),i=rT(t);return i>n?r=tf(t.min,t.max-n,e.min):n>i&&(r=tf(e.min,e.max-i,t.min)),J(0,1,r)}({min:r,max:r},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),r_(t=>{if(!r2(t,e,null))return;let r=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];r.set(tp(i,o,n[t]))})}addListeners(){if(!this.visualElement.current)return;r0.set(this.visualElement,this);let e=rf(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();rA(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),R.read(t);let i=rh(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(r_(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),n(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function r2(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}class r4 extends ro{constructor(e){super(e),this.removeGroupControls=T,this.removeListeners=T,this.controls=new r1(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||T}unmount(){this.removeGroupControls(),this.removeListeners()}}let r5=e=>(t,r)=>{e&&R.postRender(()=>e(t,r))};class r3 extends ro{constructor(){super(...arguments),this.removePointerDownListener=T}onPointerDown(e){this.session=new rm(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rQ(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:r5(e),onStart:r5(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&R.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=rf(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var r9,r7,r6=r(55552),r8=r(72300);let ne=(0,r8.createContext)(null),nt=(0,r8.createContext)({}),nr=(0,r8.createContext)({}),nn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ni(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let no={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!eo.test(e))return e;e=parseFloat(e)}let r=ni(e,t.target.x),n=ni(e,t.target.y);return`${r}% ${n}%`}},ns={},{schedule:na,cancel:nl}=D(queueMicrotask,!1);class nu extends r8.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;Object.assign(ns,nd),i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),nn.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,n||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||R.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),na.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nc(e){let[t,r]=function(){let e=(0,r8.useContext)(ne);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,i=(0,r8.useId)();(0,r8.useEffect)(()=>n(i),[]);let o=(0,r8.useCallback)(()=>r&&r(i),[i,r]);return!t&&r?[!1,o]:[!0]}(),n=(0,r8.useContext)(nt);return(0,r6.jsx)(nu,{...e,layoutGroup:n,switchLayoutGroup:(0,r8.useContext)(nr),isPresent:t,safeToRemove:r})}let nd={borderRadius:{...no,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:no,borderTopRightRadius:no,borderBottomLeftRadius:no,borderBottomRightRadius:no,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e$.parse(e);if(n.length>5)return e;let i=e$.createTransformer(e),o="number"!=typeof n[0]?1:0,s=r.x.scale*t.x,a=r.y.scale*t.y;n[0+o]/=s,n[1+o]/=a;let l=tp(s,a,.5);return"number"==typeof n[2+o]&&(n[2+o]/=l),"number"==typeof n[3+o]&&(n[3+o]/=l),i(n)}}},nh=["TopLeft","TopRight","BottomLeft","BottomRight"],nf=nh.length,np=e=>"string"==typeof e?parseFloat(e):e,nm=e=>"number"==typeof e||eo.test(e);function nv(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let ng=nw(0,.5,H),ny=nw(.5,.95,T);function nw(e,t,r){return n=>n<e?0:n>t?1:r(tf(e,t,n))}function nb(e,t){e.min=t.min,e.max=t.max}function nx(e,t){nb(e.x,t.x),nb(e.y,t.y)}function nP(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nE(e,t,r,n,i){return e-=t,e=n+1/r*(e-n),void 0!==i&&(e=n+1/i*(e-n)),e}function nS(e,t,[r,n,i],o,s){!function(e,t=0,r=1,n=.5,i,o=e,s=e){if(ei.test(t)&&(t=parseFloat(t),t=tp(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=tp(o.min,o.max,n);e===o&&(a-=t),e.min=nE(e.min,t,r,a,i),e.max=nE(e.max,t,r,a,i)}(e,t[r],t[n],t[i],t.scale,o,s)}let nA=["x","scaleX","originX"],nT=["y","scaleY","originY"];function nC(e,t,r,n){nS(e.x,t,nA,r?r.x:void 0,n?n.x:void 0),nS(e.y,t,nT,r?r.y:void 0,n?n.y:void 0)}function nD(e){return 0===e.translate&&1===e.scale}function nR(e){return nD(e.x)&&nD(e.y)}function nM(e,t){return e.min===t.min&&e.max===t.max}function nk(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function nF(e,t){return nk(e.x,t.x)&&nk(e.y,t.y)}function nL(e){return rT(e.x)/rT(e.y)}function nN(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class nO{constructor(){this.members=[]}add(e){tG(this.members,e),e.scheduleRender()}remove(e){if(tZ(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let r=this.members.findIndex(t=>e===t);if(0===r)return!1;for(let e=r;e>=0;e--){let r=this.members[e];if(!1!==r.isPresent){t=r;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:n}=e.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let nj=(e,t)=>e.depth-t.depth;class nV{constructor(){this.children=[],this.isDirty=!1}add(e){tG(this.children,e),this.isDirty=!0}remove(e){tZ(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(nj),this.isDirty=!1,this.children.forEach(e)}}function nI(e){let t=t3(e)?e.get():e;return tq(t)?t.toValue():t}let nB={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},n_="undefined"!=typeof window&&void 0!==window.MotionDebug,nU=["","X","Y","Z"],nH={visibility:"hidden"},nW=0;function n$(e,t,r,n){let{latestValues:i}=t;i[e]&&(r[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function nX({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e={},r=null==t?void 0:t()){this.id=nW++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,n_&&(nB.totalNodes=nB.resolvedTargetDeltas=nB.recalculatedProjection=0),this.nodes.forEach(nq),this.nodes.forEach(n1),this.nodes.forEach(n2),this.nodes.forEach(nz),n_&&window.MotionDebug.record(nB)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new nV)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new tJ),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,r=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:n,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(i||n)&&(this.isLayoutDirty=!0),e){let r;let n=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){let r=e5.now(),n=({timestamp:t})=>{let i=t-r;i>=250&&(M(n),e(i-250))};return R.read(n,!0),()=>M(n)}(n,250),nn.hasAnimatedSinceResize&&(nn.hasAnimatedSinceResize=!1,this.nodes.forEach(n0))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&o&&(n||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||o.getDefaultTransition()||n6,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!nF(this.targetLayout,n)||r,u=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...x(i,"layout"),onPlay:s,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||n0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,M(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(n4),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:r}=t.options;if(!r)return;let n=r.props[t5];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:e,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",R,!(e||r))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(nZ);return}this.isUpdating||this.nodes.forEach(nJ),this.isUpdating=!1,this.nodes.forEach(nQ),this.nodes.forEach(nY),this.nodes.forEach(nK),this.clearAllSnapshots();let e=e5.now();k.delta=J(0,1e3/60,e-k.timestamp),k.timestamp=e,k.isProcessing=!0,F.update.process(k),F.preRender.process(k),F.render.process(k),k.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,na.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nG),this.sharedNodes.forEach(n5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,R.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){R.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=rB(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){let t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!nR(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,o=n!==this.prevTransformTemplateValue;e&&(t||r$(this.latestValues)||o)&&(i(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),n=this.removeElementScroll(r);return e&&(n=this.removeTransform(n)),it((t=n).x),it(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;let{visualElement:t}=this.options;if(!t)return rB();let r=t.measureViewportBox();if(!((null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)||this.path.some(ii))){let{scroll:e}=this.root;e&&(rz(r.x,e.offset.x),rz(r.y,e.offset.y))}return r}removeElementScroll(e){var t;let r=rB();if(nx(r,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return r;for(let t=0;t<this.path.length;t++){let n=this.path[t],{scroll:i,options:o}=n;n!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&nx(r,e),rz(r.x,i.offset.x),rz(r.y,i.offset.y))}return r}applyTransform(e,t=!1){let r=rB();nx(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&rZ(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),r$(n.latestValues)&&rZ(r,n.latestValues)}return r$(this.latestValues)&&rZ(r,this.latestValues),r}removeTransform(e){let t=rB();nx(t,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];if(!r.instance||!r$(r.latestValues))continue;rW(r.latestValues)&&r.updateSnapshot();let n=rB();nx(n,r.measurePageBox()),nC(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return r$(this.latestValues)&&nC(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==k.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,r,n,i;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let s=!!this.resumingFrom||this!==o;if(!(e||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=k.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rB(),this.relativeTargetOrigin=rB(),rk(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),nx(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=rB(),this.targetWithTransforms=rB()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),r=this.target,n=this.relativeTarget,i=this.relativeParent.target,rR(r.x,n.x,i.x),rR(r.y,n.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nx(this.target,this.layout.layoutBox),rq(this.target,this.targetDelta)):nx(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rB(),this.relativeTargetOrigin=rB(),rk(this.relativeTargetOrigin,this.target,e.target),nx(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}n_&&nB.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||rW(this.parent.latestValues)||rX(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),r=!!this.resumingFrom||this!==t,n=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(n=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===k.timestamp&&(n=!1),n)return;let{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;nx(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(e,t,r,n=!1){let i,o;let s=r.length;if(s){t.x=t.y=1;for(let a=0;a<s;a++){o=(i=r[a]).projectionDelta;let{visualElement:s}=i.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&rZ(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,rq(e,o)),n&&r$(i.latestValues)&&rZ(e,i.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,r),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=rB());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nP(this.prevProjectionDelta.x,this.projectionDelta.x),nP(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rD(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&nN(this.projectionDelta.x,this.prevProjectionDelta.x)&&nN(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),n_&&nB.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=rV(),this.projectionDelta=rV(),this.projectionDeltaWithTransform=rV()}setAnimationOrigin(e,t=!1){let r;let n=this.snapshot,i=n?n.latestValues:{},o={...this.latestValues},s=rV();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let a=rB(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(n7));this.animationProgress=0,this.mixTargetDelta=t=>{let n=t/1e3;if(n3(s.x,e.x,n),n3(s.y,e.y,n),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,f,p;rk(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,n9(f.x,p.x,a.x,n),n9(f.y,p.y,a.y,n),r&&(u=this.relativeTarget,h=r,nM(u.x,h.x)&&nM(u.y,h.y))&&(this.isProjectionDirty=!1),r||(r=rB()),nx(r,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,r,n,i,o){i?(e.opacity=tp(0,void 0!==r.opacity?r.opacity:1,ng(n)),e.opacityExit=tp(void 0!==t.opacity?t.opacity:1,0,ny(n))):o&&(e.opacity=tp(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let i=0;i<nf;i++){let o=`border${nh[i]}Radius`,s=nv(t,o),a=nv(r,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||nm(s)===nm(a)?(e[o]=Math.max(tp(np(s),np(a),n),0),(ei.test(a)||ei.test(s))&&(e[o]+="%")):e[o]=a)}(t.rotate||r.rotate)&&(e.rotate=tp(t.rotate||0,r.rotate||0,n))}(o,i,this.latestValues,n,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(M(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=R.update(()=>{nn.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){let n=t3(0)?0:t2(0);return n.start(tK("",n,1e3,r)),n.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&ir(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||rB();let t=rT(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=rT(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}nx(t,r),rZ(t,i),rD(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nO),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;let n={};r.z&&n$("z",e,n,this.animationValues);for(let t=0;t<nU.length;t++)n$(`rotate${nU[t]}`,e,n,this.animationValues),n$(`skew${nU[t]}`,e,n,this.animationValues);for(let t in e.render(),n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}getProjectionStyles(e){var t,r;if(!this.instance||this.isSVG)return;if(!this.isVisible)return nH;let n={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=nI(null==e?void 0:e.pointerEvents)||"",n.transform=i?i(this.latestValues,""):"none",n;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=nI(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!r$(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}let s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),n.transform=function(e,t,r){let n="",i=e.x.translate/t.x,o=e.y.translate/t.y,s=(null==r?void 0:r.z)||0;if((i||o||s)&&(n=`translate3d(${i}px, ${o}px, ${s}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:s,skewY:a}=r;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),i&&(n+=`rotateX(${i}deg) `),o&&(n+=`rotateY(${o}deg) `),s&&(n+=`skewX(${s}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),i&&(n.transform=i(s,n.transform));let{x:a,y:l}=this.projectionDelta;for(let e in n.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?n.opacity=o===this?null!==(r=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:n.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,ns){if(void 0===s[e])continue;let{correct:t,applyTo:r}=ns[e],i="none"===n.transform?s[e]:t(s[e],o);if(r){let e=r.length;for(let t=0;t<e;t++)n[r[t]]=i}else n[e]=i}return this.options.layoutId&&(n.pointerEvents=o===this?nI(null==e?void 0:e.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(nZ),this.root.sharedNodes.clear()}}}function nY(e){e.updateLayout()}function nK(e){var t;let r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:n}=e.layout,{animationType:i}=e.options,o=r.source!==e.layout.source;"size"===i?r_(e=>{let n=o?r.measuredBox[e]:r.layoutBox[e],i=rT(n);n.min=t[e].min,n.max=n.min+i}):ir(i,r.layoutBox,t)&&r_(n=>{let i=o?r.measuredBox[n]:r.layoutBox[n],s=rT(t[n]);i.max=i.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+s)});let s=rV();rD(s,t,r.layoutBox);let a=rV();o?rD(a,e.applyTransform(n,!0),r.measuredBox):rD(a,t,r.layoutBox);let l=!nR(s),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:i,layout:o}=n;if(i&&o){let s=rB();rk(s,r.layoutBox,i.layoutBox);let a=rB();rk(a,t,o.layoutBox),nF(s,a)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function nq(e){n_&&nB.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function nz(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nG(e){e.clearSnapshot()}function nZ(e){e.clearMeasurements()}function nJ(e){e.isLayoutDirty=!1}function nQ(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function n0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function n1(e){e.resolveTargetDelta()}function n2(e){e.calcProjection()}function n4(e){e.resetSkewAndRotation()}function n5(e){e.removeLeadSnapshot()}function n3(e,t,r){e.translate=tp(t.translate,0,r),e.scale=tp(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function n9(e,t,r,n){e.min=tp(t.min,r.min,n),e.max=tp(t.max,r.max,n)}function n7(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let n6={duration:.45,ease:[.4,0,.1,1]},n8=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ie=n8("applewebkit/")&&!n8("chrome/")?Math.round:T;function it(e){e.min=ie(e.min),e.max=ie(e.max)}function ir(e,t,r){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(nL(t)-nL(r)))}function ii(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}let io=nX({attachResizeListener:(e,t)=>rh(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),is={current:void 0},ia=nX({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!is.current){let e=new io({});e.mount(window),e.setOptions({layoutScroll:!0}),is.current=e}return is.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function il(e,t){let r=t?"onHoverStart":"onHoverEnd";return rf(e.current,t?"pointerenter":"pointerleave",(n,i)=>{if("touch"===n.pointerType||rS())return;let o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t);let s=o[r];s&&R.postRender(()=>s(n,i))},{passive:!e.getProps()[r]})}class iu extends ro{mount(){this.unmount=th(il(this.node,!0),il(this.node,!1))}unmount(){}}class ic extends ro{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=th(rh(this.node.current,"focus",()=>this.onFocus()),rh(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let id=(e,t)=>!!t&&(e===t||id(e,t.parentElement));function ih(e,t){if(!t)return;let r=new PointerEvent("pointer"+e);t(r,rc(r))}class ip extends ro{constructor(){super(...arguments),this.removeStartListeners=T,this.removeEndListeners=T,this.removeAccessibleListeners=T,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();let r=this.node.getProps(),n=rf(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;let{onTap:r,onTapCancel:n,globalTapTarget:i}=this.node.getProps(),o=i||id(this.node.current,e.target)?r:n;o&&R.update(()=>o(e,t))},{passive:!(r.onTap||r.onPointerUp)}),i=rf(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=th(n,i),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=rh(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=rh(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&ih("up",(e,t)=>{let{onTap:r}=this.node.getProps();r&&R.postRender(()=>r(e,t))})}),ih("down",(e,t)=>{this.startPress(e,t)}))}),t=rh(this.node.current,"blur",()=>{this.isPressing&&ih("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=th(e,t)}}startPress(e,t){this.isPressing=!0;let{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&R.postRender(()=>r(e,t))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!rS()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:r}=this.node.getProps();r&&R.postRender(()=>r(e,t))}mount(){let e=this.node.getProps(),t=rf(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=rh(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=th(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let im=new WeakMap,iv=new WeakMap,ig=e=>{let t=im.get(e.target);t&&t(e)},iy=e=>{e.forEach(ig)},iw={some:0,all:1};class ib extends ro{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:iw[n]};return function(e,t,r){let n=function({root:e,...t}){let r=e||document;iv.has(r)||iv.set(r,{});let n=iv.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(iy,{root:e,...t})),n[i]}(t);return im.set(e,r),n.observe(e),()=>{im.delete(e),n.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),o=t?r:n;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}let ix=(0,r8.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),iP=(0,r8.createContext)({}),iE="undefined"!=typeof window,iS=iE?r8.useLayoutEffect:r8.useEffect,iA=(0,r8.createContext)({strict:!1});function iT(e){return i(e.animate)||d.some(t=>a(e[t]))}function iC(e){return!!(iT(e)||e.variants)}function iD(e){return Array.isArray(e)?e.join(" "):e}let iR={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},iM={};for(let e in iR)iM[e]={isEnabled:t=>iR[e].some(e=>!!t[e])};let ik=Symbol.for("motionComponentSymbol"),iF=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function iL(e){if("string"!=typeof e||e.includes("-"));else if(iF.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}function iN(e,{style:t,vars:r},n,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(n)),r)e.style.setProperty(o,r[o])}let iO=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ij(e,t,r,n){for(let r in iN(e,t,void 0,n),t.attrs)e.setAttribute(iO.has(r)?r:t4(r),t.attrs[r])}function iV(e,{layout:t,layoutId:r}){return f.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!ns[e]||"opacity"===e)}function iI(e,t,r){var n;let{style:i}=e,o={};for(let s in i)(t3(i[s])||t.style&&t3(t.style[s])||iV(s,e)||(null===(n=null==r?void 0:r.getValue(s))||void 0===n?void 0:n.liveStyle)!==void 0)&&(o[s]=i[s]);return o}function iB(e,t,r){let n=iI(e,t,r);for(let r in e)(t3(e[r])||t3(t[r]))&&(n[-1!==h.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}let i_=e=>(t,r)=>{let n=(0,r8.useContext)(iP),o=(0,r8.useContext)(ne),s=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,s){let a={latestValues:function(e,t,r,n){let o={},s=n(e,{});for(let e in s)o[e]=nI(s[e]);let{initial:a,animate:u}=e,c=iT(e),d=iC(e);t&&d&&!c&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===u&&(u=t.animate));let h=!!r&&!1===r.initial,f=(h=h||!1===a)?u:a;if(f&&"boolean"!=typeof f&&!i(f)){let t=Array.isArray(f)?f:[f];for(let r=0;r<t.length;r++){let n=l(e,t[r]);if(n){let{transitionEnd:e,transition:t,...r}=n;for(let e in r){let t=r[e];if(Array.isArray(t)){let e=h?t.length-1:0;t=t[e]}null!==t&&(o[e]=t)}for(let t in e)o[t]=e[t]}}}return o}(n,o,s,e),renderState:t()};return r&&(a.mount=e=>r(n,e,a)),a})(e,t,n,o);return r?s():function(e){let t=(0,r8.useRef)(null);return null===t.current&&(t.current=e()),t.current}(s)},iU=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),iH=()=>({...iU(),attrs:{}}),iW=(e,t)=>t&&"number"==typeof e?t.transform(e):e,i$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iX=h.length;function iY(e,t,r){let{style:n,vars:i,transformOrigin:o}=e,s=!1,a=!1;for(let e in t){let r=t[e];if(f.has(e)){s=!0;continue}if(K(e)){i[e]=r;continue}{let t=iW(r,eG[e]);e.startsWith("origin")?(a=!0,o[e]=t):n[e]=t}}if(!t.transform&&(s||r?n.transform=function(e,t,r){let n="",i=!0;for(let o=0;o<iX;o++){let s=h[o],a=e[s];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===(s.startsWith("scale")?1:0):0===parseFloat(a))||r){let e=iW(a,eG[s]);if(!l){i=!1;let t=i$[s]||s;n+=`${t}(${e}) `}r&&(t[s]=e)}}return n=n.trim(),r?n=r(t,i?"":n):i&&(n="none"),n}(t,e.transform,r):n.transform&&(n.transform="none")),a){let{originX:e="50%",originY:t="50%",originZ:r=0}=o;n.transformOrigin=`${e} ${t} ${r}`}}function iK(e,t,r){return"string"==typeof e?e:eo.transform(t+r*e)}let iq={offset:"stroke-dashoffset",array:"stroke-dasharray"},iz={offset:"strokeDashoffset",array:"strokeDasharray"};function iG(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d){if(iY(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:h,style:f,dimensions:p}=e;h.transform&&(p&&(f.transform=h.transform),delete h.transform),p&&(void 0!==i||void 0!==o||f.transform)&&(f.transformOrigin=function(e,t,r){let n=iK(t,e.x,e.width),i=iK(r,e.y,e.height);return`${n} ${i}`}(p,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(h.x=t),void 0!==r&&(h.y=r),void 0!==n&&(h.scale=n),void 0!==s&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?iq:iz;e[o.offset]=eo.transform(-n);let s=eo.transform(t),a=eo.transform(r);e[o.array]=`${s} ${a}`}(h,s,a,l,!1)}let iZ=e=>"string"==typeof e&&"svg"===e.toLowerCase(),iJ={useVisualState:i_({scrapeMotionValuesFromProps:iB,createRenderState:iH,onMount:(e,t,{renderState:r,latestValues:n})=>{R.read(()=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}}),R.render(()=>{iG(r,n,iZ(t.tagName),e.transformTemplate),ij(t,r)})}})},iQ={useVisualState:i_({scrapeMotionValuesFromProps:iI,createRenderState:iU})};function i0(e,t,r){for(let n in t)t3(t[n])||iV(n,r)||(e[n]=t[n])}let i1=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function i2(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||i1.has(e)}let i4=e=>!i2(e);try{!function(e){e&&(i4=t=>t.startsWith("on")?!i2(t):e(t))}(require("@emotion/is-prop-valid").default)}catch(e){}let i5={current:null},i3={current:!1},i9=new WeakMap,i7=[...eg,eO,e$],i6=e=>i7.find(ev(e)),i8=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class oe{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=eS,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=e5.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,R.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=iT(t),this.isVariantNode=iC(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in c){let t=c[e];void 0!==a[e]&&t3(t)&&t.set(a[e],!1)}}mount(e){this.current=e,i9.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),i3.current||function(){if(i3.current=!0,iE){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>i5.current=e.matches;e.addListener(t),t()}else i5.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||i5.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in i9.delete(this.current),this.projection&&this.projection.unmount(),M(this.notifyUpdate),M(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let r;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=f.has(e),i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&R.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),o(),r&&r(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in iM){let t=iM[e];if(!t)continue;let{isEnabled:r,Feature:n}=t;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rB()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<i8.length;t++){let r=i8[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){for(let n in t){let i=t[n],o=r[n];if(t3(i))e.addValue(n,i);else if(t3(o))e.addValue(n,t2(i,{owner:e}));else if(o!==i){if(e.hasValue(n)){let t=e.getValue(n);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(n);e.addValue(n,t2(void 0!==t?t:i,{owner:e}))}}}for(let n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=t2(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){var r;let n=void 0===this.latestValues[e]&&this.current?null!==(r=this.getBaseTargetFromProps(this.props,e))&&void 0!==r?r:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&("string"==typeof n&&(X(n)||$(n))?n=parseFloat(n):!i6(n)&&e$.test(t)&&(n=eQ(e,t)),this.setBaseTarget(e,t3(n)?n.get():n)),t3(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let r;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let i=l(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);i&&(r=i[e])}if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||t3(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new tJ),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class ot extends oe{constructor(){super(...arguments),this.KeyframeResolver=e1}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}}class or extends ot{constructor(){super(...arguments),this.type="html",this.renderInstance=iN}readValueFromInstance(e,t){if(f.has(t)){let e=eJ(t);return e&&e.default||0}{let r=window.getComputedStyle(e),n=(K(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return rJ(e,t)}build(e,t,r){iY(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return iI(e,t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;t3(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class on extends ot{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rB}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(f.has(t)){let e=eJ(t);return e&&e.default||0}return t=iO.has(t)?t:t4(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return iB(e,t,r)}build(e,t,r){iG(e,t,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,r,n){ij(e,t,r,n)}mount(e){this.isSVGTag=iZ(e.tagName),super.mount(e)}}let oi=function(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(r,n)=>"create"===n?e:(t.has(n)||t.set(n,e(n)),t.get(n))})}((r9={animation:{Feature:rs},exit:{Feature:rl},inView:{Feature:ib},tap:{Feature:ip},focus:{Feature:ic},hover:{Feature:iu},pan:{Feature:r3},drag:{Feature:r4,ProjectionNode:ia,MeasureLayout:nc},layout:{ProjectionNode:ia,MeasureLayout:nc}},r7=(e,t)=>iL(e)?new on(t):new or(t,{allowProjection:e!==r8.Fragment}),function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return function(e){let{preloadedFeatures:t,createVisualElement:r,useRender:n,useVisualState:i,Component:o}=e;t&&function(e){for(let t in e)iM[t]={...iM[t],...e[t]}}(t);let s=(0,r8.forwardRef)(function(e,t){var s;let l;let u={...(0,r8.useContext)(ix),...e,layoutId:function(e){let{layoutId:t}=e,r=(0,r8.useContext)(nt).id;return r&&void 0!==t?r+"-"+t:t}(e)},{isStatic:c}=u,d=function(e){let{initial:t,animate:r}=function(e,t){if(iT(e)){let{initial:t,animate:r}=e;return{initial:!1===t||a(t)?t:void 0,animate:a(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,r8.useContext)(iP));return(0,r8.useMemo)(()=>({initial:t,animate:r}),[iD(t),iD(r)])}(e),h=i(e,c);if(!c&&iE){(0,r8.useContext)(iA).strict;let e=function(e){let{drag:t,layout:r}=iM;if(!t&&!r)return{};let n={...t,...r};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==r?void 0:r.isEnabled(e))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(u);l=e.MeasureLayout,d.visualElement=function(e,t,r,n,i){var o,s;let{visualElement:a}=(0,r8.useContext)(iP),l=(0,r8.useContext)(iA),u=(0,r8.useContext)(ne),c=(0,r8.useContext)(ix).reducedMotion,d=(0,r8.useRef)(void 0);n=n||l.renderer,!d.current&&n&&(d.current=n(e,{visualState:t,parent:a,props:r,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c}));let h=d.current,f=(0,r8.useContext)(nr);h&&!h.projection&&i&&("html"===h.type||"svg"===h.type)&&function(e,t,r,n){let{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&rA(a),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(d.current,r,i,f);let p=(0,r8.useRef)(!1);(0,r8.useInsertionEffect)(()=>{h&&p.current&&h.update(r,u)});let m=r[t5],v=(0,r8.useRef)(!!m&&!(null===(o=window.MotionHandoffIsComplete)||void 0===o?void 0:o.call(window,m))&&(null===(s=window.MotionHasOptimisedAnimation)||void 0===s?void 0:s.call(window,m)));return iS(()=>{h&&(p.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),na.render(h.render),v.current&&h.animationState&&h.animationState.animateChanges())}),(0,r8.useEffect)(()=>{h&&(!v.current&&h.animationState&&h.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,m)}),v.current=!1))}),h}(o,h,u,r,e.ProjectionNode)}return(0,r6.jsxs)(iP.Provider,{value:d,children:[l&&d.visualElement?(0,r6.jsx)(l,{visualElement:d.visualElement,...u}):null,n(o,e,(s=d.visualElement,(0,r8.useCallback)(e=>{e&&h.mount&&h.mount(e),s&&(e?s.mount(e):s.unmount()),t&&("function"==typeof t?t(e):rA(t)&&(t.current=e))},[s])),h,c,d.visualElement)]})});return s[ik]=o,s}({...iL(e)?iJ:iQ,preloadedFeatures:r9,useRender:function(e=!1){return(t,r,n,{latestValues:i},o)=>{let s=(iL(t)?function(e,t,r,n){let i=(0,r8.useMemo)(()=>{let r=iH();return iG(r,t,iZ(n),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};i0(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let r={},n=function(e,t){let r=e.style||{},n={};return i0(n,r,e),Object.assign(n,function({transformTemplate:e},t){return(0,r8.useMemo)(()=>{let r=iU();return iY(r,t,e),Object.assign({},r.vars,r.style)},[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r})(r,i,o,t),a=function(e,t,r){let n={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(i4(i)||!0===r&&i2(i)||!t&&!i2(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(r,"string"==typeof t,e),l=t!==r8.Fragment?{...a,...s,ref:n}:{},{children:u}=r,c=(0,r8.useMemo)(()=>t3(u)?u.get():u,[u]);return(0,r8.createElement)(t,{...l,children:c})}}(t),createVisualElement:r7,Component:e})}))}}]);