1"use strict";(self.webpackChunkadonis_environmental=self.webpackChunkadonis_environmental||[]).push([[585],{11672:function(t,e,n){n.d(e,{$:function(){return A}});var i=n(74848);const s=(...t)=>(...e)=>{for(let n=0;n<t.length;n++){const i=t[n];if(i){const t=i(...e);if(null!=t)return t}}},o="list-item",r="o-list-item",a="group-list-item",l="group-o-list-item",h="span",c={[o]:"listItem",[r]:"oListItem",[a]:"list",[l]:"oList"},u=t=>(e,n,i,s,o)=>{const r=t[c[e]||e];if(r)return r({type:e,node:n,text:i,children:s,key:o})};var d=n(96540);const p=()=>(++p.i).toString();p.i=0;const m=(t,e=[])=>({key:p(),type:t.type,text:"text"in t?t.text:void 0,node:t,children:e}),f=t=>m({type:h,text:t,spans:[]}),y=t=>{const e=t.slice(0);for(let n=0;n<e.length;n++){const t=e[n];if(t.type===o||t.type===r){const i=[t];for(;e[n+1]&&e[n+1].type===t.type;)i.push(e[n+1]),e.splice(n,1);t.type===o?e[n]={type:a,items:i}:e[n]={type:l,items:i}}}return e},g=t=>{if("text"in t)return m(t,v(t.spans,t));if("items"in t){const e=[];for(let n=0;n<t.items.length;n++)e.push(g(t.items[n]));return m(t,e)}return m(t)},v=(t,e,n)=>{if(!t.length)return[f(e.text)];const i=t.slice(0);i.sort((t,e)=>t.start-e.start||e.end-t.end);const s=[];for(let o=0;o<i.length;o++){const t=i[o],r=n&&n.start||0,a=t.start-r,l=t.end-r,h=e.text.slice(a,l),c=[];for(let e=o;e<i.length;e++){const n=i[e];n!==t&&(n.start>=t.start&&n.end<=t.end?(c.push(n),i.splice(e,1),e--):n.start<t.end&&n.end>t.start&&(c.push({...n,end:t.end}),i[e]={...n,start:t.end}))}0===o&&a>0&&s.push(f(e.text.slice(0,a)));const u={...t,text:h};s.push(m(u,v(c,{...e,text:h},t))),l<e.text.length&&s.push(f(e.text.slice(l,i[o+1]?i[o+1].start-r:void 0)))}return s},x=(t,e)=>w((t=>{const e=y(t),n=[];for(let i=0;i<e.length;i++)n.push(g(e[i]));return{key:p(),children:n}})(t).children,e),w=(t,e)=>{const n=[];for(let i=0;i<t.length;i++){const s=t[i],o=e(s.type,s.node,s.text,w(s.children,e),s.key);null!=o&&n.push(o)}return n};var T=n(53786),P=n(45564);const S=t=>{if("direction"in t&&"rtl"===t.direction)return"rtl"};function b({linkResolver:t,field:e,fallback:n,components:o,externalLinkComponent:r,internalLinkComponent:a,...l}){return d.useMemo(()=>{if((0,P.YD)(e)){const n=s("object"==typeof o?u(o):o,(l={linkResolver:t,internalLinkComponent:a,externalLinkComponent:r},u({heading1:({node:t,children:e,key:n})=>(0,i.jsx)("h1",{dir:S(t),children:e},n),heading2:({node:t,children:e,key:n})=>(0,i.jsx)("h2",{dir:S(t),children:e},n),heading3:({node:t,children:e,key:n})=>(0,i.jsx)("h3",{dir:S(t),children:e},n),heading4:({node:t,children:e,key:n})=>(0,i.jsx)("h4",{dir:S(t),children:e},n),heading5:({node:t,children:e,key:n})=>(0,i.jsx)("h5",{dir:S(t),children:e},n),heading6:({node:t,children:e,key:n})=>(0,i.jsx)("h6",{dir:S(t),children:e},n),paragraph:({node:t,children:e,key:n})=>(0,i.jsx)("p",{dir:S(t),children:e},n),preformatted:({node:t,key:e})=>(0,i.jsx)("pre",{children:t.text},e),strong:({children:t,key:e})=>(0,i.jsx)("strong",{children:t},e),em:({children:t,key:e})=>(0,i.jsx)("em",{children:t},e),listItem:({node:t,children:e,key:n})=>(0,i.jsx)("li",{dir:S(t),children:e},n),oListItem:({node:t,children:e,key:n})=>(0,i.jsx)("li",{dir:S(t),children:e},n),list:({children:t,key:e})=>(0,i.jsx)("ul",{children:t},e),oList:({children:t,key:e})=>(0,i.jsx)("ol",{children:t},e),image:({node:t,key:e})=>{const n=(0,i.jsx)("img",{src:t.url,alt:t.alt??void 0,"data-copyright":t.copyright?t.copyright:void 0});return(0,i.jsx)("p",{className:"block-img",children:t.linkTo?(0,i.jsx)(T.s,{linkResolver:l.linkResolver,internalComponent:l.internalLinkComponent,externalComponent:l.externalLinkComponent,field:t.linkTo,children:n}):n},e)},embed:({node:t,key:e})=>(0,i.jsx)("div",{"data-oembed":t.oembed.embed_url,"data-oembed-type":t.oembed.type,"data-oembed-provider":t.oembed.provider_name,dangerouslySetInnerHTML:{__html:t.oembed.html??""}},e),hyperlink:({node:t,children:e,key:n})=>(0,i.jsx)(T.s,{field:t.data,linkResolver:l.linkResolver,internalComponent:l.internalLinkComponent,externalComponent:l.externalLinkComponent,children:e},n),label:({node:t,children:e,key:n})=>(0,i.jsx)("span",{className:t.data.label,children:e},n),span:({text:t,key:e})=>{const n=[];let s=0;for(const o of t.split("\n"))s>0&&n.push((0,i.jsx)("br",{},`${s}__break`)),n.push((0,i.jsx)(d.Fragment,{children:o},`${s}__line`)),s++;return(0,i.jsx)(d.Fragment,{children:n},e)}}))),h=x(e,(t,e,i,s,o)=>
1{const r=n(t,e,i,s,o);return d.isValidElement(r)&&null==r.key?d.cloneElement(r,{key:o}):r});return(0,i.jsx)(i.Fragment,{children:h})}return null!=n?(0,i.jsx)(i.Fragment,{children:n}):null;var l},[e,a,r,o,t,n])}var E=n(58794);const A=function({components:t,...e}){const n=(0,E.U)(),o=s("object"==typeof t?u(t):t,"object"==typeof n.richTextComponents?u(n.richTextComponents):n.richTextComponents);return(0,i.jsx)(b,{components:o,internalLinkComponent:n.internalLinkComponent,externalLinkComponent:n.externalLinkComponent,...e})}},80048:function(t,e,n){n.d(e,{_:function(){return ja},L:function(){return Ba}});var i=n(96540);const s={current:null},o={current:!1},r="undefined"!=typeof window;function a(){if(o.current=!0,r)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>s.current=t.matches;t.addEventListener("change",e),e()}else s.current=!1}const l=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],h=(()=>new Set(l))(),c=(t,e,n)=>n>e?e:n<t?t:n,u={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},d={...u,transform:t=>c(0,1,t)},p={...u,default:1},m=t=>Math.round(1e5*t)/1e5,f=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const y=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,g=(t,e)=>n=>Boolean("string"==typeof n&&y.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),v=(t,e,n)=>i=>{if("string"!=typeof i)return i;const[s,o,r,a]=i.match(f);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(r),alpha:void 0!==a?parseFloat(a):1}},x={...u,transform:t=>Math.round((t=>c(0,255,t))(t))},w={test:g("rgb","red"),parse:v("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+x.transform(t)+", "+x.transform(e)+", "+x.transform(n)+", "+m(d.transform(i))+")"};const T={test:g("#"),parse:function(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}},transform:w.transform},P=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),S=P("deg"),b=P("%"),E=P("px"),A=P("vh"),k=P("vw"),C=(()=>({...b,parse:t=>b.parse(t)/100,transform:t=>b.transform(100*t)}))(),M={test:g("hsl","hue"),parse:v("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+b.transform(m(e))+", "+b.transform(m(n))+", "+m(d.transform(i))+")"},V={test:t=>w.test(t)||T.test(t)||M.test(t),parse:t=>w.test(t)?w.parse(t):M.test(t)?M.parse(t):T.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?w.transform(t):M.transform(t),getAnimatableNone:t=>{const e=V.parse(t);return e.alpha=0,V.transform(e)}},D=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const R="number",L="color",j=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function B(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let o=0;const r=e.replace(j,t=>(V.test(t)?(i.color.push(o),s.push(L),n.push(V.parse(t))):t.startsWith("var(")?(i.var.push(o),s.push("var"),n.push(t)):(i.number.push(o),s.push(R),n.push(parseFloat(t))),++o,"${}")).split("${}");return{values:n,split:r,indexes:i,types:s}}function F(t){return B(t).values}function I(t){const{split:e,types:n}=B(t),i=e.length;return t=>{let s="";for(let o=0;o<i;o++)if(s+=e[o],void 0!==t[o]){const e=n[o];s+=e===R?m(t[o]):e===L?V.transform(t[o]):t[o]}return s}}const O=t=>"number"==typeof t?0:V.test(t)?V.getAnimatableNone(t):t;const U={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(f)?.length||0)+(t.match(D)?.length||0)>0},parse:F,createTransformer:I,getAnimatableNone:function(t){const e=F(t);return I(t)(e.map(O))}},N=new Set(["brightness","contrast","saturate","opacity"]);function W(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(f)||[];if(!i)return t;const s=n.replace(i,"");let o=N.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}const $=/\b([a-z-]*)\(.*?\)/gu,Y={...U,getAnimatableNone:t=>{const e=t.match($);return e?e.map(W).join(" "):t}}
1,X={...U,getAnimatableNone:t=>{const e=U.parse(t);return U.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},z={...u,transform:Math.round},H={borderWidth:E,borderTopWidth:E,borderRightWidth:E,borderBottomWidth:E,borderLeftWidth:E,borderRadius:E,borderTopLeftRadius:E,borderTopRightRadius:E,borderBottomRightRadius:E,borderBottomLeftRadius:E,width:E,maxWidth:E,height:E,maxHeight:E,top:E,right:E,bottom:E,left:E,inset:E,insetBlock:E,insetBlockStart:E,insetBlockEnd:E,insetInline:E,insetInlineStart:E,insetInlineEnd:E,padding:E,paddingTop:E,paddingRight:E,paddingBottom:E,paddingLeft:E,paddingBlock:E,paddingBlockStart:E,paddingBlockEnd:E,paddingInline:E,paddingInlineStart:E,paddingInlineEnd:E,margin:E,marginTop:E,marginRight:E,marginBottom:E,marginLeft:E,marginBlock:E,marginBlockStart:E,marginBlockEnd:E,marginInline:E,marginInlineStart:E,marginInlineEnd:E,fontSize:E,backgroundPositionX:E,backgroundPositionY:E,...{rotate:S,rotateX:S,rotateY:S,rotateZ:S,scale:p,scaleX:p,scaleY:p,scaleZ:p,skew:S,skewX:S,skewY:S,distance:E,translateX:E,translateY:E,translateZ:E,x:E,y:E,z:E,perspective:E,transformPerspective:E,opacity:d,originX:C,originY:C,originZ:E},zIndex:z,fillOpacity:d,strokeOpacity:d,numOctaves:z},K={...H,color:V,backgroundColor:V,outlineColor:V,fill:V,stroke:V,borderColor:V,borderTopColor:V,borderRightColor:V,borderBottomColor:V,borderLeftColor:V,filter:Y,WebkitFilter:Y,mask:X,WebkitMask:X},G=t=>K[t],_=()=>({x:{min:0,max:0},y:{min:0,max:0}}),q=t=>Boolean(t&&t.getVelocity),Z=new Set(["width","height","top","left","right","bottom",...l]),J=t=>e=>e.test(t),Q=[u,E,b,S,k,A,{test:t=>"auto"===t,parse:t=>t}],tt=t=>Q.find(J(t));const et=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),nt=t=>e=>"string"==typeof e&&e.startsWith(t),it=nt("--"),st=nt("var(--"),ot=t=>!!st(t)&&rt.test(t.split("/*")[0].trim()),rt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function at(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}const lt=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ht(t,e,n=1){const[i,s]=function(t){const e=lt.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${n??i}`,s]}(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const t=o.trim();return et(t)?parseFloat(t):t}return ot(s)?ht(s,e,n+1):s}const ct=t=>180*t/Math.PI,ut=t=>{const e=ct(Math.atan2(t[1],t[0]));return pt(e)},dt={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:ut,rotateZ:ut,skewX:t=>ct(Math.atan(t[1])),skewY:t=>ct(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},pt=t=>((t%=360)<0&&(t+=360),t),mt=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),ft=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),yt={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:mt,scaleY:ft,scale:t=>(mt(t)+ft(t))/2,rotateX:t=>pt(ct(Math.atan2(t[6],t[5]))),rotateY:t=>pt(ct(Math.atan2(-t[2],t[0]))),rotateZ:ut,rotate:ut,skewX:t=>ct(Math.atan(t[4])),skewY:t=>ct(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function gt(t){return t.includes("scale")?1:0}function vt(t,e){if(!t||"none"===t)return gt(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,s;if(n)i=yt,s=n;else{const e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=dt,s=e}if(!s)return gt(e);const o=i[e],r=s[1].split(",").map(xt);return"function"==typeof o?o(r):r[o]}function xt(t){return parseFloat(t.trim())}const wt=t=>t===u||t===E,Tt=new Set(["x","y","z"]),Pt=l.filter(t=>!Tt.has(t));const St={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>vt(e,"x"),y:(t,{transform:e})=>vt(e,"y")};St.translateX=St.x,St.translateY=St.y;const bt=t=>t,Et={},At=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],kt={value:null,addProjectionMetrics:null};function Ct(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=At.reduce((t,n)=>(t[n]=function(t,e){let n=new Set,i=new Set,s=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function h(e){r.has(e)&&(c.schedule(e),t()),l++,e(a)}const c={schedule:(t,e=!1,o=!1)=>{const a=o&&s?n:i;return e&&r.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),r.delete(t)},process:t=>
vendor: 4,576 bytes, line 1
1{a=t,s?o=!0:(s=!0,[n,i]=[i,n],n.forEach(h),e&&kt.value&&kt.value.frameloop[e].push(l),l=0,n.clear(),s=!1,o&&(o=!1,c.process(t)))}};return c}(o,e?n:void 0),t),{}),{setup:a,read:l,resolveKeyframes:h,preUpdate:c,update:u,preRender:d,render:p,postRender:m}=r,f=()=>{const o=Et.useManualTiming?s.timestamp:performance.now();n=!1,Et.useManualTiming||(s.delta=i?1e3/60:Math.max(Math.min(o-s.timestamp,40),1)),s.timestamp=o,s.isProcessing=!0,a.process(s),l.process(s),h.process(s),c.process(s),u.process(s),d.process(s),p.process(s),m.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(f))};return{schedule:At.reduce((e,o)=>{const a=r[o];return e[o]=(e,o=!1,r=!1)=>(n||(n=!0,i=!0,s.isProcessing||t(f)),a.schedule(e,o,r)),e},{}),cancel:t=>{for(let e=0;e<At.length;e++)r[At[e]].cancel(t)},state:s,steps:r}}const{schedule:Mt,cancel:Vt,state:Dt,steps:Rt}=Ct("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:bt,!0),Lt=new Set;let jt=!1,Bt=!1,Ft=!1;function It(){if(Bt){const t=Array.from(Lt).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),n=new Map;e.forEach(t=>{const e=function(t){const e=[];return Pt.forEach(n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}(t);e.length&&(n.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();const e=n.get(t);e&&e.forEach(([e,n])=>{t.getValue(e)?.set(n)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}Bt=!1,jt=!1,Lt.forEach(t=>t.complete(Ft)),Lt.clear()}function Ot(){Lt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Bt=!0)})}class Ut{constructor(t,e,n,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Lt.add(this),jt||(jt=!0,Mt.read(Ot),Mt.resolveKeyframes(It))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;if(null===t[0]){const s=i?.get(),o=t[t.length-1];if(void 0!==s)t[0]=s;else if(n&&e){const i=n.readValue(e,o);null!=i&&(t[0]=i)}void 0===t[0]&&(t[0]=o),i&&void 0===s&&i.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Lt.delete(this)}cancel(){"scheduled"===this.state&&(Lt.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const Nt=t=>/^0[^.\s]+$/u.test(t);function Wt(t){return"number"==typeof t?0===t:null===t||("none"===t||"0"===t||Nt(t))}const $t=new Set([Y,X]);function Yt(t,e){let n=G(t);return $t.has(n)||(n=U),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Xt=new Set(["auto","none","0"]);class zt extends Ut{constructor(t,e,n,i,s){super(t,e,n,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let n=t[a];if("string"==typeof n&&(n=n.trim(),ot(n))){const i=ht(n,e.current);void 0!==i&&(t[a]=i),a===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!Z.has(n)||2!==t.length)return;const[i,s]=t,o=tt(i),r=tt(s);if(at(i)!==at(s)&&St[n])this.needsMeasurement=!0;else if(o!==r)if(wt(o)&&wt(r))for(let a=0;a<t.length;a++){const e=t[a];"string"==typeof e&&(t[a]=parseFloat(e))}else St[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let i=0;i<t.length;i++)(null===t[i]||Wt(t[i]))&&n.push(i);n.length&&function(t,e,n){let i,s=0;for(;s<t.length&&!i;){const e=t[s];"string"==typeof e&&!Xt.has(e)&&B(e).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=Yt(n,i)}(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=St[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}measureEndState(){const{element:t,name:e,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const i=t.getValue(e);i&&i.jump(this.measuredOrigin,!1);const s=n.length-1,o=n[s];n[s]=St[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}const Ht=t=>1e3*t,Kt=t=>t/1e3;function Gt(t,e){-1===t.indexOf(e)&&t.push(e)}function _t(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class qt{constructor(){this.subscriptions=[]}add(t){return Gt(this.subscriptions,t),()=>_t(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let s=0;s<i;s++){const i=this.subscriptions[s];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Zt(t){let e;return()=>(void 0===e&&(e=t()),e)}const Jt={};function Qt(t,e){const n=Zt(t);return()=>Jt[e]??n()}const te=Qt(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),ee=t=>null!==t;function ne(t,{repeat:e,repeatType:n="loop"},i,s=1){const o=t.filter(ee),r=s<0||e&&"loop"!==n&&e%2==1?0:o.length-1;return r&&void 0!==i?i:o[r]}class ie{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}const se={layout:0,mainThread:0,waapi:0},oe=t=>Array.isArray(t)&&"number"==typeof t[0],re=Qt(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),ae=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let o=0;o<s;o++)i+=Math.round(1e4*t(o/(s-1)))/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},le=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,he={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:le([0,.65,.55,1]),circOut:le([.55,0,1,.45]),backIn:le([.31,.01,.66,-.59]),backOut:le([.33,1.53,.69,.99])};function ce(t,e){return t?"function"==typeof t?re()?ae(t,e):"ease-out":oe(t)?le(t):Array.isArray(t)?t.map(t=>ce(t,e)||he.easeOut):he[t]:void 0}function ue(t,e,n,{delay:i=0,duration:s=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:l}={},h=void 0){const c={[e]:n};l&&(c.offset=l);const u=ce(a,s);Array.isArray(u)&&(c.easing=u),kt.value&&se.waapi++;const d={delay:i,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:"reverse"===r?"alternate":"normal"};h&&(d.pseudoElement=h);const p=t.animate(c,d);return kt.value&&p.finished.finally(()=>{se.waapi--}),p}function de(t){return"function"==typeof t&&"applyToOptions"in t}class pe extends ie{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:n,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:r,onComplete:a}=t;this.isPseudoElement=Boolean(s),this.allowFlatten=o,this.options=t,t.type;const l=function({type:t,...e}){return de(t)&&re()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=ue(e,n,i,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const t=ne(i,this.options,r,this.speed);this.updateMotionValue&&this.updateMotionValue(t),function(t,e,n){(t=>t.startsWith("--"))(e)?t.style.setProperty(e,n):t.style[e]=n}(e,n,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Kt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Kt(t)}get time(){return Kt(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ht(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&te()?(this.animation.timeline=t,bt):e(this)}}const me=new Set(["opacity","clipPath","filter","transform"]),{schedule:fe,cancel:ye}=Ct(queueMicrotask,!1);let ge;function ve(){ge=void 0}const xe={now:()=>(void 0===ge&&xe.set(Dt.isProcessing||Et.useManualTiming?Dt.timestamp:performance.now()),ge),set:t=>{ge=t,queueMicrotask(ve)}};function we(t,e){return e?t*(1e3/e):0}const Te={current:void 0};class Pe{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{const e=xe.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const n of this.dependents)n.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=xe.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new qt);const n=this.events[t].add(e);return"change"===t?()=>{n(),Mt.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Te.current&&Te.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=xe.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return we(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Se(t,e){return new Pe(t,e)}const be=[...Q,V,U],Ee=new WeakMap;function Ae(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function ke(t){return"string"==typeof t||Array.isArray(t)}const Ce=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Me=["initial",...Ce];function Ve(t){return Ae(t.animate)||Me.some(e=>ke(t[e]))}function De(t){return Boolean(Ve(t)||t.variants)}function Re(t){const e=[{},{}];
vendor: 4,512 bytes, line 1
1return t?.values.forEach((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()}),e}function Le(t,e,n,i){if("function"==typeof e){const[s,o]=Re(i);e=e(void 0!==n?n:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[s,o]=Re(i);e=e(void 0!==n?n:t.custom,s,o)}return e}const je=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Be={};function Fe(t){Be=t}class Ie{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,skipAnimations:s,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Ut,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const t=xe.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,Mt.render(this.render,!1,!0))};const{latestValues:l,renderState:h}=r;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=h,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=s,this.options=a,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=Ve(e),this.isVariantNode=De(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(e,{},this);for(const d in u){const t=u[d];void 0!==l[d]&&q(t)&&t.set(l[d])}}mount(t){if(this.hasBeenMounted)for(const e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=t,Ee.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(o.current||a(),this.shouldReduceMotion=s.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Vt(this.notifyUpdate),Vt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&me.has(t)&&this.current instanceof HTMLElement){const{factory:n,keyframes:i,times:s,ease:o,duration:r}=e.accelerate,a=new pe({element:this.current,name:t,keyframes:i,times:s,ease:o,duration:Ht(r)}),l=n(a);return void this.valueSubscriptions.set(t,()=>{l(),a.cancel()})}const n=h.has(t);n&&this.onBindTransform&&this.onBindTransform();const i=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&Mt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;"undefined"!=typeof window&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in Be){const e=Be[t];if(!e)continue;const{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const e=this.features[t];
vendor: 5,089 bytes, line 1
1e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let n=0;n<je.length;n++){const e=je[n];this.propEventSubscriptions[e]&&(this.propEventSubscriptions[e](),delete this.propEventSubscriptions[e]);const i=t["on"+e];i&&(this.propEventSubscriptions[e]=this.on(e,i))}this.prevMotionValues=function(t,e,n){for(const i in e){const s=e[i],o=n[i];if(q(s))t.addValue(i,s);else if(q(o))t.addValue(i,Se(s,{owner:t}));else if(o!==s)if(t.hasValue(i)){const e=t.getValue(i);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{const e=t.getStaticValue(i);t.addValue(i,Se(void 0!==e?e:s,{owner:t}))}}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=Se(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){let n=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var i;return null!=n&&("string"==typeof n&&(et(n)||Nt(n))?n=parseFloat(n):(i=n,!be.find(J(i))&&U.test(e)&&(n=Yt(t,e))),this.setBaseTarget(t,q(n)?n.get():n)),q(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){const{initial:e}=this.props;let n;if("string"==typeof e||"object"==typeof e){const i=Le(this.props,e,this.presenceContext?.custom);i&&(n=i[t])}if(e&&void 0!==n)return n;const i=this.getBaseTargetFromProps(this.props,t);return void 0===i||q(i)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new qt),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){fe.render(this.render)}}class Oe extends Ie{constructor(){super(...arguments),this.KeyframeResolver=zt}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){const n=t.style;return n?n[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;q(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function Ue(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Ne=(t,e)=>e&&"number"==typeof t?e.transform(t):t,We={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$e=l.length;function Ye(t,e,n){const{style:i,vars:s,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const t=e[l];if(h.has(l))r=!0;else if(it(l))s[l]=t;else{const e=Ne(t,H[l]);l.startsWith("origin")?(a=!0,o[l]=e):i[l]=e}}if(e.transform||(r||n?i.transform=function(t,e,n){let i="",s=!0;for(let o=0;o<$e;o++){const r=l[o],a=t[r];if(void 0===a)continue;let h=!0;if("number"==typeof a)h=a===(r.startsWith("scale")?1:0);else{const t=parseFloat(a);h=r.startsWith("scale")?1===t:0===t}if(!h||n){const t=Ne(a,H[r]);h||(s=!1,i+=`${We[r]||r}(${t}) `),n&&(e[r]=t)}}return i=i.trim(),n?i=n(e,s?"":i):s&&(i="none"),i}(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:t="50%",originY:e="50%",originZ:n=0}=o;i.transformOrigin=`${t} ${e} ${n}`}}const Xe={offset:"stroke-dashoffset",array:"stroke-dasharray"},ze={offset:"strokeDashoffset",array:"strokeDasharray"};const He=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Ke(t,{attrX:e,attrY:n,attrScale:i,pathLength:s,pathSpacing:o=1,pathOffset:r=0,...a},l,h,c){if(Ye(t,a,h),l)return void(t.style.viewBox&&(t.attrs.viewB
1ox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:u,style:d}=t;u.transform&&(d.transform=u.transform,delete u.transform),(d.transform||u.transformOrigin)&&(d.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),d.transform&&(d.transformBox=c?.transformBox??"fill-box",delete u.transformBox);for(const p of He)void 0!==u[p]&&(d[p]=u[p],delete u[p]);void 0!==e&&(u.x=e),void 0!==n&&(u.y=n),void 0!==i&&(u.scale=i),void 0!==s&&function(t,e,n=1,i=0,s=!0){t.pathLength=1;const o=s?Xe:ze;t[o.offset]=""+-i,t[o.array]=`${e} ${n}`}(u,s,o,r,!1)}const Ge=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"]),_e=t=>"string"==typeof t&&"svg"===t.toLowerCase();function qe(t,{style:e,vars:n},i,s){const o=t.style;let r;for(r in e)o[r]=e[r];for(r in s?.applyProjectionStyles(o,i),n)o.setProperty(r,n[r])}function Ze(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Je={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!E.test(t))return t;t=parseFloat(t)}return`${Ze(t,e.target.x)}% ${Ze(t,e.target.y)}%`}},Qe=(t,e,n)=>t+(e-t)*n,tn={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=U.parse(t);if(s.length>5)return i;const o=U.createTransformer(t),r="number"!=typeof s[0]?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+r]/=a,s[1+r]/=l;const h=Qe(a,l,.5);return"number"==typeof s[2+r]&&(s[2+r]/=h),"number"==typeof s[3+r]&&(s[3+r]/=h),o(s)}},en={borderRadius:{...Je,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Je,borderTopRightRadius:Je,borderBottomLeftRadius:Je,borderBottomRightRadius:Je,boxShadow:tn};function nn(t,{layout:e,layoutId:n}){return h.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!en[t]||"opacity"===t)}function sn(t,e,n){const i=t.style,s=e?.style,o={};if(!i)return o;for(const r in i)(q(i[r])||s&&q(s[r])||nn(r,t)||void 0!==n?.getValue(r)?.liveStyle)&&(o[r]=i[r]);return o}function on(t,e,n){const i=sn(t,e,n);for(const s in t)if(q(t[s])||q(e[s])){i[-1!==l.indexOf(s)?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s]=t[s]}return i}class rn extends Oe{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=_}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(h.has(e)){const t=G(e);return t&&t.default||0}return e=Ge.has(e)?e:Ue(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return on(t,e,n)}
1build(t,e,n){Ke(t,e,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,e,n,i){!function(t,e,n,i){qe(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(Ge.has(s)?s:Ue(s),e.attrs[s])}(t,e,0,i)}mount(t){this.isSVGTag=_e(t.tagName),super.mount(t)}}function an({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function ln(t){return void 0===t||1===t}function hn({scale:t,scaleX:e,scaleY:n}){return!ln(t)||!ln(e)||!ln(n)}function cn(t){return hn(t)||un(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function un(t){return dn(t.x)||dn(t.y)}function dn(t){return t&&"0%"!==t}function pn(t,e,n){return n+e*(t-n)}function mn(t,e,n,i,s){return void 0!==s&&(t=pn(t,s,i)),pn(t,n,i)+e}function fn(t,e=0,n=1,i,s){t.min=mn(t.min,e,n,i,s),t.max=mn(t.max,e,n,i,s)}function yn(t,{x:e,y:n}){fn(t.x,e.translate,e.scale,e.originPoint),fn(t.y,n.translate,n.scale,n.originPoint)}const gn=.999999999999,vn=1.0000000000001;function xn(t,e){t.min=t.min+e,t.max=t.max+e}function wn(t,e,n,i,s=.5){fn(t,e,n,Qe(t.min,t.max,s),i)}function Tn(t,e){wn(t.x,e.x,e.scaleX,e.scale,e.originX),wn(t.y,e.y,e.scaleY,e.scale,e.originY)}function Pn(t,e){return an(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}class Sn extends Oe{constructor(){super(...arguments),this.type="html",this.renderInstance=qe}readValueFromInstance(t,e){if(h.has(e))return this.projection?.isProjecting?gt(e):((t,e)=>{const{transform:n="none"}=getComputedStyle(t);return vt(n,e)})(t,e);{const i=(n=t,window.getComputedStyle(n)),s=(it(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return Pn(t,e)}build(t,e,n){Ye(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return sn(t,e,n)}}const bn=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function En(t){return"string"==typeof t&&!t.includes("-")&&!!(bn.indexOf(t)>-1||/[A-Z]/u.test(t))}const An=(t,e)=>e.isSVG??En(t)?new rn(e):new Sn(e,{allowProjection:t!==i.Fragment});var kn=n(74848);const Cn=(0,i.createContext)({}),Mn=(0,i.createContext)({strict:!1}),Vn=(0,i.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Dn=(0,i.createContext)({});function Rn(t){const{initial:e,animate:n}=function(t,e){if(Ve(t)){const{initial:e,animate:n}=t;return{initial:!1===e||ke(e)?e:void 0,animate:ke(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,i.useContext)(Dn));return(0,i.useMemo)(()=>({initial:e,animate:n}),[Ln(e),Ln(n)])}function Ln(t){return Array.isArray(t)?t.join(" "):t}const jn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Bn(t,e,n){for(const i in e)q(e[i])||nn(i,n)||(t[i]=e[i])}function Fn(t,e){const n={};return Bn(n,t.style||{},t),Object.assign(n,function({transformTemplate:t},e){return(0,i.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return Ye(n,e,t),Object.assign({},n.vars,n.style)},[e])}(t,e)),n}function In(t,e){const n={},i=Fn(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const On=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}});function Un(t,e,n,s){const o=(0,i.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Ke(n,e,_e(s),t.transformTemplate,t.style),{...n.attrs,style:{...n.style}}},[e]);if(t.style){const e={};Bn(e,t.style,t),o.style={...e,...o.style}}return o}const Nn=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Wn(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Nn.has(t)}let $n=t=>!Wn(t);try{"function"==typeof(Yn=require("@emotion/is-prop-valid").default)&&($n=t=>t.startsWith("on")?!Wn(t):Yn(t))}catch{}var Yn;function Xn(t,e,n,{latestValues:s},o,r=!1,a){const l=(a??En(t)?Un:In)(e,s,o,t),h=function(t,e,n){const i={};for(const s in t)"values"===s&&"object"==typeof t.values||($n(s)||!0===n&&Wn(s)||!e&&!Wn(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}(e,"string"==typeof t,r),c=t!==i.Fragment?{...h,...l,ref:n}:{},{children:u}=e,d=(0,i.useMemo)(()=>q(u)?u.get():u,[u]);return(0,i.createElement)(t,{...c,children:d})}function zn(t){return q(t)?t.get():t}const Hn=(0,i.createContext)(null);function Kn(t,e,n,i){const s={},o=i(t,{});for(const d in o)s[d]=zn(o[d]);let{initial:r,animate:a}=t;const l=Ve(t),h=De(t);e&&h&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let c=!!n&&!1===n.initial;c=c||!1===r;const u=c?a:r;if(u&&"boolean"!=typeof u&&!Ae(u)){const e=Array.isArray(u)?u:[u];for(let n=0;n<e.length;n++){const i=Le(t,e[n]);if(i){const{transitionEnd:t,transition:e,...n}=i;for(const i in n){let t=n[i];if(Array.isArray(t)){t=t[c?t.length-1:0]}null!==t&&(s[i]=t)}for(const i in t)s[i]=t[i]}}}return s}const Gn=t=>(e,n)=>{const s=(0,i.useContext)(Dn),o=(0,i.useContext)(Hn),r=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,s){return{latestValues:Kn(n,i,s,t),renderState:e()}}(t,e,s,o);return n?r():function(t){const e=(0,i.useRef)(null);return null===e.current&&(e.current=t()),e.current}(r)},_n=Gn({scrapeMotionValuesFromProps:sn,createRenderState:jn}),qn=Gn({scrapeMotionValuesFromProps:on,createRenderState:On}),Zn={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Jn=!1;function Qn(){return function(){if(Jn)return;const t={};for(const e in Zn)t[e]={isEnabled:t=>Zn[e].some(e=>!!t[e])};Fe(t),Jn=!0}(),Be}const ti=Symbol.for("motionComponentSymbol");function ei(t,e,n){const s=(0,i.useRef)(n);(0,i.useInsertionEffect)(()=>{s.current=n});const o=(0,i.useRef)(null);return(0,i.useCallback)(n=>{n&&t.onMount?.(n),e&&(n?e.mount(n):e.unmount());const i=s.current;if("function"==typeof i)if(n){const t=i(n);"function"==typeof t&&(o.current=t)}else o.current?(o.current(),o.current=null):i(n);else i&&(i.current=n)},[e])}const ni="data-"+Ue("framerAppearId"),ii=(0,i.createContext)({});function si(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}const oi="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function ri(t,e,n,s,o,r){const{visualElement:a}=(0,i.useContext)(Dn),l=(0,i.useContext)(Mn),h=(0,i.useContext)(Hn),c=(0,i.useContext)(Vn),u=c.reducedMotion,d=c.skipAnimations,p=(0,i.useRef)(null),m=(0,i.useRef)(!1);s=s||l.renderer,!p.current&&s&&(p.current=s(t,{visualState:e,parent:a,props:n,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:u,skipAnimations:d,isSVG:r}),m.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));const f=p.current,y=(0,i.useContext)(ii);!f||f.projection||!o||"html"!==f.type&&"svg"!==f.type||function(t,e,n,i){const{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutCrossfade:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:ai(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:Boolean(r)||a&&si(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,crossfade:c,layoutScroll:l,layoutRoot:h})}(p.current,n,o,y);const g=(0,i.useRef)(!1);(0,i.useInsertionEffect)(()=>{f&&g.current&&f.update(n,h)});const v=n[ni],x=(0,i.useRef)(Boolean(v)&&"undefined"!=typeof window&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return oi(()=>{m.current=!0,f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),x.current&&f.animationState&&f.animationState.animateChanges())}),(0,i.useEffect)(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),x.current=!1),f.enteringChildren=void 0)}),f}function ai(t){if(t)return!1!==t.options.allowProjection?t.projection:ai(t.parent)}function li(t,{forwardMotionProps:e=!1,type:n}={},s,o){s&&function(t){const e=Qn();for(const n in t)e[n]={...e[n],...t[n]};Fe(e)}(s);const r=n?"svg"===n:En(t),a=r?qn:_n;function l(n,s){let l;const h={...(0,i.useContext)(Vn),...n,layoutId:hi(n)},{isStatic:c}=h,u=Rn(n),d=a(n,c);if(!c&&"undefined"!=typeof window){!function(){(0,i.useContext)(Mn).strict;0}();const e=function(t){const e=Qn(),{drag:n,layout:i}=e;if(!n&&!i)return{};const s={...n,...i};return{MeasureLayout:n?.isEnabled(t)||i?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}
1(h);l=e.MeasureLayout,u.visualElement=ri(t,d,h,o,e.ProjectionNode,r)}return(0,kn.jsxs)(Dn.Provider,{value:u,children:[l&&u.visualElement?(0,kn.jsx)(l,{visualElement:u.visualElement,...h}):null,Xn(t,n,ei(d,u.visualElement,s),d,c,e,r)]})}l.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;const h=(0,i.forwardRef)(l);return h[ti]=t,h}function hi({layoutId:t}){const e=(0,i.useContext)(Cn).id;return e&&void 0!==t?e+"-"+t:t}function ci(t,e){if("undefined"==typeof Proxy)return li;const n=new Map,i=(n,i)=>li(n,i,t,e);return new Proxy((t,e)=>i(t,e),{get:(s,o)=>"create"===o?i:(n.has(o)||n.set(o,li(o,void 0,t,e)),n.get(o))})}class ui{constructor(t){this.isMounted=!1,this.node=t}update(){}}function di(t,e,n){const i=t.getProps();return Le(i,e,void 0!==n?n:i.custom,t)}function pi(t,e){if(t?.inherit&&e){const{inherit:n,...i}=t;return{...e,...i}}return t}function mi(t,e){const n=t?.[e]??t?.default??t;return n!==t?pi(n,t):n}const fi=t=>Array.isArray(t);function yi(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Se(n))}function gi(t){return fi(t)?t[t.length-1]||0:t}function vi(t,e){const n=t.getValue("willChange");if(i=n,Boolean(q(i)&&i.add))return n.add(e);if(!n&&Et.WillChange){const n=new Et.WillChange("auto");t.addValue("willChange",n),n.add(e)}var i}function xi(t){return t.props[ni]}const wi=(t,e)=>n=>e(t(n)),Ti=(...t)=>t.reduce(wi);function Pi(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Si(t,e){return n=>n>0?e:t}const bi=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},Ei=[T,w,M];function Ai(t){const e=(n=t,Ei.find(t=>t.test(n)));var n;if(Boolean(e),!Boolean(e))return!1;let i=e.parse(t);return e===M&&(i=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let s=0,o=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;s=Pi(a,i,t+1/3),o=Pi(a,i,t),r=Pi(a,i,t-1/3)}else s=o=r=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*r),alpha:i}}(i)),i}const ki=(t,e)=>{const n=Ai(t),i=Ai(e);if(!n||!i)return Si(t,e);const s={...n};return t=>(s.red=bi(n.red,i.red,t),s.green=bi(n.green,i.green,t),s.blue=bi(n.blue,i.blue,t),s.alpha=Qe(n.alpha,i.alpha,t),w.transform(s))},Ci=new Set(["none","hidden"]);function Mi(t,e){return n=>Qe(t,e,n)}function Vi(t){return"number"==typeof t?Mi:"string"==typeof t?ot(t)?Si:V.test(t)?ki:Li:Array.isArray(t)?Di:"object"==typeof t?V.test(t)?ki:Ri:Si}function Di(t,e){const n=[...t],i=n.length,s=t.map((t,n)=>Vi(t)(t,e[n]));return t=>{for(let e=0;e<i;e++)n[e]=s[e](t);return n}}function Ri(t,e){const n={...t,...e},i={};for(const s in n)void 0!==t[s]&&void 0!==e[s]&&(i[s]=Vi(t[s])(t[s],e[s]));return t=>{for(const e in i)n[e]=i[e](t);return n}}const Li=(t,e)=>{const n=U.createTransformer(e),i=B(t),s=B(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?Ci.has(t)&&!s.values.length||Ci.has(e)&&!i.values.length?function(t,e){return Ci.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):Ti(Di(function(t,e){const n=[],i={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const o=e.types[s],r=t.indexes[o][i[o]],a=t.values[r]??0;n[s]=a,i[o]++}return n}(i,s),s.values),n):Si(t,e)};function ji(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return Qe(t,e,n);return Vi(t)(t,e)}const Bi=t=>{const e=({timestamp:e})=>t(e);return{start:(t=!0)=>Mt.update(e,t),stop:()=>Vt(e),now:()=>Dt.isProcessing?Dt.timestamp:xe.now()}},Fi=2e4;function Ii(t){let e=0;let n=t.next(e);for(;!n.done&&e<Fi;)e+=50,n=t.next(e);return e>=Fi?1/0:e}function Oi(t,e,n){const i=Math.max(e-5,0);return we(n-t(i),e-i)}const Ui=100,Ni=10,Wi=1,$i=0,Yi=800,Xi=.3,zi=.3,Hi={granular:.01,default:2},Ki={granular:.005,default:.5},Gi=.01,_i=10,qi=.05,Zi=1,Ji=.001;function Qi({duration:t=Yi,bounce:e=Xi,velocity:n=$i,mass:i=Wi}){let s,o;Ht(_i);let r=1-e;r=c(qi,Zi,r),t=c(Gi,_i,Kt(t)),r<1?(s=e=>{const i=e*r,s=i*t,o=i-n,a=es(e,r),l=Math.exp(-s);return Ji-o/a*l},o=e=>{const i=e*r*t,o=i*n+n,a=Math.pow(r,2)*Math.pow(e,2)*t,l=Math.exp(-i),h=es(Math.pow(e,2),r);return(-s(e)+Ji>0?-1:1)*((o-a)*l)/h}):(s=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,o=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let i=n;for(let s=1;s<ts;s++)i-=t(i)/e(i);return i}(s,o,5/t);if(t=Ht(t),isNaN(a))return{stiffness:Ui,damping:Ni,duration:t};{const e=Math.pow(a,2)*i;return{stiffness:e,damping:2*r*Math.sqrt(i*e),duration:t}}}const ts=12;function es(t,e){return t*Math.sqrt(1-e*e)}const ns=["duration","bounce"],is=["stiffness","damping","mass"];function ss(t,e){return e.some(e=>void 0!==t[e])}function os(t=zi,e=Xi){const n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:h,mass:u,duration:d,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:$i,stiffness:Ui,damping:Ni,mass:Wi,isResolvedFromDuration:!1,...t};if(!ss(t,is)&&ss(t,ns))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(1.2*n),s=i*i,o=2*c(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:Wi,stiffness:s,damping:o}}else{const n=Qi({...t,velocity:0});e={...e,...n,mass:Wi},e.isResolvedFromDuration=!0}return e}({...n,velocity:-Kt(n.velocity||0)}),f=p||0,y=h/(2*Math.sqrt(l*u)),g=r-o,v=Kt(Math.sqrt(l/u)),x=Math.abs(g)<5;let w;if(i||(i=x?Hi.granular:Hi.default),s||(s=x?Ki.granular:Ki.default),y<1){const t=es(v,y);w=e=>{const n=Math.exp(-y*v*e);return r-n*((f+y*v*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}}else if(1===y)w=t=>r-Math.exp(-v*t)*(g+(f+v*g)*t);else{const t=v*Math.sqrt(y*y-1);w=e=>{const n=Math.exp(-y*v*e),i=Math.min(t*e,300);return r-n*((f+y*v*g)*Math.sinh(i)+t*g*Math.cosh(i))/t}}
1const T={calculatedDuration:m&&d||null,next:t=>{const e=w(t);if(m)a.done=t>=d;else{let n=0===t?f:0;y<1&&(n=0===t?Ht(f):Oi(w,t,e));const o=Math.abs(n)<=i,l=Math.abs(r-e)<=s;a.done=o&&l}return a.value=a.done?r:e,a},toString:()=>{const t=Math.min(Ii(T),Fi),e=ae(e=>T.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return T}function rs({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:h=.5,restSpeed:c}){const u=t[0],d={done:!1,value:u},p=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l;let m=n*e;const f=u+m,y=void 0===r?f:r(f);y!==f&&(m=y-u);const g=t=>-m*Math.exp(-t/i),v=t=>y+g(t),x=t=>{const e=g(t),n=v(t);d.done=Math.abs(e)<=h,d.value=d.done?y:n};let w,T;const P=t=>{var e;(e=d.value,void 0!==a&&e<a||void 0!==l&&e>l)&&(w=t,T=os({keyframes:[d.value,p(d.value)],velocity:Oi(v,t,d.value),damping:s,stiffness:o,restDelta:h,restSpeed:c}))};return P(0),{calculatedDuration:null,next:t=>{let e=!1;return T||void 0!==w||(e=!0,x(t),P(t)),void 0!==w&&t>=w?T.next(t-w):(!e&&x(t),d)}}}os.applyToOptions=t=>{const e=function(t,e=100,n){const i=n({...t,keyframes:[0,e]}),s=Math.min(Ii(i),Fi);return{type:"keyframes",ease:t=>i.next(s*t).value/e,duration:Kt(s)}}(t,100,os);return t.ease=e.ease,t.duration=Ht(e.duration),t.type="keyframes",t};const as=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function ls(t,e,n,i){if(t===e&&n===i)return bt;const s=e=>function(t,e,n,i,s){let o,r,a=0;do{r=e+(n-e)/2,o=as(r,i,s)-t,o>0?n=r:e=r}while(Math.abs(o)>1e-7&&++a<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:as(s(t),e,i)}const hs=ls(.42,0,1,1),cs=ls(0,0,.58,1),us=ls(.42,0,.58,1),ds=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ps=t=>e=>1-t(1-e),ms=ls(.33,1.53,.69,.99),fs=ps(ms),ys=ds(fs),gs=t=>(t*=2)<1?.5*fs(t):.5*(2-Math.pow(2,-10*(t-1))),vs=t=>1-Math.sin(Math.acos(t)),xs=ps(vs),ws=ds(vs),Ts={linear:bt,easeIn:hs,easeInOut:us,easeOut:cs,circIn:vs,circInOut:ws,circOut:xs,backIn:fs,backInOut:ys,backOut:ms,anticipate:gs},Ps=t=>{if(oe(t)){t.length;const[e,n,i,s]=t;return ls(e,n,i,s)}return"string"==typeof t?Ts[t]:t},Ss=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i};function bs(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const o=t.length;if(e.length,1===o)return()=>e[0];if(2===o&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=function(t,e,n){const i=[],s=n||Et.mix||ji,o=t.length-1;for(let r=0;r<o;r++){let n=s(t[r],t[r+1]);if(e){const t=Array.isArray(e)?e[r]||bt:e;n=Ti(t,n)}i.push(n)}return i}(e,i,s),l=a.length,h=n=>{if(r&&n<t[0])return e[0];let i=0;if(l>1)for(;i<t.length-2&&!(n<t[i+1]);i++);const s=Ss(t[i],t[i+1],n);return a[i](s)};return n?e=>h(c(t[0],t[o-1],e)):h}function Es(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=Ss(0,e,i);t.push(Qe(n,1,s))}}(e,t.length-1),e}function As({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=(t=>Array.isArray(t)&&"number"!=typeof t[0])(i)?i.map(Ps):Ps(i),o={done:!1,value:e[0]},r=function(t,e){return t.map(t=>t*e)}(n&&n.length===e.length?n:Es(e),t),a=bs(r,e,{ease:Array.isArray(s)?s:(l=e,h=s,l.map(()=>h||us).splice(0,l.length-1))});var l,h;return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}const ks={decay:rs,inertia:rs,tween:As,keyframes:As,spring:os};function Cs(t){"string"==typeof t.type&&(t.type=ks[t.type])}const Ms=t=>t/100;class Vs extends ie{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:t}=this.options;t&&t.updatedAt!==xe.now()&&this.tick(xe.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},se.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){const{options:t}=this;Cs(t);const{type:e=As,repeat:n=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:r}=t;const a=e||As;a!==As&&"number"!=typeof r[0]&&(this.mixKeyframes=Ti(Ms,ji(r[0],r[1])),r=[0,100]);const l=a({...t,keyframes:r});"mirror"===s&&(this.mirroredGenerator=a({...t,keyframes:[...r].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=Ii(l));const{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=l}updateTime(t){const e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){const{generator:n,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:r,calculatedDuration:a}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:h,repeat:u,repeatType:d,repeatDelay:p,type:m,onUpdate:f,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);const g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let x=this.currentTime,w=n;if(u){const t=Math.min(this.currentTime,i)/r;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,u+1);Boolean(e%2)&&("reverse"===d?(n=1-n,p&&(n-=p/r)):"mirror"===d&&(w=o)
1),x=c(0,1,n)*r}const T=v?{done:!1,value:h[0]}:w.next(x);s&&(T.value=s(T.value));let{done:P}=T;v||null===a||(P=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return S&&m!==rs&&(T.value=ne(h,this.options,y,this.speed)),f&&f(T.value),S&&this.finish(),T}then(t,e){return this.finished.then(t,e)}get duration(){return Kt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Kt(t)}get time(){return Kt(this.currentTime)}set time(t){t=Ht(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(xe.now());const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=Kt(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Bi,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();const n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=e??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(xe.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,se.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}const Ds={anticipate:gs,backInOut:ys,circInOut:ws};function Rs(t){"string"==typeof t.ease&&t.ease in Ds&&(t.ease=Ds[t.ease])}class Ls extends pe{constructor(t){Rs(t),Cs(t),super(t),void 0!==t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:e,onUpdate:n,onComplete:i,element:s,...o}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);const r=new Vs({...o,autoplay:!1}),a=Math.max(10,xe.now()-this.startTime),l=c(0,10,a-10);e.setWithVelocity(r.sample(Math.max(0,a-l)).value,r.sample(a).value,l),r.stop()}}const js=(t,e)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!U.test(t)&&"0"!==t||t.startsWith("url(")));function Bs(t){t.duration=0,t.type="keyframes"}const Fs=new Set(["opacity","clipPath","filter","transform"]),Is=Zt(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class Os extends ie{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:r,name:a,motionValue:l,element:h,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=xe.now();const u={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:s,repeatType:o,name:a,motionValue:l,element:h,...c},d=h?.KeyframeResolver||Ut;this.keyframeResolver=new d(r,(t,e,n)=>this.onKeyframesResolved(t,e,u,!n),a,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,n,i){this.keyframeResolver=void 0;const{name:s,type:o,velocity:r,delay:a,isHandoff:l,onUpdate:h}=n;this.resolvedAt=xe.now(),function(t,e,n,i){const s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;const o=t[t.length-1],r=js(s,e),a=js(o,e);return!(!r||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||de(n))&&i)}(t,s,o,r)||(!Et.instantAnimations&&a||h?.(ne(t,n,e)),t[0]=t[t.length-1],Bs(n),n.repeat=0);const c={startTime:i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...n,keyframes:t},u=!l&&function(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:o,type:r}=t,a=e?.owner?.current;if(!(a instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:h}=e.owner.getProps();return Is()&&n&&Fs.has(n)&&("transform"!==n||!h)&&!l&&!i&&"mirror"!==s&&0!==o&&"inertia"!==r}(c),d=c.motionValue?.owner?.current,p=u?new Ls({...c,element:d}):new Vs(c);p.finished.then(()=>{this.notifyFinished()}).catch(bt),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ft=!0,Ot(),It(),Ft=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const Us={type:"spring",stiffness:500,damping:25,restSpeed:10},Ns={type:"keyframes",duration:.8},Ws={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},$s=(t,{keyframes:e})=>e.length>2?Ns:h.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:Us:Ws,Ys=t=>null!==t;const Xs=(t,e,n,i={},s,o)=>r=>{const a=mi(i,t)||{},l=a.delay||i.delay||0;
vendor: 22,288 bytes, line 1
1let{elapsed:h=0}=i;h-=Ht(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-h,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:s};(function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:h,...c}){return!!Object.keys(c).length})(a)||Object.assign(c,$s(t,c)),c.duration&&(c.duration=Ht(c.duration)),c.repeatDelay&&(c.repeatDelay=Ht(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let u=!1;if((!1===c.type||0===c.duration&&!c.repeatDelay)&&(Bs(c),0===c.delay&&(u=!0)),(Et.instantAnimations||Et.skipAnimations||s?.shouldSkipAnimations)&&(u=!0,Bs(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,u&&!o&&void 0!==e.get()){const t=function(t,{repeat:e,repeatType:n="loop"},i){const s=t.filter(Ys),o=e&&"loop"!==n&&e%2==1?0:s.length-1;return o&&void 0!==i?i:s[o]}(c.keyframes,a);if(void 0!==t)return void Mt.update(()=>{c.onUpdate(t),c.onComplete()})}return a.isSync?new Vs(c):new Os(c)};function zs({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function Hs(t,e,{delay:n=0,transitionOverride:i,type:s}={}){let{transition:o,transitionEnd:r,...a}=e;const l=t.getDefaultTransition();o=o?pi(o,l):l;const h=o?.reduceMotion;i&&(o=i);const c=[],u=s&&t.animationState&&t.animationState.getState()[s];for(const d in a){const e=t.getValue(d,t.latestValues[d]??null),i=a[d];if(void 0===i||u&&zs(u,d))continue;const s={delay:n,...mi(o||{},d)},r=e.get();if(void 0!==r&&!e.isAnimating&&!Array.isArray(i)&&i===r&&!s.velocity)continue;let l=!1;if(window.MotionHandoffAnimation){const e=xi(t);if(e){const t=window.MotionHandoffAnimation(e,d,Mt);null!==t&&(s.startTime=t,l=!0)}}vi(t,d);const p=h??t.shouldReduceMotion;e.start(Xs(d,e,i,p&&Z.has(d)?{type:!1}:s,t,l));const m=e.animation;m&&c.push(m)}if(r){const e=()=>Mt.update(()=>{r&&function(t,e){const n=di(t,e);let{transitionEnd:i={},transition:s={},...o}=n||{};o={...o,...i};for(const r in o)yi(t,r,gi(o[r]))}(t,r)});c.length?Promise.all(c).then(e):e()}return c}function Ks(t,e,n,i=0,s=1){const o=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),r=t.size,a=(r-1)*i;return"function"==typeof n?n(o,r):1===s?o*i:a-o*i}function Gs(t,e,n={}){const i=di(t,e,"exit"===n.type?t.presenceContext?.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(Hs(t,i,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(i=0)=>{const{delayChildren:o=0,staggerChildren:r,staggerDirection:a}=s;return function(t,e,n=0,i=0,s=0,o=1,r){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(Gs(l,e,{...r,delay:n+("function"==typeof i?0:i)+Ks(t.variantChildren,l,i,s,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,i,o,r,a,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[t,e]="beforeChildren"===a?[o,r]:[r,o];return t().then(()=>e())}return Promise.all([o(),r(n.delay)])}const _s=Me.length;function qs(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&qs(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;n<_s;n++){const i=Me[n],s=t.props[i];(ke(s)||!1===s)&&(e[i]=s)}return e}function Zs(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const Js=[...Ce].reverse(),Qs=Ce.length;function to(t){return e=>Promise.all(e.map(({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map(e=>Gs(t,e,n));i=Promise.all(s)}else if("string"==typeof e)i=Gs(t,e,n);else{const s="function"==typeof e?di(t,e,n.custom):e;i=Promise.all(Hs(t,s,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}(t,e,n)))}function eo(t){let e=to(t),n=so(),i=!0,s=!1;const o=e=>(n,i)=>{const s=di(t,i,"exit"===e?t.presenceContext?.custom:void 0);if(s){const{transition:t,transitionEnd:e,...i}=s;n={...n,...i,...e}}return n};function r(r){const{props:a}=t,l=qs(t.parent)||{},h=[],c=new Set;let u={},d=1/0;for(let e=0;e<Qs;e++){const p=Js[e],m=n[p],f=void 0!==a[p]?a[p]:l[p],y=ke(f),g=p===r?m.isActive:null;!1===g&&(d=e);let v=f===l[p]&&f!==a[p]&&y;if(v&&(i||s)&&t.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...u},!m.isActive&&null===g||!f&&!m.prevProp||Ae(f)||"boolean"==typeof f)continue;if("exit"===p&&m.isActive&&!0!==g){m.prevResolvedValues&&(u={...u,...m.prevResolvedValues});continue}const x=no(m.prevProp,f);let w=x||p===r&&m.isActive&&!v&&y||e>d&&y,T=!1;const P=Array.isArray(f)?f:[f];let S=P.reduce(o(p),{});!1===g&&(S={});const{prevResolvedValues:b={}}=m,E={...b,...S},A=e=>{w=!0,c.has(e)&&(T=!0,c.delete(e)),m.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in E){const e=S[t],n=b[t];if(u.hasOwnProperty(t))continue;let i=!1;i=fi(e)&&fi(n)?!Zs(e,n):e!==n,i?null!=e?A(t):c.add(t):void 0!==e&&c.has(t)?A(t):m.protectedKeys[t]=!0}m.prevProp=f,m.prevResolvedValues=S,m.isActive&&(u={...u,...S}),(i||s)&&t.blockInitialAnimation&&(w=!1);const k=v&&x;w&&(!k||T)&&h.push(...P.map(e=>{const n={type:p};if("string"==typeof e&&(i||s)&&!k&&t.manuallyAnimateOnMount&&t.parent){const{parent:i}=t,s=di(i,e);if(i.enteringChildren&&s){const{delayChildren:e}=s.transition||{};n.delay=Ks(i.enteringChildren,t,e)}}return{animation:e,options:n}}))}if(c.size){const e={};if("boolean"!=typeof a.initial){const n=di(t,Array.isArray(a.initial)?a.initial[0]:a.initial);n&&n.transition&&(e.transition=n.transition)}c.forEach(n=>{const i=t.getBaseTarget(n),s=t.getValue(n);s&&(s.liveStyle=!0),e[n]=i??null}),h.push({animation:e})}let p=Boolean(h.length);return!i||!1!==a.initial&&a.initial!==a.animate||t.manuallyAnimateOnMount||(p=!1),i=!1,s=!1,p?e(h):Promise.resolve()}return{animateChanges:r,setActive:function(e,i){if(n[e].isActive===i)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,i)),n[e].isActive=i;const s=r(e);for(const t in n)n[t].protectedKeys={};return s},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=so(),s=!0}}}function no(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!Zs(e,t)}function io(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function so(){return{animate:io(!0),whileInView:io(),whileHover:io(),whileTap:io(),whileDrag:io(),whileFocus:io(),exit:io()}}let oo=0;const ro={animation:{Feature:class extends ui{constructor(t){super(t),t.animationState||(t.animationState=eo(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ae(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends ui{constructor(){super(...arguments),this.id=oo++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then(()=>{e(this.id)})}mount(){const{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}},ao={x:!1,y:!1};function lo(){return ao.x||ao.y}function ho(t){return[t("x"),t("y")]}function co(t){return t.max-t.min}function uo(t,e,n,i=.5){t.origin=i,t.originPoint=Qe(e.min,e.max,t.origin),t.scale=co(n)/co(e),t.translate=Qe(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function po(t,e,n,i){uo(t.x,e.x,n.x,i?i.originX:void 0),uo(t.y,e.y,n.y,i?i.originY:void 0)}function mo(t,e,n){t.min=n.min+e.min,t.max=t.min+co(e)}function fo(t,e,n){t.min=e.min-n.min,t.max=t.min+co(e)}function yo(t,e,n){fo(t.x,e.x,n.x),fo(t.y,e.y,n.y)}const go=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const vo=new Set(["INPUT","SELECT","TEXTAREA"]);function xo(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function wo(t){return"object"==typeof t&&null!==t}function To(t){return wo(t)&&"ownerSVGElement"in t}function Po(t,e,n){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let i=document;e&&(i=e.current);const s=n?.[t]??i.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(t=>null!=t)}const So=new WeakMap;let bo;const Eo=(t,e,n)=>(i,s)=>s&&s[0]?s[0][t+"Size"]:To(i)&&"getBBox"in i?i.getBBox()[e]:i[n],Ao=Eo("inline","width","offsetWidth"),ko=Eo("block","height","offsetHeight");function Co({target:t,borderBoxSize:e}){So.get(t)?.forEach(n=>{n(t,{get width(){return Ao(t,e)},get height(){return ko(t,e)}})})}function Mo(t){t.forEach(Co)}function Vo(t,e){bo||"undefined"!=typeof ResizeObserver&&(bo=new ResizeObserver(Mo));const n=Po(t);return n.forEach(t=>{let n=So.get(t);n||(n=new Set,So.set(t,n)),n.add(e),bo?.observe(t)}),()=>{n.forEach(t=>{const n=So.get(t);n?.delete(e),n?.size||bo?.unobserve(t)})}}const Do=new Set;let Ro;function Lo(t){return Do.add(t),Ro||(Ro=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Do.forEach(e=>e(t))},window.addEventListener("resize",Ro)),()=>{Do.delete(t),Do.size||"function"!=typeof Ro||(window.removeEventListener("resize",Ro),Ro=void 0)}}function jo(t,e){return"function"==typeof t?Lo(t):Vo(t,e)}const Bo=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function Fo(t){return{point:{x:t.pageX,y:t.pageY}}}function Io(t,e,n,i){return xo(t,e,(t=>e=>Bo(e)&&t(e,Fo(e)))(n),i)}const Oo=({current:t})=>t?t.ownerDocument.defaultView:null,Uo=(t,e)=>Math.abs(t-e);const No=new Set(["auto","scroll"]);class Wo{constructor(t,e,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3,element:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=Xo(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=Uo(t.x,e.x),i=Uo(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!n)return;const{point:i}=t,{timestamp:s}=Dt;this.history.push({...i,timestamp:s});const{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=$o(e,this.transformPagePoint),Mt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i,resumeAnimation:s}=this.handlers;if(!this.dragSnapToOrigin&&this.startEvent||s&&s(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=Xo("pointercancel"===t.type?this.lastMoveEventInfo:$o(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!Bo(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=i||window;const a=$o(Fo(t),this.transformPagePoint),{point:l}=a,{timestamp:h}=Dt;this.history=[{...l,timestamp:h}];const{onSessionStart:c}=e;c&&c(t,Xo(a,this.history)),this.removeListeners=Ti(Io(this.contextWindow,"pointermove",this.handlePointerMove),Io(this.contextWindow,"pointerup",this.handlePointerUp),Io(this.contextWindow,"pointercancel",this.handlePointerUp)),r&&this.startScrollTracking(r)}startScrollTracking(t){let e=t.parentElement;for(;e;){const t=getComputedStyle(e);(No.has(t.overflowX)||No.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const e=this.scrollPositions.get(t);if(!e)return;const n=t===window,i=n?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s=i.x-e.x,o=i.y-e.y;0===s&&0===o||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s,this.lastMoveEventInfo.point.y+=o):this.history.length>0&&(this.history[0].x-=s,this.history[0].y-=o),this.scrollPositions.set(t,i),Mt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Vt(this.updatePoint)}}function $o(t,e){return e?{point:e(t.point)}:t}function Yo(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Xo({point:t},e){return{point:t,delta:Yo(t,Ho(e)),offset:Yo(t,zo(e)),velocity:Ko(e,.1)}}function zo(t){return t[0]}function Ho(t){return t[t.length-1]}function Ko(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=Ho(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>Ht(e)));)n--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&s.timestamp-i.timestamp>2*Ht(e)&&(i=t[1]);const o=Kt(s.timestamp-i.timestamp);if(0===o)return{x:0,y:0};const r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function Go(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function _o(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}const qo=.35;function Zo(t,e,n){return{min:Jo(t,e),max:Jo(t,n)}}function Jo(t,e){return"number"==typeof t?t:t[e]||0}const Qo=new WeakMap;class tr{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:n}={}){const{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;const{dragSnapToOrigin:s}=this.getProps();this.panSession=new Wo(t,{onSessionStart:t=>{e&&this.snapToCursor(Fo(t).point),this.stopAnimation()},onStart:(t,e)=>{const{drag:n,dragPropagation:i,onDragStart:s}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(o=n)||"y"===o?ao[o]?null:(ao[o]=!0,()=>{ao[o]=!1}):ao.x||ao.y?null:(ao.x=ao.y=!0,()=>{ao.x=ao.y=!1}),!this.openDragLock))return;var o;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ho(t=>{let e=this.getAxisMotionValue(t).get()||0;if(b.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[t];if(i){e=co(i)*(parseFloat(e)/100)}}}this.originPoint[t]=e}),s&&Mt.update(()=>s(t,e),!1,!0),vi(this.visualElement,"transform");const{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&s&&s(this.currentDirection));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&Mt.update(()=>o(t,e),!1,!0)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>{const{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,distanceThreshold:n,contextWindow:Oo(this.visualElement),element:this.visualElement.current})}stop(t,e){const n=t||this.latestPointerEvent,i=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!n)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:r}=this.getProps();r&&Mt.postRender(()=>r(n,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!nr(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?Qe(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?Qe(n,t,i.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&si(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(t,{top:e,left:n,bottom:i,right:s}){return{x:Go(t.x,n,s),y:Go(t.y,e,i)}}(n.layoutBox,t),this.elastic=function(t=qo){return!1===t?t=0:!0===t&&(t=qo),{x:Zo(t,"left","right"),y:Zo(t,"top","bottom")}}(e),i!==this.constraints&&!si(t)&&n&&this.constraints&&!this.hasMutatedConstraints&&ho(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!si(t))return!1;const n=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=function(t,e,n){const i=Pn(t,n),{scroll:s}=e;return s&&(xn(i.x,s.offset.x),xn(i.y,s.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let o=function(t,e){return{x:_o(t.x,e.x),y:_o(t.y,e.y)}}(i.layout.layoutBox,s);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=an(t))}return o}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=ho(r=>{if(!nr(r,e,this.currentDirection))return;let l=a&&a[r]||{};o&&(l={min:0,max:0});const h=i?200:1e6,c=i?40:1e7,u={type:"inertia",velocity:n?t[r]:0,bounceStiffness:h,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(r,u)});return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return vi(this.visualElement,t),n.start(Xs(t,n,0,e,this.visualElement,!1))}stopAnimation(){ho(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[e];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){ho(e=>{const{drag:n}=this.getProps();if(!nr(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:o}=i.layout.layoutBox[e],r=s.get()||0;s.set(t[e]-Qe(n,o,.5)+r)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!si(e)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ho(t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const n=e.get();i[t]=function(t,e){let n=.5;const i=co(t),s=co(e);return s>i?n=Ss(e.min,e.max-i,t.min):i>s&&(n=Ss(t.min,t.max-s,e.min)),c(0,1,n)}({min:n,max:n},this.constraints[t])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),ho(e=>{if(!nr(e,t,null))return;const n=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];n.set(Qe(s,o,i[e]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Qo.set(this.visualElement,this);const t=this.visualElement.current,e=Io(t,"pointerdown",e=>{const{drag:n,dragListener:i=!0}=this.getProps(),s=e.target,o=s!==t&&function(t){return vo.has(t.tagName)||!0===t.isContentEditable}(s);n&&i&&!o&&this.start(e)});let n;const i=()=>{const{dragConstraints:e}=this.getProps();si(e)&&e.current&&(this.constraints=this.resolveRefConstraints(),n||(n=function(t,e,n){const i=jo(t,er(n)),s=jo(e,er(n));return()=>{i(),s()}}(t,e.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,o=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Mt.read(i);const r=xo(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(ho(e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),e(),o(),a&&a(),n&&n()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=qo,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:r}}}function er(t){let e=!0;return()=>{e?e=!1:t()}}function nr(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const ir=t=>
1(e,n)=>{t&&Mt.update(()=>t(e,n),!1,!0)};const sr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let or=!1;class rr extends i.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=t;s&&(e.group&&e.group.add(s),n&&n.register&&i&&n.register(s),or&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),sr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:s}=this.props,{projection:o}=n;return o?(o.isPresent=s,t.layoutDependency!==e&&o.setOptions({...o.options,layoutDependency:e}),or=!0,i||t.layoutDependency!==e||void 0===e||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||Mt.postRender(()=>{const t=o.getStack();t&&t.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),fe.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;or=!0,i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ar(t){const[e,n]=function(t=!0){const e=(0,i.useContext)(Hn);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:s,register:o}=e,r=(0,i.useId)();(0,i.useEffect)(()=>{if(t)return o(r)},[t]);const a=(0,i.useCallback)(()=>t&&s&&s(r),[r,s,t]);return!n&&s?[!1,a]:[!0]}(),s=(0,i.useContext)(Cn);return(0,kn.jsx)(rr,{...t,layoutGroup:s,switchLayoutGroup:(0,i.useContext)(ii),isPresent:e,safeToRemove:n})}function lr(t,e){const n=xe.now(),i=({timestamp:s})=>{const o=s-n;o>=e&&(Vt(i),t(o-e))};return Mt.setup(i,!0),()=>Vt(i)}const hr=["TopLeft","TopRight","BottomLeft","BottomRight"],cr=hr.length,ur=t=>"string"==typeof t?parseFloat(t):t,dr=t=>"number"==typeof t||E.test(t);function pr(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const mr=yr(0,.5,xs),fr=yr(.5,.95,bt);function yr(t,e,n){return i=>i<t?0:i>e?1:n(Ss(t,e,i))}function gr(t,e){t.min=e.min,t.max=e.max}function vr(t,e){gr(t.x,e.x),gr(t.y,e.y)}function xr(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function wr(t,e,n,i,s){return t=pn(t-=e,1/n,i),void 0!==s&&(t=pn(t,1/s,i)),t}function Tr(t,e,[n,i,s],o,r){!function(t,e=0,n=1,i=.5,s,o=t,r=t){b.test(e)&&(e=parseFloat(e),e=Qe(r.min,r.max,e/100)-r.min);if("number"!=typeof e)return;let a=Qe(o.min,o.max,i);t===o&&(a-=e),t.min=wr(t.min,e,n,a,s),t.max=wr(t.max,e,n,a,s)}(t,e[n],e[i],e[s],e.scale,o,r)}const Pr=["x","scaleX","originX"],Sr=["y","scaleY","originY"];function br(t,e,n,i){Tr(t.x,e,Pr,n?n.x:void 0,i?i.x:void 0),Tr(t.y,e,Sr,n?n.y:void 0,i?i.y:void 0)}function Er(t){return 0===t.translate&&1===t.scale}function Ar(t){return Er(t.x)&&Er(t.y)}function kr(t,e){return t.min===e.min&&t.max===e.max}function Cr(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Mr(t,e){return Cr(t.x,e.x)&&Cr(t.y,e.y)}function Vr(t){return co(t.x)/co(t.y)}function Dr(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Rr{constructor(){this.members=[]}add(t){Gt(this.members,t);for(let e=this.members.length-1;e>=0;e--){const n=this.members[e];if(n===t||n===this.lead||n===this.prevLead)continue;const i=n.instance;i&&!1!==i.isConnected||n.snapshot||(_t(this.members,n),n.unmount())}t.scheduleRender()}remove(t){if(_t(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent&&!1!==t.instance?.isConnected)return this.promote(t),!0}return!1}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.updateSnapshot(),t.scheduleRender();const{layoutDependency:i}=n.options,{layoutDependency:s}=t.options;void 0!==i&&i===s||(t.resumeFrom=n,e&&(n.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root?.isU
vendor: 5,017 bytes, line 1
1pdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Lr=(t,e)=>t.depth-e.depth;class jr{constructor(){this.children=[],this.isDirty=!1}add(t){Gt(this.children,t),this.isDirty=!0}remove(t){_t(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Lr),this.isDirty=!1,this.children.forEach(t)}}const Br={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Fr=["","X","Y","Z"];let Ir=0;function Or(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Ur(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=xi(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",Mt,!(e||i))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&Ur(i)}function Nr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(t={},n=e?.()){this.id=Ir++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,kt.value&&(Br.nodes=Br.calculatedTargetDeltas=Br.calculatedProjections=0),this.nodes.forEach(Yr),this.nodes.forEach(qr),this.nodes.forEach(Zr),this.nodes.forEach(Xr),kt.addProjectionMetrics&&kt.addProjectionMetrics(Br)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new jr)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new qt),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;var n;this.isSVG=To(e)&&!(To(n=e)&&"svg"===n.tagName),this.instance=e;const{layoutId:i,layout:s,visualElement:o}=this.options;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),t){let n,i=0;const s=()=>this.root.updateBlockedByResize=!1;Mt.read(()=>{i=window.innerWidth}),t(e,()=>{const t=window.innerWidth;t!==i&&(i=t,this.root.updateBlockedByResize=!0,n&&n(),n=lr(s,250),sr.hasAnimatedSinceResize&&(sr.hasAnimatedSinceResize=!1,this.nodes.forEach(_r)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&o&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const s=this.options.transition||o.getDefaultTransition()||ia,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!Mr(this.targetLayout,i),h=!e&&n;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const e={...mi(s,"layout"),onPlay:r,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||_r(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Vt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEac
vendor: 19,730 bytes, line 1
1h(Jr),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ur(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let s=0;s<this.path.length;s++){const t=this.path[s];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Hr);if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(Kr);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Gr),this.nodes.forEach(Wr),this.nodes.forEach($r)):this.nodes.forEach(Kr),this.clearAllSnapshots();const t=xe.now();Dt.delta=c(0,1e3/60,t-Dt.timestamp),Dt.timestamp=t,Dt.isProcessing=!0,Rt.update.process(Dt),Rt.preRender.process(Dt),Rt.render.process(Dt),Dt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,fe.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(zr),this.sharedNodes.forEach(Qr)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Mt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Mt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||co(this.snapshot.measuredBox.x)||co(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){const e=i(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!Ar(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;t&&this.instance&&(e||cn(this.latestValues)||o)&&(s(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),ra((i=n).x),ra(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(la))){const{scroll:t}=this.root;t&&(xn(e.x,t.offset.x),xn(e.y,t.offset.y))}return e}removeElementScroll(t){const e={x:{min:0,max:0},y:{min:0,max:0}};if(vr(e,t),this.scroll?.wasRoot)return e;for(let n=0;n<this.path.length;n++){const i=this.path[n],{scroll:s,options:o}=i;i!==this.root&&s&&o.layoutScroll&&(s.wasRoot&&vr(e,t),xn(e.x,s.offset.x),xn(e.y,s.offset.y))}return e}applyTransform(t,e=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};vr(n,t);for(let i=0;i<this.path.length;i++){const t=this.path[i];!e&&t.options.layoutScroll&&t.scroll&&t!==t.root&&Tn(n,{x:-t.scroll.offset.x,y:-t.scroll.offset.y}),cn(t.latestValues)&&Tn(n,t.latestValues)}return cn(this.latestValues)&&Tn(n,this.latestValues),n}removeTransform(t){const e={x:{min:0,max:0},y:{min:0,max:0}};vr(e,t);for(let n=0;n<this.path.length;n++){const t=this.path[n];if(!t.instance)continue;if(!cn(t.latestValues))continue;hn(t.latestValues)&&t.updateSnapshot();const i=_();vr(i,t.measurePageBox()),br(e,t.latestValues,t.snapshot?t.snapshot.layoutBox:void 0,i)}return cn(this.latestValues)&&br(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Dt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){const e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);const n=Boolean(this.resumingFrom)||this!==e;if(!(t||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:i,layoutId:s}=this.options;if(!this.layout||!i&&!s)return;this.resolvedRelativeTargetAt=Dt.timestamp;const o=this.getClosestProjectingParent();var r,a,l;(o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,l=this.relativeParent.target,mo(r.x,a.x,l.x),mo(r.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):vr(this.target,this.layout.layoutBox),yn(this.target,this.targetDelta)):vr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,o&&Boolean(o.resumingFrom)===Boolean(this.resumingFrom)&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),kt.value&&Br.calculatedTargetDeltas++)}getClosestProjectingParent(){if(this.parent&&!hn(this.parent.latestValues)&&!un(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,n){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},yo(this.relativeTargetOrigin,e,n),vr(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const t=this.getLead(),e=Boolean(this.resumingFrom)||this!==t;let n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Dt.timestamp&&(n=!1),n)return;const{layout:i,layoutId:s}=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||!i&&!s)return;vr(this.layoutCorrected,this.layout.layoutBox);const o=this.treeScale.x,r=this.treeScale.y;!function(t,e,n,i=!1){const s=n.length;if(!s)return;let o,r;e.x=e.y=1;for(let a=0;a<s;a++){o=n[a],r=o.projectionDelta;const{visualElement:s}=o.options;s&&s.props.style&&"contents"===s.props.style.display||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Tn(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,yn(t,r)),i&&cn(o.latestValues)&&Tn(t,o.latestValues))}e.x<vn&&e.x>gn&&(e.x=1),e.y<vn&&e.y>gn&&(e.y=1)}(this.layoutCorrected,this.treeScale,this.path,e),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:a}=t;a?(this.projectionDelta&&this.prevProjectionDelta?(xr(this.prevProjectionDelta.x,this.projectionDelta.x),xr(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),po(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===r&&Dr(this.projectionDelta.x,this.prevProjectionDelta.x)&&Dr(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),kt.value&&Br.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(t,e=!1){const n=this.snapshot,i=n?n.latestValues:{},s={...this.latestValues},o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const r={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),h=!l||l.members.length<=1,c=Boolean(a&&!h&&!0===this.options.crossfade&&!this.path.some(na));let u;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,d,p,m,f,y;ta(o.x,t.x,n),ta(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(yo(r,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=r,y=n,ea(p.x,m.x,f.x,y),ea(p.y,m.y,f.y,y),u&&(l=this.relativeTarget,d=u,kr(l.x,d.x)&&kr(l.y,d.y))&&(this.isProjectionDirty=!1),u||(u={x:{min:0,max:0},y:{min:0,max:0}}),vr(u,this.relativeTarget)),a&&(this.animationValues=s,function(t,e,n,i,s,o){s?(t.opacity=Qe(0,n.opacity??1,mr(i)),t.opacityExit=Qe(e.opacity??1,0,fr(i))):o&&(t.opacity=Qe(e.opacity??1,n.opacity??1,i));for(let r=0;r<cr;r++){const s=`border${hr[r]}Radius`;let o=pr(e,s),a=pr(n,s);void 0===o&&void 0===a||(o||(o=0),a||(a=0),0===o||0===a||dr(o)===dr(a)?(t[s]=Math.max(Qe(ur(o),ur(a),i),0),(b.test(a)||b.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||n.rotate)&&(t.rotate=Qe(e.rotate||0,n.rotate||0,i))}(s,i,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Vt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Mt.update(()=>{sr.hasAnimatedSinceResize=!0,se.layout++,this.motionValue||(this.motionValue=Se(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(t,e,n){const i=q(t)?t:Se(t);return i.start(Xs("",i,e,n)),i.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{se.layout--},onComplete:()=>{se.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:s}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&aa(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=co(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=co(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}vr(e,n),Tn(e,s),po(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Rr);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){const{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){const{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const i={};n.z&&Or("z",t,i,this.animationValues);for(let s=0;s<Fr.length;s++)Or(`rotate${Fr[s]}`,t,i,this.animationValues),Or(`skew${Fr[s]}`,t,i,this.animationValues);t.render();for(const s in i)t.setStaticValue(s,i[s]),this.animationValues&&(this.animationValues[s]=i[s]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(t.visibility="hidden");const n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=zn(e?.pointerEvents)||"",void(t.transform=n?n(this.latestValues,""):"none");const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target)return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=zn(e?.pointerEvents)||""),void(this.hasProjected&&!cn(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1));t.visibility="";const s=i.animationValues||i.latestValues;this.applyTransformsToTarget();let o=function(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((s||o||r)&&(i=`translate3d(${s}px, ${o}px, ${r}px) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:t,rotate:e,rotateX:s,rotateY:o,skewX:r,skewY:a}=n;t&&(i=`perspective(${t}px) ${i}`),e&&(i+=`rotate(${e}deg) `),s&&(i+=`rotateX(${s}deg) `),o&&(i+=`rotateY(${o}deg) `),r&&(i+=`skewX(${r}deg) `),a&&(i+=`skewY(${a}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return 1===a&&1===l||(i+=`scale(${a}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);n&&(o=n(s,o)),t.transform=o;const{x:r,y:a}=this.projectionDelta;t.transformOrigin=`${100*r.origin}% ${100*a.origin}% 0`,i.animationValues?t.opacity=i===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=i===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const l in en){if(void 0===s[l])continue;const{correct:e,applyTo:n,isCSSVariable:r}=en[l],a="none"===o?s[l]:e(s[l],i);if(n){const e=n.length;for(let i=0;i<e;i++)t[n[i]]=a}else r?this.options.visualElement.renderState.vars[l]=a:t[l]=a}this.options.layoutId&&(t.pointerEvents=i===this?zn(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(Hr),this.root.sharedNodes.clear()}}}function Wr(t){t.updateLayout()}function $r(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:s}=t.options,o=e.source!==t.layout.source;"size"===s?ho(t=>{const i=o?e.measuredBox[t]:e.layoutBox[t],s=co(i);i.min=n[t].min,i.max=i.min+s}):aa(s,e.layoutBox,n)&&ho(i=>{const s=o?e.measuredBox[i]:e.layoutBox[i],r=co(n[i]);s.max=s.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+r)});const r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};po(r,n,e.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?po(a,t.applyTransform(i,!0),e.measuredBox):po(a,n,e.layoutBox);const l=!Ar(r);let h=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:s,layout:o}=i;if(s&&o){const r={x:{min:0,max:0},y:{min:0,max:0}};yo(r,e.layoutBox,s.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};yo(a,n,o.layoutBox),Mr(r,a)||(h=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function Yr(t){kt.value&&Br.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Xr(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function zr(t){t.clearSnapshot()}function Hr(t){t.clearMeasurements()}function Kr(t){t.isLayoutDirty=!1}function Gr(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function _r(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function qr(t){t.resolveTargetDelta()}function Zr(t){t.calcProjection()}
vendor: 4,389 bytes, line 1
1function Jr(t){t.resetSkewAndRotation()}function Qr(t){t.removeLeadSnapshot()}function ta(t,e,n){t.translate=Qe(e.translate,0,n),t.scale=Qe(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ea(t,e,n,i){t.min=Qe(e.min,n.min,i),t.max=Qe(e.max,n.max,i)}function na(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const ia={duration:.45,ease:[.4,0,.1,1]},sa=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),oa=sa("applewebkit/")&&!sa("chrome/")?Math.round:bt;function ra(t){t.min=oa(t.min),t.max=oa(t.max)}function aa(t,e,n){return"position"===t||"preserve-aspect"===t&&(i=Vr(e),s=Vr(n),o=.2,!(Math.abs(i-s)<=o));var i,s,o}function la(t){return t!==t.root&&t.scroll?.wasRoot}const ha=Nr({attachResizeListener:(t,e)=>xo(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ca={current:void 0},ua=Nr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ca.current){const t=new ha({});t.mount(window),t.setOptions({layoutScroll:!0}),ca.current=t}return ca.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),da={pan:{Feature:class extends ui{constructor(){super(...arguments),this.removePointerDownListener=bt}onPointerDown(t){this.session=new Wo(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Oo(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:ir(t),onStart:ir(e),onMove:ir(n),onEnd:(t,e)=>{delete this.session,i&&Mt.postRender(()=>i(t,e))}}}mount(){this.removePointerDownListener=Io(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends ui{constructor(t){super(t),this.removeGroupControls=bt,this.removeListeners=bt,this.controls=new tr(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bt}update(){const{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:ua,MeasureLayout:ar}};function pa(t,e){const n=Po(t),i=new AbortController;return[n,{passive:!0,...e,signal:i.signal},()=>i.abort()]}function ma(t,e,n={}){const[i,s,o]=pa(t,n);return i.forEach(t=>{let n,i=!1,o=!1;const r=e=>{n&&(n(e),n=void 0),t.removeEventListener("pointerleave",l)},a=t=>{i=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),o&&(o=!1,r(t))},l=t=>{"touch"!==t.pointerType&&(i?o=!0:r(t))};t.addEventListener("pointerenter",i=>{if("touch"===i.pointerType||lo())return;o=!1;const r=e(t,i);"function"==typeof r&&(n=r,t.addEventListener("pointerleave",l,s))},s),t.addEventListener("pointerdown",()=>{i=!0,window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",a,s)},s)}),o}function fa(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);const s=i["onHover"+n];s&&Mt.postRender(()=>s(e,Fo(e)))}const ya=(t,e)=>!!e&&(t===e||ya(t,e.parentElement)),ga=new WeakSet;function va(t){return e=>{"Enter"===e.key&&t(e)}}function xa(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function wa(t){return Bo(t)&&!lo()}const Ta=new WeakSet;function Pa(t,e,n={}){const[i,s,o]=pa(t,n),r=t=>{const i=t.currentTarget;if(!wa(t))return;if(Ta.has(t))return;ga.add(i),n.stopPropagation&&Ta.add(t);const o=e(i,t),r=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),ga.has(i)&&ga.delete(i),wa(t)&&"function"==typeof o&&o(t,{success:e})},a=t=>{r(t,i===window||i===document||n.useGlobalTarget||ya(i,t.target))},l=t=>{r(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};
1return i.forEach(t=>{var e;(n.useGlobalTarget?window:t).addEventListener("pointerdown",r,s),wo(e=t)&&"offsetHeight"in e&&(t.addEventListener("focus",t=>((t,e)=>{const n=t.currentTarget;if(!n)return;const i=va(()=>{if(ga.has(n))return;xa(n,"down");const t=va(()=>{xa(n,"up")});n.addEventListener("keyup",t,e),n.addEventListener("blur",()=>xa(n,"cancel"),e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)})(t,s)),function(t){return go.has(t.tagName)||!0===t.isContentEditable}(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),o}function Sa(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);const s=i["onTap"+("End"===n?"":n)];s&&Mt.postRender(()=>s(e,Fo(e)))}const ba=new WeakMap,Ea=new WeakMap,Aa=t=>{const e=ba.get(t.target);e&&e(t)},ka=t=>{t.forEach(Aa)};function Ca(t,e,n){const i=function({root:t,...e}){const n=t||document;Ea.has(n)||Ea.set(n,{});const i=Ea.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(ka,{root:t,...e})),i[s]}(e);return ba.set(t,n),i.observe(t),()=>{ba.delete(t),i.unobserve(t)}}const Ma={some:0,all:1};const Va={inView:{Feature:class extends ui{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:s}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:Ma[i]};return Ca(this.node.current,o,t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node,n=["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e));n&&this.startObserver()}unmount(){}}},tap:{Feature:class extends ui{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:e,propagate:n}=this.node.props;this.unmount=Pa(t,(t,e)=>(Sa(this.node,e,"Start"),(t,{success:e})=>Sa(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:!1===n?.tap})}unmount(){}}},focus:{Feature:class extends ui{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ti(xo(this.node.current,"focus",()=>this.onFocus()),xo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends ui{mount(){const{current:t}=this.node;t&&(this.unmount=ma(t,(t,e)=>(fa(this.node,e,"Start"),t=>fa(this.node,t,"End"))))}unmount(){}}}},Da=ci({...ro,...Va,...da,...{layout:{ProjectionNode:ua,MeasureLayout:ar}}},An),Ra=(0,i.createContext)(!1),La={once:!0,margin:"0px 0px -100px"};function ja(t){let{children:e,className:n,duration:r,x:l,y:h}=t,c=function(){!o.current&&a();const[t]=(0,i.useState)(s.current);return t}(),u=(0,i.useContext)(Ra);return i.createElement(Da.div,Object.assign({className:n,variants:{hidden:{opacity:0,y:c?0:h,x:c?0:l},visible:{opacity:1,y:0,x:0}},transition:{duration:r||.75}},u?{}:{initial:"hidden",whileInView:"visible",viewport:La}),e)}function Ba(t){let{children:e,className:n,duration:s}=t;return i.createElement(Ra.Provider,{value:!0},i.createElement(Da.div,{className:n,initial:"hidden",whileInView:"visible",viewport:La,transition:{staggerChildren:s||.2}},e))}}}]); 2//# sourceMappingURL=42e5d607ce695f38766655f95981182f23d6f25b-05d1c91a8ec662fb29f1.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.