relawannusantara.org
Open in
urlscan Pro
2606:4700:3033::6815:ab7
Public Scan
Submitted URL: http://relawannusantara.org/_next/static/chunks/3922-5ef207aa595548fe.js
Effective URL: https://relawannusantara.org/_next/static/chunks/3922-5ef207aa595548fe.js
Submission: On November 08 via api from US — Scanned from US
Effective URL: https://relawannusantara.org/_next/static/chunks/3922-5ef207aa595548fe.js
Submission: On November 08 via api from US — Scanned from US
Form analysis
0 forms found in the DOMText Content
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3922],{8357:function(e,i,n){n.d(i,{w_:function(){return u}});var r=n(7294),s={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=r.createContext&&r.createContext(s),a=function(){return(a=Object.assign||function(e){for(var i,n=1,r=arguments.length;n<r;n++)for(var s in i=arguments[n])Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s]);return e}).apply(this,arguments)},l=function(e,i){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>i.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)0>i.indexOf(r[s])&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n};function u(e){return function(i){return r.createElement(h,a({attr:a({},e.attr)},i),function e(i){return i&&i.map(function(i,n){return r.createElement(i.tag,a({key:n},i.attr),e(i.child))})}(e.child))}}function h(e){var i=function(i){var n,s=e.attr,o=e.size,u=e.title,h=l(e,["attr","size","title"]),c=o||i.size||"1em";return i.className&&(n=i.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},i.attr,s,h,{className:n,style:a(a({color:e.color||i.color},i.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),u&&r.createElement("title",null,u),e.children)};return void 0!==o?r.createElement(o.Consumer,null,function(e){return i(e)}):i(s)}},5364:function(e,i,n){n.d(i,{p:function(){return s}});var r=n(7294);let s=(0,r.createContext)({})},240:function(e,i,n){n.d(i,{O:function(){return s}});var r=n(7294);let s=(0,r.createContext)(null)},7367:function(e,i,n){n.d(i,{w:function(){return r}});let r={delta:0,timestamp:0}},404:function(e,i,n){n.d(i,{qY:function(){return m},iW:function(){return f},Z_:function(){return p}});let r=1/60*1e3,s="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),o="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(s()),r);var a=n(7367);let l=!0,u=!1,h=!1,c=["read","update","preRender","render","postRender"],d=c.reduce((e,i)=>(e[i]=function(e){let i=[],n=[],r=0,s=!1,o=!1,a=new WeakSet,l={schedule:(e,o=!1,l=!1)=>{let u=l&&s,h=u?i:n;return o&&a.add(e),-1===h.indexOf(e)&&(h.push(e),u&&s&&(r=i.length)),e},cancel:e=>{let i=n.indexOf(e);-1!==i&&n.splice(i,1),a.delete(e)},process:u=>{if(s){o=!0;return}if(s=!0,[i,n]=[n,i],n.length=0,r=i.length)for(let n=0;n<r;n++){let r=i[n];r(u),a.has(r)&&(l.schedule(r),e())}s=!1,o&&(o=!1,l.process(u))}};return l}(()=>u=!0),e),{}),p=c.reduce((e,i)=>{let n=d[i];return e[i]=(e,i=!1,r=!1)=>(u||v(),n.schedule(e,i,r)),e},{}),m=c.reduce((e,i)=>(e[i]=d[i].cancel,e),{}),f=c.reduce((e,i)=>(e[i]=()=>d[i].process(a.w),e),{}),g=e=>d[e].process(a.w),y=e=>{u=!1,a.w.delta=l?r:Math.max(Math.min(e-a.w.timestamp,40),1),a.w.timestamp=e,h=!0,c.forEach(g),h=!1,u&&(l=!1,o(y))},v=()=>{u=!0,l=!0,h||o(y)}},4343:function(e,i,n){n.d(i,{E:function(){return rB}});var r,s=n(7294);let o=(0,s.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),a=(0,s.createContext)({});var l=n(240),u=n(8868);let h=(0,s.createContext)({strict:!1});function c(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function d(e){return"string"==typeof e||Array.isArray(e)}function p(e){return"object"==typeof e&&"function"==typeof e.start}let m=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],f=["initial",...m];function g(e){return p(e.animate)||f.some(i=>d(e[i]))}function y(e){return Boolean(g(e)||e.variants)}function v(e){return Array.isArray(e)?e.join(" "):e}let x={animation:["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],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"]},P={};for(let e in x)P[e]={isEnabled:i=>x[e].some(e=>!!i[e])};var b=n(1741),w=n(6681);let A={hasAnimatedSinceResize:!0,hasEverUpdated:!1},T=1;var V=n(5364);let S=(0,s.createContext)({}),E=Symbol.for("motionComponentSymbol"),C=["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 M(e){if("string"!=typeof e||e.includes("-"));else if(C.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let D={},k=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],L=new Set(k);function B(e,{layout:i,layoutId:n}){return L.has(e)||e.startsWith("origin")||(i||void 0!==n)&&(!!D[e]||"opacity"===e)}let R=e=>Boolean(e&&e.getVelocity),j={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},F=k.length,O=e=>i=>"string"==typeof i&&i.startsWith(e),I=O("--"),U=O("var(--"),N=(e,i)=>i&&"number"==typeof e?i.transform(e):e,$=(e,i,n)=>Math.min(Math.max(n,e),i),W={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},z={...W,transform:e=>$(0,1,e)},H={...W,default:1},Y=e=>Math.round(1e5*e)/1e5,Z=/(-)?([\d]*\.?[\d])+/g,q=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,_=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function G(e){return"string"==typeof e}let X=e=>({test:i=>G(i)&&i.endsWith(e)&&1===i.split(" ").length,parse:parseFloat,transform:i=>`${i}${e}`}),K=X("deg"),J=X("%"),Q=X("px"),tt=X("vh"),te=X("vw"),ti={...J,parse:e=>J.parse(e)/100,transform:e=>J.transform(100*e)},tn={...W,transform:Math.round},tr={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,radius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,size:Q,top:Q,right:Q,bottom:Q,left:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,rotate:K,rotateX:K,rotateY:K,rotateZ:K,scale:H,scaleX:H,scaleY:H,scaleZ:H,skew:K,skewX:K,skewY:K,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:z,originX:ti,originY:ti,originZ:Q,zIndex:tn,fillOpacity:z,strokeOpacity:z,numOctaves:tn};function ts(e,i,n,r){let{style:s,vars:o,transform:a,transformOrigin:l}=e,u=!1,h=!1,c=!0;for(let e in i){let n=i[e];if(I(e)){o[e]=n;continue}let r=tr[e],d=N(n,r);if(L.has(e)){if(u=!0,a[e]=d,!c)continue;n!==(r.default||0)&&(c=!1)}else e.startsWith("origin")?(h=!0,l[e]=d):s[e]=d}if(!i.transform&&(u||r?s.transform=function(e,{enableHardwareAcceleration:i=!0,allowTransformNone:n=!0},r,s){let o="";for(let i=0;i<F;i++){let n=k[i];if(void 0!==e[n]){let i=j[n]||n;o+=`${i}(${e[n]}) `}}return i&&!e.z&&(o+="translateZ(0)"),o=o.trim(),s?o=s(e,r?"":o):n&&r&&(o="none"),o}(e.transform,n,c,r):s.transform&&(s.transform="none")),h){let{originX:e="50%",originY:i="50%",originZ:n=0}=l;s.transformOrigin=`${e} ${i} ${n}`}}let to=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ta(e,i,n){for(let r in i)R(i[r])||B(r,n)||(e[r]=i[r])}function tl(e,i,n){let r={},o=function(e,i,n){let r=e.style||{},o={};return ta(o,r,e),Object.assign(o,function({transformTemplate:e},i,n){return(0,s.useMemo)(()=>{let r=to();return ts(r,i,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[i])}(e,i,n)),e.transformValues?e.transformValues(o):o}(e,i,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}let tu=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function th(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||tu.has(e)}let tc=e=>!th(e);try{(r=require("@emotion/is-prop-valid").default)&&(tc=e=>e.startsWith("on")?!th(e):r(e))}catch(e){}function td(e,i,n){return"string"==typeof e?e:Q.transform(i+n*e)}let tp={offset:"stroke-dashoffset",array:"stroke-dasharray"},tm={offset:"strokeDashoffset",array:"strokeDasharray"};function tf(e,{attrX:i,attrY:n,originX:r,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,c,d){if(ts(e,u,h,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:p,style:m,dimensions:f}=e;p.transform&&(f&&(m.transform=p.transform),delete p.transform),f&&(void 0!==r||void 0!==s||m.transform)&&(m.transformOrigin=function(e,i,n){let r=td(i,e.x,e.width),s=td(n,e.y,e.height);return`${r} ${s}`}(f,void 0!==r?r:.5,void 0!==s?s:.5)),void 0!==i&&(p.x=i),void 0!==n&&(p.y=n),void 0!==o&&function(e,i,n=1,r=0,s=!0){e.pathLength=1;let o=s?tp:tm;e[o.offset]=Q.transform(-r);let a=Q.transform(i),l=Q.transform(n);e[o.array]=`${a} ${l}`}(p,o,a,l,!1)}let tg=()=>({...to(),attrs:{}}),ty=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tv(e,i,n,r){let o=(0,s.useMemo)(()=>{let n=tg();return tf(n,i,{enableHardwareAcceleration:!1},ty(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[i]);if(e.style){let i={};ta(i,e.style,e),o.style={...i,...o.style}}return o}let tx=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function tP(e,{style:i,vars:n},r,s){for(let o in Object.assign(e.style,i,s&&s.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}let tb=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function tw(e,i,n,r){for(let n in tP(e,i,void 0,r),i.attrs)e.setAttribute(tb.has(n)?n:tx(n),i.attrs[n])}function tA(e,i){let{style:n}=e,r={};for(let s in n)(R(n[s])||i.style&&R(i.style[s])||B(s,e))&&(r[s]=n[s]);return r}function tT(e,i){let n=tA(e,i);for(let r in e)if(R(e[r])||R(i[r])){let i="x"===r||"y"===r?"attr"+r.toUpperCase():r;n[i]=e[r]}return n}function tV(e,i,n,r={},s={}){return"function"==typeof i&&(i=i(void 0!==n?n:e.custom,r,s)),"string"==typeof i&&(i=e.variants&&e.variants[i]),"function"==typeof i&&(i=i(void 0!==n?n:e.custom,r,s)),i}let tS=e=>Array.isArray(e),tE=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),tC=e=>tS(e)?e[e.length-1]||0:e;function tM(e){let i=R(e)?e.get():e;return tE(i)?i.toValue():i}let tD=e=>(i,n)=>{let r=(0,s.useContext)(a),o=(0,s.useContext)(l.O),u=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:i,onMount:n},r,s,o){let a={latestValues:function(e,i,n,r){let s={},o=r(e,{});for(let e in o)s[e]=tM(o[e]);let{initial:a,animate:l}=e,u=g(e),h=y(e);i&&h&&!u&&!1!==e.inherit&&(void 0===a&&(a=i.initial),void 0===l&&(l=i.animate));let c=!!n&&!1===n.initial;c=c||!1===a;let d=c?l:a;if(d&&"boolean"!=typeof d&&!p(d)){let i=Array.isArray(d)?d:[d];i.forEach(i=>{let n=tV(e,i);if(!n)return;let{transitionEnd:r,transition:o,...a}=n;for(let e in a){let i=a[e];if(Array.isArray(i)){let e=c?i.length-1:0;i=i[e]}null!==i&&(s[e]=i)}for(let e in r)s[e]=r[e]})}return s}(r,s,o,e),renderState:i()};return n&&(a.mount=e=>n(r,e,a)),a})(e,i,r,o);return n?u():(0,w.h)(u)},tk={useVisualState:tD({scrapeMotionValuesFromProps:tT,createRenderState:tg,onMount:(e,i,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof i.getBBox?i.getBBox():i.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}tf(n,r,{enableHardwareAcceleration:!1},ty(i.tagName),e.transformTemplate),tw(i,n)}})},tL={useVisualState:tD({scrapeMotionValuesFromProps:tA,createRenderState:to})};function tB(e,i,n,r={passive:!0}){return e.addEventListener(i,n,r),()=>e.removeEventListener(i,n)}let tR=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function tj(e,i="page"){return{point:{x:e[i+"X"],y:e[i+"Y"]}}}let tF=e=>i=>tR(i)&&e(i,tj(i));function tO(e,i,n,r){return tB(e,i,tF(n),r)}let tI=(e,i)=>n=>i(e(n)),tU=(...e)=>e.reduce(tI);function tN(e){let i=null;return()=>{let n=()=>{i=null};return null===i&&(i=e,n)}}let t$=tN("dragHorizontal"),tW=tN("dragVertical");function tz(e){let i=!1;if("y"===e)i=tW();else if("x"===e)i=t$();else{let e=t$(),n=tW();e&&n?i=()=>{e(),n()}:(e&&e(),n&&n())}return i}function tH(){let e=tz(!0);return!e||(e(),!1)}class tY{constructor(e){this.isMounted=!1,this.node=e}update(){}}function tZ(e,i){let n="onHover"+(i?"Start":"End"),r=(r,s)=>{if("touch"===r.type||tH())return;let o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",i),o[n]&&o[n](r,s)};return tO(e.current,"pointer"+(i?"enter":"leave"),r,{passive:!e.getProps()[n]})}let tq=(e,i)=>!!i&&(e===i||tq(e,i.parentElement)),t_=e=>e;function tG(e,i){if(!i)return;let n=new PointerEvent("pointer"+e);i(n,tj(n))}let tX=new WeakMap,tK=new WeakMap,tJ=e=>{let i=tX.get(e.target);i&&i(e)},tQ=e=>{e.forEach(tJ)},t0={some:0,all:1};function t1(e,i){if(!Array.isArray(i))return!1;let n=i.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(i[r]!==e[r])return!1;return!0}let t5=e=>/^\-?\d*\.?\d+$/.test(e),t2=e=>/^0[^.\s]+$/.test(e);var t3=n(7367),t4=n(404);function t9(e,i){-1===e.indexOf(i)&&e.push(i)}function t6(e,i){let n=e.indexOf(i);n>-1&&e.splice(n,1)}class t7{constructor(){this.subscriptions=[]}add(e){return t9(this.subscriptions,e),()=>t6(this.subscriptions,e)}notify(e,i,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,i,n);else for(let s=0;s<r;s++){let r=this.subscriptions[s];r&&r(e,i,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function t8(e,i){return i?e*(1e3/i):0}let et=e=>!isNaN(parseFloat(e));class ee{constructor(e,i={}){this.version="9.1.7",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,i=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=t3.w;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,t4.Z_.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>t4.Z_.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=et(this.current),this.owner=i.owner}onChange(e){return this.on("change",e)}on(e,i){this.events[e]||(this.events[e]=new t7);let n=this.events[e].add(i);return"change"===e?()=>{n(),t4.Z_.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,i){this.passiveEffect=e,this.stopPassiveEffect=i}set(e,i=!0){i&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,i)}setWithVelocity(e,i,n){this.set(i),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?t8(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=e(i)||null,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(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ei(e,i){return new ee(e,i)}let en=(e,i)=>n=>Boolean(G(n)&&_.test(n)&&n.startsWith(e)||i&&Object.prototype.hasOwnProperty.call(n,i)),er=(e,i,n)=>r=>{if(!G(r))return r;let[s,o,a,l]=r.match(Z);return{[e]:parseFloat(s),[i]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}},es=e=>$(0,255,e),eo={...W,transform:e=>Math.round(es(e))},ea={test:en("rgb","red"),parse:er("red","green","blue"),transform:({red:e,green:i,blue:n,alpha:r=1})=>"rgba("+eo.transform(e)+", "+eo.transform(i)+", "+eo.transform(n)+", "+Y(z.transform(r))+")"},el={test:en("#"),parse:function(e){let i="",n="",r="",s="";return e.length>5?(i=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(i=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),i+=i,n+=n,r+=r,s+=s),{red:parseInt(i,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}},transform:ea.transform},eu={test:en("hsl","hue"),parse:er("hue","saturation","lightness"),transform:({hue:e,saturation:i,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+J.transform(Y(i))+", "+J.transform(Y(n))+", "+Y(z.transform(r))+")"},eh={test:e=>ea.test(e)||el.test(e)||eu.test(e),parse:e=>ea.test(e)?ea.parse(e):eu.test(e)?eu.parse(e):el.parse(e),transform:e=>G(e)?e:e.hasOwnProperty("red")?ea.transform(e):eu.transform(e)},ec="${c}",ed="${n}";function ep(e){"number"==typeof e&&(e=`${e}`);let i=[],n=0,r=0,s=e.match(q);s&&(n=s.length,e=e.replace(q,ec),i.push(...s.map(eh.parse)));let o=e.match(Z);return o&&(r=o.length,e=e.replace(Z,ed),i.push(...o.map(W.parse))),{values:i,numColors:n,numNumbers:r,tokenised:e}}function em(e){return ep(e).values}function ef(e){let{values:i,numColors:n,tokenised:r}=ep(e),s=i.length;return e=>{let i=r;for(let r=0;r<s;r++)i=i.replace(r<n?ec:ed,r<n?eh.transform(e[r]):Y(e[r]));return i}}let eg=e=>"number"==typeof e?0:e,ey={test:function(e){var i,n;return isNaN(e)&&G(e)&&((null===(i=e.match(Z))||void 0===i?void 0:i.length)||0)+((null===(n=e.match(q))||void 0===n?void 0:n.length)||0)>0},parse:em,createTransformer:ef,getAnimatableNone:function(e){let i=em(e),n=ef(e);return n(i.map(eg))}},ev=new Set(["brightness","contrast","saturate","opacity"]);function ex(e){let[i,n]=e.slice(0,-1).split("(");if("drop-shadow"===i)return e;let[r]=n.match(Z)||[];if(!r)return e;let s=n.replace(r,""),o=ev.has(i)?1:0;return r!==n&&(o*=100),i+"("+o+s+")"}let eP=/([a-z-]*)\(.*?\)/g,eb={...ey,getAnimatableNone:e=>{let i=e.match(eP);return i?i.map(ex).join(" "):e}},ew={...tr,color:eh,backgroundColor:eh,outlineColor:eh,fill:eh,stroke:eh,borderColor:eh,borderTopColor:eh,borderRightColor:eh,borderBottomColor:eh,borderLeftColor:eh,filter:eb,WebkitFilter:eb},eA=e=>ew[e];function eT(e,i){let n=eA(e);return n!==eb&&(n=ey),n.getAnimatableNone?n.getAnimatableNone(i):void 0}let eV=e=>i=>i.test(e),eS=[W,Q,J,K,te,tt,{test:e=>"auto"===e,parse:e=>e}],eE=e=>eS.find(eV(e)),eC=[...eS,eh,ey],eM=e=>eC.find(eV(e));function eD(e,i,n){let r=e.getProps();return tV(r,i,void 0!==n?n:r.custom,function(e){let i={};return e.values.forEach((e,n)=>i[n]=e.get()),i}(e),function(e){let i={};return e.values.forEach((e,n)=>i[n]=e.getVelocity()),i}(e))}function ek(e){return Boolean(R(e)&&e.add)}let eL="data-"+tx("framerAppearId"),eB=e=>1e3*e,eR={current:!1},ej=e=>i=>i<=.5?e(2*i)/2:(2-e(2*(1-i)))/2,eF=e=>i=>1-e(1-i),eO=e=>e*e,eI=eF(eO),eU=ej(eO),eN=(e,i,n)=>-n*e+n*i+e;function e$(e,i,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(i-e)*6*n:n<.5?i:n<2/3?e+(i-e)*(2/3-n)*6:e}let eW=(e,i,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(i*i-r)+r))},ez=[el,ea,eu],eH=e=>ez.find(i=>i.test(e));function eY(e){let i=eH(e);t_(Boolean(i),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=i.parse(e);return i===eu&&(n=function({hue:e,saturation:i,lightness:n,alpha:r}){e/=360,n/=100;let s=0,o=0,a=0;if(i/=100){let r=n<.5?n*(1+i):n+i-n*i,l=2*n-r;s=e$(l,r,e+1/3),o=e$(l,r,e),a=e$(l,r,e-1/3)}else s=o=a=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(n)),n}let eZ=(e,i)=>{let n=eY(e),r=eY(i),s={...n};return e=>(s.red=eW(n.red,r.red,e),s.green=eW(n.green,r.green,e),s.blue=eW(n.blue,r.blue,e),s.alpha=eN(n.alpha,r.alpha,e),ea.transform(s))};function eq(e,i){return"number"==typeof e?n=>eN(e,i,n):eh.test(e)?eZ(e,i):eX(e,i)}let e_=(e,i)=>{let n=[...e],r=n.length,s=e.map((e,n)=>eq(e,i[n]));return e=>{for(let i=0;i<r;i++)n[i]=s[i](e);return n}},eG=(e,i)=>{let n={...e,...i},r={};for(let s in n)void 0!==e[s]&&void 0!==i[s]&&(r[s]=eq(e[s],i[s]));return e=>{for(let i in r)n[i]=r[i](e);return n}},eX=(e,i)=>{let n=ey.createTransformer(i),r=ep(e),s=ep(i),o=r.numColors===s.numColors&&r.numNumbers>=s.numNumbers;return o?tU(e_(r.values,s.values),n):(t_(!0,`Complex values '${e}' and '${i}' 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.`),n=>`${n>0?i:e}`)},eK=(e,i,n)=>{let r=i-e;return 0===r?1:(n-e)/r},eJ=(e,i)=>n=>eN(e,i,n);function eQ(e,i,{clamp:n=!0,ease:r,mixer:s}={}){let o=e.length;t_(o===i.length,"Both input and output ranges must be the same length"),t_(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[...e].reverse(),i=[...i].reverse());let a=function(e,i,n){let r=[],s=n||function(e){if("number"==typeof e);else if("string"==typeof e)return eh.test(e)?eZ:eX;else if(Array.isArray(e))return e_;else if("object"==typeof e)return eG;return eJ}(e[0]),o=e.length-1;for(let n=0;n<o;n++){let o=s(e[n],e[n+1]);if(i){let e=Array.isArray(i)?i[n]:i;o=tU(e,o)}r.push(o)}return r}(i,r,s),l=a.length,u=i=>{let n=0;if(l>1)for(;n<e.length-2&&!(i<e[n+1]);n++);let r=eK(e[n],e[n+1],i);return a[n](r)};return n?i=>u($(e[0],e[o-1],i)):u}let e0=(e,i,n)=>(((1-3*n+3*i)*e+(3*n-6*i))*e+3*i)*e;function e1(e,i,n,r){if(e===i&&n===r)return t_;let s=i=>(function(e,i,n,r,s){let o,a;let l=0;do(o=e0(a=i+(n-i)/2,r,s)-e)>0?n=a:i=a;while(Math.abs(o)>1e-7&&++l<12);return a})(i,0,1,e,n);return e=>0===e||1===e?e:e0(s(e),i,r)}let e5=e=>1-Math.sin(Math.acos(e)),e2=eF(e5),e3=ej(e2),e4=e1(.33,1.53,.69,.99),e9=eF(e4),e6=ej(e9),e7=e=>(e*=2)<1?.5*e9(e):.5*(2-Math.pow(2,-10*(e-1))),e8={linear:t_,easeIn:eO,easeInOut:eU,easeOut:eI,circIn:e5,circInOut:e3,circOut:e2,backIn:e9,backInOut:e6,backOut:e4,anticipate:e7},it=e=>{if(Array.isArray(e)){t_(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[i,n,r,s]=e;return e1(i,n,r,s)}return"string"==typeof e?(t_(void 0!==e8[e],`Invalid easing type '${e}'`),e8[e]):e},ie=e=>Array.isArray(e)&&"number"!=typeof e[0];function ii({keyframes:e,ease:i=eU,times:n,duration:r=300}){e=[...e];let s=ie(i)?i.map(it):it(i),o={done:!1,value:e[0]},a=(n&&n.length===e.length?n:function(e){let i=[0];return function(e,i){let n=e[e.length-1];for(let r=1;r<=i;r++){let s=eK(0,i,r);e.push(eN(n,1,s))}}(i,e.length-1),i}(e)).map(e=>e*r);function l(){var i;return eQ(a,e,{ease:Array.isArray(s)?s:(i=e).map(()=>s||eU).splice(0,i.length-1)})}let u=l();return{next:e=>(o.value=u(e),o.done=e>=r,o),flipTarget:()=>{e.reverse(),u=l()}}}function ir(e,i){return e*Math.sqrt(1-i*i)}let is=["duration","bounce"],io=["stiffness","damping","mass"];function ia(e,i){return i.some(i=>void 0!==e[i])}function il({keyframes:e,restDelta:i,restSpeed:n,...r}){let s=e[0],o=e[e.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:h,velocity:c,duration:d,isResolvedFromDuration:p}=function(e){let i={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ia(e,io)&&ia(e,is)){let n=function({duration:e=800,bounce:i=.25,velocity:n=0,mass:r=1}){let s,o;t_(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-i;a=$(.05,1,a),e=$(.01,10,e/1e3),a<1?(s=i=>{let r=i*a,s=r*e,o=ir(i,a);return .001-(r-n)/o*Math.exp(-s)},o=i=>{let r=i*a,o=r*e,l=Math.pow(a,2)*Math.pow(i,2)*e,u=ir(Math.pow(i,2),a),h=-s(i)+.001>0?-1:1;return h*((o*n+n-l)*Math.exp(-o))/u}):(s=i=>{let r=Math.exp(-i*e),s=(i-n)*e+1;return -.001+r*s},o=i=>{let r=Math.exp(-i*e),s=(n-i)*(e*e);return r*s});let l=5/e,u=function(e,i,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/i(r);return r}(s,o,l);if(e*=1e3,isNaN(u))return{stiffness:100,damping:10,duration:e};{let i=Math.pow(u,2)*r;return{stiffness:i,damping:2*a*Math.sqrt(r*i),duration:e}}}(e);(i={...i,...n,velocity:0,mass:1}).isResolvedFromDuration=!0}return i}(r),m=iu,f=c?-(c/1e3):0,g=u/(2*Math.sqrt(l*h));function y(){let e=o-s,r=Math.sqrt(l/h)/1e3,a=5>Math.abs(e);if(n||(n=a?.01:2),i||(i=a?.005:.5),g<1){let i=ir(r,g);m=n=>o-Math.exp(-g*r*n)*((f+g*r*e)/i*Math.sin(i*n)+e*Math.cos(i*n))}else if(1===g)m=i=>o-Math.exp(-r*i)*(e+(f+r*e)*i);else{let i=r*Math.sqrt(g*g-1);m=n=>{let s=Math.min(i*n,300);return o-Math.exp(-g*r*n)*((f+g*r*e)*Math.sinh(s)+i*e*Math.cosh(s))/i}}}return y(),{next:e=>{let r=m(e);if(p)a.done=e>=d;else{let s=f;if(0!==e){if(g<1){let i=Math.max(0,e-5);s=t8(r-m(i),e-i)}else s=0}let l=Math.abs(s)<=n,u=Math.abs(o-r)<=i;a.done=l&&u}return a.value=a.done?o:r,a},flipTarget:()=>{f=-f,[s,o]=[o,s],y()}}}il.needsInterpolation=(e,i)=>"string"==typeof e||"string"==typeof i;let iu=e=>0,ih={decay:function({keyframes:e=[0],velocity:i=0,power:n=.8,timeConstant:r=350,restDelta:s=.5,modifyTarget:o}){let a=e[0],l={done:!1,value:a},u=n*i,h=a+u,c=void 0===o?h:o(h);return c!==h&&(u=c-a),{next:e=>{let i=-u*Math.exp(-e/r);return l.done=!(i>s||i<-s),l.value=l.done?c:c+i,l},flipTarget:()=>{}}},keyframes:ii,tween:ii,spring:il};function ic(e,i,n=0){return e-i-n}let id=e=>{let i=({delta:i})=>e(i);return{start:()=>t4.Z_.update(i,!0),stop:()=>t4.qY.update(i)}};function ip({duration:e,driver:i=id,elapsed:n=0,repeat:r=0,repeatType:s="loop",repeatDelay:o=0,keyframes:a,autoplay:l=!0,onPlay:u,onStop:h,onComplete:c,onRepeat:d,onUpdate:p,type:m="keyframes",...f}){let g,y;let v=n,x=0,P=e,b=!1,w=!0,A=ih[a.length>2?"keyframes":m]||ii,T=a[0],V=a[a.length-1],S={done:!1,value:T},{needsInterpolation:E}=A;E&&E(T,V)&&(y=eQ([0,100],[T,V],{clamp:!1}),a=[0,100]);let C=A({...f,duration:e,keyframes:a});function M(e){if(w||(e=-e),n+=e,b||(S=C.next(Math.max(0,n)),y&&(S.value=y(S.value)),b=w?S.done:n<=0),p&&p(S.value),b){if(0===x&&(P=void 0!==P?P:n),x<r){var i,a;i=n,a=P,(w?i>=a+o:i<=-o)&&(x++,"reverse"===s?n=function(e,i=0,n=0,r=!0){return r?ic(i+-e,i,n):i-(e-i)+n}(n,P,o,w=x%2==0):(n=ic(n,P,o),"mirror"===s&&C.flipTarget()),b=!1,d&&d())}else g&&g.stop(),c&&c()}}return l&&(u&&u(),(g=i(M)).start()),{stop:()=>{h&&h(),g&&g.stop()},set currentTime(t){n=v,M(t)},sample:i=>{n=v;let r=e&&"number"==typeof e?Math.max(.5*e,50):50,s=0;for(M(0);s<=i;){let e=i-s;M(Math.min(e,r)),s+=r}return S}}}let im=([e,i,n,r])=>`cubic-bezier(${e}, ${i}, ${n}, ${r})`,ig={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:im([0,.65,.55,1]),circOut:im([.55,0,1,.45]),backIn:im([.31,.01,.66,-.59]),backOut:im([.33,1.53,.69,.99])},iy={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},iv={},ix={};for(let e in iy)ix[e]=()=>(void 0===iv[e]&&(iv[e]=iy[e]()),iv[e]);let iP=new Set(["opacity","clipPath","filter","transform"]);function ib(e,i){let n=performance.now(),r=({timestamp:s})=>{let o=s-n;o>=i&&(t4.qY.read(r),e(o-i))};return t4.Z_.read(r,!0),()=>t4.qY.read(r)}let iw={type:"spring",stiffness:500,damping:25,restSpeed:10},iA=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),iT={type:"keyframes",duration:.8},iV={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iS=(e,{keyframes:i})=>i.length>2?iT:L.has(e)?e.startsWith("scale")?iA(i[1]):iw:iV,iE=(e,i)=>"zIndex"!==e&&!!("number"==typeof i||Array.isArray(i)||"string"==typeof i&&ey.test(i)&&!i.startsWith("url("));function iC(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function iM(e){return"number"==typeof e?0:eT("",e)}function iD(e,i){return e[i]||e.default||e}let ik=(e,i,n,r={})=>s=>{let o=iD(r,e)||{},a=o.delay||r.delay||0,{elapsed:l=0}=r;l-=eB(a);let u=function(e,i,n,r){let s=iE(i,n),o=void 0!==r.from?r.from:e.get();return("none"===o&&s&&"string"==typeof n?o=eT(i,n):iC(o)&&"string"==typeof n?o=iM(n):!Array.isArray(n)&&iC(n)&&"string"==typeof o&&(n=iM(o)),Array.isArray(n))?(null===n[0]&&(n[0]=o),n):[o,n]}(i,e,n,o),h=u[0],c=u[u.length-1],d=iE(e,h),p=iE(e,c);t_(d===p,`You are trying to animate ${e} from "${h}" to "${c}". ${h} is not an animatable value - to enable this animation set ${h} to a value animatable to ${c} via the \`style\` property.`);let m={keyframes:u,velocity:i.getVelocity(),...o,elapsed:l,onUpdate:e=>{i.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{s(),o.onComplete&&o.onComplete()}};if(!d||!p||eR.current||!1===o.type)return function({keyframes:e,elapsed:i,onUpdate:n,onComplete:r}){let s=()=>{n&&n(e[e.length-1]),r&&r()};return i?{stop:ib(s,-i)}:s()}(m);if("inertia"===o.type)return function({keyframes:e,velocity:i=0,min:n,max:r,power:s=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:l=10,restDelta:u=1,modifyTarget:h,driver:c,onUpdate:d,onComplete:p,onStop:m}){let f;let g=e[0];function y(e){return void 0!==n&&e<n||void 0!==r&&e>r}function v(e){return void 0===n?r:void 0===r?n:Math.abs(n-e)<Math.abs(r-e)?n:r}function x(e){f&&f.stop(),f=ip({keyframes:[0,1],velocity:0,...e,driver:c,onUpdate:i=>{d&&d(i),e.onUpdate&&e.onUpdate(i)},onComplete:p,onStop:m})}function P(e){x({type:"spring",stiffness:a,damping:l,restDelta:u,...e})}if(y(g))P({velocity:i,keyframes:[g,v(g)]});else{let e,r,a=s*i+g;void 0!==h&&(a=h(a));let l=v(a),c=l===n?-1:1,d=n=>{e=r,r=n,i=t8(n-e,t3.w.delta),(1===c&&n>l||-1===c&&n<l)&&P({keyframes:[n,l],velocity:i})};x({type:"decay",keyframes:[g,0],velocity:i,timeConstant:o,power:s,restDelta:u,modifyTarget:h,onUpdate:y(a)?d:void 0})}return{stop:()=>f&&f.stop()}}(m);if(!function({when:e,delay:i,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:a,repeatDelay:l,from:u,elapsed:h,...c}){return!!Object.keys(c).length}(o)&&(m={...m,...iS(e,m)}),m.duration&&(m.duration=eB(m.duration)),m.repeatDelay&&(m.repeatDelay=eB(m.repeatDelay)),i.owner&&i.owner.current instanceof HTMLElement&&!i.owner.getProps().onUpdate){let n=function(e,i,{onUpdate:n,onComplete:r,...s}){var o;let a=ix.waapi()&&iP.has(i)&&!s.repeatDelay&&"mirror"!==s.repeatType&&0!==s.damping;if(!a)return!1;let{keyframes:l,duration:u=300,elapsed:h=0,ease:c}=s;if("spring"===s.type||!(!(o=s.ease)||Array.isArray(o)||"string"==typeof o&&ig[o])){if(s.repeat===1/0)return;let e=ip({...s,elapsed:0}),i={done:!1,value:l[0]},n=[],r=0;for(;!i.done&&r<2e4;)n.push((i=e.sample(r)).value),r+=10;l=n,u=r-10,c="linear"}let d=function(e,i,n,{delay:r=0,duration:s,repeat:o=0,repeatType:a="loop",ease:l,times:u}={}){return e.animate({[i]:n,offset:u},{delay:r,duration:s,easing:function(e){if(e)return Array.isArray(e)?im(e):ig[e]}(l),fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,i,l,{...s,delay:-h,duration:u,ease:c});return d.onfinish=()=>{e.set(function(e,{repeat:i,repeatType:n="loop"}){let r=i&&"loop"!==n&&i%2==1?0:e.length-1;return e[r]}(l,s)),t4.Z_.update(()=>d.cancel()),r&&r()},{get currentTime(){return d.currentTime||0},set currentTime(t){d.currentTime=t},stop:()=>{let{currentTime:i}=d;if(i){let n=ip({...s,autoplay:!1});e.setWithVelocity(n.sample(i-10).value,n.sample(i).value,10)}t4.Z_.update(()=>d.cancel())}}}(i,e,m);if(n)return n}return ip(m)};function iL(e,i,n={}){let r=eD(e,i,n.custom),{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);let o=r?()=>iB(e,r,n):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:l}=s;return function(e,i,n=0,r=0,s=1,o){let a=[],l=(e.variantChildren.size-1)*r,u=1===s?(e=0)=>e*r:(e=0)=>l-e*r;return Array.from(e.variantChildren).sort(iR).forEach((e,r)=>{e.notify("AnimationStart",i),a.push(iL(e,i,{...o,delay:n+u(r)}).then(()=>e.notify("AnimationComplete",i)))}),Promise.all(a)}(e,i,o+r,a,l,n)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(n.delay)]);{let[e,i]="beforeChildren"===l?[o,a]:[a,o];return e().then(i)}}function iB(e,i,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=e.makeTargetAnimatable(i),u=e.getValue("willChange");r&&(o=r);let h=[],c=s&&e.animationState&&e.animationState.getState()[s];for(let i in l){let r=e.getValue(i),s=l[i];if(!r||void 0===s||c&&function({protectedKeys:e,needsAnimating:i},n){let r=e.hasOwnProperty(n)&&!0!==i[n];return i[n]=!1,r}(c,i))continue;let a={delay:n,elapsed:0,...o};if(window.HandoffAppearAnimations&&!r.hasAnimated){let n=e.getProps()[eL];n&&(a.elapsed=window.HandoffAppearAnimations(n,i,r,t4.Z_))}let d=r.start(ik(i,r,s,e.shouldReduceMotion&&L.has(i)?{type:!1}:a));ek(u)&&(u.add(i),d=d.then(()=>u.remove(i))),h.push(d)}return Promise.all(h).then(()=>{a&&function(e,i){let n=eD(e,i),{transitionEnd:r={},transition:s={},...o}=n?e.makeTargetAnimatable(n,!1):{};for(let i in o={...o,...r}){var a;let n=tC(o[i]);a=i,e.hasValue(a)?e.getValue(a).set(n):e.addValue(a,ei(n))}}(e,a)})}function iR(e,i){return e.sortNodePosition(i)}let ij=[...m].reverse(),iF=m.length;function iO(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let iI=0,iU=(e,i)=>Math.abs(e-i);class iN{constructor(e,i,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=iz(this.lastMoveEventInfo,this.history),i=null!==this.startEvent,n=function(e,i){let n=iU(e.x,i.x),r=iU(e.y,i.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!i&&!n)return;let{point:r}=e,{timestamp:s}=t3.w;this.history.push({...r,timestamp:s});let{onStart:o,onMove:a}=this.handlers;i||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,i)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=i$(i,this.transformPagePoint),t4.Z_.update(this.updatePoint,!0)},this.handlePointerUp=(e,i)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let{onEnd:n,onSessionEnd:r}=this.handlers,s=iz("pointercancel"===e.type?this.lastMoveEventInfo:i$(i,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,s),r&&r(e,s)},!tR(e))return;this.handlers=i,this.transformPagePoint=n;let r=tj(e),s=i$(r,this.transformPagePoint),{point:o}=s,{timestamp:a}=t3.w;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=i;l&&l(e,iz(s,this.history)),this.removeListeners=tU(tO(window,"pointermove",this.handlePointerMove),tO(window,"pointerup",this.handlePointerUp),tO(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),t4.qY.update(this.updatePoint)}}function i$(e,i){return i?{point:i(e.point)}:e}function iW(e,i){return{x:e.x-i.x,y:e.y-i.y}}function iz({point:e},i){return{point:e,delta:iW(e,iH(i)),offset:iW(e,i[0]),velocity:function(e,i){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,s=iH(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>eB(.1)));)n--;if(!r)return{x:0,y:0};let o=(s.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(s.x-r.x)/o,y:(s.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(i,0)}}function iH(e){return e[e.length-1]}function iY(e){return e.max-e.min}function iZ(e,i=0,n=.01){return Math.abs(e-i)<=n}function iq(e,i,n,r=.5){e.origin=r,e.originPoint=eN(i.min,i.max,e.origin),e.scale=iY(n)/iY(i),(iZ(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=eN(n.min,n.max,e.origin)-e.originPoint,(iZ(e.translate)||isNaN(e.translate))&&(e.translate=0)}function i_(e,i,n,r){iq(e.x,i.x,n.x,r?r.originX:void 0),iq(e.y,i.y,n.y,r?r.originY:void 0)}function iG(e,i,n){e.min=n.min+i.min,e.max=e.min+iY(i)}function iX(e,i,n){e.min=i.min-n.min,e.max=e.min+iY(i)}function iK(e,i,n){iX(e.x,i.x,n.x),iX(e.y,i.y,n.y)}function iJ(e,i,n){return{min:void 0!==i?e.min+i:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function iQ(e,i){let n=i.min-e.min,r=i.max-e.max;return i.max-i.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function i0(e,i,n){return{min:i1(e,i),max:i1(e,n)}}function i1(e,i){return"number"==typeof e?e:e[i]||0}let i5=()=>({translate:0,scale:1,origin:0,originPoint:0}),i2=()=>({x:i5(),y:i5()}),i3=()=>({min:0,max:0}),i4=()=>({x:i3(),y:i3()});function i9(e){return[e("x"),e("y")]}function i6({top:e,left:i,right:n,bottom:r}){return{x:{min:i,max:n},y:{min:e,max:r}}}function i7(e){return void 0===e||1===e}function i8({scale:e,scaleX:i,scaleY:n}){return!i7(e)||!i7(i)||!i7(n)}function nt(e){return i8(e)||ne(e)||e.z||e.rotate||e.rotateX||e.rotateY}function ne(e){var i,n;return(i=e.x)&&"0%"!==i||(n=e.y)&&"0%"!==n}function ni(e,i,n,r,s){return void 0!==s&&(e=r+s*(e-r)),r+n*(e-r)+i}function nn(e,i=0,n=1,r,s){e.min=ni(e.min,i,n,r,s),e.max=ni(e.max,i,n,r,s)}function nr(e,{x:i,y:n}){nn(e.x,i.translate,i.scale,i.originPoint),nn(e.y,n.translate,n.scale,n.originPoint)}function ns(e){return Number.isInteger(e)?e:e>1.0000000000001||e<.999999999999?e:1}function no(e,i){e.min=e.min+i,e.max=e.max+i}function na(e,i,[n,r,s]){let o=void 0!==i[s]?i[s]:.5,a=eN(e.min,e.max,o);nn(e,i[n],i[r],a,i.scale)}let nl=["x","scaleX","originX"],nu=["y","scaleY","originY"];function nh(e,i){na(e.x,i,nl),na(e.y,i,nu)}function nc(e,i){return i6(function(e,i){if(!i)return e;let n=i({x:e.left,y:e.top}),r=i({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),i))}let nd=new WeakMap;class np{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=i4(),this.visualElement=e}start(e,{snapToCursor:i=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let r=e=>{this.stopAnimation(),i&&this.snapToCursor(tj(e,"page").point)},s=(e,i)=>{let{drag:n,dragPropagation:r,onDragStart:s}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=tz(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),i9(e=>{let i=this.getAxisMotionValue(e).get()||0;if(J.test(i)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];if(r){let e=iY(r);i=e*(parseFloat(i)/100)}}}this.originPoint[e]=i}),s&&s(e,i);let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},o=(e,i)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:a}=i;if(r&&null===this.currentDirection){this.currentDirection=function(e,i=10){let n=null;return Math.abs(e.y)>i?n="y":Math.abs(e.x)>i&&(n="x"),n}(a),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",i.point,a),this.updateAxis("y",i.point,a),this.visualElement.render(),o&&o(e,i)},a=(e,i)=>this.stop(e,i);this.panSession=new iN(e,{onSessionStart:r,onStart:s,onMove:o,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,i){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=i;this.startAnimation(r);let{onDragEnd:s}=this.getProps();s&&s(e,i)}cancel(){this.isDragging=!1;let{projection:e,animationState:i}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),i&&i.setActive("whileDrag",!1)}updateAxis(e,i,n){let{drag:r}=this.getProps();if(!n||!nm(e,r,this.currentDirection))return;let s=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:i,max:n},r){return void 0!==i&&e<i?e=r?eN(i,e,r.min):Math.max(e,i):void 0!==n&&e>n&&(e=r?eN(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:i}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&c(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:i,left:n,bottom:r,right:s}){return{x:iJ(e.x,n,s),y:iJ(e.y,i,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:i0(e,"left","right"),y:i0(e,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&i9(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,i){let n={};return void 0!==i.min&&(n.min=i.min-e.min),void 0!==i.max&&(n.max=i.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:i,onMeasureDragConstraints:n}=this.getProps();if(!i||!c(i))return!1;let r=i.current;t_(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let o=function(e,i,n){let r=nc(e,n),{scroll:s}=i;return s&&(no(r.x,s.offset.x),no(r.y,s.offset.y)),r}(r,s.root,this.visualElement.getTransformPagePoint()),a={x:iQ((e=s.layout.layoutBox).x,o.x),y:iQ(e.y,o.y)};if(n){let e=n(function({x:e,y:i}){return{top:i.min,right:e.max,bottom:i.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=i6(e))}return a}startAnimation(e){let{drag:i,dragMomentum:n,dragElastic:r,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=i9(a=>{if(!nm(a,i,this.currentDirection))return;let u=l&&l[a]||{};o&&(u={min:0,max:0});let h={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...u};return this.startAxisValueAnimation(a,h)});return Promise.all(u).then(a)}startAxisValueAnimation(e,i){let n=this.getAxisMotionValue(e);return n.start(ik(e,n,0,i))}stopAnimation(){i9(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let i="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[i];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){i9(i=>{let{drag:n}=this.getProps();if(!nm(i,n,this.currentDirection))return;let{projection:r}=this.visualElement,s=this.getAxisMotionValue(i);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[i];s.set(e[i]-eN(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:i}=this.getProps(),{projection:n}=this.visualElement;if(!c(i)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};i9(e=>{let i=this.getAxisMotionValue(e);if(i){let n=i.get();r[e]=function(e,i){let n=.5,r=iY(e),s=iY(i);return s>r?n=eK(i.min,i.max-r,e.min):r>s&&(n=eK(e.min,e.max-s,i.min)),$(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),i9(i=>{if(!nm(i,e,null))return;let n=this.getAxisMotionValue(i),{min:s,max:o}=this.constraints[i];n.set(eN(s,o,r[i]))})}addListeners(){if(!this.visualElement.current)return;nd.set(this.visualElement,this);let e=this.visualElement.current,i=tO(e,"pointerdown",e=>{let{drag:i,dragListener:n=!0}=this.getProps();i&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();c(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,s=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),n();let o=tB(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:i})=>{this.isDragging&&i&&(i9(i=>{let n=this.getAxisMotionValue(i);n&&(this.originPoint[i]+=e[i].translate,n.set(n.get()+e[i].translate))}),this.visualElement.render())});return()=>{o(),i(),s(),a&&a()}}getProps(){let e=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:i,dragDirectionLock:n,dragPropagation:r,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function nm(e,i,n){return(!0===i||i===e)&&(null===n||n===e)}function nf(e,i){return i.max===i.min?0:e/(i.max-i.min)*100}let ng={correct:(e,i)=>{if(!i.target)return e;if("string"==typeof e){if(!Q.test(e))return e;e=parseFloat(e)}let n=nf(e,i.target.x),r=nf(e,i.target.y);return`${n}% ${r}%`}},ny=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function nv(e,i,n=1){t_(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,s]=function(e){let i=ny.exec(e);if(!i)return[,];let[,n,r]=i;return[n,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);return o?o.trim():U(s)?nv(s,i,n+1):s}let nx="_$css",nP={correct:(e,{treeScale:i,projectionDelta:n})=>{let r=e,s=e.includes("var("),o=[];s&&(e=e.replace(ny,e=>(o.push(e),nx)));let a=ey.parse(e);if(a.length>5)return r;let l=ey.createTransformer(e),u="number"!=typeof a[0]?1:0,h=n.x.scale*i.x,c=n.y.scale*i.y;a[0+u]/=h,a[1+u]/=c;let d=eN(h,c,.5);"number"==typeof a[2+u]&&(a[2+u]/=d),"number"==typeof a[3+u]&&(a[3+u]/=d);let p=l(a);if(s){let e=0;p=p.replace(nx,()=>{let i=o[e];return e++,i})}return p}};class nb extends s.Component{componentDidMount(){let{visualElement:e,layoutGroup:i,switchLayoutGroup:n,layoutId:r}=this.props,{projection:s}=e;Object.assign(D,nA),s&&(i.group&&i.group.add(s),n&&n.register&&r&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),A.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:i,visualElement:n,drag:r,isPresent:s}=this.props,o=n.projection;return o&&(o.isPresent=s,r||e.layoutDependency!==i||void 0===i?o.willUpdate():this.safeToRemove(),e.isPresent===s||(s?o.promote():o.relegate()||t4.Z_.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:e,layoutGroup:i,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nw(e){let[i,n]=function(){let e=(0,s.useContext)(l.O);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:r}=e,o=(0,s.useId)();(0,s.useEffect)(()=>r(o),[]);let a=()=>n&&n(o);return!i&&n?[!1,a]:[!0]}(),r=(0,s.useContext)(V.p);return s.createElement(nb,{...e,layoutGroup:r,switchLayoutGroup:(0,s.useContext)(S),isPresent:i,safeToRemove:n})}let nA={borderRadius:{...ng,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ng,borderTopRightRadius:ng,borderBottomLeftRadius:ng,borderBottomRightRadius:ng,boxShadow:nP},nT=["TopLeft","TopRight","BottomLeft","BottomRight"],nV=nT.length,nS=e=>"string"==typeof e?parseFloat(e):e,nE=e=>"number"==typeof e||Q.test(e);function nC(e,i){return void 0!==e[i]?e[i]:e.borderRadius}let nM=nk(0,.5,e2),nD=nk(.5,.95,t_);function nk(e,i,n){return r=>r<e?0:r>i?1:n(eK(e,i,r))}function nL(e,i){e.min=i.min,e.max=i.max}function nB(e,i){nL(e.x,i.x),nL(e.y,i.y)}function nR(e,i,n,r,s){return e-=i,e=r+1/n*(e-r),void 0!==s&&(e=r+1/s*(e-r)),e}function nj(e,i,[n,r,s],o,a){!function(e,i=0,n=1,r=.5,s,o=e,a=e){if(J.test(i)){i=parseFloat(i);let e=eN(a.min,a.max,i/100);i=e-a.min}if("number"!=typeof i)return;let l=eN(o.min,o.max,r);e===o&&(l-=i),e.min=nR(e.min,i,n,l,s),e.max=nR(e.max,i,n,l,s)}(e,i[n],i[r],i[s],i.scale,o,a)}let nF=["x","scaleX","originX"],nO=["y","scaleY","originY"];function nI(e,i,n,r){nj(e.x,i,nF,n?n.x:void 0,r?r.x:void 0),nj(e.y,i,nO,n?n.y:void 0,r?r.y:void 0)}function nU(e){return 0===e.translate&&1===e.scale}function nN(e){return nU(e.x)&&nU(e.y)}function n$(e,i){return e.x.min===i.x.min&&e.x.max===i.x.max&&e.y.min===i.y.min&&e.y.max===i.y.max}function nW(e){return iY(e.x)/iY(e.y)}class nz{constructor(){this.members=[]}add(e){t9(this.members,e),e.scheduleRender()}remove(e){if(t6(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let i;let n=this.members.findIndex(i=>e===i);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){i=n;break}}return!!i&&(this.promote(i),!0)}promote(e,i){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,i&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:i,resumingFrom:n}=e;i.onExitComplete&&i.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function nH(e,i,n){let r="",s=e.x.translate/i.x,o=e.y.translate/i.y;if((s||o)&&(r=`translate3d(${s}px, ${o}px, 0) `),(1!==i.x||1!==i.y)&&(r+=`scale(${1/i.x}, ${1/i.y}) `),n){let{rotate:e,rotateX:i,rotateY:s}=n;e&&(r+=`rotate(${e}deg) `),i&&(r+=`rotateX(${i}deg) `),s&&(r+=`rotateY(${s}deg) `)}let a=e.x.scale*i.x,l=e.y.scale*i.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l})`),r||"none"}let nY=(e,i)=>e.depth-i.depth;class nZ{constructor(){this.children=[],this.isDirty=!1}add(e){t9(this.children,e),this.isDirty=!0}remove(e){t6(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(nY),this.isDirty=!1,this.children.forEach(e)}}let nq=["","X","Y","Z"],n_=0,nG={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function nX({attachResizeListener:e,defaultParent:i,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(e,n={},r=null==i?void 0:i()){this.id=n_++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{nG.totalNodes=nG.resolvedTargetDeltas=nG.recalculatedProjection=0,this.nodes.forEach(nQ),this.nodes.forEach(n4),this.nodes.forEach(n9),this.nodes.forEach(n0),window.MotionDebug&&window.MotionDebug.record(nG)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=e,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new nZ)}addEventListener(e,i){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new t7),this.eventHandlers.get(e).add(i)}notifyListeners(e,...i){let n=this.eventHandlers.get(e);n&&n.notify(...i)}hasListeners(e){return this.eventHandlers.has(e)}registerPotentialNode(e,i){this.potentialNodes.set(e,i)}mount(i,n=!1){if(this.instance)return;this.isSVG=i instanceof SVGElement&&"svg"!==i.tagName,this.instance=i;let{layoutId:r,layout:s,visualElement:o}=this.options;if(o&&!o.current&&o.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(s||r)&&(this.isLayoutDirty=!0),e){let n;let r=()=>this.root.updateBlockedByResize=!1;e(i,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=ib(r,250),A.hasAnimatedSinceResize&&(A.hasAnimatedSinceResize=!1,this.nodes.forEach(n3))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||s)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:i,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||o.getDefaultTransition()||ri,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=o.getProps(),u=!this.targetLayout||!n$(this.targetLayout,r)||n,h=!i&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||i&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,h);let i={...iD(s,"layout"),onPlay:a,onComplete:l};(o.shouldReduceMotion||this.options.layoutRoot)&&(i.delay=0,i.type=!1),this.startAnimation(i)}else i||0!==this.animationProgress||n3(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,t4.qY.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(n6),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let i=this.path[e];i.shouldResetTransform=!0,i.updateScroll("snapshot"),i.options.layoutRoot&&i.willUpdate(!1)}let{layoutId:i,layout:n}=this.options;if(void 0===i&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}didUpdate(){let e=this.isUpdateBlocked();if(e){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(n5);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(rn),this.potentialNodes.clear()),this.nodes.forEach(n2),this.nodes.forEach(nK),this.nodes.forEach(nJ),this.clearAllSnapshots(),t4.iW.update(),t4.iW.preRender(),t4.iW.render())}clearAllSnapshots(){this.nodes.forEach(n1),this.sharedNodes.forEach(n7)}scheduleUpdateProjection(){t4.Z_.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){t4.Z_.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){let i=this.path[e];i.updateScroll()}let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=i4(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let i=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(i=!1),i&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!s)return;let e=this.isLayoutDirty||this.shouldResetTransform,i=this.projectionDelta&&!nN(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&(i||nt(this.latestValues)||o)&&(s(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var i;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),rr((i=r).x),rr(i.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return i4();let i=e.measureViewportBox(),{scroll:n}=this.root;return n&&(no(i.x,n.offset.x),no(i.y,n.offset.y)),i}removeElementScroll(e){let i=i4();nB(i,e);for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:s,options:o}=r;if(r!==this.root&&s&&o.layoutScroll){if(s.isRoot){nB(i,e);let{scroll:n}=this.root;n&&(no(i.x,-n.offset.x),no(i.y,-n.offset.y))}no(i.x,s.offset.x),no(i.y,s.offset.y)}}return i}applyTransform(e,i=!1){let n=i4();nB(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&nh(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),nt(r.latestValues)&&nh(n,r.latestValues)}return nt(this.latestValues)&&nh(n,this.latestValues),n}removeTransform(e){let i=i4();nB(i,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!nt(n.latestValues))continue;i8(n.latestValues)&&n.updateSnapshot();let r=i4(),s=n.measurePageBox();nB(r,s),nI(i,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return nt(this.latestValues)&&nI(i,this.latestValues),i}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.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}resolveTargetDelta(){var e,i,n,r;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);let o=Boolean(this.resumingFrom)||this!==s,a=!(o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget);if(a)return;let{layout:l,layoutId:u}=this.options;if(this.layout&&(l||u)){if(!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout?(this.relativeParent=e,this.relativeTarget=i4(),this.relativeTargetOrigin=i4(),iK(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),nB(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=i4(),this.targetWithTransforms=i4()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(i=this.target,n=this.relativeTarget,r=this.relativeParent.target,iG(i.x,n.x,r.x),iG(i.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):nB(this.target,this.layout.layoutBox),nr(this.target,this.targetDelta)):nB(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target?(this.relativeParent=e,this.relativeTarget=i4(),this.relativeTargetOrigin=i4(),iK(this.relativeTargetOrigin,this.target,e.target),nB(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}nG.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||i8(this.parent.latestValues)||ne(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let i=this.getLead(),n=Boolean(this.resumingFrom)||this!==i,r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),r)return;let{layout:s,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||o))return;nB(this.layoutCorrected,this.layout.layoutBox),function(e,i,n,r=!1){let s,o;let a=n.length;if(a){i.x=i.y=1;for(let l=0;l<a;l++){o=(s=n[l]).projectionDelta;let a=s.instance;(!a||!a.style||"contents"!==a.style.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&nh(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(i.x*=o.x.scale,i.y*=o.y.scale,nr(e,o)),r&&nt(s.latestValues)&&nh(e,s.latestValues))}i.x=ns(i.x),i.y=ns(i.y)}}(this.layoutCorrected,this.treeScale,this.path,n);let{target:a}=i;if(!a)return;this.projectionDelta||(this.projectionDelta=i2(),this.projectionDeltaWithTransform=i2());let l=this.treeScale.x,u=this.treeScale.y,h=this.projectionTransform;i_(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=nH(this.projectionDelta,this.treeScale),(this.projectionTransform!==h||this.treeScale.x!==l||this.treeScale.y!==u)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),nG.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,i=!1){let n;let r=this.snapshot,s=r?r.latestValues:{},o={...this.latestValues},a=i2();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let l=i4(),u=r?r.source:void 0,h=this.layout?this.layout.source:void 0,c=u!==h,d=this.getStack(),p=!d||d.members.length<=1,m=Boolean(c&&!p&&!0===this.options.crossfade&&!this.path.some(re));this.animationProgress=0,this.mixTargetDelta=i=>{var r,u;let h=i/1e3;n8(a.x,e.x,h),n8(a.y,e.y,h),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(iK(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),r=this.relativeTarget,u=this.relativeTargetOrigin,rt(r.x,u.x,l.x,h),rt(r.y,u.y,l.y,h),n&&n$(this.relativeTarget,n)&&(this.isProjectionDirty=!1),n||(n=i4()),nB(n,this.relativeTarget)),c&&(this.animationValues=o,function(e,i,n,r,s,o){s?(e.opacity=eN(0,void 0!==n.opacity?n.opacity:1,nM(r)),e.opacityExit=eN(void 0!==i.opacity?i.opacity:1,0,nD(r))):o&&(e.opacity=eN(void 0!==i.opacity?i.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let s=0;s<nV;s++){let o=`border${nT[s]}Radius`,a=nC(i,o),l=nC(n,o);if(void 0===a&&void 0===l)continue;a||(a=0),l||(l=0);let u=0===a||0===l||nE(a)===nE(l);u?(e[o]=Math.max(eN(nS(a),nS(l),r),0),(J.test(l)||J.test(a))&&(e[o]+="%")):e[o]=l}(i.rotate||n.rotate)&&(e.rotate=eN(i.rotate||0,n.rotate||0,r))}(o,s,this.latestValues,h,m,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=h},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(t4.qY.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=t4.Z_.update(()=>{A.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,i,n={}){let r=R(e)?e:ei(e);return r.start(ik("",r,1e3,n)),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}(0,0,{...e,onUpdate:i=>{this.mixTargetDelta(i),e.onUpdate&&e.onUpdate(i)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.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 e=this.getLead(),{targetWithTransforms:i,target:n,layout:r,latestValues:s}=e;if(i&&n&&r){if(this!==e&&this.layout&&r&&rs(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||i4();let i=iY(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+i;let r=iY(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}nB(i,n),nh(i,s),i_(this.projectionDeltaWithTransform,this.layoutCorrected,i,s)}}registerSharedNode(e,i){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nz);let n=this.sharedNodes.get(e);n.add(i);let r=i.options.initialPromotionConfig;i.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(i):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:i}=this.options;return i&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:i}=this.options;return i?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:i,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let i=!1,{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(i=!0),!i)return;let r={};for(let i=0;i<nq.length;i++){let s="rotate"+nq[i];n[s]&&(r[s]=n[s],e.setStaticValue(s,0))}for(let i in e.render(),r)e.setStaticValue(i,r[i]);e.scheduleRender()}getProjectionStyles(e={}){var i,n;let r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";let s=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=tM(e.pointerEvents)||"",r.transform=s?s(this.latestValues,""):"none",r;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let i={};return this.options.layoutId&&(i.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,i.pointerEvents=tM(e.pointerEvents)||""),this.hasProjected&&!nt(this.latestValues)&&(i.transform=s?s({},""):"none",this.hasProjected=!1),i}let a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=nH(this.projectionDeltaWithTransform,this.treeScale,a),s&&(r.transform=s(a,r.transform));let{x:l,y:u}=this.projectionDelta;for(let e in r.transformOrigin=`${100*l.origin}% ${100*u.origin}% 0`,o.animationValues?r.opacity=o===this?null!==(n=null!==(i=a.opacity)&&void 0!==i?i:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,D){if(void 0===a[e])continue;let{correct:i,applyTo:n}=D[e],s="none"===r.transform?a[e]:i(a[e],o);if(n){let e=n.length;for(let i=0;i<e;i++)r[n[i]]=s}else r[e]=s}return this.options.layoutId&&(r.pointerEvents=o===this?tM(e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var i;return null===(i=e.currentAnimation)||void 0===i?void 0:i.stop()}),this.root.nodes.forEach(n5),this.root.sharedNodes.clear()}}}function nK(e){e.updateLayout()}function nJ(e){var i;let n=(null===(i=e.resumeFrom)||void 0===i?void 0:i.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:r}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;"size"===s?i9(e=>{let r=o?n.measuredBox[e]:n.layoutBox[e],s=iY(r);r.min=i[e].min,r.max=r.min+s}):rs(s,n.layoutBox,i)&&i9(e=>{let r=o?n.measuredBox[e]:n.layoutBox[e],s=iY(i[e]);r.max=r.min+s});let a=i2();i_(a,i,n.layoutBox);let l=i2();o?i_(l,e.applyTransform(r,!0),n.measuredBox):i_(l,i,n.layoutBox);let u=!nN(a),h=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:s,layout:o}=r;if(s&&o){let a=i4();iK(a,n.layoutBox,s.layoutBox);let l=i4();iK(l,i,o.layoutBox),n$(a,l)||(h=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:h})}else if(e.isLead()){let{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function nQ(e){nG.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function n0(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function n1(e){e.clearSnapshot()}function n5(e){e.clearMeasurements()}function n2(e){let{visualElement:i}=e.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),e.resetTransform()}function n3(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function n4(e){e.resolveTargetDelta()}function n9(e){e.calcProjection()}function n6(e){e.resetRotation()}function n7(e){e.removeLeadSnapshot()}function n8(e,i,n){e.translate=eN(i.translate,0,n),e.scale=eN(i.scale,1,n),e.origin=i.origin,e.originPoint=i.originPoint}function rt(e,i,n,r){e.min=eN(i.min,n.min,r),e.max=eN(i.max,n.max,r)}function re(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let ri={duration:.45,ease:[.4,0,.1,1]};function rn(e,i){let n=e.root;for(let i=e.path.length-1;i>=0;i--)if(Boolean(e.path[i].instance)){n=e.path[i];break}let r=n&&n!==e.root?n.instance:document,s=r.querySelector(`[data-projection-id="${i}"]`);s&&e.mount(s,!0)}function rr(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function rs(e,i,n){return"position"===e||"preserve-aspect"===e&&!iZ(nW(i),nW(n),.2)}let ro=nX({attachResizeListener:(e,i)=>tB(e,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ra={current:void 0},rl=nX({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ra.current){let e=new ro(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),ra.current=e}return ra.current},resetTransform:(e,i)=>{e.style.transform=void 0!==i?i:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),ru=new Set(["width","height","top","left","right","bottom","x","y"]),rh=e=>ru.has(e),rc=e=>Object.keys(e).some(rh),rd=e=>e===W||e===Q,rp=(e,i)=>parseFloat(e.split(", ")[i]),rm=(e,i)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let s=r.match(/^matrix3d\((.+)\)$/);if(s)return rp(s[1],i);{let i=r.match(/^matrix\((.+)\)$/);return i?rp(i[1],e):0}},rf=new Set(["x","y","z"]),rg=k.filter(e=>!rf.has(e)),ry={width:({x:e},{paddingLeft:i="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(i)-parseFloat(n),height:({y:e},{paddingTop:i="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(i)-parseFloat(n),top:(e,{top:i})=>parseFloat(i),left:(e,{left:i})=>parseFloat(i),bottom:({y:e},{top:i})=>parseFloat(i)+(e.max-e.min),right:({x:e},{left:i})=>parseFloat(i)+(e.max-e.min),x:rm(4,13),y:rm(5,14)},rv=(e,i,n)=>{let r=i.measureViewportBox(),s=i.current,o=getComputedStyle(s),{display:a}=o,l={};"none"===a&&i.setStaticValue("display",e.display||"block"),n.forEach(e=>{l[e]=ry[e](r,o)}),i.render();let u=i.measureViewportBox();return n.forEach(n=>{let r=i.getValue(n);r&&r.jump(l[n]),e[n]=ry[n](u,o)}),e},rx=(e,i,n={},r={})=>{i={...i},r={...r};let s=Object.keys(i).filter(rh),o=[],a=!1,l=[];if(s.forEach(s=>{let u;let h=e.getValue(s);if(!e.hasValue(s))return;let c=n[s],d=eE(c),p=i[s];if(tS(p)){let e=p.length,i=null===p[0]?1:0;d=eE(c=p[i]);for(let n=i;n<e;n++)u?t_(eE(p[n])===u,"All keyframes must be of the same type"):t_((u=eE(p[n]))===d||rd(d)&&rd(u),"Keyframes must be of the same dimension as the current value")}else u=eE(p);if(d!==u){if(rd(d)&&rd(u)){let e=h.get();"string"==typeof e&&h.set(parseFloat(e)),"string"==typeof p?i[s]=parseFloat(p):Array.isArray(p)&&u===Q&&(i[s]=p.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==u?void 0:u.transform)&&(0===c||0===p)?0===c?h.set(u.transform(c)):i[s]=d.transform(p):(a||(o=function(e){let i=[];return rg.forEach(n=>{let r=e.getValue(n);void 0!==r&&(i.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),i.length&&e.render(),i}(e),a=!0),l.push(s),r[s]=void 0!==r[s]?r[s]:i[s],h.jump(p))}}),!l.length)return{target:i,transitionEnd:r};{let n=l.indexOf("height")>=0?window.pageYOffset:null,s=rv(i,e,l);return o.length&&o.forEach(([i,n])=>{e.getValue(i).set(n)}),e.render(),b.j&&null!==n&&window.scrollTo({top:n}),{target:s,transitionEnd:r}}},rP=(e,i,n,r)=>{var s,o;let a=function(e,{...i},n){let r=e.current;if(!(r instanceof Element))return{target:i,transitionEnd:n};for(let s in n&&(n={...n}),e.values.forEach(e=>{let i=e.get();if(!U(i))return;let n=nv(i,r);n&&e.set(n)}),i){let e=i[s];if(!U(e))continue;let o=nv(e,r);o&&(i[s]=o,n&&void 0===n[s]&&(n[s]=e))}return{target:i,transitionEnd:n}}(e,i,r);return i=a.target,r=a.transitionEnd,s=i,o=r,rc(s)?rx(e,s,n,o):{target:s,transitionEnd:o}},rb={current:null},rw={current:!1},rA=Object.keys(P),rT=rA.length,rV=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],rS=f.length;class rE{constructor({parent:e,props:i,presenceContext:n,reducedMotionConfig:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>t4.Z_.render(this.render,!1,!0);let{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=i.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=i,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=g(i),this.isVariantNode=y(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);let{willChange:u,...h}=this.scrapeMotionValuesFromProps(i,{});for(let e in h){let i=h[e];void 0!==a[e]&&R(i)&&(i.set(a[e],!1),ek(u)&&u.add(e))}}scrapeMotionValuesFromProps(e,i){return{}}mount(e){this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,i)=>this.bindToMotionValue(i,e)),rw.current||function(){if(rw.current=!0,b.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),i=()=>rb.current=e.matches;e.addListener(i),i()}else rb.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rb.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),t4.qY.update(this.notifyUpdate),t4.qY.render(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,i){let n=L.has(e),r=i.on("change",i=>{this.latestValues[e]=i,this.props.onUpdate&&t4.Z_.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=i.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),s()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...i},n,r,s,o){let a,l;for(let e=0;e<rT;e++){let n=rA[e],{isEnabled:r,Feature:s,ProjectionNode:o,MeasureLayout:u}=P[n];o&&(a=o),r(i)&&(!this.features[n]&&s&&(this.features[n]=new s(this)),u&&(l=u))}if(!this.projection&&a){this.projection=new a(s,this.latestValues,this.parent&&this.parent.projection);let{layoutId:e,layout:n,drag:r,dragConstraints:l,layoutScroll:u,layoutRoot:h}=i;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||l&&c(l),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:u,layoutRoot:h})}return l}updateFeatures(){for(let e in this.features){let i=this.features[e];i.isMounted?i.update(this.props,this.prevProps):(i.mount(),i.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):i4()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,i){this.latestValues[e]=i}makeTargetAnimatable(e,i=!0){return this.makeTargetAnimatableFromInstance(e,this.props,i)}update(e,i){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let i=0;i<rV.length;i++){let n=rV[i];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,i,n){let{willChange:r}=i;for(let s in i){let o=i[s],a=n[s];if(R(o))e.addValue(s,o),ek(r)&&r.add(s);else if(R(a))e.addValue(s,ei(o,{owner:e})),ek(r)&&r.remove(s);else if(a!==o){if(e.hasValue(s)){let i=e.getValue(s);i.hasAnimated||i.set(o)}else{let i=e.getStaticValue(s);e.addValue(s,ei(void 0!==i?i:o,{owner:e}))}}}for(let r in n)void 0===i[r]&&e.removeValue(r);return i}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let i={};for(let e=0;e<rS;e++){let n=f[e],r=this.props[n];(d(r)||!1===r)&&(i[n]=r)}return i}addVariantChild(e){let i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(e),()=>i.variantChildren.delete(e)}addValue(e,i){i!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,i)),this.values.set(e,i),this.latestValues[e]=i.get()}removeValue(e){this.values.delete(e);let i=this.valueSubscriptions.get(e);i&&(i(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,i){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==i&&(n=ei(i,{owner:this}),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,i){this.baseTarget[e]=i}getBaseTarget(e){var i;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(i=tV(this.props,n))||void 0===i?void 0:i[e]:void 0;if(n&&void 0!==r)return r;let s=this.getBaseTargetFromProps(this.props,e);return void 0===s||R(s)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:s}on(e,i){return this.events[e]||(this.events[e]=new t7),this.events[e].add(i)}notify(e,...i){this.events[e]&&this.events[e].notify(...i)}}class rC extends rE{sortInstanceNodePosition(e,i){return 2&e.compareDocumentPosition(i)?1:-1}getBaseTargetFromProps(e,i){return e.style?e.style[i]:void 0}removeValueFromRenderState(e,{vars:i,style:n}){delete i[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:i,...n},{transformValues:r},s){let o=function(e,i,n){let r={};for(let s in e){let e=function(e,i){if(!i)return;let n=i[e]||i.default||i;return n.from}(s,i);if(void 0!==e)r[s]=e;else{let e=n.getValue(s);e&&(r[s]=e.get())}}return r}(n,e||{},this);if(r&&(i&&(i=r(i)),n&&(n=r(n)),o&&(o=r(o))),s){!function(e,i,n){var r,s;let o=Object.keys(i).filter(i=>!e.hasValue(i)),a=o.length;if(a)for(let l=0;l<a;l++){let a=o[l],u=i[a],h=null;Array.isArray(u)&&(h=u[0]),null===h&&(h=null!==(s=null!==(r=n[a])&&void 0!==r?r:e.readValue(a))&&void 0!==s?s:i[a]),null!=h&&("string"==typeof h&&(t5(h)||t2(h))?h=parseFloat(h):!eM(h)&&ey.test(u)&&(h=eT(a,u)),e.addValue(a,ei(h,{owner:e})),void 0===n[a]&&(n[a]=h),null!==h&&e.setBaseTarget(a,h))}}(this,n,o);let e=rP(this,n,o,i);i=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:i,...n}}}class rM extends rC{readValueFromInstance(e,i){if(L.has(i)){let e=eA(i);return e&&e.default||0}{let n=window.getComputedStyle(e),r=(I(i)?n.getPropertyValue(i):n[i])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:i}){return nc(e,i)}build(e,i,n,r){ts(e,i,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,i){return tA(e,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;R(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,i,n,r){tP(e,i,n,r)}}class rD extends rC{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,i){return e[i]}readValueFromInstance(e,i){if(L.has(i)){let e=eA(i);return e&&e.default||0}return i=tb.has(i)?i:tx(i),e.getAttribute(i)}measureInstanceViewportBox(){return i4()}scrapeMotionValuesFromProps(e,i){return tT(e,i)}build(e,i,n,r){tf(e,i,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,i,n,r){tw(e,i,n,r)}mount(e){this.isSVGTag=ty(e.tagName),super.mount(e)}}let rk=(e,i)=>M(e)?new rD(i,{enableHardwareAcceleration:!1}):new rM(i,{enableHardwareAcceleration:!0}),rL={animation:{Feature:class extends tY{constructor(e){super(e),e.animationState||(e.animationState=function(e){let i=i=>Promise.all(i.map(({animation:i,options:n})=>(function(e,i,n={}){let r;if(e.notify("AnimationStart",i),Array.isArray(i)){let s=i.map(i=>iL(e,i,n));r=Promise.all(s)}else if("string"==typeof i)r=iL(e,i,n);else{let s="function"==typeof i?eD(e,i,n.custom):i;r=iB(e,s,n)}return r.then(()=>e.notify("AnimationComplete",i))})(e,i,n))),n={animate:iO(!0),whileInView:iO(),whileHover:iO(),whileTap:iO(),whileDrag:iO(),whileFocus:iO(),exit:iO()},r=!0,s=(i,n)=>{let r=eD(e,n);if(r){let{transition:e,transitionEnd:n,...s}=r;i={...i,...s,...n}}return i};function o(o,a){let l=e.getProps(),u=e.getVariantContext(!0)||{},h=[],c=new Set,m={},f=1/0;for(let i=0;i<iF;i++){var g;let y=ij[i],v=n[y],x=void 0!==l[y]?l[y]:u[y],P=d(x),b=y===a?v.isActive:null;!1===b&&(f=i);let w=x===u[y]&&x!==l[y]&&P;if(w&&r&&e.manuallyAnimateOnMount&&(w=!1),v.protectedKeys={...m},!v.isActive&&null===b||!x&&!v.prevProp||p(x)||"boolean"==typeof x)continue;let A=(g=v.prevProp,"string"==typeof x?x!==g:!!Array.isArray(x)&&!t1(x,g)),T=A||y===a&&v.isActive&&!w&&P||i>f&&P,V=Array.isArray(x)?x:[x],S=V.reduce(s,{});!1===b&&(S={});let{prevResolvedValues:E={}}=v,C={...E,...S},M=e=>{T=!0,c.delete(e),v.needsAnimating[e]=!0};for(let e in C){let i=S[e],n=E[e];m.hasOwnProperty(e)||(i!==n?tS(i)&&tS(n)?!t1(i,n)||A?M(e):v.protectedKeys[e]=!0:void 0!==i?M(e):c.add(e):void 0!==i&&c.has(e)?M(e):v.protectedKeys[e]=!0)}v.prevProp=x,v.prevResolvedValues=S,v.isActive&&(m={...m,...S}),r&&e.blockInitialAnimation&&(T=!1),T&&!w&&h.push(...V.map(e=>({animation:e,options:{type:y,...o}})))}if(c.size){let i={};c.forEach(n=>{let r=e.getBaseTarget(n);void 0!==r&&(i[n]=r)}),h.push({animation:i})}let y=Boolean(h.length);return r&&!1===l.initial&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?i(h):Promise.resolve()}return{animateChanges:o,setActive:function(i,r,s){var a;if(n[i].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(i,r)}),n[i].isActive=r;let l=o(s,i);for(let e in n)n[e].protectedKeys={};return l},setAnimateFunction:function(n){i=n(e)},getState:()=>n}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),p(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:i}=this.node.prevProps||{};e!==i&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends tY{constructor(){super(...arguments),this.id=iI++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:i,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let s=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});i&&!e&&s.then(()=>i(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends tY{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}viewportFallback(){requestAnimationFrame(()=>{this.hasEnteredView=!0;let{onViewportEnter:e}=this.node.getProps();e&&e(null),this.node.animationState&&this.node.animationState.setActive("whileInView",!0)})}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:i,margin:n,amount:r="some",once:s,fallback:o=!0}=e;if("undefined"==typeof IntersectionObserver){o&&this.viewportFallback();return}let a={root:i?i.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:t0[r]},l=e=>{let{isIntersecting:i}=e;if(this.isInView===i||(this.isInView=i,s&&!i&&this.hasEnteredView))return;i&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",i);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=i?n:r;o&&o(e)};return function(e,i,n){let r=function({root:e,...i}){let n=e||document;tK.has(n)||tK.set(n,{});let r=tK.get(n),s=JSON.stringify(i);return r[s]||(r[s]=new IntersectionObserver(tQ,{root:e,...i})),r[s]}(i);return tX.set(e,n),r.observe(e),()=>{tX.delete(e),r.unobserve(e)}}(this.node.current,a,l)}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:i}=this.node,n=["amount","margin","root"].some(function({viewport:e={}},{viewport:i={}}={}){return n=>e[n]!==i[n]}(e,i));n&&this.startObserver()}unmount(){}}},tap:{Feature:class extends tY{constructor(){super(...arguments),this.removeStartListeners=t_,this.removeEndListeners=t_,this.removeAccessibleListeners=t_,this.startPointerPress=(e,i)=>{if(this.removeEndListeners(),this.isPressing)return;let n=this.node.getProps(),r=(e,i)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:r}=this.node.getProps();tq(this.node.current,e.target)?n&&n(e,i):r&&r(e,i)},s=tO(window,"pointerup",r,{passive:!(n.onTap||n.onPointerUp)}),o=tO(window,"pointercancel",(e,i)=>this.cancelPress(e,i),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=tU(s,o),this.startPress(e,i)},this.startAccessiblePress=()=>{let e=e=>{if("Enter"!==e.key||this.isPressing)return;let i=e=>{"Enter"===e.key&&this.checkPressEnd()&&tG("up",this.node.getProps().onTap)};this.removeEndListeners(),this.removeEndListeners=tB(this.node.current,"keyup",i),tG("down",(e,i)=>{this.startPress(e,i)})},i=tB(this.node.current,"keydown",e),n=()=>{this.isPressing&&tG("cancel",(e,i)=>this.cancelPress(e,i))},r=tB(this.node.current,"blur",n);this.removeAccessibleListeners=tU(i,r)}}startPress(e,i){this.isPressing=!0;let{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&n(e,i)}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;let e=this.node.getProps();return e.whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tH()}cancelPress(e,i){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&n(e,i)}mount(){let e=this.node.getProps(),i=tO(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=tB(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tU(i,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends tY{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(i){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tU(tB(this.node.current,"focus",()=>this.onFocus()),tB(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends tY{mount(){this.unmount=tU(tZ(this.node,!0),tZ(this.node,!1))}unmount(){}}},pan:{Feature:class extends tY{constructor(){super(...arguments),this.removePointerDownListener=t_}onPointerDown(e){this.session=new iN(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:i,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:e,onStart:i,onMove:n,onEnd:(e,i)=>{delete this.session,r&&r(e,i)}}}mount(){this.removePointerDownListener=tO(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends tY{constructor(e){super(e),this.removeGroupControls=t_,this.removeListeners=t_,this.controls=new np(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||t_}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:rl,MeasureLayout:nw},layout:{ProjectionNode:rl,MeasureLayout:nw}},rB=function(e){function i(i,n={}){return function({preloadedFeatures:e,createVisualElement:i,useRender:n,useVisualState:r,Component:p}){e&&function(e){for(let i in e)P[i]={...P[i],...e[i]}}(e);let m=(0,s.forwardRef)(function(m,f){var y,x;let P;let E={...(0,s.useContext)(o),...m,layoutId:function({layoutId:e}){let i=(0,s.useContext)(V.p).id;return i&&void 0!==e?i+"-"+e:e}(m)},{isStatic:C}=E,M=function(e){let{initial:i,animate:n}=function(e,i){if(g(e)){let{initial:i,animate:n}=e;return{initial:!1===i||d(i)?i:void 0,animate:d(n)?n:void 0}}return!1!==e.inherit?i:{}}(e,(0,s.useContext)(a));return(0,s.useMemo)(()=>({initial:i,animate:n}),[v(i),v(n)])}(m),D=C?void 0:(0,w.h)(()=>{if(A.hasEverUpdated)return T++}),k=r(m,C);if(!C&&b.j){M.visualElement=function(e,i,n,r){let c=(0,s.useContext)(a).visualElement,d=(0,s.useContext)(h),p=(0,s.useContext)(l.O),m=(0,s.useContext)(o).reducedMotion,f=(0,s.useRef)();r=r||d.renderer,!f.current&&r&&(f.current=r(e,{visualState:i,parent:c,props:n,presenceContext:p,blockInitialAnimation:!!p&&!1===p.initial,reducedMotionConfig:m}));let g=f.current;(0,s.useInsertionEffect)(()=>{g&&g.update(n,p)}),(0,u.L)(()=>{g&&g.render()}),(0,s.useEffect)(()=>{g&&g.updateFeatures()});let y=window.HandoffAppearAnimations?u.L:s.useEffect;return y(()=>{g&&g.animationState&&g.animationState.animateChanges()}),g}(p,k,E,i);let n=(0,s.useContext)(S),r=(0,s.useContext)(h).strict;M.visualElement&&(P=M.visualElement.loadFeatures(E,r,e,D,n))}return s.createElement(a.Provider,{value:M},P&&M.visualElement?s.createElement(P,{visualElement:M.visualElement,...E}):null,n(p,m,D,(y=M.visualElement,x=f,(0,s.useCallback)(e=>{e&&k.mount&&k.mount(e),y&&(e?y.mount(e):y.unmount()),x&&("function"==typeof x?x(e):c(x)&&(x.current=e))},[y])),k,C,M.visualElement))});return m[E]=p,m}(e(i,n))}if("undefined"==typeof Proxy)return i;let n=new Map;return new Proxy(i,{get:(e,r)=>(n.has(r)||n.set(r,i(r)),n.get(r))})}((e,i)=>(function(e,{forwardMotionProps:i=!1},n,r){let o=M(e)?tk:tL;return{...o,preloadedFeatures:n,useRender:function(e=!1){let i=(i,n,r,o,{latestValues:a},l)=>{let u=M(i)?tv:tl,h=u(n,a,l,i),c=function(e,i,n){let r={};for(let s in e)("values"!==s||"object"!=typeof e.values)&&(tc(s)||!0===n&&th(s)||!i&&!th(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}(n,"string"==typeof i,e),d={...c,...h,ref:o},{children:p}=n,m=(0,s.useMemo)(()=>R(p)?p.get():p,[p]);return r&&(d["data-projection-id"]=r),(0,s.createElement)(i,{...d,children:m})};return i}(i),createVisualElement:r,Component:e}})(e,i,rL,rk))},1741:function(e,i,n){n.d(i,{j:function(){return r}});let r="undefined"!=typeof document},6681:function(e,i,n){n.d(i,{h:function(){return s}});var r=n(7294);function s(e){let i=(0,r.useRef)(null);return null===i.current&&(i.current=e()),i.current}},8868:function(e,i,n){n.d(i,{L:function(){return o}});var r=n(7294),s=n(1741);let o=s.j?r.useLayoutEffect:r.useEffect}}]);