PageSourceSearch

https://makeinlab.fr/_next/static/chunks/660-f726d8be7c13231b.js

js makeinlab.fr collected 2026-10-04 05:22:10 UTC 185,737 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[660],{463:(t,e,n)=>{n.d(e,{A:()=>i});let i=(0,n(9946).A)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]])},646:(t,e,n)=>{n.d(e,{A:()=>i});let i=(0,n(9946).A)("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},968:(t,e,n)=>{n.d(e,{b:()=>a});var i=n(2115),r=n(3655),o=n(5155),s=i.forwardRef((t,e)=>(0,o.jsx)(r.sG.label,{...t,ref:e,onMouseDown:e=>{var n;e.target.closest("button, input, select, textarea")||(null===(n=t.onMouseDown)||void 0===n||n.call(t,e),!e.defaultPrevented&&e.detail>1&&e.preventDefault())}}));s.displayName="Label";var a=s},1007:(t,e,n)=>{n.d(e,{A:()=>i});let i=(0,n(9946).A)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},1284:(t,e,n)=>{n.d(e,{A:()=>i});let i=(0,n(9946).A)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},1497:(t,e,n)=>{n.d(e,{A:()=>i});let i=(0,n(9946).A)("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]])},1539:(t,e,n)=>{n.d(e,{A:()=>i});let i=(0,n(9946).A)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},1976:(t,e,n)=>{n.d(e,{A:()=>i});let i=(0,n(9946).A)("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]])},2138:(t,e,n)=>{n.d(e,{A:()=>i});let i=(0,n(9946).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},2486:(t,e,n)=>{n.d(e,{A:()=>i});let i=(0,n(9946).A)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},2984:(t,e,n)=>{let i;n.d(e,{P:()=>oT});var r=n(2115);let o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set(o),a=t=>180*t/Math.PI,l=t=>c(a(Math.atan2(t[1],t[0]))),u={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:l,rotateZ:l,skewX:t=>a(Math.atan(t[1])),skewY:t=>a(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},c=t=>((t%=360)<0&&(t+=360),t),h=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),d=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),f={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:h,scaleY:d,scale:t=>(h(t)+d(t))/2,rotateX:t=>c(a(Math.atan2(t[6],t[5]))),rotateY:t=>c(a(Math.atan2(-t[2],t[0]))),rotateZ:l,rotate:l,skewX:t=>a(Math.atan(t[4])),skewY:t=>a(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function p(t){return+!!t.includes("scale")}function m(t,e){let n,i;if(!t||"none"===t)return p(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)n=f,i=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=u,i=e}if(!i)return p(e);let o=n[e],s=i[1].split(",").map(y);return"function"==typeof o?o(s):s[o]}let v=(t,e)=>{let{transform:n="none"}=getComputedStyle(t);return m(n,e)};function y(t){return parseFloat(t.trim())}let g=t=>e=>"string"==typeof e&&e.startsWith(t),x=g("--"),w=g("var(--"),b=t=>!!w(t)&&S.test(t.split("/*")[0].trim()),S=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function T({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}let A=(t,e,n)=>t+(e-t)*n;function P(t){return void 0===t||1===t}function E({scale:t,scaleX:e,scaleY:n}){return!P(t)||!P(e)||!P(n)}function C(t){return E(t)||M(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function M(t){var e,n;return(e=t.x)&&"0%"!==e||(n=t.y)&&"0%"!==n}function k(t,e,n,i,r){return void 0!==r&&(t=i+r*(t-i)),i+n*(t-i)+e}function R(t,e=0,n=1,i,r){t.min=k(t.min,e,n,i,r),t.max=k(t.max,e,n,i,r)}function D(t,{x:e,y:n}){R(t.x,e.translate,e.scale,e.originPoint),R(t.y,n.translate,n.scale,n.originPoint)}function L(t,e){t.min=t.min+e,t.max=t.max+e}function V(t,e,n,i,r=.5){let o=A(t.min,t.max,r);R(t,e,n,o,i)}function j(t,e){V(t.x,e.x,e.scaleX,e.scale,e.originX),V(t.y,e.y,e.scaleY,e.scale,e.originY)}function O(t,e){return T(function(t,e){if(!e)return t;let n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}let F=new Set(["width","height","top","left","right","bottom",...o]),B=(t,e,n)=>n>e?e:n<t?t:n,I={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},N={...I,transform:t=>B(0,1,t)},W={...I,default:1},H=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),U=H("deg"),z=H("%"),$=H("px"),Y=H("vh"),X=H("vw"),_={...z,parse:t=>z.parse(t)/100,transform:t=>z.transform(100*t)},K=t=>e=>e.test(t),q=[I,$,z,U,X,Y,{test:t=>"auto"===t,parse:t=>t}],G=t=>q.find(K(t)),Z=()=>{},J=()=>{},Q=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),tt=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,te=t=>t===I||t===$,tn=new Set(["x","y","z"]),ti=o.filter(t=>!tn.has(t)),tr={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>m(e,"x"),y:(t,{transform:e})=>m(e,"y")};tr.translateX=tr.x,tr.translateY=tr.y;let to=t=>t,ts={},ta=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],tl={value:null,addProjectionMetrics:null};function tu(t,e){let n=!1,i=!0,r={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=ta.reduce((t,n)=>(t[n]=function(t,e){let n=new Set,i=new Set,r=!1,o=!1,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){s.has(e)&&(c.schedule(e),t()),l++,e(a)}let c={schedule:(t,e=!1,o=!1)=>{let a=o&&r?n:i;return e&&s.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),s.delete(t)},process:t=>{if(a=t,r){o=!0;return}
1r=!0,[n,i]=[i,n],n.forEach(u),e&&tl.value&&tl.value.frameloop[e].push(l),l=0,n.clear(),r=!1,o&&(o=!1,c.process(t))}};return c}(o,e?n:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:h,preRender:d,render:f,postRender:p}=s,m=()=>{let o=ts.useManualTiming?r.timestamp:performance.now();n=!1,ts.useManualTiming||(r.delta=i?1e3/60:Math.max(Math.min(o-r.timestamp,40),1)),r.timestamp=o,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),c.process(r),h.process(r),d.process(r),f.process(r),p.process(r),r.isProcessing=!1,n&&e&&(i=!1,t(m))},v=()=>{n=!0,i=!0,r.isProcessing||t(m)};return{schedule:ta.reduce((t,e)=>{let i=s[e];return t[e]=(t,e=!1,r=!1)=>(n||v(),i.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e<ta.length;e++)s[ta[e]].cancel(t)},state:r,steps:s}}let{schedule:tc,cancel:th,state:td,steps:tf}=tu("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:to,!0),tp=new Set,tm=!1,tv=!1,ty=!1;function tg(){if(tv){let t=Array.from(tp).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),n=new Map;e.forEach(t=>{let e=function(t){let e=[];return ti.forEach(n=>{let i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(+!!n.startsWith("scale")))}),e}(t);e.length&&(n.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=n.get(t);e&&e.forEach(([e,n])=>{t.getValue(e)?.set(n)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tv=!1,tm=!1,tp.forEach(t=>t.complete(ty)),tp.clear()}function tx(){tp.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tv=!0)})}class tw{constructor(t,e,n,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(tp.add(this),tm||(tm=!0,tc.read(tx),tc.resolveKeyframes(tg))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;if(null===t[0]){let r=i?.get(),o=t[t.length-1];if(void 0!==r)t[0]=r;else if(n&&e){let i=n.readValue(e,o);null!=i&&(t[0]=i)}void 0===t[0]&&(t[0]=o),i&&void 0===r&&i.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tp.delete(this)}cancel(){"scheduled"===this.state&&(tp.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tb=t=>/^0[^.\s]+$/u.test(t),tS=t=>Math.round(1e5*t)/1e5,tT=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tP=(t,e)=>n=>!!("string"==typeof n&&tA.test(n)&&n.startsWith(t)||e&&null!=n&&Object.prototype.hasOwnProperty.call(n,e)),tE=(t,e,n)=>i=>{if("string"!=typeof i)return i;let[r,o,s,a]=i.match(tT);return{[t]:parseFloat(r),[e]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},tC=t=>B(0,255,t),tM={...I,transform:t=>Math.round(tC(t))},tk={test:tP("rgb","red"),parse:tE("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+tM.transform(t)+", "+tM.transform(e)+", "+tM.transform(n)+", "+tS(N.transform(i))+")"},tR={test:tP("#"),parse:function(t){let e="",n="",i="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}},transform:tk.transform},tD={test:tP("hsl","hue"),parse:tE("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+z.transform(tS(e))+", "+z.transform(tS(n))+", "+tS(N.transform(i))+")"},tL={test:t=>tk.test(t)||tR.test(t)||tD.test(t),parse:t=>tk.test(t)?tk.parse(t):tD.test(t)?tD.parse(t):tR.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tk.transform(t):tD.transform(t),getAnimatableNone:t=>{let e=tL.parse(t);return e.alpha=0,tL.transform(e)}},tV=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tj="number",tO="color",tF=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function tB(t){let e=t.toString(),n=[],i={color:[],number:[],var:[]},r=[],o=0,s=e.replace(tF,t=>(tL.test(t)?(i.color.push(o),r.push(tO),n.push(tL.parse(t))):t.startsWith("var(")?(i.var.push(o),r.push("var"),n.push(t)):(i.number.push(o),r.push(tj),n.push(parseFloat(t))),++o,"${}")).split("${}");return{values:n,split:s,indexes:i,types:r}}function tI(t){return tB(t).values}function tN(t){let{split:e,types:n}=tB(t),i=e.length;return t=>{let r="";for(let o=0;o<i;o++)if(r+=e[o],void 0!==t[o]){let e=n[o];e===tj?r+=tS(t[o]):e===tO?r+=tL.transform(t[o]):r+=t[o]}return r}}let tW=t=>"number"==typeof t?0:tL.test(t)?tL.getAnimatableNone(t):t,tH={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(tT)?.length||0)+(t.match(tV)?.length||0)>0},parse:tI,createTransformer:tN,getAnimatableNone:function(t){let e=tI(t);return tN(t)(e.map(tW))}},tU=new Set(["brightness","contrast","saturate","opacity"]);function tz(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[i]=n.match(tT)||[];if(!i)return t;let r=n.replace(i,""),o=+!!tU.has(e);return i!==n&&(o*=100),e+"("+o+r+")"}let t$=/\b([a-z-]*)\(.*?\)/gu,tY={...tH,getAnimatableNone:t=>{let e=t.match(t$);return e?e.map(tz).join(" "):t}},tX={...I,transform:Math.round},t_={borderWidth:$,borderTopWidth:$,borderRightWidth:$,borderBottomWidth:$,borderLeftWidth:$,borderRadius:$,radius:$,borderTopLeftRadius:$,borderTopRightRadius:$,borderBottomRightRadius:$,borderBottomLeftRadius:$,width:$,maxWidth:$,height:$,maxHeight:$,top:$,right:$,bottom:$,left:$,padding:$,paddingTop:$,paddingRight:$,paddingBottom:$,paddingLeft:$,margin:$,marginTop:$,marginRight:$,marginBottom:$,marginLeft:$,backgroundPositionX:$,backgroundPositionY:$,rotate:U,rotateX:U,rotateY:U,rotateZ:U,scale:W,scaleX:W,scaleY:W,scaleZ:W,skew:U,skewX:U,skewY:U,distance:$,translateX:$,translateY:$,translateZ:$,x:$,y:$,z:$,perspective:$,transformPerspective:$,opacity:N,originX:_,originY:_,originZ:$,zIndex:tX,fillOpacity:N,strokeOpacity:N,numOctaves:tX},tK={...t_,color:tL,backgroundColor:tL,outlineColor:tL,fill:tL,stroke:tL,borderColor:tL,borderTopColor:tL,borderRightColor:tL,borderBottomColor:tL,borderLeftColor:tL,filter:tY,WebkitFilter:tY},tq=t=>tK[t];function tG(t,e){let n=tq(t);return n!==tY&&(n=tH),n.getAnimatableNone?n.getAnimatableNone(e):void 0}
1let tZ=new Set(["auto","none","0"]);class tJ extends tw{constructor(t,e,n,i,r){super(t,e,n,i,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let n=0;n<t.length;n++){let i=t[n];if("string"==typeof i&&b(i=i.trim())){let r=function t(e,n,i=1){J(i<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,o]=function(t){let e=tt.exec(t);if(!e)return[,];let[,n,i,r]=e;return[`--${n??i}`,r]}(e);if(!r)return;let s=window.getComputedStyle(n).getPropertyValue(r);if(s){let t=s.trim();return Q(t)?parseFloat(t):t}return b(o)?t(o,n,i+1):o}(i,e.current);void 0!==r&&(t[n]=r),n===t.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!F.has(n)||2!==t.length)return;let[i,r]=t,o=G(i),s=G(r);if(o!==s){if(te(o)&&te(s))for(let e=0;e<t.length;e++){let n=t[e];"string"==typeof n&&(t[e]=parseFloat(n))}else tr[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,n=[];for(let e=0;e<t.length;e++){var i;(null===t[e]||("number"==typeof(i=t[e])?0===i:null===i||"none"===i||"0"===i||tb(i)))&&n.push(e)}n.length&&function(t,e,n){let i,r=0;for(;r<t.length&&!i;){let e=t[r];"string"==typeof e&&!tZ.has(e)&&tB(e).values.length&&(i=t[r]),r++}if(i&&n)for(let r of e)t[r]=tG(n,i)}(t,n,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:n}=this;if(!t||!t.current)return;let i=t.getValue(e);i&&i.jump(this.measuredOrigin,!1);let r=n.length-1,o=n[r];n[r]=tr[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}let tQ=t=>!!(t&&t.getVelocity);function t0(){i=void 0}let t1={now:()=>(void 0===i&&t1.set(td.isProcessing||ts.useManualTiming?td.timestamp:performance.now()),i),set:t=>{i=t,queueMicrotask(t0)}};function t2(t,e){-1===t.indexOf(e)&&t.push(e)}function t5(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}class t4{constructor(){this.subscriptions=[]}add(t){return t2(this.subscriptions,t),()=>t5(this.subscriptions,t)}notify(t,e,n){let i=this.subscriptions.length;if(i){if(1===i)this.subscriptions[0](t,e,n);else for(let r=0;r<i;r++){let i=this.subscriptions[r];i&&i(t,e,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let t9=t=>!isNaN(parseFloat(t)),t6={current:void 0};class t3{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let n=t1.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty();e&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=t1.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=t9(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new t4);let n=this.events[t].add(e);return"change"===t?()=>{n(),tc.read(()=>{this.events.change.getSize()||this.stop()})}:n}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,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return t6.current&&t6.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=t1.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function t8(t,e){return new t3(t,e)}let t7=[...q,tL,tH],et=t=>t7.find(K(t)),{schedule:ee}=tu(queueMicrotask,!1),en={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"]},ei={};for(let t in en)ei[t]={isEnabled:e=>en[t].some(t=>!!e[t])};let er=()=>({translate:0,scale:1,origin:0,originPoint:0}),eo=()=>({x:er(),y:er()}),es=()=>({min:0,max:0}),ea=()=>({x:es(),y:es()}),el="undefined"!=typeof window,eu={current:null},ec={current:!1},eh=new WeakMap;function ed(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function ef(t){return"string"==typeof t||Array.isArray(t)}let ep=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],em=["initial",...ep];function ev(t){return ed(t.animate)||em.some(e=>ef(t[e]))}function ey(t){return!!(ev(t)||t.variants)}function eg(t){let e=[{},{}];
1return t?.values.forEach((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()}),e}function ex(t,e,n,i){if("function"==typeof e){let[r,o]=eg(i);e=e(void 0!==n?n:t.custom,r,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,o]=eg(i);e=e(void 0!==n?n:t.custom,r,o)}return e}let ew=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class eb{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tw,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=t1.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tc.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!r,this.isControllingVariants=ev(e),this.isVariantNode=ey(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in c){let e=c[t];void 0!==a[t]&&tQ(e)&&e.set(a[t],!1)}}mount(t){this.current=t,eh.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)),ec.current||function(){if(ec.current=!0,el){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>eu.current=t.matches;t.addEventListener("change",e),e()}else eu.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||eu.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),th(this.notifyUpdate),th(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let n;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let i=s.has(t);i&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tc.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),o=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),o(),n&&n(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in ei){let e=ei[t];if(!e)continue;let{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ea()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<ew.length;e++){let n=ew[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(t,e,n){for(let i in e){let r=e[i],o=n[i];if(tQ(r))t.addValue(i,r);else if(tQ(o))t.addValue(i,t8(r,{owner:t}));else if(o!==r){if(t.hasValue(i)){let e=t.getValue(i);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(i);t.addValue(i,t8(void 0!==e?e:r,{owner:t}))}}}for(let i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
1addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);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 n=this.values.get(t);return void 0===n&&void 0!==e&&(n=t8(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){let n=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=n&&("string"==typeof n&&(Q(n)||tb(n))?n=parseFloat(n):!et(n)&&tH.test(e)&&(n=tG(t,e)),this.setBaseTarget(t,tQ(n)?n.get():n)),tQ(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let i=ex(this.props,n,this.presenceContext?.custom);i&&(e=i[t])}if(n&&void 0!==e)return e;let i=this.getBaseTargetFromProps(this.props,t);return void 0===i||tQ(i)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new t4),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){ee.render(this.render)}}class eS extends eb{constructor(){super(...arguments),this.KeyframeResolver=tJ}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:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;tQ(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}let eT=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eP=o.length;function eE(t,e,n){let{style:i,vars:r,transformOrigin:a}=t,l=!1,u=!1;for(let t in e){let n=e[t];if(s.has(t)){l=!0;continue}if(x(t)){r[t]=n;continue}{let e=eT(n,t_[t]);t.startsWith("origin")?(u=!0,a[t]=e):i[t]=e}}if(!e.transform&&(l||n?i.transform=function(t,e,n){let i="",r=!0;for(let s=0;s<eP;s++){let a=o[s],l=t[a];if(void 0===l)continue;let u=!0;if(!(u="number"==typeof l?l===+!!a.startsWith("scale"):0===parseFloat(l))||n){let t=eT(l,t_[a]);if(!u){r=!1;let e=eA[a]||a;i+=`${e}(${t}) `}n&&(e[a]=t)}}return i=i.trim(),n?i=n(e,r?"":i):r&&(i="none"),i}(e,t.transform,n):i.transform&&(i.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:n=0}=a;i.transformOrigin=`${t} ${e} ${n}`}}function eC(t,{style:e,vars:n},i,r){let o;let s=t.style;for(o in e)s[o]=e[o];for(o in r?.applyProjectionStyles(s,i),n)s.setProperty(o,n[o])}let eM={};function ek(t,{layout:e,layoutId:n}){return s.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!eM[t]||"opacity"===t)}function eR(t,e,n){let{style:i}=t,r={};for(let o in i)(tQ(i[o])||e.style&&tQ(e.style[o])||ek(o,t)||n?.getValue(o)?.liveStyle!==void 0)&&(r[o]=i[o]);return r}class eD extends eS{constructor(){super(...arguments),this.type="html",this.renderInstance=eC}readValueFromInstance(t,e){if(s.has(e))return this.projection?.isProjecting?p(e):v(t,e);{let n=window.getComputedStyle(t),i=(x(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:e}){return O(t,e)}build(t,e,n){eE(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return eR(t,e,n)}}let eL=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),eV={offset:"stroke-dashoffset",array:"stroke-dasharray"},ej={offset:"strokeDashoffset",array:"strokeDasharray"};function eO(t,{attrX:e,attrY:n,attrScale:i,pathLength:r,pathSpacing:o=1,pathOffset:s=0,...a}
1,l,u,c){if(eE(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:h,style:d}=t;h.transform&&(d.transform=h.transform,delete h.transform),(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=c?.transformBox??"fill-box",delete h.transformBox),void 0!==e&&(h.x=e),void 0!==n&&(h.y=n),void 0!==i&&(h.scale=i),void 0!==r&&function(t,e,n=1,i=0,r=!0){t.pathLength=1;let o=r?eV:ej;t[o.offset]=$.transform(-i);let s=$.transform(e),a=$.transform(n);t[o.array]=`${s} ${a}`}(h,r,o,s,!1)}let eF=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"]),eB=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eI(t,e,n){let i=eR(t,e,n);for(let n in t)(tQ(t[n])||tQ(e[n]))&&(i[-1!==o.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]);return i}class eN extends eS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ea}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(s.has(e)){let t=tq(e);return t&&t.default||0}return e=eF.has(e)?e:eL(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return eI(t,e,n)}
1build(t,e,n){eO(t,e,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,e,n,i){!function(t,e,n,i){for(let n in eC(t,e,void 0,i),e.attrs)t.setAttribute(eF.has(n)?n:eL(n),e.attrs[n])}(t,e,0,i)}mount(t){this.isSVGTag=eB(t.tagName),super.mount(t)}}let eW=["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 eH(t){if("string"!=typeof t||t.includes("-"));else if(eW.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var eU=n(5155);let ez=(0,r.createContext)({}),e$=(0,r.createContext)({strict:!1}),eY=(0,r.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),eX=(0,r.createContext)({});function e_(t){return Array.isArray(t)?t.join(" "):t}let eK=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eq(t,e,n){for(let i in e)tQ(e[i])||ek(i,n)||(t[i]=e[i])}let eG=()=>({...eK(),attrs:{}}),eZ=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function eJ(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||eZ.has(t)}let eQ=t=>!eJ(t);try{!function(t){"function"==typeof t&&(eQ=e=>e.startsWith("on")?!eJ(e):t(e))}(require("@emotion/is-prop-valid").default)}catch{}let e0=(0,r.createContext)(null);function e1(t){return tQ(t)?t.get():t}let e2=t=>(e,n)=>{let i=(0,r.useContext)(eX),o=(0,r.useContext)(e0),s=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,r){return{latestValues:function(t,e,n,i){let r={},o=i(t,{});for(let t in o)r[t]=e1(o[t]);let{initial:s,animate:a}=t,l=ev(t),u=ey(t);e&&u&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===a&&(a=e.animate));let c=!!n&&!1===n.initial,h=(c=c||!1===s)?a:s;if(h&&"boolean"!=typeof h&&!ed(h)){let e=Array.isArray(h)?h:[h];for(let n=0;n<e.length;n++){let i=ex(t,e[n]);if(i){let{transitionEnd:t,transition:e,...n}=i;for(let t in n){let e=n[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(n,i,r,t),renderState:e()}})(t,e,i,o);return n?s():function(t){let e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}(s)},e5=e2({scrapeMotionValuesFromProps:eR,createRenderState:eK}),e4=e2({scrapeMotionValuesFromProps:eI,createRenderState:eG}),e9=Symbol.for("motionComponentSymbol");function e6(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let e3="data-"+eL("framerAppearId"),e8=(0,r.createContext)({}),e7=el?r.useLayoutEffect:r.useEffect;function nt(t){var e,n;let{forwardMotionProps:i=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0;o&&function(t){for(let e in t)ei[e]={...ei[e],...t[e]}}(o);let a=eH(t)?e4:e5;function l(e,n){var o,l,u;let c;let h={...(0,r.useContext)(eY),...e,layoutId:function(t){let{layoutId:e}
1=t,n=(0,r.useContext)(ez).id;return n&&void 0!==e?n+"-"+e:e}(e)},{isStatic:d}=h,f=function(t){let{initial:e,animate:n}=function(t,e){if(ev(t)){let{initial:e,animate:n}=t;return{initial:!1===e||ef(e)?e:void 0,animate:ef(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,r.useContext)(eX));return(0,r.useMemo)(()=>({initial:e,animate:n}),[e_(e),e_(n)])}(e),p=a(e,d);if(!d&&el){l=0,u=0,(0,r.useContext)(e$).strict;let e=function(t){let{drag:e,layout:n}=ei;if(!e&&!n)return{};let i={...e,...n};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==n?void 0:n.isEnabled(t))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(h);c=e.MeasureLayout,f.visualElement=function(t,e,n,i,o){let{visualElement:s}=(0,r.useContext)(eX),a=(0,r.useContext)(e$),l=(0,r.useContext)(e0),u=(0,r.useContext)(eY).reducedMotion,c=(0,r.useRef)(null);i=i||a.renderer,!c.current&&i&&(c.current=i(t,{visualState:e,parent:s,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u}));let h=c.current,d=(0,r.useContext)(e8);h&&!h.projection&&o&&("html"===h.type||"svg"===h.type)&&function(t,e,n,i){let{layoutId:r,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||a&&e6(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,crossfade:c,layoutScroll:l,layoutRoot:u})}(c.current,n,o,d);let f=(0,r.useRef)(!1);(0,r.useInsertionEffect)(()=>{h&&f.current&&h.update(n,l)});let p=n[e3],m=(0,r.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return e7(()=>{h&&(f.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),m.current&&h.animationState&&h.animationState.animateChanges())}),(0,r.useEffect)(()=>{h&&(!m.current&&h.animationState&&h.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),m.current=!1))}),h}(t,p,h,s,e.ProjectionNode)}return(0,eU.jsxs)(eX.Provider,{value:f,children:[c&&f.visualElement?(0,eU.jsx)(c,{visualElement:f.visualElement,...h}):null,function(t,e,n,{latestValues:i},o,s=!1){let a=(eH(t)?function(t,e,n,i){let o=(0,r.useMemo)(()=>{let n=eG();return eO(n,e,eB(i),t.transformTemplate,t.style),{...n.attrs,style:{...n.style}}},[e]);if(t.style){let e={};eq(e,t.style,t),o.style={...e,...o.style}}return o}:function(t,e){let n={},i=function(t,e){let n=t.style||{},i={};return eq(i,n,t),Object.assign(i,function({transformTemplate:t},e){return(0,r.useMemo)(()=>{let n=eK();return eE(n,e,t),Object.assign({},n.vars,n.style)},[e])}(t,e)),i}(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n})(e,i,o,t),l=function(t,e,n){let i={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(eQ(r)||!0===n&&eJ(r)||!e&&!eJ(r)||t.draggable&&r.startsWith("onDrag"))&&(i[r]=t[r]);return i}(e,"string"==typeof t,s),u=t!==r.Fragment?{...l,...a,ref:n}:{},{children:c}=e,h=(0,r.useMemo)(()=>tQ(c)?c.get():c,[c]);return(0,r.createElement)(t,{...u,children:h})}(t,e,(o=f.visualElement,(0,r.useCallback)(t=>{t&&p.onMount&&p.onMount(t),o&&(t?o.mount(t):o.unmount()),n&&("function"==typeof n?n(t):e6(n)&&(n.current=t))},[o])),p,d,i)]})}l.displayName="motion.".concat("string"==typeof t?t:"create(".concat(null!==(n=null!==(e=t.displayName)&&void 0!==e?e:t.name)&&void 0!==n?n:"",")"));let u=(0,r.forwardRef)(l);return u[e9]=t,u}function ne(t,e,n){let i=t.getProps();return ex(i,e,void 0!==n?n:i.custom,t)}function nn(t,e){return t?.[e]??t?.default??t}let ni=t=>Array.isArray(t);function nr(t,e){let n=t.getValue("willChange");if(tQ(n)&&n.add)return n.add(e);if(!n&&ts.WillChange){let n=new ts.WillChange("auto");t.addValue("willChange",n),n.add(e)}}let no=(t,e)=>n=>e(t(n)),ns=(...t)=>t.reduce(no),na=t=>1e3*t,nl=t=>t/1e3,nu={layout:0,mainThread:0,waapi:0};function nc(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function nh(t,e){return n=>n>0?e:t}let nd=(t,e,n)=>{let i=t*t,r=n*(e*e-i)+i;return r<0?0:Math.sqrt(r)},nf=[tR,tk,tD],np=t=>nf.find(e=>e.test(t));function nm(t){let e=np(t);if(Z(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let n=e.parse(t);return e===tD&&(n=function({hue:t,saturation:e,lightness:n,alpha:i}
1){t/=360,n/=100;let r=0,o=0,s=0;if(e/=100){let i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;r=nc(a,i,t+1/3),o=nc(a,i,t),s=nc(a,i,t-1/3)}else r=o=s=n;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}(n)),n}let nv=(t,e)=>{let n=nm(t),i=nm(e);if(!n||!i)return nh(t,e);let r={...n};return t=>(r.red=nd(n.red,i.red,t),r.green=nd(n.green,i.green,t),r.blue=nd(n.blue,i.blue,t),r.alpha=A(n.alpha,i.alpha,t),tk.transform(r))},ny=new Set(["none","hidden"]);function ng(t,e){return n=>A(t,e,n)}function nx(t){return"number"==typeof t?ng:"string"==typeof t?b(t)?nh:tL.test(t)?nv:nS:Array.isArray(t)?nw:"object"==typeof t?tL.test(t)?nv:nb:nh}function nw(t,e){let n=[...t],i=n.length,r=t.map((t,n)=>nx(t)(t,e[n]));return t=>{for(let e=0;e<i;e++)n[e]=r[e](t);return n}}function nb(t,e){let n={...t,...e},i={};for(let r in n)void 0!==t[r]&&void 0!==e[r]&&(i[r]=nx(t[r])(t[r],e[r]));return t=>{for(let e in i)n[e]=i[e](t);return n}}let nS=(t,e)=>{let n=tH.createTransformer(e),i=tB(t),r=tB(e);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?ny.has(t)&&!r.values.length||ny.has(e)&&!i.values.length?function(t,e){return ny.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):ns(nw(function(t,e){let n=[],i={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let o=e.types[r],s=t.indexes[o][i[o]],a=t.values[s]??0;n[r]=a,i[o]++}return n}(i,r),r.values),n):(Z(!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.`,"complex-values-different"),nh(t,e))};function nT(t,e,n){return"number"==typeof t&&"number"==typeof e&&"number"==typeof n?A(t,e,n):nx(t)(t,e)}let nA=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tc.update(e,t),stop:()=>th(e),now:()=>td.isProcessing?td.timestamp:t1.now()}},nP=(t,e,n=10)=>{let i="",r=Math.max(Math.round(e/n),2);for(let e=0;e<r;e++)i+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${i.substring(0,i.length-2)})`};function nE(t){let e=0,n=t.next(e);for(;!n.done&&e<2e4;)e+=50,n=t.next(e);return e>=2e4?1/0:e}function nC(t,e,n){var i,r;let o=Math.max(e-5,0);return i=n-t(o),(r=e-o)?1e3/r*i:0}let nM={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function nk(t,e){return t*Math.sqrt(1-e*e)}let nR=["duration","bounce"],nD=["stiffness","damping","mass"];function nL(t,e){return e.some(e=>void 0!==t[e])}function nV(t=nM.visualDuration,e=nM.bounce){let n;let i="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:o}=i,s=i.keyframes[0],a=i.keyframes[i.keyframes.length-1],l={done:!1,value:s},{stiffness:u,damping:c,mass:h,duration:d,velocity:f,isResolvedFromDuration:p}=function(t){let e={velocity:nM.velocity,stiffness:nM.stiffness,damping:nM.damping,mass:nM.mass,isResolvedFromDuration:!1,...t};if(!nL(t,nD)&&nL(t,nR)){if(t.visualDuration){let n=2*Math.PI/(1.2*t.visualDuration),i=n*n,r=2*B(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:nM.mass,stiffness:i,damping:r}}else{let n=function({duration:t=nM.duration,bounce:e=nM.bounce,velocity:n=nM.velocity,mass:i=nM.mass}){let r,o;Z(t<=na(nM.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-e;s=B(nM.minDamping,nM.maxDamping,s),t=B(nM.minDuration,nM.maxDuration,nl(t)),s<1?(r=e=>{let i=e*s,r=i*t;return .001-(i-n)/nk(e,s)*Math.exp(-r)},o=e=>{let i=e*s*t,o=Math.pow(s,2)*Math.pow(e,2)*t,a=Math.exp(-i),l=nk(Math.pow(e,2),s);return(i*n+n-o)*a*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-n)*t+1),o=e=>t*t*(n-e)*Math.exp(-e*t));let a=function(t,e,n){let i=n;for(let n=1;n<12;n++)i-=t(i)/e(i);return i}(r,o,5/t);if(t=na(t),isNaN(a))return{stiffness:nM.stiffness,damping:nM.damping,duration:t};{let e=Math.pow(a,2)*i;return{stiffness:e,damping:2*s*Math.sqrt(i*e),duration:t}}}(t);(e={...e,...n,mass:nM.mass}).isResolvedFromDuration=!0}}return e}({...i,velocity:-nl(i.velocity||0)}),m=f||0,v=c/(2*Math.sqrt(u*h)),y=a-s,g=nl(Math.sqrt(u/h)),x=5>Math.abs(y);if(r||(r=x?nM.restSpeed.granular:nM.restSpeed.default),o||(o=x?nM.restDelta.granular:nM.restDelta.default),v<1){let t=nk(g,v);n=e=>a-Math.exp(-v*g*e)*((m+v*g*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===v)n=t=>a-Math.exp(-g*t)*(y+(m+g*y)*t);else{let t=g*Math.sqrt(v*v-1);n=e=>{let n=Math.exp(-v*g*e),i=Math.min(t*e,300);return a-n*((m+v*g*y)*Math.sinh(i)+t*y*Math.cosh(i))/t}}
1let w={calculatedDuration:p&&d||null,next:t=>{let e=n(t);if(p)l.done=t>=d;else{let i=0===t?m:0;v<1&&(i=0===t?na(m):nC(n,t,e));let s=Math.abs(a-e)<=o;l.done=Math.abs(i)<=r&&s}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(nE(w),2e4),e=nP(e=>w.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return w}function nj({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let h,d;let f=t[0],p={done:!1,value:f},m=t=>void 0!==a&&t<a||void 0!==l&&t>l,v=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,y=n*e,g=f+y,x=void 0===s?g:s(g);x!==g&&(y=x-f);let w=t=>-y*Math.exp(-t/i),b=t=>x+w(t),S=t=>{let e=w(t),n=b(t);p.done=Math.abs(e)<=u,p.value=p.done?x:n},T=t=>{m(p.value)&&(h=t,d=nV({keyframes:[p.value,v(p.value)],velocity:nC(b,t,p.value),damping:r,stiffness:o,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==h||(e=!0,S(t),T(t)),void 0!==h&&t>=h)?d.next(t-h):(e||S(t),p)}}}nV.applyToOptions=t=>{let e=function(t,e=100,n){let i=n({...t,keyframes:[0,e]}),r=Math.min(nE(i),2e4);return{type:"keyframes",ease:t=>i.next(r*t).value/e,duration:nl(r)}}(t,100,nV);return t.ease=e.ease,t.duration=na(e.duration),t.type="keyframes",t};let nO=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function nF(t,e,n,i){if(t===e&&n===i)return to;let r=e=>(function(t,e,n,i,r){let o,s;let a=0;do(o=nO(s=e+(n-e)/2,i,r)-t)>0?n=s:e=s;while(Math.abs(o)>1e-7&&++a<12);return s})(e,0,1,t,n);return t=>0===t||1===t?t:nO(r(t),e,i)}let nB=nF(.42,0,1,1),nI=nF(0,0,.58,1),nN=nF(.42,0,.58,1),nW=t=>Array.isArray(t)&&"number"!=typeof t[0],nH=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,nU=t=>e=>1-t(1-e),nz=nF(.33,1.53,.69,.99),n$=nU(nz),nY=nH(n$),nX=t=>(t*=2)<1?.5*n$(t):.5*(2-Math.pow(2,-10*(t-1))),n_=t=>1-Math.sin(Math.acos(t)),nK=nU(n_),nq=nH(n_),nG=t=>Array.isArray(t)&&"number"==typeof t[0],nZ={linear:to,easeIn:nB,easeInOut:nN,easeOut:nI,circIn:n_,circInOut:nq,circOut:nK,backIn:n$,backInOut:nY,backOut:nz,anticipate:nX},nJ=t=>"string"==typeof t,nQ=t=>{if(nG(t)){J(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,n,i,r]=t;return nF(e,n,i,r)}return nJ(t)?(J(void 0!==nZ[t],`Invalid easing type '${t}'`,"invalid-easing-type"),nZ[t]):t},n0=(t,e,n)=>{let i=e-t;return 0===i?1:(n-t)/i};function n1({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){let r=nW(i)?i.map(nQ):nQ(i),o={done:!1,value:e[0]},s=function(t,e,{clamp:n=!0,ease:i,mixer:r}={}){let o=t.length;if(J(o===e.length,"Both input and output ranges must be the same length","range-length"),1===o)return()=>e[0];if(2===o&&e[0]===e[1])return()=>e[1];let s=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,n){let i=[],r=n||ts.mix||nT,o=t.length-1;for(let n=0;n<o;n++){let o=r(t[n],t[n+1]);e&&(o=ns(Array.isArray(e)?e[n]||to:e,o)),i.push(o)}return i}(e,i,r),l=a.length,u=n=>{if(s&&n<t[0])return e[0];let i=0;if(l>1)for(;i<t.length-2&&!(n<t[i+1]);i++);let r=n0(t[i],t[i+1],n);return a[i](r)};return n?e=>u(B(t[0],t[o-1],e)):u}((n&&n.length===e.length?n:function(t){let e=[0];return function(t,e){let n=t[t.length-1];for(let i=1;i<=e;i++){let r=n0(0,e,i);t.push(A(n,1,r))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(r)?r:e.map(()=>r||nN).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=s(e),o.done=e>=t,o)}}let n2=t=>null!==t;function n5(t,{repeat:e,repeatType:n="loop"},i,r=1){let o=t.filter(n2),s=r<0||e&&"loop"!==n&&e%2==1?0:o.length-1;return s&&void 0!==i?i:o[s]}let n4={decay:nj,inertia:nj,tween:n1,keyframes:n1,spring:nV};function n9(t){"string"==typeof t.type&&(t.type=n4[t.type])}class n6{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let n3=t=>t/100;class n8 extends n6{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==t1.now()&&this.tick(t1.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},nu.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;
1n9(t);let{type:e=n1,repeat:n=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=t,{keyframes:s}=t,a=e||n1;a!==n1&&"number"!=typeof s[0]&&(this.mixKeyframes=ns(n3,nT(s[0],s[1])),s=[0,100]);let l=a({...t,keyframes:s});"mirror"===r&&(this.mirroredGenerator=a({...t,keyframes:[...s].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=nE(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:n,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:a}=this;if(null===this.startTime)return n.next(0);let{delay:l=0,keyframes:u,repeat:c,repeatType:h,repeatDelay:d,type:f,onUpdate:p,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let g=this.currentTime,x=n;if(c){let t=Math.min(this.currentTime,i)/s,e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,(e=Math.min(e,c+1))%2&&("reverse"===h?(n=1-n,d&&(n-=d/s)):"mirror"===h&&(x=o)),g=B(0,1,n)*s}let w=y?{done:!1,value:u[0]}:x.next(g);r&&(w.value=r(w.value));let{done:b}=w;y||null===a||(b=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return S&&f!==nj&&(w.value=n5(u,this.options,m,this.speed)),p&&p(w.value),S&&this.finish(),w}then(t,e){return this.finished.then(t,e)}get duration(){return nl(this.calculatedDuration)}get time(){return nl(this.currentTime)}set time(t){t=na(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(t1.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=nl(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=nA,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=e??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(t1.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,nu.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let n7=t=>t.startsWith("--");function it(t){let e;return()=>(void 0===e&&(e=t()),e)}let ie=it(()=>void 0!==window.ScrollTimeline),ii={},ir=function(t,e){let n=it(t);return()=>ii[e]??n()}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),io=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,is={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:io([0,.65,.55,1]),circOut:io([.55,0,1,.45]),backIn:io([.31,.01,.66,-.59]),backOut:io([.33,1.53,.69,.99])};function ia(t){return"function"==typeof t&&"applyToOptions"in t}class il extends n6{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:e,name:n,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:s,onComplete:a}=t;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=t,J("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:t,...e}){return ia(t)&&ir()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u){let c={[e]:n};l&&(c.offset=l);let h=function t(e,n){if(e)return"function"==typeof e?ir()?nP(e,n):"ease-out":nG(e)?io(e):Array.isArray(e)?e.map(e=>t(e,n)||is.easeOut):is[e]}(a,r);Array.isArray(h)&&(c.easing=h),tl.value&&nu.waapi++;let d={delay:i,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"};u&&(d.pseudoElement=u);let f=t.animate(c,d);return tl.value&&f.finished.finally(()=>{nu.waapi--}),f}(e,n,i,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=n5(i,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,n){n7(e)?t.style.setProperty(e,n):t.style[e]=n}(e,n,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return nl(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get time(){return nl(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=na(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&ie())?(this.animation.timeline=t,to):e(this)}}let iu={anticipate:nX,backInOut:nY,circInOut:nq};class ic extends il{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in iu&&(t.ease=iu[t.ease])}(t),n9(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:n,onComplete:i,element:r,...o}=this.options;if(!e)return;if(void 0!==t){e.set(t);return}let s=new n8({...o,autoplay:!1}),a=na(this.finishedTime??this.time);e.setWithVelocity(s.sample(a-10).value,s.sample(a).value,10),s.stop()}}let ih=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tH.test(t)||"0"===t)&&!t.startsWith("url(")),id=new Set(["opacity","clipPath","filter","transform"]),ip=it(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class im extends n6{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:s,name:a,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=t1.now();let h={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:r,repeatType:
1o,name:a,motionValue:l,element:u,...c},d=u?.KeyframeResolver||tw;this.keyframeResolver=new d(s,(t,e,n)=>this.onKeyframesResolved(t,e,h,!n),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,n,i){this.keyframeResolver=void 0;let{name:r,type:o,velocity:s,delay:a,isHandoff:l,onUpdate:u}=n;this.resolvedAt=t1.now(),!function(t,e,n,i){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let o=t[t.length-1],s=ih(r,e),a=ih(o,e);return Z(s===a,`You are trying to animate ${e} from "${r}" to "${o}". "${s?o:r}" is not an animatable value.`,"value-not-animatable"),!!s&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||ia(n))&&i)}(t,r,o,s)&&((ts.instantAnimations||!a)&&u?.(n5(t,n,e)),t[0]=t[t.length-1],n.duration=0,n.repeat=0);let c={startTime:i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...n,keyframes:t},h=!l&&function(t){let{motionValue:e,name:n,repeatDelay:i,repeatType:r,damping:o,type:s}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return ip()&&n&&id.has(n)&&("transform"!==n||!l)&&!a&&!i&&"mirror"!==r&&0!==o&&"inertia"!==s}(c)?new ic({...c,element:c.motionValue.owner.current}):new n8(c);h.finished.then(()=>this.notifyFinished()).catch(to),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ty=!0,tx(),tg(),ty=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let iv=t=>null!==t,iy={type:"spring",stiffness:500,damping:25,restSpeed:10},ig=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),ix={type:"keyframes",duration:.8},iw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ib=(t,{keyframes:e})=>e.length>2?ix:s.has(t)?t.startsWith("scale")?ig(e[1]):iy:iw,iS=(t,e,n,i={},r,o)=>s=>{let a=nn(i,t)||{},l=a.delay||i.delay||0,{elapsed:u=0}=i;u-=na(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:r};!function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(a)&&Object.assign(c,ib(t,c)),c.duration&&(c.duration=na(c.duration)),c.repeatDelay&&(c.repeatDelay=na(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let h=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(c.duration=0,0!==c.delay||(h=!0)),(ts.instantAnimations||ts.skipAnimations)&&(h=!0,c.duration=0,c.delay=0),c.allowFlatten=!a.type&&!a.ease,h&&!o&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:n="loop"},i){let r=t.filter(iv),o=e&&"loop"!==n&&e%2==1?0:r.length-1;return r[o]}(c.keyframes,a);if(void 0!==t){tc.update(()=>{c.onUpdate(t),c.onComplete()});return}}return a.isSync?new n8(c):new im(c)};function iT(t,e,{delay:n=0,transitionOverride:i,type:r}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:s,...a}=e;i&&(o=i);let l=[],u=r&&t.animationState&&t.animationState.getState()[r];for(let e in a){let i=t.getValue(e,t.latestValues[e]??null),r=a[e];if(void 0===r||u&&function({protectedKeys:t,needsAnimating:e},n){let i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}(u,e))continue;let s={delay:n,...nn(o||{},e)},c=i.get();if(void 0!==c&&!i.isAnimating&&!Array.isArray(r)&&r===c&&!s.velocity)continue;let h=!1;if(window.MotionHandoffAnimation){let n=t.props[e3];if(n){let t=window.MotionHandoffAnimation(n,e,tc);null!==t&&(s.startTime=t,h=!0)}}nr(t,e),i.start(iS(e,i,r,t.shouldReduceMotion&&F.has(e)?{type:!1}:s,t,h));let d=i.animation;d&&l.push(d)}return s&&Promise.all(l).then(()=>{tc.update(()=>{s&&function(t,e){let{transitionEnd:n={},transition:i={},...r}=ne(t,e)||{};for(let e in r={...r,...n}){var o;let n=ni(o=r[e])?o[o.length-1]||0:o;t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,t8(n))}}(t,s)})}),l}function iA(t,e,n={}){let i=ne(t,e,"exit"===n.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=i||{};
1n.transitionOverride&&(r=n.transitionOverride);let o=i?()=>Promise.all(iT(t,i,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(i=0)=>{let{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=r;return function(t,e,n=0,i=0,r=0,o=1,s){let a=[],l=t.variantChildren.size,u=(l-1)*r,c="function"==typeof i,h=c?t=>i(t,l):1===o?(t=0)=>t*r:(t=0)=>u-t*r;return Array.from(t.variantChildren).sort(iP).forEach((t,r)=>{t.notify("AnimationStart",e),a.push(iA(t,e,{...s,delay:n+(c?0:i)+h(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(a)}(t,e,i,o,s,a,n)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([o(),s(n.delay)]);{let[t,e]="beforeChildren"===a?[o,s]:[s,o];return t().then(()=>e())}}function iP(t,e){return t.sortNodePosition(e)}function iE(t,e){if(!Array.isArray(e))return!1;let n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}let iC=em.length,iM=[...ep].reverse(),ik=ep.length;function iR(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function iD(){return{animate:iR(!0),whileInView:iR(),whileHover:iR(),whileTap:iR(),whileDrag:iR(),whileFocus:iR(),exit:iR()}}class iL{constructor(t){this.isMounted=!1,this.node=t}update(){}}class iV extends iL{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:n})=>(function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e))i=Promise.all(e.map(e=>iA(t,e,n)));else if("string"==typeof e)i=iA(t,e,n);else{let r="function"==typeof e?ne(t,e,n.custom):e;i=Promise.all(iT(t,r,n))}return i.then(()=>{t.notify("AnimationComplete",e)})})(t,e,n))),n=iD(),i=!0,r=e=>(n,i)=>{let r=ne(t,i,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...i}=r;n={...n,...i,...e}}return n};function o(o){let{props:s}=t,a=function t(e){if(!e)return;if(!e.isControllingVariants){let n=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(n.initial=e.props.initial),n}let n={};for(let t=0;t<iC;t++){let i=em[t],r=e.props[i];(ef(r)||!1===r)&&(n[i]=r)}return n}(t.parent)||{},l=[],u=new Set,c={},h=1/0;for(let e=0;e<ik;e++){var d,f;let p=iM[e],m=n[p],v=void 0!==s[p]?s[p]:a[p],y=ef(v),g=p===o?m.isActive:null;!1===g&&(h=e);let x=v===a[p]&&v!==s[p]&&y;if(x&&i&&t.manuallyAnimateOnMount&&(x=!1),m.protectedKeys={...c},!m.isActive&&null===g||!v&&!m.prevProp||ed(v)||"boolean"==typeof v)continue;let w=(d=m.prevProp,"string"==typeof(f=v)?f!==d:!!Array.isArray(f)&&!iE(f,d)),b=w||p===o&&m.isActive&&!x&&y||e>h&&y,S=!1,T=Array.isArray(v)?v:[v],A=T.reduce(r(p),{});!1===g&&(A={});let{prevResolvedValues:P={}}=m,E={...P,...A},C=e=>{b=!0,u.has(e)&&(S=!0,u.delete(e)),m.needsAnimating[e]=!0;let n=t.getValue(e);n&&(n.liveStyle=!1)};for(let t in E){let e=A[t],n=P[t];if(c.hasOwnProperty(t))continue;let i=!1;(ni(e)&&ni(n)?iE(e,n):e===n)?void 0!==e&&u.has(t)?C(t):m.protectedKeys[t]=!0:null!=e?C(t):u.add(t)}m.prevProp=v,m.prevResolvedValues=A,m.isActive&&(c={...c,...A}),i&&t.blockInitialAnimation&&(b=!1);let M=!(x&&w)||S;b&&M&&l.push(...T.map(t=>({animation:t,options:{type:p}})))}if(u.size){let e={};if("boolean"!=typeof s.initial){let n=ne(t,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(e.transition=n.transition)}u.forEach(n=>{let i=t.getBaseTarget(n),r=t.getValue(n);r&&(r.liveStyle=!0),e[n]=i??null}),l.push({animation:e})}let p=!!l.length;return i&&(!1===s.initial||s.initial===s.animate)&&!t.manuallyAnimateOnMount&&(p=!1),i=!1,p?e(l):Promise.resolve()}return{animateChanges:o,setActive:function(e,i){if(n[e].isActive===i)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,i)),n[e].isActive=i;let r=o(e);for(let t in n)n[t].protectedKeys={};return r},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=iD(),i=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();ed(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let ij=0;class iO extends iL{constructor(){super(...arguments),this.id=ij++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;let i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then(()=>
1{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let iF={x:!1,y:!1};function iB(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}let iI=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function iN(t){return{point:{x:t.pageX,y:t.pageY}}}let iW=t=>e=>iI(e)&&t(e,iN(e));function iH(t,e,n,i){return iB(t,e,iW(n),i)}function iU(t){return t.max-t.min}function iz(t,e,n,i=.5){t.origin=i,t.originPoint=A(e.min,e.max,t.origin),t.scale=iU(n)/iU(e),t.translate=A(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function i$(t,e,n,i){iz(t.x,e.x,n.x,i?i.originX:void 0),iz(t.y,e.y,n.y,i?i.originY:void 0)}function iY(t,e,n){t.min=n.min+e.min,t.max=t.min+iU(e)}function iX(t,e,n){t.min=e.min-n.min,t.max=t.min+iU(e)}function i_(t,e,n){iX(t.x,e.x,n.x),iX(t.y,e.y,n.y)}function iK(t){return[t("x"),t("y")]}let iq=({current:t})=>t?t.ownerDocument.defaultView:null,iG=(t,e)=>Math.abs(t-e);class iZ{constructor(t,e,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=i0(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){return Math.sqrt(iG(t.x,e.x)**2+iG(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!n)return;let{point:i}=t,{timestamp:r}=td;this.history.push({...i,timestamp:r});let{onStart:o,onMove:s}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=iJ(e,this.transformPagePoint),tc.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:n,onSessionEnd:i,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=i0("pointercancel"===t.type?this.lastMoveEventInfo:iJ(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!iI(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=i||window;let s=iJ(iN(t),this.transformPagePoint),{point:a}=s,{timestamp:l}=td;this.history=[{...a,timestamp:l}];let{onSessionStart:u}=e;u&&u(t,i0(s,this.history)),this.removeListeners=ns(iH(this.contextWindow,"pointermove",this.handlePointerMove),iH(this.contextWindow,"pointerup",this.handlePointerUp),iH(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),th(this.updatePoint)}}function iJ(t,e){return e?{point:e(t.point)}:t}function iQ(t,e){return{x:t.x-e.x,y:t.y-e.y}}function i0({point:t},e){return{point:t,delta:iQ(t,i1(e)),offset:iQ(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null,r=i1(t);for(;n>=0&&(i=t[n],!(r.timestamp-i.timestamp>na(.1)));)n--;if(!i)return{x:0,y:0};let o=nl(r.timestamp-i.timestamp);if(0===o)return{x:0,y:0};let s={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e,.1)}}function i1(t){return t[t.length-1]}function i2(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function i5(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function i4(t,e,n){return{min:i9(t,e),max:i9(t,n)}}function i9(t,e){return"number"==typeof t?t:t[e]||0}let i6=new WeakMap;class i3{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ea(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:n}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new iZ(t,{onSessionStart:t=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(iN(t).point)},onStart:(t,e)=>{var n;let{drag:i,dragPropagation:r,onDragStart:o}=this.getProps();if(i&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(n=i)||"y"===n?iF[n]?null:(iF[n]=!0,()=>{iF[n]=!1}):iF.x||iF.y?null:(iF.x=iF.y=!0,()=>{iF.x=iF.y=!1}),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iK(t=>{let e=this.getAxisMotionValue(t).get()||0;if(z.test(e)){let{projection:n}=this.visualElement;if(n&&n.layout){let i=n.layout.layoutBox[t];i&&(e=iU(i)*(parseFloat(e)/100))}}this.originPoint[t]=e}),o&&tc.postRender(()=>o(t,e)),nr(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:r,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:s}=e;if(i&&null===this.currentDirection){this.currentDirection=function(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}(s),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>iK(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,distanceThreshold:n,contextWindow:iq(this.visualElement)})}stop(t,e){let n=t||this.latestPointerEvent,i=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!n)return;let{velocity:o}=i;this.startAnimation(o);let{onDragEnd:s}=this.getProps();s&&tc.postRender(()=>s(n,i))}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:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){let{drag:i}=this.getProps();if(!n||!i8(t,i,this.currentDirection))return;let r=this.getAxisMotionValue(t),o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?A(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?A(n,t,i.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),r.set(o)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&e6(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=function(t,{top:e,left:n,bottom:i,right:r}){return{x:i2(t.x,n,r),y:i2(t.y,e,i)}}(n.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:i4(t,"left","right"),y:i4(t,"top","bottom")}}(e),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&iK(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!e6(e))return!1;let i=e.current;J(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let o=function(t,e,n){let i=O(t,n),{scroll:r}=e;return r&&(L(i.x,r.offset.x),L(i.y,r.offset.y)),i}(i,r.root,this.visualElement.getTransformPagePoint()),s={x:i5((t=r.layout.layoutBox).x,o.x),y:i5(t.y,o.y)};if(n){let t=n(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(s));this.hasMutatedConstraints=!!t,t&&(s=T(t))}return s}startAnimation(t){let{drag:e,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(iK(s=>{if(!i8(s,e,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?t[s]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(t,e){let n=this.getAxisMotionValue(t);return nr(this.visualElement,t),n.start(iS(t,n,0,e,this.visualElement,!1))}stopAnimation(){iK(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){iK(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps();return n[e]||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){iK(e=>{let{drag:n}=this.getProps();if(!i8(e,n,this.currentDirection))return;let{projection:i}=this.visualElement,r=this.getAxisMotionValue(e);if(i&&i.layout){let{min:n,max:o}=i.layout.layoutBox[e];r.set(t[e]-A(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!e6(e)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};iK(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let n=e.get();i[t]=function(t,e){let n=.5,i=iU(t),r=iU(e);return r>i?n=n0(e.min,e.max-i,t.min):i>r&&(n=n0(t.min,t.max-r,e.min)),B(0,1,n)}({min:n,max:n},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),iK(e=>{if(!i8(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:o}=this.constraints[e];n.set(A(r,o,i[e]))})}addListeners(){if(!this.visualElement.current)return;i6.set(this.visualElement,this);let t=iH(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:n=!0}
1=this.getProps();e&&n&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();e6(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),tc.read(e);let r=iB(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iK(e=>{let n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),i(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=.35,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:s}}}function i8(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}class i7 extends iL{constructor(t){super(t),this.removeGroupControls=to,this.removeListeners=to,this.controls=new i3(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||to}unmount(){this.removeGroupControls(),this.removeListeners()}}let rt=t=>(e,n)=>{t&&tc.postRender(()=>t(e,n))};class re extends iL{constructor(){super(...arguments),this.removePointerDownListener=to}onPointerDown(t){this.session=new iZ(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iq(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:rt(t),onStart:rt(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&tc.postRender(()=>i(t,e))}}}mount(){this.removePointerDownListener=iH(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 rn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ri(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let rr={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!$.test(t))return t;t=parseFloat(t)}let n=ri(t,e.target.x),i=ri(t,e.target.y);return`${n}% ${i}%`}},ro=!1;class rs extends r.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:r}=t;!function(t){for(let e in t)eM[e]=t[e],x(e)&&(eM[e].isCSSVariable=!0)}(rl),r&&(e.group&&e.group.add(r),n&&n.register&&i&&n.register(r),ro&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),rn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:n,drag:i,isPresent:r}=this.props,{projection:o}=n;return o&&(o.isPresent=r,ro=!0,i||t.layoutDependency!==e||void 0===e||t.isPresent!==r?o.willUpdate():this.safeToRemove(),t.isPresent===r||(r?o.promote():o.relegate()||tc.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ee.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ra(t){let[e,n]=function(t=!0){let e=(0,r.useContext)(e0);if(null===e)return[!0,null];let{isPresent:n,onExitComplete:i,register:o}=e,s=(0,r.useId)();(0,r.useEffect)(()=>{if(t)return o(s)},[t]);let a=(0,r.useCallback)(()=>t&&i&&i(s),[s,i,t]);return!n&&i?[!1,a]:[!0]}(),i=(0,r.useContext)(ez);return(0,eU.jsx)(rs,{...t,layoutGroup:i,switchLayoutGroup:(0,r.useContext)(e8),isPresent:e,safeToRemove:n})}let rl={borderRadius:{...rr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rr,borderTopRightRadius:rr,borderBottomLeftRadius:rr,borderBottomRightRadius:rr,boxShadow:{correct:(t,{treeScale:e,projectionDelta:n})=>{let i=tH.parse(t);if(i.length>5)return t;let r=tH.createTransformer(t),o=+("number"!=typeof i[0]),s=n.x.scale*e.x,a=n.y.scale*e.y;i[0+o]/=s,i[1+o]/=a;let l=A(s,a,.5);return"number"==typeof i[2+o]&&(i[2+o]/=l),"number"==typeof i[3+o]&&(i[3+o]/=l),r(i)}}};function ru(t){return"object"==typeof t&&null!==t}function rc(t){return ru(t)&&"ownerSVGElement"in t}let rh=(t,e)=>t.depth-e.depth;class rd{constructor(){this.children=[],this.isDirty=!1}add(t){t2(this.children,t),this.isDirty=!0}remove(t){t5(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rh),this.isDirty=!1,this.children.forEac
1h(t)}}let rf=["TopLeft","TopRight","BottomLeft","BottomRight"],rp=rf.length,rm=t=>"string"==typeof t?parseFloat(t):t,rv=t=>"number"==typeof t||$.test(t);function ry(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rg=rw(0,.5,nK),rx=rw(.5,.95,to);function rw(t,e,n){return i=>i<t?0:i>e?1:n(n0(t,e,i))}function rb(t,e){t.min=e.min,t.max=e.max}function rS(t,e){rb(t.x,e.x),rb(t.y,e.y)}function rT(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rA(t,e,n,i,r){return t-=e,t=i+1/n*(t-i),void 0!==r&&(t=i+1/r*(t-i)),t}function rP(t,e,[n,i,r],o,s){!function(t,e=0,n=1,i=.5,r,o=t,s=t){if(z.test(e)&&(e=parseFloat(e),e=A(s.min,s.max,e/100)-s.min),"number"!=typeof e)return;let a=A(o.min,o.max,i);t===o&&(a-=e),t.min=rA(t.min,e,n,a,r),t.max=rA(t.max,e,n,a,r)}(t,e[n],e[i],e[r],e.scale,o,s)}let rE=["x","scaleX","originX"],rC=["y","scaleY","originY"];function rM(t,e,n,i){rP(t.x,e,rE,n?n.x:void 0,i?i.x:void 0),rP(t.y,e,rC,n?n.y:void 0,i?i.y:void 0)}function rk(t){return 0===t.translate&&1===t.scale}function rR(t){return rk(t.x)&&rk(t.y)}function rD(t,e){return t.min===e.min&&t.max===e.max}function rL(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rV(t,e){return rL(t.x,e.x)&&rL(t.y,e.y)}function rj(t){return iU(t.x)/iU(t.y)}function rO(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class rF{constructor(){this.members=[]}add(t){t2(this.members,t),t.scheduleRender()}remove(t){if(t5(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let n=this.members.findIndex(e=>t===e);if(0===n)return!1;for(let t=n;t>=0;t--){let n=this.members[t];if(!1!==n.isPresent){e=n;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let rB={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},rI=["","X","Y","Z"],rN=0;function rW(t,e,n,i){let{latestValues:r}=e;r[t]&&(n[t]=r[t],e.setStaticValue(t,0),i&&(i[t]=0))}function rH({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(t={},n=e?.()){this.id=rN++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tl.value&&(rB.nodes=rB.calculatedTargetDeltas=rB.calculatedProjections=0),this.nodes.forEach(r$),this.nodes.forEach(rZ),this.nodes.forEach(rJ),this.nodes.forEach(rY),tl.addProjectionMetrics&&tl.addProjectionMetrics(rB)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new rd)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new t4),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=rc(e)&&!(rc(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:n,layout:i,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(i||n)&&(this.isLayoutDirty=!0),t){let n;let i=0,r=()=>this.root.updateBlockedByResize=!1;tc.read(()=>{i=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==i&&(i=t,this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){let n=t1.now(),i=({timestamp:r})=>{let o=r-n;o>=250&&(th(i),t(o-e))};return tc.setup(i,!0),()=>th(i)}
1(r,250),rn.hasAnimatedSinceResize&&(rn.hasAnimatedSinceResize=!1,this.nodes.forEach(rG)))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&r&&(n||i)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||r.getDefaultTransition()||r4,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!rV(this.targetLayout,i),u=!e&&n;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...nn(o,"layout"),onPlay:s,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||rG(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,this.eventHandlers.clear(),th(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(rQ),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:n}=e.options;if(!n)return;let i=n.props[e3];if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:t,layoutId:n}=e.options;window.MotionCancelOptimisedAnimation(i,"transform",tc,!(t||n))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)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(r_);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(rK);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(rq),this.nodes.forEach(rU),this.nodes.forEach(rz)):this.nodes.forEach(rK),this.clearAllSnapshots();let t=t1.now();td.delta=B(0,1e3/60,t-td.timestamp),td.timestamp=t,td.isProcessing=!0,tf.update.process(td),tf.preRender.process(td),tf.render.process(td),td.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ee.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rX),this.sharedNodes.forEach(r0)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tc.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tc.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||iU(this.snapshot.measuredBox.x)||iU(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ea(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=i(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!rR(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;t&&this.instance&&(e||C(this.latestValues)||o)&&(r(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let n=this.measurePageBox(),i=this.removeElementScroll(n);
1return t&&(i=this.removeTransform(i)),r3((e=i).x),r3(e.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return ea();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(r7))){let{scroll:t}=this.root;t&&(L(e.x,t.offset.x),L(e.y,t.offset.y))}return e}removeElementScroll(t){let e=ea();if(rS(e,t),this.scroll?.wasRoot)return e;for(let n=0;n<this.path.length;n++){let i=this.path[n],{scroll:r,options:o}=i;i!==this.root&&r&&o.layoutScroll&&(r.wasRoot&&rS(e,t),L(e.x,r.offset.x),L(e.y,r.offset.y))}return e}applyTransform(t,e=!1){let n=ea();rS(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&j(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),C(i.latestValues)&&j(n,i.latestValues)}return C(this.latestValues)&&j(n,this.latestValues),n}removeTransform(t){let e=ea();rS(e,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];if(!n.instance||!C(n.latestValues))continue;E(n.latestValues)&&n.updateSnapshot();let i=ea();rS(i,n.measurePageBox()),rM(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,i)}return C(this.latestValues)&&rM(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!==td.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==e;if(!(t||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:i,layoutId:r}=this.options;if(this.layout&&(i||r)){if(this.resolvedRelativeTargetAt=td.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ea(),this.relativeTargetOrigin=ea(),i_(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),rS(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=ea(),this.targetWithTransforms=ea()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,s,a;this.forceRelativeParentToResolveTarget(),o=this.target,s=this.relativeTarget,a=this.relativeParent.target,iY(o.x,s.x,a.x),iY(o.y,s.y,a.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rS(this.target,this.layout.layoutBox),D(this.target,this.targetDelta)):rS(this.target,this.layout.layoutBox);if(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=ea(),this.relativeTargetOrigin=ea(),i_(this.relativeTargetOrigin,this.target,t.target),rS(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tl.value&&rB.calculatedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||E(this.parent.latestValues)||M(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(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,n=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===td.timestamp&&(n=!1),n)return;let{layout:i,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||r))return;rS(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,s=this.treeScale.y;!function(t,e,n,i=!1){let r,o;let s=n.length;if(s){e.x=e.y=1;for(let a=0;a<s;a++){o=(r=n[a]).projectionDelta;let{visualElement:s}=r.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&j(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,D(t,o)),i&&C(r.latestValues)&&j(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=ea());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rT(this.prevProjectionDelta.x,this.projectionDelta.x),rT(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),i$(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===s&&rO(this.projectionDelta.x,this.prevProjectionDelta.x)&&rO(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),tl.value&&rB.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=eo(),this.projectionDelta=eo(),this.projectionDeltaWithTransform=eo()}setAnimationOrigin(t,e=!1){let n;let i=this.snapshot,r=i?i.latestValues:{},o={...this.latestValues},s=eo();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=ea(),l=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,h=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(r5));this.animationProgress=0,this.mixTargetDelta=e=>{let i=e/1e3;if(r1(s.x,t.x,i),r1(s.y,t.y,i),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,f,p,m,v;if(i_(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,m=a,v=i,r2(f.x,p.x,m.x,v),r2(f.y,p.y,m.y,v),n&&(u=this.relativeTarget,d=n,rD(u.x,d.x)&&rD(u.y,d.y)))this.isProjectionDirty=!1;n||(n=ea()),rS(n,this.relativeTarget)}l&&(this.animationValues=o,function(t,e,n,i,r,o){r?(t.opacity=A(0,n.opacity??1,rg(i)),t.opacityExit=A(e.opacity??1,0,rx(i))):o&&(t.opacity=A(e.opacity??1,n.opacity??1,i));for(let r=0;r<rp;r++){let o=`border${rf[r]}Radius`,s=ry(e,o),a=ry(n,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||rv(s)===rv(a)?(t[o]=Math.max(A(rm(s),rm(a),i),0),(z.test(a)||z.test(s))&&(t[o]+="%")):t[o]=a)}(e.rotate||n.rotate)&&(t.rotate=A(e.rotate||0,n.rotate||0,i))}(o,r,this.latestValues,i,h,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(th(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tc.update(()=>{rn.hasAnimatedSinceResize=!0,nu.layout++,this.motionValue||(this.motionValue=t8(0)),this.currentAnimation=function(t,e,n){let i=tQ(t)?t:t8(t);return i.start(iS("",i,e,n)),i.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{nu.layout--},onComplete:()=>{nu.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);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:n,layout:i,latestValues:r}=t;
1if(e&&n&&i){if(this!==t&&this.layout&&i&&r8(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||ea();let e=iU(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;let i=iU(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}rS(e,n),j(e,r),i$(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rF),this.sharedNodes.get(t).add(e);let n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){let i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;let i={};n.z&&rW("z",t,i,this.animationValues);for(let e=0;e<rI.length;e++)rW(`rotate${rI[e]}`,t,i,this.animationValues),rW(`skew${rI[e]}`,t,i,this.animationValues);for(let e in t.render(),i)t.setStaticValue(e,i[e]),this.animationValues&&(this.animationValues[e]=i[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=e1(e?.pointerEvents)||"",t.transform=n?n(this.latestValues,""):"none";return}let i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=e1(e?.pointerEvents)||""),this.hasProjected&&!C(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=i.animationValues||i.latestValues;this.applyTransformsToTarget();let o=function(t,e,n){let i="",r=t.x.translate/e.x,o=t.y.translate/e.y,s=n?.z||0;if((r||o||s)&&(i=`translate3d(${r}px, ${o}px, ${s}px) `),(1!==e.x||1!==e.y)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:o,skewX:s,skewY:a}=n;t&&(i=`perspective(${t}px) ${i}`),e&&(i+=`rotate(${e}deg) `),r&&(i+=`rotateX(${r}deg) `),o&&(i+=`rotateY(${o}deg) `),s&&(i+=`skewX(${s}deg) `),a&&(i+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(i+=`scale(${a}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);n&&(o=n(r,o)),t.transform=o;let{x:s,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*s.origin}% ${100*a.origin}% 0`,i.animationValues?t.opacity=i===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=i===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,eM){if(void 0===r[e])continue;let{correct:n,applyTo:s,isCSSVariable:a}=eM[e],l="none"===o?r[e]:n(r[e],i);if(s){let e=s.length;for(let n=0;n<e;n++)t[s[n]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=i===this?e1(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(r_),this.root.sharedNodes.clear()}}}function rU(t){t.updateLayout()}function rz(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:i}=t.layout,{animationType:r}=t.options,o=e.source!==t.layout.source;"size"===r?iK(t=>{let i=o?e.measuredBox[t]:e.layoutBox[t],r=iU(i);i.min=n[t].min,i.max=i.min+r}):r8(r,e.layoutBox,n)&&iK(i=>{let r=o?e.measuredBox[i]:e.layoutBox[i],s=iU(n[i]);r.max=r.min+s,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+s)});let s=eo();i$(s,n,e.layoutBox);let a=eo();o?i$(a,t.applyTransform(i,!0),e.measuredBox):i$(a,n,e.layoutBox);let l=!rR(s),u=!1;if(!t.resumeFrom){let i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:r,layout:o}=i;if(r&&o){let s=ea();i_(s,e.layoutBox,r.layoutBox);let a=ea();i_(a,n,o.layoutBox),rV(s,a)||(u=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=s,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function r$(t){tl.value&&rB.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rY(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rX(t){t.clearSnapshot()}function r_(t){t.clearMeasurements()}function rK(t){t.isLayoutDirty=!1}function rq(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function rG(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rZ(t){t.resolveTargetDelta()}function rJ(t){t.calcProjection()}function rQ(t){t.resetSkewAndRotation()}function r0(t){t.removeLeadSnapshot()}function r1(t,e,n){t.translate=A(e.translate,0,n),t.scale=A(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function r2(t,e,n,i){t.min=A(e.min,n.min,i),t.max=A(e.max,n.max,i)}function r5(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let r4={duration:.45,ease:[.4,0,.1,1]},r9=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),r6=r9("applewebkit/")&&!r9("chrome/")?Math.round:to;function r3(t){t.min=r6(t.min),t.max=r6(t.max)}function r8(t,e,n){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rj(e)-rj(n)))}function r7(t){return t!==t.root&&t.scroll?.wasRoot}let ot=rH({attachResizeListener:(t,e)=>iB(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),oe={current:void 0},on=rH({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!oe.current){let t=new ot({});t.mount(window),t.setOptions({layoutScroll:!0}),oe.current=t}return oe.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function oi(t,e){let n=function(t,e,n){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document,n=(void 0)??e.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t)}(t),i=new AbortController;return[n,{passive:!0,...e,signal:i.signal},()=>i.abort()]}function or(t){return!("touch"===t.pointerType||iF.x||iF.y)}function oo(t,e,n){let{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);let r=i["onHover"+n];r&&tc.postRender(()=>r(e,iN(e)))}class os extends iL{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,n={}){let[i,r,o]=oi(t,n),s=t=>{if(!or(t))return;let{target:n}=t,i=e(n,t);if("function"!=typeof i||!n)return;let o=t=>{or(t)&&(i(t),n.removeEventListener("pointerleave",o))};n.addEventListener("pointerleave",o,r)};return i.forEach(t=>{t.addEventListener("pointerenter",s,r)}),o}(t,(t,e)=>(oo(this.node,e,"Start"),t=>oo(this.node,t,"End"))))}unmount(){}}class oa extends iL{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=ns(iB(this.node.current,"focus",()=>this.onFocus()),iB(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let ol=(t,e)=>!!e&&(t===e||ol(t,e.parentElement)),ou=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),oc=new WeakSet;function oh(t){return e=>{"Enter"===e.key&&t(e)}}function od(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let of=(t,e)=>{let n=t.currentTarget;if(!n)return;let i=oh(()=>{if(oc.has(n))return;od(n,"down");let t=oh(()=>{od(n,"up")});n.addEventListener("keyup",t,e),n.addEventListener("blur",()=>od(n,"cancel"),e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function op(t){return iI(t)&&!(iF.x||iF.y)}function om(t,e,n){let{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);let r=i["onTap"+("End"===n?"":n)];r&&tc.postRender(()=>r(e,iN(e)))}class ov extends iL{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,n={}){let[i,r,o]=oi(t,n),s=t=>{let i=t.currentTarget;if(!op(t))return;oc.add(i);let o=e(i,t),s=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),oc.has(i)&&oc.delete(i),op(t)&&"function"==typeof o&&o(t,{success:e})},a=t=>{s(t,i===window||i===document||n.useGlobalTarget||ol(i,t.target))},l=t=>{s(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};
1return i.forEach(t=>{(n.useGlobalTarget?window:t).addEventListener("pointerdown",s,r),ru(t)&&"offsetHeight"in t&&(t.addEventListener("focus",t=>of(t,r)),!ou.has(t.tagName)&&-1===t.tabIndex&&!t.hasAttribute("tabindex")&&(t.tabIndex=0))}),o}(t,(t,e)=>(om(this.node,e,"Start"),(t,{success:e})=>om(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let oy=new WeakMap,og=new WeakMap,ox=t=>{let e=oy.get(t.target);e&&e(t)},ow=t=>{t.forEach(ox)},ob={some:0,all:1};class oS extends iL{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:r}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:ob[i]};return function(t,e,n){let i=function({root:t,...e}){let n=t||document;og.has(n)||og.set(n,{});let i=og.get(n),r=JSON.stringify(e);return i[r]||(i[r]=new IntersectionObserver(ow,{root:t,...e})),i[r]}(e);return oy.set(t,n),i.observe(t),()=>{oy.delete(t),i.unobserve(t)}}(this.node.current,o,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(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 n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}let oT=function(t,e){if("undefined"==typeof Proxy)return nt;let n=new Map,i=(n,i)=>nt(n,i,t,e);return new Proxy((t,e)=>i(t,e),{get:(r,o)=>"create"===o?i:(n.has(o)||n.set(o,nt(o,void 0,t,e)),n.get(o))})}({animation:{Feature:iV},exit:{Feature:iO},inView:{Feature:oS},tap:{Feature:ov},focus:{Feature:oa},hover:{Feature:os},pan:{Feature:re},drag:{Feature:i7,ProjectionNode:on,MeasureLayout:ra},layout:{ProjectionNode:on,MeasureLayout:ra}},(t,e)=>eH(t)?new eN(e):new eD(e,{allowProjection:t!==r.Fragment}))},3332:(t,e,n)=>{n.d(e,{A:()=>i});let i=(0,n(9946).A)("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]])},3655:(t,e,n)=>{n.d(e,{hO:()=>l,sG:()=>a});var i=n(2115),r=n(7650),o=n(9708),s=n(5155),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((t,e)=>{let n=i.forwardRef((t,n)=>{let{asChild:i,...r}=t,a=i?o.DX:e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(a,{...r,ref:n})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function l(t,e){t&&r.flushSync(()=>t.dispatchEvent(e))}},3786:(t,e,n)=>{n.d(e,{A:()=>i});
1let i=(0,n(9946).A)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},4186:(t,e,n)=>{n.d(e,{A:()=>i});let i=(0,n(9946).A)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},4357:(t,e,n)=>{n.d(e,{A:()=>i});let i=(0,n(9946).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},5040:(t,e,n)=>{n.d(e,{A:()=>i});let i=(0,n(9946).A)("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])},5196:(t,e,n)=>{n.d(e,{A:()=>i});let i=(0,n(9946).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},5339:(t,e,n)=>{n.d(e,{A:()=>i});let i=(0,n(9946).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},6474:(t,e,n)=>{n.d(e,{A:()=>i});let i=(0,n(9946).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},7434:(t,e,n)=>{n.d(e,{A:()=>i});let i=(0,n(9946).A)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},7580:(t,e,n)=>{n.d(e,{A:()=>i});let i=(0,n(9946).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},7863:(t,e,n)=>{n.d(e,{A:()=>i});let i=(0,n(9946).A)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},8550:(t,e,n)=>{n.d(e,{UC:()=>iu,YJ:()=>ih,In:()=>ia,q7:()=>ip,VF:()=>iv,p4:()=>im,JU:()=>id,ZL:()=>il,bL:()=>ir,wn:()=>ig,PP:()=>iy,wv:()=>ix,l9:()=>io,WT:()=>is,LM:()=>ic});var i,r,o=n(2115),s=n.t(o,2),a=n(7650);function l(t,[e,n]){return Math.min(n,Math.max(e,t))}function u(t,e,{checkForDefaultPrevented:n=!0}={}){return function(i){if(t?.(i),!1===n||!i.defaultPrevented)return e?.(i)}}var c=n(5155);function h(t,e=[]){let n=[],i=()=>{let e=n.map(t=>o.createContext(t));return function(n){let i=n?.[t]||e;return o.useMemo(()=>({[`__scope${t}`]:{...n,[t]:i}}),[n,i])}};return i.scopeName=t,[function(e,i){let r=o.createContext(i),s=n.length;n=[...n,i];let a=e=>{let{scope:n,children:i,...a}=e,l=n?.[t]?.[s]||r,u=o.useMemo(()=>a,Object.values(a));return(0,c.jsx)(l.Provider,{value:u,children:i})};return a.displayName=e+"Provider",[a,function(n,a){let l=a?.[t]?.[s]||r,u=o.useContext(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${e}\``)}]},function(...t){let e=t[0];if(1===t.length)return e;let n=()=>{let n=t.map(t=>({useScope:t(),scopeName:t.scopeName}));return function(t){let i=n.reduce((e,{useScope:n,scopeName:i})=>{let r=n(t)[`__scope${i}`];return{...e,...r}},{});return o.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return n.scopeName=e.scopeName,n}(i,...e)]}var d=n(6101),f=n(9708),p=o.createContext(void 0),m=n(3655);function v(t){let e=o.useRef(t);return o.useEffect(()=>{e.current=t}),o.useMemo(()=>(...t)=>e.current?.(...t),[])}var y="dismissableLayer.update",g=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),x=o.forwardRef((t,e)=>{var n,r;let{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:h,onInteractOutside:f,onDismiss:p,...x}=t,S=o.useContext(g),[T,A]=o.useState(null),P=null!==(r=null==T?void 0:T.ownerDocument)&&void 0!==r?r:null===(n=globalThis)||void 0===n?void 0:n.document,[,E]=o.useState({}),C=(0,d.s)(e,t=>A(t)),M=Array.from(S.layers),[k]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),R=M.indexOf(k),D=T?M.indexOf(T):-1,L=S.layersWithOutsidePointerEventsDisabled.size>0,V=D>=R,j=function(t){var e;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(e=globalThis)||void 0===e?void 0:e.document,i=v(t),r=o.useRef(!1),s=o.useRef(()=>{});return o.useEffect(()=>{let t=t=>{if(t.target&&!r.current){let e=function(){b("dismissableLayer.pointerDownOutside",i,r,{discrete:!0})},r={originalEvent:t};
1"touch"===t.pointerType?(n.removeEventListener("click",s.current),s.current=e,n.addEventListener("click",s.current,{once:!0})):e()}else n.removeEventListener("click",s.current);r.current=!1},e=window.setTimeout(()=>{n.addEventListener("pointerdown",t)},0);return()=>{window.clearTimeout(e),n.removeEventListener("pointerdown",t),n.removeEventListener("click",s.current)}},[n,i]),{onPointerDownCapture:()=>r.current=!0}}(t=>{let e=t.target,n=[...S.branches].some(t=>t.contains(e));!V||n||(null==l||l(t),null==f||f(t),t.defaultPrevented||null==p||p())},P),O=function(t){var e;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(e=globalThis)||void 0===e?void 0:e.document,i=v(t),r=o.useRef(!1);return o.useEffect(()=>{let t=t=>{t.target&&!r.current&&b("dismissableLayer.focusOutside",i,{originalEvent:t},{discrete:!1})};return n.addEventListener("focusin",t),()=>n.removeEventListener("focusin",t)},[n,i]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(t=>{let e=t.target;[...S.branches].some(t=>t.contains(e))||(null==h||h(t),null==f||f(t),t.defaultPrevented||null==p||p())},P);return!function(t,e=globalThis?.document){let n=v(t);o.useEffect(()=>{let t=t=>{"Escape"===t.key&&n(t)};return e.addEventListener("keydown",t,{capture:!0}),()=>e.removeEventListener("keydown",t,{capture:!0})},[n,e])}(t=>{D===S.layers.size-1&&(null==a||a(t),!t.defaultPrevented&&p&&(t.preventDefault(),p()))},P),o.useEffect(()=>{if(T)return s&&(0===S.layersWithOutsidePointerEventsDisabled.size&&(i=P.body.style.pointerEvents,P.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(T)),S.layers.add(T),w(),()=>{s&&1===S.layersWithOutsidePointerEventsDisabled.size&&(P.body.style.pointerEvents=i)}},[T,P,s,S]),o.useEffect(()=>()=>{T&&(S.layers.delete(T),S.layersWithOutsidePointerEventsDisabled.delete(T),w())},[T,S]),o.useEffect(()=>{let t=()=>E({});return document.addEventListener(y,t),()=>document.removeEventListener(y,t)},[]),(0,c.jsx)(m.sG.div,{...x,ref:C,style:{pointerEvents:L?V?"auto":"none":void 0,...t.style},onFocusCapture:u(t.onFocusCapture,O.onFocusCapture),onBlurCapture:u(t.onBlurCapture,O.onBlurCapture),onPointerDownCapture:u(t.onPointerDownCapture,j.onPointerDownCapture)})});function w(){let t=new CustomEvent(y);document.dispatchEvent(t)}function b(t,e,n,i){let{discrete:r}=i,o=n.originalEvent.target,s=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&o.addEventListener(t,e,{once:!0}),r?(0,m.hO)(o,s):o.dispatchEvent(s)}x.displayName="DismissableLayer",o.forwardRef((t,e)=>{let n=o.useContext(g),i=o.useRef(null),r=(0,d.s)(e,i);return o.useEffect(()=>{let t=i.current;if(t)return n.branches.add(t),()=>{n.branches.delete(t)}},[n.branches]),(0,c.jsx)(m.sG.div,{...t,ref:r})}).displayName="DismissableLayerBranch";var S=0;function T(){let t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var A="focusScope.autoFocusOnMount",P="focusScope.autoFocusOnUnmount",E={bubbles:!1,cancelable:!0},C=o.forwardRef((t,e)=>{let{loop:n=!1,trapped:i=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...a}=t,[l,u]=o.useState(null),h=v(r),f=v(s),p=o.useRef(null),y=(0,d.s)(e,t=>u(t)),g=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(i){let t=function(t){if(g.paused||!l)return;let e=t.target;l.contains(e)?p.current=e:R(p.current,{select:!0})},e=function(t){if(g.paused||!l)return;let e=t.relatedTarget;null===e||l.contains(e)||R(p.current,{select:!0})};document.addEventListener("focusin",t),document.addEventListener("focusout",e);let n=new MutationObserver(function(t){if(document.activeElement===document.body)for(let e of t)e.removedNodes.length>0&&R(l)});return l&&n.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",t),document.removeEventListener("focusout",e),n.disconnect()}}},[i,l,g.paused]),o.useEffect(()=>{if(l){D.add(g);let t=document.activeElement;if(!l.contains(t)){let e=new CustomEvent(A,E);l.addEventListener(A,h),l.dispatchEvent(e),e.defaultPrevented||(function(t){let{select:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let i of t)if(R(i,{select:e}),document.activeElement!==n)return}(M(l).filter(t=>"A"!==t.tagName),{select:!0}),document.activeElement===t&&R(l))}return()=>{l.removeEventListener(A,h),setTimeout(()=>{let e=new CustomEvent(P,E);l.addEventListener(P,f),l.dispatchEvent(e),e.defaultPrevented||R(null!=t?t:document.body,{select:!0}),l.removeEventListener(P,f),D.remove(g)},0)}}},[l,h,f,g]);let x=o.useCallback(t=>{if(!n&&!i||g.paused)return;let e="Tab"===t.key&&!t.altKey&&!t.ctrlKey&&!t.metaKey,r=document.activeElement;if(e&&r){let e=t.currentTarget,[i,o]=function(t){let e=M(t);return[k(e,t),k(e.reverse(),t)]}(e);i&&o?t.shiftKey||r!==o?t.shiftKey&&r===i&&(t.preventDefault(),n&&R(o,{select:!0})):(t.preventDefault(),n&&R(i,{select:!0})):r===e&&t.preventDefault()}},[n,i,g.paused]);return(0,c.jsx)(m.sG.div,{tabIndex:-1,...a,ref:y,onKeyDown:x})});function M(t){let e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{let e="INPUT"===t.tagName&&"hidden"===t.type;return t.disabled||t.hidden||e?NodeFilter.FILTER_SKIP:t.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function k(t,e){for(let n of t)if(!function(t,e){let{upTo:n}=e;if("hidden"===getComputedStyle(t).visibility)return!0;for(;t&&(void 0===n||t!==n);){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(n,{upTo:e}))return n}function R(t){let{select:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t&&t.focus){var n;let i=document.activeElement;t.focus({preventScroll:!0}),t!==i&&(n=t)instanceof HTMLInputElement&&"select"in n&&e&&t.select()}}C.displayName="FocusScope";var D=function(){let t=[];return{add(e){let n=t[0];e!==n&&(null==n||n.pause()),(t=L(t,e)).unshift(e)},remove(e){var n;null===(n=(t=L(t,e))[0])||void 0===n||n.resume()}}}();function L(t,e){let n=[...t],i=n.indexOf(e);return -1!==i&&n.splice(i,1),n}var V=globalThis?.document?o.useLayoutEffect:()=>{},j=s["useId".toString()]||(()=>void 0),O=0;function F(t){let[e,n]=o.useState(j());return V(()=>{t||n(t=>t??String(O++))},[t]),t||(e?`radix-${e}
1`:"")}let B=["top","right","bottom","left"],I=Math.min,N=Math.max,W=Math.round,H=Math.floor,U=t=>({x:t,y:t}),z={left:"right",right:"left",bottom:"top",top:"bottom"},$={start:"end",end:"start"};function Y(t,e){return"function"==typeof t?t(e):t}function X(t){return t.split("-")[0]}function _(t){return t.split("-")[1]}function K(t){return"x"===t?"y":"x"}function q(t){return"y"===t?"height":"width"}let G=new Set(["top","bottom"]);function Z(t){return G.has(X(t))?"y":"x"}function J(t){return t.replace(/start|end/g,t=>$[t])}let Q=["left","right"],tt=["right","left"],te=["top","bottom"],tn=["bottom","top"];function ti(t){return t.replace(/left|right|bottom|top/g,t=>z[t])}function tr(t){return"number"!=typeof t?{top:0,right:0,bottom:0,left:0,...t}:{top:t,right:t,bottom:t,left:t}}function to(t){let{x:e,y:n,width:i,height:r}=t;return{width:i,height:r,top:n,left:e,right:e+i,bottom:n+r,x:e,y:n}}function ts(t,e,n){let i,{reference:r,floating:o}=t,s=Z(e),a=K(Z(e)),l=q(a),u=X(e),c="y"===s,h=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;switch(u){case"top":i={x:h,y:r.y-o.height};break;case"bottom":i={x:h,y:r.y+r.height};break;case"right":i={x:r.x+r.width,y:d};break;case"left":i={x:r.x-o.width,y:d};break;default:i={x:r.x,y:r.y}}switch(_(e)){case"start":i[a]-=f*(n&&c?-1:1);break;case"end":i[a]+=f*(n&&c?-1:1)}return i}let ta=async(t,e,n)=>{let{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await (null==s.isRTL?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:c,y:h}=ts(u,i,l),d=i,f={},p=0;for(let n=0;n<a.length;n++){let{name:o,fn:m}=a[n],{x:v,y:y,data:g,reset:x}=await m({x:c,y:h,initialPlacement:i,placement:d,strategy:r,middlewareData:f,re
1cts:u,platform:s,elements:{reference:t,floating:e}});c=null!=v?v:c,h=null!=y?y:h,f={...f,[o]:{...f[o],...g}},x&&p<=50&&(p++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(u=!0===x.rects?await s.getElementRects({reference:t,floating:e,strategy:r}):x.rects),{x:c,y:h}=ts(u,d,l)),n=-1)}return{x:c,y:h,placement:d,strategy:r,middlewareData:f}};async function tl(t,e){var n;void 0===e&&(e={});let{x:i,y:r,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:d=!1,padding:f=0}=Y(e,t),p=tr(f),m=a[d?"floating"===h?"reference":"floating":h],v=to(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===h?{x:i,y:r,width:s.floating.width,height:s.floating.height}:s.reference,g=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),x=await (null==o.isElement?void 0:o.isElement(g))&&await (null==o.getScale?void 0:o.getScale(g))||{x:1,y:1},w=to(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:g,strategy:l}):y);return{top:(v.top-w.top+p.top)/x.y,bottom:(w.bottom-v.bottom+p.bottom)/x.y,left:(v.left-w.left+p.left)/x.x,right:(w.right-v.right+p.right)/x.x}}function tu(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function tc(t){return B.some(e=>t[e]>=0)}let th=new Set(["left","top"]);async function td(t,e){let{placement:n,platform:i,elements:r}=t,o=await (null==i.isRTL?void 0:i.isRTL(r.floating)),s=X(n),a=_(n),l="y"===Z(n),u=th.has(s)?-1:1,c=o&&l?-1:1,h=Y(e,t),{mainAxis:d,crossAxis:f,alignmentAxis:p}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&"number"==typeof p&&(f="end"===a?-1*p:p),l?{x:f*c,y:d*u}:{x:d*u,y:f*c}}function tf(){return"undefined"!=typeof window}function tp(t){return ty(t)?(t.nodeName||"").toLowerCase():"#document"}function tm(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function tv(t){var e;return null==(e=(ty(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function ty(t){return!!tf()&&(t instanceof Node||t instanceof tm(t).Node)}function tg(t){return!!tf()&&(t instanceof Element||t instanceof tm(t).Element)}function tx(t){return!!tf()&&(t instanceof HTMLElement||t instanceof tm(t).HTMLElement)}function tw(t){return!!tf()&&"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof tm(t).ShadowRoot)}let tb=new Set(["inline","contents"]);function tS(t){let{overflow:e,overflowX:n,overflowY:i,display:r}=tV(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!tb.has(r)}let tT=new Set(["table","td","th"]),tA=[":popover-open",":modal"];function tP(t){return tA.some(e=>{try{return t.matches(e)}catch(t){return!1}})}let tE=["transform","translate","scale","rotate","perspective"],tC=["transform","translate","scale","rotate","perspective","filter"],tM=["paint","layout","strict","content"];function tk(t){let e=tR(),n=tg(t)?tV(t):t;return tE.some(t=>!!n[t]&&"none"!==n[t])||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||tC.some(t=>(n.willChange||"").includes(t))||tM.some(t=>(n.contain||"").includes(t))}function tR(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let tD=new Set(["html","body","#document"]);function tL(t){return tD.has(tp(t))}function tV(t){return tm(t).getComputedStyle(t)}function tj(t){return tg(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function tO(t){if("html"===tp(t))return t;let e=t.assignedSlot||t.parentNode||tw(t)&&t.host||tv(t);return tw(e)?e.host:e}function tF(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);let r=function t(e){let n=tO(e);return tL(n)?e.ownerDocument?e.ownerDocument.body:e.body:tx(n)&&tS(n)?n:t(n)}(t),o=r===(null==(i=t.ownerDocument)?void 0:i.body),s=tm(r);if(o){let t=tB(s);
1return e.concat(s,s.visualViewport||[],tS(r)?r:[],t&&n?tF(t):[])}return e.concat(r,tF(r,[],n))}function tB(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function tI(t){let e=tV(t),n=parseFloat(e.width)||0,i=parseFloat(e.height)||0,r=tx(t),o=r?t.offsetWidth:n,s=r?t.offsetHeight:i,a=W(n)!==o||W(i)!==s;return a&&(n=o,i=s),{width:n,height:i,$:a}}function tN(t){return tg(t)?t:t.contextElement}function tW(t){let e=tN(t);if(!tx(e))return U(1);let n=e.getBoundingClientRect(),{width:i,height:r,$:o}=tI(e),s=(o?W(n.width):n.width)/i,a=(o?W(n.height):n.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}let tH=U(0);function tU(t){let e=tm(t);return tR()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:tH}function tz(t,e,n,i){var r;void 0===e&&(e=!1),void 0===n&&(n=!1);let o=t.getBoundingClientRect(),s=tN(t),a=U(1);e&&(i?tg(i)&&(a=tW(i)):a=tW(t));let l=(void 0===(r=n)&&(r=!1),i&&(!r||i===tm(s))&&r)?tU(s):U(0),u=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,h=o.width/a.x,d=o.height/a.y;if(s){let t=tm(s),e=i&&tg(i)?tm(i):i,n=t,r=tB(n);for(;r&&i&&e!==n;){let t=tW(r),e=r.getBoundingClientRect(),i=tV(r),o=e.left+(r.clientLeft+parseFloat(i.paddingLeft))*t.x,s=e.top+(r.clientTop+parseFloat(i.paddingTop))*t.y;u*=t.x,c*=t.y,h*=t.x,d*=t.y,u+=o,c+=s,r=tB(n=tm(r))}}return to({width:h,height:d,x:u,y:c})}function t$(t,e){let n=tj(t).scrollLeft;return e?e.left+n:tz(tv(t)).left+n}function tY(t,e,n){void 0===n&&(n=!1);let i=t.getBoundingClientRect();return{x:i.left+e.scrollLeft-(n?0:t$(t,i)),y:i.top+e.scrollTop}}let tX=new Set(["absolute","fixed"]);function t_(t,e,n){let i;if("viewport"===e)i=function(t,e){let n=tm(t),i=tv(t),r=n.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;let t=tR();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a,y:l}}(t,n);else if("document"===e)i=function(t){let e=tv(t),n=tj(t),i=t.ownerDocument.body,r=N(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),o=N(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-n.scrollLeft+t$(t),a=-n.scrollTop;return"rtl"===tV(i).direction&&(s+=N(e.clientWidth,i.clientWidth)-r),{width:r,height:o,x:s,y:a}}(tv(t));else if(tg(e))i=function(t,e){let n=tz(t,!0,"fixed"===e),i=n.top+t.clientTop,r=n.left+t.clientLeft,o=tx(t)?tW(t):U(1),s=t.clientWidth*o.x,a=t.clientHeight*o.y;return{width:s,height:a,x:r*o.x,y:i*o.y}}(e,n);else{let n=tU(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return to(i)}function tK(t){return"static"===tV(t).position}function tq(t,e){if(!tx(t)||"fixed"===tV(t).position)return null;if(e)return e(t);let n=t.offsetParent;return tv(t)===n&&(n=n.ownerDocument.body),n}function tG(t,e){var n;let i=tm(t);if(tP(t))return i;if(!tx(t)){let e=tO(t);for(;e&&!tL(e);){if(tg(e)&&!tK(e))return e;e=tO(e)}return i}let r=tq(t,e);for(;r&&(n=r,tT.has(tp(n)))&&tK(r);)r=tq(r,e);return r&&tL(r)&&tK(r)&&!tk(r)?i:r||function(t){let e=tO(t);for(;tx(e)&&!tL(e);){if(tk(e))return e;if(tP(e))break;e=tO(e)}return null}(t)||i}let tZ=async function(t){let e=this.getOffsetParent||tG,n=this.getDimensions,i=await n(t.floating);return{reference:function(t,e,n){let i=tx(e),r=tv(e),o="fixed"===n,s=tz(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=U(0);if(i||!i&&!o){if(("body"!==tp(e)||tS(r))&&(a=tj(e)),i){let t=tz(e,!0,o,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=t$(r))}o&&!i&&r&&(l.x=t$(r));let u=!r||i||o?U(0):tY(r,a);return{x:s.left+a.scrollLeft-l.x-u.x,y:s.top+a.scrollTop-l.y-u.y,width:s.width,height:s.height}}(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},tJ={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:r}=t,o="fixed"===r,s=tv(i),a=!!e&&tP(e.floating);if(i===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=U(1),c=U(0),h=tx(i);if((h||!h&&!o)&&(("body"!==tp(i)||tS(s))&&(l=tj(i)),tx(i))){let t=tz(i);u=tW(i),c.x=t.x+i.clientLeft,c.y=t.y+i.clientTop}let d=!s||h||o?U(0):tY(s,l,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-l.scrollTop*u.y+c.y+d.y}},getDocumentElement:tv,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:r}=t,o=[..."clippingAncestors"===n?tP(e)?[]:function(t,e){let n=e.get(t);if(n)return n;let i=tF(t,[],!1).filter(t=>tg(t)&&"body"!==tp(t)),r=null,o="fixed"===tV(t).position,s=o?tO(t):t;for(;tg(s)&&!tL(s);){let e=tV(s),n=tk(s);n||"fixed"!==e.position||(r=null),(o?!n&&!r:!n&&"static"===e.position&&!!r&&tX.has(r.position)||tS(s)&&!n&&function t(e,n){let i=tO(e);return!(i===n||!tg(i)||tL(i))&&("fixed"===tV(i).position||t(i,n))}(t,s))?i=i.filter(t=>t!==s):r=e,s=tO(s)}return e.set(t,i),i}(e,this._c):[].concat(n),i],s=o[0],a=o.reduce((t,n)=>{let i=t_(e,n,r);return t.top=N(i.top,t.top),t.right=I(i.right,t.right),t.bottom=I(i.bottom,t.bottom),t.left=N(i.left,t.left),t},t_(e,s,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:tG,getElementRects:tZ,getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){let{width:e,height:n}=tI(t);return{width:e,height:n}},getScale:tW,isElement:tg,isRTL:function(t){return"rtl"===tV(t).direction}};function tQ(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}let t0=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:i,placement:r,rects:o,platform:s,elements:a,middlewareData:l}=e,{element:u,padding:c=0}=Y(t,e)||{};if(null==u)return{};let h=tr(c),d={x:n,y:i},f=K(Z(r)),p=q(f),m=await s.getDimensions(u),v="y"===f,y=v?"clientHeight":"clientWidth",g=o.reference[p]+o.reference[f]-d[f]-o.floating[p],x=d[f]-o.reference[f],w=await (null==s.getOffsetParent?void 0:s.getOffsetParent(u)),b=w?w[y]:0;b&&await (null==s.isElement?void 0:s.isElement(w))||(b=a.floating[y]||o.floating[p]);let S=b/2-m[p]/2-1,T=I(h[v?"top":"left"],S),A=I(h[v?"bottom":"right"],S),P=b-m[p]-A,E=b/2-m[p]/2+(g/2-x/2),C=N(T,I(E,P)),M=!l.arrow&&null!=_(r)&&E!==C&&o.reference[p]/2-(E<T?T:A)-m[p]/2<0,k=M?E<T?E-T:E-P:0;return{[f]:d[f]+k,data:{[f]:C,centerOffset:E-C-k,...M&&{alignmentOffset:k}},reset:M}}}),t1=(t,e,n)=>{let i=new Map,r={platform:tJ,...n},o={...r.platform,_c:i};return ta(t,e,{...r,platform:o})};var t2="undefined"!=typeof document?o.useLayoutEffect:function(){};function t5(t,e){let n,i,r;if(t===e)return!0;
1if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if((n=t.length)!==e.length)return!1;for(i=n;0!=i--;)if(!t5(t[i],e[i]))return!1;return!0}if((n=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(i=n;0!=i--;)if(!({}).hasOwnProperty.call(e,r[i]))return!1;for(i=n;0!=i--;){let n=r[i];if(("_owner"!==n||!t.$$typeof)&&!t5(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}function t4(t){return"undefined"==typeof window?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function t9(t,e){let n=t4(t);return Math.round(e*n)/n}function t6(t){let e=o.useRef(t);return t2(()=>{e.current=t}),e}let t3=t=>({name:"arrow",options:t,fn(e){let{element:n,padding:i}="function"==typeof t?t(e):t;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?t0({element:n.current,padding:i}).fn(e):{}:n?t0({element:n,padding:i}).fn(e):{}}}),t8=(t,e)=>({...function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,i;let{x:r,y:o,placement:s,middlewareData:a}=e,l=await td(e,t);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(i=a.arrow)&&i.alignmentOffset?{}:{x:r+l.x,y:o+l.y,data:{...l,placement:s}}}}}(t),options:[t,e]}),t7=(t,e)=>({...function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:i,placement:r}=e,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=Y(t,e),u={x:n,y:i},c=await tl(e,l),h=Z(X(r)),d=K(h),f=u[d],p=u[h];if(o){let t="y"===d?"top":"left",e="y"===d?"bottom":"right",n=f+c[t],i=f-c[e];f=N(n,I(f,i))}if(s){let t="y"===h?"top":"left",e="y"===h?"bottom":"right",n=p+c[t],i=p-c[e];p=N(n,I(p,i))}let m=a.fn({...e,[d]:f,[h]:p});return{...m,data:{x:m.x-n,y:m.y-i,enabled:{[d]:o,[h]:s}}}}}}(t),options:[t,e]}),et=(t,e)=>({...function(t){return void 0===t&&(t={}),{options:t,fn(e){let{x:n,y:i,placement:r,rects:o,middlewareData:s}=e,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Y(t,e),c={x:n,y:i},h=Z(r),d=K(h),f=c[d],p=c[h],m=Y(a,e),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let t="y"===d?"height":"width",e=o.reference[d]-o.floating[t]+v.mainAxis,n=o.reference[d]+o.reference[t]-v.mainAxis;f<e?f=e:f>n&&(f=n)}if(u){var y,g;let t="y"===d?"width":"height",e=th.has(X(r)),n=o.reference[h]-o.floating[t]+(e&&(null==(y=s.offset)?void 0:y[h])||0)+(e?0:v.crossAxis),i=o.reference[h]+o.reference[t]+(e?0:(null==(g=s.offset)?void 0:g[h])||0)-(e?v.crossAxis:0);p<n?p=n:p>i&&(p=i)}return{[d]:f,[h]:p}}}}(t),options:[t,e]}),ee=(t,e)=>({...function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i,r,o,s;let{placement:a,middlewareData:l,rects:u,initialPlacement:c,platform:h,elements:d}=e,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...x}=Y(t,e);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};let w=X(a),b=Z(c),S=X(c)===c,T=await (null==h.isRTL?void 0:h.isRTL(d.floating)),A=m||(S||!g?[ti(c)]:function(t){let e=ti(t);return[J(t),e,J(e)]}(c)),P="none"!==y;!m&&P&&A.push(...function(t,e,n,i){let r=_(t),o=function(t,e,n){switch(t){case"top":case"bottom":if(n)return e?tt:Q;return e?Q:tt;case"left":case"right":return e?te:tn;default:return[]}}(X(t),"start"===n,i);return r&&(o=o.map(t=>t+"-"+r),e&&(o=o.concat(o.map(J)))),o}(c,g,y,T));let E=[c,...A],C=await tl(e,x),M=[],k=(null==(i=l.flip)?void 0:i.overflows)||[];if(f&&M.push(C[w]),p){let t=function(t,e,n){void 0===n&&(n=!1);let i=_(t),r=K(Z(t)),o=q(r),s="x"===r?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=ti(s)),[s,ti(s)]}(a,u,T);M.push(C[t[0]],C[t[1]])}if(k=[...k,{placement:a,overflows:M}],!M.every(t=>t<=0)){let t=((null==(r=l.flip)?void 0:r.index)||0)+1,e=E[t];if(e&&("alignment"!==p||b===Z(e)||k.every(t=>t.overflows[0]>0&&Z(t.placement)===b)))return{data:{index:t,overflows:k},reset:{placement:e}};let n=null==(o=k.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:o.placement;if(!n)switch(v){case"bestFit":{let t=null==(s=k.filter(t=>{if(P){let e=Z(t.placement);return e===b||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:s[0];t&&(n=t);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}}(t),options:[t,e]}),en=(t,e)=>({...function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,i;let r,o;let{placement:s,rects:a,platform:l,elements:u}=e,{apply:c=()=>{},...h}=Y(t,e),d=await tl(e,h),f=X(s),p=_(s),m="y"===Z(s),{width:v,height:y}=a.floating;
1"top"===f||"bottom"===f?(r=f,o=p===(await (null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(o=f,r="end"===p?"top":"bottom");let g=y-d.top-d.bottom,x=v-d.left-d.right,w=I(y-d[r],g),b=I(v-d[o],x),S=!e.middlewareData.shift,T=w,A=b;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(A=x),null!=(i=e.middlewareData.shift)&&i.enabled.y&&(T=g),S&&!p){let t=N(d.left,0),e=N(d.right,0),n=N(d.top,0),i=N(d.bottom,0);m?A=v-2*(0!==t||0!==e?t+e:N(d.left,d.right)):T=y-2*(0!==n||0!==i?n+i:N(d.top,d.bottom))}await c({...e,availableWidth:A,availableHeight:T});let P=await l.getDimensions(u.floating);return v!==P.width||y!==P.height?{reset:{rects:!0}}:{}}}}(t),options:[t,e]}),ei=(t,e)=>({...function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){let{rects:n}=e,{strategy:i="referenceHidden",...r}=Y(t,e);switch(i){case"referenceHidden":{let t=tu(await tl(e,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:tc(t)}}}case"escaped":{let t=tu(await tl(e,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:tc(t)}}}default:return{}}}}}(t),options:[t,e]}),er=(t,e)=>({...t3(t),options:[t,e]});var eo=o.forwardRef((t,e)=>{let{children:n,width:i=10,height:r=5,...o}=t;return(0,c.jsx)(m.sG.svg,{...o,ref:e,width:i,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:(0,c.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eo.displayName="Arrow";var es="Popper",[ea,el]=h(es),[eu,ec]=ea(es),eh=t=>{let{__scopePopper:e,children:n}=t,[i,r]=o.useState(null);return(0,c.jsx)(eu,{scope:e,anchor:i,onAnchorChange:r,children:n})};eh.displayName=es;var ed="PopperAnchor",ef=o.forwardRef((t,e)=>{let{__scopePopper:n,virtualRef:i,...r}=t,s=ec(ed,n),a=o.useRef(null),l=(0,d.s)(e,a);return o.useEffect(()=>{s.onAnchorChange((null==i?void 0:i.current)||a.current)}),i?null:(0,c.jsx)(m.sG.div,{...r,ref:l})});ef.displayName=ed;var ep="PopperContent",[em,ev]=ea(ep),ey=o.forwardRef((t,e)=>{var n,i,r,s,l,u,h,f;let{__scopePopper:p,side:y="bottom",sideOffset:g=0,align:x="center",alignOffset:w=0,arrowPadding:b=0,avoidCollisions:S=!0,collisionBoundary:T=[],collisionPadding:A=0,sticky:P="partial",hideWhenDetached:E=!1,updatePositionStrategy:C="optimized",onPlaced:M,...k}=t,R=ec(ep,p),[D,L]=o.useState(null),j=(0,d.s)(e,t=>L(t)),[O,F]=o.useState(null),B=function(t){let[e,n]=o.useState(void 0);return V(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});let e=new ResizeObserver(e=>{let i,r;if(!Array.isArray(e)||!e.length)return;let o=e[0];if("borderBoxSize"in o){let t=o.borderBoxSize,e=Array.isArray(t)?t[0]:t;i=e.inlineSize,r=e.blockSize}else i=t.offsetWidth,r=t.offsetHeight;n({width:i,height:r})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}n(void 0)},[t]),e}(O),W=null!==(h=null==B?void 0:B.width)&&void 0!==h?h:0,U=null!==(f=null==B?void 0:B.height)&&void 0!==f?f:0,z="number"==typeof A?A:{top:0,right:0,bottom:0,left:0,...A},$=Array.isArray(T)?T:[T],Y=$.length>0,X={padding:z,boundary:$.filter(eb),altBoundary:Y},{refs:_,floatingStyles:K,placement:q,isPositioned:G,middlewareData:Z}=function(t){void 0===t&&(t={});let{placement:e="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:s,floating:l}={},transform:u=!0,whileElementsMounted:c,open:h}=t,[d,f]=o.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[p,m]=o.useState(i);t5(p,i)||m(i);let[v,y]=o.useState(null),[g,x]=o.useState(null),w=o.useCallback(t=>{t!==A.current&&(A.current=t,y(t))}
vendor: 1,110 bytes, line 1
1,[]),b=o.useCallback(t=>{t!==P.current&&(P.current=t,x(t))},[]),S=s||v,T=l||g,A=o.useRef(null),P=o.useRef(null),E=o.useRef(d),C=null!=c,M=t6(c),k=t6(r),R=t6(h),D=o.useCallback(()=>{if(!A.current||!P.current)return;let t={placement:e,strategy:n,middleware:p};k.current&&(t.platform=k.current),t1(A.current,P.current,t).then(t=>{let e={...t,isPositioned:!1!==R.current};L.current&&!t5(E.current,e)&&(E.current=e,a.flushSync(()=>{f(e)}))})},[p,e,n,k,R]);t2(()=>{!1===h&&E.current.isPositioned&&(E.current.isPositioned=!1,f(t=>({...t,isPositioned:!1})))},[h]);let L=o.useRef(!1);t2(()=>(L.current=!0,()=>{L.current=!1}),[]),t2(()=>{if(S&&(A.current=S),T&&(P.current=T),S&&T){if(M.current)return M.current(S,T,D);D()}},[S,T,D,M,C]);let V=o.useMemo(()=>({reference:A,floating:P,setReference:w,setFloating:b}),[w,b]),j=o.useMemo(()=>({reference:S,floating:T}),[S,T]),O=o.useMemo(()=>{let t={position:n,left:0,top:0};if(!j.floating)return t;let e=t9(j.floating,d.x),i=t9(j.floating,d.y);return u?{...t,transform:"translate("+e+"px, "+i+"px)",...t4(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:e,top:i}}
1,[n,u,j.floating,d.x,d.y]);return o.useMemo(()=>({...d,update:D,refs:V,elements:j,floatingStyles:O}),[d,D,V,j,O])}({strategy:"fixed",placement:y+("center"!==x?"-"+x:""),whileElementsMounted:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t,e,n,i){let r;void 0===i&&(i={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=i,c=tN(t),h=o||s?[...c?tF(c):[],...tF(e)]:[];h.forEach(t=>{o&&t.addEventListener("scroll",n,{passive:!0}),s&&t.addEventListener("resize",n)});let d=c&&l?function(t,e){let n,i=null,r=tv(t);function o(){var t;clearTimeout(n),null==(t=i)||t.disconnect(),i=null}return!function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),o();let u=t.getBoundingClientRect(),{left:c,top:h,width:d,height:f}=u;if(a||e(),!d||!f)return;let p=H(h),m=H(r.clientWidth-(c+d)),v={rootMargin:-p+"px "+-m+"px "+-H(r.clientHeight-(h+f))+"px "+-H(c)+"px",threshold:N(0,I(1,l))||1},y=!0;function g(e){let i=e[0].intersectionRatio;if(i!==l){if(!y)return s();i?s(!1,i):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==i||tQ(u,t.getBoundingClientRect())||s(),y=!1}try{i=new IntersectionObserver(g,{...v,root:r.ownerDocument})}catch(t){i=new IntersectionObserver(g,v)}i.observe(t)}(!0),o}(c,n):null,f=-1,p=null;a&&(p=new ResizeObserver(t=>{let[i]=t;i&&i.target===c&&p&&(p.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var t;null==(t=p)||t.observe(e)})),n()}),c&&!u&&p.observe(c),p.observe(e));let m=u?tz(t):null;return u&&function e(){let i=tz(t);m&&!tQ(m,i)&&n(),m=i,r=requestAnimationFrame(e)}(),n(),()=>{var t;h.forEach(t=>{o&&t.removeEventListener("scroll",n),s&&t.removeEventListener("resize",n)}),null==d||d(),null==(t=p)||t.disconnect(),p=null,u&&cancelAnimationFrame(r)}}(...e,{animationFrame:"always"===C})},elements:{reference:R.anchor},middleware:[t8({mainAxis:g+U,alignmentAxis:w}),S&&t7({mainAxis:!0,crossAxis:!1,limiter:"partial"===P?et():void 0,...X}),S&&ee({...X}),en({...X,apply:t=>{let{elements:e,rects:n,availableWidth:i,availableHeight:r}=t,{width:o,height:s}=n.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width","".concat(i,"px")),a.setProperty("--radix-popper-available-height","".concat(r,"px")),a.setProperty("--radix-popper-anchor-width","".concat(o,"px")),a.setProperty("--radix-popper-anchor-height","".concat(s,"px"))}}),O&&er({element:O,padding:b}),eS({arrowWidth:W,arrowHeight:U}),E&&ei({strategy:"referenceHidden",...X})]}),[J,Q]=eT(q),tt=v(M);V(()=>{G&&(null==tt||tt())},[G,tt]);let te=null===(n=Z.arrow)||void 0===n?void 0:n.x,tn=null===(i=Z.arrow)||void 0===i?void 0:i.y,ti=(null===(r=Z.arrow)||void 0===r?void 0:r.centerOffset)!==0,[tr,to]=o.useState();return V(()=>{D&&to(window.getComputedStyle(D).zIndex)},[D]),(0,c.jsx)("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:G?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:tr,"--radix-popper-transform-origin":[null===(s=Z.transformOrigin)||void 0===s?void 0:s.x,null===(l=Z.transformOrigin)||void 0===l?void 0:l.y].join(" "),...(null===(u=Z.hide)||void 0===u?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:(0,c.jsx)(em,{scope:p,placedSide:J,onArrowChange:F,arrowX:te,arrowY:tn,shouldHideArrow:ti,children:(0,c.jsx)(m.sG.div,{"data-side":J,"data-align":Q,...k,ref:j,style:{...k.style,animation:G?void 0:"none"}})})})});ey.displayName=ep;var eg="PopperArrow",ex={top:"bottom",right:"left",bottom:"top",left:"right"},ew=o.forwardRef(function(t,e){let{__scopePopper:n,...i}=t,r=ev(eg,n),o=ex[r.placedSide];return(0,c.jsx)("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:(0,c.jsx)(eo,{...i,ref:e,style:{...i.style,display:"block"}})})});function eb(t){return null!==t}ew.displayName=eg;var eS=t=>({name:"transformOrigin",options:t,fn(e){var n,i,r,o,s;let{placement:a,rects:l,middlewareData:u}=e,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,h=c?0:t.arrowWidth,d=c?0:t.arrowHeight,[f,p]=eT(a),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(o=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==o?o:0)+h/2,y=(null!==(s=null===(r=u.arrow)||void 0===r?void 0:r.y
1)&&void 0!==s?s:0)+d/2,g="",x="";return"bottom"===f?(g=c?m:"".concat(v,"px"),x="".concat(-d,"px")):"top"===f?(g=c?m:"".concat(v,"px"),x="".concat(l.floating.height+d,"px")):"right"===f?(g="".concat(-d,"px"),x=c?m:"".concat(y,"px")):"left"===f&&(g="".concat(l.floating.width+d,"px"),x=c?m:"".concat(y,"px")),{data:{x:g,y:x}}}});function eT(t){let[e,n="center"]=t.split("-");return[e,n]}var eA=o.forwardRef((t,e)=>{var n,i;let{container:r,...s}=t,[l,u]=o.useState(!1);V(()=>u(!0),[]);let h=r||l&&(null===(i=globalThis)||void 0===i?void 0:null===(n=i.document)||void 0===n?void 0:n.body);return h?a.createPortal((0,c.jsx)(m.sG.div,{...s,ref:e}),h):null});function eP({prop:t,defaultProp:e,onChange:n=()=>{}}){let[i,r]=function({defaultProp:t,onChange:e}){let n=o.useState(t),[i]=n,r=o.useRef(i),s=v(e);return o.useEffect(()=>{r.current!==i&&(s(i),r.current=i)},[i,r,s]),n}({defaultProp:e,onChange:n}),s=void 0!==t,a=s?t:i,l=v(n);return[a,o.useCallback(e=>{if(s){let n="function"==typeof e?e(t):e;n!==t&&l(n)}else r(e)},[s,t,r,l])]}eA.displayName="Portal";var eE=o.forwardRef((t,e)=>(0,c.jsx)(m.sG.span,{...t,ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}}));eE.displayName="VisuallyHidden";var eC=function(t){return"undefined"==typeof document?null:(Array.isArray(t)?t[0]:t).ownerDocument.body},eM=new WeakMap,ek=new WeakMap,eR={},eD=0,eL=function(t){return t&&(t.host||eL(t.parentNode))},eV=function(t,e,n,i){var r=(Array.isArray(t)?t:[t]).map(function(t){if(e.contains(t))return t;var n=eL(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t});eR[n]||(eR[n]=new WeakMap);var o=eR[n],s=[],a=new Set,l=new Set(r),u=function(t){!(!t||a.has(t))&&(a.add(t),u(t.parentNode))};r.forEach(u);var c=function(t){!(!t||l.has(t))&&Array.prototype.forEach.call(t.children,function(t){if(a.has(t))c(t);else try{var e=t.getAttribute(i),r=null!==e&&"false"!==e,l=(eM.get(t)||0)+1,u=(o.get(t)||0)+1;eM.set(t,l),o.set(t,u),s.push(t),1===l&&r&&ek.set(t,!0),1===u&&t.setAttribute(n,"true"),r||t.setAttribute(i,"true")}catch(e){console.error("aria-hidden: cannot operate on ",t,e)}})};return c(e),a.clear(),eD++,function(){s.forEach(function(t){var e=eM.get(t)-1,r=o.get(t)-1;eM.set(t,e),o.set(t,r),e||(ek.has(t)||t.removeAttribute(i),ek.delete(t)),r||t.removeAttribute(n)}),--eD||(eM=new WeakMap,eM=new WeakMap,ek=new WeakMap,eR={})}},ej=function(t,e,n){void 0===n&&(n="data-aria-hidden");var i=Array.from(Array.isArray(t)?t:[t]),r=e||eC(t);return r?(i.push.apply(i,Array.from(r.querySelectorAll("[aria-live], script"))),eV(i,r,n,"aria-hidden")):function(){return null}},eO=function(){return(eO=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function eF(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&0>e.indexOf(i)&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)0>e.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n}Object.create;Object.create;var eB=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),eI="width-before-scroll-bar";function eN(t,e){return"function"==typeof t?t(e):t&&(t.current=e),t}var eW="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,eH=new WeakMap;function eU(t){return t}var ez=function(t){void 0===t&&(t={});var e,n,i,r,o=(e=null,void 0===n&&(n=eU),i=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:null},useMedium:function(t){var e=n(t,r);return i.push(e),function(){i=i.filter(function(t){return t!==e})}},assignSyncMedium:function(t){for(r=!0;i.length;){var e=i;i=[],e.forEach(t)}i={push:function(e){return t(e)},filter:function(){return i}}},assignMedium:function(t){r=!0;var e=[];
1if(i.length){var n=i;i=[],n.forEach(t),e=i}var o=function(){var n=e;e=[],n.forEach(t)},s=function(){return Promise.resolve().then(o)};s(),i={push:function(t){e.push(t),s()},filter:function(t){return e=e.filter(t),i}}}});return o.options=eO({async:!0,ssr:!1},t),o}(),e$=function(){},eY=o.forwardRef(function(t,e){var n,i,r,s,a=o.useRef(null),l=o.useState({onScrollCapture:e$,onWheelCapture:e$,onTouchMoveCapture:e$}),u=l[0],c=l[1],h=t.forwardProps,d=t.children,f=t.className,p=t.removeScrollBar,m=t.enabled,v=t.shards,y=t.sideCar,g=t.noRelative,x=t.noIsolation,w=t.inert,b=t.allowPinchZoom,S=t.as,T=t.gapMode,A=eF(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=(n=[a,e],i=function(t){return n.forEach(function(e){return eN(e,t)})},(r=(0,o.useState)(function(){return{value:null,callback:i,facade:{get current(){return r.value},set current(value){var t=r.value;t!==value&&(r.value=value,r.callback(value,t))}}}})[0]).callback=i,s=r.facade,eW(function(){var t=eH.get(s);if(t){var e=new Set(t),i=new Set(n),r=s.current;e.forEach(function(t){i.has(t)||eN(t,null)}),i.forEach(function(t){e.has(t)||eN(t,r)})}eH.set(s,n)},[n]),s),E=eO(eO({},A),u);return o.createElement(o.Fragment,null,m&&o.createElement(y,{sideCar:ez,removeScrollBar:p,shards:v,noRelative:g,noIsolation:x,inert:w,setCallbacks:c,allowPinchZoom:!!b,lockRef:a,gapMode:T}),h?o.cloneElement(o.Children.only(d),eO(eO({},E),{ref:P})):o.createElement(void 0===S?"div":S,eO({},E,{className:f,ref:P}),d))});eY.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eY.classNames={fullWidth:eI,zeroRight:eB};var eX=function(t){var e=t.sideCar,n=eF(t,["sideCar"]);if(!e)throw Error("Sidecar: please provide `sideCar` property to import the right car");var i=e.read();if(!i)throw Error("Sidecar medium not found");return o.createElement(i,eO({},n))};eX.isSideCarExport=!0;var e_=function(){var t=0,e=null;return{add:function(i){if(0==t&&(e=function(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=r||n.nc;return e&&t.setAttribute("nonce",e),t}())){var o,s;(o=e).styleSheet?o.styleSheet.cssText=i:o.appendChild(document.createTextNode(i)),s=e,(document.head||document.getElementsByTagName("head")[0]).appendChild(s)}t++},remove:function(){--t||!e||(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},eK=function(){var t=e_();return function(e,n){o.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},eq=function(){var t=eK();return function(e){return t(e.styles,e.dynamic),null}},eG={left:0,top:0,right:0,gap:0},eZ=function(t){return parseInt(t||"",10)||0},eJ=function(t){var e=window.getComputedStyle(document.body),n=e["padding"===t?"paddingLeft":"marginLeft"],i=e["padding"===t?"paddingTop":"marginTop"],r=e["padding"===t?"paddingRight":"marginRight"];return[eZ(n),eZ(i),eZ(r)]},eQ=function(t){if(void 0===t&&(t="margin"),"undefined"==typeof window)return eG;var e=eJ(t),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,i-n+e[2]-e[0])}},e0=eq(),e1="data-scroll-locked",e2=function(t,e,n,i){var r=t.left,o=t.top,s=t.right,a=t.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(i,";\n   padding-right: ").concat(a,"px ").concat(i,";\n  }\n  body[").concat(e1,"] {\n    overflow: hidden ").concat(i,";\n    overscroll-behavior: contain;\n    ").concat([e&&"position: relative ".concat(i,";"),"margin"===n&&"\n    padding-left: ".concat(r,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(s,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(a,"px ").concat(i,";\n    "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(i,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(eB," {\n    right: ").concat(a,"px ").concat(i,";\n  }\n  \n  .").concat(eI," {\n    margin-right: ").concat(a,"px ").concat(i,";\n  }\n  \n  .").concat(eB," .").concat(eB," {\n    right: 0 ").concat(i,";\n  }\n  \n  .").concat(eI," .").concat(eI," {\n    margin-right: 0 ").concat(i,";\n  }\n  \n  body[").concat(e1,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n  }\n")},e5=function(){var t=parseInt(document.body.getAttribute(e1)||"0",10);return isFinite(t)?t:0},e4=function(){o.useEffect(function(){return document.body.setAttribute(e1,(e5()+1).toString()),function(){var t=e5()-1;t<=0?document.body.removeAttribute(e1):document.body.setAttribute(e1,t.toString())}},[])},e9=function(t){var e=t.noRelative,n=t.noImportant,i=t.gapMode,r=void 0===i?"margin":i;e4();var s=o.useMemo(function(){return eQ(r)},[r]);return o.createElement(e0,{styles:e2(s,!e,r,n?"":"!important")})},e6=!1;if("undefined"!=typeof window)try{var e3=Object.defineProperty({},"passive",{get:function(){return e6=!0,!0}});window.addEventListener("test",e3,e3),window.removeEventListener("test",e3,e3)}catch(t){e6=!1}var e8=!!e6&&{passive:!1},e7=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return"hidden"!==n[e]&&(n.overflowY!==n.overflowX||"TEXTAREA"===t.tagName||"visible"!==n[e])},nt=function(t,e){var n=e.ownerDocument,i=e;do{if("undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot&&(i=i.host),ne(t,i)){var r=nn(t,i);if(r[1]>r[2])return!0}i=i.parentNode}while(i&&i!==n.body);return!1},ne=function(t,e){return"v"===t?e7(e,"overflowY"):e7(e,"overflowX")},nn=function(t,e){return"v"===t?[e.scrollTop,e.scrollHeight,e.clientHeight]:[e.scrollLeft,e.scrollWidth,e.clientWidth]},ni=function(t,e,n,i,r){var o,s=(o=window.getComputedStyle(e).direction,"h"===t&&"rtl"===o?-1:1),a=s*i,l=n.target,u=e.contains(l),c=!1,h=a>0,d=0,f=0;do{if(!l)break;var p=nn(t,l),m=p[0],v=p[1]-p[2]-s*m;(m||v)&&ne(t,l)&&(d+=v,f+=m);var y=l.parentNode;l=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&l!==document.body||u&&(e.contains(l)||e===l));return h&&(r&&1>Math.abs(d)||!r&&a>d)?c=!0:!h&&(r&&1>Math.abs(f)||!r&&-a>f)&&(c=!0),c},nr=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},no=function(t){return[t.deltaX,t.deltaY]},ns=function(t){return t&&"current"in t?t.current:t},na=0,nl=[];let nu=(ez.useMedium(function(t){var e=o.useRef([]),n=o.useRef([0,0]),i=o.useRef(),r=o.useState(na++)[0],s=o.useState(eq)[0],a=o.useRef(t);o.useEffect(function(){a.current=t},[t]),o.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(r));var e=(function(t,e,n){if(n||2==arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}
1)([t.lockRef.current],(t.shards||[]).map(ns),!0).filter(Boolean);return e.forEach(function(t){return t.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),e.forEach(function(t){return t.classList.remove("allow-interactivity-".concat(r))})}}},[t.inert,t.lockRef.current,t.shards]);var l=o.useCallback(function(t,e){if("touches"in t&&2===t.touches.length||"wheel"===t.type&&t.ctrlKey)return!a.current.allowPinchZoom;var r,o=nr(t),s=n.current,l="deltaX"in t?t.deltaX:s[0]-o[0],u="deltaY"in t?t.deltaY:s[1]-o[1],c=t.target,h=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in t&&"h"===h&&"range"===c.type)return!1;var d=nt(h,c);if(!d)return!0;if(d?r=h:(r="v"===h?"h":"v",d=nt(h,c)),!d)return!1;if(!i.current&&"changedTouches"in t&&(l||u)&&(i.current=r),!r)return!0;var f=i.current||r;return ni(f,e,t,"h"===f?l:u,!0)},[]),u=o.useCallback(function(t){if(nl.length&&nl[nl.length-1]===s){var n="deltaY"in t?no(t):nr(t),i=e.current.filter(function(e){var i;return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(i=e.delta)[0]===n[0]&&i[1]===n[1]})[0];if(i&&i.should){t.cancelable&&t.preventDefault();return}if(!i){var r=(a.current.shards||[]).map(ns).filter(Boolean).filter(function(e){return e.contains(t.target)});(r.length>0?l(t,r[0]):!a.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),c=o.useCallback(function(t,n,i,r){var o={name:t,delta:n,target:i,should:r,shadowParent:function(t){for(var e=null;null!==t;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}(i)};e.current.push(o),setTimeout(function(){e.current=e.current.filter(function(t){return t!==o})},1)},[]),h=o.useCallback(function(t){n.current=nr(t),i.current=void 0},[]),d=o.useCallback(function(e){c(e.type,no(e),e.target,l(e,t.lockRef.current))},[]),f=o.useCallback(function(e){c(e.type,nr(e),e.target,l(e,t.lockRef.current))},[]);o.useEffect(function(){return nl.push(s),t.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",u,e8),document.addEventListener("touchmove",u,e8),document.addEventListener("touchstart",h,e8),function(){nl=nl.filter(function(t){return t!==s}),document.removeEventListener("wheel",u,e8),document.removeEventListener("touchmove",u,e8),document.removeEventListener("touchstart",h,e8)}},[]);var p=t.removeScrollBar,m=t.inert;return o.createElement(o.Fragment,null,m?o.createElement(s,{styles:"\n  .block-interactivity-".concat(r," {pointer-events: none;}\n  .allow-interactivity-").concat(r," {pointer-events: all;}\n")}):null,p?o.createElement(e9,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}),eX);var nc=o.forwardRef(function(t,e){return o.createElement(eY,eO({},t,{ref:e,sideCar:nu}))});nc.classNames=eY.classNames;var nh=[" ","Enter","ArrowUp","ArrowDown"],nd=[" ","Enter"],nf="Select",[np,nm,nv]=function(t){let e=t+"CollectionProvider",[n,i]=h(e),[r,s]=n(e,{collectionRef:{current:null},itemMap:new Map}),a=t=>{let{scope:e,children:n}=t,i=o.useRef(null),s=o.useRef(new Map).current;return(0,c.jsx)(r,{scope:e,itemMap:s,collectionRef:i,children:n})};a.displayName=e;let l=t+"CollectionSlot",u=o.forwardRef((t,e)=>{let{scope:n,children:i}=t,r=s(l,n),o=(0,d.s)(e,r.collectionRef);return(0,c.jsx)(f.DX,{ref:o,children:i})});u.displayName=l;let p=t+"CollectionItemSlot",m="data-radix-collection-item",v=o.forwardRef((t,e)=>{let{scope:n,children:i,...r}=t,a=o.useRef(null),l=(0,d.s)(e,a),u=s(p,n);return o.useEffect(()=>(u.itemMap.set(a,{ref:a,...r}),()=>void u.itemMap.delete(a))),(0,c.jsx)(f.DX,{[m]:"",ref:l,children:i})});return v.displayName=p,[{Provider:a,Slot:u,ItemSlot:v},function(e){let n=s(t+"CollectionConsumer",e);return o.useCallback(()=>{let t=n.collectionRef.current;if(!t)return[];let e=Array.from(t.querySelectorAll("[".concat(m,"]")));return Array.from(n.itemMap.values()).sort((t,n)=>e.indexOf(t.ref.current)-e.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},i]}(nf),[ny,ng]=h(nf,[nv,el]),nx=el(),[nw,nb]=ny(nf),[nS,nT]=ny(nf),nA=t=>{let{__scopeSelect:e,children:n,open:i,defaultOpen:r,onOpenChange:s,value:a,defaultValue:l,onValueChange:u,dir:h,name:d,autoComplete:f,disabled:m,required:v,form:y}=t,g=nx(e),[x,w]=o.useState(null),[b,S]=o.useState(null),[T,A]=o.useState(!1),P=function(t){let e=o.useContext(p);return t||e||"ltr"}(h),[E=!1,C]=eP({prop:i,defaultProp:r,onChange:s}),[M,k]=eP({prop:a,defaultProp:l,onChange:u}),R=o.useRef(null),D=!x||y||!!x.closest("form"),[L,V]=o.useState(new Set),j=Array.from(L).map(t=>t.props.value).join(";");return(0,c.jsx)(eh,{...g,children:(0,c.jsxs)(nw,{required:v,scope:e,trigger:x,onTriggerChange:w,valueNode:b,onValueNodeChange:S,valueNodeHasChildren:T,onValueNodeHasChildrenChange:A,contentId:F(),value:M,onValueChange:k,open:E,onOpenChange:C,dir:P,triggerPointerDownPosRef:R,disabled:m,children:[(0,c.jsx)(np.Provider,{scope:e,children:(0,c.jsx)(nS,{scope:t.__scopeSelect,onNativeOptionAdd:o.useCallback(t=>{V(e=>new Set(e).add(t))},[]),onNativeOptionRemove:o.useCallback(t=>{V(e=>{let n=new Set(e);return n.delete(t),n})},[]),children:n})}),D?(0,c.jsxs)(it,{"aria-hidden":!0,required:v,tabIndex:-1,name:d,autoComplete:f,value:M,onChange:t=>k(t.target.value),disabled:m,form:y,children:[void 0===M?(0,c.jsx)("option",{value:""}):null,Array.from(L)]},j):null]})})};nA.displayName=nf;var nP="SelectTrigger",nE=o.forwardRef((t,e)=>{let{__scopeSelect:n,disabled:i=!1,...r}=t,s=nx(n),a=nb(nP,n),l=a.disabled||i,h=(0,d.s)(e,a.onTriggerChange),f=nm(n),p=o.useRef("touch"),[v,y,g]=ie(t=>{let e=f().filter(t=>!t.disabled),n=e.find(t=>t.value===a.value),i=ii(e,t,n);void 0!==i&&a.onValueChange(i.value)}),x=t=>{l||(a.onOpenChange(!0),g()),t&&(a.triggerPointerDownPosRef.current={x:Math.round(t.pageX),y:Math.round(t.pageY)})};return(0,c.jsx)(ef,{asChild:!0,...s,children:(0,c.jsx)(m.sG.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":n7(a.value)?"":void 0,...r,ref:h,onClick:u(r.onClick,t=>
1{t.currentTarget.focus(),"mouse"!==p.current&&x(t)}),onPointerDown:u(r.onPointerDown,t=>{p.current=t.pointerType;let e=t.target;e.hasPointerCapture(t.pointerId)&&e.releasePointerCapture(t.pointerId),0===t.button&&!1===t.ctrlKey&&"mouse"===t.pointerType&&(x(t),t.preventDefault())}),onKeyDown:u(r.onKeyDown,t=>{let e=""!==v.current;t.ctrlKey||t.altKey||t.metaKey||1!==t.key.length||y(t.key),(!e||" "!==t.key)&&nh.includes(t.key)&&(x(),t.preventDefault())})})})});nE.displayName=nP;var nC="SelectValue",nM=o.forwardRef((t,e)=>{let{__scopeSelect:n,className:i,style:r,children:o,placeholder:s="",...a}=t,l=nb(nC,n),{onValueNodeHasChildrenChange:u}=l,h=void 0!==o,f=(0,d.s)(e,l.onValueNodeChange);return V(()=>{u(h)},[u,h]),(0,c.jsx)(m.sG.span,{...a,ref:f,style:{pointerEvents:"none"},children:n7(l.value)?(0,c.jsx)(c.Fragment,{children:s}):o})});nM.displayName=nC;var nk=o.forwardRef((t,e)=>{let{__scopeSelect:n,children:i,...r}=t;return(0,c.jsx)(m.sG.span,{"aria-hidden":!0,...r,ref:e,children:i||"▼"})});nk.displayName="SelectIcon";var nR=t=>(0,c.jsx)(eA,{asChild:!0,...t});nR.displayName="SelectPortal";var nD="SelectContent",nL=o.forwardRef((t,e)=>{let n=nb(nD,t.__scopeSelect),[i,r]=o.useState();return(V(()=>{r(new DocumentFragment)},[]),n.open)?(0,c.jsx)(nO,{...t,ref:e}):i?a.createPortal((0,c.jsx)(nV,{scope:t.__scopeSelect,children:(0,c.jsx)(np.Slot,{scope:t.__scopeSelect,children:(0,c.jsx)("div",{children:t.children})})}),i):null});nL.displayName=nD;var[nV,nj]=ny(nD),nO=o.forwardRef((t,e)=>{let{__scopeSelect:n,position:i="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:s,onPointerDownOutside:a,side:l,sideOffset:h,align:p,alignOffset:m,arrowPadding:v,collisionBoundary:y,collisionPadding:g,sticky:w,hideWhenDetached:b,avoidCollisions:A,...P}=t,E=nb(nD,n),[M,k]=o.useState(null),[R,D]=o.useState(null),L=(0,d.s)(e,t=>k(t)),[V,j]=o.useState(null),[O,F]=o.useState(null),B=nm(n),[I,N]=o.useState(!1),W=o.useRef(!1);o.useEffect(()=>{if(M)return ej(M)},[M]),o.useEffect(()=>{var t,e;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(t=n[0])&&void 0!==t?t:T()),document.body.insertAdjacentElement("beforeend",null!==(e=n[1])&&void 0!==e?e:T()),S++,()=>{1===S&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),S--}},[]);let H=o.useCallback(t=>{let[e,...n]=B().map(t=>t.ref.current),[i]=n.slice(-1),r=document.activeElement;for(let n of t)if(n===r||(null==n||n.scrollIntoView({block:"nearest"}),n===e&&R&&(R.scrollTop=0),n===i&&R&&(R.scrollTop=R.scrollHeight),null==n||n.focus(),document.activeElement!==r))return},[B,R]),U=o.useCallback(()=>H([V,M]),[H,V,M]);o.useEffect(()=>{I&&U()},[I,U]);let{onOpenChange:z,triggerPointerDownPosRef:$}=E;o.useEffect(()=>{if(M){let t={x:0,y:0},e=e=>{var n,i,r,o;t={x:Math.abs(Math.round(e.pageX)-(null!==(r=null===(n=$.current)||void 0===n?void 0:n.x)&&void 0!==r?r:0)),y:Math.abs(Math.round(e.pageY)-(null!==(o=null===(i=$.current)||void 0===i?void 0:i.y)&&void 0!==o?o:0))}},n=n=>{t.x<=10&&t.y<=10?n.preventDefault():M.contains(n.target)||z(!1),document.removeEventListener("pointermove",e),$.current=null};return null!==$.current&&(document.addEventListener("pointermove",e),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",e),document.removeEventListener("pointerup",n,{capture:!0})}}},[M,z,$]),o.useEffect(()=>{let t=()=>z(!1);return window.addEventListener("blur",t),window.addEventListener("resize",t),()=>{window.removeEventListener("blur",t),window.removeEventListener("resize",t)}},[z]);let[Y,X]=ie(t=>{let e=B().filter(t=>!t.disabled),n=e.find(t=>t.ref.current===document.activeElement),i=ii(e,t,n);i&&setTimeout(()=>i.ref.current.focus())}),_=o.useCallback((t,e,n)=>{let i=!W.current&&!n;(void 0!==E.value&&E.value===e||i)&&(j(t),i&&(W.current=!0))},[E.value]),K=o.useCallback(()=>null==M?void 0:M.focus(),[M]),q=o.useCallback((t,e,n)=>{let i=!W.current&&!n;(void 0!==E.value&&E.value===e||i)&&F(t)},[E.value]),G="popper"===i?nB:nF,Z=G===nB?{side:l,sideOffset:h,align:p,alignOffset:m,arrowPadding:v,collisionBoundary:y,collisionPadding:g,sticky:w,hideWhenDetached:b,avoidCollisions:A}:{};return(0,c.jsx)(nV,{scope:n,content:M,viewport:R,onViewportChange:D,itemRefCallback:_,selectedItem:V,onItemLeave:K,itemTextRefCallback:q,focusSelectedItem:U,selectedItemText:O,position:i,isPositioned:I,searchRef:Y,children:(0,c.jsx)(nc,{as:f.DX,allowPinchZoom:!0,children:(0,c.jsx)(C,{asChild:!0,trapped:E.open,onMountAutoFocus:t=>{t.preventDefault()},onUnmountAutoFocus:u(r,t=>{var e;null===(e=E.trigger)||void 0===e||e.focus({preventScroll:!0}),t.preventDefault()}),children:(0,c.jsx)(x,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:t=>t.preventDefault(),onDismiss:()=>E.onOpenChange(!1),children:(0,c.jsx)(G,{role:"listbox",id:E.contentId,"data-state":E.open?"open":"closed",dir:E.dir,onContextMenu:t=>t.preventDefault(),...P,...Z,onPlaced:()=>N(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",...P.style},onKeyDown:u(P.onKeyDown,t=>{let e=t.ctrlKey||t.altKey||t.metaKey;if("Tab"===t.key&&t.preventDefault(),e||1!==t.key.length||X(t.key),["ArrowUp","ArrowDown","Home","End"].includes(t.key)){let e=B().filter(t=>!t.disabled).map(t=>t.ref.current);if(["ArrowUp","End"].includes(t.key)&&(e=e.slice().reverse()),["ArrowUp","ArrowDown"].includes(t.key)){let n=t.target,i=e.indexOf(n);e=e.slice(i+1)}setTimeout(()=>H(e)),t.preventDefault()}})})})})})})});nO.displayName="SelectContentImpl";var nF=o.forwardRef((t,e)=>{let{__scopeSelect:n,onPlaced:i,...r}
1=t,s=nb(nD,n),a=nj(nD,n),[u,h]=o.useState(null),[f,p]=o.useState(null),v=(0,d.s)(e,t=>p(t)),y=nm(n),g=o.useRef(!1),x=o.useRef(!0),{viewport:w,selectedItem:b,selectedItemText:S,focusSelectedItem:T}=a,A=o.useCallback(()=>{if(s.trigger&&s.valueNode&&u&&f&&w&&b&&S){let t=s.trigger.getBoundingClientRect(),e=f.getBoundingClientRect(),n=s.valueNode.getBoundingClientRect(),r=S.getBoundingClientRect();if("rtl"!==s.dir){let i=r.left-e.left,o=n.left-i,s=t.left-o,a=t.width+s,c=Math.max(a,e.width),h=l(o,[10,Math.max(10,window.innerWidth-10-c)]);u.style.minWidth=a+"px",u.style.left=h+"px"}else{let i=e.right-r.right,o=window.innerWidth-n.right-i,s=window.innerWidth-t.right-o,a=t.width+s,c=Math.max(a,e.width),h=l(o,[10,Math.max(10,window.innerWidth-10-c)]);u.style.minWidth=a+"px",u.style.right=h+"px"}let o=y(),a=window.innerHeight-20,c=w.scrollHeight,h=window.getComputedStyle(f),d=parseInt(h.borderTopWidth,10),p=parseInt(h.paddingTop,10),m=parseInt(h.borderBottomWidth,10),v=d+p+c+parseInt(h.paddingBottom,10)+m,x=Math.min(5*b.offsetHeight,v),T=window.getComputedStyle(w),A=parseInt(T.paddingTop,10),P=parseInt(T.paddingBottom,10),E=t.top+t.height/2-10,C=b.offsetHeight/2,M=d+p+(b.offsetTop+C);if(M<=E){let t=o.length>0&&b===o[o.length-1].ref.current;u.style.bottom="0px";let e=Math.max(a-E,C+(t?P:0)+(f.clientHeight-w.offsetTop-w.offsetHeight)+m);u.style.height=M+e+"px"}else{let t=o.length>0&&b===o[0].ref.current;u.style.top="0px";let e=Math.max(E,d+w.offsetTop+(t?A:0)+C);u.style.height=e+(v-M)+"px",w.scrollTop=M-E+w.offsetTop}u.style.margin="".concat(10,"px 0"),u.style.minHeight=x+"px",u.style.maxHeight=a+"px",null==i||i(),requestAnimationFrame(()=>g.current=!0)}},[y,s.trigger,s.valueNode,u,f,w,b,S,s.dir,i]);V(()=>A(),[A]);let[P,E]=o.useState();V(()=>{f&&E(window.getComputedStyle(f).zIndex)},[f]);let C=o.useCallback(t=>{t&&!0===x.current&&(A(),null==T||T(),x.current=!1)},[A,T]);return(0,c.jsx)(nI,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:g,onScrollButtonChange:C,children:(0,c.jsx)("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:P},children:(0,c.jsx)(m.sG.div,{...r,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});nF.displayName="SelectItemAlignedPosition";var nB=o.forwardRef((t,e)=>{let{__scopeSelect:n,align:i="start",collisionPadding:r=10,...o}=t,s=nx(n);return(0,c.jsx)(ey,{...s,...o,ref:e,align:i,collisionPadding:r,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});nB.displayName="SelectPopperPosition";var[nI,nN]=ny(nD,{}),nW="SelectViewport",nH=o.forwardRef((t,e)=>{let{__scopeSelect:n,nonce:i,...r}=t,s=nj(nW,n),a=nN(nW,n),l=(0,d.s)(e,s.onViewportChange),h=o.useRef(0);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,c.jsx)(np.Slot,{scope:n,children:(0,c.jsx)(m.sG.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:u(r.onScroll,t=>{let e=t.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:i}=a;if((null==i?void 0:i.current)&&n){let t=Math.abs(h.current-e.scrollTop);if(t>0){let i=window.innerHeight-20,r=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(r<i){let o=r+t,s=Math.min(i,o),a=o-s;n.style.height=s+"px","0px"===n.style.bottom&&(e.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}h.current=e.scrollTop})})})]})});nH.displayName=nW;var nU="SelectGroup",[nz,n$]=ny(nU),nY=o.forwardRef((t,e)=>{let{__scopeSelect:n,...i}=t,r=F();return(0,c.jsx)(nz,{scope:n,id:r,children:(0,c.jsx)(m.sG.div,{role:"group","aria-labelledby":r,...i,ref:e})})});nY.displayName=nU;var nX="SelectLabel",n_=o.forwardRef((t,e)=>{let{__scopeSelect:n,...i}=t,r=n$(nX,n);return(0,c.jsx)(m.sG.div,{id:r.id,...i,ref:e})});
1n_.displayName=nX;var nK="SelectItem",[nq,nG]=ny(nK),nZ=o.forwardRef((t,e)=>{let{__scopeSelect:n,value:i,disabled:r=!1,textValue:s,...a}=t,l=nb(nK,n),h=nj(nK,n),f=l.value===i,[p,v]=o.useState(null!=s?s:""),[y,g]=o.useState(!1),x=(0,d.s)(e,t=>{var e;return null===(e=h.itemRefCallback)||void 0===e?void 0:e.call(h,t,i,r)}),w=F(),b=o.useRef("touch"),S=()=>{r||(l.onValueChange(i),l.onOpenChange(!1))};if(""===i)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,c.jsx)(nq,{scope:n,value:i,disabled:r,textId:w,isSelected:f,onItemTextChange:o.useCallback(t=>{v(e=>{var n;return e||(null!==(n=null==t?void 0:t.textContent)&&void 0!==n?n:"").trim()})},[]),children:(0,c.jsx)(np.ItemSlot,{scope:n,value:i,disabled:r,textValue:p,children:(0,c.jsx)(m.sG.div,{role:"option","aria-labelledby":w,"data-highlighted":y?"":void 0,"aria-selected":f&&y,"data-state":f?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...a,ref:x,onFocus:u(a.onFocus,()=>g(!0)),onBlur:u(a.onBlur,()=>g(!1)),onClick:u(a.onClick,()=>{"mouse"!==b.current&&S()}),onPointerUp:u(a.onPointerUp,()=>{"mouse"===b.current&&S()}),onPointerDown:u(a.onPointerDown,t=>{b.current=t.pointerType}),onPointerMove:u(a.onPointerMove,t=>{if(b.current=t.pointerType,r){var e;null===(e=h.onItemLeave)||void 0===e||e.call(h)}else"mouse"===b.current&&t.currentTarget.focus({preventScroll:!0})}),onPointerLeave:u(a.onPointerLeave,t=>{if(t.currentTarget===document.activeElement){var e;null===(e=h.onItemLeave)||void 0===e||e.call(h)}}),onKeyDown:u(a.onKeyDown,t=>{var e;((null===(e=h.searchRef)||void 0===e?void 0:e.current)===""||" "!==t.key)&&(nd.includes(t.key)&&S()," "===t.key&&t.preventDefault())})})})})});nZ.displayName=nK;var nJ="SelectItemText",nQ=o.forwardRef((t,e)=>{let{__scopeSelect:n,className:i,style:r,...s}=t,l=nb(nJ,n),u=nj(nJ,n),h=nG(nJ,n),f=nT(nJ,n),[p,v]=o.useState(null),y=(0,d.s)(e,t=>v(t),h.onItemTextChange,t=>{var e;return null===(e=u.itemTextRefCallback)||void 0===e?void 0:e.call(u,t,h.value,h.disabled)}),g=null==p?void 0:p.textContent,x=o.useMemo(()=>(0,c.jsx)("option",{value:h.value,disabled:h.disabled,children:g},h.value),[h.disabled,h.value,g]),{onNativeOptionAdd:w,onNativeOptionRemove:b}=f;return V(()=>(w(x),()=>b(x)),[w,b,x]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(m.sG.span,{id:h.textId,...s,ref:y}),h.isSelected&&l.valueNode&&!l.valueNodeHasChildren?a.createPortal(s.children,l.valueNode):null]})});nQ.displayName=nJ;var n0="SelectItemIndicator",n1=o.forwardRef((t,e)=>{let{__scopeSelect:n,...i}=t;return nG(n0,n).isSelected?(0,c.jsx)(m.sG.span,{"aria-hidden":!0,...i,ref:e}):null});n1.displayName=n0;var n2="SelectScrollUpButton",n5=o.forwardRef((t,e)=>{let n=nj(n2,t.__scopeSelect),i=nN(n2,t.__scopeSelect),[r,s]=o.useState(!1),a=(0,d.s)(e,i.onScrollButtonChange);return V(()=>{if(n.viewport&&n.isPositioned){let t=function(){s(e.scrollTop>0)},e=n.viewport;return t(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[n.viewport,n.isPositioned]),r?(0,c.jsx)(n6,{...t,ref:a,onAutoScroll:()=>{let{viewport:t,selectedItem:e}=n;t&&e&&(t.scrollTop=t.scrollTop-e.offsetHeight)}}):null});n5.displayName=n2;var n4="SelectScrollDownButton",n9=o.forwardRef((t,e)=>{let n=nj(n4,t.__scopeSelect),i=nN(n4,t.__scopeSelect),[r,s]=o.useState(!1),a=(0,d.s)(e,i.onScrollButtonChange);return V(()=>{if(n.viewport&&n.isPositioned){let t=function(){let t=e.scrollHeight-e.clientHeight;s(Math.ceil(e.scrollTop)<t)},e=n.viewport;return t(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[n.viewport,n.isPositioned]),r?(0,c.jsx)(n6,{...t,ref:a,onAutoScroll:()=>{let{viewport:t,selectedItem:e}=n;t&&e&&(t.scrollTop=t.scrollTop+e.offsetHeight)}}):null});n9.displayName=n4;var n6=o.forwardRef((t,e)=>{let{__scopeSelect:n,onAutoScroll:i,...r}=t,s=nj("SelectScrollButton",n),a=o.useRef(null),l=nm(n),h=o.useCallback(()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)},[]);return o.useEffect(()=>()=>h(),[h]),V(()=>{var t;let e=l().find(t=>t.ref.current===document.activeElement);null==e||null===(t=e.ref.current)||void 0===t||t.scrollIntoView({block:"nearest"})},[l]),(0,c.jsx)(m.sG.div,{"aria-hidden":!0,...r,ref:e,style:{flexShrink:0,...r.style},onPointerDown:u(r.onPointerDown,()=>{null===a.current&&(a.current=window.setInterval(i,50))}),onPointerMove:u(r.onPointerMove,()=>{var t;null===(t=s.onItemLeave)||void 0===t||t.call(s),null===a.current&&(a.current=window.setInterval(i,50))}),onPointerLeave:u(r.onPointerLeave,()=>{h()})})}),n3=o.forwardRef((t,e)=>{let{__scopeSelect:n,...i}=t;return(0,c.jsx)(m.sG.div,{"aria-hidden":!0,...i,ref:e})});
1n3.displayName="SelectSeparator";var n8="SelectArrow";function n7(t){return""===t||void 0===t}o.forwardRef((t,e)=>{let{__scopeSelect:n,...i}=t,r=nx(n),o=nb(n8,n),s=nj(n8,n);return o.open&&"popper"===s.position?(0,c.jsx)(ew,{...r,...i,ref:e}):null}).displayName=n8;var it=o.forwardRef((t,e)=>{let{value:n,...i}=t,r=o.useRef(null),s=(0,d.s)(e,r),a=function(t){let e=o.useRef({value:t,previous:t});return o.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}(n);return o.useEffect(()=>{let t=r.current,e=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(a!==n&&e){let i=new Event("change",{bubbles:!0});e.call(t,n),t.dispatchEvent(i)}},[a,n]),(0,c.jsx)(eE,{asChild:!0,children:(0,c.jsx)("select",{...i,ref:s,defaultValue:n})})});function ie(t){let e=v(t),n=o.useRef(""),i=o.useRef(0),r=o.useCallback(t=>{let r=n.current+t;e(r),function t(e){n.current=e,window.clearTimeout(i.current),""!==e&&(i.current=window.setTimeout(()=>t(""),1e3))}(r)},[e]),s=o.useCallback(()=>{n.current="",window.clearTimeout(i.current)},[]);return o.useEffect(()=>()=>window.clearTimeout(i.current),[]),[n,r,s]}function ii(t,e,n){var i,r;let o=e.length>1&&Array.from(e).every(t=>t===e[0])?e[0]:e,s=n?t.indexOf(n):-1,a=(i=t,r=Math.max(s,0),i.map((t,e)=>i[(r+e)%i.length]));1===o.length&&(a=a.filter(t=>t!==n));let l=a.find(t=>t.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}it.displayName="BubbleSelect";var ir=nA,io=nE,is=nM,ia=nk,il=nR,iu=nL,ic=nH,ih=nY,id=n_,ip=nZ,im=nQ,iv=n1,iy=n5,ig=n9,ix=n3},9245:(t,e,n)=>{n.d(e,{A:()=>i});let i=(0,n(9946).A)("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]])},9420:(t,e,n)=>{n.d(e,{A:()=>i});let i=(0,n(9946).A)("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]])},9530:(t,e,n)=>{n.d(e,{A:()=>i});let i=(0,n(9946).A)("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]])},9621:(t,e,n)=>{n.d(e,{A:()=>i});let i=(0,n(9946).A)("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]])},9964:(t,e,n)=>{n.d(e,{A:()=>i});let i=(0,n(9946).A)("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]])}}]);

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.