PageSourceSearch

https://necko.tech/_next/static/chunks/197-990582769159f1f5.js

js necko.tech collected 2026-10-02 14:58:51 UTC 149,893 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[197],{5750:function(t,e,r){r.d(e,{_:function(){return i}});let i=(0,r(2265).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},8345:function(t,e,r){r.d(e,{Pn:function(){return a},Wi:function(){return o},frameData:function(){return l},S6:function(){return u}});var i=r(4439);class n{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}let s=["prepare","read","update","preRender","render","postRender"],{schedule:o,cancel:a,state:l,steps:u}=function(t,e){let r=!1,i=!0,o={delta:0,timestamp:0,isProcessing:!1},a=s.reduce((t,e)=>(t[e]=function(t){let e=new n,r=new n,i=0,s=!1,o=!1,a=new WeakSet,l={schedule:(t,n=!1,o=!1)=>{let l=o&&s,u=l?e:r;return n&&a.add(t),u.add(t)&&l&&s&&(i=e.order.length),t},cancel:t=>{r.remove(t),a.delete(t)},process:n=>{if(s){o=!0;return}if(s=!0,[e,r]=[r,e],r.clear(),i=e.order.length)for(let r=0;r<i;r++){let i=e.order[r];i(n),a.has(i)&&(l.schedule(i),t())}s=!1,o&&(o=!1,l.process(n))}};return l}(()=>r=!0),t),{}),l=t=>a[t].process(o),u=()=>{let n=performance.now();r=!1,o.delta=i?1e3/60:Math.max(Math.min(n-o.timestamp,40),1),o.timestamp=n,o.isProcessing=!0,s.forEach(l),o.isProcessing=!1,r&&e&&(i=!1,t(u))},h=()=>{r=!0,i=!0,o.isProcessing||t(u)};return{schedule:s.reduce((t,e)=>{let i=a[e];return t[e]=(t,e=!1,n=!1)=>(r||h(),i.schedule(t,e,n)),t},{}),cancel:t=>s.forEach(e=>a[e].cancel(t)),state:o,steps:a}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:i.Z,!0)},1609:function(t,e,r){let i;r.d(e,{E:function(){return i4}});var n,s=r(2265),o=r(5750);let a=(0,s.createContext)({}),l=(0,s.createContext)(null);var u=r(1534);let h=(0,s.createContext)({strict:!1}),c=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),p="data-"+c("framerAppearId");function f(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function m(t){return"string"==typeof t||Array.isArray(t)}function d(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}let g=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],v=["initial",...g];function y(t){return d(t.animate)||v.some(e=>m(t[e]))}function E(t){return!!(y(t)||t.variants)}function b(t){return Array.isArray(t)?t.join(" "):t}let T={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"]},P={};for(let t in T)P[t]={isEnabled:e=>T[t].some(t=>!!e[t])};var A=r(4563);let x=(0,s.createContext)({}),S=(0,s.createContext)({}),B=Symbol.for("motionComponentSymbol"),C=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function M(t){if("string"!=typeof t||t.includes("-"));else if(C.indexOf(t)>-1||/[A-Z]/.test(t))return!0;return!1}let w={},L=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],R=new Set(L);function H(t,{layout:e,layoutId:r}){return R.has(t)||t.startsWith("origin")||(e||void 0!==r)&&(!!w[t]||"opacity"===t)}var I=r(3999);let D={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},N=L.length;var _=r(7249);let V=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var O=r(4305),F=r(7492);let k={...O.Rx,transform:Math.round},U={borderWidth:F.px,borderTopWidth:F.px,borderRightWidth:F.px,borderBottomWidth:F.px,borderLeftWidth:F.px,borderRadius:F.px,radius:F.px,borderTopLeftRadius:F.px,borderTopRightRadius:F.px,borderBottomRightRadius:F.px,borderBottomLeftRadius:F.px,width:F.px,maxWidth:F.px,height:F.px,maxHeight:F.px,size:F.px,top:F.px,right:F.px,bottom:F.px,left:F.px,padding:F.px,paddingTop:F.px,paddingRight:F.px,paddingBottom:F.px,paddingLeft:F.px,margin:F.px,marginTop:F.px,marginRight:F.px,marginBottom:F.px,marginLeft:F.px,rotate:F.RW,rotateX:F.RW,rotateY:F.RW,rotateZ:F.RW,scale:O.bA,scaleX:O.bA,scaleY:O.bA,scaleZ:O.bA,skew:F.RW,skewX:F.RW,skewY:F.RW,distance:F.px,translateX:F.px,translateY:F.px,translateZ:F.px,x:F.px,y:F.px,z:F.px,perspective:F.px,transformPerspective:F.px,opacity:O.Fq,originX:F.$C,originY:F.$C,originZ:F.px,zIndex:k,fillOpacity:O.Fq,strokeOpacity:O.Fq,numOctaves:k};function G(t,e,r,i){let{style:n,vars:s,transform:o,transformOrigin:a}=t,l=!1,u=!1,h=!0;for(let t in e){let r=e[t];if((0,_.f9)(t)){s[t]=r;continue}let i=U[t],c=V(r,i);if(R.has(t)){if(l=!0,o[t]=c,!h)continue;r!==(i.default||0)&&(h=!1)}else t.startsWith("origin")?(u=!0,a[t]=c):n[t]=c}if(!e.transform&&(l||i?n.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:r=!0},i,n){let s="";for(let e=0;e<N;e++){let r=L[e];if(void 0!==t[r]){let e=D[r]||r;s+=`${e}(${t[r]}) `}}return e&&!t.z&&(s+="translateZ(0)"),s=s.trim(),n?s=n(t,i?"":s):r&&i&&(s="none"),s}(t.transform,r,h,i):n.transform&&(n.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:r=0}=a;n.transformOrigin=`${t} ${e} ${r}`}}let j=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function W(t,e,r){for(let i in e)(0,I.i)(e[i])||H(i,r)||(t[i]=e[i])}var $=r(6257);function X(t,e,r){return"string"==typeof t?t:F.px.transform(e+r*t)}let Z={offset:"stroke-dashoffset",array:"stroke-dasharray"},Y={offset:"strokeDashoffset",array:"strokeDasharray"};function K(t,{attrX:e,attrY:r,attrScale:i,originX:n,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u}
1,h,c,p){if(G(t,u,h,p),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:f,style:m,dimensions:d}=t;f.transform&&(d&&(m.transform=f.transform),delete f.transform),d&&(void 0!==n||void 0!==s||m.transform)&&(m.transformOrigin=function(t,e,r){let i=X(e,t.x,t.width),n=X(r,t.y,t.height);return`${i} ${n}`}(d,void 0!==n?n:.5,void 0!==s?s:.5)),void 0!==e&&(f.x=e),void 0!==r&&(f.y=r),void 0!==i&&(f.scale=i),void 0!==o&&function(t,e,r=1,i=0,n=!0){t.pathLength=1;let s=n?Z:Y;t[s.offset]=F.px.transform(-i);let o=F.px.transform(e),a=F.px.transform(r);t[s.array]=`${o} ${a}`}(f,o,a,l,!1)}let z=()=>({...j(),attrs:{}}),q=t=>"string"==typeof t&&"svg"===t.toLowerCase();function J(t,{style:e,vars:r},i,n){for(let s in Object.assign(t.style,e,n&&n.getProjectionStyles(i)),r)t.style.setProperty(s,r[s])}let Q=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 tt(t,e,r,i){for(let r in J(t,e,void 0,i),e.attrs)t.setAttribute(Q.has(r)?r:c(r),e.attrs[r])}function te(t,e){let{style:r}=t,i={};for(let n in r)((0,I.i)(r[n])||e.style&&(0,I.i)(e.style[n])||H(n,t))&&(i[n]=r[n]);return i}function tr(t,e){let r=te(t,e);for(let i in t)((0,I.i)(t[i])||(0,I.i)(e[i]))&&(r[-1!==L.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return r}function ti(t,e,r,i={},n={}){return"function"==typeof e&&(e=e(void 0!==r?r:t.custom,i,n)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==r?r:t.custom,i,n)),e}var tn=r(3576);let ts=t=>Array.isArray(t),to=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),ta=t=>ts(t)?t[t.length-1]||0:t;function tl(t){let e=(0,I.i)(t)?t.get():t;return to(e)?e.toValue():e}let tu=t=>(e,r)=>{let i=(0,s.useContext)(a),n=(0,s.useContext)(l),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:r},i,n,s){let o={latestValues:function(t,e,r,i){let n={},s=i(t,{});for(let t in s)n[t]=tl(s[t]);let{initial:o,animate:a}=t,l=y(t),u=E(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!r&&!1===r.initial,c=(h=h||!1===o)?a:o;return c&&"boolean"!=typeof c&&!d(c)&&(Array.isArray(c)?c:[c]).forEach(e=>{let r=ti(t,e);if(!r)return;let{transitionEnd:i,transition:s,...o}=r;for(let t in o){let e=o[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(n[t]=e)}for(let t in i)n[t]=i[t]}),n}(i,n,s,t),renderState:e()};return r&&(o.mount=t=>r(i,t,o)),o})(t,e,i,n);return r?o():(0,tn.h)(o)};var th=r(8345);let tc={useVisualState:tu({scrapeMotionValuesFromProps:tr,createRenderState:z,onMount:(t,e,{renderState:r,latestValues:i})=>{th.Wi.read(()=>{try{r.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){r.dimensions={x:0,y:0,width:0,height:0}}}),th.Wi.render(()=>{K(r,i,{enableHardwareAcceleration:!1},q(e.tagName),t.transformTemplate),tt(e,r)})}})},tp={useVisualState:tu({scrapeMotionValuesFromProps:te,createRenderState:j})};function tf(t,e,r,i={passive:!0}){return t.addEventListener(e,r,i),()=>t.removeEventListener(e,r)}let tm=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function td(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}let tg=t=>e=>tm(e)&&t(e,td(e));function tv(t,e,r,i){return tf(t,e,tg(r),i)}var ty=r(332);function tE(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let tb=tE("dragHorizontal"),tT=tE("dragVertical");function tP(t){let e=!1;if("y"===t)e=tT();else if("x"===t)e=tb();else{let t=tb(),r=tT();t&&r?e=()=>{t(),r()}:(t&&t(),r&&r())}return e}function tA(){let t=tP(!0);return!t||(t(),!1)}class tx{constructor(t){this.isMounted=!1,this.node=t}update(){}}function tS(t,e){let r="onHover"+(e?"Start":"End");return tv(t.current,"pointer"+(e?"enter":"leave"),(i,n)=>{if("touch"===i.pointerType||tA())return;let s=t.getProps();t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",e),s[r]&&th.Wi.update(()=>s[r](i,n))},{passive:!t.getProps()[r]})}class tB extends tx{mount(){this.unmount=(0,ty.z)(tS(this.node,!0),tS(this.node,!1))}unmount(){}}class tC extends tx{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,ty.z)(tf(this.node.current,"focus",()=>this.onFocus()),tf(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let tM=(t,e)=>!!e&&(t===e||tM(t,e.parentElement));var tw=r(4439);function tL(t,e){if(!e)return;let r=new PointerEvent("pointer"+t);e(r,td(r))}class tR extends tx{constructor(){super(...arguments),this.removeStartListeners=tw.Z,this.removeEndListeners=tw.Z,this.removeAccessibleListeners=tw.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let r=this.node.getProps(),i=tv(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:r,onTapCancel:i,globalTapTarget:n}=this.node.getProps();th.Wi.update(()=>{n||tM(this.node.current,t.target)?r&&r(t,e):i&&i(t,e)})},{passive:!(r.onTap||r.onPointerUp)}),n=tv(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(r.onTapCancel||r.onPointerCancel)});
1this.removeEndListeners=(0,ty.z)(i,n),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=tf(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=tf(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&tL("up",(t,e)=>{let{onTap:r}=this.node.getProps();r&&th.Wi.update(()=>r(t,e))})}),tL("down",(t,e)=>{this.startPress(t,e)}))}),e=tf(this.node.current,"blur",()=>{this.isPressing&&tL("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=(0,ty.z)(t,e)}}startPress(t,e){this.isPressing=!0;let{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&th.Wi.update(()=>r(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tA()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:r}=this.node.getProps();r&&th.Wi.update(()=>r(t,e))}mount(){let t=this.node.getProps(),e=tv(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=tf(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,ty.z)(e,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let tH=new WeakMap,tI=new WeakMap,tD=t=>{let e=tH.get(t.target);e&&e(t)},tN=t=>{t.forEach(tD)},t_={some:0,all:1};class tV extends tx{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:r,amount:i="some",once:n}=t,s={root:e?e.current:void 0,rootMargin:r,threshold:"number"==typeof i?i:t_[i]};return function(t,e,r){let i=function({root:t,...e}){let r=t||document;tI.has(r)||tI.set(r,{});let i=tI.get(r),n=JSON.stringify(e);return i[n]||(i[n]=new IntersectionObserver(tN,{root:t,...e})),i[n]}(e);return tH.set(t,r),i.observe(t),()=>{tH.delete(t),i.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,n&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:r,onViewportLeave:i}=this.node.getProps(),s=e?r:i;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}(t,e))&&this.startObserver()}unmount(){}}function tO(t,e){if(!Array.isArray(e))return!1;let r=e.length;if(r!==t.length)return!1;for(let i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function tF(t,e,r){let i=t.getProps();return ti(i,e,void 0!==r?r:i.custom,function(t){let e={};return t.values.forEach((t,r)=>e[r]=t.get()),e}(t),function(t){let e={};return t.values.forEach((t,r)=>e[r]=t.getVelocity()),e}(t))}var tk=r(3223);let tU=t=>1e3*t,tG=t=>t/1e3,tj={current:!1},tW=t=>Array.isArray(t)&&"number"==typeof t[0],t$=([t,e,r,i])=>`cubic-bezier(${t}, ${e}, ${r}, ${i})`,tX={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t$([0,.65,.55,1]),circOut:t$([.55,0,1,.45]),backIn:t$([.31,.01,.66,-.59]),backOut:t$([.33,1.53,.69,.99])},tZ=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t;function tY(t,e,r,i){if(t===e&&r===i)return tw.Z;let n=e=>(function(t,e,r,i,n){let s,o;let a=0;do(s=tZ(o=e+(r-e)/2,i,n)-t)>0?r=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,r);return t=>0===t||1===t?t:tZ(n(t),e,i)}let tK=tY(.42,0,1,1),tz=tY(0,0,.58,1),tq=tY(.42,0,.58,1),tJ=t=>Array.isArray(t)&&"number"!=typeof t[0],tQ=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,t0=t=>e=>1-t(1-e),t1=t=>1-Math.sin(Math.acos(t)),t2=t0(t1),t3=tQ(t1),t5=tY(.33,1.53,.69,.99),t8=t0(t5),t6=tQ(t8),t9={linear:tw.Z,easeIn:tK,easeInOut:tq,easeOut:tz,circIn:t1,circInOut:t3,circOut:t2,backIn:t8,backInOut:t6,backOut:t5,anticipate:t=>(t*=2)<1?.5*t8(t):.5*(2-Math.pow(2,-10*(t-1)))},t4=t=>
1{if(Array.isArray(t)){(0,tk.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,r,i,n]=t;return tY(e,r,i,n)}return"string"==typeof t?((0,tk.k)(void 0!==t9[t],`Invalid easing type '${t}'`),t9[t]):t};var t7=r(2888),et=r(8913);function ee({duration:t=300,keyframes:e,times:r,ease:i="easeInOut"}){let n=tJ(i)?i.map(t4):t4(i),s={done:!1,value:e[0]},o=(r&&r.length===e.length?r:(0,et.Y)(e)).map(e=>e*t),a=(0,t7.s)(o,e,{ease:Array.isArray(n)?n:e.map(()=>n||tq).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=a(e),s.done=e>=t,s)}}var er=r(4438);function ei(t,e,r){let i=Math.max(e-5,0);return(0,er.R)(r-t(i),e-i)}var en=r(9111);function es(t,e){return t*Math.sqrt(1-e*e)}let eo=["duration","bounce"],ea=["stiffness","damping","mass"];function el(t,e){return e.some(e=>void 0!==t[e])}function eu({keyframes:t,restDelta:e,restSpeed:r,...i}){let n;let s=t[0],o=t[t.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:h,duration:c,velocity:p,isResolvedFromDuration:f}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!el(t,ea)&&el(t,eo)){let r=function({duration:t=800,bounce:e=.25,velocity:r=0,mass:i=1}){let n,s;(0,tk.K)(t<=tU(10),"Spring duration must be 10 seconds or less");let o=1-e;o=(0,en.u)(.05,1,o),t=(0,en.u)(.01,10,tG(t)),o<1?(n=e=>{let i=e*o,n=i*t;return .001-(i-r)/es(e,o)*Math.exp(-n)},s=e=>{let i=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=es(Math.pow(e,2),o);return(i*r+r-s)*Math.exp(-i)*(-n(e)+.001>0?-1:1)/a}):(n=e=>-.001+Math.exp(-e*t)*((e-r)*t+1),s=e=>t*t*(r-e)*Math.exp(-e*t));let a=function(t,e,r){let i=r;for(let r=1;r<12;r++)i-=t(i)/e(i);return i}(n,s,5/t);if(t=tU(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*i;return{stiffness:e,damping:2*o*Math.sqrt(i*e),duration:t}}}(t);(e={...e,...r,mass:1}).isResolvedFromDuration=!0}return e}({...i,velocity:-tG(i.velocity||0)}),m=p||0,d=u/(2*Math.sqrt(l*h)),g=o-s,v=tG(Math.sqrt(l/h)),y=5>Math.abs(g);if(r||(r=y?.01:2),e||(e=y?.005:.5),d<1){let t=es(v,d);n=e=>o-Math.exp(-d*v*e)*((m+d*v*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}else if(1===d)n=t=>o-Math.exp(-v*t)*(g+(m+v*g)*t);else{let t=v*Math.sqrt(d*d-1);n=e=>{let r=Math.exp(-d*v*e),i=Math.min(t*e,300);return o-r*((m+d*v*g)*Math.sinh(i)+t*g*Math.cosh(i))/t}}return{calculatedDuration:f&&c||null,next:t=>{let i=n(t);if(f)a.done=t>=c;else{let s=m;0!==t&&(s=d<1?ei(n,t,i):0);let l=Math.abs(s)<=r,u=Math.abs(o-i)<=e;a.done=l&&u}return a.value=a.done?o:i,a}}}function eh({keyframes:t,velocity:e=0,power:r=.8,timeConstant:i=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,p;let f=t[0],m={done:!1,value:f},d=t=>void 0!==a&&t<a||void 0!==l&&t>l,g=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,v=r*e,y=f+v,E=void 0===o?y:o(y);E!==y&&(v=E-f);let b=t=>-v*Math.exp(-t/i),T=t=>E+b(t),P=t=>{let e=b(t),r=T(t);m.done=Math.abs(e)<=u,m.value=m.done?E:r},A=t=>{d(m.value)&&(c=t,p=eu({keyframes:[m.value,g(m.value)],velocity:ei(T,t,m.value),damping:n,stiffness:s,restDelta:u,restSpeed:h}))};return A(0),{calculatedDuration:null,next:t=>{let e=!1;return(p||void 0!==c||(e=!0,P(t),A(t)),void 0!==c&&t>c)?p.next(t-c):(e||P(t),m)}}}let ec=t=>{let e=({timestamp:e})=>t(e);return{start:()=>th.Wi.update(e,!0),stop:()=>(0,th.Pn)(e),now:()=>th.frameData.isProcessing?th.frameData.timestamp:performance.now()}};function ep(t){let e=0,r=t.next(e);for(;!r.done&&e<2e4;)e+=50,r=t.next(e);return e>=2e4?1/0:e}let ef={decay:eh,inertia:eh,tween:ee,keyframes:ee,spring:eu};function em({autoplay:t=!0,delay:e=0,driver:r=ec,keyframes:i,type:n="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:h,onUpdate:c,...p}){let f,m,d,g,v,y=1,E=!1,b=()=>{m=new Promise(t=>{f=t})};b();let T=ef[n]||ee;T!==ee&&"number"!=typeof i[0]&&(g=(0,t7.s)([0,100],i,{clamp:!1}),i=[0,100]);let P=T({...p,keyframes:i});"mirror"===a&&(v=T({...p,keyframes:[...i].reverse(),velocity:-(p.velocity||0)}));let A="idle",x=null,S=null,B=null;null===P.calculatedDuration&&s&&(P.calculatedDuration=ep(P));let{calculatedDuration:C}=P,M=1/0,w=1/0;null!==C&&(w=(M=C+o)*(s+1)-o);let L=0,R=t=>{if(null===S)return;y>0&&(S=Math.min(S,t)),y<0&&(S=Math.min(t-w/y,S));let r=(L=null!==x?x:Math.round(t-S)*y)-e*(y>
1=0?1:-1),n=y>=0?r<0:r>w;L=Math.max(r,0),"finished"===A&&null===x&&(L=w);let l=L,u=P;if(s){let t=Math.min(L,w)/M,e=Math.floor(t),r=t%1;!r&&t>=1&&(r=1),1===r&&e--,(e=Math.min(e,s+1))%2&&("reverse"===a?(r=1-r,o&&(r-=o/M)):"mirror"===a&&(u=v)),l=(0,en.u)(0,1,r)*M}let h=n?{done:!1,value:i[0]}:u.next(l);g&&(h.value=g(h.value));let{done:p}=h;n||null===C||(p=y>=0?L>=w:L<=0);let f=null===x&&("finished"===A||"running"===A&&p);return c&&c(h.value),f&&D(),h},H=()=>{d&&d.stop(),d=void 0},I=()=>{A="idle",H(),f(),b(),S=B=null},D=()=>{A="finished",h&&h(),H(),f()},N=()=>{if(E)return;d||(d=r(R));let t=d.now();l&&l(),null!==x?S=t-x:S&&"finished"!==A||(S=t),"finished"===A&&b(),B=S,x=null,A="running",d.start()};t&&N();let _={then:(t,e)=>m.then(t,e),get time(){return tG(L)},set time(newTime){L=newTime=tU(newTime),null===x&&d&&0!==y?S=d.now()-newTime/y:x=newTime},get duration(){return tG(null===P.calculatedDuration?ep(P):P.calculatedDuration)},get speed(){return y},set speed(newSpeed){if(newSpeed===y||!d)return;y=newSpeed,_.time=tG(L)},get state(){return A},play:N,pause:()=>{A="paused",x=L},stop:()=>{E=!0,"idle"!==A&&(A="idle",u&&u(),I())},cancel:()=>{null!==B&&R(B),I()},complete:()=>{A="finished"},sample:t=>(S=0,R(t))};return _}let ed=(n=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===i&&(i=n()),i)),eg=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ev=(t,e)=>"spring"===e.type||"backgroundColor"===t||!function t(e){return!!(!e||"string"==typeof e&&tX[e]||tW(e)||Array.isArray(e)&&e.every(t))}(e.ease),ey={type:"spring",stiffness:500,damping:25,restSpeed:10},eE=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),eb={type:"keyframes",duration:.8},eT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},eP=(t,{keyframes:e})=>e.length>2?eb:R.has(t)?t.startsWith("scale")?eE(e[1]):ey:eT;var eA=r(5636);let ex=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eA.P.test(e)||"0"===e)&&!e.startsWith("url("));var eS=r(796);let eB=new Set(["brightness","contrast","saturate","opacity"]);function eC(t){let[e,r]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[i]=r.match(eS.KP)||[];if(!i)return t;let n=r.replace(i,""),s=eB.has(e)?1:0;return i!==r&&(s*=100),e+"("+s+n+")"}let eM=/([a-z-]*)\(.*?\)/g,ew={...eA.P,getAnimatableNone:t=>{let e=t.match(eM);return e?e.map(eC).join(" "):t}};var eL=r(7720);let eR={...U,color:eL.$,backgroundColor:eL.$,outlineColor:eL.$,fill:eL.$,stroke:eL.$,borderColor:eL.$,borderTopColor:eL.$,borderRightColor:eL.$,borderBottomColor:eL.$,borderLeftColor:eL.$,filter:ew,WebkitFilter:ew},eH=t=>eR[t];function eI(t,e){let r=eH(t);return r!==ew&&(r=eA.P),r.getAnimatableNone?r.getAnimatableNone(e):void 0}let eD=t=>/^0[^.\s]+$/.test(t);function eN(t,e){return t[e]||t.default||t}let e_={skipAnimations:!1},eV=(t,e,r,i={})=>n=>{let s=eN(i,t)||{},o=s.delay||i.delay||0,{elapsed:a=0}=i;a-=tU(o);let l=function(t,e,r,i){let n,s;let o=ex(e,r);n=Array.isArray(r)?[...r]:[null,r];let a=void 0!==i.from?i.from:t.get(),l=[];for(let t=0;t<n.length;t++){var u;null===n[t]&&(n[t]=0===t?a:n[t-1]),("number"==typeof(u=n[t])?0===u:null!==u?"none"===u||"0"===u||eD(u):void 0)&&l.push(t),"string"==typeof n[t]&&"none"!==n[t]&&"0"!==n[t]&&(s=n[t])}if(o&&l.length&&s)for(let t=0;t<l.length;t++)n[l[t]]=eI(e,s);return n}(e,t,r,s),u=l[0],h=l[l.length-1],c=ex(t,u),p=ex(t,h);(0,tk.K)(c===p,`You are trying to animate ${t} from "${u}" to "${h}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${h} via the \`style\` property.`);let f={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...s,delay:-a,onUpdate:t=>{e.set(t),s.onUpdate&&s.onUpdate(t)},onComplete:()=>{n(),s.onComplete&&s.onComplete()}};if(!function({when:t,delay:e,delayChildren:r,staggerChildren:i,staggerDirection:n,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(s)&&(f={...f,...eP(t,f)}),f.duration&&(f.duration=tU(f.duration)),f.repeatDelay&&(f.repeatDelay=tU(f.repeatDelay)),!c||!p||tj.current||!1===s.type||e_.skipAnimations)return function({keyframes:t,delay:e,onUpdate:r,onComplete:i}){let n=()=>(r&&r(t[t.length-1]),i&&i(),{time:0,speed:1,duration:0,play:tw.Z,pause:tw.Z,stop:tw.Z,then:t=>(t(),Promise.resolve()),cancel:tw.Z,complete:tw.Z});return e?em({keyframes:[0,1],duration:0,delay:e,onComplete:n}):n()}(tj.current?{...f,delay:0}:f);if(!i.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUp
1date){let r=function(t,e,{onUpdate:r,onComplete:i,...n}){let s,o;if(!(ed()&&eg.has(e)&&!n.repeatDelay&&"mirror"!==n.repeatType&&0!==n.damping&&"inertia"!==n.type))return!1;let a=!1,l=!1,u=()=>{o=new Promise(t=>{s=t})};u();let{keyframes:h,duration:c=300,ease:p,times:f}=n;if(ev(e,n)){let t=em({...n,repeat:0,delay:0}),e={done:!1,value:h[0]},r=[],i=0;for(;!e.done&&i<2e4;)e=t.sample(i),r.push(e.value),i+=10;f=void 0,h=r,c=i-10,p="linear"}let m=function(t,e,r,{delay:i=0,duration:n,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){let u={[e]:r};l&&(u.offset=l);let h=function t(e){if(e)return tW(e)?t$(e):Array.isArray(e)?e.map(t):tX[e]}(a);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:i,duration:n,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}(t.owner.current,e,h,{...n,duration:c,ease:p,times:f}),d=()=>{l=!1,m.cancel()},g=()=>{l=!0,th.Wi.update(d),s(),u()};return m.onfinish=()=>{l||(t.set(function(t,{repeat:e,repeatType:r="loop"}){let i=e&&"loop"!==r&&e%2==1?0:t.length-1;return t[i]}(h,n)),i&&i(),g())},{then:(t,e)=>o.then(t,e),attachTimeline:t=>(m.timeline=t,m.onfinish=null,tw.Z),get time(){return tG(m.currentTime||0)},set time(newTime){m.currentTime=tU(newTime)},get speed(){return m.playbackRate},set speed(newSpeed){m.playbackRate=newSpeed},get duration(){return tG(c)},play:()=>{a||(m.play(),(0,th.Pn)(d))},pause:()=>m.pause(),stop:()=>{if(a=!0,"idle"===m.playState)return;let{currentTime:e}=m;if(e){let r=em({...n,autoplay:!1});t.setWithVelocity(r.sample(e-10).value,r.sample(e).value,10)}g()},complete:()=>{l||m.finish()},cancel:g}}(e,t,f);if(r)return r}return em(f)};function eO(t){return!!((0,I.i)(t)&&t.add)}let eF=t=>/^\-?\d*\.?\d+$/.test(t);var ek=r(3078);let eU=t=>e=>e.test(t),eG=[O.Rx,F.px,F.aQ,F.RW,F.vw,F.vh,{test:t=>"auto"===t,parse:t=>t}],ej=t=>eG.find(eU(t)),eW=[...eG,eL.$,eA.P],e$=t=>eW.find(eU(t));function eX(t,e,{delay:r=0,transitionOverride:i,type:n}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:o,...a}=t.makeTargetAnimatable(e),l=t.getValue("willChange");i&&(s=i);let u=[],h=n&&t.animationState&&t.animationState.getState()[n];for(let e in a){let i=t.getValue(e),n=a[e];if(!i||void 0===n||h&&function({protectedKeys:t,needsAnimating:e},r){let i=t.hasOwnProperty(r)&&!0!==e[r];return e[r]=!1,i}(h,e))continue;let o={delay:r,elapsed:0,...eN(s||{},e)};if(window.HandoffAppearAnimations){let r=t.getProps()[p];if(r){let t=window.HandoffAppearAnimations(r,e,i,th.Wi);null!==t&&(o.elapsed=t,o.isHandoff=!0)}}let c=!o.isHandoff&&!function(t,e){let r=t.get();if(!Array.isArray(e))return r!==e;for(let t=0;t<e.length;t++)if(e[t]!==r)return!0}(i,n);if("spring"===o.type&&(i.getVelocity()||o.velocity)&&(c=!1),i.animation&&(c=!1),c)continue;i.start(eV(e,i,n,t.shouldReduceMotion&&R.has(e)?{type:!1}:o));let f=i.animation;eO(l)&&(l.add(e),f.then(()=>l.remove(e))),u.push(f)}return o&&Promise.all(u).then(()=>{o&&function(t,e){let r=tF(t,e),{transitionEnd:i={},transition:n={},...s}=r?t.makeTargetAnimatable(r,!1):{};for(let e in s={...s,...i}){let r=ta(s[e]);t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,(0,ek.BX)(r))}}(t,o)}),u}function eZ(t,e,r={}){let i=tF(t,e,r.custom),{transition:n=t.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(n=r.transitionOverride);let s=i?()=>Promise.all(eX(t,i,r)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(i=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=n;return function(t,e,r=0,i=0,n=1,s){let o=[],a=(t.variantChildren.size-1)*i,l=1===n?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(eY).forEach((t,i)=>{t.notify("AnimationStart",e),o.push(eZ(t,e,{...s,delay:r+l(i)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,s+i,o,a,r)}:()=>Promise.resolve(),{when:a}=n;if(!a)return Promise.all([s(),o(r.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}function eY(t,e){return t.sortNodePosition(e)}let eK=[...g].reverse(),ez=g.length;function eq(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class eJ extends tx{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:r})=>(function(t,e,r={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e))i=Promise.all(e.map(e=>eZ(t,e,r)));else if("string"==typeof e)i=eZ(t,e,r);else{let n="function"==typeof e?tF(t,e,r.custom):e;i=Promise.all(eX(t,n,r))}return i.then(()=>t.notify("AnimationComplete",e))})(t,e,r))),r={animate:eq(!0),whileInView:eq(),whileHover:eq(),whileTap:eq(),whileDrag:eq(
1),whileFocus:eq(),exit:eq()},i=!0,n=(e,r)=>{let i=tF(t,r);if(i){let{transition:t,transitionEnd:r,...n}=i;e={...e,...n,...r}}return e};function s(s,o){let a=t.getProps(),l=t.getVariantContext(!0)||{},u=[],h=new Set,c={},p=1/0;for(let e=0;e<ez;e++){var f;let g=eK[e],v=r[g],y=void 0!==a[g]?a[g]:l[g],E=m(y),b=g===o?v.isActive:null;!1===b&&(p=e);let T=y===l[g]&&y!==a[g]&&E;if(T&&i&&t.manuallyAnimateOnMount&&(T=!1),v.protectedKeys={...c},!v.isActive&&null===b||!y&&!v.prevProp||d(y)||"boolean"==typeof y)continue;let P=(f=v.prevProp,("string"==typeof y?y!==f:!!Array.isArray(y)&&!tO(y,f))||g===o&&v.isActive&&!T&&E||e>p&&E),A=!1,x=Array.isArray(y)?y:[y],S=x.reduce(n,{});!1===b&&(S={});let{prevResolvedValues:B={}}=v,C={...B,...S},M=t=>{P=!0,h.has(t)&&(A=!0,h.delete(t)),v.needsAnimating[t]=!0};for(let t in C){let e=S[t],r=B[t];if(!c.hasOwnProperty(t))(ts(e)&&ts(r)?tO(e,r):e===r)?void 0!==e&&h.has(t)?M(t):v.protectedKeys[t]=!0:void 0!==e?M(t):h.add(t)}v.prevProp=y,v.prevResolvedValues=S,v.isActive&&(c={...c,...S}),i&&t.blockInitialAnimation&&(P=!1),P&&(!T||A)&&u.push(...x.map(t=>({animation:t,options:{type:g,...s}})))}if(h.size){let e={};h.forEach(r=>{let i=t.getBaseTarget(r);void 0!==i&&(e[r]=i)}),u.push({animation:e})}let g=!!u.length;return i&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(g=!1),i=!1,g?e(u):Promise.resolve()}return{animateChanges:s,setActive:function(e,i,n){var o;if(r[e].isActive===i)return Promise.resolve();null===(o=t.variantChildren)||void 0===o||o.forEach(t=>{var r;return null===(r=t.animationState)||void 0===r?void 0:r.setActive(e,i)}),r[e].isActive=i;let a=s(n,e);for(let t in r)r[t].protectedKeys={};return a},setAnimateFunction:function(r){e=r(t)},getState:()=>r}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),d(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}let eQ=0;class e0 extends tx{constructor(){super(...arguments),this.id=eQ++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t,{custom:null!=r?r:this.node.getProps().custom});e&&!t&&n.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}let e1=(t,e)=>Math.abs(t-e);class e2{constructor(t,e,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:n=!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 r=e8(this.lastMoveEventInfo,this.history),i=null!==this.startEvent,n=(t=r.offset,e={x:0,y:0},Math.sqrt(e1(t.x,e.x)**2+e1(t.y,e.y)**2)>=3);if(!i&&!n)return;let{point:s}=r,{timestamp:o}=th.frameData;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;
1i||(a&&a(this.lastMoveEvent,r),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,r)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=e3(e,this.transformPagePoint),th.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:r,onSessionEnd:i,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=e8("pointercancel"===t.type?this.lastMoveEventInfo:e3(e,this.transformPagePoint),this.history);this.startEvent&&r&&r(t,s),i&&i(t,s)},!tm(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=r,this.contextWindow=i||window;let s=e3(td(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=th.frameData;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,e8(s,this.history)),this.removeListeners=(0,ty.z)(tv(this.contextWindow,"pointermove",this.handlePointerMove),tv(this.contextWindow,"pointerup",this.handlePointerUp),tv(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,th.Pn)(this.updatePoint)}}function e3(t,e){return e?{point:e(t.point)}:t}function e5(t,e){return{x:t.x-e.x,y:t.y-e.y}}function e8({point:t},e){return{point:t,delta:e5(t,e6(e)),offset:e5(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,i=null,n=e6(t);for(;r>=0&&(i=t[r],!(n.timestamp-i.timestamp>tU(.1)));)r--;if(!i)return{x:0,y:0};let s=tG(n.timestamp-i.timestamp);if(0===s)return{x:0,y:0};let o={x:(n.x-i.x)/s,y:(n.y-i.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function e6(t){return t[t.length-1]}var e9=r(6376),e4=r(8090);function e7(t){return t.max-t.min}function rt(t,e=0,r=.01){return Math.abs(t-e)<=r}function re(t,e,r,i=.5){t.origin=i,t.originPoint=(0,e4.C)(e.min,e.max,t.origin),t.scale=e7(r)/e7(e),(rt(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,e4.C)(r.min,r.max,t.origin)-t.originPoint,(rt(t.translate)||isNaN(t.translate))&&(t.translate=0)}function rr(t,e,r,i){re(t.x,e.x,r.x,i?i.originX:void 0),re(t.y,e.y,r.y,i?i.originY:void 0)}function ri(t,e,r){t.min=r.min+e.min,t.max=t.min+e7(e)}function rn(t,e,r){t.min=e.min-r.min,t.max=t.min+e7(e)}function rs(t,e,r){rn(t.x,e.x,r.x),rn(t.y,e.y,r.y)}function ro(t,e,r){return{min:void 0!==e?t.min+e:void 0,max:void 0!==r?t.max+r-(t.max-t.min):void 0}}function ra(t,e){let r=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([r,i]=[i,r]),{min:r,max:i}}function rl(t,e,r){return{min:ru(t,e),max:ru(t,r)}}function ru(t,e){return"number"==typeof t?t:t[e]||0}let rh=()=>({translate:0,scale:1,origin:0,originPoint:0}),rc=()=>({x:rh(),y:rh()}),rp=()=>({min:0,max:0}),rf=()=>({x:rp(),y:rp()});function rm(t){return[t("x"),t("y")]}function rd({top:t,left:e,right:r,bottom:i}){return{x:{min:e,max:r},y:{min:t,max:i}}}function rg(t){return void 0===t||1===t}function rv({scale:t,scaleX:e,scaleY:r}){return!rg(t)||!rg(e)||!rg(r)}function ry(t){return rv(t)||rE(t)||t.z||t.rotate||t.rotateX||t.rotateY}function rE(t){var e,r;return(e=t.x)&&"0%"!==e||(r=t.y)&&"0%"!==r}function rb(t,e,r,i,n){return void 0!==n&&(t=i+n*(t-i)),i+r*(t-i)+e}function rT(t,e=0,r=1,i,n){t.min=rb(t.min,e,r,i,n),t.max=rb(t.max,e,r,i,n)}function rP(t,{x:e,y:r}){rT(t.x,e.translate,e.scale,e.originPoint),rT(t.y,r.translate,r.scale,r.originPoint)}function rA(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function rx(t,e){t.min=t.min+e,t.max=t.max+e}function rS(t,e,[r,i,n]){let s=void 0!==e[n]?e[n]:.5,o=(0,e4.C)(t.min,t.max,s);rT(t,e[r],e[i],o,e.scale)}let rB=["x","scaleX","originX"],rC=["y","scaleY","originY"];function rM(t,e){rS(t.x,e,rB),rS(t.y,e,rC)}function rw(t,e){return rd(function(t,e){if(!e)return t;let r=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}let rL=({current:t})=>t?t.ownerDocument.defaultView:null,rR=new WeakMap;class rH{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rf(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let{dragSnapToOrigin:i}=this.getProps();this.panSession=new e2(t,{onSessionStart:t=>{let{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(td(t,"page").point)},onStart:(t,e)=>{let{drag:r,dragPropagation:i,onDragStart:n}=this.getProps();if(r&&!i&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=tP(r),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rm(t=>{let e=this.getAxisMotionValue(t).get()||0;if(F.aQ.test(e)){let{projection:r}=this.visualElement;if(r&&r.layout){let i=r.layout.layoutBox[t];if(i){let t=e7(i);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),n&&th.Wi.update(()=>n(t,e),!1,!0);let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:r,dragDirectionLock:i,onDirectionLock:n,onDrag:s}=this.getProps();if(!r&&!this.openGlobalLock)return;let{offset:o}=e;if(i&&null===this.currentDirection){this.currentDirection=function(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}(o),null!==this.currentDirection&&n&&n(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:()=>rm(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:i,contextWindow:rL(this.visualElement)})}stop(t,e){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:i}=e;this.startAnimation(i);let{onDragEnd:n}=this.getProps();n&&th.Wi.update(()=>n(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:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,r){let{drag:i}=this.getProps();if(!r||!rI(t,i,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:r},i){return void 0!==e&&t<e?t=i?(0,e4.C)(e,t,i.min):Math.max(t,e):void 0!==r&&t>r&&(t=i?(0,e4.C)(r,t,i.max):Math.min(t,r)),t}(s,this.constraints[t],this.elastic[t])),n.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,n=this.constraints;e&&f(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=function(t,{top:e,left:r,bottom:i,right:n}){return{x:ro(t.x,r,n),y:ro(t.y,e,i)}}(i.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:rl(t,"left","right"),y:rl(t,"top","bottom")}}(r),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rm(t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let r={};return void 0!==e.min&&(r.min=e.min-t.min),void 0!==e.max&&(r.max=e.max-t.min),r}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!f(e))return!1;let i=e.current;(0,tk.k)(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let s=function(t,e,r){let i=rw(t,r),{scroll:n}=e;return n&&(rx(i.x,n.offset.x),rx(i.y,n.offset.y)),i}(i,n.root,this.visualElement.getTransformPagePoint()),o={x:ra((t=n.layout.layoutBox).x,s.x),y:ra(t.y,s.y)};if(r){let t=r(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=rd(t))}return o}startAnimation(t){let{drag:e,dragMomentum:r,dragElastic:i,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(rm(o=>{if(!rI(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:r?t[o]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let r=this.getAxisMotionValue(t);return r.start(eV(t,r,0,e))}stopAnimation(){rm(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rm(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e="_drag"+t.toUpperCase(),r=this.visualElement.getProps();return r[e]||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){rm(e=>{let{drag:r}=this.getProps();if(!rI(e,r,this.currentDirection))return;let{projection:i}=this.visualElement,n=this.getAxisMotionValue(e);if(i&&i.layout){let{min:r,max:s}=i.layout.layoutBox[e];n.set(t[e]-(0,e4.C)(r,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:r}=this.visualElement;if(!f(e)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};rm(t=>{let e=this.getAxisMotionValue(t);if(e){let r=e.get();i[t]=function(t,e){let r=.5,i=e7(t),n=e7(e);return n>i?r=(0,e9.Y)(e.min,e.max-i,t.min):i>n&&(r=(0,e9.Y)(t.min,t.max-n,e.min)),(0,en.u)(0,1,r)}({min:r,max:r},this.constraints[t])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rm(e=>{if(!rI(e,t,null))return;let r=this.getAxisMotionValue(e),{min:n,max:s}=this.constraints[e];r.set((0,e4.C)(n,s,i[e]))})}addListeners(){if(!this.visualElement.current)return;rR.set(this.visualElement,this);let t=tv(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:r=!0}=this.getProps();e&&r&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();f(t)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",e);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),e();let n=tf(window,"resize",()=>this.scalePositionWithinConstraints()),s=r.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(rm(e=>{let r=this.getAxisMotionValue(e);r&&(this.originPoint[e]+=t[e].translate,r.set(r.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),i(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:r,dragPropagation:i,dragConstraints:n,dragElastic:s,dragMomentum:o}}}function rI(t,e,r){return(!0===e||e===t)&&(null===r||r===t)}class rD extends tx{constructor(t){super(t),this.removeGroupControls=tw.Z,this.removeListeners=tw.Z,this.controls=new rH(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tw.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let rN=t=>(e,r)=>{t&&th.Wi.update(()=>t(e,r))};class r_ extends tx{constructor(){super(...arguments),this.removePointerDownListener=tw.Z}onPointerDown(t){this.session=new e2(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rL(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:rN(t),onStart:rN(e),onMove:r,onEnd:(t,e)=>{delete this.session,i&&th.Wi.update(()=>i(t,e))}}}mount(){this.removePointerDownListener=tv(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let rV={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rO(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let rF={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!F.px.test(t))return t;t=parseFloat(t)}let r=rO(t,e.target.x),i=rO(t,e.target.y);return`${r}% ${i}%`}};class rk extends s.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:r,layoutId:i}=this.props,{projection:n}=t;Object.assign(w,rG),n&&(e.group&&e.group.add(n),r&&r.register&&i&&r.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),rV.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:r,drag:i,isPresent:n}=this.props,s=r.projection;return s&&(s.isPresent=n,i||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent===n||(n?s.promote():s.relegate()||th.Wi.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rU(t){let[e,r]=function(){let t=(0,s.useContext)(l);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:r,register:i}=t,n=(0,s.useId)();return(0,s.useEffect)(()=>i(n),[]),!e&&r?[!1,()=>r&&r(n)]:[!0]}(),i=(0,s.useContext)(x);return s.createElement(rk,{...t,layoutGroup:i,switchLayoutGroup:(0,s.useContext)(S),isPresent:e,safeToRemove:r})}let rG={borderRadius:{...rF,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rF,borderTopRightRadius:rF,borderBottomLeftRadius:rF,borderBottomRightRadius:rF,boxShadow:{correct:(t,{treeScale:e,projectionDelta:r})=>{let i=eA.P.parse(t);if(i.length>5)return t;let n=eA.P.createTransformer(t),s="number"!=typeof i[0]?1:0,o=r.x.scale*e.x,a=r.y.scale*e.y;i[0+s]/=o,i[1+s]/=a;let l=(0,e4.C)(o,a,.5);return"number"==typeof i[2+s]&&(i[2+s]/=l),"number"==typeof i[3+s]&&(i[3+s]/=l),n(i)}}};var rj=r(4081);let rW=["TopLeft","TopRight","BottomLeft","BottomRight"],r$=rW.length,rX=t=>"string"==typeof t?parseFloat(t):t,rZ=t=>"number"==typeof t||F.px.test(t);function rY(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rK=rq(0,.5,t2),rz=rq(.5,.95,tw.Z);function rq(t,e,r){return i=>i<t?0:i>e?1:r((0,e9.Y)(t,e,i))}function rJ(t,e){t.min=e.min,t.max=e.max}function rQ(t,e){rJ(t.x,e.x),rJ(t.y,e.y)}function r0(t,e,r,i,n){return t-=e,t=i+1/r*(t-i),void 0!==n&&(t=i+1/n*(t-i)),t}function r1(t,e,[r,i,n],s,o){!function(t,e=0,r=1,i=.5,n,s=t,o=t){if(F.aQ.test(e)&&(e=parseFloat(e),e=(0,e4.C)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,e4.C)(s.min,s.max,i);t===s&&(a-=e),t.min=r0(t.min,e,r,a,n),t.max=r0(t.max,e,r,a,n)}(t,e[r],e[i],e[n],e.scale,s,o)}let r2=["x","scaleX","originX"],r3=["y","scaleY","originY"];function r5(t,e,r,i){r1(t.x,e,r2,r?r.x:void 0,i?i.x:void 0),r1(t.y,e,r3,r?r.y:void 0,i?i.y:void 0)}function r8(t){return 0===t.translate&&1===t.scale}function r6(t){return r8(t.x)&&r8(t.y)}function r9(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function r4(t){return e7(t.x)/e7(t.y)}var r7=r(9013);class it{constructor(){this.members=[]}add(t){(0,r7.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,r7.cl)(this.mem
1bers,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 r=this.members.findIndex(e=>t===e);if(0===r)return!1;for(let t=r;t>=0;t--){let r=this.members[t];if(!1!==r.isPresent){e=r;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,e&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:i}=t.options;!1===i&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:r}=t;e.onExitComplete&&e.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ie(t,e,r){let i="",n=t.x.translate/e.x,s=t.y.translate/e.y;if((n||s)&&(i=`translate3d(${n}px, ${s}px, 0) `),(1!==e.x||1!==e.y)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),r){let{rotate:t,rotateX:e,rotateY:n}=r;t&&(i+=`rotate(${t}deg) `),e&&(i+=`rotateX(${e}deg) `),n&&(i+=`rotateY(${n}deg) `)}let o=t.x.scale*e.x,a=t.y.scale*e.y;return(1!==o||1!==a)&&(i+=`scale(${o}, ${a})`),i||"none"}let ir=(t,e)=>t.depth-e.depth;class ii{constructor(){this.children=[],this.isDirty=!1}add(t){(0,r7.y4)(this.children,t),this.isDirty=!0}remove(t){(0,r7.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ir),this.isDirty=!1,this.children.forEach(t)}}let is=["","X","Y","Z"],io={visibility:"hidden"},ia=0,il={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function iu({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:i,resetTransform:n}){return class{constructor(t={},r=null==e?void 0:e()){this.id=ia++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,il.totalNodes=il.resolvedTargetDeltas=il.recalculatedProjection=0,this.nodes.forEach(ip),this.nodes.forEach(ib),this.nodes.forEach(iT),this.nodes.forEach(im),window.MotionDebug&&window.MotionDebug.record(il)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new ii)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new rj.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let r=this.eventHandlers.get(t);r&&r.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,r=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(n||i)&&(this.isLayoutDirty=!0),t){let r;let i=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(t,e){let r=performance.now(),i=({timestamp:e})=>{let n=e-r;n>=250&&((0,th.Pn)(i),t(n-250))};return th.Wi.read(i,!0),()=>(0,th.Pn)(i)}(i,0),rV.hasAnimatedSinceResize&&(rV.hasAnimatedSinceResize=!1,this.nodes.forEach(iE))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:r,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||s.getDefaultTransition()||iC,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!r9(this.targetLayout,i)||r,u=!e&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...eN(n,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||iE(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}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,th.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.forEac
1h(iP),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:r}=this.options;if(void 0===e&&!r)return;let i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ig);return}this.isUpdating||this.nodes.forEach(iv),this.isUpdating=!1,this.nodes.forEach(iy),this.nodes.forEach(ih),this.nodes.forEach(ic),this.clearAllSnapshots();let t=performance.now();th.frameData.delta=(0,en.u)(0,1e3/60,t-th.frameData.timestamp),th.frameData.timestamp=t,th.frameData.isProcessing=!0,th.S6.update.process(th.frameData),th.S6.preRender.process(th.frameData),th.S6.render.process(th.frameData),th.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(id),this.sharedNodes.forEach(iA)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,th.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){th.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=rf(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:i(this.instance),offset:r(this.instance)})}resetTransform(){if(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!r6(this.projectionDelta),r=this.getTransformTemplate(),i=r?r(this.latestValues,""):void 0,s=i!==this.prevTransformTemplateValue;t&&(e||ry(this.latestValues)||s)&&(n(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let r=this.measurePageBox(),i=this.removeElementScroll(r);return t&&(i=this.removeTransform(i)),iL((e=i).x),iL(e.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return rf();let e=t.measureViewportBox(),{scroll:r}=this.root;return r&&(rx(e.x,r.offset.x),rx(e.y,r.offset.y)),e}removeElementScroll(t){let e=rf();rQ(e,t);for(let r=0;r<this.path.length;r++){let i=this.path[r],{scroll:n,options:s}=i;if(i!==this.root&&n&&s.layoutScroll){if(n.isRoot){rQ(e,t);let{scroll:r}=this.root;r&&(rx(e.x,-r.offset.x),rx(e.y,-r.offset.y))}rx(e.x,n.offset.x),rx(e.y,n.offset.y)}}return e}applyTransform(t,e=!1){let r=rf();rQ(r,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&rM(r,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),ry(i.latestValues)&&rM(r,i.latestValues)}return ry(this.latestValues)&&rM(r,this.latestValues),r}removeTransform(t){let e=rf();rQ(e,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];if(!r.instance||!ry(r.latestValues))continue;rv(r.latestValues)&&r.updateSnapshot();let i=rf();rQ(i,r.measurePageBox()),r5(e,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,i)}return ry(this.latestValues)&&r5(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!==th.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,r,i,n;let 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(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=th.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rf(),this.relativeTargetOrigin=rf(),rs(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),rQ(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=rf(),this.targetWithTransforms=rf()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),r=this.target,i=this.relativeTarget,n=this.relativeParent.target,ri(r.x,i.x,n.x),ri(r.y,i.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rQ(this.target,this.layout.layoutBox),rP(this.target,this.targetDelta)):rQ(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=rf(),this.relativeTargetOrigin=rf(),rs(this.relativeTargetOrigin,this.target,t.target),rQ(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}il.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||rv(this.parent.latestValues)||rE(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(),r=!!this.resumingFrom||this!==e,i=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(i=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===th.frameData.timestamp&&(i=!1),i)return;let{layout:n,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||!(n||s))return;rQ(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,r,i=!1){let n,s;let o=r.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(n=r[a]).projectionDelta;let o=n.instance;(!o||!o.style||"contents"!==o.style.display)&&(i&&n.options.layoutScroll&&n.scroll&&n!==n.root&&rM(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,rP(t,s)),i&&ry(n.latestValues)&&rM(t,n.latestValues))}e.x=rA(e.x),e.y=rA(e.y)}}(this.layoutCorrected,this.treeScale,this.path,r),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox);let{target:l}=e;if(!l){this.projectionTransform&&(this.projectionDelta=rc(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=rc(),this.projectionDeltaWithTransform=rc());let u=this.projectionTransform;rr(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=ie(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==o||this.treeScale.y!==a)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),il.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){let r;let i=this.snapshot,n=i?i.latestValues:{},s={...this.latestValues},o=rc();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=rf(),l=(i?i.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(iB));this.animationProgress=0,this.mixTargetDelta=e=>{let i=e/1e3;if(ix(o.x,t.x,i),ix(o.y,t.y,i),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,p,f,m;rs(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,m=this.relativeTargetOrigin,iS(f.x,m.x,a.x,i),iS(f.y,m.y,a.y,i),r&&(u=this.relativeTarget,p=r,u.x.min===p.x.min&&u.x.max===p.x.max&&u.y.min===p.y.min&&u.y.max===p.y.max)&&(this.isProjectionDirty=!1),r||(r=rf()),rQ(r,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,r,i,n,s){n?(t.opacity=(0,e4.C)(0,void 0!==r.opacity?r.opacity:1,rK(i)),t.opacityExit=(0,e4.C)(void 0!==e.opacity?e.opacity:1,0,rz(i))):s&&(t.opacity=(0,e4.C)(void 0!==e.opacity?e.opacity:1,void 0!==r.opacity?r.opacity:1,i));for(let n=0;n<r$;n++){let s=`border${rW[n]}Radius`,o=rY(e,s),a=rY(r,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rZ(o)===rZ(a)?(t[s]=Math.max((0,e4.C)(rX(o),rX(a),i),0),(F.aQ.test(a)||F.aQ.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||r.rotate)&&(t.rotate=(0,e4.C)(e.rotate||0,r.rotate||0,i))}(s,n,this.latestValues,i,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},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,th.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=th.Wi.update(()=>{rV.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,r){let i=(0,I.i)(0)?0:(0,ek.BX)(0);return i.start(eV("",i,1e3,r)),i.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:r,layout:i,latestValues:n}=t;if(e&&r&&i){if(this!==t&&this.layout&&i&&iR(this.options.animationType,this.layout.layoutBox,i.layoutBox)){r=this.target||rf();let e=e7(this.layout.layoutBox.x);r.x.min=t.target.x.min,r.x.max=r.x.min+e;let i=e7(this.layout.layoutBox.y);r.y.min=t.target.y.min,r.y.max=r.y.min+i}rQ(e,r),rM(e,n),rr(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new it),this.sharedNodes.get(t).add(e);let r=e.options.initialPromotionConfig;e.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:r}={}){let i=this.getStack();i&&i.promote(this,r),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:r}=t;if((r.rotate||r.rotateX||r.rotateY||r.rotateZ)&&(e=!0),!e)return;let i={};for(let e=0;e<is.length;e++){let n="rotate"+is[e];r[n]&&(i[n]=r[n],t.setStaticValue(n,0))}for(let e in t.render(),i)t.setStaticValue(e,i[e]);t.scheduleRender()}getProjectionStyles(t){var e,r;if(!this.instance||this.isSVG)return;if(!this.isVisible)return io;let i={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=tl(null==t?void 0:t.pointerEvents)||"",i.transform=n?n(this.latestValues,""):"none",i;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=tl(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!ry(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;this.applyTransformsToTarget(),i.transform=ie(this.projectionDeltaWithTransform,this.treeScale,o),n&&(i.transform=n(o,i.transform));let{x:a,y:l}=this.projectionDelta;for(let t in i.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?i.opacity=s===this?null!==(r=null!==(e=o.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:i.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,w){if
1(void 0===o[t])continue;let{correct:e,applyTo:r}=w[t],n="none"===i.transform?o[t]:e(o[t],s);if(r){let t=r.length;for(let e=0;e<t;e++)i[r[e]]=n}else i[t]=n}return this.options.layoutId&&(i.pointerEvents=s===this?tl(null==t?void 0:t.pointerEvents)||"":"none"),i}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(ig),this.root.sharedNodes.clear()}}}function ih(t){t.updateLayout()}function ic(t){var e;let r=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:i}=t.layout,{animationType:n}=t.options,s=r.source!==t.layout.source;"size"===n?rm(t=>{let i=s?r.measuredBox[t]:r.layoutBox[t],n=e7(i);i.min=e[t].min,i.max=i.min+n}):iR(n,r.layoutBox,e)&&rm(i=>{let n=s?r.measuredBox[i]:r.layoutBox[i],o=e7(e[i]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+o)});let o=rc();rr(o,e,r.layoutBox);let a=rc();s?rr(a,t.applyTransform(i,!0),r.measuredBox):rr(a,e,r.layoutBox);let l=!r6(o),u=!1;if(!t.resumeFrom){let i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:n,layout:s}=i;if(n&&s){let o=rf();rs(o,r.layoutBox,n.layoutBox);let a=rf();rs(a,e,s.layoutBox),r9(o,a)||(u=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:r,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 ip(t){il.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function im(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function id(t){t.clearSnapshot()}function ig(t){t.clearMeasurements()}function iv(t){t.isLayoutDirty=!1}function iy(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function iE(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ib(t){t.resolveTargetDelta()}function iT(t){t.calcProjection()}function iP(t){t.resetRotation()}function iA(t){t.removeLeadSnapshot()}function ix(t,e,r){t.translate=(0,e4.C)(e.translate,0,r),t.scale=(0,e4.C)(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function iS(t,e,r,i){t.min=(0,e4.C)(e.min,r.min,i),t.max=(0,e4.C)(e.max,r.max,i)}function iB(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let iC={duration:.45,ease:[.4,0,.1,1]},iM=t=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(t),iw=iM("applewebkit/")&&!iM("chrome/")?Math.round:tw.Z;function iL(t){t.min=iw(t.min),t.max=iw(t.max)}function iR(t,e,r){return"position"===t||"preserve-aspect"===t&&!rt(r4(e),r4(r),.2)}let iH=iu({attachResizeListener:(t,e)=>tf(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iI={current:void 0},iD=iu({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!iI.current){let t=new iH({});t.mount(window),t.setOptions({layoutScroll:!0}),iI.current=t}return iI.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),iN=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function i_(t,e,r=1){(0,tk.k)(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[i,n]=function(t){let e=iN.exec(t);if(!e)return[,];let[,r,i]=e;return[r,i]}(t);if(!i)return;let s=window.getComputedStyle(e).getPropertyValue(i);if(s){let t=s.trim();return eF(t)?parseFloat(t):t}return(0,_.tm)(n)?i_(n,e,r+1):n}let iV=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),iO=t=>iV.has(t),iF=t=>Object.keys(t).some(iO),ik=t=>t===O.Rx||t===F.px,iU=(t,e)=>parseFloat(t.split(", ")[e]),iG=(t,e)=>(r,{transform:i})=>{if("none"===i||!i)return 0;let n=i.match(/^matrix3d\((.+)\)$/);if(n)return iU(n[1],e);{let e=i.match(/^matrix\((.+)\)$/);return e?iU(e[1],t):0}},ij=new Set(["x","y","z"]),iW=L.filter(t=>!ij.has(t)),i$={width:({x:t},{paddingLeft:e="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),height:({y:t},{paddingTop:e="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:iG(4,13),y:iG(5,14)};i$.translateX=i$.x,i$.translateY=i$.y;let iX=(t,e,r)=>{let i=e.measureViewportBox(),n=getComputedStyle(e.current),{display:s}=n,o={};"none"===s&&e.setStaticValue("display",t.display||"block"),r.forEach(t=>{o[t]=i$[t](i,n)}),e.render();let a=e.measureViewportBox();return r.forEach(r=>{let i=e.getValue(r);i&&i.jump(o[r]),t[r]=i$[r](a,n)}),t},iZ=(t,e,r={},i={})=>{e={...e},i={...i};let n=Object.keys(e).filter(iO),s=[],o=!1,a=[];if(n.forEach(n=>{let l;let u=t.getValue(n);if(!t.hasValue(n))return;let h=r[n],c=ej(h),p=e[n];if(ts(p)){let t=p.length,e=null===p[0]?1:0;
1c=ej(h=p[e]);for(let r=e;r<t&&null!==p[r];r++)l?(0,tk.k)(ej(p[r])===l,"All keyframes must be of the same type"):(l=ej(p[r]),(0,tk.k)(l===c||ik(c)&&ik(l),"Keyframes must be of the same dimension as the current value"))}else l=ej(p);if(c!==l){if(ik(c)&&ik(l)){let t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof p?e[n]=parseFloat(p):Array.isArray(p)&&l===F.px&&(e[n]=p.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==l?void 0:l.transform)&&(0===h||0===p)?0===h?u.set(l.transform(h)):e[n]=c.transform(p):(o||(s=function(t){let e=[];return iW.forEach(r=>{let i=t.getValue(r);void 0!==i&&(e.push([r,i.get()]),i.set(r.startsWith("scale")?1:0))}),e.length&&t.render(),e}(t),o=!0),a.push(n),i[n]=void 0!==i[n]?i[n]:e[n],u.jump(p))}}),!a.length)return{target:e,transitionEnd:i};{let r=a.indexOf("height")>=0?window.pageYOffset:null,n=iX(e,t,a);return s.length&&s.forEach(([e,r])=>{t.getValue(e).set(r)}),t.render(),A.j&&null!==r&&window.scrollTo({top:r}),{target:n,transitionEnd:i}}},iY=(t,e,r,i)=>{var n,s;let o=function(t,{...e},r){let i=t.current;if(!(i instanceof Element))return{target:e,transitionEnd:r};for(let n in r&&(r={...r}),t.values.forEach(t=>{let e=t.get();if(!(0,_.tm)(e))return;let r=i_(e,i);r&&t.set(r)}),e){let t=e[n];if(!(0,_.tm)(t))continue;let s=i_(t,i);s&&(e[n]=s,r||(r={}),void 0===r[n]&&(r[n]=t))}return{target:e,transitionEnd:r}}(t,e,i);return e=o.target,i=o.transitionEnd,n=e,s=i,iF(n)?iZ(t,n,r,s):{target:n,transitionEnd:s}};var iK=r(5957),iz=r(4004);let iq=new WeakMap,iJ=Object.keys(P),iQ=iJ.length,i0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],i1=v.length;class i2{constructor({parent:t,props:e,presenceContext:r,reducedMotionConfig:i,visualState:n},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>th.Wi.render(this.render,!1,!0);let{latestValues:o,renderState:a}=n;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=y(e),this.isVariantNode=E(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(e,{});for(let t in u){let e=u[t];void 0!==o[t]&&(0,I.i)(e)&&(e.set(o[t],!1),eO(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,iq.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)),iz.O.current||(0,iK.A)(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||iz.n.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in iq.delete(this.current),this.projection&&this.projection.unmount(),(0,th.Pn)(this.notifyUpdate),(0,th.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){let r=R.has(t),i=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&th.Wi.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),n=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),n()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},r,i,n){let s,o;for(let t=0;t<iQ;t++){let r=iJ[t],{isEnabled:i,Feature:n,ProjectionNode:a,MeasureLayout:l}=P[r];a&&(s=a),i(e)&&(!this.features[r]&&n&&(this.features[r]=new n(this)),l&&(o=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);let{layoutId:t,layout:r,drag:i,dragConstraints:o,layoutScroll:a,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:r,alwaysMeasureLayout:!!i||o&&f(o),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,layoutScroll:a,layoutRoot:l})}return o}updateFeatures(){for(let t in this.features){let e=this.features[t];
1e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rf()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<i0.length;e++){let r=i0[e];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let i=t["on"+r];i&&(this.propEventSubscriptions[r]=this.on(r,i))}this.prevMotionValues=function(t,e,r){let{willChange:i}=e;for(let n in e){let s=e[n],o=r[n];if((0,I.i)(s))t.addValue(n,s),eO(i)&&i.add(n);else if((0,I.i)(o))t.addValue(n,(0,ek.BX)(s,{owner:t})),eO(i)&&i.remove(n);else if(o!==s){if(t.hasValue(n)){let e=t.getValue(n);e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,(0,ek.BX)(void 0!==e?e:s,{owner:t}))}}}for(let i in r)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let e={};for(let t=0;t<i1;t++){let r=v[t],i=this.props[r];(m(i)||!1===i)&&(e[r]=i)}return e}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return void 0===r&&void 0!==e&&(r=(0,ek.BX)(e,{owner:this}),this.addValue(t,r)),r}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!==(e=this.getBaseTargetFromProps(this.props,t))&&void 0!==e?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let{initial:r}=this.props,i="string"==typeof r||"object"==typeof r?null===(e=ti(this.props,r))||void 0===e?void 0:e[t]:void 0;if(r&&void 0!==i)return i;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||(0,I.i)(n)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new rj.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class i3 extends i2{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:r}){delete e[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...r},{transformValues:i},n){let s=function(t,e,r){let i={};for(let n in t){let t=function(t,e){if(e)return(e[t]||e.default||e).from}(n,e);if(void 0!==t)i[n]=t;else{let t=r.getValue(n);t&&(i[n]=t.get())}}return i}(r,t||{},this);if(i&&(e&&(e=i(e)),r&&(r=i(r)),s&&(s=i(s))),n){!function(t,e,r){var i,n;let s=Object.keys(e).filter(e=>!t.hasValue(e)),o=s.length;if(o)for(let a=0;a<o;a++){let o=s[a],l=e[o],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(n=null!==(i=r[o])&&void 0!==i?i:t.readValue(o))&&void 0!==n?n:e[o]),null!=u&&("string"==typeof u&&(eF(u)||eD(u))?u=parseFloat(u):!e$(u)&&eA.P.test(l)&&(u=eI(o,l)),t.addValue(o,(0,ek.BX)(u,{owner:t})),void 0===r[o]&&(r[o]=u),null!==u&&t.setBaseTarget(o,u))}}(this,r,s);let t=iY(this,r,s,e);e=t.transitionEnd,r=t.target}return{transition:t,transitionEnd:e,...r}}}class i5 extends i3{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(R.has(e)){let t=eH(e);return t&&t.default||0}{let r=window.getComputedStyle(t),i=((0,_.f9)(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:e}){return rw(t,e)}build(t,e,r,i){G(t,e,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,e){return te(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,I.i)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,r,i){J(t,e,r,i)}}class i8 extends i3{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(R.has(e)){let t=eH(e);return t&&t.default||0}return e=Q.has(e)?e:c(e),t.getAttribute(e)}measureInstanceViewportBox(){return rf()}scrapeMotionValuesFromProps(t,e){return tr(t,e)}build(t,e,r,i){K(t,e,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,r,i){tt(t,e,r,i)}mount(t){this.isSVGTag=q(t.tagName),super.mount(t)}}let i6=(t,e)=>M(t)?new i8(e,{enableHardwareAcceleration:!1}):new i5(e,{enableHardwareAcceleration:!0}),i9={animation:{Feature:eJ},exit:{Feature:e0},inView:{Feature:tV},tap:{Feature:tR},focus:{Feature:tC},hover:{Feature:tB},pan:{Feature:r_},drag:{Feature:rD,ProjectionNode:iD,MeasureLayout:rU},layout:{ProjectionNode:iD,MeasureLayout:rU}},i4=function(t){function e(e,r={}){return function({preloadedFeatures:t,createVisualElement:e,useRender:r,useVisualState:i,Component:n}){t&&function(t){for(let e in t)P[e]={...P[e],...t[e]}}(t);let c=(0,s.forwardRef)(function(c,d){var g;let v;let E={...(0,s.useContext)(o._),...c,layoutId:function({layoutId:t}){let e=(0,s.useContext)(x).id;return e&&void 0!==t?e+"-"+t:t}(c)},{isStatic:T}=E,P=function(t){let{initial:e,animate:r}=function(t,e){if(y(t)){let{initial:e,animate:r}=t;return{initial:!1===e||m(e)?e:void 0,animate:m(r)?r:void 0}}return!1!==t.inherit?e:{}}(t,(0,s.useContext)(a));return(0,s.useMemo)(()=>({initial:e,animate:r}
1),[b(e),b(r)])}(c),B=i(c,T);if(!T&&A.j){P.visualElement=function(t,e,r,i){let{visualElement:n}=(0,s.useContext)(a),c=(0,s.useContext)(h),f=(0,s.useContext)(l),m=(0,s.useContext)(o._).reducedMotion,d=(0,s.useRef)();i=i||c.renderer,!d.current&&i&&(d.current=i(t,{visualState:e,parent:n,props:r,presenceContext:f,blockInitialAnimation:!!f&&!1===f.initial,reducedMotionConfig:m}));let g=d.current;(0,s.useInsertionEffect)(()=>{g&&g.update(r,f)});let v=(0,s.useRef)(!!(r[p]&&!window.HandoffComplete));return(0,u.L)(()=>{g&&(g.render(),v.current&&g.animationState&&g.animationState.animateChanges())}),(0,s.useEffect)(()=>{g&&(g.updateFeatures(),!v.current&&g.animationState&&g.animationState.animateChanges(),v.current&&(v.current=!1,window.HandoffComplete=!0))}),g}(n,B,E,e);let r=(0,s.useContext)(S),i=(0,s.useContext)(h).strict;P.visualElement&&(v=P.visualElement.loadFeatures(E,i,t,r))}return s.createElement(a.Provider,{value:P},v&&P.visualElement?s.createElement(v,{visualElement:P.visualElement,...E}):null,r(n,c,(g=P.visualElement,(0,s.useCallback)(t=>{t&&B.mount&&B.mount(t),g&&(t?g.mount(t):g.unmount()),d&&("function"==typeof d?d(t):f(d)&&(d.current=t))},[g])),B,T,P.visualElement))});return c[B]=n,c}(t(e,r))}if("undefined"==typeof Proxy)return e;let r=new Map;return new Proxy(e,{get:(t,i)=>(r.has(i)||r.set(i,e(i)),r.get(i))})}((t,e)=>(function(t,{forwardMotionProps:e=!1},r,i){return{...M(t)?tc:tp,preloadedFeatures:r,useRender:function(t=!1){return(e,r,i,{latestValues:n},o)=>{let a=(M(e)?function(t,e,r,i){let n=(0,s.useMemo)(()=>{let r=z();return K(r,e,{enableHardwareAcceleration:!1},q(i),t.transformTemplate),{...r.attrs,style:{...r.style}}},[e]);if(t.style){let e={};W(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e,r){let i={},n=function(t,e,r){let i=t.style||{},n={};return W(n,i,t),Object.assign(n,function({transformTemplate:t},e,r){return(0,s.useMemo)(()=>{let i=j();return G(i,e,{enableHardwareAcceleration:!r},t),Object.assign({},i.vars,i.style)},[e])}(t,e,r)),t.transformValues?t.transformValues(n):n}(t,e,r);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(r,n,o,e),l={...(0,$.L)(r,"string"==typeof e,t),...a,ref:i},{children:u}=r,h=(0,s.useMemo)(()=>(0,I.i)(u)?u.get():u,[u]);return(0,s.createElement)(e,{...l,children:h})}}(e),createVisualElement:i,Component:t}})(t,e,i9,i6))},6257:function(t,e,r){r.d(e,{L:function(){return a},K:function(){return o}});let i=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function n(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||i.has(t)}let s=t=>!n(t);function o(t){t&&(s=e=>e.startsWith("on")?!n(e):t(e))}try{o(require("@emotion/is-prop-valid").default)}catch(t){}function a(t,e,r){let i={};for(let o in t)("values"!==o||"object"!=typeof t.values)&&(s(o)||!0===r&&n(o)||!e&&!n(o)||t.draggable&&o.startsWith("onDrag"))&&(i[o]=t[o]);return i}},7249:function(t,e,r){r.d(e,{Xp:function(){return o},f9:function(){return n},tm:function(){return s}});let i=t=>e=>"string"==typeof e&&e.startsWith(t),n=i("--"),s=i("var(--"),o=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?
1:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g},9013:function(t,e,r){function i(t,e){-1===t.indexOf(e)&&t.push(e)}function n(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}r.d(e,{cl:function(){return n},y4:function(){return i}})},9111:function(t,e,r){r.d(e,{u:function(){return i}});let i=(t,e,r)=>Math.min(Math.max(r,t),e)},3223:function(t,e,r){r.d(e,{K:function(){return n},k:function(){return s}});var i=r(4439);let n=i.Z,s=i.Z},2888:function(t,e,r){r.d(e,{s:function(){return B}});var i=r(3223),n=r(7720),s=r(9111),o=r(8090);function a(t,e,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}var l=r(7325),u=r(8859),h=r(2943);let c=(t,e,r)=>{let i=t*t;return Math.sqrt(Math.max(0,r*(e*e-i)+i))},p=[l.$,u.m,h.J],f=t=>p.find(e=>e.test(t));function m(t){let e=f(t);(0,i.k)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let r=e.parse(t);return e===h.J&&(r=function({hue:t,saturation:e,lightness:r,alpha:i}){t/=360,r/=100;let n=0,s=0,o=0;if(e/=100){let i=r<.5?r*(1+e):r+e-r*e,l=2*r-i;n=a(l,i,t+1/3),s=a(l,i,t),o=a(l,i,t-1/3)}else n=s=o=r;return{red:Math.round(255*n),green:Math.round(255*s),blue:Math.round(255*o),alpha:i}}(r)),r}let d=(t,e)=>{let r=m(t),i=m(e),n={...r};return t=>(n.red=c(r.red,i.red,t),n.green=c(r.green,i.green,t),n.blue=c(r.blue,i.blue,t),n.alpha=(0,o.C)(r.alpha,i.alpha,t),u.m.transform(n))};var g=r(332),v=r(5636);let y=(t,e)=>r=>`${r>0?e:t}`;function E(t,e){return"number"==typeof t?r=>(0,o.C)(t,e,r):n.$.test(t)?d(t,e):t.startsWith("var(")?y(t,e):P(t,e)}let b=(t,e)=>{let r=[...t],i=r.length,n=t.map((t,r)=>E(t,e[r]));return t=>{for(let e=0;e<i;e++)r[e]=n[e](t);return r}},T=(t,e)=>{let r={...t,...e},i={};for(let n in r)void 0!==t[n]&&void 0!==e[n]&&(i[n]=E(t[n],e[n]));return t=>{for(let e in i)r[e]=i[e](t);return r}},P=(t,e)=>{let r=v.P.createTransformer(e),n=(0,v.V)(t),s=(0,v.V)(e);return n.numVars===s.numVars&&n.numColors===s.numColors&&n.numNumbers>=s.numNumbers?(0,g.z)(b(n.values,s.values),r):((0,i.K)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),y(t,e))};var A=r(6376),x=r(4439);let S=(t,e)=>r=>(0,o.C)(t,e,r);function B(t,e,{clamp:r=!0,ease:o,mixer:a}={}){let l=t.length;if((0,i.k)(l===e.length,"Both input and output ranges must be the same length"),1===l)return()=>e[0];t[0]>t[l-1]&&(t=[...t].reverse(),e=[...e].reverse());let u=function(t,e,r){let i=[],s=r||function(t){if("number"==typeof t);else if("string"==typeof t)return n.$.test(t)?d:P;else if(Array.isArray(t))return b;else if("object"==typeof t)return T;return S}(t[0]),o=t.length-1;for(let r=0;r<o;r++){let n=s(t[r],t[r+1]);if(e){let t=Array.isArray(e)?e[r]||x.Z:e;n=(0,g.z)(t,n)}i.push(n)}return i}(e,o,a),h=u.length,c=e=>{let r=0;if(h>1)for(;r<t.length-2&&!(e<t[r+1]);r++);let i=(0,A.Y)(t[r],t[r+1],e);return u[r](i)};return r?e=>c((0,s.u)(t[0],t[l-1],e)):c}},4563:function(t,e,r){r.d(e,{j:function(){return i}});let i="undefined"!=typeof document},8090:function(t,e,r){r.d(e,{C:function(){return i}});let i=(t,e,r)=>-r*t+r*e+t},4439:function(t,e,r){r.d(e,{Z:function(){return i}});let i=t=>t},8913:function(t,e,r){r.d(e,{Y:function(){return s}});var i=r(8090),n=r(6376);function s(t){let e=[0];return!function(t,e){let r=t[t.length-1];for(let s=1;s<=e;s++){let o=(0,n.Y)(0,e,s);t.push((0,i.C)(r,1,o))}}(e,t.length-1),e}},332:function(t,e,r){r.d(e,{z:function(){return n}});let i=(t,e)=>r=>e(t(r)),n=(...t)=>t.reduce(i)},6376:function(t,e,r){r.d(e,{Y:function(){return i}});let i=(t,e,r)=>{let i=e-t;return 0===i?1:(r-t)/i}},5957:function(t,e,r){r.d(e,{A:function(){return s}});var i=r(4563),n=r(4004);function s(){if(n.O.current=!0,i.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>n.n.current=t.matches;t.addListener(e),e()}else n.n.current=!1}}},4004:function(t,e,r){r.d(e,{O:function(){return n},n:function(){return i}});let i={current:null},n={current:!1}},2345:function(t,e,r){r.d(e,{J:function(){return o}});var i=r(2265),n=r(5957),s=r(4004);function o(){s.O.current||(0,n.A)();let[t]=(0,i.useState)(s.n.current);return t}},4081:function(t,e,r){r.d(e,{L:function(){return n}});var i=r(9013);class n{constructor(){this.subscriptions=[]}add(t){return(0,i.y4)(this.subscriptions,t),()=>(0,i.cl)(this.subscriptions,t)}notify(t,e,r){let i=this.subscriptions.length;if(i){if(1===i)this.subscriptions[0](t,e,r);else for(let n=0;n<i;n++){let i=this.subscriptions[n];i&&i(t,e,r)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},3576:function(t,e,r){r.d(e,{h:function(){return n}});var i=r(2265);function n(t){let e=(0,i.useRef)(null);return null===e.current&&(e.current=t()),e.current}},1534:function(t,e,r){r.d(e,{L:function(){return n}});var i=r(2265);let n=r(4563).j?i.useLayoutEffect:i.useEffect},4438:function(t,e,r){r.d(e,{R:function(){return i}});function i(t,e){return e?1e3/e*t:0}},3078:function(t,e,r){r.d(e,{BX:function(){return u},S1:function(){return a}});var i=r(4081),n=r(4438),s=r(8345);let o=t=>!isNaN(parseFloat(t)),a={current:void 0};class l{constructor(t,e={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;let{delta:r,timestamp:i}=s.frameData;this.lastUpdated!==i&&(this.timeDelta=r,this.lastUpdated=i,s.Wi.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>s.Wi.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=o(this.current),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new i.L);let r=this.events[t].add(e);return"change"===t?()=>{r(),s.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,r){this.set(e),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return a.current&&a.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,n.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function u(t,e){return new l(t,e)}},7325:function(t,e,r){r.d(e,{$:function(){return n}});var i=r(8859);let n={test:(0,r(2702).i)("#"),parse:function(t){let e="",r="",i="",n="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),i=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),i=t.substring(3,4),n=t.substring(4,5),e+=e,r+=r,i+=i,n+=n),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(i,16),alph
1a:n?parseInt(n,16)/255:1}},transform:i.m.transform}},2943:function(t,e,r){r.d(e,{J:function(){return a}});var i=r(4305),n=r(7492),s=r(796),o=r(2702);let a={test:(0,o.i)("hsl","hue"),parse:(0,o.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:o=1})=>"hsla("+Math.round(t)+", "+n.aQ.transform((0,s.Nw)(e))+", "+n.aQ.transform((0,s.Nw)(r))+", "+(0,s.Nw)(i.Fq.transform(o))+")"}},7720:function(t,e,r){r.d(e,{$:function(){return a}});var i=r(796),n=r(7325),s=r(2943),o=r(8859);let a={test:t=>o.m.test(t)||n.$.test(t)||s.J.test(t),parse:t=>o.m.test(t)?o.m.parse(t):s.J.test(t)?s.J.parse(t):n.$.parse(t),transform:t=>(0,i.HD)(t)?t:t.hasOwnProperty("red")?o.m.transform(t):s.J.transform(t)}},8859:function(t,e,r){r.d(e,{m:function(){return u}});var i=r(9111),n=r(4305),s=r(796),o=r(2702);let a=t=>(0,i.u)(0,255,t),l={...n.Rx,transform:t=>Math.round(a(t))},u={test:(0,o.i)("rgb","red"),parse:(0,o.d)("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:i=1})=>"rgba("+l.transform(t)+", "+l.transform(e)+", "+l.transform(r)+", "+(0,s.Nw)(n.Fq.transform(i))+")"}},2702:function(t,e,r){r.d(e,{d:function(){return s},i:function(){return n}});var i=r(796);let n=(t,e)=>r=>!!((0,i.HD)(r)&&i.mj.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e)),s=(t,e,r)=>n=>{if(!(0,i.HD)(n))return n;let[s,o,a,l]=n.match(i.KP);return{[t]:parseFloat(s),[e]:parseFloat(o),[r]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},5636:function(t,e,r){r.d(e,{P:function(){return g},V:function(){return p}});var i=r(7249),n=r(4439),s=r(7720),o=r(4305),a=r(796);let l={regex:i.Xp,countKey:"Vars",token:"${v}",parse:n.Z},u={regex:a.dA,countKey:"Colors",token:"${c}",parse:s.$.parse},h={regex:a.KP,countKey:"Numbers",token:"${n}",parse:o.Rx.parse};function c(t,{regex:e,countKey:r,token:i,parse:n}){let s=t.tokenised.match(e);s&&(t["num"+r]=s.length,t.tokenised=t.tokenised.replace(e,i),t.values.push(...s.map(n)))}function p(t){let e=t.toString(),r={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&c(r,l),c(r,u),c(r,h),r}function f(t){return p(t).values}function m(t){let{values:e,numColors:r,numVars:i,tokenised:n}=p(t),o=e.length;return t=>{let e=n;for(let n=0;n<o;n++)e=n<i?e.replace(l.token,t[n]):n<i+r?e.replace(u.token,s.$.transform(t[n])):e.replace(h.token,(0,a.Nw)(t[n]));return e}}let d=t=>"number"==typeof t?0:t,g={test:function(t){var e,r;return isNaN(t)&&(0,a.HD)(t)&&((null===(e=t.match(a.KP))||void 0===e?void 0:e.length)||0)+((null===(r=t.match(a.dA))||void 0===r?void 0:r.length)||0)>0},parse:f,createTransformer:m,getAnimatableNone:function(t){let e=f(t);return m(t)(e.map(d))}}},4305:function(t,e,r){r.d(e,{Fq:function(){return s},Rx:function(){return n},bA:function(){return o}});var i=r(9111);let n={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...n,transform:t=>(0,i.u)(0,1,t)},o={...n,default:1}},7492:function(t,e,r){r.d(e,{$C:function(){return h},RW:function(){return s},aQ:function(){return o},px:function(){return a},vh:function(){return l},vw:function(){return u}});var i=r(796);let n=t=>({test:e=>(0,i.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),s=n("deg"),o=n("%"),a=n("px"),l=n("vh"),u=n("vw"),h={...o,parse:t=>o.parse(t)/100,transform:t=>o.transform(100*t)}},796:function(t,e,r){r.d(e,{HD:function(){return a},KP:function(){return n},Nw:function(){return i},dA:function(){return s},mj:function(){return o}});let i=t=>Math.round(1e5*t)/1e5,n=/(-)?([\d]*\.?[\d])+/g,s=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,o=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function a(t){return"string"==typeof t}},3999:function(t,e,r){r.d(e,{i:function(){return i}});let i=t=>!!(t&&t.getVelocity)},9441:function(t,e,r){r.d(e,{default:function(){return s}});var i=r(1675),n=r(7437);function s({locale:t,...e}){if(!t)throw Error(void 0);return(0,n.jsx)(i.Pj,{locale:t,...e})}},1675:function(t,e,r){r.d(e,{Pj:function(){return tV},Gb:function(){return tj},bU:function(){return tG},T_:function(){return tU}});var i,n,s,o,a,l,u,h,c,p,f,m,d,g=r(2265),v=function(t,e){return(v=Object.setPrototypeOf||({__proto__:[]}
1)instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function y(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}v(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var E=function(){return(E=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function b(t,e,r){if(r||2==arguments.length)for(var i,n=0,s=e.length;n<s;n++)!i&&n in e||(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))}function T(t,e){var r=e&&e.cache?e.cache:B,i=e&&e.serializer?e.serializer:x;return(e&&e.strategy?e.strategy:function(t,e){var r,i,n=1===t.length?P:A;return r=e.cache.create(),i=e.serializer,n.bind(this,t,r,i)})(t,{cache:r,serializer:i})}function P(t,e,r,i){var n=null==i||"number"==typeof i||"boolean"==typeof i?i:r(i),s=e.get(n);return void 0===s&&(s=t.call(this,i),e.set(n,s)),s}function A(t,e,r){var i=Array.prototype.slice.call(arguments,3),n=r(i),s=e.get(n);return void 0===s&&(s=t.apply(this,i),e.set(n,s)),s}"function"==typeof SuppressedError&&SuppressedError;var x=function(){return JSON.stringify(arguments)},S=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(t){return this.cache[t]},t.prototype.set=function(t,e){this.cache[t]=e},t}(),B={create:function(){return new S}},C={variadic:function(t,e){var r,i;return r=e.cache.create(),i=e.serializer,A.bind(this,t,r,i)},monadic:function(t,e){var r,i;return r=e.cache.create(),i=e.serializer,P.bind(this,t,r,i)}};function M(t){return t.type===h.literal}function w(t){return t.type===h.number}function L(t){return t.type===h.date}function R(t){return t.type===h.time}function H(t){return t.type===h.select}function I(t){return t.type===h.plural}function D(t){return t.type===h.tag}function N(t){return!!(t&&"object"==typeof t&&t.type===c.number)}function _(t){return!!(t&&"object"==typeof t&&t.type===c.dateTime)}(i=u||(u={}))[i.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",i[i.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",i[i.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",i[i.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",i[i.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",i[i.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",i[i.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",i[i.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",i[i.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",i[i.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",i[i.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",i[i.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",i[i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",i[i.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",i[i.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",i[i.INVALID_TAG=23]="INVALID_TAG",i[i.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",i[i.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",i[i.UNCLOSED_TAG=27]="UNCLOSED_TAG",(n=h||(h={}))[n.literal=0]="literal",n[n.argument=1]="argument",n[n.number=2]="number",n[n.date=3]="date",n[n.time=4]="time",n[n.select=5]="select",n[n.plural=6]="plural",n[n.pound=7]="pound",n[n.tag=8]="tag",(s=c||(c={}))[s.number=0]="number",s[s.dateTime=1]="dateTime";
1var V=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,O=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,F=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,k=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,U=/^(@+)?(\+|#+)?[rs]?$/g,G=/(\*)(0+)|(#+)(0+)|(0+)/g,j=/^(0+)$/;function W(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(U,function(t,r,i){return"string"!=typeof i?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):"+"===i?e.minimumSignificantDigits=r.length:"#"===r[0]?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+("string"==typeof i?i.length:0)),""}),e}function $(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function X(t){return $(t)||{}}var Z={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},Y=new RegExp("^".concat(V.source,"*")),K=new RegExp("".concat(V.source,"*$"));function z(t,e){return{start:t,end:e}}var q=!!String.prototype.startsWith&&"_a".startsWith("a",1),J=!!String.fromCodePoint,Q=!!Object.fromEntries,tt=!!String.prototype.codePointAt,te=!!String.prototype.trimStart,tr=!!String.prototype.trimEnd,ti=Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&9007199254740991>=Math.abs(t)},tn=!0;try{var ts=tp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");tn=(null===(p=ts.exec("a"))||void 0===p?void 0:p[0])==="a"}catch(t){tn=!1}var to=q?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},ta=J?String.fromCodePoint:function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var i="",n=e.length,s=0;n>s;){if((t=e[s++])>1114111)throw RangeError(t+" is not a valid code point");i+=t<65536?String.fromCharCode(t):String.fromCharCode(((t-=65536)>>10)+55296,t%1024+56320)}return i},tl=Q?Object.fromEntries:function(t){for(var e={},r=0;r<t.length;r++){var i=t[r],n=i[0],s=i[1];e[n]=s}return e},tu=tt?function(t,e){return t.codePointAt(e)}:function(t,e){var r,i=t.length;if(!(e<0)&&!(e>=i)){var n=t.charCodeAt(e);return n<55296||n>56319||e+1===i||(r=t.charCodeAt(e+1))<56320||r>57343?n:(n-55296<<10)+(r-56320)+65536}},th=te?function(t){return t.trimStart()}:function(t){return t.replace(Y,"")},tc=tr?function(t){return t.trimEnd()}:function(t){return t.replace(K,"")};function tp(t,e){return new RegExp(t,e)}if(tn){var tf=tp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");f=function(t,e){var r;return tf.lastIndex=e,null!==(r=tf.exec(t)[1])&&void 0!==r?r:""}}else f=function(t,e){for(var r=[];;){var i,n=tu(t,e);if(void 0===n||tg(n)||(i=n)>=33&&i<=35||36===i||i>=37&&i<=39||40===i||41===i||42===i||43===i||44===i||45===i||i>=46&&i<=47||i>=58&&i<=59||i>=60&&i<=62||i>=63&&i<=64||91===i||92===i||93===i||94===i||96===i||123===i||124===i||125===i||126===i||161===i||i>=162&&i<=165||166===i||167===i||169===i||171===i||172===i||174===i||176===i||177===i||182===i||187===i||191===i||215===i||247===i||i>=8208&&i<=8213||i>=8214&&i<=8215||8216===i||8217===i||8218===i||i>=8219&&i<=8220||8221===i||8222===i||8223===i||i>=8224&&i<=8231||i>=8240&&i<=8248||8249===i||8250===i||i>=8251&&i<=8254||i>=8257&&i<=8259||8260===i||8261===i||8262===i||i>=8263&&i<=8273||8274===i||8275===i||i>=8277&&i<=8286||i>=8592&&i<=8596||i>=8597&&i<=8601||i>=8602&&i<=8603||i>=8604&&i<=8607||8608===i||i>=8609&&i<=8610||8611===i||i>=8612&&i<=8613||8614===i||i>=8615&&i<=8621||8622===i||i>=8623&&i<=8653||i>=8654&&i<=8655||i>=8656&&i<=8657||8658===i||8659===i||8660===i||i>=8661&&i<=8691||i>=8692&&i<=8959||i>=8960&&i<=8967||8968===i||8969===i||8970===i||8971===i||i>=8972&&i<=8991||i>=8992&&i<=8993||i>=8994&&i<=9e3||9001===i||9002===i||i>=9003&&i<=9083||9084===i||i>=9085&&i<=9114||i>=9115&&i<=9139||i>=9140&&i<=9179||i>=9180&&i<=9185||i>=9186&&i<=9254||i>=9255&&i<=9279||i>=9280&&i<=9290||i>=9291&&i<=9311||i>=9472&&i<=9654||9655===i||i>
1=9656&&i<=9664||9665===i||i>=9666&&i<=9719||i>=9720&&i<=9727||i>=9728&&i<=9838||9839===i||i>=9840&&i<=10087||10088===i||10089===i||10090===i||10091===i||10092===i||10093===i||10094===i||10095===i||10096===i||10097===i||10098===i||10099===i||10100===i||10101===i||i>=10132&&i<=10175||i>=10176&&i<=10180||10181===i||10182===i||i>=10183&&i<=10213||10214===i||10215===i||10216===i||10217===i||10218===i||10219===i||10220===i||10221===i||10222===i||10223===i||i>=10224&&i<=10239||i>=10240&&i<=10495||i>=10496&&i<=10626||10627===i||10628===i||10629===i||10630===i||10631===i||10632===i||10633===i||10634===i||10635===i||10636===i||10637===i||10638===i||10639===i||10640===i||10641===i||10642===i||10643===i||10644===i||10645===i||10646===i||10647===i||10648===i||i>=10649&&i<=10711||10712===i||10713===i||10714===i||10715===i||i>=10716&&i<=10747||10748===i||10749===i||i>=10750&&i<=11007||i>=11008&&i<=11055||i>=11056&&i<=11076||i>=11077&&i<=11078||i>=11079&&i<=11084||i>=11085&&i<=11123||i>=11124&&i<=11125||i>=11126&&i<=11157||11158===i||i>=11159&&i<=11263||i>=11776&&i<=11777||11778===i||11779===i||11780===i||11781===i||i>=11782&&i<=11784||11785===i||11786===i||11787===i||11788===i||11789===i||i>=11790&&i<=11798||11799===i||i>=11800&&i<=11801||11802===i||11803===i||11804===i||11805===i||i>=11806&&i<=11807||11808===i||11809===i||11810===i||11811===i||11812===i||11813===i||11814===i||11815===i||11816===i||11817===i||i>=11818&&i<=11822||11823===i||i>=11824&&i<=11833||i>=11834&&i<=11835||i>=11836&&i<=11839||11840===i||11841===i||11842===i||i>=11843&&i<=11855||i>=11856&&i<=11857||11858===i||i>=11859&&i<=11903||i>=12289&&i<=12291||12296===i||12297===i||12298===i||12299===i||12300===i||12301===i||12302===i||12303===i||12304===i||12305===i||i>=12306&&i<=12307||12308===i||12309===i||12310===i||12311===i||12312===i||12313===i||12314===i||12315===i||12316===i||12317===i||i>=12318&&i<=12319||12320===i||12336===i||64830===i||64831===i||i>=65093&&i<=65094)break;r.push(n),e+=n>=65536?2:1}return ta.apply(void 0,r)};var tm=function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,r){for(var i=[];!this.isEOF();){var n=this.char();if(123===n){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else if(125===n&&t>0)break;else if(35===n&&("plural"===e||"selectordinal"===e)){var o=this.clonePosition();this.bump(),i.push({type:h.pound,location:z(o,this.clonePosition())})}else if(60!==n||this.ignoreTag||47!==this.peek()){if(60===n&&!this.ignoreTag&&td(this.peek()||0)){var s=this.parseTag(t,e);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,e);if(s.err)return s;i.push(s.val)}}else{if(!r)return this.error(u.UNMATCHED_CLOSING_TAG,z(this.clonePosition(),this.clonePosition()));break}}return{val:i,err:null}},t.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:h.literal,value:"<".concat(i,"/>"),location:z(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(u.INVALID_TAG,z(r,this.clonePosition()));var n=this.parseMessage(t+1,e,!0);if(n.err)return n;var s=n.val,o=this.clonePosition();if(!this.bumpIf("</"))return this.error(u.UNCLOSED_TAG,z(r,this.clonePosition()));if(this.isEOF()||!td(this.char()))return this.error(u.INVALID_TAG,z(o,this.clonePosition()));var a=this.clonePosition();return i!==this.parseTagName()?this.error(u.UNMATCHED_CLOSING_TAG,z(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:h.tag,value:i,children:s,location:z(r,this.clonePosition())},err:null}:this.error(u.INVALID_TAG,z(o,this.clonePosition()))},t.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),i="";;){var n=this.tryParseQuote(e);if(n){i+=n;continue}var s=this.tryParseUnquoted(t,e);if(s){i+=s;continue}var o=this.tryParseLeftAngleBracket();if(o){i+=o;continue}break}var a=z(r,this.clonePosition());return{val:{type:h.literal,value:i,location:a},err:null}},t.prototype.tryParseLeftAngleBracket=function(){var t;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(td(t=this.peek()||0)||47===t)?null:(this.bump(),"<")},t.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";
1case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39===this.peek())e.push(39),this.bump();else{this.bump();break}}else e.push(r);this.bump()}return ta.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===e||"selectordinal"===e)||125===r&&t>0?null:(this.bump(),ta(r))},t.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(u.EXPECT_ARGUMENT_CLOSING_BRACE,z(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(u.EMPTY_ARGUMENT,z(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(u.MALFORMED_ARGUMENT,z(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(u.EXPECT_ARGUMENT_CLOSING_BRACE,z(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:h.argument,value:i,location:z(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(u.EXPECT_ARGUMENT_CLOSING_BRACE,z(r,this.clonePosition()));return this.parseArgumentOptions(t,e,i,r);default:return this.error(u.MALFORMED_ARGUMENT,z(r,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=f(this.message,e),i=e+r.length;return this.bumpTo(i),{value:r,location:z(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,r,i){var n,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(o){case"":return this.error(u.EXPECT_ARGUMENT_TYPE,z(s,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var p=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var m=tc(f.val);if(0===m.length)return this.error(u.EXPECT_ARGUMENT_STYLE,z(this.clonePosition(),this.clonePosition()));l={style:m,styleLocation:z(p,this.clonePosition())}}var d=this.tryParseArgumentClose(i);if(d.err)return d;var g=z(i,this.clonePosition());if(l&&to(null==l?void 0:l.style,"::",0)){var v,y=th(l.style.slice(2));if("number"===o){var f=this.parseNumberSkeletonFromString(y,l.styleLocation);if(f.err)return f;return{val:{type:h.number,value:r,location:g,style:f.val},err:null}}if(0===y.length)return this.error(u.EXPECT_DATE_TIME_SKELETON,g);var b=y;this.locale&&(b=function(t,e){for(var r="",i=0;i<t.length;i++){var n=t.charAt(i);if("j"===n){for(var s=0;i+1<t.length&&t.charAt(i+1)===n;)s++,i++;var o=1+(1&s),a=s<2?1:3+(s>>1),l=function(t){var e,r=t.hourCycle;if(void 0===r&&t.hourCycles&&t.hourCycles.length&&(r=t.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var i=t.language;return"root"!==i&&(e=t.maximize().region),(Z[e||""]||Z[i||""]||Z["".concat(i,"-001")]||Z["001"])[0]}(e);for(("H"==l||"k"==l)&&(a=0);a-- >0;)r+="a";for(;o-- >0;)r=l+r}else"J"===n?r+="H":r+=n}return r}(y,this.locale));var m={type:c.dateTime,pattern:b,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(v={},b.replace(O,function(t){var e=t.length;switch(t[0]){case"G":v.era=4===e?"long":5===e?"narrow":"short";break;case"y":v.year=2===e?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":v.month=["numeric","2-digit","short","long","narrow"][e-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":v.day=["numeric","2-digit"][e-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":v.weekday=4===e?"long":5===e?"narrow":"short";break;case"e":if(e<4)throw RangeError("`e..eee` (weekday) patterns are not supported");v.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");v.weekday=["short","long","narrow","short"][e-4];break;case"a":v.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":v.hourCycle="h12",v.hour=["numeric","2-digit"][e-1];break;case"H":v.hourCycle="h23",v.hour=["numeric","2-digit"][e-1];break;case"K":v.hourCycle="h11",v.hour=["numeric","2-digit"][e-1];break;case"k":v.hourCycle="h24",v.hour=["numeric","2-digit"][e-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":v.minute=["numeric","2-digit"][e-1];break;case"s":v.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":v.timeZoneName=e<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),v):{}};return{val:{type:"date"===o?h.date:h.time,value:r,location:g,style:m},err:null}}return{val:{type:"number"===o?h.number:"date"===o?h.date:h.time,value:r,location:g,style:null!==(n=null==l?void 0:l.style)&&void 0!==n?n:null},err:null};
1case"plural":case"selectordinal":case"select":var T=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(u.EXPECT_SELECT_ARGUMENT_OPTIONS,z(T,E({},T)));this.bumpSpace();var P=this.parseIdentifierIfPossible(),A=0;if("select"!==o&&"offset"===P.value){if(!this.bumpIf(":"))return this.error(u.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,z(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(u.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,u.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),P=this.parseIdentifierIfPossible(),A=f.val}var x=this.tryParsePluralOrSelectOptions(t,o,e,P);if(x.err)return x;var d=this.tryParseArgumentClose(i);if(d.err)return d;var S=z(i,this.clonePosition());if("select"===o)return{val:{type:h.select,value:r,options:tl(x.val),location:S},err:null};return{val:{type:h.plural,value:r,options:tl(x.val),offset:A,pluralType:"plural"===o?"cardinal":"ordinal",location:S},err:null};default:return this.error(u.INVALID_ARGUMENT_TYPE,z(s,a))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(u.EXPECT_ARGUMENT_CLOSING_BRACE,z(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(u.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,z(r,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw Error("Number skeleton cannot be empty");for(var e=t.split(F).filter(function(t){return t.length>0}),r=[],i=0;i<e.length;i++){var n=e[i].split("/");if(0===n.length)throw Error("Invalid number skeleton");for(var s=n[0],o=n.slice(1),a=0;a<o.length;a++)if(0===o[a].length)throw Error("Invalid number skeleton");r.push({stem:s,options:o})}return r}(t)}catch(t){return this.error(u.INVALID_NUMBER_SKELETON,e)}return{val:{type:c.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?function(t){for(var e={},r=0;r<t.length;r++){var i=t[r];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=E(E(E({},e),{notation:"scientific"}),i.options.reduce(function(t,e){return E(E({},t),$(e)||{})},{}));continue;case"engineering":e=E(E(E({},e),{notation:"engineering"}),i.options.reduce(function(t,e){return E(E({},t),$(e)||{})},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw RangeError("integer-width stems only accept a single optional option");i.options[0].replace(G,function(t,r,i,n,s,o){if(r)e.minimumIntegerDigits=i.length;else if(n&&s)throw Error("We currently do not support maximum integer digits");else if(o)throw Error("We currently do not support exact integer digits");return""});continue}if(j.test(i.stem)){e.minimumIntegerDigits=i.stem.length;continue}if(k.test(i.stem)){if(i.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(k,function(t,r,i,n,s,o){return"*"===i?e.minimumFractionDigits=r.length:n&&"#"===n[0]?e.maximumFractionDigits=n.length:s&&o?(e.minimumFractionDigits=s.length,e.maximumFractionDigits=s.length+o.length):(e.minimumFractionDigits=r.length,e.maximumFractionDigits=r.length),""});var n=i.options[0];"w"===n?e=E(E({}
1,e),{trailingZeroDisplay:"stripIfInteger"}):n&&(e=E(E({},e),W(n)));continue}if(U.test(i.stem)){e=E(E({},e),W(i.stem));continue}var s=$(i.stem);s&&(e=E(E({},e),s));var o=function(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!j.test(t))throw Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(i.stem);o&&(e=E(E({},e),o))}return e}(r):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,e,r,i){for(var n,s=!1,o=[],a=new Set,l=i.value,h=i.location;;){if(0===l.length){var c=this.clonePosition();if("select"!==e&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(u.EXPECT_PLURAL_ARGUMENT_SELECTOR,u.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;h=z(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}else break}if(a.has(l))return this.error("select"===e?u.DUPLICATE_SELECT_ARGUMENT_SELECTOR:u.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);"other"===l&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?u.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:u.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,z(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,e,r);if(m.err)return m;var d=this.tryParseArgumentClose(f);if(d.err)return d;o.push([l,{value:m.val,location:z(f,this.clonePosition())}]),a.add(l),this.bumpSpace(),l=(n=this.parseIdentifierIfPossible()).value,h=n.location}return 0===o.length?this.error("select"===e?u.EXPECT_SELECT_ARGUMENT_SELECTOR:u.EXPECT_PLURAL_ARGUMENT_SELECTOR,z(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(u.MISSING_OTHER_CLAUSE,z(this.clonePosition(),this.clonePosition())):{val:o,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,s=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)n=!0,s=10*s+(o-48),this.bump();else break}var a=z(i,this.clonePosition());return n?ti(s*=r)?{val:s,err:null}:this.error(e,a):this.error(t,a)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=tu(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(to(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(t){var e=this.offset(),r=this.message.indexOf(t,e);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&tg(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(t>=65536?2:1));return null!=r?r:null},t}();function td(t){return t>=97&&t<=122||t>=65&&t<=90}function tg(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function tv(t,e){void 0===e&&(e={});var r=new tm(t,e=E({shouldParseSkeletons:!0,requiresOtherClause:!0},e)).parse();if(r.err){var i=SyntaxError(u[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return(null==e?void 0:e.captureLocation)||function t(e){e.forEach(function(e){if(delete e.location,H(e)||I(e))for(var r in e.options)delete e.options[r].location,t(e.options[r].value);else w(e)&&N(e.style)?delete e.style.location:(L(e)||R(e))&&_(e.style)?delete e.style.location:D(e)&&t(e.children)})}(r.val),r.val}(o=m||(m={})).MISSING_VALUE="MISSING_VALUE",o.INVALID_VALUE="INVALID_VALUE",o.MISSING_INTL_API="MISSING_INTL_API";var ty=function(t){function e(e,r,i){var n=t.call(this,e)||this;return n.code=r,n.originalMessage=i,n}return y(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),tE=function(t){function e(e,r,i,n){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),m.INVALID_VALUE,n)||this}return y(e,t),e}(ty),tb=function(t){function e(e,r,i){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),m.INVALID_VALUE,i)||this}return y(e,t),e}(ty),tT=function(t){function e(e,r){return t.call(this,'The intl str
1ing context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),m.MISSING_VALUE,r)||this}return y(e,t),e}(ty);function tP(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}(a=d||(d={}))[a.literal=0]="literal",a[a.object=1]="object";var tA=function(){function t(e,r,i,n){void 0===r&&(r=t.defaultLocale);var s,o,a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=a.formatToParts(t);if(1===e.length)return e[0].value;var r=e.reduce(function(t,e){return t.length&&e.type===d.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(t){return function t(e,r,i,n,s,o,a){if(1===e.length&&M(e[0]))return[{type:d.literal,value:e[0].value}];for(var l=[],u=0;u<e.length;u++){var c=e[u];if(M(c)){l.push({type:d.literal,value:c.value});continue}if(c.type===h.pound){"number"==typeof o&&l.push({type:d.literal,value:i.getNumberFormat(r).format(o)});continue}var p=c.value;if(!(s&&p in s))throw new tT(p,a);var f=s[p];if(c.type===h.argument){f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),l.push({type:"string"==typeof f?d.literal:d.object,value:f});continue}if(L(c)){var g="string"==typeof c.style?n.date[c.style]:_(c.style)?c.style.parsedOptions:void 0;l.push({type:d.literal,value:i.getDateTimeFormat(r,g).format(f)});continue}if(R(c)){var g="string"==typeof c.style?n.time[c.style]:_(c.style)?c.style.parsedOptions:n.time.medium;l.push({type:d.literal,value:i.getDateTimeFormat(r,g).format(f)});continue}if(w(c)){var g="string"==typeof c.style?n.number[c.style]:N(c.style)?c.style.parsedOptions:void 0;g&&g.scale&&(f*=g.scale||1),l.push({type:d.literal,value:i.getNumberFormat(r,g).format(f)});continue}if(D(c)){var v=c.children,y=c.value,E=s[y];if("function"!=typeof E)throw new tb(y,"function",a);var b=E(t(v,r,i,n,s,o).map(function(t){return t.value}));Array.isArray(b)||(b=[b]),l.push.apply(l,b.map(function(t){return{type:"string"==typeof t?d.literal:d.object,value:t}}))}if(H(c)){var T=c.options[f]||c.options.other;if(!T)throw new tE(c.value,f,Object.keys(c.options),a);l.push.apply(l,t(T.value,r,i,n,s));continue}if(I(c)){var T=c.options["=".concat(f)];if(!T){if(!Intl.PluralRules)throw new ty('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',m.MISSING_INTL_API,a);var P=i.getPluralRules(r,{type:c.pluralType}).select(f-(c.offset||0));T=c.options[P]||c.options.other}if(!T)throw new tE(c.value,f,Object.keys(c.options),a);l.push.apply(l,t(T.value,r,i,n,s,f-(c.offset||0)));continue}}return l.length<2?l:l.reduce(function(t,e){var r=t[t.length-1];return r&&r.type===d.literal&&e.type===d.literal?r.value+=e.value:t.push(e),t},[])}(a.ast,a.locales,a.formatters,a.formats,t,void 0,a.message)},this.resolvedOptions=function(){var t;return{locale:(null===(t=a.resolvedLocale)||void 0===t?void 0:t.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=r,this.resolvedLocale=t.resolveLocale(r),"string"==typeof e){if(this.message=e,!t.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var l=n||{},u=(l.formatters,function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&0>e.indexOf(i)&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(t);n<i.length;n++)0>e.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(r[i[n]]=t[i[n]]);return r}(l,["formatters"]));this.ast=t.__parse(e,E(E({},u),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=(s=t.formats,i?Object.keys(s).reduce(function(t,e){var r,n;return t[e]=(r=s[e],(n=i[e])?E(E(E({},r||{}),n||{}),Object.keys(r).reduce(function(t,e){return t[e]=E(E({},r[e]),n[e]||{}),t},{})):r),t},E({},s)):s),this.formatters=n&&n.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:T(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,b([void 0],e,!1)))},{cache:tP(o.number),strategy:C.variadic}),getDateTimeFormat:T(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,b([void 0],e,!1)))},{cache:tP(o.dateTime),strategy:C.variadic}),getPluralRules:T(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,b([void 0],e,!1)))},{cache:tP(o.pluralRules),strategy:C.variadic})})}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale}
1,enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){if(void 0!==Intl.Locale){var e=Intl.NumberFormat.supportedLocalesOf(t);return new Intl.Locale(e.length>0?e[0]:"string"==typeof t?t:t[0])}},t.__parse=tv,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();class tx extends Error{constructor(t,e){let r=t;e&&(r+=": "+e),super(r),this.code=t,e&&(this.originalMessage=e)}}var tS=((l=tS||{}).MISSING_MESSAGE="MISSING_MESSAGE",l.MISSING_FORMAT="MISSING_FORMAT",l.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",l.INSUFFICIENT_PATH="INSUFFICIENT_PATH",l.INVALID_MESSAGE="INVALID_MESSAGE",l.INVALID_KEY="INVALID_KEY",l.FORMATTING_ERROR="FORMATTING_ERROR",l);function tB(...t){return t.filter(Boolean).join(".")}function tC(t){return tB(t.namespace,t.key)}function tM(t){console.error(t)}function tw(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function tL(t,e){return T(t,{cache:{create:()=>({get:t=>e[t],set(t,r){e[t]=r}})},strategy:C.variadic})}function tR(t,e){return tL((...e)=>new t(...e),e)}function tH(t){return{getDateTimeFormat:tR(Intl.DateTimeFormat,t.dateTime),getNumberFormat:tR(Intl.NumberFormat,t.number),getPluralRules:tR(Intl.PluralRules,t.pluralRules),getRelativeTimeFormat:tR(Intl.RelativeTimeFormat,t.relativeTime),getListFormat:tR(Intl.ListFormat,t.list),getDisplayNames:tR(Intl.DisplayNames,t.displayNames)}}function tI(t,e,r,i){let n=tB(i,r);if(!e)throw Error(n);let s=e;return r.split(".").forEach(e=>{let r=s[e];if(null==e||null==r)throw Error(n+` (${t})`);s=r}),s}let tD={second:1,seconds:1,minute:60,minutes:60,hour:3600,hours:3600,day:86400,days:86400,week:604800,weeks:604800,month:2628e3,months:2628e3,quarter:7884e3,quarters:7884e3,year:31536e3,years:31536e3};var tN=r(7437);let t_=(0,g.createContext)(void 0);function tV({children:t,formats:e,getMessageFallback:r,locale:i,messages:n,now:s,onError:o,timeZone:a}){let l=(0,g.useContext)(t_),u=(0,g.useMemo)(()=>l?.cache||tw(),[i,l?.cache]),h=(0,g.useMemo)(()=>l?.formatters||tH(u),[u,l?.formatters]),c=(0,g.useMemo)(()=>({...function({formats:t,getMessageFallback:e,messages:r,onError:i,...n}){return{...n,formats:t||void 0,messages:r||void 0,onError:i||tM,getMessageFallback:e||tC}}({locale:i,formats:void 0===e?l?.formats:e,getMessageFallback:r||l?.getMessageFallback,messages:void 0===n?l?.messages:n,now:s||l?.now,onError:o||l?.onError,timeZone:a||l?.timeZone}),formatters:h,cache:u}),[u,e,h,r,i,n,s,o,l,a]);return(0,tN.jsx)(t_.Provider,{value:c,children:t})}function tO(){let t=(0,g.useContext)(t_);if(!t)throw Error(void 0);return t}let tF=!1,tk="undefined"==typeof window;function tU(t){return function(t,e,r){let{cache:i,formats:n,formatters:s,getMessageFallback:o,locale:a,onError:l,timeZone:u}=tO(),h=t["!"],c="!"===e?void 0:e.slice(2);return u||tF||!tk||(tF=!0,l(new tx(tS.ENVIRONMENT_FALLBACK,void 0))),(0,g.useMemo)(()=>(function(t){let e=function(t,e,r){try{if(!e)throw Error(void 0);let i=r?tI(t,e,r):e;if(!i)throw Error(r);return i}catch(t){return new tx(tS.MISSING_MESSAGE,t.message)}}(t.locale,t.messages,t.namespace);return function({cache:t,formats:e,formatters:r,getMessageFallback:i=tC,locale:n,messagesOrError:s,namespace:o,onError:a,timeZone:l}){let u=s instanceof tx;function h(t,e,r,n){let s=new tx(e,r);return a(s),n??i({error:s,key:t,namespace:o})}function c(c,p,f,m){var d;let v,y;if(u){if(!m)return a(s),i({error:s,key:c,namespace:o});v=m}else try{v=tI(n,s,c,o)}catch(t){if(!m)return h(c,tS.MISSING_MESSAGE,t.message,m);v=m}if("object"==typeof v){let t;return h(c,Array.isArray(v)?tS.INVALID_MESSAGE:tS.INSUFFICIENT_PATH,t)}let E=(d=v,p||/'[{}]/.test(d)?void 0:d);if(E)return E;
1r.getMessageFormat||(r.getMessageFormat=tL((...t)=>new tA(t[0],t[1],t[2],{formatters:r,...t[3]}),t.message));try{y=r.getMessageFormat(v,n,function(t,e,r){let i=tA.formats.date,n=tA.formats.time,s={...t?.dateTime,...e?.dateTime},o={date:{...i,...s},time:{...n,...s},number:{...t?.number,...e?.number}};return r&&["date","time"].forEach(t=>{let e=o[t];for(let[t,i]of Object.entries(e))e[t]={timeZone:r,...i}}),o}(e,f,l),{formatters:{...r,getDateTimeFormat:(t,e)=>r.getDateTimeFormat(t,{timeZone:l,...e})}})}catch(t){return h(c,tS.INVALID_MESSAGE,t.message,m)}try{let t=y.format(p?function(t){let e={};return Object.keys(t).forEach(r=>{let i,n=0,s=t[r];i="function"==typeof s?t=>{let e=s(t);return(0,g.isValidElement)(e)?(0,g.cloneElement)(e,{key:r+n++}):e}:s,e[r]=i}),e}(p):p);if(null==t)throw Error(void 0);return(0,g.isValidElement)(t)||Array.isArray(t)||"string"==typeof t?t:String(t)}catch(t){return h(c,tS.FORMATTING_ERROR,t.message,m)}}function p(t,e,r,i){let n=c(t,e,r,i);return"string"!=typeof n?h(t,tS.INVALID_MESSAGE,void 0):n}return p.rich=c,p.markup=(t,e,r,i)=>c(t,e,r,i),p.raw=t=>{if(u)return a(s),i({error:s,key:t,namespace:o});try{return tI(n,s,t,o)}catch(e){return h(t,tS.MISSING_MESSAGE,e.message)}},p.has=t=>{if(u)return!1;try{return tI(n,s,t,o),!0}catch{return!1}},p}({...t,messagesOrError:e})})({cache:i,formatters:s,getMessageFallback:o,messages:h,namespace:c,onError:l,formats:n,locale:a,timeZone:u}),[i,s,o,h,c,l,n,a,u])}({"!":tO().messages},t?`!.${t}`:"!","!")}function tG(){return tO().locale}function tj(){let{formats:t,formatters:e,locale:r,now:i,onError:n,timeZone:s}=tO();return(0,g.useMemo)(()=>(function(t){let{_cache:e=tw(),_formatters:r=tH(e),formats:i,locale:n,onError:s=tM,timeZone:o}=t;function a(t){return t?.timeZone||(o?t={...t,timeZone:o}:s(new tx(tS.ENVIRONMENT_FALLBACK,void 0))),t}function l(t,e,r,i,n){let o;try{o=function(t,e,r){let i;if("string"==typeof e){if(!(i=t?.[e])){let t=new tx(tS.MISSING_FORMAT,void 0);throw s(t),t}}else i=e;return r&&(i={...i,...r}),i}(r,t,e)}catch{return n()}try{return i(o)}catch(t){return s(new tx(tS.FORMATTING_ERROR,t.message)),n()}}function u(t,e,s){return l(e,s,i?.dateTime,e=>(e=a(e),r.getDateTimeFormat(n,e).format(t)),()=>String(t))}function h(){return t.now?t.now:(s(new tx(tS.ENVIRONMENT_FALLBACK,void 0)),new Date)}return{dateTime:u,number:function(t,e,s){return l(e,s,i?.number,e=>r.getNumberFormat(n,e).format(t),()=>String(t))},relativeTime:function(t,e){try{var i;let s,o;let a={};e instanceof Date||"number"==typeof e?s=new Date(e):e&&(s=null!=e.now?new Date(e.now):h(),o=e.unit,a.style=e.style,a.numberingSystem=e.numberingSystem),s||(s=h());let l=(new Date(t).getTime()-s.getTime())/1e3;o||(o=function(t){let e=Math.abs(t);return e<60?"second":e<3600?"minute":e<86400?"hour":e<604800?"day":e<2628e3?"week":e<31536e3?"month":"year"}(l)),a.numeric="second"===o?"auto":"always";let u=(i=o,Math.round(l/tD[i]));return r.getRelativeTimeFormat(n,a).format(u,o)}catch(e){return s(new tx(tS.FORMATTING_ERROR,e.message)),String(t)}},list:function(t,e,s){let o=[],a=new Map,u=0;for(let e of t){let t;"object"==typeof e?(t=String(u),a.set(t,e)):t=String(e),o.push(t),u++}return l(e,s,i?.list,t=>{let e=r.getListFormat(n,t).formatToParts(o).map(t=>"literal"===t.type?t.value:a.get(t.value)||t.value);return a.size>0?e:e.join("")},()=>String(t))},dateTimeRange:function(t,e,s,o){return l(s,o,i?.dateTime,i=>(i=a(i),r.getDateTimeFormat(n,i).formatRange(t,e)),()=>[u(t),u(e)].join(" – "))}}})({formats:t,locale:r,now:i,onError:n,timeZone:s,_formatters:e}),[t,e,i,r,n,s])}}}]);

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.