1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[226],{5364:function(t,e,i){i.d(e,{p:function(){return r}});var n=i(7294);let r=(0,n.createContext)({})},6014:function(t,e,i){i.d(e,{_:function(){return r}});var n=i(7294);let r=(0,n.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},240:function(t,e,i){i.d(e,{O:function(){return r}});var n=i(7294);let r=(0,n.createContext)(null)},2074:function(t,e,i){i.d(e,{Pn:function(){return a},Wi:function(){return s},frameData:function(){return o},S6:function(){return l}});var n=i(1662);let Queue=class Queue{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}};let r=["prepare","read","update","preRender","render","postRender"],{schedule:s,cancel:a,state:o,steps:l}=function(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},a=r.reduce((t,e)=>(t[e]=function(t){let e=new Queue,i=new Queue,n=0,r=!1,s=!1,a=new WeakSet,o={schedule:(t,s=!1,o=!1)=>{let l=o&&r,u=l?e:i;return s&&a.add(t),u.add(t)&&l&&r&&(n=e.order.length),t},cancel:t=>{i.remove(t),a.delete(t)},process:l=>{if(r){s=!0;return}if(r=!0,[e,i]=[i,e],i.clear(),n=e.order.length)for(let i=0;i<n;i++){let n=e.order[i];n(l),a.has(n)&&(o.schedule(n),t())}r=!1,s&&(s=!1,o.process(l))}};return o}(()=>i=!0),t),{}),processStep=t=>a[t].process(s),processBatch=()=>{let a=performance.now();i=!1,s.delta=n?1e3/60:Math.max(Math.min(a-s.timestamp,40),1),s.timestamp=a,s.isProcessing=!0,r.forEach(processStep),s.isProcessing=!1,i&&e&&(n=!1,t(processBatch))},wake=()=>{i=!0,n=!0,s.isProcessing||t(processBatch)},o=r.reduce((t,e)=>{let n=a[e];return t[e]=(t,e=!1,r=!1)=>(i||wake(),n.schedule(t,e,r)),t},{});return{schedule:o,cancel:t=>r.forEach(e=>a[e].cancel(t)),state:s,steps:a}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.Z,!0)},8226:function(t,e,i){let n;i.d(e,{E:function(){return es}});var r,s,a=i(7294),o=i(6014);let l=(0,a.createContext)({});var u=i(240),c=i(8868);let h=(0,a.createContext)({strict:!1}),camelToDash=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),d="data-"+camelToDash("framerAppearId");function isRefObject(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function isVariantLabel(t){return"string"==typeof t||Array.isArray(t)}function isAnimationControls(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}let p=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],m=["initial",...p];function isControllingVariants(t){return isAnimationControls(t.animate)||m.some(e=>isVariantLabel(t[e]))}function isVariantNode(t){return!!(isControllingVariants(t)||t.variants)}function variantLabelsAsDependency(t){return Array.isArray(t)?t.join(" "):t}let f={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"]},g={};for(let t in f)g[t]={isEnabled:e=>f[t].some(t=>!!e[t])};var v=i(1741),y=i(5364);let x=(0,a.createContext)({}),P=Symbol.for("motionComponentSymbol"),T=["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 isSVGComponent(t){if("string"!=typeof t||t.includes("-"));else if(T.indexOf(t)>-1||/[A-Z]/.test(t))return!0;return!1}let V={},A=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],b=new Set(A);function isForcedMotionValue(t,{layout:e,layoutId:i}){return b.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!V[t]||"opacity"===t)}let isMotionValue=t=>!!(t&&t.getVelocity),S={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},D=A.length;var C=i(7630);let getValueAsType=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var M=i(1649),w=i(6190);let E={...M.Rx,transform:Math.round},B={borderWidth:w.px,borderTopWidth:w.px,borderRightWidth:w.px,borderBottomWidth:w.px,borderLeftWidth:w.px,borderRadius:w.px,radius:w.px,borderTopLeftRadius:w.px,borderTopRightRadius:w.px,borderBottomRightRadius:w.px,borderBottomLeftRadius:w.px,width:w.px,maxWidth:w.px,height:w.px,maxHeight:w.px,size:w.px,top:w.px,right:w.px,bottom:w.px,left:w.px,padding:w.px,paddingTop:w.px,paddingRight:w.px,paddingBottom:w.px,paddingLeft:w.px,margin:w.px,marginTop:w.px,marginRight:w.px,marginBottom:w.px,marginLeft:w.px,rotate:w.RW,rotateX:w.RW,rotateY:w.RW,rotateZ:w.RW,
1scale:M.bA,scaleX:M.bA,scaleY:M.bA,scaleZ:M.bA,skew:w.RW,skewX:w.RW,skewY:w.RW,distance:w.px,translateX:w.px,translateY:w.px,translateZ:w.px,x:w.px,y:w.px,z:w.px,perspective:w.px,transformPerspective:w.px,opacity:M.Fq,originX:w.$C,originY:w.$C,originZ:w.px,zIndex:E,fillOpacity:M.Fq,strokeOpacity:M.Fq,numOctaves:E};function buildHTMLStyles(t,e,i,n){let{style:r,vars:s,transform:a,transformOrigin:o}=t,l=!1,u=!1,c=!0;for(let t in e){let i=e[t];if((0,C.f9)(t)){s[t]=i;continue}let n=B[t],h=getValueAsType(i,n);if(b.has(t)){if(l=!0,a[t]=h,!c)continue;i!==(n.default||0)&&(c=!1)}else t.startsWith("origin")?(u=!0,o[t]=h):r[t]=h}if(!e.transform&&(l||n?r.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:i=!0},n,r){let s="";for(let e=0;e<D;e++){let i=A[e];if(void 0!==t[i]){let e=S[i]||i;s+=`${e}(${t[i]}) `}}return e&&!t.z&&(s+="translateZ(0)"),s=s.trim(),r?s=r(t,n?"":s):i&&n&&(s="none"),s}(t.transform,i,c,n):r.transform&&(r.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=o;r.transformOrigin=`${t} ${e} ${i}`}}let createHtmlRenderState=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function copyRawValuesOnly(t,e,i){for(let n in e)isMotionValue(e[n])||isForcedMotionValue(n,i)||(t[n]=e[n])}function useHTMLProps(t,e,i){let n={},r=function(t,e,i){let n=t.style||{},r={};return copyRawValuesOnly(r,n,t),Object.assign(r,function({transformTemplate:t},e,i){return(0,a.useMemo)(()=>{let n=createHtmlRenderState();return buildHTMLStyles(n,e,{enableHardwareAcceleration:!i},t),Object.assign({},n.vars,n.style)},[e])}(t,e,i)),t.transformValues?t.transformValues(r):r}(t,e,i);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}let R=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function isValidMotionProp(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||R.has(t)}let shouldForward=t=>!isValidMotionProp(t);try{(r=require("@emotion/is-prop-valid").default)&&(shouldForward=t=>t.startsWith("on")?!isValidMotionProp(t):r(t))}catch(t){}function calcOrigin(t,e,i){return"string"==typeof t?t:w.px.transform(e+i*t)}let k={offset:"stroke-dashoffset",array:"stroke-dasharray"},L={offset:"strokeDashoffset",array:"strokeDasharray"};function buildSVGAttrs(t,{attrX:e,attrY:i,attrScale:n,originX:r,originY:s,pathLength:a,pathSpacing:o=1,pathOffset:l=0,...u},c,h,d){if(buildHTMLStyles(t,u,c,d),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:p,style:m,dimensions:f}=t;p.transform&&(f&&(m.transform=p.transform),delete p.transform),f&&(void 0!==r||void 0!==s||m.transform)&&(m.transformOrigin=function(t,e,i){let n=calcOrigin(e,t.x,t.width),r=calcOrigin(i,t.y,t.height);return`${n} ${r}`}(f,void 0!==r?r:.5,void 0!==s?s:.5)),void 0!==e&&(p.x=e),void 0!==i&&(p.y=i),void 0!==n&&(p.scale=n),void 0!==a&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?k:L;t[s.offset]=w.px.transform(-n);let a=w.px.transform(e),o=w.px.transform(i);t[s.array]=`${a} ${o}`}(p,a,o,l,!1)}let createSvgRenderState=()=>({...createHtmlRenderState(),attrs:{}}),isSVGTag=t=>"string"==typeof t&&"svg"===t.toLowerCase();
1function useSVGProps(t,e,i,n){let r=(0,a.useMemo)(()=>{let i=createSvgRenderState();return buildSVGAttrs(i,e,{enableHardwareAcceleration:!1},isSVGTag(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};copyRawValuesOnly(e,t.style,t),r.style={...e,...r.style}}return r}function renderHTML(t,{style:e,vars:i},n,r){for(let s in Object.assign(t.style,e,r&&r.getProjectionStyles(n)),i)t.style.setProperty(s,i[s])}let F=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 renderSVG(t,e,i,n){for(let i in renderHTML(t,e,void 0,n),e.attrs)t.setAttribute(F.has(i)?i:camelToDash(i),e.attrs[i])}function scrapeMotionValuesFromProps(t,e){let{style:i}=t,n={};for(let r in i)(isMotionValue(i[r])||e.style&&isMotionValue(e.style[r])||isForcedMotionValue(r,t))&&(n[r]=i[r]);return n}function scrape_motion_values_scrapeMotionValuesFromProps(t,e){let i=scrapeMotionValuesFromProps(t,e);for(let n in t)if(isMotionValue(t[n])||isMotionValue(e[n])){let e=-1!==A.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;i[e]=t[n]}return i}function resolveVariantFromProps(t,e,i,n={},r={}){return"function"==typeof e&&(e=e(void 0!==i?i:t.custom,n,r)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==i?i:t.custom,n,r)),e}var j=i(6681);let isKeyframesTarget=t=>Array.isArray(t),isCustomValue=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),resolveFinalValueInKeyframes=t=>isKeyframesTarget(t)?t[t.length-1]||0:t;function resolveMotionValue(t){let e=isMotionValue(t)?t.get():t;return isCustomValue(e)?e.toValue():e}let makeUseVisualState=t=>(e,i)=>{let n=(0,a.useContext)(l),r=(0,a.useContext)(u.O),make=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:i},n,r,s){let a={latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=resolveMotionValue(s[t]);let{initial:a,animate:o}=t,l=isControllingVariants(t),u=isVariantNode(t);e&&u&&!l&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===o&&(o=e.animate));let c=!!i&&!1===i.initial;c=c||!1===a;let h=c?o:a;if(h&&"boolean"!=typeof h&&!isAnimationControls(h)){let e=Array.isArray(h)?h:[h];e.forEach(e=>{let i=resolveVariantFromProps(t,e);if(!i)return;let{transitionEnd:n,transition:s,...a}=i;for(let t in a){let e=a[t];
1if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let t in n)r[t]=n[t]})}return r}(n,r,s,t),renderState:e()};return i&&(a.mount=t=>i(n,t,a)),a})(t,e,n,r);return i?make():(0,j.h)(make)};var O=i(2074);let I={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps:scrape_motion_values_scrapeMotionValuesFromProps,createRenderState:createSvgRenderState,onMount:(t,e,{renderState:i,latestValues:n})=>{O.Wi.read(()=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}}),O.Wi.render(()=>{buildSVGAttrs(i,n,{enableHardwareAcceleration:!1},isSVGTag(e.tagName),t.transformTemplate),renderSVG(e,i)})}})},N={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps:scrapeMotionValuesFromProps,createRenderState:createHtmlRenderState})};function addDomEvent(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let isPrimaryPointer=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function extractEventInfo(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}let addPointerInfo=t=>e=>isPrimaryPointer(e)&&t(e,extractEventInfo(e));function addPointerEvent(t,e,i,n){return addDomEvent(t,e,addPointerInfo(i),n)}var W=i(3624);function createLock(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let U=createLock("dragHorizontal"),$=createLock("dragVertical");function getGlobalLock(t){let e=!1;if("y"===t)e=$();else if("x"===t)e=U();else{let t=U(),i=$();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function isDragActive(){let t=getGlobalLock(!0);return!t||(t(),!1)}let Feature=class Feature{constructor(t){this.isMounted=!1,this.node=t}update(){}};function addHoverEvent(t,e){let i="pointer"+(e?"enter":"leave"),n="onHover"+(e?"Start":"End");return addPointerEvent(t.current,i,(i,r)=>{if("touch"===i.pointerType||isDragActive())return;let s=t.getProps();t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",e),s[n]&&O.Wi.update(()=>s[n](i,r))},{passive:!t.getProps()[n]})}let isNodeOrChild=(t,e)=>!!e&&(t===e||isNodeOrChild(t,e.parentElement));var H=i(1662);function fireSyntheticPointerEvent(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,extractEventInfo(i))}let z=new WeakMap,G=new WeakMap,fireObserverCallback=t=>{let e=z.get(t.target);e&&e(t)},fireAllObserverCallbacks=t=>{t.forEach(fireObserverCallback)},Z={some:0,all:1};function shallowCompare(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}function resolveVariant(t,e,i){let n=t.getProps();return resolveVariantFromProps(n,e,void 0!==i?i:n.custom,function(t){let e={};return t.values.forEach((t,i)=>e[i]=t.get()),e}(t),function(t){let e={};return t.values.forEach((t,i)=>e[i]=t.getVelocity()),e}(t))}var q=i(5487);let secondsToMilliseconds=t=>1e3*t,millisecondsToSeconds=t=>t/1e3,X={current:!1},isBezierDefinition=t=>Array.isArray(t)&&"number"==typeof t[0],cubicBezierAsString=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,Y={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cubicBezierAsString([0,.65,.55,1]),circOut:cubicBezierAsString([.55,0,1,.45]),backIn:cubicBezierAsString([.31,.01,.66,-.59]),backOut:cubicBezierAsString([.33,1.53,.69,.99])},calcBezier=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function cubicBezier(t,e,i,n){if(t===e&&i===n)return H.Z;let getTForX=e=>(function(t,e,i,n,r){let s,a;let o=0;do(s=calcBezier(a=e+(i-e)/2,n,r)-t)>0?i=a:e=a;while(Math.abs(s)>1e-7&&++o<12);return a})(e,0,1,t,i);return t=>0===t||1===t?t:calcBezier(getTForX(t),e,n)}let K=cubicBezier(.42,0,1,1),_=cubicBezier(0,0,.58,1),Q=cubicBezier(.42,0,.58,1),isEasingArray=t=>Array.isArray(t)&&"number"!=typeof t[0],mirrorEasing=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,reverseEasing=t=>e=>1-t(1-e),circIn=t=>1-Math.sin(Math.acos(t)),J=reverseEasing(circIn),tt=mirrorEasing(circIn),te=cubicBezier(.33,1.53,.69,.99),ti=reverseEasing(te),tn=mirrorEasing(ti),tr={linear:H.Z,easeIn:K,easeInOut:Q,easeOut:_,circIn:circIn,circInOut:tt,circOut:J,backIn:ti,backInOut:tn,backOut:te,anticipate:t=>(t*=2)<1?.5*ti(t):.5*(2-Math.pow(2,-10*(t-1)))},easingDefinitionToFunction=t=>{if(Array.isArray(t)){(0,q.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return cubicBezier(e,i,n,r)}return"string"==typeof t?((0,q.k)(void 0!==tr[t],`Invalid easing type '${t}'`),tr[t]):t};var ts=i(4606),ta=i(533);function keyframes({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let r=isEasingArray(n)?n.map(easingDefinitionToFunction):easingDefinitionToFunction(n),s={done:!1,value:e[0]}
1,a=(i&&i.length===e.length?i:(0,ta.Y)(e)).map(e=>e*t),o=(0,ts.s)(a,e,{ease:Array.isArray(r)?r:e.map(()=>r||Q).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=o(e),s.done=e>=t,s)}}var to=i(3038);function calcGeneratorVelocity(t,e,i){let n=Math.max(e-5,0);return(0,to.R)(i-t(n),e-n)}var tl=i(4169);function calcAngularFreq(t,e){return t*Math.sqrt(1-e*e)}let tu=["duration","bounce"],tc=["stiffness","damping","mass"];function isSpringType(t,e){return e.some(e=>void 0!==t[e])}function spring({keyframes:t,restDelta:e,restSpeed:i,...n}){let r;let s=t[0],a=t[t.length-1],o={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:h,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!isSpringType(t,tc)&&isSpringType(t,tu)){let i=function({duration:t=800,bounce:e=.25,velocity:i=0,mass:n=1}){let r,s;(0,q.K)(t<=secondsToMilliseconds(10),"Spring duration must be 10 seconds or less");let a=1-e;a=(0,tl.u)(.05,1,a),t=(0,tl.u)(.01,10,millisecondsToSeconds(t)),a<1?(r=e=>{let n=e*a,r=n*t,s=calcAngularFreq(e,a);return .001-(n-i)/s*Math.exp(-r)},s=e=>{let n=e*a,s=n*t,o=Math.pow(a,2)*Math.pow(e,2)*t,l=calcAngularFreq(Math.pow(e,2),a),u=-r(e)+.001>0?-1:1;return u*((s*i+i-o)*Math.exp(-s))/l}):(r=e=>{let n=Math.exp(-e*t),r=(e-i)*t+1;return -.001+n*r},s=e=>{let n=Math.exp(-e*t),r=(i-e)*(t*t);return n*r});let o=5/t,l=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,o);if(t=secondsToMilliseconds(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(l,2)*n;return{stiffness:e,damping:2*a*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...n,velocity:-millisecondsToSeconds(n.velocity||0)}),m=d||0,f=u/(2*Math.sqrt(l*c)),g=a-s,v=millisecondsToSeconds(Math.sqrt(l/c)),y=5>Math.abs(g);if(i||(i=y?.01:2),e||(e=y?.005:.5),f<1){let t=calcAngularFreq(v,f);r=e=>{let i=Math.exp(-f*v*e);return a-i*((m+f*v*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}}else if(1===f)r=t=>a-Math.exp(-v*t)*(g+(m+v*g)*t);else{let t=v*Math.sqrt(f*f-1);r=e=>{let i=Math.exp(-f*v*e),n=Math.min(t*e,300);return a-i*((m+f*v*g)*Math.sinh(n)+t*g*Math.cosh(n))/t}}return{calculatedDuration:p&&h||null,next:t=>{let n=r(t);if(p)o.done=t>=h;else{let s=m;0!==t&&(s=f<1?calcGeneratorVelocity(r,t,n):0);let l=Math.abs(s)<=i,u=Math.abs(a-n)<=e;o.done=l&&u}return o.value=o.done?a:n,o}}}function inertia({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:c}){let h,d;let p=t[0],m={done:!1,value:p},isOutOfBounds=t=>void 0!==o&&t<o||void 0!==l&&t>l,nearestBoundary=t=>void 0===o?l:void 0===l?o:Math.abs(o-t)<Math.abs(l-t)?o:l,f=i*e,g=p+f,v=void 0===a?g:a(g);v!==g&&(f=v-p);let calcDelta=t=>-f*Math.exp(-t/n),calcLatest=t=>v+calcDelta(t),applyFriction=t=>{let e=calcDelta(t),i=calcLatest(t);m.done=Math.abs(e)<=u,m.value=m.done?v:i},checkCatchBoundary=t=>{isOutOfBounds(m.value)&&(h=t,d=spring({keyframes:[m.value,nearestBoundary(m.value)],velocity:calcGeneratorVelocity(calcLatest,t,m.value),damping:r,stiffness:s,restDelta:u,restSpeed:c}))};return checkCatchBoundary(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==h||(e=!0,applyFriction(t),checkCatchBoundary(t)),void 0!==h&&t>h)?d.next(t-h):(e||applyFriction(t),m)}}}let frameloopDriver=t=>{let passTimestamp=({timestamp:e})=>t(e);return{start:()=>O.Wi.update(passTimestamp,!0),stop:()=>(0,O.Pn)(passTimestamp),now:()=>O.frameData.isProcessing?O.frameData.timestamp:performance.now()}};function calcGeneratorDuration(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let th={decay:inertia,inertia:inertia,tween:keyframes,keyframes:keyframes,spring:spring};function animateValue({autoplay:t=!0,delay:e=0,driver:i=frameloopDriver,keyframes:n,type:r="keyframes",repeat:s=0,repeatDelay:a=0,repeatType:o="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:h,...d}){let p,m,f,g,v,y=1,x=!1,updateFinishedPromise=()=>{m=new Promise(t=>{p=t})};updateFinishedPromise();let P=th[r]||keyframes;P!==keyframes&&"number"!=typeof n[0]&&(g=(0,ts.s)([0,100],n,{clamp:!1}),n=[0,100]);let T=P({...d,keyframes:n});"mirror"===o&&(v=P({...d,keyframes:[...n].reverse(),velocity:-(d.velocity||0)}
1));let V="idle",A=null,b=null,S=null;null===T.calculatedDuration&&s&&(T.calculatedDuration=calcGeneratorDuration(T));let{calculatedDuration:D}=T,C=1/0,M=1/0;null!==D&&(M=(C=D+a)*(s+1)-a);let w=0,tick=t=>{if(null===b)return;y>0&&(b=Math.min(b,t)),y<0&&(b=Math.min(t-M/y,b)),w=null!==A?A:Math.round(t-b)*y;let i=w-e*(y>=0?1:-1),r=y>=0?i<0:i>M;w=Math.max(i,0),"finished"===V&&null===A&&(w=M);let l=w,u=T;if(s){let t=Math.min(w,M)/C,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,e=Math.min(e,s+1);let n=!!(e%2);n&&("reverse"===o?(i=1-i,a&&(i-=a/C)):"mirror"===o&&(u=v)),l=(0,tl.u)(0,1,i)*C}let c=r?{done:!1,value:n[0]}:u.next(l);g&&(c.value=g(c.value));let{done:d}=c;r||null===D||(d=y>=0?w>=M:w<=0);let p=null===A&&("finished"===V||"running"===V&&d);return h&&h(c.value),p&&finish(),c},stopAnimationDriver=()=>{f&&f.stop(),f=void 0},cancel=()=>{V="idle",stopAnimationDriver(),p(),updateFinishedPromise(),b=S=null},finish=()=>{V="finished",c&&c(),stopAnimationDriver(),p()},play=()=>{if(x)return;f||(f=i(tick));let t=f.now();l&&l(),null!==A?b=t-A:b&&"finished"!==V||(b=t),"finished"===V&&updateFinishedPromise(),S=b,A=null,V="running",f.start()};t&&play();let E={then:(t,e)=>m.then(t,e),get time(){return millisecondsToSeconds(w)},set time(newTime){w=newTime=secondsToMilliseconds(newTime),null===A&&f&&0!==y?b=f.now()-newTime/y:A=newTime},get duration(){let t=null===T.calculatedDuration?calcGeneratorDuration(T):T.calculatedDuration;return millisecondsToSeconds(t)},get speed(){return y},set speed(newSpeed){if(newSpeed===y||!f)return;y=newSpeed,E.time=millisecondsToSeconds(w)},get state(){return V},play,pause:()=>{V="paused",A=w},stop:()=>{x=!0,"idle"!==V&&(V="idle",u&&u(),cancel())},cancel:()=>{null!==S&&tick(S),cancel()},complete:()=>{V="finished"},sample:t=>(b=0,tick(t))};return E}let td=(s=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===n&&(n=s()),n)),tp=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),requiresPregeneratedKeyframes=(t,e)=>"spring"===e.type||"backgroundColor"===t||!function isWaapiSupportedEasing(t){return!!(!t||"string"==typeof t&&Y[t]||isBezierDefinition(t)||Array.isArray(t)&&t.every(isWaapiSupportedEasing))}(e.ease),tm={type:"spring",stiffness:500,damping:25,restSpeed:10},criticallyDampedSpring=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),tf={type:"keyframes",duration:.8},tg={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},getDefaultTransition=(t,{keyframes:e})=>e.length>2?tf:b.has(t)?t.startsWith("scale")?criticallyDampedSpring(e[1]):tm:tg;var tv=i(1550);let isAnimatable=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(tv.P.test(e)||"0"===e)&&!e.startsWith("url("));var ty=i(6430);let tx=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(ty.KP)||[];if(!n)return t;let r=i.replace(n,""),s=tx.has(e)?1:0;return n!==i&&(s*=100),e+"("+s+r+")"}let tP=/([a-z-]*)\(.*?\)/g,tT={...tv.P,getAnimatableNone:t=>{let e=t.match(tP);return e?e.map(applyDefaultFilter).join(" "):t}};var tV=i(5385);let tA={...B,color:tV.$,backgroundColor:tV.$,outlineColor:tV.$,fill:tV.$,stroke:tV.$,borderColor:tV.$,borderTopColor:tV.$,borderRightColor:tV.$,borderBottomColor:tV.$,borderLeftColor:tV.$,filter:tT,WebkitFilter:tT},getDefaultValueType=t=>tA[t];function getAnimatableNone(t,e){let i=getDefaultValueType(t);return i!==tT&&(i=tv.P),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let isZeroValueString=t=>/^0[^.\s]+$/.test(t);function getValueTransition(t,e){return t[e]||t.default||t}let tb={skipAnimations:!1},animateMotionValue=(t,e,i,n={})=>r=>{let s=getValueTransition(n,t)||{},a=s.delay||n.delay||0,{elapsed:o=0}=n;o-=secondsToMilliseconds(a);let l=function(t,e,i,n){let r,s;let a=isAnimatable(e,i);r=Array.isArray(i)?[...i]:[null,i];let o=void 0!==n.from?n.from:t.get(),l=[];for(let t=0;t<r.length;t++){var u;null===r[t]&&(r[t]=0===t?o:r[t-1]),("number"==typeof(u=r[t])?0===u:null!==u?"none"===u||"0"===u||isZeroValueString(u):void 0)&&l.push(t),"string"==typeof r[t]&&"none"!==r[t]&&"0"!==r[t]&&(s=r[t])}if(a&&l.length&&s)for(let t=0;t<l.length;t++){let i=l[t];r[i]=getAnimatableNone(e,s)}return r}(e,t,i,s),u=l[0],c=l[l.length-1],h=isAnimatable(t,u),d=isAnimatable(t,c);(0,q.K)(h===d,`You are trying to animate ${t} from "${u}" to "${c}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${c} via the \`style\` property.`);let p={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...s,delay:-o,onUpdate:t=>
1{e.set(t),s.onUpdate&&s.onUpdate(t)},onComplete:()=>{r(),s.onComplete&&s.onComplete()}};if(!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(s)&&(p={...p,...getDefaultTransition(t,p)}),p.duration&&(p.duration=secondsToMilliseconds(p.duration)),p.repeatDelay&&(p.repeatDelay=secondsToMilliseconds(p.repeatDelay)),!h||!d||X.current||!1===s.type||tb.skipAnimations)return function({keyframes:t,delay:e,onUpdate:i,onComplete:n}){let setValue=()=>(i&&i(t[t.length-1]),n&&n(),{time:0,speed:1,duration:0,play:H.Z,pause:H.Z,stop:H.Z,then:t=>(t(),Promise.resolve()),cancel:H.Z,complete:H.Z});return e?animateValue({keyframes:[0,1],duration:0,delay:e,onComplete:setValue}):setValue()}(X.current?{...p,delay:0}:p);if(!n.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){let i=function(t,e,{onUpdate:i,onComplete:n,...r}){let s,a;let o=td()&&tp.has(e)&&!r.repeatDelay&&"mirror"!==r.repeatType&&0!==r.damping&&"inertia"!==r.type;if(!o)return!1;let l=!1,u=!1,updateFinishedPromise=()=>{a=new Promise(t=>{s=t})};updateFinishedPromise();let{keyframes:c,duration:h=300,ease:d,times:p}=r;if(requiresPregeneratedKeyframes(e,r)){let t=animateValue({...r,repeat:0,delay:0}),e={done:!1,value:c[0]},i=[],n=0;for(;!e.done&&n<2e4;)e=t.sample(n),i.push(e.value),n+=10;p=void 0,c=i,h=n-10,d="linear"}let m=function(t,e,i,{delay:n=0,duration:r,repeat:s=0,repeatType:a="loop",ease:o,times:l}={}){let u={[e]:i};l&&(u.offset=l);let c=function mapEasingToNativeEasing(t){if(t)return isBezierDefinition(t)?cubicBezierAsString(t):Array.isArray(t)?t.map(mapEasingToNativeEasing):Y[t]}(o);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:n,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"})}(t.owner.current,e,c,{...r,duration:h,ease:d,times:p}),cancelAnimation=()=>{u=!1,m.cancel()},safeCancel=()=>{u=!0,O.Wi.update(cancelAnimation),s(),updateFinishedPromise()};return m.onfinish=()=>{u||(t.set(function(t,{repeat:e,repeatType:i="loop"}){let n=e&&"loop"!==i&&e%2==1?0:t.length-1;return t[n]}(c,r)),n&&n(),safeCancel())},{then:(t,e)=>a.then(t,e),attachTimeline:t=>(m.timeline=t,m.onfinish=null,H.Z),get time(){return millisecondsToSeconds(m.currentTime||0)},set time(newTime){m.currentTime=secondsToMilliseconds(newTime)},get speed(){return m.playbackRate},set speed(newSpeed){m.playbackRate=newSpeed},get duration(){return millisecondsToSeconds(h)},play:()=>{l||(m.play(),(0,O.Pn)(cancelAnimation))},pause:()=>m.pause(),stop:()=>{if(l=!0,"idle"===m.playState)return;let{currentTime:e}=m;if(e){let i=animateValue({...r,autoplay:!1});t.setWithVelocity(i.sample(e-10).value,i.sample(e).value,10)}safeCancel()},complete:()=>{u||m.finish()},cancel:safeCancel}}(e,t,p);if(i)return i}return animateValue(p)};function isWillChangeMotionValue(t){return!!(isMotionValue(t)&&t.add)}let isNumericalString=t=>/^\-?\d*\.?\d+$/.test(t);var tS=i(3234);let testValueType=t=>e=>e.test(t),tD=[M.Rx,w.px,w.aQ,w.RW,w.vw,w.vh,{test:t=>"auto"===t,parse:t=>t}],findDimensionValueType=t=>tD.find(testValueType(t)),tC=[...tD,tV.$,tv.P],findValueType=t=>tC.find(testValueType(t));function animateTarget(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:a,...o}=t.makeTargetAnimatable(e),l=t.getValue("willChange");n&&(s=n);let u=[],c=r&&t.animationState&&t.animationState.getState()[r];for(let e in o){let n=t.getValue(e),r=o[e];if(!n||void 0===r||c&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(c,e))continue;let a={delay:i,elapsed:0,...getValueTransition(s||{},e)};if(window.HandoffAppearAnimations){let i=t.getProps()[d];if(i){let t=window.HandoffAppearAnimations(i,e,n,O.Wi);null!==t&&(a.elapsed=t,a.isHandoff=!0)}}let h=!a.isHandoff&&!function(t,e){let i=t.get();if(!Array.isArray(e))return i!==e;for(let t=0;t<e.length;t++)if(e[t]!==i)return!0}(n,r);if("spring"===a.type&&(n.getVelocity()||a.velocity)&&(h=!1),n.animation&&(h=!1),h)continue;n.start(animateMotionValue(e,n,r,t.shouldReduceMotion&&b.has(e)?{type:!1}:a));let p=n.animation;isWillChangeMotionValue(l)&&(l.add(e),p.then(()=>l.remove(e))),u.push(p)}return a&&Promise.all(u).then(()=>{a&&function(t,e){let i=resolveVariant(t,e),{transitionEnd:n={},transition:r={},...s}=i?t.makeTargetAnimatable(i,!1):{};for(let e in s={...s,...n}){let i=resolveFinalValueInKeyframes(s[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,tS.BX)(i))}}(t,a)}),u}function animateVariant(t,e,i={}){let n=resolveVariant(t,e,i.custom),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(animateTarget(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:o}=r;
1return function(t,e,i=0,n=0,r=1,s){let a=[],o=(t.variantChildren.size-1)*n,l=1===r?(t=0)=>t*n:(t=0)=>o-t*n;return Array.from(t.variantChildren).sort(sortByTreeOrder).forEach((t,n)=>{t.notify("AnimationStart",e),a.push(animateVariant(t,e,{...s,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(a)}(t,e,s+n,a,o,i)}:()=>Promise.resolve(),{when:o}=r;if(!o)return Promise.all([s(),a(i.delay)]);{let[t,e]="beforeChildren"===o?[s,a]:[a,s];return t().then(()=>e())}}function sortByTreeOrder(t,e){return t.sortNodePosition(e)}let tM=[...p].reverse(),tw=p.length;function createTypeState(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let tE=0,distance=(t,e)=>Math.abs(t-e);let PanSession=class PanSession{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=getPanInfo(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){let i=distance(t.x,e.x),n=distance(t.y,e.y);return Math.sqrt(i**2+n**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:r}=O.frameData;this.history.push({...n,timestamp:r});let{onStart:s,onMove:a}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=transformPoint(e,this.transformPagePoint),O.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=getPanInfo("pointercancel"===t.type?this.lastMoveEventInfo:transformPoint(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!isPrimaryPointer(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let s=extractEventInfo(t),a=transformPoint(s,this.transformPagePoint),{point:o}=a,{timestamp:l}=O.frameData;this.history=[{...o,timestamp:l}];let{onSessionStart:u}=e;u&&u(t,getPanInfo(a,this.history)),this.removeListeners=(0,W.z)(addPointerEvent(this.contextWindow,"pointermove",this.handlePointerMove),addPointerEvent(this.contextWindow,"pointerup",this.handlePointerUp),addPointerEvent(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,O.Pn)(this.updatePoint)}};function transformPoint(t,e){return e?{point:e(t.point)}:t}function subtractPoint(t,e){return{x:t.x-e.x,y:t.y-e.y}}function getPanInfo({point:t},e){return{point:t,delta:subtractPoint(t,lastDevicePoint(e)),offset:subtractPoint(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=lastDevicePoint(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>secondsToMilliseconds(.1)));)i--;if(!n)return{x:0,y:0};let s=millisecondsToSeconds(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let a={x:(r.x-n.x)/s,y:(r.y-n.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,0)}}function lastDevicePoint(t){return t[t.length-1]}var tB=i(3967),tR=i(22);function calcLength(t){return t.max-t.min}function isNear(t,e=0,i=.01){return Math.abs(t-e)<=i}function calcAxisDelta(t,e,i,n=.5){t.origin=n,t.originPoint=(0,tR.C)(e.min,e.max,t.origin),t.scale=calcLength(i)/calcLength(e),(isNear(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,tR.C)(i.min,i.max,t.origin)-t.originPoint,(isNear(t.translate)||isNaN(t.translate))&&(t.translate=0)}function calcBoxDelta(t,e,i,n){calcAxisDelta(t.x,e.x,i.x,n?n.originX:void 0),calcAxisDelta(t.y,e.y,i.y,n?n.originY:void 0)}function calcRelativeAxis(t,e,i){t.min=i.min+e.min,t.max=t.min+calcLength(e)}function calcRelativeAxisPosition(t,e,i){t.min=e.min-i.min,t.max=t.min+calcLength(e)}function calcRelativePosition(t,e,i){calcRelativeAxisPosition(t.x,e.x,i.x),calcRelativeAxisPosition(t.y,e.y,i.y)}function calcRelativeAxisConstraints(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function calcViewportAxisConstraints(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function resolveAxisElastic(t,e,i){return{min:resolvePointElastic(t,e),max:resolvePointElastic(t,i)}}function resolvePointElastic(t,e){return"number"==typeof t?t:t[e]||0}let createAxisDelta=()=>({translate:0,scale:1,origin:0,originPoint:0}),createDelta=()=>({x:createAxisDelta(),y:createAxisDelta()}),createAxis=()=>({min:0,max:0}),createBox=()=>({x:createAxis(),y:createAxis()});function eachAxis(t){return[t("x"),t("y")]}function convertBoundingBoxToBox({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function isIdentityScale(t){return void 0===t||1===t}function hasScale({scale:t,scaleX:e,scaleY:i}){return!isIdentityScale(t)||!isIdentityScale(e)||!isIdentityScale(i)}function hasTransform(t){return hasScale(t)||has2DTranslate(t)||t.z||t.rotate||t.rotateX||t.rotateY}function has2DTranslate(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function applyPointDelta(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function applyAxisDelta(t,e=0,i=1,n,r){t.min=applyPointDelta(t.min,e,i,n,r),t.max=applyPointDelta(t.max,e,i,n,r)}function applyBoxDelta(t,{x:e,y:i}){applyAxisDelta(t.x,e.translate,e.scale,e.originPoint),applyAxisDelta(t.y,i.translate,i.scale,i.originPoint)}function snapToDefault(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function translateAxis(t,e){t.min=t.min+e,t.max=t.max+e}function transformAxis(t,e,[i,n,r]){let s=void 0!==e[r]?e[r]:.5,a=(0,tR.C)(t.min,t.max,s);applyAxisDelta(t,e[i],e[n],a,e.scale)}let tk=["x","scaleX","originX"],tL=["y","scaleY","originY"];function transformBox(t,e){transformAxis(t.x,e,tk),transformAxis(t.y,e,tL)}function measureViewportBox(t,e){return convertBoundingBoxToBox(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let getContextWindow=({current:t})=>t?t.ownerDocument.defaultView:null,tF=new WeakMap;let VisualElementDragControls=class VisualElementDragControls{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=createBox(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new PanSession(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(extractEventInfo(t,"page").point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=getGlobalLock(i),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eachAxis(t=>{let e=this.getAxisMotionValue(t).get()||0;if(w.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=calcLength(n);e=t*(parseFloat(e)/100)}}}this.originPoint[t]=e}),r&&O.Wi.update(()=>r(t,e),!1,!0);let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:a}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(a),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>eachAxis(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:getContextWindow(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&O.Wi.update(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!shouldDrag(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i}
1,n){return void 0!==e&&t<e?t=n?(0,tR.C)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,tR.C)(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,r=this.constraints;e&&isRefObject(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:calcRelativeAxisConstraints(t.x,i,r),y:calcRelativeAxisConstraints(t.y,e,n)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:resolveAxisElastic(t,"left","right"),y:resolveAxisElastic(t,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&eachAxis(t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!isRefObject(e))return!1;let n=e.current;(0,q.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=function(t,e,i){let n=measureViewportBox(t,i),{scroll:r}=e;return r&&(translateAxis(n.x,r.offset.x),translateAxis(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),a={x:calcViewportAxisConstraints((t=r.layout.layoutBox).x,s.x),y:calcViewportAxisConstraints(t.y,s.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=convertBoundingBoxToBox(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{},l=eachAxis(a=>{if(!shouldDrag(a,e,this.currentDirection))return;let l=o&&o[a]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(a,u)});return Promise.all(l).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i.start(animateMotionValue(t,i,0,e))}stopAnimation(){eachAxis(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){eachAxis(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e="_drag"+t.toUpperCase(),i=this.visualElement.getProps(),n=i[e];return n||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){eachAxis(e=>{let{drag:i}=this.getProps();if(!shouldDrag(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-(0,tR.C)(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!isRefObject(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};eachAxis(t=>{let e=this.getAxisMotionValue(t);if(e){let i=e.get();n[t]=function(t,e){let i=.5,n=calcLength(t),r=calcLength(e);return r>n?i=(0,tB.Y)(e.min,e.max-n,t.min):n>r&&(i=(0,tB.Y)(t.min,t.max-r,e.min)),(0,tl.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),eachAxis(e=>{if(!shouldDrag(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set((0,tR.C)(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;tF.set(this.visualElement,this);let t=this.visualElement.current,e=addPointerEvent(t,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),measureDragConstraints=()=>{let{dragConstraints:t}=this.getProps();isRefObject(t)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",measureDragConstraints);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),measureDragConstraints();
1let r=addDomEvent(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(eachAxis(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),e(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:a}}};function shouldDrag(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let asyncHandler=t=>(e,i)=>{t&&O.Wi.update(()=>t(e,i))},tj={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pixelsToPercent(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tO={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!w.px.test(t))return t;t=parseFloat(t)}let i=pixelsToPercent(t,e.target.x),n=pixelsToPercent(t,e.target.y);return`${i}% ${n}%`}};let MeasureLayoutWithContext=class MeasureLayoutWithContext extends a.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;Object.assign(V,tI),r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),tj.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,n||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||O.Wi.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function MeasureLayout(t){let[e,i]=function(){let t=(0,a.useContext)(u.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:n}=t,r=(0,a.useId)();return(0,a.useEffect)(()=>n(r),[]),!e&&i?[!1,()=>i&&i(r)]:[!0]}(),n=(0,a.useContext)(y.p);return a.createElement(MeasureLayoutWithContext,{...t,layoutGroup:n,switchLayoutGroup:(0,a.useContext)(x),isPresent:e,safeToRemove:i})}let tI={borderRadius:{...tO,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tO,borderTopRightRadius:tO,borderBottomLeftRadius:tO,borderBottomRightRadius:tO,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tv.P.parse(t);if(n.length>5)return t;let r=tv.P.createTransformer(t),s="number"!=typeof n[0]?1:0,a=i.x.scale*e.x,o=i.y.scale*e.y;n[0+s]/=a,n[1+s]/=o;let l=(0,tR.C)(a,o,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};var tN=i(1560);let tW=["TopLeft","TopRight","BottomLeft","BottomRight"],tU=tW.length,asNumber=t=>"string"==typeof t?parseFloat(t):t,isPx=t=>"number"==typeof t||w.px.test(t);function getRadius(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let t$=compress(0,.5,J),tH=compress(.5,.95,H.Z);function compress(t,e,i){return n=>n<t?0:n>e?1:i((0,tB.Y)(t,e,n))}function copyAxisInto(t,e){t.min=e.min,t.max=e.max}function copyBoxInto(t,e){copyAxisInto(t.x,e.x),copyAxisInto(t.y,e.y)}function removePointDelta(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function removeAxisTransforms(t,e,[i,n,r],s,a){!function(t,e=0,i=1,n=.5,r,s=t,a=t){if(w.aQ.test(e)){e=parseFloat(e);let t=(0,tR.C)(a.min,a.max,e/100);e=t-a.min}if("number"!=typeof e)return;let o=(0,tR.C)(s.min,s.max,n);t===s&&(o-=e),t.min=removePointDelta(t.min,e,i,o,r),t.max=removePointDelta(t.max,e,i,o,r)}(t,e[i],e[n],e[r],e.scale,s,a)}let tz=["x","scaleX","originX"],tG=["y","scaleY","originY"];function removeBoxTransforms(t,e,i,n){removeAxisTransforms(t.x,e,tz,i?i.x:void 0,n?n.x:void 0),removeAxisTransforms(t.y,e,tG,i?i.y:void 0,n?n.y:void 0)}function isAxisDeltaZero(t){return 0===t.translate&&1===t.scale}function isDeltaZero(t){return isAxisDeltaZero(t.x)&&isAxisDeltaZero(t.y)}function boxEqualsRounded(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function aspectRatio(t){return calcLength(t.x)/calcLength(t.y)}var tZ=i(10);let NodeStack=class NodeStack{constructor(){this.members=[]}add(t){(0,tZ.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,tZ.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}
1}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function buildProjectionTransform(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y;if((r||s)&&(n=`translate3d(${r}px, ${s}px, 0) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{rotate:t,rotateX:e,rotateY:r}=i;t&&(n+=`rotate(${t}deg) `),e&&(n+=`rotateX(${e}deg) `),r&&(n+=`rotateY(${r}deg) `)}let a=t.x.scale*e.x,o=t.y.scale*e.y;return(1!==a||1!==o)&&(n+=`scale(${a}, ${o})`),n||"none"}let compareByDepth=(t,e)=>t.depth-e.depth;let FlatTree=class FlatTree{constructor(){this.children=[],this.isDirty=!1}add(t){(0,tZ.y4)(this.children,t),this.isDirty=!0}remove(t){(0,tZ.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(compareByDepth),this.isDirty=!1,this.children.forEach(t)}};let tq=["","X","Y","Z"],tX={visibility:"hidden"},tY=0,tK={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function createProjectionNode({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=tY++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tK.totalNodes=tK.resolvedTargetDeltas=tK.recalculatedProjection=0,this.nodes.forEach(propagateDirtyNodes),this.nodes.forEach(resolveTargetDelta),this.nodes.forEach(calcProjection),this.nodes.forEach(cleanDirtyNodes),window.MotionDebug&&window.MotionDebug.record(tK)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new FlatTree)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tN.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:n,layout:r,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||n)&&(this.isLayoutDirty=!0),t){let i;let resizeUnblockUpdate=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=performance.now(),checkElapsed=({timestamp:n})=>{let r=n-i;r>=e&&((0,O.Pn)(checkElapsed),t(r-e))};return O.Wi.read(checkElapsed,!0),()=>(0,O.Pn)(checkElapsed)}(resizeUnblockUpdate,250),tj.hasAnimatedSinceResize&&(tj.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(finishAnimation))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||t_,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=s.getProps(),l=!this.targetLayout||!boxEqualsRounded(this.targetLayout,n)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...getValueTransition(r,"layout"),onPlay:a,onComplete:o};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||finishAnimation(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,O.Pn)(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(resetRotation),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;let t=this.isUpdateBlocked();if(t){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(clearMeasurements);return}this.isUpdating||this.nodes.forEach(clearIsLayoutDirty),this.isUpdating=!1,this.nodes.forEach(resetTransformStyle),this.nodes.forEach(updateLayout),this.nodes.forEach(notifyLayoutUpdate),this.clearAllSnapshots();let e=performance.now();O.frameData.delta=(0,tl.u)(0,1e3/60,e-O.frameData.timestamp),O.frameData.timestamp=e,O.frameData.isProcessing=!0,O.S6.update.process(O.frameData),O.S6.preRender.process(O.frameData),O.S6.render.process(O.frameData),O.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(clearSnapshot),this.sharedNodes.forEach(removeLeadSnapshots)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,O.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){O.Wi.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 t=0;t<this.path.length;t++){let e=this.path[t];e.updateScroll()}let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=createBox(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:n(this.instance),offset:i(this.instance)})}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!isDeltaZero(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&(e||hasTransform(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);
1return t&&(n=this.removeTransform(n)),roundAxis((e=n).x),roundAxis(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return createBox();let e=t.measureViewportBox(),{scroll:i}=this.root;return i&&(translateAxis(e.x,i.offset.x),translateAxis(e.y,i.offset.y)),e}removeElementScroll(t){let e=createBox();copyBoxInto(e,t);for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;if(n!==this.root&&r&&s.layoutScroll){if(r.isRoot){copyBoxInto(e,t);let{scroll:i}=this.root;i&&(translateAxis(e.x,-i.offset.x),translateAxis(e.y,-i.offset.y))}translateAxis(e.x,r.offset.x),translateAxis(e.y,r.offset.y)}}return e}applyTransform(t,e=!1){let i=createBox();copyBoxInto(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&transformBox(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),hasTransform(n.latestValues)&&transformBox(i,n.latestValues)}return hasTransform(this.latestValues)&&transformBox(i,this.latestValues),i}removeTransform(t){let e=createBox();copyBoxInto(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!hasTransform(i.latestValues))continue;hasScale(i.latestValues)&&i.updateSnapshot();let n=createBox(),r=i.measurePageBox();copyBoxInto(n,r),removeBoxTransforms(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return hasTransform(this.latestValues)&&removeBoxTransforms(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==O.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,n,r;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);let a=!!this.resumingFrom||this!==s,o=!(t||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget);if(o)return;let{layout:l,layoutId:u}=this.options;if(this.layout&&(l||u)){if(this.resolvedRelativeTargetAt=O.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=createBox(),this.targetWithTransforms=createBox()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,n=this.relativeTarget,r=this.relativeParent.target,calcRelativeAxis(i.x,n.x,r.x),calcRelativeAxis(i.y,n.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):copyBoxInto(this.target,this.layout.layoutBox),applyBoxDelta(this.target,this.targetDelta)):copyBoxInto(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,this.target,t.target),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tK.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||hasScale(this.parent.latestValues)||has2DTranslate(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===O.frameData.timestamp&&(n=!1),n)return;let{layout:r,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||s))return;copyBoxInto(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;
1!function(t,e,i,n=!1){let r,s;let a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){s=(r=i[o]).projectionDelta;let a=r.instance;(!a||!a.style||"contents"!==a.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&transformBox(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,applyBoxDelta(t,s)),n&&hasTransform(r.latestValues)&&transformBox(t,r.latestValues))}e.x=snapToDefault(e.x),e.y=snapToDefault(e.y)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox);let{target:l}=e;if(!l){this.projectionTransform&&(this.projectionDelta=createDelta(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=createDelta(),this.projectionDeltaWithTransform=createDelta());let u=this.projectionTransform;calcBoxDelta(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=buildProjectionTransform(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==a||this.treeScale.y!==o)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),tK.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){let i;let n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},a=createDelta();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=createBox(),l=n?n.source:void 0,u=this.layout?this.layout.source:void 0,c=l!==u,h=this.getStack(),d=!h||h.members.length<=1,p=!!(c&&!d&&!0===this.options.crossfade&&!this.path.some(hasOpacityCrossfade));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(mixAxisDelta(a.x,t.x,n),mixAxisDelta(a.y,t.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var l,u,h,m;calcRelativePosition(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,m=this.relativeTargetOrigin,mixAxis(h.x,m.x,o.x,n),mixAxis(h.y,m.y,o.y,n),i&&(l=this.relativeTarget,u=i,l.x.min===u.x.min&&l.x.max===u.x.max&&l.y.min===u.y.min&&l.y.max===u.y.max)&&(this.isProjectionDirty=!1),i||(i=createBox()),copyBoxInto(i,this.relativeTarget)}c&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=(0,tR.C)(0,void 0!==i.opacity?i.opacity:1,t$(n)),t.opacityExit=(0,tR.C)(void 0!==e.opacity?e.opacity:1,0,tH(n))):s&&(t.opacity=(0,tR.C)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r<tU;r++){let s=`border${tW[r]}Radius`,a=getRadius(e,s),o=getRadius(i,s);if(void 0===a&&void 0===o)continue;a||(a=0),o||(o=0);let l=0===a||0===o||isPx(a)===isPx(o);l?(t[s]=Math.max((0,tR.C)(asNumber(a),asNumber(o),n),0),(w.aQ.test(o)||w.aQ.test(a))&&(t[s]+="%")):t[s]=o}(e.rotate||i.rotate)&&(t.rotate=(0,tR.C)(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,p,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,O.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=O.Wi.update(()=>{tj.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let n=isMotionValue(t)?t:(0,tS.BX)(t);return n.start(animateMotionValue("",n,1e3,i)),n.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&shouldAnimatePositionOnly(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||createBox();let e=calcLength(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=calcLength(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}copyBoxInto(e,i),transformBox(e,r),calcBoxDelta(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new NodeStack);let i=this.sharedNodes.get(t);i.add(e);let n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.rotate||i.rotateX||i.rotateY||i.rotateZ)&&(e=!0),!e)return;let n={};for(let e=0;e<tq.length;e++){let r="rotate"+tq[e];i[r]&&(n[r]=i[r],t.setStaticValue(r,0))}for(let e in t.render(),n)t.setStaticValue(e,n[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return tX;let n={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=resolveMotionValue(null==t?void 0:t.pointerEvents)||"",n.transform=r?r(this.latestValues,""):"none",n;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=resolveMotionValue(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!hasTransform(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let a=s.animationValues||s.latestValues;this.applyTransformsToTarget(),n.transform=buildProjectionTransform(this.projectionDeltaWithTransform,this.treeScale,a),r&&(n.transform=r(a,n.transform));let{x:o,y:l}=this.projectionDelta;for(let t in n.transformOrigin=`${100*o.origin}% ${100*l.origin}% 0`,s.animationValues?n.opacity=s===this?null!==(i=null!==(e=a.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:n.opacity=s===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,V){if(void 0===a[t])continue;let{correct:e,applyTo:i}=V[t],r="none"===n.transform?a[t]:e(a[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)n[i[e]]=r}else n[t]=r}return this.options.layoutId&&(n.pointerEvents=s===this?resolveMotionValue(null==t?void 0:t.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
1resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(clearMeasurements),this.root.sharedNodes.clear()}}}function updateLayout(t){t.updateLayout()}function notifyLayoutUpdate(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:r}=t.options,s=i.source!==t.layout.source;"size"===r?eachAxis(t=>{let n=s?i.measuredBox[t]:i.layoutBox[t],r=calcLength(n);n.min=e[t].min,n.max=n.min+r}):shouldAnimatePositionOnly(r,i.layoutBox,e)&&eachAxis(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],a=calcLength(e[n]);r.max=r.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+a)});let a=createDelta();calcBoxDelta(a,e,i.layoutBox);let o=createDelta();s?calcBoxDelta(o,t.applyTransform(n,!0),i.measuredBox):calcBoxDelta(o,e,i.layoutBox);let l=!isDeltaZero(a),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let a=createBox();calcRelativePosition(a,i.layoutBox,r.layoutBox);let o=createBox();calcRelativePosition(o,e,s.layoutBox),boxEqualsRounded(a,o)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function propagateDirtyNodes(t){tK.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 cleanDirtyNodes(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function clearSnapshot(t){t.clearSnapshot()}function clearMeasurements(t){t.clearMeasurements()}function clearIsLayoutDirty(t){t.isLayoutDirty=!1}function resetTransformStyle(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function finishAnimation(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function resolveTargetDelta(t){t.resolveTargetDelta()}function calcProjection(t){t.calcProjection()}function resetRotation(t){t.resetRotation()}function removeLeadSnapshots(t){t.removeLeadSnapshot()}function mixAxisDelta(t,e,i){t.translate=(0,tR.C)(e.translate,0,i),t.scale=(0,tR.C)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function mixAxis(t,e,i,n){t.min=(0,tR.C)(e.min,i.min,n),t.max=(0,tR.C)(e.max,i.max,n)}function hasOpacityCrossfade(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let t_={duration:.45,ease:[.4,0,.1,1]},userAgentContains=t=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(t),tQ=userAgentContains("applewebkit/")&&!userAgentContains("chrome/")?Math.round:H.Z;function roundAxis(t){t.min=tQ(t.min),t.max=tQ(t.max)}function shouldAnimatePositionOnly(t,e,i){return"position"===t||"preserve-aspect"===t&&!isNear(aspectRatio(e),aspectRatio(i),.2)}let tJ=createProjectionNode({attachResizeListener:(t,e)=>addDomEvent(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),t0={current:void 0},t1=createProjectionNode({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!t0.current){let t=new tJ({});t.mount(window),t.setOptions({layoutScroll:!0}),t0.current=t}return t0.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),t5=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function getVariableValue(t,e,i=1){(0,q.k)(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[n,r]=function(t){let e=t5.exec(t);if(!e)return[,];let[,i,n]=e;return[i,n]}(t);if(!n)return;let s=window.getComputedStyle(e).getPropertyValue(n);if(s){let t=s.trim();return isNumericalString(t)?parseFloat(t):t}return(0,C.tm)(r)?getVariableValue(r,e,i+1):r}let t3=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),isPositionalKey=t=>t3.has(t),hasPositionalKey=t=>Object.keys(t).some(isPositionalKey),isNumOrPxType=t=>
1t===M.Rx||t===w.px,getPosFromMatrix=(t,e)=>parseFloat(t.split(", ")[e]),getTranslateFromMatrix=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let r=n.match(/^matrix3d\((.+)\)$/);if(r)return getPosFromMatrix(r[1],e);{let e=n.match(/^matrix\((.+)\)$/);return e?getPosFromMatrix(e[1],t):0}},t2=new Set(["x","y","z"]),t6=A.filter(t=>!t2.has(t)),t4={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),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:getTranslateFromMatrix(4,13),y:getTranslateFromMatrix(5,14)};t4.translateX=t4.x,t4.translateY=t4.y;let convertChangedValueTypes=(t,e,i)=>{let n=e.measureViewportBox(),r=e.current,s=getComputedStyle(r),{display:a}=s,o={};"none"===a&&e.setStaticValue("display",t.display||"block"),i.forEach(t=>{o[t]=t4[t](n,s)}),e.render();let l=e.measureViewportBox();return i.forEach(i=>{let n=e.getValue(i);n&&n.jump(o[i]),t[i]=t4[i](l,s)}),t},checkAndConvertChangedValueTypes=(t,e,i={},n={})=>{e={...e},n={...n};let r=Object.keys(e).filter(isPositionalKey),s=[],a=!1,o=[];if(r.forEach(r=>{let l;let u=t.getValue(r);if(!t.hasValue(r))return;let c=i[r],h=findDimensionValueType(c),d=e[r];if(isKeyframesTarget(d)){let t=d.length,e=null===d[0]?1:0;h=findDimensionValueType(c=d[e]);for(let i=e;i<t&&null!==d[i];i++)l?(0,q.k)(findDimensionValueType(d[i])===l,"All keyframes must be of the same type"):(l=findDimensionValueType(d[i]),(0,q.k)(l===h||isNumOrPxType(h)&&isNumOrPxType(l),"Keyframes must be of the same dimension as the current value"))}else l=findDimensionValueType(d);if(h!==l){if(isNumOrPxType(h)&&isNumOrPxType(l)){let t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?e[r]=parseFloat(d):Array.isArray(d)&&l===w.px&&(e[r]=d.map(parseFloat))}else(null==h?void 0:h.transform)&&(null==l?void 0:l.transform)&&(0===c||0===d)?0===c?u.set(l.transform(c)):e[r]=h.transform(d):(a||(s=function(t){let e=[];return t6.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e.length&&t.render(),e}(t),a=!0),o.push(r),n[r]=void 0!==n[r]?n[r]:e[r],u.jump(d))}}),!o.length)return{target:e,transitionEnd:n};{let i=o.indexOf("height")>=0?window.pageYOffset:null,r=convertChangedValueTypes(e,t,o);return s.length&&s.forEach(([e,i])=>{t.getValue(e).set(i)}),t.render(),v.j&&null!==i&&window.scrollTo({top:i}),{target:r,transitionEnd:n}}},parseDomVariant=(t,e,i,n)=>{var r,s;let a=function(t,{...e},i){let n=t.current;if(!(n instanceof Element))return{target:e,transitionEnd:i};for(let r in i&&(i={...i}),t.values.forEach(t=>{let e=t.get();if(!(0,C.tm)(e))return;let i=getVariableValue(e,n);i&&t.set(i)}),e){let t=e[r];if(!(0,C.tm)(t))continue;let s=getVariableValue(t,n);s&&(e[r]=s,i||(i={}),void 0===i[r]&&(i[r]=t))}return{target:e,transitionEnd:i}}(t,e,n);return e=a.target,n=a.transitionEnd,r=e,s=n,hasPositionalKey(r)?checkAndConvertChangedValueTypes(t,r,i,s):{target:r,transitionEnd:s}},t9={current:null},t8={current:!1},t7=new WeakMap,et=Object.keys(g),ee=et.length,ei=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],en=m.length;let VisualElement=class VisualElement{constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,visualState:r},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>O.Wi.render(this.render,!1,!0);let{latestValues:a,renderState:o}=r;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=o,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.isControllingVariants=isControllingVariants(e),this.isVariantNode=isVariantNode(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(e,{});for(let t in u){let e=u[t];void 0!==a[t]&&isMotionValue(e)&&(e.set(a[t],!1),isWillChangeMotionValue(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,t7.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
1h((t,e)=>this.bindToMotionValue(e,t)),t8.current||function(){if(t8.current=!0,v.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),setReducedMotionPreferences=()=>t9.current=t.matches;t.addListener(setReducedMotionPreferences),setReducedMotionPreferences()}else t9.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||t9.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in t7.delete(this.current),this.projection&&this.projection.unmount(),(0,O.Pn)(this.notifyUpdate),(0,O.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){let i=b.has(t),n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&O.Wi.update(this.notifyUpdate,!1,!0),i&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{n(),r()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},i,n,r){let s,a;for(let t=0;t<ee;t++){let i=et[t],{isEnabled:n,Feature:r,ProjectionNode:o,MeasureLayout:l}=g[i];o&&(s=o),n(e)&&(!this.features[i]&&r&&(this.features[i]=new r(this)),l&&(a=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);let{layoutId:t,layout:i,drag:n,dragConstraints:a,layoutScroll:o,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:i,alwaysMeasureLayout:!!n||a&&isRefObject(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,layoutScroll:o,layoutRoot:l})}return a}updateFeatures(){for(let t in this.features){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):createBox()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<ei.length;e++){let i=ei[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){let{willChange:n}=e;for(let r in e){let s=e[r],a=i[r];if(isMotionValue(s))t.addValue(r,s),isWillChangeMotionValue(n)&&n.add(r);else if(isMotionValue(a))t.addValue(r,(0,tS.BX)(s,{owner:t})),isWillChangeMotionValue(n)&&n.remove(r);else if(a!==s){if(t.hasValue(r)){let e=t.getValue(r);e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(r);t.addValue(r,(0,tS.BX)(void 0!==e?e:s,{owner:t}))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let e={};for(let t=0;t<en;t++){let i=m[t],n=this.props[i];(isVariantLabel(n)||!1===n)&&(e[i]=n)}return e}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,tS.BX)(e,{owner:this}),this.addValue(t,i)),i}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!==(e=this.getBaseTargetFromProps(this.props,t))&&void 0!==e?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let{initial:i}=this.props,n="string"==typeof i||"object"==typeof i?null===(e=resolveVariantFromProps(this.props,i))||void 0===e?void 0:e[t]:void 0;if(i&&void 0!==n)return n;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||isMotionValue(r)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new tN.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}};let DOMVisualElement=class DOMVisualElement extends VisualElement{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...i},{transformValues:n}
1,r){let s=function(t,e,i){let n={};for(let r in t){let t=function(t,e){if(!e)return;let i=e[t]||e.default||e;return i.from}(r,e);if(void 0!==t)n[r]=t;else{let t=i.getValue(r);t&&(n[r]=t.get())}}return n}(i,t||{},this);if(n&&(e&&(e=n(e)),i&&(i=n(i)),s&&(s=n(s))),r){!function(t,e,i){var n,r;let s=Object.keys(e).filter(e=>!t.hasValue(e)),a=s.length;if(a)for(let o=0;o<a;o++){let a=s[o],l=e[a],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(r=null!==(n=i[a])&&void 0!==n?n:t.readValue(a))&&void 0!==r?r:e[a]),null!=u&&("string"==typeof u&&(isNumericalString(u)||isZeroValueString(u))?u=parseFloat(u):!findValueType(u)&&tv.P.test(l)&&(u=getAnimatableNone(a,l)),t.addValue(a,(0,tS.BX)(u,{owner:t})),void 0===i[a]&&(i[a]=u),null!==u&&t.setBaseTarget(a,u))}}(this,i,s);let t=parseDomVariant(this,i,s,e);e=t.transitionEnd,i=t.target}return{transition:t,transitionEnd:e,...i}}};let HTMLVisualElement=class HTMLVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(b.has(e)){let t=getDefaultValueType(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=((0,C.f9)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return measureViewportBox(t,e)}build(t,e,i,n){buildHTMLStyles(t,e,i,n.transformTemplate)}scrapeMotionValuesFromProps(t,e){return scrapeMotionValuesFromProps(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;isMotionValue(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,i,n){renderHTML(t,e,i,n)}};let SVGVisualElement=class SVGVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(b.has(e)){let t=getDefaultValueType(e);return t&&t.default||0}return e=F.has(e)?e:camelToDash(e),t.getAttribute(e)}measureInstanceViewportBox(){return createBox()}scrapeMotionValuesFromProps(t,e){return scrape_motion_values_scrapeMotionValuesFromProps(t,e)}
1build(t,e,i,n){buildSVGAttrs(t,e,i,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,i,n){renderSVG(t,e,i,n)}mount(t){this.isSVGTag=isSVGTag(t.tagName),super.mount(t)}};let create_visual_element_createDomVisualElement=(t,e)=>isSVGComponent(t)?new SVGVisualElement(e,{enableHardwareAcceleration:!1}):new HTMLVisualElement(e,{enableHardwareAcceleration:!0}),er={animation:{Feature:class extends Feature{constructor(t){super(t),t.animationState||(t.animationState=function(t){let animate=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e)){let r=e.map(e=>animateVariant(t,e,i));n=Promise.all(r)}else if("string"==typeof e)n=animateVariant(t,e,i);else{let r="function"==typeof e?resolveVariant(t,e,i.custom):e;n=Promise.all(animateTarget(t,r,i))}return n.then(()=>t.notify("AnimationComplete",e))})(t,e,i))),e={animate:createTypeState(!0),whileInView:createTypeState(),whileHover:createTypeState(),whileTap:createTypeState(),whileDrag:createTypeState(),whileFocus:createTypeState(),exit:createTypeState()},i=!0,buildResolvedTypeValues=(e,i)=>{let n=resolveVariant(t,i);if(n){let{transition:t,transitionEnd:i,...r}=n;e={...e,...r,...i}}return e};function animateChanges(n,r){let s=t.getProps(),a=t.getVariantContext(!0)||{},o=[],l=new Set,u={},c=1/0;for(let d=0;d<tw;d++){var h;let p=tM[d],m=e[p],f=void 0!==s[p]?s[p]:a[p],g=isVariantLabel(f),v=p===r?m.isActive:null;!1===v&&(c=d);let y=f===a[p]&&f!==s[p]&&g;if(y&&i&&t.manuallyAnimateOnMount&&(y=!1),m.protectedKeys={...u},!m.isActive&&null===v||!f&&!m.prevProp||isAnimationControls(f)||"boolean"==typeof f)continue;let x=(h=m.prevProp,"string"==typeof f?f!==h:!!Array.isArray(f)&&!shallowCompare(f,h)),P=x||p===r&&m.isActive&&!y&&g||d>c&&g,T=!1,V=Array.isArray(f)?f:[f],A=V.reduce(buildResolvedTypeValues,{});!1===v&&(A={});let{prevResolvedValues:b={}}=m,S={...b,...A},markToAnimate=t=>{P=!0,l.has(t)&&(T=!0,l.delete(t)),m.needsAnimating[t]=!0};for(let t in S){let e=A[t],i=b[t];if(!u.hasOwnProperty(t))(isKeyframesTarget(e)&&isKeyframesTarget(i)?shallowCompare(e,i):e===i)?void 0!==e&&l.has(t)?markToAnimate(t):m.protectedKeys[t]=!0:void 0!==e?markToAnimate(t):l.add(t)}m.prevProp=f,m.prevResolvedValues=A,m.isActive&&(u={...u,...A}),i&&t.blockInitialAnimation&&(P=!1),P&&(!y||T)&&o.push(...V.map(t=>({animation:t,options:{type:p,...n}})))}if(l.size){let e={};l.forEach(i=>{let n=t.getBaseTarget(i);void 0!==n&&(e[i]=n)}),o.push({animation:e})}let d=!!o.length;return i&&(!1===s.initial||s.initial===s.animate)&&!t.manuallyAnimateOnMount&&(d=!1),i=!1,d?animate(o):Promise.resolve()}return{animateChanges,setActive:function(i,n,r){var s;if(e[i].isActive===n)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach(t=>{var e;return null===(e=t.animationState)||void 0===e?void 0:e.setActive(i,n)}),e[i].isActive=n;let a=animateChanges(r,i);for(let t in e)e[t].protectedKeys={};return a},setAnimateFunction:function(e){animate=e(t)},getState:()=>e}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),isAnimationControls(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Feature{constructor(){super(...arguments),this.id=tE++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e,custom:i}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;let r=this.node.animationState.setActive("exit",!t,{custom:null!=i?i:this.node.getProps().custom});e&&!t&&r.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:Z[n]};
1return function(t,e,i){let n=function({root:t,...e}){let i=t||document;G.has(i)||G.set(i,{});let n=G.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(fireAllObserverCallbacks,{root:t,...e})),n[r]}(e);return z.set(t,i),n.observe(t),()=>{z.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node,i=["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e));i&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Feature{constructor(){super(...arguments),this.removeStartListeners=H.Z,this.removeEndListeners=H.Z,this.removeAccessibleListeners=H.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),n=addPointerEvent(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:n,globalTapTarget:r}=this.node.getProps();O.Wi.update(()=>{r||isNodeOrChild(this.node.current,t.target)?i&&i(t,e):n&&n(t,e)})},{passive:!(i.onTap||i.onPointerUp)}),r=addPointerEvent(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=(0,W.z)(n,r),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=addDomEvent(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=addDomEvent(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&fireSyntheticPointerEvent("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&O.Wi.update(()=>i(t,e))})}),fireSyntheticPointerEvent("down",(t,e)=>{this.startPress(t,e)}))}),e=addDomEvent(this.node.current,"blur",()=>{this.isPressing&&fireSyntheticPointerEvent("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=(0,W.z)(t,e)}}startPress(t,e){this.isPressing=!0;let{onTapStart:i,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&O.Wi.update(()=>i(t,e))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;let t=this.node.getProps();return t.whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!isDragActive()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&O.Wi.update(()=>i(t,e))}mount(){let t=this.node.getProps(),e=addPointerEvent(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=addDomEvent(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,W.z)(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,W.z)(addDomEvent(this.node.current,"focus",()=>this.onFocus()),addDomEvent(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Feature{mount(){this.unmount=(0,W.z)(addHoverEvent(this.node,!0),addHoverEvent(this.node,!1))}unmount(){}}},pan:{Feature:class extends Feature{constructor(){super(...arguments),this.removePointerDownListener=H.Z}onPointerDown(t){this.session=new PanSession(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:getContextWindow(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:asyncHandler(t),onStart:asyncHandler(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&O.Wi.update(()=>n(t,e))}}}mount(){this.removePointerDownListener=addPointerEvent(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Feature{constructor(t){super(t),this.removeGroupControls=H.Z,this.removeListeners=H.Z,this.controls=new VisualElementDragControls(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||H.Z}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:t1,MeasureLayout:MeasureLayout},layout:{ProjectionNode:t1,MeasureLayout:MeasureLayout}},es=function(t){function custom(e,i={}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:n,Component:r}){t&&function(t){for(let e in t)g[e]={...g[e],...t[e]}}(t);let s=(0,a.forwardRef)(function(s,p){var m;let f;let g={...(0,a.useContext)(o._),...s,layoutId:function({layoutId:t}){let e=(0,a.useContext)(y.p).id;return e&&void 0!==t?e+"-"+t:t}(s)},{isStatic:P}=g,T=function(t){let{initial:e,animate:i}=function(t,e){if(isControllingVariants(t)){let{initial:e,animate:i}=t;return{initial:!1===e||isVariantLabel(e)?e:void 0,animate:isVariantLabel(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,a.useContext)(l));return(0,a.useMemo)(()=>({initial:e,animate:i}),[variantLabelsAsDependency(e),variantLabelsAsDependency(i)])}(s),V=n(s,P);
1if(!P&&v.j){T.visualElement=function(t,e,i,n){let{visualElement:r}=(0,a.useContext)(l),s=(0,a.useContext)(h),p=(0,a.useContext)(u.O),m=(0,a.useContext)(o._).reducedMotion,f=(0,a.useRef)();n=n||s.renderer,!f.current&&n&&(f.current=n(t,{visualState:e,parent:r,props:i,presenceContext:p,blockInitialAnimation:!!p&&!1===p.initial,reducedMotionConfig:m}));let g=f.current;(0,a.useInsertionEffect)(()=>{g&&g.update(i,p)});let v=(0,a.useRef)(!!(i[d]&&!window.HandoffComplete));return(0,c.L)(()=>{g&&(g.render(),v.current&&g.animationState&&g.animationState.animateChanges())}),(0,a.useEffect)(()=>{g&&(g.updateFeatures(),!v.current&&g.animationState&&g.animationState.animateChanges(),v.current&&(v.current=!1,window.HandoffComplete=!0))}),g}(r,V,g,e);let i=(0,a.useContext)(x),n=(0,a.useContext)(h).strict;T.visualElement&&(f=T.visualElement.loadFeatures(g,n,t,i))}return a.createElement(l.Provider,{value:T},f&&T.visualElement?a.createElement(f,{visualElement:T.visualElement,...g}):null,i(r,s,(m=T.visualElement,(0,a.useCallback)(t=>{t&&V.mount&&V.mount(t),m&&(t?m.mount(t):m.unmount()),p&&("function"==typeof p?p(t):isRefObject(p)&&(p.current=t))},[m])),V,P,T.visualElement))});return s[P]=r,s}(t(e,i))}if("undefined"==typeof Proxy)return custom;let e=new Map;return new Proxy(custom,{get:(t,i)=>(e.has(i)||e.set(i,custom(i)),e.get(i))})}((t,e)=>(function(t,{forwardMotionProps:e=!1},i,n){let r=isSVGComponent(t)?I:N;return{...r,preloadedFeatures:i,useRender:function(t=!1){return(e,i,n,{latestValues:r},s)=>{let o=isSVGComponent(e)?useSVGProps:useHTMLProps,l=o(i,r,s,e),u=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(shouldForward(r)||!0===i&&isValidMotionProp(r)||!e&&!isValidMotionProp(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),c={...u,...l,ref:n},{children:h}=i,d=(0,a.useMemo)(()=>isMotionValue(h)?h.get():h,[h]);return(0,a.createElement)(e,{...c,children:d})}}(e),createVisualElement:n,Component:t}})(t,e,er,create_visual_element_createDomVisualElement))},7630:function(t,e,i){i.d(e,{Xp:function(){return s},f9:function(){return n},tm:function(){return r}});let checkStringStartsWith=t=>e=>"string"==typeof e&&e.startsWith(t),n=checkStringStartsWith("--"),r=checkStringStartsWith("var(--"),s=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?
1:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g},10:function(t,e,i){function addUniqueItem(t,e){-1===t.indexOf(e)&&t.push(e)}function removeItem(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{cl:function(){return removeItem},y4:function(){return addUniqueItem}})},4169:function(t,e,i){i.d(e,{u:function(){return clamp}});let clamp=(t,e,i)=>Math.min(Math.max(i,t),e)},5487:function(t,e,i){i.d(e,{K:function(){return r},k:function(){return s}});var n=i(1662);let r=n.Z,s=n.Z},4606:function(t,e,i){i.d(e,{s:function(){return interpolate}});var n=i(5487),r=i(5385),s=i(4169),a=i(22);function hueToRgb(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var o=i(6382),l=i(819),u=i(3184);let mixLinearColor=(t,e,i)=>{let n=t*t;return Math.sqrt(Math.max(0,i*(e*e-n)+n))},c=[o.$,l.m,u.J],getColorType=t=>c.find(e=>e.test(t));function asRGBA(t){let e=getColorType(t);(0,n.k)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let i=e.parse(t);return e===u.J&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;r=hueToRgb(o,n,t+1/3),s=hueToRgb(o,n,t),a=hueToRgb(o,n,t-1/3)}else r=s=a=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*a),alpha:n}}(i)),i}let mixColor=(t,e)=>{let i=asRGBA(t),n=asRGBA(e),r={...i};return t=>(r.red=mixLinearColor(i.red,n.red,t),r.green=mixLinearColor(i.green,n.green,t),r.blue=mixLinearColor(i.blue,n.blue,t),r.alpha=(0,a.C)(i.alpha,n.alpha,t),l.m.transform(r))};var h=i(3624),d=i(1550);let mixImmediate=(t,e)=>i=>`${i>0?e:t}`;function getMixer(t,e){return"number"==typeof t?i=>(0,a.C)(t,e,i):r.$.test(t)?mixColor(t,e):t.startsWith("var(")?mixImmediate(t,e):mixComplex(t,e)}let mixArray=(t,e)=>{let i=[...t],n=i.length,r=t.map((t,i)=>getMixer(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}},mixObject=(t,e)=>{let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=getMixer(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}},mixComplex=(t,e)=>{let i=d.P.createTransformer(e),r=(0,d.V)(t),s=(0,d.V)(e),a=r.numVars===s.numVars&&r.numColors===s.numColors&&r.numNumbers>=s.numNumbers;return a?(0,h.z)(mixArray(r.values,s.values),i):((0,n.K)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),mixImmediate(t,e))};var p=i(3967),m=i(1662);let mixNumber=(t,e)=>i=>(0,a.C)(t,e,i);function interpolate(t,e,{clamp:i=!0,ease:a,mixer:o}={}){let l=t.length;if((0,n.k)(l===e.length,"Both input and output ranges must be the same length"),1===l)return()=>e[0];t[0]>t[l-1]&&(t=[...t].reverse(),e=[...e].reverse());let u=function(t,e,i){let n=[],s=i||function(t){if("number"==typeof t);else if("string"==typeof t)return r.$.test(t)?mixColor:mixComplex;else if(Array.isArray(t))return mixArray;else if("object"==typeof t)return mixObject;return mixNumber}(t[0]),a=t.length-1;for(let i=0;i<a;i++){let r=s(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||m.Z:e;r=(0,h.z)(t,r)}n.push(r)}return n}(e,a,o),c=u.length,interpolator=e=>{let i=0;if(c>1)for(;i<t.length-2&&!(e<t[i+1]);i++);let n=(0,p.Y)(t[i],t[i+1],e);return u[i](n)};return i?e=>interpolator((0,s.u)(t[0],t[l-1],e)):interpolator}},1741:function(t,e,i){i.d(e,{j:function(){return n}});let n="undefined"!=typeof document},22:function(t,e,i){i.d(e,{C:function(){return mix}});let mix=(t,e,i)=>-i*t+i*e+t},1662:function(t,e,i){i.d(e,{Z:function(){return noop}});let noop=t=>t},533:function(t,e,i){i.d(e,{Y:function(){return defaultOffset}});var n=i(22),r=i(3967);function defaultOffset(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let a=(0,r.Y)(0,e,s);t.push((0,n.C)(i,1,a))}}(e,t.length-1),e}},3624:function(t,e,i){i.d(e,{z:function(){return pipe}});let combineFunctions=(t,e)=>i=>e(t(i)),pipe=(...t)=>t.reduce(combineFunctions)},3967:function(t,e,i){i.d(e,{Y:function(){return progress}});let progress=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n}}
1,1560:function(t,e,i){i.d(e,{L:function(){return SubscriptionManager}});var n=i(10);let SubscriptionManager=class SubscriptionManager{constructor(){this.subscriptions=[]}add(t){return(0,n.y4)(this.subscriptions,t),()=>(0,n.cl)(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},6681:function(t,e,i){i.d(e,{h:function(){return useConstant}});var n=i(7294);function useConstant(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},8868:function(t,e,i){i.d(e,{L:function(){return s}});var n=i(7294),r=i(1741);let s=r.j?n.useLayoutEffect:n.useEffect},3038:function(t,e,i){i.d(e,{R:function(){return velocityPerSecond}});function velocityPerSecond(t,e){return e?t*(1e3/e):0}},3234:function(t,e,i){i.d(e,{BX:function(){return motionValue},S1:function(){return a}});var n=i(1560),r=i(3038),s=i(2074);let isFloat=t=>!isNaN(parseFloat(t)),a={current:void 0};let MotionValue=class MotionValue{constructor(t,e={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;let{delta:i,timestamp:n}=s.frameData;this.lastUpdated!==n&&(this.timeDelta=i,this.lastUpdated=n,s.Wi.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>s.Wi.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=isFloat(this.current),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new n.L);let i=this.events[t].add(e);return"change"===t?()=>{i(),s.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=t,this.timeDelta=i}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return a.current&&a.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,r.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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 motionValue(t,e){return new MotionValue(t,e)}},6382:function(t,e,i){i.d(e,{$:function(){return s}});var n=i(819),r=i(8834);let s={test:(0,r.i)("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:n.m.transform}},3184:function(t,e,i){i.d(e,{J:function(){return o}});var n=i(1649),r=i(6190),s=i(6430),a=i(8834);let o={test:(0,a.i)("hsl","hue"),parse:(0,a.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:a=1})=>"hsla("+Math.round(t)+", "+r.aQ.transform((0,s.Nw)(e))+", "+r.aQ.transform((0,s.Nw)(i))+", "+(0,s.Nw)(n.Fq.transform(a))+")"}}
1,5385:function(t,e,i){i.d(e,{$:function(){return o}});var n=i(6430),r=i(6382),s=i(3184),a=i(819);let o={test:t=>a.m.test(t)||r.$.test(t)||s.J.test(t),parse:t=>a.m.test(t)?a.m.parse(t):s.J.test(t)?s.J.parse(t):r.$.parse(t),transform:t=>(0,n.HD)(t)?t:t.hasOwnProperty("red")?a.m.transform(t):s.J.transform(t)}},819:function(t,e,i){i.d(e,{m:function(){return l}});var n=i(4169),r=i(1649),s=i(6430),a=i(8834);let clampRgbUnit=t=>(0,n.u)(0,255,t),o={...r.Rx,transform:t=>Math.round(clampRgbUnit(t))},l={test:(0,a.i)("rgb","red"),parse:(0,a.d)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+o.transform(t)+", "+o.transform(e)+", "+o.transform(i)+", "+(0,s.Nw)(r.Fq.transform(n))+")"}},8834:function(t,e,i){i.d(e,{d:function(){return splitColor},i:function(){return isColorString}});var n=i(6430);let isColorString=(t,e)=>i=>!!((0,n.HD)(i)&&n.mj.test(i)&&i.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(i,e)),splitColor=(t,e,i)=>r=>{if(!(0,n.HD)(r))return r;let[s,a,o,l]=r.match(n.KP);return{[t]:parseFloat(s),[e]:parseFloat(a),[i]:parseFloat(o),alpha:void 0!==l?parseFloat(l):1}}},1550:function(t,e,i){i.d(e,{P:function(){return h},V:function(){return analyseComplexValue}});var n=i(7630),r=i(1662),s=i(5385),a=i(1649),o=i(6430);let l={regex:n.Xp,countKey:"Vars",token:"${v}",parse:r.Z},u={regex:o.dA,countKey:"Colors",token:"${c}",parse:s.$.parse},c={regex:o.KP,countKey:"Numbers",token:"${n}",parse:a.Rx.parse};function tokenise(t,{regex:e,countKey:i,token:n,parse:r}){let s=t.tokenised.match(e);s&&(t["num"+i]=s.length,t.tokenised=t.tokenised.replace(e,n),t.values.push(...s.map(r)))}function analyseComplexValue(t){let e=t.toString(),i={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return i.value.includes("var(--")&&tokenise(i,l),tokenise(i,u),tokenise(i,c),i}function parseComplexValue(t){return analyseComplexValue(t).values}function createTransformer(t){let{values:e,numColors:i,numVars:n,tokenised:r}=analyseComplexValue(t),a=e.length;return t=>{let e=r;for(let r=0;r<a;r++)e=r<n?e.replace(l.token,t[r]):r<n+i?e.replace(u.token,s.$.transform(t[r])):e.replace(c.token,(0,o.Nw)(t[r]));return e}}let convertNumbersToZero=t=>"number"==typeof t?0:t,h={test:function(t){var e,i;return isNaN(t)&&(0,o.HD)(t)&&((null===(e=t.match(o.KP))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(o.dA))||void 0===i?void 0:i.length)||0)>0},parse:parseComplexValue,createTransformer,getAnimatableNone:function(t){let e=parseComplexValue(t),i=createTransformer(t);return i(e.map(convertNumbersToZero))}}},1649:function(t,e,i){i.d(e,{Fq:function(){return s},Rx:function(){return r},bA:function(){return a}});var n=i(4169);let r={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...r,transform:t=>(0,n.u)(0,1,t)},a={...r,default:1}},6190:function(t,e,i){i.d(e,{$C:function(){return u},RW:function(){return r},aQ:function(){return s},px:function(){return a},vh:function(){return o},vw:function(){return l}});var n=i(6430);let createUnitType=t=>({test:e=>(0,n.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),r=createUnitType("deg"),s=createUnitType("%"),a=createUnitType("px"),o=createUnitType("vh"),l=createUnitType("vw"),u={...s,parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)}},6430:function(t,e,i){i.d(e,{HD:function(){return isString},KP:function(){return n},Nw:function(){return sanitize},dA:function(){return r},mj:function(){return s}});let sanitize=t=>Math.round(1e5*t)/1e5,n=/(-)?([\d]*\.?[\d])+/g,r=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,s=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function isString(t){return"string"==typeof t}}}]);
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.