vendor: 9,530 bytes, lines 1-17
1function Kr(t,e){for(var n=0;n<e.length;n++){const s=e[n];if(typeof s!="string"&&!Array.isArray(s)){for(const i in s)if(i!=="default"&&!(i in t)){const o=Object.getOwnPropertyDescriptor(s,i);o&&Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:()=>s[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Yc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var qs={exports:{}},ie={},Zs={exports:{}},P={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var Ot=Symbol.for("react.element"),Hr=Symbol.for("react.portal"),zr=Symbol.for("react.fragment"),Xr=Symbol.for("react.strict_mode"),Yr=Symbol.for("react.profiler"),qr=Symbol.for("react.provider"),Zr=Symbol.for("react.context"),Jr=Symbol.for("react.forward_ref"),Qr=Symbol.for("react.suspense"),to=Symbol.for("react.memo"),eo=Symbol.for("react.lazy"),kn=Symbol.iterator;function no(t){return t===null||typeof t!="object"?null:(t=kn&&t[kn]||t["@@iterator"],typeof t=="function"?t:null)}var Js={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Qs=Object.assign,ti={};function Tt(t,e,n){this.props=t,this.context=e,this.refs=ti,this.updater=n||Js}Tt.prototype.isReactComponent={};Tt.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Tt.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function ei(){}ei.prototype=Tt.prototype;function ze(t,e,n){this.props=t,this.context=e,this.refs=ti,this.updater=n||Js}var Xe=ze.prototype=new ei;Xe.constructor=ze;Qs(Xe,Tt.prototype);Xe.isPureReactComponent=!0;var Fn=Array.isArray,ni=Object.prototype.hasOwnProperty,Ye={current:null},si={key:!0,ref:!0,__self:!0,__source:!0};function ii(t,e,n){var s,i={},o=null,r=null;if(e!=null)for(s in e.ref!==void 0&&(r=e.ref),e.key!==void 0&&(o=""+e.key),e)ni.call(e,s)&&!si.hasOwnProperty(s)&&(i[s]=e[s]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];i.children=u}if(t&&t.defaultProps)for(s in a=t.defaultProps,a)i[s]===void 0&&(i[s]=a[s]);return{$$typeof:Ot,type:t,key:o,ref:r,props:i,_owner:Ye.current}}function so(t,e){return{$$typeof:Ot,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function qe(t){return typeof t=="object"&&t!==null&&t.$$typeof===Ot}function io(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var In=/\/+/g;function ce(t,e){return typeof t=="object"&&t!==null&&t.key!=null?io(""+t.key):e.toString(36)}function Gt(t,e,n,s,i){var o=typeof t;(o==="undefined"||o==="boolean")&&(t=null);var r=!1;if(t===null)r=!0;else switch(o){case"string":case"number":r=!0;break;case"object":switch(t.$$typeof){case Ot:case Hr:r=!0}}if(r)return r=t,i=i(r),t=s===""?"."+ce(r,0):s,Fn(i)?(n="",t!=null&&(n=t.replace(In,"$&/")+"/"),Gt(i,e,n,"",function(c){return c})):i!=null&&(qe(i)&&(i=so(i,n+(!i.key||r&&r.key===i.key?"":(""+i.key).replace(In,"$&/")+"/")+t)),e.push(i)),1;if(r=0,s=s===""?".":s+":",Fn(t))for(var a=0;a<t.length;a++){o=t[a];var u=s+ce(o,a);r+=Gt(o,e,n,u,i)}else if(u=no(t),typeof u=="function")for(t=u.call(t),a=0;!(o=t.next()).done;)o=o.value,u=s+ce(o,a++),r+=Gt(o,e,n,u,i);else if(o==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return r}function Ut(t,e,n){if(t==null)return t;var s=[],i=0;return Gt(t,s,"","",function(o){return e.call(n,o,i++)}),s}function ro(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var B={current:null},Ht={transition:null},oo={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:Ht,ReactCurrentOwner:Ye};function ri(){throw Error("act(...) is not supported in production builds of React.")}P.Children={map:Ut,forEach:function(t,e,n){Ut(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Ut(t,function(){e++}),e},toArray:function(t){return Ut(t,function(e){return e})||[]},only:function(t){if(!qe(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};P.Component=Tt;P.Fragment=zr;P.Profiler=Yr;P.PureComponent=ze;P.StrictMode=Xr;P.Suspense=Qr;P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oo;P.act=ri;P.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var s=Qs({},t.props),i=t.key,o=t.ref,r=t._owner;if(e!=null){if(e.ref!==void 0&&(o=e.ref,r=Ye.current),e.key!==void 0&&(i=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(u in e)ni.call(e,u)&&!si.hasOwnProperty(u)&&(s[u]=e[u]===void 0&&a!==void 0?a[u]:e[u])}var u=arguments.length-2;if(u===1)s.children=n;else if(1<u){a=Array(u);for(var c=0;c<u;c++)a[c]=arguments[c+2];s.children=a}return{$$typeof:Ot,type:t.type,key:i,ref:o,props:s,_owner:r}};P.createContext=function(t){return t={$$typeof:Zr,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:qr,_context:t},t.Consumer=t};P.createElement=ii;P.createFactory=function(t){var e=ii.bind(null,t);return e.type=t,e};P.createRef=function(){return{current:null}};P.forwardRef=function(t){return{$$typeof:Jr,render:t}};P.isValidElement=qe;P.lazy=function(t){return{$$typeof:eo,_payload:{_status:-1,_result:t},_init:ro}};P.memo=function(t,e){return{$$typeof:to,type:t,compare:e===void 0?null:e}};P.startTransition=function(t){var e=Ht.transition;Ht.transition={};try{t()}finally{Ht.transition=e}};P.unstable_act=ri;P.useCallback=function(t,e){return B.current.useCallback(t,e)};P.useContext=function(t){return B.current.useContext(t)};P.useDebugValue=function(){};P.useDeferredValue=function(t){return B.current.useDeferredValue(t)};P.useEffect=function(t,e){return B.current.useEffect(t,e)};P.useId=function(){return B.current.useId()};P.useImperativeHandle=function(t,e,n){return B.current.useImperativeHandle(t,e,n)};P.useInsertionEffect=function(t,e){return B.current.useInsertionEffect(t,e)};P.useLayoutEffect=function(t,e){return B.current.useLayoutEffect(t,e)};P.useMemo=function(t,e){return B.current.useMemo(t,e)};P.useReducer=function(t,e,n){return B.current.useReducer(t,e,n)};P.useRef=function(t){return B.current.useRef(t)};P.useState=function(t){return B.current.useState(t)};P.useSyncExternalStore=function(t,e,n){return B.current.useSyncExternalStore(t,e,n)};P.useTransition=function(){return B.current.useTransition()};P.version="18.3.1";Zs.exports=P;var T=Zs.exports;const ao=Gr(T),qc=Kr({__proto__:null,default:ao},[T]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var uo=T,lo=Symbol.for("react.element"),co=Symbol.for("react.fragment"),ho=Object.prototype.hasOwnProperty,fo=uo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,po={key:!0,ref:!0,__self:!0,__source:!0};function oi(t,e,n){var s,i={},o=null,r=null;n!==void 0&&(o=""+n),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(r=e.ref);for(s in e)ho.call(e,s)&&!po.hasOwnProperty(s)&&(i[s]=e[s]);if(t&&t.defaultProps)for(s in e=t.defaultProps,e)i[s]===void 0&&(i[s]=e[s]);return{$$typeof:lo,type:t,key:o,ref:r,props:i,_owner:fo.current}}ie.Fragment=co;ie.jsx=oi;ie.jsxs=oi;qs.exports=ie;var Zt=qs.exports;const ai=T.createContext({});function re(t){const e=T.useRef(null);return e.current===null&&(e.current=t()),e.current}const Ze=typeof window<"u",ui=Ze?T.useLayoutEffect:T.useEffect,Je=T.createContext(null);function Qe(t,e){t.indexOf(e)===-1&&t.push(e)}function tn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const q=(t,e,n)=>n>e?e:n<t?t:n;let en=()=>{};const Z={},li=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function ci(t){return typeof t=="object"&&t!==null}const hi=t=>/^0[^.\s]+$/u.test(t);function nn(t){let e;return()=>(e===void 0&&(e=t()),e)}const K=t=>t,mo=(t,e)=>n=>e(t(n)),Bt=(...t)=>t.reduce(mo),Rt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class sn{constructor(){this.subscriptions=[]}add(e){return Qe(this.subscriptions,e),()=>tn(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const z=t=>t*1e3,W=t=>t/1e3;function fi(t,e){return e?t*(1e3/e):0}const di=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,go=1e-7,yo=12;function vo(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=di(r,s,i)-t,o>0?n=r:e=r;
vendor: 21,910 bytes, line 17
17while(Math.abs(o)>go&&++a<yo);return r}function jt(t,e,n,s){if(t===e&&n===s)return K;const i=o=>vo(o,0,1,t,n);return o=>o===0||o===1?o:di(i(o),e,s)}const pi=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,mi=t=>e=>1-t(1-e),gi=jt(.33,1.53,.69,.99),rn=mi(gi),yi=pi(rn),vi=t=>(t*=2)<1?.5*rn(t):.5*(2-Math.pow(2,-10*(t-1))),on=t=>1-Math.sin(Math.acos(t)),Ti=mi(on),xi=pi(on),To=jt(.42,0,1,1),xo=jt(0,0,.58,1),Si=jt(.42,0,.58,1),So=t=>Array.isArray(t)&&typeof t[0]!="number",bi=t=>Array.isArray(t)&&typeof t[0]=="number",bo={linear:K,easeIn:To,easeInOut:Si,easeOut:xo,circIn:on,circInOut:xi,circOut:Ti,backIn:rn,backInOut:yi,backOut:gi,anticipate:vi},Po=t=>typeof t=="string",On=t=>{if(bi(t)){en(t.length===4);const[e,n,s,i]=t;return jt(e,n,s,i)}else if(Po(t))return bo[t];return t},$t=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function wo(t,e){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(l){r.has(l)&&(c.schedule(l),t()),l(a)}const c={schedule:(l,h=!1,f=!1)=>{const p=f&&i?n:s;return h&&r.add(l),p.has(l)||p.add(l),l},cancel:l=>{s.delete(l),r.delete(l)},process:l=>{if(a=l,i){o=!0;return}i=!0,[n,s]=[s,n],n.forEach(u),n.clear(),i=!1,o&&(o=!1,c.process(l))}};return c}const Ao=40;function Pi(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=$t.reduce((y,A)=>(y[A]=wo(o),y),{}),{setup:a,read:u,resolveKeyframes:c,preUpdate:l,update:h,preRender:f,render:d,postRender:p}=r,g=()=>{const y=Z.useManualTiming?i.timestamp:performance.now();n=!1,Z.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(y-i.timestamp,Ao),1)),i.timestamp=y,i.isProcessing=!0,a.process(i),u.process(i),c.process(i),l.process(i),h.process(i),f.process(i),d.process(i),p.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(g))},v=()=>{n=!0,s=!0,i.isProcessing||t(g)};return{schedule:$t.reduce((y,A)=>{const b=r[A];return y[A]=(C,L=!1,w=!1)=>(n||v(),b.schedule(C,L,w)),y},{}),cancel:y=>{for(let A=0;A<$t.length;A++)r[$t[A]].cancel(y)},state:i,steps:r}}const{schedule:V,cancel:Y,state:I,steps:he}=Pi(typeof requestAnimationFrame<"u"?requestAnimationFrame:K,!0);let zt;function Vo(){zt=void 0}const _={now:()=>(zt===void 0&&_.set(I.isProcessing||Z.useManualTiming?I.timestamp:performance.now()),zt),set:t=>{zt=t,queueMicrotask(Vo)}},wi=t=>e=>typeof e=="string"&&e.startsWith(t),an=wi("--"),Co=wi("var(--"),un=t=>Co(t)?Mo.test(t.split("/*")[0].trim()):!1,Mo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,xt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Et={...xt,transform:t=>q(0,1,t)},Wt={...xt,default:1},At=t=>Math.round(t*1e5)/1e5,ln=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Do(t){return t==null}const Ro=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,cn=(t,e)=>n=>!!(typeof n=="string"&&Ro.test(n)&&n.startsWith(t)||e&&!Do(n)&&Object.prototype.hasOwnProperty.call(n,e)),Ai=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(ln);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},Eo=t=>q(0,255,t),fe={...xt,transform:t=>Math.round(Eo(t))},it={test:cn("rgb","red"),parse:Ai("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+fe.transform(t)+", "+fe.transform(e)+", "+fe.transform(n)+", "+At(Et.transform(s))+")"};function Lo(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Ve={test:cn("#"),parse:Lo,transform:it.transform},_t=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),J=_t("deg"),X=_t("%"),S=_t("px"),ko=_t("vh"),Fo=_t("vw"),Bn={...X,parse:t=>X.parse(t)/100,transform:t=>X.transform(t*100)},ft={test:cn("hsl","hue"),parse:Ai("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+X.transform(At(e))+", "+X.transform(At(n))+", "+At(Et.transform(s))+")"},R={test:t=>it.test(t)||Ve.test(t)||ft.test(t),parse:t=>it.test(t)?it.parse(t):ft.test(t)?ft.parse(t):Ve.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?it.transform(t):ft.transform(t),getAnimatableNone:t=>{const e=R.parse(t);return e.alpha=0,R.transform(e)}},Io=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Oo(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(ln))==null?void 0:e.length)||0)+(((n=t.match(Io))==null?void 0:n.length)||0)>0}const Vi="number",Ci="color",Bo="var",jo="var(",jn="${}",_o=/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 Lt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(_o,u=>(R.test(u)?(s.color.push(o),i.push(Ci),n.push(R.parse(u))):u.startsWith(jo)?(s.var.push(o),i.push(Bo),n.push(u)):(s.number.push(o),i.push(Vi),n.push(parseFloat(u))),++o,jn)).split(jn);return{values:n,split:a,indexes:s,types:i}}function Mi(t){return Lt(t).values}function Di(t){const{split:e,types:n}=Lt(t),s=e.length;return i=>{let o="";for(let r=0;r<s;r++)if(o+=e[r],i[r]!==void 0){const a=n[r];a===Vi?o+=At(i[r]):a===Ci?o+=R.transform(i[r]):o+=i[r]}return o}}const No=t=>typeof t=="number"?0:R.test(t)?R.getAnimatableNone(t):t;function Uo(t){const e=Mi(t);return Di(t)(e.map(No))}const Q={test:Oo,parse:Mi,createTransformer:Di,getAnimatableNone:Uo};function de(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function $o({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,u=2*n-a;i=de(u,a,t+1/3),o=de(u,a,t),r=de(u,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function Jt(t,e){return n=>n>0?e:t}const M=(t,e,n)=>t+(e-t)*n,pe=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},Wo=[Ve,it,ft],Ko=t=>Wo.find(e=>e.test(t));function _n(t){const e=Ko(t);if(!e)return!1;let n=e.parse(t);return e===ft&&(n=$o(n)),n}const Nn=(t,e)=>{const n=_n(t),s=_n(e);if(!n||!s)return Jt(t,e);const i={...n};return o=>(i.red=pe(n.red,s.red,o),i.green=pe(n.green,s.green,o),i.blue=pe(n.blue,s.blue,o),i.alpha=M(n.alpha,s.alpha,o),it.transform(i))},Ce=new Set(["none","hidden"]);function Go(t,e){return Ce.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Ho(t,e){return n=>M(t,e,n)}function hn(t){return typeof t=="number"?Ho:typeof t=="string"?un(t)?Jt:R.test(t)?Nn:Yo:Array.isArray(t)?Ri:typeof t=="object"?R.test(t)?Nn:zo:Jt}function Ri(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>hn(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function zo(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=hn(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function Xo(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],r=t.indexes[o][s[o]],a=t.values[r]??0;n[i]=a,s[o]++}return n}const Yo=(t,e)=>{const n=Q.createTransformer(e),s=Lt(t),i=Lt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Ce.has(t)&&!i.values.length||Ce.has(e)&&!s.values.length?Go(t,e):Bt(Ri(Xo(s,i),i.values),n):Jt(t,e)};function Ei(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?M(t,e,n):hn(t)(t,e)}const qo=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>V.update(e,n),stop:()=>Y(e),now:()=>I.isProcessing?I.timestamp:_.now()}},Li=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=Math.round(t(o/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Qt=2e4;function fn(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<Qt;)e+=n,s=t.next(e);return e>=Qt?1/0:e}function Zo(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(fn(s),Qt);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:W(i)}}const Jo=5;function ki(t,e,n){const s=Math.max(e-Jo,0);return fi(n-t(s),e-s)}const D={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},me=.001;function Qo({duration:t=D.duration,bounce:e=D.bounce,velocity:n=D.velocity,mass:s=D.mass}){let i,o,r=1-e;r=q(D.minDamping,D.maxDamping,r),t=q(D.minDuration,D.maxDuration,W(t)),r<1?(i=c=>{const l=c*r,h=l*t,f=l-n,d=Me(c,r),p=Math.exp(-h);return me-f/d*p},o=c=>{const h=c*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(c,2)*t,p=Math.exp(-h),g=Me(Math.pow(c,2),r);return(-i(c)+me>0?-1:1)*((f-d)*p)/g}):(i=c=>{const l=Math.exp(-c*t),h=(c-n)*t+1;return-me+l*h},o=c=>{const l=Math.exp(-c*t),h=(n-c)*(t*t);return l*h});const a=5/t,u=ea(i,o,a);if(t=z(t),isNaN(u))return{stiffness:D.stiffness,damping:D.damping,duration:t};{const c=Math.pow(u,2)*s;return{stiffness:c,damping:r*2*Math.sqrt(s*c),duration:t}}}const ta=12;function ea(t,e,n){let s=n;for(let i=1;i<ta;i++)s=s-t(s)/e(s);return s}function Me(t,e){return t*Math.sqrt(1-e*e)}const na=["duration","bounce"],sa=["stiffness","damping","mass"];function Un(t,e){return e.some(n=>t[n]!==void 0)}function ia(t){let e={velocity:D.velocity,stiffness:D.stiffness,damping:D.damping,mass:D.mass,isResolvedFromDuration:!1,...t};if(!Un(t,sa)&&Un(t,na))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*q(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:D.mass,stiffness:i,damping:o}}else{const n=Qo(t);e={...e,...n,mass:D.mass},e.isResolvedFromDuration=!0}return e}function te(t=D.visualDuration,e=D.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:u,damping:c,mass:l,duration:h,velocity:f,isResolvedFromDuration:d}=ia({...n,velocity:-W(n.velocity||0)}),p=f||0,g=c/(2*Math.sqrt(u*l)),v=r-o,m=W(Math.sqrt(u/l)),x=Math.abs(v)<5;s||(s=x?D.restSpeed.granular:D.restSpeed.default),i||(i=x?D.restDelta.granular:D.restDelta.default);let y;if(g<1){const b=Me(m,g);y=C=>{const L=Math.exp(-g*m*C);return r-L*((p+g*m*v)/b*Math.sin(b*C)+v*Math.cos(b*C))}}else if(g===1)y=b=>r-Math.exp(-m*b)*(v+(p+m*v)*b);else{const b=m*Math.sqrt(g*g-1);y=C=>{const L=Math.exp(-g*m*C),w=Math.min(b*C,300);return r-L*((p+g*m*v)*Math.sinh(w)+b*v*Math.cosh(w))/b}}const A={calculatedDuration:d&&h||null,next:b=>{const C=y(b);if(d)a.done=b>=h;else{let L=b===0?p:0;g<1&&(L=b===0?z(p):ki(y,b,C));const w=Math.abs(L)<=s,j=Math.abs(r-C)<=i;a.done=w&&j}return a.value=a.done?r:C,a},toString:()=>{const b=Math.min(fn(A),Qt),C=Li(L=>A.next(b*L).value,b,30);return b+"ms "+C},toTransition:()=>{}};return A}te.applyToOptions=t=>{const e=Zo(t,100,te);return t.ease=e.ease,t.duration=z(e.duration),t.type="keyframes",t};function De({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:u,restDelta:c=.5,restSpeed:l}){const h=t[0],f={done:!1,value:h},d=w=>a!==void 0&&w<a||u!==void 0&&w>u,p=w=>a===void 0?u:u===void 0||Math.abs(a-w)<Math.abs(u-w)?a:u;let g=n*e;const v=h+g,m=r===void 0?v:r(v);m!==v&&(g=m-h);const x=w=>-g*Math.exp(-w/s),y=w=>m+x(w),A=w=>{const j=x(w),N=y(w);f.done=Math.abs(j)<=c,f.value=f.done?m:N};let b,C;const L=w=>{d(f.value)&&(b=w,C=te({keyframes:[f.value,p(f.value)],velocity:ki(y,w,f.value),damping:i,stiffness:o,restDelta:c,restSpeed:l}))};return L(0),{calculatedDuration:null,next:w=>{let j=!1;return!C&&b===void 0&&(j=!0,A(w),L(w)),b!==void 0&&w>=b?C.next(w-b):(!j&&A(w),f)}}}function ra(t,e,n){const s=[],i=n||Z.mix||Ei,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const u=Array.isArray(e)?e[r]||K:e;a=Bt(u,a)}s.push(a)}return s}function Fi(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(en(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=ra(e,s,i),u=a.length,c=l=>{if(r&&l<t[0])return e[0];let h=0;if(u>1)for(;h<t.length-2&&!(l<t[h+1]);h++);const f=Rt(t[h],t[h+1],l);return a[h](f)};return n?l=>c(q(t[0],t[o-1],l)):c}function oa(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Rt(0,e,s);t.push(M(n,1,i))}}function aa(t){const e=[0];return oa(e,t.length-1),e}function ua(t,e){return t.map(n=>n*e)}function la(t,e){return t.map(()=>e||Si).splice(0,t.length-1)}function Vt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=So(s)?s.map(On):On(s),o={done:!1,value:e[0]},r=ua(n&&n.length===e.length?n:aa(e),t),a=Fi(r,e,{ease:Array.isArray(i)?i:la(e,i)});return{calculatedDuration:t,next:u=>(o.value=a(u),o.done=u>=t,o)}}const ca=t=>t!==null;function dn(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(ca),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const ha={decay:De,inertia:De,tween:Vt,keyframes:Vt,spring:te};function Ii(t){typeof t.type=="string"&&(t.type=ha[t.type])}class pn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const fa=t=>t/100;class oe extends pn{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var s,i;const{motionValue:n}=this.options;n&&n.updatedAt!==_.now()&&this.tick(_.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(s=this.options).onStop)==null||i.call(s))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Ii(e);const{type:n=Vt,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const u=n||Vt;u!==Vt&&typeof a[0]!="number"&&(this.mixKeyframes=Bt(fa,Ei(a[0],a[1])),a=[0,100]);const c=u({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=u({...e,keyframes:[...a].reverse(),velocity:-r})),c.calculatedDuration===null&&(c.calculatedDuration=fn(c));const{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=c}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:u}=this;if(this.startTime===null)return s.next(0);const{delay:c=0,keyframes:l,repeat:h,repeatType:f,repeatDelay:d,type:p,onUpdate:g,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const m=this.currentTime-c*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?m<0:m>i;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let y=this.currentTime,A=s;if(h){const w=Math.min(this.currentTime,i)/a;let j=Math.floor(w),N=w%1;!N&&w>=1&&(N=1),N===1&&j--,j=Math.min(j,h+1),!!(j%2)&&(f==="reverse"?(N=1-N,d&&(N-=d/a)):f==="mirror"&&(A=r)),y=q(0,1,N)*a}const b=x?{done:!1,value:l[0]}:A.next(y);o&&(b.value=o(b.value));let{done:C}=b;!x&&u!==null&&(C=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return L&&p!==De&&(b.value=dn(l,this.options,v,this.speed)),g&&g(b.value),L&&this.finish(),b}then(e,n){return this.finished.then(e,n)}get duration(){return W(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+W(e)}get time(){return W(this.currentTime)}set time(e){var n;e=z(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(_.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=W(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:e=qo,startTime:n}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),(o=(i=this.options).onPlay)==null||o.call(i);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(_.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function da(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const rt=t=>t*180/Math.PI,Re=t=>{const e=rt(Math.atan2(t[1],t[0]));return Ee(e)},pa={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Re,rotateZ:Re,skewX:t=>rt(Math.atan(t[1])),skewY:t=>rt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ee=t=>(t=t%360,t<0&&(t+=360),t),$n=Re,Wn=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Kn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),ma={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Wn,scaleY:Kn,scale:t=>(Wn(t)+Kn(t))/2,rotateX:t=>Ee(rt(Math.atan2(t[6],t[5]))),rotateY:t=>Ee(rt(Math.atan2(-t[2],t[0]))),rotateZ:$n,rotate:$n,skewX:t=>rt(Math.atan(t[4])),skewY:t=>rt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Le(t){return t.includes("scale")?1:0}function ke(t,e){if(!t||t==="none")return Le(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=ma,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=pa,i=a}if(!i)return Le(e);const o=s[e],r=i[1].split(",").map(ya);return typeof o=="function"?o(r):r[o]}const ga=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return ke(n,e)};function ya(t){return parseFloat(t.trim())}const St=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],bt=new Set(St),Gn=t=>t===xt||t===S,va=new Set(["x","y","z"]),Ta=St.filter(t=>!va.has(t));function xa(t){const e=[];return Ta.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const ot={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>ke(e,"x"),y:(t,{transform:e})=>ke(e,"y")};ot.translateX=ot.x;ot.translateY=ot.y;const at=new Set;let Fe=!1,Ie=!1,Oe=!1;function Oi(){if(Ie){const t=Array.from(at).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=xa(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{var a;(a=s.getValue(o))==null||a.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Ie=!1,Fe=!1,at.forEach(t=>t.complete(Oe)),at.clear()}function Bi(){at.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ie=!0)})}function Sa(){Oe=!0,Bi(),Oi(),Oe=!1}class mn{constructor(e,n,s,i,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(at.add(this),Fe||(Fe=!0,V.read(Bi),V.resolveKeyframes(Oi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=i==null?void 0:i.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),i&&o===void 0&&i.set(e[0])}da(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),at.delete(this)}cancel(){this.state==="scheduled"&&(at.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ba=t=>t.startsWith("--");function Pa(t,e,n){ba(e)?t.style.setProperty(e,n):t.style[e]=n}const wa=nn(()=>window.ScrollTimeline!==void 0),Aa={};function Va(t,e){const n=nn(t);return()=>Aa[e]??n()}const ji=Va(()=>{try{document.createElement("div").animate({opacity:0}
17,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),wt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Hn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:wt([0,.65,.55,1]),circOut:wt([.55,0,1,.45]),backIn:wt([.31,.01,.66,-.59]),backOut:wt([.33,1.53,.69,.99])};function _i(t,e){if(t)return typeof t=="function"?ji()?Li(t,e):"ease-out":bi(t)?wt(t):Array.isArray(t)?t.map(n=>_i(n,e)||Hn.easeOut):Hn[t]}function Ca(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:u}={},c=void 0){const l={[e]:n};u&&(l.offset=u);const h=_i(a,i);Array.isArray(h)&&(l.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),t.animate(l,f)}function Ni(t){return typeof t=="function"&&"applyToOptions"in t}function Ma({type:t,...e}){return Ni(t)&&ji()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Da extends pn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:u}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,en(typeof e.type!="string");const c=Ma(e);this.animation=Ca(n,s,i,c,o),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const l=dn(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(l):Pa(n,s,l),this.animation.cancel()}u==null||u(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,n;this.isPseudoElement||(n=(e=this.animation).commitStyles)==null||n.call(e)}get duration(){var n,s;const e=((s=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:s.call(n).duration)||0;return W(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+W(e)}get time(){return W(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=z(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&wa()?(this.animation.timeline=e,K):n(this)}}const Ui={anticipate:vi,backInOut:yi,circInOut:xi};function Ra(t){return t in Ui}function Ea(t){typeof t.ease=="string"&&Ra(t.ease)&&(t.ease=Ui[t.ease])}const zn=10;class La extends Da{constructor(e){Ea(e),Ii(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new oe({...r,autoplay:!1}),u=z(this.finishedTime??this.time);n.setWithVelocity(a.sample(u-zn).value,a.sample(u).value,zn),a.stop()}}const Xn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Q.test(t)||t==="0")&&!t.startsWith("url("));function ka(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Fa(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=Xn(i,e),a=Xn(o,e);return!r||!a?!1:ka(t)||(n==="spring"||Ni(n))&&s}function Be(t){t.duration=0,t.type="keyframes"}const Ia=new Set(["opacity","clipPath","filter","transform"]),Oa=nn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Ba(t){var l;const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r}=t;if(!(((l=e==null?void 0:e.owner)==null?void 0:l.current)instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:c}=e.owner.getProps();return Oa()&&n&&Ia.has(n)&&(n!=="transform"||!c)&&!u&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const ja=40;class _a extends pn{constructor({autoplay:e=!0,delay:n=0,type:s="
17keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:u,motionValue:c,element:l,...h}){var p;super(),this.stop=()=>{var g,v;this._animation&&(this._animation.stop(),(g=this.stopTimeline)==null||g.call(this)),(v=this.keyframeResolver)==null||v.cancel()},this.createdAt=_.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:u,motionValue:c,element:l,...h},d=(l==null?void 0:l.KeyframeResolver)||mn;this.keyframeResolver=new d(a,(g,v,m)=>this.onKeyframesResolved(g,v,f,!m),u,c,l),(p=this.keyframeResolver)==null||p.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:u,isHandoff:c,onUpdate:l}=s;this.resolvedAt=_.now(),Fa(e,o,r,a)||((Z.instantAnimations||!u)&&(l==null||l(dn(e,s,n))),e[0]=e[e.length-1],Be(s),s.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>ja?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},d=!c&&Ba(f)?new La({...f,element:f.motionValue.owner.current}):new oe(f);d.finished.then(()=>this.notifyFinished()).catch(K),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),Sa()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}const Na=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ua(t){const e=Na.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function $i(t,e,n=1){const[s,i]=Ua(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return li(r)?parseFloat(r):r}return un(i)?$i(i,e,n+1):i}function gn(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}const Wi=new Set(["width","height","top","left","right","bottom",...St]),$a={test:t=>t==="auto",parse:t=>t},Ki=t=>e=>e.test(t),Gi=[xt,S,X,J,Fo,ko,$a],Yn=t=>Gi.find(Ki(t));function Wa(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||hi(t):!0}const Ka=new Set(["brightness","contrast","saturate","opacity"]);function Ga(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(ln)||[];if(!s)return t;const i=n.replace(s,"");let o=Ka.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Ha=/\b([a-z-]*)\(.*?\)/gu,je={...Q,getAnimatableNone:t=>{const e=t.match(Ha);return e?e.map(Ga).join(" "):t}},qn={...xt,transform:Math.round},za={rotate:J,rotateX:J,rotateY:J,rotateZ:J,scale:Wt,scaleX:Wt,scaleY:Wt,scaleZ:Wt,skew:J,skewX:J,skewY:J,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:Et,originX:Bn,originY:Bn,originZ:S},yn={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,radius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,backgroundPositionX:S,backgroundPositionY:S,...za,zIndex:qn,fillOpacity:Et,strokeOpacity:Et,numOctaves:qn},Xa={...yn,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:je,WebkitFilter:je},Hi=t=>Xa[t];function zi(t,e){let n=Hi(t);return n!==je&&(n=Q),n.getAnimatableNone?n.getAnimatableNone(e):void 0}
vendor: 1,652 bytes, line 17
17const Ya=new Set(["auto","none","0"]);function qa(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!Ya.has(o)&&Lt(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=zi(n,i)}class Za extends mn{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let c=e[u];if(typeof c=="string"&&(c=c.trim(),un(c))){const l=$i(c,n.current);l!==void 0&&(e[u]=l),u===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Wi.has(s)||e.length!==2)return;const[i,o]=e,r=Yn(i),a=Yn(o);if(r!==a)if(Gn(r)&&Gn(a))for(let u=0;u<e.length;u++){const c=e[u];typeof c=="string"&&(e[u]=parseFloat(c))}else ot[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||Wa(e[i]))&&s.push(i);s.length&&qa(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ot[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var a;const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=ot[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEac
vendor: 4,447 bytes, line 17
17h(([u,c])=>{e.getValue(u).set(c)}),this.resolveNoneKeyframes()}}function Xi(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){const i=document.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}const Yi=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Ja(t){return ci(t)&&"offsetHeight"in t}const Zn=30,Qa=t=>!isNaN(parseFloat(t)),Ct={current:void 0};class tu{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var o;const i=_.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=_.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Qa(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new sn);const s=this.events[e].add(n);return e==="change"?()=>{s(),V.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Ct.current&&Ct.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=_.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Zn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Zn);return fi(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ut(t,e){return new tu(t,e)}const{schedule:vn}=Pi(queueMicrotask,!1),H={x:!1,y:!1};function qi(){return H.x||H.y}function eu(t){return t==="x"||t==="y"?H[t]?null:(H[t]=!0,()=>{H[t]=!1}):H.x||H.y?null:(H.x=H.y=!0,()=>{H.x=H.y=!1})}function Zi(t,e){const n=Xi(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Jn(t){return!(t.pointerType==="touch"||qi())}function nu(t,e,n={}){const[s,i,o]=Zi(t,n),r=a=>{if(!Jn(a))return;const{target:u}=a,c=e(u,a);if(typeof c!="function"||!u)return;const l=h=>{Jn(h)&&(c(h),u.removeEventListener("pointerleave",l))};u.addEventListener("pointerleave",l,i)};return s.forEach(a=>{a.addEventListener("pointerenter",r,i)}),o}const Ji=(t,e)=>e?t===e?!0:Ji(t,e.parentElement):!1,Tn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,su=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function iu(t){return su.has(t.tagName)||t.tabIndex!==-1}const Xt=new WeakSet;function Qn(t){return e=>{e.key==="Enter"&&t(e)}}function ge(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const ru=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Qn(()=>{if(Xt.has(n))return;ge(n,"down");const i=Qn(()=>{ge(n,"up")}),o=()=>ge(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function ts(t){return Tn(t)&&!qi()}function ou(t,e,n={}){const[s,i,o]=Zi(t,n),r=a=>{const u=a.currentTarget;
17if(!ts(a))return;Xt.add(u);const c=e(u,a),l=(d,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),Xt.has(u)&&Xt.delete(u),ts(d)&&typeof c=="function"&&c(d,{success:p})},h=d=>{l(d,u===window||u===document||n.useGlobalTarget||Ji(u,d.target))},f=d=>{l(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),Ja(a)&&(a.addEventListener("focus",c=>ru(c,i)),!iu(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Qi(t){return ci(t)&&"ownerSVGElement"in t}function au(t){return Qi(t)&&t.tagName==="svg"}function uu(...t){const e=!Array.isArray(t[0]),n=e?0:-1,s=t[0+n],i=t[1+n],o=t[2+n],r=t[3+n],a=Fi(i,o,r);return e?a(s):a}const E=t=>!!(t&&t.getVelocity);function lu(t,e,n){const s=t.get();let i=null,o=s,r;const a=typeof s=="string"?s.replace(/[\d.-]/g,""):void 0,u=()=>{i&&(i.stop(),i=null)},c=()=>{u(),i=new oe({keyframes:[ns(t.get()),ns(o)],velocity:t.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:r})};if(t.attach((l,h)=>{o=l,r=f=>h(es(f,a)),V.postRender(c)},u),E(e)){const l=e.on("change",f=>t.set(es(f,a))),h=t.on("destroy",l);return()=>{l(),h()}}return u}function es(t,e){return e?t+e:t}function ns(t){return typeof t=="number"?t:parseFloat(t)}const cu=[...Gi,R,Q],hu=t=>cu.find(Ki(t)),lt=T.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function fu(t=!0){const e=T.useContext(Je);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=T.useId();T.useEffect(()=>{if(t)return i(o)},[t]);const r=T.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const tr=T.createContext({strict:!1}),ss={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"]},vt={};for(const t in ss)vt[t]={isEnabled:e=>ss[t].some(n=>!!e[n])};function du(t){for(const e in t)vt[e]={...vt[e],...t[e]}}const pu=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 ee(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||pu.has(t)}let er=t=>!ee(t);function nr(t){typeof t=="function"&&(er=e=>e.startsWith("on")?!ee(e):t(e))}try{nr(require("@emotion/is-prop-valid").default)}catch{}function mu(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(er(i)||n===!0&&ee(i)||!e&&!ee(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function Zc({children:t,isValidProp:e,...n}){e&&nr(e),n={...T.useContext(lt),...n},n.isStatic=re(()=>n.isStatic);const s=T.useMemo(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return Zt.jsx(lt.Provider,{value:s,children:t})}const ae=T.createContext({});function ue(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function kt(t){return typeof t=="string"||Array.isArray(t)}const xn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Sn=["initial",...xn];function le(t){return ue(t.animate)||Sn.some(e=>kt(t[e]))}function sr(t){return!!(le(t)||t.variants)}function gu(t,e){if(le(t)){const{initial:n,animate:s}=t;return{initial:n===!1||kt(n)?n:void 0,animate:kt(s)?s:void 0}}return t.inherit!==!1?e:{}}function yu(t){const{initial:e,animate:n}=gu(t,T.useContext(ae));return T.useMemo(()=>({initial:e,animate:n}),[is(e),is(n)])}function is(t){return Array.isArray(t)?t.join(" "):t}const Ft={};function vu(t){for(const e in t)Ft[e]=t[e],an(e)&&(Ft[e].isCSSVariable=!0)}function ir(t,{layout:e,layoutId:n}){return bt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Ft[t]||t==="opacity")}const Tu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xu=St.length;function Su(t,e,n){let s="",i=!0;for(let o=0;o<xu;o++){const r=St[o],a=t[r];if(a===void 0)continue;let u=!0;if(typeof a=="number"?u=a===(r.startsWith("scale")?1:0):u=parseFloat(a)===0,!u||n){const c=Yi(a,yn[r]);if(!u){i=!1;const l=Tu[r]||r;s+=`${l}(${c}) `}n&&(e[r]=c)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function bn(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const u in e){const c=e[u];if(bt.has(u)){r=!0;continue}else if(an(u)){i[u]=c;continue}else{const l=Yi(c,yn[u]);u.startsWith("origin")?(a=!0,o[u]=l):s[u]=l}}if(e.transform||(r||n?s.transform=Su(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:u="50%",originY:c="50%",originZ:l=0}=o;s.transformOrigin=`${u} ${c} ${l}`}}const Pn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function rr(t,e,n){for(const s in e)!E(e[s])&&!ir(s,n)&&(t[s]=e[s])}function bu({transformTemplate:t},e){return T.useMemo(()=>{const n=Pn();return bn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Pu(t,e){const n=t.style||{},s={};return rr(s,n,t),Object.assign(s,bu(t,e)),s}function wu(t,e){const n={},s=Pu(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const Au={offset:"stroke-dashoffset",array:"stroke-dasharray"},Vu={offset:"strokeDashoffset",array:"strokeDasharray"};function Cu(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?Au:Vu;t[o.offset]=S.transform(-s);const r=S.transform(e),a=S.transform(n);t[o.array]=`${r} ${a}`}function or(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a}
vendor: 4,821 bytes, line 17
17,u,c,l){if(bn(t,a,c),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=(l==null?void 0:l.transformBox)??"fill-box",delete h.transformBox),e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&Cu(h,i,o,r,!1)}const ar=()=>({...Pn(),attrs:{}}),ur=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Mu(t,e,n,s){const i=T.useMemo(()=>{const o=ar();return or(o,e,ur(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};rr(o,t.style,t),i.style={...o,...i.style}}return i}const Du=["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 wn(t){return typeof t!="string"||t.includes("-")?!1:!!(Du.indexOf(t)>-1||/[A-Z]/u.test(t))}function Ru(t,e,n,{latestValues:s},i,o=!1){const a=(wn(t)?Mu:wu)(e,s,i,t),u=mu(e,typeof t=="string",o),c=t!==T.Fragment?{...u,...a,ref:n}:{},{children:l}=e,h=T.useMemo(()=>E(l)?l.get():l,[l]);return T.createElement(t,{...c,children:h})}function rs(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function An(t,e,n,s){if(typeof e=="function"){const[i,o]=rs(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=rs(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function Yt(t){return E(t)?t.get():t}function Eu({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:Lu(n,s,i,t),renderState:e()}}function Lu(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=Yt(o[f]);let{initial:r,animate:a}=t;const u=le(t),c=sr(t);e&&c&&!u&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let l=n?n.initial===!1:!1;l=l||r===!1;const h=l?a:r;if(h&&typeof h!="boolean"&&!ue(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const p=An(t,f[d]);if(p){const{transitionEnd:g,transition:v,...m}=p;for(const x in m){let y=m[x];if(Array.isArray(y)){const A=l?y.length-1:0;y=y[A]}y!==null&&(i[x]=y)}for(const x in g)i[x]=g[x]}}}return i}const lr=t=>(e,n)=>{const s=T.useContext(ae),i=T.useContext(Je),o=()=>Eu(t,e,s,i);return n?o():re(o)};function Vn(t,e,n){var o;const{style:s}=t,i={};for(const r in s)(E(s[r])||e.style&&E(e.style[r])||ir(r,t)||((o=n==null?void 0:n.getValue(r))==null?void 0:o.liveStyle)!==void 0)&&(i[r]=s[r]);return i}const ku=lr({scrapeMotionValuesFromProps:Vn,createRenderState:Pn});function cr(t,e,n){const s=Vn(t,e,n);for(const i in t)if(E(t[i])||E(e[i])){const o=St.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}const Fu=lr({scrapeMotionValuesFromProps:cr,createRenderState:ar}),Iu=Symbol.for("motionComponentSymbol");function dt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Ou(t,e,n){return T.useCallback(s=>{s&&t.onMount&&t.onMount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):dt(n)&&(n.current=s))},[e])}const Cn=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Bu="framerAppearId",hr="data-"+Cn(Bu),fr=T.createContext({});function ju(t,e,n,s,i){var g,v;const{visualElement:o}=T.useContext(ae),r=T.useContext(tr),a=T.useContext(Je),u=T.useContext(lt).reducedMotion,c=T.useRef(null);s=s||r.renderer,!c.current&&s&&(c.current=s(t,{visualState:e,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:u}));const l=c.current,h=T.useContext(fr);l&&!l.projection&&i&&(l.type==="html"||l.type==="svg")&&_u(c.current,n,i,h);const f=T.useRef(!1);T.useInsertionEffect(()=>{l&&f.current&&l.update(n,a)});const d=n[hr],p=T.useRef(!!d&&!((g=window.MotionHandoffIsComplete)!=null&&g.call(window,d))&&((v=window.MotionHasOptimisedAnimation)==null?void 0:v.call(window,d)));return ui(()=>{l&&(f.current=!0,window.MotionIsMounted=!0,l.updateFeatures(),l.scheduleRenderMicrotask(),p.current&&l.animationState&&l.animationState.animateChanges())}),T.useEffect(()=>{l&&(!p.current&&l.animationState&&l.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)==null||m.call(window,d)}),p.current=!1),l.enteringChildren=void 0)}),l}function _u(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:u,layoutRoot:c,layoutCrossfade:l}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:dr(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&dt(a),visualElement:t,animationType:typeof o=="str
17ing"?o:"both",initialPromotionConfig:s,crossfade:l,layoutScroll:u,layoutRoot:c})}function dr(t){if(t)return t.options.allowProjection!==!1?t.projection:dr(t.parent)}function ye(t,{forwardMotionProps:e=!1}={},n,s){n&&du(n);const i=wn(t)?Fu:ku;function o(a,u){let c;const l={...T.useContext(lt),...a,layoutId:Nu(a)},{isStatic:h}=l,f=yu(a),d=i(a,h);if(!h&&Ze){Uu();const p=$u(l);c=p.MeasureLayout,f.visualElement=ju(t,d,l,s,p.ProjectionNode)}return Zt.jsxs(ae.Provider,{value:f,children:[c&&f.visualElement?Zt.jsx(c,{visualElement:f.visualElement,...l}):null,Ru(t,a,Ou(d,f.visualElement,u),d,h,e)]})}o.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const r=T.forwardRef(o);return r[Iu]=t,r}function Nu({layoutId:t}){const e=T.useContext(ai).id;return e&&t!==void 0?e+"-"+t:t}function Uu(t,e){T.useContext(tr).strict}function $u(t){const{drag:e,layout:n}=vt;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function Wu(t,e){if(typeof Proxy>"u")return ye;const n=new Map,s=(o,r)=>ye(o,r,t,e),i=(o,r)=>s(o,r);return new Proxy(i,{get:(o,r)=>r==="create"?s:(n.has(r)||n.set(r,ye(r,void 0,t,e)),n.get(r))})}function pr({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Ku({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Gu(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function ve(t){return t===void 0||t===1}function _e({scale:t,scaleX:e,scaleY:n}){return!ve(t)||!ve(e)||!ve(n)}function st(t){return _e(t)||mr(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function mr(t){return os(t.x)||os(t.y)}function os(t){return t&&t!=="0%"}function ne(t,e,n){const s=t-n,i=e*s;return n+i}function as(t,e,n,s,i){return i!==void 0&&(t=ne(t,i,s)),ne(t,n,s)+e}function Ne(t,e=0,n=1,s,i){t.min=as(t.min,e,n,s,i),t.max=as(t.max,e,n,s,i)}function gr(t,{x:e,y:n}){Ne(t.x,e.translate,e.scale,e.originPoint),Ne(t.y,n.translate,n.scale,n.originPoint)}const us=.999999999999,ls=1.0000000000001;function Hu(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&mt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,gr(t,r)),s&&st(o.latestValues)&&mt(t,o.latestValues))}e.x<ls&&e.x>us&&(e.x=1),e.y<ls&&e.y>us&&(e.y=1)}function pt(t,e){t.min=t.min+e,t.max=t.max+e}function cs(t,e,n,s,i=.5){const o=M(t.min,t.max,i);Ne(t,e,n,o,s)}function mt(t,e){cs(t.x,e.x,e.scaleX,e.scale,e.originX),cs(t.y,e.y,e.scaleY,e.scale,e.originY)}function yr(t,e){return pr(Gu(t.getBoundingClientRect(),e))}function zu(t,e,n){const s=yr(t,n),{scroll:i}=e;return i&&(pt(s.x,i.offset.x),pt(s.y,i.offset.y)),s}const hs=()=>({translate:0,scale:1,origin:0,originPoint:0}),gt=()=>({x:hs(),y:hs()}),fs=()=>({min:0,max:0}),k=()=>({x:fs(),y:fs()}),Ue={current:null},vr={current:!1};function Xu(){if(vr.current=!0,!!Ze)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ue.current=t.matches;t.addEventListener("change",e),e()}else Ue.current=!1}const Yu=new WeakMap;function qu(t,e,n){for(const s in e){const i=e[s],o=n[s];if(E(i))t.addValue(s,i);else if(E(o))t.addValue(s,ut(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,ut(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const ds=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Zu{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=mn,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=()=>{const f=_.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,V.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=r;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=le(n),this.isVariantNode=sr(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:l,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const d=h[f];u[f]!==void 0&&E(d)&&d.set(u[f])}}mount(e){var n;this.current=e,Yu.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.forEac
vendor: 15,109 bytes, line 17
17h((s,i)=>this.bindToMotionValue(i,s)),vr.current||Xu(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ue.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var e;this.projection&&this.projection.unmount(),Y(this.notifyUpdate),Y(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const s=this.features[n];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=bt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&V.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in vt){const n=vt[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):k()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<ds.length;s++){const i=ds[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=qu(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){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=ut(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(li(s)||hi(s))?s=parseFloat(s):!hu(s)&&Q.test(n)&&(s=zi(e,n)),this.setBaseTarget(e,E(s)?s.get():s)),E(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var o;const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=An(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);r&&(s=r[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!E(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new sn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){vn.render(this.render)}}class Tr extends Zu{constructor(){super(...arguments),this.KeyframeResolver=Za}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;E(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function xr(t,{style:e,vars:n},s,i){const o=t.style;let r;for(r in e)o[r]=e[r];i==null||i.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function Ju(t){return window.getComputedStyle(t)}class Qu extends Tr{constructor(){super(...arguments),this.type="html",this.renderInstance=xr}readValueFromInstance(e,n){var s;if(bt.has(n))return(s=this.projection)!=null&&s.isProjecting?Le(n):ga(e,n);{const i=Ju(e),o=(an(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return yr(e,n)}build(e,n,s){bn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Vn(e,n,s)}}const Sr=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 tl(t,e,n,s){xr(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Sr.has(i)?i:Cn(i),e.attrs[i])}class el extends Tr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=k}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(bt.has(n)){const s=Hi(n);return s&&s.default||0}return n=Sr.has(n)?n:Cn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return cr(e,n,s)}build(e,n,s){or(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){tl(e,n,s,i)}mount(e){this.isSVGTag=ur(e.tagName),super.mount(e)}}const nl=(t,e)=>wn(t)?new el(e):new Qu(e,{allowProjection:t!==T.Fragment});function yt(t,e,n){const s=t.getProps();return An(s,e,n!==void 0?n:s.custom,t)}const $e=t=>Array.isArray(t);function sl(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,ut(n))}function il(t){return $e(t)?t[t.length-1]||0:t}function rl(t,e){const n=yt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=il(o[r]);sl(t,r,a)}}function ol(t){return!!(E(t)&&t.add)}function We(t,e){const n=t.getValue("willChange");if(ol(n))return n.add(e);if(!n&&Z.WillChange){const s=new Z.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function br(t){return t.props[hr]}const al=t=>t!==null;function ul(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(al),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[o]}const ll={type:"spring",stiffness:500,damping:25,restSpeed:10},cl=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),hl={type:"keyframes",duration:.8},fl={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dl=(t,{keyframes:e})=>e.length>2?hl:bt.has(t)?t.startsWith("scale")?cl(e[1]):ll:fl;function pl({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:u,elapsed:c,...l}){return!!Object.keys(l).length}const Mn=(t,e,n,s={},i,o)=>r=>{const a=gn(s,t)||{},u=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-z(u);const l={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};pl(a)||Object.assign(l,dl(t,l)),l.duration&&(l.duration=z(l.duration)),l.repeatDelay&&(l.repeatDelay=z(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let h=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(Be(l),l.delay===0&&(h=!0)),(Z.instantAnimations||Z.skipAnimations)&&(h=!0,Be(l),l.delay=0),l.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const f=ul(l.keyframes,a);if(f!==void 0){V.update(()=>{l.onUpdate(f),l.onComplete()});return}}return a.isSync?new oe(l):new _a(l)};function ml({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Pr(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:r,...a}=e;s&&(o=s);const u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const l in a){const h=t.getValue(l,t.latestValues[l]??null),f=a[l];if(f===void 0||c&&ml(c,l))continue;const d={delay:n,...gn(o||{},l)},p=h.get();if(p!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===p&&!d.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){const m=br(t);if(m){const x=window.MotionHandoffAnimation(m,l,V);x!==null&&(d.startTime=x,g=!0)}}We(t,l),h.start(Mn(l,h,f,t.shouldReduceMotion&&Wi.has(l)?{type:!1}:d,t,g));const v=h.animation;v&&u.push(v)}return r&&Promise.all(u).then(()=>{V.update(()=>{r&&rl(t,r)})}),u}function wr(t,e,n,s=0,i=1){const o=Array.from(t).sort((c,l)=>c.sortNodePosition(l)).indexOf(e),r=t.size,a=(r-1)*s;return typeof n=="function"?n(o,r):i===1?o*s:a-o*s}function Ke(t,e,n={}){var u;const s=yt(t,e,n.type==="exit"?(u=t.presenceContext)==null?void 0:u.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(Pr(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:l=0,staggerChildren:h,staggerDirection:f}=i;return gl(t,e,c,l,h,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[c,l]=a==="beforeChildren"?[o,r]:[r,o];return c().then(()=>l())}else return Promise.all([o(),r(n.delay)])}function gl(t,e,n=0,s=0,i=0,o=1,r){const a=[];for(const u of t.variantChildren)u.notify("AnimationStart",e),a.push(Ke(u,e,{...r,delay:n+(typeof s=="function"?0:s)+wr(t.variantChildren,u,s,i,o)}).then(()=>u.notify("AnimationComplete",e)));return Promise.all(a)}function yl(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>Ke(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=Ke(t,e,n);else{const i=typeof e=="function"?yt(t,e,n.custom):e;s=Promise.all(Pr(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}function Ar(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const vl=Sn.length;function Vr(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Vr(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<vl;n++){const s=Sn[n],i=t.props[s];(kt(i)||i===!1)&&(e[s]=i)}return e}const Tl=[...xn].reverse(),xl=xn.length;function Sl(t){return e=>Promise.all(e.map(({animation:n,options:s})=>yl(t,n,s)))}function bl(t){let e=Sl(t),n=ps(),s=!0;const i=u=>(c,l)=>{var f;const h=yt(t,l,u==="exit"?(f=t.presenceContext)==null?void 0:f.custom:void 0);if(h){const{transition:d,transitionEnd:p,...g}=h;c={...c,...g,...p}}return c};function o(u){e=u(t)}function r(u){const{props:c}=t,l=Vr(t.parent)||{},h=[],f=new Set;let d={},p=1/0;for(let v=0;v<xl;v++){const m=Tl[v],x=n[m],y=c[m]!==void 0?c[m]:l[m],A=kt(y),b=m===u?x.isActive:null;b===!1&&(p=v);let C=y===l[m]&&y!==c[m]&&A;if(C&&s&&t.manuallyAnimateOnMount&&(C=!1),x.protectedKeys={...d},!x.isActive&&b===null||!y&&!x.prevProp||ue(y)||typeof y=="boolean")continue;const L=Pl(x.prevProp,y);let w=L||m===u&&x.isActive&&!C&&A||v>p&&A,j=!1;const N=Array.isArray(y)?y:[y];let ct=N.reduce(i(m),{});b===!1&&(ct={});const{prevResolvedValues:Rn={}}=x,$r={...Rn,...ct},En=F=>{w=!0,f.has(F)&&(j=!0,f.delete(F)),x.needsAnimating[F]=!0;const U=t.getValue(F);U&&(U.liveStyle=!1)};for(const F in $r){const U=ct[F],et=Rn[F];if(d.hasOwnProperty(F))continue;let ht=!1;$e(U)&&$e(et)?ht=!Ar(U,et):ht=U!==et,ht?U!=null?En(F):f.add(F):U!==void 0&&f.has(F)?En(F):x.protectedKeys[F]=!0}x.prevProp=y,x.prevResolvedValues=ct,x.isActive&&(d={...d,...ct}),s&&t.blockInitialAnimation&&(w=!1);const Ln=C&&L;w&&(!Ln||j)&&h.push(...N.map(F=>{const U={type:m};if(typeof F=="string"&&s&&!Ln&&t.manuallyAnimateOnMount&&t.parent){const{parent:et}=t,ht=yt(et,F);if(et.enteringChildren&&ht){const{delayChildren:Wr}=ht.transition||{};U.delay=wr(et.enteringChildren,t,Wr)}}return{animation:F,options:U}}))}if(f.size){const v={};if(typeof c.initial!="boolean"){const m=yt(t,Array.isArray(c.initial)?c.initial[0]:c.initial);m&&m.transition&&(v.transition=m.transition)}f.forEach(m=>{const x=t.getBaseTarget(m),y=t.getValue(m);y&&(y.liveStyle=!0),v[m]=x??null}),h.push({animation:v})}let g=!!h.length;return s&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(g=!1),s=!1,g?e(h):Promise.resolve()}function a(u,c){var h;if(n[u].isActive===c)return Promise.resolve();(h=t.variantChildren)==null||h.forEach(f=>{var d;return(d=f.animationState)==null?void 0:d.setActive(u,c)}),n[u].isActive=c;const l=r(u);for(const f in n)n[f].protectedKeys={};return l}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=ps()}}}function Pl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Ar(e,t):!1}function nt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ps(){return{animate:nt(!0),whileInView:nt(),whileHover:nt(),whileTap:nt(),whileDrag:nt(),whileFocus:nt(),exit:nt()}}class tt{constructor(e){this.isMounted=!1,this.node=e}update(){}}class wl extends tt{constructor(e){super(e),e.animationState||(e.animationState=bl(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();ue(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let Al=0;class Vl extends tt{constructor(){super(...arguments),this.id=Al++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};
vendor: 18,172 bytes, line 17
17n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Cl={animation:{Feature:wl},exit:{Feature:Vl}};function It(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function Nt(t){return{point:{x:t.pageX,y:t.pageY}}}const Ml=t=>e=>Tn(e)&&t(e,Nt(e));function Mt(t,e,n,s){return It(t,e,Ml(n),s)}const Cr=1e-4,Dl=1-Cr,Rl=1+Cr,Mr=.01,El=0-Mr,Ll=0+Mr;function O(t){return t.max-t.min}function kl(t,e,n){return Math.abs(t-e)<=n}function ms(t,e,n,s=.5){t.origin=s,t.originPoint=M(e.min,e.max,t.origin),t.scale=O(n)/O(e),t.translate=M(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Dl&&t.scale<=Rl||isNaN(t.scale))&&(t.scale=1),(t.translate>=El&&t.translate<=Ll||isNaN(t.translate))&&(t.translate=0)}function Dt(t,e,n,s){ms(t.x,e.x,n.x,s?s.originX:void 0),ms(t.y,e.y,n.y,s?s.originY:void 0)}function gs(t,e,n){t.min=n.min+e.min,t.max=t.min+O(e)}function Fl(t,e,n){gs(t.x,e.x,n.x),gs(t.y,e.y,n.y)}function ys(t,e,n){t.min=e.min-n.min,t.max=t.min+O(e)}function se(t,e,n){ys(t.x,e.x,n.x),ys(t.y,e.y,n.y)}function $(t){return[t("x"),t("y")]}const Dr=({current:t})=>t?t.ownerDocument.defaultView:null,vs=(t,e)=>Math.abs(t-e);function Il(t,e){const n=vs(t.x,e.x),s=vs(t.y,e.y);return Math.sqrt(n**2+s**2)}class Rr{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=xe(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,p=Il(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!d&&!p)return;const{point:g}=f,{timestamp:v}=I;this.history.push({...g,timestamp:v});const{onStart:m,onMove:x}=this.handlers;d||(m&&m(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Te(d,this.transformPagePoint),V.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=xe(f.type==="pointercancel"?this.lastMoveEventInfo:Te(d,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,m),g&&g(f,m)},!Tn(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const a=Nt(e),u=Te(a,this.transformPagePoint),{point:c}=u,{timestamp:l}=I;this.history=[{...c,timestamp:l}];const{onSessionStart:h}=n;h&&h(e,xe(u,this.history)),this.removeListeners=Bt(Mt(this.contextWindow,"pointermove",this.handlePointerMove),Mt(this.contextWindow,"pointerup",this.handlePointerUp),Mt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Y(this.updatePoint)}}function Te(t,e){return e?{point:e(t.point)}:t}function Ts(t,e){return{x:t.x-e.x,y:t.y-e.y}}function xe({point:t},e){return{point:t,delta:Ts(t,Er(e)),offset:Ts(t,Ol(e)),velocity:Bl(e,.1)}}function Ol(t){return t[0]}function Er(t){return t[t.length-1]}function Bl(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Er(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>z(e)));)n--;if(!s)return{x:0,y:0};const o=W(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function jl(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?M(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?M(n,t,s.max):Math.min(t,n)),t}function xs(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function _l(t,{top:e,left:n,bottom:s,right:i}){return{x:xs(t.x,n,i),y:xs(t.y,e,s)}}function Ss(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function Nl(t,e){return{x:Ss(t.x,e.x),y:Ss(t.y,e.y)}}function Ul(t,e){let n=.5;const s=O(t),i=O(e);return i>s?n=Rt(e.min,e.max-s,t.min):s>i&&(n=Rt(t.min,t.max-i,e.min)),q(0,1,n)}function $l(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Ge=.35;function Wl(t=Ge){return t===!1?t=0:t===!0&&(t=Ge),{x:bs(t,"left","right"),y:bs(t,"top","bottom")}}function bs(t,e,n){return{min:Ps(t,e),max:Ps(t,n)}}function Ps(t,e){return typeof t=="number"?t:t[e]||0}const Kl=new WeakMap;class Gl{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=k(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=h=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Nt(h).point)},r=(h,f)=>{const{drag:d,dragPropagation:p,onDragStart:g}=this.getProps();if(d&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=eu(d),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$(m=>{let x=this.getAxisMotionValue(m).get()||0;if(X.test(x)){const{projection:y}=this.visualElement;if(y&&y.layout){const A=y.layout.layoutBox[m];A&&(x=O(A)*(parseFloat(x)/100))}}this.originPoint[m]=x}),g&&V.postRender(()=>g(h,f)),We(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:d,dragDirectionLock:p,onDirectionLock:g,onDrag:v}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:m}=f;if(p&&this.currentDirection===null){this.currentDirection=Hl(m),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,m),this.updateAxis("y",f.point,m),this.visualElement.render(),v&&v(h,f)},u=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>$(h=>{var f;return this.getAnimationState(h)==="paused"&&((f=this.getAxisMotionValue(h).animation)==null?void 0:f.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new Rr(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:s,contextWindow:Dr(this.visualElement)})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!s)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&V.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Kt(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=jl(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){var o;const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;e&&dt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=_l(s.layoutBox,e):this.constraints=!1,this.elastic=Wl(n),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&$(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=$l(s.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!dt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=zu(s,i.root,this.visualElement.getTransformPagePoint());let r=Nl(i.layout.layoutBox,o);if(n){const a=n(Ku(r));this.hasMutatedConstraints=!!a,a&&(r=pr(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},c=$(l=>{if(!Kt(l,n,this.currentDirection))return;let h=u&&u[l]||{};r&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:s?e[l]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(l,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return We(this.visualElement,e),s.start(Mn(e,s,0,n,this.visualElement,!1))}stopAnimation(){$(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){$(e=>{var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){$(n=>{const{drag:s}=this.getProps();if(!Kt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n];o.set(e[n]-M(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!dt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};$(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const u=a.get();i[r]=Ul({min:u,max:u},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),$(r=>{if(!Kt(r,e,null))return;const a=this.getAxisMotionValue(r),{min:u,max:c}=this.constraints[r];a.set(M(u,c,i[r]))})}addListeners(){if(!this.visualElement.current)return;Kl.set(this.visualElement,this);const e=this.visualElement.current,n=Mt(e,"pointerdown",u=>{const{drag:c,dragListener:l=!0}=this.getProps();c&&l&&this.start(u)}),s=()=>{const{dragConstraints:u}=this.getProps();dt(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),V.read(s);const r=It(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&($(l=>{const h=this.getAxisMotionValue(l);h&&(this.originPoint[l]+=u[l].translate,h.set(h.get()+u[l].translate))}),this.visualElement.render())});return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=Ge,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Kt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Hl(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class zl extends tt{constructor(e){super(e),this.removeGroupControls=K,this.removeListeners=K,this.controls=new Gl(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||K}unmount(){this.removeGroupControls(),this.removeListeners()}}const ws=t=>(e,n)=>{t&&V.postRender(()=>t(e,n))};class Xl extends tt{constructor(){super(...arguments),this.removePointerDownListener=K}onPointerDown(e){this.session=new Rr(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Dr(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:ws(e),onStart:ws(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&V.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=Mt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const qt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function As(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Pt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(S.test(t))t=parseFloat(t);else return t;const n=As(t,e.target.x),s=As(t,e.target.y);return`${n}% ${s}%`}},Yl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=Q.parse(t);if(i.length>5)return s;const o=Q.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,u=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=u;const c=M(a,u,.5);return typeof i[2+r]=="number"&&(i[2+r]/=c),typeof i[3+r]=="number"&&(i[3+r]/=c),o(i)}};let Se=!1;class ql extends T.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;vu(Zl),o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),Se&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),qt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,Se=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||V.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),vn.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;Se=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Lr(t){const[e,n]=fu(),s=T.useContext(ai);return Zt.jsx(ql,{...t,layoutGroup:s,switchLayoutGroup:T.useContext(fr),isPresent:e,safeToRemove:n})}const Zl={borderRadius:{...Pt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pt,borderTopRightRadius:Pt,borderBottomLeftRadius:Pt,borderBottomRightRadius:Pt,boxShadow:Yl};function Jl(t,e,n){const s=E(t)?t:ut(t);return s.start(Mn("",s,e,n)),s.animation}const Ql=(t,e)=>t.depth-e.depth;class tc{constructor(){this.children=[],this.isDirty=!1}add(e){Qe(this.children,e),this.isDirty=!0}remove(e){tn(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ql),this.isDirty=!1,this.children.forEach(e)}}function ec(t,e){const n=_.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(Y(s),t(o-e))};return V.setup(s,!0),()=>Y(s)}const kr=["TopLeft","TopRight","BottomLeft","BottomRight"],nc=kr.length,Vs=t=>typeof t=="string"?parseFloat(t):t,Cs=t=>typeof t=="number"||S.test(t);function sc(t,e,n,s,i,o){i?(t.opacity=M(0,n.opacity??1,ic(s)),t.opacityExit=M(e.opacity??1,0,rc(s))):o&&(t.opacity=M(e.opacity??1,n.opacity??1,s));for(let r=0;r<nc;r++){const a=`border${kr[r]}Radius`;let u=Ms(e,a),c=Ms(n,a);if(u===void 0&&c===void 0)continue;u||(u=0),c||(c=0),u===0||c===0||Cs(u)===Cs(c)?(t[a]=Math.max(M(Vs(u),Vs(c),s),0),(X.test(c)||X.test(u))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=M(e.rotate||0,n.rotate||0,s))}function Ms(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const ic=Fr(0,.5,Ti),rc=Fr(.5,.95,K);function Fr(t,e,n){return s=>s<t?0:s>e?1:n(Rt(t,e,s))}function Ds(t,e){t.min=e.min,t.max=e.max}function G(t,e){Ds(t.x,e.x),Ds(t.y,e.y)}function Rs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Es(t,e,n,s,i){return t-=e,t=ne(t,1/n,s),i!==void 0&&(t=ne(t,1/i,s)),t}function oc(t,e=0,n=1,s=.5,i,o=t,r=t){if(X.test(e)&&(e=parseFloat(e),e=M(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=M(o.min,o.max,s);t===o&&(a-=e),t.min=Es(t.min,e,n,a,i),t.max=Es(t.max,e,n,a,i)}function Ls(t,e,[n,s,i],o,r){oc(t,e[n],e[s],e[i],e.scale,o,r)}const ac=["x","scaleX","originX"],uc=["y","scaleY","originY"];function ks(t,e,n,s){Ls(t.x,e,ac,n?n.x:void 0,s?s.x:void 0),Ls(t.y,e,uc,n?n.y:void 0,s?s.y:void 0)}function Fs(t){return t.translate===0&&t.scale===1}function Ir(t){return Fs(t.x)&&Fs(t.y)}function Is(t,e){return t.min===e.min&&t.max===e.max}function lc(t,e){return Is(t.x,e.x)&&Is(t.y,e.y)}function Os(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Or(t,e){return Os(t.x,e.x)&&Os(t.y,e.y)}function Bs(t){return O(t.x)/O(t.y)}function js(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class cc{constructor(){this.members=[]}add(e){Qe(this.members,e),e.scheduleRender()}remove(e){if(tn(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}
vendor: 16,903 bytes, line 17
17exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function hc(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=(n==null?void 0:n.z)||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:l,rotateX:h,rotateY:f,skewX:d,skewY:p}=n;c&&(s=`perspective(${c}px) ${s}`),l&&(s+=`rotate(${l}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),p&&(s+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,u=t.y.scale*e.y;return(a!==1||u!==1)&&(s+=`scale(${a}, ${u})`),s||"none"}const be=["","X","Y","Z"],fc=1e3;let dc=0;function Pe(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Br(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=br(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",V,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Br(s)}function jr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e==null?void 0:e()){this.id=dc++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(gc),this.nodes.forEach(xc),this.nodes.forEach(Sc),this.nodes.forEach(yc)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new tc)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new sn),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const u=this.eventHandlers.get(r);u&&u.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=Qi(r)&&!au(r),this.instance=r;const{layoutId:a,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||a)&&(this.isLayoutDirty=!0),t){let l,h=0;const f=()=>this.root.updateBlockedByResize=!1;V.read(()=>{h=window.innerWidth}),t(r,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,l&&l(),l=ec(f,250),qt.hasAnimatedSinceResize&&(qt.hasAnimatedSinceResize=!1,this.nodes.forEach(Us)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:l,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||Vc,{onLayoutAnimationStart:g,onLayoutAnimationComplete:v}=c.getProps(),m=!this.targetLayout||!Or(this.targetLayout,d),x=!h&&f;if(this.options.layoutRoot||this.resumeFrom||x||h&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const y={...gn(p,"layout"),onPlay:g,onComplete:v};(c.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(l,x)}else h||Us(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Y(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(bc),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Br(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let l=0;l<this.path.length;l++){const h=this.path[l];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:u}=this.options;if(a===void 0&&!u)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(_s);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ns);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Tc),this.nodes.forEach(pc),this.nodes.forEach(mc)):this.nodes.forEach(Ns),this.clearAllSnapshots();const a=_.now();I.delta=q(0,1e3/60,a-I.timestamp),I.timestamp=a,I.isProcessing=!0,he.update.process(I),he.preRender.process(I),he.render.process(I),I.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,vn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(vc),this.sharedNodes.forEach(Pc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,V.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){V.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!O(this.snapshot.measuredBox.x)&&!O(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=k(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const u=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Ir(this.projectionDelta),u=this.getTransformTemplate(),c=u?u(this.latestValues,""):void 0,l=c!==this.prevTransformTemplateValue;r&&this.instance&&(a||st(this.latestValues)||l)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let u=this.removeElementScroll(a);return r&&(u=this.removeTransform(u)),Cc(u),{animationId:this.root.animationId,measuredBox:a,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:r}=this.options;if(!r)return k();const a=r.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(Mc))){const{scroll:l}=this.root;l&&(pt(a.x,l.offset.x),pt(a.y,l.offset.y))}return a}removeElementScroll(r){var u;const a=k();if(G(a,r),(u=this.scroll)!=null&&u.wasRoot)return a;for(let c=0;c<this.path.length;c++){const l=this.path[c],{scroll:h,options:f}=l;l!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&G(a,r),pt(a.x,h.offset.x),pt(a.y,h.offset.y))}return a}applyTransform(r,a=!1){const u=k();G(u,r);for(let c=0;c<this.path.length;c++){const l=this.path[c];!a&&l.options.layoutScroll&&l.scroll&&l!==l.root&&mt(u,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),st(l.latestValues)&&mt(u,l.latestValues)}return st(this.latestValues)&&mt(u,this.latestValues),u}removeTransform(r){const a=k();G(a,r);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!c.instance||!st(c.latestValues))continue;_e(c.latestValues)&&c.updateSnapshot();const l=k(),h=c.measurePageBox();G(l,h),ks(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,l)}return st(this.latestValues)&&ks(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}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!==I.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){var d;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==a;if(!(r||u&&this.isSharedProjectionDirty||this.isProjectionDirty||(d=this.parent)!=null&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:l,layoutId:h}=this.options;if(!this.layout||!(l||h))return;this.resolvedRelativeTargetAt=I.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=k(),this.targetWithTransforms=k()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Fl(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):G(this.target,this.layout.layoutBox),gr(this.target,this.targetDelta)):G(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||_e(this.parent.latestValues)||mr(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,a,u){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=k(),this.relativeTargetOrigin=k(),se(this.relativeTargetOrigin,a,u),G(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var p;const r=this.getLead(),a=!!this.resumingFrom||this!==r;let u=!0;if((this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty)&&(u=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===I.timestamp&&(u=!1),u)return;const{layout:c,layoutId:l}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||l))return;G(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;Hu(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=k());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Rs(this.prevProjectionDelta.x,this.projectionDelta.x),Rs(this.prevProjectionDelta.y,this.projectionDelta.y)),Dt(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!js(this.projectionDelta.x,this.prevProjectionDelta.x)||!js(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),r){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=gt(),this.projectionDelta=gt(),this.projectionDeltaWithTransform=gt()}setAnimationOrigin(r,a=!1){const u=this.snapshot,c=u?u.latestValues:{},l={...this.latestValues},h=gt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=k(),d=u?u.source:void 0,p=this.layout?this.layout.source:void 0,g=d!==p,v=this.getStack(),m=!v||v.members.length<=1,x=!!(g&&!m&&this.options.crossfade===!0&&!this.path.some(Ac));this.animationProgress=0;let y;this.mixTargetDelta=A=>{const b=A/1e3;$s(h.x,r.x,b),$s(h.y,r.y,b),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(se(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),wc(this.relativeTarget,this.relativeTargetOrigin,f,b),y&&lc(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=k()),G(y,this.relativeTarget)),g&&(this.animationValues=l,sc(l,c,this.latestValues,b,x,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){var a,u,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(u=this.resumingFrom)==null?void 0:u.currentAnimation)==null||c.stop(),this.pendingAnimation&&(Y(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=V.update(()=>{qt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ut(0)),this.currentAnimation=Jl(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:l=>{this.mixTargetDelta(l),r.onUpdate&&r.onUpdate(l)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.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);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(fc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:u,layout:c,latestValues:l}=r;if(!(!a||!u||!c)){if(this!==r&&this.layout&&c&&_r(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||k();
vendor: 9,509 bytes, line 17
17const h=O(this.layout.layoutBox.x);u.x.min=r.target.x.min,u.x.max=u.x.min+h;const f=O(this.layout.layoutBox.y);u.y.min=r.target.y.min,u.y.max=u.y.min+f}G(a,u),mt(a,l),Dt(this.projectionDeltaWithTransform,this.layoutCorrected,a,l)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new cc),this.sharedNodes.get(r).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var a;const{layoutId:r}=this.options;return r?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:r}=this.options;return r?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:u}={}){const c=this.getStack();c&&c.promote(this,u),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:u}=r;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(a=!0),!a)return;const c={};u.z&&Pe("z",r,c,this.animationValues);for(let l=0;l<be.length;l++)Pe(`rotate${be[l]}`,r,c,this.animationValues),Pe(`skew${be[l]}`,r,c,this.animationValues);r.render();for(const l in c)r.setStaticValue(l,c[l]),this.animationValues&&(this.animationValues[l]=c[l]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=Yt(a==null?void 0:a.pointerEvents)||"",r.transform=u?u(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=Yt(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!st(this.latestValues)&&(r.transform=u?u({},""):"none",this.hasProjected=!1);return}r.visibility="";const l=c.animationValues||c.latestValues;this.applyTransformsToTarget();let h=hc(this.projectionDeltaWithTransform,this.treeScale,l);u&&(h=u(l,h)),r.transform=h;const{x:f,y:d}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,c.animationValues?r.opacity=c===this?l.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:r.opacity=c===this?l.opacity!==void 0?l.opacity:"":l.opacityExit!==void 0?l.opacityExit:0;for(const p in Ft){if(l[p]===void 0)continue;const{correct:g,applyTo:v,isCSSVariable:m}=Ft[p],x=h==="none"?l[p]:g(l[p],c);if(v){const y=v.length;for(let A=0;A<y;A++)r[v[A]]=x}else m?this.options.visualElement.renderState.vars[p]=x:r[p]=x}this.options.layoutId&&(r.pointerEvents=c===this?Yt(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>{var a;return(a=r.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(_s),this.root.sharedNodes.clear()}}}function pc(t){t.updateLayout()}function mc(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:o}=t.options,r=e.source!==t.layout.source;o==="size"?$(h=>{const f=r?e.measuredBox[h]:e.layoutBox[h],d=O(f);f.min=s[h].min,f.max=f.min+d}):_r(o,e.layoutBox,s)&&$(h=>{const f=r?e.measuredBox[h]:e.layoutBox[h],d=O(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=gt();Dt(a,s,e.layoutBox);const u=gt();r?Dt(u,t.applyTransform(i,!0),e.measuredBox):Dt(u,s,e.layoutBox);const c=!Ir(a);let l=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const p=k();se(p,e.layoutBox,f.layoutBox);const g=k();se(g,s,d.layoutBox),Or(p,g)||(l=!0),h.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:e,delta:u,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function gc(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function yc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function vc(t){t.clearSnapshot()}function _s(t){t.clearMeasurements()}function Ns(t){t.isLayoutDirty=!1}function Tc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Us(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function xc(t){t.resolveTargetDelta()}function Sc(t){t.calcProjection()}function bc(t){t.resetSkewAndRotation()}function Pc(t){t.removeLeadSnapshot()}function $s(t,e,n){t.translate=M(e.translate,0,n),t.scale=M(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ws(t,e,n,s){t.min=M(e.min,n.min,s),t.max=M(e.max,n.max,s)}function wc(t,e,n,s){Ws(t.x,e.x,n.x,s),Ws(t.y,e.y,n.y,s)}function Ac(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Vc={duration:.45,ease:[.4,0,.1,1]},Ks=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Gs=Ks("applewebkit/")&&!Ks("chrome/")?Math.round:K;function Hs(t){t.min=Gs(t.min),t.max=Gs(t.max)}function Cc(t){Hs(t.x),Hs(t.y)}function _r(t,e,n){return t==="position"||t==="preserve-aspect"&&!kl(Bs(e),Bs(n),.2)}function Mc(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const Dc=jr({attachResizeListener:(t,e)=>It(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),we={current:void 0},Nr=jr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!we.current){const t=new Dc({});t.mount(window),t.setOptions({layoutScroll:!0}),we.current=t}return we.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Rc={pan:{Feature:Xl},drag:{Feature:zl,ProjectionNode:Nr,MeasureLayout:Lr}};function zs(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&V.postRender(()=>o(e,Nt(e)))}class Ec extends tt{mount(){const{current:e}=this.node;e&&(this.unmount=nu(e,(n,s)=>(zs(this.node,s,"Start"),i=>zs(this.node,i,"End"))))}unmount(){}}class Lc extends tt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{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=Bt(It(this.node.current,"focus",()=>this.onFocus()),It(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Xs(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&V.postRender(()=>o(e,Nt(e)))}class kc extends tt{mount(){const{current:e}=this.node;e&&(this.unmount=ou(e,(n,s)=>(Xs(this.node,s,"Start"),(i,{success:o})=>Xs(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const He=new WeakMap,Ae=new WeakMap,Fc=t=>{const e=He.get(t.target);e&&e(t)},Ic=t=>{t.forEach(Fc)};function Oc({root:t,...e}){const n=t||document;Ae.has(n)||Ae.set(n,{});const s=Ae.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Ic,{root:t,...e})),s[i]}function Bc(t,e,n){const s=Oc(e);return He.set(t,n),s.observe(t),()=>{He.delete(t),s.unobserve(t)}}const jc={some:0,all:1};class _c extends tt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:jc[i]},a=u=>{const{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:l,onViewportLeave:h}=this.node.getProps(),f=c?l:h;f&&f(u)};return Bc(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Nc(e,n))&&this.startObserver()}unmount(){}}function Nc({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Uc={inView:{Feature:_c},tap:{Feature:kc},focus:{Feature:Lc},hover:{Feature:Ec}
17},$c={layout:{ProjectionNode:Nr,MeasureLayout:Lr}},Wc={...Cl,...Uc,...Rc,...$c},Qc=Wu(Wc,nl);function Ur(t){const e=re(()=>ut(t)),{isStatic:n}=T.useContext(lt);if(n){const[,s]=T.useState(t);T.useEffect(()=>e.on("change",s),[])}return e}function Dn(t,e){const n=Ur(e()),s=()=>n.set(e());return s(),ui(()=>{const i=()=>V.preRender(s,!1,!0),o=t.map(r=>r.on("change",i));return()=>{o.forEach(r=>r()),Y(s)}}),n}function th(t,...e){const n=t.length;function s(){let i="";for(let o=0;o<n;o++){i+=t[o];const r=e[o];r&&(i+=E(r)?r.get():r)}return i}return Dn(e.filter(E),s)}function Kc(t){Ct.current=[],t();const e=Dn(Ct.current,t);return Ct.current=void 0,e}function Gc(t,e,n,s){if(typeof t=="function")return Kc(t);const i=uu(e,n,s);return Array.isArray(t)?Ys(t,i):Ys([t],([o])=>i(o))}function Ys(t,e){const n=re(()=>[]);return Dn(t,()=>{n.length=0;const s=t.length;for(let i=0;i<s;i++)n[i]=t[i].get();return e(n)})}function eh(t,e={}){const{isStatic:n}=T.useContext(lt),s=()=>E(t)?t.get():t;if(n)return Gc(s);const i=Ur(s());return T.useInsertionEffect(()=>lu(i,t,e),[i,JSON.stringify(e)]),i}function nh(t){const e=T.useRef(0),{isStatic:n}=T.useContext(lt);T.useEffect(()=>{if(n)return;const s=({timestamp:i,delta:o})=>{e.current||(e.current=i),t(i-e.current,o)};return V.update(s,!0),()=>Y(s)},[t])}const Hc={some:0,all:1};function zc(t,e,{root:n,margin:s,amount:i="some"}={}){const o=Xi(t),r=new WeakMap,a=c=>{c.forEach(l=>{const h=r.get(l.target);if(l.isIntersecting!==!!h)if(l.isIntersecting){const f=e(l.target,l);typeof f=="function"?r.set(l.target,f):u.unobserve(l.target)}else typeof h=="function"&&(h(l),r.delete(l.target))})},u=new IntersectionObserver(a,{root:n,rootMargin:s,threshold:typeof i=="number"?i:Hc[i]});return o.forEach(c=>u.observe(c)),()=>u.disconnect()}function sh(t,{root:e,margin:n,amount:s,once:i=!1,initial:o=!1}={}){const[r,a]=T.useState(o);return T.useEffect(()=>{if(!t.current||i&&r)return;const u=()=>(a(!0),i?void 0:()=>a(!1)),c={root:e&&e.current||void 0,margin:n,amount:s};return zc(t.current,u,c)},[e,t,n,i,s]),r}export{Zc as M,qc as R,ao as a,Ur as b,Yc as c,nh as d,th as e,eh as f,Gr as g,Zt as j,Qc as m,T as r,sh as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.