PageSourceSearch

https://radiolive.ma/assets/motion-vendor-B7q2vr8F.js

js radiolive.ma collected 2026-10-09 05:17:15 UTC 123,762 bytes, 25 lines download raw bytes

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