PageSourceSearch

https://mahfuzulislamportfolio.vercel.app/_next/static/chunks/2512b1a8f0c629e5.js

js mahfuzulislamportfolio.vercel.app collected 2026-10-03 07:16:44 UTC 133,990 bytes, 9 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,28085,t=>{"use strict";let e,i,s,n;var r,o=t.i(43476),a=t.i(71645),l=t.i(47167);let h=(0,a.createContext)({});function u(t){let e=(0,a.useRef)(null);return null===e.current&&(e.current=t()),e.current}let c="u">typeof window?a.useLayoutEffect:a.useEffect,d=(0,a.createContext)(null);function p(t){return"object"==typeof t&&null!==t}function m(t){return p(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}var f=a;let y=(0,a.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function g(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class v extends f.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(m(e)&&t.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let t=e.offsetParent,i=m(t)&&t.offsetWidth||0,s=m(t)&&t.offsetHeight||0,n=getComputedStyle(e),r=this.props.sizeRef.current;r.height=parseFloat(n.height),r.width=parseFloat(n.width),r.top=e.offsetTop,r.left=e.offsetLeft,r.right=i-r.width-r.left,r.bottom=s-r.height-r.top}return null}componentDidUpdate(){}render(){return this.props.children}}function x({children:t,isPresent:e,anchorX:i,anchorY:s,root:n,pop:r}){let l=(0,f.useId)(),h=(0,f.useRef)(null),u=(0,f.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=(0,f.useContext)(y),d=function(...t){return a.useCallback(function(...t){return e=>{let i=!1,s=t.map(t=>{let s=g(t,e);return i||"function"!=typeof s||(i=!0),s});if(i)return()=>{for(let e=0;e<s.length;e++){let i=s[e];"function"==typeof i?i():g(t[e],null)}}}}(...t),t)}(h,t.props?.ref??t?.ref);return(0,f.useInsertionEffect)(()=>{let{width:t,height:o,top:a,left:d,right:p,bottom:m}=u.current;if(e||!1===r||!h.current||!t||!o)return;let f="left"===i?`left: ${d}`:`right: ${p}`,y="bottom"===s?`bottom: ${m}`:`top: ${a}`;h.current.dataset.motionPopId=l;let g=document.createElement("style");c&&(g.nonce=c);let v=n??document.head;return v.appendChild(g),g.sheet&&g.sheet.insertRule(`
2          [data-motion-pop-id="${l}"] {
3            position: absolute !important;
4            width: ${t}px !important;
5            height: ${o}px !important;
6            ${f}px !important;
7            ${y}px !important;
8          }
9        `),()=>{h.current?.removeAttribute("data-motion-pop-id"),v.contains(g)&&v.removeChild(g)}},[e]),(0,o.jsx)(v,{isPresent:e,childRef:h,sizeRef:u,pop:r,children:!1===r?t:f.cloneElement(t,{ref:d})})}let w=({children:t,initial:e,isPresent:i,onExitComplete:s,custom:n,presenceAffectsLayout:r,mode:l,anchorX:h,anchorY:c,root:p})=>{let m=u(b),f=(0,a.useId)(),y=!0,g=(0,a.useMemo)(()=>(y=!1,{id:f,initial:e,isPresent:i,custom:n,onExitComplete:t=>
9{for(let e of(m.set(t,!0),m.values()))if(!e)return;s&&s()},register:t=>(m.set(t,!1),()=>m.delete(t))}),[i,m,s]);return r&&y&&(g={...g}),(0,a.useMemo)(()=>{m.forEach((t,e)=>m.set(e,!1))},[i]),a.useEffect(()=>{i||m.size||!s||s()},[i]),t=(0,o.jsx)(x,{pop:"popLayout"===l,isPresent:i,anchorX:h,anchorY:c,root:p,children:t}),(0,o.jsx)(d.Provider,{value:g,children:t})};function b(){return new Map}function T(t=!0){let e=(0,a.useContext)(d);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:s,register:n}=e,r=(0,a.useId)();(0,a.useEffect)(()=>{if(t)return n(r)},[t]);let o=(0,a.useCallback)(()=>t&&s&&s(r),[r,s,t]);return!i&&s?[!1,o]:[!0]}let S=t=>t.key||"";function P(t){let e=[];return a.Children.forEach(t,t=>{(0,a.isValidElement)(t)&&e.push(t)}),e}let j=({children:t,custom:e,initial:i=!0,onExitComplete:s,presenceAffectsLayout:n=!0,mode:r="sync",propagate:l=!1,anchorX:d="left",anchorY:p="top",root:m})=>{let[f,y]=T(l),g=(0,a.useMemo)(()=>P(t),[t]),v=l&&!f?[]:g.map(S),x=(0,a.useRef)(!0),b=(0,a.useRef)(g),j=u(()=>new Map),A=(0,a.useRef)(new Set),[E,M]=(0,a.useState)(g),[C,k]=(0,a.useState)(g);c(()=>{x.current=!1,b.current=g;for(let t=0;t<C.length;t++){let e=S(C[t]);v.includes(e)?(j.delete(e),A.current.delete(e)):!0!==j.get(e)&&j.set(e,!1)}},[C,v.length,v.join("-")]);let V=[];if(g!==E){let t=[...g];for(let e=0;e<C.length;e++){let i=C[e],s=S(i);v.includes(s)||(t.splice(e,0,i),V.push(i))}return"wait"===r&&V.length&&(t=V),k(P(t)),M(g),null}let{forceRender:R}=(0,a.useContext)(h);return(0,o.jsx)(o.Fragment,{children:C.map(t=>{let a=S(t),h=(!l||!!f)&&(g===C||v.includes(a));return(0,o.jsx)(w,{isPresent:h,initial:(!x.current||!!i)&&void 0,custom:e,presenceAffectsLayout:n,mode:r,root:m,onExitComplete:h?void 0:()=>{if(A.current.has(a)||!j.has(a))return;A.current.add(a),j.set(a,!0);let t=!0;j.forEach(e=>{e||(t=!1)}),t&&(R?.(),k(b.current),l&&y?.(),s&&s())},anchorX:d,anchorY:p,children:t},a)})})},A=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],E=new Set(A),M=(t,e,i)=>i>e?e:i<t?t:i,C={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},k={...C,transform:t=>M(0,1,t)},V={...C,default:1},R=t=>Math.round(1e5*t)/1e5,D=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,L=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,B=(t,e)=>i=>!!("string"==typeof i&&L.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),F=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[n,r,o,a]=s.match(D);return{[t]:parseFloat(n),[e]:parseFloat(r),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},N={...C,transform:t=>Math.round(M(0,255,t))},I={test:B("rgb","red"),parse:F("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+N.transform(t)+", "+N.transform(e)+", "+N.transform(i)+", "+R(k.transform(s))+")"},O={test:B("#"),parse:function(t){let e="",i="",s="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,s+=s,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:n?parseInt(n,16)/255:1}},transform:I.transform},U=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),_=U("deg"),$=U("%"),W=U("px"),z=U("vh"),Y=U("vw"),X={...$,parse:t=>$.parse(t)/100,transform:t=>$.transform(100*t)},H={test:B("hsl","hue"),parse:F("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+$.transform(R(e))+", "+$.transform(R(i))+", "+R(k.transform(s))+")"},K={test:t=>I.test(t)||O.test(t)||H.test(t),parse:t=>I.test(t)?I.parse(t):H.test(t)?H.parse(t):O.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?I.transform(t):H.transform(t),getAnimatableNone:t=>{let e=K.parse(t);return e.alpha=0,K.transform(e)}},q=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,G="number",Z="color",J=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Q(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},n=[],r=0,o=e.replace(J,t=>(K.test(t)?(s.color.push(r),n.push(Z),i.push(K.parse(t))):t.startsWith("var(")?(s.var.push(r),n.push("var"),i.push(t)):(s.number.push(r),n.push(G),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:o,indexes:s,types:n}}function tt({split:t,types:e}){let i=t.length;return s=>{let n="";for(let r=0;r<i;r++)if(n+=t[r],void 0!==s[r]){let t=e[r];t===G?n+=R(s[r]):t===Z?n+=K.transform(s[r]):n+=s[r]}return n}}let te={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(D)?.length||0)+(t.match(q)?.length||0)>0},parse:function(t){return Q(t).values},createTransformer:function(t){return tt(Q(t))},getAnimatableNone:function(t){let e=Q(t);return tt(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:K.test(t)?K.getAnimatableNone(t):t)(t,e.split[i])))}},ti=new Set(["brightness","contrast","saturate","opacity"]);function ts(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(D)||[];if(!s)return t;let n=i.replace(s,""),r=+!!ti.has(e);return s!==i&&(r*=100),e+"("+r+n+")"}let tn=/\b([a-z-]*)\(.*?\)/gu,tr={...te,getAnimatableNone:t=>{let e=t.match(tn);return e?e.map(ts).join(" "):t}},to={...te,getAnimatableNone:t=>{let e=te.parse(t);return te.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},ta={...C,transform:Math.round},tl={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,top:W,right:W,bottom:W,left:W,
9inset:W,insetBlock:W,insetBlockStart:W,insetBlockEnd:W,insetInline:W,insetInlineStart:W,insetInlineEnd:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,paddingBlock:W,paddingBlockStart:W,paddingBlockEnd:W,paddingInline:W,paddingInlineStart:W,paddingInlineEnd:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,marginBlock:W,marginBlockStart:W,marginBlockEnd:W,marginInline:W,marginInlineStart:W,marginInlineEnd:W,fontSize:W,backgroundPositionX:W,backgroundPositionY:W,rotate:_,rotateX:_,rotateY:_,rotateZ:_,scale:V,scaleX:V,scaleY:V,scaleZ:V,skew:_,skewX:_,skewY:_,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:k,originX:X,originY:X,originZ:W,zIndex:ta,fillOpacity:k,strokeOpacity:k,numOctaves:ta},th={...tl,color:K,backgroundColor:K,outlineColor:K,fill:K,stroke:K,borderColor:K,borderTopColor:K,borderRightColor:K,borderBottomColor:K,borderLeftColor:K,filter:tr,WebkitFilter:tr,mask:to,WebkitMask:to},tu=t=>th[t],tc=()=>({translate:0,scale:1,origin:0,originPoint:0}),td=()=>({x:tc(),y:tc()}),tp=()=>({min:0,max:0}),tm=()=>({x:tp(),y:tp()}),tf=t=>!!(t&&t.getVelocity),ty=new Set(["width","height","top","left","right","bottom",...A]),tg=t=>e=>e.test(t),tv=[C,W,$,_,Y,z,{test:t=>"auto"===t,parse:t=>t}],tx=t=>tv.find(tg(t)),tw=()=>{},tb=()=>{};l.default;let tT=t=>e=>"string"==typeof e&&e.startsWith(t),tS=tT("--"),tP=tT("var(--"),tj=t=>!!tP(t)&&tA.test(t.split("/*")[0].trim()),tA=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tE(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tC=t=>180*t/Math.PI,tk=t=>tR(tC(Math.atan2(t[1],t[0]))),tV={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tk,rotateZ:tk,skewX:t=>tC(Math.atan(t[1])),skewY:t=>tC(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tR=t=>((t%=360)<0&&(t+=360),t),tD=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tL=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tB={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tD,scaleY:tL,scale:t=>(tD(t)+tL(t))/2,rotateX:t=>tR(tC(Math.atan2(t[6],t[5]))),rotateY:t=>tR(tC(Math.atan2(-t[2],t[0]))),rotateZ:tk,rotate:tk,skewX:t=>tC(Math.atan(t[4])),skewY:t=>tC(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tF(t){return+!!t.includes("scale")}function tN(t,e){let i,s;if(!t||"none"===t)return tF(e);let n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=tB,s=n;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tV,s=e}if(!s)return tF(e);let r=i[e],o=s[1].split(",").map(tI);return"function"==typeof r?r(o):o[r]}function tI(t){return parseFloat(t.trim())}let tO=t=>t===C||t===W,tU=new Set(["x","y","z"]),t_=A.filter(t=>!tU.has(t)),t$={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:s})=>{let n=t.max-t.min;return"border-box"===s?n:n-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:s})=>{let n=t.max-t.min;return"border-box"===s?n:n-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:(t,{transform:e})=>tN(e,"x"),y:(t,{transform:e})=>tN(e,"y")};t$.translateX=t$.x,t$.translateY=t$.y;let tW=t=>t,tz={},tY=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tX(t,e){let i=!1,s=!0,n={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,o=tY.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,s=new Set,n=!1,r=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function h(e){o.has(e)&&(u.schedule(e),t()),l++,e(a)}let u={schedule:(t,e=!1,r=!1)=>{let a=r&&n?i:s;return e&&o.add(t),a.add(t),t},cancel:t=>{s.delete(t),o.delete(t)},process:t=>{if(a=t,n){r=!0;return}n=!0;let o=i;i=s,s=o,i.forEach(h),e,l=0,i.clear(),n=!1,r&&(r=!1,u.process(t))}};return u}(r,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:h,preUpdate:u,update:c,preRender:d,render:p,postRender:m}=o,f=()=>{let r=tz.useManualTiming,o=r?n.timestamp:performance.now();i=!1,r||(n.delta=s?1e3/60:Math.max(Math.min(o-n.timestamp,40),1)),n.timestamp=o,n.isProcessing=!0,a.process(n),l.process(n),h.process(n),u.process(n),c.process(n),d.process(n),p.process(n),m.process(n),n.isProcessing=!1,i&&e&&(s=!1,t(f))};return{schedule:tY.reduce((e,r)=>{let a=o[r];return e[r]=(e,r=!1,o=!1)=>(!i&&(i=!0,s=!0,n.isProcessing||t(f)),a.schedule(e,r,o)),e},{}),cancel:t=>{for(let e=0;e<tY.length;e++)o[tY[e]].cancel(t)},state:n,steps:o}}let{schedule:tH,cancel:tK,state:tq,steps:tG}=tX("u">typeof requestAnimationFrame?requestAnimationFrame:tW,!0),tZ=new Set,tJ=!1,tQ=!1,t0=!1;function t1(){if(tQ){let t=Array.from(tZ).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,s=(e=[],t_.forEach(i=>
9{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),e);s.length&&(i.set(t,s),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tQ=!1,tJ=!1,tZ.forEach(t=>t.complete(t0)),tZ.clear()}function t2(){tZ.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tQ=!0)})}class t5{constructor(t,e,i,s,n,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=n,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(tZ.add(this),tJ||(tJ=!0,tH.read(t2),tH.resolveKeyframes(t1))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;if(null===t[0]){let n=s?.get(),r=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let s=i.readValue(e,r);null!=s&&(t[0]=s)}void 0===t[0]&&(t[0]=r),s&&void 0===n&&s.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tZ.delete(this)}cancel(){"scheduled"===this.state&&(tZ.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let t3=new Set([tr,to]);function t4(t,e){let i=tu(t);return t3.has(i)||(i=te),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let t6=new Set(["auto","none","0"]);class t9 extends t5{constructor(t,e,i,s,n){super(t,e,i,s,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let s=t[i];if("string"==typeof s&&tj(s=s.trim())){let n=function t(e,i,s=1){tb(s<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,r]=function(t){let e=tM.exec(t);if(!e)return[,];let[,i,s,n]=e;return[`--${i??s}`,n]}(e);if(!n)return;let o=window.getComputedStyle(i).getPropertyValue(n);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return tj(r)?t(r,i,s+1):r}(s,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!ty.has(i)||2!==t.length)return;let[s,n]=t,r=tx(s),o=tx(n);if(tE(s)!==tE(n)&&t$[i]){this.needsMeasurement=!0;return}if(r!==o)if(tO(r)&&tO(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else t$[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let s,n=0;for(;n<t.length&&!s;){let e=t[n];"string"==typeof e&&!t6.has(e)&&Q(e).values.length&&(s=t[n]),n++}if(s&&i)for(let n of e)t[n]=t4(i,s)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=t$[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&&t.getValue(i,s).jump(s,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let s=t.getValue(e);s&&s.jump(this.measuredOrigin,!1);let n=i.length-1,r=i[n];i[n]=t$[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
9h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let t8=t=>1e3*t;function t7(t,e){-1===t.indexOf(e)&&t.push(e)}function et(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class ee{constructor(){this.subscriptions=[]}add(t){return t7(this.subscriptions,t),()=>et(this.subscriptions,t)}notify(t,e,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,i);else for(let n=0;n<s;n++){let s=this.subscriptions[n];s&&s(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function ei(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function es(t){let e;return()=>(void 0===e&&(e=t()),e)}let en={};function er(t,e){let i=es(t);return()=>en[e]??i()}let eo=er(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),ea=t=>null!==t;function el(t,{repeat:e,repeatType:i="loop"},s,n=1){let r=t.filter(ea),o=n<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return o&&void 0!==s?s:r[o]}class eh{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let eu={layout:0,mainThread:0,waapi:0},ec=t=>Array.isArray(t)&&"number"==typeof t[0],ed=er(()=>{try{document.createElement("div").animate({opacity:0}
9,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),ep=(t,e,i=10)=>{let s="",n=Math.max(Math.round(e/i),2);for(let e=0;e<n;e++)s+=Math.round(1e4*t(e/(n-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},em=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,ef={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:em([0,.65,.55,1]),circOut:em([.55,0,1,.45]),backIn:em([.31,.01,.66,-.59]),backOut:em([.33,1.53,.69,.99])};function ey(t){return"function"==typeof t&&"applyToOptions"in t}class eg extends eh{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:s,pseudoElement:n,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!n,this.allowFlatten=r,this.options=t,tb("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return ey(t)&&ed()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:s=0,duration:n=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},h){let u={[e]:i};l&&(u.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?ed()?ep(e,i):"ease-out":ec(e)?em(e):Array.isArray(e)?e.map(e=>t(e,i)||ef.easeOut):ef[e]}(a,n);Array.isArray(c)&&(u.easing=c);let d={delay:s,duration:n,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};h&&(d.pseudoElement=h);let p=t.animate(u,d);return p}(e,i,s,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let t=el(s,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),ei(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=t8(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:s}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&eo())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),tW):s(this)}}let ev=new Set(["opacity","clipPath","filter","transform"]),{schedule:ex}=tX(queueMicrotask,!1);function ew(){e=void 0}let eb={now:()=>(void 0===e&&eb.set(tq.isProcessing||tz.useManualTiming?tq.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(ew)}};class eT{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=eb.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=eb.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new ee);let i=this.events[t].add(e);return"change"===t?()=>{i(),tH.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){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return n&&n.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=eb.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t: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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function eS(t,e){return new eT(t,e)}let eP=[...tv,K,te],ej=new WeakMap;function eA(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function eE(t){return"string"==typeof t||Array.isArray(t)}let eM=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eC=["initial",...eM];function ek(t){return eA(t.animate)||eC.some(e=>eE(t[e]))}function eV(t){return!!(ek(t)||t.variants)}var eR=t.i(38544);function eD(t){let e=[{},{}];
9return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function eL(t,e,i,s){if("function"==typeof e){let[n,r]=eD(s);e=e(void 0!==i?i:t.custom,n,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[n,r]=eD(s);e=e(void 0!==i?i:t.custom,n,r)}return e}var eB=t.i(71164);let eF=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eN={};class eI{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,skipAnimations:n,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=t5,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=eb.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tH.render(this.render,!1,!0))};const{latestValues:l,renderState:h}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=h,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=n,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=ek(e),this.isVariantNode=eV(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in c){const e=c[t];void 0!==l[t]&&tf(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,ej.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(eB.hasReducedMotionListener.current||(0,eR.initPrefersReducedMotion)(),this.shouldReduceMotion=eB.prefersReducedMotion.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tK(this.notifyUpdate),tK(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&ev.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:s,times:n,ease:r,duration:o}=e.accelerate,a=new eg({element:this.current,name:t,keyframes:s,times:n,ease:r,duration:t8(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let s=E.has(t);s&&this.onBindTransform&&this.onBindTransform();let n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tH.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in eN){let e=eN[t];if(!e)continue;let{isEnabled:i,Feature:s}=e;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){let e=this.features[t];
9e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):tm()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=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<eF.length;e++){let i=eF[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=function(t,e,i){for(let s in e){let n=e[s],r=i[s];if(tf(n))t.addValue(s,n);else if(tf(r))t.addValue(s,eS(n,{owner:t}));else if(r!==n)if(t.hasValue(s)){let e=t.getValue(s);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(s);t.addValue(s,eS(void 0!==e?e:n,{owner:t}))}}for(let s in i)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&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=eS(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let s,n;if("string"==typeof i&&(s=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(s)||(n=i,/^0[^.\s]+$/u.test(n))))i=parseFloat(i);else{let s;s=i,!eP.find(tg(s))&&te.test(e)&&(i=t4(t,e))}this.setBaseTarget(t,tf(i)?i.get():i)}return tf(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let s=eL(this.props,i,this.presenceContext?.custom);s&&(e=s[t])}if(i&&void 0!==e)return e;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||tf(s)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new ee),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){ex.render(this.render)}}class eO extends eI{constructor(){super(...arguments),this.KeyframeResolver=t9}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;tf(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function eU(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let e_=(t,e)=>e&&"number"==typeof t?e.transform(t):t,e$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eW=A.length;function ez(t,e,i){let{style:s,vars:n,transformOrigin:r}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(E.has(t)){o=!0;continue}if(tS(t)){n[t]=i;continue}{let e=e_(i,tl[t]);t.startsWith("origin")?(a=!0,r[t]=e):s[t]=e}}
9if(!e.transform&&(o||i?s.transform=function(t,e,i){let s="",n=!0;for(let r=0;r<eW;r++){let o=A[r],a=t[o];if(void 0===a)continue;let l=!0;if("number"==typeof a)l=a===+!!o.startsWith("scale");else{let t=parseFloat(a);l=o.startsWith("scale")?1===t:0===t}if(!l||i){let t=e_(a,tl[o]);if(!l){n=!1;let e=e$[o]||o;s+=`${e}(${t}) `}i&&(e[o]=t)}}return s=s.trim(),i?s=i(e,n?"":s):n&&(s="none"),s}(e,t.transform,i):s.transform&&(s.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;s.transformOrigin=`${t} ${e} ${i}`}}let eY={offset:"stroke-dashoffset",array:"stroke-dasharray"},eX={offset:"strokeDashoffset",array:"strokeDasharray"},eH=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eK(t,{attrX:e,attrY:i,attrScale:s,pathLength:n,pathSpacing:r=1,pathOffset:o=0,...a},l,h,u){if(ez(t,a,h),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;for(let t of(c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete c.transformBox),eH))void 0!==c[t]&&(d[t]=c[t],delete c[t]);void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==s&&(c.scale=s),void 0!==n&&function(t,e,i=1,s=0,n=!0){t.pathLength=1;let r=n?eY:eX;t[r.offset]=`${-s}`,t[r.array]=`${e} ${i}`}(c,n,r,o,!1)}let eq=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"]),eG=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eZ(t,{style:e,vars:i},s,n){let r,o=t.style;for(r in e)o[r]=e[r];for(r in n?.applyProjectionStyles(o,s),i)o.setProperty(r,i[r])}function eJ(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eQ={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!W.test(t))return t;else t=parseFloat(t);let i=eJ(t,e.target.x),s=eJ(t,e.target.y);return`${i}% ${s}%`}},e0=(t,e,i)=>t+(e-t)*i,e1={borderRadius:{...eQ,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eQ,borderTopRightRadius:eQ,borderBottomLeftRadius:eQ,borderBottomRightRadius:eQ,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=te.parse(t);if(s.length>5)return t;let n=te.createTransformer(t),r=+("number"!=typeof s[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;s[0+r]/=o,s[1+r]/=a;let l=e0(o,a,.5);return"number"==typeof s[2+r]&&(s[2+r]/=l),"number"==typeof s[3+r]&&(s[3+r]/=l),n(s)}}};function e2(t,{layout:e,layoutId:i}){return E.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!e1[t]||"opacity"===t)}function e5(t,e,i){let s=t.style,n=e?.style,r={};if(!s)return r;for(let e in s)(tf(s[e])||n&&tf(n[e])||e2(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(r[e]=s[e]);return r}function e3(t,e,i){let s=e5(t,e,i);for(let i in t)(tf(t[i])||tf(e[i]))&&(s[-1!==A.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return s}class e4 extends eO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tm}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(E.has(e)){let t=tu(e);return t&&t.default||0}return e=eq.has(e)?e:eU(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return e3(t,e,i)}build(t,e,i){eK(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,s){for(let i in eZ(t,e,void 0,s),e.attrs)t.setAttribute(eq.has(i)?i:eU(i),e.attrs[i])}mount(t){this.isSVGTag=eG(t.tagName),super.mount(t)}}function e6({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function e9(t){return void 0===t||1===t}function e8({scale:t,scaleX:e,scaleY:i}){return!e9(t)||!e9(e)||!e9(i)}function e7(t){return e8(t)||it(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function it(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function ie(t,e,i,s,n){return void 0!==n&&(t=s+n*(t-s)),s+i*(t-s)+e}function ii(t,e=0,i=1,s,n){t.min=ie(t.min,e,i,s,n),t.max=ie(t.max,e,i,s,n)}function is(t,{x:e,y:i}){ii(t.x,e.translate,e.scale,e.originPoint),ii(t.y,i.translate,i.scale,i.originPoint)}function ir(t,e){t.min+=e,t.max+=e}function io(t,e,i,s,n=.5){let r=e0(t.min,t.max,n);
9ii(t,e,i,r,s)}function ia(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function il(t,e,i){let s=i??t;io(t.x,ia(e.x,s.x),e.scaleX,e.scale,e.originX),io(t.y,ia(e.y,s.y),e.scaleY,e.scale,e.originY)}function ih(t,e){return e6(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}class iu extends eO{constructor(){super(...arguments),this.type="html",this.renderInstance=eZ}readValueFromInstance(t,e){if(E.has(e))return this.projection?.isProjecting?tF(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tN(i,e)})(t,e);{let i=window.getComputedStyle(t),s=(tS(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return ih(t,e)}build(t,e,i){ez(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return e5(t,e,i)}}let ic=["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 id(t){if("string"!=typeof t||t.includes("-"));else if(ic.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let ip=(0,a.createContext)({strict:!1}),im=(0,a.createContext)({});function iy(t){return Array.isArray(t)?t.join(" "):t}let ig=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function iv(t,e,i){for(let s in e)tf(e[s])||e2(s,i)||(t[s]=e[s])}let ix=()=>({...ig(),attrs:{}}),iw=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ib(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||iw.has(t)}let iT=t=>!ib(t);try{r=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof r&&(iT=t=>t.startsWith("on")?!ib(t):r(t))}catch{}function iS(t){return tf(t)?t.get():t}let iP=t=>(e,i)=>{let s=(0,a.useContext)(im),n=(0,a.useContext)(d),r=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,s,n){return{latestValues:function(t,e,i,s){let n={},r=s(t,{});for(let t in r)n[t]=iS(r[t]);let{initial:o,animate:a}=t,l=ek(t),h=eV(t);e&&h&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let u=!!i&&!1===i.initial,c=(u=u||!1===o)?a:o;if(c&&"boolean"!=typeof c&&!eA(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let s=eL(t,e[i]);if(s){let{transitionEnd:t,transition:e,...i}=s;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=u?e.length-1:0;e=e[t]}null!==e&&(n[t]=e)}for(let e in t)n[e]=t[e]}}}return n}(i,s,n,t),renderState:e()}})(t,e,s,n);return i?r():u(r)},ij=iP({scrapeMotionValuesFromProps:e5,createRenderState:ig}),iA=iP({scrapeMotionValuesFromProps:e3,createRenderState:ix}),iE={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},iM=!1;function iC(){return!function(){if(iM)return;let t={};for(let e in iE)t[e]={isEnabled:t=>iE[e].some(e=>!!t[e])};eN=t,iM=!0}(),eN}let ik=Symbol.for("motionComponentSymbol"),iV="data-"+eU("framerAppearId"),iR=(0,a.createContext)({});function iD(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function iL(t,{forwardMotionProps:e=!1,type:i}={},s,n){s&&function(t){let e=iC();for(let i in t)e[i]={...e[i],...t[i]};eN=e}(s);let r=i?"svg"===i:id(t),l=r?iA:ij;function u(i,s){var u;let p,m,f,g={...(0,a.useContext)(y),...i,layoutId:function({layoutId:t}){let e=(0,a.useContext)(h).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:v}=g,x=function(t){let{initial:e,animate:i}=function(t,e){if(ek(t)){let{initial:e,animate:i}=t;return{initial:!1===e||eE(e)?e:void 0,animate:eE(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,a.useContext)(im));return(0,a.useMemo)(()=>({initial:e,animate:i}),[iy(e),iy(i)])}(i),w=l(i,v);if(!v&&"u">typeof window){(0,a.useContext)(ip).strict;let e=function(t){let{drag:e,layout:i}=iC();if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}
9(g);p=e.MeasureLayout,x.visualElement=function(t,e,i,s,n,r){let{visualElement:o}=(0,a.useContext)(im),l=(0,a.useContext)(ip),h=(0,a.useContext)(d),u=(0,a.useContext)(y),p=u.reducedMotion,m=u.skipAnimations,f=(0,a.useRef)(null),g=(0,a.useRef)(!1);s=s||l.renderer,!f.current&&s&&(f.current=s(t,{visualState:e,parent:o,props:i,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:p,skipAnimations:m,isSVG:r}),g.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let v=f.current,x=(0,a.useContext)(iR);v&&!v.projection&&n&&("html"===v.type||"svg"===v.type)&&function(t,e,i,s){let{layoutId:n,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutAnchor:u,layoutCrossfade:c}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:r,alwaysMeasureLayout:!!o||a&&iD(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:s,crossfade:c,layoutScroll:l,layoutRoot:h,layoutAnchor:u})}(f.current,i,n,x);let w=(0,a.useRef)(!1);(0,a.useInsertionEffect)(()=>{v&&w.current&&v.update(i,h)});let b=i[iV],T=(0,a.useRef)(!!b&&"u">typeof window&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return c(()=>{g.current=!0,v&&(w.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),T.current&&v.animationState&&v.animationState.animateChanges())}),(0,a.useEffect)(()=>{v&&(!T.current&&v.animationState&&v.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}),T.current=!1),v.enteringChildren=void 0)}),v}(t,w,g,n,e.ProjectionNode,r)}return(0,o.jsxs)(im.Provider,{value:x,children:[p&&x.visualElement?(0,o.jsx)(p,{visualElement:x.visualElement,...g}):null,function(t,e,i,{latestValues:s},n,r=!1,o){let l=(o??id(t)?function(t,e,i,s){let n=(0,a.useMemo)(()=>{let i=ix();return eK(i,e,eG(s),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};iv(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i,s,n={},r=(i=t.style||{},iv(s={},i,t),Object.assign(s,function({transformTemplate:t},e){return(0,a.useMemo)(()=>{let i=ig();return ez(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s);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})(e,s,n,t),h=function(t,e,i){let s={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&!tf(t[n])&&(iT(n)||!0===i&&ib(n)||!e&&!ib(n)||t.draggable&&n.startsWith("onDrag"))&&(s[n]=t[n]);return s}(e,"string"==typeof t,r),u=t!==a.Fragment?{...h,...l,ref:i}:{},{children:c}=e,d=(0,a.useMemo)(()=>tf(c)?c.get():c,[c]);return(0,a.createElement)(t,{...u,children:d})}(t,i,(u=x.visualElement,m=(0,a.useRef)(s),(0,a.useInsertionEffect)(()=>{m.current=s}),f=(0,a.useRef)(null),(0,a.useCallback)(t=>{t&&w.onMount?.(t);let e=m.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(f.current=i)}else f.current?(f.current(),f.current=null):e(t);else e&&(e.current=t);u&&(t?u.mount(t):u.unmount())},[u])),w,v,e,r)]})}u.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let p=(0,a.forwardRef)(u);return p[ik]=t,p}class iB{constructor(t){this.isMounted=!1,this.node=t}update(){}}function iF(t,e,i){let s=t.getProps();return eL(s,e,void 0!==i?i:s.custom,t)}function iN(t,e){if(t?.inherit&&e){let{inherit:i,...s}=t;return{...e,...s}}return t}function iI(t,e){let i=t?.[e]??t?.default??t;return i!==t?iN(i,t):i}let iO=t=>Array.isArray(t);function iU(t,e){let i=t.getValue("willChange");if(tf(i)&&i.add)return i.add(e);if(!i&&tz.WillChange){let i=new tz.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let i_=(t,e)=>i=>e(t(i)),i$=(...t)=>t.reduce(i_);function iW(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}function iz(t,e){return i=>i>0?e:t}let iY=(t,e,i)=>{let s=t*t,n=i*(e*e-s)+s;return n<0?0:Math.sqrt(n)},iX=[O,I,H];function iH(t){let e=iX.find(e=>e.test(t));if(tw(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===H&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let n=0,r=0,o=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,a=2*i-s;n=iW(a,s,t+1/3),r=iW(a,s,t),o=iW(a,s,t-1/3)}else n=r=o=i;return{red:Math.round(255*n),green:Math.round(255*r),blue:Math.round(255*o),alpha:s}}(i)),i}let iK=(t,e)=>{let i=iH(t),s=iH(e);if(!i||!s)return iz(t,e);let n={...i};return t=>(n.red=iY(i.red,s.red,t),n.green=iY(i.green,s.green,t),n.blue=iY(i.blue,s.blue,t),n.alpha=e0(i.alpha,s.alpha,t),I.transform(n))},iq=new Set(["none","hidden"]);function iG(t,e){return i=>e0(t,e,i)}function iZ(t){return"number"==typeof t?iG:"string"==typeof t?tj(t)?iz:K.test(t)?iK:i0:Array.isArray(t)?iJ:"object"==typeof t?K.test(t)?iK:iQ:iz}function iJ(t,e){let i=[...t],s=i.length,n=t.map((t,i)=>iZ(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=n[e](t);return i}}function iQ(t,e){let i={...t,...e},s={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(s[n]=iZ(t[n])(t[n],e[n]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let i0=(t,e)=>{let i=te.createTransformer(e),s=Q(t),n=Q(e);if(!(s.indexes.var.length===n.indexes.var.length&&s.indexes.color.length===n.indexes.color.length&&s.indexes.number.length>=n.indexes.number.length))return tw(!0,`Complex values '${t}' and '${e}
9' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),iz(t,e);if(iq.has(t)&&!n.values.length||iq.has(e)&&!s.values.length)return iq.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return i$(iJ(function(t,e){let i=[],s={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let r=e.types[n],o=t.indexes[r][s[r]],a=t.values[o]??0;i[n]=a,s[r]++}return i}(s,n),n.values),i)};function i1(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?e0(t,e,i):iZ(t)(t,e)}let i2=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tH.update(e,t),stop:()=>tK(e),now:()=>tq.isProcessing?tq.timestamp:eb.now()}};function i5(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 i3=.01,i4=2,i6=.005,i9=.5;function i8(t,e){return t*Math.sqrt(1-e*e)}let i7=["duration","bounce"],st=["stiffness","damping","mass"];function se(t,e){return e.some(e=>void 0!==t[e])}function si(t=.3,e=.3){let i,s,n,r,o,a,l="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:h,restDelta:u}=l,c=l.keyframes[0],d=l.keyframes[l.keyframes.length-1],p={done:!1,value:c},{stiffness:m,damping:f,mass:y,duration:g,velocity:v,isResolvedFromDuration:x}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!se(t,st)&&se(t,i7))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,n=2*M(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:1,stiffness:s,damping:n}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:s=1}){let n,r;tw(t<=t8(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=M(.05,1,o),t=M(.01,10,t/1e3),o<1?(n=e=>{let s=e*o,n=s*t;return .001-(s-i)/i8(e,o)*Math.exp(-n)},r=e=>{let s=e*o*t,r=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-s),l=i8(Math.pow(e,2),o);return(s*i+i-r)*a*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(n,r,5/t);if(t=t8(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*s;return{stiffness:e,damping:2*o*Math.sqrt(s*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...l,velocity:-((l.velocity||0)/1e3)}),w=v||0,b=f/(2*Math.sqrt(m*y)),T=d-c,S=Math.sqrt(m/y)/1e3,P=5>Math.abs(T);if(h||(h=P?i3:i4),u||(u=P?i6:i9),b<1)n=i8(S,b),r=(w+b*S*T)/n,i=t=>d-Math.exp(-b*S*t)*(r*Math.sin(n*t)+T*Math.cos(n*t)),o=b*S*r+T*n,a=b*S*T-r*n,s=t=>Math.exp(-b*S*t)*(o*Math.sin(n*t)+a*Math.cos(n*t));else if(1===b){i=t=>d-Math.exp(-S*t)*(T+(w+S*T)*t);let t=w+S*T;s=e=>Math.exp(-S*e)*(S*t*e-w)}else{let t=S*Math.sqrt(b*b-1);i=e=>{let i=Math.exp(-b*S*e),s=Math.min(t*e,300);return d-i*((w+b*S*T)*Math.sinh(s)+t*T*Math.cosh(s))/t};let e=(w+b*S*T)/t,n=b*S*e-T*t,r=b*S*T-e*t;s=e=>{let i=Math.exp(-b*S*e),s=Math.min(t*e,300);return i*(n*Math.sinh(s)+r*Math.cosh(s))}}let j={calculatedDuration:x&&g||null,velocity:t=>t8(s(t)),next:t=>{if(!x&&b<1){let e=Math.exp(-b*S*t),i=Math.sin(n*t),s=Math.cos(n*t),l=d-e*(r*i+T*s);return p.done=Math.abs(t8(e*(o*i+a*s)))<=h&&Math.abs(d-l)<=u,p.value=p.done?d:l,p}let e=i(t);return x?p.done=t>=g:p.done=Math.abs(t8(s(t)))<=h&&Math.abs(d-e)<=u,p.value=p.done?d:e,p},toString:()=>{let t=Math.min(i5(j),2e4),e=ep(e=>j.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return j}
9function ss(t,e,i){var s,n;let r=Math.max(e-5,0);return s=i-t(r),(n=e-r)?1e3/n*s:0}function sn({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:h=.5,restSpeed:u}){let c,d,p=t[0],m={done:!1,value:p},f=i*e,y=p+f,g=void 0===o?y:o(y);g!==y&&(f=g-p);let v=t=>-f*Math.exp(-t/s),x=t=>g+v(t),w=t=>{let e=v(t),i=x(t);m.done=Math.abs(e)<=h,m.value=m.done?g:i},b=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;c=t,d=si({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:ss(x,t,m.value),damping:n,stiffness:r,restDelta:h,restSpeed:u})}};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,w(t),b(t)),void 0!==c&&t>=c)?d.next(t-c):(e||w(t),m)}}}si.applyToOptions=t=>{let e=function(t,e=100,i){let s=i({...t,keyframes:[0,e]}),n=Math.min(i5(s),2e4);return{type:"keyframes",ease:t=>s.next(n*t).value/e,duration:n/1e3}}(t,100,si);return t.ease=e.ease,t.duration=t8(e.duration),t.type="keyframes",t};let sr=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function so(t,e,i,s){return t===e&&i===s?tW:n=>0===n||1===n?n:sr(function(t,e,i,s,n){let r,o,a=0;do(r=sr(o=e+(i-e)/2,s,n)-t)>0?i=o:e=o;while(Math.abs(r)>1e-7&&++a<12)return o}(n,0,1,t,i),e,s)}let sa=so(.42,0,1,1),sl=so(0,0,.58,1),sh=so(.42,0,.58,1),su=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,sc=t=>e=>1-t(1-e),sd=so(.33,1.53,.69,.99),sp=sc(sd),sm=su(sp),sf=t=>t>=1?1:(t*=2)<1?.5*sp(t):.5*(2-Math.pow(2,-10*(t-1))),sy=t=>1-Math.sin(Math.acos(t)),sg=sc(sy),sv=su(sy),sx={linear:tW,easeIn:sa,easeInOut:sh,easeOut:sl,circIn:sy,circInOut:sv,cir
9cOut:sg,backIn:sp,backInOut:sm,backOut:sd,anticipate:sf},sw=t=>{if(ec(t)){tb(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,s,n]=t;return so(e,i,s,n)}return"string"==typeof t?(tb(void 0!==sx[t],`Invalid easing type '${t}'`,"invalid-easing-type"),sx[t]):t},sb=(t,e,i)=>{let s=e-t;return 0===s?1:(i-t)/s};function sT({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){var n;let r,o=Array.isArray(s)&&"number"!=typeof s[0]?s.map(sw):sw(s),a={done:!1,value:e[0]},l=function(t,e,{clamp:i=!0,ease:s,mixer:n}={}){let r=t.length;if(tb(r===e.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let s=[],n=i||tz.mix||i1,r=t.length-1;for(let i=0;i<r;i++){let r=n(t[i],t[i+1]);e&&(r=i$(Array.isArray(e)?e[i]||tW:e,r)),s.push(r)}return s}(e,s,n),l=a.length,h=i=>{if(o&&i<t[0])return e[0];let s=0;if(l>1)for(;s<t.length-2&&!(i<t[s+1]);s++);let n=sb(t[s],t[s+1],i);return a[s](n)};return i?e=>h(M(t[0],t[r-1],e)):h}((n=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let n=sb(0,e,s);t.push(e0(i,1,n))}}(r=[0],e.length-1),r),n.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||sh).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}let sS={decay:sn,inertia:sn,tween:sT,keyframes:sT,spring:si};function sP(t){"string"==typeof t.type&&(t.type=sS[t.type])}let sj=t=>t/100;class sA extends eh{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==eb.now()&&this.tick(eb.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},eu.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;sP(t);let{type:e=sT,repeat:i=0,repeatDelay:s=0,repeatType:n,velocity:r=0}=t,{keyframes:o}=t,a=e||sT;a!==sT&&"number"!=typeof o[0]&&(this.mixKeyframes=i$(sj,i1(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===n&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=i5(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let i,{generator:s,totalDuration:n,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return s.next(0);let{delay:h=0,keyframes:u,repeat:c,repeatType:d,repeatDelay:p,type:m,onUpdate:f,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-h*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>n;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let x=this.currentTime,w=s;if(c){let t=Math.min(this.currentTime,n)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===d?(i=1-i,p&&(i-=p/a)):"mirror"===d&&(w=o)),x=M(0,1,i)*a}v?(this.delayState.value=u[0],i=this.delayState):i=w.next(x),r&&!v&&(i.value=r(i.value));let{done:b}=i;v||null===l||(b=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return T&&m!==sn&&(i.value=el(u,this.options,y,this.speed)),f&&f(i.value),T&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=t8(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;
9if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return ss(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(eb.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=i2,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(eb.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,eu.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let sE={anticipate:sf,backInOut:sm,circInOut:sv};class sM extends eg{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in sE&&(t.ease=sE[t.ease])}(t),sP(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:s,element:n,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new sA({...r,autoplay:!1}),a=Math.max(10,eb.now()-this.startTime),l=M(0,10,a-10),h=o.sample(a).value,{name:u}=this.options;n&&u&&ei(n,u,h),e.setWithVelocity(o.sample(Math.max(0,a-l)).value,h,l),o.stop()}}let sC=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(te.test(t)||"0"===t)&&!t.startsWith("url("));function sk(t){t.duration=0,t.type="keyframes"}let sV=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,sR=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),sD=es(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class sL extends eh{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:n=0,repeatType:r="loop",keyframes:o,name:a,motionValue:l,element:h,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=eb.now();const c={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:n,repeatType:r,name:a,motionValue:l,element:h,...u},d=h?.KeyframeResolver||t5;this.keyframeResolver=new d(o,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),a,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,s){let n;this.keyframeResolver=void 0;let{name:r,type:o,velocity:a,delay:l,isHandoff:h,onUpdate:u}=i;this.resolvedAt=eb.now();let c=!0;!function(t,e,i,s){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=sC(n,e),a=sC(r,e);return tw(o===a,`You are trying to animate ${e} from "${n}" to "${r}". "${o?r:n}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||ey(i))&&s)}(t,r,o,a)&&(c=!1,(tz.instantAnimations||!l)&&u?.(el(t,i,e)),t[0]=t[t.length-1],sk(i),i.repeat=0);let d={startTime:s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=c&&!h&&function(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:n,damping:r,type:o,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;
9let{onUpdate:l,transformTemplate:h}=e.owner.getProps();return sD()&&i&&(ev.has(i)||sR.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&sV.test(t[e]))return!0;return!1}(a))&&("transform"!==i||!h)&&!l&&!s&&"mirror"!==n&&0!==r&&"inertia"!==o}(d),m=d.motionValue?.owner?.current;if(p)try{n=new sM({...d,element:m})}catch{n=new sA(d)}else n=new sA(d);n.finished.then(()=>{this.notifyFinished()}).catch(tW),this.pendingTimeline&&(this.stopTimeline=n.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=n}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),t0=!0,t2(),t1(),t0=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let sB={type:"spring",stiffness:500,damping:25,restSpeed:10},sF={type:"keyframes",duration:.8},sN={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sI=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),sO=(t,e,i,s={},n,r)=>o=>{let a=iI(s,t)||{},l=a.delay||s.delay||0,{elapsed:h=0}=s;h-=t8(l);let u={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-h,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:n};!function(t){for(let e in t)if(!sI.has(e))return!0;return!1}(a)&&Object.assign(u,((t,{keyframes:e})=>e.length>2?sF:E.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:sB:sN)(t,u)),u.duration&&(u.duration=t8(u.duration)),u.repeatDelay&&(u.repeatDelay=t8(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let c=!1;if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(sk(u),0===u.delay&&(c=!0)),(tz.instantAnimations||tz.skipAnimations||n?.shouldSkipAnimations)&&(c=!0,sk(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,c&&!r&&void 0!==e.get()){let t=el(u.keyframes,a);if(void 0!==t)return void tH.update(()=>{u.onUpdate(t),u.onComplete()})}return a.isSync?new sA(u):new sL(u)};function sU(t,e,{delay:i=0,transitionOverride:s,type:n}={}){let{transition:r,transitionEnd:o,...a}=e,l=t.getDefaultTransition();r=r?iN(r,l):l;let h=r?.reduceMotion;s&&(r=s);let u=[],c=n&&t.animationState&&t.animationState.getState()[n];for(let e in a){let s=t.getValue(e,t.latestValues[e]??null),n=a[e];if(void 0===n||c&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(c,e))continue;let o={delay:i,...iI(r||{},e)},l=s.get();if(void 0!==l&&!s.isAnimating()&&!Array.isArray(n)&&n===l&&!o.velocity){tH.update(()=>s.set(n));continue}let d=!1;if(window.MotionHandoffAnimation){let i=t.props[iV];if(i){let t=window.MotionHandoffAnimation(i,e,tH);null!==t&&(o.startTime=t,d=!0)}}iU(t,e);let p=h??t.shouldReduceMotion;s.start(sO(e,s,n,p&&ty.has(e)?{type:!1}:o,t,d));let m=s.animation;m&&u.push(m)}if(o){let e=()=>tH.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:s={},...n}=iF(t,e)||{};for(let e in n={...n,...i}){var r;let i=iO(r=n[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,eS(i))}}(t,o)});u.length?Promise.all(u).then(e):e()}return u}function s_(t,e,i,s=0,n=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*s;return"function"==typeof i?i(r,o):1===n?r*s:a-r*s}function s$(t,e,i={}){let s=iF(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(n=i.transitionOverride);let r=s?()=>Promise.all(sU(t,s,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=n;
9return function(t,e,i=0,s=0,n=0,r=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(s$(l,e,{...o,delay:i+("function"==typeof s?0:s)+s_(t.variantChildren,l,s,n,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,s,r,o,a,i)}:()=>Promise.resolve(),{when:a}=n;if(!a)return Promise.all([r(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[r,o]:[o,r];return t().then(()=>e())}}let sW=eC.length;function sz(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}let sY=[...eM].reverse(),sX=eM.length;function sH(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sK(){return{animate:sH(!0),whileInView:sH(),whileHover:sH(),whileTap:sH(),whileDrag:sH(),whileFocus:sH(),exit:sH()}}let sq=0;function sG(t){return[t("x"),t("y")]}function sZ(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}let sJ={x:!1,y:!1};function sQ(t){return t.max-t.min}function s0(t,e,i,s=.5){t.origin=s,t.originPoint=e0(e.min,e.max,t.origin),t.scale=sQ(i)/sQ(e),t.translate=e0(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function s1(t,e,i,s){s0(t.x,e.x,i.x,s?s.originX:void 0),s0(t.y,e.y,i.y,s?s.originY:void 0)}function s2(t,e,i,s=0){t.min=(s?e0(i.min,i.max,s):i.min)+e.min,t.max=t.min+sQ(e)}function s5(t,e,i,s=0){let n=s?e0(i.min,i.max,s):i.min;t.min=e.min-n,t.max=t.min+sQ(e)}function s3(t,e,i,s){s5(t.x,e.x,i.x,s?.x),s5(t.y,e.y,i.y,s?.y)}function s4(t){return p(t)&&"ownerSVGElement"in t}function s6(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let s=document;e&&(s=e.current);let n=i?.[t]??s.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t).filter(t=>null!=t)}let s9=new WeakMap,s8=(t,e,i)=>(s,n)=>n&&n[0]?n[0][t+"Size"]:s4(s)&&"getBBox"in s?s.getBBox()[e]:s[i],s7=s8("inline","width","offsetWidth"),nt=s8("block","height","offsetHeight");function ne({target:t,borderBoxSize:e}){s9.get(t)?.forEach(i=>{i(t,{get width(){return s7(t,e)},get height(){return nt(t,e)}})})}function ni(t){t.forEach(ne)}let ns=new Set;function nn(t,e){let n;return"function"==typeof t?(ns.add(t),s||(s=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};ns.forEach(e=>e(t))},window.addEventListener("resize",s)),()=>{ns.delete(t),ns.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(ni)),(n=s6(t)).forEach(t=>{let s=s9.get(t);s||(s=new Set,s9.set(t,s)),s.add(e),i?.observe(t)}),()=>{n.forEach(t=>{let s=s9.get(t);s?.delete(e),s?.size||i?.unobserve(t)})})}let nr=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),no=new Set(["INPUT","SELECT","TEXTAREA"]),na=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function nl(t){return{point:{x:t.pageX,y:t.pageY}}}function nh(t,e,i,s){return sZ(t,e,t=>na(t)&&i(t,nl(t)),s)}let nu=({current:t})=>t?t.ownerDocument.defaultView:null,nc=(t,e)=>Math.abs(t-e),nd=new Set(["auto","scroll"]);class np{constructor(t,e,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:n=!1,distanceThreshold:r=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=nm(this.lastRawMoveEventInfo,this.transformPagePoint));let i=ny(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(nc(t.x,e.x)**2+nc(t.y,e.y)**2)>=this.distanceThreshold);if(!s&&!n)return;let{point:r}=i,{timestamp:o}=tq;this.history.push({...r,timestamp:o});let{onStart:a,onMove:l}=this.handlers;s||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=nm(e,this.transformPagePoint),tH.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=ny("pointercancel"===t.type?this.lastMoveEventInfo:nm(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),s&&s(t,r)},!na(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=s||window;const a=nm(nl(t),this.transformPagePoint),{point:l}=a,{timestamp:h}=tq;this.history=[{...l,timestamp:h}];const{onSessionStart:u}=e;u&&u(t,ny(a,this.history)),this.removeListeners=i$(nh(this.contextWindow,"pointermove",this.handlePointerMove),nh(this.contextWindow,"pointerup",this.handlePointerUp),nh(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(nd.has(t.overflowX)||nd.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},n={x:s.x-e.x,y:s.y-e.y};(0!==n.x||0!==n.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(t,s),tH.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tK(this.updatePoint)}}function nm(t,e){return e?{point:e(t.point)}:t}function nf(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ny({point:t},e){return{point:t,delta:nf(t,ng(e)),offset:nf(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,n=ng(t);for(;i>=0&&(s=t[i],!(n.timestamp-s.timestamp>t8(.1)));)i--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&n.timestamp-s.timestamp>2*t8(.1)&&(s=t[1]);let r=(n.timestamp-s.timestamp)/1e3;if(0===r)return{x:0,y:0};let o={x:(n.x-s.x)/r,y:(n.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function ng(t){return t[t.length-1]}function nv(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 nx(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}
9function nw(t,e,i){return{min:nb(t,e),max:nb(t,i)}}function nb(t,e){return"number"==typeof t?t:t[e]||0}let nT=new WeakMap;class nS{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=tm(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let n=t=>{e&&this.snapToCursor(nl(t).point),this.stopAnimation()},r=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(sJ[t])return null;else return sJ[t]=!0,()=>{sJ[t]=!1};return sJ.x||sJ.y?null:(sJ.x=sJ.y=!0,()=>{sJ.x=sJ.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),sG(t=>{let e=this.getAxisMotionValue(t).get()||0;if($.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=sQ(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&tH.update(()=>n(t,e),!1,!0),iU(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(s&&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}(o),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&tH.update(()=>r(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:h}=this.getProps();this.panSession=new np(t,{onSessionStart:n,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:nu(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,s=e||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!s||!i)return;let{velocity:r}=s;this.startAnimation(r);let{onDragEnd:o}=this.getProps();o&&tH.postRender(()=>o(i,s))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!nj(t,s,this.currentDirection))return;let n=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?e0(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?e0(i,t,s.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),n.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;t&&iD(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:nv(t.x,i,n),y:nv(t.y,e,s)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:nw(t,"left","right"),y:nw(t,"top","bottom")}}(e),s!==this.constraints&&!iD(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&sG(t=>{var e,s;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],s=this.constraints[t],n={},void 0!==s.min&&(n.min=s.min-e.min),void 0!==s.max&&(n.max=s.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iD(e))return!1;let s=e.current;tb(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;
9let r=function(t,e,i){let s=ih(t,i),{scroll:n}=e;return n&&(ir(s.x,n.offset.x),ir(s.y,n.offset.y)),s}(s,n.root,this.visualElement.getTransformPagePoint()),o=(t=n.layout.layoutBox,{x:nx(t.x,r.x),y:nx(t.y,r.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=e6(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(sG(o=>{if(!nj(o,e,this.currentDirection))return;let l=a&&a[o]||{};(!0===r||r===o)&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[o]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return iU(this.visualElement,t),i.start(sO(t,i,0,e,this.visualElement,!1))}stopAnimation(){sG(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){sG(e=>{let{drag:i}=this.getProps();if(!nj(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:r}=s.layout.layoutBox[e],o=n.get()||0;n.set(t[e]-e0(i,r,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iD(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};sG(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,n;let r,o,a,l=e.get();s[t]=(i={min:l,max:l},n=this.constraints[t],r=.5,o=sQ(i),(a=sQ(n))>o?r=sb(n.min,n.max-o,i.min):o>a&&(r=sb(i.min,i.max-a,n.min)),M(0,1,r))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),sG(e=>{if(!nj(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:r}=this.constraints[e];i.set(e0(n,r,s[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;nT.set(this.visualElement,this);let e=this.visualElement.current,i=nh(e,"pointerdown",t=>{let{drag:i,dragListener:s=!0}=this.getProps(),n=t.target,r=n!==e&&(no.has(n.tagName)||!0===n.isContentEditable);i&&s&&!r&&this.start(t)}),s=()=>{var i,s,n;let r,o,{dragConstraints:a}=this.getProps();iD(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,s=a.current,r=nn(i,nP(n=()=>this.scalePositionWithinConstraints())),o=nn(s,nP(n)),t=()=>{r(),o()}))},{projection:n}=this.visualElement,r=n.addEventListener("measure",s);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),tH.read(s);let o=sZ(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(sG(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),i(),r(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:r,dragMomentum:o}}}function nP(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function nj(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let nA=t=>(e,i)=>{t&&tH.update(()=>t(e,i),!1,!0)},nE={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var nM=a;let nC=!1;class nk extends nM.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=t;n&&(e.group&&e.group.add(n),i&&i.register&&s&&i.register(n),nC&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),nE.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:n}=this.props,{projection:r}=i;return r&&(r.isPresent=n,t.layoutDependency!==e&&r.setOptions({...r.options,layoutDependency:e}),nC=!0,s||t.layoutDependency!==e||void 0===e||t.isPresent!==n?r.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?r.promote():r.relegate()||tH.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),ex.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;nC=!0,s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nV(t){let[e,i]=T(),s=(0,nM.useContext)(h);return(0,o.jsx)(nk,{...t,layoutGroup:s,switchLayoutGroup:(0,nM.useContext)(iR),isPresent:e,safeToRemove:i})}let nR=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],nD=nR.length,nL=t=>"string"==typeof t?parseFloat(t):t,nB=t=>"number"==typeof t||W.test(t);function nF(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nN=nO(0,.5,sg),nI=nO(.5,.95,tW);function nO(t,e,i){return s=>s<t?0:s>e?1:i(sb(t,e,s))}function nU(t,e){t.min=e.min,t.max=e.max}function n_(t,e){nU(t.x,e.x),nU(t.y,e.y)}function n$(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nW(t,e,i,s,n){return t-=e,t=s+1/i*(t-s),void 0!==n&&(t=s+1/n*(t-s)),t}function nz(t,e,[i,s,n],r,o){!function(t,e=0,i=1,s=.5,n,r=t,o=t){if($.test(e)&&(e=parseFloat(e),e=e0(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=e0(r.min,r.max,s);t===r&&(a-=e),t.min=nW(t.min,e,i,a,n),t.max=nW(t.max,e,i,a,n)}(t,e[i],e[s],e[n],e.scale,r,o)}let nY=["x","scaleX","originX"],nX=["y","scaleY","originY"];function nH(t,e,i,s){nz(t.x,e,nY,i?i.x:void 0,s?s.x:void 0),nz(t.y,e,nX,i?i.y:void 0,s?s.y:void 0)}function nK(t){return 0===t.translate&&1===t.scale}function nq(t){return nK(t.x)&&nK(t.y)}function nG(t,e){return t.min===e.min&&t.max===e.max}function nZ(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nJ(t,e){return nZ(t.x,e.x)&&nZ(t.y,e.y)}function nQ(t){return sQ(t.x)/sQ(t.y)}function n0(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class n1{constructor(){this.members=[]}add(t){t7(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let s=i.instance;s&&!1!==s.isConnected||i.snapshot||(et(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(et(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)}
9}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:s}=i.options,{layoutDependency:n}=t.options;(void 0===s||s!==n)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let n2=(t,e)=>t.depth-e.depth;class n5{constructor(){this.children=[],this.isDirty=!1}add(t){t7(this.children,t),this.isDirty=!0}remove(t){et(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(n2),this.isDirty=!1,this.children.forEach(t)}}let n3=["","X","Y","Z"],n4=0;function n6(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function n9({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(t={},i=e?.()){this.id=n4++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(rt),this.nodes.forEach(rh),this.nodes.forEach(ru),this.nodes.forEach(re)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,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 n5)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new ee),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){if(this.instance)return;this.isSVG=s4(e)&&!(s4(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:s,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),t){let i,s=0,n=()=>this.root.updateBlockedByResize=!1;tH.read(()=>{s=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==s){let e,r;s=t,this.root.updateBlockedByResize=!0,i&&i(),e=eb.now(),r=({timestamp:t})=>{let i=t-e;i>=250&&(tK(r),n(i-250))},tH.setup(r,!0),i=()=>tK(r),nE.hasAnimatedSinceResize&&(nE.hasAnimatedSinceResize=!1,this.nodes.forEach(rl))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||ry,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!nJ(this.targetLayout,s),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...iI(r,"layout"),onPlay:o,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||rl(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}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,this.eventHandlers.clear(),tK(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.forEac
9h(rc),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(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let s=i.props[iV];if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",tH,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),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,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(rn),this.nodes.forEach(rs);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(rr);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ro),this.nodes.forEach(ra),this.nodes.forEach(n8),this.nodes.forEach(n7)):this.nodes.forEach(rr),this.clearAllSnapshots();let t=eb.now();tq.delta=M(0,1e3/60,t-tq.timestamp),tq.timestamp=t,tq.isProcessing=!0,tG.update.process(tq),tG.preRender.process(tq),tG.render.process(tq),tq.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ex.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ri),this.sharedNodes.forEach(rd)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tH.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tH.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||sQ(this.snapshot.measuredBox.x)||sQ(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=tm()),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);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=s(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!nq(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,r=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||e7(this.latestValues)||r)&&(n(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),rx((e=s).x),rx(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return tm();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rb))){let{scroll:t}=this.root;t&&(ir(e.x,t.offset.x),ir(e.y,t.offset.y))}return e}removeElementScroll(t){let e=tm();if(n_(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:n,options:r}=s;s!==this.root&&n&&r.layoutScroll&&(n.wasRoot&&n_(e,t),ir(e.x,n.offset.x),ir(e.y,n.offset.y))}return e}applyTransform(t,e=!1,i){let s=i||tm();n_(s,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(ir(s.x,-i.scroll.offset.x),ir(s.y,-i.scroll.offset.y)),e7(i.latestValues)&&il(s,i.latestValues,i.layout?.layoutBox)}return e7(this.latestValues)&&il(s,this.latestValues,this.layout?.layoutBox),s}removeTransform(t){let e=tm();n_(e,t);for(let t=0;t<this.path.length;t++){let i,s=this.path[t];e7(s.latestValues)&&(s.instance&&(e8(s.latestValues)&&s.updateSnapshot(),n_(i=tm(),s.measurePageBox())),nH(e,s.latestValues,s.snapshot?.layoutBox,i))}return e7(this.latestValues)&&nH(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!==tq.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:n}=this.options;if(!this.layout||!(s||n))return;this.resolvedRelativeTargetAt=tq.timestamp;let r=this.getClosestProjectingParent();if(r&&this.linkedParentVersion!==r.layoutVersion&&!r.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=tm(),this.targetWithTransforms=tm()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l,h;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,h=this.options.layoutAnchor||void 0,s2(o.x,a.x,l.x,h?.x),s2(o.y,a.y,l.y,h?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):n_(this.target,this.layout.layoutBox),is(this.target,this.targetDelta)):n_(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||e8(this.parent.latestValues)||it(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tm(),this.relativeTargetOrigin=tm(),s3(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),n_(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
9if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tq.timestamp&&(i=!1),i)return;let{layout:s,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||n))return;n_(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,s=!1){let n,r,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){r=(n=i[a]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(ir(t.x,-n.scroll.offset.x),ir(t.y,-n.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,is(t,r)),s&&e7(n.latestValues)&&il(t,n.latestValues,n.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=tm());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(n$(this.prevProjectionDelta.x,this.projectionDelta.x),n$(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),s1(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===r&&this.treeScale.y===o&&n0(this.projectionDelta.x,this.prevProjectionDelta.x)&&n0(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=td(),this.projectionDelta=td(),this.projectionDeltaWithTransform=td()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,n=s?s.latestValues:{},r={...this.latestValues},o=td();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=tm(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(rf));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(rp(o.x,t.x,s),rp(o.y,t.y,s),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,d,p,m,f,y;s3(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,y=s,rm(p.x,m.x,f.x,y),rm(p.y,m.y,f.y,y),i&&(h=this.relativeTarget,d=i,nG(h.x,d.x)&&nG(h.y,d.y))&&(this.isProjectionDirty=!1),i||(i=tm()),n_(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,s,n,r){n?(t.opacity=e0(0,i.opacity??1,nN(s)),t.opacityExit=e0(e.opacity??1,0,nI(s))):r&&(t.opacity=e0(e.opacity??1,i.opacity??1,s));for(let n=0;n<nD;n++){let r=nR[n],o=nF(e,r),a=nF(i,r);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||nB(o)===nB(a)?(t[r]=Math.max(e0(nL(o),nL(a),s),0),($.test(a)||$.test(o))&&(t[r]+="%")):t[r]=a)}(e.rotate||i.rotate)&&(t.rotate=e0(e.rotate||0,i.rotate||0,s))}(r,n,this.latestValues,s,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tK(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tH.update(()=>{var e,i,s;let n;nE.hasAnimatedSinceResize=!0,eu.layout++,this.motionValue||(this.motionValue=eS(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],s={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{eu.layout--},onComplete:()=>{eu.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(n=tf(e)?e:eS(e)).start(sO("",n,i,s)),n.animation),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:s,latestValues:n}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&rw(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||tm();let e=sQ(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=sQ(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}
9n_(e,i),il(e,n),s1(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new n1),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.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 s=this.getStack();s&&s.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)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let s={};i.z&&n6("z",t,s,this.animationValues);for(let e=0;e<n3.length;e++)n6(`rotate${n3[e]}`,t,s,this.animationValues),n6(`skew${n3[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=iS(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=iS(e?.pointerEvents)||""),this.hasProjected&&!e7(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let n=s.animationValues||s.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let s="",n=t.x.translate/e.x,r=t.y.translate/e.y,o=i?.z||0;if((n||r||o)&&(s=`translate3d(${n}px, ${r}px, ${o}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:r,skewX:o,skewY:a}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),n&&(s+=`rotateX(${n}deg) `),r&&(s+=`rotateY(${r}deg) `),o&&(s+=`skewX(${o}deg) `),a&&(s+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(s+=`scale(${a}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(r=i(n,r)),t.transform=r;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,s.animationValues?t.opacity=s===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:t.opacity=s===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,e1){if(void 0===n[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=e1[e],l="none"===r?n[e]:i(n[e],s);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=s===this?iS(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(rs),this.root.sharedNodes.clear()}}}function n8(t){t.updateLayout()}function n7(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=t.layout,{animationType:n}=t.options,r=e.source!==t.layout.source;if("size"===n)sG(t=>{let s=r?e.measuredBox[t]:e.layoutBox[t],n=sQ(s);s.min=i[t].min,s.max=s.min+n});else if("x"===n||"y"===n){let t="x"===n?"y":"x";nU(r?e.measuredBox[t]:e.layoutBox[t],i[t])}else rw(n,e.layoutBox,i)&&sG(s=>{let n=r?e.measuredBox[s]:e.layoutBox[s],o=sQ(i[s]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+o)});let o=td();s1(o,i,e.layoutBox);let a=td();r?s1(a,t.applyTransform(s,!0),e.measuredBox):s1(a,i,e.layoutBox);let l=!nq(o),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:r}=s;if(n&&r){let o=t.options.layoutAnchor||void 0,a=tm();s3(a,e.layoutBox,n.layoutBox,o);let l=tm();s3(l,i,r.layoutBox,o),nJ(a,l)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function rt(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
9isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function re(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ri(t){t.clearSnapshot()}function rs(t){t.clearMeasurements()}function rn(t){t.isLayoutDirty=!0,t.updateLayout()}function rr(t){t.isLayoutDirty=!1}function ro(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function ra(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function rl(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rh(t){t.resolveTargetDelta()}function ru(t){t.calcProjection()}function rc(t){t.resetSkewAndRotation()}function rd(t){t.removeLeadSnapshot()}function rp(t,e,i){t.translate=e0(e.translate,0,i),t.scale=e0(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function rm(t,e,i,s){t.min=e0(e.min,i.min,s),t.max=e0(e.max,i.max,s)}function rf(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ry={duration:.45,ease:[.4,0,.1,1]},rg=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rv=rg("applewebkit/")&&!rg("chrome/")?Math.round:tW;function rx(t){t.min=rv(t.min),t.max=rv(t.max)}function rw(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(nQ(e)-nQ(i)))}function rb(t){return t!==t.root&&t.scroll?.wasRoot}let rT=n9({attachResizeListener:(t,e)=>sZ(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),rS={current:void 0},rP=n9({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rS.current){let t=new rT({});t.mount(window),t.setOptions({layoutScroll:!0}),rS.current=t}return rS.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function rj(t,e){let i=s6(t),s=new AbortController;return[i,{passive:!0,...e,signal:s.signal},()=>s.abort()]}function rA(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&tH.postRender(()=>n(e,nl(e)))}let rE=(t,e)=>!!e&&(t===e||rE(t,e.parentElement)),rM=new WeakSet;function rC(t){return e=>{"Enter"===e.key&&t(e)}}function rk(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function rV(t){return na(t)&&!(sJ.x||sJ.y)}let rR=new WeakSet;function rD(t,e,i){let{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&tH.postRender(()=>n(e,nl(e)))}let rL=new WeakMap,rB=new WeakMap,rF=t=>{let e=rL.get(t.target);e&&e(t)},rN=t=>{t.forEach(rF)},rI={some:0,all:1},rO=function(t,e){if("u"<typeof Proxy)return iL;let i=new Map,s=(i,s)=>iL(i,s,t,e);return new Proxy((t,e)=>s(t,e),{get:(n,r)=>"create"===r?s:(i.has(r)||i.set(r,iL(r,void 0,t,e)),i.get(r))})}({animation:{Feature:class extends iB{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>s$(t,e,i)));else if("string"==typeof e)s=s$(t,e,i);else{let n="function"==typeof e?iF(t,e,i.custom):e;s=Promise.all(sU(t,n,i))}return s.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=sK(),s=!0,n=!1,r=e=>(i,s)=>{let n=iF(t,s,"exit"===e?t.presenceContext?.custom:void 0);if(n){let{transition:t,transitionEnd:e,...s}=n;i={...i,...s,...e}}return i};function o(o){let{props:a}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<sW;t++){let s=eC[t],n=e.props[s];(eE(n)||!1===n)&&(i[s]=n)}return i}(t.parent)||{},h=[],u=new Set,c={},d=1/0;for(let e=0;e<sX;e++){var p,m;
9let f=sY[e],y=i[f],g=void 0!==a[f]?a[f]:l[f],v=eE(g),x=f===o?y.isActive:null;!1===x&&(d=e);let w=g===l[f]&&g!==a[f]&&v;if(w&&(s||n)&&t.manuallyAnimateOnMount&&(w=!1),y.protectedKeys={...c},!y.isActive&&null===x||!g&&!y.prevProp||eA(g)||"boolean"==typeof g)continue;if("exit"===f&&y.isActive&&!0!==x){y.prevResolvedValues&&(c={...c,...y.prevResolvedValues});continue}let b=(p=y.prevProp,"string"==typeof(m=g)?m!==p:!!Array.isArray(m)&&!sz(m,p)),T=b||f===o&&y.isActive&&!w&&v||e>d&&v,S=!1,P=Array.isArray(g)?g:[g],j=P.reduce(r(f),{});!1===x&&(j={});let{prevResolvedValues:A={}}=y,E={...A,...j},M=e=>{T=!0,u.has(e)&&(S=!0,u.delete(e)),y.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in E){let e=j[t],i=A[t];if(!c.hasOwnProperty(t))(iO(e)&&iO(i)?sz(e,i):e===i)?void 0!==e&&u.has(t)?M(t):y.protectedKeys[t]=!0:null!=e?M(t):u.add(t)}y.prevProp=g,y.prevResolvedValues=j,y.isActive&&(c={...c,...j}),(s||n)&&t.blockInitialAnimation&&(T=!1);let C=w&&b,k=!C||S;T&&k&&h.push(...P.map(e=>{let i={type:f};if("string"==typeof e&&(s||n)&&!C&&t.manuallyAnimateOnMount&&t.parent){let{parent:s}=t,n=iF(s,e);if(s.enteringChildren&&n){let{delayChildren:e}=n.transition||{};i.delay=s_(s.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof a.initial){let i=iF(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let s=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=s??null}),h.push({animation:e})}let f=!!h.length;return s&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),s=!1,n=!1,f?e(h):Promise.resolve()}return{animateChanges:o,setActive:function(e,s){if(i[e].isActive===s)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,s)),i[e].isActive=s;let n=o(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=sK(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();eA(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends iB{constructor(){super(...arguments),this.id=sq++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t){let i=iF(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...s}=i;for(let t in s)this.node.getValue(t)?.jump(s[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
9e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends iB{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:s,margin:n,amount:r="some",once:o}=i,a={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:rI[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),n=e?i:s;n&&n(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;rB.has(i)||rB.set(i,{});let s=rB.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(rN,{root:t,...e})),s[n]}(a),rL.set(t,l),e.observe(t),()=>{rL.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends iB{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[s,n,r]=rj(t,i),o=t=>{let s=t.currentTarget;if(!rV(t)||rR.has(t))return;rM.add(s),i.stopPropagation&&rR.add(t);let r=e(s,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),rM.has(s)&&rM.delete(s),rV(t)&&"function"==typeof r&&r(t,{success:e})},a=t=>{o(t,s===window||s===document||i.useGlobalTarget||rE(s,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",l,n)};return s.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,n),m(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=rC(()=>{if(rM.has(i))return;rk(i,"down");let t=rC(()=>{rk(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>rk(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,n)),nr.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(rD(this.node,e,"Start"),(t,{success:e})=>rD(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends iB{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=i$(sZ(this.node.current,"focus",()=>this.onFocus()),sZ(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iB{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[s,n,r]=rj(t,i);return s.forEach(t=>{let i,s=!1,r=!1,o=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{s=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),r&&(r=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(s){r=!0;return}o(t)}};t.addEventListener("pointerenter",s=>{if("touch"===s.pointerType||sJ.x||sJ.y)return;r=!1;let o=e(t,s);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,n))},n),t.addEventListener("pointerdown",()=>{s=!0,window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",a,n)},n)}),r}(t,(t,e)=>(rA(this.node,e,"Start"),t=>rA(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends iB{constructor(){super(...arguments),this.removePointerDownListener=tW}onPointerDown(t){this.session=new np(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nu(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:nA(t),onStart:nA(e),onMove:nA(i),onEnd:(t,e)=>{delete this.session,s&&tH.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=nh(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 iB{constructor(t){super(t),this.removeGroupControls=tW,this.removeListeners=tW,this.controls=new nS(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tW}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:rP,MeasureLayout:nV},layout:{ProjectionNode:rP,MeasureLayout:nV}},(t,e)=>e.isSVG??id(t)?new e4(e):new iu(e,{allowProjection:t!==a.Fragment}));var rU=t.i(72328);function r_({label:t,options:e,activeOption:i,getCount:s,onSelect:n}){return(0,o.jsxs)("div",{className:t?"grid gap-2":void 0,children:[t?(0,o.jsx)("p",{className:"meta-label",children:t}):null,(0,o.jsx)("div",{className:"projects-filter-shell__chips",children:e.map(t=>{let e=t===i;return(0,o.jsxs)("button",{type:"button","aria-pressed":e,onClick:()=>n(t),className:`projects-filter-chip ${e?"projects-filter-chip--active":""}`,children:[(0,o.jsx)("span",{children:t}),(0,o.jsx)("span",{className:"projects-filter-chip__count",children:s(t)})]},t)})})]})}function r$({query:t,sortMode:e,sortOptions:i,onQueryChange:s,onSortModeChange:n}){return(0,o.jsxs)("div",{className:"grid gap-3 lg:grid-cols-[minmax(0,1fr)_200px]",children:[(0,o.jsxs)("label",{className:"projects-search",children:[(0,o.jsx)("span",{className:"meta-label",children:"Search"}),(0,o.jsx)("input",{type:"search",value:t,onChange:t=>s(t.target.value),placeholder:"Search by project, stack, category, or tags",className:"projects-search__input"})]}),(0,o.jsxs)("label",{className:"projects-search",children:[(0,o.jsx)("span",{className:"meta-label",children:"Sort"}
9),(0,o.jsx)("select",{value:e,onChange:t=>n(t.target.value),className:"projects-search__input",children:i.map(t=>(0,o.jsx)("option",{value:t.value,children:t.label},t.value))})]})]})}function rW({filteredCount:t,totalCount:e}){return(0,o.jsxs)("p",{className:"projects-browser__stats",role:"status","aria-live":"polite",children:[(0,o.jsx)("strong",{children:t})," of ",e," projects"]})}var rz=t.i(57688),rY=t.i(22016),rX=t.i(55340),rH=t.i(63939),rK=t.i(10723);function rq({project:t,variant:e}){let i=(0,rH.resolveProjectCardImage)(t),s=(0,rK.getPublicProjectTrack)(t),n=t.status??(t.privateRepo?"Private":"Case Study"),r=t.slug?`/projects/${t.slug}`:null,a="list"===e?(0,o.jsxs)("article",{className:"projects-catalog-item projects-catalog-item--list","data-project-reveal":!0,children:[(0,o.jsx)("span",{className:"projects-catalog-item__year",children:t.year??"—"}),(0,o.jsxs)("div",{className:"projects-catalog-item__title-wrap",children:[(0,o.jsx)("span",{className:"projects-catalog-item__track",children:s}),(0,o.jsx)("h3",{children:t.title})]}),(0,o.jsx)("p",{className:"projects-catalog-item__summary",children:t.shortSummary??t.summary}),(0,o.jsx)("span",{className:"projects-catalog-item__status",children:n}),(0,o.jsx)(rX.UiIcon,{name:"arrow-right",className:"projects-catalog-item__arrow"})]}):"related"===e?(0,o.jsxs)("article",{className:"projects-catalog-item projects-catalog-item--related","data-case-study-section":!0,children:[(0,o.jsx)("figure",{className:"projects-catalog-item__related-media",children:i?(0,o.jsx)(rz.default,{src:i,alt:`${t.title}
9 project visual`,fill:!0,sizes:"(max-width: 760px) 100vw, 33vw",className:"projects-catalog-item__image"}):(0,o.jsx)("span",{className:"projects-catalog-item__fallback","aria-hidden":"true",children:s})}),(0,o.jsxs)("div",{className:"projects-catalog-item__related-copy",children:[(0,o.jsxs)("p",{children:[t.year??"—"," ",(0,o.jsx)("span",{"aria-hidden":"true",children:"/"})," ",s]}),(0,o.jsx)("h3",{children:t.title}),(0,o.jsx)("span",{children:n}),(0,o.jsx)(rX.UiIcon,{name:"arrow-up-right",className:"projects-catalog-item__arrow"})]})]}):(0,o.jsx)("article",{className:"projects-catalog-item projects-catalog-item--grid","data-project-reveal":!0,children:(0,o.jsxs)("figure",{className:"projects-catalog-item__media",children:[(0,o.jsx)("div",{className:"projects-catalog-item__image-frame",children:i?(0,o.jsx)(rz.default,{src:i,alt:`${t.title} project visual`,fill:!0,sizes:"(max-width: 760px) 100vw, 50vw",className:"projects-catalog-item__image"}):(0,o.jsx)("span",{className:"projects-catalog-item__fallback","aria-hidden":"true",children:t.title})}),(0,o.jsxs)("figcaption",{className:"projects-catalog-item__copy",children:[(0,o.jsxs)("p",{className:"projects-catalog-item__meta",children:[t.year??"—"," ",(0,o.jsx)("span",{"aria-hidden":"true",children:"/"})," ",s]}),(0,o.jsx)("h3",{className:"sr-only",children:t.title}),(0,o.jsx)("span",{className:"projects-catalog-item__status",children:n}),(0,o.jsx)(rX.UiIcon,{name:"arrow-up-right",className:"projects-catalog-item__arrow"})]})]})});return r?(0,o.jsx)(rY.default,{href:r,className:"projects-catalog-item__link","aria-label":`Open ${t.title} case study`,children:a}):a}var rG=t.i(25440);let rZ=["All","Enact Business Solutions","AZM Labs","University / Personal Experiments"],rJ="All Tags",rQ=[{value:"featured",label:"Featured First"},{value:"newest",label:"Newest"},{value:"title",label:"A-Z"},{value:"track",label:"Track"}];function r0(t){return t.toLowerCase().trim()}function r1(t,e){return e===rJ||t.tags.some(t=>r0(t)===r0(e))}function r2(t,e){let i=r0(e);return!i||[t.title,t.summary,t.shortSummary??"",t.category,...t.stack,...t.tags].join(" ").toLowerCase().includes(i)}function r5({projects:t,defaultView:e="grid"}){let i=(0,rU.useReducedMotion)(),[s,n]=(0,a.useState)(e),[r,l]=(0,a.useState)("All"),[h,u]=(0,a.useState)(rJ),[c,d]=(0,a.useState)(""),[p,m]=(0,a.useState)("featured"),[f,y]=(0,a.useState)(!1),g=(0,a.useDeferredValue)(c),v=(0,a.useMemo)(()=>{let e={All:0,"Enact Business Solutions":0,"AZM Labs":0,"University / Personal Experiments":0};for(let i of t)r1(i,h)&&r2(i,g)&&(e.All+=1,e[(0,rK.getPublicProjectTrack)(i)]+=1);return e},[h,g,t]),x=(0,a.useMemo)(()=>t.filter(t=>"All"===r||(0,rK.getPublicProjectTrack)(t)===r),[r,t]),w=(0,a.useMemo)(()=>{let t=new Map;for(let e of x)if(r2(e,g))for(let i of e.tags)t.set(i,(t.get(i)??0)+1);return t},[g,x]),b=(0,a.useMemo)(()=>{let t=[...w.entries()].sort((t,e)=>e[1]!==t[1]?e[1]-t[1]:t[0].localeCompare(e[0])).slice(0,10).map(([t])=>t);return h===rJ||t.includes(h)?[rJ,...t]:[rJ,h,...t]},[h,w]),T=(0,a.useMemo)(()=>{let t=x.filter(t=>r1(t,h)).filter(t=>r2(t,g));return"title"===p?[...t].sort((t,e)=>t.title.localeCompare(e.title)):"newest"===p?[...t].sort((t,e)=>Number(e.year??0)-Number(t.year??0)||t.title.localeCompare(e.title)):"track"===p?[...t].sort((t,e)=>(0,rK.getPublicProjectTrack)(t).localeCompare((0,rK.getPublicProjectTrack)(e))||t.title.localeCompare(e.title)):[...t].sort((t,e)=>t.featured===e.featured?t.title.localeCompare(e.title):t.featured?-1:1)},[h,g,x,p]),S="All"!==r||h!==rJ||c.trim().length>0||"featured"!==p,P=()=>{(0,a.startTransition)(()=>{l("All"),u(rJ),d(""),m("featured")})};return(0,o.jsxs)("section",{id:"projects-library",className:"projects-browser","aria-labelledby":"projects-library-title",children:[(0,o.jsx)("h2",{id:"projects-library-title",className:"sr-only",children:"Project library"}),(0,o.jsxs)("header",{className:"projects-browser__toolbar",children:[(0,o.jsxs)("div",{className:"projects-browser__primary-controls",children:[(0,o.jsxs)("div",{className:"projects-browser__view-switch",role:"group","aria-label":"Project view",children:[(0,o.jsx)("button",{type:"button",className:"projects-browser__view-button","aria-label":"Grid view","aria-pressed":"grid"===s,onClick:()=>n("grid"),children:"Grid"}),(0,o.jsx)("button",{type:"button",className:"projects-browser__view-button","aria-label":"List view","aria-pressed":"list"===s,onClick:()=>n("list"),children:"List"})]}),(0,o.jsx)(rW,{filteredCount:T.length,totalCount:t.length}),(0,o.jsxs)("button",{type:"button",className:"projects-browser__refine-button","aria-expanded":f,"aria-controls":"projects-refinement",onClick:()=>y(t=>
9!t),children:[(0,o.jsx)("span",{children:f?"Close refine":"Refine"}),(0,o.jsx)(rX.UiIcon,{name:f?"arrow-up-right":"arrow-right"})]})]}),(0,o.jsx)(j,{initial:!1,children:f?(0,o.jsxs)(rO.div,{id:"projects-refinement",className:"projects-browser__refinement",initial:!i&&{opacity:0,y:-14},animate:{opacity:1,y:0},exit:i?void 0:{opacity:0,y:-10},transition:i?{duration:0}:{duration:.42,ease:[.22,1,.36,1]},children:[(0,o.jsx)("div",{className:"projects-browser__track-filter","aria-label":"Filter by work track",children:(0,o.jsx)(r_,{label:"Work tracks",options:rZ,activeOption:r,getCount:t=>v[t],onSelect:t=>(0,a.startTransition)(()=>l(t))})}),(0,o.jsx)(r_,{label:"Focus tags",options:b,activeOption:h,getCount:t=>t===rJ?x.filter(t=>r2(t,g)).length:w.get(t)??0,onSelect:t=>(0,a.startTransition)(()=>u(t))}),(0,o.jsx)(r$,{query:c,sortMode:p,sortOptions:rQ,onQueryChange:t=>(0,a.startTransition)(()=>d(t)),onSortModeChange:t=>(0,a.startTransition)(()=>m(t))})]}):null}),S?(0,o.jsxs)("div",{className:"projects-browser__active-controls",children:[(0,o.jsx)("span",{children:"Refined view active"}),(0,o.jsx)("button",{type:"button",onClick:P,className:"projects-filter-chip projects-filter-chip--clear",children:"Clear filters"})]}):null]}),T.length?(0,o.jsx)(rO.div,{layout:!i,className:`projects-browser__results projects-browser__results--${s}`,children:(0,o.jsx)(j,{mode:"popLayout",children:T.map(t=>(0,o.jsx)(rO.div,{layout:!i,initial:!i&&{opacity:0,y:16},animate:{opacity:1,y:0},exit:i?void 0:{opacity:0,y:-10},transition:i?{duration:0}:{duration:.28,ease:[.22,1,.36,1]},children:(0,o.jsx)(rq,{project:t,variant:s})},(0,rG.getProjectIdentityKey)(t)))})}):(0,o.jsxs)("article",{className:"projects-browser__empty",children:[(0,o.jsx)("p",{className:"meta-label",children:"No matching work"}),(0,o.jsx)("p",{children:"No projects match this view. Clear the current filters or broaden the search query."}),S?(0,o.jsx)("button",{type:"button",onClick:P,className:"projects-filter-chip projects-filter-chip--clear",children:"Reset view"}):null]})]})}t.s(["ProjectGrid",()=>r5,"ProjectsBrowser",()=>r5],28085)},88776,t=>{"use strict";var e=t.i(43476),i=t.i(71645),s=t.i(89970);function n({children:t}){let n=(0,i.useRef)(null);return(0,i.useLayoutEffect)(()=>{let t=n.current;if(!t)return;let e=s.default.matchMedia(),i=s.default.context(()=>{let i=t.querySelector('[data-projects-hero="art"]'),n=t.querySelector('[data-projects-hero="eyebrow"]'),r=t.querySelectorAll('[data-projects-hero="title-line"]'),o=t.querySelector('[data-projects-hero="intro"]'),a=t.querySelector('[data-projects-hero="meta"]'),l=t.querySelector('[data-projects-hero="browse"]');e.add("(prefers-reduced-motion: reduce)",()=>{s.default.set([i,n,r,o,a,l],{clearProps:"all",autoAlpha:1})}),e.add("(prefers-reduced-motion: no-preference)",()=>{let t=s.default.timeline({defaults:{ease:"power3.out"}});n&&t.fromTo(n,{y:10},{y:0,duration:.48,immediateRender:!1}),r.length&&t.fromTo(r,{y:18},{y:0,duration:1.02,stagger:.1,immediateRender:!1},.06),i&&t.fromTo(i,{x:26,scale:.96,transformOrigin:"70% 52%"},{x:0,scale:1,duration:1.28,immediateRender:!1},.12),o&&t.fromTo(o,{y:16},{y:0,duration:.58,immediateRender:!1},.46),a&&t.fromTo(a,{y:12},{y:0,duration:.54,immediateRender:!1},.56),l&&t.fromTo(l,{y:8},{y:0,duration:.48,immediateRender:!1},.64)})},t);return()=>{e.revert(),i.revert()}},[]),(0,e.jsx)("div",{ref:n,children:t})}t.s(["ProjectsMotionController",()=>n])}]);

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.