@opencx/widget 3.0.43 → 3.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,7 +37,7 @@ var Sie=Object.defineProperty;var Aie=(Fo,yn,Jr)=>yn in Fo?Sie(Fo,yn,{enumerable
37
37
  `+i[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=a&&0<=s);break}}}finally{Ch=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ou(e):""}function oD(e){switch(e.tag){case 5:return ou(e.type);case 16:return ou("Lazy");case 13:return ou("Suspense");case 19:return ou("SuspenseList");case 0:case 2:case 15:return e=Sh(e.type,!1),e;case 11:return e=Sh(e.type.render,!1),e;case 1:return e=Sh(e.type,!0),e;default:return""}}function Ah(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ra:return"Fragment";case ka:return"Portal";case xh:return"Profiler";case vh:return"StrictMode";case bh:return"Suspense";case Eh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case wx:return(e.displayName||"Context")+".Consumer";case xx:return(e._context.displayName||"Context")+".Provider";case wh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Th:return t=e.displayName||null,t!==null?t:Ah(e.type)||"Memo";case Ii:t=e._payload,e=e._init;try{return Ah(e(t))}catch{}}return null}function aD(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ah(t);case 8:return t===vh?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Oi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Tx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sD(e){var t=Tx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cc(e){e._valueTracker||(e._valueTracker=sD(e))}function _x(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Tx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Sc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function kh(e,t){var n=t.checked;return lt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Cx(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Oi(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Sx(e,t){t=t.checked,t!=null&&yh(e,"checked",t,!1)}function Rh(e,t){Sx(e,t);var n=Oi(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Nh(e,t.type,n):t.hasOwnProperty("defaultValue")&&Nh(e,t.type,Oi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ax(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Nh(e,t,n){(t!=="number"||Sc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var au=Array.isArray;function Na(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Oi(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ph(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Z(91));return lt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function kx(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Z(92));if(au(n)){if(1<n.length)throw Error(Z(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Oi(n)}}function Rx(e,t){var n=Oi(t.value),r=Oi(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Nx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Px(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ih(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Px(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ac,Ix=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ac=Ac||document.createElement("div"),Ac.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ac.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function su(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var uu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},uD=["Webkit","ms","Moz","O"];Object.keys(uu).forEach(function(e){uD.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),uu[t]=uu[e]})});function Ox(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||uu.hasOwnProperty(e)&&uu[e]?(""+t).trim():t+"px"}function Dx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Ox(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var lD=lt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Oh(e,t){if(t){if(lD[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Z(62))}}function Dh(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Lh=null;function Mh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fh=null,Pa=null,Ia=null;function Lx(e){if(e=Nu(e)){if(typeof Fh!="function")throw Error(Z(280));var t=e.stateNode;t&&(t=Xc(t),Fh(e.stateNode,e.type,t))}}function Mx(e){Pa?Ia?Ia.push(e):Ia=[e]:Pa=e}function Fx(){if(Pa){var e=Pa,t=Ia;if(Ia=Pa=null,Lx(e),t)for(e=0;e<t.length;e++)Lx(t[e])}}function Bx(e,t){return e(t)}function jx(){}var Bh=!1;function Ux(e,t,n){if(Bh)return e(t,n);Bh=!0;try{return Bx(e,t,n)}finally{Bh=!1,(Pa!==null||Ia!==null)&&(jx(),Fx())}}function lu(e,t){var n=e.stateNode;if(n===null)return null;var r=Xc(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Z(231,t,typeof n));return n}var jh=!1;if(ei)try{var cu={};Object.defineProperty(cu,"passive",{get:function(){jh=!0}}),window.addEventListener("test",cu,cu),window.removeEventListener("test",cu,cu)}catch{jh=!1}function cD(e,t,n,r,i,o,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}}var du=!1,kc=null,Rc=!1,Uh=null,dD={onError:function(e){du=!0,kc=e}};function fD(e,t,n,r,i,o,a,s,u){du=!1,kc=null,cD.apply(dD,arguments)}function pD(e,t,n,r,i,o,a,s,u){if(fD.apply(this,arguments),du){if(du){var l=kc;du=!1,kc=null}else throw Error(Z(198));Rc||(Rc=!0,Uh=l)}}function jo(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function zx(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Hx(e){if(jo(e)!==e)throw Error(Z(188))}function hD(e){var t=e.alternate;if(!t){if(t=jo(e),t===null)throw Error(Z(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Hx(i),e;if(o===r)return Hx(i),t;o=o.sibling}throw Error(Z(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(Z(189))}}if(n.alternate!==r)throw Error(Z(190))}if(n.tag!==3)throw Error(Z(188));return n.stateNode.current===n?e:t}function Vx(e){return e=hD(e),e!==null?$x(e):null}function $x(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=$x(e);if(t!==null)return t;e=e.sibling}return null}var Wx=In.unstable_scheduleCallback,Yx=In.unstable_cancelCallback,mD=In.unstable_shouldYield,gD=In.unstable_requestPaint,wt=In.unstable_now,yD=In.unstable_getCurrentPriorityLevel,zh=In.unstable_ImmediatePriority,qx=In.unstable_UserBlockingPriority,Nc=In.unstable_NormalPriority,vD=In.unstable_LowPriority,Gx=In.unstable_IdlePriority,Pc=null,Ir=null;function xD(e){if(Ir&&typeof Ir.onCommitFiberRoot=="function")try{Ir.onCommitFiberRoot(Pc,e,void 0,(e.current.flags&128)===128)}catch{}}var pr=Math.clz32?Math.clz32:ED,wD=Math.log,bD=Math.LN2;function ED(e){return e>>>=0,e===0?32:31-(wD(e)/bD|0)|0}var Ic=64,Oc=4194304;function fu(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Dc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=fu(s):(o&=a,o!==0&&(r=fu(o)))}else a=n&~i,a!==0?r=fu(a):o!==0&&(r=fu(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-pr(t),i=1<<n,r|=e[n],t&=~i;return r}function TD(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _D(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-pr(o),s=1<<a,u=i[a];u===-1?(!(s&n)||s&r)&&(i[a]=TD(s,t)):u<=t&&(e.expiredLanes|=s),o&=~s}}function Hh(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Kx(){var e=Ic;return Ic<<=1,!(Ic&4194240)&&(Ic=64),e}function Vh(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function pu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-pr(t),e[t]=n}function CD(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-pr(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function $h(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-pr(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var qe=0;function Xx(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Qx,Wh,Zx,Jx,ew,Yh=!1,Lc=[],Di=null,Li=null,Mi=null,hu=new Map,mu=new Map,Fi=[],SD="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function tw(e,t){switch(e){case"focusin":case"focusout":Di=null;break;case"dragenter":case"dragleave":Li=null;break;case"mouseover":case"mouseout":Mi=null;break;case"pointerover":case"pointerout":hu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":mu.delete(t.pointerId)}}function gu(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Nu(t),t!==null&&Wh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function AD(e,t,n,r,i){switch(t){case"focusin":return Di=gu(Di,e,t,n,r,i),!0;case"dragenter":return Li=gu(Li,e,t,n,r,i),!0;case"mouseover":return Mi=gu(Mi,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return hu.set(o,gu(hu.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,mu.set(o,gu(mu.get(o)||null,e,t,n,r,i)),!0}return!1}function nw(e){var t=Uo(e.target);if(t!==null){var n=jo(t);if(n!==null){if(t=n.tag,t===13){if(t=zx(n),t!==null){e.blockedOn=t,ew(e.priority,function(){Zx(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Mc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gh(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Lh=r,n.target.dispatchEvent(r),Lh=null}else return t=Nu(n),t!==null&&Wh(t),e.blockedOn=n,!1;t.shift()}return!0}function rw(e,t,n){Mc(e)&&n.delete(t)}function kD(){Yh=!1,Di!==null&&Mc(Di)&&(Di=null),Li!==null&&Mc(Li)&&(Li=null),Mi!==null&&Mc(Mi)&&(Mi=null),hu.forEach(rw),mu.forEach(rw)}function yu(e,t){e.blockedOn===t&&(e.blockedOn=null,Yh||(Yh=!0,In.unstable_scheduleCallback(In.unstable_NormalPriority,kD)))}function vu(e){function t(i){return yu(i,e)}if(0<Lc.length){yu(Lc[0],e);for(var n=1;n<Lc.length;n++){var r=Lc[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Di!==null&&yu(Di,e),Li!==null&&yu(Li,e),Mi!==null&&yu(Mi,e),hu.forEach(t),mu.forEach(t),n=0;n<Fi.length;n++)r=Fi[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Fi.length&&(n=Fi[0],n.blockedOn===null);)nw(n),n.blockedOn===null&&Fi.shift()}var Oa=ti.ReactCurrentBatchConfig,Fc=!0;function RD(e,t,n,r){var i=qe,o=Oa.transition;Oa.transition=null;try{qe=1,qh(e,t,n,r)}finally{qe=i,Oa.transition=o}}function ND(e,t,n,r){var i=qe,o=Oa.transition;Oa.transition=null;try{qe=4,qh(e,t,n,r)}finally{qe=i,Oa.transition=o}}function qh(e,t,n,r){if(Fc){var i=Gh(e,t,n,r);if(i===null)dm(e,t,r,Bc,n),tw(e,r);else if(AD(i,e,t,n,r))r.stopPropagation();else if(tw(e,r),t&4&&-1<SD.indexOf(e)){for(;i!==null;){var o=Nu(i);if(o!==null&&Qx(o),o=Gh(e,t,n,r),o===null&&dm(e,t,r,Bc,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else dm(e,t,r,null,n)}}var Bc=null;function Gh(e,t,n,r){if(Bc=null,e=Mh(r),e=Uo(e),e!==null)if(t=jo(e),t===null)e=null;else if(n=t.tag,n===13){if(e=zx(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Bc=e,null}function iw(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(yD()){case zh:return 1;case qx:return 4;case Nc:case vD:return 16;case Gx:return 536870912;default:return 16}default:return 16}}var Bi=null,Kh=null,jc=null;function ow(){if(jc)return jc;var e,t=Kh,n=t.length,r,i="value"in Bi?Bi.value:Bi.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return jc=i.slice(e,1<r?1-r:void 0)}function Uc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function zc(){return!0}function aw(){return!1}function On(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?zc:aw,this.isPropagationStopped=aw,this}return lt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=zc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=zc)},persist:function(){},isPersistent:zc}),t}var Da={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xh=On(Da),xu=lt({},Da,{view:0,detail:0}),PD=On(xu),Qh,Zh,wu,Hc=lt({},xu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:em,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==wu&&(wu&&e.type==="mousemove"?(Qh=e.screenX-wu.screenX,Zh=e.screenY-wu.screenY):Zh=Qh=0,wu=e),Qh)},movementY:function(e){return"movementY"in e?e.movementY:Zh}}),sw=On(Hc),ID=lt({},Hc,{dataTransfer:0}),OD=On(ID),DD=lt({},xu,{relatedTarget:0}),Jh=On(DD),LD=lt({},Da,{animationName:0,elapsedTime:0,pseudoElement:0}),MD=On(LD),FD=lt({},Da,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),BD=On(FD),jD=lt({},Da,{data:0}),uw=On(jD),UD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zD={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},HD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function VD(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=HD[e])?!!t[e]:!1}function em(){return VD}var $D=lt({},xu,{key:function(e){if(e.key){var t=UD[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Uc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?zD[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:em,charCode:function(e){return e.type==="keypress"?Uc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Uc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),WD=On($D),YD=lt({},Hc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lw=On(YD),qD=lt({},xu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:em}),GD=On(qD),KD=lt({},Da,{propertyName:0,elapsedTime:0,pseudoElement:0}),XD=On(KD),QD=lt({},Hc,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ZD=On(QD),JD=[9,13,27,32],tm=ei&&"CompositionEvent"in window,bu=null;ei&&"documentMode"in document&&(bu=document.documentMode);var e6=ei&&"TextEvent"in window&&!bu,cw=ei&&(!tm||bu&&8<bu&&11>=bu),dw=" ",fw=!1;function pw(e,t){switch(e){case"keyup":return JD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var La=!1;function t6(e,t){switch(e){case"compositionend":return hw(t);case"keypress":return t.which!==32?null:(fw=!0,dw);case"textInput":return e=t.data,e===dw&&fw?null:e;default:return null}}function n6(e,t){if(La)return e==="compositionend"||!tm&&pw(e,t)?(e=ow(),jc=Kh=Bi=null,La=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return cw&&t.locale!=="ko"?null:t.data;default:return null}}var r6={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function mw(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!r6[e.type]:t==="textarea"}function gw(e,t,n,r){Mx(r),t=qc(t,"onChange"),0<t.length&&(n=new Xh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Eu=null,Tu=null;function i6(e){Dw(e,0)}function Vc(e){var t=Ua(e);if(_x(t))return e}function o6(e,t){if(e==="change")return t}var yw=!1;if(ei){var nm;if(ei){var rm="oninput"in document;if(!rm){var vw=document.createElement("div");vw.setAttribute("oninput","return;"),rm=typeof vw.oninput=="function"}nm=rm}else nm=!1;yw=nm&&(!document.documentMode||9<document.documentMode)}function xw(){Eu&&(Eu.detachEvent("onpropertychange",ww),Tu=Eu=null)}function ww(e){if(e.propertyName==="value"&&Vc(Tu)){var t=[];gw(t,Tu,e,Mh(e)),Ux(i6,t)}}function a6(e,t,n){e==="focusin"?(xw(),Eu=t,Tu=n,Eu.attachEvent("onpropertychange",ww)):e==="focusout"&&xw()}function s6(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Vc(Tu)}function u6(e,t){if(e==="click")return Vc(t)}function l6(e,t){if(e==="input"||e==="change")return Vc(t)}function c6(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hr=typeof Object.is=="function"?Object.is:c6;function _u(e,t){if(hr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!hh.call(t,i)||!hr(e[i],t[i]))return!1}return!0}function bw(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ew(e,t){var n=bw(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=bw(n)}}function Tw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Tw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _w(){for(var e=window,t=Sc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Sc(e.document)}return t}function im(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function d6(e){var t=_w(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Tw(n.ownerDocument.documentElement,n)){if(r!==null&&im(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Ew(n,o);var a=Ew(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var f6=ei&&"documentMode"in document&&11>=document.documentMode,Ma=null,om=null,Cu=null,am=!1;function Cw(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;am||Ma==null||Ma!==Sc(r)||(r=Ma,"selectionStart"in r&&im(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Cu&&_u(Cu,r)||(Cu=r,r=qc(om,"onSelect"),0<r.length&&(t=new Xh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ma)))}function $c(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Fa={animationend:$c("Animation","AnimationEnd"),animationiteration:$c("Animation","AnimationIteration"),animationstart:$c("Animation","AnimationStart"),transitionend:$c("Transition","TransitionEnd")},sm={},Sw={};ei&&(Sw=document.createElement("div").style,"AnimationEvent"in window||(delete Fa.animationend.animation,delete Fa.animationiteration.animation,delete Fa.animationstart.animation),"TransitionEvent"in window||delete Fa.transitionend.transition);function Wc(e){if(sm[e])return sm[e];if(!Fa[e])return e;var t=Fa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Sw)return sm[e]=t[n];return e}var Aw=Wc("animationend"),kw=Wc("animationiteration"),Rw=Wc("animationstart"),Nw=Wc("transitionend"),Pw=new Map,Iw="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ji(e,t){Pw.set(e,t),Bo(t,[e])}for(var um=0;um<Iw.length;um++){var lm=Iw[um],p6=lm.toLowerCase(),h6=lm[0].toUpperCase()+lm.slice(1);ji(p6,"on"+h6)}ji(Aw,"onAnimationEnd"),ji(kw,"onAnimationIteration"),ji(Rw,"onAnimationStart"),ji("dblclick","onDoubleClick"),ji("focusin","onFocus"),ji("focusout","onBlur"),ji(Nw,"onTransitionEnd"),Aa("onMouseEnter",["mouseout","mouseover"]),Aa("onMouseLeave",["mouseout","mouseover"]),Aa("onPointerEnter",["pointerout","pointerover"]),Aa("onPointerLeave",["pointerout","pointerover"]),Bo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Bo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Bo("onBeforeInput",["compositionend","keypress","textInput","paste"]),Bo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Bo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Bo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Su="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),m6=new Set("cancel close invalid load scroll toggle".split(" ").concat(Su));function Ow(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,pD(r,t,void 0,e),e.currentTarget=null}function Dw(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==o&&i.isPropagationStopped())break e;Ow(i,s,l),o=u}else for(a=0;a<r.length;a++){if(s=r[a],u=s.instance,l=s.currentTarget,s=s.listener,u!==o&&i.isPropagationStopped())break e;Ow(i,s,l),o=u}}}if(Rc)throw e=Uh,Rc=!1,Uh=null,e}function tt(e,t){var n=t[ym];n===void 0&&(n=t[ym]=new Set);var r=e+"__bubble";n.has(r)||(Lw(t,e,2,!1),n.add(r))}function cm(e,t,n){var r=0;t&&(r|=4),Lw(n,e,r,t)}var Yc="_reactListening"+Math.random().toString(36).slice(2);function Au(e){if(!e[Yc]){e[Yc]=!0,gx.forEach(function(n){n!=="selectionchange"&&(m6.has(n)||cm(n,!1,e),cm(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yc]||(t[Yc]=!0,cm("selectionchange",!1,t))}}function Lw(e,t,n,r){switch(iw(t)){case 1:var i=RD;break;case 4:i=ND;break;default:i=qh}n=i.bind(null,t,n,e),i=void 0,!jh||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function dm(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var u=a.tag;if((u===3||u===4)&&(u=a.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;a=a.return}for(;s!==null;){if(a=Uo(s),a===null)return;if(u=a.tag,u===5||u===6){r=o=a;continue e}s=s.parentNode}}r=r.return}Ux(function(){var l=o,c=Mh(n),d=[];e:{var f=Pw.get(e);if(f!==void 0){var p=Xh,m=e;switch(e){case"keypress":if(Uc(n)===0)break e;case"keydown":case"keyup":p=WD;break;case"focusin":m="focus",p=Jh;break;case"focusout":m="blur",p=Jh;break;case"beforeblur":case"afterblur":p=Jh;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=sw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=OD;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=GD;break;case Aw:case kw:case Rw:p=MD;break;case Nw:p=XD;break;case"scroll":p=PD;break;case"wheel":p=ZD;break;case"copy":case"cut":case"paste":p=BD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=lw}var y=(t&4)!==0,b=!y&&e==="scroll",g=y?f!==null?f+"Capture":null:f;y=[];for(var x=l,w;x!==null;){w=x;var T=w.stateNode;if(w.tag===5&&T!==null&&(w=T,g!==null&&(T=lu(x,g),T!=null&&y.push(ku(x,T,w)))),b)break;x=x.return}0<y.length&&(f=new p(f,m,null,n,c),d.push({event:f,listeners:y}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==Lh&&(m=n.relatedTarget||n.fromElement)&&(Uo(m)||m[ni]))break e;if((p||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,p?(m=n.relatedTarget||n.toElement,p=l,m=m?Uo(m):null,m!==null&&(b=jo(m),m!==b||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=l),p!==m)){if(y=sw,T="onMouseLeave",g="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(y=lw,T="onPointerLeave",g="onPointerEnter",x="pointer"),b=p==null?f:Ua(p),w=m==null?f:Ua(m),f=new y(T,x+"leave",p,n,c),f.target=b,f.relatedTarget=w,T=null,Uo(c)===l&&(y=new y(g,x+"enter",m,n,c),y.target=w,y.relatedTarget=b,T=y),b=T,p&&m)t:{for(y=p,g=m,x=0,w=y;w;w=Ba(w))x++;for(w=0,T=g;T;T=Ba(T))w++;for(;0<x-w;)y=Ba(y),x--;for(;0<w-x;)g=Ba(g),w--;for(;x--;){if(y===g||g!==null&&y===g.alternate)break t;y=Ba(y),g=Ba(g)}y=null}else y=null;p!==null&&Mw(d,f,p,y,!1),m!==null&&b!==null&&Mw(d,b,m,y,!0)}}e:{if(f=l?Ua(l):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var _=o6;else if(mw(f))if(yw)_=l6;else{_=s6;var C=a6}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(_=u6);if(_&&(_=_(e,l))){gw(d,_,n,c);break e}C&&C(e,f,l),e==="focusout"&&(C=f._wrapperState)&&C.controlled&&f.type==="number"&&Nh(f,"number",f.value)}switch(C=l?Ua(l):window,e){case"focusin":(mw(C)||C.contentEditable==="true")&&(Ma=C,om=l,Cu=null);break;case"focusout":Cu=om=Ma=null;break;case"mousedown":am=!0;break;case"contextmenu":case"mouseup":case"dragend":am=!1,Cw(d,n,c);break;case"selectionchange":if(f6)break;case"keydown":case"keyup":Cw(d,n,c)}var R;if(tm)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else La?pw(e,n)&&(O="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(cw&&n.locale!=="ko"&&(La||O!=="onCompositionStart"?O==="onCompositionEnd"&&La&&(R=ow()):(Bi=c,Kh="value"in Bi?Bi.value:Bi.textContent,La=!0)),C=qc(l,O),0<C.length&&(O=new uw(O,e,null,n,c),d.push({event:O,listeners:C}),R?O.data=R:(R=hw(n),R!==null&&(O.data=R)))),(R=e6?t6(e,n):n6(e,n))&&(l=qc(l,"onBeforeInput"),0<l.length&&(c=new uw("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:l}),c.data=R))}Dw(d,t)})}function ku(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qc(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=lu(e,n),o!=null&&r.unshift(ku(e,o,i)),o=lu(e,t),o!=null&&r.push(ku(e,o,i))),e=e.return}return r}function Ba(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Mw(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,u=s.alternate,l=s.stateNode;if(u!==null&&u===r)break;s.tag===5&&l!==null&&(s=l,i?(u=lu(n,o),u!=null&&a.unshift(ku(n,u,s))):i||(u=lu(n,o),u!=null&&a.push(ku(n,u,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var g6=/\r\n?/g,y6=/\u0000|\uFFFD/g;function Fw(e){return(typeof e=="string"?e:""+e).replace(g6,`
38
38
  `).replace(y6,"")}function Gc(e,t,n){if(t=Fw(t),Fw(e)!==t&&n)throw Error(Z(425))}function Kc(){}var fm=null,pm=null;function hm(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var mm=typeof setTimeout=="function"?setTimeout:void 0,v6=typeof clearTimeout=="function"?clearTimeout:void 0,Bw=typeof Promise=="function"?Promise:void 0,x6=typeof queueMicrotask=="function"?queueMicrotask:typeof Bw<"u"?function(e){return Bw.resolve(null).then(e).catch(w6)}:mm;function w6(e){setTimeout(function(){throw e})}function gm(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),vu(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);vu(t)}function Ui(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function jw(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ja=Math.random().toString(36).slice(2),Or="__reactFiber$"+ja,Ru="__reactProps$"+ja,ni="__reactContainer$"+ja,ym="__reactEvents$"+ja,b6="__reactListeners$"+ja,E6="__reactHandles$"+ja;function Uo(e){var t=e[Or];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ni]||n[Or]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=jw(e);e!==null;){if(n=e[Or])return n;e=jw(e)}return t}e=n,n=e.parentNode}return null}function Nu(e){return e=e[Or]||e[ni],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ua(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Z(33))}function Xc(e){return e[Ru]||null}var vm=[],za=-1;function zi(e){return{current:e}}function nt(e){0>za||(e.current=vm[za],vm[za]=null,za--)}function Je(e,t){za++,vm[za]=e.current,e.current=t}var Hi={},Gt=zi(Hi),vn=zi(!1),zo=Hi;function Ha(e,t){var n=e.type.contextTypes;if(!n)return Hi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function xn(e){return e=e.childContextTypes,e!=null}function Qc(){nt(vn),nt(Gt)}function Uw(e,t,n){if(Gt.current!==Hi)throw Error(Z(168));Je(Gt,t),Je(vn,n)}function zw(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Z(108,aD(e)||"Unknown",i));return lt({},n,r)}function Zc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Hi,zo=Gt.current,Je(Gt,e),Je(vn,vn.current),!0}function Hw(e,t,n){var r=e.stateNode;if(!r)throw Error(Z(169));n?(e=zw(e,t,zo),r.__reactInternalMemoizedMergedChildContext=e,nt(vn),nt(Gt),Je(Gt,e)):nt(vn),Je(vn,n)}var ri=null,Jc=!1,xm=!1;function Vw(e){ri===null?ri=[e]:ri.push(e)}function T6(e){Jc=!0,Vw(e)}function Vi(){if(!xm&&ri!==null){xm=!0;var e=0,t=qe;try{var n=ri;for(qe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ri=null,Jc=!1}catch(i){throw ri!==null&&(ri=ri.slice(e+1)),Wx(zh,Vi),i}finally{qe=t,xm=!1}}return null}var Va=[],$a=0,ed=null,td=0,Xn=[],Qn=0,Ho=null,ii=1,oi="";function Vo(e,t){Va[$a++]=td,Va[$a++]=ed,ed=e,td=t}function $w(e,t,n){Xn[Qn++]=ii,Xn[Qn++]=oi,Xn[Qn++]=Ho,Ho=e;var r=ii;e=oi;var i=32-pr(r)-1;r&=~(1<<i),n+=1;var o=32-pr(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,ii=1<<32-pr(t)+i|n<<i|r,oi=o+e}else ii=1<<o|n<<i|r,oi=e}function wm(e){e.return!==null&&(Vo(e,1),$w(e,1,0))}function bm(e){for(;e===ed;)ed=Va[--$a],Va[$a]=null,td=Va[--$a],Va[$a]=null;for(;e===Ho;)Ho=Xn[--Qn],Xn[Qn]=null,oi=Xn[--Qn],Xn[Qn]=null,ii=Xn[--Qn],Xn[Qn]=null}var Dn=null,Ln=null,ot=!1,mr=null;function Ww(e,t){var n=tr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Yw(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Dn=e,Ln=Ui(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Dn=e,Ln=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ho!==null?{id:ii,overflow:oi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=tr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Dn=e,Ln=null,!0):!1;default:return!1}}function Em(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Tm(e){if(ot){var t=Ln;if(t){var n=t;if(!Yw(e,t)){if(Em(e))throw Error(Z(418));t=Ui(n.nextSibling);var r=Dn;t&&Yw(e,t)?Ww(r,n):(e.flags=e.flags&-4097|2,ot=!1,Dn=e)}}else{if(Em(e))throw Error(Z(418));e.flags=e.flags&-4097|2,ot=!1,Dn=e}}}function qw(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Dn=e}function nd(e){if(e!==Dn)return!1;if(!ot)return qw(e),ot=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!hm(e.type,e.memoizedProps)),t&&(t=Ln)){if(Em(e))throw Gw(),Error(Z(418));for(;t;)Ww(e,t),t=Ui(t.nextSibling)}if(qw(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Z(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ln=Ui(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ln=null}}else Ln=Dn?Ui(e.stateNode.nextSibling):null;return!0}function Gw(){for(var e=Ln;e;)e=Ui(e.nextSibling)}function Wa(){Ln=Dn=null,ot=!1}function _m(e){mr===null?mr=[e]:mr.push(e)}var _6=ti.ReactCurrentBatchConfig;function Pu(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Z(309));var r=n.stateNode}if(!r)throw Error(Z(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var s=i.refs;a===null?delete s[o]:s[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(Z(284));if(!n._owner)throw Error(Z(290,e))}return e}function rd(e,t){throw e=Object.prototype.toString.call(t),Error(Z(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Kw(e){var t=e._init;return t(e._payload)}function Xw(e){function t(g,x){if(e){var w=g.deletions;w===null?(g.deletions=[x],g.flags|=16):w.push(x)}}function n(g,x){if(!e)return null;for(;x!==null;)t(g,x),x=x.sibling;return null}function r(g,x){for(g=new Map;x!==null;)x.key!==null?g.set(x.key,x):g.set(x.index,x),x=x.sibling;return g}function i(g,x){return g=Qi(g,x),g.index=0,g.sibling=null,g}function o(g,x,w){return g.index=w,e?(w=g.alternate,w!==null?(w=w.index,w<x?(g.flags|=2,x):w):(g.flags|=2,x)):(g.flags|=1048576,x)}function a(g){return e&&g.alternate===null&&(g.flags|=2),g}function s(g,x,w,T){return x===null||x.tag!==6?(x=mg(w,g.mode,T),x.return=g,x):(x=i(x,w),x.return=g,x)}function u(g,x,w,T){var _=w.type;return _===Ra?c(g,x,w.props.children,T,w.key):x!==null&&(x.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ii&&Kw(_)===x.type)?(T=i(x,w.props),T.ref=Pu(g,x,w),T.return=g,T):(T=Ad(w.type,w.key,w.props,null,g.mode,T),T.ref=Pu(g,x,w),T.return=g,T)}function l(g,x,w,T){return x===null||x.tag!==4||x.stateNode.containerInfo!==w.containerInfo||x.stateNode.implementation!==w.implementation?(x=gg(w,g.mode,T),x.return=g,x):(x=i(x,w.children||[]),x.return=g,x)}function c(g,x,w,T,_){return x===null||x.tag!==7?(x=Qo(w,g.mode,T,_),x.return=g,x):(x=i(x,w),x.return=g,x)}function d(g,x,w){if(typeof x=="string"&&x!==""||typeof x=="number")return x=mg(""+x,g.mode,w),x.return=g,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case _c:return w=Ad(x.type,x.key,x.props,null,g.mode,w),w.ref=Pu(g,null,x),w.return=g,w;case ka:return x=gg(x,g.mode,w),x.return=g,x;case Ii:var T=x._init;return d(g,T(x._payload),w)}if(au(x)||iu(x))return x=Qo(x,g.mode,w,null),x.return=g,x;rd(g,x)}return null}function f(g,x,w,T){var _=x!==null?x.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return _!==null?null:s(g,x,""+w,T);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case _c:return w.key===_?u(g,x,w,T):null;case ka:return w.key===_?l(g,x,w,T):null;case Ii:return _=w._init,f(g,x,_(w._payload),T)}if(au(w)||iu(w))return _!==null?null:c(g,x,w,T,null);rd(g,w)}return null}function p(g,x,w,T,_){if(typeof T=="string"&&T!==""||typeof T=="number")return g=g.get(w)||null,s(x,g,""+T,_);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case _c:return g=g.get(T.key===null?w:T.key)||null,u(x,g,T,_);case ka:return g=g.get(T.key===null?w:T.key)||null,l(x,g,T,_);case Ii:var C=T._init;return p(g,x,w,C(T._payload),_)}if(au(T)||iu(T))return g=g.get(w)||null,c(x,g,T,_,null);rd(x,T)}return null}function m(g,x,w,T){for(var _=null,C=null,R=x,O=x=0,V=null;R!==null&&O<w.length;O++){R.index>O?(V=R,R=null):V=R.sibling;var P=f(g,R,w[O],T);if(P===null){R===null&&(R=V);break}e&&R&&P.alternate===null&&t(g,R),x=o(P,x,O),C===null?_=P:C.sibling=P,C=P,R=V}if(O===w.length)return n(g,R),ot&&Vo(g,O),_;if(R===null){for(;O<w.length;O++)R=d(g,w[O],T),R!==null&&(x=o(R,x,O),C===null?_=R:C.sibling=R,C=R);return ot&&Vo(g,O),_}for(R=r(g,R);O<w.length;O++)V=p(R,g,O,w[O],T),V!==null&&(e&&V.alternate!==null&&R.delete(V.key===null?O:V.key),x=o(V,x,O),C===null?_=V:C.sibling=V,C=V);return e&&R.forEach(function($){return t(g,$)}),ot&&Vo(g,O),_}function y(g,x,w,T){var _=iu(w);if(typeof _!="function")throw Error(Z(150));if(w=_.call(w),w==null)throw Error(Z(151));for(var C=_=null,R=x,O=x=0,V=null,P=w.next();R!==null&&!P.done;O++,P=w.next()){R.index>O?(V=R,R=null):V=R.sibling;var $=f(g,R,P.value,T);if($===null){R===null&&(R=V);break}e&&R&&$.alternate===null&&t(g,R),x=o($,x,O),C===null?_=$:C.sibling=$,C=$,R=V}if(P.done)return n(g,R),ot&&Vo(g,O),_;if(R===null){for(;!P.done;O++,P=w.next())P=d(g,P.value,T),P!==null&&(x=o(P,x,O),C===null?_=P:C.sibling=P,C=P);return ot&&Vo(g,O),_}for(R=r(g,R);!P.done;O++,P=w.next())P=p(R,g,O,P.value,T),P!==null&&(e&&P.alternate!==null&&R.delete(P.key===null?O:P.key),x=o(P,x,O),C===null?_=P:C.sibling=P,C=P);return e&&R.forEach(function(z){return t(g,z)}),ot&&Vo(g,O),_}function b(g,x,w,T){if(typeof w=="object"&&w!==null&&w.type===Ra&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case _c:e:{for(var _=w.key,C=x;C!==null;){if(C.key===_){if(_=w.type,_===Ra){if(C.tag===7){n(g,C.sibling),x=i(C,w.props.children),x.return=g,g=x;break e}}else if(C.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ii&&Kw(_)===C.type){n(g,C.sibling),x=i(C,w.props),x.ref=Pu(g,C,w),x.return=g,g=x;break e}n(g,C);break}else t(g,C);C=C.sibling}w.type===Ra?(x=Qo(w.props.children,g.mode,T,w.key),x.return=g,g=x):(T=Ad(w.type,w.key,w.props,null,g.mode,T),T.ref=Pu(g,x,w),T.return=g,g=T)}return a(g);case ka:e:{for(C=w.key;x!==null;){if(x.key===C)if(x.tag===4&&x.stateNode.containerInfo===w.containerInfo&&x.stateNode.implementation===w.implementation){n(g,x.sibling),x=i(x,w.children||[]),x.return=g,g=x;break e}else{n(g,x);break}else t(g,x);x=x.sibling}x=gg(w,g.mode,T),x.return=g,g=x}return a(g);case Ii:return C=w._init,b(g,x,C(w._payload),T)}if(au(w))return m(g,x,w,T);if(iu(w))return y(g,x,w,T);rd(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,x!==null&&x.tag===6?(n(g,x.sibling),x=i(x,w),x.return=g,g=x):(n(g,x),x=mg(w,g.mode,T),x.return=g,g=x),a(g)):n(g,x)}return b}var Ya=Xw(!0),Qw=Xw(!1),id=zi(null),od=null,qa=null,Cm=null;function Sm(){Cm=qa=od=null}function Am(e){var t=id.current;nt(id),e._currentValue=t}function km(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ga(e,t){od=e,Cm=qa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(wn=!0),e.firstContext=null)}function Zn(e){var t=e._currentValue;if(Cm!==e)if(e={context:e,memoizedValue:t,next:null},qa===null){if(od===null)throw Error(Z(308));qa=e,od.dependencies={lanes:0,firstContext:e}}else qa=qa.next=e;return t}var $o=null;function Rm(e){$o===null?$o=[e]:$o.push(e)}function Zw(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Rm(t)):(n.next=i.next,i.next=n),t.interleaved=n,ai(e,r)}function ai(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var $i=!1;function Nm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jw(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function si(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ue&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,ai(e,n)}return i=r.interleaved,i===null?(t.next=t,Rm(r)):(t.next=i.next,i.next=t),r.interleaved=t,ai(e,n)}function ad(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$h(e,n)}}function eb(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function sd(e,t,n,r){var i=e.updateQueue;$i=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var u=s,l=u.next;u.next=null,a===null?o=l:a.next=l,a=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==a&&(s===null?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u))}if(o!==null){var d=i.baseState;a=0,c=l=u=null,s=o;do{var f=s.lane,p=s.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,y=s;switch(f=t,p=n,y.tag){case 1:if(m=y.payload,typeof m=="function"){d=m.call(p,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,f=typeof m=="function"?m.call(p,d,f):m,f==null)break e;d=lt({},d,f);break e;case 2:$i=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(l=c=p,u=d):c=c.next=p,a|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(u=d),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);qo|=a,e.lanes=a,e.memoizedState=d}}function tb(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(Z(191,i));i.call(r)}}}var Iu={},Dr=zi(Iu),Ou=zi(Iu),Du=zi(Iu);function Wo(e){if(e===Iu)throw Error(Z(174));return e}function Pm(e,t){switch(Je(Du,t),Je(Ou,e),Je(Dr,Iu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ih(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ih(t,e)}nt(Dr),Je(Dr,t)}function Ka(){nt(Dr),nt(Ou),nt(Du)}function nb(e){Wo(Du.current);var t=Wo(Dr.current),n=Ih(t,e.type);t!==n&&(Je(Ou,e),Je(Dr,n))}function Im(e){Ou.current===e&&(nt(Dr),nt(Ou))}var ct=zi(0);function ud(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Om=[];function Dm(){for(var e=0;e<Om.length;e++)Om[e]._workInProgressVersionPrimary=null;Om.length=0}var ld=ti.ReactCurrentDispatcher,Lm=ti.ReactCurrentBatchConfig,Yo=0,dt=null,Rt=null,Dt=null,cd=!1,Lu=!1,Mu=0,C6=0;function Kt(){throw Error(Z(321))}function Mm(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!hr(e[n],t[n]))return!1;return!0}function Fm(e,t,n,r,i,o){if(Yo=o,dt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ld.current=e===null||e.memoizedState===null?R6:N6,e=n(r,i),Lu){o=0;do{if(Lu=!1,Mu=0,25<=o)throw Error(Z(301));o+=1,Dt=Rt=null,t.updateQueue=null,ld.current=P6,e=n(r,i)}while(Lu)}if(ld.current=pd,t=Rt!==null&&Rt.next!==null,Yo=0,Dt=Rt=dt=null,cd=!1,t)throw Error(Z(300));return e}function Bm(){var e=Mu!==0;return Mu=0,e}function Lr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dt===null?dt.memoizedState=Dt=e:Dt=Dt.next=e,Dt}function Jn(){if(Rt===null){var e=dt.alternate;e=e!==null?e.memoizedState:null}else e=Rt.next;var t=Dt===null?dt.memoizedState:Dt.next;if(t!==null)Dt=t,Rt=e;else{if(e===null)throw Error(Z(310));Rt=e,e={memoizedState:Rt.memoizedState,baseState:Rt.baseState,baseQueue:Rt.baseQueue,queue:Rt.queue,next:null},Dt===null?dt.memoizedState=Dt=e:Dt=Dt.next=e}return Dt}function Fu(e,t){return typeof t=="function"?t(e):t}function jm(e){var t=Jn(),n=t.queue;if(n===null)throw Error(Z(311));n.lastRenderedReducer=e;var r=Rt,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var s=a=null,u=null,l=o;do{var c=l.lane;if((Yo&c)===c)u!==null&&(u=u.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),r=l.hasEagerState?l.eagerState:e(r,l.action);else{var d={lane:c,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};u===null?(s=u=d,a=r):u=u.next=d,dt.lanes|=c,qo|=c}l=l.next}while(l!==null&&l!==o);u===null?a=r:u.next=s,hr(r,t.memoizedState)||(wn=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,dt.lanes|=o,qo|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Um(e){var t=Jn(),n=t.queue;if(n===null)throw Error(Z(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);hr(o,t.memoizedState)||(wn=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function rb(){}function ib(e,t){var n=dt,r=Jn(),i=t(),o=!hr(r.memoizedState,i);if(o&&(r.memoizedState=i,wn=!0),r=r.queue,zm(sb.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Dt!==null&&Dt.memoizedState.tag&1){if(n.flags|=2048,Bu(9,ab.bind(null,n,r,i,t),void 0,null),Lt===null)throw Error(Z(349));Yo&30||ob(n,t,i)}return i}function ob(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=dt.updateQueue,t===null?(t={lastEffect:null,stores:null},dt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ab(e,t,n,r){t.value=n,t.getSnapshot=r,ub(t)&&lb(e)}function sb(e,t,n){return n(function(){ub(t)&&lb(e)})}function ub(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!hr(e,n)}catch{return!0}}function lb(e){var t=ai(e,1);t!==null&&xr(t,e,1,-1)}function cb(e){var t=Lr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Fu,lastRenderedState:e},t.queue=e,e=e.dispatch=k6.bind(null,dt,e),[t.memoizedState,e]}function Bu(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=dt.updateQueue,t===null?(t={lastEffect:null,stores:null},dt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function db(){return Jn().memoizedState}function dd(e,t,n,r){var i=Lr();dt.flags|=e,i.memoizedState=Bu(1|t,n,void 0,r===void 0?null:r)}function fd(e,t,n,r){var i=Jn();r=r===void 0?null:r;var o=void 0;if(Rt!==null){var a=Rt.memoizedState;if(o=a.destroy,r!==null&&Mm(r,a.deps)){i.memoizedState=Bu(t,n,o,r);return}}dt.flags|=e,i.memoizedState=Bu(1|t,n,o,r)}function fb(e,t){return dd(8390656,8,e,t)}function zm(e,t){return fd(2048,8,e,t)}function pb(e,t){return fd(4,2,e,t)}function hb(e,t){return fd(4,4,e,t)}function mb(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function gb(e,t,n){return n=n!=null?n.concat([e]):null,fd(4,4,mb.bind(null,t,e),n)}function Hm(){}function yb(e,t){var n=Jn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Mm(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function vb(e,t){var n=Jn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Mm(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function xb(e,t,n){return Yo&21?(hr(n,t)||(n=Kx(),dt.lanes|=n,qo|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,wn=!0),e.memoizedState=n)}function S6(e,t){var n=qe;qe=n!==0&&4>n?n:4,e(!0);var r=Lm.transition;Lm.transition={};try{e(!1),t()}finally{qe=n,Lm.transition=r}}function wb(){return Jn().memoizedState}function A6(e,t,n){var r=Ki(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bb(e))Eb(t,n);else if(n=Zw(e,t,n,r),n!==null){var i=fn();xr(n,e,r,i),Tb(n,t,r)}}function k6(e,t,n){var r=Ki(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bb(e))Eb(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,hr(s,a)){var u=t.interleaved;u===null?(i.next=i,Rm(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=Zw(e,t,i,r),n!==null&&(i=fn(),xr(n,e,r,i),Tb(n,t,r))}}function bb(e){var t=e.alternate;return e===dt||t!==null&&t===dt}function Eb(e,t){Lu=cd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Tb(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$h(e,n)}}var pd={readContext:Zn,useCallback:Kt,useContext:Kt,useEffect:Kt,useImperativeHandle:Kt,useInsertionEffect:Kt,useLayoutEffect:Kt,useMemo:Kt,useReducer:Kt,useRef:Kt,useState:Kt,useDebugValue:Kt,useDeferredValue:Kt,useTransition:Kt,useMutableSource:Kt,useSyncExternalStore:Kt,useId:Kt,unstable_isNewReconciler:!1},R6={readContext:Zn,useCallback:function(e,t){return Lr().memoizedState=[e,t===void 0?null:t],e},useContext:Zn,useEffect:fb,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,dd(4194308,4,mb.bind(null,t,e),n)},useLayoutEffect:function(e,t){return dd(4194308,4,e,t)},useInsertionEffect:function(e,t){return dd(4,2,e,t)},useMemo:function(e,t){var n=Lr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Lr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=A6.bind(null,dt,e),[r.memoizedState,e]},useRef:function(e){var t=Lr();return e={current:e},t.memoizedState=e},useState:cb,useDebugValue:Hm,useDeferredValue:function(e){return Lr().memoizedState=e},useTransition:function(){var e=cb(!1),t=e[0];return e=S6.bind(null,e[1]),Lr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=dt,i=Lr();if(ot){if(n===void 0)throw Error(Z(407));n=n()}else{if(n=t(),Lt===null)throw Error(Z(349));Yo&30||ob(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,fb(sb.bind(null,r,o,e),[e]),r.flags|=2048,Bu(9,ab.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Lr(),t=Lt.identifierPrefix;if(ot){var n=oi,r=ii;n=(r&~(1<<32-pr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Mu++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=C6++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},N6={readContext:Zn,useCallback:yb,useContext:Zn,useEffect:zm,useImperativeHandle:gb,useInsertionEffect:pb,useLayoutEffect:hb,useMemo:vb,useReducer:jm,useRef:db,useState:function(){return jm(Fu)},useDebugValue:Hm,useDeferredValue:function(e){var t=Jn();return xb(t,Rt.memoizedState,e)},useTransition:function(){var e=jm(Fu)[0],t=Jn().memoizedState;return[e,t]},useMutableSource:rb,useSyncExternalStore:ib,useId:wb,unstable_isNewReconciler:!1},P6={readContext:Zn,useCallback:yb,useContext:Zn,useEffect:zm,useImperativeHandle:gb,useInsertionEffect:pb,useLayoutEffect:hb,useMemo:vb,useReducer:Um,useRef:db,useState:function(){return Um(Fu)},useDebugValue:Hm,useDeferredValue:function(e){var t=Jn();return Rt===null?t.memoizedState=e:xb(t,Rt.memoizedState,e)},useTransition:function(){var e=Um(Fu)[0],t=Jn().memoizedState;return[e,t]},useMutableSource:rb,useSyncExternalStore:ib,useId:wb,unstable_isNewReconciler:!1};function gr(e,t){if(e&&e.defaultProps){t=lt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Vm(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:lt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var hd={isMounted:function(e){return(e=e._reactInternals)?jo(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fn(),i=Ki(e),o=si(r,i);o.payload=t,n!=null&&(o.callback=n),t=Wi(e,o,i),t!==null&&(xr(t,e,i,r),ad(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fn(),i=Ki(e),o=si(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Wi(e,o,i),t!==null&&(xr(t,e,i,r),ad(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fn(),r=Ki(e),i=si(n,r);i.tag=2,t!=null&&(i.callback=t),t=Wi(e,i,r),t!==null&&(xr(t,e,r,n),ad(t,e,r))}};function _b(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!_u(n,r)||!_u(i,o):!0}function Cb(e,t,n){var r=!1,i=Hi,o=t.contextType;return typeof o=="object"&&o!==null?o=Zn(o):(i=xn(t)?zo:Gt.current,r=t.contextTypes,o=(r=r!=null)?Ha(e,i):Hi),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=hd,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Sb(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&hd.enqueueReplaceState(t,t.state,null)}function $m(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Nm(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Zn(o):(o=xn(t)?zo:Gt.current,i.context=Ha(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Vm(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&hd.enqueueReplaceState(i,i.state,null),sd(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Xa(e,t){try{var n="",r=t;do n+=oD(r),r=r.return;while(r);var i=n}catch(o){i=`
39
39
  Error generating stack: `+o.message+`
40
- `+o.stack}return{value:e,source:t,stack:i,digest:null}}function Wm(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ym(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var I6=typeof WeakMap=="function"?WeakMap:Map;function Ab(e,t,n){n=si(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){bd||(bd=!0,sg=r),Ym(e,t)},n}function kb(e,t,n){n=si(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ym(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Ym(e,t),typeof r!="function"&&(qi===null?qi=new Set([this]):qi.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Rb(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new I6;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Y6.bind(null,e,t,n),t.then(e,e))}function Nb(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Pb(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=si(-1,1),t.tag=2,Wi(n,t,1))),n.lanes|=1),e)}var O6=ti.ReactCurrentOwner,wn=!1;function dn(e,t,n,r){t.child=e===null?Qw(t,null,n,r):Ya(t,e.child,n,r)}function Ib(e,t,n,r,i){n=n.render;var o=t.ref;return Ga(t,i),r=Fm(e,t,n,r,o,i),n=Bm(),e!==null&&!wn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ui(e,t,i)):(ot&&n&&wm(t),t.flags|=1,dn(e,t,r,i),t.child)}function Ob(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!hg(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Db(e,t,o,r,i)):(e=Ad(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:_u,n(a,r)&&e.ref===t.ref)return ui(e,t,i)}return t.flags|=1,e=Qi(o,r),e.ref=t.ref,e.return=t,t.child=e}function Db(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(_u(o,r)&&e.ref===t.ref)if(wn=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(wn=!0);else return t.lanes=e.lanes,ui(e,t,i)}return qm(e,t,n,r,i)}function Lb(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Je(Za,Mn),Mn|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Je(Za,Mn),Mn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Je(Za,Mn),Mn|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Je(Za,Mn),Mn|=r;return dn(e,t,i,n),t.child}function Mb(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function qm(e,t,n,r,i){var o=xn(n)?zo:Gt.current;return o=Ha(t,o),Ga(t,i),n=Fm(e,t,n,r,o,i),r=Bm(),e!==null&&!wn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ui(e,t,i)):(ot&&r&&wm(t),t.flags|=1,dn(e,t,n,i),t.child)}function Fb(e,t,n,r,i){if(xn(n)){var o=!0;Zc(t)}else o=!1;if(Ga(t,i),t.stateNode===null)gd(e,t),Cb(t,n,r),$m(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;typeof l=="object"&&l!==null?l=Zn(l):(l=xn(n)?zo:Gt.current,l=Ha(t,l));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||u!==l)&&Sb(t,a,r,l),$i=!1;var f=t.memoizedState;a.state=f,sd(t,r,a,i),u=t.memoizedState,s!==r||f!==u||vn.current||$i?(typeof c=="function"&&(Vm(t,n,c,r),u=t.memoizedState),(s=$i||_b(t,n,s,r,f,u,l))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Jw(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:gr(t.type,s),a.props=l,d=t.pendingProps,f=a.context,u=n.contextType,typeof u=="object"&&u!==null?u=Zn(u):(u=xn(n)?zo:Gt.current,u=Ha(t,u));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||f!==u)&&Sb(t,a,r,u),$i=!1,f=t.memoizedState,a.state=f,sd(t,r,a,i);var m=t.memoizedState;s!==d||f!==m||vn.current||$i?(typeof p=="function"&&(Vm(t,n,p,r),m=t.memoizedState),(l=$i||_b(t,n,l,r,f,m,u)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,m,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,m,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=u,r=l):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Gm(e,t,n,r,o,i)}function Gm(e,t,n,r,i,o){Mb(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&Hw(t,n,!1),ui(e,t,o);r=t.stateNode,O6.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Ya(t,e.child,null,o),t.child=Ya(t,null,s,o)):dn(e,t,s,o),t.memoizedState=r.state,i&&Hw(t,n,!0),t.child}function Bb(e){var t=e.stateNode;t.pendingContext?Uw(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Uw(e,t.context,!1),Pm(e,t.containerInfo)}function jb(e,t,n,r,i){return Wa(),_m(i),t.flags|=256,dn(e,t,n,r),t.child}var Km={dehydrated:null,treeContext:null,retryLane:0};function Xm(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ub(e,t,n){var r=t.pendingProps,i=ct.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Je(ct,i&1),e===null)return Tm(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=kd(a,r,0,null),e=Qo(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Xm(n),t.memoizedState=Km,e):Qm(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return D6(e,t,a,r,s,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,s=i.sibling;var u={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Qi(i,u),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Qi(s,o):(o=Qo(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?Xm(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=Km,r}return o=e.child,e=o.sibling,r=Qi(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Qm(e,t){return t=kd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function md(e,t,n,r){return r!==null&&_m(r),Ya(t,e.child,null,n),e=Qm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function D6(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=Wm(Error(Z(422))),md(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=kd({mode:"visible",children:r.children},i,0,null),o=Qo(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Ya(t,e.child,null,a),t.child.memoizedState=Xm(a),t.memoizedState=Km,o);if(!(t.mode&1))return md(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(Z(419)),r=Wm(o,r,void 0),md(e,t,a,r)}if(s=(a&e.childLanes)!==0,wn||s){if(r=Lt,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,ai(e,i),xr(r,e,i,-1))}return pg(),r=Wm(Error(Z(421))),md(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=q6.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Ln=Ui(i.nextSibling),Dn=t,ot=!0,mr=null,e!==null&&(Xn[Qn++]=ii,Xn[Qn++]=oi,Xn[Qn++]=Ho,ii=e.id,oi=e.overflow,Ho=t),t=Qm(t,r.children),t.flags|=4096,t)}function zb(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),km(e.return,t,n)}function Zm(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Hb(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(dn(e,t,r.children,n),r=ct.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zb(e,n,t);else if(e.tag===19)zb(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Je(ct,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ud(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Zm(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ud(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Zm(t,!0,n,null,o);break;case"together":Zm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function gd(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ui(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),qo|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Z(153));if(t.child!==null){for(e=t.child,n=Qi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Qi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function L6(e,t,n){switch(t.tag){case 3:Bb(t),Wa();break;case 5:nb(t);break;case 1:xn(t.type)&&Zc(t);break;case 4:Pm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Je(id,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Je(ct,ct.current&1),t.flags|=128,null):n&t.child.childLanes?Ub(e,t,n):(Je(ct,ct.current&1),e=ui(e,t,n),e!==null?e.sibling:null);Je(ct,ct.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Hb(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Je(ct,ct.current),r)break;return null;case 22:case 23:return t.lanes=0,Lb(e,t,n)}return ui(e,t,n)}var Vb,Jm,$b,Wb;Vb=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Jm=function(){},$b=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Wo(Dr.current);var o=null;switch(n){case"input":i=kh(e,i),r=kh(e,r),o=[];break;case"select":i=lt({},i,{value:void 0}),r=lt({},r,{value:void 0}),o=[];break;case"textarea":i=Ph(e,i),r=Ph(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Kc)}Oh(n,r);var a;n=null;for(l in i)if(!r.hasOwnProperty(l)&&i.hasOwnProperty(l)&&i[l]!=null)if(l==="style"){var s=i[l];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(ru.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in r){var u=r[l];if(s=i!=null?i[l]:void 0,r.hasOwnProperty(l)&&u!==s&&(u!=null||s!=null))if(l==="style")if(s){for(a in s)!s.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&s[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(o||(o=[]),o.push(l,n)),n=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(o=o||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(ru.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&tt("scroll",e),o||s===u||(o=[])):(o=o||[]).push(l,u))}n&&(o=o||[]).push("style",n);var l=o;(t.updateQueue=l)&&(t.flags|=4)}},Wb=function(e,t,n,r){n!==r&&(t.flags|=4)};function ju(e,t){if(!ot)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function M6(e,t,n){var r=t.pendingProps;switch(bm(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xt(t),null;case 1:return xn(t.type)&&Qc(),Xt(t),null;case 3:return r=t.stateNode,Ka(),nt(vn),nt(Gt),Dm(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(nd(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,mr!==null&&(cg(mr),mr=null))),Jm(e,t),Xt(t),null;case 5:Im(t);var i=Wo(Du.current);if(n=t.type,e!==null&&t.stateNode!=null)$b(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Z(166));return Xt(t),null}if(e=Wo(Dr.current),nd(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Or]=t,r[Ru]=o,e=(t.mode&1)!==0,n){case"dialog":tt("cancel",r),tt("close",r);break;case"iframe":case"object":case"embed":tt("load",r);break;case"video":case"audio":for(i=0;i<Su.length;i++)tt(Su[i],r);break;case"source":tt("error",r);break;case"img":case"image":case"link":tt("error",r),tt("load",r);break;case"details":tt("toggle",r);break;case"input":Cx(r,o),tt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},tt("invalid",r);break;case"textarea":kx(r,o),tt("invalid",r)}Oh(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&Gc(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&Gc(r.textContent,s,e),i=["children",""+s]):ru.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&tt("scroll",r)}switch(n){case"input":Cc(r),Ax(r,o,!0);break;case"textarea":Cc(r),Nx(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Kc)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Px(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Or]=t,e[Ru]=r,Vb(e,t,!1,!1),t.stateNode=e;e:{switch(a=Dh(n,r),n){case"dialog":tt("cancel",e),tt("close",e),i=r;break;case"iframe":case"object":case"embed":tt("load",e),i=r;break;case"video":case"audio":for(i=0;i<Su.length;i++)tt(Su[i],e);i=r;break;case"source":tt("error",e),i=r;break;case"img":case"image":case"link":tt("error",e),tt("load",e),i=r;break;case"details":tt("toggle",e),i=r;break;case"input":Cx(e,r),i=kh(e,r),tt("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=lt({},r,{value:void 0}),tt("invalid",e);break;case"textarea":kx(e,r),i=Ph(e,r),tt("invalid",e);break;default:i=r}Oh(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var u=s[o];o==="style"?Dx(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Ix(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&su(e,u):typeof u=="number"&&su(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(ru.hasOwnProperty(o)?u!=null&&o==="onScroll"&&tt("scroll",e):u!=null&&yh(e,o,u,a))}switch(n){case"input":Cc(e),Ax(e,r,!1);break;case"textarea":Cc(e),Nx(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Oi(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Na(e,!!r.multiple,o,!1):r.defaultValue!=null&&Na(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Kc)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Xt(t),null;case 6:if(e&&t.stateNode!=null)Wb(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Z(166));if(n=Wo(Du.current),Wo(Dr.current),nd(t)){if(r=t.stateNode,n=t.memoizedProps,r[Or]=t,(o=r.nodeValue!==n)&&(e=Dn,e!==null))switch(e.tag){case 3:Gc(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Gc(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Or]=t,t.stateNode=r}return Xt(t),null;case 13:if(nt(ct),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ot&&Ln!==null&&t.mode&1&&!(t.flags&128))Gw(),Wa(),t.flags|=98560,o=!1;else if(o=nd(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Z(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Z(317));o[Or]=t}else Wa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Xt(t),o=!1}else mr!==null&&(cg(mr),mr=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ct.current&1?Nt===0&&(Nt=3):pg())),t.updateQueue!==null&&(t.flags|=4),Xt(t),null);case 4:return Ka(),Jm(e,t),e===null&&Au(t.stateNode.containerInfo),Xt(t),null;case 10:return Am(t.type._context),Xt(t),null;case 17:return xn(t.type)&&Qc(),Xt(t),null;case 19:if(nt(ct),o=t.memoizedState,o===null)return Xt(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)ju(o,!1);else{if(Nt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=ud(e),a!==null){for(t.flags|=128,ju(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Je(ct,ct.current&1|2),t.child}e=e.sibling}o.tail!==null&&wt()>Ja&&(t.flags|=128,r=!0,ju(o,!1),t.lanes=4194304)}else{if(!r)if(e=ud(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ju(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!ot)return Xt(t),null}else 2*wt()-o.renderingStartTime>Ja&&n!==1073741824&&(t.flags|=128,r=!0,ju(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=wt(),t.sibling=null,n=ct.current,Je(ct,r?n&1|2:n&1),t):(Xt(t),null);case 22:case 23:return fg(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Mn&1073741824&&(Xt(t),t.subtreeFlags&6&&(t.flags|=8192)):Xt(t),null;case 24:return null;case 25:return null}throw Error(Z(156,t.tag))}function F6(e,t){switch(bm(t),t.tag){case 1:return xn(t.type)&&Qc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ka(),nt(vn),nt(Gt),Dm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Im(t),null;case 13:if(nt(ct),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Z(340));Wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return nt(ct),null;case 4:return Ka(),null;case 10:return Am(t.type._context),null;case 22:case 23:return fg(),null;case 24:return null;default:return null}}var yd=!1,Qt=!1,B6=typeof WeakSet=="function"?WeakSet:Set,ue=null;function Qa(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){gt(e,t,r)}else n.current=null}function eg(e,t,n){try{n()}catch(r){gt(e,t,r)}}var Yb=!1;function j6(e,t){if(fm=Fc,e=_w(),im(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,u=-1,l=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(u=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++l===i&&(s=a),f===o&&++c===r&&(u=a),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(pm={focusedElem:e,selectionRange:n},Fc=!1,ue=t;ue!==null;)if(t=ue,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ue=e;else for(;ue!==null;){t=ue;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,b=m.memoizedState,g=t.stateNode,x=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:gr(t.type,y),b);g.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Z(163))}}catch(T){gt(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,ue=e;break}ue=t.return}return m=Yb,Yb=!1,m}function Uu(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&eg(t,n,o)}i=i.next}while(i!==r)}}function vd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function tg(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function qb(e){var t=e.alternate;t!==null&&(e.alternate=null,qb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Or],delete t[Ru],delete t[ym],delete t[b6],delete t[E6])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Gb(e){return e.tag===5||e.tag===3||e.tag===4}function Kb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gb(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ng(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Kc));else if(r!==4&&(e=e.child,e!==null))for(ng(e,t,n),e=e.sibling;e!==null;)ng(e,t,n),e=e.sibling}function rg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(rg(e,t,n),e=e.sibling;e!==null;)rg(e,t,n),e=e.sibling}var Ht=null,yr=!1;function Yi(e,t,n){for(n=n.child;n!==null;)Xb(e,t,n),n=n.sibling}function Xb(e,t,n){if(Ir&&typeof Ir.onCommitFiberUnmount=="function")try{Ir.onCommitFiberUnmount(Pc,n)}catch{}switch(n.tag){case 5:Qt||Qa(n,t);case 6:var r=Ht,i=yr;Ht=null,Yi(e,t,n),Ht=r,yr=i,Ht!==null&&(yr?(e=Ht,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ht.removeChild(n.stateNode));break;case 18:Ht!==null&&(yr?(e=Ht,n=n.stateNode,e.nodeType===8?gm(e.parentNode,n):e.nodeType===1&&gm(e,n),vu(e)):gm(Ht,n.stateNode));break;case 4:r=Ht,i=yr,Ht=n.stateNode.containerInfo,yr=!0,Yi(e,t,n),Ht=r,yr=i;break;case 0:case 11:case 14:case 15:if(!Qt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&eg(n,t,a),i=i.next}while(i!==r)}Yi(e,t,n);break;case 1:if(!Qt&&(Qa(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){gt(n,t,s)}Yi(e,t,n);break;case 21:Yi(e,t,n);break;case 22:n.mode&1?(Qt=(r=Qt)||n.memoizedState!==null,Yi(e,t,n),Qt=r):Yi(e,t,n);break;default:Yi(e,t,n)}}function Qb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new B6),t.forEach(function(r){var i=G6.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function vr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:Ht=s.stateNode,yr=!1;break e;case 3:Ht=s.stateNode.containerInfo,yr=!0;break e;case 4:Ht=s.stateNode.containerInfo,yr=!0;break e}s=s.return}if(Ht===null)throw Error(Z(160));Xb(o,a,i),Ht=null,yr=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(l){gt(i,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Zb(t,e),t=t.sibling}function Zb(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vr(t,e),Mr(e),r&4){try{Uu(3,e,e.return),vd(3,e)}catch(y){gt(e,e.return,y)}try{Uu(5,e,e.return)}catch(y){gt(e,e.return,y)}}break;case 1:vr(t,e),Mr(e),r&512&&n!==null&&Qa(n,n.return);break;case 5:if(vr(t,e),Mr(e),r&512&&n!==null&&Qa(n,n.return),e.flags&32){var i=e.stateNode;try{su(i,"")}catch(y){gt(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,s=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&Sx(i,o),Dh(s,a);var l=Dh(s,o);for(a=0;a<u.length;a+=2){var c=u[a],d=u[a+1];c==="style"?Dx(i,d):c==="dangerouslySetInnerHTML"?Ix(i,d):c==="children"?su(i,d):yh(i,c,d,l)}switch(s){case"input":Rh(i,o);break;case"textarea":Rx(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?Na(i,!!o.multiple,p,!1):f!==!!o.multiple&&(o.defaultValue!=null?Na(i,!!o.multiple,o.defaultValue,!0):Na(i,!!o.multiple,o.multiple?[]:"",!1))}i[Ru]=o}catch(y){gt(e,e.return,y)}}break;case 6:if(vr(t,e),Mr(e),r&4){if(e.stateNode===null)throw Error(Z(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){gt(e,e.return,y)}}break;case 3:if(vr(t,e),Mr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{vu(t.containerInfo)}catch(y){gt(e,e.return,y)}break;case 4:vr(t,e),Mr(e);break;case 13:vr(t,e),Mr(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(ag=wt())),r&4&&Qb(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Qt=(l=Qt)||c,vr(t,e),Qt=l):vr(t,e),Mr(e),r&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!c&&e.mode&1)for(ue=e,c=e.child;c!==null;){for(d=ue=c;ue!==null;){switch(f=ue,p=f.child,f.tag){case 0:case 11:case 14:case 15:Uu(4,f,f.return);break;case 1:Qa(f,f.return);var m=f.stateNode;if(typeof m.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(y){gt(r,n,y)}}break;case 5:Qa(f,f.return);break;case 22:if(f.memoizedState!==null){tE(d);continue}}p!==null?(p.return=f,ue=p):tE(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,l?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=d.stateNode,u=d.memoizedProps.style,a=u!=null&&u.hasOwnProperty("display")?u.display:null,s.style.display=Ox("display",a))}catch(y){gt(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(y){gt(e,e.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:vr(t,e),Mr(e),r&4&&Qb(e);break;case 21:break;default:vr(t,e),Mr(e)}}function Mr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Gb(n)){var r=n;break e}n=n.return}throw Error(Z(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(su(i,""),r.flags&=-33);var o=Kb(e);rg(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=Kb(e);ng(e,s,a);break;default:throw Error(Z(161))}}catch(u){gt(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function U6(e,t,n){ue=e,Jb(e)}function Jb(e,t,n){for(var r=(e.mode&1)!==0;ue!==null;){var i=ue,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||yd;if(!a){var s=i.alternate,u=s!==null&&s.memoizedState!==null||Qt;s=yd;var l=Qt;if(yd=a,(Qt=u)&&!l)for(ue=i;ue!==null;)a=ue,u=a.child,a.tag===22&&a.memoizedState!==null?nE(i):u!==null?(u.return=a,ue=u):nE(i);for(;o!==null;)ue=o,Jb(o),o=o.sibling;ue=i,yd=s,Qt=l}eE(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,ue=o):eE(e)}}function eE(e){for(;ue!==null;){var t=ue;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Qt||vd(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Qt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:gr(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&tb(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}tb(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var c=l.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&vu(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Z(163))}Qt||t.flags&512&&tg(t)}catch(f){gt(t,t.return,f)}}if(t===e){ue=null;break}if(n=t.sibling,n!==null){n.return=t.return,ue=n;break}ue=t.return}}function tE(e){for(;ue!==null;){var t=ue;if(t===e){ue=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ue=n;break}ue=t.return}}function nE(e){for(;ue!==null;){var t=ue;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{vd(4,t)}catch(u){gt(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){gt(t,i,u)}}var o=t.return;try{tg(t)}catch(u){gt(t,o,u)}break;case 5:var a=t.return;try{tg(t)}catch(u){gt(t,a,u)}}}catch(u){gt(t,t.return,u)}if(t===e){ue=null;break}var s=t.sibling;if(s!==null){s.return=t.return,ue=s;break}ue=t.return}}var z6=Math.ceil,xd=ti.ReactCurrentDispatcher,ig=ti.ReactCurrentOwner,er=ti.ReactCurrentBatchConfig,Ue=0,Lt=null,Ct=null,Vt=0,Mn=0,Za=zi(0),Nt=0,zu=null,qo=0,wd=0,og=0,Hu=null,bn=null,ag=0,Ja=1/0,li=null,bd=!1,sg=null,qi=null,Ed=!1,Gi=null,Td=0,Vu=0,ug=null,_d=-1,Cd=0;function fn(){return Ue&6?wt():_d!==-1?_d:_d=wt()}function Ki(e){return e.mode&1?Ue&2&&Vt!==0?Vt&-Vt:_6.transition!==null?(Cd===0&&(Cd=Kx()),Cd):(e=qe,e!==0||(e=window.event,e=e===void 0?16:iw(e.type)),e):1}function xr(e,t,n,r){if(50<Vu)throw Vu=0,ug=null,Error(Z(185));pu(e,n,r),(!(Ue&2)||e!==Lt)&&(e===Lt&&(!(Ue&2)&&(wd|=n),Nt===4&&Xi(e,Vt)),En(e,r),n===1&&Ue===0&&!(t.mode&1)&&(Ja=wt()+500,Jc&&Vi()))}function En(e,t){var n=e.callbackNode;_D(e,t);var r=Dc(e,e===Lt?Vt:0);if(r===0)n!==null&&Yx(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Yx(n),t===1)e.tag===0?T6(iE.bind(null,e)):Vw(iE.bind(null,e)),x6(function(){!(Ue&6)&&Vi()}),n=null;else{switch(Xx(r)){case 1:n=zh;break;case 4:n=qx;break;case 16:n=Nc;break;case 536870912:n=Gx;break;default:n=Nc}n=fE(n,rE.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rE(e,t){if(_d=-1,Cd=0,Ue&6)throw Error(Z(327));var n=e.callbackNode;if(es()&&e.callbackNode!==n)return null;var r=Dc(e,e===Lt?Vt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Sd(e,r);else{t=r;var i=Ue;Ue|=2;var o=aE();(Lt!==e||Vt!==t)&&(li=null,Ja=wt()+500,Ko(e,t));do try{$6();break}catch(s){oE(e,s)}while(!0);Sm(),xd.current=o,Ue=i,Ct!==null?t=0:(Lt=null,Vt=0,t=Nt)}if(t!==0){if(t===2&&(i=Hh(e),i!==0&&(r=i,t=lg(e,i))),t===1)throw n=zu,Ko(e,0),Xi(e,r),En(e,wt()),n;if(t===6)Xi(e,r);else{if(i=e.current.alternate,!(r&30)&&!H6(i)&&(t=Sd(e,r),t===2&&(o=Hh(e),o!==0&&(r=o,t=lg(e,o))),t===1))throw n=zu,Ko(e,0),Xi(e,r),En(e,wt()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Z(345));case 2:Xo(e,bn,li);break;case 3:if(Xi(e,r),(r&130023424)===r&&(t=ag+500-wt(),10<t)){if(Dc(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){fn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=mm(Xo.bind(null,e,bn,li),t);break}Xo(e,bn,li);break;case 4:if(Xi(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-pr(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=wt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*z6(r/1960))-r,10<r){e.timeoutHandle=mm(Xo.bind(null,e,bn,li),r);break}Xo(e,bn,li);break;case 5:Xo(e,bn,li);break;default:throw Error(Z(329))}}}return En(e,wt()),e.callbackNode===n?rE.bind(null,e):null}function lg(e,t){var n=Hu;return e.current.memoizedState.isDehydrated&&(Ko(e,t).flags|=256),e=Sd(e,t),e!==2&&(t=bn,bn=n,t!==null&&cg(t)),e}function cg(e){bn===null?bn=e:bn.push.apply(bn,e)}function H6(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!hr(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Xi(e,t){for(t&=~og,t&=~wd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-pr(t),r=1<<n;e[n]=-1,t&=~r}}function iE(e){if(Ue&6)throw Error(Z(327));es();var t=Dc(e,0);if(!(t&1))return En(e,wt()),null;var n=Sd(e,t);if(e.tag!==0&&n===2){var r=Hh(e);r!==0&&(t=r,n=lg(e,r))}if(n===1)throw n=zu,Ko(e,0),Xi(e,t),En(e,wt()),n;if(n===6)throw Error(Z(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Xo(e,bn,li),En(e,wt()),null}function dg(e,t){var n=Ue;Ue|=1;try{return e(t)}finally{Ue=n,Ue===0&&(Ja=wt()+500,Jc&&Vi())}}function Go(e){Gi!==null&&Gi.tag===0&&!(Ue&6)&&es();var t=Ue;Ue|=1;var n=er.transition,r=qe;try{if(er.transition=null,qe=1,e)return e()}finally{qe=r,er.transition=n,Ue=t,!(Ue&6)&&Vi()}}function fg(){Mn=Za.current,nt(Za)}function Ko(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,v6(n)),Ct!==null)for(n=Ct.return;n!==null;){var r=n;switch(bm(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Qc();break;case 3:Ka(),nt(vn),nt(Gt),Dm();break;case 5:Im(r);break;case 4:Ka();break;case 13:nt(ct);break;case 19:nt(ct);break;case 10:Am(r.type._context);break;case 22:case 23:fg()}n=n.return}if(Lt=e,Ct=e=Qi(e.current,null),Vt=Mn=t,Nt=0,zu=null,og=wd=qo=0,bn=Hu=null,$o!==null){for(t=0;t<$o.length;t++)if(n=$o[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}$o=null}return e}function oE(e,t){do{var n=Ct;try{if(Sm(),ld.current=pd,cd){for(var r=dt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}cd=!1}if(Yo=0,Dt=Rt=dt=null,Lu=!1,Mu=0,ig.current=null,n===null||n.return===null){Nt=1,zu=t,Ct=null;break}e:{var o=e,a=n.return,s=n,u=t;if(t=Vt,s.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var l=u,c=s,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=Nb(a);if(p!==null){p.flags&=-257,Pb(p,a,s,o,t),p.mode&1&&Rb(o,l,t),t=p,u=l;var m=t.updateQueue;if(m===null){var y=new Set;y.add(u),t.updateQueue=y}else m.add(u);break e}else{if(!(t&1)){Rb(o,l,t),pg();break e}u=Error(Z(426))}}else if(ot&&s.mode&1){var b=Nb(a);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Pb(b,a,s,o,t),_m(Xa(u,s));break e}}o=u=Xa(u,s),Nt!==4&&(Nt=2),Hu===null?Hu=[o]:Hu.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=Ab(o,u,t);eb(o,g);break e;case 1:s=u;var x=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof x.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(qi===null||!qi.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var T=kb(o,s,t);eb(o,T);break e}}o=o.return}while(o!==null)}uE(n)}catch(_){t=_,Ct===n&&n!==null&&(Ct=n=n.return);continue}break}while(!0)}function aE(){var e=xd.current;return xd.current=pd,e===null?pd:e}function pg(){(Nt===0||Nt===3||Nt===2)&&(Nt=4),Lt===null||!(qo&268435455)&&!(wd&268435455)||Xi(Lt,Vt)}function Sd(e,t){var n=Ue;Ue|=2;var r=aE();(Lt!==e||Vt!==t)&&(li=null,Ko(e,t));do try{V6();break}catch(i){oE(e,i)}while(!0);if(Sm(),Ue=n,xd.current=r,Ct!==null)throw Error(Z(261));return Lt=null,Vt=0,Nt}function V6(){for(;Ct!==null;)sE(Ct)}function $6(){for(;Ct!==null&&!mD();)sE(Ct)}function sE(e){var t=dE(e.alternate,e,Mn);e.memoizedProps=e.pendingProps,t===null?uE(e):Ct=t,ig.current=null}function uE(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=F6(n,t),n!==null){n.flags&=32767,Ct=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Nt=6,Ct=null;return}}else if(n=M6(n,t,Mn),n!==null){Ct=n;return}if(t=t.sibling,t!==null){Ct=t;return}Ct=t=e}while(t!==null);Nt===0&&(Nt=5)}function Xo(e,t,n){var r=qe,i=er.transition;try{er.transition=null,qe=1,W6(e,t,n,r)}finally{er.transition=i,qe=r}return null}function W6(e,t,n,r){do es();while(Gi!==null);if(Ue&6)throw Error(Z(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Z(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(CD(e,o),e===Lt&&(Ct=Lt=null,Vt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ed||(Ed=!0,fE(Nc,function(){return es(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=er.transition,er.transition=null;var a=qe;qe=1;var s=Ue;Ue|=4,ig.current=null,j6(e,n),Zb(n,e),d6(pm),Fc=!!fm,pm=fm=null,e.current=n,U6(n),gD(),Ue=s,qe=a,er.transition=o}else e.current=n;if(Ed&&(Ed=!1,Gi=e,Td=i),o=e.pendingLanes,o===0&&(qi=null),xD(n.stateNode),En(e,wt()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(bd)throw bd=!1,e=sg,sg=null,e;return Td&1&&e.tag!==0&&es(),o=e.pendingLanes,o&1?e===ug?Vu++:(Vu=0,ug=e):Vu=0,Vi(),null}function es(){if(Gi!==null){var e=Xx(Td),t=er.transition,n=qe;try{if(er.transition=null,qe=16>e?16:e,Gi===null)var r=!1;else{if(e=Gi,Gi=null,Td=0,Ue&6)throw Error(Z(331));var i=Ue;for(Ue|=4,ue=e.current;ue!==null;){var o=ue,a=o.child;if(ue.flags&16){var s=o.deletions;if(s!==null){for(var u=0;u<s.length;u++){var l=s[u];for(ue=l;ue!==null;){var c=ue;switch(c.tag){case 0:case 11:case 15:Uu(8,c,o)}var d=c.child;if(d!==null)d.return=c,ue=d;else for(;ue!==null;){c=ue;var f=c.sibling,p=c.return;if(qb(c),c===l){ue=null;break}if(f!==null){f.return=p,ue=f;break}ue=p}}}var m=o.alternate;if(m!==null){var y=m.child;if(y!==null){m.child=null;do{var b=y.sibling;y.sibling=null,y=b}while(y!==null)}}ue=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,ue=a;else e:for(;ue!==null;){if(o=ue,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Uu(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,ue=g;break e}ue=o.return}}var x=e.current;for(ue=x;ue!==null;){a=ue;var w=a.child;if(a.subtreeFlags&2064&&w!==null)w.return=a,ue=w;else e:for(a=x;ue!==null;){if(s=ue,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:vd(9,s)}}catch(_){gt(s,s.return,_)}if(s===a){ue=null;break e}var T=s.sibling;if(T!==null){T.return=s.return,ue=T;break e}ue=s.return}}if(Ue=i,Vi(),Ir&&typeof Ir.onPostCommitFiberRoot=="function")try{Ir.onPostCommitFiberRoot(Pc,e)}catch{}r=!0}return r}finally{qe=n,er.transition=t}}return!1}function lE(e,t,n){t=Xa(n,t),t=Ab(e,t,1),e=Wi(e,t,1),t=fn(),e!==null&&(pu(e,1,t),En(e,t))}function gt(e,t,n){if(e.tag===3)lE(e,e,n);else for(;t!==null;){if(t.tag===3){lE(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(qi===null||!qi.has(r))){e=Xa(n,e),e=kb(t,e,1),t=Wi(t,e,1),e=fn(),t!==null&&(pu(t,1,e),En(t,e));break}}t=t.return}}function Y6(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=fn(),e.pingedLanes|=e.suspendedLanes&n,Lt===e&&(Vt&n)===n&&(Nt===4||Nt===3&&(Vt&130023424)===Vt&&500>wt()-ag?Ko(e,0):og|=n),En(e,t)}function cE(e,t){t===0&&(e.mode&1?(t=Oc,Oc<<=1,!(Oc&130023424)&&(Oc=4194304)):t=1);var n=fn();e=ai(e,t),e!==null&&(pu(e,t,n),En(e,n))}function q6(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),cE(e,n)}function G6(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Z(314))}r!==null&&r.delete(t),cE(e,n)}var dE;dE=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||vn.current)wn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return wn=!1,L6(e,t,n);wn=!!(e.flags&131072)}else wn=!1,ot&&t.flags&1048576&&$w(t,td,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;gd(e,t),e=t.pendingProps;var i=Ha(t,Gt.current);Ga(t,n),i=Fm(null,t,r,e,i,n);var o=Bm();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xn(r)?(o=!0,Zc(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Nm(t),i.updater=hd,t.stateNode=i,i._reactInternals=t,$m(t,r,e,n),t=Gm(null,t,r,!0,o,n)):(t.tag=0,ot&&o&&wm(t),dn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(gd(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=X6(r),e=gr(r,e),i){case 0:t=qm(null,t,r,e,n);break e;case 1:t=Fb(null,t,r,e,n);break e;case 11:t=Ib(null,t,r,e,n);break e;case 14:t=Ob(null,t,r,gr(r.type,e),n);break e}throw Error(Z(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),qm(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),Fb(e,t,r,i,n);case 3:e:{if(Bb(t),e===null)throw Error(Z(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Jw(e,t),sd(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Xa(Error(Z(423)),t),t=jb(e,t,r,n,i);break e}else if(r!==i){i=Xa(Error(Z(424)),t),t=jb(e,t,r,n,i);break e}else for(Ln=Ui(t.stateNode.containerInfo.firstChild),Dn=t,ot=!0,mr=null,n=Qw(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wa(),r===i){t=ui(e,t,n);break e}dn(e,t,r,n)}t=t.child}return t;case 5:return nb(t),e===null&&Tm(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,hm(r,i)?a=null:o!==null&&hm(r,o)&&(t.flags|=32),Mb(e,t),dn(e,t,a,n),t.child;case 6:return e===null&&Tm(t),null;case 13:return Ub(e,t,n);case 4:return Pm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ya(t,null,r,n):dn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),Ib(e,t,r,i,n);case 7:return dn(e,t,t.pendingProps,n),t.child;case 8:return dn(e,t,t.pendingProps.children,n),t.child;case 12:return dn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Je(id,r._currentValue),r._currentValue=a,o!==null)if(hr(o.value,a)){if(o.children===i.children&&!vn.current){t=ui(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=si(-1,n&-n),u.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),km(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(Z(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),km(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}dn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ga(t,n),i=Zn(i),r=r(i),t.flags|=1,dn(e,t,r,n),t.child;case 14:return r=t.type,i=gr(r,t.pendingProps),i=gr(r.type,i),Ob(e,t,r,i,n);case 15:return Db(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),gd(e,t),t.tag=1,xn(r)?(e=!0,Zc(t)):e=!1,Ga(t,n),Cb(t,r,i),$m(t,r,i,n),Gm(null,t,r,!0,e,n);case 19:return Hb(e,t,n);case 22:return Lb(e,t,n)}throw Error(Z(156,t.tag))};function fE(e,t){return Wx(e,t)}function K6(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tr(e,t,n,r){return new K6(e,t,n,r)}function hg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function X6(e){if(typeof e=="function")return hg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===wh)return 11;if(e===Th)return 14}return 2}function Qi(e,t){var n=e.alternate;return n===null?(n=tr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ad(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")hg(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ra:return Qo(n.children,i,o,t);case vh:a=8,i|=8;break;case xh:return e=tr(12,n,t,i|2),e.elementType=xh,e.lanes=o,e;case bh:return e=tr(13,n,t,i),e.elementType=bh,e.lanes=o,e;case Eh:return e=tr(19,n,t,i),e.elementType=Eh,e.lanes=o,e;case bx:return kd(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xx:a=10;break e;case wx:a=9;break e;case wh:a=11;break e;case Th:a=14;break e;case Ii:a=16,r=null;break e}throw Error(Z(130,e==null?e:typeof e,""))}return t=tr(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Qo(e,t,n,r){return e=tr(7,e,r,t),e.lanes=n,e}function kd(e,t,n,r){return e=tr(22,e,r,t),e.elementType=bx,e.lanes=n,e.stateNode={isHidden:!1},e}function mg(e,t,n){return e=tr(6,e,null,t),e.lanes=n,e}function gg(e,t,n){return t=tr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Q6(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vh(0),this.expirationTimes=Vh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vh(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function yg(e,t,n,r,i,o,a,s,u){return e=new Q6(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=tr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nm(o),e}function Z6(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ka,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function pE(e){if(!e)return Hi;e=e._reactInternals;e:{if(jo(e)!==e||e.tag!==1)throw Error(Z(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(xn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Z(171))}if(e.tag===1){var n=e.type;if(xn(n))return zw(e,n,t)}return t}function hE(e,t,n,r,i,o,a,s,u){return e=yg(n,r,!0,e,i,o,a,s,u),e.context=pE(null),n=e.current,r=fn(),i=Ki(n),o=si(r,i),o.callback=t??null,Wi(n,o,i),e.current.lanes=i,pu(e,i,r),En(e,r),e}function Rd(e,t,n,r){var i=t.current,o=fn(),a=Ki(i);return n=pE(n),t.context===null?t.context=n:t.pendingContext=n,t=si(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Wi(i,t,a),e!==null&&(xr(e,i,a,o),ad(e,i,a)),a}function Nd(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function mE(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function vg(e,t){mE(e,t),(e=e.alternate)&&mE(e,t)}function J6(){return null}var gE=typeof reportError=="function"?reportError:function(e){console.error(e)};function xg(e){this._internalRoot=e}Pd.prototype.render=xg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Z(409));Rd(e,t,null,null)},Pd.prototype.unmount=xg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Go(function(){Rd(null,e,null,null)}),t[ni]=null}};function Pd(e){this._internalRoot=e}Pd.prototype.unstable_scheduleHydration=function(e){if(e){var t=Jx();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Fi.length&&t!==0&&t<Fi[n].priority;n++);Fi.splice(n,0,e),n===0&&nw(e)}};function wg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Id(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function yE(){}function eL(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var l=Nd(a);o.call(l)}}var a=hE(t,r,e,0,null,!1,!1,"",yE);return e._reactRootContainer=a,e[ni]=a.current,Au(e.nodeType===8?e.parentNode:e),Go(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var l=Nd(u);s.call(l)}}var u=yg(e,0,!1,null,null,!1,!1,"",yE);return e._reactRootContainer=u,e[ni]=u.current,Au(e.nodeType===8?e.parentNode:e),Go(function(){Rd(t,u,n,r)}),u}function Od(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var u=Nd(a);s.call(u)}}Rd(t,a,e,i)}else a=eL(n,t,e,i,r);return Nd(a)}Qx=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=fu(t.pendingLanes);n!==0&&($h(t,n|1),En(t,wt()),!(Ue&6)&&(Ja=wt()+500,Vi()))}break;case 13:Go(function(){var r=ai(e,1);if(r!==null){var i=fn();xr(r,e,1,i)}}),vg(e,1)}},Wh=function(e){if(e.tag===13){var t=ai(e,134217728);if(t!==null){var n=fn();xr(t,e,134217728,n)}vg(e,134217728)}},Zx=function(e){if(e.tag===13){var t=Ki(e),n=ai(e,t);if(n!==null){var r=fn();xr(n,e,t,r)}vg(e,t)}},Jx=function(){return qe},ew=function(e,t){var n=qe;try{return qe=e,t()}finally{qe=n}},Fh=function(e,t,n){switch(t){case"input":if(Rh(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Xc(r);if(!i)throw Error(Z(90));_x(r),Rh(r,i)}}}break;case"textarea":Rx(e,n);break;case"select":t=n.value,t!=null&&Na(e,!!n.multiple,t,!1)}},Bx=dg,jx=Go;var tL={usingClientEntryPoint:!1,Events:[Nu,Ua,Xc,Mx,Fx,dg]},$u={findFiberByHostInstance:Uo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nL={bundleType:$u.bundleType,version:$u.version,rendererPackageName:$u.rendererPackageName,rendererConfig:$u.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ti.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Vx(e),e===null?null:e.stateNode},findFiberByHostInstance:$u.findFiberByHostInstance||J6,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Dd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dd.isDisabled&&Dd.supportsFiber)try{Pc=Dd.inject(nL),Ir=Dd}catch{}}Pn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tL,Pn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!wg(t))throw Error(Z(200));return Z6(e,t,null,n)},Pn.createRoot=function(e,t){if(!wg(e))throw Error(Z(299));var n=!1,r="",i=gE;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=yg(e,1,!1,null,null,n,!1,r,i),e[ni]=t.current,Au(e.nodeType===8?e.parentNode:e),new xg(t)},Pn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Z(188)):(e=Object.keys(e).join(","),Error(Z(268,e)));return e=Vx(t),e=e===null?null:e.stateNode,e},Pn.flushSync=function(e){return Go(e)},Pn.hydrate=function(e,t,n){if(!Id(t))throw Error(Z(200));return Od(null,e,t,!0,n)},Pn.hydrateRoot=function(e,t,n){if(!wg(e))throw Error(Z(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=gE;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=hE(t,null,e,1,n??null,i,!1,o,a),e[ni]=t.current,Au(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Pd(t)},Pn.render=function(e,t,n){if(!Id(t))throw Error(Z(200));return Od(null,e,t,!1,n)},Pn.unmountComponentAtNode=function(e){if(!Id(e))throw Error(Z(40));return e._reactRootContainer?(Go(function(){Od(null,null,e,!1,function(){e._reactRootContainer=null,e[ni]=null})}),!0):!1},Pn.unstable_batchedUpdates=dg,Pn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Id(n))throw Error(Z(200));if(e==null||e._reactInternals===void 0)throw Error(Z(38));return Od(e,t,n,!1,r)},Pn.version="18.3.1-next-f1338f8080-20240426";function vE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vE)}catch(e){console.error(e)}}vE(),px.exports=Pn;var Zo=px.exports,xE,wE=Zo;xE=wE.createRoot,wE.hydrateRoot;const bE="3.0.43";function Ld(e){"@babel/helpers - typeof";return Ld=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ld(e)}var rL=/^\s+/,iL=/\s+$/;function fe(e,t){if(e=e||"",t=t||{},e instanceof fe)return e;if(!(this instanceof fe))return new fe(e,t);var n=oL(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}fe.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,o,a,s;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*a+.0722*s},setAlpha:function(t){return this._a=AE(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=TE(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=TE(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=EE(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=EE(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return _E(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return lL(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(at(this._r,255)*100)+"%",g:Math.round(at(this._g,255)*100)+"%",b:Math.round(at(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(at(this._r,255)*100)+"%, "+Math.round(at(this._g,255)*100)+"%, "+Math.round(at(this._b,255)*100)+"%)":"rgba("+Math.round(at(this._r,255)*100)+"%, "+Math.round(at(this._g,255)*100)+"%, "+Math.round(at(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:bL[_E(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+CE(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=fe(t);r="#"+CE(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,i=this._a<1&&this._a>=0,o=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return fe(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(pL,arguments)},brighten:function(){return this._applyModification(hL,arguments)},darken:function(){return this._applyModification(mL,arguments)},desaturate:function(){return this._applyModification(cL,arguments)},saturate:function(){return this._applyModification(dL,arguments)},greyscale:function(){return this._applyModification(fL,arguments)},spin:function(){return this._applyModification(gL,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(xL,arguments)},complement:function(){return this._applyCombination(yL,arguments)},monochromatic:function(){return this._applyCombination(wL,arguments)},splitcomplement:function(){return this._applyCombination(vL,arguments)},triad:function(){return this._applyCombination(SE,[3])},tetrad:function(){return this._applyCombination(SE,[4])}},fe.fromRatio=function(e,t){if(Ld(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=Wu(e[r]));e=n}return fe(e,t)};function oL(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=CL(e)),Ld(e)=="object"&&(ci(e.r)&&ci(e.g)&&ci(e.b)?(t=aL(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ci(e.h)&&ci(e.s)&&ci(e.v)?(r=Wu(e.s),i=Wu(e.v),t=uL(e.h,r,i),a=!0,s="hsv"):ci(e.h)&&ci(e.s)&&ci(e.l)&&(r=Wu(e.s),o=Wu(e.l),t=sL(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=AE(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function aL(e,t,n){return{r:at(e,255)*255,g:at(t,255)*255,b:at(n,255)*255}}function EE(e,t,n){e=at(e,255),t=at(t,255),n=at(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,a,s=(r+i)/2;if(r==i)o=a=0;else{var u=r-i;switch(a=s>.5?u/(2-r-i):u/(r+i),r){case e:o=(t-n)/u+(t<n?6:0);break;case t:o=(n-e)/u+2;break;case n:o=(e-t)/u+4;break}o/=6}return{h:o,s:a,l:s}}function sL(e,t,n){var r,i,o;e=at(e,360),t=at(t,100),n=at(n,100);function a(l,c,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?l+(c-l)*6*d:d<1/2?c:d<2/3?l+(c-l)*(2/3-d)*6:l}if(t===0)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=a(u,s,e+1/3),i=a(u,s,e),o=a(u,s,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function TE(e,t,n){e=at(e,255),t=at(t,255),n=at(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,a,s=r,u=r-i;if(a=r===0?0:u/r,r==i)o=0;else{switch(r){case e:o=(t-n)/u+(t<n?6:0);break;case t:o=(n-e)/u+2;break;case n:o=(e-t)/u+4;break}o/=6}return{h:o,s:a,v:s}}function uL(e,t,n){e=at(e,360)*6,t=at(t,100),n=at(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),u=r%6,l=[n,a,o,o,s,n][u],c=[s,n,n,a,o,o][u],d=[o,o,s,n,n,a][u];return{r:l*255,g:c*255,b:d*255}}function _E(e,t,n,r){var i=[wr(Math.round(e).toString(16)),wr(Math.round(t).toString(16)),wr(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function lL(e,t,n,r,i){var o=[wr(Math.round(e).toString(16)),wr(Math.round(t).toString(16)),wr(Math.round(n).toString(16)),wr(kE(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function CE(e,t,n,r){var i=[wr(kE(r)),wr(Math.round(e).toString(16)),wr(Math.round(t).toString(16)),wr(Math.round(n).toString(16))];return i.join("")}fe.equals=function(e,t){return!e||!t?!1:fe(e).toRgbString()==fe(t).toRgbString()},fe.random=function(){return fe.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function cL(e,t){t=t===0?0:t||10;var n=fe(e).toHsl();return n.s-=t/100,n.s=Md(n.s),fe(n)}function dL(e,t){t=t===0?0:t||10;var n=fe(e).toHsl();return n.s+=t/100,n.s=Md(n.s),fe(n)}function fL(e){return fe(e).desaturate(100)}function pL(e,t){t=t===0?0:t||10;var n=fe(e).toHsl();return n.l+=t/100,n.l=Md(n.l),fe(n)}function hL(e,t){t=t===0?0:t||10;var n=fe(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),fe(n)}function mL(e,t){t=t===0?0:t||10;var n=fe(e).toHsl();return n.l-=t/100,n.l=Md(n.l),fe(n)}function gL(e,t){var n=fe(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,fe(n)}function yL(e){var t=fe(e).toHsl();return t.h=(t.h+180)%360,fe(t)}function SE(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=fe(e).toHsl(),r=[fe(e)],i=360/t,o=1;o<t;o++)r.push(fe({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function vL(e){var t=fe(e).toHsl(),n=t.h;return[fe(e),fe({h:(n+72)%360,s:t.s,l:t.l}),fe({h:(n+216)%360,s:t.s,l:t.l})]}function xL(e,t,n){t=t||6,n=n||30;var r=fe(e).toHsl(),i=360/n,o=[fe(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(fe(r));return o}function wL(e,t){t=t||6;for(var n=fe(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(fe({h:r,s:i,v:o})),o=(o+s)%1;return a}fe.mix=function(e,t,n){n=n===0?0:n||50;var r=fe(e).toRgb(),i=fe(t).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return fe(a)},fe.readability=function(e,t){var n=fe(e),r=fe(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},fe.isReadable=function(e,t,n){var r=fe.readability(e,t),i,o;switch(o=!1,i=SL(n),i.level+i.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o},fe.mostReadable=function(e,t,n){var r=null,i=0,o,a,s,u;n=n||{},a=n.includeFallbackColors,s=n.level,u=n.size;for(var l=0;l<t.length;l++)o=fe.readability(e,t[l]),o>i&&(i=o,r=fe(t[l]));return fe.isReadable(e,r,{level:s,size:u})||!a?r:(n.includeFallbackColors=!1,fe.mostReadable(e,["#fff","#000"],n))};var bg=fe.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},bL=fe.hexNames=EL(bg);function EL(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function AE(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function at(e,t){TL(e)&&(e="100%");var n=_L(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Md(e){return Math.min(1,Math.max(0,e))}function Fn(e){return parseInt(e,16)}function TL(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function _L(e){return typeof e=="string"&&e.indexOf("%")!=-1}function wr(e){return e.length==1?"0"+e:""+e}function Wu(e){return e<=1&&(e=e*100+"%"),e}function kE(e){return Math.round(parseFloat(e)*255).toString(16)}function RE(e){return Fn(e)/255}var br=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ci(e){return!!br.CSS_UNIT.exec(e)}function CL(e){e=e.replace(rL,"").replace(iL,"").toLowerCase();var t=!1;if(bg[e])e=bg[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=br.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=br.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=br.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=br.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=br.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=br.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=br.hex8.exec(e))?{r:Fn(n[1]),g:Fn(n[2]),b:Fn(n[3]),a:RE(n[4]),format:t?"name":"hex8"}:(n=br.hex6.exec(e))?{r:Fn(n[1]),g:Fn(n[2]),b:Fn(n[3]),format:t?"name":"hex"}:(n=br.hex4.exec(e))?{r:Fn(n[1]+""+n[1]),g:Fn(n[2]+""+n[2]),b:Fn(n[3]+""+n[3]),a:RE(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=br.hex3.exec(e))?{r:Fn(n[1]+""+n[1]),g:Fn(n[2]+""+n[2]),b:Fn(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function SL(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}const AL=350,NE=400,PE=600,Eg={widgetMinHeight:"min-h-[400px]",widgetMaxHeight:"max-h-[600px]",widgetHeight:"h-[600px]"},IE=({primary:e="hsl(0, 0%, 0%)"})=>{const t=fe(e).toHsl(),n=fe(e).isLight()?"240 10% 3.9%":"0 0% 100%";return{"--opencx-primary":`${t.h} ${t.s*100}% ${t.l*100}%`,"--opencx-primary-foreground":n,"--opencx-background":"0 0% 100%","--opencx-foreground":"240 10% 3.9%","--opencx-accent":"240 4.8% 95.9%","--opencx-accent-foreground":"240 5.9% 10%","--opencx-destructive":"0 84.2% 60.2%","--opencx-destructive-foreground":"0 0% 98%","--opencx-secondary":"240 4.8% 95.9%","--opencx-secondary-foreground":"240 5.9% 10%","--opencx-muted":"240 4.8% 95.9%","--opencx-muted-foreground":"240 3.8% 46.1%","--opencx-input":"240 5.9% 90%","--opencx-border":"240 5.9% 90%","--opencx-ring":"240 5.9% 10%"}};function kL(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}function Yu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Tg=e=>Array.isArray(e);function OE(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function qu(e){return typeof e=="string"||Array.isArray(e)}function DE(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function _g(e,t,n,r){if(typeof t=="function"){const[i,o]=DE(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=DE(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function Fd(e,t,n){const r=e.getProps();return _g(r,t,n!==void 0?n:r.custom,e)}const Cg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Sg=["initial",...Cg],Gu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Zi=new Set(Gu),di=e=>e*1e3,fi=e=>e/1e3,RL={type:"spring",stiffness:500,damping:25,restSpeed:10},NL=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),PL={type:"keyframes",duration:.8},IL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},OL=(e,{keyframes:t})=>t.length>2?PL:Zi.has(e)?e.startsWith("scale")?NL(t[1]):RL:IL;function Ag(e,t){return e?e[t]||e.default||e:void 0}const DL={skipAnimations:!1,useManualTiming:!1},LL=e=>e!==null;function Bd(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(LL),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Zt=e=>e;function ML(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function s(l){o.has(l)&&(u.schedule(l),e()),l(a)}const u={schedule:(l,c=!1,d=!1)=>{const p=d&&r?t:n;return c&&o.add(l),p.has(l)||p.add(l),l},cancel:l=>{n.delete(l),o.delete(l)},process:l=>{if(a=l,r){i=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(s),r=!1,i&&(i=!1,u.process(l))}};return u}const jd=["read","resolveKeyframes","update","preRender","render","postRender"],FL=40;function LE(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=jd.reduce((g,x)=>(g[x]=ML(o),g),{}),{read:s,resolveKeyframes:u,update:l,preRender:c,render:d,postRender:f}=a,p=()=>{const g=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,FL),1),i.timestamp=g,i.isProcessing=!0,s.process(i),u.process(i),l.process(i),c.process(i),d.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(p))},m=()=>{n=!0,r=!0,i.isProcessing||e(p)};return{schedule:jd.reduce((g,x)=>{const w=a[x];return g[x]=(T,_=!1,C=!1)=>(n||m(),w.schedule(T,_,C)),g},{}),cancel:g=>{for(let x=0;x<jd.length;x++)a[jd[x]].cancel(g)},state:i,steps:a}}const{schedule:Xe,cancel:Ji,state:$t,steps:kg}=LE(typeof requestAnimationFrame<"u"?requestAnimationFrame:Zt,!0),ME=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,BL=1e-7,jL=12;function UL(e,t,n,r,i){let o,a,s=0;do a=t+(n-t)/2,o=ME(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>BL&&++s<jL);return a}function Ku(e,t,n,r){if(e===t&&n===r)return Zt;const i=o=>UL(o,0,1,e,n);return o=>o===0||o===1?o:ME(i(o),t,r)}const FE=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,BE=e=>t=>1-e(1-t),jE=Ku(.33,1.53,.69,.99),Rg=BE(jE),UE=FE(Rg),zE=e=>(e*=2)<1?.5*Rg(e):.5*(2-Math.pow(2,-10*(e-1))),Ng=e=>1-Math.sin(Math.acos(e)),HE=BE(Ng),VE=FE(Ng),$E=e=>/^0[^.\s]+$/u.test(e);function zL(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||$E(e):!0}let Pg=Zt;const WE=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),YE=e=>t=>typeof t=="string"&&t.startsWith(e),qE=YE("--"),HL=YE("var(--"),Ig=e=>HL(e)?VL.test(e.split("/*")[0].trim()):!1,VL=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,$L=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function WL(e){const t=$L.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function GE(e,t,n=1){const[r,i]=WL(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return WE(a)?parseFloat(a):a}return Ig(i)?GE(i,t,n+1):i}const eo=(e,t,n)=>n>t?t:n<e?e:n,ts={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Xu={...ts,transform:e=>eo(0,1,e)},Ud={...ts,default:1},Qu=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),to=Qu("deg"),Fr=Qu("%"),ye=Qu("px"),YL=Qu("vh"),qL=Qu("vw"),KE={...Fr,parse:e=>Fr.parse(e)/100,transform:e=>Fr.transform(e*100)},GL=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),XE=e=>e===ts||e===ye,QE=(e,t)=>parseFloat(e.split(", ")[t]),ZE=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return QE(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?QE(o[1],e):0}},KL=new Set(["x","y","z"]),XL=Gu.filter(e=>!KL.has(e));function QL(e){const t=[];return XL.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ns={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:ZE(4,13),y:ZE(5,14)};ns.translateX=ns.x,ns.translateY=ns.y;const JE=e=>t=>t.test(e),eT=[ts,ye,Fr,to,qL,YL,{test:e=>e==="auto",parse:e=>e}],tT=e=>eT.find(JE(e)),Jo=new Set;let Og=!1,Dg=!1;function nT(){if(Dg){const e=Array.from(Jo).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=QL(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var s;(s=r.getValue(o))===null||s===void 0||s.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Dg=!1,Og=!1,Jo.forEach(e=>e.complete()),Jo.clear()}function rT(){Jo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Dg=!0)})}function ZL(){rT(),nT()}class Lg{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Jo.add(this),Og||(Og=!0,Xe.read(rT),Xe.resolveKeyframes(nT))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,s);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Jo.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Jo.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Zu=e=>Math.round(e*1e5)/1e5,Mg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function JL(e){return e==null}const e4=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Fg=(e,t)=>n=>!!(typeof n=="string"&&e4.test(n)&&n.startsWith(e)||t&&!JL(n)&&Object.prototype.hasOwnProperty.call(n,t)),iT=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,s]=r.match(Mg);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},t4=e=>eo(0,255,e),Bg={...ts,transform:e=>Math.round(t4(e))},ea={test:Fg("rgb","red"),parse:iT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Bg.transform(e)+", "+Bg.transform(t)+", "+Bg.transform(n)+", "+Zu(Xu.transform(r))+")"};function n4(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const jg={test:Fg("#"),parse:n4,transform:ea.transform},rs={test:Fg("hsl","hue"),parse:iT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Fr.transform(Zu(t))+", "+Fr.transform(Zu(n))+", "+Zu(Xu.transform(r))+")"},Jt={test:e=>ea.test(e)||jg.test(e)||rs.test(e),parse:e=>ea.test(e)?ea.parse(e):rs.test(e)?rs.parse(e):jg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ea.transform(e):rs.transform(e)},r4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function i4(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Mg))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(r4))===null||n===void 0?void 0:n.length)||0)>0}const oT="number",aT="color",o4="var",a4="var(",sT="${}",s4=/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 Ju(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const s=t.replace(s4,u=>(Jt.test(u)?(r.color.push(o),i.push(aT),n.push(Jt.parse(u))):u.startsWith(a4)?(r.var.push(o),i.push(o4),n.push(u)):(r.number.push(o),i.push(oT),n.push(parseFloat(u))),++o,sT)).split(sT);return{values:n,split:s,indexes:r,types:i}}function uT(e){return Ju(e).values}function lT(e){const{split:t,types:n}=Ju(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const s=n[a];s===oT?o+=Zu(i[a]):s===aT?o+=Jt.transform(i[a]):o+=i[a]}return o}}const u4=e=>typeof e=="number"?0:e;function l4(e){const t=uT(e);return lT(e)(t.map(u4))}const no={test:i4,parse:uT,createTransformer:lT,getAnimatableNone:l4},c4=new Set(["brightness","contrast","saturate","opacity"]);function d4(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Mg)||[];if(!r)return e;const i=n.replace(r,"");let o=c4.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const f4=/\b([a-z-]*)\(.*?\)/gu,Ug={...no,getAnimatableNone:e=>{const t=e.match(f4);return t?t.map(d4).join(" "):e}},p4={borderWidth:ye,borderTopWidth:ye,borderRightWidth:ye,borderBottomWidth:ye,borderLeftWidth:ye,borderRadius:ye,radius:ye,borderTopLeftRadius:ye,borderTopRightRadius:ye,borderBottomRightRadius:ye,borderBottomLeftRadius:ye,width:ye,maxWidth:ye,height:ye,maxHeight:ye,top:ye,right:ye,bottom:ye,left:ye,padding:ye,paddingTop:ye,paddingRight:ye,paddingBottom:ye,paddingLeft:ye,margin:ye,marginTop:ye,marginRight:ye,marginBottom:ye,marginLeft:ye,backgroundPositionX:ye,backgroundPositionY:ye},h4={rotate:to,rotateX:to,rotateY:to,rotateZ:to,scale:Ud,scaleX:Ud,scaleY:Ud,scaleZ:Ud,skew:to,skewX:to,skewY:to,distance:ye,translateX:ye,translateY:ye,translateZ:ye,x:ye,y:ye,z:ye,perspective:ye,transformPerspective:ye,opacity:Xu,originX:KE,originY:KE,originZ:ye},cT={...ts,transform:Math.round},zg={...p4,...h4,zIndex:cT,size:ye,fillOpacity:Xu,strokeOpacity:Xu,numOctaves:cT},m4={...zg,color:Jt,backgroundColor:Jt,outlineColor:Jt,fill:Jt,stroke:Jt,borderColor:Jt,borderTopColor:Jt,borderRightColor:Jt,borderBottomColor:Jt,borderLeftColor:Jt,filter:Ug,WebkitFilter:Ug},Hg=e=>m4[e];function dT(e,t){let n=Hg(e);return n!==Ug&&(n=no),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const g4=new Set(["auto","none","0"]);function y4(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!g4.has(o)&&Ju(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=dT(n,i)}class fT extends Lg{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let l=t[u];if(typeof l=="string"&&(l=l.trim(),Ig(l))){const c=GE(l,n.current);c!==void 0&&(t[u]=c),u===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!GL.has(r)||t.length!==2)return;const[i,o]=t,a=tT(i),s=tT(o);if(a!==s)if(XE(a)&&XE(s))for(let u=0;u<t.length;u++){const l=t[u];typeof l=="string"&&(t[u]=parseFloat(l))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)zL(t[i])&&r.push(i);r.length&&y4(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ns[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,s=i[a];i[a]=ns[r](n.measureViewportBox(),window.getComputedStyle(n.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,l])=>{n.getValue(u).set(l)}),this.resolveNoneKeyframes()}}function Vg(e){return typeof e=="function"}let zd;function v4(){zd=void 0}const Br={now:()=>(zd===void 0&&Br.set($t.isProcessing||DL.useManualTiming?$t.timestamp:performance.now()),zd),set:e=>{zd=e,queueMicrotask(v4)}},pT=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(no.test(e)||e==="0")&&!e.startsWith("url("));function x4(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function w4(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=pT(i,t),s=pT(o,t);return!a||!s?!1:x4(e)||(n==="spring"||Vg(n))&&r}const b4=40;class hT{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Br.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>b4?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ZL(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Br.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:s,onUpdate:u,isGenerator:l}=this.options;if(!l&&!w4(t,r,i,o))if(a)this.options.duration=0;else{u==null||u(Bd(t,this.options,n)),s==null||s(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function mT(e,t){return t?e*(1e3/t):0}const E4=5;function gT(e,t,n){const r=Math.max(t-E4,0);return mT(n-e(r),t-r)}const $g=.001,T4=.01,_4=10,C4=.05,S4=1;function A4({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,a=1-t;a=eo(C4,S4,a),e=eo(T4,_4,fi(e)),a<1?(i=l=>{const c=l*a,d=c*e,f=c-n,p=Wg(l,a),m=Math.exp(-d);return $g-f/p*m},o=l=>{const d=l*a*e,f=d*n+n,p=Math.pow(a,2)*Math.pow(l,2)*e,m=Math.exp(-d),y=Wg(Math.pow(l,2),a);return(-i(l)+$g>0?-1:1)*((f-p)*m)/y}):(i=l=>{const c=Math.exp(-l*e),d=(l-n)*e+1;return-$g+c*d},o=l=>{const c=Math.exp(-l*e),d=(n-l)*(e*e);return c*d});const s=5/e,u=R4(i,o,s);if(e=di(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:a*2*Math.sqrt(r*l),duration:e}}}const k4=12;function R4(e,t,n){let r=n;for(let i=1;i<k4;i++)r=r-e(r)/t(r);return r}function Wg(e,t){return e*Math.sqrt(1-t*t)}const N4=["duration","bounce"],P4=["stiffness","damping","mass"];function yT(e,t){return t.some(n=>e[n]!==void 0)}function I4(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!yT(e,P4)&&yT(e,N4)){const n=A4(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function vT({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],a={done:!1,value:i},{stiffness:s,damping:u,mass:l,duration:c,velocity:d,isResolvedFromDuration:f}=I4({...r,velocity:-fi(r.velocity||0)}),p=d||0,m=u/(2*Math.sqrt(s*l)),y=o-i,b=fi(Math.sqrt(s/l)),g=Math.abs(y)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let x;if(m<1){const w=Wg(b,m);x=T=>{const _=Math.exp(-m*b*T);return o-_*((p+m*b*y)/w*Math.sin(w*T)+y*Math.cos(w*T))}}else if(m===1)x=w=>o-Math.exp(-b*w)*(y+(p+b*y)*w);else{const w=b*Math.sqrt(m*m-1);x=T=>{const _=Math.exp(-m*b*T),C=Math.min(w*T,300);return o-_*((p+m*b*y)*Math.sinh(C)+w*y*Math.cosh(C))/w}}return{calculatedDuration:f&&c||null,next:w=>{const T=x(w);if(f)a.done=w>=c;else{let _=0;m<1&&(_=w===0?di(p):gT(x,w,T));const C=Math.abs(_)<=n,R=Math.abs(o-T)<=t;a.done=C&&R}return a.value=a.done?o:T,a}}}function xT({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:u,restDelta:l=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=O=>s!==void 0&&O<s||u!==void 0&&O>u,m=O=>s===void 0?u:u===void 0||Math.abs(s-O)<Math.abs(u-O)?s:u;let y=n*t;const b=d+y,g=a===void 0?b:a(b);g!==b&&(y=g-d);const x=O=>-y*Math.exp(-O/r),w=O=>g+x(O),T=O=>{const V=x(O),P=w(O);f.done=Math.abs(V)<=l,f.value=f.done?g:P};let _,C;const R=O=>{p(f.value)&&(_=O,C=vT({keyframes:[f.value,m(f.value)],velocity:gT(w,O,f.value),damping:i,stiffness:o,restDelta:l,restSpeed:c}))};return R(0),{calculatedDuration:null,next:O=>{let V=!1;return!C&&_===void 0&&(V=!0,T(O),R(O)),_!==void 0&&O>=_?C.next(O-_):(!V&&T(O),f)}}}const O4=Ku(.42,0,1,1),D4=Ku(0,0,.58,1),wT=Ku(.42,0,.58,1),L4=e=>Array.isArray(e)&&typeof e[0]!="number",Yg=e=>Array.isArray(e)&&typeof e[0]=="number",bT={linear:Zt,easeIn:O4,easeInOut:wT,easeOut:D4,circIn:Ng,circInOut:VE,circOut:HE,backIn:Rg,backInOut:UE,backOut:jE,anticipate:zE},ET=e=>{if(Yg(e)){Pg(e.length===4);const[t,n,r,i]=e;return Ku(t,n,r,i)}else if(typeof e=="string")return Pg(bT[e]!==void 0),bT[e];return e},M4=(e,t)=>n=>t(e(n)),pi=(...e)=>e.reduce(M4),is=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ft=(e,t,n)=>e+(t-e)*n;function qg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function F4({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;i=qg(u,s,e+1/3),o=qg(u,s,e),a=qg(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Hd(e,t){return n=>n>0?t:e}const Gg=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},B4=[jg,ea,rs],j4=e=>B4.find(t=>t.test(e));function TT(e){const t=j4(e);if(!t)return!1;let n=t.parse(e);return t===rs&&(n=F4(n)),n}const _T=(e,t)=>{const n=TT(e),r=TT(t);if(!n||!r)return Hd(e,t);const i={...n};return o=>(i.red=Gg(n.red,r.red,o),i.green=Gg(n.green,r.green,o),i.blue=Gg(n.blue,r.blue,o),i.alpha=ft(n.alpha,r.alpha,o),ea.transform(i))},Kg=new Set(["none","hidden"]);function U4(e,t){return Kg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function z4(e,t){return n=>ft(e,t,n)}function Xg(e){return typeof e=="number"?z4:typeof e=="string"?Ig(e)?Hd:Jt.test(e)?_T:$4:Array.isArray(e)?CT:typeof e=="object"?Jt.test(e)?_T:H4:Hd}function CT(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>Xg(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function H4(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Xg(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function V4(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],s=e.indexes[a][i[a]],u=(n=e.values[s])!==null&&n!==void 0?n:0;r[o]=u,i[a]++}return r}const $4=(e,t)=>{const n=no.createTransformer(t),r=Ju(e),i=Ju(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Kg.has(e)&&!i.values.length||Kg.has(t)&&!r.values.length?U4(e,t):pi(CT(V4(r,i),i.values),n):Hd(e,t)};function ST(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ft(e,t,n):Xg(e)(e,t)}function W4(e,t,n){const r=[],i=n||ST,o=e.length-1;for(let a=0;a<o;a++){let s=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Zt:t;s=pi(u,s)}r.push(s)}return r}function Y4(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Pg(o===t.length),o===1)return()=>t[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=W4(t,r,i),s=a.length,u=l=>{let c=0;if(s>1)for(;c<e.length-2&&!(l<e[c+1]);c++);const d=is(e[c],e[c+1],l);return a[c](d)};return n?l=>u(eo(e[0],e[o-1],l)):u}function q4(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=is(0,t,r);e.push(ft(n,1,i))}}function G4(e){const t=[0];return q4(t,e.length-1),t}function K4(e,t){return e.map(n=>n*t)}function X4(e,t){return e.map(()=>t||wT).splice(0,e.length-1)}function Vd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=L4(r)?r.map(ET):ET(r),o={done:!1,value:t[0]},a=K4(n&&n.length===t.length?n:G4(t),e),s=Y4(a,t,{ease:Array.isArray(i)?i:X4(t,i)});return{calculatedDuration:e,next:u=>(o.value=s(u),o.done=u>=e,o)}}const AT=2e4;function Q4(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<AT;)t+=n,r=e.next(t);return t>=AT?1/0:t}const Z4=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Xe.update(t,!0),stop:()=>Ji(t),now:()=>$t.isProcessing?$t.timestamp:Br.now()}},J4={decay:xT,inertia:xT,tween:Vd,keyframes:Vd,spring:vT},eM=e=>e/100;class Qg extends hT{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||Lg,s=(u,l)=>this.onKeyframesResolved(u,l);this.resolver=new a(o,s,n,r,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,s=Vg(n)?n:J4[n]||Vd;let u,l;s!==Vd&&typeof t[0]!="number"&&(u=pi(eM,ST(t[0],t[1])),t=[0,100]);const c=s({...this.options,keyframes:t});o==="mirror"&&(l=s({...this.options,keyframes:[...t].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Q4(c));const{calculatedDuration:d}=c,f=d+i,p=f*(r+1)-i;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:u,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:O}=this.options;return{done:!0,value:O[O.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:s,keyframes:u,calculatedDuration:l,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return o.next(0);const{delay:f,repeat:p,repeatType:m,repeatDelay:y,onUpdate:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const g=this.currentTime-f*(this.speed>=0?1:-1),x=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let w=this.currentTime,T=o;if(p){const O=Math.min(this.currentTime,c)/d;let V=Math.floor(O),P=O%1;!P&&O>=1&&(P=1),P===1&&V--,V=Math.min(V,p+1),!!(V%2)&&(m==="reverse"?(P=1-P,y&&(P-=y/d)):m==="mirror"&&(T=a)),w=eo(0,1,P)*d}const _=x?{done:!1,value:u[0]}:T.next(w);s&&(_.value=s(_.value));let{done:C}=_;!x&&l!==null&&(C=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return R&&i!==void 0&&(_.value=Bd(u,this.options,i)),b&&b(_.value),R&&this.finish(),_}get duration(){const{resolved:t}=this;return t?fi(t.calculatedDuration):0}get time(){return fi(this.currentTime)}set time(t){t=di(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=fi(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Z4,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const kT=new Set(["opacity","clipPath","filter","transform"]),tM=10,nM=(e,t)=>{let n="";const r=Math.max(Math.round(t/tM),2);for(let i=0;i<r;i++)n+=e(is(0,r-1,i))+", ";return`linear(${n.substring(0,n.length-2)})`};function Zg(e){let t;return()=>(t===void 0&&(t=e()),t)}const rM={linearEasing:void 0};function iM(e,t){const n=Zg(e);return()=>{var r;return(r=rM[t])!==null&&r!==void 0?r:n()}}const $d=iM(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function RT(e){return!!(typeof e=="function"&&$d()||!e||typeof e=="string"&&(e in Jg||$d())||Yg(e)||Array.isArray(e)&&e.every(RT))}const el=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Jg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:el([0,.65,.55,1]),circOut:el([.55,0,1,.45]),backIn:el([.31,.01,.66,-.59]),backOut:el([.33,1.53,.69,.99])};function NT(e,t){if(e)return typeof e=="function"&&$d()?nM(e,t):Yg(e)?el(e):Array.isArray(e)?e.map(n=>NT(n,t)||Jg.easeOut):Jg[e]}function oM(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s,times:u}={}){const l={[t]:n};u&&(l.offset=u);const c=NT(s,i);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function PT(e,t){e.timeline=t,e.onfinish=null}const aM=Zg(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Wd=10,sM=2e4;function uM(e){return Vg(e.type)||e.type==="spring"||!RT(e.ease)}function lM(e,t){const n=new Qg({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<sM;)r=n.sample(o),i.push(r.value),o+=Wd;return{times:void 0,keyframes:i,duration:o-Wd,ease:"linear"}}const IT={anticipate:zE,backInOut:UE,circInOut:VE};function cM(e){return e in IT}class OT extends hT{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new fT(o,(a,s)=>this.onKeyframesResolved(a,s),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:s,motionValue:u,name:l,startTime:c}=this.options;if(!(!((r=u.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&$d()&&cM(a)&&(a=IT[a]),uM(this.options)){const{onComplete:f,onUpdate:p,motionValue:m,element:y,...b}=this.options,g=lM(t,b);t=g.keyframes,t.length===1&&(t[1]=t[0]),i=g.duration,o=g.times,a=g.ease,s="keyframes"}const d=oM(u.owner.current,l,t,{...this.options,duration:i,times:o,ease:a});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(PT(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;u.set(Bd(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:i,times:o,type:s,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return fi(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return fi(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=di(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Zt;const{animation:r}=n;PT(r,t)}return Zt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:s}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:c,onComplete:d,element:f,...p}=this.options,m=new Qg({...p,keyframes:r,duration:i,type:o,ease:a,times:s,isGenerator:!0}),y=di(this.time);l.setWithVelocity(m.sample(y-Wd).value,m.sample(y).value,Wd)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:s}=t;return aM()&&r&&kT.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&s!=="inertia"}}const dM=Zg(()=>window.ScrollTimeline!==void 0);class fM{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>dM()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function pM({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:u,elapsed:l,...c}){return!!Object.keys(c).length}const e0=(e,t,n,r={},i,o)=>a=>{const s=Ag(r,e)||{},u=s.delay||r.delay||0;let{elapsed:l=0}=r;l=l-di(u);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-l,onUpdate:f=>{t.set(f),s.onUpdate&&s.onUpdate(f)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};pM(s)||(c={...c,...OL(e,c)}),c.duration&&(c.duration=di(c.duration)),c.repeatDelay&&(c.repeatDelay=di(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!o&&t.get()!==void 0){const f=Bd(c.keyframes,s);if(f!==void 0)return Xe.update(()=>{c.onUpdate(f),c.onComplete()}),new fM([])}return!o&&OT.supports(c)?new OT(c):new Qg(c)},hM=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),mM=e=>Tg(e)?e[e.length-1]||0:e;function t0(e,t){e.indexOf(t)===-1&&e.push(t)}function n0(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class r0{constructor(){this.subscriptions=[]}add(t){return t0(this.subscriptions,t),()=>n0(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const DT=30,gM=e=>!isNaN(parseFloat(e));class yM{constructor(t,n={}){this.version="11.11.9",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Br.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Br.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=gM(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new r0);const r=this.events[t].add(n);return t==="change"?()=>{r(),Xe.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Br.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>DT)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,DT);return mT(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tl(e,t){return new yM(e,t)}function vM(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,tl(n))}function xM(e,t){const n=Fd(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const s=mM(o[a]);vM(e,a,s)}}const Yd=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),LT="data-"+Yd("framerAppearId");function MT(e){return e.props[LT]}const en=e=>!!(e&&e.getVelocity);function wM(e){return!!(en(e)&&e.add)}function i0(e,t){if(!e.applyWillChange)return;const n=e.getValue("willChange");if(wM(n))return n.add(t)}function bM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function FT(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...u}=t;r&&(a=r);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const d in u){const f=e.getValue(d,(o=e.latestValues[d])!==null&&o!==void 0?o:null),p=u[d];if(p===void 0||c&&bM(c,d))continue;const m={delay:n,...Ag(a||{},d)};let y=!1;if(window.MotionHandoffAnimation){const g=MT(e);if(g){const x=window.MotionHandoffAnimation(g,d,Xe);x!==null&&(m.startTime=x,y=!0)}}i0(e,d),f.start(e0(d,f,p,e.shouldReduceMotion&&Zi.has(d)?{type:!1}:m,e,y));const b=f.animation;b&&l.push(b)}return s&&Promise.all(l).then(()=>{Xe.update(()=>{s&&xM(e,s)})}),l}function o0(e,t,n={}){var r;const i=Fd(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(FT(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=o;return EM(e,t,c+l,d,f,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[l,c]=u==="beforeChildren"?[a,s]:[s,a];return l().then(()=>c())}else return Promise.all([a(),s(n.delay)])}function EM(e,t,n=0,r=0,i=1,o){const a=[],s=(e.variantChildren.size-1)*r,u=i===1?(l=0)=>l*r:(l=0)=>s-l*r;return Array.from(e.variantChildren).sort(TM).forEach((l,c)=>{l.notify("AnimationStart",t),a.push(o0(l,t,{...o,delay:n+u(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(a)}function TM(e,t){return e.sortNodePosition(t)}function _M(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>o0(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=o0(e,t,n);else{const i=typeof t=="function"?Fd(e,t,n.custom):t;r=Promise.all(FT(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const CM=Sg.length;function BT(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?BT(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<CM;n++){const r=Sg[n],i=e.props[r];(qu(i)||i===!1)&&(t[r]=i)}return t}const SM=[...Cg].reverse(),AM=Cg.length;function kM(e){return t=>Promise.all(t.map(({animation:n,options:r})=>_M(e,n,r)))}function RM(e){let t=kM(e),n=jT(),r=!0;const i=u=>(l,c)=>{var d;const f=Fd(e,c,u==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:m,...y}=f;l={...l,...y,...m}}return l};function o(u){t=u(e)}function a(u){const{props:l}=e,c=BT(e.parent)||{},d=[],f=new Set;let p={},m=1/0;for(let b=0;b<AM;b++){const g=SM[b],x=n[g],w=l[g]!==void 0?l[g]:c[g],T=qu(w),_=g===u?x.isActive:null;_===!1&&(m=b);let C=w===c[g]&&w!==l[g]&&T;if(C&&r&&e.manuallyAnimateOnMount&&(C=!1),x.protectedKeys={...p},!x.isActive&&_===null||!w&&!x.prevProp||Yu(w)||typeof w=="boolean")continue;const R=NM(x.prevProp,w);let O=R||g===u&&x.isActive&&!C&&T||b>m&&T,V=!1;const P=Array.isArray(w)?w:[w];let $=P.reduce(i(g),{});_===!1&&($={});const{prevResolvedValues:z={}}=x,Q={...z,...$},Y=te=>{O=!0,f.has(te)&&(V=!0,f.delete(te)),x.needsAnimating[te]=!0;const F=e.getValue(te);F&&(F.liveStyle=!1)};for(const te in Q){const F=$[te],B=z[te];if(p.hasOwnProperty(te))continue;let A=!1;Tg(F)&&Tg(B)?A=!OE(F,B):A=F!==B,A?F!=null?Y(te):f.add(te):F!==void 0&&f.has(te)?Y(te):x.protectedKeys[te]=!0}x.prevProp=w,x.prevResolvedValues=$,x.isActive&&(p={...p,...$}),r&&e.blockInitialAnimation&&(O=!1),O&&(!(C&&R)||V)&&d.push(...P.map(te=>({animation:te,options:{type:g}})))}if(f.size){const b={};f.forEach(g=>{const x=e.getBaseTarget(g),w=e.getValue(g);w&&(w.liveStyle=!0),b[g]=x??null}),d.push({animation:b})}let y=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function s(u,l){var c;if(n[u].isActive===l)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(u,l)}),n[u].isActive=l;const d=a(u);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:a,setActive:s,setAnimateFunction:o,getState:()=>n,reset:()=>{n=jT(),r=!0}}}function NM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!OE(t,e):!1}function ta(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jT(){return{animate:ta(!0),whileInView:ta(),whileHover:ta(),whileTap:ta(),whileDrag:ta(),whileFocus:ta(),exit:ta()}}class ro{constructor(t){this.isMounted=!1,this.node=t}update(){}}class PM extends ro{constructor(t){super(t),t.animationState||(t.animationState=RM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Yu(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let IM=0;class OM extends ro{constructor(){super(...arguments),this.id=IM++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const DM={animation:{Feature:PM},exit:{Feature:OM}},UT=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function qd(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const LM=e=>t=>UT(t)&&e(t,qd(t));function hi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function mi(e,t,n,r){return hi(e,t,LM(n),r)}const zT=(e,t)=>Math.abs(e-t);function MM(e,t){const n=zT(e.x,t.x),r=zT(e.y,t.y);return Math.sqrt(n**2+r**2)}class HT{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=s0(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=MM(d.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:m}=d,{timestamp:y}=$t;this.history.push({...m,timestamp:y});const{onStart:b,onMove:g}=this.handlers;f||(b&&b(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=a0(f,this.transformPagePoint),Xe.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:m,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=s0(d.type==="pointercancel"?this.lastMoveEventInfo:a0(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,b),m&&m(d,b)},!UT(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=qd(t),s=a0(a,this.transformPagePoint),{point:u}=s,{timestamp:l}=$t;this.history=[{...u,timestamp:l}];const{onSessionStart:c}=n;c&&c(t,s0(s,this.history)),this.removeListeners=pi(mi(this.contextWindow,"pointermove",this.handlePointerMove),mi(this.contextWindow,"pointerup",this.handlePointerUp),mi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ji(this.updatePoint)}}function a0(e,t){return t?{point:t(e.point)}:e}function VT(e,t){return{x:e.x-t.x,y:e.y-t.y}}function s0({point:e},t){return{point:e,delta:VT(e,$T(t)),offset:VT(e,FM(t)),velocity:BM(t,.1)}}function FM(e){return e[0]}function $T(e){return e[e.length-1]}function BM(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=$T(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>di(t)));)n--;if(!r)return{x:0,y:0};const o=fi(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function WT(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const YT=WT("dragHorizontal"),qT=WT("dragVertical");function GT(e){let t=!1;if(e==="y")t=qT();else if(e==="x")t=YT();else{const n=YT(),r=qT();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function KT(){const e=GT(!0);return e?(e(),!1):!0}function os(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const XT=1e-4,jM=1-XT,UM=1+XT,QT=.01,zM=0-QT,HM=0+QT;function Bn(e){return e.max-e.min}function VM(e,t,n){return Math.abs(e-t)<=n}function ZT(e,t,n,r=.5){e.origin=r,e.originPoint=ft(t.min,t.max,e.origin),e.scale=Bn(n)/Bn(t),e.translate=ft(n.min,n.max,e.origin)-e.originPoint,(e.scale>=jM&&e.scale<=UM||isNaN(e.scale))&&(e.scale=1),(e.translate>=zM&&e.translate<=HM||isNaN(e.translate))&&(e.translate=0)}function nl(e,t,n,r){ZT(e.x,t.x,n.x,r?r.originX:void 0),ZT(e.y,t.y,n.y,r?r.originY:void 0)}function JT(e,t,n){e.min=n.min+t.min,e.max=e.min+Bn(t)}function $M(e,t,n){JT(e.x,t.x,n.x),JT(e.y,t.y,n.y)}function e2(e,t,n){e.min=t.min-n.min,e.max=e.min+Bn(t)}function rl(e,t,n){e2(e.x,t.x,n.x),e2(e.y,t.y,n.y)}function WM(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ft(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ft(n,e,r.max):Math.min(e,n)),e}function t2(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function YM(e,{top:t,left:n,bottom:r,right:i}){return{x:t2(e.x,n,i),y:t2(e.y,t,r)}}function n2(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function qM(e,t){return{x:n2(e.x,t.x),y:n2(e.y,t.y)}}function GM(e,t){let n=.5;const r=Bn(e),i=Bn(t);return i>r?n=is(t.min,t.max-r,e.min):r>i&&(n=is(e.min,e.max-i,t.min)),eo(0,1,n)}function KM(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const u0=.35;function XM(e=u0){return e===!1?e=0:e===!0&&(e=u0),{x:r2(e,"left","right"),y:r2(e,"top","bottom")}}function r2(e,t,n){return{min:i2(e,t),max:i2(e,n)}}function i2(e,t){return typeof e=="number"?e:e[t]||0}const o2=()=>({translate:0,scale:1,origin:0,originPoint:0}),as=()=>({x:o2(),y:o2()}),a2=()=>({min:0,max:0}),bt=()=>({x:a2(),y:a2()});function nr(e){return[e("x"),e("y")]}function s2({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function QM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ZM(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function l0(e){return e===void 0||e===1}function c0({scale:e,scaleX:t,scaleY:n}){return!l0(e)||!l0(t)||!l0(n)}function na(e){return c0(e)||u2(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function u2(e){return l2(e.x)||l2(e.y)}function l2(e){return e&&e!=="0%"}function Gd(e,t,n){const r=e-n,i=t*r;return n+i}function c2(e,t,n,r,i){return i!==void 0&&(e=Gd(e,i,r)),Gd(e,n,r)+t}function d0(e,t=0,n=1,r,i){e.min=c2(e.min,t,n,r,i),e.max=c2(e.max,t,n,r,i)}function d2(e,{x:t,y:n}){d0(e.x,t.translate,t.scale,t.originPoint),d0(e.y,n.translate,n.scale,n.originPoint)}const f2=.999999999999,p2=1.0000000000001;function JM(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let s=0;s<i;s++){o=n[s],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&us(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,d2(e,a)),r&&na(o.latestValues)&&us(e,o.latestValues))}t.x<p2&&t.x>f2&&(t.x=1),t.y<p2&&t.y>f2&&(t.y=1)}function ss(e,t){e.min=e.min+t,e.max=e.max+t}function h2(e,t,n,r,i=.5){const o=ft(e.min,e.max,i);d0(e,t,n,o,r)}function us(e,t){h2(e.x,t.x,t.scaleX,t.scale,t.originX),h2(e.y,t.y,t.scaleY,t.scale,t.originY)}function m2(e,t){return s2(ZM(e.getBoundingClientRect(),t))}function e5(e,t,n){const r=m2(e,n),{scroll:i}=t;return i&&(ss(r.x,i.offset.x),ss(r.y,i.offset.y)),r}const g2=({current:e})=>e?e.ownerDocument.defaultView:null,t5=new WeakMap;class n5{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=bt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(qd(c,"page").point)},o=(c,d)=>{const{drag:f,dragPropagation:p,onDragStart:m}=this.getProps();if(f&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=GT(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nr(b=>{let g=this.getAxisMotionValue(b).get()||0;if(Fr.test(g)){const{projection:x}=this.visualElement;if(x&&x.layout){const w=x.layout.layoutBox[b];w&&(g=Bn(w)*(parseFloat(g)/100))}}this.originPoint[b]=g}),m&&Xe.postRender(()=>m(c,d)),i0(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(c,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:m,onDrag:y}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:b}=d;if(p&&this.currentDirection===null){this.currentDirection=r5(b),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,b),this.updateAxis("y",d.point,b),this.visualElement.render(),y&&y(c,d)},s=(c,d)=>this.stop(c,d),u=()=>nr(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new HT(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:s,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:g2(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Xe.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Kd(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=WM(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&os(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=YM(i.layoutBox,n):this.constraints=!1,this.elastic=XM(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&nr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=KM(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!os(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=e5(r,i.root,this.visualElement.getTransformPagePoint());let a=qM(i.layout.layoutBox,o);if(n){const s=n(QM(a));this.hasMutatedConstraints=!!s,s&&(a=s2(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),u=this.constraints||{},l=nr(c=>{if(!Kd(c,n,this.currentDirection))return;let d=u&&u[c]||{};a&&(d={min:0,max:0});const f=i?200:1e6,p=i?40:1e7,m={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(c,m)});return Promise.all(l).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return i0(this.visualElement,t),r.start(e0(t,r,0,n,this.visualElement,!1))}stopAnimation(){nr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){nr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){nr(n=>{const{drag:r}=this.getProps();if(!Kd(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:s}=i.layout.layoutBox[n];o.set(t[n]-ft(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!os(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};nr(a=>{const s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){const u=s.get();i[a]=GM({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),nr(a=>{if(!Kd(a,t,null))return;const s=this.getAxisMotionValue(a),{min:u,max:l}=this.constraints[a];s.set(ft(u,l,i[a]))})}addListeners(){if(!this.visualElement.current)return;t5.set(this.visualElement,this);const t=this.visualElement.current,n=mi(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();os(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Xe.read(r);const a=hi(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(nr(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=u[c].translate,d.set(d.get()+u[c].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=u0,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}}function Kd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function r5(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class i5 extends ro{constructor(t){super(t),this.removeGroupControls=Zt,this.removeListeners=Zt,this.controls=new n5(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Zt}unmount(){this.removeGroupControls(),this.removeListeners()}}const y2=e=>(t,n)=>{e&&Xe.postRender(()=>e(t,n))};class o5 extends ro{constructor(){super(...arguments),this.removePointerDownListener=Zt}onPointerDown(t){this.session=new HT(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:g2(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:y2(t),onStart:y2(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Xe.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=mi(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Xd=v.createContext(null);function a5(){const e=v.useContext(Xd);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=v.useId();v.useEffect(()=>r(i),[]);const o=v.useCallback(()=>n&&n(i),[i,n]);return!t&&n?[!1,o]:[!0]}const f0=v.createContext({}),v2=v.createContext({}),Qd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function x2(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const il={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ye.test(e))e=parseFloat(e);else return e;const n=x2(e,t.target.x),r=x2(e,t.target.y);return`${n}% ${r}%`}},s5={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=no.parse(e);if(i.length>5)return r;const o=no.createTransformer(e),a=typeof i[0]!="number"?1:0,s=n.x.scale*t.x,u=n.y.scale*t.y;i[0+a]/=s,i[1+a]/=u;const l=ft(s,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=l),typeof i[3+a]=="number"&&(i[3+a]/=l),o(i)}},Zd={};function u5(e){Object.assign(Zd,e)}const{schedule:p0,cancel:Nie}=LE(queueMicrotask,!1);class l5 extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;u5(c5),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Qd.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||Xe.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),p0.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function w2(e){const[t,n]=a5(),r=v.useContext(f0);return E.jsx(l5,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(v2),isPresent:t,safeToRemove:n})}const c5={borderRadius:{...il,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:il,borderTopRightRadius:il,borderBottomLeftRadius:il,borderBottomRightRadius:il,boxShadow:s5},b2=["TopLeft","TopRight","BottomLeft","BottomRight"],d5=b2.length,E2=e=>typeof e=="string"?parseFloat(e):e,T2=e=>typeof e=="number"||ye.test(e);function f5(e,t,n,r,i,o){i?(e.opacity=ft(0,n.opacity!==void 0?n.opacity:1,p5(r)),e.opacityExit=ft(t.opacity!==void 0?t.opacity:1,0,h5(r))):o&&(e.opacity=ft(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<d5;a++){const s=`border${b2[a]}Radius`;let u=_2(t,s),l=_2(n,s);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||T2(u)===T2(l)?(e[s]=Math.max(ft(E2(u),E2(l),r),0),(Fr.test(l)||Fr.test(u))&&(e[s]+="%")):e[s]=l}(t.rotate||n.rotate)&&(e.rotate=ft(t.rotate||0,n.rotate||0,r))}function _2(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const p5=C2(0,.5,HE),h5=C2(.5,.95,Zt);function C2(e,t,n){return r=>r<e?0:r>t?1:n(is(e,t,r))}function S2(e,t){e.min=t.min,e.max=t.max}function rr(e,t){S2(e.x,t.x),S2(e.y,t.y)}function A2(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function k2(e,t,n,r,i){return e-=t,e=Gd(e,1/n,r),i!==void 0&&(e=Gd(e,1/i,r)),e}function m5(e,t=0,n=1,r=.5,i,o=e,a=e){if(Fr.test(t)&&(t=parseFloat(t),t=ft(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=ft(o.min,o.max,r);e===o&&(s-=t),e.min=k2(e.min,t,n,s,i),e.max=k2(e.max,t,n,s,i)}function R2(e,t,[n,r,i],o,a){m5(e,t[n],t[r],t[i],t.scale,o,a)}const g5=["x","scaleX","originX"],y5=["y","scaleY","originY"];function N2(e,t,n,r){R2(e.x,t,g5,n?n.x:void 0,r?r.x:void 0),R2(e.y,t,y5,n?n.y:void 0,r?r.y:void 0)}function P2(e){return e.translate===0&&e.scale===1}function I2(e){return P2(e.x)&&P2(e.y)}function O2(e,t){return e.min===t.min&&e.max===t.max}function v5(e,t){return O2(e.x,t.x)&&O2(e.y,t.y)}function D2(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function L2(e,t){return D2(e.x,t.x)&&D2(e.y,t.y)}function M2(e){return Bn(e.x)/Bn(e.y)}function F2(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class x5{constructor(){this.members=[]}add(t){t0(this.members,t),t.scheduleRender()}remove(t){if(n0(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function w5(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:d,rotateY:f,skewX:p,skewY:m}=n;l&&(r=`perspective(${l}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),m&&(r+=`skewY(${m}deg) `)}const s=e.x.scale*t.x,u=e.y.scale*t.y;return(s!==1||u!==1)&&(r+=`scale(${s}, ${u})`),r||"none"}const b5=(e,t)=>e.depth-t.depth;class E5{constructor(){this.children=[],this.isDirty=!1}add(t){t0(this.children,t),this.isDirty=!0}remove(t){n0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(b5),this.isDirty=!1,this.children.forEach(t)}}function Jd(e){const t=en(e)?e.get():e;return hM(t)?t.toValue():t}function T5(e,t){const n=Br.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Ji(r),e(o-t))};return Xe.read(r,!0),()=>Ji(r)}function _5(e){return e instanceof SVGElement&&e.tagName!=="svg"}function C5(e,t,n){const r=en(e)?e:tl(e);return r.start(e0("",r,t,n)),r.animation}const ra={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ol=typeof window<"u"&&window.MotionDebug!==void 0,h0=["","X","Y","Z"],S5={visibility:"hidden"},B2=1e3;let A5=0;function m0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function j2(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=MT(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Xe,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&j2(r)}function U2({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},s=t==null?void 0:t()){this.id=A5++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ol&&(ra.totalNodes=ra.resolvedTargetDeltas=ra.recalculatedProjection=0),this.nodes.forEach(N5),this.nodes.forEach(L5),this.nodes.forEach(M5),this.nodes.forEach(P5),ol&&window.MotionDebug.record(ra)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new E5)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new r0),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const u=this.eventHandlers.get(a);u&&u.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=_5(a),this.instance=a;const{layoutId:u,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(l||u)&&(this.isLayoutDirty=!0),e){let d;const f=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=T5(f,250),Qd.hasAnimatedSinceResize&&(Qd.hasAnimatedSinceResize=!1,this.nodes.forEach(H2))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&c&&(u||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||z5,{onLayoutAnimationStart:b,onLayoutAnimationComplete:g}=c.getProps(),x=!this.targetLayout||!L2(this.targetLayout,m)||p,w=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||f&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,w);const T={...Ag(y,"layout"),onPlay:b,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else f||H2(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ji(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(F5),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&j2(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:s,layout:u}=this.options;if(s===void 0&&!u)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(z2);return}this.isUpdating||this.nodes.forEach(O5),this.isUpdating=!1,this.nodes.forEach(D5),this.nodes.forEach(k5),this.nodes.forEach(R5),this.clearAllSnapshots();const s=Br.now();$t.delta=eo(0,1e3/60,s-$t.timestamp),$t.timestamp=s,$t.isProcessing=!0,kg.update.process($t),kg.preRender.process($t),kg.render.process($t),$t.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,p0.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(I5),this.sharedNodes.forEach(B5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Xe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Xe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=bt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!I2(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;a&&(s||na(this.latestValues)||c)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let u=this.removeElementScroll(s);return a&&(u=this.removeTransform(u)),H5(u),{animationId:this.root.animationId,measuredBox:s,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:s}=this.options;if(!s)return bt();const u=s.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(V5))){const{scroll:c}=this.root;c&&(ss(u.x,c.offset.x),ss(u.y,c.offset.y))}return u}removeElementScroll(a){var s;const u=bt();if(rr(u,a),!((s=this.scroll)===null||s===void 0)&&s.wasRoot)return u;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&rr(u,a),ss(u.x,d.offset.x),ss(u.y,d.offset.y))}return u}applyTransform(a,s=!1){const u=bt();rr(u,a);for(let l=0;l<this.path.length;l++){const c=this.path[l];!s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&us(u,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),na(c.latestValues)&&us(u,c.latestValues)}return na(this.latestValues)&&us(u,this.latestValues),u}removeTransform(a){const s=bt();rr(s,a);for(let u=0;u<this.path.length;u++){const l=this.path[u];if(!l.instance||!na(l.latestValues))continue;c0(l.latestValues)&&l.updateSnapshot();const c=bt(),d=l.measurePageBox();rr(c,d),N2(s,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,c)}return na(this.latestValues)&&N2(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}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!==$t.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var s;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==u;if(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=$t.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=bt(),this.relativeTargetOrigin=bt(),rl(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),rr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=bt(),this.targetWithTransforms=bt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),$M(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rr(this.target,this.layout.layoutBox),d2(this.target,this.targetDelta)):rr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=bt(),this.relativeTargetOrigin=bt(),rl(this.relativeTargetOrigin,this.target,p.target),rr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ol&&ra.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||c0(this.parent.latestValues)||u2(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const s=this.getLead(),u=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(l=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===$t.timestamp&&(l=!1),l)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;rr(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,p=this.treeScale.y;JM(this.layoutCorrected,this.treeScale,this.path,u),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=bt());const{target:m}=s;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(A2(this.prevProjectionDelta.x,this.projectionDelta.x),A2(this.prevProjectionDelta.y,this.projectionDelta.y)),nl(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!F2(this.projectionDelta.x,this.prevProjectionDelta.x)||!F2(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),ol&&ra.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var s;if((s=this.options.visualElement)===null||s===void 0||s.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=as(),this.projectionDelta=as(),this.projectionDeltaWithTransform=as()}setAnimationOrigin(a,s=!1){const u=this.snapshot,l=u?u.latestValues:{},c={...this.latestValues},d=as();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const f=bt(),p=u?u.source:void 0,m=this.layout?this.layout.source:void 0,y=p!==m,b=this.getStack(),g=!b||b.members.length<=1,x=!!(y&&!g&&this.options.crossfade===!0&&!this.path.some(U5));this.animationProgress=0;let w;this.mixTargetDelta=T=>{const _=T/1e3;V2(d.x,a.x,_),V2(d.y,a.y,_),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(rl(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),j5(this.relativeTarget,this.relativeTargetOrigin,f,_),w&&v5(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=bt()),rr(w,this.relativeTarget)),y&&(this.animationValues=c,f5(c,l,this.latestValues,_,x,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ji(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Xe.update(()=>{Qd.hasAnimatedSinceResize=!0,this.currentAnimation=C5(0,B2,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(B2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:u,layout:l,latestValues:c}=a;if(!(!s||!u||!l)){if(this!==a&&this.layout&&l&&G2(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||bt();const d=Bn(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+d;const f=Bn(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+f}rr(s,u),us(s,c),nl(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new x5),this.sharedNodes.get(a).add(s);const l=s.options.initialPromotionConfig;s.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(s=!0),!s)return;const l={};u.z&&m0("z",a,l,this.animationValues);for(let c=0;c<h0.length;c++)m0(`rotate${h0[c]}`,a,l,this.animationValues),m0(`skew${h0[c]}`,a,l,this.animationValues);a.render();for(const c in l)a.setStaticValue(c,l[c]),this.animationValues&&(this.animationValues[c]=l[c]);a.scheduleRender()}getProjectionStyles(a){var s,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return S5;const l={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=Jd(a==null?void 0:a.pointerEvents)||"",l.transform=c?c(this.latestValues,""):"none",l;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=Jd(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!na(this.latestValues)&&(y.transform=c?c({},""):"none",this.hasProjected=!1),y}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),l.transform=w5(this.projectionDeltaWithTransform,this.treeScale,f),c&&(l.transform=c(f,l.transform));const{x:p,y:m}=this.projectionDelta;l.transformOrigin=`${p.origin*100}% ${m.origin*100}% 0`,d.animationValues?l.opacity=d===this?(u=(s=f.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:l.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const y in Zd){if(f[y]===void 0)continue;const{correct:b,applyTo:g}=Zd[y],x=l.transform==="none"?f[y]:b(f[y],d);if(g){const w=g.length;for(let T=0;T<w;T++)l[g[T]]=x}else l[y]=x}return this.options.layoutId&&(l.pointerEvents=d===this?Jd(a==null?void 0:a.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(z2),this.root.sharedNodes.clear()}}}function k5(e){e.updateLayout()}function R5(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?nr(d=>{const f=a?n.measuredBox[d]:n.layoutBox[d],p=Bn(f);f.min=r[d].min,f.max=f.min+p}):G2(o,n.layoutBox,r)&&nr(d=>{const f=a?n.measuredBox[d]:n.layoutBox[d],p=Bn(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const s=as();nl(s,r,n.layoutBox);const u=as();a?nl(u,e.applyTransform(i,!0),n.measuredBox):nl(u,r,n.layoutBox);const l=!I2(s);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const m=bt();rl(m,n.layoutBox,f.layoutBox);const y=bt();rl(y,r,p.layoutBox),L2(m,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function N5(e){ol&&ra.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function P5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function I5(e){e.clearSnapshot()}function z2(e){e.clearMeasurements()}function O5(e){e.isLayoutDirty=!1}function D5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function H2(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function L5(e){e.resolveTargetDelta()}function M5(e){e.calcProjection()}function F5(e){e.resetSkewAndRotation()}function B5(e){e.removeLeadSnapshot()}function V2(e,t,n){e.translate=ft(t.translate,0,n),e.scale=ft(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function $2(e,t,n,r){e.min=ft(t.min,n.min,r),e.max=ft(t.max,n.max,r)}function j5(e,t,n,r){$2(e.x,t.x,n.x,r),$2(e.y,t.y,n.y,r)}function U5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const z5={duration:.45,ease:[.4,0,.1,1]},W2=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Y2=W2("applewebkit/")&&!W2("chrome/")?Math.round:Zt;function q2(e){e.min=Y2(e.min),e.max=Y2(e.max)}function H5(e){q2(e.x),q2(e.y)}function G2(e,t,n){return e==="position"||e==="preserve-aspect"&&!VM(M2(t),M2(n),.2)}function V5(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const $5=U2({attachResizeListener:(e,t)=>hi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),g0={current:void 0},K2=U2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!g0.current){const e=new $5({});e.mount(window),e.setOptions({layoutScroll:!0}),g0.current=e}return g0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),W5={pan:{Feature:o5},drag:{Feature:i5,ProjectionNode:K2,MeasureLayout:w2}};function X2(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(o,a)=>{if(o.pointerType==="touch"||KT())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t);const u=s[r];u&&Xe.postRender(()=>u(o,a))};return mi(e.current,n,i,{passive:!e.getProps()[r]})}class Y5 extends ro{mount(){this.unmount=pi(X2(this.node,!0),X2(this.node,!1))}unmount(){}}class q5 extends ro{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{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=pi(hi(this.node.current,"focus",()=>this.onFocus()),hi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Q2=(e,t)=>t?e===t?!0:Q2(e,t.parentElement):!1;function y0(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,qd(n))}class G5 extends ro{constructor(){super(...arguments),this.removeStartListeners=Zt,this.removeEndListeners=Zt,this.removeAccessibleListeners=Zt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=mi(window,"pointerup",(s,u)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),f=!d&&!Q2(this.node.current,s.target)?c:l;f&&Xe.update(()=>f(s,u))},{passive:!(r.onTap||r.onPointerUp)}),a=mi(window,"pointercancel",(s,u)=>this.cancelPress(s,u),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=pi(o,a),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||y0("up",(u,l)=>{const{onTap:c}=this.node.getProps();c&&Xe.postRender(()=>c(u,l))})};this.removeEndListeners(),this.removeEndListeners=hi(this.node.current,"keyup",a),y0("down",(s,u)=>{this.startPress(s,u)})},n=hi(this.node.current,"keydown",t),r=()=>{this.isPressing&&y0("cancel",(o,a)=>this.cancelPress(o,a))},i=hi(this.node.current,"blur",r);this.removeAccessibleListeners=pi(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Xe.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!KT()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Xe.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=mi(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=hi(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=pi(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const v0=new WeakMap,x0=new WeakMap,K5=e=>{const t=v0.get(e.target);t&&t(e)},X5=e=>{e.forEach(K5)};function Q5({root:e,...t}){const n=e||document;x0.has(n)||x0.set(n,{});const r=x0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(X5,{root:e,...t})),r[i]}function Z5(e,t,n){const r=Q5(t);return v0.set(e,n),r.observe(e),()=>{v0.delete(e),r.unobserve(e)}}const J5={some:0,all:1};class e8 extends ro{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:J5[i]},s=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,o&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=l?c:d;f&&f(u)};return Z5(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(t8(t,n))&&this.startObserver()}unmount(){}}function t8({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const n8={inView:{Feature:e8},tap:{Feature:G5},focus:{Feature:q5},hover:{Feature:Y5}},r8={layout:{ProjectionNode:K2,MeasureLayout:w2}},w0=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ef=v.createContext({}),b0=typeof window<"u",Z2=b0?v.useLayoutEffect:v.useEffect,J2=v.createContext({strict:!1});function i8(e,t,n,r,i){var o,a;const{visualElement:s}=v.useContext(ef),u=v.useContext(J2),l=v.useContext(Xd),c=v.useContext(w0).reducedMotion,d=v.useRef();r=r||u.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,p=v.useContext(v2);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&o8(d.current,n,i,p),v.useInsertionEffect(()=>{f&&f.update(n,l)});const m=n[LT],y=v.useRef(!!m&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,m))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,m)));return Z2(()=>{f&&(window.MotionIsMounted=!0,f.updateFeatures(),p0.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),v.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,m)}),y.current=!1))}),f}function o8(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:s,layoutScroll:u,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:e_(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||s&&os(s),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:l})}function e_(e){if(e)return e.options.allowProjection!==!1?e.projection:e_(e.parent)}function a8(e,t,n){return v.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):os(n)&&(n.current=r))},[t])}function tf(e){return Yu(e.animate)||Sg.some(t=>qu(e[t]))}function t_(e){return!!(tf(e)||e.variants)}function s8(e,t){if(tf(e)){const{initial:n,animate:r}=e;return{initial:n===!1||qu(n)?n:void 0,animate:qu(r)?r:void 0}}return e.inherit!==!1?t:{}}function u8(e){const{initial:t,animate:n}=s8(e,v.useContext(ef));return v.useMemo(()=>({initial:t,animate:n}),[n_(t),n_(n)])}function n_(e){return Array.isArray(e)?e.join(" "):e}const r_={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"]},ls={};for(const e in r_)ls[e]={isEnabled:t=>r_[e].some(n=>!!t[n])};function l8(e){for(const t in e)ls[t]={...ls[t],...e[t]}}const c8=Symbol.for("motionComponentSymbol");function d8({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&l8(e);function o(s,u){let l;const c={...v.useContext(w0),...s,layoutId:f8(s)},{isStatic:d}=c,f=u8(s),p=r(s,d);if(!d&&b0){p8();const m=h8(c);l=m.MeasureLayout,f.visualElement=i8(i,p,c,t,m.ProjectionNode)}return E.jsxs(ef.Provider,{value:f,children:[l&&f.visualElement?E.jsx(l,{visualElement:f.visualElement,...c}):null,n(i,s,a8(p,f.visualElement,u),p,d,f.visualElement)]})}const a=v.forwardRef(o);return a[c8]=i,a}function f8({layoutId:e}){const t=v.useContext(f0).id;return t&&e!==void 0?t+"-"+e:e}function p8(e,t){v.useContext(J2).strict}function h8(e){const{drag:t,layout:n}=ls;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const m8=["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 E0(e){return typeof e!="string"||e.includes("-")?!1:!!(m8.indexOf(e)>-1||/[A-Z]/u.test(e))}function i_(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const o_=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function a_(e,t,n,r){i_(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(o_.has(i)?i:Yd(i),t.attrs[i])}function s_(e,{layout:t,layoutId:n}){return Zi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Zd[e]||e==="opacity")}function T0(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(en(i[a])||t.style&&en(t.style[a])||s_(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return n&&i&&typeof i.willChange=="string"&&(n.applyWillChange=!1),o}function u_(e,t,n){const r=T0(e,t,n);for(const i in e)if(en(e[i])||en(t[i])){const o=Gu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function _0(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}function g8(e){if(Zi.has(e))return"transform";if(kT.has(e))return Yd(e)}function y8({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},i,o,a,s){const u={latestValues:v8(i,o,a,s?!1:e,t),renderState:n()};return r&&(u.mount=l=>r(i,l,u)),u}const l_=e=>(t,n)=>{const r=v.useContext(ef),i=v.useContext(Xd),o=()=>y8(e,t,r,i,n);return n?o():_0(o)};function c_(e,t,n){const r=Array.isArray(t)?t:[t];for(let i=0;i<r.length;i++){const o=_g(e,r[i]);if(o){const{transitionEnd:a,transition:s,...u}=o;n(u,a)}}}function v8(e,t,n,r,i){var o;const a={},s=new Set,u=r&&((o=e.style)===null||o===void 0?void 0:o.willChange)===void 0,l=i(e,{});for(const b in l)a[b]=Jd(l[b]);let{initial:c,animate:d}=e;const f=tf(e),p=t_(e);t&&p&&!f&&e.inherit!==!1&&(c===void 0&&(c=t.initial),d===void 0&&(d=t.animate));let m=n?n.initial===!1:!1;m=m||c===!1;const y=m?d:c;return y&&typeof y!="boolean"&&!Yu(y)&&c_(e,y,(b,g)=>{for(const x in b){let w=b[x];if(Array.isArray(w)){const T=m?w.length-1:0;w=w[T]}w!==null&&(a[x]=w)}for(const x in g)a[x]=g[x]}),u&&(d&&c!==!1&&!Yu(d)&&c_(e,d,b=>{for(const g in b){const x=g8(g);x&&s.add(x)}}),s.size&&(a.willChange=Array.from(s).join(","))),a}const C0=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),d_=()=>({...C0(),attrs:{}}),f_=(e,t)=>t&&typeof e=="number"?t.transform(e):e,x8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},w8=Gu.length;function b8(e,t,n){let r="",i=!0;for(let o=0;o<w8;o++){const a=Gu[o],s=e[a];if(s===void 0)continue;let u=!0;if(typeof s=="number"?u=s===(a.startsWith("scale")?1:0):u=parseFloat(s)===0,!u||n){const l=f_(s,zg[a]);if(!u){i=!1;const c=x8[a]||a;r+=`${c}(${l}) `}n&&(t[a]=l)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function S0(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,s=!1;for(const u in t){const l=t[u];if(Zi.has(u)){a=!0;continue}else if(qE(u)){i[u]=l;continue}else{const c=f_(l,zg[u]);u.startsWith("origin")?(s=!0,o[u]=c):r[u]=c}}if(t.transform||(a||n?r.transform=b8(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:u="50%",originY:l="50%",originZ:c=0}=o;r.transformOrigin=`${u} ${l} ${c}`}}function p_(e,t,n){return typeof e=="string"?e:ye.transform(t+n*e)}function E8(e,t,n){const r=p_(t,e.x,e.width),i=p_(n,e.y,e.height);return`${r} ${i}`}const T8={offset:"stroke-dashoffset",array:"stroke-dasharray"},_8={offset:"strokeDashoffset",array:"strokeDasharray"};function C8(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?T8:_8;e[o.offset]=ye.transform(-r);const a=ye.transform(t),s=ye.transform(n);e[o.array]=`${a} ${s}`}function A0(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:u=0,...l},c,d){if(S0(e,l,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(i!==void 0||o!==void 0||p.transform)&&(p.transformOrigin=E8(m,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),a!==void 0&&C8(f,a,s,u,!1)}const k0=e=>typeof e=="string"&&e.toLowerCase()==="svg",S8={useVisualState:l_({scrapeMotionValuesFromProps:u_,createRenderState:d_,onMount:(e,t,{renderState:n,latestValues:r})=>{Xe.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Xe.render(()=>{A0(n,r,k0(t.tagName),e.transformTemplate),a_(t,n)})}})},A8={useVisualState:l_({applyWillChange:!0,scrapeMotionValuesFromProps:T0,createRenderState:C0})};function h_(e,t,n){for(const r in t)!en(t[r])&&!s_(r,n)&&(e[r]=t[r])}function k8({transformTemplate:e},t){return v.useMemo(()=>{const n=C0();return S0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function R8(e,t){const n=e.style||{},r={};return h_(r,n,e),Object.assign(r,k8(e,t)),r}function N8(e,t){const n={},r=R8(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const P8=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 nf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||P8.has(e)}let m_=e=>!nf(e);function I8(e){e&&(m_=t=>t.startsWith("on")?!nf(t):e(t))}try{I8(require("@emotion/is-prop-valid").default)}catch{}function O8(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(m_(i)||n===!0&&nf(i)||!t&&!nf(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function D8(e,t,n,r){const i=v.useMemo(()=>{const o=d_();return A0(o,t,k0(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};h_(o,e.style,e),i.style={...o,...i.style}}return i}function L8(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(E0(n)?D8:N8)(r,o,a,n),l=O8(r,typeof n=="string",e),c=n!==v.Fragment?{...l,...u,ref:i}:{},{children:d}=r,f=v.useMemo(()=>en(d)?d.get():d,[d]);return v.createElement(n,{...c,children:f})}}function M8(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...E0(r)?S8:A8,preloadedFeatures:e,useRender:L8(i),createVisualElement:t,Component:r};return d8(a)}}const R0={current:null},g_={current:!1};function F8(){if(g_.current=!0,!!b0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>R0.current=e.matches;e.addListener(t),t()}else R0.current=!1}function B8(e,t,n){for(const r in t){const i=t[r],o=n[r];if(en(i))e.addValue(r,i);else if(en(o))e.addValue(r,tl(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,tl(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const y_=new WeakMap,j8=[...eT,Jt,no],U8=e=>j8.find(JE(e)),v_=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class z8{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},s={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Lg,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=()=>{const f=Br.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,Xe.render(this.render,!1,!0))};const{latestValues:u,renderState:l}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!o,this.isControllingVariants=tf(n),this.isVariantNode=t_(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];u[f]!==void 0&&en(p)&&p.set(u[f],!1)}}mount(t){this.current=t,y_.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((n,r)=>this.bindToMotionValue(r,n)),g_.current||F8(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:R0.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){y_.delete(this.current),this.projection&&this.projection.unmount(),Ji(this.notifyUpdate),Ji(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Zi.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Xe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ls){const n=ls[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):bt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<v_.length;r++){const i=v_[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=B8(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=tl(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(WE(i)||$E(i))?i=parseFloat(i):!U8(i)&&no.test(n)&&(i=dT(t,n)),this.setBaseTarget(t,en(i)?i.get():i)),en(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=_g(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!en(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new r0),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class x_ extends z8{constructor(){super(...arguments),this.KeyframeResolver=fT}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function H8(e){return window.getComputedStyle(e)}class V8 extends x_{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=i_}readValueFromInstance(t,n){if(Zi.has(n)){const r=Hg(n);return r&&r.default||0}else{const r=H8(t),i=(qE(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return m2(t,n)}build(t,n,r){S0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return T0(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;en(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class $8 extends x_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=bt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Zi.has(n)){const r=Hg(n);return r&&r.default||0}return n=o_.has(n)?n:Yd(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return u_(t,n,r)}build(t,n,r){A0(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){a_(t,n,r,i)}mount(t){this.isSVGTag=k0(t.tagName),super.mount(t)}}const W8=(e,t)=>E0(e)?new $8(t):new V8(t,{allowProjection:e!==v.Fragment}),Y8=M8({...DM,...n8,...W5,...r8},W8),cs=kL(Y8);class q8 extends v.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function G8({children:e,isPresent:t}){const n=v.useId(),r=v.useRef(null),i=v.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=v.useContext(w0);return v.useInsertionEffect(()=>{const{width:a,height:s,top:u,left:l}=i.current;if(t||!r.current||!a||!s)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return o&&(c.nonce=o),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
40
+ `+o.stack}return{value:e,source:t,stack:i,digest:null}}function Wm(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ym(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var I6=typeof WeakMap=="function"?WeakMap:Map;function Ab(e,t,n){n=si(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){bd||(bd=!0,sg=r),Ym(e,t)},n}function kb(e,t,n){n=si(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ym(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Ym(e,t),typeof r!="function"&&(qi===null?qi=new Set([this]):qi.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Rb(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new I6;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Y6.bind(null,e,t,n),t.then(e,e))}function Nb(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Pb(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=si(-1,1),t.tag=2,Wi(n,t,1))),n.lanes|=1),e)}var O6=ti.ReactCurrentOwner,wn=!1;function dn(e,t,n,r){t.child=e===null?Qw(t,null,n,r):Ya(t,e.child,n,r)}function Ib(e,t,n,r,i){n=n.render;var o=t.ref;return Ga(t,i),r=Fm(e,t,n,r,o,i),n=Bm(),e!==null&&!wn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ui(e,t,i)):(ot&&n&&wm(t),t.flags|=1,dn(e,t,r,i),t.child)}function Ob(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!hg(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Db(e,t,o,r,i)):(e=Ad(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:_u,n(a,r)&&e.ref===t.ref)return ui(e,t,i)}return t.flags|=1,e=Qi(o,r),e.ref=t.ref,e.return=t,t.child=e}function Db(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(_u(o,r)&&e.ref===t.ref)if(wn=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(wn=!0);else return t.lanes=e.lanes,ui(e,t,i)}return qm(e,t,n,r,i)}function Lb(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Je(Za,Mn),Mn|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Je(Za,Mn),Mn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Je(Za,Mn),Mn|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Je(Za,Mn),Mn|=r;return dn(e,t,i,n),t.child}function Mb(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function qm(e,t,n,r,i){var o=xn(n)?zo:Gt.current;return o=Ha(t,o),Ga(t,i),n=Fm(e,t,n,r,o,i),r=Bm(),e!==null&&!wn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ui(e,t,i)):(ot&&r&&wm(t),t.flags|=1,dn(e,t,n,i),t.child)}function Fb(e,t,n,r,i){if(xn(n)){var o=!0;Zc(t)}else o=!1;if(Ga(t,i),t.stateNode===null)gd(e,t),Cb(t,n,r),$m(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;typeof l=="object"&&l!==null?l=Zn(l):(l=xn(n)?zo:Gt.current,l=Ha(t,l));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||u!==l)&&Sb(t,a,r,l),$i=!1;var f=t.memoizedState;a.state=f,sd(t,r,a,i),u=t.memoizedState,s!==r||f!==u||vn.current||$i?(typeof c=="function"&&(Vm(t,n,c,r),u=t.memoizedState),(s=$i||_b(t,n,s,r,f,u,l))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Jw(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:gr(t.type,s),a.props=l,d=t.pendingProps,f=a.context,u=n.contextType,typeof u=="object"&&u!==null?u=Zn(u):(u=xn(n)?zo:Gt.current,u=Ha(t,u));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||f!==u)&&Sb(t,a,r,u),$i=!1,f=t.memoizedState,a.state=f,sd(t,r,a,i);var m=t.memoizedState;s!==d||f!==m||vn.current||$i?(typeof p=="function"&&(Vm(t,n,p,r),m=t.memoizedState),(l=$i||_b(t,n,l,r,f,m,u)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,m,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,m,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=u,r=l):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Gm(e,t,n,r,o,i)}function Gm(e,t,n,r,i,o){Mb(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&Hw(t,n,!1),ui(e,t,o);r=t.stateNode,O6.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Ya(t,e.child,null,o),t.child=Ya(t,null,s,o)):dn(e,t,s,o),t.memoizedState=r.state,i&&Hw(t,n,!0),t.child}function Bb(e){var t=e.stateNode;t.pendingContext?Uw(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Uw(e,t.context,!1),Pm(e,t.containerInfo)}function jb(e,t,n,r,i){return Wa(),_m(i),t.flags|=256,dn(e,t,n,r),t.child}var Km={dehydrated:null,treeContext:null,retryLane:0};function Xm(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ub(e,t,n){var r=t.pendingProps,i=ct.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Je(ct,i&1),e===null)return Tm(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=kd(a,r,0,null),e=Qo(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Xm(n),t.memoizedState=Km,e):Qm(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return D6(e,t,a,r,s,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,s=i.sibling;var u={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Qi(i,u),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Qi(s,o):(o=Qo(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?Xm(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=Km,r}return o=e.child,e=o.sibling,r=Qi(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Qm(e,t){return t=kd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function md(e,t,n,r){return r!==null&&_m(r),Ya(t,e.child,null,n),e=Qm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function D6(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=Wm(Error(Z(422))),md(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=kd({mode:"visible",children:r.children},i,0,null),o=Qo(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Ya(t,e.child,null,a),t.child.memoizedState=Xm(a),t.memoizedState=Km,o);if(!(t.mode&1))return md(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(Z(419)),r=Wm(o,r,void 0),md(e,t,a,r)}if(s=(a&e.childLanes)!==0,wn||s){if(r=Lt,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,ai(e,i),xr(r,e,i,-1))}return pg(),r=Wm(Error(Z(421))),md(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=q6.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Ln=Ui(i.nextSibling),Dn=t,ot=!0,mr=null,e!==null&&(Xn[Qn++]=ii,Xn[Qn++]=oi,Xn[Qn++]=Ho,ii=e.id,oi=e.overflow,Ho=t),t=Qm(t,r.children),t.flags|=4096,t)}function zb(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),km(e.return,t,n)}function Zm(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Hb(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(dn(e,t,r.children,n),r=ct.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zb(e,n,t);else if(e.tag===19)zb(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Je(ct,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ud(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Zm(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ud(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Zm(t,!0,n,null,o);break;case"together":Zm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function gd(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ui(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),qo|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Z(153));if(t.child!==null){for(e=t.child,n=Qi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Qi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function L6(e,t,n){switch(t.tag){case 3:Bb(t),Wa();break;case 5:nb(t);break;case 1:xn(t.type)&&Zc(t);break;case 4:Pm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Je(id,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Je(ct,ct.current&1),t.flags|=128,null):n&t.child.childLanes?Ub(e,t,n):(Je(ct,ct.current&1),e=ui(e,t,n),e!==null?e.sibling:null);Je(ct,ct.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Hb(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Je(ct,ct.current),r)break;return null;case 22:case 23:return t.lanes=0,Lb(e,t,n)}return ui(e,t,n)}var Vb,Jm,$b,Wb;Vb=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Jm=function(){},$b=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Wo(Dr.current);var o=null;switch(n){case"input":i=kh(e,i),r=kh(e,r),o=[];break;case"select":i=lt({},i,{value:void 0}),r=lt({},r,{value:void 0}),o=[];break;case"textarea":i=Ph(e,i),r=Ph(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Kc)}Oh(n,r);var a;n=null;for(l in i)if(!r.hasOwnProperty(l)&&i.hasOwnProperty(l)&&i[l]!=null)if(l==="style"){var s=i[l];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(ru.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in r){var u=r[l];if(s=i!=null?i[l]:void 0,r.hasOwnProperty(l)&&u!==s&&(u!=null||s!=null))if(l==="style")if(s){for(a in s)!s.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&s[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(o||(o=[]),o.push(l,n)),n=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(o=o||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(ru.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&tt("scroll",e),o||s===u||(o=[])):(o=o||[]).push(l,u))}n&&(o=o||[]).push("style",n);var l=o;(t.updateQueue=l)&&(t.flags|=4)}},Wb=function(e,t,n,r){n!==r&&(t.flags|=4)};function ju(e,t){if(!ot)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function M6(e,t,n){var r=t.pendingProps;switch(bm(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xt(t),null;case 1:return xn(t.type)&&Qc(),Xt(t),null;case 3:return r=t.stateNode,Ka(),nt(vn),nt(Gt),Dm(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(nd(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,mr!==null&&(cg(mr),mr=null))),Jm(e,t),Xt(t),null;case 5:Im(t);var i=Wo(Du.current);if(n=t.type,e!==null&&t.stateNode!=null)$b(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Z(166));return Xt(t),null}if(e=Wo(Dr.current),nd(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Or]=t,r[Ru]=o,e=(t.mode&1)!==0,n){case"dialog":tt("cancel",r),tt("close",r);break;case"iframe":case"object":case"embed":tt("load",r);break;case"video":case"audio":for(i=0;i<Su.length;i++)tt(Su[i],r);break;case"source":tt("error",r);break;case"img":case"image":case"link":tt("error",r),tt("load",r);break;case"details":tt("toggle",r);break;case"input":Cx(r,o),tt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},tt("invalid",r);break;case"textarea":kx(r,o),tt("invalid",r)}Oh(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&Gc(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&Gc(r.textContent,s,e),i=["children",""+s]):ru.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&tt("scroll",r)}switch(n){case"input":Cc(r),Ax(r,o,!0);break;case"textarea":Cc(r),Nx(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Kc)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Px(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Or]=t,e[Ru]=r,Vb(e,t,!1,!1),t.stateNode=e;e:{switch(a=Dh(n,r),n){case"dialog":tt("cancel",e),tt("close",e),i=r;break;case"iframe":case"object":case"embed":tt("load",e),i=r;break;case"video":case"audio":for(i=0;i<Su.length;i++)tt(Su[i],e);i=r;break;case"source":tt("error",e),i=r;break;case"img":case"image":case"link":tt("error",e),tt("load",e),i=r;break;case"details":tt("toggle",e),i=r;break;case"input":Cx(e,r),i=kh(e,r),tt("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=lt({},r,{value:void 0}),tt("invalid",e);break;case"textarea":kx(e,r),i=Ph(e,r),tt("invalid",e);break;default:i=r}Oh(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var u=s[o];o==="style"?Dx(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Ix(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&su(e,u):typeof u=="number"&&su(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(ru.hasOwnProperty(o)?u!=null&&o==="onScroll"&&tt("scroll",e):u!=null&&yh(e,o,u,a))}switch(n){case"input":Cc(e),Ax(e,r,!1);break;case"textarea":Cc(e),Nx(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Oi(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Na(e,!!r.multiple,o,!1):r.defaultValue!=null&&Na(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Kc)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Xt(t),null;case 6:if(e&&t.stateNode!=null)Wb(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Z(166));if(n=Wo(Du.current),Wo(Dr.current),nd(t)){if(r=t.stateNode,n=t.memoizedProps,r[Or]=t,(o=r.nodeValue!==n)&&(e=Dn,e!==null))switch(e.tag){case 3:Gc(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Gc(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Or]=t,t.stateNode=r}return Xt(t),null;case 13:if(nt(ct),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ot&&Ln!==null&&t.mode&1&&!(t.flags&128))Gw(),Wa(),t.flags|=98560,o=!1;else if(o=nd(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Z(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Z(317));o[Or]=t}else Wa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Xt(t),o=!1}else mr!==null&&(cg(mr),mr=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ct.current&1?Nt===0&&(Nt=3):pg())),t.updateQueue!==null&&(t.flags|=4),Xt(t),null);case 4:return Ka(),Jm(e,t),e===null&&Au(t.stateNode.containerInfo),Xt(t),null;case 10:return Am(t.type._context),Xt(t),null;case 17:return xn(t.type)&&Qc(),Xt(t),null;case 19:if(nt(ct),o=t.memoizedState,o===null)return Xt(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)ju(o,!1);else{if(Nt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=ud(e),a!==null){for(t.flags|=128,ju(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Je(ct,ct.current&1|2),t.child}e=e.sibling}o.tail!==null&&wt()>Ja&&(t.flags|=128,r=!0,ju(o,!1),t.lanes=4194304)}else{if(!r)if(e=ud(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ju(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!ot)return Xt(t),null}else 2*wt()-o.renderingStartTime>Ja&&n!==1073741824&&(t.flags|=128,r=!0,ju(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=wt(),t.sibling=null,n=ct.current,Je(ct,r?n&1|2:n&1),t):(Xt(t),null);case 22:case 23:return fg(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Mn&1073741824&&(Xt(t),t.subtreeFlags&6&&(t.flags|=8192)):Xt(t),null;case 24:return null;case 25:return null}throw Error(Z(156,t.tag))}function F6(e,t){switch(bm(t),t.tag){case 1:return xn(t.type)&&Qc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ka(),nt(vn),nt(Gt),Dm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Im(t),null;case 13:if(nt(ct),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Z(340));Wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return nt(ct),null;case 4:return Ka(),null;case 10:return Am(t.type._context),null;case 22:case 23:return fg(),null;case 24:return null;default:return null}}var yd=!1,Qt=!1,B6=typeof WeakSet=="function"?WeakSet:Set,ue=null;function Qa(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){gt(e,t,r)}else n.current=null}function eg(e,t,n){try{n()}catch(r){gt(e,t,r)}}var Yb=!1;function j6(e,t){if(fm=Fc,e=_w(),im(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,u=-1,l=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(u=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++l===i&&(s=a),f===o&&++c===r&&(u=a),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(pm={focusedElem:e,selectionRange:n},Fc=!1,ue=t;ue!==null;)if(t=ue,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ue=e;else for(;ue!==null;){t=ue;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,b=m.memoizedState,g=t.stateNode,x=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:gr(t.type,y),b);g.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Z(163))}}catch(T){gt(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,ue=e;break}ue=t.return}return m=Yb,Yb=!1,m}function Uu(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&eg(t,n,o)}i=i.next}while(i!==r)}}function vd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function tg(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function qb(e){var t=e.alternate;t!==null&&(e.alternate=null,qb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Or],delete t[Ru],delete t[ym],delete t[b6],delete t[E6])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Gb(e){return e.tag===5||e.tag===3||e.tag===4}function Kb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gb(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ng(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Kc));else if(r!==4&&(e=e.child,e!==null))for(ng(e,t,n),e=e.sibling;e!==null;)ng(e,t,n),e=e.sibling}function rg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(rg(e,t,n),e=e.sibling;e!==null;)rg(e,t,n),e=e.sibling}var Ht=null,yr=!1;function Yi(e,t,n){for(n=n.child;n!==null;)Xb(e,t,n),n=n.sibling}function Xb(e,t,n){if(Ir&&typeof Ir.onCommitFiberUnmount=="function")try{Ir.onCommitFiberUnmount(Pc,n)}catch{}switch(n.tag){case 5:Qt||Qa(n,t);case 6:var r=Ht,i=yr;Ht=null,Yi(e,t,n),Ht=r,yr=i,Ht!==null&&(yr?(e=Ht,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ht.removeChild(n.stateNode));break;case 18:Ht!==null&&(yr?(e=Ht,n=n.stateNode,e.nodeType===8?gm(e.parentNode,n):e.nodeType===1&&gm(e,n),vu(e)):gm(Ht,n.stateNode));break;case 4:r=Ht,i=yr,Ht=n.stateNode.containerInfo,yr=!0,Yi(e,t,n),Ht=r,yr=i;break;case 0:case 11:case 14:case 15:if(!Qt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&eg(n,t,a),i=i.next}while(i!==r)}Yi(e,t,n);break;case 1:if(!Qt&&(Qa(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){gt(n,t,s)}Yi(e,t,n);break;case 21:Yi(e,t,n);break;case 22:n.mode&1?(Qt=(r=Qt)||n.memoizedState!==null,Yi(e,t,n),Qt=r):Yi(e,t,n);break;default:Yi(e,t,n)}}function Qb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new B6),t.forEach(function(r){var i=G6.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function vr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:Ht=s.stateNode,yr=!1;break e;case 3:Ht=s.stateNode.containerInfo,yr=!0;break e;case 4:Ht=s.stateNode.containerInfo,yr=!0;break e}s=s.return}if(Ht===null)throw Error(Z(160));Xb(o,a,i),Ht=null,yr=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(l){gt(i,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Zb(t,e),t=t.sibling}function Zb(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vr(t,e),Mr(e),r&4){try{Uu(3,e,e.return),vd(3,e)}catch(y){gt(e,e.return,y)}try{Uu(5,e,e.return)}catch(y){gt(e,e.return,y)}}break;case 1:vr(t,e),Mr(e),r&512&&n!==null&&Qa(n,n.return);break;case 5:if(vr(t,e),Mr(e),r&512&&n!==null&&Qa(n,n.return),e.flags&32){var i=e.stateNode;try{su(i,"")}catch(y){gt(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,s=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&Sx(i,o),Dh(s,a);var l=Dh(s,o);for(a=0;a<u.length;a+=2){var c=u[a],d=u[a+1];c==="style"?Dx(i,d):c==="dangerouslySetInnerHTML"?Ix(i,d):c==="children"?su(i,d):yh(i,c,d,l)}switch(s){case"input":Rh(i,o);break;case"textarea":Rx(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?Na(i,!!o.multiple,p,!1):f!==!!o.multiple&&(o.defaultValue!=null?Na(i,!!o.multiple,o.defaultValue,!0):Na(i,!!o.multiple,o.multiple?[]:"",!1))}i[Ru]=o}catch(y){gt(e,e.return,y)}}break;case 6:if(vr(t,e),Mr(e),r&4){if(e.stateNode===null)throw Error(Z(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){gt(e,e.return,y)}}break;case 3:if(vr(t,e),Mr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{vu(t.containerInfo)}catch(y){gt(e,e.return,y)}break;case 4:vr(t,e),Mr(e);break;case 13:vr(t,e),Mr(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(ag=wt())),r&4&&Qb(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Qt=(l=Qt)||c,vr(t,e),Qt=l):vr(t,e),Mr(e),r&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!c&&e.mode&1)for(ue=e,c=e.child;c!==null;){for(d=ue=c;ue!==null;){switch(f=ue,p=f.child,f.tag){case 0:case 11:case 14:case 15:Uu(4,f,f.return);break;case 1:Qa(f,f.return);var m=f.stateNode;if(typeof m.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(y){gt(r,n,y)}}break;case 5:Qa(f,f.return);break;case 22:if(f.memoizedState!==null){tE(d);continue}}p!==null?(p.return=f,ue=p):tE(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,l?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=d.stateNode,u=d.memoizedProps.style,a=u!=null&&u.hasOwnProperty("display")?u.display:null,s.style.display=Ox("display",a))}catch(y){gt(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(y){gt(e,e.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:vr(t,e),Mr(e),r&4&&Qb(e);break;case 21:break;default:vr(t,e),Mr(e)}}function Mr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Gb(n)){var r=n;break e}n=n.return}throw Error(Z(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(su(i,""),r.flags&=-33);var o=Kb(e);rg(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=Kb(e);ng(e,s,a);break;default:throw Error(Z(161))}}catch(u){gt(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function U6(e,t,n){ue=e,Jb(e)}function Jb(e,t,n){for(var r=(e.mode&1)!==0;ue!==null;){var i=ue,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||yd;if(!a){var s=i.alternate,u=s!==null&&s.memoizedState!==null||Qt;s=yd;var l=Qt;if(yd=a,(Qt=u)&&!l)for(ue=i;ue!==null;)a=ue,u=a.child,a.tag===22&&a.memoizedState!==null?nE(i):u!==null?(u.return=a,ue=u):nE(i);for(;o!==null;)ue=o,Jb(o),o=o.sibling;ue=i,yd=s,Qt=l}eE(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,ue=o):eE(e)}}function eE(e){for(;ue!==null;){var t=ue;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Qt||vd(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Qt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:gr(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&tb(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}tb(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var c=l.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&vu(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Z(163))}Qt||t.flags&512&&tg(t)}catch(f){gt(t,t.return,f)}}if(t===e){ue=null;break}if(n=t.sibling,n!==null){n.return=t.return,ue=n;break}ue=t.return}}function tE(e){for(;ue!==null;){var t=ue;if(t===e){ue=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ue=n;break}ue=t.return}}function nE(e){for(;ue!==null;){var t=ue;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{vd(4,t)}catch(u){gt(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){gt(t,i,u)}}var o=t.return;try{tg(t)}catch(u){gt(t,o,u)}break;case 5:var a=t.return;try{tg(t)}catch(u){gt(t,a,u)}}}catch(u){gt(t,t.return,u)}if(t===e){ue=null;break}var s=t.sibling;if(s!==null){s.return=t.return,ue=s;break}ue=t.return}}var z6=Math.ceil,xd=ti.ReactCurrentDispatcher,ig=ti.ReactCurrentOwner,er=ti.ReactCurrentBatchConfig,Ue=0,Lt=null,Ct=null,Vt=0,Mn=0,Za=zi(0),Nt=0,zu=null,qo=0,wd=0,og=0,Hu=null,bn=null,ag=0,Ja=1/0,li=null,bd=!1,sg=null,qi=null,Ed=!1,Gi=null,Td=0,Vu=0,ug=null,_d=-1,Cd=0;function fn(){return Ue&6?wt():_d!==-1?_d:_d=wt()}function Ki(e){return e.mode&1?Ue&2&&Vt!==0?Vt&-Vt:_6.transition!==null?(Cd===0&&(Cd=Kx()),Cd):(e=qe,e!==0||(e=window.event,e=e===void 0?16:iw(e.type)),e):1}function xr(e,t,n,r){if(50<Vu)throw Vu=0,ug=null,Error(Z(185));pu(e,n,r),(!(Ue&2)||e!==Lt)&&(e===Lt&&(!(Ue&2)&&(wd|=n),Nt===4&&Xi(e,Vt)),En(e,r),n===1&&Ue===0&&!(t.mode&1)&&(Ja=wt()+500,Jc&&Vi()))}function En(e,t){var n=e.callbackNode;_D(e,t);var r=Dc(e,e===Lt?Vt:0);if(r===0)n!==null&&Yx(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Yx(n),t===1)e.tag===0?T6(iE.bind(null,e)):Vw(iE.bind(null,e)),x6(function(){!(Ue&6)&&Vi()}),n=null;else{switch(Xx(r)){case 1:n=zh;break;case 4:n=qx;break;case 16:n=Nc;break;case 536870912:n=Gx;break;default:n=Nc}n=fE(n,rE.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rE(e,t){if(_d=-1,Cd=0,Ue&6)throw Error(Z(327));var n=e.callbackNode;if(es()&&e.callbackNode!==n)return null;var r=Dc(e,e===Lt?Vt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Sd(e,r);else{t=r;var i=Ue;Ue|=2;var o=aE();(Lt!==e||Vt!==t)&&(li=null,Ja=wt()+500,Ko(e,t));do try{$6();break}catch(s){oE(e,s)}while(!0);Sm(),xd.current=o,Ue=i,Ct!==null?t=0:(Lt=null,Vt=0,t=Nt)}if(t!==0){if(t===2&&(i=Hh(e),i!==0&&(r=i,t=lg(e,i))),t===1)throw n=zu,Ko(e,0),Xi(e,r),En(e,wt()),n;if(t===6)Xi(e,r);else{if(i=e.current.alternate,!(r&30)&&!H6(i)&&(t=Sd(e,r),t===2&&(o=Hh(e),o!==0&&(r=o,t=lg(e,o))),t===1))throw n=zu,Ko(e,0),Xi(e,r),En(e,wt()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Z(345));case 2:Xo(e,bn,li);break;case 3:if(Xi(e,r),(r&130023424)===r&&(t=ag+500-wt(),10<t)){if(Dc(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){fn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=mm(Xo.bind(null,e,bn,li),t);break}Xo(e,bn,li);break;case 4:if(Xi(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-pr(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=wt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*z6(r/1960))-r,10<r){e.timeoutHandle=mm(Xo.bind(null,e,bn,li),r);break}Xo(e,bn,li);break;case 5:Xo(e,bn,li);break;default:throw Error(Z(329))}}}return En(e,wt()),e.callbackNode===n?rE.bind(null,e):null}function lg(e,t){var n=Hu;return e.current.memoizedState.isDehydrated&&(Ko(e,t).flags|=256),e=Sd(e,t),e!==2&&(t=bn,bn=n,t!==null&&cg(t)),e}function cg(e){bn===null?bn=e:bn.push.apply(bn,e)}function H6(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!hr(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Xi(e,t){for(t&=~og,t&=~wd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-pr(t),r=1<<n;e[n]=-1,t&=~r}}function iE(e){if(Ue&6)throw Error(Z(327));es();var t=Dc(e,0);if(!(t&1))return En(e,wt()),null;var n=Sd(e,t);if(e.tag!==0&&n===2){var r=Hh(e);r!==0&&(t=r,n=lg(e,r))}if(n===1)throw n=zu,Ko(e,0),Xi(e,t),En(e,wt()),n;if(n===6)throw Error(Z(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Xo(e,bn,li),En(e,wt()),null}function dg(e,t){var n=Ue;Ue|=1;try{return e(t)}finally{Ue=n,Ue===0&&(Ja=wt()+500,Jc&&Vi())}}function Go(e){Gi!==null&&Gi.tag===0&&!(Ue&6)&&es();var t=Ue;Ue|=1;var n=er.transition,r=qe;try{if(er.transition=null,qe=1,e)return e()}finally{qe=r,er.transition=n,Ue=t,!(Ue&6)&&Vi()}}function fg(){Mn=Za.current,nt(Za)}function Ko(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,v6(n)),Ct!==null)for(n=Ct.return;n!==null;){var r=n;switch(bm(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Qc();break;case 3:Ka(),nt(vn),nt(Gt),Dm();break;case 5:Im(r);break;case 4:Ka();break;case 13:nt(ct);break;case 19:nt(ct);break;case 10:Am(r.type._context);break;case 22:case 23:fg()}n=n.return}if(Lt=e,Ct=e=Qi(e.current,null),Vt=Mn=t,Nt=0,zu=null,og=wd=qo=0,bn=Hu=null,$o!==null){for(t=0;t<$o.length;t++)if(n=$o[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}$o=null}return e}function oE(e,t){do{var n=Ct;try{if(Sm(),ld.current=pd,cd){for(var r=dt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}cd=!1}if(Yo=0,Dt=Rt=dt=null,Lu=!1,Mu=0,ig.current=null,n===null||n.return===null){Nt=1,zu=t,Ct=null;break}e:{var o=e,a=n.return,s=n,u=t;if(t=Vt,s.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var l=u,c=s,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=Nb(a);if(p!==null){p.flags&=-257,Pb(p,a,s,o,t),p.mode&1&&Rb(o,l,t),t=p,u=l;var m=t.updateQueue;if(m===null){var y=new Set;y.add(u),t.updateQueue=y}else m.add(u);break e}else{if(!(t&1)){Rb(o,l,t),pg();break e}u=Error(Z(426))}}else if(ot&&s.mode&1){var b=Nb(a);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Pb(b,a,s,o,t),_m(Xa(u,s));break e}}o=u=Xa(u,s),Nt!==4&&(Nt=2),Hu===null?Hu=[o]:Hu.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=Ab(o,u,t);eb(o,g);break e;case 1:s=u;var x=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof x.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(qi===null||!qi.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var T=kb(o,s,t);eb(o,T);break e}}o=o.return}while(o!==null)}uE(n)}catch(_){t=_,Ct===n&&n!==null&&(Ct=n=n.return);continue}break}while(!0)}function aE(){var e=xd.current;return xd.current=pd,e===null?pd:e}function pg(){(Nt===0||Nt===3||Nt===2)&&(Nt=4),Lt===null||!(qo&268435455)&&!(wd&268435455)||Xi(Lt,Vt)}function Sd(e,t){var n=Ue;Ue|=2;var r=aE();(Lt!==e||Vt!==t)&&(li=null,Ko(e,t));do try{V6();break}catch(i){oE(e,i)}while(!0);if(Sm(),Ue=n,xd.current=r,Ct!==null)throw Error(Z(261));return Lt=null,Vt=0,Nt}function V6(){for(;Ct!==null;)sE(Ct)}function $6(){for(;Ct!==null&&!mD();)sE(Ct)}function sE(e){var t=dE(e.alternate,e,Mn);e.memoizedProps=e.pendingProps,t===null?uE(e):Ct=t,ig.current=null}function uE(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=F6(n,t),n!==null){n.flags&=32767,Ct=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Nt=6,Ct=null;return}}else if(n=M6(n,t,Mn),n!==null){Ct=n;return}if(t=t.sibling,t!==null){Ct=t;return}Ct=t=e}while(t!==null);Nt===0&&(Nt=5)}function Xo(e,t,n){var r=qe,i=er.transition;try{er.transition=null,qe=1,W6(e,t,n,r)}finally{er.transition=i,qe=r}return null}function W6(e,t,n,r){do es();while(Gi!==null);if(Ue&6)throw Error(Z(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Z(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(CD(e,o),e===Lt&&(Ct=Lt=null,Vt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ed||(Ed=!0,fE(Nc,function(){return es(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=er.transition,er.transition=null;var a=qe;qe=1;var s=Ue;Ue|=4,ig.current=null,j6(e,n),Zb(n,e),d6(pm),Fc=!!fm,pm=fm=null,e.current=n,U6(n),gD(),Ue=s,qe=a,er.transition=o}else e.current=n;if(Ed&&(Ed=!1,Gi=e,Td=i),o=e.pendingLanes,o===0&&(qi=null),xD(n.stateNode),En(e,wt()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(bd)throw bd=!1,e=sg,sg=null,e;return Td&1&&e.tag!==0&&es(),o=e.pendingLanes,o&1?e===ug?Vu++:(Vu=0,ug=e):Vu=0,Vi(),null}function es(){if(Gi!==null){var e=Xx(Td),t=er.transition,n=qe;try{if(er.transition=null,qe=16>e?16:e,Gi===null)var r=!1;else{if(e=Gi,Gi=null,Td=0,Ue&6)throw Error(Z(331));var i=Ue;for(Ue|=4,ue=e.current;ue!==null;){var o=ue,a=o.child;if(ue.flags&16){var s=o.deletions;if(s!==null){for(var u=0;u<s.length;u++){var l=s[u];for(ue=l;ue!==null;){var c=ue;switch(c.tag){case 0:case 11:case 15:Uu(8,c,o)}var d=c.child;if(d!==null)d.return=c,ue=d;else for(;ue!==null;){c=ue;var f=c.sibling,p=c.return;if(qb(c),c===l){ue=null;break}if(f!==null){f.return=p,ue=f;break}ue=p}}}var m=o.alternate;if(m!==null){var y=m.child;if(y!==null){m.child=null;do{var b=y.sibling;y.sibling=null,y=b}while(y!==null)}}ue=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,ue=a;else e:for(;ue!==null;){if(o=ue,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Uu(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,ue=g;break e}ue=o.return}}var x=e.current;for(ue=x;ue!==null;){a=ue;var w=a.child;if(a.subtreeFlags&2064&&w!==null)w.return=a,ue=w;else e:for(a=x;ue!==null;){if(s=ue,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:vd(9,s)}}catch(_){gt(s,s.return,_)}if(s===a){ue=null;break e}var T=s.sibling;if(T!==null){T.return=s.return,ue=T;break e}ue=s.return}}if(Ue=i,Vi(),Ir&&typeof Ir.onPostCommitFiberRoot=="function")try{Ir.onPostCommitFiberRoot(Pc,e)}catch{}r=!0}return r}finally{qe=n,er.transition=t}}return!1}function lE(e,t,n){t=Xa(n,t),t=Ab(e,t,1),e=Wi(e,t,1),t=fn(),e!==null&&(pu(e,1,t),En(e,t))}function gt(e,t,n){if(e.tag===3)lE(e,e,n);else for(;t!==null;){if(t.tag===3){lE(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(qi===null||!qi.has(r))){e=Xa(n,e),e=kb(t,e,1),t=Wi(t,e,1),e=fn(),t!==null&&(pu(t,1,e),En(t,e));break}}t=t.return}}function Y6(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=fn(),e.pingedLanes|=e.suspendedLanes&n,Lt===e&&(Vt&n)===n&&(Nt===4||Nt===3&&(Vt&130023424)===Vt&&500>wt()-ag?Ko(e,0):og|=n),En(e,t)}function cE(e,t){t===0&&(e.mode&1?(t=Oc,Oc<<=1,!(Oc&130023424)&&(Oc=4194304)):t=1);var n=fn();e=ai(e,t),e!==null&&(pu(e,t,n),En(e,n))}function q6(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),cE(e,n)}function G6(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Z(314))}r!==null&&r.delete(t),cE(e,n)}var dE;dE=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||vn.current)wn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return wn=!1,L6(e,t,n);wn=!!(e.flags&131072)}else wn=!1,ot&&t.flags&1048576&&$w(t,td,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;gd(e,t),e=t.pendingProps;var i=Ha(t,Gt.current);Ga(t,n),i=Fm(null,t,r,e,i,n);var o=Bm();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xn(r)?(o=!0,Zc(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Nm(t),i.updater=hd,t.stateNode=i,i._reactInternals=t,$m(t,r,e,n),t=Gm(null,t,r,!0,o,n)):(t.tag=0,ot&&o&&wm(t),dn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(gd(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=X6(r),e=gr(r,e),i){case 0:t=qm(null,t,r,e,n);break e;case 1:t=Fb(null,t,r,e,n);break e;case 11:t=Ib(null,t,r,e,n);break e;case 14:t=Ob(null,t,r,gr(r.type,e),n);break e}throw Error(Z(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),qm(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),Fb(e,t,r,i,n);case 3:e:{if(Bb(t),e===null)throw Error(Z(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Jw(e,t),sd(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Xa(Error(Z(423)),t),t=jb(e,t,r,n,i);break e}else if(r!==i){i=Xa(Error(Z(424)),t),t=jb(e,t,r,n,i);break e}else for(Ln=Ui(t.stateNode.containerInfo.firstChild),Dn=t,ot=!0,mr=null,n=Qw(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wa(),r===i){t=ui(e,t,n);break e}dn(e,t,r,n)}t=t.child}return t;case 5:return nb(t),e===null&&Tm(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,hm(r,i)?a=null:o!==null&&hm(r,o)&&(t.flags|=32),Mb(e,t),dn(e,t,a,n),t.child;case 6:return e===null&&Tm(t),null;case 13:return Ub(e,t,n);case 4:return Pm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ya(t,null,r,n):dn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),Ib(e,t,r,i,n);case 7:return dn(e,t,t.pendingProps,n),t.child;case 8:return dn(e,t,t.pendingProps.children,n),t.child;case 12:return dn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Je(id,r._currentValue),r._currentValue=a,o!==null)if(hr(o.value,a)){if(o.children===i.children&&!vn.current){t=ui(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=si(-1,n&-n),u.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),km(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(Z(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),km(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}dn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ga(t,n),i=Zn(i),r=r(i),t.flags|=1,dn(e,t,r,n),t.child;case 14:return r=t.type,i=gr(r,t.pendingProps),i=gr(r.type,i),Ob(e,t,r,i,n);case 15:return Db(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),gd(e,t),t.tag=1,xn(r)?(e=!0,Zc(t)):e=!1,Ga(t,n),Cb(t,r,i),$m(t,r,i,n),Gm(null,t,r,!0,e,n);case 19:return Hb(e,t,n);case 22:return Lb(e,t,n)}throw Error(Z(156,t.tag))};function fE(e,t){return Wx(e,t)}function K6(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tr(e,t,n,r){return new K6(e,t,n,r)}function hg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function X6(e){if(typeof e=="function")return hg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===wh)return 11;if(e===Th)return 14}return 2}function Qi(e,t){var n=e.alternate;return n===null?(n=tr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ad(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")hg(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ra:return Qo(n.children,i,o,t);case vh:a=8,i|=8;break;case xh:return e=tr(12,n,t,i|2),e.elementType=xh,e.lanes=o,e;case bh:return e=tr(13,n,t,i),e.elementType=bh,e.lanes=o,e;case Eh:return e=tr(19,n,t,i),e.elementType=Eh,e.lanes=o,e;case bx:return kd(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xx:a=10;break e;case wx:a=9;break e;case wh:a=11;break e;case Th:a=14;break e;case Ii:a=16,r=null;break e}throw Error(Z(130,e==null?e:typeof e,""))}return t=tr(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Qo(e,t,n,r){return e=tr(7,e,r,t),e.lanes=n,e}function kd(e,t,n,r){return e=tr(22,e,r,t),e.elementType=bx,e.lanes=n,e.stateNode={isHidden:!1},e}function mg(e,t,n){return e=tr(6,e,null,t),e.lanes=n,e}function gg(e,t,n){return t=tr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Q6(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vh(0),this.expirationTimes=Vh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vh(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function yg(e,t,n,r,i,o,a,s,u){return e=new Q6(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=tr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nm(o),e}function Z6(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ka,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function pE(e){if(!e)return Hi;e=e._reactInternals;e:{if(jo(e)!==e||e.tag!==1)throw Error(Z(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(xn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Z(171))}if(e.tag===1){var n=e.type;if(xn(n))return zw(e,n,t)}return t}function hE(e,t,n,r,i,o,a,s,u){return e=yg(n,r,!0,e,i,o,a,s,u),e.context=pE(null),n=e.current,r=fn(),i=Ki(n),o=si(r,i),o.callback=t??null,Wi(n,o,i),e.current.lanes=i,pu(e,i,r),En(e,r),e}function Rd(e,t,n,r){var i=t.current,o=fn(),a=Ki(i);return n=pE(n),t.context===null?t.context=n:t.pendingContext=n,t=si(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Wi(i,t,a),e!==null&&(xr(e,i,a,o),ad(e,i,a)),a}function Nd(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function mE(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function vg(e,t){mE(e,t),(e=e.alternate)&&mE(e,t)}function J6(){return null}var gE=typeof reportError=="function"?reportError:function(e){console.error(e)};function xg(e){this._internalRoot=e}Pd.prototype.render=xg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Z(409));Rd(e,t,null,null)},Pd.prototype.unmount=xg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Go(function(){Rd(null,e,null,null)}),t[ni]=null}};function Pd(e){this._internalRoot=e}Pd.prototype.unstable_scheduleHydration=function(e){if(e){var t=Jx();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Fi.length&&t!==0&&t<Fi[n].priority;n++);Fi.splice(n,0,e),n===0&&nw(e)}};function wg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Id(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function yE(){}function eL(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var l=Nd(a);o.call(l)}}var a=hE(t,r,e,0,null,!1,!1,"",yE);return e._reactRootContainer=a,e[ni]=a.current,Au(e.nodeType===8?e.parentNode:e),Go(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var l=Nd(u);s.call(l)}}var u=yg(e,0,!1,null,null,!1,!1,"",yE);return e._reactRootContainer=u,e[ni]=u.current,Au(e.nodeType===8?e.parentNode:e),Go(function(){Rd(t,u,n,r)}),u}function Od(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var u=Nd(a);s.call(u)}}Rd(t,a,e,i)}else a=eL(n,t,e,i,r);return Nd(a)}Qx=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=fu(t.pendingLanes);n!==0&&($h(t,n|1),En(t,wt()),!(Ue&6)&&(Ja=wt()+500,Vi()))}break;case 13:Go(function(){var r=ai(e,1);if(r!==null){var i=fn();xr(r,e,1,i)}}),vg(e,1)}},Wh=function(e){if(e.tag===13){var t=ai(e,134217728);if(t!==null){var n=fn();xr(t,e,134217728,n)}vg(e,134217728)}},Zx=function(e){if(e.tag===13){var t=Ki(e),n=ai(e,t);if(n!==null){var r=fn();xr(n,e,t,r)}vg(e,t)}},Jx=function(){return qe},ew=function(e,t){var n=qe;try{return qe=e,t()}finally{qe=n}},Fh=function(e,t,n){switch(t){case"input":if(Rh(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Xc(r);if(!i)throw Error(Z(90));_x(r),Rh(r,i)}}}break;case"textarea":Rx(e,n);break;case"select":t=n.value,t!=null&&Na(e,!!n.multiple,t,!1)}},Bx=dg,jx=Go;var tL={usingClientEntryPoint:!1,Events:[Nu,Ua,Xc,Mx,Fx,dg]},$u={findFiberByHostInstance:Uo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nL={bundleType:$u.bundleType,version:$u.version,rendererPackageName:$u.rendererPackageName,rendererConfig:$u.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ti.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Vx(e),e===null?null:e.stateNode},findFiberByHostInstance:$u.findFiberByHostInstance||J6,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Dd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dd.isDisabled&&Dd.supportsFiber)try{Pc=Dd.inject(nL),Ir=Dd}catch{}}Pn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tL,Pn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!wg(t))throw Error(Z(200));return Z6(e,t,null,n)},Pn.createRoot=function(e,t){if(!wg(e))throw Error(Z(299));var n=!1,r="",i=gE;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=yg(e,1,!1,null,null,n,!1,r,i),e[ni]=t.current,Au(e.nodeType===8?e.parentNode:e),new xg(t)},Pn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Z(188)):(e=Object.keys(e).join(","),Error(Z(268,e)));return e=Vx(t),e=e===null?null:e.stateNode,e},Pn.flushSync=function(e){return Go(e)},Pn.hydrate=function(e,t,n){if(!Id(t))throw Error(Z(200));return Od(null,e,t,!0,n)},Pn.hydrateRoot=function(e,t,n){if(!wg(e))throw Error(Z(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=gE;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=hE(t,null,e,1,n??null,i,!1,o,a),e[ni]=t.current,Au(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Pd(t)},Pn.render=function(e,t,n){if(!Id(t))throw Error(Z(200));return Od(null,e,t,!1,n)},Pn.unmountComponentAtNode=function(e){if(!Id(e))throw Error(Z(40));return e._reactRootContainer?(Go(function(){Od(null,null,e,!1,function(){e._reactRootContainer=null,e[ni]=null})}),!0):!1},Pn.unstable_batchedUpdates=dg,Pn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Id(n))throw Error(Z(200));if(e==null||e._reactInternals===void 0)throw Error(Z(38));return Od(e,t,n,!1,r)},Pn.version="18.3.1-next-f1338f8080-20240426";function vE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vE)}catch(e){console.error(e)}}vE(),px.exports=Pn;var Zo=px.exports,xE,wE=Zo;xE=wE.createRoot,wE.hydrateRoot;const bE="3.0.44";function Ld(e){"@babel/helpers - typeof";return Ld=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ld(e)}var rL=/^\s+/,iL=/\s+$/;function fe(e,t){if(e=e||"",t=t||{},e instanceof fe)return e;if(!(this instanceof fe))return new fe(e,t);var n=oL(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}fe.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,o,a,s;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*a+.0722*s},setAlpha:function(t){return this._a=AE(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=TE(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=TE(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=EE(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=EE(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return _E(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return lL(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(at(this._r,255)*100)+"%",g:Math.round(at(this._g,255)*100)+"%",b:Math.round(at(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(at(this._r,255)*100)+"%, "+Math.round(at(this._g,255)*100)+"%, "+Math.round(at(this._b,255)*100)+"%)":"rgba("+Math.round(at(this._r,255)*100)+"%, "+Math.round(at(this._g,255)*100)+"%, "+Math.round(at(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:bL[_E(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+CE(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=fe(t);r="#"+CE(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,i=this._a<1&&this._a>=0,o=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return fe(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(pL,arguments)},brighten:function(){return this._applyModification(hL,arguments)},darken:function(){return this._applyModification(mL,arguments)},desaturate:function(){return this._applyModification(cL,arguments)},saturate:function(){return this._applyModification(dL,arguments)},greyscale:function(){return this._applyModification(fL,arguments)},spin:function(){return this._applyModification(gL,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(xL,arguments)},complement:function(){return this._applyCombination(yL,arguments)},monochromatic:function(){return this._applyCombination(wL,arguments)},splitcomplement:function(){return this._applyCombination(vL,arguments)},triad:function(){return this._applyCombination(SE,[3])},tetrad:function(){return this._applyCombination(SE,[4])}},fe.fromRatio=function(e,t){if(Ld(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=Wu(e[r]));e=n}return fe(e,t)};function oL(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=CL(e)),Ld(e)=="object"&&(ci(e.r)&&ci(e.g)&&ci(e.b)?(t=aL(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ci(e.h)&&ci(e.s)&&ci(e.v)?(r=Wu(e.s),i=Wu(e.v),t=uL(e.h,r,i),a=!0,s="hsv"):ci(e.h)&&ci(e.s)&&ci(e.l)&&(r=Wu(e.s),o=Wu(e.l),t=sL(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=AE(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function aL(e,t,n){return{r:at(e,255)*255,g:at(t,255)*255,b:at(n,255)*255}}function EE(e,t,n){e=at(e,255),t=at(t,255),n=at(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,a,s=(r+i)/2;if(r==i)o=a=0;else{var u=r-i;switch(a=s>.5?u/(2-r-i):u/(r+i),r){case e:o=(t-n)/u+(t<n?6:0);break;case t:o=(n-e)/u+2;break;case n:o=(e-t)/u+4;break}o/=6}return{h:o,s:a,l:s}}function sL(e,t,n){var r,i,o;e=at(e,360),t=at(t,100),n=at(n,100);function a(l,c,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?l+(c-l)*6*d:d<1/2?c:d<2/3?l+(c-l)*(2/3-d)*6:l}if(t===0)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=a(u,s,e+1/3),i=a(u,s,e),o=a(u,s,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function TE(e,t,n){e=at(e,255),t=at(t,255),n=at(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,a,s=r,u=r-i;if(a=r===0?0:u/r,r==i)o=0;else{switch(r){case e:o=(t-n)/u+(t<n?6:0);break;case t:o=(n-e)/u+2;break;case n:o=(e-t)/u+4;break}o/=6}return{h:o,s:a,v:s}}function uL(e,t,n){e=at(e,360)*6,t=at(t,100),n=at(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),u=r%6,l=[n,a,o,o,s,n][u],c=[s,n,n,a,o,o][u],d=[o,o,s,n,n,a][u];return{r:l*255,g:c*255,b:d*255}}function _E(e,t,n,r){var i=[wr(Math.round(e).toString(16)),wr(Math.round(t).toString(16)),wr(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function lL(e,t,n,r,i){var o=[wr(Math.round(e).toString(16)),wr(Math.round(t).toString(16)),wr(Math.round(n).toString(16)),wr(kE(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function CE(e,t,n,r){var i=[wr(kE(r)),wr(Math.round(e).toString(16)),wr(Math.round(t).toString(16)),wr(Math.round(n).toString(16))];return i.join("")}fe.equals=function(e,t){return!e||!t?!1:fe(e).toRgbString()==fe(t).toRgbString()},fe.random=function(){return fe.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function cL(e,t){t=t===0?0:t||10;var n=fe(e).toHsl();return n.s-=t/100,n.s=Md(n.s),fe(n)}function dL(e,t){t=t===0?0:t||10;var n=fe(e).toHsl();return n.s+=t/100,n.s=Md(n.s),fe(n)}function fL(e){return fe(e).desaturate(100)}function pL(e,t){t=t===0?0:t||10;var n=fe(e).toHsl();return n.l+=t/100,n.l=Md(n.l),fe(n)}function hL(e,t){t=t===0?0:t||10;var n=fe(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),fe(n)}function mL(e,t){t=t===0?0:t||10;var n=fe(e).toHsl();return n.l-=t/100,n.l=Md(n.l),fe(n)}function gL(e,t){var n=fe(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,fe(n)}function yL(e){var t=fe(e).toHsl();return t.h=(t.h+180)%360,fe(t)}function SE(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=fe(e).toHsl(),r=[fe(e)],i=360/t,o=1;o<t;o++)r.push(fe({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function vL(e){var t=fe(e).toHsl(),n=t.h;return[fe(e),fe({h:(n+72)%360,s:t.s,l:t.l}),fe({h:(n+216)%360,s:t.s,l:t.l})]}function xL(e,t,n){t=t||6,n=n||30;var r=fe(e).toHsl(),i=360/n,o=[fe(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(fe(r));return o}function wL(e,t){t=t||6;for(var n=fe(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(fe({h:r,s:i,v:o})),o=(o+s)%1;return a}fe.mix=function(e,t,n){n=n===0?0:n||50;var r=fe(e).toRgb(),i=fe(t).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return fe(a)},fe.readability=function(e,t){var n=fe(e),r=fe(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},fe.isReadable=function(e,t,n){var r=fe.readability(e,t),i,o;switch(o=!1,i=SL(n),i.level+i.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o},fe.mostReadable=function(e,t,n){var r=null,i=0,o,a,s,u;n=n||{},a=n.includeFallbackColors,s=n.level,u=n.size;for(var l=0;l<t.length;l++)o=fe.readability(e,t[l]),o>i&&(i=o,r=fe(t[l]));return fe.isReadable(e,r,{level:s,size:u})||!a?r:(n.includeFallbackColors=!1,fe.mostReadable(e,["#fff","#000"],n))};var bg=fe.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},bL=fe.hexNames=EL(bg);function EL(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function AE(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function at(e,t){TL(e)&&(e="100%");var n=_L(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Md(e){return Math.min(1,Math.max(0,e))}function Fn(e){return parseInt(e,16)}function TL(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function _L(e){return typeof e=="string"&&e.indexOf("%")!=-1}function wr(e){return e.length==1?"0"+e:""+e}function Wu(e){return e<=1&&(e=e*100+"%"),e}function kE(e){return Math.round(parseFloat(e)*255).toString(16)}function RE(e){return Fn(e)/255}var br=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ci(e){return!!br.CSS_UNIT.exec(e)}function CL(e){e=e.replace(rL,"").replace(iL,"").toLowerCase();var t=!1;if(bg[e])e=bg[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=br.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=br.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=br.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=br.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=br.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=br.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=br.hex8.exec(e))?{r:Fn(n[1]),g:Fn(n[2]),b:Fn(n[3]),a:RE(n[4]),format:t?"name":"hex8"}:(n=br.hex6.exec(e))?{r:Fn(n[1]),g:Fn(n[2]),b:Fn(n[3]),format:t?"name":"hex"}:(n=br.hex4.exec(e))?{r:Fn(n[1]+""+n[1]),g:Fn(n[2]+""+n[2]),b:Fn(n[3]+""+n[3]),a:RE(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=br.hex3.exec(e))?{r:Fn(n[1]+""+n[1]),g:Fn(n[2]+""+n[2]),b:Fn(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function SL(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}const AL=350,NE=400,PE=600,Eg={widgetMinHeight:"min-h-[400px]",widgetMaxHeight:"max-h-[600px]",widgetHeight:"h-[600px]"},IE=({primary:e="hsl(0, 0%, 0%)"})=>{const t=fe(e).toHsl(),n=fe(e).isLight()?"240 10% 3.9%":"0 0% 100%";return{"--opencx-primary":`${t.h} ${t.s*100}% ${t.l*100}%`,"--opencx-primary-foreground":n,"--opencx-background":"0 0% 100%","--opencx-foreground":"240 10% 3.9%","--opencx-accent":"240 4.8% 95.9%","--opencx-accent-foreground":"240 5.9% 10%","--opencx-destructive":"0 84.2% 60.2%","--opencx-destructive-foreground":"0 0% 98%","--opencx-secondary":"240 4.8% 95.9%","--opencx-secondary-foreground":"240 5.9% 10%","--opencx-muted":"240 4.8% 95.9%","--opencx-muted-foreground":"240 3.8% 46.1%","--opencx-input":"240 5.9% 90%","--opencx-border":"240 5.9% 90%","--opencx-ring":"240 5.9% 10%"}};function kL(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}function Yu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Tg=e=>Array.isArray(e);function OE(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function qu(e){return typeof e=="string"||Array.isArray(e)}function DE(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function _g(e,t,n,r){if(typeof t=="function"){const[i,o]=DE(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=DE(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function Fd(e,t,n){const r=e.getProps();return _g(r,t,n!==void 0?n:r.custom,e)}const Cg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Sg=["initial",...Cg],Gu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Zi=new Set(Gu),di=e=>e*1e3,fi=e=>e/1e3,RL={type:"spring",stiffness:500,damping:25,restSpeed:10},NL=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),PL={type:"keyframes",duration:.8},IL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},OL=(e,{keyframes:t})=>t.length>2?PL:Zi.has(e)?e.startsWith("scale")?NL(t[1]):RL:IL;function Ag(e,t){return e?e[t]||e.default||e:void 0}const DL={skipAnimations:!1,useManualTiming:!1},LL=e=>e!==null;function Bd(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(LL),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Zt=e=>e;function ML(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function s(l){o.has(l)&&(u.schedule(l),e()),l(a)}const u={schedule:(l,c=!1,d=!1)=>{const p=d&&r?t:n;return c&&o.add(l),p.has(l)||p.add(l),l},cancel:l=>{n.delete(l),o.delete(l)},process:l=>{if(a=l,r){i=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(s),r=!1,i&&(i=!1,u.process(l))}};return u}const jd=["read","resolveKeyframes","update","preRender","render","postRender"],FL=40;function LE(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=jd.reduce((g,x)=>(g[x]=ML(o),g),{}),{read:s,resolveKeyframes:u,update:l,preRender:c,render:d,postRender:f}=a,p=()=>{const g=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,FL),1),i.timestamp=g,i.isProcessing=!0,s.process(i),u.process(i),l.process(i),c.process(i),d.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(p))},m=()=>{n=!0,r=!0,i.isProcessing||e(p)};return{schedule:jd.reduce((g,x)=>{const w=a[x];return g[x]=(T,_=!1,C=!1)=>(n||m(),w.schedule(T,_,C)),g},{}),cancel:g=>{for(let x=0;x<jd.length;x++)a[jd[x]].cancel(g)},state:i,steps:a}}const{schedule:Xe,cancel:Ji,state:$t,steps:kg}=LE(typeof requestAnimationFrame<"u"?requestAnimationFrame:Zt,!0),ME=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,BL=1e-7,jL=12;function UL(e,t,n,r,i){let o,a,s=0;do a=t+(n-t)/2,o=ME(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>BL&&++s<jL);return a}function Ku(e,t,n,r){if(e===t&&n===r)return Zt;const i=o=>UL(o,0,1,e,n);return o=>o===0||o===1?o:ME(i(o),t,r)}const FE=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,BE=e=>t=>1-e(1-t),jE=Ku(.33,1.53,.69,.99),Rg=BE(jE),UE=FE(Rg),zE=e=>(e*=2)<1?.5*Rg(e):.5*(2-Math.pow(2,-10*(e-1))),Ng=e=>1-Math.sin(Math.acos(e)),HE=BE(Ng),VE=FE(Ng),$E=e=>/^0[^.\s]+$/u.test(e);function zL(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||$E(e):!0}let Pg=Zt;const WE=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),YE=e=>t=>typeof t=="string"&&t.startsWith(e),qE=YE("--"),HL=YE("var(--"),Ig=e=>HL(e)?VL.test(e.split("/*")[0].trim()):!1,VL=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,$L=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function WL(e){const t=$L.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function GE(e,t,n=1){const[r,i]=WL(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return WE(a)?parseFloat(a):a}return Ig(i)?GE(i,t,n+1):i}const eo=(e,t,n)=>n>t?t:n<e?e:n,ts={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Xu={...ts,transform:e=>eo(0,1,e)},Ud={...ts,default:1},Qu=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),to=Qu("deg"),Fr=Qu("%"),ye=Qu("px"),YL=Qu("vh"),qL=Qu("vw"),KE={...Fr,parse:e=>Fr.parse(e)/100,transform:e=>Fr.transform(e*100)},GL=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),XE=e=>e===ts||e===ye,QE=(e,t)=>parseFloat(e.split(", ")[t]),ZE=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return QE(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?QE(o[1],e):0}},KL=new Set(["x","y","z"]),XL=Gu.filter(e=>!KL.has(e));function QL(e){const t=[];return XL.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ns={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:ZE(4,13),y:ZE(5,14)};ns.translateX=ns.x,ns.translateY=ns.y;const JE=e=>t=>t.test(e),eT=[ts,ye,Fr,to,qL,YL,{test:e=>e==="auto",parse:e=>e}],tT=e=>eT.find(JE(e)),Jo=new Set;let Og=!1,Dg=!1;function nT(){if(Dg){const e=Array.from(Jo).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=QL(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var s;(s=r.getValue(o))===null||s===void 0||s.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Dg=!1,Og=!1,Jo.forEach(e=>e.complete()),Jo.clear()}function rT(){Jo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Dg=!0)})}function ZL(){rT(),nT()}class Lg{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Jo.add(this),Og||(Og=!0,Xe.read(rT),Xe.resolveKeyframes(nT))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,s);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Jo.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Jo.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Zu=e=>Math.round(e*1e5)/1e5,Mg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function JL(e){return e==null}const e4=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Fg=(e,t)=>n=>!!(typeof n=="string"&&e4.test(n)&&n.startsWith(e)||t&&!JL(n)&&Object.prototype.hasOwnProperty.call(n,t)),iT=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,s]=r.match(Mg);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},t4=e=>eo(0,255,e),Bg={...ts,transform:e=>Math.round(t4(e))},ea={test:Fg("rgb","red"),parse:iT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Bg.transform(e)+", "+Bg.transform(t)+", "+Bg.transform(n)+", "+Zu(Xu.transform(r))+")"};function n4(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const jg={test:Fg("#"),parse:n4,transform:ea.transform},rs={test:Fg("hsl","hue"),parse:iT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Fr.transform(Zu(t))+", "+Fr.transform(Zu(n))+", "+Zu(Xu.transform(r))+")"},Jt={test:e=>ea.test(e)||jg.test(e)||rs.test(e),parse:e=>ea.test(e)?ea.parse(e):rs.test(e)?rs.parse(e):jg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ea.transform(e):rs.transform(e)},r4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function i4(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Mg))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(r4))===null||n===void 0?void 0:n.length)||0)>0}const oT="number",aT="color",o4="var",a4="var(",sT="${}",s4=/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 Ju(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const s=t.replace(s4,u=>(Jt.test(u)?(r.color.push(o),i.push(aT),n.push(Jt.parse(u))):u.startsWith(a4)?(r.var.push(o),i.push(o4),n.push(u)):(r.number.push(o),i.push(oT),n.push(parseFloat(u))),++o,sT)).split(sT);return{values:n,split:s,indexes:r,types:i}}function uT(e){return Ju(e).values}function lT(e){const{split:t,types:n}=Ju(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const s=n[a];s===oT?o+=Zu(i[a]):s===aT?o+=Jt.transform(i[a]):o+=i[a]}return o}}const u4=e=>typeof e=="number"?0:e;function l4(e){const t=uT(e);return lT(e)(t.map(u4))}const no={test:i4,parse:uT,createTransformer:lT,getAnimatableNone:l4},c4=new Set(["brightness","contrast","saturate","opacity"]);function d4(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Mg)||[];if(!r)return e;const i=n.replace(r,"");let o=c4.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const f4=/\b([a-z-]*)\(.*?\)/gu,Ug={...no,getAnimatableNone:e=>{const t=e.match(f4);return t?t.map(d4).join(" "):e}},p4={borderWidth:ye,borderTopWidth:ye,borderRightWidth:ye,borderBottomWidth:ye,borderLeftWidth:ye,borderRadius:ye,radius:ye,borderTopLeftRadius:ye,borderTopRightRadius:ye,borderBottomRightRadius:ye,borderBottomLeftRadius:ye,width:ye,maxWidth:ye,height:ye,maxHeight:ye,top:ye,right:ye,bottom:ye,left:ye,padding:ye,paddingTop:ye,paddingRight:ye,paddingBottom:ye,paddingLeft:ye,margin:ye,marginTop:ye,marginRight:ye,marginBottom:ye,marginLeft:ye,backgroundPositionX:ye,backgroundPositionY:ye},h4={rotate:to,rotateX:to,rotateY:to,rotateZ:to,scale:Ud,scaleX:Ud,scaleY:Ud,scaleZ:Ud,skew:to,skewX:to,skewY:to,distance:ye,translateX:ye,translateY:ye,translateZ:ye,x:ye,y:ye,z:ye,perspective:ye,transformPerspective:ye,opacity:Xu,originX:KE,originY:KE,originZ:ye},cT={...ts,transform:Math.round},zg={...p4,...h4,zIndex:cT,size:ye,fillOpacity:Xu,strokeOpacity:Xu,numOctaves:cT},m4={...zg,color:Jt,backgroundColor:Jt,outlineColor:Jt,fill:Jt,stroke:Jt,borderColor:Jt,borderTopColor:Jt,borderRightColor:Jt,borderBottomColor:Jt,borderLeftColor:Jt,filter:Ug,WebkitFilter:Ug},Hg=e=>m4[e];function dT(e,t){let n=Hg(e);return n!==Ug&&(n=no),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const g4=new Set(["auto","none","0"]);function y4(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!g4.has(o)&&Ju(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=dT(n,i)}class fT extends Lg{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let l=t[u];if(typeof l=="string"&&(l=l.trim(),Ig(l))){const c=GE(l,n.current);c!==void 0&&(t[u]=c),u===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!GL.has(r)||t.length!==2)return;const[i,o]=t,a=tT(i),s=tT(o);if(a!==s)if(XE(a)&&XE(s))for(let u=0;u<t.length;u++){const l=t[u];typeof l=="string"&&(t[u]=parseFloat(l))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)zL(t[i])&&r.push(i);r.length&&y4(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ns[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,s=i[a];i[a]=ns[r](n.measureViewportBox(),window.getComputedStyle(n.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,l])=>{n.getValue(u).set(l)}),this.resolveNoneKeyframes()}}function Vg(e){return typeof e=="function"}let zd;function v4(){zd=void 0}const Br={now:()=>(zd===void 0&&Br.set($t.isProcessing||DL.useManualTiming?$t.timestamp:performance.now()),zd),set:e=>{zd=e,queueMicrotask(v4)}},pT=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(no.test(e)||e==="0")&&!e.startsWith("url("));function x4(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function w4(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=pT(i,t),s=pT(o,t);return!a||!s?!1:x4(e)||(n==="spring"||Vg(n))&&r}const b4=40;class hT{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Br.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>b4?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ZL(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Br.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:s,onUpdate:u,isGenerator:l}=this.options;if(!l&&!w4(t,r,i,o))if(a)this.options.duration=0;else{u==null||u(Bd(t,this.options,n)),s==null||s(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function mT(e,t){return t?e*(1e3/t):0}const E4=5;function gT(e,t,n){const r=Math.max(t-E4,0);return mT(n-e(r),t-r)}const $g=.001,T4=.01,_4=10,C4=.05,S4=1;function A4({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,a=1-t;a=eo(C4,S4,a),e=eo(T4,_4,fi(e)),a<1?(i=l=>{const c=l*a,d=c*e,f=c-n,p=Wg(l,a),m=Math.exp(-d);return $g-f/p*m},o=l=>{const d=l*a*e,f=d*n+n,p=Math.pow(a,2)*Math.pow(l,2)*e,m=Math.exp(-d),y=Wg(Math.pow(l,2),a);return(-i(l)+$g>0?-1:1)*((f-p)*m)/y}):(i=l=>{const c=Math.exp(-l*e),d=(l-n)*e+1;return-$g+c*d},o=l=>{const c=Math.exp(-l*e),d=(n-l)*(e*e);return c*d});const s=5/e,u=R4(i,o,s);if(e=di(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:a*2*Math.sqrt(r*l),duration:e}}}const k4=12;function R4(e,t,n){let r=n;for(let i=1;i<k4;i++)r=r-e(r)/t(r);return r}function Wg(e,t){return e*Math.sqrt(1-t*t)}const N4=["duration","bounce"],P4=["stiffness","damping","mass"];function yT(e,t){return t.some(n=>e[n]!==void 0)}function I4(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!yT(e,P4)&&yT(e,N4)){const n=A4(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function vT({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],a={done:!1,value:i},{stiffness:s,damping:u,mass:l,duration:c,velocity:d,isResolvedFromDuration:f}=I4({...r,velocity:-fi(r.velocity||0)}),p=d||0,m=u/(2*Math.sqrt(s*l)),y=o-i,b=fi(Math.sqrt(s/l)),g=Math.abs(y)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let x;if(m<1){const w=Wg(b,m);x=T=>{const _=Math.exp(-m*b*T);return o-_*((p+m*b*y)/w*Math.sin(w*T)+y*Math.cos(w*T))}}else if(m===1)x=w=>o-Math.exp(-b*w)*(y+(p+b*y)*w);else{const w=b*Math.sqrt(m*m-1);x=T=>{const _=Math.exp(-m*b*T),C=Math.min(w*T,300);return o-_*((p+m*b*y)*Math.sinh(C)+w*y*Math.cosh(C))/w}}return{calculatedDuration:f&&c||null,next:w=>{const T=x(w);if(f)a.done=w>=c;else{let _=0;m<1&&(_=w===0?di(p):gT(x,w,T));const C=Math.abs(_)<=n,R=Math.abs(o-T)<=t;a.done=C&&R}return a.value=a.done?o:T,a}}}function xT({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:u,restDelta:l=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=O=>s!==void 0&&O<s||u!==void 0&&O>u,m=O=>s===void 0?u:u===void 0||Math.abs(s-O)<Math.abs(u-O)?s:u;let y=n*t;const b=d+y,g=a===void 0?b:a(b);g!==b&&(y=g-d);const x=O=>-y*Math.exp(-O/r),w=O=>g+x(O),T=O=>{const V=x(O),P=w(O);f.done=Math.abs(V)<=l,f.value=f.done?g:P};let _,C;const R=O=>{p(f.value)&&(_=O,C=vT({keyframes:[f.value,m(f.value)],velocity:gT(w,O,f.value),damping:i,stiffness:o,restDelta:l,restSpeed:c}))};return R(0),{calculatedDuration:null,next:O=>{let V=!1;return!C&&_===void 0&&(V=!0,T(O),R(O)),_!==void 0&&O>=_?C.next(O-_):(!V&&T(O),f)}}}const O4=Ku(.42,0,1,1),D4=Ku(0,0,.58,1),wT=Ku(.42,0,.58,1),L4=e=>Array.isArray(e)&&typeof e[0]!="number",Yg=e=>Array.isArray(e)&&typeof e[0]=="number",bT={linear:Zt,easeIn:O4,easeInOut:wT,easeOut:D4,circIn:Ng,circInOut:VE,circOut:HE,backIn:Rg,backInOut:UE,backOut:jE,anticipate:zE},ET=e=>{if(Yg(e)){Pg(e.length===4);const[t,n,r,i]=e;return Ku(t,n,r,i)}else if(typeof e=="string")return Pg(bT[e]!==void 0),bT[e];return e},M4=(e,t)=>n=>t(e(n)),pi=(...e)=>e.reduce(M4),is=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ft=(e,t,n)=>e+(t-e)*n;function qg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function F4({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;i=qg(u,s,e+1/3),o=qg(u,s,e),a=qg(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Hd(e,t){return n=>n>0?t:e}const Gg=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},B4=[jg,ea,rs],j4=e=>B4.find(t=>t.test(e));function TT(e){const t=j4(e);if(!t)return!1;let n=t.parse(e);return t===rs&&(n=F4(n)),n}const _T=(e,t)=>{const n=TT(e),r=TT(t);if(!n||!r)return Hd(e,t);const i={...n};return o=>(i.red=Gg(n.red,r.red,o),i.green=Gg(n.green,r.green,o),i.blue=Gg(n.blue,r.blue,o),i.alpha=ft(n.alpha,r.alpha,o),ea.transform(i))},Kg=new Set(["none","hidden"]);function U4(e,t){return Kg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function z4(e,t){return n=>ft(e,t,n)}function Xg(e){return typeof e=="number"?z4:typeof e=="string"?Ig(e)?Hd:Jt.test(e)?_T:$4:Array.isArray(e)?CT:typeof e=="object"?Jt.test(e)?_T:H4:Hd}function CT(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>Xg(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function H4(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Xg(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function V4(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],s=e.indexes[a][i[a]],u=(n=e.values[s])!==null&&n!==void 0?n:0;r[o]=u,i[a]++}return r}const $4=(e,t)=>{const n=no.createTransformer(t),r=Ju(e),i=Ju(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Kg.has(e)&&!i.values.length||Kg.has(t)&&!r.values.length?U4(e,t):pi(CT(V4(r,i),i.values),n):Hd(e,t)};function ST(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ft(e,t,n):Xg(e)(e,t)}function W4(e,t,n){const r=[],i=n||ST,o=e.length-1;for(let a=0;a<o;a++){let s=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Zt:t;s=pi(u,s)}r.push(s)}return r}function Y4(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Pg(o===t.length),o===1)return()=>t[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=W4(t,r,i),s=a.length,u=l=>{let c=0;if(s>1)for(;c<e.length-2&&!(l<e[c+1]);c++);const d=is(e[c],e[c+1],l);return a[c](d)};return n?l=>u(eo(e[0],e[o-1],l)):u}function q4(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=is(0,t,r);e.push(ft(n,1,i))}}function G4(e){const t=[0];return q4(t,e.length-1),t}function K4(e,t){return e.map(n=>n*t)}function X4(e,t){return e.map(()=>t||wT).splice(0,e.length-1)}function Vd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=L4(r)?r.map(ET):ET(r),o={done:!1,value:t[0]},a=K4(n&&n.length===t.length?n:G4(t),e),s=Y4(a,t,{ease:Array.isArray(i)?i:X4(t,i)});return{calculatedDuration:e,next:u=>(o.value=s(u),o.done=u>=e,o)}}const AT=2e4;function Q4(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<AT;)t+=n,r=e.next(t);return t>=AT?1/0:t}const Z4=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Xe.update(t,!0),stop:()=>Ji(t),now:()=>$t.isProcessing?$t.timestamp:Br.now()}},J4={decay:xT,inertia:xT,tween:Vd,keyframes:Vd,spring:vT},eM=e=>e/100;class Qg extends hT{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||Lg,s=(u,l)=>this.onKeyframesResolved(u,l);this.resolver=new a(o,s,n,r,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,s=Vg(n)?n:J4[n]||Vd;let u,l;s!==Vd&&typeof t[0]!="number"&&(u=pi(eM,ST(t[0],t[1])),t=[0,100]);const c=s({...this.options,keyframes:t});o==="mirror"&&(l=s({...this.options,keyframes:[...t].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Q4(c));const{calculatedDuration:d}=c,f=d+i,p=f*(r+1)-i;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:u,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:O}=this.options;return{done:!0,value:O[O.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:s,keyframes:u,calculatedDuration:l,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return o.next(0);const{delay:f,repeat:p,repeatType:m,repeatDelay:y,onUpdate:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const g=this.currentTime-f*(this.speed>=0?1:-1),x=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let w=this.currentTime,T=o;if(p){const O=Math.min(this.currentTime,c)/d;let V=Math.floor(O),P=O%1;!P&&O>=1&&(P=1),P===1&&V--,V=Math.min(V,p+1),!!(V%2)&&(m==="reverse"?(P=1-P,y&&(P-=y/d)):m==="mirror"&&(T=a)),w=eo(0,1,P)*d}const _=x?{done:!1,value:u[0]}:T.next(w);s&&(_.value=s(_.value));let{done:C}=_;!x&&l!==null&&(C=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return R&&i!==void 0&&(_.value=Bd(u,this.options,i)),b&&b(_.value),R&&this.finish(),_}get duration(){const{resolved:t}=this;return t?fi(t.calculatedDuration):0}get time(){return fi(this.currentTime)}set time(t){t=di(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=fi(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Z4,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const kT=new Set(["opacity","clipPath","filter","transform"]),tM=10,nM=(e,t)=>{let n="";const r=Math.max(Math.round(t/tM),2);for(let i=0;i<r;i++)n+=e(is(0,r-1,i))+", ";return`linear(${n.substring(0,n.length-2)})`};function Zg(e){let t;return()=>(t===void 0&&(t=e()),t)}const rM={linearEasing:void 0};function iM(e,t){const n=Zg(e);return()=>{var r;return(r=rM[t])!==null&&r!==void 0?r:n()}}const $d=iM(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function RT(e){return!!(typeof e=="function"&&$d()||!e||typeof e=="string"&&(e in Jg||$d())||Yg(e)||Array.isArray(e)&&e.every(RT))}const el=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Jg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:el([0,.65,.55,1]),circOut:el([.55,0,1,.45]),backIn:el([.31,.01,.66,-.59]),backOut:el([.33,1.53,.69,.99])};function NT(e,t){if(e)return typeof e=="function"&&$d()?nM(e,t):Yg(e)?el(e):Array.isArray(e)?e.map(n=>NT(n,t)||Jg.easeOut):Jg[e]}function oM(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s,times:u}={}){const l={[t]:n};u&&(l.offset=u);const c=NT(s,i);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function PT(e,t){e.timeline=t,e.onfinish=null}const aM=Zg(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Wd=10,sM=2e4;function uM(e){return Vg(e.type)||e.type==="spring"||!RT(e.ease)}function lM(e,t){const n=new Qg({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<sM;)r=n.sample(o),i.push(r.value),o+=Wd;return{times:void 0,keyframes:i,duration:o-Wd,ease:"linear"}}const IT={anticipate:zE,backInOut:UE,circInOut:VE};function cM(e){return e in IT}class OT extends hT{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new fT(o,(a,s)=>this.onKeyframesResolved(a,s),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:s,motionValue:u,name:l,startTime:c}=this.options;if(!(!((r=u.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&$d()&&cM(a)&&(a=IT[a]),uM(this.options)){const{onComplete:f,onUpdate:p,motionValue:m,element:y,...b}=this.options,g=lM(t,b);t=g.keyframes,t.length===1&&(t[1]=t[0]),i=g.duration,o=g.times,a=g.ease,s="keyframes"}const d=oM(u.owner.current,l,t,{...this.options,duration:i,times:o,ease:a});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(PT(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;u.set(Bd(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:i,times:o,type:s,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return fi(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return fi(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=di(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Zt;const{animation:r}=n;PT(r,t)}return Zt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:s}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:c,onComplete:d,element:f,...p}=this.options,m=new Qg({...p,keyframes:r,duration:i,type:o,ease:a,times:s,isGenerator:!0}),y=di(this.time);l.setWithVelocity(m.sample(y-Wd).value,m.sample(y).value,Wd)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:s}=t;return aM()&&r&&kT.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&s!=="inertia"}}const dM=Zg(()=>window.ScrollTimeline!==void 0);class fM{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>dM()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function pM({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:u,elapsed:l,...c}){return!!Object.keys(c).length}const e0=(e,t,n,r={},i,o)=>a=>{const s=Ag(r,e)||{},u=s.delay||r.delay||0;let{elapsed:l=0}=r;l=l-di(u);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-l,onUpdate:f=>{t.set(f),s.onUpdate&&s.onUpdate(f)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};pM(s)||(c={...c,...OL(e,c)}),c.duration&&(c.duration=di(c.duration)),c.repeatDelay&&(c.repeatDelay=di(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!o&&t.get()!==void 0){const f=Bd(c.keyframes,s);if(f!==void 0)return Xe.update(()=>{c.onUpdate(f),c.onComplete()}),new fM([])}return!o&&OT.supports(c)?new OT(c):new Qg(c)},hM=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),mM=e=>Tg(e)?e[e.length-1]||0:e;function t0(e,t){e.indexOf(t)===-1&&e.push(t)}function n0(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class r0{constructor(){this.subscriptions=[]}add(t){return t0(this.subscriptions,t),()=>n0(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const DT=30,gM=e=>!isNaN(parseFloat(e));class yM{constructor(t,n={}){this.version="11.11.9",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Br.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Br.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=gM(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new r0);const r=this.events[t].add(n);return t==="change"?()=>{r(),Xe.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Br.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>DT)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,DT);return mT(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tl(e,t){return new yM(e,t)}function vM(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,tl(n))}function xM(e,t){const n=Fd(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const s=mM(o[a]);vM(e,a,s)}}const Yd=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),LT="data-"+Yd("framerAppearId");function MT(e){return e.props[LT]}const en=e=>!!(e&&e.getVelocity);function wM(e){return!!(en(e)&&e.add)}function i0(e,t){if(!e.applyWillChange)return;const n=e.getValue("willChange");if(wM(n))return n.add(t)}function bM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function FT(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...u}=t;r&&(a=r);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const d in u){const f=e.getValue(d,(o=e.latestValues[d])!==null&&o!==void 0?o:null),p=u[d];if(p===void 0||c&&bM(c,d))continue;const m={delay:n,...Ag(a||{},d)};let y=!1;if(window.MotionHandoffAnimation){const g=MT(e);if(g){const x=window.MotionHandoffAnimation(g,d,Xe);x!==null&&(m.startTime=x,y=!0)}}i0(e,d),f.start(e0(d,f,p,e.shouldReduceMotion&&Zi.has(d)?{type:!1}:m,e,y));const b=f.animation;b&&l.push(b)}return s&&Promise.all(l).then(()=>{Xe.update(()=>{s&&xM(e,s)})}),l}function o0(e,t,n={}){var r;const i=Fd(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(FT(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=o;return EM(e,t,c+l,d,f,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[l,c]=u==="beforeChildren"?[a,s]:[s,a];return l().then(()=>c())}else return Promise.all([a(),s(n.delay)])}function EM(e,t,n=0,r=0,i=1,o){const a=[],s=(e.variantChildren.size-1)*r,u=i===1?(l=0)=>l*r:(l=0)=>s-l*r;return Array.from(e.variantChildren).sort(TM).forEach((l,c)=>{l.notify("AnimationStart",t),a.push(o0(l,t,{...o,delay:n+u(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(a)}function TM(e,t){return e.sortNodePosition(t)}function _M(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>o0(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=o0(e,t,n);else{const i=typeof t=="function"?Fd(e,t,n.custom):t;r=Promise.all(FT(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const CM=Sg.length;function BT(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?BT(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<CM;n++){const r=Sg[n],i=e.props[r];(qu(i)||i===!1)&&(t[r]=i)}return t}const SM=[...Cg].reverse(),AM=Cg.length;function kM(e){return t=>Promise.all(t.map(({animation:n,options:r})=>_M(e,n,r)))}function RM(e){let t=kM(e),n=jT(),r=!0;const i=u=>(l,c)=>{var d;const f=Fd(e,c,u==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:m,...y}=f;l={...l,...y,...m}}return l};function o(u){t=u(e)}function a(u){const{props:l}=e,c=BT(e.parent)||{},d=[],f=new Set;let p={},m=1/0;for(let b=0;b<AM;b++){const g=SM[b],x=n[g],w=l[g]!==void 0?l[g]:c[g],T=qu(w),_=g===u?x.isActive:null;_===!1&&(m=b);let C=w===c[g]&&w!==l[g]&&T;if(C&&r&&e.manuallyAnimateOnMount&&(C=!1),x.protectedKeys={...p},!x.isActive&&_===null||!w&&!x.prevProp||Yu(w)||typeof w=="boolean")continue;const R=NM(x.prevProp,w);let O=R||g===u&&x.isActive&&!C&&T||b>m&&T,V=!1;const P=Array.isArray(w)?w:[w];let $=P.reduce(i(g),{});_===!1&&($={});const{prevResolvedValues:z={}}=x,Q={...z,...$},Y=te=>{O=!0,f.has(te)&&(V=!0,f.delete(te)),x.needsAnimating[te]=!0;const F=e.getValue(te);F&&(F.liveStyle=!1)};for(const te in Q){const F=$[te],B=z[te];if(p.hasOwnProperty(te))continue;let A=!1;Tg(F)&&Tg(B)?A=!OE(F,B):A=F!==B,A?F!=null?Y(te):f.add(te):F!==void 0&&f.has(te)?Y(te):x.protectedKeys[te]=!0}x.prevProp=w,x.prevResolvedValues=$,x.isActive&&(p={...p,...$}),r&&e.blockInitialAnimation&&(O=!1),O&&(!(C&&R)||V)&&d.push(...P.map(te=>({animation:te,options:{type:g}})))}if(f.size){const b={};f.forEach(g=>{const x=e.getBaseTarget(g),w=e.getValue(g);w&&(w.liveStyle=!0),b[g]=x??null}),d.push({animation:b})}let y=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function s(u,l){var c;if(n[u].isActive===l)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(u,l)}),n[u].isActive=l;const d=a(u);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:a,setActive:s,setAnimateFunction:o,getState:()=>n,reset:()=>{n=jT(),r=!0}}}function NM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!OE(t,e):!1}function ta(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jT(){return{animate:ta(!0),whileInView:ta(),whileHover:ta(),whileTap:ta(),whileDrag:ta(),whileFocus:ta(),exit:ta()}}class ro{constructor(t){this.isMounted=!1,this.node=t}update(){}}class PM extends ro{constructor(t){super(t),t.animationState||(t.animationState=RM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Yu(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let IM=0;class OM extends ro{constructor(){super(...arguments),this.id=IM++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const DM={animation:{Feature:PM},exit:{Feature:OM}},UT=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function qd(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const LM=e=>t=>UT(t)&&e(t,qd(t));function hi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function mi(e,t,n,r){return hi(e,t,LM(n),r)}const zT=(e,t)=>Math.abs(e-t);function MM(e,t){const n=zT(e.x,t.x),r=zT(e.y,t.y);return Math.sqrt(n**2+r**2)}class HT{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=s0(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=MM(d.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:m}=d,{timestamp:y}=$t;this.history.push({...m,timestamp:y});const{onStart:b,onMove:g}=this.handlers;f||(b&&b(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=a0(f,this.transformPagePoint),Xe.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:m,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=s0(d.type==="pointercancel"?this.lastMoveEventInfo:a0(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,b),m&&m(d,b)},!UT(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=qd(t),s=a0(a,this.transformPagePoint),{point:u}=s,{timestamp:l}=$t;this.history=[{...u,timestamp:l}];const{onSessionStart:c}=n;c&&c(t,s0(s,this.history)),this.removeListeners=pi(mi(this.contextWindow,"pointermove",this.handlePointerMove),mi(this.contextWindow,"pointerup",this.handlePointerUp),mi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ji(this.updatePoint)}}function a0(e,t){return t?{point:t(e.point)}:e}function VT(e,t){return{x:e.x-t.x,y:e.y-t.y}}function s0({point:e},t){return{point:e,delta:VT(e,$T(t)),offset:VT(e,FM(t)),velocity:BM(t,.1)}}function FM(e){return e[0]}function $T(e){return e[e.length-1]}function BM(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=$T(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>di(t)));)n--;if(!r)return{x:0,y:0};const o=fi(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function WT(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const YT=WT("dragHorizontal"),qT=WT("dragVertical");function GT(e){let t=!1;if(e==="y")t=qT();else if(e==="x")t=YT();else{const n=YT(),r=qT();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function KT(){const e=GT(!0);return e?(e(),!1):!0}function os(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const XT=1e-4,jM=1-XT,UM=1+XT,QT=.01,zM=0-QT,HM=0+QT;function Bn(e){return e.max-e.min}function VM(e,t,n){return Math.abs(e-t)<=n}function ZT(e,t,n,r=.5){e.origin=r,e.originPoint=ft(t.min,t.max,e.origin),e.scale=Bn(n)/Bn(t),e.translate=ft(n.min,n.max,e.origin)-e.originPoint,(e.scale>=jM&&e.scale<=UM||isNaN(e.scale))&&(e.scale=1),(e.translate>=zM&&e.translate<=HM||isNaN(e.translate))&&(e.translate=0)}function nl(e,t,n,r){ZT(e.x,t.x,n.x,r?r.originX:void 0),ZT(e.y,t.y,n.y,r?r.originY:void 0)}function JT(e,t,n){e.min=n.min+t.min,e.max=e.min+Bn(t)}function $M(e,t,n){JT(e.x,t.x,n.x),JT(e.y,t.y,n.y)}function e2(e,t,n){e.min=t.min-n.min,e.max=e.min+Bn(t)}function rl(e,t,n){e2(e.x,t.x,n.x),e2(e.y,t.y,n.y)}function WM(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ft(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ft(n,e,r.max):Math.min(e,n)),e}function t2(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function YM(e,{top:t,left:n,bottom:r,right:i}){return{x:t2(e.x,n,i),y:t2(e.y,t,r)}}function n2(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function qM(e,t){return{x:n2(e.x,t.x),y:n2(e.y,t.y)}}function GM(e,t){let n=.5;const r=Bn(e),i=Bn(t);return i>r?n=is(t.min,t.max-r,e.min):r>i&&(n=is(e.min,e.max-i,t.min)),eo(0,1,n)}function KM(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const u0=.35;function XM(e=u0){return e===!1?e=0:e===!0&&(e=u0),{x:r2(e,"left","right"),y:r2(e,"top","bottom")}}function r2(e,t,n){return{min:i2(e,t),max:i2(e,n)}}function i2(e,t){return typeof e=="number"?e:e[t]||0}const o2=()=>({translate:0,scale:1,origin:0,originPoint:0}),as=()=>({x:o2(),y:o2()}),a2=()=>({min:0,max:0}),bt=()=>({x:a2(),y:a2()});function nr(e){return[e("x"),e("y")]}function s2({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function QM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ZM(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function l0(e){return e===void 0||e===1}function c0({scale:e,scaleX:t,scaleY:n}){return!l0(e)||!l0(t)||!l0(n)}function na(e){return c0(e)||u2(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function u2(e){return l2(e.x)||l2(e.y)}function l2(e){return e&&e!=="0%"}function Gd(e,t,n){const r=e-n,i=t*r;return n+i}function c2(e,t,n,r,i){return i!==void 0&&(e=Gd(e,i,r)),Gd(e,n,r)+t}function d0(e,t=0,n=1,r,i){e.min=c2(e.min,t,n,r,i),e.max=c2(e.max,t,n,r,i)}function d2(e,{x:t,y:n}){d0(e.x,t.translate,t.scale,t.originPoint),d0(e.y,n.translate,n.scale,n.originPoint)}const f2=.999999999999,p2=1.0000000000001;function JM(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let s=0;s<i;s++){o=n[s],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&us(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,d2(e,a)),r&&na(o.latestValues)&&us(e,o.latestValues))}t.x<p2&&t.x>f2&&(t.x=1),t.y<p2&&t.y>f2&&(t.y=1)}function ss(e,t){e.min=e.min+t,e.max=e.max+t}function h2(e,t,n,r,i=.5){const o=ft(e.min,e.max,i);d0(e,t,n,o,r)}function us(e,t){h2(e.x,t.x,t.scaleX,t.scale,t.originX),h2(e.y,t.y,t.scaleY,t.scale,t.originY)}function m2(e,t){return s2(ZM(e.getBoundingClientRect(),t))}function e5(e,t,n){const r=m2(e,n),{scroll:i}=t;return i&&(ss(r.x,i.offset.x),ss(r.y,i.offset.y)),r}const g2=({current:e})=>e?e.ownerDocument.defaultView:null,t5=new WeakMap;class n5{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=bt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(qd(c,"page").point)},o=(c,d)=>{const{drag:f,dragPropagation:p,onDragStart:m}=this.getProps();if(f&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=GT(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nr(b=>{let g=this.getAxisMotionValue(b).get()||0;if(Fr.test(g)){const{projection:x}=this.visualElement;if(x&&x.layout){const w=x.layout.layoutBox[b];w&&(g=Bn(w)*(parseFloat(g)/100))}}this.originPoint[b]=g}),m&&Xe.postRender(()=>m(c,d)),i0(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(c,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:m,onDrag:y}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:b}=d;if(p&&this.currentDirection===null){this.currentDirection=r5(b),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,b),this.updateAxis("y",d.point,b),this.visualElement.render(),y&&y(c,d)},s=(c,d)=>this.stop(c,d),u=()=>nr(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new HT(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:s,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:g2(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Xe.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Kd(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=WM(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&os(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=YM(i.layoutBox,n):this.constraints=!1,this.elastic=XM(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&nr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=KM(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!os(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=e5(r,i.root,this.visualElement.getTransformPagePoint());let a=qM(i.layout.layoutBox,o);if(n){const s=n(QM(a));this.hasMutatedConstraints=!!s,s&&(a=s2(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),u=this.constraints||{},l=nr(c=>{if(!Kd(c,n,this.currentDirection))return;let d=u&&u[c]||{};a&&(d={min:0,max:0});const f=i?200:1e6,p=i?40:1e7,m={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(c,m)});return Promise.all(l).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return i0(this.visualElement,t),r.start(e0(t,r,0,n,this.visualElement,!1))}stopAnimation(){nr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){nr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){nr(n=>{const{drag:r}=this.getProps();if(!Kd(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:s}=i.layout.layoutBox[n];o.set(t[n]-ft(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!os(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};nr(a=>{const s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){const u=s.get();i[a]=GM({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),nr(a=>{if(!Kd(a,t,null))return;const s=this.getAxisMotionValue(a),{min:u,max:l}=this.constraints[a];s.set(ft(u,l,i[a]))})}addListeners(){if(!this.visualElement.current)return;t5.set(this.visualElement,this);const t=this.visualElement.current,n=mi(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();os(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Xe.read(r);const a=hi(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(nr(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=u[c].translate,d.set(d.get()+u[c].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=u0,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}}function Kd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function r5(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class i5 extends ro{constructor(t){super(t),this.removeGroupControls=Zt,this.removeListeners=Zt,this.controls=new n5(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Zt}unmount(){this.removeGroupControls(),this.removeListeners()}}const y2=e=>(t,n)=>{e&&Xe.postRender(()=>e(t,n))};class o5 extends ro{constructor(){super(...arguments),this.removePointerDownListener=Zt}onPointerDown(t){this.session=new HT(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:g2(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:y2(t),onStart:y2(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Xe.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=mi(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Xd=v.createContext(null);function a5(){const e=v.useContext(Xd);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=v.useId();v.useEffect(()=>r(i),[]);const o=v.useCallback(()=>n&&n(i),[i,n]);return!t&&n?[!1,o]:[!0]}const f0=v.createContext({}),v2=v.createContext({}),Qd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function x2(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const il={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ye.test(e))e=parseFloat(e);else return e;const n=x2(e,t.target.x),r=x2(e,t.target.y);return`${n}% ${r}%`}},s5={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=no.parse(e);if(i.length>5)return r;const o=no.createTransformer(e),a=typeof i[0]!="number"?1:0,s=n.x.scale*t.x,u=n.y.scale*t.y;i[0+a]/=s,i[1+a]/=u;const l=ft(s,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=l),typeof i[3+a]=="number"&&(i[3+a]/=l),o(i)}},Zd={};function u5(e){Object.assign(Zd,e)}const{schedule:p0,cancel:Nie}=LE(queueMicrotask,!1);class l5 extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;u5(c5),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Qd.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||Xe.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),p0.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function w2(e){const[t,n]=a5(),r=v.useContext(f0);return E.jsx(l5,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(v2),isPresent:t,safeToRemove:n})}const c5={borderRadius:{...il,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:il,borderTopRightRadius:il,borderBottomLeftRadius:il,borderBottomRightRadius:il,boxShadow:s5},b2=["TopLeft","TopRight","BottomLeft","BottomRight"],d5=b2.length,E2=e=>typeof e=="string"?parseFloat(e):e,T2=e=>typeof e=="number"||ye.test(e);function f5(e,t,n,r,i,o){i?(e.opacity=ft(0,n.opacity!==void 0?n.opacity:1,p5(r)),e.opacityExit=ft(t.opacity!==void 0?t.opacity:1,0,h5(r))):o&&(e.opacity=ft(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<d5;a++){const s=`border${b2[a]}Radius`;let u=_2(t,s),l=_2(n,s);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||T2(u)===T2(l)?(e[s]=Math.max(ft(E2(u),E2(l),r),0),(Fr.test(l)||Fr.test(u))&&(e[s]+="%")):e[s]=l}(t.rotate||n.rotate)&&(e.rotate=ft(t.rotate||0,n.rotate||0,r))}function _2(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const p5=C2(0,.5,HE),h5=C2(.5,.95,Zt);function C2(e,t,n){return r=>r<e?0:r>t?1:n(is(e,t,r))}function S2(e,t){e.min=t.min,e.max=t.max}function rr(e,t){S2(e.x,t.x),S2(e.y,t.y)}function A2(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function k2(e,t,n,r,i){return e-=t,e=Gd(e,1/n,r),i!==void 0&&(e=Gd(e,1/i,r)),e}function m5(e,t=0,n=1,r=.5,i,o=e,a=e){if(Fr.test(t)&&(t=parseFloat(t),t=ft(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=ft(o.min,o.max,r);e===o&&(s-=t),e.min=k2(e.min,t,n,s,i),e.max=k2(e.max,t,n,s,i)}function R2(e,t,[n,r,i],o,a){m5(e,t[n],t[r],t[i],t.scale,o,a)}const g5=["x","scaleX","originX"],y5=["y","scaleY","originY"];function N2(e,t,n,r){R2(e.x,t,g5,n?n.x:void 0,r?r.x:void 0),R2(e.y,t,y5,n?n.y:void 0,r?r.y:void 0)}function P2(e){return e.translate===0&&e.scale===1}function I2(e){return P2(e.x)&&P2(e.y)}function O2(e,t){return e.min===t.min&&e.max===t.max}function v5(e,t){return O2(e.x,t.x)&&O2(e.y,t.y)}function D2(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function L2(e,t){return D2(e.x,t.x)&&D2(e.y,t.y)}function M2(e){return Bn(e.x)/Bn(e.y)}function F2(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class x5{constructor(){this.members=[]}add(t){t0(this.members,t),t.scheduleRender()}remove(t){if(n0(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function w5(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:d,rotateY:f,skewX:p,skewY:m}=n;l&&(r=`perspective(${l}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),m&&(r+=`skewY(${m}deg) `)}const s=e.x.scale*t.x,u=e.y.scale*t.y;return(s!==1||u!==1)&&(r+=`scale(${s}, ${u})`),r||"none"}const b5=(e,t)=>e.depth-t.depth;class E5{constructor(){this.children=[],this.isDirty=!1}add(t){t0(this.children,t),this.isDirty=!0}remove(t){n0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(b5),this.isDirty=!1,this.children.forEach(t)}}function Jd(e){const t=en(e)?e.get():e;return hM(t)?t.toValue():t}function T5(e,t){const n=Br.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Ji(r),e(o-t))};return Xe.read(r,!0),()=>Ji(r)}function _5(e){return e instanceof SVGElement&&e.tagName!=="svg"}function C5(e,t,n){const r=en(e)?e:tl(e);return r.start(e0("",r,t,n)),r.animation}const ra={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ol=typeof window<"u"&&window.MotionDebug!==void 0,h0=["","X","Y","Z"],S5={visibility:"hidden"},B2=1e3;let A5=0;function m0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function j2(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=MT(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Xe,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&j2(r)}function U2({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},s=t==null?void 0:t()){this.id=A5++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ol&&(ra.totalNodes=ra.resolvedTargetDeltas=ra.recalculatedProjection=0),this.nodes.forEach(N5),this.nodes.forEach(L5),this.nodes.forEach(M5),this.nodes.forEach(P5),ol&&window.MotionDebug.record(ra)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new E5)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new r0),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const u=this.eventHandlers.get(a);u&&u.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=_5(a),this.instance=a;const{layoutId:u,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(l||u)&&(this.isLayoutDirty=!0),e){let d;const f=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=T5(f,250),Qd.hasAnimatedSinceResize&&(Qd.hasAnimatedSinceResize=!1,this.nodes.forEach(H2))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&c&&(u||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||z5,{onLayoutAnimationStart:b,onLayoutAnimationComplete:g}=c.getProps(),x=!this.targetLayout||!L2(this.targetLayout,m)||p,w=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||f&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,w);const T={...Ag(y,"layout"),onPlay:b,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else f||H2(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ji(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(F5),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&j2(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:s,layout:u}=this.options;if(s===void 0&&!u)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(z2);return}this.isUpdating||this.nodes.forEach(O5),this.isUpdating=!1,this.nodes.forEach(D5),this.nodes.forEach(k5),this.nodes.forEach(R5),this.clearAllSnapshots();const s=Br.now();$t.delta=eo(0,1e3/60,s-$t.timestamp),$t.timestamp=s,$t.isProcessing=!0,kg.update.process($t),kg.preRender.process($t),kg.render.process($t),$t.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,p0.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(I5),this.sharedNodes.forEach(B5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Xe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Xe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=bt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!I2(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;a&&(s||na(this.latestValues)||c)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let u=this.removeElementScroll(s);return a&&(u=this.removeTransform(u)),H5(u),{animationId:this.root.animationId,measuredBox:s,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:s}=this.options;if(!s)return bt();const u=s.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(V5))){const{scroll:c}=this.root;c&&(ss(u.x,c.offset.x),ss(u.y,c.offset.y))}return u}removeElementScroll(a){var s;const u=bt();if(rr(u,a),!((s=this.scroll)===null||s===void 0)&&s.wasRoot)return u;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&rr(u,a),ss(u.x,d.offset.x),ss(u.y,d.offset.y))}return u}applyTransform(a,s=!1){const u=bt();rr(u,a);for(let l=0;l<this.path.length;l++){const c=this.path[l];!s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&us(u,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),na(c.latestValues)&&us(u,c.latestValues)}return na(this.latestValues)&&us(u,this.latestValues),u}removeTransform(a){const s=bt();rr(s,a);for(let u=0;u<this.path.length;u++){const l=this.path[u];if(!l.instance||!na(l.latestValues))continue;c0(l.latestValues)&&l.updateSnapshot();const c=bt(),d=l.measurePageBox();rr(c,d),N2(s,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,c)}return na(this.latestValues)&&N2(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}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!==$t.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var s;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==u;if(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=$t.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=bt(),this.relativeTargetOrigin=bt(),rl(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),rr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=bt(),this.targetWithTransforms=bt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),$M(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rr(this.target,this.layout.layoutBox),d2(this.target,this.targetDelta)):rr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=bt(),this.relativeTargetOrigin=bt(),rl(this.relativeTargetOrigin,this.target,p.target),rr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ol&&ra.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||c0(this.parent.latestValues)||u2(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const s=this.getLead(),u=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(l=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===$t.timestamp&&(l=!1),l)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;rr(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,p=this.treeScale.y;JM(this.layoutCorrected,this.treeScale,this.path,u),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=bt());const{target:m}=s;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(A2(this.prevProjectionDelta.x,this.projectionDelta.x),A2(this.prevProjectionDelta.y,this.projectionDelta.y)),nl(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!F2(this.projectionDelta.x,this.prevProjectionDelta.x)||!F2(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),ol&&ra.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var s;if((s=this.options.visualElement)===null||s===void 0||s.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=as(),this.projectionDelta=as(),this.projectionDeltaWithTransform=as()}setAnimationOrigin(a,s=!1){const u=this.snapshot,l=u?u.latestValues:{},c={...this.latestValues},d=as();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const f=bt(),p=u?u.source:void 0,m=this.layout?this.layout.source:void 0,y=p!==m,b=this.getStack(),g=!b||b.members.length<=1,x=!!(y&&!g&&this.options.crossfade===!0&&!this.path.some(U5));this.animationProgress=0;let w;this.mixTargetDelta=T=>{const _=T/1e3;V2(d.x,a.x,_),V2(d.y,a.y,_),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(rl(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),j5(this.relativeTarget,this.relativeTargetOrigin,f,_),w&&v5(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=bt()),rr(w,this.relativeTarget)),y&&(this.animationValues=c,f5(c,l,this.latestValues,_,x,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ji(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Xe.update(()=>{Qd.hasAnimatedSinceResize=!0,this.currentAnimation=C5(0,B2,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(B2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:u,layout:l,latestValues:c}=a;if(!(!s||!u||!l)){if(this!==a&&this.layout&&l&&G2(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||bt();const d=Bn(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+d;const f=Bn(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+f}rr(s,u),us(s,c),nl(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new x5),this.sharedNodes.get(a).add(s);const l=s.options.initialPromotionConfig;s.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(s=!0),!s)return;const l={};u.z&&m0("z",a,l,this.animationValues);for(let c=0;c<h0.length;c++)m0(`rotate${h0[c]}`,a,l,this.animationValues),m0(`skew${h0[c]}`,a,l,this.animationValues);a.render();for(const c in l)a.setStaticValue(c,l[c]),this.animationValues&&(this.animationValues[c]=l[c]);a.scheduleRender()}getProjectionStyles(a){var s,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return S5;const l={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=Jd(a==null?void 0:a.pointerEvents)||"",l.transform=c?c(this.latestValues,""):"none",l;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=Jd(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!na(this.latestValues)&&(y.transform=c?c({},""):"none",this.hasProjected=!1),y}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),l.transform=w5(this.projectionDeltaWithTransform,this.treeScale,f),c&&(l.transform=c(f,l.transform));const{x:p,y:m}=this.projectionDelta;l.transformOrigin=`${p.origin*100}% ${m.origin*100}% 0`,d.animationValues?l.opacity=d===this?(u=(s=f.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:l.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const y in Zd){if(f[y]===void 0)continue;const{correct:b,applyTo:g}=Zd[y],x=l.transform==="none"?f[y]:b(f[y],d);if(g){const w=g.length;for(let T=0;T<w;T++)l[g[T]]=x}else l[y]=x}return this.options.layoutId&&(l.pointerEvents=d===this?Jd(a==null?void 0:a.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(z2),this.root.sharedNodes.clear()}}}function k5(e){e.updateLayout()}function R5(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?nr(d=>{const f=a?n.measuredBox[d]:n.layoutBox[d],p=Bn(f);f.min=r[d].min,f.max=f.min+p}):G2(o,n.layoutBox,r)&&nr(d=>{const f=a?n.measuredBox[d]:n.layoutBox[d],p=Bn(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const s=as();nl(s,r,n.layoutBox);const u=as();a?nl(u,e.applyTransform(i,!0),n.measuredBox):nl(u,r,n.layoutBox);const l=!I2(s);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const m=bt();rl(m,n.layoutBox,f.layoutBox);const y=bt();rl(y,r,p.layoutBox),L2(m,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function N5(e){ol&&ra.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function P5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function I5(e){e.clearSnapshot()}function z2(e){e.clearMeasurements()}function O5(e){e.isLayoutDirty=!1}function D5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function H2(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function L5(e){e.resolveTargetDelta()}function M5(e){e.calcProjection()}function F5(e){e.resetSkewAndRotation()}function B5(e){e.removeLeadSnapshot()}function V2(e,t,n){e.translate=ft(t.translate,0,n),e.scale=ft(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function $2(e,t,n,r){e.min=ft(t.min,n.min,r),e.max=ft(t.max,n.max,r)}function j5(e,t,n,r){$2(e.x,t.x,n.x,r),$2(e.y,t.y,n.y,r)}function U5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const z5={duration:.45,ease:[.4,0,.1,1]},W2=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Y2=W2("applewebkit/")&&!W2("chrome/")?Math.round:Zt;function q2(e){e.min=Y2(e.min),e.max=Y2(e.max)}function H5(e){q2(e.x),q2(e.y)}function G2(e,t,n){return e==="position"||e==="preserve-aspect"&&!VM(M2(t),M2(n),.2)}function V5(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const $5=U2({attachResizeListener:(e,t)=>hi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),g0={current:void 0},K2=U2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!g0.current){const e=new $5({});e.mount(window),e.setOptions({layoutScroll:!0}),g0.current=e}return g0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),W5={pan:{Feature:o5},drag:{Feature:i5,ProjectionNode:K2,MeasureLayout:w2}};function X2(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(o,a)=>{if(o.pointerType==="touch"||KT())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t);const u=s[r];u&&Xe.postRender(()=>u(o,a))};return mi(e.current,n,i,{passive:!e.getProps()[r]})}class Y5 extends ro{mount(){this.unmount=pi(X2(this.node,!0),X2(this.node,!1))}unmount(){}}class q5 extends ro{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{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=pi(hi(this.node.current,"focus",()=>this.onFocus()),hi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Q2=(e,t)=>t?e===t?!0:Q2(e,t.parentElement):!1;function y0(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,qd(n))}class G5 extends ro{constructor(){super(...arguments),this.removeStartListeners=Zt,this.removeEndListeners=Zt,this.removeAccessibleListeners=Zt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=mi(window,"pointerup",(s,u)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),f=!d&&!Q2(this.node.current,s.target)?c:l;f&&Xe.update(()=>f(s,u))},{passive:!(r.onTap||r.onPointerUp)}),a=mi(window,"pointercancel",(s,u)=>this.cancelPress(s,u),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=pi(o,a),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||y0("up",(u,l)=>{const{onTap:c}=this.node.getProps();c&&Xe.postRender(()=>c(u,l))})};this.removeEndListeners(),this.removeEndListeners=hi(this.node.current,"keyup",a),y0("down",(s,u)=>{this.startPress(s,u)})},n=hi(this.node.current,"keydown",t),r=()=>{this.isPressing&&y0("cancel",(o,a)=>this.cancelPress(o,a))},i=hi(this.node.current,"blur",r);this.removeAccessibleListeners=pi(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Xe.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!KT()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Xe.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=mi(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=hi(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=pi(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const v0=new WeakMap,x0=new WeakMap,K5=e=>{const t=v0.get(e.target);t&&t(e)},X5=e=>{e.forEach(K5)};function Q5({root:e,...t}){const n=e||document;x0.has(n)||x0.set(n,{});const r=x0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(X5,{root:e,...t})),r[i]}function Z5(e,t,n){const r=Q5(t);return v0.set(e,n),r.observe(e),()=>{v0.delete(e),r.unobserve(e)}}const J5={some:0,all:1};class e8 extends ro{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:J5[i]},s=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,o&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=l?c:d;f&&f(u)};return Z5(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(t8(t,n))&&this.startObserver()}unmount(){}}function t8({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const n8={inView:{Feature:e8},tap:{Feature:G5},focus:{Feature:q5},hover:{Feature:Y5}},r8={layout:{ProjectionNode:K2,MeasureLayout:w2}},w0=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ef=v.createContext({}),b0=typeof window<"u",Z2=b0?v.useLayoutEffect:v.useEffect,J2=v.createContext({strict:!1});function i8(e,t,n,r,i){var o,a;const{visualElement:s}=v.useContext(ef),u=v.useContext(J2),l=v.useContext(Xd),c=v.useContext(w0).reducedMotion,d=v.useRef();r=r||u.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,p=v.useContext(v2);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&o8(d.current,n,i,p),v.useInsertionEffect(()=>{f&&f.update(n,l)});const m=n[LT],y=v.useRef(!!m&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,m))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,m)));return Z2(()=>{f&&(window.MotionIsMounted=!0,f.updateFeatures(),p0.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),v.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,m)}),y.current=!1))}),f}function o8(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:s,layoutScroll:u,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:e_(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||s&&os(s),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:l})}function e_(e){if(e)return e.options.allowProjection!==!1?e.projection:e_(e.parent)}function a8(e,t,n){return v.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):os(n)&&(n.current=r))},[t])}function tf(e){return Yu(e.animate)||Sg.some(t=>qu(e[t]))}function t_(e){return!!(tf(e)||e.variants)}function s8(e,t){if(tf(e)){const{initial:n,animate:r}=e;return{initial:n===!1||qu(n)?n:void 0,animate:qu(r)?r:void 0}}return e.inherit!==!1?t:{}}function u8(e){const{initial:t,animate:n}=s8(e,v.useContext(ef));return v.useMemo(()=>({initial:t,animate:n}),[n_(t),n_(n)])}function n_(e){return Array.isArray(e)?e.join(" "):e}const r_={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"]},ls={};for(const e in r_)ls[e]={isEnabled:t=>r_[e].some(n=>!!t[n])};function l8(e){for(const t in e)ls[t]={...ls[t],...e[t]}}const c8=Symbol.for("motionComponentSymbol");function d8({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&l8(e);function o(s,u){let l;const c={...v.useContext(w0),...s,layoutId:f8(s)},{isStatic:d}=c,f=u8(s),p=r(s,d);if(!d&&b0){p8();const m=h8(c);l=m.MeasureLayout,f.visualElement=i8(i,p,c,t,m.ProjectionNode)}return E.jsxs(ef.Provider,{value:f,children:[l&&f.visualElement?E.jsx(l,{visualElement:f.visualElement,...c}):null,n(i,s,a8(p,f.visualElement,u),p,d,f.visualElement)]})}const a=v.forwardRef(o);return a[c8]=i,a}function f8({layoutId:e}){const t=v.useContext(f0).id;return t&&e!==void 0?t+"-"+e:e}function p8(e,t){v.useContext(J2).strict}function h8(e){const{drag:t,layout:n}=ls;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const m8=["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 E0(e){return typeof e!="string"||e.includes("-")?!1:!!(m8.indexOf(e)>-1||/[A-Z]/u.test(e))}function i_(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const o_=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function a_(e,t,n,r){i_(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(o_.has(i)?i:Yd(i),t.attrs[i])}function s_(e,{layout:t,layoutId:n}){return Zi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Zd[e]||e==="opacity")}function T0(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(en(i[a])||t.style&&en(t.style[a])||s_(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return n&&i&&typeof i.willChange=="string"&&(n.applyWillChange=!1),o}function u_(e,t,n){const r=T0(e,t,n);for(const i in e)if(en(e[i])||en(t[i])){const o=Gu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function _0(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}function g8(e){if(Zi.has(e))return"transform";if(kT.has(e))return Yd(e)}function y8({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},i,o,a,s){const u={latestValues:v8(i,o,a,s?!1:e,t),renderState:n()};return r&&(u.mount=l=>r(i,l,u)),u}const l_=e=>(t,n)=>{const r=v.useContext(ef),i=v.useContext(Xd),o=()=>y8(e,t,r,i,n);return n?o():_0(o)};function c_(e,t,n){const r=Array.isArray(t)?t:[t];for(let i=0;i<r.length;i++){const o=_g(e,r[i]);if(o){const{transitionEnd:a,transition:s,...u}=o;n(u,a)}}}function v8(e,t,n,r,i){var o;const a={},s=new Set,u=r&&((o=e.style)===null||o===void 0?void 0:o.willChange)===void 0,l=i(e,{});for(const b in l)a[b]=Jd(l[b]);let{initial:c,animate:d}=e;const f=tf(e),p=t_(e);t&&p&&!f&&e.inherit!==!1&&(c===void 0&&(c=t.initial),d===void 0&&(d=t.animate));let m=n?n.initial===!1:!1;m=m||c===!1;const y=m?d:c;return y&&typeof y!="boolean"&&!Yu(y)&&c_(e,y,(b,g)=>{for(const x in b){let w=b[x];if(Array.isArray(w)){const T=m?w.length-1:0;w=w[T]}w!==null&&(a[x]=w)}for(const x in g)a[x]=g[x]}),u&&(d&&c!==!1&&!Yu(d)&&c_(e,d,b=>{for(const g in b){const x=g8(g);x&&s.add(x)}}),s.size&&(a.willChange=Array.from(s).join(","))),a}const C0=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),d_=()=>({...C0(),attrs:{}}),f_=(e,t)=>t&&typeof e=="number"?t.transform(e):e,x8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},w8=Gu.length;function b8(e,t,n){let r="",i=!0;for(let o=0;o<w8;o++){const a=Gu[o],s=e[a];if(s===void 0)continue;let u=!0;if(typeof s=="number"?u=s===(a.startsWith("scale")?1:0):u=parseFloat(s)===0,!u||n){const l=f_(s,zg[a]);if(!u){i=!1;const c=x8[a]||a;r+=`${c}(${l}) `}n&&(t[a]=l)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function S0(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,s=!1;for(const u in t){const l=t[u];if(Zi.has(u)){a=!0;continue}else if(qE(u)){i[u]=l;continue}else{const c=f_(l,zg[u]);u.startsWith("origin")?(s=!0,o[u]=c):r[u]=c}}if(t.transform||(a||n?r.transform=b8(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:u="50%",originY:l="50%",originZ:c=0}=o;r.transformOrigin=`${u} ${l} ${c}`}}function p_(e,t,n){return typeof e=="string"?e:ye.transform(t+n*e)}function E8(e,t,n){const r=p_(t,e.x,e.width),i=p_(n,e.y,e.height);return`${r} ${i}`}const T8={offset:"stroke-dashoffset",array:"stroke-dasharray"},_8={offset:"strokeDashoffset",array:"strokeDasharray"};function C8(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?T8:_8;e[o.offset]=ye.transform(-r);const a=ye.transform(t),s=ye.transform(n);e[o.array]=`${a} ${s}`}function A0(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:u=0,...l},c,d){if(S0(e,l,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(i!==void 0||o!==void 0||p.transform)&&(p.transformOrigin=E8(m,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),a!==void 0&&C8(f,a,s,u,!1)}const k0=e=>typeof e=="string"&&e.toLowerCase()==="svg",S8={useVisualState:l_({scrapeMotionValuesFromProps:u_,createRenderState:d_,onMount:(e,t,{renderState:n,latestValues:r})=>{Xe.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Xe.render(()=>{A0(n,r,k0(t.tagName),e.transformTemplate),a_(t,n)})}})},A8={useVisualState:l_({applyWillChange:!0,scrapeMotionValuesFromProps:T0,createRenderState:C0})};function h_(e,t,n){for(const r in t)!en(t[r])&&!s_(r,n)&&(e[r]=t[r])}function k8({transformTemplate:e},t){return v.useMemo(()=>{const n=C0();return S0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function R8(e,t){const n=e.style||{},r={};return h_(r,n,e),Object.assign(r,k8(e,t)),r}function N8(e,t){const n={},r=R8(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const P8=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 nf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||P8.has(e)}let m_=e=>!nf(e);function I8(e){e&&(m_=t=>t.startsWith("on")?!nf(t):e(t))}try{I8(require("@emotion/is-prop-valid").default)}catch{}function O8(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(m_(i)||n===!0&&nf(i)||!t&&!nf(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function D8(e,t,n,r){const i=v.useMemo(()=>{const o=d_();return A0(o,t,k0(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};h_(o,e.style,e),i.style={...o,...i.style}}return i}function L8(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(E0(n)?D8:N8)(r,o,a,n),l=O8(r,typeof n=="string",e),c=n!==v.Fragment?{...l,...u,ref:i}:{},{children:d}=r,f=v.useMemo(()=>en(d)?d.get():d,[d]);return v.createElement(n,{...c,children:f})}}function M8(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...E0(r)?S8:A8,preloadedFeatures:e,useRender:L8(i),createVisualElement:t,Component:r};return d8(a)}}const R0={current:null},g_={current:!1};function F8(){if(g_.current=!0,!!b0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>R0.current=e.matches;e.addListener(t),t()}else R0.current=!1}function B8(e,t,n){for(const r in t){const i=t[r],o=n[r];if(en(i))e.addValue(r,i);else if(en(o))e.addValue(r,tl(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,tl(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const y_=new WeakMap,j8=[...eT,Jt,no],U8=e=>j8.find(JE(e)),v_=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class z8{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},s={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Lg,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=()=>{const f=Br.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,Xe.render(this.render,!1,!0))};const{latestValues:u,renderState:l}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!o,this.isControllingVariants=tf(n),this.isVariantNode=t_(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];u[f]!==void 0&&en(p)&&p.set(u[f],!1)}}mount(t){this.current=t,y_.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((n,r)=>this.bindToMotionValue(r,n)),g_.current||F8(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:R0.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){y_.delete(this.current),this.projection&&this.projection.unmount(),Ji(this.notifyUpdate),Ji(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Zi.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Xe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ls){const n=ls[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):bt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<v_.length;r++){const i=v_[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=B8(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=tl(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(WE(i)||$E(i))?i=parseFloat(i):!U8(i)&&no.test(n)&&(i=dT(t,n)),this.setBaseTarget(t,en(i)?i.get():i)),en(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=_g(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!en(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new r0),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class x_ extends z8{constructor(){super(...arguments),this.KeyframeResolver=fT}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function H8(e){return window.getComputedStyle(e)}class V8 extends x_{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=i_}readValueFromInstance(t,n){if(Zi.has(n)){const r=Hg(n);return r&&r.default||0}else{const r=H8(t),i=(qE(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return m2(t,n)}build(t,n,r){S0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return T0(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;en(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class $8 extends x_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=bt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Zi.has(n)){const r=Hg(n);return r&&r.default||0}return n=o_.has(n)?n:Yd(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return u_(t,n,r)}build(t,n,r){A0(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){a_(t,n,r,i)}mount(t){this.isSVGTag=k0(t.tagName),super.mount(t)}}const W8=(e,t)=>E0(e)?new $8(t):new V8(t,{allowProjection:e!==v.Fragment}),Y8=M8({...DM,...n8,...W5,...r8},W8),cs=kL(Y8);class q8 extends v.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function G8({children:e,isPresent:t}){const n=v.useId(),r=v.useRef(null),i=v.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=v.useContext(w0);return v.useInsertionEffect(()=>{const{width:a,height:s,top:u,left:l}=i.current;if(t||!r.current||!a||!s)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return o&&(c.nonce=o),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
41
41
  [data-motion-pop-id="${n}"] {
42
42
  position: absolute !important;
43
43
  width: ${a}px !important;
@@ -346,7 +346,7 @@ ${t}`:t})();return{id:fy(),type:"FROM_USER",content:r,deliveredAt:new Date().toI
346
346
  *
347
347
  * This source code is licensed under the MIT license found in the
348
348
  * LICENSE file in the root directory of this source tree.
349
- */var ws=v;function C7(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var S7=typeof Object.is=="function"?Object.is:C7,A7=ws.useState,k7=ws.useEffect,R7=ws.useLayoutEffect,N7=ws.useDebugValue;function P7(e,t){var n=t(),r=A7({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return R7(function(){i.value=n,i.getSnapshot=t,hy(i)&&o({inst:i})},[e,n,t]),k7(function(){return hy(i)&&o({inst:i}),e(function(){hy(i)&&o({inst:i})})},[e]),N7(n),n}function hy(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!S7(e,n)}catch{return!0}}function I7(e,t){return t()}var O7=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?I7:P7;CS.useSyncExternalStore=ws.useSyncExternalStore!==void 0?ws.useSyncExternalStore:O7,_S.exports=CS;var D7=_S.exports;const uo=()=>{},_n=uo(),my=Object,He=e=>e===_n,zr=e=>typeof e=="function",lo=(e,t)=>({...e,...t}),L7=e=>zr(e.then),kf=new WeakMap;let M7=0;const yl=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let i,o;if(my(e)===e&&!r&&n!=RegExp){if(i=kf.get(e),i)return i;if(i=++M7+"~",kf.set(e,i),n==Array){for(i="@",o=0;o<e.length;o++)i+=yl(e[o])+",";kf.set(e,i)}if(n==my){i="#";const a=my.keys(e).sort();for(;!He(o=a.pop());)He(e[o])||(i+=o+":"+yl(e[o])+",");kf.set(e,i)}}else i=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return i},wi=new WeakMap,gy={},Rf={},yy="undefined",Nf=typeof window!=yy,vy=typeof document!=yy,F7=()=>Nf&&typeof window.requestAnimationFrame!=yy,SS=(e,t)=>{const n=wi.get(e);return[()=>!He(t)&&e.get(t)||gy,r=>{if(!He(t)){const i=e.get(t);t in Rf||(Rf[t]=i),n[5](t,lo(i,r),i||gy)}},n[6],()=>!He(t)&&t in Rf?Rf[t]:!He(t)&&e.get(t)||gy]};let xy=!0;const B7=()=>xy,[wy,by]=Nf&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[uo,uo],j7=()=>{const e=vy&&document.visibilityState;return He(e)||e!=="hidden"},U7=e=>(vy&&document.addEventListener("visibilitychange",e),wy("focus",e),()=>{vy&&document.removeEventListener("visibilitychange",e),by("focus",e)}),z7=e=>{const t=()=>{xy=!0,e()},n=()=>{xy=!1};return wy("online",t),wy("offline",n),()=>{by("online",t),by("offline",n)}},H7={isOnline:B7,isVisible:j7},V7={initFocus:U7,initReconnect:z7},AS=!ln.useId,vl=!Nf||"Deno"in window,$7=e=>F7()?window.requestAnimationFrame(e):setTimeout(e,1),Ey=vl?v.useEffect:v.useLayoutEffect,Ty=typeof navigator<"u"&&navigator.connection,kS=!vl&&Ty&&(["slow-2g","2g"].includes(Ty.effectiveType)||Ty.saveData),_y=e=>{if(zr(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?yl(e):"",[e,t]};let W7=0;const Cy=()=>++W7,RS=0,NS=1,PS=2;var xl={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:RS,MUTATE_EVENT:PS,RECONNECT_EVENT:NS};async function IS(...e){const[t,n,r,i]=e,o=lo({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let a=o.populateCache;const s=o.rollbackOnError;let u=o.optimisticData;const l=f=>typeof s=="function"?s(f):s!==!1,c=o.throwOnError;if(zr(n)){const f=n,p=[],m=t.keys();for(const y of m)!/^\$(inf|sub)\$/.test(y)&&f(t.get(y)._k)&&p.push(y);return Promise.all(p.map(d))}return d(n);async function d(f){const[p]=_y(f);if(!p)return;const[m,y]=SS(t,p),[b,g,x,w]=wi.get(t),T=()=>{const Q=b[p];return(zr(o.revalidate)?o.revalidate(m().data,f):o.revalidate!==!1)&&(delete x[p],delete w[p],Q&&Q[0])?Q[0](PS).then(()=>m().data):m().data};if(e.length<3)return T();let _=r,C;const R=Cy();g[p]=[R,0];const O=!He(u),V=m(),P=V.data,$=V._c,z=He($)?P:$;if(O&&(u=zr(u)?u(z,P):u,y({data:u,_c:z})),zr(_))try{_=_(z)}catch(Q){C=Q}if(_&&L7(_))if(_=await _.catch(Q=>{C=Q}),R!==g[p][0]){if(C)throw C;return _}else C&&O&&l(C)&&(a=!0,y({data:z,_c:_n}));if(a&&!C)if(zr(a)){const Q=a(_,z);y({data:Q,error:_n,_c:_n})}else y({data:_,error:_n,_c:_n});if(g[p][1]=Cy(),Promise.resolve(T()).then(()=>{y({_c:_n})}),C){if(c)throw C;return}return _}}const OS=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Y7=(e,t)=>{if(!wi.has(e)){const n=lo(V7,t),r={},i=IS.bind(_n,e);let o=uo;const a={},s=(c,d)=>{const f=a[c]||[];return a[c]=f,f.push(d),()=>f.splice(f.indexOf(d),1)},u=(c,d,f)=>{e.set(c,d);const p=a[c];if(p)for(const m of p)m(d,f)},l=()=>{if(!wi.has(e)&&(wi.set(e,[r,{},{},{},i,u,s]),!vl)){const c=n.initFocus(setTimeout.bind(_n,OS.bind(_n,r,RS))),d=n.initReconnect(setTimeout.bind(_n,OS.bind(_n,r,NS)));o=()=>{c&&c(),d&&d(),wi.delete(e)}}};return l(),[e,i,l,o]}return[e,wi.get(e)[4]]},q7=(e,t,n,r,i)=>{const o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!He(o)&&a>o||setTimeout(r,s,i)},G7=(e,t)=>yl(e)==yl(t),[DS,K7]=Y7(new Map),X7=lo({onLoadingSlow:uo,onSuccess:uo,onError:uo,onErrorRetry:q7,onDiscarded:uo,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:kS?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:kS?5e3:3e3,compare:G7,isPaused:()=>!1,cache:DS,mutate:K7,fallback:{}},H7),Q7=(e,t)=>{const n=lo(e,t);if(t){const{use:r,fallback:i}=e,{use:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=lo(i,a))}return n},Z7=v.createContext({}),J7="$inf$",LS=Nf&&window.__SWR_DEVTOOLS_USE__,eU=LS?window.__SWR_DEVTOOLS_USE__:[],tU=()=>{LS&&(window.__SWR_DEVTOOLS_REACT__=ln)},nU=e=>zr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],rU=()=>lo(X7,v.useContext(Z7)),iU=e=>(t,n,r)=>e(t,n&&((...o)=>{const[a]=_y(t),[,,,s]=wi.get(DS);if(a.startsWith(J7))return n(...o);const u=s[a];return He(u)?n(...o):(delete s[a],u)}),r),oU=eU.concat(iU),aU=e=>function(...n){const r=rU(),[i,o,a]=nU(n),s=Q7(r,a);let u=e;const{use:l}=s,c=(l||[]).concat(oU);for(let d=c.length;d--;)u=c[d](u);return u(i,o||s.fetcher||null,s)},sU=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i>=0&&(r[i]=r[r.length-1],r.pop())}};tU();const MS=ln.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Sy={dedupe:!0},uU=aU((e,t,n)=>{const{cache:r,compare:i,suspense:o,fallbackData:a,revalidateOnMount:s,revalidateIfStale:u,refreshInterval:l,refreshWhenHidden:c,refreshWhenOffline:d,keepPreviousData:f}=n,[p,m,y,b]=wi.get(r),[g,x]=_y(e),w=v.useRef(!1),T=v.useRef(!1),_=v.useRef(g),C=v.useRef(t),R=v.useRef(n),O=()=>R.current,V=()=>O().isVisible()&&O().isOnline(),[P,$,z,Q]=SS(r,g),Y=v.useRef({}).current,re=He(a)?n.fallback[g]:a,ie=(Te,be)=>{for(const Ye in Y){const ze=Ye;if(ze==="data"){if(!i(Te[ze],be[ze])&&(!He(Te[ze])||!i(ge,be[ze])))return!1}else if(be[ze]!==Te[ze])return!1}return!0},te=v.useMemo(()=>{const Te=!g||!t?!1:He(s)?O().isPaused()||o?!1:He(u)?!0:u:s,be=Fe=>{const Ot=lo(Fe);return delete Ot._k,Te?{isValidating:!0,isLoading:!0,...Ot}:Ot},Ye=P(),ze=Q(),yt=be(Ye),vt=Ye===ze?yt:be(ze);let Ke=yt;return[()=>{const Fe=be(P());return ie(Fe,Ke)?(Ke.data=Fe.data,Ke.isLoading=Fe.isLoading,Ke.isValidating=Fe.isValidating,Ke.error=Fe.error,Ke):(Ke=Fe,Fe)},()=>vt]},[r,g]),F=D7.useSyncExternalStore(v.useCallback(Te=>z(g,(be,Ye)=>{ie(Ye,be)||Te()}),[r,g]),te[0],te[1]),B=!w.current,A=p[g]&&p[g].length>0,oe=F.data,he=He(oe)?re:oe,D=F.error,Oe=v.useRef(he),ge=f?He(oe)?Oe.current:oe:he,xe=A&&!He(D)?!1:B&&!He(s)?s:O().isPaused()?!1:o?He(he)?!1:u:He(he)||u,$e=!!(g&&t&&B&&xe),Ve=He(F.isValidating)?$e:F.isValidating,We=He(F.isLoading)?$e:F.isLoading,Ge=v.useCallback(async Te=>{const be=C.current;if(!g||!be||T.current||O().isPaused())return!1;let Ye,ze,yt=!0;const vt=Te||{},Ke=!y[g]||!vt.dedupe,Fe=()=>AS?!T.current&&g===_.current&&w.current:g===_.current,Ot={isValidating:!1,isLoading:!1},Po=()=>{$(Ot)},Io=()=>{const ne=y[g];ne&&ne[1]===ze&&delete y[g]},Oo={isValidating:!0};He(P().data)&&(Oo.isLoading=!0);try{if(Ke&&($(Oo),n.loadingTimeout&&He(P().data)&&setTimeout(()=>{yt&&Fe()&&O().onLoadingSlow(g,n)},n.loadingTimeout),y[g]=[be(x),Cy()]),[Ye,ze]=y[g],Ye=await Ye,Ke&&setTimeout(Io,n.dedupingInterval),!y[g]||y[g][1]!==ze)return Ke&&Fe()&&O().onDiscarded(g),!1;Ot.error=_n;const ne=m[g];if(!He(ne)&&(ze<=ne[0]||ze<=ne[1]||ne[1]===0))return Po(),Ke&&Fe()&&O().onDiscarded(g),!1;const de=P().data;Ot.data=i(de,Ye)?de:Ye,Ke&&Fe()&&O().onSuccess(Ye,g,n)}catch(ne){Io();const de=O(),{shouldRetryOnError:j}=de;de.isPaused()||(Ot.error=ne,Ke&&Fe()&&(de.onError(ne,g,de),(j===!0||zr(j)&&j(ne))&&(!O().revalidateOnFocus||!O().revalidateOnReconnect||V())&&de.onErrorRetry(ne,g,de,q=>{const ce=p[g];ce&&ce[0]&&ce[0](xl.ERROR_REVALIDATE_EVENT,q)},{retryCount:(vt.retryCount||0)+1,dedupe:!0})))}return yt=!1,Po(),!0},[g,r]),_t=v.useCallback((...Te)=>IS(r,_.current,...Te),[]);if(Ey(()=>{C.current=t,R.current=n,He(oe)||(Oe.current=oe)}),Ey(()=>{if(!g)return;const Te=Ge.bind(_n,Sy);let be=0;const ze=sU(g,p,(yt,vt={})=>{if(yt==xl.FOCUS_EVENT){const Ke=Date.now();O().revalidateOnFocus&&Ke>be&&V()&&(be=Ke+O().focusThrottleInterval,Te())}else if(yt==xl.RECONNECT_EVENT)O().revalidateOnReconnect&&V()&&Te();else{if(yt==xl.MUTATE_EVENT)return Ge();if(yt==xl.ERROR_REVALIDATE_EVENT)return Ge(vt)}});return T.current=!1,_.current=g,w.current=!0,$({_k:x}),xe&&(He(he)||vl?Te():$7(Te)),()=>{T.current=!0,ze()}},[g]),Ey(()=>{let Te;function be(){const ze=zr(l)?l(P().data):l;ze&&Te!==-1&&(Te=setTimeout(Ye,ze))}function Ye(){!P().error&&(c||O().isVisible())&&(d||O().isOnline())?Ge(Sy).then(be):be()}return be(),()=>{Te&&(clearTimeout(Te),Te=-1)}},[l,c,d,g]),v.useDebugValue(ge),o&&He(he)&&g){if(!AS&&vl)throw new Error("Fallback data is required when using suspense in SSR.");C.current=t,R.current=n,T.current=!1;const Te=b[g];if(!He(Te)){const be=_t(Te);MS(be)}if(He(D)){const be=Ge(Sy);He(ge)||(be.status="fulfilled",be.value=!0),MS(be)}else throw D}return{mutate:_t,get data(){return Y.data=!0,ge},get error(){return Y.error=!0,D},get isValidating(){return Y.isValidating=!0,Ve},get isLoading(){return Y.isLoading=!0,We}}});function Pf(){const{widgetCtx:e}=ir();return uU([e.config.token],e.api.widgetPrelude,{revalidateOnFocus:!1})}function wl(){const{widgetCtx:e}=ir();return{routerState:ml(e.routerCtx.state),toSessionsScreen:e.routerCtx.toSessionsScreen,toChatScreen:e.routerCtx.toChatScreen}}var FS={};const lU=NO(e9);var If={},BS;function cU(){if(BS)return If;BS=1,Object.defineProperty(If,"__esModule",{value:!0});var e=v;function t(){var n=e.useRef(!1),r=e.useCallback(function(){return n.current},[]);return e.useEffect(function(){return n.current=!0,function(){n.current=!1}},[]),r}return If.default=t,If}Object.defineProperty(FS,"__esModule",{value:!0});var Ay=lU,ky=v,dU=Ay.__importDefault(cU());function fU(e,t,n){t===void 0&&(t=[]),n===void 0&&(n={loading:!1});var r=ky.useRef(0),i=dU.default(),o=ky.useState(n),a=o[0],s=o[1],u=ky.useCallback(function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];var d=++r.current;return a.loading||s(function(f){return Ay.__assign(Ay.__assign({},f),{loading:!0})}),e.apply(void 0,l).then(function(f){return i()&&d===r.current&&s({value:f,loading:!1}),f},function(f){return i()&&d===r.current&&s({error:f,loading:!1}),f})},t);return[a,u]}var pU=FS.default=fU;const co=new Map;function hU(){const[e,t]=v.useState([]),{widgetCtx:{api:n}}=ir();function r(c){const d=c.map(f=>({file:f,id:dy(),status:"pending",progress:0}));t(f=>[...f,...d]),d.forEach(a)}function i(c,d){t(f=>f.map(p=>p.id===c?{...p,...d}:p))}function o(c){t(d=>d.filter(f=>f.id!==c))}const a=async c=>{const d=new AbortController;co.set(c.id,d);try{t(p=>p.map(m=>m.id===c.id?{...m,status:"uploading",progress:0}:m));const f=await n.uploadFile(c,{signal:d.signal,onUploadProgress:p=>{if(!p.total)return;const m=Math.round(p.loaded*100/p.total);i(c.id,{progress:m})}});i(c.id,{status:"success",fileUrl:f.fileUrl,progress:100})}catch(f){d.signal.aborted||i(c.id,{status:"error",error:f instanceof Error?f.message:"Upload failed",progress:0})}finally{co.delete(c.id)}},s=c=>{const d=co.get(c);d&&(d.abort(),co.delete(c)),o(c)},u=v.useMemo(()=>e.filter(c=>c.status==="success"&&c.fileUrl),[e]);function l(){co.forEach(c=>c.abort()),co.clear(),t([])}return v.useEffect(()=>()=>{co.forEach(c=>c.abort()),co.clear()},[]),{allFiles:e,appendFiles:r,handleCancelUpload:s,successFiles:u,emptyTheFiles:l,getFileById:c=>e.find(d=>d.id===c),getUploadProgress:c=>{var d;return((d=e.find(f=>f.id===c))==null?void 0:d.progress)??0},getUploadStatus:c=>{var d;return(d=e.find(f=>f.id===c))==null?void 0:d.status},hasErrors:e.some(c=>c.status==="error"),isUploading:e.some(c=>c.status==="uploading")}}function Cn(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function mU(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function jS(...e){return t=>e.forEach(n=>mU(n,t))}function Hr(...e){return v.useCallback(jS(...e),e)}function gU(e,t){const n=v.createContext(t),r=o=>{const{children:a,...s}=o,u=v.useMemo(()=>s,Object.values(s));return E.jsx(n.Provider,{value:u,children:a})};r.displayName=e+"Provider";function i(o){const a=v.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,i]}function bi(e,t=[]){let n=[];function r(o,a){const s=v.createContext(a),u=n.length;n=[...n,a];const l=d=>{var g;const{scope:f,children:p,...m}=d,y=((g=f==null?void 0:f[e])==null?void 0:g[u])||s,b=v.useMemo(()=>m,Object.values(m));return E.jsx(y.Provider,{value:b,children:p})};l.displayName=o+"Provider";function c(d,f){var y;const p=((y=f==null?void 0:f[e])==null?void 0:y[u])||s,m=v.useContext(p);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${o}\``)}return[l,c]}const i=()=>{const o=n.map(a=>v.createContext(a));return function(s){const u=(s==null?void 0:s[e])||o;return v.useMemo(()=>({[`__scope${e}`]:{...s,[e]:u}}),[s,u])}};return i.scopeName=e,[r,yU(i,...t)]}function yU(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=r.reduce((s,{useScope:u,scopeName:l})=>{const d=u(o)[`__scope${l}`];return{...s,...d}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var Of=v.forwardRef((e,t)=>{const{children:n,...r}=e,i=v.Children.toArray(n),o=i.find(vU);if(o){const a=o.props.children,s=i.map(u=>u===o?v.Children.count(a)>1?v.Children.only(null):v.isValidElement(a)?a.props.children:null:u);return E.jsx(Ry,{...r,ref:t,children:v.isValidElement(a)?v.cloneElement(a,void 0,s):null})}return E.jsx(Ry,{...r,ref:t,children:n})});Of.displayName="Slot";var Ry=v.forwardRef((e,t)=>{const{children:n,...r}=e;if(v.isValidElement(n)){const i=wU(n);return v.cloneElement(n,{...xU(r,n.props),ref:t?jS(t,i):i})}return v.Children.count(n)>1?v.Children.only(null):null});Ry.displayName="SlotClone";var US=({children:e})=>E.jsx(E.Fragment,{children:e});function vU(e){return v.isValidElement(e)&&e.type===US}function xU(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...s)=>{o(...s),i(...s)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function wU(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var bU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],zn=bU.reduce((e,t)=>{const n=v.forwardRef((r,i)=>{const{asChild:o,...a}=r,s=o?Of:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(s,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function EU(e,t){e&&Zo.flushSync(()=>e.dispatchEvent(t))}function Pt(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Ny(e,t=globalThis==null?void 0:globalThis.document){const n=Pt(e);v.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var TU="DismissableLayer",Py="dismissableLayer.update",_U="dismissableLayer.pointerDownOutside",CU="dismissableLayer.focusOutside",zS,HS=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Iy=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:s,...u}=e,l=v.useContext(HS),[c,d]=v.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=v.useState({}),m=Hr(t,R=>d(R)),y=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),g=y.indexOf(b),x=c?y.indexOf(c):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,T=x>=g,_=kU(R=>{const O=R.target,V=[...l.branches].some(P=>P.contains(O));!T||V||(i==null||i(R),a==null||a(R),R.defaultPrevented||s==null||s())},f),C=RU(R=>{const O=R.target;[...l.branches].some(P=>P.contains(O))||(o==null||o(R),a==null||a(R),R.defaultPrevented||s==null||s())},f);return Ny(R=>{x===l.layers.size-1&&(r==null||r(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},f),v.useEffect(()=>{if(c)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(zS=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),VS(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=zS)}},[c,f,n,l]),v.useEffect(()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),VS())},[c,l]),v.useEffect(()=>{const R=()=>p({});return document.addEventListener(Py,R),()=>document.removeEventListener(Py,R)},[]),E.jsx(zn.div,{...u,ref:m,style:{pointerEvents:w?T?"auto":"none":void 0,...e.style},onFocusCapture:Cn(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Cn(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Cn(e.onPointerDownCapture,_.onPointerDownCapture)})});Iy.displayName=TU;var SU="DismissableLayerBranch",AU=v.forwardRef((e,t)=>{const n=v.useContext(HS),r=v.useRef(null),i=Hr(t,r);return v.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),E.jsx(zn.div,{...e,ref:i})});AU.displayName=SU;function kU(e,t=globalThis==null?void 0:globalThis.document){const n=Pt(e),r=v.useRef(!1),i=v.useRef(()=>{});return v.useEffect(()=>{const o=s=>{if(s.target&&!r.current){let u=function(){$S(_U,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}else t.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function RU(e,t=globalThis==null?void 0:globalThis.document){const n=Pt(e),r=v.useRef(!1);return v.useEffect(()=>{const i=o=>{o.target&&!r.current&&$S(CU,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function VS(){const e=new CustomEvent(Py);document.dispatchEvent(e)}function $S(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?EU(i,o):i.dispatchEvent(o)}var or=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},NU=YO.useId||(()=>{}),PU=0;function fo(e){const[t,n]=v.useState(NU());return or(()=>{e||n(r=>r??String(PU++))},[e]),e||(t?`radix-${t}`:"")}const IU=["top","right","bottom","left"],po=Math.min,Hn=Math.max,Df=Math.round,Lf=Math.floor,ho=e=>({x:e,y:e}),OU={left:"right",right:"left",bottom:"top",top:"bottom"},DU={start:"end",end:"start"};function Oy(e,t,n){return Hn(e,po(t,n))}function Ei(e,t){return typeof e=="function"?e(t):e}function Ti(e){return e.split("-")[0]}function bs(e){return e.split("-")[1]}function Dy(e){return e==="x"?"y":"x"}function Ly(e){return e==="y"?"height":"width"}function mo(e){return["top","bottom"].includes(Ti(e))?"y":"x"}function My(e){return Dy(mo(e))}function LU(e,t,n){n===void 0&&(n=!1);const r=bs(e),i=My(e),o=Ly(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Mf(a)),[a,Mf(a)]}function MU(e){const t=Mf(e);return[Fy(e),t,Fy(t)]}function Fy(e){return e.replace(/start|end/g,t=>DU[t])}function FU(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function BU(e,t,n,r){const i=bs(e);let o=FU(Ti(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(Fy)))),o}function Mf(e){return e.replace(/left|right|bottom|top/g,t=>OU[t])}function jU(e){return{top:0,right:0,bottom:0,left:0,...e}}function WS(e){return typeof e!="number"?jU(e):{top:e,right:e,bottom:e,left:e}}function Ff(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function YS(e,t,n){let{reference:r,floating:i}=e;const o=mo(t),a=My(t),s=Ly(a),u=Ti(t),l=o==="y",c=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2;let p;switch(u){case"top":p={x:c,y:r.y-i.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(bs(t)){case"start":p[a]-=f*(n&&l?-1:1);break;case"end":p[a]+=f*(n&&l?-1:1);break}return p}const UU=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=YS(l,r,u),f=r,p={},m=0;for(let y=0;y<s.length;y++){const{name:b,fn:g}=s[y],{x,y:w,data:T,reset:_}=await g({x:c,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:l,platform:a,elements:{reference:e,floating:t}});c=x??c,d=w??d,p={...p,[b]:{...p[b],...T}},_&&m<=50&&(m++,typeof _=="object"&&(_.placement&&(f=_.placement),_.rects&&(l=_.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):_.rects),{x:c,y:d}=YS(l,f,u)),y=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:p}};async function bl(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Ei(t,e),m=WS(p),b=s[f?d==="floating"?"reference":"floating":d],g=Ff(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:l,rootBoundary:c,strategy:u})),x=d==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),T=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},_=Ff(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:w,strategy:u}):x);return{top:(g.top-_.top+m.top)/T.y,bottom:(_.bottom-g.bottom+m.bottom)/T.y,left:(g.left-_.left+m.left)/T.x,right:(_.right-g.right+m.right)/T.x}}const zU=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:u}=t,{element:l,padding:c=0}=Ei(e,t)||{};if(l==null)return{};const d=WS(c),f={x:n,y:r},p=My(i),m=Ly(p),y=await a.getDimensions(l),b=p==="y",g=b?"top":"left",x=b?"bottom":"right",w=b?"clientHeight":"clientWidth",T=o.reference[m]+o.reference[p]-f[p]-o.floating[m],_=f[p]-o.reference[p],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let R=C?C[w]:0;(!R||!await(a.isElement==null?void 0:a.isElement(C)))&&(R=s.floating[w]||o.floating[m]);const O=T/2-_/2,V=R/2-y[m]/2-1,P=po(d[g],V),$=po(d[x],V),z=P,Q=R-y[m]-$,Y=R/2-y[m]/2+O,re=Oy(z,Y,Q),ie=!u.arrow&&bs(i)!=null&&Y!==re&&o.reference[m]/2-(Y<z?P:$)-y[m]/2<0,te=ie?Y<z?Y-z:Y-Q:0;return{[p]:f[p]+te,data:{[p]:re,centerOffset:Y-re-te,...ie&&{alignmentOffset:te}},reset:ie}}}),HU=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:u,elements:l}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...b}=Ei(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const g=Ti(i),x=mo(s),w=Ti(s)===s,T=await(u.isRTL==null?void 0:u.isRTL(l.floating)),_=f||(w||!y?[Mf(s)]:MU(s)),C=m!=="none";!f&&C&&_.push(...BU(s,y,m,T));const R=[s,..._],O=await bl(t,b),V=[];let P=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&V.push(O[g]),d){const Y=LU(i,a,T);V.push(O[Y[0]],O[Y[1]])}if(P=[...P,{placement:i,overflows:V}],!V.every(Y=>Y<=0)){var $,z;const Y=((($=o.flip)==null?void 0:$.index)||0)+1,re=R[Y];if(re)return{data:{index:Y,overflows:P},reset:{placement:re}};let ie=(z=P.filter(te=>te.overflows[0]<=0).sort((te,F)=>te.overflows[1]-F.overflows[1])[0])==null?void 0:z.placement;if(!ie)switch(p){case"bestFit":{var Q;const te=(Q=P.filter(F=>{if(C){const B=mo(F.placement);return B===x||B==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(B=>B>0).reduce((B,A)=>B+A,0)]).sort((F,B)=>F[1]-B[1])[0])==null?void 0:Q[0];te&&(ie=te);break}case"initialPlacement":ie=s;break}if(i!==ie)return{reset:{placement:ie}}}return{}}}};function qS(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function GS(e){return IU.some(t=>e[t]>=0)}const VU=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Ei(e,t);switch(r){case"referenceHidden":{const o=await bl(t,{...i,elementContext:"reference"}),a=qS(o,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:GS(a)}}}case"escaped":{const o=await bl(t,{...i,altBoundary:!0}),a=qS(o,n.floating);return{data:{escapedOffsets:a,escaped:GS(a)}}}default:return{}}}}};async function $U(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Ti(n),s=bs(n),u=mo(n)==="y",l=["left","top"].includes(a)?-1:1,c=o&&u?-1:1,d=Ei(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m=="number"&&(p=s==="end"?m*-1:m),u?{x:p*c,y:f*l}:{x:f*l,y:p*c}}const WU=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,u=await $U(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+u.x,y:o+u.y,data:{...u,placement:a}}}}},YU=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:b=>{let{x:g,y:x}=b;return{x:g,y:x}}},...u}=Ei(e,t),l={x:n,y:r},c=await bl(t,u),d=mo(Ti(i)),f=Dy(d);let p=l[f],m=l[d];if(o){const b=f==="y"?"top":"left",g=f==="y"?"bottom":"right",x=p+c[b],w=p-c[g];p=Oy(x,p,w)}if(a){const b=d==="y"?"top":"left",g=d==="y"?"bottom":"right",x=m+c[b],w=m-c[g];m=Oy(x,m,w)}const y=s.fn({...t,[f]:p,[d]:m});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[f]:o,[d]:a}}}}}},qU=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:u=!0,crossAxis:l=!0}=Ei(e,t),c={x:n,y:r},d=mo(i),f=Dy(d);let p=c[f],m=c[d];const y=Ei(s,t),b=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(u){const w=f==="y"?"height":"width",T=o.reference[f]-o.floating[w]+b.mainAxis,_=o.reference[f]+o.reference[w]-b.mainAxis;p<T?p=T:p>_&&(p=_)}if(l){var g,x;const w=f==="y"?"width":"height",T=["top","left"].includes(Ti(i)),_=o.reference[d]-o.floating[w]+(T&&((g=a.offset)==null?void 0:g[d])||0)+(T?0:b.crossAxis),C=o.reference[d]+o.reference[w]+(T?0:((x=a.offset)==null?void 0:x[d])||0)-(T?b.crossAxis:0);m<_?m=_:m>C&&(m=C)}return{[f]:p,[d]:m}}}},GU=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:s}=t,{apply:u=()=>{},...l}=Ei(e,t),c=await bl(t,l),d=Ti(i),f=bs(i),p=mo(i)==="y",{width:m,height:y}=o.floating;let b,g;d==="top"||d==="bottom"?(b=d,g=f===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=d,b=f==="end"?"top":"bottom");const x=y-c.top-c.bottom,w=m-c.left-c.right,T=po(y-c[b],x),_=po(m-c[g],w),C=!t.middlewareData.shift;let R=T,O=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=x),C&&!f){const P=Hn(c.left,0),$=Hn(c.right,0),z=Hn(c.top,0),Q=Hn(c.bottom,0);p?O=m-2*(P!==0||$!==0?P+$:Hn(c.left,c.right)):R=y-2*(z!==0||Q!==0?z+Q:Hn(c.top,c.bottom))}await u({...t,availableWidth:O,availableHeight:R});const V=await a.getDimensions(s.floating);return m!==V.width||y!==V.height?{reset:{rects:!0}}:{}}}};function Bf(){return typeof window<"u"}function Es(e){return KS(e)?(e.nodeName||"").toLowerCase():"#document"}function Vn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Vr(e){var t;return(t=(KS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function KS(e){return Bf()?e instanceof Node||e instanceof Vn(e).Node:!1}function _r(e){return Bf()?e instanceof Element||e instanceof Vn(e).Element:!1}function $r(e){return Bf()?e instanceof HTMLElement||e instanceof Vn(e).HTMLElement:!1}function XS(e){return!Bf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Vn(e).ShadowRoot}function El(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Cr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function KU(e){return["table","td","th"].includes(Es(e))}function jf(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function By(e){const t=jy(),n=_r(e)?Cr(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function XU(e){let t=go(e);for(;$r(t)&&!Ts(t);){if(By(t))return t;if(jf(t))return null;t=go(t)}return null}function jy(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ts(e){return["html","body","#document"].includes(Es(e))}function Cr(e){return Vn(e).getComputedStyle(e)}function Uf(e){return _r(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function go(e){if(Es(e)==="html")return e;const t=e.assignedSlot||e.parentNode||XS(e)&&e.host||Vr(e);return XS(t)?t.host:t}function QS(e){const t=go(e);return Ts(t)?e.ownerDocument?e.ownerDocument.body:e.body:$r(t)&&El(t)?t:QS(t)}function Tl(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=QS(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Vn(i);if(o){const s=Uy(a);return t.concat(a,a.visualViewport||[],El(i)?i:[],s&&n?Tl(s):[])}return t.concat(i,Tl(i,[],n))}function Uy(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ZS(e){const t=Cr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=$r(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=Df(n)!==o||Df(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function zy(e){return _r(e)?e:e.contextElement}function _s(e){const t=zy(e);if(!$r(t))return ho(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=ZS(t);let a=(o?Df(n.width):n.width)/r,s=(o?Df(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const QU=ho(0);function JS(e){const t=Vn(e);return!jy()||!t.visualViewport?QU:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ZU(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Vn(e)?!1:t}function ua(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=zy(e);let a=ho(1);t&&(r?_r(r)&&(a=_s(r)):a=_s(e));const s=ZU(o,n,r)?JS(o):ho(0);let u=(i.left+s.x)/a.x,l=(i.top+s.y)/a.y,c=i.width/a.x,d=i.height/a.y;if(o){const f=Vn(o),p=r&&_r(r)?Vn(r):r;let m=f,y=Uy(m);for(;y&&r&&p!==m;){const b=_s(y),g=y.getBoundingClientRect(),x=Cr(y),w=g.left+(y.clientLeft+parseFloat(x.paddingLeft))*b.x,T=g.top+(y.clientTop+parseFloat(x.paddingTop))*b.y;u*=b.x,l*=b.y,c*=b.x,d*=b.y,u+=w,l+=T,m=Vn(y),y=Uy(m)}}return Ff({width:c,height:d,x:u,y:l})}function JU(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=Vr(r),s=t?jf(t.floating):!1;if(r===a||s&&o)return n;let u={scrollLeft:0,scrollTop:0},l=ho(1);const c=ho(0),d=$r(r);if((d||!d&&!o)&&((Es(r)!=="body"||El(a))&&(u=Uf(r)),$r(r))){const f=ua(r);l=_s(r),c.x=f.x+r.clientLeft,c.y=f.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+c.x,y:n.y*l.y-u.scrollTop*l.y+c.y}}function ez(e){return Array.from(e.getClientRects())}function Hy(e,t){const n=Uf(e).scrollLeft;return t?t.left+n:ua(Vr(e)).left+n}function tz(e){const t=Vr(e),n=Uf(e),r=e.ownerDocument.body,i=Hn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Hn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Hy(e);const s=-n.scrollTop;return Cr(r).direction==="rtl"&&(a+=Hn(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}function nz(e,t){const n=Vn(e),r=Vr(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,u=0;if(i){o=i.width,a=i.height;const l=jy();(!l||l&&t==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:s,y:u}}function rz(e,t){const n=ua(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=$r(e)?_s(e):ho(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,u=i*o.x,l=r*o.y;return{width:a,height:s,x:u,y:l}}function eA(e,t,n){let r;if(t==="viewport")r=nz(e,n);else if(t==="document")r=tz(Vr(e));else if(_r(t))r=rz(t,n);else{const i=JS(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Ff(r)}function tA(e,t){const n=go(e);return n===t||!_r(n)||Ts(n)?!1:Cr(n).position==="fixed"||tA(n,t)}function iz(e,t){const n=t.get(e);if(n)return n;let r=Tl(e,[],!1).filter(s=>_r(s)&&Es(s)!=="body"),i=null;const o=Cr(e).position==="fixed";let a=o?go(e):e;for(;_r(a)&&!Ts(a);){const s=Cr(a),u=By(a);!u&&s.position==="fixed"&&(i=null),(o?!u&&!i:!u&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||El(a)&&!u&&tA(e,a))?r=r.filter(c=>c!==a):i=s,a=go(a)}return t.set(e,r),r}function oz(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?jf(t)?[]:iz(t,this._c):[].concat(n),r],s=a[0],u=a.reduce((l,c)=>{const d=eA(t,c,i);return l.top=Hn(d.top,l.top),l.right=po(d.right,l.right),l.bottom=po(d.bottom,l.bottom),l.left=Hn(d.left,l.left),l},eA(t,s,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function az(e){const{width:t,height:n}=ZS(e);return{width:t,height:n}}function sz(e,t,n){const r=$r(t),i=Vr(t),o=n==="fixed",a=ua(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const u=ho(0);if(r||!r&&!o)if((Es(t)!=="body"||El(i))&&(s=Uf(t)),r){const p=ua(t,!0,o,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else i&&(u.x=Hy(i));let l=0,c=0;if(i&&!r&&!o){const p=i.getBoundingClientRect();c=p.top+s.scrollTop,l=p.left+s.scrollLeft-Hy(i,p)}const d=a.left+s.scrollLeft-u.x-l,f=a.top+s.scrollTop-u.y-c;return{x:d,y:f,width:a.width,height:a.height}}function Vy(e){return Cr(e).position==="static"}function nA(e,t){if(!$r(e)||Cr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Vr(e)===n&&(n=n.ownerDocument.body),n}function rA(e,t){const n=Vn(e);if(jf(e))return n;if(!$r(e)){let i=go(e);for(;i&&!Ts(i);){if(_r(i)&&!Vy(i))return i;i=go(i)}return n}let r=nA(e,t);for(;r&&KU(r)&&Vy(r);)r=nA(r,t);return r&&Ts(r)&&Vy(r)&&!By(r)?n:r||XU(e)||n}const uz=async function(e){const t=this.getOffsetParent||rA,n=this.getDimensions,r=await n(e.floating);return{reference:sz(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function lz(e){return Cr(e).direction==="rtl"}const cz={convertOffsetParentRelativeRectToViewportRelativeRect:JU,getDocumentElement:Vr,getClippingRect:oz,getOffsetParent:rA,getElementRects:uz,getClientRects:ez,getDimensions:az,getScale:_s,isElement:_r,isRTL:lz};function dz(e,t){let n=null,r;const i=Vr(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),o();const{left:l,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p=Lf(c),m=Lf(i.clientWidth-(l+d)),y=Lf(i.clientHeight-(c+f)),b=Lf(l),x={rootMargin:-p+"px "+-m+"px "+-y+"px "+-b+"px",threshold:Hn(0,po(1,u))||1};let w=!0;function T(_){const C=_[0].intersectionRatio;if(C!==u){if(!w)return a();C?a(!1,C):r=setTimeout(()=>{a(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(T,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(T,x)}n.observe(e)}return a(!0),o}function iA(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=zy(e),c=i||o?[...l?Tl(l):[],...Tl(t)]:[];c.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),o&&g.addEventListener("resize",n)});const d=l&&s?dz(l,n):null;let f=-1,p=null;a&&(p=new ResizeObserver(g=>{let[x]=g;x&&x.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),l&&!u&&p.observe(l),p.observe(t));let m,y=u?ua(e):null;u&&b();function b(){const g=ua(e);y&&(g.x!==y.x||g.y!==y.y||g.width!==y.width||g.height!==y.height)&&n(),y=g,m=requestAnimationFrame(b)}return n(),()=>{var g;c.forEach(x=>{i&&x.removeEventListener("scroll",n),o&&x.removeEventListener("resize",n)}),d==null||d(),(g=p)==null||g.disconnect(),p=null,u&&cancelAnimationFrame(m)}}const fz=WU,pz=YU,hz=HU,mz=GU,gz=VU,oA=zU,yz=qU,vz=(e,t,n)=>{const r=new Map,i={platform:cz,...n},o={...i.platform,_c:r};return UU(e,t,{...i,platform:o})};var zf=typeof document<"u"?v.useLayoutEffect:v.useEffect;function Hf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Hf(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Hf(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function aA(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sA(e,t){const n=aA(e);return Math.round(t*n)/n}function $y(e){const t=v.useRef(e);return zf(()=>{t.current=e}),t}function uA(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:u,open:l}=e,[c,d]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=v.useState(r);Hf(f,r)||p(r);const[m,y]=v.useState(null),[b,g]=v.useState(null),x=v.useCallback(F=>{F!==C.current&&(C.current=F,y(F))},[]),w=v.useCallback(F=>{F!==R.current&&(R.current=F,g(F))},[]),T=o||m,_=a||b,C=v.useRef(null),R=v.useRef(null),O=v.useRef(c),V=u!=null,P=$y(u),$=$y(i),z=$y(l),Q=v.useCallback(()=>{if(!C.current||!R.current)return;const F={placement:t,strategy:n,middleware:f};$.current&&(F.platform=$.current),vz(C.current,R.current,F).then(B=>{const A={...B,isPositioned:z.current!==!1};Y.current&&!Hf(O.current,A)&&(O.current=A,Zo.flushSync(()=>{d(A)}))})},[f,t,n,$,z]);zf(()=>{l===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d(F=>({...F,isPositioned:!1})))},[l]);const Y=v.useRef(!1);zf(()=>(Y.current=!0,()=>{Y.current=!1}),[]),zf(()=>{if(T&&(C.current=T),_&&(R.current=_),T&&_){if(P.current)return P.current(T,_,Q);Q()}},[T,_,Q,P,V]);const re=v.useMemo(()=>({reference:C,floating:R,setReference:x,setFloating:w}),[x,w]),ie=v.useMemo(()=>({reference:T,floating:_}),[T,_]),te=v.useMemo(()=>{const F={position:n,left:0,top:0};if(!ie.floating)return F;const B=sA(ie.floating,c.x),A=sA(ie.floating,c.y);return s?{...F,transform:"translate("+B+"px, "+A+"px)",...aA(ie.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:A}},[n,s,ie.floating,c.x,c.y]);return v.useMemo(()=>({...c,update:Q,refs:re,elements:ie,floatingStyles:te}),[c,Q,re,ie,te])}const xz=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?oA({element:r.current,padding:i}).fn(n):{}:r?oA({element:r,padding:i}).fn(n):{}}}},lA=(e,t)=>({...fz(e),options:[e,t]}),cA=(e,t)=>({...pz(e),options:[e,t]}),dA=(e,t)=>({...yz(e),options:[e,t]}),fA=(e,t)=>({...hz(e),options:[e,t]}),pA=(e,t)=>({...mz(e),options:[e,t]}),hA=(e,t)=>({...gz(e),options:[e,t]}),mA=(e,t)=>({...xz(e),options:[e,t]});var wz="Arrow",gA=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return E.jsx(zn.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:E.jsx("polygon",{points:"0,0 30,0 15,10"})})});gA.displayName=wz;var bz=gA;function Ez(e,t=[]){let n=[];function r(o,a){const s=v.createContext(a),u=n.length;n=[...n,a];function l(d){const{scope:f,children:p,...m}=d,y=(f==null?void 0:f[e][u])||s,b=v.useMemo(()=>m,Object.values(m));return E.jsx(y.Provider,{value:b,children:p})}function c(d,f){const p=(f==null?void 0:f[e][u])||s,m=v.useContext(p);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${o}\``)}return l.displayName=o+"Provider",[l,c]}const i=()=>{const o=n.map(a=>v.createContext(a));return function(s){const u=(s==null?void 0:s[e])||o;return v.useMemo(()=>({[`__scope${e}`]:{...s,[e]:u}}),[s,u])}};return i.scopeName=e,[r,Tz(i,...t)]}function Tz(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=r.reduce((s,{useScope:u,scopeName:l})=>{const d=u(o)[`__scope${l}`];return{...s,...d}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function yA(e){const[t,n]=v.useState(void 0);return or(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let a,s;if("borderBoxSize"in o){const u=o.borderBoxSize,l=Array.isArray(u)?u[0]:u;a=l.inlineSize,s=l.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Wy="Popper",[vA,Vf]=Ez(Wy),[_z,xA]=vA(Wy),wA=e=>{const{__scopePopper:t,children:n}=e,[r,i]=v.useState(null);return E.jsx(_z,{scope:t,anchor:r,onAnchorChange:i,children:n})};wA.displayName=Wy;var bA="PopperAnchor",EA=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=xA(bA,n),a=v.useRef(null),s=Hr(t,a);return v.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:E.jsx(zn.div,{...i,ref:s})});EA.displayName=bA;var Yy="PopperContent",[Cz,Sz]=vA(Yy),TA=v.forwardRef((e,t)=>{var $e,Ve,We,Ge,_t,Te;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:m,...y}=e,b=xA(Yy,n),[g,x]=v.useState(null),w=Hr(t,be=>x(be)),[T,_]=v.useState(null),C=yA(T),R=(C==null?void 0:C.width)??0,O=(C==null?void 0:C.height)??0,V=r+(o!=="center"?"-"+o:""),P=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},$=Array.isArray(l)?l:[l],z=$.length>0,Q={padding:P,boundary:$.filter(kz),altBoundary:z},{refs:Y,floatingStyles:re,placement:ie,isPositioned:te,middlewareData:F}=uA({strategy:"fixed",placement:V,whileElementsMounted:(...be)=>iA(...be,{animationFrame:p==="always"}),elements:{reference:b.anchor},middleware:[lA({mainAxis:i+O,alignmentAxis:a}),u&&cA({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?dA():void 0,...Q}),u&&fA({...Q}),pA({...Q,apply:({elements:be,rects:Ye,availableWidth:ze,availableHeight:yt})=>{const{width:vt,height:Ke}=Ye.reference,Fe=be.floating.style;Fe.setProperty("--radix-popper-available-width",`${ze}px`),Fe.setProperty("--radix-popper-available-height",`${yt}px`),Fe.setProperty("--radix-popper-anchor-width",`${vt}px`),Fe.setProperty("--radix-popper-anchor-height",`${Ke}px`)}}),T&&mA({element:T,padding:s}),Rz({arrowWidth:R,arrowHeight:O}),f&&hA({strategy:"referenceHidden",...Q})]}),[B,A]=SA(ie),oe=Pt(m);or(()=>{te&&(oe==null||oe())},[te,oe]);const he=($e=F.arrow)==null?void 0:$e.x,D=(Ve=F.arrow)==null?void 0:Ve.y,Oe=((We=F.arrow)==null?void 0:We.centerOffset)!==0,[ge,xe]=v.useState();return or(()=>{g&&xe(window.getComputedStyle(g).zIndex)},[g]),E.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...re,transform:te?re.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[(Ge=F.transformOrigin)==null?void 0:Ge.x,(_t=F.transformOrigin)==null?void 0:_t.y].join(" "),...((Te=F.hide)==null?void 0:Te.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:E.jsx(Cz,{scope:n,placedSide:B,onArrowChange:_,arrowX:he,arrowY:D,shouldHideArrow:Oe,children:E.jsx(zn.div,{"data-side":B,"data-align":A,...y,ref:w,style:{...y.style,animation:te?void 0:"none"}})})})});TA.displayName=Yy;var _A="PopperArrow",Az={top:"bottom",right:"left",bottom:"top",left:"right"},CA=v.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=Sz(_A,r),a=Az[o.placedSide];return E.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:E.jsx(bz,{...i,ref:n,style:{...i.style,display:"block"}})})});CA.displayName=_A;function kz(e){return e!==null}var Rz=e=>({name:"transformOrigin",options:e,fn(t){var b,g,x;const{placement:n,rects:r,middlewareData:i}=t,a=((b=i.arrow)==null?void 0:b.centerOffset)!==0,s=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[l,c]=SA(n),d={start:"0%",center:"50%",end:"100%"}[c],f=(((g=i.arrow)==null?void 0:g.x)??0)+s/2,p=(((x=i.arrow)==null?void 0:x.y)??0)+u/2;let m="",y="";return l==="bottom"?(m=a?d:`${f}px`,y=`${-u}px`):l==="top"?(m=a?d:`${f}px`,y=`${r.floating.height+u}px`):l==="right"?(m=`${-u}px`,y=a?d:`${p}px`):l==="left"&&(m=`${r.floating.width+u}px`,y=a?d:`${p}px`),{data:{x:m,y}}}});function SA(e){const[t,n="center"]=e.split("-");return[t,n]}var AA=wA,qy=EA,kA=TA,RA=CA;function Nz(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var Gy=e=>{const{present:t,children:n}=e,r=Pz(t),i=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),o=Hr(r.ref,Iz(i));return typeof n=="function"||r.isPresent?v.cloneElement(i,{ref:o}):null};Gy.displayName="Presence";function Pz(e){const[t,n]=v.useState(),r=v.useRef({}),i=v.useRef(e),o=v.useRef("none"),a=e?"mounted":"unmounted",[s,u]=Nz(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const l=$f(r.current);o.current=s==="mounted"?l:"none"},[s]),or(()=>{const l=r.current,c=i.current;if(c!==e){const f=o.current,p=$f(l);e?u("MOUNT"):p==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(c&&f!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),or(()=>{if(t){let l;const c=t.ownerDocument.defaultView??window,d=p=>{const y=$f(r.current).includes(p.animationName);if(p.target===t&&y&&(u("ANIMATION_END"),!i.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",l=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=p=>{p.target===t&&(o.current=$f(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(l),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function $f(e){return(e==null?void 0:e.animationName)||"none"}function Iz(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function _l({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=Oz({defaultProp:t,onChange:n}),o=e!==void 0,a=o?e:r,s=Pt(n),u=v.useCallback(l=>{if(o){const d=typeof l=="function"?l(e):l;d!==e&&s(d)}else i(l)},[o,e,i,s]);return[a,u]}function Oz({defaultProp:e,onChange:t}){const n=v.useState(e),[r]=n,i=v.useRef(r),o=Pt(t);return v.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}var Dz="VisuallyHidden",NA=v.forwardRef((e,t)=>E.jsx(zn.span,{...e,ref:t,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",...e.style}}));NA.displayName=Dz;var Lz=NA,[Wf,Hie]=bi("Tooltip",[Vf]),Yf=Vf(),PA="TooltipProvider",Mz=700,Ky="tooltip.open",[Fz,Xy]=Wf(PA),IA=e=>{const{__scopeTooltip:t,delayDuration:n=Mz,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,[a,s]=v.useState(!0),u=v.useRef(!1),l=v.useRef(0);return v.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),E.jsx(Fz,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:v.useCallback(()=>{window.clearTimeout(l.current),s(!1)},[]),onClose:v.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:u,onPointerInTransitChange:v.useCallback(c=>{u.current=c},[]),disableHoverableContent:i,children:o})};IA.displayName=PA;var qf="Tooltip",[Bz,Gf]=Wf(qf),OA=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,u=Xy(qf,e.__scopeTooltip),l=Yf(t),[c,d]=v.useState(null),f=fo(),p=v.useRef(0),m=a??u.disableHoverableContent,y=s??u.delayDuration,b=v.useRef(!1),[g=!1,x]=_l({prop:r,defaultProp:i,onChange:R=>{R?(u.onOpen(),document.dispatchEvent(new CustomEvent(Ky))):u.onClose(),o==null||o(R)}}),w=v.useMemo(()=>g?b.current?"delayed-open":"instant-open":"closed",[g]),T=v.useCallback(()=>{window.clearTimeout(p.current),b.current=!1,x(!0)},[x]),_=v.useCallback(()=>{window.clearTimeout(p.current),x(!1)},[x]),C=v.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{b.current=!0,x(!0)},y)},[y,x]);return v.useEffect(()=>()=>window.clearTimeout(p.current),[]),E.jsx(AA,{...l,children:E.jsx(Bz,{scope:t,contentId:f,open:g,stateAttribute:w,trigger:c,onTriggerChange:d,onTriggerEnter:v.useCallback(()=>{u.isOpenDelayed?C():T()},[u.isOpenDelayed,C,T]),onTriggerLeave:v.useCallback(()=>{m?_():window.clearTimeout(p.current)},[_,m]),onOpen:T,onClose:_,disableHoverableContent:m,children:n})})};OA.displayName=qf;var Qy="TooltipTrigger",DA=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Gf(Qy,n),o=Xy(Qy,n),a=Yf(n),s=v.useRef(null),u=Hr(t,s,i.onTriggerChange),l=v.useRef(!1),c=v.useRef(!1),d=v.useCallback(()=>l.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),E.jsx(qy,{asChild:!0,...a,children:E.jsx(zn.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:u,onPointerMove:Cn(e.onPointerMove,f=>{f.pointerType!=="touch"&&!c.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:Cn(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:Cn(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Cn(e.onFocus,()=>{l.current||i.onOpen()}),onBlur:Cn(e.onBlur,i.onClose),onClick:Cn(e.onClick,i.onClose)})})});DA.displayName=Qy;var jz="TooltipPortal",[Vie,Uz]=Wf(jz,{forceMount:void 0}),Cs="TooltipContent",LA=v.forwardRef((e,t)=>{const n=Uz(Cs,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=Gf(Cs,e.__scopeTooltip);return E.jsx(Gy,{present:r||a.open,children:a.disableHoverableContent?E.jsx(MA,{side:i,...o,ref:t}):E.jsx(zz,{side:i,...o,ref:t})})}),zz=v.forwardRef((e,t)=>{const n=Gf(Cs,e.__scopeTooltip),r=Xy(Cs,e.__scopeTooltip),i=v.useRef(null),o=Hr(t,i),[a,s]=v.useState(null),{trigger:u,onClose:l}=n,c=i.current,{onPointerInTransitChange:d}=r,f=v.useCallback(()=>{s(null),d(!1)},[d]),p=v.useCallback((m,y)=>{const b=m.currentTarget,g={x:m.clientX,y:m.clientY},x=Wz(g,b.getBoundingClientRect()),w=Yz(g,x),T=qz(y.getBoundingClientRect()),_=Kz([...w,...T]);s(_),d(!0)},[d]);return v.useEffect(()=>()=>f(),[f]),v.useEffect(()=>{if(u&&c){const m=b=>p(b,c),y=b=>p(b,u);return u.addEventListener("pointerleave",m),c.addEventListener("pointerleave",y),()=>{u.removeEventListener("pointerleave",m),c.removeEventListener("pointerleave",y)}}},[u,c,p,f]),v.useEffect(()=>{if(a){const m=y=>{const b=y.target,g={x:y.clientX,y:y.clientY},x=(u==null?void 0:u.contains(b))||(c==null?void 0:c.contains(b)),w=!Gz(g,a);x?f():w&&(f(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[u,c,a,l,f]),E.jsx(MA,{...e,ref:o})}),[Hz,Vz]=Wf(qf,{isInside:!1}),MA=v.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,u=Gf(Cs,n),l=Yf(n),{onClose:c}=u;return v.useEffect(()=>(document.addEventListener(Ky,c),()=>document.removeEventListener(Ky,c)),[c]),v.useEffect(()=>{if(u.trigger){const d=f=>{const p=f.target;p!=null&&p.contains(u.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[u.trigger,c]),E.jsx(Iy,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:E.jsxs(kA,{"data-state":u.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[E.jsx(US,{children:r}),E.jsx(Hz,{scope:n,isInside:!0,children:E.jsx(Lz,{id:u.contentId,role:"tooltip",children:i||r})})]})})});LA.displayName=Cs;var FA="TooltipArrow",$z=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Yf(n);return Vz(FA,n).isInside?null:E.jsx(RA,{...i,...r,ref:t})});$z.displayName=FA;function Wz(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Yz(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function qz(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function Gz(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,a=t.length-1;o<t.length;a=o++){const s=t[o].x,u=t[o].y,l=t[a].x,c=t[a].y;u>r!=c>r&&n<(l-s)*(r-u)/(c-u)+s&&(i=!i)}return i}function Kz(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Xz(t)}function Xz(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const o=t[t.length-1],a=t[t.length-2];if((o.x-a.x)*(i.y-a.y)>=(o.y-a.y)*(i.x-a.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const o=n[n.length-1],a=n[n.length-2];if((o.x-a.x)*(i.y-a.y)>=(o.y-a.y)*(i.x-a.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Qz=IA,Zz=OA,Jz=DA,BA=LA;const eH=Qz,tH=Zz,nH=Jz,jA=v.forwardRef(({className:e,sideOffset:t=4,...n},r)=>E.jsx(BA,{ref:r,sideOffset:t,className:Ne("z-50 overflow-hidden max-w-xs rounded-xl bg-primary border text-primary-foreground p-2 text-center align-middle text-xs shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));jA.displayName=BA.displayName;function Kf({children:e,content:t,side:n,align:r}){return t?E.jsxs(tH,{children:[E.jsx(nH,{asChild:!0,children:e}),E.jsx(jA,{side:n,align:r,collisionPadding:8,avoidCollisions:!0,children:t})]}):e}const UA={en:{ok:"OK",yes:"Yes",no:"No",agree:"Agree",cancel:"Cancel","yes-exit":"Yes, exit","yes-reset":"Yes, reset","no-cancel":"No, cancel","are-you-sure":"Are you sure?",recording:"Recording...","thank-you":"Thank you","sorry-try-again":"Sorry, please try again","error-occurred":"An error occurred","please-try-again":"Please try again","write-a-message":"Write a message...","send-message":"Send message",connected:"Connected",connecting:"Connecting",reconnecting:"Reconnecting",reconnected:"Reconnected",disconnecting:"Disconnecting",disconnected:"Disconnected",error:"Error","persist-session":"Persist session",settings:"Settings",close:"Close",help:"Help",chat:"Chat",send:"Send",copy:"Copy",copied:"Copied","sound-effects":"Sound effects",language:"Language",select:"Select",agent:"Agent",user:"User",bot:"Bot","close-widget":"Close widget","got-any-questions":"Got any questions? Chat with us!","typical-response-time":"Typically respond in less than 1 minute","session-closed-lead":"Your issue has been resolved!","create-new-ticket":"Create new ticket",exit:"Exit","reset-conversation":"Reset conversation","new-conversation":"New conversation","welcome-title":"Welcome to our support chat","welcome-description":"We're here to help! Start a conversation and we'll get back to you as soon as possible.","your-name":"Your name","your-email":"Your email address","start-chat":"Talk to support","starting-chat":"Connecting...","hello-greeting":"Hi there!","i-need-more-help":"I need more help","this-was-helpful":"This was helpful",optional:"Optional"},ar:{ok:"حسنا",yes:"نعم",no:"لا",agree:"موافق",cancel:"إلغاء","yes-exit":"نعم، اخرج","yes-reset":"نعم، إعادة تعيين","no-cancel":"لا، إلغاء","are-you-sure":"هل أنت متأكد؟",recording:"تسجيل","thank-you":"شكرا","sorry-try-again":"عذرا، حاول مرة أخرى","error-occurred":"حدث خطأ","please-try-again":"يرجى المحاولة مرة أخرى","write-a-message":"اكتب رسالة...","send-message":"إرسال رسالة",connected:"متصل",connecting:"جاري الاتصال",reconnecting:"جاري إعادة الاتصال",reconnected:"تم إعادة الاتصال",disconnecting:"جاري قطع الاتصال",disconnected:"قطع الاتصال",error:"خطأ","persist-session":"حفظ الجلسة",settings:"إعدادات",close:"إغلاق",help:"مساعدة",chat:"محادثة",send:"إرسال",copy:"نسخ",copied:"تم النسخ","sound-effects":"التاثيرات الصوتية",language:"اللغة",select:"اختر",agent:"الوكيل",user:"المستخدم",bot:"البوت","close-widget":"إغلاق الودجة","got-any-questions":"هل لديك أي أسئلة؟ تحدث معنا!","typical-response-time":"عادة ما نرد في أقل من دقيقة واحدة","session-closed-lead":"تم حل مشكلتك!",exit:"خروج","create-new-ticket":"إنشاء تذكرة جديدة","reset-conversation":"إعادة تعيين المحادثة","new-conversation":"محادثة جديدة","welcome-title":"مرحبًا بك في دردشة الدعم الخاصة بنا","welcome-description":"نحن هنا للمساعدة! ابدأ محادثة وسنرد عليك في أقرب وقت ممكن.","your-name":"اسمك","your-email":"عنوان بريدك الإلكتروني","start-chat":"تحدث إلى الدعم","starting-chat":"جاري الاتصال...","hello-greeting":"مرحبًا! كيف يمكننا مساعدتك اليوم؟","i-need-more-help":"أحتاج المزيد من المساعدة","this-was-helpful":"كان هذا مفيدًا",optional:"اختياري"},nl:{ok:"OK",yes:"Ja",no:"Nee",agree:"Akkoord",cancel:"Annuleren","yes-exit":"Ja, afsluiten","yes-reset":"Ja, resetten","no-cancel":"Nee, annuleren","are-you-sure":"Weet u het zeker?",recording:"Opname...","thank-you":"Dank u","sorry-try-again":"Sorry, probeer het opnieuw","error-occurred":"Er is een fout opgetreden","please-try-again":"Probeer het opnieuw","write-a-message":"Schrijf een bericht...","send-message":"Bericht verzenden",connected:"Verbonden",connecting:"Verbinding maken",reconnecting:"Opnieuw verbinding maken",reconnected:"Opnieuw verbonden",disconnecting:"Verbinding verbreken",disconnected:"Verbinding verbroken",error:"Fout","persist-session":"Sessie behouden",settings:"Instellingen",close:"Sluiten",help:"Help",chat:"Chat",send:"Verzenden",copy:"Kopiëren",copied:"Gekopieerd","sound-effects":"Geluidseffecten",language:"Taal",select:"Selecteren",agent:"Agent",user:"Gebruiker",bot:"Bot","close-widget":"Widget sluiten","got-any-questions":"Heeft u vragen? Chat met ons!","typical-response-time":"We reageren doorgaans binnen 1 minuut","session-closed-lead":"Uw probleem is opgelost!","create-new-ticket":"Nieuw ticket aanmaken",exit:"Afsluiten","reset-conversation":"Gesprek resetten","new-conversation":"Nieuw gesprek","welcome-title":"Welkom bij onze supportchat","welcome-description":"We zijn hier om te helpen! Begin een gesprek en we nemen zo snel mogelijk contact met u op.","your-name":"Uw naam","your-email":"Uw e-mailadres","start-chat":"Praat met ondersteuning","starting-chat":"Verbinding maken...","hello-greeting":"Hallo! Hoe kunnen we u vandaag helpen?","i-need-more-help":"Ik heb nog meer help nodig","this-was-helpful":"Dit was handig",optional:"Optioneel"},fr:{ok:"D'accord",yes:"Oui",no:"Non",agree:"Accepter",cancel:"Annuler","yes-exit":"Oui, quitter","yes-reset":"Oui, réinitialiser","no-cancel":"Non, annuler","are-you-sure":"Êtes-vous sûr ?",recording:"Enregistrement...","thank-you":"Merci","sorry-try-again":"Désolé, veuillez réessayer","error-occurred":"Une erreur s'est produite","please-try-again":"Veuillez réessayer","write-a-message":"Écrivez un message...","send-message":"Envoyer le message",connected:"Connecté",connecting:"Connexion en cours",reconnecting:"Reconnexion en cours",reconnected:"Reconnecté",disconnecting:"Déconnexion en cours",disconnected:"Déconnecté",error:"Erreur","persist-session":"Conserver la session",settings:"Paramètres",close:"Fermer",help:"Aide",chat:"Chat",send:"Envoyer",copy:"Copier",copied:"Copié","sound-effects":"Effets sonores",language:"Langue",select:"Sélectionner",agent:"Agent",user:"Utilisateur",bot:"Bot","close-widget":"Fermer le widget","got-any-questions":"Vous avez des questions ? Chattez avec nous !","typical-response-time":"Nous répondons généralement en moins d'une minute","session-closed-lead":"Votre problème a été résolu !","create-new-ticket":"Créer un nouveau ticket",exit:"Sortie","reset-conversation":"Réinitialiser la conversation","new-conversation":"Nouvelle conversation","welcome-title":"Bienvenue dans notre chat de support","welcome-description":"Nous sommes là pour vous aider ! Commencez une conversation et nous vous répondrons dès que possible.","your-name":"Votre nom","your-email":"Votre adresse e-mail","start-chat":"Parler au support","starting-chat":"Connexion...","hello-greeting":"Bonjour ! Comment pouvons-nous vous aider aujourd'hui ?","i-need-more-help":"Je besoin d'aide plus","this-was-helpful":"C'était utile",optional:"Optionnel"},de:{ok:"OK",yes:"Ja",no:"Nein",agree:"Zustimmen",cancel:"Stornieren","yes-exit":"Ja, beenden","yes-reset":"Ja, zurücksetzen","no-cancel":"Nein, abbrechen","are-you-sure":"Sind Sie sicher?",recording:"Aufnahme läuft","thank-you":"Vielen Dank","sorry-try-again":"Entschuldigung, bitte versuchen Sie es erneut","error-occurred":"Ein Fehler ist aufgetreten","please-try-again":"Bitte versuchen Sie es erneut","write-a-message":"Nachricht schreiben...","send-message":"Nachricht senden",connected:"Verbunden",connecting:"Verbindung wird hergestellt",reconnecting:"Verbindung wird wiederhergestellt",reconnected:"Wieder verbunden",disconnecting:"Verbindung wird getrennt",disconnected:"Verbindung getrennt",error:"Fehler","persist-session":"Sitzung beibehalten",settings:"Einstellungen",close:"Schließen",help:"Hilfe",chat:"Chat",send:"Senden",copy:"Kopieren",copied:"Kopiert","sound-effects":"Soundeffekte",language:"Sprache",select:"Auswählen",agent:"Agent",user:"Benutzer",bot:"Bot","got-any-questions":"Haben Sie Fragen? Chatten Sie mit uns!","typical-response-time":"Üblicherweise antworten wir in weniger als 1 Minute","close-widget":"Widget schließen","session-closed-lead":"Ihr Problem wurde gelöst!","create-new-ticket":"Neues Ticket erstellen",exit:"Beenden","reset-conversation":"Konversation zurücksetzen","new-conversation":"Neue Konversation","welcome-title":"Willkommen in unserem Support-Chat","welcome-description":"Wir sind hier, um zu helfen! Beginnen Sie ein Gesprách und wir werden so schnell wie mogelijk antworten.","your-name":"Ihr Name","your-email":"Ihre E-Mail-Adresse","start-chat":"Mit dem Support sprechen","starting-chat":"Verbindung wird hergestellt...","hello-greeting":"Hallo! Wie können wir Ihnen heute helfen?","i-need-more-help":"Ich brauche weitere Hilfe","this-was-helpful":"Dies war hilfreich",optional:"Optional"},pt:{ok:"OK",yes:"Sim",no:"Não",agree:"Concordo",cancel:"Cancelar","yes-exit":"Sim, sair","yes-reset":"Sim, redefinir","no-cancel":"Não, cancelar","are-you-sure":"Você tem certeza?",recording:"Gravando...","thank-you":"Obrigado","sorry-try-again":"Desculpe, tente novamente","error-occurred":"Ocorreu um erro","please-try-again":"Por favor, tente novamente","write-a-message":"Escreva uma mensagem...","send-message":"Enviar mensagem",connected:"Conectado",connecting:"Conectando",reconnecting:"Reconectando",reconnected:"Reconectado",disconnecting:"Desconectando",disconnected:"Desconectado",error:"Erro","persist-session":"Persistir sessão",settings:"Configurações",close:"Fechar",help:"Ajuda",chat:"Bate-papo",send:"Enviar",copy:"Copiar",copied:"Copiado","sound-effects":"Efeitos sonoros",language:"Idioma",select:"Selecionar",agent:"Agente",user:"Usuário",bot:"Bot","close-widget":"Fechar widget","got-any-questions":"Tem alguma dúvida? Converse conosco!","typical-response-time":"Geralmente respondemos em menos de 1 minuto","session-closed-lead":"Seu problema foi resolvido!","create-new-ticket":"Criar novo ticket",exit:"Sair","reset-conversation":"Redefinir conversa","new-conversation":"Nova conversa","welcome-title":"Bem-vindo ao nosso chat de suporte","welcome-description":"Estamos aqui para ajudar! Inicie uma conversa e responderemos o mais rápido possível.","your-name":"Seu nome","your-email":"Seu endereço de email","start-chat":"Falar com o suporte","starting-chat":"Conectando...","hello-greeting":"Olá! Como podemos ajudar você hoje?","i-need-more-help":"preciso de mais ajuda","this-was-helpful":"Isso foi útil",optional:"Opcional"}},rH=Object.keys(UA),iH=e=>rH.includes(e);function oH(e,t){const n=UA[t];return n&&n[e]||""}function Ss(){const{widgetCtx:{config:e}}=ir();return v.useMemo(()=>{const n=iH(e.language)?e.language:"en";return{get:r=>oH(r,n),lang:n}},[e.language])}const aH=10,sH={right:(e,t)=>({initial:{opacity:0,x:-e,...t.initial},animate:{opacity:1,x:0,...t.animate},exit:{opacity:0,x:e,...t.exit}}),left:(e,t)=>({initial:{opacity:0,x:e,...t.initial},animate:{opacity:1,x:0,...t.animate},exit:{opacity:0,x:-e,...t.exit}}),up:(e,t)=>({initial:{opacity:0,y:e,...t.initial},animate:{opacity:1,y:0,...t.animate},exit:{opacity:0,y:-e,...t.exit}}),down:(e,t)=>({initial:{opacity:0,y:-e,...t.initial},animate:{opacity:1,y:0,...t.animate},exit:{opacity:0,y:e,...t.exit}})},st=v.forwardRef(({fadeIn:e="down",distance:t=aH,children:n,snapExit:r=!1,overrides:i={},...o},a)=>{const s=e?sH[e](t,i):{};return r&&s.exit&&typeof s.exit=="object"&&!Array.isArray(s.exit)&&(s.exit.transition={duration:0}),E.jsx(cs.div,{ref:a,...o,...s,children:n})});st.displayName="MotionDiv";function zA(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=zA(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function uH(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=zA(e))&&(r&&(r+=" "),r+=t);return r}const HA=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,VA=uH,lH=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return VA(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,a=Object.keys(i).map(l=>{const c=n==null?void 0:n[l],d=o==null?void 0:o[l];if(c===null)return null;const f=HA(c)||HA(d);return i[l][f]}),s=n&&Object.entries(n).reduce((l,c)=>{let[d,f]=c;return f===void 0||(l[d]=f),l},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,c)=>{let{class:d,className:f,...p}=c;return Object.entries(p).every(m=>{let[y,b]=m;return Array.isArray(b)?b.includes({...o,...s}[y]):{...o,...s}[y]===b})?[...l,d,f]:l},[]);return VA(e,a,u,n==null?void 0:n.class,n==null?void 0:n.className)},$A={x:2,y:2},cH={1:"scale-[1]","1.01":"scale-[1.01]","1.02":"scale-[1.02]","1.1":"scale-[1.1]"},yo=v.memo(v.forwardRef(({children:e,className:t,scale:n="1.02",off:r=!1},i)=>{const[o,a]=v.useState(!1),[s,u]=v.useState({x:0,y:0});if(r||/translate/.test(e.props.className||""))return e;const c=m=>{var O,V;const{clientX:y,clientY:b}=m,g=m.currentTarget.getBoundingClientRect(),x=y-(g.left+g.width/2),w=b-(g.top+g.height/2),T=Math.max(-1,Math.min(1,x/(g.width/2))),_=Math.max(-1,Math.min(1,w/(g.height/2))),C=T*$A.x,R=_*$A.y;u({x:C,y:R}),(V=(O=e.props).onMouseMove)==null||V.call(O,m)},d=()=>{var m,y;a(!0),(y=(m=e.props).onMouseEnter)==null||y.call(m)},f=()=>{var m,y;a(!1),u({x:0,y:0}),(y=(m=e.props).onMouseLeave)==null||y.call(m)},p={"--opencx-wobble-x":o?`${s.x}px`:"0px","--opencx-wobble-y":o?`${s.y}px`:"0px"};return v.cloneElement(e,{ref:i,onMouseMove:c,onMouseEnter:d,onMouseLeave:f,style:{...p,...e.props.style},className:Ne("translate-x-[var(--opencx-wobble-x)]","translate-y-[var(--opencx-wobble-y)]",`hover:${cH[n]}`,t,e.props.className,"transition-all ease-out")})}));yo.displayName="Wobble";const dH=lH(Ne("inline-flex shrink-0 items-center justify-center gap-2","text-sm font-medium whitespace-nowrap","ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","shadow-sm active:shadow-none active:scale-95 hover:active:scale-95","rounded-xl","border","transition"),{variants:{variant:{default:"border-primary bg-primary text-primary-foreground",destructive:"border-destructive bg-destructive text-destructive-foreground",outline:"bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground",ghost:"border-transparent shadow-none hover:bg-accent hover:text-accent-foreground",link:"border-transparent shadow-none text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-8 px-3 text-xs",lg:"min-h-12 px-4",icon:"h-10 w-10",fit:"size-fit p-2",free:"p-2"}},defaultVariants:{variant:"default",size:"default"}}),$n=v.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},o)=>{const a=r?Of:"button";return E.jsx(yo,{ref:o,children:E.jsx(a,{className:Ne(dH({variant:t,size:n,className:e})),...i})})});$n.displayName="Button";const Xf=()=>{const[e,t]=v.useState("ltr");return v.useEffect(()=>{const n=()=>{typeof document>"u"||t(window.getComputedStyle(document.body).direction)};n();const r=new MutationObserver(n);return r.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),r.observe(document.body,{attributes:!0,attributeFilter:["dir"]}),window.addEventListener("languagechange",n),()=>{r.disconnect(),window.removeEventListener("languagechange",n)}},[]),e};function fH(){const{sendMessage:e}=xs(),t=Ss(),n=[t.get("i-need-more-help"),t.get("this-was-helpful")],r=i=>{const o=i.trim();o&&e({content:o})};return E.jsx("div",{className:"flex items-center gap-2 p-2 pb-0 flex-wrap",children:n.map(i=>E.jsx($n,{onClick:()=>r(i),className:"flex-1 rounded-full",size:"sm",children:i},i))})}function pH({file:{status:e,file:t,error:n},onCancel:r}){const[i,o]=v.useState(null);v.useEffect(()=>{if(!t.type.startsWith("image/"))return;const u=new FileReader;return u.onload=()=>o(u.result),u.onerror=()=>console.error("Error reading file"),u.readAsDataURL(t),()=>u.abort()},[t]);const a=()=>{switch(e){case"uploading":return E.jsx(VF,{className:"size-4 animate-spin"});case"error":return E.jsx(MF,{className:"size-4 text-destructive"});default:return null}},s=()=>{const u=t.type.split("/")[0];return u==="image"&&i?E.jsx("img",{src:typeof i=="string"?i:"",className:"object-cover bg-secondary size-full",alt:t.name}):u==="audio"?E.jsx(UF,{}):u==="video"?E.jsx(zF,{}):E.jsx(HF,{})};return E.jsx(Kf,{side:"bottom",content:e==="error"?E.jsxs("span",{className:"text-destructive",children:["Failed to upload: ",n]}):t.name,children:E.jsxs("div",{className:Ne(e==="uploading"&&"opacity-50","group","size-12 border rounded-2xl overflow-hidden relative","flex items-center justify-center shrink-0"),children:[E.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:a()}),E.jsx("button",{type:"button",className:Ne("absolute bg-black/50 inset-0 size-full z-10 opacity-0","flex items-center justify-center","opacity-0 group-hover:opacity-100 transition"),onClick:r,children:E.jsx(D0,{className:"size-4 text-primary-foreground"})}),E.jsx(s,{})]})})}const WA=Ne("rounded-3xl");function hH(){var C;const e=v.useRef(null),{sendMessage:t}=xs(),{sessionState:n}=gl(),r=Ss(),i=Xf(),[o,a]=v.useState(""),{allFiles:s,emptyTheFiles:u,handleCancelUpload:l,appendFiles:c,isUploading:d,successFiles:f}=hU(),p=!!((C=n.session)!=null&&C.isHandedOff),{isAwaitingBotReply:m}=TS(),y=R=>{p&&c(R)},b=!o.trim()&&f.length===0,g=async()=>{if(m||b)return;if(d){const O="please wait for the file(s) to upload";PC.error(O),console.info(O)}const R=o.trim();t({content:R,attachments:f.flatMap(O=>O.fileUrl?[{url:O.fileUrl,type:O.file.type,name:O.file.name,id:O.id,size:O.file.size}]:[])}),a(""),u()},{getRootProps:x,getInputProps:w,open:T}=CC({onDrop:y,noClick:!0,onDropRejected(){if(p){const R="unsupported file type, or the file is too large";PC.error(R),console.error(R)}},maxSize:5*1024*1024,accept:{"text/*":[".txt"],"image/*":[".png",".jpg",".jpeg",".gif"],"application/pdf":[".pdf"]}}),_=R=>{const O=R.clipboardData;O&&O.files.length>0&&y(Array.from(O.files))};return E.jsxs("div",{className:"p-2 relative space-y-1",...x(),children:[E.jsx("input",{...w()}),E.jsxs("div",{className:Ne(WA,"relative space-y-2 border transition-all shadow py-2"),children:[E.jsx("div",{className:"flex items-center gap-1 px-2",children:E.jsx(jn,{mode:"popLayout",children:s.map(R=>E.jsx(st,{snapExit:!0,children:E.jsx(pH,{onCancel:()=>l(R.id),file:R})},R.id))})}),E.jsx("textarea",{onPaste:_,ref:e,id:"chat-input",dir:i,value:o,rows:3,className:Ne(WA,"w-full resize-none px-3","text-sm rtl:placeholder:text-right bg-transparent outline-none"),onChange:R=>a(R.target.value),onKeyDown:async R=>{R.key==="Enter"&&!R.shiftKey&&(R.preventDefault(),g())},placeholder:r.get("write-a-message")}),E.jsxs("div",{dir:i,className:"px-2 flex justify-between rtl:text-right",children:[E.jsx(Kf,{side:"top",align:"start",content:"attach files, (maximum size 5mb)",children:E.jsx($n,{onClick:()=>{p&&T()},size:"fit",variant:"outline",className:Ne("disabled:opacity-0","rounded-full size-8 flex items-center justify-center p-0"),disabled:!p,children:E.jsx(YF,{className:"size-4"})})}),E.jsx(Kf,{content:"send message",side:"top",align:"end",children:E.jsx($n,{size:"fit",onClick:g,disabled:m||d||b,className:"rounded-full size-8 flex items-center justify-center p-0",children:E.jsx(jn,{mode:"wait",children:m||d?E.jsx(st,{snapExit:!0,children:E.jsx(FF,{className:"size-4 animate-spin animate-iteration-infinite"})},"loading"):E.jsx(st,{snapExit:!0,children:E.jsx(P_,{className:"size-4 rtl:-scale-100"})},"send")})})})]})]})]})}function mH(){const{widgetCtx:e}=ir(),t=Ss();return E.jsx("div",{className:"p-2",children:E.jsxs("div",{className:"p-2 bg-background rounded-3xl border shadow-2xl space-y-2",children:[E.jsxs("div",{className:"flex items-center gap-1",children:[E.jsx(OF,{className:"size-4 text-emerald-500"}),E.jsx("h2",{className:"text-sm font-medium",dir:"auto",children:t.get("session-closed-lead")})]}),E.jsx("div",{children:E.jsx($n,{onClick:e.resetChat,className:"rounded-2xl w-full",children:t.get("new-conversation")})})]})})}function gH(){var a,s,u;const{sessionState:e}=gl(),{messagesState:t,sendMessage:n}=xs(),i=(s=(a=Pf().data)==null?void 0:a.data)==null?void 0:s.initialQuestions,o=t.messages.length===0;return E.jsx("footer",{children:E.jsx("div",{children:E.jsx(jn,{mode:"wait",children:e.session&&!((u=e.session)!=null&&u.isOpened)?E.jsx(st,{className:"overflow-hidden",overrides:{initial:{height:0},animate:{height:"auto"},exit:{height:0}},children:E.jsx(mH,{})},"session-closed"):E.jsxs(st,{className:"overflow-hidden",overrides:{initial:{height:0},animate:{height:"auto"},exit:{height:0}},children:[t.lastAIResMightSolveUserIssue&&E.jsx(fH,{}),o&&i&&E.jsx("div",{className:"flex items-center flex-row justify-end gap-2 flex-wrap px-2",children:i==null?void 0:i.map(l=>E.jsx($n,{dir:"auto",variant:"outline",size:"sm",onClick:()=>{n({content:l})},children:l},l))}),E.jsx(hH,{})]},"chat-input")})})})}function Se(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function YA(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Qf(...e){return t=>{let n=!1;const r=e.map(i=>{const o=YA(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():YA(e[i],null)}}}}function It(...e){return v.useCallback(Qf(...e),e)}var As=v.forwardRef((e,t)=>{const{children:n,...r}=e,i=v.Children.toArray(n),o=i.find(vH);if(o){const a=o.props.children,s=i.map(u=>u===o?v.Children.count(a)>1?v.Children.only(null):v.isValidElement(a)?a.props.children:null:u);return E.jsx(Zy,{...r,ref:t,children:v.isValidElement(a)?v.cloneElement(a,void 0,s):null})}return E.jsx(Zy,{...r,ref:t,children:n})});As.displayName="Slot";var Zy=v.forwardRef((e,t)=>{const{children:n,...r}=e;if(v.isValidElement(n)){const i=wH(n);return v.cloneElement(n,{...xH(r,n.props),ref:t?Qf(t,i):i})}return v.Children.count(n)>1?v.Children.only(null):null});Zy.displayName="SlotClone";var yH=({children:e})=>E.jsx(E.Fragment,{children:e});function vH(e){return v.isValidElement(e)&&e.type===yH}function xH(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...s)=>{o(...s),i(...s)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function wH(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var bH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Et=bH.reduce((e,t)=>{const n=v.forwardRef((r,i)=>{const{asChild:o,...a}=r,s=o?As:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(s,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Jy(e,t){e&&Zo.flushSync(()=>e.dispatchEvent(t))}function qA(e){const t=e+"CollectionProvider",[n,r]=bi(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:m,children:y}=p,b=ln.useRef(null),g=ln.useRef(new Map).current;return E.jsx(i,{scope:m,itemMap:g,collectionRef:b,children:y})};a.displayName=t;const s=e+"CollectionSlot",u=ln.forwardRef((p,m)=>{const{scope:y,children:b}=p,g=o(s,y),x=It(m,g.collectionRef);return E.jsx(As,{ref:x,children:b})});u.displayName=s;const l=e+"CollectionItemSlot",c="data-radix-collection-item",d=ln.forwardRef((p,m)=>{const{scope:y,children:b,...g}=p,x=ln.useRef(null),w=It(m,x),T=o(l,y);return ln.useEffect(()=>(T.itemMap.set(x,{ref:x,...g}),()=>void T.itemMap.delete(x))),E.jsx(As,{[c]:"",ref:w,children:b})});d.displayName=l;function f(p){const m=o(e+"CollectionConsumer",p);return ln.useCallback(()=>{const b=m.collectionRef.current;if(!b)return[];const g=Array.from(b.querySelectorAll(`[${c}]`));return Array.from(m.itemMap.values()).sort((T,_)=>g.indexOf(T.ref.current)-g.indexOf(_.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:a,Slot:u,ItemSlot:d},f,r]}var EH=v.createContext(void 0);function GA(e){const t=v.useContext(EH);return e||t||"ltr"}var TH="DismissableLayer",e1="dismissableLayer.update",_H="dismissableLayer.pointerDownOutside",CH="dismissableLayer.focusOutside",KA,XA=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),QA=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:s,...u}=e,l=v.useContext(XA),[c,d]=v.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=v.useState({}),m=It(t,R=>d(R)),y=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),g=y.indexOf(b),x=c?y.indexOf(c):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,T=x>=g,_=kH(R=>{const O=R.target,V=[...l.branches].some(P=>P.contains(O));!T||V||(i==null||i(R),a==null||a(R),R.defaultPrevented||s==null||s())},f),C=RH(R=>{const O=R.target;[...l.branches].some(P=>P.contains(O))||(o==null||o(R),a==null||a(R),R.defaultPrevented||s==null||s())},f);return Ny(R=>{x===l.layers.size-1&&(r==null||r(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},f),v.useEffect(()=>{if(c)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(KA=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),ZA(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=KA)}},[c,f,n,l]),v.useEffect(()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),ZA())},[c,l]),v.useEffect(()=>{const R=()=>p({});return document.addEventListener(e1,R),()=>document.removeEventListener(e1,R)},[]),E.jsx(Et.div,{...u,ref:m,style:{pointerEvents:w?T?"auto":"none":void 0,...e.style},onFocusCapture:Se(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Se(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Se(e.onPointerDownCapture,_.onPointerDownCapture)})});QA.displayName=TH;var SH="DismissableLayerBranch",AH=v.forwardRef((e,t)=>{const n=v.useContext(XA),r=v.useRef(null),i=It(t,r);return v.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),E.jsx(Et.div,{...e,ref:i})});AH.displayName=SH;function kH(e,t=globalThis==null?void 0:globalThis.document){const n=Pt(e),r=v.useRef(!1),i=v.useRef(()=>{});return v.useEffect(()=>{const o=s=>{if(s.target&&!r.current){let u=function(){JA(_H,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}else t.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function RH(e,t=globalThis==null?void 0:globalThis.document){const n=Pt(e),r=v.useRef(!1);return v.useEffect(()=>{const i=o=>{o.target&&!r.current&&JA(CH,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ZA(){const e=new CustomEvent(e1);document.dispatchEvent(e)}function JA(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Jy(i,o):i.dispatchEvent(o)}var t1=0;function n1(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ek()),document.body.insertAdjacentElement("beforeend",e[1]??ek()),t1++,()=>{t1===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),t1--}},[])}function ek(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var r1="focusScope.autoFocusOnMount",i1="focusScope.autoFocusOnUnmount",tk={bubbles:!1,cancelable:!0},NH="FocusScope",o1=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[s,u]=v.useState(null),l=Pt(i),c=Pt(o),d=v.useRef(null),f=It(t,y=>u(y)),p=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let y=function(w){if(p.paused||!s)return;const T=w.target;s.contains(T)?d.current=T:vo(d.current,{select:!0})},b=function(w){if(p.paused||!s)return;const T=w.relatedTarget;T!==null&&(s.contains(T)||vo(d.current,{select:!0}))},g=function(w){if(document.activeElement===document.body)for(const _ of w)_.removedNodes.length>0&&vo(s)};document.addEventListener("focusin",y),document.addEventListener("focusout",b);const x=new MutationObserver(g);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",b),x.disconnect()}}},[r,s,p.paused]),v.useEffect(()=>{if(s){ik.add(p);const y=document.activeElement;if(!s.contains(y)){const g=new CustomEvent(r1,tk);s.addEventListener(r1,l),s.dispatchEvent(g),g.defaultPrevented||(PH(MH(nk(s)),{select:!0}),document.activeElement===y&&vo(s))}return()=>{s.removeEventListener(r1,l),setTimeout(()=>{const g=new CustomEvent(i1,tk);s.addEventListener(i1,c),s.dispatchEvent(g),g.defaultPrevented||vo(y??document.body,{select:!0}),s.removeEventListener(i1,c),ik.remove(p)},0)}}},[s,l,c,p]);const m=v.useCallback(y=>{if(!n&&!r||p.paused)return;const b=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,g=document.activeElement;if(b&&g){const x=y.currentTarget,[w,T]=IH(x);w&&T?!y.shiftKey&&g===T?(y.preventDefault(),n&&vo(w,{select:!0})):y.shiftKey&&g===w&&(y.preventDefault(),n&&vo(T,{select:!0})):g===x&&y.preventDefault()}},[n,r,p.paused]);return E.jsx(Et.div,{tabIndex:-1,...a,ref:f,onKeyDown:m})});o1.displayName=NH;function PH(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(vo(r,{select:t}),document.activeElement!==n)return}function IH(e){const t=nk(e),n=rk(t,e),r=rk(t.reverse(),e);return[n,r]}function nk(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function rk(e,t){for(const n of e)if(!OH(n,{upTo:t}))return n}function OH(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function DH(e){return e instanceof HTMLInputElement&&"select"in e}function vo(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&DH(e)&&t&&e.select()}}var ik=LH();function LH(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ok(e,t),e.unshift(t)},remove(t){var n;e=ok(e,t),(n=e[0])==null||n.resume()}}}function ok(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function MH(e){return e.filter(t=>t.tagName!=="A")}var FH="Arrow",ak=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return E.jsx(Et.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:E.jsx("polygon",{points:"0,0 30,0 15,10"})})});ak.displayName=FH;var BH=ak,a1="Popper",[sk,uk]=bi(a1),[jH,lk]=sk(a1),ck=e=>{const{__scopePopper:t,children:n}=e,[r,i]=v.useState(null);return E.jsx(jH,{scope:t,anchor:r,onAnchorChange:i,children:n})};ck.displayName=a1;var dk="PopperAnchor",fk=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=lk(dk,n),a=v.useRef(null),s=It(t,a);return v.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:E.jsx(Et.div,{...i,ref:s})});fk.displayName=dk;var s1="PopperContent",[UH,zH]=sk(s1),pk=v.forwardRef((e,t)=>{var $e,Ve,We,Ge,_t,Te;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:m,...y}=e,b=lk(s1,n),[g,x]=v.useState(null),w=It(t,be=>x(be)),[T,_]=v.useState(null),C=yA(T),R=(C==null?void 0:C.width)??0,O=(C==null?void 0:C.height)??0,V=r+(o!=="center"?"-"+o:""),P=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},$=Array.isArray(l)?l:[l],z=$.length>0,Q={padding:P,boundary:$.filter(VH),altBoundary:z},{refs:Y,floatingStyles:re,placement:ie,isPositioned:te,middlewareData:F}=uA({strategy:"fixed",placement:V,whileElementsMounted:(...be)=>iA(...be,{animationFrame:p==="always"}),elements:{reference:b.anchor},middleware:[lA({mainAxis:i+O,alignmentAxis:a}),u&&cA({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?dA():void 0,...Q}),u&&fA({...Q}),pA({...Q,apply:({elements:be,rects:Ye,availableWidth:ze,availableHeight:yt})=>{const{width:vt,height:Ke}=Ye.reference,Fe=be.floating.style;Fe.setProperty("--radix-popper-available-width",`${ze}px`),Fe.setProperty("--radix-popper-available-height",`${yt}px`),Fe.setProperty("--radix-popper-anchor-width",`${vt}px`),Fe.setProperty("--radix-popper-anchor-height",`${Ke}px`)}}),T&&mA({element:T,padding:s}),$H({arrowWidth:R,arrowHeight:O}),f&&hA({strategy:"referenceHidden",...Q})]}),[B,A]=gk(ie),oe=Pt(m);or(()=>{te&&(oe==null||oe())},[te,oe]);const he=($e=F.arrow)==null?void 0:$e.x,D=(Ve=F.arrow)==null?void 0:Ve.y,Oe=((We=F.arrow)==null?void 0:We.centerOffset)!==0,[ge,xe]=v.useState();return or(()=>{g&&xe(window.getComputedStyle(g).zIndex)},[g]),E.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...re,transform:te?re.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[(Ge=F.transformOrigin)==null?void 0:Ge.x,(_t=F.transformOrigin)==null?void 0:_t.y].join(" "),...((Te=F.hide)==null?void 0:Te.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:E.jsx(UH,{scope:n,placedSide:B,onArrowChange:_,arrowX:he,arrowY:D,shouldHideArrow:Oe,children:E.jsx(Et.div,{"data-side":B,"data-align":A,...y,ref:w,style:{...y.style,animation:te?void 0:"none"}})})})});pk.displayName=s1;var hk="PopperArrow",HH={top:"bottom",right:"left",bottom:"top",left:"right"},mk=v.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=zH(hk,r),a=HH[o.placedSide];return E.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:E.jsx(BH,{...i,ref:n,style:{...i.style,display:"block"}})})});mk.displayName=hk;function VH(e){return e!==null}var $H=e=>({name:"transformOrigin",options:e,fn(t){var b,g,x;const{placement:n,rects:r,middlewareData:i}=t,a=((b=i.arrow)==null?void 0:b.centerOffset)!==0,s=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[l,c]=gk(n),d={start:"0%",center:"50%",end:"100%"}[c],f=(((g=i.arrow)==null?void 0:g.x)??0)+s/2,p=(((x=i.arrow)==null?void 0:x.y)??0)+u/2;let m="",y="";return l==="bottom"?(m=a?d:`${f}px`,y=`${-u}px`):l==="top"?(m=a?d:`${f}px`,y=`${r.floating.height+u}px`):l==="right"?(m=`${-u}px`,y=a?d:`${p}px`):l==="left"&&(m=`${r.floating.width+u}px`,y=a?d:`${p}px`),{data:{x:m,y}}}});function gk(e){const[t,n="center"]=e.split("-");return[t,n]}var WH=ck,YH=fk,qH=pk,GH=mk;function KH(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var ks=e=>{const{present:t,children:n}=e,r=XH(t),i=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),o=It(r.ref,QH(i));return typeof n=="function"||r.isPresent?v.cloneElement(i,{ref:o}):null};ks.displayName="Presence";function XH(e){const[t,n]=v.useState(),r=v.useRef({}),i=v.useRef(e),o=v.useRef("none"),a=e?"mounted":"unmounted",[s,u]=KH(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const l=Zf(r.current);o.current=s==="mounted"?l:"none"},[s]),or(()=>{const l=r.current,c=i.current;if(c!==e){const f=o.current,p=Zf(l);e?u("MOUNT"):p==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(c&&f!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),or(()=>{if(t){let l;const c=t.ownerDocument.defaultView??window,d=p=>{const y=Zf(r.current).includes(p.animationName);if(p.target===t&&y&&(u("ANIMATION_END"),!i.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",l=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=p=>{p.target===t&&(o.current=Zf(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(l),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function Zf(e){return(e==null?void 0:e.animationName)||"none"}function QH(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var u1="rovingFocusGroup.onEntryFocus",ZH={bubbles:!1,cancelable:!0},Jf="RovingFocusGroup",[l1,yk,JH]=qA(Jf),[eV,vk]=bi(Jf,[JH]),[tV,nV]=eV(Jf),xk=v.forwardRef((e,t)=>E.jsx(l1.Provider,{scope:e.__scopeRovingFocusGroup,children:E.jsx(l1.Slot,{scope:e.__scopeRovingFocusGroup,children:E.jsx(rV,{...e,ref:t})})}));xk.displayName=Jf;var rV=v.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:c=!1,...d}=e,f=v.useRef(null),p=It(t,f),m=GA(o),[y=null,b]=_l({prop:a,defaultProp:s,onChange:u}),[g,x]=v.useState(!1),w=Pt(l),T=yk(n),_=v.useRef(!1),[C,R]=v.useState(0);return v.useEffect(()=>{const O=f.current;if(O)return O.addEventListener(u1,w),()=>O.removeEventListener(u1,w)},[w]),E.jsx(tV,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:y,onItemFocus:v.useCallback(O=>b(O),[b]),onItemShiftTab:v.useCallback(()=>x(!0),[]),onFocusableItemAdd:v.useCallback(()=>R(O=>O+1),[]),onFocusableItemRemove:v.useCallback(()=>R(O=>O-1),[]),children:E.jsx(Et.div,{tabIndex:g||C===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:Se(e.onMouseDown,()=>{_.current=!0}),onFocus:Se(e.onFocus,O=>{const V=!_.current;if(O.target===O.currentTarget&&V&&!g){const P=new CustomEvent(u1,ZH);if(O.currentTarget.dispatchEvent(P),!P.defaultPrevented){const $=T().filter(ie=>ie.focusable),z=$.find(ie=>ie.active),Q=$.find(ie=>ie.id===y),re=[z,Q,...$].filter(Boolean).map(ie=>ie.ref.current);Ek(re,c)}}_.current=!1}),onBlur:Se(e.onBlur,()=>x(!1))})})}),wk="RovingFocusGroupItem",bk=v.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:o,...a}=e,s=fo(),u=o||s,l=nV(wk,n),c=l.currentTabStopId===u,d=yk(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=l;return v.useEffect(()=>{if(r)return f(),()=>p()},[r,f,p]),E.jsx(l1.ItemSlot,{scope:n,id:u,focusable:r,active:i,children:E.jsx(Et.span,{tabIndex:c?0:-1,"data-orientation":l.orientation,...a,ref:t,onMouseDown:Se(e.onMouseDown,m=>{r?l.onItemFocus(u):m.preventDefault()}),onFocus:Se(e.onFocus,()=>l.onItemFocus(u)),onKeyDown:Se(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){l.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const y=aV(m,l.orientation,l.dir);if(y!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let g=d().filter(x=>x.focusable).map(x=>x.ref.current);if(y==="last")g.reverse();else if(y==="prev"||y==="next"){y==="prev"&&g.reverse();const x=g.indexOf(m.currentTarget);g=l.loop?sV(g,x+1):g.slice(x+1)}setTimeout(()=>Ek(g))}})})})});bk.displayName=wk;var iV={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function oV(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function aV(e,t,n){const r=oV(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return iV[r]}function Ek(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function sV(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var uV=xk,lV=bk,cV=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Rs=new WeakMap,ep=new WeakMap,tp={},c1=0,Tk=function(e){return e&&(e.host||Tk(e.parentNode))},dV=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Tk(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},fV=function(e,t,n,r){var i=dV(t,Array.isArray(e)?e:[e]);tp[n]||(tp[n]=new WeakMap);var o=tp[n],a=[],s=new Set,u=new Set(i),l=function(d){!d||s.has(d)||(s.add(d),l(d.parentNode))};i.forEach(l);var c=function(d){!d||u.has(d)||Array.prototype.forEach.call(d.children,function(f){if(s.has(f))c(f);else try{var p=f.getAttribute(r),m=p!==null&&p!=="false",y=(Rs.get(f)||0)+1,b=(o.get(f)||0)+1;Rs.set(f,y),o.set(f,b),a.push(f),y===1&&m&&ep.set(f,!0),b===1&&f.setAttribute(n,"true"),m||f.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",f,g)}})};return c(t),s.clear(),c1++,function(){a.forEach(function(d){var f=Rs.get(d)-1,p=o.get(d)-1;Rs.set(d,f),o.set(d,p),f||(ep.has(d)||d.removeAttribute(r),ep.delete(d)),p||d.removeAttribute(n)}),c1--,c1||(Rs=new WeakMap,Rs=new WeakMap,ep=new WeakMap,tp={})}},d1=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=cV(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),fV(r,i,n,"aria-hidden")):function(){return null}},np="right-scroll-bar-position",rp="width-before-scroll-bar",pV="with-scroll-bars-hidden",hV="--removed-body-scroll-bar-size";function f1(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function mV(e,t){var n=v.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var gV=typeof window<"u"?v.useLayoutEffect:v.useEffect,_k=new WeakMap;function yV(e,t){var n=mV(null,function(r){return e.forEach(function(i){return f1(i,r)})});return gV(function(){var r=_k.get(n);if(r){var i=new Set(r),o=new Set(e),a=n.current;i.forEach(function(s){o.has(s)||f1(s,null)}),o.forEach(function(s){i.has(s)||f1(s,a)})}_k.set(n,e)},[e]),n}function vV(e){return e}function xV(e,t){t===void 0&&(t=vV);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var a=t(o,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(o){for(r=!0;n.length;){var a=n;n=[],a.forEach(o)}n={push:function(s){return o(s)},filter:function(){return n}}},assignMedium:function(o){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(o),a=n}var u=function(){var c=a;a=[],c.forEach(o)},l=function(){return Promise.resolve().then(u)};l(),n={push:function(c){a.push(c),l()},filter:function(c){return a=a.filter(c),n}}}};return i}function Ck(e){e===void 0&&(e={});var t=xV(null);return t.options=Mt({async:!0,ssr:!1},e),t}var Sk=function(e){var t=e.sideCar,n=ul(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,Mt({},n))};Sk.isSideCarExport=!0;function Ak(e,t){return e.useMedium(t),Sk}var kk=Ck(),p1=function(){},ip=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:p1,onWheelCapture:p1,onTouchMoveCapture:p1}),i=r[0],o=r[1],a=e.forwardProps,s=e.children,u=e.className,l=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,m=e.inert,y=e.allowPinchZoom,b=e.as,g=b===void 0?"div":b,x=e.gapMode,w=ul(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=f,_=yV([n,t]),C=Mt(Mt({},w),i);return v.createElement(v.Fragment,null,c&&v.createElement(T,{sideCar:kk,removeScrollBar:l,shards:d,noIsolation:p,inert:m,setCallbacks:o,allowPinchZoom:!!y,lockRef:n,gapMode:x}),a?v.cloneElement(v.Children.only(s),Mt(Mt({},C),{ref:_})):v.createElement(g,Mt({},C,{className:u,ref:_}),s))});ip.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ip.classNames={fullWidth:rp,zeroRight:np};var Rk=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function wV(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Rk();return t&&e.setAttribute("nonce",t),e}function bV(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function EV(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var TV=function(){var e=0,t=null;return{add:function(n){e==0&&(t=wV())&&(bV(t,n),EV(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},_V=function(){var e=TV();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},CV=function(){var e=_V(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},SV={left:0,top:0,right:0,gap:0},h1=function(e){return parseInt(e||"",10)||0},AV=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[h1(n),h1(r),h1(i)]},kV=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return SV;var t=AV(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},RV=CV(),Ns="data-scroll-locked",NV=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
349
+ */var ws=v;function C7(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var S7=typeof Object.is=="function"?Object.is:C7,A7=ws.useState,k7=ws.useEffect,R7=ws.useLayoutEffect,N7=ws.useDebugValue;function P7(e,t){var n=t(),r=A7({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return R7(function(){i.value=n,i.getSnapshot=t,hy(i)&&o({inst:i})},[e,n,t]),k7(function(){return hy(i)&&o({inst:i}),e(function(){hy(i)&&o({inst:i})})},[e]),N7(n),n}function hy(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!S7(e,n)}catch{return!0}}function I7(e,t){return t()}var O7=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?I7:P7;CS.useSyncExternalStore=ws.useSyncExternalStore!==void 0?ws.useSyncExternalStore:O7,_S.exports=CS;var D7=_S.exports;const uo=()=>{},_n=uo(),my=Object,He=e=>e===_n,zr=e=>typeof e=="function",lo=(e,t)=>({...e,...t}),L7=e=>zr(e.then),kf=new WeakMap;let M7=0;const yl=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let i,o;if(my(e)===e&&!r&&n!=RegExp){if(i=kf.get(e),i)return i;if(i=++M7+"~",kf.set(e,i),n==Array){for(i="@",o=0;o<e.length;o++)i+=yl(e[o])+",";kf.set(e,i)}if(n==my){i="#";const a=my.keys(e).sort();for(;!He(o=a.pop());)He(e[o])||(i+=o+":"+yl(e[o])+",");kf.set(e,i)}}else i=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return i},wi=new WeakMap,gy={},Rf={},yy="undefined",Nf=typeof window!=yy,vy=typeof document!=yy,F7=()=>Nf&&typeof window.requestAnimationFrame!=yy,SS=(e,t)=>{const n=wi.get(e);return[()=>!He(t)&&e.get(t)||gy,r=>{if(!He(t)){const i=e.get(t);t in Rf||(Rf[t]=i),n[5](t,lo(i,r),i||gy)}},n[6],()=>!He(t)&&t in Rf?Rf[t]:!He(t)&&e.get(t)||gy]};let xy=!0;const B7=()=>xy,[wy,by]=Nf&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[uo,uo],j7=()=>{const e=vy&&document.visibilityState;return He(e)||e!=="hidden"},U7=e=>(vy&&document.addEventListener("visibilitychange",e),wy("focus",e),()=>{vy&&document.removeEventListener("visibilitychange",e),by("focus",e)}),z7=e=>{const t=()=>{xy=!0,e()},n=()=>{xy=!1};return wy("online",t),wy("offline",n),()=>{by("online",t),by("offline",n)}},H7={isOnline:B7,isVisible:j7},V7={initFocus:U7,initReconnect:z7},AS=!ln.useId,vl=!Nf||"Deno"in window,$7=e=>F7()?window.requestAnimationFrame(e):setTimeout(e,1),Ey=vl?v.useEffect:v.useLayoutEffect,Ty=typeof navigator<"u"&&navigator.connection,kS=!vl&&Ty&&(["slow-2g","2g"].includes(Ty.effectiveType)||Ty.saveData),_y=e=>{if(zr(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?yl(e):"",[e,t]};let W7=0;const Cy=()=>++W7,RS=0,NS=1,PS=2;var xl={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:RS,MUTATE_EVENT:PS,RECONNECT_EVENT:NS};async function IS(...e){const[t,n,r,i]=e,o=lo({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let a=o.populateCache;const s=o.rollbackOnError;let u=o.optimisticData;const l=f=>typeof s=="function"?s(f):s!==!1,c=o.throwOnError;if(zr(n)){const f=n,p=[],m=t.keys();for(const y of m)!/^\$(inf|sub)\$/.test(y)&&f(t.get(y)._k)&&p.push(y);return Promise.all(p.map(d))}return d(n);async function d(f){const[p]=_y(f);if(!p)return;const[m,y]=SS(t,p),[b,g,x,w]=wi.get(t),T=()=>{const Q=b[p];return(zr(o.revalidate)?o.revalidate(m().data,f):o.revalidate!==!1)&&(delete x[p],delete w[p],Q&&Q[0])?Q[0](PS).then(()=>m().data):m().data};if(e.length<3)return T();let _=r,C;const R=Cy();g[p]=[R,0];const O=!He(u),V=m(),P=V.data,$=V._c,z=He($)?P:$;if(O&&(u=zr(u)?u(z,P):u,y({data:u,_c:z})),zr(_))try{_=_(z)}catch(Q){C=Q}if(_&&L7(_))if(_=await _.catch(Q=>{C=Q}),R!==g[p][0]){if(C)throw C;return _}else C&&O&&l(C)&&(a=!0,y({data:z,_c:_n}));if(a&&!C)if(zr(a)){const Q=a(_,z);y({data:Q,error:_n,_c:_n})}else y({data:_,error:_n,_c:_n});if(g[p][1]=Cy(),Promise.resolve(T()).then(()=>{y({_c:_n})}),C){if(c)throw C;return}return _}}const OS=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Y7=(e,t)=>{if(!wi.has(e)){const n=lo(V7,t),r={},i=IS.bind(_n,e);let o=uo;const a={},s=(c,d)=>{const f=a[c]||[];return a[c]=f,f.push(d),()=>f.splice(f.indexOf(d),1)},u=(c,d,f)=>{e.set(c,d);const p=a[c];if(p)for(const m of p)m(d,f)},l=()=>{if(!wi.has(e)&&(wi.set(e,[r,{},{},{},i,u,s]),!vl)){const c=n.initFocus(setTimeout.bind(_n,OS.bind(_n,r,RS))),d=n.initReconnect(setTimeout.bind(_n,OS.bind(_n,r,NS)));o=()=>{c&&c(),d&&d(),wi.delete(e)}}};return l(),[e,i,l,o]}return[e,wi.get(e)[4]]},q7=(e,t,n,r,i)=>{const o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!He(o)&&a>o||setTimeout(r,s,i)},G7=(e,t)=>yl(e)==yl(t),[DS,K7]=Y7(new Map),X7=lo({onLoadingSlow:uo,onSuccess:uo,onError:uo,onErrorRetry:q7,onDiscarded:uo,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:kS?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:kS?5e3:3e3,compare:G7,isPaused:()=>!1,cache:DS,mutate:K7,fallback:{}},H7),Q7=(e,t)=>{const n=lo(e,t);if(t){const{use:r,fallback:i}=e,{use:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=lo(i,a))}return n},Z7=v.createContext({}),J7="$inf$",LS=Nf&&window.__SWR_DEVTOOLS_USE__,eU=LS?window.__SWR_DEVTOOLS_USE__:[],tU=()=>{LS&&(window.__SWR_DEVTOOLS_REACT__=ln)},nU=e=>zr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],rU=()=>lo(X7,v.useContext(Z7)),iU=e=>(t,n,r)=>e(t,n&&((...o)=>{const[a]=_y(t),[,,,s]=wi.get(DS);if(a.startsWith(J7))return n(...o);const u=s[a];return He(u)?n(...o):(delete s[a],u)}),r),oU=eU.concat(iU),aU=e=>function(...n){const r=rU(),[i,o,a]=nU(n),s=Q7(r,a);let u=e;const{use:l}=s,c=(l||[]).concat(oU);for(let d=c.length;d--;)u=c[d](u);return u(i,o||s.fetcher||null,s)},sU=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i>=0&&(r[i]=r[r.length-1],r.pop())}};tU();const MS=ln.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Sy={dedupe:!0},uU=aU((e,t,n)=>{const{cache:r,compare:i,suspense:o,fallbackData:a,revalidateOnMount:s,revalidateIfStale:u,refreshInterval:l,refreshWhenHidden:c,refreshWhenOffline:d,keepPreviousData:f}=n,[p,m,y,b]=wi.get(r),[g,x]=_y(e),w=v.useRef(!1),T=v.useRef(!1),_=v.useRef(g),C=v.useRef(t),R=v.useRef(n),O=()=>R.current,V=()=>O().isVisible()&&O().isOnline(),[P,$,z,Q]=SS(r,g),Y=v.useRef({}).current,re=He(a)?n.fallback[g]:a,ie=(Te,be)=>{for(const Ye in Y){const ze=Ye;if(ze==="data"){if(!i(Te[ze],be[ze])&&(!He(Te[ze])||!i(ge,be[ze])))return!1}else if(be[ze]!==Te[ze])return!1}return!0},te=v.useMemo(()=>{const Te=!g||!t?!1:He(s)?O().isPaused()||o?!1:He(u)?!0:u:s,be=Fe=>{const Ot=lo(Fe);return delete Ot._k,Te?{isValidating:!0,isLoading:!0,...Ot}:Ot},Ye=P(),ze=Q(),yt=be(Ye),vt=Ye===ze?yt:be(ze);let Ke=yt;return[()=>{const Fe=be(P());return ie(Fe,Ke)?(Ke.data=Fe.data,Ke.isLoading=Fe.isLoading,Ke.isValidating=Fe.isValidating,Ke.error=Fe.error,Ke):(Ke=Fe,Fe)},()=>vt]},[r,g]),F=D7.useSyncExternalStore(v.useCallback(Te=>z(g,(be,Ye)=>{ie(Ye,be)||Te()}),[r,g]),te[0],te[1]),B=!w.current,A=p[g]&&p[g].length>0,oe=F.data,he=He(oe)?re:oe,D=F.error,Oe=v.useRef(he),ge=f?He(oe)?Oe.current:oe:he,xe=A&&!He(D)?!1:B&&!He(s)?s:O().isPaused()?!1:o?He(he)?!1:u:He(he)||u,$e=!!(g&&t&&B&&xe),Ve=He(F.isValidating)?$e:F.isValidating,We=He(F.isLoading)?$e:F.isLoading,Ge=v.useCallback(async Te=>{const be=C.current;if(!g||!be||T.current||O().isPaused())return!1;let Ye,ze,yt=!0;const vt=Te||{},Ke=!y[g]||!vt.dedupe,Fe=()=>AS?!T.current&&g===_.current&&w.current:g===_.current,Ot={isValidating:!1,isLoading:!1},Po=()=>{$(Ot)},Io=()=>{const ne=y[g];ne&&ne[1]===ze&&delete y[g]},Oo={isValidating:!0};He(P().data)&&(Oo.isLoading=!0);try{if(Ke&&($(Oo),n.loadingTimeout&&He(P().data)&&setTimeout(()=>{yt&&Fe()&&O().onLoadingSlow(g,n)},n.loadingTimeout),y[g]=[be(x),Cy()]),[Ye,ze]=y[g],Ye=await Ye,Ke&&setTimeout(Io,n.dedupingInterval),!y[g]||y[g][1]!==ze)return Ke&&Fe()&&O().onDiscarded(g),!1;Ot.error=_n;const ne=m[g];if(!He(ne)&&(ze<=ne[0]||ze<=ne[1]||ne[1]===0))return Po(),Ke&&Fe()&&O().onDiscarded(g),!1;const de=P().data;Ot.data=i(de,Ye)?de:Ye,Ke&&Fe()&&O().onSuccess(Ye,g,n)}catch(ne){Io();const de=O(),{shouldRetryOnError:j}=de;de.isPaused()||(Ot.error=ne,Ke&&Fe()&&(de.onError(ne,g,de),(j===!0||zr(j)&&j(ne))&&(!O().revalidateOnFocus||!O().revalidateOnReconnect||V())&&de.onErrorRetry(ne,g,de,q=>{const ce=p[g];ce&&ce[0]&&ce[0](xl.ERROR_REVALIDATE_EVENT,q)},{retryCount:(vt.retryCount||0)+1,dedupe:!0})))}return yt=!1,Po(),!0},[g,r]),_t=v.useCallback((...Te)=>IS(r,_.current,...Te),[]);if(Ey(()=>{C.current=t,R.current=n,He(oe)||(Oe.current=oe)}),Ey(()=>{if(!g)return;const Te=Ge.bind(_n,Sy);let be=0;const ze=sU(g,p,(yt,vt={})=>{if(yt==xl.FOCUS_EVENT){const Ke=Date.now();O().revalidateOnFocus&&Ke>be&&V()&&(be=Ke+O().focusThrottleInterval,Te())}else if(yt==xl.RECONNECT_EVENT)O().revalidateOnReconnect&&V()&&Te();else{if(yt==xl.MUTATE_EVENT)return Ge();if(yt==xl.ERROR_REVALIDATE_EVENT)return Ge(vt)}});return T.current=!1,_.current=g,w.current=!0,$({_k:x}),xe&&(He(he)||vl?Te():$7(Te)),()=>{T.current=!0,ze()}},[g]),Ey(()=>{let Te;function be(){const ze=zr(l)?l(P().data):l;ze&&Te!==-1&&(Te=setTimeout(Ye,ze))}function Ye(){!P().error&&(c||O().isVisible())&&(d||O().isOnline())?Ge(Sy).then(be):be()}return be(),()=>{Te&&(clearTimeout(Te),Te=-1)}},[l,c,d,g]),v.useDebugValue(ge),o&&He(he)&&g){if(!AS&&vl)throw new Error("Fallback data is required when using suspense in SSR.");C.current=t,R.current=n,T.current=!1;const Te=b[g];if(!He(Te)){const be=_t(Te);MS(be)}if(He(D)){const be=Ge(Sy);He(ge)||(be.status="fulfilled",be.value=!0),MS(be)}else throw D}return{mutate:_t,get data(){return Y.data=!0,ge},get error(){return Y.error=!0,D},get isValidating(){return Y.isValidating=!0,Ve},get isLoading(){return Y.isLoading=!0,We}}});function Pf(){const{widgetCtx:e}=ir();return uU([e.config.token],e.api.widgetPrelude,{revalidateOnFocus:!1})}function wl(){const{widgetCtx:e}=ir();return{routerState:ml(e.routerCtx.state),toSessionsScreen:e.routerCtx.toSessionsScreen,toChatScreen:e.routerCtx.toChatScreen}}var FS={};const lU=NO(e9);var If={},BS;function cU(){if(BS)return If;BS=1,Object.defineProperty(If,"__esModule",{value:!0});var e=v;function t(){var n=e.useRef(!1),r=e.useCallback(function(){return n.current},[]);return e.useEffect(function(){return n.current=!0,function(){n.current=!1}},[]),r}return If.default=t,If}Object.defineProperty(FS,"__esModule",{value:!0});var Ay=lU,ky=v,dU=Ay.__importDefault(cU());function fU(e,t,n){t===void 0&&(t=[]),n===void 0&&(n={loading:!1});var r=ky.useRef(0),i=dU.default(),o=ky.useState(n),a=o[0],s=o[1],u=ky.useCallback(function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];var d=++r.current;return a.loading||s(function(f){return Ay.__assign(Ay.__assign({},f),{loading:!0})}),e.apply(void 0,l).then(function(f){return i()&&d===r.current&&s({value:f,loading:!1}),f},function(f){return i()&&d===r.current&&s({error:f,loading:!1}),f})},t);return[a,u]}var pU=FS.default=fU;const co=new Map;function hU(){const[e,t]=v.useState([]),{widgetCtx:{api:n}}=ir();function r(c){const d=c.map(f=>({file:f,id:dy(),status:"pending",progress:0}));t(f=>[...f,...d]),d.forEach(a)}function i(c,d){t(f=>f.map(p=>p.id===c?{...p,...d}:p))}function o(c){t(d=>d.filter(f=>f.id!==c))}const a=async c=>{const d=new AbortController;co.set(c.id,d);try{t(p=>p.map(m=>m.id===c.id?{...m,status:"uploading",progress:0}:m));const f=await n.uploadFile(c,{signal:d.signal,onUploadProgress:p=>{if(!p.total)return;const m=Math.round(p.loaded*100/p.total);i(c.id,{progress:m})}});i(c.id,{status:"success",fileUrl:f.fileUrl,progress:100})}catch(f){d.signal.aborted||i(c.id,{status:"error",error:f instanceof Error?f.message:"Upload failed",progress:0})}finally{co.delete(c.id)}},s=c=>{const d=co.get(c);d&&(d.abort(),co.delete(c)),o(c)},u=v.useMemo(()=>e.filter(c=>c.status==="success"&&c.fileUrl),[e]);function l(){co.forEach(c=>c.abort()),co.clear(),t([])}return v.useEffect(()=>()=>{co.forEach(c=>c.abort()),co.clear()},[]),{allFiles:e,appendFiles:r,handleCancelUpload:s,successFiles:u,emptyTheFiles:l,getFileById:c=>e.find(d=>d.id===c),getUploadProgress:c=>{var d;return((d=e.find(f=>f.id===c))==null?void 0:d.progress)??0},getUploadStatus:c=>{var d;return(d=e.find(f=>f.id===c))==null?void 0:d.status},hasErrors:e.some(c=>c.status==="error"),isUploading:e.some(c=>c.status==="uploading")}}function Cn(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function mU(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function jS(...e){return t=>e.forEach(n=>mU(n,t))}function Hr(...e){return v.useCallback(jS(...e),e)}function gU(e,t){const n=v.createContext(t),r=o=>{const{children:a,...s}=o,u=v.useMemo(()=>s,Object.values(s));return E.jsx(n.Provider,{value:u,children:a})};r.displayName=e+"Provider";function i(o){const a=v.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,i]}function bi(e,t=[]){let n=[];function r(o,a){const s=v.createContext(a),u=n.length;n=[...n,a];const l=d=>{var g;const{scope:f,children:p,...m}=d,y=((g=f==null?void 0:f[e])==null?void 0:g[u])||s,b=v.useMemo(()=>m,Object.values(m));return E.jsx(y.Provider,{value:b,children:p})};l.displayName=o+"Provider";function c(d,f){var y;const p=((y=f==null?void 0:f[e])==null?void 0:y[u])||s,m=v.useContext(p);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${o}\``)}return[l,c]}const i=()=>{const o=n.map(a=>v.createContext(a));return function(s){const u=(s==null?void 0:s[e])||o;return v.useMemo(()=>({[`__scope${e}`]:{...s,[e]:u}}),[s,u])}};return i.scopeName=e,[r,yU(i,...t)]}function yU(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=r.reduce((s,{useScope:u,scopeName:l})=>{const d=u(o)[`__scope${l}`];return{...s,...d}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var Of=v.forwardRef((e,t)=>{const{children:n,...r}=e,i=v.Children.toArray(n),o=i.find(vU);if(o){const a=o.props.children,s=i.map(u=>u===o?v.Children.count(a)>1?v.Children.only(null):v.isValidElement(a)?a.props.children:null:u);return E.jsx(Ry,{...r,ref:t,children:v.isValidElement(a)?v.cloneElement(a,void 0,s):null})}return E.jsx(Ry,{...r,ref:t,children:n})});Of.displayName="Slot";var Ry=v.forwardRef((e,t)=>{const{children:n,...r}=e;if(v.isValidElement(n)){const i=wU(n);return v.cloneElement(n,{...xU(r,n.props),ref:t?jS(t,i):i})}return v.Children.count(n)>1?v.Children.only(null):null});Ry.displayName="SlotClone";var US=({children:e})=>E.jsx(E.Fragment,{children:e});function vU(e){return v.isValidElement(e)&&e.type===US}function xU(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...s)=>{o(...s),i(...s)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function wU(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var bU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],zn=bU.reduce((e,t)=>{const n=v.forwardRef((r,i)=>{const{asChild:o,...a}=r,s=o?Of:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(s,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function EU(e,t){e&&Zo.flushSync(()=>e.dispatchEvent(t))}function Pt(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Ny(e,t=globalThis==null?void 0:globalThis.document){const n=Pt(e);v.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var TU="DismissableLayer",Py="dismissableLayer.update",_U="dismissableLayer.pointerDownOutside",CU="dismissableLayer.focusOutside",zS,HS=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Iy=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:s,...u}=e,l=v.useContext(HS),[c,d]=v.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=v.useState({}),m=Hr(t,R=>d(R)),y=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),g=y.indexOf(b),x=c?y.indexOf(c):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,T=x>=g,_=kU(R=>{const O=R.target,V=[...l.branches].some(P=>P.contains(O));!T||V||(i==null||i(R),a==null||a(R),R.defaultPrevented||s==null||s())},f),C=RU(R=>{const O=R.target;[...l.branches].some(P=>P.contains(O))||(o==null||o(R),a==null||a(R),R.defaultPrevented||s==null||s())},f);return Ny(R=>{x===l.layers.size-1&&(r==null||r(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},f),v.useEffect(()=>{if(c)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(zS=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),VS(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=zS)}},[c,f,n,l]),v.useEffect(()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),VS())},[c,l]),v.useEffect(()=>{const R=()=>p({});return document.addEventListener(Py,R),()=>document.removeEventListener(Py,R)},[]),E.jsx(zn.div,{...u,ref:m,style:{pointerEvents:w?T?"auto":"none":void 0,...e.style},onFocusCapture:Cn(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Cn(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Cn(e.onPointerDownCapture,_.onPointerDownCapture)})});Iy.displayName=TU;var SU="DismissableLayerBranch",AU=v.forwardRef((e,t)=>{const n=v.useContext(HS),r=v.useRef(null),i=Hr(t,r);return v.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),E.jsx(zn.div,{...e,ref:i})});AU.displayName=SU;function kU(e,t=globalThis==null?void 0:globalThis.document){const n=Pt(e),r=v.useRef(!1),i=v.useRef(()=>{});return v.useEffect(()=>{const o=s=>{if(s.target&&!r.current){let u=function(){$S(_U,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}else t.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function RU(e,t=globalThis==null?void 0:globalThis.document){const n=Pt(e),r=v.useRef(!1);return v.useEffect(()=>{const i=o=>{o.target&&!r.current&&$S(CU,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function VS(){const e=new CustomEvent(Py);document.dispatchEvent(e)}function $S(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?EU(i,o):i.dispatchEvent(o)}var or=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},NU=YO.useId||(()=>{}),PU=0;function fo(e){const[t,n]=v.useState(NU());return or(()=>{e||n(r=>r??String(PU++))},[e]),e||(t?`radix-${t}`:"")}const IU=["top","right","bottom","left"],po=Math.min,Hn=Math.max,Df=Math.round,Lf=Math.floor,ho=e=>({x:e,y:e}),OU={left:"right",right:"left",bottom:"top",top:"bottom"},DU={start:"end",end:"start"};function Oy(e,t,n){return Hn(e,po(t,n))}function Ei(e,t){return typeof e=="function"?e(t):e}function Ti(e){return e.split("-")[0]}function bs(e){return e.split("-")[1]}function Dy(e){return e==="x"?"y":"x"}function Ly(e){return e==="y"?"height":"width"}function mo(e){return["top","bottom"].includes(Ti(e))?"y":"x"}function My(e){return Dy(mo(e))}function LU(e,t,n){n===void 0&&(n=!1);const r=bs(e),i=My(e),o=Ly(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Mf(a)),[a,Mf(a)]}function MU(e){const t=Mf(e);return[Fy(e),t,Fy(t)]}function Fy(e){return e.replace(/start|end/g,t=>DU[t])}function FU(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function BU(e,t,n,r){const i=bs(e);let o=FU(Ti(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(Fy)))),o}function Mf(e){return e.replace(/left|right|bottom|top/g,t=>OU[t])}function jU(e){return{top:0,right:0,bottom:0,left:0,...e}}function WS(e){return typeof e!="number"?jU(e):{top:e,right:e,bottom:e,left:e}}function Ff(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function YS(e,t,n){let{reference:r,floating:i}=e;const o=mo(t),a=My(t),s=Ly(a),u=Ti(t),l=o==="y",c=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2;let p;switch(u){case"top":p={x:c,y:r.y-i.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(bs(t)){case"start":p[a]-=f*(n&&l?-1:1);break;case"end":p[a]+=f*(n&&l?-1:1);break}return p}const UU=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=YS(l,r,u),f=r,p={},m=0;for(let y=0;y<s.length;y++){const{name:b,fn:g}=s[y],{x,y:w,data:T,reset:_}=await g({x:c,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:l,platform:a,elements:{reference:e,floating:t}});c=x??c,d=w??d,p={...p,[b]:{...p[b],...T}},_&&m<=50&&(m++,typeof _=="object"&&(_.placement&&(f=_.placement),_.rects&&(l=_.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):_.rects),{x:c,y:d}=YS(l,f,u)),y=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:p}};async function bl(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Ei(t,e),m=WS(p),b=s[f?d==="floating"?"reference":"floating":d],g=Ff(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:l,rootBoundary:c,strategy:u})),x=d==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),T=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},_=Ff(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:w,strategy:u}):x);return{top:(g.top-_.top+m.top)/T.y,bottom:(_.bottom-g.bottom+m.bottom)/T.y,left:(g.left-_.left+m.left)/T.x,right:(_.right-g.right+m.right)/T.x}}const zU=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:u}=t,{element:l,padding:c=0}=Ei(e,t)||{};if(l==null)return{};const d=WS(c),f={x:n,y:r},p=My(i),m=Ly(p),y=await a.getDimensions(l),b=p==="y",g=b?"top":"left",x=b?"bottom":"right",w=b?"clientHeight":"clientWidth",T=o.reference[m]+o.reference[p]-f[p]-o.floating[m],_=f[p]-o.reference[p],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let R=C?C[w]:0;(!R||!await(a.isElement==null?void 0:a.isElement(C)))&&(R=s.floating[w]||o.floating[m]);const O=T/2-_/2,V=R/2-y[m]/2-1,P=po(d[g],V),$=po(d[x],V),z=P,Q=R-y[m]-$,Y=R/2-y[m]/2+O,re=Oy(z,Y,Q),ie=!u.arrow&&bs(i)!=null&&Y!==re&&o.reference[m]/2-(Y<z?P:$)-y[m]/2<0,te=ie?Y<z?Y-z:Y-Q:0;return{[p]:f[p]+te,data:{[p]:re,centerOffset:Y-re-te,...ie&&{alignmentOffset:te}},reset:ie}}}),HU=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:u,elements:l}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...b}=Ei(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const g=Ti(i),x=mo(s),w=Ti(s)===s,T=await(u.isRTL==null?void 0:u.isRTL(l.floating)),_=f||(w||!y?[Mf(s)]:MU(s)),C=m!=="none";!f&&C&&_.push(...BU(s,y,m,T));const R=[s,..._],O=await bl(t,b),V=[];let P=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&V.push(O[g]),d){const Y=LU(i,a,T);V.push(O[Y[0]],O[Y[1]])}if(P=[...P,{placement:i,overflows:V}],!V.every(Y=>Y<=0)){var $,z;const Y=((($=o.flip)==null?void 0:$.index)||0)+1,re=R[Y];if(re)return{data:{index:Y,overflows:P},reset:{placement:re}};let ie=(z=P.filter(te=>te.overflows[0]<=0).sort((te,F)=>te.overflows[1]-F.overflows[1])[0])==null?void 0:z.placement;if(!ie)switch(p){case"bestFit":{var Q;const te=(Q=P.filter(F=>{if(C){const B=mo(F.placement);return B===x||B==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(B=>B>0).reduce((B,A)=>B+A,0)]).sort((F,B)=>F[1]-B[1])[0])==null?void 0:Q[0];te&&(ie=te);break}case"initialPlacement":ie=s;break}if(i!==ie)return{reset:{placement:ie}}}return{}}}};function qS(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function GS(e){return IU.some(t=>e[t]>=0)}const VU=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Ei(e,t);switch(r){case"referenceHidden":{const o=await bl(t,{...i,elementContext:"reference"}),a=qS(o,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:GS(a)}}}case"escaped":{const o=await bl(t,{...i,altBoundary:!0}),a=qS(o,n.floating);return{data:{escapedOffsets:a,escaped:GS(a)}}}default:return{}}}}};async function $U(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Ti(n),s=bs(n),u=mo(n)==="y",l=["left","top"].includes(a)?-1:1,c=o&&u?-1:1,d=Ei(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m=="number"&&(p=s==="end"?m*-1:m),u?{x:p*c,y:f*l}:{x:f*l,y:p*c}}const WU=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,u=await $U(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+u.x,y:o+u.y,data:{...u,placement:a}}}}},YU=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:b=>{let{x:g,y:x}=b;return{x:g,y:x}}},...u}=Ei(e,t),l={x:n,y:r},c=await bl(t,u),d=mo(Ti(i)),f=Dy(d);let p=l[f],m=l[d];if(o){const b=f==="y"?"top":"left",g=f==="y"?"bottom":"right",x=p+c[b],w=p-c[g];p=Oy(x,p,w)}if(a){const b=d==="y"?"top":"left",g=d==="y"?"bottom":"right",x=m+c[b],w=m-c[g];m=Oy(x,m,w)}const y=s.fn({...t,[f]:p,[d]:m});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[f]:o,[d]:a}}}}}},qU=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:u=!0,crossAxis:l=!0}=Ei(e,t),c={x:n,y:r},d=mo(i),f=Dy(d);let p=c[f],m=c[d];const y=Ei(s,t),b=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(u){const w=f==="y"?"height":"width",T=o.reference[f]-o.floating[w]+b.mainAxis,_=o.reference[f]+o.reference[w]-b.mainAxis;p<T?p=T:p>_&&(p=_)}if(l){var g,x;const w=f==="y"?"width":"height",T=["top","left"].includes(Ti(i)),_=o.reference[d]-o.floating[w]+(T&&((g=a.offset)==null?void 0:g[d])||0)+(T?0:b.crossAxis),C=o.reference[d]+o.reference[w]+(T?0:((x=a.offset)==null?void 0:x[d])||0)-(T?b.crossAxis:0);m<_?m=_:m>C&&(m=C)}return{[f]:p,[d]:m}}}},GU=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:s}=t,{apply:u=()=>{},...l}=Ei(e,t),c=await bl(t,l),d=Ti(i),f=bs(i),p=mo(i)==="y",{width:m,height:y}=o.floating;let b,g;d==="top"||d==="bottom"?(b=d,g=f===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=d,b=f==="end"?"top":"bottom");const x=y-c.top-c.bottom,w=m-c.left-c.right,T=po(y-c[b],x),_=po(m-c[g],w),C=!t.middlewareData.shift;let R=T,O=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=x),C&&!f){const P=Hn(c.left,0),$=Hn(c.right,0),z=Hn(c.top,0),Q=Hn(c.bottom,0);p?O=m-2*(P!==0||$!==0?P+$:Hn(c.left,c.right)):R=y-2*(z!==0||Q!==0?z+Q:Hn(c.top,c.bottom))}await u({...t,availableWidth:O,availableHeight:R});const V=await a.getDimensions(s.floating);return m!==V.width||y!==V.height?{reset:{rects:!0}}:{}}}};function Bf(){return typeof window<"u"}function Es(e){return KS(e)?(e.nodeName||"").toLowerCase():"#document"}function Vn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Vr(e){var t;return(t=(KS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function KS(e){return Bf()?e instanceof Node||e instanceof Vn(e).Node:!1}function _r(e){return Bf()?e instanceof Element||e instanceof Vn(e).Element:!1}function $r(e){return Bf()?e instanceof HTMLElement||e instanceof Vn(e).HTMLElement:!1}function XS(e){return!Bf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Vn(e).ShadowRoot}function El(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Cr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function KU(e){return["table","td","th"].includes(Es(e))}function jf(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function By(e){const t=jy(),n=_r(e)?Cr(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function XU(e){let t=go(e);for(;$r(t)&&!Ts(t);){if(By(t))return t;if(jf(t))return null;t=go(t)}return null}function jy(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ts(e){return["html","body","#document"].includes(Es(e))}function Cr(e){return Vn(e).getComputedStyle(e)}function Uf(e){return _r(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function go(e){if(Es(e)==="html")return e;const t=e.assignedSlot||e.parentNode||XS(e)&&e.host||Vr(e);return XS(t)?t.host:t}function QS(e){const t=go(e);return Ts(t)?e.ownerDocument?e.ownerDocument.body:e.body:$r(t)&&El(t)?t:QS(t)}function Tl(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=QS(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Vn(i);if(o){const s=Uy(a);return t.concat(a,a.visualViewport||[],El(i)?i:[],s&&n?Tl(s):[])}return t.concat(i,Tl(i,[],n))}function Uy(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ZS(e){const t=Cr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=$r(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=Df(n)!==o||Df(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function zy(e){return _r(e)?e:e.contextElement}function _s(e){const t=zy(e);if(!$r(t))return ho(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=ZS(t);let a=(o?Df(n.width):n.width)/r,s=(o?Df(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const QU=ho(0);function JS(e){const t=Vn(e);return!jy()||!t.visualViewport?QU:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ZU(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Vn(e)?!1:t}function ua(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=zy(e);let a=ho(1);t&&(r?_r(r)&&(a=_s(r)):a=_s(e));const s=ZU(o,n,r)?JS(o):ho(0);let u=(i.left+s.x)/a.x,l=(i.top+s.y)/a.y,c=i.width/a.x,d=i.height/a.y;if(o){const f=Vn(o),p=r&&_r(r)?Vn(r):r;let m=f,y=Uy(m);for(;y&&r&&p!==m;){const b=_s(y),g=y.getBoundingClientRect(),x=Cr(y),w=g.left+(y.clientLeft+parseFloat(x.paddingLeft))*b.x,T=g.top+(y.clientTop+parseFloat(x.paddingTop))*b.y;u*=b.x,l*=b.y,c*=b.x,d*=b.y,u+=w,l+=T,m=Vn(y),y=Uy(m)}}return Ff({width:c,height:d,x:u,y:l})}function JU(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=Vr(r),s=t?jf(t.floating):!1;if(r===a||s&&o)return n;let u={scrollLeft:0,scrollTop:0},l=ho(1);const c=ho(0),d=$r(r);if((d||!d&&!o)&&((Es(r)!=="body"||El(a))&&(u=Uf(r)),$r(r))){const f=ua(r);l=_s(r),c.x=f.x+r.clientLeft,c.y=f.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+c.x,y:n.y*l.y-u.scrollTop*l.y+c.y}}function ez(e){return Array.from(e.getClientRects())}function Hy(e,t){const n=Uf(e).scrollLeft;return t?t.left+n:ua(Vr(e)).left+n}function tz(e){const t=Vr(e),n=Uf(e),r=e.ownerDocument.body,i=Hn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Hn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Hy(e);const s=-n.scrollTop;return Cr(r).direction==="rtl"&&(a+=Hn(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}function nz(e,t){const n=Vn(e),r=Vr(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,u=0;if(i){o=i.width,a=i.height;const l=jy();(!l||l&&t==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:s,y:u}}function rz(e,t){const n=ua(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=$r(e)?_s(e):ho(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,u=i*o.x,l=r*o.y;return{width:a,height:s,x:u,y:l}}function eA(e,t,n){let r;if(t==="viewport")r=nz(e,n);else if(t==="document")r=tz(Vr(e));else if(_r(t))r=rz(t,n);else{const i=JS(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Ff(r)}function tA(e,t){const n=go(e);return n===t||!_r(n)||Ts(n)?!1:Cr(n).position==="fixed"||tA(n,t)}function iz(e,t){const n=t.get(e);if(n)return n;let r=Tl(e,[],!1).filter(s=>_r(s)&&Es(s)!=="body"),i=null;const o=Cr(e).position==="fixed";let a=o?go(e):e;for(;_r(a)&&!Ts(a);){const s=Cr(a),u=By(a);!u&&s.position==="fixed"&&(i=null),(o?!u&&!i:!u&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||El(a)&&!u&&tA(e,a))?r=r.filter(c=>c!==a):i=s,a=go(a)}return t.set(e,r),r}function oz(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?jf(t)?[]:iz(t,this._c):[].concat(n),r],s=a[0],u=a.reduce((l,c)=>{const d=eA(t,c,i);return l.top=Hn(d.top,l.top),l.right=po(d.right,l.right),l.bottom=po(d.bottom,l.bottom),l.left=Hn(d.left,l.left),l},eA(t,s,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function az(e){const{width:t,height:n}=ZS(e);return{width:t,height:n}}function sz(e,t,n){const r=$r(t),i=Vr(t),o=n==="fixed",a=ua(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const u=ho(0);if(r||!r&&!o)if((Es(t)!=="body"||El(i))&&(s=Uf(t)),r){const p=ua(t,!0,o,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else i&&(u.x=Hy(i));let l=0,c=0;if(i&&!r&&!o){const p=i.getBoundingClientRect();c=p.top+s.scrollTop,l=p.left+s.scrollLeft-Hy(i,p)}const d=a.left+s.scrollLeft-u.x-l,f=a.top+s.scrollTop-u.y-c;return{x:d,y:f,width:a.width,height:a.height}}function Vy(e){return Cr(e).position==="static"}function nA(e,t){if(!$r(e)||Cr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Vr(e)===n&&(n=n.ownerDocument.body),n}function rA(e,t){const n=Vn(e);if(jf(e))return n;if(!$r(e)){let i=go(e);for(;i&&!Ts(i);){if(_r(i)&&!Vy(i))return i;i=go(i)}return n}let r=nA(e,t);for(;r&&KU(r)&&Vy(r);)r=nA(r,t);return r&&Ts(r)&&Vy(r)&&!By(r)?n:r||XU(e)||n}const uz=async function(e){const t=this.getOffsetParent||rA,n=this.getDimensions,r=await n(e.floating);return{reference:sz(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function lz(e){return Cr(e).direction==="rtl"}const cz={convertOffsetParentRelativeRectToViewportRelativeRect:JU,getDocumentElement:Vr,getClippingRect:oz,getOffsetParent:rA,getElementRects:uz,getClientRects:ez,getDimensions:az,getScale:_s,isElement:_r,isRTL:lz};function dz(e,t){let n=null,r;const i=Vr(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),o();const{left:l,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p=Lf(c),m=Lf(i.clientWidth-(l+d)),y=Lf(i.clientHeight-(c+f)),b=Lf(l),x={rootMargin:-p+"px "+-m+"px "+-y+"px "+-b+"px",threshold:Hn(0,po(1,u))||1};let w=!0;function T(_){const C=_[0].intersectionRatio;if(C!==u){if(!w)return a();C?a(!1,C):r=setTimeout(()=>{a(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(T,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(T,x)}n.observe(e)}return a(!0),o}function iA(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=zy(e),c=i||o?[...l?Tl(l):[],...Tl(t)]:[];c.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),o&&g.addEventListener("resize",n)});const d=l&&s?dz(l,n):null;let f=-1,p=null;a&&(p=new ResizeObserver(g=>{let[x]=g;x&&x.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),l&&!u&&p.observe(l),p.observe(t));let m,y=u?ua(e):null;u&&b();function b(){const g=ua(e);y&&(g.x!==y.x||g.y!==y.y||g.width!==y.width||g.height!==y.height)&&n(),y=g,m=requestAnimationFrame(b)}return n(),()=>{var g;c.forEach(x=>{i&&x.removeEventListener("scroll",n),o&&x.removeEventListener("resize",n)}),d==null||d(),(g=p)==null||g.disconnect(),p=null,u&&cancelAnimationFrame(m)}}const fz=WU,pz=YU,hz=HU,mz=GU,gz=VU,oA=zU,yz=qU,vz=(e,t,n)=>{const r=new Map,i={platform:cz,...n},o={...i.platform,_c:r};return UU(e,t,{...i,platform:o})};var zf=typeof document<"u"?v.useLayoutEffect:v.useEffect;function Hf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Hf(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Hf(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function aA(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sA(e,t){const n=aA(e);return Math.round(t*n)/n}function $y(e){const t=v.useRef(e);return zf(()=>{t.current=e}),t}function uA(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:u,open:l}=e,[c,d]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=v.useState(r);Hf(f,r)||p(r);const[m,y]=v.useState(null),[b,g]=v.useState(null),x=v.useCallback(F=>{F!==C.current&&(C.current=F,y(F))},[]),w=v.useCallback(F=>{F!==R.current&&(R.current=F,g(F))},[]),T=o||m,_=a||b,C=v.useRef(null),R=v.useRef(null),O=v.useRef(c),V=u!=null,P=$y(u),$=$y(i),z=$y(l),Q=v.useCallback(()=>{if(!C.current||!R.current)return;const F={placement:t,strategy:n,middleware:f};$.current&&(F.platform=$.current),vz(C.current,R.current,F).then(B=>{const A={...B,isPositioned:z.current!==!1};Y.current&&!Hf(O.current,A)&&(O.current=A,Zo.flushSync(()=>{d(A)}))})},[f,t,n,$,z]);zf(()=>{l===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d(F=>({...F,isPositioned:!1})))},[l]);const Y=v.useRef(!1);zf(()=>(Y.current=!0,()=>{Y.current=!1}),[]),zf(()=>{if(T&&(C.current=T),_&&(R.current=_),T&&_){if(P.current)return P.current(T,_,Q);Q()}},[T,_,Q,P,V]);const re=v.useMemo(()=>({reference:C,floating:R,setReference:x,setFloating:w}),[x,w]),ie=v.useMemo(()=>({reference:T,floating:_}),[T,_]),te=v.useMemo(()=>{const F={position:n,left:0,top:0};if(!ie.floating)return F;const B=sA(ie.floating,c.x),A=sA(ie.floating,c.y);return s?{...F,transform:"translate("+B+"px, "+A+"px)",...aA(ie.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:A}},[n,s,ie.floating,c.x,c.y]);return v.useMemo(()=>({...c,update:Q,refs:re,elements:ie,floatingStyles:te}),[c,Q,re,ie,te])}const xz=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?oA({element:r.current,padding:i}).fn(n):{}:r?oA({element:r,padding:i}).fn(n):{}}}},lA=(e,t)=>({...fz(e),options:[e,t]}),cA=(e,t)=>({...pz(e),options:[e,t]}),dA=(e,t)=>({...yz(e),options:[e,t]}),fA=(e,t)=>({...hz(e),options:[e,t]}),pA=(e,t)=>({...mz(e),options:[e,t]}),hA=(e,t)=>({...gz(e),options:[e,t]}),mA=(e,t)=>({...xz(e),options:[e,t]});var wz="Arrow",gA=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return E.jsx(zn.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:E.jsx("polygon",{points:"0,0 30,0 15,10"})})});gA.displayName=wz;var bz=gA;function Ez(e,t=[]){let n=[];function r(o,a){const s=v.createContext(a),u=n.length;n=[...n,a];function l(d){const{scope:f,children:p,...m}=d,y=(f==null?void 0:f[e][u])||s,b=v.useMemo(()=>m,Object.values(m));return E.jsx(y.Provider,{value:b,children:p})}function c(d,f){const p=(f==null?void 0:f[e][u])||s,m=v.useContext(p);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${o}\``)}return l.displayName=o+"Provider",[l,c]}const i=()=>{const o=n.map(a=>v.createContext(a));return function(s){const u=(s==null?void 0:s[e])||o;return v.useMemo(()=>({[`__scope${e}`]:{...s,[e]:u}}),[s,u])}};return i.scopeName=e,[r,Tz(i,...t)]}function Tz(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=r.reduce((s,{useScope:u,scopeName:l})=>{const d=u(o)[`__scope${l}`];return{...s,...d}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function yA(e){const[t,n]=v.useState(void 0);return or(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let a,s;if("borderBoxSize"in o){const u=o.borderBoxSize,l=Array.isArray(u)?u[0]:u;a=l.inlineSize,s=l.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Wy="Popper",[vA,Vf]=Ez(Wy),[_z,xA]=vA(Wy),wA=e=>{const{__scopePopper:t,children:n}=e,[r,i]=v.useState(null);return E.jsx(_z,{scope:t,anchor:r,onAnchorChange:i,children:n})};wA.displayName=Wy;var bA="PopperAnchor",EA=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=xA(bA,n),a=v.useRef(null),s=Hr(t,a);return v.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:E.jsx(zn.div,{...i,ref:s})});EA.displayName=bA;var Yy="PopperContent",[Cz,Sz]=vA(Yy),TA=v.forwardRef((e,t)=>{var $e,Ve,We,Ge,_t,Te;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:m,...y}=e,b=xA(Yy,n),[g,x]=v.useState(null),w=Hr(t,be=>x(be)),[T,_]=v.useState(null),C=yA(T),R=(C==null?void 0:C.width)??0,O=(C==null?void 0:C.height)??0,V=r+(o!=="center"?"-"+o:""),P=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},$=Array.isArray(l)?l:[l],z=$.length>0,Q={padding:P,boundary:$.filter(kz),altBoundary:z},{refs:Y,floatingStyles:re,placement:ie,isPositioned:te,middlewareData:F}=uA({strategy:"fixed",placement:V,whileElementsMounted:(...be)=>iA(...be,{animationFrame:p==="always"}),elements:{reference:b.anchor},middleware:[lA({mainAxis:i+O,alignmentAxis:a}),u&&cA({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?dA():void 0,...Q}),u&&fA({...Q}),pA({...Q,apply:({elements:be,rects:Ye,availableWidth:ze,availableHeight:yt})=>{const{width:vt,height:Ke}=Ye.reference,Fe=be.floating.style;Fe.setProperty("--radix-popper-available-width",`${ze}px`),Fe.setProperty("--radix-popper-available-height",`${yt}px`),Fe.setProperty("--radix-popper-anchor-width",`${vt}px`),Fe.setProperty("--radix-popper-anchor-height",`${Ke}px`)}}),T&&mA({element:T,padding:s}),Rz({arrowWidth:R,arrowHeight:O}),f&&hA({strategy:"referenceHidden",...Q})]}),[B,A]=SA(ie),oe=Pt(m);or(()=>{te&&(oe==null||oe())},[te,oe]);const he=($e=F.arrow)==null?void 0:$e.x,D=(Ve=F.arrow)==null?void 0:Ve.y,Oe=((We=F.arrow)==null?void 0:We.centerOffset)!==0,[ge,xe]=v.useState();return or(()=>{g&&xe(window.getComputedStyle(g).zIndex)},[g]),E.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...re,transform:te?re.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[(Ge=F.transformOrigin)==null?void 0:Ge.x,(_t=F.transformOrigin)==null?void 0:_t.y].join(" "),...((Te=F.hide)==null?void 0:Te.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:E.jsx(Cz,{scope:n,placedSide:B,onArrowChange:_,arrowX:he,arrowY:D,shouldHideArrow:Oe,children:E.jsx(zn.div,{"data-side":B,"data-align":A,...y,ref:w,style:{...y.style,animation:te?void 0:"none"}})})})});TA.displayName=Yy;var _A="PopperArrow",Az={top:"bottom",right:"left",bottom:"top",left:"right"},CA=v.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=Sz(_A,r),a=Az[o.placedSide];return E.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:E.jsx(bz,{...i,ref:n,style:{...i.style,display:"block"}})})});CA.displayName=_A;function kz(e){return e!==null}var Rz=e=>({name:"transformOrigin",options:e,fn(t){var b,g,x;const{placement:n,rects:r,middlewareData:i}=t,a=((b=i.arrow)==null?void 0:b.centerOffset)!==0,s=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[l,c]=SA(n),d={start:"0%",center:"50%",end:"100%"}[c],f=(((g=i.arrow)==null?void 0:g.x)??0)+s/2,p=(((x=i.arrow)==null?void 0:x.y)??0)+u/2;let m="",y="";return l==="bottom"?(m=a?d:`${f}px`,y=`${-u}px`):l==="top"?(m=a?d:`${f}px`,y=`${r.floating.height+u}px`):l==="right"?(m=`${-u}px`,y=a?d:`${p}px`):l==="left"&&(m=`${r.floating.width+u}px`,y=a?d:`${p}px`),{data:{x:m,y}}}});function SA(e){const[t,n="center"]=e.split("-");return[t,n]}var AA=wA,qy=EA,kA=TA,RA=CA;function Nz(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var Gy=e=>{const{present:t,children:n}=e,r=Pz(t),i=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),o=Hr(r.ref,Iz(i));return typeof n=="function"||r.isPresent?v.cloneElement(i,{ref:o}):null};Gy.displayName="Presence";function Pz(e){const[t,n]=v.useState(),r=v.useRef({}),i=v.useRef(e),o=v.useRef("none"),a=e?"mounted":"unmounted",[s,u]=Nz(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const l=$f(r.current);o.current=s==="mounted"?l:"none"},[s]),or(()=>{const l=r.current,c=i.current;if(c!==e){const f=o.current,p=$f(l);e?u("MOUNT"):p==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(c&&f!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),or(()=>{if(t){let l;const c=t.ownerDocument.defaultView??window,d=p=>{const y=$f(r.current).includes(p.animationName);if(p.target===t&&y&&(u("ANIMATION_END"),!i.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",l=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=p=>{p.target===t&&(o.current=$f(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(l),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function $f(e){return(e==null?void 0:e.animationName)||"none"}function Iz(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function _l({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=Oz({defaultProp:t,onChange:n}),o=e!==void 0,a=o?e:r,s=Pt(n),u=v.useCallback(l=>{if(o){const d=typeof l=="function"?l(e):l;d!==e&&s(d)}else i(l)},[o,e,i,s]);return[a,u]}function Oz({defaultProp:e,onChange:t}){const n=v.useState(e),[r]=n,i=v.useRef(r),o=Pt(t);return v.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}var Dz="VisuallyHidden",NA=v.forwardRef((e,t)=>E.jsx(zn.span,{...e,ref:t,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",...e.style}}));NA.displayName=Dz;var Lz=NA,[Wf,Hie]=bi("Tooltip",[Vf]),Yf=Vf(),PA="TooltipProvider",Mz=700,Ky="tooltip.open",[Fz,Xy]=Wf(PA),IA=e=>{const{__scopeTooltip:t,delayDuration:n=Mz,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,[a,s]=v.useState(!0),u=v.useRef(!1),l=v.useRef(0);return v.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),E.jsx(Fz,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:v.useCallback(()=>{window.clearTimeout(l.current),s(!1)},[]),onClose:v.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:u,onPointerInTransitChange:v.useCallback(c=>{u.current=c},[]),disableHoverableContent:i,children:o})};IA.displayName=PA;var qf="Tooltip",[Bz,Gf]=Wf(qf),OA=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,u=Xy(qf,e.__scopeTooltip),l=Yf(t),[c,d]=v.useState(null),f=fo(),p=v.useRef(0),m=a??u.disableHoverableContent,y=s??u.delayDuration,b=v.useRef(!1),[g=!1,x]=_l({prop:r,defaultProp:i,onChange:R=>{R?(u.onOpen(),document.dispatchEvent(new CustomEvent(Ky))):u.onClose(),o==null||o(R)}}),w=v.useMemo(()=>g?b.current?"delayed-open":"instant-open":"closed",[g]),T=v.useCallback(()=>{window.clearTimeout(p.current),b.current=!1,x(!0)},[x]),_=v.useCallback(()=>{window.clearTimeout(p.current),x(!1)},[x]),C=v.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{b.current=!0,x(!0)},y)},[y,x]);return v.useEffect(()=>()=>window.clearTimeout(p.current),[]),E.jsx(AA,{...l,children:E.jsx(Bz,{scope:t,contentId:f,open:g,stateAttribute:w,trigger:c,onTriggerChange:d,onTriggerEnter:v.useCallback(()=>{u.isOpenDelayed?C():T()},[u.isOpenDelayed,C,T]),onTriggerLeave:v.useCallback(()=>{m?_():window.clearTimeout(p.current)},[_,m]),onOpen:T,onClose:_,disableHoverableContent:m,children:n})})};OA.displayName=qf;var Qy="TooltipTrigger",DA=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Gf(Qy,n),o=Xy(Qy,n),a=Yf(n),s=v.useRef(null),u=Hr(t,s,i.onTriggerChange),l=v.useRef(!1),c=v.useRef(!1),d=v.useCallback(()=>l.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),E.jsx(qy,{asChild:!0,...a,children:E.jsx(zn.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:u,onPointerMove:Cn(e.onPointerMove,f=>{f.pointerType!=="touch"&&!c.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:Cn(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:Cn(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Cn(e.onFocus,()=>{l.current||i.onOpen()}),onBlur:Cn(e.onBlur,i.onClose),onClick:Cn(e.onClick,i.onClose)})})});DA.displayName=Qy;var jz="TooltipPortal",[Vie,Uz]=Wf(jz,{forceMount:void 0}),Cs="TooltipContent",LA=v.forwardRef((e,t)=>{const n=Uz(Cs,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=Gf(Cs,e.__scopeTooltip);return E.jsx(Gy,{present:r||a.open,children:a.disableHoverableContent?E.jsx(MA,{side:i,...o,ref:t}):E.jsx(zz,{side:i,...o,ref:t})})}),zz=v.forwardRef((e,t)=>{const n=Gf(Cs,e.__scopeTooltip),r=Xy(Cs,e.__scopeTooltip),i=v.useRef(null),o=Hr(t,i),[a,s]=v.useState(null),{trigger:u,onClose:l}=n,c=i.current,{onPointerInTransitChange:d}=r,f=v.useCallback(()=>{s(null),d(!1)},[d]),p=v.useCallback((m,y)=>{const b=m.currentTarget,g={x:m.clientX,y:m.clientY},x=Wz(g,b.getBoundingClientRect()),w=Yz(g,x),T=qz(y.getBoundingClientRect()),_=Kz([...w,...T]);s(_),d(!0)},[d]);return v.useEffect(()=>()=>f(),[f]),v.useEffect(()=>{if(u&&c){const m=b=>p(b,c),y=b=>p(b,u);return u.addEventListener("pointerleave",m),c.addEventListener("pointerleave",y),()=>{u.removeEventListener("pointerleave",m),c.removeEventListener("pointerleave",y)}}},[u,c,p,f]),v.useEffect(()=>{if(a){const m=y=>{const b=y.target,g={x:y.clientX,y:y.clientY},x=(u==null?void 0:u.contains(b))||(c==null?void 0:c.contains(b)),w=!Gz(g,a);x?f():w&&(f(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[u,c,a,l,f]),E.jsx(MA,{...e,ref:o})}),[Hz,Vz]=Wf(qf,{isInside:!1}),MA=v.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,u=Gf(Cs,n),l=Yf(n),{onClose:c}=u;return v.useEffect(()=>(document.addEventListener(Ky,c),()=>document.removeEventListener(Ky,c)),[c]),v.useEffect(()=>{if(u.trigger){const d=f=>{const p=f.target;p!=null&&p.contains(u.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[u.trigger,c]),E.jsx(Iy,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:E.jsxs(kA,{"data-state":u.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[E.jsx(US,{children:r}),E.jsx(Hz,{scope:n,isInside:!0,children:E.jsx(Lz,{id:u.contentId,role:"tooltip",children:i||r})})]})})});LA.displayName=Cs;var FA="TooltipArrow",$z=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Yf(n);return Vz(FA,n).isInside?null:E.jsx(RA,{...i,...r,ref:t})});$z.displayName=FA;function Wz(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Yz(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function qz(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function Gz(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,a=t.length-1;o<t.length;a=o++){const s=t[o].x,u=t[o].y,l=t[a].x,c=t[a].y;u>r!=c>r&&n<(l-s)*(r-u)/(c-u)+s&&(i=!i)}return i}function Kz(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Xz(t)}function Xz(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const o=t[t.length-1],a=t[t.length-2];if((o.x-a.x)*(i.y-a.y)>=(o.y-a.y)*(i.x-a.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const o=n[n.length-1],a=n[n.length-2];if((o.x-a.x)*(i.y-a.y)>=(o.y-a.y)*(i.x-a.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Qz=IA,Zz=OA,Jz=DA,BA=LA;const eH=Qz,tH=Zz,nH=Jz,jA=v.forwardRef(({className:e,sideOffset:t=4,...n},r)=>E.jsx(BA,{ref:r,sideOffset:t,className:Ne("z-50 overflow-hidden max-w-xs rounded-xl bg-primary border text-primary-foreground p-2 text-center align-middle text-xs shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));jA.displayName=BA.displayName;function Kf({children:e,content:t,side:n,align:r}){return t?E.jsxs(tH,{children:[E.jsx(nH,{asChild:!0,children:e}),E.jsx(jA,{side:n,align:r,collisionPadding:8,avoidCollisions:!0,children:t})]}):e}const UA={en:{ok:"OK",yes:"Yes",no:"No",agree:"Agree",cancel:"Cancel","yes-exit":"Yes, exit","yes-reset":"Yes, reset","no-cancel":"No, cancel","are-you-sure":"Are you sure?",recording:"Recording...","thank-you":"Thank you","sorry-try-again":"Sorry, please try again","error-occurred":"An error occurred","please-try-again":"Please try again","write-a-message":"Write a message...","send-message":"Send message",connected:"Connected",connecting:"Connecting",reconnecting:"Reconnecting",reconnected:"Reconnected",disconnecting:"Disconnecting",disconnected:"Disconnected",error:"Error","persist-session":"Persist session",settings:"Settings",close:"Close",help:"Help",chat:"Chat",send:"Send",copy:"Copy",copied:"Copied","sound-effects":"Sound effects",language:"Language",select:"Select",agent:"Agent",user:"User",bot:"Bot","close-widget":"Close widget","got-any-questions":"Got any questions? Chat with us!","typical-response-time":"Typically respond in less than 1 minute","session-closed-lead":"Your issue has been resolved!","create-new-ticket":"Create new ticket",exit:"Exit","reset-conversation":"Reset conversation","new-conversation":"New conversation","welcome-title":"Welcome to our support chat","welcome-description":"We're here to help! Start a conversation and we'll get back to you as soon as possible.","your-name":"Your name","your-email":"Your email address","start-chat":"Talk to support","starting-chat":"Connecting...","hello-greeting":"Hi there!","i-need-more-help":"I need more help","this-was-helpful":"This was helpful",optional:"Optional"},ar:{ok:"حسنا",yes:"نعم",no:"لا",agree:"موافق",cancel:"إلغاء","yes-exit":"نعم، اخرج","yes-reset":"نعم، إعادة تعيين","no-cancel":"لا، إلغاء","are-you-sure":"هل أنت متأكد؟",recording:"تسجيل","thank-you":"شكرا","sorry-try-again":"عذرا، حاول مرة أخرى","error-occurred":"حدث خطأ","please-try-again":"يرجى المحاولة مرة أخرى","write-a-message":"اكتب رسالة...","send-message":"إرسال رسالة",connected:"متصل",connecting:"جاري الاتصال",reconnecting:"جاري إعادة الاتصال",reconnected:"تم إعادة الاتصال",disconnecting:"جاري قطع الاتصال",disconnected:"قطع الاتصال",error:"خطأ","persist-session":"حفظ الجلسة",settings:"إعدادات",close:"إغلاق",help:"مساعدة",chat:"محادثة",send:"إرسال",copy:"نسخ",copied:"تم النسخ","sound-effects":"التاثيرات الصوتية",language:"اللغة",select:"اختر",agent:"الوكيل",user:"المستخدم",bot:"البوت","close-widget":"إغلاق الودجة","got-any-questions":"هل لديك أي أسئلة؟ تحدث معنا!","typical-response-time":"عادة ما نرد في أقل من دقيقة واحدة","session-closed-lead":"تم حل مشكلتك!",exit:"خروج","create-new-ticket":"إنشاء تذكرة جديدة","reset-conversation":"إعادة تعيين المحادثة","new-conversation":"محادثة جديدة","welcome-title":"مرحبًا بك في دردشة الدعم الخاصة بنا","welcome-description":"نحن هنا للمساعدة! ابدأ محادثة وسنرد عليك في أقرب وقت ممكن.","your-name":"اسمك","your-email":"عنوان بريدك الإلكتروني","start-chat":"تحدث إلى الدعم","starting-chat":"جاري الاتصال...","hello-greeting":"مرحبًا! كيف يمكننا مساعدتك اليوم؟","i-need-more-help":"أحتاج المزيد من المساعدة","this-was-helpful":"كان هذا مفيدًا",optional:"اختياري"},nl:{ok:"OK",yes:"Ja",no:"Nee",agree:"Akkoord",cancel:"Annuleren","yes-exit":"Ja, afsluiten","yes-reset":"Ja, resetten","no-cancel":"Nee, annuleren","are-you-sure":"Weet u het zeker?",recording:"Opname...","thank-you":"Dank u","sorry-try-again":"Sorry, probeer het opnieuw","error-occurred":"Er is een fout opgetreden","please-try-again":"Probeer het opnieuw","write-a-message":"Schrijf een bericht...","send-message":"Bericht verzenden",connected:"Verbonden",connecting:"Verbinding maken",reconnecting:"Opnieuw verbinding maken",reconnected:"Opnieuw verbonden",disconnecting:"Verbinding verbreken",disconnected:"Verbinding verbroken",error:"Fout","persist-session":"Sessie behouden",settings:"Instellingen",close:"Sluiten",help:"Help",chat:"Chat",send:"Verzenden",copy:"Kopiëren",copied:"Gekopieerd","sound-effects":"Geluidseffecten",language:"Taal",select:"Selecteren",agent:"Agent",user:"Gebruiker",bot:"Bot","close-widget":"Widget sluiten","got-any-questions":"Heeft u vragen? Chat met ons!","typical-response-time":"We reageren doorgaans binnen 1 minuut","session-closed-lead":"Uw probleem is opgelost!","create-new-ticket":"Nieuw ticket aanmaken",exit:"Afsluiten","reset-conversation":"Gesprek resetten","new-conversation":"Nieuw gesprek","welcome-title":"Welkom bij onze supportchat","welcome-description":"We zijn hier om te helpen! Begin een gesprek en we nemen zo snel mogelijk contact met u op.","your-name":"Uw naam","your-email":"Uw e-mailadres","start-chat":"Praat met ondersteuning","starting-chat":"Verbinding maken...","hello-greeting":"Hallo! Hoe kunnen we u vandaag helpen?","i-need-more-help":"Ik heb nog meer hulp nodig","this-was-helpful":"Mijn vraag is opgelost",optional:"Optioneel"},fr:{ok:"D'accord",yes:"Oui",no:"Non",agree:"Accepter",cancel:"Annuler","yes-exit":"Oui, quitter","yes-reset":"Oui, réinitialiser","no-cancel":"Non, annuler","are-you-sure":"Êtes-vous sûr ?",recording:"Enregistrement...","thank-you":"Merci","sorry-try-again":"Désolé, veuillez réessayer","error-occurred":"Une erreur s'est produite","please-try-again":"Veuillez réessayer","write-a-message":"Écrivez un message...","send-message":"Envoyer le message",connected:"Connecté",connecting:"Connexion en cours",reconnecting:"Reconnexion en cours",reconnected:"Reconnecté",disconnecting:"Déconnexion en cours",disconnected:"Déconnecté",error:"Erreur","persist-session":"Conserver la session",settings:"Paramètres",close:"Fermer",help:"Aide",chat:"Chat",send:"Envoyer",copy:"Copier",copied:"Copié","sound-effects":"Effets sonores",language:"Langue",select:"Sélectionner",agent:"Agent",user:"Utilisateur",bot:"Bot","close-widget":"Fermer le widget","got-any-questions":"Vous avez des questions ? Chattez avec nous !","typical-response-time":"Nous répondons généralement en moins d'une minute","session-closed-lead":"Votre problème a été résolu !","create-new-ticket":"Créer un nouveau ticket",exit:"Sortie","reset-conversation":"Réinitialiser la conversation","new-conversation":"Nouvelle conversation","welcome-title":"Bienvenue dans notre chat de support","welcome-description":"Nous sommes là pour vous aider ! Commencez une conversation et nous vous répondrons dès que possible.","your-name":"Votre nom","your-email":"Votre adresse e-mail","start-chat":"Parler au support","starting-chat":"Connexion...","hello-greeting":"Bonjour ! Comment pouvons-nous vous aider aujourd'hui ?","i-need-more-help":"Je besoin d'aide plus","this-was-helpful":"C'était utile",optional:"Optionnel"},de:{ok:"OK",yes:"Ja",no:"Nein",agree:"Zustimmen",cancel:"Stornieren","yes-exit":"Ja, beenden","yes-reset":"Ja, zurücksetzen","no-cancel":"Nein, abbrechen","are-you-sure":"Sind Sie sicher?",recording:"Aufnahme läuft","thank-you":"Vielen Dank","sorry-try-again":"Entschuldigung, bitte versuchen Sie es erneut","error-occurred":"Ein Fehler ist aufgetreten","please-try-again":"Bitte versuchen Sie es erneut","write-a-message":"Nachricht schreiben...","send-message":"Nachricht senden",connected:"Verbunden",connecting:"Verbindung wird hergestellt",reconnecting:"Verbindung wird wiederhergestellt",reconnected:"Wieder verbunden",disconnecting:"Verbindung wird getrennt",disconnected:"Verbindung getrennt",error:"Fehler","persist-session":"Sitzung beibehalten",settings:"Einstellungen",close:"Schließen",help:"Hilfe",chat:"Chat",send:"Senden",copy:"Kopieren",copied:"Kopiert","sound-effects":"Soundeffekte",language:"Sprache",select:"Auswählen",agent:"Agent",user:"Benutzer",bot:"Bot","got-any-questions":"Haben Sie Fragen? Chatten Sie mit uns!","typical-response-time":"Üblicherweise antworten wir in weniger als 1 Minute","close-widget":"Widget schließen","session-closed-lead":"Ihr Problem wurde gelöst!","create-new-ticket":"Neues Ticket erstellen",exit:"Beenden","reset-conversation":"Konversation zurücksetzen","new-conversation":"Neue Konversation","welcome-title":"Willkommen in unserem Support-Chat","welcome-description":"Wir sind hier, um zu helfen! Beginnen Sie ein Gesprách und wir werden so schnell wie mogelijk antworten.","your-name":"Ihr Name","your-email":"Ihre E-Mail-Adresse","start-chat":"Mit dem Support sprechen","starting-chat":"Verbindung wird hergestellt...","hello-greeting":"Hallo! Wie können wir Ihnen heute helfen?","i-need-more-help":"Ich brauche weitere Hilfe","this-was-helpful":"Dies war hilfreich",optional:"Optional"},pt:{ok:"OK",yes:"Sim",no:"Não",agree:"Concordo",cancel:"Cancelar","yes-exit":"Sim, sair","yes-reset":"Sim, redefinir","no-cancel":"Não, cancelar","are-you-sure":"Você tem certeza?",recording:"Gravando...","thank-you":"Obrigado","sorry-try-again":"Desculpe, tente novamente","error-occurred":"Ocorreu um erro","please-try-again":"Por favor, tente novamente","write-a-message":"Escreva uma mensagem...","send-message":"Enviar mensagem",connected:"Conectado",connecting:"Conectando",reconnecting:"Reconectando",reconnected:"Reconectado",disconnecting:"Desconectando",disconnected:"Desconectado",error:"Erro","persist-session":"Persistir sessão",settings:"Configurações",close:"Fechar",help:"Ajuda",chat:"Bate-papo",send:"Enviar",copy:"Copiar",copied:"Copiado","sound-effects":"Efeitos sonoros",language:"Idioma",select:"Selecionar",agent:"Agente",user:"Usuário",bot:"Bot","close-widget":"Fechar widget","got-any-questions":"Tem alguma dúvida? Converse conosco!","typical-response-time":"Geralmente respondemos em menos de 1 minuto","session-closed-lead":"Seu problema foi resolvido!","create-new-ticket":"Criar novo ticket",exit:"Sair","reset-conversation":"Redefinir conversa","new-conversation":"Nova conversa","welcome-title":"Bem-vindo ao nosso chat de suporte","welcome-description":"Estamos aqui para ajudar! Inicie uma conversa e responderemos o mais rápido possível.","your-name":"Seu nome","your-email":"Seu endereço de email","start-chat":"Falar com o suporte","starting-chat":"Conectando...","hello-greeting":"Olá! Como podemos ajudar você hoje?","i-need-more-help":"preciso de mais ajuda","this-was-helpful":"Isso foi útil",optional:"Opcional"}},rH=Object.keys(UA),iH=e=>rH.includes(e);function oH(e,t){const n=UA[t];return n&&n[e]||""}function Ss(){const{widgetCtx:{config:e}}=ir();return v.useMemo(()=>{const n=iH(e.language)?e.language:"en";return{get:r=>oH(r,n),lang:n}},[e.language])}const aH=10,sH={right:(e,t)=>({initial:{opacity:0,x:-e,...t.initial},animate:{opacity:1,x:0,...t.animate},exit:{opacity:0,x:e,...t.exit}}),left:(e,t)=>({initial:{opacity:0,x:e,...t.initial},animate:{opacity:1,x:0,...t.animate},exit:{opacity:0,x:-e,...t.exit}}),up:(e,t)=>({initial:{opacity:0,y:e,...t.initial},animate:{opacity:1,y:0,...t.animate},exit:{opacity:0,y:-e,...t.exit}}),down:(e,t)=>({initial:{opacity:0,y:-e,...t.initial},animate:{opacity:1,y:0,...t.animate},exit:{opacity:0,y:e,...t.exit}})},st=v.forwardRef(({fadeIn:e="down",distance:t=aH,children:n,snapExit:r=!1,overrides:i={},...o},a)=>{const s=e?sH[e](t,i):{};return r&&s.exit&&typeof s.exit=="object"&&!Array.isArray(s.exit)&&(s.exit.transition={duration:0}),E.jsx(cs.div,{ref:a,...o,...s,children:n})});st.displayName="MotionDiv";function zA(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=zA(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function uH(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=zA(e))&&(r&&(r+=" "),r+=t);return r}const HA=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,VA=uH,lH=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return VA(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,a=Object.keys(i).map(l=>{const c=n==null?void 0:n[l],d=o==null?void 0:o[l];if(c===null)return null;const f=HA(c)||HA(d);return i[l][f]}),s=n&&Object.entries(n).reduce((l,c)=>{let[d,f]=c;return f===void 0||(l[d]=f),l},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,c)=>{let{class:d,className:f,...p}=c;return Object.entries(p).every(m=>{let[y,b]=m;return Array.isArray(b)?b.includes({...o,...s}[y]):{...o,...s}[y]===b})?[...l,d,f]:l},[]);return VA(e,a,u,n==null?void 0:n.class,n==null?void 0:n.className)},$A={x:2,y:2},cH={1:"scale-[1]","1.01":"scale-[1.01]","1.02":"scale-[1.02]","1.1":"scale-[1.1]"},yo=v.memo(v.forwardRef(({children:e,className:t,scale:n="1.02",off:r=!1},i)=>{const[o,a]=v.useState(!1),[s,u]=v.useState({x:0,y:0});if(r||/translate/.test(e.props.className||""))return e;const c=m=>{var O,V;const{clientX:y,clientY:b}=m,g=m.currentTarget.getBoundingClientRect(),x=y-(g.left+g.width/2),w=b-(g.top+g.height/2),T=Math.max(-1,Math.min(1,x/(g.width/2))),_=Math.max(-1,Math.min(1,w/(g.height/2))),C=T*$A.x,R=_*$A.y;u({x:C,y:R}),(V=(O=e.props).onMouseMove)==null||V.call(O,m)},d=()=>{var m,y;a(!0),(y=(m=e.props).onMouseEnter)==null||y.call(m)},f=()=>{var m,y;a(!1),u({x:0,y:0}),(y=(m=e.props).onMouseLeave)==null||y.call(m)},p={"--opencx-wobble-x":o?`${s.x}px`:"0px","--opencx-wobble-y":o?`${s.y}px`:"0px"};return v.cloneElement(e,{ref:i,onMouseMove:c,onMouseEnter:d,onMouseLeave:f,style:{...p,...e.props.style},className:Ne("translate-x-[var(--opencx-wobble-x)]","translate-y-[var(--opencx-wobble-y)]",`hover:${cH[n]}`,t,e.props.className,"transition-all ease-out")})}));yo.displayName="Wobble";const dH=lH(Ne("inline-flex shrink-0 items-center justify-center gap-2","text-sm font-medium whitespace-nowrap","ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","shadow-sm active:shadow-none active:scale-95 hover:active:scale-95","rounded-xl","border","transition"),{variants:{variant:{default:"border-primary bg-primary text-primary-foreground",destructive:"border-destructive bg-destructive text-destructive-foreground",outline:"bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground",ghost:"border-transparent shadow-none hover:bg-accent hover:text-accent-foreground",link:"border-transparent shadow-none text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-8 px-3 text-xs",lg:"min-h-12 px-4",icon:"h-10 w-10",fit:"size-fit p-2",free:"p-2"}},defaultVariants:{variant:"default",size:"default"}}),$n=v.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},o)=>{const a=r?Of:"button";return E.jsx(yo,{ref:o,children:E.jsx(a,{className:Ne(dH({variant:t,size:n,className:e})),...i})})});$n.displayName="Button";const Xf=()=>{const[e,t]=v.useState("ltr");return v.useEffect(()=>{const n=()=>{typeof document>"u"||t(window.getComputedStyle(document.body).direction)};n();const r=new MutationObserver(n);return r.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),r.observe(document.body,{attributes:!0,attributeFilter:["dir"]}),window.addEventListener("languagechange",n),()=>{r.disconnect(),window.removeEventListener("languagechange",n)}},[]),e};function fH(){const{sendMessage:e}=xs(),t=Ss(),n=[t.get("i-need-more-help"),t.get("this-was-helpful")],r=i=>{const o=i.trim();o&&e({content:o})};return E.jsx("div",{className:"flex items-center gap-2 p-2 pb-0 flex-wrap",children:n.map(i=>E.jsx($n,{onClick:()=>r(i),className:"flex-1 rounded-full",size:"sm",children:i},i))})}function pH({file:{status:e,file:t,error:n},onCancel:r}){const[i,o]=v.useState(null);v.useEffect(()=>{if(!t.type.startsWith("image/"))return;const u=new FileReader;return u.onload=()=>o(u.result),u.onerror=()=>console.error("Error reading file"),u.readAsDataURL(t),()=>u.abort()},[t]);const a=()=>{switch(e){case"uploading":return E.jsx(VF,{className:"size-4 animate-spin"});case"error":return E.jsx(MF,{className:"size-4 text-destructive"});default:return null}},s=()=>{const u=t.type.split("/")[0];return u==="image"&&i?E.jsx("img",{src:typeof i=="string"?i:"",className:"object-cover bg-secondary size-full",alt:t.name}):u==="audio"?E.jsx(UF,{}):u==="video"?E.jsx(zF,{}):E.jsx(HF,{})};return E.jsx(Kf,{side:"bottom",content:e==="error"?E.jsxs("span",{className:"text-destructive",children:["Failed to upload: ",n]}):t.name,children:E.jsxs("div",{className:Ne(e==="uploading"&&"opacity-50","group","size-12 border rounded-2xl overflow-hidden relative","flex items-center justify-center shrink-0"),children:[E.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:a()}),E.jsx("button",{type:"button",className:Ne("absolute bg-black/50 inset-0 size-full z-10 opacity-0","flex items-center justify-center","opacity-0 group-hover:opacity-100 transition"),onClick:r,children:E.jsx(D0,{className:"size-4 text-primary-foreground"})}),E.jsx(s,{})]})})}const WA=Ne("rounded-3xl");function hH(){var C;const e=v.useRef(null),{sendMessage:t}=xs(),{sessionState:n}=gl(),r=Ss(),i=Xf(),[o,a]=v.useState(""),{allFiles:s,emptyTheFiles:u,handleCancelUpload:l,appendFiles:c,isUploading:d,successFiles:f}=hU(),p=!!((C=n.session)!=null&&C.isHandedOff),{isAwaitingBotReply:m}=TS(),y=R=>{p&&c(R)},b=!o.trim()&&f.length===0,g=async()=>{if(m||b)return;if(d){const O="please wait for the file(s) to upload";PC.error(O),console.info(O)}const R=o.trim();t({content:R,attachments:f.flatMap(O=>O.fileUrl?[{url:O.fileUrl,type:O.file.type,name:O.file.name,id:O.id,size:O.file.size}]:[])}),a(""),u()},{getRootProps:x,getInputProps:w,open:T}=CC({onDrop:y,noClick:!0,onDropRejected(){if(p){const R="unsupported file type, or the file is too large";PC.error(R),console.error(R)}},maxSize:5*1024*1024,accept:{"text/*":[".txt"],"image/*":[".png",".jpg",".jpeg",".gif"],"application/pdf":[".pdf"]}}),_=R=>{const O=R.clipboardData;O&&O.files.length>0&&y(Array.from(O.files))};return E.jsxs("div",{className:"p-2 relative space-y-1",...x(),children:[E.jsx("input",{...w()}),E.jsxs("div",{className:Ne(WA,"relative space-y-2 border transition-all shadow py-2"),children:[E.jsx("div",{className:"flex items-center gap-1 px-2",children:E.jsx(jn,{mode:"popLayout",children:s.map(R=>E.jsx(st,{snapExit:!0,children:E.jsx(pH,{onCancel:()=>l(R.id),file:R})},R.id))})}),E.jsx("textarea",{onPaste:_,ref:e,id:"chat-input",dir:i,value:o,rows:3,className:Ne(WA,"w-full resize-none px-3","text-sm rtl:placeholder:text-right bg-transparent outline-none"),onChange:R=>a(R.target.value),onKeyDown:async R=>{R.key==="Enter"&&!R.shiftKey&&(R.preventDefault(),g())},placeholder:r.get("write-a-message")}),E.jsxs("div",{dir:i,className:"px-2 flex justify-between rtl:text-right",children:[E.jsx(Kf,{side:"top",align:"start",content:"attach files, (maximum size 5mb)",children:E.jsx($n,{onClick:()=>{p&&T()},size:"fit",variant:"outline",className:Ne("disabled:opacity-0","rounded-full size-8 flex items-center justify-center p-0"),disabled:!p,children:E.jsx(YF,{className:"size-4"})})}),E.jsx(Kf,{content:"send message",side:"top",align:"end",children:E.jsx($n,{size:"fit",onClick:g,disabled:m||d||b,className:"rounded-full size-8 flex items-center justify-center p-0",children:E.jsx(jn,{mode:"wait",children:m||d?E.jsx(st,{snapExit:!0,children:E.jsx(FF,{className:"size-4 animate-spin animate-iteration-infinite"})},"loading"):E.jsx(st,{snapExit:!0,children:E.jsx(P_,{className:"size-4 rtl:-scale-100"})},"send")})})})]})]})]})}function mH(){const{widgetCtx:e}=ir(),t=Ss();return E.jsx("div",{className:"p-2",children:E.jsxs("div",{className:"p-2 bg-background rounded-3xl border shadow-2xl space-y-2",children:[E.jsxs("div",{className:"flex items-center gap-1",children:[E.jsx(OF,{className:"size-4 text-emerald-500"}),E.jsx("h2",{className:"text-sm font-medium",dir:"auto",children:t.get("session-closed-lead")})]}),E.jsx("div",{children:E.jsx($n,{onClick:e.resetChat,className:"rounded-2xl w-full",children:t.get("new-conversation")})})]})})}function gH(){var a,s,u;const{sessionState:e}=gl(),{messagesState:t,sendMessage:n}=xs(),i=(s=(a=Pf().data)==null?void 0:a.data)==null?void 0:s.initialQuestions,o=t.messages.length===0;return E.jsx("footer",{children:E.jsx("div",{children:E.jsx(jn,{mode:"wait",children:e.session&&!((u=e.session)!=null&&u.isOpened)?E.jsx(st,{className:"overflow-hidden",overrides:{initial:{height:0},animate:{height:"auto"},exit:{height:0}},children:E.jsx(mH,{})},"session-closed"):E.jsxs(st,{className:"overflow-hidden",overrides:{initial:{height:0},animate:{height:"auto"},exit:{height:0}},children:[t.lastAIResMightSolveUserIssue&&E.jsx(fH,{}),o&&i&&E.jsx("div",{className:"flex items-center flex-row justify-end gap-2 flex-wrap px-2",children:i==null?void 0:i.map(l=>E.jsx($n,{dir:"auto",variant:"outline",size:"sm",onClick:()=>{n({content:l})},children:l},l))}),E.jsx(hH,{})]},"chat-input")})})})}function Se(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function YA(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Qf(...e){return t=>{let n=!1;const r=e.map(i=>{const o=YA(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():YA(e[i],null)}}}}function It(...e){return v.useCallback(Qf(...e),e)}var As=v.forwardRef((e,t)=>{const{children:n,...r}=e,i=v.Children.toArray(n),o=i.find(vH);if(o){const a=o.props.children,s=i.map(u=>u===o?v.Children.count(a)>1?v.Children.only(null):v.isValidElement(a)?a.props.children:null:u);return E.jsx(Zy,{...r,ref:t,children:v.isValidElement(a)?v.cloneElement(a,void 0,s):null})}return E.jsx(Zy,{...r,ref:t,children:n})});As.displayName="Slot";var Zy=v.forwardRef((e,t)=>{const{children:n,...r}=e;if(v.isValidElement(n)){const i=wH(n);return v.cloneElement(n,{...xH(r,n.props),ref:t?Qf(t,i):i})}return v.Children.count(n)>1?v.Children.only(null):null});Zy.displayName="SlotClone";var yH=({children:e})=>E.jsx(E.Fragment,{children:e});function vH(e){return v.isValidElement(e)&&e.type===yH}function xH(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...s)=>{o(...s),i(...s)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function wH(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var bH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Et=bH.reduce((e,t)=>{const n=v.forwardRef((r,i)=>{const{asChild:o,...a}=r,s=o?As:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(s,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Jy(e,t){e&&Zo.flushSync(()=>e.dispatchEvent(t))}function qA(e){const t=e+"CollectionProvider",[n,r]=bi(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:m,children:y}=p,b=ln.useRef(null),g=ln.useRef(new Map).current;return E.jsx(i,{scope:m,itemMap:g,collectionRef:b,children:y})};a.displayName=t;const s=e+"CollectionSlot",u=ln.forwardRef((p,m)=>{const{scope:y,children:b}=p,g=o(s,y),x=It(m,g.collectionRef);return E.jsx(As,{ref:x,children:b})});u.displayName=s;const l=e+"CollectionItemSlot",c="data-radix-collection-item",d=ln.forwardRef((p,m)=>{const{scope:y,children:b,...g}=p,x=ln.useRef(null),w=It(m,x),T=o(l,y);return ln.useEffect(()=>(T.itemMap.set(x,{ref:x,...g}),()=>void T.itemMap.delete(x))),E.jsx(As,{[c]:"",ref:w,children:b})});d.displayName=l;function f(p){const m=o(e+"CollectionConsumer",p);return ln.useCallback(()=>{const b=m.collectionRef.current;if(!b)return[];const g=Array.from(b.querySelectorAll(`[${c}]`));return Array.from(m.itemMap.values()).sort((T,_)=>g.indexOf(T.ref.current)-g.indexOf(_.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:a,Slot:u,ItemSlot:d},f,r]}var EH=v.createContext(void 0);function GA(e){const t=v.useContext(EH);return e||t||"ltr"}var TH="DismissableLayer",e1="dismissableLayer.update",_H="dismissableLayer.pointerDownOutside",CH="dismissableLayer.focusOutside",KA,XA=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),QA=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:s,...u}=e,l=v.useContext(XA),[c,d]=v.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=v.useState({}),m=It(t,R=>d(R)),y=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),g=y.indexOf(b),x=c?y.indexOf(c):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,T=x>=g,_=kH(R=>{const O=R.target,V=[...l.branches].some(P=>P.contains(O));!T||V||(i==null||i(R),a==null||a(R),R.defaultPrevented||s==null||s())},f),C=RH(R=>{const O=R.target;[...l.branches].some(P=>P.contains(O))||(o==null||o(R),a==null||a(R),R.defaultPrevented||s==null||s())},f);return Ny(R=>{x===l.layers.size-1&&(r==null||r(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},f),v.useEffect(()=>{if(c)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(KA=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),ZA(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=KA)}},[c,f,n,l]),v.useEffect(()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),ZA())},[c,l]),v.useEffect(()=>{const R=()=>p({});return document.addEventListener(e1,R),()=>document.removeEventListener(e1,R)},[]),E.jsx(Et.div,{...u,ref:m,style:{pointerEvents:w?T?"auto":"none":void 0,...e.style},onFocusCapture:Se(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Se(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Se(e.onPointerDownCapture,_.onPointerDownCapture)})});QA.displayName=TH;var SH="DismissableLayerBranch",AH=v.forwardRef((e,t)=>{const n=v.useContext(XA),r=v.useRef(null),i=It(t,r);return v.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),E.jsx(Et.div,{...e,ref:i})});AH.displayName=SH;function kH(e,t=globalThis==null?void 0:globalThis.document){const n=Pt(e),r=v.useRef(!1),i=v.useRef(()=>{});return v.useEffect(()=>{const o=s=>{if(s.target&&!r.current){let u=function(){JA(_H,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}else t.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function RH(e,t=globalThis==null?void 0:globalThis.document){const n=Pt(e),r=v.useRef(!1);return v.useEffect(()=>{const i=o=>{o.target&&!r.current&&JA(CH,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ZA(){const e=new CustomEvent(e1);document.dispatchEvent(e)}function JA(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Jy(i,o):i.dispatchEvent(o)}var t1=0;function n1(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ek()),document.body.insertAdjacentElement("beforeend",e[1]??ek()),t1++,()=>{t1===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),t1--}},[])}function ek(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var r1="focusScope.autoFocusOnMount",i1="focusScope.autoFocusOnUnmount",tk={bubbles:!1,cancelable:!0},NH="FocusScope",o1=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[s,u]=v.useState(null),l=Pt(i),c=Pt(o),d=v.useRef(null),f=It(t,y=>u(y)),p=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let y=function(w){if(p.paused||!s)return;const T=w.target;s.contains(T)?d.current=T:vo(d.current,{select:!0})},b=function(w){if(p.paused||!s)return;const T=w.relatedTarget;T!==null&&(s.contains(T)||vo(d.current,{select:!0}))},g=function(w){if(document.activeElement===document.body)for(const _ of w)_.removedNodes.length>0&&vo(s)};document.addEventListener("focusin",y),document.addEventListener("focusout",b);const x=new MutationObserver(g);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",b),x.disconnect()}}},[r,s,p.paused]),v.useEffect(()=>{if(s){ik.add(p);const y=document.activeElement;if(!s.contains(y)){const g=new CustomEvent(r1,tk);s.addEventListener(r1,l),s.dispatchEvent(g),g.defaultPrevented||(PH(MH(nk(s)),{select:!0}),document.activeElement===y&&vo(s))}return()=>{s.removeEventListener(r1,l),setTimeout(()=>{const g=new CustomEvent(i1,tk);s.addEventListener(i1,c),s.dispatchEvent(g),g.defaultPrevented||vo(y??document.body,{select:!0}),s.removeEventListener(i1,c),ik.remove(p)},0)}}},[s,l,c,p]);const m=v.useCallback(y=>{if(!n&&!r||p.paused)return;const b=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,g=document.activeElement;if(b&&g){const x=y.currentTarget,[w,T]=IH(x);w&&T?!y.shiftKey&&g===T?(y.preventDefault(),n&&vo(w,{select:!0})):y.shiftKey&&g===w&&(y.preventDefault(),n&&vo(T,{select:!0})):g===x&&y.preventDefault()}},[n,r,p.paused]);return E.jsx(Et.div,{tabIndex:-1,...a,ref:f,onKeyDown:m})});o1.displayName=NH;function PH(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(vo(r,{select:t}),document.activeElement!==n)return}function IH(e){const t=nk(e),n=rk(t,e),r=rk(t.reverse(),e);return[n,r]}function nk(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function rk(e,t){for(const n of e)if(!OH(n,{upTo:t}))return n}function OH(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function DH(e){return e instanceof HTMLInputElement&&"select"in e}function vo(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&DH(e)&&t&&e.select()}}var ik=LH();function LH(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ok(e,t),e.unshift(t)},remove(t){var n;e=ok(e,t),(n=e[0])==null||n.resume()}}}function ok(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function MH(e){return e.filter(t=>t.tagName!=="A")}var FH="Arrow",ak=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return E.jsx(Et.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:E.jsx("polygon",{points:"0,0 30,0 15,10"})})});ak.displayName=FH;var BH=ak,a1="Popper",[sk,uk]=bi(a1),[jH,lk]=sk(a1),ck=e=>{const{__scopePopper:t,children:n}=e,[r,i]=v.useState(null);return E.jsx(jH,{scope:t,anchor:r,onAnchorChange:i,children:n})};ck.displayName=a1;var dk="PopperAnchor",fk=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=lk(dk,n),a=v.useRef(null),s=It(t,a);return v.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:E.jsx(Et.div,{...i,ref:s})});fk.displayName=dk;var s1="PopperContent",[UH,zH]=sk(s1),pk=v.forwardRef((e,t)=>{var $e,Ve,We,Ge,_t,Te;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:m,...y}=e,b=lk(s1,n),[g,x]=v.useState(null),w=It(t,be=>x(be)),[T,_]=v.useState(null),C=yA(T),R=(C==null?void 0:C.width)??0,O=(C==null?void 0:C.height)??0,V=r+(o!=="center"?"-"+o:""),P=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},$=Array.isArray(l)?l:[l],z=$.length>0,Q={padding:P,boundary:$.filter(VH),altBoundary:z},{refs:Y,floatingStyles:re,placement:ie,isPositioned:te,middlewareData:F}=uA({strategy:"fixed",placement:V,whileElementsMounted:(...be)=>iA(...be,{animationFrame:p==="always"}),elements:{reference:b.anchor},middleware:[lA({mainAxis:i+O,alignmentAxis:a}),u&&cA({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?dA():void 0,...Q}),u&&fA({...Q}),pA({...Q,apply:({elements:be,rects:Ye,availableWidth:ze,availableHeight:yt})=>{const{width:vt,height:Ke}=Ye.reference,Fe=be.floating.style;Fe.setProperty("--radix-popper-available-width",`${ze}px`),Fe.setProperty("--radix-popper-available-height",`${yt}px`),Fe.setProperty("--radix-popper-anchor-width",`${vt}px`),Fe.setProperty("--radix-popper-anchor-height",`${Ke}px`)}}),T&&mA({element:T,padding:s}),$H({arrowWidth:R,arrowHeight:O}),f&&hA({strategy:"referenceHidden",...Q})]}),[B,A]=gk(ie),oe=Pt(m);or(()=>{te&&(oe==null||oe())},[te,oe]);const he=($e=F.arrow)==null?void 0:$e.x,D=(Ve=F.arrow)==null?void 0:Ve.y,Oe=((We=F.arrow)==null?void 0:We.centerOffset)!==0,[ge,xe]=v.useState();return or(()=>{g&&xe(window.getComputedStyle(g).zIndex)},[g]),E.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...re,transform:te?re.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[(Ge=F.transformOrigin)==null?void 0:Ge.x,(_t=F.transformOrigin)==null?void 0:_t.y].join(" "),...((Te=F.hide)==null?void 0:Te.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:E.jsx(UH,{scope:n,placedSide:B,onArrowChange:_,arrowX:he,arrowY:D,shouldHideArrow:Oe,children:E.jsx(Et.div,{"data-side":B,"data-align":A,...y,ref:w,style:{...y.style,animation:te?void 0:"none"}})})})});pk.displayName=s1;var hk="PopperArrow",HH={top:"bottom",right:"left",bottom:"top",left:"right"},mk=v.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=zH(hk,r),a=HH[o.placedSide];return E.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:E.jsx(BH,{...i,ref:n,style:{...i.style,display:"block"}})})});mk.displayName=hk;function VH(e){return e!==null}var $H=e=>({name:"transformOrigin",options:e,fn(t){var b,g,x;const{placement:n,rects:r,middlewareData:i}=t,a=((b=i.arrow)==null?void 0:b.centerOffset)!==0,s=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[l,c]=gk(n),d={start:"0%",center:"50%",end:"100%"}[c],f=(((g=i.arrow)==null?void 0:g.x)??0)+s/2,p=(((x=i.arrow)==null?void 0:x.y)??0)+u/2;let m="",y="";return l==="bottom"?(m=a?d:`${f}px`,y=`${-u}px`):l==="top"?(m=a?d:`${f}px`,y=`${r.floating.height+u}px`):l==="right"?(m=`${-u}px`,y=a?d:`${p}px`):l==="left"&&(m=`${r.floating.width+u}px`,y=a?d:`${p}px`),{data:{x:m,y}}}});function gk(e){const[t,n="center"]=e.split("-");return[t,n]}var WH=ck,YH=fk,qH=pk,GH=mk;function KH(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var ks=e=>{const{present:t,children:n}=e,r=XH(t),i=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),o=It(r.ref,QH(i));return typeof n=="function"||r.isPresent?v.cloneElement(i,{ref:o}):null};ks.displayName="Presence";function XH(e){const[t,n]=v.useState(),r=v.useRef({}),i=v.useRef(e),o=v.useRef("none"),a=e?"mounted":"unmounted",[s,u]=KH(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const l=Zf(r.current);o.current=s==="mounted"?l:"none"},[s]),or(()=>{const l=r.current,c=i.current;if(c!==e){const f=o.current,p=Zf(l);e?u("MOUNT"):p==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(c&&f!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),or(()=>{if(t){let l;const c=t.ownerDocument.defaultView??window,d=p=>{const y=Zf(r.current).includes(p.animationName);if(p.target===t&&y&&(u("ANIMATION_END"),!i.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",l=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=p=>{p.target===t&&(o.current=Zf(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(l),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function Zf(e){return(e==null?void 0:e.animationName)||"none"}function QH(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var u1="rovingFocusGroup.onEntryFocus",ZH={bubbles:!1,cancelable:!0},Jf="RovingFocusGroup",[l1,yk,JH]=qA(Jf),[eV,vk]=bi(Jf,[JH]),[tV,nV]=eV(Jf),xk=v.forwardRef((e,t)=>E.jsx(l1.Provider,{scope:e.__scopeRovingFocusGroup,children:E.jsx(l1.Slot,{scope:e.__scopeRovingFocusGroup,children:E.jsx(rV,{...e,ref:t})})}));xk.displayName=Jf;var rV=v.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:c=!1,...d}=e,f=v.useRef(null),p=It(t,f),m=GA(o),[y=null,b]=_l({prop:a,defaultProp:s,onChange:u}),[g,x]=v.useState(!1),w=Pt(l),T=yk(n),_=v.useRef(!1),[C,R]=v.useState(0);return v.useEffect(()=>{const O=f.current;if(O)return O.addEventListener(u1,w),()=>O.removeEventListener(u1,w)},[w]),E.jsx(tV,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:y,onItemFocus:v.useCallback(O=>b(O),[b]),onItemShiftTab:v.useCallback(()=>x(!0),[]),onFocusableItemAdd:v.useCallback(()=>R(O=>O+1),[]),onFocusableItemRemove:v.useCallback(()=>R(O=>O-1),[]),children:E.jsx(Et.div,{tabIndex:g||C===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:Se(e.onMouseDown,()=>{_.current=!0}),onFocus:Se(e.onFocus,O=>{const V=!_.current;if(O.target===O.currentTarget&&V&&!g){const P=new CustomEvent(u1,ZH);if(O.currentTarget.dispatchEvent(P),!P.defaultPrevented){const $=T().filter(ie=>ie.focusable),z=$.find(ie=>ie.active),Q=$.find(ie=>ie.id===y),re=[z,Q,...$].filter(Boolean).map(ie=>ie.ref.current);Ek(re,c)}}_.current=!1}),onBlur:Se(e.onBlur,()=>x(!1))})})}),wk="RovingFocusGroupItem",bk=v.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:o,...a}=e,s=fo(),u=o||s,l=nV(wk,n),c=l.currentTabStopId===u,d=yk(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=l;return v.useEffect(()=>{if(r)return f(),()=>p()},[r,f,p]),E.jsx(l1.ItemSlot,{scope:n,id:u,focusable:r,active:i,children:E.jsx(Et.span,{tabIndex:c?0:-1,"data-orientation":l.orientation,...a,ref:t,onMouseDown:Se(e.onMouseDown,m=>{r?l.onItemFocus(u):m.preventDefault()}),onFocus:Se(e.onFocus,()=>l.onItemFocus(u)),onKeyDown:Se(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){l.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const y=aV(m,l.orientation,l.dir);if(y!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let g=d().filter(x=>x.focusable).map(x=>x.ref.current);if(y==="last")g.reverse();else if(y==="prev"||y==="next"){y==="prev"&&g.reverse();const x=g.indexOf(m.currentTarget);g=l.loop?sV(g,x+1):g.slice(x+1)}setTimeout(()=>Ek(g))}})})})});bk.displayName=wk;var iV={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function oV(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function aV(e,t,n){const r=oV(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return iV[r]}function Ek(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function sV(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var uV=xk,lV=bk,cV=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Rs=new WeakMap,ep=new WeakMap,tp={},c1=0,Tk=function(e){return e&&(e.host||Tk(e.parentNode))},dV=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Tk(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},fV=function(e,t,n,r){var i=dV(t,Array.isArray(e)?e:[e]);tp[n]||(tp[n]=new WeakMap);var o=tp[n],a=[],s=new Set,u=new Set(i),l=function(d){!d||s.has(d)||(s.add(d),l(d.parentNode))};i.forEach(l);var c=function(d){!d||u.has(d)||Array.prototype.forEach.call(d.children,function(f){if(s.has(f))c(f);else try{var p=f.getAttribute(r),m=p!==null&&p!=="false",y=(Rs.get(f)||0)+1,b=(o.get(f)||0)+1;Rs.set(f,y),o.set(f,b),a.push(f),y===1&&m&&ep.set(f,!0),b===1&&f.setAttribute(n,"true"),m||f.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",f,g)}})};return c(t),s.clear(),c1++,function(){a.forEach(function(d){var f=Rs.get(d)-1,p=o.get(d)-1;Rs.set(d,f),o.set(d,p),f||(ep.has(d)||d.removeAttribute(r),ep.delete(d)),p||d.removeAttribute(n)}),c1--,c1||(Rs=new WeakMap,Rs=new WeakMap,ep=new WeakMap,tp={})}},d1=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=cV(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),fV(r,i,n,"aria-hidden")):function(){return null}},np="right-scroll-bar-position",rp="width-before-scroll-bar",pV="with-scroll-bars-hidden",hV="--removed-body-scroll-bar-size";function f1(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function mV(e,t){var n=v.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var gV=typeof window<"u"?v.useLayoutEffect:v.useEffect,_k=new WeakMap;function yV(e,t){var n=mV(null,function(r){return e.forEach(function(i){return f1(i,r)})});return gV(function(){var r=_k.get(n);if(r){var i=new Set(r),o=new Set(e),a=n.current;i.forEach(function(s){o.has(s)||f1(s,null)}),o.forEach(function(s){i.has(s)||f1(s,a)})}_k.set(n,e)},[e]),n}function vV(e){return e}function xV(e,t){t===void 0&&(t=vV);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var a=t(o,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(o){for(r=!0;n.length;){var a=n;n=[],a.forEach(o)}n={push:function(s){return o(s)},filter:function(){return n}}},assignMedium:function(o){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(o),a=n}var u=function(){var c=a;a=[],c.forEach(o)},l=function(){return Promise.resolve().then(u)};l(),n={push:function(c){a.push(c),l()},filter:function(c){return a=a.filter(c),n}}}};return i}function Ck(e){e===void 0&&(e={});var t=xV(null);return t.options=Mt({async:!0,ssr:!1},e),t}var Sk=function(e){var t=e.sideCar,n=ul(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,Mt({},n))};Sk.isSideCarExport=!0;function Ak(e,t){return e.useMedium(t),Sk}var kk=Ck(),p1=function(){},ip=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:p1,onWheelCapture:p1,onTouchMoveCapture:p1}),i=r[0],o=r[1],a=e.forwardProps,s=e.children,u=e.className,l=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,m=e.inert,y=e.allowPinchZoom,b=e.as,g=b===void 0?"div":b,x=e.gapMode,w=ul(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=f,_=yV([n,t]),C=Mt(Mt({},w),i);return v.createElement(v.Fragment,null,c&&v.createElement(T,{sideCar:kk,removeScrollBar:l,shards:d,noIsolation:p,inert:m,setCallbacks:o,allowPinchZoom:!!y,lockRef:n,gapMode:x}),a?v.cloneElement(v.Children.only(s),Mt(Mt({},C),{ref:_})):v.createElement(g,Mt({},C,{className:u,ref:_}),s))});ip.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ip.classNames={fullWidth:rp,zeroRight:np};var Rk=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function wV(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Rk();return t&&e.setAttribute("nonce",t),e}function bV(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function EV(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var TV=function(){var e=0,t=null;return{add:function(n){e==0&&(t=wV())&&(bV(t,n),EV(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},_V=function(){var e=TV();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},CV=function(){var e=_V(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},SV={left:0,top:0,right:0,gap:0},h1=function(e){return parseInt(e||"",10)||0},AV=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[h1(n),h1(r),h1(i)]},kV=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return SV;var t=AV(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},RV=CV(),Ns="data-scroll-locked",NV=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
350
350
  .`.concat(pV,` {
351
351
  overflow: hidden `).concat(r,`;
352
352
  padding-right: `).concat(s,"px ").concat(r,`;