vendor: 9,465 bytes, lines 1-17
1function os(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var xu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function as(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pn={exports:{}},Ne={},Rn={exports:{}},M={};/** 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 we=Symbol.for("react.element"),us=Symbol.for("react.portal"),cs=Symbol.for("react.fragment"),ls=Symbol.for("react.strict_mode"),fs=Symbol.for("react.profiler"),ds=Symbol.for("react.provider"),hs=Symbol.for("react.context"),ps=Symbol.for("react.forward_ref"),ms=Symbol.for("react.suspense"),gs=Symbol.for("react.memo"),ys=Symbol.for("react.lazy"),Ht=Symbol.iterator;function bs(e){return e===null||typeof e!="object"?null:(e=Ht&&e[Ht]||e["@@iterator"],typeof e=="function"?e:null)}var kn={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Fn=Object.assign,En={};function ae(e,t,n){this.props=e,this.context=t,this.refs=En,this.updater=n||kn}ae.prototype.isReactComponent={};ae.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};ae.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Dn(){}Dn.prototype=ae.prototype;function xt(e,t,n){this.props=e,this.context=t,this.refs=En,this.updater=n||kn}var Vt=xt.prototype=new Dn;Vt.constructor=xt;Fn(Vt,ae.prototype);Vt.isPureReactComponent=!0;var zt=Array.isArray,On=Object.prototype.hasOwnProperty,Mt={current:null},In={key:!0,ref:!0,__self:!0,__source:!0};function _n(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)On.call(t,r)&&!In.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+2];s.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:we,type:e,key:i,ref:o,props:s,_owner:Mt.current}}function vs(e,t){return{$$typeof:we,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ct(e){return typeof e=="object"&&e!==null&&e.$$typeof===we}function ws(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var qt=/\/+/g;function He(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ws(""+e.key):t.toString(36)}function Ae(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case we:case us:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+He(o,0):r,zt(s)?(n="",e!=null&&(n=e.replace(qt,"$&/")+"/"),Ae(s,t,n,"",function(l){return l})):s!=null&&(Ct(s)&&(s=vs(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(qt,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",zt(e))for(var a=0;a<e.length;a++){i=e[a];var u=r+He(i,a);o+=Ae(i,t,n,u,s)}else if(u=bs(e),typeof u=="function")for(e=u.call(e),a=0;!(i=e.next()).done;)i=i.value,u=r+He(i,a++),o+=Ae(i,t,n,u,s);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Ve(e,t,n){if(e==null)return e;var r=[],s=0;return Ae(e,r,"","",function(i){return t.call(n,i,s++)}),r}function Ts(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I={current:null},Pe={transition:null},Ss={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:Pe,ReactCurrentOwner:Mt};function Ln(){throw Error("act(...) is not supported in production builds of React.")}M.Children={map:Ve,forEach:function(e,t,n){Ve(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ve(e,function(){t++}),t},toArray:function(e){return Ve(e,function(t){return t})||[]},only:function(e){if(!Ct(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};M.Component=ae;M.Fragment=cs;M.Profiler=fs;M.PureComponent=xt;M.StrictMode=ls;M.Suspense=ms;M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ss;M.act=Ln;M.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Fn({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Mt.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)On.call(t,u)&&!In.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){a=Array(u);for(var l=0;l<u;l++)a[l]=arguments[l+2];r.children=a}return{$$typeof:we,type:e.type,key:s,ref:i,props:r,_owner:o}};M.createContext=function(e){return e={$$typeof:hs,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ds,_context:e},e.Consumer=e};M.createElement=_n;M.createFactory=function(e){var t=_n.bind(null,e);return t.type=e,t};M.createRef=function(){return{current:null}};M.forwardRef=function(e){return{$$typeof:ps,render:e}};M.isValidElement=Ct;M.lazy=function(e){return{$$typeof:ys,_payload:{_status:-1,_result:e},_init:Ts}};M.memo=function(e,t){return{$$typeof:gs,type:e,compare:t===void 0?null:t}};M.startTransition=function(e){var t=Pe.transition;Pe.transition={};try{e()}finally{Pe.transition=t}};M.unstable_act=Ln;M.useCallback=function(e,t){return I.current.useCallback(e,t)};M.useContext=function(e){return I.current.useContext(e)};M.useDebugValue=function(){};M.useDeferredValue=function(e){return I.current.useDeferredValue(e)};M.useEffect=function(e,t){return I.current.useEffect(e,t)};M.useId=function(){return I.current.useId()};M.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)};M.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)};M.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)};M.useMemo=function(e,t){return I.current.useMemo(e,t)};M.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)};M.useRef=function(e){return I.current.useRef(e)};M.useState=function(e){return I.current.useState(e)};M.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)};M.useTransition=function(){return I.current.useTransition()};M.version="18.3.1";Rn.exports=M;var S=Rn.exports;const xs=as(S),Vu=os({__proto__:null,default:xs},[S]);/** 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 Vs=S,Ms=Symbol.for("react.element"),Cs=Symbol.for("react.fragment"),As=Object.prototype.hasOwnProperty,Ps=Vs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Rs={key:!0,ref:!0,__self:!0,__source:!0};function Bn(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)As.call(t,r)&&!Rs.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:Ms,type:e,key:i,ref:o,props:s,_owner:Ps.current}}Ne.Fragment=Cs;Ne.jsx=Bn;Ne.jsxs=Bn;Pn.exports=Ne;var nt=Pn.exports;const ks=S.createContext({});function Fs(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const Es=typeof window<"u",Ds=Es?S.useLayoutEffect:S.useEffect,Nn=S.createContext(null);function Os(e,t){e.indexOf(t)===-1&&e.push(t)}function Is(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const q=(e,t,n)=>n>t?t:n<e?e:n;let $e=()=>{},ye=()=>{};const Y={},$n=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function _s(e){return typeof e=="object"&&e!==null}const jn=e=>/^0[^.\s]+$/u.test(e);function Kn(e){let t;return()=>(t===void 0&&(t=e()),t)}const ue=e=>e,Ls=(e,t)=>n=>t(e(n)),je=(...e)=>e.reduce(Ls),Wn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Gn{constructor(){this.subscriptions=[]}add(t){return Os(this.subscriptions,t),()=>Is(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const N=e=>e*1e3,j=e=>e/1e3;function Un(e,t){return t?e*(1e3/t):0}const Hn=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Bs=1e-7,Ns=12;
vendor: 28,706 bytes, line 17
17function $s(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=Hn(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>Bs&&++a<Ns);return o}function Te(e,t,n,r){if(e===t&&n===r)return ue;const s=i=>$s(i,0,1,e,n);return i=>i===0||i===1?i:Hn(s(i),t,r)}const zn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,qn=e=>t=>1-e(1-t),Yn=Te(.33,1.53,.69,.99),At=qn(Yn),Xn=zn(At),Zn=e=>e>=1?1:(e*=2)<1?.5*At(e):.5*(2-Math.pow(2,-10*(e-1))),Pt=e=>1-Math.sin(Math.acos(e)),js=qn(Pt),Jn=zn(Pt),Ks=Te(.42,0,1,1),Ws=Te(0,0,.58,1),Qn=Te(.42,0,.58,1),Gs=e=>Array.isArray(e)&&typeof e[0]!="number",er=e=>Array.isArray(e)&&typeof e[0]=="number",Yt={linear:ue,easeIn:Ks,easeInOut:Qn,easeOut:Ws,circIn:Pt,circInOut:Jn,circOut:js,backIn:At,backInOut:Xn,backOut:Yn,anticipate:Zn},Us=e=>typeof e=="string",Xt=e=>{if(er(e)){ye(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,s]=e;return Te(t,n,r,s)}else if(Us(e))return ye(Yt[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Yt[e];return e},Me=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Zt={value:null,addProjectionMetrics:null};function Hs(e,t){let n=new Set,r=new Set,s=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},u=0;function l(f){o.has(f)&&(c.schedule(f),e()),u++,f(a)}const c={schedule:(f,d=!1,h=!1)=>{const y=h&&s?n:r;return d&&o.add(f),y.add(f),f},cancel:f=>{r.delete(f),o.delete(f)},process:f=>{if(a=f,s){i=!0;return}s=!0;const d=n;n=r,r=d,n.forEach(l),t&&Zt.value&&Zt.value.frameloop[t].push(u),u=0,n.clear(),s=!1,i&&(i=!1,c.process(f))}};return c}const zs=40;function tr(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Me.reduce((v,w)=>(v[w]=Hs(i,t?w:void 0),v),{}),{setup:a,read:u,resolveKeyframes:l,preUpdate:c,update:f,preRender:d,render:h,postRender:p}=o,y=()=>{const v=Y.useManualTiming,w=v?s.timestamp:performance.now();n=!1,v||(s.delta=r?1e3/60:Math.max(Math.min(w-s.timestamp,zs),1)),s.timestamp=w,s.isProcessing=!0,a.process(s),u.process(s),l.process(s),c.process(s),f.process(s),d.process(s),h.process(s),p.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(y))},g=()=>{n=!0,r=!0,s.isProcessing||e(y)};return{schedule:Me.reduce((v,w)=>{const V=o[w];return v[w]=(k,D=!1,C=!1)=>(n||g(),V.schedule(k,D,C)),v},{}),cancel:v=>{for(let w=0;w<Me.length;w++)o[Me[w]].cancel(v)},state:s,steps:o}}const{schedule:$,cancel:rt,state:Fe,steps:Mu}=tr(typeof requestAnimationFrame<"u"?requestAnimationFrame:ue,!0);let Re;function qs(){Re=void 0}const L={now:()=>(Re===void 0&&L.set(Fe.isProcessing||Y.useManualTiming?Fe.timestamp:performance.now()),Re),set:e=>{Re=e,queueMicrotask(qs)}},nr=e=>t=>typeof t=="string"&&t.startsWith(e),rr=nr("--"),Ys=nr("var(--"),Rt=e=>Ys(e)?Xs.test(e.split("/*")[0].trim()):!1,Xs=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Jt(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const ce={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},be={...ce,transform:e=>q(0,1,e)},Ce={...ce,default:1},me=e=>Math.round(e*1e5)/1e5,kt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Zs(e){return e==null}const Js=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ft=(e,t)=>n=>!!(typeof n=="string"&&Js.test(n)&&n.startsWith(e)||t&&!Zs(n)&&Object.prototype.hasOwnProperty.call(n,t)),sr=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(kt);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Qs=e=>q(0,255,e),ze={...ce,transform:e=>Math.round(Qs(e))},Q={test:Ft("rgb","red"),parse:sr("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ze.transform(e)+", "+ze.transform(t)+", "+ze.transform(n)+", "+me(be.transform(r))+")"};function ei(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const st={test:Ft("#"),parse:ei,transform:Q.transform},Se=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),H=Se("deg"),ie=Se("%"),m=Se("px"),ti=Se("vh"),ni=Se("vw"),Qt={...ie,parse:e=>ie.parse(e)/100,transform:e=>ie.transform(e*100)},se={test:Ft("hsl","hue"),parse:sr("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ie.transform(me(t))+", "+ie.transform(me(n))+", "+me(be.transform(r))+")"},R={test:e=>Q.test(e)||st.test(e)||se.test(e),parse:e=>Q.test(e)?Q.parse(e):se.test(e)?se.parse(e):st.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Q.transform(e):se.transform(e),getAnimatableNone:e=>{const t=R.parse(e);return t.alpha=0,R.transform(t)}},ri=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function si(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(kt))==null?void 0:t.length)||0)+(((n=e.match(ri))==null?void 0:n.length)||0)>0}const ir="number",or="color",ii="var",oi="var(",en="${}",ai=/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 oe(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(ai,u=>(R.test(u)?(r.color.push(i),s.push(or),n.push(R.parse(u))):u.startsWith(oi)?(r.var.push(i),s.push(ii),n.push(u)):(r.number.push(i),s.push(ir),n.push(parseFloat(u))),++i,en)).split(en);return{values:n,split:a,indexes:r,types:s}}function ui(e){return oe(e).values}function ar({split:e,types:t}){const n=e.length;return r=>{let s="";for(let i=0;i<n;i++)if(s+=e[i],r[i]!==void 0){const o=t[i];o===ir?s+=me(r[i]):o===or?s+=R.transform(r[i]):s+=r[i]}return s}}function ci(e){return ar(oe(e))}const li=e=>typeof e=="number"?0:R.test(e)?R.getAnimatableNone(e):e,fi=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:li(e);function di(e){const t=oe(e);return ar(t)(t.values.map((r,s)=>fi(r,t.split[s])))}const K={test:si,parse:ui,createTransformer:ci,getAnimatableNone:di};function qe(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hi({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,u=2*n-a;s=qe(u,a,e+1/3),i=qe(u,a,e),o=qe(u,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function Ee(e,t){return n=>n>0?t:e}const xe=(e,t,n)=>e+(t-e)*n,Ye=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},pi=[st,Q,se],mi=e=>pi.find(t=>t.test(e));function tn(e){const t=mi(e);if($e(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===se&&(n=hi(n)),n}const nn=(e,t)=>{const n=tn(e),r=tn(t);if(!n||!r)return Ee(e,t);const s={...n};return i=>(s.red=Ye(n.red,r.red,i),s.green=Ye(n.green,r.green,i),s.blue=Ye(n.blue,r.blue,i),s.alpha=xe(n.alpha,r.alpha,i),Q.transform(s))},it=new Set(["none","hidden"]);function gi(e,t){return it.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function yi(e,t){return n=>xe(e,t,n)}function Et(e){return typeof e=="number"?yi:typeof e=="string"?Rt(e)?Ee:R.test(e)?nn:wi:Array.isArray(e)?ur:typeof e=="object"?R.test(e)?nn:bi:Ee}function ur(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>Et(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function bi(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Et(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function vi(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const i=t.types[s],o=e.indexes[i][r[i]],a=e.values[o]??0;n[s]=a,r[i]++}return n}const wi=(e,t)=>{const n=K.createTransformer(t),r=oe(e),s=oe(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?it.has(e)&&!s.values.length||it.has(t)&&!r.values.length?gi(e,t):je(ur(vi(r,s),s.values),n):($e(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Ee(e,t))};function cr(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?xe(e,t,n):Et(e)(e,t)}const Ti=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>$.update(t,n),stop:()=>rt(t),now:()=>Fe.isProcessing?Fe.timestamp:L.now()}},lr=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=Math.round(e(i/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},De=2e4;function Dt(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<De;)t+=n,r=e.next(t);return t>=De?1/0:t}function Si(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(Dt(r),De);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:j(s)}}const A={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};function ot(e,t){return e*Math.sqrt(1-t*t)}const xi=12;function Vi(e,t,n){let r=n;for(let s=1;s<xi;s++)r=r-e(r)/t(r);return r}const Xe=.001;function Mi({duration:e=A.duration,bounce:t=A.bounce,velocity:n=A.velocity,mass:r=A.mass}){let s,i;$e(e<=N(A.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=q(A.minDamping,A.maxDamping,o),e=q(A.minDuration,A.maxDuration,j(e)),o<1?(s=l=>{const c=l*o,f=c*e,d=c-n,h=ot(l,o),p=Math.exp(-f);return Xe-d/h*p},i=l=>{const f=l*o*e,d=f*n+n,h=Math.pow(o,2)*Math.pow(l,2)*e,p=Math.exp(-f),y=ot(Math.pow(l,2),o);return(-s(l)+Xe>0?-1:1)*((d-h)*p)/y}):(s=l=>{const c=Math.exp(-l*e),f=(l-n)*e+1;return-Xe+c*f},i=l=>{const c=Math.exp(-l*e),f=(n-l)*(e*e);return c*f});const a=5/e,u=Vi(s,i,a);if(e=N(e),isNaN(u))return{stiffness:A.stiffness,damping:A.damping,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:o*2*Math.sqrt(r*l),duration:e}}}const Ci=["duration","bounce"],Ai=["stiffness","damping","mass"];function rn(e,t){return t.some(n=>e[n]!==void 0)}function Pi(e){let t={velocity:A.velocity,stiffness:A.stiffness,damping:A.damping,mass:A.mass,isResolvedFromDuration:!1,...e};if(!rn(e,Ai)&&rn(e,Ci))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*q(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:A.mass,stiffness:s,damping:i}}else{const n=Mi({...e,velocity:0});t={...t,...n,mass:A.mass},t.isResolvedFromDuration=!0}return t}function Oe(e=A.visualDuration,t=A.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:u,damping:l,mass:c,duration:f,velocity:d,isResolvedFromDuration:h}=Pi({...n,velocity:-j(n.velocity||0)}),p=d||0,y=l/(2*Math.sqrt(u*c)),g=o-i,b=j(Math.sqrt(u/c)),T=Math.abs(g)<5;r||(r=T?A.restSpeed.granular:A.restSpeed.default),s||(s=T?A.restDelta.granular:A.restDelta.default);let v,w,V,k,D,C;if(y<1)V=ot(b,y),k=(p+y*b*g)/V,v=x=>{const P=Math.exp(-y*b*x);return o-P*(k*Math.sin(V*x)+g*Math.cos(V*x))},D=y*b*k+g*V,C=y*b*g-k*V,w=x=>Math.exp(-y*b*x)*(D*Math.sin(V*x)+C*Math.cos(V*x));else if(y===1){v=P=>o-Math.exp(-b*P)*(g+(p+b*g)*P);const x=p+b*g;w=P=>Math.exp(-b*P)*(b*x*P-p)}else{const x=b*Math.sqrt(y*y-1);v=W=>{const U=Math.exp(-y*b*W),G=Math.min(x*W,300);return o-U*((p+y*b*g)*Math.sinh(G)+x*g*Math.cosh(G))/x};const P=(p+y*b*g)/x,_=y*b*P-g*x,X=y*b*g-P*x;w=W=>{const U=Math.exp(-y*b*W),G=Math.min(x*W,300);return U*(_*Math.sinh(G)+X*Math.cosh(G))}}const F={calculatedDuration:h&&f||null,velocity:x=>N(w(x)),next:x=>{if(!h&&y<1){const _=Math.exp(-y*b*x),X=Math.sin(V*x),W=Math.cos(V*x),U=o-_*(k*X+g*W),G=N(_*(D*X+C*W));return a.done=Math.abs(G)<=r&&Math.abs(o-U)<=s,a.value=a.done?o:U,a}const P=v(x);if(h)a.done=x>=f;else{const _=N(w(x));a.done=Math.abs(_)<=r&&Math.abs(o-P)<=s}return a.value=a.done?o:P,a},toString:()=>{const x=Math.min(Dt(F),De),P=lr(_=>F.next(x*_).value,x,30);return x+"ms "+P},toTransition:()=>{}};return F}Oe.applyToOptions=e=>{const t=Si(e,100,Oe);return e.ease=t.ease,e.duration=N(t.duration),e.type="keyframes",e};const Ri=5;function fr(e,t,n){const r=Math.max(t-Ri,0);return Un(n-e(r),t-r)}function at({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:u,restDelta:l=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=C=>a!==void 0&&C<a||u!==void 0&&C>u,p=C=>a===void 0?u:u===void 0||Math.abs(a-C)<Math.abs(u-C)?a:u;let y=n*t;const g=f+y,b=o===void 0?g:o(g);b!==g&&(y=b-f);const T=C=>-y*Math.exp(-C/r),v=C=>b+T(C),w=C=>{const F=T(C),x=v(C);d.done=Math.abs(F)<=l,d.value=d.done?b:x};let V,k;const D=C=>{h(d.value)&&(V=C,k=Oe({keyframes:[d.value,p(d.value)],velocity:fr(v,C,d.value),damping:s,stiffness:i,restDelta:l,restSpeed:c}))};return D(0),{calculatedDuration:null,next:C=>{let F=!1;return!k&&V===void 0&&(F=!0,w(C),D(C)),V!==void 0&&C>=V?k.next(C-V):(!F&&w(C),d)}}}function ki(e,t,n){const r=[],s=n||Y.mix||cr,i=e.length-1;for(let o=0;o<i;o++){let a=s(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||ue:t;a=je(u,a)}r.push(a)}return r}function Fi(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(ye(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=ki(t,r,s),u=a.length,l=c=>{if(o&&c<e[0])return t[0];let f=0;if(u>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const d=Wn(e[f],e[f+1],c);return a[f](d)};return n?c=>l(q(e[0],e[i-1],c)):l}function Ei(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Wn(0,t,r);e.push(xe(n,1,s))}}function Di(e){const t=[0];return Ei(t,e.length-1),t}function Oi(e,t){return e.map(n=>n*t)}function Ii(e,t){return e.map(()=>t||Qn).splice(0,e.length-1)}function ge({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=Gs(r)?r.map(Xt):Xt(r),i={done:!1,value:t[0]},o=Oi(n&&n.length===t.length?n:Di(t),e),a=Fi(o,t,{ease:Array.isArray(s)?s:Ii(t,s)});return{calculatedDuration:e,next:u=>(i.value=a(u),i.done=u>=e,i)}}const _i=e=>e!==null;function Ke(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(_i),a=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const Li={decay:at,inertia:at,tween:ge,keyframes:ge,spring:Oe};function dr(e){typeof e.type=="string"&&(e.type=Li[e.type])}class Ot{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Bi=e=>e/100;class Ie extends Ot{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,s;const{motionValue:n}=this.options;n&&n.updatedAt!==L.now()&&this.tick(L.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(r=this.options).onStop)==null||s.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;dr(t);const{type:n=ge,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const u=n||ge;u!==ge&&typeof a[0]!="number"&&(this.mixKeyframes=je(Bi,cr(a[0],a[1])),a=[0,100]);const l=u({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...a].reverse(),velocity:-o})),l.calculatedDuration===null&&(l.calculatedDuration=Dt(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:s,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:c,repeat:f,repeatType:d,repeatDelay:h,type:p,onUpdate:y,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const b=this.currentTime-l*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?b<0:b>s;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let v=this.currentTime,w=r;if(f){const C=Math.min(this.currentTime,s)/a;let F=Math.floor(C),x=C%1;!x&&C>=1&&(x=1),x===1&&F--,F=Math.min(F,f+1),!!(F%2)&&(d==="reverse"?(x=1-x,h&&(x-=h/a)):d==="mirror"&&(w=o)),v=q(0,1,x)*a}let V;T?(this.delayState.value=c[0],V=this.delayState):V=w.next(v),i&&!T&&(V.value=i(V.value));let{done:k}=V;!T&&u!==null&&(k=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return D&&p!==at&&(V.value=Ke(c,this.options,g,this.speed)),y&&y(V.value),D&&this.finish(),V}then(t,n){return this.finished.then(t,n)}get duration(){return j(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+j(t)}get time(){return j(this.currentTime)}set time(t){t=N(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return fr(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(L.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=j(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=Ti,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(s=this.options).onPlay)==null||i.call(s);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),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(L.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function Ni(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ee=e=>e*180/Math.PI,ut=e=>{const t=ee(Math.atan2(e[1],e[0]));return ct(t)},$i={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ut,rotateZ:ut,skewX:e=>ee(Math.atan(e[1])),skewY:e=>ee(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ct=e=>(e=e%360,e<0&&(e+=360),e),sn=ut,on=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),an=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ji={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:on,scaleY:an,scale:e=>(on(e)+an(e))/2,rotateX:e=>ct(ee(Math.atan2(e[6],e[5]))),rotateY:e=>ct(ee(Math.atan2(-e[2],e[0]))),rotateZ:sn,rotate:sn,skewX:e=>ee(Math.atan(e[4])),skewY:e=>ee(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function lt(e){return e.includes("scale")?1:0}function ft(e,t){if(!e||e==="none")return lt(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=ji,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=$i,s=a}if(!s)return lt(t);const i=r[t],o=s[1].split(",").map(Wi);return typeof i=="function"?i(o):o[i]}const Ki=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return ft(n,t)};function Wi(e){return parseFloat(e.trim())}const le=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],fe=new Set(le),un=e=>e===ce||e===m,Gi=new Set(["x","y","z"]),Ui=le.filter(e=>!Gi.has(e));function Hi(e){const t=[];return Ui.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const z={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ft(t,"x"),y:(e,{transform:t})=>ft(t,"y")};z.translateX=z.x;z.translateY=z.y;const te=new Set;let dt=!1,ht=!1,pt=!1;function hr(){if(ht){const e=Array.from(te).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=Hi(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ht=!1,dt=!1,te.forEach(e=>e.complete(pt)),te.clear()}function pr(){te.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ht=!0)})}function zi(){pt=!0,pr(),hr(),pt=!1}class It{constructor(t,n,r,s,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(te.add(this),dt||(dt=!0,$.read(pr),$.resolveKeyframes(hr))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;if(t[0]===null){const i=s==null?void 0:s.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),s&&i===void 0&&s.set(t[0])}Ni(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),te.delete(this)}cancel(){this.state==="scheduled"&&(te.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const qi=e=>e.startsWith("--");function mr(e,t,n){qi(t)?e.style.setProperty(t,n):e.style[t]=n}const Yi={};function gr(e,t){const n=Kn(e);return()=>Yi[t]??n()}const Xi=gr(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),yr=gr(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),pe=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,cn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:pe([0,.65,.55,1]),circOut:pe([.55,0,1,.45]),backIn:pe([.31,.01,.66,-.59]),backOut:pe([.33,1.53,.69,.99])};function br(e,t){if(e)return typeof e=="function"?yr()?lr(e,t):"ease-out":er(e)?pe(e):Array.isArray(e)?e.map(n=>br(n,t)||cn.easeOut):cn[e]}function Zi(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:u}={},l=void 0){const c={[t]:n};u&&(c.offset=u);const f=br(a,s);Array.isArray(f)&&(c.easing=f);const d={delay:r,duration:s,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return l&&(d.pseudoElement=l),e.animate(c,d)}function vr(e){return typeof e=="function"&&"applyToOptions"in e}function Ji({type:e,...t}){return vr(e)&&yr()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class wr extends Ot{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:s,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:u}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,ye(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const l=Ji(t);this.animation=Zi(n,r,s,l,i),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const c=Ke(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(c),mr(n,r,c),this.animation.cancel()}u==null||u(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,s;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(r=this.animation).commitStyles)==null||s.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return j(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+j(t)}get time(){return j(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=N(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:s}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Xi()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),ue):s(this)}}const Tr={anticipate:Zn,backInOut:Xn,circInOut:Jn};function Qi(e){return e in Tr}function eo(e){typeof e.ease=="string"&&Qi(e.ease)&&(e.ease=Tr[e.ease])}const Ze=10;class to extends wr{constructor(t){eo(t),dr(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:s,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Ie({...o,autoplay:!1}),u=Math.max(Ze,L.now()-this.startTime),l=q(0,Ze,u-Ze),c=a.sample(u).value,{name:f}=this.options;i&&f&&mr(i,f,c),n.setWithVelocity(a.sample(Math.max(0,u-l)).value,c,l),a.stop()}}const ln=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(K.test(e)||e==="0")&&!e.startsWith("url("));function no(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function ro(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=ln(s,t),a=ln(i,t);return $e(o===a,`You are trying to animate ${t} from "${s}" to "${i}". "${o?i:s}" is not an animatable value.`,"value-not-animatable"),!o||!a?!1:no(e)||(n==="spring"||vr(n))&&r}function mt(e){e.duration=0,e.type="keyframes"}const Sr=new Set(["opacity","clipPath","filter","transform"]),so=/^(?:
17oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function io(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&so.test(e[t]))return!0;return!1}const oo=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),ao=Kn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function uo(e){var f;const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:i,type:o,keyframes:a}=e;if(!(((f=t==null?void 0:t.owner)==null?void 0:f.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return ao()&&n&&(Sr.has(n)||oo.has(n)&&io(a))&&(n!=="transform"||!c)&&!l&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const co=40;class lo extends Ot{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:u,motionValue:l,element:c,...f}){var p;super(),this.stop=()=>{var y,g;this._animation&&(this._animation.stop(),(y=this.stopTimeline)==null||y.call(this)),(g=this.keyframeResolver)==null||g.cancel()},this.createdAt=L.now();const d={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,name:u,motionValue:l,element:c,...f},h=(c==null?void 0:c.KeyframeResolver)||It;this.keyframeResolver=new h(a,(y,g,b)=>this.onKeyframesResolved(y,g,d,!b),u,l,c),(p=this.keyframeResolver)==null||p.scheduleResolve()}onKeyframesResolved(t,n,r,s){var b,T;this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:u,isHandoff:l,onUpdate:c}=r;this.resolvedAt=L.now();let f=!0;ro(t,i,o,a)||(f=!1,(Y.instantAnimations||!u)&&(c==null||c(Ke(t,r,n))),t[0]=t[t.length-1],mt(r),r.repeat=0);const h={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>co?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=f&&!l&&uo(h),y=(T=(b=h.motionValue)==null?void 0:b.owner)==null?void 0:T.current;let g;if(p)try{g=new to({...h,element:y})}catch{g=new Ie(h)}else g=new Ie(h);g.finished.then(()=>{this.notifyFinished()}).catch(ue),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),zi()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function xr(e,t,n,r=0,s=1){const i=Array.from(e).sort((l,c)=>l.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(i,o):s===1?i*r:a-i*r}const fo=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ho(e){const t=fo.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const po=4;function Vr(e,t,n=1){ye(n<=po,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,s]=ho(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return $n(o)?parseFloat(o):o}return Rt(s)?Vr(s,t,n+1):s}const mo={type:"spring",stiffness:500,damping:25,restSpeed:10},go=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),yo={type:"keyframes",duration:.8},bo={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},vo=(e,{keyframes:t})=>t.length>2?yo:fe.has(e)?e.startsWith("scale")?go(t[1]):mo:bo;function Mr(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Cr(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?Mr(n,e):n}const wo=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function To(e){for(const t in e)if(!wo.has(t))return!0;return!1}const So=(e,t,n,r={},s,i)=>o=>{const a=Cr(r,e)||{},u=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-N(u);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};To(a)||Object.assign(c,vo(e,c)),c.duration&&(c.duration=N(c.duration)),c.repeatDelay&&(c.repeatDelay=N(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(mt(c),c.delay===0&&(f=!0)),(Y.instantAnimations||Y.skipAnimations||s!=null&&s.shouldSkipAnimations)&&(f=!0,mt(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!i&&t.get()!==void 0){const d=Ke(c.keyframes,a);if(d!==void 0){$.update(()=>{c.onUpdate(d),c.onComplete()});return}}return a.isSync?new Ie(c):new lo(c)};function fn(e){const t=[{},{}];
vendor: 28,190 bytes, line 17
17return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function _t(e,t,n,r){if(typeof t=="function"){const[s,i]=fn(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=fn(r);t=t(n!==void 0?n:e.custom,s,i)}return t}function ne(e,t,n){const r=e.getProps();return _t(r,t,n!==void 0?n:r.custom,e)}const Ar=new Set(["width","height","top","left","right","bottom",...le]),dn=30,xo=e=>!isNaN(parseFloat(e));class Vo{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=L.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=L.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=xo(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Gn);const r=this.events[t].add(n);return t==="change"?()=>{r(),$.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=L.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>dn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,dn);return Un(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(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 t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function _e(e,t){return new Vo(e,t)}const gt=e=>Array.isArray(e);function Mo(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,_e(n))}function Co(e){return gt(e)?e[e.length-1]||0:e}function Ao(e,t){const n=ne(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=Co(i[o]);Mo(e,o,a)}}const O=e=>!!(e&&e.getVelocity);function Po(e){return!!(O(e)&&e.add)}function Ro(e,t){const n=e.getValue("willChange");if(Po(n))return n.add(t);if(!n&&Y.WillChange){const r=new Y.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Lt(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const ko="framerAppearId",Pr="data-"+Lt(ko);function Fo(e){return e.props[Pr]}function Eo({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Rr(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i,transitionEnd:o,...a}=t;const u=e.getDefaultTransition();i=i?Mr(i,u):u;const l=i==null?void 0:i.reduceMotion;r&&(i=r);const c=[],f=s&&e.animationState&&e.animationState.getState()[s];for(const d in a){const h=e.getValue(d,e.latestValues[d]??null),p=a[d];if(p===void 0||f&&Eo(f,d))continue;const y={delay:n,...Cr(i||{},d)},g=h.get();if(g!==void 0&&!h.isAnimating()&&!Array.isArray(p)&&p===g&&!y.velocity){$.update(()=>h.set(p));continue}let b=!1;if(window.MotionHandoffAnimation){const w=Fo(e);if(w){const V=window.MotionHandoffAnimation(w,d,$);V!==null&&(y.startTime=V,b=!0)}}Ro(e,d);const T=l??e.shouldReduceMotion;h.start(So(d,h,p,T&&Ar.has(d)?{type:!1}:y,e,b));const v=h.animation;v&&c.push(v)}if(o){const d=()=>$.update(()=>{o&&Ao(e,o)});c.length?Promise.all(c).then(d):d()}return c}function yt(e,t,n={}){var u;const r=ne(e,t,n.type==="exit"?(u=e.presenceContext)==null?void 0:u.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const i=r?()=>Promise.all(Rr(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=s;return Do(e,t,l,c,f,d,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[l,c]=a==="beforeChildren"?[i,o]:[o,i];return l().then(()=>c())}else return Promise.all([i(),o(n.delay)])}function Do(e,t,n=0,r=0,s=0,i=1,o){const a=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),a.push(yt(u,t,{...o,delay:n+(typeof r=="function"?0:r)+xr(e.variantChildren,u,r,s,i)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(a)}function Oo(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>yt(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=yt(e,t,n);else{const s=typeof t=="function"?ne(e,t,n.custom):t;r=Promise.all(Rr(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Io={test:e=>e==="auto",parse:e=>e},kr=e=>t=>t.test(e),Fr=[ce,m,ie,H,ni,ti,Io],hn=e=>Fr.find(kr(e));function _o(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||jn(e):!0}const Lo=new Set(["brightness","contrast","saturate","opacity"]);function Bo(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(kt)||[];if(!r)return e;const s=n.replace(r,"");let i=Lo.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const No=/\b([a-z-]*)\(.*?\)/gu,bt={...K,getAnimatableNone:e=>{const t=e.match(No);return t?t.map(Bo).join(" "):e}},vt={...K,getAnimatableNone:e=>{const t=K.parse(e);return K.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},pn={...ce,transform:Math.round},$o={rotate:H,rotateX:H,rotateY:H,rotateZ:H,scale:Ce,scaleX:Ce,scaleY:Ce,scaleZ:Ce,skew:H,skewX:H,skewY:H,distance:m,translateX:m,translateY:m,translateZ:m,x:m,y:m,z:m,perspective:m,transformPerspective:m,opacity:be,originX:Qt,originY:Qt,originZ:m},Bt={borderWidth:m,borderTopWidth:m,borderRightWidth:m,borderBottomWidth:m,borderLeftWidth:m,borderRadius:m,borderTopLeftRadius:m,borderTopRightRadius:m,borderBottomRightRadius:m,borderBottomLeftRadius:m,width:m,maxWidth:m,height:m,maxHeight:m,top:m,right:m,bottom:m,left:m,inset:m,insetBlock:m,insetBlockStart:m,insetBlockEnd:m,insetInline:m,insetInlineStart:m,insetInlineEnd:m,padding:m,paddingTop:m,paddingRight:m,paddingBottom:m,paddingLeft:m,paddingBlock:m,paddingBlockStart:m,paddingBlockEnd:m,paddingInline:m,paddingInlineStart:m,paddingInlineEnd:m,margin:m,marginTop:m,marginRight:m,marginBottom:m,marginLeft:m,marginBlock:m,marginBlockStart:m,marginBlockEnd:m,marginInline:m,marginInlineStart:m,marginInlineEnd:m,fontSize:m,backgroundPositionX:m,backgroundPositionY:m,...$o,zIndex:pn,fillOpacity:be,strokeOpacity:be,numOctaves:pn},jo={...Bt,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:bt,WebkitFilter:bt,mask:vt,WebkitMask:vt},Er=e=>jo[e],Ko=new Set([bt,vt]);function Dr(e,t){let n=Er(e);return Ko.has(n)||(n=K),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Wo=new Set(["auto","none","0"]);function Go(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!Wo.has(i)&&oe(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=Dr(n,s)}class Uo extends It{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let f=t[c];if(typeof f=="string"&&(f=f.trim(),Rt(f))){const d=Vr(f,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!Ar.has(r)||t.length!==2)return;const[s,i]=t,o=hn(s),a=hn(i),u=Jt(s),l=Jt(i);if(u!==l&&z[r]){this.needsMeasurement=!0;return}if(o!==a)if(un(o)&&un(a))for(let c=0;c<t.length;c++){const f=t[c];typeof f=="string"&&(t[c]=parseFloat(f))}else z[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||_o(t[s]))&&r.push(s);r.length&&Go(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=z[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const i=r.length-1,o=r[i];r[i]=z[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([u,l])=>{t.getValue(u).set(l)}),this.resolveNoneKeyframes()}}function Ho(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const s=document.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(r=>r!=null)}const Or=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function zo(e){return _s(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:qo,cancel:Cu}=tr(queueMicrotask,!1),Yo={x:!1,y:!1};function Ir(){return Yo.y}function _r(e,t){const n=Ho(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function Xo(e){return!(e.pointerType==="touch"||Ir())}function Zo(e,t,n={}){const[r,s,i]=_r(e,n);return r.forEach(o=>{let a=!1,u=!1,l;const c=()=>{o.removeEventListener("pointerleave",p)},f=g=>{l&&(l(g),l=void 0),c()},d=g=>{a=!1,window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",d),u&&(u=!1,f(g))},h=()=>{a=!0,window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",d,s)},p=g=>{if(g.pointerType!=="touch"){if(a){u=!0;return}f(g)}},y=g=>{if(!Xo(g))return;u=!1;const b=t(o,g);typeof b=="function"&&(l=b,o.addEventListener("pointerleave",p,s))};o.addEventListener("pointerenter",y,s),o.addEventListener("pointerdown",h,s)}),i}const Lr=(e,t)=>t?e===t?!0:Lr(e,t.parentElement):!1,Jo=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Qo=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ea(e){return Qo.has(e.tagName)||e.isContentEditable===!0}const ke=new WeakSet;function mn(e){return t=>{t.key==="Enter"&&e(t)}}function Je(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const ta=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=mn(()=>{if(ke.has(n))return;Je(n,"down");const s=mn(()=>{Je(n,"up")}),i=()=>Je(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function gn(e){return Jo(e)&&!Ir()}const yn=new WeakSet;function na(e,t,n={}){const[r,s,i]=_r(e,n),o=a=>{const u=a.currentTarget;if(!gn(a)||yn.has(a))return;ke.add(u),n.stopPropagation&&yn.add(a);const l=t(u,a),c=(h,p)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),ke.has(u)&&ke.delete(u),gn(h)&&typeof l=="function"&&l(h,{success:p})},f=h=>{c(h,u===window||u===document||n.useGlobalTarget||Lr(u,h.target))},d=h=>{c(h,!1)};window.addEventListener("pointerup",f,s),window.addEventListener("pointercancel",d,s)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),zo(a)&&(a.addEventListener("focus",l=>ta(l,s)),!ea(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}const ra=[...Fr,R,K],sa=e=>ra.find(kr(e)),bn=()=>({min:0,max:0}),Br=()=>({x:bn(),y:bn()}),ia=new WeakMap;function We(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ve(e){return typeof e=="string"||Array.isArray(e)}const Nt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$t=["initial",...Nt];function Ge(e){return We(e.animate)||$t.some(t=>ve(e[t]))}function Nr(e){return!!(Ge(e)||e.variants)}function oa(e,t,n){for(const r in t){const s=t[r],i=n[r];if(O(s))e.addValue(r,s);else if(O(i))e.addValue(r,_e(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,_e(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const wt={current:null},$r={current:!1},aa=typeof window<"u";function ua(){if($r.current=!0,!!aa)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>wt.current=e.matches;e.addEventListener("change",t),t()}else wt.current=!1}const vn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Le={};function jr(e){Le=e}function ca(){return Le}class la{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,skipAnimations:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=It,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 h=L.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,$.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=Ge(n),this.isVariantNode=Nr(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in d){const p=d[h];l[h]!==void 0&&O(p)&&p.set(l[h])}}mount(t){var n,r;if(this.hasBeenMounted)for(const s in this.initialValues)(n=this.values.get(s))==null||n.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,ia.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,i)=>this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:($r.current||ua(),this.shouldReduceMotion=wt.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),rt(this.notifyUpdate),rt(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&Sr.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:u,ease:l,duration:c}=n.accelerate,f=new wr({element:this.current,name:t,keyframes:a,times:u,ease:l,duration:N(c)}),d=o(f);this.valueSubscriptions.set(t,()=>{d(),f.cancel()});return}const r=fe.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&$.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Le){const n=Le[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Br()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<vn.length;r++){const s=vn[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=t[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=oa(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=_e(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&($n(r)||jn(r))?r=parseFloat(r):!sa(r)&&K.test(n)&&(r=Dr(t,n)),this.setBaseTarget(t,O(r)?r.get():r)),O(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=_t(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!O(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Gn),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){qo.render(this.render)}}class Kr extends la{constructor(){super(...arguments),this.KeyframeResolver=Uo}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;O(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class de{constructor(t){this.isMounted=!1,this.node=t}update(){}}function fa({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function da(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ha(e,t){return fa(da(e.getBoundingClientRect(),t))}const pa={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ma=le.length;function ga(e,t,n){let r="",s=!0;for(let i=0;i<ma;i++){const o=le[i],a=e[o];if(a===void 0)continue;let u=!0;if(typeof a=="number")u=a===(o.startsWith("scale")?1:0);else{const l=parseFloat(a);u=o.startsWith("scale")?l===1:l===0}if(!u||n){const l=Or(a,Bt[o]);if(!u){s=!1;const c=pa[o]||o;r+=`${c}(${l}) `}n&&(t[o]=l)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function jt(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let o=!1,a=!1;for(const u in t){const l=t[u];if(fe.has(u)){o=!0;continue}else if(rr(u)){s[u]=l;continue}else{const c=Or(l,Bt[u]);u.startsWith("origin")?(a=!0,i[u]=c):r[u]=c}}if(t.transform||(o||n?r.transform=ga(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:u="50%",originY:l="50%",originZ:c=0}=i;r.transformOrigin=`${u} ${l} ${c}`}}function Wr(e,{style:t,vars:n},r,s){const i=e.style;let o;for(o in t)i[o]=t[o];s==null||s.applyProjectionStyles(i,r);for(o in n)i.setProperty(o,n[o])}function wn(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const he={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(m.test(e))e=parseFloat(e);else return e;const n=wn(e,t.target.x),r=wn(e,t.target.y);return`${n}% ${r}%`}},ya={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=K.parse(e);if(s.length>5)return r;const i=K.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,u=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=u;const l=xe(a,u,.5);return typeof s[2+o]=="number"&&(s[2+o]/=l),typeof s[3+o]=="number"&&(s[3+o]/=l),i(s)}},ba={borderRadius:{...he,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:he,borderTopRightRadius:he,borderBottomLeftRadius:he,borderBottomRightRadius:he,boxShadow:ya};function Gr(e,{layout:t,layoutId:n}){return fe.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ba[e]||e==="opacity")}function Kt(e,t,n){var o;const r=e.style,s=t==null?void 0:t.style,i={};if(!r)return i;for(const a in r)(O(r[a])||s&&O(s[a])||Gr(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}function va(e){return window.getComputedStyle(e)}class wa extends Kr{constructor(){super(...arguments),this.type="html",this.renderInstance=Wr}readValueFromInstance(t,n){var r;if(fe.has(n))return(r=this.projection)!=null&&r.isProjecting?lt(n):Ki(t,n);{const s=va(t),i=(rr(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ha(t,n)}build(t,n,r){jt(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Kt(t,n,r)}}const Ta={offset:"stroke-dashoffset",array:"stroke-dasharray"},Sa={offset:"strokeDashoffset",array:"strokeDasharray"};function xa(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?Ta:Sa;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const Va=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Ur(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},u,l,c){if(jt(e,a,l),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:d}=e;f.transform&&(d.transform=f.transform,delete f.transform),(d.transform||f.transformOrigin)&&(d.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),d.transform&&(d.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete f.transformBox);for(const h of Va)f[h]!==void 0&&(d[h]=f[h],delete f[h]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&xa(f,s,i,o,!1)}const Hr=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"]),zr=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Ma(e,t,n,r){Wr(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(Hr.has(s)?s:Lt(s),t.attrs[s])}function qr(e,t,n){const r=Kt(e,t,n);for(const s in e)if(O(e[s])||O(t[s])){const i=le.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}class Ca extends Kr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Br}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(fe.has(n)){const r=Er(n);return r&&r.default||0}return n=Hr.has(n)?n:Lt(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return qr(t,n,r)}build(t,n,r){Ur(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){Ma(t,n,r,s)}mount(t){this.isSVGTag=zr(t.tagName),super.mount(t)}}const Aa=$t.length;function Yr(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Yr(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Aa;n++){const r=$t[n],s=e.props[r];(ve(s)||s===!1)&&(t[r]=s)}return t}function Xr(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Pa=[...Nt].reverse(),Ra=Nt.length;function ka(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Oo(e,n,r)))}function Fa(e){let t=ka(e),n=Tn(),r=!0,s=!1;const i=l=>(c,f)=>{var h;const d=ne(e,f,l==="exit"?(h=e.presenceContext)==null?void 0:h.custom:void 0);if(d){const{transition:p,transitionEnd:y,...g}=d;c={...c,...g,...y}}return c};function o(l){t=l(e)}function a(l){const{props:c}=e,f=Yr(e.parent)||{},d=[],h=new Set;let p={},y=1/0;for(let b=0;b<Ra;b++){const T=Pa[b],v=n[T],w=c[T]!==void 0?c[T]:f[T],V=ve(w),k=T===l?v.isActive:null;k===!1&&(y=b);let D=w===f[T]&&w!==c[T]&&V;if(D&&(r||s)&&e.manuallyAnimateOnMount&&(D=!1),v.protectedKeys={...p},!v.isActive&&k===null||!w&&!v.prevProp||We(w)||typeof w=="boolean")continue;if(T==="exit"&&v.isActive&&k!==!0){v.prevResolvedValues&&(p={...p,...v.prevResolvedValues});continue}const C=Ea(v.prevProp,w);let F=C||T===l&&v.isActive&&!D&&V||b>y&&V,x=!1;const P=Array.isArray(w)?w:[w];let _=P.reduce(i(T),{});k===!1&&(_={});const{prevResolvedValues:X={}}=v,W={...X,..._},U=E=>{F=!0,h.has(E)&&(x=!0,h.delete(E)),v.needsAnimating[E]=!0;const B=e.getValue(E);B&&(B.liveStyle=!1)};for(const E in W){const B=_[E],Z=X[E];if(p.hasOwnProperty(E))continue;let re=!1;gt(B)&>(Z)?re=!Xr(B,Z):re=B!==Z,re?B!=null?U(E):h.add(E):B!==void 0&&h.has(E)?U(E):v.protectedKeys[E]=!0}v.prevProp=w,v.prevResolvedValues=_,v.isActive&&(p={...p,..._}),(r||s)&&e.blockInitialAnimation&&(F=!1);const G=D&&C;F&&(!G||x)&&d.push(...P.map(E=>
17{const B={type:T};if(typeof E=="string"&&(r||s)&&!G&&e.manuallyAnimateOnMount&&e.parent){const{parent:Z}=e,re=ne(Z,E);if(Z.enteringChildren&&re){const{delayChildren:is}=re.transition||{};B.delay=xr(Z.enteringChildren,e,is)}}return{animation:E,options:B}}))}if(h.size){const b={};if(typeof c.initial!="boolean"){const T=ne(e,Array.isArray(c.initial)?c.initial[0]:c.initial);T&&T.transition&&(b.transition=T.transition)}h.forEach(T=>{const v=e.getBaseTarget(T),w=e.getValue(T);w&&(w.liveStyle=!0),b[T]=v??null}),d.push({animation:b})}let g=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,s=!1,g?t(d):Promise.resolve()}function u(l,c){var d;if(n[l].isActive===c)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(h=>{var p;return(p=h.animationState)==null?void 0:p.setActive(l,c)}),n[l].isActive=c;const f=a(l);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Tn(),s=!0}}}function Ea(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Xr(t,e):!1}function J(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Tn(){return{animate:J(!0),whileInView:J(),whileHover:J(),whileTap:J(),whileDrag:J(),whileFocus:J(),exit:J()}}function Sn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Da(e){return O(e)?e.get():e}const Zr=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Wt=S.createContext({strict:!1}),xn={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"]};let Vn=!1;function Oa(){if(Vn)return;const e={};for(const t in xn)e[t]={isEnabled:n=>xn[t].some(r=>!!n[r])};jr(e),Vn=!0}function Jr(){return Oa(),ca()}function Tt(e){const t=Jr();for(const n in e)t[n]={...t[n],...e[n]};jr(t)}function Au({children:e,features:t,strict:n=!1}){const[,r]=S.useState(!Qe(t)),s=S.useRef(void 0);if(!Qe(t)){const{renderer:i,...o}=t;s.current=i,Tt(o)}return S.useEffect(()=>{Qe(t)&&t().then(({renderer:i,...o})=>{Tt(o),s.current=i,r(!0)})},[]),nt.jsx(Wt.Provider,{value:{renderer:s.current,strict:n},children:e})}function Qe(e){return typeof e=="function"}const Ia=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","propagate","ignoreStrict","viewport"]);function Be(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Ia.has(e)}let Qr=e=>!Be(e);function _a(e){typeof e=="function"&&(Qr=t=>t.startsWith("on")?!Be(t):e(t))}try{_a(require("@emotion/is-prop-valid").default)}catch{}function La(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||O(e[s])||(Qr(s)||n===!0&&Be(s)||!t&&!Be(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const Ue=S.createContext({});function Ba(e,t){if(Ge(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ve(n)?n:void 0,animate:ve(r)?r:void 0}}return e.inherit!==!1?t:{}}function Na(e){const{initial:t,animate:n}=Ba(e,S.useContext(Ue));return S.useMemo(()=>({initial:t,animate:n}),[Mn(t),Mn(n)])}function Mn(e){return Array.isArray(e)?e.join(" "):e}const Gt=()=>({style:{},transform:{},transformOrigin:{},vars:{}});
vendor: 10,236 bytes, line 17
17function es(e,t,n){for(const r in t)!O(t[r])&&!Gr(r,n)&&(e[r]=t[r])}function $a({transformTemplate:e},t){return S.useMemo(()=>{const n=Gt();return jt(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ja(e,t){const n=e.style||{},r={};return es(r,n,e),Object.assign(r,$a(e,t)),r}function Ka(e,t){const n={},r=ja(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const ts=()=>({...Gt(),attrs:{}});function Wa(e,t,n,r){const s=S.useMemo(()=>{const i=ts();return Ur(i,t,zr(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};es(i,e.style,e),s.style={...i,...s.style}}return s}const Ga=["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 Ut(e){return typeof e!="string"||e.includes("-")?!1:!!(Ga.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ua(e,t,n,{latestValues:r},s,i=!1,o){const u=(o??Ut(e)?Wa:Ka)(t,r,s,e),l=La(t,typeof e=="string",i),c=e!==S.Fragment?{...l,...u,ref:n}:{},{children:f}=t,d=S.useMemo(()=>O(f)?f.get():f,[f]);return S.createElement(e,{...c,children:d})}function Ha({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:za(n,r,s,e),renderState:t()}}function za(e,t,n,r){const s={},i=r(e,{});for(const d in i)s[d]=Da(i[d]);let{initial:o,animate:a}=e;const u=Ge(e),l=Nr(e);t&&l&&!u&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const f=c?a:o;if(f&&typeof f!="boolean"&&!We(f)){const d=Array.isArray(f)?f:[f];for(let h=0;h<d.length;h++){const p=_t(e,d[h]);if(p){const{transitionEnd:y,transition:g,...b}=p;for(const T in b){let v=b[T];if(Array.isArray(v)){const w=c?v.length-1:0;v=v[w]}v!==null&&(s[T]=v)}for(const T in y)s[T]=y[T]}}}return s}const ns=e=>(t,n)=>{const r=S.useContext(Ue),s=S.useContext(Nn),i=()=>Ha(e,t,r,s);return n?i():Fs(i)},qa=ns({scrapeMotionValuesFromProps:Kt,createRenderState:Gt}),Ya=ns({scrapeMotionValuesFromProps:qr,createRenderState:ts}),Xa=Symbol.for("motionComponentSymbol");function Za(e,t,n){const r=S.useRef(n);S.useInsertionEffect(()=>{r.current=n});const s=S.useRef(null);return S.useCallback(i=>{var a;i&&((a=e.onMount)==null||a.call(e,i));const o=r.current;if(typeof o=="function")if(i){const u=o(i);typeof u=="function"&&(s.current=u)}else s.current?(s.current(),s.current=null):o(i);else o&&(o.current=i);t&&(i?t.mount(i):t.unmount())},[t])}const Ja=S.createContext({});function Qa(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function eu(e,t,n,r,s,i){var v,w;const{visualElement:o}=S.useContext(Ue),a=S.useContext(Wt),u=S.useContext(Nn),l=S.useContext(Zr),c=l.reducedMotion,f=l.skipAnimations,d=S.useRef(null),h=S.useRef(!1);r=r||a.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:o,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c,skipAnimations:f,isSVG:i}),h.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));const p=d.current,y=S.useContext(Ja);p&&!p.projection&&s&&(p.type==="html"||p.type==="svg")&&tu(d.current,n,s,y);const g=S.useRef(!1);S.useInsertionEffect(()=>{p&&g.current&&p.update(n,u)});const b=n[Pr],T=S.useRef(!!b&&typeof window<"u"&&!((v=window.MotionHandoffIsComplete)!=null&&v.call(window,b))&&((w=window.MotionHasOptimisedAnimation)==null?void 0:w.call(window,b)));return Ds(()=>{h.current=!0,p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),T.current&&p.animationState&&p.animationState.animateChanges())}),S.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var V;(V=window.MotionHandoffMarkAsComplete)==null||V.call(window,b)}),T.current=!1),p.enteringChildren=void 0)}),p}function tu(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:u,layoutRoot:l,layoutAnchor:c,layoutCrossfade:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:rs(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&Qa(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:f,layoutScroll:u,layoutRoot:l,layoutAnchor:c})}function rs(e){if(e)return e.options.allowProjection!==!1?e.projection:rs(e.parent)}function et(e,{forwardMotionProps:t=!1,type:n}={},r,s){r&&Tt(r);const i=n?n==="svg":Ut(e),o=i?Ya:qa;function a(l,c){let f;const d={...S.useContext(Zr),...l,layoutId:nu(l)},{isStatic:h}=d,p=Na(l),y=o(l,h);if(!h&&typeof window<"u"){ru();const g=su(d);f=g.MeasureLayout,p.visualElement=eu(e,y,d,s,g.ProjectionNode,i)}return nt.jsxs(Ue.Provider,{value:p,children:[f&&p.visualElement?nt.jsx(f,{visualElement:p.visualElement,...d}):null,Ua(e,l,Za(y,p.visualElement,c),y,h,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=S.forwardRef(a);return u[Xa]=e,u}function nu({layoutId:e}){const t=S.useContext(ks).id;return t&&e!==void 0?t+"-"+e:e}function ru(e,t){S.useContext(Wt).strict}function su(e){const t=Jr(),{drag:n,layout:r}=t;if(!n&&!r)return{};const s={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function iu(e,t){if(typeof Proxy>"u")return et;const n=new Map,r=(i,o)=>et(i,o,e,t),s=(i,o)=>r(i,o);return new Proxy(s,{get:(i,o)=>o==="create"?r:(n.has(o)||n.set(o,et(o,void 0,e,t)),n.get(o))})}const Pu=iu(),ou=(e,t)=>t.isSVG??Ut(e)?new Ca(t):new wa(t,{allowProjection:e!==S.Fragment});class au extends de{constructor(t){super(t),t.animationState||(t.animationState=Fa(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();We(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let uu=0;class cu extends de{constructor(){super(...arguments),this.id=uu++,this.isExitComplete=!1}update(){var i;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:o,custom:a}=this.node.getProps();if(typeof o=="string"){const u=ne(this.node,o,a);if(u){const{transition:l,transitionEnd:c,...f}=u;for(const d in f)(i=this.node.getValue(d))==null||i.jump(f[d])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const lu={animation:{Feature:au},exit:{Feature:cu}};function ss(e){return{point:{x:e.pageX,y:e.pageY}}}function Cn(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&$.postRender(()=>i(t,ss(t)))}class fu extends de{mount(){const{current:t}=this.node;t&&(this.unmount=Zo(t,(n,r)=>(Cn(this.node,r,"Start"),s=>Cn(this.node,s,"End"))))}unmount(){}}class du extends de{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=je(Sn(this.node.current,"focus",()=>this.onFocus()),Sn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function An(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&$.postRender(()=>i(t,ss(t)))}class hu extends de{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=na(t,(s,i)=>(An(this.node,i,"Start"),(o,{success:a})=>An(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const St=new WeakMap,tt=new WeakMap,pu=e=>{const t=St.get(e.target);t&&t(e)},mu=e=>{e.forEach(pu)};function gu({root:e,...t}){const n=e||document;tt.has(n)||tt.set(n,{});const r=tt.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(mu,{root:e,...t})),r[s]}function yu(e,t,n){const r=gu(t);return St.set(e,n),r.observe(e),()=>{St.delete(e),r.unobserve(e)}}const bu={some:0,all:1};class vu extends de{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var u;(u=this.stopObserver)==null||u.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:bu[s]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:f,onViewportLeave:d}=this.node.getProps(),h=c?f:d;h&&h(l)};this.stopObserver=yu(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(wu(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function wu({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Tu={inView:{Feature:vu},tap:{Feature:hu},focus:{Feature:du},hover:{Feature:fu}}
17,Ru={renderer:ou,...lu,...Tu};export{Au as L,Vu as R,xs as a,xu as c,Ru as d,as as g,nt as j,Pu as m,S as r};
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.