PageSourceSearch

https://highlights.ai/_next/static/chunks/929-d55ea2599dab0704.js

js highlights.ai collected 2026-10-05 12:01:53 UTC 134,263 bytes, 1 lines download raw bytes

1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="70899050-5f1f-4716-891d-863ce3833b2f",t._sentryDebugIdIdentifier="sentry-dbid-70899050-5f1f-4716-891d-863ce3833b2f")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[929],{30166:function(t,e,i){i.d(e,{default:function(){return r.a}});var n=i(55775),r=i.n(n)},55775:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return s}});let n=i(47043);i(57437),i(2265);let r=n._(i(15602));function s(t,e){var i;let n={loading:t=>{let{error:e,isLoading:i,pastDelay:n}=t;return null}};"function"==typeof t&&(n.loader=t);let s={...n,...e};return(0,r.default)({...s,modules:null==(i=s.loadableGenerated)?void 0:i.modules})}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},81523:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BailoutToCSR",{enumerable:!0,get:function(){return r}});let n=i(18993);function r(t){let{reason:e,children:i}=t;if("undefined"==typeof window)throw new n.BailoutToCSRError(e);return i}},15602:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return u}});let n=i(57437),r=i(2265),s=i(81523),o=i(70049);function a(t){return{default:t&&"default"in t?t.default:t}}let l={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},u=function(t){let e={...l,...t},i=(0,r.lazy)(()=>e.loader().then(a)),u=e.loading;function h(t){let a=u?(0,n.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,l=e.ssr?(0,n.jsxs)(n.Fragment,{children:["undefined"==typeof window?(0,n.jsx)(o.PreloadCss,{moduleIds:e.modules}):null,(0,n.jsx)(i,{...t})]}):(0,n.jsx)(s.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(i,{...t})});return(0,n.jsx)(r.Suspense,{fallback:a,children:l})}return h.displayName="LoadableComponent",h}},70049:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"PreloadCss",{enumerable:!0,get:function(){return s}});let n=i(57437),r=i(20544);function s(t){let{moduleIds:e}=t;if("undefined"!=typeof window)return null;let i=(0,r.getExpectedRequestStore)("next/dynamic css"),s=[];if(i.reactLoadableManifest&&e){let t=i.reactLoadableManifest;for(let i of e){if(!t[i])continue;let e=t[i].files.filter(t=>t.endsWith(".css"));s.push(...e)}}return 0===s.length?null:(0,n.jsx)(n.Fragment,{children:s.map(t=>(0,n.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:i.assetPrefix+"/_next/"+encodeURI(t),as:"style"},t))})}},27072:function(t,e,i){i.d(e,{QS:function(){return u}});var n=i(2265);let r={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},s={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},o="mousemove",a="mouseup";function l(t,e){if(0===e)return t;let i=Math.PI/180*e;return[t[0]*Math.cos(i)+t[1]*Math.sin(i),t[1]*Math.cos(i)-t[0]*Math.sin(i)]}function u(t){var e,i,u;let h;let{trackMouse:c}=t,d=n.useRef(Object.assign({},s)),p=n.useRef(Object.assign({},r)),f=n.useRef(Object.assign({},p.current));for(h in f.current=Object.assign({},p.current),p.current=Object.assign(Object.assign({},r),t),r)void 0===p.current[h]&&(p.current[h]=r[h]);let[m,v]=n.useMemo(()=>(function(t,e){let i=e=>{let i="touches"in e;i&&e.touches.length>1||t((t,r)=>{r.trackMouse&&!i&&(document.addEventListener(o,n),document.addEventListener(a,c));let{clientX:u,clientY:h}=i?e.touches[0]:e,d=l([u,h],r.rotationAngle);return r.onTouchStartOrOnMouseDown&&r.onTouchStartOrOnMouseDown({event:e}),Object.assign(Object.assign(Object.assign({},t),s),{initial:d.slice(),xy:d,start:e.timeStamp||0})})},n=e=>{t((t,i)=>{let n="touches"in e;if(n&&e.touches.length>1)return t;if(e.timeStamp-t.start>i.swipeDuration)return t.swiping?Object.assign(Object.assign({},t),{swiping:!1}):t;let{clientX:s,clientY:o}=n?e.touches[0]:e,[a,u]=l([s,o],i.rotationAngle),h=a-t.xy[0],c=u-t.xy[1],d=Math.abs(h),p=Math.abs(c),f=(e.timeStamp||0)-t.start,m=d>p?h>0?"Right":"Left":c>0?"Down":"Up",v="number"==typeof i.delta?i.delta:i.delta[m.toLowerCase()]||r.delta;if(d<v&&p<v&&!t.swiping)return t;let g={absX:d,absY:p,deltaX:h,deltaY:c,dir:m,event:e,first:t.first,initial:t.initial,velocity:Math.sqrt(d*d+p*p)/(f||1),vxvy:[h/(f||1),c/(f||1)]};g.first&&i.onSwipeStart&&i.onSwipeStart(g),i.onSwiping&&i.onSwiping(g);let y=!1;return(i.onSwiping||i.onSwiped||i[`onSwiped${m}`])&&(y=!0),y&&i.preventScrollOnSwipe&&i.trackTouch&&e.cancelable&&e.preventDefault(),Object.assign(Object.assign({},t),{first:!1,eventData:g,swiping:!0})})},u=e=>{t((t,i)=>{let n;if(t.swiping&&t.eventData){if(e.timeStamp-t.start<i.swipeDuration){n=Object.assign(Object.assign({},t.eventData),{event:e}),i.onSwiped&&i.onSwiped(n);let r=i[`onSwiped${n.dir}`];r&&r(n)}}else i.onTap&&i.onTap({event:e});return i.onTouchEndOrOnMouseUp&&i.onTouchEndOrOnMouseUp({event:e}),Object.assign(Object.assign(Object.assign({},t),s),{eventData:n})})},h=()=>{document.removeEventListener(o,n),document.removeEventListener(a,c)},c=t=>{h(),u(t)},d=(t,e)=>{let s=()=>{};if(t&&t.addEventListener){let o=Object.assign(Object.assign({},r.touchEventOptions),e.touchEventOptions),a=[["touchstart",i,o],["touchmove",n,Object.assign(Object.assign({},o),e.preventScrollOnSwipe?{passive:!1}:{})],["touchend",u,o]];a.forEach(([e,i,n])=>t.addEventListener(e,i,n)),s=()=>
1a.forEach(([e,i])=>t.removeEventListener(e,i))}return s},p={ref:e=>{null!==e&&t((t,i)=>{if(t.el===e)return t;let n={};return t.el&&t.el!==e&&t.cleanUpTouch&&(t.cleanUpTouch(),n.cleanUpTouch=void 0),i.trackTouch&&e&&(n.cleanUpTouch=d(e,i)),Object.assign(Object.assign(Object.assign({},t),{el:e}),n)})}};return e.trackMouse&&(p.onMouseDown=i),[p,d]})(t=>d.current=t(d.current,p.current),{trackMouse:c}),[c]);return d.current=(e=d.current,i=p.current,u=f.current,i.trackTouch&&e.el?e.cleanUpTouch?i.preventScrollOnSwipe!==u.preventScrollOnSwipe||i.touchEventOptions.passive!==u.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:v(e.el,i)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:v(e.el,i)}):(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0}))),m}},60821:function(t,e,i){i.d(e,{v:function(){return tE}});var n=i(45699),r=i(29711),s=i(45414),o=i(24118);let a={current:!1};var l=i(56277);let u=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function h(t,e,i,n){if(t===e&&i===n)return l.Z;let r=e=>(function(t,e,i,n,r){let s,o;let a=0;do(s=u(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:u(r(t),e,n)}var c=i(87457),d=i(63627);let p=h(.33,1.53,.69,.99),f=(0,d.M)(p),m=(0,c.o)(f),v=t=>(t*=2)<1?.5*f(t):.5*(2-Math.pow(2,-10*(t-1)));var g=i(26378),y=i(94238),x=i(40504),w=i(39545),b=i(62035),P=i(83206);let T=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(P.P.test(t)||"0"===t)&&!t.startsWith("url(")),S=t=>null!==t;function A(t,e,i){let{repeat:n,repeatType:r="loop"}=e,s=t.filter(S),o=n&&"loop"!==r&&n%2==1?0:s.length-1;return o&&void 0!==i?i:s[o]}class E{calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,w.m)(),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=x.X.now(),this.hasAttemptedResolve=!0;let{name:i,type:r,velocity:s,delay:o,onComplete:l,onUpdate:u,isGenerator:h}=this.options;if(!h&&!function(t,e,i,r){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let o=t[t.length-1],a=T(s,e),l=T(o,e);return(0,b.K)(a===l,"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(o,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(o," via the `style` property.")),!!a&&!!l&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||(0,n.xD)(i))&&r)}(t,i,r,s)){if(a.current||!o){null==u||u(A(t,this.options,e)),null==l||l(),this.resolveFinishedPromise();return}this.options.duration=0}let c=this.initPlayback(t,e);!1!==c&&(this._resolved={keyframes:t,finalKeyframe:e,...c},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=x.X.now(),this.options={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,...o},this.updateFinishedPromise()}}var M=i(59111),C=i(96781);function D(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var k=i(87325),V=i(18859),j=i(92943);function R(t,e){return i=>i>0?e:t}let O=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},L=[k.$,V.m,j.J],F=t=>L.find(e=>e.test(t));function B(t){let e=F(t);if((0,b.K)(!!e,"'".concat(t,"' is not an animatable color. Use the equivalent color code instead.")),!e)return!1;let i=e.parse(t);return e===j.J&&(i=function(t){let{hue:e,saturation:i,lightness:n,alpha:r}=t;e/=360,n/=100;let s=0,o=0,a=0;if(i/=100){let t=n<.5?n*(1+i):n+i-n*i,r=2*n-t;s=D(r,t,e+1/3),o=D(r,t,e),a=D(r,t,e-1/3)}else s=o=a=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(i)),i}let I=(t,e)=>{let i=B(t),n=B(e);if(!i||!n)return R(t,e);let r={...i};return t=>(r.red=O(i.red,n.red,t),r.green=O(i.green,n.green,t),r.blue=O(i.blue,n.blue,t),r.alpha=(0,C.t)(i.alpha,n.alpha,t),V.m.transform(r))};var U=i(56920),W=i(33964),N=i(37249);let _=new Set(["none","hidden"]);function X(t,e){return i=>(0,C.t)(t,e,i)}function z(t){return"number"==typeof t?X:"string"==typeof t?(0,N.t)(t)?R:W.$.test(t)?I:Y:Array.isArray(t)?$:"object"==typeof t?W.$.test(t)?I:K:R}function $(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>z(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function K(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=z(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let Y=(t,e)=>{let i=P.P.createTransformer(e),n=(0,P.V)(t),r=(0,P.V)(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?_.has(t)&&!r.values.length||_.has(e)&&!n.values.length?_.has(t)?i=>i<=0?t:e:i=>i>=1?e:t:(0,U.z)($(function(t,e){var i;let n=[],r={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let o=e.types[s],a=t.indexes[o][r[o]],l=null!==(i=t.values[a])&&void 0!==i?i:0;n[s]=l,r[o]++}return n}(n,r),r.values),i):((0,b.K)(!0,"Complex values '".concat(t,"' and '").concat(e,"' too different to mix. Ensure all c
1olors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.")),R(t,e))};function q(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,C.t)(t,e,i):z(t)(t,e)}var H=i(14438);function Z(t,e,i){let n=Math.max(e-5,0);return(0,H.R)(i-t(n),e-n)}let G={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function J(t,e){return t*Math.sqrt(1-e*e)}let Q=["duration","bounce"],tt=["stiffness","damping","mass"];function te(t,e){return e.some(e=>void 0!==t[e])}function ti(){let t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G.visualDuration,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G.bounce,s="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:i}:e,{restSpeed:o,restDelta:a}=s,l=s.keyframes[0],u=s.keyframes[s.keyframes.length-1],h={done:!1,value:l},{stiffness:c,damping:d,mass:p,duration:f,velocity:m,isResolvedFromDuration:v}=function(t){let e={velocity:G.velocity,stiffness:G.stiffness,damping:G.damping,mass:G.mass,isResolvedFromDuration:!1,...t};if(!te(t,tt)&&te(t,Q)){if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*(0,M.u)(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:G.mass,stiffness:n,damping:r}}else{let i=function(t){let e,i,{duration:n=G.duration,bounce:s=G.bounce,velocity:o=G.velocity,mass:a=G.mass}=t;(0,b.K)(n<=(0,r.w)(G.maxDuration),"Spring duration must be 10 seconds or less");let l=1-s;l=(0,M.u)(G.minDamping,G.maxDamping,l),n=(0,M.u)(G.minDuration,G.maxDuration,(0,r.X)(n)),l<1?(e=t=>{let e=t*l,i=e*n;return .001-(e-o)/J(t,l)*Math.exp(-i)},i=t=>{let i=t*l*n,r=Math.pow(l,2)*Math.pow(t,2)*n,s=J(Math.pow(t,2),l);return(i*o+o-r)*Math.exp(-i)*(-e(t)+.001>0?-1:1)/s}):(e=t=>-.001+Math.exp(-t*n)*((t-o)*n+1),i=t=>n*n*(o-t)*Math.exp(-t*n));let u=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(e,i,5/n);if(n=(0,r.w)(n),isNaN(u))return{stiffness:G.stiffness,damping:G.damping,duration:n};{let t=Math.pow(u,2)*a;return{stiffness:t,damping:2*l*Math.sqrt(a*t),duration:n}}}(t);(e={...e,...i,mass:G.mass}).isResolvedFromDuration=!0}}return e}({...s,velocity:-(0,r.X)(s.velocity||0)}),g=m||0,y=d/(2*Math.sqrt(c*p)),x=u-l,w=(0,r.X)(Math.sqrt(c/p)),P=5>Math.abs(x);if(o||(o=P?G.restSpeed.granular:G.restSpeed.default),a||(a=P?G.restDelta.granular:G.restDelta.default),y<1){let e=J(w,y);t=t=>u-Math.exp(-y*w*t)*((g+y*w*x)/e*Math.sin(e*t)+x*Math.cos(e*t))}else if(1===y)t=t=>u-Math.exp(-w*t)*(x+(g+w*x)*t);else{let e=w*Math.sqrt(y*y-1);t=t=>{let i=Math.exp(-y*w*t),n=Math.min(e*t,300);return u-i*((g+y*w*x)*Math.sinh(n)+e*x*Math.cosh(n))/e}}let T={calculatedDuration:v&&f||null,next:e=>{let i=t(e);if(v)h.done=e>=f;else{let n=0;y<1&&(n=0===e?(0,r.w)(g):Z(t,e,i));let s=Math.abs(n)<=o,l=Math.abs(u-i)<=a;h.done=s&&l}return h.value=h.done?u:i,h},toString:()=>{let t=Math.min((0,n.iI)(T),n.EO),e=(0,n.wk)(e=>T.next(t*e).value,t,30);return t+"ms "+e}};return T}function tn(t){let e,i,{keyframes:n,velocity:r=0,power:s=.8,timeConstant:o=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:u,min:h,max:c,restDelta:d=.5,restSpeed:p}=t,f=n[0],m={done:!1,value:f},v=t=>void 0!==h&&t<h||void 0!==c&&t>c,g=t=>void 0===h?c:void 0===c?h:Math.abs(h-t)<Math.abs(c-t)?h:c,y=s*r,x=f+y,w=void 0===u?x:u(x);w!==x&&(y=w-f);let b=t=>-y*Math.exp(-t/o),P=t=>w+b(t),T=t=>{let e=b(t),i=P(t);m.done=Math.abs(e)<=d,m.value=m.done?w:i},S=t=>{v(m.value)&&(e=t,i=ti({keyframes:[m.value,g(m.value)],velocity:Z(P,t,m.value),damping:a,stiffness:l,restDelta:d,restSpeed:p}))};return S(0),{calculatedDuration:null,next:t=>{let n=!1;return(i||void 0!==e||(n=!0,T(t),S(t)),void 0!==e&&t>=e)?i.next(t-e):(n||T(t),m)}}}let tr=h(.42,0,1,1),ts=h(0,0,.58,1),to=h(.42,0,.58,1),ta=t=>Array.isArray(t)&&"number"!=typeof t[0],tl={linear:l.Z,easeIn:tr,easeInOut:to,easeOut:ts,circIn:g.Z7,circInOut:g.X7,circOut:g.Bn,backIn:f,backInOut:m,backOut:p,anticipate:v},tu=t=>{if((0,n.qE)(t)){(0,b.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return h(e,i,n,r)}return"string"==typeof t?((0,b.k)(void 0!==tl[t],"Invalid easing type '".concat(t,"'")),tl[t]):t};var th=i(81645);function tc(t){let{duration:e=300,keyframes:i,times:n,ease:r="easeInOut"}=t,s=ta(r)?r.map(tu):tu(r),o={done:!1,value:i[0]},a=function(t,e){let{clamp:i=!0,ease:n,mixer:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=t.length;if((0,b.k)(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());
1let a=function(t,e,i){let n=[],r=i||q,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||l.Z:e;s=(0,U.z)(t,s)}n.push(s)}return n}(e,n,r),u=a.length,h=i=>{if(o&&i<t[0])return e[0];let n=0;if(u>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=(0,th.Y)(t[n],t[n+1],i);return a[n](r)};return i?e=>h((0,M.u)(t[0],t[s-1],e)):h}((n&&n.length===i.length?n:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=(0,th.Y)(0,e,n);t.push((0,C.t)(i,1,r))}}(e,t.length-1),e}(i)).map(t=>t*e),i,{ease:Array.isArray(s)?s:i.map(()=>s||to).splice(0,i.length-1)});return{calculatedDuration:e,next:t=>(o.value=a(t),o.done=t>=e,o)}}let td=t=>{let e=e=>{let{timestamp:i}=e;return t(i)};return{start:()=>s.Wi.update(e,!0),stop:()=>(0,s.Pn)(e),now:()=>s.frameData.isProcessing?s.frameData.timestamp:x.X.now()}},tp={decay:tn,inertia:tn,tween:tc,keyframes:tc,spring:ti},tf=t=>t/100;class tm extends E{flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i;let{type:r="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a,velocity:l=0}=this.options,u=(0,n.xD)(r)?r:tp[r]||tc;u!==tc&&"number"!=typeof t[0]&&(e=(0,U.z)(tf,q(t[0],t[1])),t=[0,100]);let h=u({...this.options,keyframes:t});"mirror"===a&&(i=u({...this.options,keyframes:[...t].reverse(),velocity:-l})),null===h.calculatedDuration&&(h.calculatedDuration=(0,n.iI)(h));let{calculatedDuration:c}=h,d=c+o;return{generator:h,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(s+1)-o}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:n,generator:r,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return r.next(0);let{delay:c,repeat:d,repeatType:p,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let v=this.currentTime-c*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=r;if(d){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(i=1-i,f&&(i-=f/h)):"mirror"===p&&(x=s)),y=(0,M.u)(0,1,i)*h}let w=g?{done:!1,value:a[0]}:x.next(y);o&&(w.value=o(w.value));let{done:b}=w;g||null===l||(b=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return P&&void 0!==n&&(w.value=A(a,this.options,n)),m&&m(w.value),P&&this.finish(),w}get duration(){let{resolved:t}=this;return t?(0,r.X)(t.calculatedDuration):0}get time(){return(0,r.X)(this.currentTime)}set time(t){t=(0,r.w)(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,r.X)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=td,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedProm
1ise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:i,element:n,keyframes:r}=this.options,s=(null==n?void 0:n.KeyframeResolver)||w.e;this.resolver=new s(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}}let tv=new Set(["opacity","clipPath","filter","transform"]),tg=(0,i(90107).X)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ty={anticipate:v,backInOut:m,circInOut:g.X7};class tx extends E{initPlayback(t,e){var i,r;let{duration:s=300,times:o,ease:a,type:l,motionValue:u,name:h,startTime:c}=this.options;if(!(null===(i=u.owner)||void 0===i?void 0:i.current))return!1;if("string"==typeof a&&(0,n.Vc)()&&a in ty&&(a=ty[a]),r=this.options,(0,n.xD)(r.type)||"spring"===r.type||!(0,n.hR)(r.ease)){let{onComplete:e,onUpdate:i,motionValue:n,element:r,...u}=this.options,h=function(t,e){let i=new tm({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:t[0]},r=[],s=0;for(;!n.done&&s<2e4;)r.push((n=i.sample(s)).value),s+=10;return{times:void 0,keyframes:r,duration:s-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),s=h.duration,o=h.times,a=h.ease,l="keyframes"}let d=function(t,e,i){let{delay:r=0,duration:s=300,repeat:o=0,repeatType:a="loop",ease:l="easeInOut",times:u}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},h={[e]:i};u&&(h.offset=u);let c=(0,n.eB)(l,s);return Array.isArray(c)&&(h.easing=c),t.animate(h,{delay:r,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(u.owner.current,h,t,{...this.options,duration:s,times:o,ease:a});return d.startTime=null!=c?c:this.calcStartTime(),this.pendingTimeline?((0,n._F)(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:i}=this.options;u.set(A(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:s,times:o,type:l,ease:a,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return(0,r.X)(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(0,r.X)(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=(0,r.w)(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return l.Z;let{animation:i}=e;(0,n._F)(i,t)}else this.pendingTimeline=t;return l.Z}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:n,type:s,ease:o,times:a}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:l,element:u,...h}=this.options,c=new tm({...h,keyframes:i,duration:n,type:s,ease:o,times:a,isGenerator:!0}),d=(0,r.w)(this.time);t.setWithVelocity(c.sample(d-10).value,c.sample(d).value,10)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}
1static supports(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;return tg()&&i&&tv.has(i)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}constructor(t){super(t);let{name:e,motionValue:i,element:n,keyframes:r}=this.options;this.resolver=new y.s(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}}var tw=i(87487);let tb={type:"spring",stiffness:500,damping:25,restSpeed:10},tP=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),tT={type:"keyframes",duration:.8},tS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tA=(t,e)=>{let{keyframes:i}=e;return i.length>2?tT:tw.G.has(t)?t.startsWith("scale")?tP(i[1]):tb:tS},tE=function(t,e,i){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=arguments.length>4?arguments[4]:void 0,h=arguments.length>5?arguments[5]:void 0;return c=>{let d=(0,n.ev)(l,t)||{},p=d.delay||l.delay||0,{elapsed:f=0}=l;f-=(0,r.w)(p);let m={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...d,delay:-f,onUpdate:t=>{e.set(t),d.onUpdate&&d.onUpdate(t)},onComplete:()=>{c(),d.onComplete&&d.onComplete()},name:t,motionValue:e,element:h?void 0:u};!function(t){let{when:e,delay:i,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:a,repeatDelay:l,from:u,elapsed:h,...c}=t;return!!Object.keys(c).length}(d)&&(m={...m,...tA(t,m)}),m.duration&&(m.duration=(0,r.w)(m.duration)),m.repeatDelay&&(m.repeatDelay=(0,r.w)(m.repeatDelay)),void 0!==m.from&&(m.keyframes[0]=m.from);let v=!1;if(!1!==m.type&&(0!==m.duration||m.repeatDelay)||(m.duration=0,0!==m.delay||(v=!0)),(a.current||o.c.skipAnimations)&&(v=!0,m.duration=0,m.delay=0),v&&!h&&void 0!==e.get()){let t=A(m.keyframes,d);if(void 0!==t)return s.Wi.update(()=>{m.onUpdate(t),m.onComplete()}),new n.sP([])}return!h&&tx.supports(m)?new tx(m):new tm(m)}}},45647:function(t,e,i){i.d(e,{d:function(){return f}});var n=i(67043),r=i(45699),s=i(56596),o=i(48771),a=i(1327),l=i(34005),u=i(60821),h=i(45414);function c(t,e){var i;let{delay:n=0,transitionOverride:c,type:d}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{transition:p=t.getDefaultTransition(),transitionEnd:f,...m}=e;c&&(p=c);let v=[],g=d&&t.animationState&&t.animationState.getState()[d];for(let e in m){let o=t.getValue(e,null!==(i=t.latestValues[e])&&void 0!==i?i:null),c=m[e];if(void 0===c||g&&function(t,e){let{protectedKeys:i,needsAnimating:n}=t,r=i.hasOwnProperty(e)&&!0!==n[e];return n[e]=!1,r}(g,e))continue;let d={delay:n,...(0,r.ev)(p||{},e)},f=!1;if(window.MotionHandoffAnimation){let i=(0,l.s)(t);if(i){let t=window.MotionHandoffAnimation(i,e,h.Wi);null!==t&&(d.startTime=t,f=!0)}}(0,a.K)(t,e),o.start((0,u.v)(e,o,c,t.shouldReduceMotion&&s.z.has(e)?{type:!1}:d,t,f));let y=o.animation;y&&v.push(y)}return f&&Promise.all(v).then(()=>{h.Wi.update(()=>{f&&(0,o.C)(t,f)})}),v}function d(t,e){var i;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=(0,n.x)(t,e,"exit"===r.type?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0),{transition:o=t.getDefaultTransition()||{}}=s||{};r.transitionOverride&&(o=r.transitionOverride);let a=s?()=>Promise.all(c(t,s,r)):()=>Promise.resolve(),l=t.variantChildren&&t.variantChildren.size?function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{delayChildren:n=0,staggerChildren:s,staggerDirection:a}=o;return function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=arguments.length>5?arguments[5]:void 0,o=[],a=(t.variantChildren.size-1)*n,l=1===r?function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t*n}:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return a-t*n};return Array.from(t.variantChildren).sort(p).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(d(t,e,{...s,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,n+i,s,a,r)}:()=>Promise.resolve(),{when:u}=o;if(!u)return Promise.all([a(),l(r.delay)]);{let[t,e]="beforeChildren"===u?[a,l]:[l,a];return t().then(()=>e())}}function p(t,e){return t.sortNodePosition(e)}function f(t,e){let i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e))i=Promise.all(e.map(e=>d(t,e,r)));else if("string"==typeof e)i=d(t,e,r);else{let s="function"==typeof e?(0,n.x)(t,e,r.custom):e;i=Promise.all(c(t,s,r))}return i.then(()=>{t.notify("AnimationComplete",e)})}}
1,61750:function(t,e,i){i.d(e,{M:function(){return n}});let n="data-"+(0,i(17444).D)("framerAppearId")},34005:function(t,e,i){i.d(e,{s:function(){return r}});var n=i(61750);function r(t){return t.props[n.M]}},44944:function(t,e,i){i.d(e,{C:function(){return n}});let n=t=>Array.isArray(t)},26378:function(t,e,i){i.d(e,{Bn:function(){return o},X7:function(){return a},Z7:function(){return s}});var n=i(87457),r=i(63627);let s=t=>1-Math.sin(Math.acos(t)),o=(0,r.M)(s),a=(0,n.o)(s)},87457:function(t,e,i){i.d(e,{o:function(){return n}});let n=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},63627:function(t,e,i){i.d(e,{M:function(){return n}});let n=t=>e=>1-t(1-e)},85005:function(t,e,i){i.d(e,{Z:function(){return s}});var n=i(24118);let r=["read","resolveKeyframes","update","preRender","render","postRender"];function s(t,e){let i=!1,s=!0,o={delta:0,timestamp:0,isProcessing:!1},a=()=>i=!0,l=r.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,r=!1,s=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){s.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:function(t){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=o&&n?e:i;return r&&s.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),s.delete(t)},process:t=>{if(o=t,n){r=!0;return}n=!0,[e,i]=[i,e],e.forEach(a),e.clear(),n=!1,r&&(r=!1,l.process(t))}};return l}(a),t),{}),{read:u,resolveKeyframes:h,update:c,preRender:d,render:p,postRender:f}=l,m=()=>{let r=n.c.useManualTiming?o.timestamp:performance.now();i=!1,o.delta=s?1e3/60:Math.max(Math.min(r-o.timestamp,40),1),o.timestamp=r,o.isProcessing=!0,u.process(o),h.process(o),c.process(o),d.process(o),p.process(o),f.process(o),o.isProcessing=!1,i&&e&&(s=!1,t(m))},v=()=>{i=!0,s=!0,o.isProcessing||t(m)};return{schedule:r.reduce((t,e)=>{let n=l[e];return t[e]=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return i||v(),n.schedule(t,e,r)},t},{}),cancel:t=>{for(let e=0;e<r.length;e++)l[r[e]].cancel(t)},state:o,steps:l}}},45414:function(t,e,i){i.d(e,{Pn:function(){return s},Wi:function(){return r},frameData:function(){return o},yL:function(){return a}});var n=i(56277);let{schedule:r,cancel:s,state:o,steps:a}=(0,i(85005).Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.Z,!0)},40504:function(t,e,i){let n;i.d(e,{X:function(){return a}});var r=i(24118),s=i(45414);function o(){n=void 0}let a={now:()=>(void 0===n&&a.set(s.frameData.isProcessing||r.c.useManualTiming?s.frameData.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(o)}}},76697:function(t,e,i){function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}i.d(e,{E:function(){return i5}});var r,s,o,a=i(44944);function l(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}function u(t){return"string"==typeof t||Array.isArray(t)}var h=i(67043);let c=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],d=["initial",...c];var p=i(45647);let f=d.length,m=[...c].reverse(),v=c.length;function g(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function y(){return{animate:g(!0),whileInView:g(),whileHover:g(),whileTap:g(),whileDrag:g(),whileFocus:g(),exit:g()}}
1class x{update(){}constructor(t){this.isMounted=!1,this.node=t}}class w extends x{updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();n(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(e=>{let{animation:i,options:n}=e;return(0,p.d)(t,i,n)})),i=y(),r=!0,s=e=>(i,n)=>{var r;let s=(0,h.x)(t,n,"exit"===e?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function o(o){let{props:h}=t,c=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<f;t++){let n=d[t],r=e.props[n];(u(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},p=[],g=new Set,y={},x=1/0;for(let e=0;e<v;e++){var w;let d=m[e],f=i[d],v=void 0!==h[d]?h[d]:c[d],b=u(v),P=d===o?f.isActive:null;!1===P&&(x=e);let T=v===c[d]&&v!==h[d]&&b;if(T&&r&&t.manuallyAnimateOnMount&&(T=!1),f.protectedKeys={...y},!f.isActive&&null===P||!v&&!f.prevProp||n(v)||"boolean"==typeof v)continue;let S=(w=f.prevProp,"string"==typeof v?v!==w:!!Array.isArray(v)&&!l(v,w)),A=S||d===o&&f.isActive&&!T&&b||e>x&&b,E=!1,M=Array.isArray(v)?v:[v],C=M.reduce(s(d),{});!1===P&&(C={});let{prevResolvedValues:D={}}=f,k={...D,...C},V=e=>{A=!0,g.has(e)&&(E=!0,g.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in k){let e=C[t],i=D[t];if(!y.hasOwnProperty(t))((0,a.C)(e)&&(0,a.C)(i)?l(e,i):e===i)?void 0!==e&&g.has(t)?V(t):f.protectedKeys[t]=!0:null!=e?V(t):g.add(t)}f.prevProp=v,f.prevResolvedValues=C,f.isActive&&(y={...y,...C}),r&&t.blockInitialAnimation&&(A=!1);let j=!(T&&S)||E;A&&j&&p.push(...M.map(t=>({animation:t,options:{type:d}})))}if(g.size){let e={};g.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=n?n:null}),p.push({animation:e})}let b=!!p.length;return r&&(!1===h.initial||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(b=!1),r=!1,b?e(p):Promise.resolve()}return{animateChanges:o,setActive:function(e,n){var r;if(i[e].isActive===n)return Promise.resolve();null===(r=t.variantChildren)||void 0===r||r.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,n)}),i[e].isActive=n;let s=o(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=y(),r=!0}}}(t))}}let b=0;class P extends x{update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}constructor(){super(...arguments),this.id=b++}}var T=i(56277),S=i(62035),A=i(45699),E=i(29711);function M(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function C(t){return{point:{x:t.pageX,y:t.pageY}}}let D=t=>e=>(0,A.DJ)(e)&&t(e,C(e));function k(t,e,i,n){return M(t,e,D(i),n)}let V=(t,e)=>Math.abs(t-e);var j=i(56920),R=i(45414);class O{updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,R.Pn)(this.updatePoint)}constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=B(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(V(t.x,e.x)**2+V(t.y,e.y)**2)>=3);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=R.frameData;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=L(e,this.transformPagePoint),R.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=B("pointercancel"===t.type?this.lastMoveEventInfo:L(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!(0,A.DJ)(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let s=L(C(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=R.frameData;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,B(s,this.history)),this.removeListeners=(0,j.z)(k(this.contextWindow,"pointermove",this.handlePointerMove),k(this.contextWindow,"pointerup",this.handlePointerUp),k(this.contextWindow,"pointercancel",this.handlePointerUp))}}function L(t,e){return e?{point:e(t.point)}:t}function F(t,e){return{x:t.x-e.x,y:t.y-e.y}}function B(t,e){let{point:i}=t;return{point:i,delta:F(i,I(e)),offset:F(i,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=I(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>(0,E.w)(.1)));)i--;if(!n)return{x:0,y:0};let s=(0,E.X)(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s}
1;return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function I(t){return t[t.length-1]}function U(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var W=i(81645),N=i(96781);function _(t){return t.max-t.min}function X(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=n,t.originPoint=(0,N.t)(e.min,e.max,t.origin),t.scale=_(i)/_(e),t.translate=(0,N.t)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function z(t,e,i,n){X(t.x,e.x,i.x,n?n.originX:void 0),X(t.y,e.y,i.y,n?n.originY:void 0)}function $(t,e,i){t.min=i.min+e.min,t.max=t.min+_(e)}function K(t,e,i){t.min=e.min-i.min,t.max=t.min+_(e)}function Y(t,e,i){K(t.x,e.x,i.x),K(t.y,e.y,i.y)}var q=i(59111);function H(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function Z(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function G(t,e,i){return{min:J(t,e),max:J(t,i)}}function J(t,e){return"number"==typeof t?t:t[e]||0}let Q=()=>({translate:0,scale:1,origin:0,originPoint:0}),tt=()=>({x:Q(),y:Q()}),te=()=>({min:0,max:0}),ti=()=>({x:te(),y:te()});function tn(t){return[t("x"),t("y")]}function tr(t){let{top:e,left:i,right:n,bottom:r}=t;return{x:{min:i,max:n},y:{min:e,max:r}}}function ts(t){return void 0===t||1===t}function to(t){let{scale:e,scaleX:i,scaleY:n}=t;return!ts(e)||!ts(i)||!ts(n)}function ta(t){return to(t)||tl(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function tl(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function tu(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function th(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;t.min=tu(t.min,e,i,n,r),t.max=tu(t.max,e,i,n,r)}function tc(t,e){let{x:i,y:n}=e;th(t.x,i.translate,i.scale,i.originPoint),th(t.y,n.translate,n.scale,n.originPoint)}function td(t,e){t.min=t.min+e,t.max=t.max+e}function tp(t,e,i,n){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5,s=(0,N.t)(t.min,t.max,r);th(t,e,i,s,n)}function tf(t,e){tp(t.x,e.x,e.scaleX,e.scale,e.originX),tp(t.y,e.y,e.scaleY,e.scale,e.originY)}function tm(t,e){return tr(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}var tv=i(27492),tg=i(60821);let ty=t=>{let{current:e}=t;return e?e.ownerDocument.defaultView:null};var tx=i(1327);let tw=new WeakMap;class tb{start(t){let{snapToCursor:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new O(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(C(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,A.KV)(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tn(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tv.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=_(n);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&R.Wi.postRender(()=>r(t,e)),(0,tx.K)(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>tn(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:ty(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&R.Wi.postRender(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!tP(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];
1this.constraints&&this.constraints[t]&&(s=function(t,e,i){let{min:n,max:r}=e;return void 0!==n&&t<n?t=i?(0,N.t)(n,t,i.min):Math.max(t,n):void 0!==r&&t>r&&(t=i?(0,N.t)(r,t,i.max):Math.min(t,r)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,r=this.constraints;e&&U(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,e){let{top:i,left:n,bottom:r,right:s}=e;return{x:H(t.x,n,s),y:H(t.y,i,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.35;return!1===t?t=0:!0===t&&(t=.35),{x:G(t,"left","right"),y:G(t,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&tn(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!U(e))return!1;let n=e.current;(0,S.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=function(t,e,i){let n=tm(t,i),{scroll:r}=e;return r&&(td(n.x,r.offset.x),td(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o={x:Z((t=r.layout.layoutBox).x,s.x),y:Z(t.y,s.y)};if(i){let t=i(function(t){let{x:e,y:i}=t;return{top:i.min,right:e.max,bottom:i.max,left:e.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=tr(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(tn(o=>{if(!tP(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,tx.K)(this.visualElement,t),i.start((0,tg.v)(t,i,0,e,this.visualElement,!1))}stopAnimation(){tn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){tn(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e="_drag".concat(t.toUpperCase()),i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){tn(e=>{let{drag:i}=this.getProps();if(!tP(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-(0,N.t)(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!U(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};tn(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=_(t),r=_(e);return r>n?i=(0,W.Y)(e.min,e.max-n,t.min):n>r&&(i=(0,W.Y)(t.min,t.max-r,e.min)),(0,q.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),tn(e=>{if(!tP(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set((0,N.t)(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;tw.set(this.visualElement,this);let t=k(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();U(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),R.Wi.read(e);let r=M(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i}=t;this.isDragging&&i&&(tn(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}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=ti(),this.visualElement=t}}function tP(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class tT extends x{mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||T.Z}unmount(){this.removeGroupControls(),this.removeListeners()}constructor(t){super(t),this.removeGroupControls=T.Z,this.removeListeners=T.Z,this.controls=new tb(t)}}let tS=t=>(e,i)=>{t&&R.Wi.postRender(()=>t(e,i))};class tA extends x{onPointerDown(t){this.session=new O(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ty(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:tS(t),onStart:tS(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&R.Wi.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=k(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}constructor(){super(...arguments),this.removePointerDownListener=T.Z}}var tE=i(57437),tM=i(2265);let tC=(0,tM.createContext)(null),tD=(0,tM.createContext)({}),tk=(0,tM.createContext)({}),tV={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tj(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tR={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!tv.px.test(t))return t;t=parseFloat(t)}let i=tj(t,e.target.x),n=tj(t,e.target.y);return"".concat(i,"% ").concat(n,"%")}};var tO=i(83206);let tL={},{schedule:tF,cancel:tB}=(0,i(85005).Z)(queueMicrotask,!1);class tI extends tM.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;Object.assign(tL,tW),r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),tV.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,n||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||R.Wi.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tF.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tU(t){let[e,i]=function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,tM.useContext)(tC);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:r}=e,s=(0,tM.useId)();(0,tM.useEffect)(()=>{t&&r(s)},[t]);let o=(0,tM.useCallback)(()=>t&&n&&n(s),[s,n,t]);return!i&&n?[!1,o]:[!0]}(),n=(0,tM.useContext)(tD);return(0,tE.jsx)(tI,{...t,layoutGroup:n,switchLayoutGroup:(0,tM.useContext)(tk),isPresent:e,safeToRemove:i})}let tW={borderRadius:{...tR,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tR,borderTopRightRadius:tR,borderBottomLeftRadius:tR,borderBottomRightRadius:tR,boxShadow:{correct:(t,e)=>{let{treeScale:i,projectionDelta:n}=e,r=tO.P.parse(t);if(r.length>5)return t;let s=tO.P.createTransformer(t),o="number"!=typeof r[0]?1:0,a=n.x.scale*i.x,l=n.y.scale*i.y;r[0+o]/=a,r[1+o]/=l;let u=(0,N.t)(a,l,.5);return"number"==typeof r[2+o]&&(r[2+o]/=u),"number"==typeof r[3+o]&&(r[3+o]/=u),s(r)}}};var tN=i(3078),t_=i(23999),tX=i(34005),tz=i(40504),t$=i(69013);let tK=(t,e)=>t.depth-e.depth;class tY{add(t){(0,t$.y4)(this.children,t),this.isDirty=!0}remove(t){(0,t$.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tK),this.isDirty=!1,this.children.forEac
1h(t)}constructor(){this.children=[],this.isDirty=!1}}var tq=i(34081),tH=i(4581);function tZ(t){let e=(0,t_.i)(t)?t.get():t;return(0,tH.p)(e)?e.toValue():e}var tG=i(26378);let tJ=["TopLeft","TopRight","BottomLeft","BottomRight"],tQ=tJ.length,t0=t=>"string"==typeof t?parseFloat(t):t,t1=t=>"number"==typeof t||tv.px.test(t);function t5(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let t2=t3(0,.5,tG.Bn),t4=t3(.5,.95,T.Z);function t3(t,e,i){return n=>n<t?0:n>e?1:i((0,W.Y)(t,e,n))}function t9(t,e){t.min=e.min,t.max=e.max}function t6(t,e){t9(t.x,e.x),t9(t.y,e.y)}function t7(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function t8(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function et(t,e,i,n,r){let[s,o,a]=i;!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,r=arguments.length>4?arguments[4]:void 0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;if(tv.aQ.test(e)&&(e=parseFloat(e),e=(0,N.t)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,N.t)(s.min,s.max,n);t===s&&(a-=e),t.min=t8(t.min,e,i,a,r),t.max=t8(t.max,e,i,a,r)}(t,e[s],e[o],e[a],e.scale,n,r)}let ee=["x","scaleX","originX"],ei=["y","scaleY","originY"];function en(t,e,i,n){et(t.x,e,ee,i?i.x:void 0,n?n.x:void 0),et(t.y,e,ei,i?i.y:void 0,n?n.y:void 0)}function er(t){return 0===t.translate&&1===t.scale}function es(t){return er(t.x)&&er(t.y)}function eo(t,e){return t.min===e.min&&t.max===e.max}function ea(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function el(t,e){return ea(t.x,e.x)&&ea(t.y,e.y)}function eu(t){return _(t.x)/_(t.y)}function eh(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class ec{add(t){(0,t$.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,t$.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}constructor(){this.members=[]}}let ed={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ep="undefined"!=typeof window&&void 0!==window.MotionDebug,ef=["","X","Y","Z"],em={visibility:"hidden"},ev=0;function eg(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function ey(t){let{attachResizeListener:e,defaultParent:i,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}=t;return class{addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tq.L),this.eventHandlers.get(t).add(e)}notifyListeners(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];let r=this.eventHandlers.get(t);r&&r.notify(...i)}hasListeners(t){return this.eventHandlers.has(t)}mount(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:n,layout:r,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||n)&&(this.isLayoutDirty=!0),e){let i;let n=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=tz.X.now(),n=e=>{let{timestamp:r}=e,s=r-i;s>=250&&((0,R.Pn)(n),t(s-250))};return R.Wi.read(n,!0),()=>(0,R.Pn)(n)}(n,0),tV.hasAnimatedSinceResize&&(tV.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(eM))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||r)&&this.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i,hasRelativeTargetChanged:n,layout:r}=t;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||s.getDefaultTransition()||eL,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=s.getProps(),u=!this.targetLayout||!el(this.targetLayout,r)||n,h=!i&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||i&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,h);let t={...(0,A.ev)(o,"layout"),onPlay:a,onComplete:l};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else i||eM(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,R.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ek),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=(0,tX.s)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",R.Wi,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(eS);return}this.isUpdating||this.nodes.forEach(eA),this.isUpdating=!1,this.nodes.forEach(eE),this.nodes.forEach(ex),this.nodes.forEach(ew),this.clearAllSnapshots();let t=tz.X.now();R.frameData.delta=(0,q.u)(0,1e3/60,t-R.frameData.timestamp),R.frameData.timestamp=t,R.frameData.isProcessing=!0,R.yL.update.process(R.frameData),R.yL.preRender.process(R.frameData),R.yL.render.process(R.frameData),R.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tF.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(eT),this.sharedNodes.forEach(eV)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,R.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){R.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ti(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=r(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;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!es(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&(e||ta(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],i=this.measurePageBox(),n=this.removeElementScroll(i);return e&&(n=this.removeTransform(n)),eI((t=n).x),eI(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return ti();let i=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(eW))){let{scroll:t}=this.root;t&&(td(i.x,t.offset.x),td(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=ti();if(t6(i,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let n=this.path[e],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&t6(i,t),td(i.x,r.offset.x),td(i.y,r.offset.y))}return i}applyTransform(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=ti();t6(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&tf(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),ta(n.latestValues)&&tf(i,n.latestValues)}return ta(this.latestValues)&&tf(i,this.latestValues),i}removeTransform(t){let e=ti();t6(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!ta(i.latestValues))continue;to(i.latestValues)&&i.updateSnapshot();let n=ti();t6(n,i.measurePageBox()),en(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return ta(this.latestValues)&&en(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!==R.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){var t,e,i,n;let r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
1haredProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(r||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=R.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ti(),this.relativeTargetOrigin=ti(),Y(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),t6(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=ti(),this.targetWithTransforms=ti()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),e=this.target,i=this.relativeTarget,n=this.relativeParent.target,$(e.x,i.x,n.x),$(e.y,i.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):t6(this.target,this.layout.layoutBox),tc(this.target,this.targetDelta)):t6(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ti(),this.relativeTargetOrigin=ti(),Y(this.relativeTargetOrigin,this.target,t.target),t6(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ep&&ed.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||to(this.parent.latestValues)||tl(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===R.frameData.timestamp&&(n=!1),n)return;let{layout:r,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||s))return;t6(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i){let n,r,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){r=(n=i[a]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&tf(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,tc(t,r)),s&&ta(n.latestValues)&&tf(t,n.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=ti());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(t7(this.prevProjectionDelta.x,this.projectionDelta.x),t7(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),z(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&eh(this.projectionDelta.x,this.prevProjectionDelta.x)&&eh(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),ep&&ed.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=tt(),this.projectionDelta=tt(),this.projectionDeltaWithTransform=tt()}setAnimationOrigin(t){let e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=tt();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let a=ti(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&
1!0===this.options.crossfade&&!this.path.some(eO));this.animationProgress=0,this.mixTargetDelta=i=>{let n=i/1e3;if(ej(o.x,t.x,n),ej(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f;Y(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,eR(p.x,f.x,a.x,n),eR(p.y,f.y,a.y,n),e&&(u=this.relativeTarget,d=e,eo(u.x,d.x)&&eo(u.y,d.y))&&(this.isProjectionDirty=!1),e||(e=ti()),t6(e,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=(0,N.t)(0,void 0!==i.opacity?i.opacity:1,t2(n)),t.opacityExit=(0,N.t)(void 0!==e.opacity?e.opacity:1,0,t4(n))):s&&(t.opacity=(0,N.t)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r<tQ;r++){let s="border".concat(tJ[r],"Radius"),o=t5(e,s),a=t5(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||t1(o)===t1(a)?(t[s]=Math.max((0,N.t)(t0(o),t0(a),n),0),(tv.aQ.test(a)||tv.aQ.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,N.t)(e.rotate||0,i.rotate||0,n))}(s,r,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&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,R.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=R.Wi.update(()=>{tV.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let n=(0,t_.i)(0)?0:(0,tN.BX)(0);return n.start((0,tg.v)("",n,1e3,i)),n.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&eU(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||ti();let e=_(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=_(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}t6(e,i),tf(e,r),z(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new ec),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote(){let{needsReset:t,transition:e,preserveFollowOpacity:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&eg("z",t,n,this.animationValues);for(let e=0;e<ef.length;e++)eg("rotate".concat(ef[e]),t,n,this.animationValues),eg("skew".concat(ef[e]),t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return em;let n={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=tZ(null==t?void 0:t.pointerEvents)||"",n.transform=r?r(this.latestValues,""):"none",n;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tZ(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!ta(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;
1this.applyTransformsToTarget(),n.transform=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((r||s||o)&&(n="translate3d(".concat(r,"px, ").concat(s,"px, ").concat(o,"px) ")),(1!==e.x||1!==e.y)&&(n+="scale(".concat(1/e.x,", ").concat(1/e.y,") ")),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;t&&(n="perspective(".concat(t,"px) ").concat(n)),e&&(n+="rotate(".concat(e,"deg) ")),r&&(n+="rotateX(".concat(r,"deg) ")),s&&(n+="rotateY(".concat(s,"deg) ")),o&&(n+="skewX(".concat(o,"deg) ")),a&&(n+="skewY(".concat(a,"deg) "))}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+="scale(".concat(a,", ").concat(l,")")),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),r&&(n.transform=r(o,n.transform));let{x:a,y:l}=this.projectionDelta;for(let t in n.transformOrigin="".concat(100*a.origin,"% ").concat(100*l.origin,"% 0"),s.animationValues?n.opacity=s===this?null!==(i=null!==(e=o.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:n.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,tL){if(void 0===o[t])continue;let{correct:e,applyTo:i}=tL[t],r="none"===n.transform?o[t]:e(o[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)n[i[e]]=r}else n[t]=r}return this.options.layoutId&&(n.pointerEvents=s===this?tZ(null==t?void 0:t.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(eS),this.root.sharedNodes.clear()}constructor(t={},e=null==i?void 0:i()){this.id=ev++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ep&&(ed.totalNodes=ed.resolvedTargetDeltas=ed.recalculatedProjection=0),this.nodes.forEach(eb),this.nodes.forEach(eC),this.nodes.forEach(eD),this.nodes.forEach(eP),ep&&window.MotionDebug.record(ed)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=e?e.root||e:this,this.path=e?[...e.path,e]:[],this.parent=e,this.depth=e?e.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new tY)}}}function ex(t){t.updateLayout()}function ew(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:r}=t.options,s=i.source!==t.layout.source;"size"===r?tn(t=>{let n=s?i.measuredBox[t]:i.layoutBox[t],r=_(n);n.min=e[t].min,n.max=n.min+r}):eU(r,i.layoutBox,e)&&tn(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],o=_(e[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=tt();z(o,e,i.layoutBox);let a=tt();s?z(a,t.applyTransform(n,!0),i.measuredBox):z(a,e,i.layoutBox);let l=!es(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=ti();Y(o,i.layoutBox,r.layoutBox);let a=ti();Y(a,e,s.layoutBox),el(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function eb(t){ep&&ed.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function eP(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function eT(t){t.clearSnapshot()}function eS(t){t.clearMeasurements()}function eA(t){t.isLayoutDirty=!1}function eE(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function eM(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function eC(t){t.resolveTargetDelta()}function eD(t){t.calcProjection()}function ek(t){t.resetSkewAndRotation()}function eV(t){t.removeLeadSnapshot()}function ej(t,e,i){t.translate=(0,N.t)(e.translate,0,i),t.scale=(0,N.t)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function eR(t,e,i,n){t.min=(0,N.t)(e.min,i.min,n),t.max=(0,N.t)(e.max,i.max,n)}function eO(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let eL={duration:.45,ease:[.4,0,.1,1]},eF=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),eB=eF("applewebkit/")&&!eF("chrome/")?Math.round:T.Z;function eI(t){t.min=eB(t.min),t.max=eB(t.max)}function eU(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(eu(e)-eu(i)))}function eW(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let eN=ey({attachResizeListener:(t,e)=>M(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),e_={current:void 0},eX=ey({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!e_.current){let t=new eN({});t.mount(window),t.setOptions({layoutScroll:!0}),e_.current=t}return e_.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function ez(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&R.Wi.postRender(()=>r(e,C(e)))}class e$ extends x{mount(){let{current:t}=this.node;t&&(this.unmount=(0,A.Mr)(t,t=>(ez(this.node,t,"Start"),t=>ez(this.node,t,"End"))))}unmount(){}}class eK extends x{onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,j.z)(M(this.node.current,"focus",()=>this.onFocus()),M(this.node.current,"blur",()=>this.onBlur()))}unmount(){}constructor(){super(...arguments),this.isActive=!1}}function eY(t,e,i){let{props:n}=t;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&R.Wi.postRender(()=>r(e,C(e)))}class eq extends x{mount(){let{current:t}=this.node;t&&(this.unmount=(0,A.OD)(t,t=>(eY(this.node,t,"Start"),(t,e)=>{let{success:i}=e;return eY(this.node,t,i?"End":"Cancel")}),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let eH=new WeakMap,eZ=new WeakMap,eG=t=>{let e=eH.get(t.target);e&&e(t)},eJ=t=>{t.forEach(eG)},eQ={some:0,all:1};class e0 extends x{startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:eQ[n]};return function(t,e,i){let n=function(t){let{root:e,...i}=t,n=e||document;eZ.has(n)||eZ.set(n,{});let r=eZ.get(n),s=JSON.stringify(i);return r[s]||(r[s]=new IntersectionObserver(eJ,{root:e,...i})),r[s]}(e);return eH.set(t,i),n.observe(t),()=>{eH.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function(t){let{viewport:e={}}=t,{viewport:i={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=>e[t]!==i[t]}(t,e))&&this.startObserver()}unmount(){}constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}}let e1=(0,tM.createContext)({strict:!1}),e5=(0,tM.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),e2=(0,tM.createContext)({});function e4(t){return n(t.animate)||d.some(e=>u(t[e]))}function e3(t){return!!(e4(t)||t.variants)}function e9(t){return Array.isArray(t)?t.join(" "):t}var e6=i(44563);let e7={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"]},e8={};for(let t in e7)e8[t]={isEnabled:e=>e7[t].some(t=>!!e[t])};let it=Symbol.for("motionComponentSymbol");var ie=i(11534),ii=i(61750);let ir=["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 is(t){if("string"!=typeof t||t.includes("-"));else if(ir.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var io=i(17444);function ia(t,e,i,n){let{style:r,vars:s}=e;for(let e in Object.assign(t.style,r,n&&n.getProjectionStyles(i)),s)t.style.setProperty(e,s[e])}let il=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function iu(t,e,i,n){for(let i in ia(t,e,void 0,n),e.attrs)t.setAttribute(il.has(i)?i:(0,io.D)(i),e.attrs[i])}var ih=i(87487);function ic(t,e){let{layout:i,layoutId:n}=e;return ih.G.has(t)||t.startsWith("origin")||(i||void 0!==n)&&(!!tL[t]||"opacity"===t)}function id(t,e,i){var n;let{style:r}=t,s={};for(let o in r)((0,t_.i)(r[o])||e.style&&(0,t_.i)(e.style[o])||ic(o,t)||(null===(n=null==i?void 0:i.getValue(o))||void 0===n?void 0:n.liveStyle)!==void 0)&&(s[o]=r[o]);return s}function ip(t,e,i){let n=id(t,e,i);for(let i in t)((0,t_.i)(t[i])||(0,t_.i)(e[i]))&&(n[-1!==ih._.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}var im=i(31297),iv=i(53576);let ig=t=>(e,i)=>{let r=(0,tM.useContext)(e2),s=(0,tM.useContext)(tC),o=()=>
1(function(t,e,i,r){let{scrapeMotionValuesFromProps:s,createRenderState:o,onMount:a}=t,l={latestValues:function(t,e,i,r){let s={},o=r(t,{});for(let t in o)s[t]=tZ(o[t]);let{initial:a,animate:l}=t,u=e4(t),h=e3(t);e&&h&&!u&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let c=!!i&&!1===i.initial,d=(c=c||!1===a)?l:a;if(d&&"boolean"!=typeof d&&!n(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let n=(0,im.o)(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(e,i,r,s),renderState:o()};return a&&(l.mount=t=>a(e,t,l)),l})(t,e,r,s);return i?o():(0,iv.h)(o)},iy=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),ix=()=>({...iy(),attrs:{}});var iw=i(37249);let ib=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var iP=i(66204);let iT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iS=ih._.length;function iA(t,e,i){let{style:n,vars:r,transformOrigin:s}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(ih.G.has(t)){o=!0;continue}if((0,iw.f)(t)){r[t]=i;continue}{let e=ib(i,iP.j[t]);t.startsWith("origin")?(a=!0,s[t]=e):n[t]=e}}if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="",r=!0;for(let s=0;s<iS;s++){let o=ih._[s],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===(o.startsWith("scale")?1:0):0===parseFloat(a))||i){let t=ib(a,iP.j[o]);if(!l){r=!1;let e=iT[o]||o;n+="".concat(e,"(").concat(t,") ")}i&&(e[o]=t)}}return n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;n.transformOrigin="".concat(t," ").concat(e," ").concat(i)}}function iE(t,e,i){return"string"==typeof t?t:tv.px.transform(e+i*t)}let iM={offset:"stroke-dashoffset",array:"stroke-dasharray"},iC={offset:"strokeDashoffset",array:"strokeDasharray"};function iD(t,e,i,n){let{attrX:r,attrY:s,attrScale:o,originX:a,originY:l,pathLength:u,pathSpacing:h=1,pathOffset:c=0,...d}=e;if(iA(t,d,n),i){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:p,style:f,dimensions:m}=t;p.transform&&(m&&(f.transform=p.transform),delete p.transform),m&&(void 0!==a||void 0!==l||f.transform)&&(f.transformOrigin=function(t,e,i){let n=iE(e,t.x,t.width),r=iE(i,t.y,t.height);return"".concat(n," ").concat(r)}(m,void 0!==a?a:.5,void 0!==l?l:.5)),void 0!==r&&(p.x=r),void 0!==s&&(p.y=s),void 0!==o&&(p.scale=o),void 0!==u&&function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=!(arguments.length>4)||void 0===arguments[4]||arguments[4];t.pathLength=1;let s=r?iM:iC;t[s.offset]=tv.px.transform(-n);let o=tv.px.transform(e),a=tv.px.transform(i);t[s.array]="".concat(o," ").concat(a)}(p,u,h,c,!1)}let ik=t=>"string"==typeof t&&"svg"===t.toLowerCase(),iV={useVisualState:ig({scrapeMotionValuesFromProps:ip,createRenderState:ix,onMount:(t,e,i)=>{let{renderState:n,latestValues:r}=i;R.Wi.read(()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}}),R.Wi.render(()=>{iD(n,r,ik(e.tagName),t.transformTemplate),iu(e,n)})}})},ij={useVisualState:ig({scrapeMotionValuesFromProps:id,createRenderState:iy})};function iR(t,e,i){for(let n in e)(0,t_.i)(e[n])||ic(n,i)||(t[n]=e[n])}let iO=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function iL(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||iO.has(t)}let iF=t=>!iL(t);try{(r=require("@emotion/is-prop-valid").default)&&(iF=t=>t.startsWith("on")?!iL(t):r(t))}catch(t){}var iB=i(4946),iI=i(13697);let iU={current:null},iW={current:!1};var iN=i(25861),i_=i(33964),iX=i(38580),iz=i(55113);let i$=[...iX.$,i_.$,tO.P],iK=t=>i$.find((0,iz.l)(t)),iY=new WeakMap;var iq=i(39545);let iH=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];
1class iZ{scrapeMotionValuesFromProps(t,e,i){return{}}mount(t){this.current=t,iY.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)),iW.current||function(){if(iW.current=!0,e6.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>iU.current=t.matches;t.addListener(e),e()}else iU.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||iU.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in iY.delete(this.current),this.projection&&this.projection.unmount(),(0,R.Pn)(this.notifyUpdate),(0,R.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=ih.G.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&R.Wi.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in e8){let e=e8[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.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):ti()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<iH.length;e++){let i=iH[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if((0,t_.i)(r))t.addValue(n,r);else if((0,t_.i)(s))t.addValue(n,(0,tN.BX)(r,{owner:t}));else if(s!==r){if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,(0,tN.BX)(void 0!==e?e:r,{owner:t}))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,tN.BX)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=void 0===this.latestValues[t]&&this.current?null!==(i=this.getBaseTargetFromProps(this.props,t))&&void 0!==i?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=n&&("string"==typeof n&&((0,iB.P)(n)||(0,iI.W)(n))?n=p
1arseFloat(n):!iK(n)&&tO.P.test(e)&&(n=(0,iN.T)(t,e)),this.setBaseTarget(t,(0,t_.i)(n)?n.get():n)),(0,t_.i)(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=(0,im.o)(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);r&&(i=r[t])}if(n&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||(0,t_.i)(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new tq.L),this.events[t].add(e)}notify(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];this.events[t]&&this.events[t].notify(...i)}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=iq.e,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=tz.X.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,R.Wi.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=e4(e),this.isVariantNode=e3(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in h){let e=h[t];void 0!==a[t]&&(0,t_.i)(e)&&e.set(a[t],!1)}}}var iG=i(94238);class iJ extends iZ{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,e){let{vars:i,style:n}=e;delete i[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,t_.i)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent="".concat(t))}))}constructor(){super(...arguments),this.KeyframeResolver=iG.s}}var iQ=i(22005);class i0 extends iJ{readValueFromInstance(t,e){if(ih.G.has(e)){let t=(0,iQ.A)(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=((0,iw.f)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,e){let{transformPagePoint:i}=e;return tm(t,i)}build(t,e,i){iA(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return id(t,e,i)}constructor(){super(...arguments),this.type="html",this.renderInstance=ia}}class i1 extends iJ{getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(ih.G.has(e)){let t=(0,iQ.A)(e);return t&&t.default||0}return e=il.has(e)?e:(0,io.D)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return ip(t,e,i)}build(t,e,i){iD(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){iu(t,e,i,n)}mount(t){this.isSVGTag=ik(t.tagName),super.mount(t)}constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ti}}let i5=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy(function(){for(var e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];return t(...i)},{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((s={animation:{Feature:w},exit:{Feature:P},inView:{Feature:e0},tap:{Feature:eq},focus:{Feature:eK},hover:{Feature:e$},pan:{Feature:tA},drag:{Feature:tT,ProjectionNode:eX,MeasureLayout:tU},layout:{ProjectionNode:eX,MeasureLayout:tU}},o=(t,e)=>is(t)?new i1(e):new i0(e,{allowProjection:t!==tM.Fragment}),function(t){let{forwardMotionProps:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{forwardMotionProps:!1};return function(t){var e,i;let{preloadedFeatures:n,createVisualElement:r,useRender:s,useVisualState:o,Component:a}=t;function l(t,e){var i;let n;let l={...(0,tM.useContext)(e5),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,tM.useContext)(tD).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:h}=l,c=function(t){let{initial:e,animate:i}=function(t,e){if(e4(t)){let{initial:e,animate:i}=t;return{initial:!1===e||u(e)?e:void 0,animate:u(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,tM.useContext)(e2));return(0,tM.useMemo)(()=>({initial:e,animate:i}),[e9(e),e9(i)])}(t),d=o(t,h);if(!h&&e6.j){(0,tM.useContext)(e1).strict;let t=function(t){let{drag:e,layout:i}=e8;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
1(l);n=t.MeasureLayout,c.visualElement=function(t,e,i,n,r){var s,o;let{visualElement:a}=(0,tM.useContext)(e2),l=(0,tM.useContext)(e1),u=(0,tM.useContext)(tC),h=(0,tM.useContext)(e5).reducedMotion,c=(0,tM.useRef)(null);n=n||l.renderer,!c.current&&n&&(c.current=n(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));let d=c.current,p=(0,tM.useContext)(tk);d&&!d.projection&&r&&("html"===d.type||"svg"===d.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&U(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(c.current,i,r,p);let f=(0,tM.useRef)(!1);(0,tM.useInsertionEffect)(()=>{d&&f.current&&d.update(i,u)});let m=i[ii.M],v=(0,tM.useRef)(!!m&&!(null===(s=window.MotionHandoffIsComplete)||void 0===s?void 0:s.call(window,m))&&(null===(o=window.MotionHasOptimisedAnimation)||void 0===o?void 0:o.call(window,m)));return(0,ie.L)(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),tF.render(d.render),v.current&&d.animationState&&d.animationState.animateChanges())}),(0,tM.useEffect)(()=>{d&&(!v.current&&d.animationState&&d.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,m)}),v.current=!1))}),d}(a,d,l,r,t.ProjectionNode)}return(0,tE.jsxs)(e2.Provider,{value:c,children:[n&&c.visualElement?(0,tE.jsx)(n,{visualElement:c.visualElement,...l}):null,s(a,t,(i=c.visualElement,(0,tM.useCallback)(t=>{t&&d.mount&&d.mount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):U(e)&&(e.current=t))},[i])),d,h,c.visualElement)]})}n&&function(t){for(let e in t)e8[e]={...e8[e],...t[e]}}(n),l.displayName="motion.".concat("string"==typeof a?a:"create(".concat(null!==(i=null!==(e=a.displayName)&&void 0!==e?e:a.name)&&void 0!==i?i:"",")"));let h=(0,tM.forwardRef)(l);return h[it]=a,h}({...is(t)?iV:ij,preloadedFeatures:s,useRender:function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(e,i,n,r,s)=>{let{latestValues:o}=r,a=(is(e)?function(t,e,i,n){let r=(0,tM.useMemo)(()=>{let i=ix();return iD(i,e,ik(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};iR(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return iR(n,i,t),Object.assign(n,function(t,e){let{transformTemplate:i}=t;return(0,tM.useMemo)(()=>{let t=iy();return iA(t,e,i),Object.assign({},t.vars,t.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,o,s,e),l=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(iF(r)||!0===i&&iL(r)||!e&&!iL(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),u=e!==tM.Fragment?{...l,...a,ref:n}:{},{children:h}=i,c=(0,tM.useMemo)(()=>(0,t_.i)(h)?h.get():h,[h]);return(0,tM.createElement)(e,{...u,children:c})}}(e),createVisualElement:o,Component:t})}))},94238:function(t,e,i){i.d(e,{s:function(){return m}});var n=i(13697),r=i(56596),s=i(83206),o=i(25861);let a=new Set(["auto","none","0"]);var l=i(39545),u=i(62035),h=i(4946),c=i(37249);let d=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var p=i(90401),f=i(38580);class m extends l.e{readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&(n=n.trim(),(0,c.t)(n))){let r=function t(e,i){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;(0,u.k)(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));let[r,s]=function(t){let e=d.exec(t);if(!e)return[,];let[,i,n,r]=e;return["--".concat(null!=i?i:n),r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);
1if(o){let t=o.trim();return(0,h.P)(t)?parseFloat(t):t}return(0,c.t)(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!r.z.has(i)||2!==t.length)return;let[n,s]=t,o=(0,f.C)(n),a=(0,f.C)(s);if(o!==a){if((0,p.mP)(o)&&(0,p.mP)(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var r;("number"==typeof(r=t[e])?0===r:null===r||"none"===r||"0"===r||(0,n.W)(r))&&i.push(e)}i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!a.has(e)&&(0,s.V)(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=(0,o.T)(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=p.lw[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(i);r&&r.jump(this.measuredOrigin,!1);let s=n.length-1,o=n[s];n[s]=p.lw[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEac
1h(t=>{let[i,n]=t;e.getValue(i).set(n)}),this.resolveNoneKeyframes()}constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}}},17444:function(t,e,i){i.d(e,{D:function(){return n}});let n=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},37249:function(t,e,i){i.d(e,{f:function(){return r},t:function(){return o}});let n=t=>e=>"string"==typeof e&&e.startsWith(t),r=n("--"),s=n("var(--"),o=t=>!!s(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},90401:function(t,e,i){i.d(e,{Ei:function(){return c},lw:function(){return d},mP:function(){return o}});var n=i(74305),r=i(27492),s=i(87487);let o=t=>t===n.Rx||t===r.px,a=(t,e)=>parseFloat(t.split(", ")[e]),l=(t,e)=>(i,n)=>{let{transform:r}=n;if("none"===r||!r)return 0;let s=r.match(/^matrix3d\((.+)\)$/u);if(s)return a(s[1],e);{let e=r.match(/^matrix\((.+)\)$/u);return e?a(e[1],t):0}},u=new Set(["x","y","z"]),h=s._.filter(t=>!u.has(t));function c(t){let e=[];return h.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e}let d={width:(t,e)=>{let{x:i}=t,{paddingLeft:n="0",paddingRight:r="0"}=e;return i.max-i.min-parseFloat(n)-parseFloat(r)},height:(t,e)=>{let{y:i}=t,{paddingTop:n="0",paddingBottom:r="0"}=e;return i.max-i.min-parseFloat(n)-parseFloat(r)},top:(t,e)=>{let{top:i}=e;return parseFloat(i)},left:(t,e)=>{let{left:i}=e;return parseFloat(i)},bottom:(t,e)=>{let{y:i}=t,{top:n}=e;return parseFloat(n)+(i.max-i.min)},right:(t,e)=>{let{x:i}=t,{left:n}=e;return parseFloat(n)+(i.max-i.min)},x:l(4,13),y:l(5,14)};d.translateX=d.x,d.translateY=d.y},25861:function(t,e,i){i.d(e,{T:function(){return o}});var n=i(83206),r=i(22779),s=i(22005);function o(t,e){let i=(0,s.A)(t);return i!==r.h&&(i=n.P),i.getAnimatableNone?i.getAnimatableNone(e):void 0}},22005:function(t,e,i){i.d(e,{A:function(){return o}});var n=i(33964),r=i(22779);let s={...i(66204).j,color:n.$,backgroundColor:n.$,outlineColor:n.$,fill:n.$,stroke:n.$,borderColor:n.$,borderTopColor:n.$,borderRightColor:n.$,borderBottomColor:n.$,borderLeftColor:n.$,filter:r.h,WebkitFilter:r.h},o=t=>s[t]},38580:function(t,e,i){i.d(e,{$:function(){return o},C:function(){return a}});var n=i(74305),r=i(27492),s=i(55113);let o=[n.Rx,r.px,r.aQ,r.RW,r.vw,r.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>o.find((0,s.l)(t))},66204:function(t,e,i){i.d(e,{j:function(){return l}});var n=i(74305),r=i(27492);let s={borderWidth:r.px,borderTopWidth:r.px,borderRightWidth:r.px,borderBottomWidth:r.px,borderLeftWidth:r.px,borderRadius:r.px,radius:r.px,borderTopLeftRadius:r.px,borderTopRightRadius:r.px,borderBottomRightRadius:r.px,borderBottomLeftRadius:r.px,width:r.px,maxWidth:r.px,height:r.px,maxHeight:r.px,top:r.px,right:r.px,bottom:r.px,left:r.px,padding:r.px,paddingTop:r.px,paddingRight:r.px,paddingBottom:r.px,paddingLeft:r.px,margin:r.px,marginTop:r.px,marginRight:r.px,marginBottom:r.px,marginLeft:r.px,backgroundPositionX:r.px,backgroundPositionY:r.px},o={rotate:r.RW,rotateX:r.RW,rotateY:r.RW,rotateZ:r.RW,scale:n.bA,scaleX:n.bA,scaleY:n.bA,scaleZ:n.bA,skew:r.RW,skewX:r.RW,skewY:r.RW,distance:r.px,translateX:r.px,translateY:r.px,translateZ:r.px,x:r.px,y:r.px,z:r.px,perspective:r.px,transformPerspective:r.px,opacity:n.Fq,originX:r.$C,originY:r.$C,originZ:r.px},a={...n.Rx,transform:Math.round},l={...s,...o,zIndex:a,size:r.px,fillOpacity:n.Fq,strokeOpacity:n.Fq,numOctaves:a}},55113:function(t,e,i){i.d(e,{l:function(){return n}});let n=t=>e=>e.test(t)},56596:function(t,e,i){i.d(e,{z:function(){return n}});let n=new Set(["width","height","top","left","right","bottom",...i(87487)._])},87487:function(t,e,i){i.d(e,{G:function(){return r},_:function(){return n}});let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=new Set(n)},39545:function(t,e,i){i.d(e,{e:function(){return c},m:function(){return h}});var n=i(90401),r=i(45414);let s=new Set,o=!1,a=!1;function l(){if(a){let t=Array.from(s).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=(0,n.Ei)(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);
1e&&e.forEach(e=>{var i;let[n,r]=e;null===(i=t.getValue(n))||void 0===i||i.set(r)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}a=!1,o=!1,s.forEach(t=>t.complete()),s.clear()}function u(){s.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(a=!0)})}function h(){u(),l()}class c{scheduleResolve(){this.isScheduled=!0,this.isAsync?(s.add(this),o||(o=!0,r.Wi.read(u),r.Wi.resolveKeyframes(l))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;for(let r=0;r<t.length;r++)if(null===t[r]){if(0===r){let r=null==n?void 0:n.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}else t[r]=t[r-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),s.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,s.delete(this))}resume(){this.isComplete||this.scheduleResolve()}constructor(t,e,i,n,r,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}}},67043:function(t,e,i){i.d(e,{x:function(){return r}});var n=i(31297);function r(t,e,i){let r=t.getProps();return(0,n.o)(r,e,void 0!==i?i:r.custom,t)}},31297:function(t,e,i){function n(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function r(t,e,i,r){if("function"==typeof e){let[s,o]=n(r);e=e(void 0!==i?i:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,o]=n(r);e=e(void 0!==i?i:t.custom,s,o)}return e}i.d(e,{o:function(){return r}})},48771:function(t,e,i){i.d(e,{C:function(){return o}});var n=i(4581),r=i(3078),s=i(67043);function o(t,e){let{transitionEnd:i={},transition:o={},...a}=(0,s.x)(t,e)||{};for(let e in a={...a,...i}){let i=(0,n.Y)(a[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,r.BX)(i))}}},24118:function(t,e,i){i.d(e,{c:function(){return n}});let n={skipAnimations:!1,useManualTiming:!1}},69013:function(t,e,i){function n(t,e){-1===t.indexOf(e)&&t.push(e)}function r(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{cl:function(){return r},y4:function(){return n}})},59111:function(t,e,i){i.d(e,{u:function(){return n}});let n=(t,e,i)=>i>e?e:i<t?t:i},44563:function(t,e,i){i.d(e,{j:function(){return n}});let n="undefined"!=typeof window},4946:function(t,e,i){i.d(e,{P:function(){return n}});let n=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)},13697:function(t,e,i){i.d(e,{W:function(){return n}});let n=t=>/^0[^.\s]+$/u.test(t)},96781:function(t,e,i){i.d(e,{t:function(){return n}});let n=(t,e,i)=>t+(e-t)*i},56920:function(t,e,i){i.d(e,{z:function(){return r}});let n=(t,e)=>i=>e(t(i)),r=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.reduce(n)}},4581:function(t,e,i){i.d(e,{Y:function(){return s},p:function(){return r}});var n=i(44944);let r=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),s=t=>(0,n.C)(t)?t[t.length-1]||0:t},34081:function(t,e,i){i.d(e,{L:function(){return r}});var n=i(69013);class r{add(t){return(0,n.y4)(this.subscriptions,t),()=>(0,n.cl)(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}constructor(){this.subscriptions=[]}}},53576:function(t,e,i){i.d(e,{h:function(){return r}});var n=i(2265);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},11534:function(t,e,i){i.d(e,{L:function(){return r}});var n=i(2265);let r=i(44563).j?n.useLayoutEffect:n.useEffect},14438:function(t,e,i){i.d(e,{R:function(){return n}});function n(t,e){return e?1e3/e*t:0}},3078:function(t,e,i){i.d(e,{BX:function(){return h}});var n=i(40504),r=i(34081),s=i(14438),o=i(45414);let a=t=>!isNaN(parseFloat(t)),l={current:void 0};class u{setCurrent(t){this.current=t,this.updatedAt=n.X.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=a(this.current))}setPrevFrameValue(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]: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 r.L);let i=this.events[t].add(e);return"change"===t?()=>{i(),o.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=n.X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,s.R)(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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}constructor(t,e={}){var i=this;this.version="11.17.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=function(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=n.X.now();i.updatedAt!==r&&i.setPrevFrameValue(),i.prev=i.current,i.setCurrent(t),i.current!==i.prev&&i.events.change&&i.events.change.notify(i.current),e&&i.events.renderRequest&&i.events.renderRequest.notify(i.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}}function h(t,e){return new u(t,e)}}
1,87325:function(t,e,i){i.d(e,{$:function(){return r}});var n=i(18859);let r={test:(0,i(65516).i)("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:n.m.transform}},92943:function(t,e,i){i.d(e,{J:function(){return a}});var n=i(74305),r=i(27492),s=i(15472),o=i(65516);let a={test:(0,o.i)("hsl","hue"),parse:(0,o.d)("hue","saturation","lightness"),transform:t=>{let{hue:e,saturation:i,lightness:o,alpha:a=1}=t;return"hsla("+Math.round(e)+", "+r.aQ.transform((0,s.N)(i))+", "+r.aQ.transform((0,s.N)(o))+", "+(0,s.N)(n.Fq.transform(a))+")"}}},33964:function(t,e,i){i.d(e,{$:function(){return o}});var n=i(87325),r=i(92943),s=i(18859);let o={test:t=>s.m.test(t)||n.$.test(t)||r.J.test(t),parse:t=>s.m.test(t)?s.m.parse(t):r.J.test(t)?r.J.parse(t):n.$.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?s.m.transform(t):r.J.transform(t)}},18859:function(t,e,i){i.d(e,{m:function(){return u}});var n=i(59111),r=i(74305),s=i(15472),o=i(65516);let a=t=>(0,n.u)(0,255,t),l={...r.Rx,transform:t=>Math.round(a(t))},u={test:(0,o.i)("rgb","red"),parse:(0,o.d)("red","green","blue"),transform:t=>{let{red:e,green:i,blue:n,alpha:o=1}=t;return"rgba("+l.transform(e)+", "+l.transform(i)+", "+l.transform(n)+", "+(0,s.N)(r.Fq.transform(o))+")"}}},65516:function(t,e,i){i.d(e,{i:function(){return s},d:function(){return o}});var n=i(66941);let r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,s=(t,e)=>i=>!!("string"==typeof i&&r.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),o=(t,e,i)=>r=>{if("string"!=typeof r)return r;let[s,o,a,l]=r.match(n.K);return{[t]:parseFloat(s),[e]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},22779:function(t,e,i){i.d(e,{h:function(){return l}});var n=i(83206),r=i(66941);let s=new Set(["brightness","contrast","saturate","opacity"]);function o(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(r.K)||[];if(!n)return t;let o=i.replace(n,""),a=s.has(e)?1:0;return n!==i&&(a*=100),e+"("+a+o+")"}let a=/\b([a-z-]*)\(.*?\)/gu,l={...n.P,getAnimatableNone:t=>{let e=t.match(a);return e?e.map(o).join(" "):t}}},83206:function(t,e,i){i.d(e,{V:function(){return h},P:function(){return f}});var n=i(33964);let r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var s=i(66941),o=i(15472);let a="number",l="color",u=/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 h(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},s=[],o=0,h=e.replace(u,t=>(n.$.test(t)?(r.color.push(o),s.push(l),i.push(n.$.parse(t))):t.startsWith("var(")?(r.var.push(o),s.push("var"),i.push(t)):(r.number.push(o),s.push(a),i.push(parseFloat(t))),++o,"${}")).split("${}");return{values:i,split:h,indexes:r,types:s}}function c(t){return h(t).values}function d(t){let{split:e,types:i}=h(t),r=e.length;return t=>{let s="";for(let u=0;u<r;u++)if(s+=e[u],void 0!==t[u]){let e=i[u];e===a?s+=(0,o.N)(t[u]):e===l?s+=n.$.transform(t[u]):s+=t[u]}return s}}let p=t=>"number"==typeof t?0:t,f={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(s.K))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(r))||void 0===i?void 0:i.length)||0)>0},parse:c,createTransformer:d,getAnimatableNone:function(t){let e=c(t);return d(t)(e.map(p))}}},74305:function(t,e,i){i.d(e,{Fq:function(){return s},Rx:function(){return r},bA:function(){return o}});var n=i(59111);let r={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...r,transform:t=>(0,n.u)(0,1,t)},o={...r,default:1}}
1,27492:function(t,e,i){i.d(e,{$C:function(){return u},RW:function(){return r},aQ:function(){return s},px:function(){return o},vh:function(){return a},vw:function(){return l}});let n=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>"".concat(e).concat(t)}),r=n("deg"),s=n("%"),o=n("px"),a=n("vh"),l=n("vw"),u={...s,parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)}},66941:function(t,e,i){i.d(e,{K:function(){return n}});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},15472:function(t,e,i){i.d(e,{N:function(){return n}});let n=t=>Math.round(1e5*t)/1e5},1327:function(t,e,i){i.d(e,{K:function(){return r}});var n=i(23999);function r(t,e){let i=t.getValue("willChange");if((0,n.i)(i)&&i.add)return i.add(e)}},23999:function(t,e,i){i.d(e,{i:function(){return n}});let n=t=>!!(t&&t.getVelocity)},45699:function(t,e,i){i.d(e,{sP:function(){return o},_F:function(){return c},iI:function(){return u},wk:function(){return v},ev:function(){return a},Mr:function(){return T},qE:function(){return d},xD:function(){return h},DJ:function(){return A},hR:function(){return g},eB:function(){return function t(e,i){if(e)return"function"==typeof e&&f()?v(e,i):d(e)?y(e):Array.isArray(e)?e.map(e=>t(e,i)||x.easeOut):x[e]}},EO:function(){return l},OD:function(){return j},KV:function(){return R},Vc:function(){return f}});var n=i(90107);let r=(0,n.X)(()=>void 0!==window.ScrollTimeline);class s{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t,e){let i=this.animations.map(i=>r()&&i.attachTimeline?i.attachTimeline(t):"function"==typeof e?e(i):void 0);return()=>{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class o extends s{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}function a(t,e){return t?t[e]||t.default||t:void 0}let l=2e4;function u(t){let e=0,i=t.next(e);for(;!i.done&&e<l;)e+=50,i=t.next(e);return e>=l?1/0:e}function h(t){return"function"==typeof t}function c(t,e){t.timeline=e,t.onfinish=null}let d=t=>Array.isArray(t)&&"number"==typeof t[0],p={linearEasing:void 0},f=function(t,e){let i=(0,n.X)(t);return()=>{var t;return null!==(t=p[e])&&void 0!==t?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing");var m=i(81645);let v=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=t((0,m.Y)(0,r-1,e))+", ";return`linear(${n.substring(0,n.length-2)})`};function g(t){return!!("function"==typeof t&&f()||!t||"string"==typeof t&&(t in x||f())||d(t)||Array.isArray(t)&&t.every(g))}let y=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,x={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:y([0,.65,.55,1]),circOut:y([.55,0,1,.45]),backIn:y([.31,.01,.66,-.59]),backOut:y([.33,1.53,.69,.99])},w={x:!1,y:!1};function b(t,e){let i=function(t,e,i){if(t instanceof Element)return[t];if("string"==typeof t){let e=document.querySelectorAll(t);return e?Array.from(e):[]}return Array.from(t)}(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function P(t){return e=>{"touch"===e.pointerType||w.x||w.y||t(e)}}function T(t,e,i={}){let[n,r,s]=b(t,i),o=P(t=>{let{target:i}=t,n=e(t);if("function"!=typeof n||!i)return;let s=P(t=>{n(t),i.removeEventListener("pointerleave",s)});i.addEventListener("pointerleave",s,r)});return n.forEach(t=>{t.addEventListener("pointerenter",o,r)}),s}let S=(t,e)=>!!e&&(t===e||S(t,e.parentElement)),A=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,E=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),M=new WeakSet;function C(t){return e=>{"Enter"===e.key&&t(e)}}function D(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let k=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=C(()=>{if(M.has(i))return;D(i,"down");let t=C(()=>{D(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>D(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function V(t){return A(t)&&!(w.x||w.y)}function j(t,e,i={}){let[n,r,s]=b(t,i),o=t=>{let n=t.currentTarget;if(!V(t)||M.has(n))return;M.add(n);let s=e(t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),V(t)&&M.has(n)&&(M.delete(n),"function"==typeof s&&s(t,{success:e}))},a=t=>{o(t,i.useGlobalTarget||S(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{E.has(t.tagName)||-1!==t.tabIndex||null!==t.getAttribute("tabindex")||(t.tabIndex=0),(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),t.addEventListener("focus",t=>k(t,r),r)}),s}function R(t){return"x"===t||"y"===t?w[t]?null:(w[t]=!0,()=>{w[t]=!1}):w.x||w.y?null:(w.x=w.y=!0,()=>{w.x=w.y=!1})}i(29711),i(56277)},62035:function(t,e,i){i.d(e,{K:function(){return r},k:function(){return s}});var n=i(56277);let r=n.Z,s=n.Z},90107:function(t,e,i){i.d(e,{X:function(){return n}});function n(t){let e;return()=>(void 0===e&&(e=t()),e)}},56277:function(t,e,i){i.d(e,{Z:function(){return n}});let n=t=>t},81645:function(t,e,i){i.d(e,{Y:function(){return n}});let n=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n}},29711:function(t,e,i){i.d(e,{X:function(){return r},w:function(){return n}});let n=t=>1e3*t,r=t=>t/1e3},28379:function(t,e,i){i.d(e,{H:function(){return P},o:function(){return S}});var n=i(2265),r=Object.defineProperty,s=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,l=(t,e,i)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,u=(t,e)=>{for(var i in e||(e={}))o.call(e,i)&&l(t,i,e[i]);if(s)for(var i of s(e))a.call(e,i)&&l(t,i,e[i]);return t},h=(t,e)=>{var i={};for(var n in t)o.call(t,n)&&0>e.indexOf(n)&&(i[n]=t[n]);if(null!=t&&s)for(var n of s(t))0>e.indexOf(n)&&a.call(t,n)&&(i[n]=t[n]);return i},c=(t,e)=>{let i="[react-use-intercom]";switch(t){case"info":default:console.log(`${i} ${e}`);break;case"warn":console.warn(`${i} ${e}`);break;case"error":console.error(`${i} ${e}`)}},d="undefined"==typeof window,p=t=>(Object.keys(t).forEach(e=>{t[e]&&"object"==typeof t[e]?p(t[e]):void 0===t[e]&&delete t[e]}),t),f=(t,...e)=>{if(!d&&window.Intercom)return window.Intercom.apply(null,[t,...e]);c("error",`${t} Intercom instance is not initalized yet`)},m=n.createContext(void 0),v=(t,e=0)=>{var i=window,n=i.Intercom;if("function"==typeof n)n("reattach_activator"),n("update",i.intercomSettings);else{var r=document,s=function(){s.c(arguments)};s.q=[],s.c=function(t){s.q.push(t)},i.Intercom=s;var o=function(){setTimeout(function(){var e=r.createElement("script");e.type="text/javascript",e.async=!0,e.src="https://widget.intercom.io/widget/"+t;var i=r.getElementsByTagName("script")[0];i.parentNode.insertBefore(e,i)},e)};"complete"===document.readyState?o():i.attachEvent?i.attachEvent("onload",o):i.addEventListener("load",o,!1)}},g=t=>({custom_launcher_selector:t.customLauncherSelector,alignment:t.alignment,vertical_padding:t.verticalPadding,horizontal_padding:t.horizontalPadding,hide_default_lau
1ncher:t.hideDefaultLauncher,session_duration:t.sessionDuration,action_color:t.actionColor,background_color:t.backgroundColor}),y=t=>u({company_id:t.companyId,name:t.name,created_at:t.createdAt,plan:t.plan,monthly_spend:t.monthlySpend,user_count:t.userCount,size:t.size,website:t.website,industry:t.industry},t.customAttributes),x=t=>({type:t.type,image_url:t.imageUrl}),w=t=>{var e;return u({email:t.email,user_id:t.userId,created_at:t.createdAt,name:t.name,phone:t.phone,last_request_at:t.lastRequestAt,unsubscribed_from_emails:t.unsubscribedFromEmails,language_override:t.languageOverride,utm_campaign:t.utmCampaign,utm_content:t.utmContent,utm_medium:t.utmMedium,utm_source:t.utmSource,utm_term:t.utmTerm,avatar:t.avatar&&x(t.avatar),user_hash:t.userHash,company:t.company&&y(t.company),companies:null==(e=t.companies)?void 0:e.map(y)},t.customAttributes)},b=t=>p(u(u({},g(t)),w(t))),P=t=>{var{appId:e,autoBoot:i=!1,autoBootProps:r,children:s,onHide:o,onShow:a,onUnreadCountChange:l,onUserEmailSupplied:p,shouldInitialize:g=!d,apiBase:y,initializeDelay:x}=t,w=h(t,["appId","autoBoot","autoBootProps","children","onHide","onShow","onUnreadCountChange","onUserEmailSupplied","shouldInitialize","apiBase","initializeDelay"]);let P=n.useRef(!1),T=n.useRef(!1),[S,A]=n.useState(!1),E=Object.keys(w).filter(t=>!t.startsWith("data-"));E.length>0&&c("warn",`some invalid props were passed to IntercomProvider. Please check following props: ${E.join(", ")}.`);let M=n.useCallback(()=>{A(!1),o&&o()},[o,A]),C=n.useCallback(()=>{A(!0),a&&a()},[a,A]),D=n.useCallback(t=>{if(!window.Intercom&&!g){c("warn","Intercom instance is not initialized because `shouldInitialize` is set to `false` in `IntercomProvider`");return}f("onHide",M),f("onShow",C),f("onUserEmailSupplied",p),l&&f("onUnreadCountChange",l);let i=u(u({app_id:e},y&&{api_base:y}),t&&b(t));window.intercomSettings=i,f("boot",i),P.current=!0},[y,e,M,C,l,p,g]);n.useEffect(()=>{d||!g||T.current||(v(e,x),i&&D(r),T.current=!0)},[e,i,r,D,x,g]);let k=n.useCallback((t,e)=>{if(!window.Intercom&&!g){c("warn","Intercom instance is not initialized because `shouldInitialize` is set to `false` in `IntercomProvider`");return}if(!P.current){c("warn",`"${t}" was called but Intercom has not booted yet. Please call 'boot' before calling '${t}' or set 'autoBoot' to true in the IntercomProvider.`);return}return e()},[g]),V=n.useCallback(()=>{P.current&&(f("shutdown"),delete window.intercomSettings,P.current=!1)},[]),j=n.useCallback(()=>{P.current&&(f("shutdown"),delete window.Intercom,delete window.intercomSettings,P.current=!1)},[]),R=n.useCallback(()=>{k("update",()=>{f("update",{last_request_at:Math.floor(new Date().getTime()/1e3)})})},[k]),O=n.useCallback(t=>{k("update",()=>{if(!t){R();return}let e=b(t);window.intercomSettings=u(u({},window.intercomSettings),e),f("update",e)})},[k,R]),L=n.useCallback(()=>{k("hide",()=>{f("hide")})},[k]),F=n.useCallback(()=>{k("show",()=>f("show"))},[k]),B=n.useCallback(()=>{k("showMessages",()=>{f("showMessages")})},[k]),I=n.useCallback(t=>{k("showNewMessage",()=>{t?f("showNewMessage",t):f("showNewMessage")})},[k]),U=n.useCallback(()=>k("getVisitorId",()=>f("getVisitorId")),[k]),W=n.useCallback(t=>{k("startTour",()=>{f("startTour",t)})},[k]),N=n.useCallback(t=>{k("startChecklist",()=>{f("startChecklist",t)})},[k]),_=n.useCallback((t,e)=>{k("trackEvent",()=>{e?f("trackEvent",t,e):f("trackEvent",t)})},[k]),X=n.useCallback(t=>k("showArticle",()=>{f("showArticle",t)}),[k]),z=n.useCallback(t=>k("showSpace",()=>{f("showSpace",t)}),[k]),$=n.useCallback(t=>{k("startSurvey",()=>{f("startSurvey",t)})},[k]),K=n.useCallback(t=>k("showNews",()=>{f("showNews",t)}),[k]),Y=n.useCallback(t=>k("showTicket",()=>{f("showTicket",t)}),[k]),q=n.useCallback(t=>k("showConversation",()=>{f("showConversation",t)}),[k]),H=n.useMemo(()=>({boot:D,shutdown:V,hardShutdown:j,update:O,hide:L,show:F,isOpen:S,showMessages:B,showNewMessage:I,getVisitorId:U,startTour:W,startChecklist:N,trackEvent:_,showArticle:X,startSurvey:$,showSpace:z,showNews:K,showTicket:Y,showConversation:q}),[D,V,j,O,L,F,S,B,I,U,W,N,_,X,$,z,K,Y,q]);return n.createElement(m.Provider,{value:H},s)},T=()=>{let t=n.useContext(m);if(void 0===t)throw Error('"useIntercom" must be used within `IntercomProvider`.');return t},S=()=>T()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.